mind-elixir 5.0.0-beta.21 → 5.0.0-beta.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".map-container{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:hidden;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .hyper-link{text-decoration:none;margin-left:.3em}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7;border-radius:3px}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTQ3MTcyNDIiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA0ODBoLTEzOC42NjY2NjdWMzQxLjMzMzMzM2MwLTE3LjA2NjY2Ny0xNC45MzMzMzMtMzItMzItMzJzLTMyIDE0LjkzMzMzMy0zMiAzMnYxMzguNjY2NjY3SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyIDE0LjkzMzMzMy0zMiAzMnMxNC45MzMzMzMgMzIgMzIgMzJoMTM4LjY2NjY2N1Y2ODIuNjY2NjY3YzAgMTcuMDY2NjY3IDE0LjkzMzMzMyAzMiAzMiAzMnMzMi0xNC45MzMzMzMgMzItMzJ2LTEzOC42NjY2NjdINjgyLjY2NjY2N2MxNy4wNjY2NjcgMCAzMi0xNC45MzMzMzMgMzItMzJzLTE0LjkzMzMzMy0zMi0zMi0zMnoiPjwvcGF0aD4NCjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTU1NjQ5ODUiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA1NDRIMzQxLjMzMzMzM2MtMTcuMDY2NjY3IDAtMzItMTQuOTMzMzMzLTMyLTMyczE0LjkzMzMzMy0zMiAzMi0zMmgzNDEuMzMzMzM0YzE3LjA2NjY2NyAwIDMyIDE0LjkzMzMzMyAzMiAzMnMtMTQuOTMzMzMzIDMyLTMyIDMyeiI+PC9wYXRoPg0KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary,.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .summary>g,.map-container .topiclinks>g{cursor:pointer;pointer-events:stroke}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;color:var(--color);background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.map-container .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.map-container .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.map-container .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.map-container .context-menu .menu-list li span{line-height:20px}.map-container .context-menu .menu-list li a{color:#333;text-decoration:none}.map-container .context-menu .menu-list li.disabled{display:none}.map-container .context-menu .menu-list li:hover{filter:brightness(.95)}.map-container .context-menu .menu-list li:last-child{border-bottom:0}.map-container .context-menu .menu-list li span:last-child{float:right}.map-container .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.map-container .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".map-container{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:hidden;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .hyper-link{text-decoration:none;margin-left:.3em}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7;border-radius:3px}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTQ3MTcyNDIiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA0ODBoLTEzOC42NjY2NjdWMzQxLjMzMzMzM2MwLTE3LjA2NjY2Ny0xNC45MzMzMzMtMzItMzItMzJzLTMyIDE0LjkzMzMzMy0zMiAzMnYxMzguNjY2NjY3SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyIDE0LjkzMzMzMy0zMiAzMnMxNC45MzMzMzMgMzIgMzIgMzJoMTM4LjY2NjY2N1Y2ODIuNjY2NjY3YzAgMTcuMDY2NjY3IDE0LjkzMzMzMyAzMiAzMiAzMnMzMi0xNC45MzMzMzMgMzItMzJ2LTEzOC42NjY2NjdINjgyLjY2NjY2N2MxNy4wNjY2NjcgMCAzMi0xNC45MzMzMzMgMzItMzJzLTE0LjkzMzMzMy0zMi0zMi0zMnoiPjwvcGF0aD4NCjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTU1NjQ5ODUiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA1NDRIMzQxLjMzMzMzM2MtMTcuMDY2NjY3IDAtMzItMTQuOTMzMzMzLTMyLTMyczE0LjkzMzMzMy0zMiAzMi0zMmgzNDEuMzMzMzM0YzE3LjA2NjY2NyAwIDMyIDE0LjkzMzMzMyAzMiAzMnMtMTQuOTMzMzMzIDMyLTMyIDMyeiI+PC9wYXRoPg0KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary,.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .summary>g,.map-container .topiclinks>g{cursor:pointer;pointer-events:stroke}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;color:var(--color);background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.map-container .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.map-container .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.map-container .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.map-container .context-menu .menu-list li span{line-height:20px}.map-container .context-menu .menu-list li a{color:#333;text-decoration:none}.map-container .context-menu .menu-list li.disabled{display:none}.map-container .context-menu .menu-list li:hover{filter:brightness(.95)}.map-container .context-menu .menu-list li:last-child{border-bottom:0}.map-container .context-menu .menu-list li span:last-child{float:right}.map-container .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.map-container .tips{position:absolute;bottom:28px;left:50%;transform:translate(-50%);color:var(--panel-color);background:var(--panel-bgcolor);opacity:.8;padding:5px 10px;border-radius:5px;font-weight:700}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  var MindElixir=function(){"use strict";var Rn=Object.defineProperty;var zn=(I,_,T)=>_ in I?Rn(I,_,{enumerable:!0,configurable:!0,writable:!0,value:T}):I[_]=T;var ee=(I,_,T)=>(zn(I,typeof _!="symbol"?_+"":_,T),T);const I="";(function(e){var t,n,o,s,i,r,c='<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>',a=(a=document.getElementsByTagName("script"))[a.length-1].getAttribute("data-injectcss");if(a&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch{}}function d(){i||(i=!0,o())}t=function(){var l,u,h,v;(v=document.createElement("div")).innerHTML=c,c=null,(h=v.getElementsByTagName("svg")[0])&&(h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.width=0,h.style.height=0,h.style.overflow="hidden",l=h,(u=document.body).firstChild?(v=l,(h=u.firstChild).parentNode.insertBefore(v,h)):u.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(o=t,s=e.document,i=!1,(r=function(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(r,50)}d()})(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,d())})})(window);const _=0,T=1,te=2,Ce={name:"Latte",type:"light",palette:["#dd7878","#ea76cb","#8839ef","#e64553","#fe640b","#df8e1d","#40a02b","#209fb5","#1e66f5","#7287fd"],cssVar:{"--gap":"30px","--main-color":"#444446","--main-bgcolor":"#ffffff","--color":"#777777","--bgcolor":"#f6f6f6","--panel-color":"#444446","--panel-bgcolor":"#ffffff","--panel-border-color":"#eaeaea"}},Ne={name:"Dark",type:"dark",palette:["#848FA0","#748BE9","#D2F9FE","#4145A5","#789AFA","#706CF4","#EF987F","#775DD5","#FCEECF","#DA7FBC"],cssVar:{"--main-color":"#ffffff","--main-bgcolor":"#4c4f69","--color":"#cccccc","--bgcolor":"#252526","--panel-color":"#ffffff","--panel-bgcolor":"#2d3748","--panel-border-color":"#696969"}};function ne(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}const oe=function(e,t){if(t.id===e)return t;if(t.children&&t.children.length){for(let n=0;n<t.children.length;n++){const o=oe(e,t.children[n]);if(o)return o}return null}else return null},O=(e,t)=>{if(e.parent=t,e.children)for(let n=0;n<e.children.length;n++)O(e.children[n],e)};function ue(e){if(e.id=R(),e.children)for(let t=0;t<e.children.length;t++)ue(e.children[t])}function se(e,t,n,o){const s=o-t,i=e-n;let r=Math.atan(Math.abs(s)/Math.abs(i))/3.14*180;if(isNaN(r))return;i<0&&s>0&&(r=180-r),i<0&&s<0&&(r=180+r),i>0&&s<0&&(r=360-r);const c=12,a=30,d=r+a,l=r-a;return{x1:n+Math.cos(Math.PI*d/180)*c,y1:o-Math.sin(Math.PI*d/180)*c,x2:n+Math.cos(Math.PI*l/180)*c,y2:o-Math.sin(Math.PI*l/180)*c}}function R(){return(new Date().getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}const ot=function(){const e=R();return{topic:this.newTopicName,id:e}};function fe(e){return JSON.parse(JSON.stringify(e,(n,o)=>{if(n!=="parent")return o}))}const P=(e,t)=>{let n=0,o=0;for(;t&&t!==e;)n+=t.offsetLeft,o+=t.offsetTop,t=t.offsetParent;return{offsetLeft:n,offsetTop:o}},C=(e,t)=>{for(const n in t)e.setAttribute(n,t[n])},Se=e=>e?e.tagName==="ME-TPC":!1,ie=e=>e.filter(t=>t.nodeObj.parent).filter((t,n,o)=>{for(let s=0;s<o.length;s++){if(t===o[s])continue;const{parent:i}=t.nodeObj;if(i===o[s].nodeObj)return!1}return!0}),_e=e=>{const t=/translate\(([^,]+),\s*([^)]+)\)/,n=e.match(t);return n?{x:parseFloat(n[1]),y:parseFloat(n[2])}:{x:0,y:0}},pe=function(e){for(let t=0;t<e.length;t++){const{dom:n,evt:o,func:s}=e[t];n.addEventListener(o,s)}return function(){for(let n=0;n<e.length;n++){const{dom:o,evt:s,func:i}=e[n];o.removeEventListener(s,i)}}};function st(e){const{dragMoveHelper:t}=e;let n=0,o=0;const s=f=>{var g,y,x;if(f instanceof TouchEvent||f.button!==0)return;if((g=e.helper1)!=null&&g.moved){e.helper1.clear();return}if((y=e.helper2)!=null&&y.moved){e.helper2.clear();return}if(t.moved){t.clear();return}const p=f.target;if(p.tagName==="ME-EPD")f.ctrlKey||f.metaKey?e.expandNodeAll(p.previousSibling):e.expandNode(p.previousSibling);else if(p.tagName==="ME-TPC"&&e.currentNodes.length>1)e.selectNode(p);else if(!e.editable)return;const m=(x=p.parentElement)==null?void 0:x.parentElement;m.getAttribute("class")==="topiclinks"?e.selectArrow(p.parentElement):m.getAttribute("class")==="summary"&&e.selectSummary(p.parentElement)},i=f=>{var g;if(!e.editable)return;const p=f.target;Se(p)&&e.beginEdit(p);const m=(g=p.parentElement)==null?void 0:g.parentElement;m.getAttribute("class")==="topiclinks"?e.editArrowLabel(p.parentElement):m.getAttribute("class")==="summary"&&e.editSummary(p.parentElement)};let r=0;const c=f=>{const p=new Date().getTime(),m=p-r;m<300&&m>0&&i(f),r=p},a=f=>{var p,m;if(f instanceof MouseEvent){const g=e.mouseSelectionButton===0?2:0;if(f.button!==g)return}else n=((p=f.touches[0])==null?void 0:p.clientX)||0,o=((m=f.touches[0])==null?void 0:m.clientY)||0;f.target.contentEditable==="inherit"&&(t.moved=!1,t.mousedown=!0,e.map.style.transition="none")},d=f=>{var p,m,g,y;if(f.target.contentEditable==="inherit")if(f instanceof MouseEvent)t.onMove(f),t.x=f.clientX,t.y=f.clientY;else{const x=((p=f.touches[0])==null?void 0:p.clientX)||0,E=((m=f.touches[0])==null?void 0:m.clientY)||0,b=x-n,w=E-o,M={clientX:x,clientY:E,movementX:b,movementY:w,target:f.target};t.onMove(M),t.x=x,t.y=E,n=x,o=E}else if(f instanceof MouseEvent)t.x=f.clientX,t.y=f.clientY;else{const x=((g=f.touches[0])==null?void 0:g.clientX)||0,E=((y=f.touches[0])==null?void 0:y.clientY)||0;t.x=x,t.y=E,n=x,o=E}},l=f=>{if(f instanceof MouseEvent){const p=e.mouseSelectionButton===0?2:0;if(f.button!==p)return}t.clear()},u=f=>{f instanceof TouchEvent||t.moved&&f.preventDefault()},h=e.map;return pe([{dom:h,evt:"click",func:s},{dom:h,evt:"dblclick",func:i},{dom:h,evt:"mousedown",func:a},{dom:document,evt:"mousemove",func:d},{dom:document,evt:"mouseup",func:l},{dom:document,evt:"contextmenu",func:u},{dom:h,evt:"touchstart",func:a},{dom:document,evt:"touchmove",func:d},{dom:document,evt:"touchend",func:l},{dom:h,evt:"touchend",func:c}])}function it(){return{handlers:{},addListener:function(e,t){this.handlers[e]===void 0&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e,...t){if(this.handlers[e]instanceof Array){const n=this.handlers[e];for(let o=0;o<n.length;o++)n[o](...t)}},removeListener:function(e,t){if(!this.handlers[e])return;const n=this.handlers[e];if(!t)n.length=0;else if(n.length)for(let o=0;o<n.length;o++)n[o]===t&&this.handlers[e].splice(o,1)}}}var k=(e=>(e.LHS="lhs",e.RHS="rhs",e))(k||{});const re=document,rt=function(){this.nodes.innerHTML="";const e=this.createTopic(this.nodeData);me(e,this.nodeData),e.draggable=!1;const t=re.createElement("me-root");t.appendChild(e);const n=this.nodeData.children||[];if(this.direction===te){let o=0,s=0;n.map(i=>{i.direction===_?o+=1:i.direction===T?s+=1:o<=s?(i.direction=_,o+=1):(i.direction=T,s+=1)})}ct(this,n,t)},ct=function(e,t,n){const o=re.createElement("me-main");o.className=k.LHS;const s=re.createElement("me-main");s.className=k.RHS;for(let i=0;i<t.length;i++){const r=t[i],{grp:c}=e.createWrapper(r);e.direction===te?r.direction===_?o.appendChild(c):s.appendChild(c):e.direction===_?o.appendChild(c):s.appendChild(c)}e.nodes.appendChild(o),e.nodes.appendChild(n),e.nodes.appendChild(s),e.nodes.appendChild(e.lines)},lt=function(e,t){const n=re.createElement("me-children");for(let o=0;o<t.length;o++){const s=t[o],{grp:i}=e.createWrapper(s);n.appendChild(i)}return n},L=document,S=(e,t)=>{const o=(t?t.el:L).querySelector(`[data-nodeid=me${e}]`);if(!o)throw new Error(`FindEle: Node ${e} not found, maybe it's collapsed.`);return o},me=function(e,t){if(e.innerHTML="",t.style&&(e.style.color=t.style.color||"",e.style.background=t.style.background||"",e.style.fontSize=t.style.fontSize+"px",e.style.fontWeight=t.style.fontWeight||"normal"),t.dangerouslySetInnerHTML){e.innerHTML=t.dangerouslySetInnerHTML;return}if(t.image){const n=t.image;if(n.url&&n.width&&n.height){const o=L.createElement("img");o.src=n.url,o.style.width=n.width+"px",o.style.height=n.height+"px",n.fit&&(o.style.objectFit=n.fit),e.appendChild(o),e.image=o}}else e.image&&(e.image=void 0);{const n=L.createElement("span");n.className="text",n.textContent=t.topic,e.appendChild(n),e.text=n}if(t.hyperLink){const n=L.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n),e.link=n}else e.link&&(e.link=void 0);if(t.icons&&t.icons.length){const n=L.createElement("span");n.className="icons",n.innerHTML=t.icons.map(o=>`<span>${ne(o)}</span>`).join(""),e.appendChild(n),e.icons=n}else e.icons&&(e.icons=void 0);if(t.tags&&t.tags.length){const n=L.createElement("div");n.className="tags",n.innerHTML=t.tags.map(o=>`<span>${ne(o)}</span>`).join(""),e.appendChild(n),e.tags=n}else e.tags&&(e.tags=void 0)},at=function(e,t){const n=L.createElement("me-wrapper"),{p:o,tpc:s}=this.createParent(e);if(n.appendChild(o),!t&&e.children&&e.children.length>0){const i=ge(e.expanded);if(o.appendChild(i),e.expanded!==!1){const r=lt(this,e.children);n.appendChild(r)}}return{grp:n,top:o,tpc:s}},dt=function(e){const t=L.createElement("me-parent"),n=this.createTopic(e);return me(n,e),t.appendChild(n),{p:t,tpc:n}},ht=function(e){const t=L.createElement("me-children");return t.append(...e),t},ut=function(e){const t=L.createElement("me-tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t};function Me(e){const t=L.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}const ft=function(e){if(!e)return;const t=L.createElement("div"),n=e.text.textContent;e.appendChild(t),t.id="input-box",t.textContent=n,t.contentEditable="plaintext-only",t.spellcheck=!1;const o=getComputedStyle(e);t.style.cssText=`min-width:${e.offsetWidth-8}px;
3
3
  color:${o.color};
4
4
  padding:${o.padding};
@@ -12,7 +12,7 @@ var MindElixir=function(){"use strict";var Rn=Object.defineProperty;var zn=(I,_,
12
12
  top:${i.y}px;
13
13
  padding: 2px 4px;
14
14
  margin: -2px -4px;
15
- `,Me(o),e.scrollIntoView(o),o.addEventListener("keydown",r=>{r.stopPropagation();const c=r.key;if(c==="Enter"||c==="Tab"){if(r.shiftKey)return;r.preventDefault(),o.blur(),e.map.focus()}}),o.addEventListener("blur",()=>{var c;if(!o)return;const r=((c=o.textContent)==null?void 0:c.trim())||"";r===""?n.label=s:n.label=r,o.remove(),r!==s&&(t.innerHTML=n.label,e.linkDiv(),"parent"in n?e.bus.fire("operation",{name:"finishEditSummary",obj:n}):e.bus.fire("operation",{name:"finishEditArrowLabel",obj:n}))})},mt=function(e){const t=this.map.querySelector("me-root"),n=t.offsetTop,o=t.offsetLeft,s=t.offsetWidth,i=t.offsetHeight,c=this.nodes.offsetWidth;this.nodes.style.top=`${1e4-this.nodes.offsetHeight/2}px`,this.alignment==="root"?this.nodes.style.left=`${1e4-o-s/2}px`:this.nodes.style.left=`${1e4-c/2}px`;const a=this.map.querySelectorAll("me-main > me-wrapper");this.lines.innerHTML="";for(let d=0;d<a.length;d++){const l=a[d],u=l.querySelector("me-tpc"),{offsetLeft:h,offsetTop:v}=P(this.nodes,u),f=u.offsetWidth,p=u.offsetHeight,m=l.parentNode.className,g=this.generateMainBranch({pT:n,pL:o,pW:s,pH:i,cT:v,cL:h,cW:f,cH:p,direction:m,containerHeight:this.nodes.offsetHeight}),y=this.theme.palette,x=u.nodeObj.branchColor||y[d%y.length];u.style.borderColor=x,this.lines.appendChild(Te(g,x,"3"));const E=l.children[0].children[1];if(E&&(E.style.top=(E.parentNode.offsetHeight-E.offsetHeight)/2+"px",m===k.LHS?E.style.left="-10px":E.style.right="-10px"),e&&e!==l)continue;const b=G("subLines"),w=l.lastChild;w.tagName==="svg"&&w.remove(),l.appendChild(b),Ae(this,b,x,l,m,!0)}this.renderArrow(),this.renderSummary(),this.bus.fire("linkDiv")},Ae=function(e,t,n,o,s,i){const r=o.firstChild,c=o.children[1].children;if(c.length===0)return;const a=r.offsetTop,d=r.offsetLeft,l=r.offsetWidth,u=r.offsetHeight;for(let h=0;h<c.length;h++){const v=c[h],f=v.firstChild,p=f.offsetTop,m=f.offsetLeft,g=f.offsetWidth,y=f.offsetHeight,x=f.firstChild.nodeObj.branchColor||n,E=e.generateSubBranch({pT:a,pL:d,pW:l,pH:u,cT:p,cL:m,cW:g,cH:y,direction:s,isFirst:i});t.appendChild(Te(E,x,"2"));const b=f.children[1];if(b){if(b.style.bottom=-(b.offsetHeight/2)+"px",s===k.LHS?b.style.left="10px":s===k.RHS&&(b.style.right="10px"),!b.expanded)continue}else continue;Ae(e,t,x,v,s)}},$e={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",summary:"摘要"},je={cn:$e,zh_CN:$e,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",summary:"摘要"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",clickTips:"Please click the target node",summary:"Summary"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",clickTips:"Пожалуйста, нажмите на целевой узел",summary:"Описание"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",summary:"概要"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",clickTips:"Favor clicar no item alvo",summary:"Resumo"},it:{addChild:"Aggiungi figlio",addParent:"Aggiungi genitore",addSibling:"Aggiungi fratello",removeNode:"Rimuovi nodo",focus:"Modalità Focus",cancelFocus:"Annulla Modalità Focus",moveUp:"Sposta su",moveDown:"Sposta giù",link:"Collega",clickTips:"Si prega di fare clic sul nodo di destinazione",summary:"Unisci nodi"},es:{addChild:"Agregar hijo",addParent:"Agregar padre",addSibling:"Agregar hermano",removeNode:"Eliminar nodo",focus:"Modo Enfoque",cancelFocus:"Cancelar Modo Enfoque",moveUp:"Mover hacia arriba",moveDown:"Mover hacia abajo",link:"Enlace",clickTips:"Por favor haga clic en el nodo de destino",summary:"Resumen"},fr:{addChild:"Ajout enfant",addParent:"Ajout parent",addSibling:"Ajout voisin",removeNode:"Supprimer",focus:"Cibler",cancelFocus:"Retour",moveUp:"Monter",moveDown:"Descendre",link:"Lier",clickTips:"Cliquer sur le noeud cible",summary:"Annoter"},ko:{addChild:"자식 추가",addParent:"부모 추가",addSibling:"형제 추가",removeNode:"노드 삭제",focus:"포커스 모드",cancelFocus:"포커스 모드 취소",moveUp:"위로 이동",moveDown:"아래로 이동",link:"연결",clickTips:"대상 노드를 클릭하십시오",summary:"요약"}},Fn="";function gt(e,t){t=t===!0?{focus:!0,link:!0}:t;const n=b=>{const w=document.createElement("div");return w.innerText=b,w.className="tips",w},o=(b,w,M)=>{const $=document.createElement("li");return $.id=b,$.innerHTML=`<span>${ne(w)}</span><span ${M?'class="key"':""}>${ne(M)}</span>`,$},s=je[e.locale]?e.locale:"en",i=je[s],r=o("cm-add_child",i.addChild,"Tab"),c=o("cm-add_parent",i.addParent,"Ctrl + Enter"),a=o("cm-add_sibling",i.addSibling,"Enter"),d=o("cm-remove_child",i.removeNode,"Delete"),l=o("cm-fucus",i.focus,""),u=o("cm-unfucus",i.cancelFocus,""),h=o("cm-up",i.moveUp,"PgUp"),v=o("cm-down",i.moveDown,"Pgdn"),f=o("cm-link",i.link,""),p=o("cm-link-bidirectional","Bidirectional Link",""),m=o("cm-summary",i.summary,""),g=document.createElement("ul");if(g.className="menu-list",g.appendChild(r),g.appendChild(c),g.appendChild(a),g.appendChild(d),t.focus&&(g.appendChild(l),g.appendChild(u)),g.appendChild(h),g.appendChild(v),g.appendChild(m),t.link&&(g.appendChild(f),g.appendChild(p)),t&&t.extend)for(let b=0;b<t.extend.length;b++){const w=t.extend[b],M=o(w.name,w.name,w.key||"");g.appendChild(M),M.onclick=$=>{w.onclick($)}}const y=document.createElement("div");y.className="context-menu",y.appendChild(g),y.hidden=!0,e.container.append(y);let x=!0;e.container.oncontextmenu=function(b){if(b.preventDefault(),!e.editable||e.dragMoveHelper.moved)return;const w=b.target;if(Se(w)){w.parentElement.tagName==="ME-ROOT"?x=!0:x=!1,x?(l.className="disabled",h.className="disabled",v.className="disabled",c.className="disabled",a.className="disabled",d.className="disabled"):(l.className="",h.className="",v.className="",c.className="",a.className="",d.className=""),w.classList.contains("selected")||e.selectNode(w),y.hidden=!1,g.style.top="",g.style.bottom="",g.style.left="",g.style.right="";const M=g.getBoundingClientRect(),$=g.offsetHeight,D=g.offsetWidth,V=b.clientY-M.top,Q=b.clientX-M.left;$+V>window.innerHeight?(g.style.top="",g.style.bottom="0px"):(g.style.bottom="",g.style.top=V+15+"px"),D+Q>window.innerWidth?(g.style.left="",g.style.right="0px"):(g.style.right="",g.style.left=Q+10+"px")}},y.onclick=b=>{b.target===y&&(y.hidden=!0)},r.onclick=()=>{e.addChild(),y.hidden=!0},c.onclick=()=>{e.insertParent(),y.hidden=!0},a.onclick=()=>{x||(e.insertSibling("after"),y.hidden=!0)},d.onclick=()=>{x||(e.removeNodes(e.currentNodes||[]),y.hidden=!0)},l.onclick=()=>{x||(e.focusNode(e.currentNode),y.hidden=!0)},u.onclick=()=>{e.cancelFocus(),y.hidden=!0},h.onclick=()=>{x||(e.moveUpNode(),y.hidden=!0)},v.onclick=()=>{x||(e.moveDownNode(),y.hidden=!0)};const E=b=>{y.hidden=!0;const w=e.currentNode,M=n(i.clickTips);e.container.appendChild(M),e.map.addEventListener("click",$=>{$.preventDefault(),M.remove();const D=$.target;(D.parentElement.tagName==="ME-PARENT"||D.parentElement.tagName==="ME-ROOT")&&e.createArrow(w,D,b)},{once:!0})};return f.onclick=()=>E(),p.onclick=()=>E({bidirectional:!0}),m.onclick=()=>{y.hidden=!0,e.createSummary(),e.unselectNodes(e.currentNodes)},()=>{r.onclick=null,c.onclick=null,a.onclick=null,d.onclick=null,l.onclick=null,u.onclick=null,h.onclick=null,v.onclick=null,f.onclick=null,m.onclick=null,y.onclick=null,e.container.oncontextmenu=null}}const vt=e=>{const t=e.map.querySelectorAll(".lhs>me-wrapper>me-parent>me-tpc");e.selectNode(t[Math.ceil(t.length/2)-1])},yt=e=>{const t=e.map.querySelectorAll(".rhs>me-wrapper>me-parent>me-tpc");e.selectNode(t[Math.ceil(t.length/2)-1])},bt=e=>{e.selectNode(e.map.querySelector("me-root>me-tpc"))},xt=function(e,t){const n=t.parentElement.parentElement.parentElement.previousSibling;if(n){const o=n.firstChild;e.selectNode(o)}},wt=function(e,t){const n=t.parentElement.nextSibling;if(n&&n.firstChild){const o=n.firstChild.firstChild.firstChild;e.selectNode(o)}},De=function(e,t){var i,r;const n=e.currentNode||((i=e.currentNodes)==null?void 0:i[0]);if(!n)return;const o=n.nodeObj,s=n.offsetParent.offsetParent.parentElement;o.parent?s.className===t?wt(e,n):(r=o.parent)!=null&&r.parent?xt(e,n):bt(e):t===k.LHS?vt(e):yt(e)},Oe=function(e,t){const n=e.currentNode;if(!n||!n.nodeObj.parent)return;const s=t+"Sibling",i=n.parentElement.parentElement[s];i?e.selectNode(i.firstChild.firstChild):e.selectNode(n)},ce=function(e,t,n){switch(t){case"in":if(e.scaleVal>1.6)return;e.scale(e.scaleVal+.2,n);break;case"out":if(e.scaleVal<.6)return;e.scale(e.scaleVal-.2,n)}};function Et(e,t){t=t===!0?{}:t;const n=()=>{e.currentArrow?e.removeArrow():e.currentSummary?e.removeSummary(e.currentSummary.summaryObj.id):e.currentNodes&&e.removeNodes(e.currentNodes)},o={Enter:s=>{s.shiftKey?e.insertSibling("before"):s.ctrlKey?e.insertParent():e.insertSibling("after")},Tab:()=>{e.addChild()},F1:()=>{e.toCenter()},F2:()=>{e.beginEdit()},ArrowUp:s=>{if(s.altKey)e.moveUpNode();else{if(s.metaKey||s.ctrlKey)return e.initSide();Oe(e,"previous")}},ArrowDown:s=>{s.altKey?e.moveDownNode():Oe(e,"next")},ArrowLeft:s=>{if(s.metaKey||s.ctrlKey)return e.initLeft();De(e,k.LHS)},ArrowRight:s=>{if(s.metaKey||s.ctrlKey)return e.initRight();De(e,k.RHS)},PageUp:()=>e.moveUpNode(),PageDown:()=>{e.moveDownNode()},c:s=>{(s.metaKey||s.ctrlKey)&&(e.waitCopy=e.currentNodes)},x:s=>{(s.metaKey||s.ctrlKey)&&(e.waitCopy=e.currentNodes,n())},v:s=>{!e.waitCopy||!e.currentNode||(s.metaKey||s.ctrlKey)&&(e.waitCopy.length===1?e.copyNode(e.waitCopy[0],e.currentNode):e.copyNodes(e.waitCopy,e.currentNode))},"=":s=>{(s.metaKey||s.ctrlKey)&&ce(e,"in")},"-":s=>{(s.metaKey||s.ctrlKey)&&ce(e,"out")},0:s=>{(s.metaKey||s.ctrlKey)&&e.scale(1)},Delete:n,Backspace:n,...t};e.map.onkeydown=s=>{if(s.preventDefault(),!e.editable||s.target!==s.currentTarget)return;const i=o[s.key];i&&i(s)},e.map.onwheel=s=>{s.stopPropagation(),s.preventDefault(),s.ctrlKey||s.metaKey?s.deltaY<0?ce(e,"in",e.dragMoveHelper):e.scaleVal-.2>0&&ce(e,"out",e.dragMoveHelper):s.shiftKey?e.move(-s.deltaY,0):e.move(0,-s.deltaY)}}const ve=document,Ct=function(e,t){if(!t)return ye(e),e;let n=e.querySelector(".insert-preview");const o=`insert-preview ${t} show`;return n||(n=ve.createElement("div"),e.appendChild(n)),n.className=o,e},ye=function(e){if(!e)return;const t=e.querySelectorAll(".insert-preview");for(const n of t||[])n.remove()},Pe=function(e,t){for(const n of t){const o=n.parentElement.parentElement.contains(e);if(!(e&&e.tagName==="ME-TPC"&&e!==n&&!o&&e.nodeObj.parent))return!1}return!0},Nt=function(e){const t=document.createElement("div");return t.className="mind-elixir-ghost",e.map.appendChild(t),t};class St{constructor(t){ee(this,"mind");ee(this,"isMoving",!1);ee(this,"interval",null);ee(this,"speed",20);this.mind=t}move(t,n){this.isMoving||(this.isMoving=!0,this.interval=setInterval(()=>{this.mind.move(t*this.speed*this.mind.scaleVal,n*this.speed*this.mind.scaleVal)},100))}stop(){this.isMoving=!1,clearInterval(this.interval)}}function _t(e){let t=null,n=null;const o=Nt(e),s=new St(e),i=d=>{e.selection.cancel();const l=d.target;if((l==null?void 0:l.tagName)!=="ME-TPC"){d.preventDefault();return}let u=e.currentNodes;u!=null&&u.includes(l)||(e.selectNode(l),u=e.currentNodes),e.dragged=u,u.length>1?o.innerHTML=u.length+"":o.innerHTML=l.innerHTML;for(const h of u)h.parentElement.parentElement.style.opacity="0.5";d.dataTransfer.setDragImage(o,0,0),d.dataTransfer.dropEffect="move",e.dragMoveHelper.clear()},r=d=>{const{dragged:l}=e;if(!l)return;s.stop();for(const h of l)h.parentElement.parentElement.style.opacity="1";const u=d.target;u.style.opacity="",n&&(ye(n),t==="before"?e.moveNodeBefore(l,n):t==="after"?e.moveNodeAfter(l,n):t==="in"&&e.moveNodeIn(l,n),e.dragged=null)},c=d=>{d.preventDefault();const l=12*e.scaleVal,{dragged:u}=e;if(!u)return;const h=e.container.getBoundingClientRect();d.clientX<h.x+50?s.move(1,0):d.clientX>h.x+h.width-50?s.move(-1,0):d.clientY<h.y+50?s.move(0,1):d.clientY>h.y+h.height-50?s.move(0,-1):s.stop(),ye(n);const v=ve.elementFromPoint(d.clientX,d.clientY-l);if(Pe(v,u)){n=v;const f=v.getBoundingClientRect(),p=f.y;d.clientY>p+f.height?t="after":t="in"}else{const f=ve.elementFromPoint(d.clientX,d.clientY+l),p=f.getBoundingClientRect();if(Pe(f,u)){n=f;const m=p.y;d.clientY<m?t="before":t="in"}else t=n=null}n&&Ct(n,t)};return pe([{dom:e.map,evt:"dragstart",func:i},{dom:e.map,evt:"dragend",func:r},{dom:e.map,evt:"dragover",func:c}])}const Mt=function(e){return["createSummary","removeSummary","finishEditSummary"].includes(e.name)?{type:"summary",value:e.obj.id}:["createArrow","removeArrow","finishEditArrowLabel"].includes(e.name)?{type:"arrow",value:e.obj.id}:["removeNodes","copyNodes","moveNodeBefore","moveNodeAfter","moveNodeIn"].includes(e.name)?{type:"nodes",value:e.objs.map(t=>t.id)}:{type:"node",value:e.obj.id}};function Tt(e){let t=[],n=-1,o=e.getData();e.undo=function(){if(n>-1){const r=t[n];o=r.prev,e.refresh(r.prev);try{r.currentObject.type==="node"?e.selectNode(S(r.currentObject.value)):r.currentObject.type==="nodes"&&e.selectNodes(r.currentObject.value.map(c=>S(c)))}catch{}finally{n--}}},e.redo=function(){if(n<t.length-1){n++;const r=t[n];o=r.next,e.refresh(r.next),r.currentObject.type==="node"?e.selectNode(S(r.currentObject.value)):r.currentObject.type==="nodes"&&(e.unselectNodes(this.currentNodes),e.selectNodes(r.currentObject.value.map(c=>S(c))))}};const s=function(r){if(r.name==="beginEdit")return;t=t.slice(0,n+1);const c=e.getData();t.push({prev:o,currentObject:Mt(r),next:c}),o=c,n=t.length-1},i=function(r){(r.metaKey||r.ctrlKey)&&(r.shiftKey&&r.key==="Z"||r.key==="y")?e.redo():(r.metaKey||r.ctrlKey)&&r.key==="z"&&e.undo()};return e.bus.addListener("operation",s),e.map.addEventListener("keydown",i),()=>{e.bus.removeListener("operation",s),e.map.removeEventListener("keydown",i)}}const qn="",F=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
15
+ `,Me(o),e.scrollIntoView(o),o.addEventListener("keydown",r=>{r.stopPropagation();const c=r.key;if(c==="Enter"||c==="Tab"){if(r.shiftKey)return;r.preventDefault(),o.blur(),e.map.focus()}}),o.addEventListener("blur",()=>{var c;if(!o)return;const r=((c=o.textContent)==null?void 0:c.trim())||"";r===""?n.label=s:n.label=r,o.remove(),r!==s&&(t.innerHTML=n.label,e.linkDiv(),"parent"in n?e.bus.fire("operation",{name:"finishEditSummary",obj:n}):e.bus.fire("operation",{name:"finishEditArrowLabel",obj:n}))})},mt=function(e){const t=this.map.querySelector("me-root"),n=t.offsetTop,o=t.offsetLeft,s=t.offsetWidth,i=t.offsetHeight,c=this.nodes.offsetWidth;this.nodes.style.top=`${1e4-this.nodes.offsetHeight/2}px`,this.alignment==="root"?this.nodes.style.left=`${1e4-o-s/2}px`:this.nodes.style.left=`${1e4-c/2}px`;const a=this.map.querySelectorAll("me-main > me-wrapper");this.lines.innerHTML="";for(let d=0;d<a.length;d++){const l=a[d],u=l.querySelector("me-tpc"),{offsetLeft:h,offsetTop:v}=P(this.nodes,u),f=u.offsetWidth,p=u.offsetHeight,m=l.parentNode.className,g=this.generateMainBranch({pT:n,pL:o,pW:s,pH:i,cT:v,cL:h,cW:f,cH:p,direction:m,containerHeight:this.nodes.offsetHeight}),y=this.theme.palette,x=u.nodeObj.branchColor||y[d%y.length];u.style.borderColor=x,this.lines.appendChild(Te(g,x,"3"));const E=l.children[0].children[1];if(E&&(E.style.top=(E.parentNode.offsetHeight-E.offsetHeight)/2+"px",m===k.LHS?E.style.left="-10px":E.style.right="-10px"),e&&e!==l)continue;const b=G("subLines"),w=l.lastChild;w.tagName==="svg"&&w.remove(),l.appendChild(b),Ae(this,b,x,l,m,!0)}this.renderArrow(),this.renderSummary(),this.bus.fire("linkDiv")},Ae=function(e,t,n,o,s,i){const r=o.firstChild,c=o.children[1].children;if(c.length===0)return;const a=r.offsetTop,d=r.offsetLeft,l=r.offsetWidth,u=r.offsetHeight;for(let h=0;h<c.length;h++){const v=c[h],f=v.firstChild,p=f.offsetTop,m=f.offsetLeft,g=f.offsetWidth,y=f.offsetHeight,x=f.firstChild.nodeObj.branchColor||n,E=e.generateSubBranch({pT:a,pL:d,pW:l,pH:u,cT:p,cL:m,cW:g,cH:y,direction:s,isFirst:i});t.appendChild(Te(E,x,"2"));const b=f.children[1];if(b){if(b.style.bottom=-(b.offsetHeight/2)+"px",s===k.LHS?b.style.left="10px":s===k.RHS&&(b.style.right="10px"),!b.expanded)continue}else continue;Ae(e,t,x,v,s)}},$e={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",summary:"摘要"},je={cn:$e,zh_CN:$e,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",summary:"摘要"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",clickTips:"Please click the target node",summary:"Summary"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",clickTips:"Пожалуйста, нажмите на целевой узел",summary:"Описание"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",summary:"概要"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",clickTips:"Favor clicar no item alvo",summary:"Resumo"},it:{addChild:"Aggiungi figlio",addParent:"Aggiungi genitore",addSibling:"Aggiungi fratello",removeNode:"Rimuovi nodo",focus:"Modalità Focus",cancelFocus:"Annulla Modalità Focus",moveUp:"Sposta su",moveDown:"Sposta giù",link:"Collega",clickTips:"Si prega di fare clic sul nodo di destinazione",summary:"Unisci nodi"},es:{addChild:"Agregar hijo",addParent:"Agregar padre",addSibling:"Agregar hermano",removeNode:"Eliminar nodo",focus:"Modo Enfoque",cancelFocus:"Cancelar Modo Enfoque",moveUp:"Mover hacia arriba",moveDown:"Mover hacia abajo",link:"Enlace",clickTips:"Por favor haga clic en el nodo de destino",summary:"Resumen"},fr:{addChild:"Ajout enfant",addParent:"Ajout parent",addSibling:"Ajout voisin",removeNode:"Supprimer",focus:"Cibler",cancelFocus:"Retour",moveUp:"Monter",moveDown:"Descendre",link:"Lier",clickTips:"Cliquer sur le noeud cible",summary:"Annoter"},ko:{addChild:"자식 추가",addParent:"부모 추가",addSibling:"형제 추가",removeNode:"노드 삭제",focus:"포커스 모드",cancelFocus:"포커스 모드 취소",moveUp:"위로 이동",moveDown:"아래로 이동",link:"연결",clickTips:"대상 노드를 클릭하십시오",summary:"요약"}},Fn="";function gt(e,t){t=t===!0?{focus:!0,link:!0}:t;const n=b=>{const w=document.createElement("div");return w.innerText=b,w.className="tips",w},o=(b,w,M)=>{const $=document.createElement("li");return $.id=b,$.innerHTML=`<span>${ne(w)}</span><span ${M?'class="key"':""}>${ne(M)}</span>`,$},s=je[e.locale]?e.locale:"en",i=je[s],r=o("cm-add_child",i.addChild,"Tab"),c=o("cm-add_parent",i.addParent,"Ctrl + Enter"),a=o("cm-add_sibling",i.addSibling,"Enter"),d=o("cm-remove_child",i.removeNode,"Delete"),l=o("cm-fucus",i.focus,""),u=o("cm-unfucus",i.cancelFocus,""),h=o("cm-up",i.moveUp,"PgUp"),v=o("cm-down",i.moveDown,"Pgdn"),f=o("cm-link",i.link,""),p=o("cm-link-bidirectional","Bidirectional Link",""),m=o("cm-summary",i.summary,""),g=document.createElement("ul");if(g.className="menu-list",g.appendChild(r),g.appendChild(c),g.appendChild(a),g.appendChild(d),t.focus&&(g.appendChild(l),g.appendChild(u)),g.appendChild(h),g.appendChild(v),g.appendChild(m),t.link&&(g.appendChild(f),g.appendChild(p)),t&&t.extend)for(let b=0;b<t.extend.length;b++){const w=t.extend[b],M=o(w.name,w.name,w.key||"");g.appendChild(M),M.onclick=$=>{w.onclick($)}}const y=document.createElement("div");y.className="context-menu",y.appendChild(g),y.hidden=!0,e.container.append(y);let x=!0;e.container.oncontextmenu=function(b){if(b.preventDefault(),!e.editable||e.dragMoveHelper.moved)return;const w=b.target;if(Se(w)){w.parentElement.tagName==="ME-ROOT"?x=!0:x=!1,x?(l.className="disabled",h.className="disabled",v.className="disabled",c.className="disabled",a.className="disabled",d.className="disabled"):(l.className="",h.className="",v.className="",c.className="",a.className="",d.className=""),w.classList.contains("selected")||e.selectNode(w),y.hidden=!1,g.style.top="",g.style.bottom="",g.style.left="",g.style.right="";const M=g.getBoundingClientRect(),$=g.offsetHeight,D=g.offsetWidth,V=b.clientY-M.top,Q=b.clientX-M.left;$+V>window.innerHeight?(g.style.top="",g.style.bottom="0px"):(g.style.bottom="",g.style.top=V+15+"px"),D+Q>window.innerWidth?(g.style.left="",g.style.right="0px"):(g.style.right="",g.style.left=Q+10+"px")}},y.onclick=b=>{b.target===y&&(y.hidden=!0)},r.onclick=()=>{e.addChild(),y.hidden=!0},c.onclick=()=>{e.insertParent(),y.hidden=!0},a.onclick=()=>{x||(e.insertSibling("after"),y.hidden=!0)},d.onclick=()=>{x||(e.removeNodes(e.currentNodes||[]),y.hidden=!0)},l.onclick=()=>{x||(e.focusNode(e.currentNode),y.hidden=!0)},u.onclick=()=>{e.cancelFocus(),y.hidden=!0},h.onclick=()=>{x||(e.moveUpNode(),y.hidden=!0)},v.onclick=()=>{x||(e.moveDownNode(),y.hidden=!0)};const E=b=>{y.hidden=!0;const w=e.currentNode,M=n(i.clickTips);e.container.appendChild(M),e.map.addEventListener("click",$=>{$.preventDefault(),M.remove();const D=$.target;(D.parentElement.tagName==="ME-PARENT"||D.parentElement.tagName==="ME-ROOT")&&e.createArrow(w,D,b)},{once:!0})};return f.onclick=()=>E(),p.onclick=()=>E({bidirectional:!0}),m.onclick=()=>{y.hidden=!0,e.createSummary(),e.unselectNodes(e.currentNodes)},()=>{r.onclick=null,c.onclick=null,a.onclick=null,d.onclick=null,l.onclick=null,u.onclick=null,h.onclick=null,v.onclick=null,f.onclick=null,m.onclick=null,y.onclick=null,e.container.oncontextmenu=null}}const vt=e=>{const t=e.map.querySelectorAll(".lhs>me-wrapper>me-parent>me-tpc");e.selectNode(t[Math.ceil(t.length/2)-1])},yt=e=>{const t=e.map.querySelectorAll(".rhs>me-wrapper>me-parent>me-tpc");e.selectNode(t[Math.ceil(t.length/2)-1])},bt=e=>{e.selectNode(e.map.querySelector("me-root>me-tpc"))},xt=function(e,t){const n=t.parentElement.parentElement.parentElement.previousSibling;if(n){const o=n.firstChild;e.selectNode(o)}},wt=function(e,t){const n=t.parentElement.nextSibling;if(n&&n.firstChild){const o=n.firstChild.firstChild.firstChild;e.selectNode(o)}},De=function(e,t){var i,r;const n=e.currentNode||((i=e.currentNodes)==null?void 0:i[0]);if(!n)return;const o=n.nodeObj,s=n.offsetParent.offsetParent.parentElement;o.parent?s.className===t?wt(e,n):(r=o.parent)!=null&&r.parent?xt(e,n):bt(e):t===k.LHS?vt(e):yt(e)},Oe=function(e,t){const n=e.currentNode;if(!n||!n.nodeObj.parent)return;const s=t+"Sibling",i=n.parentElement.parentElement[s];i?e.selectNode(i.firstChild.firstChild):e.selectNode(n)},ce=function(e,t,n){switch(t){case"in":if(e.scaleVal>1.6)return;e.scale(e.scaleVal+.2,n);break;case"out":if(e.scaleVal<.6)return;e.scale(e.scaleVal-.2,n)}};function Et(e,t){t=t===!0?{}:t;const n=()=>{e.currentArrow?e.removeArrow():e.currentSummary?e.removeSummary(e.currentSummary.summaryObj.id):e.currentNodes&&e.removeNodes(e.currentNodes)},o={Enter:s=>{s.shiftKey?e.insertSibling("before"):s.ctrlKey?e.insertParent():e.insertSibling("after")},Tab:()=>{e.addChild()},F1:()=>{e.toCenter()},F2:()=>{e.beginEdit()},ArrowUp:s=>{if(s.altKey)e.moveUpNode();else{if(s.metaKey||s.ctrlKey)return e.initSide();Oe(e,"previous")}},ArrowDown:s=>{s.altKey?e.moveDownNode():Oe(e,"next")},ArrowLeft:s=>{if(s.metaKey||s.ctrlKey)return e.initLeft();De(e,k.LHS)},ArrowRight:s=>{if(s.metaKey||s.ctrlKey)return e.initRight();De(e,k.RHS)},PageUp:()=>e.moveUpNode(),PageDown:()=>{e.moveDownNode()},c:s=>{(s.metaKey||s.ctrlKey)&&(e.waitCopy=e.currentNodes)},x:s=>{(s.metaKey||s.ctrlKey)&&(e.waitCopy=e.currentNodes,n())},v:s=>{!e.waitCopy||!e.currentNode||(s.metaKey||s.ctrlKey)&&(e.waitCopy.length===1?e.copyNode(e.waitCopy[0],e.currentNode):e.copyNodes(e.waitCopy,e.currentNode))},"=":s=>{(s.metaKey||s.ctrlKey)&&ce(e,"in")},"-":s=>{(s.metaKey||s.ctrlKey)&&ce(e,"out")},0:s=>{(s.metaKey||s.ctrlKey)&&e.scale(1)},Delete:n,Backspace:n,...t};e.map.onkeydown=s=>{if(s.preventDefault(),!e.editable||s.target!==s.currentTarget)return;const i=o[s.key];i&&i(s)},e.map.onwheel=s=>{s.stopPropagation(),s.preventDefault(),s.ctrlKey||s.metaKey?s.deltaY<0?ce(e,"in",e.dragMoveHelper):e.scaleVal-.2>0&&ce(e,"out",e.dragMoveHelper):s.shiftKey?e.move(-s.deltaY,0):(e.map.style.transition="none",e.move(-s.deltaX,-s.deltaY),e.map.style.transition="transform 0.3s")}}const ve=document,Ct=function(e,t){if(!t)return ye(e),e;let n=e.querySelector(".insert-preview");const o=`insert-preview ${t} show`;return n||(n=ve.createElement("div"),e.appendChild(n)),n.className=o,e},ye=function(e){if(!e)return;const t=e.querySelectorAll(".insert-preview");for(const n of t||[])n.remove()},Pe=function(e,t){for(const n of t){const o=n.parentElement.parentElement.contains(e);if(!(e&&e.tagName==="ME-TPC"&&e!==n&&!o&&e.nodeObj.parent))return!1}return!0},Nt=function(e){const t=document.createElement("div");return t.className="mind-elixir-ghost",e.map.appendChild(t),t};class St{constructor(t){ee(this,"mind");ee(this,"isMoving",!1);ee(this,"interval",null);ee(this,"speed",20);this.mind=t}move(t,n){this.isMoving||(this.isMoving=!0,this.interval=setInterval(()=>{this.mind.move(t*this.speed*this.mind.scaleVal,n*this.speed*this.mind.scaleVal)},100))}stop(){this.isMoving=!1,clearInterval(this.interval)}}function _t(e){let t=null,n=null;const o=Nt(e),s=new St(e),i=d=>{e.selection.cancel();const l=d.target;if((l==null?void 0:l.tagName)!=="ME-TPC"){d.preventDefault();return}let u=e.currentNodes;u!=null&&u.includes(l)||(e.selectNode(l),u=e.currentNodes),e.dragged=u,u.length>1?o.innerHTML=u.length+"":o.innerHTML=l.innerHTML;for(const h of u)h.parentElement.parentElement.style.opacity="0.5";d.dataTransfer.setDragImage(o,0,0),d.dataTransfer.dropEffect="move",e.dragMoveHelper.clear()},r=d=>{const{dragged:l}=e;if(!l)return;s.stop();for(const h of l)h.parentElement.parentElement.style.opacity="1";const u=d.target;u.style.opacity="",n&&(ye(n),t==="before"?e.moveNodeBefore(l,n):t==="after"?e.moveNodeAfter(l,n):t==="in"&&e.moveNodeIn(l,n),e.dragged=null)},c=d=>{d.preventDefault();const l=12*e.scaleVal,{dragged:u}=e;if(!u)return;const h=e.container.getBoundingClientRect();d.clientX<h.x+50?s.move(1,0):d.clientX>h.x+h.width-50?s.move(-1,0):d.clientY<h.y+50?s.move(0,1):d.clientY>h.y+h.height-50?s.move(0,-1):s.stop(),ye(n);const v=ve.elementFromPoint(d.clientX,d.clientY-l);if(Pe(v,u)){n=v;const f=v.getBoundingClientRect(),p=f.y;d.clientY>p+f.height?t="after":t="in"}else{const f=ve.elementFromPoint(d.clientX,d.clientY+l),p=f.getBoundingClientRect();if(Pe(f,u)){n=f;const m=p.y;d.clientY<m?t="before":t="in"}else t=n=null}n&&Ct(n,t)};return pe([{dom:e.map,evt:"dragstart",func:i},{dom:e.map,evt:"dragend",func:r},{dom:e.map,evt:"dragover",func:c}])}const Mt=function(e){return["createSummary","removeSummary","finishEditSummary"].includes(e.name)?{type:"summary",value:e.obj.id}:["createArrow","removeArrow","finishEditArrowLabel"].includes(e.name)?{type:"arrow",value:e.obj.id}:["removeNodes","copyNodes","moveNodeBefore","moveNodeAfter","moveNodeIn"].includes(e.name)?{type:"nodes",value:e.objs.map(t=>t.id)}:{type:"node",value:e.obj.id}};function Tt(e){let t=[],n=-1,o=e.getData();e.undo=function(){if(n>-1){const r=t[n];o=r.prev,e.refresh(r.prev);try{r.currentObject.type==="node"?e.selectNode(S(r.currentObject.value)):r.currentObject.type==="nodes"&&e.selectNodes(r.currentObject.value.map(c=>S(c)))}catch{}finally{n--}}},e.redo=function(){if(n<t.length-1){n++;const r=t[n];o=r.next,e.refresh(r.next),r.currentObject.type==="node"?e.selectNode(S(r.currentObject.value)):r.currentObject.type==="nodes"&&(e.unselectNodes(this.currentNodes),e.selectNodes(r.currentObject.value.map(c=>S(c))))}};const s=function(r){if(r.name==="beginEdit")return;t=t.slice(0,n+1);const c=e.getData();t.push({prev:o,currentObject:Mt(r),next:c}),o=c,n=t.length-1},i=function(r){(r.metaKey||r.ctrlKey)&&(r.shiftKey&&r.key==="Z"||r.key==="y")?e.redo():(r.metaKey||r.ctrlKey)&&r.key==="z"&&e.undo()};return e.bus.addListener("operation",s),e.map.addEventListener("keydown",i),()=>{e.bus.removeListener("operation",s),e.map.removeEventListener("keydown",i)}}const qn="",F=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
16
16
  <use xlink:href="#icon-${t}"></use>
17
17
  </svg>`,n};function kt(e){const t=document.createElement("div"),n=F("fullscreen","full"),o=F("toCenter","living"),s=F("zoomout","move"),i=F("zoomin","add"),r=document.createElement("span");return r.innerText="100%",t.appendChild(n),t.appendChild(o),t.appendChild(s),t.appendChild(i),t.className="mind-elixir-toolbar rb",n.onclick=()=>{e.el.requestFullscreen()},o.onclick=()=>{e.toCenter()},s.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-.2)},i.onclick=()=>{e.scaleVal>1.6||e.scale(e.scaleVal+.2)},t}function Lt(e){const t=document.createElement("div"),n=F("tbltl","left"),o=F("tbltr","right"),s=F("tblts","side");return t.appendChild(n),t.appendChild(o),t.appendChild(s),t.className="mind-elixir-toolbar lt",n.onclick=()=>{e.initLeft()},o.onclick=()=>{e.initRight()},s.onclick=()=>{e.initSide()},t}function At(e){e.container.append(kt(e)),e.container.append(Lt(e))}/*! @viselect/vanilla v3.5.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */var $t=Object.defineProperty,jt=(e,t,n)=>t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t,n)=>(jt(e,typeof t!="symbol"?t+"":t,n),n);class Dt{constructor(){N(this,"_listeners",new Map),N(this,"on",this.addEventListener),N(this,"off",this.removeEventListener),N(this,"emit",this.dispatchEvent)}addEventListener(t,n){const o=this._listeners.get(t)??new Set;return this._listeners.set(t,o),o.add(n),this}removeEventListener(t,n){var o;return(o=this._listeners.get(t))==null||o.delete(n),this}dispatchEvent(t,...n){let o=!0;for(const s of this._listeners.get(t)??[])o=s(...n)!==!1&&o;return o}unbindAllListeners(){this._listeners.clear()}}const He=(e,t="px")=>typeof e=="number"?e+t:e;function H({style:e},t,n){if(typeof t=="object")for(const[o,s]of Object.entries(t))s!==void 0&&(e[o]=He(s));else n!==void 0&&(e[t]=He(n))}const Be=e=>(t,n,o,s={})=>{t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);for(const i of t)if(i)for(const r of n)i[e](r,o,{capture:!1,...s});return[t,n,o,s]},Y=Be("addEventListener"),B=Be("removeEventListener"),le=e=>{var t;const{clientX:n,clientY:o,target:s}=((t=e.touches)==null?void 0:t[0])??e;return{x:n,y:o,target:s}};function Re(e,t,n="touch"){switch(n){case"center":{const o=t.left+t.width/2,s=t.top+t.height/2;return o>=e.left&&o<=e.right&&s>=e.top&&s<=e.bottom}case"cover":return t.left>=e.left&&t.top>=e.top&&t.right<=e.right&&t.bottom<=e.bottom;case"touch":return e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}}function W(e,t=document){const n=Array.isArray(e)?e:[e];let o=[];for(let s=0,i=n.length;s<i;s++){const r=n[s];typeof r=="string"?o=o.concat(Array.from(t.querySelectorAll(r))):r instanceof Element&&o.push(r)}return o}const Ot=()=>matchMedia("(hover: none), (pointer: coarse)").matches,Pt=()=>"safari"in window,Ht=e=>{let t,n=-1,o=!1;return{next(...s){t=s,o||(o=!0,n=requestAnimationFrame(()=>{e(...t),o=!1}))},cancel(){cancelAnimationFrame(n),o=!1}}};function Bt(e,t){for(const n of t){if(typeof n=="number")return e.button===n;if(typeof n=="object"){const o=n.button===e.button,s=n.modifiers.every(i=>{switch(i){case"alt":return e.altKey;case"ctrl":return e.ctrlKey||e.metaKey;case"shift":return e.shiftKey}});return o&&s}}return!1}const{abs:q,max:ze,min:Fe,ceil:qe}=Math;class Ve extends Dt{constructor(t){var n,o,s,i,r;super(),N(this,"_options"),N(this,"_selection",{stored:[],selected:[],touched:[],changed:{added:[],removed:[]}}),N(this,"_area"),N(this,"_clippingElement"),N(this,"_targetElement"),N(this,"_targetRect"),N(this,"_selectables",[]),N(this,"_latestElement"),N(this,"_areaRect",new DOMRect),N(this,"_areaLocation",{y1:0,x2:0,y2:0,x1:0}),N(this,"_singleClick",!0),N(this,"_frame"),N(this,"_scrollAvailable",!0),N(this,"_scrollingActive",!1),N(this,"_scrollSpeed",{x:0,y:0}),N(this,"_scrollDelta",{x:0,y:0}),N(this,"disable",this._bindStartEvents.bind(this,!1)),N(this,"enable",this._bindStartEvents),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...t,behaviour:{overlap:"invert",intersect:"touch",triggers:[0],...t.behaviour,startThreshold:(n=t.behaviour)!=null&&n.startThreshold?typeof t.behaviour.startThreshold=="number"?t.behaviour.startThreshold:{x:10,y:10,...t.behaviour.startThreshold}:{x:10,y:10},scrolling:{speedDivider:10,manualSpeed:750,...(o=t.behaviour)==null?void 0:o.scrolling,startScrollMargins:{x:0,y:0,...(i=(s=t.behaviour)==null?void 0:s.scrolling)==null?void 0:i.startScrollMargins}}},features:{range:!0,touch:!0,...t.features,singleTap:{allow:!0,intersect:"native",...(r=t.features)==null?void 0:r.singleTap}}};for(const l of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))typeof this[l]=="function"&&(this[l]=this[l].bind(this));const{document:c,selectionAreaClass:a,selectionContainerClass:d}=this._options;this._area=c.createElement("div"),this._clippingElement=c.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(a),d&&this._clippingElement.classList.add(d),H(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),H(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=Ht(l=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",l),this._redrawSelectionArea()}),this.enable()}_bindStartEvents(t=!0){const{document:n,features:o}=this._options,s=t?Y:B;s(n,"mousedown",this._onTapStart),o.touch&&s(n,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(t,n=!1){const{x:o,y:s,target:i}=le(t),{_options:r}=this,{document:c}=this._options,a=i.getBoundingClientRect();if(t instanceof MouseEvent&&!Bt(t,r.behaviour.triggers))return;const d=W(r.startAreas,r.document),l=W(r.boundaries,r.document);this._targetElement=l.find(v=>Re(v.getBoundingClientRect(),a));const u=t.composedPath();if(!this._targetElement||!d.find(v=>u.includes(v))||!l.find(v=>u.includes(v))||!n&&this._emitEvent("beforestart",t)===!1)return;this._areaLocation={x1:o,y1:s,x2:0,y2:0};const h=c.scrollingElement??c.body;this._scrollDelta={x:h.scrollLeft,y:h.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),Y(c,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),Y(c,["mouseup","touchcancel","touchend"],this._onTapStop),Y(c,"scroll",this._onScroll)}_onSingleTap(t){const{singleTap:{intersect:n},range:o}=this._options.features,s=le(t);let i;if(n==="native")i=s.target;else if(n==="touch"){this.resolveSelectables();const{x:c,y:a}=s;i=this._selectables.find(d=>{const{right:l,left:u,top:h,bottom:v}=d.getBoundingClientRect();return c<l&&c>u&&a<v&&a>h})}if(!i)return;for(this.resolveSelectables();!this._selectables.includes(i);){if(!i.parentElement)return;i=i.parentElement}const{stored:r}=this._selection;if(this._emitEvent("start",t),t.shiftKey&&o&&this._latestElement){const c=this._latestElement,[a,d]=c.compareDocumentPosition(i)&4?[i,c]:[c,i],l=[...this._selectables.filter(u=>u.compareDocumentPosition(a)&4&&u.compareDocumentPosition(d)&2),a,d];this.select(l),this._latestElement=c}else r.includes(i)&&(r.length===1||t.ctrlKey||r.every(c=>this._selection.stored.includes(c)))?this.deselect(i):(this.select(i),this._latestElement=i)}_delayedTapMove(t){const{container:n,document:o,behaviour:{startThreshold:s}}=this._options,{x1:i,y1:r}=this._areaLocation,{x:c,y:a}=le(t);if(typeof s=="number"&&q(c+a-(i+r))>=s||typeof s=="object"&&q(c-i)>=s.x||q(a-r)>=s.y){if(B(o,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),this._emitEvent("beforedrag",t)===!1){B(o,["mouseup","touchcancel","touchend"],this._onTapStop);return}Y(o,["mousemove","touchmove"],this._onTapMove,{passive:!1}),H(this._area,"display","block"),W(n,o)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&(Y(this._targetElement,"wheel",this._manualScroll,{passive:!1}),this._selectables=this._selectables.filter(d=>this._targetElement.contains(d))),this._setupSelectionArea(),this._emitEvent("start",t),this._onTapMove(t)}this._handleMoveEvent(t)}_setupSelectionArea(){const{_clippingElement:t,_targetElement:n,_area:o}=this,s=this._targetRect=n.getBoundingClientRect();this._scrollAvailable?(H(t,{top:s.top,left:s.left,width:s.width,height:s.height}),H(o,{marginTop:-s.top,marginLeft:-s.left})):(H(t,{top:0,left:0,width:"100%",height:"100%"}),H(o,{marginTop:0,marginLeft:0}))}_onTapMove(t){const{x:n,y:o}=le(t),{_scrollSpeed:s,_areaLocation:i,_options:r,_frame:c}=this,{speedDivider:a}=r.behaviour.scrolling,d=this._targetElement;if(i.x2=n,i.y2=o,this._scrollAvailable&&!this._scrollingActive&&(s.y||s.x)){this._scrollingActive=!0;const l=()=>{if(!s.x&&!s.y){this._scrollingActive=!1;return}const{scrollTop:u,scrollLeft:h}=d;s.y&&(d.scrollTop+=qe(s.y/a),i.y1-=d.scrollTop-u),s.x&&(d.scrollLeft+=qe(s.x/a),i.x1-=d.scrollLeft-h),c.next(t),requestAnimationFrame(l)};requestAnimationFrame(l)}else c.next(t);this._handleMoveEvent(t)}_handleMoveEvent(t){const{features:n}=this._options;(n.touch&&Ot()||this._scrollAvailable&&Pt())&&t.preventDefault()}_onScroll(){const{_scrollDelta:t,_options:{document:n}}=this,{scrollTop:o,scrollLeft:s}=n.scrollingElement??n.body;this._areaLocation.x1+=t.x-s,this._areaLocation.y1+=t.y-o,t.x=s,t.y=o,this._setupSelectionArea(),this._frame.next(null)}_manualScroll(t){const{manualSpeed:n}=this._options.behaviour.scrolling,o=t.deltaY?t.deltaY>0?1:-1:0,s=t.deltaX?t.deltaX>0?1:-1:0;this._scrollSpeed.y+=o*n,this._scrollSpeed.x+=s*n,this._onTapMove(t),t.preventDefault()}_recalculateSelectionAreaRect(){const{_scrollSpeed:t,_areaLocation:n,_areaRect:o,_targetElement:s,_options:i}=this,{scrollTop:r,scrollHeight:c,clientHeight:a,scrollLeft:d,scrollWidth:l,clientWidth:u}=s,h=this._targetRect,{x1:v,y1:f}=n;let{x2:p,y2:m}=n;const{behaviour:{scrolling:{startScrollMargins:g}}}=i;p<h.left+g.x?(t.x=d?-q(h.left-p+g.x):0,p=p<h.left?h.left:p):p>h.right-g.x?(t.x=l-d-u?q(h.left+h.width-p-g.x):0,p=p>h.right?h.right:p):t.x=0,m<h.top+g.y?(t.y=r?-q(h.top-m+g.y):0,m=m<h.top?h.top:m):m>h.bottom-g.y?(t.y=c-r-a?q(h.top+h.height-m-g.y):0,m=m>h.bottom?h.bottom:m):t.y=0;const y=Fe(v,p),x=Fe(f,m),E=ze(v,p),b=ze(f,m);o.x=y,o.y=x,o.width=E-y,o.height=b-x}_redrawSelectionArea(){const{x:t,y:n,width:o,height:s}=this._areaRect,{style:i}=this._area;i.left=`${t}px`,i.top=`${n}px`,i.width=`${o}px`,i.height=`${s}px`}_onTapStop(t,n){var o;const{document:s,features:i}=this._options,{_singleClick:r}=this;B(s,["mousemove","touchmove"],this._delayedTapMove),B(s,["touchmove","mousemove"],this._onTapMove),B(s,["mouseup","touchcancel","touchend"],this._onTapStop),B(s,"scroll",this._onScroll),this._keepSelection(),t&&r&&i.singleTap.allow?this._onSingleTap(t):!r&&!n&&(this._updateElementSelection(),this._emitEvent("stop",t)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,B(this._targetElement,"wheel",this._manualScroll,{passive:!0}),this._clippingElement.remove(),(o=this._frame)==null||o.cancel(),H(this._area,"display","none")}_updateElementSelection(){const{_selectables:t,_options:n,_selection:o,_areaRect:s}=this,{stored:i,selected:r,touched:c}=o,{intersect:a,overlap:d}=n.behaviour,l=d==="invert",u=[],h=[],v=[];for(let p=0;p<t.length;p++){const m=t[p];if(Re(s,m.getBoundingClientRect(),a)){if(r.includes(m))i.includes(m)&&!c.includes(m)&&c.push(m);else if(l&&i.includes(m)){v.push(m);continue}else h.push(m);u.push(m)}}l&&h.push(...i.filter(p=>!r.includes(p)));const f=d==="keep";for(let p=0;p<r.length;p++){const m=r[p];!u.includes(m)&&!(f&&i.includes(m))&&v.push(m)}o.selected=u,o.changed={added:h,removed:v},this._latestElement=void 0}_emitEvent(t,n){return this.emit(t,{event:n,store:this._selection,selection:this})}_keepSelection(){const{_options:t,_selection:n}=this,{selected:o,changed:s,touched:i,stored:r}=n,c=o.filter(a=>!r.includes(a));switch(t.behaviour.overlap){case"drop":{n.stored=[...c,...r.filter(a=>!i.includes(a))];break}case"invert":{n.stored=[...c,...r.filter(a=>!s.removed.includes(a))];break}case"keep":{n.stored=[...r,...o.filter(a=>!r.includes(a))];break}}}trigger(t,n=!0){this._onTapStart(t,n)}resolveSelectables(){this._selectables=W(this._options.selectables,this._options.document)}clearSelection(t=!0,n=!1){const{selected:o,stored:s,changed:i}=this._selection;i.added=[],i.removed.push(...o,...t?s:[]),n||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection={stored:t?[]:s,selected:[],touched:[],changed:{added:[],removed:[]}}}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}cancel(t=!1){this._onTapStop(null,!t)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(t,n=!1){const{changed:o,selected:s,stored:i}=this._selection,r=W(t,this._options.document).filter(c=>!s.includes(c)&&!i.includes(c));return i.push(...r),s.push(...r),o.added.push(...r),o.removed=[],this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)),r}deselect(t,n=!1){const{selected:o,stored:s,changed:i}=this._selection,r=W(t,this._options.document).filter(c=>o.includes(c)||s.includes(c));r.length&&(this._selection.stored=s.filter(c=>!r.includes(c)),this._selection.selected=o.filter(c=>!r.includes(c)),this._selection.changed.added=[],this._selection.changed.removed.push(...r.filter(c=>!i.removed.includes(c))),this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)))}}N(Ve,"version","3.5.1");function Rt(e){const t=e.mouseSelectionButton===2?[2]:[0],n=new Ve({selectables:[".map-container me-tpc"],boundaries:[e.container],container:e.selectionContainer,features:{touch:!1},behaviour:{triggers:t,scrolling:{speedDivider:10,manualSpeed:750,startScrollMargins:{x:10,y:10}}}}).on("beforestart",({event:o})=>{const s=o.target;if(s.id==="input-box"||s.className==="circle"||!e.map.contains(s))return!1;if(!o.ctrlKey&&!o.metaKey){if(s.tagName==="ME-TPC"&&s.classList.contains("selected"))return!1;e.clearSelection()}const i=n.getSelectionArea();return i.style.background="#4f90f22d",i.style.border="1px solid #4f90f2",i.parentElement&&(i.parentElement.style.zIndex="9999"),!0}).on("move",({store:{changed:{added:o,removed:s}}})=>{if(o.length>0||s.length>0,o.length>0){for(const i of o)i.className="selected";e.currentNodes=[...e.currentNodes,...o],e.bus.fire("selectNodes",o.map(i=>i.nodeObj))}if(s.length>0){for(const i of s)i.classList.remove("selected");e.currentNodes=e.currentNodes.filter(i=>!(s!=null&&s.includes(i))),e.bus.fire("unselectNodes",s.map(i=>i.nodeObj))}});e.selection=n}const zt=function(e,t=!0){this.theme=e;const n=this.theme.cssVar,o=Object.keys(n);this.container.style.cssText="";for(let s=0;s<o.length;s++){const i=o[s];this.container.style.setProperty(i,n[i])}e.cssVar["--gap"]||this.container.style.setProperty("--gap","30px"),t&&this.refresh()},X=e=>{var o;const t=(o=e.parent)==null?void 0:o.children,n=(t==null?void 0:t.indexOf(e))??0;return{siblings:t,index:n}};function Ft(e){const{siblings:t,index:n}=X(e);if(t===void 0)return;const o=t[n];n===0?(t[n]=t[t.length-1],t[t.length-1]=o):(t[n]=t[n-1],t[n-1]=o)}function qt(e){const{siblings:t,index:n}=X(e);if(t===void 0)return;const o=t[n];n===t.length-1?(t[n]=t[0],t[0]=o):(t[n]=t[n+1],t[n+1]=o)}function Ie(e){const{siblings:t,index:n}=X(e);return t===void 0?0:(t.splice(n,1),t.length)}function Vt(e,t,n){const{siblings:o,index:s}=X(n);o!==void 0&&(t==="before"?o.splice(s,0,e):o.splice(s+1,0,e))}function It(e,t){const{siblings:n,index:o}=X(e);n!==void 0&&(n[o]=t,t.children=[e])}function Ke(e,t,n){var o;if(Ie(t),(o=n.parent)!=null&&o.parent||(t.direction=n.direction),e==="in")n.children?n.children.push(t):n.children=[t];else{t.direction!==void 0&&(t.direction=n.direction);const{siblings:s,index:i}=X(n);if(s===void 0)return;e==="before"?s.splice(i,0,t):s.splice(i+1,0,t)}}const Kt=function({map:e,direction:t},n){var o,s;if(t===_)return _;if(t===T)return T;if(t===te){const i=((o=e.querySelector(".lhs"))==null?void 0:o.childElementCount)||0,r=((s=e.querySelector(".rhs"))==null?void 0:s.childElementCount)||0;return i<=r?(n.direction=_,_):(n.direction=T,T)}},Ye=function(e,t,n){var i,r;const o=n.children[0].children[0],s=t.parentElement;if(s.tagName==="ME-PARENT"){if(J(o),s.children[1])s.nextSibling.appendChild(n);else{const c=e.createChildren([n]);s.appendChild(ge(!0)),s.insertAdjacentElement("afterend",c)}e.linkDiv(n.offsetParent)}else s.tagName==="ME-ROOT"&&(Kt(e,o.nodeObj)===_?(i=e.container.querySelector(".lhs"))==null||i.appendChild(n):(r=e.container.querySelector(".rhs"))==null||r.appendChild(n),e.linkDiv())},Yt=function(e,t){const n=e.parentNode;if(t===0){const o=n.parentNode.parentNode;o.tagName!=="ME-MAIN"&&(o.previousSibling.children[1].remove(),o.remove())}n.parentNode.remove()},We={before:"beforebegin",after:"afterend"},J=function(e){const n=e.parentElement.parentElement.lastElementChild;(n==null?void 0:n.tagName)==="svg"&&(n==null||n.remove())},Wt=function(e,t){const n=e.nodeObj,o=fe(n);o.style&&t.style&&(t.style=Object.assign(o.style,t.style));const s=Object.assign(n,t);me(e,s),this.linkDiv(),this.bus.fire("operation",{name:"reshapeNode",obj:s,origin:o})},be=function(e,t,n){if(!t)return null;const o=t.nodeObj;o.expanded===!1&&(e.expandNode(t,!0),t=S(o.id));const s=n||e.generateNewObj();o.children?o.children.push(s):o.children=[s],O(e.nodeData);const{grp:i,top:r}=e.createWrapper(s);return Ye(e,t,i),{newTop:r,newNodeObj:s}},Xt=function(e,t,n){var d,l,u,h;const o=t||this.currentNode;if(!o)return;const s=o.nodeObj;if(s.parent){if(!((d=s.parent)!=null&&d.parent)&&((u=(l=s.parent)==null?void 0:l.children)==null?void 0:u.length)===1){this.addChild(S(s.parent.id),n);return}}else{this.addChild();return}const i=n||this.generateNewObj();if(!((h=s.parent)!=null&&h.parent)){const v=o.closest("me-main").className===k.LHS?_:T;i.direction=v}Vt(i,e,s),O(this.nodeData);const r=o.parentElement,{grp:c,top:a}=this.createWrapper(i);r.parentElement.insertAdjacentElement(We[e],c),this.linkDiv(c.offsetParent),n||this.editTopic(a.firstChild),this.selectNode(a.firstChild,!0),this.bus.fire("operation",{name:"insertSibling",type:e,obj:i})},Ut=function(e,t){const n=e||this.currentNode;if(!n)return;J(n);const o=n.nodeObj;if(!o.parent)return;const s=t||this.generateNewObj();It(o,s),O(this.nodeData);const i=n.parentElement.parentElement,{grp:r,top:c}=this.createWrapper(s,!0);c.appendChild(ge(!0)),i.insertAdjacentElement("afterend",r);const a=this.createChildren([i]);c.insertAdjacentElement("afterend",a),this.linkDiv(),t||this.editTopic(c.firstChild),this.selectNode(c.firstChild,!0),this.bus.fire("operation",{name:"insertParent",obj:s})},Gt=function(e,t){const n=e||this.currentNode;if(!n)return;const o=be(this,n,t);if(!o)return;const{newTop:s,newNodeObj:i}=o;this.bus.fire("operation",{name:"addChild",obj:i}),t||this.editTopic(s.firstChild),this.selectNode(s.firstChild,!0)},Jt=function(e,t){const n=fe(e.nodeObj);ue(n);const o=be(this,t,n);if(!o)return;const{newNodeObj:s}=o;this.selectNode(S(s.id)),this.bus.fire("operation",{name:"copyNode",obj:s})},Zt=function(e,t){e=ie(e);const n=[];for(let o=0;o<e.length;o++){const s=e[o],i=fe(s.nodeObj);ue(i);const r=be(this,t,i);if(!r)return;const{newNodeObj:c}=r;n.push(c)}this.unselectNodes(this.currentNodes),this.selectNodes(n.map(o=>S(o.id))),this.bus.fire("operation",{name:"copyNodes",objs:n})},Qt=function(e){const t=e||this.currentNode;if(!t)return;const n=t.nodeObj;Ft(n);const o=t.parentNode.parentNode;o.parentNode.insertBefore(o,o.previousSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveUpNode",obj:n})},en=function(e){const t=e||this.currentNode;if(!t)return;const n=t.nodeObj;qt(n);const o=t.parentNode.parentNode;o.nextSibling?o.nextSibling.insertAdjacentElement("afterend",o):o.parentNode.prepend(o),this.linkDiv(),this.bus.fire("operation",{name:"moveDownNode",obj:n})},tn=function(e){if(e.length===0)return;e=ie(e);for(const n of e){const o=n.nodeObj,s=Ie(o);Yt(n,s)}const t=e[e.length-1];this.selectNode(S(t.nodeObj.parent.id)),this.linkDiv(),this.bus.fire("operation",{name:"removeNodes",objs:e.map(n=>n.nodeObj)})},nn=function(e,t){e=ie(e);const n=t.nodeObj;n.expanded===!1&&(this.expandNode(t,!0),t=S(n.id));for(const o of e){const s=o.nodeObj;Ke("in",s,n),O(this.nodeData);const i=o.parentElement;Ye(this,t,i.parentElement)}this.linkDiv(),this.bus.fire("operation",{name:"moveNodeIn",objs:e.map(o=>o.nodeObj),toObj:n})},Xe=(e,t,n,o)=>{e=ie(e),t==="after"&&(e=e.reverse());const s=n.nodeObj,i=[];for(const r of e){const c=r.nodeObj;Ke(t,c,s),O(o.nodeData),J(r);const a=r.parentElement.parentNode;i.includes(a.parentElement)||i.push(a.parentElement),n.parentElement.parentNode.insertAdjacentElement(We[t],a)}for(const r of i)r.childElementCount===0&&r.tagName!=="ME-MAIN"&&(r.previousSibling.children[1].remove(),r.remove());o.linkDiv(),o.bus.fire("operation",{name:t==="before"?"moveNodeBefore":"moveNodeAfter",objs:e.map(r=>r.nodeObj),toObj:s})},Ue=Object.freeze(Object.defineProperty({__proto__:null,addChild:Gt,beginEdit:function(e){const t=e||this.currentNode;t&&(t.nodeObj.dangerouslySetInnerHTML||this.editTopic(t))},copyNode:Jt,copyNodes:Zt,insertParent:Ut,insertSibling:Xt,moveDownNode:en,moveNodeAfter:function(e,t){Xe(e,"after",t,this)},moveNodeBefore:function(e,t){Xe(e,"before",t,this)},moveNodeIn:nn,moveUpNode:Qt,removeNodes:tn,reshapeNode:Wt,rmSubline:J,setNodeTopic:function(e,t){e.text.textContent=t,e.nodeObj.topic=t,this.linkDiv()}},Symbol.toStringTag,{value:"Module"}));function on(e){return{nodeData:e.isFocusMode?e.nodeDataBackup:e.nodeData,arrows:e.arrows,summaries:e.summaries,direction:e.direction,theme:e.theme}}const sn=Object.freeze(Object.defineProperty({__proto__:null,cancelFocus:function(){this.isFocusMode=!1,this.tempDirection!==null&&(this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},clearSelection:function(){this.unselectNodes(this.currentNodes),this.unselectSummary(),this.unselectArrow()},disableEdit:function(){this.editable=!1},enableEdit:function(){this.editable=!0},expandNode:function(e,t){const n=e.nodeObj;typeof t=="boolean"?n.expanded=t:n.expanded!==!1?n.expanded=!1:n.expanded=!0;const o=e.parentNode,s=o.children[1];if(s.expanded=n.expanded,s.className=n.expanded?"minus":"",J(e),n.expanded){const a=this.createChildren(n.children.map(d=>this.createWrapper(d).grp));o.parentNode.appendChild(a)}else o.parentNode.children[1].remove();this.linkDiv(e.closest("me-main > me-wrapper"));const i=e.getBoundingClientRect(),r=this.container.getBoundingClientRect();(i.bottom>r.bottom||i.top<r.top||i.right>r.right||i.left<r.left)&&this.scrollIntoView(e),this.bus.fire("expandNode",n)},expandNodeAll:function(e,t){const n=e.nodeObj,o=(s,i)=>{s.expanded=i,s.children&&s.children.forEach(r=>{o(r,i)})};typeof t=="boolean"?o(n,t):n.expanded!==!1?o(n,!1):o(n,!0),this.refresh()},focusNode:function(e){e.nodeObj.parent&&(this.clearSelection(),this.tempDirection===null&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=e.nodeObj,this.initRight(),this.toCenter())},getData:function(){return JSON.parse(this.getDataString())},getDataString:function(){const e=on(this);return JSON.stringify(e,(t,n)=>{if(!(t==="parent"&&typeof n!="string"))return n})},initLeft:function(){this.direction=0,this.refresh()},initRight:function(){this.direction=1,this.refresh()},initSide:function(){this.direction=2,this.refresh()},install:function(e){e(this)},move:function(e,t){const{map:n,scaleVal:o,container:s,bus:i}=this,r=n.style.transform,{x:c,y:a}=_e(r),d=c+e,l=a+t,u=(1-o)*1e4,h=0-u,v=-2e4+s.offsetWidth+u,f=-2e4+s.offsetHeight+u,p=Math.min(h,Math.max(v,d)),m=Math.min(h,Math.max(f,l));n.style.transform=`translate(${p}px, ${m}px) scale(${o})`,i.fire("move",{dx:e,dy:t})},refresh:function(e){e&&(e=JSON.parse(JSON.stringify(e)),this.nodeData=e.nodeData,this.arrows=e.arrows||[],this.summaries=e.summaries||[]),O(this.nodeData),this.layout(),this.linkDiv()},scale:function(e,t={x:0,y:0}){const n=this.container.getBoundingClientRect(),o=n.width/2-1e4,s=n.height/2-1e4,i=this.scaleVal,r=this.map.style.transform,{x:c,y:a}=_e(r),d=c-(t.x-n.left-n.width/2),l=a-(t.y-n.top-n.height/2),u=(o-d)*(1-e/i),h=(s-l)*(1-e/i);this.map.style.transform=`translate(${c+u}px, ${a+h}px) scale(${e})`,this.scaleVal=e,this.bus.fire("scale",e)},scaleFit:function(){const e=this.nodes.offsetHeight/this.container.offsetHeight,t=this.nodes.offsetWidth/this.container.offsetWidth,n=1/Math.max(1,Math.max(e,t));this.scaleVal=n,this.map.style.transform="scale("+n+")",this.bus.fire("scale",n)},scrollIntoView:function(e){const t=this.container,n=e.getBoundingClientRect(),o=t.getBoundingClientRect();if(n.bottom>o.bottom||n.top<o.top||n.right>o.right||n.left<o.left){const i=n.left+n.width/2,r=n.top+n.height/2,c=o.left+o.width/2,a=o.top+o.height/2,d=i-c,l=r-a;this.move(-d,-l)}},selectNode:function(e,t,n){this.clearSelection(),this.scrollIntoView(e),this.selection.select(e),t&&this.bus.fire("selectNewNode",e.nodeObj)},selectNodes:function(e){this.selection.select(e)},setLocale:function(e){this.locale=e,this.refresh()},toCenter:function(){const e=this.container.getBoundingClientRect(),t=e.width/2-1e4,n=e.height/2-1e4;this.map.style.transform=`translate(${t}px, ${n}px) scale(${this.scaleVal})`},unselectNodes:function(e){this.selection.deselect(e)}},Symbol.toStringTag,{value:"Module"})),Ge={create:function(e){return{dom:e,moved:!1,mousedown:!1,handleMouseMove(t){this.mousedown&&(this.moved=!0,this.cb&&this.cb(t.movementX,t.movementY))},handleMouseDown(t){t.button===0&&(this.mousedown=!0)},handleClear(t){this.mousedown=!1},cb:null,init(t,n){this.cb=n,this.handleClear=this.handleClear.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.destroy=pe([{dom:t,evt:"mousemove",func:this.handleMouseMove},{dom:t,evt:"mouseleave",func:this.handleClear},{dom:t,evt:"mouseup",func:this.handleClear},{dom:this.dom,evt:"mousedown",func:this.handleMouseDown}])},destroy:null,clear(){this.moved=!1,this.mousedown=!1}}}};function ae(e,t,n){const{offsetLeft:o,offsetTop:s}=P(e.nodes,t),i=t.offsetWidth,r=t.offsetHeight,c=o+i/2,a=s+r/2,d=c+n.x,l=a+n.y;return{w:i,h:r,cx:c,cy:a,ctrlX:d,ctrlY:l}}function U(e){let t,n;const o=(e.cy-e.ctrlY)/(e.ctrlX-e.cx);return o>e.h/e.w||o<-e.h/e.w?e.cy-e.ctrlY<0?(t=e.cx-e.h/2/o,n=e.cy+e.h/2):(t=e.cx+e.h/2/o,n=e.cy-e.h/2):e.cx-e.ctrlX<0?(t=e.cx+e.w/2,n=e.cy-e.w*o/2):(t=e.cx-e.w/2,n=e.cy+e.w*o/2),{x:t,y:n}}const rn=function(e,t,n,o){const s=document.createElementNS("http://www.w3.org/2000/svg","text");return C(s,{"text-anchor":"middle",x:t+"",y:n+"",fill:o||"#666"}),s.dataset.type="custom-link",s.innerHTML=e,s},xe=function(e,t,n,o,s){if(!t||!n)return;performance.now();const i=ae(e,t,o.delta1),r=ae(e,n,o.delta2),{x:c,y:a}=U(i),{ctrlX:d,ctrlY:l}=i,{ctrlX:u,ctrlY:h}=r,{x:v,y:f}=U(r),p=se(u,h,v,f);if(!p)return;const m=`M ${p.x1} ${p.y1} L ${v} ${f} L ${p.x2} ${p.y2}`;let g="";if(o.bidirectional){const w=se(d,l,c,a);if(!w)return;g=`M ${w.x1} ${w.y1} L ${c} ${a} L ${w.x2} ${w.y2}`}const y=pt(`M ${c} ${a} C ${d} ${l} ${u} ${h} ${v} ${f}`,m,g),x=c/8+d*3/8+u*3/8+v/8,E=a/8+l*3/8+h*3/8+f/8,b=rn(o.label,x,E,e.theme.cssVar["--color"]);y.appendChild(b),y.label=b,y.arrowObj=o,y.dataset.linkid=o.id,e.linkSvgGroup.appendChild(y),s||(e.arrows.push(o),e.currentArrow=y,Je(e,o,i,r)),performance.now()},cn=function(e,t,n={}){const o={id:R(),label:"Custom Link",from:e.nodeObj.id,to:t.nodeObj.id,delta1:{x:e.offsetWidth/2+100,y:0},delta2:{x:t.offsetWidth/2+100,y:0},...n};xe(this,e,t,o),this.bus.fire("operation",{name:"createArrow",obj:o})},ln=function(e){const t={...e,id:R()};xe(this,S(t.from),S(t.to),t),this.bus.fire("operation",{name:"createArrow",obj:t})},an=function(e){let t;if(e?t=e:t=this.currentArrow,!t)return;we(this);const n=t.arrowObj.id;this.arrows=this.arrows.filter(o=>o.id!==n),t.remove(),this.bus.fire("operation",{name:"removeArrow",obj:{id:n}})},dn=function(e){this.currentArrow=e;const t=e.arrowObj,n=S(t.from),o=S(t.to),s=ae(this,n,t.delta1),i=ae(this,o,t.delta2);Je(this,t,s,i)},hn=function(){this.currentArrow=null,we(this)},we=function(e){var t,n;(t=e.helper1)==null||t.destroy(),(n=e.helper2)==null||n.destroy(),e.linkController.style.display="none",e.P2.style.display="none",e.P3.style.display="none"},Je=function(e,t,n,o){e.linkController.style.display="initial",e.P2.style.display="initial",e.P3.style.display="initial",e.nodes.appendChild(e.linkController),e.nodes.appendChild(e.P2),e.nodes.appendChild(e.P3);let{x:s,y:i}=U(n),{ctrlX:r,ctrlY:c}=n,{ctrlX:a,ctrlY:d}=o,{x:l,y:u}=U(o);e.P2.style.cssText=`top:${c}px;left:${r}px;`,e.P3.style.cssText=`top:${d}px;left:${a}px;`,C(e.line1,{x1:s+"",y1:i+"",x2:r+"",y2:c+""}),C(e.line2,{x1:a+"",y1:d+"",x2:l+"",y2:u+""}),e.helper1=Ge.create(e.P2),e.helper2=Ge.create(e.P3),e.helper1.init(e.map,(h,v)=>{if(!e.currentArrow)return;r=r+h/e.scaleVal,c=c+v/e.scaleVal;const f=U({...n,ctrlX:r,ctrlY:c});s=f.x,i=f.y;const p=s/8+r*3/8+a*3/8+l/8,m=i/8+c*3/8+d*3/8+u/8;if(e.P2.style.top=c+"px",e.P2.style.left=r+"px",e.currentArrow.line.setAttribute("d",`M ${s} ${i} C ${r} ${c} ${a} ${d} ${l} ${u}`),t.bidirectional){const g=se(r,c,s,i);if(!g)return;e.currentArrow.arrow2.setAttribute("d",`M ${g.x1} ${g.y1} L ${s} ${i} L ${g.x2} ${g.y2}`)}C(e.currentArrow.label,{x:p+"",y:m+""}),C(e.line1,{x1:s+"",y1:i+"",x2:r+"",y2:c+""}),t.delta1.x=r-n.cx,t.delta1.y=c-n.cy,e.bus.fire("updateArrowDelta",t)}),e.helper2.init(e.map,(h,v)=>{if(!e.currentArrow)return;a=a+h/e.scaleVal,d=d+v/e.scaleVal;const f=U({...o,ctrlX:a,ctrlY:d});l=f.x,u=f.y;const p=s/8+r*3/8+a*3/8+l/8,m=i/8+c*3/8+d*3/8+u/8,g=se(a,d,l,u);g&&(e.P3.style.top=d+"px",e.P3.style.left=a+"px",e.currentArrow.line.setAttribute("d",`M ${s} ${i} C ${r} ${c} ${a} ${d} ${l} ${u}`),e.currentArrow.arrow1.setAttribute("d",`M ${g.x1} ${g.y1} L ${l} ${u} L ${g.x2} ${g.y2}`),C(e.currentArrow.label,{x:p+"",y:m+""}),C(e.line2,{x1:a+"",y1:d+"",x2:l+"",y2:u+""}),t.delta2.x=a-o.cx,t.delta2.y=d-o.cy,e.bus.fire("updateArrowDelta",t))})};function un(){this.linkSvgGroup.innerHTML="";for(let e=0;e<this.arrows.length;e++){const t=this.arrows[e];try{xe(this,S(t.from),S(t.to),t,!0)}catch{}}this.nodes.appendChild(this.linkSvgGroup)}function fn(e){if(we(this),!e)return;const t=e.label;Le(this,t,e.arrowObj)}function pn(){this.arrows=this.arrows.filter(e=>oe(e.from,this.nodeData)&&oe(e.to,this.nodeData))}const mn=Object.freeze(Object.defineProperty({__proto__:null,createArrow:cn,createArrowFrom:ln,editArrowLabel:fn,removeArrow:an,renderArrow:un,selectArrow:dn,tidyArrow:pn,unselectArrow:hn},Symbol.toStringTag,{value:"Module"})),gn=function(e){var a,d;if(e.length===0)throw new Error("No selected node.");if(e.length===1){const l=e[0].nodeObj,u=e[0].nodeObj.parent;if(!u)throw new Error("Can not select root node.");const h=u.children.findIndex(v=>l===v);return{parent:u.id,start:h,end:h}}let t=0;const n=e.map(l=>{let u=l.nodeObj;const h=[];for(;u.parent;){const v=u.parent,f=v.children,p=f==null?void 0:f.indexOf(u);u=v,h.unshift({node:u,index:p})}return h.length>t&&(t=h.length),h});let o=0;e:for(;o<t;o++){const l=(a=n[0][o])==null?void 0:a.node;for(let u=1;u<n.length;u++)if(((d=n[u][o])==null?void 0:d.node)!==l)break e}if(!o)throw new Error("Can not select root node.");const s=n.map(l=>l[o-1].index).sort(),i=s[0]||0,r=s[s.length-1]||0,c=n[0][o-1].node;if(!c.parent)throw new Error("Please select nodes in the same main topic.");return{parent:c.id,start:i,end:r}},vn=function(e){const t=document.createElementNS("http://www.w3.org/2000/svg","g");return t.setAttribute("id",e),t},Ze=function(e,t){const n=document.createElementNS("http://www.w3.org/2000/svg","path");return C(n,{d:e,stroke:t||"#666",fill:"none","stroke-linecap":"round","stroke-width":"2"}),n},Qe=function(e,t,n,o,s){const i=document.createElementNS("http://www.w3.org/2000/svg","text");return C(i,{"text-anchor":o,x:t+"",y:n+"",fill:s||"#666"}),i.innerHTML=e,i},yn=e=>S(e).parentElement.parentElement,bn=function({parent:e,start:t}){const n=S(e),o=n.nodeObj;let s;return o.parent?s=n.closest("me-main").className:s=S(o.children[t].id).closest("me-main").className,s},Ee=function(e,t){var w;const{id:n,label:o,parent:s,start:i,end:r}=t,c=e.nodes,d=S(s).nodeObj,l=bn(t);let u=1/0,h=0,v=0,f=0;for(let M=i;M<=r;M++){const $=(w=d.children)==null?void 0:w[M];if(!$)return e.removeSummary(n),null;const D=yn($.id),{offsetLeft:V,offsetTop:Q}=P(c,D),nt=i===r?10:20;M===i&&(v=Q+nt),M===r&&(f=Q+D.offsetHeight-nt),V<u&&(u=V),D.offsetWidth+V>h&&(h=D.offsetWidth+V)}let p,m;const g=v+10,y=f+10,x=(g+y)/2,E=e.theme.cssVar["--color"];l===k.LHS?(p=Ze(`M ${u+10} ${g} c -5 0 -10 5 -10 10 L ${u} ${y-10} c 0 5 5 10 10 10 M ${u} ${x} h -10`,E),m=Qe(o,u-20,x+6,"end",E)):(p=Ze(`M ${h-10} ${g} c 5 0 10 5 10 10 L ${h} ${y-10} c 0 5 -5 10 -10 10 M ${h} ${x} h 10`,E),m=Qe(o,h+20,x+6,"start",E));const b=vn("s-"+n);return b.appendChild(p),b.appendChild(m),b.summaryObj=t,e.summarySvg.appendChild(b),b},xn=Object.freeze(Object.defineProperty({__proto__:null,createSummary:function(){if(!this.currentNodes)return;const e=this.currentNodes,{parent:t,start:n,end:o}=gn(e),s={id:R(),parent:t,start:n,end:o,label:"summary"},i=Ee(this,s);this.summaries.push(s),this.editSummary(i),this.bus.fire("operation",{name:"createSummary",obj:s})},createSummaryFrom:function(e){const t=R(),n={...e,id:t};Ee(this,n),this.summaries.push(n),this.bus.fire("operation",{name:"createSummary",obj:n})},editSummary:function(e){if(!e)return;const t=e.childNodes[1];Le(this,t,e.summaryObj)},removeSummary:function(e){var n;const t=this.summaries.findIndex(o=>o.id===e);t>-1&&(this.summaries.splice(t,1),(n=document.querySelector("#s-"+e))==null||n.remove()),this.bus.fire("operation",{name:"removeSummary",obj:{id:e}})},renderSummary:function(){this.summarySvg.innerHTML="",this.summaries.forEach(e=>{try{Ee(this,e)}catch{}}),this.nodes.insertAdjacentElement("beforeend",this.summarySvg)},selectSummary:function(e){const t=e.children[1].getBBox(),n=6,o=3,s=document.createElementNS("http://www.w3.org/2000/svg","rect");C(s,{x:t.x-n+"",y:t.y-n+"",width:t.width+n*2+"",height:t.height+n*2+"",rx:o+"",stroke:this.theme.cssVar["--selected"]||"#4dc4ff","stroke-width":"2",fill:"none"}),e.appendChild(s),this.currentSummary=e},unselectSummary:function(){var e,t;(t=(e=this.currentSummary)==null?void 0:e.querySelector("rect"))==null||t.remove(),this.currentSummary=null}},Symbol.toStringTag,{value:"Module"})),A="http://www.w3.org/2000/svg";function wn(e,t){const n=document.createElementNS(A,"svg");return C(n,{version:"1.1",xmlns:A,height:e,width:t}),n}function En(e,t){return(parseInt(e)-parseInt(t))/2}function Cn(e,t,n,o){const s=document.createElementNS(A,"g");let i="";return e.text?i=e.text.textContent:i=e.childNodes[0].textContent,i.split(`
18
- `).forEach((c,a)=>{const d=document.createElementNS(A,"text");C(d,{x:n+parseInt(t.paddingLeft)+"",y:o+parseInt(t.paddingTop)+En(t.lineHeight,t.fontSize)*(a+1)+parseFloat(t.fontSize)*(a+1)+"","text-anchor":"start","font-family":t.fontFamily,"font-size":`${t.fontSize}`,"font-weight":`${t.fontWeight}`,fill:`${t.color}`}),d.innerHTML=c,s.appendChild(d)}),s}function Nn(e,t,n,o){var c;let s="";(c=e.nodeObj)!=null&&c.dangerouslySetInnerHTML?s=e.nodeObj.dangerouslySetInnerHTML:e.text?s=e.text.textContent:s=e.childNodes[0].textContent;const i=document.createElementNS(A,"foreignObject");C(i,{x:n+parseInt(t.paddingLeft)+"",y:o+parseInt(t.paddingTop)+"",width:t.width,height:t.height});const r=document.createElement("div");return C(r,{xmlns:"http://www.w3.org/1999/xhtml",style:`font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`}),r.innerHTML=s,i.appendChild(r),i}function Sn(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:s}=P(e.nodes,t),i=document.createElementNS(A,"rect");return C(i,{x:o+"",y:s+"",rx:n.borderRadius,ry:n.borderRadius,width:n.width,height:n.height,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth}),i}function de(e,t,n=!1){const o=getComputedStyle(t),{offsetLeft:s,offsetTop:i}=P(e.nodes,t),r=document.createElementNS(A,"rect");C(r,{x:s+"",y:i+"",rx:o.borderRadius,ry:o.borderRadius,width:o.width,height:o.height,fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth});const c=document.createElementNS(A,"g");c.appendChild(r);let a;return n?a=Nn(t,o,s,i):a=Cn(t,o,s,i),c.appendChild(a),c}function _n(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:s}=P(e.nodes,t),i=document.createElementNS(A,"a"),r=document.createElementNS(A,"text");return C(r,{x:o+"",y:s+parseInt(n.fontSize)+"","text-anchor":"start","font-family":n.fontFamily,"font-size":`${n.fontSize}`,"font-weight":`${n.fontWeight}`,fill:`${n.color}`}),r.innerHTML=t.textContent,i.appendChild(r),i.setAttribute("href",t.href),i}function Mn(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:s}=P(e.nodes,t),i=document.createElementNS(A,"image");return C(i,{x:o+"",y:s+"",width:n.width+"",height:n.height+"",href:t.src}),i}const he=100,Tn='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',kn=(e,t=!1)=>{var u,h,v;const n=e.nodes,o=n.offsetHeight+he*2,s=n.offsetWidth+he*2,i=wn(o+"px",s+"px"),r=document.createElementNS(A,"svg"),c=document.createElementNS(A,"rect");C(c,{x:"0",y:"0",width:`${s}`,height:`${o}`,fill:e.theme.cssVar["--bgcolor"]}),i.appendChild(c),n.querySelectorAll(".subLines").forEach(f=>{const p=f.cloneNode(!0),{offsetLeft:m,offsetTop:g}=P(n,f.parentElement);p.setAttribute("x",`${m}`),p.setAttribute("y",`${g}`),r.appendChild(p)});const a=(u=n.querySelector(".lines"))==null?void 0:u.cloneNode(!0);a&&r.appendChild(a);const d=(h=n.querySelector(".topiclinks"))==null?void 0:h.cloneNode(!0);d&&r.appendChild(d);const l=(v=n.querySelector(".summary"))==null?void 0:v.cloneNode(!0);return l&&r.appendChild(l),n.querySelectorAll("me-tpc").forEach(f=>{f.nodeObj.dangerouslySetInnerHTML?r.appendChild(de(e,f,!t)):(r.appendChild(Sn(e,f)),r.appendChild(de(e,f.text,!t)))}),n.querySelectorAll(".tags > span").forEach(f=>{r.appendChild(de(e,f))}),n.querySelectorAll(".icons > span").forEach(f=>{r.appendChild(de(e,f))}),n.querySelectorAll(".hyper-link").forEach(f=>{r.appendChild(_n(e,f))}),n.querySelectorAll("img").forEach(f=>{r.appendChild(Mn(e,f))}),C(r,{x:he+"",y:he+"",overflow:"visible"}),i.appendChild(r),i},Ln=(e,t)=>(t&&e.insertAdjacentHTML("afterbegin","<style>"+t+"</style>"),Tn+e.outerHTML);function An(e){return new Promise((t,n)=>{const o=new FileReader;o.onload=s=>{t(s.target.result)},o.onerror=s=>{n(s)},o.readAsDataURL(e)})}const $n=Object.freeze(Object.defineProperty({__proto__:null,exportPng:async function(e=!1,t){const n=this.exportSvg(e,t),o=await An(n);return new Promise((s,i)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{const c=document.createElement("canvas");c.width=r.width,c.height=r.height,c.getContext("2d").drawImage(r,0,0),c.toBlob(s,"image/png",1)},r.src=o,r.onerror=i})},exportSvg:function(e=!1,t){const n=kn(this,e),o=Ln(n,t);return new Blob([o],{type:"image/svg+xml"})}},Symbol.toStringTag,{value:"Module"}));function jn(e,t){return async function(...n){const o=this.before[t];o&&!await o.apply(this,n)||e.apply(this,n)}}const et=Object.keys(Ue),tt={};for(let e=0;e<et.length;e++){const t=et[e];tt[t]=jn(Ue[t],t)}const Dn={getObjById:oe,generateNewObj:ot,layout:rt,linkDiv:mt,editTopic:ft,createWrapper:at,createParent:dt,createChildren:ht,createTopic:ut,findEle:S,changeTheme:zt,...sn,...tt,...mn,...xn,...$n,init(e){if(e=JSON.parse(JSON.stringify(e)),!e||!e.nodeData)return new Error("MindElixir: `data` is required");e.direction!==void 0&&(this.direction=e.direction),this.changeTheme(e.theme||this.theme,!1),this.nodeData=e.nodeData,O(this.nodeData),this.arrows=e.arrows||[],this.summaries=e.summaries||[],this.tidyArrow(),this.toolBar&&At(this),this.keypress&&Et(this,this.keypress),this.editable&&Rt(this),this.contextMenu&&this.disposable.push(gt(this,this.contextMenu)),this.draggable&&this.disposable.push(_t(this)),this.allowUndo&&this.disposable.push(Tt(this)),this.toCenter(),this.layout(),this.linkDiv()},destroy(){var e;this.disposable.forEach(t=>t()),this.el&&(this.el.innerHTML=""),this.el=void 0,this.nodeData=void 0,this.arrows=void 0,this.summaries=void 0,this.currentArrow=void 0,this.currentNodes=void 0,this.currentSummary=void 0,this.waitCopy=void 0,this.theme=void 0,this.direction=void 0,this.bus=void 0,this.container=void 0,this.map=void 0,this.lines=void 0,this.linkController=void 0,this.linkSvgGroup=void 0,this.P2=void 0,this.P3=void 0,this.line1=void 0,this.line2=void 0,this.nodes=void 0,(e=this.selection)==null||e.destroy(),this.selection=void 0}};function On({pT:e,pL:t,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:a,containerHeight:d}){let l=t+n/2;const u=e+o/2;let h;a===k.LHS?h=i+r:h=i;const v=s+c/2,p=(1-Math.abs(v-u)/d)*.25*(n/2);return a===k.LHS?l=l-n/10-p:l=l+n/10+p,`M ${l} ${u} Q ${l} ${v} ${h} ${v}`}function Pn({pT:e,pL:t,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:a,isFirst:d}){const l=parseInt(this.container.style.getPropertyValue("--gap"));let u=0,h=0;d?u=e+o/2:u=e+o;const v=s+c;let f=0,p=0,m=0;const g=Math.abs(u-v)/300*l;return a===k.LHS?(m=t,f=m+l,p=m-l,h=i+l,`M ${f} ${u} C ${m} ${u} ${m+g} ${v} ${p} ${v} H ${h}`):(m=t+n,f=m-l,p=m+l,h=i+r-l,`M ${f} ${u} C ${m} ${u} ${m-g} ${v} ${p} ${v} H ${h}`)}const Hn="5.0.0-beta.21";function Bn(e){return{x:0,y:0,moved:!1,mousedown:!1,onMove(t){if(this.mousedown){this.moved=!0;const n=t.movementX,o=t.movementY;e.move(n,o)}},clear(){setTimeout(()=>{this.moved=!1,this.mousedown=!1,e.map.style.transition="transform 0.3s"},0)}}}const Z=document;function j({el:e,direction:t,locale:n,draggable:o,editable:s,contextMenu:i,toolBar:r,keypress:c,mouseSelectionButton:a,selectionContainer:d,before:l,newTopicName:u,allowUndo:h,generateMainBranch:v,generateSubBranch:f,overflowHidden:p,theme:m,alignment:g}){let y=null;const x=Object.prototype.toString.call(e);if(x==="[object HTMLDivElement]"?y=e:x==="[object String]"&&(y=document.querySelector(e)),!y)throw new Error("MindElixir: el is not a valid element");y.style.position="relative",y.innerHTML="",this.el=y,this.disposable=[],this.before=l||{},this.locale=n||"en",this.contextMenu=i===void 0?!0:i,this.toolBar=r===void 0?!0:r,this.keypress=c===void 0?!0:c,this.mouseSelectionButton=a||0,this.direction=typeof t=="number"?t:1,this.draggable=o===void 0?!0:o,this.newTopicName=u||"new node",this.editable=s===void 0?!0:s,this.allowUndo=h===void 0?!1:h,this.currentNodes=[],this.currentArrow=null,this.scaleVal=1,this.tempDirection=null,this.generateMainBranch=v||On,this.generateSubBranch=f||Pn,this.overflowHidden=p||!1,this.dragMoveHelper=Bn(this),this.bus=it(),this.container=Z.createElement("div"),this.selectionContainer=d||this.container,this.container.className="map-container";const E=window.matchMedia("(prefers-color-scheme: dark)");this.theme=m||(E.matches?Ne:Ce);const b=Z.createElement("div");b.className="map-canvas",setTimeout(()=>{b.style.transition="all 0.3s"},300),this.map=b,this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.el.appendChild(this.container),this.nodes=Z.createElement("me-nodes"),this.nodes.className="main-node-container",this.lines=G("lines"),this.summarySvg=G("summary"),this.linkController=G("linkcontroller"),this.P2=Z.createElement("div"),this.P3=Z.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=ke(),this.line2=ke(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=G("topiclinks"),this.alignment=g??"root",this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":this.disposable.push(st(this))}return j.prototype=Dn,Object.defineProperty(j.prototype,"currentNode",{get(){return this.currentNodes.at(-1)},enumerable:!0}),j.LEFT=_,j.RIGHT=T,j.SIDE=te,j.THEME=Ce,j.DARK_THEME=Ne,j.version=Hn,j.E=S,j.new=e=>({nodeData:{id:R(),topic:e||"new topic",children:[]}}),j}();
18
+ `).forEach((c,a)=>{const d=document.createElementNS(A,"text");C(d,{x:n+parseInt(t.paddingLeft)+"",y:o+parseInt(t.paddingTop)+En(t.lineHeight,t.fontSize)*(a+1)+parseFloat(t.fontSize)*(a+1)+"","text-anchor":"start","font-family":t.fontFamily,"font-size":`${t.fontSize}`,"font-weight":`${t.fontWeight}`,fill:`${t.color}`}),d.innerHTML=c,s.appendChild(d)}),s}function Nn(e,t,n,o){var c;let s="";(c=e.nodeObj)!=null&&c.dangerouslySetInnerHTML?s=e.nodeObj.dangerouslySetInnerHTML:e.text?s=e.text.textContent:s=e.childNodes[0].textContent;const i=document.createElementNS(A,"foreignObject");C(i,{x:n+parseInt(t.paddingLeft)+"",y:o+parseInt(t.paddingTop)+"",width:t.width,height:t.height});const r=document.createElement("div");return C(r,{xmlns:"http://www.w3.org/1999/xhtml",style:`font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`}),r.innerHTML=s,i.appendChild(r),i}function Sn(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:s}=P(e.nodes,t),i=document.createElementNS(A,"rect");return C(i,{x:o+"",y:s+"",rx:n.borderRadius,ry:n.borderRadius,width:n.width,height:n.height,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth}),i}function de(e,t,n=!1){const o=getComputedStyle(t),{offsetLeft:s,offsetTop:i}=P(e.nodes,t),r=document.createElementNS(A,"rect");C(r,{x:s+"",y:i+"",rx:o.borderRadius,ry:o.borderRadius,width:o.width,height:o.height,fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth});const c=document.createElementNS(A,"g");c.appendChild(r);let a;return n?a=Nn(t,o,s,i):a=Cn(t,o,s,i),c.appendChild(a),c}function _n(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:s}=P(e.nodes,t),i=document.createElementNS(A,"a"),r=document.createElementNS(A,"text");return C(r,{x:o+"",y:s+parseInt(n.fontSize)+"","text-anchor":"start","font-family":n.fontFamily,"font-size":`${n.fontSize}`,"font-weight":`${n.fontWeight}`,fill:`${n.color}`}),r.innerHTML=t.textContent,i.appendChild(r),i.setAttribute("href",t.href),i}function Mn(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:s}=P(e.nodes,t),i=document.createElementNS(A,"image");return C(i,{x:o+"",y:s+"",width:n.width+"",height:n.height+"",href:t.src}),i}const he=100,Tn='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',kn=(e,t=!1)=>{var u,h,v;const n=e.nodes,o=n.offsetHeight+he*2,s=n.offsetWidth+he*2,i=wn(o+"px",s+"px"),r=document.createElementNS(A,"svg"),c=document.createElementNS(A,"rect");C(c,{x:"0",y:"0",width:`${s}`,height:`${o}`,fill:e.theme.cssVar["--bgcolor"]}),i.appendChild(c),n.querySelectorAll(".subLines").forEach(f=>{const p=f.cloneNode(!0),{offsetLeft:m,offsetTop:g}=P(n,f.parentElement);p.setAttribute("x",`${m}`),p.setAttribute("y",`${g}`),r.appendChild(p)});const a=(u=n.querySelector(".lines"))==null?void 0:u.cloneNode(!0);a&&r.appendChild(a);const d=(h=n.querySelector(".topiclinks"))==null?void 0:h.cloneNode(!0);d&&r.appendChild(d);const l=(v=n.querySelector(".summary"))==null?void 0:v.cloneNode(!0);return l&&r.appendChild(l),n.querySelectorAll("me-tpc").forEach(f=>{f.nodeObj.dangerouslySetInnerHTML?r.appendChild(de(e,f,!t)):(r.appendChild(Sn(e,f)),r.appendChild(de(e,f.text,!t)))}),n.querySelectorAll(".tags > span").forEach(f=>{r.appendChild(de(e,f))}),n.querySelectorAll(".icons > span").forEach(f=>{r.appendChild(de(e,f))}),n.querySelectorAll(".hyper-link").forEach(f=>{r.appendChild(_n(e,f))}),n.querySelectorAll("img").forEach(f=>{r.appendChild(Mn(e,f))}),C(r,{x:he+"",y:he+"",overflow:"visible"}),i.appendChild(r),i},Ln=(e,t)=>(t&&e.insertAdjacentHTML("afterbegin","<style>"+t+"</style>"),Tn+e.outerHTML);function An(e){return new Promise((t,n)=>{const o=new FileReader;o.onload=s=>{t(s.target.result)},o.onerror=s=>{n(s)},o.readAsDataURL(e)})}const $n=Object.freeze(Object.defineProperty({__proto__:null,exportPng:async function(e=!1,t){const n=this.exportSvg(e,t),o=await An(n);return new Promise((s,i)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{const c=document.createElement("canvas");c.width=r.width,c.height=r.height,c.getContext("2d").drawImage(r,0,0),c.toBlob(s,"image/png",1)},r.src=o,r.onerror=i})},exportSvg:function(e=!1,t){const n=kn(this,e),o=Ln(n,t);return new Blob([o],{type:"image/svg+xml"})}},Symbol.toStringTag,{value:"Module"}));function jn(e,t){return async function(...n){const o=this.before[t];o&&!await o.apply(this,n)||e.apply(this,n)}}const et=Object.keys(Ue),tt={};for(let e=0;e<et.length;e++){const t=et[e];tt[t]=jn(Ue[t],t)}const Dn={getObjById:oe,generateNewObj:ot,layout:rt,linkDiv:mt,editTopic:ft,createWrapper:at,createParent:dt,createChildren:ht,createTopic:ut,findEle:S,changeTheme:zt,...sn,...tt,...mn,...xn,...$n,init(e){if(e=JSON.parse(JSON.stringify(e)),!e||!e.nodeData)return new Error("MindElixir: `data` is required");e.direction!==void 0&&(this.direction=e.direction),this.changeTheme(e.theme||this.theme,!1),this.nodeData=e.nodeData,O(this.nodeData),this.arrows=e.arrows||[],this.summaries=e.summaries||[],this.tidyArrow(),this.toolBar&&At(this),this.keypress&&Et(this,this.keypress),this.editable&&Rt(this),this.contextMenu&&this.disposable.push(gt(this,this.contextMenu)),this.draggable&&this.disposable.push(_t(this)),this.allowUndo&&this.disposable.push(Tt(this)),this.toCenter(),this.layout(),this.linkDiv()},destroy(){var e;this.disposable.forEach(t=>t()),this.el&&(this.el.innerHTML=""),this.el=void 0,this.nodeData=void 0,this.arrows=void 0,this.summaries=void 0,this.currentArrow=void 0,this.currentNodes=void 0,this.currentSummary=void 0,this.waitCopy=void 0,this.theme=void 0,this.direction=void 0,this.bus=void 0,this.container=void 0,this.map=void 0,this.lines=void 0,this.linkController=void 0,this.linkSvgGroup=void 0,this.P2=void 0,this.P3=void 0,this.line1=void 0,this.line2=void 0,this.nodes=void 0,(e=this.selection)==null||e.destroy(),this.selection=void 0}};function On({pT:e,pL:t,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:a,containerHeight:d}){let l=t+n/2;const u=e+o/2;let h;a===k.LHS?h=i+r:h=i;const v=s+c/2,p=(1-Math.abs(v-u)/d)*.25*(n/2);return a===k.LHS?l=l-n/10-p:l=l+n/10+p,`M ${l} ${u} Q ${l} ${v} ${h} ${v}`}function Pn({pT:e,pL:t,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:a,isFirst:d}){const l=parseInt(this.container.style.getPropertyValue("--gap"));let u=0,h=0;d?u=e+o/2:u=e+o;const v=s+c;let f=0,p=0,m=0;const g=Math.abs(u-v)/300*l;return a===k.LHS?(m=t,f=m+l,p=m-l,h=i+l,`M ${f} ${u} C ${m} ${u} ${m+g} ${v} ${p} ${v} H ${h}`):(m=t+n,f=m-l,p=m+l,h=i+r-l,`M ${f} ${u} C ${m} ${u} ${m-g} ${v} ${p} ${v} H ${h}`)}const Hn="5.0.0-beta.22";function Bn(e){return{x:0,y:0,moved:!1,mousedown:!1,onMove(t){if(this.mousedown){this.moved=!0;const n=t.movementX,o=t.movementY;e.move(n,o)}},clear(){setTimeout(()=>{this.moved=!1,this.mousedown=!1,e.map.style.transition="transform 0.3s"},0)}}}const Z=document;function j({el:e,direction:t,locale:n,draggable:o,editable:s,contextMenu:i,toolBar:r,keypress:c,mouseSelectionButton:a,selectionContainer:d,before:l,newTopicName:u,allowUndo:h,generateMainBranch:v,generateSubBranch:f,overflowHidden:p,theme:m,alignment:g}){let y=null;const x=Object.prototype.toString.call(e);if(x==="[object HTMLDivElement]"?y=e:x==="[object String]"&&(y=document.querySelector(e)),!y)throw new Error("MindElixir: el is not a valid element");y.style.position="relative",y.innerHTML="",this.el=y,this.disposable=[],this.before=l||{},this.locale=n||"en",this.contextMenu=i===void 0?!0:i,this.toolBar=r===void 0?!0:r,this.keypress=c===void 0?!0:c,this.mouseSelectionButton=a||0,this.direction=typeof t=="number"?t:1,this.draggable=o===void 0?!0:o,this.newTopicName=u||"new node",this.editable=s===void 0?!0:s,this.allowUndo=h===void 0?!1:h,this.currentNodes=[],this.currentArrow=null,this.scaleVal=1,this.tempDirection=null,this.generateMainBranch=v||On,this.generateSubBranch=f||Pn,this.overflowHidden=p||!1,this.dragMoveHelper=Bn(this),this.bus=it(),this.container=Z.createElement("div"),this.selectionContainer=d||this.container,this.container.className="map-container";const E=window.matchMedia("(prefers-color-scheme: dark)");this.theme=m||(E.matches?Ne:Ce);const b=Z.createElement("div");b.className="map-canvas",setTimeout(()=>{b.style.transition="all 0.3s"},300),this.map=b,this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.el.appendChild(this.container),this.nodes=Z.createElement("me-nodes"),this.nodes.className="main-node-container",this.lines=G("lines"),this.summarySvg=G("summary"),this.linkController=G("linkcontroller"),this.P2=Z.createElement("div"),this.P3=Z.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=ke(),this.line2=ke(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=G("topiclinks"),this.alignment=g??"root",this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":this.disposable.push(st(this))}return j.prototype=Dn,Object.defineProperty(j.prototype,"currentNode",{get(){return this.currentNodes.at(-1)},enumerable:!0}),j.LEFT=_,j.RIGHT=T,j.SIDE=te,j.THEME=Ce,j.DARK_THEME=Ne,j.version=Hn,j.E=S,j.new=e=>({nodeData:{id:R(),topic:e||"new topic",children:[]}}),j}();
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".map-container{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:hidden;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .hyper-link{text-decoration:none;margin-left:.3em}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7;border-radius:3px}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTQ3MTcyNDIiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA0ODBoLTEzOC42NjY2NjdWMzQxLjMzMzMzM2MwLTE3LjA2NjY2Ny0xNC45MzMzMzMtMzItMzItMzJzLTMyIDE0LjkzMzMzMy0zMiAzMnYxMzguNjY2NjY3SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyIDE0LjkzMzMzMy0zMiAzMnMxNC45MzMzMzMgMzIgMzIgMzJoMTM4LjY2NjY2N1Y2ODIuNjY2NjY3YzAgMTcuMDY2NjY3IDE0LjkzMzMzMyAzMiAzMiAzMnMzMi0xNC45MzMzMzMgMzItMzJ2LTEzOC42NjY2NjdINjgyLjY2NjY2N2MxNy4wNjY2NjcgMCAzMi0xNC45MzMzMzMgMzItMzJzLTE0LjkzMzMzMy0zMi0zMi0zMnoiPjwvcGF0aD4NCjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTU1NjQ5ODUiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA1NDRIMzQxLjMzMzMzM2MtMTcuMDY2NjY3IDAtMzItMTQuOTMzMzMzLTMyLTMyczE0LjkzMzMzMy0zMiAzMi0zMmgzNDEuMzMzMzM0YzE3LjA2NjY2NyAwIDMyIDE0LjkzMzMzMyAzMiAzMnMtMTQuOTMzMzMzIDMyLTMyIDMyeiI+PC9wYXRoPg0KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary,.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .summary>g,.map-container .topiclinks>g{cursor:pointer;pointer-events:stroke}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;color:var(--color);background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.map-container .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.map-container .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.map-container .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.map-container .context-menu .menu-list li span{line-height:20px}.map-container .context-menu .menu-list li a{color:#333;text-decoration:none}.map-container .context-menu .menu-list li.disabled{display:none}.map-container .context-menu .menu-list li:hover{filter:brightness(.95)}.map-container .context-menu .menu-list li:last-child{border-bottom:0}.map-container .context-menu .menu-list li span:last-child{float:right}.map-container .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.map-container .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".map-container{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:hidden;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .hyper-link{text-decoration:none;margin-left:.3em}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7;border-radius:3px}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTQ3MTcyNDIiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA0ODBoLTEzOC42NjY2NjdWMzQxLjMzMzMzM2MwLTE3LjA2NjY2Ny0xNC45MzMzMzMtMzItMzItMzJzLTMyIDE0LjkzMzMzMy0zMiAzMnYxMzguNjY2NjY3SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyIDE0LjkzMzMzMy0zMiAzMnMxNC45MzMzMzMgMzIgMzIgMzJoMTM4LjY2NjY2N1Y2ODIuNjY2NjY3YzAgMTcuMDY2NjY3IDE0LjkzMzMzMyAzMiAzMiAzMnMzMi0xNC45MzMzMzMgMzItMzJ2LTEzOC42NjY2NjdINjgyLjY2NjY2N2MxNy4wNjY2NjcgMCAzMi0xNC45MzMzMzMgMzItMzJzLTE0LjkzMzMzMy0zMi0zMi0zMnoiPjwvcGF0aD4NCjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTU1NjQ5ODUiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA1NDRIMzQxLjMzMzMzM2MtMTcuMDY2NjY3IDAtMzItMTQuOTMzMzMzLTMyLTMyczE0LjkzMzMzMy0zMiAzMi0zMmgzNDEuMzMzMzM0YzE3LjA2NjY2NyAwIDMyIDE0LjkzMzMzMyAzMiAzMnMtMTQuOTMzMzMzIDMyLTMyIDMyeiI+PC9wYXRoPg0KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary,.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .summary>g,.map-container .topiclinks>g{cursor:pointer;pointer-events:stroke}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;color:var(--color);background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.map-container .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.map-container .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.map-container .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.map-container .context-menu .menu-list li span{line-height:20px}.map-container .context-menu .menu-list li a{color:#333;text-decoration:none}.map-container .context-menu .menu-list li.disabled{display:none}.map-container .context-menu .menu-list li:hover{filter:brightness(.95)}.map-container .context-menu .menu-list li:last-child{border-bottom:0}.map-container .context-menu .menu-list li span:last-child{float:right}.map-container .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.map-container .tips{position:absolute;bottom:28px;left:50%;transform:translate(-50%);color:var(--panel-color);background:var(--panel-bgcolor);opacity:.8;padding:5px 10px;border-radius:5px;font-weight:700}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  var nt = Object.defineProperty;
3
3
  var ot = (e, t, n) => t in e ? nt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var G = (e, t, n) => (ot(e, typeof t != "symbol" ? t + "" : t, n), n);
@@ -836,7 +836,7 @@ function Ct(e, t) {
836
836
  const i = o[s.key];
837
837
  i && i(s);
838
838
  }, e.map.onwheel = (s) => {
839
- s.stopPropagation(), s.preventDefault(), s.ctrlKey || s.metaKey ? s.deltaY < 0 ? ee(e, "in", e.dragMoveHelper) : e.scaleVal - 0.2 > 0 && ee(e, "out", e.dragMoveHelper) : s.shiftKey ? e.move(-s.deltaY, 0) : e.move(0, -s.deltaY);
839
+ s.stopPropagation(), s.preventDefault(), s.ctrlKey || s.metaKey ? s.deltaY < 0 ? ee(e, "in", e.dragMoveHelper) : e.scaleVal - 0.2 > 0 && ee(e, "out", e.dragMoveHelper) : s.shiftKey ? e.move(-s.deltaY, 0) : (e.map.style.transition = "none", e.move(-s.deltaX, -s.deltaY), e.map.style.transition = "transform 0.3s");
840
840
  };
841
841
  }
842
842
  const he = document, Nt = function(e, t) {
@@ -2470,7 +2470,7 @@ function wo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction:
2470
2470
  const g = Math.abs(u - v) / 300 * l;
2471
2471
  return a === M.LHS ? (m = t, f = m + l, p = m - l, h = i + l, `M ${f} ${u} C ${m} ${u} ${m + g} ${v} ${p} ${v} H ${h}`) : (m = t + n, f = m - l, p = m + l, h = i + r - l, `M ${f} ${u} C ${m} ${u} ${m - g} ${v} ${p} ${v} H ${h}`);
2472
2472
  }
2473
- const Eo = "5.0.0-beta.21";
2473
+ const Eo = "5.0.0-beta.22";
2474
2474
  function Co(e) {
2475
2475
  return {
2476
2476
  x: 0,
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".map-container{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:hidden;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .hyper-link{text-decoration:none;margin-left:.3em}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7;border-radius:3px}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTQ3MTcyNDIiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA0ODBoLTEzOC42NjY2NjdWMzQxLjMzMzMzM2MwLTE3LjA2NjY2Ny0xNC45MzMzMzMtMzItMzItMzJzLTMyIDE0LjkzMzMzMy0zMiAzMnYxMzguNjY2NjY3SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyIDE0LjkzMzMzMy0zMiAzMnMxNC45MzMzMzMgMzIgMzIgMzJoMTM4LjY2NjY2N1Y2ODIuNjY2NjY3YzAgMTcuMDY2NjY3IDE0LjkzMzMzMyAzMiAzMiAzMnMzMi0xNC45MzMzMzMgMzItMzJ2LTEzOC42NjY2NjdINjgyLjY2NjY2N2MxNy4wNjY2NjcgMCAzMi0xNC45MzMzMzMgMzItMzJzLTE0LjkzMzMzMy0zMi0zMi0zMnoiPjwvcGF0aD4NCjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTU1NjQ5ODUiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA1NDRIMzQxLjMzMzMzM2MtMTcuMDY2NjY3IDAtMzItMTQuOTMzMzMzLTMyLTMyczE0LjkzMzMzMy0zMiAzMi0zMmgzNDEuMzMzMzM0YzE3LjA2NjY2NyAwIDMyIDE0LjkzMzMzMyAzMiAzMnMtMTQuOTMzMzMzIDMyLTMyIDMyeiI+PC9wYXRoPg0KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary,.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .summary>g,.map-container .topiclinks>g{cursor:pointer;pointer-events:stroke}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;color:var(--color);background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.map-container .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.map-container .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.map-container .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.map-container .context-menu .menu-list li span{line-height:20px}.map-container .context-menu .menu-list li a{color:#333;text-decoration:none}.map-container .context-menu .menu-list li.disabled{display:none}.map-container .context-menu .menu-list li:hover{filter:brightness(.95)}.map-container .context-menu .menu-list li:last-child{border-bottom:0}.map-container .context-menu .menu-list li span:last-child{float:right}.map-container .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.map-container .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".map-container{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:hidden;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .hyper-link{text-decoration:none;margin-left:.3em}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7;border-radius:3px}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTQ3MTcyNDIiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA0ODBoLTEzOC42NjY2NjdWMzQxLjMzMzMzM2MwLTE3LjA2NjY2Ny0xNC45MzMzMzMtMzItMzItMzJzLTMyIDE0LjkzMzMzMy0zMiAzMnYxMzguNjY2NjY3SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyIDE0LjkzMzMzMy0zMiAzMnMxNC45MzMzMzMgMzIgMzIgMzJoMTM4LjY2NjY2N1Y2ODIuNjY2NjY3YzAgMTcuMDY2NjY3IDE0LjkzMzMzMyAzMiAzMiAzMnMzMi0xNC45MzMzMzMgMzItMzJ2LTEzOC42NjY2NjdINjgyLjY2NjY2N2MxNy4wNjY2NjcgMCAzMi0xNC45MzMzMzMgMzItMzJzLTE0LjkzMzMzMy0zMi0zMi0zMnoiPjwvcGF0aD4NCjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTU1NjQ5ODUiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA1NDRIMzQxLjMzMzMzM2MtMTcuMDY2NjY3IDAtMzItMTQuOTMzMzMzLTMyLTMyczE0LjkzMzMzMy0zMiAzMi0zMmgzNDEuMzMzMzM0YzE3LjA2NjY2NyAwIDMyIDE0LjkzMzMzMyAzMiAzMnMtMTQuOTMzMzMzIDMyLTMyIDMyeiI+PC9wYXRoPg0KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary,.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .summary>g,.map-container .topiclinks>g{cursor:pointer;pointer-events:stroke}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;color:var(--color);background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.map-container .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.map-container .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.map-container .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.map-container .context-menu .menu-list li span{line-height:20px}.map-container .context-menu .menu-list li a{color:#333;text-decoration:none}.map-container .context-menu .menu-list li.disabled{display:none}.map-container .context-menu .menu-list li:hover{filter:brightness(.95)}.map-container .context-menu .menu-list li:last-child{border-bottom:0}.map-container .context-menu .menu-list li span:last-child{float:right}.map-container .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.map-container .tips{position:absolute;bottom:28px;left:50%;transform:translate(-50%);color:var(--panel-color);background:var(--panel-bgcolor);opacity:.8;padding:5px 10px;border-radius:5px;font-weight:700}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  var MindElixirLite=function(){"use strict";const ze="";(function(t){var e,n,o,s,i,r,c='<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>',l=(l=document.getElementsByTagName("script"))[l.length-1].getAttribute("data-injectcss");if(l&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch{}}function f(){i||(i=!0,o())}e=function(){var a,u,h,g;(g=document.createElement("div")).innerHTML=c,c=null,(h=g.getElementsByTagName("svg")[0])&&(h.setAttribute("aria-hidden","true"),h.style.position="absolute",h.style.width=0,h.style.height=0,h.style.overflow="hidden",a=h,(u=document.body).firstChild?(g=a,(h=u.firstChild).parentNode.insertBefore(g,h)):u.appendChild(a))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(e,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),e()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(o=e,s=t.document,i=!1,(r=function(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(r,50)}f()})(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,f())})})(window);const z=0,tt=1,et=2,rt={name:"Latte",type:"light",palette:["#dd7878","#ea76cb","#8839ef","#e64553","#fe640b","#df8e1d","#40a02b","#209fb5","#1e66f5","#7287fd"],cssVar:{"--gap":"30px","--main-color":"#444446","--main-bgcolor":"#ffffff","--color":"#777777","--bgcolor":"#f6f6f6","--panel-color":"#444446","--panel-bgcolor":"#ffffff","--panel-border-color":"#eaeaea"}},ct={name:"Dark",type:"dark",palette:["#848FA0","#748BE9","#D2F9FE","#4145A5","#789AFA","#706CF4","#EF987F","#775DD5","#FCEECF","#DA7FBC"],cssVar:{"--main-color":"#ffffff","--main-bgcolor":"#4c4f69","--color":"#cccccc","--bgcolor":"#252526","--panel-color":"#ffffff","--panel-bgcolor":"#2d3748","--panel-border-color":"#696969"}};function lt(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}const W=function(t,e){if(e.id===t)return e;if(e.children&&e.children.length){for(let n=0;n<e.children.length;n++){const o=W(t,e.children[n]);if(o)return o}return null}else return null},nt=(t,e)=>{if(t.parent=e,t.children)for(let n=0;n<t.children.length;n++)nt(t.children[n],t)};function X(t,e,n,o){const s=o-e,i=t-n;let r=Math.atan(Math.abs(s)/Math.abs(i))/3.14*180;if(isNaN(r))return;i<0&&s>0&&(r=180-r),i<0&&s<0&&(r=180+r),i>0&&s<0&&(r=360-r);const c=12,l=30,f=r+l,a=r-l;return{x1:n+Math.cos(Math.PI*f/180)*c,y1:o-Math.sin(Math.PI*f/180)*c,x2:n+Math.cos(Math.PI*a/180)*c,y2:o-Math.sin(Math.PI*a/180)*c}}function q(){return(new Date().getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}const At=function(){const t=q();return{topic:this.newTopicName,id:t}},A=(t,e)=>{let n=0,o=0;for(;e&&e!==t;)n+=e.offsetLeft,o+=e.offsetTop,e=e.offsetParent;return{offsetLeft:n,offsetTop:o}},_=(t,e)=>{for(const n in e)t.setAttribute(n,e[n])},kt=t=>t?t.tagName==="ME-TPC":!1,at=t=>{const e=/translate\(([^,]+),\s*([^)]+)\)/,n=t.match(e);return n?{x:parseFloat(n[1]),y:parseFloat(n[2])}:{x:0,y:0}},ht=function(t){for(let e=0;e<t.length;e++){const{dom:n,evt:o,func:s}=t[e];n.addEventListener(o,s)}return function(){for(let n=0;n<t.length;n++){const{dom:o,evt:s,func:i}=t[n];o.removeEventListener(s,i)}}};function Nt(t){const{dragMoveHelper:e}=t;let n=0,o=0;const s=d=>{var v,y,b;if(d instanceof TouchEvent||d.button!==0)return;if((v=t.helper1)!=null&&v.moved){t.helper1.clear();return}if((y=t.helper2)!=null&&y.moved){t.helper2.clear();return}if(e.moved){e.clear();return}const p=d.target;if(p.tagName==="ME-EPD")d.ctrlKey||d.metaKey?t.expandNodeAll(p.previousSibling):t.expandNode(p.previousSibling);else if(p.tagName==="ME-TPC"&&t.currentNodes.length>1)t.selectNode(p);else if(!t.editable)return;const m=(b=p.parentElement)==null?void 0:b.parentElement;m.getAttribute("class")==="topiclinks"?t.selectArrow(p.parentElement):m.getAttribute("class")==="summary"&&t.selectSummary(p.parentElement)},i=d=>{var v;if(!t.editable)return;const p=d.target;kt(p)&&t.beginEdit(p);const m=(v=p.parentElement)==null?void 0:v.parentElement;m.getAttribute("class")==="topiclinks"?t.editArrowLabel(p.parentElement):m.getAttribute("class")==="summary"&&t.editSummary(p.parentElement)};let r=0;const c=d=>{const p=new Date().getTime(),m=p-r;m<300&&m>0&&i(d),r=p},l=d=>{var p,m;if(d instanceof MouseEvent){const v=t.mouseSelectionButton===0?2:0;if(d.button!==v)return}else n=((p=d.touches[0])==null?void 0:p.clientX)||0,o=((m=d.touches[0])==null?void 0:m.clientY)||0;d.target.contentEditable==="inherit"&&(e.moved=!1,e.mousedown=!0,t.map.style.transition="none")},f=d=>{var p,m,v,y;if(d.target.contentEditable==="inherit")if(d instanceof MouseEvent)e.onMove(d),e.x=d.clientX,e.y=d.clientY;else{const b=((p=d.touches[0])==null?void 0:p.clientX)||0,x=((m=d.touches[0])==null?void 0:m.clientY)||0,w=b-n,T=x-o,B={clientX:b,clientY:x,movementX:w,movementY:T,target:d.target};e.onMove(B),e.x=b,e.y=x,n=b,o=x}else if(d instanceof MouseEvent)e.x=d.clientX,e.y=d.clientY;else{const b=((v=d.touches[0])==null?void 0:v.clientX)||0,x=((y=d.touches[0])==null?void 0:y.clientY)||0;e.x=b,e.y=x,n=b,o=x}},a=d=>{if(d instanceof MouseEvent){const p=t.mouseSelectionButton===0?2:0;if(d.button!==p)return}e.clear()},u=d=>{d instanceof TouchEvent||e.moved&&d.preventDefault()},h=t.map;return ht([{dom:h,evt:"click",func:s},{dom:h,evt:"dblclick",func:i},{dom:h,evt:"mousedown",func:l},{dom:document,evt:"mousemove",func:f},{dom:document,evt:"mouseup",func:a},{dom:document,evt:"contextmenu",func:u},{dom:h,evt:"touchstart",func:l},{dom:document,evt:"touchmove",func:f},{dom:document,evt:"touchend",func:a},{dom:h,evt:"touchend",func:c}])}function Ht(){return{handlers:{},addListener:function(t,e){this.handlers[t]===void 0&&(this.handlers[t]=[]),this.handlers[t].push(e)},fire:function(t,...e){if(this.handlers[t]instanceof Array){const n=this.handlers[t];for(let o=0;o<n.length;o++)n[o](...e)}},removeListener:function(t,e){if(!this.handlers[t])return;const n=this.handlers[t];if(!e)n.length=0;else if(n.length)for(let o=0;o<n.length;o++)n[o]===e&&this.handlers[t].splice(o,1)}}}var M=(t=>(t.LHS="lhs",t.RHS="rhs",t))(M||{});const Y=document,Dt=function(){this.nodes.innerHTML="";const t=this.createTopic(this.nodeData);dt(t,this.nodeData),t.draggable=!1;const e=Y.createElement("me-root");e.appendChild(t);const n=this.nodeData.children||[];if(this.direction===et){let o=0,s=0;n.map(i=>{i.direction===z?o+=1:i.direction===tt?s+=1:o<=s?(i.direction=z,o+=1):(i.direction=tt,s+=1)})}Pt(this,n,e)},Pt=function(t,e,n){const o=Y.createElement("me-main");o.className=M.LHS;const s=Y.createElement("me-main");s.className=M.RHS;for(let i=0;i<e.length;i++){const r=e[i],{grp:c}=t.createWrapper(r);t.direction===et?r.direction===z?o.appendChild(c):s.appendChild(c):t.direction===z?o.appendChild(c):s.appendChild(c)}t.nodes.appendChild(o),t.nodes.appendChild(n),t.nodes.appendChild(s),t.nodes.appendChild(t.lines)},Bt=function(t,e){const n=Y.createElement("me-children");for(let o=0;o<e.length;o++){const s=e[o],{grp:i}=t.createWrapper(s);n.appendChild(i)}return n},S=document,L=(t,e)=>{const o=(e?e.el:S).querySelector(`[data-nodeid=me${t}]`);if(!o)throw new Error(`FindEle: Node ${t} not found, maybe it's collapsed.`);return o},dt=function(t,e){if(t.innerHTML="",e.style&&(t.style.color=e.style.color||"",t.style.background=e.style.background||"",t.style.fontSize=e.style.fontSize+"px",t.style.fontWeight=e.style.fontWeight||"normal"),e.dangerouslySetInnerHTML){t.innerHTML=e.dangerouslySetInnerHTML;return}if(e.image){const n=e.image;if(n.url&&n.width&&n.height){const o=S.createElement("img");o.src=n.url,o.style.width=n.width+"px",o.style.height=n.height+"px",n.fit&&(o.style.objectFit=n.fit),t.appendChild(o),t.image=o}}else t.image&&(t.image=void 0);{const n=S.createElement("span");n.className="text",n.textContent=e.topic,t.appendChild(n),t.text=n}if(e.hyperLink){const n=S.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=e.hyperLink,t.appendChild(n),t.link=n}else t.link&&(t.link=void 0);if(e.icons&&e.icons.length){const n=S.createElement("span");n.className="icons",n.innerHTML=e.icons.map(o=>`<span>${lt(o)}</span>`).join(""),t.appendChild(n),t.icons=n}else t.icons&&(t.icons=void 0);if(e.tags&&e.tags.length){const n=S.createElement("div");n.className="tags",n.innerHTML=e.tags.map(o=>`<span>${lt(o)}</span>`).join(""),t.appendChild(n),t.tags=n}else t.tags&&(t.tags=void 0)},zt=function(t,e){const n=S.createElement("me-wrapper"),{p:o,tpc:s}=this.createParent(t);if(n.appendChild(o),!e&&t.children&&t.children.length>0){const i=qt(t.expanded);if(o.appendChild(i),t.expanded!==!1){const r=Bt(this,t.children);n.appendChild(r)}}return{grp:n,top:o,tpc:s}},Ot=function(t){const e=S.createElement("me-parent"),n=this.createTopic(t);return dt(n,t),e.appendChild(n),{p:e,tpc:n}},Rt=function(t){const e=S.createElement("me-children");return e.append(...t),e},jt=function(t){const e=S.createElement("me-tpc");return e.nodeObj=t,e.dataset.nodeid="me"+t.id,e.draggable=this.draggable,e};function ut(t){const e=S.createRange();e.selectNodeContents(t);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(e))}const Vt=function(t){if(!t)return;const e=S.createElement("div"),n=t.text.textContent;t.appendChild(e),e.id="input-box",e.textContent=n,e.contentEditable="plaintext-only",e.spellcheck=!1;const o=getComputedStyle(t);e.style.cssText=`min-width:${t.offsetWidth-8}px;
3
3
  color:${o.color};
4
4
  padding:${o.padding};
@@ -15,4 +15,4 @@ var MindElixirLite=function(){"use strict";const ze="";(function(t){var e,n,o,s,
15
15
  `,ut(o),t.scrollIntoView(o),o.addEventListener("keydown",r=>{r.stopPropagation();const c=r.key;if(c==="Enter"||c==="Tab"){if(r.shiftKey)return;r.preventDefault(),o.blur(),t.map.focus()}}),o.addEventListener("blur",()=>{var c;if(!o)return;const r=((c=o.textContent)==null?void 0:c.trim())||"";r===""?n.label=s:n.label=r,o.remove(),r!==s&&(e.innerHTML=n.label,t.linkDiv(),"parent"in n?t.bus.fire("operation",{name:"finishEditSummary",obj:n}):t.bus.fire("operation",{name:"finishEditArrowLabel",obj:n}))})},It=function(t){const e=this.map.querySelector("me-root"),n=e.offsetTop,o=e.offsetLeft,s=e.offsetWidth,i=e.offsetHeight,c=this.nodes.offsetWidth;this.nodes.style.top=`${1e4-this.nodes.offsetHeight/2}px`,this.alignment==="root"?this.nodes.style.left=`${1e4-o-s/2}px`:this.nodes.style.left=`${1e4-c/2}px`;const l=this.map.querySelectorAll("me-main > me-wrapper");this.lines.innerHTML="";for(let f=0;f<l.length;f++){const a=l[f],u=a.querySelector("me-tpc"),{offsetLeft:h,offsetTop:g}=A(this.nodes,u),d=u.offsetWidth,p=u.offsetHeight,m=a.parentNode.className,v=this.generateMainBranch({pT:n,pL:o,pW:s,pH:i,cT:g,cL:h,cW:d,cH:p,direction:m,containerHeight:this.nodes.offsetHeight}),y=this.theme.palette,b=u.nodeObj.branchColor||y[f%y.length];u.style.borderColor=b,this.lines.appendChild(ft(v,b,"3"));const x=a.children[0].children[1];if(x&&(x.style.top=(x.parentNode.offsetHeight-x.offsetHeight)/2+"px",m===M.LHS?x.style.left="-10px":x.style.right="-10px"),t&&t!==a)continue;const w=F("subLines"),T=a.lastChild;T.tagName==="svg"&&T.remove(),a.appendChild(w),gt(this,w,b,a,m,!0)}this.renderArrow(),this.renderSummary(),this.bus.fire("linkDiv")},gt=function(t,e,n,o,s,i){const r=o.firstChild,c=o.children[1].children;if(c.length===0)return;const l=r.offsetTop,f=r.offsetLeft,a=r.offsetWidth,u=r.offsetHeight;for(let h=0;h<c.length;h++){const g=c[h],d=g.firstChild,p=d.offsetTop,m=d.offsetLeft,v=d.offsetWidth,y=d.offsetHeight,b=d.firstChild.nodeObj.branchColor||n,x=t.generateSubBranch({pT:l,pL:f,pW:a,pH:u,cT:p,cL:m,cW:v,cH:y,direction:s,isFirst:i});e.appendChild(ft(x,b,"2"));const w=d.children[1];if(w){if(w.style.bottom=-(w.offsetHeight/2)+"px",s===M.LHS?w.style.left="10px":s===M.RHS&&(w.style.right="10px"),!w.expanded)continue}else continue;gt(t,e,b,g,s)}},Oe="",Re="",D=(t,e)=>{const n=document.createElement("span");return n.id=t,n.innerHTML=`<svg class="icon" aria-hidden="true">
16
16
  <use xlink:href="#icon-${e}"></use>
17
17
  </svg>`,n};function Wt(t){const e=document.createElement("div"),n=D("fullscreen","full"),o=D("toCenter","living"),s=D("zoomout","move"),i=D("zoomin","add"),r=document.createElement("span");return r.innerText="100%",e.appendChild(n),e.appendChild(o),e.appendChild(s),e.appendChild(i),e.className="mind-elixir-toolbar rb",n.onclick=()=>{t.el.requestFullscreen()},o.onclick=()=>{t.toCenter()},s.onclick=()=>{t.scaleVal<.6||t.scale(t.scaleVal-.2)},i.onclick=()=>{t.scaleVal>1.6||t.scale(t.scaleVal+.2)},e}function Xt(t){const e=document.createElement("div"),n=D("tbltl","left"),o=D("tbltr","right"),s=D("tblts","side");return e.appendChild(n),e.appendChild(o),e.appendChild(s),e.className="mind-elixir-toolbar lt",n.onclick=()=>{t.initLeft()},o.onclick=()=>{t.initRight()},s.onclick=()=>{t.initSide()},e}function Yt(t){t.container.append(Wt(t)),t.container.append(Xt(t))}/*! @viselect/vanilla v3.5.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */var Gt=Object.defineProperty,Kt=(t,e,n)=>e in t?Gt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,E=(t,e,n)=>(Kt(t,typeof e!="symbol"?e+"":e,n),n);class Ut{constructor(){E(this,"_listeners",new Map),E(this,"on",this.addEventListener),E(this,"off",this.removeEventListener),E(this,"emit",this.dispatchEvent)}addEventListener(e,n){const o=this._listeners.get(e)??new Set;return this._listeners.set(e,o),o.add(n),this}removeEventListener(e,n){var o;return(o=this._listeners.get(e))==null||o.delete(n),this}dispatchEvent(e,...n){let o=!0;for(const s of this._listeners.get(e)??[])o=s(...n)!==!1&&o;return o}unbindAllListeners(){this._listeners.clear()}}const vt=(t,e="px")=>typeof t=="number"?t+e:t;function k({style:t},e,n){if(typeof e=="object")for(const[o,s]of Object.entries(e))s!==void 0&&(t[o]=vt(s));else n!==void 0&&(t[e]=vt(n))}const yt=t=>(e,n,o,s={})=>{e instanceof HTMLCollection||e instanceof NodeList?e=Array.from(e):Array.isArray(e)||(e=[e]),Array.isArray(n)||(n=[n]);for(const i of e)if(i)for(const r of n)i[t](r,o,{capture:!1,...s});return[e,n,o,s]},R=yt("addEventListener"),N=yt("removeEventListener"),G=t=>{var e;const{clientX:n,clientY:o,target:s}=((e=t.touches)==null?void 0:e[0])??t;return{x:n,y:o,target:s}};function bt(t,e,n="touch"){switch(n){case"center":{const o=e.left+e.width/2,s=e.top+e.height/2;return o>=t.left&&o<=t.right&&s>=t.top&&s<=t.bottom}case"cover":return e.left>=t.left&&e.top>=t.top&&e.right<=t.right&&e.bottom<=t.bottom;case"touch":return t.right>=e.left&&t.left<=e.right&&t.bottom>=e.top&&t.top<=e.bottom}}function j(t,e=document){const n=Array.isArray(t)?t:[t];let o=[];for(let s=0,i=n.length;s<i;s++){const r=n[s];typeof r=="string"?o=o.concat(Array.from(e.querySelectorAll(r))):r instanceof Element&&o.push(r)}return o}const Jt=()=>matchMedia("(hover: none), (pointer: coarse)").matches,Qt=()=>"safari"in window,Zt=t=>{let e,n=-1,o=!1;return{next(...s){e=s,o||(o=!0,n=requestAnimationFrame(()=>{t(...e),o=!1}))},cancel(){cancelAnimationFrame(n),o=!1}}};function te(t,e){for(const n of e){if(typeof n=="number")return t.button===n;if(typeof n=="object"){const o=n.button===t.button,s=n.modifiers.every(i=>{switch(i){case"alt":return t.altKey;case"ctrl":return t.ctrlKey||t.metaKey;case"shift":return t.shiftKey}});return o&&s}}return!1}const{abs:P,max:xt,min:wt,ceil:_t}=Math;class ee extends Ut{constructor(e){var n,o,s,i,r;super(),E(this,"_options"),E(this,"_selection",{stored:[],selected:[],touched:[],changed:{added:[],removed:[]}}),E(this,"_area"),E(this,"_clippingElement"),E(this,"_targetElement"),E(this,"_targetRect"),E(this,"_selectables",[]),E(this,"_latestElement"),E(this,"_areaRect",new DOMRect),E(this,"_areaLocation",{y1:0,x2:0,y2:0,x1:0}),E(this,"_singleClick",!0),E(this,"_frame"),E(this,"_scrollAvailable",!0),E(this,"_scrollingActive",!1),E(this,"_scrollSpeed",{x:0,y:0}),E(this,"_scrollDelta",{x:0,y:0}),E(this,"disable",this._bindStartEvents.bind(this,!1)),E(this,"enable",this._bindStartEvents),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...e,behaviour:{overlap:"invert",intersect:"touch",triggers:[0],...e.behaviour,startThreshold:(n=e.behaviour)!=null&&n.startThreshold?typeof e.behaviour.startThreshold=="number"?e.behaviour.startThreshold:{x:10,y:10,...e.behaviour.startThreshold}:{x:10,y:10},scrolling:{speedDivider:10,manualSpeed:750,...(o=e.behaviour)==null?void 0:o.scrolling,startScrollMargins:{x:0,y:0,...(i=(s=e.behaviour)==null?void 0:s.scrolling)==null?void 0:i.startScrollMargins}}},features:{range:!0,touch:!0,...e.features,singleTap:{allow:!0,intersect:"native",...(r=e.features)==null?void 0:r.singleTap}}};for(const a of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))typeof this[a]=="function"&&(this[a]=this[a].bind(this));const{document:c,selectionAreaClass:l,selectionContainerClass:f}=this._options;this._area=c.createElement("div"),this._clippingElement=c.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(l),f&&this._clippingElement.classList.add(f),k(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),k(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=Zt(a=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",a),this._redrawSelectionArea()}),this.enable()}_bindStartEvents(e=!0){const{document:n,features:o}=this._options,s=e?R:N;s(n,"mousedown",this._onTapStart),o.touch&&s(n,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(e,n=!1){const{x:o,y:s,target:i}=G(e),{_options:r}=this,{document:c}=this._options,l=i.getBoundingClientRect();if(e instanceof MouseEvent&&!te(e,r.behaviour.triggers))return;const f=j(r.startAreas,r.document),a=j(r.boundaries,r.document);this._targetElement=a.find(g=>bt(g.getBoundingClientRect(),l));const u=e.composedPath();if(!this._targetElement||!f.find(g=>u.includes(g))||!a.find(g=>u.includes(g))||!n&&this._emitEvent("beforestart",e)===!1)return;this._areaLocation={x1:o,y1:s,x2:0,y2:0};const h=c.scrollingElement??c.body;this._scrollDelta={x:h.scrollLeft,y:h.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),R(c,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),R(c,["mouseup","touchcancel","touchend"],this._onTapStop),R(c,"scroll",this._onScroll)}_onSingleTap(e){const{singleTap:{intersect:n},range:o}=this._options.features,s=G(e);let i;if(n==="native")i=s.target;else if(n==="touch"){this.resolveSelectables();const{x:c,y:l}=s;i=this._selectables.find(f=>{const{right:a,left:u,top:h,bottom:g}=f.getBoundingClientRect();return c<a&&c>u&&l<g&&l>h})}if(!i)return;for(this.resolveSelectables();!this._selectables.includes(i);){if(!i.parentElement)return;i=i.parentElement}const{stored:r}=this._selection;if(this._emitEvent("start",e),e.shiftKey&&o&&this._latestElement){const c=this._latestElement,[l,f]=c.compareDocumentPosition(i)&4?[i,c]:[c,i],a=[...this._selectables.filter(u=>u.compareDocumentPosition(l)&4&&u.compareDocumentPosition(f)&2),l,f];this.select(a),this._latestElement=c}else r.includes(i)&&(r.length===1||e.ctrlKey||r.every(c=>this._selection.stored.includes(c)))?this.deselect(i):(this.select(i),this._latestElement=i)}_delayedTapMove(e){const{container:n,document:o,behaviour:{startThreshold:s}}=this._options,{x1:i,y1:r}=this._areaLocation,{x:c,y:l}=G(e);if(typeof s=="number"&&P(c+l-(i+r))>=s||typeof s=="object"&&P(c-i)>=s.x||P(l-r)>=s.y){if(N(o,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),this._emitEvent("beforedrag",e)===!1){N(o,["mouseup","touchcancel","touchend"],this._onTapStop);return}R(o,["mousemove","touchmove"],this._onTapMove,{passive:!1}),k(this._area,"display","block"),j(n,o)[0].appendChild(this._clippingElement),this.resolveSelectables(),this._singleClick=!1,this._targetRect=this._targetElement.getBoundingClientRect(),this._scrollAvailable=this._targetElement.scrollHeight!==this._targetElement.clientHeight||this._targetElement.scrollWidth!==this._targetElement.clientWidth,this._scrollAvailable&&(R(this._targetElement,"wheel",this._manualScroll,{passive:!1}),this._selectables=this._selectables.filter(f=>this._targetElement.contains(f))),this._setupSelectionArea(),this._emitEvent("start",e),this._onTapMove(e)}this._handleMoveEvent(e)}_setupSelectionArea(){const{_clippingElement:e,_targetElement:n,_area:o}=this,s=this._targetRect=n.getBoundingClientRect();this._scrollAvailable?(k(e,{top:s.top,left:s.left,width:s.width,height:s.height}),k(o,{marginTop:-s.top,marginLeft:-s.left})):(k(e,{top:0,left:0,width:"100%",height:"100%"}),k(o,{marginTop:0,marginLeft:0}))}_onTapMove(e){const{x:n,y:o}=G(e),{_scrollSpeed:s,_areaLocation:i,_options:r,_frame:c}=this,{speedDivider:l}=r.behaviour.scrolling,f=this._targetElement;if(i.x2=n,i.y2=o,this._scrollAvailable&&!this._scrollingActive&&(s.y||s.x)){this._scrollingActive=!0;const a=()=>{if(!s.x&&!s.y){this._scrollingActive=!1;return}const{scrollTop:u,scrollLeft:h}=f;s.y&&(f.scrollTop+=_t(s.y/l),i.y1-=f.scrollTop-u),s.x&&(f.scrollLeft+=_t(s.x/l),i.x1-=f.scrollLeft-h),c.next(e),requestAnimationFrame(a)};requestAnimationFrame(a)}else c.next(e);this._handleMoveEvent(e)}_handleMoveEvent(e){const{features:n}=this._options;(n.touch&&Jt()||this._scrollAvailable&&Qt())&&e.preventDefault()}_onScroll(){const{_scrollDelta:e,_options:{document:n}}=this,{scrollTop:o,scrollLeft:s}=n.scrollingElement??n.body;this._areaLocation.x1+=e.x-s,this._areaLocation.y1+=e.y-o,e.x=s,e.y=o,this._setupSelectionArea(),this._frame.next(null)}_manualScroll(e){const{manualSpeed:n}=this._options.behaviour.scrolling,o=e.deltaY?e.deltaY>0?1:-1:0,s=e.deltaX?e.deltaX>0?1:-1:0;this._scrollSpeed.y+=o*n,this._scrollSpeed.x+=s*n,this._onTapMove(e),e.preventDefault()}_recalculateSelectionAreaRect(){const{_scrollSpeed:e,_areaLocation:n,_areaRect:o,_targetElement:s,_options:i}=this,{scrollTop:r,scrollHeight:c,clientHeight:l,scrollLeft:f,scrollWidth:a,clientWidth:u}=s,h=this._targetRect,{x1:g,y1:d}=n;let{x2:p,y2:m}=n;const{behaviour:{scrolling:{startScrollMargins:v}}}=i;p<h.left+v.x?(e.x=f?-P(h.left-p+v.x):0,p=p<h.left?h.left:p):p>h.right-v.x?(e.x=a-f-u?P(h.left+h.width-p-v.x):0,p=p>h.right?h.right:p):e.x=0,m<h.top+v.y?(e.y=r?-P(h.top-m+v.y):0,m=m<h.top?h.top:m):m>h.bottom-v.y?(e.y=c-r-l?P(h.top+h.height-m-v.y):0,m=m>h.bottom?h.bottom:m):e.y=0;const y=wt(g,p),b=wt(d,m),x=xt(g,p),w=xt(d,m);o.x=y,o.y=b,o.width=x-y,o.height=w-b}_redrawSelectionArea(){const{x:e,y:n,width:o,height:s}=this._areaRect,{style:i}=this._area;i.left=`${e}px`,i.top=`${n}px`,i.width=`${o}px`,i.height=`${s}px`}_onTapStop(e,n){var o;const{document:s,features:i}=this._options,{_singleClick:r}=this;N(s,["mousemove","touchmove"],this._delayedTapMove),N(s,["touchmove","mousemove"],this._onTapMove),N(s,["mouseup","touchcancel","touchend"],this._onTapStop),N(s,"scroll",this._onScroll),this._keepSelection(),e&&r&&i.singleTap.allow?this._onSingleTap(e):!r&&!n&&(this._updateElementSelection(),this._emitEvent("stop",e)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,N(this._targetElement,"wheel",this._manualScroll,{passive:!0}),this._clippingElement.remove(),(o=this._frame)==null||o.cancel(),k(this._area,"display","none")}_updateElementSelection(){const{_selectables:e,_options:n,_selection:o,_areaRect:s}=this,{stored:i,selected:r,touched:c}=o,{intersect:l,overlap:f}=n.behaviour,a=f==="invert",u=[],h=[],g=[];for(let p=0;p<e.length;p++){const m=e[p];if(bt(s,m.getBoundingClientRect(),l)){if(r.includes(m))i.includes(m)&&!c.includes(m)&&c.push(m);else if(a&&i.includes(m)){g.push(m);continue}else h.push(m);u.push(m)}}a&&h.push(...i.filter(p=>!r.includes(p)));const d=f==="keep";for(let p=0;p<r.length;p++){const m=r[p];!u.includes(m)&&!(d&&i.includes(m))&&g.push(m)}o.selected=u,o.changed={added:h,removed:g},this._latestElement=void 0}_emitEvent(e,n){return this.emit(e,{event:n,store:this._selection,selection:this})}_keepSelection(){const{_options:e,_selection:n}=this,{selected:o,changed:s,touched:i,stored:r}=n,c=o.filter(l=>!r.includes(l));switch(e.behaviour.overlap){case"drop":{n.stored=[...c,...r.filter(l=>!i.includes(l))];break}case"invert":{n.stored=[...c,...r.filter(l=>!s.removed.includes(l))];break}case"keep":{n.stored=[...r,...o.filter(l=>!r.includes(l))];break}}}trigger(e,n=!0){this._onTapStart(e,n)}resolveSelectables(){this._selectables=j(this._options.selectables,this._options.document)}clearSelection(e=!0,n=!1){const{selected:o,stored:s,changed:i}=this._selection;i.added=[],i.removed.push(...o,...e?s:[]),n||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection={stored:e?[]:s,selected:[],touched:[],changed:{added:[],removed:[]}}}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}cancel(e=!1){this._onTapStop(null,!e)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(e,n=!1){const{changed:o,selected:s,stored:i}=this._selection,r=j(e,this._options.document).filter(c=>!s.includes(c)&&!i.includes(c));return i.push(...r),s.push(...r),o.added.push(...r),o.removed=[],this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)),r}deselect(e,n=!1){const{selected:o,stored:s,changed:i}=this._selection,r=j(e,this._options.document).filter(c=>o.includes(c)||s.includes(c));r.length&&(this._selection.stored=s.filter(c=>!r.includes(c)),this._selection.selected=o.filter(c=>!r.includes(c)),this._selection.changed.added=[],this._selection.changed.removed.push(...r.filter(c=>!i.removed.includes(c))),this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)))}}E(ee,"version","3.5.1");const ne=function(t,e=!0){this.theme=t;const n=this.theme.cssVar,o=Object.keys(n);this.container.style.cssText="";for(let s=0;s<o.length;s++){const i=o[s];this.container.style.setProperty(i,n[i])}t.cssVar["--gap"]||this.container.style.setProperty("--gap","30px"),e&&this.refresh()},oe=function(t){const n=t.parentElement.parentElement.lastElementChild;(n==null?void 0:n.tagName)==="svg"&&(n==null||n.remove())};function se(t){return{nodeData:t.isFocusMode?t.nodeDataBackup:t.nodeData,arrows:t.arrows,summaries:t.summaries,direction:t.direction,theme:t.theme}}const ie=Object.freeze(Object.defineProperty({__proto__:null,cancelFocus:function(){this.isFocusMode=!1,this.tempDirection!==null&&(this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},clearSelection:function(){this.unselectNodes(this.currentNodes),this.unselectSummary(),this.unselectArrow()},disableEdit:function(){this.editable=!1},enableEdit:function(){this.editable=!0},expandNode:function(t,e){const n=t.nodeObj;typeof e=="boolean"?n.expanded=e:n.expanded!==!1?n.expanded=!1:n.expanded=!0;const o=t.parentNode,s=o.children[1];if(s.expanded=n.expanded,s.className=n.expanded?"minus":"",oe(t),n.expanded){const l=this.createChildren(n.children.map(f=>this.createWrapper(f).grp));o.parentNode.appendChild(l)}else o.parentNode.children[1].remove();this.linkDiv(t.closest("me-main > me-wrapper"));const i=t.getBoundingClientRect(),r=this.container.getBoundingClientRect();(i.bottom>r.bottom||i.top<r.top||i.right>r.right||i.left<r.left)&&this.scrollIntoView(t),this.bus.fire("expandNode",n)},expandNodeAll:function(t,e){const n=t.nodeObj,o=(s,i)=>{s.expanded=i,s.children&&s.children.forEach(r=>{o(r,i)})};typeof e=="boolean"?o(n,e):n.expanded!==!1?o(n,!1):o(n,!0),this.refresh()},focusNode:function(t){t.nodeObj.parent&&(this.clearSelection(),this.tempDirection===null&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=t.nodeObj,this.initRight(),this.toCenter())},getData:function(){return JSON.parse(this.getDataString())},getDataString:function(){const t=se(this);return JSON.stringify(t,(e,n)=>{if(!(e==="parent"&&typeof n!="string"))return n})},initLeft:function(){this.direction=0,this.refresh()},initRight:function(){this.direction=1,this.refresh()},initSide:function(){this.direction=2,this.refresh()},install:function(t){t(this)},move:function(t,e){const{map:n,scaleVal:o,container:s,bus:i}=this,r=n.style.transform,{x:c,y:l}=at(r),f=c+t,a=l+e,u=(1-o)*1e4,h=0-u,g=-2e4+s.offsetWidth+u,d=-2e4+s.offsetHeight+u,p=Math.min(h,Math.max(g,f)),m=Math.min(h,Math.max(d,a));n.style.transform=`translate(${p}px, ${m}px) scale(${o})`,i.fire("move",{dx:t,dy:e})},refresh:function(t){t&&(t=JSON.parse(JSON.stringify(t)),this.nodeData=t.nodeData,this.arrows=t.arrows||[],this.summaries=t.summaries||[]),nt(this.nodeData),this.layout(),this.linkDiv()},scale:function(t,e={x:0,y:0}){const n=this.container.getBoundingClientRect(),o=n.width/2-1e4,s=n.height/2-1e4,i=this.scaleVal,r=this.map.style.transform,{x:c,y:l}=at(r),f=c-(e.x-n.left-n.width/2),a=l-(e.y-n.top-n.height/2),u=(o-f)*(1-t/i),h=(s-a)*(1-t/i);this.map.style.transform=`translate(${c+u}px, ${l+h}px) scale(${t})`,this.scaleVal=t,this.bus.fire("scale",t)},scaleFit:function(){const t=this.nodes.offsetHeight/this.container.offsetHeight,e=this.nodes.offsetWidth/this.container.offsetWidth,n=1/Math.max(1,Math.max(t,e));this.scaleVal=n,this.map.style.transform="scale("+n+")",this.bus.fire("scale",n)},scrollIntoView:function(t){const e=this.container,n=t.getBoundingClientRect(),o=e.getBoundingClientRect();if(n.bottom>o.bottom||n.top<o.top||n.right>o.right||n.left<o.left){const i=n.left+n.width/2,r=n.top+n.height/2,c=o.left+o.width/2,l=o.top+o.height/2,f=i-c,a=r-l;this.move(-f,-a)}},selectNode:function(t,e,n){this.clearSelection(),this.scrollIntoView(t),this.selection.select(t),e&&this.bus.fire("selectNewNode",t.nodeObj)},selectNodes:function(t){this.selection.select(t)},setLocale:function(t){this.locale=t,this.refresh()},toCenter:function(){const t=this.container.getBoundingClientRect(),e=t.width/2-1e4,n=t.height/2-1e4;this.map.style.transform=`translate(${e}px, ${n}px) scale(${this.scaleVal})`},unselectNodes:function(t){this.selection.deselect(t)}},Symbol.toStringTag,{value:"Module"})),Et={create:function(t){return{dom:t,moved:!1,mousedown:!1,handleMouseMove(e){this.mousedown&&(this.moved=!0,this.cb&&this.cb(e.movementX,e.movementY))},handleMouseDown(e){e.button===0&&(this.mousedown=!0)},handleClear(e){this.mousedown=!1},cb:null,init(e,n){this.cb=n,this.handleClear=this.handleClear.bind(this),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseDown=this.handleMouseDown.bind(this),this.destroy=ht([{dom:e,evt:"mousemove",func:this.handleMouseMove},{dom:e,evt:"mouseleave",func:this.handleClear},{dom:e,evt:"mouseup",func:this.handleClear},{dom:this.dom,evt:"mousedown",func:this.handleMouseDown}])},destroy:null,clear(){this.moved=!1,this.mousedown=!1}}}};function K(t,e,n){const{offsetLeft:o,offsetTop:s}=A(t.nodes,e),i=e.offsetWidth,r=e.offsetHeight,c=o+i/2,l=s+r/2,f=c+n.x,a=l+n.y;return{w:i,h:r,cx:c,cy:l,ctrlX:f,ctrlY:a}}function V(t){let e,n;const o=(t.cy-t.ctrlY)/(t.ctrlX-t.cx);return o>t.h/t.w||o<-t.h/t.w?t.cy-t.ctrlY<0?(e=t.cx-t.h/2/o,n=t.cy+t.h/2):(e=t.cx+t.h/2/o,n=t.cy-t.h/2):t.cx-t.ctrlX<0?(e=t.cx+t.w/2,n=t.cy-t.w*o/2):(e=t.cx-t.w/2,n=t.cy+t.w*o/2),{x:e,y:n}}const re=function(t,e,n,o){const s=document.createElementNS("http://www.w3.org/2000/svg","text");return _(s,{"text-anchor":"middle",x:e+"",y:n+"",fill:o||"#666"}),s.dataset.type="custom-link",s.innerHTML=t,s},ot=function(t,e,n,o,s){if(!e||!n)return;performance.now();const i=K(t,e,o.delta1),r=K(t,n,o.delta2),{x:c,y:l}=V(i),{ctrlX:f,ctrlY:a}=i,{ctrlX:u,ctrlY:h}=r,{x:g,y:d}=V(r),p=X(u,h,g,d);if(!p)return;const m=`M ${p.x1} ${p.y1} L ${g} ${d} L ${p.x2} ${p.y2}`;let v="";if(o.bidirectional){const T=X(f,a,c,l);if(!T)return;v=`M ${T.x1} ${T.y1} L ${c} ${l} L ${T.x2} ${T.y2}`}const y=Ft(`M ${c} ${l} C ${f} ${a} ${u} ${h} ${g} ${d}`,m,v),b=c/8+f*3/8+u*3/8+g/8,x=l/8+a*3/8+h*3/8+d/8,w=re(o.label,b,x,t.theme.cssVar["--color"]);y.appendChild(w),y.label=w,y.arrowObj=o,y.dataset.linkid=o.id,t.linkSvgGroup.appendChild(y),s||(t.arrows.push(o),t.currentArrow=y,St(t,o,i,r)),performance.now()},ce=function(t,e,n={}){const o={id:q(),label:"Custom Link",from:t.nodeObj.id,to:e.nodeObj.id,delta1:{x:t.offsetWidth/2+100,y:0},delta2:{x:e.offsetWidth/2+100,y:0},...n};ot(this,t,e,o),this.bus.fire("operation",{name:"createArrow",obj:o})},le=function(t){const e={...t,id:q()};ot(this,L(e.from),L(e.to),e),this.bus.fire("operation",{name:"createArrow",obj:e})},ae=function(t){let e;if(t?e=t:e=this.currentArrow,!e)return;st(this);const n=e.arrowObj.id;this.arrows=this.arrows.filter(o=>o.id!==n),e.remove(),this.bus.fire("operation",{name:"removeArrow",obj:{id:n}})},he=function(t){this.currentArrow=t;const e=t.arrowObj,n=L(e.from),o=L(e.to),s=K(this,n,e.delta1),i=K(this,o,e.delta2);St(this,e,s,i)},de=function(){this.currentArrow=null,st(this)},st=function(t){var e,n;(e=t.helper1)==null||e.destroy(),(n=t.helper2)==null||n.destroy(),t.linkController.style.display="none",t.P2.style.display="none",t.P3.style.display="none"},St=function(t,e,n,o){t.linkController.style.display="initial",t.P2.style.display="initial",t.P3.style.display="initial",t.nodes.appendChild(t.linkController),t.nodes.appendChild(t.P2),t.nodes.appendChild(t.P3);let{x:s,y:i}=V(n),{ctrlX:r,ctrlY:c}=n,{ctrlX:l,ctrlY:f}=o,{x:a,y:u}=V(o);t.P2.style.cssText=`top:${c}px;left:${r}px;`,t.P3.style.cssText=`top:${f}px;left:${l}px;`,_(t.line1,{x1:s+"",y1:i+"",x2:r+"",y2:c+""}),_(t.line2,{x1:l+"",y1:f+"",x2:a+"",y2:u+""}),t.helper1=Et.create(t.P2),t.helper2=Et.create(t.P3),t.helper1.init(t.map,(h,g)=>{if(!t.currentArrow)return;r=r+h/t.scaleVal,c=c+g/t.scaleVal;const d=V({...n,ctrlX:r,ctrlY:c});s=d.x,i=d.y;const p=s/8+r*3/8+l*3/8+a/8,m=i/8+c*3/8+f*3/8+u/8;if(t.P2.style.top=c+"px",t.P2.style.left=r+"px",t.currentArrow.line.setAttribute("d",`M ${s} ${i} C ${r} ${c} ${l} ${f} ${a} ${u}`),e.bidirectional){const v=X(r,c,s,i);if(!v)return;t.currentArrow.arrow2.setAttribute("d",`M ${v.x1} ${v.y1} L ${s} ${i} L ${v.x2} ${v.y2}`)}_(t.currentArrow.label,{x:p+"",y:m+""}),_(t.line1,{x1:s+"",y1:i+"",x2:r+"",y2:c+""}),e.delta1.x=r-n.cx,e.delta1.y=c-n.cy,t.bus.fire("updateArrowDelta",e)}),t.helper2.init(t.map,(h,g)=>{if(!t.currentArrow)return;l=l+h/t.scaleVal,f=f+g/t.scaleVal;const d=V({...o,ctrlX:l,ctrlY:f});a=d.x,u=d.y;const p=s/8+r*3/8+l*3/8+a/8,m=i/8+c*3/8+f*3/8+u/8,v=X(l,f,a,u);v&&(t.P3.style.top=f+"px",t.P3.style.left=l+"px",t.currentArrow.line.setAttribute("d",`M ${s} ${i} C ${r} ${c} ${l} ${f} ${a} ${u}`),t.currentArrow.arrow1.setAttribute("d",`M ${v.x1} ${v.y1} L ${a} ${u} L ${v.x2} ${v.y2}`),_(t.currentArrow.label,{x:p+"",y:m+""}),_(t.line2,{x1:l+"",y1:f+"",x2:a+"",y2:u+""}),e.delta2.x=l-o.cx,e.delta2.y=f-o.cy,t.bus.fire("updateArrowDelta",e))})};function ue(){this.linkSvgGroup.innerHTML="";for(let t=0;t<this.arrows.length;t++){const e=this.arrows[t];try{ot(this,L(e.from),L(e.to),e,!0)}catch{}}this.nodes.appendChild(this.linkSvgGroup)}function fe(t){if(st(this),!t)return;const e=t.label;mt(this,e,t.arrowObj)}function pe(){this.arrows=this.arrows.filter(t=>W(t.from,this.nodeData)&&W(t.to,this.nodeData))}const me=Object.freeze(Object.defineProperty({__proto__:null,createArrow:ce,createArrowFrom:le,editArrowLabel:fe,removeArrow:ae,renderArrow:ue,selectArrow:he,tidyArrow:pe,unselectArrow:de},Symbol.toStringTag,{value:"Module"})),ge=function(t){var l,f;if(t.length===0)throw new Error("No selected node.");if(t.length===1){const a=t[0].nodeObj,u=t[0].nodeObj.parent;if(!u)throw new Error("Can not select root node.");const h=u.children.findIndex(g=>a===g);return{parent:u.id,start:h,end:h}}let e=0;const n=t.map(a=>{let u=a.nodeObj;const h=[];for(;u.parent;){const g=u.parent,d=g.children,p=d==null?void 0:d.indexOf(u);u=g,h.unshift({node:u,index:p})}return h.length>e&&(e=h.length),h});let o=0;t:for(;o<e;o++){const a=(l=n[0][o])==null?void 0:l.node;for(let u=1;u<n.length;u++)if(((f=n[u][o])==null?void 0:f.node)!==a)break t}if(!o)throw new Error("Can not select root node.");const s=n.map(a=>a[o-1].index).sort(),i=s[0]||0,r=s[s.length-1]||0,c=n[0][o-1].node;if(!c.parent)throw new Error("Please select nodes in the same main topic.");return{parent:c.id,start:i,end:r}},ve=function(t){const e=document.createElementNS("http://www.w3.org/2000/svg","g");return e.setAttribute("id",t),e},Ct=function(t,e){const n=document.createElementNS("http://www.w3.org/2000/svg","path");return _(n,{d:t,stroke:e||"#666",fill:"none","stroke-linecap":"round","stroke-width":"2"}),n},Tt=function(t,e,n,o,s){const i=document.createElementNS("http://www.w3.org/2000/svg","text");return _(i,{"text-anchor":o,x:e+"",y:n+"",fill:s||"#666"}),i.innerHTML=t,i},ye=t=>L(t).parentElement.parentElement,be=function({parent:t,start:e}){const n=L(t),o=n.nodeObj;let s;return o.parent?s=n.closest("me-main").className:s=L(o.children[e].id).closest("me-main").className,s},it=function(t,e){var T;const{id:n,label:o,parent:s,start:i,end:r}=e,c=t.nodes,f=L(s).nodeObj,a=be(e);let u=1/0,h=0,g=0,d=0;for(let B=i;B<=r;B++){const Lt=(T=f.children)==null?void 0:T[B];if(!Lt)return t.removeSummary(n),null;const Q=ye(Lt.id),{offsetLeft:Z,offsetTop:Mt}=A(c,Q),$t=i===r?10:20;B===i&&(g=Mt+$t),B===r&&(d=Mt+Q.offsetHeight-$t),Z<u&&(u=Z),Q.offsetWidth+Z>h&&(h=Q.offsetWidth+Z)}let p,m;const v=g+10,y=d+10,b=(v+y)/2,x=t.theme.cssVar["--color"];a===M.LHS?(p=Ct(`M ${u+10} ${v} c -5 0 -10 5 -10 10 L ${u} ${y-10} c 0 5 5 10 10 10 M ${u} ${b} h -10`,x),m=Tt(o,u-20,b+6,"end",x)):(p=Ct(`M ${h-10} ${v} c 5 0 10 5 10 10 L ${h} ${y-10} c 0 5 -5 10 -10 10 M ${h} ${b} h 10`,x),m=Tt(o,h+20,b+6,"start",x));const w=ve("s-"+n);return w.appendChild(p),w.appendChild(m),w.summaryObj=e,t.summarySvg.appendChild(w),w},xe=Object.freeze(Object.defineProperty({__proto__:null,createSummary:function(){if(!this.currentNodes)return;const t=this.currentNodes,{parent:e,start:n,end:o}=ge(t),s={id:q(),parent:e,start:n,end:o,label:"summary"},i=it(this,s);this.summaries.push(s),this.editSummary(i),this.bus.fire("operation",{name:"createSummary",obj:s})},createSummaryFrom:function(t){const e=q(),n={...t,id:e};it(this,n),this.summaries.push(n),this.bus.fire("operation",{name:"createSummary",obj:n})},editSummary:function(t){if(!t)return;const e=t.childNodes[1];mt(this,e,t.summaryObj)},removeSummary:function(t){var n;const e=this.summaries.findIndex(o=>o.id===t);e>-1&&(this.summaries.splice(e,1),(n=document.querySelector("#s-"+t))==null||n.remove()),this.bus.fire("operation",{name:"removeSummary",obj:{id:t}})},renderSummary:function(){this.summarySvg.innerHTML="",this.summaries.forEach(t=>{try{it(this,t)}catch{}}),this.nodes.insertAdjacentElement("beforeend",this.summarySvg)},selectSummary:function(t){const e=t.children[1].getBBox(),n=6,o=3,s=document.createElementNS("http://www.w3.org/2000/svg","rect");_(s,{x:e.x-n+"",y:e.y-n+"",width:e.width+n*2+"",height:e.height+n*2+"",rx:o+"",stroke:this.theme.cssVar["--selected"]||"#4dc4ff","stroke-width":"2",fill:"none"}),t.appendChild(s),this.currentSummary=t},unselectSummary:function(){var t,e;(e=(t=this.currentSummary)==null?void 0:t.querySelector("rect"))==null||e.remove(),this.currentSummary=null}},Symbol.toStringTag,{value:"Module"})),C="http://www.w3.org/2000/svg";function we(t,e){const n=document.createElementNS(C,"svg");return _(n,{version:"1.1",xmlns:C,height:t,width:e}),n}function _e(t,e){return(parseInt(t)-parseInt(e))/2}function Ee(t,e,n,o){const s=document.createElementNS(C,"g");let i="";return t.text?i=t.text.textContent:i=t.childNodes[0].textContent,i.split(`
18
- `).forEach((c,l)=>{const f=document.createElementNS(C,"text");_(f,{x:n+parseInt(e.paddingLeft)+"",y:o+parseInt(e.paddingTop)+_e(e.lineHeight,e.fontSize)*(l+1)+parseFloat(e.fontSize)*(l+1)+"","text-anchor":"start","font-family":e.fontFamily,"font-size":`${e.fontSize}`,"font-weight":`${e.fontWeight}`,fill:`${e.color}`}),f.innerHTML=c,s.appendChild(f)}),s}function Se(t,e,n,o){var c;let s="";(c=t.nodeObj)!=null&&c.dangerouslySetInnerHTML?s=t.nodeObj.dangerouslySetInnerHTML:t.text?s=t.text.textContent:s=t.childNodes[0].textContent;const i=document.createElementNS(C,"foreignObject");_(i,{x:n+parseInt(e.paddingLeft)+"",y:o+parseInt(e.paddingTop)+"",width:e.width,height:e.height});const r=document.createElement("div");return _(r,{xmlns:"http://www.w3.org/1999/xhtml",style:`font-family: ${e.fontFamily}; font-size: ${e.fontSize}; font-weight: ${e.fontWeight}; color: ${e.color}; white-space: pre-wrap;`}),r.innerHTML=s,i.appendChild(r),i}function Ce(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=A(t.nodes,e),i=document.createElementNS(C,"rect");return _(i,{x:o+"",y:s+"",rx:n.borderRadius,ry:n.borderRadius,width:n.width,height:n.height,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth}),i}function U(t,e,n=!1){const o=getComputedStyle(e),{offsetLeft:s,offsetTop:i}=A(t.nodes,e),r=document.createElementNS(C,"rect");_(r,{x:s+"",y:i+"",rx:o.borderRadius,ry:o.borderRadius,width:o.width,height:o.height,fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth});const c=document.createElementNS(C,"g");c.appendChild(r);let l;return n?l=Se(e,o,s,i):l=Ee(e,o,s,i),c.appendChild(l),c}function Te(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=A(t.nodes,e),i=document.createElementNS(C,"a"),r=document.createElementNS(C,"text");return _(r,{x:o+"",y:s+parseInt(n.fontSize)+"","text-anchor":"start","font-family":n.fontFamily,"font-size":`${n.fontSize}`,"font-weight":`${n.fontWeight}`,fill:`${n.color}`}),r.innerHTML=e.textContent,i.appendChild(r),i.setAttribute("href",e.href),i}function Le(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=A(t.nodes,e),i=document.createElementNS(C,"image");return _(i,{x:o+"",y:s+"",width:n.width+"",height:n.height+"",href:e.src}),i}const J=100,Me='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',$e=(t,e=!1)=>{var u,h,g;const n=t.nodes,o=n.offsetHeight+J*2,s=n.offsetWidth+J*2,i=we(o+"px",s+"px"),r=document.createElementNS(C,"svg"),c=document.createElementNS(C,"rect");_(c,{x:"0",y:"0",width:`${s}`,height:`${o}`,fill:t.theme.cssVar["--bgcolor"]}),i.appendChild(c),n.querySelectorAll(".subLines").forEach(d=>{const p=d.cloneNode(!0),{offsetLeft:m,offsetTop:v}=A(n,d.parentElement);p.setAttribute("x",`${m}`),p.setAttribute("y",`${v}`),r.appendChild(p)});const l=(u=n.querySelector(".lines"))==null?void 0:u.cloneNode(!0);l&&r.appendChild(l);const f=(h=n.querySelector(".topiclinks"))==null?void 0:h.cloneNode(!0);f&&r.appendChild(f);const a=(g=n.querySelector(".summary"))==null?void 0:g.cloneNode(!0);return a&&r.appendChild(a),n.querySelectorAll("me-tpc").forEach(d=>{d.nodeObj.dangerouslySetInnerHTML?r.appendChild(U(t,d,!e)):(r.appendChild(Ce(t,d)),r.appendChild(U(t,d.text,!e)))}),n.querySelectorAll(".tags > span").forEach(d=>{r.appendChild(U(t,d))}),n.querySelectorAll(".icons > span").forEach(d=>{r.appendChild(U(t,d))}),n.querySelectorAll(".hyper-link").forEach(d=>{r.appendChild(Te(t,d))}),n.querySelectorAll("img").forEach(d=>{r.appendChild(Le(t,d))}),_(r,{x:J+"",y:J+"",overflow:"visible"}),i.appendChild(r),i},Ae=(t,e)=>(e&&t.insertAdjacentHTML("afterbegin","<style>"+e+"</style>"),Me+t.outerHTML);function ke(t){return new Promise((e,n)=>{const o=new FileReader;o.onload=s=>{e(s.target.result)},o.onerror=s=>{n(s)},o.readAsDataURL(t)})}const Ne={getObjById:W,generateNewObj:At,layout:Dt,linkDiv:It,editTopic:Vt,createWrapper:zt,createParent:Ot,createChildren:Rt,createTopic:jt,findEle:L,changeTheme:ne,...ie,...{},...me,...xe,...Object.freeze(Object.defineProperty({__proto__:null,exportPng:async function(t=!1,e){const n=this.exportSvg(t,e),o=await ke(n);return new Promise((s,i)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{const c=document.createElement("canvas");c.width=r.width,c.height=r.height,c.getContext("2d").drawImage(r,0,0),c.toBlob(s,"image/png",1)},r.src=o,r.onerror=i})},exportSvg:function(t=!1,e){const n=$e(this,t),o=Ae(n,e);return new Blob([o],{type:"image/svg+xml"})}},Symbol.toStringTag,{value:"Module"})),init(t){if(t=JSON.parse(JSON.stringify(t)),!t||!t.nodeData)return new Error("MindElixir: `data` is required");t.direction!==void 0&&(this.direction=t.direction),this.changeTheme(t.theme||this.theme,!1),this.nodeData=t.nodeData,nt(this.nodeData),this.arrows=t.arrows||[],this.summaries=t.summaries||[],this.tidyArrow(),this.toolBar&&Yt(this),this.toCenter(),this.layout(),this.linkDiv()},destroy(){var t;this.disposable.forEach(e=>e()),this.el&&(this.el.innerHTML=""),this.el=void 0,this.nodeData=void 0,this.arrows=void 0,this.summaries=void 0,this.currentArrow=void 0,this.currentNodes=void 0,this.currentSummary=void 0,this.waitCopy=void 0,this.theme=void 0,this.direction=void 0,this.bus=void 0,this.container=void 0,this.map=void 0,this.lines=void 0,this.linkController=void 0,this.linkSvgGroup=void 0,this.P2=void 0,this.P3=void 0,this.line1=void 0,this.line2=void 0,this.nodes=void 0,(t=this.selection)==null||t.destroy(),this.selection=void 0}};function He({pT:t,pL:e,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:l,containerHeight:f}){let a=e+n/2;const u=t+o/2;let h;l===M.LHS?h=i+r:h=i;const g=s+c/2,p=(1-Math.abs(g-u)/f)*.25*(n/2);return l===M.LHS?a=a-n/10-p:a=a+n/10+p,`M ${a} ${u} Q ${a} ${g} ${h} ${g}`}function De({pT:t,pL:e,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:l,isFirst:f}){const a=parseInt(this.container.style.getPropertyValue("--gap"));let u=0,h=0;f?u=t+o/2:u=t+o;const g=s+c;let d=0,p=0,m=0;const v=Math.abs(u-g)/300*a;return l===M.LHS?(m=e,d=m+a,p=m-a,h=i+a,`M ${d} ${u} C ${m} ${u} ${m+v} ${g} ${p} ${g} H ${h}`):(m=e+n,d=m-a,p=m+a,h=i+r-a,`M ${d} ${u} C ${m} ${u} ${m-v} ${g} ${p} ${g} H ${h}`)}const Pe="5.0.0-beta.21";function Be(t){return{x:0,y:0,moved:!1,mousedown:!1,onMove(e){if(this.mousedown){this.moved=!0;const n=e.movementX,o=e.movementY;t.move(n,o)}},clear(){setTimeout(()=>{this.moved=!1,this.mousedown=!1,t.map.style.transition="transform 0.3s"},0)}}}const I=document;function $({el:t,direction:e,locale:n,draggable:o,editable:s,contextMenu:i,toolBar:r,keypress:c,mouseSelectionButton:l,selectionContainer:f,before:a,newTopicName:u,allowUndo:h,generateMainBranch:g,generateSubBranch:d,overflowHidden:p,theme:m,alignment:v}){let y=null;const b=Object.prototype.toString.call(t);if(b==="[object HTMLDivElement]"?y=t:b==="[object String]"&&(y=document.querySelector(t)),!y)throw new Error("MindElixir: el is not a valid element");y.style.position="relative",y.innerHTML="",this.el=y,this.disposable=[],this.before=a||{},this.locale=n||"en",this.contextMenu=i===void 0?!0:i,this.toolBar=r===void 0?!0:r,this.keypress=c===void 0?!0:c,this.mouseSelectionButton=l||0,this.direction=typeof e=="number"?e:1,this.draggable=o===void 0?!0:o,this.newTopicName=u||"new node",this.editable=s===void 0?!0:s,this.allowUndo=h===void 0?!1:h,this.currentNodes=[],this.currentArrow=null,this.scaleVal=1,this.tempDirection=null,this.generateMainBranch=g||He,this.generateSubBranch=d||De,this.overflowHidden=p||!1,this.dragMoveHelper=Be(this),this.bus=Ht(),this.container=I.createElement("div"),this.selectionContainer=f||this.container,this.container.className="map-container";const x=window.matchMedia("(prefers-color-scheme: dark)");this.theme=m||(x.matches?ct:rt);const w=I.createElement("div");w.className="map-canvas",setTimeout(()=>{w.style.transition="all 0.3s"},300),this.map=w,this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.el.appendChild(this.container),this.nodes=I.createElement("me-nodes"),this.nodes.className="main-node-container",this.lines=F("lines"),this.summarySvg=F("summary"),this.linkController=F("linkcontroller"),this.P2=I.createElement("div"),this.P3=I.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=pt(),this.line2=pt(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=F("topiclinks"),this.alignment=v??"root",this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":this.disposable.push(Nt(this))}return $.prototype=Ne,Object.defineProperty($.prototype,"currentNode",{get(){return this.currentNodes.at(-1)},enumerable:!0}),$.LEFT=z,$.RIGHT=tt,$.SIDE=et,$.THEME=rt,$.DARK_THEME=ct,$.version=Pe,$.E=L,$}();
18
+ `).forEach((c,l)=>{const f=document.createElementNS(C,"text");_(f,{x:n+parseInt(e.paddingLeft)+"",y:o+parseInt(e.paddingTop)+_e(e.lineHeight,e.fontSize)*(l+1)+parseFloat(e.fontSize)*(l+1)+"","text-anchor":"start","font-family":e.fontFamily,"font-size":`${e.fontSize}`,"font-weight":`${e.fontWeight}`,fill:`${e.color}`}),f.innerHTML=c,s.appendChild(f)}),s}function Se(t,e,n,o){var c;let s="";(c=t.nodeObj)!=null&&c.dangerouslySetInnerHTML?s=t.nodeObj.dangerouslySetInnerHTML:t.text?s=t.text.textContent:s=t.childNodes[0].textContent;const i=document.createElementNS(C,"foreignObject");_(i,{x:n+parseInt(e.paddingLeft)+"",y:o+parseInt(e.paddingTop)+"",width:e.width,height:e.height});const r=document.createElement("div");return _(r,{xmlns:"http://www.w3.org/1999/xhtml",style:`font-family: ${e.fontFamily}; font-size: ${e.fontSize}; font-weight: ${e.fontWeight}; color: ${e.color}; white-space: pre-wrap;`}),r.innerHTML=s,i.appendChild(r),i}function Ce(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=A(t.nodes,e),i=document.createElementNS(C,"rect");return _(i,{x:o+"",y:s+"",rx:n.borderRadius,ry:n.borderRadius,width:n.width,height:n.height,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth}),i}function U(t,e,n=!1){const o=getComputedStyle(e),{offsetLeft:s,offsetTop:i}=A(t.nodes,e),r=document.createElementNS(C,"rect");_(r,{x:s+"",y:i+"",rx:o.borderRadius,ry:o.borderRadius,width:o.width,height:o.height,fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth});const c=document.createElementNS(C,"g");c.appendChild(r);let l;return n?l=Se(e,o,s,i):l=Ee(e,o,s,i),c.appendChild(l),c}function Te(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=A(t.nodes,e),i=document.createElementNS(C,"a"),r=document.createElementNS(C,"text");return _(r,{x:o+"",y:s+parseInt(n.fontSize)+"","text-anchor":"start","font-family":n.fontFamily,"font-size":`${n.fontSize}`,"font-weight":`${n.fontWeight}`,fill:`${n.color}`}),r.innerHTML=e.textContent,i.appendChild(r),i.setAttribute("href",e.href),i}function Le(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=A(t.nodes,e),i=document.createElementNS(C,"image");return _(i,{x:o+"",y:s+"",width:n.width+"",height:n.height+"",href:e.src}),i}const J=100,Me='<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">',$e=(t,e=!1)=>{var u,h,g;const n=t.nodes,o=n.offsetHeight+J*2,s=n.offsetWidth+J*2,i=we(o+"px",s+"px"),r=document.createElementNS(C,"svg"),c=document.createElementNS(C,"rect");_(c,{x:"0",y:"0",width:`${s}`,height:`${o}`,fill:t.theme.cssVar["--bgcolor"]}),i.appendChild(c),n.querySelectorAll(".subLines").forEach(d=>{const p=d.cloneNode(!0),{offsetLeft:m,offsetTop:v}=A(n,d.parentElement);p.setAttribute("x",`${m}`),p.setAttribute("y",`${v}`),r.appendChild(p)});const l=(u=n.querySelector(".lines"))==null?void 0:u.cloneNode(!0);l&&r.appendChild(l);const f=(h=n.querySelector(".topiclinks"))==null?void 0:h.cloneNode(!0);f&&r.appendChild(f);const a=(g=n.querySelector(".summary"))==null?void 0:g.cloneNode(!0);return a&&r.appendChild(a),n.querySelectorAll("me-tpc").forEach(d=>{d.nodeObj.dangerouslySetInnerHTML?r.appendChild(U(t,d,!e)):(r.appendChild(Ce(t,d)),r.appendChild(U(t,d.text,!e)))}),n.querySelectorAll(".tags > span").forEach(d=>{r.appendChild(U(t,d))}),n.querySelectorAll(".icons > span").forEach(d=>{r.appendChild(U(t,d))}),n.querySelectorAll(".hyper-link").forEach(d=>{r.appendChild(Te(t,d))}),n.querySelectorAll("img").forEach(d=>{r.appendChild(Le(t,d))}),_(r,{x:J+"",y:J+"",overflow:"visible"}),i.appendChild(r),i},Ae=(t,e)=>(e&&t.insertAdjacentHTML("afterbegin","<style>"+e+"</style>"),Me+t.outerHTML);function ke(t){return new Promise((e,n)=>{const o=new FileReader;o.onload=s=>{e(s.target.result)},o.onerror=s=>{n(s)},o.readAsDataURL(t)})}const Ne={getObjById:W,generateNewObj:At,layout:Dt,linkDiv:It,editTopic:Vt,createWrapper:zt,createParent:Ot,createChildren:Rt,createTopic:jt,findEle:L,changeTheme:ne,...ie,...{},...me,...xe,...Object.freeze(Object.defineProperty({__proto__:null,exportPng:async function(t=!1,e){const n=this.exportSvg(t,e),o=await ke(n);return new Promise((s,i)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{const c=document.createElement("canvas");c.width=r.width,c.height=r.height,c.getContext("2d").drawImage(r,0,0),c.toBlob(s,"image/png",1)},r.src=o,r.onerror=i})},exportSvg:function(t=!1,e){const n=$e(this,t),o=Ae(n,e);return new Blob([o],{type:"image/svg+xml"})}},Symbol.toStringTag,{value:"Module"})),init(t){if(t=JSON.parse(JSON.stringify(t)),!t||!t.nodeData)return new Error("MindElixir: `data` is required");t.direction!==void 0&&(this.direction=t.direction),this.changeTheme(t.theme||this.theme,!1),this.nodeData=t.nodeData,nt(this.nodeData),this.arrows=t.arrows||[],this.summaries=t.summaries||[],this.tidyArrow(),this.toolBar&&Yt(this),this.toCenter(),this.layout(),this.linkDiv()},destroy(){var t;this.disposable.forEach(e=>e()),this.el&&(this.el.innerHTML=""),this.el=void 0,this.nodeData=void 0,this.arrows=void 0,this.summaries=void 0,this.currentArrow=void 0,this.currentNodes=void 0,this.currentSummary=void 0,this.waitCopy=void 0,this.theme=void 0,this.direction=void 0,this.bus=void 0,this.container=void 0,this.map=void 0,this.lines=void 0,this.linkController=void 0,this.linkSvgGroup=void 0,this.P2=void 0,this.P3=void 0,this.line1=void 0,this.line2=void 0,this.nodes=void 0,(t=this.selection)==null||t.destroy(),this.selection=void 0}};function He({pT:t,pL:e,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:l,containerHeight:f}){let a=e+n/2;const u=t+o/2;let h;l===M.LHS?h=i+r:h=i;const g=s+c/2,p=(1-Math.abs(g-u)/f)*.25*(n/2);return l===M.LHS?a=a-n/10-p:a=a+n/10+p,`M ${a} ${u} Q ${a} ${g} ${h} ${g}`}function De({pT:t,pL:e,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:l,isFirst:f}){const a=parseInt(this.container.style.getPropertyValue("--gap"));let u=0,h=0;f?u=t+o/2:u=t+o;const g=s+c;let d=0,p=0,m=0;const v=Math.abs(u-g)/300*a;return l===M.LHS?(m=e,d=m+a,p=m-a,h=i+a,`M ${d} ${u} C ${m} ${u} ${m+v} ${g} ${p} ${g} H ${h}`):(m=e+n,d=m-a,p=m+a,h=i+r-a,`M ${d} ${u} C ${m} ${u} ${m-v} ${g} ${p} ${g} H ${h}`)}const Pe="5.0.0-beta.22";function Be(t){return{x:0,y:0,moved:!1,mousedown:!1,onMove(e){if(this.mousedown){this.moved=!0;const n=e.movementX,o=e.movementY;t.move(n,o)}},clear(){setTimeout(()=>{this.moved=!1,this.mousedown=!1,t.map.style.transition="transform 0.3s"},0)}}}const I=document;function $({el:t,direction:e,locale:n,draggable:o,editable:s,contextMenu:i,toolBar:r,keypress:c,mouseSelectionButton:l,selectionContainer:f,before:a,newTopicName:u,allowUndo:h,generateMainBranch:g,generateSubBranch:d,overflowHidden:p,theme:m,alignment:v}){let y=null;const b=Object.prototype.toString.call(t);if(b==="[object HTMLDivElement]"?y=t:b==="[object String]"&&(y=document.querySelector(t)),!y)throw new Error("MindElixir: el is not a valid element");y.style.position="relative",y.innerHTML="",this.el=y,this.disposable=[],this.before=a||{},this.locale=n||"en",this.contextMenu=i===void 0?!0:i,this.toolBar=r===void 0?!0:r,this.keypress=c===void 0?!0:c,this.mouseSelectionButton=l||0,this.direction=typeof e=="number"?e:1,this.draggable=o===void 0?!0:o,this.newTopicName=u||"new node",this.editable=s===void 0?!0:s,this.allowUndo=h===void 0?!1:h,this.currentNodes=[],this.currentArrow=null,this.scaleVal=1,this.tempDirection=null,this.generateMainBranch=g||He,this.generateSubBranch=d||De,this.overflowHidden=p||!1,this.dragMoveHelper=Be(this),this.bus=Ht(),this.container=I.createElement("div"),this.selectionContainer=f||this.container,this.container.className="map-container";const x=window.matchMedia("(prefers-color-scheme: dark)");this.theme=m||(x.matches?ct:rt);const w=I.createElement("div");w.className="map-canvas",setTimeout(()=>{w.style.transition="all 0.3s"},300),this.map=w,this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.el.appendChild(this.container),this.nodes=I.createElement("me-nodes"),this.nodes.className="main-node-container",this.lines=F("lines"),this.summarySvg=F("summary"),this.linkController=F("linkcontroller"),this.P2=I.createElement("div"),this.P3=I.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=pt(),this.line2=pt(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=F("topiclinks"),this.alignment=v??"root",this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":this.disposable.push(Nt(this))}return $.prototype=Ne,Object.defineProperty($.prototype,"currentNode",{get(){return this.currentNodes.at(-1)},enumerable:!0}),$.LEFT=z,$.RIGHT=tt,$.SIDE=et,$.THEME=rt,$.DARK_THEME=ct,$.version=Pe,$.E=L,$}();
@@ -1,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".map-container{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:hidden;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .hyper-link{text-decoration:none;margin-left:.3em}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7;border-radius:3px}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTQ3MTcyNDIiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA0ODBoLTEzOC42NjY2NjdWMzQxLjMzMzMzM2MwLTE3LjA2NjY2Ny0xNC45MzMzMzMtMzItMzItMzJzLTMyIDE0LjkzMzMzMy0zMiAzMnYxMzguNjY2NjY3SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyIDE0LjkzMzMzMy0zMiAzMnMxNC45MzMzMzMgMzIgMzIgMzJoMTM4LjY2NjY2N1Y2ODIuNjY2NjY3YzAgMTcuMDY2NjY3IDE0LjkzMzMzMyAzMiAzMiAzMnMzMi0xNC45MzMzMzMgMzItMzJ2LTEzOC42NjY2NjdINjgyLjY2NjY2N2MxNy4wNjY2NjcgMCAzMi0xNC45MzMzMzMgMzItMzJzLTE0LjkzMzMzMy0zMi0zMi0zMnoiPjwvcGF0aD4NCjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTU1NjQ5ODUiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA1NDRIMzQxLjMzMzMzM2MtMTcuMDY2NjY3IDAtMzItMTQuOTMzMzMzLTMyLTMyczE0LjkzMzMzMy0zMiAzMi0zMmgzNDEuMzMzMzM0YzE3LjA2NjY2NyAwIDMyIDE0LjkzMzMzMyAzMiAzMnMtMTQuOTMzMzMzIDMyLTMyIDMyeiI+PC9wYXRoPg0KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary,.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .summary>g,.map-container .topiclinks>g{cursor:pointer;pointer-events:stroke}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;color:var(--color);background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.map-container .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.map-container .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.map-container .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.map-container .context-menu .menu-list li span{line-height:20px}.map-container .context-menu .menu-list li a{color:#333;text-decoration:none}.map-container .context-menu .menu-list li.disabled{display:none}.map-container .context-menu .menu-list li:hover{filter:brightness(.95)}.map-container .context-menu .menu-list li:last-child{border-bottom:0}.map-container .context-menu .menu-list li span:last-child{float:right}.map-container .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.map-container .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".map-container{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:hidden;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{outline:2px solid var(--selected);outline-offset:1px}.map-container .hyper-link{text-decoration:none;margin-left:.3em}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7;border-radius:3px}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTQ3MTcyNDIiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA0ODBoLTEzOC42NjY2NjdWMzQxLjMzMzMzM2MwLTE3LjA2NjY2Ny0xNC45MzMzMzMtMzItMzItMzJzLTMyIDE0LjkzMzMzMy0zMiAzMnYxMzguNjY2NjY3SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyIDE0LjkzMzMzMy0zMiAzMnMxNC45MzMzMzMgMzIgMzIgMzJoMTM4LjY2NjY2N1Y2ODIuNjY2NjY3YzAgMTcuMDY2NjY3IDE0LjkzMzMzMyAzMiAzMiAzMnMzMi0xNC45MzMzMzMgMzItMzJ2LTEzOC42NjY2NjdINjgyLjY2NjY2N2MxNy4wNjY2NjcgMCAzMi0xNC45MzMzMzMgMzItMzJzLTE0LjkzMzMzMy0zMi0zMi0zMnoiPjwvcGF0aD4NCjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHQ9IjE2NTY2NTU1NjQ5ODUiIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiDQogICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIg0KICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+DQogICAgPHBhdGggZD0iTTUxMiA3NC42NjY2NjdDMjcwLjkzMzMzMyA3NC42NjY2NjcgNzQuNjY2NjY3IDI3MC45MzMzMzMgNzQuNjY2NjY3IDUxMlMyNzAuOTMzMzMzIDk0OS4zMzMzMzMgNTEyIDk0OS4zMzMzMzMgOTQ5LjMzMzMzMyA3NTMuMDY2NjY3IDk0OS4zMzMzMzMgNTEyIDc1My4wNjY2NjcgNzQuNjY2NjY3IDUxMiA3NC42NjY2Njd6IiBzdHJva2Utd2lkdGg9IjU0IiBzdHJva2U9J2JsYWNrJyBmaWxsPSd3aGl0ZScgPjwvcGF0aD4NCiAgICA8cGF0aCBkPSJNNjgyLjY2NjY2NyA1NDRIMzQxLjMzMzMzM2MtMTcuMDY2NjY3IDAtMzItMTQuOTMzMzMzLTMyLTMyczE0LjkzMzMzMy0zMiAzMi0zMmgzNDEuMzMzMzM0YzE3LjA2NjY2NyAwIDMyIDE0LjkzMzMzMyAzMiAzMnMtMTQuOTMzMzMzIDMyLTMyIDMyeiI+PC9wYXRoPg0KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary,.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .summary>g,.map-container .topiclinks>g{cursor:pointer;pointer-events:stroke}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container #input-box{position:absolute;top:0;left:0;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;color:var(--color);background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.map-container .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.map-container .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.map-container .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.map-container .context-menu .menu-list li span{line-height:20px}.map-container .context-menu .menu-list li a{color:#333;text-decoration:none}.map-container .context-menu .menu-list li.disabled{display:none}.map-container .context-menu .menu-list li:hover{filter:brightness(.95)}.map-container .context-menu .menu-list li:last-child{border-bottom:0}.map-container .context-menu .menu-list li span:last-child{float:right}.map-container .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.map-container .tips{position:absolute;bottom:28px;left:50%;transform:translate(-50%);color:var(--panel-color);background:var(--panel-bgcolor);opacity:.8;padding:5px 10px;border-radius:5px;font-weight:700}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
2
  (function(t) {
3
3
  var e, n, o, s, i, r, c = '<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>', l = (l = document.getElementsByTagName("script"))[l.length - 1].getAttribute("data-injectcss");
4
4
  if (l && !t.__iconfont__svg__cssinject__) {
@@ -1637,7 +1637,7 @@ function gn({ pT: t, pL: e, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction:
1637
1637
  const v = Math.abs(u - g) / 300 * a;
1638
1638
  return l === L.LHS ? (m = e, d = m + a, p = m - a, h = i + a, `M ${d} ${u} C ${m} ${u} ${m + v} ${g} ${p} ${g} H ${h}`) : (m = e + n, d = m - a, p = m + a, h = i + r - a, `M ${d} ${u} C ${m} ${u} ${m - v} ${g} ${p} ${g} H ${h}`);
1639
1639
  }
1640
- const vn = "5.0.0-beta.21";
1640
+ const vn = "5.0.0-beta.22";
1641
1641
  function yn(t) {
1642
1642
  return {
1643
1643
  x: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mind-elixir",
3
- "version": "5.0.0-beta.21",
3
+ "version": "5.0.0-beta.22",
4
4
  "type": "module",
5
5
  "description": "Mind elixir is a free open source mind map core.",
6
6
  "keywords": [