├── .gitignore ├── LICENSE ├── README.org ├── index.html ├── maple-preview.el ├── screenshot └── preview.gif └── static ├── css ├── highlight.css └── markdown.css └── js ├── highlight.min.js ├── jquery.min.js ├── marked-highlight.min.js ├── marked.min.js └── mermaid.min.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled 2 | *.elc 3 | 4 | # Packaging 5 | .cask 6 | 7 | # Backup files 8 | *~ 9 | 10 | # Undo-tree save-files 11 | *.~undo-tree 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.org: -------------------------------------------------------------------------------- 1 | * emacs-maple-preview 2 | markdown, org-mode or html realtime preview on Emacs 3 | 4 | ** screenshot 5 | [[https://github.com/honmaple/emacs-maple-preview/blob/master/screenshot/preview.gif]] 6 | 7 | ** quickstart 8 | #+begin_src elisp 9 | (use-package maple-preview 10 | :quelpa (:fetcher github :repo "honmaple/emacs-maple-preview" :files ("*.el" "index.html" "static")) 11 | :commands (maple-preview-mode)) 12 | #+end_src 13 | 14 | Or alternatively, you can download the repository and install manually by doing: 15 | #+BEGIN_SRC sehll 16 | git clone https://github.com/honmaple/emacs-maple-preview ~/.emacs.d/site-lisp/maple-preview 17 | #+END_SRC 18 | 19 | #+begin_src elisp 20 | ;; These are dependent libraries 21 | (use-package websocket) 22 | (use-package web-server) 23 | 24 | (use-package maple-preview 25 | :ensure nil 26 | :commands (maple-preview-mode)) 27 | #+end_src 28 | 29 | ** customize 30 | #+begin_src elisp 31 | ;; only enable preview within some special modes 32 | (setq maple-preview:allow-modes '(org-mode markdown-mode html-mode web-mode)) 33 | ;; How to preview text, export to markdown or html 34 | (setq maple-preview:text-content '((t . maple-preview:markdown-content))) 35 | ;; Preview http host 36 | (setq maple-preview:host "localhost") 37 | ;; Preview http port, t means use unused port 38 | (setq maple-preview:port t) 39 | ;; Delay preview when auto update is non-nil 40 | (setq maple-preview:delay 0.1) 41 | ;; Auto open browser 42 | (setq maple-preview:browser-open t) 43 | ;; Auto preview when insert 44 | (setq maple-preview:auto-update t) 45 | ;; Auto scroll when preview 46 | (setq maple-preview:auto-scroll t) 47 | ;; custom css or js file 48 | (add-to-list 'maple-preview:js-file "https://cdn.bootcss.com/mathjax/2.7.6/MathJax.js" t) 49 | (add-to-list 'maple-preview:css-file 50 | "" t) 55 | #+end_src 56 | 57 | * Static Files 58 | - css 59 | #+begin_example 60 | wget https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.5.1/github-markdown.min.css -O static/css/markdown.css 61 | wget https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css -O static/css/highlight.css 62 | #+end_example 63 | - js 64 | #+begin_example 65 | wget https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js -O static/js/jquery.min.js 66 | wget https://cdnjs.cloudflare.com/ajax/libs/marked/12.0.1/marked.min.js -O static/js/marked.min.js 67 | wget https://cdnjs.cloudflare.com/ajax/libs/marked-highlight/2.1.1/index.umd.min.js -O static/js/marked-highlight.min.js 68 | wget https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js -O static/js/highlight.min.js 69 | wget https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.9.0/mermaid.min.js -O static/js/mermaid.min.js 70 | #+end_example 71 | 72 | * FAQ 73 | ** How to preview Latex within org-mode? 74 | #+begin_src elisp 75 | (setq maple-preview:text-content '((org-mode . maple-preview:html-content) 76 | (t . maple-preview:markdown-content))) 77 | #+end_src 78 | Then *maple-preview* will export org-mode as html with mathjax.js, if you want to custom beautiful css, use 79 | 80 | #+begin_example 81 | #+HTML_HEAD: 82 | #+end_example 83 | ** How to preview mermaid within org-mode? 84 | #+begin_src elisp 85 | (defun maple/org-md-example-block (example-block _contents info) 86 | (format "```%s\n%s\n```" 87 | (org-element-property :language example-block) 88 | (org-remove-indentation 89 | (org-export-format-code-default example-block info)))) 90 | (advice-add 'org-md-example-block :override 'maple/org-md-example-block) 91 | 92 | #+end_src 93 | 94 | Then use src with mermaid flag 95 | #+begin_src mermaid 96 | graph TD 97 | A[nginx] 98 | B(log) 99 | C(upstream) 100 | A -->|write| B 101 | A -->|send| C 102 | #+end_src 103 | ** Not available in windows? 104 | Maybe it's because of the newline encoding problem in Windows 105 | #+begin_src elisp 106 | (defun custom-websocket-text (text) 107 | (if (eq system-type 'windows-nt) 108 | (replace-regexp-in-string "\n" "^M" text) 109 | text)) 110 | 111 | (advice-add 'maple-preview:websocket-text :filter-return #'custom-websocket-text) 112 | #+end_src 113 | 114 | =^M= is =C-q C-m= 115 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Text Preview 6 | 7 | {{ css }} 8 | 27 | 28 | 29 |
30 |
Text Preview
31 |
32 | 33 | {{ js }} 34 | 114 | 115 | -------------------------------------------------------------------------------- /maple-preview.el: -------------------------------------------------------------------------------- 1 | ;;; maple-preview.el --- preview text file. -*- lexical-binding: t -*- 2 | 3 | ;; Copyright (C) 2015-2024 lin.jiang 4 | 5 | ;; Author: lin.jiang 6 | ;; Version: 0.1.1 7 | ;; Package-Requires: ((emacs "25.1") (web-server "0.1.2") (websocket "1.9")) 8 | ;; URL: https://github.com/honmaple/emacs-maple-preview 9 | 10 | 11 | ;; This file is free software: you can redistribute it and/or modify 12 | ;; it under the terms of the GNU General Public License as published by 13 | ;; the Free Software Foundation, either version 3 of the License, or 14 | ;; (at your option) any later version. 15 | 16 | ;; This file is distributed in the hope that it will be useful, 17 | ;; but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 | ;; GNU General Public License for more details. 20 | 21 | ;; You should have received a copy of the GNU General Public License 22 | ;; along with this file. If not, see . 23 | 24 | ;;; Commentary: 25 | ;; 26 | ;; preview text file. 27 | ;; 28 | 29 | ;;; Code: 30 | 31 | (require 'cl-lib) 32 | (require 'web-server) 33 | (require 'websocket) 34 | 35 | (declare-function org-export-as 'ox-html) 36 | 37 | (defgroup maple-preview nil 38 | "Realtime Preview." 39 | :group 'text 40 | :prefix "maple-preview:") 41 | 42 | (defcustom maple-preview:allow-modes '(org-mode markdown-mode html-mode web-mode) 43 | "Allow preview modes." 44 | :type 'list 45 | :group 'maple-preview) 46 | 47 | (defcustom maple-preview:host "127.0.0.1" 48 | "Preview http host." 49 | :type 'string 50 | :group 'maple-preview) 51 | 52 | (defcustom maple-preview:port t 53 | "Preview http port, t means auto select unused port." 54 | :type 'integer 55 | :group 'maple-preview) 56 | 57 | (defcustom maple-preview:delay 0.1 58 | "Delay time when auto update preview." 59 | :type 'float 60 | :group 'maple-preview) 61 | 62 | (defcustom maple-preview:browser-open t 63 | "Auto open browser." 64 | :type 'boolean 65 | :group 'maple-preview) 66 | 67 | (defcustom maple-preview:auto-update t 68 | "Auto update when preview." 69 | :type 'boolean 70 | :group 'maple-preview) 71 | 72 | (defcustom maple-preview:auto-scroll t 73 | "Auto scroll when preview." 74 | :type 'boolean 75 | :group 'maple-preview) 76 | 77 | (defcustom maple-preview:text-content 78 | '((t . maple-preview:markdown-content)) 79 | "How to preview text, export to markdown or html." 80 | :type 'cons 81 | :group 'maple-preview) 82 | 83 | (defcustom maple-preview:css-file 84 | '("/preview/static/css/markdown.css" 85 | "/preview/static/css/highlight.css") 86 | "Custom preview css style." 87 | :type 'list 88 | :group 'maple-preview) 89 | 90 | (defcustom maple-preview:js-file 91 | '("/preview/static/js/jquery.min.js" 92 | "/preview/static/js/marked.min.js" 93 | "/preview/static/js/marked-highlight.min.js" 94 | "/preview/static/js/highlight.min.js" 95 | "/preview/static/js/mermaid.min.js") 96 | "Custom preview js script." 97 | :type 'list 98 | :group 'maple-preview) 99 | 100 | (defcustom maple-preview:auto-hook nil 101 | "Hook for user specified auto preview instance. 102 | 103 | This hook run within the procedure of `maple-preview:init' when 104 | customized variable `maple-preview:auto-update' was non-nil. 105 | 106 | The internal auto-preview type transferred 107 | `maple-preview:send-to-server' to the `post-self-insert-hook', 108 | this hook providing more customization functional for as." 109 | :type 'hook 110 | :group 'maple-preview) 111 | 112 | (defcustom maple-preview:finialize-hook nil 113 | "Hooks for run with `maple-preview:finalize'. 114 | It's useful to remove all dirty hacking with `maple-preview:auto-hook'." 115 | :type 'hook 116 | :group 'maple-preview) 117 | 118 | (defvar maple-preview:server nil 119 | "`maple-preview' http server.") 120 | (defvar maple-preview:websocket nil) 121 | (defvar maple-preview:sending nil) 122 | 123 | (defvar maple-preview:home-path (file-name-directory load-file-name)) 124 | (defvar maple-preview:index-file (concat maple-preview:home-path "index.html")) 125 | 126 | (defun maple-preview:mime-type(path) 127 | "Guess mime type from PATH." 128 | (let ((mime (mm-default-file-type path))) 129 | (if (and (not mime) (string-suffix-p ".js" path)) 130 | "application/javascript" 131 | mime))) 132 | 133 | (defun maple-preview:position-percent () 134 | "Preview position percent." 135 | (when maple-preview:auto-scroll 136 | (format 137 | "
%s
\n" 138 | (number-to-string 139 | (truncate (* 100 (/ (float (- (line-number-at-pos) (/ (count-screen-lines (window-start) (point)) 2))) 140 | (count-lines (point-min) (point-max))))))))) 141 | 142 | (defun maple-preview:css-template () 143 | "Css Template." 144 | (mapconcat 145 | (lambda (x) 146 | (if (string-match-p "^[\n\t ]*" x))) 148 | maple-preview:css-file "\n")) 149 | 150 | (defun maple-preview:js-template () 151 | "Css Template." 152 | (mapconcat 153 | (lambda (x) 154 | (if (string-match-p "^[\n\t ]*" x))) 156 | maple-preview:js-file "\n")) 157 | 158 | (defun maple-preview:template () 159 | "Template." 160 | (with-temp-buffer 161 | (insert-file-contents maple-preview:index-file) 162 | (when (search-forward "{{ css }}" nil t) 163 | (replace-match (maple-preview:css-template) t)) 164 | (when (search-forward "{{ js }}" nil t) 165 | (replace-match (maple-preview:js-template) t)) 166 | (when (search-forward "{{ websocket }}" nil t) 167 | (replace-match (maple-preview:listen) t)) 168 | (buffer-string))) 169 | 170 | (defun maple-preview:html-content () 171 | "Get file html content." 172 | (concat (cond ((memq major-mode '(org-mode markdown-mode)) 173 | (unless (featurep 'ox-html) (require 'ox-html)) 174 | (let ((org-html-postamble nil)) 175 | (ignore org-html-postamble) 176 | (org-export-as 'html))) 177 | (t (buffer-substring-no-properties (point-min) (point-max)))) 178 | "")) 179 | 180 | (defun maple-preview:markdown-content () 181 | "Get file markdown content." 182 | (cond ((eq major-mode 'org-mode) 183 | (unless (featurep 'ox-md) (require 'ox-md)) 184 | (org-export-as 'md)) 185 | ((memq major-mode '(web-mode html-mode)) 186 | (concat (buffer-substring-no-properties (point-min) (point-max)) "")) 187 | (t (buffer-substring-no-properties (point-min) (point-max))))) 188 | 189 | (defun maple-preview:send-content() 190 | "Send content to server with delay time." 191 | (if (> maple-preview:delay 0) 192 | (unless maple-preview:sending 193 | (setq maple-preview:sending t) 194 | (run-with-idle-timer 195 | maple-preview:delay nil 196 | (lambda() 197 | (maple-preview:send-to-server) 198 | (setq maple-preview:sending nil)))) 199 | (maple-preview:send-to-server))) 200 | 201 | (defun maple-preview:send-to-server (&optional ws _string) 202 | "Send STRING the `maple-preview' preview to WS clients." 203 | (when (and (bound-and-true-p maple-preview-mode) 204 | (member major-mode maple-preview:allow-modes)) 205 | (let ((text-content-func (cdr (assoc major-mode maple-preview:text-content)))) 206 | (unless text-content-func 207 | (setq text-content-func (cdr (assoc t maple-preview:text-content)))) 208 | (process-send-string (or ws maple-preview:websocket) 209 | (maple-preview:websocket-text 210 | (concat (maple-preview:position-percent) (funcall text-content-func))))))) 211 | 212 | (defun maple-preview:websocket-text(text) 213 | "Decode websocket TEXT,ws-web-socket-frame utf-8 is unsupported." 214 | (websocket-encode-frame 215 | (make-websocket-frame :opcode 'text 216 | :payload (encode-coding-string 217 | text 'raw-text) 218 | :completep t) 219 | nil)) 220 | 221 | (defun maple-preview:init-server() 222 | "Init server." 223 | (unless maple-preview:server 224 | (setq maple-preview:server 225 | (ws-start 226 | (lambda (request) 227 | (with-slots (process headers) request 228 | (if (ws-web-socket-connect request 'maple-preview:send-to-server) 229 | (prog1 :keep-alive (setq maple-preview:websocket process)) 230 | (let ((path (substring (cdr (assoc :GET headers)) 1))) 231 | (catch 'close-connection 232 | (cond ((string= path "favicon.ico") 233 | (ws-send-404 process)) 234 | ((string= path "preview") 235 | (ws-response-header process 200 '("Content-type" . "text/html")) 236 | (ws-send process (maple-preview:template))) 237 | ((string-prefix-p "preview/" path) 238 | (ws-send-file 239 | process 240 | (expand-file-name (string-trim-left path "preview/") maple-preview:home-path) 241 | (maple-preview:mime-type path))) 242 | ((ws-in-directory-p default-directory path) 243 | (ws-send-file 244 | process 245 | (expand-file-name path default-directory) 246 | (maple-preview:mime-type path))) 247 | (t (ws-send-404 process)))))))) 248 | maple-preview:port nil 249 | :host maple-preview:host 250 | ;; name is unvalid 251 | :name "maple-preview-server")))) 252 | 253 | (defun maple-preview:listen() 254 | "Get listen address." 255 | (unless maple-preview:server 256 | (error "There is no listen address")) 257 | (format "%s:%s" maple-preview:host 258 | (if (booleanp maple-preview:port) 259 | (process-contact (ws-process maple-preview:server) :service t) 260 | maple-preview:port))) 261 | 262 | (defun maple-preview:open-browser () 263 | "Open browser." 264 | (browse-url 265 | (format "http://%s/preview" (maple-preview:listen)))) 266 | 267 | (defun maple-preview:init () 268 | "Preview init." 269 | (maple-preview:init-server) 270 | (when maple-preview:browser-open (maple-preview:open-browser)) 271 | (when maple-preview:auto-update 272 | (add-hook 'post-self-insert-hook #'maple-preview:send-content) 273 | (run-hooks 'maple-preview:auto-hook)) 274 | (add-hook 'after-save-hook #'maple-preview:send-content)) 275 | 276 | (defun maple-preview:finalize () 277 | "Preview close." 278 | (setq maple-preview:sending nil) 279 | (when maple-preview:server 280 | (ws-stop maple-preview:server) 281 | (setq maple-preview:server nil)) 282 | (when maple-preview:websocket 283 | (setq maple-preview:websocket nil)) 284 | (remove-hook 'post-self-insert-hook 'maple-preview:send-content) 285 | (remove-hook 'after-save-hook 'maple-preview:send-content)) 286 | 287 | ;;;###autoload 288 | (defun maple-preview-cleanup () 289 | "Cleanup `maple-preview' mode." 290 | (interactive) 291 | (maple-preview:finalize) 292 | (run-hooks 'maple-preview:finialize-hook)) 293 | 294 | ;;;###autoload 295 | (define-minor-mode maple-preview-mode 296 | "Maple preview mode." 297 | :group 'maple-preview 298 | :init-value nil 299 | :global t 300 | (if maple-preview-mode (maple-preview:init) (maple-preview:finalize))) 301 | 302 | (provide 'maple-preview) 303 | ;;; maple-preview.el ends here 304 | -------------------------------------------------------------------------------- /screenshot/preview.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/honmaple/emacs-maple-preview/26dc0bcf43b23026b0b985bfdb88599b055b6497/screenshot/preview.gif -------------------------------------------------------------------------------- /static/css/highlight.css: -------------------------------------------------------------------------------- 1 | pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*! 2 | Theme: GitHub 3 | Description: Light theme as seen on github.com 4 | Author: github.com 5 | Maintainer: @Hirse 6 | Updated: 2021-05-15 7 | 8 | Outdated base version: https://github.com/primer/github-syntax-light 9 | Current colors taken from GitHub's CSS 10 | */.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0} -------------------------------------------------------------------------------- /static/css/markdown.css: -------------------------------------------------------------------------------- 1 | @media (prefers-color-scheme: dark) { 2 | .markdown-body, 3 | [data-theme="dark"] { 4 | /*dark*/ 5 | color-scheme: dark; 6 | --color-prettylights-syntax-comment: #8b949e; 7 | --color-prettylights-syntax-constant: #79c0ff; 8 | --color-prettylights-syntax-entity: #d2a8ff; 9 | --color-prettylights-syntax-storage-modifier-import: #c9d1d9; 10 | --color-prettylights-syntax-entity-tag: #7ee787; 11 | --color-prettylights-syntax-keyword: #ff7b72; 12 | --color-prettylights-syntax-string: #a5d6ff; 13 | --color-prettylights-syntax-variable: #ffa657; 14 | --color-prettylights-syntax-brackethighlighter-unmatched: #f85149; 15 | --color-prettylights-syntax-invalid-illegal-text: #f0f6fc; 16 | --color-prettylights-syntax-invalid-illegal-bg: #8e1519; 17 | --color-prettylights-syntax-carriage-return-text: #f0f6fc; 18 | --color-prettylights-syntax-carriage-return-bg: #b62324; 19 | --color-prettylights-syntax-string-regexp: #7ee787; 20 | --color-prettylights-syntax-markup-list: #f2cc60; 21 | --color-prettylights-syntax-markup-heading: #1f6feb; 22 | --color-prettylights-syntax-markup-italic: #c9d1d9; 23 | --color-prettylights-syntax-markup-bold: #c9d1d9; 24 | --color-prettylights-syntax-markup-deleted-text: #ffdcd7; 25 | --color-prettylights-syntax-markup-deleted-bg: #67060c; 26 | --color-prettylights-syntax-markup-inserted-text: #aff5b4; 27 | --color-prettylights-syntax-markup-inserted-bg: #033a16; 28 | --color-prettylights-syntax-markup-changed-text: #ffdfb6; 29 | --color-prettylights-syntax-markup-changed-bg: #5a1e02; 30 | --color-prettylights-syntax-markup-ignored-text: #c9d1d9; 31 | --color-prettylights-syntax-markup-ignored-bg: #1158c7; 32 | --color-prettylights-syntax-meta-diff-range: #d2a8ff; 33 | --color-prettylights-syntax-brackethighlighter-angle: #8b949e; 34 | --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58; 35 | --color-prettylights-syntax-constant-other-reference-link: #a5d6ff; 36 | --color-fg-default: #e6edf3; 37 | --color-fg-muted: #848d97; 38 | --color-fg-subtle: #6e7681; 39 | --color-canvas-default: #0d1117; 40 | --color-canvas-subtle: #161b22; 41 | --color-border-default: #30363d; 42 | --color-border-muted: #21262d; 43 | --color-neutral-muted: rgba(110,118,129,0.4); 44 | --color-accent-fg: #2f81f7; 45 | --color-accent-emphasis: #1f6feb; 46 | --color-success-fg: #3fb950; 47 | --color-success-emphasis: #238636; 48 | --color-attention-fg: #d29922; 49 | --color-attention-emphasis: #9e6a03; 50 | --color-attention-subtle: rgba(187,128,9,0.15); 51 | --color-danger-fg: #f85149; 52 | --color-danger-emphasis: #da3633; 53 | --color-done-fg: #a371f7; 54 | --color-done-emphasis: #8957e5; 55 | } 56 | } 57 | 58 | @media (prefers-color-scheme: light) { 59 | .markdown-body, 60 | [data-theme="light"] { 61 | /*light*/ 62 | color-scheme: light; 63 | --color-prettylights-syntax-comment: #57606a; 64 | --color-prettylights-syntax-constant: #0550ae; 65 | --color-prettylights-syntax-entity: #6639ba; 66 | --color-prettylights-syntax-storage-modifier-import: #24292f; 67 | --color-prettylights-syntax-entity-tag: #116329; 68 | --color-prettylights-syntax-keyword: #cf222e; 69 | --color-prettylights-syntax-string: #0a3069; 70 | --color-prettylights-syntax-variable: #953800; 71 | --color-prettylights-syntax-brackethighlighter-unmatched: #82071e; 72 | --color-prettylights-syntax-invalid-illegal-text: #f6f8fa; 73 | --color-prettylights-syntax-invalid-illegal-bg: #82071e; 74 | --color-prettylights-syntax-carriage-return-text: #f6f8fa; 75 | --color-prettylights-syntax-carriage-return-bg: #cf222e; 76 | --color-prettylights-syntax-string-regexp: #116329; 77 | --color-prettylights-syntax-markup-list: #3b2300; 78 | --color-prettylights-syntax-markup-heading: #0550ae; 79 | --color-prettylights-syntax-markup-italic: #24292f; 80 | --color-prettylights-syntax-markup-bold: #24292f; 81 | --color-prettylights-syntax-markup-deleted-text: #82071e; 82 | --color-prettylights-syntax-markup-deleted-bg: #ffebe9; 83 | --color-prettylights-syntax-markup-inserted-text: #116329; 84 | --color-prettylights-syntax-markup-inserted-bg: #dafbe1; 85 | --color-prettylights-syntax-markup-changed-text: #953800; 86 | --color-prettylights-syntax-markup-changed-bg: #ffd8b5; 87 | --color-prettylights-syntax-markup-ignored-text: #eaeef2; 88 | --color-prettylights-syntax-markup-ignored-bg: #0550ae; 89 | --color-prettylights-syntax-meta-diff-range: #8250df; 90 | --color-prettylights-syntax-brackethighlighter-angle: #57606a; 91 | --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f; 92 | --color-prettylights-syntax-constant-other-reference-link: #0a3069; 93 | --color-fg-default: #1F2328; 94 | --color-fg-muted: #656d76; 95 | --color-fg-subtle: #6e7781; 96 | --color-canvas-default: #ffffff; 97 | --color-canvas-subtle: #f6f8fa; 98 | --color-border-default: #d0d7de; 99 | --color-border-muted: hsla(210,18%,87%,1); 100 | --color-neutral-muted: rgba(175,184,193,0.2); 101 | --color-accent-fg: #0969da; 102 | --color-accent-emphasis: #0969da; 103 | --color-success-fg: #1a7f37; 104 | --color-success-emphasis: #1f883d; 105 | --color-attention-fg: #9a6700; 106 | --color-attention-emphasis: #9a6700; 107 | --color-attention-subtle: #fff8c5; 108 | --color-danger-fg: #d1242f; 109 | --color-danger-emphasis: #cf222e; 110 | --color-done-fg: #8250df; 111 | --color-done-emphasis: #8250df; 112 | } 113 | } 114 | 115 | .markdown-body { 116 | -ms-text-size-adjust: 100%; 117 | -webkit-text-size-adjust: 100%; 118 | margin: 0; 119 | color: var(--color-fg-default); 120 | background-color: var(--color-canvas-default); 121 | font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; 122 | font-size: 16px; 123 | line-height: 1.5; 124 | word-wrap: break-word; 125 | } 126 | 127 | .markdown-body .octicon { 128 | display: inline-block; 129 | fill: currentColor; 130 | vertical-align: text-bottom; 131 | } 132 | 133 | .markdown-body h1:hover .anchor .octicon-link:before, 134 | .markdown-body h2:hover .anchor .octicon-link:before, 135 | .markdown-body h3:hover .anchor .octicon-link:before, 136 | .markdown-body h4:hover .anchor .octicon-link:before, 137 | .markdown-body h5:hover .anchor .octicon-link:before, 138 | .markdown-body h6:hover .anchor .octicon-link:before { 139 | width: 16px; 140 | height: 16px; 141 | content: ' '; 142 | display: inline-block; 143 | background-color: currentColor; 144 | -webkit-mask-image: url("data:image/svg+xml,"); 145 | mask-image: url("data:image/svg+xml,"); 146 | } 147 | 148 | .markdown-body details, 149 | .markdown-body figcaption, 150 | .markdown-body figure { 151 | display: block; 152 | } 153 | 154 | .markdown-body summary { 155 | display: list-item; 156 | } 157 | 158 | .markdown-body [hidden] { 159 | display: none !important; 160 | } 161 | 162 | .markdown-body a { 163 | background-color: transparent; 164 | color: var(--color-accent-fg); 165 | text-decoration: none; 166 | } 167 | 168 | .markdown-body abbr[title] { 169 | border-bottom: none; 170 | -webkit-text-decoration: underline dotted; 171 | text-decoration: underline dotted; 172 | } 173 | 174 | .markdown-body b, 175 | .markdown-body strong { 176 | font-weight: var(--base-text-weight-semibold, 600); 177 | } 178 | 179 | .markdown-body dfn { 180 | font-style: italic; 181 | } 182 | 183 | .markdown-body h1 { 184 | margin: .67em 0; 185 | font-weight: var(--base-text-weight-semibold, 600); 186 | padding-bottom: .3em; 187 | font-size: 2em; 188 | border-bottom: 1px solid var(--color-border-muted); 189 | } 190 | 191 | .markdown-body mark { 192 | background-color: var(--color-attention-subtle); 193 | color: var(--color-fg-default); 194 | } 195 | 196 | .markdown-body small { 197 | font-size: 90%; 198 | } 199 | 200 | .markdown-body sub, 201 | .markdown-body sup { 202 | font-size: 75%; 203 | line-height: 0; 204 | position: relative; 205 | vertical-align: baseline; 206 | } 207 | 208 | .markdown-body sub { 209 | bottom: -0.25em; 210 | } 211 | 212 | .markdown-body sup { 213 | top: -0.5em; 214 | } 215 | 216 | .markdown-body img { 217 | border-style: none; 218 | max-width: 100%; 219 | box-sizing: content-box; 220 | background-color: var(--color-canvas-default); 221 | } 222 | 223 | .markdown-body code, 224 | .markdown-body kbd, 225 | .markdown-body pre, 226 | .markdown-body samp { 227 | font-family: monospace; 228 | font-size: 1em; 229 | } 230 | 231 | .markdown-body figure { 232 | margin: 1em 40px; 233 | } 234 | 235 | .markdown-body hr { 236 | box-sizing: content-box; 237 | overflow: hidden; 238 | background: transparent; 239 | border-bottom: 1px solid var(--color-border-muted); 240 | height: .25em; 241 | padding: 0; 242 | margin: 24px 0; 243 | background-color: var(--color-border-default); 244 | border: 0; 245 | } 246 | 247 | .markdown-body input { 248 | font: inherit; 249 | margin: 0; 250 | overflow: visible; 251 | font-family: inherit; 252 | font-size: inherit; 253 | line-height: inherit; 254 | } 255 | 256 | .markdown-body [type=button], 257 | .markdown-body [type=reset], 258 | .markdown-body [type=submit] { 259 | -webkit-appearance: button; 260 | appearance: button; 261 | } 262 | 263 | .markdown-body [type=checkbox], 264 | .markdown-body [type=radio] { 265 | box-sizing: border-box; 266 | padding: 0; 267 | } 268 | 269 | .markdown-body [type=number]::-webkit-inner-spin-button, 270 | .markdown-body [type=number]::-webkit-outer-spin-button { 271 | height: auto; 272 | } 273 | 274 | .markdown-body [type=search]::-webkit-search-cancel-button, 275 | .markdown-body [type=search]::-webkit-search-decoration { 276 | -webkit-appearance: none; 277 | appearance: none; 278 | } 279 | 280 | .markdown-body ::-webkit-input-placeholder { 281 | color: inherit; 282 | opacity: .54; 283 | } 284 | 285 | .markdown-body ::-webkit-file-upload-button { 286 | -webkit-appearance: button; 287 | appearance: button; 288 | font: inherit; 289 | } 290 | 291 | .markdown-body a:hover { 292 | text-decoration: underline; 293 | } 294 | 295 | .markdown-body ::placeholder { 296 | color: var(--color-fg-subtle); 297 | opacity: 1; 298 | } 299 | 300 | .markdown-body hr::before { 301 | display: table; 302 | content: ""; 303 | } 304 | 305 | .markdown-body hr::after { 306 | display: table; 307 | clear: both; 308 | content: ""; 309 | } 310 | 311 | .markdown-body table { 312 | border-spacing: 0; 313 | border-collapse: collapse; 314 | display: block; 315 | width: max-content; 316 | max-width: 100%; 317 | overflow: auto; 318 | } 319 | 320 | .markdown-body td, 321 | .markdown-body th { 322 | padding: 0; 323 | } 324 | 325 | .markdown-body details summary { 326 | cursor: pointer; 327 | } 328 | 329 | .markdown-body details:not([open])>*:not(summary) { 330 | display: none !important; 331 | } 332 | 333 | .markdown-body a:focus, 334 | .markdown-body [role=button]:focus, 335 | .markdown-body input[type=radio]:focus, 336 | .markdown-body input[type=checkbox]:focus { 337 | outline: 2px solid var(--color-accent-fg); 338 | outline-offset: -2px; 339 | box-shadow: none; 340 | } 341 | 342 | .markdown-body a:focus:not(:focus-visible), 343 | .markdown-body [role=button]:focus:not(:focus-visible), 344 | .markdown-body input[type=radio]:focus:not(:focus-visible), 345 | .markdown-body input[type=checkbox]:focus:not(:focus-visible) { 346 | outline: solid 1px transparent; 347 | } 348 | 349 | .markdown-body a:focus-visible, 350 | .markdown-body [role=button]:focus-visible, 351 | .markdown-body input[type=radio]:focus-visible, 352 | .markdown-body input[type=checkbox]:focus-visible { 353 | outline: 2px solid var(--color-accent-fg); 354 | outline-offset: -2px; 355 | box-shadow: none; 356 | } 357 | 358 | .markdown-body a:not([class]):focus, 359 | .markdown-body a:not([class]):focus-visible, 360 | .markdown-body input[type=radio]:focus, 361 | .markdown-body input[type=radio]:focus-visible, 362 | .markdown-body input[type=checkbox]:focus, 363 | .markdown-body input[type=checkbox]:focus-visible { 364 | outline-offset: 0; 365 | } 366 | 367 | .markdown-body kbd { 368 | display: inline-block; 369 | padding: 3px 5px; 370 | font: 11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; 371 | line-height: 10px; 372 | color: var(--color-fg-default); 373 | vertical-align: middle; 374 | background-color: var(--color-canvas-subtle); 375 | border: solid 1px var(--color-neutral-muted); 376 | border-bottom-color: var(--color-neutral-muted); 377 | border-radius: 6px; 378 | box-shadow: inset 0 -1px 0 var(--color-neutral-muted); 379 | } 380 | 381 | .markdown-body h1, 382 | .markdown-body h2, 383 | .markdown-body h3, 384 | .markdown-body h4, 385 | .markdown-body h5, 386 | .markdown-body h6 { 387 | margin-top: 24px; 388 | margin-bottom: 16px; 389 | font-weight: var(--base-text-weight-semibold, 600); 390 | line-height: 1.25; 391 | } 392 | 393 | .markdown-body h2 { 394 | font-weight: var(--base-text-weight-semibold, 600); 395 | padding-bottom: .3em; 396 | font-size: 1.5em; 397 | border-bottom: 1px solid var(--color-border-muted); 398 | } 399 | 400 | .markdown-body h3 { 401 | font-weight: var(--base-text-weight-semibold, 600); 402 | font-size: 1.25em; 403 | } 404 | 405 | .markdown-body h4 { 406 | font-weight: var(--base-text-weight-semibold, 600); 407 | font-size: 1em; 408 | } 409 | 410 | .markdown-body h5 { 411 | font-weight: var(--base-text-weight-semibold, 600); 412 | font-size: .875em; 413 | } 414 | 415 | .markdown-body h6 { 416 | font-weight: var(--base-text-weight-semibold, 600); 417 | font-size: .85em; 418 | color: var(--color-fg-muted); 419 | } 420 | 421 | .markdown-body p { 422 | margin-top: 0; 423 | margin-bottom: 10px; 424 | } 425 | 426 | .markdown-body blockquote { 427 | margin: 0; 428 | padding: 0 1em; 429 | color: var(--color-fg-muted); 430 | border-left: .25em solid var(--color-border-default); 431 | } 432 | 433 | .markdown-body ul, 434 | .markdown-body ol { 435 | margin-top: 0; 436 | margin-bottom: 0; 437 | padding-left: 2em; 438 | } 439 | 440 | .markdown-body ol ol, 441 | .markdown-body ul ol { 442 | list-style-type: lower-roman; 443 | } 444 | 445 | .markdown-body ul ul ol, 446 | .markdown-body ul ol ol, 447 | .markdown-body ol ul ol, 448 | .markdown-body ol ol ol { 449 | list-style-type: lower-alpha; 450 | } 451 | 452 | .markdown-body dd { 453 | margin-left: 0; 454 | } 455 | 456 | .markdown-body tt, 457 | .markdown-body code, 458 | .markdown-body samp { 459 | font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; 460 | font-size: 12px; 461 | } 462 | 463 | .markdown-body pre { 464 | margin-top: 0; 465 | margin-bottom: 0; 466 | font-family: ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace; 467 | font-size: 12px; 468 | word-wrap: normal; 469 | } 470 | 471 | .markdown-body .octicon { 472 | display: inline-block; 473 | overflow: visible !important; 474 | vertical-align: text-bottom; 475 | fill: currentColor; 476 | } 477 | 478 | .markdown-body input::-webkit-outer-spin-button, 479 | .markdown-body input::-webkit-inner-spin-button { 480 | margin: 0; 481 | -webkit-appearance: none; 482 | appearance: none; 483 | } 484 | 485 | .markdown-body .mr-2 { 486 | margin-right: var(--base-size-8, 8px) !important; 487 | } 488 | 489 | .markdown-body::before { 490 | display: table; 491 | content: ""; 492 | } 493 | 494 | .markdown-body::after { 495 | display: table; 496 | clear: both; 497 | content: ""; 498 | } 499 | 500 | .markdown-body>*:first-child { 501 | margin-top: 0 !important; 502 | } 503 | 504 | .markdown-body>*:last-child { 505 | margin-bottom: 0 !important; 506 | } 507 | 508 | .markdown-body a:not([href]) { 509 | color: inherit; 510 | text-decoration: none; 511 | } 512 | 513 | .markdown-body .absent { 514 | color: var(--color-danger-fg); 515 | } 516 | 517 | .markdown-body .anchor { 518 | float: left; 519 | padding-right: 4px; 520 | margin-left: -20px; 521 | line-height: 1; 522 | } 523 | 524 | .markdown-body .anchor:focus { 525 | outline: none; 526 | } 527 | 528 | .markdown-body p, 529 | .markdown-body blockquote, 530 | .markdown-body ul, 531 | .markdown-body ol, 532 | .markdown-body dl, 533 | .markdown-body table, 534 | .markdown-body pre, 535 | .markdown-body details { 536 | margin-top: 0; 537 | margin-bottom: 16px; 538 | } 539 | 540 | .markdown-body blockquote>:first-child { 541 | margin-top: 0; 542 | } 543 | 544 | .markdown-body blockquote>:last-child { 545 | margin-bottom: 0; 546 | } 547 | 548 | .markdown-body h1 .octicon-link, 549 | .markdown-body h2 .octicon-link, 550 | .markdown-body h3 .octicon-link, 551 | .markdown-body h4 .octicon-link, 552 | .markdown-body h5 .octicon-link, 553 | .markdown-body h6 .octicon-link { 554 | color: var(--color-fg-default); 555 | vertical-align: middle; 556 | visibility: hidden; 557 | } 558 | 559 | .markdown-body h1:hover .anchor, 560 | .markdown-body h2:hover .anchor, 561 | .markdown-body h3:hover .anchor, 562 | .markdown-body h4:hover .anchor, 563 | .markdown-body h5:hover .anchor, 564 | .markdown-body h6:hover .anchor { 565 | text-decoration: none; 566 | } 567 | 568 | .markdown-body h1:hover .anchor .octicon-link, 569 | .markdown-body h2:hover .anchor .octicon-link, 570 | .markdown-body h3:hover .anchor .octicon-link, 571 | .markdown-body h4:hover .anchor .octicon-link, 572 | .markdown-body h5:hover .anchor .octicon-link, 573 | .markdown-body h6:hover .anchor .octicon-link { 574 | visibility: visible; 575 | } 576 | 577 | .markdown-body h1 tt, 578 | .markdown-body h1 code, 579 | .markdown-body h2 tt, 580 | .markdown-body h2 code, 581 | .markdown-body h3 tt, 582 | .markdown-body h3 code, 583 | .markdown-body h4 tt, 584 | .markdown-body h4 code, 585 | .markdown-body h5 tt, 586 | .markdown-body h5 code, 587 | .markdown-body h6 tt, 588 | .markdown-body h6 code { 589 | padding: 0 .2em; 590 | font-size: inherit; 591 | } 592 | 593 | .markdown-body summary h1, 594 | .markdown-body summary h2, 595 | .markdown-body summary h3, 596 | .markdown-body summary h4, 597 | .markdown-body summary h5, 598 | .markdown-body summary h6 { 599 | display: inline-block; 600 | } 601 | 602 | .markdown-body summary h1 .anchor, 603 | .markdown-body summary h2 .anchor, 604 | .markdown-body summary h3 .anchor, 605 | .markdown-body summary h4 .anchor, 606 | .markdown-body summary h5 .anchor, 607 | .markdown-body summary h6 .anchor { 608 | margin-left: -40px; 609 | } 610 | 611 | .markdown-body summary h1, 612 | .markdown-body summary h2 { 613 | padding-bottom: 0; 614 | border-bottom: 0; 615 | } 616 | 617 | .markdown-body ul.no-list, 618 | .markdown-body ol.no-list { 619 | padding: 0; 620 | list-style-type: none; 621 | } 622 | 623 | .markdown-body ol[type="a s"] { 624 | list-style-type: lower-alpha; 625 | } 626 | 627 | .markdown-body ol[type="A s"] { 628 | list-style-type: upper-alpha; 629 | } 630 | 631 | .markdown-body ol[type="i s"] { 632 | list-style-type: lower-roman; 633 | } 634 | 635 | .markdown-body ol[type="I s"] { 636 | list-style-type: upper-roman; 637 | } 638 | 639 | .markdown-body ol[type="1"] { 640 | list-style-type: decimal; 641 | } 642 | 643 | .markdown-body div>ol:not([type]) { 644 | list-style-type: decimal; 645 | } 646 | 647 | .markdown-body ul ul, 648 | .markdown-body ul ol, 649 | .markdown-body ol ol, 650 | .markdown-body ol ul { 651 | margin-top: 0; 652 | margin-bottom: 0; 653 | } 654 | 655 | .markdown-body li>p { 656 | margin-top: 16px; 657 | } 658 | 659 | .markdown-body li+li { 660 | margin-top: .25em; 661 | } 662 | 663 | .markdown-body dl { 664 | padding: 0; 665 | } 666 | 667 | .markdown-body dl dt { 668 | padding: 0; 669 | margin-top: 16px; 670 | font-size: 1em; 671 | font-style: italic; 672 | font-weight: var(--base-text-weight-semibold, 600); 673 | } 674 | 675 | .markdown-body dl dd { 676 | padding: 0 16px; 677 | margin-bottom: 16px; 678 | } 679 | 680 | .markdown-body table th { 681 | font-weight: var(--base-text-weight-semibold, 600); 682 | } 683 | 684 | .markdown-body table th, 685 | .markdown-body table td { 686 | padding: 6px 13px; 687 | border: 1px solid var(--color-border-default); 688 | } 689 | 690 | .markdown-body table td>:last-child { 691 | margin-bottom: 0; 692 | } 693 | 694 | .markdown-body table tr { 695 | background-color: var(--color-canvas-default); 696 | border-top: 1px solid var(--color-border-muted); 697 | } 698 | 699 | .markdown-body table tr:nth-child(2n) { 700 | background-color: var(--color-canvas-subtle); 701 | } 702 | 703 | .markdown-body table img { 704 | background-color: transparent; 705 | } 706 | 707 | .markdown-body img[align=right] { 708 | padding-left: 20px; 709 | } 710 | 711 | .markdown-body img[align=left] { 712 | padding-right: 20px; 713 | } 714 | 715 | .markdown-body .emoji { 716 | max-width: none; 717 | vertical-align: text-top; 718 | background-color: transparent; 719 | } 720 | 721 | .markdown-body span.frame { 722 | display: block; 723 | overflow: hidden; 724 | } 725 | 726 | .markdown-body span.frame>span { 727 | display: block; 728 | float: left; 729 | width: auto; 730 | padding: 7px; 731 | margin: 13px 0 0; 732 | overflow: hidden; 733 | border: 1px solid var(--color-border-default); 734 | } 735 | 736 | .markdown-body span.frame span img { 737 | display: block; 738 | float: left; 739 | } 740 | 741 | .markdown-body span.frame span span { 742 | display: block; 743 | padding: 5px 0 0; 744 | clear: both; 745 | color: var(--color-fg-default); 746 | } 747 | 748 | .markdown-body span.align-center { 749 | display: block; 750 | overflow: hidden; 751 | clear: both; 752 | } 753 | 754 | .markdown-body span.align-center>span { 755 | display: block; 756 | margin: 13px auto 0; 757 | overflow: hidden; 758 | text-align: center; 759 | } 760 | 761 | .markdown-body span.align-center span img { 762 | margin: 0 auto; 763 | text-align: center; 764 | } 765 | 766 | .markdown-body span.align-right { 767 | display: block; 768 | overflow: hidden; 769 | clear: both; 770 | } 771 | 772 | .markdown-body span.align-right>span { 773 | display: block; 774 | margin: 13px 0 0; 775 | overflow: hidden; 776 | text-align: right; 777 | } 778 | 779 | .markdown-body span.align-right span img { 780 | margin: 0; 781 | text-align: right; 782 | } 783 | 784 | .markdown-body span.float-left { 785 | display: block; 786 | float: left; 787 | margin-right: 13px; 788 | overflow: hidden; 789 | } 790 | 791 | .markdown-body span.float-left span { 792 | margin: 13px 0 0; 793 | } 794 | 795 | .markdown-body span.float-right { 796 | display: block; 797 | float: right; 798 | margin-left: 13px; 799 | overflow: hidden; 800 | } 801 | 802 | .markdown-body span.float-right>span { 803 | display: block; 804 | margin: 13px auto 0; 805 | overflow: hidden; 806 | text-align: right; 807 | } 808 | 809 | .markdown-body code, 810 | .markdown-body tt { 811 | padding: .2em .4em; 812 | margin: 0; 813 | font-size: 85%; 814 | white-space: break-spaces; 815 | background-color: var(--color-neutral-muted); 816 | border-radius: 6px; 817 | } 818 | 819 | .markdown-body code br, 820 | .markdown-body tt br { 821 | display: none; 822 | } 823 | 824 | .markdown-body del code { 825 | text-decoration: inherit; 826 | } 827 | 828 | .markdown-body samp { 829 | font-size: 85%; 830 | } 831 | 832 | .markdown-body pre code { 833 | font-size: 100%; 834 | } 835 | 836 | .markdown-body pre>code { 837 | padding: 0; 838 | margin: 0; 839 | word-break: normal; 840 | white-space: pre; 841 | background: transparent; 842 | border: 0; 843 | } 844 | 845 | .markdown-body .highlight { 846 | margin-bottom: 16px; 847 | } 848 | 849 | .markdown-body .highlight pre { 850 | margin-bottom: 0; 851 | word-break: normal; 852 | } 853 | 854 | .markdown-body .highlight pre, 855 | .markdown-body pre { 856 | padding: 16px; 857 | overflow: auto; 858 | font-size: 85%; 859 | line-height: 1.45; 860 | color: var(--color-fg-default); 861 | background-color: var(--color-canvas-subtle); 862 | border-radius: 6px; 863 | } 864 | 865 | .markdown-body pre code, 866 | .markdown-body pre tt { 867 | display: inline; 868 | max-width: auto; 869 | padding: 0; 870 | margin: 0; 871 | overflow: visible; 872 | line-height: inherit; 873 | word-wrap: normal; 874 | background-color: transparent; 875 | border: 0; 876 | } 877 | 878 | .markdown-body .csv-data td, 879 | .markdown-body .csv-data th { 880 | padding: 5px; 881 | overflow: hidden; 882 | font-size: 12px; 883 | line-height: 1; 884 | text-align: left; 885 | white-space: nowrap; 886 | } 887 | 888 | .markdown-body .csv-data .blob-num { 889 | padding: 10px 8px 9px; 890 | text-align: right; 891 | background: var(--color-canvas-default); 892 | border: 0; 893 | } 894 | 895 | .markdown-body .csv-data tr { 896 | border-top: 0; 897 | } 898 | 899 | .markdown-body .csv-data th { 900 | font-weight: var(--base-text-weight-semibold, 600); 901 | background: var(--color-canvas-subtle); 902 | border-top: 0; 903 | } 904 | 905 | .markdown-body [data-footnote-ref]::before { 906 | content: "["; 907 | } 908 | 909 | .markdown-body [data-footnote-ref]::after { 910 | content: "]"; 911 | } 912 | 913 | .markdown-body .footnotes { 914 | font-size: 12px; 915 | color: var(--color-fg-muted); 916 | border-top: 1px solid var(--color-border-default); 917 | } 918 | 919 | .markdown-body .footnotes ol { 920 | padding-left: 16px; 921 | } 922 | 923 | .markdown-body .footnotes ol ul { 924 | display: inline-block; 925 | padding-left: 16px; 926 | margin-top: 16px; 927 | } 928 | 929 | .markdown-body .footnotes li { 930 | position: relative; 931 | } 932 | 933 | .markdown-body .footnotes li:target::before { 934 | position: absolute; 935 | top: -8px; 936 | right: -8px; 937 | bottom: -8px; 938 | left: -24px; 939 | pointer-events: none; 940 | content: ""; 941 | border: 2px solid var(--color-accent-emphasis); 942 | border-radius: 6px; 943 | } 944 | 945 | .markdown-body .footnotes li:target { 946 | color: var(--color-fg-default); 947 | } 948 | 949 | .markdown-body .footnotes .data-footnote-backref g-emoji { 950 | font-family: monospace; 951 | } 952 | 953 | .markdown-body .pl-c { 954 | color: var(--color-prettylights-syntax-comment); 955 | } 956 | 957 | .markdown-body .pl-c1, 958 | .markdown-body .pl-s .pl-v { 959 | color: var(--color-prettylights-syntax-constant); 960 | } 961 | 962 | .markdown-body .pl-e, 963 | .markdown-body .pl-en { 964 | color: var(--color-prettylights-syntax-entity); 965 | } 966 | 967 | .markdown-body .pl-smi, 968 | .markdown-body .pl-s .pl-s1 { 969 | color: var(--color-prettylights-syntax-storage-modifier-import); 970 | } 971 | 972 | .markdown-body .pl-ent { 973 | color: var(--color-prettylights-syntax-entity-tag); 974 | } 975 | 976 | .markdown-body .pl-k { 977 | color: var(--color-prettylights-syntax-keyword); 978 | } 979 | 980 | .markdown-body .pl-s, 981 | .markdown-body .pl-pds, 982 | .markdown-body .pl-s .pl-pse .pl-s1, 983 | .markdown-body .pl-sr, 984 | .markdown-body .pl-sr .pl-cce, 985 | .markdown-body .pl-sr .pl-sre, 986 | .markdown-body .pl-sr .pl-sra { 987 | color: var(--color-prettylights-syntax-string); 988 | } 989 | 990 | .markdown-body .pl-v, 991 | .markdown-body .pl-smw { 992 | color: var(--color-prettylights-syntax-variable); 993 | } 994 | 995 | .markdown-body .pl-bu { 996 | color: var(--color-prettylights-syntax-brackethighlighter-unmatched); 997 | } 998 | 999 | .markdown-body .pl-ii { 1000 | color: var(--color-prettylights-syntax-invalid-illegal-text); 1001 | background-color: var(--color-prettylights-syntax-invalid-illegal-bg); 1002 | } 1003 | 1004 | .markdown-body .pl-c2 { 1005 | color: var(--color-prettylights-syntax-carriage-return-text); 1006 | background-color: var(--color-prettylights-syntax-carriage-return-bg); 1007 | } 1008 | 1009 | .markdown-body .pl-sr .pl-cce { 1010 | font-weight: bold; 1011 | color: var(--color-prettylights-syntax-string-regexp); 1012 | } 1013 | 1014 | .markdown-body .pl-ml { 1015 | color: var(--color-prettylights-syntax-markup-list); 1016 | } 1017 | 1018 | .markdown-body .pl-mh, 1019 | .markdown-body .pl-mh .pl-en, 1020 | .markdown-body .pl-ms { 1021 | font-weight: bold; 1022 | color: var(--color-prettylights-syntax-markup-heading); 1023 | } 1024 | 1025 | .markdown-body .pl-mi { 1026 | font-style: italic; 1027 | color: var(--color-prettylights-syntax-markup-italic); 1028 | } 1029 | 1030 | .markdown-body .pl-mb { 1031 | font-weight: bold; 1032 | color: var(--color-prettylights-syntax-markup-bold); 1033 | } 1034 | 1035 | .markdown-body .pl-md { 1036 | color: var(--color-prettylights-syntax-markup-deleted-text); 1037 | background-color: var(--color-prettylights-syntax-markup-deleted-bg); 1038 | } 1039 | 1040 | .markdown-body .pl-mi1 { 1041 | color: var(--color-prettylights-syntax-markup-inserted-text); 1042 | background-color: var(--color-prettylights-syntax-markup-inserted-bg); 1043 | } 1044 | 1045 | .markdown-body .pl-mc { 1046 | color: var(--color-prettylights-syntax-markup-changed-text); 1047 | background-color: var(--color-prettylights-syntax-markup-changed-bg); 1048 | } 1049 | 1050 | .markdown-body .pl-mi2 { 1051 | color: var(--color-prettylights-syntax-markup-ignored-text); 1052 | background-color: var(--color-prettylights-syntax-markup-ignored-bg); 1053 | } 1054 | 1055 | .markdown-body .pl-mdr { 1056 | font-weight: bold; 1057 | color: var(--color-prettylights-syntax-meta-diff-range); 1058 | } 1059 | 1060 | .markdown-body .pl-ba { 1061 | color: var(--color-prettylights-syntax-brackethighlighter-angle); 1062 | } 1063 | 1064 | .markdown-body .pl-sg { 1065 | color: var(--color-prettylights-syntax-sublimelinter-gutter-mark); 1066 | } 1067 | 1068 | .markdown-body .pl-corl { 1069 | text-decoration: underline; 1070 | color: var(--color-prettylights-syntax-constant-other-reference-link); 1071 | } 1072 | 1073 | .markdown-body g-emoji { 1074 | display: inline-block; 1075 | min-width: 1ch; 1076 | font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; 1077 | font-size: 1em; 1078 | font-style: normal !important; 1079 | font-weight: var(--base-text-weight-normal, 400); 1080 | line-height: 1; 1081 | vertical-align: -0.075em; 1082 | } 1083 | 1084 | .markdown-body g-emoji img { 1085 | width: 1em; 1086 | height: 1em; 1087 | } 1088 | 1089 | .markdown-body .task-list-item { 1090 | list-style-type: none; 1091 | } 1092 | 1093 | .markdown-body .task-list-item label { 1094 | font-weight: var(--base-text-weight-normal, 400); 1095 | } 1096 | 1097 | .markdown-body .task-list-item.enabled label { 1098 | cursor: pointer; 1099 | } 1100 | 1101 | .markdown-body .task-list-item+.task-list-item { 1102 | margin-top: 4px; 1103 | } 1104 | 1105 | .markdown-body .task-list-item .handle { 1106 | display: none; 1107 | } 1108 | 1109 | .markdown-body .task-list-item-checkbox { 1110 | margin: 0 .2em .25em -1.4em; 1111 | vertical-align: middle; 1112 | } 1113 | 1114 | .markdown-body .contains-task-list:dir(rtl) .task-list-item-checkbox { 1115 | margin: 0 -1.6em .25em .2em; 1116 | } 1117 | 1118 | .markdown-body .contains-task-list { 1119 | position: relative; 1120 | } 1121 | 1122 | .markdown-body .contains-task-list:hover .task-list-item-convert-container, 1123 | .markdown-body .contains-task-list:focus-within .task-list-item-convert-container { 1124 | display: block; 1125 | width: auto; 1126 | height: 24px; 1127 | overflow: visible; 1128 | clip: auto; 1129 | } 1130 | 1131 | .markdown-body ::-webkit-calendar-picker-indicator { 1132 | filter: invert(50%); 1133 | } 1134 | 1135 | .markdown-body .markdown-alert { 1136 | padding: var(--base-size-8) var(--base-size-16); 1137 | margin-bottom: 16px; 1138 | color: inherit; 1139 | border-left: .25em solid var(--color-border-default); 1140 | } 1141 | 1142 | .markdown-body .markdown-alert>:first-child { 1143 | margin-top: 0; 1144 | } 1145 | 1146 | .markdown-body .markdown-alert>:last-child { 1147 | margin-bottom: 0; 1148 | } 1149 | 1150 | .markdown-body .markdown-alert .markdown-alert-title { 1151 | display: flex; 1152 | font-weight: var(--base-text-weight-medium, 500); 1153 | align-items: center; 1154 | line-height: 1; 1155 | } 1156 | 1157 | .markdown-body .markdown-alert.markdown-alert-note { 1158 | border-left-color: var(--color-accent-emphasis); 1159 | } 1160 | 1161 | .markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title { 1162 | color: var(--color-accent-fg); 1163 | } 1164 | 1165 | .markdown-body .markdown-alert.markdown-alert-important { 1166 | border-left-color: var(--color-done-emphasis); 1167 | } 1168 | 1169 | .markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title { 1170 | color: var(--color-done-fg); 1171 | } 1172 | 1173 | .markdown-body .markdown-alert.markdown-alert-warning { 1174 | border-left-color: var(--color-attention-emphasis); 1175 | } 1176 | 1177 | .markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title { 1178 | color: var(--color-attention-fg); 1179 | } 1180 | 1181 | .markdown-body .markdown-alert.markdown-alert-tip { 1182 | border-left-color: var(--color-success-emphasis); 1183 | } 1184 | 1185 | .markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title { 1186 | color: var(--color-success-fg); 1187 | } 1188 | 1189 | .markdown-body .markdown-alert.markdown-alert-caution { 1190 | border-left-color: var(--color-danger-emphasis); 1191 | } 1192 | 1193 | .markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title { 1194 | color: var(--color-danger-fg); 1195 | } 1196 | -------------------------------------------------------------------------------- /static/js/jquery.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0{"string"==typeof e&&e!==t.text&&(t.escaped=!0,t.text=e)}}const i=/[&<>"']/,o=new RegExp(i.source,"g"),g=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,h=new RegExp(g.source,"g"),t={"&":"&","<":"<",">":">",'"':""","'":"'"},f=e=>t[e];function s(e,t){if(t){if(i.test(e))return e.replace(o,f)}else if(g.test(e))return e.replace(h,f);return e}e.markedHighlight=function(i){if((i="function"==typeof i?{highlight:i}:i)&&"function"==typeof i.highlight)return"string"!=typeof i.langPrefix&&(i.langPrefix="language-"),{async:!!i.async,walkTokens(e){if("code"===e.type){var t=r(e.lang);if(i.async)return Promise.resolve(i.highlight(e.text,t,e.lang||"")).then(n(e));t=i.highlight(e.text,t,e.lang||"");if(t instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");n(e)(t)}},renderer:{code(e,t,n){t=r(t),t=t?` class="${i.langPrefix}${s(t)}"`:"";return e=e.replace(/\n$/,""),`
${n?e:s(e,!0)}
2 | 
`}}};throw new Error("Must provide highlight function")}}); -------------------------------------------------------------------------------- /static/js/marked.min.js: -------------------------------------------------------------------------------- 1 | /** 2 | * marked v12.0.1 - a markdown parser 3 | * Copyright (c) 2011-2024, Christopher Jeffrey. (MIT Licensed) 4 | * https://github.com/markedjs/marked 5 | */ 6 | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).marked={})}(this,(function(e){"use strict";function t(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function n(t){e.defaults=t}e.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};const s=/[&<>"']/,r=new RegExp(s.source,"g"),i=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,l=new RegExp(i.source,"g"),o={"&":"&","<":"<",">":">",'"':""","'":"'"},a=e=>o[e];function c(e,t){if(t){if(s.test(e))return e.replace(r,a)}else if(i.test(e))return e.replace(l,a);return e}const h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(e){return e.replace(h,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const u=/(^|[^\[])\^/g;function k(e,t){let n="string"==typeof e?e:e.source;t=t||"";const s={replace:(e,t)=>{let r="string"==typeof t?t:t.source;return r=r.replace(u,"$1"),n=n.replace(e,r),s},getRegex:()=>new RegExp(n,t)};return s}function g(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return null}return e}const f={exec:()=>null};function d(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let s=!1,r=t;for(;--r>=0&&"\\"===n[r];)s=!s;return s?"|":" |"})).split(/ \|/);let s=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:x(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const s=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=s.length?e.slice(s.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=x(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=x(t[0].replace(/^ *>[ \t]?/gm,""),"\n"),n=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:s,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim();const s=n.length>1,r={type:"list",raw:"",ordered:s,start:s?+n.slice(0,-1):"",loose:!1,items:[]};n=s?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=s?n:"[*+-]");const i=new RegExp(`^( {0,3}${n})((?:[\t ][^\\n]*)?(?:\\n|$))`);let l="",o="",a=!1;for(;e;){let n=!1;if(!(t=i.exec(e)))break;if(this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let s=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),c=e.split("\n",1)[0],h=0;this.options.pedantic?(h=2,o=s.trimStart()):(h=t[2].search(/[^ ]/),h=h>4?1:h,o=s.slice(h),h+=t[1].length);let p=!1;if(!s&&/^ *$/.test(c)&&(l+=c+"\n",e=e.substring(c.length+1),n=!0),!n){const t=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),n=new RegExp(`^ {0,${Math.min(3,h-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),r=new RegExp(`^ {0,${Math.min(3,h-1)}}(?:\`\`\`|~~~)`),i=new RegExp(`^ {0,${Math.min(3,h-1)}}#`);for(;e;){const a=e.split("\n",1)[0];if(c=a,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),r.test(c))break;if(i.test(c))break;if(t.test(c))break;if(n.test(e))break;if(c.search(/[^ ]/)>=h||!c.trim())o+="\n"+c.slice(h);else{if(p)break;if(s.search(/[^ ]/)>=4)break;if(r.test(s))break;if(i.test(s))break;if(n.test(s))break;o+="\n"+c}p||c.trim()||(p=!0),l+=a+"\n",e=e.substring(a.length+1),s=c.slice(h)}}r.loose||(a?r.loose=!0:/\n *\n *$/.test(l)&&(a=!0));let u,k=null;this.options.gfm&&(k=/^\[[ xX]\] /.exec(o),k&&(u="[ ] "!==k[0],o=o.replace(/^\[[ xX]\] +/,""))),r.items.push({type:"list_item",raw:l,task:!!k,checked:u,loose:!1,text:o,tokens:[]}),r.raw+=l}r.items[r.items.length-1].raw=l.trimEnd(),r.items[r.items.length-1].text=o.trimEnd(),r.raw=r.raw.trimEnd();for(let e=0;e"space"===e.type)),n=t.length>0&&t.some((e=>/\n.*\n/.test(e.raw)));r.loose=n}if(r.loose)for(let e=0;e$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t)return;if(!/[:|]/.test(t[2]))return;const n=d(t[1]),s=t[2].replace(/^\||\| *$/g,"").split("|"),r=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===s.length){for(const e of s)/^ *-+: *$/.test(e)?i.align.push("right"):/^ *:-+: *$/.test(e)?i.align.push("center"):/^ *:-+ *$/.test(e)?i.align.push("left"):i.align.push(null);for(const e of n)i.header.push({text:e,tokens:this.lexer.inline(e)});for(const e of r)i.rows.push(d(e,i.header.length).map((e=>({text:e,tokens:this.lexer.inline(e)}))));return i}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:c(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=x(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let n=0;for(let s=0;s-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],s=e[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),b(t,{href:n?n.replace(this.rules.inline.anyPunctuation,"$1"):n,title:s?s.replace(this.rules.inline.anyPunctuation,"$1"):s},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const e=t[(n[2]||n[1]).replace(/\s+/g," ").toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return b(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrongLDelim.exec(e);if(!s)return;if(s[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(s[1]||s[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const n=[...s[0]].length-1;let r,i,l=n,o=0;const a="*"===s[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(s=a.exec(t));){if(r=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!r)continue;if(i=[...r].length,s[3]||s[4]){l+=i;continue}if((s[5]||s[6])&&n%3&&!((n+i)%3)){o+=i;continue}if(l-=i,l>0)continue;i=Math.min(i,i+l+o);const t=[...s[0]][0].length,a=e.slice(0,n+s.index+t+i);if(Math.min(n,i)%2){const e=a.slice(1,-1);return{type:"em",raw:a,text:e,tokens:this.lexer.inlineTokens(e)}}const c=a.slice(2,-2);return{type:"strong",raw:a,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),s=/^ /.test(e)&&/ $/.test(e);return n&&s&&(e=e.substring(1,e.length-1)),e=c(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let e,n;return"@"===t[2]?(e=c(t[1]),n="mailto:"+e):(e=c(t[1]),n=e),{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])e=c(t[0]),n="mailto:"+e;else{let s;do{s=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(s!==t[0]);e=c(t[0]),n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let e;return e=this.lexer.state.inRawBlock?t[0]:c(t[0]),{type:"text",raw:t[0],text:e}}}}const m=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,y=/(?:[*+-]|\d{1,9}[.)])/,$=k(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,y).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),z=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,T=/(?!\s*\])(?:\\.|[^\[\]\\])+/,R=k(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",T).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),_=k(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,y).getRegex(),A="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",S=/|$))/,I=k("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",S).replace("tag",A).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),E=k(z).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex(),q={blockquote:k(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",E).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:R,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:m,html:I,lheading:$,list:_,newline:/^(?: *(?:\n|$))+/,paragraph:E,table:f,text:/^[^\n]+/},Z=k("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex(),L={...q,table:Z,paragraph:k(z).replace("hr",m).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Z).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",A).getRegex()},P={...q,html:k("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",S).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:f,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:k(z).replace("hr",m).replace("heading"," *#{1,6} *[^\n]").replace("lheading",$).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Q=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,v=/^( {2,}|\\)\n(?!\s*$)/,B="\\p{P}\\p{S}",C=k(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,B).getRegex(),M=k(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,B).getRegex(),O=k("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,B).getRegex(),D=k("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,B).getRegex(),j=k(/\\([punct])/,"gu").replace(/punct/g,B).getRegex(),H=k(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),U=k(S).replace("(?:--\x3e|$)","--\x3e").getRegex(),X=k("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",U).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),F=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,N=k(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",F).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),G=k(/^!?\[(label)\]\[(ref)\]/).replace("label",F).replace("ref",T).getRegex(),J=k(/^!?\[(ref)\](?:\[\])?/).replace("ref",T).getRegex(),K={_backpedal:f,anyPunctuation:j,autolink:H,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:v,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:f,emStrongLDelim:M,emStrongRDelimAst:O,emStrongRDelimUnd:D,escape:Q,link:N,nolink:J,punctuation:C,reflink:G,reflinkSearch:k("reflink|nolink(?!\\()","g").replace("reflink",G).replace("nolink",J).getRegex(),tag:X,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((s=>!!(n=s.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),s=t[t.length-1],!s||"paragraph"!==s.type&&"text"!==s.type?t.push(n):(s.raw+="\n"+n.raw,s.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=s.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),s=t[t.length-1],!s||"paragraph"!==s.type&&"text"!==s.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(s.raw+="\n"+n.raw,s.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=s.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach((e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(r)))s=t[t.length-1],i&&"paragraph"===s.type?(s.raw+="\n"+n.raw,s.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(n),i=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),s=t[t.length-1],s&&"text"===s.type?(s.raw+="\n"+n.raw,s.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=s.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,s,r,i,l,o,a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(a));)a=a.slice(0,i.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(l||(o=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((s=>!!(n=s.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),s=t[t.length-1],s&&"text"===n.type&&"text"===s.type?(s.raw+=n.raw,s.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),s=t[t.length-1],s&&"text"===n.type&&"text"===s.type?(s.raw+=n.raw,s.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,a,o))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let s;this.options.extensions.startInline.forEach((e=>{s=e.call({lexer:this},n),"number"==typeof s&&s>=0&&(t=Math.min(t,s))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(r))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),l=!0,s=t[t.length-1],s&&"text"===s.type?(s.raw+=n.raw,s.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}}class se{options;constructor(t){this.options=t||e.defaults}code(e,t,n){const s=(t||"").match(/^\S*/)?.[0];return e=e.replace(/\n$/,"")+"\n",s?'
'+(n?e:c(e,!0))+"
\n":"
"+(n?e:c(e,!0))+"
\n"}blockquote(e){return`
\n${e}
\n`}html(e,t){return e}heading(e,t,n){return`${e}\n`}hr(){return"
\n"}list(e,t,n){const s=t?"ol":"ul";return"<"+s+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e,t,n){return`
  • ${e}
  • \n`}checkbox(e){return"'}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return"
    "}del(e){return`${e}`}link(e,t,n){const s=g(e);if(null===s)return n;let r='
    ",r}image(e,t,n){const s=g(e);if(null===s)return n;let r=`${n}0&&"paragraph"===n.tokens[0].type?(n.tokens[0].text=e+" "+n.tokens[0].text,n.tokens[0].tokens&&n.tokens[0].tokens.length>0&&"text"===n.tokens[0].tokens[0].type&&(n.tokens[0].tokens[0].text=e+" "+n.tokens[0].tokens[0].text)):n.tokens.unshift({type:"text",text:e+" "}):o+=e+" "}o+=this.parse(n.tokens,i),l+=this.renderer.listitem(o,r,!!s)}n+=this.renderer.list(l,t,s);continue}case"html":{const e=r;n+=this.renderer.html(e.text,e.block);continue}case"paragraph":{const e=r;n+=this.renderer.paragraph(this.parseInline(e.tokens));continue}case"text":{let i=r,l=i.tokens?this.parseInline(i.tokens):i.text;for(;s+1{const r=e[s].flat(1/0);n=n.concat(this.walkTokens(r,t))})):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach((e=>{const n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){const n=t.renderers[e.name];t.renderers[e.name]=n?function(...t){let s=e.renderer.apply(this,t);return!1===s&&(s=n.apply(this,t)),s}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");const n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)})),n.extensions=t),e.renderer){const t=this.defaults.renderer||new se(this.defaults);for(const n in e.renderer){if(!(n in t))throw new Error(`renderer '${n}' does not exist`);if("options"===n)continue;const s=n,r=e.renderer[s],i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){const t=this.defaults.tokenizer||new w(this.defaults);for(const n in e.tokenizer){if(!(n in t))throw new Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;const s=n,r=e.tokenizer[s],i=t[s];t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){const t=this.defaults.hooks||new le;for(const n in e.hooks){if(!(n in t))throw new Error(`hook '${n}' does not exist`);if("options"===n)continue;const s=n,r=e.hooks[s],i=t[s];le.passThroughHooks.has(n)?t[s]=e=>{if(this.defaults.async)return Promise.resolve(r.call(t,e)).then((e=>i.call(t,e)));const n=r.call(t,e);return i.call(t,n)}:t[s]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){const t=this.defaults.walkTokens,s=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(s.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}})),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ne.lex(e,t??this.defaults)}parser(e,t){return ie.parse(e,t??this.defaults)}#e(e,t){return(n,s)=>{const r={...s},i={...this.defaults,...r};!0===this.defaults.async&&!1===r.async&&(i.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),i.async=!0);const l=this.#t(!!i.silent,!!i.async);if(null==n)return l(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i),i.async)return Promise.resolve(i.hooks?i.hooks.preprocess(n):n).then((t=>e(t,i))).then((e=>i.hooks?i.hooks.processAllTokens(e):e)).then((e=>i.walkTokens?Promise.all(this.walkTokens(e,i.walkTokens)).then((()=>e)):e)).then((e=>t(e,i))).then((e=>i.hooks?i.hooks.postprocess(e):e)).catch(l);try{i.hooks&&(n=i.hooks.preprocess(n));let s=e(n,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let r=t(s,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return l(e)}}}#t(e,t){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="

    An error occurred:

    "+c(n.message+"",!0)+"
    ";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}}const ae=new oe;function ce(e,t){return ae.parse(e,t)}ce.options=ce.setOptions=function(e){return ae.setOptions(e),ce.defaults=ae.defaults,n(ce.defaults),ce},ce.getDefaults=t,ce.defaults=e.defaults,ce.use=function(...e){return ae.use(...e),ce.defaults=ae.defaults,n(ce.defaults),ce},ce.walkTokens=function(e,t){return ae.walkTokens(e,t)},ce.parseInline=ae.parseInline,ce.Parser=ie,ce.parser=ie.parse,ce.Renderer=se,ce.TextRenderer=re,ce.Lexer=ne,ce.lexer=ne.lex,ce.Tokenizer=w,ce.Hooks=le,ce.parse=ce;const he=ce.options,pe=ce.setOptions,ue=ce.use,ke=ce.walkTokens,ge=ce.parseInline,fe=ce,de=ie.parse,xe=ne.lex;e.Hooks=le,e.Lexer=ne,e.Marked=oe,e.Parser=ie,e.Renderer=se,e.TextRenderer=re,e.Tokenizer=w,e.getDefaults=t,e.lexer=xe,e.marked=ce,e.options=he,e.parse=fe,e.parseInline=ge,e.parser=de,e.setOptions=pe,e.use=ue,e.walkTokens=ke})); 7 | --------------------------------------------------------------------------------