diff --git a/12345.sh b/12345.sh index 862aa027..712c1d06 100755 --- a/12345.sh +++ b/12345.sh @@ -59,7 +59,7 @@ while true; do MOATS=$(date -u +"%Y%m%d%H%M%S%4N") ## CHANGE NEXT PORT (HERE YOU CREATE A SOCKET QUEUE) - [ ${PORT} -lt 12345 ] && PORT=$((PORT+${RANDOM:0:3})) || PORT=$((PORT-${RANDOM:0:3})) + [ ${PORT} -le 12345 ] && PORT=$((PORT+${RANDOM:0:3})) || PORT=$((PORT-${RANDOM:0:3})) ## RANDOM PORT SWAPPINESS ############### diff --git a/_12345.sh b/_12345.sh new file mode 100755 index 00000000..888a2e86 --- /dev/null +++ b/_12345.sh @@ -0,0 +1,20 @@ +#!/bin/bash +################################################################################ +# Author: Fred (support@qo-op.com) +# Version: 0.1 +# License: AGPL-3.0 (https://choosealicense.com/licenses/agpl-3.0/) +################################################################################ +# This script scan Swarm API layer from official bootstraps +# Then publish map of json DApp data + +IPFSNODEID=$(cat ~/.ipfs/config | jq -r .Identity.PeerID) + +for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#") # remove comments +do + ipfsnodeid=${bootnode##*/} + mkdir -p ~/.zen/tmp/$IPFSNODEID/$ipfsnodeid + echo "IPFS get /ipns/$ipfsnodeid" + ipfs get -o ~/.zen/tmp/$IPFSNODEID/$ipfsnodeid /ipns/$ipfsnodeid + echo "Updated : ~/.zen/tmp/$IPFSNODEID/$ipfsnodeid" + ls ~/.zen/tmp/$IPFSNODEID/$ipfsnodeid +done diff --git a/templates/data/$ _TiddlyTweaks_ReadOnly.json b/templates/tw/$ _TiddlyTweaks_ReadOnly.json similarity index 100% rename from templates/data/$ _TiddlyTweaks_ReadOnly.json rename to templates/tw/$ _TiddlyTweaks_ReadOnly.json diff --git a/templates/data/$ _language_Docs_Types_video_mp4.json b/templates/tw/$ _language_Docs_Types_video_mp4.json similarity index 100% rename from templates/data/$ _language_Docs_Types_video_mp4.json rename to templates/tw/$ _language_Docs_Types_video_mp4.json diff --git a/templates/tw/$ _plugins_BTC_Muuri-Kanban.json b/templates/tw/$ _plugins_BTC_Muuri-Kanban.json new file mode 100644 index 00000000..a419c5ff --- /dev/null +++ b/templates/tw/$ _plugins_BTC_Muuri-Kanban.json @@ -0,0 +1 @@ +[{"title":"$:/plugins/BTC/Muuri-Kanban","description":"A Kanban based on Muuri","author":"Simon Huber","version":"0.1.14","list":"readme license config","muuri-tiddler-width":"1","plugin-type":"plugin","dependents":"","type":"application/json","text":"{\"tiddlers\":{\"$:/config/kanban/items/align-right\":{\"title\":\"$:/config/kanban/items/align-right\",\"text\":\"no\"},\"$:/config/kanban/items/border-radius\":{\"title\":\"$:/config/kanban/items/border-radius\",\"text\":\"4px\"},\"$:/config/kanban/items/connection-selector\":{\"title\":\"$:/config/kanban/items/connection-selector\",\"text\":\".tc-board-column-items\"},\"$:/config/kanban/items/container-class\":{\"title\":\"$:/config/kanban/items/container-class\",\"text\":\"tc-board-column-items\"},\"$:/config/kanban/items/drag-container\":{\"title\":\"$:/config/kanban/items/drag-container\",\"text\":\".tc-drag-container\"},\"$:/config/kanban/items/dragsort-heuristics-interval\":{\"title\":\"$:/config/kanban/items/dragsort-heuristics-interval\",\"text\":\"0\"},\"$:/config/kanban/items/item-class\":{\"title\":\"$:/config/kanban/items/item-class\",\"text\":\"tc-board-item\"},\"$:/config/kanban/items/margin-top\":{\"title\":\"$:/config/kanban/items/margin-top\",\"text\":\"0.5rem\"},\"$:/config/kanban/items/margin\":{\"title\":\"$:/config/kanban/items/margin\",\"text\":\"0.5rem\"},\"$:/config/kanban/items/text-fontsize\":{\"title\":\"$:/config/kanban/items/text-fontsize\",\"text\":\"0.9rem\"},\"$:/config/kanban/items/text-fontweight\":{\"title\":\"$:/config/kanban/items/text-fontweight\",\"text\":\"300\"},\"$:/config/kanban/items/text-lineheight\":{\"title\":\"$:/config/kanban/items/text-lineheight\",\"text\":\"1.1rem\"},\"$:/config/kanban/align-right\":{\"title\":\"$:/config/kanban/align-right\",\"text\":\"no\"},\"$:/config/kanban/animations\":{\"title\":\"$:/config/kanban/animations\",\"text\":\"yes\"},\"$:/config/kanban/headers/border-radius\":{\"title\":\"$:/config/kanban/headers/border-radius\",\"text\":\"0.2rem\"},\"$:/config/kanban/column-width\":{\"title\":\"$:/config/kanban/column-width\",\"text\":\"350px\"},\"$:/config/kanban/connection-selector\":{\"title\":\"$:/config/kanban/connection-selector\",\"text\":\".tc-board\"},\"$:/config/kanban/container-class\":{\"title\":\"$:/config/kanban/container-class\",\"text\":\"tc-board\"},\"$:/config/kanban/drag-autoscroll-axis\":{\"title\":\"$:/config/kanban/drag-autoscroll-axis\",\"text\":\"xy\"},\"$:/config/kanban/drag-container\":{\"title\":\"$:/config/kanban/drag-container\",\"text\":\".tc-drag-container\"},\"$:/config/kanban/dragsort-action\":{\"title\":\"$:/config/kanban/dragsort-action\",\"text\":\"swap\"},\"$:/config/kanban/horizontal\":{\"title\":\"$:/config/kanban/horizontal\",\"text\":\"no\"},\"$:/config/kanban/item-class\":{\"title\":\"$:/config/kanban/item-class\",\"text\":\"tc-board-column\"},\"$:/config/kanban/open-links-outside\":{\"title\":\"$:/config/kanban/open-links-outside\",\"text\":\"yes\"},\"$:/config/kanban/titles-as-links\":{\"title\":\"$:/config/kanban/titles-as-links\",\"text\":\"no\"},\"$:/config/muuri/kanban/ColumnEditTemplate\":{\"title\":\"$:/config/muuri/kanban/ColumnEditTemplate\",\"text\":\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnEditTemplate\"},\"$:/config/muuri/kanban/ColumnTemplate\":{\"title\":\"$:/config/muuri/kanban/ColumnTemplate\",\"text\":\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnTemplate\"},\"$:/config/muuri/kanban/ItemEditTemplate\":{\"title\":\"$:/config/muuri/kanban/ItemEditTemplate\",\"text\":\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemEditTemplate\"},\"$:/config/muuri/kanban/ItemTemplate\":{\"title\":\"$:/config/muuri/kanban/ItemTemplate\",\"text\":\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemTemplate\"},\"$:/plugins/BTC/Muuri-Kanban/config\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/config\",\"tags\":\"$:/tags/ControlPanel/Appearance\",\"caption\":\"Muuri-Kanban\",\"text\":\"<$checkbox tiddler=\\\"$:/config/kanban/animations\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"yes\\\"> Enable animations for toolbar buttons\\n\\n<$checkbox tiddler=\\\"$:/config/kanban/horizontal\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> Enable horizontal scrolling for Kanbans\\n\\n<$checkbox tiddler=\\\"$:/config/kanban/items/show-toolbar\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> Show the items-toolbar\\n\\n<$checkbox tiddler=\\\"$:/config/kanban/items/show-tags\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> Show tags on items\\n\\n<$checkbox tiddler=\\\"$:/config/kanban/items/match-header-color\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> Show the item-borders in the color of the column header\\n\\n<$checkbox tiddler=\\\"$:/config/kanban/auto-save-wiki\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\" checkactions=\\\"\\\"\\\"<$action-setfield $tiddler=\\\"$:/config/kanban/items/auto-save-wiki\\\" text=\\\"yes\\\"/>\\\"\\\"\\\" uncheckactions=\\\"\\\"\\\"<$action-setfield $tiddler=\\\"$:/config/kanban/items/auto-save-wiki\\\" text=\\\"no\\\"/>\\\"\\\"\\\"> Enable ~AutoSaving\\n\\n<$checkbox tiddler=\\\"$:/config/kanban/titles-as-links\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"no\\\"> Show titles as links\\n\\n<$checkbox tiddler=\\\"$:/config/kanban/open-links-outside\\\" field=\\\"text\\\" checked=\\\"yes\\\" unchecked=\\\"no\\\" default=\\\"yes\\\"> Open links in the Story River\\n\\n!!! Configure the width of Kanban columns when horizontal scrolling is enabled\\n\\n<$edit-text tiddler=\\\"$:/config/kanban/column-width\\\" tag=\\\"input\\\" default=\\\"\\\"/>\\n\\n!!! Configure the top margin of items\\n\\n<$edit-text tiddler=\\\"$:/config/kanban/items/margin-top\\\" tag=\\\"input\\\" default=\\\"\\\"/>\\n\\n!!! Configure the right/left margin of items\\n\\n<$edit-text tiddler=\\\"$:/config/kanban/items/margin\\\" tag=\\\"input\\\" default=\\\"\\\"/>\\n\\n!!! Configure the text-fontsize of items\\n\\n<$edit-text tiddler=\\\"$:/config/kanban/items/text-fontsize\\\" tag=\\\"input\\\" default=\\\"\\\"/>\\n\\n!!! Configure the text-lineheight of items\\n\\n<$edit-text tiddler=\\\"$:/config/kanban/items/text-lineheight\\\" tag=\\\"input\\\" default=\\\"\\\"/>\\n\\n!!! Configure the text-fontweight of items\\n\\n<$edit-text tiddler=\\\"$:/config/kanban/items/text-fontweight\\\" tag=\\\"input\\\" default=\\\"\\\"/>\\n\\n!!! Configure the border-radius of the items\\n\\n<$edit-text tiddler=\\\"$:/config/kanban/items/border-radius\\\" tag=\\\"input\\\" default=\\\"\\\"/>\\n\\n!!! Configure the border-radius of the column-headers\\n\\n<$edit-text tiddler=\\\"$:/config/kanban/headers/border-radius\\\" tag=\\\"input\\\" default=\\\"\\\"/>\"},\"$:/plugins/BTC/Muuri-Kanban/icons/kanban\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/icons/kanban\",\"tags\":\"$:/tags/Image\",\"text\":\"\"},\"$:/plugins/BTC/Muuri-Kanban/license\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/license\",\"text\":\"!!! This plugin is distributed under MIT license:\\n\\n```\\nMIT License\\n\\nCopyright (c) 2021 Simon Huber\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\\n```\\n\\n!!! Google Material Icons are distributed under Apache 2.0 License:\\n\\n```\\n\\n Apache License\\n Version 2.0, January 2004\\n http://www.apache.org/licenses/\\n\\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\\n\\n 1. Definitions.\\n\\n \\\"License\\\" shall mean the terms and conditions for use, reproduction,\\n and distribution as defined by Sections 1 through 9 of this document.\\n\\n \\\"Licensor\\\" shall mean the copyright owner or entity authorized by\\n the copyright owner that is granting the License.\\n\\n \\\"Legal Entity\\\" shall mean the union of the acting entity and all\\n other entities that control, are controlled by, or are under common\\n control with that entity. For the purposes of this definition,\\n \\\"control\\\" means (i) the power, direct or indirect, to cause the\\n direction or management of such entity, whether by contract or\\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\\n outstanding shares, or (iii) beneficial ownership of such entity.\\n\\n \\\"You\\\" (or \\\"Your\\\") shall mean an individual or Legal Entity\\n exercising permissions granted by this License.\\n\\n \\\"Source\\\" form shall mean the preferred form for making modifications,\\n including but not limited to software source code, documentation\\n source, and configuration files.\\n\\n \\\"Object\\\" form shall mean any form resulting from mechanical\\n transformation or translation of a Source form, including but\\n not limited to compiled object code, generated documentation,\\n and conversions to other media types.\\n\\n \\\"Work\\\" shall mean the work of authorship, whether in Source or\\n Object form, made available under the License, as indicated by a\\n copyright notice that is included in or attached to the work\\n (an example is provided in the Appendix below).\\n\\n \\\"Derivative Works\\\" shall mean any work, whether in Source or Object\\n form, that is based on (or derived from) the Work and for which the\\n editorial revisions, annotations, elaborations, or other modifications\\n represent, as a whole, an original work of authorship. For the purposes\\n of this License, Derivative Works shall not include works that remain\\n separable from, or merely link (or bind by name) to the interfaces of,\\n the Work and Derivative Works thereof.\\n\\n \\\"Contribution\\\" shall mean any work of authorship, including\\n the original version of the Work and any modifications or additions\\n to that Work or Derivative Works thereof, that is intentionally\\n submitted to Licensor for inclusion in the Work by the copyright owner\\n or by an individual or Legal Entity authorized to submit on behalf of\\n the copyright owner. For the purposes of this definition, \\\"submitted\\\"\\n means any form of electronic, verbal, or written communication sent\\n to the Licensor or its representatives, including but not limited to\\n communication on electronic mailing lists, source code control systems,\\n and issue tracking systems that are managed by, or on behalf of, the\\n Licensor for the purpose of discussing and improving the Work, but\\n excluding communication that is conspicuously marked or otherwise\\n designated in writing by the copyright owner as \\\"Not a Contribution.\\\"\\n\\n \\\"Contributor\\\" shall mean Licensor and any individual or Legal Entity\\n on behalf of whom a Contribution has been received by Licensor and\\n subsequently incorporated within the Work.\\n\\n 2. Grant of Copyright License. Subject to the terms and conditions of\\n this License, each Contributor hereby grants to You a perpetual,\\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\\n copyright license to reproduce, prepare Derivative Works of,\\n publicly display, publicly perform, sublicense, and distribute the\\n Work and such Derivative Works in Source or Object form.\\n\\n 3. Grant of Patent License. Subject to the terms and conditions of\\n this License, each Contributor hereby grants to You a perpetual,\\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\\n (except as stated in this section) patent license to make, have made,\\n use, offer to sell, sell, import, and otherwise transfer the Work,\\n where such license applies only to those patent claims licensable\\n by such Contributor that are necessarily infringed by their\\n Contribution(s) alone or by combination of their Contribution(s)\\n with the Work to which such Contribution(s) was submitted. If You\\n institute patent litigation against any entity (including a\\n cross-claim or counterclaim in a lawsuit) alleging that the Work\\n or a Contribution incorporated within the Work constitutes direct\\n or contributory patent infringement, then any patent licenses\\n granted to You under this License for that Work shall terminate\\n as of the date such litigation is filed.\\n\\n 4. Redistribution. You may reproduce and distribute copies of the\\n Work or Derivative Works thereof in any medium, with or without\\n modifications, and in Source or Object form, provided that You\\n meet the following conditions:\\n\\n (a) You must give any other recipients of the Work or\\n Derivative Works a copy of this License; and\\n\\n (b) You must cause any modified files to carry prominent notices\\n stating that You changed the files; and\\n\\n (c) You must retain, in the Source form of any Derivative Works\\n that You distribute, all copyright, patent, trademark, and\\n attribution notices from the Source form of the Work,\\n excluding those notices that do not pertain to any part of\\n the Derivative Works; and\\n\\n (d) If the Work includes a \\\"NOTICE\\\" text file as part of its\\n distribution, then any Derivative Works that You distribute must\\n include a readable copy of the attribution notices contained\\n within such NOTICE file, excluding those notices that do not\\n pertain to any part of the Derivative Works, in at least one\\n of the following places: within a NOTICE text file distributed\\n as part of the Derivative Works; within the Source form or\\n documentation, if provided along with the Derivative Works; or,\\n within a display generated by the Derivative Works, if and\\n wherever such third-party notices normally appear. The contents\\n of the NOTICE file are for informational purposes only and\\n do not modify the License. You may add Your own attribution\\n notices within Derivative Works that You distribute, alongside\\n or as an addendum to the NOTICE text from the Work, provided\\n that such additional attribution notices cannot be construed\\n as modifying the License.\\n\\n You may add Your own copyright statement to Your modifications and\\n may provide additional or different license terms and conditions\\n for use, reproduction, or distribution of Your modifications, or\\n for any such Derivative Works as a whole, provided Your use,\\n reproduction, and distribution of the Work otherwise complies with\\n the conditions stated in this License.\\n\\n 5. Submission of Contributions. Unless You explicitly state otherwise,\\n any Contribution intentionally submitted for inclusion in the Work\\n by You to the Licensor shall be under the terms and conditions of\\n this License, without any additional terms or conditions.\\n Notwithstanding the above, nothing herein shall supersede or modify\\n the terms of any separate license agreement you may have executed\\n with Licensor regarding such Contributions.\\n\\n 6. Trademarks. This License does not grant permission to use the trade\\n names, trademarks, service marks, or product names of the Licensor,\\n except as required for reasonable and customary use in describing the\\n origin of the Work and reproducing the content of the NOTICE file.\\n\\n 7. Disclaimer of Warranty. Unless required by applicable law or\\n agreed to in writing, Licensor provides the Work (and each\\n Contributor provides its Contributions) on an \\\"AS IS\\\" BASIS,\\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\\n implied, including, without limitation, any warranties or conditions\\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\\n PARTICULAR PURPOSE. You are solely responsible for determining the\\n appropriateness of using or redistributing the Work and assume any\\n risks associated with Your exercise of permissions under this License.\\n\\n 8. Limitation of Liability. In no event and under no legal theory,\\n whether in tort (including negligence), contract, or otherwise,\\n unless required by applicable law (such as deliberate and grossly\\n negligent acts) or agreed to in writing, shall any Contributor be\\n liable to You for damages, including any direct, indirect, special,\\n incidental, or consequential damages of any character arising as a\\n result of this License or out of the use or inability to use the\\n Work (including but not limited to damages for loss of goodwill,\\n work stoppage, computer failure or malfunction, or any and all\\n other commercial damages or losses), even if such Contributor\\n has been advised of the possibility of such damages.\\n\\n 9. Accepting Warranty or Additional Liability. While redistributing\\n the Work or Derivative Works thereof, You may choose to offer,\\n and charge a fee for, acceptance of support, warranty, indemnity,\\n or other liability obligations and/or rights consistent with this\\n License. However, in accepting such obligations, You may act only\\n on Your own behalf and on Your sole responsibility, not on behalf\\n of any other Contributor, and only if You agree to indemnify,\\n defend, and hold each Contributor harmless for any liability\\n incurred by, or claims asserted against, such Contributor by reason\\n of your accepting any such warranty or additional liability.\\n\\n END OF TERMS AND CONDITIONS\\n\\n APPENDIX: How to apply the Apache License to your work.\\n\\n To apply the Apache License to your work, attach the following\\n boilerplate notice, with the fields enclosed by brackets \\\"[]\\\"\\n replaced with your own identifying information. (Don't include\\n the brackets!) The text should be enclosed in the appropriate\\n comment syntax for the file format. We also recommend that a\\n file or class name and description of purpose be included on the\\n same \\\"printed page\\\" as the copyright notice for easier\\n identification within third-party archives.\\n\\n Copyright [yyyy] [name of copyright owner]\\n\\n Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n you may not use this file except in compliance with the License.\\n You may obtain a copy of the License at\\n\\n http://www.apache.org/licenses/LICENSE-2.0\\n\\n Unless required by applicable law or agreed to in writing, software\\n distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n See the License for the specific language governing permissions and\\n limitations under the License.\\n ```\"},\"$:/plugins/BTC/Muuri-Kanban/readme\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/readme\",\"text\":\"This plugin adds the Muuri Kanban to ~TiddlyWiki5\\n\\nIt needs the Muuri ~StoryView plugin installed in order to work\"},\"$:/plugins/BTC/Muuri-Kanban/css\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/css\",\"tags\":\"$:/tags/Stylesheet\",\"muuri-tiddler-width\":\"1\",\"text\":\"\\\\define set-board-column-width()\\n<$list filter=\\\"[{$:/config/kanban/horizontal}match[no]]\\\" emptyMessage=\\\"\\\"\\\"\\n\\t[data-board-container-title=\\\"$(cssEscapedTitle)$\\\"] .tc-board-column {\\n\\t\\twidth: {{$:/config/kanban/column-width}};\\n\\t}\\n\\\"\\\"\\\">\\n\\t[data-board-container-title=\\\"$(cssEscapedTitle)$\\\"] .tc-board-column {\\n\\t\\twidth: calc(100% / $(count)$);\\n\\t}\\n\\n\\\\end\\n.tc-board-container {\\n\\tposition: relative;\\n\\theight: 75vh;\\n}\\n\\n<$list filter=\\\"[{$:/config/kanban/horizontal}match[yes]]\\\">\\n\\t.tc-board-container {\\n\\t\\toverflow-x: auto;\\n\\t}\\n\\n\\nhr.tc-kanban-line {\\n\\tborder: 0;\\n\\theight: 1px;\\n\\tbackground: <>;\\n}\\n\\n<$list filter=\\\"[all[tiddlers]prefix[$:/state/popup/more-]limit[1]]\\\">\\n\\n.tc-board-container {\\n\\tz-index: -1;\\n}\\n\\n\\n\\n.tc-kanban-droppable {\\n\\tposition: relative;\\n\\twidth: 100%;\\n\\tfont-size: 1.5rem;\\n\\tmin-height: 2.2rem;\\n\\tborder: 0.2rem dashed transparent;\\n\\tborder-radius: 4px;\\n}\\n\\n.tc-kanban-droppable button.tc-btn-invisible {\\n\\tfill: <>;\\n\\tfloat: right;\\n}\\n\\n.tc-kanban-droppable button.tc-btn-invisible:hover {\\n\\tfill: <>;\\n}\\n\\n.tc-dragover .tc-kanban-droppable {\\n\\tborder-color: <>;\\n}\\n\\n.tc-board {\\n\\tposition: relative;\\n\\tdisplay: flex;\\n\\theight: 100%;\\n\\tmin-width: 100%;\\n\\t-webkit-user-select: none;\\n\\t-moz-user-select: none;\\n\\t-ms-user-select: none;\\n\\tuser-select: none;\\n\\tmax-height: 100%;\\n\\tmin-height: 100%;\\n}\\n\\n.tc-board-column {\\n\\tdisplay: flex;\\n\\tposition: absolute;\\n\\tleft: 0;\\n\\ttop: 0;\\n\\tmin-height: 100%;\\n\\tz-index: 1;\\n}\\n\\n<$list filter=\\\"[all[tiddlers+shadows]has[list]]\\\" variable=\\\"listItem\\\">\\n\\t<$vars count={{{ [listcount[]] }}} cssEscapedTitle={{{ [escapecss[]] }}}>\\n\\n\\t\\t<>\\n\\n\\t\\n\\n\\n.tc-board-item-toolbar {\\n\\tfloat: right;\\n}\\n\\n.tc-board-item-toolbar button.tc-btn-invisible {\\n\\tfill: <>;\\n}\\n\\n.tc-board-item-toolbar button.tc-btn-invisible:hover {\\n\\tfill: <>;\\n}\\n\\n.tc-board-column.tc-muuri-releasing {\\n\\tz-index: 2;\\n}\\n.tc-board-column.tc-muuri-dragging {\\n\\tz-index: 3;\\n\\tcursor: move;\\n}\\n\\n.tc-board-column-content {\\n\\tdisplay: flex;\\n\\tflex-direction: column;\\n\\tposition: relative;\\n\\twidth: 100%;\\n\\tmin-height: 100%;\\n\\tpadding: 0.5rem;\\n}\\n\\n.tc-board-column-header {\\n\\tposition: relative;\\n\\tdisplay: flex;\\n\\tjustify-content: space-between;\\n\\talign-items: center;\\n\\theight: 2.5rem;\\n\\twidth: 100%;\\n\\tmin-height: 2.5rem;\\n\\tfont-size: 1rem;\\n\\tline-height: 2.5rem;\\n\\toverflow: hidden;\\n\\tpadding-top: 0;\\n\\tpadding-bottom: 0;\\n\\tpadding-left: 1rem;\\n\\tpadding-right: 0.5rem;\\n\\ttext-align: center;\\n\\tfont-weight: 700;\\n\\tfont-style: italic;\\n\\tbackground: <>;\\n\\tcolor: <>;\\n\\tborder-radius: {{$:/config/kanban/headers/border-radius}};\\n\\tborder: 0.2rem solid <>;\\n}\\n.tc-board-column-header.tc-board-column-edit-header {\\n\\theight: auto;\\n\\tborder: 0.2rem solid <>;\\n}\\n\\n.tc-board-column-header input:not([type=\\\"color\\\"]) {\\n\\tborder: 1px solid <>;\\n\\tborder-radius: 2px;\\n\\twidth: 80%;\\n}\\n.tc-board-column-header-wrapper {\\n\\tposition: relative;\\n\\tdisplay: flex;\\n\\tfont-size: 1rem;\\n\\tfont-weight: 700;\\n\\theight: auto;\\n}\\n\\n.tc-board-column-title {\\n\\twhite-space: nowrap;\\n\\ttext-overflow: ellipsis;\\n\\toverflow: hidden;\\n\\toutline: none;\\n\\tflex-grow: 1;\\n\\ttext-align: left;\\n\\tmargin-left: -2rem;\\n\\tpadding-left: 2rem;\\n}\\n\\n.tc-board-column-action {\\n\\tdisplay: flex;\\n\\tjustify-content: center;\\n\\talign-items: center;\\n\\tposition: relative;\\n\\tmargin: 0;\\n\\tborder: 0;\\n\\twidth: 2rem;\\n\\theight: 2rem;\\n\\tmin-width: 2rem;\\n\\tmin-height: 2rem;\\n\\tpadding: 0.3rem;\\n\\tborder-radius: 1rem;\\n\\twhite-space: nowrap;\\n\\tcursor: pointer;\\n\\t-ms-touch-action: manipulation;\\n\\ttouch-action: manipulation;\\n\\t-webkit-user-select: none;\\n\\t-moz-user-select: none;\\n\\t-ms-user-select: none;\\n\\tuser-select: none;\\n}\\n\\n<$list filter=\\\"[{$:/config/kanban/animations}!match[no]]\\\">\\n\\n.tc-board-column-action {\\n\\ttransform: rotateZ(0deg);\\n\\ttransition: transform 0.2s ease-in-out;\\n}\\n\\n.tc-board-column-action:hover {\\n\\ttransform: rotateZ(180deg);\\n}\\n.tc-board-column-action.tc-edit, .tc-board-column-action.tc-delete {\\n\\ttransition: transform 0.4s ease-in-out;\\n}\\n.tc-board-column-action.tc-edit:hover, .tc-board-column-action.tc-delete:hover {\\n\\ttransform: rotateZ(360deg);\\n}\\n\\n\\n\\n.tc-board-column-action:focus {\\n\\toutline: 0;\\n}\\n\\n.tc-board-column-action svg {\\n\\tflex-grow: 1;\\n\\tpointer-events: none;\\n}\\n\\n.tc-board-column-items-container {\\n\\tposition: relative;\\n\\tdisplay: flex;\\n\\tflex-direction: column;\\n\\tflex-grow: 1;\\n\\toverflow: hidden;\\n\\toverflow-y: auto;\\n}\\n.tc-board-column-items {\\n\\tposition: absolute;\\n\\tleft: 0;\\n\\ttop: 0;\\n\\twidth: 100%;\\n\\tmin-height: 100%;\\n\\tborder-bottom: 1.5rem solid transparent;\\n}\\n\\n.tc-board-item {\\n\\tposition: absolute;\\n\\twidth: calc(100% - (2 * {{$:/config/kanban/items/margin}}));\\n\\tmargin-top: {{$:/config/kanban/items/margin-top}};\\n\\tmargin-right: {{$:/config/kanban/items/margin}};\\n\\tmargin-left: {{$:/config/kanban/items/margin}};\\n\\tmargin-bottom: 0;\\n\\tz-index: 10;\\n}\\n.tc-board-item.tc-muuri-releasing {\\n\\tz-index: 11;\\n}\\n.tc-board-item.tc-muuri-dragging {\\n\\tz-index: 12;\\n\\tcursor: move;\\n}\\n.tc-board-item.tc-muuri-hidden {\\n\\tz-index: 8;\\n}\\n.tc-board-item.muuri-item-placeholder {\\n\\tz-index: 9;\\n\\tmargin: 0;\\n\\topacity: 0.7;\\n}\\n.tc-board-item.tc-active {\\n\\tz-index: 13;\\n}\\n\\n.tc-board-item img, .tc-board-item hr {\\n\\tpointer-events: none;\\n\\tmax-width: 100%;\\n}\\n\\n.tc-board-item svg {\\n\\tmax-width: 100%;\\n}\\n\\n.tc-board-item .tc-tags-wrapper .tc-tag-list-item .tc-tag-label {\\n\\tfont-size: 0.75em;\\n}\\n\\n.tc-board-item .tc-tags-wrapper .tc-tag-list-item .tc-drop-down {\\n\\tfont-size: 0.75em;\\n\\tmin-width: 100%;\\n}\\n\\n.tc-board-item .tc-tiddler-title-icon svg {\\n\\theight: 1.5rem;\\n\\twidth: 1.5rem;\\n}\\n\\n.tc-board-item .tc-edit-tags input.tc-edit-texteditor {\\n\\t-webkit-box-shadow: none;\\n\\t-moz-box-shadow: none;\\n\\tbox-shadow: none;\\n\\tborder: none;\\n\\toutline: none;\\n}\\n\\n.tc-board-item .tc-edit-texteditor {\\n\\tmargin: 4px 0 4px 0;\\n}\\n\\n.tc-board-item input.tc-edit-texteditor {\\n\\tpadding: 3px 3px 3px 3px;\\n}\\n\\n.tc-board-item-content {\\n\\tposition: relative;\\n\\tpadding: 0.5rem;\\n\\tbackground: <>;\\n\\tborder: 0.2rem solid <>;\\n\\tcolor: <>;\\n\\tborder-radius: {{$:/config/kanban/items/border-radius}};\\n\\tfont-size: 1rem;\\n\\tfont-weight: 400;\\n}\\n.tc-board-item-content input:not(input[type=\\\"checkbox\\\"]) {\\n\\twidth: 100%;\\n\\tborder: 1px solid <>;\\n\\tborder-radius: 2px;\\n\\tmargin-bottom: 2px;\\n}\\n.tc-board-item-content input + br + div, .tc-board-item-content .tc-edit-tags + div, .tc-board-item-content input + br + div > .CodeMirror, .tc-board-item-content textarea {\\n\\twidth: 100%;\\n\\tborder-radius: 2px;\\n}\\n.tc-board-item-content .tc-edit-tags {\\n\\tmargin-bottom: 2px;\\n\\tborder-radius: 2px;\\n}\\n.tc-board-item.muuri-item-placeholder .tc-board-item-content {\\n\\tborder-style: dashed;\\n\\tborder-color: <>;\\n}\\n.tc-board-item.editing .tc-board-item-content {\\n\\tborder-color: <>;\\n}\\n.tc-board-item:focus-within .tc-board-item-content {\\n\\tborder: 0.2rem solid <>;\\n\\tpadding: 0.5rem;\\n}\\n.tc-board-item-title {\\n\\tfont-size: 1rem;\\n\\tline-height: 1.2;\\n\\tword-break: break-word;\\n\\tcaret-color: <>;\\n\\toutline: none;\\n\\toutline-offset: 0.5rem;\\n\\tmin-height: calc(1rem * 1.2);\\n}\\n.tc-board-item-text {\\n\\tmargin-top: 0.5rem;\\n\\tfont-size: {{$:/config/kanban/items/text-fontsize}};\\n\\tfont-weight: {{$:/config/kanban/items/text-fontweight}};\\n\\tline-height: {{$:/config/kanban/items/text-lineheight}};\\n}\\n.tc-board-item-handle {\\n\\tposition: absolute;\\n\\tleft: -0.25rem;\\n\\tright: -0.25rem;\\n\\ttop: -0.25rem;\\n\\tbottom: -0.25rem;\\n\\tborder-radius: 0.5rem;\\n\\tcursor: move;\\n}\\n.tc-board-item.tc-editing .tc-board-item-handle {\\n\\tdisplay: none;\\n}\\n.tc-board-item-action {\\n\\tposition: absolute;\\n\\tdisplay: flex;\\n\\twidth: 1.5rem;\\n\\theight: 1.5rem;\\n\\tpadding: 0rem;\\n\\topacity: 0;\\n\\ttransform: scale(0, 0);\\n\\ttransition: transform 0.3s 0s ease-out, opacity 0.3s 0s linear;\\n}\\n.tc-board-item-action button.tc-btn-invisible:focus {\\n\\toutline: 0;\\n}\\n.tc-board-item-action.tc-edit {\\n\\tright: -1.1rem;\\n\\ttop: -0.9rem;\\n}\\n.tc-board-item:focus-within .tc-board-item-action.tc-edit {\\n\\tright: -1.1rem;\\n\\ttop: -0.9rem;\\n}\\n.tc-board-item-action.tc-delete {\\n\\tleft: -0.6rem;\\n\\tbottom: -0.6rem;\\n}\\n.tc-board-item:focus-within .tc-board-item-action.tc-delete {\\n\\tleft: -0.6rem;\\n\\tbottom: -0.6rem;\\n}\\n.tc-board-item-action.tc-close {\\n\\tright: -1.1rem;\\n\\tbottom: -0.6rem;\\n}\\n.tc-board-item:focus-within .tc-board-item-action.tc-close {\\n\\tright: -1.1rem;\\n\\tbottom: -0.6rem;\\n}\\n.tc-board-item-action.tc-link {\\n\\ttop: -0.9rem;\\n\\tleft: -0.5rem;\\n}\\n.tc-board-item:focus-within .tc-board-item-action.tc-link {\\n\\ttop: -0.9rem;\\n\\tleft: -0.5rem;\\n}\\n\\n.tc-board-item.tc-editing .tc-board-item-action,\\n.tc-board-item:hover .tc-board-item-action,\\n.tc-board-column-header-wrapper:hover .tc-board-item-action,\\n.tc-board-item:focus .tc-board-item-action,\\n.tc-board-item.tc-muuri-dragging .tc-board-item-action,\\n.tc-board-item.tc-muuri-releasing .tc-board-item-action {\\n\\topacity: 1;\\n\\ttransform: scale(1, 1);\\n\\ttransition: transform 0.2s 0.1s ease, opacity 0.2s 0.1s linear;\\n}\\n.tc-board-item.tc-editing .tc-board-item-action:hover,\\n.tc-board-item:hover .tc-board-item-action:hover,\\n.tc-board-item:focus .tc-board-item-action:hover,\\n.tc-board-item.tc-muuri-dragging .tc-board-item-action:hover,\\n.tc-board-item.tc-muuri-releasing .tc-board-item-action:hover {\\n\\ttransform: scale(1.2, 1.2);\\n}\\n.tc-board-item-action-icon {\\n\\tflex-grow: 1;\\n\\tpointer-events: none;\\n}\\n.tc-board-item.tc-editing .tc-board-item-action-icon.tc-icon-edit,\\n.tc-board-item-action-icon.tc-icon-save {\\n\\tdisplay: none;\\n}\\n.tc-board-item.tc-editing .tc-board-item-action-icon.tc-icon-save {\\n\\tdisplay: block;\\n}\\n\"},\"$:/plugins/BTC/Muuri-Kanban/ui/Buttons/new-kanban\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/ui/Buttons/new-kanban\",\"tags\":\"$:/tags/PageControls\",\"text\":\"\\\\define new-kanban-actions()\\n<$action-createtiddler $basetitle=\\\"New Kanban\\\" $savetitle=\\\"$:/temp/new-kanban\\\" text=\\\"{{||$:/plugins/BTC/Muuri-Kanban/ui/KanbanTemplate}}\\\" muuri-tiddler-width=\\\"1\\\"/>\\n<$action-sendmessage $message=\\\"tm-edit-tiddler\\\" $param={{$:/temp/new-kanban}}/>\\n\\\\end\\n\\\\whitespace trim\\n<$button actions=<> tooltip=\\\"new kanban\\\" aria-label=\\\"new kanban\\\" class=<>>\\n<$list filter=\\\"[match[yes]]\\\">\\n{{$:/plugins/BTC/Muuri-Kanban/icons/kanban}}\\n\\n<$list filter=\\\"[match[yes]]\\\">\\n<$text text=\\\" new kanban\\\"/>\\n\\n\\n\"},\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnEditTemplate\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnEditTemplate\",\"text\":\"\\\\whitespace trim\\n\\\\define get-history() $:/HistoryList/Kanban/$(currentTiddler)$\\n\\\\define get-styles() background-color: $(bgColor)$; border-color: $(bgColor)$; fill: $(foregroundColor)$;\\n\\\\define get-item-styles() border-color: $(bgColor)$;\\n\\\\define get-foreground-color-inner(colour,colourA,colourB)\\n<$macrocall $name=\\\"contrastcolour\\\" target=\\\"\\\"\\\"$colour$\\\"\\\"\\\" colourA=\\\"\\\"\\\"$colourA$\\\"\\\"\\\" colourB=\\\"\\\"\\\"$colourB$\\\"\\\"\\\"/>\\n\\\\end\\n\\\\define get-foreground-color(palette)\\n<$macrocall $name=\\\"get-foreground-color-inner\\\" colour={{!!color}} colourA={{$palette$##foreground}} colourB={{$palette$##background}}/>\\n\\\\end\\n<$vars bgColor={{!!color}} palette={{$:/palette}}>\\n\\t<$wikify name=\\\"foregroundColor\\\" text=\\\"\\\"\\\"<$macrocall $name=\\\"get-foreground-color\\\" palette=<>/>\\\"\\\"\\\">\\n\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
>>\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t<$keyboard key=\\\"((save-tiddler))\\\" message=\\\"tm-save-tiddler\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$keyboard key=\\\"((cancel-edit-tiddler))\\\" message=\\\"tm-cancel-tiddler\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$edit-text field=\\\"draft.title\\\" tag=\\\"input\\\" placeholder=\\\" title\\\" focus=\\\"true\\\" tabindex=\\\"1\\\"/>
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$edit-text field=\\\"caption\\\" tag=\\\"input\\\" placeholder=\\\" caption\\\" tabindex=\\\"1\\\"/>
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$edit-text field=\\\"drop-actions\\\" tag=\\\"input\\\" placeholder=\\\" drop-actions\\\" tabindex=\\\"1\\\"/>
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$edit-text field=\\\"color\\\" tag=\\\"input\\\" tabindex=\\\"1\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t<$button class=\\\"tc-btn-invisible tc-board-column-action tc-edit\\\" style=<> tooltip=\\\"save column\\\" aria-label=\\\"save column\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$action-sendmessage $message=\\\"tm-save-tiddler\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t{{$:/core/images/save-button}}\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t<$button class=\\\"tc-btn-invisible tc-board-column-action tc-delete\\\" style=<> tooltip=\\\"cancel editing\\\" aria-label=\\\"cancel editing\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$action-sendmessage $message=\\\"tm-cancel-tiddler\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t{{$:/core/images/cancel-button}}\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t<$navigator story=<> history=<>>\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t<$set name=\\\"tv-muuri-story-list\\\" value=<>>\\n\\t\\t\\t\\t\\t\\t\\t<$set name=\\\"tv-muuri-drop-actions\\\" value={{!!drop-actions}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[list]\\\" storyview=\\\"muuri\\\" template={{$:/config/muuri/kanban/ItemTemplate}} editTemplate={{$:/config/muuri/kanban/ItemEditTemplate}} storyViewConfig=\\\"$:/config/kanban/items/\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\n\\t\\t\\t
\\n\\t\\t
\\n\\t\\n\"},\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnTemplate\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanColumnTemplate\",\"text\":\"\\\\whitespace trim\\n\\\\define get-column-tooltip(prefix) $prefix$ column $(currentTiddler)$\\n\\\\define get-history() $:/HistoryList/KanbanColumn/$(currentTiddler)$\\n\\\\define get-classes() tc-board-column $(currentTiddler)$\\n\\\\define get-board-column-styles() width: calc(100% / $(amount)$);\\n\\\\define get-styles() background-color: $(bgColor)$; border-color: $(bgColor)$; color: $(foregroundColor)$; fill: $(foregroundColor)$;\\n\\\\define get-item-styles() border-color: $(bgColor)$;\\n\\\\define get-foreground-color-inner(colour,colourA,colourB)\\n<$macrocall $name=\\\"contrastcolour\\\" target=\\\"\\\"\\\"$colour$\\\"\\\"\\\" colourA=\\\"\\\"\\\"$colourA$\\\"\\\"\\\" colourB=\\\"\\\"\\\"$colourB$\\\"\\\"\\\"/>\\n\\\\end\\n\\\\define get-foreground-color(palette)\\n<$macrocall $name=\\\"get-foreground-color-inner\\\" colour={{!!color}} colourA={{$palette$##foreground}} colourB={{$palette$##background}}/>\\n\\\\end\\n\\\\define get-drop-actions()\\n<$vars prefix=\\\"[[\\\" suffix=\\\"]]\\\">\\n\\t<$action-listops $tiddler=<> $field=\\\"kanban-history\\\" $subfilter={{{ [addsuffixaddsuffix[,]addsuffix[column: ]addsuffixaddsuffix[,moved]addsuffix] }}}/>\\n\\t$(dropActions)$\\n\\n\\\\end\\n<$vars bgColor={{!!color}} palette={{$:/palette}}>\\n\\t<$wikify name=\\\"foregroundColor\\\" text=\\\"\\\"\\\"<$macrocall $name=\\\"get-foreground-color\\\" palette=<>/>\\\"\\\"\\\">\\n\\t\\t<$navigator story=<> history=<> openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\\n\\t\\t\\t
>>\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t<$droppable actions=\\\"\\\"\\\"<$vars prefix=\\\"[[\\\" suffix=\\\"]]\\\"><$action-listops $tiddler=<> $field=\\\"kanban-history\\\" $subfilter={{{ [addsuffixaddsuffix[,]addsuffix[column: ]addsuffixaddsuffix[,added]addsuffix] }}}/><$action-navigate $to=<>/>\\\"\\\"\\\">\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t
>>\\n\\t\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[{!!caption}!match[]]\\\" variable=\\\"ignore\\\" emptyMessage=\\\"\\\"\\\"\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$transclude field=\\\"title\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\\"\\\"\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$transclude field=\\\"caption\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\t<$button class=\\\"tc-btn-invisible tc-board-column-action tc-add\\\" style=<> tooltip=\\\"new item\\\" aria-label=\\\"new item\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$vars prefix=\\\"[[\\\" suffix=\\\"]]\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$action-createtiddler $basetitle={{$:/language/DefaultNewTiddlerTitle}} kanban-history={{{ [addsuffixaddsuffix[,]addsuffix[column: ]addsuffixaddsuffix[,created]addsuffix] }}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$action-navigate $to=<>/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$action-sendmessage $message=\\\"tm-edit-tiddler\\\" $param=<>/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t{{$:/core/images/new-button}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t<$navigator story=<> history=<>>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$button class=\\\"tc-btn-invisible tc-board-column-action tc-edit\\\" style=<> tooltip=<> aria-label=<>>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$action-sendmessage $message=\\\"tm-edit-tiddler\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{$:/core/images/edit-button}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$button class=\\\"tc-btn-invisible tc-board-column-action tc-add\\\" style=<> tooltip=<> aria-label=<>>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$action-sendmessage $message=\\\"tm-close-tiddler\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{$:/core/images/close-button}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$button class=\\\"tc-btn-invisible tc-board-column-action tc-delete\\\" style=<> tooltip=<> aria-label=<>>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$action-confirm $message=\\\"Do you wish to delete the column?\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$action-sendmessage $message=\\\"tm-delete-tiddler\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t{{$:/core/images/delete-button}}\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t<$set name=\\\"tv-muuri-story-list\\\" value=<>>\\n\\t\\t\\t\\t\\t\\t\\t<$set name=\\\"dropActions\\\" value={{!!drop-actions}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t<$set name=\\\"tv-muuri-drop-actions\\\" value=<>>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[list]\\\" storyview=\\\"muuri\\\" template={{$:/config/muuri/kanban/ItemTemplate}} editTemplate={{$:/config/muuri/kanban/ItemEditTemplate}} storyViewConfig=\\\"$:/config/kanban/items/\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t
\\n\\t\\t\\n\\t\\n\"},\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemEditTemplate\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemEditTemplate\",\"text\":\"\\\\define save-button()\\n<$button class=\\\"tc-btn-invisible\\\" tooltip=\\\"save item\\\" aria-label=\\\"save item\\\">\\n\\t<$action-sendmessage $message=\\\"tm-save-tiddler\\\"/>\\n\\t{{$:/core/images/save-button}}\\n\\n\\\\end\\n\\\\define cancel-button()\\n<$button class=\\\"tc-btn-invisible\\\" tooltip=\\\"cancel editing\\\" aria-label=\\\"cancel editing\\\">\\n\\t<$action-sendmessage $message=\\\"tm-cancel-tiddler\\\"/>\\n\\t{{$:/core/images/cancel-button}}\\n\\n\\\\end\\n
\\n\\t<$set name=\\\"borderStyle\\\" value=<>>\\n\\t\\t
else[]] }}}>\\n\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/items/show-toolbar}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\n\\t\\t\\t
\\n\\t\\t\\t\\t<$keyboard key=\\\"((save-tiddler))\\\" message=\\\"tm-save-tiddler\\\">\\n\\t\\t\\t\\t\\t<$keyboard key=\\\"((cancel-edit-tiddler))\\\" message=\\\"tm-cancel-tiddler\\\">\\n\\t\\t\\t\\t\\t\\t<$edit-text field=\\\"draft.title\\\" tag=\\\"input\\\" placeholder=\\\" title\\\" focus=\\\"true\\\" tabindex=\\\"1\\\" cancelPopups=\\\"yes\\\"/>
\\n\\t\\t\\t\\t\\t\\t<$edit-text field=\\\"caption\\\" tag=\\\"input\\\" placeholder=\\\" caption\\\" tabindex=\\\"1\\\" cancelPopups=\\\"yes\\\"/>
\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/items/show-tags}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t{{||$:/core/ui/EditTemplate/tags}}\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<$edit field=\\\"text\\\" default=\\\"\\\" placeholder=\\\" text\\\" tabindex=\\\"1\\\" cancelPopups=\\\"yes\\\"/>\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t
\\n\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/items/show-toolbar}!match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\n\\t\\t
\\n\\t\\n
\"},\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemTemplate\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanItemTemplate\",\"text\":\"\\\\define get-item-tooltip(prefix) $prefix$ item $(currentTiddler)$\\n\\\\define title-styles() fill: $(foregroundColor)$;\\n\\\\define edit-button()\\n<$button class=\\\"tc-btn-invisible\\\" tooltip=<> aria-label=<>>\\n\\t<$action-sendmessage $message=\\\"tm-edit-tiddler\\\"/>\\n\\t{{$:/core/images/edit-button}}\\n\\n\\\\end\\n\\\\define close-button()\\n<$button class=\\\"tc-btn-invisible\\\" tooltip=<> aria-label=<>>\\n\\t<$action-sendmessage $message=\\\"tm-close-tiddler\\\"/>\\n\\t{{$:/core/images/close-button}}\\n\\n\\\\end\\n\\\\define delete-button()\\n<$button class=\\\"tc-btn-invisible\\\" tooltip=<> aria-label=<>>\\n\\t<$action-confirm $message=\\\"Do you wish to delete the card?\\\">\\n\\t\\t<$action-sendmessage $message=\\\"tm-delete-tiddler\\\"/>\\n\\t\\n\\t{{$:/core/images/delete-button}}\\n\\n\\\\end\\n\\\\define link-button()\\n<$navigator story=\\\"$:/StoryList\\\" history=\\\"$:/HistoryList\\\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\\n\\t<$button class=\\\"tc-btn-invisible\\\" tooltip=<> aria-label=<>>\\n\\t\\t<$action-navigate $to=<>/>\\n\\t\\t{{$:/core/images/link}}\\n\\t\\n\\n\\\\end\\n\\\\define get-kanban-history-info-state() $:/state/kanban-history-list/$(currentTiddler)$\\n\\\\define kanban-history-list()\\n<$set name=\\\"kanbanHistoryInfoState\\\" value=<>>\\n\\t<$reveal type=\\\"match\\\" stateTitle=<> text=\\\"\\\" default=\\\"\\\">\\n\\t\\t<$button class=\\\"tc-btn-invisible tc-kanban-history-button\\\" tooltip=\\\"kanban history\\\" aria-label=\\\"kanban history\\\" setTitle=<> setTo=\\\"yes\\\">\\n\\t\\t\\t{{$:/core/images/info-button}}\\n\\t\\t
\\n\\t\\n\\t<$reveal type=\\\"nomatch\\\" stateTitle=<> text=\\\"\\\" default=\\\"\\\">\\n\\t\\t<$button class=\\\"tc-btn-invisible tc-selected tc-kanban-history-button\\\" tooltip=\\\"kanban history\\\" aria-label=\\\"kanban history\\\" set=<> setTo=\\\"\\\">\\n\\t\\t\\t{{$:/core/images/info-button}}\\n\\t\\t
\\n\\t\\n\\t<$reveal type=\\\"nomatch\\\" text=\\\"\\\" default=\\\"\\\" stateTitle=<> class=\\\"tc-popup-handle\\\" animate=\\\"yes\\\" retain=\\\"yes\\\">\\n\\t\\t<$set name=\\\"historyList\\\" value={{!!kanban-history}}>\\n\\t\\t\\t<$list filter=\\\"[enlist]\\\" variable=\\\"currentHistory\\\">\\n\\t\\t\\t\\t<$set name=\\\"previousHistory\\\" value={{{ [enlistbefore] }}}>\\n\\t\\t\\t\\t\\t<$set name=\\\"timestamp\\\" value={{{ [splitbefore[,]removesuffix[,]] }}}>\\n\\t\\t\\t\\t\\t\\t<$set name=\\\"column\\\" value={{{ [removeprefixremoveprefix[,column: ]splitbefore[,]removesuffix[,]] }}}>\\n\\t\\t\\t\\t\\t\\t\\t<$set name=\\\"addedCreatedOrMoved\\\" value={{{ [removeprefixremoveprefix[,column: ]removeprefixremoveprefix[,]] }}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[match[added]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$text text={{{ [format:date[YYYY 0MM 0DD - 0hh:0mm:0ss]] }}}/> - <$text text=\\\"added to: \\\"/><$text text=<>/>
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[match[created]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$text text={{{ [format:date[YYYY 0MM 0DD - 0hh:0mm:0ss]] }}}/> - <$text text=\\\"created at: \\\"/><$text text=<>/>
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[match[moved]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$set name=\\\"fromColumnTimestamp\\\" value={{{ [splitbefore[,]removesuffix[,]] }}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$set name=\\\"fromColumn\\\" value={{{ [removeprefixremoveprefix[,column: ]splitbefore[,]removesuffix[,]] }}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$set name=\\\"timestampDiff\\\" value={{{ [subtract] }}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t<$text text={{{ [format:date[YYYY 0MM 0DD - 0hh:0mm:0ss]] }}}/> - <$text text=\\\"moved from: \\\"/><$text text=<>/><$text text=\\\" to: \\\"/><$text text=<>/>
\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\n\\t\\t\\n\\t\\n\\n\\\\end\\n
\\n\\t<$eventcatcher events=\\\"dblclick\\\" actions-dblclick=\\\"\\\"\\\"<$action-sendmessage $message=\\\"tm-edit-tiddler\\\" $param=<>/>\\\"\\\"\\\">\\n\\t\\t<$set name=\\\"borderStyle\\\" value=<>>\\n\\t\\t\\t
else[]] }}}>\\n\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/items/show-toolbar}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t<$set name=\\\"foregroundColor\\\" value={{!!color}}>\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[all[current]has[icon]] ~[[$:/config/DefaultTiddlerIcon]has[text]]\\\">\\n\\t\\t\\t\\t\\t\\t\\t>>\\n\\t\\t\\t\\t\\t\\t\\t\\t<$transclude tiddler={{!!icon}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$transclude tiddler={{$:/config/DefaultTiddlerIcon}}/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<$list filter=\\\"[{!!caption}!match[]]\\\" variable=\\\"ignore\\\" emptyMessage=\\\"\\\"\\\"\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/titles-as-links}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t<$navigator story=\\\"$:/StoryList\\\" history=\\\"$:/HistoryList\\\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t<$link><$transclude field=\\\"title\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/titles-as-links}!match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t<$transclude field=\\\"title\\\"/>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\\"\\\"\\\">\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/titles-as-links}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t<$navigator story=\\\"$:/StoryList\\\" history=\\\"$:/HistoryList\\\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\\n\\t\\t\\t\\t\\t\\t\\t\\t<$link><$transclude field=\\\"caption\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/titles-as-links}!match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t<$transclude field=\\\"caption\\\"/>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/items/show-tags}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[all[current]tags[]]\\\" storyview=\\\"pop\\\" template=\\\"$:/core/ui/TagTemplate\\\"/>\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/open-links-outside}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t<$navigator story=\\\"$:/StoryList\\\" history=\\\"$:/HistoryList\\\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\\n\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[get[text]!match[]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t\\t<$transclude mode=\\\"block\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/open-links-outside}!match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[get[text]!match[]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t\\t\\t\\t<$transclude mode=\\\"block\\\"/>\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t
\\n\\t\\t\\t\\t<$list filter=\\\"[{$:/config/kanban/items/show-toolbar}!match[yes]]\\\" variable=\\\"ignore\\\">\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t
\\n\\t\\t\\t\\t\\n\\t\\t\\t
\\n\\t\\t\\n\\t\\n
\"},\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanTemplate\":{\"title\":\"$:/plugins/BTC/Muuri-Kanban/ui/KanbanTemplate\",\"text\":\"\\\\define get-history-list() $:/HistoryList/Kanban/$(currentTiddler)$\\n\\\\whitespace trim\\n<$navigator story=<> history=<> openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\\n\\t
>>\\n\\t\\t
\\n\\t\\t\\t<$vars tv-muuri-story-list=<> tv-muuri-history-list=<>>\\n\\t\\t\\t\\t<$list filter=\\\"[list]\\\" storyview=\\\"muuri\\\" template={{$:/config/muuri/kanban/ColumnTemplate}} editTemplate={{$:/config/muuri/kanban/ColumnEditTemplate}} storyViewConfig=\\\"$:/config/kanban/\\\"/>\\n\\t\\t\\t\\n\\t\\t
\\n\\t
\\n\\t<$droppable actions=\\\"\\\"\\\"<$action-navigate $to=<>/>\\\"\\\"\\\">\\n\\t\\t
\\n\\t\\t\\t<$button class=\\\"tc-btn-invisible tc-board-column-action tc-add\\\" tooltip=\\\"new column\\\" aria-label=\\\"new column\\\">\\n\\t\\t\\t\\t<$action-sendmessage $message=\\\"tm-new-tiddler\\\"/>\\n\\t\\t\\t\\t{{$:/core/images/new-button}}\\n\\t\\t\\t\\n\\t\\t
\\n\\t\\n\"}}}","revision":"0","bag":"default"}] \ No newline at end of file diff --git a/templates/tw/$ _plugins_BTC_Muuri.json b/templates/tw/$ _plugins_BTC_Muuri.json new file mode 100644 index 00000000..66692a23 --- /dev/null +++ b/templates/tw/$ _plugins_BTC_Muuri.json @@ -0,0 +1 @@ +[{"title":"$:/plugins/BTC/Muuri","description":"A gridded storyview","author":"Simon Huber","version":"0.2.18","list":"readme license usage","muuri-tiddler-width":"1","plugin-type":"plugin","dependents":"","type":"application/json","text":"{\"tiddlers\":{\"$:/config/ShortcutInfo/columns-down\":{\"title\":\"$:/config/ShortcutInfo/columns-down\",\"text\":\"Cycle downwards through the amount of columns\"},\"$:/config/ShortcutInfo/columns-up\":{\"title\":\"$:/config/ShortcutInfo/columns-up\",\"text\":\"Cycle upwards through the amount of columns\"},\"$:/config/ShortcutInfo/dragging\":{\"title\":\"$:/config/ShortcutInfo/dragging\",\"text\":\"Enable or disable dragging\"},\"$:/config/ShortcutInfo/vertical-horizontal\":{\"title\":\"$:/config/ShortcutInfo/vertical-horizontal\",\"text\":\"Change from vertical to horizontal view and vice versa\"},\"$:/config/muuri/storyview/columns/max\":{\"title\":\"$:/config/muuri/storyview/columns/max\",\"text\":\"6\"},\"$:/config/muuri/columns/modifier\":{\"title\":\"$:/config/muuri/columns/modifier\",\"text\":\"ctrl\"},\"$:/config/muuri/storyview/drag-container\":{\"title\":\"$:/config/muuri/storyview/drag-container\",\"text\":\".tc-drag-container\"},\"$:/config/muuri/storyview/drag-deltatime\":{\"title\":\"$:/config/muuri/storyview/drag-deltatime\",\"text\":\"100\"},\"$:/config/muuri/storyview/drag-distance\":{\"title\":\"$:/config/muuri/storyview/drag-distance\",\"text\":\"10\"},\"$:/config/muuri/storyview/dragsort-action\":{\"title\":\"$:/config/muuri/storyview/dragsort-action\",\"text\":\"move\"},\"$:/config/muuri/storyview/dragsort-threshold\":{\"title\":\"$:/config/muuri/storyview/dragsort-threshold\",\"text\":\"40\"},\"$:/config/muuri/storyview/first-break-point\":{\"title\":\"$:/config/muuri/storyview/first-break-point\",\"text\":\"3\"},\"$:/config/muuri/storyview/NavigateToAnimation\":{\"title\":\"$:/config/muuri/storyview/NavigateToAnimation\",\"background\":\"foreground\",\"foreground\":\"tiddler-background\",\"text\":\"no\"},\"$:/config/muuri/storyview/second-break-point\":{\"title\":\"$:/config/muuri/storyview/second-break-point\",\"text\":\"5\"},\"$:/config/shortcuts/columns-down\":{\"title\":\"$:/config/shortcuts/columns-down\",\"text\":\"alt-shift-Left\"},\"$:/config/shortcuts/columns-up\":{\"title\":\"$:/config/shortcuts/columns-up\",\"text\":\"alt-shift-Right\"},\"$:/config/shortcuts/dragging\":{\"title\":\"$:/config/shortcuts/dragging\",\"text\":\"alt-shift-D\"},\"$:/config/shortcuts/vertical-horizontal\":{\"title\":\"$:/config/shortcuts/vertical-horizontal\",\"text\":\"alt-shift-a\"},\"$:/config/muuri/storyview/story-river/margin-top\":{\"title\":\"$:/config/muuri/storyview/story-river/margin-top\",\"text\":\"0.5em\"},\"$:/config/muuri/storyview/storylist\":{\"title\":\"$:/config/muuri/storyview/storylist\",\"text\":\"$:/StoryList\"},\"$:/config/muuri/tiddler/margin-bottom\":{\"title\":\"$:/config/muuri/tiddler/margin-bottom\",\"text\":\"0.5em\"},\"$:/config/muuri/tiddler/margin\":{\"title\":\"$:/config/muuri/tiddler/margin\",\"text\":\"0.5em\"},\"$:/plugins/BTC/Muuri/modules/storyviews/muuri.js\":{\"text\":\"/*\\\\\\ntitle: $:/plugins/BTC/Muuri/modules/storyviews/muuri.js\\ntype: application/javascript\\nmodule-type: storyview\\n\\nViews the story as a muuri grid\\n\\n\\\\*/\\n(function() {\\n\\n/*jslint node: true, browser: true */\\n/*global $tw: false */\\n\\\"use strict\\\";\\n\\nvar easing = \\\"cubic-bezier(0.215, 0.61, 0.355, 1)\\\";\\n\\nif(typeof window !== \\\"undefined\\\") {\\n\\tvar testElement = document.body;\\n\\tif(!(\\\"animate\\\" in testElement)) {\\n\\t\\trequire(\\\"$:/plugins/BTC/Muuri/library/web-animations-polyfill.js\\\");\\n\\t}\\n\\tif(!window.Muuri) {\\n\\t\\twindow.Muuri = require(\\\"$:/plugins/BTC/Muuri/library/muuri.min.js\\\");\\n\\t}\\n\\tif($tw.Grids === undefined) {\\n\\t\\t$tw.Grids = [];\\n\\t}\\n}\\n\\nvar MuuriStoryView = function(listWidget) {\\n\\tvar self = this;\\n\\tthis.listWidget = listWidget;\\n\\tthis.itemTitlesArray = [];\\n\\tthis.connectedGrids = [];\\n\\tthis.collectAttributes();\\n\\tthis.muuri = this.createMuuriGrid();\\n\\tif(this.muuri) {\\n\\t\\tthis.unleashMuuriGrid(listWidget);\\n\\t} else {\\n\\t\\tsetTimeout(function() {\\n\\t\\t\\tself.muuri = self.createMuuriGrid();\\n\\t\\t\\tif(self.muuri) {\\n\\t\\t\\t\\tself.unleashMuuriGrid(listWidget);\\n\\t\\t\\t}\\n\\t\\t},$tw.utils.getAnimationDuration());\\n\\t}\\n};\\n\\nMuuriStoryView.prototype.unleashMuuriGrid = function(listWidget) {\\n\\tvar self = this;\\n\\tthis.muuri.listWidget = listWidget;\\n\\tvar items = this.muuri.getItems();\\n\\tfor(var i=0; i -1 || \\n\\t\\t\\t\\t\\tself.lookupDragTarget(e.target)) || self.detectWithinCodemirror(e) || !self.detectGridWithinGrid(e.target))) {\\n\\t\\t\\t\\t\\treturn false;\\n\\t\\t\\t\\t} else if(e.deltaTime > self.dragDeltaTime && e.distance > self.dragDistance) {\\n\\t\\t\\t\\t\\treturn Muuri.ItemDrag.defaultStartPredicate(item,e);\\n\\t\\t\\t\\t}\\n\\t\\t\\t} else {\\n\\t\\t\\t\\treturn false;\\n\\t\\t\\t}\\n\\t\\t},\\n\\t\\tdragSort: function() {\\n\\t\\t\\tself.detectConnectedGrids();\\n\\t\\t\\treturn self.connectedGrids;\\n\\t\\t},\\n\\t\\tdragRelease: {\\n\\t\\t\\tduration: self.animationDuration,\\n\\t\\t\\teasing: easing,\\n\\t\\t\\tuseDragContainer: true\\n\\t\\t},\\n\\t\\tdragAutoScroll: {\\n\\t\\t\\ttargets: function(item) {\\n\\t\\t\\t\\treturn [\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\telement: self.getScrollContainer(item.getGrid().element),\\n\\t\\t\\t\\t\\t\\taxis: self.dragAutoScrollAxis && self.dragAutoScrollAxis === \\\"y\\\" ? Muuri.AutoScroller.AXIS_Y : \\n\\t\\t\\t\\t\\t\\t\\t\\tself.dragAutoScrollAxis && self.dragAutoScrollAxis === \\\"x\\\" ? Muuri.AutoScroller.AXIS_X : \\n\\t\\t\\t\\t\\t\\t\\t\\tself.dragAutoScrollAxis && self.dragAutoScrollAxis === \\\"xy\\\" ? Muuri.AutoScroller.AXIS_X | \\n\\t\\t\\t\\t\\t\\t\\t\\tMuuri.AutoScroller.AXIS_Y : self.horizontal ? Muuri.AutoScroller.AXIS_X : Muuri.AutoScroller.AXIS_Y\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t];\\n\\t\\t\\t},\\n\\t\\t\\thandle: Muuri.AutoScroller.pointerHandle(100),\\n\\t\\t\\tsortDuringScroll: false,\\n\\t\\t\\tsmoothStop: false,\\n\\t\\t\\tthreshold: 0\\n\\t\\t},\\n\\t\\ttranslate3d: true,\\n\\t\\tshowDuration: self.animationDuration,\\n\\t\\tlayoutDurattion: self.animationDuration,\\n\\t\\tlayoutOnResize: true,\\n\\t\\tlayoutOnInit: true,\\n\\t\\tcontainerClass: self.containerClass,\\n\\t\\titemClass: self.itemClass,\\n\\t\\titemDraggingClass: \\\"tc-muuri-dragging\\\",\\n\\t\\titemReleasingClass: \\\"tc-muuri-releasing\\\",\\n\\t\\titemPositioningClass: \\\"tc-muuri-positioning\\\"\\n\\t};\\n};\\n\\nMuuriStoryView.prototype.collectAttributes = function() {\\n\\tvar self = this;\\n\\tthis.animationDuration = $tw.utils.getAnimationDuration();\\n\\tthis.attachEvent = this.listWidget.document.attachEvent;\\n\\tthis.isIE = $tw.browser.isIE;\\n\\tthis.configNamespace = this.listWidget.getAttribute(\\\"storyViewConfig\\\",\\\"$:/config/muuri/storyview/\\\");\\n\\tthis.itemTemplate = this.listWidget.getAttribute(\\\"template\\\");\\n\\tthis.itemEditTemplate = this.listWidget.getAttribute(\\\"editTemplate\\\");\\n\\tthis.noDragTags = [\\\"input\\\",\\\"INPUT\\\",\\\"textarea\\\",\\\"TEXTAREA\\\",\\\"button\\\",\\\"BUTTON\\\",\\\"select\\\",\\\"SELECT\\\",\\\"a\\\",\\\"A\\\"];\\n\\tthis.containerClass = this.listWidget.wiki.getTiddlerText(this.configNamespace + \\\"container-class\\\") || \\\"tc-muuri-river\\\";\\n\\tvar itemClass = this.listWidget.wiki.getTiddlerText(this.configNamespace + \\\"item-class\\\") || \\\"tc-tiddler-frame\\\";\\n\\tif(itemClass === undefined || itemClass === \\\"\\\" || itemClass === \\\"*\\\") {\\n\\t\\tthis.itemSelector = \\\"*\\\";\\n\\t\\tthis.itemClass = \\\"tc-muuri-item\\\";\\n\\t} else {\\n\\t\\tvar classes = itemClass.split(\\\" \\\");\\n\\t\\tthis.itemSelector = \\\".\\\" + classes[0];\\n\\t\\tthis.itemClass = classes[0];\\n\\t}\\n\\tthis.dragSortAction = this.listWidget.wiki.getTiddlerText(this.configNamespace + \\\"dragsort-action\\\") || \\\"move\\\";\\n\\tthis.dragSortThreshold = parseInt(this.listWidget.wiki.getTiddlerText(this.configNamespace + \\\"dragsort-threshold\\\")) || 40;\\n\\tthis.dragSortHeuristicsInterval = parseInt(this.listWidget.wiki.getTiddlerText(this.configNamespace + \\\"dragsort-heuristics-interval\\\")) || 100;\\n\\tvar dragHandle = this.listWidget.wiki.getTiddlerText(this.configNamespace + \\\"drag-handle\\\");\\n\\tif(dragHandle === \\\"\\\" || dragHandle === undefined) {\\n\\t\\tdragHandle = null;\\n\\t}\\n\\tthis.dragHandle = dragHandle;\\n\\tvar dragContainerSelector = this.listWidget.wiki.getTiddlerText(this.configNamespace + \\\"drag-container\\\");\\n\\tif(dragContainerSelector) {\\n\\t\\tvar dragContainers = this.listWidget.document.documentElement.querySelectorAll(dragContainerSelector);\\n\\t\\tvar node = this.listWidget.parentDomNode;\\n\\t\\tfor(var i=0; i -1) {\\n\\t\\t\\treturn true;\\n\\t\\t}\\n\\t\\tnode = node.parentNode;\\n\\t\\tcount += 1;\\n\\t}\\n\\treturn false;\\n};\\n\\nMuuriStoryView.prototype.restoreIframeEvents = function() {\\n\\tif(this.iframePointerEventStyle !== undefined) {\\n\\t\\tvar iframes = this.listWidget.document.querySelectorAll(\\\"iframe\\\");\\n\\t\\tfor(var i=0; i-1,b=w.indexOf(\\\"trident\\\")>-1,D=w.indexOf(\\\"firefox\\\")>-1,A=navigator.vendor&&navigator.vendor.indexOf(\\\"Apple\\\")>-1&&navigator.userAgent&&-1==navigator.userAgent.indexOf(\\\"CriOS\\\")&&-1==navigator.userAgent.indexOf(\\\"FxiOS\\\"),T=w.indexOf(\\\"android\\\")>-1,k=/^(iPad|iPhone|iPod)/.test(window.navigator.platform)||/^Mac/.test(window.navigator.platform)&&window.navigator.maxTouchPoints>1,x=100,R=(()=>{let t=!1;try{const e=Object.defineProperty({},\\\"passive\\\",{get:function(){t=!0}});window.addEventListener(\\\"testPassive\\\",null,e),window.removeEventListener(\\\"testPassive\\\",null,e)}catch(t){}return t})(),E=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame).bind(window);class C{constructor(){this._queue=[],this._indices=new Map,this._callbacks=new Map}add(t,e){const{_queue:i,_indices:s,_callbacks:n}=this,r=s.get(t);void 0!==r&&(i[r]=void 0),i.push(t),n.set(t,e),s.set(t,i.length-1)}remove(t){const{_queue:e,_indices:i,_callbacks:s}=this,n=i.get(t);void 0!==n&&(e[n]=void 0,s.delete(t),i.delete(t))}flush(t,e){const{_queue:i,_callbacks:s,_indices:n}=this;let r,o=0;for(;o=this.maxValue:this.value<=0}computeCurrentScrollValue(){return this.element?this.value!=this.value?1&this.direction?yt(this.element):wt(this.element):Math.max(0,Math.min(this.value,this.maxValue)):0}computeNextScrollValue(){const t=this.speed*(this.deltaTime/1e3),e=4&this.direction?this.value+t:this.value-t;return Math.max(0,Math.min(e,this.maxValue))}computeSpeed(){if(!this.item||!this.element)return 0;const t=At(this.item).speed;return ut(t)?(ft.direction=this.direction,ft.threshold=this.threshold,ft.distance=this.distance,ft.value=this.value,ft.maxValue=this.maxValue,ft.duration=this.duration,ft.speed=this.speed,ft.deltaTime=this.deltaTime,ft.isEnding=this.isEnding,t(this.item,this.element,ft)):t}tick(t){return this.isActive||(this.isActive=!0,this.onStart()),this.deltaTime=t,this.value=this.computeCurrentScrollValue(),this.speed=this.computeSpeed(),this.value=this.computeNextScrollValue(),this.duration+=t,this.value}onStart(){if(!this.item||!this.element)return;const{onStart:t}=At(this.item);ut(t)&&t(this.item,this.element,this.direction)}onStop(){if(!this.item||!this.element)return;const{onStop:t}=At(this.item);ut(t)&&t(this.item,this.element,this.direction);const e=this.item._drag;e&&e.sort()}}class Xt{constructor(){this._isDestroyed=!1,this._isTicking=!1,this._tickTime=0,this._tickDeltaTime=0,this._items=[],this._actions=[],this._requests={1:new Map,2:new Map},this._requestOverlapCheck=new Map,this._dragPositions=new Map,this._dragDirections=new Map,this._overlapCheckInterval=150,this._requestPool=new Et((()=>new Lt),(t=>t.reset())),this._actionPool=new Et((()=>new Ct),(t=>t.reset())),this._readTick=this._readTick.bind(this),this._writeTick=this._writeTick.bind(this)}isDestroyed(){return this._isDestroyed}addItem(t,e,i){if(this._isDestroyed)return;-1===this._items.indexOf(t)&&(this._items.push(t),this._requestOverlapCheck.set(t.id,this._tickTime),this._dragDirections.set(t.id,[0,0]),this._dragPositions.set(t.id,[e,i]),this._isTicking||this._startTicking())}updateItem(t,e,i){if(this._isDestroyed)return;const s=this._dragPositions.get(t.id),n=this._dragDirections.get(t.id);if(!s||!n)return;const r=s[0],o=s[1];n[0]=e>r?5:eo?6:i=m&&E>0&&(l>m||X>f)){let t=0,e=0;const i=xt(s,L.width),n=Rt(i,r,_.width,L.width);5===d?(t=L.right+n-_.right,t<=i&&yt(R)0&&(e=9)),e&&(u=R,m=l,g=i,f=X,p=e,v=t,y=E)}if(h&&l>=S&&C>0&&(l>S||X>D)){let t=0,e=0;const i=xt(s,L.height),n=Rt(i,r,_.height,L.height);6===c?(t=L.bottom+n-_.bottom,t<=i&&wt(R)0&&(e=10)),e&&(w=R,S=l,b=i,D=X,A=e,T=t,k=C)}}}e&&(u&&p?this._requestItemScroll(t,1,u,p,g,v,y):this._cancelItemScroll(t,1)),i&&(w&&A?this._requestItemScroll(t,2,w,A,b,T,k):this._cancelItemScroll(t,2))}_updateScrollRequest(t){const e=t.item,{threshold:i,safeZone:s,smoothStop:n,handle:r,targets:o}=At(e),h=ut(o)?o(e):o,a=h&&h.length||0,l=this._getItemHandleRect(e,r,mt);let d=null,c=0;for(;c_)break;const g=r?yt(n):wt(n);if(d=4&t.direction?g>=o:g<=0,d)break;return t.maxValue=o,t.threshold=_,t.distance=m,t.isEnding=!1,!0}return!0===n&&t.speed>0?(null===d&&(d=t.hasReachedEnd()),t.isEnding=!d):t.isEnding=!1,t.isEnding}_updateRequests(){const t=this._items,e=this._requests[1],i=this._requests[2];let s=0;for(;s0&&this._tickTime-r>this._overlapCheckInterval,h=!0;const a=e.get(n.id);a&&a.isActive&&(h=!this._updateScrollRequest(a),h&&(o=!0,this._cancelItemScroll(n,1)));let l=!0;const d=i.get(n.id);d&&d.isActive&&(l=!this._updateScrollRequest(d),l&&(o=!0,this._cancelItemScroll(n,2))),o&&(this._requestOverlapCheck.set(n.id,0),this._checkItemOverlap(n,h,l))}}_requestAction(t,e){const i=this._actions,s=1===e;let n=null,r=0;for(;r0){const e=r.threshold-Math.max(0,r.distance);o=t/r.threshold*e}else o=t;const h=r.speed;if(h===o)return o;let a=o;return hs?s:e<0?Math.max(s+e+1,0):e}function ne(t,e,i){if(t.length<2)return;const s=se(t,e),n=se(t,i);s!==n&&t.splice(n,0,t.splice(s,1)[0])}function re(t,e,i){if(t.length<2)return;const s=se(t,e),n=se(t,i);if(s!==n){const e=t[s];t[s]=t[n],t[n]=e}}const oe=qt(document.documentElement.style,\\\"transform\\\")||\\\"transform\\\",he=/([A-Z])/g,ae=/^(webkit-|moz-|ms-|o-)/,le=/^(-m-s-)/;function de(t){let e=t.replace(he,\\\"-$1\\\").toLowerCase();return e=e.replace(ae,\\\"-$1\\\"),e=e.replace(le,\\\"-ms-\\\"),e}const ce=de(oe);function _e(t){if(\\\"static\\\"!==ct(t,\\\"position\\\"))return!0;const e=ct(t,\\\"display\\\");if(\\\"inline\\\"===e||\\\"none\\\"===e)return!1;const i=ct(t,ce);if(i&&\\\"none\\\"!==i)return!0;const s=ct(t,\\\"perspective\\\");if(s&&\\\"none\\\"!==s)return!0;const n=ct(t,\\\"content-visibility\\\");if(n&&(\\\"auto\\\"===n||\\\"hidden\\\"===n))return!0;const r=ct(t,\\\"contain\\\");if(r&&(\\\"strict\\\"===r||\\\"content\\\"===r||r.indexOf(\\\"paint\\\")>-1||r.indexOf(\\\"layout\\\")>-1))return!0;if(!A){const e=ct(t,\\\"filter\\\");if(e&&\\\"none\\\"!==e)return!0;const i=ct(t,\\\"will-change\\\");if(i&&(i.indexOf(\\\"transform\\\")>-1||i.indexOf(\\\"perspective\\\")>-1))return!0}return!1}function ue(t){let e=t||document;for(;e&&e!==document&&!_e(t);)e=e.parentElement||document;return e}const me={left:0,top:0},ge={left:0,top:0},fe={left:0,top:0};function pe(t,e={left:0,top:0}){if(e.left=0,e.top=0,t===document)return e;if(e.left=window.pageXOffset||0,e.top=window.pageYOffset||0,\\\"self\\\"in t&&t.self===window.self)return e;const{left:i,top:s}=t.getBoundingClientRect();return e.left+=i,e.top+=s,e.left+=_t(t,\\\"border-left-width\\\"),e.top+=_t(t,\\\"border-top-width\\\"),e}function ve(t,e,i=!1){return fe.left=0,fe.top=0,t===e||i&&(t=ue(t))===(e=ue(e))||(pe(t,me),pe(e,ge),fe.left=ge.left-me.left,fe.top=ge.top-me.top),fe}function ye(t,e){e&&t.classList.remove(e)}const we=!R||{capture:!0,passive:!0},Se={left:0,top:0,width:0,height:0},be={left:0,top:0,width:0,height:0};class De{constructor(t){const e=t.element,i=t.getGrid(),{settings:s}=i;this.item=t,this._originGridId=i.id,this._isMigrated=!1,this._isActive=!1,this._isStarted=!1,this._startPredicateState=0,this._startPredicateData=null,this._isSortNeeded=!1,this._sortTimer=void 0,this._blockedSortIndex=null,this._sortX1=0,this._sortX2=0,this._sortY1=0,this._sortY2=0,this._container=null,this._containingBlock=null,this._dragStartEvent=null,this._dragEndEvent=null,this._dragMoveEvent=null,this._dragPrevMoveEvent=null,this._scrollEvent=null,this._translateX=0,this._translateY=0,this._clientX=0,this._clientY=0,this._scrollDiffX=0,this._scrollDiffY=0,this._moveDiffX=0,this._moveDiffY=0,this._containerDiffX=0,this._containerDiffY=0,this._preStartCheck=this._preStartCheck.bind(this),this._preEndCheck=this._preEndCheck.bind(this),this._onScroll=this._onScroll.bind(this),this._prepareStart=this._prepareStart.bind(this),this._applyStart=this._applyStart.bind(this),this._prepareMove=this._prepareMove.bind(this),this._applyMove=this._applyMove.bind(this),this._prepareScroll=this._prepareScroll.bind(this),this._applyScroll=this._applyScroll.bind(this),this._handleSort=this._handleSort.bind(this),this._handleSortDelayed=this._handleSortDelayed.bind(this),this.dragger=new te(\\\"string\\\"==typeof s.dragHandle&&e.querySelector(s.dragHandle)||e,s.dragCssProps,s.dragEventListenerOptions),this.dragger.on(\\\"start\\\",this._preStartCheck),this.dragger.on(\\\"move\\\",this._preStartCheck),this.dragger.on(\\\"cancel\\\",this._preEndCheck),this.dragger.on(\\\"end\\\",this._preEndCheck)}isActive(){return this._isActive}getOriginGrid(){return t.get(this._originGridId)||null}stop(){if(!this.item||!this.isActive())return;if(this._isMigrated)return void this._finishMigration();const{item:t}=this;if(De.autoScroll.removeItem(t),K(t.id),tt(t.id),et(t.id),this._cancelSort(),this._isStarted){const e=t.element,i=t.getGrid(),{itemDraggingClass:s}=i.settings;this._unbindScrollHandler(),e.parentNode!==i.element&&(i.element.appendChild(e),t._setTranslate(this._translateX-t._containerDiffX,this._translateY-t._containerDiffY),t._containerDiffX=this._containerDiffX=0,t._containerDiffY=this._containerDiffY=0,s&&e.clientWidth),ye(e,s)}this._reset()}sort(t=!1){this.item&&this.isActive()&&this.item.isActive()&&this._dragMoveEvent&&(t?this._handleSort():it(this.item.id,this._handleSort))}destroy(){this.item&&(this._isMigrated=!1,this.stop(),this.dragger.destroy(),this.item=null)}_startPredicate(t,e){const{dragStartPredicate:i}=t.getGrid().settings;return ut(i)?i(t,e):De.defaultStartPredicate(t,e)}_reset(){this._isActive=!1,this._isStarted=!1,this._container=null,this._containingBlock=null,this._dragStartEvent=null,this._dragEndEvent=null,this._dragMoveEvent=null,this._dragPrevMoveEvent=null,this._scrollEvent=null,this._translateX=0,this._translateY=0,this._clientX=0,this._clientY=0,this._scrollDiffX=0,this._scrollDiffY=0,this._moveDiffX=0,this._moveDiffY=0,this._containerDiffX=0,this._containerDiffY=0}_bindScrollHandler(){window.addEventListener(\\\"scroll\\\",this._onScroll,we)}_unbindScrollHandler(){window.removeEventListener(\\\"scroll\\\",this._onScroll,we)}_resetHeuristics(t,e){this._blockedSortIndex=null,this._sortX1=this._sortX2=t,this._sortY1=this._sortY2=e}_checkHeuristics(t,e){if(!this.item)return!1;const{settings:i}=this.item.getGrid(),{minDragDistance:s,minBounceBackAngle:n}=i.dragSortHeuristics;if(s<=0)return this._blockedSortIndex=null,!0;const r=t-this._sortX2,o=e-this._sortY2,h=s>3&&n>0;if(h||(this._blockedSortIndex=null),Math.abs(r)>s||Math.abs(o)>s){if(h){const t=Math.atan2(r,o),e=Math.atan2(this._sortX2-this._sortX1,this._sortY2-this._sortY1),i=Math.atan2(Math.sin(t-e),Math.cos(t-e));Math.abs(i)>n&&(this._blockedSortIndex=null)}return this._sortX1=this._sortX2,this._sortY1=this._sortY2,this._sortX2=t,this._sortY2=e,!0}return!1}_resetDefaultStartPredicate(){const{_startPredicateData:t}=this;t&&(t.delayTimer&&(t.delayTimer=void window.clearTimeout(t.delayTimer)),this._startPredicateData=null)}_handleSort(){if(!this.item||!this.isActive())return;const{item:t}=this,{dragSort:e,dragSortHeuristics:i,dragAutoScroll:s}=t.getGrid().settings;if(!e||!s.sortDuringScroll&&De.autoScroll.isItemScrolling(t))return this._sortX1=this._sortX2=this._translateX-t._containerDiffX,this._sortY1=this._sortY2=this._translateY-t._containerDiffY,this._isSortNeeded=!0,void(void 0!==this._sortTimer&&(this._sortTimer=void window.clearTimeout(this._sortTimer)));const n=this._checkHeuristics(this._translateX-t._containerDiffX,this._translateY-t._containerDiffY);if(!this._isSortNeeded&&!n)return;const r=i.sortInterval;r<=0||this._isSortNeeded?(this._isSortNeeded=!1,void 0!==this._sortTimer&&(this._sortTimer=void window.clearTimeout(this._sortTimer)),this._checkOverlap()):void 0===this._sortTimer&&(this._sortTimer=window.setTimeout(this._handleSortDelayed,r))}_handleSortDelayed(){this.item&&(this._isSortNeeded=!0,this._sortTimer=void 0,it(this.item.id,this._handleSort))}_cancelSort(){var t;this.item&&(this._isSortNeeded=!1,void 0!==this._sortTimer&&(this._sortTimer=void window.clearTimeout(this._sortTimer)),t=this.item.id,Z.remove(1,W+t))}_finishSort(){if(!this.item)return;const{dragSort:t}=this.item.getGrid().settings,e=t&&(this._isSortNeeded||void 0!==this._sortTimer);this._cancelSort(),e&&this._checkOverlap(),t&&this._checkOverlap(!0)}_checkOverlap(t=!1){if(!this.item||!this.isActive())return;const{item:e}=this,n=e.element,r=e.getGrid(),{settings:o}=r;let h=null;if(ut(o.dragSortPredicate)?h=o.dragSortPredicate(e,t?this._dragEndEvent:this._dragMoveEvent):t||(h=De.defaultSortPredicate(e,o.dragSortPredicate)),!h||\\\"number\\\"!=typeof h.index)return;const a=h.action===i?i:s,l=h.grid||r,d=r!==l,c=r.items.indexOf(e),p=se(l.items,h.index,d&&a===s?1:0);if(d||p!==this._blockedSortIndex)if(d){this._blockedSortIndex=null;const t=l.items[p],s=l.settings;if(r._hasListeners(m)&&r._emit(m,{item:e,fromGrid:r,fromIndex:c,toGrid:l,toIndex:p}),l._hasListeners(f)&&l._emit(f,{item:e,fromGrid:r,fromIndex:c,toGrid:l,toIndex:p}),!this.isActive()||r.isDestroyed()||l.isDestroyed())return;e._gridId=l.id,this._isMigrated=e._gridId!==this._originGridId,r.items.splice(c,1),ie(l.items,e,p),e._sortData=null;const h=this._container,d=this._containingBlock,_=s.dragContainer||l.element,v=ue(_);let y=ve(v,ue(l.element));e._containerDiffX=this._containerDiffX=y.left,e._containerDiffY=this._containerDiffY=y.top,_!==h&&(y=ve(d,v),this._container=_,this._containingBlock=v,this._translateX-=y.left,this._translateY-=y.top,_.appendChild(n),e._setTranslate(this._translateX,this._translateY)),o.itemClass!==s.itemClass&&(ye(n,o.itemClass),ee(n,s.itemClass)),o.itemDraggingClass!==s.itemDraggingClass&&(ye(n,o.itemDraggingClass),ee(n,s.itemDraggingClass)),e.isActive()?(o.itemVisibleClass!==s.itemVisibleClass&&(ye(n,o.itemVisibleClass),ee(n,s.itemVisibleClass)),e._visibility.setStyles(s.visibleStyles)):(o.itemHiddenClass!==s.itemHiddenClass&&(ye(n,o.itemHiddenClass),ee(n,s.itemHiddenClass)),e._visibility.setStyles(s.hiddenStyles)),e._dragPlaceholder.updateClassName(s.itemPlaceholderClass),e._updateDimensions(),r._hasListeners(u)&&r._emit(u,{item:e,fromGrid:r,fromIndex:c,toGrid:l,toIndex:p}),l._hasListeners(g)&&l._emit(g,{item:e,fromGrid:r,fromIndex:c,toGrid:l,toIndex:p}),a===i&&t&&t.isActive()&&l.items.indexOf(t)>-1&&l.send(t,r,c,{appendTo:h||document.body,layoutSender:!1,layoutReceiver:!1}),r.layout(),l.layout()}else c!==p&&(this._blockedSortIndex=c,(a===i?re:ne)(r.items,c,p),r._hasListeners(_)&&r._emit(_,{item:e,fromIndex:c,toIndex:p,action:a}),r.layout())}_finishMigration(){if(!this.item)return;const{item:t}=this,{dragEnabled:e}=t.getGrid().settings;this.destroy(),t._drag=e?new De(t):null,t._dragRelease.start()}_preStartCheck(t){if(0===this._startPredicateState&&(this._startPredicateState=1),1===this._startPredicateState){const e=this._startPredicate(this.item,t);!0===e?(this._startPredicateState=2,this._onStart(t)):!1===e&&(this._startPredicateState=0,this.dragger.reset())}else 2===this._startPredicateState&&this.isActive()&&this._onMove(t)}_preEndCheck(t){const e=2===this._startPredicateState;this._startPredicate(this.item,t),this._resetDefaultStartPredicate(),this._startPredicateState=0,e&&this.isActive()&&(this._isStarted?this._onEnd(t):this.stop())}_onStart(t){var e,i,s;this.item&&this.item.isActive()&&(this._isActive=!0,this._dragStartEvent=t,De.autoScroll.addItem(this.item,this._translateX,this._translateY),e=this.item.id,i=this._prepareStart,s=this._applyStart,Z.add(0,M+e,i),Z.add(2,P+e,s))}_prepareStart(){if(!this.item||!this.isActive()||!this.item.isActive())return;const{item:t}=this,e=t.element,i=t.getGrid(),s=i.settings.dragContainer||i.element,n=ue(s),r=t._getTranslate(),o=e.getBoundingClientRect();if(this._container=s,this._containingBlock=n,this._clientX=o.left,this._clientY=o.top,this._translateX=r.x,this._translateY=r.y,this._scrollDiffX=this._scrollDiffY=0,this._moveDiffX=this._moveDiffY=0,this._containerDiffX=this._containerDiffY=0,s!==i.element){const{left:t,top:e}=ve(n,i.element);this._containerDiffX=t,this._containerDiffY=e}this._resetHeuristics(this._translateX-t._containerDiffX,this._translateY-t._containerDiffY)}_applyStart(){if(!this.item||!this.isActive())return;const{item:t}=this;if(!t.isActive())return;t.isPositioning()&&t._layout.stop(!0,this._translateX,this._translateY);const e=t._migrate;e.isActive()&&(this._translateX-=t._containerDiffX,this._translateY-=t._containerDiffY,e.stop(!0,this._translateX,this._translateY));const i=t._dragRelease;t.isReleasing()&&i.reset();const s=t.getGrid(),n=t.element;s.settings.dragPlaceholder.enabled&&t._dragPlaceholder.create(),this._isStarted=!0,this._dragStartEvent&&s._emit(\\\"dragInit\\\",t,this._dragStartEvent),n.parentNode!==this._container&&(this._translateX+=this._containerDiffX,this._translateY+=this._containerDiffY,this._container.appendChild(n),t._setTranslate(this._translateX,this._translateY)),t._containerDiffX=this._containerDiffX,t._containerDiffY=this._containerDiffY,ee(n,s.settings.itemDraggingClass),this._bindScrollHandler(),this._dragStartEvent&&s._emit(\\\"dragStart\\\",t,this._dragStartEvent)}_onMove(t){if(!this.item)return;if(!this.item.isActive())return void this.stop();const e=this.item.id;this._dragMoveEvent=t,function(t,e,i){Z.add(0,O+t,e),Z.add(2,q+t,i)}(e,this._prepareMove,this._applyMove),it(e,this._handleSort)}_prepareMove(){if(!this.item||!this.isActive()||!this.item.isActive())return;const{dragAxis:t}=this.item.getGrid().settings,e=this._dragMoveEvent,i=this._dragPrevMoveEvent||this._dragStartEvent||e;if(\\\"y\\\"!==t){const t=e.clientX-i.clientX;this._translateX=this._translateX-this._moveDiffX+t,this._clientX=this._clientX-this._moveDiffX+t,this._moveDiffX=t}if(\\\"x\\\"!==t){const t=e.clientY-i.clientY;this._translateY=this._translateY-this._moveDiffY+t,this._clientY=this._clientY-this._moveDiffY+t,this._moveDiffY=t}this._dragPrevMoveEvent=e}_applyMove(){if(!this.item||!this.isActive()||!this.item.isActive())return;const{item:t}=this,e=t.getGrid();this._moveDiffX=this._moveDiffY=0,t._setTranslate(this._translateX,this._translateY),this._dragMoveEvent&&e._emit(\\\"dragMove\\\",t,this._dragMoveEvent),De.autoScroll.updateItem(t,this._translateX,this._translateY)}_onScroll(t){if(!this.item)return;if(!this.item.isActive())return void this.stop();const e=this.item.id;this._scrollEvent=t,function(t,e,i){Z.add(0,H+t,e),Z.add(2,G+t,i)}(e,this._prepareScroll,this._applyScroll),it(e,this._handleSort)}_prepareScroll(){if(!this.item||!this.isActive()||!this.item.isActive())return;const{item:t}=this,e=t.getGrid();if(this._container!==e.element){const{left:i,top:s}=ve(this._containingBlock,e.element);t._containerDiffX=this._containerDiffX=i,t._containerDiffY=this._containerDiffY=s}const{dragAxis:i}=e.settings,{left:s,top:n}=t.element.getBoundingClientRect();if(\\\"y\\\"!==i){const t=this._clientX-this._moveDiffX-this._scrollDiffX-s;this._translateX=this._translateX-this._scrollDiffX+t,this._scrollDiffX=t}if(\\\"x\\\"!==i){const t=this._clientY-this._moveDiffY-this._scrollDiffY-n;this._translateY=this._translateY-this._scrollDiffY+t,this._scrollDiffY=t}}_applyScroll(){if(!this.item||!this.isActive()||!this.item.isActive())return;const{item:t}=this,e=t.getGrid();this._scrollDiffX=this._scrollDiffY=0,t._setTranslate(this._translateX,this._translateY),this._scrollEvent&&e._emit(\\\"dragScroll\\\",t,this._scrollEvent)}_onEnd(t){if(!this.item)return;const{item:e}=this;if(!e.isActive())return void this.stop();const i=e.getGrid();this._dragEndEvent=t,K(e.id),tt(e.id),et(e.id),this._finishSort(),this._unbindScrollHandler(),this._reset(),ye(e.element,i.settings.itemDraggingClass),De.autoScroll.removeItem(e),i._emit(\\\"dragEnd\\\",e,t),this._isMigrated?this._finishMigration():e._dragRelease.start()}}De.autoScroll=new Xt,De.defaultStartPredicate=function(t,e,i){if(e.isFinal)return;const s=t._drag;if(e.isFirst&&e.srcEvent.button)return s._resetDefaultStartPredicate(),!1;if(!k&&e.isFirst&&!0===e.srcEvent.isTrusted&&!1===e.srcEvent.defaultPrevented&&!1===e.srcEvent.cancelable)return s._resetDefaultStartPredicate(),!1;let n=s._startPredicateData;if(!n){n=s._startPredicateData={distance:0,delay:0};const{dragStartPredicate:e}=t.getGrid().settings,r=i||e;\\\"object\\\"==typeof r&&(n.distance=Math.max(r.distance||0,0),n.delay=Math.max(r.delay||0,0))}return n.delay?(n.event=e,void(n.delayTimer||(n.delayTimer=window.setTimeout((function(){s._startPredicateData===n&&(s.item?n&&(n.delay=0,1===s._startPredicateState&&n.event&&n.event.distance>=n.distance&&(s._resetDefaultStartPredicate(),s._startPredicateState=2,s._onStart(n.event))):s._resetDefaultStartPredicate())}),n.delay)))):!(e.distance=g||m>=f||(h.left=u,h.top=m,h.width=g-u,h.height=f-m,c=ot(o,h),c>e&&c>d&&(d=c,r=a))}return r}(t,h);if(!a)return null;const l=t.getGrid()!==a,d=Se,c=be;d.width=t.width,d.height=t.height,l?(a._updateBorders(!0,!1,!0,!1),d.left=n._clientX-(a._rect.left+a._borderLeft),d.top=n._clientY-(a._rect.top+a._borderTop)):(d.left=n._translateX-t._containerDiffX+t.marginLeft,d.top=n._translateY-t._containerDiffY+t.marginTop);let _=0,u=-1,m=!1;for(let e=0;e_&&(u=e,_=s)}return l&&_=h?{grid:a,index:u,action:l?o:r}:null};const Ae=/^(webkit|moz|ms|o|Webkit|Moz|MS|O)(?=[A-Z])/,Te=new Map;function ke(t){let e=Te.get(t);return e||(e=t.replace(Ae,\\\"\\\"),e!==t&&(e=e[0].toLowerCase()+e.slice(1)),Te.set(t,e),e)}function xe(t,e){let i;for(i in e)t.style[i]=e[i]||\\\"\\\"}const Re=ut(Element.prototype.animate),Ee=!!((Ce=Element.prototype.animate)&&ut(window.Symbol)&&ut(window.Symbol.toString)&&window.Symbol(Ce).toString().indexOf(\\\"[native code]\\\")>-1);var Ce;function Le(t,e){const i={};let s;for(s in t)i[e?s:ke(s)]=t[s];return i}class Xe{constructor(t){this.element=t||null,this.animation=null,this._finishCallback=null,this._onFinish=this._onFinish.bind(this)}start(t,e,i){if(!this.element)return;const{element:s}=this,{duration:n,easing:r,onFinish:o}=i||{};if(!Re)return xe(s,e),this._finishCallback=ut(o)?o:null,void this._onFinish();this.animation&&this.animation.cancel(),this.animation=s.animate([Le(t,Ee),Le(e,Ee)],{duration:n||300,easing:r||\\\"ease\\\"}),this._finishCallback=ut(o)?o:null,this.animation.onfinish=this._onFinish,xe(s,e)}stop(){this.element&&this.animation&&(this.animation.cancel(),this.animation=this._finishCallback=null)}isAnimating(){return!!this.animation}destroy(){this.element&&(this.stop(),this.element=null)}_onFinish(){const{_finishCallback:t}=this;this.animation=this._finishCallback=null,t&&t()}}function Ye(t,e,i=!1){return i?\\\"translate3d(\\\"+t+\\\"px, \\\"+e+\\\"px, 0px)\\\":\\\"translateX(\\\"+t+\\\"px) translateY(\\\"+e+\\\"px)\\\"}const Ie={x:0,y:0},Me=/^matrix3d/,Pe=/([^,]*,){4}/,Oe=/([^,]*,){12}/,qe=/[^,]*,/;function He(t){Ie.x=0,Ie.y=0;const e=ct(t,ce);if(!e||\\\"none\\\"===e)return Ie;const i=Me.test(e),s=e.replace(i?Oe:Pe,\\\"\\\"),n=s.replace(qe,\\\"\\\");return Ie.x=parseFloat(s)||0,Ie.y=parseFloat(n)||0,Ie}const Ge={},We={};class Be{constructor(t){this.item=t,this.element=null,this.animator=new Xe,this.left=0,this.top=0,this._className=\\\"\\\",this._didMigrate=!1,this._resetAfterLayout=!1,this._transX=0,this._transY=0,this._nextTransX=0,this._nextTransY=0,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this),this._updateDimensions=this._updateDimensions.bind(this),this._onLayoutStart=this._onLayoutStart.bind(this),this._onLayoutEnd=this._onLayoutEnd.bind(this),this._onReleaseEnd=this._onReleaseEnd.bind(this),this._onMigrate=this._onMigrate.bind(this),this._onHide=this._onHide.bind(this)}create(){if(!this.item)return;if(this.element)return void(this._resetAfterLayout=!1);const{item:t}=this,e=t.getGrid(),{settings:i}=e;let s;this.left=t.left,this.top=t.top,s=ut(i.dragPlaceholder.createElement)?i.dragPlaceholder.createElement(t):document.createElement(\\\"div\\\"),this.element=s,this.animator.element=s,this._className=i.itemPlaceholderClass||\\\"\\\",this._className&&ee(s,this._className),xe(s,{position:\\\"absolute\\\",left:\\\"0px\\\",top:\\\"0px\\\",width:t.width+\\\"px\\\",height:t.height+\\\"px\\\"}),s.style[oe]=Ye(t.left+t.marginLeft,t.top+t.marginTop,i.translate3d),e.on(r,this._onLayoutStart),e.on(p,this._onReleaseEnd),e.on(m,this._onMigrate),e.on(l,this._onHide),ut(i.dragPlaceholder.onCreate)&&i.dragPlaceholder.onCreate(t,s),e.element.appendChild(s)}reset(){var t;if(!this.item||!this.element)return;const{item:e,element:i,animator:s}=this,n=e.getGrid();var o;this._resetAfterLayout=!1,st(e.id),o=e.id,Z.remove(2,z+o),s.stop(),s.element=null,n.off(p,this._onReleaseEnd),n.off(r,this._onLayoutStart),n.off(m,this._onMigrate),n.off(l,this._onHide),this._className&&(ye(i,this._className),this._className=\\\"\\\"),null===(t=i.parentNode)||void 0===t||t.removeChild(i),this.element=null;const{onRemove:h}=n.settings.dragPlaceholder;ut(h)&&h(e,i)}isActive(){return!!this.element}updateDimensions(){var t,e;this.item&&this.isActive()&&(t=this.item.id,e=this._updateDimensions,Z.add(2,z+t,e))}updateClassName(t){this.element&&(ye(this.element,this._className),this._className=t,ee(this.element,t))}destroy(){this.reset(),this.animator&&this.animator.destroy(),this.item=null}_updateDimensions(){this.item&&this.element&&xe(this.element,{width:this.item.width+\\\"px\\\",height:this.item.height+\\\"px\\\"})}_onLayoutStart(t,e){if(!this.item||!this.element)return;const{item:i}=this;if(-1===t.indexOf(i))return void this.reset();const s=i.left,n=i.top,r=this.left,o=this.top;if(this.left=s,this.top=n,!e&&!this._didMigrate&&r===s&&o===n)return;const h=s+i.marginLeft,a=n+i.marginTop,l=i.getGrid();if(!(!e&&l.settings.layoutDuration>0)||this._didMigrate)return st(i.id),this.element.style[oe]=Ye(h,a,l.settings.translate3d),this.animator.stop(),void(this._didMigrate&&(l.element.appendChild(this.element),this._didMigrate=!1));var d,c,_;this.animator.animation&&(this.animator.animation.onfinish=null),this._nextTransX=h,this._nextTransY=a,d=i.id,c=this._setupAnimation,_=this._startAnimation,Z.add(0,V+d,c),Z.add(2,F+d,_)}_setupAnimation(){if(!this.element)return;const{x:t,y:e}=He(this.element);this._transX=t,this._transY=e}_startAnimation(){if(!this.item||!this.element)return;const{animator:t}=this,e=this._transX,i=this._transY,s=this._nextTransX,n=this._nextTransY,{layoutDuration:r,layoutEasing:o,translate3d:h}=this.item.getGrid().settings;e!==s||i!==n?(Ge[oe]=Ye(e,i,h),We[oe]=Ye(s,n,h),t.start(Ge,We,{duration:r,easing:o,onFinish:this._onLayoutEnd})):t.isAnimating()&&(this.element.style[oe]=Ye(s,n,h),t.stop())}_onLayoutEnd(){this._resetAfterLayout&&this.reset()}_onReleaseEnd(t){if(this.item&&this.item.id===t.id){if(!this.animator.isAnimating())return void this.reset();this._resetAfterLayout=!0}}_onMigrate(t){if(!this.item||this.item!==t.item)return;const e=this.item.getGrid();e.off(p,this._onReleaseEnd),e.off(r,this._onLayoutStart),e.off(m,this._onMigrate),e.off(l,this._onHide);const i=t.toGrid;i.on(p,this._onReleaseEnd),i.on(r,this._onLayoutStart),i.on(m,this._onMigrate),i.on(l,this._onHide),this._didMigrate=!0}_onHide(t){this.item&&t.indexOf(this.item)>-1&&this.reset()}}const Ne=!R||{capture:!0,passive:!0};class Ve{constructor(t){this.item=t,this._isActive=!1,this._isPositioning=!1,this._onScroll=this._onScroll.bind(this)}isActive(){return this._isActive}isPositioning(){return this._isPositioning}start(){if(!this.item||this.isActive())return;const{item:t}=this,e=t.getGrid(),{settings:i}=e;this._isActive=!0,ee(t.element,i.itemReleasingClass),i.dragRelease.useDragContainer?t.element.parentNode!==e.element&&window.addEventListener(\\\"scroll\\\",this._onScroll,Ne):this._placeToGrid(),e._emit(\\\"dragReleaseStart\\\",t),e._nextLayoutData||t._layout.start(!1)}stop(t=!1,e,i){if(!this.item||!this.isActive())return;const{item:s}=this;t||void 0!==e&&void 0!==i||(e=s.left,i=s.top);const n=this._placeToGrid(e,i);this.reset(n),t||s.getGrid()._emit(p,s)}reset(t=!1){if(!this.item)return;const{item:e}=this,{itemReleasingClass:i}=e.getGrid().settings;var s;this._isActive=!1,this._isPositioning=!1,s=e.id,Z.remove(0,B+s),Z.remove(2,N+s),window.removeEventListener(\\\"scroll\\\",this._onScroll,Ne),i&&(t&&e.element.clientWidth,ye(e.element,i))}destroy(){this.item&&(this.stop(!0),this.item=null)}_placeToGrid(t,e){if(!this.item)return!1;const{item:i}=this,s=i.getGrid().element;if(i.element.parentNode!==s){if(void 0===t||void 0===e){const{x:s,y:n}=i._getTranslate();t=s-i._containerDiffX,e=n-i._containerDiffY}return s.appendChild(i.element),i._setTranslate(t,e),i._containerDiffX=0,i._containerDiffY=0,!0}return!1}_onScroll(){if(!this.item||!this.isActive())return;const{item:t}=this;let e=0,i=0;var s,n,r;s=t.id,n=()=>{if(!this.isActive())return;const s=t.element.parentNode;if(s){const n=t.getGrid().element,{left:r,top:o}=ve(s,n,!0);e=r,i=o}},r=()=>{this.isActive()&&(Math.abs(e-t._containerDiffX)>.1||Math.abs(i-t._containerDiffY)>.1)&&(t._containerDiffX=e,t._containerDiffY=i,t._dragPlaceholder.reset(),t._layout.stop(!0,t.left,t.top),this.stop(!1,t.left,t.top))},Z.add(0,B+s,n),Z.add(2,N+s,r)}}const Fe={},ze={},je={duration:0,easing:\\\"\\\",onFinish:void 0};class Qe{constructor(t){this.item=t,this.animator=new Xe(t.element),this._skipNextAnimation=!1,this._isActive=!1,this._isInterrupted=!1,this._easing=\\\"\\\",this._duration=0,this._tX=0,this._tY=0,this._queue=\\\"layout-\\\"+t.id,this._setupAnimation=this._setupAnimation.bind(this),this._startAnimation=this._startAnimation.bind(this),this._finish=this._finish.bind(this);const{style:e}=t.element;e.left=\\\"0px\\\",e.top=\\\"0px\\\",this.item._setTranslate(0,0)}isActive(){return this._isActive}start(t,e){if(!this.item)return;const{item:i,animator:s}=this,n=i.getGrid(),r=i._dragRelease,{settings:o}=n,h=this.isActive(),a=r.isActive()&&!r.isPositioning(),l=a?o.dragRelease.duration:o.layoutDuration,d=a?o.dragRelease.easing:o.layoutEasing,c=!t&&!this._skipNextAnimation&&l>0;if(h&&($(i.id),i._emitter.burst(this._queue,!0,i)),a&&(r._isPositioning=!0),e&&ut(e)&&i._emitter.on(this._queue,e),this._skipNextAnimation=!1,!c)return i._setTranslate(i.left+i._containerDiffX,i.top+i._containerDiffY),s.stop(),void this._finish();var _,u,m;s.animation&&(s.animation.onfinish=null),n._itemLayoutNeedsDimensionRefresh=!0,this._isActive=!0,this._easing=d,this._duration=l,this._isInterrupted=h,_=i.id,u=this._setupAnimation,m=this._startAnimation,Z.add(0,L+_,u),Z.add(2,X+_,m)}stop(t,e,i){if(!this.item||!this.isActive())return;const{item:s}=this;if($(s.id),this.animator.isAnimating()){if(void 0===e||void 0===i){const{x:t,y:e}=He(s.element);s._setTranslate(t,e)}else s._setTranslate(e,i);this.animator.stop()}const{itemPositioningClass:n}=s.getGrid().settings;ye(s.element,n),this._isActive=!1,t&&s._emitter.burst(this._queue,!0,s)}destroy(){if(!this.item)return;this.stop(!0,0,0),this.item._emitter.clear(this._queue),this.animator.destroy();const{style:t}=this.item.element;t[oe]=\\\"\\\",t.left=\\\"\\\",t.top=\\\"\\\",this.item=null}_finish(){if(!this.item)return;const{item:t}=this;if(t._translateX=t.left+t._containerDiffX,t._translateY=t.top+t._containerDiffY,this.isActive()){this._isActive=!1;const{itemPositioningClass:e}=t.getGrid().settings;ye(t.element,e)}t._dragRelease.isActive()&&t._dragRelease.stop(),t._migrate.isActive()&&t._migrate.stop(),t._emitter.burst(this._queue,!1,t)}_setupAnimation(){if(!this.item||!this.isActive())return;const{item:t}=this,{x:e,y:i}=t._getTranslate();this._tX=e,this._tY=i;const s=t.getGrid();s.settings._animationWindowing&&s._itemLayoutNeedsDimensionRefresh&&(s._itemLayoutNeedsDimensionRefresh=!1,s._updateBoundingRect(),s._updateBorders(!0,!1,!0,!1))}_startAnimation(){if(!this.item||!this.isActive())return;const{item:t}=this,{settings:e}=t.getGrid(),i=this._duration<=0,s=t.left+t._containerDiffX,n=t.top+t._containerDiffY,r=Math.abs(t.left-(this._tX-t._containerDiffX)),o=Math.abs(t.top-(this._tY-t._containerDiffY));if(i||r<2&&o<2||e._animationWindowing&&!t._isInViewport(this._tX,this._tY,x)&&!t._isInViewport(s,n,x))return(this._isInterrupted||r>.1||o>.1)&&t._setTranslate(s,n),this.animator.stop(),void this._finish();this._isInterrupted||ee(t.element,e.itemPositioningClass),Fe[oe]=Ye(this._tX,this._tY,e.translate3d),ze[oe]=Ye(s,n,e.translate3d),je.duration=this._duration,je.easing=this._easing,je.onFinish=this._finish,t._translateX=t._translateY=void 0,this.animator.start(Fe,ze,je),je.onFinish=void 0}}class Ue{constructor(t){this.item=t,this.container=null,this._isActive=!1}isActive(){return this._isActive}start(t,e,i){if(!this.item)return;const s=this.item,n=s.getGrid(),r=s.element,o=s.isActive(),h=s.isVisible(),a=n.settings,l=n.items.indexOf(s),d=t.element,c=t.settings,_=t.items,p=i||document.body;let v=0;if(\\\"number\\\"==typeof e)v=se(_,e,1);else{const i=t.getItem(e);if(!i)return;v=_.indexOf(i)}if(s._drag&&s._drag.stop(),this.isActive()||s.isPositioning()||s.isReleasing()){let{x:t,y:e}=s._getTranslate();s.isPositioning()&&s._layout.stop(!0,t,e),t-=s._containerDiffX,e-=s._containerDiffY,this.isActive()?this.stop(!0,t,e):s.isReleasing()&&s._dragRelease.stop(!0,t,e)}if(s._visibility.stop(!0),n._hasListeners(m)&&n._emit(m,{item:s,fromGrid:n,fromIndex:l,toGrid:t,toIndex:v}),t._hasListeners(f)&&t._emit(f,{item:s,fromGrid:n,fromIndex:l,toGrid:t,toIndex:v}),s.isDestroyed()||n.isDestroyed()||t.isDestroyed())return;s._drag&&(s._drag.destroy(),s._drag=null),a.itemClass!==c.itemClass&&(ye(r,a.itemClass),ee(r,c.itemClass));const y=h?a.itemVisibleClass:a.itemHiddenClass,w=h?c.itemVisibleClass:c.itemHiddenClass;if(y!==w&&(ye(r,y),ee(r,w)),n.items.splice(l,1),ie(_,s,v),s._gridId=t.id,o){const t=r.parentNode;if(p!==t){p.appendChild(r);const e=ve(p,t,!0),i=s._getTranslate();s._setTranslate(i.x+e.left,i.y+e.top)}}else d.appendChild(r);if(s._visibility.setStyles(h?c.visibleStyles:c.hiddenStyles),o){const{left:t,top:e}=ve(p,d,!0);s._containerDiffX=t,s._containerDiffY=e}s._updateDimensions(),s._sortData=null,c.dragEnabled&&(s._drag=new De(s)),o?(this._isActive=!0,this.container=p):(this._isActive=!1,this.container=null),n._hasListeners(u)&&n._emit(u,{item:s,fromGrid:n,fromIndex:l,toGrid:t,toIndex:v}),t._hasListeners(g)&&t._emit(g,{item:s,fromGrid:n,fromIndex:l,toGrid:t,toIndex:v})}stop(t=!1,e,i){if(!this.item||!this.isActive())return;const{item:s}=this,n=s.getGrid();if(this.container!==n.element){if(void 0===e||void 0===i)if(t){const t=s._getTranslate();e=t.x-s._containerDiffX,i=t.y-s._containerDiffY}else e=s.left,i=s.top;n.element.appendChild(s.element),s._setTranslate(e,i),s._containerDiffX=0,s._containerDiffY=0}this._isActive=!1,this.container=null}destroy(){this.item&&(this.stop(!0),this.item=null)}}class Ze{constructor(t){const e=t.element.children[0];if(!e)throw new Error(\\\"No valid child element found within item element.\\\");const i=t.isActive();this.item=t,this.element=e,this.animator=new Xe(e),this._isHidden=!i,this._isHiding=!1,this._isShowing=!1,this._currentStyleProps=[],this._queue=\\\"visibility-\\\"+t.id,this._finishShow=this._finishShow.bind(this),this._finishHide=this._finishHide.bind(this),t.element.style.display=i?\\\"\\\":\\\"none\\\";const{settings:s}=t.getGrid();ee(t.element,i?s.itemVisibleClass:s.itemHiddenClass),this.setStyles(i?s.visibleStyles:s.hiddenStyles)}isHidden(){return this._isHidden}isHiding(){return this._isHiding}isShowing(){return this._isShowing}show(t,e){if(!this.item)return;const{item:i}=this,s=ut(e)?e:null;if(this._isShowing||this._isHidden)if(!this._isShowing||t){if(!this._isShowing){i._emitter.burst(this._queue,!0,i);const{settings:t}=i.getGrid();t&&(ye(i.element,t.itemHiddenClass),ee(i.element,t.itemVisibleClass)),this._isHiding||(i.element.style.display=\\\"\\\")}s&&i._emitter.on(this._queue,s),this._isShowing=!0,this._isHiding=this._isHidden=!1,this._startAnimation(!0,t,this._finishShow)}else s&&i._emitter.on(this._queue,s);else s&&s(!1,i)}hide(t,e){if(!this.item)return;const{item:i}=this,s=ut(e)?e:null;if(this._isHiding||!this._isHidden)if(!this._isHiding||t){if(!this._isHiding){i._emitter.burst(this._queue,!0,i);const{settings:t}=i.getGrid();ee(i.element,t.itemHiddenClass),ye(i.element,t.itemVisibleClass)}s&&i._emitter.on(this._queue,s),this._isHidden=this._isHiding=!0,this._isShowing=!1,this._startAnimation(!1,t,this._finishHide)}else s&&i._emitter.on(this._queue,s);else s&&s(!1,i)}stop(t){if(!this.item||!this._isHiding&&!this._isShowing)return;const{item:e}=this;J(e.id),this.animator.stop(),t&&e._emitter.burst(this._queue,!0,e)}setStyles(t){if(!this.element)return;const{element:e,_currentStyleProps:i}=this;let s;for(s in this._removeCurrentStyles(),t)i.push(s),e.style[s]=t[s]}destroy(){if(!this.item)return;const{item:t}=this,e=t.element,{settings:i}=t.getGrid();this.stop(!0),t._emitter.clear(this._queue),this.animator.destroy(),this._removeCurrentStyles(),i&&(ye(e,i.itemVisibleClass),ye(e,i.itemHiddenClass)),e.style.display=\\\"\\\",this._isHiding=this._isShowing=!1,this._isHidden=!0,this.item=null}_startAnimation(t,e,i){if(!this.item||!this.element)return;const{item:s,element:n,animator:r}=this,o=s.getGrid(),{settings:h}=o,a=t?h.visibleStyles:h.hiddenStyles,l=t?h.showDuration:h.hideDuration,d=t?h.showEasing:h.hideEasing,c=e||l<=0;if(!a)return r.stop(),void(i&&i());if(J(s.id),c)return xe(n,a),r.stop(),void(i&&i());let _;r.animation&&(r.animation.onfinish=null);let u=0,m=0;var g,f,p;o._itemVisibilityNeedsDimensionRefresh=!0,g=s.id,f=()=>{if(!this.item||(t?!this._isShowing:!this._isHiding))return;_=function(t,e){const i={};let s;if(Array.isArray(e)){let n=0;for(;n{if(this.item&&(t?this._isShowing:this._isHiding))return!h._animationWindowing||s._isInViewport(u,m,x)||s.isActive()&&s._isInViewport(s.left+s._containerDiffX,s.top+s._containerDiffY,x)?void(_&&r.start(_,a,{duration:l,easing:d,onFinish:i})):(xe(n,a),r.stop(),void(i&&i()))},Z.add(0,Y+g,f),Z.add(2,I+g,p)}_finishShow(){this.item&&!this._isHidden&&(this._isShowing=!1,this.item._emitter.burst(this._queue,!1,this.item))}_finishHide(){if(!this.item||!this._isHidden)return;const{item:t}=this;this._isHiding=!1,t._layout.stop(!0,0,0),t.element.style.display=\\\"none\\\",t._emitter.burst(this._queue,!1,t)}_removeCurrentStyles(){if(!this.element)return;const{element:t,_currentStyleProps:e}=this;let i=0;for(;it.width&&(t.width=p.left+p.width):p.top+p.height>t.height&&(t.height=p.top+p.height),l[++this._slotIndex]=p.left,l[++this._slotIndex]=p.top,(_||u)&&this._slotSizes.push(p.width,p.height);if(_)for(y=0;yt.height+o&&(r.left>h&&l.push(this._addRect(0,t.height,r.left,1/0)),r.left+r.widtht.width+o&&(r.top>h&&l.push(this._addRect(t.width,0,1/0,r.top)),r.top+r.height1&&this._purgeRects(l).sort(n?this._sortRectsLeftTop:this._sortRectsTopLeft),this._currentRects=l,this._nextRects=a,r}_addRect(t,e,i,s){const n=++this._rectId;return this._rectStore[n]=t||0,this._rectStore[++this._rectId]=e||0,this._rectStore[++this._rectId]=i||0,this._rectStore[++this._rectId]=s||0,n}_getRect(t,e){return(e=e||this._rectTarget).left=this._rectStore[t]||0,e.top=this._rectStore[++t]||0,e.width=this._rectStore[++t]||0,e.height=this._rectStore[++t]||0,e}_splitRect(t,e){const{_shards:i}=this;let s=0,n=0;return i.length=0,t.left+t.width<=e.left+o||e.left+e.width<=t.left+o||t.top+t.height<=e.top+o||e.top+e.height<=t.top+o?(i.push(this._addRect(t.left,t.top,t.width,t.height)),i):(s=e.left-t.left,s>=h&&i.push(this._addRect(t.left,t.top,s,t.height)),s=t.left+t.width-(e.left+e.width),s>=h&&i.push(this._addRect(e.left+e.width,t.top,s,t.height)),n=e.top-t.top,n>=h&&i.push(this._addRect(t.left,t.top,t.width,n)),n=t.top+t.height-(e.top+e.height),n>=h&&i.push(this._addRect(t.left,e.top+e.height,t.width,n)),i)}_isRectAWithinRectB(t,e){return t.left+o>=e.left&&t.top+o>=e.top&&t.left+t.width-o<=e.left+e.width&&t.top+t.height-o<=e.top+e.height}_purgeRects(t){const{_tempRectA:e,_tempRectB:i}=this;let s=t.length,n=0;for(;s--;)if(n=t.length,t[s])for(this._getRect(t[s],e);n--;)if(t[n]&&s!==n&&(this._getRect(t[n],i),this._isRectAWithinRectB(e,i))){t[s]=0;break}return t}_sortRectsTopLeft(t,e){const{_tempRectA:i,_tempRectB:s}=this;return this._getRect(t,i),this._getRect(e,s),i.tops.top&&i.top-o>s.top?1:i.lefts.left&&i.left-o>s.left?1:0}_sortRectsLeftTop(t,e){const{_tempRectA:i,_tempRectB:s}=this;return this._getRect(t,i),this._getRect(e,s),i.lefts.left&&i.left-os.top&&i.top-o>s.top?1:0}};if(t){const t=self,e=1,i=2,s=3,n=4;t.onmessage=function(r){const o=new Float32Array(r.data),h=o.subarray(n,o.length),a=new Float32Array(h.length),d=o[s],c={items:h,slots:a,width:o[e],height:o[i]};l.computeLayout(c,d),o[e]=c.width,o[i]=c.height,o.set(c.slots,n),t.postMessage(o.buffer,[o.buffer])}}return l}let oi=\\\"\\\";const hi=new Set;const ai=1,li=2,di=4,ci=8,_i=16,ui=0,mi=1,gi=2,fi=3,pi=4,vi=ri();class yi{constructor(t=0,e){this._settings=0,this._asyncMode=!0,this._workers=[],this._layoutWorkerQueue=[],this._layoutsProcessing=new Set,this._layoutWorkerData=new Map,this._onWorkerMessage=this._onWorkerMessage.bind(this),e&&this.updateSettings(e);try{this._workers=function(t,e){const i=[];if(t>0){oi||(oi=URL.createObjectURL(new Blob([\\\"(\\\"+ri.toString()+\\\")(true)\\\"],{type:\\\"application/javascript\\\"})));let s=0;for(;s{this.cancelLayout(t.id),t.worker&&this._workers.push(t.worker)})),this._layoutWorkerData.clear(),this._layoutsProcessing.clear(),this._layoutWorkerQueue.length=0,function(t){let e=0;for(;e{r||(n&&(s-=e-n),n=e,s>0?o&&function(t,e){Z.add(0,U+t,e)}(i,o):(s=n=0,t()))};return function(h=!1){if(!r){if(!(e<=0))return!0===h?(r=!0,s=n=0,o=void 0,void function(t){Z.remove(0,U+t)}(i)):void(s<=0?(s=e,o&&o(0)):s=e);!0!==h&&t()}}}const bi=Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.msMatchesSelector||function(){return!1};function Di(t,e){return bi.call(t,e)}function Ai(t){const e=Object.prototype.toString.call(t);return\\\"[object HTMLCollection]\\\"===e||\\\"[object NodeList]\\\"===e}const Ti=Object.prototype.toString;function ki(t){return\\\"object\\\"==typeof t&&\\\"[object Object]\\\"===Ti.call(t)}let xi=0;function Ri(t,e={}){let i=Ei({},t);return i=Ei(i,e),e.visibleStyles?i.visibleStyles=Object.assign({},e.visibleStyles):t.visibleStyles&&(i.visibleStyles=Object.assign({},t.visibleStyles)),e.hiddenStyles?i.hiddenStyles=Object.assign({},e.hiddenStyles):t.hiddenStyles&&(i.hiddenStyles=Object.assign({},t.hiddenStyles)),i}function Ei(t,e){const i=Object.keys(e),s=i.length;let n=0;for(;n-1?t:this.items.length+t]||null;if(t instanceof ni)return t._gridId===this.id?t:null;const i=e.get(t);return i&&i._gridId===this.id?i:null}getItems(t){if(this._isDestroyed||void 0===t)return this.items.slice(0);const e=[];if(Array.isArray(t)||Ai(t)){let i,s=0;for(;s{this._onLayoutDataReceived(t)})):(Ii.defaultPacker.updateSettings(a),l=Ii.defaultPacker.createLayout(s,r,h,(t=>{this._onLayoutDataReceived(Object.assign(Object.assign({},t),{items:r}))}))),ut(l)&&this._nextLayoutData&&this._nextLayoutData.id===s&&(this._nextLayoutData.cancel=l),this}add(t,e={}){if(this._isDestroyed||!t)return[];const i=Ai(s=t)?Array.prototype.slice.call(s):Array.prototype.concat(s);var s;if(!i.length)return[];const r=e.layout?e.layout:void 0===e.layout,{items:o}=this;let h,a,l,d,c=!1;for(d=0;d{o=t,++a&&r(o,h)}:void 0,layout:!1}):r&&++a&&r(o,h),s.length?this.hide(s,{instant:!!e.instant,syncWithLayout:!!e.syncWithLayout,onFinish:r?t=>{h=t,++a&&r(o,h)}:void 0,layout:!1}):r&&++a&&r(o,h),i.length||s.length){this._hasListeners(d)&&this._emit(d,i.slice(0),s.slice(0));const t=e.layout?e.layout:void 0===e.layout;t&&this.layout(t===n,ut(t)?t:void 0)}return this}sort(t,e={}){if(this._isDestroyed||this.items.length<2)return this;const{items:i}=this,s=i.slice(0),r=e.layout?e.layout:void 0===e.layout,o=!!e.descending;let h=null;if(ut(t))i.sort(((e,i)=>{let n=o?-t(e,i):t(e,i);return n||(h||(h=Li(s)),n=o?Xi(h,i,e):Xi(h,e,i)),n}));else if(\\\"string\\\"==typeof t){const e=t.trim().split(\\\" \\\").filter((function(t){return t})).map((function(t){return t.split(\\\":\\\")}));i.sort(((t,i)=>{let n=0,r=0;for(;ra?1:0:al?1:0,n)return n}return n||(h||(h=Li(s)),n=o?Xi(h,i,t):Xi(h,t,i)),n}))}else{if(!Array.isArray(t))throw new Error(\\\"Invalid comparer argument provided.\\\");i.length=0,i.push.apply(i,t)}return this._hasListeners(c)&&this._emit(c,i.slice(0),s),r&&this.layout(r===n,ut(r)?r:void 0),this}move(t,e,r={}){if(this._isDestroyed||this.items.length<2)return this;const{items:o}=this,h=r.layout?r.layout:void 0===r.layout,a=r.action===i,l=a?i:s,d=this.getItem(t),c=this.getItem(e);if(d&&c&&d!==c){const t=o.indexOf(d),e=o.indexOf(c);a?re(o,t,e):ne(o,t,e),this._hasListeners(_)&&this._emit(_,{item:d,fromIndex:t,toIndex:e,action:l}),h&&this.layout(h===n,ut(h)?h:void 0)}return this}send(t,e,i,s={}){if(this._isDestroyed||e._isDestroyed||this===e)return this;const r=this.getItem(t);if(!r)return this;if(r._migrate.start(e,i,s.appendTo||document.body),r._migrate.isActive()&&r.isActive()){const t=s.layoutSender?s.layoutSender:void 0===s.layoutSender,i=s.layoutReceiver?s.layoutReceiver:void 0===s.layoutReceiver;t&&this.layout(t===n,ut(t)?t:void 0),i&&e.layout(i===n,ut(i)?i:void 0)}return this}destroy(e=!1){if(this._isDestroyed)return this;const i=this.element,s=this.getItems(),n=this._layout&&this._layout.styles||{};this._unbindLayoutOnResize();let r,o=0;for(;o0}_updateBoundingRect(){const{_rect:t}=this,{width:e,height:i,left:s,right:n,top:r,bottom:o}=this.element.getBoundingClientRect();t.width=e,t.height=i,t.left=s,t.right=n,t.top=r,t.bottom=o}_updateBorders(t,e,i,s){const{element:n}=this;t&&(this._borderLeft=_t(n,\\\"border-left-width\\\")),e&&(this._borderRight=_t(n,\\\"border-right-width\\\")),i&&(this._borderTop=_t(n,\\\"border-top-width\\\")),s&&(this._borderBottom=_t(n,\\\"border-bottom-width\\\"))}_updateDimensions(){this._updateBoundingRect(),this._updateBorders(!0,!0,!0,!0),this._boxSizing=ct(this.element,\\\"box-sizing\\\")}_bindLayoutOnResize(t){\\\"number\\\"!=typeof t&&(t=!0===t?0:-1),t>=0&&(this._resizeHandler=Si((()=>{this.refreshItems().layout()}),t),window.addEventListener(\\\"resize\\\",this._resizeHandler))}_unbindLayoutOnResize(){const{_resizeHandler:t}=this;ut(t)&&(t(!0),window.removeEventListener(\\\"resize\\\",this._resizeHandler),this._resizeHandler=null)}_onLayoutDataReceived(t){if(this._isDestroyed||!this._nextLayoutData||this._nextLayoutData.id!==t.id)return;const{instant:e,onFinish:i}=this._nextLayoutData,s=t.items.length;let n,a,l,d,c=s;this._nextLayoutData=null,!this._isLayoutFinished&&this._hasListeners(h)&&this._emit(h,this._layout.items.slice(0)),this._layout=t;const _=[];for(d=0;d{if(--c>0)return;const e=this._layout.id!==t.id;e||(this._isLayoutFinished=!0),ut(i)&&i(t.items.slice(0),e),!e&&this._hasListeners(o)&&this._emit(o,t.items.slice(0))};if(_.length)for(this._isLayoutFinished=!1,d=0;d<_.length&&this._layout.id===t.id;d++)_[d]._layout.start(e,u);else u()}_setItemsVisibility(t,e,i={}){const s=t.slice(0),o=!0===i.instant,h=i.onFinish,a=i.layout?i.layout:void 0===i.layout,d=e?\\\"showStart\\\":l,c=e?\\\"showEnd\\\":\\\"hideEnd\\\",_=e?\\\"show\\\":\\\"hide\\\",u=[],m=[];let g,f,p=!1,v=s.length;if(!v)return void(ut(h)&&h(s));for(f=0;f{for(p&&!1!==i.syncWithLayout&&this.off(r,y),this._hasListeners(d)&&this._emit(d,s.slice(0)),f=0;f{t||u.push(e),--v<1&&(ut(h)&&h(u.slice(0)),this._hasListeners(c)&&this._emit(c,u.slice(0)))})):--v<1&&(ut(h)&&h(u.slice(0)),this._hasListeners(c)&&this._emit(c,u.slice(0)))};p&&!1!==i.syncWithLayout?this.on(r,y):y(),p&&a&&this.layout(a===n,ut(a)?a:void 0)}}return Ii.Item=ni,Ii.ItemLayout=Qe,Ii.ItemVisibility=Ze,Ii.ItemMigrate=Ue,Ii.ItemDrag=De,Ii.ItemDragRelease=Ve,Ii.ItemDragPlaceholder=Be,Ii.AutoScroller=Xt,Ii.Emitter=Yt,Ii.Animator=Xe,Ii.Dragger=te,Ii.Packer=yi,Ii.defaultPacker=new yi,Ii.defaultOptions={items:\\\"*\\\",showDuration:300,showEasing:\\\"ease\\\",hideDuration:300,hideEasing:\\\"ease\\\",visibleStyles:{opacity:\\\"1\\\",transform:\\\"scale(1)\\\"},hiddenStyles:{opacity:\\\"0\\\",transform:\\\"scale(0.5)\\\"},layout:{fillGaps:!1,horizontal:!1,alignRight:!1,alignBottom:!1,rounding:!1},layoutOnResize:150,layoutOnInit:!0,layoutDuration:300,layoutEasing:\\\"ease\\\",sortData:null,translate3d:!1,dragEnabled:!1,dragContainer:null,dragHandle:null,dragStartPredicate:{distance:0,delay:0},dragAxis:\\\"xy\\\",dragSort:!0,dragSortHeuristics:{sortInterval:100,minDragDistance:10,minBounceBackAngle:1},dragSortPredicate:{threshold:50,action:s,migrateAction:s},dragRelease:{duration:300,easing:\\\"ease\\\",useDragContainer:!0},dragCssProps:{touchAction:\\\"none\\\",userSelect:\\\"none\\\",userDrag:\\\"none\\\",tapHighlightColor:\\\"rgba(0, 0, 0, 0)\\\",touchCallout:\\\"none\\\",contentZooming:\\\"none\\\"},dragEventListenerOptions:{passive:!0,capture:!1},dragPlaceholder:{enabled:!1,createElement:null,onCreate:null,onRemove:null},dragAutoScroll:{targets:[],handle:null,threshold:50,safeZone:.2,speed:Xt.smoothSpeed(1e3,2e3,2500),sortDuringScroll:!0,smoothStop:!1,onStart:null,onStop:null},containerClass:\\\"muuri\\\",itemClass:\\\"muuri-item\\\",itemVisibleClass:\\\"muuri-item-shown\\\",itemHiddenClass:\\\"muuri-item-hidden\\\",itemPositioningClass:\\\"muuri-item-positioning\\\",itemDraggingClass:\\\"muuri-item-dragging\\\",itemReleasingClass:\\\"muuri-item-releasing\\\",itemPlaceholderClass:\\\"muuri-item-placeholder\\\",_animationWindowing:!1},Ii}));\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/BTC/Muuri/library/muuri.min.js\",\"module-type\":\"library\"},\"$:/plugins/BTC/Muuri/library/web-animations-polyfill.js\":{\"text\":\"// Copyright 2014 Google Inc. All rights reserved.\\n//\\n// Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n// you may not use this file except in compliance with the License.\\n// You may obtain a copy of the License at\\n//\\n// http://www.apache.org/licenses/LICENSE-2.0\\n//\\n// Unless required by applicable law or agreed to in writing, software\\n// distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n// See the License for the specific language governing permissions and\\n// limitations under the License.\\n\\n!function(a,b){var c={},d={};!function(a,b){function c(a){if(\\\"number\\\"==typeof a)return a;var b={};for(var c in a)b[c]=a[c];return b}function d(){this._delay=0,this._endDelay=0,this._fill=\\\"none\\\",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction=\\\"normal\\\",this._easing=\\\"linear\\\",this._easingFunction=x}function e(){return a.isDeprecated(\\\"Invalid timing inputs\\\",\\\"2016-03-02\\\",\\\"TypeError exceptions will be thrown instead.\\\",!0)}function f(b,c,e){var f=new d;return c&&(f.fill=\\\"both\\\",f.duration=\\\"auto\\\"),\\\"number\\\"!=typeof b||isNaN(b)?void 0!==b&&Object.getOwnPropertyNames(b).forEach(function(c){if(\\\"auto\\\"!=b[c]){if((\\\"number\\\"==typeof f[c]||\\\"duration\\\"==c)&&(\\\"number\\\"!=typeof b[c]||isNaN(b[c])))return;if(\\\"fill\\\"==c&&-1==v.indexOf(b[c]))return;if(\\\"direction\\\"==c&&-1==w.indexOf(b[c]))return;if(\\\"playbackRate\\\"==c&&1!==b[c]&&a.isDeprecated(\\\"AnimationEffectTiming.playbackRate\\\",\\\"2014-11-28\\\",\\\"Use Animation.playbackRate instead.\\\"))return;f[c]=b[c]}}):f.duration=b,f}function g(a){return\\\"number\\\"==typeof a&&(a=isNaN(a)?{duration:0}:{duration:a}),a}function h(b,c){return b=a.numericTimingToObject(b),f(b,c)}function i(a,b,c,d){return a<0||a>1||c<0||c>1?x:function(e){function f(a,b,c){return 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}if(e<=0){var g=0;return a>0?g=b/a:!b&&c>0&&(g=d/c),g*e}if(e>=1){var h=0;return c<1?h=(d-1)/(c-1):1==c&&a<1&&(h=(b-1)/(a-1)),1+h*(e-1)}for(var i=0,j=1;i=1)return 1;var d=1/a;return(c+=b*d)-c%d}}function k(a){C||(C=document.createElement(\\\"div\\\").style),C.animationTimingFunction=\\\"\\\",C.animationTimingFunction=a;var b=C.animationTimingFunction;if(\\\"\\\"==b&&e())throw new TypeError(a+\\\" is not a valid value for easing\\\");return b}function l(a){if(\\\"linear\\\"==a)return x;var b=E.exec(a);if(b)return i.apply(this,b.slice(1).map(Number));var c=F.exec(a);return c?j(Number(c[1]),{start:y,middle:z,end:A}[c[2]]):B[a]||x}function m(a){return Math.abs(n(a)/a.playbackRate)}function n(a){return 0===a.duration||0===a.iterations?0:a.duration*a.iterations}function o(a,b,c){if(null==b)return G;var d=c.delay+a+c.endDelay;return b=Math.min(c.delay+a,d)?I:J}function p(a,b,c,d,e){switch(d){case H:return\\\"backwards\\\"==b||\\\"both\\\"==b?0:null;case J:return c-e;case I:return\\\"forwards\\\"==b||\\\"both\\\"==b?a:null;case G:return null}}function q(a,b,c,d,e){var f=e;return 0===a?b!==H&&(f+=c):f+=d/a,f}function r(a,b,c,d,e,f){var g=a===1/0?b%1:a%1;return 0!==g||c!==I||0===d||0===e&&0!==f||(g=1),g}function s(a,b,c,d){return a===I&&b===1/0?1/0:1===c?Math.floor(d)-1:Math.floor(d)}function t(a,b,c){var d=a;if(\\\"normal\\\"!==a&&\\\"reverse\\\"!==a){var e=b;\\\"alternate-reverse\\\"===a&&(e+=1),d=\\\"normal\\\",e!==1/0&&e%2!=0&&(d=\\\"reverse\\\")}return\\\"normal\\\"===d?c:1-c}function u(a,b,c){var d=o(a,b,c),e=p(a,c.fill,b,d,c.delay);if(null===e)return null;var f=q(c.duration,d,c.iterations,e,c.iterationStart),g=r(f,c.iterationStart,d,c.iterations,e,c.duration),h=s(d,c.iterations,g,f),i=t(c.direction,h,g);return c._easingFunction(i)}var v=\\\"backwards|forwards|both|none\\\".split(\\\"|\\\"),w=\\\"reverse|alternate|alternate-reverse\\\".split(\\\"|\\\"),x=function(a){return a};d.prototype={_setMember:function(b,c){this[\\\"_\\\"+b]=c,this._effect&&(this._effect._timingInput[b]=c,this._effect._timing=a.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=a.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(a){this._setMember(\\\"delay\\\",a)},get delay(){return this._delay},set endDelay(a){this._setMember(\\\"endDelay\\\",a)},get endDelay(){return this._endDelay},set fill(a){this._setMember(\\\"fill\\\",a)},get fill(){return this._fill},set iterationStart(a){if((isNaN(a)||a<0)&&e())throw new TypeError(\\\"iterationStart must be a non-negative number, received: \\\"+timing.iterationStart);this._setMember(\\\"iterationStart\\\",a)},get iterationStart(){return this._iterationStart},set duration(a){if(\\\"auto\\\"!=a&&(isNaN(a)||a<0)&&e())throw new TypeError(\\\"duration must be non-negative or auto, received: \\\"+a);this._setMember(\\\"duration\\\",a)},get duration(){return this._duration},set direction(a){this._setMember(\\\"direction\\\",a)},get direction(){return this._direction},set easing(a){this._easingFunction=l(k(a)),this._setMember(\\\"easing\\\",a)},get easing(){return this._easing},set iterations(a){if((isNaN(a)||a<0)&&e())throw new TypeError(\\\"iterations must be non-negative, received: \\\"+a);this._setMember(\\\"iterations\\\",a)},get iterations(){return this._iterations}};var y=1,z=.5,A=0,B={ease:i(.25,.1,.25,1),\\\"ease-in\\\":i(.42,0,1,1),\\\"ease-out\\\":i(0,0,.58,1),\\\"ease-in-out\\\":i(.42,0,.58,1),\\\"step-start\\\":j(1,y),\\\"step-middle\\\":j(1,z),\\\"step-end\\\":j(1,A)},C=null,D=\\\"\\\\\\\\s*(-?\\\\\\\\d+\\\\\\\\.?\\\\\\\\d*|-?\\\\\\\\.\\\\\\\\d+)\\\\\\\\s*\\\",E=new RegExp(\\\"cubic-bezier\\\\\\\\(\\\"+D+\\\",\\\"+D+\\\",\\\"+D+\\\",\\\"+D+\\\"\\\\\\\\)\\\"),F=/steps\\\\(\\\\s*(\\\\d+)\\\\s*,\\\\s*(start|middle|end)\\\\s*\\\\)/,G=0,H=1,I=2,J=3;a.cloneTimingInput=c,a.makeTiming=f,a.numericTimingToObject=g,a.normalizeTimingInput=h,a.calculateActiveDuration=m,a.calculateIterationProgress=u,a.calculatePhase=o,a.normalizeEasing=k,a.parseEasingFunction=l}(c),function(a,b){function c(a,b){return a in k?k[a][b]||b:b}function d(a){return\\\"display\\\"===a||0===a.lastIndexOf(\\\"animation\\\",0)||0===a.lastIndexOf(\\\"transition\\\",0)}function e(a,b,e){if(!d(a)){var f=h[a];if(f){i.style[a]=b;for(var g in f){var j=f[g],k=i.style[j];e[j]=c(j,k)}}else e[a]=c(a,b)}}function f(a){var b=[];for(var c in a)if(!(c in[\\\"easing\\\",\\\"offset\\\",\\\"composite\\\"])){var d=a[c];Array.isArray(d)||(d=[d]);for(var e,f=d.length,g=0;g1&&null==d[0].offset&&(d[0].offset=0);for(var b=0,c=d[0].offset,e=1;e1)throw new TypeError(\\\"Keyframe offsets must be between 0 and 1.\\\")}}else if(\\\"composite\\\"==d){if(\\\"add\\\"==f||\\\"accumulate\\\"==f)throw{type:DOMException.NOT_SUPPORTED_ERR,name:\\\"NotSupportedError\\\",message:\\\"add compositing is not supported\\\"};if(\\\"replace\\\"!=f)throw new TypeError(\\\"Invalid composite mode \\\"+f+\\\".\\\")}else f=\\\"easing\\\"==d?a.normalizeEasing(f):\\\"\\\"+f;e(d,f,c)}return void 0==c.offset&&(c.offset=null),void 0==c.easing&&(c.easing=\\\"linear\\\"),c}),g=!0,h=-1/0,i=0;i=0&&a.offset<=1}),g||c(),d}var h={background:[\\\"backgroundImage\\\",\\\"backgroundPosition\\\",\\\"backgroundSize\\\",\\\"backgroundRepeat\\\",\\\"backgroundAttachment\\\",\\\"backgroundOrigin\\\",\\\"backgroundClip\\\",\\\"backgroundColor\\\"],border:[\\\"borderTopColor\\\",\\\"borderTopStyle\\\",\\\"borderTopWidth\\\",\\\"borderRightColor\\\",\\\"borderRightStyle\\\",\\\"borderRightWidth\\\",\\\"borderBottomColor\\\",\\\"borderBottomStyle\\\",\\\"borderBottomWidth\\\",\\\"borderLeftColor\\\",\\\"borderLeftStyle\\\",\\\"borderLeftWidth\\\"],borderBottom:[\\\"borderBottomWidth\\\",\\\"borderBottomStyle\\\",\\\"borderBottomColor\\\"],borderColor:[\\\"borderTopColor\\\",\\\"borderRightColor\\\",\\\"borderBottomColor\\\",\\\"borderLeftColor\\\"],borderLeft:[\\\"borderLeftWidth\\\",\\\"borderLeftStyle\\\",\\\"borderLeftColor\\\"],borderRadius:[\\\"borderTopLeftRadius\\\",\\\"borderTopRightRadius\\\",\\\"borderBottomRightRadius\\\",\\\"borderBottomLeftRadius\\\"],borderRight:[\\\"borderRightWidth\\\",\\\"borderRightStyle\\\",\\\"borderRightColor\\\"],borderTop:[\\\"borderTopWidth\\\",\\\"borderTopStyle\\\",\\\"borderTopColor\\\"],borderWidth:[\\\"borderTopWidth\\\",\\\"borderRightWidth\\\",\\\"borderBottomWidth\\\",\\\"borderLeftWidth\\\"],flex:[\\\"flexGrow\\\",\\\"flexShrink\\\",\\\"flexBasis\\\"],font:[\\\"fontFamily\\\",\\\"fontSize\\\",\\\"fontStyle\\\",\\\"fontVariant\\\",\\\"fontWeight\\\",\\\"lineHeight\\\"],margin:[\\\"marginTop\\\",\\\"marginRight\\\",\\\"marginBottom\\\",\\\"marginLeft\\\"],outline:[\\\"outlineColor\\\",\\\"outlineStyle\\\",\\\"outlineWidth\\\"],padding:[\\\"paddingTop\\\",\\\"paddingRight\\\",\\\"paddingBottom\\\",\\\"paddingLeft\\\"]},i=document.createElementNS(\\\"http://www.w3.org/1999/xhtml\\\",\\\"div\\\"),j={thin:\\\"1px\\\",medium:\\\"3px\\\",thick:\\\"5px\\\"},k={borderBottomWidth:j,borderLeftWidth:j,borderRightWidth:j,borderTopWidth:j,fontSize:{\\\"xx-small\\\":\\\"60%\\\",\\\"x-small\\\":\\\"75%\\\",small:\\\"89%\\\",medium:\\\"100%\\\",large:\\\"120%\\\",\\\"x-large\\\":\\\"150%\\\",\\\"xx-large\\\":\\\"200%\\\"},fontWeight:{normal:\\\"400\\\",bold:\\\"700\\\"},outlineWidth:j,textShadow:{none:\\\"0px 0px 0px transparent\\\"},boxShadow:{none:\\\"0px 0px 0px 0px transparent\\\"}};a.convertToArrayForm=f,a.normalizeKeyframes=g}(c),function(a){var b={};a.isDeprecated=function(a,c,d,e){var f=e?\\\"are\\\":\\\"is\\\",g=new Date,h=new Date(c);return h.setMonth(h.getMonth()+3),!(g=a.applyFrom&&cthis._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(b,c){this._style[b]=c,this._isAnimatedProperty[b]=!0,this._updateSvgTransformAttr&&\\\"transform\\\"==a.unprefixedPropertyName(b)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute(\\\"transform\\\")),this._element.setAttribute(\\\"transform\\\",a.transformToSvgMatrix(c)))},_clear:function(b){this._style[b]=this._surrogateStyle[b],this._updateSvgTransformAttr&&\\\"transform\\\"==a.unprefixedPropertyName(b)&&(this._savedTransformAttr?this._element.setAttribute(\\\"transform\\\",this._savedTransformAttr):this._element.removeAttribute(\\\"transform\\\"),this._savedTransformAttr=null),delete this._isAnimatedProperty[b]}};for(var k in i)e.prototype[k]=function(a,b){return function(){var c=this._surrogateStyle[a].apply(this._surrogateStyle,arguments);return b&&(this._isAnimatedProperty[arguments[0]]||this._style[a].apply(this._style,arguments),this._updateIndices()),c}}(k,k in j);for(var l in document.documentElement.style)l in h||l in i||function(a){d(e.prototype,a,{get:function(){return this._surrogateStyle[a]},set:function(b){this._surrogateStyle[a]=b,this._updateIndices(),this._isAnimatedProperty[a]||(this._style[a]=b)}})}(l);a.apply=function(b,c,d){f(b),b.style._set(a.propertyName(c),d)},a.clear=function(b,c){b._webAnimationsPatchedStyle&&b.style._clear(a.propertyName(c))}}(d),function(a){window.Element.prototype.animate=function(b,c){var d=\\\"\\\";return c&&c.id&&(d=c.id),a.timeline._play(a.KeyframeEffect(this,b,c,d))}}(d),function(a,b){function c(a,b,d){if(\\\"number\\\"==typeof a&&\\\"number\\\"==typeof b)return a*(1-d)+b*d;if(\\\"boolean\\\"==typeof a&&\\\"boolean\\\"==typeof b)return d<.5?a:b;if(a.length==b.length){for(var e=[],f=0;f0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(a){a=+a,isNaN(a)||(b.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-a/this._playbackRate),this._currentTimePending=!1,this._currentTime!=a&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(a,!0),b.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(a){a=+a,isNaN(a)||this._paused||this._idle||(this._startTime=a,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),b.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(a){if(a!=this._playbackRate){var c=this.currentTime;this._playbackRate=a,this._startTime=null,\\\"paused\\\"!=this.playState&&\\\"idle\\\"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),b.applyDirtiedAnimation(this)),null!=c&&(this.currentTime=c)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?\\\"idle\\\":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?\\\"pending\\\":this._paused?\\\"paused\\\":this._isFinished?\\\"finished\\\":\\\"running\\\"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException(\\\"Unable to rewind negative playback rate animation with infinite duration\\\",\\\"InvalidStateError\\\");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),b.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,b.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._isFinished=!0,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),b.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(a,b){\\\"function\\\"==typeof b&&\\\"finish\\\"==a&&this._finishHandlers.push(b)},removeEventListener:function(a,b){if(\\\"finish\\\"==a){var c=this._finishHandlers.indexOf(b);c>=0&&this._finishHandlers.splice(c,1)}},_fireEvents:function(a){if(this._isFinished){if(!this._finishedFlag){var b=new d(this,this._currentTime,a),c=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout(function(){c.forEach(function(a){a.call(b.target,b)})},0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(a,b){this._idle||this._paused||(null==this._startTime?b&&(this.startTime=a-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((a-this._startTime)*this.playbackRate)),b&&(this._currentTimePending=!1,this._fireEvents(a))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var a=this._effect._target;return a._activeAnimations||(a._activeAnimations=[]),a._activeAnimations},_markTarget:function(){var a=this._targetAnimations();-1===a.indexOf(this)&&a.push(this)},_unmarkTarget:function(){var a=this._targetAnimations(),b=a.indexOf(this);-1!==b&&a.splice(b,1)}}}(c,d),function(a,b,c){function d(a){var b=j;j=[],a1e-4?(u=.5/Math.sqrt(w),v=[(q[2][1]-q[1][2])*u,(q[0][2]-q[2][0])*u,(q[1][0]-q[0][1])*u,.25/u]):q[0][0]>q[1][1]&&q[0][0]>q[2][2]?(u=2*Math.sqrt(1+q[0][0]-q[1][1]-q[2][2]),v=[.25*u,(q[0][1]+q[1][0])/u,(q[0][2]+q[2][0])/u,(q[2][1]-q[1][2])/u]):q[1][1]>q[2][2]?(u=2*Math.sqrt(1+q[1][1]-q[0][0]-q[2][2]),v=[(q[0][1]+q[1][0])/u,.25*u,(q[1][2]+q[2][1])/u,(q[0][2]-q[2][0])/u]):(u=2*Math.sqrt(1+q[2][2]-q[0][0]-q[1][1]),v=[(q[0][2]+q[2][0])/u,(q[1][2]+q[2][1])/u,.25*u,(q[1][0]-q[0][1])/u]),[p,r,s,v,n]}return j}();a.dot=c,a.makeMatrixDecomposition=h,a.transformListToMatrix=g}(d),function(a){function b(a,b){var c=a.exec(b);if(c)return c=a.ignoreCase?c[0].toLowerCase():c[0],[c,b.substr(c.length)]}function c(a,b){b=b.replace(/^\\\\s*/,\\\"\\\");var c=a(b);if(c)return[c[0],c[1].replace(/^\\\\s*/,\\\"\\\")]}function d(a,d,e){a=c.bind(null,a);for(var f=[];;){var g=a(e);if(!g)return[f,e];if(f.push(g[0]),e=g[1],!(g=b(d,e))||\\\"\\\"==g[1])return[f,e];e=g[1]}}function e(a,b){for(var c=0,d=0;dd?c%=d:d%=c;return c=a*b/(c+d)}function g(a){return function(b){var c=a(b);return c&&(c[0]=void 0),c}}function h(a,b){return function(c){return a(c)||[b,c]}}function i(b,c){for(var d=[],e=0;e=1?b:\\\"visible\\\"}]}a.addPropertiesHandler(String,c,[\\\"visibility\\\"])}(d),function(a,b){function c(a){a=a.trim(),f.fillStyle=\\\"#000\\\",f.fillStyle=a;var b=f.fillStyle;if(f.fillStyle=\\\"#fff\\\",f.fillStyle=a,b==f.fillStyle){f.fillRect(0,0,1,1);var c=f.getImageData(0,0,1,1).data;f.clearRect(0,0,1,1);var d=c[3]/255;return[c[0]*d,c[1]*d,c[2]*d,d]}}function d(b,c){return[b,c,function(b){function c(a){return Math.max(0,Math.min(255,a))}if(b[3])for(var d=0;d<3;d++)b[d]=Math.round(c(b[d]/b[3]));return b[3]=a.numberToString(a.clamp(0,1,b[3])),\\\"rgba(\\\"+b.join(\\\",\\\")+\\\")\\\"}]}var e=document.createElementNS(\\\"http://www.w3.org/1999/xhtml\\\",\\\"canvas\\\");e.width=e.height=1;var f=e.getContext(\\\"2d\\\");a.addPropertiesHandler(c,d,[\\\"background-color\\\",\\\"border-bottom-color\\\",\\\"border-left-color\\\",\\\"border-right-color\\\",\\\"border-top-color\\\",\\\"color\\\",\\\"fill\\\",\\\"flood-color\\\",\\\"lighting-color\\\",\\\"outline-color\\\",\\\"stop-color\\\",\\\"stroke\\\",\\\"text-decoration-color\\\"]),a.consumeColor=a.consumeParenthesised.bind(null,c),a.mergeColors=d}(d),function(a,b){function c(a){function b(){var b=h.exec(a);g=b?b[0]:void 0}function c(){var a=Number(g);return b(),a}function d(){if(\\\"(\\\"!==g)return c();b();var a=f();return\\\")\\\"!==g?NaN:(b(),a)}function e(){for(var a=d();\\\"*\\\"===g||\\\"/\\\"===g;){var c=g;b();var e=d();\\\"*\\\"===c?a*=e:a/=e}return a}function f(){for(var a=e();\\\"+\\\"===g||\\\"-\\\"===g;){var c=g;b();var d=e();\\\"+\\\"===c?a+=d:a-=d}return a}var g,h=/([\\\\+\\\\-\\\\w\\\\.]+|[\\\\(\\\\)\\\\*\\\\/])/g;return b(),f()}function d(a,b){if(\\\"0\\\"==(b=b.trim().toLowerCase())&&\\\"px\\\".search(a)>=0)return{px:0};if(/^[^(]*$|^calc/.test(b)){b=b.replace(/calc\\\\(/g,\\\"(\\\");var d={};b=b.replace(a,function(a){return d[a]=null,\\\"U\\\"+a});for(var e=\\\"U(\\\"+a.source+\\\")\\\",f=b.replace(/[-+]?(\\\\d*\\\\.)?\\\\d+([Ee][-+]?\\\\d+)?/g,\\\"N\\\").replace(new RegExp(\\\"N\\\"+e,\\\"g\\\"),\\\"D\\\").replace(/\\\\s[+-]\\\\s/g,\\\"O\\\").replace(/\\\\s/g,\\\"\\\"),g=[/N\\\\*(D)/g,/(N|D)[*\\\\/]N/g,/(N|D)O\\\\1/g,/\\\\((N|D)\\\\)/g],h=0;h1?\\\"calc(\\\"+c+\\\")\\\":c}]}var g=\\\"px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc\\\",h=d.bind(null,new RegExp(g,\\\"g\\\")),i=d.bind(null,new RegExp(g+\\\"|%\\\",\\\"g\\\")),j=d.bind(null,/deg|rad|grad|turn/g);a.parseLength=h,a.parseLengthOrPercent=i,a.consumeLengthOrPercent=a.consumeParenthesised.bind(null,i),a.parseAngle=j,a.mergeDimensions=f;var k=a.consumeParenthesised.bind(null,h),l=a.consumeRepeated.bind(void 0,k,/^/),m=a.consumeRepeated.bind(void 0,l,/^,/);a.consumeSizePairList=m;var n=function(a){var b=m(a);if(b&&\\\"\\\"==b[1])return b[0]},o=a.mergeNestedRepeated.bind(void 0,e,\\\" \\\"),p=a.mergeNestedRepeated.bind(void 0,o,\\\",\\\");a.mergeNonNegativeSizePair=o,a.addPropertiesHandler(n,p,[\\\"background-size\\\"]),a.addPropertiesHandler(i,e,[\\\"border-bottom-width\\\",\\\"border-image-width\\\",\\\"border-left-width\\\",\\\"border-right-width\\\",\\\"border-top-width\\\",\\\"flex-basis\\\",\\\"font-size\\\",\\\"height\\\",\\\"line-height\\\",\\\"max-height\\\",\\\"max-width\\\",\\\"outline-width\\\",\\\"width\\\"]),a.addPropertiesHandler(i,f,[\\\"border-bottom-left-radius\\\",\\\"border-bottom-right-radius\\\",\\\"border-top-left-radius\\\",\\\"border-top-right-radius\\\",\\\"bottom\\\",\\\"left\\\",\\\"letter-spacing\\\",\\\"margin-bottom\\\",\\\"margin-left\\\",\\\"margin-right\\\",\\\"margin-top\\\",\\\"min-height\\\",\\\"min-width\\\",\\\"outline-offset\\\",\\\"padding-bottom\\\",\\\"padding-left\\\",\\\"padding-right\\\",\\\"padding-top\\\",\\\"perspective\\\",\\\"right\\\",\\\"shape-margin\\\",\\\"stroke-dashoffset\\\",\\\"text-indent\\\",\\\"top\\\",\\\"vertical-align\\\",\\\"word-spacing\\\"])}(d),function(a,b){function c(b){return a.consumeLengthOrPercent(b)||a.consumeToken(/^auto/,b)}function d(b){var d=a.consumeList([a.ignore(a.consumeToken.bind(null,/^rect/)),a.ignore(a.consumeToken.bind(null,/^\\\\(/)),a.consumeRepeated.bind(null,c,/^,/),a.ignore(a.consumeToken.bind(null,/^\\\\)/))],b);if(d&&4==d[0].length)return d[0]}function e(b,c){return\\\"auto\\\"==b||\\\"auto\\\"==c?[!0,!1,function(d){var e=d?b:c;if(\\\"auto\\\"==e)return\\\"auto\\\";var f=a.mergeDimensions(e,e);return f[2](f[0])}]:a.mergeDimensions(b,c)}function f(a){return\\\"rect(\\\"+a+\\\")\\\"}var g=a.mergeWrappedNestedRepeated.bind(null,f,e,\\\", \\\");a.parseBox=d,a.mergeBoxes=g,a.addPropertiesHandler(d,g,[\\\"clip\\\"])}(d),function(a,b){function c(a){return function(b){var c=0;return a.map(function(a){return a===k?b[c++]:a})}}function d(a){return a}function e(b){if(\\\"none\\\"==(b=b.toLowerCase().trim()))return[];for(var c,d=/\\\\s*(\\\\w+)\\\\(([^)]*)\\\\)/g,e=[],f=0;c=d.exec(b);){if(c.index!=f)return;f=c.index+c[0].length;var g=c[1],h=n[g];if(!h)return;var i=c[2].split(\\\",\\\"),j=h[0];if(j.length900||b%100!=0))return b}function c(b){return b=100*Math.round(b/100),b=a.clamp(100,900,b),400===b?\\\"normal\\\":700===b?\\\"bold\\\":String(b)}function d(a,b){return[a,b,c]}a.addPropertiesHandler(b,d,[\\\"font-weight\\\"])}(d),function(a){function b(a){var b={};for(var c in a)b[c]=-a[c];return b}function c(b){return a.consumeToken(/^(left|center|right|top|bottom)\\\\b/i,b)||a.consumeLengthOrPercent(b)}function d(b,d){var e=a.consumeRepeated(c,/^/,d);if(e&&\\\"\\\"==e[1]){var f=e[0];if(f[0]=f[0]||\\\"center\\\",f[1]=f[1]||\\\"center\\\",3==b&&(f[2]=f[2]||{px:0}),f.length==b){if(/top|bottom/.test(f[0])||/left|right/.test(f[1])){var h=f[0];f[0]=f[1],f[1]=h}if(/left|right|center|Object/.test(f[0])&&/top|bottom|center|Object/.test(f[1]))return f.map(function(a){return\\\"object\\\"==typeof a?a:g[a]})}}}function e(d){var e=a.consumeRepeated(c,/^/,d);if(e){for(var f=e[0],h=[{\\\"%\\\":50},{\\\"%\\\":50}],i=0,j=!1,k=0;k=0&&this._cancelHandlers.splice(c,1)}else i.call(this,a,b)},f}}}(),function(a){var b=document.documentElement,c=null,d=!1;try{var e=getComputedStyle(b).getPropertyValue(\\\"opacity\\\"),f=\\\"0\\\"==e?\\\"1\\\":\\\"0\\\";c=b.animate({opacity:[f,f]},{duration:1}),c.currentTime=0,d=getComputedStyle(b).getPropertyValue(\\\"opacity\\\")==f}catch(a){}finally{c&&c.cancel()}if(!d){var g=window.Element.prototype.animate;window.Element.prototype.animate=function(b,c){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&b[Symbol.iterator]&&(b=Array.from(b)),Array.isArray(b)||null===b||(b=a.convertToArrayForm(b)),g.call(this,b,c)}}}(c),b.true=a}({},function(){return this}());\\n\",\"type\":\"application/javascript\",\"title\":\"$:/plugins/BTC/Muuri/library/web-animations-polyfill.js\",\"module-type\":\"library\"},\"$:/plugins/BTC/Muuri/icons/column\":{\"title\":\"$:/plugins/BTC/Muuri/icons/column\",\"tags\":\"$:/tags/Image\",\"text\":\"<$wikify name=\\\"foregroundColor\\\" text=<>>\\nlength[]match[1]addprefix[12]removesuffix[1]] [length[]match[2]addprefix[10]removesuffix[2]] ~[[8]] }}} font-weight=\\\"bold\\\" fill=<>><>\\n\\n\"},\"$:/plugins/BTC/Muuri/icons/dragging-toggle\":{\"title\":\"$:/plugins/BTC/Muuri/icons/dragging-toggle\",\"tags\":\"$:/tags/Image\",\"text\":\"\\n\"},\"$:/core/images/storyview-muuri\":{\"title\":\"$:/core/images/storyview-muuri\",\"text\":\"\\n\"},\"$:/layout\":{\"title\":\"$:/layout\",\"text\":\"$:/plugins/BTC/Muuri/ui/Layout\"},\"$:/plugins/BTC/Muuri/license\":{\"title\":\"$:/plugins/BTC/Muuri/license\",\"text\":\"!!! This plugin is distributed under MIT license:\\n\\n```\\nMIT License\\n\\nCopyright (c) 2020 Simon Huber\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the \\\"Software\\\"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\\n```\\n\\n!!! The Muuri library is distributed under MIT License:\\n\\n```\\nCopyright (c) 2015, Haltu Oy\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \\\"Software\\\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\\n```\\n\\n!!! Google Material Icons are distributed under Apache 2.0 License:\\n\\n```\\n\\n Apache License\\n Version 2.0, January 2004\\n http://www.apache.org/licenses/\\n\\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\\n\\n 1. Definitions.\\n\\n \\\"License\\\" shall mean the terms and conditions for use, reproduction,\\n and distribution as defined by Sections 1 through 9 of this document.\\n\\n \\\"Licensor\\\" shall mean the copyright owner or entity authorized by\\n the copyright owner that is granting the License.\\n\\n \\\"Legal Entity\\\" shall mean the union of the acting entity and all\\n other entities that control, are controlled by, or are under common\\n control with that entity. For the purposes of this definition,\\n \\\"control\\\" means (i) the power, direct or indirect, to cause the\\n direction or management of such entity, whether by contract or\\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\\n outstanding shares, or (iii) beneficial ownership of such entity.\\n\\n \\\"You\\\" (or \\\"Your\\\") shall mean an individual or Legal Entity\\n exercising permissions granted by this License.\\n\\n \\\"Source\\\" form shall mean the preferred form for making modifications,\\n including but not limited to software source code, documentation\\n source, and configuration files.\\n\\n \\\"Object\\\" form shall mean any form resulting from mechanical\\n transformation or translation of a Source form, including but\\n not limited to compiled object code, generated documentation,\\n and conversions to other media types.\\n\\n \\\"Work\\\" shall mean the work of authorship, whether in Source or\\n Object form, made available under the License, as indicated by a\\n copyright notice that is included in or attached to the work\\n (an example is provided in the Appendix below).\\n\\n \\\"Derivative Works\\\" shall mean any work, whether in Source or Object\\n form, that is based on (or derived from) the Work and for which the\\n editorial revisions, annotations, elaborations, or other modifications\\n represent, as a whole, an original work of authorship. For the purposes\\n of this License, Derivative Works shall not include works that remain\\n separable from, or merely link (or bind by name) to the interfaces of,\\n the Work and Derivative Works thereof.\\n\\n \\\"Contribution\\\" shall mean any work of authorship, including\\n the original version of the Work and any modifications or additions\\n to that Work or Derivative Works thereof, that is intentionally\\n submitted to Licensor for inclusion in the Work by the copyright owner\\n or by an individual or Legal Entity authorized to submit on behalf of\\n the copyright owner. For the purposes of this definition, \\\"submitted\\\"\\n means any form of electronic, verbal, or written communication sent\\n to the Licensor or its representatives, including but not limited to\\n communication on electronic mailing lists, source code control systems,\\n and issue tracking systems that are managed by, or on behalf of, the\\n Licensor for the purpose of discussing and improving the Work, but\\n excluding communication that is conspicuously marked or otherwise\\n designated in writing by the copyright owner as \\\"Not a Contribution.\\\"\\n\\n \\\"Contributor\\\" shall mean Licensor and any individual or Legal Entity\\n on behalf of whom a Contribution has been received by Licensor and\\n subsequently incorporated within the Work.\\n\\n 2. Grant of Copyright License. Subject to the terms and conditions of\\n this License, each Contributor hereby grants to You a perpetual,\\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\\n copyright license to reproduce, prepare Derivative Works of,\\n publicly display, publicly perform, sublicense, and distribute the\\n Work and such Derivative Works in Source or Object form.\\n\\n 3. Grant of Patent License. Subject to the terms and conditions of\\n this License, each Contributor hereby grants to You a perpetual,\\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\\n (except as stated in this section) patent license to make, have made,\\n use, offer to sell, sell, import, and otherwise transfer the Work,\\n where such license applies only to those patent claims licensable\\n by such Contributor that are necessarily infringed by their\\n Contribution(s) alone or by combination of their Contribution(s)\\n with the Work to which such Contribution(s) was submitted. If You\\n institute patent litigation against any entity (including a\\n cross-claim or counterclaim in a lawsuit) alleging that the Work\\n or a Contribution incorporated within the Work constitutes direct\\n or contributory patent infringement, then any patent licenses\\n granted to You under this License for that Work shall terminate\\n as of the date such litigation is filed.\\n\\n 4. Redistribution. You may reproduce and distribute copies of the\\n Work or Derivative Works thereof in any medium, with or without\\n modifications, and in Source or Object form, provided that You\\n meet the following conditions:\\n\\n (a) You must give any other recipients of the Work or\\n Derivative Works a copy of this License; and\\n\\n (b) You must cause any modified files to carry prominent notices\\n stating that You changed the files; and\\n\\n (c) You must retain, in the Source form of any Derivative Works\\n that You distribute, all copyright, patent, trademark, and\\n attribution notices from the Source form of the Work,\\n excluding those notices that do not pertain to any part of\\n the Derivative Works; and\\n\\n (d) If the Work includes a \\\"NOTICE\\\" text file as part of its\\n distribution, then any Derivative Works that You distribute must\\n include a readable copy of the attribution notices contained\\n within such NOTICE file, excluding those notices that do not\\n pertain to any part of the Derivative Works, in at least one\\n of the following places: within a NOTICE text file distributed\\n as part of the Derivative Works; within the Source form or\\n documentation, if provided along with the Derivative Works; or,\\n within a display generated by the Derivative Works, if and\\n wherever such third-party notices normally appear. The contents\\n of the NOTICE file are for informational purposes only and\\n do not modify the License. You may add Your own attribution\\n notices within Derivative Works that You distribute, alongside\\n or as an addendum to the NOTICE text from the Work, provided\\n that such additional attribution notices cannot be construed\\n as modifying the License.\\n\\n You may add Your own copyright statement to Your modifications and\\n may provide additional or different license terms and conditions\\n for use, reproduction, or distribution of Your modifications, or\\n for any such Derivative Works as a whole, provided Your use,\\n reproduction, and distribution of the Work otherwise complies with\\n the conditions stated in this License.\\n\\n 5. Submission of Contributions. Unless You explicitly state otherwise,\\n any Contribution intentionally submitted for inclusion in the Work\\n by You to the Licensor shall be under the terms and conditions of\\n this License, without any additional terms or conditions.\\n Notwithstanding the above, nothing herein shall supersede or modify\\n the terms of any separate license agreement you may have executed\\n with Licensor regarding such Contributions.\\n\\n 6. Trademarks. This License does not grant permission to use the trade\\n names, trademarks, service marks, or product names of the Licensor,\\n except as required for reasonable and customary use in describing the\\n origin of the Work and reproducing the content of the NOTICE file.\\n\\n 7. Disclaimer of Warranty. Unless required by applicable law or\\n agreed to in writing, Licensor provides the Work (and each\\n Contributor provides its Contributions) on an \\\"AS IS\\\" BASIS,\\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\\n implied, including, without limitation, any warranties or conditions\\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\\n PARTICULAR PURPOSE. You are solely responsible for determining the\\n appropriateness of using or redistributing the Work and assume any\\n risks associated with Your exercise of permissions under this License.\\n\\n 8. Limitation of Liability. In no event and under no legal theory,\\n whether in tort (including negligence), contract, or otherwise,\\n unless required by applicable law (such as deliberate and grossly\\n negligent acts) or agreed to in writing, shall any Contributor be\\n liable to You for damages, including any direct, indirect, special,\\n incidental, or consequential damages of any character arising as a\\n result of this License or out of the use or inability to use the\\n Work (including but not limited to damages for loss of goodwill,\\n work stoppage, computer failure or malfunction, or any and all\\n other commercial damages or losses), even if such Contributor\\n has been advised of the possibility of such damages.\\n\\n 9. Accepting Warranty or Additional Liability. While redistributing\\n the Work or Derivative Works thereof, You may choose to offer,\\n and charge a fee for, acceptance of support, warranty, indemnity,\\n or other liability obligations and/or rights consistent with this\\n License. However, in accepting such obligations, You may act only\\n on Your own behalf and on Your sole responsibility, not on behalf\\n of any other Contributor, and only if You agree to indemnify,\\n defend, and hold each Contributor harmless for any liability\\n incurred by, or claims asserted against, such Contributor by reason\\n of your accepting any such warranty or additional liability.\\n\\n END OF TERMS AND CONDITIONS\\n\\n APPENDIX: How to apply the Apache License to your work.\\n\\n To apply the Apache License to your work, attach the following\\n boilerplate notice, with the fields enclosed by brackets \\\"[]\\\"\\n replaced with your own identifying information. (Don't include\\n the brackets!) The text should be enclosed in the appropriate\\n comment syntax for the file format. We also recommend that a\\n file or class name and description of purpose be included on the\\n same \\\"printed page\\\" as the copyright notice for easier\\n identification within third-party archives.\\n\\n Copyright [yyyy] [name of copyright owner]\\n\\n Licensed under the Apache License, Version 2.0 (the \\\"License\\\");\\n you may not use this file except in compliance with the License.\\n You may obtain a copy of the License at\\n\\n http://www.apache.org/licenses/LICENSE-2.0\\n\\n Unless required by applicable law or agreed to in writing, software\\n distributed under the License is distributed on an \\\"AS IS\\\" BASIS,\\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n See the License for the specific language governing permissions and\\n limitations under the License.\\n ```\"},\"$:/plugins/BTC/Muuri/readme\":{\"title\":\"$:/plugins/BTC/Muuri/readme\",\"text\":\"This plugin adds the Muuri ~StoryView to ~TiddlyWiki5\\n\\nThe Muuri ~StoryView allows for building all kinds of layouts\\n\\nSee the usage section for more details\"},\"$:/plugins/BTC/Muuri/css\":{\"title\":\"$:/plugins/BTC/Muuri/css\",\"tags\":\"$:/tags/Stylesheet\",\"muuri-tiddler-width\":\"1\",\"text\":\"\\\\define set-muuri-tiddler-width(suffix)\\n<$list filter=\\\"[{$:/config/muuri/storyview/fill-gaps}!match[yes]]\\\" emptyMessage=\\\"\\\"\\\"\\n\\n\\t.tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame {\\n\\t\\twidth: calc(100$suffix$ / <>);\\n\\t}\\n\\n\\\"\\\"\\\">\\n\\t\\n\\t.tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame {\\n\\t\\twidth: calc((100$suffix$ / <>) - <> - (<> / <>));\\n\\t}\\n\\n\\n\\\\end\\n\\\\define sidebarbreakpoint-minus-one()\\n<$text text={{{ [[$(sidebarBreakPoint)$]removesuffix[px]subtract[1]addsuffix[px]] ~[[$(sidebarBreakPoint)$]] }}}/>\\n\\\\end\\n\\\\define set-muuri-tiddler-padding-high()\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame {\\n\\tpadding: 28px 42px 42px 42px;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-fold-banner, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-fold-banner {\\n\\tmargin-left: -35px;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner {\\n\\tmargin-left: -43px;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner {\\n\\tmargin-top: 0px;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame .tc-tiddler-info, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame .tc-tiddler-info {\\n\\tmargin: 0 -42px 0 -42px;\\n\\tpadding: 14px 42px 14px 42px;\\n}\\n\\\\end\\n\\\\define set-muuri-tiddler-padding-medium()\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame {\\n\\tpadding: 2em;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-fold-banner, .tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-fold-banner, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner {\\n\\tmargin-left: -29px;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner {\\n\\tmargin-top: 0px;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame .tc-tiddler-info, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame .tc-tiddler-info {\\n\\tmargin: 0 -2em 0 -2em;\\n\\tpadding: 0;\\n}\\n\\\\end\\n\\\\define set-muuri-tiddler-padding-low()\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame {\\n\\tpadding: 1em;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-fold-banner, .tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-fold-banner, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner {\\n\\tmargin-left: -15px;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame button.tc-unfold-banner {\\n\\tmargin-top: -6px;\\n}\\n\\n.tc-drag-container > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame .tc-tiddler-info, .tc-story-river.tc-muuri-river > [data-tiddler-title=\\\"$(cssEscapedTitle)$\\\"].tc-tiddler-frame .tc-tiddler-info {\\n\\tmargin: 0 -1em 0 -1em;\\n\\tpadding: 0;\\n}\\n\\\\end\\n\\n.tc-muuri-dragging {\\n\\tz-index: 1;\\n}\\n\\n.muuri-item-shown {\\n\\tposition: absolute;\\n}\\n\\n.tc-drag-container {\\n\\tposition: fixed;\\n\\ttop: 0;\\n\\tleft: 0;\\n\\tz-index: 1000;\\n}\\n\\n<$list filter=\\\"[{$:/view}match[muuri]]\\\" variable=\\\"ignore\\\">\\n\\n\\t<$list filter=\\\"[{$:/config/muuri/storyview/NavigateToAnimation}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t.tc-tiddler-frame .tc-tiddler-title .tc-titlebar {\\n\\t\\t\\tbackground-color: <>;\\n\\t\\t}\\n\\t\\t\\n\\t\\t.tc-tiddler-frame.tc-navigating-to, .tc-tiddler-frame.tc-navigating-to .tc-tiddler-title .tc-titlebar {\\n\\t\\t\\tbackground-color: <$macrocall $name=\\\"colour\\\" name={{{ [[$:/config/muuri/storyview/NavigateToAnimation]get[background]] }}}/>;\\n\\t\\t\\tcolor: <$macrocall $name=\\\"colour\\\" name={{{ [[$:/config/muuri/storyview/NavigateToAnimation]get[foreground]] }}}/>;\\n\\t\\t}\\n\\n\\t\\t.tc-tiddler-frame, .tc-tiddler-frame .tc-tiddler-title .tc-titlebar {\\n\\t\\t\\ttransition: background-color {{$:/config/AnimationDuration}}ms ease-in-out, color {{$:/config/AnimationDuration}}ms ease-in-out;\\n\\t\\t}\\n\\n\\t\\n\\n\\t<$vars count={{{ [{$:/config/muuri/storyview/columns}!match[]] ~[[1]] }}} margin={{$:/config/muuri/tiddler/margin}} marginSuffix={{{ [{$:/config/muuri/storyview/align-right}match[yes]addprefix[right]removesuffix[yes]] ~[[$:/config/muuri/storyview/align-right]is[missing]then[right]] ~[[left]] }}} sidebarBreakPoint={{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}} marginBottom={{$:/config/muuri/tiddler/margin-bottom}} storyHighZIndex={{{ [list[$:/StoryList]count[]add[201]] }}} firstBreakPoint={{$:/config/muuri/storyview/first-break-point}} secondBreakPoint={{$:/config/muuri/storyview/second-break-point}}>\\n\\n\\t\\t@media(min-width:<>) {\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river {\\n\\t\\t\\t\\tmin-height: calc(100vh - 2em);\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\tposition: absolute;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-drag-container > .tc-tiddler-frame, .tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\twidth: calc((100% / <>) - <> - (<> / <>));\\n\\t\\t\\t\\tmargin-<>: <>;\\n\\t\\t\\t\\tmargin-bottom: <>;\\n\\t\\t\\t}\\n\\n\\t\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/horizontal}match[yes]]\\\">\\n\\n\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\twidth: calc((100vw / <>) - <> - (<> / <>));\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river {\\n\\t\\t\\t\\tmargin-top: {{$:/config/muuri/storyview/story-river/margin-top}};\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-sidebar-scrollable {\\n\\t\\t\\t\\tpadding-left: calc(42px - <>);\\n\\t\\t\\t}\\n\\n\\t\\t\\t<$list filter=\\\"[compare:number:gt]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t\\t.tc-drag-container > .tc-tiddler-frame .tc-tiddler-info, .tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-tiddler-info {\\n\\t\\t\\t\\t\\tpadding: 0;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t.tc-drag-container > .tc-tiddler-frame button.tc-fold-banner, .tc-drag-container > .tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-fold-banner, .tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-unfold-banner {\\n\\t\\t\\t\\t\\tmargin-left: -29px;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t<$list filter=\\\"[compare:number:lt]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t\\t\\t.tc-drag-container > .tc-tiddler-frame, .tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\t\\tpadding: 2em;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t.tc-drag-container > .tc-tiddler-frame .tc-tiddler-info, .tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-tiddler-info {\\n\\t\\t\\t\\t\\t\\tmargin: 0 -2em 0 -2em;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t<$list filter=\\\"[compare:number:gteq]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t\\t\\t.tc-drag-container > .tc-tiddler-frame, .tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\t\\tpadding: 1em;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t.tc-drag-container > .tc-tiddler-frame .tc-tiddler-info, .tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-tiddler-info {\\n\\t\\t\\t\\t\\t\\tmargin: 0 -1em 0 -1em;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t.tc-drag-container > .tc-tiddler-frame button.tc-fold-banner, .tc-drag-container > .tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-fold-banner, .tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-unfold-banner {\\n\\t\\t\\t\\t\\t\\tmargin-left: -15px;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t.tc-drag-container > .tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-unfold-banner {\\n\\t\\t\\t\\t\\t\\tmargin-top: -6px;\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\n\\n\\t\\t\\t\\n\\n\\t\\t\\t<$list filter=\\\"[list[$:/StoryList]has[muuri-tiddler-width]] $:/ControlPanel $:/Manager $:/TagManager\\\">\\n\\n\\t\\t\\t\\t<$set name=\\\"columns\\\" value={{{ [get[muuri-tiddler-width]] ~[[1]] }}}>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<$set name=\\\"cssEscapedTitle\\\" value={{{ [escapecss[]] }}}>\\n\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/horizontal}!match[yes]]\\\" emptyMessage=\\\"\\\"\\\"\\n\\n\\t\\t\\t\\t\\t\\t\\t<>\\n\\n\\t\\t\\t\\t\\t\\t\\\"\\\"\\\">\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t<>\\n\\n\\t\\t\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[compare:number:lteq]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t<>\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[compare:number:gt]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[compare:number:lt]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t\\t\\t\\t<$list filter=\\\"[compare:number:gteq]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t\\t\\t\\t\\t\\t<>\\n\\n\\t\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t\\n\\n\\t\\t\\t\\n\\n\\t\\t\\t<$list filter=\\\"[{$:/themes/tiddlywiki/vanilla/options/sidebarlayout}match[fixed-fluid]]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t\\t.tc-sidebar-scrollable {\\n\\t\\t\\t\\t\\tleft: calc({{$:/themes/tiddlywiki/vanilla/metrics/storyright}} + 42px);\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t<$list filter=\\\"[{$:/state/sidebar}!match[no]]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t\\t\\t.tc-story-river.tc-muuri-river {\\n\\t\\t\\t\\t\\t\\twidth: {{$:/themes/tiddlywiki/vanilla/metrics/storywidth}};\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\n\\n\\t\\t\\t\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-fold-banner, .tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-unfold-banner {\\n\\t\\t\\t\\tz-index: -1;\\n\\t\\t\\t}\\n\\n\\t\\t}\\n\\n\\t\\t@media(max-width:<>) {\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\tposition: absolute;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-drag-container > .tc-tiddler-frame, .tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\tmargin-<>: <>;\\n\\t\\t\\t\\tmargin-bottom: <>;\\n\\t\\t\\t}\\n\\n\\t\\t\\t<$list filter=\\\"[compare:number:gteq[2]]\\\">\\n\\n\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\twidth: calc((100% / 2) - <> - (<> / 2));\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\n\\n\\t\\t\\t<$list filter=\\\"[compare:number:lt[2]]\\\">\\n\\n\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\twidth: calc(100% - (<> * 2));\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\n\\n\\t\\t\\t<$list filter=\\\"[list[$:/StoryList]has[muuri-tiddler-width]] $:/ControlPanel $:/Manager $:/TagManager\\\">\\n\\n\\t\\t\\t\\t<$set name=\\\"columns\\\" value={{{ [get[muuri-tiddler-width]compare:number:gteq[2]then[2]else[1]] ~[[1]] }}}>\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t<$set name=\\\"cssEscapedTitle\\\" value={{{ [escapecss[]] }}}>\\n\\n\\t\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/horizontal}!match[yes]]\\\" emptyMessage=\\\"\\\"\\\"\\n\\n\\t\\t\\t\\t\\t\\t\\t<>\\n\\n\\t\\t\\t\\t\\t\\t\\\"\\\"\\\">\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\t\\t<>\\n\\n\\t\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t\\n\\n\\t\\t\\t\\n\\n\\t\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/horizontal}match[yes]]\\\">\\n\\n\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\twidth: calc((100vw / <>) - <> - (<> / <>));\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\n\\n\\t\\t\\t.tc-drag-container > .tc-tiddler-frame .tc-titlebar, .tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-titlebar {\\n\\t\\t\\t\\tfont-size: 1.5em;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-drag-container > .tc-tiddler-frame .tc-titlebar .tc-tiddler-controls .tc-drop-down, .tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-titlebar .tc-tiddler-controls .tc-drop-down {\\n\\t\\t\\t\\tfont-size: 1em;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river {\\n\\t\\t\\t\\tmargin-top: {{$:/config/muuri/storyview/story-river/margin-top}};\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-drag-container > .tc-tiddler-frame .tc-tiddler-info, .tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-tiddler-info {\\n\\t\\t\\t\\tpadding: 0;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-fold-banner, .tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-unfold-banner {\\n\\t\\t\\t\\tz-index: -1;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-drag-container > .tc-tiddler-frame button.tc-unfold-banner, .tc-story-river.tc-muuri-river > .tc-tiddler-frame button.tc-unfold-banner {\\n\\t\\t\\t\\tmargin-left: -15px;\\n\\t\\t\\t\\twidth: calc(100% + 30px);\\n\\t\\t\\t}\\n\\n\\t\\t}\\n\\n\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/drag-enabled}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame img {\\n\\t\\t\\t\\tpointer-events: none;\\n\\t\\t\\t}\\n\\n\\t\\t\\n\\n\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/fill-gaps}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t@media (min-width: <>) {\\n\\n\\t\\t\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/horizontal}!match[yes]]\\\" emptyMessage=\\\"\\\"\\\"\\n\\n\\t\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\t\\twidth: calc(100vw / <>);\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\\"\\\"\\\">\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\t\\twidth: calc(100% / <>);\\n\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t\\n\\t\\t\\t\\t.tc-story-river.tc-muuri-river {\\n\\t\\t\\t\\t\\tmargin-top: 0;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\n\\t\\t\\t@media (max-width: <>) {\\n\\n\\t\\t\\t\\t<$list filter=\\\"[compare:number:gteq[2]]\\\">\\n\\n\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/horizontal}!match[yes]]\\\" emptyMessage=\\\"\\\"\\\"\\n\\n\\t\\t\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\t\\t\\twidth: calc(100vw / 2);\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\\"\\\"\\\">\\n\\n\\t\\t\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\t\\t\\twidth: calc(100% / 2);\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t<$list filter=\\\"[compare:number:lt[2]]\\\">\\n\\n\\t\\t\\t\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/horizontal}!match[yes]]\\\" emptyMessage=\\\"\\\"\\\"\\n\\n\\t\\t\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\t\\t\\twidth: 100vw;\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\\"\\\"\\\">\\n\\n\\t\\t\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\t\\t\\twidth: 100%;\\n\\t\\t\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t\\n\\n\\t\\t\\t\\t.tc-story-river.tc-muuri-river {\\n\\t\\t\\t\\t\\tmargin-top: 0;\\n\\t\\t\\t\\t}\\n\\t\\t\\t}\\n\\t\\n\\t\\t\\t@media(min-width:<>) {\\n\\t\\t\\t\\n\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\tborder: none;\\n\\t\\t\\t\\t\\tborder-radius: 0px;\\n\\t\\t\\t\\t\\tbox-shadow: 1px 1px 1px <>;\\n\\t\\t\\t\\t\\t-webkit-box-shadow: 1px 1px 1px <>;\\n\\t\\t\\t\\t\\t-moz-box-shadow: 1px 1px 1px <>;\\n\\t\\t\\t\\t\\tmargin-top: 0em;\\n\\t\\t\\t\\t\\tmargin-left: 0em;\\n\\t\\t\\t\\t\\tmargin-right: 0em;\\n\\t\\t\\t\\t\\tmargin-bottom: 0em;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\t@media(max-width:<>) {\\n\\t\\t\\t\\n\\t\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\t\\tborder: none;\\n\\t\\t\\t\\t\\tborder-radius: 0px;\\n\\t\\t\\t\\t\\tbox-shadow: 1px 1px 1px <>;\\n\\t\\t\\t\\t\\t-webkit-box-shadow: 1px 1px 1px <>;\\n\\t\\t\\t\\t\\t-moz-box-shadow: 1px 1px 1px <>;\\n\\t\\t\\t\\t\\tmargin-top: 0em;\\n\\t\\t\\t\\t\\tmargin-left: 0em;\\n\\t\\t\\t\\t\\tmargin-right: 0em;\\n\\t\\t\\t\\t\\tmargin-bottom: 0em;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t}\\n\\n\\t\\t\\n\\n\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/drag-enabled}match[no]]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame {\\n\\t\\t\\t\\ttouch-action: auto !important;\\n\\t\\t\\t\\tuser-select: auto !important;\\n\\t\\t\\t\\t-ms-user-select: text !important;\\n\\t\\t\\t\\t-moz-user-select: text !important;\\n\\t\\t\\t\\t-webkit-user-select: text !important;\\n\\t\\t\\t}\\n\\n\\t\\t\\n\\n\\t\\t<$list filter=\\\"[all[tiddlers]prefix[$:/state/popup/more-]limit[1]]\\\">\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-tag-list-item {\\n\\t\\t\\t\\tz-index: -1;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame [data-grid=\\\"muuri\\\"] {\\n\\t\\t\\t\\tz-index: -1 !important;\\n\\t\\t\\t}\\n\\n\\t\\t\\n\\n\\t\\t.tc-story-river.tc-muuri-river {\\n\\t\\t\\tpadding: 0;\\n\\t\\t}\\n\\n\\t\\t<$list filter=\\\"[{$:/themes/tiddlywiki/vanilla/options/stickytitles}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t.tc-tiddler-title {\\n\\t\\t\\t\\tposition: initial;\\n\\t\\t\\t\\ttop: initial;\\n\\t\\t\\t\\tbackground: initial;\\n\\t\\t\\t}\\n\\n\\t\\t\\n\\n\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame.tc-muuri-dragging, .tc-story-river.tc-muuri-river > .tc-tiddler-frame.tc-muuri-releasing, .tc-story-river.tc-muuri-river > .tc-tiddler-frame:focus-within, .tc-story-river.tc-muuri-river > .tc-tiddler-frame.tc-active {\\n\\t\\t\\tz-index: <>;\\n\\t\\t}\\n\\n\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/hide-titles-tags}match[yes]]\\\" variable=\\\"ignore\\\">\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-titlebar, .tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-subtitle, .tc-story-river.tc-muuri-river > .tc-tiddler-frame .tc-tags-wrapper {\\n\\t\\t\\t\\tdisplay: none;\\n\\t\\t\\t}\\n\\n\\t\\t\\n\\n\\t\\t<$list filter=\\\"[{$:/config/muuri/storyview/horizontal}match[yes]]\\\">\\n\\n\\t\\t\\t.tc-sidebar-scrollable {\\n\\t\\t\\t\\tposition: fixed;\\n\\t\\t\\t\\ttop: 0;\\n\\t\\t\\t\\tright: 0;\\n\\t\\t\\t\\tz-index: 999;\\n\\t\\t\\t\\tmax-width: 80vw;\\n\\t\\t\\t\\tbackground-color: <>;\\n\\t\\t\\t}\\n\\n\\t\\t\\t.tc-story-river.tc-muuri-river {\\n\\t\\t\\t\\theight: 100vh;\\n\\t\\t\\t}\\n\\n\\t\\t\\t<$list filter=\\\"[{$:/state/sidebar}match[no]]\\\">\\n\\n\\t\\t\\t\\t.tc-sidebar-scrollable {\\n\\t\\t\\t\\t\\tdisplay: none;\\n\\t\\t\\t\\t}\\n\\n\\t\\t\\t\\n\\n\\t\\t\\n\\n\\t\\n\\n\\n\"},\"$:/plugins/BTC/Muuri/ui/Buttons/column\":{\"title\":\"$:/plugins/BTC/Muuri/ui/Buttons/column\",\"tags\":\"$:/tags/PageControls\",\"text\":\"\\\\define get-columns-tooltip()\\ncolumns [$(shortcutUp)$] / [$(shortcutDown)$]\\n\\\\end\\n\\\\define set-next-column-actions()\\n<$list filter=\\\"[match[normal]]\\\">\\n<$list filter=\\\"[!match]\\\" emptyMessage=\\\"\\\"\\\"\\n<$action-setfield $tiddler=\\\"$:/config/muuri/storyview/columns\\\" text=\\\"1\\\"/>\\n\\\"\\\"\\\">\\n<$action-setfield $tiddler=\\\"$:/config/muuri/storyview/columns\\\" text={{{ [rangeafter] }}}/>\\n\\n\\n<$list filter=\\\"[match{$:/config/muuri/columns/modifier}]\\\">\\n<$list filter=\\\"[!match[1]]\\\" emptyMessage=\\\"\\\"\\\"\\n<$action-setfield $tiddler=\\\"$:/config/muuri/storyview/columns\\\" text=<>/>\\n\\\"\\\"\\\">\\n<$action-setfield $tiddler=\\\"$:/config/muuri/storyview/columns\\\" text={{{ [rangebefore] }}}/>\\n\\n\\n\\\\end\\n\\\\whitespace trim\\n<$vars rangeMax={{$:/config/muuri/storyview/columns/max}} columns={{{ [[$:/config/muuri/storyview/columns]!is[missing]get[text]] ~[[1]] }}} shortcutUp=<> shortcutDown=<>>\\n<$button tooltip=<> aria-label={{$:/language/Buttons/Muuri/Columns/Caption}} class=<> actions=<>>\\n<$list filter=\\\"[prefix[yes]]\\\">\\n{{$:/plugins/BTC/Muuri/icons/column}}\\n\\n<$list filter=\\\"[prefix[yes]]\\\">\\n<$text text=\\\"columns\\\"/>\\n\\n\\n\\n\"},\"$:/plugins/BTC/Muuri/ui/Buttons/dragging-toggle\":{\"title\":\"$:/plugins/BTC/Muuri/ui/Buttons/dragging-toggle\",\"tags\":\"$:/tags/PageControls\",\"text\":\"\\\\define get-button-class(class)\\n$(tv-config-toolbar-class)$ tc-toolbar-icon $class$\\n\\\\end\\n\\\\define get-dragging-tooltip(onoff)\\ndragging $onoff$ - [$(draggingShortcut)$]\\n\\\\end\\n\\n\\\\whitespace trim\\n<$vars draggingShortcut=<> state=\\\"$:/config/muuri/storyview/drag-enabled\\\">\\n<$reveal state=<> type=\\\"nomatch\\\" text=\\\"no\\\">\\n<$button class=<> tooltip=<>>\\n<$action-setfield $tiddler=<> text=\\\"no\\\"/>\\n<$list filter=\\\"[prefix[yes]]\\\">\\n{{$:/plugins/BTC/Muuri/icons/dragging-toggle}}\\n\\n<$list filter=\\\"[prefix[yes]]\\\">\\n<$text text=\\\"dragging\\\"/>\\n\\n\\n\\n<$reveal state=<> type=\\\"match\\\" text=\\\"no\\\">\\n<$button class=<> tooltip=<>>\\n<$action-deletetiddler $tiddler=<>/>\\n<$list filter=\\\"[prefix[yes]]\\\">\\n{{$:/plugins/BTC/Muuri/icons/dragging-toggle}}\\n\\n<$list filter=\\\"[prefix[yes]]\\\">\\n<$text text=\\\"dragging\\\"/>\\n\\n\\n\\n\\n\"},\"$:/plugins/BTC/Muuri/ui/ControlPanel/settings\":{\"title\":\"$:/plugins/BTC/Muuri/ui/ControlPanel/settings\",\"tags\":\"$:/tags/ControlPanel/Appearance\",\"caption\":\"Muuri\",\"text\":\"\\\\define breakpoint-options()\\n<$list filter=\\\"[range[1,$(rangeMax)$]]\\\">\\n\\t\\n\\n\\\\end\\n\\n!!! Should tiddlers that are navigated to animate?\\n\\n<$select tiddler=\\\"$:/config/muuri/storyview/NavigateToAnimation\\\" default=\\\"no\\\">\\n\\t\\n\\t\\n\\n\\n!!! Set the colours for the navigate-to animation\\n\\nbackground: <$edit-text tiddler=\\\"$:/config/muuri/storyview/NavigateToAnimation\\\" field=\\\"background\\\" default=\\\"\\\" placeholder=\\\"background-colour\\\" tag=\\\"input\\\"/>\\n\\nforeground: <$edit-text tiddler=\\\"$:/config/muuri/storyview/NavigateToAnimation\\\" field=\\\"foreground\\\" default=\\\"\\\" placeholder=\\\"foreground-colour\\\" tag=\\\"input\\\"/>\\n\\n!!! Configure the left/right alignment of tiddlers in the ~StoryRiver\\n\\n<$select tiddler=\\\"$:/config/muuri/storyview/align-right\\\" default=\\\"yes\\\">\\n\\t\\n\\t\\n\\n\\n!!! Configure the top/bottom alignment of tiddlers in the ~StoryRiver\\n\\n<$select tiddler=\\\"$:/config/muuri/storyview/align-bottom\\\" default=\\\"no\\\">\\n\\t\\n\\t\\n\\n\\n!!! Configure the vertical / horizontal view\\n\\n<$select tiddler=\\\"$:/config/muuri/storyview/horizontal\\\" default=\\\"no\\\">\\n\\t\\n\\t\\n\\n\\n!!! Configure the modifier key for the columns-button\\n\\n<$select tiddler=\\\"$:/config/muuri/columns/modifier\\\" default=\\\"ctrl\\\">\\n\\t\\n\\t\\n\\t\\n\\t\\n\\n\\n!!! Configure the maximum amount of columns\\n\\n<$edit-text tiddler=\\\"$:/config/muuri/storyview/columns/max\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder=\\\" max-columns\\\"/>\\n\\n!!! Configure the top margin of the ~StoryRiver\\n\\n<$edit-text tiddler=\\\"$:/config/muuri/storyview/story-river/margin-top\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder=\\\" story-river top margin\\\"/>\\n\\n!!! Configure the right and left margin of tiddlers in the ~StoryRiver\\n\\n<$edit-text tiddler=\\\"$:/config/muuri/tiddler/margin\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder=\\\" tiddler left/right margin\\\"/>\\n\\n!!! Configure the bottom margin of tiddlers in the ~StoryRiver\\n\\n<$edit-text tiddler=\\\"$:/config/muuri/tiddler/margin-bottom\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder=\\\" tiddler bottom margin\\\"/>\\n\\n!!! Configure the drag-sort action for tiddlers that are being dragged over other tiddlers in the ~StoryRiver\\n\\n<$select tiddler=\\\"$:/config/muuri/storyview/dragsort-action\\\" default=\\\"move\\\">\\n\\t\\n\\t\\n\\n\\n!!! Configure the drag-sort threshold (after how many percent of overlap between two tiddlers a drag-sort is triggered) for tiddlers that are being dragged over other tiddlers in the ~StoryRiver\\n\\n<$edit-text tiddler=\\\"$:/config/muuri/storyview/dragsort-threshold\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder=\\\" drag-sort threshold\\\"/>\\n\\n!!! Configure the first breakpoint (in columns) after which the padding of tiddlers in the ~StoryRiver becomes smaller\\n\\n<$select tiddler=\\\"$:/config/muuri/storyview/first-break-point\\\" default=\\\"3\\\">\\n\\t<$set name=\\\"rangeMax\\\" value={{$:/config/muuri/storyview/columns/max}}>\\n\\t\\t<>\\n\\t\\n\\n\\n!!! Configure the second breakpoint (in columns) after which the padding of tiddlers in the ~StoryRiver becomes smaller\\n\\n<$select tiddler=\\\"$:/config/muuri/storyview/second-break-point\\\" default=\\\"5\\\">\\n\\t<$set name=\\\"rangeMax\\\" value={{$:/config/muuri/storyview/columns/max}}>\\n\\t\\t<>\\n\\t\\n\\n\\n!!! Configure the visibility of tiddler-titles, subtitles and tags\\n\\n<$select tiddler=\\\"$:/config/muuri/storyview/hide-titles-tags\\\" default=\\\"no\\\">\\n\\t\\n\\t\\n\\n\\n!!! Configure the seamless view of tiddlers in the ~StoryRiver\\n\\n<$select tiddler=\\\"$:/config/muuri/storyview/fill-gaps\\\" default=\\\"no\\\">\\n\\t\\n\\t\\n\\n\\n!!! Configure the `drag-deltatime` (the time the pointer must move before dragging starts)\\n\\n<$edit-text tiddler=\\\"$:/config/muuri/storyview/drag-deltatime\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder=\\\" drag-deltatime\\\"/>\\n\\n!!! Configure the `drag-distance` (the distance the pointer must move before dragging starts)\\n\\n<$edit-text tiddler=\\\"$:/config/muuri/storyview/drag-distance\\\" tag=\\\"input\\\" default=\\\"\\\" placeholder=\\\" drag-distance\\\"/>\"},\"$:/plugins/BTC/Muuri/ui/KeyboardShortcuts/columns-down\":{\"title\":\"$:/plugins/BTC/Muuri/ui/KeyboardShortcuts/columns-down\",\"tags\":\"$:/tags/KeyboardShortcut\",\"key\":\"((columns-down))\",\"text\":\"<$vars rangeMax={{$:/config/muuri/storyview/columns/max}} columns={{{ [[$:/config/muuri/storyview/columns]!is[missing]get[text]] ~[[1]] }}}>\\n<$list filter=\\\"[!match[1]]\\\" emptyMessage=\\\"\\\"\\\"\\n<$action-setfield $tiddler=\\\"$:/config/muuri/storyview/columns\\\" text=<>/>\\n\\\"\\\"\\\">\\n<$action-setfield $tiddler=\\\"$:/config/muuri/storyview/columns\\\" text={{{ [rangebefore] }}}/>\\n\\n\"},\"$:/plugins/BTC/Muuri/ui/KeyboardShortcuts/columns-up\":{\"title\":\"$:/plugins/BTC/Muuri/ui/KeyboardShortcuts/columns-up\",\"tags\":\"$:/tags/KeyboardShortcut\",\"key\":\"((columns-up))\",\"text\":\"<$vars rangeMax={{$:/config/muuri/storyview/columns/max}} columns={{{ [[$:/config/muuri/storyview/columns]!is[missing]get[text]] ~[[1]] }}}>\\n<$list filter=\\\"[!match]\\\" emptyMessage=\\\"\\\"\\\"\\n<$action-setfield $tiddler=\\\"$:/config/muuri/storyview/columns\\\" text=\\\"1\\\"/>\\n\\\"\\\"\\\">\\n<$action-setfield $tiddler=\\\"$:/config/muuri/storyview/columns\\\" text={{{ [rangeafter] }}}/>\\n\\n\"},\"$:/plugins/BTC/Muuri/ui/KeyboardShortcuts/dragging\":{\"title\":\"$:/plugins/BTC/Muuri/ui/KeyboardShortcuts/dragging\",\"key\":\"((dragging))\",\"tags\":\"$:/tags/KeyboardShortcut\",\"text\":\"<$action-listops $tiddler=\\\"$:/config/muuri/storyview/drag-enabled\\\" $field=\\\"text\\\" $subfilter=\\\"+[toggle[yes],[no]]\\\"/>\"},\"$:/plugins/BTC/Muuri/ui/KeyboardShortcuts/vertical-horizontal\":{\"title\":\"$:/plugins/BTC/Muuri/ui/KeyboardShortcuts/vertical-horizontal\",\"tags\":\"$:/tags/KeyboardShortcut\",\"key\":\"((vertical-horizontal))\",\"text\":\"<$set name=\\\"state\\\" value=\\\"$:/config/muuri/storyview/horizontal\\\">\\n<$list filter=\\\"[get[text]!match[yes]]\\\" emptyMessage=\\\"\\\"\\\"\\n<$action-setfield $tiddler=<> text=\\\"no\\\"/>\\n\\\"\\\"\\\">\\n<$action-setfield $tiddler=<> text=\\\"yes\\\"/>\\n\\n\"},\"$:/plugins/BTC/Muuri/ui/Layout\":{\"title\":\"$:/plugins/BTC/Muuri/ui/Layout\",\"tags\":\"$:/tags/Layout\",\"name\":\"Muuri Layout\",\"description\":\"The standard ~TiddlyWiki layout with a special fixed-positioned div on top\",\"text\":\"\\\\whitespace trim\\n\\\\define containerClasses()\\ntc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$\\n\\\\end\\n\\\\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]\\n\\n<$vars\\n\\ttv-config-toolbar-icons={{$:/config/Toolbar/Icons}}\\n\\ttv-config-toolbar-text={{$:/config/Toolbar/Text}}\\n\\ttv-config-toolbar-class={{$:/config/Toolbar/ButtonClass}}\\n\\ttv-enable-drag-and-drop={{$:/config/DragAndDrop/Enable}}\\n\\ttv-show-missing-links={{$:/config/MissingLinks}}\\n\\tstoryviewTitle={{$:/view}}\\n\\tlanguageTitle={{{ [{$:/language}get[name]] }}}>\\n\\n
\\n\\n
>>\\n\\n<$navigator story=\\\"$:/StoryList\\\" history=\\\"$:/HistoryList\\\" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>\\n\\n<$dropzone enable=<>>\\n\\n<$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]\\\" variable=\\\"listItem\\\">\\n\\n<$transclude tiddler=<>/>\\n\\n\\n\\n\\n\\n\\n\\n
\\n\\n\\n\"},\"$:/plugins/BTC/Muuri/usage\":{\"title\":\"$:/plugins/BTC/Muuri/usage\",\"text\":\"You can use the Muuri ~StoryView by adding `storyview=\\\"muuri\\\"` to a list widget and defining the configuration namespace through the attribute `storyViewConfig`\\n\\nThe configuration namespace can for example look like this:\\n\\n```\\nstoryViewConfig=\\\"$:/config/muuri/\\\"\\n```\\n\\nand all configuration options for your Muuri ~StoryView are then done using the namespace `$:/config/muuri/` plus the ''configuration suffix'' shown below\\n\\n!!! Configuration\\n\\n|suffix |purpose |h\\n|drag-enabled |\\\"yes\\\" or \\\"no\\\" - enable or disable dragging |\\n|storylist |the storylist tiddler where list changes through dragging should get saved |\\n|storylist-field |the field of the storylist tiddler (defaults to \\\"list\\\")|\\n|align-right |\\\"yes\\\" or \\\"no\\\" (\\\"yes\\\" by default) - determines if tiddlers are aligned right-to-left or left-to-right |\\n|align-bottom |\\\"yes\\\" or \\\"no\\\" (\\\"no\\\" by default) - determines if tiddlers are aligned top-to-bottom or bottom-to-top |\\n|drop-actions |an action string that gets triggered when dropping an item from another grid to the current one. within the action string, the actionTiddler variable contains the item-title, the modifier variable contains the modifier held while dragging |\\n|dragsort-action |\\\"swap\\\" or \\\"move\\\" (defaults to \\\"move\\\") |\\n|dragsort-threshold |How many percent (defaults to 40) the intersection area between the dragged item and the compared item should be from the maximum potential intersection area between the items before sorting is triggered. |\\n|dragsort-heuristics-interval |Defines the amount of time in ms the dragged item must be still before the drag-sort is started. Defaults to 100 |\\n|container-class |the class that gets applied to the parent element of the list widget. defaults to \\\"tc-muuri-river\\\" |\\n|item-class |the class of the elements that should be included in the muuri grid. defaults to \\\"tc-tiddler-frame\\\" |\\n|drag-handle |a css selector that defines the handle used for dragging. if none is given, the whole item is the handle |\\n|connection-selector |a css selector that defines the grid instances that should be connected with the current grid |\\n|drag-container |a css selector for the container element where the items will be appended to during the time of the drag. defaults to the current grid |\\n|drag-autoscroll-axis |can be \\\"x\\\", \\\"y\\\" or \\\"xy\\\" |\\n\\nThe ''storylist'' can also be defined by the `tv-muuri-story-list` variable\\n\\nThe ''drop-actions'' can also be defined by the `tv-muuri-drop-actions` variable\\n\\n!!! Tips\\n\\nThe field `muuri-tiddler-width` can be used to give tiddlers a fixed width. For example `muuri-tiddler-width = 1` makes the tiddler full-width, `muuri-tiddler-width = 2` makes the tiddler half-width. Also floating-point numbers are allowed\\n\\nWhen you want to drag between two or more different grids, use the `drag-container` configuration to append the dragged item to a parent element of all involved Grids during the time of the drag\\n\\nThe ''class'' `tc-active` is applied to to the item that is being clicked on or dragged. There's always only one item with that class. You can use that class to apply a `z-index` to that element if needed\"}}}","revision":"0","bag":"default"}] \ No newline at end of file diff --git a/templates/tw/$ _plugins_mermaid-tw5.json b/templates/tw/$ _plugins_mermaid-tw5.json new file mode 100644 index 00000000..e2d59a0f --- /dev/null +++ b/templates/tw/$ _plugins_mermaid-tw5.json @@ -0,0 +1 @@ +[{"created":"20211010201548603","text":"{\n \"tiddlers\": {\n \"$:/plugins/mermaid-tw5/wrapper.js\": {\n \"created\": \"20211010222729377\",\n \"text\": \"/*\\ntitle: $:/plugins/mermaid-tw5/wrapper.js\\ntype: application/javascript\\nmodule-type: widget\\nauthor: Nathaniel Jones 2017-05-26\\nmodified: E Furlan 2022-05-08\\n*/\\n(function() {\\n // jslint node: true, browser: true\\n // global $tw: false\\n 'use strict';\\n let uniqueID = 1;\\n let Widget = require(\\\"$:/core/modules/widgets/widget.js\\\")\\n .widget;\\n let Rocklib = require(\\n \\\"$:/plugins/mermaid-tw5/widget-tools.js\\\")\\n .rocklib;\\n if($tw.browser && !window.mermaidAPI) {\\n window.rocklib = new Rocklib();\\n window.mermaidAPI = require(\\n \\\"$:/plugins/mermaid-tw5/mermaid.min.js\\\")\\n .mermaidAPI;\\n }\\n let MermaidWidget = function(parseTreeNode, options) {\\n this.initialise(parseTreeNode, options);\\n };\\n MermaidWidget.prototype = new Widget();\\n // Render this widget into the DOM\\n MermaidWidget.prototype.render = function(parent, nextSibling) {\\n this.parentDomNode = parent;\\n this.computeAttributes();\\n this.execute();\\n let tag = \\\"mermaid\\\";\\n let scriptBody = rocklib.getScriptBody(this, \\\"text\\\");\\n let divNode = rocklib.getCanvas(this, tag);\\n let _insertSVG = function(svgCode, bindFunctions) {\\n divNode.innerHTML = svgCode;\\n };\\n try {\\n let options = {\\n theme: \\\"\\\"\\n };\\n rocklib.getOptions(this, tag, options);\\n window.mermaidAPI.render(divNode.id, scriptBody,\\n _insertSVG);\\n } catch (ex) {\\n divNode.innerText = ex;\\n }\\n parent.insertBefore(divNode, nextSibling);\\n this.domNodes.push(divNode);\\n };\\n MermaidWidget.prototype.execute = function() {\\n // Nothing to do\\n };\\n /*\\n Selectively refreshes the widget if needed. Returns true if the \\n widget or any of its children needed re-rendering\\n */\\n MermaidWidget.prototype.refresh = function(changedTiddlers) {\\n return false;\\n };\\n exports.mermaid = MermaidWidget;\\n})();\",\n \"title\": \"$:/plugins/mermaid-tw5/wrapper.js\",\n \"type\": \"application/javascript\",\n \"modified\": \"20220508170340817\",\n \"module-type\": \"widget\"\n },\n \"$:/plugins/mermaid-tw5/typed-parser.js\": {\n \"created\": \"20211010222845127\",\n \"text\": \"/*\\ntitle: $:/plugins/mermaid-tw5/typed-parser.js\\ntype: application/javascript\\nmodule-type: parser\\nauthor: Nathaniel Jones 2017-05-26\\nmodified: E Furlan 2022-05-08\\n\\nThis parser wraps unadorned railroad syntax into a railroad widget\\n\\n*/\\n(function() {\\n // jslint node: true, browser: true\\n // global $tw: false\\n 'use strict';\\n let MermaidParser = function(type, text, options) {\\n let element = {\\n type: \\\"mermaid\\\",\\n tag: \\\"$mermaid\\\",\\n text: text\\n };\\n this.tree = [element];\\n };\\n exports[\\\"text/vnd.tiddlywiki.mermaid\\\"] = MermaidParser;\\n})();\",\n \"title\": \"$:/plugins/mermaid-tw5/typed-parser.js\",\n \"type\": \"application/javascript\",\n \"modified\": \"20220508170254544\",\n \"module-type\": \"parser\"\n },\n \"$:/plugins/mermaid-tw5/widget-tools.js\": {\n \"created\": \"20220508140238596\",\n \"text\": \"/*\\ntitle: $:/plugins/mermaid-tw5/widget-tools.js\\ntype: application/javascript\\nauthor: Nathaniel Jones 2017-05-26\\nmodified: E Furlan 2022-05-08\\n*/\\n(function() {\\n \\\"use strict\\\";\\n\\n function Rocklib() {\\n this.uniqueID = 1;\\n this.hue = .2;\\n };\\n // tries to un-parse the wikitext. of dubious value\\n Rocklib.prototype.getScriptBody = function(src, attr) {\\n var scriptBody = src.getAttribute(attr, src\\n .parseTreeNode.text || \\\"\\\");\\n if(src.parseTreeNode.text) {\\n scriptBody = src.parseTreeNode.text;\\n } else if(src.parseTreeNode.children) {\\n var kids = src.parseTreeNode.children;\\n for(var k in kids) {\\n var kk = kids[k];\\n switch(kk.type) {\\n // no wikiparsing found\\n case \\\"text\\\":\\n scriptBody += kk.text;\\n break;\\n // internal link, make it a permalink reference\\n case \\\"link\\\":\\n scriptBody += \\\"#\\\" + kk.children[0].text;\\n break;\\n // -- gets interpreted as an HTML element, we\\n // don't want that\\n case \\\"entity\\\":\\n switch(kk.entity) {\\n case \\\"–\\\":\\n scriptBody += \\\"--\\\";\\n break;\\n };\\n break;\\n // just re-write it back out\\n case \\\"element\\\":\\n switch(kk.tag) {\\n case \\\"a\\\":\\n scriptBody += kk.children[0]\\n .text;\\n }\\n };\\n }\\n }\\n return scriptBody;\\n };\\n /*\\n Runs through lots of ways to get options. It can pull them from a \\n named data Tiddler, from the fields of the Tiddler, and from the \\n attributes of the widget specified by 'tag'. Any value pulled is \\n treated as JSON first and then as straight text.\\n @param src\\n @param tag\\n @param options\\n @returns {*}\\n */\\n Rocklib.prototype.getOptions = function(src, tag, options) {\\n try {\\n // try to set options from fields on tiddler first\\n // [tag-xxx]\\n var tt = src.getVariable('currentTiddler');\\n if(tt) {\\n var t = src.wiki.getTiddler(tt);\\n if(t) {\\n // this looks for fields that start with our tag\\n // and then maps a.x to aX since something is\\n // unCamelCasing the vars\\n for(var f in t.fields) {\\n var fi = f.indexOf(tag);\\n if(fi != 0) continue;\\n var k = f.substring(tag.length + 1);\\n var cap = k.indexOf(\\\".\\\");\\n while(cap > -1) {\\n if(k.length < cap + 2) break;\\n k = k.substring(0, cap) + k.charAt(\\n cap + 1)\\n .toUpperCase() + k.substring(\\n cap + 2);\\n cap = k.indexOf(\\\".\\\");\\n }\\n var v = t.fields[f];\\n // try as JSON\\n try {\\n options[k] = JSON.parse(v);\\n }\\n // last attempt is just a string\\n catch (ex) {\\n options[k] = v;\\n }\\n }\\n }\\n }\\n // treat any attributes as JSON representations of options\\n // for the object\\n for(var att in src.attributes) {\\n var attval = src.getAttribute(att);\\n // allow for data from named tiddlers\\n if($tw.wiki.tiddlerExists(attval)) {\\n var data = $tw.wiki.getTiddlerData(attval);\\n options[att] = data;\\n } else {\\n // try as JSON\\n try {\\n options[att] = JSON.parse(attval);\\n }\\n // last attempt is just a string\\n catch (ex) {\\n options[att] = attval;\\n }\\n }\\n }\\n } catch (ex) {\\n console.error(ex);\\n }\\n return options;\\n };\\n /*\\n Retrieves a canvas to work with based on the calling functions \\n need of a \\\"div\\\" or \\\"canvas\\\" element\\n @param src\\n @param tag\\n @param type\\n @returns {Element}\\n */\\n Rocklib.prototype.getCanvas = function(src, tag, type) {\\n type = typeof(type) === \\\"undefined\\\" ? \\\"div\\\" : type;\\n var height = src.getAttribute(\\\"height\\\");\\n var width = src.getAttribute(\\\"width\\\");\\n var canvas = src.document.createElement(type);\\n var style = \\\"\\\";\\n if(type === \\\"canvas\\\") {\\n if(width) canvas.width = width;\\n if(height) canvas.height = height;\\n } else {\\n if(height) style += \\\" height:\\\" + height;\\n if(width) style += \\\" width:\\\" + width;\\n if(style) canvas.setAttribute(\\\"style\\\", style);\\n }\\n canvas.setAttribute(\\\"id\\\", tag + \\\"_\\\" + this.uniqueID);\\n this.uniqueID++;\\n return canvas;\\n };\\n /*\\n Based on \\n @param s\\n @param v\\n @returns {string}\\n */\\n Rocklib.prototype.nextColor = function(s, v) {\\n var golden_ratio_conjugate = 0.618033988749895\\n this.hue += golden_ratio_conjugate;\\n this.hue %= 1;\\n var rgb = this.hsv_to_rgb(this.hue, s, v);\\n return \\\"#\\\" + rgb.r.toString(16) + rgb.g.toString(16) +\\n rgb.b.toString(16);\\n };\\n /*\\n Taken from \\n accepts parameters\\n r Object = {r:x, g:y, b:z}\\n OR\\n r, g, b\\n */\\n Rocklib.prototype.rgb_to_hsv = function(r, g, b) {\\n if(arguments.length === 1) {\\n g = r.g, b = r.b, r = r.r;\\n }\\n var max = Math.max(r, g, b),\\n min = Math.min(r, g, b),\\n d = max - min,\\n h,\\n s = (max === 0 ? 0 : d / max),\\n v = max / 255;\\n switch(max) {\\n case min:\\n h = 0;\\n break;\\n case r:\\n h = (g - b) + d * (g < b ? 6 : 0);\\n h /= 6 * d;\\n break;\\n case g:\\n h = (b - r) + d * 2;\\n h /= 6 * d;\\n break;\\n case b:\\n h = (r - g) + d * 4;\\n h /= 6 * d;\\n break;\\n }\\n return {\\n h: h,\\n s: s,\\n v: v\\n };\\n };\\n /*\\n Taken from \\n accepts parameters\\n h Object = {h:x, s:y, v:z}\\n OR\\n h, s, v\\n */\\n Rocklib.prototype.hsv_to_rgb = function(h, s, v) {\\n var r, g, b, i, f, p, q, t;\\n if(arguments.length === 1) {\\n s = h.s, v = h.v, h = h.h;\\n }\\n i = Math.floor(h * 6);\\n f = h * 6 - i;\\n p = v * (1 - s);\\n q = v * (1 - f * s);\\n t = v * (1 - (1 - f) * s);\\n switch(i % 6) {\\n case 0:\\n r = v, g = t, b = p;\\n break;\\n case 1:\\n r = q, g = v, b = p;\\n break;\\n case 2:\\n r = p, g = v, b = t;\\n break;\\n case 3:\\n r = p, g = q, b = v;\\n break;\\n case 4:\\n r = t, g = p, b = v;\\n break;\\n case 5:\\n r = v, g = p, b = q;\\n break;\\n }\\n return {\\n r: Math.round(r * 255),\\n g: Math.round(g * 255),\\n b: Math.round(b * 255)\\n };\\n };\\n exports.rocklib = Rocklib;\\n})();\",\n \"type\": \"application/javascript\",\n \"title\": \"$:/plugins/mermaid-tw5/widget-tools.js\",\n \"module-type\": \"library\",\n \"modified\": \"20220508170319802\"\n },\n \"$:/plugins/mermaid-tw5/mermaid.min.js\": {\n \"created\": \"20211010223054043\",\n \"text\": \"/*! For license information please see mermaid.min.js.LICENSE.txt */\\n!function(t,e){\\\"object\\\"==typeof exports&&\\\"object\\\"==typeof module?module.exports=e():\\\"function\\\"==typeof define&&define.amd?define([],e):\\\"object\\\"==typeof exports?exports.mermaid=e():t.mermaid=e()}(\\\"undefined\\\"!=typeof self?self:this,(()=>(()=>{var t={1362:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,7],r=[1,8],i=[1,9],a=[1,10],o=[1,13],s=[1,12],c=[1,16,25],u=[1,20],l=[1,31],h=[1,32],f=[1,33],d=[1,35],p=[1,38],g=[1,36],y=[1,37],m=[1,39],v=[1,40],b=[1,41],_=[1,42],x=[1,45],w=[1,46],k=[1,47],T=[1,48],C=[16,25],E=[1,62],S=[1,63],A=[1,64],M=[1,65],N=[1,66],D=[1,67],B=[16,25,32,44,45,53,56,57,58,59,60,61,66,68],L=[16,25,30,32,44,45,49,53,56,57,58,59,60,61,66,68,83,84,85,86],O=[5,8,9,10,11,16,19,23,25],I=[53,83,84,85,86],R=[53,60,61,83,84,85,86],F=[53,56,57,58,59,83,84,85,86],P=[16,25,32],Y=[1,99],j={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statments:5,direction:6,directive:7,direction_tb:8,direction_bt:9,direction_rl:10,direction_lr:11,graphConfig:12,openDirective:13,typeDirective:14,closeDirective:15,NEWLINE:16,\\\":\\\":17,argDirective:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,CLASS_DIAGRAM:23,statements:24,EOF:25,statement:26,className:27,alphaNumToken:28,classLiteralName:29,GENERICTYPE:30,relationStatement:31,LABEL:32,classStatement:33,methodStatement:34,annotationStatement:35,clickStatement:36,cssClassStatement:37,acc_title:38,acc_title_value:39,acc_descr:40,acc_descr_value:41,acc_descr_multiline_value:42,CLASS:43,STYLE_SEPARATOR:44,STRUCT_START:45,members:46,STRUCT_STOP:47,ANNOTATION_START:48,ANNOTATION_END:49,MEMBER:50,SEPARATOR:51,relation:52,STR:53,relationType:54,lineType:55,AGGREGATION:56,EXTENSION:57,COMPOSITION:58,DEPENDENCY:59,LINE:60,DOTTED_LINE:61,CALLBACK:62,LINK:63,LINK_TARGET:64,CLICK:65,CALLBACK_NAME:66,CALLBACK_ARGS:67,HREF:68,CSSCLASS:69,commentToken:70,textToken:71,graphCodeTokens:72,textNoTagsToken:73,TAGSTART:74,TAGEND:75,\\\"==\\\":76,\\\"--\\\":77,PCT:78,DEFAULT:79,SPACE:80,MINUS:81,keywords:82,UNICODE_TEXT:83,NUM:84,ALPHA:85,BQUOTE_STR:86,$accept:0,$end:1},terminals_:{2:\\\"error\\\",5:\\\"statments\\\",8:\\\"direction_tb\\\",9:\\\"direction_bt\\\",10:\\\"direction_rl\\\",11:\\\"direction_lr\\\",16:\\\"NEWLINE\\\",17:\\\":\\\",19:\\\"open_directive\\\",20:\\\"type_directive\\\",21:\\\"arg_directive\\\",22:\\\"close_directive\\\",23:\\\"CLASS_DIAGRAM\\\",25:\\\"EOF\\\",30:\\\"GENERICTYPE\\\",32:\\\"LABEL\\\",38:\\\"acc_title\\\",39:\\\"acc_title_value\\\",40:\\\"acc_descr\\\",41:\\\"acc_descr_value\\\",42:\\\"acc_descr_multiline_value\\\",43:\\\"CLASS\\\",44:\\\"STYLE_SEPARATOR\\\",45:\\\"STRUCT_START\\\",47:\\\"STRUCT_STOP\\\",48:\\\"ANNOTATION_START\\\",49:\\\"ANNOTATION_END\\\",50:\\\"MEMBER\\\",51:\\\"SEPARATOR\\\",53:\\\"STR\\\",56:\\\"AGGREGATION\\\",57:\\\"EXTENSION\\\",58:\\\"COMPOSITION\\\",59:\\\"DEPENDENCY\\\",60:\\\"LINE\\\",61:\\\"DOTTED_LINE\\\",62:\\\"CALLBACK\\\",63:\\\"LINK\\\",64:\\\"LINK_TARGET\\\",65:\\\"CLICK\\\",66:\\\"CALLBACK_NAME\\\",67:\\\"CALLBACK_ARGS\\\",68:\\\"HREF\\\",69:\\\"CSSCLASS\\\",72:\\\"graphCodeTokens\\\",74:\\\"TAGSTART\\\",75:\\\"TAGEND\\\",76:\\\"==\\\",77:\\\"--\\\",78:\\\"PCT\\\",79:\\\"DEFAULT\\\",80:\\\"SPACE\\\",81:\\\"MINUS\\\",82:\\\"keywords\\\",83:\\\"UNICODE_TEXT\\\",84:\\\"NUM\\\",85:\\\"ALPHA\\\",86:\\\"BQUOTE_STR\\\"},productions_:[0,[3,1],[3,1],[3,1],[3,2],[6,1],[6,1],[6,1],[6,1],[4,1],[7,4],[7,6],[13,1],[14,1],[18,1],[15,1],[12,4],[24,1],[24,2],[24,3],[27,1],[27,1],[27,2],[27,2],[27,2],[26,1],[26,2],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,2],[26,2],[26,1],[33,2],[33,4],[33,5],[33,7],[35,4],[46,1],[46,2],[34,1],[34,2],[34,1],[34,1],[31,3],[31,4],[31,4],[31,5],[52,3],[52,2],[52,2],[52,1],[54,1],[54,1],[54,1],[54,1],[55,1],[55,1],[36,3],[36,4],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[36,3],[36,4],[36,4],[36,5],[37,3],[70,1],[70,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[71,1],[73,1],[73,1],[73,1],[73,1],[28,1],[28,1],[28,1],[29,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.setDirection(\\\"TB\\\");break;case 6:r.setDirection(\\\"BT\\\");break;case 7:r.setDirection(\\\"RL\\\");break;case 8:r.setDirection(\\\"LR\\\");break;case 12:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 13:r.parseDirective(a[s],\\\"type_directive\\\");break;case 14:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 15:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"class\\\");break;case 20:case 21:this.$=a[s];break;case 22:this.$=a[s-1]+a[s];break;case 23:case 24:this.$=a[s-1]+\\\"~\\\"+a[s];break;case 25:r.addRelation(a[s]);break;case 26:a[s-1].title=r.cleanupLabel(a[s]),r.addRelation(a[s-1]);break;case 34:this.$=a[s].trim(),r.setTitle(this.$);break;case 35:case 36:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 37:r.addClass(a[s]);break;case 38:r.addClass(a[s-2]),r.setCssClass(a[s-2],a[s]);break;case 39:r.addClass(a[s-3]),r.addMembers(a[s-3],a[s-1]);break;case 40:r.addClass(a[s-5]),r.setCssClass(a[s-5],a[s-3]),r.addMembers(a[s-5],a[s-1]);break;case 41:r.addAnnotation(a[s],a[s-2]);break;case 42:this.$=[a[s]];break;case 43:a[s].push(a[s-1]),this.$=a[s];break;case 44:case 46:case 47:break;case 45:r.addMember(a[s-1],r.cleanupLabel(a[s]));break;case 48:this.$={id1:a[s-2],id2:a[s],relation:a[s-1],relationTitle1:\\\"none\\\",relationTitle2:\\\"none\\\"};break;case 49:this.$={id1:a[s-3],id2:a[s],relation:a[s-1],relationTitle1:a[s-2],relationTitle2:\\\"none\\\"};break;case 50:this.$={id1:a[s-3],id2:a[s],relation:a[s-2],relationTitle1:\\\"none\\\",relationTitle2:a[s-1]};break;case 51:this.$={id1:a[s-4],id2:a[s],relation:a[s-2],relationTitle1:a[s-3],relationTitle2:a[s-1]};break;case 52:this.$={type1:a[s-2],type2:a[s],lineType:a[s-1]};break;case 53:this.$={type1:\\\"none\\\",type2:a[s],lineType:a[s-1]};break;case 54:this.$={type1:a[s-1],type2:\\\"none\\\",lineType:a[s]};break;case 55:this.$={type1:\\\"none\\\",type2:\\\"none\\\",lineType:a[s]};break;case 56:this.$=r.relationType.AGGREGATION;break;case 57:this.$=r.relationType.EXTENSION;break;case 58:this.$=r.relationType.COMPOSITION;break;case 59:this.$=r.relationType.DEPENDENCY;break;case 60:this.$=r.lineType.LINE;break;case 61:this.$=r.lineType.DOTTED_LINE;break;case 62:case 68:this.$=a[s-2],r.setClickEvent(a[s-1],a[s]);break;case 63:case 69:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 64:case 72:this.$=a[s-2],r.setLink(a[s-1],a[s]);break;case 65:case 73:this.$=a[s-3],r.setLink(a[s-2],a[s-1],a[s]);break;case 66:case 74:this.$=a[s-3],r.setLink(a[s-2],a[s-1]),r.setTooltip(a[s-2],a[s]);break;case 67:case 75:this.$=a[s-4],r.setLink(a[s-3],a[s-2],a[s]),r.setTooltip(a[s-3],a[s-1]);break;case 70:this.$=a[s-3],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 71:this.$=a[s-4],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setTooltip(a[s-3],a[s]);break;case 76:r.setCssClass(a[s-1],a[s])}},table:[{3:1,4:2,5:e,6:4,7:5,8:n,9:r,10:i,11:a,12:6,13:11,19:o,23:s},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{3:14,4:2,5:e,6:4,7:5,8:n,9:r,10:i,11:a,12:6,13:11,19:o,23:s},{1:[2,9]},t(c,[2,5]),t(c,[2,6]),t(c,[2,7]),t(c,[2,8]),{14:15,20:[1,16]},{16:[1,17]},{20:[2,12]},{1:[2,4]},{15:18,17:[1,19],22:u},t([17,22],[2,13]),{6:30,7:29,8:n,9:r,10:i,11:a,13:11,19:o,24:21,26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:l,40:h,42:f,43:d,48:p,50:g,51:y,62:m,63:v,65:b,69:_,83:x,84:w,85:k,86:T},{16:[1,49]},{18:50,21:[1,51]},{16:[2,15]},{25:[1,52]},{16:[1,53],25:[2,17]},t(C,[2,25],{32:[1,54]}),t(C,[2,27]),t(C,[2,28]),t(C,[2,29]),t(C,[2,30]),t(C,[2,31]),t(C,[2,32]),t(C,[2,33]),{39:[1,55]},{41:[1,56]},t(C,[2,36]),t(C,[2,44],{52:57,54:60,55:61,32:[1,59],53:[1,58],56:E,57:S,58:A,59:M,60:N,61:D}),{27:68,28:43,29:44,83:x,84:w,85:k,86:T},t(C,[2,46]),t(C,[2,47]),{28:69,83:x,84:w,85:k},{27:70,28:43,29:44,83:x,84:w,85:k,86:T},{27:71,28:43,29:44,83:x,84:w,85:k,86:T},{27:72,28:43,29:44,83:x,84:w,85:k,86:T},{53:[1,73]},t(B,[2,20],{28:43,29:44,27:74,30:[1,75],83:x,84:w,85:k,86:T}),t(B,[2,21],{30:[1,76]}),t(L,[2,90]),t(L,[2,91]),t(L,[2,92]),t([16,25,30,32,44,45,53,56,57,58,59,60,61,66,68],[2,93]),t(O,[2,10]),{15:77,22:u},{22:[2,14]},{1:[2,16]},{6:30,7:29,8:n,9:r,10:i,11:a,13:11,19:o,24:78,25:[2,18],26:22,27:34,28:43,29:44,31:23,33:24,34:25,35:26,36:27,37:28,38:l,40:h,42:f,43:d,48:p,50:g,51:y,62:m,63:v,65:b,69:_,83:x,84:w,85:k,86:T},t(C,[2,26]),t(C,[2,34]),t(C,[2,35]),{27:79,28:43,29:44,53:[1,80],83:x,84:w,85:k,86:T},{52:81,54:60,55:61,56:E,57:S,58:A,59:M,60:N,61:D},t(C,[2,45]),{55:82,60:N,61:D},t(I,[2,55],{54:83,56:E,57:S,58:A,59:M}),t(R,[2,56]),t(R,[2,57]),t(R,[2,58]),t(R,[2,59]),t(F,[2,60]),t(F,[2,61]),t(C,[2,37],{44:[1,84],45:[1,85]}),{49:[1,86]},{53:[1,87]},{53:[1,88]},{66:[1,89],68:[1,90]},{28:91,83:x,84:w,85:k},t(B,[2,22]),t(B,[2,23]),t(B,[2,24]),{16:[1,92]},{25:[2,19]},t(P,[2,48]),{27:93,28:43,29:44,83:x,84:w,85:k,86:T},{27:94,28:43,29:44,53:[1,95],83:x,84:w,85:k,86:T},t(I,[2,54],{54:96,56:E,57:S,58:A,59:M}),t(I,[2,53]),{28:97,83:x,84:w,85:k},{46:98,50:Y},{27:100,28:43,29:44,83:x,84:w,85:k,86:T},t(C,[2,62],{53:[1,101]}),t(C,[2,64],{53:[1,103],64:[1,102]}),t(C,[2,68],{53:[1,104],67:[1,105]}),t(C,[2,72],{53:[1,107],64:[1,106]}),t(C,[2,76]),t(O,[2,11]),t(P,[2,50]),t(P,[2,49]),{27:108,28:43,29:44,83:x,84:w,85:k,86:T},t(I,[2,52]),t(C,[2,38],{45:[1,109]}),{47:[1,110]},{46:111,47:[2,42],50:Y},t(C,[2,41]),t(C,[2,63]),t(C,[2,65]),t(C,[2,66],{64:[1,112]}),t(C,[2,69]),t(C,[2,70],{53:[1,113]}),t(C,[2,73]),t(C,[2,74],{64:[1,114]}),t(P,[2,51]),{46:115,50:Y},t(C,[2,39]),{47:[2,43]},t(C,[2,67]),t(C,[2,71]),t(C,[2,75]),{47:[1,116]},t(C,[2,40])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],6:[2,9],13:[2,12],14:[2,4],20:[2,15],51:[2,14],52:[2,16],78:[2,19],111:[2,43]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},U={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin(\\\"open_directive\\\"),19;case 1:return 8;case 2:return 9;case 3:return 10;case 4:return 11;case 5:return this.begin(\\\"type_directive\\\"),20;case 6:return this.popState(),this.begin(\\\"arg_directive\\\"),17;case 7:return this.popState(),this.popState(),22;case 8:return 21;case 9:case 10:case 19:case 26:break;case 11:return this.begin(\\\"acc_title\\\"),38;case 12:return this.popState(),\\\"acc_title_value\\\";case 13:return this.begin(\\\"acc_descr\\\"),40;case 14:return this.popState(),\\\"acc_descr_value\\\";case 15:this.begin(\\\"acc_descr_multiline\\\");break;case 16:case 36:case 39:case 42:case 45:case 48:case 51:this.popState();break;case 17:return\\\"acc_descr_multiline_value\\\";case 18:return 16;case 20:case 21:return 23;case 22:return this.begin(\\\"struct\\\"),45;case 23:return\\\"EOF_IN_STRUCT\\\";case 24:return\\\"OPEN_IN_STRUCT\\\";case 25:return this.popState(),47;case 27:return\\\"MEMBER\\\";case 28:return 43;case 29:return 69;case 30:return 62;case 31:return 63;case 32:return 65;case 33:return 48;case 34:return 49;case 35:this.begin(\\\"generic\\\");break;case 37:return\\\"GENERICTYPE\\\";case 38:this.begin(\\\"string\\\");break;case 40:return\\\"STR\\\";case 41:this.begin(\\\"bqstring\\\");break;case 43:return\\\"BQUOTE_STR\\\";case 44:this.begin(\\\"href\\\");break;case 46:return 68;case 47:this.begin(\\\"callback_name\\\");break;case 49:this.popState(),this.begin(\\\"callback_args\\\");break;case 50:return 66;case 52:return 67;case 53:case 54:case 55:case 56:return 64;case 57:case 58:return 57;case 59:case 60:return 59;case 61:return 58;case 62:return 56;case 63:return 60;case 64:return 61;case 65:return 32;case 66:return 44;case 67:return 81;case 68:return\\\"DOT\\\";case 69:return\\\"PLUS\\\";case 70:return 78;case 71:case 72:return\\\"EQUALS\\\";case 73:return 85;case 74:return\\\"PUNCTUATION\\\";case 75:return 84;case 76:return 83;case 77:return 80;case 78:return 25}},rules:[/^(?:%%\\\\{)/,/^(?:.*direction\\\\s+TB[^\\\\n]*)/,/^(?:.*direction\\\\s+BT[^\\\\n]*)/,/^(?:.*direction\\\\s+RL[^\\\\n]*)/,/^(?:.*direction\\\\s+LR[^\\\\n]*)/,/^(?:((?:(?!\\\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\\\}%%)/,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/,/^(?:%%(?!\\\\{)*[^\\\\n]*(\\\\r?\\\\n?)+)/,/^(?:%%[^\\\\n]*(\\\\r?\\\\n)*)/,/^(?:accTitle\\\\s*:\\\\s*)/,/^(?:(?!\\\\n||)*[^\\\\n]*)/,/^(?:accDescr\\\\s*:\\\\s*)/,/^(?:(?!\\\\n||)*[^\\\\n]*)/,/^(?:accDescr\\\\s*\\\\{\\\\s*)/,/^(?:[\\\\}])/,/^(?:[^\\\\}]*)/,/^(?:\\\\s*(\\\\r?\\\\n)+)/,/^(?:\\\\s+)/,/^(?:classDiagram-v2\\\\b)/,/^(?:classDiagram\\\\b)/,/^(?:[{])/,/^(?:$)/,/^(?:[{])/,/^(?:[}])/,/^(?:[\\\\n])/,/^(?:[^{}\\\\n]*)/,/^(?:class\\\\b)/,/^(?:cssClass\\\\b)/,/^(?:callback\\\\b)/,/^(?:link\\\\b)/,/^(?:click\\\\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:[~])/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:[\\\"])/,/^(?:[\\\"])/,/^(?:[^\\\"]*)/,/^(?:[`])/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:href[\\\\s]+[\\\"])/,/^(?:[\\\"])/,/^(?:[^\\\"]*)/,/^(?:call[\\\\s]+)/,/^(?:\\\\([\\\\s]*\\\\))/,/^(?:\\\\()/,/^(?:[^(]*)/,/^(?:\\\\))/,/^(?:[^)]*)/,/^(?:_self\\\\b)/,/^(?:_blank\\\\b)/,/^(?:_parent\\\\b)/,/^(?:_top\\\\b)/,/^(?:\\\\s*<\\\\|)/,/^(?:\\\\s*\\\\|>)/,/^(?:\\\\s*>)/,/^(?:\\\\s*<)/,/^(?:\\\\s*\\\\*)/,/^(?:\\\\s*o\\\\b)/,/^(?:--)/,/^(?:\\\\.\\\\.)/,/^(?::{1}[^:\\\\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\\\\.)/,/^(?:\\\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\\\\w+)/,/^(?:[!\\\"#$%&'*+,-.`?\\\\\\\\/])/,/^(?:[0-9]+)/,/^(?:[\\\\u00AA\\\\u00B5\\\\u00BA\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6]|[\\\\u00F8-\\\\u02C1\\\\u02C6-\\\\u02D1\\\\u02E0-\\\\u02E4\\\\u02EC\\\\u02EE\\\\u0370-\\\\u0374\\\\u0376\\\\u0377]|[\\\\u037A-\\\\u037D\\\\u0386\\\\u0388-\\\\u038A\\\\u038C\\\\u038E-\\\\u03A1\\\\u03A3-\\\\u03F5]|[\\\\u03F7-\\\\u0481\\\\u048A-\\\\u0527\\\\u0531-\\\\u0556\\\\u0559\\\\u0561-\\\\u0587\\\\u05D0-\\\\u05EA]|[\\\\u05F0-\\\\u05F2\\\\u0620-\\\\u064A\\\\u066E\\\\u066F\\\\u0671-\\\\u06D3\\\\u06D5\\\\u06E5\\\\u06E6\\\\u06EE]|[\\\\u06EF\\\\u06FA-\\\\u06FC\\\\u06FF\\\\u0710\\\\u0712-\\\\u072F\\\\u074D-\\\\u07A5\\\\u07B1\\\\u07CA-\\\\u07EA]|[\\\\u07F4\\\\u07F5\\\\u07FA\\\\u0800-\\\\u0815\\\\u081A\\\\u0824\\\\u0828\\\\u0840-\\\\u0858\\\\u08A0]|[\\\\u08A2-\\\\u08AC\\\\u0904-\\\\u0939\\\\u093D\\\\u0950\\\\u0958-\\\\u0961\\\\u0971-\\\\u0977]|[\\\\u0979-\\\\u097F\\\\u0985-\\\\u098C\\\\u098F\\\\u0990\\\\u0993-\\\\u09A8\\\\u09AA-\\\\u09B0\\\\u09B2]|[\\\\u09B6-\\\\u09B9\\\\u09BD\\\\u09CE\\\\u09DC\\\\u09DD\\\\u09DF-\\\\u09E1\\\\u09F0\\\\u09F1\\\\u0A05-\\\\u0A0A]|[\\\\u0A0F\\\\u0A10\\\\u0A13-\\\\u0A28\\\\u0A2A-\\\\u0A30\\\\u0A32\\\\u0A33\\\\u0A35\\\\u0A36\\\\u0A38\\\\u0A39]|[\\\\u0A59-\\\\u0A5C\\\\u0A5E\\\\u0A72-\\\\u0A74\\\\u0A85-\\\\u0A8D\\\\u0A8F-\\\\u0A91\\\\u0A93-\\\\u0AA8]|[\\\\u0AAA-\\\\u0AB0\\\\u0AB2\\\\u0AB3\\\\u0AB5-\\\\u0AB9\\\\u0ABD\\\\u0AD0\\\\u0AE0\\\\u0AE1\\\\u0B05-\\\\u0B0C]|[\\\\u0B0F\\\\u0B10\\\\u0B13-\\\\u0B28\\\\u0B2A-\\\\u0B30\\\\u0B32\\\\u0B33\\\\u0B35-\\\\u0B39\\\\u0B3D\\\\u0B5C]|[\\\\u0B5D\\\\u0B5F-\\\\u0B61\\\\u0B71\\\\u0B83\\\\u0B85-\\\\u0B8A\\\\u0B8E-\\\\u0B90\\\\u0B92-\\\\u0B95\\\\u0B99]|[\\\\u0B9A\\\\u0B9C\\\\u0B9E\\\\u0B9F\\\\u0BA3\\\\u0BA4\\\\u0BA8-\\\\u0BAA\\\\u0BAE-\\\\u0BB9\\\\u0BD0]|[\\\\u0C05-\\\\u0C0C\\\\u0C0E-\\\\u0C10\\\\u0C12-\\\\u0C28\\\\u0C2A-\\\\u0C33\\\\u0C35-\\\\u0C39\\\\u0C3D]|[\\\\u0C58\\\\u0C59\\\\u0C60\\\\u0C61\\\\u0C85-\\\\u0C8C\\\\u0C8E-\\\\u0C90\\\\u0C92-\\\\u0CA8\\\\u0CAA-\\\\u0CB3]|[\\\\u0CB5-\\\\u0CB9\\\\u0CBD\\\\u0CDE\\\\u0CE0\\\\u0CE1\\\\u0CF1\\\\u0CF2\\\\u0D05-\\\\u0D0C\\\\u0D0E-\\\\u0D10]|[\\\\u0D12-\\\\u0D3A\\\\u0D3D\\\\u0D4E\\\\u0D60\\\\u0D61\\\\u0D7A-\\\\u0D7F\\\\u0D85-\\\\u0D96\\\\u0D9A-\\\\u0DB1]|[\\\\u0DB3-\\\\u0DBB\\\\u0DBD\\\\u0DC0-\\\\u0DC6\\\\u0E01-\\\\u0E30\\\\u0E32\\\\u0E33\\\\u0E40-\\\\u0E46\\\\u0E81]|[\\\\u0E82\\\\u0E84\\\\u0E87\\\\u0E88\\\\u0E8A\\\\u0E8D\\\\u0E94-\\\\u0E97\\\\u0E99-\\\\u0E9F\\\\u0EA1-\\\\u0EA3]|[\\\\u0EA5\\\\u0EA7\\\\u0EAA\\\\u0EAB\\\\u0EAD-\\\\u0EB0\\\\u0EB2\\\\u0EB3\\\\u0EBD\\\\u0EC0-\\\\u0EC4\\\\u0EC6]|[\\\\u0EDC-\\\\u0EDF\\\\u0F00\\\\u0F40-\\\\u0F47\\\\u0F49-\\\\u0F6C\\\\u0F88-\\\\u0F8C\\\\u1000-\\\\u102A]|[\\\\u103F\\\\u1050-\\\\u1055\\\\u105A-\\\\u105D\\\\u1061\\\\u1065\\\\u1066\\\\u106E-\\\\u1070\\\\u1075-\\\\u1081]|[\\\\u108E\\\\u10A0-\\\\u10C5\\\\u10C7\\\\u10CD\\\\u10D0-\\\\u10FA\\\\u10FC-\\\\u1248\\\\u124A-\\\\u124D]|[\\\\u1250-\\\\u1256\\\\u1258\\\\u125A-\\\\u125D\\\\u1260-\\\\u1288\\\\u128A-\\\\u128D\\\\u1290-\\\\u12B0]|[\\\\u12B2-\\\\u12B5\\\\u12B8-\\\\u12BE\\\\u12C0\\\\u12C2-\\\\u12C5\\\\u12C8-\\\\u12D6\\\\u12D8-\\\\u1310]|[\\\\u1312-\\\\u1315\\\\u1318-\\\\u135A\\\\u1380-\\\\u138F\\\\u13A0-\\\\u13F4\\\\u1401-\\\\u166C]|[\\\\u166F-\\\\u167F\\\\u1681-\\\\u169A\\\\u16A0-\\\\u16EA\\\\u1700-\\\\u170C\\\\u170E-\\\\u1711]|[\\\\u1720-\\\\u1731\\\\u1740-\\\\u1751\\\\u1760-\\\\u176C\\\\u176E-\\\\u1770\\\\u1780-\\\\u17B3\\\\u17D7]|[\\\\u17DC\\\\u1820-\\\\u1877\\\\u1880-\\\\u18A8\\\\u18AA\\\\u18B0-\\\\u18F5\\\\u1900-\\\\u191C]|[\\\\u1950-\\\\u196D\\\\u1970-\\\\u1974\\\\u1980-\\\\u19AB\\\\u19C1-\\\\u19C7\\\\u1A00-\\\\u1A16]|[\\\\u1A20-\\\\u1A54\\\\u1AA7\\\\u1B05-\\\\u1B33\\\\u1B45-\\\\u1B4B\\\\u1B83-\\\\u1BA0\\\\u1BAE\\\\u1BAF]|[\\\\u1BBA-\\\\u1BE5\\\\u1C00-\\\\u1C23\\\\u1C4D-\\\\u1C4F\\\\u1C5A-\\\\u1C7D\\\\u1CE9-\\\\u1CEC]|[\\\\u1CEE-\\\\u1CF1\\\\u1CF5\\\\u1CF6\\\\u1D00-\\\\u1DBF\\\\u1E00-\\\\u1F15\\\\u1F18-\\\\u1F1D]|[\\\\u1F20-\\\\u1F45\\\\u1F48-\\\\u1F4D\\\\u1F50-\\\\u1F57\\\\u1F59\\\\u1F5B\\\\u1F5D\\\\u1F5F-\\\\u1F7D]|[\\\\u1F80-\\\\u1FB4\\\\u1FB6-\\\\u1FBC\\\\u1FBE\\\\u1FC2-\\\\u1FC4\\\\u1FC6-\\\\u1FCC\\\\u1FD0-\\\\u1FD3]|[\\\\u1FD6-\\\\u1FDB\\\\u1FE0-\\\\u1FEC\\\\u1FF2-\\\\u1FF4\\\\u1FF6-\\\\u1FFC\\\\u2071\\\\u207F]|[\\\\u2090-\\\\u209C\\\\u2102\\\\u2107\\\\u210A-\\\\u2113\\\\u2115\\\\u2119-\\\\u211D\\\\u2124\\\\u2126\\\\u2128]|[\\\\u212A-\\\\u212D\\\\u212F-\\\\u2139\\\\u213C-\\\\u213F\\\\u2145-\\\\u2149\\\\u214E\\\\u2183\\\\u2184]|[\\\\u2C00-\\\\u2C2E\\\\u2C30-\\\\u2C5E\\\\u2C60-\\\\u2CE4\\\\u2CEB-\\\\u2CEE\\\\u2CF2\\\\u2CF3]|[\\\\u2D00-\\\\u2D25\\\\u2D27\\\\u2D2D\\\\u2D30-\\\\u2D67\\\\u2D6F\\\\u2D80-\\\\u2D96\\\\u2DA0-\\\\u2DA6]|[\\\\u2DA8-\\\\u2DAE\\\\u2DB0-\\\\u2DB6\\\\u2DB8-\\\\u2DBE\\\\u2DC0-\\\\u2DC6\\\\u2DC8-\\\\u2DCE]|[\\\\u2DD0-\\\\u2DD6\\\\u2DD8-\\\\u2DDE\\\\u2E2F\\\\u3005\\\\u3006\\\\u3031-\\\\u3035\\\\u303B\\\\u303C]|[\\\\u3041-\\\\u3096\\\\u309D-\\\\u309F\\\\u30A1-\\\\u30FA\\\\u30FC-\\\\u30FF\\\\u3105-\\\\u312D]|[\\\\u3131-\\\\u318E\\\\u31A0-\\\\u31BA\\\\u31F0-\\\\u31FF\\\\u3400-\\\\u4DB5\\\\u4E00-\\\\u9FCC]|[\\\\uA000-\\\\uA48C\\\\uA4D0-\\\\uA4FD\\\\uA500-\\\\uA60C\\\\uA610-\\\\uA61F\\\\uA62A\\\\uA62B]|[\\\\uA640-\\\\uA66E\\\\uA67F-\\\\uA697\\\\uA6A0-\\\\uA6E5\\\\uA717-\\\\uA71F\\\\uA722-\\\\uA788]|[\\\\uA78B-\\\\uA78E\\\\uA790-\\\\uA793\\\\uA7A0-\\\\uA7AA\\\\uA7F8-\\\\uA801\\\\uA803-\\\\uA805]|[\\\\uA807-\\\\uA80A\\\\uA80C-\\\\uA822\\\\uA840-\\\\uA873\\\\uA882-\\\\uA8B3\\\\uA8F2-\\\\uA8F7\\\\uA8FB]|[\\\\uA90A-\\\\uA925\\\\uA930-\\\\uA946\\\\uA960-\\\\uA97C\\\\uA984-\\\\uA9B2\\\\uA9CF\\\\uAA00-\\\\uAA28]|[\\\\uAA40-\\\\uAA42\\\\uAA44-\\\\uAA4B\\\\uAA60-\\\\uAA76\\\\uAA7A\\\\uAA80-\\\\uAAAF\\\\uAAB1\\\\uAAB5]|[\\\\uAAB6\\\\uAAB9-\\\\uAABD\\\\uAAC0\\\\uAAC2\\\\uAADB-\\\\uAADD\\\\uAAE0-\\\\uAAEA\\\\uAAF2-\\\\uAAF4]|[\\\\uAB01-\\\\uAB06\\\\uAB09-\\\\uAB0E\\\\uAB11-\\\\uAB16\\\\uAB20-\\\\uAB26\\\\uAB28-\\\\uAB2E]|[\\\\uABC0-\\\\uABE2\\\\uAC00-\\\\uD7A3\\\\uD7B0-\\\\uD7C6\\\\uD7CB-\\\\uD7FB\\\\uF900-\\\\uFA6D]|[\\\\uFA70-\\\\uFAD9\\\\uFB00-\\\\uFB06\\\\uFB13-\\\\uFB17\\\\uFB1D\\\\uFB1F-\\\\uFB28\\\\uFB2A-\\\\uFB36]|[\\\\uFB38-\\\\uFB3C\\\\uFB3E\\\\uFB40\\\\uFB41\\\\uFB43\\\\uFB44\\\\uFB46-\\\\uFBB1\\\\uFBD3-\\\\uFD3D]|[\\\\uFD50-\\\\uFD8F\\\\uFD92-\\\\uFDC7\\\\uFDF0-\\\\uFDFB\\\\uFE70-\\\\uFE74\\\\uFE76-\\\\uFEFC]|[\\\\uFF21-\\\\uFF3A\\\\uFF41-\\\\uFF5A\\\\uFF66-\\\\uFFBE\\\\uFFC2-\\\\uFFC7\\\\uFFCA-\\\\uFFCF]|[\\\\uFFD2-\\\\uFFD7\\\\uFFDA-\\\\uFFDC])/,/^(?:\\\\s)/,/^(?:$)/],conditions:{acc_descr_multiline:{rules:[16,17],inclusive:!1},acc_descr:{rules:[14],inclusive:!1},acc_title:{rules:[12],inclusive:!1},arg_directive:{rules:[7,8],inclusive:!1},type_directive:{rules:[6,7],inclusive:!1},open_directive:{rules:[5],inclusive:!1},callback_args:{rules:[51,52],inclusive:!1},callback_name:{rules:[48,49,50],inclusive:!1},href:{rules:[45,46],inclusive:!1},struct:{rules:[23,24,25,26,27],inclusive:!1},generic:{rules:[36,37],inclusive:!1},bqstring:{rules:[42,43],inclusive:!1},string:{rules:[39,40],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,13,15,18,19,20,21,22,28,29,30,31,32,33,34,35,38,41,44,47,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78],inclusive:!0}}};function z(){this.yy={}}return j.lexer=U,z.prototype=j,j.Parser=z,new z}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(8218).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},5890:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,23,25,27,29,30,48],i=[1,17],a=[1,18],o=[1,19],s=[1,20],c=[1,21],u=[1,24],l=[1,29],h=[1,30],f=[1,31],d=[1,32],p=[1,44],g=[30,45,46],y=[4,6,9,11,23,25,27,29,30,48],m=[41,42,43,44],v=[22,36],b=[1,62],_={trace:function(){},yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,\\\":\\\":15,argDirective:16,entityName:17,relSpec:18,role:19,BLOCK_START:20,attributes:21,BLOCK_STOP:22,title:23,title_value:24,acc_title:25,acc_title_value:26,acc_descr:27,acc_descr_value:28,acc_descr_multiline_value:29,ALPHANUM:30,attribute:31,attributeType:32,attributeName:33,attributeKeyType:34,attributeComment:35,ATTRIBUTE_WORD:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,NON_IDENTIFYING:45,IDENTIFYING:46,WORD:47,open_directive:48,type_directive:49,arg_directive:50,close_directive:51,$accept:0,$end:1},terminals_:{2:\\\"error\\\",4:\\\"ER_DIAGRAM\\\",6:\\\"EOF\\\",9:\\\"SPACE\\\",11:\\\"NEWLINE\\\",15:\\\":\\\",20:\\\"BLOCK_START\\\",22:\\\"BLOCK_STOP\\\",23:\\\"title\\\",24:\\\"title_value\\\",25:\\\"acc_title\\\",26:\\\"acc_title_value\\\",27:\\\"acc_descr\\\",28:\\\"acc_descr_value\\\",29:\\\"acc_descr_multiline_value\\\",30:\\\"ALPHANUM\\\",36:\\\"ATTRIBUTE_WORD\\\",37:\\\"ATTRIBUTE_KEY\\\",38:\\\"COMMENT\\\",41:\\\"ZERO_OR_ONE\\\",42:\\\"ZERO_OR_MORE\\\",43:\\\"ONE_OR_MORE\\\",44:\\\"ONLY_ONE\\\",45:\\\"NON_IDENTIFYING\\\",46:\\\"IDENTIFYING\\\",47:\\\"WORD\\\",48:\\\"open_directive\\\",49:\\\"type_directive\\\",50:\\\"arg_directive\\\",51:\\\"close_directive\\\"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,5],[10,4],[10,3],[10,1],[10,2],[10,2],[10,2],[10,1],[17,1],[21,1],[21,2],[31,2],[31,3],[31,3],[31,4],[32,1],[33,1],[34,1],[35,1],[18,3],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[19,1],[19,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:break;case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:case 20:case 27:case 28:case 29:case 39:this.$=a[s];break;case 12:r.addEntity(a[s-4]),r.addEntity(a[s-2]),r.addRelationship(a[s-4],a[s],a[s-2],a[s-3]);break;case 13:r.addEntity(a[s-3]),r.addAttributes(a[s-3],a[s-1]);break;case 14:r.addEntity(a[s-2]);break;case 15:r.addEntity(a[s]);break;case 16:case 17:this.$=a[s].trim(),r.setTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 21:this.$=[a[s]];break;case 22:a[s].push(a[s-1]),this.$=a[s];break;case 23:this.$={attributeType:a[s-1],attributeName:a[s]};break;case 24:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeKeyType:a[s]};break;case 25:this.$={attributeType:a[s-2],attributeName:a[s-1],attributeComment:a[s]};break;case 26:this.$={attributeType:a[s-3],attributeName:a[s-2],attributeKeyType:a[s-1],attributeComment:a[s]};break;case 30:case 38:this.$=a[s].replace(/\\\"/g,\\\"\\\");break;case 31:this.$={cardA:a[s],relType:a[s-1],cardB:a[s-2]};break;case 32:this.$=r.Cardinality.ZERO_OR_ONE;break;case 33:this.$=r.Cardinality.ZERO_OR_MORE;break;case 34:this.$=r.Cardinality.ONE_OR_MORE;break;case 35:this.$=r.Cardinality.ONLY_ONE;break;case 36:this.$=r.Identification.NON_IDENTIFYING;break;case 37:this.$=r.Identification.IDENTIFYING;break;case 40:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 41:r.parseDirective(a[s],\\\"type_directive\\\");break;case 42:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 43:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"er\\\")}},table:[{3:1,4:e,7:3,12:4,48:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,48:n},{13:8,49:[1,9]},{49:[2,40]},{6:[1,10],7:15,8:11,9:[1,12],10:13,11:[1,14],12:4,17:16,23:i,25:a,27:o,29:s,30:c,48:n},{1:[2,2]},{14:22,15:[1,23],51:u},t([15,51],[2,41]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:15,10:25,12:4,17:16,23:i,25:a,27:o,29:s,30:c,48:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),t(r,[2,15],{18:26,39:28,20:[1,27],41:l,42:h,43:f,44:d}),{24:[1,33]},{26:[1,34]},{28:[1,35]},t(r,[2,19]),t([6,9,11,15,20,23,25,27,29,30,41,42,43,44,48],[2,20]),{11:[1,36]},{16:37,50:[1,38]},{11:[2,43]},t(r,[2,5]),{17:39,30:c},{21:40,22:[1,41],31:42,32:43,36:p},{40:45,45:[1,46],46:[1,47]},t(g,[2,32]),t(g,[2,33]),t(g,[2,34]),t(g,[2,35]),t(r,[2,16]),t(r,[2,17]),t(r,[2,18]),t(y,[2,9]),{14:48,51:u},{51:[2,42]},{15:[1,49]},{22:[1,50]},t(r,[2,14]),{21:51,22:[2,21],31:42,32:43,36:p},{33:52,36:[1,53]},{36:[2,27]},{39:54,41:l,42:h,43:f,44:d},t(m,[2,36]),t(m,[2,37]),{11:[1,55]},{19:56,30:[1,58],47:[1,57]},t(r,[2,13]),{22:[2,22]},t(v,[2,23],{34:59,35:60,37:[1,61],38:b}),t([22,36,37,38],[2,28]),{30:[2,31]},t(y,[2,10]),t(r,[2,12]),t(r,[2,38]),t(r,[2,39]),t(v,[2,24],{35:63,38:b}),t(v,[2,25]),t([22,36,38],[2,29]),t(v,[2,30]),t(v,[2,26])],defaultActions:{5:[2,40],7:[2,2],24:[2,43],38:[2,42],44:[2,27],51:[2,22],54:[2,31]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},x={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\\\"case-insensitive\\\":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin(\\\"acc_title\\\"),25;case 1:return this.popState(),\\\"acc_title_value\\\";case 2:return this.begin(\\\"acc_descr\\\"),27;case 3:return this.popState(),\\\"acc_descr_value\\\";case 4:this.begin(\\\"acc_descr_multiline\\\");break;case 5:this.popState();break;case 6:return\\\"acc_descr_multiline_value\\\";case 7:return this.begin(\\\"open_directive\\\"),48;case 8:return this.begin(\\\"type_directive\\\"),49;case 9:return this.popState(),this.begin(\\\"arg_directive\\\"),15;case 10:return this.popState(),this.popState(),51;case 11:return 50;case 12:case 13:case 15:case 20:case 24:break;case 14:return 11;case 16:return 9;case 17:return 47;case 18:return 4;case 19:return this.begin(\\\"block\\\"),20;case 21:return 37;case 22:return 36;case 23:return 38;case 25:return this.popState(),22;case 26:case 39:return e.yytext[0];case 27:case 31:return 41;case 28:case 32:return 42;case 29:case 33:return 43;case 30:return 44;case 34:case 36:case 37:return 45;case 35:return 46;case 38:return 30;case 40:return 6}},rules:[/^(?:accTitle\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*\\\\{\\\\s*)/i,/^(?:[\\\\}])/i,/^(?:[^\\\\}]*)/i,/^(?:%%\\\\{)/i,/^(?:((?:(?!\\\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\\\}%%)/i,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/i,/^(?:%(?!\\\\{)[^\\\\n]*)/i,/^(?:[^\\\\}]%%[^\\\\n]*)/i,/^(?:[\\\\n]+)/i,/^(?:\\\\s+)/i,/^(?:[\\\\s]+)/i,/^(?:\\\"[^\\\"]*\\\")/i,/^(?:erDiagram\\\\b)/i,/^(?:\\\\{)/i,/^(?:\\\\s+)/i,/^(?:(?:PK)|(?:FK))/i,/^(?:[A-Za-z][A-Za-z0-9\\\\-_]*)/i,/^(?:\\\"[^\\\"]*\\\")/i,/^(?:[\\\\n]+)/i,/^(?:\\\\})/i,/^(?:.)/i,/^(?:\\\\|o\\\\b)/i,/^(?:\\\\}o\\\\b)/i,/^(?:\\\\}\\\\|)/i,/^(?:\\\\|\\\\|)/i,/^(?:o\\\\|)/i,/^(?:o\\\\{)/i,/^(?:\\\\|\\\\{)/i,/^(?:\\\\.\\\\.)/i,/^(?:--)/i,/^(?:\\\\.-)/i,/^(?:-\\\\.)/i,/^(?:[A-Za-z][A-Za-z0-9\\\\-_]*)/i,/^(?:.)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[5,6],inclusive:!1},acc_descr:{rules:[3],inclusive:!1},acc_title:{rules:[1],inclusive:!1},open_directive:{rules:[8],inclusive:!1},type_directive:{rules:[9,10],inclusive:!1},arg_directive:{rules:[10,11],inclusive:!1},block:{rules:[20,21,22,23,24,25,26],inclusive:!1},INITIAL:{rules:[0,2,4,7,12,13,14,15,16,17,18,19,27,28,29,30,31,32,33,34,35,36,37,38,39,40],inclusive:!0}}};function w(){this.yy={}}return _.lexer=x,w.prototype=_,_.Parser=w,new w}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(8009).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3602:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,9],n=[1,7],r=[1,6],i=[1,8],a=[1,20,21,22,23,38,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],o=[2,10],s=[1,20],c=[1,21],u=[1,22],l=[1,23],h=[1,30],f=[1,32],d=[1,33],p=[1,34],g=[1,62],y=[1,48],m=[1,52],v=[1,36],b=[1,37],_=[1,38],x=[1,39],w=[1,40],k=[1,56],T=[1,63],C=[1,51],E=[1,53],S=[1,55],A=[1,59],M=[1,60],N=[1,41],D=[1,42],B=[1,43],L=[1,44],O=[1,61],I=[1,50],R=[1,54],F=[1,57],P=[1,58],Y=[1,49],j=[1,66],U=[1,71],z=[1,20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],$=[1,75],q=[1,74],H=[1,76],W=[20,21,23,81,82],V=[1,99],G=[1,104],X=[1,107],Z=[1,108],Q=[1,101],K=[1,106],J=[1,109],tt=[1,102],et=[1,114],nt=[1,113],rt=[1,103],it=[1,105],at=[1,110],ot=[1,111],st=[1,112],ct=[1,115],ut=[20,21,22,23,81,82],lt=[20,21,22,23,53,81,82],ht=[20,21,22,23,40,52,53,55,57,59,61,63,65,66,67,69,71,73,74,76,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],ft=[20,21,23],dt=[20,21,23,52,66,67,81,82,91,95,105,106,109,111,112,122,123,124,125,126,127],pt=[1,12,20,21,22,23,24,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],gt=[52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],yt=[1,149],mt=[1,157],vt=[1,158],bt=[1,159],_t=[1,160],xt=[1,144],wt=[1,145],kt=[1,141],Tt=[1,152],Ct=[1,153],Et=[1,154],St=[1,155],At=[1,156],Mt=[1,161],Nt=[1,162],Dt=[1,147],Bt=[1,150],Lt=[1,146],Ot=[1,143],It=[20,21,22,23,38,42,44,46,48,52,66,67,86,87,88,89,90,91,95,105,106,109,111,112,118,119,120,121,122,123,124,125,126,127],Rt=[1,165],Ft=[20,21,22,23,26,52,66,67,91,105,106,109,111,112,122,123,124,125,126,127],Pt=[20,21,22,23,24,26,38,40,41,42,52,56,58,60,62,64,66,67,68,70,72,73,75,77,81,82,86,87,88,89,90,91,92,95,105,106,109,111,112,113,114,122,123,124,125,126,127],Yt=[12,21,22,24],jt=[22,106],Ut=[1,250],zt=[1,245],$t=[1,246],qt=[1,254],Ht=[1,251],Wt=[1,248],Vt=[1,247],Gt=[1,249],Xt=[1,252],Zt=[1,253],Qt=[1,255],Kt=[1,273],Jt=[20,21,23,106],te=[20,21,22,23,66,67,86,102,105,106,109,110,111,112,113],ee={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,directive:5,openDirective:6,typeDirective:7,closeDirective:8,separator:9,\\\":\\\":10,argDirective:11,open_directive:12,type_directive:13,arg_directive:14,close_directive:15,graphConfig:16,document:17,line:18,statement:19,SEMI:20,NEWLINE:21,SPACE:22,EOF:23,GRAPH:24,NODIR:25,DIR:26,FirstStmtSeperator:27,ending:28,endToken:29,spaceList:30,spaceListNewline:31,verticeStatement:32,styleStatement:33,linkStyleStatement:34,classDefStatement:35,classStatement:36,clickStatement:37,subgraph:38,text:39,SQS:40,SQE:41,end:42,direction:43,acc_title:44,acc_title_value:45,acc_descr:46,acc_descr_value:47,acc_descr_multiline_value:48,link:49,node:50,vertex:51,AMP:52,STYLE_SEPARATOR:53,idString:54,DOUBLECIRCLESTART:55,DOUBLECIRCLEEND:56,PS:57,PE:58,\\\"(-\\\":59,\\\"-)\\\":60,STADIUMSTART:61,STADIUMEND:62,SUBROUTINESTART:63,SUBROUTINEEND:64,VERTEX_WITH_PROPS_START:65,ALPHA:66,COLON:67,PIPE:68,CYLINDERSTART:69,CYLINDEREND:70,DIAMOND_START:71,DIAMOND_STOP:72,TAGEND:73,TRAPSTART:74,TRAPEND:75,INVTRAPSTART:76,INVTRAPEND:77,linkStatement:78,arrowText:79,TESTSTR:80,START_LINK:81,LINK:82,textToken:83,STR:84,keywords:85,STYLE:86,LINKSTYLE:87,CLASSDEF:88,CLASS:89,CLICK:90,DOWN:91,UP:92,textNoTags:93,textNoTagsToken:94,DEFAULT:95,stylesOpt:96,alphaNum:97,CALLBACKNAME:98,CALLBACKARGS:99,HREF:100,LINK_TARGET:101,HEX:102,numList:103,INTERPOLATE:104,NUM:105,COMMA:106,style:107,styleComponent:108,MINUS:109,UNIT:110,BRKT:111,DOT:112,PCT:113,TAGSTART:114,alphaNumToken:115,idStringToken:116,alphaNumStatement:117,direction_tb:118,direction_bt:119,direction_rl:120,direction_lr:121,PUNCTUATION:122,UNICODE_TEXT:123,PLUS:124,EQUALS:125,MULT:126,UNDERSCORE:127,graphCodeTokens:128,ARROW_CROSS:129,ARROW_POINT:130,ARROW_CIRCLE:131,ARROW_OPEN:132,QUOTE:133,$accept:0,$end:1},terminals_:{2:\\\"error\\\",10:\\\":\\\",12:\\\"open_directive\\\",13:\\\"type_directive\\\",14:\\\"arg_directive\\\",15:\\\"close_directive\\\",20:\\\"SEMI\\\",21:\\\"NEWLINE\\\",22:\\\"SPACE\\\",23:\\\"EOF\\\",24:\\\"GRAPH\\\",25:\\\"NODIR\\\",26:\\\"DIR\\\",38:\\\"subgraph\\\",40:\\\"SQS\\\",41:\\\"SQE\\\",42:\\\"end\\\",44:\\\"acc_title\\\",45:\\\"acc_title_value\\\",46:\\\"acc_descr\\\",47:\\\"acc_descr_value\\\",48:\\\"acc_descr_multiline_value\\\",52:\\\"AMP\\\",53:\\\"STYLE_SEPARATOR\\\",55:\\\"DOUBLECIRCLESTART\\\",56:\\\"DOUBLECIRCLEEND\\\",57:\\\"PS\\\",58:\\\"PE\\\",59:\\\"(-\\\",60:\\\"-)\\\",61:\\\"STADIUMSTART\\\",62:\\\"STADIUMEND\\\",63:\\\"SUBROUTINESTART\\\",64:\\\"SUBROUTINEEND\\\",65:\\\"VERTEX_WITH_PROPS_START\\\",66:\\\"ALPHA\\\",67:\\\"COLON\\\",68:\\\"PIPE\\\",69:\\\"CYLINDERSTART\\\",70:\\\"CYLINDEREND\\\",71:\\\"DIAMOND_START\\\",72:\\\"DIAMOND_STOP\\\",73:\\\"TAGEND\\\",74:\\\"TRAPSTART\\\",75:\\\"TRAPEND\\\",76:\\\"INVTRAPSTART\\\",77:\\\"INVTRAPEND\\\",80:\\\"TESTSTR\\\",81:\\\"START_LINK\\\",82:\\\"LINK\\\",84:\\\"STR\\\",86:\\\"STYLE\\\",87:\\\"LINKSTYLE\\\",88:\\\"CLASSDEF\\\",89:\\\"CLASS\\\",90:\\\"CLICK\\\",91:\\\"DOWN\\\",92:\\\"UP\\\",95:\\\"DEFAULT\\\",98:\\\"CALLBACKNAME\\\",99:\\\"CALLBACKARGS\\\",100:\\\"HREF\\\",101:\\\"LINK_TARGET\\\",102:\\\"HEX\\\",104:\\\"INTERPOLATE\\\",105:\\\"NUM\\\",106:\\\"COMMA\\\",109:\\\"MINUS\\\",110:\\\"UNIT\\\",111:\\\"BRKT\\\",112:\\\"DOT\\\",113:\\\"PCT\\\",114:\\\"TAGSTART\\\",118:\\\"direction_tb\\\",119:\\\"direction_bt\\\",120:\\\"direction_rl\\\",121:\\\"direction_lr\\\",122:\\\"PUNCTUATION\\\",123:\\\"UNICODE_TEXT\\\",124:\\\"PLUS\\\",125:\\\"EQUALS\\\",126:\\\"MULT\\\",127:\\\"UNDERSCORE\\\",129:\\\"ARROW_CROSS\\\",130:\\\"ARROW_POINT\\\",131:\\\"ARROW_CIRCLE\\\",132:\\\"ARROW_OPEN\\\",133:\\\"QUOTE\\\"},productions_:[0,[3,1],[3,2],[5,4],[5,6],[6,1],[7,1],[11,1],[8,1],[4,2],[17,0],[17,2],[18,1],[18,1],[18,1],[18,1],[18,1],[16,2],[16,2],[16,2],[16,3],[28,2],[28,1],[29,1],[29,1],[29,1],[27,1],[27,1],[27,2],[31,2],[31,2],[31,1],[31,1],[30,2],[30,1],[19,2],[19,2],[19,2],[19,2],[19,2],[19,2],[19,9],[19,6],[19,4],[19,1],[19,2],[19,2],[19,1],[9,1],[9,1],[9,1],[32,3],[32,4],[32,2],[32,1],[50,1],[50,5],[50,3],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,8],[51,4],[51,4],[51,4],[51,6],[51,4],[51,4],[51,4],[51,4],[51,4],[51,1],[49,2],[49,3],[49,3],[49,1],[49,3],[78,1],[79,3],[39,1],[39,2],[39,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[93,1],[93,2],[35,5],[35,5],[36,5],[37,2],[37,4],[37,3],[37,5],[37,2],[37,4],[37,4],[37,6],[37,2],[37,4],[37,2],[37,4],[37,4],[37,6],[33,5],[33,5],[34,5],[34,5],[34,9],[34,9],[34,7],[34,7],[103,1],[103,3],[96,1],[96,3],[107,1],[107,2],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[108,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[94,1],[94,1],[94,1],[94,1],[54,1],[54,2],[97,1],[97,2],[117,1],[117,1],[117,1],[117,1],[43,1],[43,1],[43,1],[43,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[115,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[116,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1],[128,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 5:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 6:r.parseDirective(a[s],\\\"type_directive\\\");break;case 7:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 8:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"flowchart\\\");break;case 10:case 36:case 37:case 38:case 39:case 40:this.$=[];break;case 11:a[s]!==[]&&a[s-1].push(a[s]),this.$=a[s-1];break;case 12:case 82:case 84:case 96:case 152:case 154:case 155:case 78:case 150:this.$=a[s];break;case 19:r.setDirection(\\\"TB\\\"),this.$=\\\"TB\\\";break;case 20:r.setDirection(a[s-1]),this.$=a[s-1];break;case 35:this.$=a[s-1].nodes;break;case 41:this.$=r.addSubGraph(a[s-6],a[s-1],a[s-4]);break;case 42:this.$=r.addSubGraph(a[s-3],a[s-1],a[s-3]);break;case 43:this.$=r.addSubGraph(void 0,a[s-1],void 0);break;case 45:this.$=a[s].trim(),r.setTitle(this.$);break;case 46:case 47:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 51:r.addLink(a[s-2].stmt,a[s],a[s-1]),this.$={stmt:a[s],nodes:a[s].concat(a[s-2].nodes)};break;case 52:r.addLink(a[s-3].stmt,a[s-1],a[s-2]),this.$={stmt:a[s-1],nodes:a[s-1].concat(a[s-3].nodes)};break;case 53:this.$={stmt:a[s-1],nodes:a[s-1]};break;case 54:this.$={stmt:a[s],nodes:a[s]};break;case 55:case 123:case 125:this.$=[a[s]];break;case 56:this.$=a[s-4].concat(a[s]);break;case 57:this.$=[a[s-2]],r.setClass(a[s-2],a[s]);break;case 58:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"square\\\");break;case 59:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"doublecircle\\\");break;case 60:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],\\\"circle\\\");break;case 61:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"ellipse\\\");break;case 62:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"stadium\\\");break;case 63:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"subroutine\\\");break;case 64:this.$=a[s-7],r.addVertex(a[s-7],a[s-1],\\\"rect\\\",void 0,void 0,void 0,Object.fromEntries([[a[s-5],a[s-3]]]));break;case 65:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"cylinder\\\");break;case 66:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"round\\\");break;case 67:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"diamond\\\");break;case 68:this.$=a[s-5],r.addVertex(a[s-5],a[s-2],\\\"hexagon\\\");break;case 69:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"odd\\\");break;case 70:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"trapezoid\\\");break;case 71:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"inv_trapezoid\\\");break;case 72:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"lean_right\\\");break;case 73:this.$=a[s-3],r.addVertex(a[s-3],a[s-1],\\\"lean_left\\\");break;case 74:this.$=a[s],r.addVertex(a[s]);break;case 75:a[s-1].text=a[s],this.$=a[s-1];break;case 76:case 77:a[s-2].text=a[s-1],this.$=a[s-2];break;case 79:var c=r.destructLink(a[s],a[s-2]);this.$={type:c.type,stroke:c.stroke,length:c.length,text:a[s-1]};break;case 80:c=r.destructLink(a[s]),this.$={type:c.type,stroke:c.stroke,length:c.length};break;case 81:this.$=a[s-1];break;case 83:case 97:case 153:case 151:this.$=a[s-1]+\\\"\\\"+a[s];break;case 98:case 99:this.$=a[s-4],r.addClass(a[s-2],a[s]);break;case 100:this.$=a[s-4],r.setClass(a[s-2],a[s]);break;case 101:case 109:this.$=a[s-1],r.setClickEvent(a[s-1],a[s]);break;case 102:case 110:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 103:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 104:this.$=a[s-4],r.setClickEvent(a[s-4],a[s-3],a[s-2]),r.setTooltip(a[s-4],a[s]);break;case 105:case 111:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 106:case 112:this.$=a[s-3],r.setLink(a[s-3],a[s-2]),r.setTooltip(a[s-3],a[s]);break;case 107:case 113:this.$=a[s-3],r.setLink(a[s-3],a[s-2],a[s]);break;case 108:case 114:this.$=a[s-5],r.setLink(a[s-5],a[s-4],a[s]),r.setTooltip(a[s-5],a[s-2]);break;case 115:this.$=a[s-4],r.addVertex(a[s-2],void 0,void 0,a[s]);break;case 116:case 118:this.$=a[s-4],r.updateLink(a[s-2],a[s]);break;case 117:this.$=a[s-4],r.updateLink([a[s-2]],a[s]);break;case 119:this.$=a[s-8],r.updateLinkInterpolate([a[s-6]],a[s-2]),r.updateLink([a[s-6]],a[s]);break;case 120:this.$=a[s-8],r.updateLinkInterpolate(a[s-6],a[s-2]),r.updateLink(a[s-6],a[s]);break;case 121:this.$=a[s-6],r.updateLinkInterpolate([a[s-4]],a[s]);break;case 122:this.$=a[s-6],r.updateLinkInterpolate(a[s-4],a[s]);break;case 124:case 126:a[s-2].push(a[s]),this.$=a[s-2];break;case 128:this.$=a[s-1]+a[s];break;case 156:this.$=\\\"v\\\";break;case 157:this.$=\\\"-\\\";break;case 158:this.$={stmt:\\\"dir\\\",value:\\\"TB\\\"};break;case 159:this.$={stmt:\\\"dir\\\",value:\\\"BT\\\"};break;case 160:this.$={stmt:\\\"dir\\\",value:\\\"RL\\\"};break;case 161:this.$={stmt:\\\"dir\\\",value:\\\"LR\\\"}}},table:[{3:1,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},{1:[3]},{1:[2,1]},{3:10,4:2,5:3,6:5,12:e,16:4,21:n,22:r,24:i},t(a,o,{17:11}),{7:12,13:[1,13]},{16:14,21:n,22:r,24:i},{16:15,21:n,22:r,24:i},{25:[1,16],26:[1,17]},{13:[2,5]},{1:[2,2]},{1:[2,9],18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,43:31,44:f,46:d,48:p,50:35,51:45,52:g,54:46,66:y,67:m,86:v,87:b,88:_,89:x,90:w,91:k,95:T,105:C,106:E,109:S,111:A,112:M,116:47,118:N,119:D,120:B,121:L,122:O,123:I,124:R,125:F,126:P,127:Y},{8:64,10:[1,65],15:j},t([10,15],[2,6]),t(a,[2,17]),t(a,[2,18]),t(a,[2,19]),{20:[1,68],21:[1,69],22:U,27:67,30:70},t(z,[2,11]),t(z,[2,12]),t(z,[2,13]),t(z,[2,14]),t(z,[2,15]),t(z,[2,16]),{9:72,20:$,21:q,23:H,49:73,78:77,81:[1,78],82:[1,79]},{9:80,20:$,21:q,23:H},{9:81,20:$,21:q,23:H},{9:82,20:$,21:q,23:H},{9:83,20:$,21:q,23:H},{9:84,20:$,21:q,23:H},{9:86,20:$,21:q,22:[1,85],23:H},t(z,[2,44]),{45:[1,87]},{47:[1,88]},t(z,[2,47]),t(W,[2,54],{30:89,22:U}),{22:[1,90]},{22:[1,91]},{22:[1,92]},{22:[1,93]},{26:V,52:G,66:X,67:Z,84:[1,97],91:Q,97:96,98:[1,94],100:[1,95],105:K,106:J,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(z,[2,158]),t(z,[2,159]),t(z,[2,160]),t(z,[2,161]),t(ut,[2,55],{53:[1,116]}),t(lt,[2,74],{116:129,40:[1,117],52:g,55:[1,118],57:[1,119],59:[1,120],61:[1,121],63:[1,122],65:[1,123],66:y,67:m,69:[1,124],71:[1,125],73:[1,126],74:[1,127],76:[1,128],91:k,95:T,105:C,106:E,109:S,111:A,112:M,122:O,123:I,124:R,125:F,126:P,127:Y}),t(ht,[2,150]),t(ht,[2,175]),t(ht,[2,176]),t(ht,[2,177]),t(ht,[2,178]),t(ht,[2,179]),t(ht,[2,180]),t(ht,[2,181]),t(ht,[2,182]),t(ht,[2,183]),t(ht,[2,184]),t(ht,[2,185]),t(ht,[2,186]),t(ht,[2,187]),t(ht,[2,188]),t(ht,[2,189]),t(ht,[2,190]),{9:130,20:$,21:q,23:H},{11:131,14:[1,132]},t(ft,[2,8]),t(a,[2,20]),t(a,[2,26]),t(a,[2,27]),{21:[1,133]},t(dt,[2,34],{30:134,22:U}),t(z,[2,35]),{50:135,51:45,52:g,54:46,66:y,67:m,91:k,95:T,105:C,106:E,109:S,111:A,112:M,116:47,122:O,123:I,124:R,125:F,126:P,127:Y},t(pt,[2,48]),t(pt,[2,49]),t(pt,[2,50]),t(gt,[2,78],{79:136,68:[1,138],80:[1,137]}),{22:yt,24:mt,26:vt,38:bt,39:139,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t([52,66,67,68,80,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,80]),t(z,[2,36]),t(z,[2,37]),t(z,[2,38]),t(z,[2,39]),t(z,[2,40]),{22:yt,24:mt,26:vt,38:bt,39:163,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(It,o,{17:164}),t(z,[2,45]),t(z,[2,46]),t(W,[2,53],{52:Rt}),{26:V,52:G,66:X,67:Z,91:Q,97:166,102:[1,167],105:K,106:J,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},{95:[1,168],103:169,105:[1,170]},{26:V,52:G,66:X,67:Z,91:Q,95:[1,171],97:172,105:K,106:J,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},{26:V,52:G,66:X,67:Z,91:Q,97:173,105:K,106:J,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(ft,[2,101],{22:[1,174],99:[1,175]}),t(ft,[2,105],{22:[1,176]}),t(ft,[2,109],{115:100,117:178,22:[1,177],26:V,52:G,66:X,67:Z,91:Q,105:K,106:J,109:tt,111:et,112:nt,122:rt,123:it,124:at,125:ot,126:st,127:ct}),t(ft,[2,111],{22:[1,179]}),t(Ft,[2,152]),t(Ft,[2,154]),t(Ft,[2,155]),t(Ft,[2,156]),t(Ft,[2,157]),t(Pt,[2,162]),t(Pt,[2,163]),t(Pt,[2,164]),t(Pt,[2,165]),t(Pt,[2,166]),t(Pt,[2,167]),t(Pt,[2,168]),t(Pt,[2,169]),t(Pt,[2,170]),t(Pt,[2,171]),t(Pt,[2,172]),t(Pt,[2,173]),t(Pt,[2,174]),{52:g,54:180,66:y,67:m,91:k,95:T,105:C,106:E,109:S,111:A,112:M,116:47,122:O,123:I,124:R,125:F,126:P,127:Y},{22:yt,24:mt,26:vt,38:bt,39:181,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:182,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:184,42:_t,52:G,57:[1,183],66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:185,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:186,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:187,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{66:[1,188]},{22:yt,24:mt,26:vt,38:bt,39:189,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:190,42:_t,52:G,66:X,67:Z,71:[1,191],73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:192,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:193,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:194,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(ht,[2,151]),t(Yt,[2,3]),{8:195,15:j},{15:[2,7]},t(a,[2,28]),t(dt,[2,33]),t(W,[2,51],{30:196,22:U}),t(gt,[2,75],{22:[1,197]}),{22:[1,198]},{22:yt,24:mt,26:vt,38:bt,39:199,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,66:X,67:Z,73:xt,81:wt,82:[1,200],83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(Pt,[2,82]),t(Pt,[2,84]),t(Pt,[2,140]),t(Pt,[2,141]),t(Pt,[2,142]),t(Pt,[2,143]),t(Pt,[2,144]),t(Pt,[2,145]),t(Pt,[2,146]),t(Pt,[2,147]),t(Pt,[2,148]),t(Pt,[2,149]),t(Pt,[2,85]),t(Pt,[2,86]),t(Pt,[2,87]),t(Pt,[2,88]),t(Pt,[2,89]),t(Pt,[2,90]),t(Pt,[2,91]),t(Pt,[2,92]),t(Pt,[2,93]),t(Pt,[2,94]),t(Pt,[2,95]),{9:203,20:$,21:q,22:yt,23:H,24:mt,26:vt,38:bt,40:[1,202],42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,204],43:31,44:f,46:d,48:p,50:35,51:45,52:g,54:46,66:y,67:m,86:v,87:b,88:_,89:x,90:w,91:k,95:T,105:C,106:E,109:S,111:A,112:M,116:47,118:N,119:D,120:B,121:L,122:O,123:I,124:R,125:F,126:P,127:Y},{22:U,30:205},{22:[1,206],26:V,52:G,66:X,67:Z,91:Q,105:K,106:J,109:tt,111:et,112:nt,115:100,117:178,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:[1,207]},{22:[1,208]},{22:[1,209],106:[1,210]},t(jt,[2,123]),{22:[1,211]},{22:[1,212],26:V,52:G,66:X,67:Z,91:Q,105:K,106:J,109:tt,111:et,112:nt,115:100,117:178,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:[1,213],26:V,52:G,66:X,67:Z,91:Q,105:K,106:J,109:tt,111:et,112:nt,115:100,117:178,122:rt,123:it,124:at,125:ot,126:st,127:ct},{84:[1,214]},t(ft,[2,103],{22:[1,215]}),{84:[1,216],101:[1,217]},{84:[1,218]},t(Ft,[2,153]),{84:[1,219],101:[1,220]},t(ut,[2,57],{116:129,52:g,66:y,67:m,91:k,95:T,105:C,106:E,109:S,111:A,112:M,122:O,123:I,124:R,125:F,126:P,127:Y}),{22:yt,24:mt,26:vt,38:bt,41:[1,221],42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,56:[1,222],66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:223,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,58:[1,224],66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,60:[1,225],66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,62:[1,226],66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,64:[1,227],66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{67:[1,228]},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,66:X,67:Z,70:[1,229],73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,66:X,67:Z,72:[1,230],73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,39:231,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,41:[1,232],42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,66:X,67:Z,73:xt,75:[1,233],77:[1,234],81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,66:X,67:Z,73:xt,75:[1,236],77:[1,235],81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{9:237,20:$,21:q,23:H},t(W,[2,52],{52:Rt}),t(gt,[2,77]),t(gt,[2,76]),{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,66:X,67:Z,68:[1,238],73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(gt,[2,79]),t(Pt,[2,83]),{22:yt,24:mt,26:vt,38:bt,39:239,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(It,o,{17:240}),t(z,[2,43]),{51:241,52:g,54:46,66:y,67:m,91:k,95:T,105:C,106:E,109:S,111:A,112:M,116:47,122:O,123:I,124:R,125:F,126:P,127:Y},{22:Ut,66:zt,67:$t,86:qt,96:242,102:Ht,105:Wt,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt},{22:Ut,66:zt,67:$t,86:qt,96:256,102:Ht,105:Wt,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt},{22:Ut,66:zt,67:$t,86:qt,96:257,102:Ht,104:[1,258],105:Wt,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt},{22:Ut,66:zt,67:$t,86:qt,96:259,102:Ht,104:[1,260],105:Wt,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt},{105:[1,261]},{22:Ut,66:zt,67:$t,86:qt,96:262,102:Ht,105:Wt,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt},{22:Ut,66:zt,67:$t,86:qt,96:263,102:Ht,105:Wt,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt},{26:V,52:G,66:X,67:Z,91:Q,97:264,105:K,106:J,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(ft,[2,102]),{84:[1,265]},t(ft,[2,106],{22:[1,266]}),t(ft,[2,107]),t(ft,[2,110]),t(ft,[2,112],{22:[1,267]}),t(ft,[2,113]),t(lt,[2,58]),t(lt,[2,59]),{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,58:[1,268],66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(lt,[2,66]),t(lt,[2,61]),t(lt,[2,62]),t(lt,[2,63]),{66:[1,269]},t(lt,[2,65]),t(lt,[2,67]),{22:yt,24:mt,26:vt,38:bt,42:_t,52:G,66:X,67:Z,72:[1,270],73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(lt,[2,69]),t(lt,[2,70]),t(lt,[2,72]),t(lt,[2,71]),t(lt,[2,73]),t(Yt,[2,4]),t([22,52,66,67,91,95,105,106,109,111,112,122,123,124,125,126,127],[2,81]),{22:yt,24:mt,26:vt,38:bt,41:[1,271],42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,272],43:31,44:f,46:d,48:p,50:35,51:45,52:g,54:46,66:y,67:m,86:v,87:b,88:_,89:x,90:w,91:k,95:T,105:C,106:E,109:S,111:A,112:M,116:47,118:N,119:D,120:B,121:L,122:O,123:I,124:R,125:F,126:P,127:Y},t(ut,[2,56]),t(ft,[2,115],{106:Kt}),t(Jt,[2,125],{108:274,22:Ut,66:zt,67:$t,86:qt,102:Ht,105:Wt,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt}),t(te,[2,127]),t(te,[2,129]),t(te,[2,130]),t(te,[2,131]),t(te,[2,132]),t(te,[2,133]),t(te,[2,134]),t(te,[2,135]),t(te,[2,136]),t(te,[2,137]),t(te,[2,138]),t(te,[2,139]),t(ft,[2,116],{106:Kt}),t(ft,[2,117],{106:Kt}),{22:[1,275]},t(ft,[2,118],{106:Kt}),{22:[1,276]},t(jt,[2,124]),t(ft,[2,98],{106:Kt}),t(ft,[2,99],{106:Kt}),t(ft,[2,100],{115:100,117:178,26:V,52:G,66:X,67:Z,91:Q,105:K,106:J,109:tt,111:et,112:nt,122:rt,123:it,124:at,125:ot,126:st,127:ct}),t(ft,[2,104]),{101:[1,277]},{101:[1,278]},{58:[1,279]},{68:[1,280]},{72:[1,281]},{9:282,20:$,21:q,23:H},t(z,[2,42]),{22:Ut,66:zt,67:$t,86:qt,102:Ht,105:Wt,107:283,108:244,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt},t(te,[2,128]),{26:V,52:G,66:X,67:Z,91:Q,97:284,105:K,106:J,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},{26:V,52:G,66:X,67:Z,91:Q,97:285,105:K,106:J,109:tt,111:et,112:nt,115:100,117:98,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(ft,[2,108]),t(ft,[2,114]),t(lt,[2,60]),{22:yt,24:mt,26:vt,38:bt,39:286,42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:140,84:kt,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},t(lt,[2,68]),t(It,o,{17:287}),t(Jt,[2,126],{108:274,22:Ut,66:zt,67:$t,86:qt,102:Ht,105:Wt,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt}),t(ft,[2,121],{115:100,117:178,22:[1,288],26:V,52:G,66:X,67:Z,91:Q,105:K,106:J,109:tt,111:et,112:nt,122:rt,123:it,124:at,125:ot,126:st,127:ct}),t(ft,[2,122],{115:100,117:178,22:[1,289],26:V,52:G,66:X,67:Z,91:Q,105:K,106:J,109:tt,111:et,112:nt,122:rt,123:it,124:at,125:ot,126:st,127:ct}),{22:yt,24:mt,26:vt,38:bt,41:[1,290],42:_t,52:G,66:X,67:Z,73:xt,81:wt,83:201,85:151,86:Tt,87:Ct,88:Et,89:St,90:At,91:Mt,92:Nt,94:142,95:Dt,105:K,106:J,109:Bt,111:et,112:nt,113:Lt,114:Ot,115:148,122:rt,123:it,124:at,125:ot,126:st,127:ct},{18:18,19:19,20:s,21:c,22:u,23:l,32:24,33:25,34:26,35:27,36:28,37:29,38:h,42:[1,291],43:31,44:f,46:d,48:p,50:35,51:45,52:g,54:46,66:y,67:m,86:v,87:b,88:_,89:x,90:w,91:k,95:T,105:C,106:E,109:S,111:A,112:M,116:47,118:N,119:D,120:B,121:L,122:O,123:I,124:R,125:F,126:P,127:Y},{22:Ut,66:zt,67:$t,86:qt,96:292,102:Ht,105:Wt,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt},{22:Ut,66:zt,67:$t,86:qt,96:293,102:Ht,105:Wt,107:243,108:244,109:Vt,110:Gt,111:Xt,112:Zt,113:Qt},t(lt,[2,64]),t(z,[2,41]),t(ft,[2,119],{106:Kt}),t(ft,[2,120],{106:Kt})],defaultActions:{2:[2,1],9:[2,5],10:[2,2],132:[2,7]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},ne={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,e,n,r){switch(n){case 0:return this.begin(\\\"open_directive\\\"),12;case 1:return this.begin(\\\"type_directive\\\"),13;case 2:return this.popState(),this.begin(\\\"arg_directive\\\"),10;case 3:return this.popState(),this.popState(),15;case 4:return 14;case 5:case 6:break;case 7:return this.begin(\\\"acc_title\\\"),44;case 8:return this.popState(),\\\"acc_title_value\\\";case 9:return this.begin(\\\"acc_descr\\\"),46;case 10:return this.popState(),\\\"acc_descr_value\\\";case 11:this.begin(\\\"acc_descr_multiline\\\");break;case 12:case 15:case 24:case 27:case 30:case 33:this.popState();break;case 13:return\\\"acc_descr_multiline_value\\\";case 14:this.begin(\\\"string\\\");break;case 16:return\\\"STR\\\";case 17:return 86;case 18:return 95;case 19:return 87;case 20:return 104;case 21:return 88;case 22:return 89;case 23:this.begin(\\\"href\\\");break;case 25:return 100;case 26:this.begin(\\\"callbackname\\\");break;case 28:this.popState(),this.begin(\\\"callbackargs\\\");break;case 29:return 98;case 31:return 99;case 32:this.begin(\\\"click\\\");break;case 34:return 90;case 35:case 36:return t.lex.firstGraph()&&this.begin(\\\"dir\\\"),24;case 37:return 38;case 38:return 42;case 39:case 40:case 41:case 42:return 101;case 43:return this.popState(),25;case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 53:return this.popState(),26;case 54:return 118;case 55:return 119;case 56:return 120;case 57:return 121;case 58:return 105;case 59:return 111;case 60:return 53;case 61:return 67;case 62:return 52;case 63:return 20;case 64:return 106;case 65:return 126;case 66:case 67:case 68:return 82;case 69:case 70:case 71:return 81;case 72:return 59;case 73:return 60;case 74:return 61;case 75:return 62;case 76:return 63;case 77:return 64;case 78:return 65;case 79:return 69;case 80:return 70;case 81:return 55;case 82:return 56;case 83:return 109;case 84:return 112;case 85:return 127;case 86:return 124;case 87:return 113;case 88:case 89:return 125;case 90:return 114;case 91:return 73;case 92:return 92;case 93:return\\\"SEP\\\";case 94:return 91;case 95:return 66;case 96:return 75;case 97:return 74;case 98:return 77;case 99:return 76;case 100:return 122;case 101:return 123;case 102:return 68;case 103:return 57;case 104:return 58;case 105:return 40;case 106:return 41;case 107:return 71;case 108:return 72;case 109:return 133;case 110:return 21;case 111:return 22;case 112:return 23}},rules:[/^(?:%%\\\\{)/,/^(?:((?:(?!\\\\}%%)[^:.])*))/,/^(?::)/,/^(?:\\\\}%%)/,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/,/^(?:%%(?!\\\\{)[^\\\\n]*)/,/^(?:[^\\\\}]%%[^\\\\n]*)/,/^(?:accTitle\\\\s*:\\\\s*)/,/^(?:(?!\\\\n||)*[^\\\\n]*)/,/^(?:accDescr\\\\s*:\\\\s*)/,/^(?:(?!\\\\n||)*[^\\\\n]*)/,/^(?:accDescr\\\\s*\\\\{\\\\s*)/,/^(?:[\\\\}])/,/^(?:[^\\\\}]*)/,/^(?:[\\\"])/,/^(?:[\\\"])/,/^(?:[^\\\"]*)/,/^(?:style\\\\b)/,/^(?:default\\\\b)/,/^(?:linkStyle\\\\b)/,/^(?:interpolate\\\\b)/,/^(?:classDef\\\\b)/,/^(?:class\\\\b)/,/^(?:href[\\\\s]+[\\\"])/,/^(?:[\\\"])/,/^(?:[^\\\"]*)/,/^(?:call[\\\\s]+)/,/^(?:\\\\([\\\\s]*\\\\))/,/^(?:\\\\()/,/^(?:[^(]*)/,/^(?:\\\\))/,/^(?:[^)]*)/,/^(?:click[\\\\s]+)/,/^(?:[\\\\s\\\\n])/,/^(?:[^\\\\s\\\\n]*)/,/^(?:graph\\\\b)/,/^(?:flowchart\\\\b)/,/^(?:subgraph\\\\b)/,/^(?:end\\\\b\\\\s*)/,/^(?:_self\\\\b)/,/^(?:_blank\\\\b)/,/^(?:_parent\\\\b)/,/^(?:_top\\\\b)/,/^(?:(\\\\r?\\\\n)*\\\\s*\\\\n)/,/^(?:\\\\s*LR\\\\b)/,/^(?:\\\\s*RL\\\\b)/,/^(?:\\\\s*TB\\\\b)/,/^(?:\\\\s*BT\\\\b)/,/^(?:\\\\s*TD\\\\b)/,/^(?:\\\\s*BR\\\\b)/,/^(?:\\\\s*<)/,/^(?:\\\\s*>)/,/^(?:\\\\s*\\\\^)/,/^(?:\\\\s*v\\\\b)/,/^(?:.*direction\\\\s+TB[^\\\\n]*)/,/^(?:.*direction\\\\s+BT[^\\\\n]*)/,/^(?:.*direction\\\\s+RL[^\\\\n]*)/,/^(?:.*direction\\\\s+LR[^\\\\n]*)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::::)/,/^(?::)/,/^(?:&)/,/^(?:;)/,/^(?:,)/,/^(?:\\\\*)/,/^(?:\\\\s*[xo<]?--+[-xo>]\\\\s*)/,/^(?:\\\\s*[xo<]?==+[=xo>]\\\\s*)/,/^(?:\\\\s*[xo<]?-?\\\\.+-[xo>]?\\\\s*)/,/^(?:\\\\s*[xo<]?--\\\\s*)/,/^(?:\\\\s*[xo<]?==\\\\s*)/,/^(?:\\\\s*[xo<]?-\\\\.\\\\s*)/,/^(?:\\\\(-)/,/^(?:-\\\\))/,/^(?:\\\\(\\\\[)/,/^(?:\\\\]\\\\))/,/^(?:\\\\[\\\\[)/,/^(?:\\\\]\\\\])/,/^(?:\\\\[\\\\|)/,/^(?:\\\\[\\\\()/,/^(?:\\\\)\\\\])/,/^(?:\\\\(\\\\(\\\\()/,/^(?:\\\\)\\\\)\\\\))/,/^(?:-)/,/^(?:\\\\.)/,/^(?:[\\\\_])/,/^(?:\\\\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:<)/,/^(?:>)/,/^(?:\\\\^)/,/^(?:\\\\\\\\\\\\|)/,/^(?:v\\\\b)/,/^(?:[A-Za-z]+)/,/^(?:\\\\\\\\\\\\])/,/^(?:\\\\[\\\\/)/,/^(?:\\\\/\\\\])/,/^(?:\\\\[\\\\\\\\)/,/^(?:[!\\\"#$%&'*+,-.`?\\\\\\\\_/])/,/^(?:[\\\\u00AA\\\\u00B5\\\\u00BA\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6]|[\\\\u00F8-\\\\u02C1\\\\u02C6-\\\\u02D1\\\\u02E0-\\\\u02E4\\\\u02EC\\\\u02EE\\\\u0370-\\\\u0374\\\\u0376\\\\u0377]|[\\\\u037A-\\\\u037D\\\\u0386\\\\u0388-\\\\u038A\\\\u038C\\\\u038E-\\\\u03A1\\\\u03A3-\\\\u03F5]|[\\\\u03F7-\\\\u0481\\\\u048A-\\\\u0527\\\\u0531-\\\\u0556\\\\u0559\\\\u0561-\\\\u0587\\\\u05D0-\\\\u05EA]|[\\\\u05F0-\\\\u05F2\\\\u0620-\\\\u064A\\\\u066E\\\\u066F\\\\u0671-\\\\u06D3\\\\u06D5\\\\u06E5\\\\u06E6\\\\u06EE]|[\\\\u06EF\\\\u06FA-\\\\u06FC\\\\u06FF\\\\u0710\\\\u0712-\\\\u072F\\\\u074D-\\\\u07A5\\\\u07B1\\\\u07CA-\\\\u07EA]|[\\\\u07F4\\\\u07F5\\\\u07FA\\\\u0800-\\\\u0815\\\\u081A\\\\u0824\\\\u0828\\\\u0840-\\\\u0858\\\\u08A0]|[\\\\u08A2-\\\\u08AC\\\\u0904-\\\\u0939\\\\u093D\\\\u0950\\\\u0958-\\\\u0961\\\\u0971-\\\\u0977]|[\\\\u0979-\\\\u097F\\\\u0985-\\\\u098C\\\\u098F\\\\u0990\\\\u0993-\\\\u09A8\\\\u09AA-\\\\u09B0\\\\u09B2]|[\\\\u09B6-\\\\u09B9\\\\u09BD\\\\u09CE\\\\u09DC\\\\u09DD\\\\u09DF-\\\\u09E1\\\\u09F0\\\\u09F1\\\\u0A05-\\\\u0A0A]|[\\\\u0A0F\\\\u0A10\\\\u0A13-\\\\u0A28\\\\u0A2A-\\\\u0A30\\\\u0A32\\\\u0A33\\\\u0A35\\\\u0A36\\\\u0A38\\\\u0A39]|[\\\\u0A59-\\\\u0A5C\\\\u0A5E\\\\u0A72-\\\\u0A74\\\\u0A85-\\\\u0A8D\\\\u0A8F-\\\\u0A91\\\\u0A93-\\\\u0AA8]|[\\\\u0AAA-\\\\u0AB0\\\\u0AB2\\\\u0AB3\\\\u0AB5-\\\\u0AB9\\\\u0ABD\\\\u0AD0\\\\u0AE0\\\\u0AE1\\\\u0B05-\\\\u0B0C]|[\\\\u0B0F\\\\u0B10\\\\u0B13-\\\\u0B28\\\\u0B2A-\\\\u0B30\\\\u0B32\\\\u0B33\\\\u0B35-\\\\u0B39\\\\u0B3D\\\\u0B5C]|[\\\\u0B5D\\\\u0B5F-\\\\u0B61\\\\u0B71\\\\u0B83\\\\u0B85-\\\\u0B8A\\\\u0B8E-\\\\u0B90\\\\u0B92-\\\\u0B95\\\\u0B99]|[\\\\u0B9A\\\\u0B9C\\\\u0B9E\\\\u0B9F\\\\u0BA3\\\\u0BA4\\\\u0BA8-\\\\u0BAA\\\\u0BAE-\\\\u0BB9\\\\u0BD0]|[\\\\u0C05-\\\\u0C0C\\\\u0C0E-\\\\u0C10\\\\u0C12-\\\\u0C28\\\\u0C2A-\\\\u0C33\\\\u0C35-\\\\u0C39\\\\u0C3D]|[\\\\u0C58\\\\u0C59\\\\u0C60\\\\u0C61\\\\u0C85-\\\\u0C8C\\\\u0C8E-\\\\u0C90\\\\u0C92-\\\\u0CA8\\\\u0CAA-\\\\u0CB3]|[\\\\u0CB5-\\\\u0CB9\\\\u0CBD\\\\u0CDE\\\\u0CE0\\\\u0CE1\\\\u0CF1\\\\u0CF2\\\\u0D05-\\\\u0D0C\\\\u0D0E-\\\\u0D10]|[\\\\u0D12-\\\\u0D3A\\\\u0D3D\\\\u0D4E\\\\u0D60\\\\u0D61\\\\u0D7A-\\\\u0D7F\\\\u0D85-\\\\u0D96\\\\u0D9A-\\\\u0DB1]|[\\\\u0DB3-\\\\u0DBB\\\\u0DBD\\\\u0DC0-\\\\u0DC6\\\\u0E01-\\\\u0E30\\\\u0E32\\\\u0E33\\\\u0E40-\\\\u0E46\\\\u0E81]|[\\\\u0E82\\\\u0E84\\\\u0E87\\\\u0E88\\\\u0E8A\\\\u0E8D\\\\u0E94-\\\\u0E97\\\\u0E99-\\\\u0E9F\\\\u0EA1-\\\\u0EA3]|[\\\\u0EA5\\\\u0EA7\\\\u0EAA\\\\u0EAB\\\\u0EAD-\\\\u0EB0\\\\u0EB2\\\\u0EB3\\\\u0EBD\\\\u0EC0-\\\\u0EC4\\\\u0EC6]|[\\\\u0EDC-\\\\u0EDF\\\\u0F00\\\\u0F40-\\\\u0F47\\\\u0F49-\\\\u0F6C\\\\u0F88-\\\\u0F8C\\\\u1000-\\\\u102A]|[\\\\u103F\\\\u1050-\\\\u1055\\\\u105A-\\\\u105D\\\\u1061\\\\u1065\\\\u1066\\\\u106E-\\\\u1070\\\\u1075-\\\\u1081]|[\\\\u108E\\\\u10A0-\\\\u10C5\\\\u10C7\\\\u10CD\\\\u10D0-\\\\u10FA\\\\u10FC-\\\\u1248\\\\u124A-\\\\u124D]|[\\\\u1250-\\\\u1256\\\\u1258\\\\u125A-\\\\u125D\\\\u1260-\\\\u1288\\\\u128A-\\\\u128D\\\\u1290-\\\\u12B0]|[\\\\u12B2-\\\\u12B5\\\\u12B8-\\\\u12BE\\\\u12C0\\\\u12C2-\\\\u12C5\\\\u12C8-\\\\u12D6\\\\u12D8-\\\\u1310]|[\\\\u1312-\\\\u1315\\\\u1318-\\\\u135A\\\\u1380-\\\\u138F\\\\u13A0-\\\\u13F4\\\\u1401-\\\\u166C]|[\\\\u166F-\\\\u167F\\\\u1681-\\\\u169A\\\\u16A0-\\\\u16EA\\\\u1700-\\\\u170C\\\\u170E-\\\\u1711]|[\\\\u1720-\\\\u1731\\\\u1740-\\\\u1751\\\\u1760-\\\\u176C\\\\u176E-\\\\u1770\\\\u1780-\\\\u17B3\\\\u17D7]|[\\\\u17DC\\\\u1820-\\\\u1877\\\\u1880-\\\\u18A8\\\\u18AA\\\\u18B0-\\\\u18F5\\\\u1900-\\\\u191C]|[\\\\u1950-\\\\u196D\\\\u1970-\\\\u1974\\\\u1980-\\\\u19AB\\\\u19C1-\\\\u19C7\\\\u1A00-\\\\u1A16]|[\\\\u1A20-\\\\u1A54\\\\u1AA7\\\\u1B05-\\\\u1B33\\\\u1B45-\\\\u1B4B\\\\u1B83-\\\\u1BA0\\\\u1BAE\\\\u1BAF]|[\\\\u1BBA-\\\\u1BE5\\\\u1C00-\\\\u1C23\\\\u1C4D-\\\\u1C4F\\\\u1C5A-\\\\u1C7D\\\\u1CE9-\\\\u1CEC]|[\\\\u1CEE-\\\\u1CF1\\\\u1CF5\\\\u1CF6\\\\u1D00-\\\\u1DBF\\\\u1E00-\\\\u1F15\\\\u1F18-\\\\u1F1D]|[\\\\u1F20-\\\\u1F45\\\\u1F48-\\\\u1F4D\\\\u1F50-\\\\u1F57\\\\u1F59\\\\u1F5B\\\\u1F5D\\\\u1F5F-\\\\u1F7D]|[\\\\u1F80-\\\\u1FB4\\\\u1FB6-\\\\u1FBC\\\\u1FBE\\\\u1FC2-\\\\u1FC4\\\\u1FC6-\\\\u1FCC\\\\u1FD0-\\\\u1FD3]|[\\\\u1FD6-\\\\u1FDB\\\\u1FE0-\\\\u1FEC\\\\u1FF2-\\\\u1FF4\\\\u1FF6-\\\\u1FFC\\\\u2071\\\\u207F]|[\\\\u2090-\\\\u209C\\\\u2102\\\\u2107\\\\u210A-\\\\u2113\\\\u2115\\\\u2119-\\\\u211D\\\\u2124\\\\u2126\\\\u2128]|[\\\\u212A-\\\\u212D\\\\u212F-\\\\u2139\\\\u213C-\\\\u213F\\\\u2145-\\\\u2149\\\\u214E\\\\u2183\\\\u2184]|[\\\\u2C00-\\\\u2C2E\\\\u2C30-\\\\u2C5E\\\\u2C60-\\\\u2CE4\\\\u2CEB-\\\\u2CEE\\\\u2CF2\\\\u2CF3]|[\\\\u2D00-\\\\u2D25\\\\u2D27\\\\u2D2D\\\\u2D30-\\\\u2D67\\\\u2D6F\\\\u2D80-\\\\u2D96\\\\u2DA0-\\\\u2DA6]|[\\\\u2DA8-\\\\u2DAE\\\\u2DB0-\\\\u2DB6\\\\u2DB8-\\\\u2DBE\\\\u2DC0-\\\\u2DC6\\\\u2DC8-\\\\u2DCE]|[\\\\u2DD0-\\\\u2DD6\\\\u2DD8-\\\\u2DDE\\\\u2E2F\\\\u3005\\\\u3006\\\\u3031-\\\\u3035\\\\u303B\\\\u303C]|[\\\\u3041-\\\\u3096\\\\u309D-\\\\u309F\\\\u30A1-\\\\u30FA\\\\u30FC-\\\\u30FF\\\\u3105-\\\\u312D]|[\\\\u3131-\\\\u318E\\\\u31A0-\\\\u31BA\\\\u31F0-\\\\u31FF\\\\u3400-\\\\u4DB5\\\\u4E00-\\\\u9FCC]|[\\\\uA000-\\\\uA48C\\\\uA4D0-\\\\uA4FD\\\\uA500-\\\\uA60C\\\\uA610-\\\\uA61F\\\\uA62A\\\\uA62B]|[\\\\uA640-\\\\uA66E\\\\uA67F-\\\\uA697\\\\uA6A0-\\\\uA6E5\\\\uA717-\\\\uA71F\\\\uA722-\\\\uA788]|[\\\\uA78B-\\\\uA78E\\\\uA790-\\\\uA793\\\\uA7A0-\\\\uA7AA\\\\uA7F8-\\\\uA801\\\\uA803-\\\\uA805]|[\\\\uA807-\\\\uA80A\\\\uA80C-\\\\uA822\\\\uA840-\\\\uA873\\\\uA882-\\\\uA8B3\\\\uA8F2-\\\\uA8F7\\\\uA8FB]|[\\\\uA90A-\\\\uA925\\\\uA930-\\\\uA946\\\\uA960-\\\\uA97C\\\\uA984-\\\\uA9B2\\\\uA9CF\\\\uAA00-\\\\uAA28]|[\\\\uAA40-\\\\uAA42\\\\uAA44-\\\\uAA4B\\\\uAA60-\\\\uAA76\\\\uAA7A\\\\uAA80-\\\\uAAAF\\\\uAAB1\\\\uAAB5]|[\\\\uAAB6\\\\uAAB9-\\\\uAABD\\\\uAAC0\\\\uAAC2\\\\uAADB-\\\\uAADD\\\\uAAE0-\\\\uAAEA\\\\uAAF2-\\\\uAAF4]|[\\\\uAB01-\\\\uAB06\\\\uAB09-\\\\uAB0E\\\\uAB11-\\\\uAB16\\\\uAB20-\\\\uAB26\\\\uAB28-\\\\uAB2E]|[\\\\uABC0-\\\\uABE2\\\\uAC00-\\\\uD7A3\\\\uD7B0-\\\\uD7C6\\\\uD7CB-\\\\uD7FB\\\\uF900-\\\\uFA6D]|[\\\\uFA70-\\\\uFAD9\\\\uFB00-\\\\uFB06\\\\uFB13-\\\\uFB17\\\\uFB1D\\\\uFB1F-\\\\uFB28\\\\uFB2A-\\\\uFB36]|[\\\\uFB38-\\\\uFB3C\\\\uFB3E\\\\uFB40\\\\uFB41\\\\uFB43\\\\uFB44\\\\uFB46-\\\\uFBB1\\\\uFBD3-\\\\uFD3D]|[\\\\uFD50-\\\\uFD8F\\\\uFD92-\\\\uFDC7\\\\uFDF0-\\\\uFDFB\\\\uFE70-\\\\uFE74\\\\uFE76-\\\\uFEFC]|[\\\\uFF21-\\\\uFF3A\\\\uFF41-\\\\uFF5A\\\\uFF66-\\\\uFFBE\\\\uFFC2-\\\\uFFC7\\\\uFFCA-\\\\uFFCF]|[\\\\uFFD2-\\\\uFFD7\\\\uFFDA-\\\\uFFDC])/,/^(?:\\\\|)/,/^(?:\\\\()/,/^(?:\\\\))/,/^(?:\\\\[)/,/^(?:\\\\])/,/^(?:\\\\{)/,/^(?:\\\\})/,/^(?:\\\")/,/^(?:(\\\\r?\\\\n)+)/,/^(?:\\\\s)/,/^(?:$)/],conditions:{close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[30,31],inclusive:!1},callbackname:{rules:[27,28,29],inclusive:!1},href:{rules:[24,25],inclusive:!1},click:{rules:[33,34],inclusive:!1},vertex:{rules:[],inclusive:!1},dir:{rules:[43,44,45,46,47,48,49,50,51,52,53],inclusive:!1},acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},string:{rules:[15,16],inclusive:!1},INITIAL:{rules:[0,5,6,7,9,11,14,17,18,19,20,21,22,23,26,32,35,36,37,38,39,40,41,42,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112],inclusive:!0}}};function re(){this.yy={}}return ee.lexer=ne,re.prototype=ee,ee.Parser=re,new re}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(5354).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9959:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],i=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],u=[1,20],l=[1,21],h=[1,22],f=[1,23],d=[1,24],p=[1,25],g=[1,26],y=[1,28],m=[1,30],v=[1,33],b=[5,7,9,11,12,13,14,15,16,17,18,19,20,22,24,25,27,34,39],_={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,gantt:5,document:6,EOF:7,line:8,SPACE:9,statement:10,NL:11,dateFormat:12,inclusiveEndDates:13,topAxis:14,axisFormat:15,excludes:16,includes:17,todayMarker:18,title:19,acc_title:20,acc_title_value:21,acc_descr:22,acc_descr_value:23,acc_descr_multiline_value:24,section:25,clickStatement:26,taskTxt:27,taskData:28,openDirective:29,typeDirective:30,closeDirective:31,\\\":\\\":32,argDirective:33,click:34,callbackname:35,callbackargs:36,href:37,clickStatementDebug:38,open_directive:39,type_directive:40,arg_directive:41,close_directive:42,$accept:0,$end:1},terminals_:{2:\\\"error\\\",5:\\\"gantt\\\",7:\\\"EOF\\\",9:\\\"SPACE\\\",11:\\\"NL\\\",12:\\\"dateFormat\\\",13:\\\"inclusiveEndDates\\\",14:\\\"topAxis\\\",15:\\\"axisFormat\\\",16:\\\"excludes\\\",17:\\\"includes\\\",18:\\\"todayMarker\\\",19:\\\"title\\\",20:\\\"acc_title\\\",21:\\\"acc_title_value\\\",22:\\\"acc_descr\\\",23:\\\"acc_descr_value\\\",24:\\\"acc_descr_multiline_value\\\",25:\\\"section\\\",27:\\\"taskTxt\\\",28:\\\"taskData\\\",32:\\\":\\\",34:\\\"click\\\",35:\\\"callbackname\\\",36:\\\"callbackargs\\\",37:\\\"href\\\",39:\\\"open_directive\\\",40:\\\"type_directive\\\",41:\\\"arg_directive\\\",42:\\\"close_directive\\\"},productions_:[0,[3,2],[3,3],[6,0],[6,2],[8,2],[8,1],[8,1],[8,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[10,1],[10,1],[10,2],[10,1],[4,4],[4,6],[26,2],[26,3],[26,3],[26,4],[26,3],[26,4],[26,2],[38,2],[38,3],[38,3],[38,4],[38,3],[38,4],[38,2],[29,1],[30,1],[33,1],[31,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 2:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 9:r.setDateFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 10:r.enableInclusiveEndDates(),this.$=a[s].substr(18);break;case 11:r.TopAxis(),this.$=a[s].substr(8);break;case 12:r.setAxisFormat(a[s].substr(11)),this.$=a[s].substr(11);break;case 13:r.setExcludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 14:r.setIncludes(a[s].substr(9)),this.$=a[s].substr(9);break;case 15:r.setTodayMarker(a[s].substr(12)),this.$=a[s].substr(12);break;case 16:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 17:this.$=a[s].trim(),r.setTitle(this.$);break;case 18:case 19:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 20:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 22:r.addTask(a[s-1],a[s]),this.$=\\\"task\\\";break;case 26:this.$=a[s-1],r.setClickEvent(a[s-1],a[s],null);break;case 27:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],a[s]);break;case 28:this.$=a[s-2],r.setClickEvent(a[s-2],a[s-1],null),r.setLink(a[s-2],a[s]);break;case 29:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-2],a[s-1]),r.setLink(a[s-3],a[s]);break;case 30:this.$=a[s-2],r.setClickEvent(a[s-2],a[s],null),r.setLink(a[s-2],a[s-1]);break;case 31:this.$=a[s-3],r.setClickEvent(a[s-3],a[s-1],a[s]),r.setLink(a[s-3],a[s-2]);break;case 32:this.$=a[s-1],r.setLink(a[s-1],a[s]);break;case 33:case 39:this.$=a[s-1]+\\\" \\\"+a[s];break;case 34:case 35:case 37:this.$=a[s-2]+\\\" \\\"+a[s-1]+\\\" \\\"+a[s];break;case 36:case 38:this.$=a[s-3]+\\\" \\\"+a[s-2]+\\\" \\\"+a[s-1]+\\\" \\\"+a[s];break;case 40:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 41:r.parseDirective(a[s],\\\"type_directive\\\");break;case 42:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 43:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"gantt\\\")}},table:[{3:1,4:2,5:e,29:4,39:n},{1:[3]},{3:6,4:2,5:e,29:4,39:n},t(r,[2,3],{6:7}),{30:8,40:[1,9]},{40:[2,40]},{1:[2,1]},{4:29,7:[1,10],8:11,9:[1,12],10:13,11:[1,14],12:i,13:a,14:o,15:s,16:c,17:u,18:l,19:h,20:f,22:d,24:p,25:g,26:27,27:y,29:4,34:m,39:n},{31:31,32:[1,32],42:v},t([32,42],[2,41]),t(r,[2,8],{1:[2,2]}),t(r,[2,4]),{4:29,10:34,12:i,13:a,14:o,15:s,16:c,17:u,18:l,19:h,20:f,22:d,24:p,25:g,26:27,27:y,29:4,34:m,39:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,9]),t(r,[2,10]),t(r,[2,11]),t(r,[2,12]),t(r,[2,13]),t(r,[2,14]),t(r,[2,15]),t(r,[2,16]),{21:[1,35]},{23:[1,36]},t(r,[2,19]),t(r,[2,20]),t(r,[2,21]),{28:[1,37]},t(r,[2,23]),{35:[1,38],37:[1,39]},{11:[1,40]},{33:41,41:[1,42]},{11:[2,43]},t(r,[2,5]),t(r,[2,17]),t(r,[2,18]),t(r,[2,22]),t(r,[2,26],{36:[1,43],37:[1,44]}),t(r,[2,32],{35:[1,45]}),t(b,[2,24]),{31:46,42:v},{42:[2,42]},t(r,[2,27],{37:[1,47]}),t(r,[2,28]),t(r,[2,30],{36:[1,48]}),{11:[1,49]},t(r,[2,29]),t(r,[2,31]),t(b,[2,25])],defaultActions:{5:[2,40],6:[2,1],33:[2,43],42:[2,42]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},x={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\\\"case-insensitive\\\":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin(\\\"open_directive\\\"),39;case 1:return this.begin(\\\"type_directive\\\"),40;case 2:return this.popState(),this.begin(\\\"arg_directive\\\"),32;case 3:return this.popState(),this.popState(),42;case 4:return 41;case 5:return this.begin(\\\"acc_title\\\"),20;case 6:return this.popState(),\\\"acc_title_value\\\";case 7:return this.begin(\\\"acc_descr\\\"),22;case 8:return this.popState(),\\\"acc_descr_value\\\";case 9:this.begin(\\\"acc_descr_multiline\\\");break;case 10:case 20:case 23:case 26:case 29:this.popState();break;case 11:return\\\"acc_descr_multiline_value\\\";case 12:case 13:case 14:case 16:case 17:case 18:break;case 15:return 11;case 19:this.begin(\\\"href\\\");break;case 21:return 37;case 22:this.begin(\\\"callbackname\\\");break;case 24:this.popState(),this.begin(\\\"callbackargs\\\");break;case 25:return 35;case 27:return 36;case 28:this.begin(\\\"click\\\");break;case 30:return 34;case 31:return 5;case 32:return 12;case 33:return 13;case 34:return 14;case 35:return 15;case 36:return 17;case 37:return 16;case 38:return 18;case 39:return\\\"date\\\";case 40:return 19;case 41:return\\\"accDescription\\\";case 42:return 25;case 43:return 27;case 44:return 28;case 45:return 32;case 46:return 7;case 47:return\\\"INVALID\\\"}},rules:[/^(?:%%\\\\{)/i,/^(?:((?:(?!\\\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\\\}%%)/i,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/i,/^(?:accTitle\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*\\\\{\\\\s*)/i,/^(?:[\\\\}])/i,/^(?:[^\\\\}]*)/i,/^(?:%%(?!\\\\{)*[^\\\\n]*)/i,/^(?:[^\\\\}]%%*[^\\\\n]*)/i,/^(?:%%*[^\\\\n]*[\\\\n]*)/i,/^(?:[\\\\n]+)/i,/^(?:\\\\s+)/i,/^(?:#[^\\\\n]*)/i,/^(?:%[^\\\\n]*)/i,/^(?:href[\\\\s]+[\\\"])/i,/^(?:[\\\"])/i,/^(?:[^\\\"]*)/i,/^(?:call[\\\\s]+)/i,/^(?:\\\\([\\\\s]*\\\\))/i,/^(?:\\\\()/i,/^(?:[^(]*)/i,/^(?:\\\\))/i,/^(?:[^)]*)/i,/^(?:click[\\\\s]+)/i,/^(?:[\\\\s\\\\n])/i,/^(?:[^\\\\s\\\\n]*)/i,/^(?:gantt\\\\b)/i,/^(?:dateFormat\\\\s[^#\\\\n;]+)/i,/^(?:inclusiveEndDates\\\\b)/i,/^(?:topAxis\\\\b)/i,/^(?:axisFormat\\\\s[^#\\\\n;]+)/i,/^(?:includes\\\\s[^#\\\\n;]+)/i,/^(?:excludes\\\\s[^#\\\\n;]+)/i,/^(?:todayMarker\\\\s[^\\\\n;]+)/i,/^(?:\\\\d\\\\d\\\\d\\\\d-\\\\d\\\\d-\\\\d\\\\d\\\\b)/i,/^(?:title\\\\s[^#\\\\n;]+)/i,/^(?:accDescription\\\\s[^#\\\\n;]+)/i,/^(?:section\\\\s[^#:\\\\n;]+)/i,/^(?:[^#:\\\\n;]+)/i,/^(?::[^#\\\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},callbackargs:{rules:[26,27],inclusive:!1},callbackname:{rules:[23,24,25],inclusive:!1},href:{rules:[20,21],inclusive:!1},click:{rules:[29,30],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,22,28,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],inclusive:!0}}};function w(){this.yy={}}return _.lexer=x,w.prototype=_,_.Parser=w,new w}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(6878).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},2553:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,7],r=[1,5],i=[1,9],a=[1,6],o=[2,6],s=[1,16],c=[6,8,14,19,21,23,24,26,28,31,34,47,51],u=[8,14,19,21,23,24,26,28,31,34],l=[8,13,14,19,21,23,24,26,28,31,34],h=[1,26],f=[6,8,14,47,51],d=[8,14,51],p=[1,61],g=[1,62],y=[1,63],m=[8,14,32,38,39,51],v={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,GG:6,document:7,EOF:8,\\\":\\\":9,DIR:10,options:11,body:12,OPT:13,NL:14,line:15,statement:16,commitStatement:17,mergeStatement:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,section:24,branchStatement:25,CHECKOUT:26,ID:27,BRANCH:28,ORDER:29,NUM:30,MERGE:31,COMMIT_TAG:32,STR:33,COMMIT:34,commit_arg:35,COMMIT_TYPE:36,commitType:37,COMMIT_ID:38,COMMIT_MSG:39,NORMAL:40,REVERSE:41,HIGHLIGHT:42,openDirective:43,typeDirective:44,closeDirective:45,argDirective:46,open_directive:47,type_directive:48,arg_directive:49,close_directive:50,\\\";\\\":51,$accept:0,$end:1},terminals_:{2:\\\"error\\\",6:\\\"GG\\\",8:\\\"EOF\\\",9:\\\":\\\",10:\\\"DIR\\\",13:\\\"OPT\\\",14:\\\"NL\\\",19:\\\"acc_title\\\",20:\\\"acc_title_value\\\",21:\\\"acc_descr\\\",22:\\\"acc_descr_value\\\",23:\\\"acc_descr_multiline_value\\\",24:\\\"section\\\",26:\\\"CHECKOUT\\\",27:\\\"ID\\\",28:\\\"BRANCH\\\",29:\\\"ORDER\\\",30:\\\"NUM\\\",31:\\\"MERGE\\\",32:\\\"COMMIT_TAG\\\",33:\\\"STR\\\",34:\\\"COMMIT\\\",36:\\\"COMMIT_TYPE\\\",38:\\\"COMMIT_ID\\\",39:\\\"COMMIT_MSG\\\",40:\\\"NORMAL\\\",41:\\\"REVERSE\\\",42:\\\"HIGHLIGHT\\\",47:\\\"open_directive\\\",48:\\\"type_directive\\\",49:\\\"arg_directive\\\",50:\\\"close_directive\\\",51:\\\";\\\"},productions_:[0,[3,2],[3,2],[3,3],[3,4],[3,5],[7,0],[7,2],[11,2],[11,1],[12,0],[12,2],[15,2],[15,1],[16,1],[16,1],[16,2],[16,2],[16,1],[16,1],[16,1],[16,2],[25,2],[25,4],[18,2],[18,4],[17,2],[17,3],[17,3],[17,5],[17,5],[17,3],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,3],[17,5],[17,5],[17,5],[17,5],[17,5],[17,5],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,7],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[17,9],[35,0],[35,1],[37,1],[37,1],[37,1],[5,3],[5,5],[43,1],[44,1],[46,1],[45,1],[4,1],[4,1],[4,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 3:return a[s];case 4:return a[s-1];case 5:return r.setDirection(a[s-3]),a[s-1];case 7:r.setOptions(a[s-1]),this.$=a[s];break;case 8:a[s-1]+=a[s],this.$=a[s-1];break;case 10:this.$=[];break;case 11:a[s-1].push(a[s]),this.$=a[s-1];break;case 12:this.$=a[s-1];break;case 16:this.$=a[s].trim(),r.setTitle(this.$);break;case 17:case 18:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 19:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 21:r.checkout(a[s]);break;case 22:r.branch(a[s]);break;case 23:r.branch(a[s-2],a[s]);break;case 24:r.merge(a[s]);break;case 25:r.merge(a[s-2],a[s]);break;case 26:r.commit(a[s]);break;case 27:r.commit(\\\"\\\",\\\"\\\",r.commitType.NORMAL,a[s]);break;case 28:r.commit(\\\"\\\",\\\"\\\",a[s],\\\"\\\");break;case 29:r.commit(\\\"\\\",\\\"\\\",a[s],a[s-2]);break;case 30:r.commit(\\\"\\\",\\\"\\\",a[s-2],a[s]);break;case 31:r.commit(\\\"\\\",a[s],r.commitType.NORMAL,\\\"\\\");break;case 32:r.commit(\\\"\\\",a[s-2],r.commitType.NORMAL,a[s]);break;case 33:r.commit(\\\"\\\",a[s],r.commitType.NORMAL,a[s-2]);break;case 34:r.commit(\\\"\\\",a[s-2],a[s],\\\"\\\");break;case 35:r.commit(\\\"\\\",a[s],a[s-2],\\\"\\\");break;case 36:r.commit(\\\"\\\",a[s-4],a[s-2],a[s]);break;case 37:r.commit(\\\"\\\",a[s-4],a[s],a[s-2]);break;case 38:r.commit(\\\"\\\",a[s-2],a[s-4],a[s]);break;case 39:r.commit(\\\"\\\",a[s],a[s-4],a[s-2]);break;case 40:r.commit(\\\"\\\",a[s],a[s-2],a[s-4]);break;case 41:r.commit(\\\"\\\",a[s-2],a[s],a[s-4]);break;case 42:r.commit(a[s],\\\"\\\",r.commitType.NORMAL,\\\"\\\");break;case 43:r.commit(a[s],\\\"\\\",r.commitType.NORMAL,a[s-2]);break;case 44:r.commit(a[s-2],\\\"\\\",r.commitType.NORMAL,a[s]);break;case 45:r.commit(a[s-2],\\\"\\\",a[s],\\\"\\\");break;case 46:r.commit(a[s],\\\"\\\",a[s-2],\\\"\\\");break;case 47:r.commit(a[s],a[s-2],r.commitType.NORMAL,\\\"\\\");break;case 48:r.commit(a[s-2],a[s],r.commitType.NORMAL,\\\"\\\");break;case 49:r.commit(a[s-4],\\\"\\\",a[s-2],a[s]);break;case 50:r.commit(a[s-4],\\\"\\\",a[s],a[s-2]);break;case 51:r.commit(a[s-2],\\\"\\\",a[s-4],a[s]);break;case 52:r.commit(a[s],\\\"\\\",a[s-4],a[s-2]);break;case 53:r.commit(a[s],\\\"\\\",a[s-2],a[s-4]);break;case 54:r.commit(a[s-2],\\\"\\\",a[s],a[s-4]);break;case 55:r.commit(a[s-4],a[s],a[s-2],\\\"\\\");break;case 56:r.commit(a[s-4],a[s-2],a[s],\\\"\\\");break;case 57:r.commit(a[s-2],a[s],a[s-4],\\\"\\\");break;case 58:r.commit(a[s],a[s-2],a[s-4],\\\"\\\");break;case 59:r.commit(a[s],a[s-4],a[s-2],\\\"\\\");break;case 60:r.commit(a[s-2],a[s-4],a[s],\\\"\\\");break;case 61:r.commit(a[s-4],a[s],r.commitType.NORMAL,a[s-2]);break;case 62:r.commit(a[s-4],a[s-2],r.commitType.NORMAL,a[s]);break;case 63:r.commit(a[s-2],a[s],r.commitType.NORMAL,a[s-4]);break;case 64:r.commit(a[s],a[s-2],r.commitType.NORMAL,a[s-4]);break;case 65:r.commit(a[s],a[s-4],r.commitType.NORMAL,a[s-2]);break;case 66:r.commit(a[s-2],a[s-4],r.commitType.NORMAL,a[s]);break;case 67:r.commit(a[s-6],a[s-4],a[s-2],a[s]);break;case 68:r.commit(a[s-6],a[s-4],a[s],a[s-2]);break;case 69:r.commit(a[s-6],a[s-2],a[s-4],a[s]);break;case 70:r.commit(a[s-6],a[s],a[s-4],a[s-2]);break;case 71:r.commit(a[s-6],a[s-2],a[s],a[s-4]);break;case 72:r.commit(a[s-6],a[s],a[s-2],a[s-4]);break;case 73:r.commit(a[s-4],a[s-6],a[s-2],a[s]);break;case 74:r.commit(a[s-4],a[s-6],a[s],a[s-2]);break;case 75:r.commit(a[s-2],a[s-6],a[s-4],a[s]);break;case 76:r.commit(a[s],a[s-6],a[s-4],a[s-2]);break;case 77:r.commit(a[s-2],a[s-6],a[s],a[s-4]);break;case 78:r.commit(a[s],a[s-6],a[s-2],a[s-4]);break;case 79:r.commit(a[s],a[s-4],a[s-2],a[s-6]);break;case 80:r.commit(a[s-2],a[s-4],a[s],a[s-6]);break;case 81:r.commit(a[s],a[s-2],a[s-4],a[s-6]);break;case 82:r.commit(a[s-2],a[s],a[s-4],a[s-6]);break;case 83:r.commit(a[s-4],a[s-2],a[s],a[s-6]);break;case 84:r.commit(a[s-4],a[s],a[s-2],a[s-6]);break;case 85:r.commit(a[s-2],a[s-4],a[s-6],a[s]);break;case 86:r.commit(a[s],a[s-4],a[s-6],a[s-2]);break;case 87:r.commit(a[s-2],a[s],a[s-6],a[s-4]);break;case 88:r.commit(a[s],a[s-2],a[s-6],a[s-4]);break;case 89:r.commit(a[s-4],a[s-2],a[s-6],a[s]);break;case 90:r.commit(a[s-4],a[s],a[s-6],a[s-2]);break;case 91:this.$=\\\"\\\";break;case 92:this.$=a[s];break;case 93:this.$=r.commitType.NORMAL;break;case 94:this.$=r.commitType.REVERSE;break;case 95:this.$=r.commitType.HIGHLIGHT;break;case 98:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 99:r.parseDirective(a[s],\\\"type_directive\\\");break;case 100:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 101:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"gitGraph\\\")}},table:[{3:1,4:2,5:3,6:e,8:n,14:r,43:8,47:i,51:a},{1:[3]},{3:10,4:2,5:3,6:e,8:n,14:r,43:8,47:i,51:a},{3:11,4:2,5:3,6:e,8:n,14:r,43:8,47:i,51:a},{7:12,8:o,9:[1,13],10:[1,14],11:15,14:s},t(c,[2,102]),t(c,[2,103]),t(c,[2,104]),{44:17,48:[1,18]},{48:[2,98]},{1:[2,1]},{1:[2,2]},{8:[1,19]},{7:20,8:o,11:15,14:s},{9:[1,21]},t(u,[2,10],{12:22,13:[1,23]}),t(l,[2,9]),{9:[1,25],45:24,50:h},t([9,50],[2,99]),{1:[2,3]},{8:[1,27]},{7:28,8:o,11:15,14:s},{8:[2,7],14:[1,31],15:29,16:30,17:32,18:33,19:[1,34],21:[1,35],23:[1,36],24:[1,37],25:38,26:[1,39],28:[1,42],31:[1,41],34:[1,40]},t(l,[2,8]),t(f,[2,96]),{46:43,49:[1,44]},t(f,[2,101]),{1:[2,4]},{8:[1,45]},t(u,[2,11]),{4:46,8:n,14:r,51:a},t(u,[2,13]),t(d,[2,14]),t(d,[2,15]),{20:[1,47]},{22:[1,48]},t(d,[2,18]),t(d,[2,19]),t(d,[2,20]),{27:[1,49]},t(d,[2,91],{35:50,32:[1,51],33:[1,55],36:[1,52],38:[1,53],39:[1,54]}),{27:[1,56]},{27:[1,57]},{45:58,50:h},{50:[2,100]},{1:[2,5]},t(u,[2,12]),t(d,[2,16]),t(d,[2,17]),t(d,[2,21]),t(d,[2,26]),{33:[1,59]},{37:60,40:p,41:g,42:y},{33:[1,64]},{33:[1,65]},t(d,[2,92]),t(d,[2,24],{32:[1,66]}),t(d,[2,22],{29:[1,67]}),t(f,[2,97]),t(d,[2,27],{36:[1,68],38:[1,69],39:[1,70]}),t(d,[2,28],{32:[1,71],38:[1,72],39:[1,73]}),t(m,[2,93]),t(m,[2,94]),t(m,[2,95]),t(d,[2,31],{32:[1,74],36:[1,75],39:[1,76]}),t(d,[2,42],{32:[1,77],36:[1,78],38:[1,79]}),{33:[1,80]},{30:[1,81]},{37:82,40:p,41:g,42:y},{33:[1,83]},{33:[1,84]},{33:[1,85]},{33:[1,86]},{33:[1,87]},{33:[1,88]},{37:89,40:p,41:g,42:y},{33:[1,90]},{33:[1,91]},{37:92,40:p,41:g,42:y},{33:[1,93]},t(d,[2,25]),t(d,[2,23]),t(d,[2,29],{38:[1,94],39:[1,95]}),t(d,[2,33],{36:[1,96],39:[1,97]}),t(d,[2,43],{36:[1,98],38:[1,99]}),t(d,[2,30],{38:[1,100],39:[1,101]}),t(d,[2,35],{32:[1,102],39:[1,103]}),t(d,[2,46],{32:[1,104],38:[1,105]}),t(d,[2,32],{36:[1,106],39:[1,107]}),t(d,[2,34],{32:[1,108],39:[1,109]}),t(d,[2,47],{32:[1,111],36:[1,110]}),t(d,[2,44],{36:[1,112],38:[1,113]}),t(d,[2,45],{32:[1,114],38:[1,115]}),t(d,[2,48],{32:[1,117],36:[1,116]}),{33:[1,118]},{33:[1,119]},{37:120,40:p,41:g,42:y},{33:[1,121]},{37:122,40:p,41:g,42:y},{33:[1,123]},{33:[1,124]},{33:[1,125]},{33:[1,126]},{33:[1,127]},{33:[1,128]},{33:[1,129]},{37:130,40:p,41:g,42:y},{33:[1,131]},{33:[1,132]},{33:[1,133]},{37:134,40:p,41:g,42:y},{33:[1,135]},{37:136,40:p,41:g,42:y},{33:[1,137]},{33:[1,138]},{33:[1,139]},{37:140,40:p,41:g,42:y},{33:[1,141]},t(d,[2,40],{39:[1,142]}),t(d,[2,53],{38:[1,143]}),t(d,[2,41],{39:[1,144]}),t(d,[2,64],{36:[1,145]}),t(d,[2,54],{38:[1,146]}),t(d,[2,63],{36:[1,147]}),t(d,[2,39],{39:[1,148]}),t(d,[2,52],{38:[1,149]}),t(d,[2,38],{39:[1,150]}),t(d,[2,58],{32:[1,151]}),t(d,[2,51],{38:[1,152]}),t(d,[2,57],{32:[1,153]}),t(d,[2,37],{39:[1,154]}),t(d,[2,65],{36:[1,155]}),t(d,[2,36],{39:[1,156]}),t(d,[2,59],{32:[1,157]}),t(d,[2,60],{32:[1,158]}),t(d,[2,66],{36:[1,159]}),t(d,[2,50],{38:[1,160]}),t(d,[2,61],{36:[1,161]}),t(d,[2,49],{38:[1,162]}),t(d,[2,55],{32:[1,163]}),t(d,[2,56],{32:[1,164]}),t(d,[2,62],{36:[1,165]}),{33:[1,166]},{33:[1,167]},{33:[1,168]},{37:169,40:p,41:g,42:y},{33:[1,170]},{37:171,40:p,41:g,42:y},{33:[1,172]},{33:[1,173]},{33:[1,174]},{33:[1,175]},{33:[1,176]},{33:[1,177]},{33:[1,178]},{37:179,40:p,41:g,42:y},{33:[1,180]},{33:[1,181]},{33:[1,182]},{37:183,40:p,41:g,42:y},{33:[1,184]},{37:185,40:p,41:g,42:y},{33:[1,186]},{33:[1,187]},{33:[1,188]},{37:189,40:p,41:g,42:y},t(d,[2,81]),t(d,[2,82]),t(d,[2,79]),t(d,[2,80]),t(d,[2,84]),t(d,[2,83]),t(d,[2,88]),t(d,[2,87]),t(d,[2,86]),t(d,[2,85]),t(d,[2,90]),t(d,[2,89]),t(d,[2,78]),t(d,[2,77]),t(d,[2,76]),t(d,[2,75]),t(d,[2,73]),t(d,[2,74]),t(d,[2,72]),t(d,[2,71]),t(d,[2,70]),t(d,[2,69]),t(d,[2,67]),t(d,[2,68])],defaultActions:{9:[2,98],10:[2,1],11:[2,2],19:[2,3],27:[2,4],44:[2,100],45:[2,5]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},b={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\\\"case-insensitive\\\":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin(\\\"open_directive\\\"),47;case 1:return this.begin(\\\"type_directive\\\"),48;case 2:return this.popState(),this.begin(\\\"arg_directive\\\"),9;case 3:return this.popState(),this.popState(),50;case 4:return 49;case 5:return this.begin(\\\"acc_title\\\"),19;case 6:return this.popState(),\\\"acc_title_value\\\";case 7:return this.begin(\\\"acc_descr\\\"),21;case 8:return this.popState(),\\\"acc_descr_value\\\";case 9:this.begin(\\\"acc_descr_multiline\\\");break;case 10:case 34:case 37:this.popState();break;case 11:return\\\"acc_descr_multiline_value\\\";case 12:return 14;case 13:case 14:case 15:break;case 16:return 6;case 17:return 34;case 18:return 38;case 19:return 36;case 20:return 39;case 21:return 40;case 22:return 41;case 23:return 42;case 24:return 32;case 25:return 28;case 26:return 29;case 27:return 31;case 28:return 26;case 29:case 30:return 10;case 31:return 9;case 32:return\\\"CARET\\\";case 33:this.begin(\\\"options\\\");break;case 35:return 13;case 36:this.begin(\\\"string\\\");break;case 38:return 33;case 39:return 30;case 40:return 27;case 41:return 8}},rules:[/^(?:%%\\\\{)/i,/^(?:((?:(?!\\\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\\\}%%)/i,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/i,/^(?:accTitle\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*\\\\{\\\\s*)/i,/^(?:[\\\\}])/i,/^(?:[^\\\\}]*)/i,/^(?:(\\\\r?\\\\n)+)/i,/^(?:\\\\s+)/i,/^(?:#[^\\\\n]*)/i,/^(?:%[^\\\\n]*)/i,/^(?:gitGraph\\\\b)/i,/^(?:commit\\\\b)/i,/^(?:id:)/i,/^(?:type:)/i,/^(?:msg:)/i,/^(?:NORMAL\\\\b)/i,/^(?:REVERSE\\\\b)/i,/^(?:HIGHLIGHT\\\\b)/i,/^(?:tag:)/i,/^(?:branch\\\\b)/i,/^(?:order:)/i,/^(?:merge\\\\b)/i,/^(?:checkout\\\\b)/i,/^(?:LR\\\\b)/i,/^(?:BT\\\\b)/i,/^(?::)/i,/^(?:\\\\^)/i,/^(?:options\\\\r?\\\\n)/i,/^(?:[ \\\\r\\\\n\\\\t]+end\\\\b)/i,/^(?:[\\\\s\\\\S]+(?=[ \\\\r\\\\n\\\\t]+end))/i,/^(?:[\\\"])/i,/^(?:[\\\"])/i,/^(?:[^\\\"]*)/i,/^(?:[0-9]+)/i,/^(?:[a-zA-Z][-_\\\\./a-zA-Z0-9]*[-_a-zA-Z0-9])/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[10,11],inclusive:!1},acc_descr:{rules:[8],inclusive:!1},acc_title:{rules:[6],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},options:{rules:[34,35],inclusive:!1},string:{rules:[37,38],inclusive:!1},INITIAL:{rules:[0,5,7,9,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,39,40,41],inclusive:!0}}};function _(){this.yy={}}return v.lexer=b,_.prototype=v,v.Parser=_,new _}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(8183).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6765:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[6,9,10],n={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,$accept:0,$end:1},terminals_:{2:\\\"error\\\",4:\\\"info\\\",6:\\\"EOF\\\",9:\\\"NL\\\",10:\\\"showInfo\\\"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1]],performAction:function(t,e,n,r,i,a,o){switch(a.length,i){case 1:return r;case 4:break;case 6:r.setInfo(!0)}},table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8]},{1:[2,1]},t(e,[2,3]),t(e,[2,4]),t(e,[2,5]),t(e,[2,6])],defaultActions:{4:[2,1]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},r={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\\\"case-insensitive\\\":!0},performAction:function(t,e,n,r){switch(n){case 0:return 4;case 1:return 9;case 2:return\\\"space\\\";case 3:return 10;case 4:return 6;case 5:return\\\"TXT\\\"}},rules:[/^(?:info\\\\b)/i,/^(?:[\\\\s\\\\n\\\\r]+)/i,/^(?:[\\\\s]+)/i,/^(?:showInfo\\\\b)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5],inclusive:!0}}};function i(){this.yy={}}return n.lexer=r,i.prototype=n,n.Parser=i,new i}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(1428).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},7062:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,4],n=[1,5],r=[1,6],i=[1,7],a=[1,9],o=[1,11,13,15,17,19,20,26,27,28,29],s=[2,5],c=[1,6,11,13,15,17,19,20,26,27,28,29],u=[26,27,28],l=[2,8],h=[1,18],f=[1,19],d=[1,20],p=[1,21],g=[1,22],y=[1,23],m=[1,28],v=[6,26,27,28,29],b={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,directive:5,PIE:6,document:7,showData:8,line:9,statement:10,txt:11,value:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,openDirective:21,typeDirective:22,closeDirective:23,\\\":\\\":24,argDirective:25,NEWLINE:26,\\\";\\\":27,EOF:28,open_directive:29,type_directive:30,arg_directive:31,close_directive:32,$accept:0,$end:1},terminals_:{2:\\\"error\\\",6:\\\"PIE\\\",8:\\\"showData\\\",11:\\\"txt\\\",12:\\\"value\\\",13:\\\"title\\\",14:\\\"title_value\\\",15:\\\"acc_title\\\",16:\\\"acc_title_value\\\",17:\\\"acc_descr\\\",18:\\\"acc_descr_value\\\",19:\\\"acc_descr_multiline_value\\\",20:\\\"section\\\",24:\\\":\\\",26:\\\"NEWLINE\\\",27:\\\";\\\",28:\\\"EOF\\\",29:\\\"open_directive\\\",30:\\\"type_directive\\\",31:\\\"arg_directive\\\",32:\\\"close_directive\\\"},productions_:[0,[3,2],[3,2],[3,2],[3,3],[7,0],[7,2],[9,2],[10,0],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,1],[5,3],[5,5],[4,1],[4,1],[4,1],[21,1],[22,1],[25,1],[23,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:r.setShowData(!0);break;case 7:this.$=a[s-1];break;case 9:r.addSection(a[s-1],r.cleanupValue(a[s]));break;case 10:this.$=a[s].trim(),r.setPieTitle(this.$);break;case 11:this.$=a[s].trim(),r.setTitle(this.$);break;case 12:case 13:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 14:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 21:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 22:r.parseDirective(a[s],\\\"type_directive\\\");break;case 23:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 24:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"pie\\\")}},table:[{3:1,4:2,5:3,6:e,21:8,26:n,27:r,28:i,29:a},{1:[3]},{3:10,4:2,5:3,6:e,21:8,26:n,27:r,28:i,29:a},{3:11,4:2,5:3,6:e,21:8,26:n,27:r,28:i,29:a},t(o,s,{7:12,8:[1,13]}),t(c,[2,18]),t(c,[2,19]),t(c,[2,20]),{22:14,30:[1,15]},{30:[2,21]},{1:[2,1]},{1:[2,2]},t(u,l,{21:8,9:16,10:17,5:24,1:[2,3],11:h,13:f,15:d,17:p,19:g,20:y,29:a}),t(o,s,{7:25}),{23:26,24:[1,27],32:m},t([24,32],[2,22]),t(o,[2,6]),{4:29,26:n,27:r,28:i},{12:[1,30]},{14:[1,31]},{16:[1,32]},{18:[1,33]},t(u,[2,13]),t(u,[2,14]),t(u,[2,15]),t(u,l,{21:8,9:16,10:17,5:24,1:[2,4],11:h,13:f,15:d,17:p,19:g,20:y,29:a}),t(v,[2,16]),{25:34,31:[1,35]},t(v,[2,24]),t(o,[2,7]),t(u,[2,9]),t(u,[2,10]),t(u,[2,11]),t(u,[2,12]),{23:36,32:m},{32:[2,23]},t(v,[2,17])],defaultActions:{9:[2,21],10:[2,1],11:[2,2],35:[2,23]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},_={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\\\"case-insensitive\\\":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin(\\\"open_directive\\\"),29;case 1:return this.begin(\\\"type_directive\\\"),30;case 2:return this.popState(),this.begin(\\\"arg_directive\\\"),24;case 3:return this.popState(),this.popState(),32;case 4:return 31;case 5:case 6:case 8:case 9:break;case 7:return 26;case 10:return this.begin(\\\"title\\\"),13;case 11:return this.popState(),\\\"title_value\\\";case 12:return this.begin(\\\"acc_title\\\"),15;case 13:return this.popState(),\\\"acc_title_value\\\";case 14:return this.begin(\\\"acc_descr\\\"),17;case 15:return this.popState(),\\\"acc_descr_value\\\";case 16:this.begin(\\\"acc_descr_multiline\\\");break;case 17:case 20:this.popState();break;case 18:return\\\"acc_descr_multiline_value\\\";case 19:this.begin(\\\"string\\\");break;case 21:return\\\"txt\\\";case 22:return 6;case 23:return 8;case 24:return\\\"value\\\";case 25:return 28}},rules:[/^(?:%%\\\\{)/i,/^(?:((?:(?!\\\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\\\}%%)/i,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/i,/^(?:%%(?!\\\\{)[^\\\\n]*)/i,/^(?:[^\\\\}]%%[^\\\\n]*)/i,/^(?:[\\\\n\\\\r]+)/i,/^(?:%%[^\\\\n]*)/i,/^(?:[\\\\s]+)/i,/^(?:title\\\\b)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accTitle\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*\\\\{\\\\s*)/i,/^(?:[\\\\}])/i,/^(?:[^\\\\}]*)/i,/^(?:[\\\"])/i,/^(?:[\\\"])/i,/^(?:[^\\\"]*)/i,/^(?:pie\\\\b)/i,/^(?:showData\\\\b)/i,/^(?::[\\\\s]*[\\\\d]+(?:\\\\.[\\\\d]+)?)/i,/^(?:$)/i],conditions:{acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},title:{rules:[11],inclusive:!1},string:{rules:[20,21],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,12,14,16,19,22,23,24,25],inclusive:!0}}};function x(){this.yy={}}return b.lexer=_,x.prototype=b,b.Parser=x,new x}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(4551).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3176:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,3],n=[1,5],r=[1,6],i=[1,7],a=[1,8],o=[5,6,8,14,16,18,19,40,41,42,43,44,45,53,71,72],s=[1,22],c=[2,13],u=[1,26],l=[1,27],h=[1,28],f=[1,29],d=[1,30],p=[1,31],g=[1,24],y=[1,32],m=[1,33],v=[1,36],b=[71,72],_=[5,8,14,16,18,19,40,41,42,43,44,45,53,60,62,71,72],x=[1,56],w=[1,57],k=[1,58],T=[1,59],C=[1,60],E=[1,61],S=[1,62],A=[62,63],M=[1,74],N=[1,70],D=[1,71],B=[1,72],L=[1,73],O=[1,75],I=[1,79],R=[1,80],F=[1,77],P=[1,78],Y=[5,8,14,16,18,19,40,41,42,43,44,45,53,71,72],j={trace:function(){},yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,openDirective:9,typeDirective:10,closeDirective:11,\\\":\\\":12,argDirective:13,acc_title:14,acc_title_value:15,acc_descr:16,acc_descr_value:17,acc_descr_multiline_value:18,open_directive:19,type_directive:20,arg_directive:21,close_directive:22,requirementDef:23,elementDef:24,relationshipDef:25,requirementType:26,requirementName:27,STRUCT_START:28,requirementBody:29,ID:30,COLONSEP:31,id:32,TEXT:33,text:34,RISK:35,riskLevel:36,VERIFYMTHD:37,verifyType:38,STRUCT_STOP:39,REQUIREMENT:40,FUNCTIONAL_REQUIREMENT:41,INTERFACE_REQUIREMENT:42,PERFORMANCE_REQUIREMENT:43,PHYSICAL_REQUIREMENT:44,DESIGN_CONSTRAINT:45,LOW_RISK:46,MED_RISK:47,HIGH_RISK:48,VERIFY_ANALYSIS:49,VERIFY_DEMONSTRATION:50,VERIFY_INSPECTION:51,VERIFY_TEST:52,ELEMENT:53,elementName:54,elementBody:55,TYPE:56,type:57,DOCREF:58,ref:59,END_ARROW_L:60,relationship:61,LINE:62,END_ARROW_R:63,CONTAINS:64,COPIES:65,DERIVES:66,SATISFIES:67,VERIFIES:68,REFINES:69,TRACES:70,unqString:71,qString:72,$accept:0,$end:1},terminals_:{2:\\\"error\\\",5:\\\"NEWLINE\\\",6:\\\"RD\\\",8:\\\"EOF\\\",12:\\\":\\\",14:\\\"acc_title\\\",15:\\\"acc_title_value\\\",16:\\\"acc_descr\\\",17:\\\"acc_descr_value\\\",18:\\\"acc_descr_multiline_value\\\",19:\\\"open_directive\\\",20:\\\"type_directive\\\",21:\\\"arg_directive\\\",22:\\\"close_directive\\\",28:\\\"STRUCT_START\\\",30:\\\"ID\\\",31:\\\"COLONSEP\\\",33:\\\"TEXT\\\",35:\\\"RISK\\\",37:\\\"VERIFYMTHD\\\",39:\\\"STRUCT_STOP\\\",40:\\\"REQUIREMENT\\\",41:\\\"FUNCTIONAL_REQUIREMENT\\\",42:\\\"INTERFACE_REQUIREMENT\\\",43:\\\"PERFORMANCE_REQUIREMENT\\\",44:\\\"PHYSICAL_REQUIREMENT\\\",45:\\\"DESIGN_CONSTRAINT\\\",46:\\\"LOW_RISK\\\",47:\\\"MED_RISK\\\",48:\\\"HIGH_RISK\\\",49:\\\"VERIFY_ANALYSIS\\\",50:\\\"VERIFY_DEMONSTRATION\\\",51:\\\"VERIFY_INSPECTION\\\",52:\\\"VERIFY_TEST\\\",53:\\\"ELEMENT\\\",56:\\\"TYPE\\\",58:\\\"DOCREF\\\",60:\\\"END_ARROW_L\\\",62:\\\"LINE\\\",63:\\\"END_ARROW_R\\\",64:\\\"CONTAINS\\\",65:\\\"COPIES\\\",66:\\\"DERIVES\\\",67:\\\"SATISFIES\\\",68:\\\"VERIFIES\\\",69:\\\"REFINES\\\",70:\\\"TRACES\\\",71:\\\"unqString\\\",72:\\\"qString\\\"},productions_:[0,[3,3],[3,2],[3,4],[4,3],[4,5],[4,2],[4,2],[4,1],[9,1],[10,1],[13,1],[11,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[23,5],[29,5],[29,5],[29,5],[29,5],[29,2],[29,1],[26,1],[26,1],[26,1],[26,1],[26,1],[26,1],[36,1],[36,1],[36,1],[38,1],[38,1],[38,1],[38,1],[24,5],[55,5],[55,5],[55,2],[55,1],[25,5],[25,5],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[61,1],[27,1],[27,1],[32,1],[32,1],[34,1],[34,1],[54,1],[54,1],[57,1],[57,1],[59,1],[59,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 6:this.$=a[s].trim(),r.setTitle(this.$);break;case 7:case 8:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 9:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 10:r.parseDirective(a[s],\\\"type_directive\\\");break;case 11:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 12:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"pie\\\");break;case 13:this.$=[];break;case 19:r.addRequirement(a[s-3],a[s-4]);break;case 20:r.setNewReqId(a[s-2]);break;case 21:r.setNewReqText(a[s-2]);break;case 22:r.setNewReqRisk(a[s-2]);break;case 23:r.setNewReqVerifyMethod(a[s-2]);break;case 26:this.$=r.RequirementType.REQUIREMENT;break;case 27:this.$=r.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 28:this.$=r.RequirementType.INTERFACE_REQUIREMENT;break;case 29:this.$=r.RequirementType.PERFORMANCE_REQUIREMENT;break;case 30:this.$=r.RequirementType.PHYSICAL_REQUIREMENT;break;case 31:this.$=r.RequirementType.DESIGN_CONSTRAINT;break;case 32:this.$=r.RiskLevel.LOW_RISK;break;case 33:this.$=r.RiskLevel.MED_RISK;break;case 34:this.$=r.RiskLevel.HIGH_RISK;break;case 35:this.$=r.VerifyType.VERIFY_ANALYSIS;break;case 36:this.$=r.VerifyType.VERIFY_DEMONSTRATION;break;case 37:this.$=r.VerifyType.VERIFY_INSPECTION;break;case 38:this.$=r.VerifyType.VERIFY_TEST;break;case 39:r.addElement(a[s-3]);break;case 40:r.setNewElementType(a[s-2]);break;case 41:r.setNewElementDocRef(a[s-2]);break;case 44:r.addRelationship(a[s-2],a[s],a[s-4]);break;case 45:r.addRelationship(a[s-2],a[s-4],a[s]);break;case 46:this.$=r.Relationships.CONTAINS;break;case 47:this.$=r.Relationships.COPIES;break;case 48:this.$=r.Relationships.DERIVES;break;case 49:this.$=r.Relationships.SATISFIES;break;case 50:this.$=r.Relationships.VERIFIES;break;case 51:this.$=r.Relationships.REFINES;break;case 52:this.$=r.Relationships.TRACES}},table:[{3:1,4:2,6:e,9:4,14:n,16:r,18:i,19:a},{1:[3]},{3:10,4:2,5:[1,9],6:e,9:4,14:n,16:r,18:i,19:a},{5:[1,11]},{10:12,20:[1,13]},{15:[1,14]},{17:[1,15]},t(o,[2,8]),{20:[2,9]},{3:16,4:2,6:e,9:4,14:n,16:r,18:i,19:a},{1:[2,2]},{4:21,5:s,7:17,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:p,53:g,71:y,72:m},{11:34,12:[1,35],22:v},t([12,22],[2,10]),t(o,[2,6]),t(o,[2,7]),{1:[2,1]},{8:[1,37]},{4:21,5:s,7:38,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:p,53:g,71:y,72:m},{4:21,5:s,7:39,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:p,53:g,71:y,72:m},{4:21,5:s,7:40,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:p,53:g,71:y,72:m},{4:21,5:s,7:41,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:p,53:g,71:y,72:m},{4:21,5:s,7:42,8:c,9:4,14:n,16:r,18:i,19:a,23:18,24:19,25:20,26:23,32:25,40:u,41:l,42:h,43:f,44:d,45:p,53:g,71:y,72:m},{27:43,71:[1,44],72:[1,45]},{54:46,71:[1,47],72:[1,48]},{60:[1,49],62:[1,50]},t(b,[2,26]),t(b,[2,27]),t(b,[2,28]),t(b,[2,29]),t(b,[2,30]),t(b,[2,31]),t(_,[2,55]),t(_,[2,56]),t(o,[2,4]),{13:51,21:[1,52]},t(o,[2,12]),{1:[2,3]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{8:[2,17]},{8:[2,18]},{28:[1,53]},{28:[2,53]},{28:[2,54]},{28:[1,54]},{28:[2,59]},{28:[2,60]},{61:55,64:x,65:w,66:k,67:T,68:C,69:E,70:S},{61:63,64:x,65:w,66:k,67:T,68:C,69:E,70:S},{11:64,22:v},{22:[2,11]},{5:[1,65]},{5:[1,66]},{62:[1,67]},t(A,[2,46]),t(A,[2,47]),t(A,[2,48]),t(A,[2,49]),t(A,[2,50]),t(A,[2,51]),t(A,[2,52]),{63:[1,68]},t(o,[2,5]),{5:M,29:69,30:N,33:D,35:B,37:L,39:O},{5:I,39:R,55:76,56:F,58:P},{32:81,71:y,72:m},{32:82,71:y,72:m},t(Y,[2,19]),{31:[1,83]},{31:[1,84]},{31:[1,85]},{31:[1,86]},{5:M,29:87,30:N,33:D,35:B,37:L,39:O},t(Y,[2,25]),t(Y,[2,39]),{31:[1,88]},{31:[1,89]},{5:I,39:R,55:90,56:F,58:P},t(Y,[2,43]),t(Y,[2,44]),t(Y,[2,45]),{32:91,71:y,72:m},{34:92,71:[1,93],72:[1,94]},{36:95,46:[1,96],47:[1,97],48:[1,98]},{38:99,49:[1,100],50:[1,101],51:[1,102],52:[1,103]},t(Y,[2,24]),{57:104,71:[1,105],72:[1,106]},{59:107,71:[1,108],72:[1,109]},t(Y,[2,42]),{5:[1,110]},{5:[1,111]},{5:[2,57]},{5:[2,58]},{5:[1,112]},{5:[2,32]},{5:[2,33]},{5:[2,34]},{5:[1,113]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[2,38]},{5:[1,114]},{5:[2,61]},{5:[2,62]},{5:[1,115]},{5:[2,63]},{5:[2,64]},{5:M,29:116,30:N,33:D,35:B,37:L,39:O},{5:M,29:117,30:N,33:D,35:B,37:L,39:O},{5:M,29:118,30:N,33:D,35:B,37:L,39:O},{5:M,29:119,30:N,33:D,35:B,37:L,39:O},{5:I,39:R,55:120,56:F,58:P},{5:I,39:R,55:121,56:F,58:P},t(Y,[2,20]),t(Y,[2,21]),t(Y,[2,22]),t(Y,[2,23]),t(Y,[2,40]),t(Y,[2,41])],defaultActions:{8:[2,9],10:[2,2],16:[2,1],37:[2,3],38:[2,14],39:[2,15],40:[2,16],41:[2,17],42:[2,18],44:[2,53],45:[2,54],47:[2,59],48:[2,60],52:[2,11],93:[2,57],94:[2,58],96:[2,32],97:[2,33],98:[2,34],100:[2,35],101:[2,36],102:[2,37],103:[2,38],105:[2,61],106:[2,62],108:[2,63],109:[2,64]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},U={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\\\"case-insensitive\\\":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin(\\\"open_directive\\\"),19;case 1:return this.begin(\\\"type_directive\\\"),20;case 2:return this.popState(),this.begin(\\\"arg_directive\\\"),12;case 3:return this.popState(),this.popState(),22;case 4:return 21;case 5:return\\\"title\\\";case 6:return this.begin(\\\"acc_title\\\"),14;case 7:return this.popState(),\\\"acc_title_value\\\";case 8:return this.begin(\\\"acc_descr\\\"),16;case 9:return this.popState(),\\\"acc_descr_value\\\";case 10:this.begin(\\\"acc_descr_multiline\\\");break;case 11:case 53:this.popState();break;case 12:return\\\"acc_descr_multiline_value\\\";case 13:return 5;case 14:case 15:case 16:break;case 17:return 8;case 18:return 6;case 19:return 28;case 20:return 39;case 21:return 31;case 22:return 30;case 23:return 33;case 24:return 35;case 25:return 37;case 26:return 40;case 27:return 41;case 28:return 42;case 29:return 43;case 30:return 44;case 31:return 45;case 32:return 46;case 33:return 47;case 34:return 48;case 35:return 49;case 36:return 50;case 37:return 51;case 38:return 52;case 39:return 53;case 40:return 64;case 41:return 65;case 42:return 66;case 43:return 67;case 44:return 68;case 45:return 69;case 46:return 70;case 47:return 56;case 48:return 58;case 49:return 60;case 50:return 63;case 51:return 62;case 52:this.begin(\\\"string\\\");break;case 54:return\\\"qString\\\";case 55:return e.yytext=e.yytext.trim(),71}},rules:[/^(?:%%\\\\{)/i,/^(?:((?:(?!\\\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\\\}%%)/i,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/i,/^(?:title\\\\s[^#\\\\n;]+)/i,/^(?:accTitle\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*\\\\{\\\\s*)/i,/^(?:[\\\\}])/i,/^(?:[^\\\\}]*)/i,/^(?:(\\\\r?\\\\n)+)/i,/^(?:\\\\s+)/i,/^(?:#[^\\\\n]*)/i,/^(?:%[^\\\\n]*)/i,/^(?:$)/i,/^(?:requirementDiagram\\\\b)/i,/^(?:\\\\{)/i,/^(?:\\\\})/i,/^(?::)/i,/^(?:id\\\\b)/i,/^(?:text\\\\b)/i,/^(?:risk\\\\b)/i,/^(?:verifyMethod\\\\b)/i,/^(?:requirement\\\\b)/i,/^(?:functionalRequirement\\\\b)/i,/^(?:interfaceRequirement\\\\b)/i,/^(?:performanceRequirement\\\\b)/i,/^(?:physicalRequirement\\\\b)/i,/^(?:designConstraint\\\\b)/i,/^(?:low\\\\b)/i,/^(?:medium\\\\b)/i,/^(?:high\\\\b)/i,/^(?:analysis\\\\b)/i,/^(?:demonstration\\\\b)/i,/^(?:inspection\\\\b)/i,/^(?:test\\\\b)/i,/^(?:element\\\\b)/i,/^(?:contains\\\\b)/i,/^(?:copies\\\\b)/i,/^(?:derives\\\\b)/i,/^(?:satisfies\\\\b)/i,/^(?:verifies\\\\b)/i,/^(?:refines\\\\b)/i,/^(?:traces\\\\b)/i,/^(?:type\\\\b)/i,/^(?:docref\\\\b)/i,/^(?:<-)/i,/^(?:->)/i,/^(?:-)/i,/^(?:[\\\"])/i,/^(?:[\\\"])/i,/^(?:[^\\\"]*)/i,/^(?:[\\\\w][^\\\\r\\\\n\\\\{\\\\<\\\\>\\\\-\\\\=]*)/i],conditions:{acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},close_directive:{rules:[],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},open_directive:{rules:[1],inclusive:!1},unqString:{rules:[],inclusive:!1},token:{rules:[],inclusive:!1},string:{rules:[53,54],inclusive:!1},INITIAL:{rules:[0,5,6,8,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,55],inclusive:!0}}};function z(){this.yy={}}return j.lexer=U,z.prototype=j,j.Parser=z,new z}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(8800).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},6876:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,18],u=[1,19],l=[1,21],h=[1,22],f=[1,23],d=[1,29],p=[1,30],g=[1,31],y=[1,32],m=[1,33],v=[1,34],b=[1,35],_=[1,36],x=[1,37],w=[1,38],k=[1,41],T=[1,42],C=[1,43],E=[1,44],S=[1,45],A=[1,46],M=[1,49],N=[1,4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,48,49,54,55,56,57,65,75],D=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,49,54,55,56,57,65,75],B=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,48,49,54,55,56,57,65,75],L=[4,5,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,49,54,55,56,57,65,75],O=[63,64,65],I=[1,114],R=[1,4,5,7,16,20,22,25,26,32,33,34,36,38,39,40,41,42,43,45,47,48,49,54,55,56,57,65,75],F={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,directive:6,SD:7,document:8,line:9,statement:10,openDirective:11,typeDirective:12,closeDirective:13,\\\":\\\":14,argDirective:15,participant:16,actor:17,AS:18,restOfLine:19,participant_actor:20,signal:21,autonumber:22,NUM:23,off:24,activate:25,deactivate:26,note_statement:27,links_statement:28,link_statement:29,properties_statement:30,details_statement:31,title:32,legacy_title:33,acc_title:34,acc_title_value:35,acc_descr:36,acc_descr_value:37,acc_descr_multiline_value:38,loop:39,end:40,rect:41,opt:42,alt:43,else_sections:44,par:45,par_sections:46,and:47,else:48,note:49,placement:50,text2:51,over:52,actor_pair:53,links:54,link:55,properties:56,details:57,spaceList:58,\\\",\\\":59,left_of:60,right_of:61,signaltype:62,\\\"+\\\":63,\\\"-\\\":64,ACTOR:65,SOLID_OPEN_ARROW:66,DOTTED_OPEN_ARROW:67,SOLID_ARROW:68,DOTTED_ARROW:69,SOLID_CROSS:70,DOTTED_CROSS:71,SOLID_POINT:72,DOTTED_POINT:73,TXT:74,open_directive:75,type_directive:76,arg_directive:77,close_directive:78,$accept:0,$end:1},terminals_:{2:\\\"error\\\",4:\\\"SPACE\\\",5:\\\"NEWLINE\\\",7:\\\"SD\\\",14:\\\":\\\",16:\\\"participant\\\",18:\\\"AS\\\",19:\\\"restOfLine\\\",20:\\\"participant_actor\\\",22:\\\"autonumber\\\",23:\\\"NUM\\\",24:\\\"off\\\",25:\\\"activate\\\",26:\\\"deactivate\\\",32:\\\"title\\\",33:\\\"legacy_title\\\",34:\\\"acc_title\\\",35:\\\"acc_title_value\\\",36:\\\"acc_descr\\\",37:\\\"acc_descr_value\\\",38:\\\"acc_descr_multiline_value\\\",39:\\\"loop\\\",40:\\\"end\\\",41:\\\"rect\\\",42:\\\"opt\\\",43:\\\"alt\\\",45:\\\"par\\\",47:\\\"and\\\",48:\\\"else\\\",49:\\\"note\\\",52:\\\"over\\\",54:\\\"links\\\",55:\\\"link\\\",56:\\\"properties\\\",57:\\\"details\\\",59:\\\",\\\",60:\\\"left_of\\\",61:\\\"right_of\\\",63:\\\"+\\\",64:\\\"-\\\",65:\\\"ACTOR\\\",66:\\\"SOLID_OPEN_ARROW\\\",67:\\\"DOTTED_OPEN_ARROW\\\",68:\\\"SOLID_ARROW\\\",69:\\\"DOTTED_ARROW\\\",70:\\\"SOLID_CROSS\\\",71:\\\"DOTTED_CROSS\\\",72:\\\"SOLID_POINT\\\",73:\\\"DOTTED_POINT\\\",74:\\\"TXT\\\",75:\\\"open_directive\\\",76:\\\"type_directive\\\",77:\\\"arg_directive\\\",78:\\\"close_directive\\\"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[6,4],[6,6],[10,5],[10,3],[10,5],[10,3],[10,2],[10,4],[10,3],[10,3],[10,2],[10,3],[10,3],[10,2],[10,2],[10,2],[10,2],[10,2],[10,1],[10,1],[10,2],[10,2],[10,1],[10,4],[10,4],[10,4],[10,4],[10,4],[10,1],[46,1],[46,4],[44,1],[44,4],[27,4],[27,4],[28,3],[29,3],[30,3],[31,3],[58,2],[58,1],[53,3],[53,1],[50,1],[50,1],[21,5],[21,5],[21,4],[17,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[51,1],[11,1],[12,1],[15,1],[13,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.apply(a[s]),a[s];case 5:case 9:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:case 52:this.$=a[s];break;case 12:a[s-3].type=\\\"addParticipant\\\",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 13:a[s-1].type=\\\"addParticipant\\\",this.$=a[s-1];break;case 14:a[s-3].type=\\\"addActor\\\",a[s-3].description=r.parseMessage(a[s-1]),this.$=a[s-3];break;case 15:a[s-1].type=\\\"addActor\\\",this.$=a[s-1];break;case 17:this.$={type:\\\"sequenceIndex\\\",sequenceIndex:Number(a[s-2]),sequenceIndexStep:Number(a[s-1]),sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 18:this.$={type:\\\"sequenceIndex\\\",sequenceIndex:Number(a[s-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 19:this.$={type:\\\"sequenceIndex\\\",sequenceVisible:!1,signalType:r.LINETYPE.AUTONUMBER};break;case 20:this.$={type:\\\"sequenceIndex\\\",sequenceVisible:!0,signalType:r.LINETYPE.AUTONUMBER};break;case 21:this.$={type:\\\"activeStart\\\",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]};break;case 22:this.$={type:\\\"activeEnd\\\",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-1]};break;case 28:r.setDiagramTitle(a[s].substring(6)),this.$=a[s].substring(6);break;case 29:r.setDiagramTitle(a[s].substring(7)),this.$=a[s].substring(7);break;case 30:this.$=a[s].trim(),r.setTitle(this.$);break;case 31:case 32:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 33:a[s-1].unshift({type:\\\"loopStart\\\",loopText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.LOOP_START}),a[s-1].push({type:\\\"loopEnd\\\",loopText:a[s-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[s-1];break;case 34:a[s-1].unshift({type:\\\"rectStart\\\",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_START}),a[s-1].push({type:\\\"rectEnd\\\",color:r.parseMessage(a[s-2]),signalType:r.LINETYPE.RECT_END}),this.$=a[s-1];break;case 35:a[s-1].unshift({type:\\\"optStart\\\",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_START}),a[s-1].push({type:\\\"optEnd\\\",optText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.OPT_END}),this.$=a[s-1];break;case 36:a[s-1].unshift({type:\\\"altStart\\\",altText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.ALT_START}),a[s-1].push({type:\\\"altEnd\\\",signalType:r.LINETYPE.ALT_END}),this.$=a[s-1];break;case 37:a[s-1].unshift({type:\\\"parStart\\\",parText:r.parseMessage(a[s-2]),signalType:r.LINETYPE.PAR_START}),a[s-1].push({type:\\\"parEnd\\\",signalType:r.LINETYPE.PAR_END}),this.$=a[s-1];break;case 40:this.$=a[s-3].concat([{type:\\\"and\\\",parText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.PAR_AND},a[s]]);break;case 42:this.$=a[s-3].concat([{type:\\\"else\\\",altText:r.parseMessage(a[s-1]),signalType:r.LINETYPE.ALT_ELSE},a[s]]);break;case 43:this.$=[a[s-1],{type:\\\"addNote\\\",placement:a[s-2],actor:a[s-1].actor,text:a[s]}];break;case 44:a[s-2]=[].concat(a[s-1],a[s-1]).slice(0,2),a[s-2][0]=a[s-2][0].actor,a[s-2][1]=a[s-2][1].actor,this.$=[a[s-1],{type:\\\"addNote\\\",placement:r.PLACEMENT.OVER,actor:a[s-2].slice(0,2),text:a[s]}];break;case 45:this.$=[a[s-1],{type:\\\"addLinks\\\",actor:a[s-1].actor,text:a[s]}];break;case 46:this.$=[a[s-1],{type:\\\"addALink\\\",actor:a[s-1].actor,text:a[s]}];break;case 47:this.$=[a[s-1],{type:\\\"addProperties\\\",actor:a[s-1].actor,text:a[s]}];break;case 48:this.$=[a[s-1],{type:\\\"addDetails\\\",actor:a[s-1].actor,text:a[s]}];break;case 51:this.$=[a[s-2],a[s]];break;case 53:this.$=r.PLACEMENT.LEFTOF;break;case 54:this.$=r.PLACEMENT.RIGHTOF;break;case 55:this.$=[a[s-4],a[s-1],{type:\\\"addMessage\\\",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:\\\"activeStart\\\",signalType:r.LINETYPE.ACTIVE_START,actor:a[s-1]}];break;case 56:this.$=[a[s-4],a[s-1],{type:\\\"addMessage\\\",from:a[s-4].actor,to:a[s-1].actor,signalType:a[s-3],msg:a[s]},{type:\\\"activeEnd\\\",signalType:r.LINETYPE.ACTIVE_END,actor:a[s-4]}];break;case 57:this.$=[a[s-3],a[s-1],{type:\\\"addMessage\\\",from:a[s-3].actor,to:a[s-1].actor,signalType:a[s-2],msg:a[s]}];break;case 58:this.$={type:\\\"addParticipant\\\",actor:a[s]};break;case 59:this.$=r.LINETYPE.SOLID_OPEN;break;case 60:this.$=r.LINETYPE.DOTTED_OPEN;break;case 61:this.$=r.LINETYPE.SOLID;break;case 62:this.$=r.LINETYPE.DOTTED;break;case 63:this.$=r.LINETYPE.SOLID_CROSS;break;case 64:this.$=r.LINETYPE.DOTTED_CROSS;break;case 65:this.$=r.LINETYPE.SOLID_POINT;break;case 66:this.$=r.LINETYPE.DOTTED_POINT;break;case 67:this.$=r.parseMessage(a[s].trim().substring(1));break;case 68:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 69:r.parseDirective(a[s],\\\"type_directive\\\");break;case 70:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 71:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"sequence\\\")}},table:[{3:1,4:e,5:n,6:4,7:r,11:6,75:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,11:6,75:i},{3:9,4:e,5:n,6:4,7:r,11:6,75:i},{3:10,4:e,5:n,6:4,7:r,11:6,75:i},t([1,4,5,16,20,22,25,26,32,33,34,36,38,39,41,42,43,45,49,54,55,56,57,65,75],a,{8:11}),{12:12,76:[1,13]},{76:[2,68]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:39,9:14,10:16,11:6,16:c,17:40,20:u,21:20,22:l,25:h,26:f,27:24,28:25,29:26,30:27,31:28,32:d,33:p,34:g,36:y,38:m,39:v,41:b,42:_,43:x,45:w,49:k,54:T,55:C,56:E,57:S,65:A,75:i},{13:47,14:[1,48],78:M},t([14,78],[2,69]),t(N,[2,6]),{6:39,10:50,11:6,16:c,17:40,20:u,21:20,22:l,25:h,26:f,27:24,28:25,29:26,30:27,31:28,32:d,33:p,34:g,36:y,38:m,39:v,41:b,42:_,43:x,45:w,49:k,54:T,55:C,56:E,57:S,65:A,75:i},t(N,[2,8]),t(N,[2,9]),{17:51,65:A},{17:52,65:A},{5:[1,53]},{5:[1,56],23:[1,54],24:[1,55]},{17:57,65:A},{17:58,65:A},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},{5:[1,63]},t(N,[2,28]),t(N,[2,29]),{35:[1,64]},{37:[1,65]},t(N,[2,32]),{19:[1,66]},{19:[1,67]},{19:[1,68]},{19:[1,69]},{19:[1,70]},t(N,[2,38]),{62:71,66:[1,72],67:[1,73],68:[1,74],69:[1,75],70:[1,76],71:[1,77],72:[1,78],73:[1,79]},{50:80,52:[1,81],60:[1,82],61:[1,83]},{17:84,65:A},{17:85,65:A},{17:86,65:A},{17:87,65:A},t([5,18,59,66,67,68,69,70,71,72,73,74],[2,58]),{5:[1,88]},{15:89,77:[1,90]},{5:[2,71]},t(N,[2,7]),{5:[1,92],18:[1,91]},{5:[1,94],18:[1,93]},t(N,[2,16]),{5:[1,96],23:[1,95]},{5:[1,97]},t(N,[2,20]),{5:[1,98]},{5:[1,99]},t(N,[2,23]),t(N,[2,24]),t(N,[2,25]),t(N,[2,26]),t(N,[2,27]),t(N,[2,30]),t(N,[2,31]),t(D,a,{8:100}),t(D,a,{8:101}),t(D,a,{8:102}),t(B,a,{44:103,8:104}),t(L,a,{46:105,8:106}),{17:109,63:[1,107],64:[1,108],65:A},t(O,[2,59]),t(O,[2,60]),t(O,[2,61]),t(O,[2,62]),t(O,[2,63]),t(O,[2,64]),t(O,[2,65]),t(O,[2,66]),{17:110,65:A},{17:112,53:111,65:A},{65:[2,53]},{65:[2,54]},{51:113,74:I},{51:115,74:I},{51:116,74:I},{51:117,74:I},t(R,[2,10]),{13:118,78:M},{78:[2,70]},{19:[1,119]},t(N,[2,13]),{19:[1,120]},t(N,[2,15]),{5:[1,121]},t(N,[2,18]),t(N,[2,19]),t(N,[2,21]),t(N,[2,22]),{4:o,5:s,6:39,9:14,10:16,11:6,16:c,17:40,20:u,21:20,22:l,25:h,26:f,27:24,28:25,29:26,30:27,31:28,32:d,33:p,34:g,36:y,38:m,39:v,40:[1,122],41:b,42:_,43:x,45:w,49:k,54:T,55:C,56:E,57:S,65:A,75:i},{4:o,5:s,6:39,9:14,10:16,11:6,16:c,17:40,20:u,21:20,22:l,25:h,26:f,27:24,28:25,29:26,30:27,31:28,32:d,33:p,34:g,36:y,38:m,39:v,40:[1,123],41:b,42:_,43:x,45:w,49:k,54:T,55:C,56:E,57:S,65:A,75:i},{4:o,5:s,6:39,9:14,10:16,11:6,16:c,17:40,20:u,21:20,22:l,25:h,26:f,27:24,28:25,29:26,30:27,31:28,32:d,33:p,34:g,36:y,38:m,39:v,40:[1,124],41:b,42:_,43:x,45:w,49:k,54:T,55:C,56:E,57:S,65:A,75:i},{40:[1,125]},{4:o,5:s,6:39,9:14,10:16,11:6,16:c,17:40,20:u,21:20,22:l,25:h,26:f,27:24,28:25,29:26,30:27,31:28,32:d,33:p,34:g,36:y,38:m,39:v,40:[2,41],41:b,42:_,43:x,45:w,48:[1,126],49:k,54:T,55:C,56:E,57:S,65:A,75:i},{40:[1,127]},{4:o,5:s,6:39,9:14,10:16,11:6,16:c,17:40,20:u,21:20,22:l,25:h,26:f,27:24,28:25,29:26,30:27,31:28,32:d,33:p,34:g,36:y,38:m,39:v,40:[2,39],41:b,42:_,43:x,45:w,47:[1,128],49:k,54:T,55:C,56:E,57:S,65:A,75:i},{17:129,65:A},{17:130,65:A},{51:131,74:I},{51:132,74:I},{51:133,74:I},{59:[1,134],74:[2,52]},{5:[2,45]},{5:[2,67]},{5:[2,46]},{5:[2,47]},{5:[2,48]},{5:[1,135]},{5:[1,136]},{5:[1,137]},t(N,[2,17]),t(N,[2,33]),t(N,[2,34]),t(N,[2,35]),t(N,[2,36]),{19:[1,138]},t(N,[2,37]),{19:[1,139]},{51:140,74:I},{51:141,74:I},{5:[2,57]},{5:[2,43]},{5:[2,44]},{17:142,65:A},t(R,[2,11]),t(N,[2,12]),t(N,[2,14]),t(B,a,{8:104,44:143}),t(L,a,{8:106,46:144}),{5:[2,55]},{5:[2,56]},{74:[2,51]},{40:[2,42]},{40:[2,40]}],defaultActions:{7:[2,68],8:[2,1],9:[2,2],10:[2,3],49:[2,71],82:[2,53],83:[2,54],90:[2,70],113:[2,45],114:[2,67],115:[2,46],116:[2,47],117:[2,48],131:[2,57],132:[2,43],133:[2,44],140:[2,55],141:[2,56],142:[2,51],143:[2,42],144:[2,40]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},P={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\\\"case-insensitive\\\":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin(\\\"open_directive\\\"),75;case 1:return this.begin(\\\"type_directive\\\"),76;case 2:return this.popState(),this.begin(\\\"arg_directive\\\"),14;case 3:return this.popState(),this.popState(),78;case 4:return 77;case 5:case 49:case 62:return 5;case 6:case 7:case 8:case 9:case 10:break;case 11:return 23;case 12:return this.begin(\\\"ID\\\"),16;case 13:return this.begin(\\\"ID\\\"),20;case 14:return e.yytext=e.yytext.trim(),this.begin(\\\"ALIAS\\\"),65;case 15:return this.popState(),this.popState(),this.begin(\\\"LINE\\\"),18;case 16:return this.popState(),this.popState(),5;case 17:return this.begin(\\\"LINE\\\"),39;case 18:return this.begin(\\\"LINE\\\"),41;case 19:return this.begin(\\\"LINE\\\"),42;case 20:return this.begin(\\\"LINE\\\"),43;case 21:return this.begin(\\\"LINE\\\"),48;case 22:return this.begin(\\\"LINE\\\"),45;case 23:return this.begin(\\\"LINE\\\"),47;case 24:return this.popState(),19;case 25:return 40;case 26:return 60;case 27:return 61;case 28:return 54;case 29:return 55;case 30:return 56;case 31:return 57;case 32:return 52;case 33:return 49;case 34:return this.begin(\\\"ID\\\"),25;case 35:return this.begin(\\\"ID\\\"),26;case 36:return 32;case 37:return 33;case 38:return this.begin(\\\"acc_title\\\"),34;case 39:return this.popState(),\\\"acc_title_value\\\";case 40:return this.begin(\\\"acc_descr\\\"),36;case 41:return this.popState(),\\\"acc_descr_value\\\";case 42:this.begin(\\\"acc_descr_multiline\\\");break;case 43:this.popState();break;case 44:return\\\"acc_descr_multiline_value\\\";case 45:return 7;case 46:return 22;case 47:return 24;case 48:return 59;case 50:return e.yytext=e.yytext.trim(),65;case 51:return 68;case 52:return 69;case 53:return 66;case 54:return 67;case 55:return 70;case 56:return 71;case 57:return 72;case 58:return 73;case 59:return 74;case 60:return 63;case 61:return 64;case 63:return\\\"INVALID\\\"}},rules:[/^(?:%%\\\\{)/i,/^(?:((?:(?!\\\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\\\}%%)/i,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/i,/^(?:[\\\\n]+)/i,/^(?:\\\\s+)/i,/^(?:((?!\\\\n)\\\\s)+)/i,/^(?:#[^\\\\n]*)/i,/^(?:%(?!\\\\{)[^\\\\n]*)/i,/^(?:[^\\\\}]%%[^\\\\n]*)/i,/^(?:[0-9]+(?=[ \\\\n]+))/i,/^(?:participant\\\\b)/i,/^(?:actor\\\\b)/i,/^(?:[^\\\\->:\\\\n,;]+?(?=((?!\\\\n)\\\\s)+as(?!\\\\n)\\\\s|[#\\\\n;]|$))/i,/^(?:as\\\\b)/i,/^(?:(?:))/i,/^(?:loop\\\\b)/i,/^(?:rect\\\\b)/i,/^(?:opt\\\\b)/i,/^(?:alt\\\\b)/i,/^(?:else\\\\b)/i,/^(?:par\\\\b)/i,/^(?:and\\\\b)/i,/^(?:(?:[:]?(?:no)?wrap)?[^#\\\\n;]*)/i,/^(?:end\\\\b)/i,/^(?:left of\\\\b)/i,/^(?:right of\\\\b)/i,/^(?:links\\\\b)/i,/^(?:link\\\\b)/i,/^(?:properties\\\\b)/i,/^(?:details\\\\b)/i,/^(?:over\\\\b)/i,/^(?:note\\\\b)/i,/^(?:activate\\\\b)/i,/^(?:deactivate\\\\b)/i,/^(?:title\\\\s[^#\\\\n;]+)/i,/^(?:title:\\\\s[^#\\\\n;]+)/i,/^(?:accTitle\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*\\\\{\\\\s*)/i,/^(?:[\\\\}])/i,/^(?:[^\\\\}]*)/i,/^(?:sequenceDiagram\\\\b)/i,/^(?:autonumber\\\\b)/i,/^(?:off\\\\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\\\\+\\\\->:\\\\n,;]+((?!(-x|--x|-\\\\)|--\\\\)))[\\\\-]*[^\\\\+\\\\->:\\\\n,;]+)*)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:-[x])/i,/^(?:--[x])/i,/^(?:-[\\\\)])/i,/^(?:--[\\\\)])/i,/^(?::(?:(?:no)?wrap)?[^#\\\\n;]+)/i,/^(?:\\\\+)/i,/^(?:-)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[43,44],inclusive:!1},acc_descr:{rules:[41],inclusive:!1},acc_title:{rules:[39],inclusive:!1},open_directive:{rules:[1,8],inclusive:!1},type_directive:{rules:[2,3,8],inclusive:!1},arg_directive:{rules:[3,4,8],inclusive:!1},ID:{rules:[7,8,14],inclusive:!1},ALIAS:{rules:[7,8,15,16],inclusive:!1},LINE:{rules:[7,8,24],inclusive:!1},INITIAL:{rules:[0,5,6,8,9,10,11,12,13,17,18,19,20,21,22,23,25,26,27,28,29,30,31,32,33,34,35,36,37,38,40,42,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63],inclusive:!0}}};function Y(){this.yy={}}return F.lexer=P,Y.prototype=F,F.Parser=Y,new Y}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(1993).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},3584:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,3],r=[1,5],i=[1,7],a=[2,5],o=[1,15],s=[1,17],c=[1,19],u=[1,20],l=[1,21],h=[1,22],f=[1,33],d=[1,23],p=[1,24],g=[1,25],y=[1,26],m=[1,27],v=[1,30],b=[1,31],_=[1,32],x=[1,35],w=[1,36],k=[1,37],T=[1,38],C=[1,34],E=[1,41],S=[1,4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],A=[1,4,5,12,13,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],M=[1,4,5,7,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],N=[4,5,14,15,17,19,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],D={trace:function(){},yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,directive:6,SD:7,document:8,line:9,statement:10,idStatement:11,DESCR:12,\\\"--\\\\x3e\\\":13,HIDE_EMPTY:14,scale:15,WIDTH:16,COMPOSIT_STATE:17,STRUCT_START:18,STRUCT_STOP:19,STATE_DESCR:20,AS:21,ID:22,FORK:23,JOIN:24,CHOICE:25,CONCURRENT:26,note:27,notePosition:28,NOTE_TEXT:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,openDirective:36,typeDirective:37,closeDirective:38,\\\":\\\":39,argDirective:40,direction_tb:41,direction_bt:42,direction_rl:43,direction_lr:44,eol:45,\\\";\\\":46,EDGE_STATE:47,left_of:48,right_of:49,open_directive:50,type_directive:51,arg_directive:52,close_directive:53,$accept:0,$end:1},terminals_:{2:\\\"error\\\",4:\\\"SPACE\\\",5:\\\"NL\\\",7:\\\"SD\\\",12:\\\"DESCR\\\",13:\\\"--\\\\x3e\\\",14:\\\"HIDE_EMPTY\\\",15:\\\"scale\\\",16:\\\"WIDTH\\\",17:\\\"COMPOSIT_STATE\\\",18:\\\"STRUCT_START\\\",19:\\\"STRUCT_STOP\\\",20:\\\"STATE_DESCR\\\",21:\\\"AS\\\",22:\\\"ID\\\",23:\\\"FORK\\\",24:\\\"JOIN\\\",25:\\\"CHOICE\\\",26:\\\"CONCURRENT\\\",27:\\\"note\\\",29:\\\"NOTE_TEXT\\\",31:\\\"acc_title\\\",32:\\\"acc_title_value\\\",33:\\\"acc_descr\\\",34:\\\"acc_descr_value\\\",35:\\\"acc_descr_multiline_value\\\",39:\\\":\\\",41:\\\"direction_tb\\\",42:\\\"direction_bt\\\",43:\\\"direction_rl\\\",44:\\\"direction_lr\\\",46:\\\";\\\",47:\\\"EDGE_STATE\\\",48:\\\"left_of\\\",49:\\\"right_of\\\",50:\\\"open_directive\\\",51:\\\"type_directive\\\",52:\\\"arg_directive\\\",53:\\\"close_directive\\\"},productions_:[0,[3,2],[3,2],[3,2],[3,2],[8,0],[8,2],[9,2],[9,1],[9,1],[10,1],[10,2],[10,3],[10,4],[10,1],[10,2],[10,1],[10,4],[10,3],[10,6],[10,1],[10,1],[10,1],[10,1],[10,4],[10,4],[10,1],[10,1],[10,2],[10,2],[10,1],[6,3],[6,5],[30,1],[30,1],[30,1],[30,1],[45,1],[45,1],[11,1],[11,1],[28,1],[28,1],[36,1],[37,1],[40,1],[38,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 4:return r.setRootDoc(a[s]),a[s];case 5:this.$=[];break;case 6:\\\"nl\\\"!=a[s]&&(a[s-1].push(a[s]),this.$=a[s-1]);break;case 7:case 8:case 39:case 40:this.$=a[s];break;case 9:this.$=\\\"nl\\\";break;case 10:this.$={stmt:\\\"state\\\",id:a[s],type:\\\"default\\\",description:\\\"\\\"};break;case 11:this.$={stmt:\\\"state\\\",id:a[s-1],type:\\\"default\\\",description:r.trimColon(a[s])};break;case 12:this.$={stmt:\\\"relation\\\",state1:{stmt:\\\"state\\\",id:a[s-2],type:\\\"default\\\",description:\\\"\\\"},state2:{stmt:\\\"state\\\",id:a[s],type:\\\"default\\\",description:\\\"\\\"}};break;case 13:this.$={stmt:\\\"relation\\\",state1:{stmt:\\\"state\\\",id:a[s-3],type:\\\"default\\\",description:\\\"\\\"},state2:{stmt:\\\"state\\\",id:a[s-1],type:\\\"default\\\",description:\\\"\\\"},description:a[s].substr(1).trim()};break;case 17:this.$={stmt:\\\"state\\\",id:a[s-3],type:\\\"default\\\",description:\\\"\\\",doc:a[s-1]};break;case 18:var c=a[s],u=a[s-2].trim();if(a[s].match(\\\":\\\")){var l=a[s].split(\\\":\\\");c=l[0],u=[u,l[1]]}this.$={stmt:\\\"state\\\",id:c,type:\\\"default\\\",description:u};break;case 19:this.$={stmt:\\\"state\\\",id:a[s-3],type:\\\"default\\\",description:a[s-5],doc:a[s-1]};break;case 20:this.$={stmt:\\\"state\\\",id:a[s],type:\\\"fork\\\"};break;case 21:this.$={stmt:\\\"state\\\",id:a[s],type:\\\"join\\\"};break;case 22:this.$={stmt:\\\"state\\\",id:a[s],type:\\\"choice\\\"};break;case 23:this.$={stmt:\\\"state\\\",id:r.getDividerId(),type:\\\"divider\\\"};break;case 24:this.$={stmt:\\\"state\\\",id:a[s-1].trim(),note:{position:a[s-2].trim(),text:a[s].trim()}};break;case 28:this.$=a[s].trim(),r.setTitle(this.$);break;case 29:case 30:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 33:r.setDirection(\\\"TB\\\"),this.$={stmt:\\\"dir\\\",value:\\\"TB\\\"};break;case 34:r.setDirection(\\\"BT\\\"),this.$={stmt:\\\"dir\\\",value:\\\"BT\\\"};break;case 35:r.setDirection(\\\"RL\\\"),this.$={stmt:\\\"dir\\\",value:\\\"RL\\\"};break;case 36:r.setDirection(\\\"LR\\\"),this.$={stmt:\\\"dir\\\",value:\\\"LR\\\"};break;case 43:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 44:r.parseDirective(a[s],\\\"type_directive\\\");break;case 45:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 46:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"state\\\")}},table:[{3:1,4:e,5:n,6:4,7:r,36:6,50:i},{1:[3]},{3:8,4:e,5:n,6:4,7:r,36:6,50:i},{3:9,4:e,5:n,6:4,7:r,36:6,50:i},{3:10,4:e,5:n,6:4,7:r,36:6,50:i},t([1,4,5,14,15,17,20,22,23,24,25,26,27,31,33,35,41,42,43,44,47,50],a,{8:11}),{37:12,51:[1,13]},{51:[2,43]},{1:[2,1]},{1:[2,2]},{1:[2,3]},{1:[2,4],4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:u,17:l,20:h,22:f,23:d,24:p,25:g,26:y,27:m,30:29,31:v,33:b,35:_,36:6,41:x,42:w,43:k,44:T,47:C,50:i},{38:39,39:[1,40],53:E},t([39,53],[2,44]),t(S,[2,6]),{6:28,10:42,11:18,14:c,15:u,17:l,20:h,22:f,23:d,24:p,25:g,26:y,27:m,30:29,31:v,33:b,35:_,36:6,41:x,42:w,43:k,44:T,47:C,50:i},t(S,[2,8]),t(S,[2,9]),t(S,[2,10],{12:[1,43],13:[1,44]}),t(S,[2,14]),{16:[1,45]},t(S,[2,16],{18:[1,46]}),{21:[1,47]},t(S,[2,20]),t(S,[2,21]),t(S,[2,22]),t(S,[2,23]),{28:48,29:[1,49],48:[1,50],49:[1,51]},t(S,[2,26]),t(S,[2,27]),{32:[1,52]},{34:[1,53]},t(S,[2,30]),t(A,[2,39]),t(A,[2,40]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(S,[2,36]),t(M,[2,31]),{40:54,52:[1,55]},t(M,[2,46]),t(S,[2,7]),t(S,[2,11]),{11:56,22:f,47:C},t(S,[2,15]),t(N,a,{8:57}),{22:[1,58]},{22:[1,59]},{21:[1,60]},{22:[2,41]},{22:[2,42]},t(S,[2,28]),t(S,[2,29]),{38:61,53:E},{53:[2,45]},t(S,[2,12],{12:[1,62]}),{4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:u,17:l,19:[1,63],20:h,22:f,23:d,24:p,25:g,26:y,27:m,30:29,31:v,33:b,35:_,36:6,41:x,42:w,43:k,44:T,47:C,50:i},t(S,[2,18],{18:[1,64]}),{29:[1,65]},{22:[1,66]},t(M,[2,32]),t(S,[2,13]),t(S,[2,17]),t(N,a,{8:67}),t(S,[2,24]),t(S,[2,25]),{4:o,5:s,6:28,9:14,10:16,11:18,14:c,15:u,17:l,19:[1,68],20:h,22:f,23:d,24:p,25:g,26:y,27:m,30:29,31:v,33:b,35:_,36:6,41:x,42:w,43:k,44:T,47:C,50:i},t(S,[2,19])],defaultActions:{7:[2,43],8:[2,1],9:[2,2],10:[2,3],50:[2,41],51:[2,42],55:[2,45]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},B={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\\\"case-insensitive\\\":!0},performAction:function(t,e,n,r){switch(n){case 0:case 33:return 41;case 1:case 34:return 42;case 2:case 35:return 43;case 3:case 36:return 44;case 4:return this.begin(\\\"open_directive\\\"),50;case 5:return this.begin(\\\"type_directive\\\"),51;case 6:return this.popState(),this.begin(\\\"arg_directive\\\"),39;case 7:return this.popState(),this.popState(),53;case 8:return 52;case 9:case 10:case 12:case 13:case 14:case 15:case 46:case 52:break;case 11:case 66:return 5;case 16:return this.pushState(\\\"SCALE\\\"),15;case 17:return 16;case 18:case 24:case 40:case 43:this.popState();break;case 19:return this.begin(\\\"acc_title\\\"),31;case 20:return this.popState(),\\\"acc_title_value\\\";case 21:return this.begin(\\\"acc_descr\\\"),33;case 22:return this.popState(),\\\"acc_descr_value\\\";case 23:this.begin(\\\"acc_descr_multiline\\\");break;case 25:return\\\"acc_descr_multiline_value\\\";case 26:this.pushState(\\\"STATE\\\");break;case 27:case 30:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),23;case 28:case 31:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),24;case 29:case 32:return this.popState(),e.yytext=e.yytext.slice(0,-10).trim(),25;case 37:this.begin(\\\"STATE_STRING\\\");break;case 38:return this.popState(),this.pushState(\\\"STATE_ID\\\"),\\\"AS\\\";case 39:case 54:return this.popState(),\\\"ID\\\";case 41:return\\\"STATE_DESCR\\\";case 42:return 17;case 44:return this.popState(),this.pushState(\\\"struct\\\"),18;case 45:return this.popState(),19;case 47:return this.begin(\\\"NOTE\\\"),27;case 48:return this.popState(),this.pushState(\\\"NOTE_ID\\\"),48;case 49:return this.popState(),this.pushState(\\\"NOTE_ID\\\"),49;case 50:this.popState(),this.pushState(\\\"FLOATING_NOTE\\\");break;case 51:return this.popState(),this.pushState(\\\"FLOATING_NOTE_ID\\\"),\\\"AS\\\";case 53:return\\\"NOTE_TEXT\\\";case 55:return this.popState(),this.pushState(\\\"NOTE_TEXT\\\"),22;case 56:return this.popState(),e.yytext=e.yytext.substr(2).trim(),29;case 57:return this.popState(),e.yytext=e.yytext.slice(0,-8).trim(),29;case 58:case 59:return 7;case 60:return 14;case 61:return 47;case 62:return 22;case 63:return e.yytext=e.yytext.trim(),12;case 64:return 13;case 65:return 26;case 67:return\\\"INVALID\\\"}},rules:[/^(?:.*direction\\\\s+TB[^\\\\n]*)/i,/^(?:.*direction\\\\s+BT[^\\\\n]*)/i,/^(?:.*direction\\\\s+RL[^\\\\n]*)/i,/^(?:.*direction\\\\s+LR[^\\\\n]*)/i,/^(?:%%\\\\{)/i,/^(?:((?:(?!\\\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\\\}%%)/i,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/i,/^(?:%%(?!\\\\{)[^\\\\n]*)/i,/^(?:[^\\\\}]%%[^\\\\n]*)/i,/^(?:[\\\\n]+)/i,/^(?:[\\\\s]+)/i,/^(?:((?!\\\\n)\\\\s)+)/i,/^(?:#[^\\\\n]*)/i,/^(?:%[^\\\\n]*)/i,/^(?:scale\\\\s+)/i,/^(?:\\\\d+)/i,/^(?:\\\\s+width\\\\b)/i,/^(?:accTitle\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*\\\\{\\\\s*)/i,/^(?:[\\\\}])/i,/^(?:[^\\\\}]*)/i,/^(?:state\\\\s+)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*<>)/i,/^(?:.*\\\\[\\\\[fork\\\\]\\\\])/i,/^(?:.*\\\\[\\\\[join\\\\]\\\\])/i,/^(?:.*\\\\[\\\\[choice\\\\]\\\\])/i,/^(?:.*direction\\\\s+TB[^\\\\n]*)/i,/^(?:.*direction\\\\s+BT[^\\\\n]*)/i,/^(?:.*direction\\\\s+RL[^\\\\n]*)/i,/^(?:.*direction\\\\s+LR[^\\\\n]*)/i,/^(?:[\\\"])/i,/^(?:\\\\s*as\\\\s+)/i,/^(?:[^\\\\n\\\\{]*)/i,/^(?:[\\\"])/i,/^(?:[^\\\"]*)/i,/^(?:[^\\\\n\\\\s\\\\{]+)/i,/^(?:\\\\n)/i,/^(?:\\\\{)/i,/^(?:\\\\})/i,/^(?:[\\\\n])/i,/^(?:note\\\\s+)/i,/^(?:left of\\\\b)/i,/^(?:right of\\\\b)/i,/^(?:\\\")/i,/^(?:\\\\s*as\\\\s*)/i,/^(?:[\\\"])/i,/^(?:[^\\\"]*)/i,/^(?:[^\\\\n]*)/i,/^(?:\\\\s*[^:\\\\n\\\\s\\\\-]+)/i,/^(?:\\\\s*:[^:\\\\n;]+)/i,/^(?:[\\\\s\\\\S]*?end note\\\\b)/i,/^(?:stateDiagram\\\\s+)/i,/^(?:stateDiagram-v2\\\\s+)/i,/^(?:hide empty description\\\\b)/i,/^(?:\\\\[\\\\*\\\\])/i,/^(?:[^:\\\\n\\\\s\\\\-\\\\{]+)/i,/^(?:\\\\s*:[^:\\\\n;]+)/i,/^(?:-->)/i,/^(?:--)/i,/^(?:$)/i,/^(?:.)/i],conditions:{LINE:{rules:[13,14],inclusive:!1},close_directive:{rules:[13,14],inclusive:!1},arg_directive:{rules:[7,8,13,14],inclusive:!1},type_directive:{rules:[6,7,13,14],inclusive:!1},open_directive:{rules:[5,13,14],inclusive:!1},struct:{rules:[13,14,26,33,34,35,36,45,46,47,61,62,63,64,65],inclusive:!1},FLOATING_NOTE_ID:{rules:[54],inclusive:!1},FLOATING_NOTE:{rules:[51,52,53],inclusive:!1},NOTE_TEXT:{rules:[56,57],inclusive:!1},NOTE_ID:{rules:[55],inclusive:!1},NOTE:{rules:[48,49,50],inclusive:!1},acc_descr_multiline:{rules:[24,25],inclusive:!1},acc_descr:{rules:[22],inclusive:!1},acc_title:{rules:[20],inclusive:!1},SCALE:{rules:[17,18],inclusive:!1},ALIAS:{rules:[],inclusive:!1},STATE_ID:{rules:[39],inclusive:!1},STATE_STRING:{rules:[40,41],inclusive:!1},FORK_STATE:{rules:[],inclusive:!1},STATE:{rules:[13,14,27,28,29,30,31,32,37,38,42,43,44],inclusive:!1},ID:{rules:[13,14],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,9,10,11,12,14,15,16,19,21,23,26,44,47,58,59,60,61,62,63,64,66,67],inclusive:!0}}};function L(){this.yy={}}return D.lexer=B,L.prototype=D,D.Parser=L,new L}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(3069).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},9763:(t,e,n)=>{t=n.nmd(t);var r=function(){var t=function(t,e,n,r){for(n=n||{},r=t.length;r--;n[t[r]]=e);return n},e=[1,2],n=[1,5],r=[6,9,11,17,18,20,22,23,24,26],i=[1,15],a=[1,16],o=[1,17],s=[1,18],c=[1,19],u=[1,20],l=[1,24],h=[4,6,9,11,17,18,20,22,23,24,26],f={trace:function(){},yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,directive:7,line:8,SPACE:9,statement:10,NEWLINE:11,openDirective:12,typeDirective:13,closeDirective:14,\\\":\\\":15,argDirective:16,title:17,acc_title:18,acc_title_value:19,acc_descr:20,acc_descr_value:21,acc_descr_multiline_value:22,section:23,taskName:24,taskData:25,open_directive:26,type_directive:27,arg_directive:28,close_directive:29,$accept:0,$end:1},terminals_:{2:\\\"error\\\",4:\\\"journey\\\",6:\\\"EOF\\\",9:\\\"SPACE\\\",11:\\\"NEWLINE\\\",15:\\\":\\\",17:\\\"title\\\",18:\\\"acc_title\\\",19:\\\"acc_title_value\\\",20:\\\"acc_descr\\\",21:\\\"acc_descr_value\\\",22:\\\"acc_descr_multiline_value\\\",23:\\\"section\\\",24:\\\"taskName\\\",25:\\\"taskData\\\",26:\\\"open_directive\\\",27:\\\"type_directive\\\",28:\\\"arg_directive\\\",29:\\\"close_directive\\\"},productions_:[0,[3,3],[3,2],[5,0],[5,2],[8,2],[8,1],[8,1],[8,1],[7,4],[7,6],[10,1],[10,2],[10,2],[10,1],[10,1],[10,2],[10,1],[12,1],[13,1],[16,1],[14,1]],performAction:function(t,e,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:case 7:case 8:this.$=[];break;case 4:a[s-1].push(a[s]),this.$=a[s-1];break;case 5:case 6:this.$=a[s];break;case 11:r.setTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.setTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 16:r.addTask(a[s-1],a[s]),this.$=\\\"task\\\";break;case 18:r.parseDirective(\\\"%%{\\\",\\\"open_directive\\\");break;case 19:r.parseDirective(a[s],\\\"type_directive\\\");break;case 20:a[s]=a[s].trim().replace(/'/g,'\\\"'),r.parseDirective(a[s],\\\"arg_directive\\\");break;case 21:r.parseDirective(\\\"}%%\\\",\\\"close_directive\\\",\\\"journey\\\")}},table:[{3:1,4:e,7:3,12:4,26:n},{1:[3]},t(r,[2,3],{5:6}),{3:7,4:e,7:3,12:4,26:n},{13:8,27:[1,9]},{27:[2,18]},{6:[1,10],7:21,8:11,9:[1,12],10:13,11:[1,14],12:4,17:i,18:a,20:o,22:s,23:c,24:u,26:n},{1:[2,2]},{14:22,15:[1,23],29:l},t([15,29],[2,19]),t(r,[2,8],{1:[2,1]}),t(r,[2,4]),{7:21,10:25,12:4,17:i,18:a,20:o,22:s,23:c,24:u,26:n},t(r,[2,6]),t(r,[2,7]),t(r,[2,11]),{19:[1,26]},{21:[1,27]},t(r,[2,14]),t(r,[2,15]),{25:[1,28]},t(r,[2,17]),{11:[1,29]},{16:30,28:[1,31]},{11:[2,21]},t(r,[2,5]),t(r,[2,12]),t(r,[2,13]),t(r,[2,16]),t(h,[2,9]),{14:32,29:l},{29:[2,20]},{11:[1,33]},t(h,[2,10])],defaultActions:{5:[2,18],7:[2,2],24:[2,21],31:[2,20]},parseError:function(t,e){if(!e.recoverable){var n=new Error(t);throw n.hash=e,n}this.trace(t)},parse:function(t){var e=this,n=[0],r=[],i=[null],a=[],o=this.table,s=\\\"\\\",c=0,u=0,l=0,h=2,f=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,void 0===p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;function b(){var t;return\\\"number\\\"!=typeof(t=r.pop()||p.lex()||f)&&(t instanceof Array&&(t=(r=t).pop()),t=e.symbols_[t]||t),t}\\\"function\\\"==typeof g.yy.parseError?this.parseError=g.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var _,x,w,k,T,C,E,S,A,M={};;){if(w=n[n.length-1],this.defaultActions[w]?k=this.defaultActions[w]:(null==_&&(_=b()),k=o[w]&&o[w][_]),void 0===k||!k.length||!k[0]){var N=\\\"\\\";for(C in A=[],o[w])this.terminals_[C]&&C>h&&A.push(\\\"'\\\"+this.terminals_[C]+\\\"'\\\");N=p.showPosition?\\\"Parse error on line \\\"+(c+1)+\\\":\\\\n\\\"+p.showPosition()+\\\"\\\\nExpecting \\\"+A.join(\\\", \\\")+\\\", got '\\\"+(this.terminals_[_]||_)+\\\"'\\\":\\\"Parse error on line \\\"+(c+1)+\\\": Unexpected \\\"+(_==f?\\\"end of input\\\":\\\"'\\\"+(this.terminals_[_]||_)+\\\"'\\\"),this.parseError(N,{text:p.match,token:this.terminals_[_]||_,line:p.yylineno,loc:m,expected:A})}if(k[0]instanceof Array&&k.length>1)throw new Error(\\\"Parse Error: multiple actions possible at state: \\\"+w+\\\", token: \\\"+_);switch(k[0]){case 1:n.push(_),i.push(p.yytext),a.push(p.yylloc),n.push(k[1]),_=null,x?(_=x,x=null):(u=p.yyleng,s=p.yytext,c=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[k[1]][1],M.$=i[i.length-E],M._$={first_line:a[a.length-(E||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(E||1)].first_column,last_column:a[a.length-1].last_column},v&&(M._$.range=[a[a.length-(E||1)].range[0],a[a.length-1].range[1]]),void 0!==(T=this.performAction.apply(M,[s,u,c,g.yy,k[1],i,a].concat(d))))return T;E&&(n=n.slice(0,-1*E*2),i=i.slice(0,-1*E),a=a.slice(0,-1*E)),n.push(this.productions_[k[1]][0]),i.push(M.$),a.push(M._$),S=o[n[n.length-2]][n[n.length-1]],n.push(S);break;case 3:return!0}}return!0}},d={EOF:1,parseError:function(t,e){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,e)},setInput:function(t,e){return this.yy=e||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=\\\"\\\",this.conditionStack=[\\\"INITIAL\\\"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];return this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t,t.match(/(?:\\\\r\\\\n?|\\\\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var e=t.length,n=t.split(/(?:\\\\r\\\\n?|\\\\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-e),this.offset-=e;var r=this.match.split(/(?:\\\\r\\\\n?|\\\\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-e},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-e]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?\\\"...\\\":\\\"\\\")+t.substr(-20).replace(/\\\\n/g,\\\"\\\")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?\\\"...\\\":\\\"\\\")).replace(/\\\\n/g,\\\"\\\")},showPosition:function(){var t=this.pastInput(),e=new Array(t.length+1).join(\\\"-\\\");return t+this.upcomingInput()+\\\"\\\\n\\\"+e+\\\"^\\\"},test_match:function(t,e){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=t[0].match(/(?:\\\\r\\\\n?|\\\\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\\\\r?\\\\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],n=this.performAction.call(this,this.yy,this,e,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var t,e,n,r;this._input||(this.done=!0),this._more||(this.yytext=\\\"\\\",this.match=\\\"\\\");for(var i=this._currentRules(),a=0;ae[0].length)){if(e=n,r=a,this.options.backtrack_lexer){if(!1!==(t=this.test_match(n,i[a])))return t;if(this._backtrack){e=!1;continue}return!1}if(!this.options.flex)break}return e?!1!==(t=this.test_match(e,i[r]))&&t:\\\"\\\"===this._input?this.EOF:this.parseError(\\\"Lexical error on line \\\"+(this.yylineno+1)+\\\". Unrecognized text.\\\\n\\\"+this.showPosition(),{text:\\\"\\\",token:null,line:this.yylineno})},lex:function(){return this.next()||this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return(t=this.conditionStack.length-1-Math.abs(t||0))>=0?this.conditionStack[t]:\\\"INITIAL\\\"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{\\\"case-insensitive\\\":!0},performAction:function(t,e,n,r){switch(n){case 0:return this.begin(\\\"open_directive\\\"),26;case 1:return this.begin(\\\"type_directive\\\"),27;case 2:return this.popState(),this.begin(\\\"arg_directive\\\"),15;case 3:return this.popState(),this.popState(),29;case 4:return 28;case 5:case 6:case 8:case 9:break;case 7:return 11;case 10:return 4;case 11:return 17;case 12:return this.begin(\\\"acc_title\\\"),18;case 13:return this.popState(),\\\"acc_title_value\\\";case 14:return this.begin(\\\"acc_descr\\\"),20;case 15:return this.popState(),\\\"acc_descr_value\\\";case 16:this.begin(\\\"acc_descr_multiline\\\");break;case 17:this.popState();break;case 18:return\\\"acc_descr_multiline_value\\\";case 19:return 23;case 20:return 24;case 21:return 25;case 22:return 15;case 23:return 6;case 24:return\\\"INVALID\\\"}},rules:[/^(?:%%\\\\{)/i,/^(?:((?:(?!\\\\}%%)[^:.])*))/i,/^(?::)/i,/^(?:\\\\}%%)/i,/^(?:((?:(?!\\\\}%%).|\\\\n)*))/i,/^(?:%(?!\\\\{)[^\\\\n]*)/i,/^(?:[^\\\\}]%%[^\\\\n]*)/i,/^(?:[\\\\n]+)/i,/^(?:\\\\s+)/i,/^(?:#[^\\\\n]*)/i,/^(?:journey\\\\b)/i,/^(?:title\\\\s[^#\\\\n;]+)/i,/^(?:accTitle\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*:\\\\s*)/i,/^(?:(?!\\\\n||)*[^\\\\n]*)/i,/^(?:accDescr\\\\s*\\\\{\\\\s*)/i,/^(?:[\\\\}])/i,/^(?:[^\\\\}]*)/i,/^(?:section\\\\s[^#:\\\\n;]+)/i,/^(?:[^#:\\\\n;]+)/i,/^(?::[^#\\\\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{open_directive:{rules:[1],inclusive:!1},type_directive:{rules:[2,3],inclusive:!1},arg_directive:{rules:[3,4],inclusive:!1},acc_descr_multiline:{rules:[17,18],inclusive:!1},acc_descr:{rules:[15],inclusive:!1},acc_title:{rules:[13],inclusive:!1},INITIAL:{rules:[0,5,6,7,8,9,10,11,12,14,16,19,20,21,22,23,24],inclusive:!0}}};function p(){this.yy={}}return f.lexer=d,p.prototype=f,f.Parser=p,new p}();e.parser=r,e.Parser=r.Parser,e.parse=function(){return r.parse.apply(r,arguments)},e.main=function(t){t[1]||(console.log(\\\"Usage: \\\"+t[0]+\\\" FILE\\\"),process.exit(1));var r=n(9143).readFileSync(n(6470).normalize(t[1]),\\\"utf8\\\");return e.parser.parse(r)},n.c[n.s]===t&&e.main(process.argv.slice(1))},7967:(t,e)=>{\\\"use strict\\\";e.N=void 0;var n=/^([^\\\\w]*)(javascript|data|vbscript)/im,r=/&#(\\\\w+)(^\\\\w|;)?/g,i=/[\\\\u0000-\\\\u001F\\\\u007F-\\\\u009F\\\\u2000-\\\\u200D\\\\uFEFF]/gim,a=/^([^:]+):/gm,o=[\\\".\\\",\\\"/\\\"];e.N=function(t){var e,s=(e=t||\\\"\\\",e.replace(r,(function(t,e){return String.fromCharCode(e)}))).replace(i,\\\"\\\").trim();if(!s)return\\\"about:blank\\\";if(function(t){return o.indexOf(t[0])>-1}(s))return s;var c=s.match(a);if(!c)return s;var u=c[0];return n.test(u)?\\\"about:blank\\\":s}},3841:t=>{t.exports=function(t,e){return t.intersect(e)}},8968:(t,e,n)=>{\\\"use strict\\\";n.d(e,{default:()=>HE});var r=n(1941),i=n.n(r),a={debug:1,info:2,warn:3,error:4,fatal:5},o={debug:function(){},info:function(){},warn:function(){},error:function(){},fatal:function(){}},s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:\\\"fatal\\\";isNaN(t)&&(t=t.toLowerCase(),void 0!==a[t]&&(t=a[t])),o.trace=function(){},o.debug=function(){},o.info=function(){},o.warn=function(){},o.error=function(){},o.fatal=function(){},t<=a.fatal&&(o.fatal=console.error?console.error.bind(console,c(\\\"FATAL\\\"),\\\"color: orange\\\"):console.log.bind(console,\\\"\\u001b[35m\\\",c(\\\"FATAL\\\"))),t<=a.error&&(o.error=console.error?console.error.bind(console,c(\\\"ERROR\\\"),\\\"color: orange\\\"):console.log.bind(console,\\\"\\u001b[31m\\\",c(\\\"ERROR\\\"))),t<=a.warn&&(o.warn=console.warn?console.warn.bind(console,c(\\\"WARN\\\"),\\\"color: orange\\\"):console.log.bind(console,\\\"\\u001b[33m\\\",c(\\\"WARN\\\"))),t<=a.info&&(o.info=console.info?console.info.bind(console,c(\\\"INFO\\\"),\\\"color: lightblue\\\"):console.log.bind(console,\\\"\\u001b[34m\\\",c(\\\"INFO\\\"))),t<=a.debug&&(o.debug=console.debug?console.debug.bind(console,c(\\\"DEBUG\\\"),\\\"color: lightgreen\\\"):console.log.bind(console,\\\"\\u001b[32m\\\",c(\\\"DEBUG\\\")))},c=function(t){var e=i()().format(\\\"ss.SSS\\\");return\\\"%c\\\".concat(e,\\\" : \\\").concat(t,\\\" : \\\")};function u(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}function l(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function h(t){return t}var f=1e-6;function d(t){return\\\"translate(\\\"+t+\\\",0)\\\"}function p(t){return\\\"translate(0,\\\"+t+\\\")\\\"}function g(t){return e=>+t(e)}function y(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function m(){return!this.__axis}function v(t,e){var n=[],r=null,i=null,a=6,o=6,s=3,c=\\\"undefined\\\"!=typeof window&&window.devicePixelRatio>1?0:.5,u=1===t||4===t?-1:1,l=4===t||2===t?\\\"x\\\":\\\"y\\\",v=1===t||3===t?d:p;function b(d){var p=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,b=null==i?e.tickFormat?e.tickFormat.apply(e,n):h:i,_=Math.max(a,0)+s,x=e.range(),w=+x[0]+c,k=+x[x.length-1]+c,T=(e.bandwidth?y:g)(e.copy(),c),C=d.selection?d.selection():d,E=C.selectAll(\\\".domain\\\").data([null]),S=C.selectAll(\\\".tick\\\").data(p,e).order(),A=S.exit(),M=S.enter().append(\\\"g\\\").attr(\\\"class\\\",\\\"tick\\\"),N=S.select(\\\"line\\\"),D=S.select(\\\"text\\\");E=E.merge(E.enter().insert(\\\"path\\\",\\\".tick\\\").attr(\\\"class\\\",\\\"domain\\\").attr(\\\"stroke\\\",\\\"currentColor\\\")),S=S.merge(M),N=N.merge(M.append(\\\"line\\\").attr(\\\"stroke\\\",\\\"currentColor\\\").attr(l+\\\"2\\\",u*a)),D=D.merge(M.append(\\\"text\\\").attr(\\\"fill\\\",\\\"currentColor\\\").attr(l,u*_).attr(\\\"dy\\\",1===t?\\\"0em\\\":3===t?\\\"0.71em\\\":\\\"0.32em\\\")),d!==C&&(E=E.transition(d),S=S.transition(d),N=N.transition(d),D=D.transition(d),A=A.transition(d).attr(\\\"opacity\\\",f).attr(\\\"transform\\\",(function(t){return isFinite(t=T(t))?v(t+c):this.getAttribute(\\\"transform\\\")})),M.attr(\\\"opacity\\\",f).attr(\\\"transform\\\",(function(t){var e=this.parentNode.__axis;return v((e&&isFinite(e=e(t))?e:T(t))+c)}))),A.remove(),E.attr(\\\"d\\\",4===t||2===t?o?\\\"M\\\"+u*o+\\\",\\\"+w+\\\"H\\\"+c+\\\"V\\\"+k+\\\"H\\\"+u*o:\\\"M\\\"+c+\\\",\\\"+w+\\\"V\\\"+k:o?\\\"M\\\"+w+\\\",\\\"+u*o+\\\"V\\\"+c+\\\"H\\\"+k+\\\"V\\\"+u*o:\\\"M\\\"+w+\\\",\\\"+c+\\\"H\\\"+k),S.attr(\\\"opacity\\\",1).attr(\\\"transform\\\",(function(t){return v(T(t)+c)})),N.attr(l+\\\"2\\\",u*a),D.attr(l,u*_).text(b),C.filter(m).attr(\\\"fill\\\",\\\"none\\\").attr(\\\"font-size\\\",10).attr(\\\"font-family\\\",\\\"sans-serif\\\").attr(\\\"text-anchor\\\",2===t?\\\"start\\\":4===t?\\\"end\\\":\\\"middle\\\"),C.each((function(){this.__axis=T}))}return b.scale=function(t){return arguments.length?(e=t,b):e},b.ticks=function(){return n=Array.from(arguments),b},b.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),b):n.slice()},b.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),b):r&&r.slice()},b.tickFormat=function(t){return arguments.length?(i=t,b):i},b.tickSize=function(t){return arguments.length?(a=o=+t,b):a},b.tickSizeInner=function(t){return arguments.length?(a=+t,b):a},b.tickSizeOuter=function(t){return arguments.length?(o=+t,b):o},b.tickPadding=function(t){return arguments.length?(s=+t,b):s},b.offset=function(t){return arguments.length?(c=+t,b):c},b}function b(){}function _(t){return null==t?b:function(){return this.querySelector(t)}}function x(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function w(){return[]}function k(t){return null==t?w:function(){return this.querySelectorAll(t)}}function T(t){return function(){return this.matches(t)}}function C(t){return function(e){return e.matches(t)}}var E=Array.prototype.find;function S(){return this.firstElementChild}var A=Array.prototype.filter;function M(){return Array.from(this.children)}function N(t){return new Array(t.length)}function D(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function B(t){return function(){return t}}function L(t,e,n,r,i,a){for(var o,s=0,c=e.length,u=a.length;se?1:t>=e?0:NaN}D.prototype={constructor:D,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var P=\\\"http://www.w3.org/1999/xhtml\\\";const Y={svg:\\\"http://www.w3.org/2000/svg\\\",xhtml:P,xlink:\\\"http://www.w3.org/1999/xlink\\\",xml:\\\"http://www.w3.org/XML/1998/namespace\\\",xmlns:\\\"http://www.w3.org/2000/xmlns/\\\"};function j(t){var e=t+=\\\"\\\",n=e.indexOf(\\\":\\\");return n>=0&&\\\"xmlns\\\"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Y.hasOwnProperty(e)?{space:Y[e],local:t}:t}function U(t){return function(){this.removeAttribute(t)}}function z(t){return function(){this.removeAttributeNS(t.space,t.local)}}function $(t,e){return function(){this.setAttribute(t,e)}}function q(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function H(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function W(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function V(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function G(t){return function(){this.style.removeProperty(t)}}function X(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Z(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Q(t,e){return t.style.getPropertyValue(e)||V(t).getComputedStyle(t,null).getPropertyValue(e)}function K(t){return function(){delete this[t]}}function J(t,e){return function(){this[t]=e}}function tt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function et(t){return t.trim().split(/^|\\\\s+/)}function nt(t){return t.classList||new rt(t)}function rt(t){this._node=t,this._names=et(t.getAttribute(\\\"class\\\")||\\\"\\\")}function it(t,e){for(var n=nt(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Ct(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute(\\\"class\\\",this._names.join(\\\" \\\")))},contains:function(t){return this._names.indexOf(t)>=0}};var Nt=[null];function Dt(t,e){this._groups=t,this._parents=e}function Bt(){return new Dt([[document.documentElement]],Nt)}Dt.prototype=Bt.prototype={constructor:Dt,select:function(t){\\\"function\\\"!=typeof t&&(t=_(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=x&&(x=_+1);!(b=y[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=F);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?G:\\\"function\\\"==typeof e?Z:X)(t,e,null==n?\\\"\\\":n)):Q(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?K:\\\"function\\\"==typeof e?tt:J)(t,e)):this.node()[t]},classed:function(t,e){var n=et(t+\\\"\\\");if(arguments.length<2){for(var r=nt(this.node()),i=-1,a=n.length;++i{}};function It(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error(\\\"unknown type: \\\"+t);return{type:t,name:n}}))}function Pt(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a=0&&e._call.call(void 0,t),e=e._next;--$t}()}finally{$t=0,function(){for(var t,e,n=Ut,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ut=e);zt=t,re(r)}(),Vt=0}}function ne(){var t=Xt.now(),e=t-Wt;e>1e3&&(Gt-=e,Wt=t)}function re(t){$t||(qt&&(qt=clearTimeout(qt)),t-Vt>24?(t<1/0&&(qt=setTimeout(ee,t-Xt.now()-Gt)),Ht&&(Ht=clearInterval(Ht))):(Ht||(Wt=Xt.now(),Ht=setInterval(ne,1e3)),$t=1,Zt(ee)))}function ie(t,e,n){var r=new Jt;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Jt.prototype=te.prototype={constructor:Jt,restart:function(t,e,n){if(\\\"function\\\"!=typeof t)throw new TypeError(\\\"callback is not a function\\\");n=(null==n?Qt():+n)+(null==e?0:+e),this._next||zt===this||(zt?zt._next=this:Ut=this,zt=this),this._call=t,this._time=n,re()},stop:function(){this._call&&(this._call=null,this._time=1/0,re())}};var ae=jt(\\\"start\\\",\\\"end\\\",\\\"cancel\\\",\\\"interrupt\\\"),oe=[];function se(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return ie(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call(\\\"interrupt\\\",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error(\\\"too late; already scheduled\\\");return n}function ue(t,e){var n=le(t,e);if(n.state>3)throw new Error(\\\"too late; already running\\\");return n}function le(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error(\\\"transition not found\\\");return n}function he(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var fe,de=180/Math.PI,pe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ge(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+\\\"rotate(\\\",null,r)-2,x:he(t,e)})):e&&n.push(i(n)+\\\"rotate(\\\"+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+\\\"skewX(\\\",null,r)-2,x:he(t,e)}):e&&n.push(i(n)+\\\"skewX(\\\"+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+\\\"scale(\\\",null,\\\",\\\",null,\\\")\\\");o.push({i:s-4,x:he(t,n)},{i:s-2,x:he(e,r)})}else 1===n&&1===r||a.push(i(a)+\\\"scale(\\\"+n+\\\",\\\"+r+\\\")\\\")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ze(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ze(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=De.exec(t))?new He(e[1],e[2],e[3],1):(e=Be.exec(t))?new He(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Le.exec(t))?ze(e[1],e[2],e[3],e[4]):(e=Oe.exec(t))?ze(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ie.exec(t))?Xe(e[1],e[2]/100,e[3]/100,1):(e=Re.exec(t))?Xe(e[1],e[2]/100,e[3]/100,e[4]):Fe.hasOwnProperty(t)?Ue(Fe[t]):\\\"transparent\\\"===t?new He(NaN,NaN,NaN,0):null}function Ue(t){return new He(t>>16&255,t>>8&255,255&t,1)}function ze(t,e,n,r){return r<=0&&(t=e=n=NaN),new He(t,e,n,r)}function $e(t){return t instanceof Te||(t=je(t)),t?new He((t=t.rgb()).r,t.g,t.b,t.opacity):new He}function qe(t,e,n,r){return 1===arguments.length?$e(t):new He(t,e,n,null==r?1:r)}function He(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function We(){return\\\"#\\\"+Ge(this.r)+Ge(this.g)+Ge(this.b)}function Ve(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"rgb(\\\":\\\"rgba(\\\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}function Ge(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?\\\"0\\\":\\\"\\\")+t.toString(16)}function Xe(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qe(t,e,n,r)}function Ze(t){if(t instanceof Qe)return new Qe(t.h,t.s,t.l,t.opacity);if(t instanceof Te||(t=je(t)),!t)return new Qe;if(t instanceof Qe)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new Qe(o,s,c,t.opacity)}function Qe(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ke(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Je(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}we(Te,je,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Pe,formatHex:Pe,formatHsl:function(){return Ze(this).formatHsl()},formatRgb:Ye,toString:Ye}),we(He,qe,ke(Te,{brighter:function(t){return t=null==t?Ee:Math.pow(Ee,t),new He(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Ce:Math.pow(Ce,t),new He(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:We,formatHex:We,formatRgb:Ve,toString:Ve})),we(Qe,(function(t,e,n,r){return 1===arguments.length?Ze(t):new Qe(t,e,n,null==r?1:r)}),ke(Te,{brighter:function(t){return t=null==t?Ee:Math.pow(Ee,t),new Qe(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ce:Math.pow(Ce,t),new Qe(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new He(Ke(t>=240?t-240:t+120,i,r),Ke(t,i,r),Ke(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"hsl(\\\":\\\"hsla(\\\")+(this.h||0)+\\\", \\\"+100*(this.s||0)+\\\"%, \\\"+100*(this.l||0)+\\\"%\\\"+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}}));const tn=t=>()=>t;function en(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):tn(isNaN(t)?e:t)}const nn=function t(e){var n=function(t){return 1==(t=+t)?en:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):tn(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=qe(t)).r,(e=qe(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=en(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+\\\"\\\"}}return r.gamma=t,r}(1);function rn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=ra&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:he(n,r)})),a=on.lastIndex;return a=0&&(t=t.slice(0,e)),!t||\\\"start\\\"===t}))}(e)?ce:ue;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Cn=Lt.prototype.constructor;function En(t){return function(){this.style.removeProperty(t)}}function Sn(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function An(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Sn(t,a,n)),r}return a._value=e,a}function Mn(t){return function(e){this.textContent=t.call(this,e)}}function Nn(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Mn(r)),e}return r._value=t,r}var Dn=0;function Bn(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Ln(){return++Dn}var On=Lt.prototype;Bn.prototype=function(t){return Lt().transition(t)}.prototype={constructor:Bn,select:function(t){var e=this._name,n=this._id;\\\"function\\\"!=typeof t&&(t=_(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?\\\"interrupt\\\":\\\"cancel\\\",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},Lt.prototype.transition=function(t){var e,n;t instanceof Bn?(e=t._id,t=t._name):(e=Ln(),(n=In).time=Qt(),t=null==t?null:t+\\\"\\\");for(var r=this._groups,i=r.length,a=0;a>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?sr(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?sr(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Zn.exec(t))?new lr(e[1],e[2],e[3],1):(e=Qn.exec(t))?new lr(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Kn.exec(t))?sr(e[1],e[2],e[3],e[4]):(e=Jn.exec(t))?sr(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tr.exec(t))?pr(e[1],e[2]/100,e[3]/100,1):(e=er.exec(t))?pr(e[1],e[2]/100,e[3]/100,e[4]):nr.hasOwnProperty(t)?or(nr[t]):\\\"transparent\\\"===t?new lr(NaN,NaN,NaN,0):null}function or(t){return new lr(t>>16&255,t>>8&255,255&t,1)}function sr(t,e,n,r){return r<=0&&(t=e=n=NaN),new lr(t,e,n,r)}function cr(t){return t instanceof $n||(t=ar(t)),t?new lr((t=t.rgb()).r,t.g,t.b,t.opacity):new lr}function ur(t,e,n,r){return 1===arguments.length?cr(t):new lr(t,e,n,null==r?1:r)}function lr(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function hr(){return\\\"#\\\"+dr(this.r)+dr(this.g)+dr(this.b)}function fr(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"rgb(\\\":\\\"rgba(\\\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}function dr(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?\\\"0\\\":\\\"\\\")+t.toString(16)}function pr(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new yr(t,e,n,r)}function gr(t){if(t instanceof yr)return new yr(t.h,t.s,t.l,t.opacity);if(t instanceof $n||(t=ar(t)),!t)return new yr;if(t instanceof yr)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new yr(o,s,c,t.opacity)}function yr(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function mr(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Un($n,ar,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:rr,formatHex:rr,formatHsl:function(){return gr(this).formatHsl()},formatRgb:ir,toString:ir}),Un(lr,ur,zn($n,{brighter:function(t){return t=null==t?Hn:Math.pow(Hn,t),new lr(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?qn:Math.pow(qn,t),new lr(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hr,formatHex:hr,formatRgb:fr,toString:fr})),Un(yr,(function(t,e,n,r){return 1===arguments.length?gr(t):new yr(t,e,n,null==r?1:r)}),zn($n,{brighter:function(t){return t=null==t?Hn:Math.pow(Hn,t),new yr(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?qn:Math.pow(qn,t),new yr(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new lr(mr(t>=240?t-240:t+120,i,r),mr(t,i,r),mr(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"hsl(\\\":\\\"hsla(\\\")+(this.h||0)+\\\", \\\"+100*(this.s||0)+\\\"%, \\\"+100*(this.l||0)+\\\"%\\\"+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}}));const vr=Math.PI/180,br=180/Math.PI,_r=.96422,xr=.82521,wr=4/29,kr=6/29,Tr=3*kr*kr;function Cr(t){if(t instanceof Er)return new Er(t.l,t.a,t.b,t.opacity);if(t instanceof Lr)return Or(t);t instanceof lr||(t=cr(t));var e,n,r=Nr(t.r),i=Nr(t.g),a=Nr(t.b),o=Sr((.2225045*r+.7168786*i+.0606169*a)/1);return r===i&&i===a?e=n=o:(e=Sr((.4360747*r+.3850649*i+.1430804*a)/_r),n=Sr((.0139322*r+.0971045*i+.7141733*a)/xr)),new Er(116*o-16,500*(e-o),200*(o-n),t.opacity)}function Er(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Sr(t){return t>.008856451679035631?Math.pow(t,1/3):t/Tr+wr}function Ar(t){return t>kr?t*t*t:Tr*(t-wr)}function Mr(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Nr(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Dr(t){if(t instanceof Lr)return new Lr(t.h,t.c,t.l,t.opacity);if(t instanceof Er||(t=Cr(t)),0===t.a&&0===t.b)return new Lr(NaN,0()=>t;function Rr(t,e){return function(n){return t+n*e}}function Fr(t,e){var n=e-t;return n?Rr(t,n):Ir(isNaN(t)?e:t)}function Pr(t){return function(e,n){var r=t((e=Br(e)).h,(n=Br(n)).h),i=Fr(e.c,n.c),a=Fr(e.l,n.l),o=Fr(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+\\\"\\\"}}}const Yr=Pr((function(t,e){var n=e-t;return n?Rr(t,n>180||n<-180?n-360*Math.round(n/360):n):Ir(isNaN(t)?e:t)}));Pr(Fr);var jr=Math.sqrt(50),Ur=Math.sqrt(10),zr=Math.sqrt(2);function $r(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=jr?10:a>=Ur?5:a>=zr?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=jr?10:a>=Ur?5:a>=zr?2:1)}function qr(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=jr?i*=10:a>=Ur?i*=5:a>=zr&&(i*=2),ee?1:t>=e?0:NaN}function Wr(t){let e=t,n=t,r=t;function i(t,e,i=0,a=t.length){if(i>>1;r(t[n],e)<0?i=n+1:a=n}while(it(e)-n,n=Hr,r=(e,n)=>Hr(t(e),n)),{left:i,center:function(t,n,r=0,a=t.length){const o=i(t,n,r,a-1);return o>r&&e(t[o-1],n)>-e(t[o],n)?o-1:o},right:function(t,e,i=0,a=t.length){if(i>>1;r(t[n],e)<=0?i=n+1:a=n}while(i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?yi(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?yi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ai.exec(t))?new bi(e[1],e[2],e[3],1):(e=oi.exec(t))?new bi(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=si.exec(t))?yi(e[1],e[2],e[3],e[4]):(e=ci.exec(t))?yi(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ui.exec(t))?ki(e[1],e[2]/100,e[3]/100,1):(e=li.exec(t))?ki(e[1],e[2]/100,e[3]/100,e[4]):hi.hasOwnProperty(t)?gi(hi[t]):\\\"transparent\\\"===t?new bi(NaN,NaN,NaN,0):null}function gi(t){return new bi(t>>16&255,t>>8&255,255&t,1)}function yi(t,e,n,r){return r<=0&&(t=e=n=NaN),new bi(t,e,n,r)}function mi(t){return t instanceof Kr||(t=pi(t)),t?new bi((t=t.rgb()).r,t.g,t.b,t.opacity):new bi}function vi(t,e,n,r){return 1===arguments.length?mi(t):new bi(t,e,n,null==r?1:r)}function bi(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function _i(){return\\\"#\\\"+wi(this.r)+wi(this.g)+wi(this.b)}function xi(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"rgb(\\\":\\\"rgba(\\\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}function wi(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?\\\"0\\\":\\\"\\\")+t.toString(16)}function ki(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ci(t,e,n,r)}function Ti(t){if(t instanceof Ci)return new Ci(t.h,t.s,t.l,t.opacity);if(t instanceof Kr||(t=pi(t)),!t)return new Ci;if(t instanceof Ci)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new Ci(o,s,c,t.opacity)}function Ci(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ei(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Si(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Zr(Kr,pi,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:fi,formatHex:fi,formatHsl:function(){return Ti(this).formatHsl()},formatRgb:di,toString:di}),Zr(bi,vi,Qr(Kr,{brighter:function(t){return t=null==t?ti:Math.pow(ti,t),new bi(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Jr:Math.pow(Jr,t),new bi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:_i,formatHex:_i,formatRgb:xi,toString:xi})),Zr(Ci,(function(t,e,n,r){return 1===arguments.length?Ti(t):new Ci(t,e,n,null==r?1:r)}),Qr(Kr,{brighter:function(t){return t=null==t?ti:Math.pow(ti,t),new Ci(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Jr:Math.pow(Jr,t),new Ci(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new bi(Ei(t>=240?t-240:t+120,i,r),Ei(t,i,r),Ei(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"hsl(\\\":\\\"hsla(\\\")+(this.h||0)+\\\", \\\"+100*(this.s||0)+\\\"%, \\\"+100*(this.l||0)+\\\"%\\\"+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}}));const Ai=t=>()=>t;function Mi(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ai(isNaN(t)?e:t)}const Ni=function t(e){var n=function(t){return 1==(t=+t)?Mi:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ai(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=vi(t)).r,(e=vi(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Mi(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+\\\"\\\"}}return r.gamma=t,r}(1);function Di(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=ra&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Oi(n,r)})),a=Fi.lastIndex;return ae&&(n=t,t=e,e=n),u=function(n){return Math.max(t,Math.min(e,n))}),r=c>2?Vi:Wi,i=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(u(e)))}return h.invert=function(n){return u(e((a||(a=r(s,o.map(t),Oi)))(n)))},h.domain=function(t){return arguments.length?(o=Array.from(t,zi),l()):o.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),c=Ui,l()},h.clamp=function(t){return arguments.length?(u=!!t||qi,l()):u!==qi},h.interpolate=function(t){return arguments.length?(c=t,l()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}()(qi,qi)}function Zi(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}var Qi,Ki=/^(?:(.)?([<>=^]))?([+\\\\-( ])?([$#])?(0)?(\\\\d+)?(,)?(\\\\.\\\\d+)?(~)?([a-z%])?$/i;function Ji(t){if(!(e=Ki.exec(t)))throw new Error(\\\"invalid format: \\\"+t);var e;return new ta({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ta(t){this.fill=void 0===t.fill?\\\" \\\":t.fill+\\\"\\\",this.align=void 0===t.align?\\\">\\\":t.align+\\\"\\\",this.sign=void 0===t.sign?\\\"-\\\":t.sign+\\\"\\\",this.symbol=void 0===t.symbol?\\\"\\\":t.symbol+\\\"\\\",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?\\\"\\\":t.type+\\\"\\\"}function ea(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf(\\\"e\\\"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function na(t){return(t=ea(Math.abs(t)))?t[1]:NaN}function ra(t,e){var n=ea(t,e);if(!n)return t+\\\"\\\";var r=n[0],i=n[1];return i<0?\\\"0.\\\"+new Array(-i).join(\\\"0\\\")+r:r.length>i+1?r.slice(0,i+1)+\\\".\\\"+r.slice(i+1):r+new Array(i-r.length+2).join(\\\"0\\\")}Ji.prototype=ta.prototype,ta.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?\\\"0\\\":\\\"\\\")+(void 0===this.width?\\\"\\\":Math.max(1,0|this.width))+(this.comma?\\\",\\\":\\\"\\\")+(void 0===this.precision?\\\"\\\":\\\".\\\"+Math.max(0,0|this.precision))+(this.trim?\\\"~\\\":\\\"\\\")+this.type};const ia={\\\"%\\\":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+\\\"\\\",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString(\\\"en\\\").replace(/,/g,\\\"\\\"):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ra(100*t,e),r:ra,s:function(t,e){var n=ea(t,e);if(!n)return t+\\\"\\\";var r=n[0],i=n[1],a=i-(Qi=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join(\\\"0\\\"):a>0?r.slice(0,a)+\\\".\\\"+r.slice(a):\\\"0.\\\"+new Array(1-a).join(\\\"0\\\")+ea(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function aa(t){return t}var oa,sa,ca,ua=Array.prototype.map,la=[\\\"y\\\",\\\"z\\\",\\\"a\\\",\\\"f\\\",\\\"p\\\",\\\"n\\\",\\\"µ\\\",\\\"m\\\",\\\"\\\",\\\"k\\\",\\\"M\\\",\\\"G\\\",\\\"T\\\",\\\"P\\\",\\\"E\\\",\\\"Z\\\",\\\"Y\\\"];function ha(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,a,o,s=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0){let n=Math.round(t/o),r=Math.round(e/o);for(n*oe&&--r,a=new Array(i=r-n+1);++se&&--r,a=new Array(i=r-n+1);++s0;){if((i=$r(c,u,n))===r)return a[o]=c,a[s]=u,e(a);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function fa(){var t=Xi();return t.copy=function(){return Gi(t,fa())},Zi.apply(t,arguments),ha(t)}oa=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?aa:(e=ua.call(t.grouping,Number),n=t.thousands+\\\"\\\",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?\\\"\\\":t.currency[0]+\\\"\\\",a=void 0===t.currency?\\\"\\\":t.currency[1]+\\\"\\\",o=void 0===t.decimal?\\\".\\\":t.decimal+\\\"\\\",s=void 0===t.numerals?aa:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(ua.call(t.numerals,String)),c=void 0===t.percent?\\\"%\\\":t.percent+\\\"\\\",u=void 0===t.minus?\\\"−\\\":t.minus+\\\"\\\",l=void 0===t.nan?\\\"NaN\\\":t.nan+\\\"\\\";function h(t){var e=(t=Ji(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,m=t.trim,v=t.type;\\\"n\\\"===v?(g=!0,v=\\\"g\\\"):ia[v]||(void 0===y&&(y=12),m=!0,v=\\\"g\\\"),(d||\\\"0\\\"===e&&\\\"=\\\"===n)&&(d=!0,e=\\\"0\\\",n=\\\"=\\\");var b=\\\"$\\\"===f?i:\\\"#\\\"===f&&/[boxX]/.test(v)?\\\"0\\\"+v.toLowerCase():\\\"\\\",_=\\\"$\\\"===f?a:/[%p]/.test(v)?c:\\\"\\\",x=ia[v],w=/[defgprs%]/.test(v);function k(t){var i,a,c,f=b,k=_;if(\\\"c\\\"===v)k=x(t)+k,t=\\\"\\\";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:x(Math.abs(t),y),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),T&&0==+t&&\\\"+\\\"!==h&&(T=!1),f=(T?\\\"(\\\"===h?h:u:\\\"-\\\"===h||\\\"(\\\"===h?\\\"\\\":h)+f,k=(\\\"s\\\"===v?la[8+Qi/3]:\\\"\\\")+k+(T&&\\\"(\\\"===h?\\\")\\\":\\\"\\\"),w)for(i=-1,a=t.length;++i(c=t.charCodeAt(i))||c>57){k=(46===c?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var C=f.length+t.length+k.length,E=C>1)+f+t+k+E.slice(C);break;default:t=E+f+t+k}return s(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),k.toString=function(){return t+\\\"\\\"},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=Ji(t)).type=\\\"f\\\",t)),r=3*Math.max(-8,Math.min(8,Math.floor(na(e)/3))),i=Math.pow(10,-r),a=la[8+r/3];return function(t){return n(i*t)+a}}}}({thousands:\\\",\\\",grouping:[3],currency:[\\\"$\\\",\\\"\\\"]}),sa=oa.format,ca=oa.formatPrefix;class da extends Map{constructor(t,e=ga){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(pa(this,t))}has(t){return super.has(pa(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function pa({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function ga(t){return null!==t&&\\\"object\\\"==typeof t?t.valueOf():t}Set;const ya=Symbol(\\\"implicit\\\");function ma(){var t=new da,e=[],n=[],r=ya;function i(i){let a=t.get(i);if(void 0===a){if(r!==ya)return r;t.set(i,a=e.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new da;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return ma(e,n).unknown(r)},Zi.apply(i,arguments),i}const va=1e3,ba=6e4,_a=36e5,xa=864e5,wa=6048e5,ka=31536e6;var Ta=new Date,Ca=new Date;function Ea(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Ta.setTime(+e),Ca.setTime(+r),t(Ta),t(Ca),Math.floor(n(Ta,Ca))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Sa=Ea((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Sa.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ea((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Sa:null};const Aa=Sa;Sa.range;var Ma=Ea((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*va)}),(function(t,e){return(e-t)/va}),(function(t){return t.getUTCSeconds()}));const Na=Ma;Ma.range;var Da=Ea((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*va)}),(function(t,e){t.setTime(+t+e*ba)}),(function(t,e){return(e-t)/ba}),(function(t){return t.getMinutes()}));const Ba=Da;Da.range;var La=Ea((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*va-t.getMinutes()*ba)}),(function(t,e){t.setTime(+t+e*_a)}),(function(t,e){return(e-t)/_a}),(function(t){return t.getHours()}));const Oa=La;La.range;var Ia=Ea((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ba)/xa),(t=>t.getDate()-1));const Ra=Ia;function Fa(t){return Ea((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ba)/wa}))}Ia.range;var Pa=Fa(0),Ya=Fa(1),ja=Fa(2),Ua=Fa(3),za=Fa(4),$a=Fa(5),qa=Fa(6),Ha=(Pa.range,Ya.range,ja.range,Ua.range,za.range,$a.range,qa.range,Ea((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const Wa=Ha;Ha.range;var Va=Ea((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Va.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ea((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Ga=Va;Va.range;var Xa=Ea((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*ba)}),(function(t,e){return(e-t)/ba}),(function(t){return t.getUTCMinutes()}));const Za=Xa;Xa.range;var Qa=Ea((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*_a)}),(function(t,e){return(e-t)/_a}),(function(t){return t.getUTCHours()}));const Ka=Qa;Qa.range;var Ja=Ea((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/xa}),(function(t){return t.getUTCDate()-1}));const to=Ja;function eo(t){return Ea((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/wa}))}Ja.range;var no=eo(0),ro=eo(1),io=eo(2),ao=eo(3),oo=eo(4),so=eo(5),co=eo(6),uo=(no.range,ro.range,io.range,ao.range,oo.range,so.range,co.range,Ea((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const lo=uo;uo.range;var ho=Ea((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));ho.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ea((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const fo=ho;function po(t,e,n,r,i,a){const o=[[Na,1,va],[Na,5,5e3],[Na,15,15e3],[Na,30,3e4],[a,1,ba],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,_a],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,xa],[r,2,1728e5],[n,1,wa],[e,1,2592e6],[e,3,7776e6],[t,1,ka]];function s(e,n,r){const i=Math.abs(n-e)/r,a=Wr((([,,t])=>t)).right(o,i);if(a===o.length)return t.every(qr(e/ka,n/ka,r));if(0===a)return Aa.every(Math.max(qr(e,n,r),1));const[s,c]=o[i/o[a-1][2][t.toLowerCase(),e])))}function Bo(t,e,n){var r=Co.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Lo(t,e,n){var r=Co.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Oo(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Io(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Ro(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Fo(t,e,n){var r=Co.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Po(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Yo(t,e,n){var r=/^(Z)|([+-]\\\\d\\\\d)(?::?(\\\\d\\\\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||\\\"00\\\")),n+r[0].length):-1}function jo(t,e,n){var r=Co.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Uo(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function zo(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function $o(t,e,n){var r=Co.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function qo(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ho(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Wo(t,e,n){var r=Co.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Vo(t,e,n){var r=Co.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Go(t,e,n){var r=Co.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Xo(t,e,n){var r=Eo.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Zo(t,e,n){var r=Co.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Qo(t,e,n){var r=Co.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Ko(t,e){return Ao(t.getDate(),e,2)}function Jo(t,e){return Ao(t.getHours(),e,2)}function ts(t,e){return Ao(t.getHours()%12||12,e,2)}function es(t,e){return Ao(1+Ra.count(Ga(t),t),e,3)}function ns(t,e){return Ao(t.getMilliseconds(),e,3)}function rs(t,e){return ns(t,e)+\\\"000\\\"}function is(t,e){return Ao(t.getMonth()+1,e,2)}function as(t,e){return Ao(t.getMinutes(),e,2)}function os(t,e){return Ao(t.getSeconds(),e,2)}function ss(t){var e=t.getDay();return 0===e?7:e}function cs(t,e){return Ao(Pa.count(Ga(t)-1,t),e,2)}function us(t){var e=t.getDay();return e>=4||0===e?za(t):za.ceil(t)}function ls(t,e){return t=us(t),Ao(za.count(Ga(t),t)+(4===Ga(t).getDay()),e,2)}function hs(t){return t.getDay()}function fs(t,e){return Ao(Ya.count(Ga(t)-1,t),e,2)}function ds(t,e){return Ao(t.getFullYear()%100,e,2)}function ps(t,e){return Ao((t=us(t)).getFullYear()%100,e,2)}function gs(t,e){return Ao(t.getFullYear()%1e4,e,4)}function ys(t,e){var n=t.getDay();return Ao((t=n>=4||0===n?za(t):za.ceil(t)).getFullYear()%1e4,e,4)}function ms(t){var e=t.getTimezoneOffset();return(e>0?\\\"-\\\":(e*=-1,\\\"+\\\"))+Ao(e/60|0,\\\"0\\\",2)+Ao(e%60,\\\"0\\\",2)}function vs(t,e){return Ao(t.getUTCDate(),e,2)}function bs(t,e){return Ao(t.getUTCHours(),e,2)}function _s(t,e){return Ao(t.getUTCHours()%12||12,e,2)}function xs(t,e){return Ao(1+to.count(fo(t),t),e,3)}function ws(t,e){return Ao(t.getUTCMilliseconds(),e,3)}function ks(t,e){return ws(t,e)+\\\"000\\\"}function Ts(t,e){return Ao(t.getUTCMonth()+1,e,2)}function Cs(t,e){return Ao(t.getUTCMinutes(),e,2)}function Es(t,e){return Ao(t.getUTCSeconds(),e,2)}function Ss(t){var e=t.getUTCDay();return 0===e?7:e}function As(t,e){return Ao(no.count(fo(t)-1,t),e,2)}function Ms(t){var e=t.getUTCDay();return e>=4||0===e?oo(t):oo.ceil(t)}function Ns(t,e){return t=Ms(t),Ao(oo.count(fo(t),t)+(4===fo(t).getUTCDay()),e,2)}function Ds(t){return t.getUTCDay()}function Bs(t,e){return Ao(ro.count(fo(t)-1,t),e,2)}function Ls(t,e){return Ao(t.getUTCFullYear()%100,e,2)}function Os(t,e){return Ao((t=Ms(t)).getUTCFullYear()%100,e,2)}function Is(t,e){return Ao(t.getUTCFullYear()%1e4,e,4)}function Rs(t,e){var n=t.getUTCDay();return Ao((t=n>=4||0===n?oo(t):oo.ceil(t)).getUTCFullYear()%1e4,e,4)}function Fs(){return\\\"+0000\\\"}function Ps(){return\\\"%\\\"}function Ys(t){return+t}function js(t){return Math.floor(+t/1e3)}function Us(t){return new Date(t)}function zs(t){return t instanceof Date?+t:+new Date(+t)}function $s(t,e,n,r,i,a,o,s,c,u){var l=Xi(),h=l.invert,f=l.domain,d=u(\\\".%L\\\"),p=u(\\\":%S\\\"),g=u(\\\"%I:%M\\\"),y=u(\\\"%I %p\\\"),m=u(\\\"%a %d\\\"),v=u(\\\"%b %d\\\"),b=u(\\\"%B\\\"),_=u(\\\"%Y\\\");function x(t){return(c(t)=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Ys,s:js,S:os,u:ss,U:cs,V:ls,w:hs,W:fs,x:null,X:null,y:ds,Y:gs,Z:ms,\\\"%\\\":Ps},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:vs,e:vs,f:ks,g:Os,G:Rs,H:bs,I:_s,j:xs,L:ws,m:Ts,M:Cs,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Ys,s:js,S:Es,u:Ss,U:As,V:Ns,w:Ds,W:Bs,x:null,X:null,y:Ls,Y:Is,Z:Fs,\\\"%\\\":Ps},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return T(t,e,n,r)},d:zo,e:zo,f:Go,g:Po,G:Fo,H:qo,I:qo,j:$o,L:Vo,m:Uo,M:Ho,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:jo,Q:Zo,s:Qo,S:Wo,u:Lo,U:Oo,V:Io,w:Bo,W:Ro,x:function(t,e,r){return T(t,n,e,r)},X:function(t,e,n){return T(t,r,e,n)},y:Po,Y:Fo,Z:Yo,\\\"%\\\":Xo};function w(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;\\\"w\\\"in a||(a.w=1),\\\"Z\\\"in a?(i=(r=_o(xo(a.y,0,1))).getUTCDay(),r=i>4||0===i?ro.ceil(r):ro(r),r=to.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=bo(xo(a.y,0,1))).getDay(),r=i>4||0===i?Ya.ceil(r):Ya(r),r=Ra.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else(\\\"W\\\"in a||\\\"U\\\"in a)&&(\\\"w\\\"in a||(a.w=\\\"u\\\"in a?a.u%7:\\\"W\\\"in a?1:0),i=\\\"Z\\\"in a?_o(xo(a.y,0,1)).getUTCDay():bo(xo(a.y,0,1)).getDay(),a.m=0,a.d=\\\"W\\\"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return\\\"Z\\\"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,_o(a)):bo(a)}}function T(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in To?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+=\\\"\\\",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+=\\\"\\\",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+=\\\"\\\",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+=\\\"\\\",!0);return e.toString=function(){return t},e}}}({dateTime:\\\"%x, %X\\\",date:\\\"%-m/%-d/%Y\\\",time:\\\"%-I:%M:%S %p\\\",periods:[\\\"AM\\\",\\\"PM\\\"],days:[\\\"Sunday\\\",\\\"Monday\\\",\\\"Tuesday\\\",\\\"Wednesday\\\",\\\"Thursday\\\",\\\"Friday\\\",\\\"Saturday\\\"],shortDays:[\\\"Sun\\\",\\\"Mon\\\",\\\"Tue\\\",\\\"Wed\\\",\\\"Thu\\\",\\\"Fri\\\",\\\"Sat\\\"],months:[\\\"January\\\",\\\"February\\\",\\\"March\\\",\\\"April\\\",\\\"May\\\",\\\"June\\\",\\\"July\\\",\\\"August\\\",\\\"September\\\",\\\"October\\\",\\\"November\\\",\\\"December\\\"],shortMonths:[\\\"Jan\\\",\\\"Feb\\\",\\\"Mar\\\",\\\"Apr\\\",\\\"May\\\",\\\"Jun\\\",\\\"Jul\\\",\\\"Aug\\\",\\\"Sep\\\",\\\"Oct\\\",\\\"Nov\\\",\\\"Dec\\\"]}),ko=wo.format,wo.parse,wo.utcFormat,wo.utcParse;var Qs=Array.prototype.find;function Ks(){return this.firstElementChild}var Js=Array.prototype.filter;function tc(){return Array.from(this.children)}function ec(t){return new Array(t.length)}function nc(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function rc(t){return function(){return t}}function ic(t,e,n,r,i,a){for(var o,s=0,c=e.length,u=a.length;se?1:t>=e?0:NaN}nc.prototype={constructor:nc,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var uc=\\\"http://www.w3.org/1999/xhtml\\\";const lc={svg:\\\"http://www.w3.org/2000/svg\\\",xhtml:uc,xlink:\\\"http://www.w3.org/1999/xlink\\\",xml:\\\"http://www.w3.org/XML/1998/namespace\\\",xmlns:\\\"http://www.w3.org/2000/xmlns/\\\"};function hc(t){var e=t+=\\\"\\\",n=e.indexOf(\\\":\\\");return n>=0&&\\\"xmlns\\\"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),lc.hasOwnProperty(e)?{space:lc[e],local:t}:t}function fc(t){return function(){this.removeAttribute(t)}}function dc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function pc(t,e){return function(){this.setAttribute(t,e)}}function gc(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function yc(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function mc(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function vc(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function bc(t){return function(){this.style.removeProperty(t)}}function _c(t,e,n){return function(){this.style.setProperty(t,e,n)}}function xc(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function wc(t,e){return t.style.getPropertyValue(e)||vc(t).getComputedStyle(t,null).getPropertyValue(e)}function kc(t){return function(){delete this[t]}}function Tc(t,e){return function(){this[t]=e}}function Cc(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ec(t){return t.trim().split(/^|\\\\s+/)}function Sc(t){return t.classList||new Ac(t)}function Ac(t){this._node=t,this._names=Ec(t.getAttribute(\\\"class\\\")||\\\"\\\")}function Mc(t,e){for(var n=Sc(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Zc(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute(\\\"class\\\",this._names.join(\\\" \\\")))},contains:function(t){return this._names.indexOf(t)>=0}};var eu=[null];function nu(t,e){this._groups=t,this._parents=e}function ru(){return new nu([[document.documentElement]],eu)}nu.prototype=ru.prototype={constructor:nu,select:function(t){\\\"function\\\"!=typeof t&&(t=Hs(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=x&&(x=_+1);!(b=y[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=cc);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?bc:\\\"function\\\"==typeof e?xc:_c)(t,e,null==n?\\\"\\\":n)):wc(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?kc:\\\"function\\\"==typeof e?Cc:Tc)(t,e)):this.node()[t]},classed:function(t,e){var n=Ec(t+\\\"\\\");if(arguments.length<2){for(var r=Sc(this.node()),i=-1,a=n.length;++iuu)if(Math.abs(l*s-c*u)>uu&&i){var f=n-a,d=r-o,p=s*s+c*c,g=f*f+d*d,y=Math.sqrt(p),m=Math.sqrt(h),v=i*Math.tan((su-Math.acos((p+h-g)/(2*y*m)))/2),b=v/m,_=v/y;Math.abs(b-1)>uu&&(this._+=\\\"L\\\"+(t+b*u)+\\\",\\\"+(e+b*l)),this._+=\\\"A\\\"+i+\\\",\\\"+i+\\\",0,0,\\\"+ +(l*f>u*d)+\\\",\\\"+(this._x1=t+_*s)+\\\",\\\"+(this._y1=e+_*c)}else this._+=\\\"L\\\"+(this._x1=t)+\\\",\\\"+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,u=e+s,l=1^a,h=a?r-i:i-r;if(n<0)throw new Error(\\\"negative radius: \\\"+n);null===this._x1?this._+=\\\"M\\\"+c+\\\",\\\"+u:(Math.abs(this._x1-c)>uu||Math.abs(this._y1-u)>uu)&&(this._+=\\\"L\\\"+c+\\\",\\\"+u),n&&(h<0&&(h=h%cu+cu),h>lu?this._+=\\\"A\\\"+n+\\\",\\\"+n+\\\",0,1,\\\"+l+\\\",\\\"+(t-o)+\\\",\\\"+(e-s)+\\\"A\\\"+n+\\\",\\\"+n+\\\",0,1,\\\"+l+\\\",\\\"+(this._x1=c)+\\\",\\\"+(this._y1=u):h>uu&&(this._+=\\\"A\\\"+n+\\\",\\\"+n+\\\",0,\\\"+ +(h>=su)+\\\",\\\"+l+\\\",\\\"+(this._x1=t+n*Math.cos(i))+\\\",\\\"+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+=\\\"M\\\"+(this._x0=this._x1=+t)+\\\",\\\"+(this._y0=this._y1=+e)+\\\"h\\\"+ +n+\\\"v\\\"+ +r+\\\"h\\\"+-n+\\\"Z\\\"},toString:function(){return this._}};const du=fu;function pu(t){return function(){return t}}var gu=Math.abs,yu=Math.atan2,mu=Math.cos,vu=Math.max,bu=Math.min,_u=Math.sin,xu=Math.sqrt,wu=1e-12,ku=Math.PI,Tu=ku/2,Cu=2*ku;function Eu(t){return t>1?0:t<-1?ku:Math.acos(t)}function Su(t){return t>=1?Tu:t<=-1?-Tu:Math.asin(t)}function Au(t){return t.innerRadius}function Mu(t){return t.outerRadius}function Nu(t){return t.startAngle}function Du(t){return t.endAngle}function Bu(t){return t&&t.padAngle}function Lu(t,e,n,r,i,a,o,s){var c=n-t,u=r-e,l=o-i,h=s-a,f=h*c-l*u;if(!(f*fN*N+D*D&&(T=E,C=S),{cx:T,cy:C,x01:-l,y01:-h,x11:T*(i/x-1),y11:C*(i/x-1)}}function Iu(){var t=Au,e=Mu,n=pu(0),r=null,i=Nu,a=Du,o=Bu,s=null;function c(){var c,u,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-Tu,d=a.apply(this,arguments)-Tu,p=gu(d-f),g=d>f;if(s||(s=c=du()),hwu)if(p>Cu-wu)s.moveTo(h*mu(f),h*_u(f)),s.arc(0,0,h,f,d,!g),l>wu&&(s.moveTo(l*mu(d),l*_u(d)),s.arc(0,0,l,d,f,g));else{var y,m,v=f,b=d,_=f,x=d,w=p,k=p,T=o.apply(this,arguments)/2,C=T>wu&&(r?+r.apply(this,arguments):xu(l*l+h*h)),E=bu(gu(h-l)/2,+n.apply(this,arguments)),S=E,A=E;if(C>wu){var M=Su(C/l*_u(T)),N=Su(C/h*_u(T));(w-=2*M)>wu?(_+=M*=g?1:-1,x-=M):(w=0,_=x=(f+d)/2),(k-=2*N)>wu?(v+=N*=g?1:-1,b-=N):(k=0,v=b=(f+d)/2)}var D=h*mu(v),B=h*_u(v),L=l*mu(x),O=l*_u(x);if(E>wu){var I,R=h*mu(b),F=h*_u(b),P=l*mu(_),Y=l*_u(_);if(pwu?A>wu?(y=Ou(P,Y,D,B,h,A,g),m=Ou(R,F,L,O,h,A,g),s.moveTo(y.cx+y.x01,y.cy+y.y01),Awu&&w>wu?S>wu?(y=Ou(L,O,R,F,l,-S,g),m=Ou(D,B,P,Y,l,-S,g),s.lineTo(y.cx+y.x01,y.cy+y.y01),St?1:e>=t?0:NaN}function $u(t){return t}function qu(){}function Hu(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Wu(t){this._context=t}function Vu(t){return new Wu(t)}function Gu(t){this._context=t}function Xu(t){this._context=t}function Zu(t){this._context=t}function Qu(t){return t<0?-1:1}function Ku(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Qu(a)+Qu(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Ju(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function tl(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function el(t){this._context=t}function nl(t){this._context=new rl(t)}function rl(t){this._context=t}function il(t){this._context=t}function al(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var sl=new Date,cl=new Date;function ul(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return sl.setTime(+e),cl.setTime(+r),t(sl),t(cl),Math.floor(n(sl,cl))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}const ll=864e5,hl=6048e5;function fl(t){return ul((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/hl}))}var dl=fl(0),pl=fl(1),gl=fl(2),yl=fl(3),ml=fl(4),vl=fl(5),bl=fl(6),_l=(dl.range,pl.range,gl.range,yl.range,ml.range,vl.range,bl.range,ul((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/ll}),(function(t){return t.getUTCDate()-1})));const xl=_l;function wl(t){return ul((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/hl}))}_l.range;var kl=wl(0),Tl=wl(1),Cl=wl(2),El=wl(3),Sl=wl(4),Al=wl(5),Ml=wl(6),Nl=(kl.range,Tl.range,Cl.range,El.range,Sl.range,Al.range,Ml.range,ul((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/ll),(t=>t.getDate()-1)));const Dl=Nl;Nl.range;var Bl=ul((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Bl.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ul((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Ll=Bl;Bl.range;var Ol=ul((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Ol.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ul((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Il=Ol;function Rl(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Fl(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Pl(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}Ol.range;var Yl,jl,Ul={\\\"-\\\":\\\"\\\",_:\\\" \\\",0:\\\"0\\\"},zl=/^\\\\s*\\\\d+/,$l=/^%/,ql=/[\\\\\\\\^$*+?|[\\\\]().{}]/g;function Hl(t,e,n){var r=t<0?\\\"-\\\":\\\"\\\",i=(r?-t:t)+\\\"\\\",a=i.length;return r+(a[t.toLowerCase(),e])))}function Xl(t,e,n){var r=zl.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Zl(t,e,n){var r=zl.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ql(t,e,n){var r=zl.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Kl(t,e,n){var r=zl.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Jl(t,e,n){var r=zl.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function th(t,e,n){var r=zl.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function eh(t,e,n){var r=zl.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function nh(t,e,n){var r=/^(Z)|([+-]\\\\d\\\\d)(?::?(\\\\d\\\\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||\\\"00\\\")),n+r[0].length):-1}function rh(t,e,n){var r=zl.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function ih(t,e,n){var r=zl.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ah(t,e,n){var r=zl.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function oh(t,e,n){var r=zl.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function sh(t,e,n){var r=zl.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ch(t,e,n){var r=zl.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function uh(t,e,n){var r=zl.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function lh(t,e,n){var r=zl.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function hh(t,e,n){var r=zl.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fh(t,e,n){var r=$l.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function dh(t,e,n){var r=zl.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function ph(t,e,n){var r=zl.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function gh(t,e){return Hl(t.getDate(),e,2)}function yh(t,e){return Hl(t.getHours(),e,2)}function mh(t,e){return Hl(t.getHours()%12||12,e,2)}function vh(t,e){return Hl(1+Dl.count(Ll(t),t),e,3)}function bh(t,e){return Hl(t.getMilliseconds(),e,3)}function _h(t,e){return bh(t,e)+\\\"000\\\"}function xh(t,e){return Hl(t.getMonth()+1,e,2)}function wh(t,e){return Hl(t.getMinutes(),e,2)}function kh(t,e){return Hl(t.getSeconds(),e,2)}function Th(t){var e=t.getDay();return 0===e?7:e}function Ch(t,e){return Hl(kl.count(Ll(t)-1,t),e,2)}function Eh(t){var e=t.getDay();return e>=4||0===e?Sl(t):Sl.ceil(t)}function Sh(t,e){return t=Eh(t),Hl(Sl.count(Ll(t),t)+(4===Ll(t).getDay()),e,2)}function Ah(t){return t.getDay()}function Mh(t,e){return Hl(Tl.count(Ll(t)-1,t),e,2)}function Nh(t,e){return Hl(t.getFullYear()%100,e,2)}function Dh(t,e){return Hl((t=Eh(t)).getFullYear()%100,e,2)}function Bh(t,e){return Hl(t.getFullYear()%1e4,e,4)}function Lh(t,e){var n=t.getDay();return Hl((t=n>=4||0===n?Sl(t):Sl.ceil(t)).getFullYear()%1e4,e,4)}function Oh(t){var e=t.getTimezoneOffset();return(e>0?\\\"-\\\":(e*=-1,\\\"+\\\"))+Hl(e/60|0,\\\"0\\\",2)+Hl(e%60,\\\"0\\\",2)}function Ih(t,e){return Hl(t.getUTCDate(),e,2)}function Rh(t,e){return Hl(t.getUTCHours(),e,2)}function Fh(t,e){return Hl(t.getUTCHours()%12||12,e,2)}function Ph(t,e){return Hl(1+xl.count(Il(t),t),e,3)}function Yh(t,e){return Hl(t.getUTCMilliseconds(),e,3)}function jh(t,e){return Yh(t,e)+\\\"000\\\"}function Uh(t,e){return Hl(t.getUTCMonth()+1,e,2)}function zh(t,e){return Hl(t.getUTCMinutes(),e,2)}function $h(t,e){return Hl(t.getUTCSeconds(),e,2)}function qh(t){var e=t.getUTCDay();return 0===e?7:e}function Hh(t,e){return Hl(dl.count(Il(t)-1,t),e,2)}function Wh(t){var e=t.getUTCDay();return e>=4||0===e?ml(t):ml.ceil(t)}function Vh(t,e){return t=Wh(t),Hl(ml.count(Il(t),t)+(4===Il(t).getUTCDay()),e,2)}function Gh(t){return t.getUTCDay()}function Xh(t,e){return Hl(pl.count(Il(t)-1,t),e,2)}function Zh(t,e){return Hl(t.getUTCFullYear()%100,e,2)}function Qh(t,e){return Hl((t=Wh(t)).getUTCFullYear()%100,e,2)}function Kh(t,e){return Hl(t.getUTCFullYear()%1e4,e,4)}function Jh(t,e){var n=t.getUTCDay();return Hl((t=n>=4||0===n?ml(t):ml.ceil(t)).getUTCFullYear()%1e4,e,4)}function tf(){return\\\"+0000\\\"}function ef(){return\\\"%\\\"}function nf(t){return+t}function rf(t){return Math.floor(+t/1e3)}Yl=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,u=Vl(i),l=Gl(i),h=Vl(a),f=Gl(a),d=Vl(o),p=Gl(o),g=Vl(s),y=Gl(s),m=Vl(c),v=Gl(c),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:gh,e:gh,f:_h,g:Dh,G:Lh,H:yh,I:mh,j:vh,L:bh,m:xh,M:wh,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:nf,s:rf,S:kh,u:Th,U:Ch,V:Sh,w:Ah,W:Mh,x:null,X:null,y:Nh,Y:Bh,Z:Oh,\\\"%\\\":ef},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Ih,e:Ih,f:jh,g:Qh,G:Jh,H:Rh,I:Fh,j:Ph,L:Yh,m:Uh,M:zh,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:nf,s:rf,S:$h,u:qh,U:Hh,V:Vh,w:Gh,W:Xh,x:null,X:null,y:Zh,Y:Kh,Z:tf,\\\"%\\\":ef},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return T(t,e,n,r)},d:ah,e:ah,f:hh,g:eh,G:th,H:sh,I:sh,j:oh,L:lh,m:ih,M:ch,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:rh,Q:dh,s:ph,S:uh,u:Zl,U:Ql,V:Kl,w:Xl,W:Jl,x:function(t,e,r){return T(t,n,e,r)},X:function(t,e,n){return T(t,r,e,n)},y:eh,Y:th,Z:nh,\\\"%\\\":fh};function w(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;\\\"w\\\"in a||(a.w=1),\\\"Z\\\"in a?(i=(r=Fl(Pl(a.y,0,1))).getUTCDay(),r=i>4||0===i?pl.ceil(r):pl(r),r=xl.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=Rl(Pl(a.y,0,1))).getDay(),r=i>4||0===i?Tl.ceil(r):Tl(r),r=Dl.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else(\\\"W\\\"in a||\\\"U\\\"in a)&&(\\\"w\\\"in a||(a.w=\\\"u\\\"in a?a.u%7:\\\"W\\\"in a?1:0),i=\\\"Z\\\"in a?Fl(Pl(a.y,0,1)).getUTCDay():Rl(Pl(a.y,0,1)).getDay(),a.m=0,a.d=\\\"W\\\"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return\\\"Z\\\"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Fl(a)):Rl(a)}}function T(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in Ul?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+=\\\"\\\",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+=\\\"\\\",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+=\\\"\\\",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+=\\\"\\\",!0);return e.toString=function(){return t},e}}}({dateTime:\\\"%x, %X\\\",date:\\\"%-m/%-d/%Y\\\",time:\\\"%-I:%M:%S %p\\\",periods:[\\\"AM\\\",\\\"PM\\\"],days:[\\\"Sunday\\\",\\\"Monday\\\",\\\"Tuesday\\\",\\\"Wednesday\\\",\\\"Thursday\\\",\\\"Friday\\\",\\\"Saturday\\\"],shortDays:[\\\"Sun\\\",\\\"Mon\\\",\\\"Tue\\\",\\\"Wed\\\",\\\"Thu\\\",\\\"Fri\\\",\\\"Sat\\\"],months:[\\\"January\\\",\\\"February\\\",\\\"March\\\",\\\"April\\\",\\\"May\\\",\\\"June\\\",\\\"July\\\",\\\"August\\\",\\\"September\\\",\\\"October\\\",\\\"November\\\",\\\"December\\\"],shortMonths:[\\\"Jan\\\",\\\"Feb\\\",\\\"Mar\\\",\\\"Apr\\\",\\\"May\\\",\\\"Jun\\\",\\\"Jul\\\",\\\"Aug\\\",\\\"Sep\\\",\\\"Oct\\\",\\\"Nov\\\",\\\"Dec\\\"]}),jl=Yl.format,Yl.parse,Yl.utcFormat,Yl.utcParse;var af={value:()=>{}};function of(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error(\\\"unknown type: \\\"+t);return{type:t,name:n}}))}function uf(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a=0&&e._call.call(void 0,t),e=e._next;--pf}()}finally{pf=0,function(){for(var t,e,n=ff,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ff=e);df=t,Af(r)}(),vf=0}}function Sf(){var t=_f.now(),e=t-mf;e>1e3&&(bf-=e,mf=t)}function Af(t){pf||(gf&&(gf=clearTimeout(gf)),t-vf>24?(t<1/0&&(gf=setTimeout(Ef,t-_f.now()-bf)),yf&&(yf=clearInterval(yf))):(yf||(mf=_f.now(),yf=setInterval(Sf,1e3)),pf=1,xf(Ef)))}function Mf(t,e,n){var r=new Tf;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Tf.prototype=Cf.prototype={constructor:Tf,restart:function(t,e,n){if(\\\"function\\\"!=typeof t)throw new TypeError(\\\"callback is not a function\\\");n=(null==n?wf():+n)+(null==e?0:+e),this._next||df===this||(df?df._next=this:ff=this,df=this),this._call=t,this._time=n,Af()},stop:function(){this._call&&(this._call=null,this._time=1/0,Af())}};var Nf=hf(\\\"start\\\",\\\"end\\\",\\\"cancel\\\",\\\"interrupt\\\"),Df=[];function Bf(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return Mf(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call(\\\"interrupt\\\",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error(\\\"too late; already scheduled\\\");return n}function Of(t,e){var n=If(t,e);if(n.state>3)throw new Error(\\\"too late; already running\\\");return n}function If(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error(\\\"transition not found\\\");return n}function Rf(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var Ff,Pf=180/Math.PI,Yf={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function jf(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+\\\"rotate(\\\",null,r)-2,x:Rf(t,e)})):e&&n.push(i(n)+\\\"rotate(\\\"+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+\\\"skewX(\\\",null,r)-2,x:Rf(t,e)}):e&&n.push(i(n)+\\\"skewX(\\\"+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+\\\"scale(\\\",null,\\\",\\\",null,\\\")\\\");o.push({i:s-4,x:Rf(t,n)},{i:s-2,x:Rf(e,r)})}else 1===n&&1===r||a.push(i(a)+\\\"scale(\\\"+n+\\\",\\\"+r+\\\")\\\")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=ra&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Rf(n,r)})),a=Qf.lastIndex;return a=0&&(t=t.slice(0,e)),!t||\\\"start\\\"===t}))}(e)?Lf:Of;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var yd=iu.prototype.constructor;function md(t){return function(){this.style.removeProperty(t)}}function vd(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function bd(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&vd(t,a,n)),r}return a._value=e,a}function _d(t){return function(e){this.textContent=t.call(this,e)}}function xd(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&_d(r)),e}return r._value=t,r}var wd=0;function kd(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Td(){return++wd}var Cd=iu.prototype;kd.prototype=function(t){return iu().transition(t)}.prototype={constructor:kd,select:function(t){var e=this._name,n=this._id;\\\"function\\\"!=typeof t&&(t=Hs(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?\\\"interrupt\\\":\\\"cancel\\\",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},iu.prototype.transition=function(t){var e,n;t instanceof kd?(e=t._id,t=t._name):(e=Td(),(n=Ed).time=wf(),t=null==t?null:t+\\\"\\\");for(var r=this._groups,i=r.length,a=0;ae?1:t>=e?0:NaN}jd.prototype={constructor:jd,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Vd=\\\"http://www.w3.org/1999/xhtml\\\";const Gd={svg:\\\"http://www.w3.org/2000/svg\\\",xhtml:Vd,xlink:\\\"http://www.w3.org/1999/xlink\\\",xml:\\\"http://www.w3.org/XML/1998/namespace\\\",xmlns:\\\"http://www.w3.org/2000/xmlns/\\\"};function Xd(t){var e=t+=\\\"\\\",n=e.indexOf(\\\":\\\");return n>=0&&\\\"xmlns\\\"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Gd.hasOwnProperty(e)?{space:Gd[e],local:t}:t}function Zd(t){return function(){this.removeAttribute(t)}}function Qd(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Kd(t,e){return function(){this.setAttribute(t,e)}}function Jd(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function tp(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function ep(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function np(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function rp(t){return function(){this.style.removeProperty(t)}}function ip(t,e,n){return function(){this.style.setProperty(t,e,n)}}function ap(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function op(t,e){return t.style.getPropertyValue(e)||np(t).getComputedStyle(t,null).getPropertyValue(e)}function sp(t){return function(){delete this[t]}}function cp(t,e){return function(){this[t]=e}}function up(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function lp(t){return t.trim().split(/^|\\\\s+/)}function hp(t){return t.classList||new fp(t)}function fp(t){this._node=t,this._names=lp(t.getAttribute(\\\"class\\\")||\\\"\\\")}function dp(t,e){for(var n=hp(t),r=-1,i=e.length;++r=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function Op(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=0&&(this._names.splice(e,1),this._node.setAttribute(\\\"class\\\",this._names.join(\\\" \\\")))},contains:function(t){return this._names.indexOf(t)>=0}};var Yp=[null];function jp(t,e){this._groups=t,this._parents=e}function Up(){return new jp([[document.documentElement]],Yp)}jp.prototype=Up.prototype={constructor:jp,select:function(t){\\\"function\\\"!=typeof t&&(t=Md(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=x&&(x=_+1);!(b=y[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Wd);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?rp:\\\"function\\\"==typeof e?ap:ip)(t,e,null==n?\\\"\\\":n)):op(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?sp:\\\"function\\\"==typeof e?up:cp)(t,e)):this.node()[t]},classed:function(t,e){var n=lp(t+\\\"\\\");if(arguments.length<2){for(var r=hp(this.node()),i=-1,a=n.length;++i{}};function qp(){for(var t,e=0,n=arguments.length,r={};e=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error(\\\"unknown type: \\\"+t);return{type:t,name:n}}))}function Vp(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;a=0&&e._call.call(void 0,t),e=e._next;--Kp}()}finally{Kp=0,function(){for(var t,e,n=Zp,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Zp=e);Qp=t,fg(r)}(),ng=0}}function hg(){var t=ig.now(),e=t-eg;e>1e3&&(rg-=e,eg=t)}function fg(t){Kp||(Jp&&(Jp=clearTimeout(Jp)),t-ng>24?(t<1/0&&(Jp=setTimeout(lg,t-ig.now()-rg)),tg&&(tg=clearInterval(tg))):(tg||(eg=ig.now(),tg=setInterval(hg,1e3)),Kp=1,ag(lg)))}function dg(t,e,n){var r=new cg;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}cg.prototype=ug.prototype={constructor:cg,restart:function(t,e,n){if(\\\"function\\\"!=typeof t)throw new TypeError(\\\"callback is not a function\\\");n=(null==n?og():+n)+(null==e?0:+e),this._next||Qp===this||(Qp?Qp._next=this:Zp=this,Qp=this),this._call=t,this._time=n,fg()},stop:function(){this._call&&(this._call=null,this._time=1/0,fg())}};var pg=Xp(\\\"start\\\",\\\"end\\\",\\\"cancel\\\",\\\"interrupt\\\"),gg=[];function yg(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return dg(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call(\\\"interrupt\\\",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error(\\\"too late; already scheduled\\\");return n}function vg(t,e){var n=bg(t,e);if(n.state>3)throw new Error(\\\"too late; already running\\\");return n}function bg(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error(\\\"transition not found\\\");return n}function _g(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var xg,wg=180/Math.PI,kg={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Tg(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+\\\"rotate(\\\",null,r)-2,x:_g(t,e)})):e&&n.push(i(n)+\\\"rotate(\\\"+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+\\\"skewX(\\\",null,r)-2,x:_g(t,e)}):e&&n.push(i(n)+\\\"skewX(\\\"+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+\\\"scale(\\\",null,\\\",\\\",null,\\\")\\\");o.push({i:s-4,x:_g(t,n)},{i:s-2,x:_g(e,r)})}else 1===n&&1===r||a.push(i(a)+\\\"scale(\\\"+n+\\\",\\\"+r+\\\")\\\")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Qg(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Qg(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=jg.exec(t))?new ty(e[1],e[2],e[3],1):(e=Ug.exec(t))?new ty(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=zg.exec(t))?Qg(e[1],e[2],e[3],e[4]):(e=$g.exec(t))?Qg(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=qg.exec(t))?iy(e[1],e[2]/100,e[3]/100,1):(e=Hg.exec(t))?iy(e[1],e[2]/100,e[3]/100,e[4]):Wg.hasOwnProperty(t)?Zg(Wg[t]):\\\"transparent\\\"===t?new ty(NaN,NaN,NaN,0):null}function Zg(t){return new ty(t>>16&255,t>>8&255,255&t,1)}function Qg(t,e,n,r){return r<=0&&(t=e=n=NaN),new ty(t,e,n,r)}function Kg(t){return t instanceof Lg||(t=Xg(t)),t?new ty((t=t.rgb()).r,t.g,t.b,t.opacity):new ty}function Jg(t,e,n,r){return 1===arguments.length?Kg(t):new ty(t,e,n,null==r?1:r)}function ty(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function ey(){return\\\"#\\\"+ry(this.r)+ry(this.g)+ry(this.b)}function ny(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"rgb(\\\":\\\"rgba(\\\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}function ry(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?\\\"0\\\":\\\"\\\")+t.toString(16)}function iy(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new oy(t,e,n,r)}function ay(t){if(t instanceof oy)return new oy(t.h,t.s,t.l,t.opacity);if(t instanceof Lg||(t=Xg(t)),!t)return new oy;if(t instanceof oy)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new oy(o,s,c,t.opacity)}function oy(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function sy(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function cy(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Dg(Lg,Xg,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Vg,formatHex:Vg,formatHsl:function(){return ay(this).formatHsl()},formatRgb:Gg,toString:Gg}),Dg(ty,Jg,Bg(Lg,{brighter:function(t){return t=null==t?Ig:Math.pow(Ig,t),new ty(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Og:Math.pow(Og,t),new ty(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ey,formatHex:ey,formatRgb:ny,toString:ny})),Dg(oy,(function(t,e,n,r){return 1===arguments.length?ay(t):new oy(t,e,n,null==r?1:r)}),Bg(Lg,{brighter:function(t){return t=null==t?Ig:Math.pow(Ig,t),new oy(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Og:Math.pow(Og,t),new oy(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new ty(sy(t>=240?t-240:t+120,i,r),sy(t,i,r),sy(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"hsl(\\\":\\\"hsla(\\\")+(this.h||0)+\\\", \\\"+100*(this.s||0)+\\\"%, \\\"+100*(this.l||0)+\\\"%\\\"+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}}));const uy=t=>()=>t;function ly(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):uy(isNaN(t)?e:t)}const hy=function t(e){var n=function(t){return 1==(t=+t)?ly:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):uy(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Jg(t)).r,(e=Jg(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=ly(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+\\\"\\\"}}return r.gamma=t,r}(1);function fy(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=ra&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:_g(n,r)})),a=py.lastIndex;return a=0&&(t=t.slice(0,e)),!t||\\\"start\\\"===t}))}(e)?mg:vg;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Ly=zp.prototype.constructor;function Oy(t){return function(){this.style.removeProperty(t)}}function Iy(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ry(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Iy(t,a,n)),r}return a._value=e,a}function Fy(t){return function(e){this.textContent=t.call(this,e)}}function Py(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Fy(r)),e}return r._value=t,r}var Yy=0;function jy(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Uy(){return++Yy}var zy=zp.prototype;jy.prototype=function(t){return zp().transition(t)}.prototype={constructor:jy,select:function(t){var e=this._name,n=this._id;\\\"function\\\"!=typeof t&&(t=Md(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?\\\"interrupt\\\":\\\"cancel\\\",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}(this,t)}))},zp.prototype.transition=function(t){var e,n;t instanceof jy?(e=t._id,t=t._name):(e=Uy(),(n=$y).time=og(),t=null==t?null:t+\\\"\\\");for(var r=this._groups,i=r.length,a=0;a0?tm(fm,--lm):0,cm--,10===hm&&(cm=1,sm--),hm}function gm(){return hm=lm2||bm(hm)>3?\\\"\\\":\\\" \\\"}function wm(t,e){for(;--e&&gm()&&!(hm<48||hm>102||hm>57&&hm<65||hm>70&&hm<97););return vm(t,mm()+(e<6&&32==ym()&&32==gm()))}function km(t){for(;gm();)switch(hm){case t:return lm;case 34:case 39:34!==t&&39!==t&&km(hm);break;case 40:41===t&&km(t);break;case 92:gm()}return lm}function Tm(t,e){for(;gm()&&t+hm!==57&&(t+hm!==84||47!==ym()););return\\\"/*\\\"+vm(e,lm-1)+\\\"*\\\"+Zy(47===t?t:gm())}function Cm(t){for(;!bm(ym());)gm();return vm(t,lm)}function Em(t){return function(t){return fm=\\\"\\\",t}(Sm(\\\"\\\",null,null,null,[\\\"\\\"],t=function(t){return sm=cm=1,um=nm(fm=t),lm=0,[]}(t),0,[0],t))}function Sm(t,e,n,r,i,a,o,s,c){for(var u=0,l=0,h=o,f=0,d=0,p=0,g=1,y=1,m=1,v=0,b=\\\"\\\",_=i,x=a,w=r,k=b;y;)switch(p=v,v=gm()){case 40:if(108!=p&&58==k.charCodeAt(h-1)){-1!=Jy(k+=Ky(_m(v),\\\"&\\\",\\\"&\\\\f\\\"),\\\"&\\\\f\\\")&&(m=-1);break}case 34:case 39:case 91:k+=_m(v);break;case 9:case 10:case 13:case 32:k+=xm(p);break;case 92:k+=wm(mm()-1,7);continue;case 47:switch(ym()){case 42:case 47:im(Mm(Tm(gm(),mm()),e,n),c);break;default:k+=\\\"/\\\"}break;case 123*g:s[u++]=nm(k)*m;case 125*g:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+l:d>0&&nm(k)-h&&im(d>32?Nm(k+\\\";\\\",r,n,h-1):Nm(Ky(k,\\\" \\\",\\\"\\\")+\\\";\\\",r,n,h-2),c);break;case 59:k+=\\\";\\\";default:if(im(w=Am(k,e,n,u,l,i,s,b,_=[],x=[],h),a),123===v)if(0===l)Sm(k,e,w,w,_,a,h,s,x);else switch(f){case 100:case 109:case 115:Sm(t,w,w,r&&im(Am(t,w,w,0,0,i,s,b,i,_=[],h),x),i,x,h,s,r?_:x);break;default:Sm(k,w,w,w,[\\\"\\\"],x,0,s,x)}}u=l=d=0,g=m=1,b=k=\\\"\\\",h=o;break;case 58:h=1+nm(k),d=p;default:if(g<1)if(123==v)--g;else if(125==v&&0==g++&&125==pm())continue;switch(k+=Zy(v),v*g){case 38:m=l>0?1:(k+=\\\"\\\\f\\\",-1);break;case 44:s[u++]=(nm(k)-1)*m,m=1;break;case 64:45===ym()&&(k+=_m(gm())),f=ym(),l=h=nm(b=k+=Cm(mm())),v++;break;case 45:45===p&&2==nm(k)&&(g=0)}}return a}function Am(t,e,n,r,i,a,o,s,c,u,l){for(var h=i-1,f=0===i?a:[\\\"\\\"],d=rm(f),p=0,g=0,y=0;p0?f[m]+\\\" \\\"+v:Ky(v,/&\\\\f/g,f[m])))&&(c[y++]=b);return dm(t,e,n,0===i?Vy:s,c,u,l)}function Mm(t,e,n){return dm(t,e,n,Wy,Zy(hm),em(t,2,-2),0)}function Nm(t,e,n,r){return dm(t,e,n,Gy,em(t,0,r),em(t,r+1,-1),r)}const Dm=\\\"9.1.1\\\";var Bm=n(7967),Lm=n(7856),Om=n.n(Lm),Im=function(t){var e=t.replace(/\\\\\\\\u[\\\\dA-F]{4}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\\\\\\\u/g,\\\"\\\"),16))}));return e=(e=(e=e.replace(/\\\\\\\\x([0-9a-f]{2})/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}))).replace(/\\\\\\\\[\\\\d\\\\d\\\\d]{3}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\\\\\\\/g,\\\"\\\"),8))}))).replace(/\\\\\\\\[\\\\d\\\\d\\\\d]{2}/gi,(function(t){return String.fromCharCode(parseInt(t.replace(/\\\\\\\\/g,\\\"\\\"),8))}))},Rm=function(t){for(var e=\\\"\\\",n=0;n>=0;){if(!((n=t.indexOf(\\\"=0)){e+=t,n=-1;break}e+=t.substr(0,n),(n=(t=t.substr(n+1)).indexOf(\\\"<\\\\/script>\\\"))>=0&&(n+=9,t=t.substr(n))}var r=Im(e);return(r=(r=(r=(r=r.replaceAll(/script>/gi,\\\"#\\\")).replaceAll(/javascript:/gi,\\\"#\\\")).replaceAll(/javascript&colon/gi,\\\"#\\\")).replaceAll(/onerror=/gi,\\\"onerror:\\\")).replaceAll(/')}else\\\"loose\\\"!==s.securityLevel&&(T=Om().sanitize(T,{ADD_TAGS:[\\\"foreignobject\\\"],ADD_ATTR:[\\\"dominant-baseline\\\"]}));if(void 0!==n)switch(g){case\\\"flowchart\\\":case\\\"flowchart-v2\\\":n(T,Gx.bindFunctions);break;case\\\"gantt\\\":n(T,Qw.bindFunctions);break;case\\\"class\\\":case\\\"classDiagram\\\":n(T,Zb.bindFunctions);break;default:n(T)}else o.debug(\\\"CB = undefined!\\\");IT.forEach((function(t){t()})),IT=[];var S=\\\"sandbox\\\"===s.securityLevel?\\\"#i\\\"+t:\\\"#d\\\"+t,A=au(S).node();return null!==A&&\\\"function\\\"==typeof A.remove&&au(S).node().remove(),T},parse:function(t){t+=\\\"\\\\n\\\";var e=wb(),n=db.detectInit(t,e);n&&o.info(\\\"reinit \\\",n);var r,i=db.detectType(t,e);switch(o.debug(\\\"Type \\\"+i),i){case\\\"gitGraph\\\":wk.clear(),(r=Tk()).parser.yy=wk;break;case\\\"flowchart\\\":case\\\"flowchart-v2\\\":Gx.clear(),(r=Zx()).parser.yy=Gx;break;case\\\"sequence\\\":OT.clear(),(r=pT()).parser.yy=OT;break;case\\\"gantt\\\":(r=ek()).parser.yy=Qw;break;case\\\"class\\\":case\\\"classDiagram\\\":(r=n_()).parser.yy=Zb;break;case\\\"state\\\":case\\\"stateDiagram\\\":(r=EC()).parser.yy=UC;break;case\\\"info\\\":o.debug(\\\"info info info\\\"),(r=Fk()).parser.yy=Ik;break;case\\\"pie\\\":o.debug(\\\"pie\\\"),(r=Uk()).parser.yy=Hk;break;case\\\"er\\\":o.debug(\\\"er\\\"),(r=dx()).parser.yy=hx;break;case\\\"journey\\\":o.debug(\\\"Journey\\\"),(r=pE()).parser.yy=fE;break;case\\\"requirement\\\":case\\\"requirementDiagram\\\":o.debug(\\\"RequirementDiagram\\\"),(r=Zk()).parser.yy=nT}return r.parser.yy.graphType=i,r.parser.yy.parseError=function(t,e){throw{str:t,hash:e}},r.parse(t),r},parseDirective:function(t,e,n,r){try{if(void 0!==e)switch(e=e.trim(),n){case\\\"open_directive\\\":PE={};break;case\\\"type_directive\\\":PE.type=e.toLowerCase();break;case\\\"arg_directive\\\":PE.args=JSON.parse(e);break;case\\\"close_directive\\\":(function(t,e,n){switch(o.debug(\\\"Directive type=\\\".concat(e.type,\\\" with args:\\\"),e.args),e.type){case\\\"init\\\":case\\\"initialize\\\":[\\\"config\\\"].forEach((function(t){void 0!==e.args[t]&&(\\\"flowchart-v2\\\"===n&&(n=\\\"flowchart\\\"),e.args[n]=e.args[t],delete e.args[t])})),o.debug(\\\"sanitize in handleDirective\\\",e.args),hb(e.args),o.debug(\\\"sanitize in handleDirective (done)\\\",e.args),e.args,Tb(e.args);break;case\\\"wrap\\\":case\\\"nowrap\\\":t&&t.setWrap&&t.setWrap(\\\"wrap\\\"===e.type);break;case\\\"themeCss\\\":o.warn(\\\"themeCss encountered\\\");break;default:o.warn(\\\"Unhandled directive: source: '%%{\\\".concat(e.type,\\\": \\\").concat(JSON.stringify(e.args?e.args:{}),\\\"}%%\\\"),e)}})(t,PE,r),PE=null}}catch(t){o.error(\\\"Error while rendering sequenceDiagram directive: \\\".concat(e,\\\" jison context: \\\").concat(n)),o.error(t.message)}},initialize:function(t){t&&t.fontFamily&&(t.themeVariables&&t.themeVariables.fontFamily||(t.themeVariables={fontFamily:t.fontFamily})),function(t){gb=rb({},t)}(t),t&&t.theme&&Mv[t.theme]?t.themeVariables=Mv[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=Mv.default.getThemeVariables(t.themeVariables));var e=\\\"object\\\"===RE(t)?function(t){return mb=rb({},yb),mb=rb(mb,t),t.theme&&Mv[t.theme]&&(mb.themeVariables=Mv[t.theme].getThemeVariables(t.themeVariables)),bb=_b(mb,vb),mb}(t):xb();YE(e),s(e.logLevel)},reinitialize:function(){},getConfig:wb,setConfig:function(t){return rb(bb,t),wb()},getSiteConfig:xb,updateSiteConfig:function(t){return mb=rb(mb,t),_b(mb,vb),mb},reset:function(){Cb()},globalReset:function(){Cb(),YE(wb())},defaultConfig:yb});s(wb().logLevel),Cb(wb());const UE=jE;var zE=function(){var t,e,n=UE.getConfig();arguments.length>=2?(void 0!==arguments[0]&&(qE.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],\\\"function\\\"==typeof arguments[arguments.length-1]?(e=arguments[arguments.length-1],o.debug(\\\"Callback function found\\\")):void 0!==n.mermaid&&(\\\"function\\\"==typeof n.mermaid.callback?(e=n.mermaid.callback,o.debug(\\\"Callback function found\\\")):o.debug(\\\"No Callback function found\\\")),t=void 0===t?document.querySelectorAll(\\\".mermaid\\\"):\\\"string\\\"==typeof t?document.querySelectorAll(t):t instanceof window.Node?[t]:t,o.debug(\\\"Start On Load before: \\\"+qE.startOnLoad),void 0!==qE.startOnLoad&&(o.debug(\\\"Start On Load inner: \\\"+qE.startOnLoad),UE.updateSiteConfig({startOnLoad:qE.startOnLoad})),void 0!==qE.ganttConfig&&UE.updateSiteConfig({gantt:qE.ganttConfig});for(var r,i=new db.initIdGeneratior(n.deterministicIds,n.deterministicIDSeed),a=function(n){var a=t[n];if(a.getAttribute(\\\"data-processed\\\"))return\\\"continue\\\";a.setAttribute(\\\"data-processed\\\",!0);var s=\\\"mermaid-\\\".concat(i.next());r=a.innerHTML,r=db.entityDecode(r).trim().replace(//gi,\\\"
\\\");var c=db.detectInit(r);c&&o.debug(\\\"Detected early reinit: \\\",c),UE.render(s,r,(function(t,n){a.innerHTML=t,void 0!==e&&e(s),n&&n(a)}),a)},s=0;s{t.exports={graphlib:n(6614),dagre:n(1463),intersect:n(8114),render:n(5787),util:n(8355),version:n(5689)}},9144:(t,e,n)=>{var r=n(8355);function i(t,e,n,i){var a=t.append(\\\"marker\\\").attr(\\\"id\\\",e).attr(\\\"viewBox\\\",\\\"0 0 10 10\\\").attr(\\\"refX\\\",9).attr(\\\"refY\\\",5).attr(\\\"markerUnits\\\",\\\"strokeWidth\\\").attr(\\\"markerWidth\\\",8).attr(\\\"markerHeight\\\",6).attr(\\\"orient\\\",\\\"auto\\\").append(\\\"path\\\").attr(\\\"d\\\",\\\"M 0 0 L 10 5 L 0 10 z\\\").style(\\\"stroke-width\\\",1).style(\\\"stroke-dasharray\\\",\\\"1,0\\\");r.applyStyle(a,n[i+\\\"Style\\\"]),n[i+\\\"Class\\\"]&&a.attr(\\\"class\\\",n[i+\\\"Class\\\"])}t.exports={default:i,normal:i,vee:function(t,e,n,i){var a=t.append(\\\"marker\\\").attr(\\\"id\\\",e).attr(\\\"viewBox\\\",\\\"0 0 10 10\\\").attr(\\\"refX\\\",9).attr(\\\"refY\\\",5).attr(\\\"markerUnits\\\",\\\"strokeWidth\\\").attr(\\\"markerWidth\\\",8).attr(\\\"markerHeight\\\",6).attr(\\\"orient\\\",\\\"auto\\\").append(\\\"path\\\").attr(\\\"d\\\",\\\"M 0 0 L 10 5 L 0 10 L 4 5 z\\\").style(\\\"stroke-width\\\",1).style(\\\"stroke-dasharray\\\",\\\"1,0\\\");r.applyStyle(a,n[i+\\\"Style\\\"]),n[i+\\\"Class\\\"]&&a.attr(\\\"class\\\",n[i+\\\"Class\\\"])},undirected:function(t,e,n,i){var a=t.append(\\\"marker\\\").attr(\\\"id\\\",e).attr(\\\"viewBox\\\",\\\"0 0 10 10\\\").attr(\\\"refX\\\",9).attr(\\\"refY\\\",5).attr(\\\"markerUnits\\\",\\\"strokeWidth\\\").attr(\\\"markerWidth\\\",8).attr(\\\"markerHeight\\\",6).attr(\\\"orient\\\",\\\"auto\\\").append(\\\"path\\\").attr(\\\"d\\\",\\\"M 0 5 L 10 5\\\").style(\\\"stroke-width\\\",1).style(\\\"stroke-dasharray\\\",\\\"1,0\\\");r.applyStyle(a,n[i+\\\"Style\\\"]),n[i+\\\"Class\\\"]&&a.attr(\\\"class\\\",n[i+\\\"Class\\\"])}}},5632:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1322);t.exports=function(t,e){var n,o=e.nodes().filter((function(t){return r.isSubgraph(e,t)})),s=t.selectAll(\\\"g.cluster\\\").data(o,(function(t){return t}));return s.selectAll(\\\"*\\\").remove(),s.enter().append(\\\"g\\\").attr(\\\"class\\\",\\\"cluster\\\").attr(\\\"id\\\",(function(t){return e.node(t).id})).style(\\\"opacity\\\",0),s=t.selectAll(\\\"g.cluster\\\"),r.applyTransition(s,e).style(\\\"opacity\\\",1),s.each((function(t){var n=e.node(t),r=i.select(this);i.select(this).append(\\\"rect\\\");var o=r.append(\\\"g\\\").attr(\\\"class\\\",\\\"label\\\");a(o,n,n.clusterLabelPos)})),s.selectAll(\\\"rect\\\").each((function(t){var n=e.node(t),a=i.select(this);r.applyStyle(a,n.style)})),n=s.exit?s.exit():s.selectAll(null),r.applyTransition(n,e).style(\\\"opacity\\\",0).remove(),s}},6315:(t,e,n)=>{\\\"use strict\\\";var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e){var n,s=t.selectAll(\\\"g.edgeLabel\\\").data(e.edges(),(function(t){return a.edgeToId(t)})).classed(\\\"update\\\",!0);return s.exit().remove(),s.enter().append(\\\"g\\\").classed(\\\"edgeLabel\\\",!0).style(\\\"opacity\\\",0),(s=t.selectAll(\\\"g.edgeLabel\\\")).each((function(t){var n=o.select(this);n.select(\\\".label\\\").remove();var a=e.edge(t),s=i(n,e.edge(t),0,0).classed(\\\"label\\\",!0),c=s.node().getBBox();a.labelId&&s.attr(\\\"id\\\",a.labelId),r.has(a,\\\"width\\\")||(a.width=c.width),r.has(a,\\\"height\\\")||(a.height=c.height)})),n=s.exit?s.exit():s.selectAll(null),a.applyTransition(n,e).style(\\\"opacity\\\",0).remove(),s}},940:(t,e,n)=>{\\\"use strict\\\";var r=n(1034),i=n(3042),a=n(8355),o=n(4322);function s(t,e){var n=(o.line||o.svg.line)().x((function(t){return t.x})).y((function(t){return t.y}));return(n.curve||n.interpolate)(t.curve),n(e)}t.exports=function(t,e,n){var c=t.selectAll(\\\"g.edgePath\\\").data(e.edges(),(function(t){return a.edgeToId(t)})).classed(\\\"update\\\",!0),u=function(t,e){var n=t.enter().append(\\\"g\\\").attr(\\\"class\\\",\\\"edgePath\\\").style(\\\"opacity\\\",0);return n.append(\\\"path\\\").attr(\\\"class\\\",\\\"path\\\").attr(\\\"d\\\",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return s(n,r.range(n.points.length).map((function(){return e=(t=i).getBBox(),{x:(n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:n.f};var t,e,n})))})),n.append(\\\"defs\\\"),n}(c,e);!function(t,e){var n=t.exit();a.applyTransition(n,e).style(\\\"opacity\\\",0).remove()}(c,e);var l=void 0!==c.merge?c.merge(u):c;return a.applyTransition(l,e).style(\\\"opacity\\\",1),l.each((function(t){var n=o.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr(\\\"id\\\",r.id),a.applyClass(n,r.class,(n.classed(\\\"update\\\")?\\\"update \\\":\\\"\\\")+\\\"edgePath\\\")})),l.selectAll(\\\"path.path\\\").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId(\\\"arrowhead\\\");var c=o.select(this).attr(\\\"marker-end\\\",(function(){return\\\"url(\\\"+(t=location.href,e=n.arrowheadId,t.split(\\\"#\\\")[0]+\\\"#\\\"+e+\\\")\\\");var t,e})).style(\\\"fill\\\",\\\"none\\\");a.applyTransition(c,e).attr(\\\"d\\\",(function(t){return function(t,e){var n=t.edge(e),r=t.node(e.v),a=t.node(e.w),o=n.points.slice(1,n.points.length-1);return o.unshift(i(r,o[0])),o.push(i(a,o[o.length-1])),s(n,o)}(e,t)})),a.applyStyle(c,n.style)})),l.selectAll(\\\"defs *\\\").remove(),l.selectAll(\\\"defs\\\").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(o.select(this),r.arrowheadId,r,\\\"arrowhead\\\")})),l}},607:(t,e,n)=>{\\\"use strict\\\";var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e,n){var s,c=e.nodes().filter((function(t){return!a.isSubgraph(e,t)})),u=t.selectAll(\\\"g.node\\\").data(c,(function(t){return t})).classed(\\\"update\\\",!0);return u.exit().remove(),u.enter().append(\\\"g\\\").attr(\\\"class\\\",\\\"node\\\").style(\\\"opacity\\\",0),(u=t.selectAll(\\\"g.node\\\")).each((function(t){var s=e.node(t),c=o.select(this);a.applyClass(c,s.class,(c.classed(\\\"update\\\")?\\\"update \\\":\\\"\\\")+\\\"node\\\"),c.select(\\\"g.label\\\").remove();var u=c.append(\\\"g\\\").attr(\\\"class\\\",\\\"label\\\"),l=i(u,s),h=n[s.shape],f=r.pick(l.node().getBBox(),\\\"width\\\",\\\"height\\\");s.elem=this,s.id&&c.attr(\\\"id\\\",s.id),s.labelId&&u.attr(\\\"id\\\",s.labelId),r.has(s,\\\"width\\\")&&(f.width=s.width),r.has(s,\\\"height\\\")&&(f.height=s.height),f.width+=s.paddingLeft+s.paddingRight,f.height+=s.paddingTop+s.paddingBottom,u.attr(\\\"transform\\\",\\\"translate(\\\"+(s.paddingLeft-s.paddingRight)/2+\\\",\\\"+(s.paddingTop-s.paddingBottom)/2+\\\")\\\");var d=o.select(this);d.select(\\\".label-container\\\").remove();var p=h(d,f,s).classed(\\\"label-container\\\",!0);a.applyStyle(p,s.style);var g=p.node().getBBox();s.width=g.width,s.height=g.height})),s=u.exit?u.exit():u.selectAll(null),a.applyTransition(s,e).style(\\\"opacity\\\",0).remove(),u}},4322:(t,e,n)=>{var r;if(!r)try{r=n(7188)}catch(t){}r||(r=window.d3),t.exports=r},1463:(t,e,n)=>{var r;try{r=n(681)}catch(t){}r||(r=window.dagre),t.exports=r},6614:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},8114:(t,e,n)=>{t.exports={node:n(3042),circle:n(6587),ellipse:n(3260),polygon:n(5337),rect:n(8049)}},6587:(t,e,n)=>{var r=n(3260);t.exports=function(t,e,n){return r(t,e,e,n)}},3260:t=>{t.exports=function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,s=a-r.y,c=Math.sqrt(e*e*s*s+n*n*o*o),u=Math.abs(e*n*o/c);r.x{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var a,o,s,c,u,l,h,f,d,p,g,y,m;if(!(a=n.y-t.y,s=t.x-n.x,u=n.x*t.y-t.x*n.y,d=a*r.x+s*r.y+u,p=a*i.x+s*i.y+u,0!==d&&0!==p&&e(d,p)||(o=i.y-r.y,c=r.x-i.x,l=i.x*r.y-r.x*i.y,h=o*t.x+c*t.y+l,f=o*n.x+c*n.y+l,0!==h&&0!==f&&e(h,f)||0==(g=a*c-o*s))))return y=Math.abs(g/2),{x:(m=s*l-c*u)<0?(m-y)/g:(m+y)/g,y:(m=o*u-a*l)<0?(m-y)/g:(m+y)/g}}},3042:t=>{t.exports=function(t,e){return t.intersect(e)}},5337:(t,e,n)=>{var r=n(6808);t.exports=function(t,e,n){var i=t.x,a=t.y,o=[],s=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;e.forEach((function(t){s=Math.min(s,t.x),c=Math.min(c,t.y)}));for(var u=i-t.width/2-s,l=a-t.height/2-c,h=0;h1&&o.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,s=e.y-n.y,c=Math.sqrt(o*o+s*s);return a{t.exports=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,u=t.height/2;return Math.abs(s)*c>Math.abs(o)*u?(s<0&&(u=-u),n=0===s?0:u*o/s,r=u):(o<0&&(c=-c),n=c,r=0===o?0:c*s/o),{x:i+n,y:a+r}}},8284:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t.append(\\\"foreignObject\\\").attr(\\\"width\\\",\\\"100000\\\"),i=n.append(\\\"xhtml:div\\\");i.attr(\\\"xmlns\\\",\\\"http://www.w3.org/1999/xhtml\\\");var a=e.label;switch(typeof a){case\\\"function\\\":i.insert(a);break;case\\\"object\\\":i.insert((function(){return a}));break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style(\\\"display\\\",\\\"inline-block\\\"),i.style(\\\"white-space\\\",\\\"nowrap\\\");var o=i.node().getBoundingClientRect();return n.attr(\\\"width\\\",o.width).attr(\\\"height\\\",o.height),n}},1322:(t,e,n)=>{var r=n(7318),i=n(8284),a=n(8287);t.exports=function(t,e,n){var o=e.label,s=t.append(\\\"g\\\");\\\"svg\\\"===e.labelType?a(s,e):\\\"string\\\"!=typeof o||\\\"html\\\"===e.labelType?i(s,e):r(s,e);var c,u=s.node().getBBox();switch(n){case\\\"top\\\":c=-e.height/2;break;case\\\"bottom\\\":c=e.height/2-u.height;break;default:c=-u.height/2}return s.attr(\\\"transform\\\",\\\"translate(\\\"+-u.width/2+\\\",\\\"+c+\\\")\\\"),s}},8287:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}},7318:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){for(var n=t.append(\\\"text\\\"),i=function(t){for(var e,n=\\\"\\\",r=!1,i=0;i{var r;try{r={defaults:n(1747),each:n(6073),isFunction:n(3560),isPlainObject:n(8630),pick:n(9722),has:n(8721),range:n(6026),uniqueId:n(3955)}}catch(t){}r||(r=window._),t.exports=r},6381:(t,e,n)=>{\\\"use strict\\\";var r=n(8355),i=n(4322);t.exports=function(t,e){var n=t.filter((function(){return!i.select(this).classed(\\\"update\\\")}));function a(t){var n=e.node(t);return\\\"translate(\\\"+n.x+\\\",\\\"+n.y+\\\")\\\"}n.attr(\\\"transform\\\",a),r.applyTransition(t,e).style(\\\"opacity\\\",1).attr(\\\"transform\\\",a),r.applyTransition(n.selectAll(\\\"rect\\\"),e).attr(\\\"width\\\",(function(t){return e.node(t).width})).attr(\\\"height\\\",(function(t){return e.node(t).height})).attr(\\\"x\\\",(function(t){return-e.node(t).width/2})).attr(\\\"y\\\",(function(t){return-e.node(t).height/2}))}},4577:(t,e,n)=>{\\\"use strict\\\";var r=n(8355),i=n(4322),a=n(1034);t.exports=function(t,e){function n(t){var n=e.edge(t);return a.has(n,\\\"x\\\")?\\\"translate(\\\"+n.x+\\\",\\\"+n.y+\\\")\\\":\\\"\\\"}t.filter((function(){return!i.select(this).classed(\\\"update\\\")})).attr(\\\"transform\\\",n),r.applyTransition(t,e).style(\\\"opacity\\\",1).attr(\\\"transform\\\",n)}},4849:(t,e,n)=>{\\\"use strict\\\";var r=n(8355),i=n(4322);t.exports=function(t,e){function n(t){var n=e.node(t);return\\\"translate(\\\"+n.x+\\\",\\\"+n.y+\\\")\\\"}t.filter((function(){return!i.select(this).classed(\\\"update\\\")})).attr(\\\"transform\\\",n),r.applyTransition(t,e).style(\\\"opacity\\\",1).attr(\\\"transform\\\",n)}},5787:(t,e,n)=>{var r=n(1034),i=n(4322),a=n(1463).layout;t.exports=function(){var t=n(607),e=n(5632),i=n(6315),u=n(940),l=n(4849),h=n(4577),f=n(6381),d=n(4418),p=n(9144),g=function(n,g){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,\\\"label\\\")||t.children(e).length||(n.label=e),r.has(n,\\\"paddingX\\\")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,\\\"paddingY\\\")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,\\\"padding\\\")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,o),r.each([\\\"paddingLeft\\\",\\\"paddingRight\\\",\\\"paddingTop\\\",\\\"paddingBottom\\\"],(function(t){n[t]=Number(n[t])})),r.has(n,\\\"width\\\")&&(n._prevWidth=n.width),r.has(n,\\\"height\\\")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,\\\"label\\\")||(n.label=\\\"\\\"),r.defaults(n,s)}))}(g);var y=c(n,\\\"output\\\"),m=c(y,\\\"clusters\\\"),v=c(y,\\\"edgePaths\\\"),b=i(c(y,\\\"edgeLabels\\\"),g),_=t(c(y,\\\"nodes\\\"),g,d);a(g),l(_,g),h(b,g),u(v,g,p);var x=e(m,g);f(x,g),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,\\\"_prevWidth\\\")?n.width=n._prevWidth:delete n.width,r.has(n,\\\"_prevHeight\\\")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(g)};return g.createNodes=function(e){return arguments.length?(t=e,g):t},g.createClusters=function(t){return arguments.length?(e=t,g):e},g.createEdgeLabels=function(t){return arguments.length?(i=t,g):i},g.createEdgePaths=function(t){return arguments.length?(u=t,g):u},g.shapes=function(t){return arguments.length?(d=t,g):d},g.arrows=function(t){return arguments.length?(p=t,g):p},g};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:\\\"rect\\\"},s={arrowhead:\\\"normal\\\",curve:i.curveLinear};function c(t,e){var n=t.select(\\\"g.\\\"+e);return n.empty()&&(n=t.append(\\\"g\\\").attr(\\\"class\\\",e)),n}},4418:(t,e,n)=>{\\\"use strict\\\";var r=n(8049),i=n(3260),a=n(6587),o=n(5337);t.exports={rect:function(t,e,n){var i=t.insert(\\\"rect\\\",\\\":first-child\\\").attr(\\\"rx\\\",n.rx).attr(\\\"ry\\\",n.ry).attr(\\\"x\\\",-e.width/2).attr(\\\"y\\\",-e.height/2).attr(\\\"width\\\",e.width).attr(\\\"height\\\",e.height);return n.intersect=function(t){return r(n,t)},i},ellipse:function(t,e,n){var r=e.width/2,a=e.height/2,o=t.insert(\\\"ellipse\\\",\\\":first-child\\\").attr(\\\"x\\\",-e.width/2).attr(\\\"y\\\",-e.height/2).attr(\\\"rx\\\",r).attr(\\\"ry\\\",a);return n.intersect=function(t){return i(n,r,a,t)},o},circle:function(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert(\\\"circle\\\",\\\":first-child\\\").attr(\\\"x\\\",-e.width/2).attr(\\\"y\\\",-e.height/2).attr(\\\"r\\\",r);return n.intersect=function(t){return a(n,r,t)},i},diamond:function(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],s=t.insert(\\\"polygon\\\",\\\":first-child\\\").attr(\\\"points\\\",a.map((function(t){return t.x+\\\",\\\"+t.y})).join(\\\" \\\"));return n.intersect=function(t){return o(n,a,t)},s}}},8355:(t,e,n)=>{var r=n(1034);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return a(t.v)+\\\":\\\"+a(t.w)+\\\":\\\"+a(t.name)},applyStyle:function(t,e){e&&t.attr(\\\"style\\\",e)},applyClass:function(t,e,n){e&&t.attr(\\\"class\\\",e).attr(\\\"class\\\",n+\\\" \\\"+t.attr(\\\"class\\\"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function a(t){return t?String(t).replace(i,\\\"\\\\\\\\:\\\"):\\\"\\\"}},5689:t=>{t.exports=\\\"0.6.4\\\"},7188:(t,e,n)=>{\\\"use strict\\\";n.r(e),n.d(e,{FormatSpecifier:()=>uc,active:()=>Jr,arc:()=>fx,area:()=>vx,areaRadial:()=>Sx,ascending:()=>i,autoType:()=>Fo,axisBottom:()=>it,axisLeft:()=>at,axisRight:()=>rt,axisTop:()=>nt,bisect:()=>u,bisectLeft:()=>c,bisectRight:()=>s,bisector:()=>a,blob:()=>ms,brush:()=>Ai,brushSelection:()=>Ci,brushX:()=>Ei,brushY:()=>Si,buffer:()=>bs,chord:()=>Fi,clientPoint:()=>Dn,cluster:()=>Sd,color:()=>Ve,contourDensity:()=>oo,contours:()=>to,create:()=>Y_,creator:()=>ie,cross:()=>f,csv:()=>Ts,csvFormat:()=>To,csvFormatBody:()=>Co,csvFormatRow:()=>So,csvFormatRows:()=>Eo,csvFormatValue:()=>Ao,csvParse:()=>wo,csvParseRows:()=>ko,cubehelix:()=>qa,curveBasis:()=>sw,curveBasisClosed:()=>uw,curveBasisOpen:()=>hw,curveBundle:()=>dw,curveCardinal:()=>yw,curveCardinalClosed:()=>vw,curveCardinalOpen:()=>_w,curveCatmullRom:()=>kw,curveCatmullRomClosed:()=>Cw,curveCatmullRomOpen:()=>Sw,curveLinear:()=>px,curveLinearClosed:()=>Mw,curveMonotoneX:()=>Fw,curveMonotoneY:()=>Pw,curveNatural:()=>Uw,curveStep:()=>$w,curveStepAfter:()=>Hw,curveStepBefore:()=>qw,customEvent:()=>ye,descending:()=>d,deviation:()=>y,dispatch:()=>ft,drag:()=>po,dragDisable:()=>Se,dragEnable:()=>Ae,dsv:()=>ks,dsvFormat:()=>_o,easeBack:()=>hs,easeBackIn:()=>us,easeBackInOut:()=>hs,easeBackOut:()=>ls,easeBounce:()=>os,easeBounceIn:()=>as,easeBounceInOut:()=>ss,easeBounceOut:()=>os,easeCircle:()=>rs,easeCircleIn:()=>es,easeCircleInOut:()=>rs,easeCircleOut:()=>ns,easeCubic:()=>Xr,easeCubicIn:()=>Vr,easeCubicInOut:()=>Xr,easeCubicOut:()=>Gr,easeElastic:()=>ps,easeElasticIn:()=>ds,easeElasticInOut:()=>gs,easeElasticOut:()=>ps,easeExp:()=>ts,easeExpIn:()=>Ko,easeExpInOut:()=>ts,easeExpOut:()=>Jo,easeLinear:()=>Yo,easePoly:()=>Ho,easePolyIn:()=>$o,easePolyInOut:()=>Ho,easePolyOut:()=>qo,easeQuad:()=>zo,easeQuadIn:()=>jo,easeQuadInOut:()=>zo,easeQuadOut:()=>Uo,easeSin:()=>Zo,easeSinIn:()=>Go,easeSinInOut:()=>Zo,easeSinOut:()=>Xo,entries:()=>pa,event:()=>le,extent:()=>m,forceCenter:()=>Ls,forceCollide:()=>Ws,forceLink:()=>Xs,forceManyBody:()=>tc,forceRadial:()=>ec,forceSimulation:()=>Js,forceX:()=>nc,forceY:()=>rc,format:()=>pc,formatDefaultLocale:()=>bc,formatLocale:()=>vc,formatPrefix:()=>gc,formatSpecifier:()=>cc,geoAlbers:()=>zf,geoAlbersUsa:()=>$f,geoArea:()=>gu,geoAzimuthalEqualArea:()=>Vf,geoAzimuthalEqualAreaRaw:()=>Wf,geoAzimuthalEquidistant:()=>Xf,geoAzimuthalEquidistantRaw:()=>Gf,geoBounds:()=>sl,geoCentroid:()=>bl,geoCircle:()=>Nl,geoClipAntimeridian:()=>zl,geoClipCircle:()=>$l,geoClipExtent:()=>Vl,geoClipRectangle:()=>Wl,geoConicConformal:()=>ed,geoConicConformalRaw:()=>td,geoConicEqualArea:()=>Uf,geoConicEqualAreaRaw:()=>jf,geoConicEquidistant:()=>ad,geoConicEquidistantRaw:()=>id,geoContains:()=>ph,geoDistance:()=>ah,geoEqualEarth:()=>fd,geoEqualEarthRaw:()=>hd,geoEquirectangular:()=>rd,geoEquirectangularRaw:()=>nd,geoGnomonic:()=>pd,geoGnomonicRaw:()=>dd,geoGraticule:()=>mh,geoGraticule10:()=>vh,geoIdentity:()=>gd,geoInterpolate:()=>bh,geoLength:()=>nh,geoMercator:()=>Qf,geoMercatorRaw:()=>Zf,geoNaturalEarth1:()=>md,geoNaturalEarth1Raw:()=>yd,geoOrthographic:()=>bd,geoOrthographicRaw:()=>vd,geoPath:()=>kf,geoProjection:()=>Ff,geoProjectionMutator:()=>Pf,geoRotation:()=>Sl,geoStereographic:()=>xd,geoStereographicRaw:()=>_d,geoStream:()=>nu,geoTransform:()=>Tf,geoTransverseMercator:()=>kd,geoTransverseMercatorRaw:()=>wd,gray:()=>ka,hcl:()=>Ba,hierarchy:()=>Md,histogram:()=>D,hsl:()=>an,html:()=>Ds,image:()=>Es,interpolate:()=>Mn,interpolateArray:()=>xn,interpolateBasis:()=>un,interpolateBasisClosed:()=>ln,interpolateBlues:()=>f_,interpolateBrBG:()=>Tb,interpolateBuGn:()=>zb,interpolateBuPu:()=>qb,interpolateCividis:()=>k_,interpolateCool:()=>E_,interpolateCubehelix:()=>Up,interpolateCubehelixDefault:()=>T_,interpolateCubehelixLong:()=>zp,interpolateDate:()=>kn,interpolateDiscrete:()=>Sp,interpolateGnBu:()=>Wb,interpolateGreens:()=>p_,interpolateGreys:()=>y_,interpolateHcl:()=>Pp,interpolateHclLong:()=>Yp,interpolateHsl:()=>Op,interpolateHslLong:()=>Ip,interpolateHue:()=>Ap,interpolateInferno:()=>F_,interpolateLab:()=>Rp,interpolateMagma:()=>R_,interpolateNumber:()=>Tn,interpolateNumberArray:()=>bn,interpolateObject:()=>Cn,interpolateOrRd:()=>Gb,interpolateOranges:()=>w_,interpolatePRGn:()=>Eb,interpolatePiYG:()=>Ab,interpolatePlasma:()=>P_,interpolatePuBu:()=>Kb,interpolatePuBuGn:()=>Zb,interpolatePuOr:()=>Nb,interpolatePuRd:()=>t_,interpolatePurples:()=>v_,interpolateRainbow:()=>A_,interpolateRdBu:()=>Bb,interpolateRdGy:()=>Ob,interpolateRdPu:()=>n_,interpolateRdYlBu:()=>Rb,interpolateRdYlGn:()=>Pb,interpolateReds:()=>__,interpolateRgb:()=>gn,interpolateRgbBasis:()=>mn,interpolateRgbBasisClosed:()=>vn,interpolateRound:()=>Mp,interpolateSinebow:()=>B_,interpolateSpectral:()=>jb,interpolateString:()=>An,interpolateTransformCss:()=>pr,interpolateTransformSvg:()=>gr,interpolateTurbo:()=>L_,interpolateViridis:()=>I_,interpolateWarm:()=>C_,interpolateYlGn:()=>o_,interpolateYlGnBu:()=>i_,interpolateYlOrBr:()=>c_,interpolateYlOrRd:()=>l_,interpolateZoom:()=>Bp,interrupt:()=>ar,interval:()=>fk,isoFormat:()=>uk,isoParse:()=>hk,json:()=>As,keys:()=>fa,lab:()=>Ta,lch:()=>Da,line:()=>mx,lineRadial:()=>Ex,linkHorizontal:()=>Rx,linkRadial:()=>Px,linkVertical:()=>Fx,local:()=>U_,map:()=>na,matcher:()=>mt,max:()=>I,mean:()=>R,median:()=>F,merge:()=>P,min:()=>Y,mouse:()=>Ln,namespace:()=>Ct,namespaces:()=>Tt,nest:()=>ra,now:()=>qn,pack:()=>tp,packEnclose:()=>Id,packSiblings:()=>Gd,pairs:()=>l,partition:()=>op,path:()=>Wi,permute:()=>j,pie:()=>xx,piecewise:()=>$p,pointRadial:()=>Ax,polygonArea:()=>Hp,polygonCentroid:()=>Wp,polygonContains:()=>Qp,polygonHull:()=>Zp,polygonLength:()=>Kp,precisionFixed:()=>_c,precisionPrefix:()=>xc,precisionRound:()=>wc,quadtree:()=>js,quantile:()=>B,quantize:()=>qp,radialArea:()=>Sx,radialLine:()=>Ex,randomBates:()=>ig,randomExponential:()=>ag,randomIrwinHall:()=>rg,randomLogNormal:()=>ng,randomNormal:()=>eg,randomUniform:()=>tg,range:()=>k,rgb:()=>Qe,ribbon:()=>Ki,scaleBand:()=>dg,scaleDiverging:()=>ob,scaleDivergingLog:()=>sb,scaleDivergingPow:()=>ub,scaleDivergingSqrt:()=>lb,scaleDivergingSymlog:()=>cb,scaleIdentity:()=>Mg,scaleImplicit:()=>hg,scaleLinear:()=>Ag,scaleLog:()=>Pg,scaleOrdinal:()=>fg,scalePoint:()=>gg,scalePow:()=>Vg,scaleQuantile:()=>Xg,scaleQuantize:()=>Zg,scaleSequential:()=>Jv,scaleSequentialLog:()=>tb,scaleSequentialPow:()=>nb,scaleSequentialQuantile:()=>ib,scaleSequentialSqrt:()=>rb,scaleSequentialSymlog:()=>eb,scaleSqrt:()=>Gg,scaleSymlog:()=>zg,scaleThreshold:()=>Qg,scaleTime:()=>jv,scaleUtc:()=>Zv,scan:()=>U,schemeAccent:()=>db,schemeBlues:()=>h_,schemeBrBG:()=>kb,schemeBuGn:()=>Ub,schemeBuPu:()=>$b,schemeCategory10:()=>fb,schemeDark2:()=>pb,schemeGnBu:()=>Hb,schemeGreens:()=>d_,schemeGreys:()=>g_,schemeOrRd:()=>Vb,schemeOranges:()=>x_,schemePRGn:()=>Cb,schemePaired:()=>gb,schemePastel1:()=>yb,schemePastel2:()=>mb,schemePiYG:()=>Sb,schemePuBu:()=>Qb,schemePuBuGn:()=>Xb,schemePuOr:()=>Mb,schemePuRd:()=>Jb,schemePurples:()=>m_,schemeRdBu:()=>Db,schemeRdGy:()=>Lb,schemeRdPu:()=>e_,schemeRdYlBu:()=>Ib,schemeRdYlGn:()=>Fb,schemeReds:()=>b_,schemeSet1:()=>vb,schemeSet2:()=>bb,schemeSet3:()=>_b,schemeSpectral:()=>Yb,schemeTableau10:()=>xb,schemeYlGn:()=>a_,schemeYlGnBu:()=>r_,schemeYlOrBr:()=>s_,schemeYlOrRd:()=>u_,select:()=>Te,selectAll:()=>$_,selection:()=>ke,selector:()=>pt,selectorAll:()=>yt,set:()=>ha,shuffle:()=>z,stack:()=>Xw,stackOffsetDiverging:()=>Qw,stackOffsetExpand:()=>Zw,stackOffsetNone:()=>Ww,stackOffsetSilhouette:()=>Kw,stackOffsetWiggle:()=>Jw,stackOrderAppearance:()=>tk,stackOrderAscending:()=>nk,stackOrderDescending:()=>ik,stackOrderInsideOut:()=>ak,stackOrderNone:()=>Vw,stackOrderReverse:()=>ok,stratify:()=>hp,style:()=>Rt,sum:()=>$,svg:()=>Bs,symbol:()=>rw,symbolCircle:()=>Yx,symbolCross:()=>jx,symbolDiamond:()=>$x,symbolSquare:()=>Gx,symbolStar:()=>Vx,symbolTriangle:()=>Zx,symbolWye:()=>ew,symbols:()=>nw,text:()=>xs,thresholdFreedmanDiaconis:()=>L,thresholdScott:()=>O,thresholdSturges:()=>N,tickFormat:()=>Eg,tickIncrement:()=>A,tickStep:()=>M,ticks:()=>S,timeDay:()=>Ay,timeDays:()=>My,timeFormat:()=>pm,timeFormatDefaultLocale:()=>Iv,timeFormatLocale:()=>fm,timeFriday:()=>vy,timeFridays:()=>Cy,timeHour:()=>Dy,timeHours:()=>By,timeInterval:()=>ty,timeMillisecond:()=>jy,timeMilliseconds:()=>Uy,timeMinute:()=>Oy,timeMinutes:()=>Iy,timeMonday:()=>py,timeMondays:()=>xy,timeMonth:()=>ay,timeMonths:()=>oy,timeParse:()=>gm,timeSaturday:()=>by,timeSaturdays:()=>Ey,timeSecond:()=>Fy,timeSeconds:()=>Py,timeSunday:()=>dy,timeSundays:()=>_y,timeThursday:()=>my,timeThursdays:()=>Ty,timeTuesday:()=>gy,timeTuesdays:()=>wy,timeWednesday:()=>yy,timeWednesdays:()=>ky,timeWeek:()=>dy,timeWeeks:()=>_y,timeYear:()=>ny,timeYears:()=>ry,timeout:()=>Kn,timer:()=>Vn,timerFlush:()=>Gn,touch:()=>Bn,touches:()=>q_,transition:()=>qr,transpose:()=>q,tree:()=>vp,treemap:()=>kp,treemapBinary:()=>Tp,treemapDice:()=>ap,treemapResquarify:()=>Ep,treemapSlice:()=>bp,treemapSliceDice:()=>Cp,treemapSquarify:()=>wp,tsv:()=>Cs,tsvFormat:()=>Bo,tsvFormatBody:()=>Lo,tsvFormatRow:()=>Io,tsvFormatRows:()=>Oo,tsvFormatValue:()=>Ro,tsvParse:()=>No,tsvParseRows:()=>Do,utcDay:()=>im,utcDays:()=>am,utcFormat:()=>ym,utcFriday:()=>Gy,utcFridays:()=>em,utcHour:()=>Hv,utcHours:()=>Wv,utcMillisecond:()=>jy,utcMilliseconds:()=>Uy,utcMinute:()=>Gv,utcMinutes:()=>Xv,utcMonday:()=>qy,utcMondays:()=>Qy,utcMonth:()=>zv,utcMonths:()=>$v,utcParse:()=>mm,utcSaturday:()=>Xy,utcSaturdays:()=>nm,utcSecond:()=>Fy,utcSeconds:()=>Py,utcSunday:()=>$y,utcSundays:()=>Zy,utcThursday:()=>Vy,utcThursdays:()=>tm,utcTuesday:()=>Hy,utcTuesdays:()=>Ky,utcWednesday:()=>Wy,utcWednesdays:()=>Jy,utcWeek:()=>$y,utcWeeks:()=>Zy,utcYear:()=>sm,utcYears:()=>cm,values:()=>da,variance:()=>g,version:()=>r,voronoi:()=>Kk,window:()=>Bt,xml:()=>Ns,zip:()=>W,zoom:()=>fT,zoomIdentity:()=>nT,zoomTransform:()=>rT});var r=\\\"5.16.0\\\";function i(t,e){return te?1:t>=e?0:NaN}function a(t){var e;return 1===t.length&&(e=t,t=function(t,n){return i(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}var o=a(i),s=o.right,c=o.left;const u=s;function l(t,e){null==e&&(e=h);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);nt?1:e>=t?0:NaN}function p(t){return null===t?NaN:+t}function g(t,e){var n,r,i=t.length,a=0,o=-1,s=0,c=0;if(null==e)for(;++o1)return c/(a-1)}function y(t,e){var n=g(t,e);return n?Math.sqrt(n):n}function m(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s=0?(a>=T?10:a>=C?5:a>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=T?10:a>=C?5:a>=E?2:1)}function M(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=T?i*=10:a>=C?i*=5:a>=E&&(i*=2),eh;)f.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?f[i-1]:l,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}function L(t,e,n){return t=_.call(t,p).sort(i),Math.ceil((n-e)/(2*(B(t,.75)-B(t,.25))*Math.pow(t.length,-1/3)))}function O(t,e,n){return Math.ceil((n-e)/(3.5*y(t)*Math.pow(t.length,-1/3)))}function I(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r}function R(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n}function Y(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r}function j(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function U(t,e){if(n=t.length){var n,r,a=0,o=0,s=t[o];for(null==e&&(e=i);++a=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error(\\\"unknown type: \\\"+t);return{type:t,name:n}}))}function lt(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),a=0;ae?1:t>=e?0:NaN}bt.prototype={constructor:bt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var kt=\\\"http://www.w3.org/1999/xhtml\\\";const Tt={svg:\\\"http://www.w3.org/2000/svg\\\",xhtml:kt,xlink:\\\"http://www.w3.org/1999/xlink\\\",xml:\\\"http://www.w3.org/XML/1998/namespace\\\",xmlns:\\\"http://www.w3.org/2000/xmlns/\\\"};function Ct(t){var e=t+=\\\"\\\",n=e.indexOf(\\\":\\\");return n>=0&&\\\"xmlns\\\"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Tt.hasOwnProperty(e)?{space:Tt[e],local:t}:t}function Et(t){return function(){this.removeAttribute(t)}}function St(t){return function(){this.removeAttributeNS(t.space,t.local)}}function At(t,e){return function(){this.setAttribute(t,e)}}function Mt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Nt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Dt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Bt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Lt(t){return function(){this.style.removeProperty(t)}}function Ot(t,e,n){return function(){this.style.setProperty(t,e,n)}}function It(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Rt(t,e){return t.style.getPropertyValue(e)||Bt(t).getComputedStyle(t,null).getPropertyValue(e)}function Ft(t){return function(){delete this[t]}}function Pt(t,e){return function(){this[t]=e}}function Yt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function jt(t){return t.trim().split(/^|\\\\s+/)}function Ut(t){return t.classList||new zt(t)}function zt(t){this._node=t,this._names=jt(t.getAttribute(\\\"class\\\")||\\\"\\\")}function $t(t,e){for(var n=Ut(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute(\\\"class\\\",this._names.join(\\\" \\\")))},contains:function(t){return this._names.indexOf(t)>=0}};var ue={},le=null;function he(t,e,n){return t=fe(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function fe(t,e,n){return function(r){var i=le;le=r;try{t.call(this,this.__data__,e,n)}finally{le=i}}}function de(t){return t.trim().split(/^|\\\\s+/).map((function(t){var e=\\\"\\\",n=t.indexOf(\\\".\\\");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function pe(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=x&&(x=_+1);!(b=m[x])&&++x=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=wt);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?Lt:\\\"function\\\"==typeof e?It:Ot)(t,e,null==n?\\\"\\\":n)):Rt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Ft:\\\"function\\\"==typeof e?Yt:Pt)(t,e)):this.node()[t]},classed:function(t,e){var n=jt(t+\\\"\\\");if(arguments.length<2){for(var r=Ut(this.node()),i=-1,a=n.length;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Xe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Xe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Pe.exec(t))?new Ke(e[1],e[2],e[3],1):(e=Ye.exec(t))?new Ke(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=je.exec(t))?Xe(e[1],e[2],e[3],e[4]):(e=Ue.exec(t))?Xe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ze.exec(t))?nn(e[1],e[2]/100,e[3]/100,1):(e=$e.exec(t))?nn(e[1],e[2]/100,e[3]/100,e[4]):qe.hasOwnProperty(t)?Ge(qe[t]):\\\"transparent\\\"===t?new Ke(NaN,NaN,NaN,0):null}function Ge(t){return new Ke(t>>16&255,t>>8&255,255&t,1)}function Xe(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ke(t,e,n,r)}function Ze(t){return t instanceof De||(t=Ve(t)),t?new Ke((t=t.rgb()).r,t.g,t.b,t.opacity):new Ke}function Qe(t,e,n,r){return 1===arguments.length?Ze(t):new Ke(t,e,n,null==r?1:r)}function Ke(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Je(){return\\\"#\\\"+en(this.r)+en(this.g)+en(this.b)}function tn(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"rgb(\\\":\\\"rgba(\\\")+Math.max(0,Math.min(255,Math.round(this.r)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.g)||0))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}function en(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?\\\"0\\\":\\\"\\\")+t.toString(16)}function nn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new on(t,e,n,r)}function rn(t){if(t instanceof on)return new on(t.h,t.s,t.l,t.opacity);if(t instanceof De||(t=Ve(t)),!t)return new on;if(t instanceof on)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=e===a?(n-r)/s+6*(n0&&c<1?0:o,new on(o,s,c,t.opacity)}function an(t,e,n,r){return 1===arguments.length?rn(t):new on(t,e,n,null==r?1:r)}function on(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function sn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function cn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function un(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,s=r180||n<-180?n-360*Math.round(n/360):n):hn(isNaN(t)?e:t)}function pn(t,e){var n=e-t;return n?fn(t,n):hn(isNaN(t)?e:t)}Me(De,Ve,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:He,formatHex:He,formatHsl:function(){return rn(this).formatHsl()},formatRgb:We,toString:We}),Me(Ke,Qe,Ne(De,{brighter:function(t){return t=null==t?Le:Math.pow(Le,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Be:Math.pow(Be,t),new Ke(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Je,formatHex:Je,formatRgb:tn,toString:tn})),Me(on,an,Ne(De,{brighter:function(t){return t=null==t?Le:Math.pow(Le,t),new on(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Be:Math.pow(Be,t),new on(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ke(sn(t>=240?t-240:t+120,i,r),sn(t,i,r),sn(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?\\\"hsl(\\\":\\\"hsla(\\\")+(this.h||0)+\\\", \\\"+100*(this.s||0)+\\\"%, \\\"+100*(this.l||0)+\\\"%\\\"+(1===t?\\\")\\\":\\\", \\\"+t+\\\")\\\")}}));const gn=function t(e){var n=function(t){return 1==(t=+t)?pn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):hn(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Qe(t)).r,(e=Qe(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=pn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+\\\"\\\"}}return r.gamma=t,r}(1);function yn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),s=new Array(i);for(n=0;na&&(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(r=r[0])?s[o]?s[o]+=r:s[++o]=r:(s[++o]=null,c.push({i:o,x:Tn(n,r)})),a=Sn.lastIndex;return a=0&&e._call.call(null,t),e=e._next;--Rn}function Xn(){jn=(Yn=zn.now())+Un,Rn=Fn=0;try{Gn()}finally{Rn=0,function(){for(var t,e,n=On,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:On=e);In=t,Qn(r)}(),jn=0}}function Zn(){var t=zn.now(),e=t-Yn;e>1e3&&(Un-=e,Yn=t)}function Qn(t){Rn||(Fn&&(Fn=clearTimeout(Fn)),t-jn>24?(t<1/0&&(Fn=setTimeout(Xn,t-zn.now()-Un)),Pn&&(Pn=clearInterval(Pn))):(Pn||(Yn=zn.now(),Pn=setInterval(Zn,1e3)),Rn=1,$n(Xn)))}function Kn(t,e,n){var r=new Wn;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}Wn.prototype=Vn.prototype={constructor:Wn,restart:function(t,e,n){if(\\\"function\\\"!=typeof t)throw new TypeError(\\\"callback is not a function\\\");n=(null==n?qn():+n)+(null==e?0:+e),this._next||In===this||(In?In._next=this:On=this,In=this),this._call=t,this._time=n,Qn()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qn())}};var Jn=ft(\\\"start\\\",\\\"end\\\",\\\"cancel\\\",\\\"interrupt\\\"),tr=[];function er(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var u,l,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return Kn(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call(\\\"interrupt\\\",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error(\\\"too late; already scheduled\\\");return n}function rr(t,e){var n=ir(t,e);if(n.state>3)throw new Error(\\\"too late; already running\\\");return n}function ir(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error(\\\"transition not found\\\");return n}function ar(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+\\\"\\\",a)(n=a[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?\\\"interrupt\\\":\\\"cancel\\\",t,t.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete t.__transition}}var or,sr,cr,ur,lr=180/Math.PI,hr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function fr(t,e,n,r,i,a){var o,s,c;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),t*r180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+\\\"rotate(\\\",null,r)-2,x:Tn(t,e)})):e&&n.push(i(n)+\\\"rotate(\\\"+e+r)}(a.rotate,o.rotate,s,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+\\\"skewX(\\\",null,r)-2,x:Tn(t,e)}):e&&n.push(i(n)+\\\"skewX(\\\"+e+r)}(a.skewX,o.skewX,s,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var s=a.push(i(a)+\\\"scale(\\\",null,\\\",\\\",null,\\\")\\\");o.push({i:s-4,x:Tn(t,n)},{i:s-2,x:Tn(e,r)})}else 1===n&&1===r||a.push(i(a)+\\\"scale(\\\"+n+\\\",\\\"+r+\\\")\\\")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=0&&(t=t.slice(0,e)),!t||\\\"start\\\"===t}))}(e)?nr:rr;return function(){var o=a(this,t),s=o.on;s!==r&&(i=(r=s).copy()).on(e,n),o.on=i}}var Rr=ke.prototype.constructor;function Fr(t){return function(){this.style.removeProperty(t)}}function Pr(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Yr(t,e,n){var r,i;function a(){var a=e.apply(this,arguments);return a!==i&&(r=(i=a)&&Pr(t,a,n)),r}return a._value=e,a}function jr(t){return function(e){this.textContent=t.call(this,e)}}function Ur(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&jr(r)),e}return r._value=t,r}var zr=0;function $r(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function qr(t){return ke().transition(t)}function Hr(){return++zr}var Wr=ke.prototype;function Vr(t){return t*t*t}function Gr(t){return--t*t*t+1}function Xr(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}$r.prototype=qr.prototype={constructor:$r,select:function(t){var e=this._name,n=this._id;\\\"function\\\"!=typeof t&&(t=pt(t));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o1&&n.name===e)return new $r([[t]],Kr,e,+r);return null}function ti(t){return function(){return t}}function ei(t,e,n){this.target=t,this.type=e,this.selection=n}function ni(){le.stopImmediatePropagation()}function ri(){le.preventDefault(),le.stopImmediatePropagation()}var ii={name:\\\"drag\\\"},ai={name:\\\"space\\\"},oi={name:\\\"handle\\\"},si={name:\\\"center\\\"};function ci(t){return[+t[0],+t[1]]}function ui(t){return[ci(t[0]),ci(t[1])]}function li(t){return function(e){return Bn(e,le.touches,t)}}var hi={name:\\\"x\\\",handles:[\\\"w\\\",\\\"e\\\"].map(bi),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},fi={name:\\\"y\\\",handles:[\\\"n\\\",\\\"s\\\"].map(bi),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},di={name:\\\"xy\\\",handles:[\\\"n\\\",\\\"w\\\",\\\"e\\\",\\\"s\\\",\\\"nw\\\",\\\"ne\\\",\\\"sw\\\",\\\"se\\\"].map(bi),input:function(t){return null==t?null:ui(t)},output:function(t){return t}},pi={overlay:\\\"crosshair\\\",selection:\\\"move\\\",n:\\\"ns-resize\\\",e:\\\"ew-resize\\\",s:\\\"ns-resize\\\",w:\\\"ew-resize\\\",nw:\\\"nwse-resize\\\",ne:\\\"nesw-resize\\\",se:\\\"nwse-resize\\\",sw:\\\"nesw-resize\\\"},gi={e:\\\"w\\\",w:\\\"e\\\",nw:\\\"ne\\\",ne:\\\"nw\\\",se:\\\"sw\\\",sw:\\\"se\\\"},yi={n:\\\"s\\\",s:\\\"n\\\",nw:\\\"sw\\\",ne:\\\"se\\\",se:\\\"ne\\\",sw:\\\"nw\\\"},mi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},vi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function bi(t){return{type:t}}function _i(){return!le.ctrlKey&&!le.button}function xi(){var t=this.ownerSVGElement||this;return t.hasAttribute(\\\"viewBox\\\")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wi(){return navigator.maxTouchPoints||\\\"ontouchstart\\\"in this}function ki(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ti(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Ci(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function Ei(){return Mi(hi)}function Si(){return Mi(fi)}function Ai(){return Mi(di)}function Mi(t){var e,n=xi,r=_i,i=wi,a=!0,o=ft(\\\"start\\\",\\\"brush\\\",\\\"end\\\"),s=6;function c(e){var n=e.property(\\\"__brush\\\",g).selectAll(\\\".overlay\\\").data([bi(\\\"overlay\\\")]);n.enter().append(\\\"rect\\\").attr(\\\"class\\\",\\\"overlay\\\").attr(\\\"pointer-events\\\",\\\"all\\\").attr(\\\"cursor\\\",pi.overlay).merge(n).each((function(){var t=ki(this).extent;Te(this).attr(\\\"x\\\",t[0][0]).attr(\\\"y\\\",t[0][1]).attr(\\\"width\\\",t[1][0]-t[0][0]).attr(\\\"height\\\",t[1][1]-t[0][1])})),e.selectAll(\\\".selection\\\").data([bi(\\\"selection\\\")]).enter().append(\\\"rect\\\").attr(\\\"class\\\",\\\"selection\\\").attr(\\\"cursor\\\",pi.selection).attr(\\\"fill\\\",\\\"#777\\\").attr(\\\"fill-opacity\\\",.3).attr(\\\"stroke\\\",\\\"#fff\\\").attr(\\\"shape-rendering\\\",\\\"crispEdges\\\");var r=e.selectAll(\\\".handle\\\").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append(\\\"rect\\\").attr(\\\"class\\\",(function(t){return\\\"handle handle--\\\"+t.type})).attr(\\\"cursor\\\",(function(t){return pi[t.type]})),e.each(u).attr(\\\"fill\\\",\\\"none\\\").attr(\\\"pointer-events\\\",\\\"all\\\").on(\\\"mousedown.brush\\\",f).filter(i).on(\\\"touchstart.brush\\\",f).on(\\\"touchmove.brush\\\",d).on(\\\"touchend.brush touchcancel.brush\\\",p).style(\\\"touch-action\\\",\\\"none\\\").style(\\\"-webkit-tap-highlight-color\\\",\\\"rgba(0,0,0,0)\\\")}function u(){var t=Te(this),e=ki(this).selection;e?(t.selectAll(\\\".selection\\\").style(\\\"display\\\",null).attr(\\\"x\\\",e[0][0]).attr(\\\"y\\\",e[0][1]).attr(\\\"width\\\",e[1][0]-e[0][0]).attr(\\\"height\\\",e[1][1]-e[0][1]),t.selectAll(\\\".handle\\\").style(\\\"display\\\",null).attr(\\\"x\\\",(function(t){return\\\"e\\\"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr(\\\"y\\\",(function(t){return\\\"s\\\"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr(\\\"width\\\",(function(t){return\\\"n\\\"===t.type||\\\"s\\\"===t.type?e[1][0]-e[0][0]+s:s})).attr(\\\"height\\\",(function(t){return\\\"e\\\"===t.type||\\\"w\\\"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(\\\".selection,.handle\\\").style(\\\"display\\\",\\\"none\\\").attr(\\\"x\\\",null).attr(\\\"y\\\",null).attr(\\\"width\\\",null).attr(\\\"height\\\",null)}function l(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new h(t,e,n):r}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(){if((!e||le.touches)&&r.apply(this,arguments)){var n,i,o,s,c,h,f,d,p,g,y,m=this,v=le.target.__data__.type,b=\\\"selection\\\"===(a&&le.metaKey?v=\\\"overlay\\\":v)?ii:a&&le.altKey?si:oi,_=t===fi?null:mi[v],x=t===hi?null:vi[v],w=ki(m),k=w.extent,T=w.selection,C=k[0][0],E=k[0][1],S=k[1][0],A=k[1][1],M=0,N=0,D=_&&x&&a&&le.shiftKey,B=le.touches?li(le.changedTouches[0].identifier):Ln,L=B(m),O=L,I=l(m,arguments,!0).beforestart();\\\"overlay\\\"===v?(T&&(p=!0),w.selection=T=[[n=t===fi?C:L[0],o=t===hi?E:L[1]],[c=t===fi?S:n,f=t===hi?A:o]]):(n=T[0][0],o=T[0][1],c=T[1][0],f=T[1][1]),i=n,s=o,h=c,d=f;var R=Te(m).attr(\\\"pointer-events\\\",\\\"none\\\"),F=R.selectAll(\\\".overlay\\\").attr(\\\"cursor\\\",pi[v]);if(le.touches)I.moved=Y,I.ended=U;else{var P=Te(le.view).on(\\\"mousemove.brush\\\",Y,!0).on(\\\"mouseup.brush\\\",U,!0);a&&P.on(\\\"keydown.brush\\\",z,!0).on(\\\"keyup.brush\\\",$,!0),Se(le.view)}ni(),ar(m),u.call(m),I.start()}function Y(){var t=B(m);!D||g||y||(Math.abs(t[0]-O[0])>Math.abs(t[1]-O[1])?y=!0:g=!0),O=t,p=!0,ri(),j()}function j(){var t;switch(M=O[0]-L[0],N=O[1]-L[1],b){case ai:case ii:_&&(M=Math.max(C-n,Math.min(S-c,M)),i=n+M,h=c+M),x&&(N=Math.max(E-o,Math.min(A-f,N)),s=o+N,d=f+N);break;case oi:_<0?(M=Math.max(C-n,Math.min(S-n,M)),i=n+M,h=c):_>0&&(M=Math.max(C-c,Math.min(S-c,M)),i=n,h=c+M),x<0?(N=Math.max(E-o,Math.min(A-o,N)),s=o+N,d=f):x>0&&(N=Math.max(E-f,Math.min(A-f,N)),s=o,d=f+N);break;case si:_&&(i=Math.max(C,Math.min(S,n-M*_)),h=Math.max(C,Math.min(S,c+M*_))),x&&(s=Math.max(E,Math.min(A,o-N*x)),d=Math.max(E,Math.min(A,f+N*x)))}h0&&(n=i-M),x<0?f=d-N:x>0&&(o=s-N),b=ai,F.attr(\\\"cursor\\\",pi.selection),j());break;default:return}ri()}function $(){switch(le.keyCode){case 16:D&&(g=y=D=!1,j());break;case 18:b===si&&(_<0?c=h:_>0&&(n=i),x<0?f=d:x>0&&(o=s),b=oi,j());break;case 32:b===ai&&(le.altKey?(_&&(c=h-M*_,n=i+M*_),x&&(f=d-N*x,o=s+N*x),b=si):(_<0?c=h:_>0&&(n=i),x<0?f=d:x>0&&(o=s),b=oi),F.attr(\\\"cursor\\\",pi[v]),j());break;default:return}ri()}}function d(){l(this,arguments).moved()}function p(){l(this,arguments).ended()}function g(){var e=this.__brush||{selection:null};return e.extent=ui(n.apply(this,arguments)),e.dim=t,e}return c.move=function(e,n){e.selection?e.on(\\\"start.brush\\\",(function(){l(this,arguments).beforestart().start()})).on(\\\"interrupt.brush end.brush\\\",(function(){l(this,arguments).end()})).tween(\\\"brush\\\",(function(){var e=this,r=e.__brush,i=l(e,arguments),a=r.selection,o=t.input(\\\"function\\\"==typeof n?n.apply(this,arguments):n,r.extent),s=Mn(a,o);function c(t){r.selection=1===t&&null===o?null:s(t),u.call(e),i.brush()}return null!==a&&null!==o?c:c(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,a=t.input(\\\"function\\\"==typeof n?n.apply(e,r):n,i.extent),o=l(e,r).beforestart();ar(e),i.selection=null===a?null:a,u.call(e),o.start().brush().end()}))},c.clear=function(t){c.move(t,null)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit(\\\"start\\\")):this.emit(\\\"brush\\\"),this},brush:function(){return this.emit(\\\"brush\\\"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit(\\\"end\\\")),this},emit:function(e){ye(new ei(c,e,t.output(this.state.selection)),o.apply,o,[e,this.that,this.args])}},c.extent=function(t){return arguments.length?(n=\\\"function\\\"==typeof t?t:ti(ui(t)),c):n},c.filter=function(t){return arguments.length?(r=\\\"function\\\"==typeof t?t:ti(!!t),c):r},c.touchable=function(t){return arguments.length?(i=\\\"function\\\"==typeof t?t:ti(!!t),c):i},c.handleSize=function(t){return arguments.length?(s=+t,c):s},c.keyModifiers=function(t){return arguments.length?(a=!!t,c):a},c.on=function(){var t=o.on.apply(o,arguments);return t===o?c:t},c}var Ni=Math.cos,Di=Math.sin,Bi=Math.PI,Li=Bi/2,Oi=2*Bi,Ii=Math.max;function Ri(t){return function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)}}function Fi(){var t=0,e=null,n=null,r=null;function i(i){var a,o,s,c,u,l,h=i.length,f=[],d=k(h),p=[],g=[],y=g.groups=new Array(h),m=new Array(h*h);for(a=0,u=-1;++uzi)if(Math.abs(l*s-c*u)>zi&&i){var f=n-a,d=r-o,p=s*s+c*c,g=f*f+d*d,y=Math.sqrt(p),m=Math.sqrt(h),v=i*Math.tan((ji-Math.acos((p+h-g)/(2*y*m)))/2),b=v/m,_=v/y;Math.abs(b-1)>zi&&(this._+=\\\"L\\\"+(t+b*u)+\\\",\\\"+(e+b*l)),this._+=\\\"A\\\"+i+\\\",\\\"+i+\\\",0,0,\\\"+ +(l*f>u*d)+\\\",\\\"+(this._x1=t+_*s)+\\\",\\\"+(this._y1=e+_*c)}else this._+=\\\"L\\\"+(this._x1=t)+\\\",\\\"+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e,a=!!a;var o=(n=+n)*Math.cos(r),s=n*Math.sin(r),c=t+o,u=e+s,l=1^a,h=a?r-i:i-r;if(n<0)throw new Error(\\\"negative radius: \\\"+n);null===this._x1?this._+=\\\"M\\\"+c+\\\",\\\"+u:(Math.abs(this._x1-c)>zi||Math.abs(this._y1-u)>zi)&&(this._+=\\\"L\\\"+c+\\\",\\\"+u),n&&(h<0&&(h=h%Ui+Ui),h>$i?this._+=\\\"A\\\"+n+\\\",\\\"+n+\\\",0,1,\\\"+l+\\\",\\\"+(t-o)+\\\",\\\"+(e-s)+\\\"A\\\"+n+\\\",\\\"+n+\\\",0,1,\\\"+l+\\\",\\\"+(this._x1=c)+\\\",\\\"+(this._y1=u):h>zi&&(this._+=\\\"A\\\"+n+\\\",\\\"+n+\\\",0,\\\"+ +(h>=ji)+\\\",\\\"+l+\\\",\\\"+(this._x1=t+n*Math.cos(i))+\\\",\\\"+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+=\\\"M\\\"+(this._x0=this._x1=+t)+\\\",\\\"+(this._y0=this._y1=+e)+\\\"h\\\"+ +n+\\\"v\\\"+ +r+\\\"h\\\"+-n+\\\"Z\\\"},toString:function(){return this._}};const Wi=Hi;function Vi(t){return t.source}function Gi(t){return t.target}function Xi(t){return t.radius}function Zi(t){return t.startAngle}function Qi(t){return t.endAngle}function Ki(){var t=Vi,e=Gi,n=Xi,r=Zi,i=Qi,a=null;function o(){var o,s=Pi.call(arguments),c=t.apply(this,s),u=e.apply(this,s),l=+n.apply(this,(s[0]=c,s)),h=r.apply(this,s)-Li,f=i.apply(this,s)-Li,d=l*Ni(h),p=l*Di(h),g=+n.apply(this,(s[0]=u,s)),y=r.apply(this,s)-Li,m=i.apply(this,s)-Li;if(a||(a=o=Wi()),a.moveTo(d,p),a.arc(0,0,l,h,f),h===y&&f===m||(a.quadraticCurveTo(0,0,g*Ni(y),g*Di(y)),a.arc(0,0,g,y,m)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+\\\"\\\"||null}return o.radius=function(t){return arguments.length?(n=\\\"function\\\"==typeof t?t:Yi(+t),o):n},o.startAngle=function(t){return arguments.length?(r=\\\"function\\\"==typeof t?t:Yi(+t),o):r},o.endAngle=function(t){return arguments.length?(i=\\\"function\\\"==typeof t?t:Yi(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}var Ji=\\\"$\\\";function ta(){}function ea(t,e){var n=new ta;if(t instanceof ta)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,u,l,h=-1,f=n.length,d=r[i++],p=na(),g=o();++hr.length)return t;var a,s=i[n-1];return null!=e&&n>=r.length?a=t.entries():(a=[],t.each((function(t,e){a.push({key:e,values:o(t,n)})}))),null!=s?a.sort((function(t,e){return s(t.key,e.key)})):a}return n={object:function(t){return a(t,0,ia,aa)},map:function(t){return a(t,0,oa,sa)},entries:function(t){return o(a(t,0,oa,sa),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function ia(){return{}}function aa(t,e,n){t[e]=n}function oa(){return na()}function sa(t,e,n){t.set(e,n)}function ca(){}var ua=na.prototype;function la(t,e){var n=new ca;if(t instanceof ca)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r.008856451679035631?Math.pow(t,1/3):t/xa+ba}function Sa(t){return t>_a?t*t*t:xa*(t-ba)}function Aa(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ma(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Na(t){if(t instanceof La)return new La(t.h,t.c,t.l,t.opacity);if(t instanceof Ca||(t=wa(t)),0===t.a&&0===t.b)return new La(NaN,0r!=d>r&&n<(f-u)*(r-l)/(d-l)+u&&(i=-i)}return i}function Qa(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i<=a&&a<=o||o<=a&&a<=i)}function Ka(){}var Ja=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function to(){var t=1,e=1,n=N,r=s;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(Va);else{var r=m(t),i=r[0],o=r[1];e=M(i,o,e),e=k(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var a=[],s=[];return function(n,r,i){var a,s,c,u,l,h,f=new Array,d=new Array;for(a=s=-1,u=n[0]>=r,Ja[u<<1].forEach(p);++a=r,Ja[c|u<<1].forEach(p);for(Ja[u<<0].forEach(p);++s=r,l=n[s*t]>=r,Ja[u<<1|l<<2].forEach(p);++a=r,h=l,l=n[s*t+a+1]>=r,Ja[c|u<<1|l<<2|h<<3].forEach(p);Ja[u|l<<3].forEach(p)}for(a=-1,l=n[s*t]>=r,Ja[l<<2].forEach(p);++a=r,Ja[l<<2|h<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+a,t[0][1]+s],c=[t[1][0]+a,t[1][1]+s],u=o(r),l=o(c);(e=d[u])?(n=f[l])?(delete d[e.end],delete f[n.start],e===n?(e.ring.push(c),i(e.ring)):f[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(c),d[e.end=l]=e):(e=f[l])?(n=d[u])?(delete f[e.start],delete d[n.end],e===n?(e.ring.push(c),i(e.ring)):f[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete f[e.start],e.ring.unshift(r),f[e.start=u]=e):f[u]=d[l]={start:u,end:l,ring:[r,c]}}Ja[l<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e0?a.push([t]):s.push(t)})),s.forEach((function(t){for(var e,n=0,r=a.length;n0&&o0&&s0&&a>0))throw new Error(\\\"invalid size\\\");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n=\\\"function\\\"==typeof t?t:Array.isArray(t)?Ga(Wa.call(t)):Ga(t),i):n},i.smooth=function(t){return arguments.length?(r=t?s:Ka,i):r===s},i}function eo(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(c-=t.data[s-a+o*r]),e.data[s-n+o*r]=c/Math.min(s+1,r-1+a-s,a))}function no(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(s>=a&&(c-=t.data[o+(s-a)*r]),e.data[o+(s-n)*r]=c/Math.min(s+1,i-1+a-s,a))}function ro(t){return t[0]}function io(t){return t[1]}function ao(){return 1}function oo(){var t=ro,e=io,n=ao,r=960,i=500,a=20,o=2,s=3*a,c=r+2*s>>o,u=i+2*s>>o,l=Ga(20);function h(r){var i=new Float32Array(c*u),h=new Float32Array(c*u);r.forEach((function(r,a,l){var h=+t(r,a,l)+s>>o,f=+e(r,a,l)+s>>o,d=+n(r,a,l);h>=0&&h=0&&f>o),no({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o),eo({width:c,height:u,data:i},{width:c,height:u,data:h},a>>o),no({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o),eo({width:c,height:u,data:i},{width:c,height:u,data:h},a>>o),no({width:c,height:u,data:h},{width:c,height:u,data:i},a>>o);var d=l(i);if(!Array.isArray(d)){var p=I(i);d=M(0,p,d),(d=k(0,Math.floor(p/d)*d,d)).shift()}return to().thresholds(d).size([c,u])(i).map(f)}function f(t){return t.value*=Math.pow(2,-2*o),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,o)-s,t[1]=t[1]*Math.pow(2,o)-s}function y(){return c=r+2*(s=3*a)>>o,u=i+2*s>>o,h}return h.x=function(e){return arguments.length?(t=\\\"function\\\"==typeof e?e:Ga(+e),h):t},h.y=function(t){return arguments.length?(e=\\\"function\\\"==typeof t?t:Ga(+t),h):e},h.weight=function(t){return arguments.length?(n=\\\"function\\\"==typeof t?t:Ga(+t),h):n},h.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error(\\\"invalid size\\\");return r=e,i=n,y()},h.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error(\\\"invalid cell size\\\");return o=Math.floor(Math.log(t)/Math.LN2),y()},h.thresholds=function(t){return arguments.length?(l=\\\"function\\\"==typeof t?t:Array.isArray(t)?Ga(Wa.call(t)):Ga(t),h):l},h.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error(\\\"invalid bandwidth\\\");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),y()},h}function so(t){return function(){return t}}function co(t,e,n,r,i,a,o,s,c,u){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=a,this.y=o,this.dx=s,this.dy=c,this._=u}function uo(){return!le.ctrlKey&&!le.button}function lo(){return this.parentNode}function ho(t){return null==t?{x:le.x,y:le.y}:t}function fo(){return navigator.maxTouchPoints||\\\"ontouchstart\\\"in this}function po(){var t,e,n,r,i=uo,a=lo,o=ho,s=fo,c={},u=ft(\\\"start\\\",\\\"drag\\\",\\\"end\\\"),l=0,h=0;function f(t){t.on(\\\"mousedown.drag\\\",d).filter(s).on(\\\"touchstart.drag\\\",y).on(\\\"touchmove.drag\\\",m).on(\\\"touchend.drag touchcancel.drag\\\",v).style(\\\"touch-action\\\",\\\"none\\\").style(\\\"-webkit-tap-highlight-color\\\",\\\"rgba(0,0,0,0)\\\")}function d(){if(!r&&i.apply(this,arguments)){var o=b(\\\"mouse\\\",a.apply(this,arguments),Ln,this,arguments);o&&(Te(le.view).on(\\\"mousemove.drag\\\",p,!0).on(\\\"mouseup.drag\\\",g,!0),Se(le.view),Ce(),n=!1,t=le.clientX,e=le.clientY,o(\\\"start\\\"))}}function p(){if(Ee(),!n){var r=le.clientX-t,i=le.clientY-e;n=r*r+i*i>h}c.mouse(\\\"drag\\\")}function g(){Te(le.view).on(\\\"mousemove.drag mouseup.drag\\\",null),Ae(le.view,n),Ee(),c.mouse(\\\"end\\\")}function y(){if(i.apply(this,arguments)){var t,e,n=le.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t=a?c=!0:10===(r=t.charCodeAt(o++))?u=!0:13===r&&(u=!0,10===t.charCodeAt(o)&&++o),t.slice(i+1,e-1).replace(/\\\"\\\"/g,'\\\"')}for(;o9999?\\\"+\\\"+bo(t,6):bo(t,4)}(t.getUTCFullYear())+\\\"-\\\"+bo(t.getUTCMonth()+1,2)+\\\"-\\\"+bo(t.getUTCDate(),2)+(i?\\\"T\\\"+bo(e,2)+\\\":\\\"+bo(n,2)+\\\":\\\"+bo(r,2)+\\\".\\\"+bo(i,3)+\\\"Z\\\":r?\\\"T\\\"+bo(e,2)+\\\":\\\"+bo(n,2)+\\\":\\\"+bo(r,2)+\\\"Z\\\":n||e?\\\"T\\\"+bo(e,2)+\\\":\\\"+bo(n,2)+\\\"Z\\\":\\\"\\\")}(t):e.test(t+=\\\"\\\")?'\\\"'+t.replace(/\\\"/g,'\\\"\\\"')+'\\\"':t}return{parse:function(t,e){var n,i,a=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?function(t,e){var n=mo(t);return function(r,i){return e(n(r),i,t)}}(t,e):mo(t)}));return a.columns=i||[],a},parseRows:r,format:function(e,n){return null==n&&(n=vo(e)),[n.map(o).join(t)].concat(i(e,n)).join(\\\"\\\\n\\\")},formatBody:function(t,e){return null==e&&(e=vo(t)),i(t,e).join(\\\"\\\\n\\\")},formatRows:function(t){return t.map(a).join(\\\"\\\\n\\\")},formatRow:a,formatValue:o}}var xo=_o(\\\",\\\"),wo=xo.parse,ko=xo.parseRows,To=xo.format,Co=xo.formatBody,Eo=xo.formatRows,So=xo.formatRow,Ao=xo.formatValue,Mo=_o(\\\"\\\\t\\\"),No=Mo.parse,Do=Mo.parseRows,Bo=Mo.format,Lo=Mo.formatBody,Oo=Mo.formatRows,Io=Mo.formatRow,Ro=Mo.formatValue;function Fo(t){for(var e in t){var n,r,i=t[e].trim();if(i)if(\\\"true\\\"===i)i=!0;else if(\\\"false\\\"===i)i=!1;else if(\\\"NaN\\\"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\\\\d{2})?\\\\d{4}(-\\\\d{2}(-\\\\d{2})?)?(T\\\\d{2}:\\\\d{2}(:\\\\d{2}(\\\\.\\\\d{3})?)?(Z|[-+]\\\\d{2}:\\\\d{2})?)?$/)))continue;Po&&r[4]&&!r[7]&&(i=i.replace(/-/g,\\\"/\\\").replace(/T/,\\\" \\\")),i=new Date(i)}else i=n;else i=null;t[e]=i}return t}var Po=new Date(\\\"2019-01-01T00:00\\\").getHours()||new Date(\\\"2019-07-01T00:00\\\").getHours();function Yo(t){return+t}function jo(t){return t*t}function Uo(t){return t*(2-t)}function zo(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}var $o=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),qo=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Ho=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Wo=Math.PI,Vo=Wo/2;function Go(t){return 1==+t?1:1-Math.cos(t*Vo)}function Xo(t){return Math.sin(t*Vo)}function Zo(t){return(1-Math.cos(Wo*t))/2}function Qo(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Ko(t){return Qo(1-+t)}function Jo(t){return 1-Qo(t)}function ts(t){return((t*=2)<=1?Qo(1-t):2-Qo(t-1))/2}function es(t){return 1-Math.sqrt(1-t*t)}function ns(t){return Math.sqrt(1- --t*t)}function rs(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var is=7.5625;function as(t){return 1-os(1-t)}function os(t){return(t=+t)<.36363636363636365?is*t*t:t<.7272727272727273?is*(t-=.5454545454545454)*t+.75:t<.9090909090909091?is*(t-=.8181818181818182)*t+.9375:is*(t-=.9545454545454546)*t+.984375}function ss(t){return((t*=2)<=1?1-os(1-t):os(t-1)+1)/2}var cs=1.70158,us=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(cs),ls=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(cs),hs=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(cs),fs=2*Math.PI,ds=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=fs);function i(t){return e*Qo(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*fs)},i.period=function(n){return t(e,n)},i}(1,.3),ps=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=fs);function i(t){return 1-e*Qo(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*fs)},i.period=function(n){return t(e,n)},i}(1,.3),gs=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=fs);function i(t){return((t=2*t-1)<0?e*Qo(-t)*Math.sin((r-t)/n):2-e*Qo(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*fs)},i.period=function(n){return t(e,n)},i}(1,.3);function ys(t){if(!t.ok)throw new Error(t.status+\\\" \\\"+t.statusText);return t.blob()}function ms(t,e){return fetch(t,e).then(ys)}function vs(t){if(!t.ok)throw new Error(t.status+\\\" \\\"+t.statusText);return t.arrayBuffer()}function bs(t,e){return fetch(t,e).then(vs)}function _s(t){if(!t.ok)throw new Error(t.status+\\\" \\\"+t.statusText);return t.text()}function xs(t,e){return fetch(t,e).then(_s)}function ws(t){return function(e,n,r){return 2===arguments.length&&\\\"function\\\"==typeof n&&(r=n,n=void 0),xs(e,n).then((function(e){return t(e,r)}))}}function ks(t,e,n,r){3===arguments.length&&\\\"function\\\"==typeof n&&(r=n,n=void 0);var i=_o(t);return xs(e,n).then((function(t){return i.parse(t,r)}))}var Ts=ws(wo),Cs=ws(No);function Es(t,e){return new Promise((function(n,r){var i=new Image;for(var a in e)i[a]=e[a];i.onerror=r,i.onload=function(){n(i)},i.src=t}))}function Ss(t){if(!t.ok)throw new Error(t.status+\\\" \\\"+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function As(t,e){return fetch(t,e).then(Ss)}function Ms(t){return function(e,n){return xs(e,n).then((function(e){return(new DOMParser).parseFromString(e,t)}))}}const Ns=Ms(\\\"application/xml\\\");var Ds=Ms(\\\"text/html\\\"),Bs=Ms(\\\"image/svg+xml\\\");function Ls(t,e){var n;function r(){var r,i,a=n.length,o=0,s=0;for(r=0;r=(a=(g+m)/2))?g=a:m=a,(l=n>=(o=(y+v)/2))?y=o:v=o,i=d,!(d=d[h=l<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===s&&n===c)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(a=(g+m)/2))?g=a:m=a,(l=n>=(o=(y+v)/2))?y=o:v=o}while((h=l<<1|u)==(f=(c>=o)<<1|s>=a));return i[f]=d,i[h]=p,t}function Fs(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Ps(t){return t[0]}function Ys(t){return t[1]}function js(t,e,n){var r=new Us(null==e?Ps:e,null==n?Ys:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Us(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function zs(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var $s=js.prototype=Us.prototype;function qs(t){return t.x+t.vx}function Hs(t){return t.y+t.vy}function Ws(t){var e,n,r=1,i=1;function a(){for(var t,a,s,c,u,l,h,f=e.length,d=0;dc+d||iu+d||as.index){var p=c-o.x-o.vx,g=u-o.y-o.vy,y=p*p+g*g;yt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;rl&&(l=r),ih&&(h=i));if(c>l||u>h)return this;for(this.cover(c,u).cover(l,h),n=0;nt||t>=i||r>e||e>=a;)switch(s=(ef||(a=c.y0)>d||(o=c.x1)=m)<<1|t>=y)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-u],p[p.length-1-u]=c)}else{var v=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),_=v*v+b*b;if(_=(s=(p+y)/2))?p=s:y=s,(l=o>=(c=(g+m)/2))?g=c:m=c,e=d,!(d=d[h=l<<1|u]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},$s.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,a,o,s,c,u=0,l=t.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(t,n),e):u.on(t)}}}function tc(){var t,e,n,r,i=Os(-30),a=1,o=1/0,s=.81;function c(r){var i,a=t.length,o=js(t,Zs,Qs).visitAfter(l);for(n=r,i=0;i=o)){(t.data!==e||t.next)&&(0===l&&(d+=(l=Is())*l),0===h&&(d+=(h=Is())*h),d1?r[0]+r.slice(2):r,+t.slice(n+1)]}function ac(t){return(t=ic(Math.abs(t)))?t[1]:NaN}var oc,sc=/^(?:(.)?([<>=^]))?([+\\\\-( ])?([$#])?(0)?(\\\\d+)?(,)?(\\\\.\\\\d+)?(~)?([a-z%])?$/i;function cc(t){if(!(e=sc.exec(t)))throw new Error(\\\"invalid format: \\\"+t);var e;return new uc({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function uc(t){this.fill=void 0===t.fill?\\\" \\\":t.fill+\\\"\\\",this.align=void 0===t.align?\\\">\\\":t.align+\\\"\\\",this.sign=void 0===t.sign?\\\"-\\\":t.sign+\\\"\\\",this.symbol=void 0===t.symbol?\\\"\\\":t.symbol+\\\"\\\",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?\\\"\\\":t.type+\\\"\\\"}function lc(t,e){var n=ic(t,e);if(!n)return t+\\\"\\\";var r=n[0],i=n[1];return i<0?\\\"0.\\\"+new Array(-i).join(\\\"0\\\")+r:r.length>i+1?r.slice(0,i+1)+\\\".\\\"+r.slice(i+1):r+new Array(i-r.length+2).join(\\\"0\\\")}cc.prototype=uc.prototype,uc.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?\\\"0\\\":\\\"\\\")+(void 0===this.width?\\\"\\\":Math.max(1,0|this.width))+(this.comma?\\\",\\\":\\\"\\\")+(void 0===this.precision?\\\"\\\":\\\".\\\"+Math.max(0,0|this.precision))+(this.trim?\\\"~\\\":\\\"\\\")+this.type};const hc={\\\"%\\\":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+\\\"\\\"},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString(\\\"en\\\").replace(/,/g,\\\"\\\"):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return lc(100*t,e)},r:lc,s:function(t,e){var n=ic(t,e);if(!n)return t+\\\"\\\";var r=n[0],i=n[1],a=i-(oc=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join(\\\"0\\\"):a>0?r.slice(0,a)+\\\".\\\"+r.slice(a):\\\"0.\\\"+new Array(1-a).join(\\\"0\\\")+ic(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function fc(t){return t}var dc,pc,gc,yc=Array.prototype.map,mc=[\\\"y\\\",\\\"z\\\",\\\"a\\\",\\\"f\\\",\\\"p\\\",\\\"n\\\",\\\"µ\\\",\\\"m\\\",\\\"\\\",\\\"k\\\",\\\"M\\\",\\\"G\\\",\\\"T\\\",\\\"P\\\",\\\"E\\\",\\\"Z\\\",\\\"Y\\\"];function vc(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?fc:(e=yc.call(t.grouping,Number),n=t.thousands+\\\"\\\",function(t,r){for(var i=t.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(t.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(n)}),i=void 0===t.currency?\\\"\\\":t.currency[0]+\\\"\\\",a=void 0===t.currency?\\\"\\\":t.currency[1]+\\\"\\\",o=void 0===t.decimal?\\\".\\\":t.decimal+\\\"\\\",s=void 0===t.numerals?fc:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(yc.call(t.numerals,String)),c=void 0===t.percent?\\\"%\\\":t.percent+\\\"\\\",u=void 0===t.minus?\\\"-\\\":t.minus+\\\"\\\",l=void 0===t.nan?\\\"NaN\\\":t.nan+\\\"\\\";function h(t){var e=(t=cc(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,g=t.comma,y=t.precision,m=t.trim,v=t.type;\\\"n\\\"===v?(g=!0,v=\\\"g\\\"):hc[v]||(void 0===y&&(y=12),m=!0,v=\\\"g\\\"),(d||\\\"0\\\"===e&&\\\"=\\\"===n)&&(d=!0,e=\\\"0\\\",n=\\\"=\\\");var b=\\\"$\\\"===f?i:\\\"#\\\"===f&&/[boxX]/.test(v)?\\\"0\\\"+v.toLowerCase():\\\"\\\",_=\\\"$\\\"===f?a:/[%p]/.test(v)?c:\\\"\\\",x=hc[v],w=/[defgprs%]/.test(v);function k(t){var i,a,c,f=b,k=_;if(\\\"c\\\"===v)k=x(t)+k,t=\\\"\\\";else{var T=(t=+t)<0||1/t<0;if(t=isNaN(t)?l:x(Math.abs(t),y),m&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),T&&0==+t&&\\\"+\\\"!==h&&(T=!1),f=(T?\\\"(\\\"===h?h:u:\\\"-\\\"===h||\\\"(\\\"===h?\\\"\\\":h)+f,k=(\\\"s\\\"===v?mc[8+oc/3]:\\\"\\\")+k+(T&&\\\"(\\\"===h?\\\")\\\":\\\"\\\"),w)for(i=-1,a=t.length;++i(c=t.charCodeAt(i))||c>57){k=(46===c?o+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}g&&!d&&(t=r(t,1/0));var C=f.length+t.length+k.length,E=C>1)+f+t+k+E.slice(C);break;default:t=E+f+t+k}return s(t)}return y=void 0===y?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),k.toString=function(){return t+\\\"\\\"},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=cc(t)).type=\\\"f\\\",t)),r=3*Math.max(-8,Math.min(8,Math.floor(ac(e)/3))),i=Math.pow(10,-r),a=mc[8+r/3];return function(t){return n(i*t)+a}}}}function bc(t){return dc=vc(t),pc=dc.format,gc=dc.formatPrefix,dc}function _c(t){return Math.max(0,-ac(Math.abs(t)))}function xc(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ac(e)/3)))-ac(Math.abs(t)))}function wc(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ac(e)-ac(t))+1}function kc(){return new Tc}function Tc(){this.reset()}bc({decimal:\\\".\\\",thousands:\\\",\\\",grouping:[3],currency:[\\\"$\\\",\\\"\\\"],minus:\\\"-\\\"}),Tc.prototype={constructor:Tc,reset:function(){this.s=this.t=0},add:function(t){Ec(Cc,t,this.t),Ec(this,Cc.s,this.s),this.s?this.t+=Cc.t:this.s=Cc.t},valueOf:function(){return this.s}};var Cc=new Tc;function Ec(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var Sc=1e-6,Ac=1e-12,Mc=Math.PI,Nc=Mc/2,Dc=Mc/4,Bc=2*Mc,Lc=180/Mc,Oc=Mc/180,Ic=Math.abs,Rc=Math.atan,Fc=Math.atan2,Pc=Math.cos,Yc=Math.ceil,jc=Math.exp,Uc=(Math.floor,Math.log),zc=Math.pow,$c=Math.sin,qc=Math.sign||function(t){return t>0?1:t<0?-1:0},Hc=Math.sqrt,Wc=Math.tan;function Vc(t){return t>1?0:t<-1?Mc:Math.acos(t)}function Gc(t){return t>1?Nc:t<-1?-Nc:Math.asin(t)}function Xc(t){return(t=$c(t/2))*t}function Zc(){}function Qc(t,e){t&&Jc.hasOwnProperty(t.type)&&Jc[t.type](t,e)}var Kc={Feature:function(t,e){Qc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=Pc(e=(e*=Oc)/2+Dc),o=$c(e),s=su*o,c=ou*a+s*Pc(i),u=s*r*$c(i);cu.add(Fc(u,c)),au=t,ou=a,su=o}function gu(t){return uu.reset(),nu(t,lu),2*uu}function yu(t){return[Fc(t[1],t[0]),Gc(t[2])]}function mu(t){var e=t[0],n=t[1],r=Pc(n);return[r*Pc(e),r*$c(e),$c(n)]}function vu(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function bu(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function _u(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function xu(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function wu(t){var e=Hc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ku,Tu,Cu,Eu,Su,Au,Mu,Nu,Du,Bu,Lu,Ou,Iu,Ru,Fu,Pu,Yu,ju,Uu,zu,$u,qu,Hu,Wu,Vu,Gu,Xu=kc(),Zu={point:Qu,lineStart:Ju,lineEnd:tl,polygonStart:function(){Zu.point=el,Zu.lineStart=nl,Zu.lineEnd=rl,Xu.reset(),lu.polygonStart()},polygonEnd:function(){lu.polygonEnd(),Zu.point=Qu,Zu.lineStart=Ju,Zu.lineEnd=tl,cu<0?(ku=-(Cu=180),Tu=-(Eu=90)):Xu>Sc?Eu=90:Xu<-1e-6&&(Tu=-90),Bu[0]=ku,Bu[1]=Cu},sphere:function(){ku=-(Cu=180),Tu=-(Eu=90)}};function Qu(t,e){Du.push(Bu=[ku=t,Cu=t]),eEu&&(Eu=e)}function Ku(t,e){var n=mu([t*Oc,e*Oc]);if(Nu){var r=bu(Nu,n),i=bu([r[1],-r[0],0],r);wu(i),i=yu(i);var a,o=t-Su,s=o>0?1:-1,c=i[0]*Lc*s,u=Ic(o)>180;u^(s*SuEu&&(Eu=a):u^(s*Su<(c=(c+360)%360-180)&&cEu&&(Eu=e)),u?til(ku,Cu)&&(Cu=t):il(t,Cu)>il(ku,Cu)&&(ku=t):Cu>=ku?(tCu&&(Cu=t)):t>Su?il(ku,t)>il(ku,Cu)&&(Cu=t):il(t,Cu)>il(ku,Cu)&&(ku=t)}else Du.push(Bu=[ku=t,Cu=t]);eEu&&(Eu=e),Nu=n,Su=t}function Ju(){Zu.point=Ku}function tl(){Bu[0]=ku,Bu[1]=Cu,Zu.point=Qu,Nu=null}function el(t,e){if(Nu){var n=t-Su;Xu.add(Ic(n)>180?n+(n>0?360:-360):n)}else Au=t,Mu=e;lu.point(t,e),Ku(t,e)}function nl(){lu.lineStart()}function rl(){el(Au,Mu),lu.lineEnd(),Ic(Xu)>Sc&&(ku=-(Cu=180)),Bu[0]=ku,Bu[1]=Cu,Nu=null}function il(t,e){return(e-=t)<0?e+360:e}function al(t,e){return t[0]-e[0]}function ol(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eil(r[0],r[1])&&(r[1]=i[1]),il(i[0],r[1])>il(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(s=il(r[1],i[0]))>o&&(o=s,ku=i[0],Cu=r[1])}return Du=Bu=null,ku===1/0||Tu===1/0?[[NaN,NaN],[NaN,NaN]]:[[ku,Tu],[Cu,Eu]]}var cl={sphere:Zc,point:ul,lineStart:hl,lineEnd:pl,polygonStart:function(){cl.lineStart=gl,cl.lineEnd=yl},polygonEnd:function(){cl.lineStart=hl,cl.lineEnd=pl}};function ul(t,e){t*=Oc;var n=Pc(e*=Oc);ll(n*Pc(t),n*$c(t),$c(e))}function ll(t,e,n){++Lu,Iu+=(t-Iu)/Lu,Ru+=(e-Ru)/Lu,Fu+=(n-Fu)/Lu}function hl(){cl.point=fl}function fl(t,e){t*=Oc;var n=Pc(e*=Oc);Wu=n*Pc(t),Vu=n*$c(t),Gu=$c(e),cl.point=dl,ll(Wu,Vu,Gu)}function dl(t,e){t*=Oc;var n=Pc(e*=Oc),r=n*Pc(t),i=n*$c(t),a=$c(e),o=Fc(Hc((o=Vu*a-Gu*i)*o+(o=Gu*r-Wu*a)*o+(o=Wu*i-Vu*r)*o),Wu*r+Vu*i+Gu*a);Ou+=o,Pu+=o*(Wu+(Wu=r)),Yu+=o*(Vu+(Vu=i)),ju+=o*(Gu+(Gu=a)),ll(Wu,Vu,Gu)}function pl(){cl.point=ul}function gl(){cl.point=ml}function yl(){vl(qu,Hu),cl.point=ul}function ml(t,e){qu=t,Hu=e,t*=Oc,e*=Oc,cl.point=vl;var n=Pc(e);Wu=n*Pc(t),Vu=n*$c(t),Gu=$c(e),ll(Wu,Vu,Gu)}function vl(t,e){t*=Oc;var n=Pc(e*=Oc),r=n*Pc(t),i=n*$c(t),a=$c(e),o=Vu*a-Gu*i,s=Gu*r-Wu*a,c=Wu*i-Vu*r,u=Hc(o*o+s*s+c*c),l=Gc(u),h=u&&-l/u;Uu+=h*o,zu+=h*s,$u+=h*c,Ou+=l,Pu+=l*(Wu+(Wu=r)),Yu+=l*(Vu+(Vu=i)),ju+=l*(Gu+(Gu=a)),ll(Wu,Vu,Gu)}function bl(t){Lu=Ou=Iu=Ru=Fu=Pu=Yu=ju=Uu=zu=$u=0,nu(t,cl);var e=Uu,n=zu,r=$u,i=e*e+n*n+r*r;return iMc?t+Math.round(-t/Bc)*Bc:t,e]}function kl(t,e,n){return(t%=Bc)?e||n?xl(Cl(t),El(e,n)):Cl(t):e||n?El(e,n):wl}function Tl(t){return function(e,n){return[(e+=t)>Mc?e-Bc:e<-Mc?e+Bc:e,n]}}function Cl(t){var e=Tl(t);return e.invert=Tl(-t),e}function El(t,e){var n=Pc(t),r=$c(t),i=Pc(e),a=$c(e);function o(t,e){var o=Pc(e),s=Pc(t)*o,c=$c(t)*o,u=$c(e),l=u*n+s*r;return[Fc(c*i-l*a,s*n-u*r),Gc(l*i+c*a)]}return o.invert=function(t,e){var o=Pc(e),s=Pc(t)*o,c=$c(t)*o,u=$c(e),l=u*i-c*a;return[Fc(c*i+u*a,s*n+l*r),Gc(l*n-s*r)]},o}function Sl(t){function e(e){return(e=t(e[0]*Oc,e[1]*Oc))[0]*=Lc,e[1]*=Lc,e}return t=kl(t[0]*Oc,t[1]*Oc,t.length>2?t[2]*Oc:0),e.invert=function(e){return(e=t.invert(e[0]*Oc,e[1]*Oc))[0]*=Lc,e[1]*=Lc,e},e}function Al(t,e,n,r,i,a){if(n){var o=Pc(e),s=$c(e),c=r*n;null==i?(i=e+r*Bc,a=e-c/2):(i=Ml(o,i),a=Ml(o,a),(r>0?ia)&&(i+=r*Bc));for(var u,l=i;r>0?l>a:l1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Bl(t,e){return Ic(t[0]-e[0])=0;--a)i.point((l=u[a])[0],l[1]);else r(f.x,f.p.x,-1,i);f=f.p}u=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}}function Il(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,C=T*k,E=C>Mc,S=g*x;if(Rl.add(Fc(S*T*$c(C),y*w+S*Pc(C))),o+=E?k+T*Bc:k,E^d>=n^b>=n){var A=bu(mu(f),mu(v));wu(A);var M=bu(a,A);wu(M);var N=(E^k>=0?-1:1)*Gc(M[2]);(r>N||r===N&&(A[0]||A[1]))&&(s+=E^k>=0?1:-1)}}return(o<-1e-6||o0){for(h||(i.polygonStart(),h=!0),i.lineStart(),t=0;t1&&2&c&&f.push(f.pop().concat(f.shift())),o.push(f.filter(jl))}return f}}function jl(t){return t.length>1}function Ul(t,e){return((t=t.x)[0]<0?t[1]-Nc-Sc:Nc-t[1])-((e=e.x)[0]<0?e[1]-Nc-Sc:Nc-e[1])}const zl=Yl((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a>0?Mc:-Mc,c=Ic(a-n);Ic(c-Mc)0?Nc:-Nc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(a,r),e=0):i!==s&&c>=Mc&&(Ic(n-i)Sc?Rc(($c(e)*(a=Pc(r))*$c(n)-$c(r)*(i=Pc(e))*$c(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=a,r=o),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Nc,r.point(-Mc,i),r.point(0,i),r.point(Mc,i),r.point(Mc,0),r.point(Mc,-i),r.point(0,-i),r.point(-Mc,-i),r.point(-Mc,0),r.point(-Mc,i);else if(Ic(t[0]-e[0])>Sc){var a=t[0]0,i=Ic(e)>Sc;function a(t,n){return Pc(t)*Pc(n)>e}function o(t,n,r){var i=[1,0,0],a=bu(mu(t),mu(n)),o=vu(a,a),s=a[0],c=o-s*s;if(!c)return!r&&t;var u=e*o/c,l=-e*s/c,h=bu(i,a),f=xu(i,u);_u(f,xu(a,l));var d=h,p=vu(f,d),g=vu(d,d),y=p*p-g*(vu(f,f)-1);if(!(y<0)){var m=Hc(y),v=xu(d,(-p-m)/g);if(_u(v,f),v=yu(v),!r)return v;var b,_=t[0],x=n[0],w=t[1],k=n[1];x<_&&(b=_,_=x,x=b);var T=x-_,C=Ic(T-Mc)0^v[1]<(Ic(v[0]-_)Mc^(_<=v[0]&&v[0]<=x)){var E=xu(d,(-p+m)/g);return _u(E,f),[v,yu(E)]}}}function s(e,n){var i=r?t:Mc-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return Yl(a,(function(t){var e,n,c,u,l;return{lineStart:function(){u=c=!1,l=1},point:function(h,f){var d,p=[h,f],g=a(h,f),y=r?g?0:s(h,f):g?s(h+(h<0?Mc:-Mc),f):0;if(!e&&(u=c=g)&&t.lineStart(),g!==c&&(!(d=o(e,p))||Bl(e,d)||Bl(p,d))&&(p[2]=1),g!==c)l=0,g?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&r^g){var m;y&n||!(m=o(p,e,!0))||(l=0,r?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!g||e&&Bl(e,p)||t.point(p[0],p[1]),e=p,c=g,n=y},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return l|(u&&c)<<1}}}),(function(e,r,i,a){Al(a,t,n,i,e,r)}),r?[0,-t]:[-Mc,t-Mc])}var ql=1e9,Hl=-ql;function Wl(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,s,u){var l=0,h=0;if(null==i||(l=o(i,s))!==(h=o(a,s))||c(i,a)<0^s>0)do{u.point(0===l||3===l?t:n,l>1?r:e)}while((l=(l+s+4)%4)!==h);else u.point(a[0],a[1])}function o(r,i){return Ic(r[0]-t)0?0:3:Ic(r[0]-n)0?2:1:Ic(r[1]-e)0?1:0:i>0?3:2}function s(t,e){return c(t.x,e.x)}function c(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var c,u,l,h,f,d,p,g,y,m,v,b=o,_=Dl(),x={point:w,lineStart:function(){x.point=k,u&&u.push(l=[]),m=!0,y=!1,p=g=NaN},lineEnd:function(){c&&(k(h,f),d&&y&&_.rejoin(),c.push(_.result())),x.point=w,y&&b.lineEnd()},polygonStart:function(){b=_,c=[],u=[],v=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=u.length;nr&&(f-a)*(r-o)>(d-o)*(t-a)&&++e:d<=r&&(f-a)*(r-o)<(d-o)*(t-a)&&--e;return e}(),n=v&&e,i=(c=P(c)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&Ol(c,s,e,a,o),o.polygonEnd()),b=o,c=u=l=null}};function w(t,e){i(t,e)&&b.point(t,e)}function k(a,o){var s=i(a,o);if(u&&l.push([a,o]),m)h=a,f=o,d=s,m=!1,s&&(b.lineStart(),b.point(a,o));else if(s&&y)b.point(a,o);else{var c=[p=Math.max(Hl,Math.min(ql,p)),g=Math.max(Hl,Math.min(ql,g))],_=[a=Math.max(Hl,Math.min(ql,a)),o=Math.max(Hl,Math.min(ql,o))];!function(t,e,n,r,i,a){var o,s=t[0],c=t[1],u=0,l=1,h=e[0]-s,f=e[1]-c;if(o=n-s,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>l)return;o>u&&(u=o)}if(o=i-s,h||!(o<0)){if(o/=h,h<0){if(o>l)return;o>u&&(u=o)}else if(h>0){if(o0)){if(o/=f,f<0){if(o0){if(o>l)return;o>u&&(u=o)}if(o=a-c,f||!(o<0)){if(o/=f,f<0){if(o>l)return;o>u&&(u=o)}else if(f>0){if(o0&&(t[0]=s+u*h,t[1]=c+u*f),l<1&&(e[0]=s+l*h,e[1]=c+l*f),!0}}}}}(c,_,t,e,n,r)?s&&(b.lineStart(),b.point(a,o),v=!1):(y||(b.lineStart(),b.point(c[0],c[1])),b.point(_[0],_[1]),s||b.lineEnd(),v=!1)}p=a,g=o,y=s}return x}}function Vl(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=Wl(r,i,a,o)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,n):[[r,i],[a,o]]}}}var Gl,Xl,Zl,Ql=kc(),Kl={sphere:Zc,point:Zc,lineStart:function(){Kl.point=th,Kl.lineEnd=Jl},lineEnd:Zc,polygonStart:Zc,polygonEnd:Zc};function Jl(){Kl.point=Kl.lineEnd=Zc}function th(t,e){Gl=t*=Oc,Xl=$c(e*=Oc),Zl=Pc(e),Kl.point=eh}function eh(t,e){t*=Oc;var n=$c(e*=Oc),r=Pc(e),i=Ic(t-Gl),a=Pc(i),o=r*$c(i),s=Zl*n-Xl*r*a,c=Xl*n+Zl*r*a;Ql.add(Fc(Hc(o*o+s*s),c)),Gl=t,Xl=n,Zl=r}function nh(t){return Ql.reset(),nu(t,Kl),+Ql}var rh=[null,null],ih={type:\\\"LineString\\\",coordinates:rh};function ah(t,e){return rh[0]=t,rh[1]=e,nh(ih)}var oh={Feature:function(t,e){return ch(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0&&(i=ah(t[a],t[a-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))Sc})).map(c)).concat(k(Yc(a/d)*d,i,d).filter((function(t){return Ic(t%g)>Sc})).map(u))}return m.lines=function(){return v().map((function(t){return{type:\\\"LineString\\\",coordinates:t}}))},m.outline=function(){return{type:\\\"Polygon\\\",coordinates:[l(r).concat(h(o).slice(1),l(n).reverse().slice(1),h(s).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],s=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),s>o&&(t=s,s=o,o=t),m.precision(y)):[[r,s],[n,o]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),m.precision(y)):[[e,a],[t,i]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],m):[p,g]},m.stepMinor=function(t){return arguments.length?(f=+t[0],d=+t[1],m):[f,d]},m.precision=function(f){return arguments.length?(y=+f,c=gh(a,i,90),u=yh(e,t,y),l=gh(s,o,90),h=yh(r,n,y),m):y},m.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}function vh(){return mh()()}function bh(t,e){var n=t[0]*Oc,r=t[1]*Oc,i=e[0]*Oc,a=e[1]*Oc,o=Pc(r),s=$c(r),c=Pc(a),u=$c(a),l=o*Pc(n),h=o*$c(n),f=c*Pc(i),d=c*$c(i),p=2*Gc(Hc(Xc(a-r)+o*c*Xc(i-n))),g=$c(p),y=p?function(t){var e=$c(t*=p)/g,n=$c(p-t)/g,r=n*l+e*f,i=n*h+e*d,a=n*s+e*u;return[Fc(i,r)*Lc,Fc(a,Hc(r*r+i*i))*Lc]}:function(){return[n*Lc,r*Lc]};return y.distance=p,y}function _h(t){return t}var xh,wh,kh,Th,Ch=kc(),Eh=kc(),Sh={point:Zc,lineStart:Zc,lineEnd:Zc,polygonStart:function(){Sh.lineStart=Ah,Sh.lineEnd=Dh},polygonEnd:function(){Sh.lineStart=Sh.lineEnd=Sh.point=Zc,Ch.add(Ic(Eh)),Eh.reset()},result:function(){var t=Ch/2;return Ch.reset(),t}};function Ah(){Sh.point=Mh}function Mh(t,e){Sh.point=Nh,xh=kh=t,wh=Th=e}function Nh(t,e){Eh.add(Th*t-kh*e),kh=t,Th=e}function Dh(){Nh(xh,wh)}const Bh=Sh;var Lh=1/0,Oh=Lh,Ih=-Lh,Rh=Ih,Fh={point:function(t,e){tIh&&(Ih=t),eRh&&(Rh=e)},lineStart:Zc,lineEnd:Zc,polygonStart:Zc,polygonEnd:Zc,result:function(){var t=[[Lh,Oh],[Ih,Rh]];return Ih=Rh=-(Oh=Lh=1/0),t}};const Ph=Fh;var Yh,jh,Uh,zh,$h=0,qh=0,Hh=0,Wh=0,Vh=0,Gh=0,Xh=0,Zh=0,Qh=0,Kh={point:Jh,lineStart:tf,lineEnd:rf,polygonStart:function(){Kh.lineStart=af,Kh.lineEnd=of},polygonEnd:function(){Kh.point=Jh,Kh.lineStart=tf,Kh.lineEnd=rf},result:function(){var t=Qh?[Xh/Qh,Zh/Qh]:Gh?[Wh/Gh,Vh/Gh]:Hh?[$h/Hh,qh/Hh]:[NaN,NaN];return $h=qh=Hh=Wh=Vh=Gh=Xh=Zh=Qh=0,t}};function Jh(t,e){$h+=t,qh+=e,++Hh}function tf(){Kh.point=ef}function ef(t,e){Kh.point=nf,Jh(Uh=t,zh=e)}function nf(t,e){var n=t-Uh,r=e-zh,i=Hc(n*n+r*r);Wh+=i*(Uh+t)/2,Vh+=i*(zh+e)/2,Gh+=i,Jh(Uh=t,zh=e)}function rf(){Kh.point=Jh}function af(){Kh.point=sf}function of(){cf(Yh,jh)}function sf(t,e){Kh.point=cf,Jh(Yh=Uh=t,jh=zh=e)}function cf(t,e){var n=t-Uh,r=e-zh,i=Hc(n*n+r*r);Wh+=i*(Uh+t)/2,Vh+=i*(zh+e)/2,Gh+=i,Xh+=(i=zh*t-Uh*e)*(Uh+t),Zh+=i*(zh+e),Qh+=3*i,Jh(Uh=t,zh=e)}const uf=Kh;function lf(t){this._context=t}lf.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Bc)}},result:Zc};var hf,ff,df,pf,gf,yf=kc(),mf={point:Zc,lineStart:function(){mf.point=vf},lineEnd:function(){hf&&bf(ff,df),mf.point=Zc},polygonStart:function(){hf=!0},polygonEnd:function(){hf=null},result:function(){var t=+yf;return yf.reset(),t}};function vf(t,e){mf.point=bf,ff=pf=t,df=gf=e}function bf(t,e){pf-=t,gf-=e,yf.add(Hc(pf*pf+gf*gf)),pf=t,gf=e}const _f=mf;function xf(){this._string=[]}function wf(t){return\\\"m0,\\\"+t+\\\"a\\\"+t+\\\",\\\"+t+\\\" 0 1,1 0,\\\"+-2*t+\\\"a\\\"+t+\\\",\\\"+t+\\\" 0 1,1 0,\\\"+2*t+\\\"z\\\"}function kf(t,e){var n,r,i=4.5;function a(t){return t&&(\\\"function\\\"==typeof i&&r.pointRadius(+i.apply(this,arguments)),nu(t,n(r))),r.result()}return a.area=function(t){return nu(t,n(Bh)),Bh.result()},a.measure=function(t){return nu(t,n(_f)),_f.result()},a.bounds=function(t){return nu(t,n(Ph)),Ph.result()},a.centroid=function(t){return nu(t,n(uf)),uf.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,_h):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new xf):new lf(e=t),\\\"function\\\"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i=\\\"function\\\"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function Tf(t){return{stream:Cf(t)}}function Cf(t){return function(e){var n=new Ef;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Ef(){}function Sf(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),nu(n,t.stream(Ph)),e(Ph.result()),null!=r&&t.clipExtent(r),t}function Af(t,e,n){return Sf(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,s])}),n)}function Mf(t,e,n){return Af(t,[[0,0],e],n)}function Nf(t,e,n){return Sf(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function Df(t,e,n){return Sf(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}xf.prototype={_radius:4.5,_circle:wf(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push(\\\"Z\\\"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push(\\\"M\\\",t,\\\",\\\",e),this._point=1;break;case 1:this._string.push(\\\"L\\\",t,\\\",\\\",e);break;default:null==this._circle&&(this._circle=wf(this._radius)),this._string.push(\\\"M\\\",t,\\\",\\\",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join(\\\"\\\");return this._string=[],t}return null}},Ef.prototype={constructor:Ef,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Bf=Pc(30*Oc);function Lf(t,e){return+e?function(t,e){function n(r,i,a,o,s,c,u,l,h,f,d,p,g,y){var m=u-r,v=l-i,b=m*m+v*v;if(b>4*e&&g--){var _=o+f,x=s+d,w=c+p,k=Hc(_*_+x*x+w*w),T=Gc(w/=k),C=Ic(Ic(w)-1)e||Ic((m*M+v*N)/b-.5)>.3||o*f+s*d+c*p2?t[2]%360*Oc:0,M()):[y*Lc,m*Lc,v*Lc]},S.angle=function(t){return arguments.length?(b=t%360*Oc,M()):b*Lc},S.reflectX=function(t){return arguments.length?(_=t?-1:1,M()):_<0},S.reflectY=function(t){return arguments.length?(x=t?-1:1,M()):x<0},S.precision=function(t){return arguments.length?(o=Lf(s,E=t*t),N()):Hc(E)},S.fitExtent=function(t,e){return Af(S,t,e)},S.fitSize=function(t,e){return Mf(S,t,e)},S.fitWidth=function(t,e){return Nf(S,t,e)},S.fitHeight=function(t,e){return Df(S,t,e)},function(){return e=t.apply(this,arguments),S.invert=e.invert&&A,M()}}function Yf(t){var e=0,n=Mc/3,r=Pf(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Oc,n=t[1]*Oc):[e*Lc,n*Lc]},i}function jf(t,e){var n=$c(t),r=(n+$c(e))/2;if(Ic(r)=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},l.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),s.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-Nc+Sc&&(e=-Nc+Sc):e>Nc-Sc&&(e=Nc-Sc);var n=i/zc(Jf(e),r);return[n*$c(r*t),i-n*Pc(r*t)]}return a.invert=function(t,e){var n=i-e,a=qc(r)*Hc(t*t+n*n),o=Fc(t,Ic(n))*qc(n);return n*r<0&&(o-=Mc*qc(t)*qc(n)),[o/r,2*Rc(zc(i/a,1/r))-Nc]},a}function ed(){return Yf(td).scale(109.5).parallels([30,30])}function nd(t,e){return[t,e]}function rd(){return Ff(nd).scale(152.63)}function id(t,e){var n=Pc(t),r=t===e?$c(t):(n-Pc(e))/(e-t),i=n/r+t;if(Ic(r)2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function Td(t,e){return t.parent===e.parent?1:2}function Cd(t,e){return t+e.x}function Ed(t,e){return Math.max(t,e.y)}function Sd(){var t=Td,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Cd,0)/t.length}(n),e.y=function(t){return 1+t.reduce(Ed,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),u=s.x-t(s,c)/2,l=c.x+t(c,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-u)/(l-u)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Ad(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Md(t,e){var n,r,i,a,o,s=new Ld(t),c=+t.value&&(s.value=t.value),u=[s];for(null==e&&(e=Nd);n=u.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)u.push(r=n.children[a]=new Ld(i[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Bd)}function Nd(t){return t.children}function Dd(t){t.data=t.data.data}function Bd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Ld(t){this.data=t,this.depth=this.height=0,this.parent=null}hd.invert=function(t,e){for(var n,r=e,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=n=(r*(od+sd*i+a*(cd+ud*i))-e)/(od+3*sd*i+a*(7*cd+9*ud*i)))*r)*i*i,!(Ic(n)Sc&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},vd.invert=Hf(Gc),_d.invert=Hf((function(t){return 2*Rc(t)})),wd.invert=function(t,e){return[-e,2*Rc(jc(t))-Nc]},Ld.prototype=Md.prototype={constructor:Ld,count:function(){return this.eachAfter(Ad)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Md(this).eachBefore(Dd)}};var Od=Array.prototype.slice;function Id(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Od.call(t))).length,a=[];r0&&n*n>r*r+i*i}function Yd(t,e){for(var n=0;n(o*=o)?(r=(u+o-i)/(2*u),a=Math.sqrt(Math.max(0,o/u-r*r)),n.x=t.x-r*s-a*c,n.y=t.y-r*c+a*s):(r=(u+i-o)/(2*u),a=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-a*c,n.y=e.y+r*c+a*s)):(n.x=e.x+n.r,n.y=e.y)}function qd(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Hd(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Wd(t){this._=t,this.next=null,this.previous=null}function Vd(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,s,c,u,l,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;$d(n,e,r=t[2]),e=new Wd(e),n=new Wd(n),r=new Wd(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s0)throw new Error(\\\"cycle\\\");return a}return n.id=function(e){return arguments.length?(t=Zd(e),n):t},n.parentId=function(t){return arguments.length?(e=Zd(t),n):e},n}function fp(t,e){return t.parent===e.parent?1:2}function dp(t){var e=t.children;return e?e[0]:t.t}function pp(t){var e=t.children;return e?e[e.length-1]:t.t}function gp(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function yp(t,e,n){return t.a.parent===e.parent?t.a:n}function mp(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function vp(){var t=fp,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new mp(t,0),s=[o];e=s.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)s.push(n=e.children[i]=new mp(r[i],i)),n.parent=e;return(o.parent=new mp(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(s);else{var u=i,l=i,h=i;i.eachBefore((function(t){t.xl.x&&(l=t),t.depth>h.depth&&(h=t)}));var f=u===l?1:t(u,l)/2,d=f-u.x,p=e/(l.x+f+d),g=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,s=n,c=a.parent.children[0],u=a.m,l=o.m,h=s.m,f=c.m;s=pp(s),a=dp(a),s&&a;)c=dp(c),(o=pp(o)).a=e,(i=s.z+h-a.z-u+t(s._,a._))>0&&(gp(yp(s,e,r),e,i),u+=i,l+=i),h+=s.m,u+=a.m,f+=c.m,l+=o.m;s&&!pp(o)&&(o.t=s,o.m+=h-l),a&&!dp(c)&&(c.t=a,c.m+=u-f,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function bp(t,e,n,r,i){for(var a,o=t.children,s=-1,c=o.length,u=t.value&&(i-n)/t.value;++sf&&(f=s),y=l*l*g,(d=Math.max(f/y,y/h))>p){l-=s;break}p=d}m.push(o={value:l,dice:c1?e:1)},n}(_p);function kp(){var t=wp,e=!1,n=1,r=1,i=[0],a=Qd,o=Qd,s=Qd,c=Qd,u=Qd;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(ip),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h=n-1){var l=s[e];return l.x0=i,l.y0=a,l.x1=o,void(l.y1=c)}for(var h=u[e],f=r/2+h,d=e+1,p=n-1;d>>1;u[g]c-a){var v=(i*m+o*y)/r;t(e,d,y,i,a,v,c),t(d,n,m,v,a,o,c)}else{var b=(a*m+c*y)/r;t(e,d,y,i,a,o,b),t(d,n,m,i,b,o,c)}}(0,c,t.value,e,n,r,i)}function Cp(t,e,n,r,i){(1&t.depth?bp:ap)(t,e,n,r,i)}const Ep=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,s,c,u,l,h=-1,f=o.length,d=t.value;++h1?e:1)},n}(_p);function Sp(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function Ap(t,e){var n=dn(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function Mp(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Np=Math.SQRT2;function Dp(t){return((t=Math.exp(t))+1/t)/2}function Bp(t,e){var n,r,i=t[0],a=t[1],o=t[2],s=e[0],c=e[1],u=e[2],l=s-i,h=c-a,f=l*l+h*h;if(f<1e-12)r=Math.log(u/o)/Np,n=function(t){return[i+t*l,a+t*h,o*Math.exp(Np*t*r)]};else{var d=Math.sqrt(f),p=(u*u-o*o+4*f)/(2*o*2*d),g=(u*u-o*o-4*f)/(2*u*2*d),y=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(g*g+1)-g);r=(m-y)/Np,n=function(t){var e,n=t*r,s=Dp(y),c=o/(2*d)*(s*(e=Np*n+y,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(y));return[i+c*l,a+c*h,o*s/Dp(Np*n+y)]}}return n.duration=1e3*r,n}function Lp(t){return function(e,n){var r=t((e=an(e)).h,(n=an(n)).h),i=pn(e.s,n.s),a=pn(e.l,n.l),o=pn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+\\\"\\\"}}}const Op=Lp(dn);var Ip=Lp(pn);function Rp(t,e){var n=pn((t=Ta(t)).l,(e=Ta(e)).l),r=pn(t.a,e.a),i=pn(t.b,e.b),a=pn(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=a(e),t+\\\"\\\"}}function Fp(t){return function(e,n){var r=t((e=Ba(e)).h,(n=Ba(n)).h),i=pn(e.c,n.c),a=pn(e.l,n.l),o=pn(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=a(t),e.opacity=o(t),e+\\\"\\\"}}}const Pp=Fp(dn);var Yp=Fp(pn);function jp(t){return function e(n){function r(e,r){var i=t((e=qa(e)).h,(r=qa(r)).h),a=pn(e.s,r.s),o=pn(e.l,r.l),s=pn(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=a(t),e.l=o(Math.pow(t,n)),e.opacity=s(t),e+\\\"\\\"}}return n=+n,r.gamma=e,r}(1)}const Up=jp(dn);var zp=jp(pn);function $p(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n1&&Vp(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Zp(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)u.push(t[r[a[e]][2]]);for(e=+s;es!=u>s&&o<(c-n)*(s-r)/(u-r)+n&&(l=!l),c=n,u=r;return l}function Kp(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],s=a[1],c=0;++r1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(Jp),ng=function t(e){function n(){var t=eg.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Jp),rg=function t(e){function n(t){return function(){for(var n=0,r=0;rr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function xg(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i2?wg:xg,i=a=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(o.map(t),s,c)))(t(u(e)))}return h.invert=function(n){return u(e((a||(a=r(s,o.map(t),Tn)))(n)))},h.domain=function(t){return arguments.length?(o=ug.call(t,yg),u===vg||(u=_g(o)),l()):o.slice()},h.range=function(t){return arguments.length?(s=lg.call(t),l()):s.slice()},h.rangeRound=function(t){return s=lg.call(t),c=Mp,l()},h.clamp=function(t){return arguments.length?(u=t?_g(o):vg,h):u!==vg},h.interpolate=function(t){return arguments.length?(c=t,l()):c},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function Cg(t,e){return Tg()(t,e)}function Eg(t,e,n,r){var i,a=M(t,e,n);switch((r=cc(null==r?\\\",f\\\":r)).type){case\\\"s\\\":var o=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=xc(a,o))||(r.precision=i),gc(r,o);case\\\"\\\":case\\\"e\\\":case\\\"g\\\":case\\\"p\\\":case\\\"r\\\":null!=r.precision||isNaN(i=wc(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-(\\\"e\\\"===r.type));break;case\\\"f\\\":case\\\"%\\\":null!=r.precision||isNaN(i=_c(a))||(r.precision=i-2*(\\\"%\\\"===r.type))}return pc(r)}function Sg(t){var e=t.domain;return t.ticks=function(t){var n=e();return S(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Eg(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,s=i[a],c=i[o];return c0?r=A(s=Math.floor(s/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=A(s=Math.ceil(s*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(s/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(s*r)/r,i[o]=Math.floor(c*r)/r,e(i)),t},t}function Ag(){var t=Cg(vg,vg);return t.copy=function(){return kg(t,Ag())},og.apply(t,arguments),Sg(t)}function Mg(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=ug.call(e,yg),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return Mg(t).unknown(e)},t=arguments.length?ug.call(t,yg):[0,1],Sg(n)}function Ng(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;fc)break;g.push(h)}}else for(;f=1;--l)if(!((h=u*l)c)break;g.push(h)}}else g=S(f,d,Math.min(d-f,p)).map(n);return r?g.reverse():g},r.tickFormat=function(t,i){if(null==i&&(i=10===a?\\\".0e\\\":\\\",\\\"),\\\"function\\\"!=typeof i&&(i=pc(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a0?r[i-1]:e[0],i=r?[i[r-1],n]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length?(t=e,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return Zg().domain([e,n]).range(a).unknown(t)},og.apply(Sg(o),arguments)}function Qg(){var t,e=[.5],n=[0,1],r=1;function i(i){return i<=i?n[u(e,i,0,r)]:t}return i.domain=function(t){return arguments.length?(e=lg.call(t),r=Math.min(e.length,n.length-1),i):e.slice()},i.range=function(t){return arguments.length?(n=lg.call(t),r=Math.min(e.length,n.length-1),i):n.slice()},i.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return Qg().domain(e).range(n).unknown(t)},og.apply(i,arguments)}var Kg=new Date,Jg=new Date;function ty(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Kg.setTime(+e),Jg.setTime(+r),t(Kg),t(Jg),Math.floor(n(Kg,Jg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var ey=ty((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));ey.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ty((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const ny=ey;var ry=ey.range,iy=ty((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const ay=iy;var oy=iy.range,sy=1e3,cy=6e4,uy=36e5,ly=864e5,hy=6048e5;function fy(t){return ty((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*cy)/hy}))}var dy=fy(0),py=fy(1),gy=fy(2),yy=fy(3),my=fy(4),vy=fy(5),by=fy(6),_y=dy.range,xy=py.range,wy=gy.range,ky=yy.range,Ty=my.range,Cy=vy.range,Ey=by.range,Sy=ty((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*cy)/ly}),(function(t){return t.getDate()-1}));const Ay=Sy;var My=Sy.range,Ny=ty((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*sy-t.getMinutes()*cy)}),(function(t,e){t.setTime(+t+e*uy)}),(function(t,e){return(e-t)/uy}),(function(t){return t.getHours()}));const Dy=Ny;var By=Ny.range,Ly=ty((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*sy)}),(function(t,e){t.setTime(+t+e*cy)}),(function(t,e){return(e-t)/cy}),(function(t){return t.getMinutes()}));const Oy=Ly;var Iy=Ly.range,Ry=ty((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*sy)}),(function(t,e){return(e-t)/sy}),(function(t){return t.getUTCSeconds()}));const Fy=Ry;var Py=Ry.range,Yy=ty((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Yy.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ty((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Yy:null};const jy=Yy;var Uy=Yy.range;function zy(t){return ty((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/hy}))}var $y=zy(0),qy=zy(1),Hy=zy(2),Wy=zy(3),Vy=zy(4),Gy=zy(5),Xy=zy(6),Zy=$y.range,Qy=qy.range,Ky=Hy.range,Jy=Wy.range,tm=Vy.range,em=Gy.range,nm=Xy.range,rm=ty((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/ly}),(function(t){return t.getUTCDate()-1}));const im=rm;var am=rm.range,om=ty((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));om.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ty((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const sm=om;var cm=om.range;function um(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function lm(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function hm(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function fm(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,s=t.months,c=t.shortMonths,u=Tm(i),l=Cm(i),h=Tm(a),f=Cm(a),d=Tm(o),p=Cm(o),g=Tm(s),y=Cm(s),m=Tm(c),v=Cm(c),b={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:Wm,e:Wm,f:Qm,g:cv,G:lv,H:Vm,I:Gm,j:Xm,L:Zm,m:Km,M:Jm,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Lv,s:Ov,S:tv,u:ev,U:nv,V:iv,w:av,W:ov,x:null,X:null,y:sv,Y:uv,Z:hv,\\\"%\\\":Bv},_={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:fv,e:fv,f:mv,g:Av,G:Nv,H:dv,I:pv,j:gv,L:yv,m:vv,M:bv,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Lv,s:Ov,S:_v,u:xv,U:wv,V:Tv,w:Cv,W:Ev,x:null,X:null,y:Sv,Y:Mv,Z:Dv,\\\"%\\\":Bv},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return T(t,e,n,r)},d:Rm,e:Rm,f:zm,g:Bm,G:Dm,H:Pm,I:Pm,j:Fm,L:Um,m:Im,M:Ym,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1},q:Om,Q:qm,s:Hm,S:jm,u:Sm,U:Am,V:Mm,w:Em,W:Nm,x:function(t,e,r){return T(t,n,e,r)},X:function(t,e,n){return T(t,r,e,n)},y:Bm,Y:Dm,Z:Lm,\\\"%\\\":$m};function w(t,e){return function(n){var r,i,a,o=[],s=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;\\\"w\\\"in a||(a.w=1),\\\"Z\\\"in a?(i=(r=lm(hm(a.y,0,1))).getUTCDay(),r=i>4||0===i?qy.ceil(r):qy(r),r=im.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=um(hm(a.y,0,1))).getDay(),r=i>4||0===i?py.ceil(r):py(r),r=Ay.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else(\\\"W\\\"in a||\\\"U\\\"in a)&&(\\\"w\\\"in a||(a.w=\\\"u\\\"in a?a.u%7:\\\"W\\\"in a?1:0),i=\\\"Z\\\"in a?lm(hm(a.y,0,1)).getUTCDay():um(hm(a.y,0,1)).getDay(),a.m=0,a.d=\\\"W\\\"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return\\\"Z\\\"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,lm(a)):um(a)}}function T(t,e,n,r){for(var i,a,o=0,s=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=x[i in vm?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),{format:function(t){var e=w(t+=\\\"\\\",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+=\\\"\\\",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+=\\\"\\\",_);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+=\\\"\\\",!0);return e.toString=function(){return t},e}}}var dm,pm,gm,ym,mm,vm={\\\"-\\\":\\\"\\\",_:\\\" \\\",0:\\\"0\\\"},bm=/^\\\\s*\\\\d+/,_m=/^%/,xm=/[\\\\\\\\^$*+?|[\\\\]().{}]/g;function wm(t,e,n){var r=t<0?\\\"-\\\":\\\"\\\",i=(r?-t:t)+\\\"\\\",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function Lm(t,e,n){var r=/^(Z)|([+-]\\\\d\\\\d)(?::?(\\\\d\\\\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||\\\"00\\\")),n+r[0].length):-1}function Om(t,e,n){var r=bm.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Im(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Rm(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Fm(t,e,n){var r=bm.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pm(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ym(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function jm(t,e,n){var r=bm.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Um(t,e,n){var r=bm.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function zm(t,e,n){var r=bm.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function $m(t,e,n){var r=_m.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function qm(t,e,n){var r=bm.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Hm(t,e,n){var r=bm.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Wm(t,e){return wm(t.getDate(),e,2)}function Vm(t,e){return wm(t.getHours(),e,2)}function Gm(t,e){return wm(t.getHours()%12||12,e,2)}function Xm(t,e){return wm(1+Ay.count(ny(t),t),e,3)}function Zm(t,e){return wm(t.getMilliseconds(),e,3)}function Qm(t,e){return Zm(t,e)+\\\"000\\\"}function Km(t,e){return wm(t.getMonth()+1,e,2)}function Jm(t,e){return wm(t.getMinutes(),e,2)}function tv(t,e){return wm(t.getSeconds(),e,2)}function ev(t){var e=t.getDay();return 0===e?7:e}function nv(t,e){return wm(dy.count(ny(t)-1,t),e,2)}function rv(t){var e=t.getDay();return e>=4||0===e?my(t):my.ceil(t)}function iv(t,e){return t=rv(t),wm(my.count(ny(t),t)+(4===ny(t).getDay()),e,2)}function av(t){return t.getDay()}function ov(t,e){return wm(py.count(ny(t)-1,t),e,2)}function sv(t,e){return wm(t.getFullYear()%100,e,2)}function cv(t,e){return wm((t=rv(t)).getFullYear()%100,e,2)}function uv(t,e){return wm(t.getFullYear()%1e4,e,4)}function lv(t,e){var n=t.getDay();return wm((t=n>=4||0===n?my(t):my.ceil(t)).getFullYear()%1e4,e,4)}function hv(t){var e=t.getTimezoneOffset();return(e>0?\\\"-\\\":(e*=-1,\\\"+\\\"))+wm(e/60|0,\\\"0\\\",2)+wm(e%60,\\\"0\\\",2)}function fv(t,e){return wm(t.getUTCDate(),e,2)}function dv(t,e){return wm(t.getUTCHours(),e,2)}function pv(t,e){return wm(t.getUTCHours()%12||12,e,2)}function gv(t,e){return wm(1+im.count(sm(t),t),e,3)}function yv(t,e){return wm(t.getUTCMilliseconds(),e,3)}function mv(t,e){return yv(t,e)+\\\"000\\\"}function vv(t,e){return wm(t.getUTCMonth()+1,e,2)}function bv(t,e){return wm(t.getUTCMinutes(),e,2)}function _v(t,e){return wm(t.getUTCSeconds(),e,2)}function xv(t){var e=t.getUTCDay();return 0===e?7:e}function wv(t,e){return wm($y.count(sm(t)-1,t),e,2)}function kv(t){var e=t.getUTCDay();return e>=4||0===e?Vy(t):Vy.ceil(t)}function Tv(t,e){return t=kv(t),wm(Vy.count(sm(t),t)+(4===sm(t).getUTCDay()),e,2)}function Cv(t){return t.getUTCDay()}function Ev(t,e){return wm(qy.count(sm(t)-1,t),e,2)}function Sv(t,e){return wm(t.getUTCFullYear()%100,e,2)}function Av(t,e){return wm((t=kv(t)).getUTCFullYear()%100,e,2)}function Mv(t,e){return wm(t.getUTCFullYear()%1e4,e,4)}function Nv(t,e){var n=t.getUTCDay();return wm((t=n>=4||0===n?Vy(t):Vy.ceil(t)).getUTCFullYear()%1e4,e,4)}function Dv(){return\\\"+0000\\\"}function Bv(){return\\\"%\\\"}function Lv(t){return+t}function Ov(t){return Math.floor(+t/1e3)}function Iv(t){return dm=fm(t),pm=dm.format,gm=dm.parse,ym=dm.utcFormat,mm=dm.utcParse,dm}Iv({dateTime:\\\"%x, %X\\\",date:\\\"%-m/%-d/%Y\\\",time:\\\"%-I:%M:%S %p\\\",periods:[\\\"AM\\\",\\\"PM\\\"],days:[\\\"Sunday\\\",\\\"Monday\\\",\\\"Tuesday\\\",\\\"Wednesday\\\",\\\"Thursday\\\",\\\"Friday\\\",\\\"Saturday\\\"],shortDays:[\\\"Sun\\\",\\\"Mon\\\",\\\"Tue\\\",\\\"Wed\\\",\\\"Thu\\\",\\\"Fri\\\",\\\"Sat\\\"],months:[\\\"January\\\",\\\"February\\\",\\\"March\\\",\\\"April\\\",\\\"May\\\",\\\"June\\\",\\\"July\\\",\\\"August\\\",\\\"September\\\",\\\"October\\\",\\\"November\\\",\\\"December\\\"],shortMonths:[\\\"Jan\\\",\\\"Feb\\\",\\\"Mar\\\",\\\"Apr\\\",\\\"May\\\",\\\"Jun\\\",\\\"Jul\\\",\\\"Aug\\\",\\\"Sep\\\",\\\"Oct\\\",\\\"Nov\\\",\\\"Dec\\\"]});var Rv=31536e6;function Fv(t){return new Date(t)}function Pv(t){return t instanceof Date?+t:+new Date(+t)}function Yv(t,e,n,r,i,o,s,c,u){var l=Cg(vg,vg),h=l.invert,f=l.domain,d=u(\\\".%L\\\"),p=u(\\\":%S\\\"),g=u(\\\"%I:%M\\\"),y=u(\\\"%I %p\\\"),m=u(\\\"%a %d\\\"),v=u(\\\"%b %d\\\"),b=u(\\\"%B\\\"),_=u(\\\"%Y\\\"),x=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,Rv]];function w(a){return(s(a)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return S_.h=360*t-100,S_.s=1.5-1.5*e,S_.l=.8-.9*e,S_+\\\"\\\"}var M_=Qe(),N_=Math.PI/3,D_=2*Math.PI/3;function B_(t){var e;return t=(.5-t)*Math.PI,M_.r=255*(e=Math.sin(t))*e,M_.g=255*(e=Math.sin(t+N_))*e,M_.b=255*(e=Math.sin(t+D_))*e,M_+\\\"\\\"}function L_(t){return t=Math.max(0,Math.min(1,t)),\\\"rgb(\\\"+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+\\\", \\\"+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+\\\")\\\"}function O_(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const I_=O_(hb(\\\"44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725\\\"));var R_=O_(hb(\\\"00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf\\\")),F_=O_(hb(\\\"00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4\\\")),P_=O_(hb(\\\"0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921\\\"));function Y_(t){return Te(ie(t).call(document.documentElement))}var j_=0;function U_(){return new z_}function z_(){this._=\\\"@\\\"+(++j_).toString(36)}function $_(t){return\\\"string\\\"==typeof t?new xe([document.querySelectorAll(t)],[document.documentElement]):new xe([null==t?[]:t],_e)}function q_(t,e){null==e&&(e=Nn().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n1?0:t<-1?tx:Math.acos(t)}function ix(t){return t>=1?ex:t<=-1?-ex:Math.asin(t)}function ax(t){return t.innerRadius}function ox(t){return t.outerRadius}function sx(t){return t.startAngle}function cx(t){return t.endAngle}function ux(t){return t&&t.padAngle}function lx(t,e,n,r,i,a,o,s){var c=n-t,u=r-e,l=o-i,h=s-a,f=h*c-l*u;if(!(f*fN*N+D*D&&(T=E,C=S),{cx:T,cy:C,x01:-l,y01:-h,x11:T*(i/x-1),y11:C*(i/x-1)}}function fx(){var t=ax,e=ox,n=H_(0),r=null,i=sx,a=cx,o=ux,s=null;function c(){var c,u,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-ex,d=a.apply(this,arguments)-ex,p=W_(d-f),g=d>f;if(s||(s=c=Wi()),hJ_)if(p>nx-J_)s.moveTo(h*G_(f),h*Q_(f)),s.arc(0,0,h,f,d,!g),l>J_&&(s.moveTo(l*G_(d),l*Q_(d)),s.arc(0,0,l,d,f,g));else{var y,m,v=f,b=d,_=f,x=d,w=p,k=p,T=o.apply(this,arguments)/2,C=T>J_&&(r?+r.apply(this,arguments):K_(l*l+h*h)),E=Z_(W_(h-l)/2,+n.apply(this,arguments)),S=E,A=E;if(C>J_){var M=ix(C/l*Q_(T)),N=ix(C/h*Q_(T));(w-=2*M)>J_?(_+=M*=g?1:-1,x-=M):(w=0,_=x=(f+d)/2),(k-=2*N)>J_?(v+=N*=g?1:-1,b-=N):(k=0,v=b=(f+d)/2)}var D=h*G_(v),B=h*Q_(v),L=l*G_(x),O=l*Q_(x);if(E>J_){var I,R=h*G_(b),F=h*Q_(b),P=l*G_(_),Y=l*Q_(_);if(pJ_?A>J_?(y=hx(P,Y,D,B,h,A,g),m=hx(R,F,L,O,h,A,g),s.moveTo(y.cx+y.x01,y.cy+y.y01),AJ_&&w>J_?S>J_?(y=hx(L,O,R,F,l,-S,g),m=hx(D,B,P,Y,l,-S,g),s.lineTo(y.cx+y.x01,y.cy+y.y01),S=l;--h)s.point(y[h],m[h]);s.lineEnd(),s.areaEnd()}g&&(y[u]=+t(f,u,c),m[u]=+n(f,u,c),s.point(e?+e(f,u,c):y[u],r?+r(f,u,c):m[u]))}if(d)return s=null,d+\\\"\\\"||null}function u(){return mx().defined(i).curve(o).context(a)}return c.x=function(n){return arguments.length?(t=\\\"function\\\"==typeof n?n:H_(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t=\\\"function\\\"==typeof e?e:H_(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:\\\"function\\\"==typeof t?t:H_(+t),c):e},c.y=function(t){return arguments.length?(n=\\\"function\\\"==typeof t?t:H_(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n=\\\"function\\\"==typeof t?t:H_(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:\\\"function\\\"==typeof t?t:H_(+t),c):r},c.lineX0=c.lineY0=function(){return u().x(t).y(n)},c.lineY1=function(){return u().x(t).y(r)},c.lineX1=function(){return u().x(e).y(n)},c.defined=function(t){return arguments.length?(i=\\\"function\\\"==typeof t?t:H_(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(s=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),c):a},c}function bx(t,e){return et?1:e>=t?0:NaN}function _x(t){return t}function xx(){var t=_x,e=bx,n=null,r=H_(0),i=H_(nx),a=H_(0);function o(o){var s,c,u,l,h,f=o.length,d=0,p=new Array(f),g=new Array(f),y=+r.apply(this,arguments),m=Math.min(nx,Math.max(-nx,i.apply(this,arguments)-y)),v=Math.min(Math.abs(m)/f,a.apply(this,arguments)),b=v*(m<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),s=0,u=d?(m-f*b)/d:0;s0?h*u:0)+b,g[c]={data:o[c],index:s,value:h,startAngle:y,endAngle:l,padAngle:v};return g}return o.value=function(e){return arguments.length?(t=\\\"function\\\"==typeof e?e:H_(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r=\\\"function\\\"==typeof t?t:H_(+t),o):r},o.endAngle=function(t){return arguments.length?(i=\\\"function\\\"==typeof t?t:H_(+t),o):i},o.padAngle=function(t){return arguments.length?(a=\\\"function\\\"==typeof t?t:H_(+t),o):a},o}dx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var wx=Tx(px);function kx(t){this._curve=t}function Tx(t){function e(e){return new kx(t(e))}return e._curve=t,e}function Cx(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Tx(t)):e()._curve},t}function Ex(){return Cx(mx().curve(wx))}function Sx(){var t=vx().curve(wx),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Cx(n())},delete t.lineX0,t.lineEndAngle=function(){return Cx(r())},delete t.lineX1,t.lineInnerRadius=function(){return Cx(i())},delete t.lineY0,t.lineOuterRadius=function(){return Cx(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Tx(t)):e()._curve},t}function Ax(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}kx.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Mx=Array.prototype.slice;function Nx(t){return t.source}function Dx(t){return t.target}function Bx(t){var e=Nx,n=Dx,r=gx,i=yx,a=null;function o(){var o,s=Mx.call(arguments),c=e.apply(this,s),u=n.apply(this,s);if(a||(a=o=Wi()),t(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+\\\"\\\"||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r=\\\"function\\\"==typeof t?t:H_(+t),o):r},o.y=function(t){return arguments.length?(i=\\\"function\\\"==typeof t?t:H_(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function Lx(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function Ox(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Ix(t,e,n,r,i){var a=Ax(e,n),o=Ax(e,n=(n+i)/2),s=Ax(r,n),c=Ax(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],c[0],c[1])}function Rx(){return Bx(Lx)}function Fx(){return Bx(Ox)}function Px(){var t=Bx(Ix);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const Yx={draw:function(t,e){var n=Math.sqrt(e/tx);t.moveTo(n,0),t.arc(0,0,n,0,nx)}},jx={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var Ux=Math.sqrt(1/3),zx=2*Ux;const $x={draw:function(t,e){var n=Math.sqrt(e/zx),r=n*Ux;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var qx=Math.sin(tx/10)/Math.sin(7*tx/10),Hx=Math.sin(nx/10)*qx,Wx=-Math.cos(nx/10)*qx;const Vx={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Hx*n,i=Wx*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=nx*a/5,s=Math.cos(o),c=Math.sin(o);t.lineTo(c*n,-s*n),t.lineTo(s*r-c*i,c*r+s*i)}t.closePath()}},Gx={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var Xx=Math.sqrt(3);const Zx={draw:function(t,e){var n=-Math.sqrt(e/(3*Xx));t.moveTo(0,2*n),t.lineTo(-Xx*n,-n),t.lineTo(Xx*n,-n),t.closePath()}};var Qx=-.5,Kx=Math.sqrt(3)/2,Jx=1/Math.sqrt(12),tw=3*(Jx/2+1);const ew={draw:function(t,e){var n=Math.sqrt(e/tw),r=n/2,i=n*Jx,a=r,o=n*Jx+n,s=-a,c=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(s,c),t.lineTo(Qx*r-Kx*i,Kx*r+Qx*i),t.lineTo(Qx*a-Kx*o,Kx*a+Qx*o),t.lineTo(Qx*s-Kx*c,Kx*s+Qx*c),t.lineTo(Qx*r+Kx*i,Qx*i-Kx*r),t.lineTo(Qx*a+Kx*o,Qx*o-Kx*a),t.lineTo(Qx*s+Kx*c,Qx*c-Kx*s),t.closePath()}};var nw=[Yx,jx,$x,Gx,Vx,Zx,ew];function rw(){var t=H_(Yx),e=H_(64),n=null;function r(){var r;if(n||(n=r=Wi()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+\\\"\\\"||null}return r.type=function(e){return arguments.length?(t=\\\"function\\\"==typeof e?e:H_(e),r):t},r.size=function(t){return arguments.length?(e=\\\"function\\\"==typeof t?t:H_(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function iw(){}function aw(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ow(t){this._context=t}function sw(t){return new ow(t)}function cw(t){this._context=t}function uw(t){return new cw(t)}function lw(t){this._context=t}function hw(t){return new lw(t)}function fw(t,e){this._basis=new ow(t),this._beta=e}ow.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:aw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:aw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},cw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:aw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},lw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:aw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},fw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,s=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const dw=function t(e){function n(t){return 1===e?new ow(t):new fw(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function pw(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function gw(t,e){this._context=t,this._k=(1-e)/6}gw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:pw(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:pw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const yw=function t(e){function n(t){return new gw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function mw(t,e){this._context=t,this._k=(1-e)/6}mw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:pw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const vw=function t(e){function n(t){return new mw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function bw(t,e){this._context=t,this._k=(1-e)/6}bw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const _w=function t(e){function n(t){return new bw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function xw(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>J_){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>J_){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/l,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function ww(t,e){this._context=t,this._alpha=e}ww.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:xw(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const kw=function t(e){function n(t){return e?new ww(t,e):new gw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Tw(t,e){this._context=t,this._alpha=e}Tw.prototype={areaStart:iw,areaEnd:iw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:xw(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Cw=function t(e){function n(t){return e?new Tw(t,e):new mw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ew(t,e){this._context=t,this._alpha=e}Ew.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xw(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Sw=function t(e){function n(t){return e?new Ew(t,e):new bw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Aw(t){this._context=t}function Mw(t){return new Aw(t)}function Nw(t){return t<0?-1:1}function Dw(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Nw(a)+Nw(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Bw(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Lw(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Ow(t){this._context=t}function Iw(t){this._context=new Rw(t)}function Rw(t){this._context=t}function Fw(t){return new Ow(t)}function Pw(t){return new Iw(t)}function Yw(t){this._context=t}function jw(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,a=1,o=t[e[0]],s=o.length;a=0;)n[e]=e;return n}function Gw(t,e){return t[e]}function Xw(){var t=H_([]),e=Vw,n=Ww,r=Gw;function i(i){var a,o,s=t.apply(this,arguments),c=i.length,u=s.length,l=new Array(u);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a0)for(var n,r,i,a,o,s,c=0,u=t[e[0]].length;c0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)}function Kw(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;oa&&(a=e,r=n);return r}function nk(t){var e=t.map(rk);return Vw(t).sort((function(t,n){return e[t]-e[n]}))}function rk(t){for(var e,n=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var sk=\\\"%Y-%m-%dT%H:%M:%S.%LZ\\\",ck=Date.prototype.toISOString?function(t){return t.toISOString()}:ym(sk);const uk=ck;var lk=+new Date(\\\"2000-01-01T00:00:00.000Z\\\")?function(t){var e=new Date(t);return isNaN(e)?null:e}:mm(sk);const hk=lk;function fk(t,e,n){var r=new Wn,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?qn():+n,r.restart((function a(o){o+=i,r.restart(a,i+=e,n),t(o)}),e,n),r)}function dk(t){return function(){return t}}function pk(t){return t[0]}function gk(t){return t[1]}function yk(){this._=null}function mk(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function vk(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function bk(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function _k(t){for(;t.L;)t=t.L;return t}yk.prototype={constructor:yk,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=_k(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(vk(this,n),n=(t=n).U),n.C=!1,r.C=!0,bk(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(bk(this,n),n=(t=n).U),n.C=!1,r.C=!0,vk(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?_k(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,vk(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,bk(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,vk(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,bk(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,vk(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,bk(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const xk=yk;function wk(t,e,n,r){var i=[null,null],a=Wk.push(i)-1;return i.left=t,i.right=e,n&&Tk(i,t,e,n),r&&Tk(i,e,t,r),qk[t.index].halfedges.push(a),qk[e.index].halfedges.push(a),i}function kk(t,e,n){var r=[e,n];return r.left=t,r}function Tk(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function Ck(t,e,n,r,i){var a,o=t[0],s=t[1],c=o[0],u=o[1],l=0,h=1,f=s[0]-c,d=s[1]-u;if(a=e-c,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>h)return;a>l&&(l=a)}if(a=r-c,f||!(a<0)){if(a/=f,f<0){if(a>h)return;a>l&&(l=a)}else if(f>0){if(a0)){if(a/=d,d<0){if(a0){if(a>h)return;a>l&&(l=a)}if(a=i-u,d||!(a<0)){if(a/=d,d<0){if(a>h)return;a>l&&(l=a)}else if(d>0){if(a0||h<1)||(l>0&&(t[0]=[c+l*f,u+l*d]),h<1&&(t[1]=[c+h*f,u+h*d]),!0)}}}}}function Ek(t,e,n,r,i){var a=t[1];if(a)return!0;var o,s,c=t[0],u=t.left,l=t.right,h=u[0],f=u[1],d=l[0],p=l[1],g=(h+d)/2,y=(f+p)/2;if(p===f){if(g=r)return;if(h>d){if(c){if(c[1]>=i)return}else c=[g,n];a=[g,i]}else{if(c){if(c[1]1)if(h>d){if(c){if(c[1]>=i)return}else c=[(n-s)/o,n];a=[(i-s)/o,i]}else{if(c){if(c[1]=r)return}else c=[e,o*e+s];a=[r,o*r+s]}else{if(c){if(c[0]=-Gk)){var d=c*c+u*u,p=l*l+h*h,g=(h*d-u*p)/f,y=(c*p-l*d)/f,m=Dk.pop()||new Bk;m.arc=t,m.site=i,m.x=g+o,m.y=(m.cy=y+s)+Math.sqrt(g*g+y*y),t.circle=m;for(var v=null,b=Hk._;b;)if(m.yVk)s=s.L;else{if(!((i=a-zk(s,o))>Vk)){r>-Vk?(e=s.P,n=s):i>-Vk?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){qk[t.index]={site:t,halfedges:[]}}(t);var c=Fk(t);if($k.insert(e,c),e||n){if(e===n)return Ok(e),n=Fk(e.site),$k.insert(c,n),c.edge=n.edge=wk(e.site,c.site),Lk(e),void Lk(n);if(n){Ok(e),Ok(n);var u=e.site,l=u[0],h=u[1],f=t[0]-l,d=t[1]-h,p=n.site,g=p[0]-l,y=p[1]-h,m=2*(f*y-d*g),v=f*f+d*d,b=g*g+y*y,_=[(y*v-d*b)/m+l,(f*b-g*v)/m+h];Tk(n.edge,u,p,_),c.edge=wk(u,t,null,_),n.edge=wk(t,p,null,_),Lk(e),Lk(n)}else c.edge=wk(e.site,c.site)}}function Uk(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var s=(n=o.site)[0],c=n[1],u=c-e;if(!u)return s;var l=s-r,h=1/a-1/u,f=l/u;return h?(-f+Math.sqrt(f*f-2*h*(l*l/(-2*u)-c+u/2+i-a/2)))/h+r:(r+s)/2}function zk(t,e){var n=t.N;if(n)return Uk(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var $k,qk,Hk,Wk,Vk=1e-6,Gk=1e-12;function Xk(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function Zk(t,e){return e[1]-t[1]||e[0]-t[0]}function Qk(t,e){var n,r,i,a=t.sort(Zk).pop();for(Wk=[],qk=new Array(t.length),$k=new xk,Hk=new xk;;)if(i=Nk,a&&(!i||a[1]Vk||Math.abs(i[0][1]-i[1][1])>Vk)||delete Wk[a]}(o,s,c,u),function(t,e,n,r){var i,a,o,s,c,u,l,h,f,d,p,g,y=qk.length,m=!0;for(i=0;iVk||Math.abs(g-f)>Vk)&&(c.splice(s,0,Wk.push(kk(o,d,Math.abs(p-t)Vk?[t,Math.abs(h-t)Vk?[Math.abs(f-r)Vk?[n,Math.abs(h-n)Vk?[Math.abs(f-e)=s)return null;var c=t-i.site[0],u=e-i.site[1],l=c*c+u*u;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var c=t-s[0],u=e-s[1],h=c*c+u*u;hr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function fT(){var t,e,n=oT,r=sT,i=hT,a=uT,o=lT,s=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],u=250,l=Bp,h=ft(\\\"start\\\",\\\"zoom\\\",\\\"end\\\"),f=500,d=0;function p(t){t.property(\\\"__zoom\\\",cT).on(\\\"wheel.zoom\\\",x).on(\\\"mousedown.zoom\\\",w).on(\\\"dblclick.zoom\\\",k).filter(o).on(\\\"touchstart.zoom\\\",T).on(\\\"touchmove.zoom\\\",C).on(\\\"touchend.zoom touchcancel.zoom\\\",E).style(\\\"touch-action\\\",\\\"none\\\").style(\\\"-webkit-tap-highlight-color\\\",\\\"rgba(0,0,0,0)\\\")}function g(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new eT(e,t.x,t.y)}function y(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new eT(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function v(t,e,n){t.on(\\\"start.zoom\\\",(function(){b(this,arguments).start()})).on(\\\"interrupt.zoom end.zoom\\\",(function(){b(this,arguments).end()})).tween(\\\"zoom\\\",(function(){var t=this,i=arguments,a=b(t,i),o=r.apply(t,i),s=null==n?m(o):\\\"function\\\"==typeof n?n.apply(t,i):n,c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=t.__zoom,h=\\\"function\\\"==typeof e?e.apply(t,i):e,f=l(u.invert(s).concat(c/u.k),h.invert(s).concat(c/h.k));return function(t){if(1===t)t=h;else{var e=f(t),n=c/e[2];t=new eT(n,s[0]-e[0]*n,s[1]-e[1]*n)}a.zoom(null,t)}}))}function b(t,e,n){return!n&&t.__zooming||new _(t,e)}function _(t,e){this.that=t,this.args=e,this.active=0,this.extent=r.apply(t,e),this.taps=0}function x(){if(n.apply(this,arguments)){var t=b(this,arguments),e=this.__zoom,r=Math.max(s[0],Math.min(s[1],e.k*Math.pow(2,a.apply(this,arguments)))),o=Ln(this);if(t.wheel)t.mouse[0][0]===o[0]&&t.mouse[0][1]===o[1]||(t.mouse[1]=e.invert(t.mouse[0]=o)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[o,e.invert(o)],ar(this),t.start()}aT(),t.wheel=setTimeout(u,150),t.zoom(\\\"mouse\\\",i(y(g(e,r),t.mouse[0],t.mouse[1]),t.extent,c))}function u(){t.wheel=null,t.end()}}function w(){if(!e&&n.apply(this,arguments)){var t=b(this,arguments,!0),r=Te(le.view).on(\\\"mousemove.zoom\\\",u,!0).on(\\\"mouseup.zoom\\\",l,!0),a=Ln(this),o=le.clientX,s=le.clientY;Se(le.view),iT(),t.mouse=[a,this.__zoom.invert(a)],ar(this),t.start()}function u(){if(aT(),!t.moved){var e=le.clientX-o,n=le.clientY-s;t.moved=e*e+n*n>d}t.zoom(\\\"mouse\\\",i(y(t.that.__zoom,t.mouse[0]=Ln(t.that),t.mouse[1]),t.extent,c))}function l(){r.on(\\\"mousemove.zoom mouseup.zoom\\\",null),Ae(le.view,t.moved),aT(),t.end()}}function k(){if(n.apply(this,arguments)){var t=this.__zoom,e=Ln(this),a=t.invert(e),o=t.k*(le.shiftKey?.5:2),s=i(y(g(t,o),e,a),r.apply(this,arguments),c);aT(),u>0?Te(this).transition().duration(u).call(v,s,e):Te(this).call(p.transform,s)}}function T(){if(n.apply(this,arguments)){var e,r,i,a,o=le.touches,s=o.length,c=b(this,arguments,le.changedTouches.length===s);for(iT(),r=0;r{t.exports={graphlib:n(574),layout:n(8123),debug:n(7570),util:{time:n(1138).time,notime:n(1138).notime},version:n(8177)}},2188:(t,e,n)=>{\\\"use strict\\\";var r=n(8436),i=n(4079);t.exports={run:function(t){var e=\\\"greedy\\\"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),(function(t){r.has(n,t.w)?e.push(t):a(t.w)})),delete n[o])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId(\\\"rev\\\"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},1133:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,r,a,o){var s={width:0,height:0,rank:o,borderType:e},c=a[e][o-1],u=i.addDummyNode(t,\\\"border\\\",s,n);a[e][o]=u,t.setParent(u,r),c&&t.setEdge(c,u,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.forEach(i,e),r.has(o,\\\"minRank\\\")){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,c=o.maxRank+1;s{\\\"use strict\\\";var r=n(8436);function i(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){a(t.edge(e))}))}function a(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function s(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();\\\"lr\\\"!==e&&\\\"rl\\\"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();\\\"bt\\\"!==e&&\\\"rl\\\"!==e||function(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,o),r.has(n,\\\"y\\\")&&o(n)}))}(t),\\\"lr\\\"!==e&&\\\"rl\\\"!==e||(function(t){r.forEach(t.nodes(),(function(e){s(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,s),r.has(n,\\\"x\\\")&&s(n)}))}(t),i(t))}}},7822:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if(\\\"_next\\\"!==t&&\\\"_prev\\\"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return\\\"[\\\"+t.join(\\\", \\\")+\\\"]\\\"}},7570:(t,e,n)=>{var r=n(8436),i=n(1138),a=n(574).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,\\\"layer\\\"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i=\\\"layer\\\"+e;n.setNode(i,{rank:\\\"same\\\"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:\\\"invis\\\"}),e}))})),n}}},574:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},4079:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(7822);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,o=0,s=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),a=r+i;n.setEdge(t.v,t.w,a),s=Math.max(s,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w).in+=i)}));var u=r.range(s+o+3).map((function(){return new a})),l=o+1;return r.forEach(n.nodes(),(function(t){c(u,l,n.node(t))})),{graph:n,buckets:u,zeroIdx:l}}(t,e||o),u=function(t,e,n){for(var r,i=[],a=e[e.length-1],o=e[0];t.nodeCount();){for(;r=o.dequeue();)s(t,e,n,r);for(;r=a.dequeue();)s(t,e,n,r);if(t.nodeCount())for(var c=e.length-2;c>0;--c)if(r=e[c].dequeue()){i=i.concat(s(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function s(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),s=t.node(r.v);a&&o.push({v:r.v,w:r.w}),s.out-=i,c(e,n,s)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,c(e,n,o)})),t.removeNode(i.v),o}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},8123:(t,e,n)=>{\\\"use strict\\\";var r=n(8436),i=n(2188),a=n(5995),o=n(8093),s=n(1138).normalizeRanks,c=n(4219),u=n(1138).removeEmptyRanks,l=n(2981),h=n(1133),f=n(3258),d=n(3408),p=n(7873),g=n(1138),y=n(574).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n(\\\"layout\\\",(function(){var e=n(\\\" buildLayoutGraph\\\",(function(){return function(t){var e=new y({multigraph:!0,compound:!0}),n=E(t.graph());return e.setGraph(r.merge({},v,C(n,m),r.pick(n,b))),r.forEach(t.nodes(),(function(n){var i=E(t.node(n));e.setNode(n,r.defaults(C(i,_),x)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=E(t.edge(n));e.setEdge(n,r.merge({},k,C(i,w),r.pick(i,T)))})),e}(t)}));n(\\\" runLayout\\\",(function(){!function(t,e){e(\\\" makeSpaceForEdgeLabels\\\",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,\\\"c\\\"!==r.labelpos.toLowerCase()&&(\\\"TB\\\"===e.rankdir||\\\"BT\\\"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e(\\\" removeSelfEdges\\\",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(\\\" acyclic\\\",(function(){i.run(t)})),e(\\\" nestingGraph.run\\\",(function(){l.run(t)})),e(\\\" rank\\\",(function(){o(g.asNonCompoundGraph(t))})),e(\\\" injectEdgeLabelProxies\\\",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e};g.addDummyNode(t,\\\"edge-proxy\\\",i,\\\"_ep\\\")}}))}(t)})),e(\\\" removeEmptyRanks\\\",(function(){u(t)})),e(\\\" nestingGraph.cleanup\\\",(function(){l.cleanup(t)})),e(\\\" normalizeRanks\\\",(function(){s(t)})),e(\\\" assignRankMinMax\\\",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e(\\\" removeEdgeLabelProxies\\\",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);\\\"edge-proxy\\\"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e(\\\" normalize.run\\\",(function(){a.run(t)})),e(\\\" parentDummyChains\\\",(function(){c(t)})),e(\\\" addBorderSegments\\\",(function(){h(t)})),e(\\\" order\\\",(function(){d(t)})),e(\\\" insertSelfEdges\\\",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){g.addDummyNode(t,\\\"selfedge\\\",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},\\\"_se\\\")})),delete a.selfEdges}))}))}(t)})),e(\\\" adjustCoordinateSystem\\\",(function(){f.adjust(t)})),e(\\\" position\\\",(function(){p(t)})),e(\\\" positionSelfEdges\\\",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if(\\\"selfedge\\\"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e(\\\" removeBorderNodes\\\",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){\\\"border\\\"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(\\\" normalize.undo\\\",(function(){a.undo(t)})),e(\\\" fixupEdgeLabelCoords\\\",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,\\\"x\\\"))switch(\\\"l\\\"!==n.labelpos&&\\\"r\\\"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case\\\"l\\\":n.x-=n.width/2+n.labeloffset;break;case\\\"r\\\":n.x+=n.width/2+n.labeloffset}}))}(t)})),e(\\\" undoCoordinateSystem\\\",(function(){f.undo(t)})),e(\\\" translateGraph\\\",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),s=o.marginx||0,c=o.marginy||0;function u(t){var r=t.x,o=t.y,s=t.width,c=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,\\\"x\\\")&&u(n)})),e-=s,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,\\\"x\\\")&&(a.x-=e),r.has(a,\\\"y\\\")&&(a.y-=i)})),o.width=n-e+s,o.height=a-i+c}(t)})),e(\\\" assignNodeIntersects\\\",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(g.intersectRect(a,n)),i.points.push(g.intersectRect(o,r))}))}(t)})),e(\\\" reversePoints\\\",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e(\\\" acyclic.undo\\\",(function(){i.undo(t)}))}(e,n)})),n(\\\" updateInputGraph\\\",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,\\\"x\\\")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=[\\\"nodesep\\\",\\\"edgesep\\\",\\\"ranksep\\\",\\\"marginx\\\",\\\"marginy\\\"],v={ranksep:50,edgesep:20,nodesep:50,rankdir:\\\"tb\\\"},b=[\\\"acyclicer\\\",\\\"ranker\\\",\\\"rankdir\\\",\\\"align\\\"],_=[\\\"width\\\",\\\"height\\\"],x={width:0,height:0},w=[\\\"minlen\\\",\\\"weight\\\",\\\"width\\\",\\\"height\\\",\\\"labeloffset\\\"],k={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:\\\"r\\\"},T=[\\\"labelpos\\\"];function C(t,e){return r.mapValues(r.pick(t,e),Number)}function E(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},8436:(t,e,n)=>{var r;try{r={cloneDeep:n(361),constant:n(5703),defaults:n(1747),each:n(6073),filter:n(3105),find:n(3311),flatten:n(5564),forEach:n(4486),forIn:n(2620),has:n(8721),isUndefined:n(2353),last:n(928),map:n(5161),mapValues:n(6604),max:n(6162),merge:n(3857),min:n(3632),minBy:n(2762),now:n(7771),pick:n(9722),range:n(6026),reduce:n(4061),sortBy:n(9734),uniqueId:n(3955),values:n(2628),zipObject:n(7287)}}catch(t){}r||(r=window._),t.exports=r},2981:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,o,s,c,u){var l=t.children(u);if(l.length){var h=i.addBorderNode(t,\\\"_bt\\\"),f=i.addBorderNode(t,\\\"_bb\\\"),d=t.node(u);t.setParent(h,u),d.borderTop=h,t.setParent(f,u),d.borderBottom=f,r.forEach(l,(function(r){a(t,e,n,o,s,c,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,g=l!==d?1:s-c[u]+1;t.setEdge(h,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,f,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(u)||t.setEdge(e,h,{weight:0,minlen:s+c[u]})}else u!==e&&t.setEdge(e,u,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,\\\"root\\\",{},\\\"_root\\\"),n=function(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),o=r.max(r.values(n))-1,s=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=s}));var c=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){a(t,e,s,c,o,n,r)})),t.graph().nodeRankFactor=s},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},5995:(t,e,n)=>{\\\"use strict\\\";var r=n(8436),i=n(1138);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,a,o=e.v,s=t.node(o).rank,c=e.w,u=t.node(c).rank,l=e.name,h=t.edge(e),f=h.labelRank;if(u!==s+1){for(t.removeEdge(e),a=0,++s;s{var r=n(8436);t.exports=function(t,e,n){var i,a={};r.forEach(n,(function(n){for(var r,o,s=t.parent(n);s;){if((r=t.parent(s))?(o=a[r],a[r]=s):(o=i,i=s),o&&o!==s)return void e.setEdge(o,s);s=r}}))}},5439:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},3128:(t,e,n)=>{var r=n(8436),i=n(574).Graph;t.exports=function(t,e,n){var a=function(t){for(var e;t.hasNode(e=r.uniqueId(\\\"_root\\\")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var s=t.node(i),c=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(o.setNode(i),o.setParent(i,c||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),s=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+s})})),r.has(s,\\\"minRank\\\")&&o.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))})),o}},6630:(t,e,n)=>{\\\"use strict\\\";var r=n(8436);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),a=r.flatten(r.map(e,(function(e){return r.sortBy(r.map(t.outEdges(e),(function(e){return{pos:i[e.w],weight:t.edge(e).weight}})),\\\"pos\\\")})),!0),o=1;o0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;u+=t.weight*n}))),u}t.exports=function(t,e){for(var n=0,r=1;r{\\\"use strict\\\";var r=n(8436),i=n(2588),a=n(6630),o=n(1026),s=n(3128),c=n(5093),u=n(574).Graph,l=n(1138);function h(t,e,n){return r.map(e,(function(e){return s(t,e,n)}))}function f(t,e){var n=new u;r.forEach(t,(function(t){var i=t.graph().root,a=o(t,i,n,e);r.forEach(a.vs,(function(e,n){t.node(e).order=n})),c(t,n,a.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=l.maxRank(t),n=h(t,r.range(1,e+1),\\\"inEdges\\\"),o=h(t,r.range(e-1,-1,-1),\\\"outEdges\\\"),s=i(t);d(t,s);for(var c,u=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){f(p%2?n:o,p%4>=2),s=l.buildLayerMatrix(t);var y=a(t,s);y{\\\"use strict\\\";var r=n(8436);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),a=r.map(r.range(i+1),(function(){return[]})),o=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(o,(function n(i){if(!r.has(e,i)){e[i]=!0;var o=t.node(i);a[o.rank].push(i),r.forEach(t.successors(i),n)}})),a}},9567:(t,e,n)=>{\\\"use strict\\\";var r=n(8436);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){var n,i,a,o;e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(i=e,a=0,o=0,(n=t).weight&&(a+=n.barycenter*n.weight,o+=n.weight),i.weight&&(a+=i.barycenter*i.weight,o+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=a/o,n.weight=o,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var a=t.pop();e.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.map(r.filter(e,(function(t){return!t.merged})),(function(t){return r.pick(t,[\\\"vs\\\",\\\"i\\\",\\\"barycenter\\\",\\\"weight\\\"])}))}(r.filter(n,(function(t){return!t.indegree})))}},1026:(t,e,n)=>{var r=n(8436),i=n(5439),a=n(9567),o=n(7304);t.exports=function t(e,n,s,c){var u=e.children(n),l=e.node(n),h=l?l.borderLeft:void 0,f=l?l.borderRight:void 0,d={};h&&(u=r.filter(u,(function(t){return t!==h&&t!==f})));var p=i(e,u);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,s,c);d[n.v]=i,r.has(i,\\\"barycenter\\\")&&(a=n,o=i,r.isUndefined(a.barycenter)?(a.barycenter=o.barycenter,a.weight=o.weight):(a.barycenter=(a.barycenter*a.weight+o.barycenter*o.weight)/(a.weight+o.weight),a.weight+=o.weight))}var a,o}));var g=a(p,s);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,d);var y=o(g,c);if(h&&(y.vs=r.flatten([h,y.vs,f],!0),e.predecessors(h).length)){var m=e.node(e.predecessors(h)[0]),v=e.node(e.predecessors(f)[0]);r.has(y,\\\"barycenter\\\")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+m.order+v.order)/(y.weight+2),y.weight+=2}return y}},7304:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,o=i.partition(t,(function(t){return r.has(t,\\\"barycenter\\\")})),s=o.lhs,c=r.sortBy(o.rhs,(function(t){return-t.i})),u=[],l=0,h=0,f=0;s.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),f=a(u,c,f),r.forEach(s,(function(t){f+=t.vs.length,u.push(t.vs),l+=t.barycenter*t.weight,h+=t.weight,f=a(u,c,f)}));var d={vs:r.flatten(u,!0)};return h&&(d.barycenter=l/h,d.weight=h),d}},4219:(t,e,n)=>{var r=n(8436);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],s=[],c=Math.min(e[n].low,e[r].low),u=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||u>e[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)s.push(i);return{path:o.concat(s.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,s=a.lca,c=0,u=o[c],l=!0;n!==i.w;){if(r=t.node(n),l){for(;(u=o[c])!==s&&t.node(u).maxRank{\\\"use strict\\\";var r=n(8436),i=n(574).Graph,a=n(1138);function o(t,e){var n={};return r.reduce(e,(function(e,i){var a=0,o=0,s=e.length,u=r.last(i);return r.forEach(i,(function(e,l){var h=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),f=h?t.node(h).order:s;(h||e===u)&&(r.forEach(i.slice(o,l+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(os)&&c(n,e,u)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,s=0;return r.forEach(n,(function(r,c){if(\\\"border\\\"===t.node(r).dummy){var u=t.predecessors(r);u.length&&(a=t.node(u[0]).order,i(n,s,c,o,a),s=c,o=a)}i(n,s,n.length,a,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function u(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function l(t,e,n,i){var a={},o={},s={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,s[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length){c=r.sortBy(c,(function(t){return s[t]}));for(var l=(c.length-1)/2,h=Math.floor(l),f=Math.ceil(l);h<=f;++h){var d=c[h];o[t]===t&&e{\\\"use strict\\\";var r=n(8436),i=n(1138),a=n(3573).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=a+i/2})),a+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}},300:(t,e,n)=>{\\\"use strict\\\";var r=n(8436),i=n(574).Graph,a=n(6681).slack;function o(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var o=r.v,s=i===o?r.w:o;t.hasNode(s)||a(e,r)||(t.setNode(s,{}),t.setEdge(i,s,{}),n(s))}))})),t.nodeCount()}function s(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return a(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),u=t.nodes()[0],l=t.nodeCount();for(r.setNode(u,{});o(r,t){\\\"use strict\\\";var r=n(6681).longestPath,i=n(300),a=n(2472);t.exports=function(t){switch(t.graph().ranker){case\\\"network-simplex\\\":default:!function(t){a(t)}(t);break;case\\\"tight-tree\\\":!function(t){r(t),i(t)}(t);break;case\\\"longest-path\\\":o(t)}};var o=r},2472:(t,e,n)=>{\\\"use strict\\\";var r=n(8436),i=n(300),a=n(6681).slack,o=n(6681).longestPath,s=n(574).alg.preorder,c=n(574).alg.postorder,u=n(1138).simplify;function l(t){t=u(t),o(t);var e,n=i(t);for(d(n),h(n,t);e=g(n);)m(n,t,e,y(n,t,e))}function h(t,e){var n=c(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=f(t,e,n)}(t,e,n)}))}function f(t,e,n){var i=t.node(n).parent,a=!0,o=e.edge(n,i),s=0;return o||(a=!1,o=e.edge(i,n)),s=o.weight,r.forEach(e.nodeEdges(n),(function(r){var o,c,u=r.v===n,l=u?r.w:r.v;if(l!==i){var h=u===a,f=e.edge(r).weight;if(s+=h?f:-f,o=n,c=l,t.hasEdge(o,c)){var d=t.edge(n,l).cutvalue;s+=h?-d:d}}})),s}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,a){var o=n,s=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(a){r.has(e,a)||(n=p(t,e,n,a,i))})),s.low=o,s.lim=n++,a?s.parent=a:delete s.parent,n}function g(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function y(t,e,n){var i=n.v,o=n.w;e.hasEdge(i,o)||(i=n.w,o=n.v);var s=t.node(i),c=t.node(o),u=s,l=!1;s.lim>c.lim&&(u=c,l=!0);var h=r.filter(e.edges(),(function(e){return l===v(0,t.node(e.v),u)&&l!==v(0,t.node(e.w),u)}));return r.minBy(h,(function(t){return a(e,t)}))}function m(t,e,n,i){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),d(t),h(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=s(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function v(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=h,l.calcCutValue=f,l.leaveEdge=g,l.enterEdge=y,l.exchangeEdges=m},6681:(t,e,n)=>{\\\"use strict\\\";var r=n(8436);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.min(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),a.rank=o}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},1138:(t,e,n)=>{\\\"use strict\\\";var r=n(8436),i=n(574).Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:a,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,s=e.y-a,c=t.width/2,u=t.height/2;if(!o&&!s)throw new Error(\\\"Not possible to find intersection inside of the rectangle\\\");return Math.abs(s)*c>Math.abs(o)*u?(s<0&&(u=-u),n=u*o/s,r=u):(o<0&&(c=-c),n=c,r=c*s/o),{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,\\\"rank\\\")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),a(t,\\\"border\\\",i,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+\\\" time: \\\"+(r.now()-n)+\\\"ms\\\")}},notime:function(t,e){return e()}}},8177:t=>{t.exports=\\\"0.8.5\\\"},7856:function(t){t.exports=function(){\\\"use strict\\\";var t=Object.hasOwnProperty,e=Object.setPrototypeOf,n=Object.isFrozen,r=Object.getPrototypeOf,i=Object.getOwnPropertyDescriptor,a=Object.freeze,o=Object.seal,s=Object.create,c=\\\"undefined\\\"!=typeof Reflect&&Reflect,u=c.apply,l=c.construct;u||(u=function(t,e,n){return t.apply(e,n)}),a||(a=function(t){return t}),o||(o=function(t){return t}),l||(l=function(t,e){return new(Function.prototype.bind.apply(t,[null].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?n-1:0),i=1;i/gm),Y=o(/^data-[\\\\-\\\\w.\\\\u00B7-\\\\uFFFF]/),j=o(/^aria-[\\\\-\\\\w]+$/),U=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\\\\-]+(?:[^a-z+.\\\\-:]|$))/i),z=o(/^(?:\\\\w+script|data):/i),$=o(/[\\\\u0000-\\\\u0020\\\\u00A0\\\\u1680\\\\u180E\\\\u2000-\\\\u2029\\\\u205F\\\\u3000]/g),q=o(/^html$/i),H=\\\"function\\\"==typeof Symbol&&\\\"symbol\\\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\\\"function\\\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\\\"symbol\\\":typeof t};function W(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:V(),n=function(e){return t(e)};if(n.version=\\\"2.3.6\\\",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,i=e.document,o=e.DocumentFragment,s=e.HTMLTemplateElement,c=e.Node,u=e.Element,l=e.NodeFilter,h=e.NamedNodeMap,w=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,X=e.HTMLFormElement,Z=e.DOMParser,Q=e.trustedTypes,K=u.prototype,J=C(K,\\\"cloneNode\\\"),tt=C(K,\\\"nextSibling\\\"),et=C(K,\\\"childNodes\\\"),nt=C(K,\\\"parentNode\\\");if(\\\"function\\\"==typeof s){var rt=i.createElement(\\\"template\\\");rt.content&&rt.content.ownerDocument&&(i=rt.content.ownerDocument)}var it=G(Q,r),at=it?it.createHTML(\\\"\\\"):\\\"\\\",ot=i,st=ot.implementation,ct=ot.createNodeIterator,ut=ot.createDocumentFragment,lt=ot.getElementsByTagName,ht=r.importNode,ft={};try{ft=T(i).documentMode?i.documentMode:{}}catch(t){}var dt={};n.isSupported=\\\"function\\\"==typeof nt&&st&&void 0!==st.createHTMLDocument&&9!==ft;var pt=F,gt=P,yt=Y,mt=j,vt=z,bt=$,_t=U,xt=null,wt=k({},[].concat(W(E),W(S),W(A),W(N),W(B))),kt=null,Tt=k({},[].concat(W(L),W(O),W(I),W(R))),Ct=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Et=null,St=null,At=!0,Mt=!0,Nt=!1,Dt=!1,Bt=!1,Lt=!1,Ot=!1,It=!1,Rt=!1,Ft=!1,Pt=!0,Yt=!0,jt=!1,Ut={},zt=null,$t=k({},[\\\"annotation-xml\\\",\\\"audio\\\",\\\"colgroup\\\",\\\"desc\\\",\\\"foreignobject\\\",\\\"head\\\",\\\"iframe\\\",\\\"math\\\",\\\"mi\\\",\\\"mn\\\",\\\"mo\\\",\\\"ms\\\",\\\"mtext\\\",\\\"noembed\\\",\\\"noframes\\\",\\\"noscript\\\",\\\"plaintext\\\",\\\"script\\\",\\\"style\\\",\\\"svg\\\",\\\"template\\\",\\\"thead\\\",\\\"title\\\",\\\"video\\\",\\\"xmp\\\"]),qt=null,Ht=k({},[\\\"audio\\\",\\\"video\\\",\\\"img\\\",\\\"source\\\",\\\"image\\\",\\\"track\\\"]),Wt=null,Vt=k({},[\\\"alt\\\",\\\"class\\\",\\\"for\\\",\\\"id\\\",\\\"label\\\",\\\"name\\\",\\\"pattern\\\",\\\"placeholder\\\",\\\"role\\\",\\\"summary\\\",\\\"title\\\",\\\"value\\\",\\\"style\\\",\\\"xmlns\\\"]),Gt=\\\"http://www.w3.org/1998/Math/MathML\\\",Xt=\\\"http://www.w3.org/2000/svg\\\",Zt=\\\"http://www.w3.org/1999/xhtml\\\",Qt=Zt,Kt=!1,Jt=void 0,te=[\\\"application/xhtml+xml\\\",\\\"text/html\\\"],ee=\\\"text/html\\\",ne=void 0,re=null,ie=i.createElement(\\\"form\\\"),ae=function(t){return t instanceof RegExp||t instanceof Function},oe=function(t){re&&re===t||(t&&\\\"object\\\"===(void 0===t?\\\"undefined\\\":H(t))||(t={}),t=T(t),xt=\\\"ALLOWED_TAGS\\\"in t?k({},t.ALLOWED_TAGS):wt,kt=\\\"ALLOWED_ATTR\\\"in t?k({},t.ALLOWED_ATTR):Tt,Wt=\\\"ADD_URI_SAFE_ATTR\\\"in t?k(T(Vt),t.ADD_URI_SAFE_ATTR):Vt,qt=\\\"ADD_DATA_URI_TAGS\\\"in t?k(T(Ht),t.ADD_DATA_URI_TAGS):Ht,zt=\\\"FORBID_CONTENTS\\\"in t?k({},t.FORBID_CONTENTS):$t,Et=\\\"FORBID_TAGS\\\"in t?k({},t.FORBID_TAGS):{},St=\\\"FORBID_ATTR\\\"in t?k({},t.FORBID_ATTR):{},Ut=\\\"USE_PROFILES\\\"in t&&t.USE_PROFILES,At=!1!==t.ALLOW_ARIA_ATTR,Mt=!1!==t.ALLOW_DATA_ATTR,Nt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Dt=t.SAFE_FOR_TEMPLATES||!1,Bt=t.WHOLE_DOCUMENT||!1,It=t.RETURN_DOM||!1,Rt=t.RETURN_DOM_FRAGMENT||!1,Ft=t.RETURN_TRUSTED_TYPE||!1,Ot=t.FORCE_BODY||!1,Pt=!1!==t.SANITIZE_DOM,Yt=!1!==t.KEEP_CONTENT,jt=t.IN_PLACE||!1,_t=t.ALLOWED_URI_REGEXP||_t,Qt=t.NAMESPACE||Zt,t.CUSTOM_ELEMENT_HANDLING&&ae(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ct.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ae(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ct.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&\\\"boolean\\\"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ct.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Jt=Jt=-1===te.indexOf(t.PARSER_MEDIA_TYPE)?ee:t.PARSER_MEDIA_TYPE,ne=\\\"application/xhtml+xml\\\"===Jt?function(t){return t}:g,Dt&&(Mt=!1),Rt&&(It=!0),Ut&&(xt=k({},[].concat(W(B))),kt=[],!0===Ut.html&&(k(xt,E),k(kt,L)),!0===Ut.svg&&(k(xt,S),k(kt,O),k(kt,R)),!0===Ut.svgFilters&&(k(xt,A),k(kt,O),k(kt,R)),!0===Ut.mathMl&&(k(xt,N),k(kt,I),k(kt,R))),t.ADD_TAGS&&(xt===wt&&(xt=T(xt)),k(xt,t.ADD_TAGS)),t.ADD_ATTR&&(kt===Tt&&(kt=T(kt)),k(kt,t.ADD_ATTR)),t.ADD_URI_SAFE_ATTR&&k(Wt,t.ADD_URI_SAFE_ATTR),t.FORBID_CONTENTS&&(zt===$t&&(zt=T(zt)),k(zt,t.FORBID_CONTENTS)),Yt&&(xt[\\\"#text\\\"]=!0),Bt&&k(xt,[\\\"html\\\",\\\"head\\\",\\\"body\\\"]),xt.table&&(k(xt,[\\\"tbody\\\"]),delete Et.tbody),a&&a(t),re=t)},se=k({},[\\\"mi\\\",\\\"mo\\\",\\\"mn\\\",\\\"ms\\\",\\\"mtext\\\"]),ce=k({},[\\\"foreignobject\\\",\\\"desc\\\",\\\"title\\\",\\\"annotation-xml\\\"]),ue=k({},S);k(ue,A),k(ue,M);var le=k({},N);k(le,D);var he=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:Zt,tagName:\\\"template\\\"});var n=g(t.tagName),r=g(e.tagName);if(t.namespaceURI===Xt)return e.namespaceURI===Zt?\\\"svg\\\"===n:e.namespaceURI===Gt?\\\"svg\\\"===n&&(\\\"annotation-xml\\\"===r||se[r]):Boolean(ue[n]);if(t.namespaceURI===Gt)return e.namespaceURI===Zt?\\\"math\\\"===n:e.namespaceURI===Xt?\\\"math\\\"===n&&ce[r]:Boolean(le[n]);if(t.namespaceURI===Zt){if(e.namespaceURI===Xt&&!ce[r])return!1;if(e.namespaceURI===Gt&&!se[r])return!1;var i=k({},[\\\"title\\\",\\\"style\\\",\\\"font\\\",\\\"a\\\",\\\"script\\\"]);return!le[n]&&(i[n]||!ue[n])}return!1},fe=function(t){p(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=at}catch(e){t.remove()}}},de=function(t,e){try{p(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){p(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),\\\"is\\\"===t&&!kt[t])if(It||Rt)try{fe(e)}catch(t){}else try{e.setAttribute(t,\\\"\\\")}catch(t){}},pe=function(t){var e=void 0,n=void 0;if(Ot)t=\\\"\\\"+t;else{var r=y(t,/^[\\\\r\\\\n\\\\t ]+/);n=r&&r[0]}\\\"application/xhtml+xml\\\"===Jt&&(t=''+t+\\\"\\\");var a=it?it.createHTML(t):t;if(Qt===Zt)try{e=(new Z).parseFromString(a,Jt)}catch(t){}if(!e||!e.documentElement){e=st.createDocument(Qt,\\\"template\\\",null);try{e.documentElement.innerHTML=Kt?\\\"\\\":a}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(i.createTextNode(n),o.childNodes[0]||null),Qt===Zt?lt.call(e,Bt?\\\"html\\\":\\\"body\\\")[0]:Bt?e.documentElement:o},ge=function(t){return ct.call(t.ownerDocument||t,t,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},ye=function(t){return t instanceof X&&(\\\"string\\\"!=typeof t.nodeName||\\\"string\\\"!=typeof t.textContent||\\\"function\\\"!=typeof t.removeChild||!(t.attributes instanceof w)||\\\"function\\\"!=typeof t.removeAttribute||\\\"function\\\"!=typeof t.setAttribute||\\\"string\\\"!=typeof t.namespaceURI||\\\"function\\\"!=typeof t.insertBefore)},me=function(t){return\\\"object\\\"===(void 0===c?\\\"undefined\\\":H(c))?t instanceof c:t&&\\\"object\\\"===(void 0===t?\\\"undefined\\\":H(t))&&\\\"number\\\"==typeof t.nodeType&&\\\"string\\\"==typeof t.nodeName},ve=function(t,e,r){dt[t]&&f(dt[t],(function(t){t.call(n,e,r,re)}))},be=function(t){var e=void 0;if(ve(\\\"beforeSanitizeElements\\\",t,null),ye(t))return fe(t),!0;if(y(t.nodeName,/[\\\\u0080-\\\\uFFFF]/))return fe(t),!0;var r=ne(t.nodeName);if(ve(\\\"uponSanitizeElement\\\",t,{tagName:r,allowedTags:xt}),!me(t.firstElementChild)&&(!me(t.content)||!me(t.content.firstElementChild))&&_(/<[/\\\\w]/g,t.innerHTML)&&_(/<[/\\\\w]/g,t.textContent))return fe(t),!0;if(\\\"select\\\"===r&&_(/