commit 283972860c5e8695299b62c9d2552769dc8dd7e8 Author: Codex Date: Thu Apr 23 10:43:49 2026 +0000 Import local app source diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..b901702 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +# Root editor config file +root = true + +# Common settings +[*] +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +charset = utf-8 + +# python, js indentation settings +[{*.py,*.js,*.vue,*.css,*.scss,*.html}] +indent_style = tab +indent_size = 4 +max_line_length = 99 + +# JSON files - mostly doctype schema files +[{*.json}] +insert_final_newline = false +indent_style = space +indent_size = 2 diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..c5e7d68 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,124 @@ +{ + "env": { + "browser": true, + "node": true, + "es2022": true + }, + "parserOptions": { + "sourceType": "module" + }, + "extends": "eslint:recommended", + "rules": { + "indent": "off", + "brace-style": "off", + "no-mixed-spaces-and-tabs": "off", + "no-useless-escape": "off", + "space-unary-ops": ["error", { "words": true }], + "linebreak-style": "off", + "quotes": ["off"], + "semi": "off", + "camelcase": "off", + "no-unused-vars": "off", + "no-console": ["warn"], + "no-extra-boolean-cast": ["off"], + "no-control-regex": ["off"], + }, + "root": true, + "globals": { + "frappe": true, + "Vue": true, + "SetVueGlobals": true, + "__": true, + "repl": true, + "Class": true, + "locals": true, + "cint": true, + "cstr": true, + "cur_frm": true, + "cur_dialog": true, + "cur_page": true, + "cur_list": true, + "cur_tree": true, + "msg_dialog": true, + "is_null": true, + "in_list": true, + "has_common": true, + "posthog": true, + "has_words": true, + "validate_email": true, + "open_web_template_values_editor": true, + "validate_name": true, + "validate_phone": true, + "validate_url": true, + "get_number_format": true, + "format_number": true, + "format_currency": true, + "comment_when": true, + "open_url_post": true, + "toTitle": true, + "lstrip": true, + "rstrip": true, + "strip": true, + "strip_html": true, + "replace_all": true, + "flt": true, + "precision": true, + "CREATE": true, + "AMEND": true, + "CANCEL": true, + "copy_dict": true, + "get_number_format_info": true, + "strip_number_groups": true, + "print_table": true, + "Layout": true, + "web_form_settings": true, + "$c": true, + "$a": true, + "$i": true, + "$bg": true, + "$y": true, + "$c_obj": true, + "refresh_many": true, + "refresh_field": true, + "toggle_field": true, + "get_field_obj": true, + "get_query_params": true, + "unhide_field": true, + "hide_field": true, + "set_field_options": true, + "getCookie": true, + "getCookies": true, + "get_url_arg": true, + "md5": true, + "$": true, + "jQuery": true, + "moment": true, + "hljs": true, + "Awesomplete": true, + "Sortable": true, + "Showdown": true, + "Taggle": true, + "Gantt": true, + "Slick": true, + "Webcam": true, + "PhotoSwipe": true, + "PhotoSwipeUI_Default": true, + "io": true, + "JsBarcode": true, + "L": true, + "Chart": true, + "DataTable": true, + "Cypress": true, + "cy": true, + "it": true, + "describe": true, + "expect": true, + "context": true, + "before": true, + "beforeEach": true, + "after": true, + "qz": true, + "localforage": true, + "extend_cscript": true + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba04025 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +.DS_Store +*.pyc +*.egg-info +*.swp +tags +node_modules +__pycache__ \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..aa32717 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,69 @@ +exclude: 'node_modules|.git' +default_stages: [pre-commit] +fail_fast: false + + +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v5.0.0 + hooks: + - id: trailing-whitespace + files: "sunderer_app.*" + exclude: ".*json$|.*txt$|.*csv|.*md|.*svg" + - id: check-merge-conflict + - id: check-ast + - id: check-json + - id: check-toml + - id: check-yaml + - id: debug-statements + + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.8.1 + hooks: + - id: ruff + name: "Run ruff import sorter" + args: ["--select=I", "--fix"] + + - id: ruff + name: "Run ruff linter" + + - id: ruff-format + name: "Run ruff formatter" + + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v2.7.1 + hooks: + - id: prettier + types_or: [javascript, vue, scss] + # Ignore any files that might contain jinja / bundles + exclude: | + (?x)^( + sunderer_app/public/dist/.*| + .*node_modules.*| + .*boilerplate.*| + sunderer_app/templates/includes/.*| + sunderer_app/public/js/lib/.* + )$ + + + - repo: https://github.com/pre-commit/mirrors-eslint + rev: v8.44.0 + hooks: + - id: eslint + types_or: [javascript] + args: ['--quiet'] + # Ignore any files that might contain jinja / bundles + exclude: | + (?x)^( + sunderer_app/public/dist/.*| + cypress/.*| + .*node_modules.*| + .*boilerplate.*| + sunderer_app/templates/includes/.*| + sunderer_app/public/js/lib/.* + )$ + +ci: + autoupdate_schedule: weekly + skip: [] + submodules: false diff --git a/README.md b/README.md new file mode 100644 index 0000000..2177086 --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +### Sunderer + +test + +### Installation + +You can install this app using the [bench](https://github.com/frappe/bench) CLI: + +```bash +cd $PATH_TO_YOUR_BENCH +bench get-app $URL_OF_THIS_REPO --branch develop +bench install-app sunderer_app +``` + +### Contributing + +This app uses `pre-commit` for code formatting and linting. Please [install pre-commit](https://pre-commit.com/#installation) and enable it for this repository: + +```bash +cd apps/sunderer_app +pre-commit install +``` + +Pre-commit is configured to use the following tools for checking and formatting your code: + +- ruff +- eslint +- prettier +- pyupgrade + +### License + +agpl-3.0 diff --git a/license.txt b/license.txt new file mode 100644 index 0000000..0ad25db --- /dev/null +++ b/license.txt @@ -0,0 +1,661 @@ + 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 +. diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..865e51d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,56 @@ +[project] +name = "sunderer_app" +authors = [ + { name = "test", email = "898879719@qq.com"} +] +description = "test" +requires-python = ">=3.10" +readme = "README.md" +dynamic = ["version"] +dependencies = [ + # "frappe~=15.0.0" # Installed and managed by bench. +] + +[build-system] +requires = ["flit_core >=3.4,<4"] +build-backend = "flit_core.buildapi" + +# These dependencies are only installed when developer mode is enabled +[tool.bench.dev-dependencies] +# package_name = "~=1.1.0" + +[tool.ruff] +line-length = 110 +target-version = "py310" + +[tool.ruff.lint] +select = [ + "F", + "E", + "W", + "I", + "UP", + "B", + "RUF", +] +ignore = [ + "B017", # assertRaises(Exception) - should be more specific + "B018", # useless expression, not assigned to anything + "B023", # function doesn't bind loop variable - will have last iteration's value + "B904", # raise inside except without from + "E101", # indentation contains mixed spaces and tabs + "E402", # module level import not at top of file + "E501", # line too long + "E741", # ambiguous variable name + "F401", # "unused" imports + "F403", # can't detect undefined names from * import + "F405", # can't detect undefined names from * import + "F722", # syntax error in forward type annotation + "W191", # indentation contains tabs +] +typing-modules = ["frappe.types.DF"] + +[tool.ruff.format] +quote-style = "double" +indent-style = "tab" +docstring-code-format = true diff --git a/sunderer_app/__init__.py b/sunderer_app/__init__.py new file mode 100644 index 0000000..f102a9c --- /dev/null +++ b/sunderer_app/__init__.py @@ -0,0 +1 @@ +__version__ = "0.0.1" diff --git a/sunderer_app/api/custom_user_signup.py b/sunderer_app/api/custom_user_signup.py new file mode 100644 index 0000000..5211371 --- /dev/null +++ b/sunderer_app/api/custom_user_signup.py @@ -0,0 +1,329 @@ +# sunderer_app/api/custom_user_signup.py +import frappe +from frappe import _ # 虽然这里不直接用 _(),但保持导入 +from frappe.utils import validate_email_address, random_string, get_url, generate_hash +import json # 导入 json 模块 + + +@frappe.whitelist(allow_guest=True) +def custom_sign_up(email, full_name, password=None, send_email=True, **kwargs): + """ + 自定义用户注册 API,模仿 Frappe 的 sign_up 但发送自定义邮件链接 + + Args: + email (str): 用户邮箱 + full_name (str): 用户全名 + password (str, optional): 用户密码 (如果需要立即设置) + send_email (bool, optional): 是否发送激活邮件. Defaults to True. + **kwargs: 其他可能传递给 User DocType 的字段 + + Returns: + dict: 包含操作结果的字典 + """ + try: + # --- 1. 验证输入 --- + email = validate_email_address(email, throw=True) # 验证邮箱格式 + + if frappe.db.exists("User", {"email": email}): + # 不再使用 frappe.throw,而是直接返回错误信息 + return {"status": "error", "message": _("该邮箱地址已被注册。")} + + if not full_name: + return {"status": "error", "message": _("请输入全名。")} + + # --- 2. 创建 User 文档 --- + user = frappe.get_doc({ + "doctype": "User", + "email": email, + "first_name": full_name.split(" ")[0], # 简单拆分姓 + "last_name": " ".join(full_name.split(" ")[1:]) if len(full_name.split(" ")) > 1 else "", # 其余部分为名 + "enabled": 1 if password else 0, # 如果提供了密码,可以立即启用;否则等待激活 + "new_password": password, # 如果提供了密码,设置它 + "send_welcome_email": 0, # 我们自己发送邮件 + "user_type": "Website User", # 通常注册的是网站用户 + # **kwargs: 添加其他通过 kwargs 传递的字段 + **kwargs + }) + + # --- 3. 插入用户文档 --- + user.insert(ignore_permissions=True) + + # --- 4. 生成激活密钥 --- + # 如果没有提供密码,或者总是需要激活邮件,则生成密钥 + if not password: + # Use frappe.generate_hash instead of get_password_reset_key + reset_key = frappe.generate_hash(length=100) # Generate a secure key + else: + reset_key = None # 如果密码已设置,可能不需要密钥,或用于其他目的 + + # --- 5. 保存用户文档 (如果需要更新密钥) --- + if reset_key: + user.reload() # 重新加载文档以确保它是最新的 + user.reset_password_key = reset_key + user.save(ignore_permissions=True) + + # --- 6. 发送自定义激活邮件 --- + if send_email and reset_key: + send_custom_activation_email(user.email, reset_key) + + # --- 7. 返回结果 --- + if password: + return {"status": "success", "message": _("用户注册成功,您现在可以登录。")} + else: + return {"status": "success", "message": _("激活邮件已发送,请查收邮箱。")} + + except frappe.DuplicateEntryError: + # 这个异常可能在 user.insert() 时由数据库唯一性约束触发 + return {"status": "error", "message": _("该邮箱地址已被注册。")} + except Exception as e: + # 捕获所有其他意外错误 + frappe.log_error(f"注册过程中发生未知错误,邮箱: {email}, 错误: {str(e)}") + return {"status": "error", "message": _("注册过程中发生未知错误,请稍后再试。")} + +@frappe.whitelist(allow_guest=True) +def send_custom_activation_email(user_email, reset_key): + """ + 发送包含自定义激活链接的邮件 + """ + # 构造自定义激活 URL + activation_url = f"{get_url()}/activate-account?key={reset_key}" # Use get_url helper + + # 使用中文主题和内容 + subject = _("决裂者终端 - 激活您的账户") # 或者 _("决裂者终端 - 设置密码") + message = f""" +

您好!

+

请点击下方链接设置密码并激活您的账户:

+

{activation_url}

+

如果您未发起此请求,请忽略此邮件。

+ """ + + frappe.sendmail( + recipients=[user_email], + subject=subject, + message=message, + delayed=False # Send immediately + ) + + + +@frappe.whitelist(allow_guest=True) +def trigger_account_setup_email(email): + + try: + # --- 1. 验证邮箱格式 (可选,但推荐) --- + import re + pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$' + if not re.match(pattern, email): + return {"exc": "请输入有效的邮箱地址!"} + + # --- 2. 检查邮箱是否已存在于系统中 --- + if frappe.db.exists("User", {"email": email}): + return {"exc": "该邮箱地址已被注册。"} + + # --- 3. 生成唯一的、有时效性的设置密钥 --- + setup_key = frappe.generate_hash(length=100) # 生成一个足够长的随机密钥 + + # --- 4. 创建初始的 User 记录 (禁用) --- + # 由于没有全名,我们暂时使用邮箱前缀作为名字,或者可以要求前端提供 + username_parts = email.split('@') + first_name = username_parts[0] # 使用邮箱前缀作为名字 + + user_doc = frappe.get_doc({ + "doctype": "User", + "email": email, + "first_name": first_name, + "last_name": "", # 可以留空或根据需要填充 + "enabled": 0, # 初始状态为禁用 + "send_welcome_email": 0, # 我们自己发送邮件 + "user_type": "Website User", + # 可以根据需要添加其他默认字段 + }) + user_doc.insert(ignore_permissions=True) # 插入用户,此时是禁用的 + print(f"Created initial disabled User: {user_doc.name}") # 调试日志 + + # --- 5. 创建 Signup Key DocType 记录 --- + signup_key_doc = frappe.new_doc("Signup Key") + signup_key_doc.key = setup_key # 使用生成的 setup_key 作为 key 字段 + signup_key_doc.email = email # 存储关联的邮箱 + signup_key_doc.used = 0 # 标记为未使用 + # 如果 Signup Key DocType 有 expires_on 字段,可以设置过期时间 + # signup_key_doc.expires_on = add_to_date(now_datetime(), hours=1) # 1小时后过期 + signup_key_doc.insert(ignore_permissions=True) + print(f"Created Signup Key: {signup_key_doc.name} for email: {email}") # 调试日志 + + # --- 6. 构造 IncreaseAcc 链接 --- + site_url = get_url() + setup_url = f"{site_url}/IncreaseAcc?key={setup_key}" + + # --- 7. 发送包含链接的邮件 --- + send_setup_link_email(email, setup_url) + + # --- 8. 返回成功信息 --- + return {"message": "注册链接已发送至您的邮箱,请查收。"} + + except frappe.DuplicateEntryError as e: + # 如果 User 或 Signup Key 插入时违反唯一性约束 + frappe.log_error(f"Trigger account setup failed due to duplicate entry, email: {email}, error: {str(e)}") + return {"exc": "用户或密钥已存在,请稍后再试。"} + except Exception as e: + # 捕获所有其他意外错误 + frappe.log_error(f"触发账户设置邮件失败,邮箱: {email}, 错误: {str(e)}") + import traceback + frappe.log_error(f"触发账户设置邮件错误堆栈:\n{traceback.format_exc()}") + # 如果 User 创建失败,尝试回滚 Signup Key (可选) + # frappe.delete_doc_if_exists("Signup Key", setup_key_name, ignore_permissions=True) + return {"exc": f"发送失败: {str(e)}"} + + +@frappe.whitelist(allow_guest=True) +def send_setup_link_email(user_email, setup_url): + """ + 发送包含账户设置链接的邮件 + """ + # 使用中文主题和内容 + subject = "决裂者终端 - 完成账户注册" + + message = f""" +
+

决裂者终端

+

您好!

+

请点击下方链接完成您的账户注册:

+

完成注册

+

此链接将在 1 小时内有效。

+

如果您未发起此请求,请忽略此邮件。

+
+

© 2026 Sunderer Games. All rights reserved.

+
+ """ + + frappe.sendmail( + recipients=[user_email], + subject=subject, + message=message, + delayed=False # 立即发送 + ) + + + +@frappe.whitelist(allow_guest=True) +@frappe.whitelist(allow_guest=True) +def complete_account(key, password): + print(f"[DEBUG] 开始执行 complete_account,传入的 key: {key[:10]}...") + try: + signup_key_doc_list = frappe.get_all("Signup Key", fields=["name", "email"], filters={"key": key, "used": 0}) + print(f"[DEBUG] 查询到的 signup_key_doc_list: {signup_key_doc_list}") + if not signup_key_doc_list: + print("[DEBUG] 未找到有效的未使用密钥,抛出错误。") + frappe.throw("无效或已过期的密钥。", frappe.ValidationError) + return + + signup_key_name = signup_key_doc_list[0].name + email = signup_key_doc_list[0].email + print(f"[DEBUG] 获取到的邮箱: {email}") + + # --- 获取用户文档 --- + try: + user_doc = frappe.get_doc("User", email) + print(f"[DEBUG] 找到用户文档: {user_doc.name}, 启用状态: {user_doc.enabled}") + except frappe.DoesNotExistError: + print(f"[ERROR] 用户 {email} 不存在。") + frappe.throw(f"用户 {email} 不存在。") + return + + # --- 新增:手动进行密码强度校验 --- + # 为密码强度检查准备用户信息 + user_info = { + "email": user_doc.email or "", + "first_name": user_doc.first_name or "", + "last_name": user_doc.last_name or "", + "username": user_doc.name or "" # 如果 User 文档有 username 字段,也可以包含 + } + + # 调用 Frappe 的密码强度检查函数 + # 注意:这个函数名可能因版本而异,但通常在 frappe.utils.password_strength 中 + # 我们会尝试不同的函数名 + try: + from frappe.utils.password_strength import get_password_strength + strength_result = get_password_strength(password, user_info) + except ImportError: + # 如果无法导入 get_password_strength,尝试其他方式 + # 这里我们假设它在 frappe.utils 中,或者使用一个简单的自定义检查 + strength_result = {"score": 0, "feedback": {"warning": "", "suggestions": ["密码至少需要8位字符,包含大小写字母和数字"]}} + # 或者,您可以在这里实现更复杂的自定义强度检查逻辑 + + score = strength_result.get('score', 0) + feedback = strength_result.get('feedback', {}) + + # 定义最低分数要求(Frappe 默认是2) + min_score = 2 + + if score < min_score: + suggestions = feedback.get('suggestions', []) + warning = feedback.get('warning', "") + error_message_parts = ["密码强度不足,请设置一个更强的密码。"] + if warning: + error_message_parts.append(f"警告: {warning}") + if suggestions: + error_message_parts.append(f"建议: {', '.join(suggestions)}") + # 使用 frappe.throw 返回结构化的错误信息,便于前端解析 + frappe.throw({ + "message": " ".join(error_message_parts), + "type": "password_strength", + "details": { + "score": score, + "min_score": min_score, + "suggestions": suggestions, + "warning": warning + } + }) + # --- 新增结束:手动进行密码强度校验 --- + + # --- 关键部分:更新密码和角色 --- + try: + user_doc.new_password = password + user_doc.enabled = 1 # 确保用户处于启用状态 + + # --- 添加或修改角色 --- + default_roles = ["Sunderer User"] # 根据你的需求调整 + + for role_name in default_roles: + if frappe.db.exists("Role", role_name): + if not any(d.role == role_name for d in user_doc.roles): + user_doc.append("roles", {"role": role_name}) + print(f"[DEBUG] 已将角色 '{role_name}' 添加到用户 {email}。") + else: + print(f"[WARNING] 角色 '{role_name}' 不存在。跳过。") + + # --- 角色添加结束 --- + + # 在手动检查通过后,再执行 save(),此时应该不会再因为密码强度问题失败 + user_doc.save(ignore_permissions=True) + print(f"[DEBUG] 成功更新用户 {email} 的密码、角色和启用状态。") + except Exception as pwd_error: + frappe.log_error(f"在完成账户 {email} 时更新用户详细信息(密码/角色)失败: {str(pwd_error)}") + print(f"[ERROR] 更新用户 {email} 详细信息失败: {str(pwd_error)}") + frappe.throw(f"设置用户账户失败: {str(pwd_error)}") + return + + # --- 仅当用户信息更新成功后,才将密钥标记为已使用 --- + try: + frappe.db.set_value("Signup Key", signup_key_name, "used", 1) + print(f"[DEBUG] 已将 Signup Key {signup_key_name} 标记为已使用。") + except Exception as db_error: + frappe.log_error(f"用户更新后,将 Signup Key {signup_key_name} 标记为已使用失败: {str(db_error)}") + print(f"[ERROR] 将 Signup Key 标记为已使用失败: {str(db_error)}") + frappe.msgprint("密码已设置,但请就确认链接状态联系技术支持。") + + frappe.db.commit() + print(f"[DEBUG] 已提交 key: {key[:10]}... 的事务。") + + return {"message": "账户已激活,密码设置成功!"} + + except frappe.AuthenticationError as e: + frappe.log_error(f"complete_account 中发生身份验证错误: {str(e)}") + print(f"[ERROR] 身份验证错误: {str(e)}") + frappe.throw(f"身份验证错误: {str(e)}") + except Exception as e: + frappe.log_error(f"激活账户时发生错误,key {key[:10]}...: {str(e)}") + print(f"[ERROR] 激活账户时发生错误,key {key[:10]}...: {str(e)}") + frappe.throw("激活您的账户时发生错误。请稍后重试或联系技术支持。") \ No newline at end of file diff --git a/sunderer_app/api/verification.py b/sunderer_app/api/verification.py new file mode 100644 index 0000000..bece9f2 --- /dev/null +++ b/sunderer_app/api/verification.py @@ -0,0 +1,106 @@ +# sunderer_app/sunderer_app/api.py +import frappe +from frappe.utils import random_string, now_datetime, add_to_date +import secrets +import string + +@frappe.whitelist(allow_guest=True) +def generate_verification_code(length=6): + """生成指定长度的数字验证码""" + code = ''.join([str(secrets.randbelow(10)) for _ in range(length)]) + return code + +@frappe.whitelist(allow_guest=True) +def send_verification_email(email, verification_code): + """发送验证码邮件""" + try: + # 邮件标题 + subject = "决裂者终端 - 验证码" + + # 邮件内容 + message = f""" +
+

决裂者终端

+

您好!

+

您的验证码是:

+
+ {verification_code} +
+

此验证码将在 10 分钟内有效。

+

如果您没有请求此验证码,请忽略此邮件。

+
+

© 2026 Sunderer Games. All rights reserved.

+
+ """ + + # 发送邮件 + frappe.sendmail( + recipients=[email], + subject=subject, + message=message, + delayed=False # 立即发送 + ) + + return {"success": True, "message": "验证码已发送到您的邮箱"} + except Exception as e: + frappe.log_error(f"发送验证码邮件失败: {str(e)}") + return {"success": False, "message": str(e)} + +@frappe.whitelist(allow_guest=True) +def send_signup_code(email): + """发送注册验证码的主函数""" + try: + # 验证邮箱格式 + import re + pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$' + if not re.match(pattern, email): + return {"exc": "请输入有效的邮箱地址!"} + + # 生成验证码 + verification_code = generate_verification_code(6) + + # 将验证码存储到缓存中(有效期10分钟) + cache_key = f"signup_code_{email}" + frappe.cache().set_value(cache_key, verification_code, expires_in_sec=600) # 10分钟 + + # 发送邮件 + result = send_verification_email(email, verification_code) + + if result["success"]: + return {"message": "验证码已发送到您的邮箱"} + else: + return {"exc": f"发送失败: {result['message']}"} + + except Exception as e: + frappe.log_error(f"发送注册验证码失败: {str(e)}") + return {"exc": f"发送失败: {str(e)}"} + +@frappe.whitelist(allow_guest=True) +def verify_signup_code(email, code): + """验证注册验证码""" + try: + cache_key = f"signup_code_{email}" + stored_code = frappe.cache().get_value(cache_key) + + if not stored_code: + return {"exc": "验证码已过期,请重新获取"} + + if str(stored_code) != str(code): + return {"exc": "验证码错误"} + + # 验证成功,清除缓存 + frappe.cache().delete_value(cache_key) + + return {"success": True} + + except Exception as e: + frappe.log_error(f"验证注册验证码失败: {str(e)}") + return {"exc": f"验证失败: {str(e)}"} \ No newline at end of file diff --git a/sunderer_app/config/__init__.py b/sunderer_app/config/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sunderer_app/custom_user.py.bak b/sunderer_app/custom_user.py.bak new file mode 100644 index 0000000..6f5d6c0 --- /dev/null +++ b/sunderer_app/custom_user.py.bak @@ -0,0 +1,19 @@ +# sunderer_app/sunderer_app/custom_user.py +import frappe +from frappe.core.doctype.user.user import User as CoreUser + +class CustomUser(CoreUser): + def get_redirect_url(self): + """自定义用户创建后的重定向URL""" + # 检查是否是新用户注册 + if self.flags.in_insert and self.new_password: + # 新用户设置密码后,跳转到自定义页面 + return "/custom-update-password" + + # 默认行为 + return super().get_redirect_url() + +def after_user_creation(doc, method): + """用户创建后触发的钩子""" + # 这里可以添加额外的用户初始化逻辑 + pass \ No newline at end of file diff --git a/sunderer_app/delete_signup_key.py b/sunderer_app/delete_signup_key.py new file mode 100644 index 0000000..3e65be3 --- /dev/null +++ b/sunderer_app/delete_signup_key.py @@ -0,0 +1,12 @@ +# delete_signup_key.py +import frappe + +def delete_signup_key_doctype(): + frappe.delete_doc("DocType", "Signup Key", force=True) + print("Signup Key DocType deleted.") + +if __name__ == "__main__": + frappe.connect() + delete_signup_key_doctype() + frappe.db.commit() + frappe.destroy() \ No newline at end of file diff --git a/sunderer_app/frontend/.gitignore b/sunderer_app/frontend/.gitignore new file mode 100644 index 0000000..a547bf3 --- /dev/null +++ b/sunderer_app/frontend/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/sunderer_app/frontend/.vscode/extensions.json b/sunderer_app/frontend/.vscode/extensions.json new file mode 100644 index 0000000..a7cea0b --- /dev/null +++ b/sunderer_app/frontend/.vscode/extensions.json @@ -0,0 +1,3 @@ +{ + "recommendations": ["Vue.volar"] +} diff --git a/sunderer_app/frontend/README.md b/sunderer_app/frontend/README.md new file mode 100644 index 0000000..1511959 --- /dev/null +++ b/sunderer_app/frontend/README.md @@ -0,0 +1,5 @@ +# Vue 3 + Vite + +This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 ` + + diff --git a/sunderer_app/frontend/package-lock.json b/sunderer_app/frontend/package-lock.json new file mode 100644 index 0000000..f73a058 --- /dev/null +++ b/sunderer_app/frontend/package-lock.json @@ -0,0 +1,1880 @@ +{ + "name": "my-vue-app", + "version": "0.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "my-vue-app", + "version": "0.0.0", + "dependencies": { + "@vicons/ionicons5": "^0.13.0", + "naive-ui": "^2.43.2", + "vue": "^3.4.0", + "vue-router": "^4.2.0" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^4.5.0", + "unplugin-auto-import": "^21.0.0", + "unplugin-vue-components": "^31.0.0", + "vite": "^5.0.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz", + "integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.6" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz", + "integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@css-render/plugin-bem": { + "version": "0.15.14", + "resolved": "https://registry.npmmirror.com/@css-render/plugin-bem/-/plugin-bem-0.15.14.tgz", + "integrity": "sha512-QK513CJ7yEQxm/P3EwsI+d+ha8kSOcjGvD6SevM41neEMxdULE+18iuQK6tEChAWMOQNQPLG/Rw3Khb69r5neg==", + "license": "MIT", + "peerDependencies": { + "css-render": "~0.15.14" + } + }, + "node_modules/@css-render/vue3-ssr": { + "version": "0.15.14", + "resolved": "https://registry.npmmirror.com/@css-render/vue3-ssr/-/vue3-ssr-0.15.14.tgz", + "integrity": "sha512-//8027GSbxE9n3QlD73xFY6z4ZbHbvrOVB7AO6hsmrEzGbg+h2A09HboUyDgu+xsmj7JnvJD39Irt+2D0+iV8g==", + "license": "MIT", + "peerDependencies": { + "vue": "^3.0.11" + } + }, + "node_modules/@emotion/hash": { + "version": "0.8.0", + "resolved": "https://registry.npmmirror.com/@emotion/hash/-/hash-0.8.0.tgz", + "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", + "license": "MIT" + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz", + "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm/-/android-arm-0.21.5.tgz", + "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz", + "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/android-x64/-/android-x64-0.21.5.tgz", + "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz", + "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz", + "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz", + "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz", + "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz", + "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz", + "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz", + "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz", + "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz", + "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz", + "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz", + "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz", + "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz", + "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz", + "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz", + "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz", + "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz", + "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz", + "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz", + "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmmirror.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmmirror.com/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@juggle/resize-observer": { + "version": "3.4.0", + "resolved": "https://registry.npmmirror.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz", + "integrity": "sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==", + "license": "Apache-2.0" + }, + "node_modules/@rollup/rollup-android-arm-eabi": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.55.1.tgz", + "integrity": "sha512-9R0DM/ykwfGIlNu6+2U09ga0WXeZ9MRC2Ter8jnz8415VbuIykVuc6bhdrbORFZANDmTDvq26mJrEVTl8TdnDg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-android-arm64": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.55.1.tgz", + "integrity": "sha512-eFZCb1YUqhTysgW3sj/55du5cG57S7UTNtdMjCW7LwVcj3dTTcowCsC8p7uBdzKsZYa8J7IDE8lhMI+HX1vQvg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ] + }, + "node_modules/@rollup/rollup-darwin-arm64": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.55.1.tgz", + "integrity": "sha512-p3grE2PHcQm2e8PSGZdzIhCKbMCw/xi9XvMPErPhwO17vxtvCN5FEA2mSLgmKlCjHGMQTP6phuQTYWUnKewwGg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-darwin-x64": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.55.1.tgz", + "integrity": "sha512-rDUjG25C9qoTm+e02Esi+aqTKSBYwVTaoS1wxcN47/Luqef57Vgp96xNANwt5npq9GDxsH7kXxNkJVEsWEOEaQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ] + }, + "node_modules/@rollup/rollup-freebsd-arm64": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.55.1.tgz", + "integrity": "sha512-+JiU7Jbp5cdxekIgdte0jfcu5oqw4GCKr6i3PJTlXTCU5H5Fvtkpbs4XJHRmWNXF+hKmn4v7ogI5OQPaupJgOg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-freebsd-x64": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.55.1.tgz", + "integrity": "sha512-V5xC1tOVWtLLmr3YUk2f6EJK4qksksOYiz/TCsFHu/R+woubcLWdC9nZQmwjOAbmExBIVKsm1/wKmEy4z4u4Bw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ] + }, + "node_modules/@rollup/rollup-linux-arm-gnueabihf": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.55.1.tgz", + "integrity": "sha512-Rn3n+FUk2J5VWx+ywrG/HGPTD9jXNbicRtTM11e/uorplArnXZYsVifnPPqNNP5BsO3roI4n8332ukpY/zN7rQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm-musleabihf": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.55.1.tgz", + "integrity": "sha512-grPNWydeKtc1aEdrJDWk4opD7nFtQbMmV7769hiAaYyUKCT1faPRm2av8CX1YJsZ4TLAZcg9gTR1KvEzoLjXkg==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-gnu": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.55.1.tgz", + "integrity": "sha512-a59mwd1k6x8tXKcUxSyISiquLwB5pX+fJW9TkWU46lCqD/GRDe9uDN31jrMmVP3feI3mhAdvcCClhV8V5MhJFQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-arm64-musl": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.55.1.tgz", + "integrity": "sha512-puS1MEgWX5GsHSoiAsF0TYrpomdvkaXm0CofIMG5uVkP6IBV+ZO9xhC5YEN49nsgYo1DuuMquF9+7EDBVYu4uA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-gnu": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.55.1.tgz", + "integrity": "sha512-r3Wv40in+lTsULSb6nnoudVbARdOwb2u5fpeoOAZjFLznp6tDU8kd+GTHmJoqZ9lt6/Sys33KdIHUaQihFcu7g==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-loong64-musl": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.55.1.tgz", + "integrity": "sha512-MR8c0+UxAlB22Fq4R+aQSPBayvYa3+9DrwG/i1TKQXFYEaoW3B5b/rkSRIypcZDdWjWnpcvxbNaAJDcSbJU3Lw==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-gnu": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.55.1.tgz", + "integrity": "sha512-3KhoECe1BRlSYpMTeVrD4sh2Pw2xgt4jzNSZIIPLFEsnQn9gAnZagW9+VqDqAHgm1Xc77LzJOo2LdigS5qZ+gw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-ppc64-musl": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.55.1.tgz", + "integrity": "sha512-ziR1OuZx0vdYZZ30vueNZTg73alF59DicYrPViG0NEgDVN8/Jl87zkAPu4u6VjZST2llgEUjaiNl9JM6HH1Vdw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-gnu": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.55.1.tgz", + "integrity": "sha512-uW0Y12ih2XJRERZ4jAfKamTyIHVMPQnTZcQjme2HMVDAHY4amf5u414OqNYC+x+LzRdRcnIG1YodLrrtA8xsxw==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-riscv64-musl": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.55.1.tgz", + "integrity": "sha512-u9yZ0jUkOED1BFrqu3BwMQoixvGHGZ+JhJNkNKY/hyoEgOwlqKb62qu+7UjbPSHYjiVy8kKJHvXKv5coH4wDeg==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-s390x-gnu": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.55.1.tgz", + "integrity": "sha512-/0PenBCmqM4ZUd0190j7J0UsQ/1nsi735iPRakO8iPciE7BQ495Y6msPzaOmvx0/pn+eJVVlZrNrSh4WSYLxNg==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-gnu": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.55.1.tgz", + "integrity": "sha512-a8G4wiQxQG2BAvo+gU6XrReRRqj+pLS2NGXKm8io19goR+K8lw269eTrPkSdDTALwMmJp4th2Uh0D8J9bEV1vg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-linux-x64-musl": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.55.1.tgz", + "integrity": "sha512-bD+zjpFrMpP/hqkfEcnjXWHMw5BIghGisOKPj+2NaNDuVT+8Ds4mPf3XcPHuat1tz89WRL+1wbcxKY3WSbiT7w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ] + }, + "node_modules/@rollup/rollup-openbsd-x64": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.55.1.tgz", + "integrity": "sha512-eLXw0dOiqE4QmvikfQ6yjgkg/xDM+MdU9YJuP4ySTibXU0oAvnEWXt7UDJmD4UkYialMfOGFPJnIHSe/kdzPxg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ] + }, + "node_modules/@rollup/rollup-openharmony-arm64": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.55.1.tgz", + "integrity": "sha512-xzm44KgEP11te3S2HCSyYf5zIzWmx3n8HDCc7EE59+lTcswEWNpvMLfd9uJvVX8LCg9QWG67Xt75AuHn4vgsXw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ] + }, + "node_modules/@rollup/rollup-win32-arm64-msvc": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.55.1.tgz", + "integrity": "sha512-yR6Bl3tMC/gBok5cz/Qi0xYnVbIxGx5Fcf/ca0eB6/6JwOY+SRUcJfI0OpeTpPls7f194as62thCt/2BjxYN8g==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-ia32-msvc": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.55.1.tgz", + "integrity": "sha512-3fZBidchE0eY0oFZBnekYCfg+5wAB0mbpCBuofh5mZuzIU/4jIVkbESmd2dOsFNS78b53CYv3OAtwqkZZmU5nA==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-gnu": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.55.1.tgz", + "integrity": "sha512-xGGY5pXj69IxKb4yv/POoocPy/qmEGhimy/FoTpTSVju3FYXUQQMFCaZZXJVidsmGxRioZAwpThl/4zX41gRKg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@rollup/rollup-win32-x64-msvc": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.55.1.tgz", + "integrity": "sha512-SPEpaL6DX4rmcXtnhdrQYgzQ5W2uW3SCJch88lB2zImhJRhIIK44fkUrgIV/Q8yUNfw5oyZ5vkeQsZLhCb06lw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ] + }, + "node_modules/@types/estree": { + "version": "1.0.8", + "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.8.tgz", + "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/katex": { + "version": "0.16.8", + "resolved": "https://registry.npmmirror.com/@types/katex/-/katex-0.16.8.tgz", + "integrity": "sha512-trgaNyfU+Xh2Tc+ABIb44a5AYUpicB3uwirOioeOkNPPbmgRNtcWyDeeFRzjPZENO9Vq8gvVqfhaaXWLlevVwg==", + "license": "MIT" + }, + "node_modules/@types/lodash": { + "version": "4.17.23", + "resolved": "https://registry.npmmirror.com/@types/lodash/-/lodash-4.17.23.tgz", + "integrity": "sha512-RDvF6wTulMPjrNdCoYRC8gNR880JNGT8uB+REUpC2Ns4pRqQJhGz90wh7rgdXDPpCczF3VGktDuFGVnz8zP7HA==", + "license": "MIT" + }, + "node_modules/@types/lodash-es": { + "version": "4.17.12", + "resolved": "https://registry.npmmirror.com/@types/lodash-es/-/lodash-es-4.17.12.tgz", + "integrity": "sha512-0NgftHUcV4v34VhXm8QBSftKVXtbkBG3ViCjs6+eJ5a6y6Mi/jiFGPc1sC7QK+9BFhWrURE3EOggmWaSxL9OzQ==", + "license": "MIT", + "dependencies": { + "@types/lodash": "*" + } + }, + "node_modules/@vicons/ionicons5": { + "version": "0.13.0", + "resolved": "https://registry.npmmirror.com/@vicons/ionicons5/-/ionicons5-0.13.0.tgz", + "integrity": "sha512-zvZKBPjEXKN7AXNo2Na2uy+nvuv6SP4KAMQxpKL2vfHMj0fSvuw7JZcOPCjQC3e7ayssKnaoFVAhbYcW6v41qQ==", + "license": "MIT" + }, + "node_modules/@vitejs/plugin-vue": { + "version": "4.6.2", + "resolved": "https://registry.npmmirror.com/@vitejs/plugin-vue/-/plugin-vue-4.6.2.tgz", + "integrity": "sha512-kqf7SGFoG+80aZG6Pf+gsZIVvGSCKE98JbiWqcCV9cThtg91Jav0yvYFC9Zb+jKetNGF6ZKeoaxgZfND21fWKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.18.0 || >=16.0.0" + }, + "peerDependencies": { + "vite": "^4.0.0 || ^5.0.0", + "vue": "^3.2.25" + } + }, + "node_modules/@vue/compiler-core": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.5.26.tgz", + "integrity": "sha512-vXyI5GMfuoBCnv5ucIT7jhHKl55Y477yxP6fc4eUswjP8FG3FFVFd41eNDArR+Uk3QKn2Z85NavjaxLxOC19/w==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "@vue/shared": "3.5.26", + "entities": "^7.0.0", + "estree-walker": "^2.0.2", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-dom": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.5.26.tgz", + "integrity": "sha512-y1Tcd3eXs834QjswshSilCBnKGeQjQXB6PqFn/1nxcQw4pmG42G8lwz+FZPAZAby6gZeHSt/8LMPfZ4Rb+Bd/A==", + "license": "MIT", + "dependencies": { + "@vue/compiler-core": "3.5.26", + "@vue/shared": "3.5.26" + } + }, + "node_modules/@vue/compiler-sfc": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.5.26.tgz", + "integrity": "sha512-egp69qDTSEZcf4bGOSsprUr4xI73wfrY5oRs6GSgXFTiHrWj4Y3X5Ydtip9QMqiCMCPVwLglB9GBxXtTadJ3mA==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.5", + "@vue/compiler-core": "3.5.26", + "@vue/compiler-dom": "3.5.26", + "@vue/compiler-ssr": "3.5.26", + "@vue/shared": "3.5.26", + "estree-walker": "^2.0.2", + "magic-string": "^0.30.21", + "postcss": "^8.5.6", + "source-map-js": "^1.2.1" + } + }, + "node_modules/@vue/compiler-ssr": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.5.26.tgz", + "integrity": "sha512-lZT9/Y0nSIRUPVvapFJEVDbEXruZh2IYHMk2zTtEgJSlP5gVOqeWXH54xDKAaFS4rTnDeDBQUYDtxKyoW9FwDw==", + "license": "MIT", + "dependencies": { + "@vue/compiler-dom": "3.5.26", + "@vue/shared": "3.5.26" + } + }, + "node_modules/@vue/devtools-api": { + "version": "6.6.4", + "resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.4.tgz", + "integrity": "sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==", + "license": "MIT" + }, + "node_modules/@vue/reactivity": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.5.26.tgz", + "integrity": "sha512-9EnYB1/DIiUYYnzlnUBgwU32NNvLp/nhxLXeWRhHUEeWNTn1ECxX8aGO7RTXeX6PPcxe3LLuNBFoJbV4QZ+CFQ==", + "license": "MIT", + "dependencies": { + "@vue/shared": "3.5.26" + } + }, + "node_modules/@vue/runtime-core": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.5.26.tgz", + "integrity": "sha512-xJWM9KH1kd201w5DvMDOwDHYhrdPTrAatn56oB/LRG4plEQeZRQLw0Bpwih9KYoqmzaxF0OKSn6swzYi84e1/Q==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.26", + "@vue/shared": "3.5.26" + } + }, + "node_modules/@vue/runtime-dom": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.5.26.tgz", + "integrity": "sha512-XLLd/+4sPC2ZkN/6+V4O4gjJu6kSDbHAChvsyWgm1oGbdSO3efvGYnm25yCjtFm/K7rrSDvSfPDgN1pHgS4VNQ==", + "license": "MIT", + "dependencies": { + "@vue/reactivity": "3.5.26", + "@vue/runtime-core": "3.5.26", + "@vue/shared": "3.5.26", + "csstype": "^3.2.3" + } + }, + "node_modules/@vue/server-renderer": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.5.26.tgz", + "integrity": "sha512-TYKLXmrwWKSodyVuO1WAubucd+1XlLg4set0YoV+Hu8Lo79mp/YMwWV5mC5FgtsDxX3qo1ONrxFaTP1OQgy1uA==", + "license": "MIT", + "dependencies": { + "@vue/compiler-ssr": "3.5.26", + "@vue/shared": "3.5.26" + }, + "peerDependencies": { + "vue": "3.5.26" + } + }, + "node_modules/@vue/shared": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.5.26.tgz", + "integrity": "sha512-7Z6/y3uFI5PRoKeorTOSXKcDj0MSasfNNltcslbFrPpcw6aXRUALq4IfJlaTRspiWIUOEZbrpM+iQGmCOiWe4A==", + "license": "MIT" + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://registry.npmmirror.com/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/async-validator": { + "version": "4.2.5", + "resolved": "https://registry.npmmirror.com/async-validator/-/async-validator-4.2.5.tgz", + "integrity": "sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==", + "license": "MIT" + }, + "node_modules/chokidar": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/chokidar/-/chokidar-5.0.0.tgz", + "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", + "dev": true, + "license": "MIT", + "dependencies": { + "readdirp": "^5.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/confbox": { + "version": "0.2.2", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.2.2.tgz", + "integrity": "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/css-render": { + "version": "0.15.14", + "resolved": "https://registry.npmmirror.com/css-render/-/css-render-0.15.14.tgz", + "integrity": "sha512-9nF4PdUle+5ta4W5SyZdLCCmFd37uVimSjg1evcTqKJCyvCEEj12WKzOSBNak6r4im4J4iYXKH1OWpUV5LBYFg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@emotion/hash": "~0.8.0", + "csstype": "~3.0.5" + } + }, + "node_modules/css-render/node_modules/csstype": { + "version": "3.0.11", + "resolved": "https://registry.npmmirror.com/csstype/-/csstype-3.0.11.tgz", + "integrity": "sha512-sa6P2wJ+CAbgyy4KFssIb/JNMLxFvKF1pCYCSXS8ZMuqZnMsrxqI2E5sPyoTpxoPU/gVZMzr2zjOfg8GIZOMsw==", + "license": "MIT" + }, + "node_modules/csstype": { + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz", + "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==", + "license": "MIT" + }, + "node_modules/date-fns": { + "version": "4.1.0", + "resolved": "https://registry.npmmirror.com/date-fns/-/date-fns-4.1.0.tgz", + "integrity": "sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==", + "license": "MIT", + "peer": true, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + }, + "node_modules/date-fns-tz": { + "version": "3.2.0", + "resolved": "https://registry.npmmirror.com/date-fns-tz/-/date-fns-tz-3.2.0.tgz", + "integrity": "sha512-sg8HqoTEulcbbbVXeg84u5UnlsQa8GS5QXMqjjYIhS4abEVVKIUwe0/l/UhrZdKaL/W5eWZNlbTeEIiOXTcsBQ==", + "license": "MIT", + "peerDependencies": { + "date-fns": "^3.0.0 || ^4.0.0" + } + }, + "node_modules/entities": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.0.tgz", + "integrity": "sha512-FDWG5cmEYf2Z00IkYRhbFrwIwvdFKH07uV8dvNy0omp/Qb1xcyCWp2UDtcwJF4QZZvk0sLudP6/hAu42TaqVhQ==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/esbuild": { + "version": "0.21.5", + "resolved": "https://registry.npmmirror.com/esbuild/-/esbuild-0.21.5.tgz", + "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.21.5", + "@esbuild/android-arm": "0.21.5", + "@esbuild/android-arm64": "0.21.5", + "@esbuild/android-x64": "0.21.5", + "@esbuild/darwin-arm64": "0.21.5", + "@esbuild/darwin-x64": "0.21.5", + "@esbuild/freebsd-arm64": "0.21.5", + "@esbuild/freebsd-x64": "0.21.5", + "@esbuild/linux-arm": "0.21.5", + "@esbuild/linux-arm64": "0.21.5", + "@esbuild/linux-ia32": "0.21.5", + "@esbuild/linux-loong64": "0.21.5", + "@esbuild/linux-mips64el": "0.21.5", + "@esbuild/linux-ppc64": "0.21.5", + "@esbuild/linux-riscv64": "0.21.5", + "@esbuild/linux-s390x": "0.21.5", + "@esbuild/linux-x64": "0.21.5", + "@esbuild/netbsd-x64": "0.21.5", + "@esbuild/openbsd-x64": "0.21.5", + "@esbuild/sunos-x64": "0.21.5", + "@esbuild/win32-arm64": "0.21.5", + "@esbuild/win32-ia32": "0.21.5", + "@esbuild/win32-x64": "0.21.5" + } + }, + "node_modules/escape-string-regexp": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/escape-string-regexp/-/escape-string-regexp-5.0.0.tgz", + "integrity": "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "license": "MIT" + }, + "node_modules/evtd": { + "version": "0.2.4", + "resolved": "https://registry.npmmirror.com/evtd/-/evtd-0.2.4.tgz", + "integrity": "sha512-qaeGN5bx63s/AXgQo8gj6fBkxge+OoLddLniox5qtLAEY5HSnuSlISXVPxnSae1dWblvTh4/HoMIB+mbMsvZzw==", + "license": "MIT" + }, + "node_modules/exsolve": { + "version": "1.0.8", + "resolved": "https://registry.npmmirror.com/exsolve/-/exsolve-1.0.8.tgz", + "integrity": "sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==", + "dev": true, + "license": "MIT" + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmmirror.com/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmmirror.com/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/highlight.js": { + "version": "11.11.1", + "resolved": "https://registry.npmmirror.com/highlight.js/-/highlight.js-11.11.1.tgz", + "integrity": "sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/js-tokens": { + "version": "9.0.1", + "resolved": "https://registry.npmmirror.com/js-tokens/-/js-tokens-9.0.1.tgz", + "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/local-pkg": { + "version": "1.1.2", + "resolved": "https://registry.npmmirror.com/local-pkg/-/local-pkg-1.1.2.tgz", + "integrity": "sha512-arhlxbFRmoQHl33a0Zkle/YWlmNwoyt6QNZEIJcqNbdrsix5Lvc4HyyI3EnwxTYlZYc32EbYrQ8SzEZ7dqgg9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "mlly": "^1.7.4", + "pkg-types": "^2.3.0", + "quansync": "^0.2.11" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/lodash": { + "version": "4.17.23", + "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.23.tgz", + "integrity": "sha512-LgVTMpQtIopCi79SJeDiP0TfWi5CNEc/L/aRdTh3yIvmZXTnheWpKjSZhnvMl8iXbC1tFg9gdHHDMLoV7CnG+w==", + "license": "MIT" + }, + "node_modules/lodash-es": { + "version": "4.17.23", + "resolved": "https://registry.npmmirror.com/lodash-es/-/lodash-es-4.17.23.tgz", + "integrity": "sha512-kVI48u3PZr38HdYz98UmfPnXl2DXrpdctLrFLCd3kOx1xUkOmpFPx7gCWWM5MPkL/fD8zb+Ph0QzjGFs4+hHWg==", + "license": "MIT" + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/mlly": { + "version": "1.8.0", + "resolved": "https://registry.npmmirror.com/mlly/-/mlly-1.8.0.tgz", + "integrity": "sha512-l8D9ODSRWLe2KHJSifWGwBqpTZXIXTeo8mlKjY+E2HAakaTeNpqAyBZ8GSqLzHgw4XmHmC8whvpjJNMbFZN7/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.15.0", + "pathe": "^2.0.3", + "pkg-types": "^1.3.1", + "ufo": "^1.6.1" + } + }, + "node_modules/mlly/node_modules/confbox": { + "version": "0.1.8", + "resolved": "https://registry.npmmirror.com/confbox/-/confbox-0.1.8.tgz", + "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==", + "dev": true, + "license": "MIT" + }, + "node_modules/mlly/node_modules/pkg-types": { + "version": "1.3.1", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-1.3.1.tgz", + "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.1.8", + "mlly": "^1.7.4", + "pathe": "^2.0.1" + } + }, + "node_modules/naive-ui": { + "version": "2.43.2", + "resolved": "https://registry.npmmirror.com/naive-ui/-/naive-ui-2.43.2.tgz", + "integrity": "sha512-YlLMnGrwGTOc+zMj90sG3ubaH5/7czsgLgGcjTLA981IUaz8r6t4WIujNt8r9PNr+dqv6XNEr0vxkARgPPjfBQ==", + "license": "MIT", + "dependencies": { + "@css-render/plugin-bem": "^0.15.14", + "@css-render/vue3-ssr": "^0.15.14", + "@types/katex": "^0.16.2", + "@types/lodash": "^4.17.20", + "@types/lodash-es": "^4.17.12", + "async-validator": "^4.2.5", + "css-render": "^0.15.14", + "csstype": "^3.1.3", + "date-fns": "^4.1.0", + "date-fns-tz": "^3.2.0", + "evtd": "^0.2.4", + "highlight.js": "^11.8.0", + "lodash": "^4.17.21", + "lodash-es": "^4.17.21", + "seemly": "^0.3.10", + "treemate": "^0.3.11", + "vdirs": "^0.1.8", + "vooks": "^0.2.12", + "vueuc": "^0.4.65" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.11", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", + "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/obug": { + "version": "2.1.1", + "resolved": "https://registry.npmmirror.com/obug/-/obug-2.1.1.tgz", + "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==", + "dev": true, + "funding": [ + "https://github.com/sponsors/sxzz", + "https://opencollective.com/debug" + ], + "license": "MIT" + }, + "node_modules/pathe": { + "version": "2.0.3", + "resolved": "https://registry.npmmirror.com/pathe/-/pathe-2.0.3.tgz", + "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pkg-types": { + "version": "2.3.0", + "resolved": "https://registry.npmmirror.com/pkg-types/-/pkg-types-2.3.0.tgz", + "integrity": "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig==", + "dev": true, + "license": "MIT", + "dependencies": { + "confbox": "^0.2.2", + "exsolve": "^1.0.7", + "pathe": "^2.0.3" + } + }, + "node_modules/postcss": { + "version": "8.5.6", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", + "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/quansync": { + "version": "0.2.11", + "resolved": "https://registry.npmmirror.com/quansync/-/quansync-0.2.11.tgz", + "integrity": "sha512-AifT7QEbW9Nri4tAwR5M/uzpBuqfZf+zwaEM/QkzEjj7NBuFD2rBuy0K3dE+8wltbezDV7JMA0WfnCPYRSYbXA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/antfu" + }, + { + "type": "individual", + "url": "https://github.com/sponsors/sxzz" + } + ], + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/readdirp/-/readdirp-5.0.0.tgz", + "integrity": "sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/rollup": { + "version": "4.55.1", + "resolved": "https://registry.npmmirror.com/rollup/-/rollup-4.55.1.tgz", + "integrity": "sha512-wDv/Ht1BNHB4upNbK74s9usvl7hObDnvVzknxqY/E/O3X6rW1U1rV1aENEfJ54eFZDTNo7zv1f5N4edCluH7+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "1.0.8" + }, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=18.0.0", + "npm": ">=8.0.0" + }, + "optionalDependencies": { + "@rollup/rollup-android-arm-eabi": "4.55.1", + "@rollup/rollup-android-arm64": "4.55.1", + "@rollup/rollup-darwin-arm64": "4.55.1", + "@rollup/rollup-darwin-x64": "4.55.1", + "@rollup/rollup-freebsd-arm64": "4.55.1", + "@rollup/rollup-freebsd-x64": "4.55.1", + "@rollup/rollup-linux-arm-gnueabihf": "4.55.1", + "@rollup/rollup-linux-arm-musleabihf": "4.55.1", + "@rollup/rollup-linux-arm64-gnu": "4.55.1", + "@rollup/rollup-linux-arm64-musl": "4.55.1", + "@rollup/rollup-linux-loong64-gnu": "4.55.1", + "@rollup/rollup-linux-loong64-musl": "4.55.1", + "@rollup/rollup-linux-ppc64-gnu": "4.55.1", + "@rollup/rollup-linux-ppc64-musl": "4.55.1", + "@rollup/rollup-linux-riscv64-gnu": "4.55.1", + "@rollup/rollup-linux-riscv64-musl": "4.55.1", + "@rollup/rollup-linux-s390x-gnu": "4.55.1", + "@rollup/rollup-linux-x64-gnu": "4.55.1", + "@rollup/rollup-linux-x64-musl": "4.55.1", + "@rollup/rollup-openbsd-x64": "4.55.1", + "@rollup/rollup-openharmony-arm64": "4.55.1", + "@rollup/rollup-win32-arm64-msvc": "4.55.1", + "@rollup/rollup-win32-ia32-msvc": "4.55.1", + "@rollup/rollup-win32-x64-gnu": "4.55.1", + "@rollup/rollup-win32-x64-msvc": "4.55.1", + "fsevents": "~2.3.2" + } + }, + "node_modules/scule": { + "version": "1.3.0", + "resolved": "https://registry.npmmirror.com/scule/-/scule-1.3.0.tgz", + "integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==", + "dev": true, + "license": "MIT" + }, + "node_modules/seemly": { + "version": "0.3.10", + "resolved": "https://registry.npmmirror.com/seemly/-/seemly-0.3.10.tgz", + "integrity": "sha512-2+SMxtG1PcsL0uyhkumlOU6Qo9TAQ/WyH7tthnPIOQB05/12jz9naq6GZ6iZ6ApVsO3rr2gsnTf3++OV63kE1Q==", + "license": "MIT" + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/strip-literal": { + "version": "3.1.0", + "resolved": "https://registry.npmmirror.com/strip-literal/-/strip-literal-3.1.0.tgz", + "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==", + "dev": true, + "license": "MIT", + "dependencies": { + "js-tokens": "^9.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.15", + "resolved": "https://registry.npmmirror.com/tinyglobby/-/tinyglobby-0.2.15.tgz", + "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/treemate": { + "version": "0.3.11", + "resolved": "https://registry.npmmirror.com/treemate/-/treemate-0.3.11.tgz", + "integrity": "sha512-M8RGFoKtZ8dF+iwJfAJTOH/SM4KluKOKRJpjCMhI8bG3qB74zrFoArKZ62ll0Fr3mqkMJiQOmWYkdYgDeITYQg==", + "license": "MIT" + }, + "node_modules/ufo": { + "version": "1.6.3", + "resolved": "https://registry.npmmirror.com/ufo/-/ufo-1.6.3.tgz", + "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/unimport": { + "version": "5.6.0", + "resolved": "https://registry.npmmirror.com/unimport/-/unimport-5.6.0.tgz", + "integrity": "sha512-8rqAmtJV8o60x46kBAJKtHpJDJWkA2xcBqWKPI14MgUb05o1pnpnCnXSxedUXyeq7p8fR5g3pTo2BaswZ9lD9A==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.15.0", + "escape-string-regexp": "^5.0.0", + "estree-walker": "^3.0.3", + "local-pkg": "^1.1.2", + "magic-string": "^0.30.21", + "mlly": "^1.8.0", + "pathe": "^2.0.3", + "picomatch": "^4.0.3", + "pkg-types": "^2.3.0", + "scule": "^1.3.0", + "strip-literal": "^3.1.0", + "tinyglobby": "^0.2.15", + "unplugin": "^2.3.11", + "unplugin-utils": "^0.3.1" + }, + "engines": { + "node": ">=18.12.0" + } + }, + "node_modules/unimport/node_modules/estree-walker": { + "version": "3.0.3", + "resolved": "https://registry.npmmirror.com/estree-walker/-/estree-walker-3.0.3.tgz", + "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/estree": "^1.0.0" + } + }, + "node_modules/unplugin": { + "version": "2.3.11", + "resolved": "https://registry.npmmirror.com/unplugin/-/unplugin-2.3.11.tgz", + "integrity": "sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "acorn": "^8.15.0", + "picomatch": "^4.0.3", + "webpack-virtual-modules": "^0.6.2" + }, + "engines": { + "node": ">=18.12.0" + } + }, + "node_modules/unplugin-auto-import": { + "version": "21.0.0", + "resolved": "https://registry.npmmirror.com/unplugin-auto-import/-/unplugin-auto-import-21.0.0.tgz", + "integrity": "sha512-vWuC8SwqJmxZFYwPojhOhOXDb5xFhNNcEVb9K/RFkyk/3VnfaOjzitWN7v+8DEKpMjSsY2AEGXNgt6I0yQrhRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "local-pkg": "^1.1.2", + "magic-string": "^0.30.21", + "picomatch": "^4.0.3", + "unimport": "^5.6.0", + "unplugin": "^2.3.11", + "unplugin-utils": "^0.3.1" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@nuxt/kit": "^4.0.0", + "@vueuse/core": "*" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + }, + "@vueuse/core": { + "optional": true + } + } + }, + "node_modules/unplugin-utils": { + "version": "0.3.1", + "resolved": "https://registry.npmmirror.com/unplugin-utils/-/unplugin-utils-0.3.1.tgz", + "integrity": "sha512-5lWVjgi6vuHhJ526bI4nlCOmkCIF3nnfXkCMDeMJrtdvxTs6ZFCM8oNufGTsDbKv/tJ/xj8RpvXjRuPBZJuJog==", + "dev": true, + "license": "MIT", + "dependencies": { + "pathe": "^2.0.3", + "picomatch": "^4.0.3" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/sxzz" + } + }, + "node_modules/unplugin-vue-components": { + "version": "31.0.0", + "resolved": "https://registry.npmmirror.com/unplugin-vue-components/-/unplugin-vue-components-31.0.0.tgz", + "integrity": "sha512-4ULwfTZTLuWJ7+S9P7TrcStYLsSRkk6vy2jt/WTfgUEUb0nW9//xxmrfhyHUEVpZ2UKRRwfRb8Yy15PDbVZf+Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^5.0.0", + "local-pkg": "^1.1.2", + "magic-string": "^0.30.21", + "mlly": "^1.8.0", + "obug": "^2.1.1", + "picomatch": "^4.0.3", + "tinyglobby": "^0.2.15", + "unplugin": "^2.3.11", + "unplugin-utils": "^0.3.1" + }, + "engines": { + "node": ">=20.19.0" + }, + "funding": { + "url": "https://github.com/sponsors/antfu" + }, + "peerDependencies": { + "@nuxt/kit": "^3.2.2 || ^4.0.0", + "vue": "^3.0.0" + }, + "peerDependenciesMeta": { + "@nuxt/kit": { + "optional": true + } + } + }, + "node_modules/vdirs": { + "version": "0.1.8", + "resolved": "https://registry.npmmirror.com/vdirs/-/vdirs-0.1.8.tgz", + "integrity": "sha512-H9V1zGRLQZg9b+GdMk8MXDN2Lva0zx72MPahDKc30v+DtwKjfyOSXWRIX4t2mhDubM1H09gPhWeth/BJWPHGUw==", + "license": "MIT", + "dependencies": { + "evtd": "^0.2.2" + }, + "peerDependencies": { + "vue": "^3.0.11" + } + }, + "node_modules/vite": { + "version": "5.4.21", + "resolved": "https://registry.npmmirror.com/vite/-/vite-5.4.21.tgz", + "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==", + "dev": true, + "license": "MIT", + "peer": true, + "dependencies": { + "esbuild": "^0.21.3", + "postcss": "^8.4.43", + "rollup": "^4.20.0" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^18.0.0 || >=20.0.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^18.0.0 || >=20.0.0", + "less": "*", + "lightningcss": "^1.21.0", + "sass": "*", + "sass-embedded": "*", + "stylus": "*", + "sugarss": "*", + "terser": "^5.4.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "less": { + "optional": true + }, + "lightningcss": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + } + } + }, + "node_modules/vooks": { + "version": "0.2.12", + "resolved": "https://registry.npmmirror.com/vooks/-/vooks-0.2.12.tgz", + "integrity": "sha512-iox0I3RZzxtKlcgYaStQYKEzWWGAduMmq+jS7OrNdQo1FgGfPMubGL3uGHOU9n97NIvfFDBGnpSvkWyb/NSn/Q==", + "license": "MIT", + "dependencies": { + "evtd": "^0.2.2" + }, + "peerDependencies": { + "vue": "^3.0.0" + } + }, + "node_modules/vue": { + "version": "3.5.26", + "resolved": "https://registry.npmjs.org/vue/-/vue-3.5.26.tgz", + "integrity": "sha512-SJ/NTccVyAoNUJmkM9KUqPcYlY+u8OVL1X5EW9RIs3ch5H2uERxyyIUI4MRxVCSOiEcupX9xNGde1tL9ZKpimA==", + "license": "MIT", + "peer": true, + "dependencies": { + "@vue/compiler-dom": "3.5.26", + "@vue/compiler-sfc": "3.5.26", + "@vue/runtime-dom": "3.5.26", + "@vue/server-renderer": "3.5.26", + "@vue/shared": "3.5.26" + }, + "peerDependencies": { + "typescript": "*" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/vue-router": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-4.6.4.tgz", + "integrity": "sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==", + "license": "MIT", + "dependencies": { + "@vue/devtools-api": "^6.6.4" + }, + "funding": { + "url": "https://github.com/sponsors/posva" + }, + "peerDependencies": { + "vue": "^3.5.0" + } + }, + "node_modules/vueuc": { + "version": "0.4.65", + "resolved": "https://registry.npmmirror.com/vueuc/-/vueuc-0.4.65.tgz", + "integrity": "sha512-lXuMl+8gsBmruudfxnMF9HW4be8rFziylXFu1VHVNbLVhRTXXV4njvpRuJapD/8q+oFEMSfQMH16E/85VoWRyQ==", + "license": "MIT", + "dependencies": { + "@css-render/vue3-ssr": "^0.15.10", + "@juggle/resize-observer": "^3.3.1", + "css-render": "^0.15.10", + "evtd": "^0.2.4", + "seemly": "^0.3.6", + "vdirs": "^0.1.4", + "vooks": "^0.2.4" + }, + "peerDependencies": { + "vue": "^3.0.11" + } + }, + "node_modules/webpack-virtual-modules": { + "version": "0.6.2", + "resolved": "https://registry.npmmirror.com/webpack-virtual-modules/-/webpack-virtual-modules-0.6.2.tgz", + "integrity": "sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==", + "dev": true, + "license": "MIT" + } + } +} diff --git a/sunderer_app/frontend/package.json b/sunderer_app/frontend/package.json new file mode 100644 index 0000000..cba7bd9 --- /dev/null +++ b/sunderer_app/frontend/package.json @@ -0,0 +1,23 @@ +{ + "name": "my-vue-app", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite --config vite.config.js", + "build": "vite build --config vite.config.js", + "preview": "vite preview --config vite.config.js" + }, + "dependencies": { + "@vicons/ionicons5": "^0.13.0", + "naive-ui": "^2.43.2", + "vue": "^3.4.0", + "vue-router": "^4.2.0" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^4.5.0", + "unplugin-auto-import": "^21.0.0", + "unplugin-vue-components": "^31.0.0", + "vite": "^5.0.0" + } +} diff --git a/sunderer_app/frontend/public/icon3.svg b/sunderer_app/frontend/public/icon3.svg new file mode 100644 index 0000000..08f848b --- /dev/null +++ b/sunderer_app/frontend/public/icon3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sunderer_app/frontend/public/vite.svg b/sunderer_app/frontend/public/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/sunderer_app/frontend/public/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sunderer_app/frontend/src/App.vue b/sunderer_app/frontend/src/App.vue new file mode 100644 index 0000000..2490c87 --- /dev/null +++ b/sunderer_app/frontend/src/App.vue @@ -0,0 +1,21 @@ + + + + + + \ No newline at end of file diff --git a/sunderer_app/frontend/src/App1.vue b/sunderer_app/frontend/src/App1.vue new file mode 100644 index 0000000..6453d53 --- /dev/null +++ b/sunderer_app/frontend/src/App1.vue @@ -0,0 +1,69 @@ + + + \ No newline at end of file diff --git a/sunderer_app/frontend/src/assets/vue.svg b/sunderer_app/frontend/src/assets/vue.svg new file mode 100644 index 0000000..770e9d3 --- /dev/null +++ b/sunderer_app/frontend/src/assets/vue.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sunderer_app/frontend/src/components/HelloWorld.vue b/sunderer_app/frontend/src/components/HelloWorld.vue new file mode 100644 index 0000000..546ebbc --- /dev/null +++ b/sunderer_app/frontend/src/components/HelloWorld.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/sunderer_app/frontend/src/increaseacc.js b/sunderer_app/frontend/src/increaseacc.js new file mode 100644 index 0000000..208992f --- /dev/null +++ b/sunderer_app/frontend/src/increaseacc.js @@ -0,0 +1,12 @@ +// src/increaseacc.js +import { createApp } from 'vue' +import IncreaseAccView from './views/IncreaseAccView.vue' + +const app = createApp(IncreaseAccView) + +// 挂载到 DOM +app.mount('#app') + +// 导出 app 实例,以便 UMD 格式可以访问 +// 如果指定了 name: 'IncreaseAccApp',这个 app 实例将可通过 window.IncreaseAccApp 访问 +export default app \ No newline at end of file diff --git a/sunderer_app/frontend/src/layouts/Applayout.vue b/sunderer_app/frontend/src/layouts/Applayout.vue new file mode 100644 index 0000000..38e59f6 --- /dev/null +++ b/sunderer_app/frontend/src/layouts/Applayout.vue @@ -0,0 +1,141 @@ + + + + + + \ No newline at end of file diff --git a/sunderer_app/frontend/src/main.js b/sunderer_app/frontend/src/main.js new file mode 100644 index 0000000..d1ce3e6 --- /dev/null +++ b/sunderer_app/frontend/src/main.js @@ -0,0 +1,10 @@ +// src/main.js +import { createApp } from 'vue' +import App from './App.vue' +import router from './router' // 确保这个导入是正确的 + +const app = createApp(App) + +app.use(router) // 使用路由器插件 + +app.mount('#app') \ No newline at end of file diff --git a/sunderer_app/frontend/src/router.js b/sunderer_app/frontend/src/router.js new file mode 100644 index 0000000..7ac2722 --- /dev/null +++ b/sunderer_app/frontend/src/router.js @@ -0,0 +1,80 @@ +// C:\vueprj\my-vue-app\src\router.js +import { createRouter, createWebHistory } from 'vue-router' +import LoginView from './views/LoginView.vue' +import RegisterView from './views/RegisterView.vue' +import CustomPasswordSetup from './views/CustomPasswordSetup.vue' + +// --- 新增:导入后台布局和页面 --- +import AppLayout from './layouts/Applayout.vue' // 导入你创建的后台布局 +const DashboardView = () => import('./views/sundererapp/DashboardView.vue') // 动态导入后台页面 +const UsersView = () => import('./views/sundererapp/UsersView.vue') // 动态导入后台页面 +// --- 新增结束 --- + +const routes = [ + { + path: '/', + name: 'Home', + component: LoginView + }, + { + path: '/login', + name: 'Login', + component: LoginView + }, + { + path: '/register', + name: 'Register', + component: RegisterView + }, + { + path: '/update-password', + name: 'CustomPasswordSetup', + component: CustomPasswordSetup + }, + { + path: '/custom-update-password', + name: 'CustomPasswordSetupAlt', + component: CustomPasswordSetup + }, + // --- 新增:后台路由组 --- + { + path: '/sundererapp', // 后台页面的基路径 + component: AppLayout, // 使用 AppLayout 作为父组件 + meta: { requiresAuth: true }, // 可选:标记此路由组需要认证 + children: [ // 定义后台页面的子路由 + { + path: '', // /sundererapp 访问时,默认重定向到 dashboard + redirect: '/sundererapp/dashboard' + }, + { + path: 'dashboard', // 最终路径为 /sundererapp/dashboard + name: 'AppDashboard', + component: DashboardView // 渲染 DashboardView 组件 + }, + { + path: 'users', // 最终路径为 /sundererapp/users + name: 'AppUsers', + component: UsersView // 渲染 UsersView 组件 + }, + // 你可以在这里添加更多后台页面,例如: + // { + // path: 'settings', + // name: 'AppSettings', + // component: () => import('./views/sundererapp/SettingsView.vue') + // } + ] + }, + // --- 新增结束 --- + { + path: '/:pathMatch(.*)*', + name: 'NotFound', + component: LoginView + } +] + +const router = createRouter({ + history: createWebHistory(), + routes +}) + +export default router \ No newline at end of file diff --git a/sunderer_app/frontend/src/style.css b/sunderer_app/frontend/src/style.css new file mode 100644 index 0000000..f691315 --- /dev/null +++ b/sunderer_app/frontend/src/style.css @@ -0,0 +1,79 @@ +:root { + font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; + line-height: 1.5; + font-weight: 400; + + color-scheme: light dark; + color: rgba(255, 255, 255, 0.87); + background-color: #242424; + + font-synthesis: none; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +a { + font-weight: 500; + color: #646cff; + text-decoration: inherit; +} +a:hover { + color: #535bf2; +} + +body { + margin: 0; + display: flex; + place-items: center; + min-width: 320px; + min-height: 100vh; +} + +h1 { + font-size: 3.2em; + line-height: 1.1; +} + +button { + border-radius: 8px; + border: 1px solid transparent; + padding: 0.6em 1.2em; + font-size: 1em; + font-weight: 500; + font-family: inherit; + background-color: #1a1a1a; + cursor: pointer; + transition: border-color 0.25s; +} +button:hover { + border-color: #646cff; +} +button:focus, +button:focus-visible { + outline: 4px auto -webkit-focus-ring-color; +} + +.card { + padding: 2em; +} + +#app { + max-width: 1280px; + margin: 0 auto; + padding: 2rem; + text-align: center; +} + +@media (prefers-color-scheme: light) { + :root { + color: #213547; + background-color: #ffffff; + } + a:hover { + color: #747bff; + } + button { + background-color: #f9f9f9; + } +} diff --git a/sunderer_app/frontend/src/sundererapp.js b/sunderer_app/frontend/src/sundererapp.js new file mode 100644 index 0000000..f9e7ac5 --- /dev/null +++ b/sunderer_app/frontend/src/sundererapp.js @@ -0,0 +1,21 @@ +// src/main.js (或 src/sundererapp.js) +import { createApp } from 'vue' +import App from './App.vue' // 你可能有一个顶层的 App.vue,或者可以直接创建一个简单的根组件 +import router from './router.js' // 导入你配置好的路由 + +// 如果你的 App.vue 是一个空壳,只是为了挂载 router-view +// 你也可以不导入 App.vue,直接创建一个根组件 +// const RootComponent = { +// template: '' +// } +// const app = createApp(RootComponent); + +const app = createApp(App); // 创建 Vue 应用实例 + +app.use(router) // 安装 Vue Router 插件 + +app.mount('#app') // 挂载到 DOM + +// 导出 app 实例,以便 UMD 格式可以访问 +// 如果 vite.config.js 中指定了 name: 'SundererApp',这个 app 实例将可通过 window.SundererApp 访问 +export default app \ No newline at end of file diff --git a/sunderer_app/frontend/src/views/CustomPasswordSetup.vue b/sunderer_app/frontend/src/views/CustomPasswordSetup.vue new file mode 100644 index 0000000..645a4ca --- /dev/null +++ b/sunderer_app/frontend/src/views/CustomPasswordSetup.vue @@ -0,0 +1,166 @@ + + + + + \ No newline at end of file diff --git a/sunderer_app/frontend/src/views/IncreaseAccView.vue b/sunderer_app/frontend/src/views/IncreaseAccView.vue new file mode 100644 index 0000000..9ec0426 --- /dev/null +++ b/sunderer_app/frontend/src/views/IncreaseAccView.vue @@ -0,0 +1,283 @@ + + + + + \ No newline at end of file diff --git a/sunderer_app/frontend/src/views/LoginView.vue b/sunderer_app/frontend/src/views/LoginView.vue new file mode 100644 index 0000000..ef7dd02 --- /dev/null +++ b/sunderer_app/frontend/src/views/LoginView.vue @@ -0,0 +1,258 @@ + + + + + \ No newline at end of file diff --git a/sunderer_app/frontend/src/views/RegisterView.vue b/sunderer_app/frontend/src/views/RegisterView.vue new file mode 100644 index 0000000..d7dce7c --- /dev/null +++ b/sunderer_app/frontend/src/views/RegisterView.vue @@ -0,0 +1,238 @@ + + + + + \ No newline at end of file diff --git a/sunderer_app/frontend/src/views/sundererapp/DashboardView.vue b/sunderer_app/frontend/src/views/sundererapp/DashboardView.vue new file mode 100644 index 0000000..6a5968f --- /dev/null +++ b/sunderer_app/frontend/src/views/sundererapp/DashboardView.vue @@ -0,0 +1,14 @@ + + + + \ No newline at end of file diff --git a/sunderer_app/frontend/src/views/sundererapp/UsersView.vue b/sunderer_app/frontend/src/views/sundererapp/UsersView.vue new file mode 100644 index 0000000..44439b8 --- /dev/null +++ b/sunderer_app/frontend/src/views/sundererapp/UsersView.vue @@ -0,0 +1,26 @@ + + + + \ No newline at end of file diff --git a/sunderer_app/frontend/vite.config copy.js b/sunderer_app/frontend/vite.config copy.js new file mode 100644 index 0000000..28e2f0a --- /dev/null +++ b/sunderer_app/frontend/vite.config copy.js @@ -0,0 +1,38 @@ +// vite.dev.config.js +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +export default defineConfig({ + plugins: [vue()], + base: '/assets/sunderer_app/dist/', // 开发环境使用根路径 + + server: { + host: '0.0.0.0', + port: 5173, + proxy: { + '/api': { + target: 'http://localhost:8000', + changeOrigin: true, + secure: false + } + } + }, + build: { + outDir: '../public/dist', + emptyOutDir: true, + assetsDir: '', + manifest: true, + rollupOptions: { + output: { + entryFileNames: 'js/[name].[hash].js', + chunkFileNames: 'js/[name].[hash].js', + assetFileNames: (assetInfo) => { + if (assetInfo.name.endsWith('.css')) { + return 'css/[name].[hash].[ext]'; + } + return 'assets/[name].[hash].[ext]'; + } + } + } + } +}) \ No newline at end of file diff --git a/sunderer_app/frontend/vite.config.js b/sunderer_app/frontend/vite.config.js new file mode 100644 index 0000000..2bb3160 --- /dev/null +++ b/sunderer_app/frontend/vite.config.js @@ -0,0 +1,56 @@ +// vite.config.js +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' + +import AutoImport from 'unplugin-auto-import/vite' +import Components from 'unplugin-vue-components/vite' +// 导入 Naive UI 的解析器,告诉插件哪些组件属于 Naive UI +import { NaiveUiResolver } from 'unplugin-vue-components/resolvers' + +export default defineConfig({ + plugins: [ + vue(), + AutoImport({ + imports: [ + 'vue', + 'vue-router', + { + // 配置自动导入 Naive UI 的特定 API + 'naive-ui': [ + 'useMessage', // 用于显示消息提示 + 'useDialog', // 用于显示对话框 + 'useNotification', // 用于显示通知 + 'useLoadingBar' // 用于显示顶部加载条 + // 你可以根据需要添加更多,例如 'NButton', 'NCard' 等, + // 但通常推荐让 Components 插件处理组件导入,这里只放 API。 + ] + } + ] + }), + Components({ + resolvers: [NaiveUiResolver()] + }) + ], + build: { + outDir: '../public/SundererPage', + emptyOutDir: false, + rollupOptions: { + input: { + sundererapp: 'src/sundererapp.js' // 入口文件 + }, + output: { + format: 'umd', // 设置输出格式为 UMD + name: 'SundererApp', // 指定全局变量名,构建后应用会挂载到 window.IncreaseAccApp + // 可以保留 hash 以利用缓存,但 UMD 通常用于简单场景,可选 + entryFileNames: 'js/sundererapp.[hash].js', // 例如: increaseacc.js (或 [name].[hash].js) + chunkFileNames: 'js/sundererapp.[hash].js', + assetFileNames: 'js/sundererapp.[hash].[ext]', // 例如: increaseacc.css (或 [name].[hash].[ext]) + // UMD 格式可能需要外部依赖,如果 Vue 是全局引入的,需要声明 + // globals: { + // vue: 'Vue' // 假设 Vue 已通过 script 标签全局引入 + // } + } + } + } +}) + diff --git a/sunderer_app/hooks.py b/sunderer_app/hooks.py new file mode 100644 index 0000000..34dee85 --- /dev/null +++ b/sunderer_app/hooks.py @@ -0,0 +1,271 @@ +app_name = "sunderer_app" +app_title = "Sunderer" +app_publisher = "test" +app_description = "test" +app_email = "898879719@qq.com" +app_license = "agpl-3.0" + +# sunderer_app/hooks.py +website_context = { + "favicon": "/assets/sunderer_app/icon3.svg", + "splash_image": "/assets/sunderer_app/images/icon3.svg" +} + +website_route_rules = [ + {"from_route": "/sundererapp/", "to_route": "sundererapp/index"}, + +] + +# 禁用 Frappe 默认的登录重定向(非常重要!) +disable_website_login_redirect = True + + + + + + + + + +# Apps +# ------------------ + +# required_apps = [] + +# Each item in the list will be shown as an app in the apps page +# add_to_apps_screen = [ +# { +# "name": "sunderer_app", +# "logo": "/assets/sunderer_app/logo.png", +# "title": "Sunderer", +# "route": "/sunderer_app", +# "has_permission": "sunderer_app.api.permission.has_app_permission" +# } +# ] + +# Includes in +# ------------------ + +# include js, css files in header of desk.html +# app_include_css = "/assets/sunderer_app/css/sunderer_app.css" +# app_include_js = "/assets/sunderer_app/js/sunderer_app.js" + +# include js, css files in header of web template +# web_include_css = "/assets/sunderer_app/css/sunderer_app.css" +# web_include_js = "/assets/sunderer_app/js/sunderer_app.js" + +# include custom scss in every website theme (without file extension ".scss") +# website_theme_scss = "sunderer_app/public/scss/website" + +# include js, css files in header of web form +# webform_include_js = {"doctype": "public/js/doctype.js"} +# webform_include_css = {"doctype": "public/css/doctype.css"} + +# include js in page +# page_js = {"page" : "public/js/file.js"} + +# include js in doctype views +# doctype_js = {"doctype" : "public/js/doctype.js"} +# doctype_list_js = {"doctype" : "public/js/doctype_list.js"} +# doctype_tree_js = {"doctype" : "public/js/doctype_tree.js"} +# doctype_calendar_js = {"doctype" : "public/js/doctype_calendar.js"} + +# Svg Icons +# ------------------ +# include app icons in desk +# app_include_icons = "sunderer_app/public/icons.svg" + +# Home Pages +# ---------- + +# application home page (will override Website Settings) +# home_page = "login" + +# website user home page (by Role) +# role_home_page = { +# "Role": "home_page" +# } + +# Generators +# ---------- + +# automatically create page for each record of this doctype +# website_generators = ["Web Page"] + +# Jinja +# ---------- + +# add methods and filters to jinja environment +# jinja = { +# "methods": "sunderer_app.utils.jinja_methods", +# "filters": "sunderer_app.utils.jinja_filters" +# } + +# Installation +# ------------ + +# before_install = "sunderer_app.install.before_install" +# after_install = "sunderer_app.install.after_install" + +# Uninstallation +# ------------ + +# before_uninstall = "sunderer_app.uninstall.before_uninstall" +# after_uninstall = "sunderer_app.uninstall.after_uninstall" + +# Integration Setup +# ------------------ +# To set up dependencies/integrations with other apps +# Name of the app being installed is passed as an argument + +# before_app_install = "sunderer_app.utils.before_app_install" +# after_app_install = "sunderer_app.utils.after_app_install" + +# Integration Cleanup +# ------------------- +# To clean up dependencies/integrations with other apps +# Name of the app being uninstalled is passed as an argument + +# before_app_uninstall = "sunderer_app.utils.before_app_uninstall" +# after_app_uninstall = "sunderer_app.utils.after_app_uninstall" + +# Desk Notifications +# ------------------ +# See frappe.core.notifications.get_notification_config + +# notification_config = "sunderer_app.notifications.get_notification_config" + +# Permissions +# ----------- +# Permissions evaluated in scripted ways + +# permission_query_conditions = { +# "Event": "frappe.desk.doctype.event.event.get_permission_query_conditions", +# } +# +# has_permission = { +# "Event": "frappe.desk.doctype.event.event.has_permission", +# } + +# DocType Class +# --------------- +# Override standard doctype classes + +# override_doctype_class = { +# "ToDo": "custom_app.overrides.CustomToDo" +# } + +# Document Events +# --------------- +# Hook on document methods and events + +# doc_events = { +# "*": { +# "on_update": "method", +# "on_cancel": "method", +# "on_trash": "method" +# } +# } + +# Scheduled Tasks +# --------------- + +# scheduler_events = { +# "all": [ +# "sunderer_app.tasks.all" +# ], +# "daily": [ +# "sunderer_app.tasks.daily" +# ], +# "hourly": [ +# "sunderer_app.tasks.hourly" +# ], +# "weekly": [ +# "sunderer_app.tasks.weekly" +# ], +# "monthly": [ +# "sunderer_app.tasks.monthly" +# ], +# } + +# Testing +# ------- + +# before_tests = "sunderer_app.install.before_tests" + +# Overriding Methods +# ------------------------------ +# +# override_whitelisted_methods = { +# "frappe.desk.doctype.event.event.get_events": "sunderer_app.event.get_events" +# } +# +# each overriding function accepts a `data` argument; +# generated from the base implementation of the doctype dashboard, +# along with any modifications made in other Frappe apps +# override_doctype_dashboards = { +# "Task": "sunderer_app.task.get_dashboard_data" +# } + +# exempt linked doctypes from being automatically cancelled +# +# auto_cancel_exempted_doctypes = ["Auto Repeat"] + +# Ignore links to specified DocTypes when deleting documents +# ----------------------------------------------------------- + +# ignore_links_on_delete = ["Communication", "ToDo"] + +# Request Events +# ---------------- +# before_request = ["sunderer_app.utils.before_request"] +# after_request = ["sunderer_app.utils.after_request"] + +# Job Events +# ---------- +# before_job = ["sunderer_app.utils.before_job"] +# after_job = ["sunderer_app.utils.after_job"] + +# User Data Protection +# -------------------- + +# user_data_fields = [ +# { +# "doctype": "{doctype_1}", +# "filter_by": "{filter_by}", +# "redact_fields": ["{field_1}", "{field_2}"], +# "partial": 1, +# }, +# { +# "doctype": "{doctype_2}", +# "filter_by": "{filter_by}", +# "partial": 1, +# }, +# { +# "doctype": "{doctype_3}", +# "strict": False, +# }, +# { +# "doctype": "{doctype_4}" +# } +# ] + +# Authentication and authorization +# -------------------------------- + +# auth_hooks = [ +# "sunderer_app.auth.validate" +# ] + +# Automatically update python controller files with type annotations for this app. +# export_python_type_annotations = True + +# default_log_clearing_doctypes = { +# "Logging DocType Name": 30 # days to retain logs +# } + +# Translation +# ------------ +# List of apps whose translatable strings should be excluded from this app's translations. +# ignore_translatable_strings_from = [] + diff --git a/sunderer_app/modules.txt b/sunderer_app/modules.txt new file mode 100644 index 0000000..878f63a --- /dev/null +++ b/sunderer_app/modules.txt @@ -0,0 +1 @@ +Sunderer \ No newline at end of file diff --git a/sunderer_app/patches.txt b/sunderer_app/patches.txt new file mode 100644 index 0000000..f15c3a9 --- /dev/null +++ b/sunderer_app/patches.txt @@ -0,0 +1,6 @@ +[pre_model_sync] +# Patches added in this section will be executed before doctypes are migrated +# Read docs to understand patches: https://frappeframework.com/docs/v14/user/en/database-migrations + +[post_model_sync] +# Patches added in this section will be executed after doctypes are migrated \ No newline at end of file diff --git a/sunderer_app/public/IncreaseAcc/icon3.svg b/sunderer_app/public/IncreaseAcc/icon3.svg new file mode 100644 index 0000000..08f848b --- /dev/null +++ b/sunderer_app/public/IncreaseAcc/icon3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sunderer_app/public/IncreaseAcc/increaseacc.js b/sunderer_app/public/IncreaseAcc/increaseacc.js new file mode 100644 index 0000000..eb7c3b0 --- /dev/null +++ b/sunderer_app/public/IncreaseAcc/increaseacc.js @@ -0,0 +1,21 @@ +(function(ot){typeof define=="function"&&define.amd?define(ot):ot()})(function(){"use strict";var ot=document.createElement("style");ot.textContent=`.register-view[data-v-406334d1]{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#00afff,#07c);color:#fff}.container[data-v-406334d1]{width:400px;padding:30px;background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);text-align:center}h2[data-v-406334d1]{margin-bottom:20px}.form-group[data-v-406334d1]{margin-bottom:15px}.input-field[data-v-406334d1]{width:100%;padding:20px;margin:10px 0;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.btn-primary[data-v-406334d1]{width:100%;padding:12px;background:linear-gradient(90deg,#4caf50,#45a049);color:#fff;border:none;border-radius:10px;cursor:pointer;margin:10px 0;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.btn-primary[data-v-406334d1]:disabled{background:#666;cursor:not-allowed}.success-message[data-v-406334d1]{color:green;margin-top:15px;text-align:center}.error-message[data-v-406334d1]{color:red;margin-top:15px;text-align:center}.password-strength-error[data-v-406334d1]{color:orange;margin-top:15px;text-align:center;font-size:.9em;font-style:italic}.back-to-login[data-v-406334d1]{margin-top:20px}.btn-secondary[data-v-406334d1]{width:100%;padding:10px;background:linear-gradient(90deg,#6bffce,#c74dff);color:#fff;border:none;border-radius:10px;cursor:pointer;margin-top:20px;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s} +/*$vite$:1*/`,document.head.appendChild(ot);/** +* @vue/shared v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function ls(e){const t=Object.create(null);for(const s of e.split(","))t[s]=1;return s=>s in t}const L={},ze=[],ae=()=>{},Xs=()=>!1,Mt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cs=e=>e.startsWith("onUpdate:"),z=Object.assign,fs=(e,t)=>{const s=e.indexOf(t);s>-1&&e.splice(s,1)},Gr=Object.prototype.hasOwnProperty,j=(e,t)=>Gr.call(e,t),A=Array.isArray,Xe=e=>At(e)==="[object Map]",Zs=e=>At(e)==="[object Set]",M=e=>typeof e=="function",J=e=>typeof e=="string",Ie=e=>typeof e=="symbol",B=e=>e!==null&&typeof e=="object",Qs=e=>(B(e)||M(e))&&M(e.then)&&M(e.catch),en=Object.prototype.toString,At=e=>en.call(e),kr=e=>At(e).slice(8,-1),tn=e=>At(e)==="[object Object]",us=e=>J(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,lt=ls(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),It=e=>{const t=Object.create(null);return s=>t[s]||(t[s]=e(s))},Yr=/-\w/g,Re=It(e=>e.replace(Yr,t=>t.slice(1).toUpperCase())),zr=/\B([A-Z])/g,Ve=It(e=>e.replace(zr,"-$1").toLowerCase()),sn=It(e=>e.charAt(0).toUpperCase()+e.slice(1)),as=It(e=>e?`on${sn(e)}`:""),$e=(e,t)=>!Object.is(e,t),Rt=(e,...t)=>{for(let s=0;s{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:s})},ds=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let rn;const Ft=()=>rn||(rn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hs(e){if(A(e)){const t={};for(let s=0;s{if(s){const n=s.split(Zr);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Dt(e){let t="";if(J(e))t=e;else if(A(e))for(let s=0;s!!(e&&e.__v_isRef===!0),jt=e=>J(e)?e:e==null?"":A(e)||B(e)&&(e.toString===en||!M(e.toString))?ln(e)?jt(e.value):JSON.stringify(e,cn,2):String(e),cn=(e,t)=>ln(t)?cn(e,t.value):Xe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((s,[n,r],i)=>(s[ps(n,i)+" =>"]=r,s),{})}:Zs(t)?{[`Set(${t.size})`]:[...t.values()].map(s=>ps(s))}:Ie(t)?ps(t):B(t)&&!A(t)&&!tn(t)?String(t):t,ps=(e,t="")=>{var s;return Ie(e)?`Symbol(${(s=e.description)!=null?s:t})`:e};/** +* @vue/reactivity v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let se;class si{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=se,!t&&se&&(this.index=(se.scopes||(se.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0&&--this._on===0&&(se=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s0)return;if(ft){let t=ft;for(ft=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;ct;){let t=ct;for(ct=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=s}}if(e)throw e}function dn(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function hn(e){let t,s=e.depsTail,n=s;for(;n;){const r=n.prevDep;n.version===-1?(n===s&&(s=r),xs(n),ri(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=s}function bs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(pn(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function pn(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ut)||(e.globalVersion=ut,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!bs(e))))return;e.flags|=2;const t=e.dep,s=V,n=fe;V=e,fe=!0;try{dn(e);const r=e.fn(e._value);(t.version===0||$e(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{V=s,fe=n,hn(e),e.flags&=-3}}function xs(e,t=!1){const{dep:s,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),s.subs===e&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let i=s.computed.deps;i;i=i.nextDep)xs(i,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function ri(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let fe=!0;const gn=[];function de(){gn.push(fe),fe=!1}function he(){const e=gn.pop();fe=e===void 0?!0:e}function mn(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=V;V=void 0;try{t()}finally{V=s}}}let ut=0;class ii{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class _n{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!V||!fe||V===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==V)s=this.activeLink=new ii(V,this),V.deps?(s.prevDep=V.depsTail,V.depsTail.nextDep=s,V.depsTail=s):V.deps=V.depsTail=s,bn(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=V.depsTail,s.nextDep=void 0,V.depsTail.nextDep=s,V.depsTail=s,V.deps===s&&(V.deps=n)}return s}trigger(t){this.version++,ut++,this.notify(t)}notify(t){ms();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{_s()}}}function bn(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)bn(n)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const ys=new WeakMap,Ue=Symbol(""),vs=Symbol(""),at=Symbol("");function k(e,t,s){if(fe&&V){let n=ys.get(e);n||ys.set(e,n=new Map);let r=n.get(s);r||(n.set(s,r=new _n),r.map=n,r.key=s),r.track()}}function Ce(e,t,s,n,r,i){const o=ys.get(e);if(!o){ut++;return}const l=f=>{f&&f.trigger()};if(ms(),t==="clear")o.forEach(l);else{const f=A(e),h=f&&us(s);if(f&&s==="length"){const a=Number(n);o.forEach((p,S)=>{(S==="length"||S===at||!Ie(S)&&S>=a)&&l(p)})}else switch((s!==void 0||o.has(void 0))&&l(o.get(s)),h&&l(o.get(at)),t){case"add":f?h&&l(o.get("length")):(l(o.get(Ue)),Xe(e)&&l(o.get(vs)));break;case"delete":f||(l(o.get(Ue)),Xe(e)&&l(o.get(vs)));break;case"set":Xe(e)&&l(o.get(Ue));break}}_s()}function Ze(e){const t=H(e);return t===e?t:(k(t,"iterate",at),pe(e)?t:t.map(Be))}function ws(e){return k(e=H(e),"iterate",at),e}function Fe(e,t){return Ke(e)?Qe(e)?ht(Be(t)):ht(t):Be(t)}const oi={__proto__:null,[Symbol.iterator](){return Ss(this,Symbol.iterator,e=>Fe(this,e))},concat(...e){return Ze(this).concat(...e.map(t=>A(t)?Ze(t):t))},entries(){return Ss(this,"entries",e=>(e[1]=Fe(this,e[1]),e))},every(e,t){return Ee(this,"every",e,t,void 0,arguments)},filter(e,t){return Ee(this,"filter",e,t,s=>s.map(n=>Fe(this,n)),arguments)},find(e,t){return Ee(this,"find",e,t,s=>Fe(this,s),arguments)},findIndex(e,t){return Ee(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ee(this,"findLast",e,t,s=>Fe(this,s),arguments)},findLastIndex(e,t){return Ee(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ee(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ts(this,"includes",e)},indexOf(...e){return Ts(this,"indexOf",e)},join(e){return Ze(this).join(e)},lastIndexOf(...e){return Ts(this,"lastIndexOf",e)},map(e,t){return Ee(this,"map",e,t,void 0,arguments)},pop(){return dt(this,"pop")},push(...e){return dt(this,"push",e)},reduce(e,...t){return xn(this,"reduce",e,t)},reduceRight(e,...t){return xn(this,"reduceRight",e,t)},shift(){return dt(this,"shift")},some(e,t){return Ee(this,"some",e,t,void 0,arguments)},splice(...e){return dt(this,"splice",e)},toReversed(){return Ze(this).toReversed()},toSorted(e){return Ze(this).toSorted(e)},toSpliced(...e){return Ze(this).toSpliced(...e)},unshift(...e){return dt(this,"unshift",e)},values(){return Ss(this,"values",e=>Fe(this,e))}};function Ss(e,t,s){const n=ws(e),r=n[t]();return n!==e&&!pe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=s(i.value)),i}),r}const li=Array.prototype;function Ee(e,t,s,n,r,i){const o=ws(e),l=o!==e&&!pe(e),f=o[t];if(f!==li[t]){const p=f.apply(e,i);return l?Be(p):p}let h=s;o!==e&&(l?h=function(p,S){return s.call(this,Fe(e,p),S,e)}:s.length>2&&(h=function(p,S){return s.call(this,p,S,e)}));const a=f.call(o,h,n);return l&&r?r(a):a}function xn(e,t,s,n){const r=ws(e);let i=s;return r!==e&&(pe(e)?s.length>3&&(i=function(o,l,f){return s.call(this,o,l,f,e)}):i=function(o,l,f){return s.call(this,o,Fe(e,l),f,e)}),r[t](i,...n)}function Ts(e,t,s){const n=H(e);k(n,"iterate",at);const r=n[t](...s);return(r===-1||r===!1)&&Ps(s[0])?(s[0]=H(s[0]),n[t](...s)):r}function dt(e,t,s=[]){de(),ms();const n=H(e)[t].apply(e,s);return _s(),he(),n}const ci=ls("__proto__,__v_isRef,__isVue"),yn=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ie));function fi(e){Ie(e)||(e=String(e));const t=H(this);return k(t,"has",e),t.hasOwnProperty(e)}class vn{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,n){if(s==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(s==="__v_isReactive")return!r;if(s==="__v_isReadonly")return r;if(s==="__v_isShallow")return i;if(s==="__v_raw")return n===(r?i?On:En:i?Cn:Tn).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=A(t);if(!r){let f;if(o&&(f=oi[s]))return f;if(s==="hasOwnProperty")return fi}const l=Reflect.get(t,s,Y(t)?t:n);if((Ie(s)?yn.has(s):ci(s))||(r||k(t,"get",s),i))return l;if(Y(l)){const f=o&&us(s)?l:l.value;return r&&B(f)?Os(f):f}return B(l)?r?Os(l):Es(l):l}}class wn extends vn{constructor(t=!1){super(!1,t)}set(t,s,n,r){let i=t[s];const o=A(t)&&us(s);if(!this._isShallow){const h=Ke(i);if(!pe(n)&&!Ke(n)&&(i=H(i),n=H(n)),!o&&Y(i)&&!Y(n))return h||(i.value=n),!0}const l=o?Number(s)e,Ht=e=>Reflect.getPrototypeOf(e);function pi(e,t,s){return function(...n){const r=this.__v_raw,i=H(r),o=Xe(i),l=e==="entries"||e===Symbol.iterator&&o,f=e==="keys"&&o,h=r[e](...n),a=s?Cs:t?ht:Be;return!t&&k(i,"iterate",f?vs:Ue),{next(){const{value:p,done:S}=h.next();return S?{value:p,done:S}:{value:l?[a(p[0]),a(p[1])]:a(p),done:S}},[Symbol.iterator](){return this}}}}function Nt(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function gi(e,t){const s={get(r){const i=this.__v_raw,o=H(i),l=H(r);e||($e(r,l)&&k(o,"get",r),k(o,"get",l));const{has:f}=Ht(o),h=t?Cs:e?ht:Be;if(f.call(o,r))return h(i.get(r));if(f.call(o,l))return h(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&k(H(r),"iterate",Ue),r.size},has(r){const i=this.__v_raw,o=H(i),l=H(r);return e||($e(r,l)&&k(o,"has",r),k(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,f=H(l),h=t?Cs:e?ht:Be;return!e&&k(f,"iterate",Ue),l.forEach((a,p)=>r.call(i,h(a),h(p),o))}};return z(s,e?{add:Nt("add"),set:Nt("set"),delete:Nt("delete"),clear:Nt("clear")}:{add(r){!t&&!pe(r)&&!Ke(r)&&(r=H(r));const i=H(this);return Ht(i).has.call(i,r)||(i.add(r),Ce(i,"add",r,r)),this},set(r,i){!t&&!pe(i)&&!Ke(i)&&(i=H(i));const o=H(this),{has:l,get:f}=Ht(o);let h=l.call(o,r);h||(r=H(r),h=l.call(o,r));const a=f.call(o,r);return o.set(r,i),h?$e(i,a)&&Ce(o,"set",r,i):Ce(o,"add",r,i),this},delete(r){const i=H(this),{has:o,get:l}=Ht(i);let f=o.call(i,r);f||(r=H(r),f=o.call(i,r)),l&&l.call(i,r);const h=i.delete(r);return f&&Ce(i,"delete",r,void 0),h},clear(){const r=H(this),i=r.size!==0,o=r.clear();return i&&Ce(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=pi(r,e,t)}),s}function Lt(e,t){const s=gi(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(j(s,r)&&r in n?s:n,r,i)}const mi={get:Lt(!1,!1)},_i={get:Lt(!1,!0)},bi={get:Lt(!0,!1)},xi={get:Lt(!0,!0)},Tn=new WeakMap,Cn=new WeakMap,En=new WeakMap,On=new WeakMap;function yi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vi(e){return e.__v_skip||!Object.isExtensible(e)?0:yi(kr(e))}function Es(e){return Ke(e)?e:Vt(e,!1,ui,mi,Tn)}function wi(e){return Vt(e,!1,di,_i,Cn)}function Os(e){return Vt(e,!0,ai,bi,En)}function Ll(e){return Vt(e,!0,hi,xi,On)}function Vt(e,t,s,n,r){if(!B(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=vi(e);if(i===0)return e;const o=r.get(e);if(o)return o;const l=new Proxy(e,i===2?n:s);return r.set(e,l),l}function Qe(e){return Ke(e)?Qe(e.__v_raw):!!(e&&e.__v_isReactive)}function Ke(e){return!!(e&&e.__v_isReadonly)}function pe(e){return!!(e&&e.__v_isShallow)}function Ps(e){return e?!!e.__v_raw:!1}function H(e){const t=e&&e.__v_raw;return t?H(t):e}function Si(e){return!j(e,"__v_skip")&&Object.isExtensible(e)&&nn(e,"__v_skip",!0),e}const Be=e=>B(e)?Es(e):e,ht=e=>B(e)?Os(e):e;function Y(e){return e?e.__v_isRef===!0:!1}function Ti(e){return Y(e)?e.value:e}const Ci={get:(e,t,s)=>t==="__v_raw"?e:Ti(Reflect.get(e,t,s)),set:(e,t,s,n)=>{const r=e[t];return Y(r)&&!Y(s)?(r.value=s,!0):Reflect.set(e,t,s,n)}};function Pn(e){return Qe(e)?e:new Proxy(e,Ci)}class Ei{constructor(t,s,n){this.fn=t,this.setter=s,this._value=void 0,this.dep=new _n(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ut-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&V!==this)return an(this,!0),!0}get value(){const t=this.dep.track();return pn(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Oi(e,t,s=!1){let n,r;return M(e)?n=e:(n=e.get,r=e.set),new Ei(n,r,s)}const $t={},Ut=new WeakMap;let We;function Pi(e,t=!1,s=We){if(s){let n=Ut.get(s);n||Ut.set(s,n=[]),n.push(e)}}function Mi(e,t,s=L){const{immediate:n,deep:r,once:i,scheduler:o,augmentJob:l,call:f}=s,h=O=>r?O:pe(O)||r===!1||r===0?Oe(O,1):Oe(O);let a,p,S,T,I=!1,F=!1;if(Y(e)?(p=()=>e.value,I=pe(e)):Qe(e)?(p=()=>h(e),I=!0):A(e)?(F=!0,I=e.some(O=>Qe(O)||pe(O)),p=()=>e.map(O=>{if(Y(O))return O.value;if(Qe(O))return h(O);if(M(O))return f?f(O,2):O()})):M(e)?t?p=f?()=>f(e,2):e:p=()=>{if(S){de();try{S()}finally{he()}}const O=We;We=a;try{return f?f(e,3,[T]):e(T)}finally{We=O}}:p=ae,t&&r){const O=p,G=r===!0?1/0:r;p=()=>Oe(O(),G)}const ee=ni(),D=()=>{a.stop(),ee&&ee.active&&fs(ee.effects,a)};if(i&&t){const O=t;t=(...G)=>{O(...G),D()}}let K=F?new Array(e.length).fill($t):$t;const q=O=>{if(!(!(a.flags&1)||!a.dirty&&!O))if(t){const G=a.run();if(r||I||(F?G.some((Ne,ye)=>$e(Ne,K[ye])):$e(G,K))){S&&S();const Ne=We;We=a;try{const ye=[G,K===$t?void 0:F&&K[0]===$t?[]:K,T];K=G,f?f(t,3,ye):t(...ye)}finally{We=Ne}}}else a.run()};return l&&l(q),a=new fn(p),a.scheduler=o?()=>o(q,!1):q,T=O=>Pi(O,!1,a),S=a.onStop=()=>{const O=Ut.get(a);if(O){if(f)f(O,4);else for(const G of O)G();Ut.delete(a)}},t?n?q(!0):K=a.run():o?o(q.bind(null,!0),!0):a.run(),D.pause=a.pause.bind(a),D.resume=a.resume.bind(a),D.stop=D,D}function Oe(e,t=1/0,s){if(t<=0||!B(e)||e.__v_skip||(s=s||new Map,(s.get(e)||0)>=t))return e;if(s.set(e,t),t--,Y(e))Oe(e.value,t,s);else if(A(e))for(let n=0;n{Oe(n,t,s)});else if(tn(e)){for(const n in e)Oe(e[n],t,s);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Oe(e[n],t,s)}return e}/** +* @vue/runtime-core v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const pt=[];let Ms=!1;function Vl(e,...t){if(Ms)return;Ms=!0,de();const s=pt.length?pt[pt.length-1].component:null,n=s&&s.appContext.config.warnHandler,r=Ai();if(n)et(n,s,11,[e+t.map(i=>{var o,l;return(l=(o=i.toString)==null?void 0:o.call(i))!=null?l:JSON.stringify(i)}).join(""),s&&s.proxy,r.map(({vnode:i})=>`at <${Sr(s,i.type)}>`).join(` +`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(` +`,...Ii(r)),console.warn(...i)}he(),Ms=!1}function Ai(){let e=pt[pt.length-1];if(!e)return[];const t=[];for(;e;){const s=t[0];s&&s.vnode===e?s.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function Ii(e){const t=[];return e.forEach((s,n)=>{t.push(...n===0?[]:[` +`],...Ri(s))}),t}function Ri({vnode:e,recurseCount:t}){const s=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${Sr(e.component,e.type,n)}`,i=">"+s;return e.props?[r,...Fi(e.props),i]:[r+i]}function Fi(e){const t=[],s=Object.keys(e);return s.slice(0,3).forEach(n=>{t.push(...Mn(n,e[n]))}),s.length>3&&t.push(" ..."),t}function Mn(e,t,s){return J(t)?(t=JSON.stringify(t),s?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?s?t:[`${e}=${t}`]:Y(t)?(t=Mn(e,H(t.value),!0),s?t:[`${e}=Ref<`,t,">"]):M(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=H(t),s?t:[`${e}=`,t])}function et(e,t,s,n){try{return n?e(...n):e()}catch(r){Kt(r,t,s)}}function ge(e,t,s,n){if(M(e)){const r=et(e,t,s,n);return r&&Qs(r)&&r.catch(i=>{Kt(i,t,s)}),r}if(A(e)){const r=[];for(let i=0;i>>1,r=X[n],i=gt(r);i=gt(s)?X.push(e):X.splice(Hi(t),0,e),e.flags|=1,In()}}function In(){Bt||(Bt=An.then(Dn))}function Ni(e){A(e)?tt.push(...e):De&&e.id===-1?De.splice(st+1,0,e):e.flags&1||(tt.push(e),e.flags|=1),In()}function Rn(e,t,s=me+1){for(;sgt(s)-gt(n));if(tt.length=0,De){De.push(...t);return}for(De=t,st=0;ste.id==null?e.flags&2?-1:1/0:e.id;function Dn(e){try{for(me=0;me{n._d&&pr(-1);const i=Wt(t);let o;try{o=e(...r)}finally{Wt(i),n._d&&pr(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function Hn(e,t){if(ce===null)return e;const s=es(ce),n=e.dirs||(e.dirs=[]);for(let r=0;r1)return s&&M(t)?t.call(n&&n.proxy):t}}const $i=Symbol.for("v-scx"),Ui=()=>qt($i);function Is(e,t,s){return Nn(e,t,s)}function Nn(e,t,s=L){const{immediate:n,deep:r,flush:i,once:o}=s,l=z({},s),f=t&&n||!t&&i!=="post";let h;if(Tt){if(i==="sync"){const T=Ui();h=T.__watcherHandles||(T.__watcherHandles=[])}else if(!f){const T=()=>{};return T.stop=ae,T.resume=ae,T.pause=ae,T}}const a=Q;l.call=(T,I,F)=>ge(T,a,I,F);let p=!1;i==="post"?l.scheduler=T=>{ie(T,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(T,I)=>{I?T():As(T)}),l.augmentJob=T=>{t&&(T.flags|=4),p&&(T.flags|=2,a&&(T.id=a.uid,T.i=a))};const S=Mi(e,t,l);return Tt&&(h?h.push(S):f&&S()),S}function Ki(e,t,s){const n=this.proxy,r=J(e)?e.includes(".")?Ln(n,e):()=>n[e]:e.bind(n,n);let i;M(t)?i=t:(i=t.handler,s=t);const o=St(this),l=Nn(r,i.bind(n),s);return o(),l}function Ln(e,t){const s=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,qi=Symbol("_leaveCb");function Rs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Rs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Vn(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Jt=new WeakMap;function mt(e,t,s,n,r=!1){if(A(e)){e.forEach((I,F)=>mt(I,t&&(A(t)?t[F]:t),s,n,r));return}if(_t(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&mt(e,t,s,n.component.subTree);return}const i=n.shapeFlag&4?es(n.component):n.el,o=r?null:i,{i:l,r:f}=e,h=t&&t.r,a=l.refs===L?l.refs={}:l.refs,p=l.setupState,S=H(p),T=p===L?Xs:I=>j(S,I);if(h!=null&&h!==f){if($n(t),J(h))a[h]=null,T(h)&&(p[h]=null);else if(Y(h)){h.value=null;const I=t;I.k&&(a[I.k]=null)}}if(M(f))et(f,l,12,[o,a]);else{const I=J(f),F=Y(f);if(I||F){const ee=()=>{if(e.f){const D=I?T(f)?p[f]:a[f]:f.value;if(r)A(D)&&fs(D,i);else if(A(D))D.includes(i)||D.push(i);else if(I)a[f]=[i],T(f)&&(p[f]=a[f]);else{const K=[i];f.value=K,e.k&&(a[e.k]=K)}}else I?(a[f]=o,T(f)&&(p[f]=o)):F&&(f.value=o,e.k&&(a[e.k]=o))};if(o){const D=()=>{ee(),Jt.delete(e)};D.id=-1,Jt.set(e,D),ie(D,s)}else $n(e),ee()}}}function $n(e){const t=Jt.get(e);t&&(t.flags|=8,Jt.delete(e))}Ft().requestIdleCallback,Ft().cancelIdleCallback;const _t=e=>!!e.type.__asyncLoader,Un=e=>e.type.__isKeepAlive;function Ji(e,t){Kn(e,"a",t)}function Gi(e,t){Kn(e,"da",t)}function Kn(e,t,s=Q){const n=e.__wdc||(e.__wdc=()=>{let r=s;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Gt(t,n,s),s){let r=s.parent;for(;r&&r.parent;)Un(r.parent.vnode)&&ki(n,t,s,r),r=r.parent}}function ki(e,t,s,n){const r=Gt(t,e,n,!0);Bn(()=>{fs(n[t],r)},s)}function Gt(e,t,s=Q,n=!1){if(s){const r=s[e]||(s[e]=[]),i=t.__weh||(t.__weh=(...o)=>{de();const l=St(s),f=ge(t,s,e,o);return l(),he(),f});return n?r.unshift(i):r.push(i),i}}const Pe=e=>(t,s=Q)=>{(!Tt||e==="sp")&&Gt(e,(...n)=>t(...n),s)},Yi=Pe("bm"),zi=Pe("m"),Xi=Pe("bu"),Zi=Pe("u"),Qi=Pe("bum"),Bn=Pe("um"),eo=Pe("sp"),to=Pe("rtg"),so=Pe("rtc");function no(e,t=Q){Gt("ec",e,t)}const ro=Symbol.for("v-ndc"),Fs=e=>e?yr(e)?es(e):Fs(e.parent):null,bt=z(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Fs(e.parent),$root:e=>Fs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Gn(e),$forceUpdate:e=>e.f||(e.f=()=>{As(e.update)}),$nextTick:e=>e.n||(e.n=ji.bind(e.proxy)),$watch:e=>Ki.bind(e)}),Ds=(e,t)=>e!==L&&!e.__isScriptSetup&&j(e,t),io={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:r,props:i,accessCache:o,type:l,appContext:f}=e;if(t[0]!=="$"){const S=o[t];if(S!==void 0)switch(S){case 1:return n[t];case 2:return r[t];case 4:return s[t];case 3:return i[t]}else{if(Ds(n,t))return o[t]=1,n[t];if(r!==L&&j(r,t))return o[t]=2,r[t];if(j(i,t))return o[t]=3,i[t];if(s!==L&&j(s,t))return o[t]=4,s[t];js&&(o[t]=0)}}const h=bt[t];let a,p;if(h)return t==="$attrs"&&k(e.attrs,"get",""),h(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(s!==L&&j(s,t))return o[t]=4,s[t];if(p=f.config.globalProperties,j(p,t))return p[t]},set({_:e},t,s){const{data:n,setupState:r,ctx:i}=e;return Ds(r,t)?(r[t]=s,!0):n!==L&&j(n,t)?(n[t]=s,!0):j(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:r,props:i,type:o}},l){let f;return!!(s[l]||e!==L&&l[0]!=="$"&&j(e,l)||Ds(t,l)||j(i,l)||j(n,l)||j(bt,l)||j(r.config.globalProperties,l)||(f=o.__cssModules)&&f[l])},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:j(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Wn(e){return A(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}let js=!0;function oo(e){const t=Gn(e),s=e.proxy,n=e.ctx;js=!1,t.beforeCreate&&qn(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:f,inject:h,created:a,beforeMount:p,mounted:S,beforeUpdate:T,updated:I,activated:F,deactivated:ee,beforeDestroy:D,beforeUnmount:K,destroyed:q,unmounted:O,render:G,renderTracked:Ne,renderTriggered:ye,errorCaptured:Le,serverPrefetch:ss,expose:Ge,inheritAttrs:Ct,components:ns,directives:rs,filters:Ys}=t;if(h&&lo(h,n,null),o)for(const W in o){const $=o[W];M($)&&(n[W]=$.bind(s))}if(r){const W=r.call(s,s);B(W)&&(e.data=Es(W))}if(js=!0,i)for(const W in i){const $=i[W],ke=M($)?$.bind(s,s):M($.get)?$.get.bind(s,s):ae,is=!M($)&&M($.set)?$.set.bind(s):ae,Ye=zo({get:ke,set:is});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:ve=>Ye.value=ve})}if(l)for(const W in l)Jn(l[W],n,s,W);if(f){const W=M(f)?f.call(s):f;Reflect.ownKeys(W).forEach($=>{Vi($,W[$])})}a&&qn(a,e,"c");function te(W,$){A($)?$.forEach(ke=>W(ke.bind(s))):$&&W($.bind(s))}if(te(Yi,p),te(zi,S),te(Xi,T),te(Zi,I),te(Ji,F),te(Gi,ee),te(no,Le),te(so,Ne),te(to,ye),te(Qi,K),te(Bn,O),te(eo,ss),A(Ge))if(Ge.length){const W=e.exposed||(e.exposed={});Ge.forEach($=>{Object.defineProperty(W,$,{get:()=>s[$],set:ke=>s[$]=ke,enumerable:!0})})}else e.exposed||(e.exposed={});G&&e.render===ae&&(e.render=G),Ct!=null&&(e.inheritAttrs=Ct),ns&&(e.components=ns),rs&&(e.directives=rs),ss&&Vn(e)}function lo(e,t,s=ae){A(e)&&(e=Hs(e));for(const n in e){const r=e[n];let i;B(r)?"default"in r?i=qt(r.from||n,r.default,!0):i=qt(r.from||n):i=qt(r),Y(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[n]=i}}function qn(e,t,s){ge(A(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function Jn(e,t,s,n){let r=n.includes(".")?Ln(s,n):()=>s[n];if(J(e)){const i=t[e];M(i)&&Is(r,i)}else if(M(e))Is(r,e.bind(s));else if(B(e))if(A(e))e.forEach(i=>Jn(i,t,s,n));else{const i=M(e.handler)?e.handler.bind(s):t[e.handler];M(i)&&Is(r,i,e)}}function Gn(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let f;return l?f=l:!r.length&&!s&&!n?f=t:(f={},r.length&&r.forEach(h=>kt(f,h,o,!0)),kt(f,t,o)),B(t)&&i.set(t,f),f}function kt(e,t,s,n=!1){const{mixins:r,extends:i}=t;i&&kt(e,i,s,!0),r&&r.forEach(o=>kt(e,o,s,!0));for(const o in t)if(!(n&&o==="expose")){const l=co[o]||s&&s[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const co={data:kn,props:Yn,emits:Yn,methods:xt,computed:xt,beforeCreate:Z,created:Z,beforeMount:Z,mounted:Z,beforeUpdate:Z,updated:Z,beforeDestroy:Z,beforeUnmount:Z,destroyed:Z,unmounted:Z,activated:Z,deactivated:Z,errorCaptured:Z,serverPrefetch:Z,components:xt,directives:xt,watch:uo,provide:kn,inject:fo};function kn(e,t){return t?e?function(){return z(M(e)?e.call(this,this):e,M(t)?t.call(this,this):t)}:t:e}function fo(e,t){return xt(Hs(e),Hs(t))}function Hs(e){if(A(e)){const t={};for(let s=0;st==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Re(t)}Modifiers`]||e[`${Ve(t)}Modifiers`];function go(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||L;let r=s;const i=t.startsWith("update:"),o=i&&po(n,t.slice(7));o&&(o.trim&&(r=s.map(a=>J(a)?a.trim():a)),o.number&&(r=s.map(ds)));let l,f=n[l=as(t)]||n[l=as(Re(t))];!f&&i&&(f=n[l=as(Ve(t))]),f&&ge(f,e,6,r);const h=n[l+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ge(h,e,6,r)}}const mo=new WeakMap;function Xn(e,t,s=!1){const n=s?mo:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!M(e)){const f=h=>{const a=Xn(h,t,!0);a&&(l=!0,z(o,a))};!s&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}return!i&&!l?(B(e)&&n.set(e,null),null):(A(i)?i.forEach(f=>o[f]=null):z(o,i),B(e)&&n.set(e,o),o)}function Yt(e,t){return!e||!Mt(t)?!1:(t=t.slice(2).replace(/Once$/,""),j(e,t[0].toLowerCase()+t.slice(1))||j(e,Ve(t))||j(e,t))}function $l(){}function Zn(e){const{type:t,vnode:s,proxy:n,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:f,render:h,renderCache:a,props:p,data:S,setupState:T,ctx:I,inheritAttrs:F}=e,ee=Wt(e);let D,K;try{if(s.shapeFlag&4){const O=r||n,G=O;D=be(h.call(G,O,a,p,T,S,I)),K=l}else{const O=t;D=be(O.length>1?O(p,{attrs:l,slots:o,emit:f}):O(p,null)),K=t.props?l:_o(l)}}catch(O){yt.length=0,Kt(O,e,1),D=Me(je)}let q=D;if(K&&F!==!1){const O=Object.keys(K),{shapeFlag:G}=q;O.length&&G&7&&(i&&O.some(cs)&&(K=bo(K,i)),q=rt(q,K,!1,!0))}return s.dirs&&(q=rt(q,null,!1,!0),q.dirs=q.dirs?q.dirs.concat(s.dirs):s.dirs),s.transition&&Rs(q,s.transition),D=q,Wt(ee),D}const _o=e=>{let t;for(const s in e)(s==="class"||s==="style"||Mt(s))&&((t||(t={}))[s]=e[s]);return t},bo=(e,t)=>{const s={};for(const n in e)(!cs(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function xo(e,t,s){const{props:n,children:r,component:i}=e,{props:o,children:l,patchFlag:f}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&f>=0){if(f&1024)return!0;if(f&16)return n?Qn(n,o,h):!!o;if(f&8){const a=t.dynamicProps;for(let p=0;pObject.create(er),sr=e=>Object.getPrototypeOf(e)===er;function vo(e,t,s,n=!1){const r={},i=tr();e.propsDefaults=Object.create(null),nr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);s?e.props=n?r:wi(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function wo(e,t,s,n){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=H(r),[f]=e.propsOptions;let h=!1;if((n||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p{f=!0;const[S,T]=rr(p,t,!0);z(o,S),T&&l.push(...T)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!f)return B(e)&&n.set(e,ze),ze;if(A(i))for(let a=0;ae==="_"||e==="_ctx"||e==="$stable",Vs=e=>A(e)?e.map(be):[be(e)],To=(e,t,s)=>{if(t._n)return t;const n=Li((...r)=>Vs(t(...r)),s);return n._c=!1,n},or=(e,t,s)=>{const n=e._ctx;for(const r in e){if(Ls(r))continue;const i=e[r];if(M(i))t[r]=To(r,i,n);else if(i!=null){const o=Vs(i);t[r]=()=>o}}},lr=(e,t)=>{const s=Vs(t);e.slots.default=()=>s},cr=(e,t,s)=>{for(const n in t)(s||!Ls(n))&&(e[n]=t[n])},Co=(e,t,s)=>{const n=e.slots=tr();if(e.vnode.shapeFlag&32){const r=t._;r?(cr(n,t,s),s&&nn(n,"_",r,!0)):or(t,n)}else t&&lr(e,t)},Eo=(e,t,s)=>{const{vnode:n,slots:r}=e;let i=!0,o=L;if(n.shapeFlag&32){const l=t._;l?s&&l===1?i=!1:cr(r,t,s):(i=!t.$stable,or(t,r)),o=t}else t&&(lr(e,t),o={default:1});if(i)for(const l in r)!Ls(l)&&o[l]==null&&delete r[l]},ie=Io;function Oo(e){return Po(e)}function Po(e,t){const s=Ft();s.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:o,createText:l,createComment:f,setText:h,setElementText:a,parentNode:p,nextSibling:S,setScopeId:T=ae,insertStaticContent:I}=e,F=(c,u,d,b=null,g=null,m=null,v=void 0,y=null,x=!!u.dynamicChildren)=>{if(c===u)return;c&&!wt(c,u)&&(b=os(c),ve(c,g,m,!0),c=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:_,ref:E,shapeFlag:w}=u;switch(_){case zt:ee(c,u,d,b);break;case je:D(c,u,d,b);break;case Us:c==null&&K(u,d,b,v);break;case _e:ns(c,u,d,b,g,m,v,y,x);break;default:w&1?G(c,u,d,b,g,m,v,y,x):w&6?rs(c,u,d,b,g,m,v,y,x):(w&64||w&128)&&_.process(c,u,d,b,g,m,v,y,x,Ot)}E!=null&&g?mt(E,c&&c.ref,m,u||c,!u):E==null&&c&&c.ref!=null&&mt(c.ref,null,m,c,!0)},ee=(c,u,d,b)=>{if(c==null)n(u.el=l(u.children),d,b);else{const g=u.el=c.el;u.children!==c.children&&h(g,u.children)}},D=(c,u,d,b)=>{c==null?n(u.el=f(u.children||""),d,b):u.el=c.el},K=(c,u,d,b)=>{[c.el,c.anchor]=I(c.children,u,d,b,c.el,c.anchor)},q=({el:c,anchor:u},d,b)=>{let g;for(;c&&c!==u;)g=S(c),n(c,d,b),c=g;n(u,d,b)},O=({el:c,anchor:u})=>{let d;for(;c&&c!==u;)d=S(c),r(c),c=d;r(u)},G=(c,u,d,b,g,m,v,y,x)=>{if(u.type==="svg"?v="svg":u.type==="math"&&(v="mathml"),c==null)Ne(u,d,b,g,m,v,y,x);else{const _=c.el&&c.el._isVueCE?c.el:null;try{_&&_._beginPatch(),ss(c,u,g,m,v,y,x)}finally{_&&_._endPatch()}}},Ne=(c,u,d,b,g,m,v,y)=>{let x,_;const{props:E,shapeFlag:w,transition:C,dirs:P}=c;if(x=c.el=o(c.type,m,E&&E.is,E),w&8?a(x,c.children):w&16&&Le(c.children,x,null,b,g,$s(c,m),v,y),P&&qe(c,null,b,"created"),ye(x,c,c.scopeId,v,b),E){for(const U in E)U!=="value"&&!lt(U)&&i(x,U,null,E[U],m,b);"value"in E&&i(x,"value",null,E.value,m),(_=E.onVnodeBeforeMount)&&xe(_,b,c)}P&&qe(c,null,b,"beforeMount");const R=Mo(g,C);R&&C.beforeEnter(x),n(x,u,d),((_=E&&E.onVnodeMounted)||R||P)&&ie(()=>{_&&xe(_,b,c),R&&C.enter(x),P&&qe(c,null,b,"mounted")},g)},ye=(c,u,d,b,g)=>{if(d&&T(c,d),b)for(let m=0;m{for(let _=x;_{const y=u.el=c.el;let{patchFlag:x,dynamicChildren:_,dirs:E}=u;x|=c.patchFlag&16;const w=c.props||L,C=u.props||L;let P;if(d&&Je(d,!1),(P=C.onVnodeBeforeUpdate)&&xe(P,d,u,c),E&&qe(u,c,d,"beforeUpdate"),d&&Je(d,!0),(w.innerHTML&&C.innerHTML==null||w.textContent&&C.textContent==null)&&a(y,""),_?Ge(c.dynamicChildren,_,y,d,b,$s(u,g),m):v||$(c,u,y,null,d,b,$s(u,g),m,!1),x>0){if(x&16)Ct(y,w,C,d,g);else if(x&2&&w.class!==C.class&&i(y,"class",null,C.class,g),x&4&&i(y,"style",w.style,C.style,g),x&8){const R=u.dynamicProps;for(let U=0;U{P&&xe(P,d,u,c),E&&qe(u,c,d,"updated")},b)},Ge=(c,u,d,b,g,m,v)=>{for(let y=0;y{if(u!==d){if(u!==L)for(const m in u)!lt(m)&&!(m in d)&&i(c,m,u[m],null,g,b);for(const m in d){if(lt(m))continue;const v=d[m],y=u[m];v!==y&&m!=="value"&&i(c,m,y,v,g,b)}"value"in d&&i(c,"value",u.value,d.value,g)}},ns=(c,u,d,b,g,m,v,y,x)=>{const _=u.el=c?c.el:l(""),E=u.anchor=c?c.anchor:l("");let{patchFlag:w,dynamicChildren:C,slotScopeIds:P}=u;P&&(y=y?y.concat(P):P),c==null?(n(_,d,b),n(E,d,b),Le(u.children||[],d,E,g,m,v,y,x)):w>0&&w&64&&C&&c.dynamicChildren&&c.dynamicChildren.length===C.length?(Ge(c.dynamicChildren,C,d,g,m,v,y),(u.key!=null||g&&u===g.subTree)&&fr(c,u,!0)):$(c,u,d,E,g,m,v,y,x)},rs=(c,u,d,b,g,m,v,y,x)=>{u.slotScopeIds=y,c==null?u.shapeFlag&512?g.ctx.activate(u,d,b,v,x):Ys(u,d,b,g,m,v,x):Ur(c,u,x)},Ys=(c,u,d,b,g,m,v)=>{const y=c.component=$o(c,b,g);if(Un(c)&&(y.ctx.renderer=Ot),Ko(y,!1,v),y.asyncDep){if(g&&g.registerDep(y,te,v),!c.el){const x=y.subTree=Me(je);D(null,x,u,d),c.placeholder=x.el}}else te(y,c,u,d,g,m,v)},Ur=(c,u,d)=>{const b=u.component=c.component;if(xo(c,u,d))if(b.asyncDep&&!b.asyncResolved){W(b,u,d);return}else b.next=u,b.update();else u.el=c.el,b.vnode=u},te=(c,u,d,b,g,m,v)=>{const y=()=>{if(c.isMounted){let{next:w,bu:C,u:P,parent:R,vnode:U}=c;{const Se=ur(c);if(Se){w&&(w.el=U.el,W(c,w,v)),Se.asyncDep.then(()=>{c.isUnmounted||y()});return}}let N=w,ne;Je(c,!1),w?(w.el=U.el,W(c,w,v)):w=U,C&&Rt(C),(ne=w.props&&w.props.onVnodeBeforeUpdate)&&xe(ne,R,w,U),Je(c,!0);const re=Zn(c),we=c.subTree;c.subTree=re,F(we,re,p(we.el),os(we),c,g,m),w.el=re.el,N===null&&yo(c,re.el),P&&ie(P,g),(ne=w.props&&w.props.onVnodeUpdated)&&ie(()=>xe(ne,R,w,U),g)}else{let w;const{el:C,props:P}=u,{bm:R,m:U,parent:N,root:ne,type:re}=c,we=_t(u);Je(c,!1),R&&Rt(R),!we&&(w=P&&P.onVnodeBeforeMount)&&xe(w,N,u),Je(c,!0);{ne.ce&&ne.ce._def.shadowRoot!==!1&&ne.ce._injectChildStyle(re);const Se=c.subTree=Zn(c);F(null,Se,d,b,c,g,m),u.el=Se.el}if(U&&ie(U,g),!we&&(w=P&&P.onVnodeMounted)){const Se=u;ie(()=>xe(w,N,Se),g)}(u.shapeFlag&256||N&&_t(N.vnode)&&N.vnode.shapeFlag&256)&&c.a&&ie(c.a,g),c.isMounted=!0,u=d=b=null}};c.scope.on();const x=c.effect=new fn(y);c.scope.off();const _=c.update=x.run.bind(x),E=c.job=x.runIfDirty.bind(x);E.i=c,E.id=c.uid,x.scheduler=()=>As(E),Je(c,!0),_()},W=(c,u,d)=>{u.component=c;const b=c.vnode.props;c.vnode=u,c.next=null,wo(c,u.props,b,d),Eo(c,u.children,d),de(),Rn(c),he()},$=(c,u,d,b,g,m,v,y,x=!1)=>{const _=c&&c.children,E=c?c.shapeFlag:0,w=u.children,{patchFlag:C,shapeFlag:P}=u;if(C>0){if(C&128){is(_,w,d,b,g,m,v,y,x);return}else if(C&256){ke(_,w,d,b,g,m,v,y,x);return}}P&8?(E&16&&Et(_,g,m),w!==_&&a(d,w)):E&16?P&16?is(_,w,d,b,g,m,v,y,x):Et(_,g,m,!0):(E&8&&a(d,""),P&16&&Le(w,d,b,g,m,v,y,x))},ke=(c,u,d,b,g,m,v,y,x)=>{c=c||ze,u=u||ze;const _=c.length,E=u.length,w=Math.min(_,E);let C;for(C=0;CE?Et(c,g,m,!0,!1,w):Le(u,d,b,g,m,v,y,x,w)},is=(c,u,d,b,g,m,v,y,x)=>{let _=0;const E=u.length;let w=c.length-1,C=E-1;for(;_<=w&&_<=C;){const P=c[_],R=u[_]=x?He(u[_]):be(u[_]);if(wt(P,R))F(P,R,d,null,g,m,v,y,x);else break;_++}for(;_<=w&&_<=C;){const P=c[w],R=u[C]=x?He(u[C]):be(u[C]);if(wt(P,R))F(P,R,d,null,g,m,v,y,x);else break;w--,C--}if(_>w){if(_<=C){const P=C+1,R=PC)for(;_<=w;)ve(c[_],g,m,!0),_++;else{const P=_,R=_,U=new Map;for(_=R;_<=C;_++){const le=u[_]=x?He(u[_]):be(u[_]);le.key!=null&&U.set(le.key,_)}let N,ne=0;const re=C-R+1;let we=!1,Se=0;const Pt=new Array(re);for(_=0;_=re){ve(le,g,m,!0);continue}let Te;if(le.key!=null)Te=U.get(le.key);else for(N=R;N<=C;N++)if(Pt[N-R]===0&&wt(le,u[N])){Te=N;break}Te===void 0?ve(le,g,m,!0):(Pt[Te-R]=_+1,Te>=Se?Se=Te:we=!0,F(le,u[Te],d,null,g,m,v,y,x),ne++)}const Wr=we?Ao(Pt):ze;for(N=Wr.length-1,_=re-1;_>=0;_--){const le=R+_,Te=u[le],qr=u[le+1],Jr=le+1{const{el:m,type:v,transition:y,children:x,shapeFlag:_}=c;if(_&6){Ye(c.component.subTree,u,d,b);return}if(_&128){c.suspense.move(u,d,b);return}if(_&64){v.move(c,u,d,Ot);return}if(v===_e){n(m,u,d);for(let w=0;wy.enter(m),g);else{const{leave:w,delayLeave:C,afterLeave:P}=y,R=()=>{c.ctx.isUnmounted?r(m):n(m,u,d)},U=()=>{m._isLeaving&&m[qi](!0),w(m,()=>{R(),P&&P()})};C?C(m,R,U):U()}else n(m,u,d)},ve=(c,u,d,b=!1,g=!1)=>{const{type:m,props:v,ref:y,children:x,dynamicChildren:_,shapeFlag:E,patchFlag:w,dirs:C,cacheIndex:P}=c;if(w===-2&&(g=!1),y!=null&&(de(),mt(y,null,d,c,!0),he()),P!=null&&(u.renderCache[P]=void 0),E&256){u.ctx.deactivate(c);return}const R=E&1&&C,U=!_t(c);let N;if(U&&(N=v&&v.onVnodeBeforeUnmount)&&xe(N,u,c),E&6)Hl(c.component,d,b);else{if(E&128){c.suspense.unmount(d,b);return}R&&qe(c,null,u,"beforeUnmount"),E&64?c.type.remove(c,u,d,Ot,b):_&&!_.hasOnce&&(m!==_e||w>0&&w&64)?Et(_,u,d,!1,!0):(m===_e&&w&384||!g&&E&16)&&Et(x,u,d),b&&Kr(c)}(U&&(N=v&&v.onVnodeUnmounted)||R)&&ie(()=>{N&&xe(N,u,c),R&&qe(c,null,u,"unmounted")},d)},Kr=c=>{const{type:u,el:d,anchor:b,transition:g}=c;if(u===_e){jl(d,b);return}if(u===Us){O(c);return}const m=()=>{r(d),g&&!g.persisted&&g.afterLeave&&g.afterLeave()};if(c.shapeFlag&1&&g&&!g.persisted){const{leave:v,delayLeave:y}=g,x=()=>v(d,m);y?y(c.el,m,x):x()}else m()},jl=(c,u)=>{let d;for(;c!==u;)d=S(c),r(c),c=d;r(u)},Hl=(c,u,d)=>{const{bum:b,scope:g,job:m,subTree:v,um:y,m:x,a:_}=c;ar(x),ar(_),b&&Rt(b),g.stop(),m&&(m.flags|=8,ve(v,c,u,d)),y&&ie(y,u),ie(()=>{c.isUnmounted=!0},u)},Et=(c,u,d,b=!1,g=!1,m=0)=>{for(let v=m;v{if(c.shapeFlag&6)return os(c.component.subTree);if(c.shapeFlag&128)return c.suspense.next();const u=S(c.anchor||c.el),d=u&&u[Bi];return d?S(d):u};let zs=!1;const Br=(c,u,d)=>{let b;c==null?u._vnode&&(ve(u._vnode,null,null,!0),b=u._vnode.component):F(u._vnode||null,c,u,null,null,null,d),u._vnode=c,zs||(zs=!0,Rn(b),Fn(),zs=!1)},Ot={p:F,um:ve,m:Ye,r:Kr,mt:Ys,mc:Le,pc:$,pbc:Ge,n:os,o:e};return{render:Br,hydrate:void 0,createApp:ho(Br)}}function $s({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Je({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Mo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fr(e,t,s=!1){const n=e.children,r=t.children;if(A(n)&&A(r))for(let i=0;i>1,e[s[l]]0&&(t[n]=s[i-1]),s[i]=n)}}for(i=s.length,o=s[i-1];i-- >0;)s[i]=o,o=t[o];return s}function ur(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ur(t)}function ar(e){if(e)for(let t=0;te.__isSuspense;function Io(e,t){t&&t.pendingBranch?A(e)?t.effects.push(...e):t.effects.push(e):Ni(e)}const _e=Symbol.for("v-fgt"),zt=Symbol.for("v-txt"),je=Symbol.for("v-cmt"),Us=Symbol.for("v-stc"),yt=[];let oe=null;function Xt(e=!1){yt.push(oe=e?null:[])}function Ro(){yt.pop(),oe=yt[yt.length-1]||null}let vt=1;function pr(e,t=!1){vt+=e,e<0&&oe&&t&&(oe.hasOnce=!0)}function gr(e){return e.dynamicChildren=vt>0?oe||ze:null,Ro(),vt>0&&oe&&oe.push(e),e}function Ks(e,t,s,n,r,i){return gr(ue(e,t,s,n,r,i,!0))}function Fo(e,t,s,n,r){return gr(Me(e,t,s,n,r,!0))}function mr(e){return e?e.__v_isVNode===!0:!1}function wt(e,t){return e.type===t.type&&e.key===t.key}const _r=({key:e})=>e??null,Zt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?J(e)||Y(e)||M(e)?{i:ce,r:e,k:t,f:!!s}:e:null);function ue(e,t=null,s=null,n=0,r=null,i=e===_e?0:1,o=!1,l=!1){const f={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&_r(t),ref:t&&Zt(t),scopeId:jn,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ce};return l?(Bs(f,s),i&128&&e.normalize(f)):s&&(f.shapeFlag|=J(s)?8:16),vt>0&&!o&&oe&&(f.patchFlag>0||i&6)&&f.patchFlag!==32&&oe.push(f),f}const Me=Do;function Do(e,t=null,s=null,n=0,r=null,i=!1){if((!e||e===ro)&&(e=je),mr(e)){const l=rt(e,t,!0);return s&&Bs(l,s),vt>0&&!i&&oe&&(l.shapeFlag&6?oe[oe.indexOf(e)]=l:oe.push(l)),l.patchFlag=-2,l}if(Yo(e)&&(e=e.__vccOpts),t){t=jo(t);let{class:l,style:f}=t;l&&!J(l)&&(t.class=Dt(l)),B(f)&&(Ps(f)&&!A(f)&&(f=z({},f)),t.style=hs(f))}const o=J(e)?1:hr(e)?128:Wi(e)?64:B(e)?4:M(e)?2:0;return ue(e,t,s,n,r,o,i,!0)}function jo(e){return e?Ps(e)||sr(e)?z({},e):e:null}function rt(e,t,s=!1,n=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:f}=e,h=t?No(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&_r(h),ref:t&&t.ref?s&&i?A(i)?i.concat(Zt(t)):[i,Zt(t)]:Zt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==_e?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:f,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&rt(e.ssContent),ssFallback:e.ssFallback&&rt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return f&&n&&Rs(a,f.clone(a)),a}function Ho(e=" ",t=0){return Me(zt,null,e,t)}function br(e="",t=!1){return t?(Xt(),Fo(je,null,e)):Me(je,null,e)}function be(e){return e==null||typeof e=="boolean"?Me(je):A(e)?Me(_e,null,e.slice()):mr(e)?He(e):Me(zt,null,String(e))}function He(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:rt(e)}function Bs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(A(t))s=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Bs(e,r()),r._c&&(r._d=!0));return}else{s=32;const r=t._;!r&&!sr(t)?t._ctx=ce:r===3&&ce&&(ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else M(t)?(t={default:t,_ctx:ce},s=32):(t=String(t),n&64?(s=16,t=[Ho(t)]):s=8);e.children=t,e.shapeFlag|=s}function No(...e){const t={};for(let s=0;sQ||ce;let Qt,Ws;{const e=Ft(),t=(s,n)=>{let r;return(r=e[s])||(r=e[s]=[]),r.push(n),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Qt=t("__VUE_INSTANCE_SETTERS__",s=>Q=s),Ws=t("__VUE_SSR_SETTERS__",s=>Tt=s)}const St=e=>{const t=Q;return Qt(e),e.scope.on(),()=>{e.scope.off(),Qt(t)}},xr=()=>{Q&&Q.scope.off(),Qt(null)};function yr(e){return e.vnode.shapeFlag&4}let Tt=!1;function Ko(e,t=!1,s=!1){t&&Ws(t);const{props:n,children:r}=e.vnode,i=yr(e);vo(e,n,i,t),Co(e,r,s||t);const o=i?Bo(e,t):void 0;return t&&Ws(!1),o}function Bo(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,io);const{setup:n}=s;if(n){de();const r=e.setupContext=n.length>1?qo(e):null,i=St(e),o=et(n,e,0,[e.props,r]),l=Qs(o);if(he(),i(),(l||e.sp)&&!_t(e)&&Vn(e),l){if(o.then(xr,xr),t)return o.then(f=>{vr(e,f)}).catch(f=>{Kt(f,e,0)});e.asyncDep=o}else vr(e,o)}else wr(e)}function vr(e,t,s){M(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:B(t)&&(e.setupState=Pn(t)),wr(e)}function wr(e,t,s){const n=e.type;e.render||(e.render=n.render||ae);{const r=St(e);de();try{oo(e)}finally{he(),r()}}}const Wo={get(e,t){return k(e,"get",""),e[t]}};function qo(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,Wo),slots:e.slots,emit:e.emit,expose:t}}function es(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Pn(Si(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in bt)return bt[s](e)},has(t,s){return s in t||s in bt}})):e.proxy}const Jo=/(?:^|[-_])\w/g,Go=e=>e.replace(Jo,t=>t.toUpperCase()).replace(/[-_]/g,"");function ko(e,t=!0){return M(e)?e.displayName||e.name:e.name||t&&e.__name}function Sr(e,t,s=!1){let n=ko(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e){const r=i=>{for(const o in i)if(i[o]===t)return o};n=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return n?Go(n):s?"App":"Anonymous"}function Yo(e){return M(e)&&"__vccOpts"in e}const zo=(e,t)=>Oi(e,t,Tt),Xo="3.5.26";/** +* @vue/runtime-dom v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let qs;const Tr=typeof window<"u"&&window.trustedTypes;if(Tr)try{qs=Tr.createPolicy("vue",{createHTML:e=>e})}catch{}const Cr=qs?e=>qs.createHTML(e):e=>e,Zo="http://www.w3.org/2000/svg",Qo="http://www.w3.org/1998/Math/MathML",Ae=typeof document<"u"?document:null,Er=Ae&&Ae.createElement("template"),el={insert:(e,t,s)=>{t.insertBefore(e,s||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,s,n)=>{const r=t==="svg"?Ae.createElementNS(Zo,e):t==="mathml"?Ae.createElementNS(Qo,e):s?Ae.createElement(e,{is:s}):Ae.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Ae.createTextNode(e),createComment:e=>Ae.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ae.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,s,n,r,i){const o=s?s.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),s),!(r===i||!(r=r.nextSibling)););else{Er.innerHTML=Cr(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const l=Er.content;if(n==="svg"||n==="mathml"){const f=l.firstChild;for(;f.firstChild;)l.appendChild(f.firstChild);l.removeChild(f)}t.insertBefore(l,s)}return[o?o.nextSibling:t.firstChild,s?s.previousSibling:t.lastChild]}},tl=Symbol("_vtc");function sl(e,t,s){const n=e[tl];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):s?e.setAttribute("class",t):e.className=t}const Or=Symbol("_vod"),nl=Symbol("_vsh"),rl=Symbol(""),il=/(?:^|;)\s*display\s*:/;function ol(e,t,s){const n=e.style,r=J(s);let i=!1;if(s&&!r){if(t)if(J(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();s[l]==null&&ts(n,l,"")}else for(const o in t)s[o]==null&&ts(n,o,"");for(const o in s)o==="display"&&(i=!0),ts(n,o,s[o])}else if(r){if(t!==s){const o=n[rl];o&&(s+=";"+o),n.cssText=s,i=il.test(s)}}else t&&e.removeAttribute("style");Or in e&&(e[Or]=i?n.display:"",e[nl]&&(n.display="none"))}const Pr=/\s*!important$/;function ts(e,t,s){if(A(s))s.forEach(n=>ts(e,t,n));else if(s==null&&(s=""),t.startsWith("--"))e.setProperty(t,s);else{const n=ll(e,t);Pr.test(s)?e.setProperty(Ve(n),s.replace(Pr,""),"important"):e[n]=s}}const Mr=["Webkit","Moz","ms"],Js={};function ll(e,t){const s=Js[t];if(s)return s;let n=Re(t);if(n!=="filter"&&n in e)return Js[t]=n;n=sn(n);for(let r=0;rGs||(al.then(()=>Gs=0),Gs=Date.now());function hl(e,t){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;ge(pl(n,s.value),t,5,[n])};return s.value=e,s.attached=dl(),s}function pl(e,t){if(A(t)){const s=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{s.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const jr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,gl=(e,t,s,n,r,i)=>{const o=r==="svg";t==="class"?sl(e,n,o):t==="style"?ol(e,s,n):Mt(t)?cs(t)||fl(e,t,s,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ml(e,t,n,o))?(Rr(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ir(e,t,n,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!J(n))?Rr(e,Re(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Ir(e,t,n,o))};function ml(e,t,s,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&jr(t)&&M(s));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return jr(t)&&J(s)?!1:t in e}const Hr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return A(t)?s=>Rt(t,s):t};function _l(e){e.target.composing=!0}function Nr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ks=Symbol("_assign");function Lr(e,t,s){return t&&(e=e.trim()),s&&(e=ds(e)),e}const Vr={created(e,{modifiers:{lazy:t,trim:s,number:n}},r){e[ks]=Hr(r);const i=n||r.props&&r.props.type==="number";it(e,t?"change":"input",o=>{o.target.composing||e[ks](Lr(e.value,s,i))}),(s||i)&&it(e,"change",()=>{e.value=Lr(e.value,s,i)}),t||(it(e,"compositionstart",_l),it(e,"compositionend",Nr),it(e,"change",Nr))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:s,modifiers:{lazy:n,trim:r,number:i}},o){if(e[ks]=Hr(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?ds(e.value):e.value,f=t??"";l!==f&&(document.activeElement===e&&e.type!=="range"&&(n&&t===s||r&&e.value.trim()===f)||(e.value=f))}},bl=["ctrl","shift","alt","meta"],xl={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>bl.some(s=>e[`${s}Key`]&&!t.includes(s))},yl=(e,t)=>{const s=e._withMods||(e._withMods={}),n=t.join(".");return s[n]||(s[n]=(r,...i)=>{for(let o=0;o{const t=wl().createApp(...e),{mount:s}=t;return t.mount=n=>{const r=Cl(n);if(!r)return;const i=t._component;!M(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=s(r,!1,Tl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Tl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cl(e){return J(e)?document.querySelector(e):e}const El=(e,t)=>{const s=e.__vccOpts||e;for(const[n,r]of t)s[n]=r;return s},Ol={name:"IncreaseAcc",data(){return{password:"",confirmPassword:"",message:"",passwordStrengthMessage:"",success:!1,loading:!1,key:null}},mounted(){const e=new URLSearchParams(window.location.search);this.key=e.get("key"),console.log("从 URL 获取的 key:",this.key),this.key||(this.message="未找到密钥。",this.success=!1)},methods:{async setupPassword(){if(this.message="",this.passwordStrengthMessage="",this.success=!1,this.password!==this.confirmPassword){this.message="两次输入的密码不匹配。",this.success=!1;return}if(!this.key){this.message="缺少密钥参数。",this.success=!1;return}this.loading=!0;try{const e=await fetch("/api/method/sunderer_app.api.custom_user_signup.complete_account",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:this.key,password:this.password})}),t=await e.json();if(console.log("API 响应数据:",t),e.ok)this.message="账户已激活,密码设置成功!",this.success=!0,setTimeout(()=>{window.location.href="http://172.25.162.172:8000/"},5e3);else{let s="操作失败,请稍后再试。",n=!1;if(t&&t.exc)try{let r=t.exc;if(typeof t.exc=="string"&&(r=JSON.parse(t.exc)),r&&r.type==="password_strength"){n=!0;const i=r.details,o=i.warning||"",l=i.suggestions||[],f=[];o&&f.push(o),l.length>0&&f.push(`建议: ${l.join(", ")}`),this.passwordStrengthMessage=f.join(" ")}else s=r._server_messages||r.message||t._server_messages||"未知错误",this.message=s}catch(r){console.error("解析后端错误信息失败:",r),typeof t.exc=="string"&&(t.exc.includes("密码强度")||t.exc.includes("password")||t.exc.includes("strength")||t.exc.includes("重复"))?(n=!0,this.passwordStrengthMessage="密码强度不足,请设置一个更强的密码。"):this.message=t.exc||s}else if(t&&t.message)if(typeof t.message=="object"&&t.message.type==="password_strength"){n=!0;const r=t.message.details,i=r.warning||"",o=r.suggestions||[],l=[];i&&l.push(i),o.length>0&&l.push(`建议: ${o.join(", ")}`),this.passwordStrengthMessage=l.join(" ")}else s=typeof t.message=="object"?JSON.stringify(t.message):t.message,this.message=s;else this.message="服务器返回了错误,但没有详细信息。";!n&&!this.passwordStrengthMessage&&(this.message=s)}}catch(e){console.error("网络错误或请求失败:",e),this.message="网络错误或请求失败。",this.success=!1}finally{this.loading=!1}},goBackToLogin(){window.location.href="/login"}}},Pl={class:"container"},Ml={class:"form-group"},Al={class:"form-group"},Il=["disabled"],Rl={key:1,class:"password-strength-error"},Fl={class:"back-to-login"};function Dl(e,t,s,n,r,i){return Xt(),Ks("div",Pl,[t[4]||(t[4]=ue("h2",null,"设置您的密码",-1)),ue("form",{onSubmit:t[2]||(t[2]=yl((...o)=>i.setupPassword&&i.setupPassword(...o),["prevent"])),class:"register-view"},[ue("div",Ml,[Hn(ue("input",{type:"password",id:"password","onUpdate:modelValue":t[0]||(t[0]=o=>r.password=o),required:"",placeholder:"请输入新密码",class:"input-field"},null,512),[[Vr,r.password]])]),ue("div",Al,[Hn(ue("input",{type:"password",id:"confirmPassword","onUpdate:modelValue":t[1]||(t[1]=o=>r.confirmPassword=o),required:"",placeholder:"请确认新密码",class:"input-field"},null,512),[[Vr,r.confirmPassword]])]),ue("button",{type:"submit",disabled:r.loading,class:"btn-primary"},jt(r.loading?"正在设置...":"设置密码"),9,Il),r.message?(Xt(),Ks("div",{key:0,class:Dt({"success-message":r.success,"error-message":!r.success})},jt(r.message),3)):br("",!0),r.passwordStrengthMessage?(Xt(),Ks("div",Rl,jt(r.passwordStrengthMessage),1)):br("",!0)],32),ue("div",Fl,[ue("button",{onClick:t[3]||(t[3]=(...o)=>i.goBackToLogin&&i.goBackToLogin(...o)),class:"btn-secondary"},"← 返回登录")])])}Sl(El(Ol,[["render",Dl],["__scopeId","data-v-406334d1"]])).mount("#app")}); diff --git a/sunderer_app/public/IncreaseAcc/vite.svg b/sunderer_app/public/IncreaseAcc/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/sunderer_app/public/IncreaseAcc/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sunderer_app/public/SundererPage/icon3.svg b/sunderer_app/public/SundererPage/icon3.svg new file mode 100644 index 0000000..08f848b --- /dev/null +++ b/sunderer_app/public/SundererPage/icon3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sunderer_app/public/SundererPage/js/sundererapp.BRnFqPg_.js b/sunderer_app/public/SundererPage/js/sundererapp.BRnFqPg_.js new file mode 100644 index 0000000..ab81810 --- /dev/null +++ b/sunderer_app/public/SundererPage/js/sundererapp.BRnFqPg_.js @@ -0,0 +1,2459 @@ +(function(Ir){typeof define=="function"&&define.amd?define(Ir):Ir()})(function(){"use strict";var Ir=document.createElement("style");Ir.textContent=`html,body,#app{height:100%;margin:0;padding:0;background:#000;overflow:hidden}.login-container[data-v-6eda41c4]{position:relative;width:100vw;min-height:100vh;display:flex;justify-content:center;align-items:center;overflow:hidden;background:linear-gradient(135deg,#00afff,#07c)}.login-card[data-v-6eda41c4]{background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;padding:2.5rem;width:360px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);position:relative;z-index:1;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:300px}.logo[data-v-6eda41c4]{font-family:Arial,sans-serif;font-weight:700;margin-bottom:1.5rem;letter-spacing:1px;color:#fff;text-shadow:0 0 10px rgba(0,175,255,.8),0 0 20px rgba(0,175,255,.6);display:inline-flex;align-items:center;gap:.5rem}.brand[data-v-6eda41c4]{color:#fff;font-size:2.2rem;text-shadow:0 0 10px rgba(0,175,255,.8),0 0 20px rgba(0,175,255,.6)}.icon[data-v-6eda41c4]{color:#0ff;font-size:1.8rem;margin:0 .5rem;text-shadow:0 0 15px rgba(0,255,255,.7)}.input-field[data-v-6eda41c4]{width:80%;padding:.8rem 1rem;margin-bottom:1rem;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.input-field[data-v-6eda41c4]:focus{box-shadow:0 0 0 2px #00afffb3,0 0 10px #00afff66}.error[data-v-6eda41c4]{color:#ff6b6b;font-size:.85rem;margin:-.5rem 0 1rem}.login-btn[data-v-6eda41c4]{width:70%;padding:.8rem;background:linear-gradient(90deg,#00afff,#07c);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 0 15px #00afff80}.register-btn[data-v-6eda41c4]{width:70%;padding:.8rem;background:linear-gradient(90deg,#6bffce,#c74dff);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 0 15px #ff6b6b80}.login-btn[data-v-6eda41c4]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 20px #00afffb3}.login-btn[data-v-6eda41c4]:disabled{opacity:.7;cursor:not-allowed}.auth-buttons[data-v-6eda41c4]{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.footer[data-v-6eda41c4]{margin-top:1.5rem;color:#fff9;font-size:.8rem;text-align:center}.register-btn[data-v-6eda41c4]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 20px #ff6b6bb3}.register-btn[data-v-6eda41c4]:disabled{opacity:.7;cursor:not-allowed}.register-view[data-v-14690773]{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#00afff,#07c);color:#fff}.container[data-v-14690773]{width:400px;padding:30px;background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);text-align:center}.input-field[data-v-14690773]{width:90%;padding:20px;margin:10px 0;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.btn-primary[data-v-14690773]{width:100%;padding:12px;background:linear-gradient(90deg,#4caf50,#45a049);color:#fff;border:none;border-radius:10px;cursor:pointer;margin:10px 0;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.btn-primary[data-v-14690773]:disabled{background:#666;cursor:not-allowed}.btn-secondary[data-v-14690773]{width:100%;padding:10px;background:linear-gradient(90deg,#6bffce,#c74dff);color:#fff;border:none;border-radius:10px;cursor:pointer;margin-top:20px;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.error-msg[data-v-14690773]{color:#ff6b6b;margin:10px 0;font-size:14px}.back-to-login[data-v-14690773]{margin-top:20px}.password-setup-container[data-v-378de9a4]{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#00afff,#07c);color:#fff}.setup-card[data-v-378de9a4]{width:400px;padding:30px;background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);text-align:center}.input-group[data-v-378de9a4]{margin-bottom:15px;text-align:left}.input-group label[data-v-378de9a4]{display:block;margin-bottom:5px;font-weight:700}.input-field[data-v-378de9a4]{width:94%;padding:12px;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.btn-primary[data-v-378de9a4]{width:100%;padding:12px;background:linear-gradient(90deg,#4caf50,#45a049);color:#fff;border:none;border-radius:10px;cursor:pointer;margin-top:20px;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.error[data-v-378de9a4]{color:#ff6b6b;margin:10px 0;font-size:14px}.header[data-v-7853d827]{height:64px;display:flex;align-items:center;padding:0 20px;background-color:#fff}.header-content[data-v-7853d827]{width:100%;display:flex;justify-content:space-between;align-items:center}.header-actions .n-button .n-avatar[data-v-7853d827]{margin-right:8px} +/*$vite$:1*/`,document.head.appendChild(Ir);/** +* @vue/shared v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function sa(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const dt={},lr=[],Ro=()=>{},id=()=>!1,Oi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ca=e=>e.startsWith("onUpdate:"),Rt=Object.assign,da=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Tg=Object.prototype.hasOwnProperty,rt=(e,t)=>Tg.call(e,t),Be=Array.isArray,ar=e=>Mi(e)==="[object Map]",ld=e=>Mi(e)==="[object Set]",De=e=>typeof e=="function",Ct=e=>typeof e=="string",No=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",ad=e=>(ft(e)||De(e))&&De(e.then)&&De(e.catch),sd=Object.prototype.toString,Mi=e=>sd.call(e),$g=e=>Mi(e).slice(8,-1),cd=e=>Mi(e)==="[object Object]",Bi=e=>Ct(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Or=sa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hi=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Eg=/-\w/g,lo=Hi(e=>e.replace(Eg,t=>t.slice(1).toUpperCase())),Fg=/\B([A-Z])/g,$n=Hi(e=>e.replace(Fg,"-$1").toLowerCase()),Di=Hi(e=>e.charAt(0).toUpperCase()+e.slice(1)),ua=Hi(e=>e?`on${Di(e)}`:""),ln=(e,t)=>!Object.is(e,t),Li=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},fa=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ag=e=>{const t=Ct(e)?Number(e):NaN;return isNaN(t)?e:t};let ud;const Ni=()=>ud||(ud=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ha(e){if(Be(e)){const t={};for(let o=0;o{if(o){const n=o.split(Og);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function pa(e){let t="";if(Ct(e))t=e;else if(Be(e))for(let o=0;o!!(e&&e.__v_isRef===!0),Po=e=>Ct(e)?e:e==null?"":Be(e)||ft(e)&&(e.toString===sd||!De(e.toString))?hd(e)?Po(e.value):JSON.stringify(e,pd,2):String(e),pd=(e,t)=>hd(t)?pd(e,t.value):ar(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,r],i)=>(o[va(n,i)+" =>"]=r,o),{})}:ld(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>va(o))}:No(t)?va(t):ft(t)&&!Be(t)&&!cd(t)?String(t):t,va=(e,t="")=>{var o;return No(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};/** +* @vue/reactivity v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Zt;class Dg{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Zt,!t&&Zt&&(this.index=(Zt.scopes||(Zt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t0&&--this._on===0&&(Zt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let o,n;for(o=0,n=this.effects.length;o0)return;if(Br){let t=Br;for(Br=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;Mr;){let t=Mr;for(Mr=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function bd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xd(e){let t,o=e.depsTail,n=o;for(;n;){const r=n.prevDep;n.version===-1?(n===o&&(o=r),ya(n),Ng(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=o}function xa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Hr)||(e.globalVersion=Hr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xa(e))))return;e.flags|=2;const t=e.dep,o=ht,n=vo;ht=e,vo=!0;try{bd(e);const r=e.fn(e._value);(t.version===0||ln(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ht=o,vo=n,xd(e),e.flags&=-3}}function ya(e,t=!1){const{dep:o,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),o.subs===e&&(o.subs=n,!n&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)ya(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function Ng(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let vo=!0;const Cd=[];function _o(){Cd.push(vo),vo=!1}function ko(){const e=Cd.pop();vo=e===void 0?!0:e}function wd(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=ht;ht=void 0;try{t()}finally{ht=o}}}let Hr=0;class jg{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ca{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ht||!vo||ht===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==ht)o=this.activeLink=new jg(ht,this),ht.deps?(o.prevDep=ht.depsTail,ht.depsTail.nextDep=o,ht.depsTail=o):ht.deps=ht.depsTail=o,Sd(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=ht.depsTail,o.nextDep=void 0,ht.depsTail.nextDep=o,ht.depsTail=o,ht.deps===o&&(ht.deps=n)}return o}trigger(t){this.version++,Hr++,this.notify(t)}notify(t){ma();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{ba()}}}function Sd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Sd(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const ji=new WeakMap,En=Symbol(""),wa=Symbol(""),Dr=Symbol("");function Ot(e,t,o){if(vo&&ht){let n=ji.get(e);n||ji.set(e,n=new Map);let r=n.get(o);r||(n.set(o,r=new Ca),r.map=n,r.key=o),r.track()}}function jo(e,t,o,n,r,i){const l=ji.get(e);if(!l){Hr++;return}const a=s=>{s&&s.trigger()};if(ma(),t==="clear")l.forEach(a);else{const s=Be(e),c=s&&Bi(o);if(s&&o==="length"){const d=Number(n);l.forEach((u,f)=>{(f==="length"||f===Dr||!No(f)&&f>=d)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),c&&a(l.get(Dr)),t){case"add":s?c&&a(l.get("length")):(a(l.get(En)),ar(e)&&a(l.get(wa)));break;case"delete":s||(a(l.get(En)),ar(e)&&a(l.get(wa)));break;case"set":ar(e)&&a(l.get(En));break}}ba()}function Wg(e,t){const o=ji.get(e);return o&&o.get(t)}function sr(e){const t=Ke(e);return t===e?t:(Ot(t,"iterate",Dr),ao(e)?t:t.map(Vo))}function Sa(e){return Ot(e=Ke(e),"iterate",Dr),e}function an(e,t){return sn(e)?cr(e)?jr(Vo(t)):jr(t):Vo(t)}const Vg={__proto__:null,[Symbol.iterator](){return Ra(this,Symbol.iterator,e=>an(this,e))},concat(...e){return sr(this).concat(...e.map(t=>Be(t)?sr(t):t))},entries(){return Ra(this,"entries",e=>(e[1]=an(this,e[1]),e))},every(e,t){return Wo(this,"every",e,t,void 0,arguments)},filter(e,t){return Wo(this,"filter",e,t,o=>o.map(n=>an(this,n)),arguments)},find(e,t){return Wo(this,"find",e,t,o=>an(this,o),arguments)},findIndex(e,t){return Wo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Wo(this,"findLast",e,t,o=>an(this,o),arguments)},findLastIndex(e,t){return Wo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Wo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Pa(this,"includes",e)},indexOf(...e){return Pa(this,"indexOf",e)},join(e){return sr(this).join(e)},lastIndexOf(...e){return Pa(this,"lastIndexOf",e)},map(e,t){return Wo(this,"map",e,t,void 0,arguments)},pop(){return Lr(this,"pop")},push(...e){return Lr(this,"push",e)},reduce(e,...t){return Rd(this,"reduce",e,t)},reduceRight(e,...t){return Rd(this,"reduceRight",e,t)},shift(){return Lr(this,"shift")},some(e,t){return Wo(this,"some",e,t,void 0,arguments)},splice(...e){return Lr(this,"splice",e)},toReversed(){return sr(this).toReversed()},toSorted(e){return sr(this).toSorted(e)},toSpliced(...e){return sr(this).toSpliced(...e)},unshift(...e){return Lr(this,"unshift",e)},values(){return Ra(this,"values",e=>an(this,e))}};function Ra(e,t,o){const n=Sa(e),r=n[t]();return n!==e&&!ao(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=o(i.value)),i}),r}const Ug=Array.prototype;function Wo(e,t,o,n,r,i){const l=Sa(e),a=l!==e&&!ao(e),s=l[t];if(s!==Ug[t]){const u=s.apply(e,i);return a?Vo(u):u}let c=o;l!==e&&(a?c=function(u,f){return o.call(this,an(e,u),f,e)}:o.length>2&&(c=function(u,f){return o.call(this,u,f,e)}));const d=s.call(l,c,n);return a&&r?r(d):d}function Rd(e,t,o,n){const r=Sa(e);let i=o;return r!==e&&(ao(e)?o.length>3&&(i=function(l,a,s){return o.call(this,l,a,s,e)}):i=function(l,a,s){return o.call(this,l,an(e,a),s,e)}),r[t](i,...n)}function Pa(e,t,o){const n=Ke(e);Ot(n,"iterate",Dr);const r=n[t](...o);return(r===-1||r===!1)&&Gi(o[0])?(o[0]=Ke(o[0]),n[t](...o)):r}function Lr(e,t,o=[]){_o(),ma();const n=Ke(e)[t].apply(e,o);return ba(),ko(),n}const Kg=sa("__proto__,__v_isRef,__isVue"),Pd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(No));function Gg(e){No(e)||(e=String(e));const t=Ke(this);return Ot(t,"has",e),t.hasOwnProperty(e)}class _d{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){if(o==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!r;if(o==="__v_isReadonly")return r;if(o==="__v_isShallow")return i;if(o==="__v_raw")return n===(r?i?Fd:Ed:i?$d:Td).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=Be(t);if(!r){let s;if(l&&(s=Vg[o]))return s;if(o==="hasOwnProperty")return Gg}const a=Reflect.get(t,o,St(t)?t:n);if((No(o)?Pd.has(o):Kg(o))||(r||Ot(t,"get",o),i))return a;if(St(a)){const s=l&&Bi(o)?a:a.value;return r&&ft(s)?Fn(s):s}return ft(a)?r?Fn(a):Nr(a):a}}class kd extends _d{constructor(t=!1){super(!1,t)}set(t,o,n,r){let i=t[o];const l=Be(t)&&Bi(o);if(!this._isShallow){const c=sn(i);if(!ao(n)&&!sn(n)&&(i=Ke(i),n=Ke(n)),!l&&St(i)&&!St(n))return c||(i.value=n),!0}const a=l?Number(o)e,Wi=e=>Reflect.getPrototypeOf(e);function Jg(e,t,o){return function(...n){const r=this.__v_raw,i=Ke(r),l=ar(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,c=r[e](...n),d=o?_a:t?jr:Vo;return!t&&Ot(i,"iterate",s?wa:En),{next(){const{value:u,done:f}=c.next();return f?{value:u,done:f}:{value:a?[d(u[0]),d(u[1])]:d(u),done:f}},[Symbol.iterator](){return this}}}}function Vi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qg(e,t){const o={get(r){const i=this.__v_raw,l=Ke(i),a=Ke(r);e||(ln(r,a)&&Ot(l,"get",r),Ot(l,"get",a));const{has:s}=Wi(l),c=t?_a:e?jr:Vo;if(s.call(l,r))return c(i.get(r));if(s.call(l,a))return c(i.get(a));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&Ot(Ke(r),"iterate",En),r.size},has(r){const i=this.__v_raw,l=Ke(i),a=Ke(r);return e||(ln(r,a)&&Ot(l,"has",r),Ot(l,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)},forEach(r,i){const l=this,a=l.__v_raw,s=Ke(a),c=t?_a:e?jr:Vo;return!e&&Ot(s,"iterate",En),a.forEach((d,u)=>r.call(i,c(d),c(u),l))}};return Rt(o,e?{add:Vi("add"),set:Vi("set"),delete:Vi("delete"),clear:Vi("clear")}:{add(r){!t&&!ao(r)&&!sn(r)&&(r=Ke(r));const i=Ke(this);return Wi(i).has.call(i,r)||(i.add(r),jo(i,"add",r,r)),this},set(r,i){!t&&!ao(i)&&!sn(i)&&(i=Ke(i));const l=Ke(this),{has:a,get:s}=Wi(l);let c=a.call(l,r);c||(r=Ke(r),c=a.call(l,r));const d=s.call(l,r);return l.set(r,i),c?ln(i,d)&&jo(l,"set",r,i):jo(l,"add",r,i),this},delete(r){const i=Ke(this),{has:l,get:a}=Wi(i);let s=l.call(i,r);s||(r=Ke(r),s=l.call(i,r)),a&&a.call(i,r);const c=i.delete(r);return s&&jo(i,"delete",r,void 0),c},clear(){const r=Ke(this),i=r.size!==0,l=r.clear();return i&&jo(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{o[r]=Jg(r,e,t)}),o}function Ui(e,t){const o=Qg(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(rt(o,r)&&r in n?o:n,r,i)}const em={get:Ui(!1,!1)},tm={get:Ui(!1,!0)},om={get:Ui(!0,!1)},nm={get:Ui(!0,!0)},Td=new WeakMap,$d=new WeakMap,Ed=new WeakMap,Fd=new WeakMap;function rm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function im(e){return e.__v_skip||!Object.isExtensible(e)?0:rm($g(e))}function Nr(e){return sn(e)?e:Ki(e,!1,qg,em,Td)}function Ad(e){return Ki(e,!1,Yg,tm,$d)}function Fn(e){return Ki(e,!0,Xg,om,Ed)}function E2(e){return Ki(e,!0,Zg,nm,Fd)}function Ki(e,t,o,n,r){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=im(e);if(i===0)return e;const l=r.get(e);if(l)return l;const a=new Proxy(e,i===2?n:o);return r.set(e,a),a}function cr(e){return sn(e)?cr(e.__v_raw):!!(e&&e.__v_isReactive)}function sn(e){return!!(e&&e.__v_isReadonly)}function ao(e){return!!(e&&e.__v_isShallow)}function Gi(e){return e?!!e.__v_raw:!1}function Ke(e){const t=e&&e.__v_raw;return t?Ke(t):e}function lm(e){return!rt(e,"__v_skip")&&Object.isExtensible(e)&&dd(e,"__v_skip",!0),e}const Vo=e=>ft(e)?Nr(e):e,jr=e=>ft(e)?Fn(e):e;function St(e){return e?e.__v_isRef===!0:!1}function V(e){return Id(e,!1)}function ka(e){return Id(e,!0)}function Id(e,t){return St(e)?e:new am(e,t)}class am{constructor(t,o){this.dep=new Ca,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:Ke(t),this._value=o?t:Vo(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||ao(t)||sn(t);t=n?t:Ke(t),ln(t,o)&&(this._rawValue=t,this._value=n?t:Vo(t),this.dep.trigger())}}function cn(e){return St(e)?e.value:e}const sm={get:(e,t,o)=>t==="__v_raw"?e:cn(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const r=e[t];return St(r)&&!St(o)?(r.value=o,!0):Reflect.set(e,t,o,n)}};function Od(e){return cr(e)?e:new Proxy(e,sm)}class cm{constructor(t,o,n){this._object=t,this._key=o,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=Ke(t);let r=!0,i=t;if(!Be(t)||!Bi(String(o)))do r=!Gi(i)||ao(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=cn(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&St(this._raw[this._key])){const o=this._object[this._key];if(St(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return Wg(this._raw,this._key)}}class dm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Se(e,t,o){return St(e)?e:De(e)?new dm(e):ft(e)&&arguments.length>1?um(e,t,o):V(e)}function um(e,t,o){return new cm(e,t,o)}class fm{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new Ca(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Hr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ht!==this)return md(this,!0),!0}get value(){const t=this.dep.track();return yd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function hm(e,t,o=!1){let n,r;return De(e)?n=e:(n=e.get,r=e.set),new fm(n,r,o)}const qi={},Xi=new WeakMap;let An;function pm(e,t=!1,o=An){if(o){let n=Xi.get(o);n||Xi.set(o,n=[]),n.push(e)}}function vm(e,t,o=dt){const{immediate:n,deep:r,once:i,scheduler:l,augmentJob:a,call:s}=o,c=C=>r?C:ao(C)||r===!1||r===0?Uo(C,1):Uo(C);let d,u,f,h,p=!1,g=!1;if(St(e)?(u=()=>e.value,p=ao(e)):cr(e)?(u=()=>c(e),p=!0):Be(e)?(g=!0,p=e.some(C=>cr(C)||ao(C)),u=()=>e.map(C=>{if(St(C))return C.value;if(cr(C))return c(C);if(De(C))return s?s(C,2):C()})):De(e)?t?u=s?()=>s(e,2):e:u=()=>{if(f){_o();try{f()}finally{ko()}}const C=An;An=d;try{return s?s(e,3,[h]):e(h)}finally{An=C}}:u=Ro,t&&r){const C=u,P=r===!0?1/0:r;u=()=>Uo(C(),P)}const b=Lg(),m=()=>{d.stop(),b&&b.active&&da(b.effects,d)};if(i&&t){const C=t;t=(...P)=>{C(...P),m()}}let x=g?new Array(e.length).fill(qi):qi;const w=C=>{if(!(!(d.flags&1)||!d.dirty&&!C))if(t){const P=d.run();if(r||p||(g?P.some((T,y)=>ln(T,x[y])):ln(P,x))){f&&f();const T=An;An=d;try{const y=[P,x===qi?void 0:g&&x[0]===qi?[]:x,h];x=P,s?s(t,3,y):t(...y)}finally{An=T}}}else d.run()};return a&&a(w),d=new vd(u),d.scheduler=l?()=>l(w,!1):w,h=C=>pm(C,!1,d),f=d.onStop=()=>{const C=Xi.get(d);if(C){if(s)s(C,4);else for(const P of C)P();Xi.delete(d)}},t?n?w(!0):x=d.run():l?l(w.bind(null,!0),!0):d.run(),m.pause=d.pause.bind(d),m.resume=d.resume.bind(d),m.stop=m,m}function Uo(e,t=1/0,o){if(t<=0||!ft(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,St(e))Uo(e.value,t,o);else if(Be(e))for(let n=0;n{Uo(n,t,o)});else if(cd(e)){for(const n in e)Uo(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Uo(e[n],t,o)}return e}/** +* @vue/runtime-core v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Wr=[];let za=!1;function F2(e,...t){if(za)return;za=!0,_o();const o=Wr.length?Wr[Wr.length-1].component:null,n=o&&o.appContext.config.warnHandler,r=gm();if(n)dr(n,o,11,[e+t.map(i=>{var l,a;return(a=(l=i.toString)==null?void 0:l.call(i))!=null?a:JSON.stringify(i)}).join(""),o&&o.proxy,r.map(({vnode:i})=>`at <${Lu(o,i.type)}>`).join(` +`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(` +`,...mm(r)),console.warn(...i)}ko(),za=!1}function gm(){let e=Wr[Wr.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function mm(e){const t=[];return e.forEach((o,n)=>{t.push(...n===0?[]:[` +`],...bm(o))}),t}function bm({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${Lu(e.component,e.type,n)}`,i=">"+o;return e.props?[r,...xm(e.props),i]:[r+i]}function xm(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach(n=>{t.push(...Md(n,e[n]))}),o.length>3&&t.push(" ..."),t}function Md(e,t,o){return Ct(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?o?t:[`${e}=${t}`]:St(t)?(t=Md(e,Ke(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):De(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ke(t),o?t:[`${e}=`,t])}function dr(e,t,o,n){try{return n?e(...n):e()}catch(r){Yi(r,t,o)}}function go(e,t,o,n){if(De(e)){const r=dr(e,t,o,n);return r&&ad(r)&&r.catch(i=>{Yi(i,t,o)}),r}if(Be(e)){const r=[];for(let i=0;i>>1,r=Wt[n],i=Vr(r);i=Vr(o)?Wt.push(e):Wt.splice(Cm(t),0,e),e.flags|=1,Hd()}}function Hd(){Zi||(Zi=Bd.then(Nd))}function wm(e){Be(e)?ur.push(...e):dn&&e.id===-1?dn.splice(fr+1,0,e):e.flags&1||(ur.push(e),e.flags|=1),Hd()}function Dd(e,t,o=zo+1){for(;oVr(o)-Vr(n));if(ur.length=0,dn){dn.push(...t);return}for(dn=t,fr=0;fre.id==null?e.flags&2?-1:1/0:e.id;function Nd(e){try{for(zo=0;zo{n._d&&sl(-1);const i=Ji(t);let l;try{l=e(...r)}finally{Ji(i),n._d&&sl(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function bo(e,t){if(Et===null)return e;const o=fl(Et),n=e.dirs||(e.dirs=[]);for(let r=0;r1)return o&&De(t)?t.call(n&&n.proxy):t}}const Sm=Symbol.for("v-scx"),Rm=()=>$e(Sm);function Mt(e,t){return $a(e,null,t)}function st(e,t,o){return $a(e,t,o)}function $a(e,t,o=dt){const{immediate:n,deep:r,flush:i,once:l}=o,a=Rt({},o),s=t&&n||!t&&i!=="post";let c;if(oi){if(i==="sync"){const h=Rm();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=Ro,h.resume=Ro,h.pause=Ro,h}}const d=Ht;a.call=(h,p,g)=>go(h,d,p,g);let u=!1;i==="post"?a.scheduler=h=>{Ut(h,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Ta(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,d&&(h.id=d.uid,h.i=d))};const f=vm(e,t,a);return oi&&(c?c.push(f):s&&f()),f}function Pm(e,t,o){const n=this.proxy,r=Ct(e)?e.includes(".")?Wd(n,e):()=>n[e]:e.bind(n,n);let i;De(t)?i=t:(i=t.handler,o=t);const l=ti(this),a=$a(r,i.bind(n),o);return l(),a}function Wd(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;re.__isTeleport,Ur=e=>e&&(e.disabled||e.disabled===""),Kd=e=>e&&(e.defer||e.defer===""),Gd=e=>typeof SVGElement<"u"&&e instanceof SVGElement,qd=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ea=(e,t)=>{const o=e&&e.to;return Ct(o)?t?t(o):null:o},Xd={name:"Teleport",__isTeleport:!0,process(e,t,o,n,r,i,l,a,s,c){const{mc:d,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:b}}=c,m=Ur(t.props);let{shapeFlag:x,children:w,dynamicChildren:C}=t;if(e==null){const P=t.el=g(""),T=t.anchor=g("");h(P,o,n),h(T,o,n);const y=(S,E)=>{x&16&&d(w,S,E,r,i,l,a,s)},B=()=>{const S=t.target=Ea(t.props,p),E=Yd(S,t,g,h);S&&(l!=="svg"&&Gd(S)?l="svg":l!=="mathml"&&qd(S)&&(l="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(S),m||(y(S,E),el(t,!1)))};m&&(y(o,T),el(t,!0)),Kd(t.props)?(t.el.__isMounted=!1,Ut(()=>{B(),delete t.el.__isMounted},i)):B()}else{if(Kd(t.props)&&e.el.__isMounted===!1){Ut(()=>{Xd.process(e,t,o,n,r,i,l,a,s,c)},i);return}t.el=e.el,t.targetStart=e.targetStart;const P=t.anchor=e.anchor,T=t.target=e.target,y=t.targetAnchor=e.targetAnchor,B=Ur(e.props),S=B?o:T,E=B?P:y;if(l==="svg"||Gd(T)?l="svg":(l==="mathml"||qd(T))&&(l="mathml"),C?(f(e.dynamicChildren,C,S,r,i,l,a),Va(e,t,!0)):s||u(e,t,S,E,r,i,l,a,!1),m)B?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qi(t,o,P,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Ea(t.props,p);j&&Qi(t,j,null,c,0)}else B&&Qi(t,T,y,c,1);el(t,m)}},remove(e,t,o,{um:n,o:{remove:r}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:c,targetAnchor:d,target:u,props:f}=e;if(u&&(r(c),r(d)),i&&r(s),l&16){const h=i||!Ur(f);for(let p=0;p{e.isMounted=!0}),Ft(()=>{e.isUnmounting=!0}),e}const co=[Function,Array],Jd={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:co,onEnter:co,onAfterEnter:co,onEnterCancelled:co,onBeforeLeave:co,onLeave:co,onAfterLeave:co,onLeaveCancelled:co,onBeforeAppear:co,onAppear:co,onAfterAppear:co,onAppearCancelled:co},Qd=e=>{const t=e.subTree;return t.component?Qd(t.component):t},zm={name:"BaseTransition",props:Jd,setup(e,{slots:t}){const o=Hn(),n=Zd();return()=>{const r=t.default&&Aa(t.default(),!0);if(!r||!r.length)return;const i=eu(r),l=Ke(e),{mode:a}=l;if(n.isLeaving)return Fa(i);const s=ou(i);if(!s)return Fa(i);let c=Kr(s,l,n,o,u=>c=u);s.type!==Pt&&On(s,c);let d=o.subTree&&ou(o.subTree);if(d&&d.type!==Pt&&!Bn(d,s)&&Qd(o).type!==Pt){let u=Kr(d,l,n,o);if(On(d,u),a==="out-in"&&s.type!==Pt)return n.isLeaving=!0,u.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete u.afterLeave,d=void 0},Fa(i);a==="in-out"&&s.type!==Pt?u.delayLeave=(f,h,p)=>{const g=tu(n,d);g[String(d.key)]=d,f[Ko]=()=>{h(),f[Ko]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function eu(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Pt){t=o;break}}return t}const Tm=zm;function tu(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function Kr(e,t,o,n,r){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:b,onAppear:m,onAfterAppear:x,onAppearCancelled:w}=t,C=String(e.key),P=tu(o,e),T=(S,E)=>{S&&go(S,n,9,E)},y=(S,E)=>{const j=E[1];T(S,E),Be(S)?S.every(_=>_.length<=1)&&j():S.length<=1&&j()},B={mode:l,persisted:a,beforeEnter(S){let E=s;if(!o.isMounted)if(i)E=b||s;else return;S[Ko]&&S[Ko](!0);const j=P[C];j&&Bn(e,j)&&j.el[Ko]&&j.el[Ko](),T(E,[S])},enter(S){let E=c,j=d,_=u;if(!o.isMounted)if(i)E=m||c,j=x||d,_=w||u;else return;let M=!1;const W=S[tl]=D=>{M||(M=!0,D?T(_,[S]):T(j,[S]),B.delayedLeave&&B.delayedLeave(),S[tl]=void 0)};E?y(E,[S,W]):W()},leave(S,E){const j=String(e.key);if(S[tl]&&S[tl](!0),o.isUnmounting)return E();T(f,[S]);let _=!1;const M=S[Ko]=W=>{_||(_=!0,E(),W?T(g,[S]):T(p,[S]),S[Ko]=void 0,P[j]===e&&delete P[j])};P[j]=e,h?y(h,[S,M]):M()},clone(S){const E=Kr(S,t,o,n,r);return r&&r(E),E}};return B}function Fa(e){if(nl(e))return e=qo(e),e.children=null,e}function ou(e){if(!nl(e))return Ud(e.type)&&e.children?eu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&De(o.default))return o.default()}}function On(e,t){e.shapeFlag&6&&e.component?(e.transition=t,On(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Aa(e,t=!1,o){let n=[],r=0;for(let i=0;i1)for(let i=0;iGr(p,t&&(Be(t)?t[g]:t),o,n,r));return}if(hr(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Gr(e,t,o,n.component.subTree);return}const i=n.shapeFlag&4?fl(n.component):n.el,l=r?null:i,{i:a,r:s}=e,c=t&&t.r,d=a.refs===dt?a.refs={}:a.refs,u=a.setupState,f=Ke(u),h=u===dt?id:p=>rt(f,p);if(c!=null&&c!==s){if(ru(t),Ct(c))d[c]=null,h(c)&&(u[c]=null);else if(St(c)){c.value=null;const p=t;p.k&&(d[p.k]=null)}}if(De(s))dr(s,a,12,[l,d]);else{const p=Ct(s),g=St(s);if(p||g){const b=()=>{if(e.f){const m=p?h(s)?u[s]:d[s]:s.value;if(r)Be(m)&&da(m,i);else if(Be(m))m.includes(i)||m.push(i);else if(p)d[s]=[i],h(s)&&(u[s]=d[s]);else{const x=[i];s.value=x,e.k&&(d[e.k]=x)}}else p?(d[s]=l,h(s)&&(u[s]=l)):g&&(s.value=l,e.k&&(d[e.k]=l))};if(l){const m=()=>{b(),ol.delete(e)};m.id=-1,ol.set(e,m),Ut(m,o)}else ru(e),b()}}}function ru(e){const t=ol.get(e);t&&(t.flags|=8,ol.delete(e))}Ni().requestIdleCallback,Ni().cancelIdleCallback;const hr=e=>!!e.type.__asyncLoader,nl=e=>e.type.__isKeepAlive;function Ia(e,t){iu(e,"a",t)}function rl(e,t){iu(e,"da",t)}function iu(e,t,o=Ht){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(il(t,n,o),o){let r=o.parent;for(;r&&r.parent;)nl(r.parent.vnode)&&$m(n,t,o,r),r=r.parent}}function $m(e,t,o,n){const r=il(t,e,n,!0);Oa(()=>{da(n[t],r)},o)}function il(e,t,o=Ht,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{_o();const a=ti(o),s=go(t,o,e,l);return a(),ko(),s});return n?r.unshift(i):r.push(i),i}}const Go=e=>(t,o=Ht)=>{(!oi||e==="sp")&&il(e,(...n)=>t(...n),o)},qr=Go("bm"),Bt=Go("m"),Em=Go("bu"),lu=Go("u"),Ft=Go("bum"),Oa=Go("um"),Fm=Go("sp"),Am=Go("rtg"),Im=Go("rtc");function Om(e,t=Ht){il("ec",e,t)}const Mm="components";function Bm(e,t){return Dm(Mm,e,!0,t)||e}const Hm=Symbol.for("v-ndc");function Dm(e,t,o=!0,n=!1){const r=Et||Ht;if(r){const i=r.type;{const a=Du(i,!1);if(a&&(a===t||a===lo(t)||a===Di(lo(t))))return i}const l=au(r[e]||i[e],t)||au(r.appContext[e],t);return!l&&n?i:l}}function au(e,t){return e&&(e[t]||e[lo(t)]||e[Di(lo(t))])}function su(e,t,o={},n,r){if(Et.ce||Et.parent&&hr(Et.parent)&&Et.parent.ce){const c=Object.keys(o).length>0;return _t(),cl(it,null,[lt("slot",o,n)],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),_t();const l=i&&cu(i(o)),a=o.key||l&&l.key,s=cl(it,{key:(a&&!No(a)?a:`_${t}`)+(!l&&n?"_fb":"")},l||[],l&&e._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function cu(e){return e.some(t=>vr(t)?!(t.type===Pt||t.type===it&&!cu(t.children)):!0)?e:null}const Ma=e=>e?Mu(e)?fl(e):Ma(e.parent):null,Xr=Rt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ma(e.parent),$root:e=>Ma(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>hu(e),$forceUpdate:e=>e.f||(e.f=()=>{Ta(e.update)}),$nextTick:e=>e.n||(e.n=so.bind(e.proxy)),$watch:e=>Pm.bind(e)}),Ba=(e,t)=>e!==dt&&!e.__isScriptSetup&&rt(e,t),Lm={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:r,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(Ba(n,t))return l[t]=1,n[t];if(r!==dt&&rt(r,t))return l[t]=2,r[t];if(rt(i,t))return l[t]=3,i[t];if(o!==dt&&rt(o,t))return l[t]=4,o[t];Ha&&(l[t]=0)}}const c=Xr[t];let d,u;if(c)return t==="$attrs"&&Ot(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(o!==dt&&rt(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,rt(u,t))return u[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Ba(r,t)?(r[t]=o,!0):n!==dt&&rt(n,t)?(n[t]=o,!0):rt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:r,props:i,type:l}},a){let s;return!!(o[a]||e!==dt&&a[0]!=="$"&&rt(e,a)||Ba(t,a)||rt(i,a)||rt(n,a)||rt(Xr,a)||rt(r.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:rt(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function du(e){return Be(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Ha=!0;function Nm(e){const t=hu(e),o=e.proxy,n=e.ctx;Ha=!1,t.beforeCreate&&uu(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:a,provide:s,inject:c,created:d,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:m,beforeUnmount:x,destroyed:w,unmounted:C,render:P,renderTracked:T,renderTriggered:y,errorCaptured:B,serverPrefetch:S,expose:E,inheritAttrs:j,components:_,directives:M,filters:W}=t;if(c&&jm(c,n,null),l)for(const U in l){const J=l[U];De(J)&&(n[U]=J.bind(o))}if(r){const U=r.call(o,o);ft(U)&&(e.data=Nr(U))}if(Ha=!0,i)for(const U in i){const J=i[U],pe=De(J)?J.bind(o,o):De(J.get)?J.get.bind(o,o):Ro,fe=!De(J)&&De(J.set)?J.set.bind(o):Ro,N=F({get:pe,set:fe});Object.defineProperty(n,U,{enumerable:!0,configurable:!0,get:()=>N.value,set:O=>N.value=O})}if(a)for(const U in a)fu(a[U],n,o,U);if(s){const U=De(s)?s.call(o):s;Reflect.ownKeys(U).forEach(J=>{tt(J,U[J])})}d&&uu(d,e,"c");function Z(U,J){Be(J)?J.forEach(pe=>U(pe.bind(o))):J&&U(J.bind(o))}if(Z(qr,u),Z(Bt,f),Z(Em,h),Z(lu,p),Z(Ia,g),Z(rl,b),Z(Om,B),Z(Im,T),Z(Am,y),Z(Ft,x),Z(Oa,C),Z(Fm,S),Be(E))if(E.length){const U=e.exposed||(e.exposed={});E.forEach(J=>{Object.defineProperty(U,J,{get:()=>o[J],set:pe=>o[J]=pe,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===Ro&&(e.render=P),j!=null&&(e.inheritAttrs=j),_&&(e.components=_),M&&(e.directives=M),S&&nu(e)}function jm(e,t,o=Ro){Be(e)&&(e=Da(e));for(const n in e){const r=e[n];let i;ft(r)?"default"in r?i=$e(r.from||n,r.default,!0):i=$e(r.from||n):i=$e(r),St(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[n]=i}}function uu(e,t,o){go(Be(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function fu(e,t,o,n){let r=n.includes(".")?Wd(o,n):()=>o[n];if(Ct(e)){const i=t[e];De(i)&&st(r,i)}else if(De(e))st(r,e.bind(o));else if(ft(e))if(Be(e))e.forEach(i=>fu(i,t,o,n));else{const i=De(e.handler)?e.handler.bind(o):t[e.handler];De(i)&&st(r,i,e)}}function hu(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!r.length&&!o&&!n?s=t:(s={},r.length&&r.forEach(c=>ll(s,c,l,!0)),ll(s,t,l)),ft(t)&&i.set(t,s),s}function ll(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&ll(e,i,o,!0),r&&r.forEach(l=>ll(e,l,o,!0));for(const l in t)if(!(n&&l==="expose")){const a=Wm[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Wm={data:pu,props:vu,emits:vu,methods:Yr,computed:Yr,beforeCreate:Vt,created:Vt,beforeMount:Vt,mounted:Vt,beforeUpdate:Vt,updated:Vt,beforeDestroy:Vt,beforeUnmount:Vt,destroyed:Vt,unmounted:Vt,activated:Vt,deactivated:Vt,errorCaptured:Vt,serverPrefetch:Vt,components:Yr,directives:Yr,watch:Um,provide:pu,inject:Vm};function pu(e,t){return t?e?function(){return Rt(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function Vm(e,t){return Yr(Da(e),Da(t))}function Da(e){if(Be(e)){const t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${lo(t)}Modifiers`]||e[`${$n(t)}Modifiers`];function Xm(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||dt;let r=o;const i=t.startsWith("update:"),l=i&&qm(n,t.slice(7));l&&(l.trim&&(r=o.map(d=>Ct(d)?d.trim():d)),l.number&&(r=o.map(fa)));let a,s=n[a=ua(t)]||n[a=ua(lo(t))];!s&&i&&(s=n[a=ua($n(t))]),s&&go(s,e,6,r);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,go(c,e,6,r)}}const Ym=new WeakMap;function mu(e,t,o=!1){const n=o?Ym:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let l={},a=!1;if(!De(e)){const s=c=>{const d=mu(c,t,!0);d&&(a=!0,Rt(l,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(ft(e)&&n.set(e,null),null):(Be(i)?i.forEach(s=>l[s]=null):Rt(l,i),ft(e)&&n.set(e,l),l)}function al(e,t){return!e||!Oi(t)?!1:(t=t.slice(2).replace(/Once$/,""),rt(e,t[0].toLowerCase()+t.slice(1))||rt(e,$n(t))||rt(e,t))}function A2(){}function bu(e){const{type:t,vnode:o,proxy:n,withProxy:r,propsOptions:[i],slots:l,attrs:a,emit:s,render:c,renderCache:d,props:u,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ji(e);let m,x;try{if(o.shapeFlag&4){const C=r||n,P=C;m=To(c.call(P,C,d,u,h,f,p)),x=a}else{const C=t;m=To(C.length>1?C(u,{attrs:a,slots:l,emit:s}):C(u,null)),x=t.props?a:Zm(a)}}catch(C){Jr.length=0,Yi(C,e,1),m=lt(Pt)}let w=m;if(x&&g!==!1){const C=Object.keys(x),{shapeFlag:P}=w;C.length&&P&7&&(i&&C.some(ca)&&(x=Jm(x,i)),w=qo(w,x,!1,!0))}return o.dirs&&(w=qo(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(o.dirs):o.dirs),o.transition&&On(w,o.transition),m=w,Ji(b),m}const Zm=e=>{let t;for(const o in e)(o==="class"||o==="style"||Oi(o))&&((t||(t={}))[o]=e[o]);return t},Jm=(e,t)=>{const o={};for(const n in e)(!ca(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function Qm(e,t,o){const{props:n,children:r,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return n?xu(n,l,c):!!l;if(s&8){const d=t.dynamicProps;for(let u=0;uObject.create(yu),wu=e=>Object.getPrototypeOf(e)===yu;function tb(e,t,o,n=!1){const r={},i=Cu();e.propsDefaults=Object.create(null),Su(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);o?e.props=n?r:Ad(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function ob(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,a=Ke(r),[s]=e.propsOptions;let c=!1;if((n||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let u=0;u{s=!0;const[f,h]=Ru(u,t,!0);Rt(l,f),h&&a.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return ft(e)&&n.set(e,lr),lr;if(Be(i))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",ja=e=>Be(e)?e.map(To):[To(e)],rb=(e,t,o)=>{if(t._n)return t;const n=mo((...r)=>ja(t(...r)),o);return n._c=!1,n},_u=(e,t,o)=>{const n=e._ctx;for(const r in e){if(Na(r))continue;const i=e[r];if(De(i))t[r]=rb(r,i,n);else if(i!=null){const l=ja(i);t[r]=()=>l}}},ku=(e,t)=>{const o=ja(t);e.slots.default=()=>o},zu=(e,t,o)=>{for(const n in t)(o||!Na(n))&&(e[n]=t[n])},ib=(e,t,o)=>{const n=e.slots=Cu();if(e.vnode.shapeFlag&32){const r=t._;r?(zu(n,t,o),o&&dd(n,"_",r,!0)):_u(t,n)}else t&&ku(e,t)},lb=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,l=dt;if(n.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:zu(r,t,o):(i=!t.$stable,_u(t,r)),l=t}else t&&(ku(e,t),l={default:1});if(i)for(const a in r)!Na(a)&&l[a]==null&&delete r[a]},Ut=ub;function ab(e){return sb(e)}function sb(e,t){const o=Ni();o.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:l,createText:a,createComment:s,setText:c,setElementText:d,parentNode:u,nextSibling:f,setScopeId:h=Ro,insertStaticContent:p}=e,g=(k,$,K,ie=null,le=null,re=null,xe=void 0,ne=null,te=!!$.dynamicChildren)=>{if(k===$)return;k&&!Bn(k,$)&&(ie=X(k),O(k,le,re,!0),k=null),$.patchFlag===-2&&(te=!1,$.dynamicChildren=null);const{type:oe,ref:ye,shapeFlag:be}=$;switch(oe){case Zr:b(k,$,K,ie);break;case Pt:m(k,$,K,ie);break;case Ua:k==null&&x($,K,ie,xe);break;case it:_(k,$,K,ie,le,re,xe,ne,te);break;default:be&1?P(k,$,K,ie,le,re,xe,ne,te):be&6?M(k,$,K,ie,le,re,xe,ne,te):(be&64||be&128)&&oe.process(k,$,K,ie,le,re,xe,ne,te,ae)}ye!=null&&le?Gr(ye,k&&k.ref,re,$||k,!$):ye==null&&k&&k.ref!=null&&Gr(k.ref,null,re,k,!0)},b=(k,$,K,ie)=>{if(k==null)n($.el=a($.children),K,ie);else{const le=$.el=k.el;$.children!==k.children&&c(le,$.children)}},m=(k,$,K,ie)=>{k==null?n($.el=s($.children||""),K,ie):$.el=k.el},x=(k,$,K,ie)=>{[k.el,k.anchor]=p(k.children,$,K,ie,k.el,k.anchor)},w=({el:k,anchor:$},K,ie)=>{let le;for(;k&&k!==$;)le=f(k),n(k,K,ie),k=le;n($,K,ie)},C=({el:k,anchor:$})=>{let K;for(;k&&k!==$;)K=f(k),r(k),k=K;r($)},P=(k,$,K,ie,le,re,xe,ne,te)=>{if($.type==="svg"?xe="svg":$.type==="math"&&(xe="mathml"),k==null)T($,K,ie,le,re,xe,ne,te);else{const oe=k.el&&k.el._isVueCE?k.el:null;try{oe&&oe._beginPatch(),S(k,$,le,re,xe,ne,te)}finally{oe&&oe._endPatch()}}},T=(k,$,K,ie,le,re,xe,ne)=>{let te,oe;const{props:ye,shapeFlag:be,transition:ee,dirs:se}=k;if(te=k.el=l(k.type,re,ye&&ye.is,ye),be&8?d(te,k.children):be&16&&B(k.children,te,null,ie,le,Wa(k,re),xe,ne),se&&In(k,null,ie,"created"),y(te,k,k.scopeId,xe,ie),ye){for(const Me in ye)Me!=="value"&&!Or(Me)&&i(te,Me,null,ye[Me],re,ie);"value"in ye&&i(te,"value",null,ye.value,re),(oe=ye.onVnodeBeforeMount)&&$o(oe,ie,k)}se&&In(k,null,ie,"beforeMount");const ke=cb(le,ee);ke&&ee.beforeEnter(te),n(te,$,K),((oe=ye&&ye.onVnodeMounted)||ke||se)&&Ut(()=>{oe&&$o(oe,ie,k),ke&&ee.enter(te),se&&In(k,null,ie,"mounted")},le)},y=(k,$,K,ie,le)=>{if(K&&h(k,K),ie)for(let re=0;re{for(let oe=te;oe{const ne=$.el=k.el;let{patchFlag:te,dynamicChildren:oe,dirs:ye}=$;te|=k.patchFlag&16;const be=k.props||dt,ee=$.props||dt;let se;if(K&&Mn(K,!1),(se=ee.onVnodeBeforeUpdate)&&$o(se,K,$,k),ye&&In($,k,K,"beforeUpdate"),K&&Mn(K,!0),(be.innerHTML&&ee.innerHTML==null||be.textContent&&ee.textContent==null)&&d(ne,""),oe?E(k.dynamicChildren,oe,ne,K,ie,Wa($,le),re):xe||J(k,$,ne,null,K,ie,Wa($,le),re,!1),te>0){if(te&16)j(ne,be,ee,K,le);else if(te&2&&be.class!==ee.class&&i(ne,"class",null,ee.class,le),te&4&&i(ne,"style",be.style,ee.style,le),te&8){const ke=$.dynamicProps;for(let Me=0;Me{se&&$o(se,K,$,k),ye&&In($,k,K,"updated")},ie)},E=(k,$,K,ie,le,re,xe)=>{for(let ne=0;ne<$.length;ne++){const te=k[ne],oe=$[ne],ye=te.el&&(te.type===it||!Bn(te,oe)||te.shapeFlag&198)?u(te.el):K;g(te,oe,ye,null,ie,le,re,xe,!0)}},j=(k,$,K,ie,le)=>{if($!==K){if($!==dt)for(const re in $)!Or(re)&&!(re in K)&&i(k,re,$[re],null,le,ie);for(const re in K){if(Or(re))continue;const xe=K[re],ne=$[re];xe!==ne&&re!=="value"&&i(k,re,ne,xe,le,ie)}"value"in K&&i(k,"value",$.value,K.value,le)}},_=(k,$,K,ie,le,re,xe,ne,te)=>{const oe=$.el=k?k.el:a(""),ye=$.anchor=k?k.anchor:a("");let{patchFlag:be,dynamicChildren:ee,slotScopeIds:se}=$;se&&(ne=ne?ne.concat(se):se),k==null?(n(oe,K,ie),n(ye,K,ie),B($.children||[],K,ye,le,re,xe,ne,te)):be>0&&be&64&&ee&&k.dynamicChildren&&k.dynamicChildren.length===ee.length?(E(k.dynamicChildren,ee,K,le,re,xe,ne),($.key!=null||le&&$===le.subTree)&&Va(k,$,!0)):J(k,$,K,ye,le,re,xe,ne,te)},M=(k,$,K,ie,le,re,xe,ne,te)=>{$.slotScopeIds=ne,k==null?$.shapeFlag&512?le.ctx.activate($,K,ie,xe,te):W($,K,ie,le,re,xe,te):D(k,$,te)},W=(k,$,K,ie,le,re,xe)=>{const ne=k.component=mb(k,ie,le);if(nl(k)&&(ne.ctx.renderer=ae),bb(ne,!1,xe),ne.asyncDep){if(le&&le.registerDep(ne,Z,xe),!k.el){const te=ne.subTree=lt(Pt);m(null,te,$,K),k.placeholder=te.el}}else Z(ne,k,$,K,le,re,xe)},D=(k,$,K)=>{const ie=$.component=k.component;if(Qm(k,$,K))if(ie.asyncDep&&!ie.asyncResolved){U(ie,$,K);return}else ie.next=$,ie.update();else $.el=k.el,ie.vnode=$},Z=(k,$,K,ie,le,re,xe)=>{const ne=()=>{if(k.isMounted){let{next:be,bu:ee,u:se,parent:ke,vnode:Me}=k;{const ot=Tu(k);if(ot){be&&(be.el=Me.el,U(k,be,xe)),ot.asyncDep.then(()=>{k.isUnmounted||ne()});return}}let He=be,Qe;Mn(k,!1),be?(be.el=Me.el,U(k,be,xe)):be=Me,ee&&Li(ee),(Qe=be.props&&be.props.onVnodeBeforeUpdate)&&$o(Qe,ke,be,Me),Mn(k,!0);const Ve=bu(k),We=k.subTree;k.subTree=Ve,g(We,Ve,u(We.el),X(We),k,le,re),be.el=Ve.el,He===null&&eb(k,Ve.el),se&&Ut(se,le),(Qe=be.props&&be.props.onVnodeUpdated)&&Ut(()=>$o(Qe,ke,be,Me),le)}else{let be;const{el:ee,props:se}=$,{bm:ke,m:Me,parent:He,root:Qe,type:Ve}=k,We=hr($);Mn(k,!1),ke&&Li(ke),!We&&(be=se&&se.onVnodeBeforeMount)&&$o(be,He,$),Mn(k,!0);{Qe.ce&&Qe.ce._def.shadowRoot!==!1&&Qe.ce._injectChildStyle(Ve);const ot=k.subTree=bu(k);g(null,ot,K,ie,k,le,re),$.el=ot.el}if(Me&&Ut(Me,le),!We&&(be=se&&se.onVnodeMounted)){const ot=$;Ut(()=>$o(be,He,ot),le)}($.shapeFlag&256||He&&hr(He.vnode)&&He.vnode.shapeFlag&256)&&k.a&&Ut(k.a,le),k.isMounted=!0,$=K=ie=null}};k.scope.on();const te=k.effect=new vd(ne);k.scope.off();const oe=k.update=te.run.bind(te),ye=k.job=te.runIfDirty.bind(te);ye.i=k,ye.id=k.uid,te.scheduler=()=>Ta(ye),Mn(k,!0),oe()},U=(k,$,K)=>{$.component=k;const ie=k.vnode.props;k.vnode=$,k.next=null,ob(k,$.props,ie,K),lb(k,$.children,K),_o(),Dd(k),ko()},J=(k,$,K,ie,le,re,xe,ne,te=!1)=>{const oe=k&&k.children,ye=k?k.shapeFlag:0,be=$.children,{patchFlag:ee,shapeFlag:se}=$;if(ee>0){if(ee&128){fe(oe,be,K,ie,le,re,xe,ne,te);return}else if(ee&256){pe(oe,be,K,ie,le,re,xe,ne,te);return}}se&8?(ye&16&&we(oe,le,re),be!==oe&&d(K,be)):ye&16?se&16?fe(oe,be,K,ie,le,re,xe,ne,te):we(oe,le,re,!0):(ye&8&&d(K,""),se&16&&B(be,K,ie,le,re,xe,ne,te))},pe=(k,$,K,ie,le,re,xe,ne,te)=>{k=k||lr,$=$||lr;const oe=k.length,ye=$.length,be=Math.min(oe,ye);let ee;for(ee=0;eeye?we(k,le,re,!0,!1,be):B($,K,ie,le,re,xe,ne,te,be)},fe=(k,$,K,ie,le,re,xe,ne,te)=>{let oe=0;const ye=$.length;let be=k.length-1,ee=ye-1;for(;oe<=be&&oe<=ee;){const se=k[oe],ke=$[oe]=te?fn($[oe]):To($[oe]);if(Bn(se,ke))g(se,ke,K,null,le,re,xe,ne,te);else break;oe++}for(;oe<=be&&oe<=ee;){const se=k[be],ke=$[ee]=te?fn($[ee]):To($[ee]);if(Bn(se,ke))g(se,ke,K,null,le,re,xe,ne,te);else break;be--,ee--}if(oe>be){if(oe<=ee){const se=ee+1,ke=seee)for(;oe<=be;)O(k[oe],le,re,!0),oe++;else{const se=oe,ke=oe,Me=new Map;for(oe=ke;oe<=ee;oe++){const ze=$[oe]=te?fn($[oe]):To($[oe]);ze.key!=null&&Me.set(ze.key,oe)}let He,Qe=0;const Ve=ee-ke+1;let We=!1,ot=0;const Xe=new Array(Ve);for(oe=0;oe=Ve){O(ze,le,re,!0);continue}let z;if(ze.key!=null)z=Me.get(ze.key);else for(He=ke;He<=ee;He++)if(Xe[He-ke]===0&&Bn(ze,$[He])){z=He;break}z===void 0?O(ze,le,re,!0):(Xe[z-ke]=oe+1,z>=ot?ot=z:We=!0,g(ze,$[z],K,null,le,re,xe,ne,te),Qe++)}const Pe=We?db(Xe):lr;for(He=Pe.length-1,oe=Ve-1;oe>=0;oe--){const ze=ke+oe,z=$[ze],q=$[ze+1],ce=ze+1{const{el:re,type:xe,transition:ne,children:te,shapeFlag:oe}=k;if(oe&6){N(k.component.subTree,$,K,ie);return}if(oe&128){k.suspense.move($,K,ie);return}if(oe&64){xe.move(k,$,K,ae);return}if(xe===it){n(re,$,K);for(let be=0;bene.enter(re),le);else{const{leave:be,delayLeave:ee,afterLeave:se}=ne,ke=()=>{k.ctx.isUnmounted?r(re):n(re,$,K)},Me=()=>{re._isLeaving&&re[Ko](!0),be(re,()=>{ke(),se&&se()})};ee?ee(re,ke,Me):Me()}else n(re,$,K)},O=(k,$,K,ie=!1,le=!1)=>{const{type:re,props:xe,ref:ne,children:te,dynamicChildren:oe,shapeFlag:ye,patchFlag:be,dirs:ee,cacheIndex:se}=k;if(be===-2&&(le=!1),ne!=null&&(_o(),Gr(ne,null,K,k,!0),ko()),se!=null&&($.renderCache[se]=void 0),ye&256){$.ctx.deactivate(k);return}const ke=ye&1&&ee,Me=!hr(k);let He;if(Me&&(He=xe&&xe.onVnodeBeforeUnmount)&&$o(He,$,k),ye&6)he(k.component,K,ie);else{if(ye&128){k.suspense.unmount(K,ie);return}ke&&In(k,null,$,"beforeUnmount"),ye&64?k.type.remove(k,$,K,ae,ie):oe&&!oe.hasOnce&&(re!==it||be>0&&be&64)?we(oe,$,K,!1,!0):(re===it&&be&384||!le&&ye&16)&&we(te,$,K),ie&&A(k)}(Me&&(He=xe&&xe.onVnodeUnmounted)||ke)&&Ut(()=>{He&&$o(He,$,k),ke&&In(k,null,$,"unmounted")},K)},A=k=>{const{type:$,el:K,anchor:ie,transition:le}=k;if($===it){Q(K,ie);return}if($===Ua){C(k);return}const re=()=>{r(K),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(k.shapeFlag&1&&le&&!le.persisted){const{leave:xe,delayLeave:ne}=le,te=()=>xe(K,re);ne?ne(k.el,re,te):te()}else re()},Q=(k,$)=>{let K;for(;k!==$;)K=f(k),r(k),k=K;r($)},he=(k,$,K)=>{const{bum:ie,scope:le,job:re,subTree:xe,um:ne,m:te,a:oe}=k;$u(te),$u(oe),ie&&Li(ie),le.stop(),re&&(re.flags|=8,O(xe,k,$,K)),ne&&Ut(ne,$),Ut(()=>{k.isUnmounted=!0},$)},we=(k,$,K,ie=!1,le=!1,re=0)=>{for(let xe=re;xe{if(k.shapeFlag&6)return X(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const $=f(k.anchor||k.el),K=$&&$[Vd];return K?f(K):$};let de=!1;const R=(k,$,K)=>{let ie;k==null?$._vnode&&(O($._vnode,null,null,!0),ie=$._vnode.component):g($._vnode||null,k,$,null,null,null,K),$._vnode=k,de||(de=!0,Dd(ie),Ld(),de=!1)},ae={p:g,um:O,m:N,r:A,mt:W,mc:B,pc:J,pbc:E,n:X,o:e};return{render:R,hydrate:void 0,createApp:Gm(R)}}function Wa({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Mn({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function cb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Va(e,t,o=!1){const n=e.children,r=t.children;if(Be(n)&&Be(r))for(let i=0;i>1,e[o[a]]0&&(t[n]=o[i-1]),o[i]=n)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function Tu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Tu(t)}function $u(e){if(e)for(let t=0;te.__isSuspense;function ub(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):wm(e)}const it=Symbol.for("v-fgt"),Zr=Symbol.for("v-txt"),Pt=Symbol.for("v-cmt"),Ua=Symbol.for("v-stc"),Jr=[];let oo=null;function _t(e=!1){Jr.push(oo=e?null:[])}function fb(){Jr.pop(),oo=Jr[Jr.length-1]||null}let Qr=1;function sl(e,t=!1){Qr+=e,e<0&&oo&&t&&(oo.hasOnce=!0)}function Au(e){return e.dynamicChildren=Qr>0?oo||lr:null,fb(),Qr>0&&oo&&oo.push(e),e}function Kt(e,t,o,n,r,i){return Au(Ne(e,t,o,n,r,i,!0))}function cl(e,t,o,n,r){return Au(lt(e,t,o,n,r,!0))}function vr(e){return e?e.__v_isVNode===!0:!1}function Bn(e,t){return e.type===t.type&&e.key===t.key}const Iu=({key:e})=>e??null,dl=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Ct(e)||St(e)||De(e)?{i:Et,r:e,k:t,f:!!o}:e:null);function Ne(e,t=null,o=null,n=0,r=null,i=e===it?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Iu(t),ref:t&&dl(t),scopeId:jd,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Et};return a?(Ka(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Ct(o)?8:16),Qr>0&&!l&&oo&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&oo.push(s),s}const lt=hb;function hb(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===Hm)&&(e=Pt),vr(e)){const a=qo(e,t,!0);return o&&Ka(a,o),Qr>0&&!i&&oo&&(a.shapeFlag&6?oo[oo.indexOf(e)]=a:oo.push(a)),a.patchFlag=-2,a}if(Rb(e)&&(e=e.__vccOpts),t){t=pb(t);let{class:a,style:s}=t;a&&!Ct(a)&&(t.class=pa(a)),ft(s)&&(Gi(s)&&!Be(s)&&(s=Rt({},s)),t.style=ha(s))}const l=Ct(e)?1:Fu(e)?128:Ud(e)?64:ft(e)?4:De(e)?2:0;return Ne(e,t,o,n,r,l,i,!0)}function pb(e){return e?Gi(e)||wu(e)?Rt({},e):e:null}function qo(e,t,o=!1,n=!1){const{props:r,ref:i,patchFlag:l,children:a,transition:s}=e,c=t?xo(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Iu(c),ref:t&&t.ref?o&&i?Be(i)?i.concat(dl(t)):[i,dl(t)]:dl(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==it?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qo(e.ssContent),ssFallback:e.ssFallback&&qo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&n&&On(d,s.clone(d)),d}function un(e=" ",t=0){return lt(Zr,null,e,t)}function ei(e="",t=!1){return t?(_t(),cl(Pt,null,e)):lt(Pt,null,e)}function To(e){return e==null||typeof e=="boolean"?lt(Pt):Be(e)?lt(it,null,e.slice()):vr(e)?fn(e):lt(Zr,null,String(e))}function fn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function Ka(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Be(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Ka(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!wu(t)?t._ctx=Et:r===3&&Et&&(Et.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:Et},o=32):(t=String(t),n&64?(o=16,t=[un(t)]):o=8);e.children=t,e.shapeFlag|=o}function xo(...e){const t={};for(let o=0;oHt||Et;let ul,Ga;{const e=Ni(),t=(o,n)=>{let r;return(r=e[o])||(r=e[o]=[]),r.push(n),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};ul=t("__VUE_INSTANCE_SETTERS__",o=>Ht=o),Ga=t("__VUE_SSR_SETTERS__",o=>oi=o)}const ti=e=>{const t=Ht;return ul(e),e.scope.on(),()=>{e.scope.off(),ul(t)}},Ou=()=>{Ht&&Ht.scope.off(),ul(null)};function Mu(e){return e.vnode.shapeFlag&4}let oi=!1;function bb(e,t=!1,o=!1){t&&Ga(t);const{props:n,children:r}=e.vnode,i=Mu(e);tb(e,n,i,t),ib(e,r,o||t);const l=i?xb(e,t):void 0;return t&&Ga(!1),l}function xb(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Lm);const{setup:n}=o;if(n){_o();const r=e.setupContext=n.length>1?Cb(e):null,i=ti(e),l=dr(n,e,0,[e.props,r]),a=ad(l);if(ko(),i(),(a||e.sp)&&!hr(e)&&nu(e),a){if(l.then(Ou,Ou),t)return l.then(s=>{Bu(e,s)}).catch(s=>{Yi(s,e,0)});e.asyncDep=l}else Bu(e,l)}else Hu(e)}function Bu(e,t,o){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=Od(t)),Hu(e)}function Hu(e,t,o){const n=e.type;e.render||(e.render=n.render||Ro);{const r=ti(e);_o();try{Nm(e)}finally{ko(),r()}}}const yb={get(e,t){return Ot(e,"get",""),e[t]}};function Cb(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,yb),slots:e.slots,emit:e.emit,expose:t}}function fl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Od(lm(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Xr)return Xr[o](e)},has(t,o){return o in t||o in Xr}})):e.proxy}const wb=/(?:^|[-_])\w/g,Sb=e=>e.replace(wb,t=>t.toUpperCase()).replace(/[-_]/g,"");function Du(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function Lu(e,t,o=!1){let n=Du(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e){const r=i=>{for(const l in i)if(i[l]===t)return l};n=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return n?Sb(n):o?"App":"Anonymous"}function Rb(e){return De(e)&&"__vccOpts"in e}const F=(e,t)=>hm(e,t,oi);function v(e,t,o){try{sl(-1);const n=arguments.length;return n===2?ft(t)&&!Be(t)?vr(t)?lt(e,null,[t]):lt(e,t):lt(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&vr(o)&&(o=[o]),lt(e,t,o))}finally{sl(1)}}const Pb="3.5.26";/** +* @vue/runtime-dom v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let qa;const Nu=typeof window<"u"&&window.trustedTypes;if(Nu)try{qa=Nu.createPolicy("vue",{createHTML:e=>e})}catch{}const ju=qa?e=>qa.createHTML(e):e=>e,_b="http://www.w3.org/2000/svg",kb="http://www.w3.org/1998/Math/MathML",Xo=typeof document<"u"?document:null,Wu=Xo&&Xo.createElement("template"),zb={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const r=t==="svg"?Xo.createElementNS(_b,e):t==="mathml"?Xo.createElementNS(kb,e):o?Xo.createElement(e,{is:o}):Xo.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Xo.createTextNode(e),createComment:e=>Xo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,n,r,i){const l=o?o.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),o),!(r===i||!(r=r.nextSibling)););else{Wu.innerHTML=ju(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const a=Wu.content;if(n==="svg"||n==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},hn="transition",ni="animation",gr=Symbol("_vtc"),Vu={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Uu=Rt({},Jd,Vu),Yo=(e=>(e.displayName="Transition",e.props=Uu,e))((e,{slots:t})=>v(Tm,Gu(e),t)),Dn=(e,t=[])=>{Be(e)?e.forEach(o=>o(...t)):e&&e(...t)},Ku=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function Gu(e){const t={};for(const _ in e)_ in Vu||(t[_]=e[_]);if(e.css===!1)return t;const{name:o="v",type:n,duration:r,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:c=l,appearToClass:d=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,p=Tb(r),g=p&&p[0],b=p&&p[1],{onBeforeEnter:m,onEnter:x,onEnterCancelled:w,onLeave:C,onLeaveCancelled:P,onBeforeAppear:T=m,onAppear:y=x,onAppearCancelled:B=w}=t,S=(_,M,W,D)=>{_._enterCancelled=D,pn(_,M?d:a),pn(_,M?c:l),W&&W()},E=(_,M)=>{_._isLeaving=!1,pn(_,u),pn(_,h),pn(_,f),M&&M()},j=_=>(M,W)=>{const D=_?y:x,Z=()=>S(M,_,W);Dn(D,[M,Z]),qu(()=>{pn(M,_?s:i),Eo(M,_?d:a),Ku(D)||Xu(M,n,g,Z)})};return Rt(t,{onBeforeEnter(_){Dn(m,[_]),Eo(_,i),Eo(_,l)},onBeforeAppear(_){Dn(T,[_]),Eo(_,s),Eo(_,c)},onEnter:j(!1),onAppear:j(!0),onLeave(_,M){_._isLeaving=!0;const W=()=>E(_,M);Eo(_,u),_._enterCancelled?(Eo(_,f),Ya(_)):(Ya(_),Eo(_,f)),qu(()=>{_._isLeaving&&(pn(_,u),Eo(_,h),Ku(C)||Xu(_,n,b,W))}),Dn(C,[_,W])},onEnterCancelled(_){S(_,!1,void 0,!0),Dn(w,[_])},onAppearCancelled(_){S(_,!0,void 0,!0),Dn(B,[_])},onLeaveCancelled(_){E(_),Dn(P,[_])}})}function Tb(e){if(e==null)return null;if(ft(e))return[Xa(e.enter),Xa(e.leave)];{const t=Xa(e);return[t,t]}}function Xa(e){return Ag(e)}function Eo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[gr]||(e[gr]=new Set)).add(t)}function pn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const o=e[gr];o&&(o.delete(t),o.size||(e[gr]=void 0))}function qu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let $b=0;function Xu(e,t,o,n){const r=e._endId=++$b,i=()=>{r===e._endId&&n()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Yu(e,t);if(!l)return n();const c=l+"end";let d=0;const u=()=>{e.removeEventListener(c,f),i()},f=h=>{h.target===e&&++d>=s&&u()};setTimeout(()=>{d(o[p]||"").split(", "),r=n(`${hn}Delay`),i=n(`${hn}Duration`),l=Zu(r,i),a=n(`${ni}Delay`),s=n(`${ni}Duration`),c=Zu(a,s);let d=null,u=0,f=0;t===hn?l>0&&(d=hn,u=l,f=i.length):t===ni?c>0&&(d=ni,u=c,f=s.length):(u=Math.max(l,c),d=u>0?l>c?hn:ni:null,f=d?d===hn?i.length:s.length:0);const h=d===hn&&/\b(?:transform|all)(?:,|$)/.test(n(`${hn}Property`).toString());return{type:d,timeout:u,propCount:f,hasTransform:h}}function Zu(e,t){for(;e.lengthJu(o)+Ju(e[n])))}function Ju(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ya(e){return(e?e.ownerDocument:document).body.offsetHeight}function Eb(e,t,o){const n=e[gr];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const hl=Symbol("_vod"),Qu=Symbol("_vsh"),ef={name:"show",beforeMount(e,{value:t},{transition:o}){e[hl]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):ri(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),ri(e,!0),n.enter(e)):n.leave(e,()=>{ri(e,!1)}):ri(e,t))},beforeUnmount(e,{value:t}){ri(e,t)}};function ri(e,t){e.style.display=t?e[hl]:"none",e[Qu]=!t}const Fb=Symbol(""),Ab=/(?:^|;)\s*display\s*:/;function Ib(e,t,o){const n=e.style,r=Ct(o);let i=!1;if(o&&!r){if(t)if(Ct(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&pl(n,a,"")}else for(const l in t)o[l]==null&&pl(n,l,"");for(const l in o)l==="display"&&(i=!0),pl(n,l,o[l])}else if(r){if(t!==o){const l=n[Fb];l&&(o+=";"+l),n.cssText=o,i=Ab.test(o)}}else t&&e.removeAttribute("style");hl in e&&(e[hl]=i?n.display:"",e[Qu]&&(n.display="none"))}const tf=/\s*!important$/;function pl(e,t,o){if(Be(o))o.forEach(n=>pl(e,t,n));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const n=Ob(e,t);tf.test(o)?e.setProperty($n(n),o.replace(tf,""),"important"):e[n]=o}}const of=["Webkit","Moz","ms"],Za={};function Ob(e,t){const o=Za[t];if(o)return o;let n=lo(t);if(n!=="filter"&&n in e)return Za[t]=n;n=Di(n);for(let r=0;rJa||(Db.then(()=>Ja=0),Ja=Date.now());function Nb(e,t){const o=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=o.attached)return;go(jb(n,o.value),t,5,[n])};return o.value=e,o.attached=Lb(),o}function jb(e,t){if(Be(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const cf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wb=(e,t,o,n,r,i)=>{const l=r==="svg";t==="class"?Eb(e,n,l):t==="style"?Ib(e,o,n):Oi(t)?ca(t)||Bb(e,t,o,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vb(e,t,n,l))?(lf(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rf(e,t,n,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ct(n))?lf(e,lo(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),rf(e,t,n,l))};function Vb(e,t,o,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&cf(t)&&De(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return cf(t)&&Ct(o)?!1:t in e}const df=new WeakMap,uf=new WeakMap,vl=Symbol("_moveCb"),ff=Symbol("_enterCb"),Ub=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Rt({},Uu,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Hn(),n=Zd();let r,i;return lu(()=>{if(!r.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!Xb(r[0].el,o.vnode.el,l)){r=[];return}r.forEach(Kb),r.forEach(Gb);const a=r.filter(qb);Ya(o.vnode.el),a.forEach(s=>{const c=s.el,d=c.style;Eo(c,l),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[vl]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",u),c[vl]=null,pn(c,l))};c.addEventListener("transitionend",u)}),r=[]}),()=>{const l=Ke(e),a=Gu(l);let s=l.tag||it;if(r=[],i)for(let c=0;c{a.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),o.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:l}=Yu(n);return i.removeChild(n),l}const hf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?o=>Li(t,o):t};function Yb(e){e.target.composing=!0}function pf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qa=Symbol("_assign");function vf(e,t,o){return t&&(e=e.trim()),o&&(e=fa(e)),e}const br={created(e,{modifiers:{lazy:t,trim:o,number:n}},r){e[Qa]=hf(r);const i=n||r.props&&r.props.type==="number";mr(e,t?"change":"input",l=>{l.target.composing||e[Qa](vf(e.value,o,i))}),(o||i)&&mr(e,"change",()=>{e.value=vf(e.value,o,i)}),t||(mr(e,"compositionstart",Yb),mr(e,"compositionend",pf),mr(e,"change",pf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:o,modifiers:{lazy:n,trim:r,number:i}},l){if(e[Qa]=hf(l),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?fa(e.value):e.value,s=t??"";a!==s&&(document.activeElement===e&&e.type!=="range"&&(n&&t===o||r&&e.value.trim()===s)||(e.value=s))}},Zb=["ctrl","shift","alt","meta"],Jb={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Zb.some(o=>e[`${o}Key`]&&!t.includes(o))},gf=(e,t)=>{const o=e._withMods||(e._withMods={}),n=t.join(".");return o[n]||(o[n]=(r,...i)=>{for(let l=0;l{const t=e0().createApp(...e),{mount:o}=t;return t.mount=n=>{const r=n0(n);if(!r)return;const i=t._component;!De(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=o(r,!1,o0(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function o0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function n0(e){return Ct(e)?document.querySelector(e):e}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const xr=typeof document<"u";function bf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function r0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&bf(e.default)}const at=Object.assign;function es(e,t){const o={};for(const n in t){const r=t[n];o[n]=yo(r)?r.map(e):e(r)}return o}const ii=()=>{},yo=Array.isArray;function xf(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}const yf=/#/g,i0=/&/g,l0=/\//g,a0=/=/g,s0=/\?/g,Cf=/\+/g,c0=/%5B/g,d0=/%5D/g,wf=/%5E/g,u0=/%60/g,Sf=/%7B/g,f0=/%7C/g,Rf=/%7D/g,h0=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(f0,"|").replace(c0,"[").replace(d0,"]")}function p0(e){return ts(e).replace(Sf,"{").replace(Rf,"}").replace(wf,"^")}function os(e){return ts(e).replace(Cf,"%2B").replace(h0,"+").replace(yf,"%23").replace(i0,"%26").replace(u0,"`").replace(Sf,"{").replace(Rf,"}").replace(wf,"^")}function v0(e){return os(e).replace(a0,"%3D")}function g0(e){return ts(e).replace(yf,"%23").replace(s0,"%3F")}function m0(e){return g0(e).replace(l0,"%2F")}function li(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const b0=/\/$/,x0=e=>e.replace(b0,"");function ns(e,t,o="/"){let n,r={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(n=t.slice(0,s),i=t.slice(s,a>0?a:t.length),r=e(i.slice(1))),a>=0&&(n=n||t.slice(0,a),l=t.slice(a,t.length)),n=S0(n??t,o),{fullPath:n+i+l,path:n,query:r,hash:li(l)}}function y0(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function Pf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function C0(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&yr(t.matched[n],o.matched[r])&&_f(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function yr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _f(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!w0(e[o],t[o]))return!1;return!0}function w0(e,t){return yo(e)?kf(e,t):yo(t)?kf(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function kf(e,t){return yo(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function S0(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=o.length-1,l,a;for(l=0;l1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(l).join("/")}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let rs=function(e){return e.pop="pop",e.push="push",e}({}),is=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function R0(e){if(!e)if(xr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),x0(e)}const P0=/^[^#]+#/;function _0(e,t){return e.replace(P0,"#")+t}function k0(e,t){const o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}const gl=()=>({left:window.scrollX,top:window.scrollY});function z0(e){let t;if("el"in e){const o=e.el,n=typeof o=="string"&&o.startsWith("#"),r=typeof o=="string"?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;t=k0(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function zf(e,t){return(history.state?history.state.position-t:-1)+e}const ls=new Map;function T0(e,t){ls.set(e,t)}function $0(e){const t=ls.get(e);return ls.delete(e),t}function E0(e){return typeof e=="string"||e&&typeof e=="object"}function Tf(e){return typeof e=="string"||typeof e=="symbol"}let wt=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const $f=Symbol("");wt.MATCHER_NOT_FOUND+"",wt.NAVIGATION_GUARD_REDIRECT+"",wt.NAVIGATION_ABORTED+"",wt.NAVIGATION_CANCELLED+"",wt.NAVIGATION_DUPLICATED+"";function Cr(e,t){return at(new Error,{type:e,[$f]:!0},t)}function Zo(e,t){return e instanceof Error&&$f in e&&(t==null||!!(e.type&t))}const F0=["params","query","hash"];function A0(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of F0)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function I0(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;nr&&os(r)):[n&&os(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+o,r!=null&&(t+="="+r))})}return t}function O0(e){const t={};for(const o in e){const n=e[o];n!==void 0&&(t[o]=yo(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const M0=Symbol(""),Ff=Symbol(""),ml=Symbol(""),as=Symbol(""),ss=Symbol("");function ai(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function gn(e,t,o,n,r,i=l=>l()){const l=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(Cr(wt.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):E0(f)?s(Cr(wt.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&n.enterCallbacks[r]===l&&typeof f=="function"&&l.push(f),a())},d=i(()=>e.call(n&&n.instances[r],t,o,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(f=>s(f))})}function cs(e,t,o,n,r=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(bf(s)){const c=(s.__vccOpts||s)[t];c&&i.push(gn(c,o,n,l,a,r))}else{let c=s();i.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=r0(d)?d.default:d;l.mods[a]=d,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&gn(f,o,n,l,a,r)()}))}}return i}function B0(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lyr(c,a))?n.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(c=>yr(c,s))||r.push(s))}return[o,n,r]}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let H0=()=>location.protocol+"//"+location.host;function Af(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),Pf(a,"")}return Pf(o,e)+n+r}function D0(e,t,o,n){let r=[],i=[],l=null;const a=({state:f})=>{const h=Af(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else n(h);r.forEach(m=>{m(o.value,p,{delta:b,type:rs.pop,direction:b?b>0?is.forward:is.back:is.unknown})})};function s(){l=o.value}function c(f){r.push(f);const h=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return i.push(h),h}function d(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(at({},f.state,{scroll:gl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:s,listen:c,destroy:u}}function If(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?gl():null}}function L0(e){const{history:t,location:o}=window,n={value:Af(e,o)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,d){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:H0()+e+s;try{t[d?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),o[d?"replace":"assign"](f)}}function l(s,c){i(s,at({},t.state,If(r.value.back,s,r.value.forward,!0),c,{position:r.value.position}),!0),n.value=s}function a(s,c){const d=at({},r.value,t.state,{forward:s,scroll:gl()});i(d.current,d,!0),i(s,at({},If(n.value,s,null),{position:d.position+1},c),!1),n.value=s}return{location:n,state:r,push:a,replace:l}}function N0(e){e=R0(e);const t=L0(e),o=D0(e,t.state,t.location,t.replace);function n(i,l=!0){l||o.pauseListeners(),history.go(i)}const r=at({location:"",base:e,go:n,createHref:_0.bind(null,e)},t,o);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Ln=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var kt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(kt||{});const j0={type:Ln.Static,value:""},W0=/[a-zA-Z0-9_]/;function V0(e){if(!e)return[[]];if(e==="/")return[[j0]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${c}": ${h}`)}let o=kt.Static,n=o;const r=[];let i;function l(){i&&r.push(i),i=[]}let a=0,s,c="",d="";function u(){c&&(o===kt.Static?i.push({type:Ln.Static,value:c}):o===kt.Param||o===kt.ParamRegExp||o===kt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Ln.Param,value:c,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;at.length?t.length===1&&t[0]===Gt.Static+Gt.Segment?1:-1:0}function Mf(e,t){let o=0;const n=e.score,r=t.score;for(;o0&&t[t.length-1]<0}const X0={strict:!1,end:!0,sensitive:!1};function Y0(e,t,o){const n=G0(V0(e.path),o),r=at(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Z0(e,t){const o=[],n=new Map;t=xf(X0,t);function r(u){return n.get(u)}function i(u,f,h){const p=!h,g=Df(u);g.aliasOf=h&&h.record;const b=xf(t,u),m=[g];if("alias"in u){const C=typeof u.alias=="string"?[u.alias]:u.alias;for(const P of C)m.push(Df(at({},g,{components:h?h.record.components:g.components,path:P,aliasOf:h?h.record:g})))}let x,w;for(const C of m){const{path:P}=C;if(f&&P[0]!=="/"){const T=f.record.path,y=T[T.length-1]==="/"?"":"/";C.path=f.record.path+(P&&y+P)}if(x=Y0(C,f,b),h?h.alias.push(x):(w=w||x,w!==x&&w.alias.push(x),p&&u.name&&!Lf(x)&&l(u.name)),Nf(x)&&s(x),g.children){const T=g.children;for(let y=0;y{l(w)}:ii}function l(u){if(Tf(u)){const f=n.get(u);f&&(n.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&n.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=ex(u,o);o.splice(f,0,u),u.record.name&&!Lf(u)&&n.set(u.record.name,u)}function c(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=n.get(u.name),!h)throw Cr(wt.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=at(Hf(f.params,h.keys.filter(w=>!w.optional).concat(h.parent?h.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),u.params&&Hf(u.params,h.keys.map(w=>w.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(w=>w.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?n.get(f.name):o.find(w=>w.re.test(f.path)),!h)throw Cr(wt.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=at({},f.params,u.params),g=h.stringify(p)}const m=[];let x=h;for(;x;)m.unshift(x.record),x=x.parent;return{name:b,path:g,params:p,matched:m,meta:Q0(m)}}e.forEach(u=>i(u));function d(){o.length=0,n.clear()}return{addRoute:i,resolve:c,removeRoute:l,clearRoutes:d,getRoutes:a,getRecordMatcher:r}}function Hf(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function Df(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:J0(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function J0(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]=typeof o=="object"?o[n]:o;return t}function Lf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Q0(e){return e.reduce((t,o)=>at(t,o.meta),{})}function ex(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;Mf(e,t[i])<0?n=i:o=i+1}const r=tx(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function tx(e){let t=e;for(;t=t.parent;)if(Nf(t)&&Mf(e,t)===0)return t}function Nf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jf(e){const t=$e(ml),o=$e(as),n=F(()=>{const s=cn(e.to);return t.resolve(s)}),r=F(()=>{const{matched:s}=n.value,{length:c}=s,d=s[c-1],u=o.matched;if(!d||!u.length)return-1;const f=u.findIndex(yr.bind(null,d));if(f>-1)return f;const h=Wf(s[c-2]);return c>1&&Wf(d)===h&&u[u.length-1].path!==h?u.findIndex(yr.bind(null,s[c-2])):f}),i=F(()=>r.value>-1&&ix(o.params,n.value.params)),l=F(()=>r.value>-1&&r.value===o.matched.length-1&&_f(o.params,n.value.params));function a(s={}){if(rx(s)){const c=t[cn(e.replace)?"replace":"push"](cn(e.to)).catch(ii);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:F(()=>n.value.href),isActive:i,isExactActive:l,navigate:a}}function ox(e){return e.length===1?e[0]:e}const nx=ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:jf,setup(e,{slots:t}){const o=Nr(jf(e)),{options:n}=$e(ml),r=F(()=>({[Vf(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Vf(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&ox(t.default(o));return e.custom?i:v("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}});function rx(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ix(e,t){for(const o in t){const n=t[o],r=e[o];if(typeof n=="string"){if(n!==r)return!1}else if(!yo(r)||r.length!==n.length||n.some((i,l)=>i.valueOf()!==r[l].valueOf()))return!1}return!0}function Wf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vf=(e,t,o)=>e??t??o,lx=ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=$e(ss),r=F(()=>e.route||n.value),i=$e(Ff,0),l=F(()=>{let c=cn(i);const{matched:d}=r.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=F(()=>r.value.matched[l.value]);tt(Ff,F(()=>l.value+1)),tt(M0,a),tt(ss,r);const s=V();return st(()=>[s.value,a.value,e.name],([c,d,u],[f,h,p])=>{d&&(d.instances[u]=c,h&&h!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),c&&d&&(!h||!yr(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=r.value,d=e.name,u=a.value,f=u&&u.components[d];if(!f)return Uf(o.default,{Component:f,route:c});const h=u.props[d],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,b=v(f,at({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(u.instances[d]=null)},ref:s}));return Uf(o.default,{Component:b,route:c})||b}}});function Uf(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const Kf=lx;function ax(e){const t=Z0(e.routes,e),o=e.parseQuery||I0,n=e.stringifyQuery||Ef,r=e.history,i=ai(),l=ai(),a=ai(),s=ka(vn);let c=vn;xr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=es.bind(null,X=>""+X),u=es.bind(null,m0),f=es.bind(null,li);function h(X,de){let R,ae;return Tf(X)?(R=t.getRecordMatcher(X),ae=de):ae=X,t.addRoute(ae,R)}function p(X){const de=t.getRecordMatcher(X);de&&t.removeRoute(de)}function g(){return t.getRoutes().map(X=>X.record)}function b(X){return!!t.getRecordMatcher(X)}function m(X,de){if(de=at({},de||s.value),typeof X=="string"){const K=ns(o,X,de.path),ie=t.resolve({path:K.path},de),le=r.createHref(K.fullPath);return at(K,ie,{params:f(ie.params),hash:li(K.hash),redirectedFrom:void 0,href:le})}let R;if(X.path!=null)R=at({},X,{path:ns(o,X.path,de.path).path});else{const K=at({},X.params);for(const ie in K)K[ie]==null&&delete K[ie];R=at({},X,{params:u(K)}),de.params=u(de.params)}const ae=t.resolve(R,de),_e=X.hash||"";ae.params=d(f(ae.params));const k=y0(n,at({},X,{hash:p0(_e),path:ae.path})),$=r.createHref(k);return at({fullPath:k,hash:_e,query:n===Ef?O0(X.query):X.query||{}},ae,{redirectedFrom:void 0,href:$})}function x(X){return typeof X=="string"?ns(o,X,s.value.path):at({},X)}function w(X,de){if(c!==X)return Cr(wt.NAVIGATION_CANCELLED,{from:de,to:X})}function C(X){return y(X)}function P(X){return C(at(x(X),{replace:!0}))}function T(X,de){const R=X.matched[X.matched.length-1];if(R&&R.redirect){const{redirect:ae}=R;let _e=typeof ae=="function"?ae(X,de):ae;return typeof _e=="string"&&(_e=_e.includes("?")||_e.includes("#")?_e=x(_e):{path:_e},_e.params={}),at({query:X.query,hash:X.hash,params:_e.path!=null?{}:X.params},_e)}}function y(X,de){const R=c=m(X),ae=s.value,_e=X.state,k=X.force,$=X.replace===!0,K=T(R,ae);if(K)return y(at(x(K),{state:typeof K=="object"?at({},_e,K.state):_e,force:k,replace:$}),de||R);const ie=R;ie.redirectedFrom=de;let le;return!k&&C0(n,ae,R)&&(le=Cr(wt.NAVIGATION_DUPLICATED,{to:ie,from:ae}),N(ae,ae,!0,!1)),(le?Promise.resolve(le):E(ie,ae)).catch(re=>Zo(re)?Zo(re,wt.NAVIGATION_GUARD_REDIRECT)?re:fe(re):J(re,ie,ae)).then(re=>{if(re){if(Zo(re,wt.NAVIGATION_GUARD_REDIRECT))return y(at({replace:$},x(re.to),{state:typeof re.to=="object"?at({},_e,re.to.state):_e,force:k}),de||ie)}else re=_(ie,ae,!0,$,_e);return j(ie,ae,re),re})}function B(X,de){const R=w(X,de);return R?Promise.reject(R):Promise.resolve()}function S(X){const de=Q.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(X):X()}function E(X,de){let R;const[ae,_e,k]=B0(X,de);R=cs(ae.reverse(),"beforeRouteLeave",X,de);for(const K of ae)K.leaveGuards.forEach(ie=>{R.push(gn(ie,X,de))});const $=B.bind(null,X,de);return R.push($),we(R).then(()=>{R=[];for(const K of i.list())R.push(gn(K,X,de));return R.push($),we(R)}).then(()=>{R=cs(_e,"beforeRouteUpdate",X,de);for(const K of _e)K.updateGuards.forEach(ie=>{R.push(gn(ie,X,de))});return R.push($),we(R)}).then(()=>{R=[];for(const K of k)if(K.beforeEnter)if(yo(K.beforeEnter))for(const ie of K.beforeEnter)R.push(gn(ie,X,de));else R.push(gn(K.beforeEnter,X,de));return R.push($),we(R)}).then(()=>(X.matched.forEach(K=>K.enterCallbacks={}),R=cs(k,"beforeRouteEnter",X,de,S),R.push($),we(R))).then(()=>{R=[];for(const K of l.list())R.push(gn(K,X,de));return R.push($),we(R)}).catch(K=>Zo(K,wt.NAVIGATION_CANCELLED)?K:Promise.reject(K))}function j(X,de,R){a.list().forEach(ae=>S(()=>ae(X,de,R)))}function _(X,de,R,ae,_e){const k=w(X,de);if(k)return k;const $=de===vn,K=xr?history.state:{};R&&(ae||$?r.replace(X.fullPath,at({scroll:$&&K&&K.scroll},_e)):r.push(X.fullPath,_e)),s.value=X,N(X,de,R,$),fe()}let M;function W(){M||(M=r.listen((X,de,R)=>{if(!he.listening)return;const ae=m(X),_e=T(ae,he.currentRoute.value);if(_e){y(at(_e,{replace:!0,force:!0}),ae).catch(ii);return}c=ae;const k=s.value;xr&&T0(zf(k.fullPath,R.delta),gl()),E(ae,k).catch($=>Zo($,wt.NAVIGATION_ABORTED|wt.NAVIGATION_CANCELLED)?$:Zo($,wt.NAVIGATION_GUARD_REDIRECT)?(y(at(x($.to),{force:!0}),ae).then(K=>{Zo(K,wt.NAVIGATION_ABORTED|wt.NAVIGATION_DUPLICATED)&&!R.delta&&R.type===rs.pop&&r.go(-1,!1)}).catch(ii),Promise.reject()):(R.delta&&r.go(-R.delta,!1),J($,ae,k))).then($=>{$=$||_(ae,k,!1),$&&(R.delta&&!Zo($,wt.NAVIGATION_CANCELLED)?r.go(-R.delta,!1):R.type===rs.pop&&Zo($,wt.NAVIGATION_ABORTED|wt.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),j(ae,k,$)}).catch(ii)}))}let D=ai(),Z=ai(),U;function J(X,de,R){fe(X);const ae=Z.list();return ae.length?ae.forEach(_e=>_e(X,de,R)):console.error(X),Promise.reject(X)}function pe(){return U&&s.value!==vn?Promise.resolve():new Promise((X,de)=>{D.add([X,de])})}function fe(X){return U||(U=!X,W(),D.list().forEach(([de,R])=>X?R(X):de()),D.reset()),X}function N(X,de,R,ae){const{scrollBehavior:_e}=e;if(!xr||!_e)return Promise.resolve();const k=!R&&$0(zf(X.fullPath,0))||(ae||!R)&&history.state&&history.state.scroll||null;return so().then(()=>_e(X,de,k)).then($=>$&&z0($)).catch($=>J($,X,de))}const O=X=>r.go(X);let A;const Q=new Set,he={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:m,options:e,push:C,replace:P,go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:Z.add,isReady:pe,install(X){X.component("RouterLink",nx),X.component("RouterView",Kf),X.config.globalProperties.$router=he,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>cn(s)}),xr&&!A&&s.value===vn&&(A=!0,C(r.location).catch(ae=>{}));const de={};for(const ae in vn)Object.defineProperty(de,ae,{get:()=>s.value[ae],enumerable:!0});X.provide(ml,he),X.provide(as,Ad(de)),X.provide(ss,s);const R=X.unmount;Q.add(X),X.unmount=function(){Q.delete(X),Q.size<1&&(c=vn,M&&M(),M=null,s.value=vn,A=!1,U=!1),R()}}};function we(X){return X.reduce((de,R)=>de.then(()=>S(R)),Promise.resolve())}return he}function bl(){return $e(ml)}function sx(e){return $e(as)}const cx={id:"app"},dx={__name:"App",setup(e){return(t,o)=>(_t(),Kt("div",cx,[lt(cn(Kf))]))}},H2="modulepreload",D2=function(e){return"/"+e},L2={},Gf=function(t,o,n){let r=Promise.resolve();function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return r.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},xl=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},ux={class:"login-container"},fx={class:"login-card"},hx={key:0,class:"error"},px={class:"auth-buttons"},vx=["disabled"],gx=["disabled"],ds=xl({__name:"LoginView",setup(e){const t=bl(),o=V(""),n=V(""),r=V(""),i=V(!1),l=V(!1);async function a(){i.value=!0,r.value="";try{const c=await fetch("/api/method/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({usr:o.value,pwd:n.value})});if(!c.ok){const d=await c.json();throw new Error(d.message||"账号或密码错误")}window.location.href="http://172.25.162.172:8000/app"}catch(c){r.value=c.message}finally{i.value=!1}}function s(){t.push("/register")}return(c,d)=>(_t(),Kt("div",ux,[d[4]||(d[4]=Ne("div",{class:"bg-pattern"},null,-1)),Ne("div",fx,[d[2]||(d[2]=Ne("div",{class:"logo"},[Ne("span",{class:"brand"},"决裂者终端")],-1)),Ne("form",{onSubmit:gf(a,["prevent"])},[bo(Ne("input",{"onUpdate:modelValue":d[0]||(d[0]=u=>o.value=u),type:"text",placeholder:"请输入账号",required:"",class:"input-field"},null,512),[[br,o.value]]),bo(Ne("input",{"onUpdate:modelValue":d[1]||(d[1]=u=>n.value=u),type:"password",placeholder:"请输入密码",required:"",class:"input-field"},null,512),[[br,n.value]]),r.value?(_t(),Kt("div",hx,Po(r.value),1)):ei("",!0),Ne("div",px,[Ne("button",{type:"submit",disabled:i.value,class:"login-btn"},Po(i.value?"正在登录. . .":"登录"),9,vx),Ne("button",{type:"button",onClick:s,disabled:l.value,class:"register-btn"},Po(l.value?"注册中...":"注册"),9,gx)])],32),d[3]||(d[3]=Ne("p",{class:"footer"},"© 2026 Sunderer games. ",-1))])]))}},[["__scopeId","data-v-6eda41c4"]]),mx={class:"register-view"},bx={class:"container"},xx={key:0,class:"step-email"},yx=["disabled"],Cx={key:0,class:"error-msg"},wx={key:1,class:"step-verify"},Sx={key:0,class:"error-msg"},Rx=xl({__name:"RegisterView",setup(e){const t=bl(),o=V(""),n=V(""),r=V("email"),i=V(""),l=V(!1),a=u=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(u),s=async()=>{if(!a(o.value)){i.value="请输入有效的邮箱地址!";return}l.value=!0,i.value="";try{const f=await(await fetch("/api/method/sunderer_app.api.verification.send_signup_code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o.value})})).json();f.exc?i.value=f.exc:(r.value="verify",console.log("验证码发送成功"))}catch(u){i.value="网络错误,请稍后再试",console.error(u)}finally{l.value=!1}},c=async()=>{if(console.log("DEBUG: verifyAndSignup function called"),console.log("点击完成注册"),console.log("email:",o.value),console.log("code:",n.value),n.value.length!==6){i.value="请输入6位验证码!",console.log("DEBUG: Code length check failed");return}console.log("DEBUG: Code length check passed");try{const f=await(await fetch("/api/method/sunderer_app.api.verification.verify_signup_code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o.value,code:n.value})})).json();if(console.log("DEBUG: Verify API Response:",f),f.exc){i.value=f.exc,console.log("DEBUG: Verify API returned error:",f.exc);return}console.log("DEBUG: Verify API succeeded, proceeding to trigger email...");const p=await(await fetch("/api/method/sunderer_app.api.custom_user_signup.trigger_account_setup_email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o.value})})).json();if(console.log("DEBUG: Trigger Email API Response:",p),p.exc){i.value=p.exc,console.log("DEBUG: Trigger Email API returned error:",p.exc);return}alert("验证成功!请查收邮箱中的注册链接,点击链接完成账户设置。"),console.log("Verification successful, email sent with link."),o.value="",n.value="",r.value="email",i.value=""}catch(u){i.value="网络异常,请稍后再试",console.error("注册异常:",u)}},d=()=>{t.push("/login")};return(u,f)=>(_t(),Kt("div",mx,[Ne("div",bx,[f[2]||(f[2]=Ne("h2",null,"用户注册",-1)),r.value==="email"?(_t(),Kt("div",xx,[bo(Ne("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>o.value=h),type:"email",placeholder:"请输入邮箱地址",class:"input-field"},null,512),[[br,o.value]]),Ne("button",{onClick:s,disabled:l.value,class:"btn-primary"},Po(l.value?"发送中...":"发送验证码"),9,yx),i.value?(_t(),Kt("p",Cx,Po(i.value),1)):ei("",!0)])):r.value==="verify"?(_t(),Kt("div",wx,[bo(Ne("input",{"onUpdate:modelValue":f[1]||(f[1]=h=>n.value=h),type:"text",placeholder:"请输入6位验证码",maxlength:"6",class:"input-field"},null,512),[[br,n.value]]),Ne("button",{onClick:c,class:"btn-primary"}," 完成注册 "),i.value?(_t(),Kt("p",Sx,Po(i.value),1)):ei("",!0)])):ei("",!0),Ne("div",{class:"back-to-login"},[Ne("button",{onClick:d,class:"btn-secondary"}," ← 返回登录 ")])])]))}},[["__scopeId","data-v-14690773"]]),Px={class:"password-setup-container"},_x={class:"setup-card"},kx={class:"input-group"},zx={class:"input-group"},Tx={key:0,class:"error"},$x=["disabled"],qf=xl({__name:"CustomPasswordSetup",setup(e){const t=bl(),o=sx(),n=V(""),r=V(""),i=V(""),l=V(!1),a=async()=>{if(n.value!==r.value){i.value="两次输入的密码不一致";return}if(n.value.length<6){i.value="密码长度至少为6位";return}l.value=!0,i.value="";try{const s=o.query.key;if(!s){i.value="无效的密码重置链接";return}const d=await(await fetch("http://172.25.162.172:8000/api/method/frappe.core.doctype.user.user.update_password",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:s,new_password:n.value})})).json();d.exc?i.value=d.exc||"设置密码失败":(alert("密码设置成功!"),t.push("/login"))}catch(s){i.value="网络错误,请稍后再试",console.error(s)}finally{l.value=!1}};return(s,c)=>(_t(),Kt("div",Px,[Ne("div",_x,[c[4]||(c[4]=Ne("h2",null,"设置密码",-1)),Ne("form",{onSubmit:gf(a,["prevent"])},[Ne("div",kx,[c[2]||(c[2]=Ne("label",null,"新密码",-1)),bo(Ne("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>n.value=d),type:"password",placeholder:"请输入新密码",class:"input-field",required:""},null,512),[[br,n.value]])]),Ne("div",zx,[c[3]||(c[3]=Ne("label",null,"确认密码",-1)),bo(Ne("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>r.value=d),type:"password",placeholder:"请再次输入密码",class:"input-field",required:""},null,512),[[br,r.value]])]),i.value?(_t(),Kt("div",Tx,Po(i.value),1)):ei("",!0),Ne("button",{type:"submit",disabled:l.value,class:"btn-primary"},Po(l.value?"设置中...":"设置密码"),9,$x)],32)])]))}},[["__scopeId","data-v-378de9a4"]]);function Ex(e){let t=".",o="__",n="--",r;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(n=p)}const i={install(p){r=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function l(p){let g,b;return{before(m){g=m.bem.b,b=m.bem.els,m.bem.els=null},after(m){m.bem.b=g,m.bem.els=b},$({context:m,props:x}){return p=typeof p=="string"?p:p({context:m,props:x}),m.bem.b=p,`${(x==null?void 0:x.bPrefix)||t}${m.bem.b}`}}}function a(p){let g;return{before(b){g=b.bem.els},after(b){b.bem.els=g},$({context:b,props:m}){return p=typeof p=="string"?p:p({context:b,props:m}),b.bem.els=p.split(",").map(x=>x.trim()),b.bem.els.map(x=>`${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${o}${x}`).join(", ")}}}function s(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const m=p.split(",").map(C=>C.trim());function x(C){return m.map(P=>`&${(b==null?void 0:b.bPrefix)||t}${g.bem.b}${C!==void 0?`${o}${C}`:""}${n}${P}`).join(", ")}const w=g.bem.els;return w!==null?x(w[0]):x()}}}function c(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const m=g.bem.els;return`&:not(${(b==null?void 0:b.bPrefix)||t}${g.bem.b}${m!==null&&m.length>0?`${o}${m[0]}`:""}${n}${p})`}}}return Object.assign(i,{cB:(...p)=>r(l(p[0]),p[1],p[2]),cE:(...p)=>r(a(p[0]),p[1],p[2]),cM:(...p)=>r(s(p[0]),p[1],p[2]),cNotM:(...p)=>r(c(p[0]),p[1],p[2])}),i}function Fx(e){let t=0;for(let o=0;o{let r=Fx(n);if(r){if(r===1){e.forEach(l=>{o.push(n.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+n)});return}let i=[n];for(;r--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function Ox(e,t){const o=[];return t.split(Xf).forEach(n=>{e.forEach(r=>{o.push((r&&r+" ")+n)})}),o}function Mx(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=Ix(t,o):t=Ox(t,o))}),t.join(", ").replace(Ax," ")}function Yf(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function yl(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Bx(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Cl(e){return e?/^\s*@(s|m)/.test(e):!1}const Hx=/[A-Z]/g;function Zf(e){return e.replace(Hx,t=>"-"+t.toLowerCase())}function Dx(e,t=" "){return typeof e=="object"&&e!==null?` { +`+Object.entries(e).map(o=>t+` ${Zf(o[0])}: ${o[1]};`).join(` +`)+` +`+t+"}":`: ${e};`}function Lx(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function Jf(e,t,o,n){if(!t)return"";const r=Lx(t,o,n);if(!r)return"";if(typeof r=="string")return`${e} { +${r} +}`;const i=Object.keys(r);if(i.length===0)return o.config.keepEmptyBlock?e+` { +}`:"";const l=e?[e+" {"]:[];return i.forEach(a=>{const s=r[a];if(a==="raw"){l.push(` +`+s+` +`);return}a=Zf(a),s!=null&&l.push(` ${a}${Dx(s)}`)}),e&&l.push("}"),l.join(` +`)}function us(e,t,o){e&&e.forEach(n=>{if(Array.isArray(n))us(n,t,o);else if(typeof n=="function"){const r=n(t);Array.isArray(r)?us(r,t,o):r&&o(r)}else n&&o(n)})}function Qf(e,t,o,n,r){const i=e.$;let l="";if(!i||typeof i=="string")Cl(i)?l=i:t.push(i);else if(typeof i=="function"){const c=i({context:n.context,props:r});Cl(c)?l=c:t.push(c)}else if(i.before&&i.before(n.context),!i.$||typeof i.$=="string")Cl(i.$)?l=i.$:t.push(i.$);else if(i.$){const c=i.$({context:n.context,props:r});Cl(c)?l=c:t.push(c)}const a=Mx(t),s=Jf(a,e.props,n,r);l?o.push(`${l} {`):s.length&&o.push(s),e.children&&us(e.children,{context:n.context,props:r},c=>{if(typeof c=="string"){const d=Jf(a,{raw:c},n,r);o.push(d)}else Qf(c,t,o,n,r)}),t.pop(),l&&o.push("}"),i&&i.after&&i.after(n.context)}function Nx(e,t,o){const n=[];return Qf(e,[],n,t,o),n.join(` + +`)}function fs(e){for(var t=0,o,n=0,r=e.length;r>=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function jx(e,t,o,n){const{els:r}=t;if(o===void 0)r.forEach(Yf),t.els=[];else{const i=yl(o,n);i&&r.includes(i)&&(Yf(i),t.els=r.filter(l=>l!==i))}}function eh(e,t){e.push(t)}function Wx(e,t,o,n,r,i,l,a,s){let c;if(o===void 0&&(c=t.render(n),o=fs(c)),s){s.adapter(o,c??t.render(n));return}a===void 0&&(a=document.head);const d=yl(o,a);if(d!==null&&!i)return d;const u=d??Bx(o);if(c===void 0&&(c=t.render(n)),u.textContent=c,d!==null)return d;if(l){const f=a.querySelector(`meta[name="${l}"]`);if(f)return a.insertBefore(u,f),eh(t.els,u),u}return r?a.insertBefore(u,a.querySelector("style, link")):a.appendChild(u),eh(t.els,u),u}function Vx(e){return Nx(this,this.instance,e)}function Ux(e={}){const{id:t,ssr:o,props:n,head:r=!1,force:i=!1,anchorMetaName:l,parent:a}=e;return Wx(this.instance,this,t,n,r,i,l,a,o)}function Kx(e={}){const{id:t,parent:o}=e;jx(this.instance,this,t,o)}const wl=function(e,t,o,n){return{instance:e,$:t,props:o,children:n,els:[],render:Vx,mount:Ux,unmount:Kx}},Gx=function(e,t,o,n){return Array.isArray(t)?wl(e,{$:null},null,t):Array.isArray(o)?wl(e,t,null,o):Array.isArray(n)?wl(e,t,o,n):wl(e,t,o,null)};function th(e={}){const t={c:(...o)=>Gx(t,...o),use:(o,...n)=>o.install(t,...n),find:yl,context:{},config:e};return t}function qx(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return yl(e)!==null}const si=".n-",Xx="__",Yx="--",oh=th(),nh=Ex({blockPrefix:si,elementPrefix:Xx,modifierPrefix:Yx});oh.use(nh);const{c:L,find:U2}=oh,{cB:I,cE:H,cM:Y,cNotM:Ye}=nh;function Sl(e){return L(({props:{bPrefix:t}})=>`${t||si}modal, ${t||si}drawer`,[e])}function Rl(e){return L(({props:{bPrefix:t}})=>`${t||si}popover`,[e])}function Zx(e){return L(({props:{bPrefix:t}})=>`&${t||si}modal`,e)}const Jx=(...e)=>L(">",[I(...e)]);function me(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let Pl=[];const rh=new WeakMap;function Qx(){Pl.forEach(e=>e(...rh.get(e))),Pl=[]}function _l(e,...t){rh.set(e,t),!Pl.includes(e)&&Pl.push(e)===1&&requestAnimationFrame(Qx)}function uo(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function ci(e){return e.composedPath()[0]||null}function mn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function At(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function no(e,t){const o=e.trim().split(/\s+/g),n={top:o[0]};switch(o.length){case 1:n.right=o[0],n.bottom=o[0],n.left=o[0];break;case 2:n.right=o[1],n.left=o[1],n.bottom=o[0];break;case 3:n.right=o[1],n.bottom=o[2],n.left=o[1];break;case 4:n.right=o[1],n.bottom=o[2],n.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}const ih={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#F00",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function ey(e,t,o){t/=100,o/=100;let n=(r,i=(r+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function ty(e,t,o){t/=100,o/=100;let n=t*Math.min(o,1-o),r=(i,l=(i+e/30)%12)=>o-n*Math.max(Math.min(l-3,9-l,1),-1);return[r(0)*255,r(8)*255,r(4)*255]}const Fo="^\\s*",Ao="\\s*$",bn="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",ro="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Nn="([0-9A-Fa-f])",jn="([0-9A-Fa-f]{2})",lh=new RegExp(`${Fo}hsl\\s*\\(${ro},${bn},${bn}\\)${Ao}`),ah=new RegExp(`${Fo}hsv\\s*\\(${ro},${bn},${bn}\\)${Ao}`),sh=new RegExp(`${Fo}hsla\\s*\\(${ro},${bn},${bn},${ro}\\)${Ao}`),ch=new RegExp(`${Fo}hsva\\s*\\(${ro},${bn},${bn},${ro}\\)${Ao}`),oy=new RegExp(`${Fo}rgb\\s*\\(${ro},${ro},${ro}\\)${Ao}`),ny=new RegExp(`${Fo}rgba\\s*\\(${ro},${ro},${ro},${ro}\\)${Ao}`),ry=new RegExp(`${Fo}#${Nn}${Nn}${Nn}${Ao}`),iy=new RegExp(`${Fo}#${jn}${jn}${jn}${Ao}`),ly=new RegExp(`${Fo}#${Nn}${Nn}${Nn}${Nn}${Ao}`),ay=new RegExp(`${Fo}#${jn}${jn}${jn}${jn}${Ao}`);function Jt(e){return parseInt(e,16)}function sy(e){try{let t;if(t=sh.exec(e))return[zl(t[1]),xn(t[5]),xn(t[9]),Vn(t[13])];if(t=lh.exec(e))return[zl(t[1]),xn(t[5]),xn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function cy(e){try{let t;if(t=ch.exec(e))return[zl(t[1]),xn(t[5]),xn(t[9]),Vn(t[13])];if(t=ah.exec(e))return[zl(t[1]),xn(t[5]),xn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Wn(e){try{let t;if(t=iy.exec(e))return[Jt(t[1]),Jt(t[2]),Jt(t[3]),1];if(t=oy.exec(e))return[Dt(t[1]),Dt(t[5]),Dt(t[9]),1];if(t=ny.exec(e))return[Dt(t[1]),Dt(t[5]),Dt(t[9]),Vn(t[13])];if(t=ry.exec(e))return[Jt(t[1]+t[1]),Jt(t[2]+t[2]),Jt(t[3]+t[3]),1];if(t=ay.exec(e))return[Jt(t[1]),Jt(t[2]),Jt(t[3]),Vn(Jt(t[4])/255)];if(t=ly.exec(e))return[Jt(t[1]+t[1]),Jt(t[2]+t[2]),Jt(t[3]+t[3]),Vn(Jt(t[4]+t[4])/255)];if(e in ih)return Wn(ih[e]);if(lh.test(e)||sh.test(e)){const[o,n,r,i]=sy(e);return[...ty(o,n,r),i]}else if(ah.test(e)||ch.test(e)){const[o,n,r,i]=cy(e);return[...ey(o,n,r),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function dy(e){return e>1?1:e<0?0:e}function hs(e,t,o,n){return`rgba(${Dt(e)}, ${Dt(t)}, ${Dt(o)}, ${dy(n)})`}function ps(e,t,o,n,r){return Dt((e*t*(1-n)+o*n)/r)}function Ue(e,t){Array.isArray(e)||(e=Wn(e)),Array.isArray(t)||(t=Wn(t));const o=e[3],n=t[3],r=Vn(o+n-o*n);return hs(ps(e[0],o,t[0],n,r),ps(e[1],o,t[1],n,r),ps(e[2],o,t[2],n,r),r)}function Le(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:Wn(e);return typeof t.alpha=="number"?hs(o,n,r,t.alpha):hs(o,n,r,i)}function kl(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:Wn(e),{lightness:l=1,alpha:a=1}=t;return uy([o*l,n*l,r*l,i*a])}function Vn(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function zl(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Dt(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function xn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function uy(e){const[t,o,n]=e;return 3 in e?`rgba(${Dt(t)}, ${Dt(o)}, ${Dt(n)}, ${Vn(e[3])})`:`rgba(${Dt(t)}, ${Dt(o)}, ${Dt(n)}, 1)`}function Tl(e=8){return Math.random().toString(16).slice(2,2+e)}function fy(e,t){const o=[];for(let n=0;n{t.contains($l(r))||o(r)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const r=l=>{n=!t.contains($l(l))},i=l=>{n&&(t.contains($l(l))||o(l))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function dh(e,t,o){const n=hy[e];let r=n.get(t);r===void 0&&n.set(t,r=new WeakMap);let i=r.get(o);return i===void 0&&r.set(o,i=py(e,t,o)),i}function vy(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=dh(e,t,o);return Object.keys(r).forEach(i=>{bt(i,document,r[i],n)}),!0}return!1}function gy(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=dh(e,t,o);return Object.keys(r).forEach(i=>{ct(i,document,r[i],n)}),!0}return!1}function my(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function r(y,B,S){const E=y[B];return y[B]=function(){return S.apply(y,arguments),E.apply(y,arguments)},y}function i(y,B){y[B]=Event.prototype[B]}const l=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var y;return(y=l.get(this))!==null&&y!==void 0?y:null}function c(y,B){a!==void 0&&Object.defineProperty(y,"currentTarget",{configurable:!0,enumerable:!0,get:B??a.get})}const d={bubble:{},capture:{}},u={};function f(){const y=function(B){const{type:S,eventPhase:E,bubbles:j}=B,_=$l(B);if(E===2)return;const M=E===1?"capture":"bubble";let W=_;const D=[];for(;W===null&&(W=window),D.push(W),W!==window;)W=W.parentNode||null;const Z=d.capture[S],U=d.bubble[S];if(r(B,"stopPropagation",o),r(B,"stopImmediatePropagation",n),c(B,s),M==="capture"){if(Z===void 0)return;for(let J=D.length-1;J>=0&&!e.has(B);--J){const pe=D[J],fe=Z.get(pe);if(fe!==void 0){l.set(B,pe);for(const N of fe){if(t.has(B))break;N(B)}}if(J===0&&!j&&U!==void 0){const N=U.get(pe);if(N!==void 0)for(const O of N){if(t.has(B))break;O(B)}}}}else if(M==="bubble"){if(U===void 0)return;for(let J=0;J_(B))};return y.displayName="evtdUnifiedWindowEventHandler",y}const p=f(),g=h();function b(y,B){const S=d[y];return S[B]===void 0&&(S[B]=new Map,window.addEventListener(B,p,y==="capture")),S[B]}function m(y){return u[y]===void 0&&(u[y]=new Set,window.addEventListener(y,g)),u[y]}function x(y,B){let S=y.get(B);return S===void 0&&y.set(B,S=new Set),S}function w(y,B,S,E){const j=d[B][S];if(j!==void 0){const _=j.get(y);if(_!==void 0&&_.has(E))return!0}return!1}function C(y,B){const S=u[y];return!!(S!==void 0&&S.has(B))}function P(y,B,S,E){let j;if(typeof E=="object"&&E.once===!0?j=Z=>{T(y,B,j,E),S(Z)}:j=S,vy(y,B,j,E))return;const M=E===!0||typeof E=="object"&&E.capture===!0?"capture":"bubble",W=b(M,y),D=x(W,B);if(D.has(j)||D.add(j),B===window){const Z=m(y);Z.has(j)||Z.add(j)}}function T(y,B,S,E){if(gy(y,B,S,E))return;const _=E===!0||typeof E=="object"&&E.capture===!0,M=_?"capture":"bubble",W=b(M,y),D=x(W,B);if(B===window&&!w(B,_?"bubble":"capture",y,S)&&C(y,S)){const U=u[y];U.delete(S),U.size===0&&(window.removeEventListener(y,g),u[y]=void 0)}D.has(S)&&D.delete(S),D.size===0&&W.delete(B),W.size===0&&(window.removeEventListener(y,p,M==="capture"),d[M][y]=void 0)}return{on:P,off:T}}const{on:bt,off:ct}=my();function by(e){const t=V(!!e.value);if(t.value)return Fn(t);const o=st(e,n=>{n&&(t.value=!0,o())});return Fn(t)}function Ze(e){const t=F(e),o=V(t.value);return st(t,n=>{o.value=n}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(n){e.set(n)}}}function xy(){return Hn()!==null}const yy=typeof window<"u";let wr,di;(()=>{var e,t;wr=yy?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,di=!1,wr!==void 0?wr.then(()=>{di=!0}):di=!0})();function Cy(e){if(di)return;let t=!1;Bt(()=>{di||wr==null||wr.then(()=>{t||e()})}),Ft(()=>{t=!0})}function It(e,t){return st(e,o=>{o!==void 0&&(t.value=o)}),F(()=>e.value===void 0?t.value:e.value)}function El(){const e=V(!1);return Bt(()=>{e.value=!0}),Fn(e)}function vs(e,t){return F(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const wy=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Sy(){return wy}function Ry(e={},t){const o=Nr({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==s.key)return;const d=n[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:f=!1}=d;u&&s.stopPropagation(),f&&s.preventDefault(),d.handler(s)}})},l=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:f=!1}=d;u&&s.stopPropagation(),f&&s.preventDefault(),d.handler(s)}})},a=()=>{(t===void 0||t.value)&&(bt("keydown",document,i),bt("keyup",document,l)),t!==void 0&&st(t,s=>{s?(bt("keydown",document,i),bt("keyup",document,l)):(ct("keydown",document,i),ct("keyup",document,l))})};return xy()?(qr(a),Ft(()=>{(t===void 0||t.value)&&(ct("keydown",document,i),ct("keyup",document,l))})):a(),Fn(o)}function G2(e){return e}const gs="n-internal-select-menu",uh="n-internal-select-menu-body",ms="n-drawer-body",bs="n-modal-body",Fl="n-popover-body",fh="__disabled__";function Io(e){const t=$e(bs,null),o=$e(ms,null),n=$e(Fl,null),r=$e(uh,null),i=V();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};Bt(()=>{bt("fullscreenchange",document,l)}),Ft(()=>{ct("fullscreenchange",document,l)})}return Ze(()=>{var l;const{to:a}=e;return a!==void 0?a===!1?fh:a===!0?i.value||"body":a:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:a??(i.value||"body")})}Io.tdkey=fh,Io.propTo={type:[String,Object,Boolean],default:void 0};function Py(e,t,o){const n=V(e.value);let r=null;return st(e,i=>{r!==null&&window.clearTimeout(r),i===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}const ui=typeof document<"u"&&typeof window<"u";function xs(e){const t={isDeactivated:!1};let o=!1;return Ia(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),rl(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function ys(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function Cs(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(un(String(n)));return}if(Array.isArray(n)){Cs(n,t,o);return}if(n.type===it){if(n.children===null)return;Array.isArray(n.children)&&Cs(n.children,t,o)}else n.type!==Pt&&o.push(n)}}),o}function hh(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=Cs(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let yn=null;function ph(){if(yn===null&&(yn=document.getElementById("v-binder-view-measurer"),yn===null)){yn=document.createElement("div"),yn.id="v-binder-view-measurer";const{style:e}=yn;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(yn)}return yn.getBoundingClientRect()}function _y(e,t){const o=ph();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function ws(e){const t=e.getBoundingClientRect(),o=ph();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function ky(e){return e.nodeType===9?null:e.parentNode}function vh(e){if(e===null)return null;const t=ky(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+r+n))return t}return vh(t)}const Ss=ve({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;tt("VBinder",(t=Hn())===null||t===void 0?void 0:t.proxy);const o=$e("VBinder",null),n=V(null),r=m=>{n.value=m,o&&e.syncTargetWithParent&&o.setTargetRef(m)};let i=[];const l=()=>{let m=n.value;for(;m=vh(m),m!==null;)i.push(m);for(const x of i)bt("scroll",x,u,!0)},a=()=>{for(const m of i)ct("scroll",m,u,!0);i=[]},s=new Set,c=m=>{s.size===0&&l(),s.has(m)||s.add(m)},d=m=>{s.has(m)&&s.delete(m),s.size===0&&a()},u=()=>{_l(f)},f=()=>{s.forEach(m=>m())},h=new Set,p=m=>{h.size===0&&bt("resize",window,b),h.has(m)||h.add(m)},g=m=>{h.has(m)&&h.delete(m),h.size===0&&ct("resize",window,b)},b=()=>{h.forEach(m=>m())};return Ft(()=>{ct("resize",window,b),a()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:d,addResizeListener:p,removeResizeListener:g}},render(){return ys("binder",this.$slots)}}),Rs=ve({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=$e("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?bo(hh("follower",this.$slots),[[t]]):hh("follower",this.$slots)}}),Sr="@@mmoContext",zy={mounted(e,{value:t}){e[Sr]={handler:void 0},typeof t=="function"&&(e[Sr].handler=t,bt("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[Sr];typeof t=="function"?o.handler?o.handler!==t&&(ct("mousemoveoutside",e,o.handler),o.handler=t,bt("mousemoveoutside",e,t)):(e[Sr].handler=t,bt("mousemoveoutside",e,t)):o.handler&&(ct("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[Sr];t&&ct("mousemoveoutside",e,t),e[Sr].handler=void 0}},Rr="@@coContext",Al={mounted(e,{value:t,modifiers:o}){e[Rr]={handler:void 0},typeof t=="function"&&(e[Rr].handler=t,bt("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[Rr];typeof t=="function"?n.handler?n.handler!==t&&(ct("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,bt("clickoutside",e,t,{capture:o.capture})):(e[Rr].handler=t,bt("clickoutside",e,t,{capture:o.capture})):n.handler&&(ct("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[Rr];o&&ct("clickoutside",e,o,{capture:t.capture}),e[Rr].handler=void 0}};function Ty(e,t){console.error(`[vdirs/${e}]: ${t}`)}class $y{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:n}=this;if(o!==void 0){t.style.zIndex=`${o}`,n.delete(t);return}const{nextZIndex:r}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,n.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,o){const{elementZIndex:n}=this;n.has(t)?n.delete(t):o===void 0&&Ty("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,n)=>o[1]-n[1]),this.nextZIndex=2e3,t.forEach(o=>{const n=o[0],r=this.nextZIndex++;`${r}`!==n.style.zIndex&&(n.style.zIndex=`${r}`)})}}const Ps=new $y,Pr="@@ziContext",gh={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[Pr]={enabled:!!r,initialized:!1},r&&(Ps.ensureZIndex(e,n),e[Pr].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[Pr].enabled;r&&!i&&(Ps.ensureZIndex(e,n),e[Pr].initialized=!0),e[Pr].enabled=!!r},unmounted(e,t){if(!e[Pr].initialized)return;const{value:o={}}=t,{zIndex:n}=o;Ps.unregister(e,n)}},Ey="@css-render/vue3-ssr";function Fy(e,t){return``}function Ay(e,t,o){const{styles:n,ids:r}=o;r.has(e)||n!==null&&(r.add(e),n.push(Fy(e,t)))}const Iy=typeof document<"u";function Un(){if(Iy)return;const e=$e(Ey,null);if(e!==null)return{adapter:(t,o)=>Ay(t,o,e),context:e}}function mh(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Cn}=th(),_s="vueuc-style";function bh(e){return e&-e}class xh{constructor(t,o){this.l=t,this.min=o;const n=new Array(t+1);for(let r=0;rr)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*n;for(;t>0;)i+=o[t],t-=bh(t);return i}getBound(t){let o=0,n=this.l;for(;n>o;){const r=Math.floor((o+n)/2),i=this.sum(r);if(i>t){n=r;continue}else if(i{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?ys("lazy-teleport",this.$slots):v(km,{disabled:this.disabled,to:this.mergedTo},ys("lazy-teleport",this.$slots)):null}}),Il={top:"bottom",bottom:"top",left:"right",right:"left"},Ch={start:"end",center:"center",end:"start"},ks={top:"height",bottom:"height",left:"width",right:"width"},My={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},By={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Hy={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},wh={top:!0,bottom:!1,left:!0,right:!1},Sh={top:"end",bottom:"start",left:"end",right:"start"};function Dy(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[l,a]=e.split("-");let s=a??"center",c={top:0,left:0};const d=(h,p,g)=>{let b=0,m=0;const x=o[h]-t[p]-t[h];return x>0&&n&&(g?m=wh[p]?x:-x:b=wh[p]?x:-x),{left:b,top:m}},u=l==="left"||l==="right";if(s!=="center"){const h=Hy[e],p=Il[h],g=ks[h];if(o[g]>t[g]){if(t[h]+t[g]t[p]&&(s=Ch[a])}else{const h=l==="bottom"||l==="top"?"left":"top",p=Il[h],g=ks[h],b=(o[g]-t[g])/2;(t[h]t[p]?(s=Sh[h],c=d(g,h,u)):(s=Sh[p],c=d(g,p,u)))}let f=l;return t[l] *",{pointerEvents:"all"})])]),zs=ve({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=$e("VBinder"),o=Ze(()=>e.enabled!==void 0?e.enabled:e.show),n=V(null),r=V(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(s),f.includes("resize")&&t.addResizeListener(s)},l=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Bt(()=>{o.value&&(s(),i())});const a=Un();jy.mount({id:"vueuc/binder",head:!0,anchorMetaName:_s,ssr:a}),Ft(()=>{l()}),Cy(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const f=n.value;if(f===null)return;const h=t.targetRef,{x:p,y:g,overlap:b}=e,m=p!==void 0&&g!==void 0?_y(p,g):ws(h);f.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:x,minWidth:w,placement:C,internalShift:P,flip:T}=e;f.setAttribute("v-placement",C),b?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:y}=f;x==="target"?y.width=`${m.width}px`:x!==void 0?y.width=x:y.width="",w==="target"?y.minWidth=`${m.width}px`:w!==void 0?y.minWidth=w:y.minWidth="";const B=ws(f),S=ws(r.value),{left:E,top:j,placement:_}=Dy(C,m,B,P,T,b),M=Ly(_,b),{left:W,top:D,transform:Z}=Ny(_,S,m,j,E,b);f.setAttribute("v-placement",_),f.style.setProperty("--v-offset-left",`${Math.round(E)}px`),f.style.setProperty("--v-offset-top",`${Math.round(j)}px`),f.style.transform=`translateX(${W}) translateY(${D}) ${Z}`,f.style.setProperty("--v-transform-origin",M),f.style.transformOrigin=M};st(o,f=>{f?(i(),c()):l()});const c=()=>{so().then(s).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{st(Se(e,f),s)}),["teleportDisabled"].forEach(f=>{st(Se(e,f),c)}),st(Se(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),f.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=El(),u=Ze(()=>{const{to:f}=e;if(f!==void 0)return f;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:u,syncPosition:s}},render(){return v(Oy,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=v("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[v("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?bo(o,[[gh,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Kn=[],Wy=function(){return Kn.some(function(e){return e.activeTargets.length>0})},Vy=function(){return Kn.some(function(e){return e.skippedTargets.length>0})},Rh="ResizeObserver loop completed with undelivered notifications.",Uy=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Rh}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Rh),window.dispatchEvent(e)},fi;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(fi||(fi={}));var Gn=function(e){return Object.freeze(e)},Ky=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Gn(this)}return e}(),Ph=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Gn(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,i=t.right,l=t.bottom,a=t.left,s=t.width,c=t.height;return{x:o,y:n,top:r,right:i,bottom:l,left:a,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Ts=function(e){return e instanceof SVGElement&&"getBBox"in e},_h=function(e){if(Ts(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,l=r.offsetHeight;return!(i||l||e.getClientRects().length)},kh=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Gy=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},hi=typeof window<"u"?window:{},Ol=new WeakMap,zh=/auto|scroll/,qy=/^tb|vertical/,Xy=/msie|trident/i.test(hi.navigator&&hi.navigator.userAgent),Oo=function(e){return parseFloat(e||"0")},_r=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Ky((o?t:e)||0,(o?e:t)||0)},Th=Gn({devicePixelContentBoxSize:_r(),borderBoxSize:_r(),contentBoxSize:_r(),contentRect:new Ph(0,0,0,0)}),$h=function(e,t){if(t===void 0&&(t=!1),Ol.has(e)&&!t)return Ol.get(e);if(_h(e))return Ol.set(e,Th),Th;var o=getComputedStyle(e),n=Ts(e)&&e.ownerSVGElement&&e.getBBox(),r=!Xy&&o.boxSizing==="border-box",i=qy.test(o.writingMode||""),l=!n&&zh.test(o.overflowY||""),a=!n&&zh.test(o.overflowX||""),s=n?0:Oo(o.paddingTop),c=n?0:Oo(o.paddingRight),d=n?0:Oo(o.paddingBottom),u=n?0:Oo(o.paddingLeft),f=n?0:Oo(o.borderTopWidth),h=n?0:Oo(o.borderRightWidth),p=n?0:Oo(o.borderBottomWidth),g=n?0:Oo(o.borderLeftWidth),b=u+c,m=s+d,x=g+h,w=f+p,C=a?e.offsetHeight-w-e.clientHeight:0,P=l?e.offsetWidth-x-e.clientWidth:0,T=r?b+x:0,y=r?m+w:0,B=n?n.width:Oo(o.width)-T-P,S=n?n.height:Oo(o.height)-y-C,E=B+b+P+x,j=S+m+C+w,_=Gn({devicePixelContentBoxSize:_r(Math.round(B*devicePixelRatio),Math.round(S*devicePixelRatio),i),borderBoxSize:_r(E,j,i),contentBoxSize:_r(B,S,i),contentRect:new Ph(u,s,B,S)});return Ol.set(e,_),_},Eh=function(e,t,o){var n=$h(e,o),r=n.borderBoxSize,i=n.contentBoxSize,l=n.devicePixelContentBoxSize;switch(t){case fi.DEVICE_PIXEL_CONTENT_BOX:return l;case fi.BORDER_BOX:return r;default:return i}},Yy=function(){function e(t){var o=$h(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Gn([o.borderBoxSize]),this.contentBoxSize=Gn([o.contentBoxSize]),this.devicePixelContentBoxSize=Gn([o.devicePixelContentBoxSize])}return e}(),Fh=function(e){if(_h(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Zy=function(){var e=1/0,t=[];Kn.forEach(function(l){if(l.activeTargets.length!==0){var a=[];l.activeTargets.forEach(function(c){var d=new Yy(c.target),u=Fh(c.target);a.push(d),c.lastReportedSize=Eh(c.target,c.observedBox),ue?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Jy=function(){var e=0;for(Ah(e);Wy();)e=Zy(),Ah(e);return Vy()&&Uy(),e>0},$s,Ih=[],Qy=function(){return Ih.splice(0).forEach(function(e){return e()})},eC=function(e){if(!$s){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Qy()}).observe(o,n),$s=function(){o.textContent="".concat(t?t--:t++)}}Ih.push(e),$s()},tC=function(e){eC(function(){requestAnimationFrame(e)})},Ml=0,oC=function(){return!!Ml},nC=250,rC={attributes:!0,characterData:!0,childList:!0,subtree:!0},Oh=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Mh=function(e){return e===void 0&&(e=0),Date.now()+e},Es=!1,iC=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=nC),!Es){Es=!0;var n=Mh(t);tC(function(){var r=!1;try{r=Jy()}finally{if(Es=!1,t=n-Mh(),!oC())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,rC)};document.body?o():hi.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Oh.forEach(function(o){return hi.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Oh.forEach(function(o){return hi.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),Fs=new iC,Bh=function(e){!Ml&&e>0&&Fs.start(),Ml+=e,!Ml&&Fs.stop()},lC=function(e){return!Ts(e)&&!Gy(e)&&getComputedStyle(e).display==="inline"},aC=function(){function e(t,o){this.target=t,this.observedBox=o||fi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Eh(this.target,this.observedBox,!0);return lC(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),sC=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),Bl=new WeakMap,Hh=function(e,t){for(var o=0;o=0&&(i&&Kn.splice(Kn.indexOf(n),1),n.observationTargets.splice(r,1),Bh(-1))},e.disconnect=function(t){var o=this,n=Bl.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),cC=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Hl.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kh(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Hl.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kh(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Hl.unobserve(this,t)},e.prototype.disconnect=function(){Hl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class dC{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||cC)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const n=this.elHandlersMap.get(o.target);n!==void 0&&n(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const pi=new dC,wn=ve({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=Hn().proxy;function n(r){const{onResize:i}=e;i!==void 0&&i(r)}Bt(()=>{const r=o.$el;if(r===void 0){mh("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){mh("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(pi.registerHandler(r.nextElementSibling,n),t=!0)}),Ft(()=>{t&&pi.unregisterHandler(o.$el.nextElementSibling)})},render(){return su(this.$slots,"default")}});let Dl;function uC(){return typeof document>"u"?!1:(Dl===void 0&&("matchMedia"in window?Dl=window.matchMedia("(pointer:coarse)").matches:Dl=!1),Dl)}let As;function Dh(){return typeof document>"u"?1:(As===void 0&&(As="chrome"in window?window.devicePixelRatio:1),As)}const Lh="VVirtualListXScroll";function fC({columnsRef:e,renderColRef:t,renderItemWithColsRef:o}){const n=V(0),r=V(0),i=F(()=>{const c=e.value;if(c.length===0)return null;const d=new xh(c.length,0);return c.forEach((u,f)=>{d.add(f,u.width)}),d}),l=Ze(()=>{const c=i.value;return c!==null?Math.max(c.getBound(r.value)-1,0):0}),a=c=>{const d=i.value;return d!==null?d.sum(c):0},s=Ze(()=>{const c=i.value;return c!==null?Math.min(c.getBound(r.value+n.value)+1,e.value.length-1):0});return tt(Lh,{startIndexRef:l,endIndexRef:s,columnsRef:e,renderColRef:t,renderItemWithColsRef:o,getLeft:a}),{listWidthRef:n,scrollLeftRef:r}}const Nh=ve({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:o,getLeft:n,renderColRef:r,renderItemWithColsRef:i}=$e(Lh);return{startIndex:e,endIndex:t,columns:o,renderCol:r,renderItemWithCols:i,getLeft:n}},render(){const{startIndex:e,endIndex:t,columns:o,renderCol:n,renderItemWithCols:r,getLeft:i,item:l}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:o,item:l,getLeft:i});if(n!=null){const a=[];for(let s=e;s<=t;++s){const c=o[s];a.push(n({column:c,left:i(s),item:l}))}return a}return null}}),hC=Cn(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Cn("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Cn("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Is=ve({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Un();hC.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:_s,ssr:t}),Bt(()=>{const{defaultScrollIndex:M,defaultScrollKey:W}=e;M!=null?b({index:M}):W!=null&&b({key:W})});let o=!1,n=!1;Ia(()=>{if(o=!1,!n){n=!0;return}b({top:h.value,left:l.value})}),rl(()=>{o=!0,n||(n=!0)});const r=Ze(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let M=0;return e.columns.forEach(W=>{M+=W.width}),M}),i=F(()=>{const M=new Map,{keyField:W}=e;return e.items.forEach((D,Z)=>{M.set(D[W],Z)}),M}),{scrollLeftRef:l,listWidthRef:a}=fC({columnsRef:Se(e,"columns"),renderColRef:Se(e,"renderCol"),renderItemWithColsRef:Se(e,"renderItemWithCols")}),s=V(null),c=V(void 0),d=new Map,u=F(()=>{const{items:M,itemSize:W,keyField:D}=e,Z=new xh(M.length,W);return M.forEach((U,J)=>{const pe=U[D],fe=d.get(pe);fe!==void 0&&Z.add(J,fe)}),Z}),f=V(0),h=V(0),p=Ze(()=>Math.max(u.value.getBound(h.value-mn(e.paddingTop))-1,0)),g=F(()=>{const{value:M}=c;if(M===void 0)return[];const{items:W,itemSize:D}=e,Z=p.value,U=Math.min(Z+Math.ceil(M/D+1),W.length-1),J=[];for(let pe=Z;pe<=U;++pe)J.push(W[pe]);return J}),b=(M,W)=>{if(typeof M=="number"){C(M,W,"auto");return}const{left:D,top:Z,index:U,key:J,position:pe,behavior:fe,debounce:N=!0}=M;if(D!==void 0||Z!==void 0)C(D,Z,fe);else if(U!==void 0)w(U,fe,N);else if(J!==void 0){const O=i.value.get(J);O!==void 0&&w(O,fe,N)}else pe==="bottom"?C(0,Number.MAX_SAFE_INTEGER,fe):pe==="top"&&C(0,0,fe)};let m,x=null;function w(M,W,D){const{value:Z}=u,U=Z.sum(M)+mn(e.paddingTop);if(!D)s.value.scrollTo({left:0,top:U,behavior:W});else{m=M,x!==null&&window.clearTimeout(x),x=window.setTimeout(()=>{m=void 0,x=null},16);const{scrollTop:J,offsetHeight:pe}=s.value;if(U>J){const fe=Z.get(M);U+fe<=J+pe||s.value.scrollTo({left:0,top:U+fe-pe,behavior:W})}else s.value.scrollTo({left:0,top:U,behavior:W})}}function C(M,W,D){s.value.scrollTo({left:M,top:W,behavior:D})}function P(M,W){var D,Z,U;if(o||e.ignoreItemResize||_(W.target))return;const{value:J}=u,pe=i.value.get(M),fe=J.get(pe),N=(U=(Z=(D=W.borderBoxSize)===null||D===void 0?void 0:D[0])===null||Z===void 0?void 0:Z.blockSize)!==null&&U!==void 0?U:W.contentRect.height;if(N===fe)return;N-e.itemSize===0?d.delete(M):d.set(M,N-e.itemSize);const A=N-fe;if(A===0)return;J.add(pe,A);const Q=s.value;if(Q!=null){if(m===void 0){const he=J.sum(pe);Q.scrollTop>he&&Q.scrollBy(0,A)}else if(peQ.scrollTop+Q.offsetHeight&&Q.scrollBy(0,A)}j()}f.value++}const T=!uC();let y=!1;function B(M){var W;(W=e.onScroll)===null||W===void 0||W.call(e,M),(!T||!y)&&j()}function S(M){var W;if((W=e.onWheel)===null||W===void 0||W.call(e,M),T){const D=s.value;if(D!=null){if(M.deltaX===0&&(D.scrollTop===0&&M.deltaY<=0||D.scrollTop+D.offsetHeight>=D.scrollHeight&&M.deltaY>=0))return;M.preventDefault(),D.scrollTop+=M.deltaY/Dh(),D.scrollLeft+=M.deltaX/Dh(),j(),y=!0,_l(()=>{y=!1})}}}function E(M){if(o||_(M.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(M.contentRect.height===c.value)return}else if(M.contentRect.height===c.value&&M.contentRect.width===a.value)return;c.value=M.contentRect.height,a.value=M.contentRect.width;const{onResize:W}=e;W!==void 0&&W(M)}function j(){const{value:M}=s;M!=null&&(h.value=M.scrollTop,l.value=M.scrollLeft)}function _(M){let W=M;for(;W!==null;){if(W.style.display==="none")return!0;W=W.parentElement}return!1}return{listHeight:c,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:F(()=>{const{itemResizable:M}=e,W=At(u.value.sum());return f.value,[e.itemsStyle,{boxSizing:"content-box",width:At(r.value),height:M?"":W,minHeight:M?W:"",paddingTop:At(e.paddingTop),paddingBottom:At(e.paddingBottom)}]}),visibleItemsStyle:F(()=>(f.value,{transform:`translateY(${At(u.value.sum(p.value))})`})),viewportItems:g,listElRef:s,itemsElRef:V(null),scrollTo:b,handleListResize:E,handleListScroll:B,handleListWheel:S,handleItemResize:P}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:n}=this;return v(wn,{onResize:this.handleListResize},{default:()=>{var r,i;return v("div",xo(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?v("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[v(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:l,renderItemWithCols:a}=this;return this.viewportItems.map(s=>{const c=s[t],d=o.get(c),u=l!=null?v(Nh,{index:d,item:s}):void 0,f=a!=null?v(Nh,{index:d,item:s}):void 0,h=this.$slots.default({item:s,renderedCols:u,renderedItemWithCols:f,index:d})[0];return e?v(wn,{key:c,onResize:p=>this.handleItemResize(c,p)},{default:()=>h}):(h.key=c,h)})}})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),Jo="v-hidden",pC=Cn("[v-hidden]",{display:"none!important"}),Os=ve({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=V(null),n=V(null);function r(l){const{value:a}=o,{getCounter:s,getTail:c}=e;let d;if(s!==void 0?d=s():d=n.value,!a||!d)return;d.hasAttribute(Jo)&&d.removeAttribute(Jo);const{children:u}=a;if(l.showAllItemsBeforeCalculate)for(const w of u)w.hasAttribute(Jo)&&w.removeAttribute(Jo);const f=a.offsetWidth,h=[],p=t.tail?c==null?void 0:c():null;let g=p?p.offsetWidth:0,b=!1;const m=a.children.length-(t.tail?1:0);for(let w=0;wf){const{updateCounter:T}=e;for(let y=w;y>=0;--y){const B=m-1-y;T!==void 0?T(B):d.textContent=`${B}`;const S=d.offsetWidth;if(g-=h[y],g+S<=f||y===0){b=!0,w=y-1,p&&(w===-1?(p.style.maxWidth=`${f-S}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:E}=e;E&&E(B);break}}}}const{onUpdateOverflow:x}=e;b?x!==void 0&&x(!0):(x!==void 0&&x(!1),d.setAttribute(Jo,""))}const i=Un();return pC.mount({id:"vueuc/overflow",head:!0,anchorMetaName:_s,ssr:i}),Bt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return so(()=>this.sync({showAllItemsBeforeCalculate:!1})),v("div",{class:"v-overflow",ref:"selfRef"},[su(e,"default"),e.counter?e.counter():v("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function jh(e){return e instanceof HTMLElement}function Wh(e){for(let t=0;t=0;t--){const o=e.childNodes[t];if(jh(o)&&(Uh(o)||Vh(o)))return!0}return!1}function Uh(e){if(!vC(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function vC(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"SELECT":case"TEXTAREA":return!0;default:return!1}}let vi=[];const gC=ve({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Tl(),o=V(null),n=V(null);let r=!1,i=!1;const l=typeof document>"u"?null:document.activeElement;function a(){return vi[vi.length-1]===t}function s(b){var m;b.code==="Escape"&&a()&&((m=e.onEsc)===null||m===void 0||m.call(e,b))}Bt(()=>{st(()=>e.active,b=>{b?(u(),bt("keydown",document,s)):(ct("keydown",document,s),r&&f())},{immediate:!0})}),Ft(()=>{ct("keydown",document,s),r&&f()});function c(b){if(!i&&a()){const m=d();if(m===null||m.contains(ci(b)))return;h("first")}}function d(){const b=o.value;if(b===null)return null;let m=b;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function u(){var b;if(!e.disabled){if(vi.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?h("first"):(b=yh(m))===null||b===void 0||b.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}}function f(){var b;if(e.disabled||(document.removeEventListener("focus",c,!0),vi=vi.filter(x=>x!==t),a()))return;const{finalFocusTo:m}=e;m!==void 0?(b=yh(m))===null||b===void 0||b.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(i=!0,l.focus({preventScroll:!0}),i=!1)}function h(b){if(a()&&e.active){const m=o.value,x=n.value;if(m!==null&&x!==null){const w=d();if(w==null||w===x){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const C=b==="first"?Wh(w):Vh(w);i=!1,C||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function p(b){if(i)return;const m=d();m!==null&&(b.relatedTarget!==null&&m.contains(b.relatedTarget)?h("last"):h("first"))}function g(b){i||(b.relatedTarget!==null&&b.relatedTarget===o.value?h("last"):h("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return v(it,null,[v("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),v("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function Kh(e,t){t&&(Bt(()=>{const{value:o}=e;o&&pi.registerHandler(o,t)}),st(e,(o,n)=>{n&&pi.unregisterHandler(n)},{deep:!1}),Ft(()=>{const{value:o}=e;o&&pi.unregisterHandler(o)}))}function gi(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const mC=/^(\d|\.)+$/,Gh=/(\d|\.)+/;function zt(e,{c:t=1,offset:o=0,attachPx:n=!0}={}){if(typeof e=="number"){const r=(e+o)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(mC.test(e)){const r=(Number(e)+o)*t;return n?r===0?"0":`${r}px`:`${r}`}else{const r=Gh.exec(e);return r?e.replace(Gh,String((Number(r[0])+o)*t)):e}return e}function qh(e){const{left:t,right:o,top:n,bottom:r}=no(e);return`${n} ${t} ${r} ${o}`}function bC(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}let Ms;function xC(){return Ms===void 0&&(Ms=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Ms}const yC=new WeakSet;function CC(e){yC.add(e)}function Xh(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}const wC={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function Yh(e){const t=wC[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}function kr(e,t){console.error(`[naive/${e}]: ${t}`)}function SC(e,t){throw new Error(`[naive/${e}]: ${t}`)}function ge(e,...t){if(Array.isArray(e))e.forEach(o=>ge(o,...t));else return e(...t)}function Zh(e){return t=>{t?e.value=t.$el:e.value=null}}function Ll(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(un(String(n)));return}if(Array.isArray(n)){Ll(n,t,o);return}if(n.type===it){if(n.children===null)return;Array.isArray(n.children)&&Ll(n.children,t,o)}else{if(n.type===Pt&&t)return;o.push(n)}}}),o}function RC(e,t="default",o=void 0){const n=e[t];if(!n)return kr("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Ll(n(o));return r.length===1?r[0]:(kr("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function PC(e,t="default",o=[]){const r=e.$slots[t];return r===void 0?o:r()}function zr(e,t=[],o){const n={};return t.forEach(r=>{n[r]=e[r]}),Object.assign(n,o)}function Nl(e){return Object.keys(e)}function mi(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(n=>{n&&n(o)})}}function Jh(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function Lt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?un(e):typeof e=="number"?un(String(e)):null}function Co(e){return e.some(t=>vr(t)?!(t.type===Pt||t.type===it&&!Co(t.children)):!0)?e:null}function Mo(e,t){return e&&Co(e())||t()}function _C(e,t,o){return e&&Co(e(t))||o(t)}function pt(e,t){const o=e&&Co(e());return t(o||null)}function Bs(e){return!(e&&Co(e()))}const Hs=ve({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Qo="n-config-provider",Qh="n";function Je(e={},t={defaultBordered:!0}){const o=$e(Qo,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:F(()=>{var n,r;const{bordered:i}=e;return i!==void 0?i:(r=(n=o==null?void 0:o.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:ka(Qh),namespaceRef:F(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function ep(){const e=$e(Qo,null);return e?e.mergedClsPrefixRef:ka(Qh)}function gt(e,t,o,n){o||SC("useThemeClass","cssVarsRef is not passed");const r=$e(Qo,null),i=r==null?void 0:r.mergedThemeHashRef,l=r==null?void 0:r.styleMountTarget,a=V(""),s=Un();let c;const d=`__${e}`,u=()=>{let f=d;const h=t?t.value:void 0,p=i==null?void 0:i.value;p&&(f+=`-${p}`),h&&(f+=`-${h}`);const{themeOverrides:g,builtinThemeOverrides:b}=n;g&&(f+=`-${fs(JSON.stringify(g))}`),b&&(f+=`-${fs(JSON.stringify(b))}`),a.value=f,c=()=>{const m=o.value;let x="";for(const w in m)x+=`${w}: ${m[w]};`;L(`.${f}`,x).mount({id:f,ssr:s,parent:l}),c=void 0}};return Mt(()=>{u()}),{themeClass:a,onRender:()=>{c==null||c()}}}const tp="n-form-item";function qn(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:n}={}){const r=$e(tp,null);tt(tp,null);const i=F(o?()=>o(r):()=>{const{size:s}=e;if(s)return s;if(r){const{mergedSize:c}=r;if(c.value!==void 0)return c.value}return t}),l=F(n?()=>n(r):()=>{const{disabled:s}=e;return s!==void 0?s:r?r.disabled.value:!1}),a=F(()=>{const{status:s}=e;return s||(r==null?void 0:r.mergedValidationStatus.value)});return Ft(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:l,mergedStatusRef:a,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}const kC={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"},Heatmap:{less:"less",more:"more",monthFormat:"MMM",weekdayFormat:"eee"}};function Ds(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function bi(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,a=o!=null&&o.width?String(o.width):l;r=e.formattingValues[a]||e.formattingValues[l]}else{const l=e.defaultWidth,a=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[a]||e.values[l]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}function xi(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const l=i[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?TC(a,u=>u.test(l)):zC(a,u=>u.test(l));let c;c=e.valueCallback?e.valueCallback(s):s,c=o.valueCallback?o.valueCallback(c):c;const d=t.slice(l.length);return{value:c,rest:d}}}function zC(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function TC(e,t){for(let o=0;o{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],i=t.match(e.parsePattern);if(!i)return null;let l=e.valueCallback?e.valueCallback(i[0]):i[0];l=o.valueCallback?o.valueCallback(l):l;const a=t.slice(r.length);return{value:l,rest:a}}}const EC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},FC=(e,t,o)=>{let n;const r=EC[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n},AC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},IC=(e,t,o,n)=>AC[e],OC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},MC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},BC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HC={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},DC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},LC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},NC={ordinalNumber:(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:bi({values:OC,defaultWidth:"wide"}),quarter:bi({values:MC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:bi({values:BC,defaultWidth:"wide"}),day:bi({values:HC,defaultWidth:"wide"}),dayPeriod:bi({values:DC,defaultWidth:"wide",formattingValues:LC,defaultFormattingWidth:"wide"})},jC=/^(\d+)(th|st|nd|rd)?/i,WC=/\d+/i,VC={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},UC={any:[/^b/i,/^(a|c)/i]},KC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},GC={any:[/1/i,/2/i,/3/i,/4/i]},qC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},XC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},YC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ZC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},JC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},QC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ew={ordinalNumber:$C({matchPattern:jC,parsePattern:WC,valueCallback:e=>parseInt(e,10)}),era:xi({matchPatterns:VC,defaultMatchWidth:"wide",parsePatterns:UC,defaultParseWidth:"any"}),quarter:xi({matchPatterns:KC,defaultMatchWidth:"wide",parsePatterns:GC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xi({matchPatterns:qC,defaultMatchWidth:"wide",parsePatterns:XC,defaultParseWidth:"any"}),day:xi({matchPatterns:YC,defaultMatchWidth:"wide",parsePatterns:ZC,defaultParseWidth:"any"}),dayPeriod:xi({matchPatterns:JC,defaultMatchWidth:"any",parsePatterns:QC,defaultParseWidth:"any"})},tw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ow={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rw={date:Ds({formats:tw,defaultWidth:"full"}),time:Ds({formats:ow,defaultWidth:"full"}),dateTime:Ds({formats:nw,defaultWidth:"full"})},iw={name:"en-US",locale:{code:"en-US",formatDistance:FC,formatLong:rw,formatRelative:IC,localize:NC,match:ew,options:{weekStartsOn:0,firstWeekContainsDate:1}}};var op=typeof global=="object"&&global&&global.Object===Object&&global,lw=typeof self=="object"&&self&&self.Object===Object&&self,Bo=op||lw||Function("return this")(),Sn=Bo.Symbol,np=Object.prototype,aw=np.hasOwnProperty,sw=np.toString,yi=Sn?Sn.toStringTag:void 0;function cw(e){var t=aw.call(e,yi),o=e[yi];try{e[yi]=void 0;var n=!0}catch{}var r=sw.call(e);return n&&(t?e[yi]=o:delete e[yi]),r}var dw=Object.prototype,uw=dw.toString;function fw(e){return uw.call(e)}var hw="[object Null]",pw="[object Undefined]",rp=Sn?Sn.toStringTag:void 0;function Xn(e){return e==null?e===void 0?pw:hw:rp&&rp in Object(e)?cw(e):fw(e)}function Rn(e){return e!=null&&typeof e=="object"}var vw="[object Symbol]";function Ls(e){return typeof e=="symbol"||Rn(e)&&Xn(e)==vw}function ip(e,t){for(var o=-1,n=e==null?0:e.length,r=Array(n);++o0){if(++t>=Ow)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Dw(e){return function(){return e}}var jl=function(){try{var e=Zn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Lw=jl?function(e,t){return jl(e,"toString",{configurable:!0,enumerable:!1,value:Dw(t),writable:!0})}:Ns,Nw=Hw(Lw),jw=9007199254740991,Ww=/^(?:0|[1-9]\d*)$/;function Us(e,t){var o=typeof e;return t=t??jw,!!t&&(o=="number"||o!="symbol"&&Ww.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Yw}function Tr(e){return e!=null&&Gs(e.length)&&!js(e)}function Zw(e,t,o){if(!Pn(o))return!1;var n=typeof t;return(n=="number"?Tr(o)&&Us(t,o.length):n=="string"&&t in o)?Ci(o[t],e):!1}function Jw(e){return Xw(function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,l=r>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,l&&Zw(o[0],o[1],l)&&(i=r<3?void 0:i,r=1),t=Object(t);++n-1}function cS(e,t){var o=this.__data__,n=Ul(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}function en(e){var t=-1,o=e==null?0:e.length;for(this.clear();++tr?0:r+t),o=o>r?r:o,o<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(r);++n=n?e:TS(e,t,o)}var ES="\\ud800-\\udfff",FS="\\u0300-\\u036f",AS="\\ufe20-\\ufe2f",IS="\\u20d0-\\u20ff",OS=FS+AS+IS,MS="\\ufe0e\\ufe0f",BS="\\u200d",HS=RegExp("["+BS+ES+OS+MS+"]");function zp(e){return HS.test(e)}function DS(e){return e.split("")}var Tp="\\ud800-\\udfff",LS="\\u0300-\\u036f",NS="\\ufe20-\\ufe2f",jS="\\u20d0-\\u20ff",WS=LS+NS+jS,VS="\\ufe0e\\ufe0f",US="["+Tp+"]",tc="["+WS+"]",oc="\\ud83c[\\udffb-\\udfff]",KS="(?:"+tc+"|"+oc+")",$p="[^"+Tp+"]",Ep="(?:\\ud83c[\\udde6-\\uddff]){2}",Fp="[\\ud800-\\udbff][\\udc00-\\udfff]",GS="\\u200d",Ap=KS+"?",Ip="["+VS+"]?",qS="(?:"+GS+"(?:"+[$p,Ep,Fp].join("|")+")"+Ip+Ap+")*",XS=Ip+Ap+qS,YS="(?:"+[$p+tc+"?",tc,Ep,Fp,US].join("|")+")",ZS=RegExp(oc+"(?="+oc+")|"+YS+XS,"g");function JS(e){return e.match(ZS)||[]}function QS(e){return zp(e)?JS(e):DS(e)}function eR(e){return function(t){t=Sp(t);var o=zp(t)?QS(t):void 0,n=o?o[0]:t.charAt(0),r=o?$S(o,1).join(""):t.slice(1);return n[e]()+r}}var tR=eR("toUpperCase");function oR(){this.__data__=new en,this.size=0}function nR(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function rR(e){return this.__data__.get(e)}function iR(e){return this.__data__.has(e)}var lR=200;function aR(e,t){var o=this.__data__;if(o instanceof en){var n=o.__data__;if(!Ri||n.lengtha))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,h=o&ER?new Xl:void 0;for(i.set(e,t),i.set(t,e);++u{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:kC[e]});return{dateLocaleRef:F(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:iw}),localeRef:n}}const $r="naive-ui-style";function qt(e,t,o){if(!t)return;const n=Un(),r=F(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=$e(Qo,null),l=()=>{Mt(()=>{const{value:a}=o,s=`${a}${e}Rtl`;if(qx(s,n))return;const{value:c}=r;c&&c.style.mount({id:s,head:!0,anchorMetaName:$r,props:{bPrefix:a?`.${a}-`:void 0},ssr:n,parent:i==null?void 0:i.styleMountTarget})})};return n?l():qr(l),r}const Qn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:PP,fontFamily:_P,lineHeight:kP}=Qn,ev=L("body",` + margin: 0; + font-size: ${PP}; + font-family: ${_P}; + line-height: ${kP}; + -webkit-text-size-adjust: 100%; + -webkit-tap-highlight-color: transparent; +`,[L("input",` + font-family: inherit; + font-size: inherit; + `)]);function er(e,t,o){if(!t)return;const n=Un(),r=$e(Qo,null),i=()=>{const l=o.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:$r,props:{bPrefix:l?`.${l}-`:void 0},ssr:n,parent:r==null?void 0:r.styleMountTarget}),r!=null&&r.preflightStyleDisabled||ev.mount({id:"n-global",head:!0,anchorMetaName:$r,ssr:n,parent:r==null?void 0:r.styleMountTarget})};n?i():qr(i)}function Y2(e){return e}function Ie(e,t,o,n,r,i){const l=Un(),a=$e(Qo,null);if(o){const c=()=>{const d=i==null?void 0:i.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:$r,ssr:l,parent:a==null?void 0:a.styleMountTarget}),a!=null&&a.preflightStyleDisabled||ev.mount({id:"n-global",head:!0,anchorMetaName:$r,ssr:l,parent:a==null?void 0:a.styleMountTarget})};l?c():qr(c)}return F(()=>{var c;const{theme:{common:d,self:u,peers:f={}}={},themeOverrides:h={},builtinThemeOverrides:p={}}=r,{common:g,peers:b}=h,{common:m=void 0,[e]:{common:x=void 0,self:w=void 0,peers:C={}}={}}=(a==null?void 0:a.mergedThemeRef.value)||{},{common:P=void 0,[e]:T={}}=(a==null?void 0:a.mergedThemeOverridesRef.value)||{},{common:y,peers:B={}}=T,S=Zl({},d||x||m||n.common,P,y,g),E=Zl((c=u||w||n.self)===null||c===void 0?void 0:c(S),p,T,h);return{common:S,self:E,peers:Zl({},n.peers,C,f),peerOverrides:Zl({},p.peers,B,b)}})}Ie.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const zP=I("base-icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[L("svg",` + height: 1em; + width: 1em; + `)]),Tt=ve({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){er("-base-icon",zP,Se(e,"clsPrefix"))},render(){return v("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),_i=ve({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=El();return()=>v(Yo,{name:"icon-switch-transition",appear:o.value},t)}}),TP=ve({name:"ArrowDown",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function tv(e,t){const o=ve({render(){return t()}});return ve({name:tR(e),setup(){var n;const r=(n=$e(Qo,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var i;const l=(i=r==null?void 0:r.value)===null||i===void 0?void 0:i[e];return l?l():v(o,null)}}})}const ov=ve({name:"Backward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),$P=ve({name:"Checkmark",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),nv=ve({name:"ChevronDown",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),EP=ve({name:"ChevronDownFilled",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),dc=ve({name:"ChevronRight",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),FP=tv("clear",()=>v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),AP=tv("close",()=>v("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),IP=ve({name:"Empty",render(){return v("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),v("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),OP=ve({name:"Eye",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),v("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),MP=ve({name:"EyeOff",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),v("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),v("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),v("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),v("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),rv=ve({name:"FastBackward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),iv=ve({name:"FastForward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),BP=ve({name:"Filter",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),lv=ve({name:"Forward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),av=ve({name:"More",render(){return v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),{cubicBezierEaseInOut:HP}=Qn;function Do({originalTransform:e="",left:t=0,top:o=0,transition:n=`all .3s ${HP} !important`}={}){return[L("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),L("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),L("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:n})]}const DP=I("base-clear",` + flex-shrink: 0; + height: 1em; + width: 1em; + position: relative; +`,[L(">",[H("clear",` + font-size: var(--n-clear-size); + height: 1em; + width: 1em; + cursor: pointer; + color: var(--n-clear-color); + transition: color .3s var(--n-bezier); + display: flex; + `,[L("&:hover",` + color: var(--n-clear-color-hover)!important; + `),L("&:active",` + color: var(--n-clear-color-pressed)!important; + `)]),H("placeholder",` + display: flex; + `),H("clear, placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Do({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),uc=ve({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return er("-base-clear",DP,Se(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-base-clear`},v(_i,null,{default:()=>{var t,o;return this.show?v("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Mo(this.$slots.icon,()=>[v(Tt,{clsPrefix:e},{default:()=>v(FP,null)})])):v("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),LP=I("base-close",` + display: flex; + align-items: center; + justify-content: center; + cursor: pointer; + background-color: transparent; + color: var(--n-close-icon-color); + border-radius: var(--n-close-border-radius); + height: var(--n-close-size); + width: var(--n-close-size); + font-size: var(--n-close-icon-size); + outline: none; + border: none; + position: relative; + padding: 0; +`,[Y("absolute",` + height: var(--n-close-icon-size); + width: var(--n-close-icon-size); + `),L("&::before",` + content: ""; + position: absolute; + width: var(--n-close-size); + height: var(--n-close-size); + left: 50%; + top: 50%; + transform: translateY(-50%) translateX(-50%); + transition: inherit; + border-radius: inherit; + `),Ye("disabled",[L("&:hover",` + color: var(--n-close-icon-color-hover); + `),L("&:hover::before",` + background-color: var(--n-close-color-hover); + `),L("&:focus::before",` + background-color: var(--n-close-color-hover); + `),L("&:active",` + color: var(--n-close-icon-color-pressed); + `),L("&:active::before",` + background-color: var(--n-close-color-pressed); + `)]),Y("disabled",` + cursor: not-allowed; + color: var(--n-close-icon-color-disabled); + background-color: transparent; + `),Y("round",[L("&::before",` + border-radius: 50%; + `)])]),sv=ve({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return er("-base-close",LP,Se(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:n,round:r,isButtonTag:i}=e;return v(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:a=>{e.focusable||a.preventDefault()},onClick:e.onClick},v(Tt,{clsPrefix:t},{default:()=>v(AP,null)}))}}}),cv=ve({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(a){e.width?a.style.maxWidth=`${a.offsetWidth}px`:a.style.maxHeight=`${a.offsetHeight}px`,a.offsetWidth}function n(a){e.width?a.style.maxWidth="0":a.style.maxHeight="0",a.offsetWidth;const{onLeave:s}=e;s&&s()}function r(a){e.width?a.style.maxWidth="":a.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(a){if(a.style.transition="none",e.width){const s=a.offsetWidth;a.style.maxWidth="0",a.offsetWidth,a.style.transition="",a.style.maxWidth=`${s}px`}else if(e.reverse)a.style.maxHeight=`${a.offsetHeight}px`,a.offsetHeight,a.style.transition="",a.style.maxHeight="0";else{const s=a.offsetHeight;a.style.maxHeight="0",a.offsetWidth,a.style.transition="",a.style.maxHeight=`${s}px`}a.offsetWidth}function l(a){var s;e.width?a.style.maxWidth="":e.reverse||(a.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const{group:a,width:s,appear:c,mode:d}=e,u=a?Ub:Yo,f={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:l,onBeforeLeave:o,onLeave:n,onAfterLeave:r};return a||(f.mode=d),v(u,f,t)}}}),NP=ve({props:{onFocus:Function,onBlur:Function},setup(e){return()=>v("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),jP=L([L("@keyframes rotator",` + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + }`),I("base-loading",` + position: relative; + line-height: 0; + width: 1em; + height: 1em; + `,[H("transition-wrapper",` + position: absolute; + width: 100%; + height: 100%; + `,[Do()]),H("placeholder",` + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + `,[Do({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),H("container",` + animation: rotator 3s linear infinite both; + `,[H("icon",` + height: 1em; + width: 1em; + `)])])]),fc="1.6s",ki=ve({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},{strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}}),setup(e){er("-base-loading",jP,Se(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:n,scale:r}=this,i=t/r;return v("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},v(_i,null,{default:()=>this.show?v("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},v("div",{class:`${e}-base-loading__container`},v("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},v("g",null,v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:fc,fill:"freeze",repeatCount:"indefinite"}),v("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:fc,fill:"freeze",repeatCount:"indefinite"}),v("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:fc,fill:"freeze",repeatCount:"indefinite"})))))):v("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:dv}=Qn;function WP({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:n=dv,leaveCubicBezier:r=dv}={}){return[L(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),L(`&.${e}-transition-leave-active`,{transition:`all ${o} ${r}!important`}),L(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),L(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Oe={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},VP=Wn(Oe.neutralBase),uv=Wn(Oe.neutralInvertBase),UP=`rgba(${uv.slice(0,3).join(", ")}, `;function fv(e){return`${UP+String(e)})`}function Nt(e){const t=Array.from(uv);return t[3]=Number(e),Ue(VP,t)}const xt=Object.assign(Object.assign({name:"common"},Qn),{baseColor:Oe.neutralBase,primaryColor:Oe.primaryDefault,primaryColorHover:Oe.primaryHover,primaryColorPressed:Oe.primaryActive,primaryColorSuppl:Oe.primarySuppl,infoColor:Oe.infoDefault,infoColorHover:Oe.infoHover,infoColorPressed:Oe.infoActive,infoColorSuppl:Oe.infoSuppl,successColor:Oe.successDefault,successColorHover:Oe.successHover,successColorPressed:Oe.successActive,successColorSuppl:Oe.successSuppl,warningColor:Oe.warningDefault,warningColorHover:Oe.warningHover,warningColorPressed:Oe.warningActive,warningColorSuppl:Oe.warningSuppl,errorColor:Oe.errorDefault,errorColorHover:Oe.errorHover,errorColorPressed:Oe.errorActive,errorColorSuppl:Oe.errorSuppl,textColorBase:Oe.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Nt(Oe.alpha4),placeholderColor:Nt(Oe.alpha4),placeholderColorDisabled:Nt(Oe.alpha5),iconColor:Nt(Oe.alpha4),iconColorHover:kl(Nt(Oe.alpha4),{lightness:.75}),iconColorPressed:kl(Nt(Oe.alpha4),{lightness:.9}),iconColorDisabled:Nt(Oe.alpha5),opacity1:Oe.alpha1,opacity2:Oe.alpha2,opacity3:Oe.alpha3,opacity4:Oe.alpha4,opacity5:Oe.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Nt(Number(Oe.alphaClose)),closeIconColorHover:Nt(Number(Oe.alphaClose)),closeIconColorPressed:Nt(Number(Oe.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Nt(Oe.alpha4),clearColorHover:kl(Nt(Oe.alpha4),{lightness:.75}),clearColorPressed:kl(Nt(Oe.alpha4),{lightness:.9}),scrollbarColor:fv(Oe.alphaScrollbar),scrollbarColorHover:fv(Oe.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Nt(Oe.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Oe.neutralPopover,tableColor:Oe.neutralCard,cardColor:Oe.neutralCard,modalColor:Oe.neutralModal,bodyColor:Oe.neutralBody,tagColor:"#eee",avatarColor:Nt(Oe.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Nt(Oe.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Oe.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),KP={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function GP(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:n,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},KP),{height:n,width:r,borderRadius:i,color:t,colorHover:o})}const Er={name:"Scrollbar",common:xt,self:GP},qP=I("scrollbar",` + overflow: hidden; + position: relative; + z-index: auto; + height: 100%; + width: 100%; +`,[L(">",[I("scrollbar-container",` + width: 100%; + overflow: scroll; + height: 100%; + min-height: inherit; + max-height: inherit; + scrollbar-width: none; + `,[L("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),L(">",[I("scrollbar-content",` + box-sizing: border-box; + min-width: 100%; + `)])])]),L(">, +",[I("scrollbar-rail",` + position: absolute; + pointer-events: none; + user-select: none; + background: var(--n-scrollbar-rail-color); + -webkit-user-select: none; + `,[Y("horizontal",` + height: var(--n-scrollbar-height); + `,[L(">",[H("scrollbar",` + height: var(--n-scrollbar-height); + border-radius: var(--n-scrollbar-border-radius); + right: 0; + `)])]),Y("horizontal--top",` + top: var(--n-scrollbar-rail-top-horizontal-top); + right: var(--n-scrollbar-rail-right-horizontal-top); + bottom: var(--n-scrollbar-rail-bottom-horizontal-top); + left: var(--n-scrollbar-rail-left-horizontal-top); + `),Y("horizontal--bottom",` + top: var(--n-scrollbar-rail-top-horizontal-bottom); + right: var(--n-scrollbar-rail-right-horizontal-bottom); + bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom); + left: var(--n-scrollbar-rail-left-horizontal-bottom); + `),Y("vertical",` + width: var(--n-scrollbar-width); + `,[L(">",[H("scrollbar",` + width: var(--n-scrollbar-width); + border-radius: var(--n-scrollbar-border-radius); + bottom: 0; + `)])]),Y("vertical--left",` + top: var(--n-scrollbar-rail-top-vertical-left); + right: var(--n-scrollbar-rail-right-vertical-left); + bottom: var(--n-scrollbar-rail-bottom-vertical-left); + left: var(--n-scrollbar-rail-left-vertical-left); + `),Y("vertical--right",` + top: var(--n-scrollbar-rail-top-vertical-right); + right: var(--n-scrollbar-rail-right-vertical-right); + bottom: var(--n-scrollbar-rail-bottom-vertical-right); + left: var(--n-scrollbar-rail-left-vertical-right); + `),Y("disabled",[L(">",[H("scrollbar","pointer-events: none;")])]),L(">",[H("scrollbar",` + z-index: 1; + position: absolute; + cursor: pointer; + pointer-events: all; + background-color: var(--n-scrollbar-color); + transition: background-color .2s var(--n-scrollbar-bezier); + `,[WP(),L("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),XP=Object.assign(Object.assign({},Ie.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),tr=ve({name:"Scrollbar",props:XP,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=Je(e),r=qt("Scrollbar",n,t),i=V(null),l=V(null),a=V(null),s=V(null),c=V(null),d=V(null),u=V(null),f=V(null),h=V(null),p=V(null),g=V(null),b=V(0),m=V(0),x=V(!1),w=V(!1);let C=!1,P=!1,T,y,B=0,S=0,E=0,j=0;const _=Sy(),M=Ie("Scrollbar","-scrollbar",qP,Er,e,t),W=F(()=>{const{value:z}=f,{value:q}=d,{value:ce}=p;return z===null||q===null||ce===null?0:Math.min(z,ce*z/q+mn(M.value.self.width)*1.5)}),D=F(()=>`${W.value}px`),Z=F(()=>{const{value:z}=h,{value:q}=u,{value:ce}=g;return z===null||q===null||ce===null?0:ce*z/q+mn(M.value.self.height)*1.5}),U=F(()=>`${Z.value}px`),J=F(()=>{const{value:z}=f,{value:q}=b,{value:ce}=d,{value:Ce}=p;if(z===null||ce===null||Ce===null)return 0;{const Re=ce-z;return Re?q/Re*(Ce-W.value):0}}),pe=F(()=>`${J.value}px`),fe=F(()=>{const{value:z}=h,{value:q}=m,{value:ce}=u,{value:Ce}=g;if(z===null||ce===null||Ce===null)return 0;{const Re=ce-z;return Re?q/Re*(Ce-Z.value):0}}),N=F(()=>`${fe.value}px`),O=F(()=>{const{value:z}=f,{value:q}=d;return z!==null&&q!==null&&q>z}),A=F(()=>{const{value:z}=h,{value:q}=u;return z!==null&&q!==null&&q>z}),Q=F(()=>{const{trigger:z}=e;return z==="none"||x.value}),he=F(()=>{const{trigger:z}=e;return z==="none"||w.value}),we=F(()=>{const{container:z}=e;return z?z():l.value}),X=F(()=>{const{content:z}=e;return z?z():a.value}),de=(z,q)=>{if(!e.scrollable)return;if(typeof z=="number"){$(z,q??0,0,!1,"auto");return}const{left:ce,top:Ce,index:Re,elSize:Te,position:Ee,behavior:Ae,el:Ge,debounce:ut=!0}=z;(ce!==void 0||Ce!==void 0)&&$(ce??0,Ce??0,0,!1,Ae),Ge!==void 0?$(0,Ge.offsetTop,Ge.offsetHeight,ut,Ae):Re!==void 0&&Te!==void 0?$(0,Re*Te,Te,ut,Ae):Ee==="bottom"?$(0,Number.MAX_SAFE_INTEGER,0,!1,Ae):Ee==="top"&&$(0,0,0,!1,Ae)},R=xs(()=>{e.container||de({top:b.value,left:m.value})}),ae=()=>{R.isDeactivated||se()},_e=z=>{if(R.isDeactivated)return;const{onResize:q}=e;q&&q(z),se()},k=(z,q)=>{if(!e.scrollable)return;const{value:ce}=we;ce&&(typeof z=="object"?ce.scrollBy(z):ce.scrollBy(z,q||0))};function $(z,q,ce,Ce,Re){const{value:Te}=we;if(Te){if(Ce){const{scrollTop:Ee,offsetHeight:Ae}=Te;if(q>Ee){q+ce<=Ee+Ae||Te.scrollTo({left:z,top:q+ce-Ae,behavior:Re});return}}Te.scrollTo({left:z,top:q,behavior:Re})}}function K(){ne(),te(),se()}function ie(){le()}function le(){re(),xe()}function re(){y!==void 0&&window.clearTimeout(y),y=window.setTimeout(()=>{w.value=!1},e.duration)}function xe(){T!==void 0&&window.clearTimeout(T),T=window.setTimeout(()=>{x.value=!1},e.duration)}function ne(){T!==void 0&&window.clearTimeout(T),x.value=!0}function te(){y!==void 0&&window.clearTimeout(y),w.value=!0}function oe(z){const{onScroll:q}=e;q&&q(z),ye()}function ye(){const{value:z}=we;z&&(b.value=z.scrollTop,m.value=z.scrollLeft*(r!=null&&r.value?-1:1))}function be(){const{value:z}=X;z&&(d.value=z.offsetHeight,u.value=z.offsetWidth);const{value:q}=we;q&&(f.value=q.offsetHeight,h.value=q.offsetWidth);const{value:ce}=c,{value:Ce}=s;ce&&(g.value=ce.offsetWidth),Ce&&(p.value=Ce.offsetHeight)}function ee(){const{value:z}=we;z&&(b.value=z.scrollTop,m.value=z.scrollLeft*(r!=null&&r.value?-1:1),f.value=z.offsetHeight,h.value=z.offsetWidth,d.value=z.scrollHeight,u.value=z.scrollWidth);const{value:q}=c,{value:ce}=s;q&&(g.value=q.offsetWidth),ce&&(p.value=ce.offsetHeight)}function se(){e.scrollable&&(e.useUnifiedContainer?ee():(be(),ye()))}function ke(z){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(ci(z)))}function Me(z){z.preventDefault(),z.stopPropagation(),P=!0,bt("mousemove",window,He,!0),bt("mouseup",window,Qe,!0),S=m.value,E=r!=null&&r.value?window.innerWidth-z.clientX:z.clientX}function He(z){if(!P)return;T!==void 0&&window.clearTimeout(T),y!==void 0&&window.clearTimeout(y);const{value:q}=h,{value:ce}=u,{value:Ce}=Z;if(q===null||ce===null)return;const Te=(r!=null&&r.value?window.innerWidth-z.clientX-E:z.clientX-E)*(ce-q)/(q-Ce),Ee=ce-q;let Ae=S+Te;Ae=Math.min(Ee,Ae),Ae=Math.max(Ae,0);const{value:Ge}=we;if(Ge){Ge.scrollLeft=Ae*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:ut}=e;ut&&ut(Ae)}}function Qe(z){z.preventDefault(),z.stopPropagation(),ct("mousemove",window,He,!0),ct("mouseup",window,Qe,!0),P=!1,se(),ke(z)&&le()}function Ve(z){z.preventDefault(),z.stopPropagation(),C=!0,bt("mousemove",window,We,!0),bt("mouseup",window,ot,!0),B=b.value,j=z.clientY}function We(z){if(!C)return;T!==void 0&&window.clearTimeout(T),y!==void 0&&window.clearTimeout(y);const{value:q}=f,{value:ce}=d,{value:Ce}=W;if(q===null||ce===null)return;const Te=(z.clientY-j)*(ce-q)/(q-Ce),Ee=ce-q;let Ae=B+Te;Ae=Math.min(Ee,Ae),Ae=Math.max(Ae,0);const{value:Ge}=we;Ge&&(Ge.scrollTop=Ae)}function ot(z){z.preventDefault(),z.stopPropagation(),ct("mousemove",window,We,!0),ct("mouseup",window,ot,!0),C=!1,se(),ke(z)&&le()}Mt(()=>{const{value:z}=A,{value:q}=O,{value:ce}=t,{value:Ce}=c,{value:Re}=s;Ce&&(z?Ce.classList.remove(`${ce}-scrollbar-rail--disabled`):Ce.classList.add(`${ce}-scrollbar-rail--disabled`)),Re&&(q?Re.classList.remove(`${ce}-scrollbar-rail--disabled`):Re.classList.add(`${ce}-scrollbar-rail--disabled`))}),Bt(()=>{e.container||se()}),Ft(()=>{T!==void 0&&window.clearTimeout(T),y!==void 0&&window.clearTimeout(y),ct("mousemove",window,We,!0),ct("mouseup",window,ot,!0)});const Xe=F(()=>{const{common:{cubicBezierEaseInOut:z},self:{color:q,colorHover:ce,height:Ce,width:Re,borderRadius:Te,railInsetHorizontalTop:Ee,railInsetHorizontalBottom:Ae,railInsetVerticalRight:Ge,railInsetVerticalLeft:ut,railColor:et}}=M.value,{top:jt,right:Xt,bottom:Yt,left:Qt}=no(Ee),{top:eo,right:po,bottom:to,left:G}=no(Ae),{top:ue,right:Fe,bottom:je,left:nt}=no(r!=null&&r.value?qh(Ge):Ge),{top:qe,right:vt,bottom:yt,left:io}=no(r!=null&&r.value?qh(ut):ut);return{"--n-scrollbar-bezier":z,"--n-scrollbar-color":q,"--n-scrollbar-color-hover":ce,"--n-scrollbar-border-radius":Te,"--n-scrollbar-width":Re,"--n-scrollbar-height":Ce,"--n-scrollbar-rail-top-horizontal-top":jt,"--n-scrollbar-rail-right-horizontal-top":Xt,"--n-scrollbar-rail-bottom-horizontal-top":Yt,"--n-scrollbar-rail-left-horizontal-top":Qt,"--n-scrollbar-rail-top-horizontal-bottom":eo,"--n-scrollbar-rail-right-horizontal-bottom":po,"--n-scrollbar-rail-bottom-horizontal-bottom":to,"--n-scrollbar-rail-left-horizontal-bottom":G,"--n-scrollbar-rail-top-vertical-right":ue,"--n-scrollbar-rail-right-vertical-right":Fe,"--n-scrollbar-rail-bottom-vertical-right":je,"--n-scrollbar-rail-left-vertical-right":nt,"--n-scrollbar-rail-top-vertical-left":qe,"--n-scrollbar-rail-right-vertical-left":vt,"--n-scrollbar-rail-bottom-vertical-left":yt,"--n-scrollbar-rail-left-vertical-left":io,"--n-scrollbar-rail-color":et}}),Pe=o?gt("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:de,scrollBy:k,sync:se,syncUnifiedContainer:ee,handleMouseEnterWrapper:K,handleMouseLeaveWrapper:ie}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:b,wrapperRef:i,containerRef:l,contentRef:a,yRailRef:s,xRailRef:c,needYBar:O,needXBar:A,yBarSizePx:D,xBarSizePx:U,yBarTopPx:pe,xBarLeftPx:N,isShowXBar:Q,isShowYBar:he,isIos:_,handleScroll:oe,handleContentResize:ae,handleContainerResize:_e,handleYScrollMouseDown:Ve,handleXScrollMouseDown:Me,cssVars:o?void 0:Xe,themeClass:Pe==null?void 0:Pe.themeClass,onRender:Pe==null?void 0:Pe.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:i,yPlacement:l,xPlacement:a,xScrollable:s}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const c=this.trigger==="none",d=(h,p)=>v("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${l}`,h],"data-scrollbar-rail":!0,style:[p||"",this.verticalRailStyle],"aria-hidden":!0},v(c?Hs:Yo,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?v("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),u=()=>{var h,p;return(h=this.onRender)===null||h===void 0||h.call(this),v("div",xo(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,r&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(p=t.default)===null||p===void 0?void 0:p.call(t):v("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},v(wn,{onResize:this.handleContentResize},{default:()=>v("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:d(void 0,void 0),s&&v("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${a}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},v(c?Hs:Yo,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?v("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},f=this.container?u():v(wn,{onResize:this.handleContainerResize},{default:u});return i?v(it,null,f,d(this.themeClass,this.cssVars)):f}}),hv=tr;function pv(e){return Array.isArray(e)?e:[e]}const hc={STOP:"STOP"};function vv(e,t){const o=t(e);e.children!==void 0&&o!==hc.STOP&&e.children.forEach(n=>vv(n,t))}function YP(e,t={}){const{preserveGroup:o=!1}=t,n=[],r=o?l=>{l.isLeaf||(n.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||n.push(l.key),i(l.children))};function i(l){l.forEach(r)}return i(e),n}function ZP(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function JP(e){return e.children}function QP(e){return e.key}function e_(){return!1}function t_(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function o_(e){return e.disabled===!0}function n_(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function pc(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function vc(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function r_(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)||o.add(n)}),Array.from(o)}function i_(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)&&o.delete(n)}),Array.from(o)}function l_(e){return(e==null?void 0:e.type)==="group"}function a_(e){const t=new Map;return e.forEach((o,n)=>{t.set(o.key,n)}),o=>{var n;return(n=t.get(o))!==null&&n!==void 0?n:null}}class s_ extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function c_(e,t,o,n){return Jl(t.concat(e),o,n,!1)}function d_(e,t){const o=new Set;return e.forEach(n=>{const r=t.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function u_(e,t,o,n){const r=Jl(t,o,n,!1),i=Jl(e,o,n,!0),l=d_(e,o),a=[];return r.forEach(s=>{(i.has(s)||l.has(s))&&a.push(s)}),a.forEach(s=>r.delete(s)),r}function gc(e,t){const{checkedKeys:o,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:l,leafOnly:a,checkStrategy:s,allowNotLoaded:c}=e;if(!l)return n!==void 0?{checkedKeys:r_(o,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:i_(o,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let u;r!==void 0?u=u_(r,o,t,c):n!==void 0?u=c_(n,o,t,c):u=Jl(o,t,c,!1);const f=s==="parent",h=s==="child"||a,p=u,g=new Set,b=Math.max.apply(null,Array.from(d.keys()));for(let m=b;m>=0;m-=1){const x=m===0,w=d.get(m);for(const C of w){if(C.isLeaf)continue;const{key:P,shallowLoaded:T}=C;if(h&&T&&C.children.forEach(E=>{!E.disabled&&!E.isLeaf&&E.shallowLoaded&&p.has(E.key)&&p.delete(E.key)}),C.disabled||!T)continue;let y=!0,B=!1,S=!0;for(const E of C.children){const j=E.key;if(!E.disabled){if(S&&(S=!1),p.has(j))B=!0;else if(g.has(j)){B=!0,y=!1;break}else if(y=!1,B)break}}y&&!S?(f&&C.children.forEach(E=>{!E.disabled&&p.has(E.key)&&p.delete(E.key)}),p.add(P)):B&&g.add(P),x&&h&&p.has(P)&&p.delete(P)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function Jl(e,t,o,n){const{treeNodeMap:r,getChildren:i}=t,l=new Set,a=new Set(e);return e.forEach(s=>{const c=r.get(s);c!==void 0&&vv(c,d=>{if(d.disabled)return hc.STOP;const{key:u}=d;if(!l.has(u)&&(l.add(u),a.add(u),n_(d.rawNode,i))){if(n)return hc.STOP;if(!o)throw new s_}})}),a}function f_(e,{includeGroup:t=!1,includeSelf:o=!0},n){var r;const i=n.treeNodeMap;let l=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const a={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return a.treeNode=null,a;for(;l;)!l.ignored&&(t||!l.isGroup)&&a.treeNodePath.push(l),l=l.parent;return a.treeNodePath.reverse(),o||a.treeNodePath.pop(),a.keyPath=a.treeNodePath.map(s=>s.key),a}function h_(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function p_(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r+1)%n]:r===o.length-1?null:o[r+1]}function gv(e,t,{loop:o=!1,includeDisabled:n=!1}={}){const r=t==="prev"?v_:p_,i={reverse:t==="prev"};let l=!1,a=null;function s(c){if(c!==null){if(c===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){a=e;return}}else if((!c.disabled||n)&&!c.ignored&&!c.isGroup){a=c;return}if(c.isGroup){const d=mc(c,i);d!==null?a=d:s(r(c,o))}else{const d=r(c,!1);if(d!==null)s(d);else{const u=g_(c);u!=null&&u.isGroup?s(r(u,o)):o&&s(r(c,!0))}}}}return s(e),a}function v_(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r-1+n)%n]:r===0?null:o[r-1]}function g_(e){return e.parent}function mc(e,t={}){const{reverse:o=!1}=t,{children:n}=e;if(n){const{length:r}=n,i=o?r-1:0,l=o?-1:r,a=o?-1:1;for(let s=i;s!==l;s+=a){const c=n[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=mc(c,t);if(d!==null)return d}else return c}}return null}const m_={getChild(){return this.ignored?null:mc(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return gv(this,"next",e)},getPrev(e={}){return gv(this,"prev",e)}};function b_(e,t){const o=t?new Set(t):void 0,n=[];function r(i){i.forEach(l=>{n.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||o===void 0||o.has(l.key))&&r(l.children)})}return r(e),n}function x_(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function mv(e,t,o,n,r,i=null,l=0){const a=[];return e.forEach((s,c)=>{var d;const u=Object.create(n);if(u.rawNode=s,u.siblings=a,u.level=l,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const f=r(s);Array.isArray(f)&&(u.children=mv(f,t,o,n,r,u,l+1))}a.push(u),t.set(u.key,u),o.has(l)||o.set(l,[]),(d=o.get(l))===null||d===void 0||d.push(u)}),a}function or(e,t={}){var o;const n=new Map,r=new Map,{getDisabled:i=o_,getIgnored:l=e_,getIsGroup:a=l_,getKey:s=QP}=t,c=(o=t.getChildren)!==null&&o!==void 0?o:JP,d=t.ignoreEmptyChildren?C=>{const P=c(C);return Array.isArray(P)?P.length?P:null:P}:c,u=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return a(this.rawNode)},get isLeaf(){return ZP(this.rawNode,d)},get shallowLoaded(){return t_(this.rawNode,d)},get ignored(){return l(this.rawNode)},contains(C){return x_(this,C)}},m_),f=mv(e,n,r,u,d);function h(C){if(C==null)return null;const P=n.get(C);return P&&!P.isGroup&&!P.ignored?P:null}function p(C){if(C==null)return null;const P=n.get(C);return P&&!P.ignored?P:null}function g(C,P){const T=p(C);return T?T.getPrev(P):null}function b(C,P){const T=p(C);return T?T.getNext(P):null}function m(C){const P=p(C);return P?P.getParent():null}function x(C){const P=p(C);return P?P.getChild():null}const w={treeNodes:f,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes(C){return b_(f,C)},getNode:h,getPrev:g,getNext:b,getParent:m,getChild:x,getFirstAvailableNode(){return h_(f)},getPath(C,P={}){return f_(C,P,w)},getCheckedKeys(C,P={}){const{cascade:T=!0,leafOnly:y=!1,checkStrategy:B="all",allowNotLoaded:S=!1}=P;return gc({checkedKeys:pc(C),indeterminateKeys:vc(C),cascade:T,leafOnly:y,checkStrategy:B,allowNotLoaded:S},w)},check(C,P,T={}){const{cascade:y=!0,leafOnly:B=!1,checkStrategy:S="all",allowNotLoaded:E=!1}=T;return gc({checkedKeys:pc(P),indeterminateKeys:vc(P),keysToCheck:C==null?[]:pv(C),cascade:y,leafOnly:B,checkStrategy:S,allowNotLoaded:E},w)},uncheck(C,P,T={}){const{cascade:y=!0,leafOnly:B=!1,checkStrategy:S="all",allowNotLoaded:E=!1}=T;return gc({checkedKeys:pc(P),indeterminateKeys:vc(P),keysToUncheck:C==null?[]:pv(C),cascade:y,leafOnly:B,checkStrategy:S,allowNotLoaded:E},w)},getNonLeafKeys(C={}){return YP(f,C)}};return w}const y_={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function C_(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},y_),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:n})}const bc={name:"Empty",common:xt,self:C_},w_=I("empty",` + display: flex; + flex-direction: column; + align-items: center; + font-size: var(--n-font-size); +`,[H("icon",` + width: var(--n-icon-size); + height: var(--n-icon-size); + font-size: var(--n-icon-size); + line-height: var(--n-icon-size); + color: var(--n-icon-color); + transition: + color .3s var(--n-bezier); + `,[L("+",[H("description",` + margin-top: 8px; + `)])]),H("description",` + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),H("extra",` + text-align: center; + transition: color .3s var(--n-bezier); + margin-top: 12px; + color: var(--n-extra-text-color); + `)]),S_=Object.assign(Object.assign({},Ie.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),bv=ve({name:"Empty",props:S_,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:n}=Je(e),r=Ie("Empty","-empty",w_,bc,e,t),{localeRef:i}=Pi("Empty"),l=F(()=>{var d,u,f;return(d=e.description)!==null&&d!==void 0?d:(f=(u=n==null?void 0:n.value)===null||u===void 0?void 0:u.Empty)===null||f===void 0?void 0:f.description}),a=F(()=>{var d,u;return((u=(d=n==null?void 0:n.value)===null||d===void 0?void 0:d.Empty)===null||u===void 0?void 0:u.renderIcon)||(()=>v(IP,null))}),s=F(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:u},self:{[me("iconSize",d)]:f,[me("fontSize",d)]:h,textColor:p,iconColor:g,extraTextColor:b}}=r.value;return{"--n-icon-size":f,"--n-font-size":h,"--n-bezier":u,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":b}}),c=o?gt("empty",F(()=>{let d="";const{size:u}=e;return d+=u[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:a,localizedDescription:F(()=>l.value||i.value.description),cssVars:o?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),v("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?v("div",{class:`${t}-empty__icon`},e.icon?e.icon():v(Tt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?v("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?v("div",{class:`${t}-empty__extra`},e.extra()):null)}}),R_={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function P_(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:l,textColorDisabled:a,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeTiny:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,fontSizeHuge:g,heightTiny:b,heightSmall:m,heightMedium:x,heightLarge:w,heightHuge:C}=e;return Object.assign(Object.assign({},R_),{optionFontSizeTiny:u,optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:b,optionHeightSmall:m,optionHeightMedium:x,optionHeightLarge:w,optionHeightHuge:C,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:l,optionTextColorDisabled:a,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})}const xc={name:"InternalSelectMenu",common:xt,peers:{Scrollbar:Er,Empty:bc},self:P_},xv=ve({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=$e(gs);return{labelField:o,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:n,tmNode:{rawNode:r}}=this,i=n==null?void 0:n(r),l=t?t(r,!1):Lt(r[this.labelField],r,!1),a=v("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),l);return r.render?r.render({node:a,option:r}):o?o({node:a,option:r,selected:!1}):a}});function __(e,t){return v(Yo,{name:"fade-in-scale-up-transition"},{default:()=>e?v(Tt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>v($P)}):null})}const yv=ve({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:n,valueSetRef:r,renderLabelRef:i,renderOptionRef:l,labelFieldRef:a,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:u,handleOptionMouseEnter:f}=$e(gs),h=Ze(()=>{const{value:m}=o;return m?e.tmNode.key===m.key:!1});function p(m){const{tmNode:x}=e;x.disabled||u(m,x)}function g(m){const{tmNode:x}=e;x.disabled||f(m,x)}function b(m){const{tmNode:x}=e,{value:w}=h;x.disabled||w||f(m,x)}return{multiple:n,isGrouped:Ze(()=>{const{tmNode:m}=e,{parent:x}=m;return x&&x.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:h,isSelected:Ze(()=>{const{value:m}=t,{value:x}=n;if(m===null)return!1;const w=e.tmNode.rawNode[s.value];if(x){const{value:C}=r;return C.has(w)}else return m===w}),labelField:a,renderLabel:i,renderOption:l,handleMouseMove:b,handleMouseEnter:g,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:i,nodeProps:l,renderOption:a,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:u}=this,f=__(o,e),h=s?[s(t,o),i&&f]:[Lt(t[this.labelField],t,o),i&&f],p=l==null?void 0:l(t),g=v("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:mi([c,p==null?void 0:p.onClick]),onMouseenter:mi([d,p==null?void 0:p.onMouseenter]),onMousemove:mi([u,p==null?void 0:p.onMousemove])}),v("div",{class:`${e}-base-select-option__content`},h));return t.render?t.render({node:g,option:t,selected:o}):a?a({node:g,option:t,selected:o}):g}}),{cubicBezierEaseIn:Cv,cubicBezierEaseOut:wv}=Qn;function Ql({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[L("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Cv}, transform ${t} ${Cv} ${r&&`,${r}`}`}),L("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${wv}, transform ${t} ${wv} ${r&&`,${r}`}`}),L("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),L("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const k_=I("base-select-menu",` + line-height: 1.5; + outline: none; + z-index: 0; + position: relative; + border-radius: var(--n-border-radius); + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + background-color: var(--n-color); +`,[I("scrollbar",` + max-height: var(--n-height); + `),I("virtual-list",` + max-height: var(--n-height); + `),I("base-select-option",` + min-height: var(--n-option-height); + font-size: var(--n-option-font-size); + display: flex; + align-items: center; + `,[H("content",` + z-index: 1; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + `)]),I("base-select-group-header",` + min-height: var(--n-option-height); + font-size: .93em; + display: flex; + align-items: center; + `),I("base-select-menu-option-wrapper",` + position: relative; + width: 100%; + `),H("loading, empty",` + display: flex; + padding: 12px 32px; + flex: 1; + justify-content: center; + `),H("loading",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + `),H("header",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-bottom: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),H("action",` + padding: 8px var(--n-option-padding-left); + font-size: var(--n-option-font-size); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + border-top: 1px solid var(--n-action-divider-color); + color: var(--n-action-text-color); + `),I("base-select-group-header",` + position: relative; + cursor: default; + padding: var(--n-option-padding); + color: var(--n-group-header-text-color); + `),I("base-select-option",` + cursor: pointer; + position: relative; + padding: var(--n-option-padding); + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + box-sizing: border-box; + color: var(--n-option-text-color); + opacity: 1; + `,[Y("show-checkmark",` + padding-right: calc(var(--n-option-padding-right) + 20px); + `),L("&::before",` + content: ""; + position: absolute; + left: 4px; + right: 4px; + top: 0; + bottom: 0; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),L("&:active",` + color: var(--n-option-text-color-pressed); + `),Y("grouped",` + padding-left: calc(var(--n-option-padding-left) * 1.5); + `),Y("pending",[L("&::before",` + background-color: var(--n-option-color-pending); + `)]),Y("selected",` + color: var(--n-option-text-color-active); + `,[L("&::before",` + background-color: var(--n-option-color-active); + `),Y("pending",[L("&::before",` + background-color: var(--n-option-color-active-pending); + `)])]),Y("disabled",` + cursor: not-allowed; + `,[Ye("selected",` + color: var(--n-option-text-color-disabled); + `),Y("selected",` + opacity: var(--n-option-opacity-disabled); + `)]),H("check",` + font-size: 16px; + position: absolute; + right: calc(var(--n-option-padding-right) - 4px); + top: calc(50% - 7px); + color: var(--n-option-check-color); + transition: color .3s var(--n-bezier); + `,[Ql({enterScale:"0.5"})])])]),Sv=ve({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Je(e),n=qt("InternalSelectMenu",o,t),r=Ie("InternalSelectMenu","-internal-select-menu",k_,xc,e,Se(e,"clsPrefix")),i=V(null),l=V(null),a=V(null),s=F(()=>e.treeMate.getFlattenedNodes()),c=F(()=>a_(s.value)),d=V(null);function u(){const{treeMate:O}=e;let A=null;const{value:Q}=e;Q===null?A=O.getFirstAvailableNode():(e.multiple?A=O.getNode((Q||[])[(Q||[]).length-1]):A=O.getNode(Q),(!A||A.disabled)&&(A=O.getFirstAvailableNode())),W(A||null)}function f(){const{value:O}=d;O&&!e.treeMate.getNode(O.key)&&(d.value=null)}let h;st(()=>e.show,O=>{O?h=st(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?u():f(),so(D)):f()},{immediate:!0}):h==null||h()},{immediate:!0}),Ft(()=>{h==null||h()});const p=F(()=>mn(r.value.self[me("optionHeight",e.size)])),g=F(()=>no(r.value.self[me("padding",e.size)])),b=F(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),m=F(()=>{const O=s.value;return O&&O.length===0});function x(O){const{onToggle:A}=e;A&&A(O)}function w(O){const{onScroll:A}=e;A&&A(O)}function C(O){var A;(A=a.value)===null||A===void 0||A.sync(),w(O)}function P(){var O;(O=a.value)===null||O===void 0||O.sync()}function T(){const{value:O}=d;return O||null}function y(O,A){A.disabled||W(A,!1)}function B(O,A){A.disabled||x(A)}function S(O){var A;uo(O,"action")||(A=e.onKeyup)===null||A===void 0||A.call(e,O)}function E(O){var A;uo(O,"action")||(A=e.onKeydown)===null||A===void 0||A.call(e,O)}function j(O){var A;(A=e.onMousedown)===null||A===void 0||A.call(e,O),!e.focusable&&O.preventDefault()}function _(){const{value:O}=d;O&&W(O.getNext({loop:!0}),!0)}function M(){const{value:O}=d;O&&W(O.getPrev({loop:!0}),!0)}function W(O,A=!1){d.value=O,A&&D()}function D(){var O,A;const Q=d.value;if(!Q)return;const he=c.value(Q.key);he!==null&&(e.virtualScroll?(O=l.value)===null||O===void 0||O.scrollTo({index:he}):(A=a.value)===null||A===void 0||A.scrollTo({index:he,elSize:p.value}))}function Z(O){var A,Q;!((A=i.value)===null||A===void 0)&&A.contains(O.target)&&((Q=e.onFocus)===null||Q===void 0||Q.call(e,O))}function U(O){var A,Q;!((A=i.value)===null||A===void 0)&&A.contains(O.relatedTarget)||(Q=e.onBlur)===null||Q===void 0||Q.call(e,O)}tt(gs,{handleOptionMouseEnter:y,handleOptionClick:B,valueSetRef:b,pendingTmNodeRef:d,nodePropsRef:Se(e,"nodeProps"),showCheckmarkRef:Se(e,"showCheckmark"),multipleRef:Se(e,"multiple"),valueRef:Se(e,"value"),renderLabelRef:Se(e,"renderLabel"),renderOptionRef:Se(e,"renderOption"),labelFieldRef:Se(e,"labelField"),valueFieldRef:Se(e,"valueField")}),tt(uh,i),Bt(()=>{const{value:O}=a;O&&O.sync()});const J=F(()=>{const{size:O}=e,{common:{cubicBezierEaseInOut:A},self:{height:Q,borderRadius:he,color:we,groupHeaderTextColor:X,actionDividerColor:de,optionTextColorPressed:R,optionTextColor:ae,optionTextColorDisabled:_e,optionTextColorActive:k,optionOpacityDisabled:$,optionCheckColor:K,actionTextColor:ie,optionColorPending:le,optionColorActive:re,loadingColor:xe,loadingSize:ne,optionColorActivePending:te,[me("optionFontSize",O)]:oe,[me("optionHeight",O)]:ye,[me("optionPadding",O)]:be}}=r.value;return{"--n-height":Q,"--n-action-divider-color":de,"--n-action-text-color":ie,"--n-bezier":A,"--n-border-radius":he,"--n-color":we,"--n-option-font-size":oe,"--n-group-header-text-color":X,"--n-option-check-color":K,"--n-option-color-pending":le,"--n-option-color-active":re,"--n-option-color-active-pending":te,"--n-option-height":ye,"--n-option-opacity-disabled":$,"--n-option-text-color":ae,"--n-option-text-color-active":k,"--n-option-text-color-disabled":_e,"--n-option-text-color-pressed":R,"--n-option-padding":be,"--n-option-padding-left":no(be,"left"),"--n-option-padding-right":no(be,"right"),"--n-loading-color":xe,"--n-loading-size":ne}}),{inlineThemeDisabled:pe}=e,fe=pe?gt("internal-select-menu",F(()=>e.size[0]),J,e):void 0,N={selfRef:i,next:_,prev:M,getPendingTmNode:T};return Kh(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:n,virtualListRef:l,scrollbarRef:a,itemSize:p,padding:g,flattenedNodes:s,empty:m,virtualListContainer(){const{value:O}=l;return O==null?void 0:O.listElRef},virtualListContent(){const{value:O}=l;return O==null?void 0:O.itemsElRef},doScroll:w,handleFocusin:Z,handleFocusout:U,handleKeyUp:S,handleKeyDown:E,handleMouseDown:j,handleVirtualListResize:P,handleVirtualListScroll:C,cssVars:pe?void 0:J,themeClass:fe==null?void 0:fe.themeClass,onRender:fe==null?void 0:fe.onRender},N)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:n,themeClass:r,onRender:i}=this;return i==null||i(),v("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,r,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},pt(e.header,l=>l&&v("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},l)),this.loading?v("div",{class:`${o}-base-select-menu__loading`},v(ki,{clsPrefix:o,strokeWidth:20})):this.empty?v("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},Mo(e.empty,()=>[v(bv,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty,size:this.size})])):v(tr,{ref:"scrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?v(Is,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:l})=>l.isGroup?v(xv,{key:l.key,clsPrefix:o,tmNode:l}):l.ignored?null:v(yv,{clsPrefix:o,key:l.key,tmNode:l})}):v("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(l=>l.isGroup?v(xv,{key:l.key,clsPrefix:o,tmNode:l}):v(yv,{clsPrefix:o,key:l.key,tmNode:l})))}),pt(e.action,l=>l&&[v("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},l),v(NP,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),z_={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function T_(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:l}=e;return Object.assign(Object.assign({},z_),{fontSize:i,borderRadius:r,color:o,dividerColor:l,textColor:n,boxShadow:t})}const Fr={name:"Popover",common:xt,peers:{Scrollbar:Er},self:T_},yc={top:"bottom",bottom:"top",left:"right",right:"left"},$t="var(--n-arrow-height) * 1.414",$_=L([I("popover",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + position: relative; + font-size: var(--n-font-size); + color: var(--n-text-color); + box-shadow: var(--n-box-shadow); + word-break: break-word; + `,[L(">",[I("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Ye("raw",` + background-color: var(--n-color); + border-radius: var(--n-border-radius); + `,[Ye("scrollable",[Ye("show-header-or-footer","padding: var(--n-padding);")])]),H("header",` + padding: var(--n-padding); + border-bottom: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),H("footer",` + padding: var(--n-padding); + border-top: 1px solid var(--n-divider-color); + transition: border-color .3s var(--n-bezier); + `),Y("scrollable, show-header-or-footer",[H("content",` + padding: var(--n-padding); + `)])]),I("popover-shared",` + transform-origin: inherit; + `,[I("popover-arrow-wrapper",` + position: absolute; + overflow: hidden; + pointer-events: none; + `,[I("popover-arrow",` + transition: background-color .3s var(--n-bezier); + position: absolute; + display: block; + width: calc(${$t}); + height: calc(${$t}); + box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); + transform: rotate(45deg); + background-color: var(--n-color); + pointer-events: all; + `)]),L("&.popover-transition-enter-from, &.popover-transition-leave-to",` + opacity: 0; + transform: scale(.85); + `),L("&.popover-transition-enter-to, &.popover-transition-leave-from",` + transform: scale(1); + opacity: 1; + `),L("&.popover-transition-enter-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-out), + transform .15s var(--n-bezier-ease-out); + `),L("&.popover-transition-leave-active",` + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + opacity .15s var(--n-bezier-ease-in), + transform .15s var(--n-bezier-ease-in); + `)]),ho("top-start",` + top: calc(${$t} / -2); + left: calc(${on("top-start")} - var(--v-offset-left)); + `),ho("top",` + top: calc(${$t} / -2); + transform: translateX(calc(${$t} / -2)) rotate(45deg); + left: 50%; + `),ho("top-end",` + top: calc(${$t} / -2); + right: calc(${on("top-end")} + var(--v-offset-left)); + `),ho("bottom-start",` + bottom: calc(${$t} / -2); + left: calc(${on("bottom-start")} - var(--v-offset-left)); + `),ho("bottom",` + bottom: calc(${$t} / -2); + transform: translateX(calc(${$t} / -2)) rotate(45deg); + left: 50%; + `),ho("bottom-end",` + bottom: calc(${$t} / -2); + right: calc(${on("bottom-end")} + var(--v-offset-left)); + `),ho("left-start",` + left: calc(${$t} / -2); + top: calc(${on("left-start")} - var(--v-offset-top)); + `),ho("left",` + left: calc(${$t} / -2); + transform: translateY(calc(${$t} / -2)) rotate(45deg); + top: 50%; + `),ho("left-end",` + left: calc(${$t} / -2); + bottom: calc(${on("left-end")} + var(--v-offset-top)); + `),ho("right-start",` + right: calc(${$t} / -2); + top: calc(${on("right-start")} - var(--v-offset-top)); + `),ho("right",` + right: calc(${$t} / -2); + transform: translateY(calc(${$t} / -2)) rotate(45deg); + top: 50%; + `),ho("right-end",` + right: calc(${$t} / -2); + bottom: calc(${on("right-end")} + var(--v-offset-top)); + `),...RP({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),n=o?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",a=`calc((${`var(--v-target-${n}, 0px)`} - ${$t}) / 2)`,s=on(r);return L(`[v-placement="${r}"] >`,[I("popover-shared",[Y("center-arrow",[I("popover-arrow",`${t}: calc(max(${a}, ${s}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function on(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function ho(e,t){const o=e.split("-")[0],n=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return L(`[v-placement="${e}"] >`,[I("popover-shared",` + margin-${yc[o]}: var(--n-space); + `,[Y("show-arrow",` + margin-${yc[o]}: var(--n-space-arrow); + `),Y("overlap",` + margin: 0; + `),Jx("popover-arrow-wrapper",` + right: 0; + left: 0; + top: 0; + bottom: 0; + ${o}: 100%; + ${yc[o]}: auto; + ${n} + `,[I("popover-arrow",t)])])])}const Rv=Object.assign(Object.assign({},Ie.props),{to:Io.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function Pv({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:n,clsPrefix:r}){return v("div",{key:"__popover-arrow__",style:n,class:[`${r}-popover-arrow-wrapper`,o]},v("div",{class:[`${r}-popover-arrow`,e],style:t}))}const E_=ve({name:"PopoverBody",inheritAttrs:!1,props:Rv,setup(e,{slots:t,attrs:o}){const{namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedRtlRef:l}=Je(e),a=Ie("Popover","-popover",$_,Fr,e,r),s=qt("Popover",l,r),c=V(null),d=$e("NPopover"),u=V(null),f=V(e.show),h=V(!1);Mt(()=>{const{show:S}=e;S&&!xC()&&!e.internalDeactivateImmediately&&(h.value=!0)});const p=F(()=>{const{trigger:S,onClickoutside:E}=e,j=[],{positionManuallyRef:{value:_}}=d;return _||(S==="click"&&!E&&j.push([Al,T,void 0,{capture:!0}]),S==="hover"&&j.push([zy,P])),E&&j.push([Al,T,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&h.value)&&j.push([ef,e.show]),j}),g=F(()=>{const{common:{cubicBezierEaseInOut:S,cubicBezierEaseIn:E,cubicBezierEaseOut:j},self:{space:_,spaceArrow:M,padding:W,fontSize:D,textColor:Z,dividerColor:U,color:J,boxShadow:pe,borderRadius:fe,arrowHeight:N,arrowOffset:O,arrowOffsetVertical:A}}=a.value;return{"--n-box-shadow":pe,"--n-bezier":S,"--n-bezier-ease-in":E,"--n-bezier-ease-out":j,"--n-font-size":D,"--n-text-color":Z,"--n-color":J,"--n-divider-color":U,"--n-border-radius":fe,"--n-arrow-height":N,"--n-arrow-offset":O,"--n-arrow-offset-vertical":A,"--n-padding":W,"--n-space":_,"--n-space-arrow":M}}),b=F(()=>{const S=e.width==="trigger"?void 0:zt(e.width),E=[];S&&E.push({width:S});const{maxWidth:j,minWidth:_}=e;return j&&E.push({maxWidth:zt(j)}),_&&E.push({maxWidth:zt(_)}),i||E.push(g.value),E}),m=i?gt("popover",void 0,g,e):void 0;d.setBodyInstance({syncPosition:x}),Ft(()=>{d.setBodyInstance(null)}),st(Se(e,"show"),S=>{e.animated||(S?f.value=!0:f.value=!1)});function x(){var S;(S=c.value)===null||S===void 0||S.syncPosition()}function w(S){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&d.handleMouseEnter(S)}function C(S){e.trigger==="hover"&&e.keepAliveOnHover&&d.handleMouseLeave(S)}function P(S){e.trigger==="hover"&&!y().contains(ci(S))&&d.handleMouseMoveOutside(S)}function T(S){(e.trigger==="click"&&!y().contains(ci(S))||e.onClickoutside)&&d.handleClickOutside(S)}function y(){return d.getTriggerElement()}tt(Fl,u),tt(ms,null),tt(bs,null);function B(){if(m==null||m.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&h.value))return null;let E;const j=d.internalRenderBodyRef.value,{value:_}=r;if(j)E=j([`${_}-popover-shared`,(s==null?void 0:s.value)&&`${_}-popover--rtl`,m==null?void 0:m.themeClass.value,e.overlap&&`${_}-popover-shared--overlap`,e.showArrow&&`${_}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${_}-popover-shared--center-arrow`],u,b.value,w,C);else{const{value:M}=d.extraClassRef,{internalTrapFocus:W}=e,D=!Bs(t.header)||!Bs(t.footer),Z=()=>{var U,J;const pe=D?v(it,null,pt(t.header,O=>O?v("div",{class:[`${_}-popover__header`,e.headerClass],style:e.headerStyle},O):null),pt(t.default,O=>O?v("div",{class:[`${_}-popover__content`,e.contentClass],style:e.contentStyle},t):null),pt(t.footer,O=>O?v("div",{class:[`${_}-popover__footer`,e.footerClass],style:e.footerStyle},O):null)):e.scrollable?(U=t.default)===null||U===void 0?void 0:U.call(t):v("div",{class:[`${_}-popover__content`,e.contentClass],style:e.contentStyle},t),fe=e.scrollable?v(hv,{themeOverrides:a.value.peerOverrides.Scrollbar,theme:a.value.peers.Scrollbar,contentClass:D?void 0:`${_}-popover__content ${(J=e.contentClass)!==null&&J!==void 0?J:""}`,contentStyle:D?void 0:e.contentStyle},{default:()=>pe}):pe,N=e.showArrow?Pv({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:_}):null;return[fe,N]};E=v("div",xo({class:[`${_}-popover`,`${_}-popover-shared`,(s==null?void 0:s.value)&&`${_}-popover--rtl`,m==null?void 0:m.themeClass.value,M.map(U=>`${_}-${U}`),{[`${_}-popover--scrollable`]:e.scrollable,[`${_}-popover--show-header-or-footer`]:D,[`${_}-popover--raw`]:e.raw,[`${_}-popover-shared--overlap`]:e.overlap,[`${_}-popover-shared--show-arrow`]:e.showArrow,[`${_}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:b.value,onKeydown:d.handleKeydown,onMouseenter:w,onMouseleave:C},o),W?v(gC,{active:e.show,autoFocus:!0},{default:Z}):Z())}return bo(E,p.value)}return{displayed:h,namespace:n,isMounted:d.isMountedRef,zIndex:d.zIndexRef,followerRef:c,adjustedTo:Io(e),followerEnabled:f,renderContentNode:B}},render(){return v(zs,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Io.tdkey},{default:()=>this.animated?v(Yo,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),F_=Object.keys(Rv),A_={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function I_(e,t,o){A_[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[n],i=o[n];r?e.props[n]=(...l)=>{r(...l),i(...l)}:e.props[n]=i})}const Ar={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Io.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},O_=Object.assign(Object.assign(Object.assign({},Ie.props),Ar),{internalOnAfterLeave:Function,internalRenderBody:Function}),zi=ve({name:"Popover",inheritAttrs:!1,props:O_,slots:Object,__popover__:!0,setup(e){const t=El(),o=V(null),n=F(()=>e.show),r=V(e.defaultShow),i=It(n,r),l=Ze(()=>e.disabled?!1:i.value),a=()=>{if(e.disabled)return!0;const{getDisabled:D}=e;return!!(D!=null&&D())},s=()=>a()?!1:i.value,c=vs(e,["arrow","showArrow"]),d=F(()=>e.overlap?!1:c.value);let u=null;const f=V(null),h=V(null),p=Ze(()=>e.x!==void 0&&e.y!==void 0);function g(D){const{"onUpdate:show":Z,onUpdateShow:U,onShow:J,onHide:pe}=e;r.value=D,Z&&ge(Z,D),U&&ge(U,D),D&&J&&ge(J,!0),D&&pe&&ge(pe,!1)}function b(){u&&u.syncPosition()}function m(){const{value:D}=f;D&&(window.clearTimeout(D),f.value=null)}function x(){const{value:D}=h;D&&(window.clearTimeout(D),h.value=null)}function w(){const D=a();if(e.trigger==="focus"&&!D){if(s())return;g(!0)}}function C(){const D=a();if(e.trigger==="focus"&&!D){if(!s())return;g(!1)}}function P(){const D=a();if(e.trigger==="hover"&&!D){if(x(),f.value!==null||s())return;const Z=()=>{g(!0),f.value=null},{delay:U}=e;U===0?Z():f.value=window.setTimeout(Z,U)}}function T(){const D=a();if(e.trigger==="hover"&&!D){if(m(),h.value!==null||!s())return;const Z=()=>{g(!1),h.value=null},{duration:U}=e;U===0?Z():h.value=window.setTimeout(Z,U)}}function y(){T()}function B(D){var Z;s()&&(e.trigger==="click"&&(m(),x(),g(!1)),(Z=e.onClickoutside)===null||Z===void 0||Z.call(e,D))}function S(){if(e.trigger==="click"&&!a()){m(),x();const D=!s();g(D)}}function E(D){e.internalTrapFocus&&D.key==="Escape"&&(m(),x(),g(!1))}function j(D){r.value=D}function _(){var D;return(D=o.value)===null||D===void 0?void 0:D.targetRef}function M(D){u=D}return tt("NPopover",{getTriggerElement:_,handleKeydown:E,handleMouseEnter:P,handleMouseLeave:T,handleClickOutside:B,handleMouseMoveOutside:y,setBodyInstance:M,positionManuallyRef:p,isMountedRef:t,zIndexRef:Se(e,"zIndex"),extraClassRef:Se(e,"internalExtraClass"),internalRenderBodyRef:Se(e,"internalRenderBody")}),Mt(()=>{i.value&&a()&&g(!1)}),{binderInstRef:o,positionManually:p,mergedShowConsideringDisabledProp:l,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:s,setShow:j,handleClick:S,handleMouseEnter:P,handleMouseLeave:T,handleFocus:w,handleBlur:C,syncPosition:b}},render(){var e;const{positionManually:t,$slots:o}=this;let n,r=!1;if(!t&&(n=RC(o,"trigger"),n)){n=qo(n),n=n.type===Zr?v("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:l}=this,a=[i,...l],s={onBlur:c=>{a.forEach(d=>{d.onBlur(c)})},onFocus:c=>{a.forEach(d=>{d.onFocus(c)})},onClick:c=>{a.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{a.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{a.forEach(d=>{d.onMouseleave(c)})}};I_(n,l?"nested":t?"manual":this.trigger,s)}}return v(Ss,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?bo(v("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0}}),[[gh,{enabled:i,zIndex:this.zIndex}]]):null,t?null:v(Rs,null,{default:()=>n}),v(E_,zr(this.$props,F_,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var l,a;return(a=(l=this.$slots).default)===null||a===void 0?void 0:a.call(l)},header:()=>{var l,a;return(a=(l=this.$slots).header)===null||a===void 0?void 0:a.call(l)},footer:()=>{var l,a;return(a=(l=this.$slots).footer)===null||a===void 0?void 0:a.call(l)}})]}})}}),M_={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};function B_(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:u,tagColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:b,fontSizeMini:m,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:C,heightMini:P,heightTiny:T,heightSmall:y,heightMedium:B,closeColorHover:S,closeColorPressed:E,buttonColor2Hover:j,buttonColor2Pressed:_,fontWeightStrong:M}=e;return Object.assign(Object.assign({},M_),{closeBorderRadius:b,heightTiny:P,heightSmall:T,heightMedium:y,heightLarge:B,borderRadius:b,opacityDisabled:u,fontSizeTiny:m,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:C,fontWeightStrong:M,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:j,colorPressedCheckable:_,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:S,closeColorPressed:E,borderPrimary:`1px solid ${Le(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Le(r,{alpha:.12}),colorBorderedPrimary:Le(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:Le(r,{alpha:.12}),closeColorPressedPrimary:Le(r,{alpha:.18}),borderInfo:`1px solid ${Le(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Le(i,{alpha:.12}),colorBorderedInfo:Le(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Le(i,{alpha:.12}),closeColorPressedInfo:Le(i,{alpha:.18}),borderSuccess:`1px solid ${Le(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:Le(l,{alpha:.12}),colorBorderedSuccess:Le(l,{alpha:.1}),closeIconColorSuccess:l,closeIconColorHoverSuccess:l,closeIconColorPressedSuccess:l,closeColorHoverSuccess:Le(l,{alpha:.12}),closeColorPressedSuccess:Le(l,{alpha:.18}),borderWarning:`1px solid ${Le(a,{alpha:.35})}`,textColorWarning:a,colorWarning:Le(a,{alpha:.15}),colorBorderedWarning:Le(a,{alpha:.12}),closeIconColorWarning:a,closeIconColorHoverWarning:a,closeIconColorPressedWarning:a,closeColorHoverWarning:Le(a,{alpha:.12}),closeColorPressedWarning:Le(a,{alpha:.18}),borderError:`1px solid ${Le(s,{alpha:.23})}`,textColorError:s,colorError:Le(s,{alpha:.1}),colorBorderedError:Le(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:Le(s,{alpha:.12}),closeColorPressedError:Le(s,{alpha:.18})})}const H_={common:xt,self:B_},D_={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},L_=I("tag",` + --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); + white-space: nowrap; + position: relative; + box-sizing: border-box; + cursor: default; + display: inline-flex; + align-items: center; + flex-wrap: nowrap; + padding: var(--n-padding); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + opacity .3s var(--n-bezier); + line-height: 1; + height: var(--n-height); + font-size: var(--n-font-size); +`,[Y("strong",` + font-weight: var(--n-font-weight-strong); + `),H("border",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; + border: var(--n-border); + transition: border-color .3s var(--n-bezier); + `),H("icon",` + display: flex; + margin: 0 4px 0 0; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + font-size: var(--n-avatar-size-override); + `),H("avatar",` + display: flex; + margin: 0 6px 0 0; + `),H("close",` + margin: var(--n-close-margin); + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `),Y("round",` + padding: 0 calc(var(--n-height) / 3); + border-radius: calc(var(--n-height) / 2); + `,[H("icon",` + margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); + `),H("avatar",` + margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); + `),Y("closable",` + padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); + `)]),Y("icon, avatar",[Y("round",` + padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); + `)]),Y("disabled",` + cursor: not-allowed !important; + opacity: var(--n-opacity-disabled); + `),Y("checkable",` + cursor: pointer; + box-shadow: none; + color: var(--n-text-color-checkable); + background-color: var(--n-color-checkable); + `,[Ye("disabled",[L("&:hover","background-color: var(--n-color-hover-checkable);",[Ye("checked","color: var(--n-text-color-hover-checkable);")]),L("&:active","background-color: var(--n-color-pressed-checkable);",[Ye("checked","color: var(--n-text-color-pressed-checkable);")])]),Y("checked",` + color: var(--n-text-color-checked); + background-color: var(--n-color-checked); + `,[Ye("disabled",[L("&:hover","background-color: var(--n-color-checked-hover);"),L("&:active","background-color: var(--n-color-checked-pressed);")])])])]),N_=Object.assign(Object.assign(Object.assign({},Ie.props),D_),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),_v="n-tag",ea=ve({name:"Tag",props:N_,slots:Object,setup(e){const t=V(null),{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=Je(e),l=Ie("Tag","-tag",L_,H_,e,n);tt(_v,{roundRef:Se(e,"round")});function a(){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":b}=e;g&&g(!h),b&&b(!h),p&&p(!h)}}function s(h){if(e.triggerClickOnClose||h.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&ge(p,h)}}const c={setTextContent(h){const{value:p}=t;p&&(p.textContent=h)}},d=qt("Tag",i,n),u=F(()=>{const{type:h,size:p,color:{color:g,textColor:b}={}}=e,{common:{cubicBezierEaseInOut:m},self:{padding:x,closeMargin:w,borderRadius:C,opacityDisabled:P,textColorCheckable:T,textColorHoverCheckable:y,textColorPressedCheckable:B,textColorChecked:S,colorCheckable:E,colorHoverCheckable:j,colorPressedCheckable:_,colorChecked:M,colorCheckedHover:W,colorCheckedPressed:D,closeBorderRadius:Z,fontWeightStrong:U,[me("colorBordered",h)]:J,[me("closeSize",p)]:pe,[me("closeIconSize",p)]:fe,[me("fontSize",p)]:N,[me("height",p)]:O,[me("color",h)]:A,[me("textColor",h)]:Q,[me("border",h)]:he,[me("closeIconColor",h)]:we,[me("closeIconColorHover",h)]:X,[me("closeIconColorPressed",h)]:de,[me("closeColorHover",h)]:R,[me("closeColorPressed",h)]:ae}}=l.value,_e=no(w);return{"--n-font-weight-strong":U,"--n-avatar-size-override":`calc(${O} - 8px)`,"--n-bezier":m,"--n-border-radius":C,"--n-border":he,"--n-close-icon-size":fe,"--n-close-color-pressed":ae,"--n-close-color-hover":R,"--n-close-border-radius":Z,"--n-close-icon-color":we,"--n-close-icon-color-hover":X,"--n-close-icon-color-pressed":de,"--n-close-icon-color-disabled":we,"--n-close-margin-top":_e.top,"--n-close-margin-right":_e.right,"--n-close-margin-bottom":_e.bottom,"--n-close-margin-left":_e.left,"--n-close-size":pe,"--n-color":g||(o.value?J:A),"--n-color-checkable":E,"--n-color-checked":M,"--n-color-checked-hover":W,"--n-color-checked-pressed":D,"--n-color-hover-checkable":j,"--n-color-pressed-checkable":_,"--n-font-size":N,"--n-height":O,"--n-opacity-disabled":P,"--n-padding":x,"--n-text-color":b||Q,"--n-text-color-checkable":T,"--n-text-color-checked":S,"--n-text-color-hover-checkable":y,"--n-text-color-pressed-checkable":B}}),f=r?gt("tag",F(()=>{let h="";const{type:p,size:g,color:{color:b,textColor:m}={}}=e;return h+=p[0],h+=g[0],b&&(h+=`a${gi(b)}`),m&&(h+=`b${gi(m)}`),o.value&&(h+="c"),h}),u,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:n,contentRef:t,mergedBordered:o,handleClick:a,handleCloseClick:s,cssVars:r?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:n,closable:r,color:{borderColor:i}={},round:l,onRender:a,$slots:s}=this;a==null||a();const c=pt(s.avatar,u=>u&&v("div",{class:`${o}-tag__avatar`},u)),d=pt(s.icon,u=>u&&v("div",{class:`${o}-tag__icon`},u));return v("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:n,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:l,[`${o}-tag--avatar`]:c,[`${o}-tag--icon`]:d,[`${o}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,v("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?v(sv,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:l,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?v("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),kv=ve({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return v(ki,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?v(uc,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>v(Tt,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>Mo(t.default,()=>[v(nv,null)])})}):null})}}}),j_={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function W_(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:u,borderColor:f,iconColor:h,iconColorDisabled:p,clearColor:g,clearColorHover:b,clearColorPressed:m,placeholderColor:x,placeholderColorDisabled:w,fontSizeTiny:C,fontSizeSmall:P,fontSizeMedium:T,fontSizeLarge:y,heightTiny:B,heightSmall:S,heightMedium:E,heightLarge:j,fontWeight:_}=e;return Object.assign(Object.assign({},j_),{fontSizeTiny:C,fontSizeSmall:P,fontSizeMedium:T,fontSizeLarge:y,heightTiny:B,heightSmall:S,heightMedium:E,heightLarge:j,borderRadius:t,fontWeight:_,textColor:o,textColorDisabled:n,placeholderColor:x,placeholderColorDisabled:w,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${f}`,borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Le(l,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Le(l,{alpha:.2})}`,caretColor:l,arrowColor:h,arrowColorDisabled:p,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Le(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Le(s,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Le(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Le(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:g,clearColorHover:b,clearColorPressed:m})}const zv={name:"InternalSelection",common:xt,peers:{Popover:Fr},self:W_},V_=L([I("base-selection",` + --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); + --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); + position: relative; + z-index: auto; + box-shadow: none; + width: 100%; + max-width: 100%; + display: inline-block; + vertical-align: bottom; + border-radius: var(--n-border-radius); + min-height: var(--n-height); + line-height: 1.5; + font-size: var(--n-font-size); + `,[I("base-loading",` + color: var(--n-loading-color); + `),I("base-selection-tags","min-height: var(--n-height);"),H("border, state-border",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border: var(--n-border); + border-radius: inherit; + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),H("state-border",` + z-index: 1; + border-color: #0000; + `),I("base-suffix",` + cursor: pointer; + position: absolute; + top: 50%; + transform: translateY(-50%); + right: 10px; + `,[H("arrow",` + font-size: var(--n-arrow-size); + color: var(--n-arrow-color); + transition: color .3s var(--n-bezier); + `)]),I("base-selection-overlay",` + display: flex; + align-items: center; + white-space: nowrap; + pointer-events: none; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + padding: var(--n-padding-single); + transition: color .3s var(--n-bezier); + `,[H("wrapper",` + flex-basis: 0; + flex-grow: 1; + overflow: hidden; + text-overflow: ellipsis; + `)]),I("base-selection-placeholder",` + color: var(--n-placeholder-color); + `,[H("inner",` + max-width: 100%; + overflow: hidden; + `)]),I("base-selection-tags",` + cursor: pointer; + outline: none; + box-sizing: border-box; + position: relative; + z-index: auto; + display: flex; + padding: var(--n-padding-multiple); + flex-wrap: wrap; + align-items: center; + width: 100%; + vertical-align: bottom; + background-color: var(--n-color); + border-radius: inherit; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + `),I("base-selection-label",` + height: var(--n-height); + display: inline-flex; + width: 100%; + vertical-align: bottom; + cursor: pointer; + outline: none; + z-index: auto; + box-sizing: border-box; + position: relative; + transition: + color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier); + border-radius: inherit; + background-color: var(--n-color); + align-items: center; + `,[I("base-selection-input",` + font-size: inherit; + line-height: inherit; + outline: none; + cursor: pointer; + box-sizing: border-box; + border:none; + width: 100%; + padding: var(--n-padding-single); + background-color: #0000; + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + caret-color: var(--n-caret-color); + `,[H("content",` + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + `)]),H("render-label",` + color: var(--n-text-color); + `)]),Ye("disabled",[L("&:hover",[H("state-border",` + box-shadow: var(--n-box-shadow-hover); + border: var(--n-border-hover); + `)]),Y("focus",[H("state-border",` + box-shadow: var(--n-box-shadow-focus); + border: var(--n-border-focus); + `)]),Y("active",[H("state-border",` + box-shadow: var(--n-box-shadow-active); + border: var(--n-border-active); + `),I("base-selection-label","background-color: var(--n-color-active);"),I("base-selection-tags","background-color: var(--n-color-active);")])]),Y("disabled","cursor: not-allowed;",[H("arrow",` + color: var(--n-arrow-color-disabled); + `),I("base-selection-label",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[I("base-selection-input",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + `),H("render-label",` + color: var(--n-text-color-disabled); + `)]),I("base-selection-tags",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `),I("base-selection-placeholder",` + cursor: not-allowed; + color: var(--n-placeholder-color-disabled); + `)]),I("base-selection-input-tag",` + height: calc(var(--n-height) - 6px); + line-height: calc(var(--n-height) - 6px); + outline: none; + display: none; + position: relative; + margin-bottom: 3px; + max-width: 100%; + vertical-align: bottom; + `,[H("input",` + font-size: inherit; + font-family: inherit; + min-width: 1px; + padding: 0; + background-color: #0000; + outline: none; + border: none; + max-width: 100%; + overflow: hidden; + width: 1em; + line-height: inherit; + cursor: pointer; + color: var(--n-text-color); + caret-color: var(--n-caret-color); + `),H("mirror",` + position: absolute; + left: 0; + top: 0; + white-space: pre; + visibility: hidden; + user-select: none; + -webkit-user-select: none; + opacity: 0; + `)]),["warning","error"].map(e=>Y(`${e}-status`,[H("state-border",`border: var(--n-border-${e});`),Ye("disabled",[L("&:hover",[H("state-border",` + box-shadow: var(--n-box-shadow-hover-${e}); + border: var(--n-border-hover-${e}); + `)]),Y("active",[H("state-border",` + box-shadow: var(--n-box-shadow-active-${e}); + border: var(--n-border-active-${e}); + `),I("base-selection-label",`background-color: var(--n-color-active-${e});`),I("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),Y("focus",[H("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),I("base-selection-popover",` + margin-bottom: -3px; + display: flex; + flex-wrap: wrap; + margin-right: -8px; + `),I("base-selection-tag-wrapper",` + max-width: 100%; + display: inline-flex; + padding: 0 7px 3px 0; + `,[L("&:last-child","padding-right: 0;"),I("tag",` + font-size: 14px; + max-width: 100%; + `,[H("content",` + line-height: 1.25; + text-overflow: ellipsis; + overflow: hidden; + `)])])]),U_=ve({name:"InternalSelection",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Je(e),n=qt("InternalSelection",o,t),r=V(null),i=V(null),l=V(null),a=V(null),s=V(null),c=V(null),d=V(null),u=V(null),f=V(null),h=V(null),p=V(!1),g=V(!1),b=V(!1),m=Ie("InternalSelection","-internal-selection",V_,zv,e,Se(e,"clsPrefix")),x=F(()=>e.clearable&&!e.disabled&&(b.value||e.active)),w=F(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Lt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),C=F(()=>{const ee=e.selectedOption;if(ee)return ee[e.labelField]}),P=F(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function T(){var ee;const{value:se}=r;if(se){const{value:ke}=i;ke&&(ke.style.width=`${se.offsetWidth}px`,e.maxTagCount!=="responsive"&&((ee=f.value)===null||ee===void 0||ee.sync({showAllItemsBeforeCalculate:!1})))}}function y(){const{value:ee}=h;ee&&(ee.style.display="none")}function B(){const{value:ee}=h;ee&&(ee.style.display="inline-block")}st(Se(e,"active"),ee=>{ee||y()}),st(Se(e,"pattern"),()=>{e.multiple&&so(T)});function S(ee){const{onFocus:se}=e;se&&se(ee)}function E(ee){const{onBlur:se}=e;se&&se(ee)}function j(ee){const{onDeleteOption:se}=e;se&&se(ee)}function _(ee){const{onClear:se}=e;se&&se(ee)}function M(ee){const{onPatternInput:se}=e;se&&se(ee)}function W(ee){var se;(!ee.relatedTarget||!(!((se=l.value)===null||se===void 0)&&se.contains(ee.relatedTarget)))&&S(ee)}function D(ee){var se;!((se=l.value)===null||se===void 0)&&se.contains(ee.relatedTarget)||E(ee)}function Z(ee){_(ee)}function U(){b.value=!0}function J(){b.value=!1}function pe(ee){!e.active||!e.filterable||ee.target!==i.value&&ee.preventDefault()}function fe(ee){j(ee)}const N=V(!1);function O(ee){if(ee.key==="Backspace"&&!N.value&&!e.pattern.length){const{selectedOptions:se}=e;se!=null&&se.length&&fe(se[se.length-1])}}let A=null;function Q(ee){const{value:se}=r;if(se){const ke=ee.target.value;se.textContent=ke,T()}e.ignoreComposition&&N.value?A=ee:M(ee)}function he(){N.value=!0}function we(){N.value=!1,e.ignoreComposition&&M(A),A=null}function X(ee){var se;g.value=!0,(se=e.onPatternFocus)===null||se===void 0||se.call(e,ee)}function de(ee){var se;g.value=!1,(se=e.onPatternBlur)===null||se===void 0||se.call(e,ee)}function R(){var ee,se;if(e.filterable)g.value=!1,(ee=c.value)===null||ee===void 0||ee.blur(),(se=i.value)===null||se===void 0||se.blur();else if(e.multiple){const{value:ke}=a;ke==null||ke.blur()}else{const{value:ke}=s;ke==null||ke.blur()}}function ae(){var ee,se,ke;e.filterable?(g.value=!1,(ee=c.value)===null||ee===void 0||ee.focus()):e.multiple?(se=a.value)===null||se===void 0||se.focus():(ke=s.value)===null||ke===void 0||ke.focus()}function _e(){const{value:ee}=i;ee&&(B(),ee.focus())}function k(){const{value:ee}=i;ee&&ee.blur()}function $(ee){const{value:se}=d;se&&se.setTextContent(`+${ee}`)}function K(){const{value:ee}=u;return ee}function ie(){return i.value}let le=null;function re(){le!==null&&window.clearTimeout(le)}function xe(){e.active||(re(),le=window.setTimeout(()=>{P.value&&(p.value=!0)},100))}function ne(){re()}function te(ee){ee||(re(),p.value=!1)}st(P,ee=>{ee||(p.value=!1)}),Bt(()=>{Mt(()=>{const ee=c.value;ee&&(e.disabled?ee.removeAttribute("tabindex"):ee.tabIndex=g.value?-1:0)})}),Kh(l,e.onResize);const{inlineThemeDisabled:oe}=e,ye=F(()=>{const{size:ee}=e,{common:{cubicBezierEaseInOut:se},self:{fontWeight:ke,borderRadius:Me,color:He,placeholderColor:Qe,textColor:Ve,paddingSingle:We,paddingMultiple:ot,caretColor:Xe,colorDisabled:Pe,textColorDisabled:ze,placeholderColorDisabled:z,colorActive:q,boxShadowFocus:ce,boxShadowActive:Ce,boxShadowHover:Re,border:Te,borderFocus:Ee,borderHover:Ae,borderActive:Ge,arrowColor:ut,arrowColorDisabled:et,loadingColor:jt,colorActiveWarning:Xt,boxShadowFocusWarning:Yt,boxShadowActiveWarning:Qt,boxShadowHoverWarning:eo,borderWarning:po,borderFocusWarning:to,borderHoverWarning:G,borderActiveWarning:ue,colorActiveError:Fe,boxShadowFocusError:je,boxShadowActiveError:nt,boxShadowHoverError:qe,borderError:vt,borderFocusError:yt,borderHoverError:io,borderActiveError:nn,clearColor:rn,clearColorHover:ir,clearColorPressed:$i,clearSize:Ei,arrowSize:Fi,[me("height",ee)]:Ai,[me("fontSize",ee)]:Ii}}=m.value,zn=no(We),Tn=no(ot);return{"--n-bezier":se,"--n-border":Te,"--n-border-active":Ge,"--n-border-focus":Ee,"--n-border-hover":Ae,"--n-border-radius":Me,"--n-box-shadow-active":Ce,"--n-box-shadow-focus":ce,"--n-box-shadow-hover":Re,"--n-caret-color":Xe,"--n-color":He,"--n-color-active":q,"--n-color-disabled":Pe,"--n-font-size":Ii,"--n-height":Ai,"--n-padding-single-top":zn.top,"--n-padding-multiple-top":Tn.top,"--n-padding-single-right":zn.right,"--n-padding-multiple-right":Tn.right,"--n-padding-single-left":zn.left,"--n-padding-multiple-left":Tn.left,"--n-padding-single-bottom":zn.bottom,"--n-padding-multiple-bottom":Tn.bottom,"--n-placeholder-color":Qe,"--n-placeholder-color-disabled":z,"--n-text-color":Ve,"--n-text-color-disabled":ze,"--n-arrow-color":ut,"--n-arrow-color-disabled":et,"--n-loading-color":jt,"--n-color-active-warning":Xt,"--n-box-shadow-focus-warning":Yt,"--n-box-shadow-active-warning":Qt,"--n-box-shadow-hover-warning":eo,"--n-border-warning":po,"--n-border-focus-warning":to,"--n-border-hover-warning":G,"--n-border-active-warning":ue,"--n-color-active-error":Fe,"--n-box-shadow-focus-error":je,"--n-box-shadow-active-error":nt,"--n-box-shadow-hover-error":qe,"--n-border-error":vt,"--n-border-focus-error":yt,"--n-border-hover-error":io,"--n-border-active-error":nn,"--n-clear-size":Ei,"--n-clear-color":rn,"--n-clear-color-hover":ir,"--n-clear-color-pressed":$i,"--n-arrow-size":Fi,"--n-font-weight":ke}}),be=oe?gt("internal-selection",F(()=>e.size[0]),ye,e):void 0;return{mergedTheme:m,mergedClearable:x,mergedClsPrefix:t,rtlEnabled:n,patternInputFocused:g,filterablePlaceholder:w,label:C,selected:P,showTagsPanel:p,isComposing:N,counterRef:d,counterWrapperRef:u,patternInputMirrorRef:r,patternInputRef:i,selfRef:l,multipleElRef:a,singleElRef:s,patternInputWrapperRef:c,overflowRef:f,inputTagElRef:h,handleMouseDown:pe,handleFocusin:W,handleClear:Z,handleMouseEnter:U,handleMouseLeave:J,handleDeleteOption:fe,handlePatternKeyDown:O,handlePatternInputInput:Q,handlePatternInputBlur:de,handlePatternInputFocus:X,handleMouseEnterCounter:xe,handleMouseLeaveCounter:ne,handleFocusout:D,handleCompositionEnd:we,handleCompositionStart:he,onPopoverUpdateShow:te,focus:ae,focusInput:_e,blur:R,blurInput:k,updateCounter:$,getCounter:K,getTail:ie,renderLabel:e.renderLabel,cssVars:oe?void 0:ye,themeClass:be==null?void 0:be.themeClass,onRender:be==null?void 0:be.onRender}},render(){const{status:e,multiple:t,size:o,disabled:n,filterable:r,maxTagCount:i,bordered:l,clsPrefix:a,ellipsisTagPopoverProps:s,onRender:c,renderTag:d,renderLabel:u}=this;c==null||c();const f=i==="responsive",h=typeof i=="number",p=f||h,g=v(Hs,null,{default:()=>v(kv,{clsPrefix:a,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,x;return(x=(m=this.$slots).arrow)===null||x===void 0?void 0:x.call(m)}})});let b;if(t){const{labelField:m}=this,x=M=>v("div",{class:`${a}-base-selection-tag-wrapper`,key:M.value},d?d({option:M,handleClose:()=>{this.handleDeleteOption(M)}}):v(ea,{size:o,closable:!M.disabled,disabled:n,onClose:()=>{this.handleDeleteOption(M)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>u?u(M,!0):Lt(M[m],M,!0)})),w=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(x),C=r?v("div",{class:`${a}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:n,value:this.pattern,autofocus:this.autofocus,class:`${a}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),v("span",{ref:"patternInputMirrorRef",class:`${a}-base-selection-input-tag__mirror`},this.pattern)):null,P=f?()=>v("div",{class:`${a}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},v(ea,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let T;if(h){const M=this.selectedOptions.length-i;M>0&&(T=v("div",{class:`${a}-base-selection-tag-wrapper`,key:"__counter__"},v(ea,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${M}`})))}const y=f?r?v(Os,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:w,counter:P,tail:()=>C}):v(Os,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:w,counter:P}):h&&T?w().concat(T):w(),B=p?()=>v("div",{class:`${a}-base-selection-popover`},f?w():this.selectedOptions.map(x)):void 0,S=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},s):null,j=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?v("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`},v("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)):null,_=r?v("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-tags`},y,f?null:C,g):v("div",{ref:"multipleElRef",class:`${a}-base-selection-tags`,tabindex:n?void 0:0},y,g);b=v(it,null,p?v(zi,Object.assign({},S,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>_,default:B}):_,j)}else if(r){const m=this.pattern||this.isComposing,x=this.active?!m:!this.selected,w=this.active?!1:this.selected;b=v("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-label`,title:this.patternInputFocused?void 0:Xh(this.label)},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${a}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:n,disabled:n,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),w?v("div",{class:`${a}-base-selection-label__render-label ${a}-base-selection-overlay`,key:"input"},v("div",{class:`${a}-base-selection-overlay__wrapper`},d?d({option:this.selectedOption,handleClose:()=>{}}):u?u(this.selectedOption,!0):Lt(this.label,this.selectedOption,!0))):null,x?v("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${a}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else b=v("div",{ref:"singleElRef",class:`${a}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?v("div",{class:`${a}-base-selection-input`,title:Xh(this.label),key:"input"},v("div",{class:`${a}-base-selection-input__content`},d?d({option:this.selectedOption,handleClose:()=>{}}):u?u(this.selectedOption,!0):Lt(this.label,this.selectedOption,!0))):v("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)),g);return v("div",{ref:"selfRef",class:[`${a}-base-selection`,this.rtlEnabled&&`${a}-base-selection--rtl`,this.themeClass,e&&`${a}-base-selection--${e}-status`,{[`${a}-base-selection--active`]:this.active,[`${a}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${a}-base-selection--disabled`]:this.disabled,[`${a}-base-selection--multiple`]:this.multiple,[`${a}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,l?v("div",{class:`${a}-base-selection__border`}):null,l?v("div",{class:`${a}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:kn}=Qn;function K_({duration:e=".2s",delay:t=".1s"}={}){return[L("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),L("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",` + opacity: 0!important; + margin-left: 0!important; + margin-right: 0!important; + `),L("&.fade-in-width-expand-transition-leave-active",` + overflow: hidden; + transition: + opacity ${e} ${kn}, + max-width ${e} ${kn} ${t}, + margin-left ${e} ${kn} ${t}, + margin-right ${e} ${kn} ${t}; + `),L("&.fade-in-width-expand-transition-enter-active",` + overflow: hidden; + transition: + opacity ${e} ${kn} ${t}, + max-width ${e} ${kn}, + margin-left ${e} ${kn}, + margin-right ${e} ${kn}; + `)]}const G_=I("base-wave",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border-radius: inherit; +`),q_=ve({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){er("-base-wave",G_,Se(e,"clsPrefix"));const t=V(null),o=V(!1);let n=null;return Ft(()=>{n!==null&&window.clearTimeout(n)}),{active:o,selfRef:t,play(){n!==null&&(window.clearTimeout(n),o.value=!1,n=null),so(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,o.value=!0,n=window.setTimeout(()=>{o.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return v("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),{cubicBezierEaseInOut:Lo,cubicBezierEaseOut:X_,cubicBezierEaseIn:Y_}=Qn;function Z_({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:n="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:l=void 0,reverse:a=!1}={}){const s=a?"leave":"enter",c=a?"enter":"leave";return[L(`&.fade-in-height-expand-transition-${c}-from, + &.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),L(`&.fade-in-height-expand-transition-${c}-to, + &.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},l),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),L(`&.fade-in-height-expand-transition-${c}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Lo} ${n}, + opacity ${t} ${X_} ${n}, + margin-top ${t} ${Lo} ${n}, + margin-bottom ${t} ${Lo} ${n}, + padding-top ${t} ${Lo} ${n}, + padding-bottom ${t} ${Lo} ${n} + ${o?`,${o}`:""} + `),L(`&.fade-in-height-expand-transition-${s}-active`,` + overflow: ${e}; + transition: + max-height ${t} ${Lo}, + opacity ${t} ${Y_}, + margin-top ${t} ${Lo}, + margin-bottom ${t} ${Lo}, + padding-top ${t} ${Lo}, + padding-bottom ${t} ${Lo} + ${o?`,${o}`:""} + `)]}const J_=ui&&"chrome"in window;ui&&navigator.userAgent.includes("Firefox");const Tv=ui&&navigator.userAgent.includes("Safari")&&!J_,Q_={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function ek(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:l,inputColorDisabled:a,borderColor:s,warningColor:c,warningColorHover:d,errorColor:u,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:m,fontSizeLarge:x,heightTiny:w,heightSmall:C,heightMedium:P,heightLarge:T,actionColor:y,clearColor:B,clearColorHover:S,clearColorPressed:E,placeholderColor:j,placeholderColorDisabled:_,iconColor:M,iconColorDisabled:W,iconColorHover:D,iconColorPressed:Z,fontWeight:U}=e;return Object.assign(Object.assign({},Q_),{fontWeight:U,countTextColorDisabled:n,countTextColor:o,heightTiny:w,heightSmall:C,heightMedium:P,heightLarge:T,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:m,fontSizeLarge:x,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:y,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:r,placeholderColor:j,placeholderColorDisabled:_,color:l,colorDisabled:a,colorFocus:l,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Le(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:l,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${Le(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:l,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Le(u,{alpha:.2})}`,caretColorError:u,clearColor:B,clearColorHover:S,clearColorPressed:E,iconColor:M,iconColorDisabled:W,iconColorHover:D,iconColorPressed:Z,suffixTextColor:t})}const $v={name:"Input",common:xt,peers:{Scrollbar:Er},self:ek},Ev="n-input",tk=I("input",` + max-width: 100%; + cursor: text; + line-height: 1.5; + z-index: auto; + outline: none; + box-sizing: border-box; + position: relative; + display: inline-flex; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color .3s var(--n-bezier); + font-size: var(--n-font-size); + font-weight: var(--n-font-weight); + --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); +`,[H("input, textarea",` + overflow: hidden; + flex-grow: 1; + position: relative; + `),H("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",` + box-sizing: border-box; + font-size: inherit; + line-height: 1.5; + font-family: inherit; + border: none; + outline: none; + background-color: #0000; + text-align: inherit; + transition: + -webkit-text-fill-color .3s var(--n-bezier), + caret-color .3s var(--n-bezier), + color .3s var(--n-bezier), + text-decoration-color .3s var(--n-bezier); + `),H("input-el, textarea-el",` + -webkit-appearance: none; + scrollbar-width: none; + width: 100%; + min-width: 0; + text-decoration-color: var(--n-text-decoration-color); + color: var(--n-text-color); + caret-color: var(--n-caret-color); + background-color: transparent; + `,[L("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + width: 0; + height: 0; + display: none; + `),L("&::placeholder",` + color: #0000; + -webkit-text-fill-color: transparent !important; + `),L("&:-webkit-autofill ~",[H("placeholder","display: none;")])]),Y("round",[Ye("textarea","border-radius: calc(var(--n-height) / 2);")]),H("placeholder",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + overflow: hidden; + color: var(--n-placeholder-color); + `,[L("span",` + width: 100%; + display: inline-block; + `)]),Y("textarea",[H("placeholder","overflow: visible;")]),Ye("autosize","width: 100%;"),Y("autosize",[H("textarea-el, input-el",` + position: absolute; + top: 0; + left: 0; + height: 100%; + `)]),I("input-wrapper",` + overflow: hidden; + display: inline-flex; + flex-grow: 1; + position: relative; + padding-left: var(--n-padding-left); + padding-right: var(--n-padding-right); + `),H("input-mirror",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre; + pointer-events: none; + `),H("input-el",` + padding: 0; + height: var(--n-height); + line-height: var(--n-height); + `,[L("&[type=password]::-ms-reveal","display: none;"),L("+",[H("placeholder",` + display: flex; + align-items: center; + `)])]),Ye("textarea",[H("placeholder","white-space: nowrap;")]),H("eye",` + display: flex; + align-items: center; + justify-content: center; + transition: color .3s var(--n-bezier); + `),Y("textarea","width: 100%;",[I("input-word-count",` + position: absolute; + right: var(--n-padding-right); + bottom: var(--n-padding-vertical); + `),Y("resizable",[I("input-wrapper",` + resize: vertical; + min-height: var(--n-height); + `)]),H("textarea-el, textarea-mirror, placeholder",` + height: 100%; + padding-left: 0; + padding-right: 0; + padding-top: var(--n-padding-vertical); + padding-bottom: var(--n-padding-vertical); + word-break: break-word; + display: inline-block; + vertical-align: bottom; + box-sizing: border-box; + line-height: var(--n-line-height-textarea); + margin: 0; + resize: none; + white-space: pre-wrap; + scroll-padding-block-end: var(--n-padding-vertical); + `),H("textarea-mirror",` + width: 100%; + pointer-events: none; + overflow: hidden; + visibility: hidden; + position: static; + white-space: pre-wrap; + overflow-wrap: break-word; + `)]),Y("pair",[H("input-el, placeholder","text-align: center;"),H("separator",` + display: flex; + align-items: center; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + white-space: nowrap; + `,[I("icon",` + color: var(--n-icon-color); + `),I("base-icon",` + color: var(--n-icon-color); + `)])]),Y("disabled",` + cursor: not-allowed; + background-color: var(--n-color-disabled); + `,[H("border","border: var(--n-border-disabled);"),H("input-el, textarea-el",` + cursor: not-allowed; + color: var(--n-text-color-disabled); + text-decoration-color: var(--n-text-color-disabled); + `),H("placeholder","color: var(--n-placeholder-color-disabled);"),H("separator","color: var(--n-text-color-disabled);",[I("icon",` + color: var(--n-icon-color-disabled); + `),I("base-icon",` + color: var(--n-icon-color-disabled); + `)]),I("input-word-count",` + color: var(--n-count-text-color-disabled); + `),H("suffix, prefix","color: var(--n-text-color-disabled);",[I("icon",` + color: var(--n-icon-color-disabled); + `),I("internal-icon",` + color: var(--n-icon-color-disabled); + `)])]),Ye("disabled",[H("eye",` + color: var(--n-icon-color); + cursor: pointer; + `,[L("&:hover",` + color: var(--n-icon-color-hover); + `),L("&:active",` + color: var(--n-icon-color-pressed); + `)]),L("&:hover",[H("state-border","border: var(--n-border-hover);")]),Y("focus","background-color: var(--n-color-focus);",[H("state-border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),H("border, state-border",` + box-sizing: border-box; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: inherit; + border: var(--n-border); + transition: + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `),H("state-border",` + border-color: #0000; + z-index: 1; + `),H("prefix","margin-right: 4px;"),H("suffix",` + margin-left: 4px; + `),H("suffix, prefix",` + transition: color .3s var(--n-bezier); + flex-wrap: nowrap; + flex-shrink: 0; + line-height: var(--n-height); + white-space: nowrap; + display: inline-flex; + align-items: center; + justify-content: center; + color: var(--n-suffix-text-color); + `,[I("base-loading",` + font-size: var(--n-icon-size); + margin: 0 2px; + color: var(--n-loading-color); + `),I("base-clear",` + font-size: var(--n-icon-size); + `,[H("placeholder",[I("base-icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)])]),L(">",[I("icon",` + transition: color .3s var(--n-bezier); + color: var(--n-icon-color); + font-size: var(--n-icon-size); + `)]),I("base-icon",` + font-size: var(--n-icon-size); + `)]),I("input-word-count",` + pointer-events: none; + line-height: 1.5; + font-size: .85em; + color: var(--n-count-text-color); + transition: color .3s var(--n-bezier); + margin-left: 4px; + font-variant: tabular-nums; + `),["warning","error"].map(e=>Y(`${e}-status`,[Ye("disabled",[I("base-loading",` + color: var(--n-loading-color-${e}) + `),H("input-el, textarea-el",` + caret-color: var(--n-caret-color-${e}); + `),H("state-border",` + border: var(--n-border-${e}); + `),L("&:hover",[H("state-border",` + border: var(--n-border-hover-${e}); + `)]),L("&:focus",` + background-color: var(--n-color-focus-${e}); + `,[H("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)]),Y("focus",` + background-color: var(--n-color-focus-${e}); + `,[H("state-border",` + box-shadow: var(--n-box-shadow-focus-${e}); + border: var(--n-border-focus-${e}); + `)])])]))]),ok=I("input",[Y("disabled",[H("input-el, textarea-el",` + -webkit-text-fill-color: var(--n-text-color-disabled); + `)])]);function nk(e){let t=0;for(const o of e)t++;return t}function ta(e){return e===""||e==null}function rk(e){const t=V(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:l,selectionEnd:a,value:s}=i;if(l==null||a==null){r();return}t.value={start:l,end:a,beforeText:s.slice(0,l),afterText:s.slice(a)}}function n(){var i;const{value:l}=t,{value:a}=e;if(!l||!a)return;const{value:s}=a,{start:c,beforeText:d,afterText:u}=l;let f=s.length;if(s.endsWith(u))f=s.length-u.length;else if(s.startsWith(d))f=d.length;else{const h=d[c-1],p=s.indexOf(h,c-1);p!==-1&&(f=p+1)}(i=a.setSelectionRange)===null||i===void 0||i.call(a,f,f)}function r(){t.value=null}return st(e,r),{recordCursor:o,restoreCursor:n}}const Fv=ve({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:n,mergedClsPrefixRef:r,countGraphemesRef:i}=$e(Ev),l=F(()=>{const{value:a}=o;return a===null||Array.isArray(a)?0:(i.value||nk)(a)});return()=>{const{value:a}=n,{value:s}=o;return v("span",{class:`${r.value}-input-word-count`},_C(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[a===void 0?l.value:`${l.value} / ${a}`]))}}}),ik=Object.assign(Object.assign({},Ie.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Av=ve({name:"Input",props:ik,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=Je(e),i=Ie("Input","-input",tk,$v,e,t);Tv&&er("-input-safari",ok,t);const l=V(null),a=V(null),s=V(null),c=V(null),d=V(null),u=V(null),f=V(null),h=rk(f),p=V(null),{localeRef:g}=Pi("Input"),b=V(e.defaultValue),m=Se(e,"value"),x=It(m,b),w=qn(e),{mergedSizeRef:C,mergedDisabledRef:P,mergedStatusRef:T}=w,y=V(!1),B=V(!1),S=V(!1),E=V(!1);let j=null;const _=F(()=>{const{placeholder:G,pair:ue}=e;return ue?Array.isArray(G)?G:G===void 0?["",""]:[G,G]:G===void 0?[g.value.placeholder]:[G]}),M=F(()=>{const{value:G}=S,{value:ue}=x,{value:Fe}=_;return!G&&(ta(ue)||Array.isArray(ue)&&ta(ue[0]))&&Fe[0]}),W=F(()=>{const{value:G}=S,{value:ue}=x,{value:Fe}=_;return!G&&Fe[1]&&(ta(ue)||Array.isArray(ue)&&ta(ue[1]))}),D=Ze(()=>e.internalForceFocus||y.value),Z=Ze(()=>{if(P.value||e.readonly||!e.clearable||!D.value&&!B.value)return!1;const{value:G}=x,{value:ue}=D;return e.pair?!!(Array.isArray(G)&&(G[0]||G[1]))&&(B.value||ue):!!G&&(B.value||ue)}),U=F(()=>{const{showPasswordOn:G}=e;if(G)return G;if(e.showPasswordToggle)return"click"}),J=V(!1),pe=F(()=>{const{textDecoration:G}=e;return G?Array.isArray(G)?G.map(ue=>({textDecoration:ue})):[{textDecoration:G}]:["",""]}),fe=V(void 0),N=()=>{var G,ue;if(e.type==="textarea"){const{autosize:Fe}=e;if(Fe&&(fe.value=(ue=(G=p.value)===null||G===void 0?void 0:G.$el)===null||ue===void 0?void 0:ue.offsetWidth),!a.value||typeof Fe=="boolean")return;const{paddingTop:je,paddingBottom:nt,lineHeight:qe}=window.getComputedStyle(a.value),vt=Number(je.slice(0,-2)),yt=Number(nt.slice(0,-2)),io=Number(qe.slice(0,-2)),{value:nn}=s;if(!nn)return;if(Fe.minRows){const rn=Math.max(Fe.minRows,1),ir=`${vt+yt+io*rn}px`;nn.style.minHeight=ir}if(Fe.maxRows){const rn=`${vt+yt+io*Fe.maxRows}px`;nn.style.maxHeight=rn}}},O=F(()=>{const{maxlength:G}=e;return G===void 0?void 0:Number(G)});Bt(()=>{const{value:G}=x;Array.isArray(G)||Ge(G)});const A=Hn().proxy;function Q(G,ue){const{onUpdateValue:Fe,"onUpdate:value":je,onInput:nt}=e,{nTriggerFormInput:qe}=w;Fe&&ge(Fe,G,ue),je&&ge(je,G,ue),nt&&ge(nt,G,ue),b.value=G,qe()}function he(G,ue){const{onChange:Fe}=e,{nTriggerFormChange:je}=w;Fe&&ge(Fe,G,ue),b.value=G,je()}function we(G){const{onBlur:ue}=e,{nTriggerFormBlur:Fe}=w;ue&&ge(ue,G),Fe()}function X(G){const{onFocus:ue}=e,{nTriggerFormFocus:Fe}=w;ue&&ge(ue,G),Fe()}function de(G){const{onClear:ue}=e;ue&&ge(ue,G)}function R(G){const{onInputBlur:ue}=e;ue&&ge(ue,G)}function ae(G){const{onInputFocus:ue}=e;ue&&ge(ue,G)}function _e(){const{onDeactivate:G}=e;G&&ge(G)}function k(){const{onActivate:G}=e;G&&ge(G)}function $(G){const{onClick:ue}=e;ue&&ge(ue,G)}function K(G){const{onWrapperFocus:ue}=e;ue&&ge(ue,G)}function ie(G){const{onWrapperBlur:ue}=e;ue&&ge(ue,G)}function le(){S.value=!0}function re(G){S.value=!1,G.target===u.value?xe(G,1):xe(G,0)}function xe(G,ue=0,Fe="input"){const je=G.target.value;if(Ge(je),G instanceof InputEvent&&!G.isComposing&&(S.value=!1),e.type==="textarea"){const{value:qe}=p;qe&&qe.syncUnifiedContainer()}if(j=je,S.value)return;h.recordCursor();const nt=ne(je);if(nt)if(!e.pair)Fe==="input"?Q(je,{source:ue}):he(je,{source:ue});else{let{value:qe}=x;Array.isArray(qe)?qe=[qe[0],qe[1]]:qe=["",""],qe[ue]=je,Fe==="input"?Q(qe,{source:ue}):he(qe,{source:ue})}A.$forceUpdate(),nt||so(h.restoreCursor)}function ne(G){const{countGraphemes:ue,maxlength:Fe,minlength:je}=e;if(ue){let qe;if(Fe!==void 0&&(qe===void 0&&(qe=ue(G)),qe>Number(Fe))||je!==void 0&&(qe===void 0&&(qe=ue(G)),qe{je.preventDefault(),ct("mouseup",document,ue)};if(bt("mouseup",document,ue),U.value!=="mousedown")return;J.value=!0;const Fe=()=>{J.value=!1,ct("mouseup",document,Fe)};bt("mouseup",document,Fe)}function Pe(G){e.onKeyup&&ge(e.onKeyup,G)}function ze(G){switch(e.onKeydown&&ge(e.onKeydown,G),G.key){case"Escape":q();break;case"Enter":z(G);break}}function z(G){var ue,Fe;if(e.passivelyActivated){const{value:je}=E;if(je){e.internalDeactivateOnEnter&&q();return}G.preventDefault(),e.type==="textarea"?(ue=a.value)===null||ue===void 0||ue.focus():(Fe=d.value)===null||Fe===void 0||Fe.focus()}}function q(){e.passivelyActivated&&(E.value=!1,so(()=>{var G;(G=l.value)===null||G===void 0||G.focus()}))}function ce(){var G,ue,Fe;P.value||(e.passivelyActivated?(G=l.value)===null||G===void 0||G.focus():((ue=a.value)===null||ue===void 0||ue.focus(),(Fe=d.value)===null||Fe===void 0||Fe.focus()))}function Ce(){var G;!((G=l.value)===null||G===void 0)&&G.contains(document.activeElement)&&document.activeElement.blur()}function Re(){var G,ue;(G=a.value)===null||G===void 0||G.select(),(ue=d.value)===null||ue===void 0||ue.select()}function Te(){P.value||(a.value?a.value.focus():d.value&&d.value.focus())}function Ee(){const{value:G}=l;G!=null&&G.contains(document.activeElement)&&G!==document.activeElement&&q()}function Ae(G){if(e.type==="textarea"){const{value:ue}=a;ue==null||ue.scrollTo(G)}else{const{value:ue}=d;ue==null||ue.scrollTo(G)}}function Ge(G){const{type:ue,pair:Fe,autosize:je}=e;if(!Fe&&je)if(ue==="textarea"){const{value:nt}=s;nt&&(nt.textContent=`${G??""}\r +`)}else{const{value:nt}=c;nt&&(G?nt.textContent=G:nt.innerHTML=" ")}}function ut(){N()}const et=V({top:"0"});function jt(G){var ue;const{scrollTop:Fe}=G.target;et.value.top=`${-Fe}px`,(ue=p.value)===null||ue===void 0||ue.syncUnifiedContainer()}let Xt=null;Mt(()=>{const{autosize:G,type:ue}=e;G&&ue==="textarea"?Xt=st(x,Fe=>{!Array.isArray(Fe)&&Fe!==j&&Ge(Fe)}):Xt==null||Xt()});let Yt=null;Mt(()=>{e.type==="textarea"?Yt=st(x,G=>{var ue;!Array.isArray(G)&&G!==j&&((ue=p.value)===null||ue===void 0||ue.syncUnifiedContainer())}):Yt==null||Yt()}),tt(Ev,{mergedValueRef:x,maxlengthRef:O,mergedClsPrefixRef:t,countGraphemesRef:Se(e,"countGraphemes")});const Qt={wrapperElRef:l,inputElRef:d,textareaElRef:a,isCompositing:S,clear:He,focus:ce,blur:Ce,select:Re,deactivate:Ee,activate:Te,scrollTo:Ae},eo=qt("Input",r,t),po=F(()=>{const{value:G}=C,{common:{cubicBezierEaseInOut:ue},self:{color:Fe,borderRadius:je,textColor:nt,caretColor:qe,caretColorError:vt,caretColorWarning:yt,textDecorationColor:io,border:nn,borderDisabled:rn,borderHover:ir,borderFocus:$i,placeholderColor:Ei,placeholderColorDisabled:Fi,lineHeightTextarea:Ai,colorDisabled:Ii,colorFocus:zn,textColorDisabled:Tn,boxShadowFocus:qc,iconSize:Xc,colorFocusWarning:Yc,boxShadowFocusWarning:Zc,borderWarning:Jc,borderFocusWarning:Qc,borderHoverWarning:ed,colorFocusError:td,boxShadowFocusError:od,borderError:nd,borderFocusError:rd,borderHoverError:c2,clearSize:d2,clearColor:u2,clearColorHover:f2,clearColorPressed:h2,iconColor:p2,iconColorDisabled:v2,suffixTextColor:g2,countTextColor:m2,countTextColorDisabled:b2,iconColorHover:x2,iconColorPressed:y2,loadingColor:C2,loadingColorError:w2,loadingColorWarning:S2,fontWeight:R2,[me("padding",G)]:P2,[me("fontSize",G)]:_2,[me("height",G)]:k2}}=i.value,{left:z2,right:T2}=no(P2);return{"--n-bezier":ue,"--n-count-text-color":m2,"--n-count-text-color-disabled":b2,"--n-color":Fe,"--n-font-size":_2,"--n-font-weight":R2,"--n-border-radius":je,"--n-height":k2,"--n-padding-left":z2,"--n-padding-right":T2,"--n-text-color":nt,"--n-caret-color":qe,"--n-text-decoration-color":io,"--n-border":nn,"--n-border-disabled":rn,"--n-border-hover":ir,"--n-border-focus":$i,"--n-placeholder-color":Ei,"--n-placeholder-color-disabled":Fi,"--n-icon-size":Xc,"--n-line-height-textarea":Ai,"--n-color-disabled":Ii,"--n-color-focus":zn,"--n-text-color-disabled":Tn,"--n-box-shadow-focus":qc,"--n-loading-color":C2,"--n-caret-color-warning":yt,"--n-color-focus-warning":Yc,"--n-box-shadow-focus-warning":Zc,"--n-border-warning":Jc,"--n-border-focus-warning":Qc,"--n-border-hover-warning":ed,"--n-loading-color-warning":S2,"--n-caret-color-error":vt,"--n-color-focus-error":td,"--n-box-shadow-focus-error":od,"--n-border-error":nd,"--n-border-focus-error":rd,"--n-border-hover-error":c2,"--n-loading-color-error":w2,"--n-clear-color":u2,"--n-clear-size":d2,"--n-clear-color-hover":f2,"--n-clear-color-pressed":h2,"--n-icon-color":p2,"--n-icon-color-hover":x2,"--n-icon-color-pressed":y2,"--n-icon-color-disabled":v2,"--n-suffix-text-color":g2}}),to=n?gt("input",F(()=>{const{value:G}=C;return G[0]}),po,e):void 0;return Object.assign(Object.assign({},Qt),{wrapperElRef:l,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:u,textareaElRef:a,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:eo,uncontrolledValue:b,mergedValue:x,passwordVisible:J,mergedPlaceholder:_,showPlaceholder1:M,showPlaceholder2:W,mergedFocus:D,isComposing:S,activated:E,showClearButton:Z,mergedSize:C,mergedDisabled:P,textDecorationStyle:pe,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:U,placeholderStyle:et,mergedStatus:T,textAreaScrollContainerWidth:fe,handleTextAreaScroll:jt,handleCompositionStart:le,handleCompositionEnd:re,handleInput:xe,handleInputBlur:te,handleInputFocus:oe,handleWrapperBlur:ye,handleWrapperFocus:be,handleMouseEnter:Ve,handleMouseLeave:We,handleMouseDown:Qe,handleChange:se,handleClick:ke,handleClear:Me,handlePasswordToggleClick:ot,handlePasswordToggleMousedown:Xe,handleWrapperKeydown:ze,handleWrapperKeyup:Pe,handleTextAreaMirrorResize:ut,getTextareaScrollContainer:()=>a.value,mergedTheme:i,cssVars:n?void 0:po,themeClass:to==null?void 0:to.themeClass,onRender:to==null?void 0:to.onRender})},render(){var e,t,o,n,r,i,l;const{mergedClsPrefix:a,mergedStatus:s,themeClass:c,type:d,countGraphemes:u,onRender:f}=this,h=this.$slots;return f==null||f(),v("div",{ref:"wrapperElRef",class:[`${a}-input`,c,s&&`${a}-input--${s}-status`,{[`${a}-input--rtl`]:this.rtlEnabled,[`${a}-input--disabled`]:this.mergedDisabled,[`${a}-input--textarea`]:d==="textarea",[`${a}-input--resizable`]:this.resizable&&!this.autosize,[`${a}-input--autosize`]:this.autosize,[`${a}-input--round`]:this.round&&d!=="textarea",[`${a}-input--pair`]:this.pair,[`${a}-input--focus`]:this.mergedFocus,[`${a}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},v("div",{class:`${a}-input-wrapper`},pt(h.prefix,p=>p&&v("div",{class:`${a}-input__prefix`},p)),d==="textarea"?v(tr,{ref:"textareaScrollbarInstRef",class:`${a}-input__textarea`,container:this.getTextareaScrollContainer,theme:(t=(e=this.theme)===null||e===void 0?void 0:e.peers)===null||t===void 0?void 0:t.Scrollbar,themeOverrides:(n=(o=this.themeOverrides)===null||o===void 0?void 0:o.peers)===null||n===void 0?void 0:n.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var p,g;const{textAreaScrollContainerWidth:b}=this,m={width:this.autosize&&b&&`${b}px`};return v(it,null,v("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${a}-input__textarea-el`,(p=this.inputProps)===null||p===void 0?void 0:p.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(g=this.inputProps)===null||g===void 0?void 0:g.style,m],onBlur:this.handleInputBlur,onFocus:x=>{this.handleInputFocus(x,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?v("div",{class:`${a}-input__placeholder`,style:[this.placeholderStyle,m],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?v(wn,{onResize:this.handleTextAreaMirrorResize},{default:()=>v("div",{ref:"textareaMirrorElRef",class:`${a}-input__textarea-mirror`,key:"mirror"})}):null)}}):v("div",{class:`${a}-input__input`},v("input",Object.assign({type:d==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":d},this.inputProps,{ref:"inputElRef",class:[`${a}-input__input-el`,(r=this.inputProps)===null||r===void 0?void 0:r.class],style:[this.textDecorationStyle[0],(i=this.inputProps)===null||i===void 0?void 0:i.style],tabindex:this.passivelyActivated&&!this.activated?-1:(l=this.inputProps)===null||l===void 0?void 0:l.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,0)},onInput:p=>{this.handleInput(p,0)},onChange:p=>{this.handleChange(p,0)}})),this.showPlaceholder1?v("div",{class:`${a}-input__placeholder`},v("span",null,this.mergedPlaceholder[0])):null,this.autosize?v("div",{class:`${a}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&pt(h.suffix,p=>p||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?v("div",{class:`${a}-input__suffix`},[pt(h["clear-icon-placeholder"],g=>(this.clearable||g)&&v(uc,{clsPrefix:a,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>g,icon:()=>{var b,m;return(m=(b=this.$slots)["clear-icon"])===null||m===void 0?void 0:m.call(b)}})),this.internalLoadingBeforeSuffix?null:p,this.loading!==void 0?v(kv,{clsPrefix:a,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?p:null,this.showCount&&this.type!=="textarea"?v(Fv,null,{default:g=>{var b;const{renderCount:m}=this;return m?m(g):(b=h.count)===null||b===void 0?void 0:b.call(h,g)}}):null,this.mergedShowPasswordOn&&this.type==="password"?v("div",{class:`${a}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Mo(h["password-visible-icon"],()=>[v(Tt,{clsPrefix:a},{default:()=>v(OP,null)})]):Mo(h["password-invisible-icon"],()=>[v(Tt,{clsPrefix:a},{default:()=>v(MP,null)})])):null]):null)),this.pair?v("span",{class:`${a}-input__separator`},Mo(h.separator,()=>[this.separator])):null,this.pair?v("div",{class:`${a}-input-wrapper`},v("div",{class:`${a}-input__input`},v("input",{ref:"inputEl2Ref",type:this.type,class:`${a}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,1)},onInput:p=>{this.handleInput(p,1)},onChange:p=>{this.handleChange(p,1)}}),this.showPlaceholder2?v("div",{class:`${a}-input__placeholder`},v("span",null,this.mergedPlaceholder[1])):null),pt(h.suffix,p=>(this.clearable||p)&&v("div",{class:`${a}-input__suffix`},[this.clearable&&v(uc,{clsPrefix:a,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var g;return(g=h["clear-icon"])===null||g===void 0?void 0:g.call(h)},placeholder:()=>{var g;return(g=h["clear-icon-placeholder"])===null||g===void 0?void 0:g.call(h)}}),p]))):null,this.mergedBordered?v("div",{class:`${a}-input__border`}):null,this.mergedBordered?v("div",{class:`${a}-input__state-border`}):null,this.showCount&&d==="textarea"?v(Fv,null,{default:p=>{var g;const{renderCount:b}=this;return b?b(p):(g=h.count)===null||g===void 0?void 0:g.call(h,p)}}):null)}});function oa(e){return e.type==="group"}function Iv(e){return e.type==="ignored"}function Cc(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Ov(e,t){return{getIsGroup:oa,getIgnored:Iv,getKey(n){return oa(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function lk(e,t,o,n){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const l=[];for(const a of i)if(oa(a)){const s=r(a[n]);s.length&&l.push(Object.assign({},a,{[n]:s}))}else{if(Iv(a))continue;t(o,a)&&l.push(a)}return l}return r(e)}function ak(e,t,o){const n=new Map;return e.forEach(r=>{oa(r)?r[o].forEach(i=>{n.set(i[t],i)}):n.set(r[t],r)}),n}const sk=ui&&"loading"in document.createElement("img");function ck(e={}){var t;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}}const wc=new WeakMap,Sc=new WeakMap,Rc=new WeakMap,dk=(e,t,o)=>{if(!e)return()=>{};const n=ck(t),{root:r}=n.options;let i;const l=wc.get(r);l?i=l:(i=new Map,wc.set(r,i));let a,s;i.has(n.hash)?(s=i.get(n.hash),s[1].has(e)||(a=s[0],s[1].add(e),a.observe(e))):(a=new IntersectionObserver(u=>{u.forEach(f=>{if(f.isIntersecting){const h=Sc.get(f.target),p=Rc.get(f.target);h&&h(),p&&(p.value=!0)}})},n.options),a.observe(e),s=[a,new Set([e])],i.set(n.hash,s));let c=!1;const d=()=>{c||(Sc.delete(e),Rc.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(n.hash),i.size||wc.delete(r))};return Sc.set(e,d),Rc.set(e,o),d};function uk(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:u}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,color:Ue(n,o),colorModal:Ue(d,o),colorPopover:Ue(u,o)}}const fk={common:xt,self:uk},hk="n-avatar-group",pk=I("avatar",` + width: var(--n-merged-size); + height: var(--n-merged-size); + color: #FFF; + font-size: var(--n-font-size); + display: inline-flex; + position: relative; + overflow: hidden; + text-align: center; + border: var(--n-border); + border-radius: var(--n-border-radius); + --n-merged-color: var(--n-color); + background-color: var(--n-merged-color); + transition: + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[Sl(L("&","--n-merged-color: var(--n-color-modal);")),Rl(L("&","--n-merged-color: var(--n-color-popover);")),L("img",` + width: 100%; + height: 100%; + `),H("text",` + white-space: nowrap; + display: inline-block; + position: absolute; + left: 50%; + top: 50%; + `),I("icon",` + vertical-align: bottom; + font-size: calc(var(--n-merged-size) - 6px); + `),H("text","line-height: 1.25")]),vk=Object.assign(Object.assign({},Ie.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),gk=ve({name:"Avatar",props:vk,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Je(e),n=V(!1);let r=null;const i=V(null),l=V(null),a=()=>{const{value:x}=i;if(x&&(r===null||r!==x.innerHTML)){r=x.innerHTML;const{value:w}=l;if(w){const{offsetWidth:C,offsetHeight:P}=w,{offsetWidth:T,offsetHeight:y}=x,B=.9,S=Math.min(C/T*B,P/y*B,1);x.style.transform=`translateX(-50%) translateY(-50%) scale(${S})`}}},s=$e(hk,null),c=F(()=>{const{size:x}=e;if(x)return x;const{size:w}=s||{};return w||"medium"}),d=Ie("Avatar","-avatar",pk,fk,e,t),u=$e(_v,null),f=F(()=>{if(s)return!0;const{round:x,circle:w}=e;return x!==void 0||w!==void 0?x||w:u?u.roundRef.value:!1}),h=F(()=>s?!0:e.bordered||!1),p=F(()=>{const x=c.value,w=f.value,C=h.value,{color:P}=e,{self:{borderRadius:T,fontSize:y,color:B,border:S,colorModal:E,colorPopover:j},common:{cubicBezierEaseInOut:_}}=d.value;let M;return typeof x=="number"?M=`${x}px`:M=d.value.self[me("height",x)],{"--n-font-size":y,"--n-border":C?S:"none","--n-border-radius":w?"50%":T,"--n-color":P||B,"--n-color-modal":P||E,"--n-color-popover":P||j,"--n-bezier":_,"--n-merged-size":`var(--n-avatar-size-override, ${M})`}}),g=o?gt("avatar",F(()=>{const x=c.value,w=f.value,C=h.value,{color:P}=e;let T="";return x&&(typeof x=="number"?T+=`a${x}`:T+=x[0]),w&&(T+="b"),C&&(T+="c"),P&&(T+=gi(P)),T}),p,e):void 0,b=V(!e.lazy);Bt(()=>{if(e.lazy&&e.intersectionObserverOptions){let x;const w=Mt(()=>{x==null||x(),x=void 0,e.lazy&&(x=dk(l.value,e.intersectionObserverOptions,b))});Ft(()=>{w(),x==null||x()})}}),st(()=>{var x;return e.src||((x=e.imgProps)===null||x===void 0?void 0:x.src)},()=>{n.value=!1});const m=V(!e.lazy);return{textRef:i,selfRef:l,mergedRoundRef:f,mergedClsPrefix:t,fitTextTransform:a,cssVars:o?void 0:p,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:n,shouldStartLoading:b,loaded:m,mergedOnError:x=>{if(!b.value)return;n.value=!0;const{onError:w,imgProps:{onError:C}={}}=e;w==null||w(x),C==null||C(x)},mergedOnLoad:x=>{const{onLoad:w,imgProps:{onLoad:C}={}}=e;w==null||w(x),C==null||C(x),m.value=!0}}},render(){var e,t;const{$slots:o,src:n,mergedClsPrefix:r,lazy:i,onRender:l,loaded:a,hasLoadError:s,imgProps:c={}}=this;l==null||l();let d;const u=!a&&!s&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?d=this.renderFallback?this.renderFallback():Mo(o.fallback,()=>[v("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):d=pt(o.default,f=>{if(f)return v(wn,{onResize:this.fitTextTransform},{default:()=>v("span",{ref:"textRef",class:`${r}-avatar__text`},f)});if(n||c.src){const h=this.src||c.src;return v("img",Object.assign(Object.assign({},c),{loading:sk&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?h:void 0:h,"data-image-src":h,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||"",{objectFit:this.objectFit},u?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),v("span",{ref:"selfRef",class:[`${r}-avatar`,this.themeClass],style:this.cssVars},d,i&&u)}});function nr(e){return Ue(e,[255,255,255,.16])}function na(e){return Ue(e,[0,0,0,.12])}const mk="n-button-group",bk={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function xk(e){const{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadius:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:u,textColor3:f,primaryColorHover:h,primaryColorPressed:p,borderColor:g,primaryColor:b,baseColor:m,infoColor:x,infoColorHover:w,infoColorPressed:C,successColor:P,successColorHover:T,successColorPressed:y,warningColor:B,warningColorHover:S,warningColorPressed:E,errorColor:j,errorColorHover:_,errorColorPressed:M,fontWeight:W,buttonColor2:D,buttonColor2Hover:Z,buttonColor2Pressed:U,fontWeightStrong:J}=e;return Object.assign(Object.assign({},bk),{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:D,colorSecondaryHover:Z,colorSecondaryPressed:U,colorTertiary:D,colorTertiaryHover:Z,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:Z,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:f,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:u,textColorText:u,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:u,border:`1px solid ${g}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${g}`,rippleColor:b,colorPrimary:b,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:b,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:b,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:u,textColorGhostPrimary:b,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:b,borderPrimary:`1px solid ${b}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${b}`,rippleColorPrimary:b,colorInfo:x,colorHoverInfo:w,colorPressedInfo:C,colorFocusInfo:w,colorDisabledInfo:x,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:x,textColorTextHoverInfo:w,textColorTextPressedInfo:C,textColorTextFocusInfo:w,textColorTextDisabledInfo:u,textColorGhostInfo:x,textColorGhostHoverInfo:w,textColorGhostPressedInfo:C,textColorGhostFocusInfo:w,textColorGhostDisabledInfo:x,borderInfo:`1px solid ${x}`,borderHoverInfo:`1px solid ${w}`,borderPressedInfo:`1px solid ${C}`,borderFocusInfo:`1px solid ${w}`,borderDisabledInfo:`1px solid ${x}`,rippleColorInfo:x,colorSuccess:P,colorHoverSuccess:T,colorPressedSuccess:y,colorFocusSuccess:T,colorDisabledSuccess:P,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:P,textColorTextHoverSuccess:T,textColorTextPressedSuccess:y,textColorTextFocusSuccess:T,textColorTextDisabledSuccess:u,textColorGhostSuccess:P,textColorGhostHoverSuccess:T,textColorGhostPressedSuccess:y,textColorGhostFocusSuccess:T,textColorGhostDisabledSuccess:P,borderSuccess:`1px solid ${P}`,borderHoverSuccess:`1px solid ${T}`,borderPressedSuccess:`1px solid ${y}`,borderFocusSuccess:`1px solid ${T}`,borderDisabledSuccess:`1px solid ${P}`,rippleColorSuccess:P,colorWarning:B,colorHoverWarning:S,colorPressedWarning:E,colorFocusWarning:S,colorDisabledWarning:B,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:B,textColorTextHoverWarning:S,textColorTextPressedWarning:E,textColorTextFocusWarning:S,textColorTextDisabledWarning:u,textColorGhostWarning:B,textColorGhostHoverWarning:S,textColorGhostPressedWarning:E,textColorGhostFocusWarning:S,textColorGhostDisabledWarning:B,borderWarning:`1px solid ${B}`,borderHoverWarning:`1px solid ${S}`,borderPressedWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${S}`,borderDisabledWarning:`1px solid ${B}`,rippleColorWarning:B,colorError:j,colorHoverError:_,colorPressedError:M,colorFocusError:_,colorDisabledError:j,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:j,textColorTextHoverError:_,textColorTextPressedError:M,textColorTextFocusError:_,textColorTextDisabledError:u,textColorGhostError:j,textColorGhostHoverError:_,textColorGhostPressedError:M,textColorGhostFocusError:_,textColorGhostDisabledError:j,borderError:`1px solid ${j}`,borderHoverError:`1px solid ${_}`,borderPressedError:`1px solid ${M}`,borderFocusError:`1px solid ${_}`,borderDisabledError:`1px solid ${j}`,rippleColorError:j,waveOpacity:"0.6",fontWeight:W,fontWeightStrong:J})}const Mv={name:"Button",common:xt,self:xk},yk=L([I("button",` + margin: 0; + font-weight: var(--n-font-weight); + line-height: 1; + font-family: inherit; + padding: var(--n-padding); + height: var(--n-height); + font-size: var(--n-font-size); + border-radius: var(--n-border-radius); + color: var(--n-text-color); + background-color: var(--n-color); + width: var(--n-width); + white-space: nowrap; + outline: none; + position: relative; + z-index: auto; + border: none; + display: inline-flex; + flex-wrap: nowrap; + flex-shrink: 0; + align-items: center; + justify-content: center; + user-select: none; + -webkit-user-select: none; + text-align: center; + cursor: pointer; + text-decoration: none; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[Y("color",[H("border",{borderColor:"var(--n-border-color)"}),Y("disabled",[H("border",{borderColor:"var(--n-border-color-disabled)"})]),Ye("disabled",[L("&:focus",[H("state-border",{borderColor:"var(--n-border-color-focus)"})]),L("&:hover",[H("state-border",{borderColor:"var(--n-border-color-hover)"})]),L("&:active",[H("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Y("pressed",[H("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Y("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[H("border",{border:"var(--n-border-disabled)"})]),Ye("disabled",[L("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[H("state-border",{border:"var(--n-border-focus)"})]),L("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[H("state-border",{border:"var(--n-border-hover)"})]),L("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[H("state-border",{border:"var(--n-border-pressed)"})]),Y("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[H("state-border",{border:"var(--n-border-pressed)"})])]),Y("loading","cursor: wait;"),I("base-wave",` + pointer-events: none; + top: 0; + right: 0; + bottom: 0; + left: 0; + animation-iteration-count: 1; + animation-duration: var(--n-ripple-duration); + animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); + `,[Y("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),ui&&"MozBoxSizing"in document.createElement("div").style?L("&::moz-focus-inner",{border:0}):null,H("border, state-border",` + position: absolute; + left: 0; + top: 0; + right: 0; + bottom: 0; + border-radius: inherit; + transition: border-color .3s var(--n-bezier); + pointer-events: none; + `),H("border",` + border: var(--n-border); + `),H("state-border",` + border: var(--n-border); + border-color: #0000; + z-index: 1; + `),H("icon",` + margin: var(--n-icon-margin); + margin-left: 0; + height: var(--n-icon-size); + width: var(--n-icon-size); + max-width: var(--n-icon-size); + font-size: var(--n-icon-size); + position: relative; + flex-shrink: 0; + `,[I("icon-slot",` + height: var(--n-icon-size); + width: var(--n-icon-size); + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + display: flex; + align-items: center; + justify-content: center; + `,[Do({top:"50%",originalTransform:"translateY(-50%)"})]),K_()]),H("content",` + display: flex; + align-items: center; + flex-wrap: nowrap; + min-width: 0; + `,[L("~",[H("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Y("block",` + display: flex; + width: 100%; + `),Y("dashed",[H("border, state-border",{borderStyle:"dashed !important"})]),Y("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),L("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),L("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),Ck=Object.assign(Object.assign({},Ie.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!Tv}}),ra=ve({name:"Button",props:Ck,slots:Object,setup(e){const t=V(null),o=V(null),n=V(!1),r=Ze(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=$e(mk,{}),{mergedSizeRef:l}=qn({},{defaultSize:"medium",mergedSize:C=>{const{size:P}=e;if(P)return P;const{size:T}=i;if(T)return T;const{mergedSize:y}=C||{};return y?y.value:"medium"}}),a=F(()=>e.focusable&&!e.disabled),s=C=>{var P;a.value||C.preventDefault(),!e.nativeFocusBehavior&&(C.preventDefault(),!e.disabled&&a.value&&((P=t.value)===null||P===void 0||P.focus({preventScroll:!0})))},c=C=>{var P;if(!e.disabled&&!e.loading){const{onClick:T}=e;T&&ge(T,C),e.text||(P=o.value)===null||P===void 0||P.play()}},d=C=>{switch(C.key){case"Enter":if(!e.keyboard)return;n.value=!1}},u=C=>{switch(C.key){case"Enter":if(!e.keyboard||e.loading){C.preventDefault();return}n.value=!0}},f=()=>{n.value=!1},{inlineThemeDisabled:h,mergedClsPrefixRef:p,mergedRtlRef:g}=Je(e),b=Ie("Button","-button",yk,Mv,e,p),m=qt("Button",g,p),x=F(()=>{const C=b.value,{common:{cubicBezierEaseInOut:P,cubicBezierEaseOut:T},self:y}=C,{rippleDuration:B,opacityDisabled:S,fontWeight:E,fontWeightStrong:j}=y,_=l.value,{dashed:M,type:W,ghost:D,text:Z,color:U,round:J,circle:pe,textColor:fe,secondary:N,tertiary:O,quaternary:A,strong:Q}=e,he={"--n-font-weight":Q?j:E};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const X=W==="tertiary",de=W==="default",R=X?"default":W;if(Z){const te=fe||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":te||y[me("textColorText",R)],"--n-text-color-hover":te?nr(te):y[me("textColorTextHover",R)],"--n-text-color-pressed":te?na(te):y[me("textColorTextPressed",R)],"--n-text-color-focus":te?nr(te):y[me("textColorTextHover",R)],"--n-text-color-disabled":te||y[me("textColorTextDisabled",R)]}}else if(D||M){const te=fe||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||y[me("rippleColor",R)],"--n-text-color":te||y[me("textColorGhost",R)],"--n-text-color-hover":te?nr(te):y[me("textColorGhostHover",R)],"--n-text-color-pressed":te?na(te):y[me("textColorGhostPressed",R)],"--n-text-color-focus":te?nr(te):y[me("textColorGhostHover",R)],"--n-text-color-disabled":te||y[me("textColorGhostDisabled",R)]}}else if(N){const te=de?y.textColor:X?y.textColorTertiary:y[me("color",R)],oe=U||te,ye=W!=="default"&&W!=="tertiary";we={"--n-color":ye?Le(oe,{alpha:Number(y.colorOpacitySecondary)}):y.colorSecondary,"--n-color-hover":ye?Le(oe,{alpha:Number(y.colorOpacitySecondaryHover)}):y.colorSecondaryHover,"--n-color-pressed":ye?Le(oe,{alpha:Number(y.colorOpacitySecondaryPressed)}):y.colorSecondaryPressed,"--n-color-focus":ye?Le(oe,{alpha:Number(y.colorOpacitySecondaryHover)}):y.colorSecondaryHover,"--n-color-disabled":y.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":oe,"--n-text-color-hover":oe,"--n-text-color-pressed":oe,"--n-text-color-focus":oe,"--n-text-color-disabled":oe}}else if(O||A){const te=de?y.textColor:X?y.textColorTertiary:y[me("color",R)],oe=U||te;O?(we["--n-color"]=y.colorTertiary,we["--n-color-hover"]=y.colorTertiaryHover,we["--n-color-pressed"]=y.colorTertiaryPressed,we["--n-color-focus"]=y.colorSecondaryHover,we["--n-color-disabled"]=y.colorTertiary):(we["--n-color"]=y.colorQuaternary,we["--n-color-hover"]=y.colorQuaternaryHover,we["--n-color-pressed"]=y.colorQuaternaryPressed,we["--n-color-focus"]=y.colorQuaternaryHover,we["--n-color-disabled"]=y.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=oe,we["--n-text-color-hover"]=oe,we["--n-text-color-pressed"]=oe,we["--n-text-color-focus"]=oe,we["--n-text-color-disabled"]=oe}else we={"--n-color":U||y[me("color",R)],"--n-color-hover":U?nr(U):y[me("colorHover",R)],"--n-color-pressed":U?na(U):y[me("colorPressed",R)],"--n-color-focus":U?nr(U):y[me("colorFocus",R)],"--n-color-disabled":U||y[me("colorDisabled",R)],"--n-ripple-color":U||y[me("rippleColor",R)],"--n-text-color":fe||(U?y.textColorPrimary:X?y.textColorTertiary:y[me("textColor",R)]),"--n-text-color-hover":fe||(U?y.textColorHoverPrimary:y[me("textColorHover",R)]),"--n-text-color-pressed":fe||(U?y.textColorPressedPrimary:y[me("textColorPressed",R)]),"--n-text-color-focus":fe||(U?y.textColorFocusPrimary:y[me("textColorFocus",R)]),"--n-text-color-disabled":fe||(U?y.textColorDisabledPrimary:y[me("textColorDisabled",R)])};let ae={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};Z?ae={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ae={"--n-border":y[me("border",R)],"--n-border-hover":y[me("borderHover",R)],"--n-border-pressed":y[me("borderPressed",R)],"--n-border-focus":y[me("borderFocus",R)],"--n-border-disabled":y[me("borderDisabled",R)]};const{[me("height",_)]:_e,[me("fontSize",_)]:k,[me("padding",_)]:$,[me("paddingRound",_)]:K,[me("iconSize",_)]:ie,[me("borderRadius",_)]:le,[me("iconMargin",_)]:re,waveOpacity:xe}=y,ne={"--n-width":pe&&!Z?_e:"initial","--n-height":Z?"initial":_e,"--n-font-size":k,"--n-padding":pe||Z?"initial":J?K:$,"--n-icon-size":ie,"--n-icon-margin":re,"--n-border-radius":Z?"initial":pe||J?_e:le};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":P,"--n-bezier-ease-out":T,"--n-ripple-duration":B,"--n-opacity-disabled":S,"--n-wave-opacity":xe},he),we),ae),ne)}),w=h?gt("button",F(()=>{let C="";const{dashed:P,type:T,ghost:y,text:B,color:S,round:E,circle:j,textColor:_,secondary:M,tertiary:W,quaternary:D,strong:Z}=e;P&&(C+="a"),y&&(C+="b"),B&&(C+="c"),E&&(C+="d"),j&&(C+="e"),M&&(C+="f"),W&&(C+="g"),D&&(C+="h"),Z&&(C+="i"),S&&(C+=`j${gi(S)}`),_&&(C+=`k${gi(_)}`);const{value:U}=l;return C+=`l${U[0]}`,C+=`m${T[0]}`,C}),x,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:p,mergedFocusable:a,mergedSize:l,showBorder:r,enterPressed:n,rtlEnabled:m,handleMousedown:s,handleKeydown:u,handleBlur:f,handleKeyup:d,handleClick:c,customColorCssVars:F(()=>{const{color:C}=e;if(!C)return null;const P=nr(C);return{"--n-border-color":C,"--n-border-color-hover":P,"--n-border-color-pressed":na(C),"--n-border-color-focus":P,"--n-border-color-disabled":C}}),cssVars:h?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const n=pt(this.$slots.default,r=>r&&v("span",{class:`${e}-button__content`},r));return v(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,v(cv,{width:!0},{default:()=>pt(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&v("span",{class:`${e}-button__icon`,style:{margin:Bs(this.$slots.default)?"0":""}},v(_i,null,{default:()=>this.loading?v(ki,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):v("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&n,this.text?null:v(q_,{ref:"waveElRef",clsPrefix:e}),this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),wk={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function Sk(e){const{primaryColor:t,borderRadius:o,lineHeight:n,fontSize:r,cardColor:i,textColor2:l,textColor1:a,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeColorHover:h,closeColorPressed:p,modalColor:g,boxShadow1:b,popoverColor:m,actionColor:x}=e;return Object.assign(Object.assign({},wk),{lineHeight:n,color:i,colorModal:g,colorPopover:m,colorTarget:t,colorEmbedded:x,colorEmbeddedModal:x,colorEmbeddedPopover:x,textColor:l,titleTextColor:a,borderColor:s,actionColor:x,titleFontWeight:c,closeColorHover:h,closeColorPressed:p,closeBorderRadius:o,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:b,borderRadius:o})}const Rk={common:xt,self:Sk},Pk=L([I("card",` + font-size: var(--n-font-size); + line-height: var(--n-line-height); + display: flex; + flex-direction: column; + width: 100%; + box-sizing: border-box; + position: relative; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + color: var(--n-text-color); + word-break: break-word; + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[Zx({background:"var(--n-color-modal)"}),Y("hoverable",[L("&:hover","box-shadow: var(--n-box-shadow);")]),Y("content-segmented",[L(">",[H("content",{paddingTop:"var(--n-padding-bottom)"})])]),Y("content-soft-segmented",[L(">",[H("content",` + margin: 0 var(--n-padding-left); + padding: var(--n-padding-bottom) 0; + `)])]),Y("footer-segmented",[L(">",[H("footer",{paddingTop:"var(--n-padding-bottom)"})])]),Y("footer-soft-segmented",[L(">",[H("footer",` + padding: var(--n-padding-bottom) 0; + margin: 0 var(--n-padding-left); + `)])]),L(">",[I("card-header",` + box-sizing: border-box; + display: flex; + align-items: center; + font-size: var(--n-title-font-size); + padding: + var(--n-padding-top) + var(--n-padding-left) + var(--n-padding-bottom) + var(--n-padding-left); + `,[H("main",` + font-weight: var(--n-title-font-weight); + transition: color .3s var(--n-bezier); + flex: 1; + min-width: 0; + color: var(--n-title-text-color); + `),H("extra",` + display: flex; + align-items: center; + font-size: var(--n-font-size); + font-weight: 400; + transition: color .3s var(--n-bezier); + color: var(--n-text-color); + `),H("close",` + margin: 0 0 0 8px; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `)]),H("action",` + box-sizing: border-box; + transition: + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier); + background-clip: padding-box; + background-color: var(--n-action-color); + `),H("content","flex: 1; min-width: 0;"),H("content, footer",` + box-sizing: border-box; + padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); + font-size: var(--n-font-size); + `,[L("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),H("action",` + background-color: var(--n-action-color); + padding: var(--n-padding-bottom) var(--n-padding-left); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + `)]),I("card-cover",` + overflow: hidden; + width: 100%; + border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; + `,[L("img",` + display: block; + width: 100%; + `)]),Y("bordered",` + border: 1px solid var(--n-border-color); + `,[L("&:target","border-color: var(--n-color-target);")]),Y("action-segmented",[L(">",[H("action",[L("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Y("content-segmented, content-soft-segmented",[L(">",[H("content",{transition:"border-color 0.3s var(--n-bezier)"},[L("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Y("footer-segmented, footer-soft-segmented",[L(">",[H("footer",{transition:"border-color 0.3s var(--n-bezier)"},[L("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Y("embedded",` + background-color: var(--n-color-embedded); + `)]),Sl(I("card",` + background: var(--n-color-modal); + `,[Y("embedded",` + background-color: var(--n-color-embedded-modal); + `)])),Rl(I("card",` + background: var(--n-color-popover); + `,[Y("embedded",` + background-color: var(--n-color-embedded-popover); + `)]))]),_k={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},kk=Object.assign(Object.assign({},Ie.props),_k),zk=ve({name:"Card",props:kk,slots:Object,setup(e){const t=()=>{const{onClose:c}=e;c&&ge(c)},{inlineThemeDisabled:o,mergedClsPrefixRef:n,mergedRtlRef:r}=Je(e),i=Ie("Card","-card",Pk,Rk,e,n),l=qt("Card",r,n),a=F(()=>{const{size:c}=e,{self:{color:d,colorModal:u,colorTarget:f,textColor:h,titleTextColor:p,titleFontWeight:g,borderColor:b,actionColor:m,borderRadius:x,lineHeight:w,closeIconColor:C,closeIconColorHover:P,closeIconColorPressed:T,closeColorHover:y,closeColorPressed:B,closeBorderRadius:S,closeIconSize:E,closeSize:j,boxShadow:_,colorPopover:M,colorEmbedded:W,colorEmbeddedModal:D,colorEmbeddedPopover:Z,[me("padding",c)]:U,[me("fontSize",c)]:J,[me("titleFontSize",c)]:pe},common:{cubicBezierEaseInOut:fe}}=i.value,{top:N,left:O,bottom:A}=no(U);return{"--n-bezier":fe,"--n-border-radius":x,"--n-color":d,"--n-color-modal":u,"--n-color-popover":M,"--n-color-embedded":W,"--n-color-embedded-modal":D,"--n-color-embedded-popover":Z,"--n-color-target":f,"--n-text-color":h,"--n-line-height":w,"--n-action-color":m,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":C,"--n-close-icon-color-hover":P,"--n-close-icon-color-pressed":T,"--n-close-color-hover":y,"--n-close-color-pressed":B,"--n-border-color":b,"--n-box-shadow":_,"--n-padding-top":N,"--n-padding-bottom":A,"--n-padding-left":O,"--n-font-size":J,"--n-title-font-size":pe,"--n-close-size":j,"--n-close-icon-size":E,"--n-close-border-radius":S}}),s=o?gt("card",F(()=>e.size[0]),a,e):void 0;return{rtlEnabled:l,mergedClsPrefix:n,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:n,rtlEnabled:r,onRender:i,embedded:l,tag:a,$slots:s}=this;return i==null||i(),v(a,{class:[`${n}-card`,this.themeClass,l&&`${n}-card--embedded`,{[`${n}-card--rtl`]:r,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:o}],style:this.cssVars,role:this.role},pt(s.cover,c=>{const d=this.cover?Co([this.cover()]):c;return d&&v("div",{class:`${n}-card-cover`,role:"none"},d)}),pt(s.header,c=>{const{title:d}=this,u=d?Co(typeof d=="function"?[d()]:[d]):c;return u||this.closable?v("div",{class:[`${n}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},v("div",{class:`${n}-card-header__main`,role:"heading"},u),pt(s["header-extra"],f=>{const h=this.headerExtra?Co([this.headerExtra()]):f;return h&&v("div",{class:[`${n}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},h)}),this.closable&&v(sv,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),pt(s.default,c=>{const{content:d}=this,u=d?Co(typeof d=="function"?[d()]:[d]):c;return u&&v("div",{class:[`${n}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},u)}),pt(s.footer,c=>{const d=this.footer?Co([this.footer()]):c;return d&&v("div",{class:[`${n}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},d)}),pt(s.action,c=>{const d=this.action?Co([this.action()]):c;return d&&v("div",{class:`${n}-card__action`,role:"none"},d)}))}}),Tk={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function $k(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:l,borderColor:a,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:p}=e;return Object.assign(Object.assign({},Tk),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:n,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:l,checkMarkColorDisabledChecked:l,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${Le(s,{alpha:.3})}`,textColor:c,textColorDisabled:l})}const Bv={name:"Checkbox",common:xt,self:$k},Hv="n-checkbox-group",Ek=ve({name:"CheckboxGroup",props:{min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},setup(e){const{mergedClsPrefixRef:t}=Je(e),o=qn(e),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=V(e.defaultValue),l=F(()=>e.value),a=It(l,i),s=F(()=>{var u;return((u=a.value)===null||u===void 0?void 0:u.length)||0}),c=F(()=>Array.isArray(a.value)?new Set(a.value):new Set);function d(u,f){const{nTriggerFormInput:h,nTriggerFormChange:p}=o,{onChange:g,"onUpdate:value":b,onUpdateValue:m}=e;if(Array.isArray(a.value)){const x=Array.from(a.value),w=x.findIndex(C=>C===f);u?~w||(x.push(f),m&&ge(m,x,{actionType:"check",value:f}),b&&ge(b,x,{actionType:"check",value:f}),h(),p(),i.value=x,g&&ge(g,x)):~w&&(x.splice(w,1),m&&ge(m,x,{actionType:"uncheck",value:f}),b&&ge(b,x,{actionType:"uncheck",value:f}),g&&ge(g,x),i.value=x,h(),p())}else u?(m&&ge(m,[f],{actionType:"check",value:f}),b&&ge(b,[f],{actionType:"check",value:f}),g&&ge(g,[f]),i.value=[f],h(),p()):(m&&ge(m,[],{actionType:"uncheck",value:f}),b&&ge(b,[],{actionType:"uncheck",value:f}),g&&ge(g,[]),i.value=[],h(),p())}return tt(Hv,{checkedCountRef:s,maxRef:Se(e,"max"),minRef:Se(e,"min"),valueSetRef:c,disabledRef:r,mergedSizeRef:n,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return v("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),Fk=()=>v("svg",{viewBox:"0 0 64 64",class:"check-icon"},v("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),Ak=()=>v("svg",{viewBox:"0 0 100 100",class:"line-icon"},v("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),Ik=L([I("checkbox",` + font-size: var(--n-font-size); + outline: none; + cursor: pointer; + display: inline-flex; + flex-wrap: nowrap; + align-items: flex-start; + word-break: break-word; + line-height: var(--n-size); + --n-merged-color-table: var(--n-color-table); + `,[Y("show-label","line-height: var(--n-label-line-height);"),L("&:hover",[I("checkbox-box",[H("border","border: var(--n-border-checked);")])]),L("&:focus:not(:active)",[I("checkbox-box",[H("border",` + border: var(--n-border-focus); + box-shadow: var(--n-box-shadow-focus); + `)])]),Y("inside-table",[I("checkbox-box",` + background-color: var(--n-merged-color-table); + `)]),Y("checked",[I("checkbox-box",` + background-color: var(--n-color-checked); + `,[I("checkbox-icon",[L(".check-icon",` + opacity: 1; + transform: scale(1); + `)])])]),Y("indeterminate",[I("checkbox-box",[I("checkbox-icon",[L(".check-icon",` + opacity: 0; + transform: scale(.5); + `),L(".line-icon",` + opacity: 1; + transform: scale(1); + `)])])]),Y("checked, indeterminate",[L("&:focus:not(:active)",[I("checkbox-box",[H("border",` + border: var(--n-border-checked); + box-shadow: var(--n-box-shadow-focus); + `)])]),I("checkbox-box",` + background-color: var(--n-color-checked); + border-left: 0; + border-top: 0; + `,[H("border",{border:"var(--n-border-checked)"})])]),Y("disabled",{cursor:"not-allowed"},[Y("checked",[I("checkbox-box",` + background-color: var(--n-color-disabled-checked); + `,[H("border",{border:"var(--n-border-disabled-checked)"}),I("checkbox-icon",[L(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),I("checkbox-box",` + background-color: var(--n-color-disabled); + `,[H("border",` + border: var(--n-border-disabled); + `),I("checkbox-icon",[L(".check-icon, .line-icon",` + fill: var(--n-check-mark-color-disabled); + `)])]),H("label",` + color: var(--n-text-color-disabled); + `)]),I("checkbox-box-wrapper",` + position: relative; + width: var(--n-size); + flex-shrink: 0; + flex-grow: 0; + user-select: none; + -webkit-user-select: none; + `),I("checkbox-box",` + position: absolute; + left: 0; + top: 50%; + transform: translateY(-50%); + height: var(--n-size); + width: var(--n-size); + display: inline-block; + box-sizing: border-box; + border-radius: var(--n-border-radius); + background-color: var(--n-color); + transition: background-color 0.3s var(--n-bezier); + `,[H("border",` + transition: + border-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + border-radius: inherit; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + border: var(--n-border); + `),I("checkbox-icon",` + display: flex; + align-items: center; + justify-content: center; + position: absolute; + left: 1px; + right: 1px; + top: 1px; + bottom: 1px; + `,[L(".check-icon, .line-icon",` + width: 100%; + fill: var(--n-check-mark-color); + opacity: 0; + transform: scale(0.5); + transform-origin: center; + transition: + fill 0.3s var(--n-bezier), + transform 0.3s var(--n-bezier), + opacity 0.3s var(--n-bezier), + border-color 0.3s var(--n-bezier); + `),Do({left:"1px",top:"1px"})])]),H("label",` + color: var(--n-text-color); + transition: color .3s var(--n-bezier); + user-select: none; + -webkit-user-select: none; + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + `,[L("&:empty",{display:"none"})])]),Sl(I("checkbox",` + --n-merged-color-table: var(--n-color-table-modal); + `)),Rl(I("checkbox",` + --n-merged-color-table: var(--n-color-table-popover); + `))]),Ok=Object.assign(Object.assign({},Ie.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Pc=ve({name:"Checkbox",props:Ok,setup(e){const t=$e(Hv,null),o=V(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=Je(e),l=V(e.defaultChecked),a=Se(e,"checked"),s=It(a,l),c=Ze(()=>{if(t){const T=t.valueSetRef.value;return T&&e.value!==void 0?T.has(e.value):!1}else return s.value===e.checkedValue}),d=qn(e,{mergedSize(T){const{size:y}=e;if(y!==void 0)return y;if(t){const{value:B}=t.mergedSizeRef;if(B!==void 0)return B}if(T){const{mergedSize:B}=T;if(B!==void 0)return B.value}return"medium"},mergedDisabled(T){const{disabled:y}=e;if(y!==void 0)return y;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:B},checkedCountRef:S}=t;if(B!==void 0&&S.value>=B&&!c.value)return!0;const{minRef:{value:E}}=t;if(E!==void 0&&S.value<=E&&c.value)return!0}return T?T.disabled.value:!1}}),{mergedDisabledRef:u,mergedSizeRef:f}=d,h=Ie("Checkbox","-checkbox",Ik,Bv,e,n);function p(T){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:y,"onUpdate:checked":B,onUpdateChecked:S}=e,{nTriggerFormInput:E,nTriggerFormChange:j}=d,_=c.value?e.uncheckedValue:e.checkedValue;B&&ge(B,_,T),S&&ge(S,_,T),y&&ge(y,_,T),E(),j(),l.value=_}}function g(T){u.value||p(T)}function b(T){if(!u.value)switch(T.key){case" ":case"Enter":p(T)}}function m(T){switch(T.key){case" ":T.preventDefault()}}const x={focus:()=>{var T;(T=o.value)===null||T===void 0||T.focus()},blur:()=>{var T;(T=o.value)===null||T===void 0||T.blur()}},w=qt("Checkbox",i,n),C=F(()=>{const{value:T}=f,{common:{cubicBezierEaseInOut:y},self:{borderRadius:B,color:S,colorChecked:E,colorDisabled:j,colorTableHeader:_,colorTableHeaderModal:M,colorTableHeaderPopover:W,checkMarkColor:D,checkMarkColorDisabled:Z,border:U,borderFocus:J,borderDisabled:pe,borderChecked:fe,boxShadowFocus:N,textColor:O,textColorDisabled:A,checkMarkColorDisabledChecked:Q,colorDisabledChecked:he,borderDisabledChecked:we,labelPadding:X,labelLineHeight:de,labelFontWeight:R,[me("fontSize",T)]:ae,[me("size",T)]:_e}}=h.value;return{"--n-label-line-height":de,"--n-label-font-weight":R,"--n-size":_e,"--n-bezier":y,"--n-border-radius":B,"--n-border":U,"--n-border-checked":fe,"--n-border-focus":J,"--n-border-disabled":pe,"--n-border-disabled-checked":we,"--n-box-shadow-focus":N,"--n-color":S,"--n-color-checked":E,"--n-color-table":_,"--n-color-table-modal":M,"--n-color-table-popover":W,"--n-color-disabled":j,"--n-color-disabled-checked":he,"--n-text-color":O,"--n-text-color-disabled":A,"--n-check-mark-color":D,"--n-check-mark-color-disabled":Z,"--n-check-mark-color-disabled-checked":Q,"--n-font-size":ae,"--n-label-padding":X}}),P=r?gt("checkbox",F(()=>f.value[0]),C,e):void 0;return Object.assign(d,x,{rtlEnabled:w,selfRef:o,mergedClsPrefix:n,mergedDisabled:u,renderedChecked:c,mergedTheme:h,labelId:Tl(),handleClick:g,handleKeyUp:b,handleKeyDown:m,cssVars:r?void 0:C,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender})},render(){var e;const{$slots:t,renderedChecked:o,mergedDisabled:n,indeterminate:r,privateInsideTable:i,cssVars:l,labelId:a,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:u,handleKeyDown:f,handleClick:h}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=pt(t.default,g=>s||g?v("span",{class:`${c}-checkbox__label`,id:a},s||g):null);return v("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,o&&`${c}-checkbox--checked`,n&&`${c}-checkbox--disabled`,r&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,p&&`${c}-checkbox--show-label`],tabindex:n||!d?void 0:0,role:"checkbox","aria-checked":r?"mixed":o,"aria-labelledby":a,style:l,onKeyup:u,onKeydown:f,onClick:h,onMousedown:()=>{bt("selectstart",window,g=>{g.preventDefault()},{once:!0})}},v("div",{class:`${c}-checkbox-box-wrapper`}," ",v("div",{class:`${c}-checkbox-box`},v(_i,null,{default:()=>this.indeterminate?v("div",{key:"indeterminate",class:`${c}-checkbox-icon`},Ak()):v("div",{key:"check",class:`${c}-checkbox-icon`},Fk())}),v("div",{class:`${c}-checkbox-box__border`}))),p)}});function Mk(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const _c={name:"Popselect",common:xt,peers:{Popover:Fr,InternalSelectMenu:xc},self:Mk},Dv="n-popselect",Bk=I("popselect-menu",` + box-shadow: var(--n-menu-box-shadow); +`),kc={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},Lv=Nl(kc),Hk=ve({name:"PopselectPanel",props:kc,setup(e){const t=$e(Dv),{mergedClsPrefixRef:o,inlineThemeDisabled:n}=Je(e),r=Ie("Popselect","-pop-select",Bk,_c,t.props,o),i=F(()=>or(e.options,Ov("value","children")));function l(f,h){const{onUpdateValue:p,"onUpdate:value":g,onChange:b}=e;p&&ge(p,f,h),g&&ge(g,f,h),b&&ge(b,f,h)}function a(f){c(f.key)}function s(f){!uo(f,"action")&&!uo(f,"empty")&&!uo(f,"header")&&f.preventDefault()}function c(f){const{value:{getNode:h}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],g=[];let b=!0;e.value.forEach(m=>{if(m===f){b=!1;return}const x=h(m);x&&(p.push(x.key),g.push(x.rawNode))}),b&&(p.push(f),g.push(h(f).rawNode)),l(p,g)}else{const p=h(f);p&&l([f],[p.rawNode])}else if(e.value===f&&e.cancelable)l(null,null);else{const p=h(f);p&&l(f,p.rawNode);const{"onUpdate:show":g,onUpdateShow:b}=t.props;g&&ge(g,!1),b&&ge(b,!1),t.setShow(!1)}so(()=>{t.syncPosition()})}st(Se(e,"options"),()=>{so(()=>{t.syncPosition()})});const d=F(()=>{const{self:{menuBoxShadow:f}}=r.value;return{"--n-menu-box-shadow":f}}),u=n?gt("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:o,treeMate:i,handleToggle:a,handleMenuMousedown:s,cssVars:n?void 0:d,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(Sv,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,o;return((o=(t=this.$slots).header)===null||o===void 0?void 0:o.call(t))||[]},action:()=>{var t,o;return((o=(t=this.$slots).action)===null||o===void 0?void 0:o.call(t))||[]},empty:()=>{var t,o;return((o=(t=this.$slots).empty)===null||o===void 0?void 0:o.call(t))||[]}})}}),Dk=Object.assign(Object.assign(Object.assign(Object.assign({},Ie.props),Jh(Ar,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ar.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),kc),Lk=ve({name:"Popselect",props:Dk,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Je(e),o=Ie("Popselect","-popselect",void 0,_c,e,t),n=V(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function i(a){var s;(s=n.value)===null||s===void 0||s.setShow(a)}return tt(Dv,{props:e,mergedThemeRef:o,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:n,mergedTheme:o})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(o,n,r,i,l)=>{const{$attrs:a}=this;return v(Hk,Object.assign({},a,{class:[a.class,o],style:[a.style,...r]},zr(this.$props,Lv),{ref:Zh(n),onMouseenter:mi([i,a.onMouseenter]),onMouseleave:mi([l,a.onMouseleave])}),{header:()=>{var s,c;return(c=(s=this.$slots).header)===null||c===void 0?void 0:c.call(s)},action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return v(zi,Object.assign({},Jh(this.$props,Lv),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var o,n;return(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o)}})}});function Nk(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Nv={name:"Select",common:xt,peers:{InternalSelection:zv,InternalSelectMenu:xc},self:Nk},jk=L([I("select",` + z-index: auto; + outline: none; + width: 100%; + position: relative; + font-weight: var(--n-font-weight); + `),I("select-menu",` + margin: 4px 0; + box-shadow: var(--n-menu-box-shadow); + `,[Ql({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),Wk=Object.assign(Object.assign({},Ie.props),{to:Io.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),Vk=ve({name:"Select",props:Wk,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:n,inlineThemeDisabled:r}=Je(e),i=Ie("Select","-select",jk,Nv,e,t),l=V(e.defaultValue),a=Se(e,"value"),s=It(a,l),c=V(!1),d=V(""),u=vs(e,["items","options"]),f=V([]),h=V([]),p=F(()=>h.value.concat(f.value).concat(u.value)),g=F(()=>{const{filter:z}=e;if(z)return z;const{labelField:q,valueField:ce}=e;return(Ce,Re)=>{if(!Re)return!1;const Te=Re[q];if(typeof Te=="string")return Cc(Ce,Te);const Ee=Re[ce];return typeof Ee=="string"?Cc(Ce,Ee):typeof Ee=="number"?Cc(Ce,String(Ee)):!1}}),b=F(()=>{if(e.remote)return u.value;{const{value:z}=p,{value:q}=d;return!q.length||!e.filterable?z:lk(z,g.value,q,e.childrenField)}}),m=F(()=>{const{valueField:z,childrenField:q}=e,ce=Ov(z,q);return or(b.value,ce)}),x=F(()=>ak(p.value,e.valueField,e.childrenField)),w=V(!1),C=It(Se(e,"show"),w),P=V(null),T=V(null),y=V(null),{localeRef:B}=Pi("Select"),S=F(()=>{var z;return(z=e.placeholder)!==null&&z!==void 0?z:B.value.placeholder}),E=[],j=V(new Map),_=F(()=>{const{fallbackOption:z}=e;if(z===void 0){const{labelField:q,valueField:ce}=e;return Ce=>({[q]:String(Ce),[ce]:Ce})}return z===!1?!1:q=>Object.assign(z(q),{value:q})});function M(z){const q=e.remote,{value:ce}=j,{value:Ce}=x,{value:Re}=_,Te=[];return z.forEach(Ee=>{if(Ce.has(Ee))Te.push(Ce.get(Ee));else if(q&&ce.has(Ee))Te.push(ce.get(Ee));else if(Re){const Ae=Re(Ee);Ae&&Te.push(Ae)}}),Te}const W=F(()=>{if(e.multiple){const{value:z}=s;return Array.isArray(z)?M(z):[]}return null}),D=F(()=>{const{value:z}=s;return!e.multiple&&!Array.isArray(z)?z===null?null:M([z])[0]||null:null}),Z=qn(e),{mergedSizeRef:U,mergedDisabledRef:J,mergedStatusRef:pe}=Z;function fe(z,q){const{onChange:ce,"onUpdate:value":Ce,onUpdateValue:Re}=e,{nTriggerFormChange:Te,nTriggerFormInput:Ee}=Z;ce&&ge(ce,z,q),Re&&ge(Re,z,q),Ce&&ge(Ce,z,q),l.value=z,Te(),Ee()}function N(z){const{onBlur:q}=e,{nTriggerFormBlur:ce}=Z;q&&ge(q,z),ce()}function O(){const{onClear:z}=e;z&&ge(z)}function A(z){const{onFocus:q,showOnFocus:ce}=e,{nTriggerFormFocus:Ce}=Z;q&&ge(q,z),Ce(),ce&&de()}function Q(z){const{onSearch:q}=e;q&&ge(q,z)}function he(z){const{onScroll:q}=e;q&&ge(q,z)}function we(){var z;const{remote:q,multiple:ce}=e;if(q){const{value:Ce}=j;if(ce){const{valueField:Re}=e;(z=W.value)===null||z===void 0||z.forEach(Te=>{Ce.set(Te[Re],Te)})}else{const Re=D.value;Re&&Ce.set(Re[e.valueField],Re)}}}function X(z){const{onUpdateShow:q,"onUpdate:show":ce}=e;q&&ge(q,z),ce&&ge(ce,z),w.value=z}function de(){J.value||(X(!0),w.value=!0,e.filterable&&We())}function R(){X(!1)}function ae(){d.value="",h.value=E}const _e=V(!1);function k(){e.filterable&&(_e.value=!0)}function $(){e.filterable&&(_e.value=!1,C.value||ae())}function K(){J.value||(C.value?e.filterable?We():R():de())}function ie(z){var q,ce;!((ce=(q=y.value)===null||q===void 0?void 0:q.selfRef)===null||ce===void 0)&&ce.contains(z.relatedTarget)||(c.value=!1,N(z),R())}function le(z){A(z),c.value=!0}function re(){c.value=!0}function xe(z){var q;!((q=P.value)===null||q===void 0)&&q.$el.contains(z.relatedTarget)||(c.value=!1,N(z),R())}function ne(){var z;(z=P.value)===null||z===void 0||z.focus(),R()}function te(z){var q;C.value&&(!((q=P.value)===null||q===void 0)&&q.$el.contains(ci(z))||R())}function oe(z){if(!Array.isArray(z))return[];if(_.value)return Array.from(z);{const{remote:q}=e,{value:ce}=x;if(q){const{value:Ce}=j;return z.filter(Re=>ce.has(Re)||Ce.has(Re))}else return z.filter(Ce=>ce.has(Ce))}}function ye(z){be(z.rawNode)}function be(z){if(J.value)return;const{tag:q,remote:ce,clearFilterAfterSelect:Ce,valueField:Re}=e;if(q&&!ce){const{value:Te}=h,Ee=Te[0]||null;if(Ee){const Ae=f.value;Ae.length?Ae.push(Ee):f.value=[Ee],h.value=E}}if(ce&&j.value.set(z[Re],z),e.multiple){const Te=oe(s.value),Ee=Te.findIndex(Ae=>Ae===z[Re]);if(~Ee){if(Te.splice(Ee,1),q&&!ce){const Ae=ee(z[Re]);~Ae&&(f.value.splice(Ae,1),Ce&&(d.value=""))}}else Te.push(z[Re]),Ce&&(d.value="");fe(Te,M(Te))}else{if(q&&!ce){const Te=ee(z[Re]);~Te?f.value=[f.value[Te]]:f.value=E}Ve(),R(),fe(z[Re],z)}}function ee(z){return f.value.findIndex(ce=>ce[e.valueField]===z)}function se(z){C.value||de();const{value:q}=z.target;d.value=q;const{tag:ce,remote:Ce}=e;if(Q(q),ce&&!Ce){if(!q){h.value=E;return}const{onCreate:Re}=e,Te=Re?Re(q):{[e.labelField]:q,[e.valueField]:q},{valueField:Ee,labelField:Ae}=e;u.value.some(Ge=>Ge[Ee]===Te[Ee]||Ge[Ae]===Te[Ae])||f.value.some(Ge=>Ge[Ee]===Te[Ee]||Ge[Ae]===Te[Ae])?h.value=E:h.value=[Te]}}function ke(z){z.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&R(),O(),q?fe([],[]):fe(null,null)}function Me(z){!uo(z,"action")&&!uo(z,"empty")&&!uo(z,"header")&&z.preventDefault()}function He(z){he(z)}function Qe(z){var q,ce,Ce,Re,Te;if(!e.keyboard){z.preventDefault();return}switch(z.key){case" ":if(e.filterable)break;z.preventDefault();case"Enter":if(!(!((q=P.value)===null||q===void 0)&&q.isComposing)){if(C.value){const Ee=(ce=y.value)===null||ce===void 0?void 0:ce.getPendingTmNode();Ee?ye(Ee):e.filterable||(R(),Ve())}else if(de(),e.tag&&_e.value){const Ee=h.value[0];if(Ee){const Ae=Ee[e.valueField],{value:Ge}=s;e.multiple&&Array.isArray(Ge)&&Ge.includes(Ae)||be(Ee)}}}z.preventDefault();break;case"ArrowUp":if(z.preventDefault(),e.loading)return;C.value&&((Ce=y.value)===null||Ce===void 0||Ce.prev());break;case"ArrowDown":if(z.preventDefault(),e.loading)return;C.value?(Re=y.value)===null||Re===void 0||Re.next():de();break;case"Escape":C.value&&(CC(z),R()),(Te=P.value)===null||Te===void 0||Te.focus();break}}function Ve(){var z;(z=P.value)===null||z===void 0||z.focus()}function We(){var z;(z=P.value)===null||z===void 0||z.focusInput()}function ot(){var z;C.value&&((z=T.value)===null||z===void 0||z.syncPosition())}we(),st(Se(e,"options"),we);const Xe={focus:()=>{var z;(z=P.value)===null||z===void 0||z.focus()},focusInput:()=>{var z;(z=P.value)===null||z===void 0||z.focusInput()},blur:()=>{var z;(z=P.value)===null||z===void 0||z.blur()},blurInput:()=>{var z;(z=P.value)===null||z===void 0||z.blurInput()}},Pe=F(()=>{const{self:{menuBoxShadow:z}}=i.value;return{"--n-menu-box-shadow":z}}),ze=r?gt("select",void 0,Pe,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:pe,mergedClsPrefix:t,mergedBordered:o,namespace:n,treeMate:m,isMounted:El(),triggerRef:P,menuRef:y,pattern:d,uncontrolledShow:w,mergedShow:C,adjustedTo:Io(e),uncontrolledValue:l,mergedValue:s,followerRef:T,localizedPlaceholder:S,selectedOption:D,selectedOptions:W,mergedSize:U,mergedDisabled:J,focused:c,activeWithoutMenuOpen:_e,inlineThemeDisabled:r,onTriggerInputFocus:k,onTriggerInputBlur:$,handleTriggerOrMenuResize:ot,handleMenuFocus:re,handleMenuBlur:xe,handleMenuTabOut:ne,handleTriggerClick:K,handleToggle:ye,handleDeleteOption:be,handlePatternInput:se,handleClear:ke,handleTriggerBlur:ie,handleTriggerFocus:le,handleKeydown:Qe,handleMenuAfterLeave:ae,handleMenuClickOutside:te,handleMenuScroll:He,handleMenuKeydown:Qe,handleMenuMousedown:Me,mergedTheme:i,cssVars:r?void 0:Pe,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){return v("div",{class:`${this.mergedClsPrefix}-select`},v(Ss,null,{default:()=>[v(Rs,null,{default:()=>v(U_,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),v(zs,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Io.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>v(Yo,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),bo(v(Sv,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var n,r;return[(r=(n=this.$slots).empty)===null||r===void 0?void 0:r.call(n)]},header:()=>{var n,r;return[(r=(n=this.$slots).header)===null||r===void 0?void 0:r.call(n)]},action:()=>{var n,r;return[(r=(n=this.$slots).action)===null||r===void 0?void 0:r.call(n)]}}),this.displayDirective==="show"?[[ef,this.mergedShow],[Al,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Al,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),Uk={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function Kk(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:l,borderColor:a,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:u,heightTiny:f,heightSmall:h,heightMedium:p}=e;return Object.assign(Object.assign({},Uk),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:r,itemTextColorActive:o,itemTextColorDisabled:l,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:s,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:u,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:l})}const jv={name:"Pagination",common:xt,peers:{Select:Nv,Input:$v,Popselect:_c},self:Kk},Wv=` + background: var(--n-item-color-hover); + color: var(--n-item-text-color-hover); + border: var(--n-item-border-hover); +`,Vv=[Y("button",` + background: var(--n-button-color-hover); + border: var(--n-button-border-hover); + color: var(--n-button-icon-color-hover); + `)],Gk=I("pagination",` + display: flex; + vertical-align: middle; + font-size: var(--n-item-font-size); + flex-wrap: nowrap; +`,[I("pagination-prefix",` + display: flex; + align-items: center; + margin: var(--n-prefix-margin); + `),I("pagination-suffix",` + display: flex; + align-items: center; + margin: var(--n-suffix-margin); + `),L("> *:not(:first-child)",` + margin: var(--n-item-margin); + `),I("select",` + width: var(--n-select-width); + `),L("&.transition-disabled",[I("pagination-item","transition: none!important;")]),I("pagination-quick-jumper",` + white-space: nowrap; + display: flex; + color: var(--n-jumper-text-color); + transition: color .3s var(--n-bezier); + align-items: center; + font-size: var(--n-jumper-font-size); + `,[I("input",` + margin: var(--n-input-margin); + width: var(--n-input-width); + `)]),I("pagination-item",` + position: relative; + cursor: pointer; + user-select: none; + -webkit-user-select: none; + display: flex; + align-items: center; + justify-content: center; + box-sizing: border-box; + min-width: var(--n-item-size); + height: var(--n-item-size); + padding: var(--n-item-padding); + background-color: var(--n-item-color); + color: var(--n-item-text-color); + border-radius: var(--n-item-border-radius); + border: var(--n-item-border); + fill: var(--n-button-icon-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + fill .3s var(--n-bezier); + `,[Y("button",` + background: var(--n-button-color); + color: var(--n-button-icon-color); + border: var(--n-button-border); + padding: 0; + `,[I("base-icon",` + font-size: var(--n-button-icon-size); + `)]),Ye("disabled",[Y("hover",Wv,Vv),L("&:hover",Wv,Vv),L("&:active",` + background: var(--n-item-color-pressed); + color: var(--n-item-text-color-pressed); + border: var(--n-item-border-pressed); + `,[Y("button",` + background: var(--n-button-color-pressed); + border: var(--n-button-border-pressed); + color: var(--n-button-icon-color-pressed); + `)]),Y("active",` + background: var(--n-item-color-active); + color: var(--n-item-text-color-active); + border: var(--n-item-border-active); + `,[L("&:hover",` + background: var(--n-item-color-active-hover); + `)])]),Y("disabled",` + cursor: not-allowed; + color: var(--n-item-text-color-disabled); + `,[Y("active, button",` + background-color: var(--n-item-color-disabled); + border: var(--n-item-border-disabled); + `)])]),Y("disabled",` + cursor: not-allowed; + `,[I("pagination-quick-jumper",` + color: var(--n-jumper-text-color-disabled); + `)]),Y("simple",` + display: flex; + align-items: center; + flex-wrap: nowrap; + `,[I("pagination-quick-jumper",[I("input",` + margin: 0; + `)])])]);function Uv(e){var t;if(!e)return 10;const{defaultPageSize:o}=e;if(o!==void 0)return o;const n=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof n=="number"?n:(n==null?void 0:n.value)||10}function qk(e,t,o,n){let r=!1,i=!1,l=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:l,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:l,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const s=1,c=t;let d=e,u=e;const f=(o-5)/2;u+=Math.ceil(f),u=Math.min(Math.max(u,s+o-3),c-2),d-=Math.floor(f),d=Math.max(Math.min(d,c-o+3),s+2);let h=!1,p=!1;d>s+2&&(h=!0),u=s+1&&g.push({type:"page",label:s+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===s+1});for(let b=d;b<=u;++b)g.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return p?(i=!0,a=u+1,g.push({type:"fast-forward",active:!1,label:void 0,options:n?Kv(u+1,c-1):null})):u===c-2&&g[g.length-1].label!==c-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),g[g.length-1].label!==c&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:l,fastForwardTo:a,items:g}}function Kv(e,t){const o=[];for(let n=e;n<=t;++n)o.push({label:`${n}`,value:n});return o}const Xk=Object.assign(Object.assign({},Ie.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Io.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),Yk=ve({name:"Pagination",props:Xk,slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=Je(e),i=Ie("Pagination","-pagination",Gk,jv,e,o),{localeRef:l}=Pi("Pagination"),a=V(null),s=V(e.defaultPage),c=V(Uv(e)),d=It(Se(e,"page"),s),u=It(Se(e,"pageSize"),c),f=F(()=>{const{itemCount:R}=e;if(R!==void 0)return Math.max(1,Math.ceil(R/u.value));const{pageCount:ae}=e;return ae!==void 0?Math.max(ae,1):1}),h=V("");Mt(()=>{e.simple,h.value=String(d.value)});const p=V(!1),g=V(!1),b=V(!1),m=V(!1),x=()=>{e.disabled||(p.value=!0,D())},w=()=>{e.disabled||(p.value=!1,D())},C=()=>{g.value=!0,D()},P=()=>{g.value=!1,D()},T=R=>{Z(R)},y=F(()=>qk(d.value,f.value,e.pageSlot,e.showQuickJumpDropdown));Mt(()=>{y.value.hasFastBackward?y.value.hasFastForward||(p.value=!1,b.value=!1):(g.value=!1,m.value=!1)});const B=F(()=>{const R=l.value.selectionSuffix;return e.pageSizes.map(ae=>typeof ae=="number"?{label:`${ae} / ${R}`,value:ae}:ae)}),S=F(()=>{var R,ae;return((ae=(R=t==null?void 0:t.value)===null||R===void 0?void 0:R.Pagination)===null||ae===void 0?void 0:ae.inputSize)||Yh(e.size)}),E=F(()=>{var R,ae;return((ae=(R=t==null?void 0:t.value)===null||R===void 0?void 0:R.Pagination)===null||ae===void 0?void 0:ae.selectSize)||Yh(e.size)}),j=F(()=>(d.value-1)*u.value),_=F(()=>{const R=d.value*u.value-1,{itemCount:ae}=e;return ae!==void 0&&R>ae-1?ae-1:R}),M=F(()=>{const{itemCount:R}=e;return R!==void 0?R:(e.pageCount||1)*u.value}),W=qt("Pagination",r,o);function D(){so(()=>{var R;const{value:ae}=a;ae&&(ae.classList.add("transition-disabled"),(R=a.value)===null||R===void 0||R.offsetWidth,ae.classList.remove("transition-disabled"))})}function Z(R){if(R===d.value)return;const{"onUpdate:page":ae,onUpdatePage:_e,onChange:k,simple:$}=e;ae&&ge(ae,R),_e&&ge(_e,R),k&&ge(k,R),s.value=R,$&&(h.value=String(R))}function U(R){if(R===u.value)return;const{"onUpdate:pageSize":ae,onUpdatePageSize:_e,onPageSizeChange:k}=e;ae&&ge(ae,R),_e&&ge(_e,R),k&&ge(k,R),c.value=R,f.value{d.value,u.value,D()});const X=F(()=>{const{size:R}=e,{self:{buttonBorder:ae,buttonBorderHover:_e,buttonBorderPressed:k,buttonIconColor:$,buttonIconColorHover:K,buttonIconColorPressed:ie,itemTextColor:le,itemTextColorHover:re,itemTextColorPressed:xe,itemTextColorActive:ne,itemTextColorDisabled:te,itemColor:oe,itemColorHover:ye,itemColorPressed:be,itemColorActive:ee,itemColorActiveHover:se,itemColorDisabled:ke,itemBorder:Me,itemBorderHover:He,itemBorderPressed:Qe,itemBorderActive:Ve,itemBorderDisabled:We,itemBorderRadius:ot,jumperTextColor:Xe,jumperTextColorDisabled:Pe,buttonColor:ze,buttonColorHover:z,buttonColorPressed:q,[me("itemPadding",R)]:ce,[me("itemMargin",R)]:Ce,[me("inputWidth",R)]:Re,[me("selectWidth",R)]:Te,[me("inputMargin",R)]:Ee,[me("selectMargin",R)]:Ae,[me("jumperFontSize",R)]:Ge,[me("prefixMargin",R)]:ut,[me("suffixMargin",R)]:et,[me("itemSize",R)]:jt,[me("buttonIconSize",R)]:Xt,[me("itemFontSize",R)]:Yt,[`${me("itemMargin",R)}Rtl`]:Qt,[`${me("inputMargin",R)}Rtl`]:eo},common:{cubicBezierEaseInOut:po}}=i.value;return{"--n-prefix-margin":ut,"--n-suffix-margin":et,"--n-item-font-size":Yt,"--n-select-width":Te,"--n-select-margin":Ae,"--n-input-width":Re,"--n-input-margin":Ee,"--n-input-margin-rtl":eo,"--n-item-size":jt,"--n-item-text-color":le,"--n-item-text-color-disabled":te,"--n-item-text-color-hover":re,"--n-item-text-color-active":ne,"--n-item-text-color-pressed":xe,"--n-item-color":oe,"--n-item-color-hover":ye,"--n-item-color-disabled":ke,"--n-item-color-active":ee,"--n-item-color-active-hover":se,"--n-item-color-pressed":be,"--n-item-border":Me,"--n-item-border-hover":He,"--n-item-border-disabled":We,"--n-item-border-active":Ve,"--n-item-border-pressed":Qe,"--n-item-padding":ce,"--n-item-border-radius":ot,"--n-bezier":po,"--n-jumper-font-size":Ge,"--n-jumper-text-color":Xe,"--n-jumper-text-color-disabled":Pe,"--n-item-margin":Ce,"--n-item-margin-rtl":Qt,"--n-button-icon-size":Xt,"--n-button-icon-color":$,"--n-button-icon-color-hover":K,"--n-button-icon-color-pressed":ie,"--n-button-color-hover":z,"--n-button-color":ze,"--n-button-color-pressed":q,"--n-button-border":ae,"--n-button-border-hover":_e,"--n-button-border-pressed":k}}),de=n?gt("pagination",F(()=>{let R="";const{size:ae}=e;return R+=ae[0],R}),X,e):void 0;return{rtlEnabled:W,mergedClsPrefix:o,locale:l,selfRef:a,mergedPage:d,pageItems:F(()=>y.value.items),mergedItemCount:M,jumperValue:h,pageSizeOptions:B,mergedPageSize:u,inputSize:S,selectSize:E,mergedTheme:i,mergedPageCount:f,startIndex:j,endIndex:_,showFastForwardMenu:b,showFastBackwardMenu:m,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:T,handleFastForwardMouseenter:x,handleFastForwardMouseleave:w,handleFastBackwardMouseenter:C,handleFastBackwardMouseleave:P,handleJumperInput:we,handleBackwardClick:pe,handleForwardClick:J,handlePageItemClick:he,handleSizePickerChange:O,handleQuickJumperChange:Q,cssVars:n?void 0:X,themeClass:de==null?void 0:de.themeClass,onRender:de==null?void 0:de.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:o,cssVars:n,mergedPage:r,mergedPageCount:i,pageItems:l,showSizePicker:a,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:u,selectSize:f,mergedPageSize:h,pageSizeOptions:p,jumperValue:g,simple:b,prev:m,next:x,prefix:w,suffix:C,label:P,goto:T,handleJumperInput:y,handleSizePickerChange:B,handleBackwardClick:S,handlePageItemClick:E,handleForwardClick:j,handleQuickJumperChange:_,onRender:M}=this;M==null||M();const W=w||e.prefix,D=C||e.suffix,Z=m||e.prev,U=x||e.next,J=P||e.label;return v("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,o&&`${t}-pagination--disabled`,b&&`${t}-pagination--simple`],style:n},W?v("div",{class:`${t}-pagination-prefix`},W({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(pe=>{switch(pe){case"pages":return v(it,null,v("div",{class:[`${t}-pagination-item`,!Z&&`${t}-pagination-item--button`,(r<=1||r>i||o)&&`${t}-pagination-item--disabled`],onClick:S},Z?Z({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):v(Tt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(lv,null):v(ov,null)})),b?v(it,null,v("div",{class:`${t}-pagination-quick-jumper`},v(Av,{value:g,onUpdateValue:y,size:u,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:_}))," /"," ",i):l.map((fe,N)=>{let O,A,Q;const{type:he}=fe;switch(he){case"page":const X=fe.label;J?O=J({type:"page",node:X,active:fe.active}):O=X;break;case"fast-forward":const de=this.fastForwardActive?v(Tt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(rv,null):v(iv,null)}):v(Tt,{clsPrefix:t},{default:()=>v(av,null)});J?O=J({type:"fast-forward",node:de,active:this.fastForwardActive||this.showFastForwardMenu}):O=de,A=this.handleFastForwardMouseenter,Q=this.handleFastForwardMouseleave;break;case"fast-backward":const R=this.fastBackwardActive?v(Tt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(iv,null):v(rv,null)}):v(Tt,{clsPrefix:t},{default:()=>v(av,null)});J?O=J({type:"fast-backward",node:R,active:this.fastBackwardActive||this.showFastBackwardMenu}):O=R,A=this.handleFastBackwardMouseenter,Q=this.handleFastBackwardMouseleave;break}const we=v("div",{key:N,class:[`${t}-pagination-item`,fe.active&&`${t}-pagination-item--active`,he!=="page"&&(he==="fast-backward"&&this.showFastBackwardMenu||he==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,he==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{E(fe)},onMouseenter:A,onMouseleave:Q},O);if(he==="page"&&!fe.mayBeFastBackward&&!fe.mayBeFastForward)return we;{const X=fe.type==="page"?fe.mayBeFastBackward?"fast-backward":"fast-forward":fe.type;return fe.type!=="page"&&!fe.options?we:v(Lk,{to:this.to,key:X,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:he==="page"?!1:he==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:de=>{he!=="page"&&(de?he==="fast-backward"?this.showFastBackwardMenu=de:this.showFastForwardMenu=de:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:fe.type!=="page"&&fe.options?fe.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),v("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||o}],onClick:j},U?U({page:r,pageSize:h,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):v(Tt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(ov,null):v(lv,null)})));case"size-picker":return!b&&a?v(Vk,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:f,options:p,value:h,disabled:o,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:B})):null;case"quick-jumper":return!b&&s?v("div",{class:`${t}-pagination-quick-jumper`},T?T():Mo(this.$slots.goto,()=>[d.goto]),v(Av,{value:g,onUpdateValue:y,size:u,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:_})):null;default:return null}}),D?v("div",{class:`${t}-pagination-suffix`},D({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),Zk={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function Jk(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:l,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:f,heightMedium:h,heightLarge:p,heightHuge:g,textColor3:b,opacityDisabled:m}=e;return Object.assign(Object.assign({},Zk),{optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:p,optionHeightHuge:g,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:Le(t,{alpha:.1}),groupHeaderTextColor:b,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:m})}const zc={name:"Dropdown",common:xt,peers:{Popover:Fr},self:Jk},Qk={padding:"8px 14px"};function ez(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},Qk),{borderRadius:t,boxShadow:o,color:Ue(n,"rgba(0, 0, 0, .85)"),textColor:n})}const Tc={name:"Tooltip",common:xt,peers:{Popover:Fr},self:ez},Gv={name:"Ellipsis",common:xt,peers:{Tooltip:Tc}},tz={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function oz(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},tz),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Le(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:l,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Le(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}const $c={name:"Radio",common:xt,self:oz},nz={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function rz(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:l,tableColorHover:a,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,dividerColor:b,heightSmall:m,opacityDisabled:x,tableColorStriped:w}=e;return Object.assign(Object.assign({},nz),{actionDividerColor:b,lineHeight:f,borderRadius:u,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ue(t,b),tdColorHover:Ue(t,a),tdColorSorting:Ue(t,a),tdColorStriped:Ue(t,w),thColor:Ue(t,l),thColorHover:Ue(Ue(t,l),a),thColorSorting:Ue(Ue(t,l),a),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:a,thIconColor:s,thIconColorActive:c,borderColorModal:Ue(o,b),tdColorHoverModal:Ue(o,a),tdColorSortingModal:Ue(o,a),tdColorStripedModal:Ue(o,w),thColorModal:Ue(o,l),thColorHoverModal:Ue(Ue(o,l),a),thColorSortingModal:Ue(Ue(o,l),a),tdColorModal:o,borderColorPopover:Ue(n,b),tdColorHoverPopover:Ue(n,a),tdColorSortingPopover:Ue(n,a),tdColorStripedPopover:Ue(n,w),thColorPopover:Ue(n,l),thColorHoverPopover:Ue(Ue(n,l),a),thColorSortingPopover:Ue(Ue(n,l),a),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:m,opacityLoading:x})}const iz={name:"DataTable",common:xt,peers:{Button:Mv,Checkbox:Bv,Radio:$c,Pagination:jv,Scrollbar:Er,Empty:bc,Popover:Fr,Ellipsis:Gv,Dropdown:zc},self:rz},lz=Object.assign(Object.assign({},Ie.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},getCsvCell:Function,getCsvHeader:Function,onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),wo="n-data-table",qv=40,Xv=40;function Yv(e){if(e.type==="selection")return e.width===void 0?qv:mn(e.width);if(e.type==="expand")return e.width===void 0?Xv:mn(e.width);if(!("children"in e))return typeof e.width=="string"?mn(e.width):e.width}function az(e){var t,o;if(e.type==="selection")return zt((t=e.width)!==null&&t!==void 0?t:qv);if(e.type==="expand")return zt((o=e.width)!==null&&o!==void 0?o:Xv);if(!("children"in e))return zt(e.width)}function So(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function Zv(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function sz(e){return e==="ascend"?1:e==="descend"?-1:0}function cz(e,t,o){return o!==void 0&&(e=Math.min(e,typeof o=="number"?o:Number.parseFloat(o))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function dz(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const o=az(e),{minWidth:n,maxWidth:r}=e;return{width:o,minWidth:zt(n)||o,maxWidth:zt(r)}}function uz(e,t,o){return typeof o=="function"?o(e,t):o||""}function Ec(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Fc(e){return"children"in e?!1:!!e.sorter}function Jv(e){return"children"in e&&e.children.length?!1:!!e.resizable}function Qv(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function eg(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function fz(e,t){if(e.sorter===void 0)return null;const{customNextSortOrder:o}=e;return t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:eg(!1)}:Object.assign(Object.assign({},t),{order:(o||eg)(t.order)})}function tg(e,t){return t.find(o=>o.columnKey===e.key&&o.order)!==void 0}function hz(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function pz(e,t,o,n){const r=e.filter(a=>a.type!=="expand"&&a.type!=="selection"&&a.allowExport!==!1),i=r.map(a=>n?n(a):a.title).join(","),l=t.map(a=>r.map(s=>o?o(a[s.key],a,s):hz(a[s.key])).join(","));return[i,...l].join(` +`)}const vz=ve({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:o}=$e(wo);return()=>{const{rowKey:n}=e;return v(Pc,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),gz=I("radio",` + line-height: var(--n-label-line-height); + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-flex; + align-items: flex-start; + flex-wrap: nowrap; + font-size: var(--n-font-size); + word-break: break-word; +`,[Y("checked",[H("dot",` + background-color: var(--n-color-active); + `)]),H("dot-wrapper",` + position: relative; + flex-shrink: 0; + flex-grow: 0; + width: var(--n-radio-size); + `),I("radio-input",` + position: absolute; + border: 0; + width: 0; + height: 0; + opacity: 0; + margin: 0; + `),H("dot",` + position: absolute; + top: 50%; + left: 0; + transform: translateY(-50%); + height: var(--n-radio-size); + width: var(--n-radio-size); + background: var(--n-color); + box-shadow: var(--n-box-shadow); + border-radius: 50%; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); + `,[L("&::before",` + content: ""; + opacity: 0; + position: absolute; + left: 4px; + top: 4px; + height: calc(100% - 8px); + width: calc(100% - 8px); + border-radius: 50%; + transform: scale(.8); + background: var(--n-dot-color-active); + transition: + opacity .3s var(--n-bezier), + background-color .3s var(--n-bezier), + transform .3s var(--n-bezier); + `),Y("checked",{boxShadow:"var(--n-box-shadow-active)"},[L("&::before",` + opacity: 1; + transform: scale(1); + `)])]),H("label",` + color: var(--n-text-color); + padding: var(--n-label-padding); + font-weight: var(--n-label-font-weight); + display: inline-block; + transition: color .3s var(--n-bezier); + `),Ye("disabled",` + cursor: pointer; + `,[L("&:hover",[H("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),Y("focus",[L("&:not(:active)",[H("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),Y("disabled",` + cursor: not-allowed; + `,[H("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[L("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),Y("checked",` + opacity: 1; + `)]),H("label",{color:"var(--n-text-color-disabled)"}),I("radio-input",` + cursor: not-allowed; + `)])]),mz={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},og="n-radio-group";function bz(e){const t=$e(og,null),o=qn(e,{mergedSize(x){const{size:w}=e;if(w!==void 0)return w;if(t){const{mergedSizeRef:{value:C}}=t;if(C!==void 0)return C}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||t!=null&&t.disabledRef.value||x!=null&&x.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=V(null),l=V(null),a=V(e.defaultChecked),s=Se(e,"checked"),c=It(s,a),d=Ze(()=>t?t.valueRef.value===e.value:c.value),u=Ze(()=>{const{name:x}=e;if(x!==void 0)return x;if(t)return t.nameRef.value}),f=V(!1);function h(){if(t){const{doUpdateValue:x}=t,{value:w}=e;ge(x,w)}else{const{onUpdateChecked:x,"onUpdate:checked":w}=e,{nTriggerFormInput:C,nTriggerFormChange:P}=o;x&&ge(x,!0),w&&ge(w,!0),C(),P(),a.value=!0}}function p(){r.value||d.value||h()}function g(){p(),i.value&&(i.value.checked=d.value)}function b(){f.value=!1}function m(){f.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:Je(e).mergedClsPrefixRef,inputRef:i,labelRef:l,mergedName:u,mergedDisabled:r,renderSafeChecked:d,focus:f,mergedSize:n,handleRadioInputChange:g,handleRadioInputBlur:b,handleRadioInputFocus:m}}const xz=Object.assign(Object.assign({},Ie.props),mz),ng=ve({name:"Radio",props:xz,setup(e){const t=bz(e),o=Ie("Radio","-radio",gz,$c,e,t.mergedClsPrefix),n=F(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:u,boxShadowActive:f,boxShadowDisabled:h,boxShadowFocus:p,boxShadowHover:g,color:b,colorDisabled:m,colorActive:x,textColor:w,textColorDisabled:C,dotColorActive:P,dotColorDisabled:T,labelPadding:y,labelLineHeight:B,labelFontWeight:S,[me("fontSize",c)]:E,[me("radioSize",c)]:j}}=o.value;return{"--n-bezier":d,"--n-label-line-height":B,"--n-label-font-weight":S,"--n-box-shadow":u,"--n-box-shadow-active":f,"--n-box-shadow-disabled":h,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":b,"--n-color-active":x,"--n-color-disabled":m,"--n-dot-color-active":P,"--n-dot-color-disabled":T,"--n-font-size":E,"--n-radio-size":j,"--n-text-color":w,"--n-text-color-disabled":C,"--n-label-padding":y}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:l}=Je(e),a=qt("Radio",l,i),s=r?gt("radio",F(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:a,cssVars:r?void 0:n,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:o,label:n}=this;return o==null||o(),v("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},v("div",{class:`${t}-radio__dot-wrapper`}," ",v("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]}),v("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur})),pt(e.default,r=>!r&&!n?null:v("div",{ref:"labelRef",class:`${t}-radio__label`},r||n)))}}),yz=I("radio-group",` + display: inline-block; + font-size: var(--n-font-size); +`,[H("splitor",` + display: inline-block; + vertical-align: bottom; + width: 1px; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + background: var(--n-button-border-color); + `,[Y("checked",{backgroundColor:"var(--n-button-border-color-active)"}),Y("disabled",{opacity:"var(--n-opacity-disabled)"})]),Y("button-group",` + white-space: nowrap; + height: var(--n-height); + line-height: var(--n-height); + `,[I("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),H("splitor",{height:"var(--n-height)"})]),I("radio-button",` + vertical-align: bottom; + outline: none; + position: relative; + user-select: none; + -webkit-user-select: none; + display: inline-block; + box-sizing: border-box; + padding-left: 14px; + padding-right: 14px; + white-space: nowrap; + transition: + background-color .3s var(--n-bezier), + opacity .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + background: var(--n-button-color); + color: var(--n-button-text-color); + border-top: 1px solid var(--n-button-border-color); + border-bottom: 1px solid var(--n-button-border-color); + `,[I("radio-input",` + pointer-events: none; + position: absolute; + border: 0; + border-radius: inherit; + left: 0; + right: 0; + top: 0; + bottom: 0; + opacity: 0; + z-index: 1; + `),H("state-border",` + z-index: 1; + pointer-events: none; + position: absolute; + box-shadow: var(--n-button-box-shadow); + transition: box-shadow .3s var(--n-bezier); + left: -1px; + bottom: -1px; + right: -1px; + top: -1px; + `),L("&:first-child",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + border-left: 1px solid var(--n-button-border-color); + `,[H("state-border",` + border-top-left-radius: var(--n-button-border-radius); + border-bottom-left-radius: var(--n-button-border-radius); + `)]),L("&:last-child",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + border-right: 1px solid var(--n-button-border-color); + `,[H("state-border",` + border-top-right-radius: var(--n-button-border-radius); + border-bottom-right-radius: var(--n-button-border-radius); + `)]),Ye("disabled",` + cursor: pointer; + `,[L("&:hover",[H("state-border",` + transition: box-shadow .3s var(--n-bezier); + box-shadow: var(--n-button-box-shadow-hover); + `),Ye("checked",{color:"var(--n-button-text-color-hover)"})]),Y("focus",[L("&:not(:active)",[H("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),Y("checked",` + background: var(--n-button-color-active); + color: var(--n-button-text-color-active); + border-color: var(--n-button-border-color-active); + `),Y("disabled",` + cursor: not-allowed; + opacity: var(--n-opacity-disabled); + `)])]);function Cz(e,t,o){var n;const r=[];let i=!1;for(let l=0;l{const{value:P}=o,{common:{cubicBezierEaseInOut:T},self:{buttonBorderColor:y,buttonBorderColorActive:B,buttonBorderRadius:S,buttonBoxShadow:E,buttonBoxShadowFocus:j,buttonBoxShadowHover:_,buttonColor:M,buttonColorActive:W,buttonTextColor:D,buttonTextColorActive:Z,buttonTextColorHover:U,opacityDisabled:J,[me("buttonHeight",P)]:pe,[me("fontSize",P)]:fe}}=u.value;return{"--n-font-size":fe,"--n-bezier":T,"--n-button-border-color":y,"--n-button-border-color-active":B,"--n-button-border-radius":S,"--n-button-box-shadow":E,"--n-button-box-shadow-focus":j,"--n-button-box-shadow-hover":_,"--n-button-color":M,"--n-button-color-active":W,"--n-button-text-color":D,"--n-button-text-color-hover":U,"--n-button-text-color-active":Z,"--n-height":pe,"--n-opacity-disabled":J}}),C=c?gt("radio-group",F(()=>o.value[0]),w,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:s,mergedValue:p,handleFocusout:m,handleFocusin:b,cssVars:c?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:o,handleFocusin:n,handleFocusout:r}=this,{children:i,isButtonGroup:l}=Cz(Ll(PC(this)),t,o);return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{onFocusin:n,onFocusout:r,ref:"selfElRef",class:[`${o}-radio-group`,this.rtlEnabled&&`${o}-radio-group--rtl`,this.themeClass,l&&`${o}-radio-group--button-group`],style:this.cssVars},i)}}),Rz=ve({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:o}=$e(wo);return()=>{const{rowKey:n}=e;return v(ng,{name:o,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),Pz=Object.assign(Object.assign({},Ar),Ie.props),rg=ve({name:"Tooltip",props:Pz,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Je(e),o=Ie("Tooltip","-tooltip",void 0,Tc,e,t),n=V(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:F(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return v(zi,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),ig=I("ellipsis",{overflow:"hidden"},[Ye("line-clamp",` + white-space: nowrap; + display: inline-block; + vertical-align: bottom; + max-width: 100%; + `),Y("line-clamp",` + display: -webkit-inline-box; + -webkit-box-orient: vertical; + `),Y("cursor-pointer",` + cursor: pointer; + `)]);function Ac(e){return`${e}-ellipsis--line-clamp`}function Ic(e,t){return`${e}-ellipsis--cursor-${t}`}const lg=Object.assign(Object.assign({},Ie.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Oc=ve({name:"Ellipsis",inheritAttrs:!1,props:lg,slots:Object,setup(e,{slots:t,attrs:o}){const n=ep(),r=Ie("Ellipsis","-ellipsis",ig,Gv,e,n),i=V(null),l=V(null),a=V(null),s=V(!1),c=F(()=>{const{lineClamp:b}=e,{value:m}=s;return b!==void 0?{textOverflow:"","-webkit-line-clamp":m?"":b}:{textOverflow:m?"":"ellipsis","-webkit-line-clamp":""}});function d(){let b=!1;const{value:m}=s;if(m)return!0;const{value:x}=i;if(x){const{lineClamp:w}=e;if(h(x),w!==void 0)b=x.scrollHeight<=x.offsetHeight;else{const{value:C}=l;C&&(b=C.getBoundingClientRect().width<=x.getBoundingClientRect().width)}p(x,b)}return b}const u=F(()=>e.expandTrigger==="click"?()=>{var b;const{value:m}=s;m&&((b=a.value)===null||b===void 0||b.setShow(!1)),s.value=!m}:void 0);rl(()=>{var b;e.tooltip&&((b=a.value)===null||b===void 0||b.setShow(!1))});const f=()=>v("span",Object.assign({},xo(o,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?Ac(n.value):void 0,e.expandTrigger==="click"?Ic(n.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:u.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:v("span",{ref:"triggerInnerRef"},t));function h(b){if(!b)return;const m=c.value,x=Ac(n.value);e.lineClamp!==void 0?g(b,x,"add"):g(b,x,"remove");for(const w in m)b.style[w]!==m[w]&&(b.style[w]=m[w])}function p(b,m){const x=Ic(n.value,"pointer");e.expandTrigger==="click"&&!m?g(b,x,"add"):g(b,x,"remove")}function g(b,m,x){x==="add"?b.classList.contains(m)||b.classList.add(m):b.classList.contains(m)&&b.classList.remove(m)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:l,tooltipRef:a,handleClick:u,renderTrigger:f,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:n}=this;if(t){const{mergedTheme:r}=this;return v(rg,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:o,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return o()}}),_z=ve({name:"PerformantEllipsis",props:lg,inheritAttrs:!1,setup(e,{attrs:t,slots:o}){const n=V(!1),r=ep();return er("-ellipsis",ig,r),{mouseEntered:n,renderTrigger:()=>{const{lineClamp:l}=e,a=r.value;return v("span",Object.assign({},xo(t,{class:[`${a}-ellipsis`,l!==void 0?Ac(a):void 0,e.expandTrigger==="click"?Ic(a,"pointer"):void 0],style:l===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":l}}),{onMouseenter:()=>{n.value=!0}}),l?o:v("span",null,o))}}},render(){return this.mouseEntered?v(Oc,xo({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),kz=ve({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:o,row:n,renderCell:r}=this;let i;const{render:l,key:a,ellipsis:s}=o;if(l&&!t?i=l(n,this.index):t?i=(e=n[a])===null||e===void 0?void 0:e.value:i=r?r(ec(n,a),n,o):ec(n,a),s)if(typeof s=="object"){const{mergedTheme:c}=this;return o.ellipsisComponent==="performant-ellipsis"?v(_z,Object.assign({},s,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):v(Oc,Object.assign({},s,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return v("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),ag=ve({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return v("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},v(_i,null,{default:()=>this.loading?v(ki,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):v(Tt,{clsPrefix:e,key:"base-icon"},{default:()=>v(dc,null)})}))}}),zz=ve({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Je(e),n=qt("DataTable",o,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:l}=$e(wo),a=V(e.value),s=F(()=>{const{value:p}=a;return Array.isArray(p)?p:null}),c=F(()=>{const{value:p}=a;return Ec(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function d(p){e.onChange(p)}function u(p){e.multiple&&Array.isArray(p)?a.value=p:Ec(e.column)&&!Array.isArray(p)?a.value=[p]:a.value=p}function f(){d(a.value),e.onConfirm()}function h(){e.multiple||Ec(e.column)?d([]):d(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:n,mergedTheme:i,locale:l,checkboxGroupValue:s,radioGroupValue:c,handleChange:u,handleConfirmClick:f,handleClearClick:h}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:o}=this;return v("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},v(tr,null,{default:()=>{const{checkboxGroupValue:n,handleChange:r}=this;return this.multiple?v(Ek,{value:n,class:`${o}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>v(Pc,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):v(Sz,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>v(ng,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),v("div",{class:`${o}-data-table-filter-menu__action`},v(ra,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),v(ra,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),Tz=ve({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:o}=this;return e({active:t,show:o})}});function $z(e,t,o){const n=Object.assign({},e);return n[t]=o,n}const Ez=ve({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=Je(),{mergedThemeRef:o,mergedClsPrefixRef:n,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:l,doUpdatePage:a,doUpdateFilters:s,filterIconPopoverPropsRef:c}=$e(wo),d=V(!1),u=r,f=F(()=>e.column.filterMultiple!==!1),h=F(()=>{const w=u.value[e.column.key];if(w===void 0){const{value:C}=f;return C?[]:null}return w}),p=F(()=>{const{value:w}=h;return Array.isArray(w)?w.length>0:w!==null}),g=F(()=>{var w,C;return((C=(w=t==null?void 0:t.value)===null||w===void 0?void 0:w.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(w){const C=$z(u.value,e.column.key,w);s(C,e.column),l.value==="first"&&a(1)}function m(){d.value=!1}function x(){d.value=!1}return{mergedTheme:o,mergedClsPrefix:n,active:p,showPopover:d,mergedRenderFilter:g,filterIconPopoverProps:c,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:x,handleFilterMenuCancel:m}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:o,filterIconPopoverProps:n}=this;return v(zi,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},n,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return v(Tz,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return v("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):v(Tt,{clsPrefix:t},{default:()=>v(BP,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:o}):v(zz,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),Fz=ve({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=$e(wo),o=V(!1);let n=0;function r(s){return s.clientX}function i(s){var c;s.preventDefault();const d=o.value;n=r(s),o.value=!0,d||(bt("mousemove",window,l),bt("mouseup",window,a),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function l(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,r(s)-n)}function a(){var s;o.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),ct("mousemove",window,l),ct("mouseup",window,a)}return Ft(()=>{ct("mousemove",window,l),ct("mouseup",window,a)}),{mergedClsPrefix:t,active:o,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return v("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),Az=ve({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),Iz=ve({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=Je(),{mergedSortStateRef:o,mergedClsPrefixRef:n}=$e(wo),r=F(()=>o.value.find(s=>s.columnKey===e.column.key)),i=F(()=>r.value!==void 0),l=F(()=>{const{value:s}=r;return s&&i.value?s.order:!1}),a=F(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:n,active:i,mergedSortOrder:l,mergedRenderSorter:a}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:o}=this,{renderSorterIcon:n}=this.column;return e?v(Az,{render:e,order:t}):v("span",{class:[`${o}-data-table-sorter`,t==="ascend"&&`${o}-data-table-sorter--asc`,t==="descend"&&`${o}-data-table-sorter--desc`]},n?n({order:t}):v(Tt,{clsPrefix:o},{default:()=>v(TP,null)}))}}),Mc="n-dropdown-menu",ia="n-dropdown",sg="n-dropdown-option",cg=ve({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return v("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Oz=ve({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=$e(Mc),{renderLabelRef:o,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=$e(ia);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:n,nodeProps:r,renderLabel:i,renderOption:l}=this,{rawNode:a}=this.tmNode,s=v("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(a)),v("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},v("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Lt(a.icon)),v("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(a):Lt((e=a.title)!==null&&e!==void 0?e:a[this.labelField])),v("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return l?l({node:s,option:a}):s}});function Mz(e){const{textColorBase:t,opacity1:o,opacity2:n,opacity3:r,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:o,opacity2Depth:n,opacity3Depth:r,opacity4Depth:i,opacity5Depth:l}}const Bz={common:xt,self:Mz},Hz=I("icon",` + height: 1em; + width: 1em; + line-height: 1em; + text-align: center; + display: inline-block; + position: relative; + fill: currentColor; +`,[Y("color-transition",{transition:"color .3s var(--n-bezier)"}),Y("depth",{color:"var(--n-color)"},[L("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),L("svg",{height:"1em",width:"1em"})]),Dz=Object.assign(Object.assign({},Ie.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),dg=ve({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Dz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Je(e),n=Ie("Icon","-icon",Hz,Bz,e,t),r=F(()=>{const{depth:l}=e,{common:{cubicBezierEaseInOut:a},self:s}=n.value;if(l!==void 0){const{color:c,[`opacity${l}Depth`]:d}=s;return{"--n-bezier":a,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":a,"--n-color":"","--n-opacity":""}}),i=o?gt("icon",F(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:F(()=>{const{size:l,color:a}=e;return{fontSize:zt(l),color:a}}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:n,component:r,onRender:i,themeClass:l}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&kr("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),v("i",xo(this.$attrs,{role:"img",class:[`${n}-icon`,l,{[`${n}-icon--depth`]:o,[`${n}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?v(r):this.$slots)}});function Bc(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function Lz(e){return e.type==="group"}function ug(e){return e.type==="divider"}function Nz(e){return e.type==="render"}const fg=ve({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=$e(ia),{hoverKeyRef:o,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:l,animatedRef:a,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:p,menuPropsRef:g}=t,b=$e(sg,null),m=$e(Mc),x=$e(Fl),w=F(()=>e.tmNode.rawNode),C=F(()=>{const{value:U}=f;return Bc(e.tmNode.rawNode,U)}),P=F(()=>{const{disabled:U}=e.tmNode;return U}),T=F(()=>{if(!C.value)return!1;const{key:U,disabled:J}=e.tmNode;if(J)return!1;const{value:pe}=o,{value:fe}=n,{value:N}=r,{value:O}=i;return pe!==null?O.includes(U):fe!==null?O.includes(U)&&O[O.length-1]!==U:N!==null?O.includes(U):!1}),y=F(()=>n.value===null&&!a.value),B=Py(T,300,y),S=F(()=>!!(b!=null&&b.enteringSubmenuRef.value)),E=V(!1);tt(sg,{enteringSubmenuRef:E});function j(){E.value=!0}function _(){E.value=!1}function M(){const{parentKey:U,tmNode:J}=e;J.disabled||s.value&&(r.value=U,n.value=null,o.value=J.key)}function W(){const{tmNode:U}=e;U.disabled||s.value&&o.value!==U.key&&M()}function D(U){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:J}=U;J&&!uo({target:J},"dropdownOption")&&!uo({target:J},"scrollbarRail")&&(o.value=null)}function Z(){const{value:U}=C,{tmNode:J}=e;s.value&&!U&&!J.disabled&&(t.doSelect(J.key,J.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:m.showIconRef,siblingHasSubmenu:m.hasSubmenuRef,menuProps:g,popoverBody:x,animated:a,mergedShowSubmenu:F(()=>B.value&&!S.value),rawNode:w,hasSubmenu:C,pending:Ze(()=>{const{value:U}=i,{key:J}=e.tmNode;return U.includes(J)}),childActive:Ze(()=>{const{value:U}=l,{key:J}=e.tmNode,pe=U.findIndex(fe=>J===fe);return pe===-1?!1:pe{const{value:U}=l,{key:J}=e.tmNode,pe=U.findIndex(fe=>J===fe);return pe===-1?!1:pe===U.length-1}),mergedDisabled:P,renderOption:h,nodeProps:p,handleClick:Z,handleMouseMove:W,handleMouseEnter:M,handleMouseLeave:D,handleSubmenuBeforeEnter:j,handleSubmenuAfterEnter:_}},render(){var e,t;const{animated:o,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:l,siblingHasSubmenu:a,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:u,props:f,scrollable:h}=this;let p=null;if(r){const x=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);p=v(hg,Object.assign({},x,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},b=u==null?void 0:u(n),m=v("div",Object.assign({class:[`${i}-dropdown-option`,b==null?void 0:b.class],"data-dropdown-option":!0},b),v("div",xo(g,f),[v("div",{class:[`${i}-dropdown-option-body__prefix`,l&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(n):Lt(n.icon)]),v("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(n):Lt((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),v("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,a&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?v(dg,null,{default:()=>v(dc,null)}):null)]),this.hasSubmenu?v(Ss,null,{default:()=>[v(Rs,null,{default:()=>v("div",{class:`${i}-dropdown-offset-container`},v(zs,{show:this.mergedShowSubmenu,placement:this.placement,to:h&&this.popoverBody||void 0,teleportDisabled:!h},{default:()=>v("div",{class:`${i}-dropdown-menu-wrapper`},o?v(Yo,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:m,option:n}):m}}),jz=ve({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:n}=e;return v(it,null,v(Oz,{clsPrefix:o,tmNode:e,key:e.key}),n==null?void 0:n.map(r=>{const{rawNode:i}=r;return i.show===!1?null:ug(i)?v(cg,{clsPrefix:o,key:r.key}):r.isGroup?(kr("dropdown","`group` node is not allowed to be put in `group` node."),null):v(fg,{clsPrefix:o,tmNode:r,parentKey:t,key:r.key})}))}}),Wz=ve({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return v("div",t,[e==null?void 0:e()])}}),hg=ve({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=$e(ia);tt(Mc,{showIconRef:F(()=>{const r=t.value;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:s})=>r?r(s):s.icon);const{rawNode:a}=i;return r?r(a):a.icon})}),hasSubmenuRef:F(()=>{const{value:r}=o;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:s})=>Bc(s,r));const{rawNode:a}=i;return Bc(a,r)})})});const n=V(null);return tt(bs,null),tt(ms,null),tt(Fl,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:Nz(i)?v(Wz,{tmNode:r,key:r.key}):ug(i)?v(cg,{clsPrefix:t,key:r.key}):Lz(i)?v(jz,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):v(fg,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:o})});return v("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?v(hv,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?Pv({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),Vz=I("dropdown-menu",` + transform-origin: var(--v-transform-origin); + background-color: var(--n-color); + border-radius: var(--n-border-radius); + box-shadow: var(--n-box-shadow); + position: relative; + transition: + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier); +`,[Ql(),I("dropdown-option",` + position: relative; + `,[L("a",` + text-decoration: none; + color: inherit; + outline: none; + `,[L("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),I("dropdown-option-body",` + display: flex; + cursor: pointer; + position: relative; + height: var(--n-option-height); + line-height: var(--n-option-height); + font-size: var(--n-font-size); + color: var(--n-option-text-color); + transition: color .3s var(--n-bezier); + `,[L("&::before",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + left: 4px; + right: 4px; + transition: background-color .3s var(--n-bezier); + border-radius: var(--n-border-radius); + `),Ye("disabled",[Y("pending",` + color: var(--n-option-text-color-hover); + `,[H("prefix, suffix",` + color: var(--n-option-text-color-hover); + `),L("&::before","background-color: var(--n-option-color-hover);")]),Y("active",` + color: var(--n-option-text-color-active); + `,[H("prefix, suffix",` + color: var(--n-option-text-color-active); + `),L("&::before","background-color: var(--n-option-color-active);")]),Y("child-active",` + color: var(--n-option-text-color-child-active); + `,[H("prefix, suffix",` + color: var(--n-option-text-color-child-active); + `)])]),Y("disabled",` + cursor: not-allowed; + opacity: var(--n-option-opacity-disabled); + `),Y("group",` + font-size: calc(var(--n-font-size) - 1px); + color: var(--n-group-header-text-color); + `,[H("prefix",` + width: calc(var(--n-option-prefix-width) / 2); + `,[Y("show-icon",` + width: calc(var(--n-option-icon-prefix-width) / 2); + `)])]),H("prefix",` + width: var(--n-option-prefix-width); + display: flex; + justify-content: center; + align-items: center; + color: var(--n-prefix-color); + transition: color .3s var(--n-bezier); + z-index: 1; + `,[Y("show-icon",` + width: var(--n-option-icon-prefix-width); + `),I("icon",` + font-size: var(--n-option-icon-size); + `)]),H("label",` + white-space: nowrap; + flex: 1; + z-index: 1; + `),H("suffix",` + box-sizing: border-box; + flex-grow: 0; + flex-shrink: 0; + display: flex; + justify-content: flex-end; + align-items: center; + min-width: var(--n-option-suffix-width); + padding: 0 8px; + transition: color .3s var(--n-bezier); + color: var(--n-suffix-color); + z-index: 1; + `,[Y("has-submenu",` + width: var(--n-option-icon-suffix-width); + `),I("icon",` + font-size: var(--n-option-icon-size); + `)]),I("dropdown-menu","pointer-events: all;")]),I("dropdown-offset-container",` + pointer-events: none; + position: absolute; + left: 0; + right: 0; + top: -4px; + bottom: -4px; + `)]),I("dropdown-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 4px 0; + `),I("dropdown-menu-wrapper",` + transform-origin: var(--v-transform-origin); + width: fit-content; + `),L(">",[I("scrollbar",` + height: inherit; + max-height: inherit; + `)]),Ye("scrollable",` + padding: var(--n-padding); + `),Y("scrollable",[H("content",` + padding: var(--n-padding); + `)])]),Uz={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},Kz=Object.keys(Ar),Gz=Object.assign(Object.assign(Object.assign({},Ar),Uz),Ie.props),Hc=ve({name:"Dropdown",inheritAttrs:!1,props:Gz,setup(e){const t=V(!1),o=It(Se(e,"show"),t),n=F(()=>{const{keyField:_,childrenField:M}=e;return or(e.options,{getKey(W){return W[_]},getDisabled(W){return W.disabled===!0},getIgnored(W){return W.type==="divider"||W.type==="render"},getChildren(W){return W[M]}})}),r=F(()=>n.value.treeNodes),i=V(null),l=V(null),a=V(null),s=F(()=>{var _,M,W;return(W=(M=(_=i.value)!==null&&_!==void 0?_:l.value)!==null&&M!==void 0?M:a.value)!==null&&W!==void 0?W:null}),c=F(()=>n.value.getPath(s.value).keyPath),d=F(()=>n.value.getPath(e.value).keyPath),u=Ze(()=>e.keyboard&&o.value);Ry({keydown:{ArrowUp:{prevent:!0,handler:P},ArrowRight:{prevent:!0,handler:C},ArrowDown:{prevent:!0,handler:T},ArrowLeft:{prevent:!0,handler:w},Enter:{prevent:!0,handler:y},Escape:x}},u);const{mergedClsPrefixRef:f,inlineThemeDisabled:h}=Je(e),p=Ie("Dropdown","-dropdown",Vz,zc,e,f);tt(ia,{labelFieldRef:Se(e,"labelField"),childrenFieldRef:Se(e,"childrenField"),renderLabelRef:Se(e,"renderLabel"),renderIconRef:Se(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:l,lastToggledSubmenuKeyRef:a,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:Se(e,"animated"),mergedShowRef:o,nodePropsRef:Se(e,"nodeProps"),renderOptionRef:Se(e,"renderOption"),menuPropsRef:Se(e,"menuProps"),doSelect:g,doUpdateShow:b}),st(o,_=>{!e.animated&&!_&&m()});function g(_,M){const{onSelect:W}=e;W&&ge(W,_,M)}function b(_){const{"onUpdate:show":M,onUpdateShow:W}=e;M&&ge(M,_),W&&ge(W,_),t.value=_}function m(){i.value=null,l.value=null,a.value=null}function x(){b(!1)}function w(){S("left")}function C(){S("right")}function P(){S("up")}function T(){S("down")}function y(){const _=B();_!=null&&_.isLeaf&&o.value&&(g(_.key,_.rawNode),b(!1))}function B(){var _;const{value:M}=n,{value:W}=s;return!M||W===null?null:(_=M.getNode(W))!==null&&_!==void 0?_:null}function S(_){const{value:M}=s,{value:{getFirstAvailableNode:W}}=n;let D=null;if(M===null){const Z=W();Z!==null&&(D=Z.key)}else{const Z=B();if(Z){let U;switch(_){case"down":U=Z.getNext();break;case"up":U=Z.getPrev();break;case"right":U=Z.getChild();break;case"left":U=Z.getParent();break}U&&(D=U.key)}}D!==null&&(i.value=null,l.value=D)}const E=F(()=>{const{size:_,inverted:M}=e,{common:{cubicBezierEaseInOut:W},self:D}=p.value,{padding:Z,dividerColor:U,borderRadius:J,optionOpacityDisabled:pe,[me("optionIconSuffixWidth",_)]:fe,[me("optionSuffixWidth",_)]:N,[me("optionIconPrefixWidth",_)]:O,[me("optionPrefixWidth",_)]:A,[me("fontSize",_)]:Q,[me("optionHeight",_)]:he,[me("optionIconSize",_)]:we}=D,X={"--n-bezier":W,"--n-font-size":Q,"--n-padding":Z,"--n-border-radius":J,"--n-option-height":he,"--n-option-prefix-width":A,"--n-option-icon-prefix-width":O,"--n-option-suffix-width":N,"--n-option-icon-suffix-width":fe,"--n-option-icon-size":we,"--n-divider-color":U,"--n-option-opacity-disabled":pe};return M?(X["--n-color"]=D.colorInverted,X["--n-option-color-hover"]=D.optionColorHoverInverted,X["--n-option-color-active"]=D.optionColorActiveInverted,X["--n-option-text-color"]=D.optionTextColorInverted,X["--n-option-text-color-hover"]=D.optionTextColorHoverInverted,X["--n-option-text-color-active"]=D.optionTextColorActiveInverted,X["--n-option-text-color-child-active"]=D.optionTextColorChildActiveInverted,X["--n-prefix-color"]=D.prefixColorInverted,X["--n-suffix-color"]=D.suffixColorInverted,X["--n-group-header-text-color"]=D.groupHeaderTextColorInverted):(X["--n-color"]=D.color,X["--n-option-color-hover"]=D.optionColorHover,X["--n-option-color-active"]=D.optionColorActive,X["--n-option-text-color"]=D.optionTextColor,X["--n-option-text-color-hover"]=D.optionTextColorHover,X["--n-option-text-color-active"]=D.optionTextColorActive,X["--n-option-text-color-child-active"]=D.optionTextColorChildActive,X["--n-prefix-color"]=D.prefixColor,X["--n-suffix-color"]=D.suffixColor,X["--n-group-header-text-color"]=D.groupHeaderTextColor),X}),j=h?gt("dropdown",F(()=>`${e.size[0]}${e.inverted?"i":""}`),E,e):void 0;return{mergedClsPrefix:f,mergedTheme:p,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&m()},doUpdateShow:b,cssVars:h?void 0:E,themeClass:j==null?void 0:j.themeClass,onRender:j==null?void 0:j.onRender}},render(){const e=(n,r,i,l,a)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const u=(d==null?void 0:d(void 0,this.tmNodes.map(h=>h.rawNode)))||{},f={ref:Zh(r),class:[n,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:l,onMouseleave:a};return v(hg,xo(this.$attrs,f,u))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return v(zi,Object.assign({},zr(this.$props,Kz),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),pg="_n_all__",vg="_n_none__";function qz(e,t,o,n){return e?r=>{for(const i of e)switch(r){case pg:o(!0);return;case vg:n(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function Xz(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:pg};case"none":return{label:t.uncheckTableAll,key:vg};default:return o}}):[]}const Yz=ve({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:n,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:l}=$e(wo),a=F(()=>qz(n.value,r,i,l)),s=F(()=>Xz(n.value,o.value));return()=>{var c,d,u,f;const{clsPrefix:h}=e;return v(Hc,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(f=(u=t.themeOverrides)===null||u===void 0?void 0:u.peers)===null||f===void 0?void 0:f.Dropdown,options:s.value,onSelect:a.value},{default:()=>v(Tt,{clsPrefix:h,class:`${h}-data-table-check-extra`},{default:()=>v(nv,null)})})}}});function Dc(e){return typeof e.title=="function"?e.title(e):e.title}const Zz=ve({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:o,width:n}=this;return v("table",{style:{tableLayout:"fixed",width:n},class:`${e}-data-table-table`},v("colgroup",null,o.map(r=>v("col",{key:r.key,style:r.style}))),v("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),gg=ve({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:o,fixedColumnRightMapRef:n,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:l,rowsRef:a,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:u,componentId:f,mergedTableLayoutRef:h,headerCheckboxDisabledRef:p,virtualScrollHeaderRef:g,headerHeightRef:b,onUnstableColumnResize:m,doUpdateResizableWidth:x,handleTableHeaderScroll:w,deriveNextSorter:C,doUncheckAll:P,doCheckAll:T}=$e(wo),y=V(),B=V({});function S(D){const Z=B.value[D];return Z==null?void 0:Z.getBoundingClientRect().width}function E(){i.value?P():T()}function j(D,Z){if(uo(D,"dataTableFilter")||uo(D,"dataTableResizable")||!Fc(Z))return;const U=u.value.find(pe=>pe.columnKey===Z.key)||null,J=fz(Z,U);C(J)}const _=new Map;function M(D){_.set(D.key,S(D.key))}function W(D,Z){const U=_.get(D.key);if(U===void 0)return;const J=U+Z,pe=cz(J,D.minWidth,D.maxWidth);m(J,pe,D,S),x(D,pe)}return{cellElsRef:B,componentId:f,mergedSortState:u,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:l,rows:a,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:h,headerCheckboxDisabled:p,headerHeight:b,virtualScrollHeader:g,virtualListRef:y,handleCheckboxUpdateChecked:E,handleColHeaderClick:j,handleTableHeaderScroll:w,handleColumnResizeStart:M,handleColumnResize:W}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:l,rows:a,cols:s,mergedTheme:c,checkOptions:d,componentId:u,discrete:f,mergedTableLayout:h,headerCheckboxDisabled:p,mergedSortState:g,virtualScrollHeader:b,handleColHeaderClick:m,handleCheckboxUpdateChecked:x,handleColumnResizeStart:w,handleColumnResize:C}=this,P=(S,E,j)=>S.map(({column:_,colIndex:M,colSpan:W,rowSpan:D,isLast:Z})=>{var U,J;const pe=So(_),{ellipsis:fe}=_,N=()=>_.type==="selection"?_.multiple!==!1?v(it,null,v(Pc,{key:r,privateInsideTable:!0,checked:i,indeterminate:l,disabled:p,onUpdateChecked:x}),d?v(Yz,{clsPrefix:t}):null):null:v(it,null,v("div",{class:`${t}-data-table-th__title-wrapper`},v("div",{class:`${t}-data-table-th__title`},fe===!0||fe&&!fe.tooltip?v("div",{class:`${t}-data-table-th__ellipsis`},Dc(_)):fe&&typeof fe=="object"?v(Oc,Object.assign({},fe,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Dc(_)}):Dc(_)),Fc(_)?v(Iz,{column:_}):null),Qv(_)?v(Ez,{column:_,options:_.filterOptions}):null,Jv(_)?v(Fz,{onResizeStart:()=>{w(_)},onResize:he=>{C(_,he)}}):null),O=pe in o,A=pe in n,Q=E&&!_.fixed?"div":"th";return v(Q,{ref:he=>e[pe]=he,key:pe,style:[E&&!_.fixed?{position:"absolute",left:At(E(M)),top:0,bottom:0}:{left:At((U=o[pe])===null||U===void 0?void 0:U.start),right:At((J=n[pe])===null||J===void 0?void 0:J.start)},{width:At(_.width),textAlign:_.titleAlign||_.align,height:j}],colspan:W,rowspan:D,"data-col-key":pe,class:[`${t}-data-table-th`,(O||A)&&`${t}-data-table-th--fixed-${O?"left":"right"}`,{[`${t}-data-table-th--sorting`]:tg(_,g),[`${t}-data-table-th--filterable`]:Qv(_),[`${t}-data-table-th--sortable`]:Fc(_),[`${t}-data-table-th--selection`]:_.type==="selection",[`${t}-data-table-th--last`]:Z},_.className],onClick:_.type!=="selection"&&_.type!=="expand"&&!("children"in _)?he=>{m(he,_)}:void 0},N())});if(b){const{headerHeight:S}=this;let E=0,j=0;return s.forEach(_=>{_.column.fixed==="left"?E++:_.column.fixed==="right"&&j++}),v(Is,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:At(S)},onScroll:this.handleTableHeaderScroll,columns:s,itemSize:S,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:Zz,visibleItemsProps:{clsPrefix:t,id:u,cols:s,width:zt(this.scrollX)},renderItemWithCols:({startColIndex:_,endColIndex:M,getLeft:W})=>{const D=s.map((U,J)=>({column:U.column,isLast:J===s.length-1,colIndex:U.index,colSpan:1,rowSpan:1})).filter(({column:U},J)=>!!(_<=J&&J<=M||U.fixed)),Z=P(D,W,At(S));return Z.splice(E,0,v("th",{colspan:s.length-E-j,style:{pointerEvents:"none",visibility:"hidden",height:0}})),v("tr",{style:{position:"relative"}},Z)}},{default:({renderedItemWithCols:_})=>_})}const T=v("thead",{class:`${t}-data-table-thead`,"data-n-id":u},a.map(S=>v("tr",{class:`${t}-data-table-tr`},P(S,null,void 0))));if(!f)return T;const{handleTableHeaderScroll:y,scrollX:B}=this;return v("div",{class:`${t}-data-table-base-table-header`,onScroll:y},v("table",{class:`${t}-data-table-table`,style:{minWidth:zt(B),tableLayout:h}},v("colgroup",null,s.map(S=>v("col",{key:S.key,style:S.style}))),T))}});function Jz(e,t){const o=[];function n(r,i){r.forEach(l=>{l.children&&t.has(l.key)?(o.push({tmNode:l,striped:!1,key:l.key,index:i}),n(l.children,i)):o.push({key:l.key,tmNode:l,striped:!1,index:i})})}return e.forEach(r=>{o.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&n(i,r.index)}),o}const Qz=ve({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:o,onMouseenter:n,onMouseleave:r}=this;return v("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:n,onMouseleave:r},v("colgroup",null,o.map(i=>v("col",{key:i.key,style:i.style}))),v("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),eT=ve({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:o,mergedExpandedRowKeysRef:n,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:l,colsRef:a,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:u,mergedCurrentPageRef:f,rowClassNameRef:h,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:b,rightActiveFixedChildrenColKeysRef:m,renderExpandRef:x,hoverKeyRef:w,summaryRef:C,mergedSortStateRef:P,virtualScrollRef:T,virtualScrollXRef:y,heightForRowRef:B,minRowHeightRef:S,componentId:E,mergedTableLayoutRef:j,childTriggerColIndexRef:_,indentRef:M,rowPropsRef:W,maxHeightRef:D,stripedRef:Z,loadingRef:U,onLoadRef:J,loadingKeySetRef:pe,expandableRef:fe,stickyExpandedRowsRef:N,renderExpandIconRef:O,summaryPlacementRef:A,treeMateRef:Q,scrollbarPropsRef:he,setHeaderScrollLeft:we,doUpdateExpandedRowKeys:X,handleTableBodyScroll:de,doCheck:R,doUncheck:ae,renderCell:_e}=$e(wo),k=$e(Qo),$=V(null),K=V(null),ie=V(null),le=Ze(()=>s.value.length===0),re=Ze(()=>e.showHeader||!le.value),xe=Ze(()=>e.showHeader||le.value);let ne="";const te=F(()=>new Set(n.value));function oe(Pe){var ze;return(ze=Q.value.getNode(Pe))===null||ze===void 0?void 0:ze.rawNode}function ye(Pe,ze,z){const q=oe(Pe.key);if(!q){kr("data-table",`fail to get row data with key ${Pe.key}`);return}if(z){const ce=s.value.findIndex(Ce=>Ce.key===ne);if(ce!==-1){const Ce=s.value.findIndex(Ae=>Ae.key===Pe.key),Re=Math.min(ce,Ce),Te=Math.max(ce,Ce),Ee=[];s.value.slice(Re,Te+1).forEach(Ae=>{Ae.disabled||Ee.push(Ae.key)}),ze?R(Ee,!1,q):ae(Ee,q),ne=Pe.key;return}}ze?R(Pe.key,!1,q):ae(Pe.key,q),ne=Pe.key}function be(Pe){const ze=oe(Pe.key);if(!ze){kr("data-table",`fail to get row data with key ${Pe.key}`);return}R(Pe.key,!0,ze)}function ee(){if(!re.value){const{value:ze}=ie;return ze||null}if(T.value)return Me();const{value:Pe}=$;return Pe?Pe.containerRef:null}function se(Pe,ze){var z;if(pe.value.has(Pe))return;const{value:q}=n,ce=q.indexOf(Pe),Ce=Array.from(q);~ce?(Ce.splice(ce,1),X(Ce)):ze&&!ze.isLeaf&&!ze.shallowLoaded?(pe.value.add(Pe),(z=J.value)===null||z===void 0||z.call(J,ze.rawNode).then(()=>{const{value:Re}=n,Te=Array.from(Re);~Te.indexOf(Pe)||Te.push(Pe),X(Te)}).finally(()=>{pe.value.delete(Pe)})):(Ce.push(Pe),X(Ce))}function ke(){w.value=null}function Me(){const{value:Pe}=K;return(Pe==null?void 0:Pe.listElRef)||null}function He(){const{value:Pe}=K;return(Pe==null?void 0:Pe.itemsElRef)||null}function Qe(Pe){var ze;de(Pe),(ze=$.value)===null||ze===void 0||ze.sync()}function Ve(Pe){var ze;const{onResize:z}=e;z&&z(Pe),(ze=$.value)===null||ze===void 0||ze.sync()}const We={getScrollContainer:ee,scrollTo(Pe,ze){var z,q;T.value?(z=K.value)===null||z===void 0||z.scrollTo(Pe,ze):(q=$.value)===null||q===void 0||q.scrollTo(Pe,ze)}},ot=L([({props:Pe})=>{const ze=q=>q===null?null:L(`[data-n-id="${Pe.componentId}"] [data-col-key="${q}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),z=q=>q===null?null:L(`[data-n-id="${Pe.componentId}"] [data-col-key="${q}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return L([ze(Pe.leftActiveFixedColKey),z(Pe.rightActiveFixedColKey),Pe.leftActiveFixedChildrenColKeys.map(q=>ze(q)),Pe.rightActiveFixedChildrenColKeys.map(q=>z(q))])}]);let Xe=!1;return Mt(()=>{const{value:Pe}=p,{value:ze}=g,{value:z}=b,{value:q}=m;if(!Xe&&Pe===null&&z===null)return;const ce={leftActiveFixedColKey:Pe,leftActiveFixedChildrenColKeys:ze,rightActiveFixedColKey:z,rightActiveFixedChildrenColKeys:q,componentId:E};ot.mount({id:`n-${E}`,force:!0,props:ce,anchorMetaName:$r,parent:k==null?void 0:k.styleMountTarget}),Xe=!0}),Oa(()=>{ot.unmount({id:`n-${E}`,parent:k==null?void 0:k.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:A,dataTableSlots:t,componentId:E,scrollbarInstRef:$,virtualListRef:K,emptyElRef:ie,summary:C,mergedClsPrefix:r,mergedTheme:i,scrollX:l,cols:a,loading:U,bodyShowHeaderOnly:xe,shouldDisplaySomeTablePart:re,empty:le,paginatedDataAndInfo:F(()=>{const{value:Pe}=Z;let ze=!1;return{data:s.value.map(Pe?(q,ce)=>(q.isLeaf||(ze=!0),{tmNode:q,key:q.key,striped:ce%2===1,index:ce}):(q,ce)=>(q.isLeaf||(ze=!0),{tmNode:q,key:q.key,striped:!1,index:ce})),hasChildren:ze}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:u,currentPage:f,rowClassName:h,renderExpand:x,mergedExpandedRowKeySet:te,hoverKey:w,mergedSortState:P,virtualScroll:T,virtualScrollX:y,heightForRow:B,minRowHeight:S,mergedTableLayout:j,childTriggerColIndex:_,indent:M,rowProps:W,maxHeight:D,loadingKeySet:pe,expandable:fe,stickyExpandedRows:N,renderExpandIcon:O,scrollbarProps:he,setHeaderScrollLeft:we,handleVirtualListScroll:Qe,handleVirtualListResize:Ve,handleMouseleaveTable:ke,virtualListContainer:Me,virtualListContent:He,handleTableBodyScroll:de,handleCheckboxUpdateChecked:ye,handleRadioUpdateChecked:be,handleUpdateExpanded:se,renderCell:_e},We)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:o,virtualScroll:n,maxHeight:r,mergedTableLayout:i,flexHeight:l,loadingKeySet:a,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||r!==void 0||l,u=!d&&i==="auto",f=t!==void 0||u,h={minWidth:zt(t)||"100%"};t&&(h.width="100%");const p=v(tr,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||u,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:h,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:f,onScroll:n?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const g={},b={},{cols:m,paginatedDataAndInfo:x,mergedTheme:w,fixedColumnLeftMap:C,fixedColumnRightMap:P,currentPage:T,rowClassName:y,mergedSortState:B,mergedExpandedRowKeySet:S,stickyExpandedRows:E,componentId:j,childTriggerColIndex:_,expandable:M,rowProps:W,handleMouseleaveTable:D,renderExpand:Z,summary:U,handleCheckboxUpdateChecked:J,handleRadioUpdateChecked:pe,handleUpdateExpanded:fe,heightForRow:N,minRowHeight:O,virtualScrollX:A}=this,{length:Q}=m;let he;const{data:we,hasChildren:X}=x,de=X?Jz(we,S):we;if(U){const ne=U(this.rawPaginatedData);if(Array.isArray(ne)){const te=ne.map((oe,ye)=>({isSummaryRow:!0,key:`__n_summary__${ye}`,tmNode:{rawNode:oe,disabled:!0},index:-1}));he=this.summaryPlacement==="top"?[...te,...de]:[...de,...te]}else{const te={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ne,disabled:!0},index:-1};he=this.summaryPlacement==="top"?[te,...de]:[...de,te]}}else he=de;const R=X?{width:At(this.indent)}:void 0,ae=[];he.forEach(ne=>{Z&&S.has(ne.key)&&(!M||M(ne.tmNode.rawNode))?ae.push(ne,{isExpandedRow:!0,key:`${ne.key}-expand`,tmNode:ne.tmNode,index:ne.index}):ae.push(ne)});const{length:_e}=ae,k={};we.forEach(({tmNode:ne},te)=>{k[te]=ne.key});const $=E?this.bodyWidth:null,K=$===null?void 0:`${$}px`,ie=this.virtualScrollX?"div":"td";let le=0,re=0;A&&m.forEach(ne=>{ne.column.fixed==="left"?le++:ne.column.fixed==="right"&&re++});const xe=({rowInfo:ne,displayedRowIndex:te,isVirtual:oe,isVirtualX:ye,startColIndex:be,endColIndex:ee,getLeft:se})=>{const{index:ke}=ne;if("isExpandedRow"in ne){const{tmNode:{key:Ce,rawNode:Re}}=ne;return v("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${Ce}__expand`},v("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,te+1===_e&&`${o}-data-table-td--last-row`],colspan:Q},E?v("div",{class:`${o}-data-table-expand`,style:{width:K}},Z(Re,ke)):Z(Re,ke)))}const Me="isSummaryRow"in ne,He=!Me&&ne.striped,{tmNode:Qe,key:Ve}=ne,{rawNode:We}=Qe,ot=S.has(Ve),Xe=W?W(We,ke):void 0,Pe=typeof y=="string"?y:uz(We,ke,y),ze=ye?m.filter((Ce,Re)=>!!(be<=Re&&Re<=ee||Ce.column.fixed)):m,z=ye?At((N==null?void 0:N(We,ke))||O):void 0,q=ze.map(Ce=>{var Re,Te,Ee,Ae,Ge;const ut=Ce.index;if(te in g){const vt=g[te],yt=vt.indexOf(ut);if(~yt)return vt.splice(yt,1),null}const{column:et}=Ce,jt=So(Ce),{rowSpan:Xt,colSpan:Yt}=et,Qt=Me?((Re=ne.tmNode.rawNode[jt])===null||Re===void 0?void 0:Re.colSpan)||1:Yt?Yt(We,ke):1,eo=Me?((Te=ne.tmNode.rawNode[jt])===null||Te===void 0?void 0:Te.rowSpan)||1:Xt?Xt(We,ke):1,po=ut+Qt===Q,to=te+eo===_e,G=eo>1;if(G&&(b[te]={[ut]:[]}),Qt>1||G)for(let vt=te;vt{fe(Ve,ne.tmNode)}})]:null,et.type==="selection"?Me?null:et.multiple===!1?v(Rz,{key:T,rowKey:Ve,disabled:ne.tmNode.disabled,onUpdateChecked:()=>{pe(ne.tmNode)}}):v(vz,{key:T,rowKey:Ve,disabled:ne.tmNode.disabled,onUpdateChecked:(vt,yt)=>{J(ne.tmNode,vt,yt.shiftKey)}}):et.type==="expand"?Me?null:!et.expandable||!((Ge=et.expandable)===null||Ge===void 0)&&Ge.call(et,We)?v(ag,{clsPrefix:o,rowData:We,expanded:ot,renderExpandIcon:this.renderExpandIcon,onClick:()=>{fe(Ve,null)}}):null:v(kz,{clsPrefix:o,index:ke,row:We,column:et,isSummary:Me,mergedTheme:w,renderCell:this.renderCell}))});return ye&&le&&re&&q.splice(le,0,v("td",{colspan:m.length-le-re,style:{pointerEvents:"none",visibility:"hidden",height:0}})),v("tr",Object.assign({},Xe,{onMouseenter:Ce=>{var Re;this.hoverKey=Ve,(Re=Xe==null?void 0:Xe.onMouseenter)===null||Re===void 0||Re.call(Xe,Ce)},key:Ve,class:[`${o}-data-table-tr`,Me&&`${o}-data-table-tr--summary`,He&&`${o}-data-table-tr--striped`,ot&&`${o}-data-table-tr--expanded`,Pe,Xe==null?void 0:Xe.class],style:[Xe==null?void 0:Xe.style,ye&&{height:z}]}),q)};return n?v(Is,{ref:"virtualListRef",items:ae,itemSize:this.minRowHeight,visibleItemsTag:Qz,visibleItemsProps:{clsPrefix:o,id:j,cols:m,onMouseleave:D},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:h,itemResizable:!A,columns:m,renderItemWithCols:A?({itemIndex:ne,item:te,startColIndex:oe,endColIndex:ye,getLeft:be})=>xe({displayedRowIndex:ne,isVirtual:!0,isVirtualX:!0,rowInfo:te,startColIndex:oe,endColIndex:ye,getLeft:be}):void 0},{default:({item:ne,index:te,renderedItemWithCols:oe})=>oe||xe({rowInfo:ne,displayedRowIndex:te,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(ye){return 0}})}):v("table",{class:`${o}-data-table-table`,onMouseleave:D,style:{tableLayout:this.mergedTableLayout}},v("colgroup",null,m.map(ne=>v("col",{key:ne.key,style:ne.style}))),this.showHeader?v(gg,{discrete:!1}):null,this.empty?null:v("tbody",{"data-n-id":j,class:`${o}-data-table-tbody`},ae.map((ne,te)=>xe({rowInfo:ne,displayedRowIndex:te,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(oe){return-1}}))))}});if(this.empty){const g=()=>v("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},Mo(this.dataTableSlots.empty,()=>[v(bv,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?v(it,null,p,g()):v(wn,{onResize:this.onResize},{default:g})}return p}}),tT=ve({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:n,maxHeightRef:r,minHeightRef:i,flexHeightRef:l,virtualScrollHeaderRef:a,syncScrollState:s}=$e(wo),c=V(null),d=V(null),u=V(null),f=V(!(o.value.length||t.value.length)),h=F(()=>({maxHeight:zt(r.value),minHeight:zt(i.value)}));function p(x){n.value=x.contentRect.width,s(),f.value||(f.value=!0)}function g(){var x;const{value:w}=c;return w?a.value?((x=w.virtualListRef)===null||x===void 0?void 0:x.listElRef)||null:w.$el:null}function b(){const{value:x}=d;return x?x.getScrollContainer():null}const m={getBodyElement:b,getHeaderElement:g,scrollTo(x,w){var C;(C=d.value)===null||C===void 0||C.scrollTo(x,w)}};return Mt(()=>{const{value:x}=u;if(!x)return;const w=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{x.classList.remove(w)},0):x.classList.add(w)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:u,headerInstRef:c,bodyInstRef:d,bodyStyle:h,flexHeight:l,handleBodyResize:p},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:o}=this,n=t===void 0&&!o;return v("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},n?null:v(gg,{ref:"headerInstRef"}),v(eT,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:o,onResize:this.handleBodyResize}))}}),mg=nT(),oT=L([I("data-table",` + width: 100%; + font-size: var(--n-font-size); + display: flex; + flex-direction: column; + position: relative; + --n-merged-th-color: var(--n-th-color); + --n-merged-td-color: var(--n-td-color); + --n-merged-border-color: var(--n-border-color); + --n-merged-th-color-hover: var(--n-th-color-hover); + --n-merged-th-color-sorting: var(--n-th-color-sorting); + --n-merged-td-color-hover: var(--n-td-color-hover); + --n-merged-td-color-sorting: var(--n-td-color-sorting); + --n-merged-td-color-striped: var(--n-td-color-striped); + `,[I("data-table-wrapper",` + flex-grow: 1; + display: flex; + flex-direction: column; + `),Y("flex-height",[L(">",[I("data-table-wrapper",[L(">",[I("data-table-base-table",` + display: flex; + flex-direction: column; + flex-grow: 1; + `,[L(">",[I("data-table-base-table-body","flex-basis: 0;",[L("&:last-child","flex-grow: 1;")])])])])])])]),L(">",[I("data-table-loading-wrapper",` + color: var(--n-loading-color); + font-size: var(--n-loading-size); + position: absolute; + left: 50%; + top: 50%; + transform: translateX(-50%) translateY(-50%); + transition: color .3s var(--n-bezier); + display: flex; + align-items: center; + justify-content: center; + `,[Ql({originalTransform:"translateX(-50%) translateY(-50%)"})])]),I("data-table-expand-placeholder",` + margin-right: 8px; + display: inline-block; + width: 16px; + height: 1px; + `),I("data-table-indent",` + display: inline-block; + height: 1px; + `),I("data-table-expand-trigger",` + display: inline-flex; + margin-right: 8px; + cursor: pointer; + font-size: 16px; + vertical-align: -0.2em; + position: relative; + width: 16px; + height: 16px; + color: var(--n-td-text-color); + transition: color .3s var(--n-bezier); + `,[Y("expanded",[I("icon","transform: rotate(90deg);",[Do({originalTransform:"rotate(90deg)"})]),I("base-icon","transform: rotate(90deg);",[Do({originalTransform:"rotate(90deg)"})])]),I("base-loading",` + color: var(--n-loading-color); + transition: color .3s var(--n-bezier); + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[Do()]),I("icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[Do()]),I("base-icon",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `,[Do()])]),I("data-table-thead",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-merged-th-color); + `),I("data-table-tr",` + position: relative; + box-sizing: border-box; + background-clip: padding-box; + transition: background-color .3s var(--n-bezier); + `,[I("data-table-expand",` + position: sticky; + left: 0; + overflow: hidden; + margin: calc(var(--n-th-padding) * -1); + padding: var(--n-th-padding); + box-sizing: border-box; + `),Y("striped","background-color: var(--n-merged-td-color-striped);",[I("data-table-td","background-color: var(--n-merged-td-color-striped);")]),Ye("summary",[L("&:hover","background-color: var(--n-merged-td-color-hover);",[L(">",[I("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),I("data-table-th",` + padding: var(--n-th-padding); + position: relative; + text-align: start; + box-sizing: border-box; + background-color: var(--n-merged-th-color); + border-color: var(--n-merged-border-color); + border-bottom: 1px solid var(--n-merged-border-color); + color: var(--n-th-text-color); + transition: + border-color .3s var(--n-bezier), + color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + font-weight: var(--n-th-font-weight); + `,[Y("filterable",` + padding-right: 36px; + `,[Y("sortable",` + padding-right: calc(var(--n-th-padding) + 36px); + `)]),mg,Y("selection",` + padding: 0; + text-align: center; + line-height: 0; + z-index: 3; + `),H("title-wrapper",` + display: flex; + align-items: center; + flex-wrap: nowrap; + max-width: 100%; + `,[H("title",` + flex: 1; + min-width: 0; + `)]),H("ellipsis",` + display: inline-block; + vertical-align: bottom; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + `),Y("hover",` + background-color: var(--n-merged-th-color-hover); + `),Y("sorting",` + background-color: var(--n-merged-th-color-sorting); + `),Y("sortable",` + cursor: pointer; + `,[H("ellipsis",` + max-width: calc(100% - 18px); + `),L("&:hover",` + background-color: var(--n-merged-th-color-hover); + `)]),I("data-table-sorter",` + height: var(--n-sorter-size); + width: var(--n-sorter-size); + margin-left: 4px; + position: relative; + display: inline-flex; + align-items: center; + justify-content: center; + vertical-align: -0.2em; + color: var(--n-th-icon-color); + transition: color .3s var(--n-bezier); + `,[I("base-icon","transition: transform .3s var(--n-bezier)"),Y("desc",[I("base-icon",` + transform: rotate(0deg); + `)]),Y("asc",[I("base-icon",` + transform: rotate(-180deg); + `)]),Y("asc, desc",` + color: var(--n-th-icon-color-active); + `)]),I("data-table-resize-button",` + width: var(--n-resizable-container-size); + position: absolute; + top: 0; + right: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + cursor: col-resize; + user-select: none; + `,[L("&::after",` + width: var(--n-resizable-size); + height: 50%; + position: absolute; + top: 50%; + left: calc(var(--n-resizable-container-size) / 2); + bottom: 0; + background-color: var(--n-merged-border-color); + transform: translateY(-50%); + transition: background-color .3s var(--n-bezier); + z-index: 1; + content: ''; + `),Y("active",[L("&::after",` + background-color: var(--n-th-icon-color-active); + `)]),L("&:hover::after",` + background-color: var(--n-th-icon-color-active); + `)]),I("data-table-filter",` + position: absolute; + z-index: auto; + right: 0; + width: 36px; + top: 0; + bottom: 0; + cursor: pointer; + display: flex; + justify-content: center; + align-items: center; + transition: + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); + font-size: var(--n-filter-size); + color: var(--n-th-icon-color); + `,[L("&:hover",` + background-color: var(--n-th-button-color-hover); + `),Y("show",` + background-color: var(--n-th-button-color-hover); + `),Y("active",` + background-color: var(--n-th-button-color-hover); + color: var(--n-th-icon-color-active); + `)])]),I("data-table-td",` + padding: var(--n-td-padding); + text-align: start; + box-sizing: border-box; + border: none; + background-color: var(--n-merged-td-color); + color: var(--n-td-text-color); + border-bottom: 1px solid var(--n-merged-border-color); + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + color .3s var(--n-bezier); + `,[Y("expand",[I("data-table-expand-trigger",` + margin-right: 0; + `)]),Y("last-row",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[L("&::after",` + bottom: 0 !important; + `),L("&::before",` + bottom: 0 !important; + `)]),Y("summary",` + background-color: var(--n-merged-th-color); + `),Y("hover",` + background-color: var(--n-merged-td-color-hover); + `),Y("sorting",` + background-color: var(--n-merged-td-color-sorting); + `),H("ellipsis",` + display: inline-block; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + max-width: 100%; + vertical-align: bottom; + max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px); + `),Y("selection, expand",` + text-align: center; + padding: 0; + line-height: 0; + `),mg]),I("data-table-empty",` + box-sizing: border-box; + padding: var(--n-empty-padding); + flex-grow: 1; + flex-shrink: 0; + opacity: 1; + display: flex; + align-items: center; + justify-content: center; + transition: opacity .3s var(--n-bezier); + `,[Y("hide",` + opacity: 0; + `)]),H("pagination",` + margin: var(--n-pagination-margin); + display: flex; + justify-content: flex-end; + `),I("data-table-wrapper",` + position: relative; + opacity: 1; + transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier); + border-top-left-radius: var(--n-border-radius); + border-top-right-radius: var(--n-border-radius); + line-height: var(--n-line-height); + `),Y("loading",[I("data-table-wrapper",` + opacity: var(--n-opacity-loading); + pointer-events: none; + `)]),Y("single-column",[I("data-table-td",` + border-bottom: 0 solid var(--n-merged-border-color); + `,[L("&::after, &::before",` + bottom: 0 !important; + `)])]),Ye("single-line",[I("data-table-th",` + border-right: 1px solid var(--n-merged-border-color); + `,[Y("last",` + border-right: 0 solid var(--n-merged-border-color); + `)]),I("data-table-td",` + border-right: 1px solid var(--n-merged-border-color); + `,[Y("last-col",` + border-right: 0 solid var(--n-merged-border-color); + `)])]),Y("bordered",[I("data-table-wrapper",` + border: 1px solid var(--n-merged-border-color); + border-bottom-left-radius: var(--n-border-radius); + border-bottom-right-radius: var(--n-border-radius); + overflow: hidden; + `)]),I("data-table-base-table",[Y("transition-disabled",[I("data-table-th",[L("&::after, &::before","transition: none;")]),I("data-table-td",[L("&::after, &::before","transition: none;")])])]),Y("bottom-bordered",[I("data-table-td",[Y("last-row",` + border-bottom: 1px solid var(--n-merged-border-color); + `)])]),I("data-table-table",` + font-variant-numeric: tabular-nums; + width: 100%; + word-break: break-word; + transition: background-color .3s var(--n-bezier); + border-collapse: separate; + border-spacing: 0; + background-color: var(--n-merged-td-color); + `),I("data-table-base-table-header",` + border-top-left-radius: calc(var(--n-border-radius) - 1px); + border-top-right-radius: calc(var(--n-border-radius) - 1px); + z-index: 3; + overflow: scroll; + flex-shrink: 0; + transition: border-color .3s var(--n-bezier); + scrollbar-width: none; + `,[L("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` + display: none; + width: 0; + height: 0; + `)]),I("data-table-check-extra",` + transition: color .3s var(--n-bezier); + color: var(--n-th-icon-color); + position: absolute; + font-size: 14px; + right: -4px; + top: 50%; + transform: translateY(-50%); + z-index: 1; + `)]),I("data-table-filter-menu",[I("scrollbar",` + max-height: 240px; + `),H("group",` + display: flex; + flex-direction: column; + padding: 12px 12px 0 12px; + `,[I("checkbox",` + margin-bottom: 12px; + margin-right: 0; + `),I("radio",` + margin-bottom: 12px; + margin-right: 0; + `)]),H("action",` + padding: var(--n-action-padding); + display: flex; + flex-wrap: nowrap; + justify-content: space-evenly; + border-top: 1px solid var(--n-action-divider-color); + `,[I("button",[L("&:not(:last-child)",` + margin: var(--n-action-button-margin); + `),L("&:last-child",` + margin-right: 0; + `)])]),I("divider",` + margin: 0 !important; + `)]),Sl(I("data-table",` + --n-merged-th-color: var(--n-th-color-modal); + --n-merged-td-color: var(--n-td-color-modal); + --n-merged-border-color: var(--n-border-color-modal); + --n-merged-th-color-hover: var(--n-th-color-hover-modal); + --n-merged-td-color-hover: var(--n-td-color-hover-modal); + --n-merged-th-color-sorting: var(--n-th-color-hover-modal); + --n-merged-td-color-sorting: var(--n-td-color-hover-modal); + --n-merged-td-color-striped: var(--n-td-color-striped-modal); + `)),Rl(I("data-table",` + --n-merged-th-color: var(--n-th-color-popover); + --n-merged-td-color: var(--n-td-color-popover); + --n-merged-border-color: var(--n-border-color-popover); + --n-merged-th-color-hover: var(--n-th-color-hover-popover); + --n-merged-td-color-hover: var(--n-td-color-hover-popover); + --n-merged-th-color-sorting: var(--n-th-color-hover-popover); + --n-merged-td-color-sorting: var(--n-td-color-hover-popover); + --n-merged-td-color-striped: var(--n-td-color-striped-popover); + `))]);function nT(){return[Y("fixed-left",` + left: 0; + position: sticky; + z-index: 2; + `,[L("&::after",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + right: -36px; + `)]),Y("fixed-right",` + right: 0; + position: sticky; + z-index: 1; + `,[L("&::before",` + pointer-events: none; + content: ""; + width: 36px; + display: inline-block; + position: absolute; + top: 0; + bottom: -1px; + transition: box-shadow .2s var(--n-bezier); + left: -36px; + `)])]}function rT(e,t){const{paginatedDataRef:o,treeMateRef:n,selectionColumnRef:r}=t,i=V(e.defaultCheckedRowKeys),l=F(()=>{var P;const{checkedRowKeys:T}=e,y=T===void 0?i.value:T;return((P=r.value)===null||P===void 0?void 0:P.multiple)===!1?{checkedKeys:y.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(y,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),a=F(()=>l.value.checkedKeys),s=F(()=>l.value.indeterminateKeys),c=F(()=>new Set(a.value)),d=F(()=>new Set(s.value)),u=F(()=>{const{value:P}=c;return o.value.reduce((T,y)=>{const{key:B,disabled:S}=y;return T+(!S&&P.has(B)?1:0)},0)}),f=F(()=>o.value.filter(P=>P.disabled).length),h=F(()=>{const{length:P}=o.value,{value:T}=d;return u.value>0&&u.valueT.has(y.key))}),p=F(()=>{const{length:P}=o.value;return u.value!==0&&u.value===P-f.value}),g=F(()=>o.value.length===0);function b(P,T,y){const{"onUpdate:checkedRowKeys":B,onUpdateCheckedRowKeys:S,onCheckedRowKeysChange:E}=e,j=[],{value:{getNode:_}}=n;P.forEach(M=>{var W;const D=(W=_(M))===null||W===void 0?void 0:W.rawNode;j.push(D)}),B&&ge(B,P,j,{row:T,action:y}),S&&ge(S,P,j,{row:T,action:y}),E&&ge(E,P,j,{row:T,action:y}),i.value=P}function m(P,T=!1,y){if(!e.loading){if(T){b(Array.isArray(P)?P.slice(0,1):[P],y,"check");return}b(n.value.check(P,a.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,y,"check")}}function x(P,T){e.loading||b(n.value.uncheck(P,a.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,T,"uncheck")}function w(P=!1){const{value:T}=r;if(!T||e.loading)return;const y=[];(P?n.value.treeNodes:o.value).forEach(B=>{B.disabled||y.push(B.key)}),b(n.value.check(y,a.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function C(P=!1){const{value:T}=r;if(!T||e.loading)return;const y=[];(P?n.value.treeNodes:o.value).forEach(B=>{B.disabled||y.push(B.key)}),b(n.value.uncheck(y,a.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:a,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:h,allRowsCheckedRef:p,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:b,doCheckAll:w,doUncheckAll:C,doCheck:m,doUncheck:x}}function iT(e,t){const o=Ze(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),n=Ze(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),r=V(e.defaultExpandAll?o!=null&&o.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var u;!((u=n.value)===null||u===void 0)&&u.call(n,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Se(e,"expandedRowKeys"),l=Se(e,"stickyExpandedRows"),a=It(i,r);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":u}=e;d&&ge(d,c),u&&ge(u,c),r.value=c}return{stickyExpandedRowsRef:l,mergedExpandedRowKeysRef:a,renderExpandRef:o,expandableRef:n,doUpdateExpandedRowKeys:s}}function lT(e,t){const o=[],n=[],r=[],i=new WeakMap;let l=-1,a=0,s=!1,c=0;function d(f,h){h>l&&(o[h]=[],l=h),f.forEach(p=>{if("children"in p)d(p.children,h+1);else{const g="key"in p?p.key:void 0;n.push({key:So(p),style:dz(p,g!==void 0?zt(t(g)):void 0),column:p,index:c++,width:p.width===void 0?128:Number(p.width)}),a+=1,s||(s=!!p.ellipsis),r.push(p)}})}d(e,0),c=0;function u(f,h){let p=0;f.forEach(g=>{var b;if("children"in g){const m=c,x={column:g,colIndex:c,colSpan:0,rowSpan:1,isLast:!1};u(g.children,h+1),g.children.forEach(w=>{var C,P;x.colSpan+=(P=(C=i.get(w))===null||C===void 0?void 0:C.colSpan)!==null&&P!==void 0?P:0}),m+x.colSpan===a&&(x.isLast=!0),i.set(g,x),o[h].push(x)}else{if(c1&&(p=c+m);const x=c+m===a,w={column:g,colSpan:m,colIndex:c,rowSpan:l-h+1,isLast:x};i.set(g,w),o[h].push(w),c+=1}})}return u(e,0),{hasEllipsis:s,rows:o,cols:n,dataRelatedCols:r}}function aT(e,t){const o=F(()=>lT(e.columns,t));return{rowsRef:F(()=>o.value.rows),colsRef:F(()=>o.value.cols),hasEllipsisRef:F(()=>o.value.hasEllipsis),dataRelatedColsRef:F(()=>o.value.dataRelatedCols)}}function sT(){const e=V({});function t(r){return e.value[r]}function o(r,i){Jv(r)&&"key"in r&&(e.value[r.key]=i)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:n}}function cT(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:n}){let r=0;const i=V(),l=V(null),a=V([]),s=V(null),c=V([]),d=F(()=>zt(e.scrollX)),u=F(()=>e.columns.filter(S=>S.fixed==="left")),f=F(()=>e.columns.filter(S=>S.fixed==="right")),h=F(()=>{const S={};let E=0;function j(_){_.forEach(M=>{const W={start:E,end:0};S[So(M)]=W,"children"in M?(j(M.children),W.end=E):(E+=Yv(M)||0,W.end=E)})}return j(u.value),S}),p=F(()=>{const S={};let E=0;function j(_){for(let M=_.length-1;M>=0;--M){const W=_[M],D={start:E,end:0};S[So(W)]=D,"children"in W?(j(W.children),D.end=E):(E+=Yv(W)||0,D.end=E)}}return j(f.value),S});function g(){var S,E;const{value:j}=u;let _=0;const{value:M}=h;let W=null;for(let D=0;D(((S=M[Z])===null||S===void 0?void 0:S.start)||0)-_)W=Z,_=((E=M[Z])===null||E===void 0?void 0:E.end)||0;else break}l.value=W}function b(){a.value=[];let S=e.columns.find(E=>So(E)===l.value);for(;S&&"children"in S;){const E=S.children.length;if(E===0)break;const j=S.children[E-1];a.value.push(So(j)),S=j}}function m(){var S,E;const{value:j}=f,_=Number(e.scrollX),{value:M}=n;if(M===null)return;let W=0,D=null;const{value:Z}=p;for(let U=j.length-1;U>=0;--U){const J=So(j[U]);if(Math.round(r+(((S=Z[J])===null||S===void 0?void 0:S.start)||0)+M-W)<_)D=J,W=((E=Z[J])===null||E===void 0?void 0:E.end)||0;else break}s.value=D}function x(){c.value=[];let S=e.columns.find(E=>So(E)===s.value);for(;S&&"children"in S&&S.children.length;){const E=S.children[0];c.value.push(So(E)),S=E}}function w(){const S=t.value?t.value.getHeaderElement():null,E=t.value?t.value.getBodyElement():null;return{header:S,body:E}}function C(){const{body:S}=w();S&&(S.scrollTop=0)}function P(){i.value!=="body"?_l(y):i.value=void 0}function T(S){var E;(E=e.onScroll)===null||E===void 0||E.call(e,S),i.value!=="head"?_l(y):i.value=void 0}function y(){const{header:S,body:E}=w();if(!E)return;const{value:j}=n;if(j!==null){if(e.maxHeight||e.flexHeight){if(!S)return;const _=r-S.scrollLeft;i.value=_!==0?"head":"body",i.value==="head"?(r=S.scrollLeft,E.scrollLeft=r):(r=E.scrollLeft,S.scrollLeft=r)}else r=E.scrollLeft;g(),b(),m(),x()}}function B(S){const{header:E}=w();E&&(E.scrollLeft=S,y())}return st(o,()=>{C()}),{styleScrollXRef:d,fixedColumnLeftMapRef:h,fixedColumnRightMapRef:p,leftFixedColumnsRef:u,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:l,leftActiveFixedChildrenColKeysRef:a,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:y,handleTableBodyScroll:T,handleTableHeaderScroll:P,setHeaderScrollLeft:B}}function la(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function dT(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?uT(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function uT(e){return(t,o)=>{const n=t[e],r=o[e];return n==null?r==null?0:-1:r==null?1:typeof n=="number"&&typeof r=="number"?n-r:typeof n=="string"&&typeof r=="string"?n.localeCompare(r):0}}function fT(e,{dataRelatedColsRef:t,filteredDataRef:o}){const n=[];t.value.forEach(h=>{var p;h.sorter!==void 0&&f(n,{columnKey:h.key,sorter:h.sorter,order:(p=h.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=V(n),i=F(()=>{const h=t.value.filter(b=>b.type!=="selection"&&b.sorter!==void 0&&(b.sortOrder==="ascend"||b.sortOrder==="descend"||b.sortOrder===!1)),p=h.filter(b=>b.sortOrder!==!1);if(p.length)return p.map(b=>({columnKey:b.key,order:b.sortOrder,sorter:b.sorter}));if(h.length)return[];const{value:g}=r;return Array.isArray(g)?g:g?[g]:[]}),l=F(()=>{const h=i.value.slice().sort((p,g)=>{const b=la(p.sorter)||0;return(la(g.sorter)||0)-b});return h.length?o.value.slice().sort((g,b)=>{let m=0;return h.some(x=>{const{columnKey:w,sorter:C,order:P}=x,T=dT(C,w);return T&&P&&(m=T(g.rawNode,b.rawNode),m!==0)?(m=m*sz(P),!0):!1}),m}):o.value});function a(h){let p=i.value.slice();return h&&la(h.sorter)!==!1?(p=p.filter(g=>la(g.sorter)!==!1),f(p,h),p):h||null}function s(h){const p=a(h);c(p)}function c(h){const{"onUpdate:sorter":p,onUpdateSorter:g,onSorterChange:b}=e;p&&ge(p,h),g&&ge(g,h),b&&ge(b,h),r.value=h}function d(h,p="ascend"){if(!h)u();else{const g=t.value.find(m=>m.type!=="selection"&&m.type!=="expand"&&m.key===h);if(!(g!=null&&g.sorter))return;const b=g.sorter;s({columnKey:h,sorter:b,order:p})}}function u(){c(null)}function f(h,p){const g=h.findIndex(b=>(p==null?void 0:p.columnKey)&&b.columnKey===p.columnKey);g!==void 0&&g>=0?h[g]=p:h.push(p)}return{clearSorter:u,sort:d,sortedDataRef:l,mergedSortStateRef:i,deriveNextSorter:s}}function hT(e,{dataRelatedColsRef:t}){const o=F(()=>{const N=O=>{for(let A=0;A{const{childrenKey:N}=e;return or(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:O=>O[N],getDisabled:O=>{var A,Q;return!!(!((Q=(A=o.value)===null||A===void 0?void 0:A.disabled)===null||Q===void 0)&&Q.call(A,O))}})}),r=Ze(()=>{const{columns:N}=e,{length:O}=N;let A=null;for(let Q=0;Q{const N=t.value.filter(Q=>Q.filterOptionValues!==void 0||Q.filterOptionValue!==void 0),O={};return N.forEach(Q=>{var he;Q.type==="selection"||Q.type==="expand"||(Q.filterOptionValues===void 0?O[Q.key]=(he=Q.filterOptionValue)!==null&&he!==void 0?he:null:O[Q.key]=Q.filterOptionValues)}),Object.assign(Zv(i.value),O)}),d=F(()=>{const N=c.value,{columns:O}=e;function A(we){return(X,de)=>!!~String(de[we]).indexOf(String(X))}const{value:{treeNodes:Q}}=n,he=[];return O.forEach(we=>{we.type==="selection"||we.type==="expand"||"children"in we||he.push([we.key,we])}),Q?Q.filter(we=>{const{rawNode:X}=we;for(const[de,R]of he){let ae=N[de];if(ae==null||(Array.isArray(ae)||(ae=[ae]),!ae.length))continue;const _e=R.filter==="default"?A(de):R.filter;if(R&&typeof _e=="function")if(R.filterMode==="and"){if(ae.some(k=>!_e(k,X)))return!1}else{if(ae.some(k=>_e(k,X)))continue;return!1}}return!0}):[]}),{sortedDataRef:u,deriveNextSorter:f,mergedSortStateRef:h,sort:p,clearSorter:g}=fT(e,{dataRelatedColsRef:t,filteredDataRef:d});t.value.forEach(N=>{var O;if(N.filter){const A=N.defaultFilterOptionValues;N.filterMultiple?i.value[N.key]=A||[]:A!==void 0?i.value[N.key]=A===null?[]:A:i.value[N.key]=(O=N.defaultFilterOptionValue)!==null&&O!==void 0?O:null}});const b=F(()=>{const{pagination:N}=e;if(N!==!1)return N.page}),m=F(()=>{const{pagination:N}=e;if(N!==!1)return N.pageSize}),x=It(b,a),w=It(m,s),C=Ze(()=>{const N=x.value;return e.remote?N:Math.max(1,Math.min(Math.ceil(d.value.length/w.value),N))}),P=F(()=>{const{pagination:N}=e;if(N){const{pageCount:O}=N;if(O!==void 0)return O}}),T=F(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return u.value;const N=w.value,O=(C.value-1)*N;return u.value.slice(O,O+N)}),y=F(()=>T.value.map(N=>N.rawNode));function B(N){const{pagination:O}=e;if(O){const{onChange:A,"onUpdate:page":Q,onUpdatePage:he}=O;A&&ge(A,N),he&&ge(he,N),Q&&ge(Q,N),_(N)}}function S(N){const{pagination:O}=e;if(O){const{onPageSizeChange:A,"onUpdate:pageSize":Q,onUpdatePageSize:he}=O;A&&ge(A,N),he&&ge(he,N),Q&&ge(Q,N),M(N)}}const E=F(()=>{if(e.remote){const{pagination:N}=e;if(N){const{itemCount:O}=N;if(O!==void 0)return O}return}return d.value.length}),j=F(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":B,"onUpdate:pageSize":S,page:C.value,pageSize:w.value,pageCount:E.value===void 0?P.value:void 0,itemCount:E.value}));function _(N){const{"onUpdate:page":O,onPageChange:A,onUpdatePage:Q}=e;Q&&ge(Q,N),O&&ge(O,N),A&&ge(A,N),a.value=N}function M(N){const{"onUpdate:pageSize":O,onPageSizeChange:A,onUpdatePageSize:Q}=e;A&&ge(A,N),Q&&ge(Q,N),O&&ge(O,N),s.value=N}function W(N,O){const{onUpdateFilters:A,"onUpdate:filters":Q,onFiltersChange:he}=e;A&&ge(A,N,O),Q&&ge(Q,N,O),he&&ge(he,N,O),i.value=N}function D(N,O,A,Q){var he;(he=e.onUnstableColumnResize)===null||he===void 0||he.call(e,N,O,A,Q)}function Z(N){_(N)}function U(){J()}function J(){pe({})}function pe(N){fe(N)}function fe(N){N?N&&(i.value=Zv(N)):i.value={}}return{treeMateRef:n,mergedCurrentPageRef:C,mergedPaginationRef:j,paginatedDataRef:T,rawPaginatedDataRef:y,mergedFilterStateRef:c,mergedSortStateRef:h,hoverKeyRef:V(null),selectionColumnRef:o,childTriggerColIndexRef:r,doUpdateFilters:W,deriveNextSorter:f,doUpdatePageSize:M,doUpdatePage:_,onUnstableColumnResize:D,filter:fe,filters:pe,clearFilter:U,clearFilters:J,clearSorter:g,page:Z,sort:p}}const pT=ve({name:"DataTable",alias:["AdvancedTable"],props:lz,slots:Object,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=Je(e),l=qt("DataTable",i,n),a=F(()=>{const{bottomBordered:z}=e;return o.value?!1:z!==void 0?z:!0}),s=Ie("DataTable","-data-table",oT,iz,e,n),c=V(null),d=V(null),{getResizableWidth:u,clearResizableWidth:f,doUpdateResizableWidth:h}=sT(),{rowsRef:p,colsRef:g,dataRelatedColsRef:b,hasEllipsisRef:m}=aT(e,u),{treeMateRef:x,mergedCurrentPageRef:w,paginatedDataRef:C,rawPaginatedDataRef:P,selectionColumnRef:T,hoverKeyRef:y,mergedPaginationRef:B,mergedFilterStateRef:S,mergedSortStateRef:E,childTriggerColIndexRef:j,doUpdatePage:_,doUpdateFilters:M,onUnstableColumnResize:W,deriveNextSorter:D,filter:Z,filters:U,clearFilter:J,clearFilters:pe,clearSorter:fe,page:N,sort:O}=hT(e,{dataRelatedColsRef:b}),A=z=>{const{fileName:q="data.csv",keepOriginalData:ce=!1}=z||{},Ce=ce?e.data:P.value,Re=pz(e.columns,Ce,e.getCsvCell,e.getCsvHeader),Te=new Blob([Re],{type:"text/csv;charset=utf-8"}),Ee=URL.createObjectURL(Te);bC(Ee,q.endsWith(".csv")?q:`${q}.csv`),URL.revokeObjectURL(Ee)},{doCheckAll:Q,doUncheckAll:he,doCheck:we,doUncheck:X,headerCheckboxDisabledRef:de,someRowsCheckedRef:R,allRowsCheckedRef:ae,mergedCheckedRowKeySetRef:_e,mergedInderminateRowKeySetRef:k}=rT(e,{selectionColumnRef:T,treeMateRef:x,paginatedDataRef:C}),{stickyExpandedRowsRef:$,mergedExpandedRowKeysRef:K,renderExpandRef:ie,expandableRef:le,doUpdateExpandedRowKeys:re}=iT(e,x),{handleTableBodyScroll:xe,handleTableHeaderScroll:ne,syncScrollState:te,setHeaderScrollLeft:oe,leftActiveFixedColKeyRef:ye,leftActiveFixedChildrenColKeysRef:be,rightActiveFixedColKeyRef:ee,rightActiveFixedChildrenColKeysRef:se,leftFixedColumnsRef:ke,rightFixedColumnsRef:Me,fixedColumnLeftMapRef:He,fixedColumnRightMapRef:Qe}=cT(e,{bodyWidthRef:c,mainTableInstRef:d,mergedCurrentPageRef:w}),{localeRef:Ve}=Pi("DataTable"),We=F(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);tt(wo,{props:e,treeMateRef:x,renderExpandIconRef:Se(e,"renderExpandIcon"),loadingKeySetRef:V(new Set),slots:t,indentRef:Se(e,"indent"),childTriggerColIndexRef:j,bodyWidthRef:c,componentId:Tl(),hoverKeyRef:y,mergedClsPrefixRef:n,mergedThemeRef:s,scrollXRef:F(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:C,leftActiveFixedColKeyRef:ye,leftActiveFixedChildrenColKeysRef:be,rightActiveFixedColKeyRef:ee,rightActiveFixedChildrenColKeysRef:se,leftFixedColumnsRef:ke,rightFixedColumnsRef:Me,fixedColumnLeftMapRef:He,fixedColumnRightMapRef:Qe,mergedCurrentPageRef:w,someRowsCheckedRef:R,allRowsCheckedRef:ae,mergedSortStateRef:E,mergedFilterStateRef:S,loadingRef:Se(e,"loading"),rowClassNameRef:Se(e,"rowClassName"),mergedCheckedRowKeySetRef:_e,mergedExpandedRowKeysRef:K,mergedInderminateRowKeySetRef:k,localeRef:Ve,expandableRef:le,stickyExpandedRowsRef:$,rowKeyRef:Se(e,"rowKey"),renderExpandRef:ie,summaryRef:Se(e,"summary"),virtualScrollRef:Se(e,"virtualScroll"),virtualScrollXRef:Se(e,"virtualScrollX"),heightForRowRef:Se(e,"heightForRow"),minRowHeightRef:Se(e,"minRowHeight"),virtualScrollHeaderRef:Se(e,"virtualScrollHeader"),headerHeightRef:Se(e,"headerHeight"),rowPropsRef:Se(e,"rowProps"),stripedRef:Se(e,"striped"),checkOptionsRef:F(()=>{const{value:z}=T;return z==null?void 0:z.options}),rawPaginatedDataRef:P,filterMenuCssVarsRef:F(()=>{const{self:{actionDividerColor:z,actionPadding:q,actionButtonMargin:ce}}=s.value;return{"--n-action-padding":q,"--n-action-button-margin":ce,"--n-action-divider-color":z}}),onLoadRef:Se(e,"onLoad"),mergedTableLayoutRef:We,maxHeightRef:Se(e,"maxHeight"),minHeightRef:Se(e,"minHeight"),flexHeightRef:Se(e,"flexHeight"),headerCheckboxDisabledRef:de,paginationBehaviorOnFilterRef:Se(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Se(e,"summaryPlacement"),filterIconPopoverPropsRef:Se(e,"filterIconPopoverProps"),scrollbarPropsRef:Se(e,"scrollbarProps"),syncScrollState:te,doUpdatePage:_,doUpdateFilters:M,getResizableWidth:u,onUnstableColumnResize:W,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:D,doCheck:we,doUncheck:X,doCheckAll:Q,doUncheckAll:he,doUpdateExpandedRowKeys:re,handleTableHeaderScroll:ne,handleTableBodyScroll:xe,setHeaderScrollLeft:oe,renderCell:Se(e,"renderCell")});const ot={filter:Z,filters:U,clearFilters:pe,clearSorter:fe,page:N,sort:O,clearFilter:J,downloadCsv:A,scrollTo:(z,q)=>{var ce;(ce=d.value)===null||ce===void 0||ce.scrollTo(z,q)}},Xe=F(()=>{const{size:z}=e,{common:{cubicBezierEaseInOut:q},self:{borderColor:ce,tdColorHover:Ce,tdColorSorting:Re,tdColorSortingModal:Te,tdColorSortingPopover:Ee,thColorSorting:Ae,thColorSortingModal:Ge,thColorSortingPopover:ut,thColor:et,thColorHover:jt,tdColor:Xt,tdTextColor:Yt,thTextColor:Qt,thFontWeight:eo,thButtonColorHover:po,thIconColor:to,thIconColorActive:G,filterSize:ue,borderRadius:Fe,lineHeight:je,tdColorModal:nt,thColorModal:qe,borderColorModal:vt,thColorHoverModal:yt,tdColorHoverModal:io,borderColorPopover:nn,thColorPopover:rn,tdColorPopover:ir,tdColorHoverPopover:$i,thColorHoverPopover:Ei,paginationMargin:Fi,emptyPadding:Ai,boxShadowAfter:Ii,boxShadowBefore:zn,sorterSize:Tn,resizableContainerSize:qc,resizableSize:Xc,loadingColor:Yc,loadingSize:Zc,opacityLoading:Jc,tdColorStriped:Qc,tdColorStripedModal:ed,tdColorStripedPopover:td,[me("fontSize",z)]:od,[me("thPadding",z)]:nd,[me("tdPadding",z)]:rd}}=s.value;return{"--n-font-size":od,"--n-th-padding":nd,"--n-td-padding":rd,"--n-bezier":q,"--n-border-radius":Fe,"--n-line-height":je,"--n-border-color":ce,"--n-border-color-modal":vt,"--n-border-color-popover":nn,"--n-th-color":et,"--n-th-color-hover":jt,"--n-th-color-modal":qe,"--n-th-color-hover-modal":yt,"--n-th-color-popover":rn,"--n-th-color-hover-popover":Ei,"--n-td-color":Xt,"--n-td-color-hover":Ce,"--n-td-color-modal":nt,"--n-td-color-hover-modal":io,"--n-td-color-popover":ir,"--n-td-color-hover-popover":$i,"--n-th-text-color":Qt,"--n-td-text-color":Yt,"--n-th-font-weight":eo,"--n-th-button-color-hover":po,"--n-th-icon-color":to,"--n-th-icon-color-active":G,"--n-filter-size":ue,"--n-pagination-margin":Fi,"--n-empty-padding":Ai,"--n-box-shadow-before":zn,"--n-box-shadow-after":Ii,"--n-sorter-size":Tn,"--n-resizable-container-size":qc,"--n-resizable-size":Xc,"--n-loading-size":Zc,"--n-loading-color":Yc,"--n-opacity-loading":Jc,"--n-td-color-striped":Qc,"--n-td-color-striped-modal":ed,"--n-td-color-striped-popover":td,"--n-td-color-sorting":Re,"--n-td-color-sorting-modal":Te,"--n-td-color-sorting-popover":Ee,"--n-th-color-sorting":Ae,"--n-th-color-sorting-modal":Ge,"--n-th-color-sorting-popover":ut}}),Pe=r?gt("data-table",F(()=>e.size[0]),Xe,e):void 0,ze=F(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const z=B.value,{pageCount:q}=z;return q!==void 0?q>1:z.itemCount&&z.pageSize&&z.itemCount>z.pageSize});return Object.assign({mainTableInstRef:d,mergedClsPrefix:n,rtlEnabled:l,mergedTheme:s,paginatedData:C,mergedBordered:o,mergedBottomBordered:a,mergedPagination:B,mergedShowPagination:ze,cssVars:r?void 0:Xe,themeClass:Pe==null?void 0:Pe.themeClass,onRender:Pe==null?void 0:Pe.onRender},ot)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:n,spinProps:r}=this;return o==null||o(),v("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},v("div",{class:`${e}-data-table-wrapper`},v(tT,{ref:"mainTableInstRef"})),this.mergedShowPagination?v("div",{class:`${e}-data-table__pagination`},v(Yk,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,v(Yo,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?v("div",{class:`${e}-data-table-loading-wrapper`},Mo(n.loading,()=>[v(ki,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}});function vT(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:l,headerColor:r,headerColorInverted:c,footerColor:l,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:r,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Ue(n,a),siderToggleBarColorHover:Ue(n,s),__invertScrollbar:"true"}}const Lc={name:"Layout",common:xt,peers:{Scrollbar:Er},self:vT};function gT(e,t,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function mT(e){const{borderRadius:t,textColor3:o,primaryColor:n,textColor2:r,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:Le(n,{alpha:.1}),itemColorActiveHover:Le(n,{alpha:.1}),itemColorActiveCollapsed:Le(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a},gT("#BBB",n,"#FFF","#AAA"))}const bT={name:"Menu",common:xt,peers:{Tooltip:Tc,Dropdown:zc},self:mT};function xT(e){const{textColor2:t,textColor3:o,fontSize:n,fontWeight:r}=e;return{labelFontSize:n,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const yT={common:xt,self:xT},CT={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function wT(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},CT),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:n,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:r,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const ST={common:xt,self:wT},bg="n-layout-sider",Nc={type:String,default:"static"},RT=I("layout",` + color: var(--n-text-color); + background-color: var(--n-color); + box-sizing: border-box; + position: relative; + z-index: auto; + flex: auto; + overflow: hidden; + transition: + box-shadow .3s var(--n-bezier), + background-color .3s var(--n-bezier), + color .3s var(--n-bezier); +`,[I("layout-scroll-container",` + overflow-x: hidden; + box-sizing: border-box; + height: 100%; + `),Y("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),PT={embedded:Boolean,position:Nc,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},xg="n-layout";function _T(e){return ve({name:"Layout",props:Object.assign(Object.assign({},Ie.props),PT),setup(t){const o=V(null),n=V(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=Je(t),l=Ie("Layout","-layout",RT,Lc,t,r);function a(g,b){if(t.nativeScrollbar){const{value:m}=o;m&&(b===void 0?m.scrollTo(g):m.scrollTo(g,b))}else{const{value:m}=n;m&&m.scrollTo(g,b)}}tt(xg,t);let s=0,c=0;const d=g=>{var b;const m=g.target;s=m.scrollLeft,c=m.scrollTop,(b=t.onScroll)===null||b===void 0||b.call(t,g)};xs(()=>{if(t.nativeScrollbar){const g=o.value;g&&(g.scrollTop=c,g.scrollLeft=s)}});const u={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:a},h=F(()=>{const{common:{cubicBezierEaseInOut:g},self:b}=l.value;return{"--n-bezier":g,"--n-color":t.embedded?b.colorEmbedded:b.color,"--n-text-color":b.textColor}}),p=i?gt("layout",F(()=>t.embedded?"e":""),h,t):void 0;return Object.assign({mergedClsPrefix:r,scrollableElRef:o,scrollbarInstRef:n,hasSiderStyle:u,mergedTheme:l,handleNativeElScroll:d,cssVars:i?void 0:h,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},f)},render(){var t;const{mergedClsPrefix:o,hasSider:n}=this;(t=this.onRender)===null||t===void 0||t.call(this);const r=n?this.hasSiderStyle:void 0,i=[this.themeClass,e,`${o}-layout`,`${o}-layout--${this.position}-positioned`];return v("div",{class:i,style:this.cssVars},this.nativeScrollbar?v("div",{ref:"scrollableElRef",class:[`${o}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,r],onScroll:this.handleNativeElScroll},this.$slots):v(tr,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,r]}),this.$slots))}})}const kT=_T(!1),zT=I("layout-header",` + transition: + color .3s var(--n-bezier), + background-color .3s var(--n-bezier), + box-shadow .3s var(--n-bezier), + border-color .3s var(--n-bezier); + box-sizing: border-box; + width: 100%; + background-color: var(--n-color); + color: var(--n-text-color); +`,[Y("absolute-positioned",` + position: absolute; + left: 0; + right: 0; + top: 0; + `),Y("bordered",` + border-bottom: solid 1px var(--n-border-color); + `)]),TT={position:Nc,inverted:Boolean,bordered:{type:Boolean,default:!1}},$T=ve({name:"LayoutHeader",props:Object.assign(Object.assign({},Ie.props),TT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Je(e),n=Ie("Layout","-layout-header",zT,Lc,e,t),r=F(()=>{const{common:{cubicBezierEaseInOut:l},self:a}=n.value,s={"--n-bezier":l};return e.inverted?(s["--n-color"]=a.headerColorInverted,s["--n-text-color"]=a.textColorInverted,s["--n-border-color"]=a.headerBorderColorInverted):(s["--n-color"]=a.headerColor,s["--n-text-color"]=a.textColor,s["--n-border-color"]=a.headerBorderColor),s}),i=o?gt("layout-header",F(()=>e.inverted?"a":"b"),r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),ET=I("layout-sider",` + flex-shrink: 0; + box-sizing: border-box; + position: relative; + z-index: 1; + color: var(--n-text-color); + transition: + color .3s var(--n-bezier), + border-color .3s var(--n-bezier), + min-width .3s var(--n-bezier), + max-width .3s var(--n-bezier), + transform .3s var(--n-bezier), + background-color .3s var(--n-bezier); + background-color: var(--n-color); + display: flex; + justify-content: flex-end; +`,[Y("bordered",[H("border",` + content: ""; + position: absolute; + top: 0; + bottom: 0; + width: 1px; + background-color: var(--n-border-color); + transition: background-color .3s var(--n-bezier); + `)]),H("left-placement",[Y("bordered",[H("border",` + right: 0; + `)])]),Y("right-placement",` + justify-content: flex-start; + `,[Y("bordered",[H("border",` + left: 0; + `)]),Y("collapsed",[I("layout-toggle-button",[I("base-icon",` + transform: rotate(180deg); + `)]),I("layout-toggle-bar",[L("&:hover",[H("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),H("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),I("layout-toggle-button",` + left: 0; + transform: translateX(-50%) translateY(-50%); + `,[I("base-icon",` + transform: rotate(0); + `)]),I("layout-toggle-bar",` + left: -28px; + transform: rotate(180deg); + `,[L("&:hover",[H("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),H("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),Y("collapsed",[I("layout-toggle-bar",[L("&:hover",[H("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),H("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),I("layout-toggle-button",[I("base-icon",` + transform: rotate(0); + `)])]),I("layout-toggle-button",` + transition: + color .3s var(--n-bezier), + right .3s var(--n-bezier), + left .3s var(--n-bezier), + border-color .3s var(--n-bezier), + background-color .3s var(--n-bezier); + cursor: pointer; + width: 24px; + height: 24px; + position: absolute; + top: 50%; + right: 0; + border-radius: 50%; + display: flex; + align-items: center; + justify-content: center; + font-size: 18px; + color: var(--n-toggle-button-icon-color); + border: var(--n-toggle-button-border); + background-color: var(--n-toggle-button-color); + box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06); + transform: translateX(50%) translateY(-50%); + z-index: 1; + `,[I("base-icon",` + transition: transform .3s var(--n-bezier); + transform: rotate(180deg); + `)]),I("layout-toggle-bar",` + cursor: pointer; + height: 72px; + width: 32px; + position: absolute; + top: calc(50% - 36px); + right: -28px; + `,[H("top, bottom",` + position: absolute; + width: 4px; + border-radius: 2px; + height: 38px; + left: 14px; + transition: + background-color .3s var(--n-bezier), + transform .3s var(--n-bezier); + `),H("bottom",` + position: absolute; + top: 34px; + `),L("&:hover",[H("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),H("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),H("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),L("&:hover",[H("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),H("border",` + position: absolute; + top: 0; + right: 0; + bottom: 0; + width: 1px; + transition: background-color .3s var(--n-bezier); + `),I("layout-sider-scroll-container",` + flex-grow: 1; + flex-shrink: 0; + box-sizing: border-box; + height: 100%; + opacity: 0; + transition: opacity .3s var(--n-bezier); + max-width: 100%; + `),Y("show-content",[I("layout-sider-scroll-container",{opacity:1})]),Y("absolute-positioned",` + position: absolute; + left: 0; + top: 0; + bottom: 0; + `)]),FT=ve({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},v("div",{class:`${e}-layout-toggle-bar__top`}),v("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),AT=ve({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},v(Tt,{clsPrefix:e},{default:()=>v(dc,null)}))}}),IT={position:Nc,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},OT=ve({name:"LayoutSider",props:Object.assign(Object.assign({},Ie.props),IT),setup(e){const t=$e(xg),o=V(null),n=V(null),r=V(e.defaultCollapsed),i=It(Se(e,"collapsed"),r),l=F(()=>zt(i.value?e.collapsedWidth:e.width)),a=F(()=>e.collapseMode!=="transform"?{}:{minWidth:zt(e.width)}),s=F(()=>t?t.siderPlacement:"left");function c(P,T){if(e.nativeScrollbar){const{value:y}=o;y&&(T===void 0?y.scrollTo(P):y.scrollTo(P,T))}else{const{value:y}=n;y&&y.scrollTo(P,T)}}function d(){const{"onUpdate:collapsed":P,onUpdateCollapsed:T,onExpand:y,onCollapse:B}=e,{value:S}=i;T&&ge(T,!S),P&&ge(P,!S),r.value=!S,S?y&&ge(y):B&&ge(B)}let u=0,f=0;const h=P=>{var T;const y=P.target;u=y.scrollLeft,f=y.scrollTop,(T=e.onScroll)===null||T===void 0||T.call(e,P)};xs(()=>{if(e.nativeScrollbar){const P=o.value;P&&(P.scrollTop=f,P.scrollLeft=u)}}),tt(bg,{collapsedRef:i,collapseModeRef:Se(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:g}=Je(e),b=Ie("Layout","-layout-sider",ET,Lc,e,p);function m(P){var T,y;P.propertyName==="max-width"&&(i.value?(T=e.onAfterLeave)===null||T===void 0||T.call(e):(y=e.onAfterEnter)===null||y===void 0||y.call(e))}const x={scrollTo:c},w=F(()=>{const{common:{cubicBezierEaseInOut:P},self:T}=b.value,{siderToggleButtonColor:y,siderToggleButtonBorder:B,siderToggleBarColor:S,siderToggleBarColorHover:E}=T,j={"--n-bezier":P,"--n-toggle-button-color":y,"--n-toggle-button-border":B,"--n-toggle-bar-color":S,"--n-toggle-bar-color-hover":E};return e.inverted?(j["--n-color"]=T.siderColorInverted,j["--n-text-color"]=T.textColorInverted,j["--n-border-color"]=T.siderBorderColorInverted,j["--n-toggle-button-icon-color"]=T.siderToggleButtonIconColorInverted,j.__invertScrollbar=T.__invertScrollbar):(j["--n-color"]=T.siderColor,j["--n-text-color"]=T.textColor,j["--n-border-color"]=T.siderBorderColor,j["--n-toggle-button-icon-color"]=T.siderToggleButtonIconColor),j}),C=g?gt("layout-sider",F(()=>e.inverted?"a":"b"),w,e):void 0;return Object.assign({scrollableElRef:o,scrollbarInstRef:n,mergedClsPrefix:p,mergedTheme:b,styleMaxWidth:l,mergedCollapsed:i,scrollContainerStyle:a,siderPlacement:s,handleNativeElScroll:h,handleTransitionend:m,handleTriggerClick:d,inlineThemeDisabled:g,cssVars:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender},x)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:o,showTrigger:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,o&&`${t}-layout-sider--collapsed`,(!o||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:zt(this.width)}]},this.nativeScrollbar?v("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):v(tr,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),n?n==="bar"?v(FT,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):v(AT,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?v("div",{class:`${t}-layout-sider__border`}):null)}}),Ti="n-menu",yg="n-submenu",jc="n-menu-item-group",Cg=[L("&::before","background-color: var(--n-item-color-hover);"),H("arrow",` + color: var(--n-arrow-color-hover); + `),H("icon",` + color: var(--n-item-icon-color-hover); + `),I("menu-item-content-header",` + color: var(--n-item-text-color-hover); + `,[L("a",` + color: var(--n-item-text-color-hover); + `),H("extra",` + color: var(--n-item-text-color-hover); + `)])],wg=[H("icon",` + color: var(--n-item-icon-color-hover-horizontal); + `),I("menu-item-content-header",` + color: var(--n-item-text-color-hover-horizontal); + `,[L("a",` + color: var(--n-item-text-color-hover-horizontal); + `),H("extra",` + color: var(--n-item-text-color-hover-horizontal); + `)])],MT=L([I("menu",` + background-color: var(--n-color); + color: var(--n-item-text-color); + overflow: hidden; + transition: background-color .3s var(--n-bezier); + box-sizing: border-box; + font-size: var(--n-font-size); + padding-bottom: 6px; + `,[Y("horizontal",` + max-width: 100%; + width: 100%; + display: flex; + overflow: hidden; + padding-bottom: 0; + `,[I("submenu","margin: 0;"),I("menu-item","margin: 0;"),I("menu-item-content",` + padding: 0 20px; + border-bottom: 2px solid #0000; + `,[L("&::before","display: none;"),Y("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),I("menu-item-content",[Y("selected",[H("icon","color: var(--n-item-icon-color-active-horizontal);"),I("menu-item-content-header",` + color: var(--n-item-text-color-active-horizontal); + `,[L("a","color: var(--n-item-text-color-active-horizontal);"),H("extra","color: var(--n-item-text-color-active-horizontal);")])]),Y("child-active",` + border-bottom: 2px solid var(--n-border-color-horizontal); + `,[I("menu-item-content-header",` + color: var(--n-item-text-color-child-active-horizontal); + `,[L("a",` + color: var(--n-item-text-color-child-active-horizontal); + `),H("extra",` + color: var(--n-item-text-color-child-active-horizontal); + `)]),H("icon",` + color: var(--n-item-icon-color-child-active-horizontal); + `)]),Ye("disabled",[Ye("selected, child-active",[L("&:focus-within",wg)]),Y("selected",[rr(null,[H("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),I("menu-item-content-header",` + color: var(--n-item-text-color-active-hover-horizontal); + `,[L("a","color: var(--n-item-text-color-active-hover-horizontal);"),H("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),Y("child-active",[rr(null,[H("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),I("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover-horizontal); + `,[L("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),H("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),rr("border-bottom: 2px solid var(--n-border-color-horizontal);",wg)]),I("menu-item-content-header",[L("a","color: var(--n-item-text-color-horizontal);")])])]),Ye("responsive",[I("menu-item-content-header",` + overflow: hidden; + text-overflow: ellipsis; + `)]),Y("collapsed",[I("menu-item-content",[Y("selected",[L("&::before",` + background-color: var(--n-item-color-active-collapsed) !important; + `)]),I("menu-item-content-header","opacity: 0;"),H("arrow","opacity: 0;"),H("icon","color: var(--n-item-icon-color-collapsed);")])]),I("menu-item",` + height: var(--n-item-height); + margin-top: 6px; + position: relative; + `),I("menu-item-content",` + box-sizing: border-box; + line-height: 1.75; + height: 100%; + display: grid; + grid-template-areas: "icon content arrow"; + grid-template-columns: auto 1fr auto; + align-items: center; + cursor: pointer; + position: relative; + padding-right: 18px; + transition: + background-color .3s var(--n-bezier), + padding-left .3s var(--n-bezier), + border-color .3s var(--n-bezier); + `,[L("> *","z-index: 1;"),L("&::before",` + z-index: auto; + content: ""; + background-color: #0000; + position: absolute; + left: 8px; + right: 8px; + top: 0; + bottom: 0; + pointer-events: none; + border-radius: var(--n-border-radius); + transition: background-color .3s var(--n-bezier); + `),Y("disabled",` + opacity: .45; + cursor: not-allowed; + `),Y("collapsed",[H("arrow","transform: rotate(0);")]),Y("selected",[L("&::before","background-color: var(--n-item-color-active);"),H("arrow","color: var(--n-arrow-color-active);"),H("icon","color: var(--n-item-icon-color-active);"),I("menu-item-content-header",` + color: var(--n-item-text-color-active); + `,[L("a","color: var(--n-item-text-color-active);"),H("extra","color: var(--n-item-text-color-active);")])]),Y("child-active",[I("menu-item-content-header",` + color: var(--n-item-text-color-child-active); + `,[L("a",` + color: var(--n-item-text-color-child-active); + `),H("extra",` + color: var(--n-item-text-color-child-active); + `)]),H("arrow",` + color: var(--n-arrow-color-child-active); + `),H("icon",` + color: var(--n-item-icon-color-child-active); + `)]),Ye("disabled",[Ye("selected, child-active",[L("&:focus-within",Cg)]),Y("selected",[rr(null,[H("arrow","color: var(--n-arrow-color-active-hover);"),H("icon","color: var(--n-item-icon-color-active-hover);"),I("menu-item-content-header",` + color: var(--n-item-text-color-active-hover); + `,[L("a","color: var(--n-item-text-color-active-hover);"),H("extra","color: var(--n-item-text-color-active-hover);")])])]),Y("child-active",[rr(null,[H("arrow","color: var(--n-arrow-color-child-active-hover);"),H("icon","color: var(--n-item-icon-color-child-active-hover);"),I("menu-item-content-header",` + color: var(--n-item-text-color-child-active-hover); + `,[L("a","color: var(--n-item-text-color-child-active-hover);"),H("extra","color: var(--n-item-text-color-child-active-hover);")])])]),Y("selected",[rr(null,[L("&::before","background-color: var(--n-item-color-active-hover);")])]),rr(null,Cg)]),H("icon",` + grid-area: icon; + color: var(--n-item-icon-color); + transition: + color .3s var(--n-bezier), + font-size .3s var(--n-bezier), + margin-right .3s var(--n-bezier); + box-sizing: content-box; + display: inline-flex; + align-items: center; + justify-content: center; + `),H("arrow",` + grid-area: arrow; + font-size: 16px; + color: var(--n-arrow-color); + transform: rotate(180deg); + opacity: 1; + transition: + color .3s var(--n-bezier), + transform 0.2s var(--n-bezier), + opacity 0.2s var(--n-bezier); + `),I("menu-item-content-header",` + grid-area: content; + transition: + color .3s var(--n-bezier), + opacity .3s var(--n-bezier); + opacity: 1; + white-space: nowrap; + color: var(--n-item-text-color); + `,[L("a",` + outline: none; + text-decoration: none; + transition: color .3s var(--n-bezier); + color: var(--n-item-text-color); + `,[L("&::before",` + content: ""; + position: absolute; + left: 0; + right: 0; + top: 0; + bottom: 0; + `)]),H("extra",` + font-size: .93em; + color: var(--n-group-text-color); + transition: color .3s var(--n-bezier); + `)])]),I("submenu",` + cursor: pointer; + position: relative; + margin-top: 6px; + `,[I("menu-item-content",` + height: var(--n-item-height); + `),I("submenu-children",` + overflow: hidden; + padding: 0; + `,[Z_({duration:".2s"})])]),I("menu-item-group",[I("menu-item-group-title",` + margin-top: 6px; + color: var(--n-group-text-color); + cursor: default; + font-size: .93em; + height: 36px; + display: flex; + align-items: center; + transition: + padding-left .3s var(--n-bezier), + color .3s var(--n-bezier); + `)])]),I("menu-tooltip",[L("a",` + color: inherit; + text-decoration: none; + `)]),I("menu-divider",` + transition: background-color .3s var(--n-bezier); + background-color: var(--n-divider-color); + height: 1px; + margin: 6px 18px; + `)]);function rr(e,t){return[Y("hover",e,t),L("&:hover",e,t)]}const Sg=ve({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=$e(Ti);return{menuProps:t,style:F(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:F(()=>{const{maxIconSize:o,activeIconSize:n,iconMarginRight:r}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${n}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:n,renderExtra:r,expandIcon:i}}=this,l=o?o(t.rawNode):Lt(this.icon);return v("div",{onClick:a=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,a)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},l&&v("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[l]),v("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:n?n(t.rawNode):Lt(this.title),this.extra||r?v("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):Lt(this.extra)):null),this.showArrow?v(Tt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):v(EP,null)}):null)}}),aa=8;function Wc(e){const t=$e(Ti),{props:o,mergedCollapsedRef:n}=t,r=$e(yg,null),i=$e(jc,null),l=F(()=>o.mode==="horizontal"),a=F(()=>l.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=F(()=>{var f;return Math.max((f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize,o.iconSize)}),c=F(()=>{var f;return!l.value&&e.root&&n.value&&(f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize}),d=F(()=>{if(l.value)return;const{collapsedWidth:f,indent:h,rootIndent:p}=o,{root:g,isGroup:b}=e,m=p===void 0?h:p;return g?n.value?f/2-s.value/2:m:i&&typeof i.paddingLeftRef.value=="number"?h/2+i.paddingLeftRef.value:r&&typeof r.paddingLeftRef.value=="number"?(b?h/2:h)+r.paddingLeftRef.value:0}),u=F(()=>{const{collapsedWidth:f,indent:h,rootIndent:p}=o,{value:g}=s,{root:b}=e;return l.value||!b||!n.value?aa:(p===void 0?h:p)+g+aa-(f+g)/2});return{dropdownPlacement:a,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:r,NMenuOptionGroup:i}}const Vc={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},BT=ve({name:"MenuDivider",setup(){const e=$e(Ti),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:v("div",{class:`${t.value}-menu-divider`})}}),Rg=Object.assign(Object.assign({},Vc),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),HT=Nl(Rg),DT=ve({name:"MenuOption",props:Rg,setup(e){const t=Wc(e),{NSubmenu:o,NMenu:n,NMenuOptionGroup:r}=t,{props:i,mergedClsPrefixRef:l,mergedCollapsedRef:a}=n,s=o?o.mergedDisabledRef:r?r.mergedDisabledRef:{value:!1},c=F(()=>s.value||e.disabled);function d(f){const{onClick:h}=e;h&&h(f)}function u(f){c.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),d(f))}return{mergedClsPrefix:l,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:i,dropdownEnabled:Ze(()=>e.root&&a.value&&i.mode!=="horizontal"&&!c.value),selected:Ze(()=>n.mergedValueRef.value===e.internalKey),mergedDisabled:c,handleClick:u}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:n,nodeProps:r}}=this,i=r==null?void 0:r(o.rawNode);return v("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),v(rg,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>n?n(o.rawNode):Lt(this.title),trigger:()=>v(Sg,{tmNode:o,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),Pg=Object.assign(Object.assign({},Vc),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),LT=Nl(Pg),NT=ve({name:"MenuOptionGroup",props:Pg,setup(e){const t=Wc(e),{NSubmenu:o}=t,n=F(()=>o!=null&&o.mergedDisabledRef.value?!0:e.tmNode.disabled);tt(jc,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:n});const{mergedClsPrefixRef:r,props:i}=$e(Ti);return function(){const{value:l}=r,a=t.paddingLeft.value,{nodeProps:s}=i,c=s==null?void 0:s(e.tmNode.rawNode);return v("div",{class:`${l}-menu-item-group`,role:"group"},v("div",Object.assign({},c,{class:[`${l}-menu-item-group-title`,c==null?void 0:c.class],style:[(c==null?void 0:c.style)||"",a!==void 0?`padding-left: ${a}px;`:""]}),Lt(e.title),e.extra?v(it,null," ",Lt(e.extra)):null),v("div",null,e.tmNodes.map(d=>Kc(d,i))))}}});function Uc(e){return e.type==="divider"||e.type==="render"}function jT(e){return e.type==="divider"}function Kc(e,t){const{rawNode:o}=e,{show:n}=o;if(n===!1)return null;if(Uc(o))return jT(o)?v(BT,Object.assign({key:e.key},o.props)):null;const{labelField:r}=t,{key:i,level:l,isGroup:a}=e,s=Object.assign(Object.assign({},o),{title:o.title||o[r],extra:o.titleExtra||o.extra,key:i,internalKey:i,level:l,root:l===0,isGroup:a});return e.children?e.isGroup?v(NT,zr(s,LT,{tmNode:e,tmNodes:e.children,key:i})):v(Gc,zr(s,WT,{key:i,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):v(DT,zr(s,HT,{key:i,tmNode:e}))}const _g=Object.assign(Object.assign({},Vc),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),WT=Nl(_g),Gc=ve({name:"Submenu",props:_g,setup(e){const t=Wc(e),{NMenu:o,NSubmenu:n}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:l}=o,a=F(()=>{const{disabled:f}=e;return n!=null&&n.mergedDisabledRef.value||r.disabled?!0:f}),s=V(!1);tt(yg,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:a}),tt(jc,null);function c(){const{onClick:f}=e;f&&f()}function d(){a.value||(i.value||o.toggleExpand(e.internalKey),c())}function u(f){s.value=f}return{menuProps:r,mergedTheme:l,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:a,mergedValue:o.mergedValueRef,childActive:Ze(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:o.activePathRef.value.includes(e.internalKey)}),collapsed:F(()=>r.mode==="horizontal"?!1:i.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:F(()=>!a.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:u,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:n}}=this,r=()=>{const{isHorizontal:l,paddingLeft:a,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:u,title:f,childActive:h,icon:p,handleClick:g,menuProps:{nodeProps:b},dropdownShow:m,iconMarginRight:x,tmNode:w,mergedClsPrefix:C,isEllipsisPlaceholder:P,extra:T}=this,y=b==null?void 0:b(w.rawNode);return v("div",Object.assign({},y,{class:[`${C}-menu-item`,y==null?void 0:y.class],role:"menuitem"}),v(Sg,{tmNode:w,paddingLeft:a,collapsed:s,disabled:c,iconMarginRight:x,maxIconSize:d,activeIconSize:u,title:f,extra:T,showArrow:!l,childActive:h,clsPrefix:C,icon:p,hover:m,onClick:g,isEllipsisPlaceholder:P}))},i=()=>v(cv,null,{default:()=>{const{tmNodes:l,collapsed:a}=this;return a?null:v("div",{class:`${t}-submenu-children`,role:"menu"},l.map(s=>Kc(s,this.menuProps)))}});return this.root?v(Hc,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:o,renderLabel:n}),{default:()=>v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:i())}):v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),i())}}),VT=Object.assign(Object.assign({},Ie.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),UT=ve({name:"Menu",inheritAttrs:!1,props:VT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Je(e),n=Ie("Menu","-menu",MT,bT,e,t),r=$e(bg,null),i=F(()=>{var N;const{collapsed:O}=e;if(O!==void 0)return O;if(r){const{collapseModeRef:A,collapsedRef:Q}=r;if(A.value==="width")return(N=Q.value)!==null&&N!==void 0?N:!1}return!1}),l=F(()=>{const{keyField:N,childrenField:O,disabledField:A}=e;return or(e.items||e.options,{getIgnored(Q){return Uc(Q)},getChildren(Q){return Q[O]},getDisabled(Q){return Q[A]},getKey(Q){var he;return(he=Q[N])!==null&&he!==void 0?he:Q.name}})}),a=F(()=>new Set(l.value.treeNodes.map(N=>N.key))),{watchProps:s}=e,c=V(null);s!=null&&s.includes("defaultValue")?Mt(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=Se(e,"value"),u=It(d,c),f=V([]),h=()=>{f.value=e.defaultExpandAll?l.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||l.value.getPath(u.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Mt(h):h();const p=vs(e,["expandedNames","expandedKeys"]),g=It(p,f),b=F(()=>l.value.treeNodes),m=F(()=>l.value.getPath(u.value).keyPath);tt(Ti,{props:e,mergedCollapsedRef:i,mergedThemeRef:n,mergedValueRef:u,mergedExpandedKeysRef:g,activePathRef:m,mergedClsPrefixRef:t,isHorizontalRef:F(()=>e.mode==="horizontal"),invertedRef:Se(e,"inverted"),doSelect:x,toggleExpand:C});function x(N,O){const{"onUpdate:value":A,onUpdateValue:Q,onSelect:he}=e;Q&&ge(Q,N,O),A&&ge(A,N,O),he&&ge(he,N,O),c.value=N}function w(N){const{"onUpdate:expandedKeys":O,onUpdateExpandedKeys:A,onExpandedNamesChange:Q,onOpenNamesChange:he}=e;O&&ge(O,N),A&&ge(A,N),Q&&ge(Q,N),he&&ge(he,N),f.value=N}function C(N){const O=Array.from(g.value),A=O.findIndex(Q=>Q===N);if(~A)O.splice(A,1);else{if(e.accordion&&a.value.has(N)){const Q=O.findIndex(he=>a.value.has(he));Q>-1&&O.splice(Q,1)}O.push(N)}w(O)}const P=N=>{const O=l.value.getPath(N??u.value,{includeSelf:!1}).keyPath;if(!O.length)return;const A=Array.from(g.value),Q=new Set([...A,...O]);e.accordion&&a.value.forEach(he=>{Q.has(he)&&!O.includes(he)&&Q.delete(he)}),w(Array.from(Q))},T=F(()=>{const{inverted:N}=e,{common:{cubicBezierEaseInOut:O},self:A}=n.value,{borderRadius:Q,borderColorHorizontal:he,fontSize:we,itemHeight:X,dividerColor:de}=A,R={"--n-divider-color":de,"--n-bezier":O,"--n-font-size":we,"--n-border-color-horizontal":he,"--n-border-radius":Q,"--n-item-height":X};return N?(R["--n-group-text-color"]=A.groupTextColorInverted,R["--n-color"]=A.colorInverted,R["--n-item-text-color"]=A.itemTextColorInverted,R["--n-item-text-color-hover"]=A.itemTextColorHoverInverted,R["--n-item-text-color-active"]=A.itemTextColorActiveInverted,R["--n-item-text-color-child-active"]=A.itemTextColorChildActiveInverted,R["--n-item-text-color-child-active-hover"]=A.itemTextColorChildActiveInverted,R["--n-item-text-color-active-hover"]=A.itemTextColorActiveHoverInverted,R["--n-item-icon-color"]=A.itemIconColorInverted,R["--n-item-icon-color-hover"]=A.itemIconColorHoverInverted,R["--n-item-icon-color-active"]=A.itemIconColorActiveInverted,R["--n-item-icon-color-active-hover"]=A.itemIconColorActiveHoverInverted,R["--n-item-icon-color-child-active"]=A.itemIconColorChildActiveInverted,R["--n-item-icon-color-child-active-hover"]=A.itemIconColorChildActiveHoverInverted,R["--n-item-icon-color-collapsed"]=A.itemIconColorCollapsedInverted,R["--n-item-text-color-horizontal"]=A.itemTextColorHorizontalInverted,R["--n-item-text-color-hover-horizontal"]=A.itemTextColorHoverHorizontalInverted,R["--n-item-text-color-active-horizontal"]=A.itemTextColorActiveHorizontalInverted,R["--n-item-text-color-child-active-horizontal"]=A.itemTextColorChildActiveHorizontalInverted,R["--n-item-text-color-child-active-hover-horizontal"]=A.itemTextColorChildActiveHoverHorizontalInverted,R["--n-item-text-color-active-hover-horizontal"]=A.itemTextColorActiveHoverHorizontalInverted,R["--n-item-icon-color-horizontal"]=A.itemIconColorHorizontalInverted,R["--n-item-icon-color-hover-horizontal"]=A.itemIconColorHoverHorizontalInverted,R["--n-item-icon-color-active-horizontal"]=A.itemIconColorActiveHorizontalInverted,R["--n-item-icon-color-active-hover-horizontal"]=A.itemIconColorActiveHoverHorizontalInverted,R["--n-item-icon-color-child-active-horizontal"]=A.itemIconColorChildActiveHorizontalInverted,R["--n-item-icon-color-child-active-hover-horizontal"]=A.itemIconColorChildActiveHoverHorizontalInverted,R["--n-arrow-color"]=A.arrowColorInverted,R["--n-arrow-color-hover"]=A.arrowColorHoverInverted,R["--n-arrow-color-active"]=A.arrowColorActiveInverted,R["--n-arrow-color-active-hover"]=A.arrowColorActiveHoverInverted,R["--n-arrow-color-child-active"]=A.arrowColorChildActiveInverted,R["--n-arrow-color-child-active-hover"]=A.arrowColorChildActiveHoverInverted,R["--n-item-color-hover"]=A.itemColorHoverInverted,R["--n-item-color-active"]=A.itemColorActiveInverted,R["--n-item-color-active-hover"]=A.itemColorActiveHoverInverted,R["--n-item-color-active-collapsed"]=A.itemColorActiveCollapsedInverted):(R["--n-group-text-color"]=A.groupTextColor,R["--n-color"]=A.color,R["--n-item-text-color"]=A.itemTextColor,R["--n-item-text-color-hover"]=A.itemTextColorHover,R["--n-item-text-color-active"]=A.itemTextColorActive,R["--n-item-text-color-child-active"]=A.itemTextColorChildActive,R["--n-item-text-color-child-active-hover"]=A.itemTextColorChildActiveHover,R["--n-item-text-color-active-hover"]=A.itemTextColorActiveHover,R["--n-item-icon-color"]=A.itemIconColor,R["--n-item-icon-color-hover"]=A.itemIconColorHover,R["--n-item-icon-color-active"]=A.itemIconColorActive,R["--n-item-icon-color-active-hover"]=A.itemIconColorActiveHover,R["--n-item-icon-color-child-active"]=A.itemIconColorChildActive,R["--n-item-icon-color-child-active-hover"]=A.itemIconColorChildActiveHover,R["--n-item-icon-color-collapsed"]=A.itemIconColorCollapsed,R["--n-item-text-color-horizontal"]=A.itemTextColorHorizontal,R["--n-item-text-color-hover-horizontal"]=A.itemTextColorHoverHorizontal,R["--n-item-text-color-active-horizontal"]=A.itemTextColorActiveHorizontal,R["--n-item-text-color-child-active-horizontal"]=A.itemTextColorChildActiveHorizontal,R["--n-item-text-color-child-active-hover-horizontal"]=A.itemTextColorChildActiveHoverHorizontal,R["--n-item-text-color-active-hover-horizontal"]=A.itemTextColorActiveHoverHorizontal,R["--n-item-icon-color-horizontal"]=A.itemIconColorHorizontal,R["--n-item-icon-color-hover-horizontal"]=A.itemIconColorHoverHorizontal,R["--n-item-icon-color-active-horizontal"]=A.itemIconColorActiveHorizontal,R["--n-item-icon-color-active-hover-horizontal"]=A.itemIconColorActiveHoverHorizontal,R["--n-item-icon-color-child-active-horizontal"]=A.itemIconColorChildActiveHorizontal,R["--n-item-icon-color-child-active-hover-horizontal"]=A.itemIconColorChildActiveHoverHorizontal,R["--n-arrow-color"]=A.arrowColor,R["--n-arrow-color-hover"]=A.arrowColorHover,R["--n-arrow-color-active"]=A.arrowColorActive,R["--n-arrow-color-active-hover"]=A.arrowColorActiveHover,R["--n-arrow-color-child-active"]=A.arrowColorChildActive,R["--n-arrow-color-child-active-hover"]=A.arrowColorChildActiveHover,R["--n-item-color-hover"]=A.itemColorHover,R["--n-item-color-active"]=A.itemColorActive,R["--n-item-color-active-hover"]=A.itemColorActiveHover,R["--n-item-color-active-collapsed"]=A.itemColorActiveCollapsed),R}),y=o?gt("menu",F(()=>e.inverted?"a":"b"),T,e):void 0,B=Tl(),S=V(null),E=V(null);let j=!0;const _=()=>{var N;j?j=!1:(N=S.value)===null||N===void 0||N.sync({showAllItemsBeforeCalculate:!0})};function M(){return document.getElementById(B)}const W=V(-1);function D(N){W.value=e.options.length-N}function Z(N){N||(W.value=-1)}const U=F(()=>{const N=W.value;return{children:N===-1?[]:e.options.slice(N)}}),J=F(()=>{const{childrenField:N,disabledField:O,keyField:A}=e;return or([U.value],{getIgnored(Q){return Uc(Q)},getChildren(Q){return Q[N]},getDisabled(Q){return Q[O]},getKey(Q){var he;return(he=Q[A])!==null&&he!==void 0?he:Q.name}})}),pe=F(()=>or([{}]).treeNodes[0]);function fe(){var N;if(W.value===-1)return v(Gc,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:pe.value,domId:B,isEllipsisPlaceholder:!0});const O=J.value.treeNodes[0],A=m.value,Q=!!(!((N=O.children)===null||N===void 0)&&N.some(he=>A.includes(he.key)));return v(Gc,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:Q,tmNode:O,domId:B,rawNodes:O.rawNode.children||[],tmNodes:O.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:f,mergedExpandedKeys:g,uncontrolledValue:c,mergedValue:u,activePath:m,tmNodes:b,mergedTheme:n,mergedCollapsed:i,cssVars:o?void 0:T,themeClass:y==null?void 0:y.themeClass,overflowRef:S,counterRef:E,updateCounter:()=>{},onResize:_,onUpdateOverflow:Z,onUpdateCount:D,renderCounter:fe,getCounter:M,onRender:y==null?void 0:y.onRender,showOption:P,deriveResponsiveState:_}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:n}=this;n==null||n();const r=()=>this.tmNodes.map(s=>Kc(s,this.$props)),l=t==="horizontal"&&this.responsive,a=()=>v("div",xo(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,l&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),l?v(Os,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:this.renderCounter}):r());return l?v(wn,{onResize:this.onResize},{default:a}):a()}}),KT=I("statistic",[H("label",` + font-weight: var(--n-label-font-weight); + transition: .3s color var(--n-bezier); + font-size: var(--n-label-font-size); + color: var(--n-label-text-color); + `),I("statistic-value",` + margin-top: 4px; + font-weight: var(--n-value-font-weight); + `,[H("prefix",` + margin: 0 4px 0 0; + font-size: var(--n-value-font-size); + transition: .3s color var(--n-bezier); + color: var(--n-value-prefix-text-color); + `,[I("icon",{verticalAlign:"-0.125em"})]),H("content",` + font-size: var(--n-value-font-size); + transition: .3s color var(--n-bezier); + color: var(--n-value-text-color); + `),H("suffix",` + margin: 0 0 0 4px; + font-size: var(--n-value-font-size); + transition: .3s color var(--n-bezier); + color: var(--n-value-suffix-text-color); + `,[I("icon",{verticalAlign:"-0.125em"})])])]),GT=Object.assign(Object.assign({},Ie.props),{tabularNums:Boolean,label:String,value:[String,Number]}),qT=ve({name:"Statistic",props:GT,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=Je(e),r=Ie("Statistic","-statistic",KT,yT,e,t),i=qt("Statistic",n,t),l=F(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:u,labelTextColor:f,valueSuffixTextColor:h,valueTextColor:p,labelFontSize:g},common:{cubicBezierEaseInOut:b}}=r.value;return{"--n-bezier":b,"--n-label-font-size":g,"--n-label-font-weight":s,"--n-label-text-color":f,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":u,"--n-value-suffix-text-color":h,"--n-value-text-color":p}}),a=o?gt("statistic",void 0,l,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:o,label:n,prefix:r,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},pt(n,l=>v("div",{class:`${t}-statistic__label`},this.label||l)),v("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},pt(r,l=>l&&v("span",{class:`${t}-statistic-value__prefix`},l)),this.value!==void 0?v("span",{class:`${t}-statistic-value__content`},this.value):pt(o,l=>l&&v("span",{class:`${t}-statistic-value__content`},l)),pt(i,l=>l&&v("span",{class:`${t}-statistic-value__suffix`},l))))}}),XT=I("h",` + font-size: var(--n-font-size); + font-weight: var(--n-font-weight); + margin: var(--n-margin); + transition: color .3s var(--n-bezier); + color: var(--n-text-color); +`,[L("&:first-child",{marginTop:0}),Y("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[Y("align-text",{paddingLeft:0},[L("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),L("&::before",` + content: ""; + width: var(--n-bar-width); + border-radius: calc(var(--n-bar-width) / 2); + transition: background-color .3s var(--n-bezier); + left: 0; + top: 0; + bottom: 0; + position: absolute; + `),L("&::before",{backgroundColor:"var(--n-bar-color)"})])]),YT=Object.assign(Object.assign({},Ie.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),kg=(e=>ve({name:`H${e}`,props:YT,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:n}=Je(t),r=Ie("Typography","-h",XT,ST,t,o),i=F(()=>{const{type:a}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[me("headerPrefixWidth",e)]:u,[me("headerFontSize",e)]:f,[me("headerMargin",e)]:h,[me("headerBarWidth",e)]:p,[me("headerBarColor",a)]:g}}=r.value;return{"--n-bezier":s,"--n-font-size":f,"--n-margin":h,"--n-bar-color":g,"--n-bar-width":p,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":u}}),l=n?gt(`h${e}`,F(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:o,cssVars:n?void 0:i,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{prefix:o,alignText:n,mergedClsPrefix:r,cssVars:i,$slots:l}=this;return(t=this.onRender)===null||t===void 0||t.call(this),v(`h${e}`,{class:[`${r}-h`,`${r}-h${e}`,this.themeClass,{[`${r}-h--prefix-bar`]:o,[`${r}-h--align-text`]:n}],style:i},l)}}))("2"),ZT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},JT=ve({name:"BookOutline",render:function(t,o){return _t(),Kt("svg",ZT,o[0]||(o[0]=[Ne("path",{d:"M256 160c16-63.16 76.43-95.41 208-96a15.94 15.94 0 0 1 16 16v288a16 16 0 0 1-16 16c-128 0-177.45 25.81-208 64c-30.37-38-80-64-208-64c-9.88 0-16-8.05-16-17.93V80a15.94 15.94 0 0 1 16-16c131.57.59 192 32.84 208 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Ne("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 160v288"},null,-1)]))}}),QT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},e2=ve({name:"LogOutOutline",render:function(t,o){return _t(),Kt("svg",QT,o[0]||(o[0]=[Ne("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Ne("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),Ne("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),t2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},o2=ve({name:"PersonOutline",render:function(t,o){return _t(),Kt("svg",t2,o[0]||(o[0]=[Ne("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Ne("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),n2={class:"header-content"},r2={class:"header-actions"},i2=[{path:"/",name:"Home",component:ds},{path:"/login",name:"Login",component:ds},{path:"/register",name:"Register",component:Rx},{path:"/update-password",name:"CustomPasswordSetup",component:qf},{path:"/custom-update-password",name:"CustomPasswordSetupAlt",component:qf},{path:"/sundererapp",component:xl({__name:"Applayout",setup(e){const t=bl(),o=V(!1),n=V("dashboard"),r=V("Admin User"),i=V("https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg");function l(d){return()=>v(dg,null,{default:()=>v(d)})}const a=[{label:"Dashboard",key:"dashboard",icon:l(JT),props:{onClick:()=>t.push("/app/dashboard")}},{label:"Users",key:"users",icon:l(o2),props:{onClick:()=>t.push("/app/users")}}],s=[{label:"Profile",key:"profile"},{label:"Settings",key:"settings"},{type:"divider",key:"d1"},{label:"Logout",key:"logout",icon:l(e2)}],c=d=>{switch(d){case"profile":console.log("Go to Profile");break;case"settings":console.log("Go to Settings");break;case"logout":localStorage.removeItem("authToken"),t.push("/login");break}};return(d,u)=>{const f=gk,h=ra,p=Hc,g=$T,b=UT,m=OT,x=Bm("router-view"),w=kT;return _t(),cl(w,{position:"absolute"},{default:mo(()=>[lt(g,{class:"header",bordered:""},{default:mo(()=>[Ne("div",n2,[u[3]||(u[3]=Ne("h1",null,"My Admin Panel",-1)),Ne("div",r2,[lt(p,{trigger:"click",options:s,onSelect:c},{default:mo(()=>[lt(h,{text:""},{default:mo(()=>[lt(f,{round:"",size:"small",src:i.value},null,8,["src"]),un(" "+Po(r.value),1)]),_:1})]),_:1})])])]),_:1}),lt(w,{"has-sider":"",position:"absolute",style:{top:"64px"}},{default:mo(()=>[lt(m,{bordered:"","collapse-mode":"width","collapsed-width":64,width:240,"native-scrollbar":!1,"show-trigger":"",collapsed:o.value,onCollapse:u[1]||(u[1]=C=>o.value=!o.value),onExpand:u[2]||(u[2]=C=>o.value=!o.value)},{default:mo(()=>[lt(b,{value:n.value,"onUpdate:value":u[0]||(u[0]=C=>n.value=C),collapsed:o.value,"collapsed-width":64,"collapsed-icon-size":22,options:a,indent:18},null,8,["value","collapsed"])]),_:1},8,["collapsed"]),lt(w,{"content-style":"padding: 24px;"},{default:mo(()=>[lt(x)]),_:1})]),_:1})]),_:1})}}},[["__scopeId","data-v-7853d827"]]),meta:{requiresAuth:!0},children:[{path:"",redirect:"/sundererapp/dashboard"},{path:"dashboard",name:"AppDashboard",component:()=>Gf(()=>Promise.resolve().then(()=>a2),void 0)},{path:"users",name:"AppUsers",component:()=>Gf(()=>Promise.resolve().then(()=>s2),void 0)}]},{path:"/:pathMatch(.*)*",name:"NotFound",component:ds}],l2=ax({history:N0(),routes:i2}),zg=t0(dx);zg.use(l2),zg.mount("#app");const a2=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"DashboardView",setup(e){return(t,o)=>{const n=kg,r=qT,i=zk;return _t(),Kt("div",null,[lt(n,null,{default:mo(()=>[...o[0]||(o[0]=[un("Dashboard",-1)])]),_:1}),o[1]||(o[1]=Ne("p",null,"Welcome to your admin dashboard!",-1)),lt(i,{title:"Quick Stats",style:{"margin-top":"20px"}},{default:mo(()=>[lt(r,{label:"Total Users",value:"12345"})]),_:1})])}}}},Symbol.toStringTag,{value:"Module"})),s2=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"UsersView",setup(e){const t=[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Tags",key:"tags",render:n=>n.tags.map(r=>v(ea,{type:"info"},{default:()=>r}))},{title:"Actions",key:"actions",render:()=>v(ra,{size:"small",type:"primary"},{default:()=>"Edit"})}],o=[{name:"John Doe",age:32,tags:["admin","dev"]},{name:"Jane Smith",age:28,tags:["user"]}];return(n,r)=>{const i=kg,l=pT;return _t(),Kt("div",null,[lt(i,null,{default:mo(()=>[...r[0]||(r[0]=[un("Users Management",-1)])]),_:1}),r[1]||(r[1]=Ne("p",null,"This is the users management page.",-1)),lt(l,{columns:t,data:o})])}}}},Symbol.toStringTag,{value:"Module"}))}); diff --git a/sunderer_app/public/SundererPage/vite.svg b/sunderer_app/public/SundererPage/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/sunderer_app/public/SundererPage/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sunderer_app/public/dist/.vite/manifest.json b/sunderer_app/public/dist/.vite/manifest.json new file mode 100644 index 0000000..86a59c3 --- /dev/null +++ b/sunderer_app/public/dist/.vite/manifest.json @@ -0,0 +1,11 @@ +{ + "index.html": { + "file": "js/index.c1R21Jxr.js", + "name": "index", + "src": "index.html", + "isEntry": true, + "css": [ + "css/index.CJO3dQ9s.css" + ] + } +} \ No newline at end of file diff --git a/sunderer_app/public/dist/css/index.CJO3dQ9s.css b/sunderer_app/public/dist/css/index.CJO3dQ9s.css new file mode 100644 index 0000000..d14b686 --- /dev/null +++ b/sunderer_app/public/dist/css/index.CJO3dQ9s.css @@ -0,0 +1 @@ +html,body,#app{height:100%;margin:0;padding:0;background:#000;overflow:hidden}.login-container[data-v-6eda41c4]{position:relative;width:100vw;min-height:100vh;display:flex;justify-content:center;align-items:center;overflow:hidden;background:linear-gradient(135deg,#00afff,#07c)}.login-card[data-v-6eda41c4]{background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;padding:2.5rem;width:360px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);position:relative;z-index:1;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:300px}.logo[data-v-6eda41c4]{font-family:Arial,sans-serif;font-weight:700;margin-bottom:1.5rem;letter-spacing:1px;color:#fff;text-shadow:0 0 10px rgba(0,175,255,.8),0 0 20px rgba(0,175,255,.6);display:inline-flex;align-items:center;gap:.5rem}.brand[data-v-6eda41c4]{color:#fff;font-size:2.2rem;text-shadow:0 0 10px rgba(0,175,255,.8),0 0 20px rgba(0,175,255,.6)}.icon[data-v-6eda41c4]{color:#0ff;font-size:1.8rem;margin:0 .5rem;text-shadow:0 0 15px rgba(0,255,255,.7)}.input-field[data-v-6eda41c4]{width:80%;padding:.8rem 1rem;margin-bottom:1rem;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.input-field[data-v-6eda41c4]:focus{box-shadow:0 0 0 2px #00afffb3,0 0 10px #00afff66}.error[data-v-6eda41c4]{color:#ff6b6b;font-size:.85rem;margin:-.5rem 0 1rem}.login-btn[data-v-6eda41c4]{width:70%;padding:.8rem;background:linear-gradient(90deg,#00afff,#07c);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 0 15px #00afff80}.register-btn[data-v-6eda41c4]{width:70%;padding:.8rem;background:linear-gradient(90deg,#6bffce,#c74dff);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 0 15px #ff6b6b80}.login-btn[data-v-6eda41c4]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 20px #00afffb3}.login-btn[data-v-6eda41c4]:disabled{opacity:.7;cursor:not-allowed}.auth-buttons[data-v-6eda41c4]{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.footer[data-v-6eda41c4]{margin-top:1.5rem;color:#fff9;font-size:.8rem;text-align:center}.register-btn[data-v-6eda41c4]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 20px #ff6b6bb3}.register-btn[data-v-6eda41c4]:disabled{opacity:.7;cursor:not-allowed}.register-view[data-v-14690773]{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#00afff,#07c);color:#fff}.container[data-v-14690773]{width:400px;padding:30px;background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);text-align:center}.input-field[data-v-14690773]{width:90%;padding:20px;margin:10px 0;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.btn-primary[data-v-14690773]{width:100%;padding:12px;background:linear-gradient(90deg,#4caf50,#45a049);color:#fff;border:none;border-radius:10px;cursor:pointer;margin:10px 0;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.btn-primary[data-v-14690773]:disabled{background:#666;cursor:not-allowed}.btn-secondary[data-v-14690773]{width:100%;padding:10px;background:linear-gradient(90deg,#6bffce,#c74dff);color:#fff;border:none;border-radius:10px;cursor:pointer;margin-top:20px;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.error-msg[data-v-14690773]{color:#ff6b6b;margin:10px 0;font-size:14px}.back-to-login[data-v-14690773]{margin-top:20px}.password-setup-container[data-v-378de9a4]{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#00afff,#07c);color:#fff}.setup-card[data-v-378de9a4]{width:400px;padding:30px;background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);text-align:center}.input-group[data-v-378de9a4]{margin-bottom:15px;text-align:left}.input-group label[data-v-378de9a4]{display:block;margin-bottom:5px;font-weight:700}.input-field[data-v-378de9a4]{width:94%;padding:12px;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.btn-primary[data-v-378de9a4]{width:100%;padding:12px;background:linear-gradient(90deg,#4caf50,#45a049);color:#fff;border:none;border-radius:10px;cursor:pointer;margin-top:20px;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.error[data-v-378de9a4]{color:#ff6b6b;margin:10px 0;font-size:14px} diff --git a/sunderer_app/public/dist/icon3.svg b/sunderer_app/public/dist/icon3.svg new file mode 100644 index 0000000..08f848b --- /dev/null +++ b/sunderer_app/public/dist/icon3.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sunderer_app/public/dist/index.html b/sunderer_app/public/dist/index.html new file mode 100644 index 0000000..9aef770 --- /dev/null +++ b/sunderer_app/public/dist/index.html @@ -0,0 +1,14 @@ + + + + + + + 决裂者终端用户中心 + + + + +
+ + diff --git a/sunderer_app/public/dist/js/index.c1R21Jxr.js b/sunderer_app/public/dist/js/index.c1R21Jxr.js new file mode 100644 index 0000000..c44449d --- /dev/null +++ b/sunderer_app/public/dist/js/index.c1R21Jxr.js @@ -0,0 +1,25 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/** +* @vue/shared v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function _s(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Y={},It=[],Ke=()=>{},Vr=()=>!1,On=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vs=e=>e.startsWith("onUpdate:"),ue=Object.assign,ys=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},oo=Object.prototype.hasOwnProperty,q=(e,t)=>oo.call(e,t),B=Array.isArray,Nt=e=>Pn(e)==="[object Map]",Br=e=>Pn(e)==="[object Set]",H=e=>typeof e=="function",re=e=>typeof e=="string",pt=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",Hr=e=>(ee(e)||H(e))&&H(e.then)&&H(e.catch),Ur=Object.prototype.toString,Pn=e=>Ur.call(e),lo=e=>Pn(e).slice(8,-1),jr=e=>Pn(e)==="[object Object]",bs=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qt=_s(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Tn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},co=/-\w/g,at=Tn(e=>e.replace(co,t=>t.slice(1).toUpperCase())),uo=/\B([A-Z])/g,Rt=Tn(e=>e.replace(uo,"-$1").toLowerCase()),Gr=Tn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Un=Tn(e=>e?`on${Gr(e)}`:""),ft=(e,t)=>!Object.is(e,t),gn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Es=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ws;const In=()=>Ws||(Ws=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function xs(e){if(B(e)){const t={};for(let n=0;n{if(n){const s=n.split(ao);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Rs(e){let t="";if(re(e))t=e;else if(B(e))for(let n=0;n!!(e&&e.__v_isRef===!0),Ye=e=>re(e)?e:e==null?"":B(e)||ee(e)&&(e.toString===Ur||!H(e.toString))?$r(e)?Ye(e.value):JSON.stringify(e,kr,2):String(e),kr=(e,t)=>$r(t)?kr(e,t.value):Nt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[jn(s,i)+" =>"]=r,n),{})}:Br(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>jn(n))}:pt(t)?jn(t):ee(t)&&!B(t)&&!jr(t)?String(t):t,jn=(e,t="")=>{var n;return pt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ve;class _o{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ve,!t&&ve&&(this.index=(ve.scopes||(ve.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(ve=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(zt){let t=zt;for(zt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Jt;){let t=Jt;for(Jt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Qr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Yr(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ss(s),yo(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ns(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Zr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Zr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===nn)||(e.globalVersion=nn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ns(e))))return;e.flags|=2;const t=e.dep,n=X,s=Ce;X=e,Ce=!0;try{Qr(e);const r=e.fn(e._value);(t.version===0||ft(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{X=n,Ce=s,Yr(e),e.flags&=-3}}function Ss(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ss(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function yo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ce=!0;const Xr=[];function Ze(){Xr.push(Ce),Ce=!1}function Xe(){const e=Xr.pop();Ce=e===void 0?!0:e}function $s(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=X;X=void 0;try{t()}finally{X=n}}}let nn=0;class bo{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Cs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!X||!Ce||X===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==X)n=this.activeLink=new bo(X,this),X.deps?(n.prevDep=X.depsTail,X.depsTail.nextDep=n,X.depsTail=n):X.deps=X.depsTail=n,ei(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=X.depsTail,n.nextDep=void 0,X.depsTail.nextDep=n,X.depsTail=n,X.deps===n&&(X.deps=s)}return n}trigger(t){this.version++,nn++,this.notify(t)}notify(t){ws();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{As()}}}function ei(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)ei(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ss=new WeakMap,Et=Symbol(""),rs=Symbol(""),sn=Symbol("");function le(e,t,n){if(Ce&&X){let s=ss.get(e);s||ss.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Cs),r.map=s,r.key=n),r.track()}}function ze(e,t,n,s,r,i){const o=ss.get(e);if(!o){nn++;return}const c=l=>{l&&l.trigger()};if(ws(),t==="clear")o.forEach(c);else{const l=B(e),d=l&&bs(n);if(l&&n==="length"){const f=Number(s);o.forEach((h,g)=>{(g==="length"||g===sn||!pt(g)&&g>=f)&&c(h)})}else switch((n!==void 0||o.has(void 0))&&c(o.get(n)),d&&c(o.get(sn)),t){case"add":l?d&&c(o.get("length")):(c(o.get(Et)),Nt(e)&&c(o.get(rs)));break;case"delete":l||(c(o.get(Et)),Nt(e)&&c(o.get(rs)));break;case"set":Nt(e)&&c(o.get(Et));break}}As()}function Ct(e){const t=k(e);return t===e?t:(le(t,"iterate",sn),Oe(e)?t:t.map(et))}function Os(e){return le(e=k(e),"iterate",sn),e}function ot(e,t){return dt(e)?Mt(e)?rn(et(t)):rn(t):et(t)}const Eo={__proto__:null,[Symbol.iterator](){return Kn(this,Symbol.iterator,e=>ot(this,e))},concat(...e){return Ct(this).concat(...e.map(t=>B(t)?Ct(t):t))},entries(){return Kn(this,"entries",e=>(e[1]=ot(this,e[1]),e))},every(e,t){return ke(this,"every",e,t,void 0,arguments)},filter(e,t){return ke(this,"filter",e,t,n=>n.map(s=>ot(this,s)),arguments)},find(e,t){return ke(this,"find",e,t,n=>ot(this,n),arguments)},findIndex(e,t){return ke(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ke(this,"findLast",e,t,n=>ot(this,n),arguments)},findLastIndex(e,t){return ke(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ke(this,"forEach",e,t,void 0,arguments)},includes(...e){return Wn(this,"includes",e)},indexOf(...e){return Wn(this,"indexOf",e)},join(e){return Ct(this).join(e)},lastIndexOf(...e){return Wn(this,"lastIndexOf",e)},map(e,t){return ke(this,"map",e,t,void 0,arguments)},pop(){return Kt(this,"pop")},push(...e){return Kt(this,"push",e)},reduce(e,...t){return ks(this,"reduce",e,t)},reduceRight(e,...t){return ks(this,"reduceRight",e,t)},shift(){return Kt(this,"shift")},some(e,t){return ke(this,"some",e,t,void 0,arguments)},splice(...e){return Kt(this,"splice",e)},toReversed(){return Ct(this).toReversed()},toSorted(e){return Ct(this).toSorted(e)},toSpliced(...e){return Ct(this).toSpliced(...e)},unshift(...e){return Kt(this,"unshift",e)},values(){return Kn(this,"values",e=>ot(this,e))}};function Kn(e,t,n){const s=Os(e),r=s[t]();return s!==e&&!Oe(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const xo=Array.prototype;function ke(e,t,n,s,r,i){const o=Os(e),c=o!==e&&!Oe(e),l=o[t];if(l!==xo[t]){const h=l.apply(e,i);return c?et(h):h}let d=n;o!==e&&(c?d=function(h,g){return n.call(this,ot(e,h),g,e)}:n.length>2&&(d=function(h,g){return n.call(this,h,g,e)}));const f=l.call(o,d,s);return c&&r?r(f):f}function ks(e,t,n,s){const r=Os(e);let i=n;return r!==e&&(Oe(e)?n.length>3&&(i=function(o,c,l){return n.call(this,o,c,l,e)}):i=function(o,c,l){return n.call(this,o,ot(e,c),l,e)}),r[t](i,...s)}function Wn(e,t,n){const s=k(e);le(s,"iterate",sn);const r=s[t](...n);return(r===-1||r===!1)&&Is(n[0])?(n[0]=k(n[0]),s[t](...n)):r}function Kt(e,t,n=[]){Ze(),ws();const s=k(e)[t].apply(e,n);return As(),Xe(),s}const Ro=_s("__proto__,__v_isRef,__isVue"),ti=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(pt));function wo(e){pt(e)||(e=String(e));const t=k(this);return le(t,"has",e),t.hasOwnProperty(e)}class ni{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?Do:oi:i?ii:ri).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=B(t);if(!r){let l;if(o&&(l=Eo[n]))return l;if(n==="hasOwnProperty")return wo}const c=Reflect.get(t,n,ce(t)?t:s);if((pt(n)?ti.has(n):Ro(n))||(r||le(t,"get",n),i))return c;if(ce(c)){const l=o&&bs(n)?c:c.value;return r&&ee(l)?os(l):l}return ee(c)?r?os(c):Nn(c):c}}class si extends ni{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=B(t)&&bs(n);if(!this._isShallow){const d=dt(i);if(!Oe(s)&&!dt(s)&&(i=k(i),s=k(s)),!o&&ce(i)&&!ce(s))return d||(i.value=s),!0}const c=o?Number(n)e,dn=e=>Reflect.getPrototypeOf(e);function Po(e,t,n){return function(...s){const r=this.__v_raw,i=k(r),o=Nt(i),c=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,d=r[e](...s),f=n?is:t?rn:et;return!t&&le(i,"iterate",l?rs:Et),{next(){const{value:h,done:g}=d.next();return g?{value:h,done:g}:{value:c?[f(h[0]),f(h[1])]:f(h),done:g}},[Symbol.iterator](){return this}}}}function hn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function To(e,t){const n={get(r){const i=this.__v_raw,o=k(i),c=k(r);e||(ft(r,c)&&le(o,"get",r),le(o,"get",c));const{has:l}=dn(o),d=t?is:e?rn:et;if(l.call(o,r))return d(i.get(r));if(l.call(o,c))return d(i.get(c));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&le(k(r),"iterate",Et),r.size},has(r){const i=this.__v_raw,o=k(i),c=k(r);return e||(ft(r,c)&&le(o,"has",r),le(o,"has",c)),r===c?i.has(r):i.has(r)||i.has(c)},forEach(r,i){const o=this,c=o.__v_raw,l=k(c),d=t?is:e?rn:et;return!e&&le(l,"iterate",Et),c.forEach((f,h)=>r.call(i,d(f),d(h),o))}};return ue(n,e?{add:hn("add"),set:hn("set"),delete:hn("delete"),clear:hn("clear")}:{add(r){!t&&!Oe(r)&&!dt(r)&&(r=k(r));const i=k(this);return dn(i).has.call(i,r)||(i.add(r),ze(i,"add",r,r)),this},set(r,i){!t&&!Oe(i)&&!dt(i)&&(i=k(i));const o=k(this),{has:c,get:l}=dn(o);let d=c.call(o,r);d||(r=k(r),d=c.call(o,r));const f=l.call(o,r);return o.set(r,i),d?ft(i,f)&&ze(o,"set",r,i):ze(o,"add",r,i),this},delete(r){const i=k(this),{has:o,get:c}=dn(i);let l=o.call(i,r);l||(r=k(r),l=o.call(i,r)),c&&c.call(i,r);const d=i.delete(r);return l&&ze(i,"delete",r,void 0),d},clear(){const r=k(this),i=r.size!==0,o=r.clear();return i&&ze(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Po(r,e,t)}),n}function Ps(e,t){const n=To(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(q(n,r)&&r in s?n:s,r,i)}const Io={get:Ps(!1,!1)},No={get:Ps(!1,!0)},Mo={get:Ps(!0,!1)};const ri=new WeakMap,ii=new WeakMap,oi=new WeakMap,Do=new WeakMap;function Lo(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Fo(e){return e.__v_skip||!Object.isExtensible(e)?0:Lo(lo(e))}function Nn(e){return dt(e)?e:Ts(e,!1,So,Io,ri)}function li(e){return Ts(e,!1,Oo,No,ii)}function os(e){return Ts(e,!0,Co,Mo,oi)}function Ts(e,t,n,s,r){if(!ee(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Fo(e);if(i===0)return e;const o=r.get(e);if(o)return o;const c=new Proxy(e,i===2?s:n);return r.set(e,c),c}function Mt(e){return dt(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function dt(e){return!!(e&&e.__v_isReadonly)}function Oe(e){return!!(e&&e.__v_isShallow)}function Is(e){return e?!!e.__v_raw:!1}function k(e){const t=e&&e.__v_raw;return t?k(t):e}function Vo(e){return!q(e,"__v_skip")&&Object.isExtensible(e)&&Kr(e,"__v_skip",!0),e}const et=e=>ee(e)?Nn(e):e,rn=e=>ee(e)?os(e):e;function ce(e){return e?e.__v_isRef===!0:!1}function he(e){return ci(e,!1)}function Bo(e){return ci(e,!0)}function ci(e,t){return ce(e)?e:new Ho(e,t)}class Ho{constructor(t,n){this.dep=new Cs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:k(t),this._value=n?t:et(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Oe(t)||dt(t);t=s?t:k(t),ft(t,n)&&(this._rawValue=t,this._value=s?t:et(t),this.dep.trigger())}}function xt(e){return ce(e)?e.value:e}const Uo={get:(e,t,n)=>t==="__v_raw"?e:xt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ce(r)&&!ce(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function ui(e){return Mt(e)?e:new Proxy(e,Uo)}class jo{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Cs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=nn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&X!==this)return zr(this,!0),!0}get value(){const t=this.dep.track();return Zr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Go(e,t,n=!1){let s,r;return H(e)?s=e:(s=e.get,r=e.set),new jo(s,r,n)}const pn={},bn=new WeakMap;let yt;function Ko(e,t=!1,n=yt){if(n){let s=bn.get(n);s||bn.set(n,s=[]),s.push(e)}}function Wo(e,t,n=Y){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:c,call:l}=n,d=I=>r?I:Oe(I)||r===!1||r===0?Qe(I,1):Qe(I);let f,h,g,m,A=!1,P=!1;if(ce(e)?(h=()=>e.value,A=Oe(e)):Mt(e)?(h=()=>d(e),A=!0):B(e)?(P=!0,A=e.some(I=>Mt(I)||Oe(I)),h=()=>e.map(I=>{if(ce(I))return I.value;if(Mt(I))return d(I);if(H(I))return l?l(I,2):I()})):H(e)?t?h=l?()=>l(e,2):e:h=()=>{if(g){Ze();try{g()}finally{Xe()}}const I=yt;yt=f;try{return l?l(e,3,[m]):e(m)}finally{yt=I}}:h=Ke,t&&r){const I=h,Q=r===!0?1/0:r;h=()=>Qe(I(),Q)}const U=vo(),N=()=>{f.stop(),U&&U.active&&ys(U.effects,f)};if(i&&t){const I=t;t=(...Q)=>{I(...Q),N()}}let T=P?new Array(e.length).fill(pn):pn;const L=I=>{if(!(!(f.flags&1)||!f.dirty&&!I))if(t){const Q=f.run();if(r||A||(P?Q.some((oe,te)=>ft(oe,T[te])):ft(Q,T))){g&&g();const oe=yt;yt=f;try{const te=[Q,T===pn?void 0:P&&T[0]===pn?[]:T,m];T=Q,l?l(t,3,te):t(...te)}finally{yt=oe}}}else f.run()};return c&&c(L),f=new qr(h),f.scheduler=o?()=>o(L,!1):L,m=I=>Ko(I,!1,f),g=f.onStop=()=>{const I=bn.get(f);if(I){if(l)l(I,4);else for(const Q of I)Q();bn.delete(f)}},t?s?L(!0):T=f.run():o?o(L.bind(null,!0),!0):f.run(),N.pause=f.pause.bind(f),N.resume=f.resume.bind(f),N.stop=N,N}function Qe(e,t=1/0,n){if(t<=0||!ee(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,ce(e))Qe(e.value,t,n);else if(B(e))for(let s=0;s{Qe(s,t,n)});else if(jr(e)){for(const s in e)Qe(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Qe(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function fn(e,t,n,s){try{return s?e(...s):e()}catch(r){Mn(r,t,n)}}function We(e,t,n,s){if(H(e)){const r=fn(e,t,n,s);return r&&Hr(r)&&r.catch(i=>{Mn(i,t,n)}),r}if(B(e)){const r=[];for(let i=0;i>>1,r=de[s],i=on(r);i=on(n)?de.push(e):de.splice(ko(t),0,e),e.flags|=1,di()}}function di(){En||(En=fi.then(pi))}function qo(e){B(e)?Dt.push(...e):lt&&e.id===-1?lt.splice(Ot+1,0,e):e.flags&1||(Dt.push(e),e.flags|=1),di()}function qs(e,t,n=He+1){for(;non(n)-on(s));if(Dt.length=0,lt){lt.push(...t);return}for(lt=t,Ot=0;Ote.id==null?e.flags&2?-1:1/0:e.id;function pi(e){try{for(He=0;He{s._d&&An(-1);const i=xn(t);let o;try{o=e(...r)}finally{xn(i),s._d&&An(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Ft(e,t){if(we===null)return e;const n=Vn(we),s=e.dirs||(e.dirs=[]);for(let r=0;r1)return n&&H(t)?t.call(s&&s.proxy):t}}const zo=Symbol.for("v-scx"),Qo=()=>Pe(zo);function _n(e,t,n){return mi(e,t,n)}function mi(e,t,n=Y){const{immediate:s,deep:r,flush:i,once:o}=n,c=ue({},n),l=t&&s||!t&&i!=="post";let d;if(cn){if(i==="sync"){const m=Qo();d=m.__watcherHandles||(m.__watcherHandles=[])}else if(!l){const m=()=>{};return m.stop=Ke,m.resume=Ke,m.pause=Ke,m}}const f=pe;c.call=(m,A,P)=>We(m,f,A,P);let h=!1;i==="post"?c.scheduler=m=>{Ee(m,f&&f.suspense)}:i!=="sync"&&(h=!0,c.scheduler=(m,A)=>{A?m():Ns(m)}),c.augmentJob=m=>{t&&(m.flags|=4),h&&(m.flags|=2,f&&(m.id=f.uid,m.i=f))};const g=Wo(e,t,c);return cn&&(d?d.push(g):l&&g()),g}function Yo(e,t,n){const s=this.proxy,r=re(e)?e.includes(".")?_i(s,e):()=>s[e]:e.bind(s,s);let i;H(t)?i=t:(i=t.handler,n=t);const o=an(this),c=mi(r,i.bind(s),n);return o(),c}function _i(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;re.__isTeleport,el=Symbol("_leaveCb");function Ms(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ms(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function vi(e,t){return H(e)?ue({name:e.name},t,{setup:e}):e}function yi(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Rn=new WeakMap;function Qt(e,t,n,s,r=!1){if(B(e)){e.forEach((A,P)=>Qt(A,t&&(B(t)?t[P]:t),n,s,r));return}if(Yt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Qt(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?Vn(s.component):s.el,o=r?null:i,{i:c,r:l}=e,d=t&&t.r,f=c.refs===Y?c.refs={}:c.refs,h=c.setupState,g=k(h),m=h===Y?Vr:A=>q(g,A);if(d!=null&&d!==l){if(Js(t),re(d))f[d]=null,m(d)&&(h[d]=null);else if(ce(d)){d.value=null;const A=t;A.k&&(f[A.k]=null)}}if(H(l))fn(l,c,12,[o,f]);else{const A=re(l),P=ce(l);if(A||P){const U=()=>{if(e.f){const N=A?m(l)?h[l]:f[l]:l.value;if(r)B(N)&&ys(N,i);else if(B(N))N.includes(i)||N.push(i);else if(A)f[l]=[i],m(l)&&(h[l]=f[l]);else{const T=[i];l.value=T,e.k&&(f[e.k]=T)}}else A?(f[l]=o,m(l)&&(h[l]=o)):P&&(l.value=o,e.k&&(f[e.k]=o))};if(o){const N=()=>{U(),Rn.delete(e)};N.id=-1,Rn.set(e,N),Ee(N,n)}else Js(e),U()}}}function Js(e){const t=Rn.get(e);t&&(t.flags|=8,Rn.delete(e))}In().requestIdleCallback;In().cancelIdleCallback;const Yt=e=>!!e.type.__asyncLoader,bi=e=>e.type.__isKeepAlive;function tl(e,t){Ei(e,"a",t)}function nl(e,t){Ei(e,"da",t)}function Ei(e,t,n=pe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Dn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)bi(r.parent.vnode)&&sl(s,t,n,r),r=r.parent}}function sl(e,t,n,s){const r=Dn(t,e,s,!0);xi(()=>{ys(s[t],r)},n)}function Dn(e,t,n=pe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Ze();const c=an(n),l=We(t,n,e,o);return c(),Xe(),l});return s?r.unshift(i):r.push(i),i}}const tt=e=>(t,n=pe)=>{(!cn||e==="sp")&&Dn(e,(...s)=>t(...s),n)},rl=tt("bm"),il=tt("m"),ol=tt("bu"),ll=tt("u"),cl=tt("bum"),xi=tt("um"),ul=tt("sp"),fl=tt("rtg"),al=tt("rtc");function dl(e,t=pe){Dn("ec",e,t)}const hl=Symbol.for("v-ndc"),ls=e=>e?ji(e)?Vn(e):ls(e.parent):null,Zt=ue(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ls(e.parent),$root:e=>ls(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>wi(e),$forceUpdate:e=>e.f||(e.f=()=>{Ns(e.update)}),$nextTick:e=>e.n||(e.n=ai.bind(e.proxy)),$watch:e=>Yo.bind(e)}),$n=(e,t)=>e!==Y&&!e.__isScriptSetup&&q(e,t),pl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:c,appContext:l}=e;if(t[0]!=="$"){const g=o[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if($n(s,t))return o[t]=1,s[t];if(r!==Y&&q(r,t))return o[t]=2,r[t];if(q(i,t))return o[t]=3,i[t];if(n!==Y&&q(n,t))return o[t]=4,n[t];cs&&(o[t]=0)}}const d=Zt[t];let f,h;if(d)return t==="$attrs"&&le(e.attrs,"get",""),d(e);if((f=c.__cssModules)&&(f=f[t]))return f;if(n!==Y&&q(n,t))return o[t]=4,n[t];if(h=l.config.globalProperties,q(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return $n(r,t)?(r[t]=n,!0):s!==Y&&q(s,t)?(s[t]=n,!0):q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},c){let l;return!!(n[c]||e!==Y&&c[0]!=="$"&&q(e,c)||$n(t,c)||q(i,c)||q(s,c)||q(Zt,c)||q(r.config.globalProperties,c)||(l=o.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function zs(e){return B(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let cs=!0;function gl(e){const t=wi(e),n=e.proxy,s=e.ctx;cs=!1,t.beforeCreate&&Qs(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:c,provide:l,inject:d,created:f,beforeMount:h,mounted:g,beforeUpdate:m,updated:A,activated:P,deactivated:U,beforeDestroy:N,beforeUnmount:T,destroyed:L,unmounted:I,render:Q,renderTracked:oe,renderTriggered:te,errorCaptured:Ie,serverPrefetch:nt,expose:Ne,inheritAttrs:st,components:gt,directives:Me,filters:jt}=t;if(d&&ml(d,s,null),o)for(const z in o){const W=o[z];H(W)&&(s[z]=W.bind(n))}if(r){const z=r.call(n,n);ee(z)&&(e.data=Nn(z))}if(cs=!0,i)for(const z in i){const W=i[z],$e=H(W)?W.bind(n,n):H(W.get)?W.get.bind(n,n):Ke,rt=!H(W)&&H(W.set)?W.set.bind(n):Ke,De=Se({get:$e,set:rt});Object.defineProperty(s,z,{enumerable:!0,configurable:!0,get:()=>De.value,set:ge=>De.value=ge})}if(c)for(const z in c)Ri(c[z],s,n,z);if(l){const z=H(l)?l.call(n):l;Reflect.ownKeys(z).forEach(W=>{mn(W,z[W])})}f&&Qs(f,e,"c");function ie(z,W){B(W)?W.forEach($e=>z($e.bind(n))):W&&z(W.bind(n))}if(ie(rl,h),ie(il,g),ie(ol,m),ie(ll,A),ie(tl,P),ie(nl,U),ie(dl,Ie),ie(al,oe),ie(fl,te),ie(cl,T),ie(xi,I),ie(ul,nt),B(Ne))if(Ne.length){const z=e.exposed||(e.exposed={});Ne.forEach(W=>{Object.defineProperty(z,W,{get:()=>n[W],set:$e=>n[W]=$e,enumerable:!0})})}else e.exposed||(e.exposed={});Q&&e.render===Ke&&(e.render=Q),st!=null&&(e.inheritAttrs=st),gt&&(e.components=gt),Me&&(e.directives=Me),nt&&yi(e)}function ml(e,t,n=Ke){B(e)&&(e=us(e));for(const s in e){const r=e[s];let i;ee(r)?"default"in r?i=Pe(r.from||s,r.default,!0):i=Pe(r.from||s):i=Pe(r),ce(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function Qs(e,t,n){We(B(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ri(e,t,n,s){let r=s.includes(".")?_i(n,s):()=>n[s];if(re(e)){const i=t[e];H(i)&&_n(r,i)}else if(H(e))_n(r,e.bind(n));else if(ee(e))if(B(e))e.forEach(i=>Ri(i,t,n,s));else{const i=H(e.handler)?e.handler.bind(n):t[e.handler];H(i)&&_n(r,i,e)}}function wi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,c=i.get(t);let l;return c?l=c:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(d=>wn(l,d,o,!0)),wn(l,t,o)),ee(t)&&i.set(t,l),l}function wn(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&wn(e,i,n,!0),r&&r.forEach(o=>wn(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const c=_l[o]||n&&n[o];e[o]=c?c(e[o],t[o]):t[o]}return e}const _l={data:Ys,props:Zs,emits:Zs,methods:kt,computed:kt,beforeCreate:fe,created:fe,beforeMount:fe,mounted:fe,beforeUpdate:fe,updated:fe,beforeDestroy:fe,beforeUnmount:fe,destroyed:fe,unmounted:fe,activated:fe,deactivated:fe,errorCaptured:fe,serverPrefetch:fe,components:kt,directives:kt,watch:yl,provide:Ys,inject:vl};function Ys(e,t){return t?e?function(){return ue(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function vl(e,t){return kt(us(e),us(t))}function us(e){if(B(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${at(t)}Modifiers`]||e[`${Rt(t)}Modifiers`];function Rl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Y;let r=n;const i=t.startsWith("update:"),o=i&&xl(s,t.slice(7));o&&(o.trim&&(r=n.map(f=>re(f)?f.trim():f)),o.number&&(r=n.map(Es)));let c,l=s[c=Un(t)]||s[c=Un(at(t))];!l&&i&&(l=s[c=Un(Rt(t))]),l&&We(l,e,6,r);const d=s[c+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,We(d,e,6,r)}}const wl=new WeakMap;function Si(e,t,n=!1){const s=n?wl:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},c=!1;if(!H(e)){const l=d=>{const f=Si(d,t,!0);f&&(c=!0,ue(o,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!c?(ee(e)&&s.set(e,null),null):(B(i)?i.forEach(l=>o[l]=null):ue(o,i),ee(e)&&s.set(e,o),o)}function Ln(e,t){return!e||!On(t)?!1:(t=t.slice(2).replace(/Once$/,""),q(e,t[0].toLowerCase()+t.slice(1))||q(e,Rt(t))||q(e,t))}function Xs(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:c,emit:l,render:d,renderCache:f,props:h,data:g,setupState:m,ctx:A,inheritAttrs:P}=e,U=xn(e);let N,T;try{if(n.shapeFlag&4){const I=r||s,Q=I;N=je(d.call(Q,I,f,h,m,g,A)),T=c}else{const I=t;N=je(I.length>1?I(h,{attrs:c,slots:o,emit:l}):I(h,null)),T=t.props?c:Al(c)}}catch(I){Xt.length=0,Mn(I,e,1),N=ye(ht)}let L=N;if(T&&P!==!1){const I=Object.keys(T),{shapeFlag:Q}=L;I.length&&Q&7&&(i&&I.some(vs)&&(T=Sl(T,i)),L=Vt(L,T,!1,!0))}return n.dirs&&(L=Vt(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&Ms(L,n.transition),N=L,xn(U),N}const Al=e=>{let t;for(const n in e)(n==="class"||n==="style"||On(n))&&((t||(t={}))[n]=e[n]);return t},Sl=(e,t)=>{const n={};for(const s in e)(!vs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Cl(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:c,patchFlag:l}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?er(s,o,d):!!o;if(l&8){const f=t.dynamicProps;for(let h=0;hObject.create(Ci),Pi=e=>Object.getPrototypeOf(e)===Ci;function Pl(e,t,n,s=!1){const r={},i=Oi();e.propsDefaults=Object.create(null),Ti(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:li(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Tl(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,c=k(r),[l]=e.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const f=e.vnode.dynamicProps;for(let h=0;h{l=!0;const[g,m]=Ii(h,t,!0);ue(o,g),m&&c.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!l)return ee(e)&&s.set(e,It),It;if(B(i))for(let f=0;fe==="_"||e==="_ctx"||e==="$stable",Ls=e=>B(e)?e.map(je):[je(e)],Nl=(e,t,n)=>{if(t._n)return t;const s=Jo((...r)=>Ls(t(...r)),n);return s._c=!1,s},Ni=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ds(r))continue;const i=e[r];if(H(i))t[r]=Nl(r,i,s);else if(i!=null){const o=Ls(i);t[r]=()=>o}}},Mi=(e,t)=>{const n=Ls(t);e.slots.default=()=>n},Di=(e,t,n)=>{for(const s in t)(n||!Ds(s))&&(e[s]=t[s])},Ml=(e,t,n)=>{const s=e.slots=Oi();if(e.vnode.shapeFlag&32){const r=t._;r?(Di(s,t,n),n&&Kr(s,"_",r,!0)):Ni(t,s)}else t&&Mi(e,t)},Dl=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=Y;if(s.shapeFlag&32){const c=t._;c?n&&c===1?i=!1:Di(r,t,n):(i=!t.$stable,Ni(t,r)),o=t}else t&&(Mi(e,t),o={default:1});if(i)for(const c in r)!Ds(c)&&o[c]==null&&delete r[c]},Ee=Hl;function Ll(e){return Fl(e)}function Fl(e,t){const n=In();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:c,createComment:l,setText:d,setElementText:f,parentNode:h,nextSibling:g,setScopeId:m=Ke,insertStaticContent:A}=e,P=(u,a,p,_=null,b=null,v=null,w=void 0,R=null,x=!!a.dynamicChildren)=>{if(u===a)return;u&&!Wt(u,a)&&(_=y(u),ge(u,b,v,!0),u=null),a.patchFlag===-2&&(x=!1,a.dynamicChildren=null);const{type:E,ref:F,shapeFlag:C}=a;switch(E){case Fn:U(u,a,p,_);break;case ht:N(u,a,p,_);break;case qn:u==null&&T(a,p,_,w);break;case Ue:gt(u,a,p,_,b,v,w,R,x);break;default:C&1?Q(u,a,p,_,b,v,w,R,x):C&6?Me(u,a,p,_,b,v,w,R,x):(C&64||C&128)&&E.process(u,a,p,_,b,v,w,R,x,M)}F!=null&&b?Qt(F,u&&u.ref,v,a||u,!a):F==null&&u&&u.ref!=null&&Qt(u.ref,null,v,u,!0)},U=(u,a,p,_)=>{if(u==null)s(a.el=c(a.children),p,_);else{const b=a.el=u.el;a.children!==u.children&&d(b,a.children)}},N=(u,a,p,_)=>{u==null?s(a.el=l(a.children||""),p,_):a.el=u.el},T=(u,a,p,_)=>{[u.el,u.anchor]=A(u.children,a,p,_,u.el,u.anchor)},L=({el:u,anchor:a},p,_)=>{let b;for(;u&&u!==a;)b=g(u),s(u,p,_),u=b;s(a,p,_)},I=({el:u,anchor:a})=>{let p;for(;u&&u!==a;)p=g(u),r(u),u=p;r(a)},Q=(u,a,p,_,b,v,w,R,x)=>{if(a.type==="svg"?w="svg":a.type==="math"&&(w="mathml"),u==null)oe(a,p,_,b,v,w,R,x);else{const E=u.el&&u.el._isVueCE?u.el:null;try{E&&E._beginPatch(),nt(u,a,b,v,w,R,x)}finally{E&&E._endPatch()}}},oe=(u,a,p,_,b,v,w,R)=>{let x,E;const{props:F,shapeFlag:C,transition:D,dirs:V}=u;if(x=u.el=o(u.type,v,F&&F.is,F),C&8?f(x,u.children):C&16&&Ie(u.children,x,null,_,b,kn(u,v),w,R),V&&_t(u,null,_,"created"),te(x,u,u.scopeId,w,_),F){for(const Z in F)Z!=="value"&&!qt(Z)&&i(x,Z,null,F[Z],v,_);"value"in F&&i(x,"value",null,F.value,v),(E=F.onVnodeBeforeMount)&&Be(E,_,u)}V&&_t(u,null,_,"beforeMount");const G=Vl(b,D);G&&D.beforeEnter(x),s(x,a,p),((E=F&&F.onVnodeMounted)||G||V)&&Ee(()=>{E&&Be(E,_,u),G&&D.enter(x),V&&_t(u,null,_,"mounted")},b)},te=(u,a,p,_,b)=>{if(p&&m(u,p),_)for(let v=0;v<_.length;v++)m(u,_[v]);if(b){let v=b.subTree;if(a===v||Bi(v.type)&&(v.ssContent===a||v.ssFallback===a)){const w=b.vnode;te(u,w,w.scopeId,w.slotScopeIds,b.parent)}}},Ie=(u,a,p,_,b,v,w,R,x=0)=>{for(let E=x;E{const R=a.el=u.el;let{patchFlag:x,dynamicChildren:E,dirs:F}=a;x|=u.patchFlag&16;const C=u.props||Y,D=a.props||Y;let V;if(p&&vt(p,!1),(V=D.onVnodeBeforeUpdate)&&Be(V,p,a,u),F&&_t(a,u,p,"beforeUpdate"),p&&vt(p,!0),(C.innerHTML&&D.innerHTML==null||C.textContent&&D.textContent==null)&&f(R,""),E?Ne(u.dynamicChildren,E,R,p,_,kn(a,b),v):w||W(u,a,R,null,p,_,kn(a,b),v,!1),x>0){if(x&16)st(R,C,D,p,b);else if(x&2&&C.class!==D.class&&i(R,"class",null,D.class,b),x&4&&i(R,"style",C.style,D.style,b),x&8){const G=a.dynamicProps;for(let Z=0;Z{V&&Be(V,p,a,u),F&&_t(a,u,p,"updated")},_)},Ne=(u,a,p,_,b,v,w)=>{for(let R=0;R{if(a!==p){if(a!==Y)for(const v in a)!qt(v)&&!(v in p)&&i(u,v,a[v],null,b,_);for(const v in p){if(qt(v))continue;const w=p[v],R=a[v];w!==R&&v!=="value"&&i(u,v,R,w,b,_)}"value"in p&&i(u,"value",a.value,p.value,b)}},gt=(u,a,p,_,b,v,w,R,x)=>{const E=a.el=u?u.el:c(""),F=a.anchor=u?u.anchor:c("");let{patchFlag:C,dynamicChildren:D,slotScopeIds:V}=a;V&&(R=R?R.concat(V):V),u==null?(s(E,p,_),s(F,p,_),Ie(a.children||[],p,F,b,v,w,R,x)):C>0&&C&64&&D&&u.dynamicChildren&&u.dynamicChildren.length===D.length?(Ne(u.dynamicChildren,D,p,b,v,w,R),(a.key!=null||b&&a===b.subTree)&&Li(u,a,!0)):W(u,a,p,F,b,v,w,R,x)},Me=(u,a,p,_,b,v,w,R,x)=>{a.slotScopeIds=R,u==null?a.shapeFlag&512?b.ctx.activate(a,p,_,w,x):jt(a,p,_,b,v,w,x):wt(u,a,x)},jt=(u,a,p,_,b,v,w)=>{const R=u.component=Jl(u,_,b);if(bi(u)&&(R.ctx.renderer=M),Ql(R,!1,w),R.asyncDep){if(b&&b.registerDep(R,ie,w),!u.el){const x=R.subTree=ye(ht);N(null,x,a,p),u.placeholder=x.el}}else ie(R,u,a,p,b,v,w)},wt=(u,a,p)=>{const _=a.component=u.component;if(Cl(u,a,p))if(_.asyncDep&&!_.asyncResolved){z(_,a,p);return}else _.next=a,_.update();else a.el=u.el,_.vnode=a},ie=(u,a,p,_,b,v,w)=>{const R=()=>{if(u.isMounted){let{next:C,bu:D,u:V,parent:G,vnode:Z}=u;{const Fe=Fi(u);if(Fe){C&&(C.el=Z.el,z(u,C,w)),Fe.asyncDep.then(()=>{u.isUnmounted||R()});return}}let J=C,me;vt(u,!1),C?(C.el=Z.el,z(u,C,w)):C=Z,D&&gn(D),(me=C.props&&C.props.onVnodeBeforeUpdate)&&Be(me,G,C,Z),vt(u,!0);const _e=Xs(u),Le=u.subTree;u.subTree=_e,P(Le,_e,h(Le.el),y(Le),u,b,v),C.el=_e.el,J===null&&Ol(u,_e.el),V&&Ee(V,b),(me=C.props&&C.props.onVnodeUpdated)&&Ee(()=>Be(me,G,C,Z),b)}else{let C;const{el:D,props:V}=a,{bm:G,m:Z,parent:J,root:me,type:_e}=u,Le=Yt(a);vt(u,!1),G&&gn(G),!Le&&(C=V&&V.onVnodeBeforeMount)&&Be(C,J,a),vt(u,!0);{me.ce&&me.ce._def.shadowRoot!==!1&&me.ce._injectChildStyle(_e);const Fe=u.subTree=Xs(u);P(null,Fe,p,_,u,b,v),a.el=Fe.el}if(Z&&Ee(Z,b),!Le&&(C=V&&V.onVnodeMounted)){const Fe=a;Ee(()=>Be(C,J,Fe),b)}(a.shapeFlag&256||J&&Yt(J.vnode)&&J.vnode.shapeFlag&256)&&u.a&&Ee(u.a,b),u.isMounted=!0,a=p=_=null}};u.scope.on();const x=u.effect=new qr(R);u.scope.off();const E=u.update=x.run.bind(x),F=u.job=x.runIfDirty.bind(x);F.i=u,F.id=u.uid,x.scheduler=()=>Ns(F),vt(u,!0),E()},z=(u,a,p)=>{a.component=u;const _=u.vnode.props;u.vnode=a,u.next=null,Tl(u,a.props,_,p),Dl(u,a.children,p),Ze(),qs(u),Xe()},W=(u,a,p,_,b,v,w,R,x=!1)=>{const E=u&&u.children,F=u?u.shapeFlag:0,C=a.children,{patchFlag:D,shapeFlag:V}=a;if(D>0){if(D&128){rt(E,C,p,_,b,v,w,R,x);return}else if(D&256){$e(E,C,p,_,b,v,w,R,x);return}}V&8?(F&16&&Re(E,b,v),C!==E&&f(p,C)):F&16?V&16?rt(E,C,p,_,b,v,w,R,x):Re(E,b,v,!0):(F&8&&f(p,""),V&16&&Ie(C,p,_,b,v,w,R,x))},$e=(u,a,p,_,b,v,w,R,x)=>{u=u||It,a=a||It;const E=u.length,F=a.length,C=Math.min(E,F);let D;for(D=0;DF?Re(u,b,v,!0,!1,C):Ie(a,p,_,b,v,w,R,x,C)},rt=(u,a,p,_,b,v,w,R,x)=>{let E=0;const F=a.length;let C=u.length-1,D=F-1;for(;E<=C&&E<=D;){const V=u[E],G=a[E]=x?ct(a[E]):je(a[E]);if(Wt(V,G))P(V,G,p,null,b,v,w,R,x);else break;E++}for(;E<=C&&E<=D;){const V=u[C],G=a[D]=x?ct(a[D]):je(a[D]);if(Wt(V,G))P(V,G,p,null,b,v,w,R,x);else break;C--,D--}if(E>C){if(E<=D){const V=D+1,G=VD)for(;E<=C;)ge(u[E],b,v,!0),E++;else{const V=E,G=E,Z=new Map;for(E=G;E<=D;E++){const be=a[E]=x?ct(a[E]):je(a[E]);be.key!=null&&Z.set(be.key,E)}let J,me=0;const _e=D-G+1;let Le=!1,Fe=0;const Gt=new Array(_e);for(E=0;E<_e;E++)Gt[E]=0;for(E=V;E<=C;E++){const be=u[E];if(me>=_e){ge(be,b,v,!0);continue}let Ve;if(be.key!=null)Ve=Z.get(be.key);else for(J=G;J<=D;J++)if(Gt[J-G]===0&&Wt(be,a[J])){Ve=J;break}Ve===void 0?ge(be,b,v,!0):(Gt[Ve-G]=E+1,Ve>=Fe?Fe=Ve:Le=!0,P(be,a[Ve],p,null,b,v,w,R,x),me++)}const js=Le?Bl(Gt):It;for(J=js.length-1,E=_e-1;E>=0;E--){const be=G+E,Ve=a[be],Gs=a[be+1],Ks=be+1{const{el:v,type:w,transition:R,children:x,shapeFlag:E}=u;if(E&6){De(u.component.subTree,a,p,_);return}if(E&128){u.suspense.move(a,p,_);return}if(E&64){w.move(u,a,p,M);return}if(w===Ue){s(v,a,p);for(let C=0;CR.enter(v),b);else{const{leave:C,delayLeave:D,afterLeave:V}=R,G=()=>{u.ctx.isUnmounted?r(v):s(v,a,p)},Z=()=>{v._isLeaving&&v[el](!0),C(v,()=>{G(),V&&V()})};D?D(v,G,Z):Z()}else s(v,a,p)},ge=(u,a,p,_=!1,b=!1)=>{const{type:v,props:w,ref:R,children:x,dynamicChildren:E,shapeFlag:F,patchFlag:C,dirs:D,cacheIndex:V}=u;if(C===-2&&(b=!1),R!=null&&(Ze(),Qt(R,null,p,u,!0),Xe()),V!=null&&(a.renderCache[V]=void 0),F&256){a.ctx.deactivate(u);return}const G=F&1&&D,Z=!Yt(u);let J;if(Z&&(J=w&&w.onVnodeBeforeUnmount)&&Be(J,a,u),F&6)mt(u.component,p,_);else{if(F&128){u.suspense.unmount(p,_);return}G&&_t(u,null,a,"beforeUnmount"),F&64?u.type.remove(u,a,p,M,_):E&&!E.hasOnce&&(v!==Ue||C>0&&C&64)?Re(E,a,p,!1,!0):(v===Ue&&C&384||!b&&F&16)&&Re(x,a,p),_&&At(u)}(Z&&(J=w&&w.onVnodeUnmounted)||G)&&Ee(()=>{J&&Be(J,a,u),G&&_t(u,null,a,"unmounted")},p)},At=u=>{const{type:a,el:p,anchor:_,transition:b}=u;if(a===Ue){St(p,_);return}if(a===qn){I(u);return}const v=()=>{r(p),b&&!b.persisted&&b.afterLeave&&b.afterLeave()};if(u.shapeFlag&1&&b&&!b.persisted){const{leave:w,delayLeave:R}=b,x=()=>w(p,v);R?R(u.el,v,x):x()}else v()},St=(u,a)=>{let p;for(;u!==a;)p=g(u),r(u),u=p;r(a)},mt=(u,a,p)=>{const{bum:_,scope:b,job:v,subTree:w,um:R,m:x,a:E}=u;nr(x),nr(E),_&&gn(_),b.stop(),v&&(v.flags|=8,ge(w,u,a,p)),R&&Ee(R,a),Ee(()=>{u.isUnmounted=!0},a)},Re=(u,a,p,_=!1,b=!1,v=0)=>{for(let w=v;w{if(u.shapeFlag&6)return y(u.component.subTree);if(u.shapeFlag&128)return u.suspense.next();const a=g(u.anchor||u.el),p=a&&a[Zo];return p?g(p):a};let O=!1;const S=(u,a,p)=>{let _;u==null?a._vnode&&(ge(a._vnode,null,null,!0),_=a._vnode.component):P(a._vnode||null,u,a,null,null,null,p),a._vnode=u,O||(O=!0,qs(_),hi(),O=!1)},M={p:P,um:ge,m:De,r:At,mt:jt,mc:Ie,pc:W,pbc:Ne,n:y,o:e};return{render:S,hydrate:void 0,createApp:El(S)}}function kn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function vt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Vl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Li(e,t,n=!1){const s=e.children,r=t.children;if(B(s)&&B(r))for(let i=0;i>1,e[n[c]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function Fi(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fi(t)}function nr(e){if(e)for(let t=0;te.__isSuspense;function Hl(e,t){t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):qo(e)}const Ue=Symbol.for("v-fgt"),Fn=Symbol.for("v-txt"),ht=Symbol.for("v-cmt"),qn=Symbol.for("v-stc"),Xt=[];let xe=null;function Ae(e=!1){Xt.push(xe=e?null:[])}function Ul(){Xt.pop(),xe=Xt[Xt.length-1]||null}let ln=1;function An(e,t=!1){ln+=e,e<0&&xe&&t&&(xe.hasOnce=!0)}function Hi(e){return e.dynamicChildren=ln>0?xe||It:null,Ul(),ln>0&&xe&&xe.push(e),e}function Ge(e,t,n,s,r,i){return Hi(K(e,t,n,s,r,i,!0))}function jl(e,t,n,s,r){return Hi(ye(e,t,n,s,r,!0))}function Sn(e){return e?e.__v_isVNode===!0:!1}function Wt(e,t){return e.type===t.type&&e.key===t.key}const Ui=({key:e})=>e??null,vn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?re(e)||ce(e)||H(e)?{i:we,r:e,k:t,f:!!n}:e:null);function K(e,t=null,n=null,s=0,r=null,i=e===Ue?0:1,o=!1,c=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ui(t),ref:t&&vn(t),scopeId:gi,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:we};return c?(Fs(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=re(n)?8:16),ln>0&&!o&&xe&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&xe.push(l),l}const ye=Gl;function Gl(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===hl)&&(e=ht),Sn(e)){const c=Vt(e,t,!0);return n&&Fs(c,n),ln>0&&!i&&xe&&(c.shapeFlag&6?xe[xe.indexOf(e)]=c:xe.push(c)),c.patchFlag=-2,c}if(ec(e)&&(e=e.__vccOpts),t){t=Kl(t);let{class:c,style:l}=t;c&&!re(c)&&(t.class=Rs(c)),ee(l)&&(Is(l)&&!B(l)&&(l=ue({},l)),t.style=xs(l))}const o=re(e)?1:Bi(e)?128:Xo(e)?64:ee(e)?4:H(e)?2:0;return K(e,t,n,s,r,o,i,!0)}function Kl(e){return e?Is(e)||Pi(e)?ue({},e):e:null}function Vt(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:c,transition:l}=e,d=t?$l(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Ui(d),ref:t&&t.ref?n&&i?B(i)?i.concat(vn(t)):[i,vn(t)]:vn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:c,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ue?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Vt(e.ssContent),ssFallback:e.ssFallback&&Vt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Ms(f,l.clone(f)),f}function Wl(e=" ",t=0){return ye(Fn,null,e,t)}function en(e="",t=!1){return t?(Ae(),jl(ht,null,e)):ye(ht,null,e)}function je(e){return e==null||typeof e=="boolean"?ye(ht):B(e)?ye(Ue,null,e.slice()):Sn(e)?ct(e):ye(Fn,null,String(e))}function ct(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Vt(e)}function Fs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(B(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Fs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Pi(t)?t._ctx=we:r===3&&we&&(we.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else H(t)?(t={default:t,_ctx:we},n=32):(t=String(t),s&64?(n=16,t=[Wl(t)]):n=8);e.children=t,e.shapeFlag|=n}function $l(...e){const t={};for(let n=0;npe||we;let Cn,as;{const e=In(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};Cn=t("__VUE_INSTANCE_SETTERS__",n=>pe=n),as=t("__VUE_SSR_SETTERS__",n=>cn=n)}const an=e=>{const t=pe;return Cn(e),e.scope.on(),()=>{e.scope.off(),Cn(t)}},sr=()=>{pe&&pe.scope.off(),Cn(null)};function ji(e){return e.vnode.shapeFlag&4}let cn=!1;function Ql(e,t=!1,n=!1){t&&as(t);const{props:s,children:r}=e.vnode,i=ji(e);Pl(e,s,i,t),Ml(e,r,n||t);const o=i?Yl(e,t):void 0;return t&&as(!1),o}function Yl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pl);const{setup:s}=n;if(s){Ze();const r=e.setupContext=s.length>1?Xl(e):null,i=an(e),o=fn(s,e,0,[e.props,r]),c=Hr(o);if(Xe(),i(),(c||e.sp)&&!Yt(e)&&yi(e),c){if(o.then(sr,sr),t)return o.then(l=>{rr(e,l)}).catch(l=>{Mn(l,e,0)});e.asyncDep=o}else rr(e,o)}else Gi(e)}function rr(e,t,n){H(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ee(t)&&(e.setupState=ui(t)),Gi(e)}function Gi(e,t,n){const s=e.type;e.render||(e.render=s.render||Ke);{const r=an(e);Ze();try{gl(e)}finally{Xe(),r()}}}const Zl={get(e,t){return le(e,"get",""),e[t]}};function Xl(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Zl),slots:e.slots,emit:e.emit,expose:t}}function Vn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(ui(Vo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zt)return Zt[n](e)},has(t,n){return n in t||n in Zt}})):e.proxy}function ec(e){return H(e)&&"__vccOpts"in e}const Se=(e,t)=>Go(e,t,cn);function Ki(e,t,n){try{An(-1);const s=arguments.length;return s===2?ee(t)&&!B(t)?Sn(t)?ye(e,null,[t]):ye(e,t):ye(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Sn(n)&&(n=[n]),ye(e,t,n))}finally{An(1)}}const tc="3.5.26";/** +* @vue/runtime-dom v3.5.26 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ds;const ir=typeof window<"u"&&window.trustedTypes;if(ir)try{ds=ir.createPolicy("vue",{createHTML:e=>e})}catch{}const Wi=ds?e=>ds.createHTML(e):e=>e,nc="http://www.w3.org/2000/svg",sc="http://www.w3.org/1998/Math/MathML",Je=typeof document<"u"?document:null,or=Je&&Je.createElement("template"),rc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Je.createElementNS(nc,e):t==="mathml"?Je.createElementNS(sc,e):n?Je.createElement(e,{is:n}):Je.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Je.createTextNode(e),createComment:e=>Je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{or.innerHTML=Wi(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const c=or.content;if(s==="svg"||s==="mathml"){const l=c.firstChild;for(;l.firstChild;)c.appendChild(l.firstChild);c.removeChild(l)}t.insertBefore(c,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ic=Symbol("_vtc");function oc(e,t,n){const s=e[ic];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const lr=Symbol("_vod"),lc=Symbol("_vsh"),cc=Symbol(""),uc=/(?:^|;)\s*display\s*:/;function fc(e,t,n){const s=e.style,r=re(n);let i=!1;if(n&&!r){if(t)if(re(t))for(const o of t.split(";")){const c=o.slice(0,o.indexOf(":")).trim();n[c]==null&&yn(s,c,"")}else for(const o in t)n[o]==null&&yn(s,o,"");for(const o in n)o==="display"&&(i=!0),yn(s,o,n[o])}else if(r){if(t!==n){const o=s[cc];o&&(n+=";"+o),s.cssText=n,i=uc.test(n)}}else t&&e.removeAttribute("style");lr in e&&(e[lr]=i?s.display:"",e[lc]&&(s.display="none"))}const cr=/\s*!important$/;function yn(e,t,n){if(B(n))n.forEach(s=>yn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ac(e,t);cr.test(n)?e.setProperty(Rt(s),n.replace(cr,""),"important"):e[s]=n}}const ur=["Webkit","Moz","ms"],Jn={};function ac(e,t){const n=Jn[t];if(n)return n;let s=at(t);if(s!=="filter"&&s in e)return Jn[t]=s;s=Gr(s);for(let r=0;rzn||(gc.then(()=>zn=0),zn=Date.now());function _c(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;We(vc(s,n.value),t,5,[s])};return n.value=e,n.attached=mc(),n}function vc(e,t){if(B(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const gr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yc=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?oc(e,s,o):t==="style"?fc(e,n,s):On(t)?vs(t)||hc(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):bc(e,t,s,o))?(dr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&ar(e,t,s,o,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!re(s))?dr(e,at(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),ar(e,t,s,o))};function bc(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&gr(t)&&H(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return gr(t)&&re(n)?!1:t in e}const mr=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?n=>gn(t,n):t};function Ec(e){e.target.composing=!0}function _r(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qn=Symbol("_assign");function vr(e,t,n){return t&&(e=e.trim()),n&&(e=Es(e)),e}const Bt={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[Qn]=mr(r);const i=s||r.props&&r.props.type==="number";Pt(e,t?"change":"input",o=>{o.target.composing||e[Qn](vr(e.value,n,i))}),(n||i)&&Pt(e,"change",()=>{e.value=vr(e.value,n,i)}),t||(Pt(e,"compositionstart",Ec),Pt(e,"compositionend",_r),Pt(e,"change",_r))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[Qn]=mr(o),e.composing)return;const c=(i||e.type==="number")&&!/^0\d/.test(e.value)?Es(e.value):e.value,l=t??"";c!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===l)||(e.value=l))}},xc=["ctrl","shift","alt","meta"],Rc={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xc.some(n=>e[`${n}Key`]&&!t.includes(n))},$i=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let o=0;o{const t=Ac().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Oc(s);if(!r)return;const i=t._component;!H(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Cc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Cc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Oc(e){return re(e)?document.querySelector(e):e}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const Tt=typeof document<"u";function ki(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Pc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&ki(e.default)}const $=Object.assign;function Yn(e,t){const n={};for(const s in t){const r=t[s];n[s]=Te(r)?r.map(e):e(r)}return n}const tn=()=>{},Te=Array.isArray;function br(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const qi=/#/g,Tc=/&/g,Ic=/\//g,Nc=/=/g,Mc=/\?/g,Ji=/\+/g,Dc=/%5B/g,Lc=/%5D/g,zi=/%5E/g,Fc=/%60/g,Qi=/%7B/g,Vc=/%7C/g,Yi=/%7D/g,Bc=/%20/g;function Vs(e){return e==null?"":encodeURI(""+e).replace(Vc,"|").replace(Dc,"[").replace(Lc,"]")}function Hc(e){return Vs(e).replace(Qi,"{").replace(Yi,"}").replace(zi,"^")}function hs(e){return Vs(e).replace(Ji,"%2B").replace(Bc,"+").replace(qi,"%23").replace(Tc,"%26").replace(Fc,"`").replace(Qi,"{").replace(Yi,"}").replace(zi,"^")}function Uc(e){return hs(e).replace(Nc,"%3D")}function jc(e){return Vs(e).replace(qi,"%23").replace(Mc,"%3F")}function Gc(e){return jc(e).replace(Ic,"%2F")}function un(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Kc=/\/$/,Wc=e=>e.replace(Kc,"");function Zn(e,t,n="/"){let s,r={},i="",o="";const c=t.indexOf("#");let l=t.indexOf("?");return l=c>=0&&l>c?-1:l,l>=0&&(s=t.slice(0,l),i=t.slice(l,c>0?c:t.length),r=e(i.slice(1))),c>=0&&(s=s||t.slice(0,c),o=t.slice(c,t.length)),s=Jc(s??t,n),{fullPath:s+i+o,path:s,query:r,hash:un(o)}}function $c(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Er(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Ht(t.matched[s],n.matched[r])&&Zi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ht(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Zi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!qc(e[n],t[n]))return!1;return!0}function qc(e,t){return Te(e)?xr(e,t):Te(t)?xr(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function xr(e,t){return Te(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Jc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,o,c;for(o=0;o1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(o).join("/")}const it={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ps=function(e){return e.pop="pop",e.push="push",e}({}),Xn=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function zc(e){if(!e)if(Tt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Wc(e)}const Qc=/^[^#]+#/;function Yc(e,t){return e.replace(Qc,"#")+t}function Zc(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Bn=()=>({left:window.scrollX,top:window.scrollY});function Xc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Zc(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Rr(e,t){return(history.state?history.state.position-t:-1)+e}const gs=new Map;function eu(e,t){gs.set(e,t)}function tu(e){const t=gs.get(e);return gs.delete(e),t}function nu(e){return typeof e=="string"||e&&typeof e=="object"}function Xi(e){return typeof e=="string"||typeof e=="symbol"}let ne=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const eo=Symbol("");ne.MATCHER_NOT_FOUND+"",ne.NAVIGATION_GUARD_REDIRECT+"",ne.NAVIGATION_ABORTED+"",ne.NAVIGATION_CANCELLED+"",ne.NAVIGATION_DUPLICATED+"";function Ut(e,t){return $(new Error,{type:e,[eo]:!0},t)}function qe(e,t){return e instanceof Error&&eo in e&&(t==null||!!(e.type&t))}const su=["params","query","hash"];function ru(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of su)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function iu(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&hs(r)):[s&&hs(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function ou(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Te(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const lu=Symbol(""),Ar=Symbol(""),Hn=Symbol(""),Bs=Symbol(""),ms=Symbol("");function $t(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ut(e,t,n,s,r,i=o=>o()){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((c,l)=>{const d=g=>{g===!1?l(Ut(ne.NAVIGATION_ABORTED,{from:n,to:t})):g instanceof Error?l(g):nu(g)?l(Ut(ne.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(o&&s.enterCallbacks[r]===o&&typeof g=="function"&&o.push(g),c())},f=i(()=>e.call(s&&s.instances[r],t,n,d));let h=Promise.resolve(f);e.length<3&&(h=h.then(d)),h.catch(g=>l(g))})}function es(e,t,n,s,r=i=>i()){const i=[];for(const o of e)for(const c in o.components){let l=o.components[c];if(!(t!=="beforeRouteEnter"&&!o.instances[c]))if(ki(l)){const d=(l.__vccOpts||l)[t];d&&i.push(ut(d,n,s,o,c,r))}else{let d=l();i.push(()=>d.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${c}" at "${o.path}"`);const h=Pc(f)?f.default:f;o.mods[c]=f,o.components[c]=h;const g=(h.__vccOpts||h)[t];return g&&ut(g,n,s,o,c,r)()}))}}return i}function cu(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let o=0;oHt(d,c))?s.push(c):n.push(c));const l=e.matched[o];l&&(t.matched.find(d=>Ht(d,l))||r.push(l))}return[n,s,r]}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let uu=()=>location.protocol+"//"+location.host;function to(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,c=r.slice(o);return c[0]!=="/"&&(c="/"+c),Er(c,"")}return Er(n,e)+s+r}function fu(e,t,n,s){let r=[],i=[],o=null;const c=({state:g})=>{const m=to(e,location),A=n.value,P=t.value;let U=0;if(g){if(n.value=m,t.value=g,o&&o===A){o=null;return}U=P?g.position-P.position:0}else s(m);r.forEach(N=>{N(n.value,A,{delta:U,type:ps.pop,direction:U?U>0?Xn.forward:Xn.back:Xn.unknown})})};function l(){o=n.value}function d(g){r.push(g);const m=()=>{const A=r.indexOf(g);A>-1&&r.splice(A,1)};return i.push(m),m}function f(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState($({},g.state,{scroll:Bn()}),"")}}function h(){for(const g of i)g();i=[],window.removeEventListener("popstate",c),window.removeEventListener("pagehide",f),document.removeEventListener("visibilitychange",f)}return window.addEventListener("popstate",c),window.addEventListener("pagehide",f),document.addEventListener("visibilitychange",f),{pauseListeners:l,listen:d,destroy:h}}function Sr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Bn():null}}function au(e){const{history:t,location:n}=window,s={value:to(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,d,f){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:uu()+e+l;try{t[f?"replaceState":"pushState"](d,"",g),r.value=d}catch(m){console.error(m),n[f?"replace":"assign"](g)}}function o(l,d){i(l,$({},t.state,Sr(r.value.back,l,r.value.forward,!0),d,{position:r.value.position}),!0),s.value=l}function c(l,d){const f=$({},r.value,t.state,{forward:l,scroll:Bn()});i(f.current,f,!0),i(l,$({},Sr(s.value,l,null),{position:f.position+1},d),!1),s.value=l}return{location:s,state:r,push:c,replace:o}}function du(e){e=zc(e);const t=au(e),n=fu(e,t.state,t.location,t.replace);function s(i,o=!0){o||n.pauseListeners(),history.go(i)}const r=$({location:"",base:e,go:s,createHref:Yc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let bt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var se=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(se||{});const hu={type:bt.Static,value:""},pu=/[a-zA-Z0-9_]/;function gu(e){if(!e)return[[]];if(e==="/")return[[hu]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${d}": ${m}`)}let n=se.Static,s=n;const r=[];let i;function o(){i&&r.push(i),i=[]}let c=0,l,d="",f="";function h(){d&&(n===se.Static?i.push({type:bt.Static,value:d}):n===se.Param||n===se.ParamRegExp||n===se.ParamRegExpEnd?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),i.push({type:bt.Param,value:d,regexp:f,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),d="")}function g(){d+=l}for(;ct.length?t.length===1&&t[0]===ae.Static+ae.Segment?1:-1:0}function no(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const bu={strict:!1,end:!0,sensitive:!1};function Eu(e,t,n){const s=vu(gu(e.path),n),r=$(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function xu(e,t){const n=[],s=new Map;t=br(bu,t);function r(h){return s.get(h)}function i(h,g,m){const A=!m,P=Tr(h);P.aliasOf=m&&m.record;const U=br(t,h),N=[P];if("alias"in h){const I=typeof h.alias=="string"?[h.alias]:h.alias;for(const Q of I)N.push(Tr($({},P,{components:m?m.record.components:P.components,path:Q,aliasOf:m?m.record:P})))}let T,L;for(const I of N){const{path:Q}=I;if(g&&Q[0]!=="/"){const oe=g.record.path,te=oe[oe.length-1]==="/"?"":"/";I.path=g.record.path+(Q&&te+Q)}if(T=Eu(I,g,U),m?m.alias.push(T):(L=L||T,L!==T&&L.alias.push(T),A&&h.name&&!Ir(T)&&o(h.name)),so(T)&&l(T),P.children){const oe=P.children;for(let te=0;te{o(L)}:tn}function o(h){if(Xi(h)){const g=s.get(h);g&&(s.delete(h),n.splice(n.indexOf(g),1),g.children.forEach(o),g.alias.forEach(o))}else{const g=n.indexOf(h);g>-1&&(n.splice(g,1),h.record.name&&s.delete(h.record.name),h.children.forEach(o),h.alias.forEach(o))}}function c(){return n}function l(h){const g=Au(h,n);n.splice(g,0,h),h.record.name&&!Ir(h)&&s.set(h.record.name,h)}function d(h,g){let m,A={},P,U;if("name"in h&&h.name){if(m=s.get(h.name),!m)throw Ut(ne.MATCHER_NOT_FOUND,{location:h});U=m.record.name,A=$(Pr(g.params,m.keys.filter(L=>!L.optional).concat(m.parent?m.parent.keys.filter(L=>L.optional):[]).map(L=>L.name)),h.params&&Pr(h.params,m.keys.map(L=>L.name))),P=m.stringify(A)}else if(h.path!=null)P=h.path,m=n.find(L=>L.re.test(P)),m&&(A=m.parse(P),U=m.record.name);else{if(m=g.name?s.get(g.name):n.find(L=>L.re.test(g.path)),!m)throw Ut(ne.MATCHER_NOT_FOUND,{location:h,currentLocation:g});U=m.record.name,A=$({},g.params,h.params),P=m.stringify(A)}const N=[];let T=m;for(;T;)N.unshift(T.record),T=T.parent;return{name:U,path:P,params:A,matched:N,meta:wu(N)}}e.forEach(h=>i(h));function f(){n.length=0,s.clear()}return{addRoute:i,resolve:d,removeRoute:o,clearRoutes:f,getRoutes:c,getRecordMatcher:r}}function Pr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Tr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ru(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ru(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Ir(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function wu(e){return e.reduce((t,n)=>$(t,n.meta),{})}function Au(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;no(e,t[i])<0?s=i:n=i+1}const r=Su(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Su(e){let t=e;for(;t=t.parent;)if(so(t)&&no(e,t)===0)return t}function so({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Nr(e){const t=Pe(Hn),n=Pe(Bs),s=Se(()=>{const l=xt(e.to);return t.resolve(l)}),r=Se(()=>{const{matched:l}=s.value,{length:d}=l,f=l[d-1],h=n.matched;if(!f||!h.length)return-1;const g=h.findIndex(Ht.bind(null,f));if(g>-1)return g;const m=Mr(l[d-2]);return d>1&&Mr(f)===m&&h[h.length-1].path!==m?h.findIndex(Ht.bind(null,l[d-2])):g}),i=Se(()=>r.value>-1&&Iu(n.params,s.value.params)),o=Se(()=>r.value>-1&&r.value===n.matched.length-1&&Zi(n.params,s.value.params));function c(l={}){if(Tu(l)){const d=t[xt(e.replace)?"replace":"push"](xt(e.to)).catch(tn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:Se(()=>s.value.href),isActive:i,isExactActive:o,navigate:c}}function Cu(e){return e.length===1?e[0]:e}const Ou=vi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:Nr,setup(e,{slots:t}){const n=Nn(Nr(e)),{options:s}=Pe(Hn),r=Se(()=>({[Dr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Dr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&Cu(t.default(n));return e.custom?i:Ki("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Pu=Ou;function Tu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Iu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Te(r)||r.length!==s.length||s.some((i,o)=>i.valueOf()!==r[o].valueOf()))return!1}return!0}function Mr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Dr=(e,t,n)=>e??t??n,Nu=vi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Pe(ms),r=Se(()=>e.route||s.value),i=Pe(Ar,0),o=Se(()=>{let d=xt(i);const{matched:f}=r.value;let h;for(;(h=f[d])&&!h.components;)d++;return d}),c=Se(()=>r.value.matched[o.value]);mn(Ar,Se(()=>o.value+1)),mn(lu,c),mn(ms,r);const l=he();return _n(()=>[l.value,c.value,e.name],([d,f,h],[g,m,A])=>{f&&(f.instances[h]=d,m&&m!==f&&d&&d===g&&(f.leaveGuards.size||(f.leaveGuards=m.leaveGuards),f.updateGuards.size||(f.updateGuards=m.updateGuards))),d&&f&&(!m||!Ht(f,m)||!g)&&(f.enterCallbacks[h]||[]).forEach(P=>P(d))},{flush:"post"}),()=>{const d=r.value,f=e.name,h=c.value,g=h&&h.components[f];if(!g)return Lr(n.default,{Component:g,route:d});const m=h.props[f],A=m?m===!0?d.params:typeof m=="function"?m(d):m:null,U=Ki(g,$({},A,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(h.instances[f]=null)},ref:l}));return Lr(n.default,{Component:U,route:d})||U}}});function Lr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ro=Nu;function Mu(e){const t=xu(e.routes,e),n=e.parseQuery||iu,s=e.stringifyQuery||wr,r=e.history,i=$t(),o=$t(),c=$t(),l=Bo(it);let d=it;Tt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=Yn.bind(null,y=>""+y),h=Yn.bind(null,Gc),g=Yn.bind(null,un);function m(y,O){let S,M;return Xi(y)?(S=t.getRecordMatcher(y),M=O):M=y,t.addRoute(M,S)}function A(y){const O=t.getRecordMatcher(y);O&&t.removeRoute(O)}function P(){return t.getRoutes().map(y=>y.record)}function U(y){return!!t.getRecordMatcher(y)}function N(y,O){if(O=$({},O||l.value),typeof y=="string"){const p=Zn(n,y,O.path),_=t.resolve({path:p.path},O),b=r.createHref(p.fullPath);return $(p,_,{params:g(_.params),hash:un(p.hash),redirectedFrom:void 0,href:b})}let S;if(y.path!=null)S=$({},y,{path:Zn(n,y.path,O.path).path});else{const p=$({},y.params);for(const _ in p)p[_]==null&&delete p[_];S=$({},y,{params:h(p)}),O.params=h(O.params)}const M=t.resolve(S,O),j=y.hash||"";M.params=f(g(M.params));const u=$c(s,$({},y,{hash:Hc(j),path:M.path})),a=r.createHref(u);return $({fullPath:u,hash:j,query:s===wr?ou(y.query):y.query||{}},M,{redirectedFrom:void 0,href:a})}function T(y){return typeof y=="string"?Zn(n,y,l.value.path):$({},y)}function L(y,O){if(d!==y)return Ut(ne.NAVIGATION_CANCELLED,{from:O,to:y})}function I(y){return te(y)}function Q(y){return I($(T(y),{replace:!0}))}function oe(y,O){const S=y.matched[y.matched.length-1];if(S&&S.redirect){const{redirect:M}=S;let j=typeof M=="function"?M(y,O):M;return typeof j=="string"&&(j=j.includes("?")||j.includes("#")?j=T(j):{path:j},j.params={}),$({query:y.query,hash:y.hash,params:j.path!=null?{}:y.params},j)}}function te(y,O){const S=d=N(y),M=l.value,j=y.state,u=y.force,a=y.replace===!0,p=oe(S,M);if(p)return te($(T(p),{state:typeof p=="object"?$({},j,p.state):j,force:u,replace:a}),O||S);const _=S;_.redirectedFrom=O;let b;return!u&&kc(s,M,S)&&(b=Ut(ne.NAVIGATION_DUPLICATED,{to:_,from:M}),De(M,M,!0,!1)),(b?Promise.resolve(b):Ne(_,M)).catch(v=>qe(v)?qe(v,ne.NAVIGATION_GUARD_REDIRECT)?v:rt(v):W(v,_,M)).then(v=>{if(v){if(qe(v,ne.NAVIGATION_GUARD_REDIRECT))return te($({replace:a},T(v.to),{state:typeof v.to=="object"?$({},j,v.to.state):j,force:u}),O||_)}else v=gt(_,M,!0,a,j);return st(_,M,v),v})}function Ie(y,O){const S=L(y,O);return S?Promise.reject(S):Promise.resolve()}function nt(y){const O=St.values().next().value;return O&&typeof O.runWithContext=="function"?O.runWithContext(y):y()}function Ne(y,O){let S;const[M,j,u]=cu(y,O);S=es(M.reverse(),"beforeRouteLeave",y,O);for(const p of M)p.leaveGuards.forEach(_=>{S.push(ut(_,y,O))});const a=Ie.bind(null,y,O);return S.push(a),Re(S).then(()=>{S=[];for(const p of i.list())S.push(ut(p,y,O));return S.push(a),Re(S)}).then(()=>{S=es(j,"beforeRouteUpdate",y,O);for(const p of j)p.updateGuards.forEach(_=>{S.push(ut(_,y,O))});return S.push(a),Re(S)}).then(()=>{S=[];for(const p of u)if(p.beforeEnter)if(Te(p.beforeEnter))for(const _ of p.beforeEnter)S.push(ut(_,y,O));else S.push(ut(p.beforeEnter,y,O));return S.push(a),Re(S)}).then(()=>(y.matched.forEach(p=>p.enterCallbacks={}),S=es(u,"beforeRouteEnter",y,O,nt),S.push(a),Re(S))).then(()=>{S=[];for(const p of o.list())S.push(ut(p,y,O));return S.push(a),Re(S)}).catch(p=>qe(p,ne.NAVIGATION_CANCELLED)?p:Promise.reject(p))}function st(y,O,S){c.list().forEach(M=>nt(()=>M(y,O,S)))}function gt(y,O,S,M,j){const u=L(y,O);if(u)return u;const a=O===it,p=Tt?history.state:{};S&&(M||a?r.replace(y.fullPath,$({scroll:a&&p&&p.scroll},j)):r.push(y.fullPath,j)),l.value=y,De(y,O,S,a),rt()}let Me;function jt(){Me||(Me=r.listen((y,O,S)=>{if(!mt.listening)return;const M=N(y),j=oe(M,mt.currentRoute.value);if(j){te($(j,{replace:!0,force:!0}),M).catch(tn);return}d=M;const u=l.value;Tt&&eu(Rr(u.fullPath,S.delta),Bn()),Ne(M,u).catch(a=>qe(a,ne.NAVIGATION_ABORTED|ne.NAVIGATION_CANCELLED)?a:qe(a,ne.NAVIGATION_GUARD_REDIRECT)?(te($(T(a.to),{force:!0}),M).then(p=>{qe(p,ne.NAVIGATION_ABORTED|ne.NAVIGATION_DUPLICATED)&&!S.delta&&S.type===ps.pop&&r.go(-1,!1)}).catch(tn),Promise.reject()):(S.delta&&r.go(-S.delta,!1),W(a,M,u))).then(a=>{a=a||gt(M,u,!1),a&&(S.delta&&!qe(a,ne.NAVIGATION_CANCELLED)?r.go(-S.delta,!1):S.type===ps.pop&&qe(a,ne.NAVIGATION_ABORTED|ne.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),st(M,u,a)}).catch(tn)}))}let wt=$t(),ie=$t(),z;function W(y,O,S){rt(y);const M=ie.list();return M.length?M.forEach(j=>j(y,O,S)):console.error(y),Promise.reject(y)}function $e(){return z&&l.value!==it?Promise.resolve():new Promise((y,O)=>{wt.add([y,O])})}function rt(y){return z||(z=!y,jt(),wt.list().forEach(([O,S])=>y?S(y):O()),wt.reset()),y}function De(y,O,S,M){const{scrollBehavior:j}=e;if(!Tt||!j)return Promise.resolve();const u=!S&&tu(Rr(y.fullPath,0))||(M||!S)&&history.state&&history.state.scroll||null;return ai().then(()=>j(y,O,u)).then(a=>a&&Xc(a)).catch(a=>W(a,y,O))}const ge=y=>r.go(y);let At;const St=new Set,mt={currentRoute:l,listening:!0,addRoute:m,removeRoute:A,clearRoutes:t.clearRoutes,hasRoute:U,getRoutes:P,resolve:N,options:e,push:I,replace:Q,go:ge,back:()=>ge(-1),forward:()=>ge(1),beforeEach:i.add,beforeResolve:o.add,afterEach:c.add,onError:ie.add,isReady:$e,install(y){y.component("RouterLink",Pu),y.component("RouterView",ro),y.config.globalProperties.$router=mt,Object.defineProperty(y.config.globalProperties,"$route",{enumerable:!0,get:()=>xt(l)}),Tt&&!At&&l.value===it&&(At=!0,I(r.location).catch(M=>{}));const O={};for(const M in it)Object.defineProperty(O,M,{get:()=>l.value[M],enumerable:!0});y.provide(Hn,mt),y.provide(Bs,li(O)),y.provide(ms,l);const S=y.unmount;St.add(y),y.unmount=function(){St.delete(y),St.size<1&&(d=it,Me&&Me(),Me=null,l.value=it,At=!1,z=!1),S()}}};function Re(y){return y.reduce((O,S)=>O.then(()=>nt(S)),Promise.resolve())}return mt}function Hs(){return Pe(Hn)}function Du(e){return Pe(Bs)}const Lu={id:"app"},Fu={__name:"App",setup(e){return(t,n)=>(Ae(),Ge("div",Lu,[ye(xt(ro))]))}},Us=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},Vu={class:"login-container"},Bu={class:"login-card"},Hu={key:0,class:"error"},Uu={class:"auth-buttons"},ju=["disabled"],Gu=["disabled"],Ku={__name:"LoginView",setup(e){const t=Hs(),n=he(""),s=he(""),r=he(""),i=he(!1),o=he(!1);async function c(){i.value=!0,r.value="";try{const d=await fetch("/api/method/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({usr:n.value,pwd:s.value})});if(!d.ok){const f=await d.json();throw new Error(f.message||"账号或密码错误")}window.location.href="http://172.25.162.172:8000/app"}catch(d){r.value=d.message}finally{i.value=!1}}function l(){t.push("/register")}return(d,f)=>(Ae(),Ge("div",Vu,[f[4]||(f[4]=K("div",{class:"bg-pattern"},null,-1)),K("div",Bu,[f[2]||(f[2]=K("div",{class:"logo"},[K("span",{class:"brand"},"决裂者终端")],-1)),K("form",{onSubmit:$i(c,["prevent"])},[Ft(K("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>n.value=h),type:"text",placeholder:"请输入账号",required:"",class:"input-field"},null,512),[[Bt,n.value]]),Ft(K("input",{"onUpdate:modelValue":f[1]||(f[1]=h=>s.value=h),type:"password",placeholder:"请输入密码",required:"",class:"input-field"},null,512),[[Bt,s.value]]),r.value?(Ae(),Ge("div",Hu,Ye(r.value),1)):en("",!0),K("div",Uu,[K("button",{type:"submit",disabled:i.value,class:"login-btn"},Ye(i.value?"正在登录. . .":"登录"),9,ju),K("button",{type:"button",onClick:l,disabled:o.value,class:"register-btn"},Ye(o.value?"注册中...":"注册"),9,Gu)])],32),f[3]||(f[3]=K("p",{class:"footer"},"© 2026 Sunderer games. ",-1))])]))}},ts=Us(Ku,[["__scopeId","data-v-6eda41c4"]]),Wu={class:"register-view"},$u={class:"container"},ku={key:0,class:"step-email"},qu=["disabled"],Ju={key:0,class:"error-msg"},zu={key:1,class:"step-verify"},Qu={key:0,class:"error-msg"},Yu={__name:"RegisterView",setup(e){const t=Hs(),n=he(""),s=he(""),r=he("email"),i=he(""),o=he(!1),c=h=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(h),l=async()=>{if(!c(n.value)){i.value="请输入有效的邮箱地址!";return}o.value=!0,i.value="";try{const g=await(await fetch("/api/method/sunderer_app.api.verification.send_signup_code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n.value})})).json();g.exc?i.value=g.exc:(r.value="verify",console.log("验证码发送成功"))}catch(h){i.value="网络错误,请稍后再试",console.error(h)}finally{o.value=!1}},d=async()=>{if(console.log("DEBUG: verifyAndSignup function called"),console.log("点击完成注册"),console.log("email:",n.value),console.log("code:",s.value),s.value.length!==6){i.value="请输入6位验证码!",console.log("DEBUG: Code length check failed");return}console.log("DEBUG: Code length check passed");try{const g=await(await fetch("/api/method/sunderer_app.api.verification.verify_signup_code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n.value,code:s.value})})).json();if(console.log("DEBUG: Verify API Response:",g),g.exc){i.value=g.exc,console.log("DEBUG: Verify API returned error:",g.exc);return}console.log("DEBUG: Verify API succeeded, proceeding to trigger email...");const A=await(await fetch("/api/method/sunderer_app.api.custom_user_signup.trigger_account_setup_email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n.value})})).json();if(console.log("DEBUG: Trigger Email API Response:",A),A.exc){i.value=A.exc,console.log("DEBUG: Trigger Email API returned error:",A.exc);return}alert("验证成功!请查收邮箱中的注册链接,点击链接完成账户设置。"),console.log("Verification successful, email sent with link."),n.value="",s.value="",r.value="email",i.value=""}catch(h){i.value="网络异常,请稍后再试",console.error("注册异常:",h)}},f=()=>{t.push("/login")};return(h,g)=>(Ae(),Ge("div",Wu,[K("div",$u,[g[2]||(g[2]=K("h2",null,"用户注册",-1)),r.value==="email"?(Ae(),Ge("div",ku,[Ft(K("input",{"onUpdate:modelValue":g[0]||(g[0]=m=>n.value=m),type:"email",placeholder:"请输入邮箱地址",class:"input-field"},null,512),[[Bt,n.value]]),K("button",{onClick:l,disabled:o.value,class:"btn-primary"},Ye(o.value?"发送中...":"发送验证码"),9,qu),i.value?(Ae(),Ge("p",Ju,Ye(i.value),1)):en("",!0)])):r.value==="verify"?(Ae(),Ge("div",zu,[Ft(K("input",{"onUpdate:modelValue":g[1]||(g[1]=m=>s.value=m),type:"text",placeholder:"请输入6位验证码",maxlength:"6",class:"input-field"},null,512),[[Bt,s.value]]),K("button",{onClick:d,class:"btn-primary"}," 完成注册 "),i.value?(Ae(),Ge("p",Qu,Ye(i.value),1)):en("",!0)])):en("",!0),K("div",{class:"back-to-login"},[K("button",{onClick:f,class:"btn-secondary"}," ← 返回登录 ")])])]))}},Zu=Us(Yu,[["__scopeId","data-v-14690773"]]),Xu={class:"password-setup-container"},ef={class:"setup-card"},tf={class:"input-group"},nf={class:"input-group"},sf={key:0,class:"error"},rf=["disabled"],of={__name:"CustomPasswordSetup",setup(e){const t=Hs(),n=Du(),s=he(""),r=he(""),i=he(""),o=he(!1),c=async()=>{if(s.value!==r.value){i.value="两次输入的密码不一致";return}if(s.value.length<6){i.value="密码长度至少为6位";return}o.value=!0,i.value="";try{const l=n.query.key;if(!l){i.value="无效的密码重置链接";return}const f=await(await fetch("http://172.25.162.172:8000/api/method/frappe.core.doctype.user.user.update_password",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:l,new_password:s.value})})).json();f.exc?i.value=f.exc||"设置密码失败":(alert("密码设置成功!"),t.push("/login"))}catch(l){i.value="网络错误,请稍后再试",console.error(l)}finally{o.value=!1}};return(l,d)=>(Ae(),Ge("div",Xu,[K("div",ef,[d[4]||(d[4]=K("h2",null,"设置密码",-1)),K("form",{onSubmit:$i(c,["prevent"])},[K("div",tf,[d[2]||(d[2]=K("label",null,"新密码",-1)),Ft(K("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>s.value=f),type:"password",placeholder:"请输入新密码",class:"input-field",required:""},null,512),[[Bt,s.value]])]),K("div",nf,[d[3]||(d[3]=K("label",null,"确认密码",-1)),Ft(K("input",{"onUpdate:modelValue":d[1]||(d[1]=f=>r.value=f),type:"password",placeholder:"请再次输入密码",class:"input-field",required:""},null,512),[[Bt,r.value]])]),i.value?(Ae(),Ge("div",sf,Ye(i.value),1)):en("",!0),K("button",{type:"submit",disabled:o.value,class:"btn-primary"},Ye(o.value?"设置中...":"设置密码"),9,rf)],32)])]))}},Fr=Us(of,[["__scopeId","data-v-378de9a4"]]),lf=[{path:"/",name:"Home",component:ts},{path:"/login",name:"Login",component:ts},{path:"/register",name:"Register",component:Zu},{path:"/update-password",name:"CustomPasswordSetup",component:Fr},{path:"/custom-update-password",name:"CustomPasswordSetupAlt",component:Fr},{path:"/:pathMatch(.*)*",name:"NotFound",component:ts}],cf=Mu({history:du(),routes:lf}),io=Sc(Fu);io.use(cf);io.mount("#app"); diff --git a/sunderer_app/public/dist/vite.svg b/sunderer_app/public/dist/vite.svg new file mode 100644 index 0000000..e7b8dfb --- /dev/null +++ b/sunderer_app/public/dist/vite.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/sunderer_app/setup_doctype.py b/sunderer_app/setup_doctype.py new file mode 100644 index 0000000..3a99b1f --- /dev/null +++ b/sunderer_app/setup_doctype.py @@ -0,0 +1,90 @@ +# sunderer_app/sunderer_app/setup_doctype.py + +import frappe +from frappe.custom.doctype.property_setter.property_setter import make_property_setter + +def create_signup_key_doctype(): + if frappe.db.exists("DocType", "Signup Key"): + print("DocType 'Signup Key' already exists.") + return + + print("Creating DocType 'Signup Key'...") + + try: + # 创建 DocType 文档对象 + signup_key_doctype = frappe.new_doc("DocType") + signup_key_doctype.name = "Signup Key" + signup_key_doctype.module = "Sunderer" # 替换为你应用的模块名 + signup_key_doctype.is_submittable = 0 + signup_key_doctype.is_tree = 0 + signup_key_doctype.istable = 0 + # signup_key_doctype.autoname = "field:key" # <--- 移除这一行! + # signup_key_doctype.autoname = "hash" # <--- 或者选择这一行 (如果你想用哈希作为 name) + signup_key_doctype.allow_rename = 0 + + # 插入 DocType (此时字段还不存在) + signup_key_doctype.insert(ignore_permissions=True) + + # 创建字段 + # 1. Key 字段 + key_field = frappe.new_doc("DocField") + key_field.parent = "Signup Key" + key_field.parenttype = "DocType" + key_field.parentfield = "fields" + key_field.fieldname = "key" + key_field.label = "Key" + key_field.fieldtype = "Data" + key_field.reqd = 1 # 必填 + key_field.unique = 1 # 唯一索引,很重要! + key_field.insert(ignore_permissions=True) + + # 2. Email 字段 + email_field = frappe.new_doc("DocField") + email_field.parent = "Signup Key" + email_field.parenttype = "DocType" + email_field.parentfield = "fields" + email_field.fieldname = "email" + email_field.label = "Email" + email_field.fieldtype = "Data" + email_field.options = "Email" + email_field.reqd = 1 # 必填 + email_field.insert(ignore_permissions=True) + + # 3. Used 字段 + used_field = frappe.new_doc("DocField") + used_field.parent = "Signup Key" + used_field.parenttype = "DocType" + used_field.parentfield = "fields" + used_field.fieldname = "used" + used_field.label = "Used" + used_field.fieldtype = "Check" + used_field.default = "0" + used_field.insert(ignore_permissions=True) + + # 4. Expires On 字段 (可选) + expires_on_field = frappe.new_doc("DocField") + expires_on_field.parent = "Signup Key" + expires_on_field.parenttype = "DocType" + expires_on_field.parentfield = "fields" + expires_on_field.fieldname = "expires_on" + expires_on_field.label = "Expires On" + expires_on_field.fieldtype = "Datetime" + expires_on_field.insert(ignore_permissions=True) + + # 可选:设置列表视图默认排序 + make_property_setter("Signup Key", "list_view_fields", "value", "['key', 'email', 'used', 'expires_on']", "Text", for_doctype=True) + + # 保存 DocType 以应用所有更改 + signup_key_doctype.save(ignore_permissions=True) + + print("Successfully created DocType 'Signup Key' with fields: key, email, used, expires_on.") + + except Exception as e: + frappe.log_error(title="Failed to Create Signup Key DocType", message=frappe.get_traceback()) + print(f"Error creating DocType 'Signup Key': {str(e)}") + +if __name__ == "__main__": + frappe.connect() + create_signup_key_doctype() + frappe.db.commit() + frappe.destroy() \ No newline at end of file diff --git a/sunderer_app/sunderer/__init__.py b/sunderer_app/sunderer/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sunderer_app/sunderer/doctype/__init__.py b/sunderer_app/sunderer/doctype/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sunderer_app/templates/__init__.py b/sunderer_app/templates/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sunderer_app/templates/pages/__init__.py b/sunderer_app/templates/pages/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/sunderer_app/templates/pages/sundererapp/index.html b/sunderer_app/templates/pages/sundererapp/index.html new file mode 100644 index 0000000..baff332 --- /dev/null +++ b/sunderer_app/templates/pages/sundererapp/index.html @@ -0,0 +1,21 @@ + + + + + + + 决裂者终端-用户中心 + + + + +
+ + + + + + + + + \ No newline at end of file diff --git a/sunderer_app/templates/pages/sundererapp/sundererapp.py b/sunderer_app/templates/pages/sundererapp/sundererapp.py new file mode 100644 index 0000000..4451693 --- /dev/null +++ b/sunderer_app/templates/pages/sundererapp/sundererapp.py @@ -0,0 +1,11 @@ +# templates/pages/sundererapp/sundererapp.py +import frappe +from frappe import _ + +def get_context(context): + """ + SPA 路由处理逻辑。 + 由于 hooks.py 将路由映射到这里,且模板文件名为 sundererapp.html, + Frappe 会自动查找 sundererapp/sundererapp.html 作为模板。 + """ + pass # 保持简单,让 Frappe 自动渲染模板 \ No newline at end of file diff --git a/sunderer_app/utils.py b/sunderer_app/utils.py new file mode 100644 index 0000000..b22f0f9 --- /dev/null +++ b/sunderer_app/utils.py @@ -0,0 +1,6 @@ +# sunderer_app/utils.py +import frappe + +def update_website_context(context): + context["brand_html"] = "Sunderer" + # 其他上下文覆盖 \ No newline at end of file diff --git a/sunderer_app/www/IncreaseAcc/index.html b/sunderer_app/www/IncreaseAcc/index.html new file mode 100644 index 0000000..da7f5f8 --- /dev/null +++ b/sunderer_app/www/IncreaseAcc/index.html @@ -0,0 +1,20 @@ + + + + + + + 决裂者终端 - 完成账户注册 + + + + + +
+ + + + + + + \ No newline at end of file diff --git a/sunderer_app/www/login/index.html b/sunderer_app/www/login/index.html new file mode 100644 index 0000000..9aef770 --- /dev/null +++ b/sunderer_app/www/login/index.html @@ -0,0 +1,14 @@ + + + + + + + 决裂者终端用户中心 + + + + +
+ + diff --git a/sunderer_app/www/sundererapp/index.html b/sunderer_app/www/sundererapp/index.html new file mode 100644 index 0000000..baff332 --- /dev/null +++ b/sunderer_app/www/sundererapp/index.html @@ -0,0 +1,21 @@ + + + + + + + 决裂者终端-用户中心 + + + + +
+ + + + + + + + + \ No newline at end of file