diff --git a/Yunzai/plugins/Guoba-Plugin/.gitignore b/Yunzai/plugins/Guoba-Plugin/.gitignore deleted file mode 100644 index d13c8cf6d671b8f3ba3ed38db0954bcd67b82328..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/.gitignore +++ /dev/null @@ -1,124 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next -out - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* -/.idea/ - -# Guoba Ingored -/lib/test.js -/lib/v2-js/* -/config/* -/test/ -/server/static/preload diff --git a/Yunzai/plugins/Guoba-Plugin/CHANGELOG.md b/Yunzai/plugins/Guoba-Plugin/CHANGELOG.md deleted file mode 100644 index 502ac52da0afd29992b05e3e286b41247cbc7951..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/CHANGELOG.md +++ /dev/null @@ -1,4 +0,0 @@ -# 1.0.0 - -* 嗨害嗨,这是第一个版本呢 -* 哦吼吼`吼吼吼`吼吼吼 \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/LICENSE b/Yunzai/plugins/Guoba-Plugin/LICENSE deleted file mode 100644 index f288702d2fa16d3cdf0035b15a9fcbc552cd88e7..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/LICENSE +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 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 General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is 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. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - 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. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - 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 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. Use with the GNU Affero General Public License. - - 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 Affero 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 special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU 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 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 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 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 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 General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - 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 GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/Yunzai/plugins/Guoba-Plugin/README.md b/Yunzai/plugins/Guoba-Plugin/README.md deleted file mode 100644 index 49561fb5177675c5c380585e74f906d713e62ddb..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/README.md +++ /dev/null @@ -1,117 +0,0 @@ -# Guoba-Plugin - -`Guoba-Plugin`是`Yunzai-Bot`的扩展插件,主要提供后台管理界面。 - -> 管理面板仅支持V3版本的Yunzai;V2版本Yunzai仅支持迁移至V3功能。 - -具体功能可在安装插件后,通过发送`#锅巴帮助`来进行查看。 - -## 已实现的功能 - -- [x] 主人登录 -- [x] 更新插件 -- [x] 自动升级 -- [x] 配置文件管理 -- [x] plugin插件管理 - - [x] plugin插件配置 -- [x] 编辑喵喵帮助 [@realhuhu](https://github.com/realhuhu) -- [x] V2云崽丝滑迁移至V3([视频教程](https://www.bilibili.com/video/BV1fP411T7KM)) - -[TODO代办](https://gitee.com/guoba-yunzai/resources/blob/master/other/TODO.md) - -## 安装插件 - -#### 第 1 步:下载插件 - -在云崽根目录下打开终端,运行: - -* 使用 Gitee -``` bash -git clone --depth=1 https://gitee.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/ -``` - -* 使用 Github -``` bash -git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/ -``` - -> 注:根据你的网络情况选择不同的仓库地址,在国内使用Gitee相对稳定 - -#### 第 2 步:安装依赖 - -##### 方式1:采用 pnpm - -> 注:如果你不是通过`pnpm`安装的云崽,那么请【**不要**】使用此方式,请看`方式2` - -如果你是使用`pnpm`安装的云崽,那么只需要在云崽根目录下运行此命令即可: - -```bash -pnpm install --filter=guoba-plugin -``` - -> 注:请务必直接复制提供的命令,否则可能会导致依赖丢失的情况,若发生需自行重新安装。
-> `--filter=guoba-plugin`:只安装`guoba-plugin`下的依赖,其他依赖不处理,防止丢失。 - -##### 方式2:采用 npm 或 cnpm - -如果是使用`npm`或`cnpm`等其他依赖安装工具,需要手动安装以下依赖: - -```bash -npm install express multer body-parser jsonwebtoken -``` - -如果以上命令执行失败,可尝试使用`cnpm`进行安装,只需将开头的`npm`替换成`cnpm`即可。 - -> 注:cnpm需要单独安装,已安装的可以忽略,安装命令如下:
-> `npm install cnpm -g --registry=https://registry.npmmirror.com` - -#### 第 3 步:运行插件 - -依赖安装完毕之后,直接运行即可,默认运行端口号是:50831 - -> 可在 config/application.yaml 中修改 - -启动完成之后,可以在控制台中看到网页地址,复制到浏览器中即可访问。 - -如果访问不到,请发送`#锅巴帮助`指令获取帮助。 - -## 更新插件 - -一般会自动更新,如需手动更新,请发送`#锅巴更新`指令 - -# 功能预览 - -- 主界面 - ![001](./resources/images/readme/001.png) - -- 查看插件README - ![002](./resources/images/readme/002.png) - -- 基础配置 - ![003](./resources/images/readme/003.png) - -- 群组配置 - ![004](./resources/images/readme/004.png) - -- 编辑喵喵帮助 - ![005](./resources/images/readme/005.png) - -# 免责声明 - -1. 功能仅限内部交流与小范围使用,严禁将Guoba-Plugin用于任何商业用途或盈利 -2. 图片与其他素材均来自于网络,仅供交流学习使用,如有侵权请联系,会立即删除 - -# 其他 - -- 最后求个个star或者[爱发电](https://afdian.net/a/zolay-poi) - 你的支持是维护本项目的动力~ - -* Yunzai-Bot - - [gitee](https://gitee.com/Le-niao/Yunzai-Bot) - - [github](https://github.com/Le-niao/Yunzai-Bot) -* Yunzai插件索引 - - [gitee](https://gitee.com/yhArcadia/Yunzai-Bot-plugins-index) - - [github](https://github.com/yhArcadia/Yunzai-Bot-plugins-index) -* Miao-Plugin - - [gitee](https://github.com/yoimiya-kokomi/miao-plugin) - - [github](https://github.com/yoimiya-kokomi/miao-plugin) diff --git a/Yunzai/plugins/Guoba-Plugin/apps/helper.js b/Yunzai/plugins/Guoba-Plugin/apps/helper.js deleted file mode 100644 index 28bbdb234573da8d4a4b17e4619056f4d4263a45..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/apps/helper.js +++ /dev/null @@ -1,62 +0,0 @@ -import path from 'path' -import {cfg, _paths} from "#guoba.platform"; -import {sendToMaster} from '#guoba.utils' - -export class GuobaHelp extends plugin { - - constructor(e) { - super({ - name: '锅巴帮助', - dsc: '锅巴插件帮助', - event: 'message', - priority: 100, - rule: [ - { - reg: '^#?锅巴(帮助|菜单|说明|功能|指令|命令|使用说明|help)$', - fnc: 'getHelp', - permission: 'master', - }, - { - reg: '^#锅巴重启$', - fnc: 'restart', - permission: 'master', - }, - ], - }) - } - - async init() { - // 引导用户进行配置 - this.firstGuide() - - } - - async getHelp() { - let msg = [ - '锅巴帮助:\n' + - 'https://gitee.com/guoba-yunzai/guoba-plugin/wikis/Home' - ] - return this.e.reply(msg) - } - - async restart() { - if (Guoba && Guoba.reload) { - await Guoba.reload() - return this.e.reply('锅巴重启成功~') - } else { - return this.e.reply('奇怪,服务似乎并没有启动……') - } - } - - // 首次安装锅巴时的引导 - async firstGuide() { - if (!cfg.get('base.guide')) { - return - } - cfg.set('base.guide', false) - sendToMaster([ - segment.image(path.join(_paths.pluginResources, 'images/help.jpg')) - ]) - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/apps/login.js b/Yunzai/plugins/Guoba-Plugin/apps/login.js deleted file mode 100644 index b36370709ab972bbe213ae55b7d4b336e8f6c336..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/apps/login.js +++ /dev/null @@ -1,53 +0,0 @@ -import {autowired} from "#guoba.framework"; -import {makeForwardMsg} from '#guoba.utils' - -export class GuobaLogin extends plugin { - - loginService = autowired('loginService') - - constructor(e) { - super({ - name: '锅巴登录', - dsc: '锅巴快捷登录', - event: 'message', - priority: 100, - rule: [ - { - reg: '^#?锅巴(登录|登陆)$', - fnc: 'login', - }, - ], - }, e) - } - - async login() { - if (!this.e.isMaster) return false - if (this.e.isGroup) { - this.e.reply('请私聊使用锅巴~') - return true - } - let webAddress - try { - webAddress = await this.loginService.setQuickLogin(this.e.user_id) - } catch (e) { - console.error(e) - return this.reply('锅巴服务启动失败,可能是端口号占用,或者依赖没有安装完整,请发送“#锅巴帮助”获取相关帮助信息。') - } - let {custom, local, remote} = webAddress - let message = [`欢迎回来主人~\n这是您的登录地址:`] - if (custom && custom.length > 0) { - message.push(`自定义地址:\n` + custom.join('\n')) - } - if (local) { - let hosts = local.length > 0 ? local.join('\n') : '获取失败……' - message.push(`内网地址:\n` + hosts) - } - if (remote) { - let hosts = remote.length > 0 ? remote.join('\n') : '获取失败……' - message.push(`外网地址:\n` + hosts) - } - message.push(`临时令牌3分钟内有效(请勿轻易告知他人哦),使用过后会立即失效,若登录成功将会在使用者的浏览器上生成个24小时内有效的令牌,过期后需要重新登录~`) - return this.reply(await makeForwardMsg(this.e, message)) - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/apps/update.js b/Yunzai/plugins/Guoba-Plugin/apps/update.js deleted file mode 100644 index 9700ad5123cf0484048975e3931b15e986a6358a..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/apps/update.js +++ /dev/null @@ -1,238 +0,0 @@ -import YAML from 'yaml' -import fetch from 'node-fetch' -import {exec} from 'child_process' -import {cfg, _paths, _version, Constant} from '#guoba.platform' -import {sendToMaster} from '#guoba.utils' -import {compareVersions} from '#guoba.libs' - -const _STATUS = { - FAIL: 'FAIL', - SUCCESS: 'SUCCESS', - CANCEL: 'CANCEL', - NO_UPDATE: 'NO_UPDATE', - HAS_UPDATE: 'HAS_UPDATE', - GIT_NO_UPDATE: 'GIT_NO_UPDATE', -} - -let isChecked = false - -/** - * 锅巴更新 - */ -export class GuobaUpdate extends plugin { - constructor(e) { - super({ - name: '锅巴更新', - dsc: '锅巴更新、升级', - event: 'message', - priority: 100, - rule: [ - { - reg: '^#锅巴版本$', - fnc: 'getVersion', - }, - { - reg: '^#锅巴(强制)?(更新|升级|update)$', - fnc: 'doUpdate', - permission: 'master', - }, - ], - }) - // 创建定时任务 - this.task = { - // 每天的凌晨4点执行 - cron: '0 0 4 * * ?', - name: '锅巴自动更新任务', - fnc: this.doUpdateTask.bind(this), - } - // 立即执行一次检查更新 - if (!isChecked) { - isChecked = true - setTimeout(this.doCheckUpdate.bind(this, true), 1500) - } - } - - async getVersion() { - return this.reply(`[Guoba] 当前版本:${_version}`) - } - - async doUpdate() { - let isForce = this.e.msg.includes('强制') - let response - if (!isForce) { - this.reply(`[Guoba] 正在检查更新,请稍候……`) - response = await this.doAutoUpdate() - } else { - this.reply(`[Guoba] 正在检查强制更新,请稍候……`) - response = await this.doGitPull(true) - } - let {status, message} = response - if (status === _STATUS.NO_UPDATE || status === _STATUS.GIT_NO_UPDATE) { - return this.reply(`[Guoba] 已经是最新版本啦`) - } else if (status === _STATUS.SUCCESS) { - return this.reply(`[Guoba] ${message}`) - } else { - if (message) { - return this.reply(`[Guoba] 更新失败!\n${message}`) - } - logger.error(`[Guoba] 更新失败:`, {status, message}) - return this.reply(`[Guoba] 更新失败…… 请查看日志获取更多信息`) - } - } - - // 是否允许检查更新 - get allowCheckUpdate() { - return cfg.get('base.checkUpdate') === true - } - - async doUpdateTask() { - if (!this.allowCheckUpdate) { - return - } - logger.mark(`[Guoba] 开始执行自动更新任务……`) - const {status, remote, message} = await this.doAutoUpdate(true) - if (status === _STATUS.CANCEL) { - logger.mark(`[Guoba] 自动更新任务执行完毕,没有发现新版本`) - } else if (status === _STATUS.NO_UPDATE) { - logger.mark(`[Guoba] 自动更新任务执行完毕,没有发现新版本`) - } else if (status === _STATUS.SUCCESS) { - let msg = `[Guoba] 自动${message}` - if (remote.needRestart) { - logger.mark(`[Guoba] 自动更新任务执行完毕,需要重启才能生效`) - } else { - logger.mark(`[Guoba] 自动更新任务执行完毕,无需重启即可生效`) - } - return sendToMaster(msg) - } else { - logger.mark(`[Guoba] 自动更新任务执行完毕,更新失败:`, {status, message}) - } - } - - async doAutoUpdate(isTask = false) { - let response = await this.doCheckUpdate() - let {status, remote} = response - if (status === _STATUS.NO_UPDATE || status === _STATUS.CANCEL) { - return response - } - // 需要重启的,自动更新模式下不进行git pull - if (remote.needRestart && isTask) { - return { - status: _STATUS.SUCCESS, - remote, - message: '检查更新发现新版本,但是需要重启,本次不进行自动升级,请手动升级~' - } - } - // 不是最新版本,执行git pull更新 - response = await this.doGitPull() - status = response.status - if (status === _STATUS.GIT_NO_UPDATE) { - return {status: _STATUS.NO_UPDATE, remote} - } - // 更新成功 - if (status === _STATUS.SUCCESS) { - // needRestart 的意思是需要重启云崽 - // false即不需要重启云崽,可直接重载锅巴服务 - // true即需要重启云崽,此时重载锅巴服务可能会出错,故不重载锅巴服务 - if (!remote.needRestart) { - Guoba && Guoba.reload && Guoba.reload() - } - const restartMsg = '本次更新' + (remote.needRestart ? '需要重启才能生效' : '无需重启即可生效') - const message = `更新成功,当前版本:${remote.version}\n${restartMsg},更新日志:\n` - + remote.updateLogs.map((log, index) => `${index + 1}. ${log}`).join('\n') - return {status: _STATUS.SUCCESS, remote, message} - } - return {...response, remote} - } - - /** - * 检查更新 - * @param tell 是否给master发送消息 - */ - async doCheckUpdate(tell = false) { - if (!this.allowCheckUpdate) { - return {status: _STATUS.CANCEL, message: '已取消'} - } - const remotes = await this.getRemoteVersion() - if (!remotes || !remotes[0]) { - return {status: _STATUS.FAIL, message: '获取远程版本信息失败'} - } - const remote = remotes[0] - // 判断远程版本是否小于等于本地版本 - if (compareVersions.compare(remote.version, _version, '<=')) { - return {status: _STATUS.NO_UPDATE, remote} - } - // 判断是否已提醒过 - const checkUpdateRedisKey = Constant.REDIS_PREFIX + 'check-update-version' - const checkVersion = await redis.get(checkUpdateRedisKey) - // 一个版本只提醒一次 - if (remote.version !== checkVersion) { - tell && sendToMaster(`[Guoba] 发现新版本:${remote.version},请发送“#锅巴更新”进行更新`) - } - // 判断是否需要重启,不仅要判断当前远程版本,还要判断最近一次需要重启的远程版本是否大于本地版本 - for (let item of remotes) { - if (!item.needRestart) continue - if (compareVersions.compare(item.version, _version, '>')) { - remote.needRestart = true - break - } - } - await redis.set(checkUpdateRedisKey, remote.version) - return {status: _STATUS.HAS_UPDATE, remote} - } - - /** - * 获取远程版本信息 - * @return {Promise<{ - * version: string, - * needRestart: boolean, - * releaseTime: string, - * updateLogs: string[], - * }[]>} - */ - async getRemoteVersion() { - let url = 'https://gitee.com/guoba-yunzai/resources/raw/master/yaml/version.yaml' - let response = await fetch(url) - if (response.status !== 200) { - logger.warn(`[Guoba] 获取最新版本信息失败,status: ${response.status}`) - return null - } - let rawText = await response.text() - try { - return YAML.parse(rawText) - } catch (e) { - logger.error(`[Guoba] 解析最新版本信息失败`) - console.error(e) - return null - } - } - - /** - * 执行git pull更新 - * @param isForce 是否强制更新 - * @return {Promise<{status: number, message: string}>} - */ - doGitPull(isForce = false) { - return new Promise((resolve) => { - let command = 'git pull' - if (isForce) { - command = 'git checkout . && git pull' - } else { - } - exec(command, {cwd: _paths.pluginRoot}, function (error, stdout, stderr) { - if (error) { - let message = 'Error code: ' + error.code + '\n' + error.stack + '\n 请稍后重试。' - resolve({status: _STATUS.FAIL, message}) - return - } - if (/Already up[ -]to[ -]date/.test(stdout)) { - resolve({status: _STATUS.GIT_NO_UPDATE}) - return - } - resolve({ - status: _STATUS.SUCCESS, - message: '更新成功' + (isForce ? ',由于是强制更新,本次更新需要重启才能生效' : '') - }); - }) - }) - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/apps/v2-adapter.js b/Yunzai/plugins/Guoba-Plugin/apps/v2-adapter.js deleted file mode 100644 index 109bf62eb0fd4f9d9b9d0e04f7e793d5246708aa..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/apps/v2-adapter.js +++ /dev/null @@ -1,34 +0,0 @@ -import lodash from 'lodash' -import {v2Apps} from '../utils/adapter/loadV2.js' - -/** - * 锅巴兼容V2 - */ -export class GuobaV2Adapter extends plugin { - constructor(e) { - super({ - name: '锅巴:兼容V2', - dsc: '兼容V2的单JS插件', - event: 'message', - priority: 0, - rule: [], - // log: false, - }) - } - - async accept(e) { - for (const v2App of v2Apps) { - let noCheck = !v2App.reg || v2App.reg === 'noCheck' - let doLog = () => logger.mark(`[Guoba_V2][${v2App.key}] ${lodash.truncate(e.msg, {length: 12})}`) - if (noCheck || new RegExp(v2App.reg, 'i').test(e.msg)) { - noCheck || doLog() - let res = await v2App.handler(e) - if (res) { - noCheck && doLog() - return 'return' - } - } - } - } - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/components/Changelog.js b/Yunzai/plugins/Guoba-Plugin/components/Changelog.js deleted file mode 100644 index f0454bbec179480dde34590bfb43ce6dd190faa0..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/components/Changelog.js +++ /dev/null @@ -1,72 +0,0 @@ -import fs from 'fs' -import path from 'path' -import lodash from 'lodash' -import {_paths} from '#guoba.platform' - -const _logPath = path.join(_paths.pluginRoot, 'CHANGELOG.md') - -let logs = {} -let changelogs = [] -let currentVersion -let versionCount = 4 - -const getLine = function (line) { - line = line.replace(/(^\s*\*|\r)/g, '') - line = line.replace(/\s*`([^`]+`)/g, '$1') - line = line.replace(/`\s*/g, '') - line = line.replace(/\s*\*\*([^\*]+\*\*)/g, '$1') - line = line.replace(/\*\*\s*/g, '') - line = line.replace(/ⁿᵉʷ/g, '') - return line -} - -try { - if (fs.existsSync(_logPath)) { - logs = fs.readFileSync(_logPath, 'utf8') || '' - logs = logs.split('\n') - - let temp = {} - let lastLine = {} - lodash.forEach(logs, (line) => { - if (versionCount <= -1) { - return false - } - let versionRet = /^#\s*([0-9\\.~\s]+?)\s*$/.exec(line) - if (versionRet && versionRet[1]) { - let v = versionRet[1].trim() - if (!currentVersion) { - currentVersion = v - } else { - changelogs.push(temp) - if (/0\s*$/.test(v) && versionCount > 0) { - versionCount = 0 - } else { - versionCount-- - } - } - - temp = { - version: v, - logs: [], - } - } else { - if (!line.trim()) { - return - } - if (/^\*/.test(line)) { - lastLine = { - title: getLine(line), - logs: [], - } - temp.logs.push(lastLine) - } else if (/^\s{2,}\*/.test(line)) { - lastLine.logs.push(getLine(line)) - } - } - }) - } -} catch (e) { - // do nth -} - -export {currentVersion, changelogs} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/config/application.yaml b/Yunzai/plugins/Guoba-Plugin/config/application.yaml deleted file mode 100644 index 88302309b8d036d780fd89c74edba9e28e2c0de9..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/config/application.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# 基础设置 -base: - # 获取天气的城市 - city: 北京 - guide: false - # 是否要自动检查更新 - checkUpdate: true - -# 服务器配置 -server: - # 启动地址(仅用于控制台输出) - # auto 为自动获取IP地址 - host: auto - # 启动端口号 - port: 7860 - # 是否需要拼接端口号 - splicePort: true - # 网站ICP备案号 - ICPNo: '' - -# jwt配置 -jwt: - # JWT 秘钥(随机生成,非必要请勿修改!) - secret: "1z9echota10kq3vda2mu7s1fd4n8o8uo" diff --git a/Yunzai/plugins/Guoba-Plugin/defSet/application.yaml b/Yunzai/plugins/Guoba-Plugin/defSet/application.yaml deleted file mode 100644 index c2031049c3a5feeb97468d038fc37d2c48c7dd1f..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/defSet/application.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# 基础设置 -base: - # 获取天气的城市 - city: 北京 - guide: true - # 是否要自动检查更新 - checkUpdate: true - -# 服务器配置 -server: - # 启动地址(仅用于控制台输出) - # auto 为自动获取IP地址 - host: auto - # 启动端口号 - port: 50831 - # 是否需要拼接端口号 - splicePort: true - # 网站ICP备案号 - ICPNo: '' - -# jwt配置 -jwt: - # JWT 秘钥(随机生成,非必要请勿修改!) - secret: "" diff --git a/Yunzai/plugins/Guoba-Plugin/framework/README.md b/Yunzai/plugins/Guoba-Plugin/framework/README.md deleted file mode 100644 index 8ec022c8c1d14b5a995860c9ea2150399c5b0891..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/README.md +++ /dev/null @@ -1,5 +0,0 @@ -## Guoba Framework 说明 - -* nodejs 后端开发框架 -* 基于 express 框架 -* 写法及命名参考 spring boot diff --git a/Yunzai/plugins/Guoba-Plugin/framework/index.js b/Yunzai/plugins/Guoba-Plugin/framework/index.js deleted file mode 100644 index 74359d532040dcacdf4a16b79b99c3438ef8416e..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/index.js +++ /dev/null @@ -1,17 +0,0 @@ -/* -------------- 公共常量 -------------- */ - -/* -------------- 公共组件 -------------- */ -export {autowired, instancesMap} from './src/helper/injection.js'; -export {default as Result} from './src/components/Result.js'; -export {default as Pager} from './src/components/Pager.js' -export {default as YamlReader} from './src/components/YamlReader.js' -export {default as GuobaError} from './src/components/GuobaError.js' - -/* -------------- 框架核心 -------------- */ -export {default as Service} from './src/core/Service.js' -export {default as Preload} from './src/core/Preload.js' -export {default as Controller} from './src/core/Controller.js' -export {default as RestController} from './src/core/RestController.js' -export {default as Decorator} from './src/core/Decorator.js' -export {default as Interceptor} from './src/core/Interceptor.js' -export {default as GuobaApplication} from './src/GuobaApplication.js' diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/GuobaApplication.js b/Yunzai/plugins/Guoba-Plugin/framework/src/GuobaApplication.js deleted file mode 100644 index 4b022e18af1ace142c36675113a0440d470c3108..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/GuobaApplication.js +++ /dev/null @@ -1,97 +0,0 @@ -import express from 'express' -import {useHelper} from './loader/loadHelper.js' -import {usePreload} from './loader/loadPreload.js' -import {useDecorator} from "./loader/loadDecorator.js"; -import {useComponents} from './loader/loadComponents.js' - -/** - * @typedef PreloadType - * @property {Function} hook 预加载文件路径 - * @property {String} path 预加载文件路径 - * @property {String} code 预加载代码 - * @property {String} staticPath 静态资源路径 - */ - -/** - * @typedef DecoratorType - * @property {String} path 装饰器路径 - * @property {*[]} args 参数 - */ - -/** - * @typedef GuobaAppArgs - * @property {Boolean} hotReload TODO 是否热加载 - * @property {Number} port 服务端口 - * @property {String} basePath 项目根路径 - * @property {String} staticPath 静态资源路径 - * @property {String[]} componentPaths 组件路径 - 包括 controller、service等 - * @property {PreloadType[]} preloads 预加载配置 - * @property {DecoratorType[]} decorators 全局预设装饰器 - * @property {Object} overrides 重新默认逻辑 - * - */ - -/** - * Guoba Application - * @class GuobaApplication - */ -export default class GuobaApplication { - - /** @type GuobaAppArgs */ - _args - /** @type Express */ - app - /** @type http.Server */ - server - - /** - * 启动应用 - * @param {GuobaAppArgs} args 应用配置 - * @returns {GuobaApplication} - */ - static async run(args) { - const app = express() - const server = await getListenFn(args)(app, args.port); - const application = new GuobaApplication(args, app, server); - - // 预加载 - await usePreload(app, args); - // 辅助工具 - useHelper(app, args.staticPath); - // 预装饰器配置 - app.globalDecorators = await useDecorator(app, args); - // 加载全部组件 - await useComponents(app, args); - - return application - } - - /** - * 启动应用 - * - * @param {GuobaAppArgs} args 应用配置 - * @param app express创建的app - * @param server app创建监听之后的server - * @returns {GuobaApplication} - */ - constructor(args, app, server) { - this._args = args; - this.app = app - this.server = server - } - -} - -/** 获取实际的监听函数 */ -function getListenFn(args) { - const listen = args?.overrides?.listen; - if (typeof listen === "function") { - return listen - } - return defaultListen -} - -/** 默认的监听函数 */ -function defaultListen(app, port) { - return app.listen(port) -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/components/GuobaError.js b/Yunzai/plugins/Guoba-Plugin/framework/src/components/GuobaError.js deleted file mode 100644 index 4033d1471bf280f6841238fafe7226c11e561af4..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/components/GuobaError.js +++ /dev/null @@ -1,18 +0,0 @@ -/** 全局错误处理 */ -export default class GuobaError extends Error { - - constructor(message) { - // 允许返回特殊消息,需传递数组,例如 [segment.image()] - if (Array.isArray(message)) { - super() - this._message = message - } else { - super(message); - } - } - - get message() { - return this._message ? this._message : super.message; - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/components/Pager.js b/Yunzai/plugins/Guoba-Plugin/framework/src/components/Pager.js deleted file mode 100644 index 05933eee107525eed0f832308140809ee46bed74..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/components/Pager.js +++ /dev/null @@ -1,59 +0,0 @@ -/** 分页器 */ -export default class Pager { - - constructor(list, pageNum, pageSize) { - this.$list = list - this.$pageNum = pageNum - this.$pageSize = pageSize - } - - get pageNum() { - return this.$pageNum - } - - set pageNum(pageNum) { - this.$pageNum = pageNum - } - - get pageSize() { - return this.$pageSize - } - - set pageSize(pageSize) { - this.$pageSize = pageSize - } - - /** 根据当前分页条件,计算出的数据 */ - get records() { - return [...this.$list].splice(this.offset, this.$pageSize) - } - - /** 计算当前分页偏移量 */ - get offset() { - let current = this.$pageNum - if (current <= 1) { - return 0 - } - return Math.max((current - 1) * this.$pageSize, 0) - } - - /** 最大页码 */ - get maxNum() { - return Math.ceil(this.total / this.$pageSize) - } - - /** 总行数 */ - get total() { - return this.$list.length - } - - toJSON() { - return { - pageNum: this.$pageNum, - pageSize: this.$pageSize, - total: this.total, - maxNum: this.maxNum, - records: this.records, - } - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/components/Result.js b/Yunzai/plugins/Guoba-Plugin/framework/src/components/Result.js deleted file mode 100644 index 79bd6ec6a953c5f2b3ea5c5aea1e9f927f981fa7..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/components/Result.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * 全局返回结果 - * - * @class - * @property {Function} ok 成功 - * @property {Function} error 失败 - * @property noLogin 未登录 - * @property noAuth 无权限 - * @property notFound 未找到 - * @property unrealized 尚未实现 - */ -export default class Result { - constructor(code, result, message, httpStatus = 200) { - this.code = code - this.result = result - this.message = message - this.httpStatus = httpStatus - } - - /** 无返回值 */ - static VOID = Symbol(); - /** 尚未实现错误码 */ - static ERR_CODE_501 = Symbol(); - - /** - * 成功 - * @static - * @param result 返回结果 - * @param message 返回消息 - * @returns {Result} - */ - static ok(result, message = 'ok') { - return new Result(0, result, message) - } - - /** - * 错误 - * @static - * @returns {Result} - */ - static error(...args) { - switch (args.length) { - // Result.error(code) - // Result.error(reason) - case 1: - if (typeof args[0] === 'number') { - return new Result(args[0], {}, 'error') - } else { - return new Result(-1, {}, args[0]) - } - // Result.error(code, reason) - // Result.error(reason, result) - // Result.error(reason, httpStatus) - case 2: - if (typeof args[0] === 'number') { - return new Result(args[0], {}, args[1] ?? 'error') - } else if (typeof args[1] === 'number') { - return new Result(-1, {}, args[0], args[1]) - } else { - return new Result(-1, args[1], args[0]) - } - // Result.error(code, reason, result) - // Result.error(reason, result, httpStatus) - case 3: - if (typeof args[0] === 'number') { - return new Result(args[0], args[1], args[2]) - } else { - return new Result(-1, args[0], args[1], args[2]) - } - // Result.error(code, reason, result, httpStatus) - case 4: - return new Result(args[0], args[1], args[2], args[3]) - } - } - - /** - * 尚未登录 - * - * @returns {Result} - */ - static noLogin() { - return new Result(401, null, 'Token失效或尚未登录', 401) - } - - /** - * 尚未授权 - * - * @returns {Result} - */ - static noAuth() { - return new Result(403, null, '没有权限', 403) - } - - /** - * 404未找到 - * - * @returns {Result} - */ - static notFound() { - return new Result(404, null, '404 Not Found', 404) - } - - /** - * 功能尚未实现 - * - * @returns {Result} - */ - static unrealized() { - return new Result(501, null, '该功能在当前版本中尚未实现', 501) - } - - get isOk() { - return this.code === 0 - } - - toJSON() { - return { - ok: this.isOk, - code: this.code, - result: this.result, - message: this.message, - } - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/components/YamlReader.js b/Yunzai/plugins/Guoba-Plugin/framework/src/components/YamlReader.js deleted file mode 100644 index 82ffb3797db6d34fddacd2e690ca12a59b241d03..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/components/YamlReader.js +++ /dev/null @@ -1,117 +0,0 @@ -import fs from 'fs' -import YAML from 'yaml' -import lodash from 'lodash' -import chokidar from 'chokidar' - -export default class YamlReader { - - // 配置文件数字key - static CONFIG_INTEGER_KEY = 'INTEGER__' - - /** - * 读写yaml文件 - * - * @param yamlPath yaml文件绝对路径 - * @param isWatch 是否监听文件变化 - */ - constructor(yamlPath, isWatch = false) { - this.yamlPath = yamlPath - this.isWatch = isWatch - this.initYaml() - } - - initYaml() { - try { - // parseDocument 将会保留注释 - this.document = YAML.parseDocument(fs.readFileSync(this.yamlPath, 'utf8')) - } catch (error) { - throw error - } - if (this.isWatch && !this.watcher) { - this.watcher = chokidar.watch(this.yamlPath).on('change', () => { - if (this.isSave) { - this.isSave = false - return - } - this.initYaml() - }) - } - } - - get jsonData() { - if (!this.document) { - return null - } - return this.document.toJSON() - } - - has(keyPath) { - return this.document.hasIn(keyPath.split('.')) - } - - get(keyPath) { - return lodash.get(this.jsonData, keyPath) - } - - set(keyPath, value) { - this.document.setIn(keyPath.split('.'), value) - this.save() - } - - delete(keyPath) { - this.document.deleteIn(keyPath.split('.')) - this.save() - } - - /** - * 设置 document 的数据并保存(递归式) - * @param data 要写入的数据 - */ - setData(data) { - this.setDataRecursion(data, []) - this.save() - } - - /** - * 递归式设置数据,但不保存 - * @param data - * @param parentKeys - */ - setDataRecursion(data, parentKeys) { - if (Array.isArray(data)) { - this.document.setIn(this.mapParentKeys(parentKeys), data) - } else if (typeof data === 'object' && data !== null) { - for (const [key, value] of Object.entries(data)) { - this.setDataRecursion(value, parentKeys.concat([key])) - } - } else { - parentKeys = this.mapParentKeys(parentKeys) - this.document.setIn(parentKeys, data) - } - } - - // 将数字key转为number类型,防止出现引号 - mapParentKeys(parentKeys) { - return parentKeys.map((k) => { - if (k.startsWith(YamlReader.CONFIG_INTEGER_KEY)) { - return Number.parseInt(k.replace(YamlReader.CONFIG_INTEGER_KEY, '')) - } - return k - }) - } - - // 彻底删除某个key - deleteKey(keyPath) { - let keys = keyPath.split('.') - keys = this.mapParentKeys(keys) - this.document.deleteIn(keys) - this.save() - } - - // 保存yaml文件,写入文件 - save() { - this.isSave = true - let yaml = this.document.toString() - fs.writeFileSync(this.yamlPath, yaml, 'utf8') - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Controller.js b/Yunzai/plugins/Guoba-Plugin/framework/src/core/Controller.js deleted file mode 100644 index 7167e13a8ee9eb5a1446612be778ca52532d2c97..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Controller.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * 控制器基类 - */ -export default class Controller { - constructor(app) { - this.app = app - this.created() - } - - created() { - } - - /** 加载优先级 */ - static priority = 1000 - -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Decorator.js b/Yunzai/plugins/Guoba-Plugin/framework/src/core/Decorator.js deleted file mode 100644 index ac740c218f191a988b03769caa8478d2dd3f6257..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Decorator.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * 装饰器(伪)基类 - */ -export default class Decorator { - - constructor(config) { - this.config = config - } - - execute() { - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Interceptor.js b/Yunzai/plugins/Guoba-Plugin/framework/src/core/Interceptor.js deleted file mode 100644 index 0149d3d497fd2901b2a952b42e6bb13ca652559d..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Interceptor.js +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 拦截器基类 - */ -export default class Interceptor { - - constructor(app) { - this.app = app - this.app.use(this.handler.bind(this)) - } - - handler() { - - } - - /** 加载优先级 */ - static priority = 1000 - -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Preload.js b/Yunzai/plugins/Guoba-Plugin/framework/src/core/Preload.js deleted file mode 100644 index bc1e58be190a2e7425146f8b6313204520aad8d2..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Preload.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * preload:预加载js - */ -export default class Preload { - constructor(app, preloadName, scriptSrc) { - this.app = app - this.preloadName = preloadName - this.scriptSrc = scriptSrc - this.created() - } - - created() { - } - - contentCache = null - - async getPreloadContent() { - if (this.contentCache) { - return this.contentCache - } - return await this.regenerateContent() - } - - async regenerate() { - this.contentCache = this.regenerateContent(); - } - - async regenerateContent() { - this.contentCache = `(function(){try{${await this.generateContent()}}` - + `catch(e){console.warn('[Guoba] preload "${this.preloadName}" error',e)}})()` - return this.contentCache - } - - createScriptTag() { - return `` - } - - /** - * 生成预加载内容 - * - * @returns {Promise | string} - */ - async generateContent() { - return '/* TODO: 请重写 generateContent 方法 */' - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/core/RestController.js b/Yunzai/plugins/Guoba-Plugin/framework/src/core/RestController.js deleted file mode 100644 index c911ec5a73700e72c432450a31746b71e08c86f7..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/core/RestController.js +++ /dev/null @@ -1,127 +0,0 @@ -import express from 'express' -import {Result, GuobaError, Controller} from "../../index.js"; - -const DEFAULT_OPTIONS = {} - -/** - * restful控制器基类 - */ -export default class RestController extends Controller { - /** - * - * @param prefix - * @param app - * @param options - */ - constructor(prefix = '/', app, options = {}) { - super(app) - this.options = Object.assign({}, DEFAULT_OPTIONS, options) - // 创建路由 - this.router = express.Router() - // 注册路由 - this.registerRouters() - this.app.use(`/api${prefix}`, this.router) - } - - /** 注册路由 */ - registerRouters() { - } - - all(path, handler, decorators) { - this.http('all', path, handler, decorators) - } - - get(path, handler, decorators) { - this.http('get', path, handler, decorators) - } - - post(path, handler, decorators) { - this.http('post', path, handler, decorators) - } - - put(path, handler, decorators) { - this.http('put', path, handler, decorators) - } - - delete(path, handler, decorators) { - this.http('delete', path, handler, decorators) - } - - /** - * 处理http请求 - * - * @param methods 请求方法 - * @param path 请求路径 - * @param handler 请求处理函数 - * @param decorators 伪装饰器(由于现版本node还不支持,所以暂时使用这种方式替代) - */ - http(methods, path, handler, decorators = []) { - let isAll = methods === 'all' - if (!isAll) { - if (!methods) throw new Error('methods is required') - methods = Array.isArray(methods) ? methods : [methods] - methods = methods.map(method => method.toUpperCase()) - } - this.router.all(path, async (req, res, next) => { - if (!isAll && !methods.includes(req.method)) { - return next() - } - let result = null - let isCalled = false - // ProceedingJoinPoint - let pjp = { - proceed: async () => { - if (!isCalled) { - try { - result = await handler.call(this, req, res) - } catch (e) { - if (e === Result.ERR_CODE_501) { - result = Result.unrealized() - } else if (e instanceof Result) { - result = e - } else if (e instanceof GuobaError) { - result = Result.error(e.message) - } else { - console.error(e) - result = Result.error(e.message || e.toString()) - } - } - isCalled = true - } - return result - }, - } - if (!Array.isArray(decorators)) { - decorators = [] - } - if (!Array.isArray(this.app.globalDecorators)) { - this.app.globalDecorators = [] - } - // 全局预装饰器 - decorators = [...this.app.globalDecorators, ...decorators] - // 执行装饰器 - for (const decorator of decorators) { - let ret = await decorator.execute(pjp, req, res) - if (ret instanceof Result) { - isCalled = true - result = ret - break - } - } - if (!isCalled) { - result = await pjp.proceed() - } - if (result != null) { - if (result instanceof Result) { - res.status(result.httpStatus) - res.json(result.toJSON()) - } else if (result === Result.VOID) { - } else { - res.send(result) - } - } else { - res.send(result) - } - }) - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Service.js b/Yunzai/plugins/Guoba-Plugin/framework/src/core/Service.js deleted file mode 100644 index fd6b4092ab218afa1725a3ae2de2739a38f24ff5..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/core/Service.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * 服务基类 - */ -export default class Service { - constructor(app) { - this.app = app - } - - static priority = 1000 -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/helper/injection.js b/Yunzai/plugins/Guoba-Plugin/framework/src/helper/injection.js deleted file mode 100644 index c1b1b5c67ac4abcf7c049d886339956b4da4b695..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/helper/injection.js +++ /dev/null @@ -1,37 +0,0 @@ -export const instancesMap = new Map() - -const proxyMap = new Map() - -/** - * 自动注入 - * @param instanceName - */ -export function autowired(instanceName) { - if (!instanceName) { - throw new Error('instanceName is required') - } - if (!proxyMap.has(instanceName)) { - proxyMap.set(instanceName, createProxy(instanceName)) - } - return proxyMap.get(instanceName) -} - -/** - * 创建只读代理对象 - * @param instanceName - */ -function createProxy(instanceName) { - return new Proxy({}, { - get(target, propKey) { - let instance = instancesMap.get(instanceName) - if (instance) { - let prop = instance[propKey] - if (typeof prop === 'function') { - return prop.bind(instance) - } - return prop - } - throw new Error(`${instanceName} is not found`) - }, - }) -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadComponents.js b/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadComponents.js deleted file mode 100644 index bc4e187c37038108eac6e5640c7d92c9fe9cd053..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadComponents.js +++ /dev/null @@ -1,43 +0,0 @@ -import lodash from 'lodash' -import {Interceptor, Service, Controller, instancesMap} from "../../index.js"; -import {loadClasses, instanceOf} from "../utils/common.js"; - -/** - * 加载所有组件 - * @param app - * @param {GuobaAppArgs} args - * @return {Promise} - */ -export async function useComponents(app, args) { - const {componentPaths} = args - if (!Array.isArray(componentPaths) && componentPaths.length === 0) { - return - } - // 加载所有class - const classes = {} - for (const componentPath of componentPaths) { - await loadClasses(componentPath, Object, classes); - } - const entries = Object.entries(classes).sort((a, b) => a[1].priority - b[1].priority) - // 数组顺序即为加载优先级 - const componentsTypes = [ - // 拦截器 - Interceptor, - // 服务 - Service, - // 控制器 - Controller - ]; - for (const type of componentsTypes) { - let i = 0 - while (i < entries.length) { - const [name, clazz] = entries[i]; - if (instanceOf(clazz, type)) { - instancesMap.set(lodash.camelCase(name), new clazz(app)) - entries.splice(i, 1); - } else { - i++ - } - } - } -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadDecorator.js b/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadDecorator.js deleted file mode 100644 index 8dd0e89a8c7c1d0e764d47b7a0646f432784eac2..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadDecorator.js +++ /dev/null @@ -1,30 +0,0 @@ -import path from "path"; -import chalk from "chalk"; -import Decorator from "../core/Decorator.js"; -import {loadClass} from "../utils/common.js"; - -/** - * 加载全局装饰器 - * @param app - * @param {GuobaAppArgs} args - * @return {Promise<*[]>} - */ -export async function useDecorator(app, args) { - const {decorators} = args - if (!Array.isArray(decorators) || decorators.length === 0) { - return [] - } - const instances = [] - for (const item of decorators) { - const importItem = await loadClass(item.path, Decorator, true); - if (importItem == null) { - continue; - } - try { - instances.push(new importItem(...(item.args ?? []))); - } catch (e) { - logger.error(`[Guoba] load decorator error: ${chalk.red(path.basename(item.path))}`, e) - } - } - return instances; -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadHelper.js b/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadHelper.js deleted file mode 100644 index d4aa560303a719b371142fc1cf9c1ed210e72f0f..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadHelper.js +++ /dev/null @@ -1,21 +0,0 @@ -import express from "express"; -import multer from 'multer' -import bodyParser from 'body-parser' - -/** - * 一些辅助工具 - * @param app - * @param staticPath - */ -export function useHelper(app, staticPath) { - // 静态资源 - app.set('views', staticPath) - app.use(express.static(staticPath)) - // parse application/json - app.use(bodyParser.json()) - // 上传文件 - const upload = multer({dest: 'data/upload_tmp/'}) - app.post('*', upload.any(), function (req, res, next) { - next() - }) -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadPreload.js b/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadPreload.js deleted file mode 100644 index 8334068917a2c15fa4efec0db2c9b63edfe57d63..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/loader/loadPreload.js +++ /dev/null @@ -1,52 +0,0 @@ -import fs from "fs"; -import path from 'path' -import chalk from 'chalk' -import {Preload} from "../../index.js"; -import {loadClass} from "../utils/common.js"; - -/** - * 依次创建页面预加载 - * @param app - * @param {GuobaAppArgs} args - */ -export async function usePreload(app, args) { - const {preloads} = args - for (const item of preloads) { - await hookAppPreloads(app, item) - } -} - -/** - * @param app - * @param {PreloadType} preload - */ -async function hookAppPreloads(app, preload) { - const importItem = await loadClass(preload.path, Preload, true); - if (importItem == null) { - return - } - let instance = null - try { - // noinspection JSValidateTypes - instance = new importItem(app) - } catch (e) { - logger.error(`[Guoba] load preload error: ${chalk.red(path.basename(preload.path))}`, e) - return - } - const reg = new RegExp(''); - app.use(async (req, res, next) => { - const flag = await preload.hook(req) - if (flag) { - // 替换tag - const tag = instance.createScriptTag() - const content = fs.readFileSync(preload.staticPath, 'utf8').replace(reg, tag) - res.send(content) - } else if (req.path === instance.scriptSrc) { - const content = await instance.getPreloadContent() - res.setHeader('Content-Type', 'text/javascript; charset=utf-8') - res.send(content) - } else { - next(); - } - }) -} diff --git a/Yunzai/plugins/Guoba-Plugin/framework/src/utils/common.js b/Yunzai/plugins/Guoba-Plugin/framework/src/utils/common.js deleted file mode 100644 index b5fee1343ca18e1d873cb27577dea8c08abf06b2..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/framework/src/utils/common.js +++ /dev/null @@ -1,95 +0,0 @@ -import fs from "fs"; -import path from "path"; -import chalk from 'chalk' - -/** - * 引入 class 资源 - * @param rootPath - * @param clazz 筛选类 - * @param classes - */ -export async function loadClasses(rootPath, clazz, classes = {}) { - let files = readdirRecursiveSync( - rootPath, - file => /\.c?js$/.test(file), - files => files.includes('.ignored_loader') - ); - for (let filePath of files) { - const tempClasses = await loadClass(filePath, clazz); - Object.assign(classes, tempClasses); - } - return classes -} - -/** - * - * @param filePath - * @param clazz - * @param onlyDefault? 是否只处理 default - * @return Promise<*> - */ -export async function loadClass(filePath, clazz, onlyDefault = false) { - const classes = {} - try { - let app = await import('file://' + filePath + '?' + Date.now()) - // 可一次性导入多个类 - for (const [key, value] of Object.entries(app)) { - if (instanceOf(value, clazz)) { - if (key === 'default' && onlyDefault) { - return value; - } - let name = key - if (name === 'default' && value?.name) { - name = value.name - } - classes[name] = value - } - } - } catch (e) { - logger.error(`[Guoba] loadClasses error: ${chalk.red(path.basename(filePath))}`, e) - } - if (onlyDefault) { - return null - } - return classes; -} - -/** - * 获取某个目录下的所有文件(返回的是绝对路径) - * - * @param rootPath - * @param include 文件名过滤器 - * @param exclude 排除器 - */ -export function readdirRecursiveSync(rootPath, include = () => true, exclude = () => false) { - let files = fs.readdirSync(rootPath) - if (exclude(files)) { - return [] - } - let ret = [] - for (let file of files) { - let filePath = path.join(rootPath, file) - let stat = fs.statSync(filePath) - if (stat.isDirectory()) { - ret = ret.concat(readdirRecursiveSync(filePath, include, exclude)); - } else if (include(file)) { - ret.push(filePath) - } - } - return ret -} - -/** - * 判断是否是某个类的实例或继承类 - * - * @param obj - * @param clazz - */ -export function instanceOf(obj, clazz) { - if (obj instanceof clazz) { - return true - } else if (obj?.prototype) { - return instanceOf(obj.prototype, clazz) - } - return false -} diff --git a/Yunzai/plugins/Guoba-Plugin/guoba.support.js b/Yunzai/plugins/Guoba-Plugin/guoba.support.js deleted file mode 100644 index bcb25ca484d876ef749523369e725e84e3361e0b..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/guoba.support.js +++ /dev/null @@ -1,127 +0,0 @@ -import path from 'path' -import lodash from 'lodash' -import {cfg, _paths} from "#guoba.platform"; - -// 支持锅巴 -export function supportGuoba() { - return { - // 插件信息,将会显示在前端页面 - // 如果你的插件没有在插件库里,那么需要填上补充信息 - // 如果存在的话,那么填不填就无所谓了,填了就以你的信息为准 - pluginInfo: { - name: 'guoba-plugin', - title: 'Guoba-Plugin', - author: '@zolay-poi', - authorLink: 'https://github.com/zolay-poi', - link: 'https://github.com/guoba-yunzai/guoba-plugin', - isV3: true, - isV2: false, - description: '主要提供后台管理界面', - // 显示图标,此为个性化配置 - // 图标可在 https://icon-sets.iconify.design 这里进行搜索 - icon: 'mdi:stove', - // 图标颜色,例:#FF0000 或 rgb(255, 0, 0) - iconColor: '#d19f56', - // 如果想要显示成图片,也可以填写图标路径(绝对路径) - iconPath: path.join(_paths.pluginRoot, 'resources/images/icon.png'), - }, - // 配置项信息 - configInfo: { - // 配置项 schemas - schemas: [ - { - field: 'base.checkUpdate', - label: '检查更新', - helpMessage: '启动时和每天凌晨4点自动检查更新,并发送消息提醒(每个版本只提醒一次)', - bottomHelpMessage: '是否自动检查更新,并发送消息提醒', - component: 'Switch', - }, - // { - // field: 'base.city', - // label: '天气城市', - // helpMessage: '修改后需要刷新页面才能生效', - // bottomHelpMessage: '配置首页天气显示的城市', - // // 组件类型,可参考 https://vvbin.cn/doc-next/components/introduction.html - // // https://antdv.com/components/overview-cn/ - // component: 'Input', - // required: true, - // componentProps: { - // placeholder: '请输入天气城市', - // }, - // }, - { - field: 'server.host', - label: '服务器地址', - bottomHelpMessage: 'auto 为自动获取本机IP地址,仅用于“#锅巴登录”和控制台中', - component: 'Input', - required: true, - componentProps: { - placeholder: '请输入服务器地址', - }, - }, - { - field: 'server.port', - label: '监听端口号', - helpMessage: '修改后需要重启才能生效', - bottomHelpMessage: '如果不想要端口号,请输入 80', - component: 'InputNumber', - required: true, - componentProps: { - min: 1, - max: 65535, - placeholder: '请输入监听端口号', - }, - }, - { - field: 'server.splicePort', - label: '拼接端口号', - bottomHelpMessage: '是否需要在服务器地址后拼接端口号', - component: 'Switch', - }, - // { - // field: 'server.showAllIp', - // label: '显示所有IP', - // bottomHelpMessage: '当host为auto时,是否在使用"#锅巴登录"时显示所有IP地址', - // component: 'Switch', - // }, - { - field: 'server.ICPNo', - label: 'ICP备案号', - helpMessage: '如果要将网站放到公网上使用「域名」访问,则需要填写备案号,否则可能会面临被禁止访问的风险!', - bottomHelpMessage: '填写你的域名ICP备案号,会显示在页面底部', - component: 'Input', - componentProps: { - placeholder: '请输入ICP备案号', - }, - }, - ], - // 获取配置数据方法(用于前端填充显示数据) - getConfigData() { - let config = lodash.omit(cfg.merged, 'jwt') - let host = lodash.get(config, 'server.host') - if (Array.isArray(host)) { - lodash.set(config, 'server.host', host[0]) - } - return config - }, - // 设置配置的方法(前端点确定后调用的方法) - setConfigData(data, {Result}) { - let config = {} - for (let [keyPath, value] of Object.entries(data)) { - // 特殊处理 server.host - if (keyPath === 'server.host') { - let host = cfg.get('server.host') - if (Array.isArray(host)) { - host[0] = value - value = host - } - } - lodash.set(config, keyPath, value) - } - config = lodash.merge({}, cfg.merged, config) - cfg.config.reader.setData(config) - return Result.ok({}, '保存成功~') - }, - }, - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/index.js b/Yunzai/plugins/Guoba-Plugin/index.js deleted file mode 100644 index c3c1be2ea1a4deb4eb639c3a937490a14e50809e..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/index.js +++ /dev/null @@ -1,26 +0,0 @@ -if (!global.segment) { - global.segment = (await import("oicq")).segment -} -import {isV3} from '#guoba.utils' -import {checkPackage} from './utils/adapter/check.js' -import {createImport, GI, GID} from './utils/guobaImport.js' - -let passed = await checkPackage() - -if (!passed) { - throw 'Missing necessary dependencies' -} - -global.Guoba = {GI, GID, createImport} - -const apps = {}, rule = {} - -let appRouter = null - -if (isV3) { - await (await import('./utils/adapter/initV3.js')).init(apps) -} else { - appRouter = await (await import('./utils/adapter/initV2.js')).init(rule) -} - -export {apps, rule, appRouter} diff --git a/Yunzai/plugins/Guoba-Plugin/lib/compareVersions.js b/Yunzai/plugins/Guoba-Plugin/lib/compareVersions.js deleted file mode 100644 index 2e181ee6ed20381b1ae8604f9a0a7e640bf022f1..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/lib/compareVersions.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * 版本号对比器 - * 仓库地址:https://github.com/omichelsen/compare-versions - * - * Compare [semver](https://semver.org/) version strings to find greater, equal or lesser. - * This library supports the full semver specification, including comparing versions with different number of digits like `1.0.0`, `1.0`, `1`, and pre-release versions like `1.0.0-alpha`. - * @param v1 - First version to compare - * @param v2 - Second version to compare - * @returns Numeric value compatible with the [Array.sort(fn) interface](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#Parameters). - */ -export function compareVersions(v1, v2) { - // validate input and split into segments - const n1 = validateAndParse(v1) - const n2 = validateAndParse(v2) - - // pop off the patch - const p1 = n1.pop() - const p2 = n2.pop() - - // validate numbers - const r = compareSegments(n1, n2) - if (r !== 0) return r - - // validate pre-release - if (p1 && p2) { - return compareSegments(p1.split('.'), p2.split('.')) - } else if (p1 || p2) { - return p1 ? -1 : 1 - } - - return 0 -} - -const semver = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i - -/** - * Validate [semver](https://semver.org/) version strings. - * - * @param version Version number to validate - * @returns `true` if the version number is a valid semver version number, `false` otherwise. - * - * @example - * ``` - * validate('1.0.0-rc.1'); // return true - * validate('1.0-rc.1'); // return false - * validate('foo'); // return false - * ``` - */ -export const validate = (version) => typeof version === 'string' && /^[v\d]/.test(version) && semver.test(version) - -/** - * Allowed arithmetic operators - */ -// export type CompareOperator = '>' | '>=' | '=' | '<' | '<=' - -/** - * Compare [semver](https://semver.org/) version strings using the specified operator. - * - * @param v1 First version to compare - * @param v2 Second version to compare - * @param operator Allowed arithmetic operator to use - * @returns `true` if the comparison between the firstVersion and the secondVersion satisfies the operator, `false` otherwise. - * - * @example - * ``` - * compare('10.1.8', '10.0.4', '>'); // return true - * compare('10.0.1', '10.0.1', '='); // return true - * compare('10.1.1', '10.2.2', '<'); // return true - * compare('10.1.1', '10.2.2', '<='); // return true - * compare('10.1.1', '10.2.2', '>='); // return false - * ``` - */ -export const compare = (v1, v2, operator) => { - // validate input operator - assertValidOperator(operator) - - // since result of compareVersions can only be -1 or 0 or 1 - // a simple map can be used to replace switch - const res = compareVersions(v1, v2) - - return operatorResMap[operator].includes(res) -} - -/** - * Match [npm semver](https://docs.npmjs.com/cli/v6/using-npm/semver) version range. - * - * @param version Version number to match - * @param range Range pattern for version - * @returns `true` if the version number is within the range, `false` otherwise. - * - * @example - * ``` - * satisfies('1.1.0', '^1.0.0'); // return true - * satisfies('1.1.0', '~1.0.0'); // return false - * ``` - */ -export const satisfies = (version, range) => { - // if no range operator then "=" - const m = range.match(/^([<>=~^]+)/) - const op = m ? m[1] : '=' - - // if gt/lt/eq then operator compare - if (op !== '^' && op !== '~') - return compare(version, range, op, - ) - - // else range of either "~" or "^" is assumed - const [v1, v2, v3] = validateAndParse(version) - const [r1, r2, r3] = validateAndParse(range) - if (compareStrings(v1, r1) !== 0) return false - if (op === '^') { - return compareSegments([v2, v3], [r2, r3]) >= 0 - } - if (compareStrings(v2, r2) !== 0) return false - return compareStrings(v3, r3) >= 0 -} - -const validateAndParse = (version) => { - if (typeof version !== 'string') { - throw new TypeError('Invalid argument expected string') - } - const match = version.match(semver) - if (!match) { - throw new Error( - `Invalid argument not valid semver ('${version}' received)`, - ) - } - match.shift() - return match -} - -const isWildcard = (s) => s === '*' || s === 'x' || s === 'X' - -const tryParse = (v) => { - const n = parseInt(v, 10) - return isNaN(n) ? v : n -} - -const forceType = (a, b) => typeof a !== typeof b ? [String(a), String(b)] : [a, b] - -const compareStrings = (a, b) => { - if (isWildcard(a) || isWildcard(b)) return 0 - const [ap, bp] = forceType(tryParse(a), tryParse(b)) - if (ap > bp) return 1 - if (ap < bp) return -1 - return 0 -} - -const compareSegments = (a, b) => { - for (let i = 0; i < Math.max(a.length, b.length); i++) { - const r = compareStrings(a[i] || '0', b[i] || '0') - if (r !== 0) return r - } - return 0 -} - -const operatorResMap = { - '>': [1], - '>=': [0, 1], - '=': [0], - '<=': [-1, 0], - '<': [-1], -} - -const allowedOperators = Object.keys(operatorResMap) - -const assertValidOperator = (op) => { - if (typeof op !== 'string') { - throw new TypeError( - `Invalid operator type, expected string but got ${typeof op}`, - ) - } - if (allowedOperators.indexOf(op) === -1) { - throw new Error( - `Invalid operator, expected one of ${allowedOperators.join('|')}`, - ) - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/lib/diskinfo.js b/Yunzai/plugins/Guoba-Plugin/lib/diskinfo.js deleted file mode 100644 index 3a44eb5fa5f210f1d2271331ea22f71d029d1435..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/lib/diskinfo.js +++ /dev/null @@ -1,155 +0,0 @@ -/** -* diskinfo -* -* Returns disk information array for linux and windows -* Tested on centos and windows vista -* -* @author Benoit Gauthier -*/ - -import os from 'os'; -import util from 'util'; -import {exec} from 'child_process'; - -/** -* Returns an array of drives or calls callback -* -* @param callback A callback function that will receive -* the array of drives, set null if no callback -*/ -export const getDrivesCallback = function(callback) { - var aDrives = []; - - switch (os.platform().toLowerCase()) { - case 'win32': - - // Windows 32 - // Tested on Vista - - // Run command to get list of drives - var oProcess = exec( - 'wmic logicaldisk get VolumeName,Caption,FreeSpace,Size,VolumeSerialNumber,Description /format:list', - { - encoding: 'buffer', - windowsHide: true, - }, - function (err, stdout, stderr) { - if (err) return callback(err, null); - // windows下解决中文乱码问题 - stdout = new TextDecoder('gbk').decode(stdout) - var aLines = stdout.split('\r\r\n'); - var bNew = false; - var sCaption = '', sDescription = '', sFreeSpace = '', sSize = '', sVolume = '', sVolumeName = ''; - // For each line get information - // Format is Key=Value - for(var i = 0; i < aLines.length; i++) { - if (aLines[i] != '') { - var aTokens = aLines[i].split('='); - switch (aTokens[0]) { - case 'Caption': - sCaption = aTokens[1]; - bNew = true; - break; - case 'Description': - sDescription = aTokens[1]; - break; - case 'FreeSpace': - sFreeSpace = aTokens[1]; - break; - case 'Size': - sSize = aTokens[1]; - break; - case 'VolumeSerialNumber': - sVolume = aTokens[1]; - break; - // 新增卷名 - case 'VolumeName': - sVolumeName = aTokens[1]; - break; - } - - } else { - // Empty line - // If we get an empty line and bNew is true then we have retrieved - // all information for one drive, add to array and reset variables - if (bNew) { - sSize = parseFloat(sSize); - if (isNaN(sSize)) { - sSize = 0; - } - sFreeSpace = parseFloat(sFreeSpace); - if (isNaN(sFreeSpace)) { - sFreeSpace = 0; - } - - var sUsed = (sSize - sFreeSpace); - var sPercent = '0%'; - if (sSize != '' && parseFloat(sSize) > 0) { - sPercent = Math.round((parseFloat(sUsed) / parseFloat(sSize)) * 100) + '%'; - } - aDrives[aDrives.length] = { - filesystem: sDescription, - blocks: sSize, - used: sUsed, - available: sFreeSpace, - capacity: sPercent, - volumeName: sVolumeName, - mounted: sCaption - }; - bNew = false; - sCaption = ''; sDescription = ''; sFreeSpace = ''; sSize = ''; sVolume = ''; sVolumeName = ''; - } - - } - } - // Check if we have callback - if (callback != null) { - callback(null, aDrives); - } - return aDrives; - } - ); - - break; - - case 'linux': - // Linux - // Tested on CentOS - default: - - // Run command to get list of drives - var oProcess = exec( - 'df -P | awk \'NR > 1\'', - function (err, stdout, stderr) { - if (err) return callback(err, null); - var aLines = stdout.split('\n'); - // For each line get drive info and add to array - for(var i = 0; i < aLines.length; i++) { - var sLine = aLines[i]; - if (sLine != '') { - sLine = sLine.replace(/ +(?= )/g,''); - var aTokens = sLine.split(' '); - aDrives[aDrives.length] = { - filesystem: aTokens[0], - blocks: aTokens[1], - used: aTokens[2], - available: aTokens[3], - capacity: aTokens[4], - mounted: aTokens[5] - }; - - } - } - // Check if we have a callback - if (callback != null) { - callback(null, aDrives); - } - return aDrives; - } - ); - - } - -} - -export const getDrives = util.promisify(getDrivesCallback) diff --git "a/Yunzai/plugins/Guoba-Plugin/lib/v2-js/\347\233\256\345\275\225\350\257\264\346\230\216.txt" "b/Yunzai/plugins/Guoba-Plugin/lib/v2-js/\347\233\256\345\275\225\350\257\264\346\230\216.txt" deleted file mode 100644 index bb1e39b291164e0b2b31169f1e981a5aa2228f32..0000000000000000000000000000000000000000 --- "a/Yunzai/plugins/Guoba-Plugin/lib/v2-js/\347\233\256\345\275\225\350\257\264\346\230\216.txt" +++ /dev/null @@ -1,4 +0,0 @@ -1. 本目录用于兼容V2的插件(单JS) -2. 将V2的插件放置到本目录下即可。 -3. 并不能保证完全兼容,有不兼容的写法将会拒绝执行。 -4. 不支持热部署,新增、修改或删除插件后需要重启。 diff --git a/Yunzai/plugins/Guoba-Plugin/models/libs.js b/Yunzai/plugins/Guoba-Plugin/models/libs.js deleted file mode 100644 index bbc7d8003f22018e342f56756559ccf6cc9297f4..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/models/libs.js +++ /dev/null @@ -1,2 +0,0 @@ -export * as diskInfo from '../lib/diskinfo.js'; -export * as compareVersions from '../lib/compareVersions.js'; \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/models/platform.js b/Yunzai/plugins/Guoba-Plugin/models/platform.js deleted file mode 100644 index b07f76adb53a6f9de4c2d303a930560c5937af3b..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/models/platform.js +++ /dev/null @@ -1,10 +0,0 @@ -export {_paths} from '../utils/paths.js' -export {_version, pluginName, pluginPackage, yunzaiPackage} from '../utils/package.js'; - -export {default as cfg} from '../utils/cfg.js' -export {default as Constant} from '../server/constant/Constant.js' - -/** 安装了哪些插件 */ -export const PluginsMap = new Map() -/** 哪些插件支持Guoba */ -export const GuobaSupportMap = new Map() diff --git a/Yunzai/plugins/Guoba-Plugin/models/utils.js b/Yunzai/plugins/Guoba-Plugin/models/utils.js deleted file mode 100644 index 08f92a7e8629b1ec245b7b997bd004e56718fbf9..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/models/utils.js +++ /dev/null @@ -1,5 +0,0 @@ -export * from '../utils/common.js'; -export * from '../utils/adapter.js' -export * from '../utils/package.js' - -export * as AdapterCheck from '../utils/adapter/check.js'; diff --git a/Yunzai/plugins/Guoba-Plugin/package.json b/Yunzai/plugins/Guoba-Plugin/package.json deleted file mode 100644 index 5565a11298965269ee0740faa7664a57a0c6ace2..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "guoba-plugin", - "version": "1.2.0-beta.1", - "description": "Yunzai-Bot插件", - "type": "module", - "module": "index.js", - "main": "index.js", - "scripts": { - }, - "imports": { - "#guoba.platform": "./models/platform.js", - "#guoba.utils": "./models/utils.js", - "#guoba.libs": "./models/libs.js", - "#guoba.framework": "./framework/index.js", - "#guoba.framework.utils": "./framework/src/utils/common.js" - }, - "dependencies": { - "express": "^4.18.1", - "multer": "^1.4.5-lts.1", - "body-parser": "^1.20.0", - "socket.io": "^4.5.1", - "jsonwebtoken": "^8.5.1" - }, - "devDependencies": {}, - "keywords": [ - "云崽", - "原神", - "Yunzai-Bot", - "Genshin" - ], - "author": "zolay", - "license": "GPL-3.0-or-later" -} diff --git a/Yunzai/plugins/Guoba-Plugin/resources/images/help.jpg b/Yunzai/plugins/Guoba-Plugin/resources/images/help.jpg deleted file mode 100644 index 6f7f39edd780a213b2756eae5a5b4a343e488e7e..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/resources/images/help.jpg and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/resources/images/icon.png b/Yunzai/plugins/Guoba-Plugin/resources/images/icon.png deleted file mode 100644 index f08df0a62def83b63b0e15c96fd69ed77f2faef9..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/resources/images/icon.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/resources/images/no-miao.png b/Yunzai/plugins/Guoba-Plugin/resources/images/no-miao.png deleted file mode 100644 index edb376cc9f79413e2fe8c4db582534d885eea805..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/resources/images/no-miao.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/001.png b/Yunzai/plugins/Guoba-Plugin/resources/images/readme/001.png deleted file mode 100644 index 53bee022cd8ee9aed03498b09f65d835e67d66fd..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/001.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/002.png b/Yunzai/plugins/Guoba-Plugin/resources/images/readme/002.png deleted file mode 100644 index e4e8666821deac5c0a05748483d9eb4826ac62d5..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/002.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/003.png b/Yunzai/plugins/Guoba-Plugin/resources/images/readme/003.png deleted file mode 100644 index b5532db383ce67473976e26490c476e98e8207ba..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/003.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/004.png b/Yunzai/plugins/Guoba-Plugin/resources/images/readme/004.png deleted file mode 100644 index 39058800fd5b036791bffa46a588408ecf73f8c4..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/004.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/005.png b/Yunzai/plugins/Guoba-Plugin/resources/images/readme/005.png deleted file mode 100644 index 8e1b71cce509ac0422c51fe42d0091937eeb4fbf..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/resources/images/readme/005.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/resources/json/city.json b/Yunzai/plugins/Guoba-Plugin/resources/json/city.json deleted file mode 100644 index 29eaabcd5416e1a1b9abd3cb7dd1d279dec75371..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/resources/json/city.json +++ /dev/null @@ -1 +0,0 @@ -{"北京":"101010100","海淀":"101010200","朝阳":"101010300","顺义":"101010400","怀柔":"101010500","通州":"101010600","昌平":"101010700","延庆":"101010800","丰台":"101010900","石景山":"101011000","大兴":"101011100","房山":"101011200","密云":"101011300","门头沟":"101011400","平谷":"101011500","八达岭":"101011600","佛爷顶":"101011700","汤河口":"101011800","密云上甸子":"101011900","斋堂":"101012000","霞云岭":"101012100","上海":"101020100","闵行":"101020200","宝山":"101020300","川沙":"101020400","嘉定":"101020500","南汇":"101020600","金山":"101020700","青浦":"101020800","松江":"101020900","奉贤":"101021000","崇明":"101021100","陈家镇":"101021101","引水船":"101021102","徐家汇":"101021200","浦东":"101021300","天津":"101030100","武清":"101030200","宝坻":"101030300","东丽":"101030400","西青":"101030500","北辰":"101030600","宁河":"101030700","汉沽":"101030800","静海":"101030900","津南":"101031000","塘沽":"101031100","大港":"101031200","平台":"101031300","蓟县":"101031400","重庆":"101040100","永川":"101040200","合川":"101040300","南川":"101040400","江津":"101040500","万盛":"101040600","渝北":"101040700","北碚":"101040800","巴南":"101040900","长寿":"101041000","黔江":"101041100","万州天城":"101041200","万州龙宝":"101041300","涪陵":"101041400","开县":"101041500","城口":"101041600","云阳":"101041700","巫溪":"101041800","奉节":"101041900","巫山":"101042000","潼南":"101042100","垫江":"101042200","梁平":"101042300","忠县":"101042400","石柱":"101042500","大足":"101042600","荣昌":"101042700","铜梁":"101042800","璧山":"101042900","丰都":"101043000","武隆":"101043100","彭水":"101043200","綦江":"101043300","酉阳":"101043400","金佛山":"101043500","秀山":"101043600","沙坪坝":"101043700","哈尔滨":"101050101","双城":"101050102","呼兰":"101050103","阿城":"101050104","宾县":"101050105","依兰":"101050106","巴彦":"101050107","通河":"101050108","方正":"101050109","延寿":"101050110","尚志":"101050111","五常":"101050112","木兰":"101050113","齐齐哈尔":"101050201","讷河":"101050202","龙江":"101050203","甘南":"101050204","富裕":"101050205","依安":"101050206","拜泉":"101050207","克山":"101050208","克东":"101050209","泰来":"101050210","牡丹江":"101050301","海林":"101050302","穆棱":"101050303","林口":"101050304","绥芬河":"101050305","宁安":"101050306","东宁":"101050307","佳木斯":"101050401","汤原":"101050402","抚远":"101050403","桦川":"101050404","桦南":"101050405","同江":"101050406","富锦":"101050407","绥化":"101050501","肇东":"101050502","安达":"101050503","海伦":"101050504","明水":"101050505","望奎":"101050506","兰西":"101050507","青冈":"101050508","庆安":"101050509","绥棱":"101050510","黑河":"101050601","嫩江":"101050602","孙吴":"101050603","逊克":"101050604","五大连池":"101050605","北安":"101050606","大兴安岭":"101050701","塔河":"101050702","漠河":"101050703","呼玛":"101050704","呼中":"101050705","新林":"101050706","阿木尔":"101050707","加格达奇":"101050708","伊春":"101050801","乌伊岭":"101050802","五营":"101050803","铁力":"101050804","嘉荫":"101050805","大庆":"101050901","林甸":"101050902","肇州":"101050903","肇源":"101050904","杜蒙":"101050905","七台河":"101051002","勃利":"101051003","鸡西":"101051101","虎林":"101051102","密山":"101051103","鸡东":"101051104","鹤岗":"101051201","绥滨":"101051202","萝北":"101051203","双鸭山":"101051301","集贤":"101051302","宝清":"101051303","饶河":"101051304","长春":"101060101","农安":"101060102","德惠":"101060103","九台":"101060104","榆树":"101060105","双阳":"101060106","吉林":"101060201","舒兰":"101060202","永吉":"101060203","蛟河":"101060204","磐石":"101060205","桦甸":"101060206","烟筒山":"101060207","延吉":"101060301","敦化":"101060302","安图":"101060303","汪清":"101060304","和龙":"101060305","天池":"101060306","龙井":"101060307","珲春":"101060308","图们":"101060309","罗子沟":"101060311","延边":"101060312","四平":"101060401","双辽":"101060402","梨树":"101060403","公主岭":"101060404","伊通":"101060405","孤家子":"101060406","通化":"101060501","梅河口":"101060502","柳河":"101060503","辉南":"101060504","集安":"101060505","通化县":"101060506","白城":"101060601","洮南":"101060602","大安":"101060603","镇赉":"101060604","通榆":"101060605","辽源":"101060701","东丰":"101060702","松原":"101060801","乾安":"101060802","前郭":"101060803","长岭":"101060804","扶余":"101060805","白山":"101060901","靖宇":"101060902","临江":"101060903","东岗":"101060904","长白":"101060905","沈阳":"101070101","苏家屯":"101070102","辽中":"101070103","康平":"101070104","法库":"101070105","新民":"101070106","于洪":"101070107","新城子":"101070108","大连":"101070201","瓦房店":"101070202","金州":"101070203","普兰店":"101070204","旅顺":"101070205","长海":"101070206","庄河":"101070207","皮口":"101070208","海洋岛":"101070209","鞍山":"101070301","台安":"101070302","岫岩":"101070303","海城":"101070304","抚顺":"101070401","清原":"101070403","章党":"101070404","本溪":"101070501","本溪县":"101070502","草河口":"101070503","桓仁":"101070504","丹东":"101070601","凤城":"101070602","宽甸":"101070603","东港":"101070604","东沟":"101070605","锦州":"101070701","凌海":"101070702","北宁":"101070703","义县":"101070704","黑山":"101070705","北镇":"101070706","营口":"101070801","大石桥":"101070802","盖州":"101070803","阜新":"101070901","彰武":"101070902","辽阳":"101071001","辽阳县":"101071002","灯塔":"101071003","铁岭":"101071101","开原":"101071102","昌图":"101071103","西丰":"101071104","建平":"101071202","凌源":"101071203","喀左":"101071204","北票":"101071205","羊山":"101071206","建平县":"101071207","盘锦":"101071301","大洼":"101071302","盘山":"101071303","葫芦岛":"101071401","建昌":"101071402","绥中":"101071403","兴城":"101071404","呼和浩特":"101080101","土默特左旗":"101080102","托克托":"101080103","和林格尔":"101080104","清水河":"101080105","呼和浩特市郊区":"101080106","武川":"101080107","包头":"101080201","白云鄂博":"101080202","满都拉":"101080203","土默特右旗":"101080204","固阳":"101080205","达尔罕茂明安联合旗":"101080206","石拐":"101080207","乌海":"101080301","集宁":"101080401","卓资":"101080402","化德":"101080403","商都":"101080404","希拉穆仁":"101080405","兴和":"101080406","凉城":"101080407","察哈尔右翼前旗":"101080408","察哈尔右翼中旗":"101080409","察哈尔右翼后旗":"101080410","四子王旗":"101080411","丰镇":"101080412","通辽":"101080501","舍伯吐":"101080502","科尔沁左翼中旗":"101080503","科尔沁左翼后旗":"101080504","青龙山":"101080505","开鲁":"101080506","库伦旗":"101080507","奈曼旗":"101080508","扎鲁特旗":"101080509","高力板":"101080510","巴雅尔吐胡硕":"101080511","通辽钱家店":"101080512","赤峰":"101080601","赤峰郊区站":"101080602","阿鲁科尔沁旗":"101080603","浩尔吐":"101080604","巴林左旗":"101080605","巴林右旗":"101080606","林西":"101080607","克什克腾旗":"101080608","翁牛特旗":"101080609","岗子":"101080610","喀喇沁旗":"101080611","八里罕":"101080612","宁城":"101080613","敖汉旗":"101080614","宝过图":"101080615","鄂尔多斯":"101080701","达拉特旗":"101080703","准格尔旗":"101080704","鄂托克前旗":"101080705","河南":"101080706","伊克乌素":"101080707","鄂托克旗":"101080708","杭锦旗":"101080709","乌审旗":"101080710","伊金霍洛旗":"101080711","乌审召":"101080712","东胜":"101080713","临河":"101080801","五原":"101080802","磴口":"101080803","乌拉特前旗":"101080804","大佘太":"101080805","乌拉特中旗":"101080806","乌拉特后旗":"101080807","海力素":"101080808","那仁宝力格":"101080809","杭锦后旗":"101080810","巴盟农试站":"101080811","锡林浩特":"101080901","朝克乌拉":"101080902","二连浩特":"101080903","阿巴嘎旗":"101080904","伊和郭勒":"101080905","苏尼特左旗":"101080906","苏尼特右旗":"101080907","朱日和":"101080908","东乌珠穆沁旗":"101080909","西乌珠穆沁旗":"101080910","太仆寺旗":"101080911","镶黄旗":"101080912","正镶白旗":"101080913","正兰旗":"101080914","多伦":"101080915","博克图":"101080916","乌拉盖":"101080917","白日乌拉":"101080918","那日图":"101080919","呼伦贝尔":"101081000","海拉尔":"101081001","小二沟":"101081002","阿荣旗":"101081003","莫力达瓦旗":"101081004","鄂伦春旗":"101081005","鄂温克旗":"101081006","陈巴尔虎旗":"101081007","新巴尔虎左旗":"101081008","新巴尔虎右旗":"101081009","满洲里":"101081010","牙克石":"101081011","扎兰屯":"101081012","额尔古纳":"101081014","根河":"101081015","图里河":"101081016","乌兰浩特":"101081101","阿尔山":"101081102","科尔沁右翼中旗":"101081103","胡尔勒":"101081104","扎赉特旗":"101081105","索伦":"101081106","突泉":"101081107","霍林郭勒":"101081108","阿拉善左旗":"101081201","阿拉善右旗":"101081202","额济纳旗":"101081203","拐子湖":"101081204","吉兰太":"101081205","锡林高勒":"101081206","头道湖":"101081207","中泉子":"101081208","巴彦诺尔贡":"101081209","雅布赖":"101081210","乌斯太":"101081211","孪井滩":"101081212","石家庄":"101090101","井陉":"101090102","正定":"101090103","栾城":"101090104","行唐":"101090105","灵寿":"101090106","高邑":"101090107","深泽":"101090108","赞皇":"101090109","无极":"101090110","平山":"101090111","元氏":"101090112","赵县":"101090113","辛集":"101090114","藁城":"101090115","晋洲":"101090116","新乐":"101090117","保定":"101090201","满城":"101090202","阜平":"101090203","徐水":"101090204","唐县":"101090205","高阳":"101090206","容城":"101090207","紫荆关":"101090208","涞源":"101090209","望都":"101090210","安新":"101090211","易县":"101090212","涞水":"101090213","曲阳":"101090214","蠡县":"101090215","顺平":"101090216","雄县":"101090217","涿州":"101090218","定州":"101090219","安国":"101090220","高碑店":"101090221","张家口":"101090301","宣化":"101090302","张北":"101090303","康保":"101090304","沽源":"101090305","尚义":"101090306","蔚县":"101090307","阳原":"101090308","怀安":"101090309","万全":"101090310","怀来":"101090311","涿鹿":"101090312","赤城":"101090313","崇礼":"101090314","承德":"101090402","承德县":"101090403","兴隆":"101090404","平泉":"101090405","滦平":"101090406","隆化":"101090407","丰宁":"101090408","宽城":"101090409","围场":"101090410","塞罕坎":"101090411","唐山":"101090501","丰南":"101090502","丰润":"101090503","滦县":"101090504","滦南":"101090505","乐亭":"101090506","迁西":"101090507","玉田":"101090508","唐海":"101090509","遵化":"101090510","迁安":"101090511","廊坊":"101090601","固安":"101090602","永清":"101090603","香河":"101090604","大城":"101090605","文安":"101090606","大厂":"101090607","霸州":"101090608","三河":"101090609","沧州":"101090701","青县":"101090702","东光":"101090703","海兴":"101090704","盐山":"101090705","肃宁":"101090706","南皮":"101090707","吴桥":"101090708","献县":"101090709","孟村":"101090710","泊头":"101090711","任丘":"101090712","黄骅":"101090713","河间":"101090714","曹妃甸":"101090715","衡水":"101090801","枣强":"101090802","武邑":"101090803","武强":"101090804","饶阳":"101090805","安平":"101090806","故城":"101090807","景县":"101090808","阜城":"101090809","冀州":"101090810","深州":"101090811","邢台":"101090901","临城":"101090902","邢台县浆水":"101090903","内邱":"101090904","柏乡":"101090905","隆尧":"101090906","南和":"101090907","宁晋":"101090908","巨鹿":"101090909","新河":"101090910","广宗":"101090911","平乡":"101090912","威县":"101090913","清河":"101090914","临西":"101090915","南宫":"101090916","沙河":"101090917","任县":"101090918","邯郸":"101091001","峰峰":"101091002","临漳":"101091003","成安":"101091004","大名":"101091005","涉县":"101091006","磁县":"101091007","肥乡":"101091008","永年":"101091009","邱县":"101091010","鸡泽":"101091011","广平":"101091012","馆陶":"101091013","魏县":"101091014","曲周":"101091015","武安":"101091016","秦皇岛":"101091101","青龙":"101091102","昌黎":"101091103","抚宁":"101091104","卢龙":"101091105","北戴河":"101091106","太原":"101100101","清徐":"101100102","阳曲":"101100103","娄烦":"101100104","太原古交区":"101100105","太原北郊":"101100106","太原南郊":"101100107","大同":"101100201","阳高":"101100202","大同县":"101100203","天镇":"101100204","广灵":"101100205","灵邱":"101100206","浑源":"101100207","左云":"101100208","阳泉":"101100301","盂县":"101100302","平定":"101100303","晋中":"101100401","榆次":"101100402","榆社":"101100403","左权":"101100404","和顺":"101100405","昔阳":"101100406","寿阳":"101100407","太谷":"101100408","祁县":"101100409","平遥":"101100410","灵石":"101100411","介休":"101100412","长治":"101100501","黎城":"101100502","屯留":"101100503","潞城":"101100504","襄垣":"101100505","平顺":"101100506","武乡":"101100507","沁县":"101100508","长子":"101100509","沁源":"101100510","壶关":"101100511","晋城":"101100601","沁水":"101100602","阳城":"101100603","陵川":"101100604","高平":"101100605","临汾":"101100701","曲沃":"101100702","永和":"101100703","隰县":"101100704","大宁":"101100705","吉县":"101100706","襄汾":"101100707","蒲县":"101100708","汾西":"101100709","洪洞":"101100710","霍州":"101100711","乡宁":"101100712","翼城":"101100713","侯马":"101100714","浮山":"101100715","安泽":"101100716","古县":"101100717","运城":"101100801","临猗":"101100802","稷山":"101100803","万荣":"101100804","河津":"101100805","新绛":"101100806","绛县":"101100807","闻喜":"101100808","垣曲":"101100809","永济":"101100810","芮城":"101100811","夏县":"101100812","平陆":"101100813","朔州":"101100901","平鲁":"101100902","山阴":"101100903","右玉":"101100904","应县":"101100905","怀仁":"101100906","忻州":"101101001","定襄":"101101002","五台县豆村":"101101003","河曲":"101101004","偏关":"101101005","神池":"101101006","宁武":"101101007","代县":"101101008","繁峙":"101101009","五台山":"101101010","保德":"101101011","静乐":"101101012","岢岚":"101101013","五寨":"101101014","原平":"101101015","吕梁":"101101100","离石":"101101101","临县":"101101102","兴县":"101101103","岚县":"101101104","柳林":"101101105","石楼":"101101106","方山":"101101107","交口":"101101108","中阳":"101101109","孝义":"101101110","汾阳":"101101111","文水":"101101112","交城":"101101113","西安":"101110101","长安":"101110102","临潼":"101110103","蓝田":"101110104","周至":"101110105","户县":"101110106","高陵":"101110107","杨凌":"101110108","咸阳":"101110200","三原":"101110201","礼泉":"101110202","永寿":"101110203","淳化":"101110204","泾阳":"101110205","武功":"101110206","乾县":"101110207","彬县":"101110208","长武":"101110209","旬邑":"101110210","兴平":"101110211","延安":"101110300","延长":"101110301","延川":"101110302","子长":"101110303","宜川":"101110304","富县":"101110305","志丹":"101110306","安塞":"101110307","甘泉":"101110308","洛川":"101110309","黄陵":"101110310","黄龙":"101110311","吴起":"101110312","榆林":"101110401","府谷":"101110402","神木":"101110403","佳县":"101110404","定边":"101110405","靖边":"101110406","横山":"101110407","米脂":"101110408","子洲":"101110409","绥德":"101110410","吴堡":"101110411","清涧":"101110412","渭南":"101110501","华县":"101110502","潼关":"101110503","大荔":"101110504","白水":"101110505","富平":"101110506","蒲城":"101110507","澄城":"101110508","合阳":"101110509","韩城":"101110510","华阴":"101110511","华山":"101110512","商洛":"101110601","洛南":"101110602","柞水":"101110603","镇安":"101110605","丹凤":"101110606","商南":"101110607","山阳":"101110608","安康":"101110701","紫阳":"101110702","石泉":"101110703","汉阴":"101110704","旬阳":"101110705","岚皋":"101110706","平利":"101110707","白河":"101110708","镇坪":"101110709","宁陕":"101110710","汉中":"101110801","略阳":"101110802","勉县":"101110803","留坝":"101110804","洋县":"101110805","城固":"101110806","西乡":"101110807","佛坪":"101110808","宁强":"101110809","南郑":"101110810","镇巴":"101110811","宝鸡":"101110901","宝鸡县":"101110902","千阳":"101110903","麟游":"101110904","岐山":"101110905","凤翔":"101110906","扶风":"101110907","眉县":"101110908","太白":"101110909","凤县":"101110910","陇县":"101110911","铜川":"101111001","耀县":"101111002","宜君":"101111003","济南":"101120101","长清":"101120102","商河":"101120103","章丘":"101120104","平阴":"101120105","济阳":"101120106","青岛":"101120201","崂山":"101120202","潮连岛":"101120203","即墨":"101120204","胶州":"101120205","胶南":"101120206","莱西":"101120207","平度":"101120208","淄博":"101120301","淄川":"101120302","博山":"101120303","高青":"101120304","周村":"101120305","沂源":"101120306","桓台":"101120307","临淄":"101120308","德州":"101120401","武城":"101120402","临邑":"101120403","陵县":"101120404","齐河":"101120405","乐陵":"101120406","庆云":"101120407","平原":"101120408","宁津":"101120409","夏津":"101120410","禹城":"101120411","烟台":"101120501","莱州":"101120502","长岛":"101120503","蓬莱":"101120504","龙口":"101120505","招远":"101120506","栖霞":"101120507","福山":"101120508","牟平":"101120509","莱阳":"101120510","海阳":"101120511","千里岩":"101120512","潍坊":"101120601","青州":"101120602","寿光":"101120603","临朐":"101120604","昌乐":"101120605","昌邑":"101120606","安丘":"101120607","高密":"101120608","诸城":"101120609","济宁":"101120701","嘉祥":"101120702","微山":"101120703","鱼台":"101120704","兖州":"101120705","金乡":"101120706","汶上":"101120707","泗水":"101120708","梁山":"101120709","曲阜":"101120710","邹城":"101120711","泰安":"101120801","新泰":"101120802","泰山":"101120803","肥城":"101120804","东平":"101120805","宁阳":"101120806","临沂":"101120901","莒南":"101120902","沂南":"101120903","苍山":"101120904","临沭":"101120905","郯城":"101120906","蒙阴":"101120907","平邑":"101120908","费县":"101120909","沂水":"101120910","马站":"101120911","菏泽":"101121001","鄄城":"101121002","郓城":"101121003","东明":"101121004","定陶":"101121005","巨野":"101121006","曹县":"101121007","成武":"101121008","单县":"101121009","滨州":"101121101","博兴":"101121102","无棣":"101121103","阳信":"101121104","惠民":"101121105","沾化":"101121106","邹平":"101121107","东营":"101121201","河口":"101121202","垦利":"101121203","利津":"101121204","广饶":"101121205","威海":"101121301","文登":"101121302","荣成":"101121303","乳山":"101121304","成山头":"101121305","石岛":"101121306","枣庄":"101121401","薛城":"101121402","峄城":"101121403","台儿庄":"101121404","滕州":"101121405","日照":"101121501","五莲":"101121502","莒县":"101121503","莱芜":"101121601","聊城":"101121701","冠县":"101121702","阳谷":"101121703","高唐":"101121704","茌平":"101121705","东阿":"101121706","临清":"101121707","朝城":"101121708","莘县":"101121709","乌鲁木齐":"101130101","蔡家湖":"101130102","小渠子":"101130103","巴仑台":"101130104","达坂城":"101130105","十三间房气象站":"101130106","天山大西沟":"101130107","乌鲁木齐牧试站":"101130108","白杨沟":"101130110","克拉玛依":"101130201","石河子":"101130301","炮台":"101130302","莫索湾":"101130303","乌兰乌苏":"101130304","昌吉":"101130401","呼图壁":"101130402","米泉":"101130403","阜康":"101130404","吉木萨尔":"101130405","奇台":"101130406","玛纳斯":"101130407","木垒":"101130408","北塔山":"101130409","吐鲁番":"101130501","托克逊":"101130502","吐鲁番东坎":"101130503","鄯善":"101130504","红柳河":"101130505","库尔勒":"101130601","轮台":"101130602","尉犁":"101130603","若羌":"101130604","且末":"101130605","和静":"101130606","焉耆":"101130607","和硕":"101130608","库米什":"101130609","巴音布鲁克":"101130610","铁干里克":"101130611","博湖":"101130612","塔中":"101130613","阿拉尔":"101130701","阿克苏":"101130801","乌什":"101130802","温宿":"101130803","拜城":"101130804","新和":"101130805","沙雅":"101130806","库车":"101130807","柯坪":"101130808","阿瓦提":"101130809","喀什":"101130901","英吉沙":"101130902","塔什库尔干":"101130903","麦盖提":"101130904","莎车":"101130905","叶城":"101130906","泽普":"101130907","巴楚":"101130908","岳普湖":"101130909","伽师":"101130910","伊宁":"101131001","察布查尔":"101131002","尼勒克":"101131003","伊宁县":"101131004","巩留":"101131005","新源":"101131006","昭苏":"101131007","特克斯":"101131008","霍城":"101131009","霍尔果斯":"101131010","塔城":"101131101","裕民":"101131102","额敏":"101131103","和布克赛尔":"101131104","托里":"101131105","乌苏":"101131106","沙湾":"101131107","和丰":"101131108","哈密":"101131201","沁城":"101131202","巴里坤":"101131203","伊吾":"101131204","淖毛湖":"101131205","和田":"101131301","皮山":"101131302","策勒":"101131303","墨玉":"101131304","洛浦":"101131305","民丰":"101131306","于田":"101131307","阿勒泰":"101131401","哈巴河":"101131402","一八五团":"101131403","黑山头":"101131404","吉木乃":"101131405","布尔津":"101131406","福海":"101131407","富蕴":"101131408","青河":"101131409","安德河":"101131410","阿图什":"101131501","乌恰":"101131502","阿克陶":"101131503","阿合奇":"101131504","吐尔尕特":"101131505","博乐":"101131601","温泉":"101131602","精河":"101131603","阿拉山口":"101131606","拉萨":"101140101","当雄":"101140102","尼木":"101140103","墨竹贡卡":"101140104","日喀则":"101140201","拉孜":"101140202","南木林":"101140203","聂拉木":"101140204","定日":"101140205","江孜":"101140206","帕里":"101140207","山南":"101140301","贡嘎":"101140302","琼结":"101140303","加查":"101140304","浪卡子":"101140305","错那":"101140306","隆子":"101140307","泽当":"101140308","林芝":"101140401","波密":"101140402","米林":"101140403","察隅":"101140404","昌都":"101140501","丁青":"101140502","类乌齐":"101140503","洛隆":"101140504","左贡":"101140505","芒康":"101140506","八宿":"101140507","那曲":"101140601","嘉黎":"101140603","班戈":"101140604","安多":"101140605","索县":"101140606","比如":"101140607","阿里":"101140701","改则":"101140702","申扎":"101140703","狮泉河":"101140704","普兰":"101140705","西宁":"101150101","大通":"101150102","湟源":"101150103","湟中":"101150104","铁卜加":"101150105","铁卜加寺":"101150106","中心站":"101150107","海东":"101150201","乐都":"101150202","民和":"101150203","互助":"101150204","化隆":"101150205","循化":"101150206","冷湖":"101150207","平安":"101150208","黄南":"101150301","尖扎":"101150302","泽库":"101150303","海南":"101150401","江西沟":"101150402","贵德":"101150404","河卡":"101150405","兴海":"101150406","贵南":"101150407","同德":"101150408","共和":"101150409","果洛":"101150501","班玛":"101150502","甘德":"101150503","达日":"101150504","久治":"101150505","玛多":"101150506","玛沁":"101150508","玉树":"101150601","托托河":"101150602","治多":"101150603","杂多":"101150604","囊谦":"101150605","曲麻莱":"101150606","海西":"101150701","格尔木":"101150702","察尔汉":"101150703","野牛沟":"101150704","五道梁":"101150705","小灶火":"101150706","天峻":"101150708","乌兰":"101150709","都兰":"101150710","诺木洪":"101150711","茫崖":"101150712","大柴旦":"101150713","茶卡":"101150714","香日德":"101150715","德令哈":"101150716","海北":"101150801","门源":"101150802","祁连":"101150803","海晏":"101150804","托勒":"101150805","刚察":"101150806","兰州":"101160101","皋兰":"101160102","永登":"101160103","榆中":"101160104","定西":"101160201","通渭":"101160202","陇西":"101160203","渭源":"101160204","临洮":"101160205","漳县":"101160206","岷县":"101160207","安定":"101160208","平凉":"101160301","泾川":"101160302","灵台":"101160303","崇信":"101160304","华亭":"101160305","庄浪":"101160306","静宁":"101160307","崆峒":"101160308","庆阳":"101160401","西峰":"101160402","环县":"101160403","华池":"101160404","合水":"101160405","正宁":"101160406","宁县":"101160407","镇原":"101160408","庆城":"101160409","武威":"101160501","民勤":"101160502","古浪":"101160503","乌鞘岭":"101160504","天祝":"101160505","金昌":"101160601","永昌":"101160602","张掖":"101160701","肃南":"101160702","民乐":"101160703","临泽":"101160704","高台":"101160705","山丹":"101160706","酒泉":"101160801","鼎新":"101160802","金塔":"101160803","马鬃山":"101160804","瓜州":"101160805","肃北":"101160806","玉门镇":"101160807","敦煌":"101160808","天水":"101160901","北道区":"101160902","清水":"101160903","秦安":"101160904","甘谷":"101160905","武山":"101160906","张家川":"101160907","麦积":"101160908","武都":"101161001","成县":"101161002","文县":"101161003","宕昌":"101161004","康县":"101161005","西和":"101161006","礼县":"101161007","徽县":"101161008","两当":"101161009","临夏":"101161101","康乐":"101161102","永靖":"101161103","广河":"101161104","和政":"101161105","东乡":"101161106","合作":"101161201","临潭":"101161202","卓尼":"101161203","舟曲":"101161204","迭部":"101161205","玛曲":"101161206","碌曲":"101161207","夏河":"101161208","白银":"101161301","靖远":"101161302","会宁":"101161303","华家岭":"101161304","景泰":"101161305","银川":"101170101","永宁":"101170102","灵武":"101170103","贺兰":"101170104","石嘴山":"101170201","惠农":"101170202","平罗":"101170203","陶乐":"101170204","石炭井":"101170205","大武口":"101170206","吴忠":"101170301","同心":"101170302","盐池":"101170303","韦州":"101170304","麻黄山":"101170305","青铜峡":"101170306","固原":"101170401","西吉":"101170402","隆德":"101170403","泾源":"101170404","六盘山":"101170405","彭阳":"101170406","中卫":"101170501","中宁":"101170502","兴仁堡":"101170503","海原":"101170504","郑州":"101180101","巩义":"101180102","荥阳":"101180103","登封":"101180104","新密":"101180105","新郑":"101180106","中牟":"101180107","郑州农试站":"101180108","安阳":"101180201","汤阴":"101180202","滑县":"101180203","内黄":"101180204","林州":"101180205","新乡":"101180301","获嘉":"101180302","原阳":"101180303","辉县":"101180304","卫辉":"101180305","延津":"101180306","封丘":"101180307","长垣":"101180308","许昌":"101180401","鄢陵":"101180402","襄城":"101180403","长葛":"101180404","禹州":"101180405","平顶山":"101180501","郏县":"101180502","宝丰":"101180503","汝州":"101180504","叶县":"101180505","舞钢":"101180506","鲁山":"101180507","信阳":"101180601","息县":"101180602","罗山":"101180603","光山":"101180604","新县":"101180605","淮滨":"101180606","潢川":"101180607","固始":"101180608","商城":"101180609","鸡公山":"101180610","信阳地区农试站":"101180611","南阳":"101180701","南召":"101180702","方城":"101180703","社旗":"101180704","西峡":"101180705","内乡":"101180706","镇平":"101180707","淅川":"101180708","新野":"101180709","唐河":"101180710","邓州":"101180711","桐柏":"101180712","开封":"101180801","杞县":"101180802","尉氏":"101180803","通许":"101180804","兰考":"101180805","洛阳":"101180901","新安":"101180902","孟津":"101180903","宜阳":"101180904","洛宁":"101180905","伊川":"101180906","嵩县":"101180907","偃师":"101180908","栾川":"101180909","汝阳":"101180910","商丘":"101181001","睢阳区":"101181002","睢县":"101181003","民权":"101181004","虞城":"101181005","柘城":"101181006","宁陵":"101181007","夏邑":"101181008","永城":"101181009","焦作":"101181101","修武":"101181102","武陟":"101181103","沁阳":"101181104","博爱":"101181106","温县":"101181107","孟州":"101181108","鹤壁":"101181201","浚县":"101181202","淇县":"101181203","濮阳":"101181301","台前":"101181302","南乐":"101181303","清丰":"101181304","范县":"101181305","周口":"101181401","扶沟":"101181402","太康":"101181403","淮阳":"101181404","西华":"101181405","商水":"101181406","项城":"101181407","郸城":"101181408","鹿邑":"101181409","沈丘":"101181410","黄泛区":"101181411","漯河":"101181501","临颍":"101181502","舞阳":"101181503","驻马店":"101181601","西平":"101181602","遂平":"101181603","上蔡":"101181604","汝南":"101181605","泌阳":"101181606","平舆":"101181607","新蔡":"101181608","确山":"101181609","正阳":"101181610","三门峡":"101181701","灵宝":"101181702","渑池":"101181703","卢氏":"101181704","济源":"101181801","南京":"101190101","溧水":"101190102","高淳":"101190103","江宁":"101190104","六合":"101190105","江浦":"101190106","浦口":"101190107","无锡":"101190201","江阴":"101190202","宜兴":"101190203","镇江":"101190301","丹阳":"101190302","扬中":"101190303","句容":"101190304","丹徒":"101190305","苏州":"101190401","常熟":"101190402","张家港":"101190403","昆山":"101190404","吴县东山":"101190405","吴县":"101190406","吴江":"101190407","太仓":"101190408","南通":"101190501","海安":"101190502","如皋":"101190503","如东":"101190504","吕泗":"101190505","吕泗渔场":"101190506","启东":"101190507","海门":"101190508","扬州":"101190601","宝应":"101190602","仪征":"101190603","高邮":"101190604","江都":"101190605","邗江":"101190606","盐城":"101190701","响水":"101190702","滨海":"101190703","阜宁":"101190704","射阳":"101190705","建湖":"101190706","东台":"101190707","大丰":"101190708","盐都":"101190709","徐州":"101190801","徐州农试站":"101190802","丰县":"101190803","沛县":"101190804","邳州":"101190805","睢宁":"101190806","新沂":"101190807","淮安":"101190901","金湖":"101190902","盱眙":"101190903","洪泽":"101190904","涟水":"101190905","淮阴县":"101190906","淮阴":"101190907","楚州":"101190908","连云港":"101191001","东海":"101191002","赣榆":"101191003","灌云":"101191004","灌南":"101191005","西连岛":"101191006","燕尾港":"101191007","常州":"101191101","溧阳":"101191102","金坛":"101191103","泰州":"101191201","兴化":"101191202","泰兴":"101191203","姜堰":"101191204","靖江":"101191205","宿迁":"101191301","沭阳":"101191302","泗阳":"101191303","泗洪":"101191304","武汉":"101200101","蔡甸":"101200102","黄陂":"101200103","新洲":"101200104","江夏":"101200105","襄樊":"101200201","襄阳":"101200202","保康":"101200203","南漳":"101200204","宜城":"101200205","老河口":"101200206","谷城":"101200207","枣阳":"101200208","鄂州":"101200301","孝感":"101200401","安陆":"101200402","云梦":"101200403","大悟":"101200404","应城":"101200405","汉川":"101200406","黄冈":"101200501","红安":"101200502","麻城":"101200503","罗田":"101200504","英山":"101200505","浠水":"101200506","蕲春":"101200507","黄梅":"101200508","武穴":"101200509","黄石":"101200601","大冶":"101200602","阳新":"101200603","咸宁":"101200701","赤壁":"101200702","嘉鱼":"101200703","崇阳":"101200704","通城":"101200705","通山":"101200706","荆州":"101200801","江陵":"101200802","公安":"101200803","石首":"101200804","监利":"101200805","洪湖":"101200806","松滋":"101200807","宜昌":"101200901","远安":"101200902","秭归":"101200903","兴山":"101200904","宜昌县":"101200905","五峰":"101200906","当阳":"101200907","长阳":"101200908","宜都":"101200909","枝江":"101200910","三峡":"101200911","夷陵":"101200912","恩施":"101201001","利川":"101201002","建始":"101201003","咸丰":"101201004","宣恩":"101201005","鹤峰":"101201006","来凤":"101201007","巴东":"101201008","绿葱坡":"101201009","十堰":"101201101","竹溪":"101201102","郧西":"101201103","郧县":"101201104","竹山":"101201105","房县":"101201106","丹江口":"101201107","神农架":"101201201","随州":"101201301","广水":"101201302","荆门":"101201401","钟祥":"101201402","京山":"101201403","天门":"101201501","仙桃":"101201601","潜江":"101201701","杭州":"101210101","萧山":"101210102","桐庐":"101210103","淳安":"101210104","建德":"101210105","余杭":"101210106","临安":"101210107","富阳":"101210108","湖州":"101210201","长兴":"101210202","安吉":"101210203","德清":"101210204","嘉兴":"101210301","嘉善":"101210302","海宁":"101210303","桐乡":"101210304","平湖":"101210305","海盐":"101210306","宁波":"101210401","慈溪":"101210403","余姚":"101210404","奉化":"101210405","象山":"101210406","石浦":"101210407","宁海":"101210408","鄞县":"101210409","北仑":"101210410","鄞州":"101210411","镇海":"101210412","绍兴":"101210501","诸暨":"101210502","上虞":"101210503","新昌":"101210504","嵊州":"101210505","台州":"101210601","括苍山":"101210602","玉环":"101210603","三门":"101210604","天台":"101210605","仙居":"101210606","温岭":"101210607","大陈":"101210608","洪家":"101210609","温州":"101210701","泰顺":"101210702","文成":"101210703","平阳":"101210704","瑞安":"101210705","洞头":"101210706","乐清":"101210707","永嘉":"101210708","苍南":"101210709","丽水":"101210801","遂昌":"101210802","龙泉":"101210803","缙云":"101210804","青田":"101210805","云和":"101210806","庆元":"101210807","金华":"101210901","浦江":"101210902","兰溪":"101210903","义乌":"101210904","东阳":"101210905","武义":"101210906","永康":"101210907","磐安":"101210908","衢州":"101211001","常山":"101211002","开化":"101211003","龙游":"101211004","江山":"101211005","舟山":"101211101","嵊泗":"101211102","嵊山":"101211103","岱山":"101211104","普陀":"101211105","定海":"101211106","合肥":"101220101","长丰":"101220102","肥东":"101220103","肥西":"101220104","蚌埠":"101220201","怀远":"101220202","固镇":"101220203","五河":"101220204","芜湖":"101220301","繁昌":"101220302","芜湖县":"101220303","南陵":"101220304","淮南":"101220401","凤台":"101220402","马鞍山":"101220501","当涂":"101220502","安庆":"101220601","枞阳":"101220602","太湖":"101220603","潜山":"101220604","怀宁":"101220605","宿松":"101220606","望江":"101220607","岳西":"101220608","桐城":"101220609","宿州":"101220701","砀山":"101220702","灵璧":"101220703","泗县":"101220704","萧县":"101220705","阜阳":"101220801","阜南":"101220802","颍上":"101220803","临泉":"101220804","界首":"101220805","太和":"101220806","亳州":"101220901","涡阳":"101220902","利辛":"101220903","蒙城":"101220904","黄山站":"101221001","黄山区":"101221002","屯溪":"101221003","祁门":"101221004","黟县":"101221005","歙县":"101221006","休宁":"101221007","黄山市":"101221008","滁州":"101221101","凤阳":"101221102","明光":"101221103","定远":"101221104","全椒":"101221105","来安":"101221106","天长":"101221107","淮北":"101221201","濉溪":"101221202","铜陵":"101221301","宣城":"101221401","泾县":"101221402","旌德":"101221403","宁国":"101221404","绩溪":"101221405","广德":"101221406","郎溪":"101221407","六安":"101221501","霍邱":"101221502","寿县":"101221503","南溪":"101221504","金寨":"101221505","霍山":"101221506","舒城":"101221507","巢湖":"101221601","庐江":"101221602","无为":"101221603","含山":"101221604","和县":"101221605","池州":"101221701","东至":"101221702","青阳":"101221703","九华山":"101221704","石台":"101221705","福州":"101230101","闽清":"101230102","闽侯":"101230103","罗源":"101230104","连江":"101230105","马祖":"101230106","永泰":"101230107","平潭":"101230108","福州郊区":"101230109","长乐":"101230110","福清":"101230111","平潭海峡大桥":"101230112","厦门":"101230201","同安":"101230202","宁德":"101230301","古田":"101230302","霞浦":"101230303","寿宁":"101230304","周宁":"101230305","福安":"101230306","柘荣":"101230307","福鼎":"101230308","屏南":"101230309","莆田":"101230401","仙游":"101230402","秀屿港":"101230403","泉州":"101230501","安溪":"101230502","九仙山":"101230503","永春":"101230504","德化":"101230505","南安":"101230506","崇武":"101230507","晋江":"101230509","漳州":"101230601","长泰":"101230602","南靖":"101230603","平和":"101230604","龙海":"101230605","漳浦":"101230606","诏安":"101230607","东山":"101230608","云霄":"101230609","华安":"101230610","龙岩":"101230701","长汀":"101230702","连城":"101230703","武平":"101230704","上杭":"101230705","永定":"101230706","漳平":"101230707","三明":"101230801","宁化":"101230802","清流":"101230803","泰宁":"101230804","将乐":"101230805","建宁":"101230806","明溪":"101230807","沙县":"101230808","尤溪":"101230809","永安":"101230810","大田":"101230811","南平":"101230901","顺昌":"101230902","光泽":"101230903","邵武":"101230904","武夷山":"101230905","浦城":"101230906","建阳":"101230907","松溪":"101230908","政和":"101230909","建瓯":"101230910","南昌":"101240101","新建":"101240102","南昌县":"101240103","安义":"101240104","进贤":"101240105","莲塘":"101240106","九江":"101240201","瑞昌":"101240202","庐山":"101240203","武宁":"101240204","德安":"101240205","永修":"101240206","湖口":"101240207","彭泽":"101240208","星子":"101240209","都昌":"101240210","棠荫":"101240211","修水":"101240212","上饶":"101240301","鄱阳":"101240302","婺源":"101240303","康山":"101240304","余干":"101240305","万年":"101240306","德兴":"101240307","上饶县":"101240308","弋阳":"101240309","横峰":"101240310","铅山":"101240311","玉山":"101240312","广丰":"101240313","波阳":"101240314","抚州":"101240401","广昌":"101240402","乐安":"101240403","崇仁":"101240404","金溪":"101240405","资溪":"101240406","宜黄":"101240407","南城":"101240408","南丰":"101240409","黎川":"101240410","宜春":"101240501","铜鼓":"101240502","宜丰":"101240503","万载":"101240504","上高":"101240505","靖安":"101240506","奉新":"101240507","高安":"101240508","樟树":"101240509","丰城":"101240510","吉安":"101240601","吉安县":"101240602","吉水":"101240603","新干":"101240604","峡江":"101240605","永丰":"101240606","永新":"101240607","井冈山":"101240608","万安":"101240609","遂川":"101240610","泰和":"101240611","安福":"101240612","宁冈":"101240613","赣州":"101240701","崇义":"101240702","上犹":"101240703","南康":"101240704","大余":"101240705","信丰":"101240706","宁都":"101240707","石城":"101240708","瑞金":"101240709","于都":"101240710","会昌":"101240711","安远":"101240712","全南":"101240713","龙南":"101240714","定南":"101240715","寻乌":"101240716","兴国":"101240717","景德镇":"101240801","乐平":"101240802","萍乡":"101240901","莲花":"101240902","新余":"101241001","分宜":"101241002","鹰潭":"101241101","余江":"101241102","贵溪":"101241103","长沙":"101250101","宁乡":"101250102","浏阳":"101250103","马坡岭":"101250104","湘潭":"101250201","韶山":"101250202","湘乡":"101250203","株洲":"101250301","攸县":"101250302","醴陵":"101250303","株洲县":"101250304","茶陵":"101250305","炎陵":"101250306","衡阳":"101250401","衡山":"101250402","衡东":"101250403","祁东":"101250404","衡阳县":"101250405","常宁":"101250406","衡南":"101250407","耒阳":"101250408","南岳":"101250409","郴州":"101250501","桂阳":"101250502","嘉禾":"101250503","宜章":"101250504","临武":"101250505","桥口":"101250506","资兴":"101250507","汝城":"101250508","安仁":"101250509","永兴":"101250510","桂东":"101250511","常德":"101250601","安乡":"101250602","桃源":"101250603","汉寿":"101250604","澧县":"101250605","临澧":"101250606","石门":"101250607","益阳":"101250700","赫山区":"101250701","南县":"101250702","桃江":"101250703","安化":"101250704","沅江":"101250705","娄底":"101250801","双峰":"101250802","冷水江":"101250803","冷水滩":"101250804","新化":"101250805","涟源":"101250806","邵阳":"101250901","隆回":"101250902","洞口":"101250903","新邵":"101250904","邵东":"101250905","绥宁":"101250906","新宁":"101250907","武冈":"101250908","城步":"101250909","邵阳县":"101250910","岳阳":"101251001","华容":"101251002","湘阴":"101251003","汨罗":"101251004","平江":"101251005","临湘":"101251006","张家界":"101251101","桑植":"101251102","慈利":"101251103","怀化":"101251201","鹤城区":"101251202","沅陵":"101251203","辰溪":"101251204","靖州":"101251205","会同":"101251206","通道":"101251207","麻阳":"101251208","新晃":"101251209","芷江":"101251210","溆浦":"101251211","黔阳":"101251301","洪江":"101251302","永州":"101251401","祁阳":"101251402","东安":"101251403","双牌":"101251404","道县":"101251405","宁远":"101251406","江永":"101251407","蓝山":"101251408","新田":"101251409","江华":"101251410","吉首":"101251501","保靖":"101251502","永顺":"101251503","古丈":"101251504","凤凰":"101251505","泸溪":"101251506","龙山":"101251507","花垣":"101251508","贵阳":"101260101","白云":"101260102","花溪":"101260103","乌当":"101260104","息烽":"101260105","开阳":"101260106","修文":"101260107","清镇":"101260108","遵义":"101260201","遵义县":"101260202","仁怀":"101260203","绥阳":"101260204","湄潭":"101260205","凤冈":"101260206","桐梓":"101260207","赤水":"101260208","习水":"101260209","道真":"101260210","正安":"101260211","务川":"101260212","余庆":"101260213","汇川":"101260214","安顺":"101260301","普定":"101260302","镇宁":"101260303","平坝":"101260304","紫云":"101260305","关岭":"101260306","都匀":"101260401","贵定":"101260402","瓮安":"101260403","长顺":"101260404","福泉":"101260405","惠水":"101260406","龙里":"101260407","罗甸":"101260408","平塘":"101260409","独山":"101260410","三都":"101260411","荔波":"101260412","凯里":"101260501","岑巩":"101260502","施秉":"101260503","镇远":"101260504","黄平":"101260505","黄平旧洲":"101260506","麻江":"101260507","丹寨":"101260508","三穗":"101260509","台江":"101260510","剑河":"101260511","雷山":"101260512","黎平":"101260513","天柱":"101260514","锦屏":"101260515","榕江":"101260516","从江":"101260517","炉山":"101260518","铜仁":"101260601","江口":"101260602","玉屏":"101260603","万山":"101260604","思南":"101260605","塘头":"101260606","印江":"101260607","石阡":"101260608","沿河":"101260609","德江":"101260610","松桃":"101260611","毕节":"101260701","赫章":"101260702","金沙":"101260703","威宁":"101260704","大方":"101260705","纳雍":"101260706","织金":"101260707","六盘水":"101260801","六枝":"101260802","水城":"101260803","盘县":"101260804","黔西":"101260901","晴隆":"101260902","兴仁":"101260903","贞丰":"101260904","望谟":"101260905","兴义":"101260906","安龙":"101260907","册亨":"101260908","普安":"101260909","成都":"101270101","龙泉驿":"101270102","新都":"101270103","温江":"101270104","金堂":"101270105","双流":"101270106","郫县":"101270107","大邑":"101270108","蒲江":"101270109","新津":"101270110","都江堰":"101270111","彭州":"101270112","邛崃":"101270113","崇州":"101270114","崇庆":"101270115","彭县":"101270116","攀枝花":"101270201","仁和":"101270202","米易":"101270203","盐边":"101270204","自贡":"101270301","富顺":"101270302","荣县":"101270303","绵阳":"101270401","三台":"101270402","盐亭":"101270403","安县":"101270404","梓潼":"101270405","北川":"101270406","平武":"101270407","江油":"101270408","南充":"101270501","南部":"101270502","营山":"101270503","蓬安":"101270504","仪陇":"101270505","西充":"101270506","阆中":"101270507","达州":"101270601","宣汉":"101270602","开江":"101270603","大竹":"101270604","渠县":"101270605","万源":"101270606","达川":"101270607","遂宁":"101270701","蓬溪":"101270702","射洪":"101270703","广安":"101270801","岳池":"101270802","武胜":"101270803","邻水":"101270804","华蓥山":"101270805","巴中":"101270901","通江":"101270902","南江":"101270903","平昌":"101270904","泸州":"101271001","泸县":"101271003","合江":"101271004","叙永":"101271005","古蔺":"101271006","纳溪":"101271007","宜宾":"101271101","宜宾农试站":"101271102","宜宾县":"101271103","江安":"101271105","长宁":"101271106","高县":"101271107","珙县":"101271108","筠连":"101271109","兴文":"101271110","屏山":"101271111","内江":"101271201","东兴":"101271202","威远":"101271203","资中":"101271204","隆昌":"101271205","资阳":"101271301","安岳":"101271302","乐至":"101271303","简阳":"101271304","乐山":"101271401","犍为":"101271402","井研":"101271403","夹江":"101271404","沐川":"101271405","峨边":"101271406","马边":"101271407","峨眉":"101271408","峨眉山":"101271409","眉山":"101271501","仁寿":"101271502","彭山":"101271503","洪雅":"101271504","丹棱":"101271505","青神":"101271506","凉山":"101271601","木里":"101271603","盐源":"101271604","德昌":"101271605","会理":"101271606","会东":"101271607","宁南":"101271608","普格":"101271609","西昌":"101271610","金阳":"101271611","昭觉":"101271612","喜德":"101271613","冕宁":"101271614","越西":"101271615","甘洛":"101271616","雷波":"101271617","美姑":"101271618","布拖":"101271619","雅安":"101271701","名山":"101271702","荣经":"101271703","汉源":"101271704","石棉":"101271705","天全":"101271706","芦山":"101271707","宝兴":"101271708","甘孜":"101271801","康定":"101271802","泸定":"101271803","丹巴":"101271804","九龙":"101271805","雅江":"101271806","道孚":"101271807","炉霍":"101271808","新龙":"101271809","德格":"101271810","白玉":"101271811","石渠":"101271812","色达":"101271813","理塘":"101271814","巴塘":"101271815","乡城":"101271816","稻城":"101271817","得荣":"101271818","阿坝":"101271901","汶川":"101271902","理县":"101271903","茂县":"101271904","松潘":"101271905","九寨沟":"101271906","金川":"101271907","小金":"101271908","黑水":"101271909","马尔康":"101271910","壤塘":"101271911","若尔盖":"101271912","红原":"101271913","南坪":"101271914","德阳":"101272001","中江":"101272002","广汉":"101272003","什邡":"101272004","绵竹":"101272005","罗江":"101272006","广元":"101272101","旺苍":"101272102","青川":"101272103","剑阁":"101272104","苍溪":"101272105","广州":"101280101","番禺":"101280102","从化":"101280103","增城":"101280104","花都":"101280105","天河":"101280106","韶关":"101280201","乳源":"101280202","始兴":"101280203","翁源":"101280204","乐昌":"101280205","仁化":"101280206","南雄":"101280207","新丰":"101280208","曲江":"101280209","惠州":"101280301","博罗":"101280302","惠阳":"101280303","惠东":"101280304","龙门":"101280305","梅州":"101280401","兴宁":"101280402","蕉岭":"101280403","大埔":"101280404","丰顺":"101280406","平远":"101280407","五华":"101280408","梅县":"101280409","汕头":"101280501","潮阳":"101280502","澄海":"101280503","南澳":"101280504","云澳":"101280505","南澎岛":"101280506","深圳":"101280601","珠海":"101280701","斗门":"101280702","黄茅洲":"101280703","佛山":"101280800","顺德":"101280801","三水":"101280802","南海":"101280803","肇庆":"101280901","广宁":"101280902","四会":"101280903","德庆":"101280905","怀集":"101280906","封开":"101280907","高要":"101280908","湛江":"101281001","吴川":"101281002","雷州":"101281003","徐闻":"101281004","廉江":"101281005","硇洲":"101281006","遂溪":"101281007","江门":"101281101","开平":"101281103","新会":"101281104","恩平":"101281105","台山":"101281106","上川岛":"101281107","鹤山":"101281108","河源":"101281201","紫金":"101281202","连平":"101281203","和平":"101281204","龙川":"101281205","清远":"101281301","连南":"101281302","连州":"101281303","连山":"101281304","阳山":"101281305","佛冈":"101281306","英德":"101281307","云浮":"101281401","罗定":"101281402","新兴":"101281403","郁南":"101281404","潮州":"101281501","饶平":"101281502","东莞":"101281601","中山":"101281701","阳江":"101281801","阳春":"101281802","揭阳":"101281901","揭西":"101281902","普宁":"101281903","惠来":"101281904","茂名":"101282001","高州":"101282002","化州":"101282003","电白":"101282004","信宜":"101282005","汕尾":"101282101","海丰":"101282102","陆丰":"101282103","遮浪":"101282104","东沙岛":"101282105","昆明":"101290101","昆明农试站":"101290102","东川":"101290103","寻甸":"101290104","晋宁":"101290105","宜良":"101290106","石林":"101290107","呈贡":"101290108","富民":"101290109","嵩明":"101290110","禄劝":"101290111","安宁":"101290112","太华山":"101290113","大理":"101290201","云龙":"101290202","漾鼻":"101290203","永平":"101290204","宾川":"101290205","弥渡":"101290206","祥云":"101290207","魏山":"101290208","剑川":"101290209","洱源":"101290210","鹤庆":"101290211","南涧":"101290212","红河":"101290301","石屏":"101290302","建水":"101290303","弥勒":"101290304","元阳":"101290305","绿春":"101290306","开远":"101290307","个旧":"101290308","蒙自":"101290309","屏边":"101290310","泸西":"101290311","金平":"101290312","曲靖":"101290401","沾益":"101290402","陆良":"101290403","富源":"101290404","马龙":"101290405","师宗":"101290406","罗平":"101290407","会泽":"101290408","宣威":"101290409","保山":"101290501","富宁":"101290502","龙陵":"101290503","施甸":"101290504","昌宁":"101290505","腾冲":"101290506","文山":"101290601","西畴":"101290602","马关":"101290603","麻栗坡":"101290604","砚山":"101290605","邱北":"101290606","广南":"101290607","玉溪":"101290701","澄江":"101290702","江川":"101290703","通海":"101290704","华宁":"101290705","新平":"101290706","易门":"101290707","峨山":"101290708","元江":"101290709","楚雄":"101290801","大姚":"101290802","元谋":"101290803","姚安":"101290804","牟定":"101290805","南华":"101290806","武定":"101290807","禄丰":"101290808","双柏":"101290809","永仁":"101290810","普洱":"101290901","景谷":"101290902","景东":"101290903","澜沧":"101290904","墨江":"101290906","江城":"101290907","孟连":"101290908","西盟":"101290909","镇源":"101290910","镇沅":"101290911","宁洱":"101290912","昭通":"101291001","鲁甸":"101291002","彝良":"101291003","镇雄":"101291004","威信":"101291005","巧家":"101291006","绥江":"101291007","永善":"101291008","盐津":"101291009","大关":"101291010","临沧":"101291101","沧源":"101291102","耿马":"101291103","双江":"101291104","凤庆":"101291105","永德":"101291106","云县":"101291107","镇康":"101291108","怒江":"101291201","福贡":"101291203","兰坪":"101291204","泸水":"101291205","六库":"101291206","贡山":"101291207","香格里拉":"101291301","德钦":"101291302","维西":"101291303","中甸":"101291304","丽江":"101291401","永胜":"101291402","华坪":"101291403","宁蒗":"101291404","德宏":"101291501","潞江坝":"101291502","陇川":"101291503","盈江":"101291504","畹町镇":"101291505","瑞丽":"101291506","梁河":"101291507","潞西":"101291508","景洪":"101291601","大勐龙":"101291602","勐海":"101291603","景洪电站":"101291604","勐腊":"101291605","南宁":"101300101","南宁城区":"101300102","邕宁":"101300103","横县":"101300104","隆安":"101300105","马山":"101300106","上林":"101300107","武鸣":"101300108","宾阳":"101300109","硕龙":"101300110","崇左":"101300201","天等":"101300202","龙州":"101300203","凭祥":"101300204","大新":"101300205","扶绥":"101300206","宁明":"101300207","海渊":"101300208","柳州":"101300301","柳城":"101300302","沙塘":"101300303","鹿寨":"101300304","柳江":"101300305","融安":"101300306","融水":"101300307","三江":"101300308","来宾":"101300401","忻城":"101300402","金秀":"101300403","象州":"101300404","武宣":"101300405","桂林":"101300501","桂林农试站":"101300502","龙胜":"101300503","永福":"101300504","临桂":"101300505","兴安":"101300506","灵川":"101300507","全州":"101300508","灌阳":"101300509","阳朔":"101300510","恭城":"101300511","平乐":"101300512","荔浦":"101300513","资源":"101300514","梧州":"101300601","藤县":"101300602","太平":"101300603","苍梧":"101300604","蒙山":"101300605","岑溪":"101300606","贺州":"101300701","昭平":"101300702","富川":"101300703","钟山":"101300704","信都":"101300705","贵港":"101300801","桂平":"101300802","平南":"101300803","玉林":"101300901","博白":"101300902","北流":"101300903","容县":"101300904","陆川":"101300905","百色":"101301001","那坡":"101301002","田阳":"101301003","德保":"101301004","靖西":"101301005","田东":"101301006","平果":"101301007","隆林":"101301008","西林":"101301009","乐业":"101301010","凌云":"101301011","田林":"101301012","钦州":"101301101","浦北":"101301102","灵山":"101301103","河池":"101301201","天峨":"101301202","东兰":"101301203","巴马":"101301204","环江":"101301205","罗城":"101301206","宜州":"101301207","凤山":"101301208","南丹":"101301209","都安":"101301210","北海":"101301301","合浦":"101301302","涠洲岛":"101301303","防城港":"101301401","上思":"101301402","板栏":"101301404","防城":"101301405","海口":"101310101","琼山":"101310102","三亚":"101310201","东方":"101310202","临高":"101310203","澄迈":"101310204","儋州":"101310205","昌江":"101310206","白沙":"101310207","琼中":"101310208","定安":"101310209","屯昌":"101310210","琼海":"101310211","文昌":"101310212","清兰":"101310213","保亭":"101310214","万宁":"101310215","陵水":"101310216","西沙":"101310217","珊瑚岛":"101310218","永署礁":"101310219","南沙岛":"101310220","乐东":"101310221","五指山":"101310222","通什":"101310223","香港":"101320101","新界":"101320103","中环":"101320104","铜锣湾":"101320105","澳门":"101330101","台北县":"101340101","台北市":"101340102","高雄":"101340201","大武":"101340203","恒春":"101340204","兰屿":"101340205","台南":"101340301","台中":"101340401","桃园":"101340501","新竹县":"101340601","新竹市":"101340602","公馆":"101340603","宜兰":"101340701","马公":"101340801","东吉屿":"101340802","嘉义":"101340901","阿里山":"101340902","新港":"101340904"} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/constant/Constant.js b/Yunzai/plugins/Guoba-Plugin/server/constant/Constant.js deleted file mode 100644 index 713c80c741768f1141ffc09b48ad6ae7db79ed56..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/constant/Constant.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * 一些公用常量 - */ -export default { - // header中传递的TokenKey - TOKEN_KEY: 'guoba-access-token', - - // redis前缀 - REDIS_PREFIX: 'Yz:Guoba:', - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/ErrorController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/ErrorController.js deleted file mode 100644 index 4c8f519e698d8778ff6a37b98dcfc3dee9f526cb..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/ErrorController.js +++ /dev/null @@ -1,19 +0,0 @@ -import {Result, RestController} from '#guoba.framework' - -/** 错误处理 */ -export default class ErrorController extends RestController { - constructor(app) { - super('', app) - } - - created() { - this.app.all('*', function (req, res) { - let result = Result.notFound() - res.status(result.httpStatus).json(result.toJSON()) - }) - } - - /** 加载优先级 */ - static priority = 99999 - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/HelperController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/HelperController.js deleted file mode 100644 index 6516f5212822c2b671e5711b7d8f9c3a8472ebe8..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/HelperController.js +++ /dev/null @@ -1,69 +0,0 @@ -import {autowired, Result, RestController} from '#guoba.framework'; -import {cfg} from '#guoba.platform'; - -const RedisDecorator = await Guoba.GID('#/decorator/RedisDecorator.js') - -/** - * 工具类Controller - */ -export default class HelperController extends RestController { - - helperService = autowired('helperService') - - constructor(app) { - super('/helper', app) - } - - registerRouters() { - // 中转请求,绕过跨域和防盗链 - this.all('/transit', this.transitRequest) - // 获取天气信息(缓存6小时) - this.get('/city_weather', this.getCityWeather, [ - new RedisDecorator('city_weather:${config.getCity()}', {EX: 60 * 60 * 6, getCity: this.getCity}), - ]) - // 本地尝试释放端口 - // 假设用户关闭yunzai时,没有关干净,导致端口号被异常占用 - // 此时另一方启动的锅巴可以尝试调用此接口,来关闭当前的端口占用 - // 安全性:仅限 localhost 访问 - this.delete('/release_port', this.tryReleasePort) - } - - transitRequest(req, res) { - return this.helperService.transitRequest(req, res) - } - - getCity() { - return cfg.get('base.city') - } - - async getCityWeather() { - try { - let city = this.getCity() - return Result.ok({ - weather: await this.helperService.getWeather(city), - }) - } catch (e) { - logger.error(e) - let msg = e.message || e - return Result.error(msg) - } - } - - tryReleasePort(req) { - if (req.hostname !== 'localhost') { - return Result.noAuth() - } - logger.mark('[Guoba] 服务已在另一处启动,正在尝试停止当前服务……') - setTimeout(() => { - Guoba.server.close(err => { - if (err) { - logger.mark('[Guoba] 服务停止失败') - logger.error(err) - } else { - logger.mark('[Guoba] 已停止当前服务,您如果想要多开锅巴,请更改不同的端口号~') - } - }) - }, 10) - return Result.ok() - } -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/biz/ConfigController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/biz/ConfigController.js deleted file mode 100644 index 3bcec71e19b266e517d99fee4bebe20f3832ec76..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/biz/ConfigController.js +++ /dev/null @@ -1,41 +0,0 @@ -import {autowired, Result, RestController} from '#guoba.framework'; - -export default class ConfigController extends RestController { - - configService = autowired('configServiceImpl') - - constructor(app) { - super('/config', app) - } - - registerRouters() { - this.get('/tabs', this.tabs) - this.get('/data', this.getData) - this.post('/data', this.setData) - this.delete('/card-Form', this.removeCardForm) - } - - async tabs() { - let config = await this.configService.getConfigTabs() - return Result.ok(config) - } - - async getData(req) { - let {key} = req.query - let data = await this.configService.getConfigData(key) - return Result.ok(data) - } - - async setData(req) { - let {key, data} = req.body - await this.configService.setConfigData(key, data) - return Result.ok('保存成功~') - } - - async removeCardForm(req) { - let {formKey, cardKey} = req.body - await this.configService.removeCardForm(formKey, cardKey) - return Result.ok('删除成功~') - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/biz/OicqController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/biz/OicqController.js deleted file mode 100644 index a6e100d091496986fc67bf9749851e0c9b337440..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/biz/OicqController.js +++ /dev/null @@ -1,123 +0,0 @@ -import {autowired, Result, RestController, Pager} from '#guoba.framework'; - -/** QQ相关操作 */ -export class OicqController extends RestController { - - oicqService = autowired('oicqService') - - constructor(app) { - super('/oicq', app) - } - - registerRouters() { - this.get('/pick/user', this.pickUser) - this.get('/pick/group', this.pickGroup) - - // avatarUrl: `https://q1.qlogo.cn/g?b=qq&s=${0}&nk=${qq}`, - this.get('/friend/list', this.queryFriendList) - this.get('/friend/count', () => Result.ok(this.oicqService.getFriendCount())) - - this.get('/group/list', this.queryGroupList) - } - - /** 获取一个QQ用户信息 */ - async pickUser(req) { - let {qq} = req.query - if (!qq) { - return Result.error(`参数 qq 不能为空`) - } - let user = await this.oicqService.pickUser(qq) - return Result.ok(user) - } - - /** 获取一个QQ群组信息 */ - async pickGroup(req) { - let {groupId} = req.query - if (!groupId) { - return Result.error(`参数 groupId 不能为空`) - } - let group = await this.oicqService.pickGroup(groupId) - return Result.ok(group) - } - - async queryGroupList(req) { - let {pageNo, pageSize, group_id, query_group_id, query_name} = req.query - pageNo = !pageNo ? 1 : Number.parseInt(pageNo) - pageSize = !pageSize ? 10 : Number.parseInt(pageSize) - - let groupList = Bot.getGroupList() - let list = [] - let filter = (_) => true - // 根据 group_id 模糊查询 - if (query_group_id || query_name) { - filter = (item) => { - let flag = true - if (query_group_id) { - flag = String(item.group_id).includes(query_group_id) - } - // 根据群名称或备注模糊筛选 - if (query_name && flag) { - flag = String(item.group_name).includes(query_name) - } - return flag - } - } - // 根据group_id过滤 - let groupId = group_id ? group_id.split(',').map(u => Number.parseInt(u)) : null - if (groupId && groupId.length > 0) { - pageNo = 1 - pageSize = groupId.length - filter = (item) => groupId.includes(item.group_id) - } - - for (let [, item] of groupList) { - if (filter(item)) { - list.push(item) - } - } - - let page = new Pager(list, pageNo, pageSize) - return Result.ok(page.toJSON()) - } - - async queryFriendList(req) { - let {pageNo, pageSize, user_id, query_qq, query_name} = req.query - pageNo = !pageNo ? 1 : Number.parseInt(pageNo) - pageSize = !pageSize ? 10 : Number.parseInt(pageSize) - - let friendList = Bot.getFriendList() - let list = [] - let filter = (_) => true - // 根据 qq 模糊查询 - if (query_qq || query_name) { - filter = (item) => { - let flag = true - if (query_qq) { - flag = String(item.user_id).includes(query_qq) - } - // 根据昵称或备注模糊筛选 - if (query_name && flag) { - flag = String(item.nickname).includes(query_name) || String(item.remark).includes(query_name) - } - return flag - } - } - // 根据user_id过滤 - let userId = user_id ? user_id.split(',').map(u => Number.parseInt(u)) : null - if (userId && userId.length > 0) { - pageNo = 1 - pageSize = userId.length - filter = (item) => userId.includes(item.user_id) - } - - for (let [, item] of friendList) { - if (filter(item)) { - list.push(item) - } - } - - let page = new Pager(list, pageNo, pageSize) - return Result.ok(page.toJSON()) - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/biz/PluginController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/biz/PluginController.js deleted file mode 100644 index bae45f5fa98df11457249fb0aa968523f13149f9..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/biz/PluginController.js +++ /dev/null @@ -1,92 +0,0 @@ -import {autowired, Result, RestController} from '#guoba.framework'; -import {GuobaSupportMap} from '#guoba.platform' - -export default class PluginController extends RestController { - - pluginService = autowired('pluginService') - - constructor(app) { - super('/plugin', app) - } - - registerRouters() { - // 获取plugin列表 - this.get('/list', this.getPlugins) - // 获取plugin readme - this.get('/readme', this.getPluginReadme) - // 获取plugin icon(直接显示图片) - this.get('/s/:pluginName/icon', this.getPluginIcon) - // 获取plugin配置数据 - this.get('/s/:pluginName/config', this.getPluginConfig) - // 设置plugin配置数据 - this.put('/s/:pluginName/config', this.setPluginConfig) - } - - /** - * 获取插件列表 - * @param req.query.force 是否清空缓存强制刷新 - * @return {Promise} - */ - async getPlugins(req) { - let {force} = req.query - force = force === 'true' - let data = await this.pluginService.getPlugins(force) - return Result.ok(data) - } - - async getPluginReadme(req) { - let {link, force} = req.query - force = force === 'true' - let text = await this.pluginService.getReadmeText(link, force) - return Result.ok(text) - } - - getSupport(pluginName) { - let supportObject = GuobaSupportMap.get(pluginName) - if (!supportObject) { - throw '该插件不支持锅巴' - } - return supportObject - } - - // 获取插件icon(如果有) - getPluginIcon(req, res) { - let {pluginName} = req.params - let supportObject = this.getSupport(pluginName) - let {pluginInfo} = supportObject - if (!pluginInfo || !pluginInfo.iconPath) { - return Result.error('该插件没有配置iconPath') - } - res.sendFile(pluginInfo.iconPath) - return Result.VOID - } - - // 获取插件配置数据(如果有) - async getPluginConfig(req) { - let {pluginName} = req.params - let supportObject = this.getSupport(pluginName) - let {configInfo} = supportObject - let getConfigData = configInfo?.getConfigData - if (typeof getConfigData !== 'function') { - return Result.error('该插件没有配置getConfigData') - } - return Result.ok(await getConfigData()) - } - - // 设置插件配置数据 - setPluginConfig(req) { - let {pluginName} = req.params - let supportObject = this.getSupport(pluginName) - let {configInfo} = supportObject - let setConfigData = configInfo?.setConfigData - if (typeof setConfigData !== 'function') { - return Result.error('该插件没有配置setConfigData') - } - let flag = setConfigData(req.body, {Result}) - if (flag instanceof Result) { - return flag - } - return Result.ok(flag) - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/V2Transfer.js b/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/V2Transfer.js deleted file mode 100644 index 5605d06cd2cf9d14935a882923b48fafc1c4cb6b..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/V2Transfer.js +++ /dev/null @@ -1,123 +0,0 @@ -import path from 'path' -import moment from 'moment' -import child from 'child_process' -import {Result, RestController} from '#guoba.framework'; -import {_paths} from '#guoba.platform' -import {isV2, sleep} from '#guoba.utils' -import {ACTION_CODE, examplePath, checkJsCompatibility} from './child/constant.js' - -/** - * V2迁移 - */ -export default class V2Transfer extends RestController { - - constructor(app) { - super('/v2-transfer', app) - } - - registerRouters() { - if (isV2) { - this.get('/status', this.getTransferStatus) - this.post('/reset', this.resetTransfer) - // 开始迁移 - this.post('/start', this.startTransfer) - // 取消迁移 - this.put('/stop', this.stopTransfer) - // 检查JS文件兼容性 - this.get('/check-js', this.checkJsFile) - } - } - - get status() { - if (!global.GUOBA_TRANSFER_STATUS) { - this.resetTransfer() - } - return global.GUOBA_TRANSFER_STATUS - } - - log(l) { - let time = moment().format('HH:mm:ss') - this.status.logs.push(`[${time}] ` + l) - logger.mark('[Guoba] ' + l) - } - - getTransferStatus() { - return Result.ok(this.status) - } - - resetTransfer() { - global.GUOBA_TRANSFER_STATUS = { - // 0 = 未开始,1 = 进行中,2 = 成功, 3 = 失败 - state: 0, - // 进度 - percent: 0, - // 日志 - logs: [], - // 失败原因 - reason: '', - } - return Result.ok() - } - - async startTransfer(req, res) { - if (this.status.state !== ACTION_CODE.wait) { - return Result.error('请重启重置迁移状态') - } - await this.forkChildTransfer(req.body.config) - return Result.ok('迁移已开始') - } - - childProcess = null - - async stopTransfer(req, res) { - if (this.status.state !== ACTION_CODE.ing || !this.childProcess) { - return Result.error('没有正在迁移,无需停止') - } - this.childProcess.send({type: 'stop'}) - await sleep(150) - this.childProcess.kill() - this.childProcess = null - this.log('迁移程序已被强行终止') - this.status.state = ACTION_CODE.fail - this.status.reason = '迁移程序已被强行终止' - return Result.ok({}, this.status.reason) - } - - forkChildTransfer(config) { - return new Promise(resolve => { - let modulePath = path.join(_paths.pluginRoot, './server/controller/other/v2/child/transfer.js') - this.childProcess = child.fork(modulePath) - this.childProcess.on('message', (e) => { - if (e.type === 'mounted') { - resolve() - this.childProcess.send({type: 'start', config, BotConfig}) - } else if (e.type === 'log') { - this.log(e.text) - if (e.reason) { - this.status.reason = e.text - } - } else if (e.type === 'state') { - this.status.state = e.state - } else if (e.type === 'percent') { - this.status.percent = e.percent - } else if (e.type === 'redis-execute') { - let fn = redis[e.fn] - if (typeof fn === 'function') { - (async () => { - let data = await fn.apply(redis, e.args) - this.childProcess.send({type: 'redis-callback', id: e.id, data}) - })() - } else { - this.childProcess.send({type: 'redis-callback', id: e.id}) - } - } - }) - }) - } - - async checkJsFile() { - let res = checkJsCompatibility(examplePath) - return Result.ok(res) - } - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/child/.ignored_loader b/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/child/.ignored_loader deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/child/constant.js b/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/child/constant.js deleted file mode 100644 index 29ae9b82b486b5687ed6ea750919fba67c38cf80..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/child/constant.js +++ /dev/null @@ -1,58 +0,0 @@ -import fs from 'fs' -import path from 'path' -import {_paths} from '#guoba.platform' - -// 资源Set -export const RES_SET = { - git: { - gitee: 'https://gitee.com/Le-niao/Yunzai-Bot.git', - github: 'https://github.com/Le-niao/Yunzai-Bot.git' - } -} - -// 操作状态 -export const ACTION_CODE = {wait: 0, ing: 1, success: 2, fail: 3} - -export const examplePath = path.join(_paths.root, '/lib/example') - -// 检查JS兼容性 -export const checkJsCompatibility = (dirPath) => { - let passed = [] - let noPass = [] - if (fs.existsSync(dirPath)) { - let fileList = fs.readdirSync(dirPath) - .filter(i => path.extname(i) === '.js') - .map((i) => path.join(dirPath, i)) - for1: for (let filePath of fileList) { - let body = fs.readFileSync(filePath, {encoding: 'utf-8'}) - let lines = body.split(/\r\n|\n/) - // 检查是否存在不兼容的写法 - for (let i = 0; i < lines.length; i++) { - let line = lines[i] - let lineNum = i + 1 - // 不兼容:相对路径 - if (/\sfrom\s+['"]\.{1,2}\//i.test(line)) { - addCheckJsItem(noPass, filePath, {line, lineNum, reason: '使用“相对路径”写法,无法保证兼容性'}) - continue for1 - } - // 不兼容:BotConfig - if (/BotConfig\./.test(line)) { - addCheckJsItem(noPass, filePath, {line, lineNum, reason: '使用“BotConfig”写法,V3中已不兼容'}) - continue for1 - } - // 不兼容:YunzaiApps - if (/YunzaiApps\./.test(line)) { - addCheckJsItem(noPass, filePath, {line, lineNum, reason: '使用“YunzaiApps”写法,V3中已不兼容'}) - continue for1 - } - } - addCheckJsItem(passed, filePath) - } - } - return {passed, noPass} -} - -function addCheckJsItem(arr, filePath, o) { - arr.push({file: path.basename(filePath), ...o}) - return arr -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/child/transfer.js b/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/child/transfer.js deleted file mode 100644 index 4bbdb4bb5bc189db5019950a388c88c6490cba76..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/other/v2/child/transfer.js +++ /dev/null @@ -1,719 +0,0 @@ -import fs from 'fs' -import path from 'path' -import lodash from 'lodash' -import moment from 'moment' -import child from 'child_process' -import {YamlReader} from '#guoba.framework' -import {_paths} from '#guoba.platform' -import {pluginName, AdapterCheck} from '#guoba.utils' -import {dateDiff, mkdirSync, sleep} from '#guoba.utils' - -import {ACTION_CODE, checkJsCompatibility, examplePath, RES_SET} from './constant.js' - -/* - * 迁移子进程。 - * 使用子进程的优点在于父进程可直接kill掉子进程, - * 实现随时停止迁移。 - */ - -const childIns = {} -let BotConfig = {} - -// 执行redis操作 -const RedisCaller = {} - -if (typeof process.send === 'function') { - process.send({type: 'mounted'}) - process.on('message', (e) => { - if (e.type === 'start') { - BotConfig = e.BotConfig - doTransferV2(e.config).finally(selfExit) - } else if (e.type === 'stop') { - // kill所有子子进程 - for (let ins of Object.values(childIns)) if (ins?.kill) ins.kill() - selfExit() - } else if (e.type === 'redis-callback') { - let caller = RedisCaller[e.id] - if (caller?.callback) { - caller.callback(e.data) - } - } - }) -} - -async function doTransferV2(config) { - let beginTime = moment() - try { - updatePercent(2) - updateState(ACTION_CODE.ing) - log('迁移已开始……') - - await doGitClone(config) - updatePercent(20) - - await sleep(1000) - await doMoveData(config) - updatePercent(50) - - await sleep(1000) - await doMovePlugin(config) - updatePercent(70) - - await sleep(1000) - await doMoveConfig(config) - updatePercent(70) - - await sleep(1000) - await doMoveRedis(config) - updatePercent(80) - - await sleep(1000) - await doTransferJs(config) - updatePercent(90) - - await sleep(1000) - let flag = await doInstallModules(config) - if (!flag) { - log('[重要提示] 迁移成功,但依赖安装失败,请自行排查问题并解决……') - log('一但依赖问题解决,即可直接启动V3云崽。') - } else { - log('迁移成功,请先停止当前云崽,再去启动V3云崽!') - } - log('V3云崽安装目录:' + path.join(config.installPath)) - - // done - updateState(ACTION_CODE.success) - updatePercent(100) - return true - } catch (e) { - if (e !== ACTION_CODE.fail) { - log('[error]' + (e.message || e)) - } - updateState(ACTION_CODE.fail) - } finally { - let endTime = moment() - let diffs = dateDiff(beginTime, endTime) - let timeTip = '' - if (diffs.days) timeTip += diffs.days + '天' - if (diffs.hours) timeTip += diffs.hours + '小时' - if (diffs.minutes) timeTip += diffs.minutes + '分钟' - timeTip += diffs.seconds + '秒' - setTimeout(() => log('迁移已结束,耗时:' + timeTip), 2) - } - return false -} - -// 克隆Git仓库 -function doGitClone({installMode, gitAddress, installPath}) { - if (installMode !== 'new') { - log('使用现有V3目录:' + installPath) - log('注:如选择的目录并非V3目录,则有可能会报错!') - return Promise.resolve() - } - // 全新下载Yunzai-Bot项目 - return new Promise((resolve, reject) => { - let repoURL = RES_SET.git[gitAddress] - if (!repoURL) { - return reject('gitAddress error') - } - log(`正在通过${gitAddress}克隆仓库……`) - mkdirSync(installPath) - let cmd = `git clone --depth=1 -b main ${repoURL} "${installPath}"` - childIns.git = child.exec(cmd, {}, (error, stdout, stderr) => { - if (error) { - let tip = '仓库克隆失败,' - if (/unable to access/.test(error.message)) { - tip += '可能是因为网络不通畅的原因。' - if (gitAddress === 'github') { - setTimeout(() => log('若github多次失败,建议改用gitee'), 1) - } - } else if (/already exists and is not an empty directory/.test(error.message)) { - tip += '选择的目录不是空的' - } else { - tip = '未知原因!\n' + error.message - } - log(tip, true) - reject(ACTION_CODE.fail) - } else { - log('仓库克隆成功!') - resolve(ACTION_CODE.success) - } - }) - }) -} - -const dirMapping = { - // 用户cookie - userCookie: [ - // v2 path - path.join('data/NoteCookie'), - // v3 path - path.join('data/NoteCookie'), - ], - // 用户抽卡数据 - userGacha: [ - path.join('data/html/genshin/gachaJson'), - path.join('data/gachaJson'), - ], - // 用户札记数据 - userNote: [ - path.join('data/NoteData'), - path.join('data/NoteData'), - ], - // 添加的表情 - groupFace: [ - path.join('data/face'), - path.join('data/face'), - ], - groupTextJson: [ - path.join('data/textJson'), - path.join('data/textJson'), - // link key - 'groupFace' - ], - // 喵喵用户数据 - miao_userData: [ - path.join('data/UserData'), - path.join('data/UserData'), - ], - // 成就用户数据 - ach_userData: [ - path.join('data/achievements-plugin'), - path.join('data/achievements-plugin'), - ], -} - -// 移动data文件夹 -async function doMoveData(config) { - let {mode, installPath, rubbishClean} = config - let v3Path = path.join(installPath) - mkdirSync(v3Path) - if (mode === 'full') { - log('开始全量迁移“data”文件夹操作') - } else { - log('正在部分迁移“data”文件夹') - } - if (rubbishClean) { - await sleep(1000) - log('已开启清理垃圾文件') - } - await recursiveDir(['data'], ({dirPaths, filePath, fileName}) => { - if (rubbishClean && !filterJunkFiles(filePath)) { - return - } - try { - let toPath = path.join(v3Path, ...dirPaths, fileName) - let fined = false, currKey = '' - // 特殊处理变更的目录 - for (const [key, mapping] of Object.entries(dirMapping)) { - let [v2Map, v3Map] = mapping - if (toPath.includes(v2Map)) { - currKey = key - fined = true - if (v2Map !== v3Map) { - toPath = toPath.replace(v2Map, v3Map) - } - break - } - } - // 非全量迁移模式下,仅迁移指定的目录 - if (mode !== 'full') { - // 如果是qq文件夹,则无论如何都复制过去 - if (!new RegExp(`data\\${path.sep}[1-9]\\d{4,9}\\${path.sep}`).test(filePath)) { - if (!fined) { - return - } - let mapping = dirMapping[currKey] - if (!mapping) { - return - } - if (mapping[2]) { - currKey = mapping[2] - } - if (!config[currKey]) { - return - } - } - } - mkdirSync(path.dirname(toPath)) - fs.copyFileSync(filePath, toPath) - } catch (e) { - log('复制 ' + filePath + '失败:' + (e.message || e)) - } - }) -} - -// 迁移 plugins -async function doMovePlugin({installPath}) { - log('开始迁移 plugins') - let v2Path = path.join(_paths.root, 'plugins') - let v3Path = path.join(installPath, 'plugins') - let items = fs.readdirSync(v2Path) - for (const item of items) { - if (['games-template-plugin-zolay'].includes(item)) { - continue - } - let itemPath = path.join(v2Path, item) - let stat = fs.statSync(itemPath) - if (stat.isDirectory()) { - log('正在迁移' + item) - let toPath = path.join(v3Path, item) - fs.cpSync(itemPath, toPath, {recursive: true}) - await sleep(1000) - } - } -} - -// 迁移配置文件 -async function doMoveConfig(config) { - /** @return YamlReader */ - const gcr = (k) => getConfigRender(k, config) - - let cfg, temp, blackGroup = [] - - for (let [gid, groupCfg] of Object.entries(BotConfig.group)) { - if (/^\d+$/.test(gid)) { - let disable = groupCfg.disable - if (Array.isArray(disable) && disable.includes('all')) { - blackGroup.push(Number(gid)) - } - } - } - - // 基础配置,包括:主人QQ号、自动同意加好友、自动退小群、Cookie文档地址、使用用户Cookie、黑名单QQ号 - if (config.cfg_basic) { - log('正在迁移基础配置') - // qq - cfg = gcr('qq') - cfg.set('qq', Number(BotConfig.account.qq)) - if (BotConfig.account.pwd) { - cfg.set('pwd', BotConfig.account.pwd) - } - cfg.set('platform', Number(BotConfig.account.platform)) - cfg.save() - // bot - cfg = gcr('bot') - cfg.set('log_level', BotConfig.account.log_level) - if (BotConfig.puppeteer?.executablePath) { - cfg.set('chromium_path', BotConfig.puppeteer?.executablePath) - } - cfg.save() - // other - cfg = gcr('other') - cfg.set('autoFriend', Number(BotConfig.account.autoFriend)) - if (Array.isArray(BotConfig.masterQQ) && BotConfig.masterQQ.length) { - cfg.set('masterQQ', BotConfig.masterQQ) - } - cfg.set('disablePrivate', BotConfig.disablePrivate) - if (BotConfig.disableMsg) { - cfg.set('disableMsg', BotConfig.disableMsg) - } - if (Array.isArray(BotConfig.balckQQ) && BotConfig.balckQQ.length) { - cfg.set('blackQQ', BotConfig.balckQQ) - } - if (blackGroup.length) { - cfg.set('blackGroup', blackGroup) - } - cfg.save() - // redis - cfg = gcr('redis') - cfg.setData(BotConfig.redis) - cfg.save() - // mysSet - cfg = gcr('redis') - cfg.set('allowUseCookie', BotConfig.allowUseNoteCookie ? 1 : 0) - if (BotConfig.cookieDoc) { - cfg.set('cookieDoc', BotConfig.cookieDoc) - } - cfg.save() - } - await sleep(1000) - // mysPubCk - if (config.commonCookie) { - log('正在迁移公共Cookie') - cfg = gcr('mysPubCk') - temp = cfg.jsonData - if (!Array.isArray(temp)) { - temp = [temp] - } - cfg.setData([ - ...temp, - ...(Array.isArray(BotConfig.mysCookies) ? BotConfig.mysCookies : []) - ]) - cfg.save() - } - await sleep(1000) - // 配置:公告推送 - if (config.cfg_pushNews) { - let pushNewsPath = path.join(_paths.data, 'PushNews/PushNews.json') - if (fs.existsSync(pushNewsPath)) { - log('正在迁移米游社新闻推送群聊配置') - cfg = gcr('pushNews') - let pushNews = JSON.parse(fs.readFileSync(pushNewsPath, 'utf8')) - let gList = [] - for (let [gid, newCfg] of Object.entries(pushNews)) { - if (newCfg?.isNewsPush) { - gList.push(Number(gid)) - } - } - if (gList.length) { - cfg.set('announceGroup', gList) - cfg.set('infoGroup', gList) - cfg.save() - } - } - } - await sleep(1000) - // 迁移群默认配置 - if (config.cfg_groupDefault) { - log('正在迁移群聊默认配置') - // group - cfg = gcr('group') - temp = BotConfig.group.default - let defGroup = { - default: { - groupCD: temp.groupCD, - singleCD: temp.singleCD, - onlyReplyAt: temp.onlyReplyAt, - botAlias: Array.isArray(temp.botAlias) ? temp.botAlias : !!temp.botAlias ? [temp.botAlias] : [], - imgAddLimit: temp.imgAddLimit, - imgMaxSize: temp.imgMaxSize, - } - } - cfg.setData(defGroup) - cfg.save() - } - await sleep(1000) - // 迁移群单独配置 - if (config.cfg_group) { - log('正在迁移群单独配置') - cfg = gcr('group') - temp = {} - for (let [gid, groupCfg] of Object.entries(BotConfig.group)) { - if (/^\d+$/.test(gid)) { - gid = Number(gid) - let tempCfg = {} - if (groupCfg.groupCD) { - tempCfg.groupCD = groupCfg.groupCD - } - if (groupCfg.singleCD) { - tempCfg.singleCD = groupCfg.singleCD - } - if (groupCfg.onlyReplyAt) { - tempCfg.onlyReplyAt = groupCfg.onlyReplyAt - } - if (groupCfg.botAlias) { - tempCfg.botAlias = Array.isArray(groupCfg.botAlias) ? groupCfg.botAlias : [groupCfg.botAlias] - } - if (groupCfg.imgAddLimit) { - tempCfg.imgAddLimit = groupCfg.imgAddLimit - } - if (groupCfg.imgMaxSize) { - tempCfg.imgMaxSize = groupCfg.imgMaxSize - } - temp[gid] = tempCfg - } - } - cfg.setData(temp) - cfg.save() - } -} - -const configFileMapping = { - bot: [ - path.join('/config/config/bot.yaml'), - path.join('/config/default_config/bot.yaml'), - ], - qq: [ - path.join('/config/config/qq.yaml'), - path.join('/config/default_config/qq.yaml'), - ], - group: [ - path.join('/config/config/group.yaml'), - path.join('/config/default_config/group.yaml'), - ], - redis: [ - path.join('/config/config/redis.yaml'), - path.join('/config/default_config/redis.yaml'), - ], - other: [ - path.join('/config/config/other.yaml'), - path.join('/config/default_config/other.yaml'), - ], - mysSet: [ - path.join('/plugins/genshin/config/mys.set.yaml'), - path.join('/plugins/genshin/defSet/mys/set.yaml'), - ], - mysPubCk: [ - path.join('/plugins/genshin/config/mys.pubCk.yaml'), - path.join('/plugins/genshin/defSet/mys/pubCk.yaml'), - ], - pushNews: [ - path.join('/plugins/genshin/config/mys.pushNews.yaml'), - path.join('/plugins/genshin/defSet/mys/pushNews.yaml'), - ], -} - -const configRenders = {} - -function getConfigRender(key, {installPath}) { - let render = configRenders[key] - if (!render) { - let [configPath, defaultPath] = configFileMapping[key] - configPath = path.join(installPath, configPath) - if (!fs.existsSync(configPath)) { - defaultPath = path.join(installPath, defaultPath) - mkdirSync(path.dirname(configPath)) - fs.copyFileSync(defaultPath, configPath) - } - render = new YamlReader(configPath, false) - configRenders[key] = render - } - return render -} - -// 迁移Redis -async function doMoveRedis({groupBind, redisClean}) { - if (groupBind) { - log('正在迁移redis') - await sleep(1000) - let keys = await execRedis('keys', 'Yunzai:group_id:*') - if (Array.isArray(keys) && keys.length > 0) { - for (let key of keys) { - let value = await execRedis('get', key) - let newKey = key.replace('Yunzai:', 'Yz:') - await execRedis('setEx', newKey, 3600 * 24 * 30, value) - } - log('redis迁移完成') - } else { - log('redis无需迁移') - } - await sleep(1000) - } - if (redisClean) { - log('正在清理redis') - let cleanKeys = ['Yunzai:*', 'genshin:*'] - for (let cleanKey of cleanKeys) { - let keys = await execRedis('keys', cleanKey) - log(`正在清理: ${cleanKey},共有${keys.length}受影响的key`) - for (let key of keys) { - await execRedis('del', key) - } - await sleep(1000) - } - } -} - -// 迁移JS插件 -async function doTransferJs({transferJsMode, installPath}) { - if (transferJsMode !== 'none') { - log(`正在迁移JS单文件插件`) - let passed = null - if (transferJsMode !== 'force') { - let res = parseCheckRes(checkJsCompatibility(examplePath)) - log(res.text) - if (res.total === 0) { - return - } - passed = res.passed - } else { - log(`未启用兼容性检测,将会迁移所有插件`) - } - await sleep(1000) - let i = 0 - if (fs.existsSync(examplePath)) { - let toPath = path.join(installPath, 'plugins', pluginName, 'lib/v2-js') - let fileList = fs.readdirSync(examplePath) - .filter(i => path.extname(i) === '.js') - .map((fileName) => ({filePath: path.join(examplePath, fileName), fileName})) - for (let {fileName, filePath} of fileList) { - if (passed != null) { - if (passed.find((i) => i.file === fileName) == null) { - continue - } - } - i++ - fs.copyFileSync(filePath, path.join(toPath, fileName)) - } - } - log(`共迁移了${i}个JS单文件插件`) - } -} - -function parseCheckRes({passed, noPass}) { - passed = Array.isArray(passed) ? passed : [] - noPass = Array.isArray(noPass) ? noPass : [] - let total = passed.length + noPass.length - let text = '未检测到JS插件' - if (total !== 0) { - text = `检测到 ${total} 个JS插件,` - if (noPass.length === 0) { - text += `全部可以迁移。` - } else if (passed.length === 0) { - text += `全部不兼容。` - } else { - text += `其中 ${noPass.length} 个不兼容, ${passed.length} 个可以迁移。` - } - } - return {total, passed, noPass, text} -} - -const tbMirror = 'https://registry.npmmirror.com' -const npmTools = { - npm: { - install: 'npm install', - add: 'npm install $pkg', - }, - pnpm: { - install: 'pnpm install', - add: 'pnpm add $pkg -w', - registry: 'pnpm config set registry ' + tbMirror - }, - yarn: { - install: 'yarn install', - add: 'yarn add $pkg', - registry: 'yarn config set registry ' + tbMirror - }, - cnpm: { - install: 'cnpm install', - add: 'cnpm install $pkg', - } -} - -async function doInstallModules({moduleTool, installPath}) { - let tool = npmTools[moduleTool] - if (!tool) { - log(`不支持的npm包管理工具:${moduleTool}`) - return false - } - log(`正在尝试通过 ${moduleTool} 安装依赖`) - let check = autoInstallNpm(moduleTool) - if (!check) { - return false - } - const execTo = (cmd) => new Promise((resolve) => { - childIns.npm = child.exec(cmd, {windowsHide: true, cwd: installPath}, (error) => { - resolve(error == null) - }) - }) - // 安装依赖 - let flag = await execTo(tool.install) - if (!flag) return false - log(`依赖安装成功!`) - await sleep(1000) - // 非pnpm,需要单独安装锅巴的依赖 - if (moduleTool !== 'pnpm') { - log(`正在安装 Guoba-Plugin 所需依赖`) - flag = await execTo(tool.add.replace('$pkg', AdapterCheck.needPackage.join(' '))) - if (!flag) return false - log(`Guoba-Plugin 依赖安装成功!`) - await sleep(1000) - } - log(`正在安装 miao-plugin 所需依赖`) - flag = await execTo(tool.add.replace('$pkg', 'image-size')) - if (!flag) return false - log(`miao-plugin 依赖安装成功!`) - return true -} - -/** 检查并按照包管理工具 */ -function autoInstallNpm(tool) { - let v = npmVersion(tool) - if (v == null) { - log(`检测到 ${tool} 未安装,正在尝试安装……`) - installNpmTool(tool) - v = npmVersion(tool) - if (v == null) { - log(`${tool} 未安装或安装失败……`) - } else { - log(`${tool} 安装成功,版本:${v}`) - let registry = npmTools[tool].registry - if (registry) { - child.execSync(registry) - log(`已将 ${tool} 设为国内淘宝镜像`) - } - } - } else { - log(`检测到 ${tool} 已安装,当前版本:` + v) - } - return v != null -} - -// 递归遍历目录 -async function recursiveDir(dirPaths = [], cb, level = 0) { - let dirPath = path.join(_paths.root, ...dirPaths) - if (level <= 1) { - log('正在迁移目录:' + dirPath) - await sleep(500) - } - let items = fs.readdirSync(dirPath) - for (let item of items) { - let itemPath = path.join(dirPath, item) - let stat = fs.statSync(itemPath) - if (stat.isDirectory()) { - await recursiveDir(dirPaths.concat(item), cb, level + 1) - } else { - cb({fileName: item, filePath: itemPath, stat, dirPaths}) - } - } -} - -// 过滤垃圾文件 -function filterJunkFiles(filePath) { - let extname = path.extname(filePath) - if (extname === '.html') { - return false - } else if (extname === '.htm') { - return false - } - return true -} - -function log(t, reason = false) { - process.send({type: 'log', text: t, reason}) -} - -function updateState(state) { - process.send({type: 'state', state}) -} - -function updatePercent(percent) { - process.send({type: 'percent', percent}) -} - -function selfExit() { - setTimeout(() => process.exit(), 100) -} - -async function execRedis(fn, ...args) { - return new Promise(resolve => { - let id = lodash.uniqueId('guoba-transfer-redis-') - RedisCaller[id] = { - callback: (ret) => resolve(ret) - } - process.send({type: 'redis-execute', id, fn, args}) - }) -} - -/** 获取包管理工具的版本号 */ -function npmVersion(tool = 'npm') { - try { - let res = child.execSync(`${tool} -v`, {encoding: 'utf-8', windowsHide: true}) - if (/\d{1,2}\.\d{1,2}(\.\d{1,2})?/) { - if (tool === 'cnpm') { - res = res.match(/cnpm@(\d{1,2}\.\d{1,2}(\.\d{1,2})?)/)[1] - } - return res.trim() - } - return null - } catch (e) { - return null - } -} - -/** 安装包管理工具 */ -function installNpmTool(tool) { - let registry = 'https://registry.npmmirror.com' - let cmd = `npm install ${tool} -g --registry=${registry}` - return child.execSync(cmd, {encoding: 'utf-8', windowsHide: true}) -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/plugin/MiaoPluginController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/plugin/MiaoPluginController.js deleted file mode 100644 index 071da56911f0ce450d32638b576c9441d0e7f980..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/plugin/MiaoPluginController.js +++ /dev/null @@ -1,140 +0,0 @@ -import {autowired, Result, RestController} from '#guoba.framework'; -import {PluginsMap} from '#guoba.platform' - -export default class MiaoPluginController extends RestController { - - constructor(app) { - super('/plugin/miao', app) - } - - async registerRouters() { - /** @type {PluginService} */ - this.pluginService = autowired('pluginService') - await this.pluginService.loadPlugining - // 判断是否已安装喵喵插件 - if (!PluginsMap.get('miao-plugin')) { - return - } - // 判断喵喵插件版本 - this.miaoVersion = (await import('../../../../miao-plugin/components/Version.js')).default - if (this.miaoVersion.version.startsWith('1')) { - /** @type {MiaoPluginV1Service} */ - this.miaoService = autowired('miaoPluginV1Service') - } else { - /** @type {MiaoPluginService} */ - this.miaoService = autowired('miaoPluginService') - } - // 获取喵喵帮助 cfg - this.get('/help', this.getMiaoHelpCfg) - // 设置喵喵帮助 cfg - this.post('/help', this.saveMiaoHelpCfg) - // 获取喵喵帮助背景图片 - this.get('/help/theme/bg', this.getHelpThemeBg) - this.get('/help/theme/main', this.getHelpThemeMain) - // 获取皮肤列表 - this.get('/help/theme/list', this.getHelpThemeList) - // 获取皮肤配置项 - this.get('/help/theme/config', this.getHelpThemeConfig) - // 保存皮肤配置项 - this.post('/help/theme/config', this.saveHelpThemeConfig) - // 皮肤 post 操作(新增) - this.post('/help/theme/action', this.addHelpTheme) - // 皮肤 put 操作(修改,仅底图)(由于put操作无法处理files,可能是express的bug,所以改为post) - this.post('/help/theme/action_put', this.putHelpTheme) - // 皮肤 delete 操作(删除) - this.delete('/help/theme/action', this.deleteHelpTheme) - // 获取喵喵帮助icon - this.get('/help/icon', this.getHelpIcon) - // 备份喵喵帮助 - this.post('/help/backup', this.addBackup) - // 获取备份列表 - this.get('/help/backup/list', this.getBackupList) - // 还原备份的喵喵帮助 - this.post('/help/backup/restore', this.restoreBackup) - // 删除备份 - this.delete('/help/backup/delete', this.deleteBackup) - // 初始化最初的备份 - this.miaoService.initBackup() - } - - async getMiaoHelpCfg() { - let setting = await this.miaoService.getHelpSetting() - let miaoVersion = this.miaoVersion.version - let yunzaiVersion = this.miaoVersion.yunzai - return Result.ok({...setting, miaoVersion, yunzaiVersion}) - } - - async saveMiaoHelpCfg(req) { - this.miaoService.saveHelpSetting(req.body, req.files) - return Result.ok() - } - - getHelpThemeBg(req, res) { - res.sendFile(this.miaoService.getThemeBgPath(req.query)) - return Result.VOID - } - - getHelpThemeMain(req, res) { - res.sendFile(this.miaoService.getThemeMainPath(req.query)) - return Result.VOID - } - - async getHelpThemeList() { - let list = await this.miaoService.getHelpThemeList() - return Result.ok(list) - } - - async getHelpThemeConfig(req, res) { - let config = await this.miaoService.getHelpThemeConfig(req.query) - return Result.ok(config) - } - - async saveHelpThemeConfig(req) { - await this.miaoService.saveHelpThemeConfig(req.body) - return Result.ok('保存成功~') - } - - async deleteHelpTheme(req) { - await this.miaoService.deleteHelpTheme(req.body) - return Result.ok('删除成功~') - } - - async addHelpTheme(req) { - await this.miaoService.addHelpTheme(req.body, req.files) - return Result.ok('新增成功~') - } - - async putHelpTheme(req) { - await this.miaoService.editHelpTheme(req.body, req.files) - return Result.ok('修改成功~') - } - - getHelpIcon(req, res) { - res.sendFile(this.miaoService.miaoPath.iconPath) - return Result.VOID - } - - getBackupList() { - let {backupList} = this.miaoService.getBackupCfg() - return Result.ok(backupList) - } - - addBackup(req) { - let {remark} = req.body - this.miaoService.addBackup(remark) - return Result.ok() - } - - async restoreBackup(req) { - let {id} = req.body - await this.miaoService.restoreBackup(id) - return Result.ok() - } - - deleteBackup(req) { - let {id} = req.body - this.miaoService.deleteBackup(id) - return Result.ok() - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/system/HomeController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/system/HomeController.js deleted file mode 100644 index c2d2f987f0001bf62db79a916e9a38e08d67bc26..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/system/HomeController.js +++ /dev/null @@ -1,84 +0,0 @@ -import fs from 'fs' -import path from 'path' -import lodash from 'lodash' -import {_paths} from '#guoba.platform' -import {autowired, Result, RestController} from '#guoba.framework'; - -/** - * 首页相关查询 - */ -export class HomeController extends RestController { - - botService = autowired('botService') - oicqService = autowired('oicqService') - - constructor(app) { - super('/home', app) - } - - registerRouters() { - this.get('/data', this.getHomeData) - this.get('/random-image', this.randomImage) - } - - /** 获取首页数据 */ - async getHomeData() { - return Result.ok({ - cookieCount: await this.botService.getCookieCount(), - friendCount: await this.oicqService.getFriendCount(), - groupCount: await this.oicqService.getGroupCount(), - }) - } - - // 随机角色图片 - randomImage(req, res) { - let imgPath = this.getRandomRoleImage() - if (imgPath != null) { - res.sendFile(imgPath) - } else { - res.sendFile(path.join(_paths.pluginResources, 'images/no-miao.png')) - } - return Result.VOID - } - - // 安装了喵喵插件后,获取随机角色图片 - getRandomRoleImage() { - if (!this.dirPaths) { - let miaoPath = path.join(_paths.root, 'plugins', 'miao-plugin') - this.dirPaths = [ - path.join(miaoPath, 'resources/character-img'), - path.join(miaoPath, 'resources/miao-res-plus/character-img'), - ] - this.dirPaths = this.dirPaths.filter(p => fs.existsSync(p)) - } - if (this.dirPaths.length === 0) { - return null - } - let dirPath = lodash.sample(this.dirPaths) - let rolePaths = [] - fs.readdirSync(dirPath).forEach(p => rolePaths.push(path.join(dirPath, p))) - if (rolePaths.length === 0) { - return null - } - let rolePath = null - let picPaths = [] - for (let i = 0; i < 10; i++) { - rolePath = lodash.sample(rolePaths) - if (fs.statSync(rolePath).isDirectory()) { - picPaths = [] - fs.readdirSync(rolePath).filter((p) => /\.(jpg|png|jpeg|webp)$/i.test(p)).forEach(p => picPaths.push(path.join(rolePath, p))) - // 好可怜,居然一张图片都没有,最多尝试10次 - if (picPaths.length > 0) { - break - } - } else { - rolePath = null - } - } - if (picPaths.length === 0) { - return null - } - return lodash.sample(picPaths) - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/system/LoginController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/system/LoginController.js deleted file mode 100644 index fef9f65002e0295851ad22316c29e13900617480..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/system/LoginController.js +++ /dev/null @@ -1,39 +0,0 @@ -import {autowired, Result, RestController} from '#guoba.framework'; - -export class LoginController extends RestController { - - loginService = autowired('loginService') - - constructor(app) { - super('', app) - } - - registerRouters() { - this.post('/login', this.login) - this.post('/logout', this.logout) - // 主人快速登录 - this.post('/login/quick', this.quickLogin) - } - - async login(req) { - // let {username, password} = req.body - // if (username === 'admin' && password === 'admin') { - // let token = this.loginService.signToken(username) - // return Result.ok({token}) - // } - // return Result.error('用户名或密码错误') - return Result.error('请使用“#锅巴登录”') - } - - async logout(req) { - let {token} = req.body - this.loginService.logout(token) - return Result.ok('注销成功') - } - - async quickLogin(req) { - let {code} = req.body - return Result.ok(await this.loginService.getQuickLogin(code)) - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/system/PermissionController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/system/PermissionController.js deleted file mode 100644 index 30ba4acfda0482562f873f5a5b970a3072398784..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/system/PermissionController.js +++ /dev/null @@ -1,28 +0,0 @@ -import {autowired, Result, RestController} from '#guoba.framework'; - -export class PermissionController extends RestController { - - systemService = autowired('systemService') - - constructor(app) { - super('', app) - } - - registerRouters() { - this.get('/getPermCode', this.getPermCode) - this.get('/getMenuList', this.getMenuList) - } - - // 获取用户权限 - async getPermCode(req) { - return Result.ok({ - permCode: ['sa'], - liteToken: this.systemService.getLiteToken(), - }) - } - - async getMenuList() { - let menus = await this.systemService.queryMenus() - return Result.ok(menus) - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/system/SystemController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/system/SystemController.js deleted file mode 100644 index 7a4b2245365733c6eb4dcc707c1fea03fc5ee7fd..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/system/SystemController.js +++ /dev/null @@ -1,37 +0,0 @@ -import {autowired, Result, RestController} from '#guoba.framework'; - -/** - * 系统相关 - */ -export class SystemController extends RestController { - - systemService = autowired('systemService') - - constructor(app) { - super('/sys', app) - } - - registerRouters() { - this.put('/fs/create-dir', this.putCreateDir) - this.get('/fs/tree/root', this.getFsTreeRoot) - this.get('/fs/tree/children', this.getFsTreeChildren) - } - - async putCreateDir(req) { - let {path, name} = req.body - let result = await this.systemService.createDir(path, name) - return Result.ok(result) - } - - async getFsTreeRoot() { - let result = await this.systemService.getFsTreeRoot() - return Result.ok(result) - } - - async getFsTreeChildren(req) { - let {path} = req.query - let result = await this.systemService.getFsTreeChildren(path) - return Result.ok(result) - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/controller/system/UserController.js b/Yunzai/plugins/Guoba-Plugin/server/controller/system/UserController.js deleted file mode 100644 index 3e77046e1c54177252e6065d76bc8474d8a879b1..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/controller/system/UserController.js +++ /dev/null @@ -1,26 +0,0 @@ -import {Result, RestController} from '#guoba.framework'; - -export class UserController extends RestController { - constructor(app) { - super('/user', app) - } - - registerRouters() { - this.get('/getLoginUser', this.getLoginUser) - } - - // 获取登录用户 - async getLoginUser(req) { - return Result.ok({ - userId: Bot.uin, - username: Bot.uin, - realName: Bot.nickname, - avatar: '', - desc: '', - homePath: '/home', - roles: [ - {roleName: '超级管理员', value: 'sa'}, - ], - }) - } -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/decorator/RedisDecorator.js b/Yunzai/plugins/Guoba-Plugin/server/decorator/RedisDecorator.js deleted file mode 100644 index bcd83e8f621e379c31876b7e2f79eec4040557d4..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/decorator/RedisDecorator.js +++ /dev/null @@ -1,35 +0,0 @@ -import {Result, Decorator} from "#guoba.framework"; -import {Constant} from "#guoba.platform"; - -export default class RedisDecorator extends Decorator { - constructor(cacheKey, config) { - super(config) - this.cacheKey = cacheKey - } - - // TODO 待完善 - async execute(pjp, req, res) { - // 装饰器 - if (!this.cacheKey) { - return - } - let redisKey = Constant.REDIS_PREFIX + this.cacheKey - // 替换 ${...} - redisKey = redisKey.replace(/\${([^}]+)}/g, ($0, $1) => { - let code = `(query, params, body, config) => ${$1}` - return new Function(`return ${code}`)()(req.query, req.params, req.body, this.config) - }) - let data = await redis.get(redisKey) - if (data) { - data = JSON.parse(data) - return new Result(data.code, data.result, data.message, data.httpStatus) - } - let ret = await pjp.proceed() - if (ret instanceof Result) { - if (!ret.isOk) { - return ret - } - } - redis.set(redisKey, JSON.stringify(ret), {...this.config}) - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/decorator/ReqDecorator.js b/Yunzai/plugins/Guoba-Plugin/server/decorator/ReqDecorator.js deleted file mode 100644 index 1c768f3b1173139bb3304dcf8440d0176205327f..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/decorator/ReqDecorator.js +++ /dev/null @@ -1,31 +0,0 @@ -import jwt from 'jsonwebtoken' -import {Decorator, GuobaError} from '#guoba.framework' -import {Constant} from '#guoba.platform' - -/** - * 请求装饰器,解析token等操作 - */ -export default class ReqDecorator extends Decorator { - constructor() { - super({}) - } - - async execute(pjp, req, res) { - // 从headers中获取token - req.getToken = function () { - return req.headers[Constant.TOKEN_KEY] - } - // 解码token - req.decodeToken = function () { - let token = req.getToken() - if (token) { - return jwt.decode(token) - } - } - // TODO 获取当前登录用户信息 - req.getUser = function () { - let token = req.getToken() - if (!token) throw new GuobaError('登录态失效') - } - } -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/helper/listen.js b/Yunzai/plugins/Guoba-Plugin/server/helper/listen.js deleted file mode 100644 index 277f918e03f0fd27b0a68ae5f9aea655a2359f67..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/helper/listen.js +++ /dev/null @@ -1,35 +0,0 @@ -import fetch from 'node-fetch' -import {sleep} from '#guoba.utils' - -export function listen(app, port) { - return new Promise((resolve, reject) => { - let server = app.listen(port) - // 重试次数 - let left = 3, num = 1 - // 重试间隔 - let duration = 1000 - server.on('listening', () => { - resolve(server) - }) - server.on('error', async (error) => { - // 系统非监听端口操作报错 - if (error.code !== 'EADDRINUSE') { - throw error - } - if (num <= left) { - logger.mark(`[Guoba] 端口号 ${port} 已被占用,正在进行第 ${num++} 次重试…`) - try { - await Promise.race([ - fetch(`http://localhost:${port}/api/helper/release_port`, {method: 'DELETE'}), - sleep(8000), - ]).catch(() => 0) - await sleep(duration) - } finally { - server.listen(port) - } - } else { - reject(`[Guoba] 启动失败,端口号 ${port} 被占用,请尝试关闭该端口或更换锅巴的端口号`) - } - }) - }) -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/index.js b/Yunzai/plugins/Guoba-Plugin/server/index.js deleted file mode 100644 index e6b31a7f18ef8efccbc90043fb8f709db1cdae24..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/index.js +++ /dev/null @@ -1,53 +0,0 @@ -import path from "path"; -import {GuobaApplication} from "#guoba.framework"; -import {cfg, _paths, PluginsMap, GuobaSupportMap} from '#guoba.platform'; -import {isV3, getWebAddress} from "#guoba.utils"; -import {listen} from './helper/listen.js' - -export async function createServer({isInit}) { - const begin = Date.now() - // 初始化 - PluginsMap.clear() - GuobaSupportMap.clear() - // 启动服务 - const application = await GuobaApplication.run({ - port: cfg.get('server.port'), - staticPath: _paths.staticPath, - componentPaths: [ - path.join(_paths.pluginRoot, 'server/interceptor'), - path.join(_paths.pluginRoot, 'server/service', 'both'), - path.join(_paths.pluginRoot, 'server/service', isV3 ? 'v3' : 'v2'), - path.join(_paths.pluginRoot, 'server/controller'), - ], - preloads: [ - { - code: `PRELOAD_JS`, - hook: (req) => req.path === '/' || req.path === '/index.html', - path: path.join(_paths.pluginRoot, 'server/preload/ConfigPreload.js'), - staticPath: path.join(_paths.staticPath, 'index.html'), - } - ], - decorators: [ - { - path: path.join(_paths.pluginRoot, 'server/decorator/ReqDecorator.js'), - args: [], - } - ], - overrides: { - listen: listen, - } - }) - const app = application.app - const server = application.server - // 首次启动输出提示信息 - if (isInit) { - logger.mark(`--------- >_< ---------`) - logger.mark(`锅巴服务启动成功~ 耗时:${Date.now() - begin}ms`) - const hosts = getWebAddress(true) - for (let host of hosts) { - logger.mark(host) - } - logger.mark(`-----------------------`) - } - return {app, server} -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/interceptor/TokenInterceptor.js b/Yunzai/plugins/Guoba-Plugin/server/interceptor/TokenInterceptor.js deleted file mode 100644 index aa49613388e61de6edc785714be87c86441a51e0..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/interceptor/TokenInterceptor.js +++ /dev/null @@ -1,73 +0,0 @@ -import jwt from 'jsonwebtoken' -import {autowired, Result, Interceptor} from "#guoba.framework"; -import {cfg, Constant} from "#guoba.platform"; - -// 弱令牌(只能用来访问静态资源等) -const liteInclude = [ - new RegExp('^/api/plugin/miao/help/theme/.+'), -] - -// 需要拦截的路径 -const include = [ - new RegExp('^/api/.*'), - ...liteInclude, -] - -// 不需要拦截的路径 -const exclude = [ - new RegExp('^/api/login'), - new RegExp('^/api/helper/transit'), - new RegExp('^/api/helper/release_port'), - new RegExp('^/api/plugin/s/.+/icon'), -] - -/** - * Token校验拦截器 - * @param app - */ -export default class TokenInterceptor extends Interceptor { - - systemService = autowired('systemService') - - constructor(app) { - super(app) - } - - async handler(req, res, next) { - if (!include.find(reg => reg.test(req.path))) { - next() - } else if (exclude.find(reg => reg.test(req.path))) { - next() - } else { - // 从query里获取token - let token = req.query?.token - if (!token) { - token = req.headers[Constant.TOKEN_KEY] - } - if (token) { - // 判断是否是弱令牌 - if (token.length === 8 && token === this.systemService.getLiteToken()) { - if (liteInclude.find(reg => reg.test(req.path))) { - next() - return - } - } else { - let redisKey = Constant.REDIS_PREFIX + 'access-token:' + token - let redisToken = await redis.get(redisKey) - if (redisToken) { - try { - jwt.verify(redisToken, cfg.getJwtSecret()) - next() - return - } catch { - } - } - } - } - let result = Result.noLogin() - res.status(result.httpStatus).json(result.toJSON()) - } - } - - static priority = 100 -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/preload/ConfigPreload.js b/Yunzai/plugins/Guoba-Plugin/server/preload/ConfigPreload.js deleted file mode 100644 index fb10aa5c8b30a8ff12468e85648396f9dc74242c..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/preload/ConfigPreload.js +++ /dev/null @@ -1,58 +0,0 @@ -import lodash from "lodash"; -import {Preload} from "#guoba.framework"; -import {cfg, _version, Constant} from "#guoba.platform"; -import {isV3, yunzaiVersion} from '#guoba.utils' - -// noinspection JSUnusedGlobalSymbols -export default class ConfigPreload extends Preload { - constructor(app) { - const preloadName = '_app.guoba.preload.js' - const scriptSrc = `/preload/${preloadName}` - super(app, preloadName, scriptSrc); - this.watchDynamicCfg() - } - - getDynamicCfg() { - return { - serverICPNo: cfg.get('server.ICPNo') - } - } - - /** 监听 cfg 变化,并重新加载 */ - watchDynamicCfg() { - this.dynamicCfg = this.getDynamicCfg() - // 监听配置文件变化 - cfg.config.reader.watcher.on('change', () => { - const current = this.getDynamicCfg() - if (!lodash.isEqual(this.dynamicCfg, current)) { - this.dynamicCfg = current; - this.regenerate(); - } - }) - } - - generateContent() { - const content = [ - this.__YUNZAI_BOT_CONF__, - this.__GUOBA_CONF__ - ] - return `${content.join(';')}`; - } - - get __YUNZAI_BOT_CONF__() { - return `window["__YUNZAI_BOT_CONF__"] = ${JSON.stringify({ - VERSION: yunzaiVersion, - GUOBA_VERSION: _version, - API_PREFIX: isV3 ? '/v3' : '/v2', - TOKEN_KEY: Constant.TOKEN_KEY, - })}` - } - - get __GUOBA_CONF__() { - return `window["__GUOBA_CONF__"] = ${JSON.stringify({ - VERSION: _version, - ICP_NO: this.dynamicCfg.serverICPNo, - })}` - } - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/HelperService.js b/Yunzai/plugins/Guoba-Plugin/server/service/both/HelperService.js deleted file mode 100644 index 4e8d6d73830aa7116ccd507ae530dca6ce7cd147..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/both/HelperService.js +++ /dev/null @@ -1,102 +0,0 @@ -import path from 'path' -import fetch from 'node-fetch' -import {Result, Service, GuobaError} from '#guoba.framework'; -import {_paths} from '#guoba.platform' -import {readJson} from '#guoba.utils' - -export default class HelperService extends Service { - constructor(app) { - super(app) - } - - /** 转发请求 */ - async transitRequest(req, res) { - let {url} = req.query - if (!url) { - return Result.error('url不能为空', 400) - } - url = decodeURIComponent(url) - url = new URL(url) - for (const [name, value] of Object.entries(req.query)) { - if (name === 'url') { - continue - } - url.searchParams.append(name, value) - } - let response = await fetch(url.toString(), { - method: req.method, - body: req.method === 'GET' ? undefined : req.body, - }) - if (!response.ok) { - return Result.error('请求失败', response.status) - } - for (const [key, value] of response.headers.entries()) { - // 去掉压缩头 - if (key.toLowerCase() === 'content-encoding') { - continue - } - res.setHeader(key, value) - } - let buffer = await response.arrayBuffer() - buffer = Buffer.from(buffer) - return buffer - } - - /** 获取天气(中国天气网) */ - async getWeather(city) { - let cityCode - if (/^\d{9}$/.test(city)) { - cityCode = city - } else { - let cityJsonPath = path.join(_paths.pluginResources, 'json/city.json') - let cityMap = readJson(cityJsonPath) - cityCode = cityMap[city] - if (!cityCode) { - return `城市${city}不存在或不支持` - } - } - let url = `http://www.weather.com.cn/data/cityinfo/${cityCode}.html` - let response - try { - response = await fetch(url) - } catch (e) { - logger.error(e) - throw new GuobaError('天气接口查询失败,请稍后再试') - } - if (response.status !== 200) { - throw new GuobaError('天气接口查询失败:' + response.status) - } - let res = await response.json() - // noinspection SpellCheckingInspection - let {weatherinfo: weatherInfo} = res - if (weatherInfo) { - let {city, temp1, temp2, weather} = weatherInfo - return `${city}今日${weather},最低温${temp1},最高温${temp2}` - } else { - logger.warn('获取天气数据失败', res) - throw new GuobaError('获取天气数据失败,请稍后再试') - } - } - - /** 获取天气 */ - async getWeather_old(city) { - let url = `http://wthrcdn.etouch.cn/weather_mini?city=${city}` - let response - try { - response = await fetch(url) - } catch (e) { - throw new GuobaError('天气接口查询失败,请稍后再试') - } - let res = await response.json() - let {status, data} = res - if (status === 1000) { - return data - } else if (status === 1002) { - throw new GuobaError(`城市:${city} 数据不存在`) - } else { - logger.warn('获取天气数据失败', res) - throw new GuobaError('获取天气数据失败,请稍后再试') - } - } - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/LoginService.js b/Yunzai/plugins/Guoba-Plugin/server/service/both/LoginService.js deleted file mode 100644 index ce2385f5625b2de986f4a3ff23fc76b6f5ffc54b..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/both/LoginService.js +++ /dev/null @@ -1,64 +0,0 @@ -import jwt from 'jsonwebtoken' -import {Service, GuobaError} from '#guoba.framework'; -import {cfg, Constant} from "#guoba.platform"; -import {randomString, getAllWebAddress} from '#guoba.utils' - -export class LoginService extends Service { - constructor(app) { - super(app) - } - - /** 注册并保存Token */ - signToken(username) { - let token = jwt.sign({username}, cfg.getJwtSecret()) - // 将token存入redis - let redisKey = this.getRedisKey(token) - redis.set(redisKey, token, {EX: 3600 * 24}) - return token - } - - logout(token) { - if (token) { - let redisKey = this.getRedisKey(token) - redis.del(redisKey) - } - } - - async setQuickLogin(username) { - let {redisKey, code} = this.getQuickLoginRedisKey(null) - let token = this.signToken(username) - redis.set(redisKey, token, {EX: 180}) - let webAddress = await getAllWebAddress() - for (let [key, address] of Object.entries(webAddress)) { - webAddress[key] = address.map(h => `${h}/#/ml/${code}`) - } - return webAddress - } - - async getQuickLogin(code) { - if (!code) { - throw new GuobaError('登录失败') - } - let {redisKey} = this.getQuickLoginRedisKey(code) - let token = await redis.get(redisKey) - if (token) { - redis.del(redisKey) - return {token} - } - throw new GuobaError('登录失败') - } - - getQuickLoginRedisKey(code) { - if (!code) { - code = randomString(6) - } - return { - code, - redisKey: `${Constant.REDIS_PREFIX}login-quick:${code}`, - } - } - - getRedisKey(token) { - return `${Constant.REDIS_PREFIX}access-token:${token}` - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/OicqService.js b/Yunzai/plugins/Guoba-Plugin/server/service/both/OicqService.js deleted file mode 100644 index 6075904d68fd68386c719fe817b0b7d565bce7ca..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/both/OicqService.js +++ /dev/null @@ -1,43 +0,0 @@ -import {Service} from '#guoba.framework'; -import {toPairsMap} from '#guoba.utils' - -export class OicqService extends Service { - constructor(app) { - super(app) - } - - /** 获取一个QQ用户信息 */ - async pickUser(qq) { - let user = Bot.pickUser(qq) - return { - userId: user.uid, - simpleInfo: await user.getSimpleInfo(), - } - } - - /** 获取一个QQ群组信息 */ - async pickGroup(groupId) { - let group = Bot.pickGroup(Number.parseInt(groupId)) - return { - groupId: group.gid, - info: group.info, - } - } - - getFriendList() { - return toPairsMap(Bot.getFriendList()) - } - - getFriendCount() { - return Bot.getFriendList().size - } - - getGroupList() { - return toPairsMap(Bot.getGroupList()) - } - - getGroupCount() { - return Bot.getGroupList().size - } - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/plugin/miao/IMiaoPluginService.js b/Yunzai/plugins/Guoba-Plugin/server/service/both/plugin/miao/IMiaoPluginService.js deleted file mode 100644 index 0223e7cdc4ddf875f1e0fa17424c58e39f6480d3..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/both/plugin/miao/IMiaoPluginService.js +++ /dev/null @@ -1,145 +0,0 @@ -import fs from 'fs' -import path from 'path' -import yaml from 'yaml' -import {_paths} from '#guoba.platform' - -import {Result, Service} from '#guoba.framework'; - -export default class IMiaoPluginService extends Service { - constructor(app) { - super(app) - } - - /** - * 初始化最初的备份 - */ - initBackup() { - throw Result.ERR_CODE_501 - } - - /** - * 获取帮助 - */ - getHelpSetting() { - throw Result.ERR_CODE_501 - } - - /** - * 保存帮助 - */ - saveHelpSetting() { - throw Result.ERR_CODE_501 - } - - /** - * 获取皮肤main.png路径 - */ - getThemeMainPath() { - throw Result.ERR_CODE_501 - } - - /** - * 获取皮肤列表 - */ - getHelpThemeList() { - throw Result.ERR_CODE_501 - } - - /** - * 获取皮肤config配置 - */ - getHelpThemeConfig() { - throw Result.ERR_CODE_501 - } - - /** - * 保存皮肤config配置 - */ - saveHelpThemeConfig() { - throw Result.ERR_CODE_501 - } - - /** - * 新增皮肤 - */ - addHelpTheme() { - throw Result.ERR_CODE_501 - } - - /** - * 修改皮肤(仅底图) - */ - editHelpTheme() { - throw Result.ERR_CODE_501 - } - - /** - * 删除皮肤 - */ - deleteHelpTheme() { - throw Result.ERR_CODE_501 - } - - /** - * 获取皮肤bg路径 - */ - getThemeBgPath() { - throw Result.ERR_CODE_501 - } - - backupCfg = null - - /** - * 获取备份config - */ - getBackupCfg() { - if (this.backupCfg) { - return this.backupCfg - } - let backupPath = path.join(_paths.data, 'miaoHelpBackup') - if (!fs.existsSync(backupPath)) { - fs.mkdirSync(backupPath) - } - let dbPath = path.join(backupPath, 'db.yaml') - let backupList = [] - if (fs.existsSync(dbPath)) { - backupList = yaml.parse(fs.readFileSync(dbPath, 'utf-8')) - } - return this.backupCfg = { - backupPath, - backupList, - save() { - fs.writeFileSync(dbPath, yaml.stringify(backupList), 'utf-8') - }, - find(id) { - return backupList.find(item => item.id === id) - }, - } - } - - /** - * 添加备份 - * @param remark - * @param isInit - */ - addBackup(remark, isInit = false) { - throw Result.ERR_CODE_501 - } - - /** - * 恢复备份 - * @param id - */ - restoreBackup(id) { - throw Result.ERR_CODE_501 - } - - /** - * 删除备份 - * @param id - */ - deleteBackup(id) { - throw Result.ERR_CODE_501 - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/plugin/miao/MiaoPluginService.js b/Yunzai/plugins/Guoba-Plugin/server/service/both/plugin/miao/MiaoPluginService.js deleted file mode 100644 index f6714aa2dcf723151221a84488c1fad5d2e31514..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/both/plugin/miao/MiaoPluginService.js +++ /dev/null @@ -1,347 +0,0 @@ -import fs from 'fs' -import path from 'path' -import lodash from 'lodash' -import moment from 'moment' -import {GuobaError} from "#guoba.framework"; -import {_paths} from '#guoba.platform' -import {moveFile} from '#guoba.utils' - -const {GID} = Guoba.createImport(import.meta.url) -const IMiaoPluginService = await GID('./IMiaoPluginService.js') - -// noinspection JSUnusedGlobalSymbols -/** - * 喵喵最新版 - */ -export default class MiaoPluginService extends IMiaoPluginService { - constructor(app) { - super(app) - } - - _miaoPath = null - - get miaoPath() { - if (this._miaoPath) { - return this._miaoPath - } - let miaoPath = path.join(_paths.root, 'plugins/miao-plugin') - let helpPath = path.join(miaoPath, 'resources/help') - let helpCfgPath = path.join(miaoPath, 'config/help.js') - - let themePath = path.join(miaoPath, 'resources/help/theme') - let iconPath = path.join(helpPath, 'icon.png') - - let themeDefaultPath = path.join(themePath, 'default') - - return this._miaoPath = { - miaoPath, helpPath, - helpCfgPath, - themePath, iconPath, - themeDefaultPath, - } - } - - _miaoUtils = null - - async getMiaoUtils() { - if (this._miaoUtils) { - return this._miaoUtils - } - return this._miaoUtils = { - Data: (await this.importMiao(['../../../../../../miao-plugin/components/Data.js'])).default, - // Theme: (await this.importMiao([ - // '../../../../../../miao-plugin/apps/help/HelpTheme.js', - // '../../../../../../miao-plugin/apps/help/theme.js', - // ])).default, - } - } - - async importMiao(paths, errorTip = '当前版本的喵喵插件暂不支持,请联系锅巴作者尽快修复!') { - for (let p of paths) { - try { - return await import(p) - } catch (e) { - logger.error(e.message || e) - } - } - throw new GuobaError(errorTip) - } - - initBackup() { - } - - async getHelpSetting() { - let {Data} = await this.getMiaoUtils() - let {sysCfg, diyCfg} = await Data.importCfg('help') - let {helpPath} = this.miaoPath - - // 兼容老配置 - let custom, help = {} - if (fs.existsSync(`${helpPath}/help-cfg.js`)) { - help = await import(`file://${helpPath}/help-cfg.js?version=${new Date().getTime()}`) - } else if (fs.existsSync(`${helpPath}/help-list.js`)) { - help = await import(`file://${helpPath}/help-list.js?version=${new Date().getTime()}`) - } - // 兼容一下旧字段 - if (lodash.isArray(help.helpCfg)) { - custom = { - helpList: help.helpCfg, - helpCfg: {}, - } - } else { - custom = help - } - - let helpCfg = lodash.defaults( - diyCfg.helpCfg || {}, custom.helpCfg, sysCfg.helpCfg, - // ----- 兼容喵喵字段问题 ------ - {colCount: 3, bgBlur: true}, - // --------------------------- - ) - let helpList = diyCfg.helpList || custom.helpList || sysCfg.helpList - let themeNames = this.getThemeNames() - return {helpCfg, helpList, themeNames} - } - - getThemeNames() { - let {themePath} = this.miaoPath - let names = [] - let dirs = fs.readdirSync(themePath) - lodash.forEach(dirs, (dir) => { - if (fs.existsSync(path.join(themePath, dir, `main.png`))) { - names.push(dir) - } - }) - return names - } - - saveHelpSetting(bodyParams, files) { - let {helpCfg, helpList} = bodyParams - helpCfg = JSON.parse(helpCfg) - if (Array.isArray(helpCfg.theme) && helpCfg.theme.length === 0) { - helpCfg.theme = 'all' - } - let {helpCfgPath, iconPath} = this.miaoPath - let content = `export const helpCfg = ${JSON.stringify(helpCfg, null, 2)}\n` - content += `export const helpList = ${helpList}` - fs.writeFileSync(helpCfgPath, content, 'utf-8') - if (Array.isArray(files) && files.length > 0) { - let [iconFile] = files - moveFile(iconFile.path, iconPath) - } - } - - async getHelpThemeList() { - let themeNames = this.getThemeNames() - themeNames = themeNames.sort((a, b) => { - if (b === 'default') { - return -1 - } - return a.localeCompare(b) - }) - let list = [] - for (const themeName of themeNames) { - let style = await this.getHelpThemeConfig({themeName}) - list.push({name: themeName, style}) - } - return list - } - - async getHelpThemeConfig(params) { - let {themeName} = (params || {}) - if (!themeName) themeName = 'default' - let {Data} = await this.getMiaoUtils() - let themeConfigPath = path.join(this.miaoPath.themePath, themeName, 'config.js') - if (!fs.existsSync(themeConfigPath)) { - themeName = 'default' - } - return (await Data.importModule(`resources/help/theme/${themeName}/config.js`, 'miao')).style || {} - } - - async saveHelpThemeConfig(params) { - let {themeName, config} = (params || {}) - if (!themeName) themeName = 'default' - if (themeName === 'default') { - throw new GuobaError('默认皮肤不可修改!') - } - let {Data} = await this.getMiaoUtils() - let defaultStyle = (await Data.importModule(`resources/help/theme/default/config.js`)).style || {} - let themeStyle = (await Data.importModule(`resources/help/theme/${themeName}/config.js`)).style || {} - let merge = lodash.merge({}, defaultStyle, themeStyle, config) - let content = `export const style = ${JSON.stringify(merge, null, 2)}` - let savePath = path.join(this.miaoPath.themePath, themeName, 'config.js') - fs.writeFileSync(savePath, content, 'utf-8') - } - - async addHelpTheme(params, files) { - let {themeName} = params - let [mainPic] = files - let themePath = path.join(this.miaoPath.themePath, themeName) - if (fs.existsSync(themePath)) { - throw new GuobaError(`${themeName} 已存在!`) - } - fs.mkdirSync(themePath) - let mainImgPath = path.join(themePath, 'main.png') - moveFile(mainPic.path, mainImgPath) - } - - async editHelpTheme(params, files) { - let {themeName} = params - let [mainPic] = files - let themePath = path.join(this.miaoPath.themePath, themeName) - if (!fs.existsSync(themePath)) { - throw new GuobaError(`${themeName} 不存在!`) - } - let mainImgPath = path.join(themePath, 'main.png') - moveFile(mainPic.path, mainImgPath) - } - - async deleteHelpTheme(params) { - let {themeName} = params - if (!themeName) { - throw new GuobaError(`themeName 必须填写!`) - } - if (themeName === 'default') { - throw new GuobaError(`默认皮肤不可删除!`) - } - let themePath = path.join(this.miaoPath.themePath, themeName) - fs.rmSync(themePath, {recursive: true}) - } - - /** - * 获取皮肤main.png路径 - * @return {*} - */ - getThemeMainPath(query) { - let {themeName} = (query || {}) - if (!themeName) themeName = 'default' - let themeMainPath = path.join(this.miaoPath.themePath, themeName, 'main.png') - if (fs.existsSync(themeMainPath)) { - return themeMainPath - } - return path.join(this.miaoPath.themeDefaultPath, 'main.png') - } - - /** - * 获取皮肤bg路径 - * @return {*} - */ - getThemeBgPath() { - return path.join(this.miaoPath.themeDefaultPath, 'bg.jpg') - } - - getBackupCfg() { - let backCfg = super.getBackupCfg() - let {backupList} = backCfg - backupList.forEach((item) => { - if (item.version !== 2) { - item.version = 1 - } - }) - return backCfg - } - - addBackup(remark) { - let {backupPath, backupList, save} = this.getBackupCfg() - let {helpCfgPath, iconPath} = this.miaoPath - if (!fs.existsSync(helpCfgPath)) { - throw new GuobaError('未检测到配置文件,请先保存一次即可正常使用备份功能') - } - let id = new Date().getTime().toString() - backupList.push({id, remark, time: moment().format('YYYY-MM-DD HH:mm:ss'), version: 2}) - let backupDir = path.join(backupPath, id) - fs.mkdirSync(backupDir) - fs.cpSync(iconPath, path.join(backupDir, path.basename(iconPath))) - fs.cpSync(helpCfgPath, path.join(backupDir, path.basename(helpCfgPath))) - save() - return true - } - - async restoreBackup(id) { - let backupCfg = this.getBackupCfg() - let item = backupCfg.find(id) - if (!item) { - throw new GuobaError('backup not found') - } - if (item.version !== 2) { - await this.convertBackup(item) - } - let {helpCfgPath, iconPath} = this.miaoPath - let backupDir = path.join(backupCfg.backupPath, id) - fs.cpSync(path.join(backupDir, path.basename(iconPath)), iconPath) - fs.cpSync(path.join(backupDir, path.basename(helpCfgPath)), helpCfgPath) - return true - } - - async convertBackup(backItem) { - let {themePath} = this.miaoPath - let {backupPath, save} = this.getBackupCfg() - let backupDir = path.join(backupPath, backItem.id) - // 将配置文件转为新格式 - let oldCfgPath = path.join(backupDir, 'help-cfg.js') - if (!fs.existsSync(oldCfgPath)) { - throw new GuobaError('该备份已损坏,无法转换并恢复') - } - let {Data} = await this.getMiaoUtils() - let defCfg - try { - defCfg = await Data.importModule(`config/help_default.js`) - } catch (e) { - defCfg = await Data.importModule(`config/system/help_system.js`) - } - if (!defCfg) { - throw new GuobaError('转换失败,请勿删除默认配置文件') - } - let oldCfg = await Data.importModule('help-cfg.js', backupDir) - // 兼容一下旧字段 - let customCfg - if (lodash.isArray(oldCfg.helpCfg)) { - customCfg = { - helpList: oldCfg.helpCfg, - helpCfg: {}, - } - } else { - customCfg = oldCfg - } - let helpCfg = lodash.defaults(customCfg.helpCfg || {}, defCfg.helpCfg) - let helpList = customCfg.helpList || defCfg.helpList - let mainImgPath = path.join(backupDir, 'main-01.png') - // 将背景图片转为皮肤 - if (fs.existsSync(mainImgPath)) { - let themeName = backItem.remark - let themeDir = path.join(themePath, themeName) - let count = 0 - while (fs.existsSync(themeDir)) { - if (count++ > 10) { - throw new GuobaError('转换失败,皮肤名称重复') - } - themeName += '_' + lodash.random(100, 999) - themeDir = path.join(themePath, themeName) - } - fs.mkdirSync(themeDir) - moveFile(mainImgPath, path.join(themeDir, 'main.png')) - // 指定为转换后的皮肤 - helpCfg.theme = [themeName] - } - // 保存新配置 - let newHelpPath = path.join(backupDir, 'help.js') - let content = `export const helpCfg = ${JSON.stringify(helpCfg, null, 2)}\n` - content += `export const helpList = ${JSON.stringify(helpList, null, 2)}` - fs.writeFileSync(newHelpPath, content, 'utf-8') - backItem.version = 2 - delete backItem.isInit - save() - // 删除旧配置 - fs.unlinkSync(oldCfgPath) - } - - deleteBackup(id) { - let {backupPath, backupList, save} = this.getBackupCfg() - let backupDir = path.join(backupPath, id) - fs.rmSync(backupDir, {recursive: true}) - lodash.remove(backupList, {id}) - save() - return true - } - -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/plugin/miao/MiaoPluginV1Service.js b/Yunzai/plugins/Guoba-Plugin/server/service/both/plugin/miao/MiaoPluginV1Service.js deleted file mode 100644 index 3e3a58d39866f88e3fc53293b4d41dd8357a6fed..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/both/plugin/miao/MiaoPluginV1Service.js +++ /dev/null @@ -1,128 +0,0 @@ -import fs from 'fs' -import path from 'path' -import lodash from 'lodash' -import moment from 'moment' -import {_paths} from '#guoba.platform' -import {moveFile} from "#guoba.utils"; - -const {GID} = Guoba.createImport(import.meta.url) - -/** @type {IMiaoPluginService} */ -const IMiaoPluginService = await GID('./IMiaoPluginService.js') - -// noinspection JSUnusedGlobalSymbols -/** - * 喵喵V1版本 - */ -export default class MiaoPluginV1Service extends IMiaoPluginService { - constructor(app) { - super(app) - } - - _miaoPath = null - - get miaoPath() { - if (this._miaoPath) { - return this._miaoPath - } - let miaoPath = path.join(_paths.root, 'plugins/miao-plugin') - let helpPath = path.join(miaoPath, 'resources/help') - let themePath = path.join(miaoPath, 'resources/common/theme') - let cfgPath = path.join(helpPath, 'help-cfg.js') - let cfgDefPath = path.join(helpPath, 'help-cfg_default.js') - let iconPath = path.join(helpPath, 'icon.png') - let mainImgPath = path.join(themePath, 'main-01.png') - let bgImgPath = path.join(themePath, 'bg-01.jpg') - - function getCfgPath() { - if (!fs.existsSync(cfgPath)) { - return cfgDefPath - } - return cfgPath - } - - return this._miaoPath = {miaoPath, helpPath, themePath, cfgPath, getCfgPath, iconPath, mainImgPath, bgImgPath} - } - - initBackup() { - let {backupList} = this.getBackupCfg() - if (backupList.length === 0) { - this.addBackup('初始备份', true) - } - } - - async getHelpSetting() { - let {helpPath} = this.miaoPath - let help = {} - if (fs.existsSync(`${helpPath}/help-cfg.js`)) { - help = await import(`file://${helpPath}/help-cfg.js?version=${new Date().getTime()}`) - } - let def = await import(`file://${helpPath}/help-cfg_default.js?version=${new Date().getTime()}`) - return { - helpCfg: lodash.defaults(help.helpCfg, def.helpCfg), - helpList: help.helpList || def.helpList, - } - } - - saveHelpSetting(bodyParams, files) { - let {helpCfg, helpList} = bodyParams - let {cfgPath, iconPath, mainImgPath} = this.miaoPath - let content = `export const helpCfg = ${helpCfg}\n` - content += `export const helpList = ${helpList}` - fs.writeFileSync(cfgPath, content, 'utf-8') - let [iconFile, mainFile] = files - moveFile(iconFile.path, iconPath) - if (mainFile) { - moveFile(mainFile.path, mainImgPath) - } - } - - /** - * 获取皮肤main.png路径 - * @return {*} - */ - getThemeMainPath() { - return this.miaoPath.mainImgPath - } - - /** - * 获取皮肤bg路径 - * @return {*} - */ - getThemeBgPath() { - return this.miaoPath.bgImgPath - } - - addBackup(remark, isInit = false) { - let {backupPath, backupList, save} = this.getBackupCfg() - let {getCfgPath, cfgPath, mainImgPath, iconPath} = this.miaoPath - let id = new Date().getTime().toString() - backupList.push({id, remark, isInit, time: moment().format('YYYY-MM-DD HH:mm:ss')}) - let backupDir = path.join(backupPath, id) - fs.mkdirSync(backupDir) - fs.cpSync(getCfgPath(), `${backupDir}/${path.basename(cfgPath)}`) - fs.cpSync(mainImgPath, `${backupDir}/${path.basename(mainImgPath)}`) - fs.cpSync(iconPath, `${backupDir}/${path.basename(iconPath)}`) - save() - } - - restoreBackup(id) { - let {backupPath} = this.getBackupCfg() - let {cfgPath, mainImgPath, iconPath} = this.miaoPath - let backupDir = path.join(backupPath, id) - fs.cpSync(`${backupDir}/${path.basename(cfgPath)}`, cfgPath) - fs.cpSync(`${backupDir}/${path.basename(mainImgPath)}`, mainImgPath) - fs.cpSync(`${backupDir}/${path.basename(iconPath)}`, iconPath) - return true - } - - deleteBackup(id) { - let {backupPath, backupList, save} = this.getBackupCfg() - let backupDir = path.join(backupPath, id) - fs.rmSync(backupDir, {recursive: true}) - lodash.remove(backupList, {id}) - save() - return true - } - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/system/SystemService.js b/Yunzai/plugins/Guoba-Plugin/server/service/both/system/SystemService.js deleted file mode 100644 index 2bd5c9c2ab49a79966f771c2cb6e6b6548854fc4..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/both/system/SystemService.js +++ /dev/null @@ -1,102 +0,0 @@ -import os from 'os' -import fs from 'fs' -import path from 'path' -import {Service, GuobaError} from '#guoba.framework'; -import {mkdirSync} from '#guoba.utils' -import {diskInfo} from '#guoba.libs' -import {liteToken} from './model/tokens.js' - -const {GI} = Guoba.createImport(import.meta.url) -const {useMenus} = await GI('./model/menus.js') - -export class SystemService extends Service { - - constructor(app) { - super(app) - } - - async queryMenus() { - return await useMenus() - } - - getLiteToken() { - return liteToken - } - - /** - * 创建目录 - * @param parentPath - * @param dirName - */ - createDir(parentPath, dirName) { - let joinPath = path.join(parentPath, dirName) - if (fs.existsSync(joinPath)) { - throw new GuobaError('目录已存在!') - } - return mkdirSync(joinPath) - } - - /** - * 获取文件系统树根路径 - * @returns {Promise} - */ - async getFsTreeRoot() { - let platform = os.platform().toLowerCase() - if (platform === 'linux') { - return [ - {title: '/', path: '/', isLeaf: false, children: null}, - ] - } else { - let drives = await diskInfo.getDrives() - return drives.map(drive => { - let title = drive.volumeName ? `${drive.volumeName}(${drive.mounted})` : drive.mounted - return { - title: title, - path: drive.mounted + '\\', - isLeaf: false, - children: null, - } - }) - } - } - - /** - * 获取文件系统树根路径 - * @param parentPath 父级路径 - * @param onlyDir 是否只返回目录 - * @returns {Promise} - */ - async getFsTreeChildren(parentPath, onlyDir = true) { - if (!fs.existsSync(parentPath)) { - throw new GuobaError('目录不存在!') - } - let children = [] - let childNames = fs.readdirSync(parentPath) - for (let childName of childNames) { - let child = { - title: childName, - path: path.join(parentPath, childName), - isLeaf: false, - children: null, - } - let stat - try { - stat = fs.statSync(child.path) - } catch (e) { - // 无权限的直接跳过 - // console.error(e.message || e) - continue - } - if (stat.isFile()) { - if (onlyDir) { - continue - } - child.isFile = true - child.isLeaf = true - } - children.push(child) - } - return children - } - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/system/model/.ignored_loader b/Yunzai/plugins/Guoba-Plugin/server/service/both/system/model/.ignored_loader deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/system/model/menus.js b/Yunzai/plugins/Guoba-Plugin/server/service/both/system/model/menus.js deleted file mode 100644 index 08349957f6bc5d3b78d39197578e80227eeacad6..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/both/system/model/menus.js +++ /dev/null @@ -1,103 +0,0 @@ -import {PluginsMap} from '#guoba.platform' -import {isV2} from '#guoba.utils' - -// 首页菜单 -const homeMenu = { - path: '/home', - name: 'Home', - component: '/guoba/home/index', - meta: { - title: '首页', - icon: 'bx:bx-home', - }, -} - -// 账号管理 -const accountMenu = { - path: '/account', - name: 'Account', - component: '/guoba/system/account/index', - meta: { - title: '账号管理', - icon: 'ant-design:user-outlined', - }, -} - -const configMenu = { - path: 'config', - name: 'Config', - component: '/guoba/config/index', - meta: { - title: '配置管理', - icon: 'ion:settings-outline', - }, -} - -const pluginsMenu = { - path: 'plugins', - name: 'Plugins', - component: '/guoba/plugins/index', - meta: { - title: '插件管理', - icon: 'clarity:plugin-line', - }, -} - -const miaoV1Menu = { - path: 'plugins/miao-plugin', - name: 'MiaoPlugin', - component: '/guoba/plugins/extra-config/miao-plugin-v1/index', - meta: { - title: '喵喵帮助', - icon: 'twemoji:heart-with-ribbon', - }, -} - -const miaoMenu = { - path: 'plugins/miao-plugin', - name: 'MiaoPlugin', - component: '/guoba/plugins/extra-config/miao-plugin/index', - meta: { - title: '喵喵帮助', - icon: 'twemoji:heart-with-ribbon', - }, -} - -const aboutMenu = { - path: 'about', - name: 'about', - component: '/guoba/about/index', - meta: { - title: '关于', - icon: 'simple-icons:about-dot-me', - }, -} - -export async function useMenus() { - if (isV2) return useV2Menu() - let menus = [] - menus.push(homeMenu) - menus.push(configMenu) - menus.push(pluginsMenu) - // 判断是否安装了喵喵插件 - if (PluginsMap.get('miao-plugin')) { - // 判断喵喵插件版本 - try { - let miaoVersion = (await import('../../../../../../miao-plugin/components/Version.js')).default - if (miaoVersion.version.startsWith('1')) { - menus.push(miaoV1Menu) - } else { - menus.push(miaoMenu) - } - } catch (e) { - logger.error(e) - } - } - menus.push(accountMenu) - menus.push(aboutMenu) - return menus -} - -async function useV2Menu() { - return [] -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/both/system/model/tokens.js b/Yunzai/plugins/Guoba-Plugin/server/service/both/system/model/tokens.js deleted file mode 100644 index d6ef22ef0dcd7d32d553146cdacba9533a047298..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/both/system/model/tokens.js +++ /dev/null @@ -1,3 +0,0 @@ -import {randomString} from '#guoba.utils' - -export const liteToken = randomString(8) diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/interface/IBotService.js b/Yunzai/plugins/Guoba-Plugin/server/service/interface/IBotService.js deleted file mode 100644 index 0b4619863869044d6143511f48522ecb7cd81eff..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/interface/IBotService.js +++ /dev/null @@ -1,13 +0,0 @@ -import {Result, Service} from '#guoba.framework'; - -export default class IBotService extends Service { - constructor(app) { - super(app) - } - - /** 获取全部用户cookie */ - getUserCookies() { - throw Result.ERR_CODE_501 - } - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/interface/IConfigService.js b/Yunzai/plugins/Guoba-Plugin/server/service/interface/IConfigService.js deleted file mode 100644 index 75c440bd54b254ac05525b311d95ee02ebae928a..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/interface/IConfigService.js +++ /dev/null @@ -1,44 +0,0 @@ -import {Result, Service} from '#guoba.framework'; - -export default class IConfigService extends Service { - constructor(app) { - super(app) - } - - /** - * 获取所有配置,以tabs格式返回 - * @return {Promise} - */ - async getConfigTabs() { - throw Result.ERR_CODE_501 - } - - /** - * 获取配置数据 - * @param key - * @return {Promise} - */ - async getConfigData(key) { - throw Result.ERR_CODE_501 - } - - /** - * 设置配置数据 - * @param key - * @param data - * @return {Promise} - */ - async setConfigData(key, data) { - throw Result.ERR_CODE_501 - } - - /** - * 删除卡片表单 - * @param formKey - * @param cardKey - * @return {Promise} - */ - async removeCardForm(formKey, cardKey) { - throw Result.ERR_CODE_501 - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/interface/IPluginService.js b/Yunzai/plugins/Guoba-Plugin/server/service/interface/IPluginService.js deleted file mode 100644 index e6d5f3d37c87944dadafb7add0e81f73c7a17951..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/interface/IPluginService.js +++ /dev/null @@ -1,380 +0,0 @@ -import os from 'os' -import fs from 'fs' -import path from 'path' -import lodash from 'lodash' -import fetch from 'node-fetch' -import {Service} from '#guoba.framework'; -import {Constant, GuobaSupportMap, PluginsMap} from "#guoba.platform"; - -export default class IPluginService extends Service { - constructor(app) { - super(app) - // 获取插件列表,填充GuobaSupportMap - this.loadPlugining = this.getPlugins() - } - - /** - * 获取所有插件 - * @param force 是否清空缓存强制刷新 - * @return {Promise<*>} - */ - async getPlugins(force = false) { - let remotePlugins = await this.getRemotePlugins(force) - let localPlugins = await this.readLocalPlugins(this.pluginsPath) - for (let rp of remotePlugins) { - let idx = localPlugins.findIndex(({name}) => lodash.toLower(name) === lodash.toLower(rp.name)) - if (idx > -1) { - let lp = localPlugins[idx] - Object.assign(rp, lp, {installed: true}) - localPlugins.splice(idx, 1) - } - } - if (localPlugins.length > 0) { - for (let plugin of localPlugins) { - remotePlugins.push({ - isV2: false, isV3: false, isDeleted: false, - title: plugin.name, name: plugin.name, - link: '', author: '未知', authorLink: '', description: '', - installed: true, ...plugin, - }) - } - } - // 处理config等信息 - for (let plugin of remotePlugins) { - // 判断是否配置了 iconPath - if (plugin.iconPath) { - plugin.iconPath = `/api/plugin/s/${plugin.name}/icon` - } - // 判断是否支持guoba - let supportObject = GuobaSupportMap.get(plugin.name) - if (!supportObject) { - continue - } - // 判断是否支持配置项 - let {configInfo} = supportObject - if (configInfo && configInfo.schemas && typeof configInfo.getConfigData === 'function') { - plugin.hasConfig = true - plugin.schemas = configInfo.schemas - } - } - // 已安装的插件,排在前面 - return remotePlugins.sort((a, b) => { - if (a.installed && !b.installed) { - return -1 - } - if (!a.installed && b.installed) { - return 1 - } - return 0 - }) - } - - /** - * 读取本地插件信息 - * @param pluginsPath - * @return {object[]} - */ - async readLocalPlugins(pluginsPath) { - let files = fs.readdirSync(pluginsPath) - let plugins = [] - for (let name of files) { - if (this.exclude && this.exclude.includes(name)) { - continue - } - let filePath = path.join(pluginsPath, name) - let stat = fs.statSync(filePath) - if (stat.isDirectory()) { - let jsPath = path.join(filePath, 'index.js') - if (fs.existsSync(jsPath) || fs.existsSync(path.join(filePath, '.git/'))) { - let plugin = { - name: name.toLowerCase(), - } - jsPath = path.join(filePath, 'guoba.support.js') - // 判断是否支持锅巴 - if (fs.existsSync(jsPath)) { - try { - // 判断是否是windows系统 - if (os.platform() === 'win32') { - jsPath = 'file:///' + jsPath - } - let {supportGuoba} = await import(jsPath) - if (typeof supportGuoba === 'function') { - // TODO 传什么参数?待定 - let supportObject = supportGuoba() - if (supportObject.pluginInfo) { - plugin = Object.assign(plugin, supportObject.pluginInfo) - } - // 注册进锅巴 - GuobaSupportMap.set(plugin.name, supportObject) - } else { - throw 'supportGuoba必须要定义成一个方法!' - } - } catch (e) { - logger.error(`[Guoba] 载入guoba.support.js失败:` + (e.message || e)) - } - } - PluginsMap.set(plugin.name, plugin) - plugins.push(plugin) - } - } - } - return plugins - } - - /** - * 获取远程插件列表 - * @param force 是否清空缓存强制刷新 - * @return {Promise<*>} - */ - async getRemotePlugins(force = false) { - let redisKey = Constant.REDIS_PREFIX + 'plugins' - let remotePlugins = null - if (!force) { - remotePlugins = await redis.get(redisKey) - } - if (remotePlugins) { - return JSON.parse(remotePlugins) - } - try { - const remotesMap = await parsePluginsIndex() - if (!remotesMap) { - return [] - } - const {topPlugins = [], plugins = [], gamePlugins = []} = remotesMap; - remotePlugins = [...topPlugins, ...plugins, ...gamePlugins] - } catch (e) { - logger.error(e) - } - // 读取失败…… - if (!remotePlugins || remotePlugins.length === 0) { - return [] - } - redis.set(redisKey, JSON.stringify(remotePlugins), {EX: 3600 * 12}) - return remotePlugins - } - - async getReadmeText(link, force = false) { - let redisKey = Constant.REDIS_PREFIX + 'plugin:readme:' + link - let text = null - if (!force) { - text = await redis.get(redisKey) - } - if (text) { - return text - } - let arr = link.split('/') - let name = (arr.pop() || '').trim().replace(/\.git$/, '') - let author = arr.pop() - let url = '' - if (/github\.com/i.test(link)) { - url = `https://raw.githubusercontent.com/${author}/${name}/{branch}` - } else if (/gitee\.com/i.test(link)) { - url = `https://gitee.com/${author}/${name}/raw/{branch}` - } - if (url) { - let baseUrl = '' - let branches = ['master', 'main'] - for (let branch of branches) { - baseUrl = url.replace('{branch}', branch) - let response = await fetch(`${baseUrl}/README.md`) - if (response.status === 200) { - text = await response.text() - break - } - } - if (text) { - text = parseReadmeLink(text, baseUrl) - redis.set(redisKey, text, {EX: 3600 * 12}) - return text - } - } - return '' - } - -} - -const parseConfig = { - topPlugins: { - identifyReg: /^##\s*置顶((plugin))?\s*$/, - beginReg: /(\|\s*-{3,}\s*){3}\|/, - itemReg: /\|(.*)\|(.*)\|(.*)\|/, - linkReg: /\[(.*)]\((.*)\)/, - }, - plugins: { - identifyReg: /^##\s*功能插件((plugin))?\s*$/, - beginReg: /(\|\s*-{3,}\s*){3}\|/, - itemReg: /\|(.*)\|(.*)\|(.*)\|/, - linkReg: /\[(.*)]\((.*)\)/, - }, - gamePlugins: { - identifyReg: /^##\s*游戏插件((plugin))?\s*$/, - beginReg: /(\|\s*-{3,}\s*){3}\|/, - itemReg: /\|(.*)\|(.*)\|(.*)\|/, - linkReg: /\[(.*)]\((.*)\)/, - }, -} - -/** - * 解析远程插件列表 - */ -async function parsePluginsIndex() { - let urls = [ - // gitee 主地址 - 'https://gitee.com/yhArcadia/Yunzai-Bot-plugins-index/raw/main/README.md', - // github 备用地址 - 'https://raw.githubusercontent.com/yhArcadia/Yunzai-Bot-plugins-index/main/README.md', - // oss 备用地址(不定时同步) - 'https://zolay.oss-cn-beijing.aliyuncs.com/github/yhArcadia/Yunzai-Bot-plugins-index/README.md', - ] - let response, text - for (let i = 0; i < urls.length; i++) { - let url = urls[i] - try { - response = await fetch(url) - if (!response.ok) { - throw new Error(response.statusText) - } - text = await response.text() - if (/The\scontent\smay\scontain\sviolation\sinformation/i.test(text)) { - throw new Error('内容违规') - } - if (i > 0) { - logger.info('[Guoba] 通过备用地址获取插件列表成功~') - } - break - } catch (e) { - // 获取失败 - if (i === 0) { - logger.warn(`[Guoba] 远程插件列表获取失败(${e.message}),尝试使用第${i + 1}个备用地址获取……`) - } else if (i === url.length - 1) { - logger.error(`[Guoba] 远程插件列表获取失败,所有备用地址均已失效……`) - return {} - } else { - logger.warn(`[Guoba] 第${i}个备用地址获取失败(${e.message}),尝试使用第${i + 1}个备用地址获取……`) - } - } - } - let lines = text.split(/\n/) - let parseState = {current: '', idx: 0} - let parseResult = {} - let parseEntries = Object.entries(parseConfig) - for (let line of lines) { - for (const [parseKey, parseItem] of parseEntries) { - let result = parseResult[parseKey] - if (parseState.current === parseKey) { - if (result) { - // 忽略空行,不认为是结束 - if (!line.trim().length) { - continue - } - if (parseItem.itemReg.test(line)) { - // 解析3列 - let [, col1, col2, col3] = line.match(parseItem.itemReg) - // 解析插件标题和插件链接 - let title = col1.trim(), link = null - if (parseItem.linkReg.test(title)) { - let nameMatch = col1.match(parseItem.linkReg) - title = nameMatch[1] - link = nameMatch[2] - } - // 解析插件真实名称(放在plugins目录下的目录名) - let name = null - if (link) { - name = link.split('/').filter(i => i != null && i !== '').pop().trim() - name = name.replace(/\.git$/, '') - } - // // 如果不包含插件名称,则认为是无效的插件,直接跳过 - // if (!name) { - // continue - // } - // 解析插件作者和插件作者链接 - let author = col2, authorLink = null - if (parseItem.linkReg.test(author)) { - // 作者可能有多个 multi - let multiReg = /\[([^\]]+)]\(([^)]+)\)/g - let authorList = col2.match(multiReg) - author = [] - authorLink = [] - for (let authorItem of authorList) { - let match = authorItem.match(parseItem.linkReg) - let temp = match[1] ? match[1].trim() : '' - if (temp) { - author.push(temp) - authorLink.push(match[2] ? match[2].trim() : '') - } - } - if (author.length === 0) { - author = '佚名' - } - } - // 判断云崽版本兼容情况 - // let supportReg = /[✔√]/ - // let isV2 = supportReg.test(col3) - // let isV3 = supportReg.test(col4) - let isV2 = false, isV3 = true; - // 判断是否是已删除的插件 - title = title ? title.trim() : '未知' - let deletedReg = /^~~(.+)~~$/ - let isDeleted = deletedReg.test(title) - title = title.replace(deletedReg, '$1') - result.push({ - isV2, isV3, title, isDeleted, - name: (name ? name.trim() : '').toLowerCase(), - link: link ? link.trim() : '', - author: author, - authorLink: authorLink, - description: col3 ? col3.trim() : null, - }) - } else { - // 如果匹配失败,则认为是结束 - parseState.idx++ - parseState.current = '' - } - } else if (parseItem.beginReg.test(line)) { - // 开始解析 - parseResult[parseKey] = [] - } - } else if (parseItem.identifyReg.test(line)) { - // 标识匹配成功,开始进入内容解析 - parseState.current = parseKey - } - } - // 解析完成 - if (parseState.idx === parseEntries.length) { - break - } - } - return parseResult -} - -/** - * 解析readme里的链接,如果是相对地址,就替换成绝对地址 - */ -function parseReadmeLink(text, baseUrl) { - let linkReg = /\[.*]\((.*)\)/g - let imgReg = //g - let checkUrl = (url) => { - // 因为gitee的防盗链机制,所以只有gitee的链接才需要替换 - if (/gitee\.com/i.test(url)) { - return /\.(png|jpeg|jpg|gif|bmp|svg|ico|icon|webp|webm|mp4)$/i.test(url) - } - return false - } - let fn = ($0, $1) => { - let url = '' - if (checkUrl($1)) { - url = `/api/helper/transit?url=${encodeURIComponent($1)}` - return $0.replace($1, url) - } - if (/^https?/i.test($1)) { - return $0 - } - url = `${baseUrl}/${$1.replace(/^\//, '')}` - if (checkUrl(url)) { - url = `/api/helper/transit?url=${encodeURIComponent(url)}` - } - return $0.replace($1, url) - } - text = text.replace(linkReg, fn) - return text.replace(imgReg, fn) -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/v2/PluginService.js b/Yunzai/plugins/Guoba-Plugin/server/service/v2/PluginService.js deleted file mode 100644 index 0ea11e90b5120fd89d238dfc438b47ac0579328c..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/v2/PluginService.js +++ /dev/null @@ -1,12 +0,0 @@ -import path from 'path' -import {_paths} from "#guoba.platform"; - -const IPluginService = await Guoba.GID('#/service/interface/IPluginService.js') - -export default class PluginService extends IPluginService { - constructor(app) { - super(app) - this.exclude = [] - this.pluginsPath = path.join(_paths.root, 'plugins') - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/ConfigServiceImpl.js b/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/ConfigServiceImpl.js deleted file mode 100644 index 3e0cc1a5039025d88ddd3a0cd14272bbfc5742e2..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/ConfigServiceImpl.js +++ /dev/null @@ -1,44 +0,0 @@ -import {YamlReader} from "#guoba.framework"; - -// 创建可使用相对路径的import方法 -const {GI, GID} = Guoba.createImport(import.meta.url) -// 引入模块 -const IConfigService = await GID('#/service/interface/IConfigService.js') -const {getConfigReader} = await GI('./utils/ConfigUtils.js') -const {getConfigTabs, configFile} = await GI('./model/useConfig.js') - -export default class ConfigServiceImpl extends IConfigService { - - constructor(app) { - super(app) - } - - async getConfigTabs() { - return getConfigTabs() - } - - async getConfigData(key) { - let jsonData = getConfigReader(key, configFile).jsonData - if (Array.isArray(jsonData)) { - return jsonData - } - let obj = {} - for (let [key, value] of Object.entries(jsonData)) { - let field = key - // 此处特殊处理,因为前端form的field不能是纯数字,只处理一层 - if (/^\d+$/.test(key)) { - field = YamlReader.CONFIG_INTEGER_KEY + key - } - obj[field] = value - } - return obj - } - - async setConfigData(key, data) { - getConfigReader(key, configFile).setData(data) - } - - async removeCardForm(formKey, cardKey) { - getConfigReader(cardKey, configFile).deleteKey(formKey) - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/model/.ignored_loader b/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/model/.ignored_loader deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/model/useConfig.js b/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/model/useConfig.js deleted file mode 100644 index c719653e05067dc9898c513ed076a3db6e83babf..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/model/useConfig.js +++ /dev/null @@ -1,532 +0,0 @@ -import loader from '../../../../../../../lib/plugins/loader.js' - -// 添加群号 prompt -const addGroupPromptProps = { - content: '请输入群号:', - placeholder: '请输入群号', - okText: '添加', - rules: [ - {required: true, message: '群号得填上才行哦~'}, - {pattern: '^\\d+$', message: '群号应该是纯数字的吧'}, - {min: 5, message: '真的有这么短的群号吗?'}, - {max: 10, message: '太…太长了……'}, - ], -} -// 添加QQ号 prompt -const addUserPromptProps = { - content: '请输入QQ号:', - placeholder: '请输入QQ号', - okText: '添加', - rules: [ - {required: true, message: 'QQ号得填上才行哦~'}, - {pattern: '^\\d+$', message: 'QQ号应该是纯数字的吧'}, - {min: 5, message: '真的有这么短的QQ号吗?'}, - {max: 10, message: '太…太长了……'}, - ], -} - -// 基础配置 -const baseConfig = { - key: 'base', - title: '基础配置', - cards: [ - { - key: 'system.bot', - title: '机器人配置', - desc: '对机器人进行相关配置', - schemas: [ - { - field: 'log_level', - label: '日志等级', - bottomHelpMessage: '日志输出等级。Mark时只显示执行命令,不显示聊天记录', - component: 'Select', - componentProps: { - options: [ - {label: 'Trace', value: 'trace'}, - {label: 'Debug', value: 'debug'}, - {label: 'Info', value: 'info'}, - {label: 'Warn', value: 'warn'}, - {label: 'Fatal', value: 'fatal'}, - {label: 'Mark', value: 'mark'}, - {label: 'Error', value: 'error'}, - {label: 'Off', value: 'off'}, - ], - placeholder: '请选择日志等级', - }, - }, - { - field: 'ignore_self', - label: '过滤自己', - bottomHelpMessage: '群聊和频道中是否过滤自己的消息', - component: 'Switch', - }, - { - field: 'resend', - label: '分片发送', - bottomHelpMessage: '被风控时是否尝试使用分片发送', - component: 'Switch', - }, - { - field: 'ffmpeg_path', - label: 'ffmpeg路径', - bottomHelpMessage: '填写ffmpeg的可执行文件路径,一般用于音频处理(发送语音)', - component: 'Input', - componentProps: { - placeholder: '请输入ffmpeg路径', - }, - }, - { - field: 'ffprobe_path', - label: 'ffprobe路径', - bottomHelpMessage: 'ffprobe可以从媒体流收集媒体信息,并打印出开发人员可以读的格式', - component: 'Input', - componentProps: { - placeholder: '请输入ffprobe路径', - }, - }, - { - field: 'chromium_path', - label: 'chromium路径', - bottomHelpMessage: 'chromium其他路径,默认无需填写,需要时可填写chromium的可执行文件绝对路径', - component: 'Input', - componentProps: { - placeholder: '请输入chromium路径', - }, - }, - { - field: 'proxyAddress', - label: '代理地址', - bottomHelpMessage: '米游社接口代理地址,国际服用', - component: 'Input', - componentProps: { - placeholder: '请输入米游社代理地址', - }, - }, - { - field: 'online_msg', - label: '推送帮助', - bottomHelpMessage: '被上线时给首个主人QQ推送帮助', - component: 'Switch', - }, - { - field: 'online_msg_exp', - label: '推送帮助冷却', - bottomHelpMessage: '填上线推送通知的冷却时间', - component: 'Input', - componentProps: { - placeholder: '请输入冷却时间,单位秒', - }, - }, - ], - }, - { - key: 'system.redis', - title: 'Redis配置', - desc: '对Redis服务器进行相关配置', - schemas: [ - { - field: 'host', - label: 'Redis地址', - required: true, - component: 'Input', - componentProps: { - placeholder: '请输入Redis地址', - }, - }, - { - field: 'port', - label: 'Redis端口', - required: true, - component: 'InputNumber', - componentProps: { - placeholder: '请输入Redis端口', - min: 1, - max: 65535, - }, - }, - { - field: 'password', - label: 'Redis密码', - bottomHelpMessage: '没有密码可以为空', - component: 'InputPassword', - componentProps: { - placeholder: '请输入Redis密码', - }, - }, - { - field: 'db', - label: 'Redis数据库', - required: true, - bottomHelpMessage: '一般不用改', - component: 'InputNumber', - componentProps: { - placeholder: '请输入Redis数据库', - }, - }, - ], - }, - ], -} - -const groupConfig = () => { - let funOptions = [] - for (let item of loader.priority) { - if (item.hasOwnProperty('name') && item.name) { - if (!funOptions.find(i => i.value === item.name)) { - funOptions.push({value: item.name}) - } - } - } - let funComponent = funOptions.length === 0 ? 'GTags' : 'Select' - return { - key: 'group', - title: '群组配置', - cards: [ - { - key: 'system.group', - type: 'keyFormCard', - // 标题表达式 - title: `{{form.key === 'default' ? '默认配置' : '群:' + form.key}}`, - desc: '默认配置对所有群聊生效', - // 允许添加新的配置 - allowAdd: true, - allowDel: true, - // 新增按钮文本(默认“新增”) - addBtnText: '新增群配置', - promptProps: addGroupPromptProps, - schemas: [ - { - field: 'groupCD', - label: '整体冷却时间', - component: 'InputNumber', - bottomHelpMessage: '群聊中所有指令操作冷却时间,单位毫秒,0 则无限制', - componentProps: { - placeholder: '请输入指令冷却时间', - }, - }, - { - field: 'singleCD', - label: '个人冷却时间', - component: 'InputNumber', - bottomHelpMessage: '群聊中个人操作冷却时间,单位毫秒', - componentProps: { - placeholder: '请输入指令冷却时间', - }, - }, - { - field: 'onlyReplyAt', - label: '只关注At', - component: 'Switch', - bottomHelpMessage: '是否只仅关注主动@机器人的消息', - componentProps: { - checkedValue: 1, - unCheckedValue: 0, - }, - }, - { - field: 'botAlias', - label: '机器人别名', - component: 'GTags', - bottomHelpMessage: '开启“只关注At”后,发送以别名开头的消息也会响应,支持多个别名', - componentProps: { - allowAdd: true, - allowDel: true, - }, - }, - { - field: 'imgAddLimit', - label: '添加表情权限', - component: 'RadioGroup', - bottomHelpMessage: '添加表情是否限制权限', - componentProps: { - options: [ - {label: '所有群员都可以添加', value: 0}, - {label: '群主和管理员才能添加', value: 1}, - {label: '只有主人才能添加', value: 2}, - ], - }, - }, - { - field: 'imgMaxSize', - label: '添加表情大小限制', - component: 'InputNumber', - bottomHelpMessage: '添加表情图片大小限制,单位:MB', - componentProps: { - placeholder: '请输入添加表情图片大小限制', - }, - }, - { - field: 'addPrivate', - label: '私聊添加', - component: 'Switch', - bottomHelpMessage: '是否允许私聊添加', - componentProps: { - checkedValue: 1, - unCheckedValue: 0, - }, - }, - { - field: 'enable', - label: '功能白名单', - component: funComponent, - bottomHelpMessage: '配置后只有配置的功能才可以使用', - componentProps: { - allowAdd: true, - allowDel: true, - mode: 'multiple', - options: funOptions, - }, - }, - { - field: 'disable', - label: '功能黑名单', - component: funComponent, - bottomHelpMessage: '配置后配置的功能将不可以使用', - componentProps: { - allowAdd: true, - allowDel: true, - mode: 'multiple', - options: funOptions, - }, - }, - ], - }, - ], - } -} - -const genshinConfig = { - key: 'genshin', - title: '原神配置', - cards: [ - { - key: 'genshin.mys.set', - title: '米游社设置', - desc: '', - schemas: [ - { - field: 'allowUseCookie', - label: '使用用户ck', - component: 'Switch', - bottomHelpMessage: '公共查询是否使用用户ck', - componentProps: { - checkedValue: 1, - unCheckedValue: 0, - }, - }, - { - field: 'cookieDoc', - label: 'ck文档地址', - component: 'Input', - bottomHelpMessage: '默认cookie帮助文档链接地址', - componentProps: {}, - }, - { - field: 'isAutoSign', - label: '开启自动签到', - component: 'Switch', - bottomHelpMessage: '是否开启米游社原神自动签到', - componentProps: { - checkedValue: 1, - unCheckedValue: 0, - }, - }, - { - field: 'signTime', - label: '签到定时任务', - component: 'EasyCron', - bottomHelpMessage: '米游社原神签到定时任务,Cron表达式,默认00:02开始执行,每10s签到一个', - componentProps: {}, - }, - { - field: 'abbrSetAuth', - label: '别名权限', - component: 'RadioGroup', - bottomHelpMessage: '别名设置权限', - componentProps: { - options: [ - {label: '所有群员都可以添加', value: 0}, - {label: '群主和管理员才能添加', value: 1}, - {label: '只有主人才能添加', value: 2}, - ], - }, - }, - ], - }, - { - key: 'genshin.mys.pubCk', - title: '公共Cookie', - desc: '米游社公共查询cookie,允许添加多个', - // 数组form - type: 'arrayFormCard', - allowAdd: true, - allowDel: true, - addBtnText: '添加Cookie', - lengthMin: 1, - schemas: [], - }, - { - key: 'genshin.gacha', - title: `十连配置({{form.key === 'default' ? '默认' : form.key}})`, - desc: '十连次数、概率等相关配置', - type: 'keyFormCard', - allowAdd: true, - allowDel: true, - addBtnText: '新增群单独配置', - promptProps: addGroupPromptProps, - schemas: [ - { - field: 'count', - label: '每日抽卡数', - bottomHelpMessage: '设置每天可以抽多少次', - component: 'InputNumber', - componentProps: { - min: 1, - placeholder: '请输入每日抽卡数', - }, - }, - { - field: 'delMsg', - label: '自动撤回', - bottomHelpMessage: '自动撤回未出货的抽卡消息,0-120 秒,0 = 不撤回', - component: 'InputNumber', - componentProps: { - placeholder: '请输入自动撤回时间', - }, - }, - { - field: 'LimitSeparate', - label: '分开计算', - bottomHelpMessage: '角色池、武器池限制次数是否分开计算', - component: 'Switch', - componentProps: { - checkedValue: 1, - unCheckedValue: 0, - }, - }, - ], - }, - ], -} - -const otherConfig = { - key: 'other', - title: '其他', - cards: [ - { - key: 'system.other', - title: '其他配置', - desc: '其他配置', - schemas: [ - { - field: 'autoFriend', - label: '添加好友', - bottomHelpMessage: '是否自动同意添加好友请求', - component: 'Switch', - componentProps: { - checkedValue: 1, - unCheckedValue: 0, - }, - }, - { - field: 'autoQuit', - label: '退群人数', - bottomHelpMessage: '被好友拉进群时,群人数小于配置值自动退出,设为0表示不处理', - component: 'InputNumber', - componentProps: { - placeholder: '请输入退群人数', - min: 0, - }, - }, - { - field: 'masterQQ', - label: '主人QQ', - bottomHelpMessage: '主人QQ号,功能不受限制,可以设置多个', - component: 'GSelectFriend', - componentProps: { - placeholder: '请选择主人QQ号', - }, - }, - { - field: 'disablePrivate', - label: '禁用私聊', - bottomHelpMessage: '禁用后私聊只接受ck以及抽卡链接(Bot主人不受限制)', - component: 'Switch', - }, - { - field: 'disableMsg', - label: '禁私聊提示', - bottomHelpMessage: '禁用私聊时Bot的提示内容', - component: 'Input', - componentProps: { - placeholder: '请输入禁用提示', - }, - }, - { - field: 'disableAdopt', - label: '私聊通行字符串', - bottomHelpMessage: '禁用私聊后,允许响应的字符串', - component: 'GTags', - componentProps: { - allowAdd: true, - allowDel: true, - }, - }, - { - field: 'whiteGroup', - label: '白名单群', - bottomHelpMessage: '白名单群,可以设置多个', - component: 'GSelectGroup', - componentProps: { - placeholder: '请选择白名单群', - }, - }, - { - field: 'blackGroup', - label: '黑名单群', - bottomHelpMessage: '黑名单群,可以设置多个', - component: 'GSelectGroup', - componentProps: { - placeholder: '请选择黑名单群', - }, - }, - { - field: 'blackQQ', - label: '黑名单QQ', - bottomHelpMessage: '黑名单QQ,可以设置多个,用英文逗号分隔', - component: 'GTags', - componentProps: { - placeholder: '请输入黑名单QQ', - allowAdd: true, - allowDel: true, - showPrompt: true, - promptProps: addUserPromptProps, - valueFormatter: ((value) => Number.parseInt(value)).toString(), - }, - }, - ], - }, - ], -} - -export function getConfigTabs() { - let tabs = [] - tabs.push(baseConfig) - tabs.push(groupConfig()) - tabs.push(genshinConfig) - tabs.push(otherConfig) - return tabs -} - -export const configFile = { - 'system.bot': '/config/config/bot.yaml', - 'system.qq': '/config/config/qq.yaml', - 'system.group': '/config/config/group.yaml', - 'system.redis': '/config/config/redis.yaml', - 'system.other': '/config/config/other.yaml', - - 'genshin.gacha': '/plugins/genshin/config/gacha.set.yaml', - 'genshin.mys.pubCk': '/plugins/genshin/config/mys.pubCk.yaml', - 'genshin.mys.set': '/plugins/genshin/config/mys.set.yaml', - 'genshin.role.name': '/plugins/genshin/config/role.name.yaml', -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/utils/.ignored_loader b/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/utils/.ignored_loader deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/utils/ConfigUtils.js b/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/utils/ConfigUtils.js deleted file mode 100644 index 045e8b2fa732f5bfca352999ae741d2e672b974b..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/v3/config/utils/ConfigUtils.js +++ /dev/null @@ -1,20 +0,0 @@ -import path from 'path' -import {YamlReader, GuobaError} from "#guoba.framework"; -import {_paths} from "#guoba.platform"; - -export const configReader = new Map() - -export function getConfigReader(key, configFile) { - let reader = configReader.get(key) - if (!reader) { - let filePath = configFile[key] - if (filePath) { - filePath = path.join(_paths.root, filePath) - reader = new YamlReader(filePath, true) - configReader.set(key, reader) - } else { - throw new GuobaError(`没有找到配置文件:${key}`) - } - } - return reader -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/v3/system/BotService.js b/Yunzai/plugins/Guoba-Plugin/server/service/v3/system/BotService.js deleted file mode 100644 index 89ffa9f21f18e6df9a7761dd00dcc77257ee6547..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/v3/system/BotService.js +++ /dev/null @@ -1,40 +0,0 @@ -const IBotService = await Guoba.GID('#/service/interface/IBotService.js') -const MysInfo = await Guoba.GID('/plugins/genshin/model/mys/mysInfo.js') -const MysUser = await Guoba.GID('/plugins/genshin/model/mys/MysUser.js') - -export class BotService extends IBotService { - constructor(app) { - super(app) - } - - async getUserCookies() { - return await MysInfo.getBingCkUid() - } - - /** 获取 cookie 用户数量 */ - async getCookieCount() { - let err - // 新版获取方式(调用用户统计) - try { - err = null - await MysInfo.initCache() - const stat = await MysUser.getStatData() - return stat.count.total - } catch (e) { - err = e - } - try { - err = null - // 旧版获取方式 - let cookies = await MysInfo.getBingCkUid() - return cookies ? Object.keys(cookies).length : '-1' - } catch (e) { - err = e - } - if (err) { - console.error(err) - } - return '-1' - } - -} \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/service/v3/system/PluginService.js b/Yunzai/plugins/Guoba-Plugin/server/service/v3/system/PluginService.js deleted file mode 100644 index 362f4d8077c237c044a48f63e0321ac04e0f02f7..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/service/v3/system/PluginService.js +++ /dev/null @@ -1,17 +0,0 @@ -import path from 'path' -import {_paths} from "#guoba.platform"; - -const IPluginService = await Guoba.GID('#/service/interface/IPluginService.js') - -export default class PluginService extends IPluginService { - constructor(app) { - super(app) - this.exclude = [ - 'example', - 'genshin', - 'other', - 'system', - ] - this.pluginsPath = path.join(_paths.root, 'plugins') - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/_app.config.js b/Yunzai/plugins/Guoba-Plugin/server/static/_app.config.js deleted file mode 100644 index c007bc6f312163c5884caea975dd7ed12b2f49a7..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/_app.config.js +++ /dev/null @@ -1 +0,0 @@ -window.__PRODUCTION__GUOBAPLUGINWEB__CONF__={"VITE_GLOB_APP_TITLE":"GuobaAdmin","VITE_GLOB_APP_SHORT_NAME":"GuobaPluginWeb","VITE_GLOB_API_URL":"/api","VITE_GLOB_UPLOAD_URL":"/upload","VITE_GLOB_API_URL_PREFIX":""};Object.freeze(window.__PRODUCTION__GUOBAPLUGINWEB__CONF__);Object.defineProperty(window,"__PRODUCTION__GUOBAPLUGINWEB__CONF__",{configurable:false,writable:false,}); \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/21ae6624.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/21ae6624.js deleted file mode 100644 index b256616d03455b8df81a509d72879293c9512810..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/21ae6624.js +++ /dev/null @@ -1 +0,0 @@ -var e="/resource/img/21ae6624.webp";export{e as _}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ArrayForm.css b/Yunzai/plugins/Guoba-Plugin/server/static/assets/ArrayForm.css deleted file mode 100644 index 1c2541a74f458322ab0d020832abd32618854830..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ArrayForm.css +++ /dev/null @@ -1 +0,0 @@ -.guoba-array-form,.guoba-array-form .array-box{margin-bottom:12px}.guoba-array-form .array-box .array-item{display:flex;margin-top:8px;align-items:center}.guoba-array-form .array-box .array-item .ant-btn{margin-left:8px} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ArrayForm.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/ArrayForm.js deleted file mode 100644 index b4c828cbce6c0896f241cc76625ea0e4178595c8..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ArrayForm.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,b as a,p as n,Q as t,r,G as i,w as l,e as o,o as s,i as u,j as d,k as p,ae as m,m as c,f as v,h as f,R as x,F as j,U as y,af as g}from"./index.js";import{B as h}from"./BasicForm.js";import"./index4.js";import"./find.js";import"./_baseIteratee.js";import"./get.js";import"./index5.js";import"./index6.js";import"./useFormItem.js";/* empty css */import"./transButton.js";import"./index2.js";import"./useWindowSizeFn.js";import"./FullscreenOutlined.js";import"./upperFirst.js";import"./download.js";import"./index7.js";import"./index8.js";import"./uniqBy.js";const b=a({name:"ArrayForm",components:{BasicForm:h},props:{card:n.object.isRequired.type,form:n.object.isRequired.type,value:n.array.def((()=>[]))},emits:["redo","submit"],setup(e,{emit:a}){const{prefixCls:n}=t("array-form"),{createMessage:o}=g(),s=r(e.value),u=i((()=>{var a,n;return null!=(n=null==(a=e.card)?void 0:a.addBtnText)?n:"新增"}));function d(){return e=this,a=null,n=function*(){return s.value.filter((e=>!(null==e||""==e)))},new Promise(((t,r)=>{var i=e=>{try{o(n.next(e))}catch(a){r(a)}},l=e=>{try{o(n.throw(e))}catch(a){r(a)}},o=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,l);o((n=n.apply(e,a)).next())}));var e,a,n}return l((()=>e.value),(()=>s.value=e.value)),{emit:a,prefixCls:n,innerValue:s,addBtnText:u,onAdd:function(){var a;let n=null==(a=e.card)?void 0:a.lengthMax;null!=n&&s.value.length>=n?o.warn(`最多只能添加${n}个`):s.value.push("")},onRemove:function(a){var n;let t=null==(n=e.card)?void 0:n.lengthMin;null!=t&&s.value.length<=t?o.warn(`至少要留${t}个`):s.value.splice(a,1)},onSubmit:function(){var n;(null==(n=e.form)?void 0:n.actions)||(e.form.actions={validate:d}),a("submit",e.form)}}}}),w={style:{color:"#333333"}},C={class:"array-box"},k={class:"array-item"},B={style:{"text-align":"center"}},F=m("span",null,"保存",-1);var _=e(b,[["render",function(e,a,n,t,r,i){const l=o("icon"),g=o("a-tooltip"),h=o("a-input"),b=o("a-button"),_=o("a-popconfirm"),R=o("a-spin"),A=o("a-card");return s(),u(A,{title:e.card.title,class:y([e.prefixCls]),bordered:!1},{extra:d((()=>[p(g,{title:"刷新"},{default:d((()=>[p(l,{icon:"ant-design:redo",style:{cursor:"pointer"},onClick:a[0]||(a[0]=()=>e.emit("redo",e.form))})])),_:1})])),default:d((()=>[p(R,{spinning:e.form.loading},{default:d((()=>[m("div",w,c(e.card.desc),1),m("div",C,[(s(!0),v(j,null,f(e.innerValue,((a,n)=>(s(),v("div",k,[p(h,{value:e.innerValue[n],"onUpdate:value":a=>e.innerValue[n]=a,style:{"max-width":"880px"}},null,8,["value","onUpdate:value"]),e.card.allowDel?(s(),u(_,{key:0,title:"确定要删除吗?",onConfirm:()=>e.onRemove(n)},{default:d((()=>[p(b,{type:"primary","pre-icon":"ant-design:minus",size:"small",shape:"circle",danger:""})])),_:2},1032,["onConfirm"])):x("",!0)])))),256)),e.card.allowAdd?(s(),u(b,{key:0,type:"link","pre-icon":"ant-design:plus",size:"small",onClick:e.onAdd},{default:d((()=>[m("span",null,c(e.addBtnText),1)])),_:1},8,["onClick"])):x("",!0)]),m("div",B,[p(b,{type:"primary","pre-icon":"ant-design:save",onClick:e.onSubmit},{default:d((()=>[F])),_:1},8,["onClick"])])])),_:1},8,["spinning"])])),_:1},8,["title","class"])}]]);export{_ as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ArrowLeftOutlined.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/ArrowLeftOutlined.js deleted file mode 100644 index 3a066f313ad9a3765de8fbe01f83528fae7dd0fe..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ArrowLeftOutlined.js +++ /dev/null @@ -1 +0,0 @@ -import{k as e,ac as t}from"./index.js";var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function n(e){for(var t=1;tn in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,s=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&o(e,n,t[n]);if(r)for(var n of r(t))i.call(t,n)&&o(e,n,t[n]);return e},l=(e,t,n)=>new Promise(((r,a)=>{var i=e=>{try{s(n.next(e))}catch(t){a(t)}},o=e=>{try{s(n.throw(e))}catch(t){a(t)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(i,o);s((n=n.apply(e,t)).next())}));import{B as c,a as p}from"./index31.js";import{a as d,b as u,z as m,r as f,G as y,x as b,e as g,o as v,i as j,j as _,k as w,ae as h,m as O,f as k,R as P,a0 as x,a1 as C,l as D,af as I,u as L}from"./index.js";import"./index2.js";/* empty css *//* empty css */import{f as S,h as B,r as R,i as z}from"./miao.api.js";import"./index11.js";import"./ArrowLeftOutlined.js";import"./useWindowSizeFn.js";import"./FullscreenOutlined.js";import"./base64Conver.js";const A=u({name:"BackupDrawer",components:{BasicDrawer:c},emits:["register","reload"],setup(e,{emit:r}){const a=m(),{createMessage:i,createConfirm:o}=I(),{createPrompt:c}=L(),d=f(!1),u=f([]),[g,{closeDrawer:v,setDrawerProps:j}]=p((function(){_()}));function _(){return l(this,null,(function*(){try{h(!0),u.value=(yield S()).reverse()}finally{h(!1)}}))}function w(){v()}function h(e){d.value=e,j({confirmLoading:e})}return{getProps:y((()=>{let r={width:document.body.clientWidth>=768?700:"100%",title:"喵喵帮助备份",confirmLoading:b(d)};var i;return i=s(s(s({},b(a)),r),e),t(i,n({onOk:w,onCancel:w,onRegister:g}))})),loading:d,backupList:u,onAdd:function(){c({title:"新增备份",required:!0,placeholder:"请输入备份名称",bottomHelpMessage:"注:新版备份只会备份配置和图标,背景图片请使用“皮肤”功能。",onOk(e){return l(this,null,(function*(){yield B(e),yield _()}))}})},onRollback:function(e){return l(this,null,(function*(){let t=!1;if(2===e.version||(t=yield new Promise((e=>{o({iconType:"warning",title:"备份版本过低",content:"当前备份为旧版备份,是否要转换为新版备份?",onOk:()=>e(!0),onCancel:()=>e(!1)})})),t))try{h(!0),yield R(e.id),t&&(yield _()),r("reload")}finally{h(!1)}}))},onDelete:function(e){return l(this,null,(function*(){try{h(!0),yield z(e.id),yield _()}finally{h(!1)}}))}}}}),F={style:{"margin-bottom":"8px"}},M=D("新增备份"),W={key:0,class:"remark-old"};var q=d(A,[["render",function(e,t,n,r,a,i){const o=g("a-button"),s=g("a-popconfirm"),l=g("a-list-item-meta"),c=g("a-list-item"),p=g("a-list"),d=g("a-spin"),u=g("BasicDrawer");return v(),j(u,x(C(e.getProps)),{default:_((()=>[w(d,{wrapperClassName:"p-2",spinning:e.loading},{default:_((()=>[h("div",F,[w(o,{type:"primary",preIcon:"ant-design:plus",onClick:e.onAdd},{default:_((()=>[M])),_:1},8,["onClick"])]),w(p,{size:"large",bordered:"",dataSource:e.backupList},{renderItem:_((({item:t})=>[w(c,null,{actions:_((()=>[w(s,{title:"确定要还原吗?",placement:"left",onConfirm:()=>e.onRollback(t)},{default:_((()=>[w(o,{type:"primary",shape:"circle",preIcon:"ant-design:undo"})])),_:2},1032,["onConfirm"]),w(s,{title:"确定要删除吗?",placement:"left",onConfirm:()=>e.onDelete(t)},{default:_((()=>[w(o,{type:"primary",shape:"circle",danger:"",preIcon:"ant-design:delete"})])),_:2},1032,["onConfirm"])])),default:_((()=>[w(l,{description:t.time},{title:_((()=>[h("span",null,O(t.remark),1),2!==t.version?(v(),k("span",W,"OLD")):P("",!0)])),_:2},1032,["description"])])),_:2},1024)])),_:1},8,["dataSource"])])),_:1},8,["spinning"])])),_:1},16)}],["__scopeId","data-v-736ebd1c"]]);export{q as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/BackupDrawer2.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/BackupDrawer2.js deleted file mode 100644 index 10c59b292a2b289e3c1121e291ddb88fdf232012..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/BackupDrawer2.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,i=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,l=(e,t)=>{for(var r in t||(t={}))a.call(t,r)&&i(e,r,t[r]);if(n)for(var r of n(t))o.call(t,r)&&i(e,r,t[r]);return e},s=(e,t,r)=>new Promise(((n,a)=>{var o=e=>{try{l(r.next(e))}catch(t){a(t)}},i=e=>{try{l(r.throw(e))}catch(t){a(t)}},l=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,i);l((r=r.apply(e,t)).next())}));import{B as u,a as c}from"./index31.js";import{d6 as d,x as p,af as m,a as f,b as g,z as y,r as h,G as b,e as v,o as w,i as M,j as _,k,ae as O,m as P,a0 as j,a1 as x,l as C,u as D}from"./index.js";import"./index2.js";/* empty css *//* empty css */import{d as I,b as R}from"./base64Conver.js";function S(){return d.get({url:"/plugin/miao/help"},{errorMessageMode:"modal"})}function B(e,t,r,n){return s(this,null,(function*(){let a=new FormData;return a.append("helpCfg",JSON.stringify(p(e),null,2)),a.append("helpList",JSON.stringify(p(t),null,2)),a.append("icon",yield function(e){return s(this,null,(function*(){let{createMessage:t}=m(),r=document.createElement("canvas");r.width=1e3,r.height=100*Math.ceil((e.length-1)/10);let n,a,o=r.getContext("2d");for(let l=0;lr.toBlob(e)))}))}(p(r))),p(n)&&a.append("main",yield I(p(n))),d.post({url:"/plugin/miao/help",params:a,timeout:-1},{errorMessageMode:"modal"})}))}function L(e){return s(this,null,(function*(){e||(e=yield function(e){return s(this,null,(function*(){let t=(yield d.get({url:e,responseType:"blob",timeout:-1},{isTransformResponse:!1,isReturnNativeResponse:!0,errorMessageMode:"modal"})).data;return yield R(t)}))}("/plugin/miao/help/icon"));let t=new Image;return t.src=e,yield A(t),yield function(e){return new Promise((t=>{e.setAttribute("crossOrigin","Anonymous");let r=document.createElement("canvas");r.width=100,r.height=100;let n=r.getContext("2d");if(n){let a,o,i=[],l=Math.round(e.height/10);for(let t=0;t{e.onload=t,e.onerror=r}))}))}const N=g({name:"BackupDrawer",components:{BasicDrawer:u},emits:["register","reload"],setup(e,{emit:n}){const a=y(),{createMessage:o}=m(),{createPrompt:i}=D(),u=h(!1),f=h([]),[g,{closeDrawer:v,setDrawerProps:w}]=c((function(){M()}));function M(){return s(this,null,(function*(){try{k(!0),f.value=(yield d.get({url:"/plugin/miao/help/backup/list"},{errorMessageMode:"modal"})).reverse()}finally{k(!1)}}))}function _(){v()}function k(e){u.value=e,w({confirmLoading:e})}return{getProps:b((()=>{let n={width:document.body.clientWidth>=768?700:"100%",title:"喵喵帮助备份",confirmLoading:p(u)};var o;return o=l(l(l({},p(a)),n),e),t(o,r({onOk:_,onCancel:_,onRegister:g}))})),loading:u,backupList:f,onAdd:function(){i({title:"新增备份",required:!0,placeholder:"请输入备注",onOk(e){return s(this,null,(function*(){var t;yield(t=e,d.post({url:"/plugin/miao/help/backup",params:{remark:t}},{errorMessageMode:"modal"})),yield M()}))}})},onRollback:function(e){return s(this,null,(function*(){try{k(!0),yield function(e){return d.post({url:"/plugin/miao/help/backup/restore",params:{id:e}},{errorMessageMode:"modal"})}(e),n("reload")}finally{k(!1)}}))},onDelete:function(e){return s(this,null,(function*(){try{if(e.isInit)return void o.warn("初始备份不可删除");k(!0),yield(t=e.id,d.delete({url:"/plugin/miao/help/backup/delete",params:{id:t}},{errorMessageMode:"modal"})),yield M()}finally{k(!1)}var t}))}}}}),z={style:{"margin-bottom":"8px"}},E=C("新增备份");var T=f(N,[["render",function(e,t,r,n,a,o){const i=v("a-button"),l=v("a-popconfirm"),s=v("a-list-item-meta"),u=v("a-list-item"),c=v("a-list"),d=v("a-spin"),p=v("BasicDrawer");return w(),M(p,j(x(e.getProps)),{default:_((()=>[k(d,{wrapperClassName:"p-2",spinning:e.loading},{default:_((()=>[O("div",z,[k(i,{type:"primary",preIcon:"ant-design:plus",onClick:e.onAdd},{default:_((()=>[E])),_:1},8,["onClick"])]),k(c,{size:"large",bordered:"",dataSource:e.backupList},{renderItem:_((({item:t})=>[k(u,null,{actions:_((()=>[k(l,{title:"确定要还原吗?",placement:"left",onConfirm:()=>e.onRollback(t.id)},{default:_((()=>[k(i,{type:"primary",shape:"circle",preIcon:"ant-design:undo"})])),_:2},1032,["onConfirm"]),k(l,{title:"确定要删除吗?",placement:"left",onConfirm:()=>e.onDelete(t)},{default:_((()=>[k(i,{type:"primary",shape:"circle",danger:"",preIcon:"ant-design:delete"})])),_:2},1032,["onConfirm"])])),default:_((()=>[k(s,{description:t.time},{title:_((()=>[O("span",null,P(t.remark),1)])),_:2},1032,["description"])])),_:2},1024)])),_:1},8,["dataSource"])])),_:1},8,["spinning"])])),_:1},16)}]]),J=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"}));export{T as B,L as a,J as b,S as g,B as s}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/BasicForm.css b/Yunzai/plugins/Guoba-Plugin/server/static/assets/BasicForm.css deleted file mode 100644 index 8ba320d8af0340fe3964454bc185fa2fa169e81a..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/BasicForm.css +++ /dev/null @@ -1 +0,0 @@ -.ant-select-auto-complete{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum}.ant-select-auto-complete .ant-select-clear{right:13px}@-webkit-keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-cascader-checkbox{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-inner,.ant-cascader-checkbox:hover .ant-cascader-checkbox-inner,.ant-cascader-checkbox-input:focus+.ant-cascader-checkbox-inner{border-color:#6495ed}.ant-cascader-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #6495ed;border-radius:2px;visibility:hidden;-webkit-animation:antCheckboxEffect .36s ease-in-out;animation:antCheckboxEffect .36s ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;content:""}.ant-cascader-checkbox:hover:after,.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox:after{visibility:visible}.ant-cascader-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-cascader-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-cascader-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner{background-color:#6495ed;border-color:#6495ed}.ant-cascader-checkbox-disabled{cursor:not-allowed}.ant-cascader-checkbox-disabled.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner:after{border-color:#00000040;-webkit-animation-name:none;animation-name:none}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;-webkit-animation-name:none;animation-name:none}.ant-cascader-checkbox-disabled+span{color:#00000040;cursor:not-allowed}.ant-cascader-checkbox-disabled:hover:after,.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-disabled:after{visibility:hidden}.ant-cascader-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-cascader-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-cascader-checkbox-wrapper.ant-cascader-checkbox-wrapper-disabled{cursor:not-allowed}.ant-cascader-checkbox-wrapper+.ant-cascader-checkbox-wrapper{margin-left:8px}.ant-cascader-checkbox+span{padding-right:8px;padding-left:8px}.ant-cascader-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-block}.ant-cascader-checkbox-group-item{margin-right:8px}.ant-cascader-checkbox-group-item:last-child{margin-right:0}.ant-cascader-checkbox-group-item+.ant-cascader-checkbox-group-item{margin-left:0}.ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#6495ed;border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-cascader-checkbox-indeterminate.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner:after{background-color:#00000040;border-color:#00000040}.ant-cascader{width:184px}.ant-cascader-checkbox{top:0;margin-right:8px}.ant-cascader-menus{display:flex;flex-wrap:nowrap;align-items:flex-start}.ant-cascader-menus.ant-cascader-menu-empty .ant-cascader-menu{width:100%;height:auto}.ant-cascader-menu{min-width:111px;height:180px;margin:-4px 0;padding:4px 0;overflow:auto;vertical-align:top;list-style:none;border-right:1px solid #f0f0f0;-ms-overflow-style:-ms-autohiding-scrollbar}.ant-cascader-menu-item{display:flex;flex-wrap:nowrap;align-items:center;padding:5px 12px;overflow:hidden;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:all .3s}.ant-cascader-menu-item:hover{background:#f5f5f5}.ant-cascader-menu-item-disabled{color:#00000040;cursor:not-allowed}.ant-cascader-menu-item-disabled:hover{background:transparent}.ant-cascader-menu-empty .ant-cascader-menu-item{color:#00000040;cursor:default;pointer-events:none}.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover{font-weight:600;background-color:#f0f8ff}.ant-cascader-menu-item-content{flex:auto}.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-loading-icon{margin-left:4px;color:#00000073;font-size:10px}.ant-cascader-menu-item-disabled.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon{color:#00000040}.ant-cascader-menu-item-keyword{color:#ff4d4f}.ant-cascader-rtl .ant-cascader-menu-item-expand-icon,.ant-cascader-rtl .ant-cascader-menu-item-loading-icon{margin-right:4px;margin-left:0}.ant-cascader-rtl .ant-cascader-checkbox{top:0;margin-right:0;margin-left:8px}.ant-picker{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;padding:4px 11px;position:relative;display:inline-flex;align-items:center;background:#fff;border:1px solid #d9d9d9;border-radius:2px;transition:border .3s,box-shadow .3s}.ant-picker:hover,.ant-picker-focused{border-color:#91b9fa;border-right-width:1px!important}.ant-picker-focused{border-color:#91b9fa;box-shadow:0 0 0 2px #6495ed33;border-right-width:1px!important;outline:0}.ant-picker.ant-picker-disabled{background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-picker.ant-picker-disabled .ant-picker-suffix{color:#00000040}.ant-picker.ant-picker-borderless{background-color:transparent!important;border-color:transparent!important;box-shadow:none!important}.ant-picker-input{position:relative;display:inline-flex;align-items:center;width:100%}.ant-picker-input>input{position:relative;display:inline-block;width:100%;min-width:0;color:#000000d9;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s;flex:auto;min-width:1px;height:auto;padding:0;background:transparent;border:0}.ant-picker-input>input::-moz-placeholder{opacity:1}.ant-picker-input>input::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-picker-input>input:-moz-placeholder-shown{text-overflow:ellipsis}.ant-picker-input>input:placeholder-shown{text-overflow:ellipsis}.ant-picker-input>input:hover{border-color:#91b9fa;border-right-width:1px!important}.ant-picker-input>input:focus,.ant-picker-input>input-focused{border-color:#91b9fa;box-shadow:0 0 0 2px #6495ed33;border-right-width:1px!important;outline:0}.ant-picker-input>input-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-picker-input>input[disabled]{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-picker-input>input-borderless,.ant-picker-input>input-borderless:hover,.ant-picker-input>input-borderless:focus,.ant-picker-input>input-borderless-focused,.ant-picker-input>input-borderless-disabled,.ant-picker-input>input-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-picker-input>input{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-picker-input>input-lg{padding:6.5px 11px;font-size:16px}.ant-picker-input>input-sm{padding:0 7px}.ant-picker-input>input:focus{box-shadow:none}.ant-picker-input>input[disabled]{background:transparent}.ant-picker-input:hover .ant-picker-clear{opacity:1}.ant-picker-input-placeholder>input{color:#bfbfbf}.ant-picker-large{padding:6.5px 11px}.ant-picker-large .ant-picker-input>input{font-size:16px}.ant-picker-small{padding:0 7px}.ant-picker-suffix{align-self:center;margin-left:4px;color:#00000040;line-height:1;pointer-events:none}.ant-picker-suffix>*{vertical-align:top}.ant-picker-clear{position:absolute;top:50%;right:0;color:#00000040;line-height:1;background:#fff;transform:translateY(-50%);cursor:pointer;opacity:0;transition:opacity .3s,color .3s}.ant-picker-clear>*{vertical-align:top}.ant-picker-clear:hover{color:#00000073}.ant-picker-separator{position:relative;display:inline-block;width:1em;height:16px;color:#00000040;font-size:16px;vertical-align:top;cursor:default}.ant-picker-focused .ant-picker-separator{color:#00000073}.ant-picker-disabled .ant-picker-range-separator .ant-picker-separator{cursor:not-allowed}.ant-picker-range{position:relative;display:inline-flex}.ant-picker-range .ant-picker-clear{right:11px}.ant-picker-range:hover .ant-picker-clear{opacity:1}.ant-picker-range .ant-picker-active-bar{bottom:-1px;height:2px;margin-left:11px;background:#6495ed;opacity:0;transition:all .3s ease-out;pointer-events:none}.ant-picker-range.ant-picker-focused .ant-picker-active-bar{opacity:1}.ant-picker-range-separator{align-items:center;padding:0 8px;line-height:1}.ant-picker-range.ant-picker-small .ant-picker-clear{right:7px}.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-left:7px}.ant-picker-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:absolute;z-index:1050}.ant-picker-dropdown-hidden{display:none}.ant-picker-dropdown-placement-bottomLeft .ant-picker-range-arrow{top:1.66666667px;display:block;transform:rotate(-45deg)}.ant-picker-dropdown-placement-topLeft .ant-picker-range-arrow{bottom:1.66666667px;display:block;transform:rotate(135deg)}.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topRight,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topRight{-webkit-animation-name:antSlideDownIn;animation-name:antSlideDownIn}.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomRight,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomRight{-webkit-animation-name:antSlideUpIn;animation-name:antSlideUpIn}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topRight{-webkit-animation-name:antSlideDownOut;animation-name:antSlideDownOut}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomRight{-webkit-animation-name:antSlideUpOut;animation-name:antSlideUpOut}.ant-picker-dropdown-range{padding:6.66666667px 0}.ant-picker-dropdown-range-hidden{display:none}.ant-picker-dropdown .ant-picker-panel>.ant-picker-time-panel{padding-top:4px}.ant-picker-ranges{margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:left;list-style:none}.ant-picker-ranges>li{display:inline-block}.ant-picker-ranges .ant-picker-preset>.ant-tag-blue{color:#6495ed;background:#f0f8ff;border-color:#e6f1ff;cursor:pointer}.ant-picker-ranges .ant-picker-ok{float:right;margin-left:8px}.ant-picker-range-wrapper{display:flex}.ant-picker-range-arrow{position:absolute;z-index:1;display:none;width:10px;height:10px;margin-left:16.5px;box-shadow:2px -2px 6px #0000000f;transition:left .3s ease-out}.ant-picker-range-arrow:after{position:absolute;top:1px;right:1px;width:10px;height:10px;border:5px solid #f0f0f0;border-color:#fff #fff transparent transparent;content:""}.ant-picker-panel-container{overflow:hidden;vertical-align:top;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:margin .3s}.ant-picker-panel-container .ant-picker-panels{display:inline-flex;flex-wrap:nowrap;direction:ltr}.ant-picker-panel-container .ant-picker-panel{vertical-align:top;background:transparent;border-width:0 0 1px 0;border-radius:0}.ant-picker-panel-container .ant-picker-panel .ant-picker-content,.ant-picker-panel-container .ant-picker-panel table{text-align:center}.ant-picker-panel-container .ant-picker-panel-focused{border-color:#f0f0f0}.ant-picker-panel{display:inline-flex;flex-direction:column;text-align:center;background:#fff;border:1px solid #f0f0f0;border-radius:2px;outline:none}.ant-picker-panel-focused{border-color:#6495ed}.ant-picker-decade-panel,.ant-picker-year-panel,.ant-picker-quarter-panel,.ant-picker-month-panel,.ant-picker-week-panel,.ant-picker-date-panel,.ant-picker-time-panel{display:flex;flex-direction:column;width:280px}.ant-picker-header{display:flex;padding:0 8px;color:#000000d9;border-bottom:1px solid #f0f0f0}.ant-picker-header>*{flex:none}.ant-picker-header button{padding:0;color:#00000040;line-height:40px;background:transparent;border:0;cursor:pointer;transition:color .3s}.ant-picker-header>button{min-width:1.6em;font-size:14px}.ant-picker-header>button:hover{color:#000000d9}.ant-picker-header-view{flex:auto;font-weight:500;line-height:40px}.ant-picker-header-view button{color:inherit;font-weight:inherit}.ant-picker-header-view button:not(:first-child){margin-left:8px}.ant-picker-header-view button:hover{color:#6495ed}.ant-picker-prev-icon,.ant-picker-next-icon,.ant-picker-super-prev-icon,.ant-picker-super-next-icon{position:relative;display:inline-block;width:7px;height:7px}.ant-picker-prev-icon:before,.ant-picker-next-icon:before,.ant-picker-super-prev-icon:before,.ant-picker-super-next-icon:before{position:absolute;top:0;left:0;display:inline-block;width:7px;height:7px;border:0 solid currentcolor;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-super-prev-icon:after,.ant-picker-super-next-icon:after{position:absolute;top:4px;left:4px;display:inline-block;width:7px;height:7px;border:0 solid currentcolor;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-prev-icon,.ant-picker-super-prev-icon{transform:rotate(-45deg)}.ant-picker-next-icon,.ant-picker-super-next-icon{transform:rotate(135deg)}.ant-picker-content{width:100%;table-layout:fixed;border-collapse:collapse}.ant-picker-content th,.ant-picker-content td{position:relative;min-width:24px;font-weight:400}.ant-picker-content th{height:30px;color:#000000d9;line-height:30px}.ant-picker-cell{padding:3px 0;color:#00000040;cursor:pointer}.ant-picker-cell-in-view{color:#000000d9}.ant-picker-cell:before{position:absolute;top:50%;right:0;left:0;z-index:1;height:24px;transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell .ant-picker-cell-inner{position:relative;z-index:2;display:inline-block;min-width:24px;height:24px;line-height:24px;border-radius:2px;transition:background .3s,border .3s}.ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,.ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner{background:#f5f5f5}.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border:1px solid #6495ed;border-radius:2px;content:""}.ant-picker-cell-in-view.ant-picker-cell-in-range{position:relative}.ant-picker-cell-in-view.ant-picker-cell-in-range:before{background:#f0f8ff}.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner{color:#fff;background:#6495ed}.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):before,.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):before{background:#f0f8ff}.ant-picker-cell-in-view.ant-picker-cell-range-start:before{left:50%}.ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:50%}.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range):after{position:absolute;top:50%;z-index:0;height:24px;border-top:1px dashed #bfd3f8;border-bottom:1px dashed #bfd3f8;transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell-range-hover-start:after,.ant-picker-cell-range-hover-end:after,.ant-picker-cell-range-hover:after{right:0;left:2px}.ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start:before,.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end:before{background:#ffffff}.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after,.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{position:absolute;top:0;bottom:0;z-index:-1;background:#ffffff;transition:all .3s;content:""}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:50%}.ant-picker-cell-range-hover.ant-picker-cell-range-end:after{left:50%}tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after{left:6px;border-left:1px dashed #bfd3f8;border-top-left-radius:2px;border-bottom-left-radius:2px}tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:last-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after{right:6px;border-right:1px dashed #bfd3f8;border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-picker-cell-disabled{color:#00000040;pointer-events:none}.ant-picker-cell-disabled .ant-picker-cell-inner{background:transparent}.ant-picker-cell-disabled:before{background:rgba(0,0,0,.04)}.ant-picker-cell-disabled.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:#00000040}.ant-picker-decade-panel .ant-picker-content,.ant-picker-year-panel .ant-picker-content,.ant-picker-quarter-panel .ant-picker-content,.ant-picker-month-panel .ant-picker-content{height:264px}.ant-picker-decade-panel .ant-picker-cell-inner,.ant-picker-year-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-month-panel .ant-picker-cell-inner{padding:0 8px}.ant-picker-quarter-panel .ant-picker-content{height:56px}.ant-picker-footer{width:-webkit-min-content;width:-moz-min-content;width:min-content;min-width:100%;line-height:38px;text-align:center;border-bottom:1px solid transparent}.ant-picker-panel .ant-picker-footer{border-top:1px solid #f0f0f0}.ant-picker-footer-extra{padding:0 12px;line-height:38px;text-align:left}.ant-picker-footer-extra:not(:last-child){border-bottom:1px solid #f0f0f0}.ant-picker-now{text-align:left}.ant-picker-today-btn{color:#6495ed}.ant-picker-today-btn:hover{color:#91b9fa}.ant-picker-today-btn:active{color:#4a71c7}.ant-picker-today-btn.ant-picker-today-btn-disabled{color:#00000040;cursor:not-allowed}.ant-picker-decade-panel .ant-picker-cell-inner{padding:0 4px}.ant-picker-decade-panel .ant-picker-cell:before{display:none}.ant-picker-year-panel .ant-picker-body,.ant-picker-quarter-panel .ant-picker-body,.ant-picker-month-panel .ant-picker-body{padding:0 8px}.ant-picker-year-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-month-panel .ant-picker-cell-inner{width:60px}.ant-picker-year-panel .ant-picker-cell-range-hover-start:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-month-panel .ant-picker-cell-range-hover-start:after{left:14px;border-left:1px dashed #bfd3f8;border-radius:2px 0 0 2px}.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-start:after{right:14px;border-right:1px dashed #bfd3f8;border-radius:0 2px 2px 0}.ant-picker-year-panel .ant-picker-cell-range-hover-end:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-month-panel .ant-picker-cell-range-hover-end:after{right:14px;border-right:1px dashed #bfd3f8;border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-end:after{left:14px;border-left:1px dashed #bfd3f8;border-radius:2px 0 0 2px}.ant-picker-week-panel .ant-picker-body{padding:8px 12px}.ant-picker-week-panel .ant-picker-cell:hover .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell-selected .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell .ant-picker-cell-inner{background:transparent!important}.ant-picker-week-panel-row td{transition:background .3s}.ant-picker-week-panel-row:hover td{background:#f5f5f5}.ant-picker-week-panel-row-selected td,.ant-picker-week-panel-row-selected:hover td{background:#6495ed}.ant-picker-week-panel-row-selected td.ant-picker-cell-week,.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-week{color:#ffffff80}.ant-picker-week-panel-row-selected td.ant-picker-cell-today .ant-picker-cell-inner:before,.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:#fff}.ant-picker-week-panel-row-selected td .ant-picker-cell-inner,.ant-picker-week-panel-row-selected:hover td .ant-picker-cell-inner{color:#fff}.ant-picker-date-panel .ant-picker-body{padding:8px 12px}.ant-picker-date-panel .ant-picker-content{width:252px}.ant-picker-date-panel .ant-picker-content th{width:36px}.ant-picker-datetime-panel{display:flex}.ant-picker-datetime-panel .ant-picker-time-panel{border-left:1px solid #f0f0f0}.ant-picker-datetime-panel .ant-picker-date-panel,.ant-picker-datetime-panel .ant-picker-time-panel{transition:opacity .3s}.ant-picker-datetime-panel-active .ant-picker-date-panel,.ant-picker-datetime-panel-active .ant-picker-time-panel{opacity:.3}.ant-picker-datetime-panel-active .ant-picker-date-panel-active,.ant-picker-datetime-panel-active .ant-picker-time-panel-active{opacity:1}.ant-picker-time-panel{width:auto;min-width:auto}.ant-picker-time-panel .ant-picker-content{display:flex;flex:auto;height:224px}.ant-picker-time-panel-column{flex:1 0 auto;width:56px;margin:0;padding:0;overflow-y:hidden;text-align:left;list-style:none;transition:background .3s}.ant-picker-time-panel-column:after{display:block;height:196px;content:""}.ant-picker-datetime-panel .ant-picker-time-panel-column:after{height:198px}.ant-picker-time-panel-column:not(:first-child){border-left:1px solid #f0f0f0}.ant-picker-time-panel-column-active{background:rgba(240,248,255,.2)}.ant-picker-time-panel-column:hover{overflow-y:auto}.ant-picker-time-panel-column>li{margin:0;padding:0}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner{display:block;width:100%;height:28px;margin:0;padding:0 0 0 14px;color:#000000d9;line-height:28px;border-radius:0;cursor:pointer;transition:background .3s}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner:hover{background:#f5f5f5}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner{background:#f0f8ff}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-disabled .ant-picker-time-panel-cell-inner{color:#00000040;background:transparent;cursor:not-allowed}_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,:root .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell,:root .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell{padding:21px 0}.ant-picker-rtl{direction:rtl}.ant-picker-rtl .ant-picker-suffix{margin-right:4px;margin-left:0}.ant-picker-rtl .ant-picker-clear{right:auto;left:0}.ant-picker-rtl .ant-picker-separator{transform:rotate(180deg)}.ant-picker-panel-rtl .ant-picker-header-view button:not(:first-child){margin-right:8px;margin-left:0}.ant-picker-rtl.ant-picker-range .ant-picker-clear{right:auto;left:11px}.ant-picker-rtl.ant-picker-range .ant-picker-active-bar{margin-right:11px;margin-left:0}.ant-picker-rtl.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-right:7px}.ant-picker-dropdown-rtl .ant-picker-ranges{text-align:right}.ant-picker-dropdown-rtl .ant-picker-ranges .ant-picker-ok{float:left;margin-right:8px;margin-left:0}.ant-picker-panel-rtl{direction:rtl}.ant-picker-panel-rtl .ant-picker-prev-icon,.ant-picker-panel-rtl .ant-picker-super-prev-icon{transform:rotate(135deg)}.ant-picker-panel-rtl .ant-picker-next-icon,.ant-picker-panel-rtl .ant-picker-super-next-icon{transform:rotate(-45deg)}.ant-picker-cell .ant-picker-cell-inner{position:relative;z-index:2;display:inline-block;min-width:24px;height:24px;line-height:24px;border-radius:2px;transition:background .3s,border .3s}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:before{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-end:before{right:50%;left:50%}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-end:after{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):first-child:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after{right:6px;left:0;border-right:1px dashed #bfd3f8;border-left:none;border-radius:0 2px 2px 0}.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):last-child:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after{right:0;left:6px;border-right:none;border-left:1px dashed #bfd3f8;border-radius:2px 0 0 2px}.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-end.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-start.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-start:last-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-end:first-child:after{right:6px;left:6px;border-right:1px dashed #bfd3f8;border-left:1px dashed #bfd3f8;border-radius:2px}.ant-picker-dropdown-rtl .ant-picker-footer-extra{direction:rtl;text-align:right}.ant-picker-panel-rtl .ant-picker-time-panel{direction:ltr}@-webkit-keyframes ant-tree-node-fx-do-not-use{0%{opacity:0}to{opacity:1}}@keyframes ant-tree-node-fx-do-not-use{0%{opacity:0}to{opacity:1}}@-webkit-keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-select-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner,.ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner,.ant-select-tree-checkbox-input:focus+.ant-select-tree-checkbox-inner{border-color:#6495ed}.ant-select-tree-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #6495ed;border-radius:2px;visibility:hidden;-webkit-animation:antCheckboxEffect .36s ease-in-out;animation:antCheckboxEffect .36s ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;content:""}.ant-select-tree-checkbox:hover:after,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox:after{visibility:visible}.ant-select-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-select-tree-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-select-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner{background-color:#6495ed;border-color:#6495ed}.ant-select-tree-checkbox-disabled{cursor:not-allowed}.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{border-color:#00000040;-webkit-animation-name:none;animation-name:none}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;-webkit-animation-name:none;animation-name:none}.ant-select-tree-checkbox-disabled+span{color:#00000040;cursor:not-allowed}.ant-select-tree-checkbox-disabled:hover:after,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-disabled:after{visibility:hidden}.ant-select-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-select-tree-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\a0"}.ant-select-tree-checkbox-wrapper.ant-select-tree-checkbox-wrapper-disabled{cursor:not-allowed}.ant-select-tree-checkbox-wrapper+.ant-select-tree-checkbox-wrapper{margin-left:8px}.ant-select-tree-checkbox+span{padding-right:8px;padding-left:8px}.ant-select-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-block}.ant-select-tree-checkbox-group-item{margin-right:8px}.ant-select-tree-checkbox-group-item:last-child{margin-right:0}.ant-select-tree-checkbox-group-item+.ant-select-tree-checkbox-group-item{margin-left:0}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#6495ed;border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{background-color:#00000040;border-color:#00000040}.ant-tree-select-dropdown{padding:8px 4px}.ant-tree-select-dropdown-rtl{direction:rtl}.ant-tree-select-dropdown .ant-select-tree{border-radius:0}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner{align-items:stretch}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;background:#fff;border-radius:2px;transition:background-color .3s}.ant-select-tree-focused:not(:hover):not(.ant-select-tree-active-focused){background:#f0f8ff}.ant-select-tree-list-holder-inner{align-items:flex-start}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner{align-items:stretch}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging{position:relative}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging:after{position:absolute;top:0;right:0;bottom:4px;left:0;border:1px solid #6495ed;opacity:0;-webkit-animation:ant-tree-node-fx-do-not-use .3s;animation:ant-tree-node-fx-do-not-use .3s;-webkit-animation-play-state:running;animation-play-state:running;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;content:"";pointer-events:none}.ant-select-tree .ant-select-tree-treenode{display:flex;align-items:flex-start;padding:0 0 4px;outline:none}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper{color:#00000040;cursor:not-allowed}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper:hover{background:transparent}.ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper{background:#f5f5f5}.ant-select-tree .ant-select-tree-treenode:not(.ant-select-tree .ant-select-tree-treenode-disabled).filter-node .ant-select-tree-title{color:inherit;font-weight:500}.ant-select-tree-indent{align-self:stretch;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-select-tree-indent-unit{display:inline-block;width:24px}.ant-select-tree-draggable-icon{width:24px;line-height:24px;text-align:center;opacity:.2;transition:opacity .3s}.ant-select-tree-treenode:hover .ant-select-tree-draggable-icon{opacity:.45}.ant-select-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-select-tree-switcher .ant-tree-switcher-icon,.ant-select-tree-switcher .ant-select-tree-switcher-icon{display:inline-block;font-size:10px;vertical-align:baseline}.ant-select-tree-switcher .ant-tree-switcher-icon svg,.ant-select-tree-switcher .ant-select-tree-switcher-icon svg{transition:transform .3s}.ant-select-tree-switcher-noop{cursor:default}.ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(-90deg)}.ant-select-tree-switcher-loading-icon{color:#6495ed}.ant-select-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.ant-select-tree-switcher-leaf-line:before{position:absolute;top:0;right:12px;bottom:-4px;margin-left:-1px;border-right:1px solid #d9d9d9;content:" "}.ant-select-tree-switcher-leaf-line:after{position:absolute;width:10px;height:14px;border-bottom:1px solid #d9d9d9;content:" "}.ant-select-tree-checkbox{top:initial;margin:4px 8px 0 0}.ant-select-tree .ant-select-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:0;padding:0 4px;color:inherit;line-height:24px;background:transparent;border-radius:2px;cursor:pointer;transition:all .3s,border 0s,line-height 0s,box-shadow 0s}.ant-select-tree .ant-select-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected{background-color:#f0f7ff}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle:empty{display:none}.ant-select-tree-unselectable .ant-select-tree-node-content-wrapper:hover{background-color:transparent}.ant-select-tree-node-content-wrapper{line-height:24px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-select-tree-node-content-wrapper .ant-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#6495ed;border-radius:1px;pointer-events:none}.ant-select-tree-node-content-wrapper .ant-tree-drop-indicator:after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:transparent;border:2px solid #6495ed;border-radius:50%;content:""}.ant-select-tree .ant-select-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #6495ed}.ant-select-tree-show-line .ant-select-tree-indent-unit{position:relative;height:100%}.ant-select-tree-show-line .ant-select-tree-indent-unit:before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:""}.ant-select-tree-show-line .ant-select-tree-indent-unit-end:before{display:none}.ant-select-tree-show-line .ant-select-tree-switcher{background:#fff}.ant-select-tree-show-line .ant-select-tree-switcher-line-icon{vertical-align:-.15em}.ant-select-tree .ant-select-tree-treenode-leaf-last .ant-select-tree-switcher-leaf-line:before{top:auto!important;bottom:auto!important;height:14px!important}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(90deg)}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher-loading-icon{transform:scaleY(-1)}.ant-slider{box-sizing:border-box;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;height:12px;margin:10px 6px;padding:4px 0;cursor:pointer;touch-action:none}.ant-slider-vertical{width:12px;height:100%;margin:6px 10px;padding:0 4px}.ant-slider-vertical .ant-slider-rail{width:4px;height:100%}.ant-slider-vertical .ant-slider-track{width:4px}.ant-slider-vertical .ant-slider-handle{margin-top:-6px;margin-left:-5px}.ant-slider-vertical .ant-slider-mark{top:0;left:12px;width:18px;height:100%}.ant-slider-vertical .ant-slider-mark-text{left:4px;white-space:nowrap}.ant-slider-vertical .ant-slider-step{width:4px;height:100%}.ant-slider-vertical .ant-slider-dot{top:auto;left:2px;margin-bottom:-4px}.ant-slider-tooltip .ant-tooltip-inner{min-width:unset}.ant-slider-rtl.ant-slider-vertical .ant-slider-handle{margin-right:-5px;margin-left:0}.ant-slider-rtl.ant-slider-vertical .ant-slider-mark{right:12px;left:auto}.ant-slider-rtl.ant-slider-vertical .ant-slider-mark-text{right:4px;left:auto}.ant-slider-rtl.ant-slider-vertical .ant-slider-dot{right:2px;left:auto}.ant-slider-with-marks{margin-bottom:28px}.ant-slider-rail{position:absolute;width:100%;height:4px;background-color:#f5f5f5;border-radius:2px;transition:background-color .3s}.ant-slider-track{position:absolute;height:4px;background-color:#e6f1ff;border-radius:2px;transition:background-color .3s}.ant-slider-handle{position:absolute;width:14px;height:14px;margin-top:-5px;background-color:#fff;border:solid 2px #e6f1ff;border-radius:50%;box-shadow:0;cursor:pointer;transition:border-color .3s,box-shadow .6s,transform .3s cubic-bezier(.18,.89,.32,1.28)}.ant-slider-handle-dragging.ant-slider-handle-dragging.ant-slider-handle-dragging{border-color:#83aaf1;box-shadow:0 0 0 5px #6495ed1f}.ant-slider-handle:focus{border-color:#83aaf1;outline:none;box-shadow:0 0 0 5px #6495ed1f}.ant-slider-handle.ant-tooltip-open{border-color:#6495ed}.ant-slider:hover .ant-slider-rail{background-color:#e1e1e1}.ant-slider:hover .ant-slider-track{background-color:#bdd8ff}.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open){border-color:#bdd8ff}.ant-slider-mark{position:absolute;top:14px;left:0;width:100%;font-size:14px}.ant-slider-mark-text{position:absolute;display:inline-block;color:#00000073;text-align:center;word-break:keep-all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-slider-mark-text-active{color:#000000d9}.ant-slider-step{position:absolute;width:100%;height:4px;background:transparent}.ant-slider-dot{position:absolute;top:-2px;width:8px;height:8px;margin-left:-4px;background-color:#fff;border:2px solid #f0f0f0;border-radius:50%;cursor:pointer}.ant-slider-dot:first-child{margin-left:-4px}.ant-slider-dot:last-child{margin-left:-4px}.ant-slider-dot-active{border-color:#b2caf6}.ant-slider-disabled{cursor:not-allowed}.ant-slider-disabled .ant-slider-rail{background-color:#f5f5f5!important}.ant-slider-disabled .ant-slider-track{background-color:#00000040!important}.ant-slider-disabled .ant-slider-handle,.ant-slider-disabled .ant-slider-dot{background-color:#fff;border-color:#00000040!important;box-shadow:none;cursor:not-allowed}.ant-slider-disabled .ant-slider-mark-text,.ant-slider-disabled .ant-slider-dot{cursor:not-allowed!important}.ant-slider-rtl{direction:rtl}.ant-slider-rtl .ant-slider-mark{right:0;left:auto}.ant-slider-rtl .ant-slider-dot,.ant-slider-rtl .ant-slider-dot:first-child{margin-right:-4px;margin-left:0}.ant-slider-rtl .ant-slider-dot:last-child{margin-right:-4px;margin-left:0}.ant-rate{box-sizing:border-box;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:tnum;display:inline-block;margin:0;padding:0;color:#fadb14;font-size:20px;line-height:unset;list-style:none;outline:none}.ant-rate-disabled .ant-rate-star{cursor:default}.ant-rate-disabled .ant-rate-star:hover{transform:scale(1)}.ant-rate-star{position:relative;display:inline-block;color:inherit;cursor:pointer}.ant-rate-star:not(:last-child){margin-right:8px}.ant-rate-star>div{transition:all .3s,outline 0s}.ant-rate-star>div:hover{transform:scale(1.1)}.ant-rate-star>div:focus{outline:0}.ant-rate-star>div:focus-visible{outline:1px dashed #fadb14;transform:scale(1.1)}.ant-rate-star-first,.ant-rate-star-second{color:#f0f0f0;transition:all .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-rate-star-first .anticon,.ant-rate-star-second .anticon{vertical-align:middle}.ant-rate-star-first{position:absolute;top:0;left:0;width:50%;height:100%;overflow:hidden;opacity:0}.ant-rate-star-half .ant-rate-star-first,.ant-rate-star-half .ant-rate-star-second{opacity:1}.ant-rate-star-half .ant-rate-star-first,.ant-rate-star-full .ant-rate-star-second{color:inherit}.ant-rate-text{display:inline-block;margin:0 8px;font-size:14px}.ant-rate-rtl{direction:rtl}.ant-rate-rtl .ant-rate-star:not(:last-child){margin-right:0;margin-left:8px}.ant-rate-rtl .ant-rate-star-first{right:0;left:auto}@-webkit-keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-transfer-customize-list .ant-transfer-list{flex:1 1 50%;width:auto;height:auto;min-height:200px}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small{border:0;border-radius:0}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small .ant-table-selection-column{width:40px;min-width:40px}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small>.ant-table-content>.ant-table-body>table>.ant-table-thead>tr>th{background:#fafafa}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small>.ant-table-content .ant-table-row:last-child td{border-bottom:1px solid #f0f0f0}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small .ant-table-body{margin:0}.ant-transfer-customize-list .ant-table-wrapper .ant-table-pagination.ant-pagination{margin:16px 0 4px}.ant-transfer-customize-list .ant-input[disabled]{background-color:transparent}.ant-transfer{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;display:flex;align-items:stretch}.ant-transfer-disabled .ant-transfer-list{background:#f5f5f5}.ant-transfer-list{display:flex;flex-direction:column;width:180px;height:200px;border:1px solid #d9d9d9;border-radius:2px}.ant-transfer-list-with-pagination{width:250px;height:auto}.ant-transfer-list-search .anticon-search{color:#00000040}.ant-transfer-list-header{display:flex;flex:none;align-items:center;height:40px;padding:8px 12px 9px;color:#000000d9;background:#fff;border-bottom:1px solid #f0f0f0;border-radius:2px 2px 0 0}.ant-transfer-list-header>*:not(:last-child){margin-right:4px}.ant-transfer-list-header>*{flex:none}.ant-transfer-list-header-title{flex:auto;overflow:hidden;white-space:nowrap;text-align:right;text-overflow:ellipsis}.ant-transfer-list-header-dropdown{font-size:10px;transform:translateY(10%);cursor:pointer}.ant-transfer-list-header-dropdown[disabled]{cursor:not-allowed}.ant-transfer-list-body{display:flex;flex:auto;flex-direction:column;overflow:hidden;font-size:14px}.ant-transfer-list-body-search-wrapper{position:relative;flex:none;padding:12px}.ant-transfer-list-content{flex:auto;margin:0;padding:0;overflow:auto;list-style:none}.ant-transfer-list-content-item{display:flex;align-items:center;min-height:32px;padding:6px 12px;line-height:20px;transition:all .3s}.ant-transfer-list-content-item>*:not(:last-child){margin-right:8px}.ant-transfer-list-content-item>*{flex:none}.ant-transfer-list-content-item-text{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-transfer-list-content-item-remove{color:#6495ed;text-decoration:none;outline:none;cursor:pointer;transition:color .3s;position:relative;color:#d9d9d9}.ant-transfer-list-content-item-remove:focus,.ant-transfer-list-content-item-remove:hover{color:#91b9fa}.ant-transfer-list-content-item-remove:active{color:#4a71c7}.ant-transfer-list-content-item-remove:after{position:absolute;top:-6px;right:-50%;bottom:-6px;left:-50%;content:""}.ant-transfer-list-content-item-remove:hover{color:#91b9fa}.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover{background-color:#f5f5f5;cursor:pointer}.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled).ant-transfer-list-content-item-checked:hover{background-color:#e6f3ff}.ant-transfer-list-content-show-remove .ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover{background:transparent;cursor:default}.ant-transfer-list-content-item-checked{background-color:#f0f8ff}.ant-transfer-list-content-item-disabled{color:#00000040;cursor:not-allowed}.ant-transfer-list-pagination{padding:8px 0;text-align:right;border-top:1px solid #f0f0f0}.ant-transfer-list-body-not-found{flex:none;width:100%;margin:auto 0;color:#00000040;text-align:center}.ant-transfer-list-footer{border-top:1px solid #f0f0f0}.ant-transfer-operation{display:flex;flex:none;flex-direction:column;align-self:center;margin:0 8px;vertical-align:middle}.ant-transfer-operation .ant-btn{display:block}.ant-transfer-operation .ant-btn:first-child{margin-bottom:4px}.ant-transfer-operation .ant-btn .anticon{font-size:12px}.ant-transfer .ant-empty-image{max-height:-2px}.ant-transfer-rtl{direction:rtl}.ant-transfer-rtl .ant-transfer-list-search{padding-right:8px;padding-left:24px}.ant-transfer-rtl .ant-transfer-list-search-action{right:auto;left:12px}.ant-transfer-rtl .ant-transfer-list-header>*:not(:last-child){margin-right:0;margin-left:4px}.ant-transfer-rtl .ant-transfer-list-header{right:0;left:auto}.ant-transfer-rtl .ant-transfer-list-header-title{text-align:left}.ant-transfer-rtl .ant-transfer-list-content-item>*:not(:last-child){margin-right:0;margin-left:8px}.ant-transfer-rtl .ant-transfer-list-pagination{text-align:left}.ant-transfer-rtl .ant-transfer-list-footer{right:0;left:auto}.ant-upload{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;outline:0}.ant-upload p{margin:0}.ant-upload-btn{display:block;width:100%;outline:none}.ant-upload input[type=file]{cursor:pointer}.ant-upload.ant-upload-select{display:inline-block}.ant-upload.ant-upload-disabled{cursor:not-allowed}.ant-upload.ant-upload-select-picture-card{width:104px;height:104px;margin-right:8px;margin-bottom:8px;text-align:center;vertical-align:top;background-color:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;cursor:pointer;transition:border-color .3s}.ant-upload.ant-upload-select-picture-card>.ant-upload{display:flex;align-items:center;justify-content:center;height:100%;text-align:center}.ant-upload.ant-upload-select-picture-card:hover{border-color:#6495ed}.ant-upload-disabled.ant-upload.ant-upload-select-picture-card:hover{border-color:#d9d9d9}.ant-upload.ant-upload-drag{position:relative;width:100%;height:100%;text-align:center;background:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;cursor:pointer;transition:border-color .3s}.ant-upload.ant-upload-drag .ant-upload{padding:16px 0}.ant-upload.ant-upload-drag.ant-upload-drag-hover:not(.ant-upload-disabled){border-color:#4a71c7}.ant-upload.ant-upload-drag.ant-upload-disabled{cursor:not-allowed}.ant-upload.ant-upload-drag .ant-upload-btn{display:table;height:100%}.ant-upload.ant-upload-drag .ant-upload-drag-container{display:table-cell;vertical-align:middle}.ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover{border-color:#91b9fa}.ant-upload.ant-upload-drag p.ant-upload-drag-icon{margin-bottom:20px}.ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon{color:#91b9fa;font-size:48px}.ant-upload.ant-upload-drag p.ant-upload-text{margin:0 0 4px;color:#000000d9;font-size:16px}.ant-upload.ant-upload-drag p.ant-upload-hint{color:#00000073;font-size:14px}.ant-upload.ant-upload-drag .anticon-plus{color:#00000040;font-size:30px;transition:all .3s}.ant-upload.ant-upload-drag .anticon-plus:hover,.ant-upload.ant-upload-drag:hover .anticon-plus{color:#00000073}.ant-upload-picture-card-wrapper{display:inline-block;width:100%}.ant-upload-picture-card-wrapper:before{display:table;content:""}.ant-upload-picture-card-wrapper:after{display:table;clear:both;content:""}.ant-upload-list{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;list-style:none;font-feature-settings:tnum;line-height:1.5715}.ant-upload-list:before{display:table;content:""}.ant-upload-list:after{display:table;clear:both;content:""}.ant-upload-list-item{position:relative;height:22.001px;margin-top:8px;font-size:14px}.ant-upload-list-item-name{display:inline-block;width:100%;padding-left:22px;overflow:hidden;line-height:1.5715;white-space:nowrap;text-overflow:ellipsis}.ant-upload-list-item-card-actions{position:absolute;right:0}.ant-upload-list-item-card-actions-btn{opacity:0}.ant-upload-list-item-card-actions-btn.ant-btn-sm{height:20px;line-height:1}.ant-upload-list-item-card-actions.picture{top:22px;line-height:0}.ant-upload-list-item-card-actions-btn:focus,.ant-upload-list-item-card-actions.picture .ant-upload-list-item-card-actions-btn{opacity:1}.ant-upload-list-item-card-actions .anticon{color:#00000073}.ant-upload-list-item-info{height:100%;padding:0 4px;transition:background-color .3s}.ant-upload-list-item-info>span{display:block;width:100%;height:100%}.ant-upload-list-item-info .anticon-loading .anticon,.ant-upload-list-item-info .ant-upload-text-icon .anticon{position:absolute;top:5px;color:#00000073;font-size:14px}.ant-upload-list-item .anticon-close{position:absolute;top:6px;right:4px;color:#00000073;font-size:10px;line-height:0;cursor:pointer;opacity:0;transition:all .3s}.ant-upload-list-item .anticon-close:hover{color:#000000d9}.ant-upload-list-item:hover .ant-upload-list-item-info{background-color:#f5f5f5}.ant-upload-list-item:hover .anticon-close,.ant-upload-list-item:hover .ant-upload-list-item-card-actions-btn{opacity:1}.ant-upload-list-item-error,.ant-upload-list-item-error .ant-upload-text-icon>.anticon,.ant-upload-list-item-error .ant-upload-list-item-name{color:#ed6f6f}.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon{color:#ed6f6f}.ant-upload-list-item-error .ant-upload-list-item-card-actions-btn{opacity:1}.ant-upload-list-item-progress{position:absolute;bottom:-12px;width:100%;padding-left:26px;font-size:14px;line-height:0}.ant-upload-list-picture .ant-upload-list-item,.ant-upload-list-picture-card .ant-upload-list-item{position:relative;height:66px;padding:8px;border:1px solid #d9d9d9;border-radius:2px}.ant-upload-list-picture .ant-upload-list-item:hover,.ant-upload-list-picture-card .ant-upload-list-item:hover{background:transparent}.ant-upload-list-picture .ant-upload-list-item-error,.ant-upload-list-picture-card .ant-upload-list-item-error{border-color:#ed6f6f}.ant-upload-list-picture .ant-upload-list-item-info,.ant-upload-list-picture-card .ant-upload-list-item-info{padding:0}.ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info,.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info{background:transparent}.ant-upload-list-picture .ant-upload-list-item-uploading,.ant-upload-list-picture-card .ant-upload-list-item-uploading{border-style:dashed}.ant-upload-list-picture .ant-upload-list-item-thumbnail,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail{width:48px;height:48px;line-height:60px;text-align:center;opacity:.8}.ant-upload-list-picture .ant-upload-list-item-thumbnail .anticon,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail .anticon{font-size:26px}.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#e6f7ff"],.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#e6f7ff"]{fill:#fff2f0}.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#1890ff"],.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#1890ff"]{fill:#ed6f6f}.ant-upload-list-picture .ant-upload-list-item-icon,.ant-upload-list-picture-card .ant-upload-list-item-icon{position:absolute;top:50%;left:50%;font-size:26px;transform:translate(-50%,-50%)}.ant-upload-list-picture .ant-upload-list-item-icon .anticon,.ant-upload-list-picture-card .ant-upload-list-item-icon .anticon{font-size:26px}.ant-upload-list-picture .ant-upload-list-item-image,.ant-upload-list-picture-card .ant-upload-list-item-image{max-width:100%}.ant-upload-list-picture .ant-upload-list-item-thumbnail img,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img{display:block;width:48px;height:48px;overflow:hidden}.ant-upload-list-picture .ant-upload-list-item-name,.ant-upload-list-picture-card .ant-upload-list-item-name{display:inline-block;box-sizing:border-box;max-width:100%;margin:0 0 0 8px;padding-right:8px;padding-left:48px;overflow:hidden;line-height:44px;white-space:nowrap;text-overflow:ellipsis;transition:all .3s}.ant-upload-list-picture .ant-upload-list-item-uploading .ant-upload-list-item-name,.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-name{margin-bottom:12px}.ant-upload-list-picture .ant-upload-list-item-progress,.ant-upload-list-picture-card .ant-upload-list-item-progress{bottom:14px;width:calc(100% - 24px);margin-top:0;padding-left:56px}.ant-upload-list-picture .anticon-close,.ant-upload-list-picture-card .anticon-close{position:absolute;top:8px;right:8px;line-height:1;opacity:1}.ant-upload-list-picture-card-container{display:inline-block;width:104px;height:104px;margin:0 8px 8px 0;vertical-align:top}.ant-upload-list-picture-card.ant-upload-list:after{display:none}.ant-upload-list-picture-card .ant-upload-list-item{height:100%;margin:0}.ant-upload-list-picture-card .ant-upload-list-item-info{position:relative;height:100%;overflow:hidden}.ant-upload-list-picture-card .ant-upload-list-item-info:before{position:absolute;z-index:1;width:100%;height:100%;background-color:#00000080;opacity:0;transition:all .3s;content:" "}.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info:before{opacity:1}.ant-upload-list-picture-card .ant-upload-list-item-actions{position:absolute;top:50%;left:50%;z-index:10;white-space:nowrap;transform:translate(-50%,-50%);opacity:0;transition:all .3s}.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete{z-index:10;width:16px;margin:0 4px;color:#ffffffd9;font-size:16px;cursor:pointer;transition:all .3s}.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye:hover,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover{color:#fff}.ant-upload-list-picture-card .ant-upload-list-item-info:hover+.ant-upload-list-item-actions,.ant-upload-list-picture-card .ant-upload-list-item-actions:hover{opacity:1}.ant-upload-list-picture-card .ant-upload-list-item-thumbnail,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img{position:static;display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.ant-upload-list-picture-card .ant-upload-list-item-name{display:none;margin:8px 0 0;padding:0;line-height:1.5715;text-align:center}.ant-upload-list-picture-card .ant-upload-list-item-file+.ant-upload-list-item-name{position:absolute;bottom:10px;display:block}.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item{background-color:#fafafa}.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info{height:auto}.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info:before,.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye,.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete{display:none}.ant-upload-list-picture-card .ant-upload-list-item-progress{bottom:32px;width:calc(100% - 14px);padding-left:0}.ant-upload-list-text-container,.ant-upload-list-picture-container{transition:opacity .3s,height .3s}.ant-upload-list-text-container:before,.ant-upload-list-picture-container:before{display:table;width:0;height:0;content:""}.ant-upload-list-text-container .ant-upload-span,.ant-upload-list-picture-container .ant-upload-span{display:block;flex:auto}.ant-upload-list-text .ant-upload-span,.ant-upload-list-picture .ant-upload-span{display:flex;align-items:center}.ant-upload-list-text .ant-upload-span>*,.ant-upload-list-picture .ant-upload-span>*{flex:none}.ant-upload-list-text .ant-upload-list-item-name,.ant-upload-list-picture .ant-upload-list-item-name{flex:auto;margin:0;padding:0 8px}.ant-upload-list-text .ant-upload-list-item-card-actions,.ant-upload-list-picture .ant-upload-list-item-card-actions,.ant-upload-list-text .ant-upload-text-icon .anticon{position:static}.ant-upload-list .ant-upload-animate-inline-appear,.ant-upload-list .ant-upload-animate-inline-enter,.ant-upload-list .ant-upload-animate-inline-leave{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:cubic-bezier(.78,.14,.15,.86);animation-fill-mode:cubic-bezier(.78,.14,.15,.86)}.ant-upload-list .ant-upload-animate-inline-appear,.ant-upload-list .ant-upload-animate-inline-enter{-webkit-animation-name:uploadAnimateInlineIn;animation-name:uploadAnimateInlineIn}.ant-upload-list .ant-upload-animate-inline-leave{-webkit-animation-name:uploadAnimateInlineOut;animation-name:uploadAnimateInlineOut}@-webkit-keyframes uploadAnimateInlineIn{0%{width:0;height:0;margin:0;padding:0;opacity:0}}@keyframes uploadAnimateInlineIn{0%{width:0;height:0;margin:0;padding:0;opacity:0}}@-webkit-keyframes uploadAnimateInlineOut{to{width:0;height:0;margin:0;padding:0;opacity:0}}@keyframes uploadAnimateInlineOut{to{width:0;height:0;margin:0;padding:0;opacity:0}}.ant-upload-rtl{direction:rtl}.ant-upload-rtl.ant-upload.ant-upload-select-picture-card{margin-right:auto;margin-left:8px}.ant-upload-list-rtl{direction:rtl}.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-1{padding-right:22px;padding-left:14px}.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-2{padding-right:22px;padding-left:28px}.ant-upload-list-rtl .ant-upload-list-item-name{padding-right:22px;padding-left:0}.ant-upload-list-rtl .ant-upload-list-item-name-icon-count-1{padding-left:14px}.ant-upload-list-rtl .ant-upload-list-item-card-actions{right:auto;left:0}.ant-upload-list-rtl .ant-upload-list-item-card-actions .anticon{padding-right:0;padding-left:5px}.ant-upload-list-rtl .ant-upload-list-item-info{padding:0 4px 0 12px}.ant-upload-list-rtl .ant-upload-list-item .anticon-close{right:auto;left:4px}.ant-upload-list-rtl .ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon{padding-right:0;padding-left:5px}.ant-upload-list-rtl .ant-upload-list-item-progress{padding-right:26px;padding-left:0}.ant-upload-list-picture .ant-upload-list-item-info,.ant-upload-list-picture-card .ant-upload-list-item-info{padding:0}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-thumbnail,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-thumbnail{right:8px;left:auto}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-icon,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-icon{right:50%;left:auto;transform:translate(50%,-50%)}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name{margin:0 8px 0 0;padding-right:48px;padding-left:8px}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-1,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-1{padding-right:48px;padding-left:18px}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-2,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-2{padding-right:48px;padding-left:36px}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-progress,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-progress{padding-right:0;padding-left:0}.ant-upload-list-rtl.ant-upload-list-picture .anticon-close,.ant-upload-list-rtl.ant-upload-list-picture-card .anticon-close{right:auto;left:8px}.ant-upload-list-rtl .ant-upload-list-picture-card-container{margin:0 0 8px 8px}.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-actions{right:50%;left:auto;transform:translate(50%,-50%)}.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-file+.ant-upload-list-item-name{margin:8px 0 0;padding:0}.ant-progress{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-steps{display:inline-block}.ant-progress-steps-outer{display:flex;flex-direction:row;align-items:center}.ant-progress-steps-item{flex-shrink:0;min-width:2px;margin-right:2px;background:#f3f3f3;transition:all .3s}.ant-progress-steps-item-active{background:#6495ed}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:#f5f5f5;border-radius:100px}.ant-progress-circle-trail{stroke:#f5f5f5}.ant-progress-circle-path{-webkit-animation:ant-progress-appear .3s;animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#6495ed}.ant-progress-success-bg,.ant-progress-bg{position:relative;background-color:#6495ed;border-radius:100px;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#55d187}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:#000000d9;font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;-webkit-animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#ed6f6f}.ant-progress-status-exception .ant-progress-text{color:#ed6f6f}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#ed6f6f}.ant-progress-status-success .ant-progress-bg{background-color:#55d187}.ant-progress-status-success .ant-progress-text{color:#55d187}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#55d187}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:transparent}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:#000000d9;font-size:1em;line-height:1;white-space:normal;text-align:center;transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#ed6f6f}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#55d187}@-webkit-keyframes ant-progress-active{0%{transform:translate(-100%) scaleX(0);opacity:.1}20%{transform:translate(-100%) scaleX(0);opacity:.5}to{transform:translate(0) scaleX(1);opacity:0}}@keyframes ant-progress-active{0%{transform:translate(-100%) scaleX(0);opacity:.1}20%{transform:translate(-100%) scaleX(0);opacity:.5}to{transform:translate(0) scaleX(1);opacity:0}}.ant-progress-rtl{direction:rtl}.ant-progress-rtl.ant-progress-show-info .ant-progress-outer{margin-right:0;margin-left:calc(-2em - 8px);padding-right:0;padding-left:calc(2em + 8px)}.ant-progress-rtl .ant-progress-success-bg{right:0;left:auto}.ant-progress-rtl.ant-progress-line .ant-progress-text,.ant-progress-rtl.ant-progress-steps .ant-progress-text{margin-right:8px;margin-left:0;text-align:right}.ant-alert{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;display:flex;align-items:center;padding:8px 15px;word-wrap:break-word;border-radius:2px}.ant-alert-content{flex:1;min-width:0}.ant-alert-icon{margin-right:8px}.ant-alert-description{display:none;font-size:14px;line-height:22px}.ant-alert-success{background-color:#f0fff3;border:1px solid #dcf7e4}.ant-alert-success .ant-alert-icon{color:#55d187}.ant-alert-info{background-color:#f0f8ff;border:1px solid #e6f1ff}.ant-alert-info .ant-alert-icon{color:#6495ed}.ant-alert-warning{background-color:#fffdf0;border:1px solid #fff4c7}.ant-alert-warning .ant-alert-icon{color:#efbd47}.ant-alert-error{background-color:#fff2f0;border:1px solid #fff1f0}.ant-alert-error .ant-alert-icon{color:#ed6f6f}.ant-alert-error .ant-alert-description>pre{margin:0;padding:0}.ant-alert-action{margin-left:8px}.ant-alert-close-icon{margin-left:8px;padding:0;overflow:hidden;font-size:12px;line-height:12px;background-color:transparent;border:none;outline:none;cursor:pointer}.ant-alert-close-icon .anticon-close{color:#00000073;transition:color .3s}.ant-alert-close-icon .anticon-close:hover{color:#000000bf}.ant-alert-close-text{color:#00000073;transition:color .3s}.ant-alert-close-text:hover{color:#000000bf}.ant-alert-with-description{align-items:flex-start;padding:15px 15px 15px 24px}.ant-alert-with-description.ant-alert-no-icon{padding:15px}.ant-alert-with-description .ant-alert-icon{margin-right:15px;font-size:24px}.ant-alert-with-description .ant-alert-message{display:block;margin-bottom:4px;color:#000000d9;font-size:16px}.ant-alert-message{color:#000000d9}.ant-alert-with-description .ant-alert-description{display:block}.ant-alert.ant-alert-motion-leave{overflow:hidden;opacity:1;transition:max-height .3s cubic-bezier(.78,.14,.15,.86),opacity .3s cubic-bezier(.78,.14,.15,.86),padding-top .3s cubic-bezier(.78,.14,.15,.86),padding-bottom .3s cubic-bezier(.78,.14,.15,.86),margin-bottom .3s cubic-bezier(.78,.14,.15,.86)}.ant-alert.ant-alert-motion-leave-active{max-height:0;margin-bottom:0!important;padding-top:0;padding-bottom:0;opacity:0}.ant-alert-banner{margin-bottom:0;border:0;border-radius:0}.ant-alert.ant-alert-rtl{direction:rtl}.ant-alert-rtl .ant-alert-icon{margin-right:auto;margin-left:8px}.ant-alert-rtl .ant-alert-action,.ant-alert-rtl .ant-alert-close-icon{margin-right:8px;margin-left:auto}.ant-alert-rtl.ant-alert-with-description{padding-right:24px;padding-left:15px}.ant-alert-rtl.ant-alert-with-description .ant-alert-icon{margin-right:auto;margin-left:15px}.guoba-basic-table-action{display:flex;align-items:center}.guoba-basic-table-action .action-divider{display:table}.guoba-basic-table-action.left{justify-content:flex-start}.guoba-basic-table-action.center{justify-content:center}.guoba-basic-table-action.right{justify-content:flex-end}.guoba-basic-table-action button{display:flex;align-items:center}.guoba-basic-table-action button span{margin-left:0!important}.guoba-basic-table-action button.ant-btn-circle span{margin:auto!important}.guoba-basic-table-action .ant-divider,.guoba-basic-table-action .ant-divider-vertical{margin:0 2px}.guoba-basic-table-action .icon-more{transform:rotate(90deg)}.guoba-basic-table-action .icon-more svg{font-size:1.1em;font-weight:700}.ant-image{position:relative;display:inline-block}.ant-image-img{width:100%;height:auto;vertical-align:middle}.ant-image-img-placeholder{background-color:#f5f5f5;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=);background-repeat:no-repeat;background-position:center center;background-size:30%}.ant-image-mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(0,0,0,.5);cursor:pointer;opacity:0;transition:opacity .3s}.ant-image-mask-info{padding:0 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-image-mask-info .anticon{-webkit-margin-end:4px;margin-inline-end:4px}.ant-image-mask:hover{opacity:1}.ant-image-placeholder{position:absolute;top:0;right:0;bottom:0;left:0}.ant-image-preview{pointer-events:none;height:100%;text-align:center}.ant-image-preview.ant-zoom-enter,.ant-image-preview.antzoom-appear{transform:none;opacity:0;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-image-preview-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:#00000073}.ant-image-preview-mask-hidden{display:none}.ant-image-preview-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch}.ant-image-preview-body{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.ant-image-preview-img{max-width:100%;max-height:100%;vertical-align:middle;transform:scaleZ(1);cursor:-webkit-grab;cursor:grab;transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:auto}.ant-image-preview-img-wrapper{position:absolute;top:0;right:0;bottom:0;left:0;transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s}.ant-image-preview-img-wrapper:before{display:inline-block;width:1px;height:50%;margin-right:-1px;content:""}.ant-image-preview-moving .ant-image-preview-img{cursor:-webkit-grabbing;cursor:grabbing}.ant-image-preview-moving .ant-image-preview-img-wrapper{transition-duration:0s}.ant-image-preview-wrap{z-index:1080}.ant-image-preview-operations{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:tnum;position:absolute;top:0;right:0;z-index:1;display:flex;flex-direction:row-reverse;align-items:center;width:100%;color:#ffffffd9;list-style:none;background:rgba(0,0,0,.1);pointer-events:auto}.ant-image-preview-operations-operation{margin-left:12px;padding:12px;cursor:pointer}.ant-image-preview-operations-operation-disabled{color:#ffffff40;pointer-events:none}.ant-image-preview-operations-operation:last-of-type{margin-left:0}.ant-image-preview-operations-icon{font-size:18px}.ant-image-preview-switch-left,.ant-image-preview-switch-right{position:absolute;top:50%;right:10px;z-index:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-top:-22px;color:#ffffffd9;background:rgba(0,0,0,.1);border-radius:50%;cursor:pointer;pointer-events:auto}.ant-image-preview-switch-left-disabled,.ant-image-preview-switch-right-disabled{color:#ffffff40;cursor:not-allowed}.ant-image-preview-switch-left-disabled>.anticon,.ant-image-preview-switch-right-disabled>.anticon{cursor:not-allowed}.ant-image-preview-switch-left>.anticon,.ant-image-preview-switch-right>.anticon{font-size:18px}.ant-image-preview-switch-left{left:10px}.ant-image-preview-switch-right{right:10px}.thumb img{position:static;display:block;cursor:zoom-in;border-radius:4px;-o-object-fit:cover;object-fit:cover}.file-table{width:100%;border-collapse:collapse}.file-table .center{text-align:center}.file-table .left{text-align:left}.file-table .right{text-align:right}.file-table-th,.file-table-td{padding:12px 8px}.file-table thead{background-color:#fafafa}.file-table table,.file-table td,.file-table th{border:1px solid #d9d9d9}.upload-modal .ant-upload-list{display:none}.upload-modal .ant-table-wrapper .ant-spin-nested-loading{padding:0}.upload-modal-toolbar{display:flex;align-items:center;margin-bottom:8px}.upload-modal-toolbar__btn{margin-left:8px;text-align:right;flex:1}.upload-preview-modal .ant-upload-list{display:none}.upload-preview-modal .ant-table-wrapper .ant-spin-nested-loading{padding:0}.guoba-basic-form .ant-form-item-label label:after{margin:0 6px 0 2px}.guoba-basic-form .ant-form-item-with-help{margin-bottom:0}.guoba-basic-form .ant-form-item:not(.ant-form-item-with-help){margin-bottom:20px}.guoba-basic-form .ant-form-item.suffix-item .ant-form-item-children{display:flex}.guoba-basic-form .ant-form-item.suffix-item .ant-form-item-control{margin-top:4px}.guoba-basic-form .ant-form-item.suffix-item .suffix{display:inline-flex;padding-left:6px;margin-top:1px;line-height:1;align-items:center}.guoba-basic-form .ant-form-item .bottom-message{color:#bfbfbf}.guoba-basic-form .ant-form-explain{font-size:14px}.guoba-basic-form--compact .ant-form-item{margin-bottom:8px!important}[data-theme=dark] .guoba-basic-form .ant-form-item .bottom-message{color:#5c5c5c} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/BasicForm.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/BasicForm.js deleted file mode 100644 index 021fa112e301ecc3bbbb6c84acd334a22494a58b..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/BasicForm.js +++ /dev/null @@ -1 +0,0 @@ -var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__spreadValues=(e,t)=>{for(var n in t||(t={}))__hasOwnProp.call(t,n)&&__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var n of __getOwnPropSymbols(t))__propIsEnum.call(t,n)&&__defNormalProp(e,n,t[n]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__async=(t,n,a)=>new Promise(((r,o)=>{var l=t=>{try{c(a.next(t))}catch(e){o(e)}},i=t=>{try{c(a.throw(t))}catch(e){o(e)}},c=e=>e.done?r(e.value):Promise.resolve(e.value).then(l,i);c((a=a.apply(t,n)).next())}));import{_ as _extends,b as defineComponent,ai as warning,r as ref,aj as useConfigInject,ak as _defineProperty$k,al as isValidElement,am as _typeof,k as createVNode,an as omit,ao as Select,ap as _objectSpread2,aq as selectProps,ar as flattenChildren,as as withInstall,at as tuple$1,au as getPropsSlot,av as classNames,O as CloseOutlined,aw as cloneElement,ax as getTransitionProps,K as withDirectives,ay as vShow,az as Transition,aA as PropTypes,aB as CheckCircleFilled,aC as InfoCircleFilled,aD as CloseCircleFilled,aE as ExclamationCircleFilled,aF as CheckCircleOutlined,aG as InfoCircleOutlined,aH as CloseCircleOutlined,aI as ExclamationCircleOutlined,aJ as commonjsGlobal,aK as dayjs,aL as noteOnce,aM as useAttrs,ah as provide,ad as inject,l as createTextVNode,aN as _toConsumableArray,aO as KeyCode,aP as wrapperRaf,aQ as isVisible,w as watch,aR as onBeforeUnmount,q as nextTick,G as computed,aS as onBeforeUpdate,v as watchEffect,F as Fragment,aT as useMergedState,X as toRef,aU as _slicedToArray,aV as Trigger,H as onMounted,aW as useMemo,aX as shallowequal,aY as useProviderTrigger,aZ as useState,ac as AntdIcon,a_ as shallowRef,a$ as warning$1,b0 as eagerComputed,c as reactive,b1 as onUpdated,b2 as pickAttrs,a2 as getCurrentInstance,b3 as filterEmpty,b4 as camelize,b5 as useBaseProps,b6 as initDefaultProps,b7 as useId,t as toRefs,b8 as BaseSelect,b9 as baseSelectPropsWithoutPrivate,ba as useInjectFormItemContext,bb as FormItemRest,bc as LeftOutlined,bd as RightOutlined,be as LoadingOutlined,bf as getIcons,bg as getTransitionName$1,bh as getTransitionDirection,bi as Button,bj as Tag,bk as devWarning,bl as useLocaleReceiver,bm as enUS,bn as dialogPropTypes,bo as addEventListenerWrap,I as onUnmounted,bp as cloneVNode,bq as DialogWrap,d as defaultLocale,br as EyeOutlined,bs as presetPrimaryColors,bt as useRefs,bu as CheckOutlined,T as Tooltip,bv as findDOMNode,bw as supportsPassive,bx as BaseMixin,by as getSlot,bz as hasProp,bA as withUndefined,bB as tooltipProps,bC as onActivated,bD as Transition$1,bE as collapseMotion,bF as List$1,a4 as toRaw,bG as debounce,bH as SearchOutlined,bI as Input,bJ as Checkbox$1,bK as LocaleReceiver,bL as Pagination,bM as Menu,bN as DownOutlined,bO as Dropdown,bP as splitAttrs,bQ as useInjectLegacySelectContext,bR as useProvideLegacySelectContext,bS as toReactive,bT as regenerator,bU as Transition$2,bV as getTransitionGroupProps,bW as TransitionGroup,bX as Radio,p as propTypes$1,z as useAttrs$1,a as _export_sfc,s as useI18n,x as unref,Y as omit$1,Z as isFunction,e as resolveComponent,o as openBlock,i as createBlock,j as withCtx,f as createElementBlock,h as renderList,m as toDisplayString,V as mergeProps,bY as isString,$ as createSlots,L as renderSlot,a0 as normalizeProps,a1 as guardReactiveProps,ae as createBaseVNode,bZ as isArray,b_ as componentSetting,b$ as Icon,c0 as PopConfirmButton,c1 as Divider,c2 as Dropdown$1,Q as useDesign,c3 as usePermission,c4 as isBoolean,U as normalizeClass,R as createCommentVNode,af as useMessage,c5 as warn,c6 as Space,a9 as withInstall$1,c7 as _sfc_main$g,c8 as registerGuobaComponent,c9 as isNumber$1,ca as Col,B as isVNode,cb as getSlot$1,cc as cloneDeep,cd as BasicHelp,ce as isNull,C as createContext,D as useContext,cf as Button$1,cg as BasicArrow,N as normalizeStyle,ch as isObject,ci as set,cj as dateUtil,ck as isNullOrUnDef,cl as useBreakpoint,ab as useDebounceFn,cm as isDef,a7 as error,a3 as deepMerge,cn as Row,n as withKeys}from"./index.js";import{F as Form}from"./index4.js";import{I as InputNumber}from"./index5.js";import{S as Switch}from"./index6.js";import{u as useRuleFormItem}from"./useFormItem.js";import{g as get}from"./get.js";/* empty css */import{T as TransButton}from"./transButton.js";import{b as useModalContext,B as BasicModal,u as useModalInner,a as useModal}from"./index2.js";import{i as isNumber,p as partition,u as upperFirst}from"./upperFirst.js";import{d as downloadByUrl}from"./download.js";import{S as StrengthMeter}from"./index7.js";import{C as CountdownInput}from"./index8.js";import{u as uniqBy}from"./uniqBy.js";var Option=function(){return null};Option.isSelectOption=!0,Option.displayName="AAutoCompleteOption";var Option$1=Option,OptGroup=function(){return null};OptGroup.isSelectOptGroup=!0,OptGroup.displayName="AAutoCompleteOptGroup";var OptGroup$1=OptGroup;function isSelectOptionOrSelectOptGroup(e){var t,n;return(null===(t=null==e?void 0:e.type)||void 0===t?void 0:t.isSelectOption)||(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.isSelectOptGroup)}var autoCompleteProps=function(){return _extends(_extends({},omit(selectProps(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0}})},AutoComplete=defineComponent({name:"AAutoComplete",inheritAttrs:!1,props:autoCompleteProps(),slots:["option"],setup:function(e,t){var n=t.slots,a=t.attrs,r=t.expose;warning(!("dataSource"in n),"AutoComplete","`dataSource` slot is deprecated, please use props `options` instead."),warning(!("options"in n),"AutoComplete","`options` slot is deprecated, please use props `options` instead.");var o=ref(),l=function(){var e,t=flattenChildren(null===(e=n.default)||void 0===e?void 0:e.call(n));return t.length?t[0]:void 0};r({focus:function(){var e;null===(e=o.value)||void 0===e||e.focus()},blur:function(){var e;null===(e=o.value)||void 0===e||e.blur()}});var i=useConfigInject("select",e).prefixCls;return function(){var t,r,c,u,s,d=e.size,p=e.dataSource,f=e.notFoundContent,v=void 0===f?null===(r=n.notFoundContent)||void 0===r?void 0:r.call(n):f,m=a.class,h=(_defineProperty$k(t={},m,!!m),_defineProperty$k(t,"".concat(i.value,"-lg"),"large"===d),_defineProperty$k(t,"".concat(i.value,"-sm"),"small"===d),_defineProperty$k(t,"".concat(i.value,"-show-search"),!0),_defineProperty$k(t,"".concat(i.value,"-auto-complete"),!0),t);if(void 0===e.options){var g=(null===(c=n.dataSource)||void 0===c?void 0:c.call(n))||(null===(u=n.options)||void 0===u?void 0:u.call(n))||[];s=g.length&&isSelectOptionOrSelectOptGroup(g[0])?g:p?p.map((function(e){if(isValidElement(e))return e;switch(_typeof(e)){case"string":return createVNode(Option$1,{key:e,value:e},{default:function(){return[e]}});case"object":return createVNode(Option$1,{key:e.value,value:e.value},{default:function(){return[e.text]}});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[]}var y=omit(_extends(_extends(_extends({},e),a),{mode:Select.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:l,notFoundContent:v,class:h,ref:o}),["dataSource","loading"]);return createVNode(Select,y,_objectSpread2({default:function(){return[s]}},omit(n,["default","dataSource","options"])))}}}),AutoComplete$1=_extends(AutoComplete,{Option:Option$1,OptGroup:OptGroup$1,install:function(e){return e.component(AutoComplete.name,AutoComplete),e.component(Option$1.displayName,Option$1),e.component(OptGroup$1.displayName,OptGroup$1),e}}),iconMapFilled={success:CheckCircleFilled,info:InfoCircleFilled,error:CloseCircleFilled,warning:ExclamationCircleFilled},iconMapOutlined={success:CheckCircleOutlined,info:InfoCircleOutlined,error:CloseCircleOutlined,warning:ExclamationCircleOutlined},AlertTypes=tuple$1("success","info","warning","error"),alertProps=function(){return{type:PropTypes.oneOf(AlertTypes),closable:{type:Boolean,default:void 0},closeText:PropTypes.any,message:PropTypes.any,description:PropTypes.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:PropTypes.any,closeIcon:PropTypes.any,onClose:Function}},Alert=defineComponent({name:"AAlert",inheritAttrs:!1,props:alertProps(),setup:function(e,t){var n=t.slots,a=t.emit,r=t.attrs,o=t.expose,l=useConfigInject("alert",e),i=l.prefixCls,c=l.direction,u=ref(!1),s=ref(!1),d=ref(),p=function(e){e.preventDefault();var t=d.value;t.style.height="".concat(t.offsetHeight,"px"),t.style.height="".concat(t.offsetHeight,"px"),u.value=!0,a("close",e)},f=function(){var t;u.value=!1,s.value=!0,null===(t=e.afterClose)||void 0===t||t.call(e)};o({animationEnd:f});var v=ref({});return function(){var t,a,o=e.banner,l=e.closeIcon,m=void 0===l?null===(a=n.closeIcon)||void 0===a?void 0:a.call(n):l,h=e.closable,g=e.type,y=e.showIcon,b=getPropsSlot(n,e,"closeText"),k=getPropsSlot(n,e,"description"),x=getPropsSlot(n,e,"message"),w=getPropsSlot(n,e,"icon");y=!(!o||void 0!==y)||y;var C=(k?iconMapOutlined:iconMapFilled)[g=o&&void 0===g?"warning":g||"info"]||null;b&&(h=!0);var _=i.value,S=classNames(_,(_defineProperty$k(t={},"".concat(_,"-").concat(g),!0),_defineProperty$k(t,"".concat(_,"-closing"),u.value),_defineProperty$k(t,"".concat(_,"-with-description"),!!k),_defineProperty$k(t,"".concat(_,"-no-icon"),!y),_defineProperty$k(t,"".concat(_,"-banner"),!!o),_defineProperty$k(t,"".concat(_,"-closable"),h),_defineProperty$k(t,"".concat(_,"-rtl"),"rtl"===c.value),t)),P=h?createVNode("button",{type:"button",onClick:p,class:"".concat(_,"-close-icon"),tabindex:0},[b?createVNode("span",{class:"".concat(_,"-close-text")},[b]):void 0===m?createVNode(CloseOutlined,null,null):m]):null,N=w&&(isValidElement(w)?cloneElement(w,{class:"".concat(_,"-icon")}):createVNode("span",{class:"".concat(_,"-icon")},[w]))||createVNode(C,{class:"".concat(_,"-icon")},null),O=getTransitionProps("".concat(_,"-motion"),{appear:!1,css:!0,onAfterLeave:f,onBeforeLeave:function(e){e.style.maxHeight="".concat(e.offsetHeight,"px")},onLeave:function(e){e.style.maxHeight="0px"}});return s.value?null:createVNode(Transition,O,{default:function(){return[withDirectives(createVNode("div",_objectSpread2(_objectSpread2({role:"alert"},r),{},{style:[r.style,v.value],class:[r.class,S],"data-show":!u.value,ref:d}),[y?N:null,createVNode("div",{class:"".concat(_,"-content")},[x?createVNode("div",{class:"".concat(_,"-message")},[x]):null,k?createVNode("div",{class:"".concat(_,"-description")},[k]):null]),P]),[[vShow,!u.value]])]}})}}}),Alert$1=withInstall(Alert),weekday$1={exports:{}};weekday$1.exports=function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,a=(n25){var r=a(this).startOf(t2).add(1,t2).date(n),o=a(this).endOf(e);if(r.isBefore(o))return 1}var l=a(this).startOf(t2).date(n).startOf(e).subtract(1,"millisecond"),i=this.diff(l,e,!0);return i<0?a(this).startOf("week").week():Math.ceil(i)},r.weeks=function(e){return void 0===e&&(e=null),this.week(e)}});var weekOfYear=weekOfYear$1.exports,weekYear$1={exports:{}};weekYear$1.exports=function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}};var weekYear=weekYear$1.exports,advancedFormat$1={exports:{}};advancedFormat$1.exports=function(e,t,n){var a=t.prototype,r=a.format;n.en.ordinal=function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"},a.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var a=this.$utils(),o=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return a.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return a.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return a.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(o)}};var advancedFormat=advancedFormat$1.exports,customParseFormat$1={exports:{}};customParseFormat$1.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,a=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,o={},l=function(e){return(e=+e)+(e>68?1900:2e3)},i=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},s=function(e,t){var n,a=o.meridiem;if(a){for(var r=1;r<=24;r+=1)if(e.indexOf(a(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},d={A:[r,function(e){this.afternoon=s(e,!1)}],a:[r,function(e){this.afternoon=s(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[a,i("seconds")],ss:[a,i("seconds")],m:[a,i("minutes")],mm:[a,i("minutes")],H:[a,i("hours")],h:[a,i("hours")],HH:[a,i("hours")],hh:[a,i("hours")],D:[a,i("day")],DD:[n,i("day")],Do:[r,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var a=1;a<=31;a+=1)t(a).replace(/\[|\]/g,"")===e&&(this.day=a)}],M:[a,i("month")],MM:[n,i("month")],MMM:[r,function(e){var t=u("months"),n=(u("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[r,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,i("year")],YY:[n,function(e){this.year=l(e)}],YYYY:[/\d{4}/,i("year")],Z:c,ZZ:c};function p(n){var a,r;a=n,r=o&&o.formats;for(var l=(n=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,a){var o=a&&a.toUpperCase();return n||r[a]||e[a]||r[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),i=l.length,c=0;c-1)return new Date(("X"===t?1e3:1)*e);var a=p(t)(e),r=a.year,o=a.month,l=a.day,i=a.hours,c=a.minutes,u=a.seconds,s=a.milliseconds,d=a.zone,f=new Date,v=l||(r||o?1:f.getDate()),m=r||f.getFullYear(),h=0;r&&!o||(h=o>0?o-1:f.getMonth());var g=i||0,y=c||0,b=u||0,k=s||0;return d?new Date(Date.UTC(m,h,v,g,y,b,k+60*d.offset*1e3)):n?new Date(Date.UTC(m,h,v,g,y,b,k)):new Date(m,h,v,g,y,b,k)}catch(x){return new Date("")}}(t,i,a),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),s&&t!=this.format(i)&&(this.$d=new Date("")),o={}}else if(i instanceof Array)for(var f=i.length,v=1;v<=f;v+=1){l[1]=i[v-1];var m=n.apply(this,l);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}v===f&&(this.$d=new Date(""))}else r.call(this,e)}}}();var customParseFormat=customParseFormat$1.exports;dayjs.extend(customParseFormat),dayjs.extend(advancedFormat),dayjs.extend(weekday),dayjs.extend(localeData),dayjs.extend(weekOfYear),dayjs.extend(weekYear),dayjs.extend((function(e,t){var n=t.prototype,a=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return a.bind(this)(t)}}));var localeMap={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},parseLocale=function(e){return localeMap[e]||e.split("_")[0]},parseNoMatchNotice=function(){noteOnce(!1,"Not match any format. Please help to fire a issue about this.")},generateConfig={getNow:function(){return dayjs()},getFixedDate:function(e){return dayjs(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return dayjs().locale(parseLocale(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(parseLocale(e)).weekday(0)},getWeek:function(e,t){return t.locale(parseLocale(e)).week()},getShortWeekDays:function(e){return dayjs().locale(parseLocale(e)).localeData().weekdaysMin()},getShortMonths:function(e){return dayjs().locale(parseLocale(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(parseLocale(e)).format(n)},parse:function(e,t,n){for(var a=parseLocale(e),r=0;r1&&(l=t.addDate(l,-7)),l}function getClosingViewDate(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;switch(t){case"year":return n.addYear(e,10*a);case"quarter":case"month":return n.addYear(e,a);default:return n.addMonth(e,a)}}function formatValue(e,t){var n=t.generateConfig,a=t.locale,r=t.format;return"function"==typeof r?r(e):n.locale.format(a.locale,e,r)}function parseValue(e,t){var n=t.generateConfig,a=t.locale,r=t.formatList;return e&&"function"!=typeof r[0]?n.locale.parse(a.locale,e,r):null}function getCellDateDisabled(e){var t=e.cellDate,n=e.mode,a=e.disabledDate,r=e.generateConfig;if(!a)return!1;var o=function(e,n,o){for(var l=n;l<=o;){var i=void 0;switch(e){case"date":if(i=r.setDate(t,l),!a(i))return!1;break;case"month":if(!getCellDateDisabled({cellDate:i=r.setMonth(t,l),mode:"month",generateConfig:r,disabledDate:a}))return!1;break;case"year":if(!getCellDateDisabled({cellDate:i=r.setYear(t,l),mode:"year",generateConfig:r,disabledDate:a}))return!1}l+=1}return!0};switch(n){case"date":case"week":return a(t);case"month":return o("date",1,r.getDate(r.getEndDate(t)));case"quarter":var l=3*Math.floor(r.getMonth(t)/3);return o("month",l,l+2);case"year":return o("month",0,11);case"decade":var i=r.getYear(t),c=Math.floor(i/DECADE_UNIT_DIFF)*DECADE_UNIT_DIFF;return o("year",c,c+DECADE_UNIT_DIFF-1)}}function TimeHeader(e){var t=useMergeProps(e);if(useInjectPanel().hideHeader.value)return null;var n=t.prefixCls,a=t.generateConfig,r=t.locale,o=t.value,l=t.format,i="".concat(n,"-header");return createVNode(Header,{prefixCls:i},{default:function(){return[o?formatValue(o,{locale:r,format:l,generateConfig:a}):" "]}})}TimeHeader.displayName="TimeHeader",TimeHeader.inheritAttrs=!1;var TimeUnitColumn=defineComponent({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup:function(e){var t=useInjectPanel().open,n=ref(null),a=ref(new Map),r=ref();return watch((function(){return e.value}),(function(){var r=a.value.get(e.value);r&&!1!==t.value&&scrollTo(n.value,r.offsetTop,120)})),onBeforeUnmount((function(){var e;null===(e=r.value)||void 0===e||e.call(r)})),watch(t,(function(){var o;null===(o=r.value)||void 0===o||o.call(r),nextTick((function(){if(t.value){var o=a.value.get(e.value);o&&(r.value=waitElementReady(o,(function(){scrollTo(n.value,o.offsetTop,0)})))}}))}),{immediate:!0,flush:"post"}),function(){var t=e.prefixCls,r=e.units,o=e.onSelect,l=e.value,i=e.active,c=e.hideDisabledOptions,u="".concat(t,"-cell");return createVNode("ul",{class:classNames("".concat(t,"-column"),_defineProperty$k({},"".concat(t,"-column-active"),i)),ref:n,style:{position:"relative"}},[r.map((function(e){var t;return c&&e.disabled?null:createVNode("li",{key:e.value,ref:function(t){a.value.set(e.value,t)},class:classNames(u,(t={},_defineProperty$k(t,"".concat(u,"-disabled"),e.disabled),_defineProperty$k(t,"".concat(u,"-selected"),l===e.value),t)),onClick:function(){e.disabled||o(e.value)}},[createVNode("div",{class:"".concat(u,"-inner")},[e.label])])}))])}}});function leftPad(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",a=String(e);a.length=12})),a=computed((function(){return e.use12Hours?t.value%12:t.value})),r=computed((function(){return e.value?e.generateConfig.getMinute(e.value):-1})),o=computed((function(){return e.value?e.generateConfig.getSecond(e.value):-1})),l=ref(e.generateConfig.getNow()),i=ref(),c=ref(),u=ref();onBeforeUpdate((function(){l.value=e.generateConfig.getNow()})),watchEffect((function(){if(e.disabledTime){var t=e.disabledTime(l),n=[t.disabledHours,t.disabledMinutes,t.disabledSeconds];i.value=n[0],c.value=n[1],u.value=n[2]}else{var a=[e.disabledHours,e.disabledMinutes,e.disabledSeconds];i.value=a[0],c.value=a[1],u.value=a[2]}}));var s=function(t,n,a,r){var o=e.value||e.generateConfig.getNow(),l=Math.max(0,n),i=Math.max(0,a),c=Math.max(0,r);return o=setTime(e.generateConfig,o,e.use12Hours&&t?l+12:l,i,c)},d=computed((function(){var t;return generateUnits(0,23,null!==(t=e.hourStep)&&void 0!==t?t:1,i.value&&i.value())})),p=computed((function(){if(!e.use12Hours)return[!1,!1];var t=[!0,!0];return d.value.forEach((function(e){var n=e.disabled,a=e.value;n||(a>=12?t[1]=!1:t[0]=!1)})),t})),f=computed((function(){return e.use12Hours?d.value.filter(n.value?function(e){return e.value>=12}:function(e){return e.value<12}).map((function(e){var t=e.value%12,n=0===t?"12":leftPad(t,2);return _extends(_extends({},e),{label:n,value:t})})):d.value})),v=computed((function(){var n;return generateUnits(0,59,null!==(n=e.minuteStep)&&void 0!==n?n:1,c.value&&c.value(t.value))})),m=computed((function(){var n;return generateUnits(0,59,null!==(n=e.secondStep)&&void 0!==n?n:1,u.value&&u.value(t.value,r))}));return function(){var t=e.prefixCls,l=e.operationRef,i=e.activeColumnIndex,c=e.showHour,u=e.showMinute,d=e.showSecond,h=e.use12Hours,g=e.hideDisabledOptions,y=e.onSelect,b=[],k="".concat(t,"-content"),x="".concat(t,"-time-panel");function w(e,t,n,a,r){!1!==e&&b.push({node:cloneElement(t,{prefixCls:x,value:n,active:i===b.length,onSelect:r,units:a,hideDisabledOptions:g}),onSelect:r,value:n,units:a})}l.value={onUpDown:function(e){var t=b[i];if(t)for(var n=t.units.findIndex((function(e){return e.value===t.value})),a=t.units.length,r=1;r2&&void 0!==arguments[2]&&arguments[2],r=e.picker,o=e.generateConfig,l=e.onSelect,i=e.onChange,c=e.disabledDate;(D.value===r||a)&&(w(t),l&&l(t),s&&s(t,n),!i||isEqual(o,t,x.value)||(null==c?void 0:c(t))||i(t))},M=function(e){return!(!y.value||!y.value.onKeydown)&&([KeyCode.LEFT,KeyCode.RIGHT,KeyCode.UP,KeyCode.DOWN,KeyCode.PAGE_UP,KeyCode.PAGE_DOWN,KeyCode.ENTER].includes(e.which)&&e.preventDefault(),y.value.onKeydown(e))},j=function(e){y.value&&y.value.onBlur&&y.value.onBlur(e)},E=function(){var t=e.generateConfig,n=e.hourStep,a=e.minuteStep,i=e.secondStep,c=t.getNow(),u=getLowerBoundTime(t.getHour(c),t.getMinute(c),t.getSecond(c),r.value?n:1,o.value?a:1,l.value?i:1),s=setTime(t,c,u[0],u[1],u[2]);I(s,"submit")},R=computed((function(){var t,n=e.prefixCls,a=e.direction;return classNames("".concat(n,"-panel"),(_defineProperty$k(t={},"".concat(n,"-panel-has-range"),h&&h.value&&h.value[0]&&h.value[1]),_defineProperty$k(t,"".concat(n,"-panel-has-range-hover"),g&&g.value&&g.value[0]&&g.value[1]),_defineProperty$k(t,"".concat(n,"-panel-rtl"),"rtl"===a),t))}));return useProvidePanel(_extends(_extends({},i),{mode:D,hideHeader:computed((function(){var t;return void 0!==e.hideHeader?e.hideHeader:null===(t=i.hideHeader)||void 0===t?void 0:t.value})),hidePrevBtn:computed((function(){return v.value&&"right"===m.value})),hideNextBtn:computed((function(){return v.value&&"left"===m.value}))})),watch((function(){return e.value}),(function(){e.value&&P(e.value)})),function(){var t,r=e.prefixCls,o=void 0===r?"ant-picker":r,l=e.locale,i=e.generateConfig,s=e.disabledDate,p=e.picker,f=void 0===p?"date":p,v=e.tabindex,h=void 0===v?0:v,g=e.showNow,b=e.showTime,k=e.showToday,w=e.renderExtraFooter,C=e.onMousedown,_=e.onOk,P=e.components;c&&"right"!==m.value&&(c.value={onKeydown:M,onClose:function(){y.value&&y.value.onClose&&y.value.onClose()}});var O,T,V,A=_extends(_extends(_extends({},n),e),{operationRef:y,prefixCls:o,viewDate:S.value,value:x.value,onViewDateChange:N,sourceMode:$.value,onPanelChange:F,disabledDate:s});switch(delete A.onChange,delete A.onSelect,D.value){case"decade":t=createVNode(DecadePanel,_objectSpread2(_objectSpread2({},A),{},{onSelect:function(e,t){N(e),I(e,t)}}),null);break;case"year":t=createVNode(YearPanel,_objectSpread2(_objectSpread2({},A),{},{onSelect:function(e,t){N(e),I(e,t)}}),null);break;case"month":t=createVNode(MonthPanel,_objectSpread2(_objectSpread2({},A),{},{onSelect:function(e,t){N(e),I(e,t)}}),null);break;case"quarter":t=createVNode(QuarterPanel,_objectSpread2(_objectSpread2({},A),{},{onSelect:function(e,t){N(e),I(e,t)}}),null);break;case"week":t=createVNode(WeekPanel,_objectSpread2(_objectSpread2({},A),{},{onSelect:function(e,t){N(e),I(e,t)}}),null);break;case"time":delete A.showTime,t=createVNode(TimePanel,_objectSpread2(_objectSpread2(_objectSpread2({},A),"object"===_typeof(b)?b:null),{},{onSelect:function(e,t){N(e),I(e,t)}}),null);break;default:t=createVNode(b?DatetimePanel:DatePanel,_objectSpread2(_objectSpread2({},A),{},{onSelect:function(e,t){N(e),I(e,t)}}),null)}if((null==d?void 0:d.value)||(O=getExtraFooter(o,D.value,w),T=getRanges({prefixCls:o,components:P,needConfirmButton:a.value,okDisabled:!x.value||s&&s(x.value),locale:l,showNow:g,onNow:a.value&&E,onOk:function(){x.value&&(I(x.value,"submit",!0),_&&_(x.value))}})),k&&"date"===D.value&&"date"===f&&!b){var L=i.getNow(),B="".concat(o,"-today-btn"),K=s&&s(L);V=createVNode("a",{class:classNames(B,K&&"".concat(B,"-disabled")),"aria-disabled":K,onClick:function(){K||I(L,"mouse",!0)}},[l.today])}return createVNode("div",{tabindex:h,class:classNames(R.value,n.class),style:n.style,onKeydown:M,onBlur:j,onMousedown:C,ref:u},[t,O||T||V?createVNode("div",{class:"".concat(o,"-footer")},[O,T,V]):null])}}})}YearPanel.displayName="YearPanel",YearPanel.inheritAttrs=!1;var InterPickerPanel=PickerPanel(),PickerPanel$1=function(e){return createVNode(InterPickerPanel,e)},BUILT_IN_PLACEMENTS={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function PickerTrigger(e,t){var n,a=t.slots,r=useMergeProps(e),o=r.prefixCls,l=r.popupStyle,i=r.visible,c=r.dropdownClassName,u=r.dropdownAlign,s=r.transitionName,d=r.getPopupContainer,p=r.range,f=r.popupPlacement,v=r.direction,m="".concat(o,"-dropdown");return createVNode(Trigger,{showAction:[],hideAction:[],popupPlacement:void 0!==f?f:"rtl"===v?"bottomRight":"bottomLeft",builtinPlacements:BUILT_IN_PLACEMENTS,prefixCls:m,popupTransitionName:s,popupAlign:u,popupVisible:i,popupClassName:classNames(c,(n={},_defineProperty$k(n,"".concat(m,"-range"),p),_defineProperty$k(n,"".concat(m,"-rtl"),"rtl"===v),n)),popupStyle:l,getPopupContainer:d},{default:a.default,popup:a.popupElement})}function usePickerInput(e){var t=e.open,n=e.value,a=e.isClickOutside,r=e.triggerOpen,o=e.forwardKeydown,l=e.onKeydown,i=e.blurToCancel,c=e.onSubmit,u=e.onCancel,s=e.onFocus,d=e.onBlur,p=ref(!1),f=ref(!1),v=ref(!1),m=ref(!1),h=ref(!1),g=computed((function(){return{onMousedown:function(){p.value=!0,r(!0)},onKeydown:function(e){if(l(e,(function(){h.value=!0})),!h.value){switch(e.which){case KeyCode.ENTER:return t.value?!1!==c()&&(p.value=!0):r(!0),void e.preventDefault();case KeyCode.TAB:return void(p.value&&t.value&&!e.shiftKey?(p.value=!1,e.preventDefault()):!p.value&&t.value&&!o(e)&&e.shiftKey&&(p.value=!0,e.preventDefault()));case KeyCode.ESC:return p.value=!0,void u()}t.value||[KeyCode.SHIFT].includes(e.which)?p.value||o(e):r(!0)}},onFocus:function(e){p.value=!0,f.value=!0,s&&s(e)},onBlur:function(e){!v.value&&a(document.activeElement)?(i.value?setTimeout((function(){for(var e=document.activeElement;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;a(e)&&u()}),0):t.value&&(r(!1),m.value&&c()),f.value=!1,d&&d(e)):v.value=!1}}}));watch(t,(function(){m.value=!1})),watch(n,(function(){m.value=!0}));var y=ref();return onMounted((function(){y.value=addGlobalMousedownEvent((function(e){var n=getTargetFromEvent(e);if(t.value){var o=a(n);o?f.value&&!o||r(!1):(v.value=!0,wrapperRaf((function(){v.value=!1})))}}))})),onBeforeUnmount((function(){y.value&&y.value()})),[g,{focused:f,typing:p}]}function useTextValueMapping(e){var t=e.valueTexts,n=e.onTextChange,a=ref("");function r(){a.value=t.value[0]}return watch((function(){return _toConsumableArray(t.value)}),(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.join("||")!==n.join("||")&&t.value.every((function(e){return e!==a.value}))&&r()}),{immediate:!0}),[a,function(e){a.value=e,n(e)},r]}function useValueTexts(e,t){var n=t.formatList,a=t.generateConfig,r=t.locale,o=useMemo((function(){if(!e.value)return[[""],""];for(var t="",o=[],l=0;l1&&void 0!==arguments[1]&&arguments[1];wrapperRaf.cancel(n),t?l.value=e:n=wrapperRaf((function(){l.value=e}))}var c=useValueTexts(l,{formatList:a,generateConfig:r,locale:o}),u=_slicedToArray(c,2)[1];function s(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];i(null,e)}return watch(e,(function(){s(!0)})),onBeforeUnmount((function(){wrapperRaf.cancel(n)})),[u,function(e){i(e)},s]}function Picker(){return defineComponent({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup:function(e,t){var n=t.attrs,a=t.expose,r=ref(null),o=computed((function(){var t;return null!==(t=e.picker)&&void 0!==t?t:"date"})),l=computed((function(){return"date"===o.value&&!!e.showTime||"time"===o.value})),i=computed((function(){return toArray$3(getDefaultFormat(e.format,o.value,e.showTime,e.use12Hours))})),c=ref(null),u=ref(null),s=ref(null),d=useMergedState(null,{value:toRef(e,"value"),defaultValue:e.defaultValue}),p=_slicedToArray(d,2),f=p[0],v=p[1],m=ref(f.value),h=function(e){m.value=e},g=ref(null),y=useMergedState(!1,{value:toRef(e,"open"),defaultValue:e.defaultOpen,postState:function(t){return!e.disabled&&t},onChange:function(t){e.onOpenChange&&e.onOpenChange(t),!t&&g.value&&g.value.onClose&&g.value.onClose()}}),b=_slicedToArray(y,2),k=b[0],x=b[1],w=useValueTexts(m,{formatList:i,generateConfig:toRef(e,"generateConfig"),locale:toRef(e,"locale")}),C=_slicedToArray(w,2),_=C[0],S=C[1],P=useTextValueMapping({valueTexts:_,onTextChange:function(t){var n=parseValue(t,{locale:e.locale,formatList:i.value,generateConfig:e.generateConfig});!n||e.disabledDate&&e.disabledDate(n)||h(n)}}),N=_slicedToArray(P,3),O=N[0],T=N[1],V=N[2],D=function(t){var n=e.onChange,a=e.generateConfig,r=e.locale;h(t),v(t),n&&!isEqual(a,f.value,t)&&n(t,t?formatValue(t,{generateConfig:a,locale:r,format:i.value[0]}):"")},A=function(t){e.disabled&&t||x(t)},$=function(){e.onMouseup&&e.onMouseup.apply(e,arguments),r.value&&(r.value.focus(),A(!0))},F=usePickerInput({blurToCancel:l,open:k,value:O,triggerOpen:A,forwardKeydown:function(e){return!!(k.value&&g.value&&g.value.onKeydown)&&g.value.onKeydown(e)},isClickOutside:function(e){return!elementsContains([c.value,u.value,s.value],e)},onSubmit:function(){return!(!m.value||e.disabledDate&&e.disabledDate(m.value))&&(D(m.value),A(!1),V(),!0)},onCancel:function(){A(!1),h(f.value),V()},onKeydown:function(t,n){var a;null===(a=e.onKeydown)||void 0===a||a.call(e,t,n)},onFocus:function(t){var n;null===(n=e.onFocus)||void 0===n||n.call(e,t)},onBlur:function(t){var n;null===(n=e.onBlur)||void 0===n||n.call(e,t)}}),I=_slicedToArray(F,2),M=I[0],j=I[1],E=j.focused,R=j.typing;watch([k,_],(function(){k.value||(h(f.value),_.value.length&&""!==_.value[0]?S.value!==O.value&&V():T(""))})),watch(o,(function(){k.value||V()})),watch(f,(function(){h(f.value)}));var L=useHoverValue(O,{formatList:i,generateConfig:toRef(e,"generateConfig"),locale:toRef(e,"locale")}),B=_slicedToArray(L,3),K=B[0],U=B[1],H=B[2];useProvidePanel({operationRef:g,hideHeader:computed((function(){return"time"===o.value})),panelRef:c,onSelect:function(e,t){("submit"===t||"key"!==t&&!l.value)&&(D(e),A(!1))},open:k,defaultOpenValue:toRef(e,"defaultOpenValue"),onDateMouseenter:U,onDateMouseleave:H}),a({focus:function(){r.value&&r.value.focus()},blur:function(){r.value&&r.value.blur()}});var z=useProviderTrigger();return function(){var t,a=e.prefixCls,o=void 0===a?"rc-picker":a,l=e.id,c=e.tabindex,d=e.dropdownClassName,p=e.dropdownAlign,v=e.popupStyle,g=e.transitionName,y=e.generateConfig,b=e.locale,x=e.inputReadOnly,w=e.allowClear,C=e.autofocus,_=e.picker,S=void 0===_?"date":_;e.defaultOpenValue;var P=e.suffixIcon,N=e.clearIcon,V=e.disabled,F=e.placeholder,I=e.getPopupContainer,j=e.panelRender,L=e.onMousedown,B=e.onMouseenter,U=e.onMouseleave,Y=e.onContextmenu,W=e.onClick,G=e.onSelect,q=e.direction,Q=e.autocomplete,X=void 0===Q?"off":Q,Z=_extends(_extends(_extends({},e),n),{class:classNames(_defineProperty$k({},"".concat(o,"-panel-focused"),!R.value)),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),J=createVNode(PickerPanel$1,_objectSpread2(_objectSpread2({},Z),{},{generateConfig:y,value:m.value,locale:b,tabindex:-1,onSelect:function(e){null==G||G(e),h(e)},direction:q,onPanelChange:function(t,n){var a=e.onPanelChange;H(!0),null==a||a(t,n)}}),null);j&&(J=j(J));var ee,te,ne=createVNode("div",{class:"".concat(o,"-panel-container"),onMousedown:function(e){e.preventDefault()}},[J]);P&&(ee=createVNode("span",{class:"".concat(o,"-suffix")},[P])),w&&f.value&&!V&&(te=createVNode("span",{onMousedown:function(e){e.preventDefault(),e.stopPropagation()},onMouseup:function(e){e.preventDefault(),e.stopPropagation(),D(null),A(!1)},class:"".concat(o,"-clear"),role:"button"},[N||createVNode("span",{class:"".concat(o,"-clear-btn")},null)]));var ae=_extends(_extends(_extends(_extends({id:l,tabindex:c,disabled:V,readonly:x||"function"==typeof i.value[0]||!R.value,value:K.value||O.value,onInput:function(e){T(e.target.value)},autofocus:C,placeholder:F,ref:r,title:O.value},M.value),{size:getInputSize(S,i.value[0],y)}),getDataOrAriaProps(e)),{autocomplete:X}),re=e.inputRender?e.inputRender(ae):createVNode("input",ae,null),oe="rtl"===q?"bottomRight":"bottomLeft";return createVNode(PickerTrigger,{visible:k.value,popupStyle:v,prefixCls:o,dropdownClassName:d,dropdownAlign:p,getPopupContainer:I,transitionName:g,popupPlacement:oe,direction:q},{default:function(){return[createVNode("div",{ref:s,class:classNames(o,n.class,(t={},_defineProperty$k(t,"".concat(o,"-disabled"),V),_defineProperty$k(t,"".concat(o,"-focused"),E.value),_defineProperty$k(t,"".concat(o,"-rtl"),"rtl"===q),t)),style:n.style,onMousedown:L,onMouseup:$,onMouseenter:B,onMouseleave:U,onContextmenu:Y,onClick:W},[createVNode("div",{class:classNames("".concat(o,"-input"),_defineProperty$k({},"".concat(o,"-input-placeholder"),!!K.value)),ref:u},[re,ee,te]),z()])]},popupElement:function(){return ne}})}}})}var Picker$1=Picker();function useRangeDisabled(e,t){var n=e.picker,a=e.locale,r=e.selectedValue,o=e.disabledDate,l=e.disabled,i=e.generateConfig,c=computed((function(){return getValue(r.value,0)})),u=computed((function(){return getValue(r.value,1)}));function s(e){return i.value.locale.getWeekFirstDate(a.value.locale,e)}function d(e){return 100*i.value.getYear(e)+i.value.getMonth(e)}function p(e){return 10*i.value.getYear(e)+getQuarter(i.value,e)}return[function(e){var a;if(o&&(null===(a=null==o?void 0:o.value)||void 0===a?void 0:a.call(o,e)))return!0;if(l[1]&&u)return!isSameDate(i.value,e,u.value)&&i.value.isAfter(e,u.value);if(t.value[1]&&u.value)switch(n.value){case"quarter":return p(e)>p(u.value);case"month":return d(e)>d(u.value);case"week":return s(e)>s(u.value);default:return!isSameDate(i.value,e,u.value)&&i.value.isAfter(e,u.value)}return!1},function(e){var a;if(null===(a=o.value)||void 0===a?void 0:a.call(o,e))return!0;if(l[0]&&c)return!isSameDate(i.value,e,u.value)&&i.value.isAfter(c.value,e);if(t.value[0]&&c.value)switch(n.value){case"quarter":return p(e)0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=e.generateConfig,r=e.showTime,o=e.dateRender,l=e.direction,i=e.disabledTime,c=e.prefixCls,u=e.locale,s=r;if(r&&"object"===_typeof(r)&&r.defaultValue){var d=r.defaultValue;s=_extends(_extends({},r),{defaultValue:getValue(d,y.value)||void 0})}var p=null;return o&&(p=function(e){var t=e.current,n=e.today;return o({current:t,today:n,info:{range:y.value?"end":"start"}})}),createVNode(RangeContextProvider,{value:{inRange:!0,panelPosition:t,rangedValue:_e.value||$.value,hoverRangedValue:rt.value}},{default:function(){return[createVNode(PickerPanel$1,_objectSpread2(_objectSpread2(_objectSpread2({},e),n),{},{dateRender:p,showTime:s,mode:j.value[y.value],generateConfig:a,style:void 0,direction:l,disabledDate:0===y.value?K:U,disabledTime:function(e){return!!i&&i(e,0===y.value?"start":"end")},class:classNames(_defineProperty$k({},"".concat(c,"-panel-focused"),0===y.value?!Ye.value:!Ze.value)),value:getValue($.value,y.value),locale:u,tabIndex:-1,onPanelChange:function(e,n){0===y.value&&Fe(!0),1===y.value&&Re(!0),R(updateValues(j.value,n,y.value),updateValues($.value,e,y.value));var r=e;"right"===t&&j.value[y.value]===n&&(r=getClosingViewDate(r,n,a,-1)),V(r,y.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:0===y.value?getValue($.value,1):getValue($.value,0)}),null)]}})}return useProvidePanel({operationRef:k,hideHeader:computed((function(){return"time"===e.picker})),onDateMouseenter:function(e){Te(updateValues($.value,e,y.value)),0===y.value?$e(e):Ee(e)},onDateMouseleave:function(){Te(updateValues($.value,null,y.value)),0===y.value?Fe():Re()},hideRanges:computed((function(){return!0})),onSelect:function(e,t){var n=updateValues($.value,e,y.value);"submit"===t||"key"!==t&&!r.value?(ee(n,y.value),0===y.value?Fe():Re()):F(n)},open:Y}),function(){var t,a,l,h=e.prefixCls,g=void 0===h?"rc-picker":h,b=e.id,k=e.popupStyle,w=e.dropdownClassName,C=e.transitionName,S=e.dropdownAlign,P=e.getPopupContainer,N=e.generateConfig,D=e.locale,A=e.placeholder,F=e.autofocus,I=e.picker,M=void 0===I?"date":I,E=e.showTime,R=e.separator,L=void 0===R?"~":R,B=e.disabledDate,K=e.panelRender,U=e.allowClear,H=e.suffixIcon,z=e.clearIcon,W=e.inputReadOnly,G=e.renderExtraFooter,q=e.onMouseenter,X=e.onMouseleave,J=e.onMouseup,te=e.onOk,ne=e.components,ae=e.direction,re=e.autocomplete,oe=void 0===re?"off":re,le=0,ie=0;y.value&&u.value&&d.value&&c.value&&(le=u.value.offsetWidth+d.value.offsetWidth,c.value.offsetWidth&&v.value.offsetWidth&&le>c.value.offsetWidth-v.value.offsetWidth-("rtl"===ae||v.value.offsetLeft>le?0:v.value.offsetLeft)&&(ie=le));var ce="rtl"===ae?{right:"".concat(le,"px")}:{left:"".concat(le,"px")};var ue,se,de=createVNode("div",{class:classNames("".concat(g,"-range-wrapper"),"".concat(g,"-").concat(M,"-range-wrapper")),style:{minWidth:"".concat(Q.value,"px")}},[createVNode("div",{ref:v,class:"".concat(g,"-range-arrow"),style:ce},null),function(){var e,t=getExtraFooter(g,j.value[y.value],G),n=getRanges({prefixCls:g,components:ne,needConfirmButton:r.value,okDisabled:!getValue($.value,y.value)||B&&B($.value[y.value]),locale:D,rangeList:at.value,onOk:function(){getValue($.value,y.value)&&(ee($.value,y.value),te&&te($.value))}});if("time"===M||E)e=ot();else{var a=0===y.value?O.value:T.value,o=getClosingViewDate(a,M,N),l=j.value[y.value]===M,i=ot(!!l&&"left",{pickerValue:a,onPickerValueChange:function(e){V(e,y.value)}}),u=ot("right",{pickerValue:o,onPickerValueChange:function(e){V(getClosingViewDate(e,M,N,-1),y.value)}});e=createVNode(Fragment,null,"rtl"===ae?[u,l&&i]:[i,l&&u])}var s=createVNode(Fragment,null,[createVNode("div",{class:"".concat(g,"-panels")},[e]),(t||n)&&createVNode("div",{class:"".concat(g,"-footer")},[t,n])]);return K&&(s=K(s)),createVNode("div",{class:"".concat(g,"-panel-container"),style:{marginLeft:"".concat(ie,"px")},ref:c,onMousedown:function(e){e.preventDefault()}},[s])}()]);H&&(ue=createVNode("span",{class:"".concat(g,"-suffix")},[H])),U&&(getValue(_.value,0)&&!x.value[0]||getValue(_.value,1)&&!x.value[1])&&(se=createVNode("span",{onMousedown:function(e){e.preventDefault(),e.stopPropagation()},onMouseup:function(e){e.preventDefault(),e.stopPropagation();var t=_.value;x.value[0]||(t=updateValues(t,null,0)),x.value[1]||(t=updateValues(t,null,1)),ee(t,null),Z(!1,y.value)},class:"".concat(g,"-clear")},[z||createVNode("span",{class:"".concat(g,"-clear-btn")},null)]));var pe={size:getInputSize(M,m.value[0],N)},fe=0,he=0;u.value&&s.value&&d.value&&(0===y.value?he=u.value.offsetWidth:(fe=le,he=s.value.offsetWidth));var ge="rtl"===ae?{right:"".concat(fe,"px")}:{left:"".concat(fe,"px")};return createVNode(PickerTrigger,{visible:Y.value,popupStyle:k,prefixCls:g,dropdownClassName:w,dropdownAlign:S,getPopupContainer:P,transitionName:C,range:!0,direction:ae},{default:function(){return[createVNode("div",_objectSpread2({ref:i,class:classNames(g,"".concat(g,"-range"),n.class,(t={},_defineProperty$k(t,"".concat(g,"-disabled"),x.value[0]&&x.value[1]),_defineProperty$k(t,"".concat(g,"-focused"),0===y.value?ze.value:Xe.value),_defineProperty$k(t,"".concat(g,"-rtl"),"rtl"===ae),t)),style:n.style,onClick:Je,onMouseenter:q,onMouseleave:X,onMousedown:et,onMouseup:J},getDataOrAriaProps(e)),[createVNode("div",{class:classNames("".concat(g,"-input"),(a={},_defineProperty$k(a,"".concat(g,"-input-active"),0===y.value),_defineProperty$k(a,"".concat(g,"-input-placeholder"),!!Ae.value),a)),ref:u},[createVNode("input",_objectSpread2(_objectSpread2(_objectSpread2({id:b,disabled:x.value[0],readonly:W||"function"==typeof m.value[0]||!Ye.value,value:Ae.value||ve.value,onInput:function(e){me(e.target.value)},autofocus:F,placeholder:getValue(A,0)||"",ref:p},Ue.value),pe),{},{autocomplete:oe}),null)]),createVNode("div",{class:"".concat(g,"-range-separator"),ref:d},[L]),createVNode("div",{class:classNames("".concat(g,"-input"),(l={},_defineProperty$k(l,"".concat(g,"-input-active"),1===y.value),_defineProperty$k(l,"".concat(g,"-input-placeholder"),!!je.value),l)),ref:s},[createVNode("input",_objectSpread2(_objectSpread2(_objectSpread2({disabled:x.value[1],readonly:W||"function"==typeof m.value[0]||!Ze.value,value:je.value||be.value,onInput:function(e){ke(e.target.value)},placeholder:getValue(A,1)||"",ref:f},qe.value),pe),{},{autocomplete:oe}),null)]),createVNode("div",{class:"".concat(g,"-active-bar"),style:_extends(_extends({},ge),{width:"".concat(he,"px"),position:"absolute"})},null),ue,se,o()])]},popupElement:function(){return de}})}}})}var InterRangerPicker=RangerPicker(),VCRangePicker=InterRangerPicker,CalendarOutlined$2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},CalendarOutlinedSvg=CalendarOutlined$2;function _objectSpread$j(e){for(var t=1;tt.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}var TreeContextKey=Symbol("TreeContextKey"),TreeContext=defineComponent({name:"TreeContext",props:{value:{type:Object}},setup:function(e,t){var n=t.slots;return provide(TreeContextKey,computed((function(){return e.value}))),function(){var e;return null===(e=n.default)||void 0===e?void 0:e.call(n)}}}),useInjectTreeContext=function(){return inject(TreeContextKey,computed((function(){return{}})))},KeysStateKey=Symbol("KeysStateKey"),useProvideKeysState=function(e){provide(KeysStateKey,e)},useInjectKeysState=function(){return inject(KeysStateKey,{expandedKeys:shallowRef([]),selectedKeys:shallowRef([]),loadedKeys:shallowRef([]),loadingKeys:shallowRef([]),checkedKeys:shallowRef([]),halfCheckedKeys:shallowRef([]),expandedKeysSet:computed((function(){return new Set})),selectedKeysSet:computed((function(){return new Set})),loadedKeysSet:computed((function(){return new Set})),loadingKeysSet:computed((function(){return new Set})),checkedKeysSet:computed((function(){return new Set})),halfCheckedKeysSet:computed((function(){return new Set})),flattenNodes:shallowRef([])})},Indent=function(e){for(var t=e.prefixCls,n=e.level,a=e.isStart,r=e.isEnd,o="".concat(t,"-indent-unit"),l=[],i=0;i=0&&n.splice(a,1),n}function arrAdd(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function posToArr(e){return e.split("-")}function getPosition(e,t){return"".concat(e,"-").concat(t)}function isTreeNode(e){return e&&e.type&&e.type.isTreeNode}function getDragChildrenKeys(e,t){var n=[];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var a=t.key,r=t.children;n.push(a),e(r)}))}(t[e].children),n}function isLastChild(e){if(e.parent){var t=posToArr(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function isFirstChild(e){var t=posToArr(e.pos);return 0===Number(t[t.length-1])}function calcDropPosition(e,t,n,a,r,o,l,i,c,u){var s,d=e.clientX,p=e.clientY,f=e.target.getBoundingClientRect(),v=f.top,m=f.height,h=(("rtl"===u?-1:1)*(((null==r?void 0:r.x)||0)-d)-12)/a,g=i[n.eventKey];if(p-1.5?o({dragNode:P,dropNode:N,dropPosition:1})?C=1:O=!1:o({dragNode:P,dropNode:N,dropPosition:0})?C=0:o({dragNode:P,dropNode:N,dropPosition:1})?C=1:O=!1:o({dragNode:P,dropNode:N,dropPosition:1})?C=1:O=!1,{dropPosition:C,dropLevelOffset:_,dropTargetKey:g.key,dropTargetPos:g.pos,dragOverNodeKey:w,dropContainerKey:0===C?null:(null===(s=g.parent)||void 0===s?void 0:s.key)||null,dropAllowed:O}}function calcSelectedKeys(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function parseCheckedKeys(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==_typeof(e))return null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function conductExpandParent(e,t){var n=new Set;function a(e){if(!n.has(e)){var r=t[e];if(r){n.add(e);var o=r.parent;r.node.disabled||o&&a(o.key)}}}return(e||[]).forEach((function(e){a(e)})),_toConsumableArray(n)}globalThis&&globalThis.__rest;var __rest$h=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r0&&void 0!==arguments[0]?arguments[0]:[],n=filterEmpty(t);return n.map((function(t){var n,a,r,o;if(!isTreeNode(t))return null;for(var l=t.children||{},i=t.key,c={},u=0,s=Object.entries(t.props);u1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(u,s){for(var d,p=getPosition(a?a.pos:"0",s),f=getKey(u[o],p),v=0;v1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,a=t.processEntity,r=t.onProcessFinished,o=t.externalGetKey,l=t.childrenPropName,i=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=o||c,s={},d={},p={posEntities:s,keyEntities:d};return n&&(p=n(p)||p),traverseDataNodes(e,(function(e){var t=e.node,n=e.index,r=e.pos,o=e.key,l=e.parentPos,i=e.level,c={node:t,nodes:e.nodes,index:n,key:o,pos:r,level:i},u=getKey(o,r);s[r]=c,d[u]=c,c.parent=s[l],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),a&&a(c,p)}),{externalGetKey:u,childrenPropName:l,fieldNames:i}),r&&r(p),p}function getTreeNodeProps(e,t){var n=t.expandedKeysSet,a=t.selectedKeysSet,r=t.loadedKeysSet,o=t.loadingKeysSet,l=t.checkedKeysSet,i=t.halfCheckedKeysSet,c=t.dragOverNodeKey,u=t.dropPosition,s=t.keyEntities[e];return{eventKey:e,expanded:n.has(e),selected:a.has(e),loaded:r.has(e),loading:o.has(e),checked:l.has(e),halfChecked:i.has(e),pos:String(s?s.pos:""),parent:s.parent,dragOver:c===e&&0===u,dragOverGapTop:c===e&&-1===u,dragOverGapBottom:c===e&&1===u}}function convertNodePropsToEventData(e){var t=e.data,n=e.expanded,a=e.selected,r=e.checked,o=e.loaded,l=e.loading,i=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,s=e.dragOverGapBottom,d=e.pos,p=e.active,f=e.eventKey,v=_extends(_extends({dataRef:t},t),{expanded:n,selected:a,checked:r,loaded:o,loading:l,halfChecked:i,dragOver:c,dragOverGapTop:u,dragOverGapBottom:s,pos:d,active:p,eventKey:f,key:f});return"props"in v||Object.defineProperty(v,"props",{get:function(){return e}}),v}var useEntities=function(e,t){return computed((function(){return convertDataToEntities(e.value,{fieldNames:t.value,initWrapper:function(e){return _extends(_extends({},e),{pathKeyEntities:{}})},processEntity:function(e,n){var a=e.nodes.map((function(e){return e[t.value.value]})).join(VALUE_SPLIT);n.pathKeyEntities[a]=e,e.key=a}}).pathKeyEntities}))};function useSearchConfig(e){var t=ref(!1),n=ref({});return watchEffect((function(){if(!e.value)return t.value=!1,void(n.value={});var a={matchInputWidth:!0,limit:50};e.value&&"object"===_typeof(e.value)&&(a=_extends(_extends({},a),e.value)),a.limit<=0&&delete a.limit,t.value=!0,n.value=a})),{showSearch:t,searchConfig:n}}var SEARCH_MARK="__rc_cascader_search_mark__",defaultFilter=function(e,t,n){var a=n.label;return t.some((function(t){return String(t[a]).toLowerCase().includes(e.toLowerCase())}))},defaultRender$1=function(e){var t=e.path,n=e.fieldNames;return t.map((function(e){return e[n.label]})).join(" / ")},useSearchOptions=function(e,t,n,a,r,o){return computed((function(){var l=r.value,i=l.filter,c=void 0===i?defaultFilter:i,u=l.render,s=void 0===u?defaultRender$1:u,d=l.limit,p=void 0===d?50:d,f=l.sort,v=[];if(!e.value)return[];return function t(r,l){r.forEach((function(r){if(!(!f&&p>0&&v.length>=p)){var i,u=[].concat(_toConsumableArray(l),[r]),d=r[n.value.children];if(!d||0===d.length||o.value)if(c(e.value,u,{label:n.value.label}))v.push(_extends(_extends({},r),(_defineProperty$k(i={},n.value.label,s({inputValue:e.value,path:u,prefixCls:a.value,fieldNames:n.value})),_defineProperty$k(i,SEARCH_MARK,u),i)));d&&t(r[n.value.children],u)}}))}(t.value,[]),f&&v.sort((function(t,a){return f(t[SEARCH_MARK],a[SEARCH_MARK],e.value,n.value)})),p>0?v.slice(0,p):v}))};function formatStrategyValues$1(e,t,n){var a=new Set(e);return e.filter((function(e){var r=t[e],o=r?r.parent:null,l=r?r.children:null;return n===SHOW_CHILD$1?!(l&&l.some((function(e){return e.key&&a.has(e.key)}))):!(o&&!o.node.disabled&&a.has(o.key))}))}function toPathOptions(e,t,n){for(var a,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t,l=[],i=function(t){var i=e[t],c=null==o?void 0:o.findIndex((function(e){var t=e[n.value];return r?String(t)===String(i):t===i})),u=-1!==c?null==o?void 0:o[c]:null;l.push({value:null!==(a=null==u?void 0:u[n.value])&&void 0!==a?a:i,index:c,option:u}),o=null==u?void 0:u[n.children]},c=0;c=0;c-=1){(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!a(n)&&e.parent&&!i.has(e.parent.key))if(a(e.parent.node))i.add(t.key);else{var l=!0,c=!1;(t.children||[]).filter((function(e){return!a(e.node)})).forEach((function(e){var t=e.key,n=r.has(t);l&&!n&&(l=!1),c||!n&&!o.has(t)||(c=!0)})),l&&r.add(t.key),c&&o.add(t.key),i.add(t.key)}}))}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(removeFromCheckedKeys(o,r))}}function cleanConductCheck(e,t,n,a,r){for(var o=new Set(e),l=new Set(t),i=0;i<=a;i+=1){(n.get(i)||new Set).forEach((function(e){var t=e.key,n=e.node,a=e.children,i=void 0===a?[]:a;o.has(t)||l.has(t)||r(n)||i.filter((function(e){return!r(e.node)})).forEach((function(e){o.delete(e.key)}))}))}l=new Set;for(var c=new Set,u=a;u>=0;u-=1){(n.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var a=!0,i=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);a&&!n&&(a=!1),i||!n&&!l.has(t)||(i=!0)})),a||o.delete(t.key),i&&l.add(t.key),c.add(t.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(removeFromCheckedKeys(l,o))}}function conductCheck(e,t,n,a,r,o){var l;l=o||isCheckDisabled$1;var i=new Set(e.filter((function(e){return!!n[e]})));return!0===t?fillConductCheck(i,r,a,l):cleanConductCheck(i,t.halfCheckedKeys,r,a,l)}var useDisplayValues=function(e,t,n,a,r){return computed((function(){var o=r.value||function(e){var t=e.labels,n=a.value?t.slice(-1):t;return n.every((function(e){return["string","number"].includes(_typeof(e))}))?n.join(" / "):n.reduce((function(e,t,n){var a=isValidElement(t)?cloneElement(t,{key:n}):t;return 0===n?[a]:[].concat(_toConsumableArray(e),[" / ",a])}),[])};return e.value.map((function(e){var a=toPathOptions(e,t.value,n.value),r=o({labels:a.map((function(e){var t,a=e.option,r=e.value;return null!==(t=null==a?void 0:a[n.value.label])&&void 0!==t?t:r})),selectedOptions:a.map((function(e){return e.option}))}),l=toPathKey(e);return{label:r,value:l,key:l,valueCells:e}}))}))},CascaderContextKey=Symbol("CascaderContextKey"),useProvideCascader=function(e){provide(CascaderContextKey,e)},useInjectCascader=function(){return inject(CascaderContextKey)},useActive=function(){var e=useBaseProps(),t=useInjectCascader().values,n=useState([]),a=_slicedToArray(n,2),r=a[0],o=a[1];return watch((function(){return e.open}),(function(){if(e.open&&!e.multiple){var n=t.value[0];o(n||[])}}),{immediate:!0}),[r,o]},useKeyboard=function(e,t,n,a,r,o){var l=useBaseProps(),i=computed((function(){return"rtl"===l.direction})),c=[ref([]),ref(),ref([])],u=c[0],s=c[1],d=c[2];watchEffect((function(){for(var e=-1,r=t.value,o=[],l=[],i=a.value.length,c=function(t){var i=r.findIndex((function(e){return e[n.value.value]===a.value[t]}));if(-1===i)return"break";e=i,o.push(e),l.push(a.value[t]),r=r[e][n.value.children]},p=0;p1){var e=u.value.slice(0,-1);p(e)}else l.toggleOpen(!1)},v=function(){var e,t=((null===(e=d.value[s.value])||void 0===e?void 0:e[n.value.children])||[]).find((function(e){return!e.disabled}));if(t){var a=[].concat(_toConsumableArray(u.value),[t[n.value.value]]);p(a)}};e.expose({onKeydown:function(e){var t=e.which;switch(t){case KeyCode.UP:case KeyCode.DOWN:var a=0;t===KeyCode.UP?a=-1:t===KeyCode.DOWN&&(a=1),0!==a&&function(e){var t=d.value.length,a=s.value;-1===a&&e<0&&(a=t);for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];f(e),!r.multiple&&(t||p.value&&("hover"===g.value||n))&&r.toggleOpen(!1)},V=computed((function(){return r.searchValue?v.value:c.value})),D=computed((function(){for(var e=[{options:V.value}],t=V.value,n=function(n){var a=S.value[n],r=t.find((function(e){return e[d.value.value]===a})),o=null==r?void 0:r[d.value.children];if(!(null==o?void 0:o.length))return"break";t=o,e.push({options:o})},a=0;aa){if(t>0)return _defineProperty$k({},e,o);if(t<0&&ra)return _defineProperty$k({},e,t<0?o:-o);return{}}function getFixScaleEleTransPosition(e,t,n,a){var r=getClientSize(),o=r.width,l=r.height,i=null;return e<=o&&t<=l?i={x:0,y:0}:(e>o||t>l)&&(i=_extends(_extends({},fixPoint("x",n,e,o)),fixPoint("y",a,t,l))),i}var __rest$d=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r2&&void 0!==arguments[2])||arguments[2];r.set(e,{url:t,canPreview:n})},current:o,setCurrent:g,setShowPreview:d,setMousePosition:y,registerImage:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=function(){r.delete(e)};return r.set(e,{url:t,canPreview:n}),a}}),function(){var t=__rest$d(a.value,[]);return createVNode(Fragment,null,[n.default&&n.default(),createVNode(Preview$1,_objectSpread2(_objectSpread2({},t),{},{"ria-hidden":!s.value,visible:s.value,prefixCls:e.previewPrefixCls,onClose:b,mousePosition:p.value,src:h.value.get(o.value),icons:e.icons,getContainer:i.value}),null)])}}}),PreviewGroup$1=Group,initialPosition={x:0,y:0},previewProps$1=_extends(_extends({},dialogPropTypes()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:function(){return{}}}}),Preview=defineComponent({name:"Preview",inheritAttrs:!1,props:previewProps$1,emits:["close","afterClose"],setup:function(e,t){var n=t.emit,a=t.attrs,r=reactive(e.icons),o=r.rotateLeft,l=r.rotateRight,i=r.zoomIn,c=r.zoomOut,u=r.close,s=r.left,d=r.right,p=ref(1),f=ref(0),v=useFrameSetState(initialPosition),m=_slicedToArray(v,2),h=m[0],g=m[1],y=function(){return n("close")},b=ref(),k=reactive({originX:0,originY:0,deltaX:0,deltaY:0}),x=ref(!1),w=context.inject(),C=w.previewUrls,_=w.current,S=w.isPreviewGroup,P=w.setCurrent,N=computed((function(){return C.value.size})),O=computed((function(){return Array.from(C.value.keys())})),T=computed((function(){return O.value.indexOf(_.value)})),V=computed((function(){return S.value?C.value.get(_.value):e.src})),D=computed((function(){return S.value&&N.value>1})),A=ref({wheelDirection:0}),$=function(){p.value=1,f.value=0,g(initialPosition),n("afterClose")},F=function(){p.value++,g(initialPosition)},I=function(){p.value>1&&p.value--,g(initialPosition)},M=function(e){e.preventDefault(),e.stopPropagation(),T.value>0&&P(O.value[T.value-1])},j=function(e){e.preventDefault(),e.stopPropagation(),T.value0&&P(O.value[T.value-1]):t.keyCode===KeyCode.RIGHT&&T.value0?I():e<0&&F()}))})),onUnmounted((function(){G()})),function(){var t=e.visible,n=e.prefixCls,r=e.rootClassName;return createVNode(DialogWrap,_objectSpread2(_objectSpread2({},a),{},{transitionName:"zoom",maskTransitionName:"fade",closable:!1,keyboard:!0,prefixCls:n,onClose:y,afterClose:$,visible:t,wrapClassName:E,rootClassName:r,getContainer:e.getContainer}),{default:function(){return[createVNode("ul",{class:"".concat(e.prefixCls,"-operations")},[B.map((function(t){var n=t.icon,a=t.onClick,r=t.type,o=t.disabled;return createVNode("li",{class:classNames(R,_defineProperty$k({},"".concat(e.prefixCls,"-operations-operation-disabled"),o&&(null==o?void 0:o.value))),onClick:a,key:r},[cloneVNode(n,{class:L})])}))]),createVNode("div",{class:"".concat(e.prefixCls,"-img-wrapper"),style:{transform:"translate3d(".concat(h.x,"px, ").concat(h.y,"px, 0)")}},[createVNode("img",{onMousedown:U,onDblclick:W,ref:b,class:"".concat(e.prefixCls,"-img"),src:V.value,alt:e.alt,style:{transform:"scale3d(".concat(p.value,", ").concat(p.value,", 1) rotate(").concat(f.value,"deg)")}},null)]),D.value&&createVNode("div",{class:classNames("".concat(e.prefixCls,"-switch-left"),_defineProperty$k({},"".concat(e.prefixCls,"-switch-left-disabled"),T.value<=0)),onClick:M},[s]),D.value&&createVNode("div",{class:classNames("".concat(e.prefixCls,"-switch-right"),_defineProperty$k({},"".concat(e.prefixCls,"-switch-right-disabled"),T.value>=N.value-1)),onClick:j},[d])]}})}}}),Preview$1=Preview,__rest$c=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r100?100:e}function getSuccessPercent(e){var t=e.success,n=e.successPercent;return t&&"progress"in t&&(devWarning(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),n=t.progress),t&&"percent"in t&&(n=t.percent),n}var __rest$b=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5?arguments[5]:void 0,l=50-a/2,i=0,c=-l,u=0,s=-2*l;switch(o){case"left":i=-l,c=0,u=2*l,s=0;break;case"right":i=l,c=0,u=-2*l,s=0;break;case"bottom":c=l,s=2*l}var d="M 50,50 m ".concat(i,",").concat(c,"\n a ").concat(l,",").concat(l," 0 1 1 ").concat(u,",").concat(-s,"\n a ").concat(l,",").concat(l," 0 1 1 ").concat(-u,",").concat(s),p=2*Math.PI*l,f={stroke:n,strokeDasharray:"".concat(t/100*(p-r),"px ").concat(p,"px"),strokeDashoffset:"-".concat(r/2+e/100*(p-r),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:f}}var VCCircle=defineComponent({name:"VCCircle",props:initDefaultProps(propTypes,defaultProps),setup:function(e){var t=ref(gradientSeed+=1),n=computed((function(){return toArray$1(e.percent)})),a=computed((function(){return toArray$1(e.strokeColor)})),r=useRefs(),o=_slicedToArray(r,2),l=o[0],i=o[1];useTransitionDuration(i);var c=function(){var r=e.prefixCls,o=e.strokeWidth,i=e.strokeLinecap,c=e.gapDegree,u=e.gapPosition,s=0;return n.value.map((function(e,n){var d=a.value[n]||a.value[a.value.length-1],p="[object Object]"===Object.prototype.toString.call(d)?"url(#".concat(r,"-gradient-").concat(t.value,")"):"",f=getPathStyles(s,e,d,o,c,u),v=f.pathString,m=f.pathStyle;s+=e;var h={key:n,d:v,stroke:p,"stroke-linecap":i,"stroke-width":o,opacity:0===e?0:1,"fill-opacity":"0",class:"".concat(r,"-circle-path"),style:m};return createVNode("path",_objectSpread2({ref:l(n)},h),null)}))};return function(){var n=e.prefixCls,r=e.strokeWidth,o=e.trailWidth,l=e.gapDegree,i=e.gapPosition,u=e.trailColor,s=e.strokeLinecap;e.strokeColor;var d=__rest$a(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),p=getPathStyles(0,100,u,r,l,i),f=p.pathString,v=p.pathStyle;delete d.percent;var m=a.value.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),h={d:f,stroke:u,"stroke-linecap":s,"stroke-width":o||r,"fill-opacity":"0",class:"".concat(n,"-circle-trail"),style:v};return createVNode("svg",_objectSpread2({class:"".concat(n,"-circle"),viewBox:"0 0 100 100"},d),[m&&createVNode("defs",null,[createVNode("linearGradient",{id:"".concat(n,"-gradient-").concat(t.value),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(m).sort((function(e,t){return stripPercentToNumber(e)-stripPercentToNumber(t)})).map((function(e,t){return createVNode("stop",{key:t,offset:e,"stop-color":m[e]},null)}))])]),createVNode("path",h,null),c().reverse()])}}});function getPercentage(e){var t=e.percent,n=validProgress(getSuccessPercent({success:e.success,successPercent:e.successPercent}));return[n,validProgress(validProgress(t)-n)]}function getStrokeColor(e){var t=e.success,n=void 0===t?{}:t,a=e.strokeColor;return[n.strokeColor||presetPrimaryColors.green,a||null]}var Circle=defineComponent({name:"Circle",inheritAttrs:!1,props:progressProps(),setup:function(e,t){var n=t.slots,a=computed((function(){return e.gapDegree||0===e.gapDegree?e.gapDegree:"dashboard"===e.type?75:void 0})),r=computed((function(){var t=e.width||120;return{width:"number"==typeof t?"".concat(t,"px"):t,height:"number"==typeof t?"".concat(t,"px"):t,fontSize:"".concat(.15*t+6,"px")}})),o=computed((function(){return e.strokeWidth||6})),l=computed((function(){return e.gapPosition||"dashboard"===e.type&&"bottom"||"top"})),i=computed((function(){return getPercentage(e)})),c=computed((function(){return"[object Object]"===Object.prototype.toString.call(e.strokeColor)})),u=computed((function(){return getStrokeColor({success:e.success,strokeColor:e.strokeColor})})),s=computed((function(){var t;return _defineProperty$k(t={},"".concat(e.prefixCls,"-inner"),!0),_defineProperty$k(t,"".concat(e.prefixCls,"-circle-gradient"),c.value),t}));return function(){var t;return createVNode("div",{class:s.value,style:r.value},[createVNode(VCCircle,{percent:i.value,strokeWidth:o.value,trailWidth:o.value,strokeColor:u.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:a.value,gapPosition:l.value},null),null===(t=n.default)||void 0===t?void 0:t.call(n)])}}}),stepsProps=function(){return _extends(_extends({},progressProps()),{steps:Number,size:{type:String},strokeColor:String,trailColor:String})},Steps$2=defineComponent({name:"Steps",props:stepsProps(),setup:function(e,t){var n=t.slots,a=computed((function(){return Math.round(e.steps*((e.percent||0)/100))})),r=computed((function(){return"small"===e.size?2:14})),o=computed((function(){for(var t=e.steps,n=e.strokeWidth,o=void 0===n?8:n,l=e.strokeColor,i=e.trailColor,c=e.prefixCls,u=[],s=0;s=100?"success":t||"normal"}));return function(){var t,a=e.type,o=e.steps,i=e.strokeColor,u=e.title,s=function(){var t,a=e.showInfo,o=e.format,l=e.type,i=e.percent,u=e.title,s=getSuccessPercent(e);if(!a)return null;var d=o||(null==n?void 0:n.format)||function(e){return"".concat(e,"%")},p="line"===l;return o||(null==n?void 0:n.format)||"exception"!==c.value&&"success"!==c.value?t=d(validProgress(i),validProgress(s)):"exception"===c.value?t=createVNode(p?CloseCircleFilled:CloseOutlined,null,null):"success"===c.value&&(t=createVNode(p?CheckCircleFilled:CheckOutlined,null,null)),createVNode("span",{class:"".concat(r.value,"-text"),title:void 0===u&&"string"==typeof t?t:void 0},[t])}();"line"===a?t=o?createVNode(Steps$2,_objectSpread2(_objectSpread2({},e),{},{strokeColor:"string"==typeof i?i:void 0,prefixCls:r.value,steps:o}),{default:function(){return[s]}}):createVNode(Line,_objectSpread2(_objectSpread2({},e),{},{prefixCls:r.value}),{default:function(){return[s]}}):"circle"!==a&&"dashboard"!==a||(t=createVNode(Circle,_objectSpread2(_objectSpread2({},e),{},{prefixCls:r.value}),{default:function(){return[s]}}));var d=_extends(_extends({},l.value),_defineProperty$k({},"".concat(r.value,"-status-").concat(c.value),!0));return createVNode("div",{class:d,title:u},[t])}}}),Progress=withInstall(Progress$1);function getScroll(e){var t=e.pageXOffset,n="scrollLeft";if("number"!=typeof t){var a=e.document;"number"!=typeof(t=a.documentElement[n])&&(t=a.body[n])}return t}function getClientPosition(e){var t,n,a=e.ownerDocument,r=a.body,o=a&&a.documentElement,l=e.getBoundingClientRect();return t=l.left,n=l.top,{left:t-=o.clientLeft||r.clientLeft||0,top:n-=o.clientTop||r.clientTop||0}}function getOffsetLeft(e){var t=getClientPosition(e),n=e.ownerDocument,a=n.defaultView||n.parentWindow;return t.left+=getScroll(a),t.left}var starProps={value:Number,index:Number,prefixCls:String,allowHalf:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},character:PropTypes.any,characterRender:Function,focused:{type:Boolean,default:void 0},count:Number,onClick:Function,onHover:Function},Star=defineComponent({name:"Star",inheritAttrs:!1,props:starProps,emits:["hover","click"],setup:function(e,t){var n=t.slots,a=t.emit,r=function(t){var n=e.index;a("hover",t,n)},o=function(t){var n=e.index;a("click",t,n)},l=function(t){var n=e.index;13===t.keyCode&&a("click",t,n)},i=computed((function(){var t=e.prefixCls,n=e.index,a=e.value,r=e.allowHalf,o=e.focused,l=n+1,i=t;return 0===a&&0===n&&o?i+=" ".concat(t,"-focused"):r&&a+.5>=l&&au?"true":"false","aria-posinset":u+1,"aria-setsize":s,tabindex:t?-1:0},[createVNode("div",{class:"".concat(a,"-first")},[p]),createVNode("div",{class:"".concat(a,"-second")},[p])])]);return c&&(f=c(f,e)),f}}}),rateProps=function(){return{prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:PropTypes.any,autofocus:{type:Boolean,default:void 0},tabindex:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}},Rate=defineComponent({name:"ARate",inheritAttrs:!1,props:initDefaultProps(rateProps(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup:function(e,t){var n=t.slots,a=t.attrs,r=t.emit,o=t.expose,l=useConfigInject("rate",e),i=l.prefixCls,c=l.direction,u=useInjectFormItemContext(),s=ref(),d=useRefs(),p=_slicedToArray(d,2),f=p[0],v=p[1],m=reactive({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});watch((function(){return e.value}),(function(){m.value=e.value}));var h=function(t,n){var a="rtl"===c.value,r=t+1;if(e.allowHalf){var o=function(e){return findDOMNode(v.value.get(e))}(t),l=getOffsetLeft(o),i=o.clientWidth;(a&&n-l>i/2||!a&&n-l0&&!l||n===KeyCode.RIGHT&&m.value>0&&l?(m.value-=o?.5:1,g(m.value),t.preventDefault()):n===KeyCode.LEFT&&m.value0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");var l=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n&&a)for(var i=r;i<=o;i+=a)-1===l.indexOf(i)&&l.push(i);return l},Steps=function(e,t){var n=t.attrs,a=n.prefixCls,r=n.vertical,o=n.reverse,l=n.marks,i=n.dots,c=n.step,u=n.included,s=n.lowerBound,d=n.upperBound,p=n.max,f=n.min,v=n.dotStyle,m=n.activeDotStyle,h=p-f,g=calcPoints(r,l,i,c,f,p).map((function(e){var t,n="".concat(Math.abs(e-f)/h*100,"%"),l=!u&&e===d||u&&e<=d&&e>=s,i=_extends(_extends({},v),_defineProperty$k({},r?o?"top":"bottom":o?"right":"left",n));l&&(i=_extends(_extends({},i),m));var c=classNames((_defineProperty$k(t={},"".concat(a,"-dot"),!0),_defineProperty$k(t,"".concat(a,"-dot-active"),l),_defineProperty$k(t,"".concat(a,"-dot-reverse"),o),t));return createVNode("span",{class:c,style:i,key:e},null)}));return createVNode("div",{class:"".concat(a,"-step")},[g])};Steps.inheritAttrs=!1;var Steps$1=Steps,Marks=function(e,t){var n=t.attrs,a=t.slots,r=n.class,o=n.vertical,l=n.reverse,i=n.marks,c=n.included,u=n.upperBound,s=n.lowerBound,d=n.max,p=n.min,f=n.onClickLabel,v=Object.keys(i),m=a.mark,h=d-p,g=v.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var t,n="function"==typeof i[e]?i[e]():i[e],a="object"===_typeof(n)&&!isValidElement(n),d=a?n.label:n;if(!d&&0!==d)return null;m&&(d=m({point:e,label:d}));var v=!c&&e===u||c&&e<=u&&e>=s,g=classNames((_defineProperty$k(t={},"".concat(r,"-text"),!0),_defineProperty$k(t,"".concat(r,"-text-active"),v),t)),y=_defineProperty$k({marginBottom:"-50%"},l?"top":"bottom","".concat((e-p)/h*100,"%")),b=_defineProperty$k({transform:"translateX(".concat(l?"50%":"-50%",")"),msTransform:"translateX(".concat(l?"50%":"-50%",")")},l?"right":"left","".concat((e-p)/h*100,"%")),k=o?y:b,x=a?_extends(_extends({},k),n.style):k,w=_defineProperty$k({},supportsPassive?"onTouchstartPassive":"onTouchstart",(function(t){return f(t,e)}));return createVNode("span",_objectSpread2({class:g,style:x,key:e,onMousedown:function(t){return f(t,e)}},w),[d])}));return createVNode("div",{class:r},[g])};Marks.inheritAttrs=!1;var Marks$1=Marks,VcHandle=defineComponent({name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup:function(e,t){var n=t.attrs,a=t.emit,r=t.expose,o=ref(!1),l=ref(),i=function(){document.activeElement===l.value&&(o.value=!0)},c=function(e){o.value=!1,a("blur",e)},u=function(){o.value=!1},s=function(){var e;null===(e=l.value)||void 0===e||e.focus()},d=function(e){e.preventDefault(),s(),a("mousedown",e)};r({focus:s,blur:function(){var e;null===(e=l.value)||void 0===e||e.blur()},clickFocus:function(){o.value=!0,s()},ref:l});var p=null;onMounted((function(){p=addEventListenerWrap(document,"mouseup",i)})),onBeforeUnmount((function(){null==p||p.remove()}));var f=computed((function(){var t,n,a=e.vertical,r=e.offset,o=e.reverse;return a?(_defineProperty$k(t={},o?"top":"bottom","".concat(r,"%")),_defineProperty$k(t,o?"bottom":"top","auto"),_defineProperty$k(t,"transform",o?null:"translateY(+50%)"),t):(_defineProperty$k(n={},o?"right":"left","".concat(r,"%")),_defineProperty$k(n,o?"left":"right","auto"),_defineProperty$k(n,"transform","translateX(".concat(o?"+":"-","50%)")),n)}));return function(){var t,a=e.prefixCls,r=e.disabled,i=e.min,s=e.max,p=e.value,v=e.tabindex,m=e.ariaLabel,h=e.ariaLabelledBy,g=e.ariaValueTextFormatter,y=e.onMouseenter,b=e.onMouseleave,k=classNames(n.class,_defineProperty$k({},"".concat(a,"-handle-click-focused"),o.value)),x={"aria-valuemin":i,"aria-valuemax":s,"aria-valuenow":p,"aria-disabled":!!r},w=[n.style,f.value],C=v||0;(r||null===v)&&(C=null),g&&(t=g(p));var _=_extends(_extends(_extends(_extends({},n),{role:"slider",tabindex:C}),x),{class:k,onBlur:c,onKeydown:u,onMousedown:d,onMouseenter:y,onMouseleave:b,ref:l,style:w});return createVNode("div",_objectSpread2(_objectSpread2({},_),{},{"aria-label":m,"aria-labelledby":h,"aria-valuetext":t}),null)}}});function isEventFromHandle(e,t){try{return Object.keys(t).some((function(n){return e.target===t[n].ref}))}catch(n){return!1}}function isValueOutOfRange(e,t){var n=t.min,a=t.max;return ea}function isNotTouchEvent(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function getClosestPoint(e,t){var n=t.marks,a=t.step,r=t.min,o=t.max,l=Object.keys(n).map(parseFloat);if(null!==a){var i=Math.pow(10,getPrecision(a)),c=Math.floor((o*i-r*i)/(a*i)),u=Math.min((e-r)/a,c),s=Math.round(u)*a+r;l.push(s)}var d=l.map((function(t){return Math.abs(e-t)}));return l[d.indexOf(Math.min.apply(Math,_toConsumableArray(d)))]}function getPrecision(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function getMousePosition(e,t){var n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function getTouchPosition(e,t){var n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function getHandleCenterPosition(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function ensureValueInRange(e,t){var n=t.max,a=t.min;return e<=a?a:e>=n?n:e}function ensureValuePrecision(e,t){var n=t.step,a=isFinite(getClosestPoint(e,t))?getClosestPoint(e,t):0;return null===n?a:parseFloat(a.toFixed(getPrecision(n)))}function pauseEvent(e){e.stopPropagation(),e.preventDefault()}function calculateNextValue(e,t,n){var a={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},r=a[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),o=Object.keys(n.marks)[r];return n.step?a[e](t,n.step):Object.keys(n.marks).length&&n.marks[o]?n.marks[o]:t}function getKeyboardValueMutator(e,t,n){var a="increase",r="decrease",o=a;switch(e.keyCode){case KeyCode.UP:o=t&&n?r:a;break;case KeyCode.RIGHT:o=!t&&n?r:a;break;case KeyCode.DOWN:o=t&&n?a:r;break;case KeyCode.LEFT:o=!t&&n?a:r;break;case KeyCode.END:return function(e,t){return t.max};case KeyCode.HOME:return function(e,t){return t.min};case KeyCode.PAGE_UP:return function(e,t){return e+2*t.step};case KeyCode.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}return function(e,t){return calculateNextValue(o,e,t)}}var __rest$9=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r=2&&!c&&!i.map((function(e,t){var n=!!t||e>=l[t];return t===i.length-1?e<=l[t]:n})).some((function(e){return!e})),this.dragTrack)this.dragOffset=n,this.startBounds=_toConsumableArray(l);else{if(c){var u=getHandleCenterPosition(o,e.target);this.dragOffset=n-u,n=u}else this.dragOffset=0;this.onStart(n)}},onMouseDown:function(e){if(0===e.button){this.removeDocumentEvents();var t=getMousePosition(this.$props.vertical,e);this.onDown(e,t),this.addDocumentMouseEvents()}},onTouchStart:function(e){if(!isNotTouchEvent(e)){var t=getTouchPosition(this.vertical,e);this.onDown(e,t),this.addDocumentTouchEvents(),pauseEvent(e)}},onFocus:function(e){var t=this.vertical;if(isEventFromHandle(e,this.handlesRefs)&&!this.dragTrack){var n=getHandleCenterPosition(t,e.target);this.dragOffset=0,this.onStart(n),pauseEvent(e),this.$emit("focus",e)}},onBlur:function(e){this.dragTrack||this.onEnd(),this.$emit("blur",e)},onMouseUp:function(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove:function(e){if(this.sliderRef){var t=getMousePosition(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)}else this.onEnd()},onTouchMove:function(e){if(!isNotTouchEvent(e)&&this.sliderRef){var t=getTouchPosition(this.vertical,e);this.onMove(e,t-this.dragOffset,this.dragTrack,this.startBounds)}else this.onEnd()},onKeyDown:function(e){this.sliderRef&&isEventFromHandle(e,this.handlesRefs)&&this.onKeyboard(e)},onClickMarkLabel:function(e,t){var n=this;e.stopPropagation(),this.onChange({sValue:t}),this.setState({sValue:t},(function(){return n.onEnd(!0)}))},getSliderStart:function(){var e=this.sliderRef,t=this.vertical,n=this.reverse,a=e.getBoundingClientRect();return t?n?a.bottom:a.top:window.pageXOffset+(n?a.right:a.left)},getSliderLength:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.vertical?t.height:t.width},addDocumentTouchEvents:function(){this.onTouchMoveListener=addEventListenerWrap(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=addEventListenerWrap(this.document,"touchend",this.onEnd)},addDocumentMouseEvents:function(){this.onMouseMoveListener=addEventListenerWrap(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=addEventListenerWrap(this.document,"mouseup",this.onEnd)},removeDocumentEvents:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus:function(){var e;this.$props.disabled||null===(e=this.handlesRefs[0])||void 0===e||e.focus()},blur:function(){var e=this;this.$props.disabled||Object.keys(this.handlesRefs).forEach((function(t){var n,a;null===(a=null===(n=e.handlesRefs[t])||void 0===n?void 0:n.blur)||void 0===a||a.call(n)}))},calcValue:function(e){var t=this.vertical,n=this.min,a=this.max,r=Math.abs(Math.max(e,0)/this.getSliderLength());return t?(1-r)*(a-n)+n:r*(a-n)+n},calcValueByPos:function(e){var t=(this.reverse?-1:1)*(e-this.getSliderStart());return this.trimAlignValue(this.calcValue(t))},calcOffset:function(e){var t=this.min,n=(e-t)/(this.max-t);return Math.max(0,100*n)},saveSlider:function(e){this.sliderRef=e},saveHandle:function(e,t){this.handlesRefs[e]=t}},render:function(){var e,t=this.prefixCls,n=this.marks,a=this.dots,r=this.step,o=this.included,l=this.disabled,i=this.vertical,c=this.reverse,u=this.min,s=this.max,d=this.maximumTrackStyle,p=this.railStyle,f=this.dotStyle,v=this.activeDotStyle,m=this.id,h=this.$attrs,g=h.class,y=h.style,b=this.renderSlider(),k=b.tracks,x=b.handles,w=classNames(t,g,(_defineProperty$k(e={},"".concat(t,"-with-marks"),Object.keys(n).length),_defineProperty$k(e,"".concat(t,"-disabled"),l),_defineProperty$k(e,"".concat(t,"-vertical"),i),e)),C={vertical:i,marks:n,included:o,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:s,min:u,reverse:c,class:"".concat(t,"-mark"),onClickLabel:l?noop$3:this.onClickMarkLabel},_=_defineProperty$k({},supportsPassive?"onTouchstartPassive":"onTouchstart",l?noop$3:this.onTouchStart);return createVNode("div",_objectSpread2(_objectSpread2({id:m,ref:this.saveSlider,tabindex:"-1",class:w},_),{},{onMousedown:l?noop$3:this.onMouseDown,onMouseup:l?noop$3:this.onMouseUp,onKeydown:l?noop$3:this.onKeyDown,onFocus:l?noop$3:this.onFocus,onBlur:l?noop$3:this.onBlur,style:y}),[createVNode("div",{class:"".concat(t,"-rail"),style:_extends(_extends({},d),p)},null),k,createVNode(Steps$1,{prefixCls:t,vertical:i,reverse:c,marks:n,dots:a,step:r,included:o,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:s,min:u,dotStyle:f,activeDotStyle:v},null),x,createVNode(Marks$1,C,{mark:this.$slots.mark}),getSlot(this)])}})}var Slider$2=defineComponent({name:"Slider",mixins:[BaseMixin],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:PropTypes.oneOfType([PropTypes.number,PropTypes.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data:function(){var e=void 0!==this.defaultValue?this.defaultValue:this.min,t=void 0!==this.value?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler:function(e){this.setChangeValue(e)},deep:!0},min:function(){var e=this.sValue;this.setChangeValue(e)},max:function(){var e=this.sValue;this.setChangeValue(e)}},methods:{setChangeValue:function(e){var t=void 0!==e?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),isValueOutOfRange(t,this.$props)&&this.$emit("change",n))},onChange:function(e){var t=!hasProp(this,"value"),n=e.sValue>this.max?_extends(_extends({},e),{sValue:this.max}):e;t&&this.setState(n);var a=n.sValue;this.$emit("change",a)},onStart:function(e){this.setState({dragging:!0});var t=this.sValue;this.$emit("beforeChange",t);var n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd:function(e){var t=this.dragging;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove:function(e,t){pauseEvent(e);var n=this.sValue,a=this.calcValueByPos(t);a!==n&&this.onChange({sValue:a})},onKeyboard:function(e){var t=this.$props,n=t.reverse,a=getKeyboardValueMutator(e,t.vertical,n);if(a){pauseEvent(e);var r=this.sValue,o=a(r,this.$props),l=this.trimAlignValue(o);if(l===r)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound:function(){var e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound:function(){return this.$data.sValue1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=_extends(_extends({},this.$props),t),a=ensureValueInRange(e,n);return ensureValuePrecision(a,n)},getTrack:function(e){var t=e.prefixCls,n=e.reverse,a=e.vertical,r=e.included,o=e.minimumTrackStyle,l=e.mergedTrackStyle,i=e.length,c=e.offset;return createVNode(Track$1,{class:"".concat(t,"-track"),vertical:a,included:r,offset:c,reverse:n,length:i,style:_extends(_extends({},o),l)},null)},renderSlider:function(){var e=this,t=this.prefixCls,n=this.vertical,a=this.included,r=this.disabled,o=this.minimumTrackStyle,l=this.trackStyle,i=this.handleStyle,c=this.tabindex,u=this.ariaLabelForHandle,s=this.ariaLabelledByForHandle,d=this.ariaValueTextFormatterForHandle,p=this.min,f=this.max,v=this.startPoint,m=this.reverse,h=this.handle,g=this.defaultHandle,y=h||g,b=this.sValue,k=this.dragging,x=this.calcOffset(b),w=y({class:"".concat(t,"-handle"),prefixCls:t,vertical:n,offset:x,value:b,dragging:k,disabled:r,min:p,max:f,reverse:m,index:0,tabindex:c,ariaLabel:u,ariaLabelledBy:s,ariaValueTextFormatter:d,style:i[0]||i,ref:function(t){return e.saveHandle(0,t)},onFocus:this.onFocus,onBlur:this.onBlur}),C=void 0!==v?this.calcOffset(v):0,_=l[0]||l;return{tracks:this.getTrack({prefixCls:t,reverse:m,vertical:n,included:a,offset:C,minimumTrackStyle:o,mergedTrackStyle:_,length:x-C}),handles:w}}}}),VcSlider=createSlider(Slider$2),_trimAlignValue=function(e){var t=e.value,n=e.handle,a=e.bounds,r=e.props,o=r.allowCross,l=r.pushable,i=Number(l),c=ensureValueInRange(t,r),u=c;return o||null==n||void 0===a||(n>0&&c<=a[n-1]+i&&(u=a[n-1]+i),n=a[n+1]-i&&(u=a[n+1]-i)),ensureValuePrecision(u,r)},rangeProps={defaultValue:PropTypes.arrayOf(PropTypes.number),value:PropTypes.arrayOf(PropTypes.number),count:Number,pushable:withUndefined(PropTypes.oneOfType([PropTypes.looseBool,PropTypes.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:PropTypes.arrayOf(PropTypes.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},Range=defineComponent({name:"Range",mixins:[BaseMixin],inheritAttrs:!1,props:initDefaultProps(rangeProps,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data:function(){var e=this,t=this.count,n=this.min,a=this.max,r=Array.apply(void 0,_toConsumableArray(Array(t+1))).map((function(){return n})),o=hasProp(this,"defaultValue")?this.defaultValue:r,l=this.value;void 0===l&&(l=o);var i=l.map((function(t,n){return _trimAlignValue({value:t,handle:n,props:e.$props})}));return{sHandle:null,recent:i[0]===a?0:i.length-1,bounds:i}},watch:{value:{handler:function(e){var t=this.bounds;this.setChangeValue(e||t)},deep:!0},min:function(){var e=this.value;this.setChangeValue(e||this.bounds)},max:function(){var e=this.value;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue:function(e){var t=this,n=this.bounds,a=e.map((function(e,a){return _trimAlignValue({value:e,handle:a,bounds:n,props:t.$props})}));if(n.length===a.length){if(a.every((function(e,t){return e===n[t]})))return null}else a=e.map((function(e,n){return _trimAlignValue({value:e,handle:n,props:t.$props})}));if(this.setState({bounds:a}),e.some((function(e){return isValueOutOfRange(e,t.$props)}))){var r=e.map((function(e){return ensureValueInRange(e,t.$props)}));this.$emit("change",r)}},onChange:function(e){if(!hasProp(this,"value"))this.setState(e);else{var t={};["sHandle","recent"].forEach((function(n){void 0!==e[n]&&(t[n]=e[n])})),Object.keys(t).length&&this.setState(t)}var n=_extends(_extends({},this.$data),e).bounds;this.$emit("change",n)},positionGetValue:function(e){var t=this.getValue(),n=this.calcValueByPos(e),a=this.getClosestBound(n),r=this.getBoundNeedMoving(n,a);if(n===t[r])return null;var o=_toConsumableArray(t);return o[r]=n,o},onStart:function(e){var t=this.bounds;this.$emit("beforeChange",t);var n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;var a=this.getClosestBound(n);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(n,a),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),n!==t[this.prevMovedHandleIndex]){var r=_toConsumableArray(t);r[this.prevMovedHandleIndex]=n,this.onChange({bounds:r})}},onEnd:function(e){var t=this.sHandle;this.removeDocumentEvents(),t||(this.dragTrack=!1),(null!==t||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove:function(e,t,n,a){pauseEvent(e);var r=this.$data,o=this.$props,l=o.max||100,i=o.min||0;if(n){var c=o.vertical?-t:t;c=o.reverse?-c:c;var u=l-Math.max.apply(Math,_toConsumableArray(a)),s=i-Math.min.apply(Math,_toConsumableArray(a)),d=Math.min(Math.max(c/(this.getSliderLength()/100),s),u),p=a.map((function(e){return Math.floor(Math.max(Math.min(e+d,l),i))}));r.bounds.map((function(e,t){return e===p[t]})).some((function(e){return!e}))&&this.onChange({bounds:p})}else{var f=this.bounds,v=this.sHandle,m=this.calcValueByPos(t);m!==f[v]&&this.moveTo(m)}},onKeyboard:function(e){var t=this.$props,n=t.reverse,a=getKeyboardValueMutator(e,t.vertical,n);if(a){pauseEvent(e);var r=this.bounds,o=this.sHandle,l=r[null===o?this.recent:o],i=a(l,this.$props),c=_trimAlignValue({value:i,handle:o,bounds:r,props:this.$props});if(c===l)return;this.moveTo(c,!0)}},getClosestBound:function(e){for(var t=this.bounds,n=0,a=1;a=t[a]&&(n=a);return Math.abs(t[n+1]-e)=a.length||r<0)return!1;var o=t+n,l=a[r],i=this.pushable,c=Number(i),u=n*(e[o]-l);return!!this.pushHandle(e,o,n,c-u)&&(e[t]=l,!0)},trimAlignValue:function(e){var t=this.sHandle,n=this.bounds;return _trimAlignValue({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict:function(e,t,n){var a=n.allowCross,r=n.pushable,o=this.$data||{},l=o.bounds;if(e=void 0===e?o.sHandle:e,r=Number(r),!a&&null!=e&&void 0!==l){if(e>0&&t<=l[e-1]+r)return l[e-1]+r;if(e=l[e+1]-r)return l[e+1]-r}return t},getTrack:function(e){var t=e.bounds,n=e.prefixCls,a=e.reverse,r=e.vertical,o=e.included,l=e.offsets,i=e.trackStyle;return t.slice(0,-1).map((function(e,t){var c,u=t+1,s=classNames((_defineProperty$k(c={},"".concat(n,"-track"),!0),_defineProperty$k(c,"".concat(n,"-track-").concat(u),!0),c));return createVNode(Track$1,{class:s,vertical:r,reverse:a,included:o,offset:l[u-1],length:l[u]-l[u-1],style:i[t],key:u},null)}))},renderSlider:function(){var e=this,t=this.sHandle,n=this.bounds,a=this.prefixCls,r=this.vertical,o=this.included,l=this.disabled,i=this.min,c=this.max,u=this.reverse,s=this.handle,d=this.defaultHandle,p=this.trackStyle,f=this.handleStyle,v=this.tabindex,m=this.ariaLabelGroupForHandles,h=this.ariaLabelledByGroupForHandles,g=this.ariaValueTextFormatterGroupForHandles,y=s||d,b=n.map((function(t){return e.calcOffset(t)})),k="".concat(a,"-handle"),x=n.map((function(n,o){var s,d=v[o]||0;(l||null===v[o])&&(d=null);var p=t===o;return y({class:classNames((s={},_defineProperty$k(s,k,!0),_defineProperty$k(s,"".concat(k,"-").concat(o+1),!0),_defineProperty$k(s,"".concat(k,"-dragging"),p),s)),prefixCls:a,vertical:r,dragging:p,offset:b[o],value:n,index:o,tabindex:d,min:i,max:c,reverse:u,disabled:l,style:f[o],ref:function(t){return e.saveHandle(o,t)},onFocus:e.onFocus,onBlur:e.onBlur,ariaLabel:m[o],ariaLabelledBy:h[o],ariaValueTextFormatter:g[o]})}));return{tracks:this.getTrack({bounds:n,prefixCls:a,reverse:u,vertical:r,included:o,offsets:b,trackStyle:p}),handles:x}}}}),VcRange=createSlider(Range),SliderTooltip=defineComponent({name:"SliderTooltip",inheritAttrs:!1,props:tooltipProps(),setup:function(e,t){var n=t.attrs,a=t.slots,r=ref(null),o=ref(null);function l(){wrapperRaf.cancel(o.value),o.value=null}var i=function(){l(),e.visible&&(o.value=wrapperRaf((function(){var e;null===(e=r.value)||void 0===e||e.forcePopupAlign(),o.value=null})))};return watch([function(){return e.visible},function(){return e.title}],(function(){i()}),{flush:"post",immediate:!0}),onActivated((function(){i()})),onBeforeUnmount((function(){l()})),function(){return createVNode(Tooltip,_objectSpread2(_objectSpread2({ref:r},e),n),a)}}}),__rest$8=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,a=t.length;if(1!==Math.abs(n-a))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var a=t.filter((function(e){return!n.has(e)}));return 1===a.length?a[0]:null}return n ").concat(t);return t}var NodeList=defineComponent({name:"NodeList",inheritAttrs:!1,props:nodeListProps,setup:function(e,t){var n=t.expose,a=t.attrs,r=ref(),o=ref(),l=useInjectKeysState(),i=l.expandedKeys,c=l.flattenNodes;n({scrollTo:function(e){r.value.scrollTo(e)},getIndentWidth:function(){return o.value.offsetWidth}});var u=shallowRef(c.value),s=shallowRef([]),d=ref(null);function p(){u.value=c.value,s.value=[],d.value=null,e.onListChangeEnd()}var f=useInjectTreeContext();watch([function(){return i.value.slice()},c],(function(t,n){var a=_slicedToArray(t,2),r=a[0],o=a[1],l=_slicedToArray(n,2),i=l[0],c=l[1],p=findExpandedKeys(i,r);if(null!==p.key){var f=e.virtual,v=e.height,m=e.itemHeight;if(p.add){var h=c.findIndex((function(e){return e.key===p.key})),g=getMinimumRangeTransitionRange(getExpandRange(c,o,p.key),f,v,m),y=c.slice();y.splice(h+1,0,MotionFlattenData),u.value=y,s.value=g,d.value="show"}else{var b=o.findIndex((function(e){return e.key===p.key})),k=getMinimumRangeTransitionRange(getExpandRange(o,c,p.key),f,v,m),x=o.slice();x.splice(b+1,0,MotionFlattenData),u.value=x,s.value=k,d.value="hide"}}else c!==o&&(u.value=o)})),watch((function(){return f.value.dragging}),(function(e){e||p()}));var v=computed((function(){return void 0===e.motion?u.value:c.value})),m=function(){e.onActiveChange(null)};return function(){var t=_extends(_extends({},e),a),n=t.prefixCls;t.selectable,t.checkable;var l=t.disabled,i=t.motion,c=t.height,u=t.itemHeight,f=t.virtual,h=t.focusable,g=t.activeItem,y=t.focused,b=t.tabindex,k=t.onKeydown,x=t.onFocus,w=t.onBlur,C=t.onListChangeStart;t.onListChangeEnd;var _=__rest$6(t,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return createVNode(Fragment,null,[y&&g&&createVNode("span",{style:HIDDEN_STYLE$1,"aria-live":"assertive"},[getAccessibilityPath(g)]),createVNode("div",null,[createVNode("input",{style:HIDDEN_STYLE$1,disabled:!1===h||l,tabindex:!1!==h?b:null,onKeydown:k,onFocus:x,onBlur:w,value:"",onChange:noop$2,"aria-label":"for screen reader"},null)]),createVNode("div",{class:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[createVNode("div",{class:"".concat(n,"-indent")},[createVNode("div",{ref:o,class:"".concat(n,"-indent-unit")},null)])]),createVNode(List$1,_objectSpread2(_objectSpread2({},omit(_,["onActiveChange"])),{},{data:v.value,itemKey:itemKey,height:c,fullHeight:!1,virtual:f,itemHeight:u,prefixCls:"".concat(n,"-list"),ref:r,onVisibleChange:function(e,t){var n=new Set(e);t.filter((function(e){return!n.has(e)})).some((function(e){return itemKey(e)===MOTION_KEY}))&&p()}}),{default:function(e){var t=e.pos,n=__rest$6(e.data,[]),a=e.title,r=e.key,o=e.isStart,l=e.isEnd,c=getKey(r,t);return delete n.key,delete n.children,createVNode(MotionTreeNode,_objectSpread2(_objectSpread2({},n),{},{eventKey:c,title:a,active:!!g&&r===g.key,data:e.data,isStart:o,isEnd:l,motion:i,motionNodes:r===MOTION_KEY?s.value:null,motionType:d.value,onMotionStart:C,onMotionEnd:p,onMousemove:m}),null)}})])}}});function DropIndicator(e){var t=e.dropPosition,n=e.dropLevelOffset,a=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"".concat(2,"px")};switch(t){case-1:r.top=0,r.left="".concat(-n*a,"px");break;case 1:r.bottom=0,r.left="".concat(-n*a,"px");break;case 0:r.bottom=0,r.left="".concat(a)}return createVNode("div",{style:r},null)}var MAX_RETRY_TIMES=10,Tree$2=defineComponent({name:"Tree",inheritAttrs:!1,slots:["checkable","title","icon","titleRender"],props:initDefaultProps(treeProps$1(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:DropIndicator,allowDrop:function(){return!0}}),setup:function(e,t){var n=t.attrs,a=t.slots,r=t.expose,o=ref(!1),l={},i=ref(),c=shallowRef([]),u=shallowRef([]),s=shallowRef([]),d=shallowRef([]),p=shallowRef([]),f=shallowRef([]),v={},m=reactive({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),h=shallowRef([]);watch([function(){return e.treeData},function(){return e.children}],(function(){h.value=void 0!==e.treeData?toRaw(e.treeData).slice():convertTreeToData(toRaw(e.children))}),{immediate:!0,deep:!0});var g=shallowRef({}),y=ref(!1),b=ref(null),k=ref(!1),x=computed((function(){return fillFieldNames$1(e.fieldNames)})),w=ref(),C=null,_=null,S=null,P=computed((function(){return{expandedKeysSet:N.value,selectedKeysSet:O.value,loadedKeysSet:T.value,loadingKeysSet:V.value,checkedKeysSet:D.value,halfCheckedKeysSet:A.value,dragOverNodeKey:m.dragOverNodeKey,dropPosition:m.dropPosition,keyEntities:g.value}})),N=computed((function(){return new Set(f.value)})),O=computed((function(){return new Set(c.value)})),T=computed((function(){return new Set(d.value)})),V=computed((function(){return new Set(p.value)})),D=computed((function(){return new Set(u.value)})),A=computed((function(){return new Set(s.value)}));watchEffect((function(){if(h.value){var e=convertDataToEntities(h.value,{fieldNames:x.value});g.value=_extends(_defineProperty$k({},MOTION_KEY,MotionEntity),e.keyEntities)}}));var $=!1;watch([function(){return e.expandedKeys},function(){return e.autoExpandParent},g],(function(t,n){var a=_slicedToArray(t,2);a[0];var r=a[1],o=_slicedToArray(n,2);o[0];var l=o[1],i=f.value;if(void 0!==e.expandedKeys||$&&r!==l)i=e.autoExpandParent||!$&&e.defaultExpandParent?conductExpandParent(e.expandedKeys,g.value):e.expandedKeys;else if(!$&&e.defaultExpandAll){var c=_extends({},g.value);delete c[MOTION_KEY],i=Object.keys(c).map((function(e){return c[e].key}))}else!$&&e.defaultExpandedKeys&&(i=e.autoExpandParent||e.defaultExpandParent?conductExpandParent(e.defaultExpandedKeys,g.value):e.defaultExpandedKeys);i&&(f.value=i),$=!0}),{immediate:!0});var F=shallowRef([]);watchEffect((function(){F.value=flattenTreeData(h.value,f.value,x.value)})),watchEffect((function(){e.selectable&&(void 0!==e.selectedKeys?c.value=calcSelectedKeys(e.selectedKeys,e):!$&&e.defaultSelectedKeys&&(c.value=calcSelectedKeys(e.defaultSelectedKeys,e)))}));var I=useMaxLevel(g),M=I.maxLevel,j=I.levelEntities;watchEffect((function(){var t;if(e.checkable&&(void 0!==e.checkedKeys?t=parseCheckedKeys(e.checkedKeys)||{}:!$&&e.defaultCheckedKeys?t=parseCheckedKeys(e.defaultCheckedKeys)||{}:h.value&&(t=parseCheckedKeys(e.checkedKeys)||{checkedKeys:u.value,halfCheckedKeys:s.value}),t)){var n=t,a=n.checkedKeys,r=void 0===a?[]:a,o=n.halfCheckedKeys,l=void 0===o?[]:o;if(!e.checkStrictly){var i=conductCheck(r,!0,g.value,M.value,j.value);r=i.checkedKeys,l=i.halfCheckedKeys}u.value=r,s.value=l}})),watchEffect((function(){e.loadedKeys&&(d.value=e.loadedKeys)}));var E=function(){_extends(m,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},R=function(e){w.value.scrollTo(e)};watch((function(){return e.activeKey}),(function(){void 0!==e.activeKey&&(b.value=e.activeKey)}),{immediate:!0}),watch(b,(function(e){nextTick((function(){null!==e&&R({key:e})}))}),{immediate:!0,flush:"post"});var L=function(t){void 0===e.expandedKeys&&(f.value=t)},B=function(){null!==m.draggingNodeKey&&_extends(m,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),C=null,S=null},K=function(t,n){var a=e.onDragend;m.dragOverNodeKey=null,B(),null==a||a({event:t,node:n.eventData}),_=null},U=function e(t){K(t,null),window.removeEventListener("dragend",e)},H=function(t,n){var a=e.onDragstart,r=n.eventKey,o=n.eventData;_=n,C={x:t.clientX,y:t.clientY};var l=arrDel(f.value,r);m.draggingNodeKey=r,m.dragChildrenKeys=getDragChildrenKeys(r,g.value),i.value=w.value.getIndentWidth(),L(l),window.addEventListener("dragend",U),a&&a({event:t,node:o})},z=function(t,n){var a=e.onDragenter,r=e.onExpand,o=e.allowDrop,c=e.direction,u=n.pos,s=n.eventKey;if(S!==s&&(S=s),_){var d=calcDropPosition(t,_,n,i.value,C,o,F.value,g.value,N.value,c),p=d.dropPosition,v=d.dropLevelOffset,h=d.dropTargetKey,y=d.dropContainerKey,b=d.dropTargetPos,k=d.dropAllowed,x=d.dragOverNodeKey;-1===m.dragChildrenKeys.indexOf(h)&&k?(l||(l={}),Object.keys(l).forEach((function(e){clearTimeout(l[e])})),_.eventKey!==n.eventKey&&(l[u]=window.setTimeout((function(){if(null!==m.draggingNodeKey){var e=f.value.slice(),a=g.value[n.eventKey];a&&(a.children||[]).length&&(e=arrAdd(f.value,n.eventKey)),L(e),r&&r(e,{node:n.eventData,expanded:!0,nativeEvent:t})}}),800)),_.eventKey!==h||0!==v?(_extends(m,{dragOverNodeKey:x,dropPosition:p,dropLevelOffset:v,dropTargetKey:h,dropContainerKey:y,dropTargetPos:b,dropAllowed:k}),a&&a({event:t,node:n.eventData,expandedKeys:f.value})):E()):E()}else E()},Y=function(t,n){var a=e.onDragover,r=e.allowDrop,o=e.direction;if(_){var l=calcDropPosition(t,_,n,i.value,C,r,F.value,g.value,N.value,o),c=l.dropPosition,u=l.dropLevelOffset,s=l.dropTargetKey,d=l.dropContainerKey,p=l.dropAllowed,f=l.dropTargetPos,v=l.dragOverNodeKey;-1===m.dragChildrenKeys.indexOf(s)&&p&&(_.eventKey===s&&0===u?null===m.dropPosition&&null===m.dropLevelOffset&&null===m.dropTargetKey&&null===m.dropContainerKey&&null===m.dropTargetPos&&!1===m.dropAllowed&&null===m.dragOverNodeKey||E():c===m.dropPosition&&u===m.dropLevelOffset&&s===m.dropTargetKey&&d===m.dropContainerKey&&f===m.dropTargetPos&&p===m.dropAllowed&&v===m.dragOverNodeKey||_extends(m,{dropPosition:c,dropLevelOffset:u,dropTargetKey:s,dropContainerKey:d,dropTargetPos:f,dropAllowed:p,dragOverNodeKey:v}),a&&a({event:t,node:n.eventData}))}},W=function(t,n){S!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(E(),S=null);var a=e.onDragleave;a&&a({event:t,node:n.eventData})},G=function(t,n){var a,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=m.dragChildrenKeys,l=m.dropPosition,i=m.dropTargetKey,c=m.dropTargetPos,u=m.dropAllowed;if(u){var s=e.onDrop;if(m.dragOverNodeKey=null,B(),null!==i){var d=_extends(_extends({},getTreeNodeProps(i,toRaw(P.value))),{active:(null===(a=ue.value)||void 0===a?void 0:a.key)===i,data:g.value[i].node});o.indexOf(i);var p=posToArr(c),f={event:t,node:convertNodePropsToEventData(d),dragNode:_?_.eventData:null,dragNodesKeys:[_.eventKey].concat(o),dropToGap:0!==l,dropPosition:l+Number(p[p.length-1])};r||null==s||s(f),_=null}}},q=function(t,n){var a=e.onClick;a&&a(t,n)},Q=function(t,n){var a=e.onDblclick;a&&a(t,n)},X=function(t,n){var a=c.value,r=e.onSelect,o=e.multiple,l=n.selected,i=n[x.value.key],u=!l;a=u?o?arrAdd(a,i):[i]:arrDel(a,i);var s=g.value,d=a.map((function(e){var t=s[e];return t?t.node:null})).filter((function(e){return e}));void 0===e.selectedKeys&&(c.value=a),r&&r(a,{event:"select",selected:u,node:n,selectedNodes:d,nativeEvent:t})},Z=function(t,n,a){var r,o=e.checkStrictly,l=e.onCheck,i=n[x.value.key],c={event:"check",node:n,checked:a,nativeEvent:t},d=g.value;if(o){var p=a?arrAdd(u.value,i):arrDel(u.value,i);r={checked:p,halfChecked:arrDel(s.value,i)},c.checkedNodes=p.map((function(e){return d[e]})).filter((function(e){return e})).map((function(e){return e.node})),void 0===e.checkedKeys&&(u.value=p)}else{var f=conductCheck([].concat(_toConsumableArray(u.value),[i]),!0,d,M.value,j.value),v=f.checkedKeys,m=f.halfCheckedKeys;if(!a){var h=new Set(v);h.delete(i);var y=conductCheck(Array.from(h),{checked:!1,halfCheckedKeys:m},d,M.value,j.value);v=y.checkedKeys,m=y.halfCheckedKeys}r=v,c.checkedNodes=[],c.checkedNodesPositions=[],c.halfCheckedKeys=m,v.forEach((function(e){var t=d[e];if(t){var n=t.node,a=t.pos;c.checkedNodes.push(n),c.checkedNodesPositions.push({node:n,pos:a})}})),void 0===e.checkedKeys&&(u.value=v,s.value=m)}l&&l(r,c)},J=function(t){var n=t[x.value.key],a=new Promise((function(a,r){var o=e.loadData,l=e.onLoad;if(!o||T.value.has(n)||V.value.has(n))return null;o(t).then((function(){var r=arrAdd(d.value,n),o=arrDel(p.value,n);l&&l(r,{event:"load",node:t}),void 0===e.loadedKeys&&(d.value=r),p.value=o,a()})).catch((function(t){var o=arrDel(p.value,n);if(p.value=o,v[n]=(v[n]||0)+1,v[n]>=MAX_RETRY_TIMES){var l=arrAdd(d.value,n);void 0===e.loadedKeys&&(d.value=l),a()}r(t)})),p.value=arrAdd(p.value,n)}));return a.catch((function(){})),a},ee=function(t,n){var a=e.onMouseenter;a&&a({event:t,node:n})},te=function(t,n){var a=e.onMouseleave;a&&a({event:t,node:n})},ne=function(t,n){var a=e.onRightClick;a&&(t.preventDefault(),a({event:t,node:n}))},ae=function(t){var n=e.onFocus;y.value=!0,n&&n(t)},re=function(t){var n=e.onBlur;y.value=!1,ce(null),n&&n(t)},oe=function(t,n){var a=f.value,r=e.onExpand,o=e.loadData,l=n.expanded,i=n[x.value.key];if(!k.value){a.indexOf(i);var c=!l;if(a=c?arrAdd(a,i):arrDel(a,i),L(a),r&&r(a,{node:n,expanded:c,nativeEvent:t}),c&&o){var u=J(n);u&&u.then((function(){})).catch((function(e){var t=arrDel(f.value,i);L(t),Promise.reject(e)}))}}},le=function(){k.value=!0},ie=function(){setTimeout((function(){k.value=!1}))},ce=function(t){var n=e.onActiveChange;b.value!==t&&(void 0!==e.activeKey&&(b.value=t),null!==t&&R({key:t}),n&&n(t))},ue=computed((function(){return null===b.value?null:F.value.find((function(e){return e.key===b.value}))||null})),se=function(e){var t=F.value.findIndex((function(e){return e.key===b.value}));-1===t&&e<0&&(t=F.value.length),t=(t+e+F.value.length)%F.value.length;var n=F.value[t];if(n){var a=n.key;ce(a)}else ce(null)},de=computed((function(){return convertNodePropsToEventData(_extends(_extends({},getTreeNodeProps(b.value,P.value)),{data:ue.value.data,active:!0}))})),pe=function(t){var n=e.onKeydown,a=e.checkable,r=e.selectable;switch(t.which){case KeyCode.UP:se(-1),t.preventDefault();break;case KeyCode.DOWN:se(1),t.preventDefault()}var o=ue.value;if(o&&o.data){var l=!1===o.data.isLeaf||!!(o.data.children||[]).length,i=de.value;switch(t.which){case KeyCode.LEFT:l&&N.value.has(b.value)?oe({},i):o.parent&&ce(o.parent.key),t.preventDefault();break;case KeyCode.RIGHT:l&&!N.value.has(b.value)?oe({},i):o.children&&o.children.length&&ce(o.children[0].key),t.preventDefault();break;case KeyCode.ENTER:case KeyCode.SPACE:!a||i.disabled||!1===i.checkable||i.disableCheckbox?a||!r||i.disabled||!1===i.selectable||X({},i):Z({},i,!D.value.has(b.value))}}n&&n(t)};return r({onNodeExpand:oe,scrollTo:R,onKeydown:pe,selectedKeys:computed((function(){return c.value})),checkedKeys:computed((function(){return u.value})),halfCheckedKeys:computed((function(){return s.value})),loadedKeys:computed((function(){return d.value})),loadingKeys:computed((function(){return p.value})),expandedKeys:computed((function(){return f.value}))}),onUnmounted((function(){window.removeEventListener("dragend",U),o.value=!0})),useProvideKeysState({expandedKeys:f,selectedKeys:c,loadedKeys:d,loadingKeys:p,checkedKeys:u,halfCheckedKeys:s,expandedKeysSet:N,selectedKeysSet:O,loadedKeysSet:T,loadingKeysSet:V,checkedKeysSet:D,halfCheckedKeysSet:A,flattenNodes:F}),function(){var t,r,o=m.draggingNodeKey,l=m.dropLevelOffset,c=m.dropContainerKey,u=m.dropTargetKey,s=m.dropPosition,d=m.dragOverNodeKey,p=e.prefixCls,f=e.showLine,v=e.focusable,h=e.tabindex,k=void 0===h?0:h,x=e.selectable,C=e.showIcon,_=e.icon,S=void 0===_?a.icon:_,P=e.switcherIcon,N=e.draggable,O=e.checkable,T=e.checkStrictly,V=e.disabled,D=e.motion,A=e.loadData,$=e.filterTreeNode,F=e.height,I=e.itemHeight,M=e.virtual,j=e.dropIndicatorRender,E=e.onContextmenu,R=e.onScroll,L=e.direction,B=n.class,U=n.style,se=pickAttrs(_extends(_extends({},e),n),{aria:!0,data:!0});return N&&(r="object"===_typeof(N)?N:"function"==typeof N?{nodeDraggable:N}:{}),createVNode(TreeContext,{value:{prefixCls:p,selectable:x,showIcon:C,icon:S,switcherIcon:P,draggable:r,draggingNodeKey:o,checkable:O,customCheckable:a.checkable,checkStrictly:T,disabled:V,keyEntities:g.value,dropLevelOffset:l,dropContainerKey:c,dropTargetKey:u,dropPosition:s,dragOverNodeKey:d,dragging:null!==o,indent:i.value,direction:L,dropIndicatorRender:j,loadData:A,filterTreeNode:$,onNodeClick:q,onNodeDoubleClick:Q,onNodeExpand:oe,onNodeSelect:X,onNodeCheck:Z,onNodeLoad:J,onNodeMouseEnter:ee,onNodeMouseLeave:te,onNodeContextMenu:ne,onNodeDragStart:H,onNodeDragEnter:z,onNodeDragOver:Y,onNodeDragLeave:W,onNodeDragEnd:K,onNodeDrop:G,slots:a}},{default:function(){return[createVNode("div",{role:"tree",class:classNames(p,B,(t={},_defineProperty$k(t,"".concat(p,"-show-line"),f),_defineProperty$k(t,"".concat(p,"-focused"),y.value),_defineProperty$k(t,"".concat(p,"-active-focused"),null!==b.value),t))},[createVNode(NodeList,_objectSpread2({ref:w,prefixCls:p,style:U,disabled:V,selectable:x,checkable:!!O,motion:D,height:F,itemHeight:I,virtual:M,focusable:v,focused:y.value,tabindex:k,activeItem:ue.value,onFocus:ae,onBlur:re,onKeydown:pe,onActiveChange:ce,onListChangeStart:le,onListChangeEnd:ie,onContextmenu:E,onScroll:R},se),null)])]}})}}});function renderSwitcherIcon(e,t,n,a){var r,o=a.isLeaf,l=a.expanded,i=t;if(a.loading)return createVNode(LoadingOutlined,{class:"".concat(e,"-switcher-loading-icon")},null);n&&"object"===_typeof(n)&&(r=n.showLeafIcon);var c=null,u="".concat(e,"-switcher-icon");return o?(n&&(c="object"!==_typeof(n)||r?createVNode(FileOutlined$1,{class:"".concat(e,"-switcher-line-icon")},null):createVNode("span",{class:"".concat(e,"-switcher-leaf-line")},null)),c):(c=createVNode(CaretDownFilled$1,{class:u},null),n&&(c=createVNode(l?MinusSquareOutlined$1:PlusSquareOutlined$1,{class:"".concat(e,"-switcher-line-icon")},null)),"function"==typeof t?i=t(_extends(_extends({},a),{defaultIcon:c,switcherCls:u})):isValidElement(i)&&(i=cloneVNode(i,{class:u})),i||c)}var offset=4;function dropIndicatorRender(e){var t,n=e.dropPosition,a=e.dropLevelOffset,r=e.prefixCls,o=e.indent,l=e.direction,i=void 0===l?"ltr":l,c="ltr"===i?"left":"right",u="ltr"===i?"right":"left",s=(_defineProperty$k(t={},c,"".concat(-a*o+offset,"px")),_defineProperty$k(t,u,0),t);switch(n){case-1:s.top="".concat(-3,"px");break;case 1:s.bottom="".concat(-3,"px");break;default:s.bottom="".concat(-3,"px"),s[c]="".concat(o+offset,"px")}return createVNode("div",{style:s,class:"".concat(r,"-drop-indicator")},null)}var treeProps=function(){var e=treeProps$1();return _extends(_extends({},e),{showLine:{type:[Boolean,Object],default:void 0},multiple:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandParent:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},checkedKeys:{type:[Array,Object]},defaultCheckedKeys:{type:Array},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},selectable:{type:Boolean,default:void 0},loadedKeys:{type:Array},draggable:{type:Boolean,default:void 0},showIcon:{type:Boolean,default:void 0},icon:{type:Function},switcherIcon:PropTypes.any,prefixCls:String,replaceFields:{type:Object},blockNode:{type:Boolean,default:void 0},openAnimation:PropTypes.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":Function,"onUpdate:checkedKeys":Function,"onUpdate:expandedKeys":Function})},Tree$1=defineComponent({name:"ATree",inheritAttrs:!1,props:initDefaultProps(treeProps(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:["icon","title","switcherIcon","titleRender"],setup:function(e,t){var n=t.attrs,a=t.expose,r=t.emit,o=t.slots;warning$1(!(void 0===e.treeData&&o.default));var l=useConfigInject("tree",e),i=l.prefixCls,c=l.direction,u=l.virtual,s=ref();a({treeRef:s,onNodeExpand:function(){var e,t;null===(t=s.value)||void 0===t||(e=t).onNodeExpand.apply(e,arguments)},scrollTo:function(e){var t;null===(t=s.value)||void 0===t||t.scrollTo(e)},selectedKeys:computed((function(){var e;return null===(e=s.value)||void 0===e?void 0:e.selectedKeys})),checkedKeys:computed((function(){var e;return null===(e=s.value)||void 0===e?void 0:e.checkedKeys})),halfCheckedKeys:computed((function(){var e;return null===(e=s.value)||void 0===e?void 0:e.halfCheckedKeys})),loadedKeys:computed((function(){var e;return null===(e=s.value)||void 0===e?void 0:e.loadedKeys})),loadingKeys:computed((function(){var e;return null===(e=s.value)||void 0===e?void 0:e.loadingKeys})),expandedKeys:computed((function(){var e;return null===(e=s.value)||void 0===e?void 0:e.expandedKeys}))}),watchEffect((function(){devWarning(void 0===e.replaceFields,"Tree","`replaceFields` is deprecated, please use fieldNames instead")}));var d=function(e,t){r("update:checkedKeys",e),r("check",e,t)},p=function(e,t){r("update:expandedKeys",e),r("expand",e,t)},f=function(e,t){r("update:selectedKeys",e),r("select",e,t)};return function(){var t,a=e.showIcon,r=e.showLine,l=e.switcherIcon,v=void 0===l?o.switcherIcon:l,m=e.icon,h=void 0===m?o.icon:m,g=e.blockNode,y=e.checkable,b=e.selectable,k=e.fieldNames,x=void 0===k?e.replaceFields:k,w=e.motion,C=void 0===w?e.openAnimation:w,_=e.itemHeight,S=void 0===_?28:_,P=e.onDoubleclick,N=e.onDblclick,O=_extends(_extends(_extends({},n),omit(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:Boolean(r),dropIndicatorRender:dropIndicatorRender,fieldNames:x,icon:h,itemHeight:S}),T=o.default?filterEmpty(o.default()):void 0;return createVNode(Tree$2,_objectSpread2(_objectSpread2({},O),{},{virtual:u.value,motion:C,ref:s,prefixCls:i.value,class:classNames((t={},_defineProperty$k(t,"".concat(i.value,"-icon-hide"),!a),_defineProperty$k(t,"".concat(i.value,"-block-node"),g),_defineProperty$k(t,"".concat(i.value,"-unselectable"),!b),_defineProperty$k(t,"".concat(i.value,"-rtl"),"rtl"===c.value),t),n.class),direction:c.value,checkable:y,selectable:b,switcherIcon:function(e){return renderSwitcherIcon(i.value,v,r,e)},onCheck:d,onExpand:p,onSelect:f,onDblclick:N||P,children:T}),_extends(_extends({},o),{checkable:function(){return createVNode("span",{class:"".concat(i.value,"-checkbox-inner")},null)}}))}}}),Record,Record2;function traverseNodesKey(e,t,n){e.forEach((function(e){var a=e[t.key],r=e[t.children];!1!==n(a,e)&&traverseNodesKey(r||[],t,n)}))}function calcRangeKeys(e){var t=e.treeData,n=e.expandedKeys,a=e.startKey,r=e.endKey,o=e.fieldNames,l=void 0===o?{title:"title",key:"key",children:"children"}:o,i=[],c=Record.None;if(a&&a===r)return[a];if(!a||!r)return[];return traverseNodesKey(t,l,(function(e){if(c===Record.End)return!1;if(function(e){return e===a||e===r}(e)){if(i.push(e),c===Record.None)c=Record.Start;else if(c===Record.Start)return c=Record.End,!1}else c===Record.Start&&i.push(e);return-1!==n.indexOf(e)})),i}function convertDirectoryKeysToNodes(e,t,n){var a=_toConsumableArray(t),r=[];return traverseNodesKey(e,n,(function(e,t){var n=a.indexOf(e);return-1!==n&&(r.push(t),a.splice(n,1)),!!a.length})),r}Record2=Record||(Record={}),Record2[Record2.None=0]="None",Record2[Record2.Start=1]="Start",Record2[Record2.End=2]="End";var __rest$5=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r=0;n("itemSelect",t.key,!a)},l=function(e){n("itemRemove",e.key)},i=function(e){n("scroll",e)},c=computed((function(){return parsePagination(e.pagination)}));watch([c,function(){return e.filteredRenderItems}],(function(){if(c.value){var t=Math.ceil(e.filteredRenderItems.length/c.value.pageSize);r.value>t&&(r.value=t)}}),{immediate:!0});var u=computed((function(){var t=e.filteredRenderItems,n=t;return c.value&&(n=t.slice((r.value-1)*c.value.pageSize,r.value*c.value.pageSize)),n})),s=function(e){r.value=e};return a({items:u}),function(){var t=e.prefixCls,n=e.filteredRenderItems,a=e.selectedKeys,d=e.disabled,p=e.showRemove,f=null;c.value&&(f=createVNode(Pagination,{simple:!0,size:"small",disabled:d,class:"".concat(t,"-pagination"),total:n.length,pageSize:c.value.pageSize,current:r.value,onChange:s},null));var v=u.value.map((function(e){var n=e.renderedEl,r=e.renderedText,i=e.item,c=i.disabled,u=a.indexOf(i.key)>=0;return createVNode(ListItem$1,{disabled:d||c,key:i.key,item:i,renderedText:r,renderedEl:n,checked:u,prefixCls:t,onClick:o,onRemove:l,showRemove:p},null)}));return createVNode(Fragment,null,[createVNode("ul",{class:classNames("".concat(t,"-content"),_defineProperty$k({},"".concat(t,"-content-show-remove"),p)),onScroll:i},[v]),f])}}}),ListBody$1=ListBody,defaultRender=function(){return null};function isRenderResultPlainObject(e){return e&&!isValidElement(e)&&"[object Object]"===Object.prototype.toString.call(e)}function getEnabledItemKeys(e){return e.filter((function(e){return!e.disabled})).map((function(e){return e.key}))}var transferListProps={prefixCls:String,dataSource:{type:Array,default:[]},filter:String,filterOption:Function,checkedKeys:PropTypes.arrayOf(PropTypes.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:{type:Boolean,default:!1},searchPlaceholder:String,notFoundContent:PropTypes.any,itemUnit:String,itemsUnit:String,renderList:PropTypes.any,disabled:{type:Boolean,default:void 0},direction:String,showSelectAll:{type:Boolean,default:void 0},remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:PropTypes.any,showRemove:{type:Boolean,default:void 0},pagination:PropTypes.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},List=defineComponent({name:"TransferList",inheritAttrs:!1,props:transferListProps,slots:["footer","titleText"],setup:function(e,t){var n=t.attrs,a=t.slots,r=ref(""),o=ref(),l=ref(),i=ref([]),c=ref([]);watchEffect((function(){var t=[],n=[];e.dataSource.forEach((function(a){var o=function(t){var n=e.renderItem,a=(void 0===n?defaultRender:n)(t),r=isRenderResultPlainObject(a);return{renderedText:r?a.value:a,renderedEl:r?a.label:a,item:t}}(a),l=o.renderedText;if(r.value&&r.value.trim()&&!v(l,a))return null;t.push(a),n.push(o)})),i.value=t,c.value=n}));var u=computed((function(){var t=e.checkedKeys;return 0===t.length?"none":i.value.every((function(e){return t.indexOf(e.key)>=0||!!e.disabled}))?"all":"part"})),s=computed((function(){return getEnabledItemKeys(i.value)})),d=function(t,n){return Array.from(new Set([].concat(_toConsumableArray(t),_toConsumableArray(e.checkedKeys)))).filter((function(e){return-1===n.indexOf(e)}))},p=function(t){var n,a=t.target.value;r.value=a,null===(n=e.handleFilter)||void 0===n||n.call(e,t)},f=function(t){var n;r.value="",null===(n=e.handleClear)||void 0===n||n.call(e,t)},v=function(t,n){var a=e.filterOption;return a?a(r.value,n):t.indexOf(r.value)>=0},m=function(t,n){var a=e.itemsUnit,r=e.itemUnit,o=e.selectAllLabel;if(o)return"function"==typeof o?o({selectedCount:t,totalCount:n}):o;var l=n>1?a:r;return createVNode(Fragment,null,[(t>0?"".concat(t,"/"):"")+n,createTextVNode(" "),l])},h=function(t,a,u,s,d,v){var m,h=d?createVNode("div",{class:"".concat(t,"-body-search-wrapper")},[createVNode(Search,{prefixCls:"".concat(t,"-search"),onChange:p,handleClear:f,placeholder:a,value:r.value,disabled:v},null)]):null,g=splitAttrs(n).onEvents,y=function(e,t){var n=e?e(t):null,a=!!n&&filterEmpty(n).length>0;return a||(n=createVNode(ListBody$1,_objectSpread2(_objectSpread2({},t),{},{ref:l}),null)),{customize:a,bodyContent:n}}(s,_extends(_extends(_extends({},e),{filteredItems:i.value,filteredRenderItems:c.value,selectedKeys:u}),g)),b=y.bodyContent;return m=y.customize?createVNode("div",{class:"".concat(t,"-body-customize-wrapper")},[b]):i.value.length?b:createVNode("div",{class:"".concat(t,"-body-not-found")},[e.notFoundContent]),createVNode("div",{class:d?"".concat(t,"-body ").concat(t,"-body-with-search"):"".concat(t,"-body"),ref:o},[h,m])};return function(){var t,r,o,c=e.prefixCls,p=e.checkedKeys,f=e.disabled,v=e.showSearch,g=e.searchPlaceholder,y=e.selectAll,b=e.selectCurrent,k=e.selectInvert,x=e.removeAll,w=e.removeCurrent,C=e.renderList,_=e.onItemSelectAll,S=e.onItemRemove,P=e.showSelectAll,N=void 0===P||P,O=e.showRemove,T=e.pagination,V=null===(r=a.footer)||void 0===r?void 0:r.call(a,_extends({},e)),D=classNames(c,(_defineProperty$k(t={},"".concat(c,"-with-pagination"),!!T),_defineProperty$k(t,"".concat(c,"-with-footer"),!!V),t)),A=h(c,g,p,C,v,f),$=V?createVNode("div",{class:"".concat(c,"-footer")},[V]):null,F=!O&&!T&&function(t){var n=t.disabled,a=t.prefixCls,r="all"===u.value;return createVNode(Checkbox$1,{disabled:n,checked:r,indeterminate:"part"===u.value,class:"".concat(a,"-checkbox"),onChange:function(){var t=s.value;e.onItemSelectAll(d(r?[]:t,r?e.checkedKeys:[]))}},null)}({disabled:f,prefixCls:c}),I=null;I=createVNode(Menu,null,O?{default:function(){return[T&&createVNode(Menu.Item,{key:"removeCurrent",onClick:function(){var e=getEnabledItemKeys((l.value.items||[]).map((function(e){return e.item})));null==S||S(e)}},{default:function(){return[w]}}),createVNode(Menu.Item,{key:"removeAll",onClick:function(){null==S||S(s.value)}},{default:function(){return[x]}})]}}:{default:function(){return[createVNode(Menu.Item,{key:"selectAll",onClick:function(){var e=s.value;_(d(e,[]))}},{default:function(){return[y]}}),T&&createVNode(Menu.Item,{onClick:function(){var e=getEnabledItemKeys((l.value.items||[]).map((function(e){return e.item})));_(d(e,[]))}},{default:function(){return[b]}}),createVNode(Menu.Item,{key:"selectInvert",onClick:function(){var e;e=T?getEnabledItemKeys((l.value.items||[]).map((function(e){return e.item}))):s.value;var t=new Set(p),n=[],a=[];e.forEach((function(e){t.has(e)?a.push(e):n.push(e)})),_(d(n,a))}},{default:function(){return[k]}})]}});var M=createVNode(Dropdown,{class:"".concat(c,"-header-dropdown"),overlay:I,disabled:f},{default:function(){return[createVNode(DownOutlined,null,null)]}});return createVNode("div",{class:D,style:n.style},[createVNode("div",{class:"".concat(c,"-header")},[N?createVNode(Fragment,null,[F,M]):null,createVNode("span",{class:"".concat(c,"-header-selected")},[createVNode("span",null,[m(p.length,i.value.length)]),createVNode("span",{class:"".concat(c,"-header-title")},[null===(o=a.titleText)||void 0===o?void 0:o.call(a)])])]),A,$])}}});function noop(){}var Operation=function(e){var t=e.disabled,n=e.moveToLeft,a=void 0===n?noop:n,r=e.moveToRight,o=void 0===r?noop:r,l=e.leftArrowText,i=void 0===l?"":l,c=e.rightArrowText,u=void 0===c?"":c,s=e.leftActive,d=e.rightActive,p=e.class,f=e.style,v=e.direction,m=e.oneWay;return createVNode("div",{class:p,style:f},[createVNode(Button,{type:"primary",size:"small",disabled:t||!d,onClick:o,icon:createVNode("rtl"!==v?RightOutlined:LeftOutlined,null,null)},{default:function(){return[u]}}),!m&&createVNode(Button,{type:"primary",size:"small",disabled:t||!s,onClick:a,icon:createVNode("rtl"!==v?LeftOutlined:RightOutlined,null,null)},{default:function(){return[i]}})])};Operation.displayName="Operation",Operation.inheritAttrs=!1;var Operation$1=Operation,transferProps=function(){return{id:String,prefixCls:String,dataSource:{type:Array,default:[]},disabled:{type:Boolean,default:void 0},targetKeys:{type:Array,default:void 0},selectedKeys:{type:Array,default:void 0},render:{type:Function},listStyle:{type:[Function,Object],default:function(){return{}}},operationStyle:{type:Object,default:void 0},titles:{type:Array},operations:{type:Array},showSearch:{type:Boolean,default:!1},filterOption:{type:Function},searchPlaceholder:String,notFoundContent:PropTypes.any,locale:{type:Object,default:function(){return{}}},rowKey:{type:Function},showSelectAll:{type:Boolean,default:void 0},selectAllLabels:{type:Array},children:{type:Function},oneWay:{type:Boolean,default:void 0},pagination:{type:[Object,Boolean],default:void 0},onChange:Function,onSelectChange:Function,onSearch:Function,onScroll:Function,"onUpdate:targetKeys":Function,"onUpdate:selectedKeys":Function}},Transfer=defineComponent({name:"ATransfer",inheritAttrs:!1,props:transferProps(),slots:["leftTitle","rightTitle","children","render","notFoundContent","leftSelectAllLabel","rightSelectAllLabel","footer"],setup:function(e,t){var n=t.emit,a=t.attrs,r=t.slots,o=t.expose,l=useConfigInject("transfer",e),i=l.configProvider,c=l.prefixCls,u=l.direction,s=ref([]),d=ref([]),p=useInjectFormItemContext();watch((function(){return e.selectedKeys}),(function(){var t,n;s.value=(null===(t=e.selectedKeys)||void 0===t?void 0:t.filter((function(t){return-1===e.targetKeys.indexOf(t)})))||[],d.value=(null===(n=e.selectedKeys)||void 0===n?void 0:n.filter((function(t){return e.targetKeys.indexOf(t)>-1})))||[]}),{immediate:!0});var f=function(t){var a=e.targetKeys,r=void 0===a?[]:a,o=e.dataSource,l=void 0===o?[]:o,i=("right"===t?s.value:d.value).filter((function(e){return!l.some((function(t){return!(e!==t.key||!t.disabled)}))})),c="right"===t?i.concat(r):r.filter((function(e){return-1===i.indexOf(e)})),u="right"===t?"left":"right";"right"===t?s.value=[]:d.value=[],n("update:targetKeys",c),b(u,[]),n("change",c,t,i),p.onFieldChange()},v=function(){f("left")},m=function(){f("right")},h=function(e,t){b(e,t)},g=function(e){return h("left",e)},y=function(e){return h("right",e)},b=function(t,a){"left"===t?(e.selectedKeys||(s.value=a),n("update:selectedKeys",[].concat(_toConsumableArray(a),_toConsumableArray(d.value))),n("selectChange",a,toRaw(d.value))):(e.selectedKeys||(d.value=a),n("update:selectedKeys",[].concat(_toConsumableArray(a),_toConsumableArray(s.value))),n("selectChange",toRaw(s.value),a))},k=function(e,t){var a=t.target.value;n("search",e,a)},x=function(e){k("left",e)},w=function(e){k("right",e)},C=function(e){n("search",e,"")},_=function(){C("left")},S=function(){C("right")},P=function(e,t,n){var a=_toConsumableArray("left"===e?s.value:d.value),r=a.indexOf(t);r>-1&&a.splice(r,1),n&&a.push(t),b(e,a)},N=function(e,t){return P("left",e,t)},O=function(e,t){return P("right",e,t)},T=function(t){var a=e.targetKeys,r=(void 0===a?[]:a).filter((function(e){return!t.includes(e)}));n("update:targetKeys",r),n("change",r,"left",_toConsumableArray(t))},V=function(e,t){n("scroll",e,t)},D=function(e){V("left",e)},A=function(e){V("right",e)},$=function(e,t){return"function"==typeof e?e({direction:t}):e},F=ref([]),I=ref([]);watchEffect((function(){var t=e.dataSource,n=e.rowKey,a=e.targetKeys,r=void 0===a?[]:a,o=[],l=new Array(r.length);t.forEach((function(e){n&&(e.key=n(e));var t=r.indexOf(e.key);-1!==t?l[t]=e:o.push(e)})),F.value=o,I.value=l})),o({handleSelectChange:b});var M=function(t){var n,o,l,f,h,b,k,C=e.disabled,P=e.operations,V=void 0===P?[]:P,M=e.showSearch,j=e.listStyle,E=e.operationStyle,R=e.filterOption,L=e.showSelectAll,B=e.selectAllLabels,K=void 0===B?[]:B,U=e.oneWay,H=e.pagination,z=e.id,Y=void 0===z?p.id.value:z,W=a.class,G=a.style,q=r.children,Q=!q&&H,X=function(t,n){var a={notFoundContent:n("Transfer")},o=getPropsSlot(r,e,"notFoundContent");return o&&(a.notFoundContent=o),void 0!==e.searchPlaceholder&&(a.searchPlaceholder=e.searchPlaceholder),_extends(_extends(_extends({},t),a),e.locale)}(t,i.renderEmpty),Z=r.footer,J=e.render||r.render,ee=d.value.length>0,te=s.value.length>0,ne=classNames(c.value,W,(_defineProperty$k(n={},"".concat(c.value,"-disabled"),C),_defineProperty$k(n,"".concat(c.value,"-customize-list"),!!q),n)),ae=e.titles,re=null!==(f=null!==(o=ae&&ae[0])&&void 0!==o?o:null===(l=r.leftTitle)||void 0===l?void 0:l.call(r))&&void 0!==f?f:(X.titles||["",""])[0],oe=null!==(k=null!==(h=ae&&ae[1])&&void 0!==h?h:null===(b=r.rightTitle)||void 0===b?void 0:b.call(r))&&void 0!==k?k:(X.titles||["",""])[1];return createVNode("div",{class:ne,style:G,id:Y},[createVNode(List,_objectSpread2({key:"leftList",prefixCls:"".concat(c.value,"-list"),dataSource:F.value,filterOption:R,style:$(j,"left"),checkedKeys:s.value,handleFilter:x,handleClear:_,onItemSelect:N,onItemSelectAll:g,renderItem:J,showSearch:M,renderList:q,onScroll:D,disabled:C,direction:"rtl"===u.value?"right":"left",showSelectAll:L,selectAllLabel:K[0]||r.leftSelectAllLabel,pagination:Q},X),{titleText:function(){return re},footer:Z}),createVNode(Operation$1,{key:"operation",class:"".concat(c.value,"-operation"),rightActive:te,rightArrowText:V[0],moveToRight:m,leftActive:ee,leftArrowText:V[1],moveToLeft:v,style:E,disabled:C,direction:u.value,oneWay:U},null),createVNode(List,_objectSpread2({key:"rightList",prefixCls:"".concat(c.value,"-list"),dataSource:I.value,filterOption:R,style:$(j,"right"),checkedKeys:d.value,handleFilter:w,handleClear:S,onItemSelect:O,onItemSelectAll:y,onItemRemove:T,renderItem:J,showSearch:M,renderList:q,onScroll:A,disabled:C,direction:"rtl"===u.value?"left":"right",showSelectAll:L,selectAllLabel:K[1]||r.rightSelectAllLabel,showRemove:U,pagination:Q},X),{titleText:function(){return oe},footer:Z})])};return function(){return createVNode(LocaleReceiver,{componentName:"Transfer",defaultLocale:defaultLocale.Transfer,children:M},null)}}}),Transfer$1=withInstall(Transfer);function toArray(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}function fillFieldNames(e){var t=e||{},n=t.label,a=t.value||"value";return{_title:n?[n]:["title","label"],value:a,key:a,children:t.children||"children"}}function isCheckDisabled(e){return e.disabled||e.disableCheckbox||!1===e.checkable}function getAllKeys(e,t){var n=[];return function e(a){a.forEach((function(a){n.push(a[t.value]);var r=a[t.children];r&&e(r)}))}(e),n}function isNil(e){return null==e}var TreeSelectContextPropsKey=Symbol("TreeSelectContextPropsKey");function useProvideSelectContext(e){return provide(TreeSelectContextPropsKey,e)}function useInjectSelectContext(){return inject(TreeSelectContextPropsKey,{})}var HIDDEN_STYLE={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},OptionList=defineComponent({name:"OptionList",inheritAttrs:!1,slots:["notFoundContent","menuItemSelectedIcon"],setup:function(e,t){var n=t.slots,a=t.expose,r=useBaseProps(),o=useInjectLegacySelectContext(),l=useInjectSelectContext(),i=ref(),c=useMemo((function(){return l.treeData}),[function(){return r.open},function(){return l.treeData}],(function(e){return e[0]})),u=computed((function(){var e=o.checkable,t=o.halfCheckedKeys,n=o.checkedKeys;return e?{checked:n,halfChecked:t}:null}));watch((function(){return r.open}),(function(){nextTick((function(){var e;r.open&&!r.multiple&&o.checkedKeys.length&&(null===(e=i.value)||void 0===e||e.scrollTo({key:o.checkedKeys[0]}))}))}),{immediate:!0,flush:"post"});var s=computed((function(){return String(r.searchValue).toLowerCase()})),d=function(e){return!!s.value&&String(e[o.treeNodeFilterProp]).toLowerCase().includes(s.value)},p=shallowRef(o.treeDefaultExpandedKeys),f=shallowRef(null);watch((function(){return r.searchValue}),(function(){r.searchValue&&(f.value=getAllKeys(toRaw(l.treeData),toRaw(l.fieldNames)))}),{immediate:!0});var v=computed((function(){return o.treeExpandedKeys?o.treeExpandedKeys.slice():r.searchValue?f.value:p.value})),m=function(e){var t;p.value=e,f.value=e,null===(t=o.onTreeExpand)||void 0===t||t.call(o,e)},h=function(e){e.preventDefault()},g=function(e,t){var n,a,i=t.node,c=o.checkable,u=o.checkedKeys;c&&isCheckDisabled(i)||(null===(n=l.onSelect)||void 0===n||n.call(l,i.key,{selected:!u.includes(i.key)}),r.multiple||null===(a=r.toggleOpen)||void 0===a||a.call(r,!1))},y=ref(null),b=computed((function(){return o.keyEntities[y.value]})),k=function(e){y.value=e};return a({scrollTo:function(){for(var e,t,n,a=arguments.length,r=new Array(a),o=0;o0&&void 0!==arguments[0]?arguments[0]:[];return filterEmpty(t).map((function(t){var n,a,r;if(!isTreeSelectNode(t))return null;for(var o=t.children||{},l=t.key,i={},c=0,u=Object.entries(t.props);c1&&void 0!==arguments[1]?arguments[1]:"0",c=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.map((function(a,u){var s="".concat(r,"-").concat(u),d=a[o.value],p=n.includes(d),f=e(a[o.children]||[],s,p),v=createVNode(TreeNode$1,a,{default:function(){return[f.map((function(e){return e.node}))]}});if(t===d&&(l=v),p){var m={pos:s,node:v,children:f};return c||i.push(m),m}return null})).filter((function(e){return e}))}(a),i.sort((function(e,t){var a=e.node.props.value,r=t.node.props.value;return n.indexOf(a)-n.indexOf(r)})))}Object.defineProperty(e,"triggerNode",{get:function(){return c(),l}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return c(),r?i:i.map((function(e){return e.node}))}})}function parseSimpleTreeData(e,t){var n=t.id,a=t.pId,r=t.rootPId,o={},l=[];return e.map((function(e){var t=_extends({},e),a=t[n];return o[a]=t,t.key=t.key||a,t})).forEach((function(e){var t=e[a],n=o[t];n&&(n.children=n.children||[],n.children.push(e)),(t===r||!n&&null===r)&&l.push(e)})),l}function useTreeData(e,t,n){var a=shallowRef();return watch([n,e,t],(function(){var r=n.value;e.value?a.value=n.value?parseSimpleTreeData(toRaw(e.value),_extends({id:"id",pId:"pId",rootPId:null},!0!==r?r:{})):toRaw(e.value).slice():a.value=convertChildrenToData(toRaw(t.value))}),{immediate:!0,deep:!0}),a}var useCache=function(e){var t=shallowRef({valueLabels:new Map}),n=shallowRef();return watch(e,(function(){n.value=toRaw(e.value)}),{immediate:!0}),[computed((function(){var e=t.value.valueLabels,a=new Map,r=n.value.map((function(t){var n,r=t.value,o=null!==(n=t.label)&&void 0!==n?n:e.get(r);return a.set(r,o),_extends(_extends({},t),{label:o})}));return t.value.valueLabels=a,r}))]},useDataEntities=function(e,t){var n=shallowRef(new Map),a=shallowRef({});return watchEffect((function(){var r=t.value,o=convertDataToEntities(e.value,{fieldNames:r,initWrapper:function(e){return _extends(_extends({},e),{valueEntities:new Map})},processEntity:function(e,t){var n=e.node[r.value];t.valueEntities.set(n,e)}});n.value=o.valueEntities,a.value=o.keyEntities})),{valueEntities:n,keyEntities:a}},useCheckedKeys=function(e,t,n,a,r,o){var l=shallowRef([]),i=shallowRef([]);return watchEffect((function(){var c=e.value.map((function(e){return e.value})),u=t.value.map((function(e){return e.value})),s=c.filter((function(e){return!a.value[e]}));if(n.value){var d=conductCheck(c,!0,a.value,r.value,o.value);c=d.checkedKeys,u=d.halfCheckedKeys}l.value=Array.from(new Set([].concat(_toConsumableArray(s),_toConsumableArray(c)))),i.value=u})),[l,i]},useFilterTreeData=function(e,t,n){var a=n.treeNodeFilterProp,r=n.filterTreeNode,o=n.fieldNames;return computed((function(){var n,l=o.value.children,i=t.value,c=null==a?void 0:a.value;if(!i||!1===r.value)return e.value;if("function"==typeof r.value)n=r.value;else{var u=i.toUpperCase();n=function(e,t){var n=t[c];return String(n).toUpperCase().includes(u)}}return function e(t){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[],o=0,c=t.length;o0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var a=e.data[t];Array.isArray(a)?a.forEach((function(e){n.append("".concat(t,"[]"),e)})):n.append(t,a)})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(getError(e,t),getBody(t)):e.onSuccess(getBody(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var a=e.headers||{};return null!==a["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(a).forEach((function(e){null!==a[e]&&t.setRequestHeader(e,a[e])})),t.send(n),{abort:function(){t.abort()}}}var now=+new Date,index$c=0;function uid(){return"vc-upload-".concat(now,"-").concat(++index$c)}var attrAccept=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),a=e.name||"",r=e.type||"",o=r.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=a.toLowerCase(),l=t.toLowerCase(),i=[l];return".jpg"!==l&&".jpeg"!==l||(i=[".jpg",".jpeg"]),i.some((function(e){return n.endsWith(e)}))}return/\/\*$/.test(t)?o===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)}))}return!0};function loopFiles(e,t){var n=e.createReader(),a=[];!function e(){n.readEntries((function(n){var r=Array.prototype.slice.apply(n);a=a.concat(r),!r.length?t(a):e()}))}()}var traverseFileTree=function(e,t,n){var a=function e(a,r){a.path=r||"",a.isFile?a.file((function(e){n(e)&&(a.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=a.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):a.isDirectory&&loopFiles(a,(function(t){t.forEach((function(t){e(t,"".concat(r).concat(a.name,"/"))}))}))};e.forEach((function(e){a(e.webkitGetAsEntry())}))},traverseFileTree$1=traverseFileTree,uploadProps$1=function(){return{capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function}},__awaiter$1=globalThis&&globalThis.__awaiter||function(t,n,a,r){return new(a||(a=Promise))((function(o,l){function i(t){try{u(r.next(t))}catch(e){l(e)}}function c(t){try{u(r.throw(t))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,c)}u((r=r.apply(t,n||[])).next())}))},__rest$2=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("/"),n=t[t.length-1],a=n.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(a)||[""])[0]},isImageFileType=function(e){return 0===e.indexOf("image/")},isImageUrl=function(e){if(e.type&&!e.thumbUrl)return isImageFileType(e.type);var t=e.thumbUrl||e.url||"",n=extname(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n))||!/^data:/.test(t)&&!n},MEASURE_SIZE=200;function previewImage(e){return new Promise((function(t){if(e.type&&isImageFileType(e.type)){var n=document.createElement("canvas");n.width=MEASURE_SIZE,n.height=MEASURE_SIZE,n.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(MEASURE_SIZE,"px; height: ").concat(MEASURE_SIZE,"px; z-index: 9999; display: none;"),document.body.appendChild(n);var a=n.getContext("2d"),r=new Image;r.onload=function(){var e=r.width,o=r.height,l=MEASURE_SIZE,i=MEASURE_SIZE,c=0,u=0;e>o?u=-((i=o*(MEASURE_SIZE/e))-l)/2:c=-((l=e*(MEASURE_SIZE/o))-i)/2,a.drawImage(r,c,u,l,i);var s=n.toDataURL();document.body.removeChild(n),t(s)},r.src=window.URL.createObjectURL(e)}else t("")}))}var listItemProps=function(){return{prefixCls:String,locale:{type:Object,default:void 0},file:Object,items:Array,listType:String,isImgUrl:Function,showRemoveIcon:{type:Boolean,default:void 0},showDownloadIcon:{type:Boolean,default:void 0},showPreviewIcon:{type:Boolean,default:void 0},removeIcon:Function,downloadIcon:Function,previewIcon:Function,iconRender:Function,actionIconRender:Function,itemRender:Function,onPreview:Function,onClose:Function,onDownload:Function,progress:Object}},ListItem=defineComponent({name:"ListItem",inheritAttrs:!1,props:listItemProps(),setup:function(e,t){var n=t.slots,a=t.attrs,r=ref(!1),o=ref();onMounted((function(){o.value=setTimeout((function(){r.value=!0}),300)})),onBeforeUnmount((function(){clearTimeout(o.value)}));var l=useConfigInject("upload",e).rootPrefixCls,i=computed((function(){return getTransitionProps("".concat(l.value,"-fade"))}));return function(){var t,o,l,c,u=e.prefixCls,s=e.locale,d=e.listType,p=e.file,f=e.items,v=e.progress,m=e.iconRender,h=void 0===m?n.iconRender:m,g=e.actionIconRender,y=void 0===g?n.actionIconRender:g,b=e.itemRender,k=void 0===b?n.itemRender:b,x=e.isImgUrl,w=e.showPreviewIcon,C=e.showRemoveIcon,_=e.showDownloadIcon,S=e.previewIcon,P=void 0===S?n.previewIcon:S,N=e.removeIcon,O=void 0===N?n.removeIcon:N,T=e.downloadIcon,V=void 0===T?n.downloadIcon:T,D=e.onPreview,A=e.onDownload,$=e.onClose,F=a.class,I=a.style,M="".concat(u,"-span"),j=h({file:p}),E=createVNode("div",{class:"".concat(u,"-text-icon")},[j]);if("picture"===d||"picture-card"===d)if("uploading"===p.status||!p.thumbUrl&&!p.url){var R,L=(_defineProperty$k(R={},"".concat(u,"-list-item-thumbnail"),!0),_defineProperty$k(R,"".concat(u,"-list-item-file"),"uploading"!==p.status),R);E=createVNode("div",{class:L},[j])}else{var B,K=(null==x?void 0:x(p))?createVNode("img",{src:p.thumbUrl||p.url,alt:p.name,class:"".concat(u,"-list-item-image")},null):j,U=(_defineProperty$k(B={},"".concat(u,"-list-item-thumbnail"),!0),_defineProperty$k(B,"".concat(u,"-list-item-file"),x&&!x(p)),B);E=createVNode("a",{class:U,onClick:function(e){return D(p,e)},href:p.url||p.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[K])}var H,z=(_defineProperty$k(t={},"".concat(u,"-list-item"),!0),_defineProperty$k(t,"".concat(u,"-list-item-").concat(p.status),!0),_defineProperty$k(t,"".concat(u,"-list-item-list-type-").concat(d),!0),t),Y="string"==typeof p.linkProps?JSON.parse(p.linkProps):p.linkProps,W=C?y({customIcon:O?O({file:p}):createVNode(DeleteOutlined$1,null,null),callback:function(){return $(p)},prefixCls:u,title:s.removeFile}):null,G=_&&"done"===p.status?y({customIcon:V?V({file:p}):createVNode(DownloadOutlined$1,null,null),callback:function(){return A(p)},prefixCls:u,title:s.downloadFile}):null,q="picture-card"!==d&&createVNode("span",{key:"download-delete",class:["".concat(u,"-list-item-card-actions"),{picture:"picture"===d}]},[G,W]),Q="".concat(u,"-list-item-name"),X=p.url?[createVNode("a",_objectSpread2(_objectSpread2({key:"view",target:"_blank",rel:"noopener noreferrer",class:Q,title:p.name},Y),{},{href:p.url,onClick:function(e){return D(p,e)}}),[p.name]),q]:[createVNode("span",{key:"view",class:Q,onClick:function(e){return D(p,e)},title:p.name},[p.name]),q],Z=w?createVNode("a",{href:p.url||p.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:p.url||p.thumbUrl?void 0:{pointerEvents:"none",opacity:.5},onClick:function(e){return D(p,e)},title:s.previewFile},[P?P({file:p}):createVNode(EyeOutlined,null,null)]):null,J="picture-card"===d&&"uploading"!==p.status&&createVNode("span",{class:"".concat(u,"-list-item-actions")},[Z,"done"===p.status&&G,W]);H=p.response&&"string"==typeof p.response?p.response:(null===(l=p.error)||void 0===l?void 0:l.statusText)||(null===(c=p.error)||void 0===c?void 0:c.message)||s.uploadError;var ee=createVNode("span",{class:M},[E,X]),te=createVNode("div",{class:z},[createVNode("div",{class:"".concat(u,"-list-item-info")},[ee]),J,r.value&&createVNode(Transition$2,i.value,{default:function(){return[withDirectives(createVNode("div",{class:"".concat(u,"-list-item-progress")},["percent"in p?createVNode(Progress,_objectSpread2(_objectSpread2({},v),{},{type:"line",percent:p.percent}),null):null]),[[vShow,"uploading"===p.status]])]}})]),ne=(_defineProperty$k(o={},"".concat(u,"-list-").concat(d,"-container"),!0),_defineProperty$k(o,"".concat(F),!!F),o),ae="error"===p.status?createVNode(Tooltip,{title:H,getPopupContainer:function(e){return e.parentNode}},{default:function(){return[te]}}):te;return createVNode("div",{class:ne,style:I,ref:ref},[k?k({originNode:ae,file:p,fileList:f,actions:{download:A.bind(null,p),preview:D.bind(null,p),remove:$.bind(null,p)}}):ae])}}}),HackSlot=function(e,t){var n,a=t.slots;return filterEmpty(null===(n=a.default)||void 0===n?void 0:n.call(a))[0]},UploadList=defineComponent({name:"AUploadList",props:initDefaultProps(uploadListProps(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:previewImage,isImageUrl:isImageUrl,items:[],appendActionVisible:!0}),setup:function(e,t){var n=t.slots,a=t.expose,r=ref(!1),o=getCurrentInstance();onMounted((function(){r.value})),watchEffect((function(){"picture"!==e.listType&&"picture-card"!==e.listType||(e.items||[]).forEach((function(t){"undefined"!=typeof document&&"undefined"!=typeof window&&window.FileReader&&window.File&&(t.originFileObj instanceof File||t.originFileObj instanceof Blob)&&void 0===t.thumbUrl&&(t.thumbUrl="",e.previewFile&&e.previewFile(t.originFileObj).then((function(e){t.thumbUrl=e||"",o.update()})))}))}));var l=function(t,n){if(e.onPreview)return null==n||n.preventDefault(),e.onPreview(t)},i=function(t){"function"==typeof e.onDownload?e.onDownload(t):t.url&&window.open(t.url)},c=function(t){var n;null===(n=e.onRemove)||void 0===n||n.call(e,t)},u=function(t){var a=t.file,r=e.iconRender||n.iconRender;if(r)return r({file:a,listType:e.listType});var o="uploading"===a.status,l=e.isImageUrl&&e.isImageUrl(a)?createVNode(PictureTwoTone$1,null,null):createVNode(FileTwoTone$1,null,null),i=createVNode(o?LoadingOutlined:PaperClipOutlined$1,null,null);return"picture"===e.listType?i=o?createVNode(LoadingOutlined,null,null):l:"picture-card"===e.listType&&(i=o?e.locale.uploading:l),i},s=function(e){var t=e.customIcon,n=e.callback,a=e.prefixCls,r={type:"text",size:"small",title:e.title,onClick:function(){n()},class:"".concat(a,"-list-item-card-actions-btn")};return isValidElement(t)?createVNode(Button,r,{icon:function(){return t}}):createVNode(Button,r,{default:function(){return[createVNode("span",null,[t])]}})};a({handlePreview:l,handleDownload:i});var d=useConfigInject("upload",e),p=d.prefixCls,f=d.direction,v=computed((function(){var t;return _defineProperty$k(t={},"".concat(p.value,"-list"),!0),_defineProperty$k(t,"".concat(p.value,"-list-").concat(e.listType),!0),_defineProperty$k(t,"".concat(p.value,"-list-rtl"),"rtl"===f.value),t})),m=computed((function(){return _extends(_extends(_extends({},collapseMotion("".concat(p.value,"-").concat("picture-card"===e.listType?"animate-inline":"animate"))),getTransitionGroupProps("".concat(p.value,"-").concat("picture-card"===e.listType?"animate-inline":"animate"))),{class:v.value,appear:r.value})}));return function(){var t=e.listType,a=e.locale,r=e.isImageUrl,o=e.items,d=void 0===o?[]:o,f=e.showPreviewIcon,v=e.showRemoveIcon,h=e.showDownloadIcon,g=e.removeIcon,y=e.previewIcon,b=e.downloadIcon,k=e.progress,x=e.appendAction,w=e.itemRender,C=e.appendActionVisible,_=null==x?void 0:x();return createVNode(TransitionGroup,_objectSpread2(_objectSpread2({},m.value),{},{tag:"div"}),{default:function(){return[d.map((function(e){var o=e.uid;return createVNode(ListItem,{key:o,locale:a,prefixCls:p.value,file:e,items:d,progress:k,listType:t,isImgUrl:r,showPreviewIcon:f,showRemoveIcon:v,showDownloadIcon:h,onPreview:l,onDownload:i,onClose:c,removeIcon:g,previewIcon:y,downloadIcon:b,itemRender:w},_extends(_extends({},n),{iconRender:u,actionIconRender:s}))})),x?withDirectives(createVNode(HackSlot,{key:"__ant_upload_appendAction"},{default:function(){return _}}),[[vShow,!!C]]):null]}})}}}),__awaiter=globalThis&&globalThis.__awaiter||function(t,n,a,r){return new(a||(a=Promise))((function(o,l){function i(t){try{u(r.next(t))}catch(e){l(e)}}function c(t){try{u(r.throw(t))}catch(e){l(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof a?t:new a((function(e){e(t)}))).then(i,c)}u((r=r.apply(t,n||[])).next())}))},__rest$1=globalThis&&globalThis.__rest||function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r".ant-select-auto-complete{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum}.ant-select-auto-complete .ant-select-clear{right:13px}\n")(),index$a=(()=>'@-webkit-keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-cascader-checkbox{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-inner,.ant-cascader-checkbox:hover .ant-cascader-checkbox-inner,.ant-cascader-checkbox-input:focus+.ant-cascader-checkbox-inner{border-color:#6495ed}.ant-cascader-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #6495ed;border-radius:2px;visibility:hidden;-webkit-animation:antCheckboxEffect .36s ease-in-out;animation:antCheckboxEffect .36s ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;content:""}.ant-cascader-checkbox:hover:after,.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox:after{visibility:visible}.ant-cascader-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-cascader-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-cascader-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner{background-color:#6495ed;border-color:#6495ed}.ant-cascader-checkbox-disabled{cursor:not-allowed}.ant-cascader-checkbox-disabled.ant-cascader-checkbox-checked .ant-cascader-checkbox-inner:after{border-color:#00000040;-webkit-animation-name:none;animation-name:none}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;-webkit-animation-name:none;animation-name:none}.ant-cascader-checkbox-disabled+span{color:#00000040;cursor:not-allowed}.ant-cascader-checkbox-disabled:hover:after,.ant-cascader-checkbox-wrapper:hover .ant-cascader-checkbox-disabled:after{visibility:hidden}.ant-cascader-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-cascader-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\\a0"}.ant-cascader-checkbox-wrapper.ant-cascader-checkbox-wrapper-disabled{cursor:not-allowed}.ant-cascader-checkbox-wrapper+.ant-cascader-checkbox-wrapper{margin-left:8px}.ant-cascader-checkbox+span{padding-right:8px;padding-left:8px}.ant-cascader-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-block}.ant-cascader-checkbox-group-item{margin-right:8px}.ant-cascader-checkbox-group-item:last-child{margin-right:0}.ant-cascader-checkbox-group-item+.ant-cascader-checkbox-group-item{margin-left:0}.ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-cascader-checkbox-indeterminate .ant-cascader-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#6495ed;border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-cascader-checkbox-indeterminate.ant-cascader-checkbox-disabled .ant-cascader-checkbox-inner:after{background-color:#00000040;border-color:#00000040}.ant-cascader{width:184px}.ant-cascader-checkbox{top:0;margin-right:8px}.ant-cascader-menus{display:flex;flex-wrap:nowrap;align-items:flex-start}.ant-cascader-menus.ant-cascader-menu-empty .ant-cascader-menu{width:100%;height:auto}.ant-cascader-menu{min-width:111px;height:180px;margin:-4px 0;padding:4px 0;overflow:auto;vertical-align:top;list-style:none;border-right:1px solid #f0f0f0;-ms-overflow-style:-ms-autohiding-scrollbar}.ant-cascader-menu-item{display:flex;flex-wrap:nowrap;align-items:center;padding:5px 12px;overflow:hidden;line-height:22px;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;transition:all .3s}.ant-cascader-menu-item:hover{background:#f5f5f5}.ant-cascader-menu-item-disabled{color:#00000040;cursor:not-allowed}.ant-cascader-menu-item-disabled:hover{background:transparent}.ant-cascader-menu-empty .ant-cascader-menu-item{color:#00000040;cursor:default;pointer-events:none}.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled),.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover{font-weight:600;background-color:#f0f8ff}.ant-cascader-menu-item-content{flex:auto}.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-loading-icon{margin-left:4px;color:#00000073;font-size:10px}.ant-cascader-menu-item-disabled.ant-cascader-menu-item-expand .ant-cascader-menu-item-expand-icon,.ant-cascader-menu-item-disabled.ant-cascader-menu-item-loading-icon{color:#00000040}.ant-cascader-menu-item-keyword{color:#ff4d4f}.ant-cascader-rtl .ant-cascader-menu-item-expand-icon,.ant-cascader-rtl .ant-cascader-menu-item-loading-icon{margin-right:4px;margin-left:0}.ant-cascader-rtl .ant-cascader-checkbox{top:0;margin-right:0;margin-left:8px}\n')(),index$9=(()=>'.ant-picker{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;padding:4px 11px;position:relative;display:inline-flex;align-items:center;background:#fff;border:1px solid #d9d9d9;border-radius:2px;transition:border .3s,box-shadow .3s}.ant-picker:hover,.ant-picker-focused{border-color:#91b9fa;border-right-width:1px!important}.ant-picker-focused{border-color:#91b9fa;box-shadow:0 0 0 2px #6495ed33;border-right-width:1px!important;outline:0}.ant-picker.ant-picker-disabled{background:#f5f5f5;border-color:#d9d9d9;cursor:not-allowed}.ant-picker.ant-picker-disabled .ant-picker-suffix{color:#00000040}.ant-picker.ant-picker-borderless{background-color:transparent!important;border-color:transparent!important;box-shadow:none!important}.ant-picker-input{position:relative;display:inline-flex;align-items:center;width:100%}.ant-picker-input>input{position:relative;display:inline-block;width:100%;min-width:0;color:#000000d9;font-size:14px;line-height:1.5715;background-color:#fff;background-image:none;border:1px solid #d9d9d9;border-radius:2px;transition:all .3s;flex:auto;min-width:1px;height:auto;padding:0;background:transparent;border:0}.ant-picker-input>input::-moz-placeholder{opacity:1}.ant-picker-input>input::placeholder{color:#bfbfbf;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-picker-input>input:-moz-placeholder-shown{text-overflow:ellipsis}.ant-picker-input>input:placeholder-shown{text-overflow:ellipsis}.ant-picker-input>input:hover{border-color:#91b9fa;border-right-width:1px!important}.ant-picker-input>input:focus,.ant-picker-input>input-focused{border-color:#91b9fa;box-shadow:0 0 0 2px #6495ed33;border-right-width:1px!important;outline:0}.ant-picker-input>input-disabled{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input-disabled:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-picker-input>input[disabled]{color:#00000040;background-color:#f5f5f5;border-color:#d9d9d9;box-shadow:none;cursor:not-allowed;opacity:1}.ant-picker-input>input[disabled]:hover{border-color:#d9d9d9;border-right-width:1px!important}.ant-picker-input>input-borderless,.ant-picker-input>input-borderless:hover,.ant-picker-input>input-borderless:focus,.ant-picker-input>input-borderless-focused,.ant-picker-input>input-borderless-disabled,.ant-picker-input>input-borderless[disabled]{background-color:transparent;border:none;box-shadow:none}textarea.ant-picker-input>input{max-width:100%;height:auto;min-height:32px;line-height:1.5715;vertical-align:bottom;transition:all .3s,height 0s}.ant-picker-input>input-lg{padding:6.5px 11px;font-size:16px}.ant-picker-input>input-sm{padding:0 7px}.ant-picker-input>input:focus{box-shadow:none}.ant-picker-input>input[disabled]{background:transparent}.ant-picker-input:hover .ant-picker-clear{opacity:1}.ant-picker-input-placeholder>input{color:#bfbfbf}.ant-picker-large{padding:6.5px 11px}.ant-picker-large .ant-picker-input>input{font-size:16px}.ant-picker-small{padding:0 7px}.ant-picker-suffix{align-self:center;margin-left:4px;color:#00000040;line-height:1;pointer-events:none}.ant-picker-suffix>*{vertical-align:top}.ant-picker-clear{position:absolute;top:50%;right:0;color:#00000040;line-height:1;background:#fff;transform:translateY(-50%);cursor:pointer;opacity:0;transition:opacity .3s,color .3s}.ant-picker-clear>*{vertical-align:top}.ant-picker-clear:hover{color:#00000073}.ant-picker-separator{position:relative;display:inline-block;width:1em;height:16px;color:#00000040;font-size:16px;vertical-align:top;cursor:default}.ant-picker-focused .ant-picker-separator{color:#00000073}.ant-picker-disabled .ant-picker-range-separator .ant-picker-separator{cursor:not-allowed}.ant-picker-range{position:relative;display:inline-flex}.ant-picker-range .ant-picker-clear{right:11px}.ant-picker-range:hover .ant-picker-clear{opacity:1}.ant-picker-range .ant-picker-active-bar{bottom:-1px;height:2px;margin-left:11px;background:#6495ed;opacity:0;transition:all .3s ease-out;pointer-events:none}.ant-picker-range.ant-picker-focused .ant-picker-active-bar{opacity:1}.ant-picker-range-separator{align-items:center;padding:0 8px;line-height:1}.ant-picker-range.ant-picker-small .ant-picker-clear{right:7px}.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-left:7px}.ant-picker-dropdown{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:absolute;z-index:1050}.ant-picker-dropdown-hidden{display:none}.ant-picker-dropdown-placement-bottomLeft .ant-picker-range-arrow{top:1.66666667px;display:block;transform:rotate(-45deg)}.ant-picker-dropdown-placement-topLeft .ant-picker-range-arrow{bottom:1.66666667px;display:block;transform:rotate(135deg)}.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-topRight,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-topRight{-webkit-animation-name:antSlideDownIn;animation-name:antSlideDownIn}.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-enter.ant-slide-up-enter-active.ant-picker-dropdown-placement-bottomRight,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-appear.ant-slide-up-appear-active.ant-picker-dropdown-placement-bottomRight{-webkit-animation-name:antSlideUpIn;animation-name:antSlideUpIn}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-topRight{-webkit-animation-name:antSlideDownOut;animation-name:antSlideDownOut}.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomLeft,.ant-picker-dropdown.ant-slide-up-leave.ant-slide-up-leave-active.ant-picker-dropdown-placement-bottomRight{-webkit-animation-name:antSlideUpOut;animation-name:antSlideUpOut}.ant-picker-dropdown-range{padding:6.66666667px 0}.ant-picker-dropdown-range-hidden{display:none}.ant-picker-dropdown .ant-picker-panel>.ant-picker-time-panel{padding-top:4px}.ant-picker-ranges{margin-bottom:0;padding:4px 12px;overflow:hidden;line-height:34px;text-align:left;list-style:none}.ant-picker-ranges>li{display:inline-block}.ant-picker-ranges .ant-picker-preset>.ant-tag-blue{color:#6495ed;background:#f0f8ff;border-color:#e6f1ff;cursor:pointer}.ant-picker-ranges .ant-picker-ok{float:right;margin-left:8px}.ant-picker-range-wrapper{display:flex}.ant-picker-range-arrow{position:absolute;z-index:1;display:none;width:10px;height:10px;margin-left:16.5px;box-shadow:2px -2px 6px #0000000f;transition:left .3s ease-out}.ant-picker-range-arrow:after{position:absolute;top:1px;right:1px;width:10px;height:10px;border:5px solid #f0f0f0;border-color:#fff #fff transparent transparent;content:""}.ant-picker-panel-container{overflow:hidden;vertical-align:top;background:#fff;border-radius:2px;box-shadow:0 3px 6px -4px #0000001f,0 6px 16px #00000014,0 9px 28px 8px #0000000d;transition:margin .3s}.ant-picker-panel-container .ant-picker-panels{display:inline-flex;flex-wrap:nowrap;direction:ltr}.ant-picker-panel-container .ant-picker-panel{vertical-align:top;background:transparent;border-width:0 0 1px 0;border-radius:0}.ant-picker-panel-container .ant-picker-panel .ant-picker-content,.ant-picker-panel-container .ant-picker-panel table{text-align:center}.ant-picker-panel-container .ant-picker-panel-focused{border-color:#f0f0f0}.ant-picker-panel{display:inline-flex;flex-direction:column;text-align:center;background:#fff;border:1px solid #f0f0f0;border-radius:2px;outline:none}.ant-picker-panel-focused{border-color:#6495ed}.ant-picker-decade-panel,.ant-picker-year-panel,.ant-picker-quarter-panel,.ant-picker-month-panel,.ant-picker-week-panel,.ant-picker-date-panel,.ant-picker-time-panel{display:flex;flex-direction:column;width:280px}.ant-picker-header{display:flex;padding:0 8px;color:#000000d9;border-bottom:1px solid #f0f0f0}.ant-picker-header>*{flex:none}.ant-picker-header button{padding:0;color:#00000040;line-height:40px;background:transparent;border:0;cursor:pointer;transition:color .3s}.ant-picker-header>button{min-width:1.6em;font-size:14px}.ant-picker-header>button:hover{color:#000000d9}.ant-picker-header-view{flex:auto;font-weight:500;line-height:40px}.ant-picker-header-view button{color:inherit;font-weight:inherit}.ant-picker-header-view button:not(:first-child){margin-left:8px}.ant-picker-header-view button:hover{color:#6495ed}.ant-picker-prev-icon,.ant-picker-next-icon,.ant-picker-super-prev-icon,.ant-picker-super-next-icon{position:relative;display:inline-block;width:7px;height:7px}.ant-picker-prev-icon:before,.ant-picker-next-icon:before,.ant-picker-super-prev-icon:before,.ant-picker-super-next-icon:before{position:absolute;top:0;left:0;display:inline-block;width:7px;height:7px;border:0 solid currentcolor;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-super-prev-icon:after,.ant-picker-super-next-icon:after{position:absolute;top:4px;left:4px;display:inline-block;width:7px;height:7px;border:0 solid currentcolor;border-width:1.5px 0 0 1.5px;content:""}.ant-picker-prev-icon,.ant-picker-super-prev-icon{transform:rotate(-45deg)}.ant-picker-next-icon,.ant-picker-super-next-icon{transform:rotate(135deg)}.ant-picker-content{width:100%;table-layout:fixed;border-collapse:collapse}.ant-picker-content th,.ant-picker-content td{position:relative;min-width:24px;font-weight:400}.ant-picker-content th{height:30px;color:#000000d9;line-height:30px}.ant-picker-cell{padding:3px 0;color:#00000040;cursor:pointer}.ant-picker-cell-in-view{color:#000000d9}.ant-picker-cell:before{position:absolute;top:50%;right:0;left:0;z-index:1;height:24px;transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell:hover:not(.ant-picker-cell-in-view) .ant-picker-cell-inner,.ant-picker-cell:hover:not(.ant-picker-cell-selected):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):not(.ant-picker-cell-range-hover-start):not(.ant-picker-cell-range-hover-end) .ant-picker-cell-inner{background:#f5f5f5}.ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner:before{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;border:1px solid #6495ed;border-radius:2px;content:""}.ant-picker-cell-in-view.ant-picker-cell-in-range{position:relative}.ant-picker-cell-in-view.ant-picker-cell-in-range:before{background:#f0f8ff}.ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-range-start .ant-picker-cell-inner,.ant-picker-cell-in-view.ant-picker-cell-range-end .ant-picker-cell-inner{color:#fff;background:#6495ed}.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):before,.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):before{background:#f0f8ff}.ant-picker-cell-in-view.ant-picker-cell-range-start:before{left:50%}.ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:50%}.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:not(.ant-picker-cell-in-range):not(.ant-picker-cell-range-start):not(.ant-picker-cell-range-end):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-end-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-start.ant-picker-cell-range-end.ant-picker-cell-range-start-near-hover:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end.ant-picker-cell-range-end-single:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-in-range):after{position:absolute;top:50%;z-index:0;height:24px;border-top:1px dashed #bfd3f8;border-bottom:1px dashed #bfd3f8;transform:translateY(-50%);transition:all .3s;content:""}.ant-picker-cell-range-hover-start:after,.ant-picker-cell-range-hover-end:after,.ant-picker-cell-range-hover:after{right:0;left:2px}.ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-end.ant-picker-cell-range-hover:before,.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single).ant-picker-cell-range-hover-start:before,.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single).ant-picker-cell-range-hover-end:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start:before,.ant-picker-panel>:not(.ant-picker-date-panel) .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end:before{background:#ffffff}.ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after,.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{position:absolute;top:0;bottom:0;z-index:-1;background:#ffffff;transition:all .3s;content:""}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:50%}.ant-picker-cell-range-hover.ant-picker-cell-range-end:after{left:50%}tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:first-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after{left:6px;border-left:1px dashed #bfd3f8;border-top-left-radius:2px;border-bottom-left-radius:2px}tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:last-child:after,tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after{right:6px;border-right:1px dashed #bfd3f8;border-top-right-radius:2px;border-bottom-right-radius:2px}.ant-picker-cell-disabled{color:#00000040;pointer-events:none}.ant-picker-cell-disabled .ant-picker-cell-inner{background:transparent}.ant-picker-cell-disabled:before{background:rgba(0,0,0,.04)}.ant-picker-cell-disabled.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:#00000040}.ant-picker-decade-panel .ant-picker-content,.ant-picker-year-panel .ant-picker-content,.ant-picker-quarter-panel .ant-picker-content,.ant-picker-month-panel .ant-picker-content{height:264px}.ant-picker-decade-panel .ant-picker-cell-inner,.ant-picker-year-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-month-panel .ant-picker-cell-inner{padding:0 8px}.ant-picker-quarter-panel .ant-picker-content{height:56px}.ant-picker-footer{width:-webkit-min-content;width:-moz-min-content;width:min-content;min-width:100%;line-height:38px;text-align:center;border-bottom:1px solid transparent}.ant-picker-panel .ant-picker-footer{border-top:1px solid #f0f0f0}.ant-picker-footer-extra{padding:0 12px;line-height:38px;text-align:left}.ant-picker-footer-extra:not(:last-child){border-bottom:1px solid #f0f0f0}.ant-picker-now{text-align:left}.ant-picker-today-btn{color:#6495ed}.ant-picker-today-btn:hover{color:#91b9fa}.ant-picker-today-btn:active{color:#4a71c7}.ant-picker-today-btn.ant-picker-today-btn-disabled{color:#00000040;cursor:not-allowed}.ant-picker-decade-panel .ant-picker-cell-inner{padding:0 4px}.ant-picker-decade-panel .ant-picker-cell:before{display:none}.ant-picker-year-panel .ant-picker-body,.ant-picker-quarter-panel .ant-picker-body,.ant-picker-month-panel .ant-picker-body{padding:0 8px}.ant-picker-year-panel .ant-picker-cell-inner,.ant-picker-quarter-panel .ant-picker-cell-inner,.ant-picker-month-panel .ant-picker-cell-inner{width:60px}.ant-picker-year-panel .ant-picker-cell-range-hover-start:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-month-panel .ant-picker-cell-range-hover-start:after{left:14px;border-left:1px dashed #bfd3f8;border-radius:2px 0 0 2px}.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-start:after,.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-start:after{right:14px;border-right:1px dashed #bfd3f8;border-radius:0 2px 2px 0}.ant-picker-year-panel .ant-picker-cell-range-hover-end:after,.ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-month-panel .ant-picker-cell-range-hover-end:after{right:14px;border-right:1px dashed #bfd3f8;border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-year-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-quarter-panel .ant-picker-cell-range-hover-end:after,.ant-picker-panel-rtl .ant-picker-month-panel .ant-picker-cell-range-hover-end:after{left:14px;border-left:1px dashed #bfd3f8;border-radius:2px 0 0 2px}.ant-picker-week-panel .ant-picker-body{padding:8px 12px}.ant-picker-week-panel .ant-picker-cell:hover .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell-selected .ant-picker-cell-inner,.ant-picker-week-panel .ant-picker-cell .ant-picker-cell-inner{background:transparent!important}.ant-picker-week-panel-row td{transition:background .3s}.ant-picker-week-panel-row:hover td{background:#f5f5f5}.ant-picker-week-panel-row-selected td,.ant-picker-week-panel-row-selected:hover td{background:#6495ed}.ant-picker-week-panel-row-selected td.ant-picker-cell-week,.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-week{color:#ffffff80}.ant-picker-week-panel-row-selected td.ant-picker-cell-today .ant-picker-cell-inner:before,.ant-picker-week-panel-row-selected:hover td.ant-picker-cell-today .ant-picker-cell-inner:before{border-color:#fff}.ant-picker-week-panel-row-selected td .ant-picker-cell-inner,.ant-picker-week-panel-row-selected:hover td .ant-picker-cell-inner{color:#fff}.ant-picker-date-panel .ant-picker-body{padding:8px 12px}.ant-picker-date-panel .ant-picker-content{width:252px}.ant-picker-date-panel .ant-picker-content th{width:36px}.ant-picker-datetime-panel{display:flex}.ant-picker-datetime-panel .ant-picker-time-panel{border-left:1px solid #f0f0f0}.ant-picker-datetime-panel .ant-picker-date-panel,.ant-picker-datetime-panel .ant-picker-time-panel{transition:opacity .3s}.ant-picker-datetime-panel-active .ant-picker-date-panel,.ant-picker-datetime-panel-active .ant-picker-time-panel{opacity:.3}.ant-picker-datetime-panel-active .ant-picker-date-panel-active,.ant-picker-datetime-panel-active .ant-picker-time-panel-active{opacity:1}.ant-picker-time-panel{width:auto;min-width:auto}.ant-picker-time-panel .ant-picker-content{display:flex;flex:auto;height:224px}.ant-picker-time-panel-column{flex:1 0 auto;width:56px;margin:0;padding:0;overflow-y:hidden;text-align:left;list-style:none;transition:background .3s}.ant-picker-time-panel-column:after{display:block;height:196px;content:""}.ant-picker-datetime-panel .ant-picker-time-panel-column:after{height:198px}.ant-picker-time-panel-column:not(:first-child){border-left:1px solid #f0f0f0}.ant-picker-time-panel-column-active{background:rgba(240,248,255,.2)}.ant-picker-time-panel-column:hover{overflow-y:auto}.ant-picker-time-panel-column>li{margin:0;padding:0}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner{display:block;width:100%;height:28px;margin:0;padding:0 0 0 14px;color:#000000d9;line-height:28px;border-radius:0;cursor:pointer;transition:background .3s}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell .ant-picker-time-panel-cell-inner:hover{background:#f5f5f5}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-selected .ant-picker-time-panel-cell-inner{background:#f0f8ff}.ant-picker-time-panel-column>li.ant-picker-time-panel-cell-disabled .ant-picker-time-panel-cell-inner{color:#00000040;background:transparent;cursor:not-allowed}_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,:root .ant-picker-range-wrapper .ant-picker-month-panel .ant-picker-cell,_:-ms-fullscreen .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell,:root .ant-picker-range-wrapper .ant-picker-year-panel .ant-picker-cell{padding:21px 0}.ant-picker-rtl{direction:rtl}.ant-picker-rtl .ant-picker-suffix{margin-right:4px;margin-left:0}.ant-picker-rtl .ant-picker-clear{right:auto;left:0}.ant-picker-rtl .ant-picker-separator{transform:rotate(180deg)}.ant-picker-panel-rtl .ant-picker-header-view button:not(:first-child){margin-right:8px;margin-left:0}.ant-picker-rtl.ant-picker-range .ant-picker-clear{right:auto;left:11px}.ant-picker-rtl.ant-picker-range .ant-picker-active-bar{margin-right:11px;margin-left:0}.ant-picker-rtl.ant-picker-range.ant-picker-small .ant-picker-active-bar{margin-right:7px}.ant-picker-dropdown-rtl .ant-picker-ranges{text-align:right}.ant-picker-dropdown-rtl .ant-picker-ranges .ant-picker-ok{float:left;margin-right:8px;margin-left:0}.ant-picker-panel-rtl{direction:rtl}.ant-picker-panel-rtl .ant-picker-prev-icon,.ant-picker-panel-rtl .ant-picker-super-prev-icon{transform:rotate(135deg)}.ant-picker-panel-rtl .ant-picker-next-icon,.ant-picker-panel-rtl .ant-picker-super-next-icon{transform:rotate(-45deg)}.ant-picker-cell .ant-picker-cell-inner{position:relative;z-index:2;display:inline-block;min-width:24px;height:24px;line-height:24px;border-radius:2px;transition:background .3s,border .3s}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:before{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:before{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start.ant-picker-cell-range-end:before{right:50%;left:50%}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-start .ant-picker-cell-inner:after{right:0;left:-6px}.ant-picker-panel-rtl .ant-picker-date-panel .ant-picker-cell-in-view.ant-picker-cell-in-range.ant-picker-cell-range-hover-end .ant-picker-cell-inner:after{right:-6px;left:0}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-start:after{right:0;left:50%}.ant-picker-panel-rtl .ant-picker-cell-range-hover.ant-picker-cell-range-end:after{right:50%;left:0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-start:not(.ant-picker-cell-range-start-single):not(.ant-picker-cell-range-end) .ant-picker-cell-inner{border-radius:0 2px 2px 0}.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-end:not(.ant-picker-cell-range-end-single):not(.ant-picker-cell-range-start) .ant-picker-cell-inner{border-radius:2px 0 0 2px}.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):first-child:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start.ant-picker-cell-range-hover-edge-start-near-range:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover-edge-start-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-start:after{right:6px;left:0;border-right:1px dashed #bfd3f8;border-left:none;border-radius:0 2px 2px 0}.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover:not(.ant-picker-cell-selected):last-child:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-edge-end.ant-picker-cell-range-hover-edge-end-near-range:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover-edge-end-near-range):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-range-hover-end:after{right:0;left:6px;border-right:none;border-left:1px dashed #bfd3f8;border-radius:2px 0 0 2px}.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-start:last-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-range-hover-end:first-child:after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover-end.ant-picker-cell-range-hover-edge-start:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl .ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover-start.ant-picker-cell-range-hover-edge-end:not(.ant-picker-cell-range-hover):after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-start.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-start:last-child:after,.ant-picker-panel-rtl tr>.ant-picker-cell-in-view.ant-picker-cell-end.ant-picker-cell-range-hover.ant-picker-cell-range-hover-edge-end:first-child:after{right:6px;left:6px;border-right:1px dashed #bfd3f8;border-left:1px dashed #bfd3f8;border-radius:2px}.ant-picker-dropdown-rtl .ant-picker-footer-extra{direction:rtl;text-align:right}.ant-picker-panel-rtl .ant-picker-time-panel{direction:ltr}\n')(),index$8=(()=>"")(),index$7=(()=>'@-webkit-keyframes ant-tree-node-fx-do-not-use{0%{opacity:0}to{opacity:1}}@keyframes ant-tree-node-fx-do-not-use{0%{opacity:0}to{opacity:1}}@-webkit-keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-select-tree-checkbox{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;top:.2em;line-height:1;white-space:nowrap;outline:none;cursor:pointer}.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner,.ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner,.ant-select-tree-checkbox-input:focus+.ant-select-tree-checkbox-inner{border-color:#6495ed}.ant-select-tree-checkbox-checked:after{position:absolute;top:0;left:0;width:100%;height:100%;border:1px solid #6495ed;border-radius:2px;visibility:hidden;-webkit-animation:antCheckboxEffect .36s ease-in-out;animation:antCheckboxEffect .36s ease-in-out;-webkit-animation-fill-mode:backwards;animation-fill-mode:backwards;content:""}.ant-select-tree-checkbox:hover:after,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox:after{visibility:visible}.ant-select-tree-checkbox-inner{position:relative;top:0;left:0;display:block;width:16px;height:16px;direction:ltr;background-color:#fff;border:1px solid #d9d9d9;border-radius:2px;border-collapse:separate;transition:all .3s}.ant-select-tree-checkbox-inner:after{position:absolute;top:50%;left:21.5%;display:table;width:5.71428571px;height:9.14285714px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(0) translate(-50%,-50%);opacity:0;transition:all .1s cubic-bezier(.71,-.46,.88,.6),opacity .1s;content:" "}.ant-select-tree-checkbox-input{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;cursor:pointer;opacity:0}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{position:absolute;display:table;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg) scale(1) translate(-50%,-50%);opacity:1;transition:all .2s cubic-bezier(.12,.4,.29,1.46) .1s;content:" "}.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner{background-color:#6495ed;border-color:#6495ed}.ant-select-tree-checkbox-disabled{cursor:not-allowed}.ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after{border-color:#00000040;-webkit-animation-name:none;animation-name:none}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input{cursor:not-allowed;pointer-events:none}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner{background-color:#f5f5f5;border-color:#d9d9d9!important}.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{border-color:#f5f5f5;border-collapse:separate;-webkit-animation-name:none;animation-name:none}.ant-select-tree-checkbox-disabled+span{color:#00000040;cursor:not-allowed}.ant-select-tree-checkbox-disabled:hover:after,.ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-disabled:after{visibility:hidden}.ant-select-tree-checkbox-wrapper{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-flex;align-items:baseline;line-height:unset;cursor:pointer}.ant-select-tree-checkbox-wrapper:after{display:inline-block;width:0;overflow:hidden;content:"\\a0"}.ant-select-tree-checkbox-wrapper.ant-select-tree-checkbox-wrapper-disabled{cursor:not-allowed}.ant-select-tree-checkbox-wrapper+.ant-select-tree-checkbox-wrapper{margin-left:8px}.ant-select-tree-checkbox+span{padding-right:8px;padding-left:8px}.ant-select-tree-checkbox-group{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-block}.ant-select-tree-checkbox-group-item{margin-right:8px}.ant-select-tree-checkbox-group-item:last-child{margin-right:0}.ant-select-tree-checkbox-group-item+.ant-select-tree-checkbox-group-item{margin-left:0}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner{background-color:#fff;border-color:#d9d9d9}.ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner:after{top:50%;left:50%;width:8px;height:8px;background-color:#6495ed;border:0;transform:translate(-50%,-50%) scale(1);opacity:1;content:" "}.ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after{background-color:#00000040;border-color:#00000040}.ant-tree-select-dropdown{padding:8px 4px}.ant-tree-select-dropdown-rtl{direction:rtl}.ant-tree-select-dropdown .ant-select-tree{border-radius:0}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner{align-items:stretch}.ant-tree-select-dropdown .ant-select-tree-list-holder-inner .ant-select-tree-treenode .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;background:#fff;border-radius:2px;transition:background-color .3s}.ant-select-tree-focused:not(:hover):not(.ant-select-tree-active-focused){background:#f0f8ff}.ant-select-tree-list-holder-inner{align-items:flex-start}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner{align-items:stretch}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-node-content-wrapper{flex:auto}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging{position:relative}.ant-select-tree.ant-select-tree-block-node .ant-select-tree-list-holder-inner .ant-select-tree-treenode.dragging:after{position:absolute;top:0;right:0;bottom:4px;left:0;border:1px solid #6495ed;opacity:0;-webkit-animation:ant-tree-node-fx-do-not-use .3s;animation:ant-tree-node-fx-do-not-use .3s;-webkit-animation-play-state:running;animation-play-state:running;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;content:"";pointer-events:none}.ant-select-tree .ant-select-tree-treenode{display:flex;align-items:flex-start;padding:0 0 4px;outline:none}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper{color:#00000040;cursor:not-allowed}.ant-select-tree .ant-select-tree-treenode-disabled .ant-select-tree-node-content-wrapper:hover{background:transparent}.ant-select-tree .ant-select-tree-treenode-active .ant-select-tree-node-content-wrapper{background:#f5f5f5}.ant-select-tree .ant-select-tree-treenode:not(.ant-select-tree .ant-select-tree-treenode-disabled).filter-node .ant-select-tree-title{color:inherit;font-weight:500}.ant-select-tree-indent{align-self:stretch;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-select-tree-indent-unit{display:inline-block;width:24px}.ant-select-tree-draggable-icon{width:24px;line-height:24px;text-align:center;opacity:.2;transition:opacity .3s}.ant-select-tree-treenode:hover .ant-select-tree-draggable-icon{opacity:.45}.ant-select-tree-switcher{position:relative;flex:none;align-self:stretch;width:24px;margin:0;line-height:24px;text-align:center;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-select-tree-switcher .ant-tree-switcher-icon,.ant-select-tree-switcher .ant-select-tree-switcher-icon{display:inline-block;font-size:10px;vertical-align:baseline}.ant-select-tree-switcher .ant-tree-switcher-icon svg,.ant-select-tree-switcher .ant-select-tree-switcher-icon svg{transition:transform .3s}.ant-select-tree-switcher-noop{cursor:default}.ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(-90deg)}.ant-select-tree-switcher-loading-icon{color:#6495ed}.ant-select-tree-switcher-leaf-line{position:relative;z-index:1;display:inline-block;width:100%;height:100%}.ant-select-tree-switcher-leaf-line:before{position:absolute;top:0;right:12px;bottom:-4px;margin-left:-1px;border-right:1px solid #d9d9d9;content:" "}.ant-select-tree-switcher-leaf-line:after{position:absolute;width:10px;height:14px;border-bottom:1px solid #d9d9d9;content:" "}.ant-select-tree-checkbox{top:initial;margin:4px 8px 0 0}.ant-select-tree .ant-select-tree-node-content-wrapper{position:relative;z-index:auto;min-height:24px;margin:0;padding:0 4px;color:inherit;line-height:24px;background:transparent;border-radius:2px;cursor:pointer;transition:all .3s,border 0s,line-height 0s,box-shadow 0s}.ant-select-tree .ant-select-tree-node-content-wrapper:hover{background-color:#f5f5f5}.ant-select-tree .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected{background-color:#f0f7ff}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle{display:inline-block;width:24px;height:24px;line-height:24px;text-align:center;vertical-align:top}.ant-select-tree .ant-select-tree-node-content-wrapper .ant-select-tree-iconEle:empty{display:none}.ant-select-tree-unselectable .ant-select-tree-node-content-wrapper:hover{background-color:transparent}.ant-select-tree-node-content-wrapper{line-height:24px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-select-tree-node-content-wrapper .ant-tree-drop-indicator{position:absolute;z-index:1;height:2px;background-color:#6495ed;border-radius:1px;pointer-events:none}.ant-select-tree-node-content-wrapper .ant-tree-drop-indicator:after{position:absolute;top:-3px;left:-6px;width:8px;height:8px;background-color:transparent;border:2px solid #6495ed;border-radius:50%;content:""}.ant-select-tree .ant-select-tree-treenode.drop-container>[draggable]{box-shadow:0 0 0 2px #6495ed}.ant-select-tree-show-line .ant-select-tree-indent-unit{position:relative;height:100%}.ant-select-tree-show-line .ant-select-tree-indent-unit:before{position:absolute;top:0;right:12px;bottom:-4px;border-right:1px solid #d9d9d9;content:""}.ant-select-tree-show-line .ant-select-tree-indent-unit-end:before{display:none}.ant-select-tree-show-line .ant-select-tree-switcher{background:#fff}.ant-select-tree-show-line .ant-select-tree-switcher-line-icon{vertical-align:-.15em}.ant-select-tree .ant-select-tree-treenode-leaf-last .ant-select-tree-switcher-leaf-line:before{top:auto!important;bottom:auto!important;height:14px!important}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher_close .ant-select-tree-switcher-icon svg{transform:rotate(90deg)}.ant-tree-select-dropdown-rtl .ant-select-tree .ant-select-tree-switcher-loading-icon{transform:scaleY(-1)}\n')(),index$6=(()=>".ant-slider{box-sizing:border-box;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;height:12px;margin:10px 6px;padding:4px 0;cursor:pointer;touch-action:none}.ant-slider-vertical{width:12px;height:100%;margin:6px 10px;padding:0 4px}.ant-slider-vertical .ant-slider-rail{width:4px;height:100%}.ant-slider-vertical .ant-slider-track{width:4px}.ant-slider-vertical .ant-slider-handle{margin-top:-6px;margin-left:-5px}.ant-slider-vertical .ant-slider-mark{top:0;left:12px;width:18px;height:100%}.ant-slider-vertical .ant-slider-mark-text{left:4px;white-space:nowrap}.ant-slider-vertical .ant-slider-step{width:4px;height:100%}.ant-slider-vertical .ant-slider-dot{top:auto;left:2px;margin-bottom:-4px}.ant-slider-tooltip .ant-tooltip-inner{min-width:unset}.ant-slider-rtl.ant-slider-vertical .ant-slider-handle{margin-right:-5px;margin-left:0}.ant-slider-rtl.ant-slider-vertical .ant-slider-mark{right:12px;left:auto}.ant-slider-rtl.ant-slider-vertical .ant-slider-mark-text{right:4px;left:auto}.ant-slider-rtl.ant-slider-vertical .ant-slider-dot{right:2px;left:auto}.ant-slider-with-marks{margin-bottom:28px}.ant-slider-rail{position:absolute;width:100%;height:4px;background-color:#f5f5f5;border-radius:2px;transition:background-color .3s}.ant-slider-track{position:absolute;height:4px;background-color:#e6f1ff;border-radius:2px;transition:background-color .3s}.ant-slider-handle{position:absolute;width:14px;height:14px;margin-top:-5px;background-color:#fff;border:solid 2px #e6f1ff;border-radius:50%;box-shadow:0;cursor:pointer;transition:border-color .3s,box-shadow .6s,transform .3s cubic-bezier(.18,.89,.32,1.28)}.ant-slider-handle-dragging.ant-slider-handle-dragging.ant-slider-handle-dragging{border-color:#83aaf1;box-shadow:0 0 0 5px #6495ed1f}.ant-slider-handle:focus{border-color:#83aaf1;outline:none;box-shadow:0 0 0 5px #6495ed1f}.ant-slider-handle.ant-tooltip-open{border-color:#6495ed}.ant-slider:hover .ant-slider-rail{background-color:#e1e1e1}.ant-slider:hover .ant-slider-track{background-color:#bdd8ff}.ant-slider:hover .ant-slider-handle:not(.ant-tooltip-open){border-color:#bdd8ff}.ant-slider-mark{position:absolute;top:14px;left:0;width:100%;font-size:14px}.ant-slider-mark-text{position:absolute;display:inline-block;color:#00000073;text-align:center;word-break:keep-all;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-slider-mark-text-active{color:#000000d9}.ant-slider-step{position:absolute;width:100%;height:4px;background:transparent}.ant-slider-dot{position:absolute;top:-2px;width:8px;height:8px;margin-left:-4px;background-color:#fff;border:2px solid #f0f0f0;border-radius:50%;cursor:pointer}.ant-slider-dot:first-child{margin-left:-4px}.ant-slider-dot:last-child{margin-left:-4px}.ant-slider-dot-active{border-color:#b2caf6}.ant-slider-disabled{cursor:not-allowed}.ant-slider-disabled .ant-slider-rail{background-color:#f5f5f5!important}.ant-slider-disabled .ant-slider-track{background-color:#00000040!important}.ant-slider-disabled .ant-slider-handle,.ant-slider-disabled .ant-slider-dot{background-color:#fff;border-color:#00000040!important;box-shadow:none;cursor:not-allowed}.ant-slider-disabled .ant-slider-mark-text,.ant-slider-disabled .ant-slider-dot{cursor:not-allowed!important}.ant-slider-rtl{direction:rtl}.ant-slider-rtl .ant-slider-mark{right:0;left:auto}.ant-slider-rtl .ant-slider-dot,.ant-slider-rtl .ant-slider-dot:first-child{margin-right:-4px;margin-left:0}.ant-slider-rtl .ant-slider-dot:last-child{margin-right:-4px;margin-left:0}\n")(),index$5=(()=>".ant-rate{box-sizing:border-box;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:tnum;display:inline-block;margin:0;padding:0;color:#fadb14;font-size:20px;line-height:unset;list-style:none;outline:none}.ant-rate-disabled .ant-rate-star{cursor:default}.ant-rate-disabled .ant-rate-star:hover{transform:scale(1)}.ant-rate-star{position:relative;display:inline-block;color:inherit;cursor:pointer}.ant-rate-star:not(:last-child){margin-right:8px}.ant-rate-star>div{transition:all .3s,outline 0s}.ant-rate-star>div:hover{transform:scale(1.1)}.ant-rate-star>div:focus{outline:0}.ant-rate-star>div:focus-visible{outline:1px dashed #fadb14;transform:scale(1.1)}.ant-rate-star-first,.ant-rate-star-second{color:#f0f0f0;transition:all .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-rate-star-first .anticon,.ant-rate-star-second .anticon{vertical-align:middle}.ant-rate-star-first{position:absolute;top:0;left:0;width:50%;height:100%;overflow:hidden;opacity:0}.ant-rate-star-half .ant-rate-star-first,.ant-rate-star-half .ant-rate-star-second{opacity:1}.ant-rate-star-half .ant-rate-star-first,.ant-rate-star-full .ant-rate-star-second{color:inherit}.ant-rate-text{display:inline-block;margin:0 8px;font-size:14px}.ant-rate-rtl{direction:rtl}.ant-rate-rtl .ant-rate-star:not(:last-child){margin-right:0;margin-left:8px}.ant-rate-rtl .ant-rate-star-first{right:0;left:auto}\n")();const _sfc_main$f=defineComponent({name:"ApiRadioGroup",components:{RadioGroup:Radio.Group,RadioButton:Radio.Button,Radio:Radio},props:{api:{type:Function,default:null},params:{type:[Object,String],default:()=>({})},value:{type:[String,Number,Boolean]},isBtn:{type:[Boolean],default:!1},numberToString:propTypes$1.bool,resultField:propTypes$1.string.def(""),labelField:propTypes$1.string.def("label"),valueField:propTypes$1.string.def("value"),immediate:propTypes$1.bool.def(!0)},emits:["options-change","change"],setup(e,{emit:t}){const n=ref([]),a=ref(!1),r=ref(!0),o=ref([]),l=useAttrs$1(),{t:i}=useI18n(),[c]=useRuleFormItem(e),u=computed((()=>{const{labelField:t,valueField:a,numberToString:r}=e;return unref(n).reduce(((e,n)=>{if(n){const o=n[a];e.push(__spreadValues({label:n[t],value:r?`${o}`:o},omit$1(n,[t,a])))}return e}),[])}));function s(){return __async(this,null,(function*(){const t=e.api;if(t&&isFunction(t)){n.value=[];try{a.value=!0;const r=yield t(e.params);if(Array.isArray(r))return n.value=r,void d();e.resultField&&(n.value=get(r,e.resultField)||[]),d()}catch(r){console.warn(r)}finally{a.value=!1}}}))}function d(){t("options-change",unref(u))}return watchEffect((()=>{e.immediate&&s()})),watch((()=>e.params),(()=>{!unref(r)&&s()}),{deep:!0}),{state:c,getOptions:u,attrs:l,loading:a,t:i,handleChange:function(e,...t){o.value=t},props:e}}});function _sfc_render$d(e,t,n,a,r,o){const l=resolveComponent("RadioButton"),i=resolveComponent("Radio"),c=resolveComponent("RadioGroup");return openBlock(),createBlock(c,mergeProps(e.attrs,{value:e.state,"onUpdate:value":t[0]||(t[0]=t=>e.state=t),"button-style":"solid",onChange:e.handleChange}),{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.getOptions,(t=>(openBlock(),createElementBlock(Fragment,{key:`${t.value}`},[e.props.isBtn?(openBlock(),createBlock(l,{key:0,value:t.value,disabled:t.disabled},{default:withCtx((()=>[createTextVNode(toDisplayString(t.label),1)])),_:2},1032,["value","disabled"])):(openBlock(),createBlock(i,{key:1,value:t.value,disabled:t.disabled},{default:withCtx((()=>[createTextVNode(toDisplayString(t.label),1)])),_:2},1032,["value","disabled"]))],64)))),128))])),_:1},16,["value","onChange"])}var ApiRadioGroup=_export_sfc(_sfc_main$f,[["render",_sfc_render$d]]);const _sfc_main$e=defineComponent({name:"RadioButtonGroup",components:{RadioGroup:Radio.Group,RadioButton:Radio.Button},props:{value:{type:[String,Number,Boolean]},options:{type:Array,default:()=>[]}},setup(e){const t=useAttrs$1(),[n]=useRuleFormItem(e);return{state:n,getOptions:computed((()=>{const{options:t}=e;if(!t||0===(null==t?void 0:t.length))return[];return t.some((e=>isString(e)))?t.map((e=>({label:e,value:e}))):t})),attrs:t}}});function _sfc_render$c(e,t,n,a,r,o){const l=resolveComponent("RadioButton"),i=resolveComponent("RadioGroup");return openBlock(),createBlock(i,mergeProps(e.attrs,{value:e.state,"onUpdate:value":t[0]||(t[0]=t=>e.state=t),"button-style":"solid"}),{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.getOptions,(e=>(openBlock(),createBlock(l,{key:`${e.value}`,value:e.value,disabled:e.disabled},{default:withCtx((()=>[createTextVNode(toDisplayString(e.label),1)])),_:2},1032,["value","disabled"])))),128))])),_:1},16,["value"])}var RadioButtonGroup=_export_sfc(_sfc_main$e,[["render",_sfc_render$c]]);const _sfc_main$d=defineComponent({name:"ApiSelect",components:{Select:Select,LoadingOutlined:LoadingOutlined},inheritAttrs:!1,props:{value:[Array,Object,String,Number],numberToString:propTypes$1.bool,api:{type:Function,default:null},params:{type:Object,default:()=>({})},resultField:propTypes$1.string.def(""),labelField:propTypes$1.string.def("label"),valueField:propTypes$1.string.def("value"),immediate:propTypes$1.bool.def(!0),alwaysLoad:propTypes$1.bool.def(!1)},emits:["options-change","change"],setup(e,{emit:t}){const n=ref([]),a=ref(!1),r=ref(!0),o=ref([]),l=useAttrs$1(),{t:i}=useI18n(),[c]=useRuleFormItem(e,"value","change",o),u=computed((()=>{const{labelField:t,valueField:a,numberToString:r}=e;return unref(n).reduce(((e,n)=>{if(n){const o=n[a];e.push(__spreadProps(__spreadValues({},omit$1(n,[t,a])),{label:n[t],value:r?`${o}`:o}))}return e}),[])}));function s(){return __async(this,null,(function*(){const t=e.api;if(t&&isFunction(t)){n.value=[];try{a.value=!0;const r=yield t(e.params);if(Array.isArray(r))return n.value=r,void d();e.resultField&&(n.value=get(r,e.resultField)||[]),d()}catch(r){console.warn(r)}finally{a.value=!1}}}))}function d(){t("options-change",unref(u))}return watchEffect((()=>{e.immediate&&!e.alwaysLoad&&s()})),watch((()=>e.params),(()=>{!unref(r)&&s()}),{deep:!0}),{state:c,attrs:l,getOptions:u,loading:a,t:i,handleFetch:function(t){return __async(this,null,(function*(){t&&(e.alwaysLoad?yield s():!e.immediate&&unref(r)&&(yield s(),r.value=!1))}))},handleChange:function(e,...t){o.value=t}}}});function _sfc_render$b(e,t,n,a,r,o){const l=resolveComponent("LoadingOutlined"),i=resolveComponent("Select");return openBlock(),createBlock(i,mergeProps({onDropdownVisibleChange:e.handleFetch},e.$attrs,{onChange:e.handleChange,options:e.getOptions,value:e.state,"onUpdate:value":t[0]||(t[0]=t=>e.state=t)}),createSlots({_:2},[renderList(Object.keys(e.$slots),(t=>({name:t,fn:withCtx((n=>[renderSlot(e.$slots,t,normalizeProps(guardReactiveProps(n||{})))]))}))),e.loading?{name:"suffixIcon",fn:withCtx((()=>[createVNode(l,{spin:""})]))}:void 0,e.loading?{name:"notFoundContent",fn:withCtx((()=>[createBaseVNode("span",null,[createVNode(l,{spin:"",class:"mr-1"}),createTextVNode(" "+toDisplayString(e.t("component.form.apiSelectNotFound")),1)])]))}:void 0]),1040,["onDropdownVisibleChange","onChange","options","value"])}var ApiSelect=_export_sfc(_sfc_main$d,[["render",_sfc_render$b]]);const _sfc_main$c=defineComponent({name:"ApiTree",components:{ATree:Tree,LoadingOutlined:LoadingOutlined},props:{api:{type:Function},params:{type:Object},immediate:{type:Boolean,default:!0},resultField:propTypes$1.string.def(""),afterFetch:{type:Function}},emits:["options-change","change"],setup(t,{attrs:n,emit:a}){const r=ref([]),o=ref(!1),l=ref(!1),i=computed((()=>__spreadValues(__spreadValues({},t.api?{treeData:unref(r)}:{}),n)));function c(){return __async(this,null,(function*(){const{api:n,afterFetch:i}=t;if(!n||!isFunction(n))return;let c;l.value=!0,r.value=[];try{c=yield n(t.params)}catch(e){console.error(e)}i&&isFunction(i)&&(c=i(c)),l.value=!1,c&&(isArray(c)||(c=get(c,t.resultField)),r.value=c||[],o.value=!0,a("options-change",r.value))}))}return watch((()=>t.params),(()=>{!unref(o)&&c()}),{deep:!0}),watch((()=>t.immediate),(e=>{e&&!o.value&&c()})),onMounted((()=>{t.immediate&&c()})),{getAttrs:i,loading:l,handleChange:function(...e){a("change",...e)}}}});function _sfc_render$a(e,t,n,a,r,o){const l=resolveComponent("LoadingOutlined"),i=resolveComponent("a-tree");return openBlock(),createBlock(i,mergeProps(e.getAttrs,{onChange:e.handleChange}),createSlots({_:2},[renderList(Object.keys(e.$slots),(t=>({name:t,fn:withCtx((n=>[renderSlot(e.$slots,t,normalizeProps(guardReactiveProps(n||{})))]))}))),e.loading?{name:"suffixIcon",fn:withCtx((()=>[createVNode(l,{spin:""})]))}:void 0]),1040,["onChange"])}var ApiTree=_export_sfc(_sfc_main$c,[["render",_sfc_render$a]]);const _sfc_main$b=defineComponent({name:"ApiTreeSelect",components:{ATreeSelect:TreeSelect$1,LoadingOutlined:LoadingOutlined},props:{api:{type:Function},params:{type:Object},immediate:{type:Boolean,default:!0},resultField:propTypes$1.string.def("")},emits:["options-change","change"],setup(t,{attrs:n,emit:a}){const r=ref([]),o=ref(!1),l=ref(!1),i=computed((()=>__spreadValues(__spreadValues({},t.api?{treeData:unref(r)}:{}),n)));function c(){return __async(this,null,(function*(){const{api:n}=t;if(!n||!isFunction(n))return;let i;l.value=!0,r.value=[];try{i=yield n(t.params)}catch(e){console.error(e)}l.value=!1,i&&(isArray(i)||(i=get(i,t.resultField)),r.value=i||[],o.value=!0,a("options-change",r.value))}))}return watch((()=>t.params),(()=>{!unref(o)&&c()}),{deep:!0}),watch((()=>t.immediate),(e=>{e&&!o.value&&c()})),onMounted((()=>{t.immediate&&c()})),{getAttrs:i,loading:l,handleChange:function(...e){a("change",...e)}}}});function _sfc_render$9(e,t,n,a,r,o){const l=resolveComponent("LoadingOutlined"),i=resolveComponent("a-tree-select");return openBlock(),createBlock(i,mergeProps(e.getAttrs,{onChange:e.handleChange}),createSlots({_:2},[renderList(Object.keys(e.$slots),(t=>({name:t,fn:withCtx((n=>[renderSlot(e.$slots,t,normalizeProps(guardReactiveProps(n||{})))]))}))),e.loading?{name:"suffixIcon",fn:withCtx((()=>[createVNode(l,{spin:""})]))}:void 0]),1040,["onChange"])}var ApiTreeSelect=_export_sfc(_sfc_main$b,[["render",_sfc_render$9]]);const _sfc_main$a=defineComponent({name:"ApiCascader",components:{LoadingOutlined:LoadingOutlined,[Cascader$1.name]:Cascader$1},props:{value:{type:Array},api:{type:Function,default:null},numberToString:propTypes$1.bool,resultField:propTypes$1.string.def(""),labelField:propTypes$1.string.def("label"),valueField:propTypes$1.string.def("value"),childrenField:propTypes$1.string.def("children"),asyncFetchParamKey:propTypes$1.string.def("parentCode"),immediate:propTypes$1.bool.def(!0),initFetchParams:{type:Object,default:()=>({})},isLeaf:{type:Function,default:null},displayRenderArray:{type:Array}},emits:["change","defaultChange"],setup(t,{emit:n}){const a=ref([]),r=ref([]),o=ref(!1),l=ref([]),i=ref(!0),{t:c}=useI18n(),[u]=useRuleFormItem(t,"value","change",l);function s(e){const{labelField:n,valueField:a,numberToString:r,childrenField:o,isLeaf:l}=t;return e.reduce(((e,t)=>{if(t){const i=t[a],c=__spreadProps(__spreadValues({},omit$1(t,[n,a])),{label:t[n],value:r?`${i}`:i,isLeaf:!(!l||"function"!=typeof l)&&l(t)}),u=Reflect.get(t,o);u&&Reflect.set(c,o,s(u)),e.push(c)}return e}),[])}function d(){return __async(this,null,(function*(){const e=t.api;if(e&&isFunction(e)){a.value=[],o.value=!0;try{const n=yield e(t.initFetchParams);if(Array.isArray(n))return void(a.value=n);t.resultField&&(a.value=get(n,t.resultField)||[])}catch(n){console.warn(n)}finally{o.value=!1}}}))}return watch(a,(e=>{const t=s(e);r.value=t}),{deep:!0}),watchEffect((()=>{t.immediate&&d()})),watch((()=>t.initFetchParams),(()=>{!unref(i)&&d()}),{deep:!0}),{state:u,options:r,loading:o,t:c,handleChange:function(e,t){l.value=e,n("defaultChange",e,t)},loadData:function(n){return __async(this,null,(function*(){const a=n[n.length-1];a.loading=!0;const r=t.api;if(r&&isFunction(r))try{const e=yield r({[t.asyncFetchParamKey]:Reflect.get(a,"value")});if(Array.isArray(e)){const t=s(e);return void(a.children=t)}if(t.resultField){const n=s(get(e,t.resultField)||[]);a.children=n}}catch(e){console.error(e)}finally{a.loading=!1}}))},handleRenderDisplay:function({labels:e,selectedOptions:n}){return unref(l).length===n.length?e.join(" / "):t.displayRenderArray?t.displayRenderArray.join(" / "):""}}}});function _sfc_render$8(e,t,n,a,r,o){const l=resolveComponent("LoadingOutlined"),i=resolveComponent("a-cascader");return openBlock(),createBlock(i,{value:e.state,"onUpdate:value":t[0]||(t[0]=t=>e.state=t),options:e.options,"load-data":e.loadData,"change-on-select":"",onChange:e.handleChange,displayRender:e.handleRenderDisplay},createSlots({_:2},[e.loading?{name:"suffixIcon",fn:withCtx((()=>[createVNode(l,{spin:""})]))}:void 0,e.loading?{name:"notFoundContent",fn:withCtx((()=>[createBaseVNode("span",null,[createVNode(l,{spin:"",class:"mr-1"}),createTextVNode(" "+toDisplayString(e.t("component.form.apiSelectNotFound")),1)])]))}:void 0]),1032,["value","options","load-data","onChange","displayRender"])}var ApiCascader=_export_sfc(_sfc_main$a,[["render",_sfc_render$8]]),index$4=(()=>'@-webkit-keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}@keyframes antCheckboxEffect{0%{transform:scale(1);opacity:.5}to{transform:scale(1.6);opacity:0}}.ant-transfer-customize-list .ant-transfer-list{flex:1 1 50%;width:auto;height:auto;min-height:200px}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small{border:0;border-radius:0}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small .ant-table-selection-column{width:40px;min-width:40px}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small>.ant-table-content>.ant-table-body>table>.ant-table-thead>tr>th{background:#fafafa}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small>.ant-table-content .ant-table-row:last-child td{border-bottom:1px solid #f0f0f0}.ant-transfer-customize-list .ant-table-wrapper .ant-table-small .ant-table-body{margin:0}.ant-transfer-customize-list .ant-table-wrapper .ant-table-pagination.ant-pagination{margin:16px 0 4px}.ant-transfer-customize-list .ant-input[disabled]{background-color:transparent}.ant-transfer{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;display:flex;align-items:stretch}.ant-transfer-disabled .ant-transfer-list{background:#f5f5f5}.ant-transfer-list{display:flex;flex-direction:column;width:180px;height:200px;border:1px solid #d9d9d9;border-radius:2px}.ant-transfer-list-with-pagination{width:250px;height:auto}.ant-transfer-list-search .anticon-search{color:#00000040}.ant-transfer-list-header{display:flex;flex:none;align-items:center;height:40px;padding:8px 12px 9px;color:#000000d9;background:#fff;border-bottom:1px solid #f0f0f0;border-radius:2px 2px 0 0}.ant-transfer-list-header>*:not(:last-child){margin-right:4px}.ant-transfer-list-header>*{flex:none}.ant-transfer-list-header-title{flex:auto;overflow:hidden;white-space:nowrap;text-align:right;text-overflow:ellipsis}.ant-transfer-list-header-dropdown{font-size:10px;transform:translateY(10%);cursor:pointer}.ant-transfer-list-header-dropdown[disabled]{cursor:not-allowed}.ant-transfer-list-body{display:flex;flex:auto;flex-direction:column;overflow:hidden;font-size:14px}.ant-transfer-list-body-search-wrapper{position:relative;flex:none;padding:12px}.ant-transfer-list-content{flex:auto;margin:0;padding:0;overflow:auto;list-style:none}.ant-transfer-list-content-item{display:flex;align-items:center;min-height:32px;padding:6px 12px;line-height:20px;transition:all .3s}.ant-transfer-list-content-item>*:not(:last-child){margin-right:8px}.ant-transfer-list-content-item>*{flex:none}.ant-transfer-list-content-item-text{flex:auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-transfer-list-content-item-remove{color:#6495ed;text-decoration:none;outline:none;cursor:pointer;transition:color .3s;position:relative;color:#d9d9d9}.ant-transfer-list-content-item-remove:focus,.ant-transfer-list-content-item-remove:hover{color:#91b9fa}.ant-transfer-list-content-item-remove:active{color:#4a71c7}.ant-transfer-list-content-item-remove:after{position:absolute;top:-6px;right:-50%;bottom:-6px;left:-50%;content:""}.ant-transfer-list-content-item-remove:hover{color:#91b9fa}.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover{background-color:#f5f5f5;cursor:pointer}.ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled).ant-transfer-list-content-item-checked:hover{background-color:#e6f3ff}.ant-transfer-list-content-show-remove .ant-transfer-list-content-item:not(.ant-transfer-list-content-item-disabled):hover{background:transparent;cursor:default}.ant-transfer-list-content-item-checked{background-color:#f0f8ff}.ant-transfer-list-content-item-disabled{color:#00000040;cursor:not-allowed}.ant-transfer-list-pagination{padding:8px 0;text-align:right;border-top:1px solid #f0f0f0}.ant-transfer-list-body-not-found{flex:none;width:100%;margin:auto 0;color:#00000040;text-align:center}.ant-transfer-list-footer{border-top:1px solid #f0f0f0}.ant-transfer-operation{display:flex;flex:none;flex-direction:column;align-self:center;margin:0 8px;vertical-align:middle}.ant-transfer-operation .ant-btn{display:block}.ant-transfer-operation .ant-btn:first-child{margin-bottom:4px}.ant-transfer-operation .ant-btn .anticon{font-size:12px}.ant-transfer .ant-empty-image{max-height:-2px}.ant-transfer-rtl{direction:rtl}.ant-transfer-rtl .ant-transfer-list-search{padding-right:8px;padding-left:24px}.ant-transfer-rtl .ant-transfer-list-search-action{right:auto;left:12px}.ant-transfer-rtl .ant-transfer-list-header>*:not(:last-child){margin-right:0;margin-left:4px}.ant-transfer-rtl .ant-transfer-list-header{right:0;left:auto}.ant-transfer-rtl .ant-transfer-list-header-title{text-align:left}.ant-transfer-rtl .ant-transfer-list-content-item>*:not(:last-child){margin-right:0;margin-left:8px}.ant-transfer-rtl .ant-transfer-list-pagination{text-align:left}.ant-transfer-rtl .ant-transfer-list-footer{right:0;left:auto}\n')();const _sfc_main$9=defineComponent({name:"ApiTransfer",components:{Transfer:Transfer$1},props:{value:{type:Array},api:{type:Function,default:null},params:{type:Object},dataSource:{type:Array},immediate:propTypes$1.bool.def(!0),alwaysLoad:propTypes$1.bool.def(!1),afterFetch:{type:Function},resultField:propTypes$1.string.def(""),labelField:propTypes$1.string.def("title"),valueField:propTypes$1.string.def("key"),showSearch:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},filterOption:{type:Function},selectedKeys:{type:Array},showSelectAll:{type:Boolean,default:!1},targetKeys:{type:Array}},emits:["options-change","change"],setup(e,{attrs:t,emit:n}){const a=ref([]),r=ref([]),{t:o}=useI18n(),l=computed((()=>__spreadValues(__spreadValues({},e.api?{}:{dataSource:unref(a)}),t))),i=computed((()=>{const{labelField:t,valueField:n}=e;return unref(a).reduce(((e,a)=>(a&&e.push(__spreadProps(__spreadValues({},omit$1(a,[t,n])),{title:a[t],key:a[n]})),e)),[])})),c=computed((()=>unref(r).length>0?unref(r):Array.isArray(e.value)?e.value:[]));function u(){return __async(this,null,(function*(){const t=e.api;if(t&&isFunction(t)){a.value=[];try{const n=yield t(e.params);if(Array.isArray(n))return a.value=n,void s();e.resultField&&(a.value=get(n,e.resultField)||[]),s()}catch(n){console.warn(n)}}else Array.isArray(e.dataSource)&&(a.value=e.dataSource)}))}function s(){n("options-change",unref(i))}return watchEffect((()=>{e.immediate&&!e.alwaysLoad&&u()})),watch((()=>e.params),(()=>{u()}),{deep:!0}),{getTargetKeys:c,getdataSource:i,t:o,getAttrs:l,handleChange:function(e,t,a){r.value=e,console.log(t),console.log(a),n("change",e)}}}});function _sfc_render$7(e,t,n,a,r,o){const l=resolveComponent("Transfer");return openBlock(),createBlock(l,{"data-source":e.getdataSource,"show-search":"","filter-option":e.filterOption,render:e=>e.title,showSelectAll:e.showSelectAll,selectedKeys:e.selectedKeys,targetKeys:e.getTargetKeys,showSearch:e.showSearch,onChange:e.handleChange},null,8,["data-source","filter-option","render","showSelectAll","selectedKeys","targetKeys","showSearch","onChange"])}var ApiTransfer=_export_sfc(_sfc_main$9,[["render",_sfc_render$7]]);const basicProps$1={helpText:{type:String,default:""},maxSize:{type:Number,default:2},maxNumber:{type:Number,default:Infinity},accept:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},uploadParams:{type:Object,default:{}},api:{type:Function,default:null,required:!0},name:{type:String,default:"file"},filename:{type:String,default:null}},uploadContainerProps=__spreadProps(__spreadValues({value:{type:Array,default:()=>[]}},basicProps$1),{showPreviewNumber:{type:Boolean,default:!0},emptyHidePreview:{type:Boolean,default:!1}}),previewProps={value:{type:Array,default:()=>[]}},fileListProps={columns:{type:[Array],default:null},actionColumn:{type:Object,default:null},dataSource:{type:Array,default:null}};var index$3=(()=>'.ant-upload{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;outline:0}.ant-upload p{margin:0}.ant-upload-btn{display:block;width:100%;outline:none}.ant-upload input[type=file]{cursor:pointer}.ant-upload.ant-upload-select{display:inline-block}.ant-upload.ant-upload-disabled{cursor:not-allowed}.ant-upload.ant-upload-select-picture-card{width:104px;height:104px;margin-right:8px;margin-bottom:8px;text-align:center;vertical-align:top;background-color:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;cursor:pointer;transition:border-color .3s}.ant-upload.ant-upload-select-picture-card>.ant-upload{display:flex;align-items:center;justify-content:center;height:100%;text-align:center}.ant-upload.ant-upload-select-picture-card:hover{border-color:#6495ed}.ant-upload-disabled.ant-upload.ant-upload-select-picture-card:hover{border-color:#d9d9d9}.ant-upload.ant-upload-drag{position:relative;width:100%;height:100%;text-align:center;background:#fafafa;border:1px dashed #d9d9d9;border-radius:2px;cursor:pointer;transition:border-color .3s}.ant-upload.ant-upload-drag .ant-upload{padding:16px 0}.ant-upload.ant-upload-drag.ant-upload-drag-hover:not(.ant-upload-disabled){border-color:#4a71c7}.ant-upload.ant-upload-drag.ant-upload-disabled{cursor:not-allowed}.ant-upload.ant-upload-drag .ant-upload-btn{display:table;height:100%}.ant-upload.ant-upload-drag .ant-upload-drag-container{display:table-cell;vertical-align:middle}.ant-upload.ant-upload-drag:not(.ant-upload-disabled):hover{border-color:#91b9fa}.ant-upload.ant-upload-drag p.ant-upload-drag-icon{margin-bottom:20px}.ant-upload.ant-upload-drag p.ant-upload-drag-icon .anticon{color:#91b9fa;font-size:48px}.ant-upload.ant-upload-drag p.ant-upload-text{margin:0 0 4px;color:#000000d9;font-size:16px}.ant-upload.ant-upload-drag p.ant-upload-hint{color:#00000073;font-size:14px}.ant-upload.ant-upload-drag .anticon-plus{color:#00000040;font-size:30px;transition:all .3s}.ant-upload.ant-upload-drag .anticon-plus:hover,.ant-upload.ant-upload-drag:hover .anticon-plus{color:#00000073}.ant-upload-picture-card-wrapper{display:inline-block;width:100%}.ant-upload-picture-card-wrapper:before{display:table;content:""}.ant-upload-picture-card-wrapper:after{display:table;clear:both;content:""}.ant-upload-list{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;list-style:none;font-feature-settings:tnum;line-height:1.5715}.ant-upload-list:before{display:table;content:""}.ant-upload-list:after{display:table;clear:both;content:""}.ant-upload-list-item{position:relative;height:22.001px;margin-top:8px;font-size:14px}.ant-upload-list-item-name{display:inline-block;width:100%;padding-left:22px;overflow:hidden;line-height:1.5715;white-space:nowrap;text-overflow:ellipsis}.ant-upload-list-item-card-actions{position:absolute;right:0}.ant-upload-list-item-card-actions-btn{opacity:0}.ant-upload-list-item-card-actions-btn.ant-btn-sm{height:20px;line-height:1}.ant-upload-list-item-card-actions.picture{top:22px;line-height:0}.ant-upload-list-item-card-actions-btn:focus,.ant-upload-list-item-card-actions.picture .ant-upload-list-item-card-actions-btn{opacity:1}.ant-upload-list-item-card-actions .anticon{color:#00000073}.ant-upload-list-item-info{height:100%;padding:0 4px;transition:background-color .3s}.ant-upload-list-item-info>span{display:block;width:100%;height:100%}.ant-upload-list-item-info .anticon-loading .anticon,.ant-upload-list-item-info .ant-upload-text-icon .anticon{position:absolute;top:5px;color:#00000073;font-size:14px}.ant-upload-list-item .anticon-close{position:absolute;top:6px;right:4px;color:#00000073;font-size:10px;line-height:0;cursor:pointer;opacity:0;transition:all .3s}.ant-upload-list-item .anticon-close:hover{color:#000000d9}.ant-upload-list-item:hover .ant-upload-list-item-info{background-color:#f5f5f5}.ant-upload-list-item:hover .anticon-close,.ant-upload-list-item:hover .ant-upload-list-item-card-actions-btn{opacity:1}.ant-upload-list-item-error,.ant-upload-list-item-error .ant-upload-text-icon>.anticon,.ant-upload-list-item-error .ant-upload-list-item-name{color:#ed6f6f}.ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon{color:#ed6f6f}.ant-upload-list-item-error .ant-upload-list-item-card-actions-btn{opacity:1}.ant-upload-list-item-progress{position:absolute;bottom:-12px;width:100%;padding-left:26px;font-size:14px;line-height:0}.ant-upload-list-picture .ant-upload-list-item,.ant-upload-list-picture-card .ant-upload-list-item{position:relative;height:66px;padding:8px;border:1px solid #d9d9d9;border-radius:2px}.ant-upload-list-picture .ant-upload-list-item:hover,.ant-upload-list-picture-card .ant-upload-list-item:hover{background:transparent}.ant-upload-list-picture .ant-upload-list-item-error,.ant-upload-list-picture-card .ant-upload-list-item-error{border-color:#ed6f6f}.ant-upload-list-picture .ant-upload-list-item:hover .ant-upload-list-item-info,.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info{background:transparent}.ant-upload-list-picture .ant-upload-list-item-uploading,.ant-upload-list-picture-card .ant-upload-list-item-uploading{border-style:dashed}.ant-upload-list-picture .ant-upload-list-item-thumbnail,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail{width:48px;height:48px;line-height:60px;text-align:center;opacity:.8}.ant-upload-list-picture .ant-upload-list-item-thumbnail .anticon,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail .anticon{font-size:26px}.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#e6f7ff"],.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#e6f7ff"]{fill:#fff2f0}.ant-upload-list-picture .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#1890ff"],.ant-upload-list-picture-card .ant-upload-list-item-error .ant-upload-list-item-thumbnail .anticon svg path[fill="#1890ff"]{fill:#ed6f6f}.ant-upload-list-picture .ant-upload-list-item-icon,.ant-upload-list-picture-card .ant-upload-list-item-icon{position:absolute;top:50%;left:50%;font-size:26px;transform:translate(-50%,-50%)}.ant-upload-list-picture .ant-upload-list-item-icon .anticon,.ant-upload-list-picture-card .ant-upload-list-item-icon .anticon{font-size:26px}.ant-upload-list-picture .ant-upload-list-item-image,.ant-upload-list-picture-card .ant-upload-list-item-image{max-width:100%}.ant-upload-list-picture .ant-upload-list-item-thumbnail img,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img{display:block;width:48px;height:48px;overflow:hidden}.ant-upload-list-picture .ant-upload-list-item-name,.ant-upload-list-picture-card .ant-upload-list-item-name{display:inline-block;box-sizing:border-box;max-width:100%;margin:0 0 0 8px;padding-right:8px;padding-left:48px;overflow:hidden;line-height:44px;white-space:nowrap;text-overflow:ellipsis;transition:all .3s}.ant-upload-list-picture .ant-upload-list-item-uploading .ant-upload-list-item-name,.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-name{margin-bottom:12px}.ant-upload-list-picture .ant-upload-list-item-progress,.ant-upload-list-picture-card .ant-upload-list-item-progress{bottom:14px;width:calc(100% - 24px);margin-top:0;padding-left:56px}.ant-upload-list-picture .anticon-close,.ant-upload-list-picture-card .anticon-close{position:absolute;top:8px;right:8px;line-height:1;opacity:1}.ant-upload-list-picture-card-container{display:inline-block;width:104px;height:104px;margin:0 8px 8px 0;vertical-align:top}.ant-upload-list-picture-card.ant-upload-list:after{display:none}.ant-upload-list-picture-card .ant-upload-list-item{height:100%;margin:0}.ant-upload-list-picture-card .ant-upload-list-item-info{position:relative;height:100%;overflow:hidden}.ant-upload-list-picture-card .ant-upload-list-item-info:before{position:absolute;z-index:1;width:100%;height:100%;background-color:#00000080;opacity:0;transition:all .3s;content:" "}.ant-upload-list-picture-card .ant-upload-list-item:hover .ant-upload-list-item-info:before{opacity:1}.ant-upload-list-picture-card .ant-upload-list-item-actions{position:absolute;top:50%;left:50%;z-index:10;white-space:nowrap;transform:translate(-50%,-50%);opacity:0;transition:all .3s}.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete{z-index:10;width:16px;margin:0 4px;color:#ffffffd9;font-size:16px;cursor:pointer;transition:all .3s}.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-eye:hover,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-download:hover,.ant-upload-list-picture-card .ant-upload-list-item-actions .anticon-delete:hover{color:#fff}.ant-upload-list-picture-card .ant-upload-list-item-info:hover+.ant-upload-list-item-actions,.ant-upload-list-picture-card .ant-upload-list-item-actions:hover{opacity:1}.ant-upload-list-picture-card .ant-upload-list-item-thumbnail,.ant-upload-list-picture-card .ant-upload-list-item-thumbnail img{position:static;display:block;width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.ant-upload-list-picture-card .ant-upload-list-item-name{display:none;margin:8px 0 0;padding:0;line-height:1.5715;text-align:center}.ant-upload-list-picture-card .ant-upload-list-item-file+.ant-upload-list-item-name{position:absolute;bottom:10px;display:block}.ant-upload-list-picture-card .ant-upload-list-item-uploading.ant-upload-list-item{background-color:#fafafa}.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info{height:auto}.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info:before,.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-eye,.ant-upload-list-picture-card .ant-upload-list-item-uploading .ant-upload-list-item-info .anticon-delete{display:none}.ant-upload-list-picture-card .ant-upload-list-item-progress{bottom:32px;width:calc(100% - 14px);padding-left:0}.ant-upload-list-text-container,.ant-upload-list-picture-container{transition:opacity .3s,height .3s}.ant-upload-list-text-container:before,.ant-upload-list-picture-container:before{display:table;width:0;height:0;content:""}.ant-upload-list-text-container .ant-upload-span,.ant-upload-list-picture-container .ant-upload-span{display:block;flex:auto}.ant-upload-list-text .ant-upload-span,.ant-upload-list-picture .ant-upload-span{display:flex;align-items:center}.ant-upload-list-text .ant-upload-span>*,.ant-upload-list-picture .ant-upload-span>*{flex:none}.ant-upload-list-text .ant-upload-list-item-name,.ant-upload-list-picture .ant-upload-list-item-name{flex:auto;margin:0;padding:0 8px}.ant-upload-list-text .ant-upload-list-item-card-actions,.ant-upload-list-picture .ant-upload-list-item-card-actions,.ant-upload-list-text .ant-upload-text-icon .anticon{position:static}.ant-upload-list .ant-upload-animate-inline-appear,.ant-upload-list .ant-upload-animate-inline-enter,.ant-upload-list .ant-upload-animate-inline-leave{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:cubic-bezier(.78,.14,.15,.86);animation-fill-mode:cubic-bezier(.78,.14,.15,.86)}.ant-upload-list .ant-upload-animate-inline-appear,.ant-upload-list .ant-upload-animate-inline-enter{-webkit-animation-name:uploadAnimateInlineIn;animation-name:uploadAnimateInlineIn}.ant-upload-list .ant-upload-animate-inline-leave{-webkit-animation-name:uploadAnimateInlineOut;animation-name:uploadAnimateInlineOut}@-webkit-keyframes uploadAnimateInlineIn{0%{width:0;height:0;margin:0;padding:0;opacity:0}}@keyframes uploadAnimateInlineIn{0%{width:0;height:0;margin:0;padding:0;opacity:0}}@-webkit-keyframes uploadAnimateInlineOut{to{width:0;height:0;margin:0;padding:0;opacity:0}}@keyframes uploadAnimateInlineOut{to{width:0;height:0;margin:0;padding:0;opacity:0}}.ant-upload-rtl{direction:rtl}.ant-upload-rtl.ant-upload.ant-upload-select-picture-card{margin-right:auto;margin-left:8px}.ant-upload-list-rtl{direction:rtl}.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-1{padding-right:22px;padding-left:14px}.ant-upload-list-rtl .ant-upload-list-item-list-type-text:hover .ant-upload-list-item-name-icon-count-2{padding-right:22px;padding-left:28px}.ant-upload-list-rtl .ant-upload-list-item-name{padding-right:22px;padding-left:0}.ant-upload-list-rtl .ant-upload-list-item-name-icon-count-1{padding-left:14px}.ant-upload-list-rtl .ant-upload-list-item-card-actions{right:auto;left:0}.ant-upload-list-rtl .ant-upload-list-item-card-actions .anticon{padding-right:0;padding-left:5px}.ant-upload-list-rtl .ant-upload-list-item-info{padding:0 4px 0 12px}.ant-upload-list-rtl .ant-upload-list-item .anticon-close{right:auto;left:4px}.ant-upload-list-rtl .ant-upload-list-item-error .ant-upload-list-item-card-actions .anticon{padding-right:0;padding-left:5px}.ant-upload-list-rtl .ant-upload-list-item-progress{padding-right:26px;padding-left:0}.ant-upload-list-picture .ant-upload-list-item-info,.ant-upload-list-picture-card .ant-upload-list-item-info{padding:0}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-thumbnail,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-thumbnail{right:8px;left:auto}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-icon,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-icon{right:50%;left:auto;transform:translate(50%,-50%)}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name{margin:0 8px 0 0;padding-right:48px;padding-left:8px}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-1,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-1{padding-right:48px;padding-left:18px}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-name-icon-count-2,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-name-icon-count-2{padding-right:48px;padding-left:36px}.ant-upload-list-rtl.ant-upload-list-picture .ant-upload-list-item-progress,.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-progress{padding-right:0;padding-left:0}.ant-upload-list-rtl.ant-upload-list-picture .anticon-close,.ant-upload-list-rtl.ant-upload-list-picture-card .anticon-close{right:auto;left:8px}.ant-upload-list-rtl .ant-upload-list-picture-card-container{margin:0 0 8px 8px}.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-actions{right:50%;left:auto;transform:translate(50%,-50%)}.ant-upload-list-rtl.ant-upload-list-picture-card .ant-upload-list-item-file+.ant-upload-list-item-name{margin:8px 0 0;padding:0}\n')(),index$2=(()=>'.ant-progress{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;display:inline-block}.ant-progress-line{position:relative;width:100%;font-size:14px}.ant-progress-steps{display:inline-block}.ant-progress-steps-outer{display:flex;flex-direction:row;align-items:center}.ant-progress-steps-item{flex-shrink:0;min-width:2px;margin-right:2px;background:#f3f3f3;transition:all .3s}.ant-progress-steps-item-active{background:#6495ed}.ant-progress-small.ant-progress-line,.ant-progress-small.ant-progress-line .ant-progress-text .anticon{font-size:12px}.ant-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0}.ant-progress-show-info .ant-progress-outer{margin-right:calc(-2em - 8px);padding-right:calc(2em + 8px)}.ant-progress-inner{position:relative;display:inline-block;width:100%;overflow:hidden;vertical-align:middle;background-color:#f5f5f5;border-radius:100px}.ant-progress-circle-trail{stroke:#f5f5f5}.ant-progress-circle-path{-webkit-animation:ant-progress-appear .3s;animation:ant-progress-appear .3s}.ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#6495ed}.ant-progress-success-bg,.ant-progress-bg{position:relative;background-color:#6495ed;border-radius:100px;transition:all .4s cubic-bezier(.08,.82,.17,1) 0s}.ant-progress-success-bg{position:absolute;top:0;left:0;background-color:#55d187}.ant-progress-text{display:inline-block;width:2em;margin-left:8px;color:#000000d9;font-size:1em;line-height:1;white-space:nowrap;text-align:left;vertical-align:middle;word-break:normal}.ant-progress-text .anticon{font-size:14px}.ant-progress-status-active .ant-progress-bg:before{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff;border-radius:10px;opacity:0;-webkit-animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;animation:ant-progress-active 2.4s cubic-bezier(.23,1,.32,1) infinite;content:""}.ant-progress-status-exception .ant-progress-bg{background-color:#ed6f6f}.ant-progress-status-exception .ant-progress-text{color:#ed6f6f}.ant-progress-status-exception .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#ed6f6f}.ant-progress-status-success .ant-progress-bg{background-color:#55d187}.ant-progress-status-success .ant-progress-text{color:#55d187}.ant-progress-status-success .ant-progress-inner:not(.ant-progress-circle-gradient) .ant-progress-circle-path{stroke:#55d187}.ant-progress-circle .ant-progress-inner{position:relative;line-height:1;background-color:transparent}.ant-progress-circle .ant-progress-text{position:absolute;top:50%;left:50%;width:100%;margin:0;padding:0;color:#000000d9;font-size:1em;line-height:1;white-space:normal;text-align:center;transform:translate(-50%,-50%)}.ant-progress-circle .ant-progress-text .anticon{font-size:1.16666667em}.ant-progress-circle.ant-progress-status-exception .ant-progress-text{color:#ed6f6f}.ant-progress-circle.ant-progress-status-success .ant-progress-text{color:#55d187}@-webkit-keyframes ant-progress-active{0%{transform:translate(-100%) scaleX(0);opacity:.1}20%{transform:translate(-100%) scaleX(0);opacity:.5}to{transform:translate(0) scaleX(1);opacity:0}}@keyframes ant-progress-active{0%{transform:translate(-100%) scaleX(0);opacity:.1}20%{transform:translate(-100%) scaleX(0);opacity:.5}to{transform:translate(0) scaleX(1);opacity:0}}.ant-progress-rtl{direction:rtl}.ant-progress-rtl.ant-progress-show-info .ant-progress-outer{margin-right:0;margin-left:calc(-2em - 8px);padding-right:0;padding-left:calc(2em + 8px)}.ant-progress-rtl .ant-progress-success-bg{right:0;left:auto}.ant-progress-rtl.ant-progress-line .ant-progress-text,.ant-progress-rtl.ant-progress-steps .ant-progress-text{margin-right:8px;margin-left:0;text-align:right}\n')(),index$1=(()=>".ant-alert{box-sizing:border-box;margin:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;list-style:none;font-feature-settings:tnum;position:relative;display:flex;align-items:center;padding:8px 15px;word-wrap:break-word;border-radius:2px}.ant-alert-content{flex:1;min-width:0}.ant-alert-icon{margin-right:8px}.ant-alert-description{display:none;font-size:14px;line-height:22px}.ant-alert-success{background-color:#f0fff3;border:1px solid #dcf7e4}.ant-alert-success .ant-alert-icon{color:#55d187}.ant-alert-info{background-color:#f0f8ff;border:1px solid #e6f1ff}.ant-alert-info .ant-alert-icon{color:#6495ed}.ant-alert-warning{background-color:#fffdf0;border:1px solid #fff4c7}.ant-alert-warning .ant-alert-icon{color:#efbd47}.ant-alert-error{background-color:#fff2f0;border:1px solid #fff1f0}.ant-alert-error .ant-alert-icon{color:#ed6f6f}.ant-alert-error .ant-alert-description>pre{margin:0;padding:0}.ant-alert-action{margin-left:8px}.ant-alert-close-icon{margin-left:8px;padding:0;overflow:hidden;font-size:12px;line-height:12px;background-color:transparent;border:none;outline:none;cursor:pointer}.ant-alert-close-icon .anticon-close{color:#00000073;transition:color .3s}.ant-alert-close-icon .anticon-close:hover{color:#000000bf}.ant-alert-close-text{color:#00000073;transition:color .3s}.ant-alert-close-text:hover{color:#000000bf}.ant-alert-with-description{align-items:flex-start;padding:15px 15px 15px 24px}.ant-alert-with-description.ant-alert-no-icon{padding:15px}.ant-alert-with-description .ant-alert-icon{margin-right:15px;font-size:24px}.ant-alert-with-description .ant-alert-message{display:block;margin-bottom:4px;color:#000000d9;font-size:16px}.ant-alert-message{color:#000000d9}.ant-alert-with-description .ant-alert-description{display:block}.ant-alert.ant-alert-motion-leave{overflow:hidden;opacity:1;transition:max-height .3s cubic-bezier(.78,.14,.15,.86),opacity .3s cubic-bezier(.78,.14,.15,.86),padding-top .3s cubic-bezier(.78,.14,.15,.86),padding-bottom .3s cubic-bezier(.78,.14,.15,.86),margin-bottom .3s cubic-bezier(.78,.14,.15,.86)}.ant-alert.ant-alert-motion-leave-active{max-height:0;margin-bottom:0!important;padding-top:0;padding-bottom:0;opacity:0}.ant-alert-banner{margin-bottom:0;border:0;border-radius:0}.ant-alert.ant-alert-rtl{direction:rtl}.ant-alert-rtl .ant-alert-icon{margin-right:auto;margin-left:8px}.ant-alert-rtl .ant-alert-action,.ant-alert-rtl .ant-alert-close-icon{margin-right:8px;margin-left:auto}.ant-alert-rtl.ant-alert-with-description{padding-right:24px;padding-left:15px}.ant-alert-rtl.ant-alert-with-description .ant-alert-icon{margin-right:auto;margin-left:15px}\n")();const{t:t$2}=useI18n();function useUploadType({acceptRef:e,helpTextRef:t,maxNumberRef:n,maxSizeRef:a}){const r=computed((()=>{const t=unref(e);return t&&t.length>0?t:[]})),o=computed((()=>unref(r).map((e=>e.indexOf("/")>0||e.startsWith(".")?e:`.${e}`)).join(","))),l=computed((()=>{const r=unref(t);if(r)return r;const o=[],l=unref(e);l.length>0&&o.push(t$2("component.upload.accept",[l.join(",")]));const i=unref(a);i&&o.push(t$2("component.upload.maxSize",[i]));const c=unref(n);return c&&Infinity!==c&&o.push(t$2("component.upload.maxNumber",[c])),o.join(",")}));return{getAccept:r,getStringAccept:o,getHelpText:l}}var UploadResultStatus=(e=>(e.SUCCESS="success",e.ERROR="error",e.UPLOADING="uploading",e))(UploadResultStatus||{});function checkImgType(e){return isImgTypeByName(e.name)}function isImgTypeByName(e){return/\.(jpg|jpeg|png|gif)$/i.test(e)}function getBase64WithFile(e){return new Promise(((t,n)=>{const a=new FileReader;a.readAsDataURL(e),a.onload=()=>t({result:a.result,file:e}),a.onerror=e=>n(e)}))}const key$1=Symbol("basic-table");function createTableContext(e){provide(key$1,e)}function useTableContext(){return inject(key$1)}const{table:table}=componentSetting,{pageSizeOptions:pageSizeOptions,defaultPageSize:defaultPageSize,fetchSetting:fetchSetting,defaultSize:defaultSize,defaultSortFn:defaultSortFn,defaultFilterFn:defaultFilterFn}=table,ROW_KEY="key",PAGE_SIZE_OPTIONS=pageSizeOptions,PAGE_SIZE=defaultPageSize,FETCH_SETTING=fetchSetting,DEFAULT_SIZE=defaultSize,DEFAULT_SORT_FN=defaultSortFn,DEFAULT_FILTER_FN=defaultFilterFn,DEFAULT_ALIGN="center",INDEX_COLUMN_FLAG="INDEX",ACTION_COLUMN_FLAG="ACTION";var TableAction_vue_vue_type_style_index_0_lang=(()=>".guoba-basic-table-action{display:flex;align-items:center}.guoba-basic-table-action .action-divider{display:table}.guoba-basic-table-action.left{justify-content:flex-start}.guoba-basic-table-action.center{justify-content:center}.guoba-basic-table-action.right{justify-content:flex-end}.guoba-basic-table-action button{display:flex;align-items:center}.guoba-basic-table-action button span{margin-left:0!important}.guoba-basic-table-action button.ant-btn-circle span{margin:auto!important}.guoba-basic-table-action .ant-divider,.guoba-basic-table-action .ant-divider-vertical{margin:0 2px}.guoba-basic-table-action .icon-more{transform:rotate(90deg)}.guoba-basic-table-action .icon-more svg{font-size:1.1em;font-weight:700}\n")();const _sfc_main$8=defineComponent({name:"TableAction",components:{Icon:Icon,PopConfirmButton:PopConfirmButton,Divider:Divider,Dropdown:Dropdown$1,MoreOutlined:MoreOutlined$1,Tooltip:Tooltip},props:{actions:{type:Array,default:null},dropDownActions:{type:Array,default:null},divider:propTypes$1.bool.def(!0),outside:propTypes$1.bool,stopButtonPropagation:propTypes$1.bool.def(!1)},setup(e){const{prefixCls:t}=useDesign("basic-table-action");let n={};e.outside||(n=useTableContext());const{hasPermission:a}=usePermission();function r(e){const t=e.ifShow;let n=!0;return isBoolean(t)&&(n=t),isFunction(t)&&(n=t(e)),n}return{prefixCls:t,getActions:computed((()=>(toRaw(e.actions)||[]).filter((e=>a(e.auth)&&r(e))).map((e=>{const{popConfirm:t}=e;return __spreadProps(__spreadValues(__spreadValues({getPopupContainer:()=>{var e;return null!=(e=unref(null==n?void 0:n.wrapRef.value))?e:document.body},type:"link",size:"small"},e),t||{}),{onConfirm:null==t?void 0:t.confirm,onCancel:null==t?void 0:t.cancel,enable:!!t})})))),getDropdownList:computed((()=>{const t=(toRaw(e.dropDownActions)||[]).filter((e=>a(e.auth)&&r(e)));return t.map(((n,a)=>{const{label:r,popConfirm:o}=n;return __spreadProps(__spreadValues(__spreadValues({},n),o),{onConfirm:null==o?void 0:o.confirm,onCancel:null==o?void 0:o.cancel,text:r,divider:a{var e,t;const a=((null==(e=null==n?void 0:n.getColumns)?void 0:e.call(n))||[]).find((e=>e.flag===ACTION_COLUMN_FLAG));return null!=(t=null==a?void 0:a.align)?t:"left"})),onCellClick:function(t){if(!e.stopButtonPropagation)return;t.composedPath().find((e=>{var t;return"BUTTON"===(null==(t=e.tagName)?void 0:t.toUpperCase())}))&&t.stopPropagation()},getTooltip:function(e){return __spreadValues({getPopupContainer:()=>{var e;return null!=(e=unref(null==n?void 0:n.wrapRef.value))?e:document.body},placement:"bottom"},isString(e)?{title:e}:e)}}}});function _sfc_render$6(e,t,n,a,r,o){const l=resolveComponent("Icon"),i=resolveComponent("PopConfirmButton"),c=resolveComponent("Tooltip"),u=resolveComponent("Divider"),s=resolveComponent("MoreOutlined"),d=resolveComponent("a-button"),p=resolveComponent("Dropdown");return openBlock(),createElementBlock("div",{class:normalizeClass([e.prefixCls,e.getAlign]),onClick:t[0]||(t[0]=(...t)=>e.onCellClick&&e.onCellClick(...t))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(e.getActions,((t,n)=>(openBlock(),createElementBlock(Fragment,{key:`${n}-${t.label}`},[t.tooltip?(openBlock(),createBlock(c,normalizeProps(mergeProps({key:0},e.getTooltip(t.tooltip))),{default:withCtx((()=>[createVNode(i,normalizeProps(guardReactiveProps(t)),{default:withCtx((()=>[t.icon?(openBlock(),createBlock(l,{key:0,icon:t.icon,class:normalizeClass({"mr-1":!!t.label})},null,8,["icon","class"])):createCommentVNode("",!0),t.label?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(t.label),1)],64)):createCommentVNode("",!0)])),_:2},1040)])),_:2},1040)):(openBlock(),createBlock(i,normalizeProps(mergeProps({key:1},t)),{default:withCtx((()=>[t.icon?(openBlock(),createBlock(l,{key:0,icon:t.icon,class:normalizeClass({"mr-1":!!t.label})},null,8,["icon","class"])):createCommentVNode("",!0),t.label?(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(t.label),1)],64)):createCommentVNode("",!0)])),_:2},1040)),e.divider&&n0?(openBlock(),createBlock(p,{key:0,trigger:["hover"],dropMenuList:e.getDropdownList,popconfirm:""},{default:withCtx((()=>[renderSlot(e.$slots,"more"),e.$slots.more?createCommentVNode("",!0):(openBlock(),createBlock(d,{key:0,type:"link",size:"small"},{default:withCtx((()=>[createVNode(s,{class:"icon-more"})])),_:1}))])),_:3},8,["dropMenuList"])):createCommentVNode("",!0)],2)}var TableAction=_export_sfc(_sfc_main$8,[["render",_sfc_render$6]]),index=(()=>'.ant-image{position:relative;display:inline-block}.ant-image-img{width:100%;height:auto;vertical-align:middle}.ant-image-img-placeholder{background-color:#f5f5f5;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=);background-repeat:no-repeat;background-position:center center;background-size:30%}.ant-image-mask{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(0,0,0,.5);cursor:pointer;opacity:0;transition:opacity .3s}.ant-image-mask-info{padding:0 4px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ant-image-mask-info .anticon{-webkit-margin-end:4px;margin-inline-end:4px}.ant-image-mask:hover{opacity:1}.ant-image-placeholder{position:absolute;top:0;right:0;bottom:0;left:0}.ant-image-preview{pointer-events:none;height:100%;text-align:center}.ant-image-preview.ant-zoom-enter,.ant-image-preview.antzoom-appear{transform:none;opacity:0;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ant-image-preview-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;height:100%;background-color:#00000073}.ant-image-preview-mask-hidden{display:none}.ant-image-preview-wrap{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;outline:0;-webkit-overflow-scrolling:touch}.ant-image-preview-body{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.ant-image-preview-img{max-width:100%;max-height:100%;vertical-align:middle;transform:scaleZ(1);cursor:-webkit-grab;cursor:grab;transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:auto}.ant-image-preview-img-wrapper{position:absolute;top:0;right:0;bottom:0;left:0;transition:transform .3s cubic-bezier(.215,.61,.355,1) 0s}.ant-image-preview-img-wrapper:before{display:inline-block;width:1px;height:50%;margin-right:-1px;content:""}.ant-image-preview-moving .ant-image-preview-img{cursor:-webkit-grabbing;cursor:grabbing}.ant-image-preview-moving .ant-image-preview-img-wrapper{transition-duration:0s}.ant-image-preview-wrap{z-index:1080}.ant-image-preview-operations{box-sizing:border-box;margin:0;padding:0;color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:1.5715;font-feature-settings:tnum;position:absolute;top:0;right:0;z-index:1;display:flex;flex-direction:row-reverse;align-items:center;width:100%;color:#ffffffd9;list-style:none;background:rgba(0,0,0,.1);pointer-events:auto}.ant-image-preview-operations-operation{margin-left:12px;padding:12px;cursor:pointer}.ant-image-preview-operations-operation-disabled{color:#ffffff40;pointer-events:none}.ant-image-preview-operations-operation:last-of-type{margin-left:0}.ant-image-preview-operations-icon{font-size:18px}.ant-image-preview-switch-left,.ant-image-preview-switch-right{position:absolute;top:50%;right:10px;z-index:1;display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-top:-22px;color:#ffffffd9;background:rgba(0,0,0,.1);border-radius:50%;cursor:pointer;pointer-events:auto}.ant-image-preview-switch-left-disabled,.ant-image-preview-switch-right-disabled{color:#ffffff40;cursor:not-allowed}.ant-image-preview-switch-left-disabled>.anticon,.ant-image-preview-switch-right-disabled>.anticon{cursor:not-allowed}.ant-image-preview-switch-left>.anticon,.ant-image-preview-switch-right>.anticon{font-size:18px}.ant-image-preview-switch-left{left:10px}.ant-image-preview-switch-right{right:10px}\n')(),ThumbUrl_vue_vue_type_style_index_0_lang=(()=>".thumb img{position:static;display:block;cursor:zoom-in;border-radius:4px;-o-object-fit:cover;object-fit:cover}\n")();const _sfc_main$7=defineComponent({components:{Image:Image$2},props:{fileUrl:propTypes$1.string.def(""),fileName:propTypes$1.string.def("")}}),_hoisted_1$1={class:"thumb"};function _sfc_render$5(e,t,n,a,r,o){const l=resolveComponent("Image");return openBlock(),createElementBlock("span",_hoisted_1$1,[e.fileUrl?(openBlock(),createBlock(l,{key:0,src:e.fileUrl,width:104},null,8,["src"])):createCommentVNode("",!0)])}var ThumbUrl=_export_sfc(_sfc_main$7,[["render",_sfc_render$5]]);const{t:t$1}=useI18n();function createTableColumns(){return[{dataIndex:"thumbUrl",title:t$1("component.upload.legend"),width:100,customRender:({record:e})=>{const{thumbUrl:t}=e||{};return t&&createVNode(ThumbUrl,{fileUrl:t},null)}},{dataIndex:"name",title:t$1("component.upload.fileName"),align:"left",customRender:({text:e,record:t})=>{const{percent:n,status:a}=t||{};let r="normal";return a===UploadResultStatus.ERROR?r="exception":a===UploadResultStatus.UPLOADING?r="active":a===UploadResultStatus.SUCCESS&&(r="success"),createVNode("span",null,[createVNode("p",{class:"truncate mb-1",title:e},[e]),createVNode(Progress,{percent:n,size:"small",status:r},null)])}},{dataIndex:"size",title:t$1("component.upload.fileSize"),width:100,customRender:({text:e=0})=>e&&(e/1024).toFixed(2)+"KB"},{dataIndex:"status",title:t$1("component.upload.fileStatue"),width:100,customRender:({text:e})=>e===UploadResultStatus.SUCCESS?createVNode(Tag,{color:"green"},{default:()=>t$1("component.upload.uploadSuccess")}):e===UploadResultStatus.ERROR?createVNode(Tag,{color:"red"},{default:()=>t$1("component.upload.uploadError")}):e===UploadResultStatus.UPLOADING?createVNode(Tag,{color:"blue"},{default:()=>t$1("component.upload.uploading")}):e}]}function createActionColumn(e){return{width:120,title:t$1("component.upload.operating"),dataIndex:"action",fixed:!1,customRender:({record:t})=>{const n=[{label:t$1("component.upload.del"),color:"error",onClick:e.bind(null,t)}];return createVNode(TableAction,{actions:n,outside:!0},null)}}}function createPreviewColumns(){return[{dataIndex:"url",title:t$1("component.upload.legend"),width:100,customRender:({record:e})=>{const{url:t}=e||{};return isImgTypeByName(t)&&createVNode(ThumbUrl,{fileUrl:t},null)}},{dataIndex:"name",title:t$1("component.upload.fileName"),align:"left"}]}function createPreviewActionColumn({handleRemove:e,handleDownload:t}){return{width:160,title:t$1("component.upload.operating"),dataIndex:"action",fixed:!1,customRender:({record:n})=>{const a=[{label:t$1("component.upload.del"),color:"error",onClick:e.bind(null,n)},{label:t$1("component.upload.download"),onClick:t.bind(null,n)}];return createVNode(TableAction,{actions:a,outside:!0},null)}}}const hexList=[];for(let n=0;n<=15;n++)hexList[n]=n.toString(16);function buildUUID(){let e="";for(let t=1;t<=36;t++)e+=9===t||14===t||19===t||24===t?"-":15===t?4:20===t?hexList[4*Math.random()|8]:hexList[16*Math.random()|0];return e.replace(/-/g,"")}var _sfc_main$6=defineComponent({name:"FileList",props:fileListProps,setup(e){const t=useModalContext();return watch((()=>e.dataSource),(()=>{nextTick((()=>{var e;null==(e=null==t?void 0:t.redoModalHeight)||e.call(t)}))})),()=>{const{columns:t,actionColumn:n,dataSource:a}=e,r=[...t,n];return createVNode("table",{class:"file-table"},[createVNode("colgroup",null,[r.map((e=>{const{width:t=0,dataIndex:n}=e;return createVNode("col",{style:t?{width:`${t}px`,minWidth:`${t}px`}:{},key:n},null)}))]),createVNode("thead",null,[createVNode("tr",{class:"file-table-tr"},[r.map((e=>{const{title:t="",align:n="center",dataIndex:a}=e;return createVNode("th",{class:["file-table-th",n],key:a},[t])}))])]),createVNode("tbody",null,[a.map(((e={},t)=>createVNode("tr",{class:"file-table-tr",key:`${t+e.name||""}`},[r.map((t=>{const{dataIndex:n="",customRender:a,align:r="center"}=t,o=a&&isFunction(a);return createVNode("td",{class:["file-table-td",r],key:n},[o?null==a?void 0:a({text:e[n],record:e}):e[n]])}))])))])])}}}),FileList_vue_vue_type_style_index_0_lang=(()=>".file-table{width:100%;border-collapse:collapse}.file-table .center{text-align:center}.file-table .left{text-align:left}.file-table .right{text-align:right}.file-table-th,.file-table-td{padding:12px 8px}.file-table thead{background-color:#fafafa}.file-table table,.file-table td,.file-table th{border:1px solid #d9d9d9}\n")(),UploadModal_vue_vue_type_style_index_0_lang=(()=>".upload-modal .ant-upload-list{display:none}.upload-modal .ant-table-wrapper .ant-spin-nested-loading{padding:0}.upload-modal-toolbar{display:flex;align-items:center;margin-bottom:8px}.upload-modal-toolbar__btn{margin-left:8px;text-align:right;flex:1}\n")();const _sfc_main$5=defineComponent({components:{BasicModal:BasicModal,Upload:Upload,Alert:Alert$1,FileList:_sfc_main$6},props:__spreadProps(__spreadValues({},basicProps$1),{previewFileList:{type:Array,default:()=>[]}}),emits:["change","register","delete"],setup(t,{emit:n}){const a=reactive({fileList:[]}),r=ref(!1),o=ref([]),{accept:l,helpText:i,maxNumber:c,maxSize:u}=toRefs(t),{t:s}=useI18n(),[d,{closeModal:p}]=useModalInner(),{getStringAccept:f,getHelpText:v}=useUploadType({acceptRef:l,helpTextRef:i,maxNumberRef:c,maxSizeRef:u}),{createMessage:m}=useMessage(),h=computed((()=>o.value.length>0&&!o.value.every((e=>e.status===UploadResultStatus.SUCCESS)))),g=computed((()=>{const e=o.value.some((e=>e.status===UploadResultStatus.SUCCESS));return{disabled:r.value||0===o.value.length||!e}})),y=computed((()=>{const e=o.value.some((e=>e.status===UploadResultStatus.ERROR));return r.value?s("component.upload.uploading"):s(e?"component.upload.reUploadFailed":"component.upload.startUpload")}));return{columns:createTableColumns(),actionColumn:createActionColumn((function(e){const t=o.value.findIndex((t=>t.uuid===e.uuid));-1!==t&&o.value.splice(t,1),n("delete",e)})),register:d,closeModal:p,getHelpText:v,getStringAccept:f,getOkButtonProps:g,beforeUpload:function(e){const{size:n,name:a}=e,{maxSize:r}=t;if(r&&e.size/1024/1024>=r)return m.error(s("component.upload.maxSizeMultiple",[r])),!1;const l={uuid:buildUUID(),file:e,size:n,name:a,percent:0,type:a.split(".").pop()};return checkImgType(e)?getBase64WithFile(e).then((({result:e})=>{o.value=[...unref(o),__spreadValues({thumbUrl:e},l)]})):o.value=[...unref(o),l],!1},fileListRef:o,state:a,isUploadingRef:r,handleStartUpload:function(){return __async(this,null,(function*(){var n;const{maxNumber:a}=t;if(o.value.length+(null==(n=t.previewFileList)?void 0:n.length)>a)return m.warning(s("component.upload.maxNumber",[a]));try{r.value=!0;const n=o.value.filter((e=>e.status!==UploadResultStatus.SUCCESS))||[],a=yield Promise.all(n.map((n=>function(n){return __async(this,null,(function*(){var a;const{api:r}=t;if(!r||!isFunction(r))return warn("upload api must exist and be a function");try{n.status=UploadResultStatus.UPLOADING;const{data:e}=yield null==(a=t.api)?void 0:a.call(t,{data:__spreadValues({},t.uploadParams||{}),file:n.file,name:t.name,filename:t.filename},(function(e){const t=e.loaded/e.total*100|0;n.percent=t}));return n.status=UploadResultStatus.SUCCESS,n.responseData=e,{success:!0,error:null}}catch(e){return console.log(e),n.status=UploadResultStatus.ERROR,{success:!1,error:e}}}))}(n))));r.value=!1;const l=a.filter((e=>!e.success));if(l.length>0)throw l}catch(e){throw r.value=!1,e}}))},handleOk:function(){const{maxNumber:e}=t;if(o.value.length>e)return m.warning(s("component.upload.maxNumber",[e]));if(r.value)return m.warning(s("component.upload.saveWarn"));const a=[];for(const t of o.value){const{status:e,responseData:n}=t;e===UploadResultStatus.SUCCESS&&n&&a.push(n.url)}if(a.length<=0)return m.warning(s("component.upload.saveError"));o.value=[],p(),n("change",a)},handleCloseFunc:function(){return __async(this,null,(function*(){return r.value?(m.warning(s("component.upload.uploadWait")),!1):(o.value=[],!0)}))},getIsSelectFile:h,getUploadBtnText:y,t:s}}}),_hoisted_1={class:"upload-modal-toolbar"};function _sfc_render$4(e,t,n,a,r,o){const l=resolveComponent("a-button"),i=resolveComponent("Alert"),c=resolveComponent("Upload"),u=resolveComponent("FileList"),s=resolveComponent("BasicModal");return openBlock(),createBlock(s,mergeProps({width:"800px",title:e.t("component.upload.upload"),okText:e.t("component.upload.save")},e.$attrs,{onRegister:e.register,onOk:e.handleOk,closeFunc:e.handleCloseFunc,maskClosable:!1,keyboard:!1,class:"upload-modal",okButtonProps:e.getOkButtonProps,cancelButtonProps:{disabled:e.isUploadingRef}}),{centerFooter:withCtx((()=>[createVNode(l,{onClick:e.handleStartUpload,color:"success",disabled:!e.getIsSelectFile,loading:e.isUploadingRef},{default:withCtx((()=>[createTextVNode(toDisplayString(e.getUploadBtnText),1)])),_:1},8,["onClick","disabled","loading"])])),default:withCtx((()=>[createBaseVNode("div",_hoisted_1,[createVNode(i,{message:e.getHelpText,type:"info",banner:"",class:"upload-modal-toolbar__text"},null,8,["message"]),createVNode(c,{accept:e.getStringAccept,multiple:e.multiple,"before-upload":e.beforeUpload,"show-upload-list":!1,class:"upload-modal-toolbar__btn"},{default:withCtx((()=>[createVNode(l,{type:"primary"},{default:withCtx((()=>[createTextVNode(toDisplayString(e.t("component.upload.choose")),1)])),_:1})])),_:1},8,["accept","multiple","before-upload"])]),createVNode(u,{dataSource:e.fileListRef,columns:e.columns,actionColumn:e.actionColumn},null,8,["dataSource","columns","actionColumn"])])),_:1},16,["title","okText","onRegister","onOk","closeFunc","okButtonProps","cancelButtonProps"])}var UploadModal=_export_sfc(_sfc_main$5,[["render",_sfc_render$4]]),UploadPreviewModal_vue_vue_type_style_index_0_lang=(()=>".upload-preview-modal .ant-upload-list{display:none}.upload-preview-modal .ant-table-wrapper .ant-spin-nested-loading{padding:0}\n")();const _sfc_main$4=defineComponent({components:{BasicModal:BasicModal,FileList:_sfc_main$6},props:previewProps,emits:["list-change","register","delete"],setup(e,{emit:t}){const[n,{closeModal:a}]=useModalInner(),{t:r}=useI18n(),o=ref([]);return watch((()=>e.value),(e=>{isArray(e)||(e=[]),o.value=e.filter((e=>!!e)).map((e=>({url:e,type:e.split(".").pop()||"",name:e.split("/").pop()||""})))}),{immediate:!0}),{t:r,register:n,closeModal:a,fileListRef:o,columns:createPreviewColumns(),actionColumn:createPreviewActionColumn({handleRemove:function(e){const n=o.value.findIndex((t=>t.url===e.url));if(-1!==n){const e=o.value.splice(n,1);t("delete",e[0].url),t("list-change",o.value.map((e=>e.url)))}},handleDownload:function(e){const{url:t=""}=e;downloadByUrl({url:t})}})}}});function _sfc_render$3(e,t,n,a,r,o){const l=resolveComponent("FileList"),i=resolveComponent("BasicModal");return openBlock(),createBlock(i,mergeProps({width:"800px",title:e.t("component.upload.preview"),class:"upload-preview-modal"},e.$attrs,{onRegister:e.register,showOkBtn:!1}),{default:withCtx((()=>[createVNode(l,{dataSource:e.fileListRef,columns:e.columns,actionColumn:e.actionColumn},null,8,["dataSource","columns","actionColumn"])])),_:1},16,["title","onRegister"])}var UploadPreviewModal=_export_sfc(_sfc_main$4,[["render",_sfc_render$3]]);const _sfc_main$3=defineComponent({name:"BasicUpload",components:{UploadModal:UploadModal,Space:Space,UploadPreviewModal:UploadPreviewModal,Icon:Icon,Tooltip:Tooltip},props:uploadContainerProps,emits:["change","delete","preview-delete","update:value"],setup(e,{emit:t,attrs:n}){const{t:a}=useI18n(),[r,{openModal:o}]=useModal(),[l,{openModal:i}]=useModal(),c=ref([]),u=computed((()=>{const{emptyHidePreview:t}=e;return!t||(!t||c.value.length>0)})),s=computed((()=>{const t=__spreadValues(__spreadValues({},n),e);return omit$1(t,"onChange")}));return watch((()=>e.value),((e=[])=>{c.value=isArray(e)?e:[]}),{immediate:!0}),{registerUploadModal:r,openUploadModal:o,handleChange:function(e){c.value=[...unref(c),...e||[]],t("update:value",c.value),t("change",c.value)},handlePreviewChange:function(e){c.value=[...e||[]],t("update:value",c.value),t("change",c.value)},registerPreviewModal:l,openPreviewModal:i,fileList:c,showPreview:u,bindValue:s,handleDelete:function(e){t("delete",e)},handlePreviewDelete:function(e){t("preview-delete",e)},t:a}}});function _sfc_render$2(e,t,n,a,r,o){const l=resolveComponent("a-button"),i=resolveComponent("Icon"),c=resolveComponent("Tooltip"),u=resolveComponent("Space"),s=resolveComponent("UploadModal"),d=resolveComponent("UploadPreviewModal");return openBlock(),createElementBlock("div",null,[createVNode(u,null,{default:withCtx((()=>[createVNode(l,{type:"primary",onClick:e.openUploadModal,preIcon:"carbon:cloud-upload"},{default:withCtx((()=>[createTextVNode(toDisplayString(e.t("component.upload.upload")),1)])),_:1},8,["onClick"]),e.showPreview?(openBlock(),createBlock(c,{key:0,placement:"bottom"},{title:withCtx((()=>[createTextVNode(toDisplayString(e.t("component.upload.uploaded"))+" ",1),e.fileList.length?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(e.fileList.length),1)],64)):createCommentVNode("",!0)])),default:withCtx((()=>[createVNode(l,{onClick:e.openPreviewModal},{default:withCtx((()=>[createVNode(i,{icon:"bi:eye"}),e.fileList.length&&e.showPreviewNumber?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString(e.fileList.length),1)],64)):createCommentVNode("",!0)])),_:1},8,["onClick"])])),_:1})):createCommentVNode("",!0)])),_:1}),createVNode(s,mergeProps(e.bindValue,{previewFileList:e.fileList,onRegister:e.registerUploadModal,onChange:e.handleChange,onDelete:e.handleDelete}),null,16,["previewFileList","onRegister","onChange","onDelete"]),createVNode(d,{value:e.fileList,onRegister:e.registerPreviewModal,onListChange:e.handlePreviewChange,onDelete:e.handlePreviewDelete},null,8,["value","onRegister","onListChange","onDelete"])])}var basicUpload=_export_sfc(_sfc_main$3,[["render",_sfc_render$2]]);const BasicUpload=withInstall$1(basicUpload),componentMap=new Map;componentMap.set("Input",Input),componentMap.set("InputGroup",Input.Group),componentMap.set("InputPassword",Input.Password),componentMap.set("InputSearch",Input.Search),componentMap.set("InputTextArea",Input.TextArea),componentMap.set("InputNumber",InputNumber),componentMap.set("AutoComplete",AutoComplete$1),componentMap.set("Select",Select),componentMap.set("ApiSelect",ApiSelect),componentMap.set("ApiTree",ApiTree),componentMap.set("TreeSelect",TreeSelect$1),componentMap.set("ApiTreeSelect",ApiTreeSelect),componentMap.set("ApiRadioGroup",ApiRadioGroup),componentMap.set("Switch",Switch),componentMap.set("RadioButtonGroup",RadioButtonGroup),componentMap.set("RadioGroup",Radio.Group),componentMap.set("Checkbox",Checkbox$1),componentMap.set("CheckboxGroup",Checkbox$1.Group),componentMap.set("ApiCascader",ApiCascader),componentMap.set("Cascader",Cascader$1),componentMap.set("Slider",Slider$1),componentMap.set("Rate",Rate$1),componentMap.set("ApiTransfer",ApiTransfer),componentMap.set("DatePicker",DatePicker$1),componentMap.set("MonthPicker",DatePicker$1.MonthPicker),componentMap.set("RangePicker",DatePicker$1.RangePicker),componentMap.set("WeekPicker",DatePicker$1.WeekPicker),componentMap.set("TimePicker",TimePicker$1),componentMap.set("StrengthMeter",StrengthMeter),componentMap.set("IconPicker",_sfc_main$g),componentMap.set("InputCountDown",CountdownInput),componentMap.set("Upload",BasicUpload),componentMap.set("Divider",Divider),registerGuobaComponent(componentMap);const{t:t}=useI18n();function createPlaceholderMessage(e){return e.includes("Input")||e.includes("Complete")?t("common.inputText"):e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?t("common.chooseText"):""}const DATE_TYPE=["DatePicker","MonthPicker","WeekPicker","TimePicker"];function genType(){return[...DATE_TYPE,"RangePicker"]}function setComponentRuleType(e,t,n){["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=n?"string":"object":["RangePicker","Upload","CheckboxGroup","TimePicker"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number")}function handleInputNumberValue(e,t){return e&&["Input","InputPassword","InputSearch","InputTextArea"].includes(e)&&t&&isNumber$1(t)?`${t}`:t}const dateItemType=genType(),defaultValueComponents=["Input","InputPassword","InputSearch","InputTextArea"];function useItemLabelWidth(e,t){return computed((()=>{const n=unref(e),{labelCol:a={},wrapperCol:r={}}=n.itemProps||{},{labelWidth:o,disabledLabelWidth:l}=n,{labelWidth:i,labelCol:c,wrapperCol:u,layout:s}=unref(t);if(!i&&!o&&!c||l)return a.style={textAlign:"left"},{labelCol:a,wrapperCol:r};let d=o||i;const p=__spreadValues(__spreadValues({},c),a),f=__spreadValues(__spreadValues({},u),r);return d&&(d=isNumber$1(d)?`${d}px`:d),{labelCol:__spreadValues({style:{width:d}},p),wrapperCol:__spreadValues({style:{width:"vertical"===s?"100%":`calc(100% - ${d})`}},f)}}))}function _isSlot(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}var _sfc_main$2=defineComponent({name:"BasicFormItem",inheritAttrs:!1,props:{schema:{type:Object,default:()=>({})},formProps:{type:Object,default:()=>({})},allDefaultValues:{type:Object,default:()=>({})},formModel:{type:Object,default:()=>({})},setFormModel:{type:Function,default:null},tableAction:{type:Object},formActionType:{type:Object}},setup(e,{slots:t}){const{t:n}=useI18n(),{schema:a,formProps:r}=toRefs(e),o=useItemLabelWidth(a,r),l=computed((()=>{const{allDefaultValues:t,formModel:n,schema:a}=e,{mergeDynamicData:r}=e.formProps;return{field:a.field,model:n,values:__spreadValues(__spreadValues(__spreadValues({},r),t),n),schema:a}})),i=computed((()=>{var t;const{schema:n,tableAction:a,formModel:r,formActionType:o}=e;let{componentProps:l={}}=n;return isFunction(l)&&(l=null!=(t=l({schema:n,tableAction:a,formModel:r,formActionType:o}))?t:{}),"Divider"===n.component&&(l=Object.assign({type:"horizontal"},l,{orientation:"left",plain:!0})),l})),c=computed((()=>{const{disabled:t}=e.formProps,{dynamicDisabled:n}=e.schema,{disabled:a=!1}=unref(i);let r=!!t||a;return isBoolean(n)&&(r=n),isFunction(n)&&(r=n(unref(l))),r}));function u(){const{show:t,ifShow:n}=e.schema,{showAdvancedButton:a}=e.formProps,r=!a||(!isBoolean(e.schema.isAdvanced)||e.schema.isAdvanced);let o=!0,i=!0;return isBoolean(t)&&(o=t),isBoolean(n)&&(i=n),isFunction(t)&&(o=t(unref(l))),isFunction(n)&&(i=n(unref(l))),o=o&&r,{isShow:o,isIfShow:i}}function s(){var t;const{rules:a=[],component:r,rulesMessageJoinLabel:o,label:c,dynamicRules:s,required:d}=e.schema;if(isFunction(s))return s(unref(l));let p=cloneDeep(a);const{rulesMessageJoinLabel:f}=e.formProps,v=Reflect.has(e.schema,"rulesMessageJoinLabel")?o:f,m=createPlaceholderMessage(r)+`${v?c:""}`;function h(e,t){const n=e.message||m;return void 0===t||isNull(t)||Array.isArray(t)&&0===t.length||"string"==typeof t&&""===t.trim()||"object"==typeof t&&Reflect.has(t,"checked")&&Reflect.has(t,"halfChecked")&&Array.isArray(t.checked)&&Array.isArray(t.halfChecked)&&0===t.checked.length&&0===t.halfChecked.length?Promise.reject(n):Promise.resolve()}const g=isFunction(d)?d(unref(l)):d;if(g)if(p&&0!==p.length){-1===p.findIndex((e=>Reflect.has(e,"required")))&&p.push({required:g,validator:h})}else p=[{required:g,validator:h}];const y=p.findIndex((e=>Reflect.has(e,"required")&&!Reflect.has(e,"validator")));if(-1!==y){const e=p[y],{isShow:n}=u();if(n||(e.required=!1),r){Reflect.has(e,"type")||(e.type="InputNumber"===r?"number":"string"),e.message=e.message||m,(r.includes("Input")||r.includes("Textarea"))&&(e.whitespace=!0);setComponentRuleType(e,r,null==(t=unref(i))?void 0:t.valueFormat)}}const b=p.findIndex((e=>e.max));return-1===b||p[b].validator||(p[b].message=p[b].message||n("component.form.maxTip",[p[b].max])),p}function d(){const{label:t,helpMessage:n,helpComponentProps:a,subLabel:r}=e.schema,o=r?createVNode("span",null,[t,createTextVNode(" "),createVNode("span",{class:"text-secondary"},[r])]):t,i=isFunction(n)?n(unref(l)):n;return!i||Array.isArray(i)&&0===i.length?o:createVNode("span",null,[o,createVNode(BasicHelp,mergeProps({placement:"top",class:"mx-1",text:i},a),null)])}function p(){const{itemProps:n,slot:a,render:r,field:u,suffix:p,component:f,bottomHelpMessage:v}=e.schema,{labelCol:m,wrapperCol:h}=unref(o),{colon:g}=e.formProps;if("Divider"===f){let e;return createVNode(Col,{span:24},{default:()=>[createVNode(Divider,unref(i),_isSlot(e=d())?e:{default:()=>[e]})]})}{const o=()=>a?getSlot$1(t,a,unref(l)):r?r(unref(l)):function(){var t;const{renderComponentContent:n,component:a,field:r,changeEvent:o="change",valueField:u}=e.schema,s=a&&["Switch","Checkbox"].includes(a),d=`on${upperFirst(o)}`,p={[d]:(...t)=>{const[n]=t;h[d]&&h[d](...t);const a=n?n.target:null,o=a?s?a.checked:a.value:n;e.setFormModel(r,o)}},f=componentMap.get(a),{autoSetPlaceHolder:v,size:m}=e.formProps,h=__spreadProps(__spreadValues({allowClear:!0,getPopupContainer:e=>e.parentNode,size:m},unref(i)),{disabled:unref(c)});!h.disabled&&v&&"RangePicker"!==a&&a&&(h.placeholder=(null==(t=unref(i))?void 0:t.placeholder)||createPlaceholderMessage(a)),h.codeField=r,h.formValues=unref(l);const g={[u||(s?"checked":"value")]:e.formModel[r]},y=__spreadValues(__spreadValues(__spreadValues({},h),p),g);if(!n)return createVNode(f,y,null);const b=isFunction(n)?__spreadValues({},n(unref(l))):{default:()=>n};return createVNode(f,y,_isSlot(b)?b:{default:()=>[b]})}(),f=!!p,y=isFunction(p)?p(unref(l)):p;return createVNode(Form.Item,mergeProps({name:u,colon:g,class:{"suffix-item":f}},n,{label:d(),rules:s(),labelCol:m,wrapperCol:h}),{default:()=>[createVNode("div",{style:"display:flex"},[createVNode("div",{style:"flex:1;"},[o(),v&&createVNode("div",{class:"bottom-message"},[v])]),f&&createVNode("span",{class:"suffix"},[y])])]})}}return()=>{let n;const{colProps:a={},colSlot:r,renderColContent:o,component:i}=e.schema;if(!componentMap.has(i))return null;const{baseColProps:c={}}=e.formProps,s=__spreadValues(__spreadValues({},c),a),{isIfShow:d,isShow:f}=u(),v=unref(l);return d&&withDirectives(createVNode(Col,s,_isSlot(n=r?getSlot$1(t,r,v):o?o(v):p())?n:{default:()=>[n]}),[[vShow,f]])}}});const key=Symbol();function createFormContext(e){return createContext(e,key)}function useFormContext(){return useContext(key)}const _sfc_main$1=defineComponent({name:"BasicFormAction",components:{FormItem:Form.Item,Button:Button$1,BasicArrow:BasicArrow,[Col.name]:Col},props:{showActionButtonGroup:propTypes$1.bool.def(!0),showResetButton:propTypes$1.bool.def(!0),showSubmitButton:propTypes$1.bool.def(!0),showAdvancedButton:propTypes$1.bool.def(!0),resetButtonOptions:{type:Object,default:()=>({})},submitButtonOptions:{type:Object,default:()=>({})},actionColOptions:{type:Object,default:()=>({})},actionSpan:propTypes$1.number.def(6),isAdvanced:propTypes$1.bool,hideAdvanceBtn:propTypes$1.bool},emits:["toggle-advanced"],setup(e,{emit:t}){const{t:n}=useI18n(),a=computed((()=>{const{showAdvancedButton:t,actionSpan:n,actionColOptions:a}=e,r=24-n;return __spreadValues(__spreadValues({style:{textAlign:"right"},span:t?6:4},t?{span:r<6?24:r}:{}),a)})),r=computed((()=>Object.assign({text:n("common.resetText")},e.resetButtonOptions))),o=computed((()=>Object.assign({text:n("common.queryText")},e.submitButtonOptions)));return __spreadValues({t:n,actionColOpt:a,getResetBtnOptions:r,getSubmitBtnOptions:o,toggleAdvanced:function(){t("toggle-advanced")}},useFormContext())}});function _sfc_render$1(e,t,n,a,r,o){const l=resolveComponent("Button"),i=resolveComponent("BasicArrow"),c=resolveComponent("FormItem"),u=resolveComponent("a-col");return e.showActionButtonGroup?(openBlock(),createBlock(u,normalizeProps(mergeProps({key:0},e.actionColOpt)),{default:withCtx((()=>[createBaseVNode("div",{style:normalizeStyle([{width:"100%"},{textAlign:e.actionColOpt.style.textAlign}])},[createVNode(c,null,{default:withCtx((()=>[renderSlot(e.$slots,"resetBefore"),e.showResetButton?(openBlock(),createBlock(l,mergeProps({key:0,type:"default",class:"mr-2"},e.getResetBtnOptions,{onClick:e.resetAction}),{default:withCtx((()=>[createTextVNode(toDisplayString(e.getResetBtnOptions.text),1)])),_:1},16,["onClick"])):createCommentVNode("",!0),renderSlot(e.$slots,"submitBefore"),e.showSubmitButton?(openBlock(),createBlock(l,mergeProps({key:1,type:"primary",class:"mr-2"},e.getSubmitBtnOptions,{onClick:e.submitAction}),{default:withCtx((()=>[createTextVNode(toDisplayString(e.getSubmitBtnOptions.text),1)])),_:1},16,["onClick"])):createCommentVNode("",!0),renderSlot(e.$slots,"advanceBefore"),e.showAdvancedButton&&!e.hideAdvanceBtn?(openBlock(),createBlock(l,{key:2,type:"link",size:"small",onClick:e.toggleAdvanced},{default:withCtx((()=>[createTextVNode(toDisplayString(e.isAdvanced?e.t("component.form.putAway"):e.t("component.form.unfold"))+" ",1),createVNode(i,{class:"ml-1",expand:!e.isAdvanced,up:""},null,8,["expand"])])),_:1},8,["onClick"])):createCommentVNode("",!0),renderSlot(e.$slots,"advanceAfter")])),_:3})],4)])),_:3},16)):createCommentVNode("",!0)}var FormAction=_export_sfc(_sfc_main$1,[["render",_sfc_render$1]]);function tryDeconstructArray(e,t,n){const a=/^\[(.+)\]$/;if(a.test(e)){const r=e.match(a);if(r&&r[1]){const e=r[1].split(",");return t=Array.isArray(t)?t:[t],e.forEach(((e,a)=>{set(n,e.trim(),t[a])})),!0}}}function tryDeconstructObject(e,t,n){const a=/^\{(.+)\}$/;if(a.test(e)){const r=e.match(a);if(r&&r[1]){const e=r[1].split(",");return t=isObject(t)?t:{},e.forEach((e=>{set(n,e.trim(),t[e.trim()])})),!0}}}function useFormValues({defaultValueRef:e,getSchema:t,formModel:n,getProps:a}){return{handleFormValues:function(e){var t,n;if(!isObject(e))return{};const r={};for(const o of Object.entries(e)){let[,e]=o;const[l]=o;if(!l||isArray(e)&&0===e.length||isFunction(e))continue;const i=unref(a).transformDateFunc;isObject(e)&&(e=null==i?void 0:i(e)),isArray(e)&&(null==(t=e[0])?void 0:t.format)&&(null==(n=e[1])?void 0:n.format)&&(e=e.map((e=>null==i?void 0:i(e)))),isString(e)&&(e=e.trim()),tryDeconstructArray(l,e,r)||tryDeconstructObject(l,e,r)||set(r,l,e)}return function(e){const t=unref(a).fieldMapToTime;if(!t||!Array.isArray(t))return e;for(const[n,[a,r],o="YYYY-MM-DD"]of t){if(!(n&&a&&r&&e[n]))continue;const[t,l]=e[n];e[a]=dateUtil(t).format(o),e[r]=dateUtil(l).format(o),Reflect.deleteProperty(e,n)}return e}(r)},initDefault:function(){const a=unref(t),r={};a.forEach((e=>{const{defaultValue:t}=e;isNullOrUnDef(t)||(r[e.field]=t,void 0===n[e.field]&&(n[e.field]=t))})),e.value=cloneDeep(r)}}}const BASIC_COL_LEN=24;function useAdvanced({advanceState:e,emit:t,getProps:n,getSchema:a,formModel:r,defaultValueRef:o}){const l=getCurrentInstance(),{realWidthRef:i,screenEnum:c,screenRef:u}=useBreakpoint(),s=computed((()=>{if(!e.isAdvanced)return 0;const t=unref(n).emptySpan||0;if(isNumber$1(t))return t;if(isObject(t)){const{span:e=0}=t;return t[unref(u).toLowerCase()]||e||0}return 0})),d=useDebounceFn((function(){var i;let c=0,u=0;const{baseColProps:d={}}=unref(n);for(const e of unref(a)){const{show:t,colProps:n}=e;let a=!0;if(isBoolean(t)&&(a=t),isFunction(t)&&(a=t({schema:e,model:r,field:e.field,values:__spreadValues(__spreadValues({},unref(o)),r)})),a&&(n||d)){const{itemColSum:t,isAdvanced:a}=p(__spreadValues(__spreadValues({},d),n),c);c=t||0,a&&(u=c),e.isAdvanced=a}}null==(i=null==l?void 0:l.proxy)||i.$forceUpdate(),e.actionSpan=u%BASIC_COL_LEN+unref(s),p(unref(n).actionColOptions||{span:BASIC_COL_LEN},c,!0),t("advanced-change")}),30);function p(t,a=0,r=!1){const o=unref(i),l=parseInt(t.md)||parseInt(t.xs)||parseInt(t.sm)||t.span||BASIC_COL_LEN,u=parseInt(t.lg)||l,s=parseInt(t.xl)||u,d=parseInt(t.xxl)||s;return o<=c.LG?a+=l:o2*BASIC_COL_LEN&&a<=BASIC_COL_LEN*(unref(n).autoAdvancedLine||3)?e.hideAdvanceBtn=!1:e.isLoad||(e.isLoad=!0,e.isAdvanced=!e.isAdvanced),{isAdvanced:e.isAdvanced,itemColSum:a}):a>BASIC_COL_LEN*(unref(n).alwaysShowLines||1)?{isAdvanced:e.isAdvanced,itemColSum:a}:{isAdvanced:!0,itemColSum:a}}return watch([()=>unref(a),()=>e.isAdvanced,()=>unref(i)],(()=>{const{showAdvancedButton:e}=unref(n);e&&d()}),{immediate:!0}),{handleToggleAdvanced:function(){e.isAdvanced=!e.isAdvanced}}}function useFormEvents({emit:emit,getProps:getProps,formModel:formModel,getSchema:getSchema,defaultValueRef:defaultValueRef,formElRef:formElRef,schemaRef:schemaRef,handleFormValues:handleFormValues}){function resetFields(){return __async(this,null,(function*(){const{resetFunc:e,submitOnReset:t}=unref(getProps);e&&isFunction(e)&&(yield e());unref(formElRef)&&(Object.keys(formModel).forEach((e=>{const t=unref(getSchema).find((t=>t.field===e)),n=(null==t?void 0:t.component)&&defaultValueComponents.includes(t.component),a=cloneDeep(defaultValueRef.value[e]);formModel[e]=n?a||"":a})),nextTick((()=>clearValidate())),emit("reset",toRaw(formModel)),t&&handleSubmit())}))}function setFieldsValue(values){return __async(this,null,(function*(){const fields=unref(getSchema).map((e=>e.field)).filter(Boolean),delimiter=".",nestKeyArray=fields.filter((e=>e.indexOf(delimiter)>=0)),validKeys=[];Object.keys(values).forEach((key=>{const schema=unref(getSchema).find((e=>e.field===key));let value=values[key];const hasKey=Reflect.has(values,key);if(value=handleInputNumberValue(null==schema?void 0:schema.component,value),hasKey&&fields.includes(key)){if(itemIsDateType(key))if(Array.isArray(value)){const e=[];for(const t of value)e.push(t?dateUtil(t):null);formModel[key]=e}else{const{componentProps:e}=schema||{};let t=e;"function"==typeof e&&(t=t({formModel:formModel})),formModel[key]=value?(null==t?void 0:t.valueFormat)?value:dateUtil(value):null}else formModel[key]=value;validKeys.push(key)}else nestKeyArray.forEach((nestKey=>{try{const value=eval("values"+delimiter+nestKey);isDef(value)&&(formModel[nestKey]=value,validKeys.push(nestKey))}catch(e){isDef(defaultValueRef.value[nestKey])&&(formModel[nestKey]=cloneDeep(defaultValueRef.value[nestKey]))}}))})),validateFields(validKeys).catch((e=>{}))}))}function removeSchemaByFiled(e){return __async(this,null,(function*(){const t=cloneDeep(unref(getSchema));if(!e)return;let n=isString(e)?[e]:e;isString(e)&&(n=[e]);for(const e of n)_removeSchemaByFiled(e,t);schemaRef.value=t}))}function _removeSchemaByFiled(e,t){if(isString(e)){const n=t.findIndex((t=>t.field===e));-1!==n&&(delete formModel[e],t.splice(n,1))}}function appendSchemaByField(e,t,n=!1){return __async(this,null,(function*(){const a=cloneDeep(unref(getSchema)),r=a.findIndex((e=>e.field===t));if(!t||-1===r||n)return n?a.unshift(e):a.push(e),schemaRef.value=a,void _setDefaultValue(e);-1!==r&&a.splice(r+1,0,e),_setDefaultValue(e),schemaRef.value=a}))}function resetSchema(e){return __async(this,null,(function*(){let t=[];isObject(e)&&t.push(e),isArray(e)&&(t=[...e]);t.every((e=>"Divider"===e.component||Reflect.has(e,"field")&&e.field))?schemaRef.value=t:error("All children of the form Schema array that need to be updated must contain the `field` field")}))}function updateSchema(e){return __async(this,null,(function*(){let t=[];isObject(e)&&t.push(e),isArray(e)&&(t=[...e]);if(!t.every((e=>"Divider"===e.component||Reflect.has(e,"field")&&e.field)))return void error("All children of the form Schema array that need to be updated must contain the `field` field");const n=[];t.forEach((e=>{unref(getSchema).forEach((t=>{if(t.field===e.field){const a=deepMerge(t,e);n.push(a)}else n.push(t)}))})),_setDefaultValue(n),schemaRef.value=uniqBy(n,"field")}))}function _setDefaultValue(e){let t=[];isObject(e)&&t.push(e),isArray(e)&&(t=[...e]);const n={},a=getFieldsValue();t.forEach((e=>{"Divider"!=e.component&&Reflect.has(e,"field")&&e.field&&!isNullOrUnDef(e.defaultValue)&&!(e.field in a)&&(n[e.field]=e.defaultValue)})),setFieldsValue(n)}function getFieldsValue(){return unref(formElRef)?handleFormValues(toRaw(unref(formModel))):{}}function itemIsDateType(e){return unref(getSchema).some((t=>t.field===e&&dateItemType.includes(t.component)))}function validateFields(e){return __async(this,null,(function*(){var t;return null==(t=unref(formElRef))?void 0:t.validateFields(e)}))}function validate(e){return __async(this,null,(function*(){var t;return yield null==(t=unref(formElRef))?void 0:t.validate(e)}))}function clearValidate(e){return __async(this,null,(function*(){var t;yield null==(t=unref(formElRef))?void 0:t.clearValidate(e)}))}function scrollToField(e,t){return __async(this,null,(function*(){var n;yield null==(n=unref(formElRef))?void 0:n.scrollToField(e,t)}))}function handleSubmit(e){return __async(this,null,(function*(){e&&e.preventDefault();const{submitFunc:t}=unref(getProps);if(t&&isFunction(t))return void(yield t());if(unref(formElRef))try{const e=yield validate(),t=handleFormValues(e);emit("submit",t)}catch(n){throw new Error(n)}}))}return{handleSubmit:handleSubmit,clearValidate:clearValidate,validate:validate,validateFields:validateFields,getFieldsValue:getFieldsValue,updateSchema:updateSchema,resetSchema:resetSchema,appendSchemaByField:appendSchemaByField,removeSchemaByFiled:removeSchemaByFiled,resetFields:resetFields,setFieldsValue:setFieldsValue,scrollToField:scrollToField}}function useAutoFocus(e){return __async(this,arguments,(function*({getSchema:e,getProps:t,formElRef:n,isInitedDefault:a}){watchEffect((()=>__async(this,null,(function*(){if(unref(a)||!unref(t).autoFocusFirstItem)return;yield nextTick();const r=unref(e),o=unref(n),l=null==o?void 0:o.$el;if(!o||!l||!r||0===r.length)return;if(!r[0].component.includes("Input"))return;const i=l.querySelector(".ant-row:first-child input");i&&(null==i||i.focus())}))))}))}const{form:form}=componentSetting,basicProps={model:{type:Object,default:{}},labelWidth:{type:[Number,String],default:0},fieldMapToTime:{type:Array,default:()=>[]},compact:propTypes$1.bool,schemas:{type:[Array],default:()=>[]},mergeDynamicData:{type:Object,default:null},baseRowStyle:{type:Object},baseColProps:{type:Object},autoSetPlaceHolder:propTypes$1.bool.def(!0),autoSubmitOnEnter:propTypes$1.bool.def(!1),submitOnReset:propTypes$1.bool,submitOnChange:propTypes$1.bool,size:propTypes$1.oneOf(["default","small","large"]).def("default"),disabled:propTypes$1.bool,emptySpan:{type:[Number,Object],default:0},showAdvancedButton:propTypes$1.bool,transformDateFunc:{type:Function,default:e=>{var t,n;return null!=(n=null==(t=null==e?void 0:e.format)?void 0:t.call(e,"YYYY-MM-DD HH:mm:ss"))?n:e}},rulesMessageJoinLabel:propTypes$1.bool.def(!0),autoAdvancedLine:propTypes$1.number.def(3),alwaysShowLines:propTypes$1.number.def(1),showActionButtonGroup:propTypes$1.bool.def(!0),actionColOptions:Object,showResetButton:propTypes$1.bool.def(!0),autoFocusFirstItem:propTypes$1.bool,resetButtonOptions:Object,showSubmitButton:propTypes$1.bool.def(!0),submitButtonOptions:Object,resetFunc:Function,submitFunc:Function,hideRequiredMark:propTypes$1.bool,labelCol:{type:Object,default:form.labelCol},layout:propTypes$1.oneOf(["horizontal","vertical","inline"]).def("horizontal"),tableAction:{type:Object},wrapperCol:{type:Object,default:form.wrapperCol},colon:propTypes$1.bool.def(form.colon),labelAlign:propTypes$1.string,rowProps:Object};var BasicForm_vue_vue_type_style_index_0_lang=(()=>".guoba-basic-form .ant-form-item-label label:after{margin:0 6px 0 2px}.guoba-basic-form .ant-form-item-with-help{margin-bottom:0}.guoba-basic-form .ant-form-item:not(.ant-form-item-with-help){margin-bottom:20px}.guoba-basic-form .ant-form-item.suffix-item .ant-form-item-children{display:flex}.guoba-basic-form .ant-form-item.suffix-item .ant-form-item-control{margin-top:4px}.guoba-basic-form .ant-form-item.suffix-item .suffix{display:inline-flex;padding-left:6px;margin-top:1px;line-height:1;align-items:center}.guoba-basic-form .ant-form-item .bottom-message{color:#bfbfbf}.guoba-basic-form .ant-form-explain{font-size:14px}.guoba-basic-form--compact .ant-form-item{margin-bottom:8px!important}[data-theme=dark] .guoba-basic-form .ant-form-item .bottom-message{color:#5c5c5c}\n")();const _sfc_main=defineComponent({name:"BasicForm",components:{FormItem:_sfc_main$2,Form:Form,Row:Row,FormAction:FormAction},props:basicProps,emits:["advanced-change","reset","submit","register","field-value-change"],setup(e,{emit:t,attrs:n}){const a=reactive({}),r=useModalContext(),o=reactive({isAdvanced:!0,hideAdvanceBtn:!1,isLoad:!1,actionSpan:6}),l=ref({}),i=ref(!1),c=ref({}),u=ref(null),s=ref(null),{prefixCls:d}=useDesign("basic-form"),p=computed((()=>__spreadValues(__spreadValues({},e),unref(c)))),f=computed((()=>[d,{[`${d}--compact`]:unref(p).compact}])),v=computed((()=>{const{baseRowStyle:e={},rowProps:t}=unref(p);return __spreadValues({style:e},t)})),m=computed((()=>__spreadValues(__spreadValues(__spreadValues({},n),e),unref(p)))),h=computed((()=>{const e=unref(u)||unref(p).schemas;for(const t of e){const{defaultValue:e,component:n}=t;if(e&&dateItemType.includes(n))if(Array.isArray(e)){const n=[];e.forEach((e=>{n.push(dateUtil(e))})),t.defaultValue=n}else t.defaultValue=dateUtil(e)}return unref(p).showAdvancedButton?cloneDeep(e.filter((e=>"Divider"!==e.component))):cloneDeep(e)})),{handleToggleAdvanced:g}=useAdvanced({advanceState:o,emit:t,getProps:p,getSchema:h,formModel:a,defaultValueRef:l}),{handleFormValues:y,initDefault:b}=useFormValues({getProps:p,defaultValueRef:l,getSchema:h,formModel:a});useAutoFocus({getSchema:h,getProps:p,isInitedDefault:i,formElRef:s});const{handleSubmit:k,setFieldsValue:x,clearValidate:w,validate:C,validateFields:_,getFieldsValue:S,updateSchema:P,resetSchema:N,appendSchemaByField:O,removeSchemaByFiled:T,resetFields:V,scrollToField:D}=useFormEvents({emit:t,getProps:p,formModel:a,getSchema:h,defaultValueRef:l,formElRef:s,schemaRef:u,handleFormValues:y});createFormContext({resetAction:V,submitAction:k}),watch((()=>unref(p).model),(()=>{const{model:e}=unref(p);e&&x(e)}),{immediate:!0}),watch((()=>unref(p).schemas),(e=>{N(null!=e?e:[])})),watch((()=>h.value),(e=>{nextTick((()=>{var e;null==(e=null==r?void 0:r.redoModalHeight)||e.call(r)})),unref(i)||(null==e?void 0:e.length)&&(b(),i.value=!0)})),watch((()=>a),useDebounceFn((()=>{unref(p).submitOnChange&&k()}),300),{deep:!0});const A={getFieldsValue:S,setFieldsValue:x,resetFields:V,updateSchema:P,resetSchema:N,setProps:function(e){return __async(this,null,(function*(){c.value=deepMerge(unref(c)||{},e)}))},removeSchemaByFiled:T,appendSchemaByField:O,clearValidate:w,validateFields:_,validate:C,submit:k,scrollToField:D};return onMounted((()=>{b(),t("register",A,a)})),__spreadValues({getBindValue:m,handleToggleAdvanced:g,handleEnterPress:function(e){const{autoSubmitOnEnter:t}=unref(p);if(t&&"Enter"===e.key&&e.target&&e.target instanceof HTMLElement){const t=e.target;t&&t.tagName&&"INPUT"==t.tagName.toUpperCase()&&k()}},formModel:a,defaultValueRef:l,advanceState:o,getRow:v,getProps:p,formElRef:s,getSchema:h,formActionType:A,setFormModel:function(e,n){a[e]=n;const{validateTrigger:r}=unref(m);r&&"change"!==r||_([e]).catch((e=>{})),t("field-value-change",e,n)},getFormClass:f,getFormActionBindProps:computed((()=>__spreadValues(__spreadValues({},p.value),o)))},A)}});function _sfc_render(e,t,n,a,r,o){const l=resolveComponent("FormItem"),i=resolveComponent("FormAction"),c=resolveComponent("Row"),u=resolveComponent("Form");return openBlock(),createBlock(u,mergeProps(e.getBindValue,{class:e.getFormClass,ref:"formElRef",model:e.formModel,onKeypress:withKeys(e.handleEnterPress,["enter"])}),{default:withCtx((()=>[createVNode(c,normalizeProps(guardReactiveProps(e.getRow)),{default:withCtx((()=>[renderSlot(e.$slots,"formHeader"),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.getSchema,(t=>(openBlock(),createBlock(l,{key:t.field,tableAction:e.tableAction,formActionType:e.formActionType,schema:t,formProps:e.getProps,allDefaultValues:e.defaultValueRef,formModel:e.formModel,setFormModel:e.setFormModel},createSlots({_:2},[renderList(Object.keys(e.$slots),(t=>({name:t,fn:withCtx((n=>[renderSlot(e.$slots,t,normalizeProps(guardReactiveProps(n||{})))]))})))]),1032,["tableAction","formActionType","schema","formProps","allDefaultValues","formModel","setFormModel"])))),128)),createVNode(i,mergeProps(e.getFormActionBindProps,{onToggleAdvanced:e.handleToggleAdvanced}),createSlots({_:2},[renderList(["resetBefore","submitBefore","advanceBefore","advanceAfter"],(t=>({name:t,fn:withCtx((n=>[renderSlot(e.$slots,t,normalizeProps(guardReactiveProps(n||{})))]))})))]),1040,["onToggleAdvanced"]),renderSlot(e.$slots,"formFooter")])),_:3},16)])),_:3},16,["class","model","onKeypress"])}var BasicForm=_export_sfc(_sfc_main,[["render",_sfc_render]]),BasicForm$1=Object.freeze(Object.defineProperty({__proto__:null,default:BasicForm},Symbol.toStringTag,{value:"Module"}));export{Alert$1 as A,BasicForm as B,DatePicker$1 as D,FETCH_SETTING as F,INDEX_COLUMN_FLAG as I,Progress as P,ROW_KEY as R,Tree as T,TableAction as a,conductCheck as b,convertDataToEntities as c,arrDel as d,arrAdd as e,PAGE_SIZE as f,getOffset as g,PAGE_SIZE_OPTIONS as h,ApiSelect as i,AutoComplete$1 as j,ApiTreeSelect as k,TimePicker$1 as l,useTableContext as m,DEFAULT_ALIGN as n,ACTION_COLUMN_FLAG as o,buildUUID as p,DEFAULT_SORT_FN as q,DEFAULT_FILTER_FN as r,DEFAULT_SIZE as s,createTableContext as t,useMaxLevel as u,Image$2 as v,BasicForm$1 as w}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/Breadcrumb.css b/Yunzai/plugins/Guoba-Plugin/server/static/assets/Breadcrumb.css deleted file mode 100644 index bde59b8739c2760c8e42e7a54877df781cabb0b6..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/Breadcrumb.css +++ /dev/null @@ -1 +0,0 @@ -.guoba-layout-breadcrumb{display:flex;padding:0 8px;align-items:center}.guoba-layout-breadcrumb .ant-breadcrumb-link .anticon{margin-right:4px;margin-bottom:2px}.guoba-layout-breadcrumb--light .ant-breadcrumb-link{color:#999}.guoba-layout-breadcrumb--light .ant-breadcrumb-link a{color:#000000a6}.guoba-layout-breadcrumb--light .ant-breadcrumb-link a:hover{color:#6495ed}.guoba-layout-breadcrumb--light .ant-breadcrumb-separator{color:#999}.guoba-layout-breadcrumb--dark .ant-breadcrumb-link{color:#fff9}.guoba-layout-breadcrumb--dark .ant-breadcrumb-link a{color:#fffc}.guoba-layout-breadcrumb--dark .ant-breadcrumb-link a:hover{color:#fff}.guoba-layout-breadcrumb--dark .ant-breadcrumb-separator,.guoba-layout-breadcrumb--dark .anticon{color:#fffc} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/Breadcrumb.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/Breadcrumb.js deleted file mode 100644 index 6de02f3c2ef94b6af4a7d01803159848239a14b9..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/Breadcrumb.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,i=(e,t)=>{for(var r in t||(t={}))a.call(t,r)&&o(e,r,t[r]);if(n)for(var r of n(t))l.call(t,r)&&o(e,r,t[r]);return e},u=(e,n)=>t(e,r(n));import{a as s,b as c,b$ as d,p as m,r as v,eD as p,Q as h,eS as f,ev as b,v as y,o as g,f as C,k as O,j as k,i as x,R as j,m as w,l as I,U as P,s as B,eF as R,eO as S,eC as $,f_ as M,bY as A,e as D}from"./index.js";import{B as _}from"./index16.js";const E=c({name:"LayoutBreadcrumb",components:{Icon:d,[_.name]:_},props:{theme:m.oneOf(["dark","light"])},setup(){const e=v([]),{currentRoute:t}=p(),{prefixCls:r}=h("layout-breadcrumb"),{getShowBreadCrumbIcon:n}=f(),a=b(),{t:l}=B();function o(e,t){const r=[];return e.forEach((e=>{var n,a;t.includes(e.path)&&r.push(u(i({},e),{name:(null==(n=e.meta)?void 0:n.title)||e.name})),(null==(a=e.children)?void 0:a.length)&&r.push(...o(e.children,t))})),r}return y((()=>{return r=this,n=null,a=function*(){var r,n,a;if(t.value.name===R)return;const l=yield S(),s=t.value.matched,c=null==s?void 0:s[s.length-1];let d=t.value.path;c&&(null==(r=null==c?void 0:c.meta)?void 0:r.currentActiveMenu)&&(d=c.meta.currentActiveMenu);const m=$(l,d),v=o(l.filter((e=>e.path===m[0])),m);if(!v||0===v.length)return;const p=M(v,(e=>{const{meta:t,name:r}=e;if(!t)return!!r;const{title:n,hideBreadcrumb:a,hideMenu:l}=t;return!(!n||a||l)})).filter((e=>{var t;return!(null==(t=e.meta)?void 0:t.hideBreadcrumb)}));(null==(n=t.value.meta)?void 0:n.currentActiveMenu)&&p.push(u(i({},t.value),{name:(null==(a=t.value.meta)?void 0:a.title)||t.value.name})),e.value=p},new Promise(((e,t)=>{var l=e=>{try{i(a.next(e))}catch(r){t(r)}},o=e=>{try{i(a.throw(e))}catch(r){t(r)}},i=t=>t.done?e(t.value):Promise.resolve(t.value).then(l,o);i((a=a.apply(r,n)).next())}));var r,n,a})),{routes:e,t:l,prefixCls:r,getIcon:function(e){var t;return e.icon||(null==(t=e.meta)?void 0:t.icon)},getShowBreadCrumbIcon:n,handleClick:function(e,t,r){null==r||r.preventDefault();const{children:n,redirect:l,meta:o}=e;if(!(null==n?void 0:n.length)||l){if(!(null==o?void 0:o.carryParam))if(l&&A(l))a(l);else{let e="";if(1===t.length)e=t[0];else{e=`${t.slice(1).pop()||""}`}e=/^\//.test(e)?e:`/${e}`,a(e)}}else null==r||r.stopPropagation()},hasRedirect:function(e,t){return e.indexOf(t)!==e.length-1}}}}),F={key:1};var L=s(E,[["render",function(e,t,r,n,a,l){const o=D("Icon"),i=D("router-link"),u=D("a-breadcrumb");return g(),C("div",{class:P([e.prefixCls,`${e.prefixCls}--${e.theme}`])},[O(u,{routes:e.routes},{itemRender:k((({route:t,routes:r,paths:n})=>[e.getShowBreadCrumbIcon&&e.getIcon(t)?(g(),x(o,{key:0,icon:e.getIcon(t)},null,8,["icon"])):j("",!0),e.hasRedirect(r,t)?(g(),x(i,{key:2,to:"",onClick:r=>e.handleClick(t,n,r)},{default:k((()=>[I(w(e.t(t.name||t.meta.title)),1)])),_:2},1032,["onClick"])):(g(),C("span",F,w(e.t(t.name||t.meta.title)),1))])),_:1},8,["routes"])],2)}]]);export{L as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/CardForm.css b/Yunzai/plugins/Guoba-Plugin/server/static/assets/CardForm.css deleted file mode 100644 index b45deec31d1146f759cd52c9cbee3a4a0f329157..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/CardForm.css +++ /dev/null @@ -1 +0,0 @@ -.guoba-card-form{margin-bottom:12px}.guoba-card-form .ant-card-head-title{padding:0}.guoba-card-form .card-title{padding:16px 0}.guoba-card-form.allow-fold .card-title{cursor:pointer}.guoba-card-form.allow-fold.folded .ant-card-body{display:none} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/CardForm.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/CardForm.js deleted file mode 100644 index fe6712c4907550e307995aac3880574aa94696ad..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/CardForm.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,r=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,i=(r,t,o)=>t in r?e(r,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[t]=o;import{a as l,b as d,p as s,Q as p,r as c,G as m,e as u,o as f,i as y,j,ae as v,m as b,f as C,R as g,k as x,F as k,U as w,u as F}from"./index.js";import{B as _}from"./BasicForm.js";import"./index2.js";/* empty css *//* empty css */import"./index4.js";import"./find.js";import"./_baseIteratee.js";import"./get.js";import"./index5.js";import"./index6.js";import"./useFormItem.js";import"./transButton.js";import"./upperFirst.js";import"./download.js";import"./index7.js";import"./index8.js";import"./uniqBy.js";import"./useWindowSizeFn.js";import"./FullscreenOutlined.js";const O=d({name:"CardForm",components:{BasicForm:_},props:{card:s.object.isRequired.type,form:s.object.isRequired.type,isDefault:s.bool.def(!1),allowFold:s.bool.def(!1),defaultFold:s.bool.def(!1)},emits:["redo","submit","addCard","delCard"],setup(e,{emit:l}){const{createPrompt:d}=F(),{prefixCls:s}=p("card-form"),u=c(!!e.defaultFold),f=m((()=>{return r=e.card,t=e.form,r.title.replace(/{{([^}]+)}}/g,((e,o)=>new Function("card","form",`return ${o}`)(r,t)));var r,t})),y=m((()=>{var r,t;return null!=(t=null==(r=e.card)?void 0:r.addBtnText)?t:"新增"}));return{emit:l,prefixCls:s,folded:u,cardTitle:f,addBtnText:y,onClickTitle:function(){e.allowFold&&(u.value=!u.value)},onAddCard:function(){var s,p;d((p=((e,r)=>{for(var t in r||(r={}))a.call(r,t)&&i(e,t,r[t]);if(o)for(var t of o(r))n.call(r,t)&&i(e,t,r[t]);return e})({title:y.value,required:!0},null==(s=e.card)?void 0:s.promptProps),r(p,t({onOk(r){return t=this,o=null,a=function*(){l("addCard",{form:e.form,key:r})},new Promise(((e,r)=>{var n=e=>{try{l(a.next(e))}catch(t){r(t)}},i=e=>{try{l(a.throw(e))}catch(t){r(t)}},l=r=>r.done?e(r.value):Promise.resolve(r.value).then(n,i);l((a=a.apply(t,o)).next())}));var t,o,a}}))))},onRemoveCard:function(){l("delCard",{form:e.form})}}}}),P={key:0,style:{"margin-left":"8px"}},B={style:{"text-align":"center"}},T=v("span",null,"保存",-1),h=v("span",null,"删除当前配置",-1);var R=l(O,[["render",function(e,r,t,o,a,n){const i=u("icon"),l=u("a-tooltip"),d=u("BasicForm"),s=u("a-button"),p=u("a-divider"),c=u("a-popconfirm"),m=u("a-spin"),F=u("a-card");return f(),y(F,{class:w([e.prefixCls,{"allow-fold":e.allowFold,folded:e.folded}]),bordered:!1},{title:j((()=>[v("div",{class:"card-title",onClick:r[0]||(r[0]=(...r)=>e.onClickTitle&&e.onClickTitle(...r))},[v("span",null,b(e.cardTitle),1),e.allowFold?(f(),C("span",P,[e.folded?(f(),y(i,{key:0,icon:"ant-design:caret-down"})):(f(),y(i,{key:1,icon:"ant-design:caret-up"}))])):g("",!0)])])),extra:j((()=>[x(l,{title:"刷新"},{default:j((()=>[x(i,{icon:"ant-design:redo",style:{cursor:"pointer"},onClick:r[1]||(r[1]=()=>e.emit("redo",e.form))})])),_:1})])),default:j((()=>[x(m,{spinning:e.form.loading},{default:j((()=>[x(d,{onRegister:e.form.register},null,8,["onRegister"]),v("div",B,[x(s,{type:"primary","pre-icon":"ant-design:save",onClick:r[2]||(r[2]=()=>e.emit("submit",e.form))},{default:j((()=>[T])),_:1}),e.isDefault?(f(),C(k,{key:0},[x(p,{type:"vertical"}),e.card.allowAdd?(f(),y(s,{key:0,"pre-icon":"ant-design:plus",onClick:e.onAddCard},{default:j((()=>[v("span",null,b(e.addBtnText),1)])),_:1},8,["onClick"])):g("",!0)],64)):(f(),C(k,{key:1},[x(p,{type:"vertical"}),x(c,{title:"确定要删除当前配置吗?",onConfirm:e.onRemoveCard},{default:j((()=>[e.card.allowDel?(f(),y(s,{key:0,"pre-icon":"ant-design:minus",danger:""},{default:j((()=>[h])),_:1})):g("",!0)])),_:1},8,["onConfirm"])],64))])])),_:1},8,["spinning"])])),_:1},8,["class"])}]]);export{R as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ConfigForm.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/ConfigForm.js deleted file mode 100644 index 7da2f99f6d6eb910450a6b24cdc311a906f16514..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ConfigForm.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,r=Object.defineProperties,o=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,l=(r,o,a)=>o in r?e(r,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[o]=a,i=(e,r)=>{for(var o in r||(r={}))t.call(r,o)&&l(e,o,r[o]);if(a)for(var o of a(r))n.call(r,o)&&l(e,o,r[o]);return e},s=(e,a)=>r(e,o(a)),d=(e,r,o)=>new Promise(((a,t)=>{var n=e=>{try{i(o.next(e))}catch(r){t(r)}},l=e=>{try{i(o.throw(e))}catch(r){t(r)}},i=e=>e.done?a(e.value):Promise.resolve(e.value).then(n,l);i((o=o.apply(e,r)).next())}));import"./BasicForm.js";import{d6 as y,a as c,b as u,S as f,p as m,r as k,H as p,ag as b,q as F,e as g,o as v,f as h,F as C,h as j,i as S,af as O}from"./index.js";import R from"./CardForm.js";import _ from"./ArrayForm.js";function A(){return y.get({url:"/config/tabs"})}function w(e,r){return y.delete({url:"/config/card-Form",params:{formKey:e,cardKey:r}},{errorMessageMode:"modal"})}var K=c(u({name:"ConfigForm",components:{ArrayForm:_,CardForm:R,ScrollContainer:f},props:{cards:m.object.isRequired.type},setup(e){const{createMessage:r}=O(),o=k({}),a=k({}),t=k(e.cards.map((function(e){if("keyFormCard"===e.type)return o.value[e.key]=[],{key:e.key,loading:!1,isKeyForm:!0,card:e};if("arrayFormCard"===e.type)return a.value[e.key]=[],{key:e.key,loading:!1,isArrayForm:!0,card:e};return n(e)})));function n(e,r){const[o,a]=b({labelWidth:120,schemas:e.schemas,labelAlign:"right",showActionButtonGroup:!1,baseColProps:{span:24}});return i({key:e.key,loading:!1,register:o,actions:a},r)}function l(e){return d(this,null,(function*(){var r,t,l;try{e.loading=!0;let d=e.key;e.isKeyForm&&(d=e.card.key);let c=yield(l=d,y.get({url:"/config/data",params:{key:l}},{errorMessageMode:"modal"}));if(e.isKeyForm){let a=e=>e.replace(/^INTEGER__/,""),t=Object.keys(c),l=[],d=[],y=[],u=null!=(r=o.value[e.card.key])?r:[];t.forEach((e=>{u.find((r=>r.key===a(e)))||d.push(e)})),u.forEach((e=>{t.find((r=>a(r)===e.key))||y.push(e.key)})),l=t.filter((e=>!d.includes(e)&&!y.includes(e)));let f=(e,r)=>{var o;let a={};for(const[t,n]of Object.entries(c))if(t===r){a[r]=n;break}null==(o=e.actions)||o.setFieldsValue(a)},m=d.map((r=>{let o=r,t=n({key:a(r),schemas:e.card.schemas.map((e=>s(i({},e),{field:o+"."+e.field})))},{fieldKey:o,isKeyForm:e.isKeyForm,card:e.card}),l=t.register;return t.register=function(...e){l(...e),F((()=>f(t,o)))},t})),k=e=>(r,o)=>"default"===r.key?e:r.key.localeCompare(o.key);u=u.concat(m).filter((e=>!y.includes(e.key))),u=u.sort(k(1)).sort(k(-1)),u.forEach((e=>{for(const r of l)if(a(r)===e.key){F((()=>f(e,r)));break}})),o.value[e.card.key]=u}else e.isArrayForm?a.value[e.key]=c:yield null==(t=e.actions)?void 0:t.setFieldsValue(c)}finally{e.loading=!1}}))}function c(e){return d(this,null,(function*(){var o,a,t;try{e.loading=!0;let n=yield null==(o=e.actions)?void 0:o.validate(),i=e.key;if(e.isKeyForm){i=e.card.key;let r=Object.entries(n);n={};for(let[e,o]of r)if(e.includes(".")){let[r,a]=e.split(".");n[r]||(n[r]={}),n[r][a]=o}else n[e]=o}yield(a=i,t=n,y.post({url:"/config/data",params:{key:a,data:t}})),r.success("保存成功~"),yield l(e)}finally{e.loading=!1}}))}return p((()=>{for(let e of t.value)l(e)})),{forms:t,keyForms:o,arrayForms:a,onRedo:l,onSubmit:c,onAddCard:function(e){return d(this,arguments,(function*({form:e,key:a}){if(o.value[e.card.key].findIndex((e=>e.key===a))>-1)return r.warn("已存在相同的配置"),!1;yield c(s(i({},e),{key:a,actions:s(i({},e.actions),{validate:()=>d(this,null,(function*(){return{["INTEGER__"+a]:{__place__:0}}}))})}))}))},onDelCard:function(e){return d(this,arguments,(function*({form:e}){try{e.loading=!0;let o=e.fieldKey,a=e.card.key;yield w(o,a),r.success("删除成功~"),yield l(e)}finally{e.loading=!1}}))}}}}),[["render",function(e,r,o,a,t,n){const l=g("CardForm"),i=g("ArrayForm");return v(),h("div",null,[(v(!0),h(C,null,j(e.cards,((r,o)=>(v(),h(C,{key:r.key},["keyFormCard"===r.type?(v(!0),h(C,{key:0},j(e.keyForms[r.key],(o=>(v(),S(l,{key:o.key,card:r,form:o,isDefault:"default"===o.key,allowFold:"default"!==o.key,defaultFold:"",onRedo:e.onRedo,onSubmit:e.onSubmit,onAddCard:e.onAddCard,onDelCard:e.onDelCard},null,8,["card","form","isDefault","allowFold","onRedo","onSubmit","onAddCard","onDelCard"])))),128)):"arrayFormCard"===r.type?(v(),S(i,{key:1,card:r,form:e.forms[o],value:e.arrayForms[r.key],onRedo:e.onRedo,onSubmit:e.onSubmit},null,8,["card","form","value","onRedo","onSubmit"])):(v(),S(l,{key:2,card:r,form:e.forms[o],onRedo:e.onRedo,onSubmit:e.onSubmit},null,8,["card","form","onRedo","onSubmit"]))],64)))),128))])}]]),P=Object.freeze(Object.defineProperty({__proto__:null,default:K},Symbol.toStringTag,{value:"Module"}));export{K as C,P as a,A as q}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/CopyOutlined.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/CopyOutlined.js deleted file mode 100644 index 2a1880fde5a41cb61a21c40216f27c4d6b2007dd..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/CopyOutlined.js +++ /dev/null @@ -1 +0,0 @@ -import{k as e,ac as t}from"./index.js";var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function n(e){for(var t=1;t(i(),r(m(t),d({width:800,title:m(u)("sys.errorLog.tableActionDesc")},s.$attrs),{default:n((()=>[l(m(e),{data:a.info,onRegister:m(f)},null,8,["data","onRegister"])])),_:1},16,["title"]))}});export{u as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/DropMenuItem.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/DropMenuItem.js deleted file mode 100644 index debd883eca5b22bd7252d6298c4d1f8fdff21320..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/DropMenuItem.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,b as n,bM as s,b$ as t,p as a,G as o,o as r,i,j as l,ae as u,k as c,m,e as p,a2 as d}from"./index.js";const v=n({name:"DropdownMenuItem",components:{MenuItem:s.Item,Icon:t},props:{key:a.string,text:a.string,icon:a.string},setup(e){const n=d();return{itemKey:o((()=>{var s,t;return e.key||(null==(t=null==(s=null==n?void 0:n.vnode)?void 0:s.props)?void 0:t.key)}))}}}),y={class:"flex items-center"};var I=e(v,[["render",function(e,n,s,t,a,o){const d=p("Icon"),v=p("MenuItem");return r(),i(v,{key:e.itemKey},{default:l((()=>[u("span",y,[c(d,{icon:e.icon,class:"mr-1"},null,8,["icon"]),u("span",null,m(e.text),1)])])),_:1})}]]);export{I as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/DynamicInfo.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/DynamicInfo.js deleted file mode 100644 index 84cf7cd4acf5958db243b455db695fd878275f76..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/DynamicInfo.js +++ /dev/null @@ -1 +0,0 @@ -import{b as a,ft as t,e,o as s,i as n,j as r,k as l,x as i,l as o,m as u,ae as m,b$ as d,V as c,fr as f}from"./index.js";import{d as p}from"./data.js";const _=o("更多"),x=["innerHTML"],I=a({__name:"DynamicInfo",setup(a){const I=t.Item,b=t.Item.Meta;return(a,j)=>{const y=e("a-button");return s(),n(i(f),c({title:"最新动态"},a.$attrs),{extra:r((()=>[l(y,{type:"link",size:"small"},{default:r((()=>[_])),_:1})])),default:r((()=>[l(i(t),{"item-layout":"horizontal","data-source":i(p)},{renderItem:r((({item:a})=>[l(i(I),null,{default:r((()=>[l(i(b),null,{description:r((()=>[o(u(a.date),1)])),title:r((()=>[o(u(a.name)+" ",1),m("span",{innerHTML:a.desc},null,8,x)])),avatar:r((()=>[l(i(d),{icon:a.avatar,size:30},null,8,["icon"])])),_:2},1024)])),_:2},1024)])),_:1},8,["data-source"])])),_:1},16)}}});export{I as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/DynamicInfo2.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/DynamicInfo2.js deleted file mode 100644 index 77a46a89a8c481c330bac0e5485b1233e1254a65..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/DynamicInfo2.js +++ /dev/null @@ -1 +0,0 @@ -import{b as a,ft as t,e,o as s,i as n,j as r,k as l,x as i,l as o,m as u,ae as m,b$ as d,V as c,fr as f}from"./index.js";import{d as p}from"./data3.js";const _=o("更多"),x=["innerHTML"],I=a({__name:"DynamicInfo",setup(a){const I=t.Item,b=t.Item.Meta;return(a,j)=>{const y=e("a-button");return s(),n(i(f),c({title:"最新动态"},a.$attrs),{extra:r((()=>[l(y,{type:"link",size:"small"},{default:r((()=>[_])),_:1})])),default:r((()=>[l(i(t),{"item-layout":"horizontal","data-source":i(p)},{renderItem:r((({item:a})=>[l(i(I),null,{default:r((()=>[l(i(b),null,{description:r((()=>[o(u(a.date),1)])),title:r((()=>[o(u(a.name)+" ",1),m("span",{innerHTML:a.desc},null,8,x)])),avatar:r((()=>[l(i(d),{icon:a.avatar,size:30},null,8,["icon"])])),_:2},1024)])),_:2},1024)])),_:1},8,["data-source"])])),_:1},16)}}});export{I as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EasyCronInput.css b/Yunzai/plugins/Guoba-Plugin/server/static/assets/EasyCronInput.css deleted file mode 100644 index bbf29aec18d3275db0315f54f3641d3d4cbdd014..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EasyCronInput.css +++ /dev/null @@ -1 +0,0 @@ -.guoba-easy-cron-inner .content .ant-checkbox-wrapper+.ant-checkbox-wrapper{margin-left:0}.guoba-easy-cron-inner-config-list{text-align:left;margin:0 10px 10px}.guoba-easy-cron-inner-config-list .item{margin-top:5px;font-size:14px}.guoba-easy-cron-inner-config-list .item span{padding:0 2px}.guoba-easy-cron-inner-config-list .choice{padding:5px 8px}.guoba-easy-cron-inner-config-list .w60{width:60px;min-width:60px}.guoba-easy-cron-inner-config-list .w80{width:80px;min-width:80px}.guoba-easy-cron-inner-config-list .list{margin:0 20px}.guoba-easy-cron-inner-config-list .list-check-item{padding:1px 3px;width:4em}.guoba-easy-cron-inner-config-list .list-cn .list-check-item{width:5em}.guoba-easy-cron-inner-config-list .tip-info{color:#999}.guoba-easy-cron-inner .allow-click,.guoba-easy-cron-input a.open-btn{cursor:pointer}.guoba-easy-cron-input a.open-btn .app-iconify{position:relative;top:1px;right:2px} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EasyCronInput.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/EasyCronInput.js deleted file mode 100644 index 8d28a31f430afc311d3a157f9474ae18d53d9b8c..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EasyCronInput.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,i=Math.pow,o=(t,n,a)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[n]=a,u=(e,t)=>{for(var n in t||(t={}))r.call(t,n)&&o(e,n,t[n]);if(a)for(var n of a(t))s.call(t,n)&&o(e,n,t[n]);return e},l=(e,a)=>t(e,n(a)),c=(e,t)=>{var n={};for(var i in e)r.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&a)for(var i of a(e))t.indexOf(i)<0&&s.call(e,i)&&(n[i]=e[i]);return n};import{c$ as d,p as h,ad as m,r as f,c as p,G as v,w as y,x as g,b as w,a as b,e as _,o as T,f as O,k as S,j as k,ae as M,V as N,F as E,h as x,i as D,l as V,m as C,U as I,Q as L,ah as A,R,z as U,a0 as F,a1 as $,b$ as z}from"./index.js";import{B as Z,u as j,a as W}from"./index2.js";import{I as q}from"./index5.js";import{d as H,s as Y}from"./common.js";import"./useWindowSizeFn.js";import"./FullscreenOutlined.js";var P={};Object.defineProperty(P,"__esModule",{value:!0});class J extends Error{}class G extends J{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}}class B extends J{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}}class K extends J{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}}class Q extends J{}class X extends J{constructor(e){super(`Invalid unit ${e}`)}}class ee extends J{}class te extends J{constructor(){super("Zone is an abstract class")}}const ne="numeric",ae="short",re="long",se={year:ne,month:ne,day:ne},ie={year:ne,month:ae,day:ne},oe={year:ne,month:ae,day:ne,weekday:ae},ue={year:ne,month:re,day:ne},le={year:ne,month:re,day:ne,weekday:re},ce={hour:ne,minute:ne},de={hour:ne,minute:ne,second:ne},he={hour:ne,minute:ne,second:ne,timeZoneName:ae},me={hour:ne,minute:ne,second:ne,timeZoneName:re},fe={hour:ne,minute:ne,hourCycle:"h23"},pe={hour:ne,minute:ne,second:ne,hourCycle:"h23"},ve={hour:ne,minute:ne,second:ne,hourCycle:"h23",timeZoneName:ae},ye={hour:ne,minute:ne,second:ne,hourCycle:"h23",timeZoneName:re},ge={year:ne,month:ne,day:ne,hour:ne,minute:ne},we={year:ne,month:ne,day:ne,hour:ne,minute:ne,second:ne},be={year:ne,month:ae,day:ne,hour:ne,minute:ne},_e={year:ne,month:ae,day:ne,hour:ne,minute:ne,second:ne},Te={year:ne,month:ae,day:ne,weekday:ae,hour:ne,minute:ne},Oe={year:ne,month:re,day:ne,hour:ne,minute:ne,timeZoneName:ae},Se={year:ne,month:re,day:ne,hour:ne,minute:ne,second:ne,timeZoneName:ae},ke={year:ne,month:re,day:ne,weekday:re,hour:ne,minute:ne,timeZoneName:re},Me={year:ne,month:re,day:ne,weekday:re,hour:ne,minute:ne,second:ne,timeZoneName:re};function Ne(e){return void 0===e}function Ee(e){return"number"==typeof e}function xe(e){return"number"==typeof e&&e%1==0}function De(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function Ve(e,t,n){if(0!==e.length)return e.reduce(((e,a)=>{const r=[t(a),a];return e&&n(e[0],r[0])===e[0]?e:r}),null)[1]}function Ce(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ie(e,t,n){return xe(e)&&e>=t&&e<=n}function Le(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function Ae(e){return Ne(e)||null===e||""===e?void 0:parseInt(e,10)}function Re(e){return Ne(e)||null===e||""===e?void 0:parseFloat(e)}function Ue(e){if(!Ne(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function Fe(e,t,n=!1){const a=i(10,t);return(n?Math.trunc:Math.round)(e*a)/a}function $e(e){return e%4==0&&(e%100!=0||e%400==0)}function ze(e){return $e(e)?366:365}function Ze(e,t){const n=(a=t-1)-(r=12)*Math.floor(a/r)+1;var a,r;return 2===n?$e(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function je(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function We(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,a=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===a?53:52}function qe(e){return e>99?e:e>60?1900+e:2e3+e}function He(e,t,n,a=null){const r=new Date(e),s={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};a&&(s.timeZone=a);const i=u({timeZoneName:t},s),o=new Intl.DateTimeFormat(n,i).formatToParts(r).find((e=>"timezonename"===e.type.toLowerCase()));return o?o.value:null}function Ye(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const a=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-a:a)}function Pe(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new ee(`Invalid unit value ${e}`);return t}function Je(e,t){const n={};for(const a in e)if(Ce(e,a)){const r=e[a];if(null==r)continue;n[t(a)]=Pe(r)}return n}function Ge(e,t){const n=Math.trunc(Math.abs(e/60)),a=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${Le(n,2)}:${Le(a,2)}`;case"narrow":return`${r}${n}${a>0?`:${a}`:""}`;case"techie":return`${r}${Le(n,2)}${Le(a,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Be(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const Ke=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,Qe=["January","February","March","April","May","June","July","August","September","October","November","December"],Xe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],et=["J","F","M","A","M","J","J","A","S","O","N","D"];function tt(e){switch(e){case"narrow":return[...et];case"short":return[...Xe];case"long":return[...Qe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const nt=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],at=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],rt=["M","T","W","T","F","S","S"];function st(e){switch(e){case"narrow":return[...rt];case"short":return[...at];case"long":return[...nt];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const it=["AM","PM"],ot=["Before Christ","Anno Domini"],ut=["BC","AD"],lt=["B","A"];function ct(e){switch(e){case"narrow":return[...lt];case"short":return[...ut];case"long":return[...ot];default:return null}}function dt(e,t){let n="";for(const a of e)a.literal?n+=a.val:n+=t(a.val);return n}const ht={D:se,DD:ie,DDD:ue,DDDD:le,t:ce,tt:de,ttt:he,tttt:me,T:fe,TT:pe,TTT:ve,TTTT:ye,f:ge,ff:be,fff:Oe,ffff:ke,F:we,FF:_e,FFF:Se,FFFF:Me};class mt{static create(e,t={}){return new mt(e,t)}static parseFormat(e){let t=null,n="",a=!1;const r=[];for(let s=0;s0&&r.push({literal:a,val:n}),t=null,n="",a=!a):a||i===t?n+=i:(n.length>0&&r.push({literal:!1,val:n}),n=i,t=i)}return n.length>0&&r.push({literal:a,val:n}),r}static macroTokenToFormatOpts(e){return ht[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,u(u({},this.opts),t)).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,u(u({},this.opts),t)).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,u(u({},this.opts),t)).formatToParts()}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,u(u({},this.opts),t)).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return Le(e,t);const n=u({},this.opts);return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),a=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,r=(t,n)=>this.loc.extract(e,t,n),s=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",i=()=>n?function(e){return it[e.hour<12?0:1]}(e):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),o=(t,a)=>n?function(e,t){return tt(t)[e.month-1]}(e,t):r(a?{month:t}:{month:t,day:"numeric"},"month"),u=(t,a)=>n?function(e,t){return st(t)[e.weekday-1]}(e,t):r(a?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=mt.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},c=t=>n?function(e,t){return ct(t)[e.year<0?0:1]}(e,t):r({era:t},"era");return dt(mt.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return i();case"d":return a?r({day:"numeric"},"day"):this.num(e.day);case"dd":return a?r({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?r({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return a?r({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return o("short",!0);case"LLLL":return o("long",!0);case"LLLLL":return o("narrow",!0);case"M":return a?r({month:"numeric"},"month"):this.num(e.month);case"MM":return a?r({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return o("short",!1);case"MMMM":return o("long",!1);case"MMMMM":return o("narrow",!1);case"y":return a?r({year:"numeric"},"year"):this.num(e.year);case"yy":return a?r({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return a?r({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return a?r({year:"numeric"},"year"):this.num(e.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},a=mt.parseFormat(t),r=a.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return dt(a,(e=>t=>{const a=n(t);return a?this.num(e.get(a),t.length):t})(e.shiftTo(...r.map(n).filter((e=>e)))))}}class ft{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class pt{get type(){throw new te}get name(){throw new te}get ianaName(){return this.name}get isUniversal(){throw new te}offsetName(e,t){throw new te}formatOffset(e,t){throw new te}offset(e){throw new te}equals(e){throw new te}get isValid(){throw new te}}let vt=null;class yt extends pt{static get instance(){return null===vt&&(vt=new yt),vt}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return He(e,t,n)}formatOffset(e,t){return Ge(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let gt={};const wt={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let bt={};class _t extends pt{static create(e){return bt[e]||(bt[e]=new _t(e)),bt[e]}static resetCache(){bt={},gt={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(t){return!1}}constructor(e){super(),this.zoneName=e,this.valid=_t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return He(e,t,n,this.name)}formatOffset(e,t){return Ge(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(a=this.name,gt[a]||(gt[a]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:a,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),gt[a]);var a;let[r,s,i,o,u,l,c]=n.formatToParts?function(e,t){const n=e.formatToParts(t),a=[];for(let r=0;r=0?h:1e3+h,(je({year:r,month:s,day:i,hour:24===u?0:u,minute:l,second:c,millisecond:0})-d)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Tt=null;class Ot extends pt{static get utcInstance(){return null===Tt&&(Tt=new Ot(0)),Tt}static instance(e){return 0===e?Ot.utcInstance:new Ot(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Ot(Ye(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Ge(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Ge(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return Ge(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class St extends pt{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function kt(e,t){if(Ne(e)||null===e)return t;if(e instanceof pt)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?yt.instance:"utc"===n||"gmt"===n?Ot.utcInstance:Ot.parseSpecifier(n)||_t.create(e)}return Ee(e)?Ot.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new St(e)}let Mt,Nt=()=>Date.now(),Et="system",xt=null,Dt=null,Vt=null;class Ct{static get now(){return Nt}static set now(e){Nt=e}static set defaultZone(e){Et=e}static get defaultZone(){return kt(Et,yt.instance)}static get defaultLocale(){return xt}static set defaultLocale(e){xt=e}static get defaultNumberingSystem(){return Dt}static set defaultNumberingSystem(e){Dt=e}static get defaultOutputCalendar(){return Vt}static set defaultOutputCalendar(e){Vt=e}static get throwOnInvalid(){return Mt}static set throwOnInvalid(e){Mt=e}static resetCaches(){Wt.resetCache(),_t.resetCache()}}let It={};let Lt={};function At(e,t={}){const n=JSON.stringify([e,t]);let a=Lt[n];return a||(a=new Intl.DateTimeFormat(e,t),Lt[n]=a),a}let Rt={};let Ut={};let Ft=null;function $t(e,t,n,a,r){const s=e.listingMode(n);return"error"===s?null:"en"===s?a(t):r(t)}class zt{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const a=n,{padTo:r,floor:s}=a,i=c(a,["padTo","floor"]);if(!t||Object.keys(i).length>0){const t=u({useGrouping:!1},n);n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let a=Rt[n];return a||(a=new Intl.NumberFormat(e,t),Rt[n]=a),a}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return Le(this.floor?Math.floor(e):Fe(e,3),this.padTo)}}class Zt{constructor(e,t,n){let a;if(this.opts=n,e.zone.isUniversal){const t=e.offset/60*-1,r=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&_t.create(r).valid?(a=r,this.dt=e):(a="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:Za.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,a=e.zone.name);const r=u({},this.opts);a&&(r.timeZone=a),this.dtf=At(t,r)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class jt{constructor(e,t,n){this.opts=u({style:"long"},n),!t&&De()&&(this.rtf=function(e,t={}){const n=t,{base:a}=n,r=c(n,["base"]),s=JSON.stringify([e,r]);let i=Ut[s];return i||(i=new Intl.RelativeTimeFormat(e,t),Ut[s]=i),i}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",a=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},s=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&s){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${r[e][0]}`;case-1:return n?"yesterday":`last ${r[e][0]}`;case 0:return n?"today":`this ${r[e][0]}`}}const i=Object.is(t,-0)||t<0,o=Math.abs(t),u=1===o,l=r[e],c=a?u?l[1]:l[2]||l[1]:u?r[e][0]:e;return i?`${o} ${c} ago`:`in ${o} ${c}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Wt{static fromOpts(e){return Wt.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,a=!1){const r=e||Ct.defaultLocale,s=r||(a?"en-US":Ft||(Ft=(new Intl.DateTimeFormat).resolvedOptions().locale,Ft)),i=t||Ct.defaultNumberingSystem,o=n||Ct.defaultOutputCalendar;return new Wt(s,i,o,r)}static resetCache(){Ft=null,Lt={},Rt={},Ut={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return Wt.create(e,t,n)}constructor(e,t,n,a){const[r,s,i]=function(e){const t=e.indexOf("-u-");if(-1===t)return[e];{let a;const r=e.substring(0,t);try{a=At(e).resolvedOptions()}catch(n){a=At(r).resolvedOptions()}const{numberingSystem:s,calendar:i}=a;return[r,s,i]}}(e);this.locale=r,this.numberingSystem=t||s||null,this.outputCalendar=n||i||null,this.intl=function(e,t,n){return n||t?(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=a,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Wt.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone(l(u({},e),{defaultToEN:!0}))}redefaultToSystem(e={}){return this.clone(l(u({},e),{defaultToEN:!1}))}months(e,t=!1,n=!0){return $t(this,e,n,tt,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},a=t?"format":"standalone";return this.monthsCache[a][e]||(this.monthsCache[a][e]=function(e){const t=[];for(let n=1;n<=12;n++){const a=Za.utc(2016,n,1);t.push(e(a))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[a][e]}))}weekdays(e,t=!1,n=!0){return $t(this,e,n,st,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},a=t?"format":"standalone";return this.weekdaysCache[a][e]||(this.weekdaysCache[a][e]=function(e){const t=[];for(let n=1;n<=7;n++){const a=Za.utc(2016,11,13+n);t.push(e(a))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[a][e]}))}meridiems(e=!0){return $t(this,void 0,e,(()=>it),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Za.utc(2016,11,13,9),Za.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e,t=!0){return $t(this,e,t,ct,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Za.utc(-40,1,1),Za.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const a=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return a?a.value:null}numberFormatter(e={}){return new zt(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Zt(e,this.intl,t)}relFormatter(e={}){return new jt(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let a=It[n];return a||(a=new Intl.ListFormat(e,t),It[n]=a),a}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function qt(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Ht(...e){return t=>e.reduce((([e,n,a],r)=>{const[s,i,o]=r(t,a);return[u(u({},e),s),i||n,o]}),[{},null,1]).slice(0,2)}function Yt(e,...t){if(null==e)return[null,null];for(const[n,a]of t){const t=n.exec(e);if(t)return a(t)}return[null,null]}function Pt(...e){return(t,n)=>{const a={};let r;for(r=0;rvoid 0!==e&&(t||e&&c)?-e:e;return[{years:h(Re(n)),months:h(Re(a)),weeks:h(Re(r)),days:h(Re(s)),hours:h(Re(i)),minutes:h(Re(o)),seconds:h(Re(u),"-0"===u),milliseconds:h(Ue(l),d)}]}const cn={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function dn(e,t,n,a,r,s,i){const o={year:2===t.length?qe(Ae(t)):Ae(t),month:Xe.indexOf(n)+1,day:Ae(a),hour:Ae(r),minute:Ae(s)};return i&&(o.second=Ae(i)),e&&(o.weekday=e.length>3?nt.indexOf(e)+1:at.indexOf(e)+1),o}const hn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function mn(e){const[,t,n,a,r,s,i,o,u,l,c,d]=e,h=dn(t,r,a,n,s,i,o);let m;return m=u?cn[u]:l?0:Ye(c,d),[h,new Ot(m)]}const fn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,pn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,vn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function yn(e){const[,t,n,a,r,s,i,o]=e;return[dn(t,r,a,n,s,i,o),Ot.utcInstance]}function gn(e){const[,t,n,a,r,s,i,o]=e;return[dn(t,o,n,a,r,s,i),Ot.utcInstance]}const wn=qt(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Kt),bn=qt(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Kt),_n=qt(/(\d{4})-?(\d{3})/,Kt),Tn=qt(Bt),On=Ht((function(e,t){return[{year:nn(e,t),month:nn(e,t+1,1),day:nn(e,t+2,1)},null,t+3]}),an,rn,sn),Sn=Ht(Qt,an,rn,sn),kn=Ht(Xt,an,rn,sn),Mn=Ht(an,rn,sn);const Nn=Ht(an);const En=qt(/(\d{4})-(\d\d)-(\d\d)/,tn),xn=qt(en),Dn=Ht(an,rn,sn);const Vn={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Cn=u({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Vn),In=u({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Vn),Ln=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],An=Ln.slice(0).reverse();function Rn(e,t,n=!1){const a={values:n?t.values:u(u({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Fn(a)}function Un(e,t,n,a,r){const s=e[r][n],i=t[n]/s,o=!(Math.sign(i)===Math.sign(a[r]))&&0!==a[r]&&Math.abs(i)<=1?(u=i)<0?Math.floor(u):Math.ceil(u):Math.trunc(i);var u;a[r]+=o,t[n]-=o*s}class Fn{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?In:Cn;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Wt.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Fn.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new ee("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Fn({values:Je(e,Fn.normalizeUnit),loc:Wt.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(Ee(e))return Fn.fromMillis(e);if(Fn.isDuration(e))return e;if("object"==typeof e)return Fn.fromObject(e);throw new ee(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=Yt(e,[un,ln]);return n?Fn.fromObject(n,t):Fn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=Yt(e,[on,Nn]);return n?Fn.fromObject(n,t):Fn.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new ee("need to specify a reason the Duration is invalid");const n=e instanceof ft?e:new ft(e,t);if(Ct.throwOnInvalid)throw new K(n);return new Fn({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new X(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n=l(u({},t),{floor:!1!==t.round&&!1!==t.floor});return this.isValid?mt.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){const t=Ln.map((t=>{const n=this.values[t];return Ne(n)?null:this.loc.numberFormatter(l(u({style:"unit",unitDisplay:"long"},e),{unit:t.slice(0,-1)})).format(n)})).filter((e=>e));return this.loc.listFormatter(u({type:"conjunction",style:e.listStyle||"narrow"},e)).format(t)}toObject(){return this.isValid?u({},this.values):{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=Fe(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e=u({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e);const n=this.shiftTo("hours","minutes","seconds","milliseconds");let a="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(a+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(a+=".SSS"));let r=n.toFormat(a);return e.includePrefix&&(r="T"+r),r}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Fn.fromDurationLike(e),n={};for(const a of Ln)(Ce(t.values,a)||Ce(this.values,a))&&(n[a]=t.get(a)+this.get(a));return Rn(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Fn.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=Pe(e(this.values[n],n));return Rn(this,{values:t},!0)}get(e){return this[Fn.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return Rn(this,{values:u(u({},this.values),Je(e,Fn.normalizeUnit))})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:a}={}){return Rn(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:a,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return function(e,t){An.reduce(((n,a)=>Ne(t[a])?n:(n&&Un(e,t,n,t,a),a)),null)}(this.matrix,e),Rn(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Fn.normalizeUnit(e)));const t={},n={},a=this.toObject();let r;for(const s of Ln)if(e.indexOf(s)>=0){r=s;let e=0;for(const t in n)e+=this.matrix[t][s]*n[t],n[t]=0;Ee(a[s])&&(e+=a[s]);const i=Math.trunc(e);t[s]=i,n[s]=(1e3*e-1e3*i)/1e3;for(const n in a)Ln.indexOf(n)>Ln.indexOf(s)&&Un(this.matrix,a,n,t,s)}else Ee(a[s])&&(n[s]=a[s]);for(const s in n)0!==n[s]&&(t[r]+=s===r?n[s]:n[s]/this.matrix[r][s]);return Rn(this,{values:t},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Rn(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const a of Ln)if(t=this.values[a],n=e.values[a],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const $n="Invalid Interval";class zn{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new ee("need to specify a reason the Interval is invalid");const n=e instanceof ft?e:new ft(e,t);if(Ct.throwOnInvalid)throw new B(n);return new zn({invalid:n})}static fromDateTimes(e,t){const n=ja(e),a=ja(t),r=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?zn.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(ja).filter((e=>this.contains(e))).sort(),n=[];let{s:a}=this,r=0;for(;a+this.e?this.e:e;n.push(zn.fromDateTimes(a,s)),a=s,r+=1}return n}splitBy(e){const t=Fn.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:a}=this,r=1;const s=[];for(;ae*r)));n=+e>+this.e?this.e:e,s.push(zn.fromDateTimes(a,n)),a=n,r+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e=n?null:zn.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return zn.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const a=[],r=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),s=Array.prototype.concat(...r).sort(((e,t)=>e.time-t.time));for(const i of s)n+="s"===i.type?1:-1,1===n?t=i.time:(t&&+t!=+i.time&&a.push(zn.fromDateTimes(t,i.time)),t=null);return zn.merge(a)}difference(...e){return zn.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:$n}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:$n}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:$n}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:$n}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:$n}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Fn.invalid(this.invalidReason)}mapEndpoints(e){return zn.fromDateTimes(e(this.s),e(this.e))}}class Zn{static hasDST(e=Ct.defaultZone){const t=Za.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return _t.isValidZone(e)}static normalizeZone(e){return kt(e,Ct.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:a=null,outputCalendar:r="gregory"}={}){return(a||Wt.create(t,n,r)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:a=null,outputCalendar:r="gregory"}={}){return(a||Wt.create(t,n,r)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:a=null}={}){return(a||Wt.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:a=null}={}){return(a||Wt.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Wt.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Wt.create(t,null,"gregory").eras(e)}static features(){return{relative:De()}}}function jn(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),a=n(t)-n(e);return Math.floor(Fn.fromMillis(a).as("days"))}function Wn(e,t,n,a){let[r,s,i,o]=function(e,t,n){const a=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=jn(e,t);return(n-n%7)/7}],["days",jn]],r={};let s,i;for(const[o,u]of a)if(n.indexOf(o)>=0){s=o;let n=u(e,t);i=e.plus({[o]:n}),i>t?(e=e.plus({[o]:n-1}),n-=1):e=i,r[o]=n}return[e,r,i,s]}(e,t,n);const u=t-r,l=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(i0?Fn.fromMillis(u,a).shiftTo(...l).plus(c):c}const qn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},Hn={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Yn=qn.hanidec.replace(/[\[|\]]/g,"").split("");function Pn({numberingSystem:e},t=""){return new RegExp(`${qn[e||"latn"]}${t}`)}function Jn(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=n&&a<=r&&(t+=a-n)}}return parseInt(t,10)}return t}(e))}}const Gn=`[ ${String.fromCharCode(160)}]`,Bn=new RegExp(Gn,"g");function Kn(e){return e.replace(/\./g,"\\.?").replace(Bn,Gn)}function Qn(e){return e.replace(/\./g,"").replace(Bn," ").toLowerCase()}function Xn(e,t){return null===e?null:{regex:RegExp(e.map(Kn).join("|")),deser:([n])=>e.findIndex((e=>Qn(n)===Qn(e)))+t}}function ea(e,t){return{regex:e,deser:([,e,t])=>Ye(e,t),groups:t}}function ta(e){return{regex:e,deser:([e])=>e}}const na={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let aa=null;function ra(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=ia(mt.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}function sa(e,t,n){const a=ra(mt.parseFormat(n),e),r=a.map((t=>function(e,t){const n=Pn(t),a=Pn(t,"{2}"),r=Pn(t,"{3}"),s=Pn(t,"{4}"),i=Pn(t,"{6}"),o=Pn(t,"{1,2}"),u=Pn(t,"{1,3}"),l=Pn(t,"{1,6}"),c=Pn(t,"{1,9}"),d=Pn(t,"{2,4}"),h=Pn(t,"{4,6}"),m=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},f=(f=>{if(e.literal)return m(f);switch(f.val){case"G":return Xn(t.eras("short",!1),0);case"GG":return Xn(t.eras("long",!1),0);case"y":return Jn(l);case"yy":case"kk":return Jn(d,qe);case"yyyy":case"kkkk":return Jn(s);case"yyyyy":return Jn(h);case"yyyyyy":return Jn(i);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Jn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Jn(a);case"MMM":return Xn(t.months("short",!0,!1),1);case"MMMM":return Xn(t.months("long",!0,!1),1);case"LLL":return Xn(t.months("short",!1,!1),1);case"LLLL":return Xn(t.months("long",!1,!1),1);case"o":case"S":return Jn(u);case"ooo":case"SSS":return Jn(r);case"u":return ta(c);case"uu":return ta(o);case"uuu":case"E":case"c":return Jn(n);case"a":return Xn(t.meridiems(),0);case"EEE":return Xn(t.weekdays("short",!1,!1),1);case"EEEE":return Xn(t.weekdays("long",!1,!1),1);case"ccc":return Xn(t.weekdays("short",!0,!1),1);case"cccc":return Xn(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return ea(new RegExp(`([+-]${o.source})(?::(${a.source}))?`),2);case"ZZZ":return ea(new RegExp(`([+-]${o.source})(${a.source})?`),2);case"z":return ta(/[a-z_+-/]{1,256}?/i);default:return m(f)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=e,f}(t,e))),s=r.find((e=>e.invalidReason));if(s)return{input:t,tokens:a,invalidReason:s.invalidReason};{const[e,n]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(r),s=RegExp(e,"i"),[i,o]=function(e,t,n){const a=e.match(t);if(a){const e={};let t=1;for(const r in n)if(Ce(n,r)){const s=n[r],i=s.groups?s.groups+1:1;!s.literal&&s.token&&(e[s.token.val[0]]=s.deser(a.slice(t,t+i))),t+=i}return[a,e]}return[a,{}]}(t,s,n),[u,l,c]=o?function(e){let t,n=null;return Ne(e.z)||(n=_t.create(e.z)),Ne(e.Z)||(n||(n=new Ot(e.Z)),t=e.Z),Ne(e.q)||(e.M=3*(e.q-1)+1),Ne(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),Ne(e.u)||(e.S=Ue(e.u)),[Object.keys(e).reduce(((t,n)=>{const a=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return a&&(t[a]=e[n]),t}),{}),n,t]}(o):[null,null,void 0];if(Ce(o,"a")&&Ce(o,"H"))throw new Q("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:a,regex:s,rawMatches:i,matches:o,result:u,zone:l,specificOffset:c}}}function ia(e,t){if(!e)return null;return mt.create(t,e).formatDateTimeParts((aa||(aa=Za.fromMillis(1555555555555)),aa)).map((t=>function(e,t,n){const{type:a,value:r}=e;if("literal"===a)return{literal:!0,val:r};const s=n[a];let i=na[a];return"object"==typeof i&&(i=i[s]),i?{literal:!1,val:i}:void 0}(t,0,e)))}const oa=[0,31,59,90,120,151,181,212,243,273,304,334],ua=[0,31,60,91,121,152,182,213,244,274,305,335];function la(e,t){return new ft("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ca(e,t,n){const a=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&a.setUTCFullYear(a.getUTCFullYear()-1900);const r=a.getUTCDay();return 0===r?7:r}function da(e,t,n){return n+($e(e)?ua:oa)[t-1]}function ha(e,t){const n=$e(e)?ua:oa,a=n.findIndex((e=>eWe(t)?(i=t+1,o=1):i=t,u({weekYear:i,weekNumber:o,weekday:s},Be(e))}function fa(e){const{weekYear:t,weekNumber:n,weekday:a}=e,r=ca(t,1,4),s=ze(t);let i,o=7*n+a-r-3;o<1?(i=t-1,o+=ze(i)):o>s?(i=t+1,o-=ze(t)):i=t;const{month:l,day:c}=ha(i,o);return u({year:i,month:l,day:c},Be(e))}function pa(e){const{year:t,month:n,day:a}=e,r=da(t,n,a);return u({year:t,ordinal:r},Be(e))}function va(e){const{year:t,ordinal:n}=e,{month:a,day:r}=ha(t,n);return u({year:t,month:a,day:r},Be(e))}function ya(e){const t=xe(e.year),n=Ie(e.month,1,12),a=Ie(e.day,1,Ze(e.year,e.month));return t?n?!a&&la("day",e.day):la("month",e.month):la("year",e.year)}function ga(e){const{hour:t,minute:n,second:a,millisecond:r}=e,s=Ie(t,0,23)||24===t&&0===n&&0===a&&0===r,i=Ie(n,0,59),o=Ie(a,0,59),u=Ie(r,0,999);return s?i?o?!u&&la("millisecond",r):la("second",a):la("minute",n):la("hour",t)}const wa="Invalid DateTime";function ba(e){return new ft("unsupported zone",`the zone "${e.name}" is not supported`)}function _a(e){return null===e.weekData&&(e.weekData=ma(e.c)),e.weekData}function Ta(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Za(l(u(u({},n),t),{old:n}))}function Oa(e,t,n){let a=e-60*t*1e3;const r=n.offset(a);if(t===r)return[a,t];a-=60*(r-t)*1e3;const s=n.offset(a);return r===s?[a,r]:[e-60*Math.min(r,s)*1e3,Math.max(r,s)]}function Sa(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function ka(e,t,n){return Oa(je(e),t,n)}function Ma(e,t){const n=e.o,a=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),s=l(u({},e.c),{year:a,month:r,day:Math.min(e.c.day,Ze(a,r))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),i=Fn.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),o=je(s);let[c,d]=Oa(o,n,e.zone);return 0!==i&&(c+=i,d=e.zone.offset(c)),{ts:c,o:d}}function Na(e,t,n,a,r,s){const{setZone:i,zone:o}=n;if(e&&0!==Object.keys(e).length){const a=t||o,r=Za.fromObject(e,l(u({},n),{zone:a,specificOffset:s}));return i?r:r.setZone(o)}return Za.invalid(new ft("unparsable",`the input "${r}" can't be parsed as ${a}`))}function Ea(e,t,n=!0){return e.isValid?mt.create(Wt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function xa(e,t){const n=e.c.year>9999||e.c.year<0;let a="";return n&&e.c.year>=0&&(a+="+"),a+=Le(e.c.year,n?6:4),t?(a+="-",a+=Le(e.c.month),a+="-",a+=Le(e.c.day)):(a+=Le(e.c.month),a+=Le(e.c.day)),a}function Da(e,t,n,a,r,s){let i=Le(e.c.hour);return t?(i+=":",i+=Le(e.c.minute),0===e.c.second&&n||(i+=":")):i+=Le(e.c.minute),0===e.c.second&&n||(i+=Le(e.c.second),0===e.c.millisecond&&a||(i+=".",i+=Le(e.c.millisecond,3))),r&&(e.isOffsetFixed&&0===e.offset&&!s?i+="Z":e.o<0?(i+="-",i+=Le(Math.trunc(-e.o/60)),i+=":",i+=Le(Math.trunc(-e.o%60))):(i+="+",i+=Le(Math.trunc(e.o/60)),i+=":",i+=Le(Math.trunc(e.o%60)))),s&&(i+="["+e.zone.ianaName+"]"),i}const Va={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Ca={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Ia={ordinal:1,hour:0,minute:0,second:0,millisecond:0},La=["year","month","day","hour","minute","second","millisecond"],Aa=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Ra=["year","ordinal","hour","minute","second","millisecond"];function Ua(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new X(e);return t}function Fa(e,t){const n=kt(t.zone,Ct.defaultZone),a=Wt.fromObject(t),r=Ct.now();let s,i;if(Ne(e.year))s=r;else{for(const n of La)Ne(e[n])&&(e[n]=Va[n]);const t=ya(e)||ga(e);if(t)return Za.invalid(t);const a=n.offset(r);[s,i]=ka(e,a,n)}return new Za({ts:s,zone:n,loc:a,o:i})}function $a(e,t,n){const a=!!Ne(n.round)||n.round,r=(e,r)=>{e=Fe(e,a||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,r)},s=a=>n.calendary?t.hasSame(e,a)?0:t.startOf(a).diff(e.startOf(a),a).get(a):t.diff(e,a).get(a);if(n.unit)return r(s(n.unit),n.unit);for(const i of n.units){const e=s(i);if(Math.abs(e)>=1)return r(e,i)}return r(e>t?-0:0,n.units[n.units.length-1])}function za(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class Za{constructor(e){const t=e.zone||Ct.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new ft("invalid input"):null)||(t.isValid?null:ba(t));this.ts=Ne(e.ts)?Ct.now():e.ts;let a=null,r=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[a,r]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);a=Sa(this.ts,e),n=Number.isNaN(a.year)?new ft("invalid input"):null,a=n?null:a,r=n?null:e}}this._zone=t,this.loc=e.loc||Wt.create(),this.invalid=n,this.weekData=null,this.c=a,this.o=r,this.isLuxonDateTime=!0}static now(){return new Za({})}static local(){const[e,t]=za(arguments),[n,a,r,s,i,o,u]=t;return Fa({year:n,month:a,day:r,hour:s,minute:i,second:o,millisecond:u},e)}static utc(){const[e,t]=za(arguments),[n,a,r,s,i,o,u]=t;return e.zone=Ot.utcInstance,Fa({year:n,month:a,day:r,hour:s,minute:i,second:o,millisecond:u},e)}static fromJSDate(e,t={}){const n=(a=e,"[object Date]"===Object.prototype.toString.call(a)?e.valueOf():NaN);var a;if(Number.isNaN(n))return Za.invalid("invalid input");const r=kt(t.zone,Ct.defaultZone);return r.isValid?new Za({ts:n,zone:r,loc:Wt.fromObject(t)}):Za.invalid(ba(r))}static fromMillis(e,t={}){if(Ee(e))return e<-864e13||e>864e13?Za.invalid("Timestamp out of range"):new Za({ts:e,zone:kt(t.zone,Ct.defaultZone),loc:Wt.fromObject(t)});throw new ee(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(Ee(e))return new Za({ts:1e3*e,zone:kt(t.zone,Ct.defaultZone),loc:Wt.fromObject(t)});throw new ee("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=kt(t.zone,Ct.defaultZone);if(!n.isValid)return Za.invalid(ba(n));const a=Ct.now(),r=Ne(t.specificOffset)?n.offset(a):t.specificOffset,s=Je(e,Ua),i=!Ne(s.ordinal),o=!Ne(s.year),u=!Ne(s.month)||!Ne(s.day),l=o||u,c=s.weekYear||s.weekNumber,d=Wt.fromObject(t);if((l||i)&&c)throw new Q("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&i)throw new Q("Can't mix ordinal dates with month/day");const h=c||s.weekday&&!l;let m,f,p=Sa(a,r);h?(m=Aa,f=Ca,p=ma(p)):i?(m=Ra,f=Ia,p=pa(p)):(m=La,f=Va);let v=!1;for(const O of m){Ne(s[O])?s[O]=v?f[O]:p[O]:v=!0}const y=h?function(e){const t=xe(e.weekYear),n=Ie(e.weekNumber,1,We(e.weekYear)),a=Ie(e.weekday,1,7);return t?n?!a&&la("weekday",e.weekday):la("week",e.week):la("weekYear",e.weekYear)}(s):i?function(e){const t=xe(e.year),n=Ie(e.ordinal,1,ze(e.year));return t?!n&&la("ordinal",e.ordinal):la("year",e.year)}(s):ya(s),g=y||ga(s);if(g)return Za.invalid(g);const w=h?fa(s):i?va(s):s,[b,_]=ka(w,r,n),T=new Za({ts:b,zone:n,o:_,loc:d});return s.weekday&&l&&e.weekday!==T.weekday?Za.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${T.toISO()}`):T}static fromISO(e,t={}){const[n,a]=Yt(e,[wn,On],[bn,Sn],[_n,kn],[Tn,Mn]);return Na(n,a,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,a]=Yt(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[hn,mn]);return Na(n,a,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,a]=Yt(e,[fn,yn],[pn,yn],[vn,gn]);return Na(n,a,t,"HTTP",t)}static fromFormat(e,t,n={}){if(Ne(e)||Ne(t))throw new ee("fromFormat requires an input string and a format");const{locale:a=null,numberingSystem:r=null}=n,s=Wt.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0}),[i,o,u,l]=function(e,t,n){const{result:a,zone:r,specificOffset:s,invalidReason:i}=sa(e,t,n);return[a,r,s,i]}(s,e,t);return l?Za.invalid(l):Na(i,o,n,`format ${t}`,e,u)}static fromString(e,t,n={}){return Za.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,a]=Yt(e,[En,On],[xn,Dn]);return Na(n,a,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new ee("need to specify a reason the DateTime is invalid");const n=e instanceof ft?e:new ft(e,t);if(Ct.throwOnInvalid)throw new G(n);return new Za({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=ia(e,Wt.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return ra(mt.parseFormat(e),Wt.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?_a(this).weekYear:NaN}get weekNumber(){return this.isValid?_a(this).weekNumber:NaN}get weekday(){return this.isValid?_a(this).weekday:NaN}get ordinal(){return this.isValid?pa(this.c).ordinal:NaN}get monthShort(){return this.isValid?Zn.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Zn.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Zn.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Zn.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return $e(this.year)}get daysInMonth(){return Ze(this.year,this.month)}get daysInYear(){return this.isValid?ze(this.year):NaN}get weeksInWeekYear(){return this.isValid?We(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:a}=mt.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:a}}toUTC(e=0,t={}){return this.setZone(Ot.instance(e),t)}toLocal(){return this.setZone(Ct.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=kt(e,Ct.defaultZone)).equals(this.zone))return this;if(e.isValid){let a=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[a]=ka(n,t,e)}return Ta(this,{ts:a,zone:e})}return Za.invalid(ba(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return Ta(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=Je(e,Ua),n=!Ne(t.weekYear)||!Ne(t.weekNumber)||!Ne(t.weekday),a=!Ne(t.ordinal),r=!Ne(t.year),s=!Ne(t.month)||!Ne(t.day),i=r||s,o=t.weekYear||t.weekNumber;if((i||a)&&o)throw new Q("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&a)throw new Q("Can't mix ordinal dates with month/day");let l;n?l=fa(u(u({},ma(this.c)),t)):Ne(t.ordinal)?(l=u(u({},this.toObject()),t),Ne(t.day)&&(l.day=Math.min(Ze(l.year,l.month),l.day))):l=va(u(u({},pa(this.c)),t));const[c,d]=ka(l,this.o,this.zone);return Ta(this,{ts:c,o:d})}plus(e){if(!this.isValid)return this;return Ta(this,Ma(this,Fn.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return Ta(this,Ma(this,Fn.fromDurationLike(e).negate()))}startOf(e){if(!this.isValid)return this;const t={},n=Fn.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?mt.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):wa}toLocaleString(e=se,t={}){return this.isValid?mt.create(this.loc.clone(t),e).formatDateTime(this):wa}toLocaleParts(e={}){return this.isValid?mt.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:a=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const s="extended"===e;let i=xa(this,s);return i+="T",i+=Da(this,s,t,n,a,r),i}toISODate({format:e="extended"}={}){return this.isValid?xa(this,"extended"===e):null}toISOWeekDate(){return Ea(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:a=!1,extendedZone:r=!1,format:s="extended"}={}){if(!this.isValid)return null;return(a?"T":"")+Da(this,"extended"===s,t,e,n,r)}toRFC2822(){return Ea(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ea(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?xa(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let a="HH:mm:ss.SSS";return(t||e)&&(n&&(a+=" "),t?a+="z":e&&(a+="ZZ")),Ea(this,a,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():wa}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t=u({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Fn.invalid("created by diffing an invalid DateTime");const a=u({locale:this.locale,numberingSystem:this.numberingSystem},n),r=(o=t,Array.isArray(o)?o:[o]).map(Fn.normalizeUnit),s=e.valueOf()>this.valueOf(),i=Wn(s?this:e,s?e:this,r,a);var o;return s?i.negate():i}diffNow(e="milliseconds",t={}){return this.diff(Za.now(),e,t)}until(e){return this.isValid?zn.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const n=e.valueOf(),a=this.setZone(e.zone,{keepLocalTime:!0});return a.startOf(t)<=n&&n<=a.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Za.fromObject({},{zone:this.zone}),n=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(Za.isDateTime))throw new ee("max requires all arguments be DateTimes");return Ve(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:a=null,numberingSystem:r=null}=n;return sa(Wt.fromOpts({locale:a,numberingSystem:r,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return Za.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return se}static get DATE_MED(){return ie}static get DATE_MED_WITH_WEEKDAY(){return oe}static get DATE_FULL(){return ue}static get DATE_HUGE(){return le}static get TIME_SIMPLE(){return ce}static get TIME_WITH_SECONDS(){return de}static get TIME_WITH_SHORT_OFFSET(){return he}static get TIME_WITH_LONG_OFFSET(){return me}static get TIME_24_SIMPLE(){return fe}static get TIME_24_WITH_SECONDS(){return pe}static get TIME_24_WITH_SHORT_OFFSET(){return ve}static get TIME_24_WITH_LONG_OFFSET(){return ye}static get DATETIME_SHORT(){return ge}static get DATETIME_SHORT_WITH_SECONDS(){return we}static get DATETIME_MED(){return be}static get DATETIME_MED_WITH_SECONDS(){return _e}static get DATETIME_MED_WITH_WEEKDAY(){return Te}static get DATETIME_FULL(){return Oe}static get DATETIME_FULL_WITH_SECONDS(){return Se}static get DATETIME_HUGE(){return ke}static get DATETIME_HUGE_WITH_SECONDS(){return Me}}function ja(e){if(Za.isDateTime(e))return e;if(e&&e.valueOf&&Ee(e.valueOf()))return Za.fromJSDate(e);if(e&&"object"==typeof e)return Za.fromObject(e);throw new ee(`Unknown datetime argument: ${e}, of type ${typeof e}`)}P.DateTime=Za,P.Duration=Fn,P.FixedOffsetZone=Ot,P.IANAZone=_t,P.Info=Zn,P.Interval=zn,P.InvalidZone=St,P.Settings=Ct,P.SystemZone=yt,P.VERSION="3.0.4",P.Zone=pt;var Wa=P;function qa(e,t){var n={zone:t};if(e?e instanceof qa?this._date=e._date:e instanceof Date?this._date=Wa.DateTime.fromJSDate(e,n):"number"==typeof e?this._date=Wa.DateTime.fromMillis(e,n):"string"==typeof e&&(this._date=Wa.DateTime.fromISO(e,n),this._date.isValid||(this._date=Wa.DateTime.fromRFC2822(e,n)),this._date.isValid||(this._date=Wa.DateTime.fromSQL(e,n)),this._date.isValid||(this._date=Wa.DateTime.fromFormat(e,"EEE, d MMM yyyy HH:mm:ss",n))):this._date=Wa.DateTime.local(),!this._date||!this._date.isValid)throw new Error("CronDate: unhandled timestamp: "+JSON.stringify(e));t&&t!==this._date.zoneName&&(this._date=this._date.setZone(t))}function Ha(e){return{start:e,count:1}}function Ya(e,t){e.end=t,e.step=t-e.start,e.count=2}function Pa(e,t,n){t&&(2===t.count?(e.push(Ha(t.start)),e.push(Ha(t.end))):e.push(t)),n&&e.push(n)}qa.prototype.addYear=function(){this._date=this._date.plus({years:1})},qa.prototype.addMonth=function(){this._date=this._date.plus({months:1}).startOf("month")},qa.prototype.addDay=function(){this._date=this._date.plus({days:1}).startOf("day")},qa.prototype.addHour=function(){var e=this._date;this._date=this._date.plus({hours:1}).startOf("hour"),this._date<=e&&(this._date=this._date.plus({hours:1}))},qa.prototype.addMinute=function(){var e=this._date;this._date=this._date.plus({minutes:1}).startOf("minute"),this._date=e&&(this._date=this._date.minus({hours:1}))},qa.prototype.subtractMinute=function(){var e=this._date;this._date=this._date.minus({minutes:1}).endOf("minute").startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},qa.prototype.subtractSecond=function(){var e=this._date;this._date=this._date.minus({seconds:1}).startOf("second"),this._date>e&&(this._date=this._date.minus({hours:1}))},qa.prototype.getDate=function(){return this._date.day},qa.prototype.getFullYear=function(){return this._date.year},qa.prototype.getDay=function(){var e=this._date.weekday;return 7==e?0:e},qa.prototype.getMonth=function(){return this._date.month-1},qa.prototype.getHours=function(){return this._date.hour},qa.prototype.getMinutes=function(){return this._date.minute},qa.prototype.getSeconds=function(){return this._date.second},qa.prototype.getMilliseconds=function(){return this._date.millisecond},qa.prototype.getTime=function(){return this._date.valueOf()},qa.prototype.getUTCDate=function(){return this._getUTC().day},qa.prototype.getUTCFullYear=function(){return this._getUTC().year},qa.prototype.getUTCDay=function(){var e=this._getUTC().weekday;return 7==e?0:e},qa.prototype.getUTCMonth=function(){return this._getUTC().month-1},qa.prototype.getUTCHours=function(){return this._getUTC().hour},qa.prototype.getUTCMinutes=function(){return this._getUTC().minute},qa.prototype.getUTCSeconds=function(){return this._getUTC().second},qa.prototype.toISOString=function(){return this._date.toUTC().toISO()},qa.prototype.toJSON=function(){return this._date.toJSON()},qa.prototype.setDate=function(e){this._date=this._date.set({day:e})},qa.prototype.setFullYear=function(e){this._date=this._date.set({year:e})},qa.prototype.setDay=function(e){this._date=this._date.set({weekday:e})},qa.prototype.setMonth=function(e){this._date=this._date.set({month:e+1})},qa.prototype.setHours=function(e){this._date=this._date.set({hour:e})},qa.prototype.setMinutes=function(e){this._date=this._date.set({minute:e})},qa.prototype.setSeconds=function(e){this._date=this._date.set({second:e})},qa.prototype.setMilliseconds=function(e){this._date=this._date.set({millisecond:e})},qa.prototype._getUTC=function(){return this._date.toUTC()},qa.prototype.toString=function(){return this.toDate().toString()},qa.prototype.toDate=function(){return this._date.toJSDate()},qa.prototype.isLastDayOfMonth=function(){var e=this._date.plus({days:1}).startOf("day");return this._date.month!==e.month},qa.prototype.isLastWeekdayOfMonth=function(){var e=this._date.plus({days:7}).startOf("day");return this._date.month!==e.month};var Ja=function(e){for(var t=[],n=void 0,a=0;a-1}))},Ka._parseField=function(e,t,n){switch(e){case"month":case"dayOfWeek":var a=Ka.aliases[e];t=t.replace(/[a-z]{3}/gi,(function(e){if(e=e.toLowerCase(),void 0!==a[e])return a[e];throw new Error('Validation error, cannot resolve alias "'+e+'"')}))}if(!Ka.validCharacters[e].test(t))throw new Error("Invalid characters, got value: "+t);function r(e){var t=e.split("/");return t.length>1?(t[0]==+t[0]&&(t=[t[0]+"-"+n.max,t[1]]),s(t[0],t[t.length-1])):s(e,1)}function s(e,t){var a=[],r=e.split("-");if(r.length>1){if(r.length<2)return+e;if(!r[0].length){if(!r[1].length)throw new Error("Invalid range: "+e);return+e}var s=+r[0],i=+r[1];if(Number.isNaN(s)||Number.isNaN(i)||sn.max)throw new Error("Constraint error, got range "+s+"-"+i+" expected range "+n.min+"-"+n.max);if(s>=i)throw new Error("Invalid range: "+e);var o=+t;if(Number.isNaN(o)||o<=0)throw new Error("Constraint error, cannot repeat at every "+o+" time.");for(var u=s,l=i;u<=l;u++)o>0&&o%t==0?(o=1,a.push(u)):o++;return a}return Number.isNaN(+e)?e:+e}return-1!==t.indexOf("*")?t=t.replace(/\*/g,n.min+"-"+n.max):-1!==t.indexOf("?")&&(t=t.replace(/\?/g,n.min+"-"+n.max)),function(t){var a=[];function s(t){if(t instanceof Array)for(var r=0,s=t.length;rn.max)throw new Error("Constraint error, got value "+i+" expected range "+n.min+"-"+n.max);a.push(i)}}else{if(Ka._isValidConstraintChar(n,t))return void a.push(t);var o=+t;if(Number.isNaN(o)||on.max)throw new Error("Constraint error, got value "+t+" expected range "+n.min+"-"+n.max);"dayOfWeek"===e&&(o%=7),a.push(o)}}var i=t.split(",");if(!i.every((function(e){return e.length>0})))throw new Error("Invalid list value format");if(i.length>1)for(var o=0,u=i.length;ot)throw new Error("Invalid explicit day of month definition");return e.dayOfMonth.filter((function(e){return"L"===e||e<=t})).sort(Ka._sortCompareFn)}},Ka._freezeFields=function(e){for(var t=0,n=Ka.map.length;t=e)return t[n]===e;return t[0]===e}function n(e,t){if(t<6){if(e.getDate()<8&&1===t)return!0;var n=e.getDate()%7?1:0,a=e.getDate()-e.getDate()%7;return Math.floor(a/7)+n===t}return!1}function a(e){return e.length>0&&e.some((function(e){return"string"==typeof e&&e.indexOf("L")>=0}))}var r=(e=e||!1)?"subtract":"add",s=new Ga(this._currentDate,this._tz),i=this._startDate,o=this._endDate,u=s.getTime(),l=0;for(;l<1e4;){if(l++,e){if(i&&s.getTime()-i.getTime()<0)throw new Error("Out of the timespan range")}else if(o&&o.getTime()-s.getTime()<0)throw new Error("Out of the timespan range");var c=t(s.getDate(),this.fields.dayOfMonth);a(this.fields.dayOfMonth)&&(c=c||s.isLastDayOfMonth());var d=t(s.getDay(),this.fields.dayOfWeek);a(this.fields.dayOfWeek)&&(d=d||this.fields.dayOfWeek.some((function(e){if(!a([e]))return!1;var t=Number.parseInt(e[0])%7;if(Number.isNaN(t))throw new Error("Invalid last weekday of the month expression: "+e);return s.getDay()===t&&s.isLastWeekdayOfMonth()})));var h=this.fields.dayOfMonth.length>=Ka.daysInMonth[s.getMonth()],m=this.fields.dayOfWeek.length===Ka.constraints[5].max-Ka.constraints[5].min+1,f=s.getHours();if(c||d&&!m)if(h||!m||c)if(!h||m||d)if(this._nthDayOfWeek>0&&!n(s,this._nthDayOfWeek))this._applyTimezoneShift(s,r,"Day");else if(t(s.getMonth()+1,this.fields.month)){if(t(f,this.fields.hour)){if(this._dstEnd===f&&!e){this._dstEnd=null,this._applyTimezoneShift(s,"add","Hour");continue}}else{if(this._dstStart!==f){this._dstStart=null,this._applyTimezoneShift(s,r,"Hour");continue}if(!t(f-1,this.fields.hour)){s[r+"Hour"]();continue}}if(t(s.getMinutes(),this.fields.minute))if(t(s.getSeconds(),this.fields.second)){if(u!==s.getTime())break;"add"===r||0===s.getMilliseconds()?this._applyTimezoneShift(s,r,"Second"):s.setMilliseconds(0)}else this._applyTimezoneShift(s,r,"Second");else this._applyTimezoneShift(s,r,"Minute")}else this._applyTimezoneShift(s,r,"Month");else this._applyTimezoneShift(s,r,"Day");else this._applyTimezoneShift(s,r,"Day");else this._applyTimezoneShift(s,r,"Day")}if(l>=1e4)throw new Error("Invalid expression, loop limit exceeded");return this._currentDate=new Ga(s,this._tz),this._hasIterated=!0,s},Ka.prototype.next=function(){var e=this._findSchedule();return this._isIterator?{value:e,done:!this.hasNext()}:e},Ka.prototype.prev=function(){var e=this._findSchedule(!0);return this._isIterator?{value:e,done:!this.hasPrev()}:e},Ka.prototype.hasNext=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(),!0}catch(n){return!1}finally{this._currentDate=e,this._hasIterated=t}},Ka.prototype.hasPrev=function(){var e=this._currentDate,t=this._hasIterated;try{return this._findSchedule(!0),!0}catch(n){return!1}finally{this._currentDate=e,this._hasIterated=t}},Ka.prototype.iterate=function(e,t){var n=[];if(e>=0)for(var a=0,r=e;ar;a--)try{s=this.prev();n.push(s),t&&t(s,a)}catch(i){break}return n},Ka.prototype.reset=function(e){this._currentDate=new Ga(e||this._options.currentDate)},Ka.prototype.stringify=function(e){for(var t=[],n=e?0:1,a=Ka.map.length;n6)throw new Error("Invalid cron expression");for(var s=Ka.map.length-r.length,i=0,o=Ka.map.length;io?i:i-s];if(i1){var a=+n[n.length-1];if(/,/.test(e))throw new Error("Constraint error, invalid dayOfWeek `#` and `,` special characters are incompatible");if(/\//.test(e))throw new Error("Constraint error, invalid dayOfWeek `#` and `/` special characters are incompatible");if(/-/.test(e))throw new Error("Constraint error, invalid dayOfWeek `#` and `-` special characters are incompatible");if(n.length>2||Number.isNaN(a)||a<1||a>5)throw new Error("Constraint error, invalid dayOfWeek occurrence number (#)");return t.nthDayOfWeek=a,n[0]}return e}}(e,t)},Ka.fieldsToExpression=function(e,t){function n(e,t,n){if(!t)throw new Error("Validation error, Field "+e+" is missing");if(0===t.length)throw new Error("Validation error, Field "+e+" contains no values");for(var a=0,r=t.length;an.max))throw new Error("Constraint error, got value "+s+" expected range "+n.min+"-"+n.max)}}for(var a={},r=0,s=Ka.map.length;r6)return{interval:Qa.parse(t.slice(0,6).join(" ")),command:t.slice(6,t.length)};throw new Error("Invalid entry: "+e)},Xa.parseExpression=function(e,t){return Qa.parse(e,t)},Xa.fieldsToExpression=function(e,t){return Qa.fieldsToExpression(e,t)},Xa.parseString=function(e){for(var t=e.split("\n"),n={variables:{},expressions:[],errors:{}},a=0,r=t.length;a0){if(i.match(/^#/))continue;if(s=i.match(/^(.*)=(.*)$/))n.variables[s[1]]=s[2];else{var o=null;try{o=Xa._parseEntry("0 "+i),n.expressions.push(o.interval)}catch(u){n.errors[i]=u}}}}return n},Xa.parseFile=function(e,t){d.readFile(e,(function(e,n){if(!e)return t(null,Xa.parseString(n.toString()));t(e)}))};var er=Xa,tr=(e=>(e.unset="UNSET",e.every="EVERY",e.range="RANGE",e.loop="LOOP",e.work="WORK",e.last="LAST",e.specify="SPECIFY",e))(tr||{});function nr(e){var t;const n=null!=(t=null==e?void 0:e.defaultValue)?t:"?";return u({value:h.string.def(n),disabled:h.bool.def(!1)},null==e?void 0:e.props)}function ar(e,t,n){var a,r;const{emit:s}=t,i=m("prefixCls"),o=f(null!=(a=null==n?void 0:n.defaultValue)?a:"?"),l=f(null!=(r=n.defaultType)?r:"EVERY"),c=f([]),d=p(n.valueRange),h=p(n.valueLoop),w=p(n.valueWeek),b=f(n.valueWork),_=f(n.maxValue),T=f(n.minValue),O=v((()=>{let e=[];switch(l.value){case"UNSET":e.push("?");break;case"EVERY":e.push("*");break;case"RANGE":e.push(`${d.start}-${d.end}`);break;case"LOOP":e.push(`${h.start}/${h.interval}`);break;case"WORK":e.push(`${b.value}W`);break;case"LAST":e.push("L");break;case"SPECIFY":0===c.value.length&&c.value.push(T.value),e.push(c.value.join(","));break;default:e.push(o.value)}return e.length>0?e.join(""):o.value})),S=v((()=>{let e=[];if(null!=_.value)for(let t=T.value;t<=_.value;t++)e.push(t);return e}));function k(e){s("change",e),s("update:value",e)}function M(e){if(e!==O.value)try{if(e&&e!==o.value)if(e.indexOf("?")>=0)l.value="UNSET";else if(e.indexOf("-")>=0){l.value="RANGE";const t=e.split("-");t.length>=2&&(d.start=parseInt(t[0]),d.end=parseInt(t[1]))}else if(e.indexOf("/")>=0){l.value="LOOP";const t=e.split("/");t.length>=2&&(h.start="*"===e[0]?0:parseInt(t[0]),h.interval=parseInt(t[1]))}else if(e.indexOf("W")>=0){l.value="WORK";const t=e.split("W");t[0]||isNaN(t[0])||(b.value=parseInt(t[0]))}else e.indexOf("L")>=0?l.value="LAST":e.indexOf(",")>=0||!isNaN(e)?(l.value="SPECIFY",c.value=e.split(",").map((e=>parseInt(e)))):l.value="EVERY";else l.value="EVERY"}catch(t){l.value="EVERY"}}y((()=>e.value),(e=>{e!==O.value&&M(e)}),{immediate:!0}),y(O,(e=>k(e)));const N=v((()=>({class:["choice"],disabled:e.disabled||g(n.disabled)}))),E=v((()=>({class:["w60"],max:_.value,min:T.value,precision:0}))),x=v((()=>u({disabled:"RANGE"!==l.value||e.disabled||g(n.disabled)},E.value))),D=v((()=>u({disabled:"LOOP"!==l.value||e.disabled||g(n.disabled)},E.value))),V=v((()=>({disabled:"SPECIFY"!==l.value||e.disabled||g(n.disabled),class:["list-check-item"]})));return{type:l,TypeEnum:tr,prefixCls:i,defaultValue:o,valueRange:d,valueLoop:h,valueWeek:w,valueList:c,valueWork:b,maxValue:_,minValue:T,computeValue:O,specifyRange:S,updateValue:k,parseValue:M,beforeRadioAttrs:N,inputNumberAttrs:E,typeRangeAttrs:x,typeLoopAttrs:D,typeSpecifyAttrs:V}}const rr=w({name:"SecondUI",components:{InputNumber:q},props:nr({defaultValue:"*"}),emits:["change","update:value"],setup:(e,t)=>ar(e,t,{defaultValue:"*",minValue:0,maxValue:59,valueRange:{start:0,end:59},valueLoop:{start:0,interval:1}})}),sr={class:"item"},ir=V("每秒"),or={class:"item"},ur=V("区间"),lr=M("span",null," 从 ",-1),cr=M("span",null," 秒 至 ",-1),dr=M("span",null," 秒 ",-1),hr={class:"item"},mr=V("循环"),fr=M("span",null," 从 ",-1),pr=M("span",null," 秒开始,间隔 ",-1),vr=M("span",null," 秒 ",-1),yr={class:"item"},gr=V("指定"),wr={class:"list"};var br=b(rr,[["render",function(e,t,n,a,r,s){const i=_("a-radio"),o=_("InputNumber"),u=_("a-checkbox"),l=_("a-checkbox-group"),c=_("a-radio-group");return T(),O("div",{class:I(`${e.prefixCls}-config-list`)},[S(c,{value:e.type,"onUpdate:value":t[5]||(t[5]=t=>e.type=t)},{default:k((()=>[M("div",sr,[S(i,N({value:e.TypeEnum.every},e.beforeRadioAttrs),{default:k((()=>[ir])),_:1},16,["value"])]),M("div",or,[S(i,N({value:e.TypeEnum.range},e.beforeRadioAttrs),{default:k((()=>[ur])),_:1},16,["value"]),lr,S(o,N({value:e.valueRange.start,"onUpdate:value":t[0]||(t[0]=t=>e.valueRange.start=t)},e.typeRangeAttrs),null,16,["value"]),cr,S(o,N({value:e.valueRange.end,"onUpdate:value":t[1]||(t[1]=t=>e.valueRange.end=t)},e.typeRangeAttrs),null,16,["value"]),dr]),M("div",hr,[S(i,N({value:e.TypeEnum.loop},e.beforeRadioAttrs),{default:k((()=>[mr])),_:1},16,["value"]),fr,S(o,N({value:e.valueLoop.start,"onUpdate:value":t[2]||(t[2]=t=>e.valueLoop.start=t)},e.typeLoopAttrs),null,16,["value"]),pr,S(o,N({value:e.valueLoop.interval,"onUpdate:value":t[3]||(t[3]=t=>e.valueLoop.interval=t)},e.typeLoopAttrs),null,16,["value"]),vr]),M("div",yr,[S(i,N({value:e.TypeEnum.specify},e.beforeRadioAttrs),{default:k((()=>[gr])),_:1},16,["value"]),M("div",wr,[S(l,{value:e.valueList,"onUpdate:value":t[4]||(t[4]=t=>e.valueList=t)},{default:k((()=>[(T(!0),O(E,null,x(e.specifyRange,(t=>(T(),D(u,N({key:t,value:t},e.typeSpecifyAttrs),{default:k((()=>[V(C(t),1)])),_:2},1040,["value"])))),128))])),_:1},8,["value"])])])])),_:1},8,["value"])],2)}]]);const _r=w({name:"MinuteUI",components:{InputNumber:q},props:nr({defaultValue:"*"}),emits:["change","update:value"],setup:(e,t)=>ar(e,t,{defaultValue:"*",minValue:0,maxValue:59,valueRange:{start:0,end:59},valueLoop:{start:0,interval:1}})}),Tr={class:"item"},Or=V("每分"),Sr={class:"item"},kr=V("区间"),Mr=M("span",null," 从 ",-1),Nr=M("span",null," 分 至 ",-1),Er=M("span",null," 分 ",-1),xr={class:"item"},Dr=V("循环"),Vr=M("span",null," 从 ",-1),Cr=M("span",null," 分开始,间隔 ",-1),Ir=M("span",null," 分 ",-1),Lr={class:"item"},Ar=V("指定"),Rr={class:"list"};var Ur=b(_r,[["render",function(e,t,n,a,r,s){const i=_("a-radio"),o=_("InputNumber"),u=_("a-checkbox"),l=_("a-checkbox-group"),c=_("a-radio-group");return T(),O("div",{class:I(`${e.prefixCls}-config-list`)},[S(c,{value:e.type,"onUpdate:value":t[5]||(t[5]=t=>e.type=t)},{default:k((()=>[M("div",Tr,[S(i,N({value:e.TypeEnum.every},e.beforeRadioAttrs),{default:k((()=>[Or])),_:1},16,["value"])]),M("div",Sr,[S(i,N({value:e.TypeEnum.range},e.beforeRadioAttrs),{default:k((()=>[kr])),_:1},16,["value"]),Mr,S(o,N({value:e.valueRange.start,"onUpdate:value":t[0]||(t[0]=t=>e.valueRange.start=t)},e.typeRangeAttrs),null,16,["value"]),Nr,S(o,N({value:e.valueRange.end,"onUpdate:value":t[1]||(t[1]=t=>e.valueRange.end=t)},e.typeRangeAttrs),null,16,["value"]),Er]),M("div",xr,[S(i,N({value:e.TypeEnum.loop},e.beforeRadioAttrs),{default:k((()=>[Dr])),_:1},16,["value"]),Vr,S(o,N({value:e.valueLoop.start,"onUpdate:value":t[2]||(t[2]=t=>e.valueLoop.start=t)},e.typeLoopAttrs),null,16,["value"]),Cr,S(o,N({value:e.valueLoop.interval,"onUpdate:value":t[3]||(t[3]=t=>e.valueLoop.interval=t)},e.typeLoopAttrs),null,16,["value"]),Ir]),M("div",Lr,[S(i,N({value:e.TypeEnum.specify},e.beforeRadioAttrs),{default:k((()=>[Ar])),_:1},16,["value"]),M("div",Rr,[S(l,{value:e.valueList,"onUpdate:value":t[4]||(t[4]=t=>e.valueList=t)},{default:k((()=>[(T(!0),O(E,null,x(e.specifyRange,(t=>(T(),D(u,N({key:t,value:t},e.typeSpecifyAttrs),{default:k((()=>[V(C(t),1)])),_:2},1040,["value"])))),128))])),_:1},8,["value"])])])])),_:1},8,["value"])],2)}]]);const Fr=w({name:"HourUI",components:{InputNumber:q},props:nr({defaultValue:"*"}),emits:["change","update:value"],setup:(e,t)=>ar(e,t,{defaultValue:"*",minValue:0,maxValue:23,valueRange:{start:0,end:23},valueLoop:{start:0,interval:1}})}),$r={class:"item"},zr=V("每时"),Zr={class:"item"},jr=V("区间"),Wr=M("span",null," 从 ",-1),qr=M("span",null," 时 至 ",-1),Hr=M("span",null," 时 ",-1),Yr={class:"item"},Pr=V("循环"),Jr=M("span",null," 从 ",-1),Gr=M("span",null," 时开始,间隔 ",-1),Br=M("span",null," 时 ",-1),Kr={class:"item"},Qr=V("指定"),Xr={class:"list"};var es=b(Fr,[["render",function(e,t,n,a,r,s){const i=_("a-radio"),o=_("InputNumber"),u=_("a-checkbox"),l=_("a-checkbox-group"),c=_("a-radio-group");return T(),O("div",{class:I(`${e.prefixCls}-config-list`)},[S(c,{value:e.type,"onUpdate:value":t[5]||(t[5]=t=>e.type=t)},{default:k((()=>[M("div",$r,[S(i,N({value:e.TypeEnum.every},e.beforeRadioAttrs),{default:k((()=>[zr])),_:1},16,["value"])]),M("div",Zr,[S(i,N({value:e.TypeEnum.range},e.beforeRadioAttrs),{default:k((()=>[jr])),_:1},16,["value"]),Wr,S(o,N({value:e.valueRange.start,"onUpdate:value":t[0]||(t[0]=t=>e.valueRange.start=t)},e.typeRangeAttrs),null,16,["value"]),qr,S(o,N({value:e.valueRange.end,"onUpdate:value":t[1]||(t[1]=t=>e.valueRange.end=t)},e.typeRangeAttrs),null,16,["value"]),Hr]),M("div",Yr,[S(i,N({value:e.TypeEnum.loop},e.beforeRadioAttrs),{default:k((()=>[Pr])),_:1},16,["value"]),Jr,S(o,N({value:e.valueLoop.start,"onUpdate:value":t[2]||(t[2]=t=>e.valueLoop.start=t)},e.typeLoopAttrs),null,16,["value"]),Gr,S(o,N({value:e.valueLoop.interval,"onUpdate:value":t[3]||(t[3]=t=>e.valueLoop.interval=t)},e.typeLoopAttrs),null,16,["value"]),Br]),M("div",Kr,[S(i,N({value:e.TypeEnum.specify},e.beforeRadioAttrs),{default:k((()=>[Qr])),_:1},16,["value"]),M("div",Xr,[S(l,{value:e.valueList,"onUpdate:value":t[4]||(t[4]=t=>e.valueList=t)},{default:k((()=>[(T(!0),O(E,null,x(e.specifyRange,(t=>(T(),D(u,N({key:t,value:t},e.typeSpecifyAttrs),{default:k((()=>[V(C(t),1)])),_:2},1040,["value"])))),128))])),_:1},8,["value"])])])])),_:1},8,["value"])],2)}]]);const ts=w({name:"DayUI",components:{InputNumber:q},props:nr({defaultValue:"*",props:{week:{type:String,default:"?"}}}),emits:["change","update:value"],setup(e,t){const n=v((()=>e.week&&"?"!==e.week||e.disabled)),a=ar(e,t,{defaultValue:"*",valueWork:1,minValue:1,maxValue:31,valueRange:{start:1,end:31},valueLoop:{start:1,interval:1},disabled:n}),r=v((()=>u({disabled:a.type.value!==tr.work||e.disabled||n.value},a.inputNumberAttrs.value)));return y((()=>e.week),(()=>{a.updateValue(n.value?"?":a.computeValue.value)})),l(u({},a),{typeWorkAttrs:r})}}),ns={class:"item"},as=V("不设置"),rs=M("span",{class:"tip-info"},"日和周只能设置其中之一",-1),ss={class:"item"},is=V("每日"),os={class:"item"},us=V("区间"),ls=M("span",null," 从 ",-1),cs=M("span",null," 日 至 ",-1),ds=M("span",null," 日 ",-1),hs={class:"item"},ms=V("循环"),fs=M("span",null," 从 ",-1),ps=M("span",null," 日开始,间隔 ",-1),vs=M("span",null," 日 ",-1),ys={class:"item"},gs=V("最后一日"),ws={class:"item"},bs=V("指定"),_s={class:"list"};var Ts=b(ts,[["render",function(e,t,n,a,r,s){const i=_("a-radio"),o=_("InputNumber"),u=_("a-checkbox"),l=_("a-checkbox-group"),c=_("a-radio-group");return T(),O("div",{class:I(`${e.prefixCls}-config-list`)},[S(c,{value:e.type,"onUpdate:value":t[5]||(t[5]=t=>e.type=t)},{default:k((()=>[M("div",ns,[S(i,N({value:e.TypeEnum.unset},e.beforeRadioAttrs),{default:k((()=>[as])),_:1},16,["value"]),rs]),M("div",ss,[S(i,N({value:e.TypeEnum.every},e.beforeRadioAttrs),{default:k((()=>[is])),_:1},16,["value"])]),M("div",os,[S(i,N({value:e.TypeEnum.range},e.beforeRadioAttrs),{default:k((()=>[us])),_:1},16,["value"]),ls,S(o,N({value:e.valueRange.start,"onUpdate:value":t[0]||(t[0]=t=>e.valueRange.start=t)},e.typeRangeAttrs),null,16,["value"]),cs,S(o,N({value:e.valueRange.end,"onUpdate:value":t[1]||(t[1]=t=>e.valueRange.end=t)},e.typeRangeAttrs),null,16,["value"]),ds]),M("div",hs,[S(i,N({value:e.TypeEnum.loop},e.beforeRadioAttrs),{default:k((()=>[ms])),_:1},16,["value"]),fs,S(o,N({value:e.valueLoop.start,"onUpdate:value":t[2]||(t[2]=t=>e.valueLoop.start=t)},e.typeLoopAttrs),null,16,["value"]),ps,S(o,N({value:e.valueLoop.interval,"onUpdate:value":t[3]||(t[3]=t=>e.valueLoop.interval=t)},e.typeLoopAttrs),null,16,["value"]),vs]),M("div",ys,[S(i,N({value:e.TypeEnum.last},e.beforeRadioAttrs),{default:k((()=>[gs])),_:1},16,["value"])]),M("div",ws,[S(i,N({value:e.TypeEnum.specify},e.beforeRadioAttrs),{default:k((()=>[bs])),_:1},16,["value"]),M("div",_s,[S(l,{value:e.valueList,"onUpdate:value":t[4]||(t[4]=t=>e.valueList=t)},{default:k((()=>[(T(!0),O(E,null,x(e.specifyRange,(t=>(T(),D(u,N({key:t,value:t},e.typeSpecifyAttrs),{default:k((()=>[V(C(t),1)])),_:2},1040,["value"])))),128))])),_:1},8,["value"])])])])),_:1},8,["value"])],2)}]]);const Os=w({name:"MonthUI",components:{InputNumber:q},props:nr({defaultValue:"*"}),emits:["change","update:value"],setup:(e,t)=>ar(e,t,{defaultValue:"*",minValue:1,maxValue:12,valueRange:{start:1,end:12},valueLoop:{start:1,interval:1}})}),Ss={class:"item"},ks=V("每月"),Ms={class:"item"},Ns=V("区间"),Es=M("span",null," 从 ",-1),xs=M("span",null," 月 至 ",-1),Ds=M("span",null," 月 ",-1),Vs={class:"item"},Cs=V("循环"),Is=M("span",null," 从 ",-1),Ls=M("span",null," 月开始,间隔 ",-1),As=M("span",null," 月 ",-1),Rs={class:"item"},Us=V("指定"),Fs={class:"list"};var $s=b(Os,[["render",function(e,t,n,a,r,s){const i=_("a-radio"),o=_("InputNumber"),u=_("a-checkbox"),l=_("a-checkbox-group"),c=_("a-radio-group");return T(),O("div",{class:I(`${e.prefixCls}-config-list`)},[S(c,{value:e.type,"onUpdate:value":t[5]||(t[5]=t=>e.type=t)},{default:k((()=>[M("div",Ss,[S(i,N({value:e.TypeEnum.every},e.beforeRadioAttrs),{default:k((()=>[ks])),_:1},16,["value"])]),M("div",Ms,[S(i,N({value:e.TypeEnum.range},e.beforeRadioAttrs),{default:k((()=>[Ns])),_:1},16,["value"]),Es,S(o,N({value:e.valueRange.start,"onUpdate:value":t[0]||(t[0]=t=>e.valueRange.start=t)},e.typeRangeAttrs),null,16,["value"]),xs,S(o,N({value:e.valueRange.end,"onUpdate:value":t[1]||(t[1]=t=>e.valueRange.end=t)},e.typeRangeAttrs),null,16,["value"]),Ds]),M("div",Vs,[S(i,N({value:e.TypeEnum.loop},e.beforeRadioAttrs),{default:k((()=>[Cs])),_:1},16,["value"]),Is,S(o,N({value:e.valueLoop.start,"onUpdate:value":t[2]||(t[2]=t=>e.valueLoop.start=t)},e.typeLoopAttrs),null,16,["value"]),Ls,S(o,N({value:e.valueLoop.interval,"onUpdate:value":t[3]||(t[3]=t=>e.valueLoop.interval=t)},e.typeLoopAttrs),null,16,["value"]),As]),M("div",Rs,[S(i,N({value:e.TypeEnum.specify},e.beforeRadioAttrs),{default:k((()=>[Us])),_:1},16,["value"]),M("div",Fs,[S(l,{value:e.valueList,"onUpdate:value":t[4]||(t[4]=t=>e.valueList=t)},{default:k((()=>[(T(!0),O(E,null,x(e.specifyRange,(t=>(T(),D(u,N({key:t,value:t},e.typeSpecifyAttrs),{default:k((()=>[V(C(t),1)])),_:2},1040,["value"])))),128))])),_:1},8,["value"])])])])),_:1},8,["value"])],2)}]]);const zs={1:"SUN",2:"MON",3:"TUE",4:"WED",5:"THU",6:"FRI",7:"SAT"},Zs={1:"周日",2:"周一",3:"周二",4:"周三",5:"周四",6:"周五",7:"周六"},js=w({name:"WeekUI",components:{InputNumber:q},props:nr({defaultValue:"?",props:{day:{type:String,default:"*"}}}),emits:["change","update:value"],setup(e,t){const n=v((()=>e.day&&"?"!==e.day||e.disabled)),a=ar(e,t,{defaultType:tr.unset,defaultValue:"?",minValue:1,maxValue:7,valueRange:{start:1,end:7},valueLoop:{start:2,interval:1},disabled:n}),r=v((()=>{let e=[];for(let t of Object.keys(Zs)){let n=Zs[t];e.push({value:Number.parseInt(t),label:n})}return e})),s=v((()=>({class:["w80"],disabled:a.typeRangeAttrs.value.disabled}))),i=v((()=>({class:["w80"],disabled:a.typeLoopAttrs.value.disabled})));return y((()=>e.day),(()=>{a.updateValue(n.value?"?":a.computeValue.value)})),l(u({},a),{weekOptions:r,typeLoopSelectAttrs:i,typeRangeSelectAttrs:s,WEEK_MAP_CN:Zs,WEEK_MAP_EN:zs})}}),Ws={class:"item"},qs=V("不设置"),Hs=M("span",{class:"tip-info"},"日和周只能设置其中之一",-1),Ys={class:"item"},Ps=V("区间"),Js=M("span",null," 从 ",-1),Gs=M("span",null," 至 ",-1),Bs={class:"item"},Ks=V("循环"),Qs=M("span",null," 从 ",-1),Xs=M("span",null," 开始,间隔 ",-1),ei=M("span",null," 天 ",-1),ti={class:"item"},ni=V("指定"),ai={class:"list list-cn"};var ri=b(js,[["render",function(e,t,n,a,r,s){const i=_("a-radio"),o=_("a-select"),u=_("InputNumber"),l=_("a-checkbox"),c=_("a-checkbox-group"),d=_("a-radio-group");return T(),O("div",{class:I(`${e.prefixCls}-config-list`)},[S(d,{value:e.type,"onUpdate:value":t[5]||(t[5]=t=>e.type=t)},{default:k((()=>[M("div",Ws,[S(i,N({value:e.TypeEnum.unset},e.beforeRadioAttrs),{default:k((()=>[qs])),_:1},16,["value"]),Hs]),M("div",Ys,[S(i,N({value:e.TypeEnum.range},e.beforeRadioAttrs),{default:k((()=>[Ps])),_:1},16,["value"]),Js,S(o,N({value:e.valueRange.start,"onUpdate:value":t[0]||(t[0]=t=>e.valueRange.start=t),options:e.weekOptions},e.typeRangeSelectAttrs),null,16,["value","options"]),Gs,S(o,N({value:e.valueRange.end,"onUpdate:value":t[1]||(t[1]=t=>e.valueRange.end=t),options:e.weekOptions},e.typeRangeSelectAttrs),null,16,["value","options"])]),M("div",Bs,[S(i,N({value:e.TypeEnum.loop},e.beforeRadioAttrs),{default:k((()=>[Ks])),_:1},16,["value"]),Qs,S(o,N({value:e.valueLoop.start,"onUpdate:value":t[2]||(t[2]=t=>e.valueLoop.start=t),options:e.weekOptions},e.typeLoopSelectAttrs),null,16,["value","options"]),Xs,S(u,N({value:e.valueLoop.interval,"onUpdate:value":t[3]||(t[3]=t=>e.valueLoop.interval=t)},e.typeLoopAttrs),null,16,["value"]),ei]),M("div",ti,[S(i,N({value:e.TypeEnum.specify},e.beforeRadioAttrs),{default:k((()=>[ni])),_:1},16,["value"]),M("div",ai,[S(c,{value:e.valueList,"onUpdate:value":t[4]||(t[4]=t=>e.valueList=t)},{default:k((()=>[(T(!0),O(E,null,x(e.weekOptions,(t=>(T(),D(l,N({key:e.i,value:t.value},e.typeSpecifyAttrs),{default:k((()=>[V(C(t.label),1)])),_:2},1040,["value"])))),128))])),_:1},8,["value"])])])])),_:1},8,["value"])],2)}]]);const si=w({name:"YearUI",components:{InputNumber:q},props:nr({defaultValue:"*"}),emits:["change","update:value"],setup(e,t){const n=(new Date).getFullYear();return ar(e,t,{defaultValue:"*",minValue:0,valueRange:{start:n,end:n+100},valueLoop:{start:n,interval:1}})}}),ii={class:"item"},oi=V("每年"),ui={class:"item"},li=V("区间"),ci=M("span",null," 从 ",-1),di=M("span",null," 年 至 ",-1),hi=M("span",null," 年 ",-1),mi={class:"item"},fi=V("循环"),pi=M("span",null," 从 ",-1),vi=M("span",null," 年开始,间隔 ",-1),yi=M("span",null," 年 ",-1);var gi=b(si,[["render",function(e,t,n,a,r,s){const i=_("a-radio"),o=_("InputNumber"),u=_("a-radio-group");return T(),O("div",{class:I(`${e.prefixCls}-config-list`)},[S(u,{value:e.type,"onUpdate:value":t[4]||(t[4]=t=>e.type=t)},{default:k((()=>[M("div",ii,[S(i,N({value:e.TypeEnum.every},e.beforeRadioAttrs),{default:k((()=>[oi])),_:1},16,["value"])]),M("div",ui,[S(i,N({value:e.TypeEnum.range},e.beforeRadioAttrs),{default:k((()=>[li])),_:1},16,["value"]),ci,S(o,N({class:"w80",value:e.valueRange.start,"onUpdate:value":t[0]||(t[0]=t=>e.valueRange.start=t)},e.typeRangeAttrs),null,16,["value"]),di,S(o,N({class:"w80",value:e.valueRange.end,"onUpdate:value":t[1]||(t[1]=t=>e.valueRange.end=t)},e.typeRangeAttrs),null,16,["value"]),hi]),M("div",mi,[S(i,N({value:e.TypeEnum.loop},e.beforeRadioAttrs),{default:k((()=>[fi])),_:1},16,["value"]),pi,S(o,N({class:"w80",value:e.valueLoop.start,"onUpdate:value":t[2]||(t[2]=t=>e.valueLoop.start=t)},e.typeLoopAttrs),null,16,["value"]),vi,S(o,N({class:"w80",value:e.valueLoop.interval,"onUpdate:value":t[3]||(t[3]=t=>e.valueLoop.interval=t)},e.typeLoopAttrs),null,16,["value"]),yi])])),_:1},8,["value"])],2)}]]);const wi=["change","update:value"],bi={value:h.string.def(""),disabled:h.bool.def(!1),hideSecond:h.bool.def(!1),hideYear:h.bool.def(!1),remote:h.func};const _i={class:"content"},Ti=V("式"),Oi=M("div",null,"近十次执行时间(不含年)",-1);var Si=b(w({name:"EasyCronModal",inheritAttrs:!1,components:{BasicModal:Z,EasyCron:w({__name:"EasyCronInner",props:u({},bi),emits:[...wi],setup(e,{emit:t}){const n=e,{prefixCls:a}=L("easy-cron-inner");A("prefixCls",a);const r=f(n.hideSecond?"minute":"second"),s=f("*"),i=f("*"),o=f("*"),u=f("*"),l=f("*"),c=f("?"),d=f("*"),h=p({second:"",minute:"",hour:"",day:"",month:"",week:"",year:"",cron:""}),m=f("执行预览,会忽略年份参数。"),w=v((()=>{let e=[];return n.hideSecond||e.push(s.value?s.value:"*"),e.push(i.value?i.value:"*"),e.push(o.value?o.value:"*"),e.push(u.value?u.value:"*"),e.push(l.value?l.value:"*"),e.push(c.value?c.value:"?"),n.hideYear||n.hideSecond||e.push(d.value?d.value:"*"),e.join(" ")})),b=v((()=>{const e=w.value;if(n.hideYear||n.hideSecond)return e;const t=e.split(" ");return t.length>=6&&(t[5]=function(e){let t=e=>"0"===e?"1":"1"===e?"0":(Number.parseInt(e)-1).toString(),n=/^([0-7])([-/])([0-7])$/,a=/^([0-7])(,[0-7])+$/;if(/^[0-7]$/.test(e))return t(e);if(n.test(e))return e.replace(n,((e,n,a,r)=>"/"===a?t(n)+a+r:t(n)+a+t(r)));if(a.test(e))return e.split(",").map((e=>t(e))).join(",");return e}(t[5])),t.slice(0,t.length-1).join(" ")})),N=Y(V,500);function E(){h.second=s.value,h.minute=i.value,h.hour=o.value,h.day=u.value,h.month=l.value,h.week=c.value,h.year=d.value,h.cron=w.value}function x(){if(!n.value)return;const e=n.value.split(" ").filter((e=>!!e));if(!e||e.length<=0)return;let t=0;n.hideSecond||(s.value=e[t++]),e.length>t&&(i.value=e[t++]),e.length>t&&(o.value=e[t++]),e.length>t&&(u.value=e[t++]),e.length>t&&(l.value=e[t++]),e.length>t&&(c.value=e[t++]),e.length>t&&(d.value=e[t]),E()}function V(){if(n.remote)return void n.remote(w.value,+new Date,(e=>{m.value=e}));const e="yyyy-MM-dd hh:mm:ss",t={currentDate:H(new Date,e)},a=er.parseExpression(b.value,t),r=[];for(let n=1;n<=10;n++)r.push(H(new Date(a.next()),e));m.value=r.length>0?r.join("\n"):"无执行时间"}function C(){s.value=h.second,i.value=h.minute,o.value=h.hour,u.value=h.day,l.value=h.month,c.value=h.week,d.value=h.year}function U(e){F(e.target.value)}function F(e){t("change",e),t("update:value",e)}return y((()=>n.value),(e=>{e!==w.value&&x()})),y(w,(e=>{N(),F(e),E()})),E(),x(),V(),(e,t)=>{const n=_("a-tab-pane"),f=_("a-tabs"),p=_("a-divider"),v=_("a-input"),y=_("a-col"),w=_("a-tooltip"),b=_("a-row"),N=_("a-textarea");return T(),O("div",{class:I(`${g(a)}`)},[M("div",_i,[S(f,{size:"small",activeKey:r.value,"onUpdate:activeKey":t[7]||(t[7]=e=>r.value=e)},{default:k((()=>[e.hideSecond?R("",!0):(T(),D(n,{tab:"秒",key:"second"},{default:k((()=>[S(br,{value:s.value,"onUpdate:value":t[0]||(t[0]=e=>s.value=e),disabled:e.disabled},null,8,["value","disabled"])])),_:1})),S(n,{tab:"分",key:"minute"},{default:k((()=>[S(Ur,{value:i.value,"onUpdate:value":t[1]||(t[1]=e=>i.value=e),disabled:e.disabled},null,8,["value","disabled"])])),_:1}),S(n,{tab:"时",key:"hour"},{default:k((()=>[S(es,{value:o.value,"onUpdate:value":t[2]||(t[2]=e=>o.value=e),disabled:e.disabled},null,8,["value","disabled"])])),_:1}),S(n,{tab:"日",key:"day"},{default:k((()=>[S(Ts,{value:u.value,"onUpdate:value":t[3]||(t[3]=e=>u.value=e),week:c.value,disabled:e.disabled},null,8,["value","week","disabled"])])),_:1}),S(n,{tab:"月",key:"month"},{default:k((()=>[S($s,{value:l.value,"onUpdate:value":t[4]||(t[4]=e=>l.value=e),disabled:e.disabled},null,8,["value","disabled"])])),_:1}),S(n,{tab:"周",key:"week"},{default:k((()=>[S(ri,{value:c.value,"onUpdate:value":t[5]||(t[5]=e=>c.value=e),day:u.value,disabled:e.disabled},null,8,["value","day","disabled"])])),_:1}),e.hideYear||e.hideSecond?R("",!0):(T(),D(n,{tab:"年",key:"year"},{default:k((()=>[S(gi,{value:d.value,"onUpdate:value":t[6]||(t[6]=e=>d.value=e),disabled:e.disabled},null,8,["value","disabled"])])),_:1}))])),_:1},8,["activeKey"]),S(p),S(b,{gutter:8},{default:k((()=>[S(y,{span:18,style:{"margin-top":"22px"}},{default:k((()=>[S(b,{gutter:8},{default:k((()=>[S(y,{span:8,style:{"margin-bottom":"12px"}},{default:k((()=>[S(v,{value:h.second,"onUpdate:value":t[9]||(t[9]=e=>h.second=e),onBlur:C},{addonBefore:k((()=>[M("span",{class:"allow-click",onClick:t[8]||(t[8]=e=>r.value="second")},"秒")])),_:1},8,["value"])])),_:1}),S(y,{span:8,style:{"margin-bottom":"12px"}},{default:k((()=>[S(v,{value:h.minute,"onUpdate:value":t[11]||(t[11]=e=>h.minute=e),onBlur:C},{addonBefore:k((()=>[M("span",{class:"allow-click",onClick:t[10]||(t[10]=e=>r.value="minute")},"分")])),_:1},8,["value"])])),_:1}),S(y,{span:8,style:{"margin-bottom":"12px"}},{default:k((()=>[S(v,{value:h.hour,"onUpdate:value":t[13]||(t[13]=e=>h.hour=e),onBlur:C},{addonBefore:k((()=>[M("span",{class:"allow-click",onClick:t[12]||(t[12]=e=>r.value="hour")},"时")])),_:1},8,["value"])])),_:1}),S(y,{span:8,style:{"margin-bottom":"12px"}},{default:k((()=>[S(v,{value:h.day,"onUpdate:value":t[15]||(t[15]=e=>h.day=e),onBlur:C},{addonBefore:k((()=>[M("span",{class:"allow-click",onClick:t[14]||(t[14]=e=>r.value="day")},"日")])),_:1},8,["value"])])),_:1}),S(y,{span:8,style:{"margin-bottom":"12px"}},{default:k((()=>[S(v,{value:h.month,"onUpdate:value":t[17]||(t[17]=e=>h.month=e),onBlur:C},{addonBefore:k((()=>[M("span",{class:"allow-click",onClick:t[16]||(t[16]=e=>r.value="month")},"月")])),_:1},8,["value"])])),_:1}),S(y,{span:8,style:{"margin-bottom":"12px"}},{default:k((()=>[S(v,{value:h.week,"onUpdate:value":t[19]||(t[19]=e=>h.week=e),onBlur:C},{addonBefore:k((()=>[M("span",{class:"allow-click",onClick:t[18]||(t[18]=e=>r.value="week")},"周")])),_:1},8,["value"])])),_:1}),S(y,{span:8},{default:k((()=>[S(v,{value:h.year,"onUpdate:value":t[21]||(t[21]=e=>h.year=e),onBlur:C},{addonBefore:k((()=>[M("span",{class:"allow-click",onClick:t[20]||(t[20]=e=>r.value="year")},"年")])),_:1},8,["value"])])),_:1}),S(y,{span:16},{default:k((()=>[S(v,{value:h.cron,"onUpdate:value":t[22]||(t[22]=e=>h.cron=e),onBlur:U},{addonBefore:k((()=>[S(w,{title:"Cron表达式"},{default:k((()=>[Ti])),_:1})])),_:1},8,["value"])])),_:1})])),_:1})])),_:1}),S(y,{span:6},{default:k((()=>[Oi,S(N,{type:"textarea",value:m.value,rows:5},null,8,["value"])])),_:1})])),_:1})])],2)}}})},setup(){const e=U(),[t,{closeModal:n}]=j();return{attrs:e,registerModal:t,onOk:function(){n()}}}}),[["render",function(e,t,n,a,r,s){const i=_("EasyCron"),o=_("BasicModal");return T(),D(o,{onRegister:e.registerModal,title:"Cron表达式",width:"800px",onOk:e.onOk},{default:k((()=>[S(i,F($(e.attrs)),null,16)])),_:1},8,["onRegister","onOk"])}]]);const ki=["disabled"],Mi=M("span",null,"选择",-1),Ni=w({__name:"EasyCronInput",props:l(u({},bi),{placeholder:h.string.def("请输入cron表达式"),exeStartTime:h.oneOfType([h.number,h.string,h.object]).def(0)}),emits:[...wi],setup(e,{emit:t}){const n=e,{prefixCls:a}=L("easy-cron-input"),[r,{openModal:s}]=W(),i=f(n.value);function o(){n.disabled||s()}return y((()=>n.value),(e=>{e!==i.value&&(i.value=e)})),y(i,(e=>{t("change",e),t("update:value",e)})),(t,n)=>{const s=_("a-input");return T(),O("div",{class:I(`${g(a)}`)},[S(s,{placeholder:e.placeholder,value:i.value,"onUpdate:value":n[0]||(n[0]=e=>i.value=e),disabled:t.disabled},{addonAfter:k((()=>[M("a",{class:"open-btn",disabled:t.disabled?"disabled":null,onClick:o},[S(z,{icon:"ant-design:setting-outlined"}),Mi],8,ki)])),_:1},8,["placeholder","value","disabled"]),S(Si,{onRegister:g(r),value:i.value,"onUpdate:value":n[1]||(n[1]=e=>i.value=e),exeStartTime:e.exeStartTime,hideYear:t.hideYear,remote:t.remote,hideSecond:t.hideSecond},null,8,["onRegister","value","exeStartTime","hideYear","remote","hideSecond"])],2)}}});export{Ni as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal.css b/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal.css deleted file mode 100644 index 16a6ff18f964d7751e2d55053e423ca7b61c01f7..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal.css +++ /dev/null @@ -1 +0,0 @@ -.tip[data-v-c2ea8f2a]{font-size:12px;color:#888}.icon[data-v-c2ea8f2a]{margin:0 auto 16px;border-radius:5px;width:80px;height:80px;box-shadow:0 0 15px #f0f1f5;transition:all .2s}.icon[data-v-c2ea8f2a]:hover{cursor:pointer;box-shadow:0 0 15px #4ebaee}.row[data-v-c2ea8f2a]{padding-right:30px;padding-bottom:16px;display:flex;justify-content:flex-start;align-items:center}.row>div[data-v-c2ea8f2a]:first-child{width:80px;display:flex;justify-content:flex-end}.row>div[data-v-c2ea8f2a]:first-child:after{content:":";margin:0 6px 0 2px;position:relative;top:-.5px} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal.js deleted file mode 100644 index c10441477b966c35aefe89cffbff53a251db16e4..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,b as l,Q as a,r as t,G as s,fU as i,w as o,v as d,I as n,e as c,o as u,f as r,k as m,j as p,ae as v,i as f,d3 as h,N as g,x,R as D,U as I,M as y,fj as w,F as b,l as k,cW as L,cX as C,af as _}from"./index.js";import{S as j}from"./index6.js";import B from"./SelectIconModal.js";import"./IconUploader.js";import"./esm.js";const U=e=>(L("data-v-4baeee83"),e=e(),C(),e),M=[k(" 编辑内容 "),U((()=>v("span",{class:"tip"},"按住这里可拖动",-1)))],R={class:"p-4"},z={class:"row"},N=U((()=>v("div",null,"分组",-1))),O={class:"flex-1"},$={class:"row"},A=U((()=>v("div",null,"仅主人",-1))),E={class:"flex justify-between align-center flex-wrap"},S={class:"flex justify-start"},T={class:"flex flex-1 justify-end"},V=k("添加项目"),F=k("添加分组"),G=k("删除该组"),P={key:0},Q={class:"row"},W=U((()=>v("div",null,"标题",-1))),X={class:"flex-1"},q={class:"row"},H=U((()=>v("div",null,"描述",-1))),J={class:"flex-1"},K={class:"flex justify-between align-center"},Y={class:"flex justify-start move-buttons"},Z={class:"flex flex-1 justify-end"},ee=k("添加项目"),le=k("删除该项");var ae=e(l({__name:"EditBodyModal",props:{panelCls:String,helpList:Object,modelData:Object,iconB64List:Array},emits:["update:modelData"],setup(e,{emit:l}){const k=e,{prefixCls:L}=a("miao-plugin-edit-modal"),{createConfirm:C}=_(),U=t(!0),ae=s((()=>U.value?"model-event-none":"")),te=t(!1);let se=!1;const ie=()=>{let e=k.modelData.groupIndex;k.helpList.splice(e,0,{group:"未命名分组",list:[]}),k.modelData.group=k.helpList[e],k.modelData.cellIndex=k.modelData.cell=null},oe=()=>{var e;let l=k.helpList[k.modelData.groupIndex];Array.isArray(l.list)||(l.list=[]);let a=null!=(e=k.modelData.cellIndex)?e:0;l.list.splice(a,0,{icon:1,title:"未命名项目",desc:"请添加描述"}),k.modelData.cell=l.list[a],k.modelData.cellIndex=a},de=e=>{let l,a=k.helpList,t=k.modelData.groupIndex;l=a[t],a[t]=a[t+e],a[t+e]=l,k.modelData.groupIndex+=e},ne=e=>{if(-1===e&&0===k.modelData.cellIndex)return void ce(e);if(1===e&&k.modelData.cellIndex===k.helpList[k.modelData.groupIndex].list.length-1)return void ce(e);let l,a=k.helpList[k.modelData.groupIndex].list,t=k.modelData.cellIndex;l=a[t],a[t]=a[t+e],a[t+e]=l,k.modelData.cellIndex+=e};function ce(e){let a=-1===e?"上":"下";U.value=!1,C({title:"跨分组移动",iconType:"warning",content:`确定要将该项目移动到${a}一个分组吗?`,onOk:()=>{let a,{modelData:t,helpList:s}=k,{cell:i,groupIndex:o,cellIndex:d}=t,n=s[o],c=s[o+e];-1===e?(c.list.push(i),n.list.splice(d,1),a=c.list.length-1):(c.list.unshift(i),n.list.splice(d,1),a=0),l("update:modelData",Object.assign(t,{cellIndex:a,group:c,groupIndex:o+e}))},afterClose:()=>U.value=!0})}function ue(e){let{modelData:l,helpList:a}=k;return-1===e?0===l.groupIndex&&0===l.cellIndex:1===e&&(l.groupIndex===a.length-1&&l.cellIndex===a[l.groupIndex].list.length-1)}const re=()=>{k.helpList.splice(k.modelData.groupIndex,1),k.modelData.show=!1},me=()=>{let e=k.helpList[k.modelData.groupIndex],l=k.modelData.cellIndex;if(e.list.splice(l,1),0==e.list.length)k.modelData.cell=null,k.modelData.cellIndex=null;else{let a=l;a>=e.list.length&&(a=e.list.length-1),k.modelData.cell=e.list[a],k.modelData.cellIndex=a}},pe=()=>{te.value=!0,se=!0},ve=t(null),{x:fe,y:he,isDragging:ge}=i(ve),xe=t(0),De=t(0),Ie=t(!1),ye=t(0),we=t(0),be=t(0),ke=t(0),Le=t({left:0,right:0,top:0,bottom:0});o([fe,he],(()=>{if(!Ie.value){xe.value=fe.value,De.value=he.value;const e=document.body.getBoundingClientRect(),l=ve.value.getBoundingClientRect();Le.value.right=e.width-l.width,Le.value.bottom=e.height-l.height,be.value=ye.value,ke.value=we.value}Ie.value=!0})),o(ge,(()=>{ge||(Ie.value=!1)})),d((()=>{Ie.value&&(ye.value=be.value+Math.min(Math.max(Le.value.left,fe.value),Le.value.right)-xe.value,we.value=ke.value+Math.min(Math.max(Le.value.top,he.value),Le.value.bottom)-De.value)}));const Ce=s((()=>({transform:`translate(${ye.value}px, ${we.value}px)`})));function _e(e){var l,a,t;if(null==(l=k.modelData)?void 0:l.show){if(!U.value)return;if(se)return;let l=e.composedPath();for(let e of l)if((null==(a=e.classList)?void 0:a.contains(L))||(null==(t=e.classList)?void 0:t.contains(k.panelCls)))return;k.modelData.show=!1}}function je(){se=!1}return window.addEventListener("click",_e),n((()=>{window.removeEventListener("click",_e)})),(l,a)=>{const t=c("a-input"),s=c("Icon"),i=c("a-button"),o=c("a-popconfirm"),d=c("a-divider");return u(),r(b,null,[m(x(y),{visible:e.modelData.show,"onUpdate:visible":a[8]||(a[8]=l=>e.modelData.show=l),footer:null,mask:!1,class:I(x(L)),wrapClassName:x(ae)},{title:p((()=>[v("div",{ref_key:"modalTitleRef",ref:ve,style:{width:"100%",cursor:"move",margin:"0"}},M,512)])),modalRender:p((({originVNode:e})=>[v("div",{style:g(x(Ce))},[(u(),f(h(e)))],4)])),default:p((()=>[v("div",R,[v("div",z,[N,v("div",O,[m(t,{value:e.modelData.group.group,"onUpdate:value":a[0]||(a[0]=l=>e.modelData.group.group=l),placeholder:"分组"},null,8,["value"])])]),v("div",$,[A,m(x(j),{checked:e.modelData.group.auth,"onUpdate:checked":a[1]||(a[1]=l=>e.modelData.group.auth=l),checkedValue:"master","checked-children":"是","un-checked-children":"否"},null,8,["checked"])]),v("div",E,[v("div",S,[m(i,{class:"ml-4",disabled:0===e.modelData.groupIndex,type:"primary",shape:"circle",size:"medium",onClick:a[2]||(a[2]=e=>de(-1))},{default:p((()=>[m(s,{icon:"akar-icons:arrow-up"})])),_:1},8,["disabled"]),m(i,{class:"ml-4",disabled:e.modelData.groupIndex===e.helpList.length-1,type:"primary",shape:"circle",size:"medium",onClick:a[3]||(a[3]=e=>de(1))},{default:p((()=>[m(s,{icon:"akar-icons:arrow-down"})])),_:1},8,["disabled"])]),v("div",T,[e.modelData.cell?D("",!0):(u(),f(i,{key:0,class:"ml-4",onClick:oe},{default:p((()=>[V])),_:1})),m(i,{class:"ml-4",type:"success",onClick:ie},{default:p((()=>[F])),_:1}),m(o,{title:"确定删除?",onConfirm:re},{default:p((()=>[m(i,{class:"ml-4",type:"default",danger:""},{default:p((()=>[G])),_:1})])),_:1})])]),e.modelData.cell?(u(),r("div",P,[m(d,{style:{margin:"16px 0"}}),v("div",{class:"icon",onClick:pe,style:g(`background: url(${e.iconB64List[e.modelData.cell.icon]}) 0 0 no-repeat`)},null,4),v("div",Q,[W,v("div",X,[m(t,{value:e.modelData.cell.title,"onUpdate:value":a[4]||(a[4]=l=>e.modelData.cell.title=l),placeholder:"标题"},null,8,["value"])])]),v("div",q,[H,v("div",J,[m(t,{value:e.modelData.cell.desc,"onUpdate:value":a[5]||(a[5]=l=>e.modelData.cell.desc=l),placeholder:"描述"},null,8,["value"])])]),v("div",K,[v("div",Y,[m(i,{class:I(["ml-4",["ml-4",{warn:0===e.modelData.cellIndex}]]),disabled:ue(-1),type:"primary",shape:"circle",size:"medium",onClick:a[6]||(a[6]=e=>ne(-1))},{default:p((()=>[m(s,{icon:"akar-icons:arrow-left"})])),_:1},8,["class","disabled"]),m(i,{class:I(["ml-4",["ml-4",{warn:e.modelData.cellIndex===e.helpList[e.modelData.groupIndex].list.length-1}]]),disabled:ue(1),type:"primary",shape:"circle",size:"medium",onClick:a[7]||(a[7]=e=>ne(1))},{default:p((()=>[m(s,{icon:"akar-icons:arrow-right"})])),_:1},8,["class","disabled"])]),v("div",Z,[m(i,{class:"ml-4",type:"success",onClick:oe},{default:p((()=>[ee])),_:1}),m(o,{title:"确定删除?",onConfirm:me},{default:p((()=>[m(i,{class:"ml-4",type:"default",danger:""},{default:p((()=>[le])),_:1})])),_:1})])])])):D("",!0)])])),_:1},8,["visible","class","wrapClassName"]),e.modelData.cell?(u(),f(B,{key:0,visible:te.value,"onUpdate:visible":a[9]||(a[9]=e=>te.value=e),cell:e.modelData.cell,"onUpdate:cell":a[10]||(a[10]=l=>e.modelData.cell=l),iconB64List:e.iconB64List,"onUpdate:iconB64List":a[11]||(a[11]=e=>w(iconB64List)?iconB64List.value=e:null),afterClose:je},null,8,["visible","cell","iconB64List"])):D("",!0)],64)}}}),[["__scopeId","data-v-4baeee83"]]);export{ae as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal2.css b/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal2.css deleted file mode 100644 index d1c3b4115011bc6035d7e6421209dffd58d3a307..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal2.css +++ /dev/null @@ -1 +0,0 @@ -.tip[data-v-4baeee83]{font-size:12px;color:#888}.icon[data-v-4baeee83]{margin:0 auto 16px;border-radius:5px;width:80px;height:80px;box-shadow:0 0 15px #f0f1f5;transition:all .2s}.icon[data-v-4baeee83]:hover{cursor:pointer;box-shadow:0 0 15px #4ebaee}.row[data-v-4baeee83]{padding-right:30px;padding-bottom:16px;display:flex;justify-content:flex-start;align-items:center}.row>div[data-v-4baeee83]:first-child{width:80px;display:flex;justify-content:flex-end}.row>div[data-v-4baeee83]:first-child:after{content:":";margin:0 6px 0 2px;position:relative;top:-.5px}.move-buttons[data-v-4baeee83] .ant-btn.warn:not(.is-disabled){color:#fff;background:#dc9d29;border-color:#dc9d29} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal2.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal2.js deleted file mode 100644 index c20b5637ff7d0684ef90cacfd5dc55095eb8517b..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/EditBodyModal2.js +++ /dev/null @@ -1 +0,0 @@ -import{a as e,b as l,r as a,fU as t,w as s,v as d,G as i,e as o,o as c,f as n,k as u,j as r,ae as m,i as p,d3 as v,N as f,x as h,R as g,M as D,fj as x,F as y,l as b,cW as k,cX as I}from"./index.js";import{S as w}from"./index6.js";import L from"./SelectIconModal2.js";import"./IconUploader2.js";import"./esm.js";const _=e=>(k("data-v-c2ea8f2a"),e=e(),I(),e),j=[b(" 编辑内容 "),_((()=>m("span",{class:"tip"},"按住这里可拖动",-1)))],C={class:"p-4"},B={class:"row"},U=_((()=>m("div",null,"分组",-1))),M={class:"flex-1"},R={class:"row"},z=_((()=>m("div",null,"仅主人",-1))),$={class:"flex justify-between align-center flex-wrap"},N={class:"flex justify-start"},O={class:"flex flex-1 justify-end"},S=b("添加项目 "),V=b("添加分组"),A=b("删除该组"),E={key:0},F={class:"row"},G=_((()=>m("div",null,"标题",-1))),T={class:"flex-1"},W={class:"row"},X=_((()=>m("div",null,"描述",-1))),q={class:"flex-1"},H={class:"flex justify-between align-center"},J={class:"flex justify-start"},K={class:"flex flex-1 justify-end"},P=b("添加项目"),Q=b("删除该项");var Y=e(l({__name:"EditBodyModal",props:{helpList:Object,modelData:Object,iconB64List:Array},setup(e){const l=e,b=a(!1),k=()=>{let e=l.modelData.groupIndex;l.helpList.splice(e,0,{group:"未命名组别",list:[]}),l.modelData.group=l.helpList[e],l.modelData.cellIndex=l.modelData.cell=null},I=()=>{var e;let a=null!=(e=l.modelData.cellIndex)?e:0;l.helpList[l.modelData.groupIndex].list.splice(a,0,{icon:1,title:"未命名项目",desc:"请添加描述"}),l.modelData.cell=l.helpList[l.modelData.groupIndex].list[a],l.modelData.cellIndex=a},_=e=>{let a,t=l.helpList,s=l.modelData.groupIndex;a=t[s],t[s]=t[s+e],t[s+e]=a,l.modelData.groupIndex+=e},Y=e=>{let a,t=l.helpList[l.modelData.groupIndex].list,s=l.modelData.cellIndex;a=t[s],t[s]=t[s+e],t[s+e]=a,l.modelData.cellIndex+=e},Z=()=>{l.helpList.splice(l.modelData.groupIndex,1),l.modelData.show=!1},ee=()=>{l.helpList[l.modelData.groupIndex].list.splice(l.modelData.cellIndex,1),l.modelData.show=!1},le=()=>{b.value=!0},ae=a(null),{x:te,y:se,isDragging:de}=t(ae),ie=a(0),oe=a(0),ce=a(!1),ne=a(0),ue=a(0),re=a(0),me=a(0),pe=a({left:0,right:0,top:0,bottom:0});s([te,se],(()=>{if(!ce.value){ie.value=te.value,oe.value=se.value;const e=document.body.getBoundingClientRect(),l=ae.value.getBoundingClientRect();pe.value.right=e.width-l.width,pe.value.bottom=e.height-l.height,re.value=ne.value,me.value=ue.value}ce.value=!0})),s(de,(()=>{de||(ce.value=!1)})),d((()=>{ce.value&&(ne.value=re.value+Math.min(Math.max(pe.value.left,te.value),pe.value.right)-ie.value,ue.value=me.value+Math.min(Math.max(pe.value.top,se.value),pe.value.bottom)-oe.value)}));const ve=i((()=>({transform:`translate(${ne.value}px, ${ue.value}px)`})));return(l,a)=>{const t=o("a-input"),s=o("Icon"),d=o("a-button"),i=o("a-popconfirm"),te=o("a-divider");return c(),n(y,null,[u(h(D),{visible:e.modelData.show,"onUpdate:visible":a[8]||(a[8]=l=>e.modelData.show=l),closable:!1,footer:null,mask:!1},{title:r((()=>[m("div",{ref_key:"modalTitleRef",ref:ae,style:{width:"100%",cursor:"move",margin:"0"}},j,512)])),modalRender:r((({originVNode:e})=>[m("div",{style:f(h(ve))},[(c(),p(v(e)))],4)])),default:r((()=>[m("div",C,[m("div",B,[U,m("div",M,[u(t,{value:e.modelData.group.group,"onUpdate:value":a[0]||(a[0]=l=>e.modelData.group.group=l),placeholder:"分组"},null,8,["value"])])]),m("div",R,[z,u(h(w),{checked:e.modelData.group.auth,"onUpdate:checked":a[1]||(a[1]=l=>e.modelData.group.auth=l),checkedValue:"master","checked-children":"是","un-checked-children":"否"},null,8,["checked"])]),m("div",$,[m("div",N,[u(d,{class:"ml-4",disabled:0===e.modelData.groupIndex,type:"primary",shape:"circle",size:"medium",onClick:a[2]||(a[2]=e=>_(-1))},{default:r((()=>[u(s,{icon:"akar-icons:arrow-up"})])),_:1},8,["disabled"]),u(d,{class:"ml-4",disabled:e.modelData.groupIndex===e.helpList.length-1,type:"primary",shape:"circle",size:"medium",onClick:a[3]||(a[3]=e=>_(1))},{default:r((()=>[u(s,{icon:"akar-icons:arrow-down"})])),_:1},8,["disabled"])]),m("div",O,[e.modelData.cell?g("",!0):(c(),p(d,{key:0,class:"ml-4",onClick:I},{default:r((()=>[S])),_:1})),u(d,{class:"ml-4",type:"success",onClick:k},{default:r((()=>[V])),_:1}),u(i,{title:"确定删除?",onConfirm:Z},{default:r((()=>[u(d,{class:"ml-4",type:"default",danger:""},{default:r((()=>[A])),_:1})])),_:1})])]),e.modelData.cell?(c(),n("div",E,[u(te,{style:{margin:"16px 0"}}),m("div",{class:"icon",onClick:le,style:f(`background: url(${e.iconB64List[e.modelData.cell.icon]}) 0 0 no-repeat`)},null,4),m("div",F,[G,m("div",T,[u(t,{value:e.modelData.cell.title,"onUpdate:value":a[4]||(a[4]=l=>e.modelData.cell.title=l),placeholder:"标题"},null,8,["value"])])]),m("div",W,[X,m("div",q,[u(t,{value:e.modelData.cell.desc,"onUpdate:value":a[5]||(a[5]=l=>e.modelData.cell.desc=l),placeholder:"描述"},null,8,["value"])])]),m("div",H,[m("div",J,[u(d,{class:"ml-4",disabled:0===e.modelData.cellIndex,type:"primary",shape:"circle",size:"medium",onClick:a[6]||(a[6]=e=>Y(-1))},{default:r((()=>[u(s,{icon:"akar-icons:arrow-left"})])),_:1},8,["disabled"]),u(d,{class:"ml-4",disabled:e.modelData.cellIndex===e.helpList[e.modelData.groupIndex].list.length-1,type:"primary",shape:"circle",size:"medium",onClick:a[7]||(a[7]=e=>Y(1))},{default:r((()=>[u(s,{icon:"akar-icons:arrow-right"})])),_:1},8,["disabled"])]),m("div",K,[u(d,{class:"ml-4",type:"success",onClick:I},{default:r((()=>[P])),_:1}),u(i,{title:"确定删除?",onConfirm:ee},{default:r((()=>[u(d,{class:"ml-4",type:"default",danger:""},{default:r((()=>[Q])),_:1})])),_:1})])])])):g("",!0)])])),_:1},8,["visible"]),e.modelData.cell?(c(),p(L,{key:0,visible:b.value,"onUpdate:visible":a[9]||(a[9]=e=>b.value=e),cell:e.modelData.cell,"onUpdate:cell":a[10]||(a[10]=l=>e.modelData.cell=l),iconB64List:e.iconB64List,"onUpdate:iconB64List":a[11]||(a[11]=e=>x(iconB64List)?iconB64List.value=e:null)},null,8,["visible","cell","iconB64List"])):g("",!0)],64)}}}),[["__scopeId","data-v-c2ea8f2a"]]);export{Y as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ErrorAction.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/ErrorAction.js deleted file mode 100644 index b4db3b81908bdf9ed93cd53b9bcb7305efc7c974..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ErrorAction.js +++ /dev/null @@ -1 +0,0 @@ -import{a as o,b as t,b$ as e,T as n,eD as r,fu as s,G as a,o as i,i as u,j as l,k as c,s as d,ex as f,e as m}from"./index.js";import{B as p}from"./index21.js";var E=o(t({name:"ErrorAction",components:{Icon:e,Tooltip:n,Badge:p},setup(){const{t:o}=d(),{push:t}=r(),e=s();return{t:o,getCount:a((()=>e.getErrorLogListCount)),handleToErrorList:function(){t(f.ERROR_LOG_PAGE).then((()=>{e.setErrorLogListCount(0)}))}}}}),[["render",function(o,t,e,n,r,s){const a=m("Icon"),d=m("Badge"),f=m("Tooltip");return i(),u(f,{title:o.t("layout.header.tooltipErrorLog"),placement:"bottom",mouseEnterDelay:.5,onClick:o.handleToErrorList},{default:l((()=>[c(d,{count:o.getCount,offset:[0,10],overflowCount:99},{default:l((()=>[c(a,{icon:"ion:bug-outline"})])),_:1},8,["count"])])),_:1},8,["title","mouseEnterDelay","onClick"])}]]);export{E as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/Exception.css b/Yunzai/plugins/Guoba-Plugin/server/static/assets/Exception.css deleted file mode 100644 index 9c407af2197e5cdd59e774f9ceccb3e455d463ef..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/Exception.css +++ /dev/null @@ -1 +0,0 @@ -.ant-result{padding:48px 32px}.ant-result-success .ant-result-icon>.anticon{color:#55d187}.ant-result-error .ant-result-icon>.anticon{color:#ed6f6f}.ant-result-info .ant-result-icon>.anticon{color:#6495ed}.ant-result-warning .ant-result-icon>.anticon{color:#efbd47}.ant-result-image{width:250px;height:295px;margin:auto}.ant-result-icon{margin-bottom:24px;text-align:center}.ant-result-icon>.anticon{font-size:72px}.ant-result-title{color:#000000d9;font-size:24px;line-height:1.8;text-align:center}.ant-result-subtitle{color:#00000073;font-size:14px;line-height:1.6;text-align:center}.ant-result-extra{margin:24px 0 0;text-align:center}.ant-result-extra>*{margin-right:8px}.ant-result-extra>*:last-child{margin-right:0}.ant-result-content{margin-top:24px;padding:24px 40px;background-color:#fafafa}.ant-result-rtl{direction:rtl}.ant-result-rtl .ant-result-extra>*{margin-right:0;margin-left:8px}.ant-result-rtl .ant-result-extra>*:last-child{margin-left:0}.guoba-app-exception-page{display:flex;align-items:center;flex-direction:column}.guoba-app-exception-page .ant-result-icon img{max-width:400px;max-height:300px} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/Exception.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/Exception.js deleted file mode 100644 index 85033e55aea228c085cca3cca36e56c2f97452f3..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/Exception.js +++ /dev/null @@ -1 +0,0 @@ -import{k as l,ac as t,b as n,aj as s,G as a,av as e,ak as o,aA as r,aB as i,aD as u,aE as d,et as c,r as h,eu as M,ev as p,ew as k,s as F,Q as f,x as v,ex as B,bi as E}from"./index.js";var D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};function w(l){for(var t=1;t{const{status:l}=s,{status:n}=t;return Number(l)||n})),d=a((()=>v(n).get(v(u)))),D=r("sys.exception.backLogin"),w=r("sys.exception.backHome");return v(n).set(c.PAGE_NOT_ACCESS,{title:"403",status:`${c.PAGE_NOT_ACCESS}`,subTitle:r("sys.exception.subTitle403"),btnText:t.full?D:w,handler:()=>t.full?e(B.BASE_LOGIN):e()}),v(n).set(c.PAGE_NOT_FOUND,{title:"404",status:`${c.PAGE_NOT_FOUND}`,subTitle:r("sys.exception.subTitle404"),btnText:t.full?D:w,handler:()=>t.full?e(B.BASE_LOGIN):e()}),v(n).set(c.ERROR,{title:"500",status:`${c.ERROR}`,subTitle:r("sys.exception.subTitle500"),btnText:w,handler:()=>e()}),v(n).set(c.PAGE_NOT_DATA,{title:r("sys.exception.noDataTitle"),subTitle:"",btnText:r("common.redo"),handler:()=>o(),icon:"/assets/no-data.svg"}),v(n).set(c.NET_WORK_ERROR,{title:r("sys.exception.networkErrorTitle"),subTitle:r("sys.exception.networkErrorSubTitle"),btnText:r("common.redo"),handler:()=>o(),icon:"/assets/net-error.svg"}),()=>{const{title:n,subTitle:s,btnText:a,icon:e,handler:o,status:r}=v(d)||{};return l(y,{class:i,status:r,title:t.title||n,"sub-title":t.subTitle||s},{extra:()=>a&&l(E,{type:"primary",onClick:o},{default:()=>a}),icon:()=>e?l("img",{src:e},null):null})}}});export{x as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ForgetPasswordForm.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/ForgetPasswordForm.js deleted file mode 100644 index 996c64dc0aac42e6ec2895c11eacb0cb2f1429f8..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/ForgetPasswordForm.js +++ /dev/null @@ -1 +0,0 @@ -import{u as e,a,L as s,_ as l}from"./LoginFormTitle.js";import{b as o,s as t,r,c as n,G as i,x as m,o as c,f as u,k as d,j as p,bI as f,bi as g,l as v,m as x,F as _,R as b}from"./index.js";import{F as h}from"./index4.js";import{C as y}from"./index8.js";import"./find.js";import"./_baseIteratee.js";import"./get.js";import"./useFormItem.js";const k=o({__name:"ForgetPasswordForm",setup(o){const k=h.Item,{t:j}=t(),{handleBackLogin:F,getLoginState:z}=e(),{getFormRules:C}=a(),I=r(),R=r(!1),S=n({account:"",mobile:"",sms:""}),L=i((()=>m(z)===s.RESET_PASSWORD));function P(){return e=this,a=null,s=function*(){const e=m(I);e&&(yield e.resetFields())},new Promise(((l,o)=>{var t=e=>{try{n(s.next(e))}catch(a){o(a)}},r=e=>{try{n(s.throw(e))}catch(a){o(a)}},n=e=>e.done?l(e.value):Promise.resolve(e.value).then(t,r);n((s=s.apply(e,a)).next())}));var e,a,s}return(e,a)=>m(L)?(c(),u(_,{key:0},[d(l,{class:"enter-x"}),d(m(h),{class:"p-4 enter-x",model:S,rules:m(C),ref_key:"formRef",ref:I},{default:p((()=>[d(m(k),{name:"account",class:"enter-x"},{default:p((()=>[d(m(f),{size:"large",value:S.account,"onUpdate:value":a[0]||(a[0]=e=>S.account=e),placeholder:m(j)("sys.login.userName")},null,8,["value","placeholder"])])),_:1}),d(m(k),{name:"mobile",class:"enter-x"},{default:p((()=>[d(m(f),{size:"large",value:S.mobile,"onUpdate:value":a[1]||(a[1]=e=>S.mobile=e),placeholder:m(j)("sys.login.mobile")},null,8,["value","placeholder"])])),_:1}),d(m(k),{name:"sms",class:"enter-x"},{default:p((()=>[d(m(y),{size:"large",value:S.sms,"onUpdate:value":a[2]||(a[2]=e=>S.sms=e),placeholder:m(j)("sys.login.smsCode")},null,8,["value","placeholder"])])),_:1}),d(m(k),{class:"enter-x"},{default:p((()=>[d(m(g),{type:"primary",size:"large",block:"",onClick:P,loading:R.value},{default:p((()=>[v(x(m(j)("common.resetText")),1)])),_:1},8,["loading"]),d(m(g),{size:"large",block:"",class:"mt-4",onClick:m(F)},{default:p((()=>[v(x(m(j)("sys.login.backSignIn")),1)])),_:1},8,["onClick"])])),_:1})])),_:1},8,["model","rules"])],64)):b("",!0)}});export{k as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/FrameBlank.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/FrameBlank.js deleted file mode 100644 index 5c5328a0558a002d2fe482b9316750d57bb0078c..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/FrameBlank.js +++ /dev/null @@ -1 +0,0 @@ -import{a,b as r,o as e,f as n}from"./index.js";var s=a(r({name:"FrameBlank"}),[["render",function(a,r,s,o,t,d){return e(),n("div")}]]);export{s as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/FullscreenOutlined.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/FullscreenOutlined.js deleted file mode 100644 index 91a41da20f618922375cfa4f522f6761cb9a6905..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/FullscreenOutlined.js +++ /dev/null @@ -1 +0,0 @@ -import{k as e,ac as t}from"./index.js";var r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M391 240.9c-.8-6.6-8.9-9.4-13.6-4.7l-43.7 43.7L200 146.3a8.03 8.03 0 00-11.3 0l-42.4 42.3a8.03 8.03 0 000 11.3L280 333.6l-43.9 43.9a8.01 8.01 0 004.7 13.6L401 410c5.1.6 9.5-3.7 8.9-8.9L391 240.9zm10.1 373.2L240.8 633c-6.6.8-9.4 8.9-4.7 13.6l43.9 43.9L146.3 824a8.03 8.03 0 000 11.3l42.4 42.3c3.1 3.1 8.2 3.1 11.3 0L333.7 744l43.7 43.7A8.01 8.01 0 00391 783l18.9-160.1c.6-5.1-3.7-9.4-8.8-8.8zm221.8-204.2L783.2 391c6.6-.8 9.4-8.9 4.7-13.6L744 333.6 877.7 200c3.1-3.1 3.1-8.2 0-11.3l-42.4-42.3a8.03 8.03 0 00-11.3 0L690.3 279.9l-43.7-43.7a8.01 8.01 0 00-13.6 4.7L614.1 401c-.6 5.2 3.7 9.5 8.8 8.9zM744 690.4l43.9-43.9a8.01 8.01 0 00-4.7-13.6L623 614c-5.1-.6-9.5 3.7-8.9 8.9L633 783.1c.8 6.6 8.9 9.4 13.6 4.7l43.7-43.7L824 877.7c3.1 3.1 8.2 3.1 11.3 0l42.4-42.3c3.1-3.1 3.1-8.2 0-11.3L744 690.4z"}}]},name:"fullscreen-exit",theme:"outlined"};function n(e){for(var t=1;t0?e(a.hex):a&&a.hsv?e(a.hsv):a&&a.rgba?e(a.rgba):a&&a.rgb?e(a.rgb):e(a))||void 0!==l._a&&null!==l._a||l.setAlpha(s||1);var n=l.toHsl(),o=l.toHsv();return 0===n.s&&(o.h=n.h=a.h||a.hsl&&a.hsl.h||t||0),{hsl:n,hex:l.toHexString().toUpperCase(),hex8:l.toHex8String().toUpperCase(),rgba:l.toRgb(),hsv:o,oldHue:a.h||t||n.h,source:a.source,a:a.a||l.getAlpha()}}var M={props:["value"],data(){return{val:D(this.value)}},computed:{colors:{get(){return this.val},set(e){this.val=e,this.$emit("input",e)}}},watch:{value(e){this.val=D(e)}},methods:{colorChange(e,a){this.oldHue=this.colors.hsl.h,this.colors=D(e,a||this.oldHue)},isValidHex:a=>e(a).isValid(),simpleCheckForValidColor(e){for(var a=["r","g","b","a","h","s","l","v"],t=0,l=0,s=0;se.map((e=>e.toUpperCase())),isTransparent:a=>0===e(a).getAlpha()}};const E={class:"vc-editable-input"},_=["aria-labelledby"],S=["for","id"],U={class:"vc-input__desc"};var H=a({name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get(){return this.value},set(e){if(void 0===this.max)return e;+e>this.max?this.$refs.input.value=this.max:+e5)&&this.$emit("change",a)},handleKeyDown(e){let a=this.val,t=Number(a);if(t){let l=this.arrowOffset||1;38===e.keyCode&&(a=t+l,this.handleChange(a),e.preventDefault()),40===e.keyCode&&(a=t-l,this.handleChange(a),e.preventDefault())}}}},[["render",function(e,a,i,h,c,u){return t(),l("div",E,[s(o("input",{"aria-labelledby":u.labelId,class:"vc-input__input","onUpdate:modelValue":a[0]||(a[0]=e=>u.val=e),onKeydown:a[1]||(a[1]=(...e)=>u.handleKeyDown&&u.handleKeyDown(...e)),onInput:a[2]||(a[2]=(...e)=>u.update&&u.update(...e)),ref:"input"},null,40,_),[[n,u.val]]),o("span",{for:i.label,class:"vc-input__label",id:u.labelId},r(u.labelSpanText),9,S),o("span",U,r(i.desc),1)])}]]),A=function(e,a,t){return at?t:e:ea?a:e};const I={name:"Saturation",props:{value:Object},computed:{colors(){return this.value},bgColor(){return`hsl(${this.colors.hsv.h}, 100%, 50%)`},pointerTop(){return-100*this.colors.hsv.v+1+100+"%"},pointerLeft(){return 100*this.colors.hsv.s+"%"}},methods:{throttle:L(((e,a)=>{e(a)}),20,{leading:!0,trailing:!1}),handleChange(e,a){!a&&e.preventDefault();var t=this.$refs.container;if(t){var l=t.clientWidth,s=t.clientHeight,n=t.getBoundingClientRect().left+window.pageXOffset,o=t.getBoundingClientRect().top+window.pageYOffset,r=e.pageX||(e.touches?e.touches[0].pageX:0),i=e.pageY||(e.touches?e.touches[0].pageY:0),h=A(r-n,0,l),c=A(i-o,0,s),u=h/l,d=A(-c/s+1,0,1);this.throttle(this.onChange,{h:this.colors.hsv.h,s:u,v:d,a:this.colors.hsv.a,source:"hsva"})}},onChange(e){this.$emit("change",e)},handleMouseDown(e){window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}},T=o("div",{class:"vc-saturation--white"},null,-1),F=o("div",{class:"vc-saturation--black"},null,-1),N=[o("div",{class:"vc-saturation-circle"},null,-1)];var O=a(I,[["render",function(e,a,s,n,r,h){return t(),l("div",{class:"vc-saturation",style:i({background:h.bgColor}),ref:"container",onMousedown:a[0]||(a[0]=(...e)=>h.handleMouseDown&&h.handleMouseDown(...e)),onTouchmove:a[1]||(a[1]=(...e)=>h.handleChange&&h.handleChange(...e)),onTouchstart:a[2]||(a[2]=(...e)=>h.handleChange&&h.handleChange(...e))},[T,F,o("div",{class:"vc-saturation-pointer",style:i({top:h.pointerTop,left:h.pointerLeft})},N,4)],36)}]]);const R={name:"Hue",props:{value:Object,direction:{type:String,default:"horizontal"}},data:()=>({oldHue:0,pullDirection:""}),computed:{colors(){const e=this.value.hsl.h;return 0!==e&&e-this.oldHue>0&&(this.pullDirection="right"),0!==e&&e-this.oldHue<0&&(this.pullDirection="left"),this.oldHue=e,this.value},directionClass(){return{"vc-hue--horizontal":"horizontal"===this.direction,"vc-hue--vertical":"vertical"===this.direction}},pointerTop(){return"vertical"===this.direction?0===this.colors.hsl.h&&"right"===this.pullDirection?0:-100*this.colors.hsl.h/360+100+"%":0},pointerLeft(){return"vertical"===this.direction?0:0===this.colors.hsl.h&&"right"===this.pullDirection?"100%":100*this.colors.hsl.h/360+"%"}},methods:{handleChange(e,a){!a&&e.preventDefault();var t=this.$refs.container;if(t){var l,s=t.clientWidth,n=t.clientHeight,o=t.getBoundingClientRect().left+window.pageXOffset,r=t.getBoundingClientRect().top+window.pageYOffset,i=(e.pageX||(e.touches?e.touches[0].pageX:0))-o,h=(e.pageY||(e.touches?e.touches[0].pageY:0))-r;"vertical"===this.direction?(l=h<0?360:h>n?0:360*(-100*h/n+100)/100,this.colors.hsl.h!==l&&this.$emit("change",{h:l,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"})):(l=i<0?0:i>s?360:360*(100*i/s)/100,this.colors.hsl.h!==l&&this.$emit("change",{h:l,s:this.colors.hsl.s,l:this.colors.hsl.l,a:this.colors.hsl.a,source:"hsl"}))}},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(e){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}},j=["aria-valuenow"],B=[o("div",{class:"vc-hue-picker"},null,-1)];var X=a(R,[["render",function(e,a,s,n,r,c){return t(),l("div",{class:h(["vc-hue",c.directionClass])},[o("div",{class:"vc-hue-container",role:"slider","aria-valuenow":c.colors.hsl.h,"aria-valuemin":"0","aria-valuemax":"360",ref:"container",onMousedown:a[0]||(a[0]=(...e)=>c.handleMouseDown&&c.handleMouseDown(...e)),onTouchmove:a[1]||(a[1]=(...e)=>c.handleChange&&c.handleChange(...e)),onTouchstart:a[2]||(a[2]=(...e)=>c.handleChange&&c.handleChange(...e))},[o("div",{class:"vc-hue-pointer",style:i({top:c.pointerTop,left:c.pointerLeft}),role:"presentation"},B,4)],40,j)],2)}]]);let Y={};function V(e,a,t){var l=e+","+a+","+t;if(Y[l])return Y[l];var s=function(e,a,t){if("undefined"==typeof document)return null;var l=document.createElement("canvas");l.width=l.height=2*t;var s=l.getContext("2d");return s?(s.fillStyle=e,s.fillRect(0,0,l.width,l.height),s.fillStyle=a,s.fillRect(0,0,t,t),s.translate(t,t),s.fillRect(0,0,t,t),l.toDataURL()):null}(e,a,t);return Y[l]=s,s}var z=a({name:"Checkboard",props:{size:{type:[Number,String],default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},computed:{bgStyle(){return{"background-image":"url("+V(this.white,this.grey,this.size)+")"}}}},[["render",function(e,a,s,n,o,r){return t(),l("div",{class:"vc-checkerboard",style:i(r.bgStyle)},null,4)}]]);const K={name:"Alpha",props:{value:Object,onChange:Function},components:{checkboard:z},computed:{colors(){return this.value},gradientColor(){var e=this.colors.rgba,a=[e.r,e.g,e.b].join(",");return"linear-gradient(to right, rgba("+a+", 0) 0%, rgba("+a+", 1) 100%)"}},methods:{handleChange(e,a){!a&&e.preventDefault();var t=this.$refs.container;if(t){var l,s=t.clientWidth,n=t.getBoundingClientRect().left+window.pageXOffset,o=(e.pageX||(e.touches?e.touches[0].pageX:0))-n;l=o<0?0:o>s?1:Math.round(100*o/s)/100,this.colors.a!==l&&this.$emit("change",{h:this.colors.hsl.h,s:this.colors.hsl.s,l:this.colors.hsl.l,a:l,source:"rgba"})}},handleMouseDown(e){this.handleChange(e,!0),window.addEventListener("mousemove",this.handleChange),window.addEventListener("mouseup",this.handleMouseUp)},handleMouseUp(){this.unbindEventListeners()},unbindEventListeners(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}}},G={class:"vc-alpha"},P={class:"vc-alpha-checkboard-wrap"},W=[o("div",{class:"vc-alpha-picker"},null,-1)];var Q=a(K,[["render",function(e,a,s,n,r,h){const d=c("checkboard");return t(),l("div",G,[o("div",P,[u(d)]),o("div",{class:"vc-alpha-gradient",style:i({background:h.gradientColor})},null,4),o("div",{class:"vc-alpha-container",ref:"container",onMousedown:a[0]||(a[0]=(...e)=>h.handleMouseDown&&h.handleMouseDown(...e)),onTouchmove:a[1]||(a[1]=(...e)=>h.handleChange&&h.handleChange(...e)),onTouchstart:a[2]||(a[2]=(...e)=>h.handleChange&&h.handleChange(...e))},[o("div",{class:"vc-alpha-pointer",style:i({left:100*h.colors.a+"%"})},W,4)],544)])}]]);const Z={name:"Chrome",mixins:[M],props:{disableAlpha:{type:Boolean,default:!1},disableFields:{type:Boolean,default:!1}},components:{saturation:O,hue:X,alpha:Q,"ed-in":H,CheckBoard:z},data:()=>({fieldsIndex:1,highlight:!1}),computed:{hsl(){const{h:e,s:a,l:t}=this.colors.hsl;return{h:e.toFixed(),s:`${(100*a).toFixed()}%`,l:`${(100*t).toFixed()}%`}},activeColor(){const e=this.colors.rgba;return"rgba("+[e.r,e.g,e.b,e.a].join(",")+")"},hasAlpha(){return this.colors.a<1}},methods:{childChange(e){this.colorChange(e)},inputChange(e){if(e)if(e.hex)this.isValidHex(e.hex)&&this.colorChange({hex:e.hex,source:"hex"});else if(e.r||e.g||e.b||e.a)this.colorChange({r:e.r||this.colors.rgba.r,g:e.g||this.colors.rgba.g,b:e.b||this.colors.rgba.b,a:e.a||this.colors.rgba.a,source:"rgba"});else if(e.h||e.s||e.l){const a=e.s?e.s.replace("%","")/100:this.colors.hsl.s,t=e.l?e.l.replace("%","")/100:this.colors.hsl.l;this.colorChange({h:e.h||this.colors.hsl.h,s:a,l:t,source:"hsl"})}},showHighlight(){this.highlight=!0},hideHighlight(){this.highlight=!1}}},q={class:"vc-chrome-saturation-wrap"},J={class:"vc-chrome-body"},ee={class:"vc-chrome-controls"},ae={class:"vc-chrome-color-wrap"},te=["aria-label"],le={class:"vc-chrome-sliders"},se={class:"vc-chrome-hue-wrap"},ne={key:0,class:"vc-chrome-alpha-wrap"},oe={key:0,class:"vc-chrome-fields-wrap"},re={class:"vc-chrome-fields"},ie={class:"vc-chrome-field"},he={class:"vc-chrome-field"},ce={class:"vc-chrome-field"},ue={key:0,class:"vc-chrome-field"};var de=a(Z,[["render",function(e,a,n,r,p,b){const m=c("saturation"),f=c("CheckBoard"),C=c("hue"),w=c("alpha"),x=c("ed-in");return t(),l("div",{role:"application","aria-label":"Chrome color picker",class:h(["vc-chrome",n.disableAlpha?"vc-chrome__disable-alpha":""])},[o("div",q,[u(m,{value:e.colors,"onUpdate:value":a[0]||(a[0]=a=>e.colors=a),onChange:b.childChange},null,8,["value","onChange"])]),o("div",J,[o("div",ee,[o("div",ae,[o("div",{"aria-label":`current color is ${e.colors.hex}`,class:"vc-chrome-active-color",style:i({background:b.activeColor})},null,12,te),n.disableAlpha?g("",!0):(t(),d(f,{key:0}))]),o("div",le,[o("div",se,[u(C,{value:e.colors,"onUpdate:value":a[1]||(a[1]=a=>e.colors=a),onChange:b.childChange},null,8,["value","onChange"])]),n.disableAlpha?g("",!0):(t(),l("div",ne,[u(w,{value:e.colors,"onUpdate:value":a[2]||(a[2]=a=>e.colors=a),onChange:b.childChange},null,8,["value","onChange"])]))])]),n.disableFields?g("",!0):(t(),l("div",oe,[s(o("div",re,[o("div",ie,[u(x,{label:"r",value:e.colors.rgba.r,onChange:b.inputChange},null,8,["value","onChange"])]),o("div",he,[u(x,{label:"g",value:e.colors.rgba.g,onChange:b.inputChange},null,8,["value","onChange"])]),o("div",ce,[u(x,{label:"b",value:e.colors.rgba.b,onChange:b.inputChange},null,8,["value","onChange"])]),n.disableAlpha?g("",!0):(t(),l("div",ue,[u(x,{label:"a",value:e.colors.a,"arrow-offset":.01,max:1,onChange:b.inputChange},null,8,["value","arrow-offset","onChange"])]))],512),[[v,1===p.fieldsIndex]])]))])],2)}]]);const ge={class:"vc-chrome-field custom"},ve={class:"vc-chrome-field custom"},pe={class:"vc-chrome-field custom"},be={key:0,class:"vc-chrome-field custom"},me={class:"vc-chrome-field"},fe={class:"vc-color-view"},Ce=p({__name:"GColorPicker",props:{value:String},emits:["change"],setup(e,{emit:a}){const s=e,n={rgb:/rgb\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3})\)/,rgba:/rgba\((\d{1,3}), ?(\d{1,3}), ?(\d{1,3}), ?([10]?\.?\d+)\)/,hex:/#?([0-9a-fA-F]{6}|[0-9a-fA-F]{3})/,hex8:/#([0-9a-fA-F]{8})/},{prefixCls:r}=b("g-color-picker"),c={r:0,g:0,b:0,a:1},d=m({rgba:c,hex8:"#000000FF"}),v=f("rgba"),p=C((()=>d.rgba)),L=C((()=>["rgb","hex"].includes(v.value))),D=w(U,100);function M(e,a=!1){let t;t=a?e.match(n.rgba):e.match(n.rgb),d.rgba.r=parseInt(t[1]),d.rgba.g=parseInt(t[2]),d.rgba.b=parseInt(t[3]),d.rgba.a=a?parseFloat(t[4]):1}function E(e,a=!1){let t,l;if(a){if(t=e.match(n.hex8),l=t[1],8!==l.length)return d.rgba=c,void console.error("hex8 color must be 8 length")}else t=e.match(n.hex),l=t[1],3===l.length&&(l=l.replace(/(.)/g,"$1$1"));d.rgba.r=parseInt(l.slice(0,2),16),d.rgba.g=parseInt(l.slice(2,4),16),d.rgba.b=parseInt(l.slice(4,6),16),d.rgba.a=a?parseInt(l.slice(6,8),16)/255:1}function _(e){console.log("onValueChange:",e),e.hex8&&e.rgba&&(d.rgba=e.rgba,d.hex8=e.hex8,D())}function S(e,a){if(!e.target){for(let[a,t]of Object.entries(e)){let e=parseFloat(t);isNaN(e)&&(e=0),d.rgba[a]=e}D()}}function U(){if("rgb"===v.value){let{r:e,g:t,b:l}=d.rgba;a("change",`rgb(${e}, ${t}, ${l})`)}else if("hex"===v.value){let e=d.hex8;a("change",e.slice(0,7))}else if("hex8"===v.value){let e=d.hex8;a("change",e)}else{let{r:e,g:t,b:l,a:s}=d.rgba;a("change",`rgba(${e}, ${t}, ${l}, ${s})`)}}return x((()=>s.value),(e=>{e?n.rgb.test(e)?(v.value="rgb",M(e)):n.rgba.test(e)?(v.value="rgba",M(e,!0)):n.hex.test(e)?(v.value="hex",E(e)):n.hex8.test(e)?(v.value="hex8",E(e,!0)):(d.rgba=c,U()):(d.rgba=c,U())}),{immediate:!0}),(e,a)=>(t(),l("div",{class:h([y(r),"vc-chrome-fields"])},[o("div",ge,[u(y(H),{label:"r",value:y(p).r,min:0,max:255,onChange:S},null,8,["value"])]),o("div",ve,[u(y(H),{label:"g",value:y(p).g,min:0,max:255,onChange:S},null,8,["value"])]),o("div",pe,[u(y(H),{label:"b",value:y(p).b,min:0,max:255,onChange:S},null,8,["value"])]),y(L)?g("",!0):(t(),l("div",be,[u(y(H),{label:"a",value:y(p).a,min:0,max:1,"arrow-offset":.01,onChange:S},null,8,["value","arrow-offset"])])),o("div",me,[u(y(k),{trigger:"click",placement:"bottom",getPopupContainer:e=>e.parentNode},{content:$((()=>[u(y(de),{value:d,onInput:_,disableAlpha:y(L)},null,8,["value","disableAlpha"])])),default:$((()=>[o("div",fe,[o("div",{style:i(`height:100%;background:rgba(${y(p).r},${y(p).g},${y(p).b},${y(p).a})`)},null,4)])])),_:1},8,["getPopupContainer"])])],2))}});export{Ce as default}; diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/GPluginModal.css b/Yunzai/plugins/Guoba-Plugin/server/static/assets/GPluginModal.css deleted file mode 100644 index c7f9edc853ee48fb242a2ff7da0e4016071bd948..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/GPluginModal.css +++ /dev/null @@ -1,26 +0,0 @@ -/*! - * Vditor v3.8.15 - A markdown editor written in TypeScript. - * - * MIT License - * - * Copyright (c) 2018-present B3log 开源, b3log.org - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - * - */.vditor{--border-color: #d1d5da;--second-color: rgba(88, 96, 105, .36);--panel-background-color: #fff;--panel-shadow: 0 1px 2px rgba(0, 0, 0, .2);--toolbar-background-color: #f6f8fa;--toolbar-icon-color: #586069;--toolbar-icon-hover-color: #4285f4;--toolbar-height: 35px;--toolbar-divider-margin-top: 8px;--textarea-background-color: #fafbfc;--textarea-text-color: #24292e;--resize-icon-color: var(--toolbar-icon-color);--resize-background-color: var(--toolbar-background-color);--resize-hover-icon-color: var(--panel-background-color);--resize-hover-background-color: var(--toolbar-icon-hover-color);--count-background-color: rgba(27, 31, 35, .05);--heading-border-color: #eaecef;--blockquote-color: #6a737d;--ir-heading-color: #660e7a;--ir-title-color: #808080;--ir-bi-color: #0033b3;--ir-link-color: #008000;--ir-bracket-color: #0000ff;--ir-paren-color: #008000}.vditor--dark{--border-color: #141414;--second-color: rgba(185, 185, 185, .36);--panel-background-color: #24292e;--panel-shadow: 0 1px 2px rgba(255, 255, 255, .2);--toolbar-background-color: #1d2125;--toolbar-icon-color: #b9b9b9;--toolbar-icon-hover-color: #fff;--textarea-background-color: #2f363d;--textarea-text-color: #d1d5da;--resize-icon-color: var(--border-color);--resize-background-color: var(--second-color);--resize-hover-icon-color: var(--toolbar-icon-hover-color);--resize-hover-background-color: rgba(185, 185, 185, .86);--count-background-color: rgba(66, 133, 244, .36);--heading-border-color: var(--textarea-text-color);--blockquote-color: var(--toolbar-icon-color);--ir-heading-color: #9876aa;--ir-title-color: #808080;--ir-bi-color: #cc7832;--ir-link-color: #ffc66d;--ir-bracket-color: #287bde;--ir-paren-color: #6a8759}@-webkit-keyframes tooltip-appear{0%{opacity:0}to{opacity:1}}@keyframes tooltip-appear{0%{opacity:0}to{opacity:1}}.vditor-tooltipped{position:relative;cursor:pointer}.vditor-tooltipped:after{position:absolute;z-index:1000000;display:none;padding:5px 8px;font-size:11px;font-weight:400;-webkit-font-smoothing:subpixel-antialiased;color:#fff;text-align:center;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-wrap:break-word;white-space:pre;pointer-events:none;content:attr(aria-label);background:#3b3e43;border-radius:3px;line-height:16px;opacity:0}.vditor-tooltipped:before{position:absolute;z-index:1000001;display:none;width:0;height:0;color:#3b3e43;pointer-events:none;content:"";border:5px solid transparent;opacity:0}.vditor-tooltipped--hover:before,.vditor-tooltipped--hover:after,.vditor-tooltipped:hover:before,.vditor-tooltipped:hover:after,.vditor-tooltipped:active:before,.vditor-tooltipped:active:after,.vditor-tooltipped:focus:before,.vditor-tooltipped:focus:after{display:inline-block;text-decoration:none;-webkit-animation-name:tooltip-appear;animation-name:tooltip-appear;-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}.vditor-tooltipped__s:after,.vditor-tooltipped__se:after,.vditor-tooltipped__sw:after{top:100%;right:50%;margin-top:5px}.vditor-tooltipped__s:before,.vditor-tooltipped__se:before,.vditor-tooltipped__sw:before{top:auto;right:50%;bottom:-5px;margin-right:-5px;border-bottom-color:#3b3e43}.vditor-tooltipped__se:after{right:auto;left:50%;margin-left:-15px}.vditor-tooltipped__sw:after{margin-right:-15px}.vditor-tooltipped__n:after,.vditor-tooltipped__ne:after,.vditor-tooltipped__nw:after{right:50%;bottom:100%;margin-bottom:5px}.vditor-tooltipped__n:before,.vditor-tooltipped__ne:before,.vditor-tooltipped__nw:before{top:-5px;right:50%;bottom:auto;margin-right:-5px;border-top-color:#3b3e43}.vditor-tooltipped__ne:after{right:auto;left:50%;margin-left:-15px}.vditor-tooltipped__nw:after{margin-right:-15px}.vditor-tooltipped__s:after,.vditor-tooltipped__n:after{transform:translate(50%)}.vditor-tooltipped__w:after{right:100%;bottom:50%;margin-right:5px;transform:translateY(50%)}.vditor-tooltipped__w:before{top:50%;bottom:50%;left:-5px;margin-top:-5px;border-left-color:#3b3e43}.vditor-tooltipped__e:after{bottom:50%;left:100%;margin-left:5px;transform:translateY(50%)}.vditor-tooltipped__e:before{top:50%;right:-5px;bottom:50%;margin-top:-5px;border-right-color:#3b3e43}@media screen and (max-width: 520px){.vditor-tooltipped:before,.vditor-tooltipped:after{content:none}}@-webkit-keyframes scale-in{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}@keyframes scale-in{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.vditor-panel{background-color:var(--panel-background-color);position:absolute;box-shadow:var(--panel-shadow);border-radius:3px;padding:5px;z-index:3;font-size:14px;display:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;max-width:320px;min-width:80px;-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-name:scale-in;animation-name:scale-in;-webkit-animation-timing-function:cubic-bezier(.2,0,.13,1.5);animation-timing-function:cubic-bezier(.2,0,.13,1.5);color:var(--toolbar-icon-color)}.vditor-panel--none{padding:0;-webkit-animation:none;animation:none;min-width:auto;max-width:none;white-space:nowrap;opacity:.86}.vditor-panel--arrow:before{position:absolute;width:0;height:0;pointer-events:none;content:" ";border:7px solid transparent;top:-14px;left:5px;border-bottom-color:var(--panel-background-color)}.vditor-panel--left{right:0}.vditor-panel--left.vditor-panel--arrow:before{right:5px;left:auto}.vditor-input{border:0;padding:3px 5px;background-color:var(--panel-background-color);font-size:12px;color:var(--textarea-text-color)}.vditor-input:focus{background-color:var(--toolbar-background-color);outline:none}.vditor-icon{color:var(--toolbar-icon-color);cursor:pointer;float:left;padding:4px 5px;height:21px;width:23px;background-color:transparent;border:0;box-sizing:border-box}.vditor-icon:hover,.vditor-icon--current{color:var(--toolbar-icon-hover-color);background-color:transparent}.vditor-icon:focus{outline:none}.vditor-icon svg{height:13px!important;width:13px!important;float:left;fill:currentColor;pointer-events:none}.vditor-toolbar{background-color:var(--toolbar-background-color);border-bottom:1px solid var(--border-color);padding:0 5px;line-height:1}.vditor-toolbar--pin{position:-webkit-sticky;position:sticky;top:0;z-index:1}.vditor-toolbar--hide{transition:all .15s ease-in-out;height:5px;overflow:hidden}.vditor-toolbar--hide:hover{background-color:var(--toolbar-background-color);height:auto;overflow:visible}.vditor-toolbar__item{float:left;position:relative}.vditor-toolbar__item .vditor-tooltipped{color:var(--toolbar-icon-color);border:0;padding:10px 5px;background-color:transparent;height:var(--toolbar-height);width:25px;box-sizing:border-box;font-size:0}.vditor-toolbar__item .vditor-tooltipped:focus{outline:none}.vditor-toolbar__item .vditor-tooltipped:focus{cursor:pointer;color:var(--toolbar-icon-hover-color)}.vditor-toolbar__item svg{fill:currentColor;display:inline-block;stroke-width:0;stroke:currentColor;width:15px;height:15px}.vditor-toolbar__item input{position:absolute;width:25px;height:var(--toolbar-height);top:0;left:0;cursor:pointer;opacity:.001;overflow:hidden}.vditor-toolbar__divider{float:left;height:calc(var(--toolbar-height) - (var(--toolbar-divider-margin-top) * 2));border-left:1px solid var(--second-color);margin:var(--toolbar-divider-margin-top) 8px}.vditor-toolbar__br{width:100%;padding:0!important;height:0!important}.vditor-menu--current{color:var(--toolbar-icon-hover-color)!important}.vditor-menu--disabled{color:var(--second-color)!important;cursor:not-allowed!important}.vditor-emojis{display:inline-block;overflow:auto}.vditor-emojis::-webkit-scrollbar{display:none}.vditor-emojis__tip{flex:1;min-width:1px;width:200px;margin-right:10px;color:var(--toolbar-icon-color);white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.vditor-emojis__tail{margin-top:5px;font-size:12px;color:var(--toolbar-icon-color);display:flex}.vditor-emojis__tail a{text-decoration:none;color:var(--toolbar-icon-color)}.vditor-emojis__tail a:hover{color:var(--toolbar-icon-hover-color)}.vditor-emojis button{cursor:pointer;border-radius:3px;float:left;height:30px;width:30px;text-align:center;line-height:26px;padding:3px;box-sizing:border-box;font-size:16px;transition:all .15s ease-in-out;border:0;margin:0;background-color:transparent;overflow:hidden}.vditor-emojis button:focus{outline:none}.vditor-emojis button:hover .vditor-emojis__icon{display:inline-block;transform:scale(1.2)}.vditor-emojis img{height:20px;width:20px;float:left;margin:3px 0 0 3px}@media screen and (max-width: 520px){.vditor-toolbar__item{padding:0 12px}.vditor-panel--left.vditor-panel--arrow:before{right:17px}}@media (hover: hover) and (pointer: fine){.vditor-toolbar__item .vditor-tooltipped:hover{color:var(--toolbar-icon-hover-color)}}@-webkit-keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes slideInDown{0%{transform:translate3d(0,-100%,0);visibility:visible}to{transform:translateZ(0)}}.vditor{display:flex;flex-direction:column;border:1px solid var(--border-color);border-radius:3px;box-sizing:border-box;font-family:Helvetica Neue,Luxi Sans,DejaVu Sans,Hiragino Sans GB,Microsoft Yahei,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",Segoe UI Symbol,"Android Emoji",EmojiSymbols}.vditor .vditor-copy{z-index:auto}.vditor--fullscreen{position:fixed;top:0;width:100%!important;left:0;height:100vh!important;z-index:90;border-radius:0}.vditor-content{display:flex;min-height:60px;flex:1;min-width:1px;position:relative}.vditor-preview{flex:1;min-width:1px;overflow:auto;margin-left:-1px;border-left:1px solid var(--border-color);box-sizing:border-box;border-radius:0 0 3px;background-color:var(--textarea-background-color)}.vditor-preview::-webkit-scrollbar{display:none}.vditor-preview__action{text-align:center;padding:10px;background-color:var(--toolbar-background-color)}.vditor-preview__action button{background-color:var(--toolbar-background-color);color:var(--toolbar-icon-color);line-height:20px;border:0;margin:0 10px;cursor:pointer;padding:0 7px;font-size:12px}.vditor-preview__action button.vditor-preview__action--current,.vditor-preview__action button:hover{color:var(--toolbar-icon-hover-color);background-color:var(--toolbar-background-color)}.vditor-preview__action button:focus{outline:none}.vditor-preview__action button svg{fill:currentColor;height:15px;width:15px;vertical-align:middle}.vditor-preview>.vditor-reset{padding:10px;margin:0 auto}.vditor-preview img:not(.emoji){cursor:pointer}.vditor-devtools{display:none;background-color:var(--textarea-background-color);overflow:auto;flex:1;min-width:1px;box-shadow:inset 1px 0 var(--border-color);box-sizing:border-box;border-radius:0 0 3px;padding:10px}.vditor-counter{padding:3px;color:var(--toolbar-icon-color);background-color:var(--count-background-color);border-radius:3px;font-size:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none;float:right;margin:8px 3px 0 0}.vditor-counter--error{color:#d23f31;background-color:#d23f311a}.vditor-resize{padding:3px 0;cursor:row-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:absolute;width:100%}.vditor-resize--top{top:-3px}.vditor-resize--bottom{bottom:-3px}.vditor-resize>div{height:3px;background-color:var(--resize-background-color);transition:all .15s ease-in-out}.vditor-resize:hover>div,.vditor-resize--selected>div{background-color:var(--resize-hover-background-color)}.vditor-resize:hover svg,.vditor-resize--selected svg{color:var(--resize-hover-icon-color)}.vditor-resize svg{fill:currentColor;stroke-width:0;stroke:currentColor;width:13px;height:3px;display:block;margin:0 auto;color:var(--resize-icon-color)}.vditor-upload{position:absolute;height:3px;left:0;top:-2px;transition:all .15s ease-in-out;background-color:#4285f4}.vditor-tip{position:absolute;font-size:12px;top:10px;-webkit-animation-duration:.15s;animation-duration:.15s;-webkit-animation-fill-mode:both;animation-fill-mode:both;left:50%;z-index:5}.vditor-tip--show{display:block;-webkit-animation-name:slideInDown;animation-name:slideInDown}.vditor-tip__content{text-align:left;display:inline-block;line-height:16px;padding:3px 10px;border-radius:3px;background:var(--toolbar-background-color);position:relative;margin-left:-50%;color:var(--toolbar-icon-color);max-width:100%;box-shadow:var(--panel-shadow)}.vditor-tip__content ul{margin:2px 0;padding:0 0 0 18px}.vditor-tip__content a{color:#4285f4}.vditor-tip__close{position:absolute;color:var(--toolbar-icon-color);top:-7px;right:-15px;font-weight:700;cursor:pointer}.vditor-tip__close:hover{color:var(--toolbar-icon-hover-color)}.vditor-img{position:fixed;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;z-index:3}.vditor-img__bar{border-bottom:1px solid var(--border-color);background-color:var(--toolbar-background-color);text-align:center;height:36px;box-sizing:border-box;display:flex;align-items:center;justify-content:center}.vditor-img__btn{display:flex;align-items:center;cursor:pointer;margin-left:24px;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--toolbar-icon-color)}.vditor-img__btn:hover{color:var(--toolbar-icon-hover-color)}.vditor-img__btn svg{height:14px;width:14px;margin-right:8px;fill:currentColor}.vditor-img__img{flex:1;background-color:var(--textarea-background-color);overflow:auto;cursor:zoom-out}.vditor-img__img img{max-width:none}.vditor-hint{background-color:var(--panel-background-color);position:absolute;box-shadow:var(--panel-shadow);border-radius:3px;padding:5px 0;z-index:4;line-height:20px;list-style:none;font-size:12px;margin:0;max-width:250px;min-width:80px;display:none}.vditor-hint .vditor-hint{margin-top:-31px;left:100%;right:auto}.vditor-hint .vditor-hint.vditor-panel--left{right:100%;left:auto}.vditor-hint button{color:var(--toolbar-icon-color);display:block;padding:3px 10px;border:0;border-radius:0;line-height:20px;width:100%;box-sizing:border-box;text-align:left;margin:0;background-color:transparent;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.vditor-hint button:focus{outline:none}.vditor-hint--current,.vditor-hint button:not(.vditor-menu--disabled):hover{background-color:var(--toolbar-background-color)!important;color:var(--toolbar-icon-hover-color)!important}.vditor-hint__emoji{font-size:16px;float:left;margin-right:3px}.vditor-hint img{height:20px;width:20px;float:left;margin-right:3px}.vditor-reset{color:#24292e;font-variant-ligatures:no-common-ligatures;font-family:Helvetica Neue,Luxi Sans,DejaVu Sans,Hiragino Sans GB,Microsoft Yahei,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",Segoe UI Symbol,"Android Emoji",EmojiSymbols;word-wrap:break-word;overflow:auto;line-height:1.5;font-size:16px;word-break:break-word}.vditor-reset--anchor{padding-left:20px}.vditor-reset--error{color:#d23f31;font-size:12px;display:block;line-height:16px}.vditor-reset ul ul ul{list-style-type:square}.vditor-reset ul ul{list-style-type:circle}.vditor-reset ul{list-style-type:disc}.vditor-reset ul,.vditor-reset ol{padding-left:2em;margin-top:0;margin-bottom:16px}.vditor-reset li+li{margin-top:.25em}.vditor-reset audio{max-width:100%}.vditor-reset audio:focus{outline:none}.vditor-reset video{max-height:90vh;max-width:100%}.vditor-reset img{max-width:100%}.vditor-reset img.emoji{cursor:auto;max-width:20px;vertical-align:sub}.vditor-reset h1,.vditor-reset h2,.vditor-reset h3,.vditor-reset h4,.vditor-reset h5,.vditor-reset h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.vditor-reset h1:hover .vditor-anchor svg,.vditor-reset h2:hover .vditor-anchor svg,.vditor-reset h3:hover .vditor-anchor svg,.vditor-reset h4:hover .vditor-anchor svg,.vditor-reset h5:hover .vditor-anchor svg,.vditor-reset h6:hover .vditor-anchor svg{visibility:visible}.vditor-reset h1{font-size:1.75em}.vditor-reset h2{font-size:1.55em}.vditor-reset h3{font-size:1.38em}.vditor-reset h4{font-size:1.25em}.vditor-reset h5{font-size:1.13em}.vditor-reset h6{font-size:1em}.vditor-reset hr{height:2px;padding:0;margin:24px 0;background-color:#eaecef;border:0}.vditor-reset p{margin-top:0;margin-bottom:16px}.vditor-reset blockquote{padding:0 1em;color:#6a737d;border-left:.25em solid #eaecef;margin:0 0 16px}.vditor-reset blockquote>:first-child{margin-top:0}.vditor-reset blockquote>:last-child{margin-bottom:0}.vditor-reset ins>iframe{border:0}.vditor-reset iframe{border:1px solid #d1d5da;max-width:100%;box-sizing:border-box}.vditor-reset iframe.iframe__video{min-width:80%;min-height:36vh}.vditor-reset table{border-collapse:collapse;empty-cells:show;margin-bottom:16px;overflow:auto;border-spacing:0;display:block;word-break:keep-all;width:100%}.vditor-reset table tr{background-color:#fafbfc;border-top:1px solid #c6cbd1}.vditor-reset table td,.vditor-reset table th{padding:6px 13px;border:1px solid #dfe2e5;word-break:normal;white-space:nowrap}.vditor-reset table td:first-child:after,.vditor-reset table th:first-child:after{content:"";display:inline-block;vertical-align:top;min-height:24px}.vditor-reset table th{font-weight:600}.vditor-reset table tbody tr:nth-child(2n){background-color:#fff}.vditor-reset code:not(.hljs):not(.highlight-chroma){padding:.2em .4em;margin:0;font-size:85%;border-radius:3px;font-family:mononoki,Consolas,Liberation Mono,Menlo,Courier,monospace,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",Segoe UI Symbol,"Android Emoji",EmojiSymbols;word-break:break-word;background-size:20px 20px;white-space:pre-wrap}.vditor-reset pre{margin:1em 0}.vditor-reset pre>code{margin:0;font-size:85%;padding:.5em;border-radius:5px;display:block;overflow:auto;white-space:pre;font-family:mononoki,Consolas,Liberation Mono,Menlo,Courier,monospace,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",Segoe UI Symbol,"Android Emoji",EmojiSymbols;background-size:20px 20px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8AgMAAABHkjHhAAAACVBMVEWAgIBaWlo+Pj7rTFvWAAAAA3RSTlMHCAw+VhR4AAAA+klEQVQoz4WSMW7EQAhFPxKWNh2FCx+HkaZI6RRb5DYbyVfIJXLKDCFoMbaTKSw/8ZnPAPjaH2xgZcUNUDADD7D9LtDBCLZ45fbkvo/30K8yeI64pPwl6znd/3n/Oe93P3ho9qeh72btTFzqkz0rsJle8Zr81OLEwZ1dv/713uWqvu2pl+k0fy7MWtj9r/tN5q/02z89qa/L4Dc2LvM93kezPfXlME/O86EbY/V9GB9ePX8G1/6W+/9h1dq/HGfTfzT3j/xNo7522Bfnqe5jO/fvhVthlfk434v3iO9zG/UOphyPeinPl1J8Gtaa7xPTa/Dk+RIs4deMvwGvcGsmsCvJ0AAAAABJRU5ErkJggg==);word-break:initial;word-wrap:normal}.vditor-reset pre:hover div.vditor-copy{display:block}.vditor-reset .language-math,.vditor-reset .language-echarts,.vditor-reset .language-mindmap,.vditor-reset .language-plantuml,.vditor-reset .language-mermaid,.vditor-reset .language-abc,.vditor-reset .language-flowchart,.vditor-reset .language-graphviz{margin-bottom:16px}.vditor-reset .language-math mjx-container:focus{outline:none;cursor:context-menu}.vditor-reset .language-echarts,.vditor-reset .language-mindmap{overflow:hidden;height:420px}.vditor-reset .language-mermaid,.vditor-reset .language-flowchart,.vditor-reset .language-graphviz{text-align:center}.vditor-reset .language-graphviz parsererror{overflow:auto}.vditor-reset kbd{display:inline-block;padding:3px 5px;font:11px Consolas,Liberation Mono,Menlo,Courier,monospace;line-height:10px;color:#24292e;vertical-align:middle;background-color:#fafbfc;border:solid 1px #d1d5da;border-radius:3px;box-shadow:inset 0 -1px #d1d5da}.vditor-reset summary{cursor:pointer}.vditor-reset summary:focus{outline:none}.vditor-reset svg{height:auto;width:auto;stroke-width:initial}.vditor-reset p:last-child,.vditor-reset blockquote:last-child,.vditor-reset pre:last-child,.vditor-reset ul:last-child,.vditor-reset ol:last-child,.vditor-reset hr:last-child{margin-bottom:0}.vditor-comment{border-bottom:2px solid #f8e6ab}.vditor-comment--focus,.vditor-comment--hover{background-color:#faf1d1;border-bottom:2px solid #ffc60a}.vditor-comment--focus .vditor-comment,.vditor-comment--hover .vditor-comment{border-bottom:2px solid #ffc60a}.vditor-task{list-style:none!important;word-break:break-all}.vditor-task input{margin:0 .2em .25em -1.6em;font-size:12px;vertical-align:middle}.vditor-copy{position:relative;display:none;z-index:1}.vditor-copy textarea{position:absolute;left:-100000px;height:10px}.vditor-copy span{cursor:pointer;position:absolute;right:15px;top:.5em}.vditor-copy svg{color:#586069;height:14px;width:14px!important;display:block;fill:currentColor}.vditor-linenumber{padding-left:4em!important;position:relative}.vditor-linenumber__rows{position:absolute;pointer-events:none;top:.5em;left:0;width:3em;-webkit-user-select:none;-moz-user-select:none;user-select:none;counter-reset:linenumber}.vditor-linenumber__rows>span{pointer-events:none;display:block}.vditor-linenumber__rows>span:before{counter-increment:linenumber;content:counter(linenumber);color:#9e969661;display:block;padding-right:1em;text-align:right}.vditor-speech{position:absolute;display:none;background-color:#f6f8fa;border:1px solid #d1d5da;border-radius:3px;padding:3px;cursor:pointer;color:#586069}.vditor-speech:hover,.vditor-speech--current{color:#4285f4}.vditor-speech svg{height:14px;width:14px;fill:currentColor;display:block;stroke-width:0;stroke:currentColor}.vditor-anchor{margin-left:5px}.vditor-anchor--left{float:left;padding-right:4px;margin-left:-20px}.vditor-anchor svg{visibility:hidden}.vditor-anchor:hover svg{visibility:visible}.vditor-anchor:focus{outline:none}.vditor-linkcard{margin:31px auto 16px;transition:all .15s ease-in-out;cursor:pointer;max-width:768px;padding:0 10px}.vditor-linkcard a{border-radius:3px;background-color:#f6f8fa;overflow:hidden;max-height:250px;display:flex;text-decoration:none;flex-wrap:wrap-reverse;box-shadow:0 1px 2px #0003}.vditor-linkcard a:hover{box-shadow:0 0 3px #00000021,0 3px 6px #00000042;text-decoration:none}.vditor-linkcard a:visited .vditor-linkcard__abstract{color:#5860695c}.vditor-linkcard__info{padding:10px;min-width:200px;box-sizing:border-box;flex:1}.vditor-linkcard__title{font-size:14px;font-weight:400;color:#24292e;display:flex;align-items:center}.vditor-linkcard__title img{cursor:pointer;height:20px;width:20px;border-radius:3px;flex-shrink:0;margin-right:5px}.vditor-linkcard__abstract{word-wrap:break-word;word-break:break-all;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;font-size:13px;color:#586069;margin:5px 0}.vditor-linkcard__site{font-size:12px;color:#4285f4}.vditor-linkcard__image{background-size:cover;background-repeat:no-repeat;background-position:center center;max-width:250px;min-width:126px;cursor:pointer;background-color:#5860695c}.vditor-footnotes__goto-ref{text-decoration:none}.vditor-toc{margin-bottom:16px;-webkit-user-select:text;-moz-user-select:text;user-select:text;color:#4285f4}.vditor-toc .vditor-outline__action{display:none}.vditor-toc ul{list-style:none!important;padding-left:1em}.vditor-toc>ul{padding-left:0}.vditor-toc span{cursor:pointer}.vditor-toc li>span>svg{width:0;height:0}.vditor-outline{width:250px;border-right:1px solid var(--border-color);background-color:var(--panel-background-color);display:none;overflow:auto}.vditor-outline--right{border-right:0;border-left:1px solid var(--border-color)}.vditor-outline::-webkit-scrollbar{display:none}.vditor-outline ul{list-style:none!important;padding-left:1em;margin:0}.vditor-outline__content>ul{padding-left:0}.vditor-outline li>span{display:flex;align-items:center;padding:5px 10px;cursor:pointer;color:var(--textarea-text-color)}.vditor-outline li>span>svg{height:10px;width:10px}.vditor-outline li>span:hover{color:var(--toolbar-icon-hover-color)}.vditor-outline li>span>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vditor-outline__title{border-bottom:1px dashed var(--border-color);padding:5px 10px;color:var(--toolbar-icon-color);font-size:12px}.vditor-outline__action{transition:all .15s ease-in-out;fill:currentColor;margin-right:5px;flex-shrink:0}.vditor-outline__action--close{transform:rotate(-90deg)}.vditor-wysiwyg{box-sizing:border-box;flex:1;position:relative;width:100%;min-width:1px}.vditor-wysiwyg pre.vditor-reset{background-color:var(--panel-background-color);margin:0;white-space:pre-wrap;height:100%;box-sizing:border-box}.vditor-wysiwyg pre.vditor-reset[contenteditable=false]{opacity:.3;cursor:not-allowed}.vditor-wysiwyg pre.vditor-reset:empty:before{content:attr(placeholder);color:var(--second-color)}.vditor-wysiwyg pre.vditor-reset:focus{outline:none;background-color:var(--textarea-background-color)}.vditor-wysiwyg pre.vditor-reset:after{content:"";height:var(--editor-bottom);display:block}.vditor-wysiwyg blockquote:empty:before,.vditor-wysiwyg pre>code:empty:before,.vditor-wysiwyg p:empty:before,.vditor-wysiwyg h1:empty:after,.vditor-wysiwyg h2:empty:after,.vditor-wysiwyg h3:empty:after,.vditor-wysiwyg h4:empty:after,.vditor-wysiwyg h5:empty:after,.vditor-wysiwyg h6:empty:after{content:" "}.vditor-wysiwyg code[data-marker="`"]{padding-left:0!important;padding-right:0!important}.vditor-wysiwyg__block pre:first-child{margin-bottom:-1em}.vditor-wysiwyg__block pre:first-child code{color:var(--textarea-text-color);height:auto;text-align:left}.vditor-wysiwyg__block pre:last-child{margin-bottom:1em}.vditor-wysiwyg__preview{cursor:pointer;white-space:initial;min-height:27px}.vditor-wysiwyg>.vditor-reset>h1:before,.vditor-wysiwyg>.vditor-reset>h2:before,.vditor-wysiwyg>.vditor-reset>h3:before,.vditor-wysiwyg>.vditor-reset>h4:before,.vditor-wysiwyg>.vditor-reset>h5:before,.vditor-wysiwyg>.vditor-reset>h6:before,.vditor-wysiwyg div.vditor-wysiwyg__block:before,.vditor-wysiwyg div[data-type=link-ref-defs-block]:before,.vditor-wysiwyg div[data-type=footnotes-block]:before,.vditor-wysiwyg .vditor-toc:before{float:left;padding-right:4px;margin-left:-29px;content:"H1";font-size:.85rem;font-weight:400;color:var(--second-color)}.vditor-wysiwyg>.vditor-reset>h2:before{content:"H2"}.vditor-wysiwyg>.vditor-reset>h3:before{content:"H3"}.vditor-wysiwyg>.vditor-reset>h4:before{content:"H4"}.vditor-wysiwyg>.vditor-reset>h5:before{content:"H5"}.vditor-wysiwyg>.vditor-reset>h6:before{content:"H6"}.vditor-wysiwyg div[data-type=link-ref-defs-block]:before{content:'"A"'}.vditor-wysiwyg div[data-type=footnotes-block]:before{content:"^F"}.vditor-wysiwyg div.vditor-wysiwyg__block:before{content:""}.vditor-wysiwyg div.vditor-wysiwyg__block[data-type=yaml-front-matter]:before{content:"F"}.vditor-wysiwyg div.vditor-wysiwyg__block[data-type=math-block]:before{content:"$$"}.vditor-wysiwyg .vditor-toc:before{content:"ToC"}.vditor-wysiwyg hr{display:inline-block;margin:12px 0;width:100%}.vditor-wysiwyg details{white-space:initial}.vditor-wysiwyg a{cursor:pointer}.vditor-wysiwyg span[data-type=backslash]>span{display:none;color:var(--second-color)}.vditor-wysiwyg span[data-type=link-ref],.vditor-wysiwyg sup[data-type=footnotes-ref]{color:#4285f4}.vditor-wysiwyg span[data-type=toc-h]{color:#4285f4;text-decoration:underline}.vditor-wysiwyg div[data-type=footnotes-block]{border-top:2px solid var(--heading-border-color);padding-top:24px;margin-top:24px}.vditor-wysiwyg div[data-type=link-ref-defs-block]{color:var(--blockquote-color)}@media screen and (max-width: 520px){.vditor-wysiwyg h1:before,.vditor-wysiwyg h2:before,.vditor-wysiwyg h3:before,.vditor-wysiwyg h4:before,.vditor-wysiwyg h5:before,.vditor-wysiwyg h6:before,.vditor-wysiwyg div.vditor-wysiwyg__block:before,.vditor-wysiwyg div[data-type=link-ref-defs-block]:before,.vditor-wysiwyg div[data-type=footnotes-block]:before,.vditor-wysiwyg .vditor-toc:before{content:none}}.vditor-ir{box-sizing:border-box;flex:1;min-width:1px;position:relative;width:100%}.vditor-ir__node[data-type=code-block]:before,.vditor-ir__node[data-type=code-block]:after,.vditor-ir__node[data-type=yaml-front-matter]:before,.vditor-ir__node[data-type=yaml-front-matter]:after,.vditor-ir__node[data-type=math-block]:before,.vditor-ir__node[data-type=math-block]:after{content:" ";color:var(--second-color)}.vditor-ir__node:not(.vditor-ir__node--expand) .vditor-ir__marker{padding:0!important}.vditor-ir__node:not(.vditor-ir__node--expand)[data-type=a]{cursor:pointer}.vditor-ir__node[data-type=link-ref],.vditor-ir__node[data-type=footnotes-ref]{color:#4285f4}.vditor-ir__node[data-type=html-block]{margin-bottom:1em}.vditor-ir__node .vditor-ir__marker{width:0;overflow:hidden;display:inline-block;height:0;transition:all .15s ease-in-out}.vditor-ir__node--hidden .vditor-ir__marker{visibility:hidden}.vditor-ir__node--expand .vditor-ir__marker{color:var(--second-color);display:inline;height:auto;width:auto}.vditor-ir__node--expand .vditor-ir__marker--hide{display:none}.vditor-ir__node--expand .vditor-ir__marker--heading{color:var(--ir-heading-color)}.vditor-ir__node--expand .vditor-ir__marker--bi{color:var(--ir-bi-color)}.vditor-ir__node--expand .vditor-ir__marker--link{color:var(--ir-link-color)}.vditor-ir__node--expand .vditor-ir__marker--title{color:var(--ir-title-color)}.vditor-ir__node--expand .vditor-ir__marker--bracket{color:var(--ir-bracket-color);text-decoration:underline}.vditor-ir__node--expand .vditor-ir__marker--paren{color:var(--ir-paren-color)}.vditor-ir__node--expand .vditor-ir__marker--info{color:var(--ir-heading-color)}.vditor-ir__node--expand .vditor-ir__marker--pre code{color:var(--textarea-text-color);height:auto;text-align:left}.vditor-ir__node--expand[data-type=code-block]:before,.vditor-ir__node--expand[data-type=code-block]:after{content:"```"}.vditor-ir__node--expand[data-type=yaml-front-matter]:before,.vditor-ir__node--expand[data-type=yaml-front-matter]:after{content:"---"}.vditor-ir__node--expand[data-type=math-block]:before,.vditor-ir__node--expand[data-type=math-block]:after{content:"$$"}.vditor-ir__node span[data-type=code-block-open-marker],.vditor-ir__node span[data-type=code-block-close-marker],.vditor-ir__node span[data-type=yaml-front-matter-open-marker],.vditor-ir__node span[data-type=yaml-front-matter-close-marker],.vditor-ir__node span[data-type=math-block-open-marker],.vditor-ir__node span[data-type=math-block-close-marker]{display:none}.vditor-ir__preview{cursor:pointer;white-space:initial;min-height:27px}.vditor-ir__link{color:var(--ir-bracket-color);text-decoration:underline}.vditor-ir pre.vditor-reset{background-color:var(--panel-background-color);margin:0;white-space:pre-wrap;height:100%;box-sizing:border-box}.vditor-ir pre.vditor-reset[contenteditable=false]{opacity:.3;cursor:not-allowed}.vditor-ir pre.vditor-reset:empty:before{content:attr(placeholder);color:var(--second-color)}.vditor-ir pre.vditor-reset:focus{outline:none;background-color:var(--textarea-background-color)}.vditor-ir pre.vditor-reset:after{content:"";height:var(--editor-bottom);display:block}.vditor-ir pre.vditor-reset pre{margin:0}.vditor-ir hr{display:inline-block;margin:12px 0;width:100%}.vditor-ir blockquote:empty:before,.vditor-ir pre>code:empty:before,.vditor-ir p:empty:before,.vditor-ir h1:empty:after,.vditor-ir h2:empty:after,.vditor-ir h3:empty:after,.vditor-ir h4:empty:after,.vditor-ir h5:empty:after,.vditor-ir h6:empty:after{content:" "}.vditor-ir .vditor-reset>h1:before,.vditor-ir .vditor-reset>h2:before,.vditor-ir .vditor-reset>h3:before,.vditor-ir .vditor-reset>h4:before,.vditor-ir .vditor-reset>h5:before,.vditor-ir .vditor-reset>h6:before,.vditor-ir div[data-type=link-ref-defs-block]:before,.vditor-ir div[data-type=footnotes-block]:before,.vditor-ir .vditor-toc:before{float:left;padding-right:4px;margin-left:-29px;content:"H1";font-size:.85rem;font-weight:400;color:var(--second-color)}.vditor-ir .vditor-reset>h2:before{content:"H2"}.vditor-ir .vditor-reset>h3:before{content:"H3"}.vditor-ir .vditor-reset>h4:before{content:"H4"}.vditor-ir .vditor-reset>h5:before{content:"H5"}.vditor-ir .vditor-reset>h6:before{content:"H6"}.vditor-ir div[data-type=link-ref-defs-block]{color:var(--blockquote-color)}.vditor-ir div[data-type=link-ref-defs-block]:before{content:'"A"'}.vditor-ir div[data-type=footnotes-block]{border-top:2px solid var(--heading-border-color);padding-top:24px;margin-top:24px}.vditor-ir div[data-type=footnotes-block]:before{content:"^F"}.vditor-ir div[data-type=footnotes-block]>div[data-type=footnotes-def]>ul,.vditor-ir div[data-type=footnotes-block]>div[data-type=footnotes-def]>ol,.vditor-ir div[data-type=footnotes-block]>div[data-type=footnotes-def]>p,.vditor-ir div[data-type=footnotes-block]>div[data-type=footnotes-def]>blockquote,.vditor-ir div[data-type=footnotes-block]>div[data-type=footnotes-def]>pre,.vditor-ir div[data-type=footnotes-block]>div[data-type=footnotes-def]>table,.vditor-ir div[data-type=footnotes-block]>div[data-type=footnotes-def]>hr{margin-left:8px}.vditor-ir .vditor-toc:before{content:"ToC"}.vditor-ir .vditor-toc span[data-type=toc-h]{color:#4285f4;text-decoration:underline}@media screen and (max-width: 520px){.vditor-ir h1:before,.vditor-ir h2:before,.vditor-ir h3:before,.vditor-ir h4:before,.vditor-ir h5:before,.vditor-ir h6:before,.vditor-ir div[data-type=link-ref-defs-block]:before,.vditor-ir div[data-type=footnotes-block]:before,.vditor-ir .vditor-toc:before{content:none}}.vditor-sv{font-family:Helvetica Neue,Luxi Sans,DejaVu Sans,Hiragino Sans GB,Microsoft Yahei,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",Segoe UI Symbol,"Android Emoji",EmojiSymbols;margin:0 1px 0 0;overflow:auto;width:100%;flex:1;min-width:1px;border:0;resize:none;padding:10px 9px 10px 10px;box-sizing:border-box;background-color:var(--panel-background-color);outline:0 none;font-size:16px;line-height:22px;color:var(--textarea-text-color);border-radius:0 0 3px 3px;font-variant-ligatures:no-common-ligatures;white-space:pre-wrap;word-break:break-word;word-wrap:break-word}.vditor-sv[contenteditable=false]{opacity:.3;cursor:not-allowed}.vditor-sv:empty:before{content:attr(placeholder);color:var(--second-color)}.vditor-sv:focus{background-color:var(--textarea-background-color)}.vditor-sv:after{content:"";height:var(--editor-bottom);display:block}.vditor-sv span[data-type=newline]+span[data-type=text]:empty{display:inherit}.vditor-sv .sup{vertical-align:super;font-size:smaller}.vditor-sv .strong{font-weight:700}.vditor-sv .em{font-style:italic}.vditor-sv .s{text-decoration:line-through}.vditor-sv .mark:not(.vditor-sv__marker){background-color:#ff0;color:#000}.vditor-sv .h1{font-size:1.75em;line-height:44px}.vditor-sv .h2{font-size:1.55em;line-height:38px}.vditor-sv .h3{font-size:1.38em;line-height:27px}.vditor-sv .h4{font-size:1.25em;line-height:25px}.vditor-sv .h5{font-size:1.13em}.vditor-sv .h6{font-size:1em}.vditor-sv__marker{color:var(--second-color)}.vditor-sv__marker--heading{color:var(--ir-heading-color)}.vditor-sv__marker--bi{color:var(--ir-bi-color)}.vditor-sv__marker--link{color:var(--ir-link-color)}.vditor-sv__marker--title{color:var(--ir-title-color)}.vditor-sv__marker--bracket{color:var(--ir-bracket-color)}.vditor-sv__marker--paren{color:var(--ir-paren-color)}.vditor-sv__marker--info{color:var(--ir-heading-color)}.vditor-sv__marker--strong{font-weight:700}.guoba-g-plugin-modal .ant-modal-body>.scrollbar{padding-top:0}.guoba-g-plugin-modal .ant-descriptions-item-label{width:100px} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/assets/GPluginModal.js b/Yunzai/plugins/Guoba-Plugin/server/static/assets/GPluginModal.js deleted file mode 100644 index 0da71a2f5adcb7741ee3e9c3a7f577e7e5f244d9..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/assets/GPluginModal.js +++ /dev/null @@ -1 +0,0 @@ -var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,l=(e,t)=>{for(var n in t||(t={}))i.call(t,n)&&a(e,n,t[n]);if(r)for(var n of r(t))o.call(t,n)&&a(e,n,t[n]);return e},s=(e,r)=>t(e,n(r)),d=(e,t,n)=>new Promise(((r,i)=>{var o=e=>{try{l(n.next(e))}catch(t){i(t)}},a=e=>{try{l(n.throw(e))}catch(t){i(t)}},l=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);l((n=n.apply(e,t)).next())}));import{b as c,B as u,u as p}from"./index2.js";import{D as m,u as f}from"./index15.js";import{aJ as h,fM as v,b as g,r as y,eY as b,eS as w,w as E,G as k,x as S,aR as C,fN as L,a as T,q as M,o as _,f as A,a9 as x,ag as H,d6 as N,e as D,i as O,j as I,k as j,af as R,fR as P,z as B,Q as q,fQ as V,F as U,R as W,a0 as K,a1 as G,l as z}from"./index.js";import{o as F}from"./onMountedOrActivated.js";import{g as Z,_ as J}from"./MarkdownViewer.js";import{p as X,g as Y}from"./guoba.js";import{B as Q}from"./BasicForm.js";import{a as $}from"./common.js";var ee={exports:{}},te=v(ee.exports=(()=>{var e={760:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,r,i){void 0===i&&(i=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var o=i;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,l=this.diff_commonPrefix(e,n),s=e.substring(0,l);e=e.substring(l),n=n.substring(l),l=this.diff_commonSuffix(e,n);var d=e.substring(e.length-l);e=e.substring(0,e.length-l),n=n.substring(0,n.length-l);var c=this.diff_compute_(e,n,a,o);return s&&c.unshift(new t.Diff(0,s)),d&&c.push(new t.Diff(0,d)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,r,i,o){var a;if(!e)return[new t.Diff(1,r)];if(!r)return[new t.Diff(n,e)];var l=e.length>r.length?e:r,s=e.length>r.length?r:e,d=l.indexOf(s);if(-1!=d)return a=[new t.Diff(1,l.substring(0,d)),new t.Diff(0,s),new t.Diff(1,l.substring(d+s.length))],e.length>r.length&&(a[0][0]=a[2][0]=n),a;if(1==s.length)return[new t.Diff(n,e),new t.Diff(1,r)];var c=this.diff_halfMatch_(e,r);if(c){var u=c[0],p=c[1],m=c[2],f=c[3],h=c[4],v=this.diff_main(u,m,i,o),g=this.diff_main(p,f,i,o);return v.concat([new t.Diff(0,h)],g)}return i&&e.length>100&&r.length>100?this.diff_lineMode_(e,r,o):this.diff_bisect_(e,r,o)},t.prototype.diff_lineMode_=function(e,r,i){var o=this.diff_linesToChars_(e,r);e=o.chars1,r=o.chars2;var a=o.lineArray,l=this.diff_main(e,r,!1,i);this.diff_charsToLines_(l,a),this.diff_cleanupSemantic(l),l.push(new t.Diff(0,""));for(var s=0,d=0,c=0,u="",p="";s=1&&c>=1){l.splice(s-d-c,d+c),s=s-d-c;for(var m=this.diff_main(u,p,!1,i),f=m.length-1;f>=0;f--)l.splice(s,0,m[f]);s+=m.length}c=0,d=0,u="",p=""}s++}return l.pop(),l},t.prototype.diff_bisect_=function(e,r,i){for(var o=e.length,a=r.length,l=Math.ceil((o+a)/2),s=l,d=2*l,c=new Array(d),u=new Array(d),p=0;pi);b++){for(var w=-b+h;w<=b-v;w+=2){for(var E=s+w,k=(M=w==-b||w!=b&&c[E-1]o)v+=2;else if(k>a)h+=2;else if(f&&(L=s+m-w)>=0&&L=(C=o-u[L]))return this.diff_bisectSplit_(e,r,M,k,i)}for(var S=-b+g;S<=b-y;S+=2){for(var C,L=s+S,T=(C=S==-b||S!=b&&u[L-1]o)y+=2;else if(T>a)g+=2;else if(!f){var M;if((E=s+m-S)>=0&&E=(C=o-C)))return this.diff_bisectSplit_(e,r,M,k,i)}}}return[new t.Diff(n,e),new t.Diff(1,r)]},t.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),s=t.substring(r),d=this.diff_main(o,a,!1,i),c=this.diff_main(l,s,!1,i);return d.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function i(e){for(var t="",i=0,a=-1,l=n.length;ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,o,a,l,c]:null}var a,l,s,d,c,u=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));return u||p?(a=p?u&&u[4].length>p[4].length?u:p:u,e.length>t.length?(l=a[0],s=a[1],d=a[2],c=a[3]):(d=a[0],c=a[1],l=a[2],s=a[3]),[l,s,d,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var r=!1,i=[],o=0,a=null,l=0,s=0,d=0,c=0,u=0;l0?i[o-1]:-1,s=0,d=0,c=0,u=0,a=null,r=!0)),l++;for(r&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l=h?(f>=p.length/2||f>=m.length/2)&&(e.splice(l,0,new t.Diff(0,m.substring(0,f))),e[l-1][1]=p.substring(0,p.length-f),e[l+1][1]=m.substring(f),l++):(h>=p.length/2||h>=m.length/2)&&(e.splice(l,0,new t.Diff(0,p.substring(0,h))),e[l-1][0]=1,e[l-1][1]=m.substring(0,m.length-h),e[l+1][0]=n,e[l+1][1]=p.substring(h),l++),l++}l++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),i=n.charAt(0),o=r.match(t.nonAlphaNumericRegex_),a=i.match(t.nonAlphaNumericRegex_),l=o&&r.match(t.whitespaceRegex_),s=a&&i.match(t.whitespaceRegex_),d=l&&r.match(t.linebreakRegex_),c=s&&i.match(t.linebreakRegex_),u=d&&e.match(t.blanklineEndRegex_),p=c&&n.match(t.blanklineStartRegex_);return u||p?5:d||c?4:o&&!l&&s?3:l||s?2:o||a?1:0}for(var r=1;r=p&&(p=m,d=i,c=o,u=a)}e[r-1][1]!=d&&(d?e[r-1][1]=d:(e.splice(r-1,1),r--),e[r][1]=c,u?e[r+1][1]=u:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var r=!1,i=[],o=0,a=null,l=0,s=!1,d=!1,c=!1,u=!1;l0?i[o-1]:-1,c=u=!1),r=!0)),l++;r&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var r,i=0,o=0,a=0,l="",s="";i1?(0!==o&&0!==a&&(0!==(r=this.diff_commonPrefix(s,l))&&(i-o-a>0&&0==e[i-o-a-1][0]?e[i-o-a-1][1]+=s.substring(0,r):(e.splice(0,0,new t.Diff(0,s.substring(0,r))),i++),s=s.substring(r),l=l.substring(r)),0!==(r=this.diff_commonSuffix(s,l))&&(e[i][1]=s.substring(s.length-r)+e[i][1],s=s.substring(0,s.length-r),l=l.substring(0,l.length-r))),i-=o+a,e.splice(i,o+a),l.length&&(e.splice(i,0,new t.Diff(n,l)),i++),s.length&&(e.splice(i,0,new t.Diff(1,s)),i++),i++):0!==i&&0==e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,a=0,o=0,l="",s=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(i=1;it));r++)a=i,l=o;return e.length!=r&&e[r][0]===n?l:l+(t-a)},t.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,i=//g,a=/\n/g,l=0;l");switch(s){case 1:t[l]=''+d+"";break;case n:t[l]=''+d+"";break;case 0:t[l]=""+d+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),i=this;function o(e,r){var o=e/t.length,a=Math.abs(n-r);return i.Match_Distance?o+a/i.Match_Distance:a?1:o}var a=this.Match_Threshold,l=e.indexOf(t,n);-1!=l&&(a=Math.min(o(0,l),a),-1!=(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(o(0,l),a)));var s,d,c=1<=f;g--){var y=r[e.charAt(g-1)];if(v[g]=0===m?(v[g+1]<<1|1)&y:(v[g+1]<<1|1)&y|(u[g+1]|u[g])<<1|1|u[g+1],v[g]&c){var b=o(m,g-1);if(b<=a){if(a=b,!((l=g-1)>n))break;f=Math.max(1,2*n-l)}}}if(o(m+1,n)>a)break;u=v}return l},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(e&&"object"==typeof e&&void 0===r&&void 0===i)a=e,o=this.diff_text1(a);else if("string"==typeof e&&r&&"object"==typeof r&&void 0===i)o=e,a=r;else{if("string"!=typeof e||"string"!=typeof r||!i||"object"!=typeof i)throw new Error("Unknown call format to patch_make.");o=e,a=i}if(0===a.length)return[];for(var l=[],s=new t.patch_obj,d=0,c=0,u=0,p=o,m=o,f=0;f=2*this.Patch_Margin&&d&&(this.patch_addContext_(s,p),l.push(s),s=new t.patch_obj,d=0,p=m,c=u)}1!==h&&(c+=v.length),h!==n&&(u+=v.length)}return d&&(this.patch_addContext_(s,p),l.push(s)),l},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;rthis.Match_MaxBits?-1!=(l=this.match_main(t,c.substring(0,this.Match_MaxBits),d))&&(-1==(u=this.match_main(t,c.substring(c.length-this.Match_MaxBits),d+c.length-this.Match_MaxBits))||l>=u)&&(l=-1):l=this.match_main(t,c,d),-1==l)o[a]=!1,i-=e[a].length2-e[a].length1;else if(o[a]=!0,i=l-d,c==(s=-1==u?t.substring(l,l+c.length):t.substring(l,u+this.Match_MaxBits)))t=t.substring(0,l)+this.diff_text2(e[a].diffs)+t.substring(l+c.length);else{var p=this.diff_main(c,s,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(p)/c.length>this.Patch_DeleteThreshold)o[a]=!1;else{this.diff_cleanupSemanticLossless(p);for(var m,f=0,h=0;ha[0][1].length){var l=n-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],o.start1-=l,o.start2-=l,o.length1+=l,o.length2+=l}return 0==(a=(o=e[e.length-1]).diffs).length||0!=a[a.length-1][0]?(a.push(new t.Diff(0,r)),o.length1+=n,o.length2+=n):n>a[a.length-1][1].length&&(l=n-a[a.length-1][1].length,a[a.length-1][1]+=r.substring(0,l),o.length1+=l,o.length2+=l),r},t.prototype.patch_splitMax=function(e){for(var r=this.Match_MaxBits,i=0;i2*r?(d.length1+=p.length,a+=p.length,c=!1,d.diffs.push(new t.Diff(u,p)),o.diffs.shift()):(p=p.substring(0,r-d.length1-this.Patch_Margin),d.length1+=p.length,a+=p.length,0===u?(d.length2+=p.length,l+=p.length):c=!1,d.diffs.push(new t.Diff(u,p)),p==o.diffs[0][1]?o.diffs.shift():o.diffs[0][1]=o.diffs[0][1].substring(p.length))}s=(s=this.diff_text2(d.diffs)).substring(s.length-this.Patch_Margin);var m=this.diff_text1(o.diffs).substring(0,this.Patch_Margin);""!==m&&(d.length1+=m.length,d.length2+=m.length,0!==d.diffs.length&&0===d.diffs[d.diffs.length-1][0]?d.diffs[d.diffs.length-1][1]+=m:d.diffs.push(new t.Diff(0,m))),c||e.splice(++i,0,d)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n{n.d(t,{default:()=>N});var r=n(478),i=n(156),o=n(314),a=n(730),l=n(66),s=n(218),d=n(702),c=function(e){void 0===e&&(e=document);var t=function(e){var t=document.createElement("img");t.src=e.getAttribute("data-src"),t.addEventListener("load",(function(){e.getAttribute("style")||e.getAttribute("class")||e.getAttribute("width")||e.getAttribute("height")||t.naturalHeight>t.naturalWidth&&t.naturalWidth/t.naturalHeightwindow.innerHeight-40&&(e.style.height=window.innerHeight-40+"px"),e.src=t.src})),e.removeAttribute("data-src")};if(!("IntersectionObserver"in window))return e.querySelectorAll("img").forEach((function(e){e.getAttribute("data-src")&&t(e)})),!1;window.vditorImageIntersectionObserver?(window.vditorImageIntersectionObserver.disconnect(),e.querySelectorAll("img").forEach((function(e){window.vditorImageIntersectionObserver.observe(e)}))):(window.vditorImageIntersectionObserver=new IntersectionObserver((function(e){e.forEach((function(e){(void 0===e.isIntersecting?0!==e.intersectionRatio:e.isIntersecting)&&e.target.getAttribute("data-src")&&t(e.target)}))})),e.querySelectorAll("img").forEach((function(e){window.vditorImageIntersectionObserver.observe(e)})))},u=n(466),p=n(554),m=n(40),f=n(749),h=n(818),v=n(408),g=n(54),y=n(227),b=n(526),w=n(827),E=n(640),k=n(895),S=n(393),C=function(e,t){if(void 0===t&&(t="zh_CN"),"undefined"!=typeof speechSynthesis&&"undefined"!=typeof SpeechSynthesisUtterance){var n='',r='';document.getElementById("vditorIconScript")||(n='',r='');var i=document.querySelector(".vditor-speech");if(!i){(i=document.createElement("div")).className="vditor-speech",document.body.insertAdjacentElement("beforeend",i);var o=function(){var e,n;return speechSynthesis.getVoices().forEach((function(r){r.lang===t.replace("_","-")&&(e=r),r.default&&(n=r)})),e||(e=n),e};void 0!==speechSynthesis.onvoiceschanged&&(speechSynthesis.onvoiceschanged=o);var a=o();i.onclick=function(){if("vditor-speech"===i.className){var e=new SpeechSynthesisUtterance(i.getAttribute("data-text"));e.voice=a,e.onend=function(){i.className="vditor-speech",speechSynthesis.cancel(),i.innerHTML=n},speechSynthesis.speak(e),i.className="vditor-speech vditor-speech--current",i.innerHTML=r}else speechSynthesis.speaking&&(speechSynthesis.paused?(speechSynthesis.resume(),i.innerHTML=r):(speechSynthesis.pause(),i.innerHTML=n));(0,S.Hc)(window.vditorSpeechRange)},document.body.addEventListener("click",(function(){""===getSelection().toString().trim()&&"block"===i.style.display&&(i.className="vditor-speech",speechSynthesis.cancel(),i.style.display="none")}))}e.addEventListener("mouseup",(function(e){var t=getSelection().toString().trim();if(speechSynthesis.cancel(),""!==getSelection().toString().trim()){window.vditorSpeechRange=getSelection().getRangeAt(0).cloneRange();var r=getSelection().getRangeAt(0).getBoundingClientRect();i.innerHTML=n,i.style.display="block",i.style.top=r.top+r.height+document.querySelector("html").scrollTop-20+"px",i.style.left=e.screenX+2+"px",i.setAttribute("data-text",t)}else"block"===i.style.display&&(i.className="vditor-speech",i.style.display="none")}))}},L=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function l(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},T=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]{n.d(t,{H:()=>r,g:()=>i});var r="3.8.15",i=function(){function e(){}return e.ZWSP="​",e.DROP_EDITOR="application/editor",e.MOBILE_WIDTH=520,e.CLASS_MENU_DISABLED="vditor-menu--disabled",e.EDIT_TOOLBARS=["emoji","headings","bold","italic","strike","link","list","ordered-list","outdent","indent","check","line","quote","code","inline-code","insert-after","insert-before","upload","record","table"],e.CODE_THEME=["abap","algol","algol_nu","arduino","autumn","borland","bw","colorful","dracula","emacs","friendly","fruity","github","igor","lovelace","manni","monokai","monokailight","murphy","native","paraiso-dark","paraiso-light","pastie","perldoc","pygments","rainbow_dash","rrt","solarized-dark","solarized-dark256","solarized-light","swapoff","tango","trac","vim","vs","xcode","ant-design"],e.CODE_LANGUAGES=["mermaid","echarts","mindmap","plantuml","abc","graphviz","flowchart","apache","js","ts","html","properties","apache","bash","c","csharp","cpp","css","coffeescript","diff","go","xml","http","json","java","javascript","kotlin","less","lua","makefile","markdown","nginx","objectivec","php","php-template","perl","plaintext","python","python-repl","r","ruby","rust","scss","sql","shell","swift","ini","typescript","vbnet","yaml","ada","clojure","dart","erb","fortran","gradle","haskell","julia","julia-repl","lisp","matlab","pgsql","powershell","sql_more","stata","cmake","mathematica","solidity","yul"],e.CDN="https://unpkg.com/vditor@3.8.15",e.MARKDOWN_OPTIONS={autoSpace:!1,codeBlockPreview:!0,fixTermTypo:!1,footnotes:!0,linkBase:"",linkPrefix:"",listStyle:!1,mark:!1,mathBlockPreview:!0,paragraphBeginningSpace:!1,sanitize:!0,toc:!1},e.HLJS_OPTIONS={enable:!0,lineNumber:!1,style:"github"},e.MATH_OPTIONS={engine:"KaTeX",inlineDigit:!1,macros:{}},e.THEME_OPTIONS={current:"light",list:{"ant-design":"Ant Design",dark:"Dark",light:"Light",wechat:"WeChat"},path:e.CDN+"/dist/css/content-theme"},e}()},478:(e,t,n)=>{n.d(t,{Q:()=>a});var r=n(54),i=n(526),o=n(156),a=function(e,t){void 0===e&&(e=document),void 0===t&&(t=r.g.CDN);var n=o.abcRenderAdapter.getElements(e);n.length>0&&(0,i.G)(t+"/dist/js/abcjs/abcjs_basic.min.js","vditorAbcjsScript").then((function(){n.forEach((function(e){e.parentElement.classList.contains("vditor-wysiwyg__pre")||e.parentElement.classList.contains("vditor-ir__marker--pre")||"true"!==e.getAttribute("data-processed")&&(ABCJS.renderAbc(e,o.abcRenderAdapter.getCode(e).trim()),e.style.overflowX="auto",e.setAttribute("data-processed","true"))}))}))}},156:(e,t,n)=>{n.r(t),n.d(t,{mathRenderAdapter:()=>r,mermaidRenderAdapter:()=>i,mindmapRenderAdapter:()=>o,chartRenderAdapter:()=>a,abcRenderAdapter:()=>l,graphvizRenderAdapter:()=>s,flowchartRenderAdapter:()=>d,plantumlRenderAdapter:()=>c});var r={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-math")}},i={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-mermaid")}},o={getCode:function(e){return e.getAttribute("data-code")},getElements:function(e){return e.querySelectorAll(".language-mindmap")}},a={getCode:function(e){return e.innerText},getElements:function(e){return e.querySelectorAll(".language-echarts")}},l={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-abc")}},s={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-graphviz")}},d={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-flowchart")}},c={getCode:function(e){return e.textContent},getElements:function(e){return e.querySelectorAll(".language-plantuml")}}},314:(e,t,n)=>{n.d(t,{p:()=>a});var r=n(54),i=n(526),o=n(156),a=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=r.g.CDN);var a=o.chartRenderAdapter.getElements(e);a.length>0&&(0,i.G)(t+"/dist/js/echarts/echarts.min.js","vditorEchartsScript").then((function(){a.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=o.chartRenderAdapter.getCode(e).trim();if(t)try{if("true"===e.getAttribute("data-processed"))return;var r=JSON.parse(t);echarts.init(e,"dark"===n?"dark":void 0).setOption(r),e.setAttribute("data-processed","true")}catch(i){e.className="vditor-reset--error",e.innerHTML="echarts render error:
"+i}}}))}))}},730:(e,t,n)=>{n.d(t,{O:()=>i});var r=n(51),i=function(e){e.querySelectorAll("pre > code").forEach((function(t,n){var i,o,a;if(!t.parentElement.classList.contains("vditor-wysiwyg__pre")&&!t.parentElement.classList.contains("vditor-ir__marker--pre")&&!(t.classList.contains("language-mermaid")||t.classList.contains("language-flowchart")||t.classList.contains("language-echarts")||t.classList.contains("language-mindmap")||t.classList.contains("language-plantuml")||t.classList.contains("language-abc")||t.classList.contains("language-graphviz")||t.classList.contains("language-math")||t.style.maxHeight.indexOf("px")>-1||e.classList.contains("vditor-preview")&&n>5)){var l=t.innerText;if(t.classList.contains("highlight-chroma")){var s=document.createElement("code");s.innerHTML=t.innerHTML,s.querySelectorAll(".highlight-ln").forEach((function(e){e.remove()})),l=s.innerText}var d='';document.getElementById("vditorIconScript")||(d='');var c=document.createElement("div");c.className="vditor-copy",c.innerHTML='"+d+"";var u=document.createElement("textarea");u.value=(0,r.X)(l),c.insertAdjacentElement("afterbegin",u),t.before(c),t.style.maxHeight=window.outerHeight-40+"px"}}))}},66:(e,t,n)=>{n.d(t,{P:()=>a});var r=n(54),i=n(526),o=n(156),a=function(e,t){void 0===t&&(t=r.g.CDN);var n=o.flowchartRenderAdapter.getElements(e);0!==n.length&&(0,i.G)(t+"/dist/js/flowchart.js/flowchart.min.js","vditorFlowchartScript").then((function(){n.forEach((function(e){if("true"!==e.getAttribute("data-processed")){var t=flowchart.parse(o.flowchartRenderAdapter.getCode(e));e.innerHTML="",t.drawSVG(e),e.setAttribute("data-processed","true")}}))}))}},218:(e,t,n)=>{n.d(t,{v:()=>a});var r=n(54),i=n(526),o=n(156),a=function(e,t){void 0===t&&(t=r.g.CDN);var n=o.graphvizRenderAdapter.getElements(e);0!==n.length&&(0,i.G)(t+"/dist/js/graphviz/viz.js","vditorGraphVizScript").then((function(){n.forEach((function(e){var t=o.graphvizRenderAdapter.getCode(e);if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")&&"true"!==e.getAttribute("data-processed")&&""!==t.trim()){try{var n=new Blob(["importScripts('"+document.getElementById("vditorGraphVizScript").src.replace("viz.js","full.render.js")+"');"],{type:"application/javascript"}),r=(window.URL||window.webkitURL).createObjectURL(n),i=new Worker(r);new Viz({worker:i}).renderSVGElement(t).then((function(t){e.innerHTML=t.outerHTML})).catch((function(t){e.innerHTML="graphviz render error:
"+t,e.className="vditor-reset--error"}))}catch(a){console.error("graphviz error",a)}e.setAttribute("data-processed","true")}}))}))}},702:(e,t,n)=>{n.d(t,{s:()=>a});var r=n(54),i=n(526),o=n(578),a=function(e,t,n){void 0===t&&(t=document),void 0===n&&(n=r.g.CDN);var a=e.style;r.g.CODE_THEME.includes(a)||(a="github");var l=document.getElementById("vditorHljsStyle"),s=n+"/dist/js/highlight.js/styles/"+a+".css";l&&l.href!==s&&l.remove(),(0,o.c)(n+"/dist/js/highlight.js/styles/"+a+".css","vditorHljsStyle"),!1!==e.enable&&0!==t.querySelectorAll("pre > code").length&&(0,i.G)(n+"/dist/js/highlight.js/highlight.pack.js","vditorHljsScript").then((function(){(0,i.G)(n+"/dist/js/highlight.js/solidity.min.js","vditorHljsSolidityScript").then((function(){(0,i.G)(n+"/dist/js/highlight.js/yul.min.js","vditorHljsYulScript").then((function(){t.querySelectorAll("pre > code").forEach((function(t){if(!t.parentElement.classList.contains("vditor-ir__marker--pre")&&!t.parentElement.classList.contains("vditor-wysiwyg__pre")&&!(t.classList.contains("language-mermaid")||t.classList.contains("language-flowchart")||t.classList.contains("language-echarts")||t.classList.contains("language-mindmap")||t.classList.contains("language-plantuml")||t.classList.contains("language-abc")||t.classList.contains("language-graphviz")||t.classList.contains("language-math"))&&(hljs.highlightElement(t),e.lineNumber)){t.classList.add("vditor-linenumber");var n=t.querySelector(".vditor-linenumber__temp");n||((n=document.createElement("div")).className="vditor-linenumber__temp",t.insertAdjacentElement("beforeend",n));var r=getComputedStyle(t).whiteSpace,i=!1;"pre-wrap"!==r&&"pre-line"!==r||(i=!0);var o="",a=t.textContent.split(/\r\n|\r|\n/g);a.pop(),a.map((function(e){var t="";i&&(n.textContent=e||"\n",t=' style="height:'+n.getBoundingClientRect().height+'px"'),o+=""})),n.style.display="none",o=''+o+"",t.insertAdjacentHTML("beforeend",o)}}))}))}))}))}},466:(e,t,n)=>{n.d(t,{H:()=>s});var r=n(54),i=n(526),o=n(578),a=n(51),l=n(156),s=function(e,t){var n=l.mathRenderAdapter.getElements(e);if(0!==n.length){var s={cdn:r.g.CDN,math:{engine:"KaTeX",inlineDigit:!1,macros:{}}};if(t&&t.math&&(t.math=Object.assign({},s.math,t.math)),"KaTeX"===(t=Object.assign({},s,t)).math.engine)(0,o.c)(t.cdn+"/dist/js/katex/katex.min.css","vditorKatexStyle"),(0,i.G)(t.cdn+"/dist/js/katex/katex.min.js","vditorKatexScript").then((function(){(0,i.G)(t.cdn+"/dist/js/katex/mhchem.min.js","vditorKatexChemScript").then((function(){n.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")&&!e.getAttribute("data-math")){var t=(0,a.X)(l.mathRenderAdapter.getCode(e));e.setAttribute("data-math",t);try{e.innerHTML=katex.renderToString(t,{displayMode:"DIV"===e.tagName,output:"html"})}catch(n){e.innerHTML=n.message,e.className="language-math vditor-reset--error"}e.addEventListener("copy",(function(e){e.stopPropagation(),e.preventDefault();var t=e.currentTarget.closest(".language-math");e.clipboardData.setData("text/html",t.innerHTML),e.clipboardData.setData("text/plain",t.getAttribute("data-math"))}))}}))}))}));else if("MathJax"===t.math.engine){window.MathJax||(window.MathJax={loader:{paths:{mathjax:t.cdn+"/dist/js/mathjax"}},startup:{typeset:!1},tex:{macros:t.math.macros}}),(0,i.J)(t.cdn+"/dist/js/mathjax/tex-svg-full.js","protyleMathJaxScript");var d=function(e,t){var n=(0,a.X)(e.textContent).trim(),r=window.MathJax.getMetricsFor(e);r.display="DIV"===e.tagName,window.MathJax.tex2svgPromise(n,r).then((function(r){e.innerHTML="",e.setAttribute("data-math",n),e.append(r),window.MathJax.startup.document.clear(),window.MathJax.startup.document.updateDocument();var i=r.querySelector('[data-mml-node="merror"]');i&&""!==i.textContent.trim()&&(e.innerHTML=i.textContent.trim(),e.className="vditor-reset--error"),t&&t()}))};window.MathJax.startup.promise.then((function(){for(var e=[],t=function(t){var r=n[t];r.parentElement.classList.contains("vditor-wysiwyg__pre")||r.parentElement.classList.contains("vditor-ir__marker--pre")||r.getAttribute("data-math")||!(0,a.X)(r.textContent).trim()||e.push((function(e){t===n.length-1?d(r):d(r,e)}))},r=0;r{n.d(t,{Y:()=>r});var r=function(e){e&&e.querySelectorAll("a").forEach((function(e){var t,n,r=e.getAttribute("href");r&&(r.match(/^.+.(mp4|m4v|ogg|ogv|webm)$/)?(n=r,(t=e).insertAdjacentHTML("afterend",''),t.remove()):r.match(/^.+.(mp3|wav|flac)$/)?function(e,t){e.insertAdjacentHTML("afterend",''),e.remove()}(e,r):function(e,t){var n=t.match(/\/\/(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))([\w|-]{11})(?:(?:[\?&]t=)(\S+))?/),r=t.match(/\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/),i=t.match(/\/\/v\.qq\.com\/x\/cover\/.*\/([^\/]+)\.html\??.*/),o=t.match(/(?:www\.|\/\/)coub\.com\/view\/(\w+)/),a=t.match(/(?:www\.|\/\/)facebook\.com\/([^\/]+)\/videos\/([0-9]+)/),l=t.match(/.+dailymotion.com\/(video|hub)\/(\w+)\?/),s=t.match(/(?:www\.|\/\/)bilibili\.com\/video\/(\w+)/),d=t.match(/(?:www\.|\/\/)ted\.com\/talks\/(\w+)/);n&&11===n[1].length?(e.insertAdjacentHTML("afterend",''),e.remove()):r&&r[1]?(e.insertAdjacentHTML("afterend",''),e.remove()):i&&i[1]?(e.insertAdjacentHTML("afterend",''),e.remove()):o&&o[1]?(e.insertAdjacentHTML("afterend",''),e.remove()):a&&a[0]?(e.insertAdjacentHTML("afterend",''),e.remove()):l&&l[2]?(e.insertAdjacentHTML("afterend",''),e.remove()):s&&s[1]?(e.insertAdjacentHTML("afterend",''),e.remove()):d&&d[1]&&(e.insertAdjacentHTML("afterend",''),e.remove())}(e,r))}))}},40:(e,t,n)=>{n.d(t,{i:()=>a});var r=n(54),i=n(526),o=n(156),a=function(e,t,n){void 0===t&&(t=r.g.CDN);var a=o.mermaidRenderAdapter.getElements(e);0!==a.length&&(0,i.G)(t+"/dist/js/mermaid/mermaid.min.js","vditorMermaidScript").then((function(){var e={altFontFamily:"sans-serif",flowchart:{htmlLabels:!0,useMaxWidth:!0},fontFamily:"sans-serif",gantt:{leftPadding:75,rightPadding:20},securityLevel:"loose",sequence:{boxMargin:8,diagramMarginX:8,diagramMarginY:8,useMaxWidth:!0},startOnLoad:!1};"dark"===n&&(e.theme="dark",e.themeVariables={activationBkgColor:"hsl(180, 1.5873015873%, 28.3529411765%)",activationBorderColor:"#81B1DB",activeTaskBkgColor:"#81B1DB",activeTaskBorderColor:"#ffffff",actorBkg:"#1f2020",actorBorder:"#81B1DB",actorLineColor:"lightgrey",actorTextColor:"lightgrey",altBackground:"hsl(0, 0%, 40%)",altSectionBkgColor:"#333",arrowheadColor:"lightgrey",background:"#333",border1:"#81B1DB",border2:"rgba(255, 255, 255, 0.25)",classText:"#e0dfdf",clusterBkg:"hsl(180, 1.5873015873%, 28.3529411765%)",clusterBorder:"rgba(255, 255, 255, 0.25)",critBkgColor:"#E83737",critBorderColor:"#E83737",darkTextColor:"hsl(28.5714285714, 17.3553719008%, 86.2745098039%)",defaultLinkColor:"lightgrey",doneTaskBkgColor:"lightgrey",doneTaskBorderColor:"grey",edgeLabelBackground:"hsl(0, 0%, 34.4117647059%)",errorBkgColor:"#a44141",errorTextColor:"#ddd",fillType0:"#1f2020",fillType1:"hsl(180, 1.5873015873%, 28.3529411765%)",fillType2:"hsl(244, 1.5873015873%, 12.3529411765%)",fillType3:"hsl(244, 1.5873015873%, 28.3529411765%)",fillType4:"hsl(116, 1.5873015873%, 12.3529411765%)",fillType5:"hsl(116, 1.5873015873%, 28.3529411765%)",fillType6:"hsl(308, 1.5873015873%, 12.3529411765%)",fillType7:"hsl(308, 1.5873015873%, 28.3529411765%)",fontFamily:'"trebuchet ms", verdana, arial',fontSize:"16px",gridColor:"lightgrey",labelBackground:"#181818",labelBoxBkgColor:"#1f2020",labelBoxBorderColor:"#81B1DB",labelColor:"#ccc",labelTextColor:"lightgrey",lineColor:"lightgrey",loopTextColor:"lightgrey",mainBkg:"#1f2020",mainContrastColor:"lightgrey",nodeBkg:"#1f2020",nodeBorder:"#81B1DB",noteBkgColor:"#fff5ad",noteBorderColor:"rgba(255, 255, 255, 0.25)",noteTextColor:"#1f2020",primaryBorderColor:"hsl(180, 0%, 2.3529411765%)",primaryColor:"#1f2020",primaryTextColor:"#e0dfdf",secondBkg:"hsl(180, 1.5873015873%, 28.3529411765%)",secondaryBorderColor:"hsl(180, 0%, 18.3529411765%)",secondaryColor:"hsl(180, 1.5873015873%, 28.3529411765%)",secondaryTextColor:"rgb(183.8476190475, 181.5523809523, 181.5523809523)",sectionBkgColor:"hsl(52.9411764706, 28.813559322%, 58.431372549%)",sectionBkgColor2:"#EAE8D9",sequenceNumberColor:"black",signalColor:"lightgrey",signalTextColor:"lightgrey",taskBkgColor:"hsl(180, 1.5873015873%, 35.3529411765%)",taskBorderColor:"#ffffff",taskTextClickableColor:"#003163",taskTextColor:"hsl(28.5714285714, 17.3553719008%, 86.2745098039%)",taskTextDarkColor:"hsl(28.5714285714, 17.3553719008%, 86.2745098039%)",taskTextLightColor:"lightgrey",taskTextOutsideColor:"lightgrey",tertiaryBorderColor:"hsl(20, 0%, 2.3529411765%)",tertiaryColor:"hsl(20, 1.5873015873%, 12.3529411765%)",tertiaryTextColor:"rgb(222.9999999999, 223.6666666666, 223.9999999999)",textColor:"#ccc",titleColor:"#F9FFFE",todayLineColor:"#DB5757"}),mermaid.initialize(e),a.forEach((function(e){var t=o.mermaidRenderAdapter.getCode(e);"true"!==e.getAttribute("data-processed")&&""!==t.trim()&&(mermaid.init(void 0,e),e.setAttribute("data-processed","true"))}))}))}},749:(e,t,n)=>{n.d(t,{P:()=>a});var r=n(54),i=n(526),o=n(156),a=function(e,t,n){void 0===e&&(e=document),void 0===t&&(t=r.g.CDN);var a=o.mindmapRenderAdapter.getElements(e);a.length>0&&(0,i.G)(t+"/dist/js/echarts/echarts.min.js","vditorEchartsScript").then((function(){a.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=o.mindmapRenderAdapter.getCode(e);if(t)try{if("true"===e.getAttribute("data-processed"))return;echarts.init(e,"dark"===n?"dark":void 0).setOption({series:[{data:[JSON.parse(decodeURIComponent(t))],initialTreeDepth:-1,itemStyle:{borderWidth:0,color:"#4285f4"},label:{backgroundColor:"#f6f8fa",borderColor:"#d1d5da",borderRadius:5,borderWidth:.5,color:"#586069",lineHeight:20,offset:[-5,0],padding:[0,5],position:"insideRight"},lineStyle:{color:"#d1d5da",width:1},roam:!0,symbol:function(e,t){var n;return(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.children)?"circle":"path://"},type:"tree"}],tooltip:{trigger:"item",triggerOn:"mousemove"}}),e.setAttribute("data-processed","true")}catch(r){e.className="vditor-reset--error",e.innerHTML="mindmap render error:
"+r}}}))}))}},818:(e,t,n)=>{n.d(t,{k:()=>o});var r=n(64),i=n(466),o=function(e,t,n){var o="",a=[];if(Array.from(e.children).forEach((function(e,t){if((0,r.W)(e)){if(n){var i=e.id.lastIndexOf("_");e.id=e.id.substring(0,-1===i?void 0:i)+"_"+t}a.push(e.id),o+=e.outerHTML.replace("","")}})),""===o)return t.innerHTML="","";var l=document.createElement("div");if(n)n.lute.SetToC(!0),"wysiwyg"!==n.currentMode||n.preview.element.contains(e)?"ir"!==n.currentMode||n.preview.element.contains(e)?l.innerHTML=n.lute.HTML2VditorDOM("

[ToC]

"+o):l.innerHTML=n.lute.SpinVditorIRDOM("

[ToC]

"+o):l.innerHTML=n.lute.SpinVditorDOM("

[ToC]

"+o),n.lute.SetToC(n.options.preview.markdown.toc);else{t.classList.add("vditor-outline");var s=Lute.New();s.SetToC(!0),l.innerHTML=s.HTML2VditorDOM("

[ToC]

"+o)}var d=l.firstElementChild.querySelectorAll("li > span[data-target-id]");return d.forEach((function(e,t){if(e.nextElementSibling&&"UL"===e.nextElementSibling.tagName){var n="";document.getElementById("vditorIconScript")||(n=''),e.innerHTML=n+""+e.innerHTML+""}else e.innerHTML=""+e.innerHTML+"";e.setAttribute("data-target-id",a[t])})),o=l.firstElementChild.innerHTML,0===d.length?(t.innerHTML="",o):(t.innerHTML=o,n&&(0,i.H)(t,{cdn:n.options.cdn,math:n.options.preview.math}),t.firstElementChild.addEventListener("click",(function(r){for(var i=r.target;i&&!i.isEqualNode(t);){if(i.classList.contains("vditor-outline__action")){i.classList.contains("vditor-outline__action--close")?(i.classList.remove("vditor-outline__action--close"),i.parentElement.nextElementSibling.setAttribute("style","display:block")):(i.classList.add("vditor-outline__action--close"),i.parentElement.nextElementSibling.setAttribute("style","display:none")),r.preventDefault(),r.stopPropagation();break}if(i.getAttribute("data-target-id")){r.preventDefault(),r.stopPropagation();var o=document.getElementById(i.getAttribute("data-target-id"));if(!o)return;if(n)if("auto"===n.options.height){var a=o.offsetTop+n.element.offsetTop;n.options.toolbarConfig.pin||(a+=n.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,a)}else n.element.offsetTop{n.d(t,{B:()=>a});var r=n(54),i=n(526),o=n(156),a=function(e,t){void 0===e&&(e=document),void 0===t&&(t=r.g.CDN);var n=o.plantumlRenderAdapter.getElements(e);0!==n.length&&(0,i.G)(t+"/dist/js/plantuml/plantuml-encoder.min.js","vditorPlantumlScript").then((function(){n.forEach((function(e){if(!e.parentElement.classList.contains("vditor-wysiwyg__pre")&&!e.parentElement.classList.contains("vditor-ir__marker--pre")){var t=o.plantumlRenderAdapter.getCode(e).trim();if(t)try{e.innerHTML=''}catch(n){e.className="vditor-reset--error",e.innerHTML="plantuml render error:
"+n}}}))}))}},895:(e,t,n)=>{n.d(t,{X:()=>r});var r=function(e){var t=Lute.New();return t.PutEmojis(e.emojis),t.SetEmojiSite(e.emojiSite),t.SetHeadingAnchor(e.headingAnchor),t.SetInlineMathAllowDigitAfterOpenMarker(e.inlineMathDigit),t.SetAutoSpace(e.autoSpace),t.SetToC(e.toc),t.SetFootnotes(e.footnotes),t.SetFixTermTypo(e.fixTermTypo),t.SetVditorCodeBlockPreview(e.codeBlockPreview),t.SetVditorMathBlockPreview(e.mathBlockPreview),t.SetSanitize(e.sanitize),t.SetChineseParagraphBeginningSpace(e.paragraphBeginningSpace),t.SetRenderListStyle(e.listStyle),t.SetLinkBase(e.linkBase),t.SetLinkPrefix(e.linkPrefix),t.SetMark(e.mark),e.lazyLoadImage&&t.SetImageLazyLoading(e.lazyLoadImage),t}},863:(e,t,n)=>{n.d(t,{E:()=>r});var r=function(e,t,n){void 0===n&&(n="classic");var r=e.getBoundingClientRect();document.body.insertAdjacentHTML("beforeend",'
\n
\n \n \n '+window.VditorI18n.spin+"\n \n \n X  "+window.VditorI18n.close+'\n \n
\n
\n \n
\n
'),document.body.style.overflow="hidden";var i=document.querySelector(".vditor-img img"),o="translate3d("+Math.max(0,window.innerWidth-e.naturalWidth)/2+"px, "+Math.max(0,window.innerHeight-36-e.naturalHeight)/2+"px, 0)";setTimeout((function(){i.setAttribute("style","transition: transform .3s ease-in-out;transform: "+o),setTimeout((function(){i.parentElement.scrollTo((i.parentElement.scrollWidth-i.parentElement.clientWidth)/2,(i.parentElement.scrollHeight-i.parentElement.clientHeight)/2)}),400)}));var a=document.querySelector(".vditor-img__btn");a.addEventListener("click",(function(){var t=parseInt(a.getAttribute("data-deg"),10)+90;t/90%2==1&&e.naturalWidth>i.parentElement.clientHeight?i.style.transform="translate3d("+Math.max(0,window.innerWidth-e.naturalWidth)/2+"px, "+(e.naturalWidth/2-e.naturalHeight/2)+"px, 0) rotateZ("+t+"deg)":i.style.transform=o+" rotateZ("+t+"deg)",a.setAttribute("data-deg",t.toString()),setTimeout((function(){i.parentElement.scrollTo((i.parentElement.scrollWidth-i.parentElement.clientWidth)/2,(i.parentElement.scrollHeight-i.parentElement.clientHeight)/2)}),400)}))}},312:(e,t,n)=>{n.d(t,{Y:()=>o});var r=n(54),i=n(578),o=function(e,t){void 0===t&&(t=r.g.CDN),r.g.CODE_THEME.includes(e)||(e="github");var n=document.getElementById("vditorHljsStyle"),o=t+"/dist/js/highlight.js/styles/"+e+".css";n?n.href!==o&&(n.remove(),(0,i.c)(o,"vditorHljsStyle")):(0,i.c)(o,"vditorHljsStyle")}},227:(e,t,n)=>{n.d(t,{Z:()=>i});var r=n(578),i=function(e,t){if(e&&t){var n=document.getElementById("vditorContentTheme"),i=t+"/"+e+".css";n?n.getAttribute("href")!==i&&(n.remove(),(0,r.c)(i,"vditorContentTheme")):(0,r.c)(i,"vditorContentTheme")}}},526:(e,t,n)=>{n.d(t,{J:()=>r,G:()=>i});var r=function(e,t){if(document.getElementById(t))return!1;var n=new XMLHttpRequest;n.open("GET",e,!1),n.setRequestHeader("Accept","text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01"),n.send("");var r=document.createElement("script");r.type="text/javascript",r.text=n.responseText,r.id=t,document.head.appendChild(r)},i=function(e,t){return new Promise((function(n,r){if(document.getElementById(t))return n(),!1;var i=document.createElement("script");i.src=e,i.async=!0,document.head.appendChild(i),i.onload=function(){if(document.getElementById(t))return i.remove(),n(),!1;i.id=t,n()}}))}},578:(e,t,n)=>{n.d(t,{c:()=>r});var r=function(e,t){if(!document.getElementById(t)){var n=document.createElement("link");n.id=t,n.rel="stylesheet",n.type="text/css",n.href=e,document.getElementsByTagName("head")[0].appendChild(n)}}},51:(e,t,n)=>{n.d(t,{X:()=>r});var r=function(e){return e.replace(/\u00a0/g," ")}},794:(e,t,n)=>{n.d(t,{G6:()=>r,vU:()=>i,pK:()=>o,Le:()=>a,yl:()=>l,ns:()=>s,i7:()=>d});var r=function(){return navigator.userAgent.indexOf("Safari")>-1&&-1===navigator.userAgent.indexOf("Chrome")},i=function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1},o=function(){try{return"undefined"!=typeof localStorage}catch(e){return!1}},a=function(){return navigator.userAgent.indexOf("iPhone")>-1?"touchstart":"click"},l=function(e){return navigator.platform.toUpperCase().indexOf("MAC")>=0?!(!e.metaKey||e.ctrlKey):!(e.metaKey||!e.ctrlKey)},s=function(e){return/Mac/.test(navigator.platform)||"iPhone"===navigator.platform?e.indexOf("⇧")>-1&&i()&&(e=e.replace(";",":").replace("=","+").replace("-","_")):(e=(e=e.startsWith("⌘")?e.replace("⌘","⌘+"):e.startsWith("⌥")&&"⌘"!==e.substr(1,1)?e.replace("⌥","⌥+"):e.replace("⇧⌘","⌘+⇧+").replace("⌥⌘","⌥+⌘+")).replace("⌘","Ctrl").replace("⇧","Shift").replace("⌥","Alt")).indexOf("Shift")>-1&&(e=e.replace(";",":").replace("=","+").replace("-","_")),e},d=function(){return/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}},827:(e,t,n)=>{n.d(t,{JQ:()=>i,E2:()=>o,O9:()=>a,a1:()=>l,F9:()=>s,lG:()=>d,fb:()=>c,DX:()=>u});var r=n(64),i=function(e,t){for(var n=c(e,t),r=!1,i=!1;n&&!n.classList.contains("vditor-reset")&&!i;)(r=c(n.parentElement,t))?n=r:i=!0;return n||!1},o=function(e,t){for(var n=(0,r.S)(e,t),i=!1,o=!1;n&&!n.classList.contains("vditor-reset")&&!o;)(i=(0,r.S)(n.parentElement,t))?n=i:o=!0;return n||!1},a=function(e){var t=o(e,"UL"),n=o(e,"OL"),r=t;return n&&(!t||t&&n.contains(t))&&(r=n),r},l=function(e,t,n){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var r=e,i=!1;r&&!i&&!r.classList.contains("vditor-reset");)r.getAttribute(t)===n?i=!0:r=r.parentElement;return i&&r},s=function(e){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);var t=e,n=!1,r=l(e,"data-block","0");if(r)return r;for(;t&&!n&&!t.classList.contains("vditor-reset");)"H1"===t.tagName||"H2"===t.tagName||"H3"===t.tagName||"H4"===t.tagName||"H5"===t.tagName||"H6"===t.tagName||"P"===t.tagName||"BLOCKQUOTE"===t.tagName||"OL"===t.tagName||"UL"===t.tagName?n=!0:t=t.parentElement;return n&&t},d=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,r=!1;n&&!r&&!n.classList.contains("vditor-reset");)n.nodeName===t?r=!0:n=n.parentElement;return r&&n},c=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,r=!1;n&&!r&&!n.classList.contains("vditor-reset");)n.classList.contains(t)?r=!0:n=n.parentElement;return r&&n},u=function(e){for(;e&&e.lastChild;)e=e.lastChild;return e}},64:(e,t,n)=>{n.d(t,{S:()=>r,W:()=>i});var r=function(e,t){if(!e)return!1;3===e.nodeType&&(e=e.parentElement);for(var n=e,r=!1;n&&!r&&!n.classList.contains("vditor-reset");)0===n.nodeName.indexOf(t)?r=!0:n=n.parentElement;return r&&n},i=function(e){var t=r(e,"H");return!(!t||2!==t.tagName.length||"HR"===t.tagName)&&t}},640:(e,t,n)=>{n.d(t,{T:()=>r});var r=function(){for(var e=[],t=0;t{n.d(t,{zh:()=>a,Ny:()=>l,Gb:()=>s,Hc:()=>d,im:()=>c,$j:()=>u,ib:()=>p,oC:()=>m});var r=n(54),i=n(794),o=n(827),a=function(e){var t,n=e[e.currentMode].element;return getSelection().rangeCount>0&&(t=getSelection().getRangeAt(0),n.isEqualNode(t.startContainer)||n.contains(t.startContainer))?t:e[e.currentMode].range?e[e.currentMode].range:(n.focus(),(t=n.ownerDocument.createRange()).setStart(n,0),t.collapse(!0),t)},l=function(e){var t=window.getSelection().getRangeAt(0);if(!e.contains(t.startContainer)&&!(0,o.fb)(t.startContainer,"vditor-panel--none"))return{left:0,top:0};var n,r=e.parentElement.getBoundingClientRect();if(0===t.getClientRects().length)if(3===t.startContainer.nodeType){var i=t.startContainer.parentElement;if(!(i&&i.getClientRects().length>0))return{left:0,top:0};n=i.getClientRects()[0]}else{var a=t.startContainer.children;if(a[t.startOffset]&&a[t.startOffset].getClientRects().length>0)n=a[t.startOffset].getClientRects()[0];else if(t.startContainer.childNodes.length>0){var l=t.cloneRange();t.selectNode(t.startContainer.childNodes[Math.max(0,t.startOffset-1)]),n=t.getClientRects()[0],t.setEnd(l.endContainer,l.endOffset),t.setStart(l.startContainer,l.startOffset)}else n=t.startContainer.getClientRects()[0];if(!n){for(var s=t.startContainer.childNodes[t.startOffset];!s.getClientRects||s.getClientRects&&0===s.getClientRects().length;)s=s.parentElement;n=s.getClientRects()[0]}}else n=t.getClientRects()[0];return{left:n.left-r.left,top:n.top-r.top}},s=function(e,t){if(!t){if(0===getSelection().rangeCount)return!1;t=getSelection().getRangeAt(0)}var n=t.commonAncestorContainer;return e.isEqualNode(n)||e.contains(n)},d=function(e){var t=window.getSelection();t.removeAllRanges(),t.addRange(e)},c=function(e,t,n){var r={end:0,start:0};if(!n){if(0===getSelection().rangeCount)return r;n=window.getSelection().getRangeAt(0)}if(s(t,n)){var i=n.cloneRange();e.childNodes[0]&&e.childNodes[0].childNodes[0]?i.setStart(e.childNodes[0].childNodes[0],0):i.selectNodeContents(e),i.setEnd(n.startContainer,n.startOffset),r.start=i.toString().length,r.end=r.start+n.toString().length}return r},u=function(e,t,n){var r=0,i=0,o=n.childNodes[i],a=!1,l=!1;e=Math.max(0,e),t=Math.max(0,t);var s=n.ownerDocument.createRange();for(s.setStart(o||n,0),s.collapse(!0);!l&&o;){var c=r+o.textContent.length;if(!a&&e>=r&&e<=c&&(0===e?s.setStart(o,0):3===o.childNodes[0].nodeType?s.setStart(o.childNodes[0],e-r):o.nextSibling?s.setStartBefore(o.nextSibling):s.setStartAfter(o),a=!0,e===t)){l=!0;break}a&&t>=r&&t<=c&&(0===t?s.setEnd(o,0):3===o.childNodes[0].nodeType?s.setEnd(o.childNodes[0],t-r):o.nextSibling?s.setEndBefore(o.nextSibling):s.setEndAfter(o),l=!0),r=c,o=n.childNodes[++i]}return!l&&n.childNodes[i-1]&&s.setStartBefore(n.childNodes[i-1]),d(s),s},p=function(e,t){var n=e.querySelector("wbr");if(n){if(n.previousElementSibling)if(n.previousElementSibling.isSameNode(n.previousSibling)){if(n.previousElementSibling.lastChild)return t.setStartBefore(n),t.collapse(!0),d(t),!(0,i.i7)()||"EM"!==n.previousElementSibling.tagName&&"STRONG"!==n.previousElementSibling.tagName&&"S"!==n.previousElementSibling.tagName||(t.insertNode(document.createTextNode(r.g.ZWSP)),t.collapse(!1)),void n.remove();t.setStartAfter(n.previousElementSibling)}else t.setStart(n.previousSibling,n.previousSibling.textContent.length);else n.previousSibling?t.setStart(n.previousSibling,n.previousSibling.textContent.length):n.nextSibling?3===n.nextSibling.nodeType?t.setStart(n.nextSibling,0):t.setStartBefore(n.nextSibling):t.setStart(n.parentElement,0);t.collapse(!0),n.remove(),d(t)}},m=function(e,t){var n=document.createElement("div");n.innerHTML=e;var r=n.querySelectorAll("p");1===r.length&&!r[0].previousSibling&&!r[0].nextSibling&&t[t.currentMode].element.children.length>0&&"P"===n.firstElementChild.tagName&&(e=r[0].innerHTML.trim());var i=document.createElement("div");i.innerHTML=e;var l=a(t);if(""!==l.toString()&&(t[t.currentMode].preventInput=!0,document.execCommand("delete",!1,"")),i.firstElementChild&&"0"===i.firstElementChild.getAttribute("data-block")){i.lastElementChild.insertAdjacentHTML("beforeend","");var s=(0,o.F9)(l.startContainer);s?s.insertAdjacentHTML("afterend",i.innerHTML):t[t.currentMode].element.insertAdjacentHTML("beforeend",i.innerHTML),p(t[t.currentMode].element,l)}else{var c=document.createElement("template");c.innerHTML=e,l.insertNode(c.content.cloneNode(!0)),l.collapse(!1),d(l)}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.d(r,{default:()=>zn});var e,t=n(872),i=n(54),o=n(51),a=function(e){return"sv"===e.currentMode?(0,o.X)((e.sv.element.textContent+"\n").replace(/\n\n$/,"\n")):"wysiwyg"===e.currentMode?e.lute.VditorDOM2Md(e.wysiwyg.element.innerHTML):"ir"===e.currentMode?e.lute.VditorIRDOM2Md(e.ir.element.innerHTML):""},l=n(526),s=function(){function e(){this.element=document.createElement("div"),this.element.className="vditor-devtools",this.element.innerHTML='
'}return e.prototype.renderEchart=function(e){var t=this;"block"===e.devtools.element.style.display&&(0,l.G)(e.options.cdn+"/dist/js/echarts/echarts.min.js","vditorEchartsScript").then((function(){t.ASTChart||(t.ASTChart=echarts.init(e.devtools.element.lastElementChild));try{t.element.lastElementChild.style.display="block",t.element.firstElementChild.innerHTML="",t.ASTChart.setOption({series:[{data:JSON.parse(e.lute.RenderEChartsJSON(a(e))),initialTreeDepth:-1,label:{align:"left",backgroundColor:"rgba(68, 77, 86, .68)",borderRadius:3,color:"#d1d5da",fontSize:12,lineHeight:12,offset:[9,12],padding:[2,4,2,4],position:"top",verticalAlign:"middle"},lineStyle:{color:"#4285f4",type:"curve",width:1},orient:"vertical",roam:!0,type:"tree"}],toolbox:{bottom:25,emphasis:{iconStyle:{color:"#4285f4"}},feature:{restore:{show:!0},saveAsImage:{show:!0}},right:15,show:!0}}),t.ASTChart.resize()}catch(n){t.element.lastElementChild.style.display="none",t.element.firstElementChild.innerHTML=n}}))},e}(),d=n(794),c=function(e,t){t.forEach((function(t){if(e[t]){var n=e[t].children[0];n&&n.classList.contains("vditor-menu--current")&&n.classList.remove("vditor-menu--current")}}))},u=function(e,t){t.forEach((function(t){if(e[t]){var n=e[t].children[0];n&&!n.classList.contains("vditor-menu--current")&&n.classList.add("vditor-menu--current")}}))},p=function(e,t){t.forEach((function(t){if(e[t]){var n=e[t].children[0];n&&n.classList.contains(i.g.CLASS_MENU_DISABLED)&&n.classList.remove(i.g.CLASS_MENU_DISABLED)}}))},m=function(e,t){t.forEach((function(t){if(e[t]){var n=e[t].children[0];n&&!n.classList.contains(i.g.CLASS_MENU_DISABLED)&&n.classList.add(i.g.CLASS_MENU_DISABLED)}}))},f=function(e,t){t.forEach((function(t){e[t]&&e[t]&&(e[t].style.display="none")}))},h=function(e,t){t.forEach((function(t){e[t]&&e[t]&&(e[t].style.display="block")}))},v=function(e,t,n){t.includes("subToolbar")&&(e.toolbar.element.querySelectorAll(".vditor-hint").forEach((function(e){n&&e.isEqualNode(n)||(e.style.display="none")})),e.toolbar.elements.emoji&&(e.toolbar.elements.emoji.lastElementChild.style.display="none")),t.includes("hint")&&(e.hint.element.style.display="none"),e.wysiwyg.popover&&t.includes("popover")&&(e.wysiwyg.popover.style.display="none")},g=function(e,t,n,r){n.addEventListener((0,d.Le)(),(function(r){r.preventDefault(),r.stopPropagation(),n.classList.contains(i.g.CLASS_MENU_DISABLED)||(e.toolbar.element.querySelectorAll(".vditor-hint--current").forEach((function(e){e.classList.remove("vditor-hint--current")})),"block"===t.style.display?t.style.display="none":(v(e,["subToolbar","hint","popover"],n.parentElement.parentElement),n.classList.contains("vditor-tooltipped")||n.classList.add("vditor-hint--current"),t.style.display="block",e.toolbar.element.getBoundingClientRect().right-n.getBoundingClientRect().right<250?t.classList.add("vditor-panel--left"):t.classList.remove("vditor-panel--left")))}))},y=n(827),b=n(64),w=function(e,t,n,r){r&&console.log(e+" - "+n+": "+t)},E=n(478),k=n(314),S=n(730),C=n(66),L=n(218),T=n(702),M=n(466),_=n(40),A=n(749),x=n(408),H=function(e,t){if(e)if("html-block"!==e.parentElement.getAttribute("data-type")){var n=e.firstElementChild.className.replace("language-","");n&&("abc"===n?(0,E.Q)(e,t.options.cdn):"mermaid"===n?(0,_.i)(e,t.options.cdn,t.options.theme):"flowchart"===n?(0,C.P)(e,t.options.cdn):"echarts"===n?(0,k.p)(e,t.options.cdn,t.options.theme):"mindmap"===n?(0,A.P)(e,t.options.cdn,t.options.theme):"plantuml"===n?(0,x.B)(e,t.options.cdn):"graphviz"===n?(0,L.v)(e,t.options.cdn):"math"===n?(0,M.H)(e,{cdn:t.options.cdn,math:t.options.preview.math}):((0,T.s)(Object.assign({},t.options.preview.hljs),e,t.options.cdn),(0,S.O)(e)),e.setAttribute("data-render","1"))}else e.setAttribute("data-render","1")},N=n(393),D=function(e){if("sv"!==e.currentMode){var t=e[e.currentMode].element,n=e.outline.render(e);""===n&&(n="[ToC]"),t.querySelectorAll('[data-type="toc-block"]').forEach((function(t){t.innerHTML=n,(0,M.H)(t,{cdn:e.options.cdn,math:e.options.preview.math})}))}},O=function(e,t){var n=(0,y.lG)(e.target,"SPAN");if(n&&(0,y.fb)(n,"vditor-toc")){var r=t[t.currentMode].element.querySelector("#"+n.getAttribute("data-target-id"));if(r)if("auto"===t.options.height){var i=r.offsetTop+t.element.offsetTop;t.options.toolbarConfig.pin||(i+=t.toolbar.element.offsetHeight),window.scrollTo(window.scrollX,i)}else t.element.offsetTop=e.textContent.trimRight().length)return e.nextElementSibling.remove(),st(t),!0;if(et(t,n,r,e,e.nextElementSibling))return!0}if("Backspace"===n.key||"Delete"===n.key){var i=(0,y.fb)(r.startContainer,"vditor-toc");if(i)return i.remove(),st(t),!0}},j=function(e,t,n,r){void 0===n&&(n=!1);var o=(0,y.F9)(t.startContainer);if(o&&!n&&"code-block"!==o.getAttribute("data-type")){if(at(o.innerHTML)&&o.previousElementSibling||lt(o.innerHTML))return;for(var a=(0,N.im)(o,e.ir.element,t).start,l=!0,s=a-1;s>o.textContent.substr(0,a).lastIndexOf("\n");s--)if(" "!==o.textContent.charAt(s)&&"\t"!==o.textContent.charAt(s)){l=!1;break}0===a&&(l=!1);var d=!0;for(s=a-1;s"):t.insertNode(document.createElement("wbr"))}o.querySelectorAll("[style]").forEach((function(e){e.removeAttribute("style")})),"link-ref-defs-block"===o.getAttribute("data-type")&&(o=e.ir.element);var p,m=o.isEqualNode(e.ir.element),f=(0,y.a1)(o,"data-type","footnotes-block"),h="";if(m)h=o.innerHTML;else{var v=(0,b.S)(t.startContainer,"BLOCKQUOTE"),g=(0,y.O9)(t.startContainer);if(g&&(o=g),v&&(!g||g&&!v.contains(g))&&(o=v),f&&(o=f),h=o.outerHTML,"UL"===o.tagName||"OL"===o.tagName){var E=o.previousElementSibling,k=o.nextElementSibling;!E||"UL"!==E.tagName&&"OL"!==E.tagName||(h=E.outerHTML+h,E.remove()),!k||"UL"!==k.tagName&&"OL"!==k.tagName||(h+=k.outerHTML,k.remove()),h=h.replace("

","

  • ")}else o.previousElementSibling&&""!==o.previousElementSibling.textContent.replace(i.g.ZWSP,"")&&r&&"insertParagraph"===r.inputType&&(h=o.previousElementSibling.outerHTML+h,o.previousElementSibling.remove());e.ir.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach((function(e){e&&!o.isEqualNode(e)&&(h+=e.outerHTML,e.remove())})),e.ir.element.querySelectorAll("[data-type='footnotes-block']").forEach((function(e){e&&!o.isEqualNode(e)&&(h+=e.outerHTML,e.remove())}))}if(w("SpinVditorIRDOM",h,"argument",e.options.debugger),h=e.lute.SpinVditorIRDOM(h),w("SpinVditorIRDOM",h,"result",e.options.debugger),m)o.innerHTML=h;else if(o.outerHTML=h,f){var S=(0,y.a1)(e.ir.element.querySelector("wbr"),"data-type","footnotes-def");if(S){var C=S.textContent,L=C.substring(1,C.indexOf("]:")),T=e.ir.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'+L+'"]');T&&T.setAttribute("aria-label",C.substr(L.length+3).trim().substr(0,24))}}var M,_=e.ir.element.querySelectorAll("[data-type='link-ref-defs-block']");_.forEach((function(e,t){0===t?p=e:(p.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())})),_.length>0&&e.ir.element.insertAdjacentElement("beforeend",_[0]);var A=e.ir.element.querySelectorAll("[data-type='footnotes-block']");A.forEach((function(e,t){0===t?M=e:(M.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())})),A.length>0&&e.ir.element.insertAdjacentElement("beforeend",A[0]),(0,N.ib)(e.ir.element,t),e.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach((function(t){H(t,e)})),D(e),Tt(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},R=function(e,t){if(""===e)return!1;if(-1===e.indexOf("⇧")&&-1===e.indexOf("⌘")&&-1===e.indexOf("⌥"))return!((0,d.yl)(t)||t.altKey||t.shiftKey||t.code!==e);if("⇧Tab"===e)return!((0,d.yl)(t)||t.altKey||!t.shiftKey||"Tab"!==t.code);var n=e.split("");if(e.startsWith("⌥")){var r=3===n.length?n[2]:n[1];return!((3===n.length?!(0,d.yl)(t):(0,d.yl)(t))||!t.altKey||t.shiftKey||t.code!==(/^[0-9]$/.test(r)?"Digit":"Key")+r)}"⌘Enter"===e&&(n=["⌘","Enter"]);var i=n.length>2&&"⇧"===n[0],o=i?n[2]:n[1];return!i||!(0,d.vU)()&&/Mac/.test(navigator.platform)||("-"===o?o="_":"="===o&&(o="+")),!(!(0,d.yl)(t)||t.key.toLowerCase()!==o.toLowerCase()||t.altKey||!(!i&&!t.shiftKey||i&&t.shiftKey))},P=function(e,t){t.ir.element.querySelectorAll(".vditor-ir__node--expand").forEach((function(e){e.classList.remove("vditor-ir__node--expand")}));var n,r,i,o=(0,y.JQ)(e.startContainer,"vditor-ir__node"),a=!e.collapsed&&(0,y.JQ)(e.endContainer,"vditor-ir__node");if(e.collapsed||o&&o===a){o&&(o.classList.add("vditor-ir__node--expand"),o.classList.remove("vditor-ir__node--hidden"),(0,N.Hc)(e));var l=function(e){var t=e.startContainer;if(3===t.nodeType&&t.nodeValue.length!==e.startOffset)return!1;for(var n=t.nextSibling;n&&""===n.textContent;)n=n.nextSibling;if(!n){var r=(0,y.fb)(t,"vditor-ir__marker");if(r&&!r.nextSibling){var i=t.parentElement.parentElement.nextSibling;if(i&&3!==i.nodeType&&i.classList.contains("vditor-ir__node"))return i}return!1}return!(!n||3===n.nodeType||!n.classList.contains("vditor-ir__node")||n.getAttribute("data-block"))&&n}(e);if(l)return l.classList.add("vditor-ir__node--expand"),void l.classList.remove("vditor-ir__node--hidden");var s=(r=(n=e).startContainer,i=r.previousSibling,!(3!==r.nodeType||0!==n.startOffset||!i||3===i.nodeType||!i.classList.contains("vditor-ir__node")||i.getAttribute("data-block"))&&i);return s?(s.classList.add("vditor-ir__node--expand"),void s.classList.remove("vditor-ir__node--hidden")):void 0}},B=n(863),q=function(e,t){var n,r=getSelection().getRangeAt(0).cloneRange(),i=r.startContainer;3!==r.startContainer.nodeType&&"DIV"===r.startContainer.tagName&&(i=r.startContainer.childNodes[r.startOffset-1]);var o=(0,y.a1)(i,"data-block","0");if(o&&t&&("deleteContentBackward"===t.inputType||" "===t.data)){for(var a=(0,N.im)(o,e.sv.element,r).start,l=!0,s=a-1;s>o.textContent.substr(0,a).lastIndexOf("\n");s--)if(" "!==o.textContent.charAt(s)&&"\t"!==o.textContent.charAt(s)){l=!1;break}if(0===a&&(l=!1),l)return void Oe(e);if("deleteContentBackward"===t.inputType){var d=(0,y.a1)(i,"data-type","code-block-open-marker")||(0,y.a1)(i,"data-type","code-block-close-marker");if(d){var c;if("code-block-close-marker"===d.getAttribute("data-type")&&(c=He(i,"code-block-open-marker")))return c.textContent=d.textContent,void Oe(e);if("code-block-open-marker"===d.getAttribute("data-type")&&(c=He(i,"code-block-close-marker",!1)))return c.textContent=d.textContent,void Oe(e)}var u=(0,y.a1)(i,"data-type","math-block-open-marker");if(u){var p=u.nextElementSibling.nextElementSibling;return void(p&&"math-block-close-marker"===p.getAttribute("data-type")&&(p.remove(),Oe(e)))}o.querySelectorAll('[data-type="code-block-open-marker"]').forEach((function(e){1===e.textContent.length&&e.remove()})),o.querySelectorAll('[data-type="code-block-close-marker"]').forEach((function(e){1===e.textContent.length&&e.remove()}));var m=(0,y.a1)(i,"data-type","heading-marker");if(m&&-1===m.textContent.indexOf("#"))return void Oe(e)}if((" "===t.data||"deleteContentBackward"===t.inputType)&&((0,y.a1)(i,"data-type","padding")||(0,y.a1)(i,"data-type","li-marker")||(0,y.a1)(i,"data-type","task-marker")||(0,y.a1)(i,"data-type","blockquote-marker")))return void Oe(e)}if(o&&"$$"===o.textContent.trimRight())Oe(e);else{o||(o=e.sv.element),"link-ref-defs-block"===(null===(n=o.firstElementChild)||void 0===n?void 0:n.getAttribute("data-type"))&&(o=e.sv.element),(0,y.a1)(i,"data-type","footnotes-link")&&(o=e.sv.element),-1===o.textContent.indexOf(Lute.Caret)&&r.insertNode(document.createTextNode(Lute.Caret)),o.querySelectorAll("[style]").forEach((function(e){e.removeAttribute("style")})),o.querySelectorAll("font").forEach((function(e){e.outerHTML=e.innerHTML}));var f,h=o.textContent,v=o.isEqualNode(e.sv.element);v?h=o.textContent:(o.previousElementSibling&&(h=o.previousElementSibling.textContent+h,o.previousElementSibling.remove()),o.previousElementSibling&&0===h.indexOf("---\n")&&(h=o.previousElementSibling.textContent+h,o.previousElementSibling.remove()),e.sv.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach((function(e,t){0===t&&e&&!o.isEqualNode(e.parentElement)&&(h+="\n"+e.parentElement.textContent,e.parentElement.remove())})),e.sv.element.querySelectorAll("[data-type='footnotes-link']").forEach((function(e,t){0===t&&e&&!o.isEqualNode(e.parentElement)&&(h+="\n"+e.parentElement.textContent,e.parentElement.remove())}))),h=Ne(h,e),v?o.innerHTML=h:o.outerHTML=h;var g,b=e.sv.element.querySelectorAll("[data-type='link-ref-defs-block']");b.forEach((function(e,t){0===t?f=e.parentElement:(f.lastElementChild.remove(),f.insertAdjacentHTML("beforeend",""+e.parentElement.innerHTML),e.parentElement.remove())})),b.length>0&&e.sv.element.insertAdjacentElement("beforeend",f);var w=e.sv.element.querySelectorAll("[data-type='footnotes-link']");w.forEach((function(e,t){0===t?g=e.parentElement:(g.lastElementChild.remove(),g.insertAdjacentHTML("beforeend",""+e.parentElement.innerHTML),e.parentElement.remove())})),w.length>0&&e.sv.element.insertAdjacentElement("beforeend",g),(0,N.ib)(e.sv.element,r),Me(e),Oe(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})}},V=n(227),U=function(e){"dark"===e.options.theme?e.element.classList.add("vditor--dark"):e.element.classList.remove("vditor--dark")},W=function(e){var t=window.innerWidth<=i.g.MOBILE_WIDTH?10:35;if("none"!==e.wysiwyg.element.parentElement.style.display){var n=(e.wysiwyg.element.parentElement.clientWidth-e.options.preview.maxWidth)/2;e.wysiwyg.element.style.padding="10px "+Math.max(t,n)+"px"}"none"!==e.ir.element.parentElement.style.display&&(n=(e.ir.element.parentElement.clientWidth-e.options.preview.maxWidth)/2,e.ir.element.style.padding="10px "+Math.max(t,n)+"px"),"block"!==e.preview.element.style.display?e.toolbar.element.style.paddingLeft=Math.max(5,parseInt(e[e.currentMode].element.style.paddingLeft||"0",10)+("left"===e.options.outline.position?e.outline.element.offsetWidth:0))+"px":e.toolbar.element.style.paddingLeft=5+("left"===e.options.outline.position?e.outline.element.offsetWidth:0)+"px"},K=function(e){if(e.options.typewriterMode){var t=window.innerHeight;"number"==typeof e.options.height?(t=e.options.height,"number"==typeof e.options.minHeight&&(t=Math.max(t,e.options.minHeight)),t=Math.min(window.innerHeight,t)):t=e.element.clientHeight,e.element.classList.contains("vditor--fullscreen")&&(t=window.innerHeight),e[e.currentMode].element.style.setProperty("--editor-bottom",(t-e.toolbar.element.offsetHeight)/2+"px")}};function G(){window.removeEventListener("resize",e)}var z,F,Z,J=function(t){K(t),G(),window.addEventListener("resize",e=function(){W(t),K(t)});var n=(0,d.pK)()&&localStorage.getItem(t.options.cache.id);return t.options.cache.enable&&n||(t.options.value?n=t.options.value:t.originalInnerHTML?n=t.lute.HTML2Md(t.originalInnerHTML):t.options.cache.enable||(n="")),n||""},X=function(e){clearTimeout(e[e.currentMode].hlToolbarTimeoutId),e[e.currentMode].hlToolbarTimeoutId=window.setTimeout((function(){if("false"!==e[e.currentMode].element.getAttribute("contenteditable")&&(0,N.Gb)(e[e.currentMode].element)){c(e.toolbar.elements,i.g.EDIT_TOOLBARS),p(e.toolbar.elements,i.g.EDIT_TOOLBARS);var t=(0,N.zh)(e),n=t.startContainer;3===t.startContainer.nodeType&&(n=t.startContainer.parentElement),n.classList.contains("vditor-reset")&&(n=n.childNodes[t.startOffset]),("sv"===e.currentMode?(0,y.a1)(n,"data-type","heading"):(0,b.W)(n))&&u(e.toolbar.elements,["headings"]),("sv"===e.currentMode?(0,y.a1)(n,"data-type","blockquote"):(0,y.lG)(n,"BLOCKQUOTE"))&&u(e.toolbar.elements,["quote"]),(0,y.a1)(n,"data-type","strong")&&u(e.toolbar.elements,["bold"]),(0,y.a1)(n,"data-type","em")&&u(e.toolbar.elements,["italic"]),(0,y.a1)(n,"data-type","s")&&u(e.toolbar.elements,["strike"]),(0,y.a1)(n,"data-type","a")&&u(e.toolbar.elements,["link"]);var r=(0,y.lG)(n,"LI");r?(r.classList.contains("vditor-task")?u(e.toolbar.elements,["check"]):"OL"===r.parentElement.tagName?u(e.toolbar.elements,["ordered-list"]):"UL"===r.parentElement.tagName&&u(e.toolbar.elements,["list"]),p(e.toolbar.elements,["outdent","indent"])):m(e.toolbar.elements,["outdent","indent"]),(0,y.a1)(n,"data-type","code-block")&&(m(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),u(e.toolbar.elements,["code"])),(0,y.a1)(n,"data-type","code")&&(m(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),u(e.toolbar.elements,["inline-code"])),(0,y.a1)(n,"data-type","table")&&m(e.toolbar.elements,["headings","list","ordered-list","check","line","quote","code","table"])}}),200)},Y=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),t.enableHint&&e.hint.render(e),clearTimeout(e.wysiwyg.afterRenderTimeoutId),e.wysiwyg.afterRenderTimeoutId=window.setTimeout((function(){if(!e.wysiwyg.composingLock){var n=a(e);"function"==typeof e.options.input&&t.enableInput&&e.options.input(n),e.options.counter.enable&&e.counter.render(e,n),e.options.cache.enable&&(0,d.pK)()&&(localStorage.setItem(e.options.cache.id,n),e.options.cache.after&&e.options.cache.after(n)),e.devtools&&e.devtools.renderEchart(e),t.enableAddUndoStack&&e.undo.addToUndoStack(e)}}),e.options.undoDelay)},Q=function(e){for(var t="",n=e.nextSibling;n;)3===n.nodeType?t+=n.textContent:t+=n.outerHTML,n=n.nextSibling;return t},$=function(e){for(var t="",n=e.previousSibling;n;)t=3===n.nodeType?n.textContent+t:n.outerHTML+t,n=n.previousSibling;return t},ee=function(e,t){Array.from(e.wysiwyg.element.childNodes).find((function(n){if(3===n.nodeType){var r=document.createElement("p");r.setAttribute("data-block","0"),r.textContent=n.textContent;var i=3===t.startContainer.nodeType?t.startOffset:n.textContent.length;return n.parentNode.insertBefore(r,n),n.remove(),t.setStart(r.firstChild,Math.min(r.firstChild.textContent.length,i)),t.collapse(!0),(0,N.Hc)(t),!0}if(!n.getAttribute("data-block"))return"P"===n.tagName?n.remove():("DIV"===n.tagName?(t.insertNode(document.createElement("wbr")),n.outerHTML='

    '+n.innerHTML+"

    "):"BR"===n.tagName?n.outerHTML='

    '+n.outerHTML+"

    ":(t.insertNode(document.createElement("wbr")),n.outerHTML='

    '+n.outerHTML+"

    "),(0,N.ib)(e.wysiwyg.element,t),t=getSelection().getRangeAt(0)),!0}))},te=function(e,t){var n=(0,N.zh)(e),r=(0,y.F9)(n.startContainer);r||(r=n.startContainer.childNodes[n.startOffset]),r||0!==e.wysiwyg.element.children.length||(r=e.wysiwyg.element),r&&!r.classList.contains("vditor-wysiwyg__block")&&(n.insertNode(document.createElement("wbr")),""===r.innerHTML.trim()&&(r.innerHTML="
    "),"BLOCKQUOTE"===r.tagName||r.classList.contains("vditor-reset")?r.innerHTML="<"+t+' data-block="0">'+r.innerHTML.trim()+"":r.outerHTML="<"+t+' data-block="0">'+r.innerHTML.trim()+"",(0,N.ib)(e.wysiwyg.element,n),D(e))},ne=function(e){var t=getSelection().getRangeAt(0),n=(0,y.F9)(t.startContainer);n||(n=t.startContainer.childNodes[t.startOffset]),n&&(t.insertNode(document.createElement("wbr")),n.outerHTML='

    '+n.innerHTML+"

    ",(0,N.ib)(e.wysiwyg.element,t)),e.wysiwyg.popover.style.display="none"},re=function(e,t,n){void 0===n&&(n=!0);var r=e.previousElementSibling,i=r.ownerDocument.createRange();"CODE"===r.tagName?(r.style.display="inline-block",n?i.setStart(r.firstChild,1):i.selectNodeContents(r)):(r.style.display="block",r.firstChild.firstChild||r.firstChild.appendChild(document.createTextNode("")),i.selectNodeContents(r.firstChild)),n?i.collapse(!0):i.collapse(!1),(0,N.Hc)(i),e.firstElementChild.classList.contains("language-mindmap")||Me(t)},ie=function(e,t){if(R("⇧⌘X",t)){var n=e.wysiwyg.popover.querySelector('[data-type="remove"]');if(n)return n.click(),t.preventDefault(),!0}},oe=function(e){clearTimeout(e.wysiwyg.hlToolbarTimeoutId),e.wysiwyg.hlToolbarTimeoutId=window.setTimeout((function(){if("false"!==e.wysiwyg.element.getAttribute("contenteditable")&&(0,N.Gb)(e.wysiwyg.element)){c(e.toolbar.elements,i.g.EDIT_TOOLBARS),p(e.toolbar.elements,i.g.EDIT_TOOLBARS);var t=getSelection().getRangeAt(0),n=t.startContainer;n=3===t.startContainer.nodeType?t.startContainer.parentElement:n.childNodes[t.startOffset>=n.childNodes.length?n.childNodes.length-1:t.startOffset];var r=(0,y.a1)(n,"data-type","footnotes-block");if(r)return e.wysiwyg.popover.innerHTML="",ce(r,e),void ae(e,r);var o=(0,y.lG)(n,"LI");o?(o.classList.contains("vditor-task")?u(e.toolbar.elements,["check"]):"OL"===o.parentElement.tagName?u(e.toolbar.elements,["ordered-list"]):"UL"===o.parentElement.tagName&&u(e.toolbar.elements,["list"]),p(e.toolbar.elements,["outdent","indent"])):m(e.toolbar.elements,["outdent","indent"]),(0,y.lG)(n,"BLOCKQUOTE")&&u(e.toolbar.elements,["quote"]),((0,y.lG)(n,"B")||(0,y.lG)(n,"STRONG"))&&u(e.toolbar.elements,["bold"]),((0,y.lG)(n,"I")||(0,y.lG)(n,"EM"))&&u(e.toolbar.elements,["italic"]),((0,y.lG)(n,"STRIKE")||(0,y.lG)(n,"S"))&&u(e.toolbar.elements,["strike"]),e.wysiwyg.element.querySelectorAll(".vditor-comment--focus").forEach((function(e){e.classList.remove("vditor-comment--focus")}));var a=(0,y.fb)(n,"vditor-comment");if(a){var l=a.getAttribute("data-cmtids").split(" ");if(l.length>1&&a.nextSibling.isSameNode(a.nextElementSibling)){var s=a.nextElementSibling.getAttribute("data-cmtids").split(" ");l.find((function(e){if(s.includes(e))return l=[e],!0}))}e.wysiwyg.element.querySelectorAll(".vditor-comment").forEach((function(e){e.getAttribute("data-cmtids").indexOf(l[0])>-1&&e.classList.add("vditor-comment--focus")}))}var f=(0,y.lG)(n,"A");f&&u(e.toolbar.elements,["link"]);var h=(0,y.lG)(n,"TABLE"),v=(0,b.W)(n);(0,y.lG)(n,"CODE")?(0,y.lG)(n,"PRE")?(m(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","inline-code","upload","link","table","record"]),u(e.toolbar.elements,["code"])):(m(e.toolbar.elements,["headings","bold","italic","strike","line","quote","list","ordered-list","check","code","upload","link","table","record"]),u(e.toolbar.elements,["inline-code"])):v?(m(e.toolbar.elements,["bold"]),u(e.toolbar.elements,["headings"])):h&&m(e.toolbar.elements,["table"]);var g=(0,y.fb)(n,"vditor-toc");if(g)return e.wysiwyg.popover.innerHTML="",ce(g,e),void ae(e,g);var w=(0,b.S)(n,"BLOCKQUOTE");if(w&&(e.wysiwyg.popover.innerHTML="",se(t,w,e),de(t,w,e),ce(w,e),ae(e,w)),o&&(e.wysiwyg.popover.innerHTML="",se(t,o,e),de(t,o,e),ce(o,e),ae(e,o)),h){e.options.lang,e.options,e.wysiwyg.popover.innerHTML="";var E=function(){var e=h.rows.length,t=h.rows[0].cells.length,n=parseInt(R.value,10)||e,r=parseInt(B.value,10)||t;if(n!==e||t!==r){if(t!==r)for(var i=r-t,o=0;o0)for(var a=0;a "):h.rows[o].lastElementChild.insertAdjacentHTML("afterend"," ");else for(var l=t-1;l>=r;l--)h.rows[o].cells[l].remove();if(e!==n){var s=n-e;if(s>0){for(var d="",c=0;c ";for(var u=0;u")}else for(c=e-1;c>=n;c--)h.rows[c].remove(),1===h.rows.length&&h.querySelector("tbody").remove()}}},k=function(n){ot(h,n),"right"===n?(T.classList.remove("vditor-icon--current"),M.classList.remove("vditor-icon--current"),_.classList.add("vditor-icon--current")):"center"===n?(T.classList.remove("vditor-icon--current"),_.classList.remove("vditor-icon--current"),M.classList.add("vditor-icon--current")):(M.classList.remove("vditor-icon--current"),_.classList.remove("vditor-icon--current"),T.classList.add("vditor-icon--current")),(0,N.Hc)(t),Y(e)},S=(0,y.lG)(n,"TD"),C=(0,y.lG)(n,"TH"),L="left";S?L=S.getAttribute("align")||"left":C&&(L=C.getAttribute("align")||"center");var T=document.createElement("button");T.setAttribute("type","button"),T.setAttribute("aria-label",window.VditorI18n.alignLeft+"<"+(0,d.ns)("⇧⌘L")+">"),T.setAttribute("data-type","left"),T.innerHTML='',T.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+("left"===L?" vditor-icon--current":""),T.onclick=function(){k("left")};var M=document.createElement("button");M.setAttribute("type","button"),M.setAttribute("aria-label",window.VditorI18n.alignCenter+"<"+(0,d.ns)("⇧⌘C")+">"),M.setAttribute("data-type","center"),M.innerHTML='',M.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+("center"===L?" vditor-icon--current":""),M.onclick=function(){k("center")};var _=document.createElement("button");_.setAttribute("type","button"),_.setAttribute("aria-label",window.VditorI18n.alignRight+"<"+(0,d.ns)("⇧⌘R")+">"),_.setAttribute("data-type","right"),_.innerHTML='',_.className="vditor-icon vditor-tooltipped vditor-tooltipped__n"+("right"===L?" vditor-icon--current":""),_.onclick=function(){k("right")};var A=document.createElement("button");A.setAttribute("type","button"),A.setAttribute("aria-label",window.VditorI18n.insertRowBelow+"<"+(0,d.ns)("⌘=")+">"),A.setAttribute("data-type","insertRow"),A.innerHTML='',A.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",A.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,r=(0,y.lG)(n,"TD")||(0,y.lG)(n,"TH");r&&pt(e,t,r)};var x=document.createElement("button");x.setAttribute("type","button"),x.setAttribute("aria-label",window.VditorI18n.insertRowAbove+"<"+(0,d.ns)("⇧⌘F")+">"),x.setAttribute("data-type","insertRow"),x.innerHTML='',x.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",x.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,r=(0,y.lG)(n,"TD")||(0,y.lG)(n,"TH");r&&mt(e,t,r)};var D=document.createElement("button");D.setAttribute("type","button"),D.setAttribute("aria-label",window.VditorI18n.insertColumnRight+"<"+(0,d.ns)("⇧⌘=")+">"),D.setAttribute("data-type","insertColumn"),D.innerHTML='',D.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",D.onclick=function(){var t=getSelection().getRangeAt(0).startContainer,n=(0,y.lG)(t,"TD")||(0,y.lG)(t,"TH");n&&ft(e,h,n)};var O=document.createElement("button");O.setAttribute("type","button"),O.setAttribute("aria-label",window.VditorI18n.insertColumnLeft+"<"+(0,d.ns)("⇧⌘G")+">"),O.setAttribute("data-type","insertColumn"),O.innerHTML='',O.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",O.onclick=function(){var t=getSelection().getRangeAt(0).startContainer,n=(0,y.lG)(t,"TD")||(0,y.lG)(t,"TH");n&&ft(e,h,n,"beforebegin")};var I=document.createElement("button");I.setAttribute("type","button"),I.setAttribute("aria-label",window.VditorI18n["delete-row"]+"<"+(0,d.ns)("⌘-")+">"),I.setAttribute("data-type","deleteRow"),I.innerHTML='',I.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",I.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,r=(0,y.lG)(n,"TD")||(0,y.lG)(n,"TH");r&&ht(e,t,r)};var j=document.createElement("button");j.setAttribute("type","button"),j.setAttribute("aria-label",window.VditorI18n["delete-column"]+"<"+(0,d.ns)("⇧⌘-")+">"),j.setAttribute("data-type","deleteColumn"),j.innerHTML='',j.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",j.onclick=function(){var n=getSelection().getRangeAt(0).startContainer,r=(0,y.lG)(n,"TD")||(0,y.lG)(n,"TH");r&&vt(e,t,h,r)},(Z=document.createElement("span")).setAttribute("aria-label",window.VditorI18n.row),Z.className="vditor-tooltipped vditor-tooltipped__n";var R=document.createElement("input");Z.appendChild(R),R.type="number",R.min="1",R.className="vditor-input",R.style.width="42px",R.style.textAlign="center",R.setAttribute("placeholder",window.VditorI18n.row),R.value=h.rows.length.toString(),R.oninput=function(){E()},R.onkeydown=function(t){if(!t.isComposing)return"Tab"===t.key?(B.focus(),B.select(),void t.preventDefault()):void ie(e,t)};var P=document.createElement("span");P.setAttribute("aria-label",window.VditorI18n.column),P.className="vditor-tooltipped vditor-tooltipped__n";var B=document.createElement("input");P.appendChild(B),B.type="number",B.min="1",B.className="vditor-input",B.style.width="42px",B.style.textAlign="center",B.setAttribute("placeholder",window.VditorI18n.column),B.value=h.rows[0].cells.length.toString(),B.oninput=function(){E()},B.onkeydown=function(t){if(!t.isComposing)return"Tab"===t.key?(R.focus(),R.select(),void t.preventDefault()):void ie(e,t)},se(t,h,e),de(t,h,e),ce(h,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",T),e.wysiwyg.popover.insertAdjacentElement("beforeend",M),e.wysiwyg.popover.insertAdjacentElement("beforeend",_),e.wysiwyg.popover.insertAdjacentElement("beforeend",x),e.wysiwyg.popover.insertAdjacentElement("beforeend",A),e.wysiwyg.popover.insertAdjacentElement("beforeend",O),e.wysiwyg.popover.insertAdjacentElement("beforeend",D),e.wysiwyg.popover.insertAdjacentElement("beforeend",I),e.wysiwyg.popover.insertAdjacentElement("beforeend",j),e.wysiwyg.popover.insertAdjacentElement("beforeend",Z),e.wysiwyg.popover.insertAdjacentHTML("beforeend"," x "),e.wysiwyg.popover.insertAdjacentElement("beforeend",P),ae(e,h)}var q=(0,y.a1)(n,"data-type","link-ref");q&&le(e,q);var V=(0,y.a1)(n,"data-type","footnotes-ref");if(V){e.options.lang,e.options,e.wysiwyg.popover.innerHTML="",(Z=document.createElement("span")).setAttribute("aria-label",window.VditorI18n.footnoteRef+"<"+(0,d.ns)("⌥Enter")+">"),Z.className="vditor-tooltipped vditor-tooltipped__n";var U=document.createElement("input");Z.appendChild(U),U.className="vditor-input",U.setAttribute("placeholder",window.VditorI18n.footnoteRef+"<"+(0,d.ns)("⌥Enter")+">"),U.style.width="120px",U.value=V.getAttribute("data-footnotes-label"),U.oninput=function(){""!==U.value.trim()&&V.setAttribute("data-footnotes-label",U.value)},U.onkeydown=function(n){if(!n.isComposing)return(0,d.yl)(n)||n.shiftKey||!n.altKey||"Enter"!==n.key?void ie(e,n):(t.selectNodeContents(V),t.collapse(!1),(0,N.Hc)(t),void n.preventDefault())},ce(V,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",Z),ae(e,V)}var W=(0,y.fb)(n,"vditor-wysiwyg__block"),K=!!W&&W.getAttribute("data-type").indexOf("block")>-1;if(e.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview").forEach((function(e){(!W||W&&K&&!W.contains(e))&&(e.previousElementSibling.style.display="none")})),W&&K){if(e.wysiwyg.popover.innerHTML="",se(t,W,e),de(t,W,e),ce(W,e),"code-block"===W.getAttribute("data-type")){var G=document.createElement("span");G.setAttribute("aria-label",window.VditorI18n.language+"<"+(0,d.ns)("⌥Enter")+">"),G.className="vditor-tooltipped vditor-tooltipped__n";var z=document.createElement("input");G.appendChild(z);var F=W.firstElementChild.firstElementChild;z.className="vditor-input",z.setAttribute("placeholder",window.VditorI18n.language+"<"+(0,d.ns)("⌥Enter")+">"),z.value=F.className.indexOf("language-")>-1?F.className.split("-")[1].split(" ")[0]:"",z.oninput=function(n){""!==z.value.trim()?F.className="language-"+z.value:(F.className="",e.hint.recentLanguage=""),W.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(W.lastElementChild.innerHTML=W.firstElementChild.innerHTML,H(W.lastElementChild,e)),Y(e),1===n.detail&&(t.setStart(F.firstChild,0),t.collapse(!0),(0,N.Hc)(t))},z.onkeydown=function(n){if(!n.isComposing&&!ie(e,n)){if("Escape"===n.key&&"block"===e.hint.element.style.display)return e.hint.element.style.display="none",void n.preventDefault();e.hint.select(n,e),(0,d.yl)(n)||n.shiftKey||"Enter"!==n.key||(t.setStart(F.firstChild,0),t.collapse(!0),(0,N.Hc)(t),n.preventDefault(),n.stopPropagation())}},z.onkeyup=function(t){if(!t.isComposing&&"Enter"!==t.key&&"ArrowUp"!==t.key&&"Escape"!==t.key&&"ArrowDown"!==t.key){var n=[],r=z.value.substring(0,z.selectionStart);i.g.CODE_LANGUAGES.forEach((function(e){e.indexOf(r.toLowerCase())>-1&&n.push({html:e,value:e})})),e.hint.genHTML(n,r,e),t.preventDefault()}},e.wysiwyg.popover.insertAdjacentElement("beforeend",G)}ae(e,W)}else W=void 0;if(v){var Z;e.wysiwyg.popover.innerHTML="",(Z=document.createElement("span")).setAttribute("aria-label","ID<"+(0,d.ns)("⌥Enter")+">"),Z.className="vditor-tooltipped vditor-tooltipped__n";var J=document.createElement("input");Z.appendChild(J),J.className="vditor-input",J.setAttribute("placeholder","ID<"+(0,d.ns)("⌥Enter")+">"),J.style.width="120px",J.value=v.getAttribute("data-id")||"",J.oninput=function(){v.setAttribute("data-id",J.value)},J.onkeydown=function(n){if(!n.isComposing)return(0,d.yl)(n)||n.shiftKey||!n.altKey||"Enter"!==n.key?void ie(e,n):(t.selectNodeContents(v),t.collapse(!1),(0,N.Hc)(t),void n.preventDefault())},se(t,v,e),de(t,v,e),ce(v,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",Z),ae(e,v)}if(f&&pe(e,f),!(w||o||h||W||f||q||V||v||g)){var X=(0,y.a1)(n,"data-block","0");X&&X.parentElement.isEqualNode(e.wysiwyg.element)?(e.wysiwyg.popover.innerHTML="",se(t,X,e),de(t,X,e),ce(X,e),ae(e,X)):e.wysiwyg.popover.style.display="none"}e.wysiwyg.element.querySelectorAll('span[data-type="backslash"] > span').forEach((function(e){e.style.display="none"}));var Q=(0,y.a1)(t.startContainer,"data-type","backslash");Q&&(Q.querySelector("span").style.display="inline")}}),200)},ae=function(e,t){var n=t,r=(0,y.lG)(t,"TABLE");r&&(n=r),e.wysiwyg.popover.style.left="0",e.wysiwyg.popover.style.display="block",e.wysiwyg.popover.style.top=Math.max(-8,n.offsetTop-21-e.wysiwyg.element.scrollTop)+"px",e.wysiwyg.popover.style.left=Math.min(n.offsetLeft,e.wysiwyg.element.clientWidth-e.wysiwyg.popover.clientWidth)+"px",e.wysiwyg.popover.setAttribute("data-top",(n.offsetTop-21).toString())},le=function(e,t){e.wysiwyg.popover.innerHTML="";var n=function(){""!==i.value.trim()&&("IMG"===t.tagName?t.setAttribute("alt",i.value):t.textContent=i.value),""!==a.value.trim()&&t.setAttribute("data-link-label",a.value)},r=document.createElement("span");r.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),r.className="vditor-tooltipped vditor-tooltipped__n";var i=document.createElement("input");r.appendChild(i),i.className="vditor-input",i.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),i.style.width="120px",i.value=t.getAttribute("alt")||t.textContent,i.oninput=function(){n()},i.onkeydown=function(n){ie(e,n)||ue(e,t,n,a)};var o=document.createElement("span");o.setAttribute("aria-label",window.VditorI18n.linkRef),o.className="vditor-tooltipped vditor-tooltipped__n";var a=document.createElement("input");o.appendChild(a),a.className="vditor-input",a.setAttribute("placeholder",window.VditorI18n.linkRef),a.value=t.getAttribute("data-link-label"),a.oninput=function(){n()},a.onkeydown=function(n){ie(e,n)||ue(e,t,n,i)},ce(t,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",r),e.wysiwyg.popover.insertAdjacentElement("beforeend",o),ae(e,t)},se=function(e,t,n){var r=t.previousElementSibling;if(r&&(t.parentElement.isEqualNode(n.wysiwyg.element)||"LI"===t.tagName)){var i=document.createElement("button");i.setAttribute("type","button"),i.setAttribute("data-type","up"),i.setAttribute("aria-label",window.VditorI18n.up+"<"+(0,d.ns)("⇧⌘U")+">"),i.innerHTML='',i.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",i.onclick=function(){e.insertNode(document.createElement("wbr")),r.insertAdjacentElement("beforebegin",t),(0,N.ib)(n.wysiwyg.element,e),Y(n),oe(n),Me(n)},n.wysiwyg.popover.insertAdjacentElement("beforeend",i)}},de=function(e,t,n){var r=t.nextElementSibling;if(r&&(t.parentElement.isEqualNode(n.wysiwyg.element)||"LI"===t.tagName)){var i=document.createElement("button");i.setAttribute("type","button"),i.setAttribute("data-type","down"),i.setAttribute("aria-label",window.VditorI18n.down+"<"+(0,d.ns)("⇧⌘D")+">"),i.innerHTML='',i.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",i.onclick=function(){e.insertNode(document.createElement("wbr")),r.insertAdjacentElement("afterend",t),(0,N.ib)(n.wysiwyg.element,e),Y(n),oe(n),Me(n)},n.wysiwyg.popover.insertAdjacentElement("beforeend",i)}},ce=function(e,t){var n=document.createElement("button");n.setAttribute("type","button"),n.setAttribute("data-type","remove"),n.setAttribute("aria-label",window.VditorI18n.remove+"<"+(0,d.ns)("⇧⌘X")+">"),n.innerHTML='',n.className="vditor-icon vditor-tooltipped vditor-tooltipped__n",n.onclick=function(){var n=(0,N.zh)(t);n.setStartAfter(e),(0,N.Hc)(n),e.remove(),Y(t),oe(t),["H1","H2","H3","H4","H5","H6"].includes(e.tagName)&&D(t)},t.wysiwyg.popover.insertAdjacentElement("beforeend",n)},ue=function(e,t,n,r){if(!n.isComposing){if("Tab"===n.key)return r.focus(),r.select(),void n.preventDefault();if(!(0,d.yl)(n)&&!n.shiftKey&&n.altKey&&"Enter"===n.key){var o=(0,N.zh)(e);t.insertAdjacentHTML("afterend",i.g.ZWSP),o.setStartAfter(t.nextSibling),o.collapse(!0),(0,N.Hc)(o),n.preventDefault()}}},pe=function(e,t){e.wysiwyg.popover.innerHTML="";var n=function(){""!==i.value.trim()&&(t.innerHTML=i.value),t.setAttribute("href",a.value),t.setAttribute("title",s.value),Y(e)};t.querySelectorAll("[data-marker]").forEach((function(e){e.removeAttribute("data-marker")}));var r=document.createElement("span");r.setAttribute("aria-label",window.VditorI18n.textIsNotEmpty),r.className="vditor-tooltipped vditor-tooltipped__n";var i=document.createElement("input");r.appendChild(i),i.className="vditor-input",i.setAttribute("placeholder",window.VditorI18n.textIsNotEmpty),i.style.width="120px",i.value=t.innerHTML||"",i.oninput=function(){n()},i.onkeydown=function(n){ie(e,n)||ue(e,t,n,a)};var o=document.createElement("span");o.setAttribute("aria-label",window.VditorI18n.link),o.className="vditor-tooltipped vditor-tooltipped__n";var a=document.createElement("input");o.appendChild(a),a.className="vditor-input",a.setAttribute("placeholder",window.VditorI18n.link),a.value=t.getAttribute("href")||"",a.oninput=function(){n()},a.onkeydown=function(n){ie(e,n)||ue(e,t,n,s)};var l=document.createElement("span");l.setAttribute("aria-label",window.VditorI18n.tooltipText),l.className="vditor-tooltipped vditor-tooltipped__n";var s=document.createElement("input");l.appendChild(s),s.className="vditor-input",s.setAttribute("placeholder",window.VditorI18n.tooltipText),s.style.width="60px",s.value=t.getAttribute("title")||"",s.oninput=function(){n()},s.onkeydown=function(n){ie(e,n)||ue(e,t,n,i)},ce(t,e),e.wysiwyg.popover.insertAdjacentElement("beforeend",r),e.wysiwyg.popover.insertAdjacentElement("beforeend",o),e.wysiwyg.popover.insertAdjacentElement("beforeend",l),ae(e,t)},me=function(e){"wysiwyg"===e.currentMode?oe(e):"ir"===e.currentMode&&X(e)},fe=function(e,t,n){void 0===n&&(n={enableAddUndoStack:!0,enableHint:!1,enableInput:!0});var r=e.wysiwyg.element;r.innerHTML=e.lute.Md2VditorDOM(t),r.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach((function(t){H(t,e),t.previousElementSibling.setAttribute("style","display:none")})),Y(e,n)},he=function(e,t,n){for(var r=e.startContainer.parentElement,o=!1,a="",l="",s=(v=void 0,g=void 0,y=void 0,b=void 0,w=void 0,E=void 0,v=$((h=e).startContainer),g=Q(h.startContainer),y=h.startContainer.textContent,b=h.startOffset,w="",E="",(""!==y.substr(0,b)&&y.substr(0,b)!==i.g.ZWSP||v)&&(w=""+v+y.substr(0,b)),(""!==y.substr(b)&&y.substr(b)!==i.g.ZWSP||g)&&(E=""+y.substr(b)+g),{afterHTML:E,beforeHTML:w}),d=s.beforeHTML,c=s.afterHTML;r&&!o;){var u=r.tagName;if("STRIKE"===u&&(u="S"),"I"===u&&(u="EM"),"B"===u&&(u="STRONG"),"S"===u||"STRONG"===u||"EM"===u){var p="",m="",f="";"0"!==r.parentElement.getAttribute("data-block")&&(m=$(r),f=Q(r)),(d||m)&&(d=p=m+"<"+u+">"+d+""),("bold"===n&&"STRONG"===u||"italic"===n&&"EM"===u||"strikeThrough"===n&&"S"===u)&&(p+=""+a+i.g.ZWSP+""+l,o=!0),(c||f)&&(p+=c="<"+u+">"+c+""+f),"0"!==r.parentElement.getAttribute("data-block")?(r=r.parentElement).innerHTML=p:(r.outerHTML=p,r=r.parentElement),a="<"+u+">"+a,l=""+l}else o=!0}var h,v,g,y,b,w,E;(0,N.ib)(t.wysiwyg.element,e)},ve=function(e,t){var n,r=this;this.element=document.createElement("div"),t.className&&(n=this.element.classList).add.apply(n,t.className.split(" "));var o=t.hotkey?" <"+(0,d.ns)(t.hotkey)+">":"";2===t.level&&(o=t.hotkey?" <"+(0,d.ns)(t.hotkey)+">":"");var a=t.tip?t.tip+o:""+window.VditorI18n[t.name]+o,l="upload"===t.name?"div":"button";if(2===t.level)this.element.innerHTML="<"+l+' data-type="'+t.name+'">'+a+"";else{this.element.classList.add("vditor-toolbar__item");var s=document.createElement(l);s.setAttribute("data-type",t.name),s.className="vditor-tooltipped vditor-tooltipped__"+t.tipPosition,s.setAttribute("aria-label",a),s.innerHTML=t.icon,this.element.appendChild(s)}t.prefix&&this.element.children[0].addEventListener((0,d.Le)(),(function(n){n.preventDefault(),r.element.firstElementChild.classList.contains(i.g.CLASS_MENU_DISABLED)||("wysiwyg"===e.currentMode?function(e,t,n){if(!(e.wysiwyg.composingLock&&n instanceof CustomEvent)){var r=!0,o=!0;e.wysiwyg.element.querySelector("wbr")&&e.wysiwyg.element.querySelector("wbr").remove();var a=(0,N.zh)(e),l=t.getAttribute("data-type");if(t.classList.contains("vditor-menu--current"))if("strike"===l&&(l="strikeThrough"),"quote"===l){var s=(0,y.lG)(a.startContainer,"BLOCKQUOTE");s||(s=a.startContainer.childNodes[a.startOffset]),s&&(r=!1,t.classList.remove("vditor-menu--current"),a.insertNode(document.createElement("wbr")),s.outerHTML=""===s.innerHTML.trim()?'

    '+s.innerHTML+"

    ":s.innerHTML,(0,N.ib)(e.wysiwyg.element,a))}else if("inline-code"===l){var d=(0,y.lG)(a.startContainer,"CODE");d||(d=a.startContainer.childNodes[a.startOffset]),d&&(d.outerHTML=d.innerHTML.replace(i.g.ZWSP,"")+"",(0,N.ib)(e.wysiwyg.element,a))}else"link"===l?a.collapsed?(a.selectNode(a.startContainer.parentElement),document.execCommand("unlink",!1,"")):document.execCommand("unlink",!1,""):"check"===l||"list"===l||"ordered-list"===l?(nt(e,a,l),(0,N.ib)(e.wysiwyg.element,a),r=!1,t.classList.remove("vditor-menu--current")):(r=!1,t.classList.remove("vditor-menu--current"),""===a.toString()?he(a,e,l):document.execCommand(l,!1,""));else{0===e.wysiwyg.element.childNodes.length&&(e.wysiwyg.element.innerHTML='

    ',(0,N.ib)(e.wysiwyg.element,a));var u=(0,y.F9)(a.startContainer);if("quote"===l){if(u||(u=a.startContainer.childNodes[a.startOffset]),u){r=!1,t.classList.add("vditor-menu--current"),a.insertNode(document.createElement("wbr"));var p=(0,y.lG)(a.startContainer,"LI");p&&u.contains(p)?p.innerHTML='
    '+p.innerHTML+"
    ":u.outerHTML='
    '+u.outerHTML+"
    ",(0,N.ib)(e.wysiwyg.element,a)}}else if("check"===l||"list"===l||"ordered-list"===l)nt(e,a,l,!1),(0,N.ib)(e.wysiwyg.element,a),r=!1,c(e.toolbar.elements,["check","list","ordered-list"]),t.classList.add("vditor-menu--current");else if("inline-code"===l){if(""===a.toString())(m=document.createElement("code")).textContent=i.g.ZWSP,a.insertNode(m),a.setStart(m.firstChild,1),a.collapse(!0),(0,N.Hc)(a);else if(3===a.startContainer.nodeType){var m=document.createElement("code");a.surroundContents(m),a.insertNode(m),(0,N.Hc)(a)}t.classList.add("vditor-menu--current")}else if("code"===l)(m=document.createElement("div")).className="vditor-wysiwyg__block",m.setAttribute("data-type","code-block"),m.setAttribute("data-block","0"),m.setAttribute("data-marker","```"),""===a.toString()?m.innerHTML="
    \n
    ":(m.innerHTML="
    "+a.toString()+"
    ",a.deleteContents()),a.insertNode(m),u&&(u.outerHTML=e.lute.SpinVditorDOM(u.outerHTML)),(0,N.ib)(e.wysiwyg.element,a),e.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach((function(t){H(t,e)})),t.classList.add("vditor-menu--disabled");else if("link"===l){if(""===a.toString()){var f=document.createElement("a");f.innerText=i.g.ZWSP,a.insertNode(f),a.setStart(f.firstChild,1),a.collapse(!0),pe(e,f);var h=e.wysiwyg.popover.querySelector("input");h.value="",h.focus(),o=!1}else{(m=document.createElement("a")).setAttribute("href",""),m.innerHTML=a.toString(),a.surroundContents(m),a.insertNode(m),(0,N.Hc)(a),pe(e,m);var v=e.wysiwyg.popover.querySelectorAll("input");v[0].value=m.innerText,v[1].focus()}r=!1,t.classList.add("vditor-menu--current")}else if("table"===l){var g='
    col1col2col3
    ';if(""===a.toString().trim())u&&""===u.innerHTML.trim().replace(i.g.ZWSP,"")?u.outerHTML=g:document.execCommand("insertHTML",!1,g),a.selectNode(e.wysiwyg.element.querySelector("wbr").previousSibling),e.wysiwyg.element.querySelector("wbr").remove(),(0,N.Hc)(a);else{g='';var b=a.toString().split("\n"),w=b[0].split(",").length>b[0].split("\t").length?",":"\t";b.forEach((function(e,t){0===t?(e.split(w).forEach((function(e,t){g+=0===t?"":""})),g+=""):(g+=1===t?"":"",e.split(w).forEach((function(e){g+=""})),g+="")})),g+="
    "+e+""+e+"
    "+e+"
    ",document.execCommand("insertHTML",!1,g),(0,N.ib)(e.wysiwyg.element,a)}r=!1,t.classList.add("vditor-menu--disabled")}else if("line"===l){if(u){var E='

    \n

    ';""===u.innerHTML.trim()?u.outerHTML=E:u.insertAdjacentHTML("afterend",E),(0,N.ib)(e.wysiwyg.element,a)}}else if(r=!1,t.classList.add("vditor-menu--current"),"strike"===l&&(l="strikeThrough"),""!==a.toString()||"bold"!==l&&"italic"!==l&&"strikeThrough"!==l)document.execCommand(l,!1,"");else{var k="strong";"italic"===l?k="em":"strikeThrough"===l&&(k="s"),(m=document.createElement(k)).textContent=i.g.ZWSP,a.insertNode(m),m.previousSibling&&m.previousSibling.textContent===i.g.ZWSP&&(m.previousSibling.textContent=""),a.setStart(m.firstChild,1),a.collapse(!0),(0,N.Hc)(a)}}r&&oe(e),o&&Y(e)}}(e,r.element.children[0],n):"ir"===e.currentMode?At(e,r.element.children[0],t.prefix||"",t.suffix||""):je(e,r.element.children[0],t.prefix||"",t.suffix||""))}))},ge=(z=function(e,t){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),ye=function(e,t,n){var r;if("string"!=typeof n?(v(e,["subToolbar","hint"]),n.preventDefault(),r=a(e)):r=n,e.currentMode!==t||"string"==typeof n){if(e.devtools&&e.devtools.renderEchart(e),"both"===e.options.preview.mode&&"sv"===t?e.preview.element.style.display="block":e.preview.element.style.display="none",p(e.toolbar.elements,i.g.EDIT_TOOLBARS),c(e.toolbar.elements,i.g.EDIT_TOOLBARS),m(e.toolbar.elements,["outdent","indent"]),"ir"===t)f(e.toolbar.elements,["both"]),h(e.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),e.sv.element.style.display="none",e.wysiwyg.element.parentElement.style.display="none",e.ir.element.parentElement.style.display="block",e.lute.SetVditorIR(!0),e.lute.SetVditorWYSIWYG(!1),e.lute.SetVditorSV(!1),e.currentMode="ir",e.ir.element.innerHTML=e.lute.Md2VditorIRDOM(r),Tt(e,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),W(e),e.ir.element.querySelectorAll(".vditor-ir__preview[data-render='2']").forEach((function(t){H(t,e)})),e.ir.element.querySelectorAll(".vditor-toc").forEach((function(t){(0,M.H)(t,{cdn:e.options.cdn,math:e.options.preview.math})}));else if("wysiwyg"===t)f(e.toolbar.elements,["both"]),h(e.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),e.sv.element.style.display="none",e.wysiwyg.element.parentElement.style.display="block",e.ir.element.parentElement.style.display="none",e.lute.SetVditorIR(!1),e.lute.SetVditorWYSIWYG(!0),e.lute.SetVditorSV(!1),e.currentMode="wysiwyg",W(e),fe(e,r,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),e.wysiwyg.element.querySelectorAll(".vditor-toc").forEach((function(t){(0,M.H)(t,{cdn:e.options.cdn,math:e.options.preview.math})})),e.wysiwyg.popover.style.display="none";else if("sv"===t){h(e.toolbar.elements,["both"]),f(e.toolbar.elements,["outdent","indent","outline","insert-before","insert-after"]),e.wysiwyg.element.parentElement.style.display="none",e.ir.element.parentElement.style.display="none",("both"===e.options.preview.mode||"editor"===e.options.preview.mode)&&(e.sv.element.style.display="block"),e.lute.SetVditorIR(!1),e.lute.SetVditorWYSIWYG(!1),e.lute.SetVditorSV(!0),e.currentMode="sv";var o=Ne(r,e);"
    "===o&&(o=""),e.sv.element.innerHTML=o,Oe(e,{enableAddUndoStack:!0,enableHint:!1,enableInput:!1}),W(e)}e.undo.resetIcon(e),"string"!=typeof n&&(e[e.currentMode].element.focus(),me(e)),D(e),K(e),e.toolbar.elements["edit-mode"]&&(e.toolbar.elements["edit-mode"].querySelectorAll("button").forEach((function(e){e.classList.remove("vditor-menu--current")})),e.toolbar.elements["edit-mode"].querySelector('button[data-mode="'+e.currentMode+'"]').classList.add("vditor-menu--current")),e.outline.toggle(e,"sv"!==e.currentMode&&e.options.outline.enable)}},be=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=document.createElement("div");return i.className="vditor-hint"+(2===n.level?"":" vditor-panel--arrow"),i.innerHTML='\n\n",r.element.appendChild(i),r._bindEvent(t,i,n),r}return ge(t,e),t.prototype._bindEvent=function(e,t,n){var r=this.element.children[0];g(e,t,r,n.level),t.children.item(0).addEventListener((0,d.Le)(),(function(t){ye(e,"wysiwyg",t),t.preventDefault(),t.stopPropagation()})),t.children.item(1).addEventListener((0,d.Le)(),(function(t){ye(e,"ir",t),t.preventDefault(),t.stopPropagation()})),t.children.item(2).addEventListener((0,d.Le)(),(function(t){ye(e,"sv",t),t.preventDefault(),t.stopPropagation()}))},t}(ve),we=function(e,t){return(0,N.Gb)(e,t)?getSelection().toString():""},Ee=function(e,t){t.addEventListener("focus",(function(){e.options.focus&&e.options.focus(a(e)),v(e,["subToolbar","hint"])}))},ke=function(e,t){t.addEventListener("dblclick",(function(t){"IMG"===t.target.tagName&&(0,B.E)(t.target,e.options.lang,e.options.theme)}))},Se=function(e,t){t.addEventListener("blur",(function(t){if("ir"===e.currentMode){var n=e.ir.element.querySelector(".vditor-ir__node--expand");n&&n.classList.remove("vditor-ir__node--expand")}else"wysiwyg"!==e.currentMode||e.wysiwyg.selectPopover.contains(t.relatedTarget)||e.wysiwyg.hideComment();e[e.currentMode].range=(0,N.zh)(e),e.options.blur&&e.options.blur(a(e))}))},Ce=function(e,t){t.addEventListener("dragstart",(function(e){e.dataTransfer.setData(i.g.DROP_EDITOR,i.g.DROP_EDITOR)})),t.addEventListener("drop",(function(t){t.dataTransfer.getData(i.g.DROP_EDITOR)?st(e):(t.dataTransfer.types.includes("Files")||t.dataTransfer.types.includes("text/html"))&&Ct(e,t,{pasteCode:function(e){document.execCommand("insertHTML",!1,e)}})}))},Le=function(e,t,n){t.addEventListener("copy",(function(t){return n(t,e)}))},Te=function(e,t,n){t.addEventListener("cut",(function(t){n(t,e),e.options.comment.enable&&"wysiwyg"===e.currentMode&&e.wysiwyg.getComments(e),document.execCommand("delete")}))},Me=function(e){if("wysiwyg"===e.currentMode&&e.options.comment.enable&&e.options.comment.adjustTop(e.wysiwyg.getComments(e,!0)),e.options.typewriterMode){var t=e[e.currentMode].element,n=(0,N.Ny)(t).top;"auto"!==e.options.height||e.element.classList.contains("vditor--fullscreen")||window.scrollTo(window.scrollX,n+e.element.offsetTop+e.toolbar.element.offsetHeight-window.innerHeight/2+10),("auto"!==e.options.height||e.element.classList.contains("vditor--fullscreen"))&&(t.scrollTop=n+t.scrollTop-t.clientHeight/2+10)}},_e=function(e,t){t.addEventListener("keydown",(function(t){if(!(e.options.hint.extend.length>1||e.toolbar.elements.emoji)||!e.hint.select(t,e)){if(e.options.comment.enable&&"wysiwyg"===e.currentMode&&("Backspace"===t.key||R("⌘X",t))&&e.wysiwyg.getComments(e),"sv"===e.currentMode){if(function(e,t){var n,r,i,o,a;if(e.sv.composingLock=t.isComposing,t.isComposing)return!1;if(-1!==t.key.indexOf("Arrow")||"Meta"===t.key||"Control"===t.key||"Alt"===t.key||"Shift"===t.key||"CapsLock"===t.key||"Escape"===t.key||/^F\d{1,2}$/.test(t.key)||e.undo.recordFirstPosition(e,t),"Enter"!==t.key&&"Tab"!==t.key&&"Backspace"!==t.key&&-1===t.key.indexOf("Arrow")&&!(0,d.yl)(t)&&"Escape"!==t.key)return!1;var l=(0,N.zh)(e),s=l.startContainer;3!==l.startContainer.nodeType&&"DIV"===l.startContainer.tagName&&(s=l.startContainer.childNodes[l.startOffset-1]);var c=(0,y.a1)(s,"data-type","text"),u=(0,y.a1)(s,"data-type","blockquote-marker");if(!u&&0===l.startOffset&&c&&c.previousElementSibling&&"blockquote-marker"===c.previousElementSibling.getAttribute("data-type")&&(u=c.previousElementSibling),u&&"Enter"===t.key&&!(0,d.yl)(t)&&!t.altKey&&""===u.nextElementSibling.textContent.trim()&&(0,N.im)(u,e.sv.element,l).start===u.textContent.length)return"padding"===(null===(n=u.previousElementSibling)||void 0===n?void 0:n.getAttribute("data-type"))&&u.previousElementSibling.setAttribute("data-action","enter-remove"),u.remove(),Oe(e),t.preventDefault(),!0;var p=(0,y.a1)(s,"data-type","li-marker"),m=(0,y.a1)(s,"data-type","task-marker"),f=p;if(f||m&&"task-marker"!==m.nextElementSibling.getAttribute("data-type")&&(f=m),f||0!==l.startOffset||!c||!c.previousElementSibling||"li-marker"!==c.previousElementSibling.getAttribute("data-type")&&"task-marker"!==c.previousElementSibling.getAttribute("data-type")||(f=c.previousElementSibling),f){var h=(0,N.im)(f,e.sv.element,l).start,v="task-marker"===f.getAttribute("data-type"),g=f;if(v&&(g=f.previousElementSibling.previousElementSibling.previousElementSibling),h===f.textContent.length){if("Enter"===t.key&&!(0,d.yl)(t)&&!t.altKey&&!t.shiftKey&&""===f.nextElementSibling.textContent.trim())return"padding"===(null===(r=g.previousElementSibling)||void 0===r?void 0:r.getAttribute("data-type"))?(g.previousElementSibling.remove(),q(e)):(v&&(g.remove(),f.previousElementSibling.previousElementSibling.remove(),f.previousElementSibling.remove()),f.nextElementSibling.remove(),f.remove(),Oe(e)),t.preventDefault(),!0;if("Tab"===t.key)return g.insertAdjacentHTML("beforebegin",''+g.textContent.replace(/\S/g," ")+""),/^\d/.test(g.textContent)&&(g.textContent=g.textContent.replace(/^\d{1,}/,"1"),l.selectNodeContents(f.firstChild),l.collapse(!1)),q(e),t.preventDefault(),!0}}if(ct(e,l,t))return!0;var w=(0,y.a1)(s,"data-block","0"),E=(0,b.S)(s,"SPAN");if("Enter"===t.key&&!(0,d.yl)(t)&&!t.altKey&&!t.shiftKey&&w){var k=!1,S=w.textContent.match(/^\n+/);(0,N.im)(w,e.sv.element).start<=(S?S[0].length:0)&&(k=!0);var C="\n";if(E){if("enter-remove"===(null===(i=E.previousElementSibling)||void 0===i?void 0:i.getAttribute("data-action")))return E.previousElementSibling.remove(),Oe(e),t.preventDefault(),!0;C+=De(E)}return l.insertNode(document.createTextNode(C)),l.collapse(!1),w&&""!==w.textContent.trim()&&!k?q(e):Oe(e),t.preventDefault(),!0}if("Backspace"===t.key&&!(0,d.yl)(t)&&!t.altKey&&!t.shiftKey){if(E&&"newline"===(null===(o=E.previousElementSibling)||void 0===o?void 0:o.getAttribute("data-type"))&&1===(0,N.im)(E,e.sv.element,l).start&&-1===E.getAttribute("data-type").indexOf("code-block-"))return l.setStart(E,0),l.extractContents(),""!==E.textContent.trim()?q(e):Oe(e),t.preventDefault(),!0;if(w&&0===(0,N.im)(w,e.sv.element,l).start&&w.previousElementSibling){l.extractContents();var L=w.previousElementSibling.lastElementChild;return"newline"===L.getAttribute("data-type")&&(L.remove(),L=w.previousElementSibling.lastElementChild),"newline"!==L.getAttribute("data-type")&&(L.insertAdjacentHTML("afterend",w.innerHTML),w.remove()),""===w.textContent.trim()||(null===(a=w.previousElementSibling)||void 0===a?void 0:a.querySelector('[data-type="code-block-open-marker"]'))?("newline"!==L.getAttribute("data-type")&&(l.selectNodeContents(L.lastChild),l.collapse(!1)),Oe(e)):q(e),t.preventDefault(),!0}}return!1}(e,t))return}else if("wysiwyg"===e.currentMode){if(function(e,t){if(e.wysiwyg.composingLock=t.isComposing,t.isComposing)return!1;-1!==t.key.indexOf("Arrow")||"Meta"===t.key||"Control"===t.key||"Alt"===t.key||"Shift"===t.key||"CapsLock"===t.key||"Escape"===t.key||/^F\d{1,2}$/.test(t.key)||e.undo.recordFirstPosition(e,t);var n=(0,N.zh)(e),r=n.startContainer;if(!Fe(t,e,r))return!1;if(Ze(n,e,t),kt(n),"Enter"!==t.key&&"Tab"!==t.key&&"Backspace"!==t.key&&-1===t.key.indexOf("Arrow")&&!(0,d.yl)(t)&&"Escape"!==t.key&&"Delete"!==t.key)return!1;var o=(0,y.F9)(r),a=(0,y.lG)(r,"P");if(ut(t,e,a,n))return!0;if(dt(n,e,a,t))return!0;if(gt(e,t,n))return!0;var l=(0,y.fb)(r,"vditor-wysiwyg__block");if(l){if("Escape"===t.key&&2===l.children.length)return e.wysiwyg.popover.style.display="none",l.firstElementChild.style.display="none",e.wysiwyg.element.blur(),t.preventDefault(),!0;if(!(0,d.yl)(t)&&!t.shiftKey&&t.altKey&&"Enter"===t.key&&"code-block"===l.getAttribute("data-type")){var s=e.wysiwyg.popover.querySelector(".vditor-input");return s.focus(),s.select(),t.preventDefault(),!0}if("0"===l.getAttribute("data-block")){if(yt(e,t,l.firstElementChild,n))return!0;if(et(e,t,n,l.firstElementChild,l))return!0;if("yaml-front-matter"!==l.getAttribute("data-type")&&tt(e,t,n,l.firstElementChild,l))return!0}}if(bt(e,n,t,a))return!0;var c=(0,y.E2)(r,"BLOCKQUOTE");if(c&&!t.shiftKey&&t.altKey&&"Enter"===t.key){(0,d.yl)(t)?n.setStartBefore(c):n.setStartAfter(c),(0,N.Hc)(n);var u=document.createElement("p");return u.setAttribute("data-block","0"),u.innerHTML="\n",n.insertNode(u),n.collapse(!0),(0,N.Hc)(n),Y(e),Me(e),t.preventDefault(),!0}var p,m=(0,b.W)(r);if(m){if("H6"===m.tagName&&r.textContent.length===n.startOffset&&!(0,d.yl)(t)&&!t.shiftKey&&!t.altKey&&"Enter"===t.key){var f=document.createElement("p");return f.textContent="\n",f.setAttribute("data-block","0"),r.parentElement.insertAdjacentElement("afterend",f),n.setStart(f,0),(0,N.Hc)(n),Y(e),Me(e),t.preventDefault(),!0}var h;if(R("⌘=",t))return(h=parseInt(m.tagName.substr(1),10)-1)>0&&(te(e,"h"+h),Y(e)),t.preventDefault(),!0;if(R("⌘-",t))return(h=parseInt(m.tagName.substr(1),10)+1)<7&&(te(e,"h"+h),Y(e)),t.preventDefault(),!0;"Backspace"!==t.key||(0,d.yl)(t)||t.shiftKey||t.altKey||1!==m.textContent.length||ne(e)}if(wt(e,n,t))return!0;if(t.altKey&&"Enter"===t.key&&!(0,d.yl)(t)&&!t.shiftKey){var v=(0,y.lG)(r,"A"),g=(0,y.a1)(r,"data-type","link-ref"),w=(0,y.a1)(r,"data-type","footnotes-ref");if(v||g||w||m&&2===m.tagName.length){var E=e.wysiwyg.popover.querySelector("input");E.focus(),E.select()}}if(ie(e,t))return!0;if(R("⇧⌘U",t)&&(p=e.wysiwyg.popover.querySelector('[data-type="up"]')))return p.click(),t.preventDefault(),!0;if(R("⇧⌘D",t)&&(p=e.wysiwyg.popover.querySelector('[data-type="down"]')))return p.click(),t.preventDefault(),!0;if(ct(e,n,t))return!0;if(!(0,d.yl)(t)&&t.shiftKey&&!t.altKey&&"Enter"===t.key&&"LI"!==r.parentElement.tagName&&"P"!==r.parentElement.tagName)return["STRONG","STRIKE","S","I","EM","B"].includes(r.parentElement.tagName)?n.insertNode(document.createTextNode("\n"+i.g.ZWSP)):n.insertNode(document.createTextNode("\n")),n.collapse(!1),(0,N.Hc)(n),Y(e),Me(e),t.preventDefault(),!0;if("Backspace"===t.key&&!(0,d.yl)(t)&&!t.shiftKey&&!t.altKey&&""===n.toString()){if(Et(e,n,t,a))return!0;if(o){if(o.previousElementSibling&&o.previousElementSibling.classList.contains("vditor-wysiwyg__block")&&"0"===o.previousElementSibling.getAttribute("data-block")&&"UL"!==o.tagName&&"OL"!==o.tagName){var k=(0,N.im)(o,e.wysiwyg.element,n).start;if(0===k&&0===n.startOffset||1===k&&o.innerText.startsWith(i.g.ZWSP))return re(o.previousElementSibling.lastElementChild,e,!1),""===o.innerHTML.trim().replace(i.g.ZWSP,"")&&(o.remove(),Y(e)),t.preventDefault(),!0}var S=n.startOffset;if(""===n.toString()&&3===r.nodeType&&"\n"===r.textContent.charAt(S-2)&&r.textContent.charAt(S-1)!==i.g.ZWSP&&["STRONG","STRIKE","S","I","EM","B"].includes(r.parentElement.tagName))return r.textContent=r.textContent.substring(0,S-1)+i.g.ZWSP,n.setStart(r,S),n.collapse(!0),Y(e),t.preventDefault(),!0;r.textContent===i.g.ZWSP&&1===n.startOffset&&!r.previousSibling&&function(e){for(var t=e.startContainer.nextSibling;t&&""===t.textContent;)t=t.nextSibling;return!(!t||3===t.nodeType||"CODE"!==t.tagName&&"math-inline"!==t.getAttribute("data-type")&&"html-entity"!==t.getAttribute("data-type")&&"html-inline"!==t.getAttribute("data-type"))}(n)&&(r.textContent=""),o.querySelectorAll("span.vditor-wysiwyg__block[data-type='math-inline']").forEach((function(e){e.firstElementChild.style.display="inline",e.lastElementChild.style.display="none"})),o.querySelectorAll("span.vditor-wysiwyg__block[data-type='html-entity']").forEach((function(e){e.firstElementChild.style.display="inline",e.lastElementChild.style.display="none"}))}}if((0,d.vU)()&&1===n.startOffset&&r.textContent.indexOf(i.g.ZWSP)>-1&&r.previousSibling&&3!==r.previousSibling.nodeType&&"CODE"===r.previousSibling.tagName&&("Backspace"===t.key||"ArrowLeft"===t.key))return n.selectNodeContents(r.previousSibling),n.collapse(!1),t.preventDefault(),!0;if(St(t,o,n))return t.preventDefault(),!0;if(Je(n,t.key),"ArrowDown"===t.key){var C=r.nextSibling;C&&3!==C.nodeType&&"math-inline"===C.getAttribute("data-type")&&n.setStartAfter(C)}return!(!o||!I(o,e,t,n)||(t.preventDefault(),0))}(e,t))return}else if("ir"===e.currentMode&&function(e,t){if(e.ir.composingLock=t.isComposing,t.isComposing)return!1;-1!==t.key.indexOf("Arrow")||"Meta"===t.key||"Control"===t.key||"Alt"===t.key||"Shift"===t.key||"CapsLock"===t.key||"Escape"===t.key||/^F\d{1,2}$/.test(t.key)||e.undo.recordFirstPosition(e,t);var n=(0,N.zh)(e),r=n.startContainer;if(!Fe(t,e,r))return!1;if(Ze(n,e,t),kt(n),"Enter"!==t.key&&"Tab"!==t.key&&"Backspace"!==t.key&&-1===t.key.indexOf("Arrow")&&!(0,d.yl)(t)&&"Escape"!==t.key&&"Delete"!==t.key)return!1;var o=(0,y.a1)(r,"data-newline","1");if(!(0,d.yl)(t)&&!t.altKey&&!t.shiftKey&&"Enter"===t.key&&o&&n.startOffset-1&&f){var h=Ye(f);if(h&&tt(e,t,n,f,h))return!0;var g=Qe(f);if(g&&et(e,t,n,f,g))return!0}if(gt(e,t,n))return!0;if(wt(e,n,t))return!0;if(ct(e,n,t))return!0;var w=(0,b.W)(r);if(w){var E;if(R("⌘=",t))return(E=w.querySelector(".vditor-ir__marker--heading"))&&E.textContent.trim().length>1&&Mt(e,E.textContent.substr(1)),t.preventDefault(),!0;if(R("⌘-",t))return(E=w.querySelector(".vditor-ir__marker--heading"))&&E.textContent.trim().length<6&&Mt(e,E.textContent.trim()+"# "),t.preventDefault(),!0}var k=(0,y.F9)(r);if("Backspace"===t.key&&!(0,d.yl)(t)&&!t.shiftKey&&!t.altKey&&""===n.toString()){if(Et(e,n,t,s))return!0;if(k&&k.previousElementSibling&&"UL"!==k.tagName&&"OL"!==k.tagName&&("code-block"===k.previousElementSibling.getAttribute("data-type")||"math-block"===k.previousElementSibling.getAttribute("data-type"))){var S=(0,N.im)(k,e.ir.element,n).start;if(0===S||1===S&&k.innerText.startsWith(i.g.ZWSP))return n.selectNodeContents(k.previousElementSibling.querySelector(".vditor-ir__marker--pre code")),n.collapse(!1),P(n,e),""===k.textContent.trim().replace(i.g.ZWSP,"")&&(k.remove(),Tt(e)),t.preventDefault(),!0}if(w){var C=w.firstElementChild.textContent.length;(0,N.im)(w,e.ir.element).start===C&&(n.setStart(w.firstElementChild.firstChild,C-1),n.collapse(!0),(0,N.Hc)(n))}}return!(("ArrowUp"!==t.key&&"ArrowDown"!==t.key||!k||(k.querySelectorAll(".vditor-ir__node").forEach((function(e){e.contains(r)||e.classList.add("vditor-ir__node--hidden")})),!St(t,k,n)))&&(Je(n,t.key),!k||!I(k,e,t,n)||(t.preventDefault(),0)))}(e,t))return;if(e.options.ctrlEnter&&R("⌘Enter",t))return e.options.ctrlEnter(a(e)),void t.preventDefault();if(R("⌘Z",t)&&!e.toolbar.elements.undo)return e.undo.undo(e),void t.preventDefault();if(R("⌘Y",t)&&!e.toolbar.elements.redo)return e.undo.redo(e),void t.preventDefault();if("Escape"===t.key)return"block"===e.hint.element.style.display?e.hint.element.style.display="none":e.options.esc&&!t.isComposing&&e.options.esc(a(e)),void t.preventDefault();if((0,d.yl)(t)&&t.altKey&&!t.shiftKey&&/^Digit[1-6]$/.test(t.code)){if("wysiwyg"===e.currentMode){var n=t.code.replace("Digit","H");(0,y.lG)(getSelection().getRangeAt(0).startContainer,n)?ne(e):te(e,n),Y(e)}else"sv"===e.currentMode?Ie(e,"#".repeat(parseInt(t.code.replace("Digit",""),10))+" "):"ir"===e.currentMode&&Mt(e,"#".repeat(parseInt(t.code.replace("Digit",""),10))+" ");return t.preventDefault(),!0}if((0,d.yl)(t)&&t.altKey&&!t.shiftKey&&/^Digit[7-9]$/.test(t.code))return"Digit7"===t.code?ye(e,"wysiwyg",t):"Digit8"===t.code?ye(e,"ir",t):"Digit9"===t.code&&ye(e,"sv",t),!0;e.options.toolbar.find((function(n){return!n.hotkey||n.toolbar?!!n.toolbar&&!!n.toolbar.find((function(n){return!!n.hotkey&&(R(n.hotkey,t)?(e.toolbar.elements[n.name].children[0].dispatchEvent(new CustomEvent((0,d.Le)())),t.preventDefault(),!0):void 0)})):R(n.hotkey,t)?(e.toolbar.elements[n.name].children[0].dispatchEvent(new CustomEvent((0,d.Le)())),t.preventDefault(),!0):void 0}))}}))},Ae=function(e,t){t.addEventListener("selectstart",(function(n){t.onmouseup=function(){setTimeout((function(){var t=we(e[e.currentMode].element);t.trim()?("wysiwyg"===e.currentMode&&e.options.comment.enable&&((0,y.a1)(n.target,"data-type","footnotes-block")||(0,y.a1)(n.target,"data-type","link-ref-defs-block")?e.wysiwyg.hideComment():e.wysiwyg.showComment()),e.options.select&&e.options.select(t)):"wysiwyg"===e.currentMode&&e.options.comment.enable&&e.wysiwyg.hideComment()}))}}))},xe=function(e,t){var n=(0,N.zh)(e);n.extractContents(),n.insertNode(document.createTextNode(Lute.Caret)),n.insertNode(document.createTextNode(t));var r=(0,y.a1)(n.startContainer,"data-block","0");r||(r=e.sv.element);var i="
    "+e.lute.Md2VditorSVDOM(r.textContent).replace(/
    \n<\/span><\/span>
    \n<\/span><\/span>
    \n

    \n
    <')+"
    ";r.isEqualNode(e.sv.element)?r.innerHTML=i:r.outerHTML=i,(0,N.ib)(e.sv.element,n),Me(e)},He=function(e,t,n){void 0===n&&(n=!0);var r=e;for(3===r.nodeType&&(r=r.parentElement);r;){if(r.getAttribute("data-type")===t)return r;r=n?r.previousElementSibling:r.nextElementSibling}return!1},Ne=function(e,t){return w("SpinVditorSVDOM",e,"argument",t.options.debugger),e="
    "+t.lute.SpinVditorSVDOM(e).replace(/
    \n<\/span><\/span>
    \n<\/span><\/span>
    \n

    \n
    <')+"
    ",w("SpinVditorSVDOM",e,"result",t.options.debugger),e},De=function(e){var t=e.getAttribute("data-type"),n=e.previousElementSibling,r=t&&"text"!==t&&"table"!==t&&"heading-marker"!==t&&"newline"!==t&&"yaml-front-matter-open-marker"!==t&&"yaml-front-matter-close-marker"!==t&&"code-block-info"!==t&&"code-block-close-marker"!==t&&"code-block-open-marker"!==t?e.textContent:"",i=!1;for("newline"===t&&(i=!0);n&&!i;){var o=n.getAttribute("data-type");if("li-marker"===o||"blockquote-marker"===o||"task-marker"===o||"padding"===o){var a=n.textContent;if("li-marker"!==o||"code-block-open-marker"!==t&&"code-block-info"!==t)if("code-block-close-marker"===t&&n.nextElementSibling.isSameNode(e)){var l=He(e,"code-block-open-marker");l&&l.previousElementSibling&&(n=l.previousElementSibling,r=a+r)}else r=a+r;else r=a.replace(/\S/g," ")+r}else"newline"===o&&(i=!0);n=n.previousElementSibling}return r},Oe=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),t.enableHint&&e.hint.render(e),e.preview.render(e);var n=a(e);"function"==typeof e.options.input&&t.enableInput&&e.options.input(n),e.options.counter.enable&&e.counter.render(e,n),e.options.cache.enable&&(0,d.pK)()&&(localStorage.setItem(e.options.cache.id,n),e.options.cache.after&&e.options.cache.after(n)),e.devtools&&e.devtools.renderEchart(e),clearTimeout(e.sv.processTimeoutId),e.sv.processTimeoutId=window.setTimeout((function(){t.enableAddUndoStack&&!e.sv.composingLock&&e.undo.addToUndoStack(e)}),e.options.undoDelay)},Ie=function(e,t){var n=(0,N.zh)(e),r=(0,b.S)(n.startContainer,"SPAN");r&&""!==r.textContent.trim()&&(t="\n"+t),n.collapse(!0),document.execCommand("insertHTML",!1,t)},je=function(e,t,n,r){var i=(0,N.zh)(e),o=t.getAttribute("data-type");0===e.sv.element.childNodes.length&&(e.sv.element.innerHTML='
    \n
    ',(0,N.ib)(e.sv.element,i));var a=(0,y.F9)(i.startContainer),l=(0,b.S)(i.startContainer,"SPAN");if(a){if("link"===o){var s=void 0;return s=""===i.toString()?""+n+Lute.Caret+r:""+n+i.toString()+r.replace(")",Lute.Caret+")"),void document.execCommand("insertHTML",!1,s)}if("italic"===o||"bold"===o||"strike"===o||"inline-code"===o||"code"===o||"table"===o||"line"===o)return s=void 0,s=""===i.toString()?""+n+Lute.Caret+("code"===o?"":r):""+n+i.toString()+Lute.Caret+("code"===o?"":r),"table"===o||"code"===o&&l&&""!==l.textContent?s="\n\n"+s:"line"===o&&(s="\n\n"+n+"\n"+Lute.Caret),void document.execCommand("insertHTML",!1,s);if(("check"===o||"list"===o||"ordered-list"===o||"quote"===o)&&l){var d="* ";"check"===o?d="* [ ] ":"ordered-list"===o?d="1. ":"quote"===o&&(d="> ");var c=He(l,"newline");return c?c.insertAdjacentText("afterend",d):a.insertAdjacentText("afterbegin",d),void q(e)}(0,N.ib)(e.sv.element,i),Oe(e)}},Re=function(e){switch(e.currentMode){case"ir":return e.ir.element;case"wysiwyg":return e.wysiwyg.element;case"sv":return e.sv.element}},Pe=function(e,t){e.options.upload.setHeaders&&(e.options.upload.headers=e.options.upload.setHeaders()),e.options.upload.headers&&Object.keys(e.options.upload.headers).forEach((function(n){t.setRequestHeader(n,e.options.upload.headers[n])}))},Be=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function l(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},qe=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]"+window.VditorI18n.nameEmpty+"",s=!1),l.size>e.options.upload.max&&(r+="
  • "+l.name+" "+window.VditorI18n.over+" "+e.options.upload.max/1024/1024+"M
  • ",s=!1);var d=l.name.lastIndexOf("."),c=l.name.substr(d),u=e.options.upload.filename(l.name.substr(0,d))+c;e.options.upload.accept&&(e.options.upload.accept.split(",").some((function(e){var t=e.trim();if(0===t.indexOf(".")){if(c.toLowerCase()===t.toLowerCase())return!0}else if(l.type.split("/")[0]===t.split("/")[0])return!0;return!1}))||(r+="
  • "+l.name+" "+window.VditorI18n.fileTypeError+"
  • ",s=!1)),s&&(n.push(l),i+="
  • "+u+" "+window.VditorI18n.uploading+"
  • ")}),a=t.length,l=0;l"+r+i+""),n}(e,r)).length)return n&&(n.value=""),[2];for(d=new FormData,c=e.options.upload.extraData,u=0,p=Object.keys(c);u=200&&v.status<300)if(e.options.upload.success)e.options.upload.success(l,v.responseText);else{var r=v.responseText;e.options.upload.format&&(r=e.options.upload.format(t,v.responseText)),function(e,t){Re(t).focus();var n=JSON.parse(e),r="";1===n.code&&(r=""+n.msg),n.data.errFiles&&n.data.errFiles.length>0&&(r="
    • "+r+"
    • ",n.data.errFiles.forEach((function(e){var n=e.lastIndexOf("."),i=t.options.upload.filename(e.substr(0,n))+e.substr(n);r+="
    • "+i+" "+window.VditorI18n.uploadError+"
    • "})),r+="
    "),r?t.tip.show(r):t.tip.hide();var i="";Object.keys(n.data.succMap).forEach((function(e){var r=n.data.succMap[e],o=e.lastIndexOf("."),a=e.substr(o),l=t.options.upload.filename(e.substr(0,o))+a;0===(a=a.toLowerCase()).indexOf(".wav")||0===a.indexOf(".mp3")||0===a.indexOf(".ogg")?"wysiwyg"===t.currentMode?i+='
    <audio controls="controls" src="'+r+'"></audio>
    \n':"ir"===t.currentMode?i+='\n':i+="["+l+"]("+r+")\n":0===a.indexOf(".apng")||0===a.indexOf(".bmp")||0===a.indexOf(".gif")||0===a.indexOf(".ico")||0===a.indexOf(".cur")||0===a.indexOf(".jpg")||0===a.indexOf(".jpeg")||0===a.indexOf(".jfif")||0===a.indexOf(".pjp")||0===a.indexOf(".pjpeg")||0===a.indexOf(".png")||0===a.indexOf(".svg")||0===a.indexOf(".webp")?"wysiwyg"===t.currentMode?i+=''+l+'\n':i+="!["+l+"]("+r+")\n":"wysiwyg"===t.currentMode?i+=''+l+"\n":i+="["+l+"]("+r+")\n"})),(0,N.Hc)(t.upload.range),document.execCommand("insertHTML",!1,i),t.upload.range=getSelection().getRangeAt(0).cloneRange()}(r,e)}else e.options.upload.error?e.options.upload.error(v.responseText):e.tip.show(v.responseText);n&&(n.value=""),e.upload.element.style.display="none"}},v.upload.onprogress=function(t){if(t.lengthComputable){var n=t.loaded/t.total*100;e.upload.element.style.display="block",e.upload.element.style.width=n+"%"}},v.send(d),[2]}}))}))},We=function(e,t,n){var r,o=(0,y.F9)(t.startContainer);if(o||(o=e.wysiwyg.element),n&&"formatItalic"!==n.inputType&&"deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType&&"formatBold"!==n.inputType&&"formatRemove"!==n.inputType&&"formatStrikeThrough"!==n.inputType&&"insertUnorderedList"!==n.inputType&&"insertOrderedList"!==n.inputType&&"formatOutdent"!==n.inputType&&"formatIndent"!==n.inputType&&""!==n.inputType||!n){var a=function(e){for(var t=e.previousSibling;t;){if(3!==t.nodeType&&"A"===t.tagName&&!t.previousSibling&&""===t.innerHTML.replace(i.g.ZWSP,"")&&t.nextSibling)return t;t=t.previousSibling}return!1}(t.startContainer);a&&a.remove(),e.wysiwyg.element.querySelectorAll("wbr").forEach((function(e){e.remove()})),t.insertNode(document.createElement("wbr")),o.querySelectorAll("[style]").forEach((function(e){e.removeAttribute("style")})),o.querySelectorAll(".vditor-comment").forEach((function(e){""===e.textContent.trim()&&(e.classList.remove("vditor-comment","vditor-comment--focus"),e.removeAttribute("data-cmtids"))})),null===(r=o.previousElementSibling)||void 0===r||r.querySelectorAll(".vditor-comment").forEach((function(e){""===e.textContent.trim()&&(e.classList.remove("vditor-comment","vditor-comment--focus"),e.removeAttribute("data-cmtids"))}));var l="";"link-ref-defs-block"===o.getAttribute("data-type")&&(o=e.wysiwyg.element);var s,d=o.isEqualNode(e.wysiwyg.element),c=(0,y.a1)(o,"data-type","footnotes-block");if(d)l=o.innerHTML;else{var u=(0,y.O9)(t.startContainer);if(u&&!c){var p=(0,b.S)(t.startContainer,"BLOCKQUOTE");o=p?(0,y.F9)(t.startContainer)||o:u}if(c&&(o=c),l=o.outerHTML,"UL"===o.tagName||"OL"===o.tagName){var m=o.previousElementSibling,f=o.nextElementSibling;!m||"UL"!==m.tagName&&"OL"!==m.tagName||(l=m.outerHTML+l,m.remove()),!f||"UL"!==f.tagName&&"OL"!==f.tagName||(l+=f.outerHTML,f.remove()),l=l.replace("

    ","

  • ")}e.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']").forEach((function(e){e&&!o.isEqualNode(e)&&(l+=e.outerHTML,e.remove())})),e.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']").forEach((function(e){e&&!o.isEqualNode(e)&&(l+=e.outerHTML,e.remove())}))}if('

    ```

    '===(l=l.replace(/<\/(strong|b)>/g,"").replace(/<\/(em|i)>/g,"").replace(/<\/(s|strike)>/g,""))&&e.hint.recentLanguage&&(l='

    ```

    '.replace("```","```"+e.hint.recentLanguage)),w("SpinVditorDOM",l,"argument",e.options.debugger),l=e.lute.SpinVditorDOM(l),w("SpinVditorDOM",l,"result",e.options.debugger),d)o.innerHTML=l;else if(o.outerHTML=l,c){var h=(0,y.E2)(e.wysiwyg.element.querySelector("wbr"),"LI");if(h){var v=e.wysiwyg.element.querySelector('sup[data-type="footnotes-ref"][data-footnotes-label="'+h.getAttribute("data-marker")+'"]');v&&v.setAttribute("aria-label",h.textContent.trim().substr(0,24))}}var g,E=e.wysiwyg.element.querySelectorAll("[data-type='link-ref-defs-block']");E.forEach((function(e,t){0===t?s=e:(s.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())})),E.length>0&&e.wysiwyg.element.insertAdjacentElement("beforeend",E[0]);var k=e.wysiwyg.element.querySelectorAll("[data-type='footnotes-block']");k.forEach((function(e,t){0===t?g=e:(g.insertAdjacentHTML("beforeend",e.innerHTML),e.remove())})),k.length>0&&e.wysiwyg.element.insertAdjacentElement("beforeend",k[0]),(0,N.ib)(e.wysiwyg.element,t),e.wysiwyg.element.querySelectorAll(".vditor-wysiwyg__preview[data-render='2']").forEach((function(t){H(t,e)})),n&&("deleteContentBackward"===n.inputType||"deleteContentForward"===n.inputType)&&e.options.comment.enable&&(e.wysiwyg.triggerRemoveComment(e),e.options.comment.adjustTop(e.wysiwyg.getComments(e,!0)))}D(e),Y(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})},Ke=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},Ge=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function l(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},ze=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1||(0,d.yl)(n)||"Escape"===n.key||n.shiftKey||n.altKey)){var r=(0,y.lG)(e.startContainer,"P")||(0,y.lG)(e.startContainer,"LI");if(r&&0===(0,N.im)(r,t[t.currentMode].element,e).start){var o=document.createTextNode(i.g.ZWSP);e.insertNode(o),e.setStartAfter(o)}}},Je=function(e,t){if("ArrowDown"===t||"ArrowUp"===t){var n=(0,y.a1)(e.startContainer,"data-type","math-inline")||(0,y.a1)(e.startContainer,"data-type","html-entity")||(0,y.a1)(e.startContainer,"data-type","html-inline");n&&("ArrowDown"===t&&e.setStartAfter(n.parentElement),"ArrowUp"===t&&e.setStartBefore(n.parentElement))}},Xe=function(e,t){var n=(0,N.zh)(e),r=(0,y.F9)(n.startContainer);r&&(r.insertAdjacentHTML(t,'

    '+i.g.ZWSP+"\n

    "),(0,N.ib)(e[e.currentMode].element,n),me(e),st(e))},Ye=function(e){var t=(0,y.lG)(e,"TABLE");return!(!t||!t.rows[0].cells[0].isSameNode(e))&&t},Qe=function(e){var t=(0,y.lG)(e,"TABLE");return!(!t||!t.lastElementChild.lastElementChild.lastElementChild.isSameNode(e))&&t},$e=function(e,t,n){void 0===n&&(n=!0);var r=e.previousElementSibling;return r||(r=e.parentElement.previousElementSibling?e.parentElement.previousElementSibling.lastElementChild:"TBODY"===e.parentElement.parentElement.tagName&&e.parentElement.parentElement.previousElementSibling?e.parentElement.parentElement.previousElementSibling.lastElementChild.lastElementChild:null),r&&(t.selectNodeContents(r),n||t.collapse(!1),(0,N.Hc)(t)),r},et=function(e,t,n,r,o){var a=(0,N.im)(r,e[e.currentMode].element,n);if("ArrowDown"===t.key&&-1===r.textContent.trimRight().substr(a.start).indexOf("\n")||"ArrowRight"===t.key&&a.start>=r.textContent.trimRight().length){var l=o.nextElementSibling;return!l||l&&("TABLE"===l.tagName||l.getAttribute("data-type"))?(o.insertAdjacentHTML("afterend",'

    '+i.g.ZWSP+"

    "),(0,N.ib)(e[e.currentMode].element,n)):(n.selectNodeContents(l),n.collapse(!0),(0,N.Hc)(n)),t.preventDefault(),!0}return!1},tt=function(e,t,n,r,o){var a=(0,N.im)(r,e[e.currentMode].element,n);if("ArrowUp"===t.key&&-1===r.textContent.substr(0,a.start).indexOf("\n")||("ArrowLeft"===t.key||"Backspace"===t.key&&""===n.toString())&&0===a.start){var l=o.previousElementSibling;return!l||l&&("TABLE"===l.tagName||l.getAttribute("data-type"))?(o.insertAdjacentHTML("beforebegin",'

    '+i.g.ZWSP+"

    "),(0,N.ib)(e[e.currentMode].element,n)):(n.selectNodeContents(l),n.collapse(!1),(0,N.Hc)(n)),t.preventDefault(),!0}return!1},nt=function(e,t,n,r){void 0===r&&(r=!0);var i=(0,y.lG)(t.startContainer,"LI");if(e[e.currentMode].element.querySelectorAll("wbr").forEach((function(e){e.remove()})),t.insertNode(document.createElement("wbr")),r&&i){for(var o="",a=0;a'+i.parentElement.children[a].innerHTML.trimLeft()+"

    "}i.parentElement.insertAdjacentHTML("beforebegin",o),i.parentElement.remove()}else if(i)if("check"===n)i.parentElement.querySelectorAll("li").forEach((function(e){e.insertAdjacentHTML("afterbegin",''+(0===e.textContent.indexOf(" ")?"":" ")),e.classList.add("vditor-task")}));else{i.querySelector("input")&&i.parentElement.querySelectorAll("li").forEach((function(e){e.querySelector("input").remove(),e.classList.remove("vditor-task")}));var s=void 0;"list"===n?(s=document.createElement("ul")).setAttribute("data-marker","*"):(s=document.createElement("ol")).setAttribute("data-marker","1."),s.setAttribute("data-block","0"),s.setAttribute("data-tight",i.parentElement.getAttribute("data-tight")),s.innerHTML=i.parentElement.innerHTML,i.parentElement.parentNode.replaceChild(s,i.parentElement)}else{var d=(0,y.a1)(t.startContainer,"data-block","0");d||(e[e.currentMode].element.querySelector("wbr").remove(),(d=e[e.currentMode].element.querySelector("p")).innerHTML=""),"check"===n?(d.insertAdjacentHTML("beforebegin",'
    • '+d.innerHTML+"
    "),d.remove()):"list"===n?(d.insertAdjacentHTML("beforebegin",'
    • '+d.innerHTML+"
    "),d.remove()):"ordered-list"===n&&(d.insertAdjacentHTML("beforebegin",'
    1. '+d.innerHTML+"
    "),d.remove())}},rt=function(e,t,n){var r=t.previousElementSibling;if(t&&r){var i=[t];Array.from(n.cloneContents().children).forEach((function(e,n){3!==e.nodeType&&t&&""!==e.textContent.trim()&&t.getAttribute("data-node-id")===e.getAttribute("data-node-id")&&(0!==n&&i.push(t),t=t.nextElementSibling)})),e[e.currentMode].element.querySelectorAll("wbr").forEach((function(e){e.remove()})),n.insertNode(document.createElement("wbr"));var o=r.parentElement,a="";i.forEach((function(e){var t=e.getAttribute("data-marker");1!==t.length&&(t="1"+t.slice(-1)),a+='
  • '+e.innerHTML+"
  • ",e.remove()})),r.insertAdjacentHTML("beforeend","<"+o.tagName+' data-block="0">'+a+""),"wysiwyg"===e.currentMode?o.outerHTML=e.lute.SpinVditorDOM(o.outerHTML):o.outerHTML=e.lute.SpinVditorIRDOM(o.outerHTML),(0,N.ib)(e[e.currentMode].element,n);var l=(0,y.O9)(n.startContainer);l&&l.querySelectorAll(".vditor-"+e.currentMode+"__preview[data-render='2']").forEach((function(t){H(t,e),"wysiwyg"===e.currentMode&&t.previousElementSibling.setAttribute("style","display:none")})),st(e),me(e)}else e[e.currentMode].element.focus()},it=function(e,t,n,r){var i=(0,y.lG)(t.parentElement,"LI");if(i){e[e.currentMode].element.querySelectorAll("wbr").forEach((function(e){e.remove()})),n.insertNode(document.createElement("wbr"));var o=t.parentElement,a=o.cloneNode(),l=[t];Array.from(n.cloneContents().children).forEach((function(e,n){3!==e.nodeType&&t&&""!==e.textContent.trim()&&t.getAttribute("data-node-id")===e.getAttribute("data-node-id")&&(0!==n&&l.push(t),t=t.nextElementSibling)}));var s=!1,d="";o.querySelectorAll("li").forEach((function(e){s&&(d+=e.outerHTML,e.nextElementSibling||e.previousElementSibling?e.remove():e.parentElement.remove()),e.isSameNode(l[l.length-1])&&(s=!0)})),l.reverse().forEach((function(e){i.insertAdjacentElement("afterend",e)})),d&&(a.innerHTML=d,l[0].insertAdjacentElement("beforeend",a)),"wysiwyg"===e.currentMode?r.outerHTML=e.lute.SpinVditorDOM(r.outerHTML):r.outerHTML=e.lute.SpinVditorIRDOM(r.outerHTML),(0,N.ib)(e[e.currentMode].element,n);var c=(0,y.O9)(n.startContainer);c&&c.querySelectorAll(".vditor-"+e.currentMode+"__preview[data-render='2']").forEach((function(t){H(t,e),"wysiwyg"===e.currentMode&&t.previousElementSibling.setAttribute("style","display:none")})),st(e),me(e)}else e[e.currentMode].element.focus()},ot=function(e,t){for(var n=getSelection().getRangeAt(0).startContainer.parentElement,r=e.rows[0].cells.length,i=e.rows.length,o=0,a=0;a2&&!(t.indexOf("-")>-1&&-1===t.trimLeft().indexOf(" ")&&e.trimRight().split("\n").length>1)&&0!==t.indexOf(" ")&&0!==t.indexOf("\t")},lt=function(e){var t=e.trimRight().split("\n");return 0!==(e=t.pop()).indexOf(" ")&&0!==e.indexOf("\t")&&""!==(e=e.trimLeft())&&0!==t.length&&(""===e.replace(/-/g,"")||""===e.replace(/=/g,""))},st=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),"wysiwyg"===e.currentMode?Y(e,t):"ir"===e.currentMode?Tt(e,t):"sv"===e.currentMode&&Oe(e,t)},dt=function(e,t,n,r){var o,a=e.startContainer,l=(0,y.lG)(a,"LI");if(l){if(!(0,d.yl)(r)&&!r.altKey&&"Enter"===r.key&&!r.shiftKey&&n&&l.contains(n)&&n.nextElementSibling)return l&&!l.textContent.endsWith("\n")&&l.insertAdjacentText("beforeend","\n"),e.insertNode(document.createTextNode("\n\n")),e.collapse(!1),st(t),r.preventDefault(),!0;if(!((0,d.yl)(r)||r.shiftKey||r.altKey||"Backspace"!==r.key||l.previousElementSibling||""!==e.toString()||0!==(0,N.im)(l,t[t.currentMode].element,e).start))return l.nextElementSibling?(l.parentElement.insertAdjacentHTML("beforebegin",'

    '+l.innerHTML+"

    "),l.remove()):l.parentElement.outerHTML='

    '+l.innerHTML+"

    ",(0,N.ib)(t[t.currentMode].element,e),st(t),r.preventDefault(),!0;if(!(0,d.yl)(r)&&!r.shiftKey&&!r.altKey&&"Backspace"===r.key&&""===l.textContent.trim().replace(i.g.ZWSP,"")&&""===e.toString()&&"LI"===(null===(o=l.previousElementSibling)||void 0===o?void 0:o.tagName))return l.previousElementSibling.insertAdjacentText("beforeend","\n\n"),e.selectNodeContents(l.previousElementSibling),e.collapse(!1),l.remove(),(0,N.ib)(t[t.currentMode].element,e),st(t),r.preventDefault(),!0;if(!(0,d.yl)(r)&&!r.altKey&&"Tab"===r.key){var s=!1;if((0===e.startOffset&&(3===a.nodeType&&!a.previousSibling||3!==a.nodeType&&"LI"===a.nodeName)||l.classList.contains("vditor-task")&&1===e.startOffset&&3!==a.previousSibling.nodeType&&"INPUT"===a.previousSibling.tagName)&&(s=!0),s||""!==e.toString())return r.shiftKey?it(t,l,e,l.parentElement):rt(t,l,e),r.preventDefault(),!0}}return!1},ct=function(e,t,n){if(e.options.tab&&"Tab"===n.key)return n.shiftKey||(""===t.toString()?(t.insertNode(document.createTextNode(e.options.tab)),t.collapse(!1)):(t.extractContents(),t.insertNode(document.createTextNode(e.options.tab)),t.collapse(!1))),(0,N.Hc)(t),st(e),n.preventDefault(),!0},ut=function(e,t,n,r){if(n){if(!(0,d.yl)(e)&&!e.altKey&&"Enter"===e.key){var i=String.raw(F||(F=Ke(["",""],["",""])),n.textContent).replace(/\\\|/g,"").trim(),o=i.split("|");if(i.startsWith("|")&&i.endsWith("|")&&o.length>3){var a=o.map((function(){return"---"})).join("|");return a=n.textContent+"\n"+a.substring(3,a.length-3)+"\n|",n.outerHTML=t.lute.SpinVditorDOM(a),(0,N.ib)(t[t.currentMode].element,r),st(t),Me(t),e.preventDefault(),!0}if(at(n.innerHTML)&&n.previousElementSibling){var l="",s=n.innerHTML.trimRight().split("\n");return s.length>1&&(s.pop(),l='

    '+s.join("\n")+"

    "),n.insertAdjacentHTML("afterend",l+'

    \n

    '),n.remove(),(0,N.ib)(t[t.currentMode].element,r),st(t),Me(t),e.preventDefault(),!0}if(lt(n.innerHTML))return"wysiwyg"===t.currentMode?n.outerHTML=t.lute.SpinVditorDOM(n.innerHTML+'

    \n

    '):n.outerHTML=t.lute.SpinVditorIRDOM(n.innerHTML+'

    \n

    '),(0,N.ib)(t[t.currentMode].element,r),st(t),Me(t),e.preventDefault(),!0}if(r.collapsed&&n.previousElementSibling&&"Backspace"===e.key&&!(0,d.yl)(e)&&!e.altKey&&!e.shiftKey&&n.textContent.trimRight().split("\n").length>1&&0===(0,N.im)(n,t[t.currentMode].element,r).start){var c=(0,y.DX)(n.previousElementSibling);return c.textContent.endsWith("\n")||(c.textContent=c.textContent+"\n"),c.parentElement.insertAdjacentHTML("beforeend",""+n.innerHTML),n.remove(),(0,N.ib)(t[t.currentMode].element,r),!1}return!1}},pt=function(e,t,n){for(var r="",i=0;i ';"TH"===n.tagName?n.parentElement.parentElement.insertAdjacentHTML("afterend",""+r+""):n.parentElement.insertAdjacentHTML("afterend",""+r+""),st(e)},mt=function(e,t,n){for(var r="",i=0;i ':r+=' ';if("TH"===n.tagName){n.parentElement.parentElement.insertAdjacentHTML("beforebegin",""+r+""),t.insertNode(document.createElement("wbr"));var o=n.parentElement.innerHTML.replace(//g,"").replace(/<\/th>/g,"");n.parentElement.parentElement.nextElementSibling.insertAdjacentHTML("afterbegin",o),n.parentElement.parentElement.remove(),(0,N.ib)(e.ir.element,t)}else n.parentElement.insertAdjacentHTML("beforebegin",""+r+"");st(e)},ft=function(e,t,n,r){void 0===r&&(r="afterend");for(var i=0,o=n.previousElementSibling;o;)i++,o=o.previousElementSibling;for(var a=0;a "):t.rows[a].cells[i].insertAdjacentHTML(r," ");st(e)},ht=function(e,t,n){if("TD"===n.tagName){var r=n.parentElement.parentElement;n.parentElement.previousElementSibling?t.selectNodeContents(n.parentElement.previousElementSibling.lastElementChild):t.selectNodeContents(r.previousElementSibling.lastElementChild.lastElementChild),1===r.childElementCount?r.remove():n.parentElement.remove(),t.collapse(!1),(0,N.Hc)(t),st(e)}},vt=function(e,t,n,r){for(var i=0,o=r.previousElementSibling;o;)i++,o=o.previousElementSibling;(r.previousElementSibling||r.nextElementSibling)&&(t.selectNodeContents(r.previousElementSibling||r.nextElementSibling),t.collapse(!0));for(var a=0;a");var o=document.createElement("br");return n.insertNode(o),n.setStartAfter(o),st(e),Me(e),t.preventDefault(),!0}if("Tab"===t.key)return t.shiftKey?($e(i,n),t.preventDefault(),!0):((u=i.nextElementSibling)||(u=i.parentElement.nextElementSibling?i.parentElement.nextElementSibling.firstElementChild:"THEAD"===i.parentElement.parentElement.tagName&&i.parentElement.parentElement.nextElementSibling?i.parentElement.parentElement.nextElementSibling.firstElementChild.firstElementChild:null),u&&(n.selectNodeContents(u),(0,N.Hc)(n)),t.preventDefault(),!0);var a=i.parentElement.parentElement.parentElement;if("ArrowUp"===t.key){if(t.preventDefault(),"TH"===i.tagName)return a.previousElementSibling?(n.selectNodeContents(a.previousElementSibling),n.collapse(!1),(0,N.Hc)(n)):Xe(e,"beforebegin"),!0;for(var l=0,s=i.parentElement;l\n

    ',(0,N.ib)(e[e.currentMode].element,n)):(n.setStartBefore(a),n.collapse(!0)),st(e)),t.preventDefault(),!0;if(R("⇧⌘F",t))return mt(e,n,i),t.preventDefault(),!0;if(R("⌘=",t))return pt(e,n,i),t.preventDefault(),!0;if(R("⇧⌘G",t))return ft(e,a,i,"beforebegin"),t.preventDefault(),!0;if(R("⇧⌘=",t))return ft(e,a,i),t.preventDefault(),!0;if(R("⌘-",t))return ht(e,n,i),t.preventDefault(),!0;if(R("⇧⌘-",t))return vt(e,n,a,i),t.preventDefault(),!0;if(R("⇧⌘L",t)){if("ir"===e.currentMode)return ot(a,"left"),st(e),t.preventDefault(),!0;if(m=e.wysiwyg.popover.querySelector('[data-type="left"]'))return m.click(),t.preventDefault(),!0}if(R("⇧⌘C",t)){if("ir"===e.currentMode)return ot(a,"center"),st(e),t.preventDefault(),!0;if(m=e.wysiwyg.popover.querySelector('[data-type="center"]'))return m.click(),t.preventDefault(),!0}if(R("⇧⌘R",t)){if("ir"===e.currentMode)return ot(a,"right"),st(e),t.preventDefault(),!0;var m;if(m=e.wysiwyg.popover.querySelector('[data-type="right"]'))return m.click(),t.preventDefault(),!0}}return!1},yt=function(e,t,n,r){if("PRE"===n.tagName&&R("⌘A",t))return r.selectNodeContents(n.firstElementChild),t.preventDefault(),!0;if(e.options.tab&&"Tab"===t.key&&!t.shiftKey&&""===r.toString())return r.insertNode(document.createTextNode(e.options.tab)),r.collapse(!1),st(e),t.preventDefault(),!0;if("Backspace"===t.key&&!(0,d.yl)(t)&&!t.shiftKey&&!t.altKey){var i=(0,N.im)(n,e[e.currentMode].element,r);if((0===i.start||1===i.start&&"\n"===n.innerText)&&""===r.toString())return n.parentElement.outerHTML='

    '+n.firstElementChild.innerHTML+"

    ",(0,N.ib)(e[e.currentMode].element,r),st(e),t.preventDefault(),!0}return!(0,d.yl)(t)&&!t.altKey&&"Enter"===t.key&&(n.firstElementChild.textContent.endsWith("\n")||n.firstElementChild.insertAdjacentText("beforeend","\n"),r.extractContents(),r.insertNode(document.createTextNode("\n")),r.collapse(!1),(0,N.Hc)(r),(0,d.vU)()||("wysiwyg"===e.currentMode?We(e,r):j(e,r)),Me(e),t.preventDefault(),!0)},bt=function(e,t,n,r){var o=t.startContainer,a=(0,y.lG)(o,"BLOCKQUOTE");if(a&&""===t.toString()){if("Backspace"===n.key&&!(0,d.yl)(n)&&!n.shiftKey&&!n.altKey&&0===(0,N.im)(a,e[e.currentMode].element,t).start)return t.insertNode(document.createElement("wbr")),a.outerHTML=a.innerHTML,(0,N.ib)(e[e.currentMode].element,t),st(e),n.preventDefault(),!0;if(r&&"Enter"===n.key&&!(0,d.yl)(n)&&!n.shiftKey&&!n.altKey&&"BLOCKQUOTE"===r.parentElement.tagName){var l=!1;if("\n"===r.innerHTML.replace(i.g.ZWSP,"")||""===r.innerHTML.replace(i.g.ZWSP,"")?(l=!0,r.remove()):r.innerHTML.endsWith("\n\n")&&(0,N.im)(r,e[e.currentMode].element,t).start===r.textContent.length-1&&(r.innerHTML=r.innerHTML.substr(0,r.innerHTML.length-2),l=!0),l)return a.insertAdjacentHTML("afterend",'

    '+i.g.ZWSP+"\n

    "),(0,N.ib)(e[e.currentMode].element,t),st(e),n.preventDefault(),!0}var s=(0,y.F9)(o);if("wysiwyg"===e.currentMode&&s&&R("⇧⌘;",n))return t.insertNode(document.createElement("wbr")),s.outerHTML='
    '+s.outerHTML+"
    ",(0,N.ib)(e.wysiwyg.element,t),Y(e),n.preventDefault(),!0;if(et(e,n,t,a,a))return!0;if(tt(e,n,t,a,a))return!0}return!1},wt=function(e,t,n){var r=t.startContainer,i=(0,y.fb)(r,"vditor-task");if(i){if(R("⇧⌘J",n)){var o=i.firstElementChild;return o.checked?o.removeAttribute("checked"):o.setAttribute("checked","checked"),st(e),n.preventDefault(),!0}if("Backspace"===n.key&&!(0,d.yl)(n)&&!n.shiftKey&&!n.altKey&&""===t.toString()&&1===t.startOffset&&(3===r.nodeType&&r.previousSibling&&"INPUT"===r.previousSibling.tagName||3!==r.nodeType)){var a=i.previousElementSibling;return i.querySelector("input").remove(),a?((0,y.DX)(a).parentElement.insertAdjacentHTML("beforeend",""+i.innerHTML.trim()),i.remove()):(i.parentElement.insertAdjacentHTML("beforebegin",'

    '+(i.innerHTML.trim()||"\n")+"

    "),i.nextElementSibling?i.remove():i.parentElement.remove()),(0,N.ib)(e[e.currentMode].element,t),st(e),n.preventDefault(),!0}if("Enter"===n.key&&!(0,d.yl)(n)&&!n.shiftKey&&!n.altKey){if(""===i.textContent.trim())if((0,y.fb)(i.parentElement,"vditor-task")){var l=(0,y.O9)(r);l&&it(e,i,t,l)}else if(i.nextElementSibling){var s="",c="",u=!1;Array.from(i.parentElement.children).forEach((function(e){i.isSameNode(e)?u=!0:u?s+=e.outerHTML:c+=e.outerHTML}));var p=i.parentElement.tagName,m="OL"===i.parentElement.tagName?"":' data-marker="'+i.parentElement.getAttribute("data-marker")+'"',f="";c&&(f="UL"===i.parentElement.tagName?"":' start="1"',c="<"+p+' data-tight="true"'+m+' data-block="0">'+c+""),i.parentElement.outerHTML=c+'

    \n

    <'+p+'\n data-tight="true"'+m+' data-block="0"'+f+">"+s+""}else i.parentElement.insertAdjacentHTML("afterend",'

    \n

    '),1===i.parentElement.querySelectorAll("li").length?i.parentElement.remove():i.remove();else 3!==r.nodeType&&0===t.startOffset&&"INPUT"===r.firstChild.tagName?t.setStart(r.childNodes[1],1):(t.setEndAfter(i.lastChild),i.insertAdjacentHTML("afterend",'
  • '),document.querySelector("wbr").after(t.extractContents()));return(0,N.ib)(e[e.currentMode].element,t),st(e),Me(e),n.preventDefault(),!0}}return!1},Et=function(e,t,n,r){if(3!==t.startContainer.nodeType){var i=t.startContainer.children[t.startOffset];if(i&&"HR"===i.tagName)return t.selectNodeContents(i.previousElementSibling),t.collapse(!1),n.preventDefault(),!0}if(r){var o=r.previousElementSibling;if(o&&0===(0,N.im)(r,e[e.currentMode].element,t).start&&((0,d.vU)()&&"HR"===o.tagName||"TABLE"===o.tagName)){if("TABLE"===o.tagName){var a=o.lastElementChild.lastElementChild.lastElementChild;a.innerHTML=a.innerHTML.trimLeft()+""+r.textContent.trim(),r.remove()}else o.remove();return(0,N.ib)(e[e.currentMode].element,t),st(e),n.preventDefault(),!0}}return!1},kt=function(e){(0,d.vU)()&&3!==e.startContainer.nodeType&&"HR"===e.startContainer.tagName&&e.setStartBefore(e.startContainer)},St=function(e,t,n){var r,i;if(!(0,d.vU)())return!1;if("ArrowUp"===e.key&&t&&"TABLE"===(null===(r=t.previousElementSibling)||void 0===r?void 0:r.tagName)){var o=t.previousElementSibling;return n.selectNodeContents(o.rows[o.rows.length-1].lastElementChild),n.collapse(!1),e.preventDefault(),!0}return!("ArrowDown"!==e.key||!t||"TABLE"!==(null===(i=t.nextElementSibling)||void 0===i?void 0:i.tagName)||(n.selectNodeContents(t.nextElementSibling.rows[0].cells[0]),n.collapse(!0),e.preventDefault(),0))},Ct=function(e,t,n){return Ge(void 0,void 0,void 0,(function(){var r,o,a,l,s,d,c,u,p,m,f,h,v,g,b,w;return ze(this,(function(E){switch(E.label){case 0:return"true"!==e[e.currentMode].element.getAttribute("contenteditable")?[2]:(t.stopPropagation(),t.preventDefault(),"clipboardData"in t?(r=t.clipboardData.getData("text/html"),o=t.clipboardData.getData("text/plain"),a=t.clipboardData.files):(r=t.dataTransfer.getData("text/html"),o=t.dataTransfer.getData("text/plain"),t.dataTransfer.types.includes("Files")&&(a=t.dataTransfer.items)),l={},s=function(t,n){if(!n)return["",Lute.WalkContinue];var r=t.TokensStr();if(34===t.__internal_object__.Parent.Type&&r&&-1===r.indexOf("file://")&&e.options.upload.linkToImgUrl){var i=new XMLHttpRequest;i.open("POST",e.options.upload.linkToImgUrl),e.options.upload.token&&i.setRequestHeader("X-Upload-Token",e.options.upload.token),e.options.upload.withCredentials&&(i.withCredentials=!0),Pe(e,i),i.setRequestHeader("Content-Type","application/json; charset=utf-8"),i.onreadystatechange=function(){if(i.readyState===XMLHttpRequest.DONE){if(200===i.status){var t=i.responseText;e.options.upload.linkToImgFormat&&(t=e.options.upload.linkToImgFormat(i.responseText));var n=JSON.parse(t);if(0!==n.code)return void e.tip.show(n.msg);var r=n.data.originalURL;if("sv"===e.currentMode)e.sv.element.querySelectorAll(".vditor-sv__marker--link").forEach((function(e){e.textContent===r&&(e.textContent=n.data.url)}));else{var o=e[e.currentMode].element.querySelector('img[src="'+r+'"]');o.src=n.data.url,"ir"===e.currentMode&&(o.previousElementSibling.previousElementSibling.innerHTML=n.data.url)}st(e)}else e.tip.show(i.responseText);e.options.upload.linkToImgCallback&&e.options.upload.linkToImgCallback(i.responseText)}},i.send(JSON.stringify({url:r}))}return"ir"===e.currentMode?[''+r+"",Lute.WalkContinue]:"wysiwyg"===e.currentMode?["",Lute.WalkContinue]:[''+r+"",Lute.WalkContinue]},r.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi,"").trim()!==''+o+""&&r.replace(/&/g,"&").replace(/<(|\/)(html|body|meta)[^>]*?>/gi,"").trim()!=='\x3c!--StartFragment--\x3e'+o+"\x3c!--EndFragment--\x3e"||(r=""),(d=(new DOMParser).parseFromString(r,"text/html")).body&&(r=d.body.innerHTML),r=Lute.Sanitize(r),e.wysiwyg.getComments(e),c=e[e.currentMode].element.scrollHeight,u=function(e,t,n){void 0===n&&(n="sv");var r=document.createElement("div");r.innerHTML=e;var i=!1;1===r.childElementCount&&r.lastElementChild.style.fontFamily.indexOf("monospace")>-1&&(i=!0);var o=r.querySelectorAll("pre");if(1===r.childElementCount&&1===o.length&&"vditor-wysiwyg"!==o[0].className&&"vditor-sv"!==o[0].className&&(i=!0),0===e.indexOf('\n

    ')&&(i=!0),1===r.childElementCount&&"TABLE"===r.firstElementChild.tagName&&r.querySelector(".line-number")&&r.querySelector(".line-content")&&(i=!0),i){var a=t||e;return/\n/.test(a)||1===o.length?"wysiwyg"===n?'

    '+a.replace(/&/g,"&").replace(/
    ":"\n```\n"+a.replace(/&/g,"&").replace(/"+a.replace(/&/g,"&").replace(/":"`"+a+"`"}return!1}(r,o,e.currentMode),(p="sv"===e.currentMode?(0,y.a1)(t.target,"data-type","code-block"):(0,y.lG)(t.target,"CODE"))?("sv"===e.currentMode?document.execCommand("insertHTML",!1,o.replace(/&/g,"&").replace(/0?e.options.upload.url||e.options.upload.handler?[4,Ue(e,a)]:[3,5]:[3,7];case 4:return E.sent(),[3,6];case 5:h=new FileReader,"clipboardData"in t?(a=t.clipboardData.files,v=a[0]):t.dataTransfer.types.includes("Files")&&(a=t.dataTransfer.items,v=a[0].getAsFile()),v&&v.type.startsWith("image")&&(h.readAsDataURL(v),h.onload=function(){var t="";"wysiwyg"===e.currentMode?t+=''+v.name+'\n':t+="!["+v.name+"]("+h.result.toString()+")\n",document.execCommand("insertHTML",!1,t)}),E.label=6;case 6:return[3,8];case 7:""!==o.trim()&&0===a.length&&("ir"===e.currentMode?(l.Md2VditorIRDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),(0,N.oC)(e.lute.Md2VditorIRDOM(o),e)):"wysiwyg"===e.currentMode?(l.Md2VditorDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),(0,N.oC)(e.lute.Md2VditorDOM(o),e)):(l.Md2VditorSVDOM={renderLinkDest:s},e.lute.SetJSRenderers({renderers:l}),xe(e,o)),e.outline.render(e)),E.label=8;case 8:return"sv"!==e.currentMode&&((g=(0,y.F9)((0,N.zh)(e).startContainer))&&(b=(0,N.zh)(e),e[e.currentMode].element.querySelectorAll("wbr").forEach((function(e){e.remove()})),b.insertNode(document.createElement("wbr")),"wysiwyg"===e.currentMode?g.outerHTML=e.lute.SpinVditorDOM(g.outerHTML):g.outerHTML=e.lute.SpinVditorIRDOM(g.outerHTML),(0,N.ib)(e[e.currentMode].element,b)),e[e.currentMode].element.querySelectorAll(".vditor-"+e.currentMode+"__preview[data-render='2']").forEach((function(t){H(t,e)}))),e.wysiwyg.triggerRemoveComment(e),st(e),e[e.currentMode].element.scrollHeight-c>Math.min(e[e.currentMode].element.clientHeight,window.innerHeight)/2&&Me(e),[2]}}))}))},Lt=function(e){e.hint.render(e);var t=(0,N.zh)(e).startContainer,n=(0,y.a1)(t,"data-type","code-block-info");if(n)if(""===n.textContent.replace(i.g.ZWSP,"")&&e.hint.recentLanguage)n.textContent=i.g.ZWSP+e.hint.recentLanguage,(0,N.zh)(e).selectNodeContents(n);else{var r=[],o=n.textContent.substring(0,(0,N.im)(n,e.ir.element).start).replace(i.g.ZWSP,"");i.g.CODE_LANGUAGES.forEach((function(e){e.indexOf(o.toLowerCase())>-1&&r.push({html:e,value:e})})),e.hint.genHTML(r,o,e)}},Tt=function(e,t){void 0===t&&(t={enableAddUndoStack:!0,enableHint:!1,enableInput:!0}),t.enableHint&&Lt(e),clearTimeout(e.ir.processTimeoutId),e.ir.processTimeoutId=window.setTimeout((function(){if(!e.ir.composingLock){var n=a(e);"function"==typeof e.options.input&&t.enableInput&&e.options.input(n),e.options.counter.enable&&e.counter.render(e,n),e.options.cache.enable&&(0,d.pK)()&&(localStorage.setItem(e.options.cache.id,n),e.options.cache.after&&e.options.cache.after(n)),e.devtools&&e.devtools.renderEchart(e),t.enableAddUndoStack&&e.undo.addToUndoStack(e)}}),e.options.undoDelay)},Mt=function(e,t){var n=(0,N.zh)(e),r=(0,y.F9)(n.startContainer)||n.startContainer;if(r){var i=r.querySelector(".vditor-ir__marker--heading");i?i.innerHTML=t:(r.insertAdjacentText("afterbegin",t),n.selectNodeContents(r),n.collapse(!1)),j(e,n.cloneRange()),X(e)}},_t=function(e,t,n){var r=(0,y.a1)(e.startContainer,"data-type",n);if(r){r.firstElementChild.remove(),r.lastElementChild.remove(),e.insertNode(document.createElement("wbr"));var i=document.createElement("div");i.innerHTML=t.lute.SpinVditorIRDOM(r.outerHTML),r.outerHTML=i.firstElementChild.innerHTML.trim()}},At=function(e,t,n,r){var i=(0,N.zh)(e),o=t.getAttribute("data-type"),a=i.startContainer;3===a.nodeType&&(a=a.parentElement);var l=!0;if(t.classList.contains("vditor-menu--current"))if("quote"===o){var s=(0,y.lG)(a,"BLOCKQUOTE");s&&(i.insertNode(document.createElement("wbr")),s.outerHTML=""===s.innerHTML.trim()?'

    '+s.innerHTML+"

    ":s.innerHTML)}else if("link"===o){var d=(0,y.a1)(i.startContainer,"data-type","a");if(d){var u=(0,y.fb)(i.startContainer,"vditor-ir__link");u?(i.insertNode(document.createElement("wbr")),d.outerHTML=u.innerHTML):d.outerHTML=d.querySelector(".vditor-ir__link").innerHTML+""}}else"italic"===o?_t(i,e,"em"):"bold"===o?_t(i,e,"strong"):"strike"===o?_t(i,e,"s"):"inline-code"===o?_t(i,e,"code"):"check"!==o&&"list"!==o&&"ordered-list"!==o||(nt(e,i,o),l=!1,t.classList.remove("vditor-menu--current"));else{0===e.ir.element.childNodes.length&&(e.ir.element.innerHTML='

    ',(0,N.ib)(e.ir.element,i));var p=(0,y.F9)(i.startContainer);if("line"===o){if(p){var m='

    \n

    ';""===p.innerHTML.trim()?p.outerHTML=m:p.insertAdjacentHTML("afterend",m)}}else if("quote"===o)p&&(i.insertNode(document.createElement("wbr")),p.outerHTML='
    '+p.outerHTML+"
    ",l=!1,t.classList.add("vditor-menu--current"));else if("link"===o){var f=void 0;f=""===i.toString()?n+""+r:""+n+i.toString()+r.replace(")",")"),document.execCommand("insertHTML",!1,f),l=!1,t.classList.add("vditor-menu--current")}else if("italic"===o||"bold"===o||"strike"===o||"inline-code"===o||"code"===o||"table"===o){f=void 0,""===i.toString()?f=n+""+r:(f="code"===o||"table"===o?""+n+i.toString()+""+r:""+n+i.toString()+r+"",i.deleteContents()),"table"!==o&&"code"!==o||(f="\n"+f+"\n\n");var h=document.createElement("span");h.innerHTML=f,i.insertNode(h),j(e,i),"table"===o&&(i.selectNodeContents(getSelection().getRangeAt(0).startContainer.parentElement),(0,N.Hc)(i))}else"check"!==o&&"list"!==o&&"ordered-list"!==o||(nt(e,i,o,!1),l=!1,c(e.toolbar.elements,["check","list","ordered-list"]),t.classList.add("vditor-menu--current"))}(0,N.ib)(e.ir.element,i),Tt(e),l&&X(e)},xt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{s(r.next(e))}catch(t){o(t)}}function l(e){try{s(r.throw(e))}catch(t){o(t)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},Ht=function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]-1&&"sv"!==n.currentMode&&o.insertNode(document.createTextNode(" ")),o.collapse(!1),(0,N.Hc)(o),"wysiwyg"===n.currentMode)(d=(0,y.fb)(o.startContainer,"vditor-wysiwyg__block"))&&d.lastElementChild.classList.contains("vditor-wysiwyg__preview")&&(d.lastElementChild.innerHTML=d.firstElementChild.innerHTML,H(d.lastElementChild,n));else if("ir"===n.currentMode){var d;(d=(0,y.fb)(o.startContainer,"vditor-ir__marker--pre"))&&d.nextElementSibling.classList.contains("vditor-ir__preview")&&(d.nextElementSibling.innerHTML=d.innerHTML,H(d.nextElementSibling,n))}st(n)},this.timeId=-1,this.element=document.createElement("div"),this.element.className="vditor-hint",this.recentLanguage="",e.push({key:":"})}return e.prototype.render=function(e){var t=this;if(window.getSelection().focusNode){var n,r=getSelection().getRangeAt(0);n=r.startContainer.textContent.substring(0,r.startOffset)||"";var i=this.getKey(n,e.options.hint.extend);if(void 0===i)this.element.style.display="none",clearTimeout(this.timeId);else if(":"===this.splitChar){var o=""===i?e.options.hint.emoji:e.lute.GetEmojis(),a=[];Object.keys(o).forEach((function(e){0===e.indexOf(i.toLowerCase())&&(o[e].indexOf(".")>-1?a.push({html:' :'+e+":",value:":"+e+":"}):a.push({html:''+o[e]+""+e,value:o[e]}))})),this.genHTML(a,i,e)}else e.options.hint.extend.forEach((function(n){n.key===t.splitChar&&(clearTimeout(t.timeId),t.timeId=window.setTimeout((function(){return xt(t,void 0,void 0,(function(){var t;return Ht(this,(function(r){switch(r.label){case 0:return t=this.genHTML,[4,n.hint(i)];case 1:return t.apply(this,[r.sent(),i,e]),[2]}}))}))}),e.options.hint.delay))}))}},e.prototype.genHTML=function(e,t,n){var r=this;if(0!==e.length){var i=n[n.currentMode].element,o=(0,N.Ny)(i),a=o.left+("left"===n.options.outline.position?n.outline.element.offsetWidth:0),l=o.top,s="";e.forEach((function(e,n){if(!(n>7)){var r=e.html;if(""!==t){var i=r.lastIndexOf(">")+1,o=r.substr(i),a=o.toLowerCase().indexOf(t.toLowerCase());a>-1&&(o=o.substring(0,a)+""+o.substring(a,a+t.length)+""+o.substring(a+t.length),r=r.substr(0,i)+o)}s+='"}})),this.element.innerHTML=s;var d=parseInt(document.defaultView.getComputedStyle(i,null).getPropertyValue("line-height"),10);this.element.style.top=l+(d||22)+"px",this.element.style.left=a+"px",this.element.style.display="block",this.element.style.right="auto",this.element.querySelectorAll("button").forEach((function(e){e.addEventListener("click",(function(t){r.fillEmoji(e,n),t.preventDefault()}))})),this.element.getBoundingClientRect().bottom>window.innerHeight&&(this.element.style.top=l-this.element.offsetHeight+"px"),this.element.getBoundingClientRect().right>window.innerWidth&&(this.element.style.left="auto",this.element.style.right="0")}else this.element.style.display="none"},e.prototype.select=function(e,t){if(0===this.element.querySelectorAll("button").length||"none"===this.element.style.display)return!1;var n=this.element.querySelector(".vditor-hint--current");if("ArrowDown"===e.key)return e.preventDefault(),e.stopPropagation(),n.removeAttribute("class"),n.nextElementSibling?n.nextElementSibling.className="vditor-hint--current":this.element.children[0].className="vditor-hint--current",!0;if("ArrowUp"===e.key){if(e.preventDefault(),e.stopPropagation(),n.removeAttribute("class"),n.previousElementSibling)n.previousElementSibling.className="vditor-hint--current";else{var r=this.element.children.length;this.element.children[r-1].className="vditor-hint--current"}return!0}return!((0,d.yl)(e)||e.shiftKey||e.altKey||"Enter"!==e.key||e.isComposing||(e.preventDefault(),e.stopPropagation(),this.fillEmoji(n,t),0))},e.prototype.getKey=function(e,t){var n,r=this;if(this.lastIndex=-1,this.splitChar="",t.forEach((function(t){var n=e.lastIndexOf(t.key);r.lastIndex1&&a.trim()===a)if(2===i.length&&""===i[0]&&i[1].length<32)n=i[1];else{var l=i[i.length-2].slice(-1);" "===(0,o.X)(l)&&a.length<32&&(n=a)}return n},e}(),Dt=function(){function e(e){this.composingLock=!1;var t=document.createElement("div");t.className="vditor-ir",t.innerHTML='
    ',this.element=t.firstElementChild,this.bindEvent(e),Ee(e,this.element),ke(e,this.element),Se(e,this.element),_e(e,this.element),Ae(e,this.element),Ce(e,this.element),Le(e,this.element,this.copy),Te(e,this.element,this.copy)}return e.prototype.copy=function(e,t){var n=getSelection().getRangeAt(0);if(""!==n.toString()){e.stopPropagation(),e.preventDefault();var r=document.createElement("div");r.appendChild(n.cloneContents()),e.clipboardData.setData("text/plain",t.lute.VditorIRDOM2Md(r.innerHTML).trim()),e.clipboardData.setData("text/html","")}},e.prototype.bindEvent=function(e){var t=this;this.element.addEventListener("paste",(function(t){Ct(e,t,{pasteCode:function(e){document.execCommand("insertHTML",!1,e)}})})),this.element.addEventListener("compositionstart",(function(e){t.composingLock=!0})),this.element.addEventListener("compositionend",(function(n){(0,d.vU)()||j(e,getSelection().getRangeAt(0).cloneRange()),t.composingLock=!1})),this.element.addEventListener("input",(function(n){if("deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType)return t.preventInput?(t.preventInput=!1,void Tt(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})):void(t.composingLock||"‘"===n.data||"“"===n.data||"《"===n.data||j(e,getSelection().getRangeAt(0).cloneRange(),!1,n))})),this.element.addEventListener("click",(function(n){if("INPUT"===n.target.tagName)return n.target.checked?n.target.setAttribute("checked","checked"):n.target.removeAttribute("checked"),t.preventInput=!0,void Tt(e);var r=(0,N.zh)(e),o=(0,y.fb)(n.target,"vditor-ir__preview");if(o||(o=(0,y.fb)(r.startContainer,"vditor-ir__preview")),o&&(o.previousElementSibling.firstElementChild?r.selectNodeContents(o.previousElementSibling.firstElementChild):r.selectNodeContents(o.previousElementSibling),r.collapse(!0),(0,N.Hc)(r),Me(e)),"IMG"===n.target.tagName){var a=n.target.parentElement.querySelector(".vditor-ir__marker--link");a&&(r.selectNode(a),(0,N.Hc)(r))}var l=(0,y.a1)(n.target,"data-type","a");if(!l||l.classList.contains("vditor-ir__node--expand")){if(n.target.isEqualNode(t.element)&&t.element.lastElementChild&&r.collapsed){var s=t.element.lastElementChild.getBoundingClientRect();n.y>s.top+s.height&&("P"===t.element.lastElementChild.tagName&&""===t.element.lastElementChild.textContent.trim().replace(i.g.ZWSP,"")?(r.selectNodeContents(t.element.lastElementChild),r.collapse(!1)):(t.element.insertAdjacentHTML("beforeend",'

    '+i.g.ZWSP+"

    "),(0,N.ib)(t.element,r)))}""===r.toString()?P(r,e):setTimeout((function(){P((0,N.zh)(e),e)})),O(n,e),X(e)}else window.open(l.querySelector(":scope > .vditor-ir__marker--link").textContent)})),this.element.addEventListener("keyup",(function(n){if(!n.isComposing&&!(0,d.yl)(n))if("Enter"===n.key&&Me(e),X(e),"Backspace"!==n.key&&"Delete"!==n.key||""===e.ir.element.innerHTML||1!==e.ir.element.childNodes.length||!e.ir.element.firstElementChild||"P"!==e.ir.element.firstElementChild.tagName||0!==e.ir.element.firstElementChild.childElementCount||""!==e.ir.element.textContent&&"\n"!==e.ir.element.textContent){var r=(0,N.zh)(e);"Backspace"===n.key?((0,d.vU)()&&"\n"===r.startContainer.textContent&&1===r.startOffset&&(r.startContainer.textContent="",P(r,e)),t.element.querySelectorAll(".language-math").forEach((function(e){var t=e.querySelector("br");t&&t.remove()}))):n.key.indexOf("Arrow")>-1?("ArrowLeft"!==n.key&&"ArrowRight"!==n.key||Lt(e),P(r,e)):229===n.keyCode&&""===n.code&&"Unidentified"===n.key&&P(r,e);var o=(0,y.fb)(r.startContainer,"vditor-ir__preview");if(o){if("ArrowUp"===n.key||"ArrowLeft"===n.key)return o.previousElementSibling.firstElementChild?r.selectNodeContents(o.previousElementSibling.firstElementChild):r.selectNodeContents(o.previousElementSibling),r.collapse(!1),n.preventDefault(),!0;if("SPAN"===o.tagName&&("ArrowDown"===n.key||"ArrowRight"===n.key))return"html-entity"===o.parentElement.getAttribute("data-type")?(o.parentElement.insertAdjacentText("afterend",i.g.ZWSP),r.setStart(o.parentElement.nextSibling,1)):r.selectNodeContents(o.parentElement.lastElementChild),r.collapse(!1),n.preventDefault(),!0}}else e.ir.element.innerHTML=""}))},e}(),Ot=function(e){return"sv"===e.currentMode?e.lute.Md2HTML(a(e)):"wysiwyg"===e.currentMode?e.lute.VditorDOM2HTML(e.wysiwyg.element.innerHTML):"ir"===e.currentMode?e.lute.VditorIRDOM2HTML(e.ir.element.innerHTML):void 0},It=n(895),jt=n(818),Rt=function(){function e(e){this.element=document.createElement("div"),this.element.className="vditor-outline",this.element.innerHTML='
    '+e+'
    \n
    '}return e.prototype.render=function(e){return"block"===e.preview.element.style.display?(0,jt.k)(e.preview.element.lastElementChild,this.element.lastElementChild,e):(0,jt.k)(e[e.currentMode].element,this.element.lastElementChild,e)},e.prototype.toggle=function(e,t){var n;void 0===t&&(t=!0);var r=null===(n=e.toolbar.elements.outline)||void 0===n?void 0:n.firstElementChild;if(t&&window.innerWidth>=i.g.MOBILE_WIDTH?(this.element.style.display="block",this.render(e),null==r||r.classList.add("vditor-menu--current")):(this.element.style.display="none",null==r||r.classList.remove("vditor-menu--current")),getSelection().rangeCount>0){var o=getSelection().getRangeAt(0);e[e.currentMode].element.contains(o.startContainer)?(0,N.Hc)(o):e[e.currentMode].element.focus()}W(e)},e}(),Pt=n(554),Bt=function(){function e(e){var t=this;this.element=document.createElement("div"),this.element.className="vditor-preview";var n=document.createElement("div");n.className="vditor-reset",e.options.classes.preview&&n.classList.add(e.options.classes.preview),n.style.maxWidth=e.options.preview.maxWidth+"px",n.addEventListener("copy",(function(n){if("TEXTAREA"!==n.target.tagName){var r=document.createElement("div");r.className="vditor-reset",r.appendChild(getSelection().getRangeAt(0).cloneContents()),t.copyToX(e,r),n.preventDefault()}})),n.addEventListener("click",(function(r){var i=(0,y.lG)(r.target,"SPAN");if(i&&(0,y.fb)(i,"vditor-toc")){var o=n.querySelector("#"+i.getAttribute("data-target-id"));o&&(t.element.scrollTop=o.offsetTop)}else"IMG"===r.target.tagName&&(0,B.E)(r.target,e.options.lang,e.options.theme)}));var r=e.options.preview.actions,i=document.createElement("div");i.className="vditor-preview__action";for(var o=[],a=0;aDesktop');break;case"tablet":o.push('');break;case"mobile":o.push('');break;case"mp-wechat":o.push('');break;case"zhihu":o.push('')}else o.push('")}i.innerHTML=o.join(""),0===r.length&&(i.style.display="none"),this.element.appendChild(i),this.element.appendChild(n),i.addEventListener((0,d.Le)(),(function(o){var a=(0,b.S)(o.target,"BUTTON");if(a){var l=a.getAttribute("data-type"),s=r.find((function(e){return(null==e?void 0:e.key)===l}));s?s.click(l):"mp-wechat"!==l&&"zhihu"!==l?(n.style.width="desktop"===l?"auto":"tablet"===l?"780px":"360px",n.scrollWidth>n.parentElement.clientWidth&&(n.style.width="auto"),t.render(e),i.querySelectorAll("button").forEach((function(e){e.classList.remove("vditor-preview__action--current")})),a.classList.add("vditor-preview__action--current")):t.copyToX(e,t.element.lastElementChild.cloneNode(!0),l)}}))}return e.prototype.render=function(e,t){var n=this;if(clearTimeout(this.mdTimeoutId),"none"!==this.element.style.display)if(t)this.element.lastElementChild.innerHTML=t;else if(""!==a(e).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")){var r=(new Date).getTime(),i=a(e);this.mdTimeoutId=window.setTimeout((function(){if(e.options.preview.url){var t=new XMLHttpRequest;t.open("POST",e.options.preview.url),t.setRequestHeader("Content-Type","application/json;charset=UTF-8"),t.onreadystatechange=function(){if(t.readyState===XMLHttpRequest.DONE)if(200===t.status){var o=JSON.parse(t.responseText);if(0!==o.code)return void e.tip.show(o.msg);e.options.preview.transform&&(o.data=e.options.preview.transform(o.data)),n.element.lastElementChild.innerHTML=o.data,n.afterRender(e,r)}else{var a=e.lute.Md2HTML(i);e.options.preview.transform&&(a=e.options.preview.transform(a)),n.element.lastElementChild.innerHTML=a,n.afterRender(e,r)}},t.send(JSON.stringify({markdownText:i}))}else{var o=e.lute.Md2HTML(i);e.options.preview.transform&&(o=e.options.preview.transform(o)),n.element.lastElementChild.innerHTML=o,n.afterRender(e,r)}}),e.options.preview.delay)}else this.element.lastElementChild.innerHTML="";else"renderPerformance"===this.element.getAttribute("data-type")&&e.tip.hide()},e.prototype.afterRender=function(e,t){e.options.preview.parse&&e.options.preview.parse(this.element);var n=(new Date).getTime()-t;(new Date).getTime()-t>2600?(e.tip.show(window.VditorI18n.performanceTip.replace("${x}",n.toString())),e.preview.element.setAttribute("data-type","renderPerformance")):"renderPerformance"===e.preview.element.getAttribute("data-type")&&(e.tip.hide(),e.preview.element.removeAttribute("data-type"));var r=e.preview.element.querySelector(".vditor-comment--focus");r&&r.classList.remove("vditor-comment--focus"),(0,S.O)(e.preview.element.lastElementChild),(0,T.s)(e.options.preview.hljs,e.preview.element.lastElementChild,e.options.cdn),(0,_.i)(e.preview.element.lastElementChild,e.options.cdn,e.options.theme),(0,C.P)(e.preview.element.lastElementChild,e.options.cdn),(0,L.v)(e.preview.element.lastElementChild,e.options.cdn),(0,k.p)(e.preview.element.lastElementChild,e.options.cdn,e.options.theme),(0,A.P)(e.preview.element.lastElementChild,e.options.cdn,e.options.theme),(0,x.B)(e.preview.element.lastElementChild,e.options.cdn),(0,E.Q)(e.preview.element.lastElementChild,e.options.cdn),(0,Pt.Y)(e.preview.element.lastElementChild);var i=e.preview.element,o=e.outline.render(e);""===o&&(o="[ToC]"),i.querySelectorAll('[data-type="toc-block"]').forEach((function(t){t.innerHTML=o,(0,M.H)(t,{cdn:e.options.cdn,math:e.options.preview.math})})),(0,M.H)(e.preview.element.lastElementChild,{cdn:e.options.cdn,math:e.options.preview.math})},e.prototype.copyToX=function(e,t,n){void 0===n&&(n="mp-wechat"),"zhihu"!==n?t.querySelectorAll(".katex-html .base").forEach((function(e){e.style.display="initial"})):t.querySelectorAll(".language-math").forEach((function(e){e.outerHTML=''+e.getAttribute('})),t.style.backgroundColor="#fff",t.querySelectorAll("code").forEach((function(e){e.style.backgroundImage="none"})),this.element.append(t);var r=t.ownerDocument.createRange();r.selectNode(t),(0,N.Hc)(r),document.execCommand("copy"),this.element.lastElementChild.remove(),e.tip.show("已复制,可到"+("zhihu"===n?"知乎":"微信公众号平台")+"进行粘贴")},e}(),qt=function(){function e(e){this.element=document.createElement("div"),this.element.className="vditor-resize vditor-resize--"+e.options.resize.position,this.element.innerHTML='
    ',this.bindEvent(e)}return e.prototype.bindEvent=function(e){var t=this;this.element.addEventListener("mousedown",(function(n){var r=document,i=n.clientY,o=e.element.offsetHeight,a=63+e.element.querySelector(".vditor-toolbar").clientHeight;r.ondragstart=function(){return!1},window.captureEvents&&window.captureEvents(),t.element.classList.add("vditor-resize--selected"),r.onmousemove=function(t){"top"===e.options.resize.position?e.element.style.height=Math.max(a,o+(i-t.clientY))+"px":e.element.style.height=Math.max(a,o+(t.clientY-i))+"px",e.options.typewriterMode&&(e.sv.element.style.paddingBottom=e.sv.element.parentElement.offsetHeight/2+"px")},r.onmouseup=function(){e.options.resize.after&&e.options.resize.after(e.element.offsetHeight-o),window.captureEvents&&window.captureEvents(),r.onmousemove=null,r.onmouseup=null,r.ondragstart=null,r.onselectstart=null,r.onselect=null,t.element.classList.remove("vditor-resize--selected")}}))},e}(),Vt=function(){function e(e){this.composingLock=!1,this.element=document.createElement("pre"),this.element.className="vditor-sv vditor-reset",this.element.setAttribute("placeholder",e.options.placeholder),this.element.setAttribute("contenteditable","true"),this.element.setAttribute("spellcheck","false"),this.bindEvent(e),Ee(e,this.element),Se(e,this.element),_e(e,this.element),Ae(e,this.element),Ce(e,this.element),Le(e,this.element,this.copy),Te(e,this.element,this.copy)}return e.prototype.copy=function(e,t){e.stopPropagation(),e.preventDefault(),e.clipboardData.setData("text/plain",we(t[t.currentMode].element))},e.prototype.bindEvent=function(e){var t=this;this.element.addEventListener("paste",(function(t){Ct(e,t,{pasteCode:function(e){document.execCommand("insertHTML",!1,e)}})})),this.element.addEventListener("scroll",(function(){if("block"===e.preview.element.style.display){var n=t.element.scrollTop,r=t.element.clientHeight,i=t.element.scrollHeight-parseFloat(t.element.style.paddingBottom||"0"),o=e.preview.element;o.scrollTop=n/r>.5?(n+r)*o.scrollHeight/i-r:n*o.scrollHeight/i}})),this.element.addEventListener("compositionstart",(function(e){t.composingLock=!0})),this.element.addEventListener("compositionend",(function(n){(0,d.vU)()||q(e,n),t.composingLock=!1})),this.element.addEventListener("input",(function(n){if("deleteByDrag"!==n.inputType&&"insertFromDrop"!==n.inputType&&!t.composingLock&&"‘"!==n.data&&"“"!==n.data&&"《"!==n.data)return t.preventInput?(t.preventInput=!1,void Oe(e,{enableAddUndoStack:!0,enableHint:!0,enableInput:!0})):void q(e,n)})),this.element.addEventListener("keyup",(function(t){t.isComposing||(0,d.yl)(t)||("Backspace"!==t.key&&"Delete"!==t.key||""===e.sv.element.innerHTML||1!==e.sv.element.childNodes.length||!e.sv.element.firstElementChild||"DIV"!==e.sv.element.firstElementChild.tagName||2!==e.sv.element.firstElementChild.childElementCount||""!==e.sv.element.firstElementChild.textContent&&"\n"!==e.sv.element.textContent?"Enter"===t.key&&Me(e):e.sv.element.innerHTML="")}))},e}(),Ut=function(){function e(){this.element=document.createElement("div"),this.element.className="vditor-tip"}return e.prototype.show=function(e,t){var n=this;void 0===t&&(t=6e3),this.element.className="vditor-tip vditor-tip--show",0===t?(this.element.innerHTML='
    '+e+'\n
    X
    ',this.element.querySelector(".vditor-tip__close").addEventListener("click",(function(){n.hide()}))):(this.element.innerHTML='
    '+e+"
    ",setTimeout((function(){n.hide()}),t)),this.element.removeAttribute("style"),setTimeout((function(){n.element.getBoundingClientRect().top<46&&(n.element.style.position="fixed",n.element.style.top="46px")}),150)},e.prototype.hide=function(){this.element.className="vditor-messageElementtip",this.element.innerHTML=""},e}(),Wt=function(e,t){if(t.options.preview.mode!==e){switch(t.options.preview.mode=e,e){case"both":t.sv.element.style.display="block",t.preview.element.style.display="block",t.preview.render(t),u(t.toolbar.elements,["both"]);break;case"editor":t.sv.element.style.display="block",t.preview.element.style.display="none",c(t.toolbar.elements,["both"])}t.devtools&&t.devtools.renderEchart(t)}},Kt=(Z=function(e,t){return(Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Gt=function(e){function t(t,n){var r=e.call(this,t,n)||this;return"both"===t.options.preview.mode&&r.element.children[0].classList.add("vditor-menu--current"),r.element.children[0].addEventListener((0,d.Le)(),(function(e){r.element.firstElementChild.classList.contains(i.g.CLASS_MENU_DISABLED)||(e.preventDefault(),"sv"===t.currentMode&&("both"===t.options.preview.mode?Wt("editor",t):Wt("both",t)))})),r}return Kt(t,e),t}(ve),zt=function(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__br"},Ft=n(312),Zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jt=function(e){function t(t,n){var r=e.call(this,t,n)||this,o=r.element.children[0],a=document.createElement("div");a.className="vditor-hint"+(2===n.level?"":" vditor-panel--arrow");var l="";return i.g.CODE_THEME.forEach((function(e){l+=""})),a.innerHTML='
    '+l+"
    ",a.addEventListener((0,d.Le)(),(function(e){"BUTTON"===e.target.tagName&&(v(t,["subToolbar"]),t.options.preview.hljs.style=e.target.textContent,(0,Ft.Y)(e.target.textContent,t.options.cdn),e.preventDefault(),e.stopPropagation())})),r.element.appendChild(a),g(t,a,o,n.level),r}return Zt(t,e),t}(ve),Xt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yt=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=r.element.children[0],o=document.createElement("div");o.className="vditor-hint"+(2===n.level?"":" vditor-panel--arrow");var a="";return Object.keys(t.options.preview.theme.list).forEach((function(e){a+='"})),o.innerHTML='
    '+a+"
    ",o.addEventListener((0,d.Le)(),(function(e){"BUTTON"===e.target.tagName&&(v(t,["subToolbar"]),t.options.preview.theme.current=e.target.getAttribute("data-type"),(0,V.Z)(t.options.preview.theme.current,t.options.preview.theme.path),e.preventDefault(),e.stopPropagation())})),r.element.appendChild(o),g(t,o,i,n.level),r}return Xt(t,e),t}(ve),Qt=function(){function e(e){this.element=document.createElement("span"),this.element.className="vditor-counter vditor-tooltipped vditor-tooltipped__nw",this.render(e,"")}return e.prototype.render=function(e,t){var n=t.endsWith("\n")?t.length-1:t.length;if("text"===e.options.counter.type&&e[e.currentMode]){var r=e[e.currentMode].element.cloneNode(!0);r.querySelectorAll(".vditor-wysiwyg__preview").forEach((function(e){e.remove()})),n=r.textContent.length}"number"==typeof e.options.counter.max?(n>e.options.counter.max?this.element.className="vditor-counter vditor-counter--error":this.element.className="vditor-counter",this.element.innerHTML=n+"/"+e.options.counter.max):this.element.innerHTML=""+n,this.element.setAttribute("aria-label",e.options.counter.type),e.options.counter.after&&e.options.counter.after(n,{enable:e.options.counter.enable,max:e.options.counter.max,type:e.options.counter.type})},e}(),$t=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),en=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.element.children[0].innerHTML=n.icon,r.element.children[0].addEventListener((0,d.Le)(),(function(e){e.preventDefault(),e.currentTarget.classList.contains(i.g.CLASS_MENU_DISABLED)||n.click(e,t)})),r}return $t(t,e),t}(ve),tn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nn=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.element.firstElementChild.addEventListener((0,d.Le)(),(function(e){var n=r.element.firstElementChild;n.classList.contains(i.g.CLASS_MENU_DISABLED)||(e.preventDefault(),n.classList.contains("vditor-menu--current")?(n.classList.remove("vditor-menu--current"),t.devtools.element.style.display="none",W(t)):(n.classList.add("vditor-menu--current"),t.devtools.element.style.display="block",W(t),t.devtools.renderEchart(t)))})),r}return tn(t,e),t}(ve),rn=function(){this.element=document.createElement("div"),this.element.className="vditor-toolbar__divider"},on=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),an=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=document.createElement("div");i.className="vditor-panel vditor-panel--arrow";var o="";return Object.keys(t.options.hint.emoji).forEach((function(e){var n=t.options.hint.emoji[e];n.indexOf(".")>-1?o+='':o+='"})),i.innerHTML='
    '+o+'
    \n '+(t.options.hint.emojiTail||"")+"\n
    ",r.element.appendChild(i),g(t,i,r.element.firstElementChild,n.level),r.bindEvent(t),r}return on(t,e),t.prototype.bindEvent=function(e){var t=this;this.element.lastElementChild.addEventListener((0,d.Le)(),(function(n){var r=(0,b.S)(n.target,"BUTTON");if(r){n.preventDefault();var i=r.getAttribute("data-value"),o=(0,N.zh)(e),a=i;if("wysiwyg"===e.currentMode?a=e.lute.SpinVditorDOM(i):"ir"===e.currentMode&&(a=e.lute.SpinVditorIRDOM(i)),i.indexOf(":")>-1&&"sv"!==e.currentMode){var l=document.createElement("div");l.innerHTML=a,a=l.firstElementChild.firstElementChild.outerHTML+" ",(0,N.oC)(a,e)}else o.extractContents(),o.insertNode(document.createTextNode(i));o.collapse(!1),(0,N.Hc)(o),t.element.lastElementChild.style.display="none",st(e)}})),this.element.lastElementChild.addEventListener("mouseover",(function(e){var n=(0,b.S)(e.target,"BUTTON");n&&(t.element.querySelector(".vditor-emojis__tip").innerHTML=n.getAttribute("data-key"))}))},t}(ve),ln=function(e,t,n){var r=document.createElement("a");"download"in r?(r.download=n,r.style.display="none",r.href=URL.createObjectURL(new Blob([t])),document.body.appendChild(r),r.click(),r.remove()):e.tip.show(window.VditorI18n.downloadTip,0)},sn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dn=function(e){function t(t,n){var r=e.call(this,t,n)||this,i=r.element.children[0],o=document.createElement("div");return o.className="vditor-hint"+(2===n.level?"":" vditor-panel--arrow"),o.innerHTML='\n\n',o.addEventListener((0,d.Le)(),(function(e){var n,r,i=e.target;if("BUTTON"===i.tagName){switch(i.getAttribute("data-type")){case"markdown":r=a(n=t),ln(n,r,r.substr(0,10)+".md");break;case"pdf":!function(e){e.tip.show(window.VditorI18n.generate,3800);var t=document.querySelector("iframe");t.contentDocument.open(),t.contentDocument.write('\nGuobaAdmin
    GuobaAdmin
    \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/21ae6624.webp b/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/21ae6624.webp deleted file mode 100644 index 2490a84388a29a661a82f71a72575248e075f9ff..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/21ae6624.webp and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/logo.png b/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/logo.png deleted file mode 100644 index 4c4dc0cb3332a97c7f46f3687c2b01c4f2f275ef..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/logo.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/pwa-192x192.png b/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/pwa-192x192.png deleted file mode 100644 index 85856d00475d4bc9c15b9c22abb81c00e6f371c1..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/pwa-192x192.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/pwa-512x512.png b/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/pwa-512x512.png deleted file mode 100644 index c0289f7f3e0f91cc76d8f8b0e34654cfd20cc19e..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/server/static/resource/img/pwa-512x512.png and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/langs/en.js b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/langs/en.js deleted file mode 100644 index 27337c3941ffbd7d1745403315987517c7d26303..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/langs/en.js +++ /dev/null @@ -1,419 +0,0 @@ -tinymce.addI18n('es', { - Redo: 'Rehacer', - Undo: 'Deshacer', - Cut: 'Cortar', - Copy: 'Copiar', - Paste: 'Pegar', - 'Select all': 'Seleccionar todo', - 'New document': 'Nuevo documento', - Ok: 'Ok', - Cancel: 'Cancelar', - 'Visual aids': 'Ayudas visuales', - Bold: 'Negrita', - Italic: 'Cursiva', - Underline: 'Subrayado', - Strikethrough: 'Tachado', - Superscript: 'Super\u00edndice', - Subscript: 'Sub\u00edndice', - 'Clear formatting': 'Limpiar formato', - 'Align left': 'Alinear a la izquierda', - 'Align center': 'Alinear al centro', - 'Align right': 'Alinear a la derecha', - Justify: 'Justificar', - 'Bullet list': 'Lista de vi\u00f1etas', - 'Numbered list': 'Lista numerada', - 'Decrease indent': 'Disminuir sangr\u00eda', - 'Increase indent': 'Incrementar sangr\u00eda', - Close: 'Cerrar', - Formats: 'Formatos', - "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": 'Su navegador no es compatible con el acceso directo al portapapeles. Use las teclas Crtl+X\/C\/V de su teclado.', - Headers: 'Encabezados', - 'Header 1': 'Encabezado 1', - 'Header 2': 'Encabezado 2', - 'Header 3': 'Encabezado 3', - 'Header 4': 'Encabezado 4', - 'Header 5': 'Encabezado 5', - 'Header 6': 'Encabezado 6', - Headings: 'Encabezados', - 'Heading 1': 'Encabezado 1', - 'Heading 2': 'Encabezado 2', - 'Heading 3': 'Encabezado 3', - 'Heading 4': 'Encabezado 4', - 'Heading 5': 'Encabezado 5', - 'Heading 6': 'Encabezado 6', - Preformatted: 'Con formato previo', - Div: 'Div', - Pre: 'Pre', - Code: 'C\u00f3digo', - Paragraph: 'P\u00e1rrafo', - Blockquote: 'Blockquote', - Inline: 'Alineado', - Blocks: 'Bloques', - 'Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.': 'Pegar est\u00e1 ahora en modo de texto plano. El contenido se pegar\u00e1 como texto plano hasta que desactive esta opci\u00f3n.', - Fonts: 'Fuentes', - 'Font Sizes': 'Tama\u00f1os de fuente', - Class: 'Clase', - 'Browse for an image': 'Buscar una imagen', - OR: 'OR', - 'Drop an image here': 'Arrastre una imagen aqu\u00ed', - Upload: 'Cargar', - Block: 'Bloque', - Align: 'Alinear', - Default: 'Por defecto', - Circle: 'C\u00edrculo', - Disc: 'Disco', - Square: 'Cuadrado', - 'Lower Alpha': 'Inferior Alfa', - 'Lower Greek': 'Inferior Griega', - 'Lower Roman': 'Inferior Romana', - 'Upper Alpha': 'Superior Alfa', - 'Upper Roman': 'Superior Romana', - 'Anchor...': 'Anclaje...', - Name: 'Nombre', - Id: 'Id', - 'Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.': 'Deber\u00eda comenzar por una letra, seguida solo de letras, n\u00fameros, guiones, puntos, dos puntos o guiones bajos.', - 'You have unsaved changes are you sure you want to navigate away?': 'Tiene cambios sin guardar. \u00bfEst\u00e1 seguro de que quiere salir?', - 'Restore last draft': 'Restaurar el \u00faltimo borrador', - 'Special character...': 'Car\u00e1cter especial...', - 'Source code': 'C\u00f3digo fuente', - 'Insert\/Edit code sample': 'Insertar\/editar c\u00f3digo de prueba', - Language: 'Idioma', - 'Code sample...': 'Ejemplo de c\u00f3digo...', - 'Color Picker': 'Selector de colores', - R: 'R', - G: 'V', - B: 'A', - 'Left to right': 'De izquierda a derecha', - 'Right to left': 'De derecha a izquierda', - 'Emoticons...': 'Emoticones...', - 'Metadata and Document Properties': 'Metadatos y propiedades del documento', - Title: 'T\u00edtulo', - Keywords: 'Palabras clave', - Description: 'Descripci\u00f3n', - Robots: 'Robots', - Author: 'Autor', - Encoding: 'Codificaci\u00f3n', - Fullscreen: 'Pantalla completa', - Action: 'Acci\u00f3n', - Shortcut: 'Atajo', - Help: 'Ayuda', - Address: 'Direcci\u00f3n', - 'Focus to menubar': 'Enfocar la barra del men\u00fa', - 'Focus to toolbar': 'Enfocar la barra de herramientas', - 'Focus to element path': 'Enfocar la ruta del elemento', - 'Focus to contextual toolbar': 'Enfocar la barra de herramientas contextual', - 'Insert link (if link plugin activated)': 'Insertar enlace (si el complemento de enlace est\u00e1 activado)', - 'Save (if save plugin activated)': 'Guardar (si el componente de salvar est\u00e1 activado)', - 'Find (if searchreplace plugin activated)': 'Buscar (si el complemento buscar-remplazar est\u00e1 activado)', - 'Plugins installed ({0}):': 'Plugins instalados ({0}):', - 'Premium plugins:': 'Complementos premium:', - 'Learn more...': 'Aprende m\u00e1s...', - 'You are using {0}': 'Estas usando {0}', - Plugins: 'Complementos', - 'Handy Shortcuts': 'Accesos directos', - 'Horizontal line': 'L\u00ednea horizontal', - 'Insert\/edit image': 'Insertar\/editar imagen', - 'Image description': 'Descripci\u00f3n de la imagen', - Source: 'Enlace', - Dimensions: 'Dimensiones', - 'Constrain proportions': 'Restringir proporciones', - General: 'General', - Advanced: 'Avanzado', - Style: 'Estilo', - 'Vertical space': 'Espacio vertical', - 'Horizontal space': 'Espacio horizontal', - Border: 'Borde', - 'Insert image': 'Insertar imagen', - 'Image...': 'Imagen...', - 'Image list': 'Lista de im\u00e1genes', - 'Rotate counterclockwise': 'Girar a la izquierda', - 'Rotate clockwise': 'Girar a la derecha', - 'Flip vertically': 'Invertir verticalmente', - 'Flip horizontally': 'Invertir horizontalmente', - 'Edit image': 'Editar imagen', - 'Image options': 'Opciones de imagen', - 'Zoom in': 'Acercar', - 'Zoom out': 'Alejar', - Crop: 'Recortar', - Resize: 'Redimensionar', - Orientation: 'Orientaci\u00f3n', - Brightness: 'Brillo', - Sharpen: 'Forma', - Contrast: 'Contraste', - 'Color levels': 'Niveles de color', - Gamma: 'Gamma', - Invert: 'Invertir', - Apply: 'Aplicar', - Back: 'Atr\u00e1s', - 'Insert date\/time': 'Insertar fecha\/hora', - 'Date\/time': 'Fecha\/hora', - 'Insert\/Edit Link': 'Insertar\/editar enlace', - 'Insert\/edit link': 'Insertar\/editar enlace', - 'Text to display': 'Texto para mostrar', - Url: 'URL', - 'Open link in...': 'Abrir enlace en...', - 'Current window': 'Ventana actual', - None: 'Ninguno', - 'New window': 'Nueva ventana', - 'Remove link': 'Quitar enlace', - Anchors: 'Anclas', - 'Link...': 'Enlace...', - 'Paste or type a link': 'Pega o introduce un enlace', - 'The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?': 'El enlace que has introducido no parece ser una direcci\u00f3n de correo electr\u00f3nico. Quieres a\u00f1adir el prefijo necesario mailto: ?', - 'The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?': 'El enlace que has introducido no parece ser una enlace externo. Quieres a\u00f1adir el prefijo necesario http:\/\/ ?', - 'Link list': 'Lista de enlaces', - 'Insert video': 'Insertar video', - 'Insert\/edit video': 'Insertar\/editar video', - 'Insert\/edit media': 'Insertar\/editar medio', - 'Alternative source': 'Enlace alternativo', - 'Alternative source URL': 'Origen de URL alternativo', - 'Media poster (Image URL)': 'P\u00f3ster de medio (URL de imagen)', - 'Paste your embed code below:': 'Pega tu c\u00f3digo embebido debajo', - Embed: 'Incrustado', - 'Media...': 'Medios...', - 'Nonbreaking space': 'Espacio fijo', - 'Page break': 'Salto de p\u00e1gina', - 'Paste as text': 'Pegar como texto', - Preview: 'Previsualizar', - 'Print...': 'Imprimir...', - Save: 'Guardar', - Find: 'Buscar', - 'Replace with': 'Reemplazar con', - Replace: 'Reemplazar', - 'Replace all': 'Reemplazar todo', - Previous: 'Anterior', - Next: 'Siguiente', - 'Find and replace...': 'Buscar y reemplazar...', - 'Could not find the specified string.': 'No se encuentra la cadena de texto especificada', - 'Match case': 'Coincidencia exacta', - 'Find whole words only': 'Solo palabras completas', - 'Spell check': 'Revisar ortograf\u00eda', - Ignore: 'Ignorar', - 'Ignore all': 'Ignorar todos', - Finish: 'Finalizar', - 'Add to Dictionary': 'A\u00f1adir al Diccionario', - 'Insert table': 'Insertar tabla', - 'Table properties': 'Propiedades de la tabla', - 'Delete table': 'Eliminar tabla', - Cell: 'Celda', - Row: 'Fila', - Column: 'Columna', - 'Cell properties': 'Propiedades de la celda', - 'Merge cells': 'Combinar celdas', - 'Split cell': 'Dividir celdas', - 'Insert row before': 'Insertar fila antes', - 'Insert row after': 'Insertar fila despu\u00e9s ', - 'Delete row': 'Eliminar fila', - 'Row properties': 'Propiedades de la fila', - 'Cut row': 'Cortar fila', - 'Copy row': 'Copiar fila', - 'Paste row before': 'Pegar la fila antes', - 'Paste row after': 'Pegar la fila despu\u00e9s', - 'Insert column before': 'Insertar columna antes', - 'Insert column after': 'Insertar columna despu\u00e9s', - 'Delete column': 'Eliminar columna', - Cols: 'Columnas', - Rows: 'Filas', - Width: 'Ancho', - Height: 'Alto', - 'Cell spacing': 'Espacio entre celdas', - 'Cell padding': 'Relleno de celda', - 'Show caption': 'Mostrar t\u00edtulo', - Left: 'Izquierda', - Center: 'Centrado', - Right: 'Derecha', - 'Cell type': 'Tipo de celda', - Scope: '\u00c1mbito', - Alignment: 'Alineaci\u00f3n', - 'H Align': 'Alineamiento Horizontal', - 'V Align': 'Alineamiento Vertical', - Top: 'Arriba', - Middle: 'Centro', - Bottom: 'Abajo', - 'Header cell': 'Celda de la cebecera', - 'Row group': 'Grupo de filas', - 'Column group': 'Grupo de columnas', - 'Row type': 'Tipo de fila', - Header: 'Cabecera', - Body: 'Cuerpo', - Footer: 'Pie de p\u00e1gina', - 'Border color': 'Color del borde', - 'Insert template...': 'Insertar plantilla...', - Templates: 'Plantillas', - Template: 'Plantilla', - 'Text color': 'Color del texto', - 'Background color': 'Color de fondo', - 'Custom...': 'Personalizar...', - 'Custom color': 'Color personalizado', - 'No color': 'Sin color', - 'Remove color': 'Quitar color', - 'Table of Contents': 'Tabla de contenidos', - 'Show blocks': 'Mostrar bloques', - 'Show invisible characters': 'Mostrar caracteres invisibles', - 'Word count': 'Contar palabras', - Count: 'Recuento', - Document: 'Documento', - Selection: 'Selecci\u00f3n', - Words: 'Palabras', - 'Words: {0}': 'Palabras: {0}', - '{0} words': '{0} palabras', - File: 'Archivo', - Edit: 'Editar', - Insert: 'Insertar', - View: 'Ver', - Format: 'Formato', - Table: 'Tabla', - Tools: 'Herramientas', - 'Powered by {0}': 'Desarrollado por {0}', - 'Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help': '\u00c1rea de texto enriquecido. Pulse ALT-F9 para el menu. Pulse ALT-F10 para la barra de herramientas. Pulse ALT-0 para ayuda', - 'Image title': 'Titulo de imagen', - 'Border width': 'Ancho de borde', - 'Border style': 'Estilo de borde', - Error: 'Error', - Warn: 'Advertencia', - Valid: 'V\u00e1lido', - 'To open the popup, press Shift+Enter': 'Para abrir el elemento emergente, pulse May\u00fas+Intro', - 'Rich Text Area. Press ALT-0 for help.': '\u00c1rea de texto enriquecido. Pulse ALT-0 para abrir la ayuda.', - 'System Font': 'Fuente de sistema', - 'Failed to upload image: {0}': 'Fallo al cargar imagen: {0}', - 'Failed to load plugin: {0} from url {1}': 'Fallo al cargar complemento: {0} desde URL {1}', - 'Failed to load plugin url: {0}': 'Fallo al cargar URL del complemento: {0}', - 'Failed to initialize plugin: {0}': 'Fallo al iniciar el complemento: {0}', - example: 'ejemplo', - Search: 'Buscar', - All: 'Todo', - Currency: 'Divisa', - Text: 'Texto', - Quotations: 'Comillas', - Mathematical: 'S\u00edmbolo matem\u00e1tico', - 'Extended Latin': 'Latino extendido A', - Symbols: 'S\u00edmbolos', - Arrows: 'Flechas', - 'User Defined': 'Definido por el usuario', - 'dollar sign': 'signo de d\u00f3lar', - 'currency sign': 'signo de divisa', - 'euro-currency sign': 'signo de euro', - 'colon sign': 'signo de dos puntos', - 'cruzeiro sign': 'signo de cruceiro', - 'french franc sign': 'signo de franco franc\u00e9s', - 'lira sign': 'signo de lira', - 'mill sign': 'signo de mill', - 'naira sign': 'signo de naira', - 'peseta sign': 'signo de peseta', - 'rupee sign': 'signo de rupia', - 'won sign': 'signo de won', - 'new sheqel sign': 'signo de nuevo s\u00e9quel', - 'dong sign': 'signo de dong', - 'kip sign': 'signo de kip', - 'tugrik sign': 'signo de tugrik', - 'drachma sign': 'signo de dracma', - 'german penny symbol': 'signo de penique alem\u00e1n', - 'peso sign': 'signo de peso', - 'guarani sign': 'signo de guaran\u00ed', - 'austral sign': 'signo de austral', - 'hryvnia sign': 'signo de grivna', - 'cedi sign': 'signo de cedi', - 'livre tournois sign': 'signo de libra tornesa', - 'spesmilo sign': 'signo de spesmilo', - 'tenge sign': 'signo de tenge', - 'indian rupee sign': 'signo de rupia india', - 'turkish lira sign': 'signo de lira turca', - 'nordic mark sign': 'signo de marco n\u00f3rdico', - 'manat sign': 'signo de manat', - 'ruble sign': 'signo de rublo', - 'yen character': 'car\u00e1cter de yen', - 'yuan character': 'car\u00e1cter de yuan', - 'yuan character, in hong kong and taiwan': 'car\u00e1cter de yuan en Hong Kong y Taiw\u00e1n', - 'yen\/yuan character variant one': 'Variante uno de car\u00e1cter de yen\/yuan', - 'Loading emoticons...': 'Cargando emoticonos...', - 'Could not load emoticons': 'No se han podido cargar los emoticonos', - People: 'Personas', - 'Animals and Nature': 'Animales y naturaleza', - 'Food and Drink': 'Comida y bebida', - Activity: 'Actividad', - 'Travel and Places': 'Viajes y lugares', - Objects: 'Objetos', - Flags: 'Banderas', - Characters: 'Caracteres', - 'Characters (no spaces)': 'Caracteres (sin espacios)', - '{0} characters': '{0} caracteres', - 'Error: Form submit field collision.': 'Error: Colisi\u00f3n de campo al enviar formulario.', - 'Error: No form element found.': 'Error: No se encuentra ning\u00fan elemento de formulario.', - Update: 'Actualizar', - 'Color swatch': 'Muestrario de colores', - Turquoise: 'Turquesa', - Green: 'Verde', - Blue: 'Azul', - Purple: 'P\u00farpura', - 'Navy Blue': 'Azul marino', - 'Dark Turquoise': 'Turquesa oscuro', - 'Dark Green': 'Verde oscuro', - 'Medium Blue': 'Azul medio', - 'Medium Purple': 'P\u00farpura medio', - 'Midnight Blue': 'Azul medio', - Yellow: 'Amarillo', - Orange: 'Naranja', - Red: 'Rojo', - 'Light Gray': 'Gris claro', - Gray: 'Gris', - 'Dark Yellow': 'Amarillo oscuro', - 'Dark Orange': 'Naranja oscuro', - 'Dark Red': 'Rojo oscuro', - 'Medium Gray': 'Gris medio', - 'Dark Gray': 'Gris oscuro', - 'Light Green': 'Verde claro', - 'Light Yellow': 'Amarillo claro', - 'Light Red': 'Rojo claro', - 'Light Purple': 'Morado claro', - 'Light Blue': 'Azul claro', - 'Dark Purple': 'Morado oscuro', - 'Dark Blue': 'Azul oscuro', - Black: 'Negro', - White: 'Blanco', - 'Switch to or from fullscreen mode': 'Activar o desactivar modo pantalla completa', - 'Open help dialog': 'Abrir di\u00e1logo de ayuda', - history: 'historial', - styles: 'estilos', - formatting: 'formato', - alignment: 'alineaci\u00f3n', - indentation: 'sangr\u00eda', - 'permanent pen': 'bol\u00edgrafo permanente', - comments: 'comentarios', - 'Format Painter': 'Copiar formato', - 'Insert\/edit iframe': 'Insertar\/editar iframe', - Capitalization: 'Uso de may\u00fasculas', - lowercase: 'min\u00fasculas', - UPPERCASE: 'MAY\u00daSCULAS', - 'Title Case': 'Tipo T\u00edtulo', - 'Permanent Pen Properties': 'Propiedades del bol\u00edgrafo permanente', - 'Permanent pen properties...': 'Propiedades del bol\u00edgrafo permanente...', - Font: 'Fuente', - Size: 'Tama\u00f1o', - 'More...': 'M\u00e1s...', - 'Spellcheck Language': 'Corrector', - 'Select...': 'Seleccionar...', - Preferences: 'Preferencias', - Yes: 'S\u00ed', - No: 'No', - 'Keyboard Navigation': 'Navegaci\u00f3n con el teclado', - Version: 'Versi\u00f3n', - Anchor: 'Ancla', - 'Special character': 'Car\u00e1cter especial', - 'Code sample': 'Ejemplo de c\u00f3digo', - Color: 'Color', - Emoticons: 'Emoticonos', - 'Document properties': 'Propiedades del documento', - Image: 'Imagen', - 'Insert link': 'Insertar enlace', - Target: 'Destino', - Link: 'Enlace', - Poster: 'Miniatura', - Media: 'Media', - Print: 'Imprimir', - Prev: 'Anterior', - 'Find and replace': 'Buscar y reemplazar', - 'Whole words': 'Palabras completas', - Spellcheck: 'Corrector ortogr\u00e1fico', - Caption: 'Subt\u00edtulo', - 'Insert template': 'Insertar plantilla' -}) diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/langs/zh_CN.js b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/langs/zh_CN.js deleted file mode 100644 index f9d8b5cfd23f1625038794d2f606337692fc81e8..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/langs/zh_CN.js +++ /dev/null @@ -1,389 +0,0 @@ -tinymce.addI18n('zh_CN',{ -"Redo": "\u91cd\u505a", -"Undo": "\u64a4\u9500", -"Cut": "\u526a\u5207", -"Copy": "\u590d\u5236", -"Paste": "\u7c98\u8d34", -"Select all": "\u5168\u9009", -"New document": "\u65b0\u6587\u4ef6", -"Ok": "\u786e\u5b9a", -"Cancel": "\u53d6\u6d88", -"Visual aids": "\u7f51\u683c\u7ebf", -"Bold": "\u7c97\u4f53", -"Italic": "\u659c\u4f53", -"Underline": "\u4e0b\u5212\u7ebf", -"Strikethrough": "\u5220\u9664\u7ebf", -"Superscript": "\u4e0a\u6807", -"Subscript": "\u4e0b\u6807", -"Clear formatting": "\u6e05\u9664\u683c\u5f0f", -"Align left": "\u5de6\u8fb9\u5bf9\u9f50", -"Align center": "\u4e2d\u95f4\u5bf9\u9f50", -"Align right": "\u53f3\u8fb9\u5bf9\u9f50", -"Justify": "\u4e24\u7aef\u5bf9\u9f50", -"Bullet list": "\u9879\u76ee\u7b26\u53f7", -"Numbered list": "\u7f16\u53f7\u5217\u8868", -"Decrease indent": "\u51cf\u5c11\u7f29\u8fdb", -"Increase indent": "\u589e\u52a0\u7f29\u8fdb", -"Close": "\u5173\u95ed", -"Formats": "\u683c\u5f0f", -"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "\u4f60\u7684\u6d4f\u89c8\u5668\u4e0d\u652f\u6301\u6253\u5f00\u526a\u8d34\u677f\uff0c\u8bf7\u4f7f\u7528Ctrl+X\/C\/V\u7b49\u5feb\u6377\u952e\u3002", -"Headers": "\u6807\u9898", -"Header 1": "\u6807\u98981", -"Header 2": "\u6807\u98982", -"Header 3": "\u6807\u98983", -"Header 4": "\u6807\u98984", -"Header 5": "\u6807\u98985", -"Header 6": "\u6807\u98986", -"Headings": "\u6807\u9898", -"Heading 1": "\u6807\u98981", -"Heading 2": "\u6807\u98982", -"Heading 3": "\u6807\u98983", -"Heading 4": "\u6807\u98984", -"Heading 5": "\u6807\u98985", -"Heading 6": "\u6807\u98986", -"Preformatted": "\u9884\u5148\u683c\u5f0f\u5316\u7684", -"Div": "Div", -"Pre": "Pre", -"Code": "\u4ee3\u7801", -"Paragraph": "\u6bb5\u843d", -"Blockquote": "\u5f15\u6587\u533a\u5757", -"Inline": "\u6587\u672c", -"Blocks": "\u57fa\u5757", -"Paste is now in plain text mode. Contents will now be pasted as plain text until you toggle this option off.": "\u5f53\u524d\u4e3a\u7eaf\u6587\u672c\u7c98\u8d34\u6a21\u5f0f\uff0c\u518d\u6b21\u70b9\u51fb\u53ef\u4ee5\u56de\u5230\u666e\u901a\u7c98\u8d34\u6a21\u5f0f\u3002", -"Fonts": "\u5b57\u4f53", -"Font Sizes": "\u5b57\u53f7", -"Class": "\u7c7b\u578b", -"Browse for an image": "\u6d4f\u89c8\u56fe\u50cf", -"OR": "\u6216", -"Drop an image here": "\u62d6\u653e\u4e00\u5f20\u56fe\u50cf\u81f3\u6b64", -"Upload": "\u4e0a\u4f20", -"Block": "\u5757", -"Align": "\u5bf9\u9f50", -"Default": "\u9ed8\u8ba4", -"Circle": "\u7a7a\u5fc3\u5706", -"Disc": "\u5b9e\u5fc3\u5706", -"Square": "\u65b9\u5757", -"Lower Alpha": "\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd", -"Lower Greek": "\u5c0f\u5199\u5e0c\u814a\u5b57\u6bcd", -"Lower Roman": "\u5c0f\u5199\u7f57\u9a6c\u5b57\u6bcd", -"Upper Alpha": "\u5927\u5199\u82f1\u6587\u5b57\u6bcd", -"Upper Roman": "\u5927\u5199\u7f57\u9a6c\u5b57\u6bcd", -"Anchor...": "\u951a\u70b9...", -"Name": "\u540d\u79f0", -"Id": "\u6807\u8bc6\u7b26", -"Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.": "\u6807\u8bc6\u7b26\u5e94\u8be5\u4ee5\u5b57\u6bcd\u5f00\u5934\uff0c\u540e\u8ddf\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u7834\u6298\u53f7\u3001\u70b9\u3001\u5192\u53f7\u6216\u4e0b\u5212\u7ebf\u3002", -"You have unsaved changes are you sure you want to navigate away?": "\u4f60\u8fd8\u6709\u6587\u6863\u5c1a\u672a\u4fdd\u5b58\uff0c\u786e\u5b9a\u8981\u79bb\u5f00\uff1f", -"Restore last draft": "\u6062\u590d\u4e0a\u6b21\u7684\u8349\u7a3f", -"Special characters...": "\u7279\u6b8a\u5b57\u7b26...", -"Source code": "\u6e90\u4ee3\u7801", -"Insert\/Edit code sample": "\u63d2\u5165\/\u7f16\u8f91\u4ee3\u7801\u793a\u4f8b", -"Language": "\u8bed\u8a00", -"Code sample...": "\u793a\u4f8b\u4ee3\u7801...", -"Color Picker": "\u9009\u8272\u5668", -"R": "R", -"G": "G", -"B": "B", -"Left to right": "\u4ece\u5de6\u5230\u53f3", -"Right to left": "\u4ece\u53f3\u5230\u5de6", -"Emoticons...": "\u8868\u60c5\u7b26\u53f7...", -"Metadata and Document Properties": "\u5143\u6570\u636e\u548c\u6587\u6863\u5c5e\u6027", -"Title": "\u6807\u9898", -"Keywords": "\u5173\u952e\u8bcd", -"Description": "\u63cf\u8ff0", -"Robots": "\u673a\u5668\u4eba", -"Author": "\u4f5c\u8005", -"Encoding": "\u7f16\u7801", -"Fullscreen": "\u5168\u5c4f", -"Action": "\u64cd\u4f5c", -"Shortcut": "\u5feb\u6377\u952e", -"Help": "\u5e2e\u52a9", -"Address": "\u5730\u5740", -"Focus to menubar": "\u79fb\u52a8\u7126\u70b9\u5230\u83dc\u5355\u680f", -"Focus to toolbar": "\u79fb\u52a8\u7126\u70b9\u5230\u5de5\u5177\u680f", -"Focus to element path": "\u79fb\u52a8\u7126\u70b9\u5230\u5143\u7d20\u8def\u5f84", -"Focus to contextual toolbar": "\u79fb\u52a8\u7126\u70b9\u5230\u4e0a\u4e0b\u6587\u83dc\u5355", -"Insert link (if link plugin activated)": "\u63d2\u5165\u94fe\u63a5 (\u5982\u679c\u94fe\u63a5\u63d2\u4ef6\u5df2\u6fc0\u6d3b)", -"Save (if save plugin activated)": "\u4fdd\u5b58(\u5982\u679c\u4fdd\u5b58\u63d2\u4ef6\u5df2\u6fc0\u6d3b)", -"Find (if searchreplace plugin activated)": "\u67e5\u627e(\u5982\u679c\u67e5\u627e\u66ff\u6362\u63d2\u4ef6\u5df2\u6fc0\u6d3b)", -"Plugins installed ({0}):": "\u5df2\u5b89\u88c5\u63d2\u4ef6 ({0}):", -"Premium plugins:": "\u4f18\u79c0\u63d2\u4ef6\uff1a", -"Learn more...": "\u4e86\u89e3\u66f4\u591a...", -"You are using {0}": "\u4f60\u6b63\u5728\u4f7f\u7528 {0}", -"Plugins": "\u63d2\u4ef6", -"Handy Shortcuts": "\u5feb\u6377\u952e", -"Horizontal line": "\u6c34\u5e73\u5206\u5272\u7ebf", -"Insert\/edit image": "\u63d2\u5165\/\u7f16\u8f91\u56fe\u7247", -"Image description": "\u56fe\u7247\u63cf\u8ff0", -"Source": "\u5730\u5740", -"Dimensions": "\u5927\u5c0f", -"Constrain proportions": "\u4fdd\u6301\u7eb5\u6a2a\u6bd4", -"General": "\u666e\u901a", -"Advanced": "\u9ad8\u7ea7", -"Style": "\u6837\u5f0f", -"Vertical space": "\u5782\u76f4\u8fb9\u8ddd", -"Horizontal space": "\u6c34\u5e73\u8fb9\u8ddd", -"Border": "\u8fb9\u6846", -"Insert image": "\u63d2\u5165\u56fe\u7247", -"Image...": "\u56fe\u7247...", -"Image list": "\u56fe\u7247\u5217\u8868", -"Rotate counterclockwise": "\u9006\u65f6\u9488\u65cb\u8f6c", -"Rotate clockwise": "\u987a\u65f6\u9488\u65cb\u8f6c", -"Flip vertically": "\u5782\u76f4\u7ffb\u8f6c", -"Flip horizontally": "\u6c34\u5e73\u7ffb\u8f6c", -"Edit image": "\u7f16\u8f91\u56fe\u7247", -"Image options": "\u56fe\u7247\u9009\u9879", -"Zoom in": "\u653e\u5927", -"Zoom out": "\u7f29\u5c0f", -"Crop": "\u88c1\u526a", -"Resize": "\u8c03\u6574\u5927\u5c0f", -"Orientation": "\u65b9\u5411", -"Brightness": "\u4eae\u5ea6", -"Sharpen": "\u9510\u5316", -"Contrast": "\u5bf9\u6bd4\u5ea6", -"Color levels": "\u989c\u8272\u5c42\u6b21", -"Gamma": "\u4f3d\u9a6c\u503c", -"Invert": "\u53cd\u8f6c", -"Apply": "\u5e94\u7528", -"Back": "\u540e\u9000", -"Insert date\/time": "\u63d2\u5165\u65e5\u671f\/\u65f6\u95f4", -"Date\/time": "\u65e5\u671f\/\u65f6\u95f4", -"Insert\/Edit Link": "\u63d2\u5165\/\u7f16\u8f91\u94fe\u63a5", -"Insert\/edit link": "\u63d2\u5165\/\u7f16\u8f91\u94fe\u63a5", -"Text to display": "\u663e\u793a\u6587\u5b57", -"Url": "\u5730\u5740", -"Open link in...": "\u94fe\u63a5\u6253\u5f00\u4f4d\u7f6e...", -"Current window": "\u5f53\u524d\u7a97\u53e3", -"None": "\u65e0", -"New window": "\u5728\u65b0\u7a97\u53e3\u6253\u5f00", -"Remove link": "\u5220\u9664\u94fe\u63a5", -"Anchors": "\u951a\u70b9", -"Link...": "\u94fe\u63a5...", -"Paste or type a link": "\u7c98\u8d34\u6216\u8f93\u5165\u94fe\u63a5", -"The URL you entered seems to be an email address. Do you want to add the required mailto: prefix?": "\u4f60\u6240\u586b\u5199\u7684URL\u5730\u5740\u4e3a\u90ae\u4ef6\u5730\u5740\uff0c\u9700\u8981\u52a0\u4e0amailto:\u524d\u7f00\u5417\uff1f", -"The URL you entered seems to be an external link. Do you want to add the required http:\/\/ prefix?": "\u4f60\u6240\u586b\u5199\u7684URL\u5730\u5740\u5c5e\u4e8e\u5916\u90e8\u94fe\u63a5\uff0c\u9700\u8981\u52a0\u4e0ahttp:\/\/:\u524d\u7f00\u5417\uff1f", -"Link list": "\u94fe\u63a5\u5217\u8868", -"Insert video": "\u63d2\u5165\u89c6\u9891", -"Insert\/edit video": "\u63d2\u5165\/\u7f16\u8f91\u89c6\u9891", -"Insert\/edit media": "\u63d2\u5165\/\u7f16\u8f91\u5a92\u4f53", -"Alternative source": "\u955c\u50cf", -"Alternative source URL": "\u66ff\u4ee3\u6765\u6e90\u7f51\u5740", -"Media poster (Image URL)": "\u5c01\u9762(\u56fe\u7247\u5730\u5740)", -"Paste your embed code below:": "\u5c06\u5185\u5d4c\u4ee3\u7801\u7c98\u8d34\u5728\u4e0b\u9762:", -"Embed": "\u5185\u5d4c", -"Media...": "\u591a\u5a92\u4f53...", -"Nonbreaking space": "\u4e0d\u95f4\u65ad\u7a7a\u683c", -"Page break": "\u5206\u9875\u7b26", -"Paste as text": "\u7c98\u8d34\u4e3a\u6587\u672c", -"Preview": "\u9884\u89c8", -"Print...": "\u6253\u5370...", -"Save": "\u4fdd\u5b58", -"Find": "\u67e5\u627e", -"Replace with": "\u66ff\u6362\u4e3a", -"Replace": "\u66ff\u6362", -"Replace all": "\u5168\u90e8\u66ff\u6362", -"Previous": "\u4e0a\u4e00\u4e2a", -"Next": "\u4e0b\u4e00\u4e2a", -"Find and replace...": "\u67e5\u627e\u5e76\u66ff\u6362...", -"Could not find the specified string.": "\u672a\u627e\u5230\u641c\u7d22\u5185\u5bb9.", -"Match case": "\u533a\u5206\u5927\u5c0f\u5199", -"Find whole words only": "\u5168\u5b57\u5339\u914d", -"Spell check": "\u62fc\u5199\u68c0\u67e5", -"Ignore": "\u5ffd\u7565", -"Ignore all": "\u5168\u90e8\u5ffd\u7565", -"Finish": "\u5b8c\u6210", -"Add to Dictionary": "\u6dfb\u52a0\u5230\u5b57\u5178", -"Insert table": "\u63d2\u5165\u8868\u683c", -"Table properties": "\u8868\u683c\u5c5e\u6027", -"Delete table": "\u5220\u9664\u8868\u683c", -"Cell": "\u5355\u5143\u683c", -"Row": "\u884c", -"Column": "\u5217", -"Cell properties": "\u5355\u5143\u683c\u5c5e\u6027", -"Merge cells": "\u5408\u5e76\u5355\u5143\u683c", -"Split cell": "\u62c6\u5206\u5355\u5143\u683c", -"Insert row before": "\u5728\u4e0a\u65b9\u63d2\u5165", -"Insert row after": "\u5728\u4e0b\u65b9\u63d2\u5165", -"Delete row": "\u5220\u9664\u884c", -"Row properties": "\u884c\u5c5e\u6027", -"Cut row": "\u526a\u5207\u884c", -"Copy row": "\u590d\u5236\u884c", -"Paste row before": "\u7c98\u8d34\u5230\u4e0a\u65b9", -"Paste row after": "\u7c98\u8d34\u5230\u4e0b\u65b9", -"Insert column before": "\u5728\u5de6\u4fa7\u63d2\u5165", -"Insert column after": "\u5728\u53f3\u4fa7\u63d2\u5165", -"Delete column": "\u5220\u9664\u5217", -"Cols": "\u5217", -"Rows": "\u884c", -"Width": "\u5bbd", -"Height": "\u9ad8", -"Cell spacing": "\u5355\u5143\u683c\u5916\u95f4\u8ddd", -"Cell padding": "\u5355\u5143\u683c\u5185\u8fb9\u8ddd", -"Show caption": "\u663e\u793a\u6807\u9898", -"Left": "\u5de6\u5bf9\u9f50", -"Center": "\u5c45\u4e2d", -"Right": "\u53f3\u5bf9\u9f50", -"Cell type": "\u5355\u5143\u683c\u7c7b\u578b", -"Scope": "\u8303\u56f4", -"Alignment": "\u5bf9\u9f50\u65b9\u5f0f", -"H Align": "\u6c34\u5e73\u5bf9\u9f50", -"V Align": "\u5782\u76f4\u5bf9\u9f50", -"Top": "\u9876\u90e8\u5bf9\u9f50", -"Middle": "\u5782\u76f4\u5c45\u4e2d", -"Bottom": "\u5e95\u90e8\u5bf9\u9f50", -"Header cell": "\u8868\u5934\u5355\u5143\u683c", -"Row group": "\u884c\u7ec4", -"Column group": "\u5217\u7ec4", -"Row type": "\u884c\u7c7b\u578b", -"Header": "\u8868\u5934", -"Body": "\u8868\u4f53", -"Footer": "\u8868\u5c3e", -"Border color": "\u8fb9\u6846\u989c\u8272", -"Insert template...": "\u63d2\u5165\u6a21\u677f...", -"Templates": "\u6a21\u677f", -"Template": "\u6a21\u677f", -"Text color": "\u6587\u5b57\u989c\u8272", -"Background color": "\u80cc\u666f\u8272", -"Custom...": "\u81ea\u5b9a\u4e49...", -"Custom color": "\u81ea\u5b9a\u4e49\u989c\u8272", -"No color": "\u65e0", -"Remove color": "\u79fb\u9664\u989c\u8272", -"Table of Contents": "\u5185\u5bb9\u5217\u8868", -"Show blocks": "\u663e\u793a\u533a\u5757\u8fb9\u6846", -"Show invisible characters": "\u663e\u793a\u4e0d\u53ef\u89c1\u5b57\u7b26", -"Word count": "\u5b57\u6570", -"Words: {0}": "\u5b57\u6570\uff1a{0}", -"{0} words": "{0} \u5b57", -"File": "\u6587\u4ef6", -"Edit": "\u7f16\u8f91", -"Insert": "\u63d2\u5165", -"View": "\u89c6\u56fe", -"Format": "\u683c\u5f0f", -"Table": "\u8868\u683c", -"Tools": "\u5de5\u5177", -"Powered by {0}": "\u7531{0}\u9a71\u52a8", -"Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help": "\u5728\u7f16\u8f91\u533a\u6309ALT-F9\u6253\u5f00\u83dc\u5355\uff0c\u6309ALT-F10\u6253\u5f00\u5de5\u5177\u680f\uff0c\u6309ALT-0\u67e5\u770b\u5e2e\u52a9", -"Image title": "\u56fe\u7247\u6807\u9898", -"Border width": "\u8fb9\u6846\u5bbd\u5ea6", -"Border style": "\u8fb9\u6846\u6837\u5f0f", -"Error": "\u9519\u8bef", -"Warn": "\u8b66\u544a", -"Valid": "\u6709\u6548", -"To open the popup, press Shift+Enter": "\u6309Shitf+Enter\u952e\u6253\u5f00\u5bf9\u8bdd\u6846", -"Rich Text Area. Press ALT-0 for help.": "\u7f16\u8f91\u533a\u3002\u6309Alt+0\u952e\u6253\u5f00\u5e2e\u52a9\u3002", -"System Font": "\u7cfb\u7edf\u5b57\u4f53", -"Failed to upload image: {0}": "\u56fe\u7247\u4e0a\u4f20\u5931\u8d25: {0}", -"Failed to load plugin: {0} from url {1}": "\u63d2\u4ef6\u52a0\u8f7d\u5931\u8d25: {0} \u6765\u81ea\u94fe\u63a5 {1}", -"Failed to load plugin url: {0}": "\u63d2\u4ef6\u52a0\u8f7d\u5931\u8d25 \u94fe\u63a5: {0}", -"Failed to initialize plugin: {0}": "\u63d2\u4ef6\u521d\u59cb\u5316\u5931\u8d25: {0}", -"example": "\u793a\u4f8b", -"Search": "\u641c\u7d22", -"All": "\u5168\u90e8", -"Currency": "\u8d27\u5e01", -"Text": "\u6587\u5b57", -"Quotations": "\u5f15\u7528", -"Mathematical": "\u6570\u5b66", -"Extended Latin": "\u62c9\u4e01\u8bed\u6269\u5145", -"Symbols": "\u7b26\u53f7", -"Arrows": "\u7bad\u5934", -"User Defined": "\u81ea\u5b9a\u4e49", -"dollar sign": "\u7f8e\u5143\u7b26\u53f7", -"currency sign": "\u8d27\u5e01\u7b26\u53f7", -"euro-currency sign": "\u6b27\u5143\u7b26\u53f7", -"colon sign": "\u5192\u53f7", -"cruzeiro sign": "\u514b\u9c81\u8d5b\u7f57\u5e01\u7b26\u53f7", -"french franc sign": "\u6cd5\u90ce\u7b26\u53f7", -"lira sign": "\u91cc\u62c9\u7b26\u53f7", -"mill sign": "\u5bc6\u5c14\u7b26\u53f7", -"naira sign": "\u5948\u62c9\u7b26\u53f7", -"peseta sign": "\u6bd4\u585e\u5854\u7b26\u53f7", -"rupee sign": "\u5362\u6bd4\u7b26\u53f7", -"won sign": "\u97e9\u5143\u7b26\u53f7", -"new sheqel sign": "\u65b0\u8c22\u514b\u5c14\u7b26\u53f7", -"dong sign": "\u8d8a\u5357\u76fe\u7b26\u53f7", -"kip sign": "\u8001\u631d\u57fa\u666e\u7b26\u53f7", -"tugrik sign": "\u56fe\u683c\u91cc\u514b\u7b26\u53f7", -"drachma sign": "\u5fb7\u62c9\u514b\u9a6c\u7b26\u53f7", -"german penny symbol": "\u5fb7\u56fd\u4fbf\u58eb\u7b26\u53f7", -"peso sign": "\u6bd4\u7d22\u7b26\u53f7", -"guarani sign": "\u74dc\u62c9\u5c3c\u7b26\u53f7", -"austral sign": "\u6fb3\u5143\u7b26\u53f7", -"hryvnia sign": "\u683c\u91cc\u592b\u5c3c\u4e9a\u7b26\u53f7", -"cedi sign": "\u585e\u5730\u7b26\u53f7", -"livre tournois sign": "\u91cc\u5f17\u5f17\u5c14\u7b26\u53f7", -"spesmilo sign": "spesmilo\u7b26\u53f7", -"tenge sign": "\u575a\u6208\u7b26\u53f7", -"indian rupee sign": "\u5370\u5ea6\u5362\u6bd4", -"turkish lira sign": "\u571f\u8033\u5176\u91cc\u62c9", -"nordic mark sign": "\u5317\u6b27\u9a6c\u514b", -"manat sign": "\u9a6c\u7eb3\u7279\u7b26\u53f7", -"ruble sign": "\u5362\u5e03\u7b26\u53f7", -"yen character": "\u65e5\u5143\u5b57\u6837", -"yuan character": "\u4eba\u6c11\u5e01\u5143\u5b57\u6837", -"yuan character, in hong kong and taiwan": "\u5143\u5b57\u6837\uff08\u6e2f\u53f0\u5730\u533a\uff09", -"yen\/yuan character variant one": "\u5143\u5b57\u6837\uff08\u5927\u5199\uff09", -"Loading emoticons...": "\u52a0\u8f7d\u8868\u60c5\u7b26\u53f7...", -"Could not load emoticons": "\u4e0d\u80fd\u52a0\u8f7d\u8868\u60c5\u7b26\u53f7", -"People": "\u4eba\u7c7b", -"Animals and Nature": "\u52a8\u7269\u548c\u81ea\u7136", -"Food and Drink": "\u98df\u7269\u548c\u996e\u54c1", -"Activity": "\u6d3b\u52a8", -"Travel and Places": "\u65c5\u6e38\u548c\u5730\u70b9", -"Objects": "\u7269\u4ef6", -"Flags": "\u65d7\u5e1c", -"Characters": "\u5b57\u7b26", -"Characters (no spaces)": "\u5b57\u7b26(\u65e0\u7a7a\u683c)", -"Error: Form submit field collision.": "\u9519\u8bef: \u8868\u5355\u63d0\u4ea4\u5b57\u6bb5\u51b2\u7a81\u3002", -"Error: No form element found.": "\u9519\u8bef: \u6ca1\u6709\u8868\u5355\u63a7\u4ef6\u3002", -"Update": "\u66f4\u65b0", -"Color swatch": "\u989c\u8272\u6837\u672c", -"Turquoise": "\u9752\u7eff\u8272", -"Green": "\u7eff\u8272", -"Blue": "\u84dd\u8272", -"Purple": "\u7d2b\u8272", -"Navy Blue": "\u6d77\u519b\u84dd", -"Dark Turquoise": "\u6df1\u84dd\u7eff\u8272", -"Dark Green": "\u6df1\u7eff\u8272", -"Medium Blue": "\u4e2d\u84dd\u8272", -"Medium Purple": "\u4e2d\u7d2b\u8272", -"Midnight Blue": "\u6df1\u84dd\u8272", -"Yellow": "\u9ec4\u8272", -"Orange": "\u6a59\u8272", -"Red": "\u7ea2\u8272", -"Light Gray": "\u6d45\u7070\u8272", -"Gray": "\u7070\u8272", -"Dark Yellow": "\u6697\u9ec4\u8272", -"Dark Orange": "\u6df1\u6a59\u8272", -"Dark Red": "\u6df1\u7ea2\u8272", -"Medium Gray": "\u4e2d\u7070\u8272", -"Dark Gray": "\u6df1\u7070\u8272", -"Black": "\u9ed1\u8272", -"White": "\u767d\u8272", -"Switch to or from fullscreen mode": "\u5207\u6362\u5168\u5c4f\u6a21\u5f0f", -"Open help dialog": "\u6253\u5f00\u5e2e\u52a9\u5bf9\u8bdd\u6846", -"history": "\u5386\u53f2", -"styles": "\u6837\u5f0f", -"formatting": "\u683c\u5f0f\u5316", -"alignment": "\u5bf9\u9f50", -"indentation": "\u7f29\u8fdb", -"permanent pen": "\u8bb0\u53f7\u7b14", -"comments": "\u5907\u6ce8", -"Anchor": "\u951a\u70b9", -"Special character": "\u7279\u6b8a\u7b26\u53f7", -"Code sample": "\u4ee3\u7801\u793a\u4f8b", -"Color": "\u989c\u8272", -"Emoticons": "\u8868\u60c5", -"Document properties": "\u6587\u6863\u5c5e\u6027", -"Image": "\u56fe\u7247", -"Insert link": "\u63d2\u5165\u94fe\u63a5", -"Target": "\u6253\u5f00\u65b9\u5f0f", -"Link": "\u94fe\u63a5", -"Poster": "\u5c01\u9762", -"Media": "\u5a92\u4f53", -"Print": "\u6253\u5370", -"Prev": "\u4e0a\u4e00\u4e2a", -"Find and replace": "\u67e5\u627e\u548c\u66ff\u6362", -"Whole words": "\u5168\u5b57\u5339\u914d", -"Spellcheck": "\u62fc\u5199\u68c0\u67e5", -"Caption": "\u6807\u9898", -"Insert template": "\u63d2\u5165\u6a21\u677f" -}); \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/content.inline.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/content.inline.min.css deleted file mode 100644 index 748f313bb2324aefb902f5b679a54bbc042d5d60..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/content.inline.min.css +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.mce-content-body .mce-item-anchor{display: inline-block;width: 8px !important;height: 12px !important;padding: 0 2px;cursor: default;background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;-webkit-user-select: all;-moz-user-select: all;-ms-user-select: all;user-select: all;-webkit-user-modify: read-only;-moz-user-modify: read-only;} - -.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset: 1px;} - -.tox-comments-visible .tox-comment{background-color: #fff0b7;} - -.tox-comments-visible .tox-comment--active{background-color: #ffe168;} - -.tox-checklist>li:not(.tox-checklist--hidden){margin: .25em 0;list-style: none;} - -.tox-checklist>li:not(.tox-checklist--hidden)::before{position: absolute;width: 1em;height: 1em;margin-top: .125em;margin-left: -1.5em;cursor: pointer;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");background-size: 100%;content: '';} - -.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");} - -[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-right: -1.5em;margin-left: 0;} - -code[class*=language-],pre[class*=language-]{font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size: .875rem;-webkit-hyphens: none;-ms-hyphens: none;hyphens: none;line-height: 1.5;word-spacing: normal;color: #000;text-shadow: 0 1px #fff;word-break: normal;word-wrap: normal;white-space: pre;-moz-tab-size: 4;tab-size: 4;} - -code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow: none;background: #b3d4fc;} - -code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow: none;background: #b3d4fc;}@media print{code[class*=language-],pre[class*=language-]{text-shadow: none;}} - -pre[class*=language-]{padding: 1em;margin: .5em 0;overflow: auto;} - -:not(pre)>code[class*=language-],pre[class*=language-]{background: 0 0 !important;border: 1px solid #ccc;} - -:not(pre)>code[class*=language-]{padding: .1em;border-radius: .3em;} - -.token.cdata,.token.comment,.token.doctype,.token.prolog{color: #708090;} - -.token.punctuation{color: #999;} - -.namespace{opacity: .7;} - -.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color: #905;} - -.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color: #690;} - -.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color: #a67f59;background: hsla(0,0%,100%,.5);} - -.token.atrule,.token.attr-value,.token.keyword{color: #07a;} - -.token.function{color: #dd4a68;} - -.token.important,.token.regex,.token.variable{color: #e90;} - -.token.bold,.token.important{font-weight: 700;} - -.token.italic{font-style: italic;} - -.token.entity{cursor: help;} - -:not([dir=rtl]) code[class*=language-],:not([dir=rtl]) pre[class*=language-]{text-align: left;direction: ltr;} - -[dir=rtl] code[class*=language-],[dir=rtl] pre[class*=language-]{text-align: right;direction: rtl;} - -.mce-content-body{overflow-wrap: break-word;word-wrap: break-word;} - -.mce-content-body .mce-visual-caret{position: absolute;background-color: #000;background-color: currentColor;} - -.mce-content-body .mce-visual-caret-hidden{display: none;} - -.mce-content-body [data-mce-caret]{position: absolute;top: 0;right: auto;left: -1000px;padding: 0;margin: 0;} - -.mce-content-body .mce-offscreen-selection{position: absolute;left: -9999999999px;max-width: 1000000px;} - -.mce-content-body [contentEditable=false]{cursor: default;} - -.mce-content-body [contentEditable=true]{cursor: text;} - -.tox-cursor-format-painter{cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"),default;} - -.mce-content-body figure.align-left{float: left;} - -.mce-content-body figure.align-right{float: right;} - -.mce-content-body figure.image.align-center{display: table;margin-right: auto;margin-left: auto;} - -.mce-preview-object{position: relative;display: inline-block;margin: 0 2px 0 2px;line-height: 0;border: 1px solid gray;} - -.mce-preview-object .mce-shim{position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);} - -.mce-preview-object[data-mce-selected="2"] .mce-shim{display: none;} - -.mce-object{background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;border: 1px dashed #aaa;} - -.mce-pagebreak{display: block;width: 100%;height: 5px;margin-top: 15px;cursor: default;border: 1px dashed #aaa;page-break-before: always;}@media print{.mce-pagebreak{border: 0;}} - -.tiny-pageembed .mce-shim{position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);} - -.tiny-pageembed[data-mce-selected="2"] .mce-shim{display: none;} - -.tiny-pageembed{position: relative;display: inline-block;} - -.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{position: relative;display: block;width: 100%;padding: 0;overflow: hidden;} - -.tiny-pageembed--16by9::before,.tiny-pageembed--1by1::before,.tiny-pageembed--21by9::before,.tiny-pageembed--4by3::before{display: block;content: "";} - -.tiny-pageembed--21by9::before{padding-top: 42.857143%;} - -.tiny-pageembed--16by9::before{padding-top: 56.25%;} - -.tiny-pageembed--4by3::before{padding-top: 75%;} - -.tiny-pageembed--1by1::before{padding-top: 100%;} - -.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{position: absolute;top: 0;left: 0;width: 100%;height: 100%;border: 0;} - -.mce-content-body div.mce-resizehandle{position: absolute;z-index: 10000;width: 10px;height: 10px;background-color: #4099ff;border-color: #4099ff;border-style: solid;border-width: 1px;box-sizing: border-box;} - -.mce-content-body div.mce-resizehandle:hover{background-color: #4099ff;} - -.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor: nwse-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor: nesw-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor: nwse-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor: nesw-resize;} - -.mce-content-body .mce-clonedresizable{position: absolute;z-index: 10000;outline: 1px dashed #000;opacity: .5;} - -.mce-content-body .mce-resize-helper{position: absolute;z-index: 10001;display: none;padding: 5px;margin: 5px 10px;font-family: sans-serif;font-size: 12px;line-height: 14px;color: #fff;white-space: nowrap;background: #555;background: rgba(0,0,0,.75);border: 1px;border-radius: 3px;} - -.mce-match-marker{color: #fff;background: #aaa;} - -.mce-match-marker-selected{color: #fff;background: #39f;} - -.mce-content-body img[data-mce-selected],.mce-content-body table[data-mce-selected]{outline: 3px solid #b4d7ff;} - -.mce-content-body hr[data-mce-selected]{outline: 3px solid #b4d7ff;outline-offset: 1px;} - -.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline: 3px solid #b4d7ff;} - -.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline: 3px solid #b4d7ff;} - -.mce-content-body [contentEditable=false][data-mce-selected]{cursor: not-allowed;outline: 3px solid #b4d7ff;} - -.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline: 0;} - -.mce-content-body [data-mce-selected=inline-boundary]{background-color: #b4d7ff;} - -.mce-content-body .mce-edit-focus{outline: 3px solid #b4d7ff;} - -.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{background-color: #b4d7ff !important;} - -.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background: 0 0;} - -.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background: 0 0;} - -.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{-webkit-touch-callout: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;} - -.mce-content-body img::-moz-selection{background: 0 0;} - -.mce-content-body img::selection{background: 0 0;} - -.ephox-snooker-resizer-bar{background-color: #b4d7ff;opacity: 0;} - -.ephox-snooker-resizer-cols{cursor: col-resize;} - -.ephox-snooker-resizer-rows{cursor: row-resize;} - -.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity: 1;} - -.mce-spellchecker-word{height: 2rem;cursor: default;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.5'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position: 0 calc(100% + 1px);background-repeat: repeat-x;background-size: auto 6px;} - -.mce-spellchecker-grammar{cursor: default;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23008800'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position: 0 calc(100% + 1px);background-repeat: repeat-x;background-size: auto 6px;} - -.mce-toc{border: 1px solid gray;} - -.mce-toc h2{margin: 4px;} - -.mce-toc li{list-style-type: none;} - -.mce-item-table,.mce-item-table caption,.mce-item-table td,.mce-item-table th{border: 1px dashed #bbb;} - -.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{padding-top: 10px;margin-left: 3px;background-repeat: no-repeat;border: 1px dashed #bbb;} - -.mce-visualblocks p{background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7);} - -.mce-visualblocks h1{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==);} - -.mce-visualblocks h2{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==);} - -.mce-visualblocks h3{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7);} - -.mce-visualblocks h4{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==);} - -.mce-visualblocks h5{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==);} - -.mce-visualblocks h6{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==);} - -.mce-visualblocks div:not([data-mce-bogus]){background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7);} - -.mce-visualblocks section{background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=);} - -.mce-visualblocks article{background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7);} - -.mce-visualblocks blockquote{background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7);} - -.mce-visualblocks address{background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=);} - -.mce-visualblocks pre{background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==);} - -.mce-visualblocks figure{background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7);} - -.mce-visualblocks figcaption{border: 1px dashed #bbb;} - -.mce-visualblocks hgroup{background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7);} - -.mce-visualblocks aside{background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=);} - -.mce-visualblocks ul{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==);} - -.mce-visualblocks ol{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==);} - -.mce-visualblocks dl{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==);} - -.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left: 3px;} - -.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x: right;margin-right: 3px;} - -.mce-nbsp,.mce-shy{background: #aaa;} - -.mce-shy::after{content: '-';} - -.tox-toolbar-dock-fadeout{opacity: 0;visibility: hidden;} - -.tox-toolbar-dock-fadein{opacity: 1;visibility: visible;} - -.tox-toolbar-dock-transition{transition: visibility 0s linear .3s,opacity .3s ease;} - -.tox-toolbar-dock-transition.tox-toolbar-dock-fadein{transition-delay: 0s;} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/content.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/content.min.css deleted file mode 100644 index 6e7165f097e99dac3a355448bcdb2598763617bf..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/content.min.css +++ /dev/null @@ -1,235 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.mce-content-body .mce-item-anchor{display: inline-block;width: 8px !important;height: 12px !important;padding: 0 2px;cursor: default;background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;-webkit-user-select: all;-moz-user-select: all;-ms-user-select: all;user-select: all;-webkit-user-modify: read-only;-moz-user-modify: read-only;} - -.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset: 1px;} - -.tox-comments-visible .tox-comment{background-color: #fff0b7;} - -.tox-comments-visible .tox-comment--active{background-color: #ffe168;} - -.tox-checklist>li:not(.tox-checklist--hidden){margin: .25em 0;list-style: none;} - -.tox-checklist>li:not(.tox-checklist--hidden)::before{position: absolute;width: 1em;height: 1em;margin-top: .125em;margin-left: -1.5em;cursor: pointer;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");background-size: 100%;content: '';} - -.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");} - -[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-right: -1.5em;margin-left: 0;} - -code[class*=language-],pre[class*=language-]{font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size: .875rem;-webkit-hyphens: none;-ms-hyphens: none;hyphens: none;line-height: 1.5;word-spacing: normal;color: #000;text-shadow: 0 1px #fff;word-break: normal;word-wrap: normal;white-space: pre;-moz-tab-size: 4;tab-size: 4;} - -code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow: none;background: #b3d4fc;} - -code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow: none;background: #b3d4fc;}@media print{code[class*=language-],pre[class*=language-]{text-shadow: none;}} - -pre[class*=language-]{padding: 1em;margin: .5em 0;overflow: auto;} - -:not(pre)>code[class*=language-],pre[class*=language-]{background: 0 0 !important;border: 1px solid #ccc;} - -:not(pre)>code[class*=language-]{padding: .1em;border-radius: .3em;} - -.token.cdata,.token.comment,.token.doctype,.token.prolog{color: #708090;} - -.token.punctuation{color: #999;} - -.namespace{opacity: .7;} - -.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color: #905;} - -.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color: #690;} - -.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color: #a67f59;background: hsla(0,0%,100%,.5);} - -.token.atrule,.token.attr-value,.token.keyword{color: #07a;} - -.token.function{color: #dd4a68;} - -.token.important,.token.regex,.token.variable{color: #e90;} - -.token.bold,.token.important{font-weight: 700;} - -.token.italic{font-style: italic;} - -.token.entity{cursor: help;} - -:not([dir=rtl]) code[class*=language-],:not([dir=rtl]) pre[class*=language-]{text-align: left;direction: ltr;} - -[dir=rtl] code[class*=language-],[dir=rtl] pre[class*=language-]{text-align: right;direction: rtl;} - -.mce-content-body{overflow-wrap: break-word;word-wrap: break-word;} - -.mce-content-body .mce-visual-caret{position: absolute;background-color: #000;background-color: currentColor;} - -.mce-content-body .mce-visual-caret-hidden{display: none;} - -.mce-content-body [data-mce-caret]{position: absolute;top: 0;right: auto;left: -1000px;padding: 0;margin: 0;} - -.mce-content-body .mce-offscreen-selection{position: absolute;left: -9999999999px;max-width: 1000000px;} - -.mce-content-body [contentEditable=false]{cursor: default;} - -.mce-content-body [contentEditable=true]{cursor: text;} - -.tox-cursor-format-painter{cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"),default;} - -.mce-content-body figure.align-left{float: left;} - -.mce-content-body figure.align-right{float: right;} - -.mce-content-body figure.image.align-center{display: table;margin-right: auto;margin-left: auto;} - -.mce-preview-object{position: relative;display: inline-block;margin: 0 2px 0 2px;line-height: 0;border: 1px solid gray;} - -.mce-preview-object .mce-shim{position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);} - -.mce-preview-object[data-mce-selected="2"] .mce-shim{display: none;} - -.mce-object{background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;border: 1px dashed #aaa;} - -.mce-pagebreak{display: block;width: 100%;height: 5px;margin-top: 15px;cursor: default;border: 1px dashed #aaa;page-break-before: always;}@media print{.mce-pagebreak{border: 0;}} - -.tiny-pageembed .mce-shim{position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);} - -.tiny-pageembed[data-mce-selected="2"] .mce-shim{display: none;} - -.tiny-pageembed{position: relative;display: inline-block;} - -.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{position: relative;display: block;width: 100%;padding: 0;overflow: hidden;} - -.tiny-pageembed--16by9::before,.tiny-pageembed--1by1::before,.tiny-pageembed--21by9::before,.tiny-pageembed--4by3::before{display: block;content: "";} - -.tiny-pageembed--21by9::before{padding-top: 42.857143%;} - -.tiny-pageembed--16by9::before{padding-top: 56.25%;} - -.tiny-pageembed--4by3::before{padding-top: 75%;} - -.tiny-pageembed--1by1::before{padding-top: 100%;} - -.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{position: absolute;top: 0;left: 0;width: 100%;height: 100%;border: 0;} - -.mce-content-body div.mce-resizehandle{position: absolute;z-index: 10000;width: 10px;height: 10px;background-color: #4099ff;border-color: #4099ff;border-style: solid;border-width: 1px;box-sizing: border-box;} - -.mce-content-body div.mce-resizehandle:hover{background-color: #4099ff;} - -.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor: nwse-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor: nesw-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor: nwse-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor: nesw-resize;} - -.mce-content-body .mce-clonedresizable{position: absolute;z-index: 10000;outline: 1px dashed #000;opacity: .5;} - -.mce-content-body .mce-resize-helper{position: absolute;z-index: 10001;display: none;padding: 5px;margin: 5px 10px;font-family: sans-serif;font-size: 12px;line-height: 14px;color: #fff;white-space: nowrap;background: #555;background: rgba(0,0,0,.75);border: 1px;border-radius: 3px;} - -.mce-match-marker{color: #fff;background: #aaa;} - -.mce-match-marker-selected{color: #fff;background: #39f;} - -.mce-content-body img[data-mce-selected],.mce-content-body table[data-mce-selected]{outline: 3px solid #b4d7ff;} - -.mce-content-body hr[data-mce-selected]{outline: 3px solid #b4d7ff;outline-offset: 1px;} - -.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline: 3px solid #b4d7ff;} - -.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline: 3px solid #b4d7ff;} - -.mce-content-body [contentEditable=false][data-mce-selected]{cursor: not-allowed;outline: 3px solid #b4d7ff;} - -.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline: 0;} - -.mce-content-body [data-mce-selected=inline-boundary]{background-color: #b4d7ff;} - -.mce-content-body .mce-edit-focus{outline: 3px solid #b4d7ff;} - -.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{background-color: #b4d7ff !important;} - -.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background: 0 0;} - -.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background: 0 0;} - -.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{-webkit-touch-callout: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;} - -.mce-content-body img::-moz-selection{background: 0 0;} - -.mce-content-body img::selection{background: 0 0;} - -.ephox-snooker-resizer-bar{background-color: #b4d7ff;opacity: 0;} - -.ephox-snooker-resizer-cols{cursor: col-resize;} - -.ephox-snooker-resizer-rows{cursor: row-resize;} - -.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity: 1;} - -.mce-spellchecker-word{height: 2rem;cursor: default;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.5'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position: 0 calc(100% + 1px);background-repeat: repeat-x;background-size: auto 6px;} - -.mce-spellchecker-grammar{cursor: default;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23008800'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position: 0 calc(100% + 1px);background-repeat: repeat-x;background-size: auto 6px;} - -.mce-toc{border: 1px solid gray;} - -.mce-toc h2{margin: 4px;} - -.mce-toc li{list-style-type: none;} - -.mce-item-table,.mce-item-table caption,.mce-item-table td,.mce-item-table th{border: 1px dashed #bbb;} - -.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{padding-top: 10px;margin-left: 3px;background-repeat: no-repeat;border: 1px dashed #bbb;} - -.mce-visualblocks p{background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7);} - -.mce-visualblocks h1{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==);} - -.mce-visualblocks h2{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==);} - -.mce-visualblocks h3{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7);} - -.mce-visualblocks h4{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==);} - -.mce-visualblocks h5{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==);} - -.mce-visualblocks h6{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==);} - -.mce-visualblocks div:not([data-mce-bogus]){background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7);} - -.mce-visualblocks section{background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=);} - -.mce-visualblocks article{background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7);} - -.mce-visualblocks blockquote{background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7);} - -.mce-visualblocks address{background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=);} - -.mce-visualblocks pre{background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==);} - -.mce-visualblocks figure{background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7);} - -.mce-visualblocks figcaption{border: 1px dashed #bbb;} - -.mce-visualblocks hgroup{background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7);} - -.mce-visualblocks aside{background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=);} - -.mce-visualblocks ul{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==);} - -.mce-visualblocks ol{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==);} - -.mce-visualblocks dl{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==);} - -.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left: 3px;} - -.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x: right;margin-right: 3px;} - -.mce-nbsp,.mce-shy{background: #aaa;} - -.mce-shy::after{content: '-';} - -body{font-family: sans-serif;} - -table{border-collapse: collapse;} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/content.mobile.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/content.mobile.min.css deleted file mode 100644 index c0522520ef7473120f188dda219d918fc43c6a43..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/content.mobile.min.css +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.tinymce-mobile-unfocused-selections .tinymce-mobile-unfocused-selection{position: absolute;display: inline-block;background-color: green;opacity: .5;} - -body{-webkit-text-size-adjust: none;} - -body img{max-width: 96vw;} - -body table img{max-width: 95%;} - -body{font-family: sans-serif;} - -table{border-collapse: collapse;} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/skin.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/skin.min.css deleted file mode 100644 index d8dc9b2dabf10d13a6b4e848b860587c1f5488d1..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/skin.min.css +++ /dev/null @@ -1,875 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.tox{font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 16px;font-style: normal;font-weight: 400;line-height: normal;color: #222f3e;text-decoration: none;text-shadow: none;text-transform: none;white-space: normal;vertical-align: initial;cursor: auto;box-sizing: content-box;-webkit-tap-highlight-color: transparent;} - -.tox :not(svg){font-family: inherit;font-size: inherit;font-style: inherit;font-weight: inherit;line-height: inherit;color: inherit;text-align: inherit;text-decoration: inherit;text-shadow: inherit;text-transform: inherit;white-space: inherit;vertical-align: inherit;cursor: inherit;box-sizing: inherit;direction: inherit;-webkit-tap-highlight-color: inherit;} - -.tox :not(svg){position: static;float: none;width: auto;height: auto;max-width: none;padding: 0;margin: 0;background: 0 0;border: 0;outline: 0;} - -.tox:not([dir=rtl]){text-align: left;direction: ltr;} - -.tox[dir=rtl]{text-align: right;direction: rtl;} - -.tox-tinymce{position: relative;display: flex;overflow: hidden;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;border: 1px solid #000;border-radius: 0;visibility: inherit !important;box-shadow: none;box-sizing: border-box;flex-direction: column;} - -.tox-editor-container{display: flex;flex: 1 1 auto;flex-direction: column;overflow: hidden;} - -.tox-editor-container>:first-child{border-top: none !important;} - -.tox-tinymce-aux{font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;} - -.tox-tinymce :focus,.tox-tinymce-aux :focus{outline: 0;} - -button::-moz-focus-inner{border: 0;} - -.tox-silver-sink{z-index: 1300;} - -.tox .tox-anchorbar{display: flex;flex: 0 0 auto;} - -.tox .tox-bar{display: flex;flex: 0 0 auto;} - -.tox .tox-button{display: inline-block;padding: 4px 16px;margin: 0;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 14px;font-weight: 700;line-height: 24px;letter-spacing: 1;color: #fff;text-align: center;text-decoration: none;text-transform: capitalize;white-space: nowrap;cursor: pointer;background-color: #207ab7;background-image: none;background-position: none;background-repeat: none;border-color: #207ab7;border-style: solid;border-width: 1px;border-radius: 3px;outline: 0;box-shadow: none;box-sizing: border-box;} - -.tox .tox-button[disabled]{color: rgba(255,255,255,.5);cursor: not-allowed;background-color: #207ab7;background-image: none;border-color: #207ab7;box-shadow: none;} - -.tox .tox-button:focus:not(:disabled){color: #fff;background-color: #1c6ca1;background-image: none;border-color: #1c6ca1;box-shadow: none;} - -.tox .tox-button:hover:not(:disabled){color: #fff;background-color: #1c6ca1;background-image: none;border-color: #1c6ca1;box-shadow: none;} - -.tox .tox-button:active:not(:disabled){color: #fff;background-color: #185d8c;background-image: none;border-color: #185d8c;box-shadow: none;} - -.tox .tox-button--secondary{padding: 4px 16px;color: #fff;text-decoration: none;text-transform: capitalize;background-color: #3d546f;background-image: none;background-position: none;background-repeat: none;border-color: #3d546f;border-style: solid;border-width: 1px;border-radius: 3px;outline: 0;box-shadow: none;} - -.tox .tox-button--secondary[disabled]{color: rgba(255,255,255,.5);background-color: #3d546f;background-image: none;border-color: #3d546f;box-shadow: none;} - -.tox .tox-button--secondary:focus:not(:disabled){color: #fff;background-color: #34485f;background-image: none;border-color: #34485f;box-shadow: none;} - -.tox .tox-button--secondary:hover:not(:disabled){color: #fff;background-color: #34485f;background-image: none;border-color: #34485f;box-shadow: none;} - -.tox .tox-button--secondary:active:not(:disabled){color: #fff;background-color: #2b3b4e;background-image: none;border-color: #2b3b4e;box-shadow: none;} - -.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding: 4px;} - -.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display: block;fill: currentColor;} - -.tox .tox-button-link{display: inline-block;padding: 0;margin: 0;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 16px;font-weight: 400;line-height: 1.3;white-space: nowrap;cursor: pointer;background: 0;border: none;box-sizing: border-box;} - -.tox .tox-button-link--sm{font-size: 14px;} - -.tox .tox-button--naked{color: #fff;background-color: transparent;border-color: transparent;box-shadow: unset;} - -.tox .tox-button--naked:hover:not(:disabled){color: #fff;background-color: #34485f;border-color: #34485f;box-shadow: none;} - -.tox .tox-button--naked:focus:not(:disabled){color: #fff;background-color: #34485f;border-color: #34485f;box-shadow: none;} - -.tox .tox-button--naked:active:not(:disabled){color: #fff;background-color: #2b3b4e;border-color: #2b3b4e;box-shadow: none;} - -.tox .tox-button--naked .tox-icon svg{fill: currentColor;} - -.tox .tox-button--naked.tox-button--icon{color: currentColor;} - -.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color: #fff;} - -.tox .tox-checkbox{display: flex;height: 36px;min-width: 36px;cursor: pointer;border-radius: 3px;align-items: center;} - -.tox .tox-checkbox__input{position: absolute;top: auto;left: -10000px;width: 1px;height: 1px;overflow: hidden;} - -.tox .tox-checkbox__icons{width: 24px;height: 24px;padding: calc(4px - 1px);border-radius: 3px;box-shadow: 0 0 0 2px transparent;box-sizing: content-box;} - -.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display: block;fill: rgba(255,255,255,.2);} - -.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display: none;fill: #207ab7;} - -.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display: none;fill: #207ab7;} - -.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display: none;} - -.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display: block;} - -.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display: none;} - -.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display: block;} - -.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{padding: calc(4px - 1px);border-radius: 3px;box-shadow: inset 0 0 0 1px #207ab7;} - -.tox:not([dir=rtl]) .tox-checkbox__label{margin-left: 4px;} - -.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left: 4px;} - -.tox[dir=rtl] .tox-checkbox__label{margin-right: 4px;} - -.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right: 4px;} - -.tox .tox-collection--toolbar .tox-collection__group{display: flex;padding: 0;} - -.tox .tox-collection--grid .tox-collection__group{display: flex;max-height: 208px;padding: 0;overflow-x: hidden;overflow-y: auto;flex-wrap: wrap;} - -.tox .tox-collection--list .tox-collection__group{padding: 4px 0;border-color: #1a1a1a;border-style: solid;border-top-width: 1px;border-right-width: 0;border-bottom-width: 0;border-left-width: 0;} - -.tox .tox-collection--list .tox-collection__group:first-child{border-top-width: 0;} - -.tox .tox-collection__group-heading{padding: 4px 8px;margin-top: -4px;margin-bottom: 4px;font-size: 12px;font-style: normal;font-weight: 400;color: #fff;text-transform: none;cursor: default;background-color: #333;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;-webkit-touch-callout: none;} - -.tox .tox-collection__item{display: flex;color: #fff;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;align-items: center;-webkit-touch-callout: none;} - -.tox .tox-collection--list .tox-collection__item{padding: 4px 8px;} - -.tox .tox-collection--toolbar .tox-collection__item{padding: 4px;border-radius: 3px;} - -.tox .tox-collection--grid .tox-collection__item{padding: 4px;border-radius: 3px;} - -.tox .tox-collection--list .tox-collection__item--enabled{color: contrast(inherit,#222f3e,#fff);background-color: inherit;} - -.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color: #fff;background-color: #434e5b;} - -.tox .tox-collection--toolbar .tox-collection__item--enabled{color: #fff;background-color: #6f7882;} - -.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color: #fff;background-color: #434e5b;} - -.tox .tox-collection--grid .tox-collection__item--enabled{color: #fff;background-color: #6f7882;} - -.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){color: #fff;background-color: #434e5b;} - -.tox .tox-collection__item--state-disabled{color: rgba(255,255,255,.5);cursor: default;background-color: transparent;} - -.tox .tox-collection__item-icon{display: flex;width: 24px;height: 24px;align-items: center;justify-content: center;} - -.tox .tox-collection__item-icon svg{fill: currentColor;} - -.tox .tox-collection--toolbar-lg .tox-collection__item-icon{width: 48px;height: 48px;} - -.tox .tox-collection__item[role=menuitemcheckbox]:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display: none;} - -.tox .tox-collection__item-label{display: inline-block;font-size: 14px;font-style: normal;font-weight: 400;line-height: 24px;color: currentColor;text-transform: none;word-break: break-all;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-collection__item-accessory{display: inline-block;height: 24px;font-size: 14px;line-height: 24px;color: rgba(255,255,255,.5);text-transform: normal;} - -.tox .tox-collection__item-caret{align-items: center;display: flex;min-height: 24px;} - -.tox .tox-collection__item-caret::after{min-height: inherit;font-size: 0;content: '';} - -.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>:not(:first-child){margin-left: 8px;} - -.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item-label:first-child{margin-left: 4px;} - -.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left: 16px;text-align: right;} - -.tox:not([dir=rtl]) .tox-collection__item-caret{margin-left: 16px;} - -.tox[dir=rtl] .tox-collection--list .tox-collection__item>:not(:first-child){margin-right: 8px;} - -.tox[dir=rtl] .tox-collection--list .tox-collection__item-label:first-child{margin-right: 4px;} - -.tox[dir=rtl] .tox-collection__item-icon-rtl .tox-collection__item-icon svg{transform: rotateY(180deg);} - -.tox[dir=rtl] .tox-collection__item-accessory{margin-right: 16px;text-align: left;} - -.tox[dir=rtl] .tox-collection__item-caret{margin-right: 16px;transform: rotateY(180deg);} - -.tox .tox-color-picker-container{display: flex;flex-direction: row;height: 225px;margin: 0;} - -.tox .tox-sv-palette{display: flex;height: 100%;box-sizing: border-box;} - -.tox .tox-sv-palette-spectrum{height: 100%;} - -.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width: 225px;} - -.tox .tox-sv-palette-thumb{position: absolute;width: 12px;height: 12px;background: 0 0;border: 1px solid #000;border-radius: 50%;box-sizing: content-box;} - -.tox .tox-sv-palette-inner-thumb{position: absolute;width: 10px;height: 10px;border: 1px solid #fff;border-radius: 50%;} - -.tox .tox-hue-slider{width: 25px;height: 100%;box-sizing: border-box;} - -.tox .tox-hue-slider-spectrum{width: 100%;height: 100%;background: linear-gradient(to bottom,red,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,red);} - -.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width: 20px;} - -.tox .tox-hue-slider-thumb{width: 100%;height: 4px;background: #fff;border: 1px solid #000;box-sizing: content-box;} - -.tox .tox-rgb-form{display: flex;flex-direction: column;justify-content: space-between;} - -.tox .tox-rgb-form div{display: flex;width: inherit;margin-bottom: 5px;align-items: center;justify-content: space-between;} - -.tox .tox-rgb-form input{width: 6em;} - -.tox .tox-rgb-form input.tox-invalid{border: 1px solid red !important;} - -.tox .tox-rgb-form .tox-rgba-preview{margin-bottom: 0;border: 1px solid #000;flex-grow: 2;} - -.tox:not([dir=rtl]) .tox-sv-palette{margin-right: 15px;} - -.tox:not([dir=rtl]) .tox-hue-slider{margin-right: 15px;} - -.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left: -1px;} - -.tox:not([dir=rtl]) .tox-rgb-form label{margin-right: .5em;} - -.tox[dir=rtl] .tox-sv-palette{margin-left: 15px;} - -.tox[dir=rtl] .tox-hue-slider{margin-left: 15px;} - -.tox[dir=rtl] .tox-hue-slider-thumb{margin-right: -1px;} - -.tox[dir=rtl] .tox-rgb-form label{margin-left: .5em;} - -.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches,.tox .tox-toolbar__primary .tox-swatches{margin: 2px 0 3px 4px;} - -.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{margin: -4px 0;border: 0;} - -.tox .tox-swatches__row{display: flex;} - -.tox .tox-swatch{width: 30px;height: 30px;transition: transform .15s,box-shadow .15s;} - -.tox .tox-swatch:focus,.tox .tox-swatch:hover{transform: scale(.8);box-shadow: 0 0 0 1px rgba(127,127,127,.3) inset;} - -.tox .tox-swatch--remove{align-items: center;display: flex;justify-content: center;} - -.tox .tox-swatch--remove svg path{stroke: #e74c3c;} - -.tox .tox-swatches__picker-btn{display: flex;width: 30px;height: 30px;padding: 0;cursor: pointer;background-color: transparent;border: 0;outline: 0;align-items: center;justify-content: center;} - -.tox .tox-swatches__picker-btn svg{width: 24px;height: 24px;} - -.tox .tox-swatches__picker-btn:hover{background: #434e5b;} - -.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left: auto;} - -.tox[dir=rtl] .tox-swatches__picker-btn{margin-right: auto;} - -.tox .tox-comment-thread{position: relative;background: #2b3b4e;} - -.tox .tox-comment-thread>:not(:first-child){margin-top: 8px;} - -.tox .tox-comment{position: relative;padding: 8px 8px 16px 8px;background: #2b3b4e;border: 1px solid #000;border-radius: 3px;box-shadow: 0 4px 8px 0 rgba(34,47,62,.1);} - -.tox .tox-comment__header{display: flex;color: #fff;align-items: center;justify-content: space-between;} - -.tox .tox-comment__date{font-size: 12px;color: rgba(255,255,255,.5);} - -.tox .tox-comment__body{position: relative;margin-top: 8px;font-size: 14px;font-style: normal;font-weight: 400;line-height: 1.3;color: #fff;text-transform: initial;} - -.tox .tox-comment__body textarea{width: 100%;white-space: normal;resize: none;} - -.tox .tox-comment__expander{padding-top: 8px;} - -.tox .tox-comment__expander p{font-size: 14px;font-style: normal;color: rgba(255,255,255,.5);} - -.tox .tox-comment__body p{margin: 0;} - -.tox .tox-comment__buttonspacing{padding-top: 16px;text-align: center;} - -.tox .tox-comment-thread__overlay::after{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 5;display: flex;background: #2b3b4e;content: "";opacity: .9;} - -.tox .tox-comment__reply{display: flex;flex-shrink: 0;flex-wrap: wrap;justify-content: flex-end;margin-top: 8px;} - -.tox .tox-comment__reply>:first-child{width: 100%;margin-bottom: 8px;} - -.tox .tox-comment__edit{display: flex;flex-wrap: wrap;justify-content: flex-end;margin-top: 16px;} - -.tox .tox-comment__gradient::after{position: absolute;bottom: 0;display: block;width: 100%;height: 5em;margin-top: -40px;background: linear-gradient(rgba(43,59,78,0),#2b3b4e);content: "";} - -.tox .tox-comment__overlay{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 5;display: flex;text-align: center;background: #2b3b4e;opacity: .9;flex-direction: column;flex-grow: 1;} - -.tox .tox-comment__loading-text{position: relative;display: flex;color: #fff;align-items: center;flex-direction: column;} - -.tox .tox-comment__loading-text>div{padding-bottom: 16px;} - -.tox .tox-comment__overlaytext{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 10;padding: 1em;font-size: 14px;flex-direction: column;} - -.tox .tox-comment__overlaytext p{color: #fff;text-align: center;background-color: #2b3b4e;box-shadow: 0 0 8px 8px #2b3b4e;} - -.tox .tox-comment__overlaytext div:nth-of-type(2){font-size: .8em;} - -.tox .tox-comment__busy-spinner{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 1103;display: flex;background-color: #2b3b4e;align-items: center;justify-content: center;} - -.tox .tox-comment__scroll{display: flex;flex-direction: column;flex-shrink: 1;overflow: auto;} - -.tox .tox-conversations{margin: 8px;} - -.tox:not([dir=rtl]) .tox-comment__edit{margin-left: 8px;} - -.tox:not([dir=rtl]) .tox-comment__buttonspacing>:last-child,.tox:not([dir=rtl]) .tox-comment__edit>:last-child,.tox:not([dir=rtl]) .tox-comment__reply>:last-child{margin-left: 8px;} - -.tox[dir=rtl] .tox-comment__edit{margin-right: 8px;} - -.tox[dir=rtl] .tox-comment__buttonspacing>:last-child,.tox[dir=rtl] .tox-comment__edit>:last-child,.tox[dir=rtl] .tox-comment__reply>:last-child{margin-right: 8px;} - -.tox .tox-user{align-items: center;display: flex;} - -.tox .tox-user__avatar svg{fill: rgba(255,255,255,.5);} - -.tox .tox-user__name{font-size: 12px;font-style: normal;font-weight: 700;color: rgba(255,255,255,.5);text-transform: uppercase;} - -.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right: 8px;} - -.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left: 8px;} - -.tox[dir=rtl] .tox-user__avatar svg{margin-left: 8px;} - -.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right: 8px;} - -.tox .tox-dialog-wrap{position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1100;display: flex;align-items: center;justify-content: center;} - -.tox .tox-dialog-wrap__backdrop{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 1101;background-color: rgba(34,47,62,.75);} - -.tox .tox-dialog{position: relative;z-index: 1102;display: flex;width: 95vw;max-width: 480px;max-height: 100%;overflow: hidden;background-color: #2b3b4e;border-color: #000;border-style: solid;border-width: 1px;border-radius: 3px;box-shadow: 0 16px 16px -10px rgba(34,47,62,.15),0 0 40px 1px rgba(34,47,62,.15);flex-direction: column;} - -.tox .tox-dialog__header{position: relative;display: flex;padding: 8px 16px 0 16px;margin-bottom: 16px;font-size: 16px;color: #fff;background-color: #2b3b4e;border-bottom: none;align-items: center;justify-content: space-between;} - -.tox .tox-dialog__header .tox-button{z-index: 1;} - -.tox .tox-dialog__draghandle{position: absolute;top: 0;left: 0;width: 100%;height: 100%;cursor: grab;} - -.tox .tox-dialog__draghandle:active{cursor: grabbing;} - -.tox .tox-dialog__dismiss{margin-left: auto;} - -.tox .tox-dialog__title{margin: 0;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 20px;font-style: normal;font-weight: 400;line-height: 1.3;text-transform: normal;} - -.tox .tox-dialog__body{display: flex;min-width: 0;padding: 0 16px;font-size: 16px;font-style: normal;font-weight: 400;line-height: 1.3;color: #fff;text-align: left;text-transform: normal;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-dialog__body-nav{align-items: flex-start;display: flex;flex-direction: column;} - -.tox .tox-dialog__body-nav-item{display: inline-block;margin-bottom: 8px;font-size: 14px;line-height: 1.3;color: rgba(255,255,255,.5);text-decoration: none;border-bottom: 2px solid transparent;} - -.tox .tox-dialog__body-nav-item--active{color: #207ab7;border-bottom: 2px solid #207ab7;} - -.tox .tox-dialog__body-content{display: flex;flex: 1;flex-direction: column;-ms-flex-preferred-size: auto;max-height: 650px;overflow: auto;} - -.tox .tox-dialog__body-content>*{margin-top: 16px;margin-bottom: 0;} - -.tox .tox-dialog__body-content>:first-child{margin-top: 0;} - -.tox .tox-dialog__body-content>:last-child{margin-bottom: 0;} - -.tox .tox-dialog__body-content>:only-child{margin-top: 0;margin-bottom: 0;} - -.tox .tox-dialog--width-lg{height: 650px;max-width: 1200px;} - -.tox .tox-dialog--width-md{max-width: 800px;} - -.tox .tox-dialog--width-md .tox-dialog__body-content{overflow: auto;} - -.tox .tox-dialog__body-content--centered{text-align: center;} - -.tox .tox-dialog__body-content--spacious{margin-bottom: 16px;} - -.tox .tox-dialog__footer{display: flex;padding: 8px 16px;margin-top: 16px;background-color: #2b3b4e;border-top: 1px solid #000;align-items: center;justify-content: space-between;} - -.tox .tox-dialog__busy-spinner{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 1103;display: flex;background-color: rgba(34,47,62,.75);align-items: center;justify-content: center;} - -.tox .tox-dialog__table{width: 100%;border-collapse: collapse;} - -.tox .tox-dialog__table thead th{padding-bottom: 8px;font-weight: 700;} - -.tox .tox-dialog__table tbody tr{border-bottom: 1px solid #000;} - -.tox .tox-dialog__table tbody tr:last-child{border-bottom: none;} - -.tox .tox-dialog__table td{padding-top: 8px;padding-bottom: 8px;} - -.tox .tox-dialog__popups{position: absolute;z-index: 1100;width: 100%;} - -.tox .tox-dialog__body-iframe{display: flex;flex: 1;flex-direction: column;-ms-flex-preferred-size: auto;} - -.tox .tox-dialog__body-iframe .tox-navobj{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex: 1;-ms-flex-preferred-size: auto;height: 100%;} - -body.tox-dialog__disable-scroll{overflow: hidden;} - -.tox.tox-platform-ie .tox-dialog-wrap{position: -ms-device-fixed;} - -.tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right: 32px;} - -.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*{margin-left: 8px;} - -.tox[dir=rtl] .tox-dialog__body{text-align: right;} - -.tox[dir=rtl] .tox-dialog__body-nav{margin-left: 32px;} - -.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*{margin-right: 8px;} - -.tox .tox-dropzone-container{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-dropzone{display: flex;min-height: 100px;padding: 10px;background: #fff;border: 2px dashed #000;box-sizing: border-box;align-items: center;flex-direction: column;flex-grow: 1;justify-content: center;} - -.tox .tox-dropzone p{margin: 0 0 16px 0;color: rgba(255,255,255,.5);} - -.tox .tox-edit-area{position: relative;display: flex;overflow: hidden;border-top: 1px solid #000;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-edit-area__iframe{position: absolute;width: 100%;height: 100%;background-color: #fff;border: 0;box-sizing: border-box;flex: 1;-ms-flex-preferred-size: auto;} - -.tox.tox-inline-edit-area{border: 1px dotted #000;} - -.tox .tox-control-wrap{flex: 1;position: relative;} - -.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display: none;} - -.tox .tox-control-wrap svg{display: block;} - -.tox .tox-control-wrap__status-icon-wrap{position: absolute;top: 50%;transform: translateY(-50%);} - -.tox .tox-control-wrap__status-icon-invalid svg{fill: #c00;} - -.tox .tox-control-wrap__status-icon-unknown svg{fill: orange;} - -.tox .tox-control-wrap__status-icon-valid svg{fill: green;} - -.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right: 32px;} - -.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right: 4px;} - -.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left: 32px;} - -.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left: 4px;} - -.tox .tox-autocompleter{max-width: 25em;} - -.tox .tox-autocompleter .tox-menu{max-width: 25em;} - -.tox .tox-color-input{display: flex;} - -.tox .tox-color-input .tox-textfield{display: flex;border-radius: 3px 0 0 3px;} - -.tox .tox-color-input span{display: flex;width: 35px;cursor: pointer;border-color: rgba(34,47,62,.2);border-style: solid;border-width: 1px 1px 1px 0;border-radius: 0 3px 3px 0;box-shadow: none;box-sizing: border-box;} - -.tox .tox-color-input span:focus{border-color: #207ab7;} - -.tox[dir=rtl] .tox-color-input .tox-textfield{border-radius: 0 3px 3px 0;} - -.tox[dir=rtl] .tox-color-input span{border-width: 1px 0 1px 1px;border-radius: 3px 0 0 3px;} - -.tox .tox-label,.tox .tox-toolbar-label{display: block;padding: 0 8px 0 0;font-size: 14px;font-style: normal;font-weight: 400;line-height: 1.3;color: rgba(255,255,255,.5);text-transform: normal;white-space: nowrap;} - -.tox .tox-toolbar-label{padding: 0 8px;} - -.tox[dir=rtl] .tox-label{padding: 0 0 0 8px;} - -.tox .tox-form{display: flex;flex: 1;flex-direction: column;-ms-flex-preferred-size: auto;} - -.tox .tox-form__group{margin-bottom: 4px;box-sizing: border-box;} - -.tox .tox-form__group--error{color: #c00;} - -.tox .tox-form__group--collection{display: flex;} - -.tox .tox-form__grid{display: flex;flex-direction: row;flex-wrap: wrap;justify-content: space-between;} - -.tox .tox-form__grid--2col>.tox-form__group{width: calc(50% - (8px / 2));} - -.tox .tox-form__grid--3col>.tox-form__group{width: calc(100% / 3 - (8px / 2));} - -.tox .tox-form__grid--4col>.tox-form__group{width: calc(25% - (8px / 2));} - -.tox .tox-form__controls-h-stack{align-items: center;display: flex;} - -.tox .tox-form__group--inline{align-items: center;display: flex;} - -.tox .tox-form__group--stretched{display: flex;flex: 1;flex-direction: column;-ms-flex-preferred-size: auto;} - -.tox .tox-form__group--stretched .tox-textarea{flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-form__group--stretched .tox-navobj{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex: 1;-ms-flex-preferred-size: auto;height: 100%;} - -.tox:not([dir=rtl]) .tox-form__controls-h-stack>:not(:first-child){margin-left: 4px;} - -.tox[dir=rtl] .tox-form__controls-h-stack>:not(:first-child){margin-right: 4px;} - -.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display: none;} - -.tox .tox-textarea,.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox:not([dir=rtl]) .tox-selectfield select,.tox[dir=rtl] .tox-selectfield select{width: 100%;padding: 5px 4.75px;margin: 0;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 16px;line-height: 24px;color: #fff;background-color: #2b3b4e;border-color: #000;border-style: solid;border-width: 1px;border-radius: 3px;outline: 0;box-shadow: none;box-sizing: border-box;resize: none;-webkit-appearance: none;-moz-appearance: none;appearance: none;} - -.tox .tox-selectfield select:focus,.tox .tox-textarea:focus,.tox .tox-textfield:focus{border-color: #207ab7;outline: 0;box-shadow: none;} - -.tox .tox-toolbar-textfield{max-width: 250px;margin-top: 2px;margin-bottom: 3px;border-width: 0;} - -.tox .tox-naked-btn{display: block;padding: 0;margin: 0;color: #207ab7;cursor: pointer;background-color: transparent;border: 0;border-color: transparent;box-shadow: unset;} - -.tox .tox-naked-btn svg{display: block;fill: #fff;} - -.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left: 4px;} - -.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right: 4px;} - -.tox .tox-selectfield{position: relative;cursor: pointer;} - -.tox .tox-selectfield select::-ms-expand{display: none;} - -.tox .tox-selectfield svg{position: absolute;top: 50%;pointer-events: none;transform: translateY(-50%);} - -.tox:not([dir=rtl]) .tox-selectfield select{padding-right: 24px;} - -.tox:not([dir=rtl]) .tox-selectfield svg{right: 8px;} - -.tox[dir=rtl] .tox-selectfield select{padding-left: 24px;} - -.tox[dir=rtl] .tox-selectfield svg{left: 8px;} - -.tox .tox-textarea{white-space: pre-wrap;-webkit-appearance: textarea;-moz-appearance: textarea;appearance: textarea;} - -.tox-fullscreen{position: fixed;top: 0;left: 0;width: 100%;height: 100%;padding: 0;margin: 0;overflow: hidden;border: 0;} - -.tox-fullscreen .tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display: none;} - -.tox-fullscreen .tox.tox-tinymce.tox-fullscreen{z-index: 1200;} - -.tox-fullscreen .tox.tox-tinymce-aux{z-index: 1201;} - -.tox .tox-image-tools{width: 100%;} - -.tox .tox-image-tools__toolbar{align-items: center;display: flex;justify-content: center;} - -.tox .tox-image-tools__image{position: relative;width: 100%;height: 380px;overflow: auto;background-color: #666;} - -.tox .tox-image-tools__image,.tox .tox-image-tools__image+.tox-image-tools__toolbar{margin-top: 8px;} - -.tox .tox-image-tools__image-bg{background: url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==);} - -.tox .tox-image-tools__toolbar>.tox-spacer{flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-croprect-block{position: absolute;background: #000;opacity: .5;zoom: 1;} - -.tox .tox-croprect-handle{position: absolute;top: 0;left: 0;width: 20px;height: 20px;border: 2px solid #fff;} - -.tox .tox-croprect-handle-move{position: absolute;cursor: move;border: 0;} - -.tox .tox-croprect-handle-nw{top: 100px;left: 100px;margin: -2px 0 0 -2px;cursor: nw-resize;border-width: 2px 0 0 2px;} - -.tox .tox-croprect-handle-ne{top: 100px;left: 200px;margin: -2px 0 0 -20px;cursor: ne-resize;border-width: 2px 2px 0 0;} - -.tox .tox-croprect-handle-sw{top: 200px;left: 100px;margin: -20px 2px 0 -2px;cursor: sw-resize;border-width: 0 0 2px 2px;} - -.tox .tox-croprect-handle-se{top: 200px;left: 200px;margin: -20px 0 0 -20px;cursor: se-resize;border-width: 0 2px 2px 0;} - -.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-left: 8px;} - -.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-left: 32px;} - -.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-left: 32px;} - -.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-right: 8px;} - -.tox[dir=rtl] .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-right: 32px;} - -.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-right: 32px;} - -.tox .tox-insert-table-picker{display: flex;flex-wrap: wrap;width: 169px;} - -.tox .tox-insert-table-picker>div{width: 16px;height: 16px;border-color: #070a0d;border-style: solid;border-width: 0 1px 1px 0;box-sizing: content-box;} - -.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin: -4px 0;} - -.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color: rgba(32,122,183,.5);border-color: rgba(32,122,183,.5);} - -.tox .tox-insert-table-picker__label{display: block;width: 100%;padding: 4px;font-size: 14px;color: #fff;text-align: center;} - -.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right: 0;} - -.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right: 0;} - -.tox .tox-menu{z-index: 1;display: inline-block;overflow: hidden;vertical-align: top;background-color: #2b3b4e;border: 1px solid #000;border-radius: 3px;box-shadow: 0 4px 8px 0 rgba(34,47,62,.1);} - -.tox .tox-menu.tox-collection.tox-collection--list{padding: 0;} - -.tox .tox-menu.tox-collection.tox-collection--toolbar{padding: 4px;} - -.tox .tox-menu.tox-collection.tox-collection--grid{padding: 4px;} - -.tox .tox-menu__label blockquote,.tox .tox-menu__label code,.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p{margin: 0;} - -.tox .tox-menubar{display: flex;padding: 0 4px;margin-bottom: -1px;background: url("data:image/svg+xml;charset=utf8,%3Csvg height='43px' viewBox='0 0 40 43px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='42px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color: #222f3e;flex: 0 0 auto;flex-shrink: 0;flex-wrap: wrap;} - -.tox .tox-mbtn{display: flex;width: auto;height: 34px;padding: 0 4px;margin: 2px 0 3px 0;overflow: hidden;font-size: 14px;font-style: normal;font-weight: 400;color: #fff;text-transform: normal;background: 0 0;border: 0;border-radius: 3px;outline: 0;box-shadow: none;align-items: center;flex: 0 0 auto;justify-content: center;} - -.tox .tox-mbtn[disabled]{color: rgba(255,255,255,.5);cursor: not-allowed;background-color: none;border-color: none;box-shadow: none;} - -.tox .tox-mbtn:hover:not(:disabled){color: #fff;background: #434e5b;box-shadow: none;} - -.tox .tox-mbtn:focus:not(:disabled){color: #fff;background: #434e5b;box-shadow: none;} - -.tox .tox-mbtn--active{color: #fff;background: #6f7882;box-shadow: none;} - -.tox .tox-mbtn__select-label{margin: 0 4px;font-weight: 400;cursor: default;} - -.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor: not-allowed;} - -.tox .tox-mbtn__select-chevron{display: flex;display: none;width: 16px;align-items: center;justify-content: center;} - -.tox .tox-notification{display: grid;padding: 5px;margin-top: 5px;background-color: #fffaea;border-color: #ffe89d;border-style: solid;border-width: 1px;opacity: 0;box-sizing: border-box;transition: transform .1s ease-in,opacity 150ms ease-in;grid-template-columns: minmax(40px,1fr) auto minmax(40px,1fr);} - -.tox .tox-notification--in{opacity: 1;} - -.tox .tox-notification--success{background-color: #dff0d8;border-color: #d6e9c6;} - -.tox .tox-notification--error{background-color: #f2dede;border-color: #ebccd1;} - -.tox .tox-notification--warn{background-color: #fcf8e3;border-color: #faebcc;} - -.tox .tox-notification--info{background-color: #d9edf7;border-color: #779ecb;} - -.tox .tox-notification__body{font-size: 14px;color: #fff;text-align: center;word-break: break-all;word-break: break-word;white-space: normal;align-self: center;grid-column-end: 3;-ms-grid-column-span: 1;grid-column-start: 2;grid-row-end: 2;grid-row-start: 1;} - -.tox .tox-notification__body>*{margin: 0;} - -.tox .tox-notification__body>*+*{margin-top: 1rem;} - -.tox .tox-notification__icon{align-self: center;-ms-grid-column-align: end;grid-column-end: 2;-ms-grid-column-span: 1;grid-column-start: 1;grid-row-end: 2;grid-row-start: 1;justify-self: end;} - -.tox .tox-notification__icon svg{display: block;} - -.tox .tox-notification__dismiss{align-self: start;-ms-grid-column-align: end;grid-column-end: 4;-ms-grid-column-span: 1;grid-column-start: 3;grid-row-end: 2;grid-row-start: 1;justify-self: end;} - -.tox .tox-notification .tox-progress-bar{-ms-grid-column-align: center;grid-column-end: 4;-ms-grid-column-span: 3;grid-column-start: 1;grid-row-end: 3;-ms-grid-row-span: 1;grid-row-start: 2;justify-self: center;} - -.tox .tox-pop{position: relative;display: inline-block;} - -.tox .tox-pop--resizing{transition: width .1s ease;} - -.tox .tox-pop--resizing .tox-toolbar{flex-wrap: nowrap;} - -.tox .tox-pop__dialog{min-width: 0;overflow: hidden;background-color: #222f3e;border: 1px solid #000;border-radius: 3px;box-shadow: 0 1px 3px rgba(0,0,0,.15);} - -.tox .tox-pop__dialog>:not(.tox-toolbar){margin: 4px 4px 4px 8px;} - -.tox .tox-pop__dialog .tox-toolbar{background-color: transparent;} - -.tox .tox-pop::after,.tox .tox-pop::before{position: absolute;display: block;width: 0;height: 0;border-style: solid;content: '';} - -.tox .tox-pop.tox-pop--bottom::after,.tox .tox-pop.tox-pop--bottom::before{top: 100%;left: 50%;} - -.tox .tox-pop.tox-pop--bottom::after{margin-top: -1px;margin-left: -8px;border-color: #222f3e transparent transparent transparent;border-width: 8px;} - -.tox .tox-pop.tox-pop--bottom::before{margin-left: -9px;border-color: #000 transparent transparent transparent;border-width: 9px;} - -.tox .tox-pop.tox-pop--top::after,.tox .tox-pop.tox-pop--top::before{top: 0;left: 50%;transform: translateY(-100%);} - -.tox .tox-pop.tox-pop--top::after{margin-top: 1px;margin-left: -8px;border-color: transparent transparent #222f3e transparent;border-width: 8px;} - -.tox .tox-pop.tox-pop--top::before{margin-left: -9px;border-color: transparent transparent #000 transparent;border-width: 9px;} - -.tox .tox-pop.tox-pop--left::after,.tox .tox-pop.tox-pop--left::before{top: calc(50% - 1px);left: 0;transform: translateY(-50%);} - -.tox .tox-pop.tox-pop--left::after{margin-left: -15px;border-color: transparent #222f3e transparent transparent;border-width: 8px;} - -.tox .tox-pop.tox-pop--left::before{margin-left: -19px;border-color: transparent #000 transparent transparent;border-width: 10px;} - -.tox .tox-pop.tox-pop--right::after,.tox .tox-pop.tox-pop--right::before{top: calc(50% + 1px);left: 100%;transform: translateY(-50%);} - -.tox .tox-pop.tox-pop--right::after{margin-left: -1px;border-color: transparent transparent transparent #222f3e;border-width: 8px;} - -.tox .tox-pop.tox-pop--right::before{margin-left: -1px;border-color: transparent transparent transparent #000;border-width: 10px;} - -.tox .tox-pop.tox-pop--align-left::after,.tox .tox-pop.tox-pop--align-left::before{left: 20px;} - -.tox .tox-pop.tox-pop--align-right::after,.tox .tox-pop.tox-pop--align-right::before{left: calc(100% - 20px);} - -.tox .tox-sidebar-wrap{display: flex;flex-direction: row;flex-grow: 1;min-height: 0;} - -.tox .tox-sidebar{display: flex;flex-direction: row;justify-content: flex-end;} - -.tox .tox-sidebar__slider{display: flex;overflow: hidden;} - -.tox .tox-sidebar__pane-container{display: flex;} - -.tox .tox-sidebar__pane{display: flex;} - -.tox .tox-sidebar--sliding-closed{opacity: 0;} - -.tox .tox-sidebar--sliding-open{opacity: 1;} - -.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition: width .5s ease,opacity .5s ease;} - -.tox .tox-slider{position: relative;display: flex;height: 24px;align-items: center;flex: 1;-ms-flex-preferred-size: auto;justify-content: center;} - -.tox .tox-slider__rail{width: 100%;height: 10px;min-width: 120px;background-color: transparent;border: 1px solid #000;border-radius: 3px;} - -.tox .tox-slider__handle{position: absolute;top: 50%;left: 50%;width: 14px;height: 24px;background-color: #207ab7;border: 2px solid #185d8c;border-radius: 3px;transform: translateX(-50%) translateY(-50%);box-shadow: none;} - -.tox .tox-source-code{overflow: auto;} - -.tox .tox-spinner{display: flex;} - -.tox .tox-spinner>div{width: 8px;height: 8px;background-color: rgba(255,255,255,.5);border-radius: 100%;animation: tam-bouncing-dots 1.5s ease-in-out 0s infinite both;} - -.tox .tox-spinner>div:nth-child(1){animation-delay: -.32s;} - -.tox .tox-spinner>div:nth-child(2){animation-delay: -.16s;}@keyframes tam-bouncing-dots{0%,100%,80%{transform: scale(0);} - -40%{transform: scale(1);}} - -.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left: 4px;} - -.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right: 4px;} - -.tox .tox-statusbar{position: relative;display: flex;height: 18px;padding: 0 8px;overflow: hidden;font-size: 12px;color: rgba(255,255,255,.5);text-transform: uppercase;background-color: #222f3e;border-top: 1px solid #000;align-items: center;flex: 0 0 auto;} - -.tox .tox-statusbar a{color: rgba(255,255,255,.5);text-decoration: none;} - -.tox .tox-statusbar a:hover{text-decoration: underline;} - -.tox .tox-statusbar__text-container{display: flex;flex: 1 1 auto;justify-content: flex-end;overflow: hidden;} - -.tox .tox-statusbar__path{display: flex;flex: 1 1 auto;margin-right: auto;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;} - -.tox .tox-statusbar__path>*{display: inline;white-space: nowrap;} - -.tox .tox-statusbar__wordcount{flex: 0 0 auto;margin-left: 1ch;} - -.tox .tox-statusbar__resize-handle{display: flex;padding-left: 1ch;margin-right: -8px;margin-left: auto;cursor: nwse-resize;align-items: flex-end;align-self: stretch;flex: 0 0 auto;justify-content: flex-end;} - -.tox .tox-statusbar__resize-handle svg{display: block;fill: rgba(255,255,255,.5);} - -.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right: 4px;} - -.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left: 1ch;} - -.tox[dir=rtl] .tox-statusbar{flex-direction: row-reverse;} - -.tox[dir=rtl] .tox-statusbar__path>*{margin-left: 4px;} - -.tox .tox-throbber{z-index: 1400;} - -.tox .tox-throbber__busy-spinner{position: absolute;top: 0;right: 0;bottom: 0;left: 0;display: flex;background-color: rgba(34,47,62,.6);align-items: center;justify-content: center;} - -.tox .tox-tbtn{display: flex;width: 34px;height: 34px;padding: 0;margin: 2px 0 3px 0;overflow: hidden;font-size: 14px;font-style: normal;font-weight: 400;color: #fff;text-transform: normal;background: 0 0;border: 0;border-radius: 3px;outline: 0;box-shadow: none;align-items: center;flex: 0 0 auto;justify-content: center;} - -.tox .tox-tbtn svg{display: block;fill: #fff;} - -.tox .tox-tbtn.tox-tbtn-more{width: inherit;padding-right: 5px;padding-left: 5px;} - -.tox .tox-tbtn--enabled{color: #fff;background: #6f7882;box-shadow: none;} - -.tox .tox-tbtn--enabled>*{transform: none;} - -.tox .tox-tbtn--enabled svg{fill: #fff;} - -.tox .tox-tbtn:hover{color: #fff;background: #434e5b;box-shadow: none;} - -.tox .tox-tbtn:hover svg{fill: #fff;} - -.tox .tox-tbtn:focus{color: #fff;background: #434e5b;box-shadow: none;} - -.tox .tox-tbtn:focus svg{fill: #fff;} - -.tox .tox-tbtn:active{color: #fff;background: #6f7882;box-shadow: none;} - -.tox .tox-tbtn:active svg{fill: #fff;} - -.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{color: rgba(255,255,255,.5);cursor: not-allowed;background: 0 0;box-shadow: none;} - -.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill: rgba(255,255,255,.5);} - -.tox .tox-tbtn:active>*{transform: none;} - -.tox .tox-tbtn--md{width: 51px;height: 51px;} - -.tox .tox-tbtn--lg{width: 68px;height: 68px;flex-direction: column;} - -.tox .tox-tbtn--return{width: 16px;height: unset;align-self: stretch;} - -.tox .tox-tbtn--labeled{width: unset;padding: 0 4px;} - -.tox .tox-tbtn__vlabel{display: block;margin-bottom: 4px;font-size: 10px;font-weight: 400;letter-spacing: -.025em;white-space: nowrap;} - -.tox .tox-tbtn--select{width: auto;padding: 0 4px;margin: 2px 0 3px 0;} - -.tox .tox-tbtn__select-label{margin: 0 4px;font-weight: 400;cursor: default;} - -.tox .tox-tbtn__select-chevron{align-items: center;display: flex;justify-content: center;width: 16px;} - -.tox .tox-tbtn__select-chevron svg{fill: rgba(255,255,255,.5);} - -.tox .tox-tbtn--bespoke .tox-tbtn__select-label{width: 7em;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;} - -.tox .tox-split-button{display: flex;margin: 2px 0 3px 0;overflow: hidden;border: 0;border-radius: 3px;box-sizing: border-box;} - -.tox .tox-split-button:hover{box-shadow: 0 0 0 1px #434e5b inset;} - -.tox .tox-split-button:focus{color: #fff;background: #434e5b;box-shadow: none;} - -.tox .tox-split-button>*{border-radius: 0;} - -.tox .tox-split-button__chevron{width: 16px;} - -.tox .tox-split-button__chevron svg{fill: rgba(255,255,255,.5);} - -.tox .tox-pop .tox-split-button__chevron svg{transform: rotate(-90deg);} - -.tox .tox-split-button .tox-tbtn{margin: 0;} - -.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled:hover{color: rgba(255,255,255,.5);background: 0 0;box-shadow: none;} - -.tox .tox-toolbar,.tox .tox-toolbar__overflow,.tox .tox-toolbar__primary{display: flex;padding: 0 0;margin-bottom: -1px;background: url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23000000'/%3E%3C/svg%3E") left 0 top 0 #222f3e;background-color: #222f3e;border-top: 1px solid #000;flex: 0 0 auto;flex-shrink: 0;flex-wrap: wrap;} - -.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height: 0;opacity: 0;visibility: hidden;} - -.tox .tox-toolbar__overflow--growing{transition: height .3s ease,opacity .2s linear .1s;} - -.tox .tox-toolbar__overflow--shrinking{transition: opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s;} - -.tox .tox-pop .tox-toolbar{border-width: 0;} - -.tox .tox-toolbar--no-divider{background-image: none;} - -.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color: #222f3e;border: 1px solid #000;border-radius: 3px;box-shadow: 0 1px 3px rgba(0,0,0,.15);} - -.tox.tox-tinymce-aux:not([dir=rtl]) .tox-toolbar__overflow{margin-left: 4px;} - -.tox[dir=rtl] .tox-tbtn__icon-rtl svg{transform: rotateY(180deg);} - -.tox[dir=rtl].tox-tinymce-aux .tox-toolbar__overflow{margin-right: 4px;} - -.tox .tox-toolbar__group{display: flex;padding: 0 4px;margin: 0 0;align-items: center;flex-wrap: wrap;} - -.tox .tox-toolbar__group--pull-right{margin-left: auto;} - -.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right: 1px solid #000;} - -.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left: 1px solid #000;} - -.tox .tox-tooltip{position: relative;display: inline-block;padding: 8px;} - -.tox .tox-tooltip__body{padding: 4px 8px;font-size: 14px;font-style: normal;font-weight: 400;color: rgba(255,255,255,.75);text-transform: normal;background-color: #3d546f;border-radius: 3px;box-shadow: 0 2px 4px rgba(34,47,62,.3);} - -.tox .tox-tooltip__arrow{position: absolute;} - -.tox .tox-tooltip--down .tox-tooltip__arrow{position: absolute;bottom: 0;left: 50%;border-top: 8px solid #3d546f;border-right: 8px solid transparent;border-left: 8px solid transparent;transform: translateX(-50%);} - -.tox .tox-tooltip--up .tox-tooltip__arrow{position: absolute;top: 0;left: 50%;border-right: 8px solid transparent;border-bottom: 8px solid #3d546f;border-left: 8px solid transparent;transform: translateX(-50%);} - -.tox .tox-tooltip--right .tox-tooltip__arrow{position: absolute;top: 50%;right: 0;border-top: 8px solid transparent;border-bottom: 8px solid transparent;border-left: 8px solid #3d546f;transform: translateY(-50%);} - -.tox .tox-tooltip--left .tox-tooltip__arrow{position: absolute;top: 50%;left: 0;border-top: 8px solid transparent;border-right: 8px solid #3d546f;border-bottom: 8px solid transparent;transform: translateY(-50%);} - -.tox .tox-well{width: 100%;padding: 8px;border: 1px solid #000;border-radius: 3px;} - -.tox .tox-well>:first-child{margin-top: 0;} - -.tox .tox-well>:last-child{margin-bottom: 0;} - -.tox .tox-well>:only-child{margin: 0;} - -.tox .tox-custom-editor{display: flex;height: 525px;border: 1px solid #000;border-radius: 3px;} - -.tox .tox-dialog-loading::before{position: absolute;z-index: 1000;width: 100%;height: 100%;background-color: rgba(0,0,0,.5);content: "";} - -.tox .tox-tab{cursor: pointer;} - -.tox .tox-dialog__content-js{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-dialog__body-content .tox-collection{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox ul{display: block;list-style-type: disc;-webkit-margin-before: 1em;margin-block-start: 1em;-webkit-margin-after: 1em;margin-block-end: 1em;-webkit-margin-start: 0;margin-inline-start: 0;-webkit-margin-end: 0;margin-inline-end: 0;-webkit-padding-start: 40px;padding-inline-start: 40px;} - -.tox a{color: #2276d2;cursor: pointer;} - -.tox .tox-image-tools-edit-panel{height: 60px;} - -.tox .tox-image-tools__sidebar{height: 60px;} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/skin.mobile.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/skin.mobile.min.css deleted file mode 100644 index 14847d0a2d319e16205b0258b43c0271b5a9d220..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.tinymce-mobile-outer-container{all: initial;display: block;} - -.tinymce-mobile-outer-container *{float: none;padding: 0;margin: 0;line-height: 1;text-shadow: none;white-space: nowrap;cursor: inherit;border: 0;outline: 0;box-sizing: initial;-webkit-tap-highlight-color: transparent;} - -.tinymce-mobile-icon-arrow-back::before{content: "\e5cd";} - -.tinymce-mobile-icon-image::before{content: "\e412";} - -.tinymce-mobile-icon-cancel-circle::before{content: "\e5c9";} - -.tinymce-mobile-icon-full-dot::before{content: "\e061";} - -.tinymce-mobile-icon-align-center::before{content: "\e234";} - -.tinymce-mobile-icon-align-left::before{content: "\e236";} - -.tinymce-mobile-icon-align-right::before{content: "\e237";} - -.tinymce-mobile-icon-bold::before{content: "\e238";} - -.tinymce-mobile-icon-italic::before{content: "\e23f";} - -.tinymce-mobile-icon-unordered-list::before{content: "\e241";} - -.tinymce-mobile-icon-ordered-list::before{content: "\e242";} - -.tinymce-mobile-icon-font-size::before{content: "\e245";} - -.tinymce-mobile-icon-underline::before{content: "\e249";} - -.tinymce-mobile-icon-link::before{content: "\e157";} - -.tinymce-mobile-icon-unlink::before{content: "\eca2";} - -.tinymce-mobile-icon-color::before{content: "\e891";} - -.tinymce-mobile-icon-previous::before{content: "\e314";} - -.tinymce-mobile-icon-next::before{content: "\e315";} - -.tinymce-mobile-icon-large-font::before,.tinymce-mobile-icon-style-formats::before{content: "\e264";} - -.tinymce-mobile-icon-undo::before{content: "\e166";} - -.tinymce-mobile-icon-redo::before{content: "\e15a";} - -.tinymce-mobile-icon-removeformat::before{content: "\e239";} - -.tinymce-mobile-icon-small-font::before{content: "\e906";} - -.tinymce-mobile-format-matches::after,.tinymce-mobile-icon-readonly-back::before{content: "\e5ca";} - -.tinymce-mobile-icon-small-heading::before{content: "small";} - -.tinymce-mobile-icon-large-heading::before{content: "large";} - -.tinymce-mobile-icon-large-heading::before,.tinymce-mobile-icon-small-heading::before{font-family: sans-serif;font-size: 80%;} - -.tinymce-mobile-mask-edit-icon::before{content: "\e254";} - -.tinymce-mobile-icon-back::before{content: "\e5c4";} - -.tinymce-mobile-icon-heading::before{font-family: sans-serif;font-size: 80%;font-weight: 700;content: "Headings";} - -.tinymce-mobile-icon-h1::before{font-weight: 700;content: "H1";} - -.tinymce-mobile-icon-h2::before{font-weight: 700;content: "H2";} - -.tinymce-mobile-icon-h3::before{font-weight: 700;content: "H3";} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask{position: absolute;top: 0;display: flex;width: 100%;height: 100%;background: rgba(51,51,51,.5);align-items: center;justify-content: center;} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container{display: flex;font-family: sans-serif;font-size: 1em;border-radius: 50%;align-items: center;flex-direction: column;justify-content: space-between;} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .mixin-menu-item{display: flex;width: 2.1em;height: 2.1em;border-radius: 50%;align-items: center;justify-content: center;} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section{align-items: center;display: flex;justify-content: center;flex-direction: column;font-size: 1em;}@media only screen and (min-device-width: 700px){.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section{font-size: 1.2em;}} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section .tinymce-mobile-mask-tap-icon{display: flex;width: 2.1em;height: 2.1em;color: #207ab7;background-color: #fff;border-radius: 50%;align-items: center;justify-content: center;} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section .tinymce-mobile-mask-tap-icon::before{font-family: tinymce-mobile,sans-serif;content: "\e900";} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section:not(.tinymce-mobile-mask-tap-icon-selected) .tinymce-mobile-mask-tap-icon{z-index: 2;} - -.tinymce-mobile-android-container.tinymce-mobile-android-maximized{position: fixed;top: 0;right: 0;bottom: 0;left: 0;display: flex;background: #fff;border: none;flex-direction: column;} - -.tinymce-mobile-android-container:not(.tinymce-mobile-android-maximized){position: relative;} - -.tinymce-mobile-android-container .tinymce-mobile-editor-socket{display: flex;flex-grow: 1;} - -.tinymce-mobile-android-container .tinymce-mobile-editor-socket iframe{display: flex !important;flex-grow: 1;height: auto !important;} - -.tinymce-mobile-android-scroll-reload{overflow: hidden;} - -:not(.tinymce-mobile-readonly-mode)>.tinymce-mobile-android-selection-context-toolbar{margin-top: 23px;} - -.tinymce-mobile-toolstrip{z-index: 1;display: flex;background: #fff;flex: 0 0 auto;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar{display: flex;width: 100%;height: 2.5em;background-color: #fff;border-bottom: 1px solid #ccc;align-items: center;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group{align-items: center;display: flex;height: 100%;flex-shrink: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group>div{align-items: center;display: flex;height: 100%;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group.tinymce-mobile-exit-container{background: #f44336;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group.tinymce-mobile-toolbar-scrollable-group{flex-grow: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item{padding-right: .5em;padding-left: .5em;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item.tinymce-mobile-toolbar-button{display: flex;height: 80%;margin-right: 2px;margin-left: 2px;align-items: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item.tinymce-mobile-toolbar-button.tinymce-mobile-toolbar-button-selected{color: #ccc;background: #c8cbcf;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group:first-of-type,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group:last-of-type{color: #eceff1;background: #207ab7;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group{display: flex;height: 100%;padding-top: .4em;padding-bottom: .4em;align-items: center;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog{position: relative;display: flex;width: 100%;min-height: 1.5em;padding-right: 0;padding-left: 0;overflow: hidden;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain{display: flex;width: 100%;height: 100%;transition: left cubic-bezier(.4,0,1,1) .15s;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen{display: flex;flex: 0 0 auto;justify-content: space-between;width: 100%;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen input{font-family: sans-serif;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-input-container{position: relative;display: flex;flex-grow: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-input-container .tinymce-mobile-input-container-x{position: absolute;right: 0;height: 100%;padding-right: 2px;font-size: .6em;font-weight: 700;color: #888;background: inherit;border: none;border-radius: 50%;align-self: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-input-container.tinymce-mobile-input-container-empty .tinymce-mobile-input-container-x{display: none;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-next,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-previous{align-items: center;display: flex;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-next::before,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-previous::before{display: flex;height: 100%;padding-right: .5em;padding-left: .5em;font-weight: 700;align-items: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-next.tinymce-mobile-toolbar-navigation-disabled::before,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-previous.tinymce-mobile-toolbar-navigation-disabled::before{visibility: hidden;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-dot-item{padding-top: 3px;margin: 0 2px;font-size: 10px;line-height: 10px;color: #ccc;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-dot-item.tinymce-mobile-dot-active{color: #c8cbcf;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-icon-large-font::before,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-icon-large-heading::before{margin-right: .9em;margin-left: .5em;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-icon-small-font::before,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-icon-small-heading::before{margin-right: .5em;margin-left: .9em;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider{position: relative;display: flex;padding: .28em 0;margin-right: 0;margin-left: 0;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider .tinymce-mobile-slider-size-container{align-items: center;display: flex;flex-grow: 1;height: 100%;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider .tinymce-mobile-slider-size-container .tinymce-mobile-slider-size-line{display: flex;height: .2em;margin-top: .3em;margin-bottom: .3em;background: #ccc;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container{padding-right: 2em;padding-left: 2em;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container .tinymce-mobile-slider-gradient-container{align-items: center;display: flex;flex-grow: 1;height: 100%;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container .tinymce-mobile-slider-gradient-container .tinymce-mobile-slider-gradient{display: flex;height: .2em;margin-top: .3em;margin-bottom: .3em;background: linear-gradient(to right,red 0,#feff00 17%,#0f0 33%,#00feff 50%,#00f 67%,#ff00fe 83%,red 100%);flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container .tinymce-mobile-hue-slider-black{width: 1.2em;height: .2em;margin-top: .3em;margin-bottom: .3em;background: #000;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container .tinymce-mobile-hue-slider-white{width: 1.2em;height: .2em;margin-top: .3em;margin-bottom: .3em;background: #fff;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider .tinymce-mobile-slider-thumb{position: absolute;top: 0;bottom: 0;left: -10px;display: flex;width: .5em;height: .5em;margin: auto;color: #fff;background-color: #455a64;border: .5em solid rgba(136,136,136,0);border-radius: 3em;transition: border 120ms cubic-bezier(.39,.58,.57,1);background-clip: padding-box;align-items: center;justify-content: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider .tinymce-mobile-slider-thumb.tinymce-mobile-thumb-active{border: .5em solid rgba(136,136,136,.39);} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serializer-wrapper,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group>div{align-items: center;display: flex;height: 100%;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serializer-wrapper{flex-direction: column;justify-content: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item{align-items: center;display: flex;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item:not(.tinymce-mobile-serialised-dialog){height: 100%;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-dot-container{display: flex;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group input{padding-top: .1em;padding-bottom: .1em;padding-left: 5px;font-size: .85em;color: #455a64;background: #fff;border: none;border-radius: 0;flex-grow: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group input::-webkit-input-placeholder{color: #888;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group input::placeholder{color: #888;} - -.tinymce-mobile-dropup{display: flex;width: 100%;overflow: hidden;background: #fff;} - -.tinymce-mobile-dropup.tinymce-mobile-dropup-shrinking{transition: height .3s ease-out;} - -.tinymce-mobile-dropup.tinymce-mobile-dropup-growing{transition: height .3s ease-in;} - -.tinymce-mobile-dropup.tinymce-mobile-dropup-closed{flex-grow: 0;} - -.tinymce-mobile-dropup.tinymce-mobile-dropup-open:not(.tinymce-mobile-dropup-growing){flex-grow: 1;} - -.tinymce-mobile-ios-container .tinymce-mobile-dropup:not(.tinymce-mobile-dropup-closed){min-height: 200px;}@media only screen and (orientation: landscape){.tinymce-mobile-dropup:not(.tinymce-mobile-dropup-closed){min-height: 200px;}}@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (orientation: landscape){.tinymce-mobile-ios-container .tinymce-mobile-dropup:not(.tinymce-mobile-dropup-closed){min-height: 150px;}} - -.tinymce-mobile-styles-menu{position: relative;width: 100%;overflow: hidden;font-family: sans-serif;outline: 4px solid #000;} - -.tinymce-mobile-styles-menu [role=menu]{position: absolute;display: flex;width: 100%;height: 100%;flex-direction: column;} - -.tinymce-mobile-styles-menu [role=menu].transitioning{transition: transform .5s ease-in-out;} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-item{position: relative;display: flex;padding: 1em 1em;color: #455a64;cursor: pointer;border-bottom: 1px solid #ddd;} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-collapser .tinymce-mobile-styles-collapse-icon::before{font-family: tinymce-mobile,sans-serif;color: #455a64;content: "\e314";} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-item.tinymce-mobile-styles-item-is-menu::after{position: absolute;right: 0;padding-right: 1em;padding-left: 1em;font-family: tinymce-mobile,sans-serif;color: #455a64;content: "\e315";} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-item.tinymce-mobile-format-matches::after{position: absolute;right: 0;padding-right: 1em;padding-left: 1em;font-family: tinymce-mobile,sans-serif;} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-collapser,.tinymce-mobile-styles-menu .tinymce-mobile-styles-separator{display: flex;min-height: 2.5em;padding-right: 1em;padding-left: 1em;color: #455a64;background: #fff;border-top: #455a64;align-items: center;} - -.tinymce-mobile-styles-menu [data-transitioning-destination=before][data-transitioning-state],.tinymce-mobile-styles-menu [data-transitioning-state=before]{transform: translate(-100%);} - -.tinymce-mobile-styles-menu [data-transitioning-destination=current][data-transitioning-state],.tinymce-mobile-styles-menu [data-transitioning-state=current]{transform: translate(0);} - -.tinymce-mobile-styles-menu [data-transitioning-destination=after][data-transitioning-state],.tinymce-mobile-styles-menu [data-transitioning-state=after]{transform: translate(100%);}@font-face{font-family: tinymce-mobile;font-style: normal;font-weight: 400;src: url(fonts/tinymce-mobile.woff?8x92w3) format('woff');}@media (min-device-width: 700px){.tinymce-mobile-outer-container,.tinymce-mobile-outer-container input{font-size: 25px;}}@media (max-device-width: 700px){.tinymce-mobile-outer-container,.tinymce-mobile-outer-container input{font-size: 18px;}} - -.tinymce-mobile-icon{font-family: tinymce-mobile,sans-serif;} - -.mixin-flex-and-centre{align-items: center;display: flex;justify-content: center;} - -.mixin-flex-bar{align-items: center;display: flex;height: 100%;} - -.tinymce-mobile-outer-container .tinymce-mobile-editor-socket iframe{width: 100%;background-color: #fff;} - -.tinymce-mobile-editor-socket .tinymce-mobile-mask-edit-icon{position: fixed;right: 2em;bottom: 1em;display: flex;width: 2.1em;height: 2.1em;font-size: 1em;color: #fff;background-color: #207ab7;border-radius: 50%;align-items: center;justify-content: center;}@media only screen and (min-device-width: 700px){.tinymce-mobile-editor-socket .tinymce-mobile-mask-edit-icon{font-size: 1.2em;}} - -.tinymce-mobile-outer-container:not(.tinymce-mobile-fullscreen-maximized) .tinymce-mobile-editor-socket{height: 300px;overflow: hidden;} - -.tinymce-mobile-outer-container:not(.tinymce-mobile-fullscreen-maximized) .tinymce-mobile-editor-socket iframe{height: 100%;} - -.tinymce-mobile-outer-container:not(.tinymce-mobile-fullscreen-maximized) .tinymce-mobile-toolstrip{display: none;} - -input[type=file]::-webkit-file-upload-button{display: none;}@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (orientation: landscape){.tinymce-mobile-ios-container .tinymce-mobile-editor-socket .tinymce-mobile-mask-edit-icon{bottom: 50%;}} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/content.inline.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/content.inline.min.css deleted file mode 100644 index 748f313bb2324aefb902f5b679a54bbc042d5d60..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/content.inline.min.css +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.mce-content-body .mce-item-anchor{display: inline-block;width: 8px !important;height: 12px !important;padding: 0 2px;cursor: default;background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;-webkit-user-select: all;-moz-user-select: all;-ms-user-select: all;user-select: all;-webkit-user-modify: read-only;-moz-user-modify: read-only;} - -.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset: 1px;} - -.tox-comments-visible .tox-comment{background-color: #fff0b7;} - -.tox-comments-visible .tox-comment--active{background-color: #ffe168;} - -.tox-checklist>li:not(.tox-checklist--hidden){margin: .25em 0;list-style: none;} - -.tox-checklist>li:not(.tox-checklist--hidden)::before{position: absolute;width: 1em;height: 1em;margin-top: .125em;margin-left: -1.5em;cursor: pointer;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");background-size: 100%;content: '';} - -.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");} - -[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-right: -1.5em;margin-left: 0;} - -code[class*=language-],pre[class*=language-]{font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size: .875rem;-webkit-hyphens: none;-ms-hyphens: none;hyphens: none;line-height: 1.5;word-spacing: normal;color: #000;text-shadow: 0 1px #fff;word-break: normal;word-wrap: normal;white-space: pre;-moz-tab-size: 4;tab-size: 4;} - -code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow: none;background: #b3d4fc;} - -code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow: none;background: #b3d4fc;}@media print{code[class*=language-],pre[class*=language-]{text-shadow: none;}} - -pre[class*=language-]{padding: 1em;margin: .5em 0;overflow: auto;} - -:not(pre)>code[class*=language-],pre[class*=language-]{background: 0 0 !important;border: 1px solid #ccc;} - -:not(pre)>code[class*=language-]{padding: .1em;border-radius: .3em;} - -.token.cdata,.token.comment,.token.doctype,.token.prolog{color: #708090;} - -.token.punctuation{color: #999;} - -.namespace{opacity: .7;} - -.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color: #905;} - -.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color: #690;} - -.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color: #a67f59;background: hsla(0,0%,100%,.5);} - -.token.atrule,.token.attr-value,.token.keyword{color: #07a;} - -.token.function{color: #dd4a68;} - -.token.important,.token.regex,.token.variable{color: #e90;} - -.token.bold,.token.important{font-weight: 700;} - -.token.italic{font-style: italic;} - -.token.entity{cursor: help;} - -:not([dir=rtl]) code[class*=language-],:not([dir=rtl]) pre[class*=language-]{text-align: left;direction: ltr;} - -[dir=rtl] code[class*=language-],[dir=rtl] pre[class*=language-]{text-align: right;direction: rtl;} - -.mce-content-body{overflow-wrap: break-word;word-wrap: break-word;} - -.mce-content-body .mce-visual-caret{position: absolute;background-color: #000;background-color: currentColor;} - -.mce-content-body .mce-visual-caret-hidden{display: none;} - -.mce-content-body [data-mce-caret]{position: absolute;top: 0;right: auto;left: -1000px;padding: 0;margin: 0;} - -.mce-content-body .mce-offscreen-selection{position: absolute;left: -9999999999px;max-width: 1000000px;} - -.mce-content-body [contentEditable=false]{cursor: default;} - -.mce-content-body [contentEditable=true]{cursor: text;} - -.tox-cursor-format-painter{cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"),default;} - -.mce-content-body figure.align-left{float: left;} - -.mce-content-body figure.align-right{float: right;} - -.mce-content-body figure.image.align-center{display: table;margin-right: auto;margin-left: auto;} - -.mce-preview-object{position: relative;display: inline-block;margin: 0 2px 0 2px;line-height: 0;border: 1px solid gray;} - -.mce-preview-object .mce-shim{position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);} - -.mce-preview-object[data-mce-selected="2"] .mce-shim{display: none;} - -.mce-object{background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;border: 1px dashed #aaa;} - -.mce-pagebreak{display: block;width: 100%;height: 5px;margin-top: 15px;cursor: default;border: 1px dashed #aaa;page-break-before: always;}@media print{.mce-pagebreak{border: 0;}} - -.tiny-pageembed .mce-shim{position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);} - -.tiny-pageembed[data-mce-selected="2"] .mce-shim{display: none;} - -.tiny-pageembed{position: relative;display: inline-block;} - -.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{position: relative;display: block;width: 100%;padding: 0;overflow: hidden;} - -.tiny-pageembed--16by9::before,.tiny-pageembed--1by1::before,.tiny-pageembed--21by9::before,.tiny-pageembed--4by3::before{display: block;content: "";} - -.tiny-pageembed--21by9::before{padding-top: 42.857143%;} - -.tiny-pageembed--16by9::before{padding-top: 56.25%;} - -.tiny-pageembed--4by3::before{padding-top: 75%;} - -.tiny-pageembed--1by1::before{padding-top: 100%;} - -.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{position: absolute;top: 0;left: 0;width: 100%;height: 100%;border: 0;} - -.mce-content-body div.mce-resizehandle{position: absolute;z-index: 10000;width: 10px;height: 10px;background-color: #4099ff;border-color: #4099ff;border-style: solid;border-width: 1px;box-sizing: border-box;} - -.mce-content-body div.mce-resizehandle:hover{background-color: #4099ff;} - -.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor: nwse-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor: nesw-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor: nwse-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor: nesw-resize;} - -.mce-content-body .mce-clonedresizable{position: absolute;z-index: 10000;outline: 1px dashed #000;opacity: .5;} - -.mce-content-body .mce-resize-helper{position: absolute;z-index: 10001;display: none;padding: 5px;margin: 5px 10px;font-family: sans-serif;font-size: 12px;line-height: 14px;color: #fff;white-space: nowrap;background: #555;background: rgba(0,0,0,.75);border: 1px;border-radius: 3px;} - -.mce-match-marker{color: #fff;background: #aaa;} - -.mce-match-marker-selected{color: #fff;background: #39f;} - -.mce-content-body img[data-mce-selected],.mce-content-body table[data-mce-selected]{outline: 3px solid #b4d7ff;} - -.mce-content-body hr[data-mce-selected]{outline: 3px solid #b4d7ff;outline-offset: 1px;} - -.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline: 3px solid #b4d7ff;} - -.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline: 3px solid #b4d7ff;} - -.mce-content-body [contentEditable=false][data-mce-selected]{cursor: not-allowed;outline: 3px solid #b4d7ff;} - -.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline: 0;} - -.mce-content-body [data-mce-selected=inline-boundary]{background-color: #b4d7ff;} - -.mce-content-body .mce-edit-focus{outline: 3px solid #b4d7ff;} - -.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{background-color: #b4d7ff !important;} - -.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background: 0 0;} - -.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background: 0 0;} - -.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{-webkit-touch-callout: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;} - -.mce-content-body img::-moz-selection{background: 0 0;} - -.mce-content-body img::selection{background: 0 0;} - -.ephox-snooker-resizer-bar{background-color: #b4d7ff;opacity: 0;} - -.ephox-snooker-resizer-cols{cursor: col-resize;} - -.ephox-snooker-resizer-rows{cursor: row-resize;} - -.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity: 1;} - -.mce-spellchecker-word{height: 2rem;cursor: default;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.5'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position: 0 calc(100% + 1px);background-repeat: repeat-x;background-size: auto 6px;} - -.mce-spellchecker-grammar{cursor: default;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23008800'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position: 0 calc(100% + 1px);background-repeat: repeat-x;background-size: auto 6px;} - -.mce-toc{border: 1px solid gray;} - -.mce-toc h2{margin: 4px;} - -.mce-toc li{list-style-type: none;} - -.mce-item-table,.mce-item-table caption,.mce-item-table td,.mce-item-table th{border: 1px dashed #bbb;} - -.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{padding-top: 10px;margin-left: 3px;background-repeat: no-repeat;border: 1px dashed #bbb;} - -.mce-visualblocks p{background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7);} - -.mce-visualblocks h1{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==);} - -.mce-visualblocks h2{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==);} - -.mce-visualblocks h3{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7);} - -.mce-visualblocks h4{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==);} - -.mce-visualblocks h5{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==);} - -.mce-visualblocks h6{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==);} - -.mce-visualblocks div:not([data-mce-bogus]){background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7);} - -.mce-visualblocks section{background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=);} - -.mce-visualblocks article{background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7);} - -.mce-visualblocks blockquote{background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7);} - -.mce-visualblocks address{background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=);} - -.mce-visualblocks pre{background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==);} - -.mce-visualblocks figure{background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7);} - -.mce-visualblocks figcaption{border: 1px dashed #bbb;} - -.mce-visualblocks hgroup{background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7);} - -.mce-visualblocks aside{background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=);} - -.mce-visualblocks ul{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==);} - -.mce-visualblocks ol{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==);} - -.mce-visualblocks dl{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==);} - -.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left: 3px;} - -.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x: right;margin-right: 3px;} - -.mce-nbsp,.mce-shy{background: #aaa;} - -.mce-shy::after{content: '-';} - -.tox-toolbar-dock-fadeout{opacity: 0;visibility: hidden;} - -.tox-toolbar-dock-fadein{opacity: 1;visibility: visible;} - -.tox-toolbar-dock-transition{transition: visibility 0s linear .3s,opacity .3s ease;} - -.tox-toolbar-dock-transition.tox-toolbar-dock-fadein{transition-delay: 0s;} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/content.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/content.min.css deleted file mode 100644 index 6e7165f097e99dac3a355448bcdb2598763617bf..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/content.min.css +++ /dev/null @@ -1,235 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.mce-content-body .mce-item-anchor{display: inline-block;width: 8px !important;height: 12px !important;padding: 0 2px;cursor: default;background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'8'%20height%3D'12'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20d%3D'M0%200L8%200%208%2012%204.09117821%209%200%2012z'%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;-webkit-user-select: all;-moz-user-select: all;-ms-user-select: all;user-select: all;-webkit-user-modify: read-only;-moz-user-modify: read-only;} - -.mce-content-body .mce-item-anchor[data-mce-selected]{outline-offset: 1px;} - -.tox-comments-visible .tox-comment{background-color: #fff0b7;} - -.tox-comments-visible .tox-comment--active{background-color: #ffe168;} - -.tox-checklist>li:not(.tox-checklist--hidden){margin: .25em 0;list-style: none;} - -.tox-checklist>li:not(.tox-checklist--hidden)::before{position: absolute;width: 1em;height: 1em;margin-top: .125em;margin-left: -1.5em;cursor: pointer;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-unchecked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2215%22%20height%3D%2215%22%20x%3D%22.5%22%20y%3D%22.5%22%20fill-rule%3D%22nonzero%22%20stroke%3D%22%234C4C4C%22%20rx%3D%222%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");background-size: 100%;content: '';} - -.tox-checklist li:not(.tox-checklist--hidden).tox-checklist--checked::before{background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2016%2016%22%3E%3Cg%20id%3D%22checklist-checked%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%3Crect%20id%3D%22Rectangle%22%20width%3D%2216%22%20height%3D%2216%22%20fill%3D%22%234099FF%22%20fill-rule%3D%22nonzero%22%20rx%3D%222%22%2F%3E%3Cpath%20id%3D%22Path%22%20fill%3D%22%23FFF%22%20fill-rule%3D%22nonzero%22%20d%3D%22M11.5703186%2C3.14417309%20C11.8516238%2C2.73724603%2012.4164781%2C2.62829933%2012.83558%2C2.89774797%20C13.260121%2C3.17069355%2013.3759736%2C3.72932262%2013.0909105%2C4.14168582%20L7.7580587%2C11.8560195%20C7.43776896%2C12.3193404%206.76483983%2C12.3852142%206.35607322%2C11.9948725%20L3.02491697%2C8.8138662%20C2.66090143%2C8.46625845%202.65798871%2C7.89594698%203.01850234%2C7.54483354%20C3.373942%2C7.19866177%203.94940006%2C7.19592841%204.30829608%2C7.5386474%20L6.85276923%2C9.9684299%20L11.5703186%2C3.14417309%20Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E%0A");} - -[dir=rtl] .tox-checklist>li:not(.tox-checklist--hidden)::before{margin-right: -1.5em;margin-left: 0;} - -code[class*=language-],pre[class*=language-]{font-family: Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size: .875rem;-webkit-hyphens: none;-ms-hyphens: none;hyphens: none;line-height: 1.5;word-spacing: normal;color: #000;text-shadow: 0 1px #fff;word-break: normal;word-wrap: normal;white-space: pre;-moz-tab-size: 4;tab-size: 4;} - -code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow: none;background: #b3d4fc;} - -code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow: none;background: #b3d4fc;}@media print{code[class*=language-],pre[class*=language-]{text-shadow: none;}} - -pre[class*=language-]{padding: 1em;margin: .5em 0;overflow: auto;} - -:not(pre)>code[class*=language-],pre[class*=language-]{background: 0 0 !important;border: 1px solid #ccc;} - -:not(pre)>code[class*=language-]{padding: .1em;border-radius: .3em;} - -.token.cdata,.token.comment,.token.doctype,.token.prolog{color: #708090;} - -.token.punctuation{color: #999;} - -.namespace{opacity: .7;} - -.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color: #905;} - -.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color: #690;} - -.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color: #a67f59;background: hsla(0,0%,100%,.5);} - -.token.atrule,.token.attr-value,.token.keyword{color: #07a;} - -.token.function{color: #dd4a68;} - -.token.important,.token.regex,.token.variable{color: #e90;} - -.token.bold,.token.important{font-weight: 700;} - -.token.italic{font-style: italic;} - -.token.entity{cursor: help;} - -:not([dir=rtl]) code[class*=language-],:not([dir=rtl]) pre[class*=language-]{text-align: left;direction: ltr;} - -[dir=rtl] code[class*=language-],[dir=rtl] pre[class*=language-]{text-align: right;direction: rtl;} - -.mce-content-body{overflow-wrap: break-word;word-wrap: break-word;} - -.mce-content-body .mce-visual-caret{position: absolute;background-color: #000;background-color: currentColor;} - -.mce-content-body .mce-visual-caret-hidden{display: none;} - -.mce-content-body [data-mce-caret]{position: absolute;top: 0;right: auto;left: -1000px;padding: 0;margin: 0;} - -.mce-content-body .mce-offscreen-selection{position: absolute;left: -9999999999px;max-width: 1000000px;} - -.mce-content-body [contentEditable=false]{cursor: default;} - -.mce-content-body [contentEditable=true]{cursor: text;} - -.tox-cursor-format-painter{cursor: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%0A%20%20%3Cg%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M15%2C6%20C15%2C5.45%2014.55%2C5%2014%2C5%20L6%2C5%20C5.45%2C5%205%2C5.45%205%2C6%20L5%2C10%20C5%2C10.55%205.45%2C11%206%2C11%20L14%2C11%20C14.55%2C11%2015%2C10.55%2015%2C10%20L15%2C9%20L16%2C9%20L16%2C12%20L9%2C12%20L9%2C19%20C9%2C19.55%209.45%2C20%2010%2C20%20L11%2C20%20C11.55%2C20%2012%2C19.55%2012%2C19%20L12%2C14%20L18%2C14%20L18%2C7%20L15%2C7%20L15%2C6%20Z%22%2F%3E%0A%20%20%20%20%3Cpath%20fill%3D%22%23000%22%20fill-rule%3D%22nonzero%22%20d%3D%22M1%2C1%20L8.25%2C1%20C8.66421356%2C1%209%2C1.33578644%209%2C1.75%20L9%2C1.75%20C9%2C2.16421356%208.66421356%2C2.5%208.25%2C2.5%20L2.5%2C2.5%20L2.5%2C8.25%20C2.5%2C8.66421356%202.16421356%2C9%201.75%2C9%20L1.75%2C9%20C1.33578644%2C9%201%2C8.66421356%201%2C8.25%20L1%2C1%20Z%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E%0A"),default;} - -.mce-content-body figure.align-left{float: left;} - -.mce-content-body figure.align-right{float: right;} - -.mce-content-body figure.image.align-center{display: table;margin-right: auto;margin-left: auto;} - -.mce-preview-object{position: relative;display: inline-block;margin: 0 2px 0 2px;line-height: 0;border: 1px solid gray;} - -.mce-preview-object .mce-shim{position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);} - -.mce-preview-object[data-mce-selected="2"] .mce-shim{display: none;} - -.mce-object{background: transparent url("data:image/svg+xml;charset=UTF-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%3E%3Cpath%20d%3D%22M4%203h16a1%201%200%200%201%201%201v16a1%201%200%200%201-1%201H4a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1zm1%202v14h14V5H5zm4.79%202.565l5.64%204.028a.5.5%200%200%201%200%20.814l-5.64%204.028a.5.5%200%200%201-.79-.407V7.972a.5.5%200%200%201%20.79-.407z%22%2F%3E%3C%2Fsvg%3E%0A") no-repeat center;border: 1px dashed #aaa;} - -.mce-pagebreak{display: block;width: 100%;height: 5px;margin-top: 15px;cursor: default;border: 1px dashed #aaa;page-break-before: always;}@media print{.mce-pagebreak{border: 0;}} - -.tiny-pageembed .mce-shim{position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);} - -.tiny-pageembed[data-mce-selected="2"] .mce-shim{display: none;} - -.tiny-pageembed{position: relative;display: inline-block;} - -.tiny-pageembed--16by9,.tiny-pageembed--1by1,.tiny-pageembed--21by9,.tiny-pageembed--4by3{position: relative;display: block;width: 100%;padding: 0;overflow: hidden;} - -.tiny-pageembed--16by9::before,.tiny-pageembed--1by1::before,.tiny-pageembed--21by9::before,.tiny-pageembed--4by3::before{display: block;content: "";} - -.tiny-pageembed--21by9::before{padding-top: 42.857143%;} - -.tiny-pageembed--16by9::before{padding-top: 56.25%;} - -.tiny-pageembed--4by3::before{padding-top: 75%;} - -.tiny-pageembed--1by1::before{padding-top: 100%;} - -.tiny-pageembed--16by9 iframe,.tiny-pageembed--1by1 iframe,.tiny-pageembed--21by9 iframe,.tiny-pageembed--4by3 iframe{position: absolute;top: 0;left: 0;width: 100%;height: 100%;border: 0;} - -.mce-content-body div.mce-resizehandle{position: absolute;z-index: 10000;width: 10px;height: 10px;background-color: #4099ff;border-color: #4099ff;border-style: solid;border-width: 1px;box-sizing: border-box;} - -.mce-content-body div.mce-resizehandle:hover{background-color: #4099ff;} - -.mce-content-body div.mce-resizehandle:nth-of-type(1){cursor: nwse-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(2){cursor: nesw-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(3){cursor: nwse-resize;} - -.mce-content-body div.mce-resizehandle:nth-of-type(4){cursor: nesw-resize;} - -.mce-content-body .mce-clonedresizable{position: absolute;z-index: 10000;outline: 1px dashed #000;opacity: .5;} - -.mce-content-body .mce-resize-helper{position: absolute;z-index: 10001;display: none;padding: 5px;margin: 5px 10px;font-family: sans-serif;font-size: 12px;line-height: 14px;color: #fff;white-space: nowrap;background: #555;background: rgba(0,0,0,.75);border: 1px;border-radius: 3px;} - -.mce-match-marker{color: #fff;background: #aaa;} - -.mce-match-marker-selected{color: #fff;background: #39f;} - -.mce-content-body img[data-mce-selected],.mce-content-body table[data-mce-selected]{outline: 3px solid #b4d7ff;} - -.mce-content-body hr[data-mce-selected]{outline: 3px solid #b4d7ff;outline-offset: 1px;} - -.mce-content-body [contentEditable=false] [contentEditable=true]:focus{outline: 3px solid #b4d7ff;} - -.mce-content-body [contentEditable=false] [contentEditable=true]:hover{outline: 3px solid #b4d7ff;} - -.mce-content-body [contentEditable=false][data-mce-selected]{cursor: not-allowed;outline: 3px solid #b4d7ff;} - -.mce-content-body.mce-content-readonly [contentEditable=true]:focus,.mce-content-body.mce-content-readonly [contentEditable=true]:hover{outline: 0;} - -.mce-content-body [data-mce-selected=inline-boundary]{background-color: #b4d7ff;} - -.mce-content-body .mce-edit-focus{outline: 3px solid #b4d7ff;} - -.mce-content-body td[data-mce-selected],.mce-content-body th[data-mce-selected]{background-color: #b4d7ff !important;} - -.mce-content-body td[data-mce-selected]::-moz-selection,.mce-content-body th[data-mce-selected]::-moz-selection{background: 0 0;} - -.mce-content-body td[data-mce-selected]::selection,.mce-content-body th[data-mce-selected]::selection{background: 0 0;} - -.mce-content-body td[data-mce-selected] *,.mce-content-body th[data-mce-selected] *{-webkit-touch-callout: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;} - -.mce-content-body img::-moz-selection{background: 0 0;} - -.mce-content-body img::selection{background: 0 0;} - -.ephox-snooker-resizer-bar{background-color: #b4d7ff;opacity: 0;} - -.ephox-snooker-resizer-cols{cursor: col-resize;} - -.ephox-snooker-resizer-rows{cursor: row-resize;} - -.ephox-snooker-resizer-bar.ephox-snooker-resizer-bar-dragging{opacity: 1;} - -.mce-spellchecker-word{height: 2rem;cursor: default;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23ff0000'%20fill%3D'none'%20stroke-linecap%3D'round'%20stroke-opacity%3D'.5'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position: 0 calc(100% + 1px);background-repeat: repeat-x;background-size: auto 6px;} - -.mce-spellchecker-grammar{cursor: default;background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D'4'%20height%3D'4'%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%3E%3Cpath%20stroke%3D'%23008800'%20fill%3D'none'%20stroke-linecap%3D'round'%20d%3D'M0%203L2%201%204%203'%2F%3E%3C%2Fsvg%3E%0A");background-position: 0 calc(100% + 1px);background-repeat: repeat-x;background-size: auto 6px;} - -.mce-toc{border: 1px solid gray;} - -.mce-toc h2{margin: 4px;} - -.mce-toc li{list-style-type: none;} - -.mce-item-table,.mce-item-table caption,.mce-item-table td,.mce-item-table th{border: 1px dashed #bbb;} - -.mce-visualblocks address,.mce-visualblocks article,.mce-visualblocks aside,.mce-visualblocks blockquote,.mce-visualblocks div:not([data-mce-bogus]),.mce-visualblocks dl,.mce-visualblocks figcaption,.mce-visualblocks figure,.mce-visualblocks h1,.mce-visualblocks h2,.mce-visualblocks h3,.mce-visualblocks h4,.mce-visualblocks h5,.mce-visualblocks h6,.mce-visualblocks hgroup,.mce-visualblocks ol,.mce-visualblocks p,.mce-visualblocks pre,.mce-visualblocks section,.mce-visualblocks ul{padding-top: 10px;margin-left: 3px;background-repeat: no-repeat;border: 1px dashed #bbb;} - -.mce-visualblocks p{background-image: url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7);} - -.mce-visualblocks h1{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==);} - -.mce-visualblocks h2{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==);} - -.mce-visualblocks h3{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7);} - -.mce-visualblocks h4{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==);} - -.mce-visualblocks h5{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==);} - -.mce-visualblocks h6{background-image: url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==);} - -.mce-visualblocks div:not([data-mce-bogus]){background-image: url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7);} - -.mce-visualblocks section{background-image: url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=);} - -.mce-visualblocks article{background-image: url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7);} - -.mce-visualblocks blockquote{background-image: url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7);} - -.mce-visualblocks address{background-image: url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=);} - -.mce-visualblocks pre{background-image: url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==);} - -.mce-visualblocks figure{background-image: url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7);} - -.mce-visualblocks figcaption{border: 1px dashed #bbb;} - -.mce-visualblocks hgroup{background-image: url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7);} - -.mce-visualblocks aside{background-image: url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=);} - -.mce-visualblocks ul{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==);} - -.mce-visualblocks ol{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==);} - -.mce-visualblocks dl{background-image: url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==);} - -.mce-visualblocks:not([dir=rtl]) address,.mce-visualblocks:not([dir=rtl]) article,.mce-visualblocks:not([dir=rtl]) aside,.mce-visualblocks:not([dir=rtl]) blockquote,.mce-visualblocks:not([dir=rtl]) div:not([data-mce-bogus]),.mce-visualblocks:not([dir=rtl]) dl,.mce-visualblocks:not([dir=rtl]) figcaption,.mce-visualblocks:not([dir=rtl]) figure,.mce-visualblocks:not([dir=rtl]) h1,.mce-visualblocks:not([dir=rtl]) h2,.mce-visualblocks:not([dir=rtl]) h3,.mce-visualblocks:not([dir=rtl]) h4,.mce-visualblocks:not([dir=rtl]) h5,.mce-visualblocks:not([dir=rtl]) h6,.mce-visualblocks:not([dir=rtl]) hgroup,.mce-visualblocks:not([dir=rtl]) ol,.mce-visualblocks:not([dir=rtl]) p,.mce-visualblocks:not([dir=rtl]) pre,.mce-visualblocks:not([dir=rtl]) section,.mce-visualblocks:not([dir=rtl]) ul{margin-left: 3px;} - -.mce-visualblocks[dir=rtl] address,.mce-visualblocks[dir=rtl] article,.mce-visualblocks[dir=rtl] aside,.mce-visualblocks[dir=rtl] blockquote,.mce-visualblocks[dir=rtl] div:not([data-mce-bogus]),.mce-visualblocks[dir=rtl] dl,.mce-visualblocks[dir=rtl] figcaption,.mce-visualblocks[dir=rtl] figure,.mce-visualblocks[dir=rtl] h1,.mce-visualblocks[dir=rtl] h2,.mce-visualblocks[dir=rtl] h3,.mce-visualblocks[dir=rtl] h4,.mce-visualblocks[dir=rtl] h5,.mce-visualblocks[dir=rtl] h6,.mce-visualblocks[dir=rtl] hgroup,.mce-visualblocks[dir=rtl] ol,.mce-visualblocks[dir=rtl] p,.mce-visualblocks[dir=rtl] pre,.mce-visualblocks[dir=rtl] section,.mce-visualblocks[dir=rtl] ul{background-position-x: right;margin-right: 3px;} - -.mce-nbsp,.mce-shy{background: #aaa;} - -.mce-shy::after{content: '-';} - -body{font-family: sans-serif;} - -table{border-collapse: collapse;} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/content.mobile.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/content.mobile.min.css deleted file mode 100644 index c0522520ef7473120f188dda219d918fc43c6a43..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/content.mobile.min.css +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.tinymce-mobile-unfocused-selections .tinymce-mobile-unfocused-selection{position: absolute;display: inline-block;background-color: green;opacity: .5;} - -body{-webkit-text-size-adjust: none;} - -body img{max-width: 96vw;} - -body table img{max-width: 95%;} - -body{font-family: sans-serif;} - -table{border-collapse: collapse;} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff deleted file mode 100644 index 1e3be038a607cb7c2544ed8ae3d6621f77bf4c38..0000000000000000000000000000000000000000 Binary files a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff and /dev/null differ diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/skin.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/skin.min.css deleted file mode 100644 index 5886c594c2e9e5507ce781aaafa7787eed3d20f0..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/skin.min.css +++ /dev/null @@ -1,875 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.tox{font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 16px;font-style: normal;font-weight: 400;line-height: normal;color: #222f3e;text-decoration: none;text-shadow: none;text-transform: none;white-space: normal;vertical-align: initial;cursor: auto;box-sizing: content-box;-webkit-tap-highlight-color: transparent;} - -.tox :not(svg){font-family: inherit;font-size: inherit;font-style: inherit;font-weight: inherit;line-height: inherit;color: inherit;text-align: inherit;text-decoration: inherit;text-shadow: inherit;text-transform: inherit;white-space: inherit;vertical-align: inherit;cursor: inherit;box-sizing: inherit;direction: inherit;-webkit-tap-highlight-color: inherit;} - -.tox :not(svg){position: static;float: none;width: auto;height: auto;max-width: none;padding: 0;margin: 0;background: 0 0;border: 0;outline: 0;} - -.tox:not([dir=rtl]){text-align: left;direction: ltr;} - -.tox[dir=rtl]{text-align: right;direction: rtl;} - -.tox-tinymce{position: relative;display: flex;overflow: hidden;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;border: 1px solid #ccc;border-radius: 0;visibility: inherit !important;box-shadow: none;box-sizing: border-box;flex-direction: column;} - -.tox-editor-container{display: flex;flex: 1 1 auto;flex-direction: column;overflow: hidden;} - -.tox-editor-container>:first-child{border-top: none !important;} - -.tox-tinymce-aux{font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;} - -.tox-tinymce :focus,.tox-tinymce-aux :focus{outline: 0;} - -button::-moz-focus-inner{border: 0;} - -.tox-silver-sink{z-index: 1300;} - -.tox .tox-anchorbar{display: flex;flex: 0 0 auto;} - -.tox .tox-bar{display: flex;flex: 0 0 auto;} - -.tox .tox-button{display: inline-block;padding: 4px 16px;margin: 0;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 14px;font-weight: 700;line-height: 24px;letter-spacing: 1;color: #fff;text-align: center;text-decoration: none;text-transform: capitalize;white-space: nowrap;cursor: pointer;background-color: #207ab7;background-image: none;background-position: none;background-repeat: none;border-color: #207ab7;border-style: solid;border-width: 1px;border-radius: 3px;outline: 0;box-shadow: none;box-sizing: border-box;} - -.tox .tox-button[disabled]{color: rgba(255,255,255,.5);cursor: not-allowed;background-color: #207ab7;background-image: none;border-color: #207ab7;box-shadow: none;} - -.tox .tox-button:focus:not(:disabled){color: #fff;background-color: #1c6ca1;background-image: none;border-color: #1c6ca1;box-shadow: none;} - -.tox .tox-button:hover:not(:disabled){color: #fff;background-color: #1c6ca1;background-image: none;border-color: #1c6ca1;box-shadow: none;} - -.tox .tox-button:active:not(:disabled){color: #fff;background-color: #185d8c;background-image: none;border-color: #185d8c;box-shadow: none;} - -.tox .tox-button--secondary{padding: 4px 16px;color: #222f3e;text-decoration: none;text-transform: capitalize;background-color: #f0f0f0;background-image: none;background-position: none;background-repeat: none;border-color: #f0f0f0;border-style: solid;border-width: 1px;border-radius: 3px;outline: 0;box-shadow: none;} - -.tox .tox-button--secondary[disabled]{color: rgba(34,47,62,.5);background-color: #f0f0f0;background-image: none;border-color: #f0f0f0;box-shadow: none;} - -.tox .tox-button--secondary:focus:not(:disabled){color: #222f3e;background-color: #e3e3e3;background-image: none;border-color: #e3e3e3;box-shadow: none;} - -.tox .tox-button--secondary:hover:not(:disabled){color: #222f3e;background-color: #e3e3e3;background-image: none;border-color: #e3e3e3;box-shadow: none;} - -.tox .tox-button--secondary:active:not(:disabled){color: #222f3e;background-color: #d6d6d6;background-image: none;border-color: #d6d6d6;box-shadow: none;} - -.tox .tox-button--icon,.tox .tox-button.tox-button--icon,.tox .tox-button.tox-button--secondary.tox-button--icon{padding: 4px;} - -.tox .tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--icon .tox-icon svg,.tox .tox-button.tox-button--secondary.tox-button--icon .tox-icon svg{display: block;fill: currentColor;} - -.tox .tox-button-link{display: inline-block;padding: 0;margin: 0;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 16px;font-weight: 400;line-height: 1.3;white-space: nowrap;cursor: pointer;background: 0;border: none;box-sizing: border-box;} - -.tox .tox-button-link--sm{font-size: 14px;} - -.tox .tox-button--naked{color: #222f3e;background-color: transparent;border-color: transparent;box-shadow: unset;} - -.tox .tox-button--naked:hover:not(:disabled){color: #222f3e;background-color: #e3e3e3;border-color: #e3e3e3;box-shadow: none;} - -.tox .tox-button--naked:focus:not(:disabled){color: #222f3e;background-color: #e3e3e3;border-color: #e3e3e3;box-shadow: none;} - -.tox .tox-button--naked:active:not(:disabled){color: #222f3e;background-color: #d6d6d6;border-color: #d6d6d6;box-shadow: none;} - -.tox .tox-button--naked .tox-icon svg{fill: currentColor;} - -.tox .tox-button--naked.tox-button--icon{color: currentColor;} - -.tox .tox-button--naked.tox-button--icon:hover:not(:disabled){color: #222f3e;} - -.tox .tox-checkbox{display: flex;height: 36px;min-width: 36px;cursor: pointer;border-radius: 3px;align-items: center;} - -.tox .tox-checkbox__input{position: absolute;top: auto;left: -10000px;width: 1px;height: 1px;overflow: hidden;} - -.tox .tox-checkbox__icons{width: 24px;height: 24px;padding: calc(4px - 1px);border-radius: 3px;box-shadow: 0 0 0 2px transparent;box-sizing: content-box;} - -.tox .tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display: block;fill: rgba(34,47,62,.3);} - -.tox .tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display: none;fill: #207ab7;} - -.tox .tox-checkbox__icons .tox-checkbox-icon__checked svg{display: none;fill: #207ab7;} - -.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display: none;} - -.tox input.tox-checkbox__input:checked+.tox-checkbox__icons .tox-checkbox-icon__checked svg{display: block;} - -.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__unchecked svg{display: none;} - -.tox input.tox-checkbox__input:indeterminate+.tox-checkbox__icons .tox-checkbox-icon__indeterminate svg{display: block;} - -.tox input.tox-checkbox__input:focus+.tox-checkbox__icons{padding: calc(4px - 1px);border-radius: 3px;box-shadow: inset 0 0 0 1px #207ab7;} - -.tox:not([dir=rtl]) .tox-checkbox__label{margin-left: 4px;} - -.tox:not([dir=rtl]) .tox-bar .tox-checkbox{margin-left: 4px;} - -.tox[dir=rtl] .tox-checkbox__label{margin-right: 4px;} - -.tox[dir=rtl] .tox-bar .tox-checkbox{margin-right: 4px;} - -.tox .tox-collection--toolbar .tox-collection__group{display: flex;padding: 0;} - -.tox .tox-collection--grid .tox-collection__group{display: flex;max-height: 208px;padding: 0;overflow-x: hidden;overflow-y: auto;flex-wrap: wrap;} - -.tox .tox-collection--list .tox-collection__group{padding: 4px 0;border-color: #ccc;border-style: solid;border-top-width: 1px;border-right-width: 0;border-bottom-width: 0;border-left-width: 0;} - -.tox .tox-collection--list .tox-collection__group:first-child{border-top-width: 0;} - -.tox .tox-collection__group-heading{padding: 4px 8px;margin-top: -4px;margin-bottom: 4px;font-size: 12px;font-style: normal;font-weight: 400;color: rgba(34,47,62,.7);text-transform: none;cursor: default;background-color: #e6e6e6;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;-webkit-touch-callout: none;} - -.tox .tox-collection__item{display: flex;color: #222f3e;cursor: pointer;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;align-items: center;-webkit-touch-callout: none;} - -.tox .tox-collection--list .tox-collection__item{padding: 4px 8px;} - -.tox .tox-collection--toolbar .tox-collection__item{padding: 4px;border-radius: 3px;} - -.tox .tox-collection--grid .tox-collection__item{padding: 4px;border-radius: 3px;} - -.tox .tox-collection--list .tox-collection__item--enabled{color: contrast(inherit,#222f3e,#fff);background-color: inherit;} - -.tox .tox-collection--list .tox-collection__item--active:not(.tox-collection__item--state-disabled){color: #222f3e;background-color: #dee0e2;} - -.tox .tox-collection--toolbar .tox-collection__item--enabled{color: #222f3e;background-color: #c8cbcf;} - -.tox .tox-collection--toolbar .tox-collection__item--active:not(.tox-collection__item--state-disabled){color: #222f3e;background-color: #dee0e2;} - -.tox .tox-collection--grid .tox-collection__item--enabled{color: #222f3e;background-color: #c8cbcf;} - -.tox .tox-collection--grid .tox-collection__item--active:not(.tox-collection__item--state-disabled){color: #222f3e;background-color: #dee0e2;} - -.tox .tox-collection__item--state-disabled{color: rgba(34,47,62,.5);cursor: default;background-color: transparent;} - -.tox .tox-collection__item-icon{display: flex;width: 24px;height: 24px;align-items: center;justify-content: center;} - -.tox .tox-collection__item-icon svg{fill: currentColor;} - -.tox .tox-collection--toolbar-lg .tox-collection__item-icon{width: 48px;height: 48px;} - -.tox .tox-collection__item[role=menuitemcheckbox]:not(.tox-collection__item--enabled) .tox-collection__item-checkmark svg{display: none;} - -.tox .tox-collection__item-label{display: inline-block;font-size: 14px;font-style: normal;font-weight: 400;line-height: 24px;color: currentColor;text-transform: none;word-break: break-all;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-collection__item-accessory{display: inline-block;height: 24px;font-size: 14px;line-height: 24px;color: rgba(34,47,62,.7);text-transform: normal;} - -.tox .tox-collection__item-caret{align-items: center;display: flex;min-height: 24px;} - -.tox .tox-collection__item-caret::after{min-height: inherit;font-size: 0;content: '';} - -.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item>:not(:first-child){margin-left: 8px;} - -.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item-label:first-child{margin-left: 4px;} - -.tox:not([dir=rtl]) .tox-collection__item-accessory{margin-left: 16px;text-align: right;} - -.tox:not([dir=rtl]) .tox-collection__item-caret{margin-left: 16px;} - -.tox[dir=rtl] .tox-collection--list .tox-collection__item>:not(:first-child){margin-right: 8px;} - -.tox[dir=rtl] .tox-collection--list .tox-collection__item-label:first-child{margin-right: 4px;} - -.tox[dir=rtl] .tox-collection__item-icon-rtl .tox-collection__item-icon svg{transform: rotateY(180deg);} - -.tox[dir=rtl] .tox-collection__item-accessory{margin-right: 16px;text-align: left;} - -.tox[dir=rtl] .tox-collection__item-caret{margin-right: 16px;transform: rotateY(180deg);} - -.tox .tox-color-picker-container{display: flex;flex-direction: row;height: 225px;margin: 0;} - -.tox .tox-sv-palette{display: flex;height: 100%;box-sizing: border-box;} - -.tox .tox-sv-palette-spectrum{height: 100%;} - -.tox .tox-sv-palette,.tox .tox-sv-palette-spectrum{width: 225px;} - -.tox .tox-sv-palette-thumb{position: absolute;width: 12px;height: 12px;background: 0 0;border: 1px solid #000;border-radius: 50%;box-sizing: content-box;} - -.tox .tox-sv-palette-inner-thumb{position: absolute;width: 10px;height: 10px;border: 1px solid #fff;border-radius: 50%;} - -.tox .tox-hue-slider{width: 25px;height: 100%;box-sizing: border-box;} - -.tox .tox-hue-slider-spectrum{width: 100%;height: 100%;background: linear-gradient(to bottom,red,#ff0080,#f0f,#8000ff,#00f,#0080ff,#0ff,#00ff80,#0f0,#80ff00,#ff0,#ff8000,red);} - -.tox .tox-hue-slider,.tox .tox-hue-slider-spectrum{width: 20px;} - -.tox .tox-hue-slider-thumb{width: 100%;height: 4px;background: #fff;border: 1px solid #000;box-sizing: content-box;} - -.tox .tox-rgb-form{display: flex;flex-direction: column;justify-content: space-between;} - -.tox .tox-rgb-form div{display: flex;width: inherit;margin-bottom: 5px;align-items: center;justify-content: space-between;} - -.tox .tox-rgb-form input{width: 6em;} - -.tox .tox-rgb-form input.tox-invalid{border: 1px solid red !important;} - -.tox .tox-rgb-form .tox-rgba-preview{margin-bottom: 0;border: 1px solid #000;flex-grow: 2;} - -.tox:not([dir=rtl]) .tox-sv-palette{margin-right: 15px;} - -.tox:not([dir=rtl]) .tox-hue-slider{margin-right: 15px;} - -.tox:not([dir=rtl]) .tox-hue-slider-thumb{margin-left: -1px;} - -.tox:not([dir=rtl]) .tox-rgb-form label{margin-right: .5em;} - -.tox[dir=rtl] .tox-sv-palette{margin-left: 15px;} - -.tox[dir=rtl] .tox-hue-slider{margin-left: 15px;} - -.tox[dir=rtl] .tox-hue-slider-thumb{margin-right: -1px;} - -.tox[dir=rtl] .tox-rgb-form label{margin-left: .5em;} - -.tox .tox-toolbar .tox-swatches,.tox .tox-toolbar__overflow .tox-swatches,.tox .tox-toolbar__primary .tox-swatches{margin: 2px 0 3px 4px;} - -.tox .tox-collection--list .tox-collection__group .tox-swatches-menu{margin: -4px 0;border: 0;} - -.tox .tox-swatches__row{display: flex;} - -.tox .tox-swatch{width: 30px;height: 30px;transition: transform .15s,box-shadow .15s;} - -.tox .tox-swatch:focus,.tox .tox-swatch:hover{transform: scale(.8);box-shadow: 0 0 0 1px rgba(127,127,127,.3) inset;} - -.tox .tox-swatch--remove{align-items: center;display: flex;justify-content: center;} - -.tox .tox-swatch--remove svg path{stroke: #e74c3c;} - -.tox .tox-swatches__picker-btn{display: flex;width: 30px;height: 30px;padding: 0;cursor: pointer;background-color: transparent;border: 0;outline: 0;align-items: center;justify-content: center;} - -.tox .tox-swatches__picker-btn svg{width: 24px;height: 24px;} - -.tox .tox-swatches__picker-btn:hover{background: #dee0e2;} - -.tox:not([dir=rtl]) .tox-swatches__picker-btn{margin-left: auto;} - -.tox[dir=rtl] .tox-swatches__picker-btn{margin-right: auto;} - -.tox .tox-comment-thread{position: relative;background: #fff;} - -.tox .tox-comment-thread>:not(:first-child){margin-top: 8px;} - -.tox .tox-comment{position: relative;padding: 8px 8px 16px 8px;background: #fff;border: 1px solid #ccc;border-radius: 3px;box-shadow: 0 4px 8px 0 rgba(34,47,62,.1);} - -.tox .tox-comment__header{display: flex;color: #222f3e;align-items: center;justify-content: space-between;} - -.tox .tox-comment__date{font-size: 12px;color: rgba(34,47,62,.7);} - -.tox .tox-comment__body{position: relative;margin-top: 8px;font-size: 14px;font-style: normal;font-weight: 400;line-height: 1.3;color: #222f3e;text-transform: initial;} - -.tox .tox-comment__body textarea{width: 100%;white-space: normal;resize: none;} - -.tox .tox-comment__expander{padding-top: 8px;} - -.tox .tox-comment__expander p{font-size: 14px;font-style: normal;color: rgba(34,47,62,.7);} - -.tox .tox-comment__body p{margin: 0;} - -.tox .tox-comment__buttonspacing{padding-top: 16px;text-align: center;} - -.tox .tox-comment-thread__overlay::after{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 5;display: flex;background: #fff;content: "";opacity: .9;} - -.tox .tox-comment__reply{display: flex;flex-shrink: 0;flex-wrap: wrap;justify-content: flex-end;margin-top: 8px;} - -.tox .tox-comment__reply>:first-child{width: 100%;margin-bottom: 8px;} - -.tox .tox-comment__edit{display: flex;flex-wrap: wrap;justify-content: flex-end;margin-top: 16px;} - -.tox .tox-comment__gradient::after{position: absolute;bottom: 0;display: block;width: 100%;height: 5em;margin-top: -40px;background: linear-gradient(rgba(255,255,255,0),#fff);content: "";} - -.tox .tox-comment__overlay{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 5;display: flex;text-align: center;background: #fff;opacity: .9;flex-direction: column;flex-grow: 1;} - -.tox .tox-comment__loading-text{position: relative;display: flex;color: #222f3e;align-items: center;flex-direction: column;} - -.tox .tox-comment__loading-text>div{padding-bottom: 16px;} - -.tox .tox-comment__overlaytext{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 10;padding: 1em;font-size: 14px;flex-direction: column;} - -.tox .tox-comment__overlaytext p{color: #222f3e;text-align: center;background-color: #fff;box-shadow: 0 0 8px 8px #fff;} - -.tox .tox-comment__overlaytext div:nth-of-type(2){font-size: .8em;} - -.tox .tox-comment__busy-spinner{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 1103;display: flex;background-color: #fff;align-items: center;justify-content: center;} - -.tox .tox-comment__scroll{display: flex;flex-direction: column;flex-shrink: 1;overflow: auto;} - -.tox .tox-conversations{margin: 8px;} - -.tox:not([dir=rtl]) .tox-comment__edit{margin-left: 8px;} - -.tox:not([dir=rtl]) .tox-comment__buttonspacing>:last-child,.tox:not([dir=rtl]) .tox-comment__edit>:last-child,.tox:not([dir=rtl]) .tox-comment__reply>:last-child{margin-left: 8px;} - -.tox[dir=rtl] .tox-comment__edit{margin-right: 8px;} - -.tox[dir=rtl] .tox-comment__buttonspacing>:last-child,.tox[dir=rtl] .tox-comment__edit>:last-child,.tox[dir=rtl] .tox-comment__reply>:last-child{margin-right: 8px;} - -.tox .tox-user{align-items: center;display: flex;} - -.tox .tox-user__avatar svg{fill: rgba(34,47,62,.7);} - -.tox .tox-user__name{font-size: 12px;font-style: normal;font-weight: 700;color: rgba(34,47,62,.7);text-transform: uppercase;} - -.tox:not([dir=rtl]) .tox-user__avatar svg{margin-right: 8px;} - -.tox:not([dir=rtl]) .tox-user__avatar+.tox-user__name{margin-left: 8px;} - -.tox[dir=rtl] .tox-user__avatar svg{margin-left: 8px;} - -.tox[dir=rtl] .tox-user__avatar+.tox-user__name{margin-right: 8px;} - -.tox .tox-dialog-wrap{position: fixed;top: 0;right: 0;bottom: 0;left: 0;z-index: 1100;display: flex;align-items: center;justify-content: center;} - -.tox .tox-dialog-wrap__backdrop{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 1101;background-color: rgba(255,255,255,.75);} - -.tox .tox-dialog{position: relative;z-index: 1102;display: flex;width: 95vw;max-width: 480px;max-height: 100%;overflow: hidden;background-color: #fff;border-color: #ccc;border-style: solid;border-width: 1px;border-radius: 3px;box-shadow: 0 16px 16px -10px rgba(34,47,62,.15),0 0 40px 1px rgba(34,47,62,.15);flex-direction: column;} - -.tox .tox-dialog__header{position: relative;display: flex;padding: 8px 16px 0 16px;margin-bottom: 16px;font-size: 16px;color: #222f3e;background-color: #fff;border-bottom: none;align-items: center;justify-content: space-between;} - -.tox .tox-dialog__header .tox-button{z-index: 1;} - -.tox .tox-dialog__draghandle{position: absolute;top: 0;left: 0;width: 100%;height: 100%;cursor: grab;} - -.tox .tox-dialog__draghandle:active{cursor: grabbing;} - -.tox .tox-dialog__dismiss{margin-left: auto;} - -.tox .tox-dialog__title{margin: 0;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 20px;font-style: normal;font-weight: 400;line-height: 1.3;text-transform: normal;} - -.tox .tox-dialog__body{display: flex;min-width: 0;padding: 0 16px;font-size: 16px;font-style: normal;font-weight: 400;line-height: 1.3;color: #222f3e;text-align: left;text-transform: normal;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-dialog__body-nav{align-items: flex-start;display: flex;flex-direction: column;} - -.tox .tox-dialog__body-nav-item{display: inline-block;margin-bottom: 8px;font-size: 14px;line-height: 1.3;color: rgba(34,47,62,.7);text-decoration: none;border-bottom: 2px solid transparent;} - -.tox .tox-dialog__body-nav-item--active{color: #207ab7;border-bottom: 2px solid #207ab7;} - -.tox .tox-dialog__body-content{display: flex;flex: 1;flex-direction: column;-ms-flex-preferred-size: auto;max-height: 650px;overflow: auto;} - -.tox .tox-dialog__body-content>*{margin-top: 16px;margin-bottom: 0;} - -.tox .tox-dialog__body-content>:first-child{margin-top: 0;} - -.tox .tox-dialog__body-content>:last-child{margin-bottom: 0;} - -.tox .tox-dialog__body-content>:only-child{margin-top: 0;margin-bottom: 0;} - -.tox .tox-dialog--width-lg{height: 650px;max-width: 1200px;} - -.tox .tox-dialog--width-md{max-width: 800px;} - -.tox .tox-dialog--width-md .tox-dialog__body-content{overflow: auto;} - -.tox .tox-dialog__body-content--centered{text-align: center;} - -.tox .tox-dialog__body-content--spacious{margin-bottom: 16px;} - -.tox .tox-dialog__footer{display: flex;padding: 8px 16px;margin-top: 16px;background-color: #fff;border-top: 1px solid #ccc;align-items: center;justify-content: space-between;} - -.tox .tox-dialog__busy-spinner{position: absolute;top: 0;right: 0;bottom: 0;left: 0;z-index: 1103;display: flex;background-color: rgba(255,255,255,.75);align-items: center;justify-content: center;} - -.tox .tox-dialog__table{width: 100%;border-collapse: collapse;} - -.tox .tox-dialog__table thead th{padding-bottom: 8px;font-weight: 700;} - -.tox .tox-dialog__table tbody tr{border-bottom: 1px solid #ccc;} - -.tox .tox-dialog__table tbody tr:last-child{border-bottom: none;} - -.tox .tox-dialog__table td{padding-top: 8px;padding-bottom: 8px;} - -.tox .tox-dialog__popups{position: absolute;z-index: 1100;width: 100%;} - -.tox .tox-dialog__body-iframe{display: flex;flex: 1;flex-direction: column;-ms-flex-preferred-size: auto;} - -.tox .tox-dialog__body-iframe .tox-navobj{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-dialog__body-iframe .tox-navobj :nth-child(2){flex: 1;-ms-flex-preferred-size: auto;height: 100%;} - -body.tox-dialog__disable-scroll{overflow: hidden;} - -.tox.tox-platform-ie .tox-dialog-wrap{position: -ms-device-fixed;} - -.tox:not([dir=rtl]) .tox-dialog__body-nav{margin-right: 32px;} - -.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-end>*,.tox:not([dir=rtl]) .tox-dialog__footer .tox-dialog__footer-start>*{margin-left: 8px;} - -.tox[dir=rtl] .tox-dialog__body{text-align: right;} - -.tox[dir=rtl] .tox-dialog__body-nav{margin-left: 32px;} - -.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end>*,.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-start>*{margin-right: 8px;} - -.tox .tox-dropzone-container{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-dropzone{display: flex;min-height: 100px;padding: 10px;background: #fff;border: 2px dashed #ccc;box-sizing: border-box;align-items: center;flex-direction: column;flex-grow: 1;justify-content: center;} - -.tox .tox-dropzone p{margin: 0 0 16px 0;color: rgba(34,47,62,.7);} - -.tox .tox-edit-area{position: relative;display: flex;overflow: hidden;border-top: 1px solid #ccc;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-edit-area__iframe{position: absolute;width: 100%;height: 100%;background-color: #fff;border: 0;box-sizing: border-box;flex: 1;-ms-flex-preferred-size: auto;} - -.tox.tox-inline-edit-area{border: 1px dotted #ccc;} - -.tox .tox-control-wrap{flex: 1;position: relative;} - -.tox .tox-control-wrap:not(.tox-control-wrap--status-invalid) .tox-control-wrap__status-icon-invalid,.tox .tox-control-wrap:not(.tox-control-wrap--status-unknown) .tox-control-wrap__status-icon-unknown,.tox .tox-control-wrap:not(.tox-control-wrap--status-valid) .tox-control-wrap__status-icon-valid{display: none;} - -.tox .tox-control-wrap svg{display: block;} - -.tox .tox-control-wrap__status-icon-wrap{position: absolute;top: 50%;transform: translateY(-50%);} - -.tox .tox-control-wrap__status-icon-invalid svg{fill: #c00;} - -.tox .tox-control-wrap__status-icon-unknown svg{fill: orange;} - -.tox .tox-control-wrap__status-icon-valid svg{fill: green;} - -.tox:not([dir=rtl]) .tox-control-wrap--status-invalid .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-unknown .tox-textfield,.tox:not([dir=rtl]) .tox-control-wrap--status-valid .tox-textfield{padding-right: 32px;} - -.tox:not([dir=rtl]) .tox-control-wrap__status-icon-wrap{right: 4px;} - -.tox[dir=rtl] .tox-control-wrap--status-invalid .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-unknown .tox-textfield,.tox[dir=rtl] .tox-control-wrap--status-valid .tox-textfield{padding-left: 32px;} - -.tox[dir=rtl] .tox-control-wrap__status-icon-wrap{left: 4px;} - -.tox .tox-autocompleter{max-width: 25em;} - -.tox .tox-autocompleter .tox-menu{max-width: 25em;} - -.tox .tox-color-input{display: flex;} - -.tox .tox-color-input .tox-textfield{display: flex;border-radius: 3px 0 0 3px;} - -.tox .tox-color-input span{display: flex;width: 35px;cursor: pointer;border-color: rgba(34,47,62,.2);border-style: solid;border-width: 1px 1px 1px 0;border-radius: 0 3px 3px 0;box-shadow: none;box-sizing: border-box;} - -.tox .tox-color-input span:focus{border-color: #207ab7;} - -.tox[dir=rtl] .tox-color-input .tox-textfield{border-radius: 0 3px 3px 0;} - -.tox[dir=rtl] .tox-color-input span{border-width: 1px 0 1px 1px;border-radius: 3px 0 0 3px;} - -.tox .tox-label,.tox .tox-toolbar-label{display: block;padding: 0 8px 0 0;font-size: 14px;font-style: normal;font-weight: 400;line-height: 1.3;color: rgba(34,47,62,.7);text-transform: normal;white-space: nowrap;} - -.tox .tox-toolbar-label{padding: 0 8px;} - -.tox[dir=rtl] .tox-label{padding: 0 0 0 8px;} - -.tox .tox-form{display: flex;flex: 1;flex-direction: column;-ms-flex-preferred-size: auto;} - -.tox .tox-form__group{margin-bottom: 4px;box-sizing: border-box;} - -.tox .tox-form__group--error{color: #c00;} - -.tox .tox-form__group--collection{display: flex;} - -.tox .tox-form__grid{display: flex;flex-direction: row;flex-wrap: wrap;justify-content: space-between;} - -.tox .tox-form__grid--2col>.tox-form__group{width: calc(50% - (8px / 2));} - -.tox .tox-form__grid--3col>.tox-form__group{width: calc(100% / 3 - (8px / 2));} - -.tox .tox-form__grid--4col>.tox-form__group{width: calc(25% - (8px / 2));} - -.tox .tox-form__controls-h-stack{align-items: center;display: flex;} - -.tox .tox-form__group--inline{align-items: center;display: flex;} - -.tox .tox-form__group--stretched{display: flex;flex: 1;flex-direction: column;-ms-flex-preferred-size: auto;} - -.tox .tox-form__group--stretched .tox-textarea{flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-form__group--stretched .tox-navobj{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-form__group--stretched .tox-navobj :nth-child(2){flex: 1;-ms-flex-preferred-size: auto;height: 100%;} - -.tox:not([dir=rtl]) .tox-form__controls-h-stack>:not(:first-child){margin-left: 4px;} - -.tox[dir=rtl] .tox-form__controls-h-stack>:not(:first-child){margin-right: 4px;} - -.tox .tox-lock.tox-locked .tox-lock-icon__unlock,.tox .tox-lock:not(.tox-locked) .tox-lock-icon__lock{display: none;} - -.tox .tox-textarea,.tox .tox-textfield,.tox .tox-toolbar-textfield,.tox:not([dir=rtl]) .tox-selectfield select,.tox[dir=rtl] .tox-selectfield select{width: 100%;padding: 5px 4.75px;margin: 0;font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size: 16px;line-height: 24px;color: #222f3e;background-color: #fff;border-color: #ccc;border-style: solid;border-width: 1px;border-radius: 3px;outline: 0;box-shadow: none;box-sizing: border-box;resize: none;-webkit-appearance: none;-moz-appearance: none;appearance: none;} - -.tox .tox-selectfield select:focus,.tox .tox-textarea:focus,.tox .tox-textfield:focus{border-color: #207ab7;outline: 0;box-shadow: none;} - -.tox .tox-toolbar-textfield{max-width: 250px;margin-top: 2px;margin-bottom: 3px;border-width: 0;} - -.tox .tox-naked-btn{display: block;padding: 0;margin: 0;color: #207ab7;cursor: pointer;background-color: transparent;border: 0;border-color: transparent;box-shadow: unset;} - -.tox .tox-naked-btn svg{display: block;fill: #222f3e;} - -.tox:not([dir=rtl]) .tox-toolbar-textfield+*{margin-left: 4px;} - -.tox[dir=rtl] .tox-toolbar-textfield+*{margin-right: 4px;} - -.tox .tox-selectfield{position: relative;cursor: pointer;} - -.tox .tox-selectfield select::-ms-expand{display: none;} - -.tox .tox-selectfield svg{position: absolute;top: 50%;pointer-events: none;transform: translateY(-50%);} - -.tox:not([dir=rtl]) .tox-selectfield select{padding-right: 24px;} - -.tox:not([dir=rtl]) .tox-selectfield svg{right: 8px;} - -.tox[dir=rtl] .tox-selectfield select{padding-left: 24px;} - -.tox[dir=rtl] .tox-selectfield svg{left: 8px;} - -.tox .tox-textarea{white-space: pre-wrap;-webkit-appearance: textarea;-moz-appearance: textarea;appearance: textarea;} - -.tox-fullscreen{position: fixed;top: 0;left: 0;width: 100%;height: 100%;padding: 0;margin: 0;overflow: hidden;border: 0;} - -.tox-fullscreen .tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display: none;} - -.tox-fullscreen .tox.tox-tinymce.tox-fullscreen{z-index: 1200;} - -.tox-fullscreen .tox.tox-tinymce-aux{z-index: 1201;} - -.tox .tox-image-tools{width: 100%;} - -.tox .tox-image-tools__toolbar{align-items: center;display: flex;justify-content: center;} - -.tox .tox-image-tools__image{position: relative;width: 100%;height: 380px;overflow: auto;background-color: #666;} - -.tox .tox-image-tools__image,.tox .tox-image-tools__image+.tox-image-tools__toolbar{margin-top: 8px;} - -.tox .tox-image-tools__image-bg{background: url(data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==);} - -.tox .tox-image-tools__toolbar>.tox-spacer{flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-croprect-block{position: absolute;background: #000;opacity: .5;zoom: 1;} - -.tox .tox-croprect-handle{position: absolute;top: 0;left: 0;width: 20px;height: 20px;border: 2px solid #fff;} - -.tox .tox-croprect-handle-move{position: absolute;cursor: move;border: 0;} - -.tox .tox-croprect-handle-nw{top: 100px;left: 100px;margin: -2px 0 0 -2px;cursor: nw-resize;border-width: 2px 0 0 2px;} - -.tox .tox-croprect-handle-ne{top: 100px;left: 200px;margin: -2px 0 0 -20px;cursor: ne-resize;border-width: 2px 2px 0 0;} - -.tox .tox-croprect-handle-sw{top: 200px;left: 100px;margin: -20px 2px 0 -2px;cursor: sw-resize;border-width: 0 0 2px 2px;} - -.tox .tox-croprect-handle-se{top: 200px;left: 200px;margin: -20px 0 0 -20px;cursor: se-resize;border-width: 0 2px 2px 0;} - -.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-left: 8px;} - -.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-left: 32px;} - -.tox:not([dir=rtl]) .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-left: 32px;} - -.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider:not(:first-of-type){margin-right: 8px;} - -.tox[dir=rtl] .tox-image-tools__toolbar>.tox-button+.tox-slider{margin-right: 32px;} - -.tox[dir=rtl] .tox-image-tools__toolbar>.tox-slider+.tox-button{margin-right: 32px;} - -.tox .tox-insert-table-picker{display: flex;flex-wrap: wrap;width: 169px;} - -.tox .tox-insert-table-picker>div{width: 16px;height: 16px;border-color: #ccc;border-style: solid;border-width: 0 1px 1px 0;box-sizing: content-box;} - -.tox .tox-collection--list .tox-collection__group .tox-insert-table-picker{margin: -4px 0;} - -.tox .tox-insert-table-picker .tox-insert-table-picker__selected{background-color: rgba(32,122,183,.5);border-color: rgba(32,122,183,.5);} - -.tox .tox-insert-table-picker__label{display: block;width: 100%;padding: 4px;font-size: 14px;color: rgba(34,47,62,.7);text-align: center;} - -.tox:not([dir=rtl]) .tox-insert-table-picker>div:nth-child(10n){border-right: 0;} - -.tox[dir=rtl] .tox-insert-table-picker>div:nth-child(10n+1){border-right: 0;} - -.tox .tox-menu{z-index: 1;display: inline-block;overflow: hidden;vertical-align: top;background-color: #fff;border: 1px solid #ccc;border-radius: 3px;box-shadow: 0 4px 8px 0 rgba(34,47,62,.1);} - -.tox .tox-menu.tox-collection.tox-collection--list{padding: 0;} - -.tox .tox-menu.tox-collection.tox-collection--toolbar{padding: 4px;} - -.tox .tox-menu.tox-collection.tox-collection--grid{padding: 4px;} - -.tox .tox-menu__label blockquote,.tox .tox-menu__label code,.tox .tox-menu__label h1,.tox .tox-menu__label h2,.tox .tox-menu__label h3,.tox .tox-menu__label h4,.tox .tox-menu__label h5,.tox .tox-menu__label h6,.tox .tox-menu__label p{margin: 0;} - -.tox .tox-menubar{display: flex;padding: 0 4px;margin-bottom: -1px;background: url("data:image/svg+xml;charset=utf8,%3Csvg height='43px' viewBox='0 0 40 43px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='42px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") left 0 top 0 #fff;background-color: #fff;flex: 0 0 auto;flex-shrink: 0;flex-wrap: wrap;} - -.tox .tox-mbtn{display: flex;width: auto;height: 34px;padding: 0 4px;margin: 2px 0 3px 0;overflow: hidden;font-size: 14px;font-style: normal;font-weight: 400;color: #222f3e;text-transform: normal;background: 0 0;border: 0;border-radius: 3px;outline: 0;box-shadow: none;align-items: center;flex: 0 0 auto;justify-content: center;} - -.tox .tox-mbtn[disabled]{color: rgba(34,47,62,.5);cursor: not-allowed;background-color: none;border-color: none;box-shadow: none;} - -.tox .tox-mbtn:hover:not(:disabled){color: #222f3e;background: #dee0e2;box-shadow: none;} - -.tox .tox-mbtn:focus:not(:disabled){color: #222f3e;background: #dee0e2;box-shadow: none;} - -.tox .tox-mbtn--active{color: #222f3e;background: #c8cbcf;box-shadow: none;} - -.tox .tox-mbtn__select-label{margin: 0 4px;font-weight: 400;cursor: default;} - -.tox .tox-mbtn[disabled] .tox-mbtn__select-label{cursor: not-allowed;} - -.tox .tox-mbtn__select-chevron{display: flex;display: none;width: 16px;align-items: center;justify-content: center;} - -.tox .tox-notification{display: grid;padding: 5px;margin-top: 5px;background-color: #fffaea;border-color: #ffe89d;border-style: solid;border-width: 1px;opacity: 0;box-sizing: border-box;transition: transform .1s ease-in,opacity 150ms ease-in;grid-template-columns: minmax(40px,1fr) auto minmax(40px,1fr);} - -.tox .tox-notification--in{opacity: 1;} - -.tox .tox-notification--success{background-color: #dff0d8;border-color: #d6e9c6;} - -.tox .tox-notification--error{background-color: #f2dede;border-color: #ebccd1;} - -.tox .tox-notification--warn{background-color: #fcf8e3;border-color: #faebcc;} - -.tox .tox-notification--info{background-color: #d9edf7;border-color: #779ecb;} - -.tox .tox-notification__body{font-size: 14px;color: #222f3e;text-align: center;word-break: break-all;word-break: break-word;white-space: normal;align-self: center;grid-column-end: 3;-ms-grid-column-span: 1;grid-column-start: 2;grid-row-end: 2;grid-row-start: 1;} - -.tox .tox-notification__body>*{margin: 0;} - -.tox .tox-notification__body>*+*{margin-top: 1rem;} - -.tox .tox-notification__icon{align-self: center;-ms-grid-column-align: end;grid-column-end: 2;-ms-grid-column-span: 1;grid-column-start: 1;grid-row-end: 2;grid-row-start: 1;justify-self: end;} - -.tox .tox-notification__icon svg{display: block;} - -.tox .tox-notification__dismiss{align-self: start;-ms-grid-column-align: end;grid-column-end: 4;-ms-grid-column-span: 1;grid-column-start: 3;grid-row-end: 2;grid-row-start: 1;justify-self: end;} - -.tox .tox-notification .tox-progress-bar{-ms-grid-column-align: center;grid-column-end: 4;-ms-grid-column-span: 3;grid-column-start: 1;grid-row-end: 3;-ms-grid-row-span: 1;grid-row-start: 2;justify-self: center;} - -.tox .tox-pop{position: relative;display: inline-block;} - -.tox .tox-pop--resizing{transition: width .1s ease;} - -.tox .tox-pop--resizing .tox-toolbar{flex-wrap: nowrap;} - -.tox .tox-pop__dialog{min-width: 0;overflow: hidden;background-color: #fff;border: 1px solid #ccc;border-radius: 3px;box-shadow: 0 1px 3px rgba(0,0,0,.15);} - -.tox .tox-pop__dialog>:not(.tox-toolbar){margin: 4px 4px 4px 8px;} - -.tox .tox-pop__dialog .tox-toolbar{background-color: transparent;} - -.tox .tox-pop::after,.tox .tox-pop::before{position: absolute;display: block;width: 0;height: 0;border-style: solid;content: '';} - -.tox .tox-pop.tox-pop--bottom::after,.tox .tox-pop.tox-pop--bottom::before{top: 100%;left: 50%;} - -.tox .tox-pop.tox-pop--bottom::after{margin-top: -1px;margin-left: -8px;border-color: #fff transparent transparent transparent;border-width: 8px;} - -.tox .tox-pop.tox-pop--bottom::before{margin-left: -9px;border-color: #ccc transparent transparent transparent;border-width: 9px;} - -.tox .tox-pop.tox-pop--top::after,.tox .tox-pop.tox-pop--top::before{top: 0;left: 50%;transform: translateY(-100%);} - -.tox .tox-pop.tox-pop--top::after{margin-top: 1px;margin-left: -8px;border-color: transparent transparent #fff transparent;border-width: 8px;} - -.tox .tox-pop.tox-pop--top::before{margin-left: -9px;border-color: transparent transparent #ccc transparent;border-width: 9px;} - -.tox .tox-pop.tox-pop--left::after,.tox .tox-pop.tox-pop--left::before{top: calc(50% - 1px);left: 0;transform: translateY(-50%);} - -.tox .tox-pop.tox-pop--left::after{margin-left: -15px;border-color: transparent #fff transparent transparent;border-width: 8px;} - -.tox .tox-pop.tox-pop--left::before{margin-left: -19px;border-color: transparent #ccc transparent transparent;border-width: 10px;} - -.tox .tox-pop.tox-pop--right::after,.tox .tox-pop.tox-pop--right::before{top: calc(50% + 1px);left: 100%;transform: translateY(-50%);} - -.tox .tox-pop.tox-pop--right::after{margin-left: -1px;border-color: transparent transparent transparent #fff;border-width: 8px;} - -.tox .tox-pop.tox-pop--right::before{margin-left: -1px;border-color: transparent transparent transparent #ccc;border-width: 10px;} - -.tox .tox-pop.tox-pop--align-left::after,.tox .tox-pop.tox-pop--align-left::before{left: 20px;} - -.tox .tox-pop.tox-pop--align-right::after,.tox .tox-pop.tox-pop--align-right::before{left: calc(100% - 20px);} - -.tox .tox-sidebar-wrap{display: flex;flex-direction: row;flex-grow: 1;min-height: 0;} - -.tox .tox-sidebar{display: flex;flex-direction: row;justify-content: flex-end;} - -.tox .tox-sidebar__slider{display: flex;overflow: hidden;} - -.tox .tox-sidebar__pane-container{display: flex;} - -.tox .tox-sidebar__pane{display: flex;} - -.tox .tox-sidebar--sliding-closed{opacity: 0;} - -.tox .tox-sidebar--sliding-open{opacity: 1;} - -.tox .tox-sidebar--sliding-growing,.tox .tox-sidebar--sliding-shrinking{transition: width .5s ease,opacity .5s ease;} - -.tox .tox-slider{position: relative;display: flex;height: 24px;align-items: center;flex: 1;-ms-flex-preferred-size: auto;justify-content: center;} - -.tox .tox-slider__rail{width: 100%;height: 10px;min-width: 120px;background-color: transparent;border: 1px solid #ccc;border-radius: 3px;} - -.tox .tox-slider__handle{position: absolute;top: 50%;left: 50%;width: 14px;height: 24px;background-color: #207ab7;border: 2px solid #185d8c;border-radius: 3px;transform: translateX(-50%) translateY(-50%);box-shadow: none;} - -.tox .tox-source-code{overflow: auto;} - -.tox .tox-spinner{display: flex;} - -.tox .tox-spinner>div{width: 8px;height: 8px;background-color: rgba(34,47,62,.7);border-radius: 100%;animation: tam-bouncing-dots 1.5s ease-in-out 0s infinite both;} - -.tox .tox-spinner>div:nth-child(1){animation-delay: -.32s;} - -.tox .tox-spinner>div:nth-child(2){animation-delay: -.16s;}@keyframes tam-bouncing-dots{0%,100%,80%{transform: scale(0);} - -40%{transform: scale(1);}} - -.tox:not([dir=rtl]) .tox-spinner>div:not(:first-child){margin-left: 4px;} - -.tox[dir=rtl] .tox-spinner>div:not(:first-child){margin-right: 4px;} - -.tox .tox-statusbar{position: relative;display: flex;height: 18px;padding: 0 8px;overflow: hidden;font-size: 12px;color: rgba(34,47,62,.7);text-transform: uppercase;background-color: #fff;border-top: 1px solid #ccc;align-items: center;flex: 0 0 auto;} - -.tox .tox-statusbar a{color: rgba(34,47,62,.7);text-decoration: none;} - -.tox .tox-statusbar a:hover{text-decoration: underline;} - -.tox .tox-statusbar__text-container{display: flex;flex: 1 1 auto;justify-content: flex-end;overflow: hidden;} - -.tox .tox-statusbar__path{display: flex;flex: 1 1 auto;margin-right: auto;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;} - -.tox .tox-statusbar__path>*{display: inline;white-space: nowrap;} - -.tox .tox-statusbar__wordcount{flex: 0 0 auto;margin-left: 1ch;} - -.tox .tox-statusbar__resize-handle{display: flex;padding-left: 1ch;margin-right: -8px;margin-left: auto;cursor: nwse-resize;align-items: flex-end;align-self: stretch;flex: 0 0 auto;justify-content: flex-end;} - -.tox .tox-statusbar__resize-handle svg{display: block;fill: rgba(34,47,62,.7);} - -.tox:not([dir=rtl]) .tox-statusbar__path>*{margin-right: 4px;} - -.tox:not([dir=rtl]) .tox-statusbar__branding{margin-left: 1ch;} - -.tox[dir=rtl] .tox-statusbar{flex-direction: row-reverse;} - -.tox[dir=rtl] .tox-statusbar__path>*{margin-left: 4px;} - -.tox .tox-throbber{z-index: 1400;} - -.tox .tox-throbber__busy-spinner{position: absolute;top: 0;right: 0;bottom: 0;left: 0;display: flex;background-color: rgba(255,255,255,.6);align-items: center;justify-content: center;} - -.tox .tox-tbtn{display: flex;width: 34px;height: 34px;padding: 0;margin: 2px 0 3px 0;overflow: hidden;font-size: 14px;font-style: normal;font-weight: 400;color: #222f3e;text-transform: normal;background: 0 0;border: 0;border-radius: 3px;outline: 0;box-shadow: none;align-items: center;flex: 0 0 auto;justify-content: center;} - -.tox .tox-tbtn svg{display: block;fill: #222f3e;} - -.tox .tox-tbtn.tox-tbtn-more{width: inherit;padding-right: 5px;padding-left: 5px;} - -.tox .tox-tbtn--enabled{color: #222f3e;background: #c8cbcf;box-shadow: none;} - -.tox .tox-tbtn--enabled>*{transform: none;} - -.tox .tox-tbtn--enabled svg{fill: #222f3e;} - -.tox .tox-tbtn:hover{color: #222f3e;background: #dee0e2;box-shadow: none;} - -.tox .tox-tbtn:hover svg{fill: #222f3e;} - -.tox .tox-tbtn:focus{color: #222f3e;background: #dee0e2;box-shadow: none;} - -.tox .tox-tbtn:focus svg{fill: #222f3e;} - -.tox .tox-tbtn:active{color: #222f3e;background: #c8cbcf;box-shadow: none;} - -.tox .tox-tbtn:active svg{fill: #222f3e;} - -.tox .tox-tbtn--disabled,.tox .tox-tbtn--disabled:hover,.tox .tox-tbtn:disabled,.tox .tox-tbtn:disabled:hover{color: rgba(34,47,62,.5);cursor: not-allowed;background: 0 0;box-shadow: none;} - -.tox .tox-tbtn--disabled svg,.tox .tox-tbtn--disabled:hover svg,.tox .tox-tbtn:disabled svg,.tox .tox-tbtn:disabled:hover svg{fill: rgba(34,47,62,.5);} - -.tox .tox-tbtn:active>*{transform: none;} - -.tox .tox-tbtn--md{width: 51px;height: 51px;} - -.tox .tox-tbtn--lg{width: 68px;height: 68px;flex-direction: column;} - -.tox .tox-tbtn--return{width: 16px;height: unset;align-self: stretch;} - -.tox .tox-tbtn--labeled{width: unset;padding: 0 4px;} - -.tox .tox-tbtn__vlabel{display: block;margin-bottom: 4px;font-size: 10px;font-weight: 400;letter-spacing: -.025em;white-space: nowrap;} - -.tox .tox-tbtn--select{width: auto;padding: 0 4px;margin: 2px 0 3px 0;} - -.tox .tox-tbtn__select-label{margin: 0 4px;font-weight: 400;cursor: default;} - -.tox .tox-tbtn__select-chevron{align-items: center;display: flex;justify-content: center;width: 16px;} - -.tox .tox-tbtn__select-chevron svg{fill: rgba(34,47,62,.7);} - -.tox .tox-tbtn--bespoke .tox-tbtn__select-label{width: 7em;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;} - -.tox .tox-split-button{display: flex;margin: 2px 0 3px 0;overflow: hidden;border: 0;border-radius: 3px;box-sizing: border-box;} - -.tox .tox-split-button:hover{box-shadow: 0 0 0 1px #dee0e2 inset;} - -.tox .tox-split-button:focus{color: #222f3e;background: #dee0e2;box-shadow: none;} - -.tox .tox-split-button>*{border-radius: 0;} - -.tox .tox-split-button__chevron{width: 16px;} - -.tox .tox-split-button__chevron svg{fill: rgba(34,47,62,.7);} - -.tox .tox-pop .tox-split-button__chevron svg{transform: rotate(-90deg);} - -.tox .tox-split-button .tox-tbtn{margin: 0;} - -.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:focus,.tox .tox-split-button.tox-tbtn--disabled .tox-tbtn:hover,.tox .tox-split-button.tox-tbtn--disabled:focus,.tox .tox-split-button.tox-tbtn--disabled:hover{color: rgba(34,47,62,.5);background: 0 0;box-shadow: none;} - -.tox .tox-toolbar,.tox .tox-toolbar__overflow,.tox .tox-toolbar__primary{display: flex;padding: 0 0;margin-bottom: -1px;background: url("data:image/svg+xml;charset=utf8,%3Csvg height='39px' viewBox='0 0 40 39px' width='40' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='0' y='38px' width='100' height='1' fill='%23cccccc'/%3E%3C/svg%3E") left 0 top 0 #fff;background-color: #fff;border-top: 1px solid #ccc;flex: 0 0 auto;flex-shrink: 0;flex-wrap: wrap;} - -.tox .tox-toolbar__overflow.tox-toolbar__overflow--closed{height: 0;opacity: 0;visibility: hidden;} - -.tox .tox-toolbar__overflow--growing{transition: height .3s ease,opacity .2s linear .1s;} - -.tox .tox-toolbar__overflow--shrinking{transition: opacity .3s ease,height .2s linear .1s,visibility 0s linear .3s;} - -.tox .tox-pop .tox-toolbar{border-width: 0;} - -.tox .tox-toolbar--no-divider{background-image: none;} - -.tox.tox-tinymce-aux .tox-toolbar__overflow{background-color: #fff;border: 1px solid #ccc;border-radius: 3px;box-shadow: 0 1px 3px rgba(0,0,0,.15);} - -.tox.tox-tinymce-aux:not([dir=rtl]) .tox-toolbar__overflow{margin-left: 4px;} - -.tox[dir=rtl] .tox-tbtn__icon-rtl svg{transform: rotateY(180deg);} - -.tox[dir=rtl].tox-tinymce-aux .tox-toolbar__overflow{margin-right: 4px;} - -.tox .tox-toolbar__group{display: flex;padding: 0 4px;margin: 0 0;align-items: center;flex-wrap: wrap;} - -.tox .tox-toolbar__group--pull-right{margin-left: auto;} - -.tox:not([dir=rtl]) .tox-toolbar__group:not(:last-of-type){border-right: 1px solid #ccc;} - -.tox[dir=rtl] .tox-toolbar__group:not(:last-of-type){border-left: 1px solid #ccc;} - -.tox .tox-tooltip{position: relative;display: inline-block;padding: 8px;} - -.tox .tox-tooltip__body{padding: 4px 8px;font-size: 14px;font-style: normal;font-weight: 400;color: rgba(255,255,255,.75);text-transform: normal;background-color: #222f3e;border-radius: 3px;box-shadow: 0 2px 4px rgba(34,47,62,.3);} - -.tox .tox-tooltip__arrow{position: absolute;} - -.tox .tox-tooltip--down .tox-tooltip__arrow{position: absolute;bottom: 0;left: 50%;border-top: 8px solid #222f3e;border-right: 8px solid transparent;border-left: 8px solid transparent;transform: translateX(-50%);} - -.tox .tox-tooltip--up .tox-tooltip__arrow{position: absolute;top: 0;left: 50%;border-right: 8px solid transparent;border-bottom: 8px solid #222f3e;border-left: 8px solid transparent;transform: translateX(-50%);} - -.tox .tox-tooltip--right .tox-tooltip__arrow{position: absolute;top: 50%;right: 0;border-top: 8px solid transparent;border-bottom: 8px solid transparent;border-left: 8px solid #222f3e;transform: translateY(-50%);} - -.tox .tox-tooltip--left .tox-tooltip__arrow{position: absolute;top: 50%;left: 0;border-top: 8px solid transparent;border-right: 8px solid #222f3e;border-bottom: 8px solid transparent;transform: translateY(-50%);} - -.tox .tox-well{width: 100%;padding: 8px;border: 1px solid #ccc;border-radius: 3px;} - -.tox .tox-well>:first-child{margin-top: 0;} - -.tox .tox-well>:last-child{margin-bottom: 0;} - -.tox .tox-well>:only-child{margin: 0;} - -.tox .tox-custom-editor{display: flex;height: 525px;border: 1px solid #ccc;border-radius: 3px;} - -.tox .tox-dialog-loading::before{position: absolute;z-index: 1000;width: 100%;height: 100%;background-color: rgba(0,0,0,.5);content: "";} - -.tox .tox-tab{cursor: pointer;} - -.tox .tox-dialog__content-js{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox .tox-dialog__body-content .tox-collection{display: flex;flex: 1;-ms-flex-preferred-size: auto;} - -.tox ul{display: block;list-style-type: disc;-webkit-margin-before: 1em;margin-block-start: 1em;-webkit-margin-after: 1em;margin-block-end: 1em;-webkit-margin-start: 0;margin-inline-start: 0;-webkit-margin-end: 0;margin-inline-end: 0;-webkit-padding-start: 40px;padding-inline-start: 40px;} - -.tox a{color: #2276d2;cursor: pointer;} - -.tox .tox-image-tools-edit-panel{height: 60px;} - -.tox .tox-image-tools__sidebar{height: 60px;} diff --git a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/skin.mobile.min.css b/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/skin.mobile.min.css deleted file mode 100644 index 14847d0a2d319e16205b0258b43c0271b5a9d220..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/server/static/resource/tinymce/skins/ui/oxide/skin.mobile.min.css +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Copyright (c) Tiny Technologies, Inc. All rights reserved. - * Licensed under the LGPL or a commercial license. - * For LGPL see License.txt in the project root for license information. - * For commercial licenses see https://www.tiny.cloud/ - */ -.tinymce-mobile-outer-container{all: initial;display: block;} - -.tinymce-mobile-outer-container *{float: none;padding: 0;margin: 0;line-height: 1;text-shadow: none;white-space: nowrap;cursor: inherit;border: 0;outline: 0;box-sizing: initial;-webkit-tap-highlight-color: transparent;} - -.tinymce-mobile-icon-arrow-back::before{content: "\e5cd";} - -.tinymce-mobile-icon-image::before{content: "\e412";} - -.tinymce-mobile-icon-cancel-circle::before{content: "\e5c9";} - -.tinymce-mobile-icon-full-dot::before{content: "\e061";} - -.tinymce-mobile-icon-align-center::before{content: "\e234";} - -.tinymce-mobile-icon-align-left::before{content: "\e236";} - -.tinymce-mobile-icon-align-right::before{content: "\e237";} - -.tinymce-mobile-icon-bold::before{content: "\e238";} - -.tinymce-mobile-icon-italic::before{content: "\e23f";} - -.tinymce-mobile-icon-unordered-list::before{content: "\e241";} - -.tinymce-mobile-icon-ordered-list::before{content: "\e242";} - -.tinymce-mobile-icon-font-size::before{content: "\e245";} - -.tinymce-mobile-icon-underline::before{content: "\e249";} - -.tinymce-mobile-icon-link::before{content: "\e157";} - -.tinymce-mobile-icon-unlink::before{content: "\eca2";} - -.tinymce-mobile-icon-color::before{content: "\e891";} - -.tinymce-mobile-icon-previous::before{content: "\e314";} - -.tinymce-mobile-icon-next::before{content: "\e315";} - -.tinymce-mobile-icon-large-font::before,.tinymce-mobile-icon-style-formats::before{content: "\e264";} - -.tinymce-mobile-icon-undo::before{content: "\e166";} - -.tinymce-mobile-icon-redo::before{content: "\e15a";} - -.tinymce-mobile-icon-removeformat::before{content: "\e239";} - -.tinymce-mobile-icon-small-font::before{content: "\e906";} - -.tinymce-mobile-format-matches::after,.tinymce-mobile-icon-readonly-back::before{content: "\e5ca";} - -.tinymce-mobile-icon-small-heading::before{content: "small";} - -.tinymce-mobile-icon-large-heading::before{content: "large";} - -.tinymce-mobile-icon-large-heading::before,.tinymce-mobile-icon-small-heading::before{font-family: sans-serif;font-size: 80%;} - -.tinymce-mobile-mask-edit-icon::before{content: "\e254";} - -.tinymce-mobile-icon-back::before{content: "\e5c4";} - -.tinymce-mobile-icon-heading::before{font-family: sans-serif;font-size: 80%;font-weight: 700;content: "Headings";} - -.tinymce-mobile-icon-h1::before{font-weight: 700;content: "H1";} - -.tinymce-mobile-icon-h2::before{font-weight: 700;content: "H2";} - -.tinymce-mobile-icon-h3::before{font-weight: 700;content: "H3";} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask{position: absolute;top: 0;display: flex;width: 100%;height: 100%;background: rgba(51,51,51,.5);align-items: center;justify-content: center;} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container{display: flex;font-family: sans-serif;font-size: 1em;border-radius: 50%;align-items: center;flex-direction: column;justify-content: space-between;} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .mixin-menu-item{display: flex;width: 2.1em;height: 2.1em;border-radius: 50%;align-items: center;justify-content: center;} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section{align-items: center;display: flex;justify-content: center;flex-direction: column;font-size: 1em;}@media only screen and (min-device-width: 700px){.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section{font-size: 1.2em;}} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section .tinymce-mobile-mask-tap-icon{display: flex;width: 2.1em;height: 2.1em;color: #207ab7;background-color: #fff;border-radius: 50%;align-items: center;justify-content: center;} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section .tinymce-mobile-mask-tap-icon::before{font-family: tinymce-mobile,sans-serif;content: "\e900";} - -.tinymce-mobile-outer-container .tinymce-mobile-disabled-mask .tinymce-mobile-content-container .tinymce-mobile-content-tap-section:not(.tinymce-mobile-mask-tap-icon-selected) .tinymce-mobile-mask-tap-icon{z-index: 2;} - -.tinymce-mobile-android-container.tinymce-mobile-android-maximized{position: fixed;top: 0;right: 0;bottom: 0;left: 0;display: flex;background: #fff;border: none;flex-direction: column;} - -.tinymce-mobile-android-container:not(.tinymce-mobile-android-maximized){position: relative;} - -.tinymce-mobile-android-container .tinymce-mobile-editor-socket{display: flex;flex-grow: 1;} - -.tinymce-mobile-android-container .tinymce-mobile-editor-socket iframe{display: flex !important;flex-grow: 1;height: auto !important;} - -.tinymce-mobile-android-scroll-reload{overflow: hidden;} - -:not(.tinymce-mobile-readonly-mode)>.tinymce-mobile-android-selection-context-toolbar{margin-top: 23px;} - -.tinymce-mobile-toolstrip{z-index: 1;display: flex;background: #fff;flex: 0 0 auto;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar{display: flex;width: 100%;height: 2.5em;background-color: #fff;border-bottom: 1px solid #ccc;align-items: center;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group{align-items: center;display: flex;height: 100%;flex-shrink: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group>div{align-items: center;display: flex;height: 100%;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group.tinymce-mobile-exit-container{background: #f44336;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group.tinymce-mobile-toolbar-scrollable-group{flex-grow: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item{padding-right: .5em;padding-left: .5em;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item.tinymce-mobile-toolbar-button{display: flex;height: 80%;margin-right: 2px;margin-left: 2px;align-items: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item.tinymce-mobile-toolbar-button.tinymce-mobile-toolbar-button-selected{color: #ccc;background: #c8cbcf;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group:first-of-type,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar:not(.tinymce-mobile-context-toolbar) .tinymce-mobile-toolbar-group:last-of-type{color: #eceff1;background: #207ab7;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group{display: flex;height: 100%;padding-top: .4em;padding-bottom: .4em;align-items: center;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog{position: relative;display: flex;width: 100%;min-height: 1.5em;padding-right: 0;padding-left: 0;overflow: hidden;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain{display: flex;width: 100%;height: 100%;transition: left cubic-bezier(.4,0,1,1) .15s;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen{display: flex;flex: 0 0 auto;justify-content: space-between;width: 100%;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen input{font-family: sans-serif;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-input-container{position: relative;display: flex;flex-grow: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-input-container .tinymce-mobile-input-container-x{position: absolute;right: 0;height: 100%;padding-right: 2px;font-size: .6em;font-weight: 700;color: #888;background: inherit;border: none;border-radius: 50%;align-self: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-input-container.tinymce-mobile-input-container-empty .tinymce-mobile-input-container-x{display: none;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-next,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-previous{align-items: center;display: flex;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-next::before,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-previous::before{display: flex;height: 100%;padding-right: .5em;padding-left: .5em;font-weight: 700;align-items: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-next.tinymce-mobile-toolbar-navigation-disabled::before,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serialised-dialog .tinymce-mobile-serialised-dialog-chain .tinymce-mobile-serialised-dialog-screen .tinymce-mobile-icon-previous.tinymce-mobile-toolbar-navigation-disabled::before{visibility: hidden;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-dot-item{padding-top: 3px;margin: 0 2px;font-size: 10px;line-height: 10px;color: #ccc;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-dot-item.tinymce-mobile-dot-active{color: #c8cbcf;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-icon-large-font::before,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-icon-large-heading::before{margin-right: .9em;margin-left: .5em;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-icon-small-font::before,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-icon-small-heading::before{margin-right: .5em;margin-left: .9em;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider{position: relative;display: flex;padding: .28em 0;margin-right: 0;margin-left: 0;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider .tinymce-mobile-slider-size-container{align-items: center;display: flex;flex-grow: 1;height: 100%;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider .tinymce-mobile-slider-size-container .tinymce-mobile-slider-size-line{display: flex;height: .2em;margin-top: .3em;margin-bottom: .3em;background: #ccc;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container{padding-right: 2em;padding-left: 2em;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container .tinymce-mobile-slider-gradient-container{align-items: center;display: flex;flex-grow: 1;height: 100%;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container .tinymce-mobile-slider-gradient-container .tinymce-mobile-slider-gradient{display: flex;height: .2em;margin-top: .3em;margin-bottom: .3em;background: linear-gradient(to right,red 0,#feff00 17%,#0f0 33%,#00feff 50%,#00f 67%,#ff00fe 83%,red 100%);flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container .tinymce-mobile-hue-slider-black{width: 1.2em;height: .2em;margin-top: .3em;margin-bottom: .3em;background: #000;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider.tinymce-mobile-hue-slider-container .tinymce-mobile-hue-slider-white{width: 1.2em;height: .2em;margin-top: .3em;margin-bottom: .3em;background: #fff;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider .tinymce-mobile-slider-thumb{position: absolute;top: 0;bottom: 0;left: -10px;display: flex;width: .5em;height: .5em;margin: auto;color: #fff;background-color: #455a64;border: .5em solid rgba(136,136,136,0);border-radius: 3em;transition: border 120ms cubic-bezier(.39,.58,.57,1);background-clip: padding-box;align-items: center;justify-content: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-slider .tinymce-mobile-slider-thumb.tinymce-mobile-thumb-active{border: .5em solid rgba(136,136,136,.39);} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serializer-wrapper,.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group>div{align-items: center;display: flex;height: 100%;flex: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-serializer-wrapper{flex-direction: column;justify-content: center;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item{align-items: center;display: flex;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-toolbar-group-item:not(.tinymce-mobile-serialised-dialog){height: 100%;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group .tinymce-mobile-dot-container{display: flex;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group input{padding-top: .1em;padding-bottom: .1em;padding-left: 5px;font-size: .85em;color: #455a64;background: #fff;border: none;border-radius: 0;flex-grow: 1;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group input::-webkit-input-placeholder{color: #888;} - -.tinymce-mobile-toolstrip .tinymce-mobile-toolbar.tinymce-mobile-context-toolbar .tinymce-mobile-toolbar-group input::placeholder{color: #888;} - -.tinymce-mobile-dropup{display: flex;width: 100%;overflow: hidden;background: #fff;} - -.tinymce-mobile-dropup.tinymce-mobile-dropup-shrinking{transition: height .3s ease-out;} - -.tinymce-mobile-dropup.tinymce-mobile-dropup-growing{transition: height .3s ease-in;} - -.tinymce-mobile-dropup.tinymce-mobile-dropup-closed{flex-grow: 0;} - -.tinymce-mobile-dropup.tinymce-mobile-dropup-open:not(.tinymce-mobile-dropup-growing){flex-grow: 1;} - -.tinymce-mobile-ios-container .tinymce-mobile-dropup:not(.tinymce-mobile-dropup-closed){min-height: 200px;}@media only screen and (orientation: landscape){.tinymce-mobile-dropup:not(.tinymce-mobile-dropup-closed){min-height: 200px;}}@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (orientation: landscape){.tinymce-mobile-ios-container .tinymce-mobile-dropup:not(.tinymce-mobile-dropup-closed){min-height: 150px;}} - -.tinymce-mobile-styles-menu{position: relative;width: 100%;overflow: hidden;font-family: sans-serif;outline: 4px solid #000;} - -.tinymce-mobile-styles-menu [role=menu]{position: absolute;display: flex;width: 100%;height: 100%;flex-direction: column;} - -.tinymce-mobile-styles-menu [role=menu].transitioning{transition: transform .5s ease-in-out;} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-item{position: relative;display: flex;padding: 1em 1em;color: #455a64;cursor: pointer;border-bottom: 1px solid #ddd;} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-collapser .tinymce-mobile-styles-collapse-icon::before{font-family: tinymce-mobile,sans-serif;color: #455a64;content: "\e314";} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-item.tinymce-mobile-styles-item-is-menu::after{position: absolute;right: 0;padding-right: 1em;padding-left: 1em;font-family: tinymce-mobile,sans-serif;color: #455a64;content: "\e315";} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-item.tinymce-mobile-format-matches::after{position: absolute;right: 0;padding-right: 1em;padding-left: 1em;font-family: tinymce-mobile,sans-serif;} - -.tinymce-mobile-styles-menu .tinymce-mobile-styles-collapser,.tinymce-mobile-styles-menu .tinymce-mobile-styles-separator{display: flex;min-height: 2.5em;padding-right: 1em;padding-left: 1em;color: #455a64;background: #fff;border-top: #455a64;align-items: center;} - -.tinymce-mobile-styles-menu [data-transitioning-destination=before][data-transitioning-state],.tinymce-mobile-styles-menu [data-transitioning-state=before]{transform: translate(-100%);} - -.tinymce-mobile-styles-menu [data-transitioning-destination=current][data-transitioning-state],.tinymce-mobile-styles-menu [data-transitioning-state=current]{transform: translate(0);} - -.tinymce-mobile-styles-menu [data-transitioning-destination=after][data-transitioning-state],.tinymce-mobile-styles-menu [data-transitioning-state=after]{transform: translate(100%);}@font-face{font-family: tinymce-mobile;font-style: normal;font-weight: 400;src: url(fonts/tinymce-mobile.woff?8x92w3) format('woff');}@media (min-device-width: 700px){.tinymce-mobile-outer-container,.tinymce-mobile-outer-container input{font-size: 25px;}}@media (max-device-width: 700px){.tinymce-mobile-outer-container,.tinymce-mobile-outer-container input{font-size: 18px;}} - -.tinymce-mobile-icon{font-family: tinymce-mobile,sans-serif;} - -.mixin-flex-and-centre{align-items: center;display: flex;justify-content: center;} - -.mixin-flex-bar{align-items: center;display: flex;height: 100%;} - -.tinymce-mobile-outer-container .tinymce-mobile-editor-socket iframe{width: 100%;background-color: #fff;} - -.tinymce-mobile-editor-socket .tinymce-mobile-mask-edit-icon{position: fixed;right: 2em;bottom: 1em;display: flex;width: 2.1em;height: 2.1em;font-size: 1em;color: #fff;background-color: #207ab7;border-radius: 50%;align-items: center;justify-content: center;}@media only screen and (min-device-width: 700px){.tinymce-mobile-editor-socket .tinymce-mobile-mask-edit-icon{font-size: 1.2em;}} - -.tinymce-mobile-outer-container:not(.tinymce-mobile-fullscreen-maximized) .tinymce-mobile-editor-socket{height: 300px;overflow: hidden;} - -.tinymce-mobile-outer-container:not(.tinymce-mobile-fullscreen-maximized) .tinymce-mobile-editor-socket iframe{height: 100%;} - -.tinymce-mobile-outer-container:not(.tinymce-mobile-fullscreen-maximized) .tinymce-mobile-toolstrip{display: none;} - -input[type=file]::-webkit-file-upload-button{display: none;}@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (orientation: landscape){.tinymce-mobile-ios-container .tinymce-mobile-editor-socket .tinymce-mobile-mask-edit-icon{bottom: 50%;}} diff --git a/Yunzai/plugins/Guoba-Plugin/utils/adapter.js b/Yunzai/plugins/Guoba-Plugin/utils/adapter.js deleted file mode 100644 index 1f8f08de36e9a83dff99722788369755aad87ff4..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/adapter.js +++ /dev/null @@ -1,16 +0,0 @@ -import {yunzaiPackage} from './package.js' - -let isV2 = false, isV3 = false, yunzaiVersion = yunzaiPackage?.version - -if (yunzaiVersion) { - // 3.x 版本 - if (yunzaiVersion.startsWith('3')) { - isV3 = true - } else { - isV2 = true - } -} - -let isDev = (process.argv || []).includes('dev') - -export {isV2, isV3, yunzaiVersion, isDev} diff --git a/Yunzai/plugins/Guoba-Plugin/utils/adapter/check.js b/Yunzai/plugins/Guoba-Plugin/utils/adapter/check.js deleted file mode 100644 index f530f3bb162afaa9115063ab42a0eb5296055b9b..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/adapter/check.js +++ /dev/null @@ -1,31 +0,0 @@ -import chalk from 'chalk' -import {isV3} from '#guoba.utils' - -export const needPackage = [ - 'yaml', - 'express', - 'body-parser', - 'multer', - 'jsonwebtoken', -] - -export async function checkPackage() { - for (let pkgName of needPackage) { - try { - await import(pkgName) - } catch (e) { - packageTips(e) - return false - } - } - return true -} - -export function packageTips(error) { - logger.mark('---- 锅巴启动失败 ----') - let pack = error.stack.match(/'(.+?)'/g)[0].replace(/'/g, '') - logger.mark(`缺少依赖:${chalk.red(pack)}`) - let cmd = isV3 ? 'pnpm add $s -w' : 'npm install $s' - logger.mark(`请执行安装依赖命令:${chalk.red(cmd.replace('$s', pack))}`) - logger.mark('---------------------') -} diff --git a/Yunzai/plugins/Guoba-Plugin/utils/adapter/common.js b/Yunzai/plugins/Guoba-Plugin/utils/adapter/common.js deleted file mode 100644 index 962cb8b834b90520c6fcbb7d0c6abdeec83a9098..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/adapter/common.js +++ /dev/null @@ -1,62 +0,0 @@ -import {GI, incrVersion} from '../guobaImport.js' -import {packageTips} from './check.js' - -let isInit = true - -export async function reload() { - if (!isInit) { - incrVersion() - } - // 首先关闭服务器 - let isClosed = await new Promise((resolve) => { - if (!Guoba.server) { - resolve(true) - return - } - Guoba.server.close(err => { - if (err) { - logger.error('[Guoba] 重载失败', err) - resolve(false) - } else { - resolve(true) - } - }) - }) - if (isClosed) { - delete Guoba.app - delete Guoba.server - // 创建服务器 - let newServer - try { - let {createServer} = await GI('#/index.js') - newServer = await createServer({isInit}) - } catch (error) { - if (error?.stack && error.stack.includes('Cannot find package')) { - packageTips(error) - } else { - if (error.stack) { - logger.error(`[Guoba] 服务锅巴启动失败`) - logger.error(decodeURI(error.stack)) - } else { - logger.error(error) - } - } - return - } - let {app, server} = newServer - Guoba.app = app - Guoba.server = server - Guoba.reload = reload - if (!isInit) { - logger.mark('[Guoba] 服务重载成功~') - } - isInit = false - } -} - -/** 退出事件 */ -process.on('exit', async (code) => { - if (Guoba && Guoba.server) { - Guoba.server.close() - } -}) diff --git a/Yunzai/plugins/Guoba-Plugin/utils/adapter/initV2.js b/Yunzai/plugins/Guoba-Plugin/utils/adapter/initV2.js deleted file mode 100644 index 748758c4072728842b5aadc8dd38e1442324568a..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/adapter/initV2.js +++ /dev/null @@ -1,48 +0,0 @@ -import {reload} from './common.js' -import {pluginPackage} from '../package.js' - -const apps = [] - -export async function init(rule) { - await reload() - - rule['appRouter'] = { - reg: '^#?锅巴', - priority: 50, - describe: '#锅巴插件' - } - apps.push((await import('../../apps/login.js')).GuobaLogin) - - logger.mark(`[Guoba] 欢迎使用锅巴插件,当前版本:${pluginPackage.version}`) - logger.warn(`[Guoba] 检测到您使用的是V2版本的云崽,当前版本的锅巴仅支持“迁移至V3”功能!`) - return appRouter -} - -global.plugin = class GlobalPlugin { - constructor(data, e) { - this.e = e - this.reply = e.reply - this.rules = data.rule || [] - } -} - -async function appRouter(e) { - for (let clazz of apps) { - let app = new clazz(e) - for (let rule of app.rules) { - if (new RegExp(rule.reg).test(e.msg)) { - e.logFnc = `[${app.name}][${rule.fnc}]` - try { - let res = await (app[rule.fnc] && app[rule.fnc](e)) - if (res !== false) { - return true - } - } catch (error) { - logger.error(`${e.logFnc}`) - logger.error(error.stack) - return true - } - } - } - } -} diff --git a/Yunzai/plugins/Guoba-Plugin/utils/adapter/initV3.js b/Yunzai/plugins/Guoba-Plugin/utils/adapter/initV3.js deleted file mode 100644 index 8cf59e73897ce96abed73b6c37c61d111c3cead3..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/adapter/initV3.js +++ /dev/null @@ -1,38 +0,0 @@ -import path from 'path' -import {loadClasses} from '#guoba.framework.utils' -import {_version, _paths} from '#guoba.platform' -import {isDev} from '#guoba.utils' -import {createHotLoad} from '../hotLoad.js' -import {reload} from './common.js' -import {loadV2Apps} from './loadV2.js' - -export async function init(apps) { - let appsPath = path.join(_paths.pluginRoot, 'apps') - // 加载 apps 下的所有类 - await loadClasses(appsPath, plugin, apps) - // 加载 v2 插件 - await loadV2Apps() - // dev 模式下,监听文件变化,自动重启服务器 - if (isDev) { - let skip = true - let staticPath = path.join(_paths.pluginRoot, 'server/static') - createHotLoad(path.join(_paths.pluginRoot, 'server'), { - wait: 100, - immediate: true, - filter: (type, p) => { - if (type === 'immediate') { - return true - } - if (skip) return false - if (p.startsWith(staticPath)) { - return false - } - return /\.c?js$/.test(p) - }, - handler: () => reload().then(() => setTimeout(() => skip = false, 1000)), - }) - } else { - await reload() - } - logger.mark(`[Guoba] 欢迎使用锅巴插件,当前版本:${_version}`) -} diff --git a/Yunzai/plugins/Guoba-Plugin/utils/adapter/loadV2.js b/Yunzai/plugins/Guoba-Plugin/utils/adapter/loadV2.js deleted file mode 100644 index 0fe6f5fee3b83544df7dd978b64db929a9dbfd59..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/adapter/loadV2.js +++ /dev/null @@ -1,45 +0,0 @@ -import fs from 'fs' -import path from 'path' -import lodash from 'lodash' -import {_paths} from '#guoba.platform' - -let v2Apps = [] - -const v2JsPath = path.join(_paths.pluginRoot, 'lib/v2-js') - -// 加载V2单JS文件插件 -export async function loadV2Apps() { - let checkReg = /.js$/i - let fileList = fs.readdirSync(v2JsPath) - fileList = fileList.filter((i) => checkReg.test(i)) - if (fileList.length === 0) { - return - } - let count = 0 - for (let fileName of fileList) { - try { - let filePath = path.join(v2JsPath, fileName) - let module = await import('file:///' + filePath) - if (!module.rule) continue - let name = fileName.replace(checkReg, '') - for (let [ruleName, rule] of Object.entries(module.rule)) { - let ruleKey = `${name}:${ruleName}` - let handler = module[ruleName] - if (typeof handler !== 'function') { - throw new Error(`请先export该方法:${ruleName}`) - } - v2Apps.push({...rule, key: ruleKey, handler}) - count++ - } - } catch (error) { - logger.error(`[Guoba] 载入V2插件报错:${fileName}`) - console.error(error) - } - } - logger.info(`[Guoba] 成功载入了${count}个V2插件`) - v2Apps = lodash.orderBy(v2Apps, ['priority'], ['asc']) -} - -export { - v2Apps -} diff --git a/Yunzai/plugins/Guoba-Plugin/utils/cfg.js b/Yunzai/plugins/Guoba-Plugin/utils/cfg.js deleted file mode 100644 index 5fa06e5b845db2d7a3053245b9eea672b12e95a3..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/cfg.js +++ /dev/null @@ -1,93 +0,0 @@ -import fs from 'fs' -import path from 'path' -import lodash from 'lodash' -import {YamlReader} from '#guoba.framework' -import {_paths} from '#guoba.platform' -import {randomString} from '#guoba.utils' - -/** 配置文件 */ -class GuobaConfig { - constructor() { - /** 默认设置 */ - this.defSet = { - path: path.join(_paths.pluginRoot, 'defSet/application.yaml'), - reader: null, - } - /** 用户设置 */ - this.config = { - path: path.join(_paths.pluginRoot, 'config/application.yaml'), - reader: null, - } - this.initConfig() - } - - /** 初始化用户配置文件 */ - initConfig() { - let isInit = false - if (!fs.existsSync(this.config.path)) { - isInit = true - let configDir = path.dirname(this.config.path) - if (!fs.existsSync(configDir)) { - fs.mkdirSync(configDir) - } - fs.copyFileSync(this.defSet.path, this.config.path) - } - try { - this.defSet.reader = new YamlReader(this.defSet.path, false) - this.config.reader = new YamlReader(this.config.path, true) - } catch (error) { - logger.error(`[Guoba] 配置文件格式错误! `, error) - throw error - } - if (isInit) { - // 随机生成32位 secret - this.set('jwt.secret', randomString(32)) - } - this.config.reader.watcher.on('change', () => { - if (!this.config.reader.isSave) { - logger.mark(`[Guoba] 配置文件重载成功~`) - } - }) - } - - /** 合并默认配置和用户配置 */ - get merged() { - return lodash.merge({}, this.defSet.reader.jsonData, this.config.reader.jsonData) - } - - /** 通过配置路径获取值,例如:server.port */ - get(keyPath) { - return lodash.get(this.merged, keyPath) - } - - set(keyPath, value) { - this.config.reader.set(keyPath, value) - } - - getServerHost() { - let host = this.get('server.host') - if (Array.isArray(host)) { - if (host.length <= 1) { - return host[0] - } else { - return host.splice(0, 2) - } - } - return host - } - - getJwtSecret() { - let secret = this.get('jwt.secret') - if (!secret || secret.length !== 32) { - // 随机生成32位 secret - secret = randomString(32) - this.set('jwt.secret', secret) - logger.warn(`[Guoba] 检测到 jwt.secret 配置损坏,已重新生成!请勿随意更改或泄漏此配置!`) - } - return secret - } - -} - -/** Guoba配置 */ -export default new GuobaConfig() diff --git a/Yunzai/plugins/Guoba-Plugin/utils/common.js b/Yunzai/plugins/Guoba-Plugin/utils/common.js deleted file mode 100644 index f5fa4183f1307ac9e72cf10756839f13576fa60d..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/common.js +++ /dev/null @@ -1,361 +0,0 @@ -import os from 'os' -import fs from 'fs' -import path from 'path' -import moment from 'moment' -import lodash from 'lodash' -import fetch from 'node-fetch' -import {cfg, Constant} from "#guoba.platform"; -import {isV3} from '#guoba.utils' - -/** - * 随机生成指定长度的字符串 - * @param length - * @return {string} - */ -export function randomString(length = 8) { - let str = '' - for (let i = 0; i < length; i++) { - str += lodash.random(36).toString(36) - } - return str.substr(0, length) -} - -export function toPairsMap(arg) { - let obj = {} - let pairs = lodash.toPairs(arg) - for (let [key, value] of pairs) { - obj[key] = value - } - return obj -} - -async function getMasterQQ() { - if (isV3) { - return (await import( '../../../lib/config/config.js')).default.masterQQ - } else { - return BotConfig.masterQQ - } -} - -/** - * 给主人发送消息 - * @param msg 消息内容 - * @param all 是否发送给所有主人,默认false - * @param idx 不发送给所有主人时,指定发送给第几个主人,默认发送给第一个主人 - */ -export async function sendToMaster(msg, all = false, idx = 0) { - let masterQQ = await getMasterQQ() - let sendTo = all ? masterQQ : [masterQQ[idx]] - for (let qq of sendTo) { - await replyPrivate(qq, msg) - } -} - -/** - * 发送私聊消息,仅给好友发送 - * @param userId qq号 - * @param msg 消息 - */ -async function replyPrivate(userId, msg) { - userId = Number(userId) - let friend = Bot.fl.get(userId) - if (friend) { - logger.mark(`发送好友消息[${friend.nickname}](${userId})`) - return await Bot.pickUser(userId).sendMsg(msg).catch((err) => { - logger.mark(err) - }) - } -} - -/** - * 获取所有web地址,包括内网、外网 - */ -export async function getAllWebAddress() { - let host = cfg.getServerHost() - let {port, splicePort} = cfg.get('server') - port = splicePort ? Number.parseInt(port) : null - port = port === 80 ? null : port - let custom = [] - let local = getAutoIps(port, true) - let remote = await getRemoteIps() - if (remote && remote.length > 0) { - remote = remote.map((i) => joinHttpPort(i, port)) - } - if (host) { - if (!Array.isArray(host)) { - host = [host] - } - for (let h of host) { - if (h && h !== 'auto') { - custom.push(joinHttpPort(h, port)) - } - } - } - return {custom, local, remote} -} - -// 拼接端口号和http前缀 -function joinHttpPort(ip, port) { - ip = /^http/.test(ip) ? ip : 'http://' + ip - return `${ip}${port ? ':' + port : ''}` -} - -/** - * 获取web地址 - * @param allIp 是否展示全部IP - */ -export function getWebAddress(allIp = false) { - let host = cfg.getServerHost() - let {port, splicePort} = cfg.get('server') - port = splicePort ? Number.parseInt(port) : null - port = port === 80 ? null : port - let hosts = [] - if (host === 'auto') { - hosts.push(...getAutoIps(port, allIp)) - } else { - if (!Array.isArray(host)) { - host = [host] - } - for (let item of host) { - if (item === 'auto') { - hosts.push(...getAutoIps(port, allIp)) - } else { - item = /^http/.test(item) ? item : 'http://' + item - hosts.push(`${item}${port ? ':' + port : ''}`) - } - } - } - return hosts -} - -function getAutoIps(port, allIp) { - let ips = getLocalIps(port) - if (ips.length === 0) { - ips.push(`localhost${port ? ':' + port : ''}`) - } - if (allIp) { - return ips.map(ip => `http://${ip}`) - } else { - return [`http://${ips[0]}`] - } -} - -/** - * 获取本地ip地址 - * 感谢 @吃吃吃个柚子皮 - * https://gitee.com/guoba-yunzai/guoba-plugin/pulls/2 - * @param port 要拼接的端口号 - * @return {*[]} - */ -export function getLocalIps(port) { - let ips = [] - port = port ? `:${port}` : '' - try { - let networks = os.networkInterfaces() - for (let [name, wlans] of Object.entries(networks)) { - for (let wlan of wlans) { - /* - * 更改过滤规则,填坑。(之前未测试Windows系统) - * 通过掩码过滤本地IPv6 - * 通过MAC地址过滤Windows 本地回环地址(踩坑) - * 过滤lo回环网卡(Linux要过滤'lo'),去掉会导致Linxu"::1"过滤失败(踩坑) - * 如有虚拟网卡需自己加上过滤--技术有限 - */ - /* - * 修复过滤,部分Linux读取不到IPv6 - * 放弃使用网段过滤,采取过滤fe、fc开头地址 - */ - // noinspection EqualityComparisonWithCoercionJS - if (name != 'lo' && name != 'docker0' && wlan.address.slice(0, 2) != 'fe' && wlan.address.slice(0, 2) != 'fc') { - // 过滤本地回环地址 - if (['127.0.0.1', '::1'].includes(wlan.address)) { - continue - } - if (wlan.family === 'IPv6') { - ips.push(`[${wlan.address}]${port}`) - } else { - ips.push(`${wlan.address}${port}`) - } - } - } - } - } catch (e) { - let err = e?.stack || e?.message || e - err = err ? err.toString() : '' - if (/Unknown system error 13/i.test(err)) { - logger.warn('[Guoba] 由于系统限制,无法获取到IP地址,仅显示本地回环地址。该问题目前暂无方案解决,但不影响Guoba使用,您可手动配置自定义地址。') - ips.push(`localhost${port}`) - } else { - logger.error(`错误:${logger.red(e)}`) - } - } - if (ips.length === 0) { - logger.warn('[Guoba] 无法获取到IP地址,仅显示本地回环地址,详情请查看以上报错。') - ips.push(`localhost${port}`) - } - return ips -} - -/** - * 获取外网ip地址 - * @author @吃吃吃个柚子皮 - */ -export async function getRemoteIps() { - let redisKey = Constant.REDIS_PREFIX + 'remote-ips:3' - let cacheData = await redis.get(redisKey) - let ips - if (cacheData) { - ips = JSON.parse(cacheData) - if (Array.isArray(ips) && ips.length > 0) { - return ips - } - } - ips = [] - //API是免费,但不能商用。(废话) - let apis = [ - // 返回IPv4地址 - 'http://v4.ip.zxinc.org/info.php?type=json', - // 返回IPv6地址(已失效) - // 'http://v6.ip.zxinc.org/info.php?type=json' - ] - for (let api of apis) { - let response - try { - response = await fetch(api) - } catch { - continue - } - if (response.status === 200) { - let {code, data} = await response.json() - if (code === 0) { - ips.push(data.myip) - } - } - } - // 缓存避免过多请求,防止接口提供商检测 - // 服务器上的外网IP一般不会变,如果经常变的话就推荐使用DDNS, - // 而家用PC一般也用不到外网IP,仍然推荐使用DDNS内网穿透。 - if (ips.length > 0) { - redis.set(redisKey, JSON.stringify(ips), {EX: 3600 * 24}) - } - return ips -} - -export function sleep(ms = 1000) { - return new Promise(resolve => setTimeout(resolve, ms)) -} - -/** - * 读取JSON文件 - * @param filePath - */ -export function readJson(filePath) { - return JSON.parse(fs.readFileSync(filePath, 'utf8')) -} - -/** - * - * 制作转发消息 - * @param e - * @param msg 消息体 - * @param dec 描述 - * @returns {Promise} - */ -export async function makeForwardMsg(e, msg = [], dec = '') { - let nickname = Bot.nickname - if (e.isGroup) { - let info = await Bot.getGroupMemberInfo(e.group_id, Bot.uin) - nickname = info.card || info.nickname - } - let userInfo = { - user_id: Bot.uin, - nickname, - } - - let forwardMsg = [] - msg.forEach(v => { - forwardMsg.push({ - ...userInfo, - message: v, - }) - }) - - /** 制作转发内容 */ - if (e.isGroup) { - forwardMsg = await e.group.makeForwardMsg(forwardMsg) - } else if (e.friend) { - forwardMsg = await e.friend.makeForwardMsg(forwardMsg) - } else { - return false - } - - if (dec) { - /** 处理描述 */ - forwardMsg.data = forwardMsg.data - .replace(/\n/g, '') - .replace(/(.+?)<\/title>/g, '___') - .replace(/___+/, `<title color="#777777" size="26">${dec}`) - } - - return forwardMsg -} - -/** 此方法可以解决 docker 跨设备问题 */ -export function moveFile(src, dest) { - fs.copyFileSync(src, dest) - fs.unlinkSync(src) -} - -// 递归创建目录 同步方法 -export function mkdirSync(dirname) { - if (fs.existsSync(dirname)) { - return true - } else { - if (mkdirSync(path.dirname(dirname))) { - fs.mkdirSync(dirname) - return true - } - } -} - -// 判断目录是否为空 -export function dirIsEmpty(dirPath) { - if (!fs.existsSync(dirPath)) { - return true - } - try { - fs.rmdirSync(dirPath) - fs.mkdirSync(dirPath) - return true - } catch (e) { - if (/directory not empty/.test(e?.message)) { - return false - } - throw e - } -} - -/** - * 日期比较,相差时间数 - * @param beginTime - * @param endTime - * @return {{hours: number, seconds: number, minutes: number, days: number}} - */ -export function dateDiff(beginTime, endTime) { - let diff = moment(endTime).diff(moment(beginTime)) - if (diff < 0) { - throw new Error('结束时间不能小于开始时间') - } - // 计算出相差天数 - let days = Math.floor(diff / (24 * 3600 * 1000)) - // 计算出小时数 - let leave1 = diff % (24 * 3600 * 1000) - let hours = Math.floor(leave1 / (3600 * 1000)) - // 计算相差分钟数 - let leave2 = leave1 % (3600 * 1000) - let minutes = Math.floor(leave2 / (60 * 1000)) - // 计算相差秒数 - let leave3 = leave2 % (60 * 1000) - let seconds = Math.round(leave3 / 1000) - return {days, hours, minutes, seconds} -} diff --git a/Yunzai/plugins/Guoba-Plugin/utils/guobaImport.js b/Yunzai/plugins/Guoba-Plugin/utils/guobaImport.js deleted file mode 100644 index dbf0be071988a1af150725fcac0b8be1c1a7f15b..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/guobaImport.js +++ /dev/null @@ -1,89 +0,0 @@ -import os from 'os' -import path from 'path' -import lodash from 'lodash' -import {_paths} from '#guoba.platform' - -let instanceVersion = '' - -export function incrVersion() { - instanceVersion = lodash.uniqueId('guoba-instance-version-') -} - -incrVersion() - -const pathPrefix = [ - { - reg: /^\//, - real: _paths.root, - }, - { - reg: /^@\//, - real: _paths.pluginRoot, - }, - { - reg: /^#\//, - real: path.join(_paths.pluginRoot, 'server'), - }, -] - -/** - * 导入模块 - * @param u - * @param [relative] 相对路径的起始绝对路径 - * @returns {Promise<*>} - * @constructor - */ -export async function GI(u, relative) { - let url = u - // . 开头的路径,是相对路径 - if (/^\./.test(u) && relative) { - url = path.join(relative, u) - } else { - url = replacePrefix(url) - } - if (url) { - // console.log('[GI]', url) - return await import(url + '?' + instanceVersion) - } - throw '[GI] url is null' -} - -/** - * 引入默认导出 - * @param u - * @param [relative] 相对路径的起始绝对路径 - * @returns {Promise<*>} - * @constructor - */ -export async function GID(u, relative) { - let file = await GI(u, relative) - if (file && file.default) { - return file.default - } - throw '[GID] file no default export' -} - -export function createImport(metaUrl) { - metaUrl = path.dirname(metaUrl) - return { - GI: (u) => GI(u, metaUrl), - GID: (u) => GID(u, metaUrl), - } -} - -function replacePrefix(url) { - if (!url) { - return '' - } - for (const prefix of pathPrefix) { - if (prefix.reg.test(url)) { - url = url.replace(prefix.reg, prefix.real + '/') - // 判断是否是windows系统 - if (os.platform() === 'win32') { - url = 'file:///' + url - } - break - } - } - return url -} diff --git a/Yunzai/plugins/Guoba-Plugin/utils/hotLoad.js b/Yunzai/plugins/Guoba-Plugin/utils/hotLoad.js deleted file mode 100644 index 6e6a71f38bce7822654b602d90f363c0fbb02af6..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/hotLoad.js +++ /dev/null @@ -1,44 +0,0 @@ -import lodash from 'lodash' -import chokidar from 'chokidar' - -const hotLoadMap = new Map() - -/** - * 热加载 - * @param paths 路径 - * @param options 选项 - * @param options.filter - * @param options.handler - * @param options.wait 防抖时间, 0 = 不防抖 - * @param options.watchOptions 监听选项 - * @returns {*} - */ -export function createHotLoad(paths, options) { - let {wait = 100, immediate = false, watchOptions} = options - let id = lodash.uniqueId('guoba-hot-load-') - let handler = wait === 0 ? watchHandler : lodash.debounce(watchHandler, wait) - let bindHandler = handler.bind(options) - if (immediate) watchHandler.call(options, 'immediate', paths) - let watcher = chokidar.watch(paths, watchOptions).on('all', bindHandler) - hotLoadMap.set(id, {watcher}) - return { - id, - destroy: destroyHotLoad.bind(null, id), - } -} - -// 取消热加载 -function destroyHotLoad(id) { - let instance = hotLoadMap.get(id) - if (instance) { - instance.watcher.close() - hotLoadMap.delete(id) - } -} - -function watchHandler(eventName, path, stats) { - if (this.filter && !this.filter(eventName, path, stats)) { - return - } - this.handler(eventName, path, stats) -} diff --git a/Yunzai/plugins/Guoba-Plugin/utils/package.js b/Yunzai/plugins/Guoba-Plugin/utils/package.js deleted file mode 100644 index 0ef72a857c55c46611203e0da48e9e23885713d7..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/package.js +++ /dev/null @@ -1,16 +0,0 @@ -import fs from 'fs' -import path from 'path' - -// 三种获取插件名的方式 -// console.log('pluginName 1:', path.basename(path.join(import.meta.url, '../../'))) -// console.log('pluginName 2:', import.meta.url.match(/[\/\\](GUOBA-PLUGIN)[\/\\]/i)[1]) -// console.log('pluginName 3:', path.basename(path.dirname(path.dirname(import.meta.url)))) - -/** Guoba实际所在的目录名 */ -export const pluginName = path.basename(path.join(import.meta.url, '../../')) - -export const yunzaiPackage = JSON.parse(fs.readFileSync('./package.json', 'utf8')) -export const pluginPackage = JSON.parse(fs.readFileSync(`./plugins/${pluginName}/package.json`, 'utf8')) - -/** Guoba当前版本 */ -export const _version = pluginPackage.version \ No newline at end of file diff --git a/Yunzai/plugins/Guoba-Plugin/utils/paths.js b/Yunzai/plugins/Guoba-Plugin/utils/paths.js deleted file mode 100644 index 361bb31ff0ef9e7b96fad175556a60f58c2c4b9a..0000000000000000000000000000000000000000 --- a/Yunzai/plugins/Guoba-Plugin/utils/paths.js +++ /dev/null @@ -1,27 +0,0 @@ -import path from 'path' -import {pluginName} from './package.js' - -const _path = process.cwd() -export const _paths = initPaths() - -function initPaths() { - // BotData目录 - const data = path.join(_path, 'data') - // Bot资源目录 - const resources = path.join(_path, 'resources') - // Guoba插件根目录 - const pluginRoot = path.join(_path, 'plugins', pluginName) - // Guoba静态资源路径 - const staticPath = path.join(pluginRoot, 'server/static') - // 插件资源目录 - const pluginResources = path.join(pluginRoot, 'resources') - return { - // Bot根目录 - root: _path, - data, - resources, - pluginRoot, - staticPath, - pluginResources, - } -}