From c2f3b1055f251575e47882ef6252171bc72083f2 Mon Sep 17 00:00:00 2001 From: Cameron Fischer Date: Tue, 6 Sep 2022 00:51:36 -0400 Subject: [PATCH] v0.17.12 Updated Tiddlymap to work with tw5-vis-network instead of TW5-Vis.js. Vis.js has been deprecated for over 8 years, where as vis-network is still maintained. It's also smaller, and presumably less buggy. --- bundle/tiddlymap_0.17.11+10015.json | 18 ------------------ bundle/tiddlymap_0.17.12+10016.json | 18 ++++++++++++++++++ .../tiddlymap/js/lib/TypeDefs.js.meta | 2 ++ .../tiddlymap/js/macro/MapMacro.js | 2 +- .../tiddlymap/js/services/DialogManager.js | 4 ++-- dist/felixhayashi/tiddlymap/plugin.info | 4 ++-- .../tiddlers/gui/dialog/dialog.add_edge.tid | 9 +++++---- .../tiddlers/gui/dialog/dialog.add_node.tid | 9 +++++---- .../tiddlers/gui/dialog/dialog.create_view.tid | 7 ++++--- .../tiddlers/gui/dialog/dialog.rename_view.tid | 9 +++++++-- .../gui/dialog/footers/dialog_footer.ok.tid | 2 +- .../dialog/footers/dialog_footer.ok_cancel.tid | 2 +- .../footers/dialog_footer.ok_suppress.tid | 2 +- package.json | 2 +- .../tiddlymap/js/lib/TypeDefs.js.meta | 2 ++ src/plugins/felixhayashi/tiddlymap/plugin.info | 4 ++-- 16 files changed, 54 insertions(+), 42 deletions(-) delete mode 100644 bundle/tiddlymap_0.17.11+10015.json create mode 100644 bundle/tiddlymap_0.17.12+10016.json create mode 100644 dist/felixhayashi/tiddlymap/js/lib/TypeDefs.js.meta create mode 100644 src/plugins/felixhayashi/tiddlymap/js/lib/TypeDefs.js.meta diff --git a/bundle/tiddlymap_0.17.11+10015.json b/bundle/tiddlymap_0.17.11+10015.json deleted file mode 100644 index 9efa7f0d..00000000 --- a/bundle/tiddlymap_0.17.11+10015.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "title": "$:/plugins/felixhayashi/tiddlymap", - "description": "TiddlyMap – Map drawing and topic visualization for your wiki", - "author": "Felix Küppers", - "version": "0.17.11+10015", - "released": "Sat, 14 May 2022 03:51:20 GMT", - "core-version": ">=5.1.5", - "source": "https://github.com/felixhayashi/TW5-TiddlyMap", - "type": "application/json", - "plugin-type": "plugin", - "list": "readme license", - "dependents": "$:/plugins/felixhayashi/vis", - "depends": "$:/plugins/felixhayashi/vis", - "suggested": "$:/plugins/felixhayashi/topstoryview", - "text": "{\"tiddlers\":{\"$:/plugins/felixhayashi/tiddlymap/layout\":{\"text\":\"\\\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline \\n\\nbody .tc-page-container-wrapper.tc-modal-displayed{-webkit-filter:inherit;-moz-filter:inherit;filter:inherit}body .tc-modal-wrapper{z-index:1010}body .tc-modal-wrapper .tc-modal-header svg{vertical-align:sub}body .tc-modal-wrapper .tc-modal-header h3{line-height:10px}body .tc-modal-wrapper .tc-modal-body{min-height:250px;max-height:70vh;padding-top:0px;padding-bottom:0px;overflow:auto}body .tc-modal-wrapper .tc-modal-footer{padding:8px}body .tc-modal-wrapper .tc-modal-footer .tmap-dialog-button{font-weight:bold}body .tc-modal-wrapper .tc-modal-footer .tmap-hidden-close-button{display:none}table.tmap-table tr:nth-child(odd),.tc-modal-body table.tmap-config-table tr:nth-child(odd){background-color:#F0F0F0}table.tmap-table tr:nth-child(even),.tc-modal-body table.tmap-config-table tr:nth-child(even){background-color:#FFFFFF}.tmap-save-canvas-preview{text-align:center;background:lightgray}.tmap-save-canvas-preview img{background-color:white;max-width:100%;max-height:100px;border:1px solid red}.tmap-list-separator{display:block;background-color:#efefef;margin:10px 0 5px 0;cursor:default;border-bottom:1px dotted gray;font-weight:bold;font-size:0.8em}.tmap-unicode-icon{width:1em;display:inline-block;text-align:center;color:black}html .tmap-link{color:#5778D8}html .tmap-link:hover{color:white;background:#5778D8}html .tmap-small-list,html .tmap-smaller-list,html .tmap-very-small-list{overflow:auto;min-height:2em;max-height:9em;display:block}html .tmap-smaller-list{max-height:7em}html .tmap-very-small-list{max-height:5empx}html .tc-tiddler-controls button.tmap-active-button svg{fill:#888888}html #tmap-node-filter-dialog #tmap-filter-tips{font-size:0.8em}html #tmap-node-filter-dialog textarea{height:100px;max-height:300px;overflow:auto;width:100%;font-size:11px;font-family:\\\"Courier New\\\", Courier, monospace}@media (max-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}){.tc-sidebar-scrollable .tmap-desktop-editor .tmap-widget:not(.tmap-fullscreen){display:none}}@media (min-width: {{$:/themes/tiddlywiki/vanilla/metrics/sidebarbreakpoint}}){.tc-sidebar-scrollable .tmap-mobile-editor{display:none}.tc-modal-wrapper{z-index:1010}.tc-modal-wrapper .tc-modal{boder:1px solid #999999;left:calc(50% - 400px);width:802px}.tc-modal-wrapper .tc-modal-body{left:calc(50% - 400px);width:800px}}@-o-keyframes fadein-keyframes{0%{opacity:0}100%{opacity:1}}@-moz-keyframes fadein-keyframes{0%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadein-keyframes{0%{opacity:0}100%{opacity:1}}@keyframes flash fadein-keyframes{0%{opacity:0}100%{opacity:1}}@-o-keyframes fadeout-keyframes{0%{opacity:1}100%{opacity:0}}@-moz-keyframes fadeout-keyframes{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeout-keyframes{0%{opacity:1}100%{opacity:0}}@keyframes flash fadeout-keyframes{0%{opacity:1}100%{opacity:0}}.tmap-config-widget{background:#F0F0F0;padding:5px;margin:5px 0;box-sizing:border-box;display:block}.tmap-config-widget .vis-network{display:none}.tmap-config-widget .vis-configuration-wrapper{width:100%}.tmap-config-widget .vis-configuration-wrapper .vis-config-rangeinput{height:inherit;margin-left:4px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item{width:100%;height:inherit;background:none;padding-left:0px;left:0}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item.tmap-vis-config-item-active .vis-config-label::after{content:\\\"(inherited)\\\";position:absolute;display:inline-block;margin-left:10px;-o-animation:fadein-keyframes 1s;-moz-animation:fadein-keyframes 1s;-webkit-animation:fadein-keyframes 1s;animation:fadein-keyframes 1s;content:\\\"✔\\\";color:green;font-weight:bold;font-size:15px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item button.tmap-config-item-reset{vertical-align:top;margin-left:5px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item .vis-config-range{width:150px}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item .vis-config-range::-moz-range-track{width:150px !important}.tmap-config-widget .vis-configuration-wrapper .vis-configuration.vis-config-item .vis-config-label{width:150px}.tmap-config-widget::after{clear:both;content:\\\"\\\";display:block}.tmap-flash-message{border:1px solid lightgray;padding:5px;margin:6px 0;display:block;color:#333333}.tmap-flash-message.tmap-info,.tmap-flash-message.tmap-plain,.tmap-flash-message.tmap-neutral{background:#F0F0F0}.tmap-flash-message.tmap-info::before,.tmap-flash-message.tmap-plain::before,.tmap-flash-message.tmap-neutral::before{content:\\\"i\\\";display:inline-block;border-radius:50%;width:0.8em;border:2px solid;font-family:serif;text-align:center;height:0.8em;font-weight:bold;line-height:0.8em;vertical-align:text-top;margin-right:2px}.tmap-flash-message.tmap-valid,.tmap-flash-message.tmap-success{background:#D1EED4}.tmap-flash-message.tmap-valid::before,.tmap-flash-message.tmap-success::before{content:\\\"i\\\";display:inline-block;border-radius:50%;width:0.8em;border:2px solid;font-family:serif;text-align:center;height:0.8em;font-weight:bold;line-height:0.8em;vertical-align:text-top;margin-right:2px}.tmap-flash-message.tmap-warning{background:#FFF6D1}.tmap-flash-message.tmap-warning::before{content:\\\"\\\";display:inline-block;background:url(<>);display:inline-block;width:1em;height:1em;background-size:100% 100%;vertical-align:text-top;margin-right:2px}.tmap-flash-message.tmap-malformed,.tmap-flash-message.tmap-invalid,.tmap-flash-message.tmap-danger{background:#EED5D1}.tmap-flash-message.tmap-malformed::before,.tmap-flash-message.tmap-invalid::before,.tmap-flash-message.tmap-danger::before{content:\\\"\\\";display:inline-block;background:url(<>);display:inline-block;width:1em;height:1em;background-size:100% 100%;vertical-align:text-top;margin-right:2px}.tmap-widget{background:#FFFFFF;width:auto;position:relative;border:1px dotted lightgray;padding:2px;color:#666;display:block}.tmap-widget .tmap-download-canvas{display:none}.tmap-widget.tmap-click-to-use:not(.tmap-fullscreen) .vis-network:not(.vis-active){cursor:pointer}.tmap-widget.tmap-click-to-use:not(.tmap-fullscreen) .vis-network:not(.vis-active) .vis-navigation{display:none}.tmap-widget.tmap-click-to-use:not(.tmap-fullscreen) .vis-network:not(.vis-active):hover:before{color:gray;background:white;content:\\\"Click to use\\\";font-size:14px;font-weight:bold;right:calc(50% - 65px - 5px);position:absolute;text-align:center;top:calc(50% - 14px - 5px);width:130px;z-index:2000;padding:5px;pointer-events:none;background-color:rgba(255,255,255,0.3)}.tmap-widget .tmap-loading-bar{display:none;position:absolute;text-align:center;font-size:2em;padding:10px;top:50%;background:rgba(245,245,245,0.5);z-index:1;width:250px;margin:auto;left:0px;right:0px}.tmap-widget .tmap-vis-graph{height:calc(100% - 35px)}.tmap-widget.tmap-no-buttons .vis-navigation{display:none}.tmap-widget.tmap-advanced-editor .tmap-topbar{background:#d6d9d8}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-active-button{color:#488DCD}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-active-button svg{fill:#488DCD}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-unicode-button{font-size:1.5em;vertical-align:bottom;height:28px;fill:#555555}.tmap-widget.tmap-advanced-editor .tmap-topbar .tmap-unicode-button svg{vertical-align:baseline}.tmap-widget .tmap-menu-bar{width:100%}.tmap-widget .tmap-topbar{background:#F5F5F5;border-bottom:1px solid lightgray;padding:3px 5px;height:35px;position:relative}.tmap-widget .tmap-topbar .tmap-view-label{width:100%;text-align:center;font-weight:bold;padding-top:3px}.tmap-widget .tmap-topbar .tmap-focus-button{position:absolute;right:10px;top:6px}.tmap-widget .tmap-topbar .tmap-focus-button input{width:140px}.tmap-widget .tmap-topbar .tmap-search-dropdown{position:relative}.tmap-widget .tmap-topbar .tmap-search-dropdown .tc-drop-down{position:absolute;z-index:999;right:0px}.tmap-widget .tmap-topbar [hidden]{display:none}.tmap-widget .tmap-topbar select{width:30%;max-width:200px;word-wrap:initial;padding:0px;height:28px}.tmap-widget .tmap-topbar button{line-height:inherit;color:#666}.tmap-widget .tmap-topbar>*{display:inline-block}.tmap-widget .tmap-topbar .tmap-separator:after{color:#bdbdbd;margin:3px;content:\\\" | \\\"}.tmap-widget .tmap-topbar .tc-edit-add-tag .tc-add-tag-name input{width:70%}.tmap-widget .tmap-topbar .tc-sidebar-header{text-shadow:none}.tmap-widget .tmap-topbar .tc-edit-tags{border:none;padding:inherit;box-shadow:none}.tmap-widget.tmap-static-mode .tmap-topbar{height:initial}.tmap-widget.tmap-static-mode .tmap-vis-graph{text-align:center;cursor:not-allowed}.tmap-widget.tmap-static-mode .tmap-vis-graph:not(.tmap-graph-placeholder):hover::before{box-shadow:10px 10px 5px lightgray;color:gray;background:white;content:\\\"Static\\\";font-size:18px;font-weight:bold;left:50%;margin-left:-100px;position:absolute;text-align:center;top:50px;width:200px;z-index:2000;padding:5px;pointer-events:none}.tmap-widget.tmap-static-mode .tmap-vis-graph.tmap-graph-placeholder::before{content:\\\"No Preview\\\";display:block;text-align:center;padding:20px}.tmap-widget .tc-drop-down{min-width:170px;padding:5px;margin:5px 0}.tmap-widget .tc-drop-down button,.tmap-widget .tc-drop-down a{padding:0 2px;text-decoration:none}.tmap-widget .tc-drop-down button:hover,.tmap-widget .tc-drop-down a:hover{color:#ffffff}.tmap-widget .tc-drop-down button svg,.tmap-widget .tc-drop-down a svg{vertical-align:middle}.tmap-widget .tc-block-dropdown{width:370px;min-width:370px;padding:5px;margin:15px 0 0 -370px}.tmap-widget .tc-block-dropdown a{display:inline;padding:0px}.tmap-widget.tmap-plain-design{border:none;padding:0px}.tmap-widget.tmap-plain-design .tmap-topbar{display:none}.tc-sidebar-scrollable .tmap-widget{position:absolute;min-height:350px}.tmap-widget div.vis-network .vis-edit-mode{height:26px}.tmap-widget div.vis-network .vis-manipulation{height:34px;border-top:1px solid #d6d9d8;background:rgba(245,245,245,0.7)}.tmap-widget div.vis-network .vis-navigation .vis-button.tmap-button-enabled{right:15px}.tmap-widget div.vis-network .vis-navigation .vis-button.tmap-button-enabled.tmap-fullscreen-button{bottom:90px;background-image:url(<>)}.tmap-widget div.vis-network .vis-navigation .vis-button.tmap-button-enabled.tmap-halfscreen-button{bottom:130px;background-image:url(<>)}.tmap-widget div.vis-network .vis-navigation .vis-button:hover{box-shadow:0 0 3px 3px rgba(75,75,75,0.3)}.tmap-widget div.vis-network .vis-navigation .vis-button:hover:before{background:beige;display:block;color:black;padding:3px;position:relative;border:1px solid lightgray;width:80px;left:-100px;top:-50px;z-index:1000;text-align:center}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-up:before{left:30px;content:\\\"Scroll up\\\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-down:before{left:30px;content:\\\"Scroll down\\\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-right:before{left:30px;content:\\\"Scroll right\\\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-left:before{left:30px;content:\\\"Scroll left\\\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-zoomOut:before{content:\\\"Zoom out\\\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-zoomIn:before{content:\\\"Zoom in\\\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.vis-zoomExtends:before{content:\\\"Fit whole graph\\\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.tmap-fullscreen-button:before{content:\\\"Toggle Fullscreen\\\"}.tmap-widget div.vis-network .vis-navigation .vis-button:hover.tmap-halfscreen-button:before{content:\\\"Toggle Halfscreen\\\"}.tc-dropzone>.tc-story-river .tmap-widget .vis-navigation .tmap-halfscreen-button{display:none}.tc-dropzone>.tc-story-river .tmap-widget:not(.tmap-fullscreen) .vis-navigation .vis-button{display:none}.tc-dropzone>.tc-story-river .tmap-widget:hover .vis-navigation .vis-button.tmap-fullscreen-button{display:block}.tc-dropzone>.tc-story-river .tmap-widget:hover .vis-navigation .vis-button.vis-zoomExtends{display:block}body.tmap-has-fullscreen-widget{overflow:hidden}body.tmap-has-fullscreen-widget .tmap-widget.tmap-fullscreen{background:white !important;height:100% !important;width:100% !important;position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;z-index:999 !important;border:none !important;margin:0 !important}body.tmap-has-fullscreen-widget .tc-dropzone>*.tmap-has-fullscreen-widget{background:white !important;height:100% !important;width:100% !important;position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;z-index:999 !important;border:none !important;margin:0 !important}body.tmap-has-fullscreen-widget .tc-dropzone>*:not(.tmap-has-fullscreen-widget){display:none}body.tmap-has-halfscreen-widget .tmap-widget.tmap-halfscreen{background:white !important;height:100% !important;width:100% !important;position:fixed !important;top:0 !important;right:0 !important;bottom:0 !important;left:0 !important;z-index:999 !important;border:none !important;margin:0 !important;position:absolute !important;border-left:1px solid lightgray !important}.tc-modal-footer .tmap-hidden-close-button{display:none}.tmap-modal-content{position:relative;padding:1em 0;padding-top:0}.tmap-modal-content table tr td{vertical-align:top}.tmap-modal-content :not(pre)>code{padding:1px;font-size:0.9em;position:relative;top:-1px}.tmap-modal-content :not(pre)>code{color:#666}.tmap-modal-content .tc-tab-set .tc-tab-content{margin-top:0.5em}.tmap-modal-content .tc-image-button{font-size:14px}.tmap-modal-content fieldset{margin:0px}.tmap-modal-content fieldset legend{font-weight:bold}.tc-modal-body .tmap-modal-editor>p{margin:0px}.tc-modal-body .tmap-modal-editor .tmap-template-select select{width:50%}.tc-modal-body .tmap-modal-editor .tc-tiddler-frame{margin:auto;width:auto}.tc-modal-body .tmap-modal-editor .tc-tiddler-frame .tc-tiddler-controls{display:none}.tc-modal-body .tmap-modal-editor .tc-tiddler-frame .tc-tiddler-title{display:none}.tc-modal-body table{margin:6px 0;border:none;width:100%}.tc-modal-body table td,.tc-modal-body table th{border:1px solid lightgray}.tc-modal-body table.tmap-key-value-table th{width:30%;background-color:#F0F0F0}.tc-modal-body table.tmap-config-table.tmap-large-input tr td:last-child{width:20%}.tc-modal-body table.tmap-config-table.tmap-small-input tr td:last-child{width:60%}.tc-modal-body table.tmap-config-table tr td{border:none;vertical-align:top;padding:5px}.tc-modal-body table.tmap-config-table tr td:first-child{width:15%}.tc-modal-body table.tmap-config-table tr td:last-child{width:40%}.tc-modal-body table.tmap-config-table tr td input:not([type=radio]),.tc-modal-body table.tmap-config-table tr td textarea,.tc-modal-body table.tmap-config-table tr td select{width:100%;word-wrap:normal}.tc-modal-body table.tmap-config-table tr td textarea{height:100%}.tc-modal-body table.tmap-config-table tr td .tmap-no-stretch input,.tc-modal-body table.tmap-config-table tr td .tmap-no-stretch textarea,.tc-modal-body table.tmap-config-table tr td .tmap-no-stretch select{width:auto}.tc-modal-body table.tmap-config-table tr td div.tmap-button-wrapper{text-align:center}.tc-modal-body table.tmap-config-table tr td .tmap-note{margin-top:0.5em}.tc-modal-body table.tmap-config-table tr td .tmap-description{font-style:italic}#tmap-element-type-manager>div:first-child{height:50vh;float:left;width:21%;background:linear-gradient(90deg, #f5f5f5 0%, #fff 50%)}#tmap-element-type-manager>div:first-child .tmap-searchbar{padding:1em 0 0 0}#tmap-element-type-manager>div:first-child .tmap-searchbar input{width:calc(100% - 36px)}#tmap-element-type-manager>div:first-child .tmap-searchbar button{width:30px;float:right}#tmap-element-type-manager>div:first-child ul{height:calc(100% - 65px);overflow:auto;margin-top:1em;padding:0}#tmap-element-type-manager>div:first-child ul.no-bullets li{list-style:none}#tmap-element-type-manager>div:first-child ul li{white-space:nowrap}#tmap-element-type-manager>div:first-child ul li .tmap-ranking{width:30px;display:inline-block}#tmap-element-type-manager>div:last-child{height:100%;width:calc(79% - 15px);float:right}#tmap-element-type-manager>div:last-child .tc-tab-set .tc-tab-content{overflow:auto;height:50vh}.tmap-manage-node-types .tmap-edge-type-specific{display:none !important}.tmap-manage-edge-types .tmap-node-type-specific{display:none !important}.tmap-modal-fullscreen-editor .tc-tab-content p{margin:1em 0}.tmap-has-pending-template{background-color:#C1EDC4}#tmap-search-table td{border:none;padding-left:0px}#tmap-search-table td:first-child{width:30px}#tmap-search-table b{display:inline-block;width:40px;text-align:right}#tmap-search-table ul{padding-left:20px;margin:1em 0 0 0}#tmap-search-table ul li{list-style:inherit}#tmap-search-table ul button{text-align:left}button.tmap-go-back{margin-bottom:1em;font-weight:bold}.tmap-badges>span,.tmap-badge{background:gray;font-size:11px;color:white;padding:3px 4px;display:inline-block;font-weight:bold;border-radius:2px;line-height:1em;cursor:help}.tmap-badges>span.tmap-red-flag,.tmap-badge.tmap-red-flag{background:red}.tmap-popup{display:none;position:absolute;opacity:0;transition:opacity 0.3s ease}.tmap-popup.tmap-popup-active{opacity:1}.tmap-tooltip{box-shadow:3px 3px 10px rgba(0,0,0,0.2);min-width:100px;min-height:50px;max-width:<>;max-height:<>;padding:5px;resize:both;overflow:auto;cursor:auto;font-family:verdana;font-size:14px;background-color:#f5f4ed;border:1px solid #808074;-moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px}.tmap-tooltip[style*=\\\"height\\\"]{max-height:none !important}.tmap-tooltip[style*=\\\"width\\\"]{max-width:none !important}.tmap-quick-connect{font-size:0.7em}.tmap-quick-connect p{padding-left:0;padding-right:0}.tmap-quick-connect .tc-drop-down{padding:5px;width:250px;white-space:normal;line-height:1em;position:absolute;z-index:1000;right:50px;background:linear-gradient(45deg, #f5f5f5 0%, #fff 50%, #f5f5f5 100%)}.tmap-quick-connect .tc-drop-down:first-child{padding-top:0;margin-top:0}.tmap-quick-connect .tc-drop-down .title{margin:1.5em 0 0.5em 0;font-weight:bold;color:gray}.tmap-quick-connect .tc-drop-down select{width:80px;word-wrap:initial}.tmap-quick-connect .tc-drop-down table{width:100%;border:none;margin:0.5em 0}.tmap-quick-connect .tc-drop-down table td,.tmap-quick-connect .tc-drop-down table th{padding:3px 3px 3px 0;vertical-align:middle;font-weight:normal;border:none}.tmap-quick-connect .tc-drop-down table td table,.tmap-quick-connect .tc-drop-down table th table{margin:0}.tmap-quick-connect .tc-drop-down .tmap-quick-connect-search-bar,.tmap-quick-connect .tc-drop-down .tmap-quick-connect-existing-bar{background:#F1F1F1;margin-top:0;border-bottom:1px solid #D5D5D5;border-top:1px solid #D5D5D5}.tmap-quick-connect .tc-drop-down table.tmap-quick-connect-search-bar td,.tmap-quick-connect .tc-drop-down th{padding:5px}.tmap-quick-connect .tc-drop-down .tmap-quick-connect-existing-bar{padding:5px}.tmap-quick-connect .tc-drop-down .tmap-connection-table th,.tmap-quick-connect .tc-drop-down .tmap-connection-table td{text-align:left;padding:1px 1px 1px 0}.tmap-quick-connect .tc-drop-down .tmap-connection-table button{width:20px;padding:0px}.tmap-quick-connect .tc-drop-down .tmap-scroll-table{height:120px;overflow:auto;display:block}.tmap-quick-connect .tc-drop-down hr{border:0;height:0;border-top:1px solid rgba(0,0,0,0.1);border-bottom:1px solid rgba(255,255,255,0.3)}.tmap-quick-connect .tc-drop-down a{display:inline;padding:0;color:#5778d8;background:transparent}.tmap-quick-connect .tc-drop-down a:hover{background:transparent;color:#5778d8;text-decoration:underline}.tmap-quick-connect .tc-drop-down button{display:inline-block;padding:0px 3px;text-align:center;color:#333333;line-height:1.0}.tmap-quick-connect .tc-drop-down button:hover{color:#ffffff}.tmap-quick-connect .tc-drop-down button svg{fill:inherit}.tmap-quick-connect .tc-drop-down button svg:hover{fill:#ffffff}\\n\",\"title\":\"$:/plugins/felixhayashi/tiddlymap/layout\",\"type\":\"text/vnd.tiddlywiki\",\"tags\":[\"$:/tags/Stylesheet\"]},\"$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/AbstractEdgeTypeSubscriber\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _createClass=function(){function e(e,r){for(var t=0;t1&&arguments[1]!==undefined?arguments[1]:{},i=t.priority,n=i===undefined?0:i,a=t.skipOthers,s=a===undefined?true:a,u=t.ignore,l=u===undefined?false:u;_classCallCheck(this,e);this.allEdgeTypes=r;this.priority=n;this.skipOthers=s;this.ignore=l}_createClass(e,[{key:\\\"setTracker\\\",value:function e(r){this.tracker=r}},{key:\\\"loadEdges\\\",value:function e(r,t,i){throw new _exception.MissingOverrideError(this,\\\"loadEdges\\\")}},{key:\\\"canHandle\\\",value:function e(r){throw new _exception.MissingOverrideError(this,\\\"canHandle\\\")}},{key:\\\"insertEdge\\\",value:function e(r,t,i){}},{key:\\\"deleteEdge\\\",value:function e(r,t,i){}}]);return e}();exports.default=AbstractEdgeTypeSubscriber;\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/AbstractMagicEdgeTypeSubscriber\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _createClass=function(){function e(e,r){for(var t=0;t1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:0},r)))}_createClass(t,[{key:\\\"loadEdges\\\",value:function e(t,r,i){var a=_utils2.default.parseFieldData(t,\\\"tmap.edges\\\");if(!a){return}var n=this.tracker.getTiddlersByIds();var u=t.fields[\\\"tmap.id\\\"];var s=_utils2.default.makeHashMap();for(var l in a){var o=a[l];var d=n[o.to];if(d&&(!r||r[d])&&(!i||i[o.type])){s[l]=new _Edge2.default(u,o.to,o.type,l)}}return s}},{key:\\\"insertEdge\\\",value:function e(t,r,i){var a=_utils2.default.parseFieldData(t,\\\"tmap.edges\\\",{});r.id=r.id||_utils2.default.genUUID();a[r.id]={to:r.to,type:i.id};_utils2.default.writeFieldData(t,\\\"tmap.edges\\\",a,$tm.config.sys.jsonIndentation);return r}},{key:\\\"deleteEdge\\\",value:function e(t,r,i){if(!r.id)return;var a=_utils2.default.parseFieldData(t,\\\"tmap.edges\\\",{});delete a[r.id];_utils2.default.writeFieldData(t,\\\"tmap.edges\\\",a,$tm.config.sys.jsonIndentation);return r}},{key:\\\"canHandle\\\",value:function e(t){return true}}]);return t}(_AbstractEdgeTypeSubscriber2.default);exports.TmapEdgeTypeSubscriber=TmapEdgeTypeSubscriber;\",\"type\":\"application/javascript\",\"module-type\":\"tmap.edgetypehandler\"},\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/field\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/field\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});exports.FieldEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:10},r)))}_createClass(t,[{key:\\\"canHandle\\\",value:function e(t){return t.namespace===\\\"tw-field\\\"}},{key:\\\"getReferencesFromField\\\",value:function e(t,r,i){return[t.fields[r]]}},{key:\\\"insertEdge\\\",value:function e(t,r,i){var n=this.tracker.getTiddlerById(r.to);if(n==null){return}_utils2.default.setField(t,i.name,n);return r}},{key:\\\"deleteEdge\\\",value:function e(t,r,i){var n=this.tracker.getTiddlerById(r.to);if(n==null){return}_utils2.default.setField(t,i.name,undefined);return r}}]);return t}(_AbstractMagicEdgeTypeSubscriber2.default);exports.FieldEdgeTypeSubscriber=FieldEdgeTypeSubscriber;\",\"type\":\"application/javascript\",\"module-type\":\"tmap.edgetypehandler\"},\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/filter\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/filter\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});exports.FilterEdgeTypeSubstriber=undefined;var _extends=Object.assign||function(e){for(var r=1;r1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,r);return _possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,_extends({priority:10},t)))}_createClass(r,[{key:\\\"canHandle\\\",value:function e(r){return r.namespace===\\\"tw-filter\\\"}},{key:\\\"getReferencesFromField\\\",value:function e(r,t,i){var n=r.fields[t];return runFilter(n,r.fields.title,i)}},{key:\\\"insertEdge\\\",value:function e(r,t,i){if(!t.to){return}var n=i.name;var a=this.tracker.getTiddlerById(t.to);var s=r.fields.title;var u=r.fields[n]||\\\"\\\";while(runFilter(u,s).indexOf(a)<0){var l=$tw.wiki.parseFilter(u);var o=false;for(var f=l.length-1;f>=0;f--){var p=l[f];var c=runIsSingleTitle(p);if(p.prefix===\\\"-\\\"&&c===a){l.splice(f,1);o=true;break}}if(!o){l.push({prefix:\\\"\\\",operators:[{operator:\\\"title\\\",operands:[{text:a}]}]})}u=reassembleFilter(l)}_utils2.default.setField(r,n,u);return t}},{key:\\\"deleteEdge\\\",value:function e(r,t,i){var n=i.name;var a=this.tracker.getTiddlerById(t.to);var s=r.fields.title;var u=r.fields[n];while(u&&runFilter(u,s).indexOf(a)>=0){var l=$tw.wiki.parseFilter(r.fields[n]);var o=false;for(var f=0;f0){r.push(\\\" \\\")}r.push(i.prefix);var n=runIsSingleTitle(i);if(n){r.push(bestQuoteFor(n))}else if(i.operators.length>0){r.push(\\\"[\\\");for(var a=0;a\\\")}else if(o.indirect){r.push(\\\"{\\\",o.text,\\\"}\\\")}else{r.push(\\\"[\\\",o.text,\\\"]\\\")}}}}r.push(\\\"]\\\")}}if(r.length>0){return r.join(\\\"\\\")}return undefined}function runIsSingleTitle(e){if(e.operators.length===1&&!e.namedPrefix){var r=e.operators[0];if(r.operator===\\\"title\\\"&&r.operands.length===1&&!r.suffix&&!r.prefix){var t=r.operands[0];if(!t.variable&&!t.indirect){return t.text}}}return null}function bestQuoteFor(e){if(/^[^\\\\s\\\\[\\\\]\\\\-+~=:'\\\"][^\\\\s\\\\[\\\\]]*$/.test(e)){return e}if(e.indexOf(\\\"]\\\")<0){return\\\"[[\\\"+e+\\\"]]\\\"}if(e.indexOf(\\\"'\\\")<0){return\\\"'\\\"+e+\\\"'\\\"}return'\\\"'+e+'\\\"'}function runFilter(e,r,t){var i=new _widget2.default.widget({});i.setVariable(\\\"currentTiddler\\\",r);var n=new _widget2.default.widget({},{parentWidget:i});var a=_utils2.default.getMatches(e,t,n);return a}exports.FilterEdgeTypeSubstriber=FilterEdgeTypeSubstriber;\",\"type\":\"application/javascript\",\"module-type\":\"tmap.edgetypehandler\"},\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/list\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/list\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});exports.ListEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:10},r)))}_createClass(t,[{key:\\\"canHandle\\\",value:function e(t){return t.namespace===\\\"tw-list\\\"}},{key:\\\"getReferencesFromField\\\",value:function e(t,r,i){return $tw.utils.parseStringArray(t.fields[r])}},{key:\\\"insertEdge\\\",value:function e(t,r,i){if(!r.to){return}var n=i.name;var s=$tw.utils.parseStringArray(t.fields[n]);s=(s||[]).slice();var a=this.tracker.getTiddlerById(r.to);s.push(a);_utils2.default.setField(t,n,$tw.utils.stringifyList(s));return r}},{key:\\\"deleteEdge\\\",value:function e(t,r,i){var n=$tw.utils.parseStringArray(t.fields[i.name]);n=(n||[]).slice();var s=this.tracker.getTiddlerById(r.to);var a=n.indexOf(s);if(a>-1){n.splice(a,1)}var u=void 0;if(n.length>0){u=$tw.utils.stringifyList(n)}_utils2.default.setField(t,i.name,u);return r}}]);return t}(_AbstractMagicEdgeTypeSubscriber2.default);exports.ListEdgeTypeSubscriber=ListEdgeTypeSubscriber;\",\"type\":\"application/javascript\",\"module-type\":\"tmap.edgetypehandler\"},\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/link\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/link\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});exports.LinkEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,t);return _possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,_extends({priority:20},r)))}_createClass(t,[{key:\\\"canHandle\\\",value:function e(t){return t.id===\\\"tw-body:link\\\"}},{key:\\\"getReferences\\\",value:function e(t,r,n){if(n&&!n[\\\"tw-body:link\\\"]){return}var i=$tw.wiki.getTiddlerLinks(t.fields.title);if(!i||!i.length){return}return{\\\"tw-body:link\\\":i}}}]);return t}(_AbstractRefEdgeTypeSubscriber2.default);exports.LinkEdgeTypeSubscriber=LinkEdgeTypeSubscriber;\",\"type\":\"application/javascript\",\"module-type\":\"tmap.edgetypehandler\"},\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/transclude\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/modules/edge-type-handler/body/transclude\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});exports.TranscludeEdgeTypeSubscriber=undefined;var _extends=Object.assign||function(e){for(var r=1;r1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,r);return _possibleConstructorReturn(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,_extends({priority:20,ignore:typeof $tw.wiki.getTiddlerTranscludes!==\\\"function\\\"},t)))}_createClass(r,[{key:\\\"canHandle\\\",value:function e(r){return r.id===\\\"tw-body:transclude\\\"}},{key:\\\"getReferences\\\",value:function e(r,t,n){if(n&&!n[\\\"tw-body:transclude\\\"]){return}var i=$tw.wiki.getTiddlerTranscludes(r.fields.title);if(!i||!i.length){return}return{\\\"tw-body:transclude\\\":i}}}]);return r}(_AbstractRefEdgeTypeSubscriber2.default);exports.TranscludeEdgeTypeSubscriber=TranscludeEdgeTypeSubscriber;\",\"type\":\"application/javascript\",\"module-type\":\"tmap.edgetypehandler\"},\"$:/plugins/felixhayashi/tiddlymap/js/Edge\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/Edge\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _utils=require(\\\"$:/plugins/felixhayashi/tiddlymap/js/utils\\\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError(\\\"Cannot call a class as a function\\\")}}/* @preserve TW-Guard */\\n/*\\\\\\n\\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Edge\\ntype: application/javascript\\nmodule-type: library\\n\\n@preserve\\n\\n\\\\*/\\n/* @preserve TW-Guard */var Edge=function e(t,i,s,l){_classCallCheck(this,e);this.from=t;this.to=i;this.type=s;this.id=l||_utils2.default.genUUID()};exports.default=Edge;\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _typeof=typeof Symbol===\\\"function\\\"&&typeof Symbol.iterator===\\\"symbol\\\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\\\"function\\\"&&e.constructor===Symbol&&e!==Symbol.prototype?\\\"symbol\\\":typeof e};var _extends=Object.assign||function(e){for(var t=1;t0&&arguments[0]!==undefined?arguments[0]:\\\"\\\";t=_utils2.default.getWithoutPrefix(t,env.path.edgeTypes+\\\"/\\\");var r=t.match(edgeTypeRegex)||[];return{marker:r[1]||\\\"\\\",namespace:r[3]&&r[2]||\\\"\\\",name:r[3]||r[2]||\\\"\\\"}}},{key:\\\"getId\\\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:\\\"\\\";var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\\\"\\\";var n=arguments[2];return n?t+(r&&r+\\\":\\\")+n:\\\"tmap:unknown\\\"}}]);return t}(_MapElementType3.default);EdgeType.getInstance=function(e){return e instanceof EdgeType?e:new EdgeType(e)};EdgeType.fieldMeta=_extends({},_MapElementType3.default.fieldMeta,{label:{},\\\"show-label\\\":{}});var isArrowEnabled=function e(t,r){var n=t[r];if(n==null&&r===\\\"to\\\"){return true}return(typeof n===\\\"undefined\\\"?\\\"undefined\\\":_typeof(n))===\\\"object\\\"?n.enabled!==false:n===true};var edgeTypeRegex=new RegExp(\\\"^(_?)([^:_][^:]*):?([^:]*)\\\");exports.default=EdgeType;\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/MapElementType\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/MapElementType\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _typeof=typeof Symbol===\\\"function\\\"&&typeof Symbol.iterator===\\\"symbol\\\"?function(t){return typeof t}:function(t){return t&&typeof Symbol===\\\"function\\\"&&t.constructor===Symbol&&t!==Symbol.prototype?\\\"symbol\\\":typeof t};var _createClass=function(){function t(t,e){for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,e);if(t instanceof e){return t}this._registerPaths(t);if(i.isCreate){if(!this.configTRef){var r=_utils2.default.getRandomLabel({plural:true});this.configTRef=$tw.wiki.generateNewTitle($tm.path.views+\\\"/\\\"+r)}this._createView(i)}else if(!e.exists(this.getRoot())){throw new ResourceNotFoundException(\\\"ViewAbstraction\\\",t)}}_createClass(e,[{key:\\\"isLocked\\\",value:function e(){return $tw.wiki.isShadowTiddler(this.configTRef)}},{key:\\\"update\\\",value:function e(t){var i=t.changedTiddlers;if(t[env.path.edgeTypes]||_utils2.default.hasKeyWithPrefix(i,this.getRoot())){this._clearCaches();return true}return false}},{key:\\\"addPlaceholder\\\",value:function e(t){_utils2.default.cp(_utils2.default.getTiddlerRef(t),this.snapshotTRef,true)}},{key:\\\"exists\\\",value:function t(){return e.exists(this)}},{key:\\\"getRoot\\\",value:function e(){return this.configTRef}},{key:\\\"getCreationDate\\\",value:function e(t){var i=$tw.wiki.getTiddler(this.configTRef).fields[\\\"created\\\"];if(t){return i instanceof Date?$tw.utils.formatDateString(i,\\\"DDth MMM YYYY\\\"):\\\"\\\"}return i}},{key:\\\"getLabel\\\",value:function e(){return _utils2.default.getBasename(this.configTRef)}},{key:\\\"destroy\\\",value:function e(){_utils2.default.deleteTiddlers(_utils2.default.getMatches(\\\"[prefix[\\\"+this.configTRef+\\\"]]\\\"))}},{key:\\\"getOccurrences\\\",value:function e(){var t=\\\"[regexp:text[<\\\\\\\\$(tiddlymap|tmap).*?view=.\\\"+this.getLabel()+\\\"..*?>]]\\\";return _utils2.default.getMatches(t)}},{key:\\\"rename\\\",value:function t(i){if(typeof i!==\\\"string\\\"){return false}if(_utils2.default.inArray(\\\"/\\\",i)){$tm.notify('A view name must not contain any \\\"/\\\"');return false}var r=this.getLabel();var a=env.path.views+\\\"/\\\"+i;var n=this.getRoot();_utils2.default.mv(n,a,true);if($tm.config.sys.defaultView===r){_utils2.default.setEntry($tm.ref.sysUserConf,\\\"defaultView\\\",i)}if($tm.config.sys.liveTab.fallbackView===r){_utils2.default.setEntry($tm.ref.sysUserConf,\\\"liveTab.fallbackView\\\",i)}$tw.wiki.each((function(t,a){if(t.fields[\\\"tmap.open-view\\\"]===r){_utils2.default.setField(a,\\\"tmap.open-view\\\",i);return}if(e.exists(a)){var n=new e(a);var l=n.getNodeData();for(var s in l){if(l[s][\\\"open-view\\\"]===r){l[s][\\\"open-view\\\"]=i}}n.saveNodeData(l)}}));this._clearCaches();this._registerPaths(i)}},{key:\\\"isEnabled\\\",value:function e(t){return _utils2.default.isTrue(this.getConfig(t),false)}},{key:\\\"getConfig\\\",value:function e(t){var i=this;var r=$tw.wiki.getCacheForTiddler(this.configTRef,\\\"tmap-config\\\",(function(){var e=_utils2.default.getTiddler(i.configTRef).fields;return _utils2.default.getPropertiesByPrefix(e,\\\"config.\\\")}));var a=t&&_utils2.default.startsWith(t,\\\"config.\\\")?t:\\\"config.\\\"+t;return t?r[a]:r}},{key:\\\"setConfig\\\",value:function e(){for(var t=arguments.length,i=Array(t),r=0;r0&&arguments[0]!==undefined?arguments[0]:{},r=i.isForce,a=i.protoView,n=i.isHidden;if(e.exists(this)){if(!r){return}this.destroy()}if(e.exists(a)){_utils2.default.cp(new e(a).getRoot(),this.configTRef,true)}var l={title:this.configTRef,id:_utils2.default.genUUID()};if(!n){l[$tm.field.viewMarker]=true}$tw.wiki.addTiddler(new $tw.Tiddler(_utils2.default.getTiddler(this.configTRef),l));this.setEdgeTypeFilter(env.filter.defaultEdgeTypeFilter)}}],[{key:\\\"_getNodeIdFilterPart\\\",value:function e(t){var i=(typeof t===\\\"undefined\\\"?\\\"undefined\\\":_typeof(t))===\\\"object\\\"?t.id:t;return\\\"[field:tmap.id[\\\"+i+\\\"]]\\\"}},{key:\\\"_getRootPath\\\",value:function t(i){if(i instanceof e){return i.configTRef}if(i instanceof $tw.Tiddler){i=i.fields.title}if(typeof i===\\\"string\\\"){var r=_utils2.default.getWithoutPrefix(i,$tm.path.views+\\\"/\\\");if(r&&!_utils2.default.hasSubString(r,\\\"/\\\")){return $tm.path.views+\\\"/\\\"+r}}}},{key:\\\"exists\\\",value:function t(i){if(!i){return false}if(i instanceof e){i=i.configTRef}else{i=e._getRootPath(i)}return _utils2.default.tiddlerExists(i)}}]);return e}();exports.default=ViewAbstraction;\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/Popup\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/Popup\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _utils=require(\\\"$:/plugins/felixhayashi/tiddlymap/js/utils\\\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function Popup(e,t){t=t||{};this._parentDomNode=e;this._domNode=document.createElement(\\\"div\\\");this._domNode.style.display=\\\"none\\\";this._domNode.className=\\\"tmap-popup\\\";this._parentDomNode.appendChild(this._domNode);$tw.utils.addClass(this._domNode,t.className);this._isEnabled=true;this._isPreventShowOrHide=false;this._isHideOnClick=!!t.hideOnClick;this._timeoutShow=null;this._timeoutHide=null;this._isDisplayNoneAfterAnimation=true;var i=parseInt(t.leavingDelay);this._hideDelayLeavingPopup=_utils2.default.isInteger(i)?i:200;i=parseInt(t.hideDelay);this._hideDelay=_utils2.default.isInteger(i)?i:200;i=parseInt(t.showDelay);this._showDelay=_utils2.default.isInteger(i)?i:200;_utils2.default.bindTo(this,[\\\"_show\\\",\\\"_hide\\\",\\\"_handleEnter\\\",\\\"_handleLeave\\\",\\\"_handleAnimationEnd\\\",\\\"_handleClick\\\"]);this._listeners={mouseenter:this._handleEnter,mouseleave:this._handleLeave,click:[this._handleClick,true]};var s=this._handleAnimationEnd;this._listeners[$tw.utils.convertEventName(\\\"animationEnd\\\")]=s;this._listeners[$tw.utils.convertEventName(\\\"transitionEnd\\\")]=s;_utils2.default.setDomListeners(\\\"add\\\",this._domNode,this._listeners,false)}\\n/* @preserve TW-Guard */\\n/*\\\\\\n\\ntitle: $:/plugins/felixhayashi/tiddlymap/js/Popup\\ntype: application/javascript\\nmodule-type: library\\n\\n@preserve\\n\\n\\\\*/\\n/* @preserve TW-Guard */Popup.prototype._handleEnter=function(e){this._isPreventShowOrHide=true};Popup.prototype._handleLeave=function(e){this._isPreventShowOrHide=false;this.hide(this._hideDelayLeavingPopup)};Popup.prototype._handleClick=function(e){if(this._isHideOnClick){this._hide(true)}};Popup.prototype._handleAnimationEnd=function(){if(this._isDisplayNoneAfterAnimation){this._domNode.style.display=\\\"none\\\"}};Popup.prototype._hide=function(e){if(!e&&this._isPreventShowOrHide)return;this._isDisplayNoneAfterAnimation=true;this._isPreventShowOrHide=false;$tw.utils.removeClass(this._domNode,\\\"tmap-popup-active\\\")};Popup.prototype._show=function(e,t){if(this._isPreventShowOrHide||$tm.mouse.ctrlKey||!this._isEnabled){return}this._domNode.style.display=\\\"none\\\";$tw.utils.removeClass(this._domNode,\\\"tmap-popup-active\\\");this._domNode.removeAttribute(\\\"style\\\");_utils2.default.removeDOMChildNodes(this._domNode);var i=this._domNode.appendChild(document.createElement(\\\"div\\\"));if(typeof t===\\\"function\\\"){t(e,i)}else{i.innerHTML=t}if(!i.childNodes.length)return;var s=this._parentDomNode.getBoundingClientRect();var o=$tm.mouse.clientX;var n=$tm.mouse.clientY;this._domNode.style.display=\\\"block\\\";var d=this._domNode.getBoundingClientRect();var l=s.right-(o+d.width);var h=o-d.width-s.left;var a=l>h;var u=s.bottom-(n+d.height);var r=n-d.height-s.top;var p=u>r;var _=a?-15:d.width+15;var m=p?-15:d.height+15;this._domNode.style.left=o-s.left-_+\\\"px\\\";this._domNode.style.top=n-s.top-m+\\\"px\\\";this._isDisplayNoneAfterAnimation=false;$tw.utils.addClass(this._domNode,\\\"tmap-popup-active\\\")};Popup.prototype.show=function(e,t,i){this._clearTimeouts();i=_utils2.default.isInteger(i)?i:this._showDelay;this._timeoutShow=setTimeout(this._show,i,e,t)};Popup.prototype.hide=function(e,t){this._clearTimeouts();e=_utils2.default.isInteger(e)?e:this._hideDelay;if(t||e===0){this._hide(t)}else{this._timeoutHide=setTimeout(this._hide,e,t)}};Popup.prototype.setEnabled=function(e){this._isEnabled=e};Popup.prototype.isShown=function(){return this._domNode.style.display===\\\"block\\\"};Popup.prototype._clearTimeouts=function(){clearTimeout(this._timeoutShow);clearTimeout(this._timeoutHide);this._timeoutShow=undefined;this._timeoutHide=undefined};exports.default=Popup;\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/lib/SelectionRectangle\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _createClass=function(){function t(t,e){for(var i=0;i1?e-1:0),n=1;n\\n * <<< https://github.com/Mikhus/jsurl\\n *\\n * @class\\n * @param {string} url\\n */function Url(t){this.paths=function(t){var e=\\\"\\\",r=0,o;if(t&&t.length&&t+\\\"\\\"!==t){if(this.isAbsolute()){e=\\\"/\\\"}for(o=t.length;r65535){return t}return String.fromCharCode(h)}));e=e.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi,(function(t,e,r){var o=parseInt(e,16)-192;if(o<2){return t}var s=parseInt(r,16)-128;return String.fromCharCode((o<<6)+s)}));e=e.replace(/%([0-7][0-9a-f])/gi,(function(t,e){return String.fromCharCode(parseInt(e,16))}));return e},parseQs=function t(e){var r=e.query;e.query=new function(t){var e=/([^=&]+)(=([^&]*))?/g,r;while(r=e.exec(t)){var o=decodeURIComponent(r[1].replace(/\\\\+/g,\\\" \\\")),s=r[3]?decode(r[3]):\\\"\\\";if(this[o]!=null){if(!(this[o]instanceof Array)){this[o]=[this[o]]}this[o].push(s)}else{this[o]=s}}this.clear=function(){for(var t in this){if(!(this[t]instanceof Function)){delete this[t]}}};this.count=function(){var t=0,e;for(e in this){if(!(this[e]instanceof Function)){t++}}return t};this.isEmpty=function(){return this.count()===0};this.toString=function(){var t=\\\"\\\",e=encode,r,o;for(r in this){if(this[r]instanceof Function){continue}if(this[r]instanceof Array){var s=this[r].length;if(s){for(o=0;o0};var escapeRegex=exports.escapeRegex=function e(t){return t.replace(/[-$^?.+*[\\\\]\\\\\\\\(){}|]/g,\\\"\\\\\\\\$&\\\")};var getBasename=exports.getBasename=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\\\"/\\\";return t.substring(t.lastIndexOf(r)+1)};var startsWith=exports.startsWith=function e(t,r){return t.substring(0,r.length)===r};var base64=exports.base64=typeof window===\\\"undefined\\\"?function(e){return new Buffer(e).toString(\\\"base64\\\")}:window.btoa.bind(window);var identity=exports.identity=function e(t){return(typeof t===\\\"undefined\\\"?\\\"undefined\\\":_typeof(t))===\\\"object\\\"&&t!==null?JSON.stringify(Object.keys(t).sort().map((function(e){return[e,t[e]]}))):null};var isEqual=exports.isEqual=function e(t,r){return identity(t)===identity(r)};var getRandomInt=exports.getRandomInt=function e(t,r){return Math.floor(Math.random()*(r-t)+t)};var inArray=exports.inArray=function e(t,r){return r.indexOf(t)!==-1};var hasSubString=exports.hasSubString=function e(t,r){return t.indexOf(r)!==-1};var parseJSON=exports.parseJSON=function e(t,r){try{return JSON.parse(t)}catch(e){return r}};var joinAndWrap=exports.joinAndWrap=function e(t,r,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:\\\" \\\";return r+t.join(n+o+r)+n};var getWithoutNewLines=exports.getWithoutNewLines=function e(t){return typeof t===\\\"string\\\"?t.replace(/[\\\\n\\\\r]/g,\\\" \\\"):t};var makeHashMap=exports.makeHashMap=function e(t){var r=Object.create(null);Object.defineProperty(r,\\\"hasOwnProperty\\\",{enumerable:false,configurable:false,writable:false,value:Object.prototype.hasOwnProperty.bind(r)});if(t){for(var n in t){if(t.hasOwnProperty(n)){r[n]=t[n]}}}return r};var getAncestorWithClass=exports.getAncestorWithClass=function e(t,r){if((typeof t===\\\"undefined\\\"?\\\"undefined\\\":_typeof(t))!==\\\"object\\\"||typeof r!==\\\"string\\\"){return}while(t.parentNode&&t.parentNode!==document){t=t.parentNode;if(t.classList.contains(r)){return t}}};var findAndRemoveClassNames=exports.findAndRemoveClassNames=function e(t){for(var r=t.length;r--;){var n=document.getElementsByClassName(t[r]);for(var o=n.length;o--;){n[o].classList.remove(t[r])}}};var isInteger=exports.isInteger=Number.isInteger||function(e){return typeof e===\\\"number\\\"&&isFinite(e)&&Math.floor(e)===e};var replaceAll=exports.replaceAll=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\\\"\\\";var n=arguments[2];for(var o=n.length;o--;){var s=n[o];var i=r;if(Array.isArray(s)){i=s[1];s=s[0]}t=t.replace(s,i)}return t};var isTrue=exports.isTrue=function e(t,r){if(t==null){return!!r}else if(typeof t===\\\"string\\\"){var n=parseInt(t);return isNaN(n)?t===\\\"true\\\":n!==0}else if(typeof t===\\\"boolean\\\"){return t}else if(typeof t===\\\"number\\\"){return n!==0}return false};var removeArrayElement=exports.removeArrayElement=function e(t,r){var n=t.indexOf(r);if(n>-1){return t.splice(n,1)[0]}};var getPropertiesByPrefix=exports.getPropertiesByPrefix=function e(t,r,n){var o=makeHashMap();for(var s in t){if(startsWith(s,r)){o[n?s.substr(r.length):s]=t[s]}}return o};var getWithoutPrefix=exports.getWithoutPrefix=function e(t,r){return startsWith(t,r)?t.substr(r.length):t};var hasKeyWithPrefix=exports.hasKeyWithPrefix=function e(t,r){for(var n in t){if(startsWith(n,r)){return true}}return false};var pickRandom=exports.pickRandom=function e(t){return t[getRandomInt(0,t.length-1)]};var getFirstElementByClassName=exports.getFirstElementByClassName=function e(t,r,n){var o=(r||document).getElementsByClassName(t)[0];if(!o&&(typeof n===\\\"boolean\\\"?n:true)){var s='Missing element with class \\\"'+t+'\\\" inside '+r;throw new _exception.EnvironmentError(s)}return o};var getRandomLabel=exports.getRandomLabel=function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var r=pickRandom([\\\"exciting\\\",\\\"notable\\\",\\\"epic\\\",\\\"new\\\",\\\"fancy\\\",\\\"great\\\",\\\"cool\\\",\\\"fresh\\\",\\\"funky\\\",\\\"clever\\\"]);var n=(t.object||pickRandom([\\\"concept\\\",\\\"idea\\\",\\\"thought\\\",\\\"topic\\\",\\\"subject\\\"]))+(t.plural?\\\"s\\\":\\\"\\\");return\\\"My \\\"+r+\\\" \\\"+n};var _merge=function e(t,r){if((typeof t===\\\"undefined\\\"?\\\"undefined\\\":_typeof(t))!==\\\"object\\\"){t={}}for(var n in r){if(r.hasOwnProperty(n)){if(r[n]!=null){t[n]=_typeof(r[n])===\\\"object\\\"?e(t[n],r[n]):r[n]}}}return t};var merge=exports.merge=function e(t){for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o=0?n:n+r)};var getNearestRasterPosition=exports.getNearestRasterPosition=function e(t,r){var n=t.x,o=t.y;var s=r/2;var i=mod(n,r);var a=mod(o,r);return{x:i1&&arguments[1]!==undefined?arguments[1]:{};var t=r.delimiter||\\\".\\\";var l=r.prefix||\\\"\\\";var i={};function u(e,n){Object.keys(e).forEach((function(f){var s=e[f];var c=r.safe&&Array.isArray(s);var a=Object.prototype.toString.call(s);var d=a===\\\"[object Object]\\\"||a===\\\"[object Array]\\\";var o=n?n+t+f:l+f;if(!c&&d){return u(s,o)}i[o]=s}))}u(n);return i};var unflatten=exports.unflatten=function e(n){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=r.delimiter||\\\".\\\";var l={};if(Object.prototype.toString.call(n)!==\\\"[object Object]\\\"){return n}function i(e){var n=Number(e);return isNaN(n)||e.indexOf(\\\".\\\")!==-1?e:n}Object.keys(n).forEach((function(u){var f=u.split(t);var s=i(f.shift());var c=i(f[0]);var a=l;while(c!==undefined){if(a[s]===undefined){a[s]=typeof c===\\\"number\\\"&&!r.object?[]:{}}a=a[s];if(f.length>0){s=i(f.shift());c=i(f[0])}}a[s]=e(n[u],r)}));return l};var genUUID=exports.genUUID=function(){var e=\\\"0123456789abcdefghijklmnopqrstuvwxyz\\\".split(\\\"\\\");return function(){var n=e,r=new Array(36);var t=0,l;for(var i=0;i<36;i++){if(i==8||i==13||i==18||i==23){r[i]=\\\"-\\\"}else if(i==14){r[i]=\\\"4\\\"}else{if(t<=2)t=33554432+Math.random()*16777216|0;l=t&15;t=t>>4;r[i]=n[i==19?l&3|8:l]}}return r.join(\\\"\\\")}}();\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});exports.getArrayValuesAsHashmapKeys=exports.getLookupTable=exports.keyOfItemWithProperty=exports.keysOfItemsWithProperty=exports.getDublicates=exports.getId=exports.refreshDataSet=exports.drawRaster=exports.getPrettyFilter=exports.groupByProperty=exports.isEdgeTypeMatch=exports.getEdgeTypeMatches=exports.getDataUri=exports.convert=exports.getValues=exports.getIterableCollection=exports.getLabel=undefined;var _typeof=typeof Symbol===\\\"function\\\"&&typeof Symbol.iterator===\\\"symbol\\\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\\\"function\\\"&&e.constructor===Symbol&&e!==Symbol.prototype?\\\"symbol\\\":typeof e};/* @preserve TW-Guard */\\n/*\\\\\\n\\ntitle: $:/plugins/felixhayashi/tiddlymap/js/lib/utils/tmap\\ntype: application/javascript\\nmodule-type: library\\n\\n@preserve\\n\\n\\\\*/\\n/* @preserve TW-Guard */var _vis=require(\\\"$:/plugins/felixhayashi/vis/vis.js\\\");var _vis2=_interopRequireDefault(_vis);var _exception=require(\\\"$:/plugins/felixhayashi/tiddlymap/js/exception\\\");var _basic=require(\\\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/basic\\\");var basicUtils=_interopRequireWildcard(_basic);var _wiki=require(\\\"$:/plugins/felixhayashi/tiddlymap/js/lib/utils/wiki\\\");var wikiUtils=_interopRequireWildcard(_wiki);function _interopRequireWildcard(e){if(e&&e.__esModule){return e}else{var t={};if(e!=null){for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}}t.default=e;return t}}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var getLabel=exports.getLabel=function e(t,r){var i=wikiUtils.getTiddler(t);return(i&&i.fields[r]?i.fields[r]:i.fields.title).replace(\\\"\\\\\\\\n\\\",\\\"\\\\n\\\")};var getIterableCollection=exports.getIterableCollection=function e(t){return t instanceof _vis2.default.DataSet?t.get():t};var getValues=exports.getValues=function e(t){if(Array.isArray(t)){return t}else if(t instanceof _vis2.default.DataSet){return t.get({returnType:\\\"Array\\\"})}var r=[];var i=Object.keys(t);for(var a=i.length;a--;){r.push(t[i[a]])}return r};var convert=exports.convert=function e(t,r){if((typeof t===\\\"undefined\\\"?\\\"undefined\\\":_typeof(t))!==\\\"object\\\"){throw new _exception.InvalidArgumentException(t,r)}if(r===\\\"object\\\"){r=\\\"hashmap\\\"}var i={array:function e(t){return getValues(t)},hashmap:function e(t){return t instanceof _vis2.default.DataSet?t.get({returnType:\\\"Object\\\"}):t},dataset:function e(t){return t instanceof _vis2.default.DataSet?t:!Array.isArray(t)?getValues(t):new _vis2.default.DataSet(t)}};return i[r](t)};var getDataUri=exports.getDataUri=function e(t,r,i){var a=wikiUtils.getTiddler(t);r=r||a.fields.type||\\\"image/svg+xml\\\";var s=a.fields.text;var o=$tw.config.contentTypeInfo[r].encoding;if(r===\\\"image/svg+xml\\\"){s=s.replace(/\\\\r?\\\\n|\\\\r/g,\\\" \\\");if(!basicUtils.hasSubString(\\\"xmlns\\\",s)){s=s.replace(/0&&arguments[0]!==undefined?arguments[0]:\\\"\\\";var r=arguments[1];if(!r){r=wikiUtils.getTiddlersByPrefix($tm.path.edgeTypes+\\\"/\\\",{iterator:\\\"eachTiddlerPlusShadows\\\",removePrefix:true})}if(r!=null&&!Array.isArray(r)){r=Object.keys(r)}return wikiUtils.getMatches(eTyFiltAutoPrefix+t,r)};var isEdgeTypeMatch=exports.isEdgeTypeMatch=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\\\"\\\";return wikiUtils.isMatch(t,eTyFiltAutoPrefix+r)};var groupByProperty=exports.groupByProperty=function e(t,r){t=getIterableCollection(t);var i=basicUtils.makeHashMap();var a=Object.keys(t);for(var s in a){var o=t[a[s]];var n=o[r];if(n==null){throw\\\"Cannot group by property \\\"+r}else{if(!Array.isArray(i[n])){i[n]=[]}i[n].push(o)}}return i};var getPrettyFilter=exports.getPrettyFilter=function e(t){t=t.trim().replace(\\\"][\\\",\\\"] [\\\");var r=/[+-]?\\\\[.+?[\\\\]\\\\}\\\\>]\\\\]/g;var i=t.match(r);t=t.replace(r,\\\" [] \\\").trim();var a=t.split(/\\\\s+/);var s=0;var o=[];for(var n=0,l=a.length;n4&&arguments[4]!==undefined?arguments[4]:\\\"#D9D9D9\\\";var o=basicUtils.getNearestRasterPosition(i,a),n=o.x,l=o.y;var u=t.canvas.width/r;var p=t.canvas.height/r;var f=a*2;var v=Math.ceil(u/a/2)*a+f;var c=Math.ceil(p/a/2)*a+f;var y=n-v;var d=n+v;var g=l-c;var h=l+c;t.beginPath();for(var b=y;b2&&arguments[2]!==undefined?arguments[2]:\\\"\\\";var d=getTiddler(t);return!d?i:d.fields[r]||i};var tiddlerExists=exports.tiddlerExists=function e(t){if(!t){return false}var r=getTiddlerRef(t);return Boolean(r&&($tw.wiki.tiddlerExists(r)||$tw.wiki.isShadowTiddler(r)))};var setSidebarTab=exports.setSidebarTab=function e(t){setText(getTiddlersByPrefix(\\\"$:/state/tab/sidebar-\\\")[0],t)};var setField=exports.setField=function e(t,r,i){if(!t||!r){return}var d=getTiddlerRef(t);var s=_defineProperty({title:d},r,i);var n=$tw.wiki.getTiddler(d,true);if(r!==\\\"text\\\"&&n&&!n.fields.text){s.text=\\\"\\\"}n=new $tw.Tiddler(n,s);$tw.wiki.addTiddler(n);return n};var deleteTiddlers=exports.deleteTiddlers=function e(t){var r=Object.keys(t);var i=$tw.wiki.getTiddlerList(\\\"$:/StoryList\\\");for(var d=r.length;d--;){var s=getTiddlerRef(t[r[d]]);if(!$tw.wiki.tiddlerExists(t[r[d]])){continue}var n=i.indexOf(s);if(n!==-1){i.splice(n,1);setField(\\\"$:/StoryList\\\",\\\"list\\\",i)}$tw.wiki.deleteTiddler(s)}};var moveFieldValues=exports.moveFieldValues=function e(t,r,i,d,s){if(t===r)return;var n=s||$tw.wiki.allTitles();for(var l=n.length;l--;){var a=getTiddler(n[l]);if(a.isDraft()||!a.fields[t]){continue}if(!d&&$tw.wiki.isSystemTiddler(n[l])){continue}var o=_defineProperty({},r,a.fields[t]);if(i){o[t]=undefined}$tw.wiki.addTiddler(new $tw.Tiddler(a,o))}};var getMatches=exports.getMatches=function e(t,r,i){var d=undefined;var s=$tw.wiki;if(typeof t===\\\"string\\\"){t=s.compileFilter(t)}if(r!=null&&(typeof r===\\\"undefined\\\"?\\\"undefined\\\":_typeof(r))===\\\"object\\\"){if(!Array.isArray(r)){r=Object.keys(r)}d=function e(t){for(var i=r.length;i--;){var d=s.getTiddler(r[i]);t(d,r[i])}}}return t.call(s,d,i)};var isMatch=exports.isMatch=function e(t,r){return getTiddlerRef(t)===getMatches(r,[getTiddlerRef(t)])[0]};var getTranscludeNode=exports.getTranscludeNode=function e(t,r){return{type:\\\"transclude\\\",attributes:{tiddler:{type:\\\"string\\\",value:getTiddlerRef(t)}},children:[],isBlock:!!r}};var getTiddlerNode=exports.getTiddlerNode=function e(t){return{type:\\\"tiddler\\\",attributes:{tiddler:{type:\\\"string\\\",value:getTiddlerRef(t)}},children:[]}};var getElementNode=exports.getElementNode=function e(t,r,i){return{type:\\\"element\\\",tag:t,attributes:{class:{type:\\\"string\\\",value:r}},children:i?[{type:\\\"text\\\",text:i}]:[]}};var registerTransclude=exports.registerTransclude=function e(t,r,i){basicUtils.removeArrayElement(t.children,t[r]);t[r]=t.makeChildWidget(getTranscludeNode(i,true));t.children.push(t[r]);return t[r]};var notify=exports.notify=function e(t){var r=\\\"$:/temp/tiddlymap/notify\\\";$tw.wiki.addTiddler(new $tw.Tiddler({title:r,text:t}));$tw.notifier.display(r)};var isPreviewed=exports.isPreviewed=function e(t){if(!t){return false}if(t.domNode.isTiddlyWikiFakeDom){return true}if(t.getVariable(\\\"tv-tiddler-preview\\\")){return true}else{var r=\\\"tc-tiddler-preview-preview\\\";return!!basicUtils.getAncestorWithClass(t.parentDomNode,r)}};var parseFieldData=exports.parseFieldData=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:\\\"text\\\";var i=arguments[2];var d=getTiddler(t);if(!d){return i}return basicUtils.parseJSON(d.fields[r],i)};var writeFieldData=exports.writeFieldData=function e(t,r,i,d){if((typeof i===\\\"undefined\\\"?\\\"undefined\\\":_typeof(i))!==\\\"object\\\"){return}d=parseInt(d);d=d>0&&r===\\\"text\\\"?d:0;setField(t,r,JSON.stringify(i,null,d))};var clone=exports.clone=function e(t,r){setField(t,\\\"title\\\",r)};var setEntry=exports.setEntry=function e(t,r,i){$tw.wiki.setText(getTiddlerRef(t),null,r,i)};var getEntry=exports.getEntry=function e(t,r,i){var d=$tw.wiki.getTiddlerData(getTiddlerRef(t),{});return d[r]==null?i:d[r]};var isLeftVersionGreater=exports.isLeftVersionGreater=function e(t,r){return t!==r&&$tw.utils.checkVersions(t,r)};var getText=exports.getText=function e(t,r){return getField(t,\\\"text\\\",r)};var setText=exports.setText=function e(t,r){setField(t,\\\"text\\\",r)};var isDraft=exports.isDraft=function e(t){var r=getTiddler(t);return r&&r.isDraft()};var isSystemOrDraft=exports.isSystemOrDraft=function e(t){return $tw.wiki.isSystemTiddler(getTiddlerRef(t))||isDraft(t)};var getMergedTiddlers=exports.getMergedTiddlers=function e(t,r){if(!Array.isArray(t)){return}for(var i=t.length;i--;){t[i]=getTiddler(t[i])}if(!t.length){return}t.push({title:r||t[0].fields.title},$tw.wiki.getModificationFields(),$tw.wiki.getCreationFields());t.unshift(null);return new(Function.prototype.bind.apply($tw.Tiddler,t))};var getChildWidgetByProperty=exports.getChildWidgetByProperty=function e(t,r,i){var d=t.children;for(var s=d.length;s--;){var n=d[s];if(n[r]===i){return n}else{n=e(n,r,i);if(n){return n}}}};var addTWlisteners=exports.addTWlisteners=function e(t,r,i){for(var d in t){r.addEventListener(d,t[d].bind(i))}};var mv=exports.mv=function e(t,r,i,d){if(t===r||!t||!r){return}i=typeof i===\\\"boolean\\\"?i:false;d=typeof d===\\\"boolean\\\"?d:true;var s=getTiddlersByPrefix(t);var n=basicUtils.makeHashMap();for(var l=s.length;l--;){var a=s[l];var o=a.replace(t,r);if($tw.wiki.tiddlerExists(o)&&!i){return}n[a]=o}for(var f in n){setField(f,\\\"title\\\",n[f]);if(d){$tw.wiki.deleteTiddler(f)}}return n};var cp=exports.cp=function e(t,r,i){return mv(t,r,i,false)};var deleteByPrefix=exports.deleteByPrefix=function e(t,r){if(!t){return}r=r||$tw.wiki.allTitles();var i=[];for(var d=r.length;d--;){if(basicUtils.startsWith(r[d],t)){$tw.wiki.deleteTiddler(r[d]);i.push(i[d])}}return i};var getTiddlersWithField=exports.getTiddlersWithField=function e(t,r){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var d=i.tiddlers||$tw.wiki.allTitles();var s=i.isIncludeDrafts===true;var n=basicUtils.makeHashMap();var l=Object.keys(d);var a=$tw.utils.hop;var o=i.limit||0;for(var f=l.length;f--;){var u=getTiddler(d[l[f]]);var p=u.fields;if(a(p,t)&&(!a(p,\\\"draft.of\\\")||s)){if(!r||p[t]===r){n[p.title]=u;if(--o===0){break}}}}return n};var getTiddlerWithField=exports.getTiddlerWithField=function e(t,r){return Object.keys(getTiddlersWithField(t,r,{limit:1}))[0]};var getTiddlersByPrefix=exports.getTiddlersByPrefix=function e(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=r.removePrefix===true;var d=[];var s=$tw.wiki[r.iterator||\\\"each\\\"];s((function(e,r){if(basicUtils.startsWith(r,t)){d.push(i?basicUtils.getWithoutPrefix(r,t):r)}}));return d};var addTiddler=exports.addTiddler=function e(t,r){var i=getTiddler(t);if(!r&&i){return i}i=new $tw.Tiddler({title:t,text:\\\"\\\"},$tw.wiki.getModificationFields(),$tw.wiki.getCreationFields());$tw.wiki.addTiddler(i);return i};var touch=exports.touch=function e(t){if(!t){return}var r=new $tw.Tiddler(getTiddler(t),$tw.wiki.getModificationFields());$tw.wiki.addTiddler(r)};\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/macro/tmap\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/macro/tmap\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});exports.params=exports.name=exports.run=undefined;var _typeof=typeof Symbol===\\\"function\\\"&&typeof Symbol.iterator===\\\"symbol\\\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\\\"function\\\"&&e.constructor===Symbol&&e!==Symbol.prototype?\\\"symbol\\\":typeof e};/* @preserve TW-Guard */\\n/*\\\\\\ntitle: $:/plugins/felixhayashi/tiddlymap/js/macro/tmap\\ntype: application/javascript\\nmodule-type: macro\\n\\n@preserve\\n\\n\\\\*/\\n/* @preserve TW-Guard */var _EdgeType=require(\\\"$:/plugins/felixhayashi/tiddlymap/js/EdgeType\\\");var _EdgeType2=_interopRequireDefault(_EdgeType);var _ViewAbstraction=require(\\\"$:/plugins/felixhayashi/tiddlymap/js/ViewAbstraction\\\");var _ViewAbstraction2=_interopRequireDefault(_ViewAbstraction);var _utils=require(\\\"$:/plugins/felixhayashi/tiddlymap/js/utils\\\");var _utils2=_interopRequireDefault(_utils);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var name=\\\"tmap\\\";var params=getParamSlots(5);function run(){this.substVarRefs=this.substituteVariableReferences;var e=command[arguments[0]];var t=null;if(typeof e===\\\"function\\\"){var r=Array.prototype.slice.call(arguments,1);t=e.apply(this,r)}return typeof t===\\\"string\\\"?t:\\\"\\\"}function getParamSlots(e){var t=[];for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:{};$tm.start(\\\"Creating adjacency list\\\");if(!i.edges){var r=_utils2.default.getMatches(env.selector.allPotentialNodes);i.edges=this.getEdgesForSet(r,i.toWL,i.typeWL)}var a=_utils2.default.groupByProperty(i.edges,t||\\\"to\\\");$tm.stop(\\\"Creating adjacency list\\\");return a}},{key:\\\"getNeighbours\\\",value:function e(t){var i=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};$tm.start(\\\"Get neighbours\\\");var a=r.addProperties,s=r.toWL,l=r.typeWL,n=r.steps;var d=this.indeces.allETy;var o=_utils2.default.getArrayValuesAsHashmapKeys(t);var u=_ViewAbstraction2.default.exists(r.view)?new _ViewAbstraction2.default(r.view):null;var f=_utils2.default.makeHashMap();var g=_utils2.default.makeHashMap();var c=parseInt(n)>0?n:1;var v=r.direction||u&&u.getConfig(\\\"neighbourhood_directions\\\");var y=!v||v===\\\"both\\\";var h=y||v===\\\"in\\\";var p=y||v===\\\"out\\\";var _=u&&\\\"[all[]] \\\"+u.getNodeFilter(\\\"raw\\\");var b=this.getAdjacencyList(\\\"to\\\",r);var m=function e(t,r,s){f[t.id]=t;var l=i.getTiddlerById(t[r]);if(u&&_utils2.default.isTrue($tm.config.sys.nodeFilterNeighbours)&&!_utils2.default.isMatch(l,_)){return}if(!o[l]){o[l]=true;var n=i.makeNode(l,a);if(n){g[n.id]=n;s.push(l)}}};var w=void 0;for(w=0;w1&&arguments[1]!==undefined?arguments[1]:{},r=i.addProperties,a=i.outputType;var s=_utils2.default.makeHashMap();var l=Object.keys(t);for(var n=l.length;n--;){var d=this.makeNode(t[l[n]],r);if(d){s[d.id]=d}}return _utils2.default.convert(s,a)}},{key:\\\"selectNodesByIds\\\",value:function e(t,i){var r=this.getTiddlersByIds(t);return this.selectNodesByReferences(r,i)}},{key:\\\"selectNodeById\\\",value:function e(t,i){i=Object.assign({},i,{outputType:\\\"hashmap\\\"});var r=this.selectNodesByIds([t],i);return r[t]}},{key:\\\"removeNodeType\\\",value:function e(t){t=_NodeType2.default.getInstance(t);this.wiki.deleteTiddler(t.fullPath)}},{key:\\\"makeNode\\\",value:function e(t,i){var r=_utils2.default.getTiddler(t);if(!r||_utils2.default.isSystemOrDraft(r))return;var a=_utils2.default.merge({},i);a.id=this.assignId(r);a.tRef=r.fields.title;var s=r.fields[$tm.field.nodeLabel];a.label=(s&&$tm.field.nodeLabel!==\\\"title\\\"?this.wiki.renderText(\\\"text/plain\\\",\\\"text/vnd-tiddlywiki\\\",s):r.fields.title).replace(\\\"\\\\\\\\n\\\",\\\"\\\\n\\\");return a}},{key:\\\"getInheritedNodeStyles\\\",value:function e(t){var i=this.getTiddlersByIds(t);var r={};var a=this.indeces.glNTy;for(var s=a.length;s--;){var l=a[s];var n=[];if(l.id===\\\"tmap:neighbour\\\"){for(var d in t){if(t[d].type===\\\"tmap:neighbour\\\"){n.push(this.getTiddlerById(d))}}}else{n=l.getInheritors(i)}for(var o=n.length;o--;){var u=n[o];var f=r[u]=r[u]||{};f.style=_utils2.default.merge(f.style||{},l.style);if(l[\\\"fa-icon\\\"]){f[\\\"fa-icon\\\"]=l[\\\"fa-icon\\\"]}else if(l[\\\"tw-icon\\\"]){f[\\\"tw-icon\\\"]=l[\\\"tw-icon\\\"]}}}return r}},{key:\\\"attachStylesToNodes\\\",value:function e(t,i){i=_ViewAbstraction2.default.exists(i)?new _ViewAbstraction2.default(i):null;var r=this.getInheritedNodeStyles(t);var a=i?i.getNodeData():_utils2.default.makeHashMap();var s=i&&!i.isEnabled(\\\"physics_mode\\\");for(var l in t){var n=this.getTiddlerById(l);var d=this.wiki.getTiddler(n);var o=d.fields;var u=t[l];var f=void 0;var g=r[n];if(g){_utils2.default.merge(u,g.style);f=getIcon(g[\\\"fa-icon\\\"],g[\\\"tw-icon\\\"])}if(o.color){u.color=o.color}if(o[\\\"tmap.style\\\"]){_utils2.default.merge(u,_utils2.default.parseJSON(o[\\\"tmap.style\\\"]))}f=getIcon(o[\\\"tmap.fa-icon\\\"],o[\\\"icon\\\"])||f;var c=a[l];if(c){_utils2.default.merge(u,c);if(s){u.fixed={x:u.x!=null,y:u.y!=null}}f=getIcon(c[\\\"fa-icon\\\"],c[\\\"tw-icon\\\"])||f}var v=u.color!==null&&_typeof(u.color)===\\\"object\\\";var y=v?u.color.background:u.color;u.color={background:y,border:v?u.color.border:undefined};addNodeIcon(u,f);u.font=u.font||{};if(u.shape&&!this.visShapesWithTextInside[u.shape]){u.font.color=\\\"black\\\"}else if(!u.font.color&&y){u.font.color=(0,_contrastcolour.run)(y,y,\\\"black\\\",\\\"white\\\")}if(u.shape===\\\"icon\\\"){u.label=\\\"\\\\n\\\"+u.label;if(_typeof(u.icon)===\\\"object\\\"){u.icon.color=y}}}if(i){var h=t[i.getConfig(\\\"central-topic\\\")];if(h){_utils2.default.merge(h,this.indeces.glNTyById[\\\"tmap:central-topic\\\"].style)}}}},{key:\\\"deleteNode\\\",value:function e(t){if(!t){return}var i=(typeof t===\\\"undefined\\\"?\\\"undefined\\\":_typeof(t))===\\\"object\\\"?t.id:t;var r=this.getTiddlerById(i);if(r){_utils2.default.deleteTiddlers([r])}var a=_utils2.default.getMatches(env.selector.allViews);for(var s=a.length;s--;){var l=new _ViewAbstraction2.default(a[s]);l.removeNode(i)}var n=this.getNeighbours([r]);this.deleteEdges(n.edges)}},{key:\\\"deleteNodes\\\",value:function e(t){for(var i=t.length;i--;){this.deleteNode(t[i])}}},{key:\\\"insertNode\\\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var i=arguments[1];var r=arguments[2];t.label=this.wiki.generateNewTitle(t.label||_utils2.default.getRandomLabel());var a=new $tw.Tiddler({text:\\\"\\\"},r,{title:t.label,\\\"tmap.id\\\":null},this.wiki.getModificationFields(),this.wiki.getCreationFields());this.wiki.addTiddler(a);t=this.makeNode(a,t);if(_ViewAbstraction2.default.exists(i)){new _ViewAbstraction2.default(i).addNode(t)}return t}},{key:\\\"getTiddlersByIds\\\",value:function e(t){if(Array.isArray(t)){t=_utils2.default.getArrayValuesAsHashmapKeys(t)}else if(t instanceof _vis2.default.DataSet){t=_utils2.default.getLookupTable(t,\\\"id\\\")}var i=[];for(var r in t){var a=this.getTiddlerById(r);if(a){i.push(a)}}return i}}]);return e}();var getFAdigits=function e(t){return t.length===4?t:t.substr(3,4)};var addNodeIcon=function e(t,i){if(!i){return}if(i.fa){t.shape=\\\"icon\\\";t.icon={shape:\\\"icon\\\",face:\\\"FontAwesome\\\",color:t.color,code:String.fromCharCode(\\\"0x\\\"+getFAdigits(i.fa))};if(t.size){t.icon.size=t.size}return}if(i.tw){var r=_utils2.default.getTiddler(i.tw);if(!r){return}if(r.fields[\\\"_canonical_uri\\\"]){t.image=r.fields[\\\"_canonical_uri\\\"];t.shape=\\\"image\\\"}else if(r.fields.text){t.image=_utils2.default.getDataUri(r);t.shape=\\\"image\\\"}}};var removeObsoleteViewData=function e(t,i){if(!_ViewAbstraction2.default.exists(i)||!t){return}i=new _ViewAbstraction2.default(i);var r=i.getNodeData();var a=0;for(var s in r){if(t[s]===undefined&&r[s]!=null){r[s]=undefined;a++}}if(a){$tm.logger(\\\"debug\\\",\\\"[Cleanup]\\\",\\\"Removed obsolete node data:\\\",i.getLabel(),a);i.saveNodeData(r)}};var addStyleToEdge=function e(t,i){t=Object.assign(t,i.style);if(_utils2.default.isTrue(i[\\\"show-label\\\"],true)){t.label=i.getLabel()}};var getIcon=function e(t,i){return t&&{fa:t}||i&&{tw:i}};exports.default=Adapter;\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/CallbackManager\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/CallbackManager\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _createClass=function(){function e(e,t){for(var a=0;a2&&arguments[2]!==undefined?arguments[2]:true;this.logger(\\\"debug\\\",'A callback was registered for changes of \\\"'+t+'\\\"');this.callbacks[t]={execute:a,isDeleteOnCall:l}}},{key:\\\"remove\\\",value:function e(t){if(!t){return}if(typeof t===\\\"string\\\"){t=[t]}for(var a=t.length;a--;){var l=t[a];if(this.callbacks[l]){this.logger(\\\"debug\\\",'Deleting callback for \\\"'+l+'\\\"');delete this.callbacks[l]}}}},{key:\\\"refresh\\\",value:function e(t){if(this.callbacks.length==0){return}for(var a in t){if(!this.callbacks[a]){continue}if(this.wiki.getTiddler(a)){this.logger(\\\"debug\\\",\\\"Executing a callback for: \\\"+a);this.callbacks[a].execute(a);if(!this.callbacks.isDeleteOnCall){continue}}this.remove(a)}}}]);return e}();exports.default=CallbackManager;\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/startup/caretaker\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/startup/caretaker\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});exports.startup=exports.synchronous=exports.before=exports.after=exports.platforms=exports.name=undefined;var _rebuilders;var _extends=Object.assign||function(e){for(var t=1;t1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments[2];if(_utils2.default.isTrue($tm.config.sys.suppressedDialogs[a],false)){$tm.logger(\\\"warning\\\",\\\"Suppressed dialog\\\",a);return}$tm.logger(\\\"debug\\\",\\\"Dialog param object\\\",l);if(typeof i===\\\"function\\\"&&this.context){i=i.bind(this.context)}var r=$tm.path.tempRoot+\\\"/dialog-\\\"+_utils2.default.genUUID();var n=_utils2.default.getTiddler($tm.path.dialogs+\\\"/\\\"+a);var u={title:r,buttons:n.fields[\\\"buttons\\\"]||\\\"ok_cancel\\\",classes:\\\"tmap-modal-content \\\"+n.fields[\\\"classes\\\"],output:r+\\\"/output\\\",result:r+\\\"/result\\\",temp:r+\\\"/temp\\\",template:n.fields.title,templateId:a,currentTiddler:r+\\\"/output\\\",text:_utils2.default.getText($tm.path.dialogs)};_utils2.default.touch(u.output);if(l.dialog){if(l.dialog.preselects){$tw.wiki.addTiddler(new $tw.Tiddler({title:u.output},_utils2.default.flatten(l.dialog.preselects)));delete l.dialog.preselects}_utils2.default.merge(u,l.dialog)}u.footer=_utils2.default.getText($tm.path.footers);u=_utils2.default.flatten(u);l=_utils2.default.flatten(l);var s=function t(a){e.getElement(\\\"hidden-close-button\\\").click();var l=$tw.wiki.getTiddler(a);var n=l.fields.text;var s=null;if(n){s=$tw.wiki.getTiddler(u.output)}else{$tm.notify(\\\"operation cancelled\\\")}if(typeof i===\\\"function\\\"){i(n,s)}_utils2.default.deleteByPrefix(r)};this.callbackManager.add(u.result,s,true);var o=new $tw.Tiddler(n,l,u);$tw.wiki.addTiddler(o);$tm.logger(\\\"debug\\\",\\\"Opening dialog\\\",o);$tw.rootWidget.dispatchEvent({type:\\\"tm-modal\\\",param:o.fields.title,paramObject:o.fields});e.addKeyBindings();return o}}],[{key:\\\"getElement\\\",value:function e(t){return _utils2.default.getFirstElementByClassName(\\\"tmap-\\\"+t)}},{key:\\\"addKeyBindings\\\",value:function t(){var a=$tm.keycharm({container:_utils2.default.getFirstElementByClassName(\\\"tc-modal\\\")});var l=/tmap-triggers-(.+?)-on-(.+?)(?:\\\\s|$)/;var i=document.getElementsByClassName(\\\"tmap-trigger-field\\\");var r=function t(r){var n=i[r].className.split(\\\" \\\");var u=function t(i){var r=n[i].match(l);if(!r){return\\\"continue\\\"}var u=r[1];var s=r[2];var o=e.getElement(u);if(!o){return\\\"continue\\\"}a.bind(s,(function(){if(document.getElementsByClassName(n[i]).length){o.click()}}))};for(var s=n.length;s--;){var o=u(s);if(o===\\\"continue\\\")continue}};for(var n=i.length;n--;){r(n)}}}]);return e}();exports.default=DialogManager;\",\"type\":\"application/javascript\",\"module-type\":\"library\"},\"$:/plugins/felixhayashi/tiddlymap/js/Fixer\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/Fixer\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _typeof=typeof Symbol===\\\"function\\\"&&typeof Symbol.iterator===\\\"symbol\\\"?function(e){return typeof e}:function(e){return e&&typeof Symbol===\\\"function\\\"&&e.constructor===Symbol&&e!==Symbol.prototype?\\\"symbol\\\":typeof e};var _createClass=function(){function e(e,t){for(var i=0;i0&&arguments[0]!==undefined?arguments[0]:{},a=t.paramObject;var r=a.title,d=a.keep;if(!r)return;var i=_utils2.default.getTiddler(r);var l=i?i.fields:{};var s=d?d.split():[];var n={title:r,text:\\\"\\\"};for(var p=s.length;p--;){var o=s[p];n[o]=l[o]}$tw.wiki.deleteTiddler(r);$tw.wiki.addTiddler(new $tw.Tiddler(n))};var handleMixTiddlers=function e(t){var a=t.paramObject,r=a===undefined?{}:a;var d=r.tiddlers,i=r.output;if(!d||!i)return;var l=$tw.utils.parseStringArray(d);var s=_utils2.default.getMergedTiddlers(l,i);$tw.wiki.addTiddler(s)};var handleConfirmDialog=function e(t){var a=t.param;_utils2.default.setField(a,\\\"text\\\",\\\"1\\\")};var handleSuppressDialog=function e(t){var a=t.paramObject;var r=a.dialog,d=a.suppress;if(_utils2.default.isTrue(d,false)){_utils2.default.setEntry($tm.ref.sysUserConf,\\\"suppressedDialogs.\\\"+r,true)}};var handleDownloadGraph=function e(t){var a=t.paramObject;var r=a.view;var d=$tm.adapter.getGraph({view:r});d.nodes=_utils2.default.convert(d.nodes,\\\"array\\\");d.edges=_utils2.default.convert(d.edges,\\\"array\\\");var i=\\\"$:/temp/tmap/export\\\";_utils2.default.setField(i,\\\"text\\\",JSON.stringify(d,null,2));$tw.rootWidget.dispatchEvent({type:\\\"tm-download-file\\\",param:i,paramObject:{filename:r+\\\".json\\\"}})};var handleConfigureSystem=function e(){var t=_utils2.default.getMatches($tm.selector.allPotentialNodes);var a=$tm.adapter.getEdgesForSet(t);var r=$tw.wiki.getTiddler($tm.path.pluginRoot).fields;var d=$tw.wiki.getTiddlerData($tm.ref.sysMeta);var i=_utils2.default.getTiddler($tm.ref.liveTab).hasTag(\\\"$:/tags/SideBar\\\");var l={numberOfNodes:\\\"\\\"+t.length,numberOfEdges:\\\"\\\"+Object.keys(a).length,pluginVersion:\\\"v\\\"+r.version,dataStructureVersion:\\\"v\\\"+d.dataStructureState,dialog:{preselects:{liveTab:\\\"\\\"+i,\\\"inherited-style\\\":JSON.stringify(_vis2.default),\\\"config.vis\\\":_utils2.default.getText($tm.ref.visUserConf),\\\"config.sys\\\":$tm.config.sys}}};$tm.dialogManager.open(\\\"globalConfig\\\",l,(function(e,t){if(!e)return;var a=_utils2.default.getPropertiesByPrefix(t.fields,\\\"config.sys.\\\",true);$tw.wiki.setTiddlerData($tm.ref.sysUserConf,a);if(_utils2.default.isTrue(t.fields.liveTab,false)){_utils2.default.setField($tm.ref.liveTab,\\\"tags\\\",\\\"$:/tags/SideBar\\\")}else{$tw.wiki.deleteTiddler($tm.ref.liveTab)}_utils2.default.setField($tm.ref.visUserConf,\\\"text\\\",t.fields[\\\"config.vis\\\"])}))};var handleGenerateWidget=function e(t){var a=t.paramObject,r=a===undefined?{}:a;var d={dialog:{preselects:{\\\"var.view\\\":r.view||$tm.misc.defaultViewLabel}}};$tm.dialogManager.open(\\\"widgetCodeGenerator\\\",d)};var handleRemoveEdge=function e(t){var a=t.paramObject;$tm.adapter.deleteEdge(a)};var handleCreateEdge=function e(t){var a=t.paramObject;var r=a.from,d=a.to,i=a.force;if(!r||!d)return;if(_utils2.default.tiddlerExists(r)&&_utils2.default.tiddlerExists(d)||i){_utils2.default.addTiddler(d);_utils2.default.addTiddler(r);var l=new _Edge2.default($tm.adapter.makeNode(r).id,$tm.adapter.makeNode(d).id,a.label,a.id);$tm.adapter.insertEdge(l);$tm.notify(\\\"Edge inserted\\\")}};var handleOpenTypeManager=function e(t){var a=t.type,r=t.paramObject,d=r===undefined?{}:r;var i=a.match(/tmap:tm-(.*)/)[1];if(i===\\\"manage-edge-types\\\"){var l=\\\"Edge-Type Manager\\\";var s=$tm.selector.allEdgeTypes;var n=$tm.path.edgeTypes}else{var l=\\\"Node-Type Manager\\\";var s=$tm.selector.allNodeTypes;var n=$tm.path.nodeTypes}var p={mode:i,topic:l,searchSelector:s,typeRootPath:n};var o=$tm.dialogManager.open(\\\"MapElementTypeManager\\\",p);if(d.type){handleLoadTypeForm({paramObject:{mode:i,id:d.type,output:o.fields[\\\"output\\\"]}})}};var handleLoadTypeForm=function e(t){var a=t.paramObject,r=a.mode,d=a.id,i=a.output;var l=i;var s=r===\\\"manage-edge-types\\\"?_EdgeType2.default.getInstance(d):_NodeType2.default.getInstance(d);s.save(l,true);if(r===\\\"manage-edge-types\\\"){var n=$tm.adapter.selectEdgesByType(s);var p=Object.keys(n).length;_utils2.default.setField(l,\\\"temp.usageCount\\\",p)}$tw.wiki.addTiddler(new $tw.Tiddler(_utils2.default.getTiddler(l),{typeTRef:s.fullPath,\\\"temp.idImmutable\\\":s.isShipped?\\\"true\\\":\\\"\\\",\\\"temp.newId\\\":s.id,\\\"inherited-style\\\":JSON.stringify((r===\\\"manage-edge-types\\\"?$tm.config.vis.edges:$tm.config.vis.nodes)||{})}));_utils2.default.deleteByPrefix(\\\"$:/state/tabs/MapElementTypeManager\\\")};var handleSaveTypeForm=function e(t){var a=t.paramObject;var r=_utils2.default.getTiddler(a.output);if(!r)return;var d=r.fields.id;var i=a.mode;if(_utils2.default.isTrue(r.fields[\\\"temp.deleteType\\\"],false)){deleteType(i,d,r)}else{saveType(i,d,r)}};var deleteType=function e(t,a,r){var d=t===\\\"manage-edge-types\\\"?_EdgeType2.default.getInstance(a):_NodeType2.default.getInstance(a);$tm.logger(\\\"debug\\\",\\\"Deleting type\\\",d);if(t===\\\"manage-edge-types\\\"){$tm.adapter._processEdgesWithType(d,{action:\\\"delete\\\"})}else{$tm.adapter.removeNodeType(d)}$tw.wiki.addTiddler(new $tw.Tiddler({title:_utils2.default.getTiddlerRef(r)}));$tm.notify(\\\"Deleted type\\\")};var saveType=function e(t,a,r){var d=_utils2.default.getTiddler(r);var i=t===\\\"manage-edge-types\\\"?_EdgeType2.default:_NodeType2.default;var l=new i(a,d);l.save();var s=d.fields[\\\"temp.newId\\\"];if(s&&s!==d.fields[\\\"id\\\"]){if(t===\\\"manage-edge-types\\\"){$tm.adapter._processEdgesWithType(l,{action:\\\"rename\\\",newName:s})}else{new _NodeType2.default(s,l).save();$tw.wiki.deleteTiddler(l.fullPath)}_utils2.default.setField(d,\\\"id\\\",s)}$tm.notify(\\\"Saved type data\\\")};var handleCreateType=function e(t){var a=t.paramObject,r=a.mode,d=a.id,i=d===undefined?\\\"New type\\\":d,l=a.output;var s=r===\\\"manage-edge-types\\\"?new _EdgeType2.default(i):new _NodeType2.default(i);s.save();handleLoadTypeForm({paramObject:{id:s.id,mode:r,output:l}})};var name=exports.name=\\\"tmap.listener\\\";var platforms=exports.platforms=[\\\"browser\\\"];var after=exports.after=[\\\"rootwidget\\\",\\\"tmap.caretaker\\\"];var before=exports.before=[\\\"story\\\"];var synchronous=exports.synchronous=true;var startup=exports.startup=function e(){_utils2.default.addTWlisteners({\\\"tmap:tm-remove-edge\\\":handleRemoveEdge,\\\"tmap:tm-load-type-form\\\":handleLoadTypeForm,\\\"tmap:tm-save-type-form\\\":handleSaveTypeForm,\\\"tmap:tm-create-type\\\":handleCreateType,\\\"tmap:tm-create-edge\\\":handleCreateEdge,\\\"tmap:tm-suppress-dialog\\\":handleSuppressDialog,\\\"tmap:tm-generate-widget\\\":handleGenerateWidget,\\\"tmap:tm-download-graph\\\":handleDownloadGraph,\\\"tmap:tm-configure-system\\\":handleConfigureSystem,\\\"tmap:tm-manage-edge-types\\\":handleOpenTypeManager,\\\"tmap:tm-manage-node-types\\\":handleOpenTypeManager,\\\"tmap:tm-cancel-dialog\\\":handleCancelDialog,\\\"tmap:tm-clear-tiddler\\\":handleClearTiddler,\\\"tmap:tm-merge-tiddlers\\\":handleMixTiddlers,\\\"tmap:tm-confirm-dialog\\\":handleConfirmDialog},$tw.rootWidget,undefined)};\",\"type\":\"application/javascript\",\"module-type\":\"startup\"},\"$:/plugins/felixhayashi/tiddlymap/js/services/tracker\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/js/services/tracker\",\"text\":\"\\\"use strict\\\";Object.defineProperty(exports,\\\"__esModule\\\",{value:true});var _createClass=function(){function e(e,t){for(var i=0;i0){for(var r=i;r--;){var o=t[r];if(o.level0&&arguments[0]!==undefined?arguments[0]:{},i=t.resetFocus;if(_utils2.default.isPreviewed(this)){return}this.logger(\\\"debug\\\",\\\"Rebuilding graph\\\");this.hidePopups(0,true);this.hasNetworkStabilized=false;var a=this.rebuildGraphData();if(a.changedNodes.withoutPosition.length){i=i||{delay:1e3,duration:1e3};if(!this.view.isEnabled(\\\"physics_mode\\\")){var s=this.visOptions.physics;s[s.solver].centralGravity=.25;this.network.setOptions(this.visOptions)}}if(!_utils2.default.hasElements(this.graphData.nodesById)){return}if(i){var r=this.isPreventZoomOnNextUpdate==null?false:typeof this.isPreventZoomOnNextUpdate===\\\"number\\\"?this.isPreventZoomOnNextUpdate>Date.now():this.isPreventZoomOnNextUpdate;if(!r){this.network.stabilize();this.resetFocus=i}if(typeof this.isPreventZoomOnNextUpdate!==\\\"number\\\"){this.isPreventZoomOnNextUpdate=false}}}},{key:\\\"getContainer\\\",value:function e(){return this.domNode}},{key:\\\"rebuildGraphData\\\",value:function e(){var t=this;$tm.start(\\\"Reloading Network\\\");var i={view:this.view,matches:_utils2.default.getMatches(this.view.getNodeFilter(\\\"compiled\\\"))};if(this.view.isEnabled(\\\"neighbourhood_trace_clicks\\\")){var a=i.matches;var s=Object.keys(this.trace);var r=[].concat(_toConsumableArray(a.filter((function(e){return!t.trace[e]}))),_toConsumableArray(s));i.matches=r;i.includeNeighboursOf=this.view.isEnabled(\\\"neighbourhood_include_traced_node_neighbours\\\")?function(e){return r.includes(e)}:function(e){return a.includes(e)}}var n=$tm.adapter.getGraph(i);var o=_utils2.default.refreshDataSet(this.graphData.nodes,n.nodes);var l=_utils2.default.refreshDataSet(this.graphData.edges,n.edges);this.graphData.nodesById=n.nodes;this.graphData.edgesById=n.edges;_utils2.default.setField(\\\"$:/temp/tmap/nodes/\\\"+this.view.getLabel(),\\\"list\\\",$tm.adapter.getTiddlersByIds(n.nodes));$tm.stop(\\\"Reloading Network\\\");return{changedEdges:l,changedNodes:o}}},{key:\\\"isViewBound\\\",value:function e(){return _utils2.default.startsWith(this.getViewHolderRef(),$tm.path.localHolders)}},{key:\\\"isViewSwitched\\\",value:function e(t){return!_ViewAbstraction2.default.exists(this.view)||t[this.getViewHolderRef()]}},{key:\\\"hasChangedAttributes\\\",value:function e(){return Object.keys(this.computeAttributes()).length}},{key:\\\"hasChangedElements\\\",value:function e(t){var i=[];var a=this.graphData.nodesById;var s=this.view.isEnabled(\\\"neighbourhood_scope\\\");for(var r in t){if(_utils2.default.isSystemOrDraft(r)){continue}if(a[$tm.adapter.getId(r)]||s){return true}if(t[r].modified){i.push(r)}}if(i.length){var n=this.view.getNodeFilter(\\\"compiled\\\");var o=_utils2.default.getMatches(n,i);return!!o.length}}},{key:\\\"initAndRenderGraph\\\",value:function e(t){var i=this;if(this.network){this._destructVis()}this.logger(\\\"info\\\",\\\"Initializing and rendering the graph\\\");if(!this.isInSidebar){this.callbackManager.add(\\\"$:/state/sidebar\\\",this.handleResizeEvent)}this.visOptions=this.getVisOptions();this.graphData={nodes:new _vis2.default.DataSet,edges:new _vis2.default.DataSet,nodesById:_utils2.default.makeHashMap(),edgesById:_utils2.default.makeHashMap()};this.tooltip.setEnabled(_utils2.default.isTrue($tm.config.sys.popups.enabled,true));this.trace=_utils2.default.makeHashMap();this.network=new _vis2.default.Network(t,this.graphData,this.visOptions);this.canvas=t.getElementsByTagName(\\\"canvas\\\")[0];this.networkDomNode=_utils2.default.getFirstElementByClassName(\\\"vis-network\\\",t,true);this.canvas.tabIndex=0;for(var a in this.visListeners){this.network.on(a,this.visListeners[a].bind(this))}this.addGraphButtons({\\\"fullscreen-button\\\":function e(){i.toggleEnlargedMode(\\\"fullscreen\\\")},\\\"halfscreen-button\\\":function e(){i.toggleEnlargedMode(\\\"halfscreen\\\")}});_utils2.default.setDomListeners(\\\"add\\\",this.canvas,this.canvasDomListeners);this.reloadBackgroundImage();this.rebuildGraph({resetFocus:{delay:0,duration:0}});this.handleResizeEvent();this.canvas.focus();if(this.isLiveView()&&this.view.isEnabled(\\\"neighbourhood_trace_clicks\\\")){this.trace[_utils2.default.getText(this.refreshTriggers[0])]=true}}},{key:\\\"handleCanvasKeyup\\\",value:function e(t){var i=this;var a=this.network.getSelectedNodes();if(t.ctrlKey){t.preventDefault();if(t.keyCode===88){if(this.editorMode){this.handleAddNodesToClipboard(\\\"move\\\")}else{$tm.notify(\\\"Map is read only!\\\")}}else if(t.keyCode===67){this.handleAddNodesToClipboard(\\\"copy\\\")}else if(t.keyCode===86){this.handlePasteNodesFromClipboard()}else if(t.keyCode===65){var s=Object.keys(this.graphData.nodesById);this.network.selectNodes(s)}else if(t.keyCode===49||t.keyCode===50){if(a.length!==1)return;var r=t.keyCode===49?\\\"from\\\":\\\"to\\\";$tm.notify(_utils2.default.ucFirst(r)+\\\"-part selected\\\");this.conVector[r]=a[0];if(this.conVector.from&&this.conVector.to){this.handleConnectionEvent(this.conVector,(function(){i.conVector={from:null,to:null}}))}}}else{if(t.keyCode===13){if(a.length!==1)return;this.openTiddlerWithId(a[0])}}}},{key:\\\"handleCanvasKeydown\\\",value:function e(t){if(t.altKey||t.metaKey){t.preventDefault();if(t.keyCode>=48&&t.keyCode<=57){var i=String.fromCharCode(t.keyCode);this.view.setConfig(\\\"neighbourhood_scope\\\",i)}}else{if(t.keyCode===46){t.preventDefault();this.handleRemoveElements(this.network.getSelection())}}}},{key:\\\"handleDeleteElement\\\",value:function e(t){var i=t.paramObject.id;var a=i?[i]:this.network.getSelectedNodes();this.handleRemoveElements({nodes:a})}},{key:\\\"handleCanvasMouseMove\\\",value:function e(t){var i=this.network;if(!(t.ctrlKey&&t.buttons)){if(this.selectRect){this.selectRect=null;var a=i.getSelectedNodes();$tm.notify(a.length+\\\" nodes selected\\\");i.redraw()}return}t.preventDefault();t.stopPropagation();if(!this.domNode.contains(t.target)){return}var s=i.DOMtoCanvas({x:t.offsetX,y:t.offsetY});if(!this.selectRect){this.selectRect=new _SelectionRectangle2.default(s.x,s.y)}this.selectRect.span(s.x,s.y);var r=i.getPositions();var n=i.getSelectedNodes();for(var o in r){if(this.selectRect.isPointWithin(r[o])&&!_utils2.default.inArray(o,n)){n.push(o)}}i.selectNodes(n);this.assignActiveStyle(n);i.redraw()}},{key:\\\"handleCanvasScroll\\\",value:function e(t){var i=!!(this.isInSidebar||t.ctrlKey||this.enlargedMode||this.clickToUse&&this.networkDomNode.classList.contains(\\\"vis-active\\\"));var a=this.visOptions.interaction;var s=i===a.zoomView;if(i||!s){t.preventDefault()}if(!s){t.stopPropagation();a.zoomView=i;this.network.setOptions({interaction:{zoomView:i}});return false}}},{key:\\\"handleExtraCanvasScroll\\\",value:function e(t){if(this.isInSidebar){t.preventDefault()}}},{key:\\\"handleContextMenu\\\",value:function e(t){var i=this;t.preventDefault();var a=this.network;this.hidePopups(0,true);var s=a.getNodeAt({x:t.offsetX,y:t.offsetY});if(!s)return;var r=a.getSelectedNodes();if(!_utils2.default.inArray(s,r)){r=[s];a.selectNodes(r)}this.contextMenu.show(r,(function(e,t){var a=e.length>1?\\\"multi\\\":\\\"single\\\";var s=\\\"$:/plugins/felixhayashi/tiddlymap/editor/contextMenu/node\\\";_utils2.default.registerTransclude(i,\\\"contextMenuWidget\\\",s);i.contextMenuWidget.setVariable(\\\"mode\\\",a);i.contextMenuWidget.render(t)}))}},{key:\\\"handleWidgetKeyup\\\",value:function e(t){}},{key:\\\"handleWidgetKeydown\\\",value:function e(t){if(t.ctrlKey){t.preventDefault();if(t.keyCode===70){t.preventDefault();var i=this.widgetPopupsPath+\\\"/focus\\\";_utils2.default.setText(i,_utils2.default.getText(i)?\\\"\\\":\\\"1\\\")}else{return}}else if(t.keyCode===120){t.preventDefault();this.toggleEnlargedMode(\\\"halfscreen\\\")}else if(t.keyCode===121){t.preventDefault();this.toggleEnlargedMode(\\\"fullscreen\\\")}else if(t.keyCode===27){t.preventDefault();_utils2.default.deleteByPrefix(this.widgetPopupsPath)}else{return}this.canvas.focus()}},{key:\\\"handlePasteNodesFromClipboard\\\",value:function e(){if(!this.editorMode){$tm.notify(\\\"Map is read only!\\\");return}if(!$tm.clipBoard||$tm.clipBoard.type!==\\\"nodes\\\"){$tm.notify(\\\"TiddlyMap clipboad is empty!\\\")}var t=$tm.clipBoard.nodes;var i=Object.keys(t);for(var a=i.length;a--;){var s=i[a];if(this.graphData.nodesById[s]){continue}this.view.addNode(t[s]);this.graphData.nodes.update({id:s})}this.network.selectNodes(i);this.rebuildGraph({resetFocus:{delay:0,duration:0}});$tm.notify(\\\"pasted \\\"+i.length+\\\" nodes into map.\\\")}},{key:\\\"handleAddNodesToClipboard\\\",value:function e(t){var i=this.network.getSelectedNodes();if(!i.length){return}$tm.clipBoard={type:\\\"nodes\\\",nodes:this.graphData.nodes.get(i,{returnType:\\\"Object\\\"})};$tm.notify(\\\"Copied \\\"+i.length+\\\" nodes to clipboard\\\");if(t===\\\"move\\\"){for(var a=i.length;a--;){this.view.removeNode(i[a])}}this.isPreventZoomOnNextUpdate=true}},{key:\\\"getVisOptions\\\",value:function e(){var t=this;var i=$tm.config.vis;var a=_utils2.default.parseJSON(this.view.getConfig(\\\"vis\\\"))||{};var s=a.layout||{},r=s.hierarchical;var n={layout:{hierarchical:{enabled:r===undefined||r===null?false:typeof r===\\\"boolean\\\"?r:r.enabled!==false}}};var o=_utils2.default.merge({},i,_utils2.default.merge(a,n));o.clickToUse=this.clickToUse;o.manipulation.enabled=!!this.editorMode;o.manipulation.deleteNode=function(e,i){t.handleRemoveElements(e);t.resetVisManipulationBar(i)};o.manipulation.deleteEdge=function(e,i){t.handleRemoveElements(e);t.resetVisManipulationBar(i)};o.manipulation.addEdge=function(e,i){t.handleConnectionEvent(e);t.resetVisManipulationBar(i)};o.manipulation.addNode=function(e,i){t.handleInsertNode(e);t.resetVisManipulationBar(i)};o.manipulation.editNode=function(e,i){t.handleEditNode(e);t.resetVisManipulationBar(i)};o.interaction.zoomView=!!(this.isInSidebar||this.enlargedMode);o.manipulation.editEdge=false;var l=o.physics;l[l.solver]=l[l.solver]||{};l.stabilization.iterations=1e3;this.logger(\\\"debug\\\",\\\"Loaded graph options\\\",o);return o}},{key:\\\"resetVisManipulationBar\\\",value:function e(t){if(t){t(null)}this.network.disableEditMode();this.network.enableEditMode()}},{key:\\\"isVisInEditMode\\\",value:function e(){return this.graphDomNode.getElementsByClassName(\\\"vis-button vis-back\\\").length>0}},{key:\\\"isLiveView\\\",value:function e(){return this.id===\\\"live_tab\\\"}},{key:\\\"handleCreateView\\\",value:function e(){var t=this;var i={view:this.view.getLabel()};$tm.dialogManager.open(\\\"createView\\\",i,(function(e,i){if(!e)return;var a=_utils2.default.getField(i,\\\"name\\\");var s=_utils2.default.getField(i,\\\"clone\\\",false);if(_ViewAbstraction2.default.exists(a)){$tm.notify(\\\"Forbidden! View already exists!\\\");return}if(s&&t.isLiveView()){$tm.notify(\\\"Forbidden to clone the live view!\\\");return}var r=new _ViewAbstraction2.default(a,{isCreate:true,protoView:s?t.view:null});t.setView(r)}))}},{key:\\\"handleRenameView\\\",value:function e(){var t=this;if(this.view.isLocked()){$tm.notify(\\\"Forbidden!\\\");return}var i=this.view.getOccurrences();var a={count:i.length.toString(),refFilter:_utils2.default.joinAndWrap(i,\\\"[[\\\",\\\"]]\\\")};$tm.dialogManager.open(\\\"renameView\\\",a,(function(e,i){if(!e){return}var a=_utils2.default.getText(i);if(!a){$tm.notify(\\\"Invalid name!\\\")}else if(_ViewAbstraction2.default.exists(a)){$tm.notify(\\\"Forbidden! View already exists!\\\")}else{t.view.rename(a);t.setView(t.view)}}))}},{key:\\\"handleEditView\\\",value:function e(){var t=this;var i=JSON.stringify($tm.config.vis);var a=this.graphData;var s=this.view.getConfig();var r={\\\"filter.prettyNodeFltr\\\":this.view.getNodeFilter(\\\"pretty\\\"),\\\"filter.prettyEdgeFltr\\\":this.view.getEdgeTypeFilter(\\\"pretty\\\"),\\\"inherited-style\\\":i};var n={view:this.view.getLabel(),createdOn:this.view.getCreationDate(true),numberOfNodes:Object.keys(a.nodesById).length.toString(),numberOfEdges:Object.keys(a.edgesById).length.toString(),dialog:{preselects:$tw.utils.extend({},s,r)}};$tm.dialogManager.open(\\\"configureView\\\",n,(function(e,i){if(!e){return}var a=_utils2.default.getPropertiesByPrefix(i.fields,\\\"config.\\\",true);var s=t.view.getConfig(\\\"background_image\\\");t.view.setConfig(a);if(a[\\\"physics_mode\\\"]&&!t.view.isEnabled(\\\"physics_mode\\\")){t.view.saveNodePositions(t.network.getPositions())}var r=t.view.getConfig(\\\"background_image\\\");if(r&&r!==s){$tm.notify(\\\"Background changed! You may need to zoom out a bit.\\\")}var n=_utils2.default.getField(i,\\\"filter.prettyNodeFltr\\\",\\\"\\\");var o=_utils2.default.getField(i,\\\"filter.prettyEdgeFltr\\\",\\\"\\\");t.view.setNodeFilter(n);t.view.setEdgeTypeFilter(o)}))}},{key:\\\"handleSaveCanvas\\\",value:function e(){var t=this;var i=\\\"$:/temp/tmap/snapshot\\\";this.createAndSaveSnapshot(100,100,i);var a=this.view.getLabel()+\\\".png\\\";var s={dialog:{snapshot:i,view:this.view.getLabel(),preselects:{width:this.canvas.width.toString(),height:this.canvas.height.toString(),name:a,action:\\\"download\\\"}}};$tm.dialogManager.open(\\\"saveCanvas\\\",s,(function(e,a){if(!e)return;var r=a.fields.width||s.dialog.preselects.width;var n=a.fields.height||s.dialog.preselects.height;t.createAndSaveSnapshot(r,n,i);var o=a.fields.name||s.dialog.preselects.imageName;var l=a.fields.action;if(l===\\\"download\\\"){t.handleDownloadSnapshot(r,n,o)}else if(l===\\\"wiki\\\"){_utils2.default.cp(i,o,true);t.dispatchEvent({type:\\\"tm-navigate\\\",navigateTo:o})}else if(l===\\\"placeholder\\\"){t.view.addPlaceholder(i)}$tw.wiki.deleteTiddler(\\\"$:/temp/tmap/snapshot\\\")}))}},{key:\\\"handleDownloadSnapshot\\\",value:function e(t,i,a){var s=this.document.createElement(\\\"a\\\");var r=this.view.getLabel();s.download=a;s.href=this.getCanvasAsBase64({size:{width:t,height:i}});var n=new MouseEvent(\\\"click\\\");s.dispatchEvent(n)}},{key:\\\"createAndSaveSnapshot\\\",value:function e(t,i,a,s){$tw.wiki.addTiddler(new $tw.Tiddler({title:s||a,type:\\\"image/png\\\",text:this.getCanvasAsBase64({size:{width:t,height:i},withoutPreamble:true})},$tw.wiki.getCreationFields(),$tw.wiki.getModificationFields()));return a}},{key:\\\"getCanvasAsBase64\\\",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},i=t.withoutPreamble,a=t.size;var s=this.graphDomNode.style.width;var r=this.graphDomNode.style.height;if(a){this.graphDomNode.style.width=a.width+\\\"px\\\";this.graphDomNode.style.height=a.height+\\\"px\\\";this.network.redraw()}var n=this.canvas.toDataURL(\\\"image/png\\\");if(a){this.graphDomNode.style.width=s;this.graphDomNode.style.height=r;this.network.redraw()}return i?_utils2.default.getWithoutPrefix(n,\\\"data:image/png;base64,\\\"):n}},{key:\\\"handleDeleteView\\\",value:function e(){var t=this;var i=this.view.getLabel();if(this.view.isLocked()){$tm.notify(\\\"Forbidden!\\\");return}var a=this.view.getOccurrences();if(a.length){var s={count:a.length.toString(),refFilter:_utils2.default.joinAndWrap(a,\\\"[[\\\",\\\"]]\\\")};$tm.dialogManager.open(\\\"cannotDeleteViewDialog\\\",s);return}var r=\\\"\\\\n You are about to delete the view ''\\\"+i+\\\"''\\\\n (no tiddler currently references this view).\\\\n \\\";this.openStandardConfirmDialog((function(e){if(!e){return}t.view.destroy();t.setView($tm.misc.defaultViewLabel);var a='view \\\"'+i+\\\"' deleted\\\";t.logger(\\\"debug\\\",a);$tm.notify(a)}),r)}},{key:\\\"handleTriggeredRefresh\\\",value:function e(t){this.logger(\\\"log\\\",t,\\\"Triggered a refresh\\\");var i=_utils2.default.getTiddler(_utils2.default.getText(t));if(this.isLiveView()){if(i){if(this.view.isEnabled(\\\"neighbourhood_trace_clicks\\\")){this.trace[i.fields.title]=true}var a=i.fields[\\\"tmap.open-view\\\"]||$tm.config.sys.liveTab.fallbackView;if(a&&a!==this.view.getLabel()){this.setView(a);return}}}this.rebuildGraph({resetFocus:{delay:1e3,duration:1e3}})}},{key:\\\"handleRemoveElements\\\",value:function e(t){var i=t.nodes,a=t.edges;if(i.length){this.handleRemoveNodes(i)}else if(a.length){this.handleRemoveEdges(a)}this.resetVisManipulationBar()}},{key:\\\"handleRemoveEdges\\\",value:function e(t){$tm.adapter.deleteEdges(this.graphData.edges.get(t));$tm.notify(\\\"edge\\\"+(t.length>1?\\\"s\\\":\\\"\\\")+\\\" removed\\\")}},{key:\\\"handleRemoveNodes\\\",value:function e(t){var i=this;var a=$tm.adapter.getTiddlersByIds(t);var s={count:t.length.toString(),tiddlers:$tw.utils.stringifyList(a),dialog:{preselects:{\\\"delete-from\\\":\\\"filter\\\"}}};$tm.dialogManager.open(\\\"deleteNodeDialog\\\",s,(function(e,a){if(!e)return;var s=0;for(var r=t.length;r--;){var n=i.view.removeNode(t[r]);if(n){s++}}if(a.fields[\\\"delete-from\\\"]===\\\"system\\\"){$tm.adapter.deleteNodes(t);s=t.length}i.isPreventZoomOnNextUpdate=true;$tm.notify(\\\"\\\\n Removed \\\"+s+\\\"\\\\n of \\\"+t.length+\\\"\\\\n from \\\"+a.fields[\\\"delete-from\\\"]+\\\"\\\\n \\\")}))}},{key:\\\"toggleEnlargedMode\\\",value:function e(t){if(!this.isInSidebar&&t===\\\"halfscreen\\\"){return}this.logger(\\\"log\\\",\\\"Toggled graph enlargement\\\");var i=this.enlargedMode;if(i){this.network.setOptions({clickToUse:this.clickToUse});_utils2.default.findAndRemoveClassNames([\\\"tmap-has-\\\"+i+\\\"-widget\\\",\\\"tmap-\\\"+i]);this.enlargedMode=null;document.body.scrollTop=this.scrollTop}if(!i||i!==t&&(t===\\\"fullscreen\\\"||t===\\\"halfscreen\\\"&&!this.isInSidebar)){this.scrollTop=document.body.scrollTop;this.enlargedMode=t;var a=this.isInSidebar?this.sidebar:_utils2.default.getFirstElementByClassName(\\\"tc-story-river\\\");$tw.utils.addClass(this.document.body,\\\"tmap-has-\\\"+t+\\\"-widget\\\");$tw.utils.addClass(a,\\\"tmap-has-\\\"+t+\\\"-widget\\\");$tw.utils.addClass(this.domNode,\\\"tmap-\\\"+t);this.network.setOptions({clickToUse:false});$tm.notify(\\\"Toggled \\\"+t+\\\" mode\\\")}this.handleResizeEvent()}},{key:\\\"handleGenerateWidget\\\",value:function e(t){$tw.rootWidget.dispatchEvent({type:\\\"tmap:tm-generate-widget\\\",paramObject:{view:this.view.getLabel()}})}},{key:\\\"handleSetCentralTopic\\\",value:function e(t){var i=t.paramObject;var a=i.id||this.network.getSelectedNodes()[0];if(a===this.view.getConfig(\\\"central-topic\\\")){a=\\\"\\\"}this.view.setCentralTopic(a)}},{key:\\\"handleVisStabilizedEvent\\\",value:function e(t){if(this.hasNetworkStabilized){return}this.hasNetworkStabilized=true;this.logger(\\\"log\\\",\\\"Network stabilized after\\\",t.iterations,\\\"iterations\\\");if(!this.view.isEnabled(\\\"physics_mode\\\")){var i=this.graphData.nodesById;var a=[];for(var s in i){if(i[s].x===undefined){a.push(s)}}if(a.length){this.setNodesMoveable(a,false);$tm.notify(a.length+\\\" nodes were added to the graph\\\")}var r=this.visOptions.physics;r[r.solver].centralGravity=0;this.network.setOptions(this.visOptions)}if(this.resetFocus){this.fitGraph(this.resetFocus.delay,this.resetFocus.duration);this.resetFocus=null}}},{key:\\\"handleFocusNode\\\",value:function e(t){var i=t.param;this.network.focus($tm.adapter.getId(i),{scale:1.5,animation:true})}},{key:\\\"isZombieWidget\\\",value:function e(){return this.domNode.isTiddlyWikiFakeDom===true||!this.document.body.contains(this.getContainer())}},{key:\\\"fitGraph\\\",value:function e(){var t=this;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;clearTimeout(this.activeFitTimeout);var s=function e(){if(t.isZombieWidget()){return}t.network.redraw();t.network.fit({animation:{duration:a,easingFunction:\\\"easeOutQuart\\\"}})};this.activeFitTimeout=setTimeout(s,i)}},{key:\\\"handleInsertNode\\\",value:function e(t){var i=this;$tm.dialogManager.open(\\\"addNodeToMap\\\",{},(function(e,a){if(!e){return}var s=_utils2.default.getField(a,\\\"draft.title\\\").trim();if(_utils2.default.tiddlerExists(s)){if(_utils2.default.isMatch(s,i.view.getNodeFilter(\\\"compiled\\\"))){$tm.notify(\\\"Node already exists\\\");return}else{t=$tm.adapter.makeNode(s,t);i.view.addNode(t)}}else{var r=new $tw.Tiddler(a,{\\\"draft.title\\\":null});t.label=s;$tm.adapter.insertNode(t,i.view,r)}i.isPreventZoomOnNextUpdate=true}))}},{key:\\\"handleEditNode\\\",value:function e(t){var i=this;var a=$tm.tracker.getTiddlerById(t.id);var s=_utils2.default.getTiddler(a);var r=$tm.config.vis.nodes;var n=_utils2.default.parseJSON(this.view.getConfig(\\\"vis\\\"),{}).nodes;var o={};o[t.id]=t;var l=$tm.adapter.getInheritedNodeStyles(o);var d=l[a];var h=_utils2.default.merge({},{color:s.fields[\\\"color\\\"]},_utils2.default.parseJSON(s.fields[\\\"tmap.style\\\"]));var u=this.view.getLabel();var g=_extends({},this.view.getNodeData(t.id));delete g.x;delete g.y;var f={view:u,tiddler:s.fields.title,tidColor:s.fields[\\\"color\\\"],tidIcon:s.fields[$tm.field.nodeIcon]||s.fields[\\\"tmap.fa-icon\\\"],tidLabelField:\\\"global.\\\"+$tm.field.nodeLabel,tidIconField:\\\"global.\\\"+$tm.field.nodeIcon,dialog:{preselects:{\\\"inherited-global-default-style\\\":JSON.stringify(r),\\\"inherited-local-default-style\\\":JSON.stringify(n),\\\"inherited-group-styles\\\":JSON.stringify(d),\\\"global.tmap.style\\\":JSON.stringify(h),\\\"local-individual-node-style\\\":JSON.stringify(g)}}};var v=function e(t,i,a){for(var s=a.length;s--;){f.dialog.preselects[t+\\\".\\\"+a[s]]=i[a[s]]||\\\"\\\"}};v(\\\"local\\\",g,[\\\"label\\\",\\\"tw-icon\\\",\\\"fa-icon\\\",\\\"open-view\\\"]);v(\\\"global\\\",s.fields,[$tm.field.nodeLabel,$tm.field.nodeIcon,\\\"tmap.fa-icon\\\",\\\"tmap.open-view\\\"]);$tm.dialogManager.open(\\\"editNode\\\",f,(function(e,s){if(!e)return;var r=s.fields;var n=_utils2.default.getPropertiesByPrefix(r,\\\"global.\\\",true);for(var o in n){_utils2.default.setField(a,o,n[o]||undefined)}var l=_utils2.default.getPropertiesByPrefix(r,\\\"local.\\\",true);var d=_utils2.default.parseJSON(r[\\\"local-individual-node-style\\\"],{});for(var h in l){d[h]=l[h]||undefined}i.view.saveNodeStyle(t.id,d);i.isPreventZoomOnNextUpdate=true}))}},{key:\\\"handleVisSingleClickEvent\\\",value:function e(t){var i=_utils2.default.isTrue($tm.config.sys.singleClickMode);if(i&&!this.editorMode){this.handleOpenMapElementEvent(t)}}},{key:\\\"handleVisDoubleClickEvent\\\",value:function e(t){if(t.nodes.length||t.edges.length){if(this.editorMode||!_utils2.default.isTrue($tm.config.sys.singleClickMode)){this.handleOpenMapElementEvent(t)}}else{if(this.editorMode){this.handleInsertNode(t.pointer.canvas)}}}},{key:\\\"handleOpenMapElementEvent\\\",value:function e(t){var i=this;var a=t.nodes,s=t.edges;if(a.length){var r=this.graphData.nodesById[a[0]];if(this.view.isEnabled(\\\"neighbourhood_trace_clicks\\\")){this.trace[$tm.adapter.getTiddlerById(r.id)]=true;this.isPreventZoomOnNextUpdate=Date.now()+500;this.rebuildGraph();if(this.view.isEnabled(\\\"neighbourhood_focus_newly_traced_node\\\")){setTimeout((function(){i.network.focus(r.id,{scale:1,animation:true})}),1500)}}if(r[\\\"open-view\\\"]){$tm.notify(\\\"Switching view\\\");this.setView(r[\\\"open-view\\\"])}this.openTiddlerWithId(a[0])}else if(s.length){this.logger(\\\"debug\\\",\\\"Clicked on an Edge\\\");var n=this.graphData.edgesById[s[0]].type;this.handleEditEdgeType(n)}else{return}this.hidePopups(0,true)}},{key:\\\"handleEditEdgeType\\\",value:function e(t){if(!this.editorMode)return;var i=$tm.config.sys.edgeClickBehaviour;if(i!==\\\"manager\\\")return;$tw.rootWidget.dispatchEvent({type:\\\"tmap:tm-manage-edge-types\\\",paramObject:{type:t}})}},{key:\\\"handleResizeEvent\\\",value:function e(t){if(this.isZombieWidget())return;var i=this.getAttr(\\\"height\\\");var a=this.getAttr(\\\"width\\\");if(this.isInSidebar){var s=this.domNode.getBoundingClientRect();var r=15;a=document.body.clientWidth-s.left-r+\\\"px\\\";var n=parseInt(this.getAttr(\\\"bottom-spacing\\\"))||15;var o=window.innerHeight-s.top;i=o-n+\\\"px\\\"}this.domNode.style.height=i||\\\"300px\\\";this.domNode.style.width=a;this.repaintGraph()}},{key:\\\"handleClickEvent\\\",value:function e(t){if(this.isZombieWidget()||!this.network)return;if(!this.graphDomNode.contains(t.target)){var i=this.network.getSelection();if(i.nodes.length||i.edges.length){this.logger(\\\"debug\\\",\\\"Clicked outside; deselecting nodes/edges\\\");this.network.selectNodes([]);this.resetVisManipulationBar()}}else{this.canvas.focus()}if(t.button!==2){this.contextMenu.hide(0,true)}}},{key:\\\"handleVisSelectNode\\\",value:function e(t){var i=t.nodes;if(!this.isDraggingAllowed(i)){return}this.assignActiveStyle(i)}},{key:\\\"isDraggingAllowed\\\",value:function e(t){var i=t.nodes;return this.editorMode||this.view.isEnabled(\\\"physics_mode\\\")}},{key:\\\"assignActiveStyle\\\",value:function e(t){if(!Array.isArray(t))t=[t];var i=this.visOptions.nodes.color;for(var a=t.length;a--;){var s=t[a];var r=this.graphData.nodesById[s];var n=_utils2.default.merge({},i,r.color);this.graphData.nodes.update({id:s,color:{highlight:n,hover:n}})}}},{key:\\\"handleVisDeselectNode\\\",value:function e(t){}},{key:\\\"handleVisDragEnd\\\",value:function e(t){var i=t.nodes;if(!i.length){return}if(i.length===1&&this.view.isEnabled(\\\"raster\\\")){var a=this.network.getPositions()[i[0]];this.graphData.nodes.update(_extends({id:i[0]},_utils2.default.getNearestRasterPosition(a,parseInt(this.view.getConfig(\\\"raster\\\")))))}this.draggedNode=null;this.setNodesMoveable(i,false)}},{key:\\\"handleVisBeforeDrawing\\\",value:function e(t){var i=this.view,a=this.network,s=this.backgroundImage;if(s){t.drawImage(s,0,0)}if(i.isEnabled(\\\"raster\\\")){_utils2.default.drawRaster(t,a.getScale(),a.getViewPosition(),parseInt(i.getConfig(\\\"raster\\\")))}}},{key:\\\"handleVisAfterDrawing\\\",value:function e(t){if(this.selectRect){var i=this.selectRect.getRect();t.beginPath();t.globalAlpha=.5;t.fillStyle=\\\"#EAFFEF\\\";t.fillRect.apply(t,_toConsumableArray(i));t.beginPath();t.globalAlpha=1;t.strokeStyle=\\\"#B4D9BD\\\";t.strokeRect.apply(t,_toConsumableArray(i))}if(this.draggedNode&&this.view.isEnabled(\\\"raster\\\")){var a=this.network.getPositions()[this.draggedNode];var s=_utils2.default.getNearestRasterPosition(a,parseInt(this.view.getConfig(\\\"raster\\\")));t.strokeStyle=\\\"green\\\";t.fillStyle=\\\"green\\\";t.beginPath();t.moveTo(a.x,a.y);t.lineTo(s.x,s.y);t.stroke();t.beginPath();t.arc(s.x,s.y,5,0,Math.PI*2);t.fill()}}},{key:\\\"constructTooltip\\\",value:function e(t,i){var a=_utils2.default.parseJSON(t);var s=a.node||a.edge;var r=null;var n=\\\"text/html\\\";var o=\\\"text/vnd-tiddlywiki\\\";if(a.node){var l=$tm.tracker.getTiddlerById(s);var d=_utils2.default.getTiddler(l);var h=d.fields[$tm.field.nodeInfo];if(h){i.innerHTML=$tw.wiki.renderText(n,o,h)}else if(d.fields.text){_utils2.default.registerTransclude(this,\\\"tooltipWidget\\\",l);this.tooltipWidget.setVariable(\\\"tv-tiddler-preview\\\",\\\"yes\\\");this.tooltipWidget.render(i)}else{i.innerHTML=l}}else{var u=this.graphData.edgesById[s];var g=$tm.indeces.allETy[u.type];if(g.description){r=$tw.wiki.renderText(n,o,g.description)}i.innerHTML=r||g.label||g.id}}},{key:\\\"handleVisHoverElement\\\",value:function e(t){if($tm.mouse.buttons)return;var i=t.node||t.edge;var a=JSON.stringify(t);if(t.node){this.assignActiveStyle(i)}if(!this.isVisInEditMode()&&!this.contextMenu.isShown()){var s=this.constructTooltip;this.tooltip.show(a,s)}}},{key:\\\"handleVisBlurElement\\\",value:function e(t){this.tooltip.hide()}},{key:\\\"handleVisLoading\\\",value:function e(t){var i=t.total,a=t.iterations;this.graphLoadingBarDomNode.style.display=\\\"block\\\";this.graphLoadingBarDomNode.setAttribute(\\\"max\\\",i);this.graphLoadingBarDomNode.setAttribute(\\\"value\\\",a)}},{key:\\\"handleVisLoadingDone\\\",value:function e(t){this.graphLoadingBarDomNode.style.display=\\\"none\\\"}},{key:\\\"handleVisDragStart\\\",value:function e(t){var i=t.nodes;if(!i.length||!this.isDraggingAllowed(i)){return}this.hidePopups(0,true);this.assignActiveStyle(i);this.setNodesMoveable(i,true);if(i.length===1){this.draggedNode=i[0]}}},{key:\\\"destruct\\\",value:function e(){_utils2.default.setDomListeners(\\\"remove\\\",window,this.windowDomListeners);_utils2.default.setDomListeners(\\\"remove\\\",this.domNode,this.widgetDomListeners);this._destructVis()}},{key:\\\"_destructVis\\\",value:function e(){if(!this.network)return;_utils2.default.setDomListeners(\\\"remove\\\",this.canvas,this.canvasDomListeners);this.network.destroy();this.network=null}},{key:\\\"openTiddlerWithId\\\",value:function e(t){var i=this;var a=$tm.tracker.getTiddlerById(t);this.logger(\\\"debug\\\",\\\"Opening tiddler\\\",a,\\\"with id\\\",t);if(this.enlargedMode===\\\"fullscreen\\\"){var s=$tw.wiki.findDraft(a);var r=!!s;if(!r){var n=\\\"tm-edit-tiddler\\\";this.dispatchEvent({type:n,tiddlerTitle:a});s=$tw.wiki.findDraft(a)}var o={draftTRef:s,originalTRef:a};$tm.dialogManager.open(\\\"fullscreenTiddlerEditor\\\",o,(function(e,t){if(e){var n=\\\"tm-save-tiddler\\\";i.dispatchEvent({type:n,tiddlerTitle:s})}else if(!r){_utils2.default.deleteTiddlers([s])}var o=\\\"tm-close-tiddler\\\";i.dispatchEvent({type:o,tiddlerTitle:a})}))}else{var l=this.domNode.getBoundingClientRect();this.dispatchEvent({type:\\\"tm-navigate\\\",navigateTo:a,navigateFromTitle:this.getVariable(\\\"storyTiddler\\\"),navigateFromNode:this,navigateFromClientRect:{top:l.top,left:l.left,width:l.width,right:l.right,bottom:l.bottom,height:l.height}})}}},{key:\\\"getViewHolderRef\\\",value:function e(){if(this.viewHolderRef){return this.viewHolderRef}this.logger(\\\"info\\\",\\\"Retrieving or generating the view holder reference\\\");var t=this.getAttr(\\\"view\\\");var i=null;if(t){this.logger(\\\"log\\\",'User wants to bind view \\\"'+t+\\\"' to graph\\\");var a=$tm.path.views+\\\"/\\\"+t;if($tw.wiki.getTiddler(a)){i=$tm.path.localHolders+\\\"/\\\"+_utils2.default.genUUID();this.logger(\\\"log\\\",'Created an independent temporary view holder \\\"'+i+'\\\"');_utils2.default.setText(i,a);this.logger(\\\"log\\\",'View \\\"'+a+\\\"' inserted into independend holder\\\")}else{this.logger(\\\"log\\\",'View \\\"'+t+'\\\" does not exist')}}if(!i){this.logger(\\\"log\\\",\\\"Using default (global) view holder\\\");i=$tm.ref.defaultViewHolder}return i}},{key:\\\"setView\\\",value:function e(t,i){if(!_ViewAbstraction2.default.exists(t)){return}t=new _ViewAbstraction2.default(t);var a=t.getLabel();i=i||this.viewHolderRef;this.logger(\\\"info\\\",'Inserting view \\\"'+a+'\\\" into holder \\\"'+i+'\\\"');$tw.wiki.addTiddler(new $tw.Tiddler({title:i,text:a}));this.update({changedTiddlers:_defineProperty({},i,true)})}},{key:\\\"getView\\\",value:function e(t){if(!t&&this.view){return this.view}var i=this.getViewHolderRef();var a=_utils2.default.getText(i);this.logger(\\\"debug\\\",\\\"Retrieved view from holder\\\");var s=void 0;if(_ViewAbstraction2.default.exists(a)){s=new _ViewAbstraction2.default(a)}else{this.logger(\\\"debug\\\",'Warning: View \\\"'+a+\\\"\\\\\\\" doesn't exist. Default is used instead.\\\");s=new _ViewAbstraction2.default(\\\"Default\\\")}return s}},{key:\\\"reloadBackgroundImage\\\",value:function e(t){var i=this;this.backgroundImage=null;var a=this.view.getConfig(\\\"background_image\\\");var s=_utils2.default.getTiddler(a);if(!s&&!a)return;var r=new Image;r.onload=function(){i.backgroundImage=r;i.repaintGraph()};if(s){var n=s.fields[\\\"_canonical_uri\\\"];if(n){r.src=n}else if(s.fields.text){r.src=$tw.utils.makeDataUri(s.fields.text,s.fields.type)}}else if(a){r.src=a}}},{key:\\\"repaintGraph\\\",value:function e(){var t=$tw.utils.hasClass(this.document.body,\\\"tmap-has-fullscreen-widget\\\");if(this.network&&(!t||t&&this.enlargedMode)){this.logger(\\\"info\\\",\\\"Repainting the whole graph\\\");this.network.redraw();this.fitGraph(0,1e3)}}},{key:\\\"setGraphButtonEnabled\\\",value:function e(t,i){var a=\\\"vis-button tmap-\\\"+t;var s=_utils2.default.getFirstElementByClassName(a,this.domNode);$tw.utils.toggleClass(s,\\\"tmap-button-enabled\\\",i)}},{key:\\\"setNodesMoveable\\\",value:function e(t,i){if(!t||!t.length||this.view.isEnabled(\\\"physics_mode\\\")){return}var a=[];var s=!i;for(var r=t.length;r--;){a.push({id:t[r],fixed:{x:s,y:s}})}this.graphData.nodes.update(a);if(s){this.logger(\\\"debug\\\",\\\"Fixing\\\",a.length,\\\"nodes\\\");this.view.saveNodePositions(this.network.getPositions());this.isPreventZoomOnNextUpdate=true}}},{key:\\\"addGraphButtons\\\",value:function e(t){var i=_utils2.default.getFirstElementByClassName(\\\"vis-navigation\\\",this.domNode);for(var a in t){var s=this.document.createElement(\\\"div\\\");s.className=\\\"vis-button tmap-\\\"+a;s.addEventListener(\\\"click\\\",t[a].bind(this),false);i.appendChild(s);this.setGraphButtonEnabled(a,true)}}}]);return t}(_widget.widget);exports.tmap=MapWidget;exports.tiddlymap=MapWidget;\",\"type\":\"application/javascript\",\"module-type\":\"widget\"},\"$:/plugins/felixhayashi/tiddlymap/license\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/license\",\"subtitle\":\"License\",\"caption\":\"License\",\"text\":\"\\\\rules except wikilink\\n\\n!! TiddlyMap\\n\\nCopyright (c) 2014, Felix Küppers\\nAll rights reserved.\\n\\nTiddlyMap is licensed under the [[BSD 2-Clause License|http://opensource.org/licenses/BSD-2-Clause]]. For the exact license terms, please visit [[https://github.com/felixhayashi/TW5-TiddlyMap/blob/master/LICENSE]]. \\n\\n!! TiddlyWiki\\n\\nCreated by Jeremy Ruston, (jeremy [at] jermolene [dot] com)\\n\\nCopyright © Jeremy Ruston 2004-2007 Copyright © UnaMesa Association 2007-2014\\n\\nPublished under the following [licenses](https://github.com/Jermolene/TiddlyWiki5/tree/master/licenses):\\n\\n# BSD 3-clause \\\"New\\\" or \\\"Revised\\\" License (including any right to adopt any future version of a license if permitted)\\n# Creative Commons Attribution 3.0 (including any right to adopt any future version of a license if permitted)\\n\\n!! Vis.js\\n\\nCopyright (c) 2014 [Almende B.V.](https://github.com/almende/vis)\\n\\nPublished under the following licenses:\\n\\n# Apache License Version 2.0, January 2004 http://www.apache.org/licenses/\\n# MIT License (MIT)\\n\"},\"$:/plugins/felixhayashi/tiddlymap/readme\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/readme\",\"text\":\"* Please refer to the project-readme hosted at [[https://github.com/felixhayashi/TW5-TiddlyMap]].\\n* A demo with several examples and explanations can be found at [[http://tiddlymap.org]].\"},\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tmap:unknown\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tmap:unknown\",\"description\":\"Automatically assigned to an edge that does not have a type assigned\",\"style\":\"{\\\"color\\\":{\\\"color\\\":\\\"gray\\\"}}\",\"show-label\":\"false\"},\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-body:link\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-body:link\",\"description\":\"A link that is contained in the tiddler's body pointing to another resource.\",\"style\":\"{\\\"color\\\":{\\\"color\\\":\\\"orange\\\"}, \\\"dashes\\\":true}\",\"label\":\"links to\",\"text\":\"\"},\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:list\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:list\",\"description\":\"Contained in a list of this tiddler\",\"style\":\"{ \\\"color\\\":{\\\"color\\\":\\\"red\\\"}, \\\"dashes\\\":true}\",\"label\":\"listed in\",\"text\":\"\"},\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:tags\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/graph/edgeTypes/tw-list:tags\",\"description\":\"A tag that refers to a tiddler of the same name.\",\"style\":\"{ \\\"color\\\":{\\\"color\\\":\\\"darkslategray\\\"}, \\\"dashes\\\":true}\",\"label\":\"tagged with\"},\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/default\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/default\",\"caption\":\"Overview\",\"text\":\"\\\\whitespace trim\\n\\\\rules except wikilink\\n\\n
\\n \\n Please visit the\\n \\n [[online docs|http://tiddlymap.org/Documentation]]\\n \\n for more information about the available global options.\\n
\\n\\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n
Plugin version<>
Nodes in system<>
Edges in system<>
\"},\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/editor\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/editor\",\"caption\":\"Editor\",\"text\":\"\\\\whitespace trim\\n\\\\rules except wikilink\\n\\n\\n <>\\n <>\\n <>\\n
\\n\"},\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/fields\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/fields\",\"caption\":\"Field settings\",\"text\":\"\\\\whitespace trim\\n\\\\rules except wikilink\\n\\n\\n <>\\n <>\\n <>\\n
\\n\"},\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/interaction\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/interaction\",\"caption\":\"Interaction & behaviour\",\"text\":\"\\\\whitespace trim\\n\\\\rules except wikilink\\n\\n\\n <$macrocall type=\\\"input-select\\\"\\n $name=\\\"tmap-row\\\"\\n title=\\\"Default startup view\\\"\\n field=\\\"config.sys.defaultView\\\"\\n nochoice=\\\"Last view used at startup\\\"\\n selectFilter=<>\\n descr=\\\"The view to display at startup\\\" />\\n <>\\n <$list filter=\\\"[config.sys.popups.enabled[true]]\\\">\\n <>\\n <>\\n <>\\n \\n <>\\n <>\\n <>\\n <>\\n
\\n\\n!! Suppressed dialogs\\n\\n
\\n \\n Dialogs that you decided to suppress in the past are listed here.\\n Remove the checkmark to enable dialogs again.\\n
\\n\\n\\n <$list\\n filter=\\\"[fields[]prefix[config.sys.suppressedDialogs]]\\\"\\n emptyMessage=\\\"–\\\">\\n <$set name=\\\"dialogName\\\" value=<>>\\n <$macrocall $name=\\\"tmap-row\\\"\\n type=\\\"input-checkbox\\\"\\n title=\\\"Suppress '$(dialogName)$' dialog\\\"\\n field=<> />\\n \\n
\\n \\n
\\n\"},\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/liveTab\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig/liveTab\",\"caption\":\"Live tab\",\"text\":\"\\\\whitespace trim\\n\\\\rules except wikilink\\n\\n\\n <>\\n <$macrocall type=\\\"input-select\\\"\\n $name=\\\"tmap-row\\\"\\n title=\\\"Fallback view\\\"\\n field=\\\"config.sys.liveTab.fallbackView\\\" \\n selectFilter=<>\\n descr=\\\"The view to display in the sidebar's live tab in\\n case the current tiddler did not specify a view\\n to open.\\\" />\\n
\"},\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig\":{\"title\":\"$:/plugins/felixhayashi/tiddlymap/dialog/globalConfig\",\"subtitle\":\"{{$:/core/images/options-button}} Global configuration of TiddlyMap\",\"classes\":\"tmap-remove-top-space\",\"text\":\"\\\\whitespace trim\\n\\\\rules except wikilink\\n\\n<$macrocall $name=\\\"tabs\\\"\\n default=<>\\n tabsList=\\\"[all[shadows]prefix