aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich Beckmann <friedrich.beckmann@gmx.de>2025-04-02 12:09:27 +0200
committerFriedrich Beckmann <friedrich.beckmann@gmx.de>2025-04-02 12:09:27 +0200
commit9db92ff5476cb3599b71eb253fe6705a76dc1641 (patch)
tree2607e4353b08cd33e38852a2688c620b8d429c9c
first
-rw-r--r--.gitignore1
-rw-r--r--LICENSE710
-rw-r--r--README.md3
-rw-r--r--calendar/event-calendar.min.css1
-rw-r--r--calendar/event-calendar.min.js6
-rw-r--r--calendar/index.html111
6 files changed, 832 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..496ee2c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+.DS_Store \ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..302f7d3
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,710 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+
+Files:
+ *
+Copyright: 2025, Friedrich Beckmann <friedrich.beckmann@tha.de>
+License: GPL-3.0-or-later
+
+Files:
+ calendar/event-calendar*
+Copyright: 2025, vkurko <2vkurko@gmail.com>
+Source: https://github.com/vkurko/calendar
+License: MIT
+
+License: GPL-3.0-or-later
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
+ 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.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ 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 <https://www.gnu.org/licenses/>.
+
+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:
+
+ <program> Copyright (C) <year> <name of author>
+ 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
+<https://www.gnu.org/licenses/>.
+
+ 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
+<https://www.gnu.org/licenses/why-not-lgpl.html>.
+
+
+License: MIT
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE. \ No newline at end of file
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..c33c2a0
--- /dev/null
+++ b/README.md
@@ -0,0 +1,3 @@
+#### kasulu ####
+
+Choose your lectures and check the timetable \ No newline at end of file
diff --git a/calendar/event-calendar.min.css b/calendar/event-calendar.min.css
new file mode 100644
index 0000000..65a2197
--- /dev/null
+++ b/calendar/event-calendar.min.css
@@ -0,0 +1 @@
+.ec{color-scheme:light;--ec-h:0;--ec-s:0%;--ec-l-300:91.00%;--ec-l-500:83.50%;--ec-l-600:78.40%;--ec-l-700:71.40%;--ec-bg-fallback-color:#fff;--ec-hs:var(--ec-h),var(--ec-s);--ec-color-300:hsl(var(--ec-hs),var(--ec-l-300));--ec-color-500:hsl(var(--ec-hs),var(--ec-l-500));--ec-color-600:hsl(var(--ec-hs),var(--ec-l-600));--ec-color-700:hsl(var(--ec-hs),var(--ec-l-700));--ec-border-color:var(--ec-color-500);--ec-accent-color:var(--ec-color-600);--ec-button-bg-color:var(--ec-bg-color);--ec-button-border-color:var(--ec-color-600);--ec-button-text-color:var(--ec-text-color);--ec-button-active-bg-color:var(--ec-color-300);--ec-button-active-border-color:var(--ec-color-700);--ec-button-active-text-color:var(--ec-button-text-color);--ec-event-bg-color:#039be5;--ec-event-text-color:#fff;--ec-bg-event-color:var(--ec-color-500);--ec-bg-event-opacity:0.3;--ec-list-day-bg-color:var(--ec-bg-color,var(--ec-bg-fallback-color));--ec-today-bg-color:rgba(255,220,40,.15);--ec-highlight-color:rgba(188,232,241,.3);--ec-popup-bg-color:var(--ec-bg-color,var(--ec-bg-fallback-color));--ec-now-indicator-color:#ea4335}.ec-dark .ec{color-scheme:dark;--ec-h:215;--ec-s:15%;--ec-l-300:25.50%;--ec-l-500:42.40%;--ec-l-600:49.80%;--ec-l-700:57.30%;--ec-bg-fallback-color:#22272e}@media(prefers-color-scheme:dark){.ec-auto-dark .ec{color-scheme:dark;--ec-h:215;--ec-s:15%;--ec-l-300:25.50%;--ec-l-500:42.40%;--ec-l-600:49.80%;--ec-l-700:57.30%;--ec-bg-fallback-color:#22272e}}.ec-timeline .ec-container{display:flex;flex:1 1 0%;min-height:0}.ec-timeline .ec-main{display:flex;flex-direction:column;min-width:0}.ec-timeline .ec-content{flex-direction:column}.ec-timeline .ec-body{flex:1 1 auto;overflow:auto}.ec-timeline .ec-body .ec-content{min-height:100%;min-width:-moz-max-content;min-width:max-content;position:relative}.ec-timeline .ec-body .ec-days{flex-shrink:0}.ec-timeline .ec-body .ec-days:not(:last-child){flex-grow:0}.ec-timeline .ec-header{overflow:hidden}.ec-timeline .ec-header .ec-days{min-width:-moz-max-content;min-width:max-content}.ec-timeline .ec-header .ec-day{display:flex;flex-basis:auto;flex-direction:column}.ec-timeline .ec-day,.ec-timeline .ec-header .ec-day:first-child .ec-day-head,.ec-timeline .ec-header .ec-day:first-child .ec-time:first-child{border:none}.ec-timeline .ec-day-head{border-style:none none none solid}.ec-timeline .ec-times{border-top:1px solid var(--ec-border-color);display:flex}.ec-timeline .ec-time{border-left:1px solid var(--ec-border-color);box-sizing:border-box;font-size:.95em;min-height:24px;overflow:hidden;text-overflow:ellipsis}.ec-timeline .ec-line,.ec-timeline .ec-time{width:72px}.ec-timeline .ec-events{height:100%;margin:0;position:relative}.ec-timeline .ec-event{position:absolute}.ec-timeline .ec-bg-event{height:100%;z-index:auto}.ec-timeline .ec-lines{display:flex}.ec-timeline .ec-line:not(:first-child):after{border-left:1px solid var(--ec-border-color);content:"";height:100%;pointer-events:none;position:absolute}.ec-timeline .ec-sidebar{border-right-style:solid;border:1px solid var(--ec-border-color);border-right:1px var(--ec-border-color);padding:0}.ec-timeline .ec-sidebar .ec-sidebar-title{border-bottom:1px solid var(--ec-border-color);box-sizing:initial;flex-shrink:0}.ec-timeline .ec-sidebar .ec-content{flex:1;overflow:hidden}.ec-timeline .ec-sidebar .ec-resource{flex-shrink:0;padding:0 8px}.ec-timeline .ec-sidebar .ec-resource:not(:last-child){border-bottom:1px solid var(--ec-border-color);flex-grow:0}.ec-timeline .ec-sidebar .ec-resource:last-child{flex-basis:100%!important}.ec-timeline .ec-sidebar .ec-resource span{padding-top:8px}.ec-time-grid .ec-body .ec-event{position:absolute}.ec-time-grid .ec-body .ec-event-title{position:sticky;top:0}.ec-time-grid .ec-body .ec-resizer{bottom:0;cursor:ns-resize;height:50%;left:0;max-height:8px;right:0}.ec-time-grid .ec-body .ec-resizer.ec-start{bottom:auto;top:0}.ec-time-grid .ec-bg-event{width:100%;z-index:1}.ec-time-grid .ec-time{line-height:24px;position:relative;text-align:right;top:-12px}.ec-time-grid .ec-all-day .ec-time,.ec-time-grid .ec-header .ec-time{height:0;overflow-y:hidden;visibility:hidden}.ec-time-grid .ec-line,.ec-time-grid .ec-time{height:24px}.ec-time-grid .ec-lines{width:8px}.ec-time-grid .ec-line:not(:first-child):after{border-bottom:1px solid var(--ec-border-color);content:"";pointer-events:none;position:absolute;width:100%}.ec-time-grid .ec-body:not(.ec-compact) .ec-line:nth-child(2n):after{border-bottom-style:dotted}.ec-time-grid .ec-sidebar-title{height:0;overflow-y:hidden;text-align:right;visibility:hidden}.ec-time-grid .ec-all-day .ec-sidebar-title{height:auto;padding:8px 0;visibility:visible}.ec-day-grid .ec-body{flex:1 1 auto}.ec-day-grid .ec-body .ec-day{min-height:5em;position:relative}.ec-day-grid .ec-content{flex-direction:column;height:100%}.ec-day-grid .ec-uniform .ec-content{overflow:hidden}.ec-day-grid .ec-uniform .ec-days{flex:1 1 0%;min-height:0}.ec-day-grid .ec-uniform .ec-day{min-height:0}.ec-day-grid .ec-day:first-child{border-left:none}.ec-day-grid .ec-day-head{border:none;display:flex;flex-direction:row-reverse;justify-content:space-between;padding:4px 4px 3px}.ec-day-grid .ec-day-foot{bottom:0;font-size:.85em;padding:2px;position:absolute}.ec-day-grid .ec-day-foot a{cursor:pointer}.ec-day,.ec-days,.ec-resource{flex:1 1 0;max-width:100%;min-width:0}.ec{background-color:var(--ec-bg-color);color:var(--ec-text-color);display:flex;flex-direction:column;-webkit-tap-highlight-color:rgba(0,0,0,0)}.ec ::-webkit-scrollbar{background-color:transparent}.ec ::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:var(--ec-border-color);border:4px solid transparent;border-radius:8px;box-shadow:none;min-height:40px}.ec :hover::-webkit-scrollbar-thumb{background-color:var(--ec-accent-color)}.ec-hidden-scroll{display:none;flex-shrink:0;overflow-y:scroll;visibility:hidden}.ec-with-scroll .ec-hidden-scroll{display:block}.ec-toolbar{align-items:center;display:flex;flex:0 0 auto;justify-content:space-between;margin-bottom:1em}.ec-toolbar>*{margin-bottom:-.5em}.ec-toolbar>*>*{margin-bottom:.5em}.ec-toolbar>*>:not(:last-child){margin-right:.75em}.ec-title{margin:0}.ec-button{background-color:var(--ec-button-bg-color);border:1px solid var(--ec-button-border-color);border-radius:.25rem;font-size:1rem;line-height:1.5;padding:.375rem .75rem}.ec-button:not(:disabled){color:var(--ec-button-text-color);cursor:pointer}.ec-button.ec-active,.ec-button:not(:disabled):hover{background-color:var(--ec-button-active-bg-color);border-color:var(--ec-button-active-border-color);color:var(--ec-button-active-text-color);z-index:1}.ec-expander{margin-right:.25em;width:1.25em}.ec-expander .ec-button{aspect-ratio:1;height:1.25em;line-height:normal;padding:0}.ec-button-group{display:inline-flex}.ec-button-group .ec-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.ec-button-group .ec-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.ec-icon{display:inline-block;width:1em}.ec-icon.ec-next:after,.ec-icon.ec-prev:after{border-right:2px solid;border-top:2px solid;content:"";display:inline-block;height:.5em;position:relative;width:.5em}.ec-icon.ec-prev:after{transform:rotate(-135deg) translate(-2px,2px)}.ec-icon.ec-next:after{transform:rotate(45deg) translate(-2px,2px)}.ec-all-day,.ec-body,.ec-day,.ec-day-head,.ec-days,.ec-header{border:1px solid var(--ec-border-color)}.ec-header{display:flex;flex-shrink:0}.ec-header .ec-resource{flex-direction:column}.ec-header .ec-resource .ec-days{border-top-style:solid}.ec-header .ec-days{border-bottom:none}.ec-header .ec-day{line-height:24px;min-height:24px;overflow:hidden;text-align:center;text-overflow:ellipsis}.ec-all-day{border-top:none;flex-shrink:0}.ec-all-day .ec-days{border-bottom:none}.ec-all-day .ec-day{padding-bottom:4px;position:relative}.ec-body{overflow-x:hidden;overflow-y:auto;position:relative}.ec:not(.ec-list) .ec-body{border-top:none}.ec-sidebar{flex:0 0 auto;flex-direction:column;max-width:100%;padding:0 4px 0 8px;width:auto}.ec-content,.ec-sidebar{display:flex}.ec-list .ec-content{flex-direction:column}.ec-days,.ec-resource{display:flex}.ec-days{border-style:none none solid}.ec-days:last-child{border-bottom:none}.ec-day-grid .ec-days,.ec-resource .ec-days{flex:1 0 auto}.ec-day{border-style:none none none solid}.ec-day.ec-today{background-color:var(--ec-today-bg-color)}.ec-day.ec-highlight{background-color:var(--ec-highlight-color)}.ec-day.ec-disabled{position:relative}.ec-day.ec-disabled:after{background-color:var(--ec-bg-event-color);content:"";inset:0 0 0 0;opacity:.3;position:absolute}.ec-day.ec-other-month .ec-day-head time{opacity:.3}.ec-list .ec-day{border:none}.ec-list .ec-day-head{background-color:var(--ec-list-day-bg-color);border-style:solid none;margin:-1px 0 0;padding:8px 14px;position:sticky;top:0;z-index:2}.ec-list .ec-day:first-child .ec-day-head{border-top:none}.ec-list .ec-day-side{float:right}.ec-list .ec-no-events{padding:5em 0;text-align:center}.ec-events{margin:0 6px 0 0}.ec-events.ec-preview,.ec-time-grid .ec-events{position:relative}.ec-all-day .ec-events,.ec-day-grid .ec-events{display:flow-root}.ec-event{background-color:var(--ec-event-bg-color);border-radius:3px;box-shadow:0 0 1px 0 var(--ec-border-color);box-sizing:border-box;color:var(--ec-event-text-color);display:flex;font-size:.85em;line-height:1.5;padding:2px;z-index:1}.ec-all-day .ec-event,.ec-day-grid .ec-event{position:relative}.ec-list .ec-event{background-color:transparent;border-radius:0;color:inherit;flex-direction:row;padding:8px 14px}.ec-event.ec-preview{opacity:.8;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%;z-index:1000}.ec-event.ec-pointer{box-shadow:none;color:inherit;display:flex;pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:0}.ec-event-body{display:flex;flex-direction:column;width:100%}.ec-all-day .ec-event-body,.ec-day-grid .ec-event-body,.ec-timeline .ec-event-body{flex-direction:row}.ec-event-tag{border-radius:2px;margin-right:8px;width:4px}.ec-event-time{flex-shrink:0;margin:0 0 1px;max-height:100%;overflow:hidden;white-space:nowrap}.ec-day-grid .ec-event-time,.ec-timeline .ec-event-time{margin:0 3px 0 0;max-width:100%;text-overflow:ellipsis}.ec-event-title{font-weight:inherit;margin:unset;overflow:hidden}.ec-all-day .ec-event-title,.ec-day-grid .ec-event-title,.ec-timeline .ec-event-title{min-height:1.5em;text-overflow:ellipsis;white-space:nowrap}.ec-list .ec-event-title{font-size:1rem}.ec-draggable{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ec-ghost{opacity:.5;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ec-bg-events{position:relative}.ec-all-day .ec-bg-events,.ec-day-grid .ec-bg-events{inset:0;position:absolute}.ec-bg-event{background-color:var(--ec-bg-event-color);opacity:var(--ec-bg-event-opacity);position:absolute}.ec-all-day .ec-bg-event,.ec-day-grid .ec-bg-event{height:100%;z-index:auto}.ec-time{white-space:nowrap}.ec-popup{background-color:var(--ec-popup-bg-color);border:1px solid var(--ec-border-color);border-radius:6px;box-shadow:0 1px 3px 0 hsla(var(--ec-hs),50%,.15),0 4px 8px 3px hsla(var(--ec-hs),50%,.15);display:flex;flex-direction:column;min-width:180px;outline:1px solid transparent;padding:8px 10px 14px;position:absolute;top:0;width:110%;z-index:1010}.ec-popup .ec-day-head{display:flex;justify-content:space-between;text-align:left}.ec-popup .ec-day-head a{cursor:pointer;font-size:1.5em;line-height:.8}.ec-popup .ec-events{margin:0;min-height:0;overflow:auto}.ec-extra{height:100%;margin-left:-6.5px;overflow:hidden;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ec-now-indicator{border-top:2px solid var(--ec-now-indicator-color);pointer-events:none;position:absolute;width:100%;z-index:1005}.ec-now-indicator:before{background:var(--ec-now-indicator-color);border-radius:50%;content:"";height:12px;margin-top:-7px;pointer-events:none;position:absolute;width:12px}.ec-resizer{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ec-all-day .ec-resizer,.ec-day-grid .ec-resizer,.ec-timeline .ec-resizer{bottom:0;cursor:ew-resize;max-width:8px;right:0;top:0;width:50%}.ec-all-day .ec-resizer.ec-start,.ec-day-grid .ec-resizer.ec-start,.ec-timeline .ec-resizer.ec-start{left:0;right:auto}.ec-dragging,.ec-dragging *{cursor:pointer!important}.ec-resizing-y,.ec-resizing-y *{cursor:ns-resize!important}.ec-resizing-x,.ec-resizing-x *{cursor:ew-resize!important} \ No newline at end of file
diff --git a/calendar/event-calendar.min.js b/calendar/event-calendar.min.js
new file mode 100644
index 0000000..df18f4b
--- /dev/null
+++ b/calendar/event-calendar.min.js
@@ -0,0 +1,6 @@
+/*!
+EventCalendar v3.12.0
+https://github.com/vkurko/calendar
+*/
+var EventCalendar=function(){"use strict";function t(){}function e(t){return t()}function n(){return Object.create(null)}function r(t){t.forEach(e)}function l(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function i(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),l=1;l<n;l++)r[l-1]=arguments[l];if(null==e){for(const t of r)t(void 0);return t}const o=e.subscribe(...r);return o.unsubscribe?()=>o.unsubscribe():o}function s(t){let e;return i(t,(t=>e=t))(),e}function a(t,e,n){t.$$.on_destroy.push(i(e,n))}function c(t,e,n,r){if(t){const l=u(t,e,n,r);return t[0](l)}}function u(t,e,n,r){return t[1]&&r?function(t,e){for(const n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](r(e))):n.ctx}function d(t,e,n,r){if(t[2]&&r){const l=t[2](r(n));if(void 0===e.dirty)return l;if("object"==typeof l){const t=[],n=Math.max(e.dirty.length,l.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|l[r];return t}return e.dirty|l}return e.dirty}function f(t,e,n,r,l,o){if(l){const i=u(e,n,r,o);t.p(i,l)}}function h(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}function m(t,e,n){return t.set(n),e}function p(e){return e&&l(e.destroy)?e.destroy:t}const $="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function g(t,e){t.appendChild(e)}function v(t,e,n){t.insertBefore(e,n||null)}function y(t){t.parentNode&&t.parentNode.removeChild(t)}function w(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function b(t){return document.createElement(t)}function k(t){return document.createTextNode(t)}function x(){return k(" ")}function C(){return k("")}function _(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function D(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function T(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function E(t,e){e=""+e,t.data!==e&&(t.data=e)}function S(t,e,n,r){null==n?t.style.removeProperty(e):t.style.setProperty(e,n,"")}function M(t,e){return new t(e)}let U;function N(t){U=t}function L(){if(!U)throw new Error("Function called outside component initialization");return U}function R(t){L().$$.on_mount.push(t)}function z(t){L().$$.after_update.push(t)}function H(){const t=L();return function(e,n){let{cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const l=t.$$.callbacks[e];if(l){const o=function(t,e){let{bubbles:n=!1,cancelable:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new CustomEvent(t,{detail:e,bubbles:n,cancelable:r})}(e,n,{cancelable:r});return l.slice().forEach((e=>{e.call(t,o)})),!o.defaultPrevented}return!0}}function B(t){return L().$$.context.get(t)}function F(t,e){const n=t.$$.callbacks[e.type];n&&n.slice().forEach((t=>t.call(this,e)))}const A=[],P=[];let I=[];const j=[],W=Promise.resolve();let O=!1;function G(){O||(O=!0,W.then(J))}function Y(){return G(),W}function q(t){I.push(t)}const X=new Set;let V=0;function J(){if(0!==V)return;const t=U;do{try{for(;V<A.length;){const t=A[V];V++,N(t),K(t.$$)}}catch(t){throw A.length=0,V=0,t}for(N(null),A.length=0,V=0;P.length;)P.pop()();for(let t=0;t<I.length;t+=1){const e=I[t];X.has(e)||(X.add(e),e())}I.length=0}while(A.length);for(;j.length;)j.pop()();O=!1,X.clear(),N(t)}function K(t){if(null!==t.fragment){t.update(),r(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(q)}}const Q=new Set;let Z;function tt(){Z={r:0,c:[],p:Z}}function et(){Z.r||r(Z.c),Z=Z.p}function nt(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function rt(t,e,n,r){if(t&&t.o){if(Q.has(t))return;Q.add(t),Z.c.push((()=>{Q.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}else r&&r()}function lt(t){return void 0!==t?.length?t:Array.from(t)}function ot(t,e){rt(t,1,1,(()=>{e.delete(t.key)}))}function it(t,e,n,l,o,i,s,a,c,u,d,f){let h=t.length,m=i.length,p=h;const $={};for(;p--;)$[t[p].key]=p;const g=[],v=new Map,y=new Map,w=[];for(p=m;p--;){const t=f(o,i,p),r=n(t);let l=s.get(r);l?w.push((()=>l.p(t,e))):(l=u(r,t),l.c()),v.set(r,g[p]=l),r in $&&y.set(r,Math.abs(p-$[r]))}const b=new Set,k=new Set;function x(t){nt(t,1),t.m(a,d),s.set(t.key,t),d=t.first,m--}for(;h&&m;){const e=g[m-1],n=t[h-1],r=e.key,l=n.key;e===n?(d=e.first,h--,m--):v.has(l)?!s.has(r)||b.has(r)?x(e):k.has(l)?h--:y.get(r)>y.get(l)?(k.add(r),x(e)):(b.add(l),h--):(c(n,s),h--)}for(;h--;){const e=t[h];v.has(e.key)||c(e,s)}for(;m;)x(g[m-1]);return r(w),g}function st(t){t&&t.c()}function at(t,n,o){const{fragment:i,after_update:s}=t.$$;i&&i.m(n,o),q((()=>{const n=t.$$.on_mount.map(e).filter(l);t.$$.on_destroy?t.$$.on_destroy.push(...n):r(n),t.$$.on_mount=[]})),s.forEach(q)}function ct(t,e){const n=t.$$;null!==n.fragment&&(!function(t){const e=[],n=[];I.forEach((r=>-1===t.indexOf(r)?e.push(r):n.push(r))),n.forEach((t=>t())),I=e}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ut(e,l,o,i,s,a){let c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=U;N(e);const f=e.$$={fragment:null,ctx:[],props:a,update:t,not_equal:s,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l.context||(d?d.$$.context:[])),callbacks:n(),dirty:u,skip_bound:!1,root:l.target||d.$$.root};c&&c(f.root);let h=!1;if(f.ctx=o?o(e,l.props||{},(function(t,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&s(f.ctx[t],f.ctx[t]=r)&&(!f.skip_bound&&f.bound[t]&&f.bound[t](r),h&&function(t,e){-1===t.$$.dirty[0]&&(A.push(t),G(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(e,t)),n})):[],f.update(),h=!0,r(f.before_update),f.fragment=!!i&&i(f.ctx),l.target){if(l.hydrate){const t=function(t){return Array.from(t.childNodes)}(l.target);f.fragment&&f.fragment.l(t),t.forEach(y)}else f.fragment&&f.fragment.c();l.intro&&nt(e.$$.fragment),at(e,l.target,l.anchor),J()}N(d)}class dt{$$=void 0;$$set=void 0;$destroy(){ct(this,1),this.$destroy=t}$on(e,n){if(!l(n))return t;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ft=[];function ht(t,e){return{subscribe:mt(t,e).subscribe}}function mt(e){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;const l=new Set;function i(t){if(o(e,t)&&(e=t,n)){const t=!ft.length;for(const t of l)t[1](),ft.push(t,e);if(t){for(let t=0;t<ft.length;t+=2)ft[t][0](ft[t+1]);ft.length=0}}}function s(t){i(t(e))}return{set:i,update:s,subscribe:function(o){const a=[o,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t];return l.add(a),1===l.size&&(n=r(i,s)||t),o(e),()=>{l.delete(a),0===l.size&&n&&(n(),n=null)}}}}function pt(e,n,o){const s=!Array.isArray(e),a=s?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const c=n.length<2;return ht(o,((e,o)=>{let u=!1;const d=[];let f=0,h=t;const m=()=>{if(f)return;h();const r=n(s?d[0]:d,e,o);c?e(r):h=l(r)?r:t},p=a.map(((t,e)=>i(t,(t=>{d[e]=t,f&=~(1<<e),u&&m()}),(()=>{f|=1<<e}))));return u=!0,m(),function(){r(p),h(),u=!1}}))}function $t(t){return function(e){return"Enter"===e.key||" "===e.key&&!e.preventDefault()?t.call(this,e):void 0}}function gt(t,e){let n={update(e){"string"==typeof e?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}};return n.update(e),n}function vt(t,e){const n=n=>{t&&!t.contains(n.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:n}}))};return document.addEventListener(e,n,!0),{destroy(){document.removeEventListener(e,n,!0)}}}const yt=86400;function wt(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return void 0!==t?t instanceof Date?Bt(t):function(t){const e=t.match(/\d+/g);return new Date(Date.UTC(Number(e[0]),Number(e[1])-1,Number(e[2]),Number(e[3]||0),Number(e[4]||0),Number(e[5]||0)))}(t):Bt(new Date)}function bt(t){if("number"==typeof t)t={seconds:t};else if("string"==typeof t){let e=0,n=2;for(let r of t.split(":",3))e+=parseInt(r,10)*Math.pow(60,n--);t={seconds:e}}else t instanceof Date&&(t={hours:t.getUTCHours(),minutes:t.getUTCMinutes(),seconds:t.getUTCSeconds()});let e=t.weeks||t.week||0;return{years:t.years||t.year||0,months:t.months||t.month||0,days:7*e+(t.days||t.day||0),seconds:60*(t.hours||t.hour||0)*60+60*(t.minutes||t.minute||0)+(t.seconds||t.second||0),inWeeks:!!e}}function kt(t){return new Date(t.getTime())}function xt(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t.setUTCFullYear(t.getUTCFullYear()+n*e.years);let r=t.getUTCMonth()+n*e.months;for(t.setUTCMonth(r),r%=12,r<0&&(r+=12);t.getUTCMonth()!==r;)Dt(t);return t.setUTCDate(t.getUTCDate()+n*e.days),t.setUTCSeconds(t.getUTCSeconds()+n*e.seconds),t}function Ct(t,e){return xt(t,e,-(arguments.length>2&&void 0!==arguments[2]?arguments[2]:1))}function _t(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.setUTCDate(t.getUTCDate()+e),t}function Dt(t){return _t(t,-(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1))}function Tt(t){return t.setUTCHours(0,0,0,0),t}function Et(t){return new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds())}function St(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:19;return t.toISOString().substring(0,e)}function Mt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.every((e=>t.getTime()===e.getTime()))}function Ut(t,e){let n=e-t.getUTCDay();return t.setUTCDate(t.getUTCDate()+(n<=0?n:n-7)),t}function Nt(t){return"string"==typeof t&&t.length<=10}function Lt(t,e){return t.setUTCHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),0),t}function Rt(t){return t.seconds}function zt(t,e){return xt(t,e),t}function Ht(t,e,n){if(Ct(t,e),n.length&&n.length<7)for(;n.includes(t.getUTCDay());)Dt(t);return t}function Bt(t){return new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))}function Ft(){return Object.assign(...arguments)}function At(t){return Object.keys(t)}function Pt(t){return Math.floor(t)}function It(t){return Math.ceil(t)}function jt(){return Math.min(...arguments)}function Wt(){return Math.max(...arguments)}function Ot(t){return Array.isArray(t)}function Gt(t){return"function"==typeof t}function Yt(t){return t()}function qt(t){t.forEach(Yt)}function Xt(){}const Vt=t=>t;function Jt(t,e,n){n.update((n=>n.set(e,t)))}function Kt(t){qt(t),t.clear()}function Qt(t,e,n){e??=t,n.has(e)||n.set(e,setTimeout((()=>{n.delete(e),t()})))}let Zt=Symbol("ec");function te(t,e){t[Zt]=e}function ee(t){return t[Zt]}function ne(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],l=document.createElement(t);l.className=e,"string"==typeof n?l.innerText=n:n.domNodes?l.replaceChildren(...n.domNodes):n.html&&(l.innerHTML=n.html);for(let t of r)l.setAttribute(...t);return l}function re(t){return t.getBoundingClientRect()}function le(t,e){for(;e--;)t=t.parentElement;return t}function oe(t){return re(t).height}function ie(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;for(let l of n.elementsFromPoint(t,e)){if(r=l,r?.[Zt])return l;if(l.shadowRoot){let n=ie(t,e,l.shadowRoot);if(n)return n}}var r;return null}function se(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function ae(t){return(t=Ft({},t)).currentStart=Et(t.currentStart),t.currentEnd=Et(t.currentEnd),t.activeStart=Et(t.activeStart),t.activeEnd=Et(t.activeEnd),t}function ce(t){return t.startsWith("list")}function ue(t){return t.includes("Timeline")}let de=1;function fe(t){return t.map((t=>{let e={id:"id"in t?String(t.id):`{generated-${de++}}`,resourceIds:he(t,"resourceId").map(String),allDay:t.allDay??(Nt(t.start)&&Nt(t.end)),start:wt(t.start),end:wt(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:he(t,"className"),styles:he(t,"style")};if(e.allDay){Tt(e.start);let t=kt(e.end);Tt(e.end),Mt(e.end,t)&&!Mt(e.end,e.start)||_t(e.end)}return e}))}function he(t,e){let n=t[e+"s"]??t[e]??[];return Ot(n)?n:[n]}function me(t){return t.map((t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}})))}function pe(t,e,n){let r={start:t.start>e?t.start:e,end:t.end<n?t.end:n,event:t};return r.zeroDuration=Mt(r.start,r.end),r}function $e(t){t.sort(((t,e)=>t.start-e.start||e.event.allDay-t.event.allDay))}function ge(t,e,n,r,l,o){let i,s=l.formatRange(t.start,e&&"pointer"!==t.event.display&&!t.zeroDuration?Lt(kt(t.start),t.end):t.start);if(n&&(i=Gt(n)?n({event:we(t.event),timeText:s,view:ae(o)}):n),void 0===i){let e;switch(t.event.display){case"background":e=[];break;case"pointer":e=[ve(s,t,r)];break;default:e=[...t.event.allDay?[]:[ve(s,t,r)],ne("h4",r.eventTitle,t.event.title)]}i={domNodes:e}}return[s,i]}function ve(t,e,n){return ne("time",n.eventTime,t,[["datetime",St(e.start)]])}function ye(t,e,n){let r=e.classNames;return t&&(Gt(t)&&(t=t({event:we(e),view:ae(n)})),r=[...Ot(t)?t:[t],...r]),r}function we(t){return ke(t,Et)}function be(t){return ke(t,kt)}function ke(t,e){return(t=Ft({},t)).start=e(t.start),t.end=e(t.end),t}function xe(t,e){let n={};if(t.length){let r;$e(t);for(let l of t){let t=[],o=Tt(kt(l.start));for(;l.end>o;){if(!e.includes(o.getUTCDay())&&(t.push(kt(o)),t.length>1)){let t=o.getTime();n[t]?n[t].chunks.push(l):n[t]={sorted:!1,chunks:[l]}}_t(o)}if(t.length){l.date=t[0],l.days=t.length,l.dates=t,l.start<t[0]&&(l.start=t[0]);let e=_t(kt(t.at(-1)));l.end>e&&(l.end=e)}else l.date=Tt(kt(l.start)),l.days=1,l.dates=[l.date];r&&Mt(r.date,l.date)&&(l.prev=r),r=l}}return n}function Ce(t,e,n){t.top=0,t.prev&&(t.top=t.prev.bottom+1),t.bottom=t.top+n;let r=1,l=t.date.getTime();if(e[l]){e[l].sorted||(e[l].chunks.sort(((t,e)=>t.top-e.top)),e[l].sorted=!0);for(let n of e[l].chunks)if(t.top<n.bottom&&t.bottom>n.top){let e=n.bottom-t.top+1;r+=e,t.top+=e,t.bottom+=e}}return r}function _e(t,e){t.length=e.length;let n=[];for(let e of t)n.push(e?.reposition?.());return n}function De(t,e,n,r){return t.start<n&&t.end>e&&(!r||(Ot(r)||(r=[r]),r.some((e=>t.resourceIds.includes(e.id)))))}function Te(t){return function(t){return"preview"===t}(t)||Se(t)||function(t){return"pointer"===t}(t)}function Ee(t){return"background"===t}function Se(t){return"ghost"===t}function Me(t){return Re(t,"day")}function Ue(t){return Re(t,"week")}function Ne(t){return Re(t,"month")}function Le(t){return Re(t,"year")}function Re(t,e){return{...t,next:"Next "+e,prev:"Previous "+e}}function ze(t){return e=>({...e,view:t})}function He(t){let e,n;return t&&(({start:e,end:n}=t),e&&(e=Tt(wt(e))),n&&(n=Tt(wt(n)))),{start:e,end:n}}function Be(t,e){return e.start&&t<e.start||e.end&&t>e.end}function Fe(t,e){return e.start&&t<e.start&&(t=e.start),e.end&&t>e.end&&(t=e.end),t}function Ae(t){let e=[];return Pe(t,0,e),e}function Pe(t,e,n){let r=[];for(let l of t){let t=Ie(l);r.push(t),n.push(t);let o={level:e,children:[],expanded:!0,hidden:!1};te(t,o),l.children&&(o.children=Pe(l.children,e+1,n))}return r}function Ie(t){return{id:String(t.id),title:t.title||"",eventBackgroundColor:t.eventBackgroundColor,eventTextColor:t.eventTextColor,extendedProps:t.extendedProps??{}}}function je(t,e){return Oe(t,e)?.eventBackgroundColor}function We(t,e){return Oe(t,e)?.eventTextColor}function Oe(t,e){return e.find((e=>t.resourceIds.includes(e.id)))}function Ge(t,e){return pt([t,e],(t=>{let[e,n]=t,r=Gt(n)?{format:n}:new Intl.DateTimeFormat(e,n);return{format:t=>r.format(Et(t))}}))}function Ye(t,e){return pt([t,e],(t=>{let e,[n,r]=t;if(Gt(r))e=r;else{let t=new Intl.DateTimeFormat(n,r);e=(e,n)=>{if(e<=n)return t.formatRange(e,n);{let r=t.formatRangeToParts(n,e),l="",o=["startRange","endRange"],i=[!1,!1];for(let t of r){let e=o.indexOf(t.source);e>=0?i[e]||(l+=qe(o[1-e],r),i[e]=!0):l+=t.value}return l}}}return{formatRange:(t,n)=>e(Et(t),Et(n))}}))}function qe(t,e){let n="";for(let r of e)r.source==t&&(n+=r.value);return n}function Xe(t){return pt([t.resources,t.filterResourcesWithEvents,t._events,t._activeRange],(t=>{let[e,n,r,l]=t,o=e.filter((t=>!ee(t).hidden));return n&&(o=e.filter((t=>{for(let e of r)if("background"!==e.display&&e.resourceIds.includes(t.id)&&e.start<l.end&&e.end>l.start)return!0;return!1}))),o.length||(o=Ae([{}])),o}))}function Ve(t,e,n,r,l){t=kt(t);let o=[],i=kt(t);xt(t,r.min),xt(i,r.max),void 0===n&&(n=e.seconds<3600?bt(2*e.seconds):e);let s,a=n.seconds<=0;for(a||(s=kt(t));t<i;){for(o.push([St(t),l.format(t),a||o.length&&t>=s]);!a&&t>=s;)xt(s,n);xt(t,e)}return o}function Je(t,e,n,r,l){let o=bt(t),i=bt(e);if(n){let t=bt(jt(Rt(o),Wt(0,Rt(i)-yt))),e=bt(Wt(Rt(i),Rt(t)+yt)),s=Gt(n?.eventFilter)?n.eventFilter:t=>!Ee(t.display);t:for(let n of r){let r=xt(kt(n),o),a=xt(kt(n),i),c=xt(kt(n),t),u=xt(kt(n),e);for(let d of l)if(!d.allDay&&s(d)&&d.start<u&&d.end>c){if(d.start<r){let e=Wt((d.start-n)/1e3,Rt(t));e<Rt(o)&&(o.seconds=e)}if(d.end>a){let t=jt((d.end-n)/1e3,Rt(e));t>Rt(i)&&(i.seconds=t)}if(Rt(o)===Rt(t)&&Rt(i)===Rt(e))break t}}}return{min:o,max:i}}class Ke{constructor(t,e){let n=function(t){let e={allDayContent:void 0,allDaySlot:!0,buttonText:{today:"today"},customButtons:{},date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventTextColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventSources:[],eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,filterResourcesWithEvents:!1,firstDay:0,flexibleSlotTimeLimits:!1,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],lazyFetching:!0,loading:void 0,locale:void 0,nowIndicator:!1,resourceLabelContent:void 0,resourceLabelDidMount:void 0,resources:[],selectable:!1,scrollTime:"06:00:00",slotDuration:"00:30:00",slotEventOverlap:!0,slotHeight:24,slotLabelInterval:void 0,slotLabelFormat:{hour:"numeric",minute:"2-digit"},slotMaxTime:"24:00:00",slotMinTime:"00:00:00",slotWidth:72,theme:{allDay:"ec-all-day",active:"ec-active",bgEvent:"ec-bg-event",bgEvents:"ec-bg-events",body:"ec-body",button:"ec-button",buttonGroup:"ec-button-group",calendar:"ec",compact:"ec-compact",content:"ec-content",day:"ec-day",dayHead:"ec-day-head",days:"ec-days",disabled:"ec-disabled",event:"ec-event",eventBody:"ec-event-body",eventTime:"ec-event-time",eventTitle:"ec-event-title",events:"ec-events",extra:"ec-extra",handle:"ec-handle",header:"ec-header",hiddenScroll:"ec-hidden-scroll",highlight:"ec-highlight",icon:"ec-icon",line:"ec-line",lines:"ec-lines",nowIndicator:"ec-now-indicator",otherMonth:"ec-other-month",resource:"ec-resource",sidebar:"ec-sidebar",sidebarTitle:"ec-sidebar-title",today:"ec-today",time:"ec-time",title:"ec-title",toolbar:"ec-toolbar",view:"",weekdays:["ec-sun","ec-mon","ec-tue","ec-wed","ec-thu","ec-fri","ec-sat"],withScroll:"ec-with-scroll"},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let n of t)n.createOptions?.(e);return e}(t=t||[]),r=function(t){let e={date:t=>Tt(wt(t)),duration:bt,events:fe,eventSources:me,hiddenDays:t=>[...new Set(t)],highlightedDates:t=>t.map((t=>Tt(wt(t)))),resources:Ae,scrollTime:bt,slotDuration:bt,slotLabelInterval:t=>void 0!==t?bt(t):void 0,slotMaxTime:bt,slotMinTime:bt,validRange:He};for(let n of t)n.createParsers?.(e);return e}(t);n=Qe(n,r),e=Qe(e,r);for(let[t,e]of Object.entries(n))this[t]=mt(e);this._queue=mt(new Map),this._queue2=mt(new Map),this._tasks=new Map,this._auxiliary=mt([]),this._dayGrid=pt(this.view,(t=>t?.startsWith("dayGrid"))),this._currentRange=function(t){return pt([t.date,t.duration,t.firstDay],(t=>{let e,[n,r,l]=t,o=kt(n);return r.months?o.setUTCDate(1):r.inWeeks&&Ut(o,l),e=xt(kt(o),r),{start:o,end:e}}))}(this),this._activeRange=function(t){return pt([t._currentRange,t.firstDay,t.slotMaxTime,t._dayGrid],(t=>{let[e,n,r,l]=t,o=kt(e.start),i=kt(e.end);if(l)Ut(o,n),function(t,e){let n=e-t.getUTCDay();t.setUTCDate(t.getUTCDate()+(n>=0?n:n+7))}(i,n);else if(r.days||r.seconds>yt){xt(Dt(i),r);let t=Dt(kt(i));t<o&&(o=t)}return{start:o,end:i}}))}(this),this._fetchedRange=mt({start:void 0,end:void 0}),this._events=function(t){let e,n=mt([]),r=0,l={};return pt([t.events,t.eventSources,t._activeRange,t._fetchedRange,t.lazyFetching,t.loading],((n,o)=>Jt((()=>{let[t,l,i,s,a,c]=n;if(l.length){if(!s.start||s.start>i.start||s.end<i.end||!a){e&&e.abort(),e=new AbortController,Gt(c)&&!r&&c(!0);let t=()=>{0==--r&&Gt(c)&&c(!1)},n=[],a=e=>t(),u=e=>{n=n.concat(fe(e)),o(n),t()},d=St(i.start),f=St(i.end);for(let t of l){if(Gt(t.events)){let e=t.events({start:Et(i.start),end:Et(i.end),startStr:d,endStr:f},u,a);void 0!==e&&Promise.resolve(e).then(u,a)}else{let n=Gt(t.extraParams)?t.extraParams():Ft({},t.extraParams);n.start=d,n.end=f,n=new URLSearchParams(n);let r,l=t.url,o={};["GET","HEAD"].includes(t.method)?l+=(l.includes("?")?"&":"?")+n:(o["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",r=String(n)),fetch(l,{method:t.method,headers:o,body:r,signal:e.signal,credentials:"same-origin"}).then((t=>t.json())).then(u).catch(a)}++r}s.start=i.start,s.end=i.end}}else o(t)}),l,t._queue)),[]).subscribe(n.set),n}(this),this._now=ht(wt(),(t=>{let e=setInterval((()=>{t(wt())}),1e3);return()=>clearInterval(e)})),this._today=function(t){return pt(t._now,(t=>Tt(kt(t))))}(this),this._intlEventTime=Ye(this.locale,this.eventTimeFormat),this._intlSlotLabel=Ge(this.locale,this.slotLabelFormat),this._intlDayHeader=Ge(this.locale,this.dayHeaderFormat),this._intlDayHeaderAL=Ge(this.locale,this.dayHeaderAriaLabelFormat),this._intlTitle=Ye(this.locale,this.titleFormat),this._bodyEl=mt(void 0),this._scrollable=mt(!1),this._viewTitle=function(t){return pt([t.date,t._activeRange,t._intlTitle,t._dayGrid],(t=>{let[e,n,r,l]=t;return l?r.formatRange(e,e):r.formatRange(n.start,Dt(kt(n.end)))}))}(this),this._viewDates=function(t){return pt([t._activeRange,t.hiddenDays],(e=>{let[n,r]=e,l=[],o=Tt(kt(n.start)),i=Tt(kt(n.end));for(;o<i;)r.includes(o.getUTCDay())||l.push(kt(o)),_t(o);return!l.length&&r.length&&r.length<7&&(t.date.update((t=>{for(;r.includes(t.getUTCDay());)_t(t);return t})),l=s(t._viewDates)),l}))}(this),this._view=function(t){return pt([t.view,t._viewTitle,t._currentRange,t._activeRange],(t=>function(t,e,n,r){return{type:t,title:e,currentStart:n.start,currentEnd:n.end,activeStart:r.start,activeEnd:r.end,calendar:void 0}}(...t)))}(this),this._viewComponent=mt(void 0),this._interaction=mt({}),this._iEvents=mt([null,null]),this._iClasses=mt(Vt),this._iClass=mt(void 0),this._set=(t,e)=>{en(t,this)&&(r[t]&&(e=r[t](e)),this[t].set(e))},this._get=t=>en(t,this)?s(this[t]):void 0;for(let e of t)e.createStores?.(this);e.view&&this.view.set(e.view);let l=new Set([...At(n.views),...At(e.views??{})]);for(let t of l){let r=Ze(n,n.views[t]??{}),l=Ze(r,e,e.views?.[t]??{}),o=l.component;tn(l,this);for(let t of At(l)){let{set:e,_set:n=e,...o}=this[t];this[t]={set:["buttonText","theme"].includes(t)?o=>{if(Gt(o)){let i=o(r[t]);l[t]=i,e(e===n?i:o)}else l[t]=o,e(o)}:n=>{l[t]=n,e(n)},_set:n,...o}}this.view.subscribe((e=>{if(e===t){this._viewComponent.set(o),Gt(l.viewDidMount)&&Y().then((()=>l.viewDidMount(s(this._view))));for(let t of At(l))this[t]._set(l[t])}}))}}}function Qe(t,e){let n={...t};for(let t of At(e))t in n&&(n[t]=e[t](n[t]));if(t.views){n.views={};for(let r of At(t.views))n.views[r]=Qe(t.views[r],e)}return n}function Ze(){let t={};for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(let e of n){let n={};for(let r of["buttonText","theme"])Gt(e[r])&&(n[r]=e[r](t[r]));t={...t,...e,...n}}return t}function tn(t,e){At(t).filter((t=>!en(t,e)||"view"==t)).forEach((e=>delete t[e]))}function en(t,e){return e.hasOwnProperty(t)&&"_"!==t[0]}function nn(t,e,n){const r=t.slice();return r[34]=e[n],r}function rn(t){let e,n,r,l,o,i=t[7][t[34]]+"";function s(){return t[29](t[34])}return{c(){e=b("button"),n=k(i),T(e,"class",r=t[5].button+(t[9]===t[34]?" "+t[5].active:"")+" ec-"+t[34])},m(t,r){v(t,e,r),g(e,n),l||(o=_(e,"click",s),l=!0)},p(l,o){t=l,129&o[0]&&i!==(i=t[7][t[34]]+"")&&E(n,i),545&o[0]&&r!==(r=t[5].button+(t[9]===t[34]?" "+t[5].active:"")+" ec-"+t[34])&&T(e,"class",r)},d(t){t&&y(e),l=!1,o()}}}function ln(t){let e,n,o,i,s;return{c(){e=b("button"),T(e,"class",n=t[5].button+" ec-"+t[34]+(t[8][t[34]].active?" "+t[5].active:""))},m(n,r){v(n,e,r),i||(s=[_(e,"click",(function(){l(t[8][t[34]].click)&&t[8][t[34]].click.apply(this,arguments)})),p(o=gt.call(null,e,t[8][t[34]].text))],i=!0)},p(r,i){t=r,289&i[0]&&n!==(n=t[5].button+" ec-"+t[34]+(t[8][t[34]].active?" "+t[5].active:""))&&T(e,"class",n),o&&l(o.update)&&257&i[0]&&o.update.call(null,t[8][t[34]].text)},d(t){t&&y(e),i=!1,r(s)}}}function on(t){let e,n,r,l,o,i=t[7][t[34]]+"";return{c(){e=b("button"),n=k(i),T(e,"class",r=t[5].button+" ec-"+t[34]),e.disabled=t[1]},m(r,i){v(r,e,i),g(e,n),l||(o=_(e,"click",t[28]),l=!0)},p(t,l){129&l[0]&&i!==(i=t[7][t[34]]+"")&&E(n,i),33&l[0]&&r!==(r=t[5].button+" ec-"+t[34])&&T(e,"class",r),2&l[0]&&(e.disabled=t[1])},d(t){t&&y(e),l=!1,o()}}}function sn(t){let e,n,r,l,o,i,s,a;return{c(){e=b("button"),n=b("i"),T(n,"class",r=t[5].icon+" ec-"+t[34]),T(e,"class",l=t[5].button+" ec-"+t[34]),T(e,"aria-label",o=t[7].next),T(e,"title",i=t[7].next),e.disabled=t[4]},m(r,l){v(r,e,l),g(e,n),s||(a=_(e,"click",t[23]),s=!0)},p(t,s){33&s[0]&&r!==(r=t[5].icon+" ec-"+t[34])&&T(n,"class",r),33&s[0]&&l!==(l=t[5].button+" ec-"+t[34])&&T(e,"class",l),128&s[0]&&o!==(o=t[7].next)&&T(e,"aria-label",o),128&s[0]&&i!==(i=t[7].next)&&T(e,"title",i),16&s[0]&&(e.disabled=t[4])},d(t){t&&y(e),s=!1,a()}}}function an(t){let e,n,r,l,o,i,s,a;return{c(){e=b("button"),n=b("i"),T(n,"class",r=t[5].icon+" ec-"+t[34]),T(e,"class",l=t[5].button+" ec-"+t[34]),T(e,"aria-label",o=t[7].prev),T(e,"title",i=t[7].prev),e.disabled=t[3]},m(r,l){v(r,e,l),g(e,n),s||(a=_(e,"click",t[22]),s=!0)},p(t,s){33&s[0]&&r!==(r=t[5].icon+" ec-"+t[34])&&T(n,"class",r),33&s[0]&&l!==(l=t[5].button+" ec-"+t[34])&&T(e,"class",l),128&s[0]&&o!==(o=t[7].prev)&&T(e,"aria-label",o),128&s[0]&&i!==(i=t[7].prev)&&T(e,"title",i),8&s[0]&&(e.disabled=t[3])},d(t){t&&y(e),s=!1,a()}}}function cn(t){let e,n,r,o,i;return{c(){e=b("h2"),T(e,"class",n=t[5].title)},m(n,l){v(n,e,l),o||(i=p(r=gt.call(null,e,t[6])),o=!0)},p(t,o){32&o[0]&&n!==(n=t[5].title)&&T(e,"class",n),r&&l(r.update)&&64&o[0]&&r.update.call(null,t[6])},d(t){t&&y(e),o=!1,i()}}}function un(t){let e;function n(t,e){return"title"==t[34]?cn:"prev"==t[34]?an:"next"==t[34]?sn:"today"==t[34]?on:t[8][t[34]]?ln:""!=t[34]?rn:void 0}let r=n(t),l=r&&r(t);return{c(){l&&l.c(),e=C()},m(t,n){l&&l.m(t,n),v(t,e,n)},p(t,o){r===(r=n(t))&&l?l.p(t,o):(l&&l.d(1),l=r&&r(t),l&&(l.c(),l.m(e.parentNode,e)))},d(t){t&&y(e),l&&l.d(t)}}}function dn(e){let n,r=lt(e[0]),l=[];for(let t=0;t<r.length;t+=1)l[t]=un(nn(e,r,t));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();n=C()},m(t,e){for(let n=0;n<l.length;n+=1)l[n]&&l[n].m(t,e);v(t,n,e)},p(t,e){if(14681087&e[0]){let o;for(r=lt(t[0]),o=0;o<r.length;o+=1){const i=nn(t,r,o);l[o]?l[o].p(i,e):(l[o]=un(i),l[o].c(),l[o].m(n.parentNode,n))}for(;o<l.length;o+=1)l[o].d(1);l.length=r.length}},i:t,o:t,d(t){t&&y(n),w(l,t)}}}function fn(t,e,n){let r,l,o,i,s,c,u,d,f,h,p,{buttons:$}=e,{_currentRange:g,_viewTitle:v,_viewDates:y,buttonText:w,customButtons:b,date:k,duration:x,hiddenDays:C,theme:_,validRange:D,view:T}=B("state");a(t,g,(t=>n(27,c=t))),a(t,v,(t=>n(6,d=t))),a(t,y,(t=>n(31,s=t))),a(t,w,(t=>n(7,f=t))),a(t,b,(t=>n(8,h=t))),a(t,k,(t=>n(2,l=t))),a(t,x,(t=>n(24,r=t))),a(t,C,(t=>n(25,o=t))),a(t,_,(t=>n(5,u=t))),a(t,D,(t=>n(26,i=t))),a(t,T,(t=>n(9,p=t)));let E,S,M,U=Tt(wt()),N=!1;function L(){return s.every((t=>Be(t,i)))}return t.$$set=t=>{"buttons"in t&&n(0,$=t.buttons)},t.$$.update=()=>{if(251658246&t.$$.dirty[0]&&!N){if(N=!0,n(3,E=!1),n(4,S=!1),i.start){let t=kt(l);m(k,l=Ht(l,r,o),l),n(3,E=L()),m(k,l=t,l)}if(i.end){let t=kt(l);m(k,l=zt(l,r),l),n(4,S=L()),m(k,l=t,l)}if(n(1,M=U>=c.start&&U<c.end),!M&&(i.start||i.end)){let t=kt(l);m(k,l=kt(U),l),n(1,M=L()),m(k,l=t,l)}Y().then((()=>N=!1))}},[$,M,l,E,S,u,d,f,h,p,g,v,y,w,b,k,x,C,_,D,T,U,function(){m(k,l=Ht(l,r,o),l)},function(){m(k,l=zt(l,r),l)},r,o,i,c,()=>m(k,l=kt(U),l),t=>m(T,p=t,p)]}class hn extends dt{constructor(t){super(),ut(this,t,fn,dn,o,{buttons:0},null,[-1,-1])}}function mn(t,e,n){const r=t.slice();return r[5]=e[n],r}function pn(t,e,n){const r=t.slice();return r[8]=e[n],r}function $n(t){let e,n;return e=new hn({props:{buttons:t[8]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.buttons=t[8]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function gn(t){let e,n,r,l;return n=new hn({props:{buttons:t[8]}}),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[1].buttonGroup)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const i={};1&o&&(i.buttons=t[8]),n.$set(i),(!l||2&o&&r!==(r=t[1].buttonGroup))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function vn(t){let e,n,r,l;const o=[gn,$n],i=[];function s(t,e){return t[8].length>1?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),r=C()},m(t,n){i[e].m(t,n),v(t,r,n),l=!0},p(t,l){let a=e;e=s(t),e===a?i[e].p(t,l):(tt(),rt(i[a],1,1,(()=>{i[a]=null})),et(),n=i[e],n?n.p(t,l):(n=i[e]=o[e](t),n.c()),nt(n,1),n.m(r.parentNode,r))},i(t){l||(nt(n),l=!0)},o(t){rt(n),l=!1},d(t){t&&y(r),i[e].d(t)}}}function yn(t){let e,n,r,l,o=lt(t[0][t[5]]),i=[];for(let e=0;e<o.length;e+=1)i[e]=vn(pn(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();n=x(),T(e,"class",r="ec-"+t[5])},m(t,r){v(t,e,r);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);g(e,n),l=!0},p(t,a){if(3&a){let r;for(o=lt(t[0][t[5]]),r=0;r<o.length;r+=1){const l=pn(t,o,r);i[r]?(i[r].p(l,a),nt(i[r],1)):(i[r]=vn(l),i[r].c(),nt(i[r],1),i[r].m(e,n))}for(tt(),r=o.length;r<i.length;r+=1)s(r);et()}(!l||1&a&&r!==(r="ec-"+t[5]))&&T(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)nt(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);l=!1},d(t){t&&y(e),w(i,t)}}}function wn(t){let e,n,r,l=lt(At(t[0])),o=[];for(let e=0;e<l.length;e+=1)o[e]=yn(mn(t,l,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=b("nav");for(let t=0;t<o.length;t+=1)o[t].c();T(e,"class",n=t[1].toolbar)},m(t,n){v(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);r=!0},p(t,s){let[a]=s;if(3&a){let n;for(l=lt(At(t[0])),n=0;n<l.length;n+=1){const r=mn(t,l,n);o[n]?(o[n].p(r,a),nt(o[n],1)):(o[n]=yn(r),o[n].c(),nt(o[n],1),o[n].m(e,null))}for(tt(),n=l.length;n<o.length;n+=1)i(n);et()}(!r||2&a&&n!==(n=t[1].toolbar))&&T(e,"class",n)},i(t){if(!r){for(let t=0;t<l.length;t+=1)nt(o[t]);r=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);r=!1},d(t){t&&y(e),w(o,t)}}}function bn(t,e,n){let r,l,{headerToolbar:o,theme:i}=B("state");a(t,o,(t=>n(4,r=t))),a(t,i,(t=>n(1,l=t)));let s={start:[],center:[],end:[]};return t.$$.update=()=>{if(17&t.$$.dirty)for(let t of At(s))n(0,s[t]=r[t].split(" ").map((t=>t.split(","))),s)},[s,l,o,i,r]}class kn extends dt{constructor(t){super(),ut(this,t,bn,wn,o,{})}}function xn(t,e,n){const r=t.slice();return r[11]=e[n],r}function Cn(t){let e,n,r;var l=t[11];return l&&(e=M(l,{})),{c(){e&&st(e.$$.fragment),n=C()},m(t,l){e&&at(e,t,l),v(t,n,l),r=!0},p(t,r){if(1&r&&l!==(l=t[11])){if(e){tt();const t=e;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}l?(e=M(l,{}),st(e.$$.fragment),nt(e.$$.fragment,1),at(e,n.parentNode,n)):e=null}},i(t){r||(e&&nt(e.$$.fragment,t),r=!0)},o(t){e&&rt(e.$$.fragment,t),r=!1},d(t){t&&y(n),e&&ct(e,t)}}}function _n(t){let e,n,r=lt(t[0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Cn(xn(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){let[i]=n;if(1&i){let n;for(r=lt(t[0]),n=0;n<r.length;n+=1){const o=xn(t,r,n);l[n]?(l[n].p(o,i),nt(l[n],1)):(l[n]=Cn(o),l[n].c(),nt(l[n],1),l[n].m(e.parentNode,e))}for(tt(),n=r.length;n<l.length;n+=1)o(n);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function Dn(t,e,n){let r,l,o,i,{datesSet:s,_auxiliary:c,_activeRange:u,_queue:d,_view:f}=B("state");a(t,s,(t=>n(7,l=t))),a(t,c,(t=>n(0,i=t))),a(t,u,(t=>n(5,o=t))),a(t,f,(t=>n(6,r=t)));let h={};return t.$$.update=()=>{32&t.$$.dirty&&function(t){Gt(l)&&Jt((()=>l({start:Et(t.start),end:Et(t.end),startStr:St(t.start),endStr:St(t.end),view:ae(r)})),h,d)}(o)},[i,s,c,u,f,o]}let Tn=class extends dt{constructor(t){super(),ut(this,t,Dn,_n,o,{})}};function En(t){let e,n,r,l,o,i,s,a,c,u,d;n=new kn({});var f=t[5];return f&&(l=M(f,{})),a=new Tn({}),{c(){e=b("div"),st(n.$$.fragment),r=x(),l&&st(l.$$.fragment),s=x(),st(a.$$.fragment),T(e,"class",o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")),T(e,"role",i=ce(t[4])?"list":"table"),S(e,"height",t[3])},m(o,i){v(o,e,i),at(n,e,null),g(e,r),l&&at(l,e,null),v(o,s,i),at(a,o,i),c=!0,u||(d=_(window,"resize",t[20]),u=!0)},p(t,n){if(32&n[0]&&f!==(f=t[5])){if(l){tt();const t=l;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}f?(l=M(f,{}),st(l.$$.fragment),nt(l.$$.fragment,1),at(l,e,null)):l=null}(!c||7&n[0]&&o!==(o=t[1].calendar+" "+t[1].view+(t[0]?" "+t[1].withScroll:"")+(t[2]?" "+t[1][t[2]]:"")))&&T(e,"class",o),(!c||16&n[0]&&i!==(i=ce(t[4])?"list":"table"))&&T(e,"role",i),8&n[0]&&S(e,"height",t[3])},i(t){c||(nt(n.$$.fragment,t),l&&nt(l.$$.fragment,t),nt(a.$$.fragment,t),c=!0)},o(t){rt(n.$$.fragment,t),l&&rt(l.$$.fragment,t),rt(a.$$.fragment,t),c=!1},d(t){t&&(y(e),y(s)),ct(n),l&&ct(l),ct(a,t),u=!1,d()}}}function Sn(t,e,n){let r,l,o,i,c,u,d,f,h,p,$,g,v,y,{plugins:w=[]}=e,{options:b={}}=e,k=new Ke(w,b);var x,C;x="state",C=k,L().$$.context.set(x,C);let{_viewComponent:_,_bodyEl:D,_interaction:T,_iClass:E,_events:S,_queue:M,_queue2:U,_tasks:N,_scrollable:R,date:H,duration:B,hiddenDays:F,height:A,theme:P,view:I}=k;a(t,_,(t=>n(5,y=t))),a(t,D,(t=>n(36,r=t))),a(t,T,(t=>n(42,f=t))),a(t,E,(t=>n(2,$=t))),a(t,S,(t=>n(43,h=t))),a(t,M,(t=>n(38,i=t))),a(t,U,(t=>n(37,o=t))),a(t,R,(t=>n(0,l=t))),a(t,H,(t=>n(41,d=t))),a(t,B,(t=>n(40,u=t))),a(t,F,(t=>n(39,c=t))),a(t,A,(t=>n(3,g=t))),a(t,P,(t=>n(1,p=t))),a(t,I,(t=>n(4,v=t)));let j={...b};function W(t,e){return k._set(t,e),this}var O;function G(){var t;r&&m(R,l=(t=r).scrollHeight>t.clientHeight,l)}return O=()=>{Kt(i)},L().$$.before_update.push(O),z((()=>{Kt(o),Qt(G,null,N)})),t.$$set=t=>{"plugins"in t&&n(21,w=t.plugins),"options"in t&&n(22,b=t.options)},t.$$.update=()=>{if(4194304&t.$$.dirty[0])for(let[t,e]of function(t,e){let n=[];for(let r of At(t))t[r]!==e[r]&&n.push([r,t[r]]);return Ft(e,t),n}(b,j))W(t,e)},[l,p,$,g,v,y,_,D,T,E,S,M,U,R,H,B,F,A,P,I,G,w,b,W,function(t){let e=k._get(t);return e instanceof Date?Et(e):e},function(){return k._fetchedRange.set({start:void 0,end:void 0}),this},function(){return h.map(we)},function(t){for(let e of h)if(e.id==t)return we(e);return null},function(t){return t=fe([t])[0],h.push(t),S.set(h),we(t)},function(t){for(let e of h)if(e.id==t.id)return Ft(e,t=fe([t])[0]),S.set(h),we(t);return null},function(t){let e=h.findIndex((e=>e.id==t));return e>=0&&(h.splice(e,1),S.set(h)),this},function(){return ae(s(k._view))},function(){return f.action?.unselect(),this},function(t,e){let n=ie(t,e);if(n){let r=ee(n)(t,e);return r.date=Et(r.date),r}return null},function(){return m(H,d=zt(d,u),d),this},function(){return m(H,d=Ht(d,u,c),d),this}]}class Mn extends dt{constructor(t){super(),ut(this,t,Sn,En,o,{plugins:21,options:22,setOption:23,getOption:24,refetchEvents:25,getEvents:26,getEventById:27,addEvent:28,updateEvent:29,removeEventById:30,getView:31,unselect:32,dateFromPoint:33,next:34,prev:35},null,[-1,-1])}get setOption(){return this.$$.ctx[23]}get getOption(){return this.$$.ctx[24]}get refetchEvents(){return this.$$.ctx[25]}get getEvents(){return this.$$.ctx[26]}get getEventById(){return this.$$.ctx[27]}get addEvent(){return this.$$.ctx[28]}get updateEvent(){return this.$$.ctx[29]}get removeEventById(){return this.$$.ctx[30]}get getView(){return this.$$.ctx[31]}get unselect(){return this.$$.ctx[32]}get dateFromPoint(){return this.$$.ctx[33]}get next(){return this.$$.ctx[34]}get prev(){return this.$$.ctx[35]}}let Un=class extends Mn{destroy(){this.$destroy()}get view(){return this.getView()}};function Nn(t,e,n){const r=t.slice();return r[8]=e[n],r}function Ln(t){let e,n,r,o,i,s,a,c;return{c(){e=b("div"),n=b("span"),i=x(),T(n,"aria-label",r=t[2].format(t[8])),T(e,"class",s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()]),T(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),g(e,i),a||(c=p(o=gt.call(null,n,t[3].format(t[8]))),a=!0)},p(i,a){t=i,6&a&&r!==(r=t[2].format(t[8]))&&T(n,"aria-label",r),o&&l(o.update)&&10&a&&o.update.call(null,t[3].format(t[8])),3&a&&s!==(s=t[0].day+" "+t[0].weekdays?.[t[8].getUTCDay()])&&T(e,"class",s)},d(t){t&&y(e),a=!1,c()}}}function Rn(e){let n,r,l,o,i,s,a,c=lt(e[1]),u=[];for(let t=0;t<c.length;t+=1)u[t]=Ln(Nn(e,c,t));return{c(){n=b("div"),r=b("div");for(let t=0;t<u.length;t+=1)u[t].c();o=x(),i=b("div"),T(r,"class",l=e[0].days),T(r,"role","row"),T(i,"class",s=e[0].hiddenScroll),T(n,"class",a=e[0].header)},m(t,e){v(t,n,e),g(n,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(r,null);g(n,o),g(n,i)},p(t,e){let[o]=e;if(15&o){let e;for(c=lt(t[1]),e=0;e<c.length;e+=1){const n=Nn(t,c,e);u[e]?u[e].p(n,o):(u[e]=Ln(n),u[e].c(),u[e].m(r,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&l!==(l=t[0].days)&&T(r,"class",l),1&o&&s!==(s=t[0].hiddenScroll)&&T(i,"class",s),1&o&&a!==(a=t[0].header)&&T(n,"class",a)},i:t,o:t,d(t){t&&y(n),w(u,t)}}}function zn(t,e,n){let r,l,o,i,{theme:s,_intlDayHeader:c,_intlDayHeaderAL:u,_days:d}=B("state");return a(t,s,(t=>n(0,r=t))),a(t,c,(t=>n(3,i=t))),a(t,u,(t=>n(2,o=t))),a(t,d,(t=>n(1,l=t))),[r,l,o,i,s,c,u,d]}let Hn=class extends dt{constructor(t){super(),ut(this,t,zn,Rn,o,{})}};function Bn(t){let e,n,o,i,s,a,c,u,d,f,h,m,$;var w=t[8].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[8],["x","start"]))&&t[32](t[8],["x","start"]).apply(this,arguments)})));var C=t[8].resizer;function D(t,e){return{props:{event:t[0]}}}return C&&(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[32](t[8],["x","end"]))&&t[32](t[8],["x","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&st(n.$$.fragment),o=x(),i=b("div"),c=x(),u&&st(u.$$.fragment),T(i,"class",s=t[2].eventBody),T(e,"class",t[4]),T(e,"style",t[5]),T(e,"role",d=t[7]?"button":void 0),T(e,"tabindex",f=t[7]?0:void 0)},m(r,s){v(r,e,s),n&&at(n,e,null),g(e,o),g(e,i),g(e,c),u&&at(u,e,null),t[51](e),h=!0,m||($=[p(a=gt.call(null,i,t[6])),_(e,"click",(function(){l(t[7]||void 0)&&(t[7]||void 0).apply(this,arguments)})),_(e,"keydown",(function(){l(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),_(e,"mouseenter",(function(){l(t[31](t[9],t[1]))&&t[31](t[9],t[1]).apply(this,arguments)})),_(e,"mouseleave",(function(){l(t[31](t[10],t[1]))&&t[31](t[10],t[1]).apply(this,arguments)})),_(e,"pointerdown",(function(){l(!Te(t[1])&&t[32](t[8]))&&(!Te(t[1])&&t[32](t[8])).apply(this,arguments)}))],m=!0)},p(r,c){if(t=r,256&c[0]&&w!==(w=t[8].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[8],["x","start"]))&&t[32](t[8],["x","start"]).apply(this,arguments)})),st(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||4&c[0]&&s!==(s=t[2].eventBody))&&T(i,"class",s),a&&l(a.update)&&64&c[0]&&a.update.call(null,t[6]),256&c[0]&&C!==(C=t[8].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}C?(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[32](t[8],["x","end"]))&&t[32](t[8],["x","end"]).apply(this,arguments)})),st(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(C){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||16&c[0])&&T(e,"class",t[4]),(!h||32&c[0])&&T(e,"style",t[5]),(!h||128&c[0]&&d!==(d=t[7]?"button":void 0))&&T(e,"role",d),(!h||128&c[0]&&f!==(f=t[7]?0:void 0))&&T(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[51](null),m=!1,r($)}}}function Fn(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,T,E,S,{chunk:M}=e,{longChunks:U={}}=e,{inPopup:N=!1}=e,{dates:L=[]}=e,{dayMaxEvents:H,displayEventEnd:F,eventAllUpdated:A,eventBackgroundColor:I,eventTextColor:j,eventClick:W,eventColor:O,eventContent:G,eventClassNames:Y,eventDidMount:q,eventMouseEnter:X,eventMouseLeave:V,resources:J,theme:K,_view:Q,_intlEventTime:Z,_interaction:tt,_iClasses:et,_hiddenEvents:nt,_popupDate:rt,_tasks:lt}=B("state");a(t,H,(t=>n(54,o=t))),a(t,F,(t=>n(44,p=t))),a(t,A,(t=>n(56,u=t))),a(t,I,(t=>n(50,b=t))),a(t,j,(t=>n(47,v=t))),a(t,W,(t=>n(40,r=t))),a(t,O,(t=>n(49,w=t))),a(t,G,(t=>n(43,m=t))),a(t,Y,(t=>n(45,$=t))),a(t,q,(t=>n(57,d=t))),a(t,X,(t=>n(9,k=t))),a(t,V,(t=>n(10,x=t))),a(t,J,(t=>n(48,y=t))),a(t,K,(t=>n(2,h=t))),a(t,Q,(t=>n(41,c=t))),a(t,Z,(t=>n(42,f=t))),a(t,tt,(t=>n(8,s=t))),a(t,et,(t=>n(46,g=t))),a(t,nt,(t=>n(53,l=t))),a(t,rt,(t=>n(55,i=t)));let ot,it,st=1,at=!1;function ct(t,e){return!Te(e)&&Gt(t)?e=>t({event:we(_),el:C,jsEvent:e,view:ae(c)}):void 0}return R((()=>{Gt(d)&&d({event:we(_),timeText:S,el:C,view:ae(c)})})),z((()=>{Gt(u)&&!Te(ot)&&Qt((()=>u({view:ae(c)})),"eau",lt)})),t.$$set=t=>{"chunk"in t&&n(33,M=t.chunk),"longChunks"in t&&n(34,U=t.longChunks),"inPopup"in t&&n(35,N=t.inPopup),"dates"in t&&n(36,L=t.dates)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&n(0,_=M.event),39&t.$$.dirty[0]|1033604&t.$$.dirty[1]){n(1,ot=_.display);let t=_.backgroundColor||je(_,y)||b||w,e=_.textColor||We(_,y)||v;if(Ee(ot))n(5,T=`width:calc(${100*M.days}% + ${M.days-1}px);`);else{let t=st;if(_._margin){let[e,n]=_._margin;M.date>=n[0]&&M.date<=n.at(-1)&&(t=e)}n(5,T=`width:calc(${100*M.days}% + ${7*(M.days-1)}px);margin-top:${t}px;`)}t&&n(5,T+=`background-color:${t};`),e&&n(5,T+=`color:${e};`),at&&n(5,T+="visibility:hidden;"),n(5,T+=_.styles.join(";")),n(4,D=[Ee(ot)?h.bgEvent:h.event,...g([],_),...ye($,_,c)].join(" "))}4&t.$$.dirty[0]|15364&t.$$.dirty[1]&&n(6,[S,E]=ge(M,p,m,h,f,c),E),2&t.$$.dirty[0]|512&t.$$.dirty[1]&&n(7,it=ct(r,ot))},[_,ot,h,C,D,T,E,it,s,k,x,H,F,A,I,j,W,O,G,Y,q,X,V,J,K,Q,Z,tt,et,nt,rt,ct,function(t,e){return t.action?t=>s.action.drag(_,t,e,N?i:null,[re(C).top-re(le(C,1)).top,L],M.zeroDuration):void 0},M,U,N,L,function(){C&&(n(38,st=Ce(M,U,oe(C))),!0===o?function(){let t=le(C,2),e=oe(t)-oe(t.firstElementChild)-function(t){let e=0;for(let n=0;n<M.days&&(e=Wt(e,oe(t.lastElementChild)),t=t.nextElementSibling);++n);return e}(t);n(39,at=M.bottom>e);let r=!1;for(let t of M.dates){let e=l[t.getTime()];if(e){let t=e.size;at?e.add(M.event):e.delete(M.event),t!==e.size&&(r=!0)}}r&&nt.set(l)}():n(39,at=!1))},st,at,r,c,f,m,p,$,g,v,y,w,b,function(t){P[t?"unshift":"push"]((()=>{C=t,n(3,C)}))}]}let An=class extends dt{constructor(t){super(),ut(this,t,Fn,Bn,o,{chunk:33,longChunks:34,inPopup:35,dates:36,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}};function Pn(t,e,n){const r=t.slice();return r[20]=e[n],r}function In(t,e){let n,r,l;return r=new An({props:{chunk:e[20],inPopup:!0}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1&n&&(l.chunk=e[20]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function jn(t){let e,n,o,i,s,a,c,u,d,f,h,m,$,w,C,E,S,M=[],U=new Map,N=lt(t[0]);const L=t=>t[20].event;for(let e=0;e<N.length;e+=1){let n=Pn(t,N,e),r=L(n);U.set(r,M[e]=In(r,n))}return{c(){e=b("div"),n=b("div"),o=b("time"),a=x(),c=b("a"),u=k("×"),h=x(),m=b("div");for(let t=0;t<M.length;t+=1)M[t].c();T(o,"datetime",i=St(t[3],10)),T(c,"role","button"),T(c,"tabindex","0"),T(c,"aria-label",d=t[6].close),T(n,"class",f=t[4].dayHead),T(m,"class",$=t[4].events),T(e,"class",w=t[4].popup),T(e,"style",t[2])},m(r,l){v(r,e,l),g(e,n),g(n,o),g(n,a),g(n,c),g(c,u),g(e,h),g(e,m);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(m,null);t[16](e),C=!0,E||(S=[p(s=gt.call(null,o,t[5].format(t[3]))),_(c,"click",D(t[13])),_(c,"keydown",$t(t[13])),p(vt.call(null,e,"pointerdown")),_(e,"pointerdown",D(t[15])),_(e,"pointerdownoutside",t[14])],E=!0)},p(t,r){let[a]=r;(!C||8&a&&i!==(i=St(t[3],10)))&&T(o,"datetime",i),s&&l(s.update)&&40&a&&s.update.call(null,t[5].format(t[3])),(!C||64&a&&d!==(d=t[6].close))&&T(c,"aria-label",d),(!C||16&a&&f!==(f=t[4].dayHead))&&T(n,"class",f),1&a&&(N=lt(t[0]),tt(),M=it(M,a,L,0,t,N,U,m,ot,In,null,Pn),et()),(!C||16&a&&$!==($=t[4].events))&&T(m,"class",$),(!C||16&a&&w!==(w=t[4].popup))&&T(e,"class",w),(!C||4&a)&&T(e,"style",t[2])},i(t){if(!C){for(let t=0;t<N.length;t+=1)nt(M[t]);C=!0}},o(t){for(let t=0;t<M.length;t+=1)rt(M[t]);C=!1},d(n){n&&y(e);for(let t=0;t<M.length;t+=1)M[t].d();t[16](null),E=!1,r(S)}}}function Wn(t,e,n){let r,l,o,i,s,c,u,{buttonText:d,theme:f,_interaction:h,_intlDayPopover:p,_popupDate:$,_popupChunks:g}=B("state");a(t,d,(t=>n(6,c=t))),a(t,f,(t=>n(4,i=t))),a(t,h,(t=>n(17,r=t))),a(t,p,(t=>n(5,s=t))),a(t,$,(t=>n(3,l=t))),a(t,g,(t=>n(0,o=t)));let v="";function y(){u&&(n(2,v=""),Y().then((()=>{o.length?function(){let t,e,r=le(u,1),l=le(r,3),o=re(u),i=re(r),s=re(l);if(n(2,v=""),o.width>=s.width){t=s.left-i.left;let e=i.right-s.right;n(2,v+=`right:${e}px;`)}else t=(i.width-o.width)/2,i.left+t<s.left?t=s.left-i.left:i.left+t+o.width>s.right&&(t=s.right-i.left-o.width);if(n(2,v+=`left:${t}px;`),o.height>=s.height){e=s.top-i.top;let t=i.bottom-s.bottom;n(2,v+=`bottom:${t}px;`)}else e=(i.height-o.height)/2,i.top+e<s.top?e=s.top-i.top:i.top+e+o.height>s.bottom&&(e=s.bottom-i.top-o.height);n(2,v+=`top:${e}px;`)}():w()})))}function w(t){m($,l=null,l)}return t.$$.update=()=>{1&t.$$.dirty&&o&&y()},[o,u,v,l,i,s,c,d,f,h,p,$,g,w,function(t){w(),r.action?.noClick()},function(e){F.call(this,t,e)},function(t){P[t?"unshift":"push"]((()=>{u=t,n(1,u)}))}]}class On extends dt{constructor(t){super(),ut(this,t,Wn,jn,o,{})}}function Gn(t,e,n){const r=t.slice();return r[54]=e[n],r[55]=e,r[56]=n,r}function Yn(t,e,n){const r=t.slice();return r[54]=e[n],r}function qn(t){let e,n,r,o,i;return{c(){e=b("span"),T(e,"class",n=t[17].weekNumber)},m(n,l){v(n,e,l),o||(i=p(r=gt.call(null,e,t[15])),o=!0)},p(t,o){131072&o[0]&&n!==(n=t[17].weekNumber)&&T(e,"class",n),r&&l(r.update)&&32768&o[0]&&r.update.call(null,t[15])},d(t){t&&y(e),o=!1,i()}}}function Xn(t){let e,n,r=[],l=new Map,o=lt(t[10]);const i=t=>t[54].event;for(let e=0;e<o.length;e+=1){let n=Yn(t,o,e),s=i(n);l.set(s,r[e]=Vn(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){1024&n[0]&&(o=lt(t[10]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,Vn,e,Yn),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function Vn(t,e){let n,r,l;return r=new An({props:{chunk:e[54]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1024&n[0]&&(l.chunk=e[54]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function Jn(t){let e,n,r,l=t[2][2]&&Mt(t[2][2].date,t[0]),o=t[2][0]&&Mt(t[2][0].date,t[0]),i=l&&Kn(t),s=o&&Qn(t);return{c(){i&&i.c(),e=x(),s&&s.c(),n=C()},m(t,l){i&&i.m(t,l),v(t,e,l),s&&s.m(t,l),v(t,n,l),r=!0},p(t,r){5&r[0]&&(l=t[2][2]&&Mt(t[2][2].date,t[0])),l?i?(i.p(t,r),5&r[0]&&nt(i,1)):(i=Kn(t),i.c(),nt(i,1),i.m(e.parentNode,e)):i&&(tt(),rt(i,1,1,(()=>{i=null})),et()),5&r[0]&&(o=t[2][0]&&Mt(t[2][0].date,t[0])),o?s?(s.p(t,r),5&r[0]&&nt(s,1)):(s=Qn(t),s.c(),nt(s,1),s.m(n.parentNode,n)):s&&(tt(),rt(s,1,1,(()=>{s=null})),et())},i(t){r||(nt(i),nt(s),r=!0)},o(t){rt(i),rt(s),r=!1},d(t){t&&(y(e),y(n)),i&&i.d(t),s&&s.d(t)}}}function Kn(t){let e,n,r,l;return n=new An({props:{chunk:t[2][2]}}),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[17].events)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][2]),n.$set(i),(!l||131072&o[0]&&r!==(r=t[17].events))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function Qn(t){let e,n,r,l;return n=new An({props:{chunk:t[2][0]}}),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[17].events+" "+t[17].preview)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const i={};4&o[0]&&(i.chunk=t[2][0]),n.$set(i),(!l||131072&o[0]&&r!==(r=t[17].events+" "+t[17].preview))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function Zn(t){let e,n,r=[],l=new Map,o=lt(t[5]);const i=t=>t[54].event;for(let e=0;e<o.length;e+=1){let n=Gn(t,o,e),s=i(n);l.set(s,r[e]=tr(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){65578&n[0]&&(o=lt(t[5]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,tr,e,Gn),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function tr(t,e){let n,r,l,o=e[56];const i=()=>e[49](r,o),s=()=>e[49](null,o);let a={chunk:e[54],longChunks:e[1],dates:e[3]};return r=new An({props:a}),i(),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){o!==(e=t)[56]&&(s(),o=e[56],i());const l={};32&n[0]&&(l.chunk=e[54]),2&n[0]&&(l.longChunks=e[1]),8&n[0]&&(l.dates=e[3]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),s(),ct(r,t)}}}function er(t){let e,n;return e=new On({}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function nr(t){let e,n,o,i;return{c(){e=b("a"),T(e,"role","button"),T(e,"tabindex","0"),T(e,"aria-haspopup","true")},m(r,l){v(r,e,l),o||(i=[_(e,"click",D(t[34])),_(e,"keydown",$t(t[34])),_(e,"pointerdown",D(t[48])),p(n=gt.call(null,e,t[14]))],o=!0)},p(t,e){n&&l(n.update)&&16384&e[0]&&n.update.call(null,t[14])},d(t){t&&y(e),o=!1,r(i)}}}function rr(t){let e,n,o,i,s,a,c,u,d,f,h,m,$,w,k,C,D,E,S,M,U,N,L=t[9]&&qn(t),R=!t[6]&&Xn(t),z=!t[6]&&Jn(t),H=!t[6]&&Zn(t),B=t[8]&&er(),F=!t[6]&&t[7].size&&nr(t);return{c(){e=b("div"),n=b("div"),o=b("time"),a=x(),L&&L.c(),u=x(),d=b("div"),R&&R.c(),h=x(),z&&z.c(),m=x(),$=b("div"),H&&H.c(),k=x(),B&&B.c(),C=x(),D=b("div"),F&&F.c(),T(o,"datetime",i=St(t[0],10)),T(n,"class",c=t[17].dayHead),T(d,"class",f=t[17].bgEvents),T($,"class",w=t[17].events),T(D,"class",E=t[17].dayFoot),T(e,"class",S=t[17].day+" "+t[17].weekdays?.[t[0].getUTCDay()]+(t[11]?" "+t[17].today:"")+(t[12]?" "+t[17].otherMonth:"")+(t[13]?" "+t[17].highlight:"")+(t[6]?" "+t[17].disabled:"")),T(e,"role","cell")},m(r,i){v(r,e,i),g(e,n),g(n,o),g(n,a),L&&L.m(n,null),g(e,u),g(e,d),R&&R.m(d,null),g(e,h),z&&z.m(e,null),g(e,m),g(e,$),H&&H.m($,null),g(e,k),B&&B.m(e,null),g(e,C),g(e,D),F&&F.m(D,null),t[50](e),M=!0,U||(N=[p(s=gt.call(null,o,t[19].format(t[0]))),_(e,"pointerdown",(function(){l(t[18].action?.select)&&t[18].action?.select.apply(this,arguments)}))],U=!0)},p(r,a){t=r,(!M||1&a[0]&&i!==(i=St(t[0],10)))&&T(o,"datetime",i),s&&l(s.update)&&524289&a[0]&&s.update.call(null,t[19].format(t[0])),t[9]?L?L.p(t,a):(L=qn(t),L.c(),L.m(n,null)):L&&(L.d(1),L=null),(!M||131072&a[0]&&c!==(c=t[17].dayHead))&&T(n,"class",c),t[6]?R&&(tt(),rt(R,1,1,(()=>{R=null})),et()):R?(R.p(t,a),64&a[0]&&nt(R,1)):(R=Xn(t),R.c(),nt(R,1),R.m(d,null)),(!M||131072&a[0]&&f!==(f=t[17].bgEvents))&&T(d,"class",f),t[6]?z&&(tt(),rt(z,1,1,(()=>{z=null})),et()):z?(z.p(t,a),64&a[0]&&nt(z,1)):(z=Jn(t),z.c(),nt(z,1),z.m(e,m)),t[6]?H&&(tt(),rt(H,1,1,(()=>{H=null})),et()):H?(H.p(t,a),64&a[0]&&nt(H,1)):(H=Zn(t),H.c(),nt(H,1),H.m($,null)),(!M||131072&a[0]&&w!==(w=t[17].events))&&T($,"class",w),t[8]?B?256&a[0]&&nt(B,1):(B=er(),B.c(),nt(B,1),B.m(e,C)):B&&(tt(),rt(B,1,1,(()=>{B=null})),et()),!t[6]&&t[7].size?F?F.p(t,a):(F=nr(t),F.c(),F.m(D,null)):F&&(F.d(1),F=null),(!M||131072&a[0]&&E!==(E=t[17].dayFoot))&&T(D,"class",E),(!M||145473&a[0]&&S!==(S=t[17].day+" "+t[17].weekdays?.[t[0].getUTCDay()]+(t[11]?" "+t[17].today:"")+(t[12]?" "+t[17].otherMonth:"")+(t[13]?" "+t[17].highlight:"")+(t[6]?" "+t[17].disabled:"")))&&T(e,"class",S)},i(t){M||(nt(R),nt(z),nt(H),nt(B),M=!0)},o(t){rt(R),rt(z),rt(H),rt(B),M=!1},d(n){n&&y(e),L&&L.d(),R&&R.d(),z&&z.d(),H&&H.d(),B&&B.d(),F&&F.d(),t[50](null),U=!1,r(N)}}}function lr(t,e,n){let r,l,o,i,s,c,u,d,f,h,p,$,g,v,y,w,b,k,x,C,_,{date:D}=e,{chunks:T}=e,{bgChunks:E}=e,{longChunks:S}=e,{iChunks:M=[]}=e,{dates:U}=e,{date:N,dayMaxEvents:L,highlightedDates:R,firstDay:z,moreLinkContent:H,theme:A,validRange:I,weekNumbers:j,weekNumberContent:W,_hiddenEvents:O,_intlDayCell:G,_popupDate:q,_popupChunks:X,_today:V,_interaction:J}=B("state");a(t,N,(t=>n(46,h=t))),a(t,R,(t=>n(45,f=t))),a(t,z,(t=>n(39,l=t))),a(t,H,(t=>n(42,c=t))),a(t,A,(t=>n(17,$=t))),a(t,I,(t=>n(44,d=t))),a(t,j,(t=>n(40,o=t))),a(t,W,(t=>n(38,r=t))),a(t,O,(t=>n(43,u=t))),a(t,G,(t=>n(19,v=t))),a(t,q,(t=>n(41,s=t))),a(t,X,(t=>n(51,i=t))),a(t,V,(t=>n(47,p=t))),a(t,J,(t=>n(18,g=t)));let K,Q,Z,tt=new Set,et="",nt=[];function rt(){let t=_t(kt(D)),e=w.concat(S[D.getTime()]?.chunks||[]);m(X,i=e.map((e=>Ft({},e,pe(e.event,D,t),{days:1,dates:[D]}))).sort(((t,e)=>t.top-e.top)),i)}return t.$$set=t=>{"date"in t&&n(0,D=t.date),"chunks"in t&&n(35,T=t.chunks),"bgChunks"in t&&n(36,E=t.bgChunks),"longChunks"in t&&n(1,S=t.longChunks),"iChunks"in t&&n(2,M=t.iChunks),"dates"in t&&n(3,U=t.dates)},t.$$.update=()=>{if(1&t.$$.dirty[0]|8192&t.$$.dirty[1]&&n(6,_=Be(D,d)),225&t.$$.dirty[0]|48&t.$$.dirty[1]&&!_){n(5,w=[]),n(10,b=E.filter((t=>Mt(t.date,D)))),tt.clear(),n(7,tt),n(6,_),n(36,E),n(0,D),n(35,T),n(5,w),n(44,d);for(let t of T)Mt(t.date,D)&&w.push(t)}if(129&t.$$.dirty[0]&&m(O,u[D.getTime()]=tt,u),1&t.$$.dirty[0]|65536&t.$$.dirty[1]&&n(11,k=Mt(D,p)),1&t.$$.dirty[0]|32768&t.$$.dirty[1]&&n(12,x=D.getUTCMonth()!==h.getUTCMonth()),1&t.$$.dirty[0]|16384&t.$$.dirty[1]&&n(13,C=f.some((t=>Mt(t,D)))),192&t.$$.dirty[0]|6144&t.$$.dirty[1]&&!_&&u&&tt.size){let t="+"+tt.size+" more";n(14,et=c?Gt(c)?c({num:tt.size,text:t}):c:t)}if(1&t.$$.dirty[0]|1024&t.$$.dirty[1]&&n(8,K=s&&Mt(D,s)),290&t.$$.dirty[0]&&K&&S&&w&&Y().then(rt),81&t.$$.dirty[0]&&y&&te(y,(()=>({allDay:!0,date:D,resource:void 0,dayEl:y,disabled:_}))),513&t.$$.dirty[0]|896&t.$$.dirty[1]&&(n(9,Q=o&&D.getUTCDay()==(l?1:0)),Q)){let t=function(t,e){t=kt(t),0==e?t.setUTCDate(t.getUTCDate()+6-t.getUTCDay()):t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));let n=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t-n)/1e3/yt+1)/7)}(D,l);n(15,Z=r?Gt(r)?r({date:Et(D),week:t}):r:"W"+String(t).padStart(2,"0"))}},[D,S,M,U,y,w,_,tt,K,Q,b,k,x,C,et,Z,nt,$,g,v,N,R,z,H,A,I,j,W,O,G,q,X,V,J,function(){m(q,s=D,s)},T,E,function(){_||_e(nt,w)},r,l,o,s,c,u,d,f,h,p,function(e){F.call(this,t,e)},function(t,e){P[t?"unshift":"push"]((()=>{nt[e]=t,n(16,nt)}))},function(t){P[t?"unshift":"push"]((()=>{y=t,n(4,y)}))}]}let or=class extends dt{constructor(t){super(),ut(this,t,lr,rr,o,{date:0,chunks:35,bgChunks:36,longChunks:1,iChunks:2,dates:3,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}};function ir(t,e,n){const r=t.slice();return r[28]=e[n],r[29]=e,r[30]=n,r}function sr(t){let e,n,r=t[30];const l=()=>t[25](e,r),o=()=>t[25](null,r);let i={date:t[28],chunks:t[1],bgChunks:t[2],longChunks:t[3],iChunks:t[4],dates:t[0]};return e=new or({props:i}),l(),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){r!==t[30]&&(o(),r=t[30],l());const i={};1&n&&(i.date=t[28]),2&n&&(i.chunks=t[1]),4&n&&(i.bgChunks=t[2]),8&n&&(i.longChunks=t[3]),16&n&&(i.iChunks=t[4]),1&n&&(i.dates=t[0]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ct(e,t)}}}function ar(t){let e,n,r,l,o,i=lt(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=sr(ir(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=b("div");for(let t=0;t<s.length;t+=1)s[t].c();T(e,"class",n=t[6].days),T(e,"role","row")},m(n,i){v(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);r=!0,l||(o=_(window,"resize",t[15]),l=!0)},p(t,l){let[o]=l;if(63&o){let n;for(i=lt(t[0]),n=0;n<i.length;n+=1){const r=ir(t,i,n);s[n]?(s[n].p(r,o),nt(s[n],1)):(s[n]=sr(r),s[n].c(),nt(s[n],1),s[n].m(e,null))}for(tt(),n=i.length;n<s.length;n+=1)a(n);et()}(!r||64&o&&n!==(n=t[6].days))&&T(e,"class",n)},i(t){if(!r){for(let t=0;t<i.length;t+=1)nt(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);r=!1},d(t){t&&y(e),w(s,t),l=!1,o()}}}function cr(t,e,n){let r,l,o,i,s,c,u,d,{dates:f}=e,{_events:h,_iEvents:m,_queue2:p,_hiddenEvents:$,resources:g,filterEventsWithResources:v,hiddenDays:y,theme:w,validRange:b}=B("state");a(t,h,(t=>n(23,c=t))),a(t,m,(t=>n(20,o=t))),a(t,$,(t=>n(18,r=t))),a(t,g,(t=>n(21,i=t))),a(t,v,(t=>n(22,s=t))),a(t,y,(t=>n(19,l=t))),a(t,w,(t=>n(6,d=t))),a(t,b,(t=>n(24,u=t)));let k,x,C,_,D,T=[],E=[],S={};function M(){Jt((()=>_e(E,f)),S,p)}return t.$$set=t=>{"dates"in t&&n(0,f=t.dates)},t.$$.update=()=>{if(16777217&t.$$.dirty&&(n(16,_=Fe(f[0],u)),n(17,D=_t(kt(Fe(f.at(-1),u))))),15400966&t.$$.dirty){n(1,k=[]),n(2,x=[]);for(let t of c)if(De(t,_,D,s?i:void 0)){let e=pe(t,_,D);Ee(t.display)?t.allDay&&x.push(e):k.push(e)}xe(x,l),n(3,C=xe(k,l)),M()}1769472&t.$$.dirty&&n(4,T=o.map((t=>{let e;return t&&De(t,_,D)?(e=pe(t,_,D),xe([e],l)):e=null,e}))),262144&t.$$.dirty&&r&&Y().then(M)},[f,k,x,C,T,E,d,h,m,$,g,v,y,w,b,M,_,D,r,l,o,i,s,c,u,function(t,e){P[t?"unshift":"push"]((()=>{E[e]=t,n(5,E)}))}]}let ur=class extends dt{constructor(t){super(),ut(this,t,cr,ar,o,{dates:0})}};function dr(t,e,n){const r=t.slice();return r[15]=e[n],r}function fr(t){let e,n;return e=new ur({props:{dates:t[15]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n&&(r.dates=t[15]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function hr(t){let e,n,r,l,o,i=lt(t[0]),s=[];for(let e=0;e<i.length;e+=1)s[e]=fr(dr(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=b("div"),n=b("div");for(let t=0;t<s.length;t+=1)s[t].c();T(n,"class",r=t[2].content),T(e,"class",l=t[2].body+(!0===t[1]?" "+t[2].uniform:""))},m(r,l){v(r,e,l),g(e,n);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(n,null);t[13](e),o=!0},p(t,c){let[u]=c;if(1&u){let e;for(i=lt(t[0]),e=0;e<i.length;e+=1){const r=dr(t,i,e);s[e]?(s[e].p(r,u),nt(s[e],1)):(s[e]=fr(r),s[e].c(),nt(s[e],1),s[e].m(n,null))}for(tt(),e=i.length;e<s.length;e+=1)a(e);et()}(!o||4&u&&r!==(r=t[2].content))&&T(n,"class",r),(!o||6&u&&l!==(l=t[2].body+(!0===t[1]?" "+t[2].uniform:"")))&&T(e,"class",l)},i(t){if(!o){for(let t=0;t<i.length;t+=1)nt(s[t]);o=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);o=!1},d(n){n&&y(e),w(s,n),t[13](null)}}}function mr(t,e,n){let r,l,o,i,s,c,u,d,{_bodyEl:f,_viewDates:h,_hiddenEvents:p,dayMaxEvents:$,hiddenDays:g,theme:v}=B("state");return a(t,f,(t=>n(3,c=t))),a(t,h,(t=>n(11,r=t))),a(t,p,(t=>n(14,o=t))),a(t,$,(t=>n(1,l=t))),a(t,g,(t=>n(12,i=t))),a(t,v,(t=>n(2,s=t))),t.$$.update=()=>{if(7171&t.$$.dirty){n(0,u=[]),n(10,d=7-i.length),m(p,o={},o);for(let t=0;t<r.length/d;++t){let e=[];for(let n=0;n<d;++n)e.push(r[t*d+n]);u.push(e)}}},[u,l,s,c,f,h,p,$,g,v,d,r,i,function(t){P[t?"unshift":"push"]((()=>{c=t,f.set(c)}))}]}let pr=class extends dt{constructor(t){super(),ut(this,t,mr,hr,o,{})}};function $r(e){let n,r,l,o;return n=new Hn({}),l=new pr({}),{c(){st(n.$$.fragment),r=x(),st(l.$$.fragment)},m(t,e){at(n,t,e),v(t,r,e),at(l,t,e),o=!0},p:t,i(t){o||(nt(n.$$.fragment,t),nt(l.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),rt(l.$$.fragment,t),o=!1},d(t){t&&y(r),ct(n,t),ct(l,t)}}}let gr=class extends dt{constructor(t){super(),ut(this,t,null,$r,o,{})}};var vr={createOptions(t){t.dayMaxEvents=!1,t.dayCellFormat={day:"numeric"},t.dayPopoverFormat={month:"long",day:"numeric",year:"numeric"},t.moreLinkContent=void 0,t.buttonText.dayGridMonth="month",t.buttonText.close="Close",t.theme.uniform="ec-uniform",t.theme.dayFoot="ec-day-foot",t.theme.popup="ec-popup",t.theme.weekNumber="ec-week-number",t.view="dayGridMonth",t.weekNumbers=!1,t.weekNumberContent=void 0,t.views.dayGridMonth={buttonText:Ne,component:gr,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:ze("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){t._days=function(t){return pt([t.date,t.firstDay,t.hiddenDays],(t=>{let[e,n,r]=t,l=[],o=kt(e),i=7;for(;o.getUTCDay()!==n&&i;)Dt(o),--i;for(let t=0;t<7;++t)r.includes(o.getUTCDay())||l.push(kt(o)),_t(o);return l}))}(t),t._intlDayCell=Ge(t.locale,t.dayCellFormat),t._intlDayPopover=Ge(t.locale,t.dayPopoverFormat),t._hiddenEvents=mt({}),t._popupDate=mt(null),t._popupChunks=mt([])}};function yr(e){let n,o,i,s,a,c,u,d,f,h,m;return{c(){n=b("article"),o=b("div"),s=x(),a=b("div"),T(o,"class",i=e[0].eventTag),T(o,"style",e[3]),T(a,"class",c=e[0].eventBody),T(n,"class",e[2]),T(n,"role",d=e[5]?"button":void 0),T(n,"tabindex",f=e[5]?0:void 0)},m(t,r){v(t,n,r),g(n,o),g(n,s),g(n,a),e[38](n),h||(m=[p(u=gt.call(null,a,e[4])),_(n,"click",(function(){l(e[5])&&e[5].apply(this,arguments)})),_(n,"keydown",(function(){l(e[5]&&$t(e[5]))&&(e[5]&&$t(e[5])).apply(this,arguments)})),_(n,"mouseenter",(function(){l(e[25](e[6]))&&e[25](e[6]).apply(this,arguments)})),_(n,"mouseleave",(function(){l(e[25](e[7]))&&e[25](e[7]).apply(this,arguments)})),_(n,"pointerdown",(function(){l(e[8].action?.noAction)&&e[8].action?.noAction.apply(this,arguments)}))],h=!0)},p(t,r){e=t,1&r[0]&&i!==(i=e[0].eventTag)&&T(o,"class",i),8&r[0]&&T(o,"style",e[3]),1&r[0]&&c!==(c=e[0].eventBody)&&T(a,"class",c),u&&l(u.update)&&16&r[0]&&u.update.call(null,e[4]),4&r[0]&&T(n,"class",e[2]),32&r[0]&&d!==(d=e[5]?"button":void 0)&&T(n,"role",d),32&r[0]&&f!==(f=e[5]?0:void 0)&&T(n,"tabindex",f)},i:t,o:t,d(t){t&&y(n),e[38](null),h=!1,r(m)}}}function wr(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,{chunk:T}=e,{displayEventEnd:E,eventAllUpdated:S,eventBackgroundColor:M,eventTextColor:U,eventColor:N,eventContent:L,eventClassNames:H,eventClick:F,eventDidMount:A,eventMouseEnter:I,eventMouseLeave:j,resources:W,theme:O,_view:G,_intlEventTime:Y,_interaction:q,_tasks:X}=B("state");function V(t){return Gt(t)?e=>t({event:we(b),el:w,jsEvent:e,view:ae(l)}):void 0}return a(t,E,(t=>n(32,d=t))),a(t,S,(t=>n(40,o=t))),a(t,M,(t=>n(37,$=t))),a(t,U,(t=>n(34,h=t))),a(t,N,(t=>n(36,p=t))),a(t,L,(t=>n(31,u=t))),a(t,H,(t=>n(33,f=t))),a(t,F,(t=>n(28,r=t))),a(t,A,(t=>n(41,i=t))),a(t,I,(t=>n(6,g=t))),a(t,j,(t=>n(7,v=t))),a(t,W,(t=>n(35,m=t))),a(t,O,(t=>n(0,c=t))),a(t,G,(t=>n(29,l=t))),a(t,Y,(t=>n(30,s=t))),a(t,q,(t=>n(8,y=t))),R((()=>{Gt(i)&&i({event:we(b),timeText:_,el:w,view:ae(l)})})),z((()=>{Gt(o)&&Qt((()=>o({view:ae(l)})),"eau",X)})),t.$$set=t=>{"chunk"in t&&n(26,T=t.chunk)},t.$$.update=()=>{if(67108864&t.$$.dirty[0]&&n(27,b=T.event),671088649&t.$$.dirty[0]|124&t.$$.dirty[1]){n(3,x="");let t=b.backgroundColor||je(b,m)||$||p;t&&n(3,x=`background-color:${t};`);let e=b.textColor||We(b,m)||h;e&&n(3,x+=`color:${e};`),n(3,x+=b.styles.join(";")),n(2,k=[c.event,...ye(f,b,l)].join(" "))}1677721601&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(4,[_,C]=ge(T,d,u,c,s,l),C),268435456&t.$$.dirty[0]&&n(5,D=V(r))},[c,w,k,x,C,D,g,v,y,E,S,M,U,N,L,H,F,A,I,j,W,O,G,Y,q,V,T,b,r,l,s,u,d,f,h,m,p,$,function(t){P[t?"unshift":"push"]((()=>{w=t,n(1,w)}))}]}let br=class extends dt{constructor(t){super(),ut(this,t,wr,yr,o,{chunk:26},null,[-1,-1])}};function kr(t,e,n){const r=t.slice();return r[28]=e[n],r}function xr(t){let e,n,o,i,s,a,c,u,d,f,h,m,$,w,k=[],C=new Map,D=lt(t[2]);const E=t=>t[28].event;for(let e=0;e<D.length;e+=1){let n=kr(t,D,e),r=E(n);C.set(r,k[e]=Cr(r,n))}return{c(){e=b("div"),n=b("h4"),o=b("time"),s=x(),a=b("time"),f=x();for(let t=0;t<k.length;t+=1)k[t].c();T(o,"datetime",t[5]),T(a,"class",c=t[6].daySide),T(a,"datetime",t[5]),T(n,"class",d=t[6].dayHead),T(e,"class",h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")),T(e,"role","listitem")},m(r,c){v(r,e,c),g(e,n),g(n,o),g(n,s),g(n,a),g(e,f);for(let t=0;t<k.length;t+=1)k[t]&&k[t].m(e,null);t[27](e),m=!0,$||(w=[p(i=gt.call(null,o,t[8].format(t[0]))),p(u=gt.call(null,a,t[9].format(t[0]))),_(e,"pointerdown",(function(){l(t[7].action?.select)&&t[7].action?.select.apply(this,arguments)}))],$=!0)},p(r,s){t=r,(!m||32&s)&&T(o,"datetime",t[5]),i&&l(i.update)&&257&s&&i.update.call(null,t[8].format(t[0])),(!m||64&s&&c!==(c=t[6].daySide))&&T(a,"class",c),(!m||32&s)&&T(a,"datetime",t[5]),u&&l(u.update)&&513&s&&u.update.call(null,t[9].format(t[0])),(!m||64&s&&d!==(d=t[6].dayHead))&&T(n,"class",d),4&s&&(D=lt(t[2]),tt(),k=it(k,s,E,0,t,D,C,e,ot,Cr,null,kr),et()),(!m||89&s&&h!==(h=t[6].day+" "+t[6].weekdays?.[t[0].getUTCDay()]+(t[3]?" "+t[6].today:"")+(t[4]?" "+t[6].highlight:"")))&&T(e,"class",h)},i(t){if(!m){for(let t=0;t<D.length;t+=1)nt(k[t]);m=!0}},o(t){for(let t=0;t<k.length;t+=1)rt(k[t]);m=!1},d(n){n&&y(e);for(let t=0;t<k.length;t+=1)k[t].d();t[27](null),$=!1,r(w)}}}function Cr(t,e){let n,r,l;return r=new br({props:{chunk:e[28]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};4&n&&(l.chunk=e[28]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function _r(t){let e,n,r=t[2].length&&xr(t);return{c(){r&&r.c(),e=C()},m(t,l){r&&r.m(t,l),v(t,e,l),n=!0},p(t,n){let[l]=n;t[2].length?r?(r.p(t,l),4&l&&nt(r,1)):(r=xr(t),r.c(),nt(r,1),r.m(e.parentNode,e)):r&&(tt(),rt(r,1,1,(()=>{r=null})),et())},i(t){n||(nt(r),n=!0)},o(t){rt(r),n=!1},d(t){t&&y(e),r&&r.d(t)}}}function Dr(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,{date:p}=e,{_events:$,_interaction:g,_intlListDay:v,_intlListDaySide:y,_today:w,resources:b,filterEventsWithResources:k,highlightedDates:x,theme:C,validRange:_}=B("state");a(t,$,(t=>n(23,o=t))),a(t,g,(t=>n(7,d=t))),a(t,v,(t=>n(8,f=t))),a(t,y,(t=>n(9,h=t))),a(t,w,(t=>n(26,c=t))),a(t,b,(t=>n(21,r=t))),a(t,k,(t=>n(22,l=t))),a(t,x,(t=>n(25,s=t))),a(t,C,(t=>n(6,u=t))),a(t,_,(t=>n(24,i=t)));let D,T,E,S,M=[];return t.$$set=t=>{"date"in t&&n(0,p=t.date)},t.$$.update=()=>{if(67108865&t.$$.dirty&&n(3,D=Mt(p,c)),33554433&t.$$.dirty&&n(4,T=s.some((t=>Mt(t,p)))),16777217&t.$$.dirty&&n(20,E=Be(p,i)),1&t.$$.dirty&&n(5,S=St(p,10)),15728645&t.$$.dirty&&!E){n(2,M=[]);let t=p,e=_t(kt(p));for(let n of o)if(!Ee(n.display)&&De(n,t,e,l?r:void 0)){let r=pe(n,t,e);M.push(r)}$e(M)}1048579&t.$$.dirty&&m&&te(m,(()=>({allDay:!0,date:p,resource:void 0,dayEl:m,disabled:E})))},[p,m,M,D,T,S,u,d,f,h,$,g,v,y,w,b,k,x,C,_,E,r,l,o,i,s,c,function(t){P[t?"unshift":"push"]((()=>{m=t,n(1,m)}))}]}let Tr=class extends dt{constructor(t){super(),ut(this,t,Dr,_r,o,{date:0})}};function Er(t,e,n){const r=t.slice();return r[18]=e[n],r}function Sr(t){let e,n,r=lt(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Ur(Er(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(2&n){let i;for(r=lt(t[1]),i=0;i<r.length;i+=1){const o=Er(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=Ur(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function Mr(e){let n,o,i,s,a;return{c(){n=b("div"),T(n,"class",o=e[3].noEvents)},m(t,r){v(t,n,r),s||(a=[p(i=gt.call(null,n,e[0])),_(n,"click",e[12])],s=!0)},p(t,e){8&e&&o!==(o=t[3].noEvents)&&T(n,"class",o),i&&l(i.update)&&1&e&&i.update.call(null,t[0])},i:t,o:t,d(t){t&&y(n),s=!1,r(a)}}}function Ur(t){let e,n;return e=new Tr({props:{date:t[18]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.date=t[18]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Nr(t){let e,n,r,l,o,i,s;const a=[Mr,Sr],c=[];function u(t,e){return t[2]?0:1}return r=u(t),l=c[r]=a[r](t),{c(){e=b("div"),n=b("div"),l.c(),T(n,"class",o=t[3].content),T(e,"class",i=t[3].body)},m(l,o){v(l,e,o),g(e,n),c[r].m(n,null),t[15](e),s=!0},p(t,d){let[f]=d,h=r;r=u(t),r===h?c[r].p(t,f):(tt(),rt(c[h],1,1,(()=>{c[h]=null})),et(),l=c[r],l?l.p(t,f):(l=c[r]=a[r](t),l.c()),nt(l,1),l.m(n,null)),(!s||8&f&&o!==(o=t[3].content))&&T(n,"class",o),(!s||8&f&&i!==(i=t[3].body))&&T(e,"class",i)},i(t){s||(nt(l),s=!0)},o(t){rt(l),s=!1},d(n){n&&y(e),c[r].d(),t[15](null)}}}function Lr(t,e,n){let r,l,o,i,s,c,u,d,f,{_bodyEl:h,_events:m,_view:p,_viewDates:$,noEventsClick:g,noEventsContent:v,theme:y}=B("state");return a(t,h,(t=>n(4,u=t))),a(t,m,(t=>n(14,i=t))),a(t,p,(t=>n(16,r=t))),a(t,$,(t=>n(1,s=t))),a(t,g,(t=>n(17,l=t))),a(t,v,(t=>n(13,o=t))),a(t,y,(t=>n(3,c=t))),t.$$.update=()=>{if(16386&t.$$.dirty&&(n(2,d=!0),s.length)){let t=s[0],e=_t(kt(s.at(-1)));for(let r of i)if(!Ee(r.display)&&r.start<e&&r.end>t){n(2,d=!1);break}}8193&t.$$.dirty&&(n(0,f=Gt(o)?o():o),"string"==typeof f&&n(0,f={html:f}))},[f,s,d,c,u,h,m,p,$,g,v,y,function(t){Gt(l)&&l({jsEvent:t,view:ae(r)})},o,i,function(t){P[t?"unshift":"push"]((()=>{u=t,h.set(u)}))}]}let Rr=class extends dt{constructor(t){super(),ut(this,t,Lr,Nr,o,{})}};function zr(e){let n,r;return n=new Rr({}),{c(){st(n.$$.fragment)},m(t,e){at(n,t,e),r=!0},p:t,i(t){r||(nt(n.$$.fragment,t),r=!0)},o(t){rt(n.$$.fragment,t),r=!1},d(t){ct(n,t)}}}let Hr=class extends dt{constructor(t){super(),ut(this,t,null,zr,o,{})}};var Br={createOptions(t){t.buttonText.listDay="list",t.buttonText.listWeek="list",t.buttonText.listMonth="list",t.buttonText.listYear="list",t.listDayFormat={weekday:"long"},t.listDaySideFormat={year:"numeric",month:"long",day:"numeric"},t.noEventsClick=void 0,t.noEventsContent="No events",t.theme.daySide="ec-day-side",t.theme.eventTag="ec-event-tag",t.theme.noEvents="ec-no-events",t.view="listWeek",t.views.listDay={buttonText:Me,component:Hr,duration:{days:1},theme:ze("ec-list ec-day-view")},t.views.listWeek={buttonText:Ue,component:Hr,duration:{weeks:1},theme:ze("ec-list ec-week-view")},t.views.listMonth={buttonText:Ne,component:Hr,duration:{months:1},theme:ze("ec-list ec-month-view")},t.views.listYear={buttonText:Le,component:Hr,duration:{years:1},theme:ze("ec-list ec-year-view")}},createStores(t){t._intlListDay=Ge(t.locale,t.listDayFormat),t._intlListDaySide=Ge(t.locale,t.listDaySideFormat)}};const Fr=t=>({}),Ar=t=>({});function Pr(t,e,n){const r=t.slice();return r[9]=e[n],r}function Ir(t){let e,n,r,o,i,s;return{c(){e=b("time"),T(e,"class",n=t[1].time),T(e,"datetime",r=t[9][0])},m(n,r){v(n,e,r),i||(s=p(o=gt.call(null,e,t[9][2]?t[9][1]:"")),i=!0)},p(i,s){t=i,2&s&&n!==(n=t[1].time)&&T(e,"class",n),4&s&&r!==(r=t[9][0])&&T(e,"datetime",r),o&&l(o.update)&&4&s&&o.update.call(null,t[9][2]?t[9][1]:"")},d(t){t&&y(e),i=!1,s()}}}function jr(t){let e,n,r,o,i,s,a,u,m,$,k,C,_,D,E,S=lt(t[2]),M=[];for(let e=0;e<S.length;e+=1)M[e]=Ir(Pr(t,S,e));const U=t[8].lines,N=c(U,t,t[7],Ar),L=t[8].default,R=c(L,t,t[7],null);return{c(){e=b("div"),n=b("div"),i=x();for(let t=0;t<M.length;t+=1)M[t].c();a=x(),u=b("div"),m=b("div"),N&&N.c(),k=x(),R&&R.c(),T(n,"class",r=t[1].sidebarTitle),T(e,"class",s=t[1].sidebar),T(m,"class",$=t[1].lines),T(u,"class",C=t[1].days),T(u,"role","row")},m(r,l){v(r,e,l),g(e,n),g(e,i);for(let t=0;t<M.length;t+=1)M[t]&&M[t].m(e,null);v(r,a,l),v(r,u,l),g(u,m),N&&N.m(m,null),g(u,k),R&&R.m(u,null),_=!0,D||(E=p(o=gt.call(null,n,t[0])),D=!0)},p(t,i){let[a]=i;if((!_||2&a&&r!==(r=t[1].sidebarTitle))&&T(n,"class",r),o&&l(o.update)&&1&a&&o.update.call(null,t[0]),6&a){let n;for(S=lt(t[2]),n=0;n<S.length;n+=1){const r=Pr(t,S,n);M[n]?M[n].p(r,a):(M[n]=Ir(r),M[n].c(),M[n].m(e,null))}for(;n<M.length;n+=1)M[n].d(1);M.length=S.length}(!_||2&a&&s!==(s=t[1].sidebar))&&T(e,"class",s),N&&N.p&&(!_||128&a)&&f(N,U,t,t[7],_?d(U,t[7],a,Fr):h(t[7]),Ar),(!_||2&a&&$!==($=t[1].lines))&&T(m,"class",$),R&&R.p&&(!_||128&a)&&f(R,L,t,t[7],_?d(L,t[7],a,null):h(t[7]),null),(!_||2&a&&C!==(C=t[1].days))&&T(u,"class",C)},i(t){_||(nt(N,t),nt(R,t),_=!0)},o(t){rt(N,t),rt(R,t),_=!1},d(t){t&&(y(e),y(a),y(u)),w(M,t),N&&N.d(t),R&&R.d(t),D=!1,E()}}}function Wr(t,e,n){let r,l,o,i,{$$slots:s={},$$scope:c}=e,{allDayContent:u,theme:d,_times:f}=B("state");return a(t,u,(t=>n(6,r=t))),a(t,d,(t=>n(1,l=t))),a(t,f,(t=>n(2,o=t))),t.$$set=t=>{"$$scope"in t&&n(7,c=t.$$scope)},t.$$.update=()=>{64&t.$$.dirty&&n(0,i=function(t){let e,n="all-day";return t?(e=Gt(t)?t({text:n}):t,"string"==typeof e&&(e={html:e})):e={html:n},e}(r))},[i,l,o,u,d,f,r,c,s]}class Or extends dt{constructor(t){super(),ut(this,t,Wr,jr,o,{})}}function Gr(t,e,n){const r=t.slice();return r[23]=e[n],r}function Yr(t){let e;const n=t[16].default,r=c(n,t,t[18],null);return{c(){r&&r.c()},m(t,n){r&&r.m(t,n),e=!0},p(t,l){r&&r.p&&(!e||262144&l)&&f(r,n,t,t[18],e?d(n,t[18],l,null):h(t[18]),null)},i(t){e||(nt(r,t),e=!0)},o(t){rt(r,t),e=!1},d(t){r&&r.d(t)}}}function qr(t){let e,n;return{c(){e=b("div"),T(e,"class",n=t[3].line)},m(t,n){v(t,e,n)},p(t,r){8&r&&n!==(n=t[3].line)&&T(e,"class",n)},d(t){t&&y(e)}}}function Xr(t){let e,n=lt(t[2]),r=[];for(let e=0;e<n.length;e+=1)r[e]=qr(Gr(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);v(t,e,n)},p(t,l){if(12&l){let o;for(n=lt(t[2]),o=0;o<n.length;o+=1){const i=Gr(t,n,o);r[o]?r[o].p(i,l):(r[o]=qr(i),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&y(e),w(r,t)}}}function Vr(t){let e,n,r,l,o,i;return r=new Or({props:{$$slots:{lines:[Xr],default:[Yr]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),st(r.$$.fragment),T(n,"class",l=t[3].content),T(e,"class",o=t[3].body+(t[1]?" "+t[3].compact:""))},m(l,o){v(l,e,o),g(e,n),at(r,n,null),t[17](e),i=!0},p(t,s){let[a]=s;const c={};262156&a&&(c.$$scope={dirty:a,ctx:t}),r.$set(c),(!i||8&a&&l!==(l=t[3].content))&&T(n,"class",l),(!i||10&a&&o!==(o=t[3].body+(t[1]?" "+t[3].compact:"")))&&T(e,"class",o)},i(t){i||(nt(r.$$.fragment,t),i=!0)},o(t){rt(r.$$.fragment,t),i=!1},d(n){n&&y(e),ct(r),t[17](null)}}}function Jr(t,e,n){let r,l,o,i,s,c,u,d,f,h,{$$slots:p={},$$scope:$}=e,{_bodyEl:g,_viewDates:v,_slotTimeLimits:y,_times:w,scrollTime:b,slotDuration:k,slotHeight:x,theme:C}=B("state");a(t,g,(t=>n(21,u=t))),a(t,v,(t=>n(14,s=t))),a(t,y,(t=>n(20,o=t))),a(t,w,(t=>n(15,c=t))),a(t,b,(t=>n(13,i=t))),a(t,k,(t=>n(12,l=t))),a(t,x,(t=>n(19,r=t))),a(t,C,(t=>n(3,d=t)));let _=[];return t.$$set=t=>{"$$scope"in t&&n(18,$=t.$$scope)},t.$$.update=()=>{1&t.$$.dirty&&m(g,u=f,u),36864&t.$$.dirty&&(n(1,h=l.seconds>=3600),n(2,_.length=c.length,_)),24577&t.$$.dirty&&f&&n(0,f.scrollTop=((i.seconds-o.min.seconds)/l.seconds-.5)*r,f)},[f,h,_,d,g,v,y,w,b,k,x,C,l,i,s,c,p,function(t){P[t?"unshift":"push"]((()=>{f=t,n(0,f)}))},$]}let Kr=class extends dt{constructor(t){super(),ut(this,t,Jr,Vr,o,{})}};function Qr(t){let e,n,o,i,s,a,c,u,d,f,h,m,$;var w=t[10].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[33](t[10],["y","start"]))&&t[33](t[10],["y","start"]).apply(this,arguments)})));var C=t[10].resizer;function D(t,e){return{props:{event:t[0]}}}return C&&(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[33](t[10],["y","end"]))&&t[33](t[10],["y","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&st(n.$$.fragment),o=x(),i=b("div"),c=x(),u&&st(u.$$.fragment),T(i,"class",s=t[2].eventBody),T(e,"class",t[4]),T(e,"style",t[5]),T(e,"role",d=t[7]?"button":void 0),T(e,"tabindex",f=t[7]?0:void 0)},m(r,s){v(r,e,s),n&&at(n,e,null),g(e,o),g(e,i),g(e,c),u&&at(u,e,null),t[51](e),h=!0,m||($=[p(a=gt.call(null,i,t[6])),_(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),_(e,"keydown",(function(){l(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),_(e,"mouseenter",(function(){l(t[32](t[8],t[1]))&&t[32](t[8],t[1]).apply(this,arguments)})),_(e,"mouseleave",(function(){l(t[32](t[9],t[1]))&&t[32](t[9],t[1]).apply(this,arguments)})),_(e,"pointerdown",(function(){l(!Ee(t[1])&&!Te(t[1])&&t[33](t[10]))&&(!Ee(t[1])&&!Te(t[1])&&t[33](t[10])).apply(this,arguments)}))],m=!0)},p(r,c){if(t=r,1024&c[0]&&w!==(w=t[10].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[33](t[10],["y","start"]))&&t[33](t[10],["y","start"]).apply(this,arguments)})),st(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||4&c[0]&&s!==(s=t[2].eventBody))&&T(i,"class",s),a&&l(a.update)&&64&c[0]&&a.update.call(null,t[6]),1024&c[0]&&C!==(C=t[10].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}C?(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[33](t[10],["y","end"]))&&t[33](t[10],["y","end"]).apply(this,arguments)})),st(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(C){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||16&c[0])&&T(e,"class",t[4]),(!h||32&c[0])&&T(e,"style",t[5]),(!h||128&c[0]&&d!==(d=t[7]?"button":void 0))&&T(e,"role",d),(!h||128&c[0]&&f!==(f=t[7]?0:void 0))&&T(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[51](null),m=!1,r($)}}}function Zr(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,T,E,S,M,U,N,{date:L}=e,{chunk:H}=e,{displayEventEnd:F,eventAllUpdated:A,eventBackgroundColor:I,eventTextColor:j,eventColor:W,eventContent:O,eventClick:G,eventDidMount:Y,eventClassNames:q,eventMouseEnter:X,eventMouseLeave:V,slotEventOverlap:J,slotDuration:K,slotHeight:Q,resources:Z,theme:tt,_view:et,_intlEventTime:nt,_interaction:rt,_iClasses:lt,_slotTimeLimits:ot,_tasks:it}=B("state");function st(t,e){return!Te(e)&&Gt(t)?e=>t({event:we(D),el:_,jsEvent:e,view:ae(l)}):void 0}return a(t,F,(t=>n(40,d=t))),a(t,A,(t=>n(53,o=t))),a(t,I,(t=>n(47,v=t))),a(t,j,(t=>n(44,p=t))),a(t,W,(t=>n(46,g=t))),a(t,O,(t=>n(39,u=t))),a(t,G,(t=>n(36,r=t))),a(t,Y,(t=>n(54,i=t))),a(t,q,(t=>n(41,f=t))),a(t,X,(t=>n(8,k=t))),a(t,V,(t=>n(9,x=t))),a(t,J,(t=>n(43,m=t))),a(t,K,(t=>n(50,b=t))),a(t,Q,(t=>n(48,y=t))),a(t,Z,(t=>n(45,$=t))),a(t,tt,(t=>n(2,c=t))),a(t,et,(t=>n(37,l=t))),a(t,nt,(t=>n(38,s=t))),a(t,rt,(t=>n(10,C=t))),a(t,lt,(t=>n(42,h=t))),a(t,ot,(t=>n(49,w=t))),R((()=>{Gt(i)&&i({event:we(D),timeText:U,el:_,view:ae(l)})})),z((()=>{Gt(o)&&!Te(T)&&Qt((()=>o({view:ae(l)})),"eau",it)})),t.$$set=t=>{"date"in t&&n(34,L=t.date),"chunk"in t&&n(35,H=t.chunk)},t.$$.update=()=>{if(16&t.$$.dirty[1]&&n(0,D=H.event),39&t.$$.dirty[0]|1047640&t.$$.dirty[1]){n(1,T=D.display);let t=b.seconds,e=w.min.seconds,r=(H.start-L)/1e3,o=(H.end-L)/1e3,i=(r-e)/t*y,s=(o-r)/t*y||y,a=(w.max.seconds-r)/t*y,u=D.backgroundColor||je(D,$)||v||g,d=D.textColor||We(D,$)||p;n(5,S=`top:${i}px;min-height:${s}px;height:${s}px;max-height:${a}px;`),u&&n(5,S+=`background-color:${u};`),d&&n(5,S+=`color:${d};`),(!Ee(T)&&!Te(T)||Se(T))&&n(5,S+=`z-index:${H.column+1};left:${100/H.group.columns.length*H.column}%;width:${100/H.group.columns.length*(m?.5*(1+H.group.columns.length-H.column):1)}%;`),n(5,S+=D.styles.join(";")),n(4,E=[Ee(T)?c.bgEvent:c.event,...h([],D),...ye(f,D,l)].join(" "))}4&t.$$.dirty[0]|976&t.$$.dirty[1]&&n(6,[U,M]=ge(H,d,u,c,s,l),M),2&t.$$.dirty[0]|32&t.$$.dirty[1]&&n(7,N=!Ee(T)&&st(r,T))},[D,T,c,_,E,S,M,N,k,x,C,F,A,I,j,W,O,G,Y,q,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,st,function(t,e){return t.action?n=>t.action.drag(D,n,e,void 0,void 0,H.zeroDuration):void 0},L,H,r,l,s,u,d,f,h,m,p,$,g,v,y,w,b,function(t){P[t?"unshift":"push"]((()=>{_=t,n(3,_)}))}]}let tl=class extends dt{constructor(t){super(),ut(this,t,Zr,Qr,o,{date:34,chunk:35},null,[-1,-1])}};function el(e){let n,r;return{c(){n=b("div"),T(n,"class",r=e[1].nowIndicator),S(n,"top",e[0]+"px")},m(t,e){v(t,n,e)},p(t,e){let[l]=e;2&l&&r!==(r=t[1].nowIndicator)&&T(n,"class",r),1&l&&S(n,"top",t[0]+"px")},i:t,o:t,d(t){t&&y(n)}}}function nl(t,e,n){let r,l,o,i,s,c,u,{slotDuration:d,slotHeight:f,theme:h,_now:m,_today:p,_slotTimeLimits:$}=B("state");a(t,d,(t=>n(11,o=t))),a(t,f,(t=>n(9,r=t))),a(t,h,(t=>n(1,c=t))),a(t,m,(t=>n(13,s=t))),a(t,p,(t=>n(12,i=t))),a(t,$,(t=>n(10,l=t)));let g=0;return t.$$.update=()=>{if(12288&t.$$.dirty&&n(8,u=(s-i)/1e3/60),3840&t.$$.dirty){let t=o.seconds/60,e=l.min.seconds/60;n(0,g=(u-e)/t*r)}},[g,c,d,f,h,m,p,$,u,r,l,o,i,s]}class rl extends dt{constructor(t){super(),ut(this,t,nl,el,o,{})}}function ll(t,e,n){const r=t.slice();return r[40]=e[n],r}function ol(t,e,n){const r=t.slice();return r[40]=e[n],r}function il(t){let e,n,r=[],l=new Map,o=lt(t[3]);const i=t=>t[40].event;for(let e=0;e<o.length;e+=1){let n=ol(t,o,e),s=i(n);l.set(s,r[e]=sl(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){9&n[0]&&(o=lt(t[3]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,sl,e,ol),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function sl(t,e){let n,r,l;return r=new tl({props:{date:e[0],chunk:e[40]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1&n[0]&&(l.date=e[0]),8&n[0]&&(l.chunk=e[40]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function al(t){let e,n,r,l,o=[],i=new Map,s=t[5][1]&&cl(t),a=lt(t[2]);const c=t=>t[40].event;for(let e=0;e<a.length;e+=1){let n=ll(t,a,e),r=c(n);i.set(r,o[e]=ul(r,n))}let u=t[5][0]&&!t[5][0].event.allDay&&dl(t);return{c(){s&&s.c(),e=x();for(let t=0;t<o.length;t+=1)o[t].c();n=x(),u&&u.c(),r=C()},m(t,i){s&&s.m(t,i),v(t,e,i);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,i);v(t,n,i),u&&u.m(t,i),v(t,r,i),l=!0},p(t,l){t[5][1]?s?(s.p(t,l),32&l[0]&&nt(s,1)):(s=cl(t),s.c(),nt(s,1),s.m(e.parentNode,e)):s&&(tt(),rt(s,1,1,(()=>{s=null})),et()),5&l[0]&&(a=lt(t[2]),tt(),o=it(o,l,c,0,t,a,i,n.parentNode,ot,ul,n,ll),et()),t[5][0]&&!t[5][0].event.allDay?u?(u.p(t,l),32&l[0]&&nt(u,1)):(u=dl(t),u.c(),nt(u,1),u.m(r.parentNode,r)):u&&(tt(),rt(u,1,1,(()=>{u=null})),et())},i(t){if(!l){nt(s);for(let t=0;t<a.length;t+=1)nt(o[t]);nt(u),l=!0}},o(t){rt(s);for(let t=0;t<o.length;t+=1)rt(o[t]);rt(u),l=!1},d(t){t&&(y(e),y(n),y(r)),s&&s.d(t);for(let e=0;e<o.length;e+=1)o[e].d(t);u&&u.d(t)}}}function cl(t){let e,n;return e=new tl({props:{date:t[0],chunk:t[5][1]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.date=t[0]),32&n[0]&&(r.chunk=t[5][1]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ul(t,e){let n,r,l;return r=new tl({props:{date:e[0],chunk:e[40]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};1&n[0]&&(l.date=e[0]),4&n[0]&&(l.chunk=e[40]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function dl(t){let e,n;return e=new tl({props:{date:t[0],chunk:t[5][0]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.date=t[0]),32&n[0]&&(r.chunk=t[5][0]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function fl(t){let e,n;return e=new rl({}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function hl(t){let e,n,r,o,i,s,a,c,u,d,f,h,m,p=!t[4]&&il(t),$=!t[4]&&al(t),w=t[10]&&t[6]&&!t[4]&&fl();return{c(){e=b("div"),n=b("div"),p&&p.c(),o=x(),i=b("div"),$&&$.c(),a=x(),c=b("div"),w&&w.c(),T(n,"class",r=t[8].bgEvents),T(i,"class",s=t[8].events),T(c,"class",u=t[8].extra),T(e,"class",d=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[6]?" "+t[8].today:"")+(t[7]?" "+t[8].highlight:"")+(t[4]?" "+t[8].disabled:"")),T(e,"role","cell")},m(r,s){v(r,e,s),g(e,n),p&&p.m(n,null),g(e,o),g(e,i),$&&$.m(i,null),g(e,a),g(e,c),w&&w.m(c,null),t[36](e),f=!0,h||(m=_(e,"pointerdown",(function(){l(t[4]?void 0:t[9].action?.select)&&(t[4]?void 0:t[9].action?.select).apply(this,arguments)})),h=!0)},p(l,o){(t=l)[4]?p&&(tt(),rt(p,1,1,(()=>{p=null})),et()):p?(p.p(t,o),16&o[0]&&nt(p,1)):(p=il(t),p.c(),nt(p,1),p.m(n,null)),(!f||256&o[0]&&r!==(r=t[8].bgEvents))&&T(n,"class",r),t[4]?$&&(tt(),rt($,1,1,(()=>{$=null})),et()):$?($.p(t,o),16&o[0]&&nt($,1)):($=al(t),$.c(),nt($,1),$.m(i,null)),(!f||256&o[0]&&s!==(s=t[8].events))&&T(i,"class",s),t[10]&&t[6]&&!t[4]?w?1104&o[0]&&nt(w,1):(w=fl(),w.c(),nt(w,1),w.m(c,null)):w&&(tt(),rt(w,1,1,(()=>{w=null})),et()),(!f||256&o[0]&&u!==(u=t[8].extra))&&T(c,"class",u),(!f||465&o[0]&&d!==(d=t[8].day+" "+t[8].weekdays?.[t[0].getUTCDay()]+(t[6]?" "+t[8].today:"")+(t[7]?" "+t[8].highlight:"")+(t[4]?" "+t[8].disabled:"")))&&T(e,"class",d)},i(t){f||(nt(p),nt($),nt(w),f=!0)},o(t){rt(p),rt($),rt(w),f=!1},d(n){n&&y(e),p&&p.d(),$&&$.d(),w&&w.d(),t[36](null),h=!1,m()}}}function ml(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,{date:v}=e,{resource:y}=e,{_events:w,_iEvents:b,highlightedDates:k,nowIndicator:x,slotDuration:C,slotHeight:_,filterEventsWithResources:D,theme:T,resources:E,validRange:S,_interaction:M,_today:U,_slotTimeLimits:N}=B("state");a(t,w,(t=>n(30,s=t))),a(t,b,(t=>n(29,i=t))),a(t,k,(t=>n(34,f=t))),a(t,x,(t=>n(10,$=t))),a(t,C,(t=>n(38,l=t))),a(t,_,(t=>n(37,r=t))),a(t,D,(t=>n(32,u=t))),a(t,T,(t=>n(8,m=t))),a(t,E,(t=>n(31,c=t))),a(t,S,(t=>n(33,d=t))),a(t,M,(t=>n(9,p=t))),a(t,U,(t=>n(35,h=t))),a(t,N,(t=>n(28,o=t)));let L,R,z,H,F,A,I,j,W=[];function O(t,e){return e-=re(g).top,{allDay:!1,date:xt(xt(kt(v),o.min),l,Pt(e/r)),resource:y,dayEl:g,disabled:F}}return t.$$set=t=>{"date"in t&&n(0,v=t.date),"resource"in t&&n(24,y=t.resource)},t.$$.update=()=>{if(1&t.$$.dirty[0]|16&t.$$.dirty[1]&&n(6,z=Mt(v,h)),1&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(7,H=f.some((t=>Mt(t,v)))),1&t.$$.dirty[0]|4&t.$$.dirty[1]&&n(4,F=Be(v,d)),268435473&t.$$.dirty[0]&&(F||(n(26,I=xt(kt(v),o.min)),n(27,j=xt(kt(v),o.max)))),16777216&t.$$.dirty[0]|3&t.$$.dirty[1]&&n(25,A=y??(u?c:void 0)),1308622876&t.$$.dirty[0]&&!F){n(2,L=[]),n(3,R=[]);for(let t of s)if((!t.allDay||Ee(t.display))&&De(t,I,j,A)){let e=pe(t,I,j);if("background"===t.display)R.push(e);else L.push(e)}!function(t){if(!t.length)return;$e(t);let e={columns:[],end:t[0].end};for(let n of t){let t=0;if(n.start<e.end){for(;t<e.columns.length&&!(e.columns[t].at(-1).end<=n.start);++t);n.end>e.end&&(e.end=n.end)}else e={columns:[],end:n.end};e.columns.length<t+1&&e.columns.push([]),e.columns[t].push(n),n.group=e,n.column=t}}(L)}754974736&t.$$.dirty[0]&&(F||n(5,W=i.map((t=>t&&De(t,I,j,y)?pe(t,I,j):null)))),2&t.$$.dirty[0]&&g&&te(g,O)},[v,g,L,R,F,W,z,H,m,p,$,w,b,k,x,C,_,D,T,E,S,M,U,N,y,A,I,j,o,i,s,c,u,d,f,h,function(t){P[t?"unshift":"push"]((()=>{g=t,n(1,g)}))}]}let pl=class extends dt{constructor(t){super(),ut(this,t,ml,hl,o,{date:0,resource:24},null,[-1,-1])}};function $l(t){let e,n,o,i,s,a,c,u,d,f,h,m,$;var w=t[10].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[29](t[10],["x","start"]))&&t[29](t[10],["x","start"]).apply(this,arguments)})));var C=t[10].resizer;function D(t,e){return{props:{event:t[0]}}}return C&&(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[29](t[10],["x","end"]))&&t[29](t[10],["x","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&st(n.$$.fragment),o=x(),i=b("div"),c=x(),u&&st(u.$$.fragment),T(i,"class",s=t[2].eventBody),T(e,"class",t[4]),T(e,"style",t[5]),T(e,"role",d=t[7]?"button":void 0),T(e,"tabindex",f=t[7]?0:void 0)},m(r,s){v(r,e,s),n&&at(n,e,null),g(e,o),g(e,i),g(e,c),u&&at(u,e,null),t[45](e),h=!0,m||($=[p(a=gt.call(null,i,t[6])),_(e,"click",(function(){l(t[7])&&t[7].apply(this,arguments)})),_(e,"keydown",(function(){l(t[7]&&$t(t[7]))&&(t[7]&&$t(t[7])).apply(this,arguments)})),_(e,"mouseenter",(function(){l(t[28](t[8],t[1]))&&t[28](t[8],t[1]).apply(this,arguments)})),_(e,"mouseleave",(function(){l(t[28](t[9],t[1]))&&t[28](t[9],t[1]).apply(this,arguments)})),_(e,"pointerdown",(function(){l(!Te(t[1])&&t[29](t[10]))&&(!Te(t[1])&&t[29](t[10])).apply(this,arguments)}))],m=!0)},p(r,c){if(t=r,1024&c[0]&&w!==(w=t[10].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[29](t[10],["x","start"]))&&t[29](t[10],["x","start"]).apply(this,arguments)})),st(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||4&c[0]&&s!==(s=t[2].eventBody))&&T(i,"class",s),a&&l(a.update)&&64&c[0]&&a.update.call(null,t[6]),1024&c[0]&&C!==(C=t[10].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}C?(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[29](t[10],["x","end"]))&&t[29](t[10],["x","end"]).apply(this,arguments)})),st(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(C){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||16&c[0])&&T(e,"class",t[4]),(!h||32&c[0])&&T(e,"style",t[5]),(!h||128&c[0]&&d!==(d=t[7]?"button":void 0))&&T(e,"role",d),(!h||128&c[0]&&f!==(f=t[7]?0:void 0))&&T(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[45](null),m=!1,r($)}}}function gl(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,{chunk:T}=e,{longChunks:E={}}=e,{displayEventEnd:S,eventAllUpdated:M,eventBackgroundColor:U,eventTextColor:N,eventClick:L,eventColor:H,eventContent:F,eventClassNames:A,eventDidMount:I,eventMouseEnter:j,eventMouseLeave:W,resources:O,theme:G,_view:Y,_intlEventTime:q,_interaction:X,_iClasses:V,_tasks:J}=B("state");a(t,S,(t=>n(38,d=t))),a(t,M,(t=>n(47,o=t))),a(t,U,(t=>n(44,g=t))),a(t,N,(t=>n(41,m=t))),a(t,L,(t=>n(34,r=t))),a(t,H,(t=>n(43,$=t))),a(t,F,(t=>n(37,u=t))),a(t,A,(t=>n(39,f=t))),a(t,I,(t=>n(48,i=t))),a(t,j,(t=>n(8,v=t))),a(t,W,(t=>n(9,y=t))),a(t,O,(t=>n(42,p=t))),a(t,G,(t=>n(2,c=t))),a(t,Y,(t=>n(35,l=t))),a(t,q,(t=>n(36,s=t))),a(t,X,(t=>n(10,w=t))),a(t,V,(t=>n(40,h=t)));let K,Q,Z=1;function tt(t,e){return!Te(e)&&Gt(t)?e=>t({event:we(k),el:b,jsEvent:e,view:ae(l)}):void 0}return R((()=>{Gt(i)&&i({event:we(k),timeText:D,el:b,view:ae(l)})})),z((()=>{Gt(o)&&!Te(K)&&Qt((()=>o({view:ae(l)})),"eau",J)})),t.$$set=t=>{"chunk"in t&&n(30,T=t.chunk),"longChunks"in t&&n(31,E=t.longChunks)},t.$$.update=()=>{if(1073741824&t.$$.dirty[0]&&n(0,k=T.event),1073741863&t.$$.dirty[0]|16148&t.$$.dirty[1]){n(1,K=k.display);let t=k.backgroundColor||je(k,p)||g||$,e=k.textColor||We(k,p)||m;Ee(K)?n(5,C=`width:calc(${100*T.days}% + ${T.days-1}px);`):n(5,C=`width:calc(${100*T.days}% + ${7*(T.days-1)}px);margin-top:${k._margin??Z}px;`),t&&n(5,C+=`background-color:${t};`),e&&n(5,C+=`color:${e};`),n(5,C+=k.styles.join(";")),n(4,x=[Ee(K)?c.bgEvent:c.event,...h([],k),...ye(f,k,l)].join(" "))}1073741828&t.$$.dirty[0]|240&t.$$.dirty[1]&&n(6,[D,_]=ge(T,d,u,c,s,l),_),2&t.$$.dirty[0]|8&t.$$.dirty[1]&&n(7,Q=tt(r,K))},[k,K,c,b,x,C,_,Q,v,y,w,S,M,U,N,L,H,F,A,I,j,W,O,G,Y,q,X,V,tt,function(t,e){return t.action?n=>t.action.drag(k,n,e,null,re(b).top-re(le(b,1)).top,T.zeroDuration):void 0},T,E,function(){b&&n(33,Z=Ce(T,E,oe(b)))},Z,r,l,s,u,d,f,h,m,p,$,g,function(t){P[t?"unshift":"push"]((()=>{b=t,n(3,b)}))}]}let vl=class extends dt{constructor(t){super(),ut(this,t,gl,$l,o,{chunk:30,longChunks:31,reposition:32},null,[-1,-1])}get reposition(){return this.$$.ctx[32]}};function yl(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function wl(t,e,n){const r=t.slice();return r[26]=e[n],r}function bl(t){let e,n,r=[],l=new Map,o=lt(t[6]);const i=t=>t[26].event;for(let e=0;e<o.length;e+=1){let n=wl(t,o,e),s=i(n);l.set(s,r[e]=kl(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){64&n&&(o=lt(t[6]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,kl,e,wl),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function kl(t,e){let n,r,l;return r=new vl({props:{chunk:e[26]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};64&n&&(l.chunk=e[26]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function xl(t){let e,n,r,l;return n=new vl({props:{chunk:t[2][0]}}),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[10].events+" "+t[10].preview)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(t,o){const i={};4&o&&(i.chunk=t[2][0]),n.$set(i),(!l||1024&o&&r!==(r=t[10].events+" "+t[10].preview))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function Cl(t){let e,n,r=[],l=new Map,o=lt(t[5]);const i=t=>t[26].event;for(let e=0;e<o.length;e+=1){let n=yl(t,o,e),s=i(n);l.set(s,r[e]=_l(s,n))}return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,l){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,l);v(t,e,l),n=!0},p(t,n){546&n&&(o=lt(t[5]),tt(),r=it(r,n,i,0,t,o,l,e.parentNode,ot,_l,e,yl),et())},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(r[t]);n=!0}},o(t){for(let t=0;t<r.length;t+=1)rt(r[t]);n=!1},d(t){t&&y(e);for(let e=0;e<r.length;e+=1)r[e].d(t)}}}function _l(t,e){let n,r,l,o=e[28];const i=()=>e[24](r,o),s=()=>e[24](null,o);let a={chunk:e[26],longChunks:e[1]};return r=new vl({props:a}),i(),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){o!==(e=t)[28]&&(s(),o=e[28],i());const l={};32&n&&(l.chunk=e[26]),2&n&&(l.longChunks=e[1]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),s(),ct(r,t)}}}function Dl(t){let e,n,r,o,i,s,a,c,u,d,f,h=t[2][0]&&Mt(t[2][0].date,t[0])&&!t[4],m=!t[4]&&bl(t),p=h&&xl(t),$=!t[4]&&Cl(t);return{c(){e=b("div"),n=b("div"),m&&m.c(),o=x(),p&&p.c(),i=x(),s=b("div"),$&&$.c(),T(n,"class",r=t[10].bgEvents),T(s,"class",a=t[10].events),T(e,"class",c=t[10].day+" "+t[10].weekdays?.[t[0].getUTCDay()]+(t[7]?" "+t[10].today:"")+(t[8]?" "+t[10].highlight:"")+(t[4]?" "+t[10].disabled:"")),T(e,"role","cell")},m(r,a){v(r,e,a),g(e,n),m&&m.m(n,null),g(e,o),p&&p.m(e,null),g(e,i),g(e,s),$&&$.m(s,null),t[25](e),u=!0,d||(f=_(e,"pointerdown",(function(){l(t[4]?void 0:t[11].action?.select)&&(t[4]?void 0:t[11].action?.select).apply(this,arguments)})),d=!0)},p(l,o){let[d]=o;(t=l)[4]?m&&(tt(),rt(m,1,1,(()=>{m=null})),et()):m?(m.p(t,d),16&d&&nt(m,1)):(m=bl(t),m.c(),nt(m,1),m.m(n,null)),(!u||1024&d&&r!==(r=t[10].bgEvents))&&T(n,"class",r),21&d&&(h=t[2][0]&&Mt(t[2][0].date,t[0])&&!t[4]),h?p?(p.p(t,d),21&d&&nt(p,1)):(p=xl(t),p.c(),nt(p,1),p.m(e,i)):p&&(tt(),rt(p,1,1,(()=>{p=null})),et()),t[4]?$&&(tt(),rt($,1,1,(()=>{$=null})),et()):$?($.p(t,d),16&d&&nt($,1)):($=Cl(t),$.c(),nt($,1),$.m(s,null)),(!u||1024&d&&a!==(a=t[10].events))&&T(s,"class",a),(!u||1425&d&&c!==(c=t[10].day+" "+t[10].weekdays?.[t[0].getUTCDay()]+(t[7]?" "+t[10].today:"")+(t[8]?" "+t[10].highlight:"")+(t[4]?" "+t[10].disabled:"")))&&T(e,"class",c)},i(t){u||(nt(m),nt(p),nt($),u=!0)},o(t){rt(m),rt(p),rt($),u=!1},d(n){n&&y(e),m&&m.d(),p&&p.d(),$&&$.d(),t[25](null),d=!1,f()}}}function Tl(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,{date:p}=e,{chunks:$}=e,{bgChunks:g}=e,{longChunks:v}=e,{iChunks:y=[]}=e,{resource:w}=e,{highlightedDates:b,theme:k,validRange:x,_interaction:C,_today:_}=B("state");a(t,b,(t=>n(22,l=t))),a(t,k,(t=>n(10,i=t))),a(t,x,(t=>n(21,r=t))),a(t,C,(t=>n(11,s=t))),a(t,_,(t=>n(23,o=t)));let D=[];return t.$$set=t=>{"date"in t&&n(0,p=t.date),"chunks"in t&&n(17,$=t.chunks),"bgChunks"in t&&n(18,g=t.bgChunks),"longChunks"in t&&n(1,v=t.longChunks),"iChunks"in t&&n(2,y=t.iChunks),"resource"in t&&n(19,w=t.resource)},t.$$.update=()=>{131073&t.$$.dirty&&n(5,u=$.filter((t=>Mt(t.date,p)))),262145&t.$$.dirty&&n(6,d=g.filter((t=>Mt(t.date,p)))),8388609&t.$$.dirty&&n(7,f=Mt(p,o)),4194305&t.$$.dirty&&n(8,h=l.some((t=>Mt(t,p)))),2097153&t.$$.dirty&&n(4,m=Be(p,r)),524313&t.$$.dirty&&c&&te(c,(()=>({allDay:!0,date:p,resource:w,dayEl:c,disabled:m})))},[p,v,y,c,m,u,d,f,h,D,i,s,b,k,x,C,_,$,g,w,function(){m||_e(D,u)},r,l,o,function(t,e){P[t?"unshift":"push"]((()=>{D[e]=t,n(9,D)}))},function(t){P[t?"unshift":"push"]((()=>{c=t,n(3,c)}))}]}let El=class extends dt{constructor(t){super(),ut(this,t,Tl,Dl,o,{date:0,chunks:17,bgChunks:18,longChunks:1,iChunks:2,resource:19,reposition:20})}get reposition(){return this.$$.ctx[20]}};function Sl(t,e,n){const r=t.slice();return r[26]=e[n],r[27]=e,r[28]=n,r}function Ml(t){let e,n,r=t[28];const l=()=>t[23](e,r),o=()=>t[23](null,r);let i={date:t[26],chunks:t[2],bgChunks:t[3],longChunks:t[4],iChunks:t[5],resource:t[1]};return e=new El({props:i}),l(),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){r!==t[28]&&(o(),r=t[28],l());const i={};1&n&&(i.date=t[26]),4&n&&(i.chunks=t[2]),8&n&&(i.bgChunks=t[3]),16&n&&(i.longChunks=t[4]),32&n&&(i.iChunks=t[5]),2&n&&(i.resource=t[1]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ct(e,t)}}}function Ul(t){let e,n,r,l,o=lt(t[0]),i=[];for(let e=0;e<o.length;e+=1)i[e]=Ml(Sl(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=C()},m(o,s){for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(o,s);v(o,e,s),n=!0,r||(l=_(window,"resize",t[13]),r=!0)},p(t,n){let[r]=n;if(127&r){let n;for(o=lt(t[0]),n=0;n<o.length;n+=1){const l=Sl(t,o,n);i[n]?(i[n].p(l,r),nt(i[n],1)):(i[n]=Ml(l),i[n].c(),nt(i[n],1),i[n].m(e.parentNode,e))}for(tt(),n=o.length;n<i.length;n+=1)s(n);et()}},i(t){if(!n){for(let t=0;t<o.length;t+=1)nt(i[t]);n=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);n=!1},d(t){t&&y(e),w(i,t),r=!1,l()}}}function Nl(t,e,n){let r,l,o,i,s,c,{dates:u}=e,{resource:d}=e,{_events:f,_iEvents:h,_queue2:m,hiddenDays:p,resources:$,filterEventsWithResources:g,validRange:v}=B("state");a(t,f,(t=>n(19,o=t))),a(t,h,(t=>n(18,l=t))),a(t,p,(t=>n(17,r=t))),a(t,$,(t=>n(20,i=t))),a(t,g,(t=>n(21,s=t))),a(t,v,(t=>n(22,c=t)));let y,w,b,k,x,C,_=[],D=[],T={};function E(){Jt((()=>_e(D,u)),T,m)}return t.$$set=t=>{"dates"in t&&n(0,u=t.dates),"resource"in t&&n(1,d=t.resource)},t.$$.update=()=>{if(4194305&t.$$.dirty&&(n(14,k=Fe(u[0],c)),n(15,x=_t(kt(Fe(u.at(-1),c))))),3145730&t.$$.dirty&&n(16,C=d??(s?i:void 0)),770060&t.$$.dirty){n(2,y=[]),n(3,w=[]);for(let t of o)if(t.allDay&&De(t,k,x,C)){let e=pe(t,k,x);Ee(t.display)?w.push(e):y.push(e)}xe(w,r),n(4,b=xe(y,r)),E()}442370&t.$$.dirty&&n(5,_=l.map((t=>{let e;return t&&t.allDay&&De(t,k,x,d)?(e=pe(t,k,x),xe([e],r)):e=null,e})))},[u,d,y,w,b,_,D,f,h,p,$,g,v,E,k,x,C,r,l,o,i,s,c,function(t,e){P[t?"unshift":"push"]((()=>{D[e]=t,n(6,D)}))}]}class Ll extends dt{constructor(t){super(),ut(this,t,Nl,Ul,o,{dates:0,resource:1})}}function Rl(t,e,n){const r=t.slice();return r[10]=e[n],r}function zl(t,e,n){const r=t.slice();return r[10]=e[n],r}function Hl(t){let e,n,r,o,i,s,a,c,u;return{c(){e=b("div"),n=b("time"),s=x(),T(n,"datetime",r=St(t[10],10)),T(n,"aria-label",o=t[2].format(t[10])),T(e,"class",a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()]),T(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),g(e,s),c||(u=p(i=gt.call(null,n,t[3].format(t[10]))),c=!0)},p(s,c){t=s,2&c&&r!==(r=St(t[10],10))&&T(n,"datetime",r),6&c&&o!==(o=t[2].format(t[10]))&&T(n,"aria-label",o),i&&l(i.update)&&10&c&&i.update.call(null,t[3].format(t[10])),3&c&&a!==(a=t[0].day+" "+t[0].weekdays?.[t[10].getUTCDay()])&&T(e,"class",a)},d(t){t&&y(e),c=!1,u()}}}function Bl(t){let e,n=lt(t[1]),r=[];for(let e=0;e<n.length;e+=1)r[e]=Hl(zl(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);v(t,e,n)},p(t,l){if(15&l){let o;for(n=lt(t[1]),o=0;o<n.length;o+=1){const i=zl(t,n,o);r[o]?r[o].p(i,l):(r[o]=Hl(i),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&y(e),w(r,t)}}}function Fl(t){let e,n,r,l,o,i,s,a,c;return r=new Or({props:{$$slots:{default:[Al]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),st(r.$$.fragment),l=x(),o=b("div"),T(o,"class",i=t[0].hiddenScroll),T(n,"class",s=t[0].content),T(e,"class",a=t[0].allDay)},m(t,i){v(t,e,i),g(e,n),at(r,n,null),g(n,l),g(n,o),c=!0},p(t,l){const u={};32770&l&&(u.$$scope={dirty:l,ctx:t}),r.$set(u),(!c||1&l&&i!==(i=t[0].hiddenScroll))&&T(o,"class",i),(!c||1&l&&s!==(s=t[0].content))&&T(n,"class",s),(!c||1&l&&a!==(a=t[0].allDay))&&T(e,"class",a)},i(t){c||(nt(r.$$.fragment,t),c=!0)},o(t){rt(r.$$.fragment,t),c=!1},d(t){t&&y(e),ct(r)}}}function Al(t){let e,n;return e=new Ll({props:{dates:t[1]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.dates=t[1]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Pl(t){let e,n;return e=new pl({props:{date:t[10]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};2&n&&(r.date=t[10]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Il(t){let e,n,r=lt(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=Pl(Rl(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(2&n){let i;for(r=lt(t[1]),i=0;i<r.length;i+=1){const o=Rl(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=Pl(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function jl(t){let e,n,r,l,o,i,s,a,c,u;n=new Or({props:{$$slots:{default:[Bl]},$$scope:{ctx:t}}});let d=t[4]&&Fl(t);return c=new Kr({props:{$$slots:{default:[Il]},$$scope:{ctx:t}}}),{c(){e=b("div"),st(n.$$.fragment),r=x(),l=b("div"),s=x(),d&&d.c(),a=x(),st(c.$$.fragment),T(l,"class",o=t[0].hiddenScroll),T(e,"class",i=t[0].header)},m(t,o){v(t,e,o),at(n,e,null),g(e,r),g(e,l),v(t,s,o),d&&d.m(t,o),v(t,a,o),at(c,t,o),u=!0},p(t,r){let[s]=r;const f={};32783&s&&(f.$$scope={dirty:s,ctx:t}),n.$set(f),(!u||1&s&&o!==(o=t[0].hiddenScroll))&&T(l,"class",o),(!u||1&s&&i!==(i=t[0].header))&&T(e,"class",i),t[4]?d?(d.p(t,s),16&s&&nt(d,1)):(d=Fl(t),d.c(),nt(d,1),d.m(a.parentNode,a)):d&&(tt(),rt(d,1,1,(()=>{d=null})),et());const h={};32770&s&&(h.$$scope={dirty:s,ctx:t}),c.$set(h)},i(t){u||(nt(n.$$.fragment,t),nt(d),nt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(y(e),y(s),y(a)),ct(n),d&&d.d(t),ct(c,t)}}}function Wl(t,e,n){let r,l,o,i,s,{_viewDates:c,_intlDayHeader:u,_intlDayHeaderAL:d,allDaySlot:f,theme:h}=B("state");return a(t,c,(t=>n(1,l=t))),a(t,u,(t=>n(3,i=t))),a(t,d,(t=>n(2,o=t))),a(t,f,(t=>n(4,s=t))),a(t,h,(t=>n(0,r=t))),[r,l,o,i,s,c,u,d,f,h]}let Ol=class extends dt{constructor(t){super(),ut(this,t,Wl,jl,o,{})}};var Gl={createOptions(t){t.buttonText.timeGridDay="day",t.buttonText.timeGridWeek="week",t.view="timeGridWeek",t.views.timeGridDay={buttonText:Me,component:Ol,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ze("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.timeGridWeek={buttonText:Ue,component:Ol,duration:{weeks:1},theme:ze("ec-time-grid ec-week-view")}},createStores(t){t._slotTimeLimits=function(t){return pt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>Je(...t)))}(t),t._times=function(t){return pt([t.slotDuration,t.slotLabelInterval,t._slotTimeLimits,t._intlSlotLabel],(t=>Ve(Tt(wt()),...t)))}(t)}};function Yl(e){let n,r,o,i;return{c(){n=b("span"),T(n,"aria-label",e[2])},m(t,l){v(t,n,l),e[9](n),o||(i=p(r=gt.call(null,n,e[1])),o=!0)},p(t,e){let[o]=e;4&o&&T(n,"aria-label",t[2]),r&&l(r.update)&&2&o&&r.update.call(null,t[1])},i:t,o:t,d(t){t&&y(n),e[9](null),o=!1,i()}}}function ql(t,e,n){let r,l,o,{resource:i}=e,{date:s}=e,{resourceLabelContent:c,resourceLabelDidMount:u,_intlDayHeaderAL:d}=B("state");a(t,c,(t=>n(8,o=t))),a(t,u,(t=>n(11,l=t))),a(t,d,(t=>n(10,r=t)));const f=H();let h,m,p;return R((()=>{Gt(l)&&l({resource:i,date:s?Et(s):void 0,el:h})})),z((()=>{s?n(2,p=r.format(s)+", "+h.innerText):(n(2,p=void 0),f("text",h.innerText))})),t.$$set=t=>{"resource"in t&&n(6,i=t.resource),"date"in t&&n(7,s=t.date)},t.$$.update=()=>{448&t.$$.dirty&&n(1,m=o?Gt(o)?o({resource:i,date:s?Et(s):void 0}):o:i.title)},[h,m,p,c,u,d,i,s,o,function(t){P[t?"unshift":"push"]((()=>{h=t,n(0,h)}))}]}let Xl=class extends dt{constructor(t){super(),ut(this,t,ql,Yl,o,{resource:6,date:7})}};function Vl(t,e,n){const r=t.slice();return r[17]=e[n],r}function Jl(t,e,n){const r=t.slice();return r[20]=e[n],r}function Kl(t,e,n){const r=t.slice();return r[26]=e[n],r}function Ql(t,e,n){const r=t.slice();return r[23]=e[n],r}function Zl(t,e,n){const r=t.slice();return r[26]=e[n],r}function to(t,e,n){const r=t.slice();return r[17]=e[n],r[32]=n,r}function eo(t,e,n){const r=t.slice();return r[20]=e[n],r}function no(t){let e,n,r,l;return n=new Xl({props:{resource:t[17]}}),n.$on("text",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t[16](t[32],...n)})),{c(){e=b("div"),st(n.$$.fragment),T(e,"class",r=t[5].day)},m(t,r){v(t,e,r),at(n,e,null),l=!0},p(o,i){t=o;const s={};8&i[0]&&(s.resource=t[17]),n.$set(s),(!l||32&i[0]&&r!==(r=t[5].day))&&T(e,"class",r)},i(t){l||(nt(n.$$.fragment,t),l=!0)},o(t){rt(n.$$.fragment,t),l=!1},d(t){t&&y(e),ct(n)}}}function ro(e){let n,r,o,i,s,a,c,u;return{c(){n=b("div"),r=b("time"),T(r,"datetime",o=St(e[17],10)),T(r,"aria-label",i=e[6].format(e[17])),T(n,"class",a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])},m(t,l){v(t,n,l),g(n,r),c||(u=p(s=gt.call(null,r,e[7].format(e[17]))),c=!0)},p(t,c){e=t,8&c[0]&&o!==(o=St(e[17],10))&&T(r,"datetime",o),72&c[0]&&i!==(i=e[6].format(e[17]))&&T(r,"aria-label",i),s&&l(s.update)&&136&c[0]&&s.update.call(null,e[7].format(e[17])),40&c[0]&&a!==(a=e[5].day+" "+e[5].weekdays?.[e[17].getUTCDay()])&&T(n,"class",a)},i:t,o:t,d(t){t&&y(n),c=!1,u()}}}function lo(t){let e,n,r,l=lt(t[3][1]),o=[];for(let e=0;e<l.length;e+=1)o[e]=so(eo(t,l,e));const i=t=>rt(o[t],1,1,(()=>{o[t]=null}));return{c(){e=b("div");for(let t=0;t<o.length;t+=1)o[t].c();T(e,"class",n=t[5].days)},m(t,n){v(t,e,n);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(e,null);r=!0},p(t,s){if(252&s[0]){let n;for(l=lt(t[3][1]),n=0;n<l.length;n+=1){const r=eo(t,l,n);o[n]?(o[n].p(r,s),nt(o[n],1)):(o[n]=so(r),o[n].c(),nt(o[n],1),o[n].m(e,null))}for(tt(),n=l.length;n<o.length;n+=1)i(n);et()}(!r||32&s[0]&&n!==(n=t[5].days))&&T(e,"class",n)},i(t){if(!r){for(let t=0;t<l.length;t+=1)nt(o[t]);r=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)rt(o[t]);r=!1},d(t){t&&y(e),w(o,t)}}}function oo(e){let n,r,o,i,s,a,c,u,d;return{c(){n=b("div"),r=b("time"),a=x(),T(r,"datetime",o=St(e[20],10)),T(r,"aria-label",i=""+(e[4][e[32]]+e[6].format(e[20]))),T(n,"class",c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()]),T(n,"role","columnheader")},m(t,l){v(t,n,l),g(n,r),g(n,a),u||(d=p(s=gt.call(null,r,e[7].format(e[20]))),u=!0)},p(t,a){e=t,8&a[0]&&o!==(o=St(e[20],10))&&T(r,"datetime",o),88&a[0]&&i!==(i=""+(e[4][e[32]]+e[6].format(e[20])))&&T(r,"aria-label",i),s&&l(s.update)&&136&a[0]&&s.update.call(null,e[7].format(e[20])),40&a[0]&&c!==(c=e[5].day+" "+e[5].weekdays?.[e[20].getUTCDay()])&&T(n,"class",c)},i:t,o:t,d(t){t&&y(n),u=!1,d()}}}function io(t){let e,n,r,l,o;return n=new Xl({props:{resource:t[20],date:t[17]}}),{c(){e=b("div"),st(n.$$.fragment),r=x(),T(e,"class",l=t[5].day),T(e,"role","columnheader")},m(t,l){v(t,e,l),at(n,e,null),g(e,r),o=!0},p(t,r){const i={};8&r[0]&&(i.resource=t[20]),8&r[0]&&(i.date=t[17]),n.$set(i),(!o||32&r[0]&&l!==(l=t[5].day))&&T(e,"class",l)},i(t){o||(nt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&y(e),ct(n)}}}function so(t){let e,n,r,l;const o=[io,oo],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),r=C()},m(t,n){i[e].m(t,n),v(t,r,n),l=!0},p(t,l){let a=e;e=s(t),e===a?i[e].p(t,l):(tt(),rt(i[a],1,1,(()=>{i[a]=null})),et(),n=i[e],n?n.p(t,l):(n=i[e]=o[e](t),n.c()),nt(n,1),n.m(r.parentNode,r))},i(t){l||(nt(n),l=!0)},o(t){rt(n),l=!1},d(t){t&&y(r),i[e].d(t)}}}function ao(t){let e,n,r,l,o,i,s;const a=[ro,no],c=[];function u(t,e){return t[2]?0:1}n=u(t),r=c[n]=a[n](t);let d=t[3][1].length>1&&lo(t);return{c(){e=b("div"),r.c(),l=x(),d&&d.c(),o=x(),T(e,"class",i=t[5].resource)},m(t,r){v(t,e,r),c[n].m(e,null),g(e,l),d&&d.m(e,null),g(e,o),s=!0},p(t,f){let h=n;n=u(t),n===h?c[n].p(t,f):(tt(),rt(c[h],1,1,(()=>{c[h]=null})),et(),r=c[n],r?r.p(t,f):(r=c[n]=a[n](t),r.c()),nt(r,1),r.m(e,l)),t[3][1].length>1?d?(d.p(t,f),8&f[0]&&nt(d,1)):(d=lo(t),d.c(),nt(d,1),d.m(e,o)):d&&(tt(),rt(d,1,1,(()=>{d=null})),et()),(!s||32&f[0]&&i!==(i=t[5].resource))&&T(e,"class",i)},i(t){s||(nt(r),nt(d),s=!0)},o(t){rt(r),rt(d),s=!1},d(t){t&&y(e),c[n].d(),d&&d.d()}}}function co(t){let e,n,r=lt(t[3][0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=ao(to(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(252&n[0]){let i;for(r=lt(t[3][0]),i=0;i<r.length;i+=1){const o=to(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=ao(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function uo(t){let e,n,r,l,o,i,s,a,c;return r=new Or({props:{$$slots:{default:[go]},$$scope:{ctx:t}}}),{c(){e=b("div"),n=b("div"),st(r.$$.fragment),l=x(),o=b("div"),T(o,"class",i=t[5].hiddenScroll),T(n,"class",s=t[5].content),T(e,"class",a=t[5].allDay)},m(t,i){v(t,e,i),g(e,n),at(r,n,null),g(n,l),g(n,o),c=!0},p(t,l){const u={};39&l[0]|16&l[1]&&(u.$$scope={dirty:l,ctx:t}),r.$set(u),(!c||32&l[0]&&i!==(i=t[5].hiddenScroll))&&T(o,"class",i),(!c||32&l[0]&&s!==(s=t[5].content))&&T(n,"class",s),(!c||32&l[0]&&a!==(a=t[5].allDay))&&T(e,"class",a)},i(t){c||(nt(r.$$.fragment,t),c=!0)},o(t){rt(r.$$.fragment,t),c=!1},d(t){t&&y(e),ct(r)}}}function fo(t){let e,n,r=lt(t[1]),l=[];for(let e=0;e<r.length;e+=1)l[e]=mo(Kl(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(35&n[0]){let i;for(r=lt(t[1]),i=0;i<r.length;i+=1){const o=Kl(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=mo(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function ho(t){let e,n,r=lt(t[0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=$o(Ql(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(35&n[0]){let i;for(r=lt(t[0]),i=0;i<r.length;i+=1){const o=Ql(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=$o(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function mo(t){let e,n,r,l,o;return n=new Ll({props:{dates:t[0],resource:t[26]}}),{c(){e=b("div"),st(n.$$.fragment),r=x(),T(e,"class",l=t[5].resource)},m(t,l){v(t,e,l),at(n,e,null),g(e,r),o=!0},p(t,r){const i={};1&r[0]&&(i.dates=t[0]),2&r[0]&&(i.resource=t[26]),n.$set(i),(!o||32&r[0]&&l!==(l=t[5].resource))&&T(e,"class",l)},i(t){o||(nt(n.$$.fragment,t),o=!0)},o(t){rt(n.$$.fragment,t),o=!1},d(t){t&&y(e),ct(n)}}}function po(t){let e,n;return e=new Ll({props:{dates:[t[23]],resource:t[26]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};1&n[0]&&(r.dates=[t[23]]),2&n[0]&&(r.resource=t[26]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function $o(t){let e,n,r,l,o=lt(t[1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=po(Zl(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();n=x(),T(e,"class",r=t[5].resource)},m(t,r){v(t,e,r);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);g(e,n),l=!0},p(t,a){if(3&a[0]){let r;for(o=lt(t[1]),r=0;r<o.length;r+=1){const l=Zl(t,o,r);i[r]?(i[r].p(l,a),nt(i[r],1)):(i[r]=po(l),i[r].c(),nt(i[r],1),i[r].m(e,n))}for(tt(),r=o.length;r<i.length;r+=1)s(r);et()}(!l||32&a[0]&&r!==(r=t[5].resource))&&T(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)nt(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);l=!1},d(t){t&&y(e),w(i,t)}}}function go(t){let e,n,r,l;const o=[ho,fo],i=[];function s(t,e){return t[2]?0:1}return e=s(t),n=i[e]=o[e](t),{c(){n.c(),r=C()},m(t,n){i[e].m(t,n),v(t,r,n),l=!0},p(t,l){let a=e;e=s(t),e===a?i[e].p(t,l):(tt(),rt(i[a],1,1,(()=>{i[a]=null})),et(),n=i[e],n?n.p(t,l):(n=i[e]=o[e](t),n.c()),nt(n,1),n.m(r.parentNode,r))},i(t){l||(nt(n),l=!0)},o(t){rt(n),l=!1},d(t){t&&y(r),i[e].d(t)}}}function vo(t){let e,n;return e=new pl({props:{date:t[2]?t[17]:t[20],resource:t[2]?t[20]:t[17]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};12&n[0]&&(r.date=t[2]?t[17]:t[20]),12&n[0]&&(r.resource=t[2]?t[20]:t[17]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function yo(t){let e,n,r,l,o=lt(t[3][1]),i=[];for(let e=0;e<o.length;e+=1)i[e]=vo(Jl(t,o,e));const s=t=>rt(i[t],1,1,(()=>{i[t]=null}));return{c(){e=b("div");for(let t=0;t<i.length;t+=1)i[t].c();n=x(),T(e,"class",r=t[5].resource)},m(t,r){v(t,e,r);for(let t=0;t<i.length;t+=1)i[t]&&i[t].m(e,null);g(e,n),l=!0},p(t,a){if(12&a[0]){let r;for(o=lt(t[3][1]),r=0;r<o.length;r+=1){const l=Jl(t,o,r);i[r]?(i[r].p(l,a),nt(i[r],1)):(i[r]=vo(l),i[r].c(),nt(i[r],1),i[r].m(e,n))}for(tt(),r=o.length;r<i.length;r+=1)s(r);et()}(!l||32&a[0]&&r!==(r=t[5].resource))&&T(e,"class",r)},i(t){if(!l){for(let t=0;t<o.length;t+=1)nt(i[t]);l=!0}},o(t){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)rt(i[t]);l=!1},d(t){t&&y(e),w(i,t)}}}function wo(t){let e,n,r=lt(t[3][0]),l=[];for(let e=0;e<r.length;e+=1)l[e]=yo(Vl(t,r,e));const o=t=>rt(l[t],1,1,(()=>{l[t]=null}));return{c(){for(let t=0;t<l.length;t+=1)l[t].c();e=C()},m(t,r){for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(t,r);v(t,e,r),n=!0},p(t,n){if(44&n[0]){let i;for(r=lt(t[3][0]),i=0;i<r.length;i+=1){const o=Vl(t,r,i);l[i]?(l[i].p(o,n),nt(l[i],1)):(l[i]=yo(o),l[i].c(),nt(l[i],1),l[i].m(e.parentNode,e))}for(tt(),i=r.length;i<l.length;i+=1)o(i);et()}},i(t){if(!n){for(let t=0;t<r.length;t+=1)nt(l[t]);n=!0}},o(t){l=l.filter(Boolean);for(let t=0;t<l.length;t+=1)rt(l[t]);n=!1},d(t){t&&y(e),w(l,t)}}}function bo(t){let e,n,r,l,o,i,s,a,c,u;n=new Or({props:{$$slots:{default:[co]},$$scope:{ctx:t}}});let d=t[8]&&uo(t);return c=new Kr({props:{$$slots:{default:[wo]},$$scope:{ctx:t}}}),{c(){e=b("div"),st(n.$$.fragment),r=x(),l=b("div"),s=x(),d&&d.c(),a=x(),st(c.$$.fragment),T(l,"class",o=t[5].hiddenScroll),T(e,"class",i=t[5].header)},m(t,o){v(t,e,o),at(n,e,null),g(e,r),g(e,l),v(t,s,o),d&&d.m(t,o),v(t,a,o),at(c,t,o),u=!0},p(t,r){const s={};252&r[0]|16&r[1]&&(s.$$scope={dirty:r,ctx:t}),n.$set(s),(!u||32&r[0]&&o!==(o=t[5].hiddenScroll))&&T(l,"class",o),(!u||32&r[0]&&i!==(i=t[5].header))&&T(e,"class",i),t[8]?d?(d.p(t,r),256&r[0]&&nt(d,1)):(d=uo(t),d.c(),nt(d,1),d.m(a.parentNode,a)):d&&(tt(),rt(d,1,1,(()=>{d=null})),et());const f={};44&r[0]|16&r[1]&&(f.$$scope={dirty:r,ctx:t}),c.$set(f)},i(t){u||(nt(n.$$.fragment,t),nt(d),nt(c.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(d),rt(c.$$.fragment,t),u=!1},d(t){t&&(y(e),y(s),y(a)),ct(n),d&&d.d(t),ct(c,t)}}}function ko(t,e,n){let r,l,o,i,s,c,u,d,{datesAboveResources:f,_viewDates:h,_viewResources:m,_intlDayHeader:p,_intlDayHeaderAL:$,allDaySlot:g,theme:v}=B("state");a(t,f,(t=>n(2,o=t))),a(t,h,(t=>n(0,r=t))),a(t,m,(t=>n(1,l=t))),a(t,p,(t=>n(7,c=t))),a(t,$,(t=>n(6,s=t))),a(t,g,(t=>n(8,u=t))),a(t,v,(t=>n(5,i=t)));let y=[];return t.$$.update=()=>{7&t.$$.dirty[0]&&n(3,d=o?[r,l]:[l,r])},[r,l,o,d,y,i,s,c,u,f,h,m,p,$,g,v,(t,e)=>n(4,y[t]=e.detail+", ",y)]}let xo=class extends dt{constructor(t){super(),ut(this,t,ko,bo,o,{},null,[-1,-1])}};var Co={createOptions(t){t.datesAboveResources=!1,t.buttonText.resourceTimeGridDay="resources",t.buttonText.resourceTimeGridWeek="resources",t.view="resourceTimeGridWeek",t.views.resourceTimeGridDay={buttonText:Me,component:xo,duration:{days:1},theme:ze("ec-time-grid ec-resource-day-view")},t.views.resourceTimeGridWeek={buttonText:Ue,component:xo,duration:{weeks:1},theme:ze("ec-time-grid ec-resource-week-view")}},createStores(t){"_times"in t||Gl.createStores(t),"_viewResources"in t||(t._viewResources=Xe(t))}};function _o(e){let n,r,o,i;return{c(){n=b("span")},m(t,l){v(t,n,l),e[7](n),o||(i=p(r=gt.call(null,n,e[1])),o=!0)},p(t,e){let[n]=e;r&&l(r.update)&&2&n&&r.update.call(null,t[1])},i:t,o:t,d(t){t&&y(n),e[7](null),o=!1,i()}}}function Do(t,e,n){let r,l,o,i,{resource:s}=e,{date:c}=e,{resourceLabelContent:u,resourceLabelDidMount:d}=B("state");return a(t,u,(t=>n(6,l=t))),a(t,d,(t=>n(8,r=t))),R((()=>{Gt(r)&&r({resource:s,date:c?Et(c):void 0,el:o})})),t.$$set=t=>{"resource"in t&&n(4,s=t.resource),"date"in t&&n(5,c=t.date)},t.$$.update=()=>{112&t.$$.dirty&&n(1,i=l?Gt(l)?l({resource:s,date:c?Et(c):void 0}):l:s.title)},[o,i,u,d,s,c,l,function(t){P[t?"unshift":"push"]((()=>{o=t,n(0,o)}))}]}class To extends dt{constructor(t){super(),ut(this,t,Do,_o,o,{resource:4,date:5})}}function Eo(t,e,n){const r=t.slice();return r[7]=e[n],r}function So(t){let e,n;return{c(){e=b("span"),T(e,"class",n=t[1].expander)},m(t,n){v(t,e,n)},p(t,r){2&r&&n!==(n=t[1].expander)&&T(e,"class",n)},d(t){t&&y(e)}}}function Mo(t){let e,n,r,l;function o(t,e){return t[0].expanded?No:Uo}let i=o(t),s=i(t);return{c(){e=b("button"),s.c(),T(e,"class",n=t[1].button)},m(n,o){v(n,e,o),s.m(e,null),r||(l=_(e,"click",t[3]),r=!0)},p(t,r){i!==(i=o(t))&&(s.d(1),s=i(t),s&&(s.c(),s.m(e,null))),2&r&&n!==(n=t[1].button)&&T(e,"class",n)},d(t){t&&y(e),s.d(),r=!1,l()}}}function Uo(t){let e;return{c(){e=k("+")},m(t,n){v(t,e,n)},d(t){t&&y(e)}}}function No(t){let e;return{c(){e=k("−")},m(t,n){v(t,e,n)},d(t){t&&y(e)}}}function Lo(e){let n,r,l,o=lt(Array(e[0].level)),i=[];for(let t=0;t<o.length;t+=1)i[t]=So(Eo(e,o,t));let s=e[0].children.length&&Mo(e);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();n=x(),r=b("span"),s&&s.c(),T(r,"class",l=e[1].expander)},m(t,e){for(let n=0;n<i.length;n+=1)i[n]&&i[n].m(t,e);v(t,n,e),v(t,r,e),s&&s.m(r,null)},p(t,e){let[a]=e;if(3&a){let e;for(o=lt(Array(t[0].level)),e=0;e<o.length;e+=1){const r=Eo(t,o,e);i[e]?i[e].p(r,a):(i[e]=So(r),i[e].c(),i[e].m(n.parentNode,n))}for(;e<i.length;e+=1)i[e].d(1);i.length=o.length}t[0].children.length?s?s.p(t,a):(s=Mo(t),s.c(),s.m(r,null)):s&&(s.d(1),s=null),2&a&&l!==(l=t[1].expander)&&T(r,"class",l)},i:t,o:t,d(t){t&&(y(n),y(r)),w(i,t),s&&s.d()}}}function Ro(t,e,n){let r,{resource:l}=e,{resources:o,theme:i}=B("state");a(t,i,(t=>n(1,r=t)));let s={};function c(t,e){for(let n of t){let t=ee(n);t.hidden=!e,t.expanded&&c(t.children,e)}}return t.$$set=t=>{"resource"in t&&n(4,l=t.resource)},t.$$.update=()=>{16&t.$$.dirty&&n(0,s=ee(l))},[s,r,i,function(){n(0,s.expanded=!s.expanded,s),c(s.children,s.expanded),o.update(Vt)},l]}class zo extends dt{constructor(t){super(),ut(this,t,Ro,Lo,o,{resource:4})}}function Ho(t,e,n){const r=t.slice();return r[14]=e[n],r}function Bo(t){let e,n;return e=new zo({props:{resource:t[14]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};8&n&&(r.resource=t[14]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Fo(t){let e,n,r,l,o,i,s=t[5]&&Bo(t);return r=new To({props:{resource:t[14]}}),{c(){e=b("div"),s&&s.c(),n=x(),st(r.$$.fragment),l=x(),T(e,"class",o=t[1].resource),S(e,"flex-basis",Wt(t[4].get(t[14])??0,34)+"px"),T(e,"role","rowheader")},m(t,o){v(t,e,o),s&&s.m(e,null),g(e,n),at(r,e,null),g(e,l),i=!0},p(t,l){t[5]?s?(s.p(t,l),32&l&&nt(s,1)):(s=Bo(t),s.c(),nt(s,1),s.m(e,n)):s&&(tt(),rt(s,1,1,(()=>{s=null})),et());const a={};8&l&&(a.resource=t[14]),r.$set(a),(!i||2&l&&o!==(o=t[1].resource))&&T(e,"class",o),(!i||24&l)&&S(e,"flex-basis",Wt(t[4].get(t[14])??0,34)+"px")},i(t){i||(nt(s),nt(r.$$.fragment,t),i=!0)},o(t){rt(s),rt(r.$$.fragment,t),i=!1},d(t){t&&y(e),s&&s.d(),ct(r)}}}function Ao(t){let e,n,r,l,o,i,s,a,c=lt(t[3]),u=[];for(let e=0;e<c.length;e+=1)u[e]=Fo(Ho(t,c,e));const d=t=>rt(u[t],1,1,(()=>{u[t]=null}));return{c(){e=b("div"),n=b("div"),l=x(),o=b("div");for(let t=0;t<u.length;t+=1)u[t].c();T(n,"class",r=t[1].sidebarTitle),S(n,"flex-basis",t[0]+"px"),T(o,"class",i=t[1].content),T(e,"class",s=t[1].sidebar)},m(r,i){v(r,e,i),g(e,n),g(e,l),g(e,o);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(o,null);t[12](o),a=!0},p(t,l){let[f]=l;if((!a||2&f&&r!==(r=t[1].sidebarTitle))&&T(n,"class",r),(!a||1&f)&&S(n,"flex-basis",t[0]+"px"),58&f){let e;for(c=lt(t[3]),e=0;e<c.length;e+=1){const n=Ho(t,c,e);u[e]?(u[e].p(n,f),nt(u[e],1)):(u[e]=Fo(n),u[e].c(),nt(u[e],1),u[e].m(o,null))}for(tt(),e=c.length;e<u.length;e+=1)d(e);et()}(!a||2&f&&i!==(i=t[1].content))&&T(o,"class",i),(!a||2&f&&s!==(s=t[1].sidebar))&&T(e,"class",s)},i(t){if(!a){for(let t=0;t<c.length;t+=1)nt(u[t]);a=!0}},o(t){u=u.filter(Boolean);for(let t=0;t<u.length;t+=1)rt(u[t]);a=!1},d(n){n&&y(e),w(u,n),t[12](null)}}}function Po(t,e,n){let r,l,o,i,s,c,{_viewResources:u,_headerEl:d,_resHs:f,_sidebarEl:h,_nestedResources:m,theme:p}=B("state");a(t,u,(t=>n(3,i=t))),a(t,d,(t=>n(13,r=t))),a(t,f,(t=>n(4,s=t))),a(t,h,(t=>n(2,o=t))),a(t,m,(t=>n(5,c=t))),a(t,p,(t=>n(1,l=t)));let $=0;return z((()=>{n(0,$=r.clientHeight)})),[$,l,o,i,s,c,u,d,f,h,m,p,function(t){P[t?"unshift":"push"]((()=>{o=t,h.set(o)}))}]}class Io extends dt{constructor(t){super(),ut(this,t,Po,Ao,o,{})}}function jo(t,e,n){const r=t.slice();return r[15]=e[n],r}function Wo(t,e,n){const r=t.slice();return r[18]=e[n],r}function Oo(t){let e,n,r,o,i,s,a,c;return{c(){e=b("div"),n=b("time"),T(n,"datetime",r=St(t[15],10)),T(n,"aria-label",o=t[4].format(t[15])),T(e,"class",s=t[0].time),T(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),a||(c=p(i=gt.call(null,n,t[5].format(t[15]))),a=!0)},p(a,c){t=a,4&c&&r!==(r=St(t[15],10))&&T(n,"datetime",r),20&c&&o!==(o=t[4].format(t[15]))&&T(n,"aria-label",o),i&&l(i.update)&&36&c&&i.update.call(null,t[5].format(t[15])),1&c&&s!==(s=t[0].time)&&T(e,"class",s)},d(t){t&&y(e),a=!1,c()}}}function Go(t){let e,n,r,o,i,s,a,c,u,d,f,h=lt(t[6][t[15].getTime()]),m=[];for(let e=0;e<h.length;e+=1)m[e]=Yo(Wo(t,h,e));return{c(){e=b("div"),n=b("time"),a=x(),c=b("div");for(let t=0;t<m.length;t+=1)m[t].c();T(n,"datetime",r=St(t[15],10)),T(n,"aria-label",o=t[4].format(t[15])),T(e,"class",s=t[0].dayHead),T(c,"class",u=t[0].times)},m(r,l){v(r,e,l),g(e,n),v(r,a,l),v(r,c,l);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(c,null);d||(f=p(i=gt.call(null,n,t[5].format(t[15]))),d=!0)},p(a,d){if(t=a,4&d&&r!==(r=St(t[15],10))&&T(n,"datetime",r),20&d&&o!==(o=t[4].format(t[15]))&&T(n,"aria-label",o),i&&l(i.update)&&36&d&&i.update.call(null,t[5].format(t[15])),1&d&&s!==(s=t[0].dayHead)&&T(e,"class",s),69&d){let e;for(h=lt(t[6][t[15].getTime()]),e=0;e<h.length;e+=1){const n=Wo(t,h,e);m[e]?m[e].p(n,d):(m[e]=Yo(n),m[e].c(),m[e].m(c,null))}for(;e<m.length;e+=1)m[e].d(1);m.length=h.length}1&d&&u!==(u=t[0].times)&&T(c,"class",u)},d(t){t&&(y(e),y(a),y(c)),w(m,t),d=!1,f()}}}function Yo(t){let e,n,r,o,i,s,a,c;return{c(){e=b("div"),n=b("time"),i=x(),T(n,"datetime",r=t[18][0]),T(e,"class",s=t[0].time),T(e,"role","columnheader")},m(r,l){v(r,e,l),g(e,n),g(e,i),a||(c=p(o=gt.call(null,n,t[18][1])),a=!0)},p(i,a){t=i,68&a&&r!==(r=t[18][0])&&T(n,"datetime",r),o&&l(o.update)&&68&a&&o.update.call(null,t[18][1]),1&a&&s!==(s=t[0].time)&&T(e,"class",s)},d(t){t&&y(e),a=!1,c()}}}function qo(t){let e,n,r,l;function o(t,e){return 8&e&&(n=null),null==n&&(n=!!Rt(t[3])),n?Go:Oo}let i=o(t,-1),s=i(t);return{c(){e=b("div"),s.c(),r=x(),T(e,"class",l=t[0].day+" "+t[0].weekdays?.[t[15].getUTCDay()])},m(t,n){v(t,e,n),s.m(e,null),g(e,r)},p(t,n){i===(i=o(t,n))&&s?s.p(t,n):(s.d(1),s=i(t),s&&(s.c(),s.m(e,r))),5&n&&l!==(l=t[0].day+" "+t[0].weekdays?.[t[15].getUTCDay()])&&T(e,"class",l)},d(t){t&&y(e),s.d()}}}function Xo(e){let n,r,l,o,i,s,a,c=lt(e[2]),u=[];for(let t=0;t<c.length;t+=1)u[t]=qo(jo(e,c,t));return{c(){n=b("div"),r=b("div");for(let t=0;t<u.length;t+=1)u[t].c();o=x(),i=b("div"),T(r,"class",l=e[0].days),T(r,"role","row"),T(i,"class",s=e[0].hiddenScroll),T(n,"class",a=e[0].header)},m(t,l){v(t,n,l),g(n,r);for(let t=0;t<u.length;t+=1)u[t]&&u[t].m(r,null);g(n,o),g(n,i),e[14](n)},p(t,e){let[o]=e;if(125&o){let e;for(c=lt(t[2]),e=0;e<c.length;e+=1){const n=jo(t,c,e);u[e]?u[e].p(n,o):(u[e]=qo(n),u[e].c(),u[e].m(r,null))}for(;e<u.length;e+=1)u[e].d(1);u.length=c.length}1&o&&l!==(l=t[0].days)&&T(r,"class",l),1&o&&s!==(s=t[0].hiddenScroll)&&T(i,"class",s),1&o&&a!==(a=t[0].header)&&T(n,"class",a)},i:t,o:t,d(t){t&&y(n),w(u,t),e[14](null)}}}function Vo(t,e,n){let r,l,o,i,s,c,u,{_headerEl:d,_intlDayHeader:f,_intlDayHeaderAL:h,_dayTimes:m,_viewDates:p,slotDuration:$,theme:g}=B("state");return a(t,d,(t=>n(1,l=t))),a(t,f,(t=>n(5,c=t))),a(t,h,(t=>n(4,s=t))),a(t,m,(t=>n(6,u=t))),a(t,p,(t=>n(2,o=t))),a(t,$,(t=>n(3,i=t))),a(t,g,(t=>n(0,r=t))),[r,l,o,i,s,c,u,d,f,h,m,p,$,g,function(t){P[t?"unshift":"push"]((()=>{l=t,d.set(l)}))}]}class Jo extends dt{constructor(t){super(),ut(this,t,Vo,Xo,o,{})}}function Ko(t,e,n,r){let l={},o=[];if(t.length){$e(t);let i,s=Rt(r);for(let r of t){let t;if(s){let o=0;for(let i=0;i<e.length;++i){let a=Qo(n,e[i]),c=xt(kt(e[i]),a.min),u=xt(kt(e[i]),a.max);if(r.date){if(r.end<=c){r.end=t;break}let n=e[i].getTime();if(l[n]?l[n].push(r):l[n]=[r],!(r.end>u)){o+=r.end-c;break}o+=u-c}else if(r.start<u&&r.end>c){if(r.date=e[i],r.start<c&&(r.start=c),r.offset=(r.start-c)/1e3/s,!(r.end>u)){o+=r.end-r.start||1e3*s;break}o+=u-r.start}t=u}r.slots=o/1e3/s}else{let n=0;for(let o=0;o<e.length;++o){let i=e[o],s=_t(kt(i));if(r.date){if(r.end<=i){r.end=t;break}let e=i.getTime();l[e]?l[e].push(r):l[e]=[r],++n}else r.start<s&&(r.date=i,r.start<i&&(r.start=i),++n);t=s}r.days=n}r.date&&(i&&Mt(i.date,r.date)&&(r.prev=i),i=r,o.push(r))}}return[o,l]}function Qo(t,e){return t[e.getTime()]??{min:bt(0),max:bt(0)}}function Zo(t){let e,n,o,i,s,a,c,u,d,f,h,m,$;var w=t[11].resizer;function k(t,e){return{props:{start:!0,event:t[0]}}}w&&(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[11],["x","start"]))&&t[32](t[11],["x","start"]).apply(this,arguments)})));var C=t[11].resizer;function D(t,e){return{props:{event:t[0]}}}return C&&(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[32](t[11],["x","end"]))&&t[32](t[11],["x","end"]).apply(this,arguments)}))),{c(){e=b("article"),n&&st(n.$$.fragment),o=x(),i=b("div"),c=x(),u&&st(u.$$.fragment),T(i,"class",s=t[3].eventBody),T(e,"class",t[5]),T(e,"style",t[6]),T(e,"role",d=t[8]?"button":void 0),T(e,"tabindex",f=t[8]?0:void 0)},m(r,s){v(r,e,s),n&&at(n,e,null),g(e,o),g(e,i),g(e,c),u&&at(u,e,null),t[51](e),h=!0,m||($=[p(a=gt.call(null,i,t[7])),_(e,"click",(function(){l(t[8])&&t[8].apply(this,arguments)})),_(e,"keydown",(function(){l(t[8]&&$t(t[8]))&&(t[8]&&$t(t[8])).apply(this,arguments)})),_(e,"mouseenter",(function(){l(t[31](t[9],t[1]))&&t[31](t[9],t[1]).apply(this,arguments)})),_(e,"mouseleave",(function(){l(t[31](t[10],t[1]))&&t[31](t[10],t[1]).apply(this,arguments)})),_(e,"pointerdown",(function(){l(!Ee(t[1])&&!Te(t[1])&&t[32](t[11]))&&(!Ee(t[1])&&!Te(t[1])&&t[32](t[11])).apply(this,arguments)}))],m=!0)},p(r,c){if(t=r,2048&c[0]&&w!==(w=t[11].resizer)){if(n){tt();const t=n;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}w?(n=M(w,k(t)),n.$on("pointerdown",(function(){l(t[32](t[11],["x","start"]))&&t[32](t[11],["x","start"]).apply(this,arguments)})),st(n.$$.fragment),nt(n.$$.fragment,1),at(n,e,o)):n=null}else if(w){const e={};1&c[0]&&(e.event=t[0]),n.$set(e)}if((!h||8&c[0]&&s!==(s=t[3].eventBody))&&T(i,"class",s),a&&l(a.update)&&128&c[0]&&a.update.call(null,t[7]),2048&c[0]&&C!==(C=t[11].resizer)){if(u){tt();const t=u;rt(t.$$.fragment,1,0,(()=>{ct(t,1)})),et()}C?(u=M(C,D(t)),u.$on("pointerdown",(function(){l(t[32](t[11],["x","end"]))&&t[32](t[11],["x","end"]).apply(this,arguments)})),st(u.$$.fragment),nt(u.$$.fragment,1),at(u,e,null)):u=null}else if(C){const e={};1&c[0]&&(e.event=t[0]),u.$set(e)}(!h||32&c[0])&&T(e,"class",t[5]),(!h||64&c[0])&&T(e,"style",t[6]),(!h||256&c[0]&&d!==(d=t[8]?"button":void 0))&&T(e,"role",d),(!h||256&c[0]&&f!==(f=t[8]?0:void 0))&&T(e,"tabindex",f)},i(t){h||(n&&nt(n.$$.fragment,t),u&&nt(u.$$.fragment,t),h=!0)},o(t){n&&rt(n.$$.fragment,t),u&&rt(u.$$.fragment,t),h=!1},d(l){l&&y(e),n&&ct(n),u&&ct(u),t[51](null),m=!1,r($)}}}function ti(t){let e,n,r=t[2]>0&&Zo(t);return{c(){r&&r.c(),e=C()},m(t,l){r&&r.m(t,l),v(t,e,l),n=!0},p(t,n){t[2]>0?r?(r.p(t,n),4&n[0]&&nt(r,1)):(r=Zo(t),r.c(),nt(r,1),r.m(e.parentNode,e)):r&&(tt(),rt(r,1,1,(()=>{r=null})),et())},i(t){n||(nt(r),n=!0)},o(t){rt(r),n=!1},d(t){t&&y(e),r&&r.d(t)}}}function ei(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,v,y,w,b,k,x,C,_,D,T,E,S,M,{chunk:U}=e,{dayChunks:N=[]}=e,{longChunks:L={}}=e,{resource:H}=e,{displayEventEnd:F,eventAllUpdated:A,eventBackgroundColor:I,eventTextColor:j,eventColor:W,eventContent:O,eventClick:G,eventDidMount:Y,eventClassNames:q,eventMouseEnter:X,eventMouseLeave:V,resources:J,slotDuration:K,slotWidth:Q,theme:Z,_view:tt,_intlEventTime:et,_interaction:nt,_iClasses:rt,_tasks:lt}=B("state");a(t,F,(t=>n(43,f=t))),a(t,A,(t=>n(54,i=t))),a(t,I,(t=>n(49,v=t))),a(t,j,(t=>n(46,p=t))),a(t,W,(t=>n(48,g=t))),a(t,O,(t=>n(42,d=t))),a(t,G,(t=>n(39,l=t))),a(t,Y,(t=>n(55,s=t))),a(t,q,(t=>n(44,h=t))),a(t,X,(t=>n(9,w=t))),a(t,V,(t=>n(10,b=t))),a(t,J,(t=>n(47,$=t))),a(t,K,(t=>n(53,r=t))),a(t,Q,(t=>n(50,y=t))),a(t,Z,(t=>n(3,u=t))),a(t,tt,(t=>n(40,o=t))),a(t,et,(t=>n(41,c=t))),a(t,nt,(t=>n(11,k=t))),a(t,rt,(t=>n(45,m=t)));let ot=Te(U.event.display)?1:0,it=0;function st(t,e){return!Te(e)&&Gt(t)?e=>t({event:we(C),el:x,jsEvent:e,view:ae(o)}):void 0}return R((()=>{Gt(s)&&s({event:we(C),timeText:S,el:x,view:ae(o)})})),z((()=>{Gt(i)&&!Te(_)&&Qt((()=>i({view:ae(o)})),"eau",lt)})),t.$$set=t=>{"chunk"in t&&n(33,U=t.chunk),"dayChunks"in t&&n(34,N=t.dayChunks),"longChunks"in t&&n(35,L=t.longChunks),"resource"in t&&n(36,H=t.resource)},t.$$.update=()=>{if(4&t.$$.dirty[1]&&n(0,C=U.event),79&t.$$.dirty[0]|1041060&t.$$.dirty[1]){if(n(1,_=C.display),"slots"in U){let t=U.offset*y;n(2,it=U.slots*y),n(6,T=`left:${t}px;width:${it}px;`)}else n(2,it=100*U.days),n(6,T=`width:${it}%;`);let t=C.backgroundColor||je(C,$)||v||g,e=C.textColor||We(C,$)||p,r=ot;if(C._margin){let[t,e]=C._margin;H===e&&(r=t)}n(6,T+=`margin-top:${r}px;`),t&&n(6,T+=`background-color:${t};`),e&&n(6,T+=`color:${e};`),n(6,T+=C.styles.join(";")),n(5,D=[Ee(_)?u.bgEvent:u.event,...m([],C),...ye(h,C,o)].join(" "))}8&t.$$.dirty[0]|7684&t.$$.dirty[1]&&n(7,[S,E]=ge(U,f,d,u,c,o),E),2&t.$$.dirty[0]|256&t.$$.dirty[1]&&n(8,M=!Ee(_)&&st(l,_))},[C,_,it,u,x,D,T,E,M,w,b,k,F,A,I,j,W,O,G,Y,q,X,V,J,K,Q,Z,tt,et,nt,rt,st,function(t,e){return t.action?n=>t.action.drag(C,n,e,void 0,[ot,H],U.zeroDuration):void 0},U,N,L,H,function(){if(!x)return 0;let t=oe(x);return n(38,ot=function(t,e,n,r,l){t.top=0,t.bottom=r;let o=1,i=t.date.getTime();n=n?.[i]??[];let s=[...e,...n];s.sort(((t,e)=>(t.top??0)-(e.top??0)||t.start-e.start||e.event.allDay-t.event.allDay));for(let e of s)if(e!==t&&(l||t.start<e.end&&t.end>e.start)&&t.top<e.bottom&&t.bottom>e.top){let n=e.bottom-t.top+1;o+=n,t.top+=n,t.bottom+=n}return o}(U,N,L,t,!Rt(r))),ot+t},ot,l,o,c,d,f,h,m,p,$,g,v,y,function(t){P[t?"unshift":"push"]((()=>{x=t,n(4,x)}))}]}class ni extends dt{constructor(t){super(),ut(this,t,ei,ti,o,{chunk:33,dayChunks:34,longChunks:35,resource:36,reposition:37},null,[-1,-1])}get reposition(){return this.$$.ctx[37]}}function ri(t,e,n){const r=t.slice();return r[37]=e[n],r[38]=e,r[39]=n,r}function li(t,e,n){const r=t.slice();return r[37]=e[n],r}function oi(t){let e,n,r,l,o,i=[],s=new Map,a=t[3][t[14]]&&t[25](t[3][t[14]]),c=[],u=new Map,d=t[3][0]&&t[25](t[3][0]),f=lt(t[8]);const h=t=>t[37].event;for(let e=0;e<f.length;e+=1){let n=li(t,f,e),r=h(n);s.set(r,i[e]=ii(r,n))}let m=a&&si(t),p=lt(t[7]);const $=t=>t[37].event;for(let e=0;e<p.length;e+=1){let n=ri(t,p,e),r=$(n);u.set(r,c[e]=ai(r,n))}let g=d&&ci(t);return{c(){for(let t=0;t<i.length;t+=1)i[t].c();e=x(),m&&m.c(),n=x();for(let t=0;t<c.length;t+=1)c[t].c();r=x(),g&&g.c(),l=C()},m(t,s){for(let e=0;e<i.length;e+=1)i[e]&&i[e].m(t,s);v(t,e,s),m&&m.m(t,s),v(t,n,s);for(let e=0;e<c.length;e+=1)c[e]&&c[e].m(t,s);v(t,r,s),g&&g.m(t,s),v(t,l,s),o=!0},p(t,o){256&o[0]&&(f=lt(t[8]),tt(),i=it(i,o,h,0,t,f,s,e.parentNode,ot,ii,e,li),et()),16392&o[0]&&(a=t[3][t[14]]&&t[25](t[3][t[14]])),a?m?(m.p(t,o),16392&o[0]&&nt(m,1)):(m=si(t),m.c(),nt(m,1),m.m(n.parentNode,n)):m&&(tt(),rt(m,1,1,(()=>{m=null})),et()),4230&o[0]&&(p=lt(t[7]),tt(),c=it(c,o,$,0,t,p,u,r.parentNode,ot,ai,r,ri),et()),8&o[0]&&(d=t[3][0]&&t[25](t[3][0])),d?g?(g.p(t,o),8&o[0]&&nt(g,1)):(g=ci(t),g.c(),nt(g,1),g.m(l.parentNode,l)):g&&(tt(),rt(g,1,1,(()=>{g=null})),et())},i(t){if(!o){for(let t=0;t<f.length;t+=1)nt(i[t]);nt(m);for(let t=0;t<p.length;t+=1)nt(c[t]);nt(g),o=!0}},o(t){for(let t=0;t<i.length;t+=1)rt(i[t]);rt(m);for(let t=0;t<c.length;t+=1)rt(c[t]);rt(g),o=!1},d(t){t&&(y(e),y(n),y(r),y(l));for(let e=0;e<i.length;e+=1)i[e].d(t);m&&m.d(t);for(let e=0;e<c.length;e+=1)c[e].d(t);g&&g.d(t)}}}function ii(t,e){let n,r,l;return r=new ni({props:{chunk:e[37]}}),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){e=t;const l={};256&n[0]&&(l.chunk=e[37]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),ct(r,t)}}}function si(t){let e,n;return e=new ni({props:{chunk:t[3][t[14]]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};16392&n[0]&&(r.chunk=t[3][t[14]]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ai(t,e){let n,r,l,o=e[39];const i=()=>e[33](r,o),s=()=>e[33](null,o);let a={chunk:e[37],dayChunks:e[7],longChunks:e[2],resource:e[1]};return r=new ni({props:a}),i(),{key:t,first:null,c(){n=C(),st(r.$$.fragment),this.first=n},m(t,e){v(t,n,e),at(r,t,e),l=!0},p(t,n){o!==(e=t)[39]&&(s(),o=e[39],i());const l={};128&n[0]&&(l.chunk=e[37]),128&n[0]&&(l.dayChunks=e[7]),4&n[0]&&(l.longChunks=e[2]),2&n[0]&&(l.resource=e[1]),r.$set(l)},i(t){l||(nt(r.$$.fragment,t),l=!0)},o(t){rt(r.$$.fragment,t),l=!1},d(t){t&&y(n),s(),ct(r,t)}}}function ci(t){let e,n;return e=new ni({props:{chunk:t[3][0],resource:t[1]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};8&n[0]&&(r.chunk=t[3][0]),2&n[0]&&(r.resource=t[1]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function ui(t){let e,n,r,o,i,s,a,c=!t[11]&&oi(t);return{c(){e=b("div"),n=b("div"),c&&c.c(),T(n,"class",r=t[15].events),T(e,"class",o=t[15].day+" "+t[15].weekdays?.[t[0].getUTCDay()]+(t[9]?" "+t[15].today:"")+(t[10]?" "+t[15].highlight:"")+(t[11]?" "+t[15].disabled:"")),S(e,"flex-grow",t[5]?null:It((Rt(t[13].max)-Rt(t[13].min))/Rt(t[6]))),T(e,"role","cell")},m(r,o){v(r,e,o),g(e,n),c&&c.m(n,null),t[34](e),i=!0,s||(a=_(e,"pointerdown",(function(){l(t[16].action?.select)&&t[16].action?.select.apply(this,arguments)})),s=!0)},p(l,s){(t=l)[11]?c&&(tt(),rt(c,1,1,(()=>{c=null})),et()):c?(c.p(t,s),2048&s[0]&&nt(c,1)):(c=oi(t),c.c(),nt(c,1),c.m(n,null)),(!i||32768&s[0]&&r!==(r=t[15].events))&&T(n,"class",r),(!i||36353&s[0]&&o!==(o=t[15].day+" "+t[15].weekdays?.[t[0].getUTCDay()]+(t[9]?" "+t[15].today:"")+(t[10]?" "+t[15].highlight:"")+(t[11]?" "+t[15].disabled:"")))&&T(e,"class",o),(!i||8288&s[0])&&S(e,"flex-grow",t[5]?null:It((Rt(t[13].max)-Rt(t[13].min))/Rt(t[6])))},i(t){i||(nt(c),i=!0)},o(t){rt(c),i=!1},d(n){n&&y(e),c&&c.d(),t[34](null),s=!1,a()}}}function di(t,e,n){let r,l,o,i,s,c,u,d,f,h,m,p,$,g,{date:v}=e,{resource:y}=e,{chunks:w}=e,{bgChunks:b}=e,{longChunks:k}=e,{iChunks:x=[]}=e,{highlightedDates:C,slotDuration:_,slotWidth:D,theme:T,validRange:E,_interaction:S,_today:M,_dayTimeLimits:U}=B("state");a(t,C,(t=>n(31,s=t))),a(t,_,(t=>n(6,l=t))),a(t,D,(t=>n(35,r=t))),a(t,T,(t=>n(15,u=t))),a(t,E,(t=>n(30,i=t))),a(t,S,(t=>n(16,d=t))),a(t,M,(t=>n(32,c=t))),a(t,U,(t=>n(29,o=t)));let N,L,R=[],z=1;function H(t){return Mt(t.date,v)}function F(t,e){return t-=re(f).left,{allDay:L,date:L?kt(v):xt(xt(kt(v),N.min),l,Pt(t/r)),resource:y,dayEl:f,disabled:g}}return t.$$set=t=>{"date"in t&&n(0,v=t.date),"resource"in t&&n(1,y=t.resource),"chunks"in t&&n(26,w=t.chunks),"bgChunks"in t&&n(27,b=t.bgChunks),"longChunks"in t&&n(2,k=t.longChunks),"iChunks"in t&&n(3,x=t.iChunks)},t.$$.update=()=>{1&t.$$.dirty[0]|2&t.$$.dirty[1]&&n(9,p=Mt(v,c)),1&t.$$.dirty[0]|1&t.$$.dirty[1]&&n(10,$=s.some((t=>Mt(t,v)))),1073741825&t.$$.dirty[0]&&n(11,g=Be(v,i)),536870913&t.$$.dirty[0]&&n(13,N=Qo(o,v)),96&t.$$.dirty[0]&&(n(5,L=!Rt(l)),n(14,z=L?2:1)),67108864&t.$$.dirty[0]&&n(7,h=w.filter(H)),134217760&t.$$.dirty[0]&&n(8,m=b.filter((t=>(!L||t.event.allDay)&&H(t)))),16&t.$$.dirty[0]&&f&&te(f,F)},[v,y,k,x,f,L,l,h,m,p,$,g,R,N,z,u,d,C,_,D,T,E,S,M,U,H,w,b,function(){return Wt(..._e(R,h))},o,i,s,c,function(t,e){P[t?"unshift":"push"]((()=>{R[e]=t,n(12,R)}))},function(t){P[t?"unshift":"push"]((()=>{f=t,n(4,f)}))}]}class fi extends dt{constructor(t){super(),ut(this,t,di,ui,o,{date:0,resource:1,chunks:26,bgChunks:27,longChunks:2,iChunks:3,reposition:28},null,[-1,-1])}get reposition(){return this.$$.ctx[28]}}function hi(t,e,n){const r=t.slice();return r[29]=e[n],r[30]=e,r[31]=n,r}function mi(t){let e,n,r=t[31];const l=()=>t[25](e,r),o=()=>t[25](null,r);let i={date:t[29],resource:t[0],chunks:t[1],bgChunks:t[2],longChunks:t[4],iChunks:t[5]};return e=new fi({props:i}),l(),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){r!==t[31]&&(o(),r=t[31],l());const i={};8&n[0]&&(i.date=t[29]),1&n[0]&&(i.resource=t[0]),2&n[0]&&(i.chunks=t[1]),4&n[0]&&(i.bgChunks=t[2]),16&n[0]&&(i.longChunks=t[4]),32&n[0]&&(i.iChunks=t[5]),e.$set(i)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){o(),ct(e,t)}}}function pi(t){let e,n,r,l,o,i=lt(t[3]),s=[];for(let e=0;e<i.length;e+=1)s[e]=mi(hi(t,i,e));const a=t=>rt(s[t],1,1,(()=>{s[t]=null}));return{c(){e=b("div");for(let t=0;t<s.length;t+=1)s[t].c();T(e,"class",n=t[8].days),S(e,"flex-basis",Wt(t[7],34)+"px"),T(e,"role","row")},m(n,i){v(n,e,i);for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,null);r=!0,l||(o=_(window,"resize",t[17]),l=!0)},p(t,l){if(127&l[0]){let n;for(i=lt(t[3]),n=0;n<i.length;n+=1){const r=hi(t,i,n);s[n]?(s[n].p(r,l),nt(s[n],1)):(s[n]=mi(r),s[n].c(),nt(s[n],1),s[n].m(e,null))}for(tt(),n=i.length;n<s.length;n+=1)a(n);et()}(!r||256&l[0]&&n!==(n=t[8].days))&&T(e,"class",n),(!r||128&l[0])&&S(e,"flex-basis",Wt(t[7],34)+"px")},i(t){if(!r){for(let t=0;t<i.length;t+=1)nt(s[t]);r=!0}},o(t){s=s.filter(Boolean);for(let t=0;t<s.length;t+=1)rt(s[t]);r=!1},d(t){t&&y(e),w(s,t),l=!1,o()}}}function $i(t,e,n){let r,l,o,i,s,c,u,d,{resource:f}=e,{_viewDates:h,_events:m,_iEvents:p,_queue2:$,_resHs:g,_dayTimeLimits:v,slotDuration:y,theme:w,validRange:b}=B("state");a(t,h,(t=>n(3,o=t))),a(t,m,(t=>n(23,s=t))),a(t,p,(t=>n(22,i=t))),a(t,g,(t=>n(26,c=t))),a(t,v,(t=>n(21,l=t))),a(t,y,(t=>n(20,r=t))),a(t,w,(t=>n(8,d=t))),a(t,b,(t=>n(24,u=t)));let k,x,C,_,D,T=[],E=[],S=0,M={};function U(){Jt((()=>{n(7,S=It(Wt(..._e(E,o)))+10),c.set(f,S),g.set(c)}),M,$)}return t.$$set=t=>{"resource"in t&&n(0,f=t.resource)},t.$$.update=()=>{if(19660808&t.$$.dirty[0]){n(18,_=kt(Fe(o[0],u))),n(19,D=kt(Fe(o.at(-1),u)));let t=Qo(l,_);xt(_,t.min),t=Qo(l,D),t.max.seconds>yt?xt(D,t.max):_t(D)}if(12320783&t.$$.dirty[0]){n(1,k=[]),n(2,x=[]);for(let t of s)if(De(t,_,D,f)){let e=pe(t,_,D);Ee(t.display)?x.push(e):k.push(e)}n(2,[x]=Ko(x,o,l,r),x),n(1,[k,C]=Ko(k,o,l,r),k,(n(4,C),n(23,s),n(18,_),n(19,D),n(0,f),n(2,x),n(1,k),n(3,o),n(21,l),n(20,r),n(24,u))),U()}8126473&t.$$.dirty[0]&&n(5,T=i.map((t=>{let e;return t&&De(t,_,D,f)?(e=pe(t,_,D),[[e]]=Ko([e],o,l,r)):e=null,e})))},[f,k,x,o,C,T,E,S,d,h,m,p,g,v,y,w,b,U,_,D,r,l,i,s,u,function(t,e){P[t?"unshift":"push"]((()=>{E[e]=t,n(6,E)}))}]}class gi extends dt{constructor(t){super(),ut(this,t,$i,pi,o,{resource:0},null,[-1,-1])}}function vi(t,e,n){const r=t.slice();return r[26]=e[n],r}function yi(t,e,n){const r=t.slice();return r[29]=e[n],r}function wi(t,e,n){const r=t.slice();return r[32]=e[n],r}function bi(t){let e,n;return{c(){e=b("div"),T(e,"class",n=t[2].line)},m(t,n){v(t,e,n)},p(t,r){4&r[0]&&n!==(n=t[2].line)&&T(e,"class",n)},d(t){t&&y(e)}}}function ki(t){let e,n=lt(t[3][t[29].getTime()]),r=[];for(let e=0;e<n.length;e+=1)r[e]=bi(wi(t,n,e));return{c(){for(let t=0;t<r.length;t+=1)r[t].c();e=C()},m(t,n){for(let e=0;e<r.length;e+=1)r[e]&&r[e].m(t,n);v(t,e,n)},p(t,l){if(14&l[0]){let o;for(n=lt(t[3][t[29].getTime()]),o=0;o<n.length;o+=1){const i=wi(t,n,o);r[o]?r[o].p(i,l):(r[o]=bi(i),r[o].c(),r[o].m(e.parentNode,e))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(t){t&&y(e),w(r,t)}}}function xi(t){let e,n;return e=new gi({props:{resource:t[26]}}),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){const r={};16&n[0]&&(r.resource=t[26]),e.$set(r)},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(t){ct(e,t)}}}function Ci(t){let e,n,r,l,o,i,s,a,c,u,d=lt(t[1]),f=[];for(let e=0;e<d.length;e+=1)f[e]=ki(yi(t,d,e));let h=lt(t[4]),m=[];for(let e=0;e<h.length;e+=1)m[e]=xi(vi(t,h,e));const p=t=>rt(m[t],1,1,(()=>{m[t]=null}));return{c(){e=b("div"),n=b("div"),r=b("div");for(let t=0;t<f.length;t+=1)f[t].c();o=x();for(let t=0;t<m.length;t+=1)m[t].c();T(r,"class",l=t[2].lines),T(n,"class",i=t[2].content),T(e,"class",s=t[2].body)},m(l,i){v(l,e,i),g(e,n),g(n,r);for(let t=0;t<f.length;t+=1)f[t]&&f[t].m(r,null);g(n,o);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(n,null);t[18](e),a=!0,c||(u=_(e,"scroll",t[16]),c=!0)},p(t,o){if(14&o[0]){let e;for(d=lt(t[1]),e=0;e<d.length;e+=1){const n=yi(t,d,e);f[e]?f[e].p(n,o):(f[e]=ki(n),f[e].c(),f[e].m(r,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=d.length}if((!a||4&o[0]&&l!==(l=t[2].lines))&&T(r,"class",l),16&o[0]){let e;for(h=lt(t[4]),e=0;e<h.length;e+=1){const r=vi(t,h,e);m[e]?(m[e].p(r,o),nt(m[e],1)):(m[e]=xi(r),m[e].c(),nt(m[e],1),m[e].m(n,null))}for(tt(),e=h.length;e<m.length;e+=1)p(e);et()}(!a||4&o[0]&&i!==(i=t[2].content))&&T(n,"class",i),(!a||4&o[0]&&s!==(s=t[2].body))&&T(e,"class",s)},i(t){if(!a){for(let t=0;t<h.length;t+=1)nt(m[t]);a=!0}},o(t){m=m.filter(Boolean);for(let t=0;t<m.length;t+=1)rt(m[t]);a=!1},d(n){n&&y(e),w(f,n),w(m,n),t[18](null),c=!1,u()}}}function _i(t,e,n){let r,l,o,i,s,c,u,d,f,h,p,$,{_bodyEl:g,_headerEl:v,_sidebarEl:y,_dayTimes:w,_dayTimeLimits:b,_viewResources:k,_viewDates:x,scrollTime:C,slotDuration:_,slotWidth:D,theme:T}=B("state");return a(t,g,(t=>n(22,c=t))),a(t,v,(t=>n(24,d=t))),a(t,y,(t=>n(23,u=t))),a(t,w,(t=>n(3,h=t))),a(t,b,(t=>n(21,s=t))),a(t,k,(t=>n(4,p=t))),a(t,x,(t=>n(1,i=t))),a(t,C,(t=>n(17,o=t))),a(t,_,(t=>n(20,l=t))),a(t,D,(t=>n(19,r=t))),a(t,T,(t=>n(2,f=t))),t.$$.update=()=>{1&t.$$.dirty[0]&&m(g,c=$,c),131075&t.$$.dirty[0]&&$&&function(){let t=Qo(s,i[0]);n(0,$.scrollLeft=(Rt(o)-Rt(t.min))/Rt(l)*r,$)}()},[$,i,f,h,p,g,v,y,w,b,k,x,C,_,D,T,function(){m(v,d.scrollLeft=c.scrollLeft,d),m(y,u.scrollTop=c.scrollTop,u)},o,function(t){P[t?"unshift":"push"]((()=>{$=t,n(0,$)}))}]}class Di extends dt{constructor(t){super(),ut(this,t,_i,Ci,o,{},null,[-1,-1])}}function Ti(t){let e,n,r,l,o,i,s,a,c,u;return n=new Io({}),o=new Jo({}),s=new Di({}),{c(){e=b("div"),st(n.$$.fragment),r=x(),l=b("div"),st(o.$$.fragment),i=x(),st(s.$$.fragment),T(l,"class",a=t[0].main),T(e,"class",c=t[0].container)},m(t,a){v(t,e,a),at(n,e,null),g(e,r),g(e,l),at(o,l,null),g(l,i),at(s,l,null),u=!0},p(t,n){let[r]=n;(!u||1&r&&a!==(a=t[0].main))&&T(l,"class",a),(!u||1&r&&c!==(c=t[0].container))&&T(e,"class",c)},i(t){u||(nt(n.$$.fragment,t),nt(o.$$.fragment,t),nt(s.$$.fragment,t),u=!0)},o(t){rt(n.$$.fragment,t),rt(o.$$.fragment,t),rt(s.$$.fragment,t),u=!1},d(t){t&&y(e),ct(n),ct(o),ct(s)}}}function Ei(t,e,n){let r,{theme:l}=B("state");return a(t,l,(t=>n(0,r=t))),[r,l]}class Si extends dt{constructor(t){super(),ut(this,t,Ei,Ti,o,{})}}var Mi={createOptions(t){t.buttonText.resourceTimelineDay="timeline",t.buttonText.resourceTimelineWeek="timeline",t.buttonText.resourceTimelineMonth="timeline",t.theme.expander="ec-expander",t.theme.main="ec-main",t.theme.times="ec-times",t.theme.container="ec-container",t.view="resourceTimelineWeek",t.views.resourceTimelineDay={buttonText:Me,component:Si,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},slotDuration:"01:00",theme:ze("ec-timeline ec-resource-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},t.views.resourceTimelineWeek={buttonText:Ue,component:Si,displayEventEnd:!1,duration:{weeks:1},slotDuration:"01:00",theme:ze("ec-timeline ec-resource-week-view")},t.views.resourceTimelineMonth={buttonText:Ne,component:Si,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:ze("ec-timeline ec-resource-month-view"),titleFormat:{year:"numeric",month:"long"}}},createStores(t){"_viewResources"in t||(t._viewResources=Xe(t)),t._headerEl=mt(void 0),t._dayTimeLimits=function(t){return pt([t.slotMinTime,t.slotMaxTime,t.flexibleSlotTimeLimits,t._viewDates,t._events],(t=>{let[e,n,r,l,o]=t,i={};for(let t of l)i[t.getTime()]=Je(e,n,r,[t],o);return i}))}(t),t._dayTimes=function(t){return pt([t._viewDates,t.slotDuration,t.slotLabelInterval,t._dayTimeLimits,t._intlSlotLabel],(t=>{let[e,n,r,l,o]=t,i={};for(let t of e){let e=t.getTime();i[e]=e in l?Ve(t,n,r,l[e],o):[]}return i}))}(t),t._nestedResources=function(t){return pt(t.resources,(t=>t.some((t=>ee(t).children.length))))}(t),t._resHs=mt(new Map),t._sidebarEl=mt(void 0)}};let Ui=!1;function Ni(t,e,n){return Wt(e,jt(n,t))}const{window:Li}=$;function Ri(e){let n,o;return{c:t,m(t,r){n||(o=[_(Li,"pointermove",e[37]),_(Li,"pointerup",e[38]),_(Li,"pointercancel",e[38]),_(Li,"scroll",e[0]),_(Li,"selectstart",Bi(e[39])),_(Li,"contextmenu",(function(){l(Bi(e[47]))&&Bi(e[47]).apply(this,arguments)})),_(Li,"touchstart",e[40]),_(Li,"touchmove",e[46],{passive:!1})],n=!0)},p(t,n){e=t},i:t,o:t,d(t){n=!1,r(o)}}}function zi(t,e){return t.start=e.start,t.end=e.end,t.resourceIds=e.resourceIds,t}function Hi(t){return t.isPrimary&&("mouse"!==t.pointerType||1&t.buttons)}function Bi(t){return e=>{t()&&e.preventDefault()}}function Fi(t,e,n){let r,l,o,i,s,c,u,d,f,h,p,$,g,v,y,w,b,k,x,C,_,D,T,E,S,M,U,N,L,R,z,H,A,P,I,j,W,O,G,Y,q,X,V,J,K,Q,Z,tt,et,nt,rt,lt,ot,it,st,at,ct,ut,dt,ft,ht,mt,{_iEvents:pt,_iClass:$t,_events:gt,_view:vt,_dayGrid:yt,_draggable:wt,_bodyEl:Tt,datesAboveResources:Mt,dateClick:Ut,dragConstraint:Nt,dragScroll:Rt,eventDragMinDistance:zt,eventDragStart:Ht,eventDragStop:Bt,eventDrop:At,eventLongPressDelay:Pt,eventResizeStart:It,eventResizeStop:Ot,eventResize:Yt,longPressDelay:Xt,resizeConstraint:Vt,selectable:Jt,select:Kt,selectBackgroundColor:Qt,selectConstraint:Zt,selectLongPressDelay:te,selectMinDistance:ne,slotDuration:oe,slotHeight:de,slotWidth:fe,unselect:he,unselectAuto:me,unselectCancel:pe,validRange:$e,view:ge}=B("state");function ve(t){window.getSelection().removeAllRanges(),J=Q=t.clientX,K=Z=t.clientY;let e=ie(Q,Z);({allDay:ot,date:Y,resource:X}=ee(e)(Q,Z)),ue(u)?tt=nt=H:(tt=le(e,X?4:3),nt=le(e,X&&(1===j||z)?2:1)),xe(),"mouse"!==t.pointerType&&n(1,dt=setTimeout((()=>{j&&(W=!0,ye(t))}),(Me()?R:L)??N))}function ye(t){if(W||t&&"mouse"===t.pointerType&&Math.sqrt(Math.pow(Q-J,2)+Math.pow(Z-K,2))>=(Me()?U:M)){W=!0,Ne(t),m($t,f=it,f),i[0]||(Me()?m(pt,i[0]={id:"{select}",allDay:O.allDay,start:O.start,title:"",display:"preview",extendedProps:{},backgroundColor:s,resourceIds:O.resourceIds,classNames:[],styles:[]},i):function(t,e){Gt(e)&&e({event:we(O),jsEvent:t,view:ae(r)});G=O.display,O.display="preview",m(pt,i[0]=be(O),i),void 0!==ht&&m(pt,i[0]._margin=ht,i);mt&&xt(i[0].end,mt);O.display="ghost",gt.set(o)}(t,Ee()?S:E));let e=ke(ie(Ni(Q,ft[0],ft[1]),Ni(Z,ft[2],ft[3])));if(e){let n;if(({allDay:n,date:q,resource:V}=e),n===ot){let e=zi({},i[0]),n=T;lt=bt((q-Y)/1e3),Se()?(e.start=xt(kt(O.start),lt),e.start>st&&(e.start=st,lt=bt((st-O.start)/1e3))):(e.end=xt(kt(O.end),lt),mt&&xt(e.end,mt),Ee()?e.end<st&&(e.end=st,lt=bt((st-O.end)/1e3)):Me()?(e.end<O.end?(e.start=Ct(e.end,at),e.end=O.end):e.start=O.start,n=D):(e.start=xt(kt(O.start),lt),X&&(e.resourceIds=O.resourceIds.filter((t=>t!==X.id)),e.resourceIds.push(V.id)),n=_));do{if(void 0!==n){if(e=zi(be(O),e),!1===n(Me()?De(e,t):Te(e,O,t))){m(pt,i[0]=zi(i[0],O),i);break}}m(pt,i[0]=zi(i[0],e),i)}while(0)}}}if(C){let t=2*x,n=k;e=()=>{tt&&(Z<t&&window.scrollBy(0,Wt(-10,(Z-t)/3)),Z<et.top+t&&(tt.scrollTop+=Wt(-10,(Z-et.top-t)/3)),Z>window.innerHeight-t&&window.scrollBy(0,jt(10,(Z-window.innerHeight+t)/3)),Z>et.bottom-t&&(tt.scrollTop+=jt(10,(Z-et.bottom+t)/3)),ue(u)&&(Q<et.left+n&&(tt.scrollLeft+=Wt(-10,(Q-et.left-n)/3)),Q>et.right-n&&(tt.scrollLeft+=jt(10,(Q-et.right+n)/3))))},Ui||(Ui=!0,window.requestAnimationFrame((()=>{e(),Ui=!1})))}var e}function ke(t){if(t){let e=ee(t)(Q,Z);if(!e.disabled)return e;if(!d.end||e.date<d.end)return ke(t.nextElementSibling);if(!d.start||e.date>d.start)return ke(t.previousElementSibling)}return null}function xe(){et=re(tt),rt=re(nt),ft=[Wt(0,rt.left+(ue(u)?1:c?0:8)),jt(document.documentElement.clientWidth,rt.left+nt.clientWidth)-2,Wt(0,et.top),jt(document.documentElement.clientHeight,et.top+tt.clientHeight)-2]}function Ce(){m(pt,i[0]=null,i)}function _e(t,e){zi(t,e),gt.set(o)}function De(t,e){let{start:n,end:l}=we(t);return{start:n,end:l,startStr:St(t.start),endStr:St(t.end),allDay:ot,view:ae(r),resource:X,jsEvent:e}}function Te(t,e,n){let l;return l=Ee()?Se()?{startDelta:lt,endDelta:bt(0)}:{startDelta:bt(0),endDelta:lt}:{delta:lt,oldResource:X!==V?X:void 0,newResource:X!==V?V:void 0},Ft(l,{event:we(t),oldEvent:we(e),view:ae(r),jsEvent:n}),l}function Ee(){return 2===j||Se()}function Se(){return 3===j}function Me(){return 4===j}function Ue(){return j&&j<5}function Ne(t){ct&&(ct=!1,Ce(),Gt(l)&&l({jsEvent:t,view:ae(r)}))}a(t,pt,(t=>n(77,i=t))),a(t,$t,(t=>n(82,f=t))),a(t,gt,(t=>n(76,o=t))),a(t,vt,(t=>n(74,r=t))),a(t,yt,(t=>n(79,c=t))),a(t,wt,(t=>n(108,I=t))),a(t,Tt,(t=>n(105,H=t))),a(t,Mt,(t=>n(104,z=t))),a(t,Ut,(t=>n(83,h=t))),a(t,Nt,(t=>n(94,_=t))),a(t,Rt,(t=>n(93,C=t))),a(t,zt,(t=>n(99,M=t))),a(t,Ht,(t=>n(97,E=t))),a(t,Bt,(t=>n(86,g=t))),a(t,At,(t=>n(84,p=t))),a(t,Pt,(t=>n(102,L=t))),a(t,It,(t=>n(98,S=t))),a(t,Ot,(t=>n(87,v=t))),a(t,Yt,(t=>n(85,$=t))),a(t,Xt,(t=>n(101,N=t))),a(t,Vt,(t=>n(96,T=t))),a(t,Jt,(t=>n(107,P=t))),a(t,Kt,(t=>n(88,y=t))),a(t,Qt,(t=>n(78,s=t))),a(t,Zt,(t=>n(95,D=t))),a(t,te,(t=>n(103,R=t))),a(t,ne,(t=>n(100,U=t))),a(t,oe,(t=>n(106,A=t))),a(t,de,(t=>n(92,x=t))),a(t,fe,(t=>n(91,k=t))),a(t,he,(t=>n(75,l=t))),a(t,me,(t=>n(90,b=t))),a(t,pe,(t=>n(89,w=t))),a(t,$e,(t=>n(81,d=t))),a(t,ge,(t=>n(80,u=t))),vt.subscribe(Ne);return[function(){Ue()&&(xe(),ye())},dt,pt,$t,gt,vt,yt,wt,Tt,Mt,Ut,Nt,Rt,zt,Ht,Bt,At,Pt,It,Ot,Yt,Xt,Vt,Jt,Kt,Qt,Zt,te,ne,oe,de,fe,he,me,pe,$e,ge,function(t){Ue()&&t.isPrimary&&(Q=t.clientX,Z=t.clientY,ye(t))},function(t){if(!ct||!b||w&&t.target.closest(w)||Ne(t),j&&t.isPrimary){if(W)if(Me()){if(ct=!0,Gt(y)){let e=De(i[0],t);y(e)}}else{O.display=G;let e=Ee()?v:g;Gt(e)&&e({event:we(O),jsEvent:t,view:ae(r)});let n=be(O);if(_e(O,i[0]),Ce(),e=Ee()?$:p,Gt(e)){let r=O;e(Ft(Te(O,n,t),{revert(){_e(r,n)}}))}}else if((5===j||Me())&&Gt(h)&&!ut){Q=t.clientX,Z=t.clientY;let e=ie(Q,Z);if(e){let{allDay:n,date:l,resource:o}=ee(e)(Q,Z);h({allDay:n,date:Et(l),dateStr:St(l),dayEl:e,jsEvent:t,view:ae(r),resource:o})}}W=!1,j=J=K=Q=Z=O=G=Y=q=X=V=lt=mt=ot=m($t,f=st=at=ht=void 0,f),tt=nt=et=rt=void 0,dt&&(clearTimeout(dt),n(1,dt=void 0))}ut=!1},Ue,function(t){if(Ue()){let e=t.target,n=[],r=()=>qt(n);n.push(se(e,"touchmove",Bi((()=>W)))),n.push(se(e,"touchend",r)),n.push(se(e,"touchcancel",r))}},function(t,e,n,r,l,o){j||(j=Hi(e)?n?"start"==n[1]?3:2:I(t)?1:6:6,Ue()&&(O=t,ve(e),r&&(Y=r),l&&(ht=l),it=n?"x"==n[0]?"resizingX":"resizingY":"dragging",n&&(Se()?(st=kt(O.end),ot?(Lt(st,O.start),st>=O.end&&Dt(st)):(Ct(st,A),st<O.start&&(st=O.start),Y=O.start)):(st=kt(O.start),ot?(Lt(st,O.end),st<=O.start&&!o&&_t(st)):(xt(st,A),st>O.end&&(st=O.end),Y=O.end,o||(Y=Ct(kt(Y),A)))),o&&!ot&&(mt=A)),ye(e)))},function(t){j||(j=Hi(t)?P&&!ce(u)?4:5:6,Ue()&&(ve(t),it="selecting",at=ot?bt({day:1}):A,O={allDay:ot,start:Y,end:xt(kt(Y),at),resourceIds:X?[X.id]:[]},ye(t)))},function(){j||(j=6)},Ne,function(){ut=!0},function(e){F.call(this,t,e)},()=>dt]}class Ai extends dt{constructor(t){super(),ut(this,t,Fi,Ri,o,{drag:41,select:42,noAction:43,handleScroll:0,unselect:44,noClick:45},null,[-1,-1,-1,-1,-1])}get drag(){return this.$$.ctx[41]}get select(){return this.$$.ctx[42]}get noAction(){return this.$$.ctx[43]}get handleScroll(){return this.$$.ctx[0]}get unselect(){return this.$$.ctx[44]}get noClick(){return this.$$.ctx[45]}}function Pi(e){let n,l;return{c:t,m(t,r){n||(l=[_(window,"pointermove",e[3]),_(window,"scroll",e[0])],n=!0)},p:t,i:t,o:t,d(t){n=!1,r(l)}}}function Ii(t,e,n){let r,l,{_iEvents:o,slotDuration:i}=B("state");a(t,o,(t=>n(4,r=t))),a(t,i,(t=>n(7,l=t)));let s=0,c=0;function u(){let t=ie(s,c);if(t){let{allDay:e,date:n,resource:i,disabled:a}=ee(t)(s,c);if(!a){let t=e?2:1;return r[t]||function(t){m(o,r[t]={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]},r)}(t),m(o,r[t].start=n,r),m(o,r[t].end=xt(kt(n),l),r),void m(o,r[t].resourceIds=i?[i.id]:[],r)}}d()}function d(){r[1]&&m(o,r[1]=null,r),r[2]&&m(o,r[2]=null,r)}return t.$$.update=()=>{16&t.$$.dirty&&r[0]&&d()},[function(){u()},o,i,function(t){(function(t){return t.isPrimary&&"mouse"===t.pointerType})(t)&&(s=t.clientX,c=t.clientY,u())},r]}class ji extends dt{constructor(t){super(),ut(this,t,Ii,Pi,o,{handleScroll:0})}get handleScroll(){return this.$$.ctx[0]}}function Wi(t){let e,n,r,l;return{c(){e=b("div"),T(e,"class",n=t[2].resizer+(t[0]?" "+t[2].start:""))},m(n,o){v(n,e,o),r||(l=_(e,"pointerdown",t[11]),r=!0)},p(t,r){5&r&&n!==(n=t[2].resizer+(t[0]?" "+t[2].start:""))&&T(e,"class",n)},d(t){t&&y(e),r=!1,l()}}}function Oi(e){let n,r=e[1]&&Wi(e);return{c(){r&&r.c(),n=C()},m(t,e){r&&r.m(t,e),v(t,n,e)},p(t,e){let[l]=e;t[1]?r?r.p(t,l):(r=Wi(t),r.c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},i:t,o:t,d(t){t&&y(n),r&&r.d(t)}}}function Gi(t,e,n){let r,l,o,i,s,{event:c}=e,{start:u=!1}=e,{theme:d,eventDurationEditable:f,eventResizableFromStart:h,editable:m}=B("state");return a(t,d,(t=>n(2,i=t))),a(t,f,(t=>n(9,l=t))),a(t,h,(t=>n(10,o=t))),a(t,m,(t=>n(8,r=t))),t.$$set=t=>{"event"in t&&n(7,c=t.event),"start"in t&&n(0,u=t.start)},t.$$.update=()=>{1921&t.$$.dirty&&n(1,s=!Ee(c.display)&&!Te(c.display)&&(!u||o)&&((c.durationEditable??l)||(c.editable??r)))},[u,s,i,d,f,h,m,c,r,l,o,function(e){F.call(this,t,e)}]}class Yi extends dt{constructor(t){super(),ut(this,t,Gi,Oi,o,{event:7,start:0})}}function qi(t){let e,n;return e=new ji({props:{}}),t[16](e),{c(){st(e.$$.fragment)},m(t,r){at(e,t,r),n=!0},p(t,n){e.$set({})},i(t){n||(nt(e.$$.fragment,t),n=!0)},o(t){rt(e.$$.fragment,t),n=!1},d(n){t[16](null),ct(e,n)}}}function Xi(t){let e,n,r,l;e=new Ai({props:{}}),t[15](e);let o=t[1]&&qi(t);return{c(){st(e.$$.fragment),n=x(),o&&o.c(),r=C()},m(t,i){at(e,t,i),v(t,n,i),o&&o.m(t,i),v(t,r,i),l=!0},p(t,n){let[l]=n;e.$set({}),t[1]?o?(o.p(t,l),2&l&&nt(o,1)):(o=qi(t),o.c(),nt(o,1),o.m(r.parentNode,r)):o&&(tt(),rt(o,1,1,(()=>{o=null})),et())},i(t){l||(nt(e.$$.fragment,t),nt(o),l=!0)},o(t){rt(e.$$.fragment,t),rt(o),l=!1},d(l){l&&(y(n),y(r)),t[15](null),ct(e,l),o&&o.d(l)}}}function Vi(t,e,n){let r,l,o,i,s,c,u,d,{theme:f,editable:h,eventStartEditable:p,pointer:$,_bodyEl:g,_interaction:v,_iClasses:y,_draggable:w}=B("state");function b(){for(let t of Object.values(r))t?.handleScroll?.()}return a(t,f,(t=>n(11,o=t))),a(t,h,(t=>n(13,c=t))),a(t,p,(t=>n(14,u=t))),a(t,$,(t=>n(1,d=t))),a(t,g,(t=>n(10,l=t))),a(t,v,(t=>n(0,r=t))),a(t,y,(t=>n(17,s=t))),a(t,w,(t=>n(12,i=t))),m(v,r.resizer=Yi,r),t.$$.update=()=>{24576&t.$$.dirty&&m(w,i=t=>(t.startEditable??u)||(t.editable??c),i),6144&t.$$.dirty&&m(y,s=(t,e)=>{let{display:n}=e;return Te(n)?[o[n]]:!Ee(n)&&i(e)?[o.draggable]:[]},s),1024&t.$$.dirty&&l&&se(l,"scroll",b)},[r,d,f,h,p,$,g,v,y,w,l,o,i,c,u,function(t){P[t?"unshift":"push"]((()=>{r.action=t,v.set(r)}))},function(t){P[t?"unshift":"push"]((()=>{r.pointer=t,v.set(r)}))}]}class Ji extends dt{constructor(t){super(),ut(this,t,Vi,Xi,o,{})}}var Ki={createOptions(t){t.dateClick=void 0,t.dragConstraint=void 0,t.dragScroll=!0,t.editable=!1,t.eventDragMinDistance=5,t.eventDragStart=void 0,t.eventDragStop=void 0,t.eventDrop=void 0,t.eventDurationEditable=!0,t.eventLongPressDelay=void 0,t.eventResizableFromStart=!1,t.eventResizeStart=void 0,t.eventResizeStop=void 0,t.eventResize=void 0,t.eventStartEditable=!0,t.longPressDelay=1e3,t.pointer=!1,t.resizeConstraint=void 0,t.select=void 0,t.selectBackgroundColor=void 0,t.selectConstraint=void 0,t.selectLongPressDelay=void 0,t.selectMinDistance=5,t.unselect=void 0,t.unselectAuto=!0,t.unselectCancel="",t.theme.draggable="ec-draggable",t.theme.ghost="ec-ghost",t.theme.preview="ec-preview",t.theme.pointer="ec-pointer",t.theme.resizer="ec-resizer",t.theme.start="ec-start",t.theme.dragging="ec-dragging",t.theme.resizingY="ec-resizing-y",t.theme.resizingX="ec-resizing-x",t.theme.selecting="ec-selecting"},createStores(t){t._draggable=mt(Xt),t._auxiliary.update((t=>[...t,Ji]))}};return class extends Un{constructor(t,e){super({target:t,props:{plugins:[vr,Br,Gl,Co,Mi,Ki],options:e}})}}}();
+//# sourceMappingURL=event-calendar.min.js.map
diff --git a/calendar/index.html b/calendar/index.html
new file mode 100644
index 0000000..801e31b
--- /dev/null
+++ b/calendar/index.html
@@ -0,0 +1,111 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width,initial-scale=1">
+
+ <title>Event Calendar</title>
+
+ <link rel="stylesheet" href="event-calendar.min.css">
+ <script src="event-calendar.min.js"></script>
+
+ <style>
+ .ec-timeline .ec-time, .ec-timeline .ec-line {
+ width: 80px;
+ }
+ </style>
+</head>
+
+<body>
+
+<header class="row">
+ <h4 class="col"><a href="https://github.com/vkurko/calendar">Event Calendar</a> Demo</h4>
+ <button class="toggle-dark-button" title="Toggle dark mode" onclick="document.body.classList.toggle('ec-dark')">
+ <svg class="light" focusable="false" viewBox="0 0 32 32"><path d="M16 12.005a4 4 0 1 1-4 4a4.005 4.005 0 0 1 4-4m0-2a6 6 0 1 0 6 6a6 6 0 0 0-6-6z" fill="currentColor"></path><path d="M5.394 6.813l1.414-1.415l3.506 3.506L8.9 10.318z" fill="currentColor"></path><path d="M2 15.005h5v2H2z" fill="currentColor"></path><path d="M5.394 25.197L8.9 21.691l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 25.005h2v5h-2z" fill="currentColor"></path><path d="M21.687 23.106l1.414-1.415l3.506 3.506l-1.414 1.414z" fill="currentColor"></path><path d="M25 15.005h5v2h-5z" fill="currentColor"></path><path d="M21.687 8.904l3.506-3.506l1.414 1.415l-3.506 3.505z" fill="currentColor"></path><path d="M15 2.005h2v5h-2z" fill="currentColor"></path></svg>
+ <svg class="dark" focusable="false" viewBox="0 0 32 32"><path d="M13.502 5.414a15.075 15.075 0 0 0 11.594 18.194a11.113 11.113 0 0 1-7.975 3.39c-.138 0-.278.005-.418 0a11.094 11.094 0 0 1-3.2-21.584M14.98 3a1.002 1.002 0 0 0-.175.016a13.096 13.096 0 0 0 1.825 25.981c.164.006.328 0 .49 0a13.072 13.072 0 0 0 10.703-5.555a1.01 1.01 0 0 0-.783-1.565A13.08 13.08 0 0 1 15.89 4.38A1.015 1.015 0 0 0 14.98 3z" fill="currentColor"></path></svg>
+ </button>
+</header>
+<main class="row">
+ <div id="ec" class="col"></div>
+</main>
+
+<script type="text/javascript">
+ const ec = new EventCalendar(document.getElementById('ec'), {
+ view: 'timeGridWeek',
+ headerToolbar: {
+ start: 'prev,next today',
+ center: 'title',
+ end: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek resourceTimeGridWeek,resourceTimelineWeek'
+ },
+ resources: [
+ {id: 1, title: 'Resource A'},
+ {id: 2, title: 'Resource B'}
+ ],
+ scrollTime: '09:00:00',
+ events: createEvents(),
+ views: {
+ timeGridWeek: {pointer: true},
+ resourceTimeGridWeek: {pointer: true},
+ resourceTimelineWeek: {
+ pointer: true,
+ slotMinTime: '09:00',
+ slotMaxTime: '21:00',
+ slotWidth: 80,
+ resources: [
+ {id: 1, title: 'Resource A'},
+ {id: 2, title: 'Resource B'},
+ {id: 3, title: 'Resource C'},
+ {id: 4, title: 'Resource D'},
+ {id: 5, title: 'Resource E'},
+ {id: 6, title: 'Resource F'},
+ {id: 7, title: 'Resource G'},
+ {id: 8, title: 'Resource H'},
+ {id: 9, title: 'Resource I', children: [
+ {id: 10, title: 'Resource J'},
+ {id: 11, title: 'Resource K'},
+ {id: 12, title: 'Resource L', children: [
+ {id: 13, title: 'Resource M'},
+ {id: 14, title: 'Resource N'},
+ {id: 15, title: 'Resource O'}
+ ]}
+ ]}
+ ]
+ }
+ },
+ dayMaxEvents: true,
+ nowIndicator: true,
+ selectable: true
+ });
+
+ function createEvents() {
+ let days = [];
+ for (let i = 0; i < 7; ++i) {
+ let day = new Date();
+ let diff = i - day.getDay();
+ day.setDate(day.getDate() + diff);
+ days[i] = day.getFullYear() + "-" + _pad(day.getMonth()+1) + "-" + _pad(day.getDate());
+ }
+
+ return [
+ {start: days[0] + " 00:00", end: days[0] + " 09:00", resourceId: 1, display: "background"},
+ {start: days[1] + " 12:00", end: days[1] + " 14:00", resourceId: 2, display: "background"},
+ {start: days[2] + " 17:00", end: days[2] + " 24:00", resourceId: 1, display: "background"},
+ {start: days[0] + " 10:00", end: days[0] + " 14:00", resourceId: 1, title: "The calendar can display background and regular events", color: "#FE6B64"},
+ {start: days[1] + " 16:00", end: days[2] + " 08:00", resourceId: 2, title: "An event may span to another day", color: "#B29DD9"},
+ {start: days[2] + " 09:00", end: days[2] + " 13:00", resourceId: 2, title: "Events can be assigned to resources and the calendar has the resources view built-in", color: "#779ECB"},
+ {start: days[3] + " 14:00", end: days[3] + " 20:00", resourceId: 1, title: "", color: "#FE6B64"},
+ {start: days[3] + " 15:00", end: days[3] + " 18:00", resourceId: 1, title: "Overlapping events are positioned properly", color: "#779ECB"},
+ {start: days[5] + " 10:00", end: days[5] + " 16:00", resourceId: 2, title: {html: "You have complete control over the <i><b>display</b></i> of events…"}, color: "#779ECB"},
+ {start: days[5] + " 14:00", end: days[5] + " 19:00", resourceId: 2, title: "…and you can drag and drop the events!", color: "#FE6B64"},
+ {start: days[5] + " 18:00", end: days[5] + " 21:00", resourceId: 2, title: "", color: "#B29DD9"},
+ {start: days[1], end: days[3], resourceId: 1, title: "All-day events can be displayed at the top", color: "#B29DD9", allDay: true}
+ ];
+ }
+
+ function _pad(num) {
+ let norm = Math.floor(Math.abs(num));
+ return (norm < 10 ? '0' : '') + norm;
+ }
+</script>
+</body>
+</html>