mind-elixir 4.2.2 → 4.2.4

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 i=document.createElement("style");i.appendChild(document.createTextNode(".mind-elixir{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--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;position:relative;-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}.mind-elixir .hyper-link{text-decoration:none;margin-left:.3em}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{box-shadow:0 0 0 2px var(--selected)}.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;transition:transform .3s;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);white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container .map-canvas me-root me-tpc #input-box{padding:10px var(--gap)}.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-main>me-wrapper>me-parent>me-tpc #input-box{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}.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+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg==);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+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+)!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{pointer-events:none}.map-container .topiclinks text,.map-container .linkcontroller text,.map-container .summary text{pointer-events:all}.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container .topiclinks g{cursor:pointer}.map-container #input-box{position:absolute;top:0;left:0;padding:var(--topic-padding);color:var(--color);background-color:var(--bgcolor);width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:all}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a{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 3px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-right:10px}.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:#f6f6f6;max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px;border:#666666 2px solid}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.mind-elixir .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.mind-elixir .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}.mind-elixir .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}.mind-elixir .context-menu .menu-list li span{line-height:20px}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none}.mind-elixir .context-menu .menu-list li:hover{filter:brightness(.95)}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.mind-elixir .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.mind-elixir .mobile-menu{position:absolute;left:20px;bottom:70px;z-index:99;margin:0;padding:0;color:#333;border-radius:5px;box-shadow:0 12px 15px #0003;overflow:hidden}.mind-elixir .mobile-menu *{transition:color .4s,background-color .4s}.mind-elixir .mobile-menu div{float:left;text-align:center;width:30px;overflow:hidden;white-space:nowrap;padding:8px;background-color:#fff;border-bottom:1px solid #ecf0f1}.mind-elixir .mobile-menu div a{color:#333;text-decoration:none}.mind-elixir .mobile-menu div.disabled{color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .mobile-menu div.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .mobile-menu div:hover{cursor:pointer;background-color:#ecf0f1}.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(i)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".mind-elixir{--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;position:relative;-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}.mind-elixir .hyper-link{text-decoration:none;margin-left:.3em}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;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 .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;transition:transform .3s;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}.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+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg==);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+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+)!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{pointer-events:none}.map-container .topiclinks text,.map-container .linkcontroller text,.map-container .summary text{pointer-events:all}.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container .topiclinks g{cursor:pointer}.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;background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a{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-right:10px}.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:#f6f6f6;max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px;border:#666666 2px solid}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.mind-elixir .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.mind-elixir .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}.mind-elixir .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}.mind-elixir .context-menu .menu-list li span{line-height:20px}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none}.mind-elixir .context-menu .menu-list li:hover{filter:brightness(.95)}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.mind-elixir .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(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
2
  (function(e) {
3
3
  var t, n, o, s, i, r, l = '<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>', c = (c = document.getElementsByTagName("script"))[c.length - 1].getAttribute("data-injectcss");
4
4
  if (c && !e.__iconfont__svg__cssinject__) {
@@ -29,7 +29,7 @@
29
29
  s.readyState == "complete" && (s.onreadystatechange = null, d());
30
30
  });
31
31
  })(window);
32
- const q = 0, Z = 1, ee = 2, N = 30, ve = {
32
+ const q = 0, Q = 1, Z = 2, $ = 30, ve = {
33
33
  name: "Latte",
34
34
  palette: ["#dd7878", "#ea76cb", "#8839ef", "#e64553", "#fe640b", "#df8e1d", "#40a02b", "#209fb5", "#1e66f5", "#7287fd"],
35
35
  cssVar: {
@@ -57,22 +57,22 @@ const q = 0, Z = 1, ee = 2, N = 30, ve = {
57
57
  function ie(e) {
58
58
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;");
59
59
  }
60
- const U = function(e, t) {
60
+ const K = function(e, t) {
61
61
  if (t.id === e)
62
62
  return t;
63
63
  if (t.children && t.children.length) {
64
64
  for (let n = 0; n < t.children.length; n++) {
65
- const o = U(e, t.children[n]);
65
+ const o = K(e, t.children[n]);
66
66
  if (o)
67
67
  return o;
68
68
  }
69
69
  return null;
70
70
  } else
71
71
  return null;
72
- }, te = (e, t) => {
72
+ }, ee = (e, t) => {
73
73
  if (e.parent = t, e.children)
74
74
  for (let n = 0; n < e.children.length; n++)
75
- te(e.children[n], e);
75
+ ee(e.children[n], e);
76
76
  };
77
77
  function be(e, t, n, o) {
78
78
  const s = o - t, i = e - n;
@@ -86,21 +86,21 @@ function be(e, t, n, o) {
86
86
  y2: o - Math.sin(Math.PI * h / 180) * l
87
87
  };
88
88
  }
89
- function ne() {
89
+ function te() {
90
90
  return ((/* @__PURE__ */ new Date()).getTime().toString(16) + Math.random().toString(16).substr(2)).substr(2, 16);
91
91
  }
92
- const $e = function() {
93
- const e = ne();
92
+ const Ae = function() {
93
+ const e = te();
94
94
  return {
95
95
  topic: this.newTopicName,
96
96
  id: e
97
97
  };
98
- }, A = (e, t) => {
98
+ }, N = (e, t) => {
99
99
  let n = 0, o = 0;
100
100
  for (; t && t !== e; )
101
101
  n += t.offsetLeft, o += t.offsetTop, t = t.offsetParent;
102
102
  return { offsetLeft: n, offsetTop: o };
103
- }, w = (e, t) => {
103
+ }, x = (e, t) => {
104
104
  for (const n in t)
105
105
  e.setAttribute(n, t[n]);
106
106
  }, re = (e) => e ? e.tagName === "ME-TPC" : !1, k = {
@@ -191,32 +191,32 @@ const De = {
191
191
  }
192
192
  };
193
193
  }
194
- }, J = document, He = function() {
194
+ }, U = document, He = function() {
195
195
  this.nodes.innerHTML = "";
196
196
  const e = this.createTopic(this.nodeData);
197
197
  xe(e, this.nodeData), e.draggable = !1;
198
- const t = J.createElement("me-root");
198
+ const t = U.createElement("me-root");
199
199
  t.appendChild(e);
200
200
  const n = this.nodeData.children || [];
201
- if (this.direction === ee) {
201
+ if (this.direction === Z) {
202
202
  let o = 0, s = 0;
203
203
  n.map((i) => {
204
- i.direction === q ? o += 1 : i.direction === Z ? s += 1 : o <= s ? (i.direction = q, o += 1) : (i.direction = Z, s += 1);
204
+ i.direction === q ? o += 1 : i.direction === Q ? s += 1 : o <= s ? (i.direction = q, o += 1) : (i.direction = Q, s += 1);
205
205
  });
206
206
  }
207
207
  Be(this, n, t);
208
208
  }, Be = function(e, t, n) {
209
- const o = J.createElement("me-main");
209
+ const o = U.createElement("me-main");
210
210
  o.className = "lhs";
211
- const s = J.createElement("me-main");
211
+ const s = U.createElement("me-main");
212
212
  s.className = "rhs";
213
213
  for (let i = 0; i < t.length; i++) {
214
214
  const r = t[i], { grp: l } = e.createWrapper(r);
215
- e.direction === ee ? r.direction === q ? o.appendChild(l) : s.appendChild(l) : e.direction === q ? o.appendChild(l) : s.appendChild(l);
215
+ e.direction === Z ? r.direction === q ? o.appendChild(l) : s.appendChild(l) : e.direction === q ? o.appendChild(l) : s.appendChild(l);
216
216
  }
217
217
  e.nodes.appendChild(o), e.nodes.appendChild(n), e.nodes.appendChild(s), e.nodes.appendChild(e.lines);
218
218
  }, Pe = function(e, t) {
219
- const n = J.createElement("me-children");
219
+ const n = U.createElement("me-children");
220
220
  for (let o = 0; o < t.length; o++) {
221
221
  const s = t[o], { grp: i } = e.createWrapper(s);
222
222
  n.appendChild(i);
@@ -289,25 +289,33 @@ const Re = function(e) {
289
289
  if (!e)
290
290
  return;
291
291
  const t = S.createElement("div"), n = e.text.textContent;
292
- e.appendChild(t), t.id = "input-box", t.textContent = n, t.contentEditable = "true", t.spellcheck = !1, t.style.cssText = `min-width:${e.offsetWidth - 8}px;`, this.direction === q && (t.style.right = "0"), t.focus(), we(t), this.bus.fire("operation", {
292
+ e.appendChild(t), t.id = "input-box", t.textContent = n, t.contentEditable = "true", t.spellcheck = !1;
293
+ const o = getComputedStyle(e);
294
+ t.style.cssText = `min-width:${e.offsetWidth - 8}px;
295
+ color:${o.color};
296
+ padding:${o.padding};
297
+ margin:${o.margin};
298
+ font:${o.font};
299
+ background-color:${o.backgroundColor !== "rgba(0, 0, 0, 0)" && o.backgroundColor};
300
+ border-radius:${o.borderRadius};`, this.direction === q && (t.style.right = "0"), t.focus(), we(t), this.bus.fire("operation", {
293
301
  name: "beginEdit",
294
302
  obj: e.nodeObj
295
- }), t.addEventListener("keydown", (o) => {
296
- o.stopPropagation();
297
- const s = o.key;
298
- if (s === "Enter" || s === "Tab") {
299
- if (o.shiftKey)
303
+ }), t.addEventListener("keydown", (s) => {
304
+ s.stopPropagation();
305
+ const i = s.key;
306
+ if (i === "Enter" || i === "Tab") {
307
+ if (s.shiftKey)
300
308
  return;
301
- o.preventDefault(), t == null || t.blur(), this.map.focus();
309
+ s.preventDefault(), t == null || t.blur(), this.map.focus();
302
310
  }
303
311
  }), t.addEventListener("blur", () => {
304
- var i;
312
+ var r;
305
313
  if (!t)
306
314
  return;
307
- const o = e.nodeObj, s = ((i = t.textContent) == null ? void 0 : i.trim()) || "";
308
- s === "" ? o.topic = n : o.topic = s, t.remove(), s !== n && (e.text.textContent = o.topic, this.linkDiv(), this.bus.fire("operation", {
315
+ const s = e.nodeObj, i = ((r = t.textContent) == null ? void 0 : r.trim()) || "";
316
+ i === "" ? s.topic = n : s.topic = i, t.remove(), i !== n && (e.text.textContent = s.topic, this.linkDiv(), this.bus.fire("operation", {
309
317
  name: "finishEdit",
310
- obj: o,
318
+ obj: s,
311
319
  origin: n
312
320
  }));
313
321
  });
@@ -316,13 +324,13 @@ const Re = function(e) {
316
324
  return t.expanded = e !== !1, t.className = e !== !1 ? "minus" : "", t;
317
325
  }, O = document, j = "http://www.w3.org/2000/svg", _e = function(e, t, n) {
318
326
  const o = O.createElementNS(j, "path");
319
- return w(o, {
327
+ return x(o, {
320
328
  d: e,
321
329
  stroke: t || "#666",
322
330
  fill: "none",
323
331
  "stroke-width": n
324
332
  }), o;
325
- }, F = function(e) {
333
+ }, I = function(e) {
326
334
  const t = O.createElementNS(j, "svg");
327
335
  return t.setAttribute("class", e), t.setAttribute("overflow", "visible"), t;
328
336
  }, le = function() {
@@ -335,10 +343,10 @@ const Re = function(e) {
335
343
  "stroke-linecap": "cap",
336
344
  "stroke-width": "2"
337
345
  }, o = O.createElementNS(j, "g"), s = O.createElementNS(j, "path"), i = O.createElementNS(j, "path");
338
- return w(i, {
346
+ return x(i, {
339
347
  d: t,
340
348
  ...n
341
- }), w(s, {
349
+ }), x(s, {
342
350
  d: e,
343
351
  ...n,
344
352
  "stroke-dasharray": "8,2"
@@ -370,13 +378,13 @@ const Re = function(e) {
370
378
  const r = this.map.querySelectorAll("me-main > me-wrapper");
371
379
  this.lines.innerHTML = "";
372
380
  for (let l = 0; l < r.length; l++) {
373
- const c = r[l], d = c.querySelector("me-tpc"), { offsetLeft: h, offsetTop: a } = A(this.nodes, d), f = d.offsetWidth, m = d.offsetHeight, u = c.parentNode.className, p = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: a, cL: h, cW: f, cH: m, direction: u, containerHeight: this.nodes.offsetHeight }), g = this.theme.palette, v = d.nodeObj.branchColor || g[l % g.length];
374
- d.style.borderColor = v, this.lines.appendChild(_e(p, v, "3"));
375
- const y = c.children[0].children[1];
376
- if (y && (y.style.top = (y.parentNode.offsetHeight - y.offsetHeight) / 2 + "px", u === "lhs" ? y.style.left = "-10px" : y.style.right = "-10px"), e && e !== c)
381
+ const c = r[l], d = c.querySelector("me-tpc"), { offsetLeft: h, offsetTop: a } = N(this.nodes, d), f = d.offsetWidth, m = d.offsetHeight, u = c.parentNode.className, p = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: a, cL: h, cW: f, cH: m, direction: u, containerHeight: this.nodes.offsetHeight }), g = this.theme.palette, y = d.nodeObj.branchColor || g[l % g.length];
382
+ d.style.borderColor = y, this.lines.appendChild(_e(p, y, "3"));
383
+ const v = c.children[0].children[1];
384
+ if (v && (v.style.top = (v.parentNode.offsetHeight - v.offsetHeight) / 2 + "px", u === "lhs" ? v.style.left = "-10px" : v.style.right = "-10px"), e && e !== c)
377
385
  continue;
378
- const b = F("subLines"), _ = c.lastChild;
379
- _.tagName === "svg" && _.remove(), c.appendChild(b), Se(this, b, v, c, u, !0);
386
+ const w = I("subLines"), _ = c.lastChild;
387
+ _.tagName === "svg" && _.remove(), c.appendChild(w), Se(this, w, y, c, u, !0);
380
388
  }
381
389
  this.renderArrow(), this.renderSummary(), this.bus.fire("linkDiv");
382
390
  }, Se = function(e, t, n, o, s, i) {
@@ -385,15 +393,15 @@ const Re = function(e) {
385
393
  return;
386
394
  const c = r.offsetTop, d = r.offsetLeft, h = r.offsetWidth, a = r.offsetHeight;
387
395
  for (let f = 0; f < l.length; f++) {
388
- const m = l[f], u = m.firstChild, p = u.offsetTop, g = u.offsetLeft, v = u.offsetWidth, y = u.offsetHeight, b = u.firstChild.nodeObj.branchColor || n, _ = e.generateSubBranch({ pT: c, pL: d, pW: h, pH: a, cT: p, cL: g, cW: v, cH: y, direction: s, isFirst: i });
389
- t.appendChild(_e(_, b, "2"));
396
+ const m = l[f], u = m.firstChild, p = u.offsetTop, g = u.offsetLeft, y = u.offsetWidth, v = u.offsetHeight, w = u.firstChild.nodeObj.branchColor || n, _ = e.generateSubBranch({ pT: c, pL: d, pW: h, pH: a, cT: p, cL: g, cW: y, cH: v, direction: s, isFirst: i });
397
+ t.appendChild(_e(_, w, "2"));
390
398
  const E = u.children[1];
391
399
  if (E) {
392
400
  if (E.style.bottom = -(E.offsetHeight / 2) + "px", s === "lhs" ? E.style.left = "10px" : s === "rhs" && (E.style.right = "10px"), !E.expanded)
393
401
  continue;
394
402
  } else
395
403
  continue;
396
- Se(e, t, b, m, s);
404
+ Se(e, t, w, m, s);
397
405
  }
398
406
  };
399
407
  const B = (e, t) => {
@@ -428,10 +436,10 @@ function Ye(e) {
428
436
  e.container.append(We(e)), e.container.append(Xe(e));
429
437
  }
430
438
  /*! @viselect/vanilla v3.6.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
431
- var Ge = Object.defineProperty, Ke = (e, t, n) => t in e ? Ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, x = (e, t, n) => Ke(e, typeof t != "symbol" ? t + "" : t, n);
439
+ var Ge = Object.defineProperty, Ke = (e, t, n) => t in e ? Ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, b = (e, t, n) => Ke(e, typeof t != "symbol" ? t + "" : t, n);
432
440
  class Ue {
433
441
  constructor() {
434
- x(this, "_listeners", /* @__PURE__ */ new Map()), x(this, "on", this.addEventListener), x(this, "off", this.removeEventListener), x(this, "emit", this.dispatchEvent);
442
+ b(this, "_listeners", /* @__PURE__ */ new Map()), b(this, "on", this.addEventListener), b(this, "off", this.removeEventListener), b(this, "emit", this.dispatchEvent);
435
443
  }
436
444
  addEventListener(t, n) {
437
445
  const o = this._listeners.get(t) ?? /* @__PURE__ */ new Set();
@@ -466,7 +474,7 @@ const Ce = (e) => (t, n, o, s = {}) => {
466
474
  for (const r of n)
467
475
  i[e](r, o, { capture: !1, ...s });
468
476
  return [t, n, o, s];
469
- }, D = Ce("addEventListener"), M = Ce("removeEventListener"), Y = (e) => {
477
+ }, D = Ce("addEventListener"), M = Ce("removeEventListener"), X = (e) => {
470
478
  var t;
471
479
  const { clientX: n, clientY: o, target: s } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
472
480
  return { x: n, y: o, target: s };
@@ -534,7 +542,7 @@ const { abs: H, max: he, min: de, ceil: ue } = Math, fe = (e = []) => ({
534
542
  class tt extends Ue {
535
543
  constructor(t) {
536
544
  var n, o, s, i, r;
537
- super(), x(this, "_options"), x(this, "_selection", fe()), x(this, "_area"), x(this, "_clippingElement"), x(this, "_targetElement"), x(this, "_targetBoundary"), x(this, "_targetBoundaryScrolled", !0), x(this, "_targetRect"), x(this, "_selectables", []), x(this, "_latestElement"), x(this, "_areaLocation", { y1: 0, x2: 0, y2: 0, x1: 0 }), x(this, "_areaRect", new DOMRect()), x(this, "_singleClick", !0), x(this, "_frame"), x(this, "_scrollAvailable", !0), x(this, "_scrollingActive", !1), x(this, "_scrollSpeed", { x: 0, y: 0 }), x(this, "_scrollDelta", { x: 0, y: 0 }), x(this, "disable", this._toggleStartEvents.bind(this, !1)), x(this, "enable", this._toggleStartEvents), this._options = {
545
+ super(), b(this, "_options"), b(this, "_selection", fe()), b(this, "_area"), b(this, "_clippingElement"), b(this, "_targetElement"), b(this, "_targetBoundary"), b(this, "_targetBoundaryScrolled", !0), b(this, "_targetRect"), b(this, "_selectables", []), b(this, "_latestElement"), b(this, "_areaLocation", { y1: 0, x2: 0, y2: 0, x1: 0 }), b(this, "_areaRect", new DOMRect()), b(this, "_singleClick", !0), b(this, "_frame"), b(this, "_scrollAvailable", !0), b(this, "_scrollingActive", !1), b(this, "_scrollSpeed", { x: 0, y: 0 }), b(this, "_scrollDelta", { x: 0, y: 0 }), b(this, "disable", this._toggleStartEvents.bind(this, !1)), b(this, "enable", this._toggleStartEvents), this._options = {
538
546
  selectionAreaClass: "selection-area",
539
547
  selectionContainerClass: void 0,
540
548
  selectables: [],
@@ -596,22 +604,22 @@ class tt extends Ue {
596
604
  s(n, "mousedown", this._onTapStart), o.touch && s(n, "touchstart", this._onTapStart, { passive: !1 });
597
605
  }
598
606
  _onTapStart(t, n = !1) {
599
- const { x: o, y: s, target: i } = Y(t), { document: r, startAreas: l, boundaries: c, features: d, behaviour: h } = this._options, a = i.getBoundingClientRect();
607
+ const { x: o, y: s, target: i } = X(t), { document: r, startAreas: l, boundaries: c, features: d, behaviour: h } = this._options, a = i.getBoundingClientRect();
600
608
  if (t instanceof MouseEvent && !et(t, h.triggers))
601
609
  return;
602
610
  const f = P(l, r), m = P(c, r);
603
611
  this._targetElement = m.find(
604
- (v) => ae(v.getBoundingClientRect(), a)
612
+ (y) => ae(y.getBoundingClientRect(), a)
605
613
  );
606
- const u = t.composedPath(), p = f.find((v) => u.includes(v));
607
- if (this._targetBoundary = m.find((v) => u.includes(v)), !this._targetElement || !p || !this._targetBoundary || !n && this._emitEvent("beforestart", t) === !1)
614
+ const u = t.composedPath(), p = f.find((y) => u.includes(y));
615
+ if (this._targetBoundary = m.find((y) => u.includes(y)), !this._targetElement || !p || !this._targetBoundary || !n && this._emitEvent("beforestart", t) === !1)
608
616
  return;
609
617
  this._areaLocation = { x1: o, y1: s, x2: 0, y2: 0 };
610
618
  const g = r.scrollingElement ?? r.body;
611
619
  this._scrollDelta = { x: g.scrollLeft, y: g.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), D(r, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), D(r, ["mouseup", "touchcancel", "touchend"], this._onTapStop), D(r, "scroll", this._onScroll), d.deselectOnBlur && (this._targetBoundaryScrolled = !1, D(this._targetBoundary, "scroll", this._onStartAreaScroll));
612
620
  }
613
621
  _onSingleTap(t) {
614
- const { singleTap: { intersect: n }, range: o } = this._options.features, s = Y(t);
622
+ const { singleTap: { intersect: n }, range: o } = this._options.features, s = X(t);
615
623
  let i;
616
624
  if (n === "native")
617
625
  i = s.target;
@@ -642,7 +650,7 @@ class tt extends Ue {
642
650
  r.includes(i) && (r.length === 1 || t.ctrlKey || r.every((l) => this._selection.stored.includes(l))) ? this.deselect(i) : (this.select(i), this._latestElement = i);
643
651
  }
644
652
  _delayedTapMove(t) {
645
- const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: l, y: c } = Y(t);
653
+ const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: l, y: c } = X(t);
646
654
  if (
647
655
  // Single number for both coordinates
648
656
  typeof s == "number" && H(l + c - (i + r)) >= s || // Different x and y threshold
@@ -677,7 +685,7 @@ class tt extends Ue {
677
685
  }));
678
686
  }
679
687
  _onTapMove(t) {
680
- const { _scrollSpeed: n, _areaLocation: o, _options: s, _frame: i } = this, { speedDivider: r } = s.behaviour.scrolling, l = this._targetElement, { x: c, y: d } = Y(t);
688
+ const { _scrollSpeed: n, _areaLocation: o, _options: s, _frame: i } = this, { speedDivider: r } = s.behaviour.scrolling, l = this._targetElement, { x: c, y: d } = X(t);
681
689
  if (o.x2 = c, o.y2 = d, this._scrollAvailable && !this._scrollingActive && (n.y || n.x)) {
682
690
  this._scrollingActive = !0;
683
691
  const h = () => {
@@ -713,8 +721,8 @@ class tt extends Ue {
713
721
  let { x2: u, y2: p } = n;
714
722
  const { behaviour: { scrolling: { startScrollMargins: g } } } = s;
715
723
  u < a.left + g.x ? (t.x = c ? -H(a.left - u + g.x) : 0, u = u < a.left ? a.left : u) : u > a.right - g.x ? (t.x = d - c - h ? H(a.left + a.width - u - g.x) : 0, u = u > a.right ? a.right : u) : t.x = 0, p < a.top + g.y ? (t.y = i ? -H(a.top - p + g.y) : 0, p = p < a.top ? a.top : p) : p > a.bottom - g.y ? (t.y = r - i - l ? H(a.top + a.height - p - g.y) : 0, p = p > a.bottom ? a.bottom : p) : t.y = 0;
716
- const v = de(f, u), y = de(m, p), b = he(f, u), _ = he(m, p);
717
- this._areaRect = new DOMRect(v, y, b - v, _ - y);
724
+ const y = de(f, u), v = de(m, p), w = he(f, u), _ = he(m, p);
725
+ this._areaRect = new DOMRect(y, v, w - y, _ - v);
718
726
  }
719
727
  _redrawSelectionArea() {
720
728
  const { x: t, y: n, width: o, height: s } = this._areaRect, { style: i } = this._area;
@@ -862,7 +870,7 @@ class tt extends Ue {
862
870
  ), this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)));
863
871
  }
864
872
  }
865
- x(tt, "version", "3.6.0");
873
+ b(tt, "version", "3.6.0");
866
874
  const nt = function(e, t = !0) {
867
875
  this.theme = e;
868
876
  const n = this.theme.cssVar, o = Object.keys(n);
@@ -965,7 +973,7 @@ const st = function(e, t, n) {
965
973
  o.parentNode.children[1].remove();
966
974
  this.linkDiv(), this.bus.fire("expandNode", n);
967
975
  }, St = function(e) {
968
- e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), te(this.nodeData), this.layout(), this.linkDiv();
976
+ e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), ee(this.nodeData), this.layout(), this.linkDiv();
969
977
  }, Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
970
978
  __proto__: null,
971
979
  cancelFocus: yt,
@@ -1018,8 +1026,8 @@ const st = function(e, t, n) {
1018
1026
  }, pe = {
1019
1027
  create: Lt
1020
1028
  };
1021
- function Q(e, t, n) {
1022
- const { offsetLeft: o, offsetTop: s } = A(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, l = o + i / 2, c = s + r / 2, d = l + n.x, h = c + n.y;
1029
+ function J(e, t, n) {
1030
+ const { offsetLeft: o, offsetTop: s } = N(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, l = o + i / 2, c = s + r / 2, d = l + n.x, h = c + n.y;
1023
1031
  return {
1024
1032
  w: i,
1025
1033
  h: r,
@@ -1039,7 +1047,7 @@ function z(e) {
1039
1047
  }
1040
1048
  const Mt = function(e, t, n, o) {
1041
1049
  const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
1042
- return w(s, {
1050
+ return x(s, {
1043
1051
  "text-anchor": "middle",
1044
1052
  x: t + "",
1045
1053
  y: n + "",
@@ -1049,14 +1057,14 @@ const Mt = function(e, t, n, o) {
1049
1057
  if (!t || !n)
1050
1058
  return;
1051
1059
  performance.now();
1052
- const i = Q(e, t, o.delta1), r = Q(e, n, o.delta2), { x: l, y: c } = z(i), { ctrlX: d, ctrlY: h } = i, { ctrlX: a, ctrlY: f } = r, { x: m, y: u } = z(r), p = be(a, f, m, u), g = Ie(
1060
+ const i = J(e, t, o.delta1), r = J(e, n, o.delta2), { x: l, y: c } = z(i), { ctrlX: d, ctrlY: h } = i, { ctrlX: a, ctrlY: f } = r, { x: m, y: u } = z(r), p = be(a, f, m, u), g = Ie(
1053
1061
  `M ${l} ${c} C ${d} ${h} ${a} ${f} ${m} ${u}`,
1054
1062
  `M ${p.x1} ${p.y1} L ${m} ${u} L ${p.x2} ${p.y2}`
1055
- ), v = l / 8 + d * 3 / 8 + a * 3 / 8 + m / 8, y = c / 8 + h * 3 / 8 + f * 3 / 8 + u / 8, b = Mt(o.label, v, y, e.theme.cssVar["--color"]);
1056
- g.appendChild(b), g.arrowObj = o, g.dataset.linkid = o.id, e.linkSvgGroup.appendChild(g), s || (e.arrows.push(o), e.currentArrow = g, Ne(e, o, i, r)), performance.now();
1063
+ ), y = l / 8 + d * 3 / 8 + a * 3 / 8 + m / 8, v = c / 8 + h * 3 / 8 + f * 3 / 8 + u / 8, w = Mt(o.label, y, v, e.theme.cssVar["--color"]);
1064
+ g.appendChild(w), g.arrowObj = o, g.dataset.linkid = o.id, e.linkSvgGroup.appendChild(g), s || (e.arrows.push(o), e.currentArrow = g, $e(e, o, i, r)), performance.now();
1057
1065
  }, Tt = function(e, t) {
1058
1066
  const n = {
1059
- id: ne(),
1067
+ id: te(),
1060
1068
  label: "Custom Link",
1061
1069
  from: e.nodeObj.id,
1062
1070
  to: t.nodeObj.id,
@@ -1073,7 +1081,7 @@ const Mt = function(e, t, n, o) {
1073
1081
  name: "createArrow",
1074
1082
  obj: n
1075
1083
  });
1076
- }, Nt = function(e) {
1084
+ }, $t = function(e) {
1077
1085
  let t;
1078
1086
  if (e ? t = e : t = this.currentArrow, !t)
1079
1087
  return;
@@ -1085,53 +1093,53 @@ const Mt = function(e, t, n, o) {
1085
1093
  id: n
1086
1094
  }
1087
1095
  });
1088
- }, At = function(e) {
1096
+ }, Nt = function(e) {
1089
1097
  this.currentArrow = e;
1090
- const t = e.arrowObj, n = L(t.from), o = L(t.to), s = Q(this, n, t.delta1), i = Q(this, o, t.delta2);
1091
- Ne(this, t, s, i);
1092
- }, $t = function() {
1098
+ const t = e.arrowObj, n = L(t.from), o = L(t.to), s = J(this, n, t.delta1), i = J(this, o, t.delta2);
1099
+ $e(this, t, s, i);
1100
+ }, At = function() {
1093
1101
  this.currentArrow = null, Te(this);
1094
1102
  }, Te = function(e) {
1095
1103
  e.linkController.style.display = "none", e.P2.style.display = "none", e.P3.style.display = "none";
1096
- }, Ne = function(e, t, n, o) {
1104
+ }, $e = function(e, t, n, o) {
1097
1105
  var f;
1098
1106
  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);
1099
1107
  let { x: s, y: i } = z(n), { ctrlX: r, ctrlY: l } = n, { ctrlX: c, ctrlY: d } = o, { x: h, y: a } = z(o);
1100
- e.P2.style.cssText = `top:${l}px;left:${r}px;`, e.P3.style.cssText = `top:${d}px;left:${c}px;`, w(e.line1, {
1108
+ e.P2.style.cssText = `top:${l}px;left:${r}px;`, e.P3.style.cssText = `top:${d}px;left:${c}px;`, x(e.line1, {
1101
1109
  x1: s + "",
1102
1110
  y1: i + "",
1103
1111
  x2: r + "",
1104
1112
  y2: l + ""
1105
- }), w(e.line2, {
1113
+ }), x(e.line2, {
1106
1114
  x1: c + "",
1107
1115
  y1: d + "",
1108
1116
  x2: h + "",
1109
1117
  y2: a + ""
1110
1118
  }), e.helper1 && (e.helper1.destory(e.map), (f = e.helper2) == null || f.destory(e.map)), e.helper1 = pe.create(e.P2), e.helper2 = pe.create(e.P3), e.helper1.init(e.map, (m, u) => {
1111
- var y;
1119
+ var v;
1112
1120
  r = r + m / e.scaleVal, l = l + u / e.scaleVal;
1113
1121
  const p = z({ ...n, ctrlX: r, ctrlY: l });
1114
1122
  s = p.x, i = p.y;
1115
- const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, v = i / 8 + l * 3 / 8 + d * 3 / 8 + a / 8;
1116
- e.P2.style.top = l + "px", e.P2.style.left = r + "px", (y = e.currentArrow) == null || y.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${a}`), w(e.currentArrow.children[2], {
1123
+ const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, y = i / 8 + l * 3 / 8 + d * 3 / 8 + a / 8;
1124
+ e.P2.style.top = l + "px", e.P2.style.left = r + "px", (v = e.currentArrow) == null || v.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${a}`), x(e.currentArrow.children[2], {
1117
1125
  x: g + "",
1118
- y: v + ""
1119
- }), w(e.line1, {
1126
+ y: y + ""
1127
+ }), x(e.line1, {
1120
1128
  x1: s + "",
1121
1129
  y1: i + "",
1122
1130
  x2: r + "",
1123
1131
  y2: l + ""
1124
1132
  }), t.delta1.x = r - n.cx, t.delta1.y = l - n.cy;
1125
1133
  }), e.helper2.init(e.map, (m, u) => {
1126
- var b, _;
1134
+ var w, _;
1127
1135
  c = c + m / e.scaleVal, d = d + u / e.scaleVal;
1128
1136
  const p = z({ ...o, ctrlX: c, ctrlY: d });
1129
1137
  h = p.x, a = p.y;
1130
- const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, v = i / 8 + l * 3 / 8 + d * 3 / 8 + a / 8, y = be(c, d, h, a);
1131
- e.P3.style.top = d + "px", e.P3.style.left = c + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${a}`), (_ = e.currentArrow) == null || _.children[1].setAttribute("d", `M ${y.x1} ${y.y1} L ${h} ${a} L ${y.x2} ${y.y2}`), w(e.currentArrow.children[2], {
1138
+ const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, y = i / 8 + l * 3 / 8 + d * 3 / 8 + a / 8, v = be(c, d, h, a);
1139
+ e.P3.style.top = d + "px", e.P3.style.left = c + "px", (w = e.currentArrow) == null || w.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${a}`), (_ = e.currentArrow) == null || _.children[1].setAttribute("d", `M ${v.x1} ${v.y1} L ${h} ${a} L ${v.x2} ${v.y2}`), x(e.currentArrow.children[2], {
1132
1140
  x: g + "",
1133
- y: v + ""
1134
- }), w(e.line2, {
1141
+ y: y + ""
1142
+ }), x(e.line2, {
1135
1143
  x1: c + "",
1136
1144
  y1: d + "",
1137
1145
  x2: h + "",
@@ -1164,17 +1172,17 @@ function Dt(e) {
1164
1172
  });
1165
1173
  }
1166
1174
  function Ht() {
1167
- this.arrows = this.arrows.filter((e) => U(e.from, this.nodeData) && U(e.to, this.nodeData));
1175
+ this.arrows = this.arrows.filter((e) => K(e.from, this.nodeData) && K(e.to, this.nodeData));
1168
1176
  }
1169
1177
  const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1170
1178
  __proto__: null,
1171
1179
  createArrow: Tt,
1172
1180
  editArrowLabel: Dt,
1173
- removeArrow: Nt,
1181
+ removeArrow: $t,
1174
1182
  renderArrow: kt,
1175
- selectArrow: At,
1183
+ selectArrow: Nt,
1176
1184
  tidyArrow: Ht,
1177
- unselectArrow: $t
1185
+ unselectArrow: At
1178
1186
  }, Symbol.toStringTag, { value: "Module" })), Pt = function(e) {
1179
1187
  var c, d;
1180
1188
  if (e.length === 0)
@@ -1223,7 +1231,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1223
1231
  return t.setAttribute("id", e), t;
1224
1232
  }, me = function(e, t) {
1225
1233
  const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
1226
- return w(n, {
1234
+ return x(n, {
1227
1235
  d: e,
1228
1236
  stroke: t || "#666",
1229
1237
  fill: "none",
@@ -1232,7 +1240,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1232
1240
  }), n;
1233
1241
  }, ge = function(e, t, n, o, s) {
1234
1242
  const i = document.createElementNS("http://www.w3.org/2000/svg", "text");
1235
- return w(i, {
1243
+ return x(i, {
1236
1244
  "text-anchor": o,
1237
1245
  x: t + "",
1238
1246
  y: n + "",
@@ -1243,26 +1251,26 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1243
1251
  const n = L(e), o = n.nodeObj;
1244
1252
  let s;
1245
1253
  return o.parent ? s = (i = n.closest("me-main")) == null ? void 0 : i.className : s = (r = L(o.children[t].id).closest("me-main")) == null ? void 0 : r.className, s;
1246
- }, Ae = function(e, t) {
1247
- var R;
1254
+ }, Ne = function(e, t) {
1255
+ var ne;
1248
1256
  const { id: n, text: o, parent: s, start: i, end: r } = t, l = e.nodes, d = L(s).nodeObj, h = jt(t);
1249
1257
  let a = 1 / 0, f = 0, m = 0, u = 0;
1250
- for (let V = i; V <= r; V++) {
1251
- const oe = (R = d.children) == null ? void 0 : R[V];
1258
+ for (let R = i; R <= r; R++) {
1259
+ const oe = (ne = d.children) == null ? void 0 : ne[R];
1252
1260
  if (!oe)
1253
1261
  return e.removeSummary(n), null;
1254
- const W = Ot(oe.id), { offsetLeft: X, offsetTop: se } = A(l, W);
1255
- V === i && (m = se), V === r && (u = se + W.offsetHeight), X < a && (a = X), W.offsetWidth + X > f && (f = W.offsetWidth + X);
1262
+ const F = Ot(oe.id), { offsetLeft: W, offsetTop: se } = N(l, F);
1263
+ R === i && (m = se + 20), R === r && (u = se + F.offsetHeight - 20), W < a && (a = W), F.offsetWidth + W > f && (f = F.offsetWidth + W);
1256
1264
  }
1257
1265
  let p, g;
1258
- const v = m + 10, y = u + 10, b = (v + y) / 2, _ = e.theme.cssVar["--color"];
1259
- h === "lhs" ? (p = me(`M ${a + 10} ${v} c -5 0 -10 5 -10 10 L ${a} ${y - 10} c 0 5 5 10 10 10 M ${a} ${b} h -10`, _), g = ge(o, a - 20, b + 6, "end", _)) : (p = me(`M ${f - 10} ${v} c 5 0 10 5 10 10 L ${f} ${y - 10} c 0 5 -5 10 -10 10 M ${f} ${b} h 10`, _), g = ge(o, f + 20, b + 6, "start", _));
1266
+ const y = m + 10, v = u + 10, w = (y + v) / 2, _ = e.theme.cssVar["--color"];
1267
+ h === "lhs" ? (p = me(`M ${a + 10} ${y} c -5 0 -10 5 -10 10 L ${a} ${v - 10} c 0 5 5 10 10 10 M ${a} ${w} h -10`, _), g = ge(o, a - 20, w + 6, "end", _)) : (p = me(`M ${f - 10} ${y} c 5 0 10 5 10 10 L ${f} ${v - 10} c 0 5 -5 10 -10 10 M ${f} ${w} h 10`, _), g = ge(o, f + 20, w + 6, "start", _));
1260
1268
  const E = zt("s-" + n);
1261
1269
  return E.appendChild(p), E.appendChild(g), E.summaryObj = t, e.summarySvg.appendChild(E), E;
1262
1270
  }, qt = function() {
1263
1271
  let e = [];
1264
1272
  this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
1265
- const { parent: t, start: n, end: o } = Pt(e), s = { id: ne(), parent: t, start: n, end: o, text: "summary" }, i = Ae(this, s);
1273
+ const { parent: t, start: n, end: o } = Pt(e), s = { id: te(), parent: t, start: n, end: o, text: "summary" }, i = Ne(this, s);
1266
1274
  this.summaries.push(s), this.editSummary(i), this.bus.fire("operation", {
1267
1275
  name: "createSummary",
1268
1276
  obj: s
@@ -1276,7 +1284,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1276
1284
  });
1277
1285
  }, Vt = function(e) {
1278
1286
  const t = e.children[1].getBBox(), n = 6, o = 3, s = document.createElementNS("http://www.w3.org/2000/svg", "rect");
1279
- w(s, {
1287
+ x(s, {
1280
1288
  x: t.x - n + "",
1281
1289
  y: t.y - n + "",
1282
1290
  width: t.width + n * 2 + "",
@@ -1292,7 +1300,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1292
1300
  }, Ft = function() {
1293
1301
  this.summarySvg.innerHTML = "", this.summaries.forEach((e) => {
1294
1302
  try {
1295
- Ae(this, e);
1303
+ Ne(this, e);
1296
1304
  } catch {
1297
1305
  }
1298
1306
  }), this.nodes.insertAdjacentElement("beforeend", this.summarySvg);
@@ -1319,7 +1327,7 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1319
1327
  }, Symbol.toStringTag, { value: "Module" })), C = "http://www.w3.org/2000/svg";
1320
1328
  function Yt(e, t) {
1321
1329
  const n = document.createElementNS(C, "svg");
1322
- return w(n, {
1330
+ return x(n, {
1323
1331
  version: "1.1",
1324
1332
  xmlns: C,
1325
1333
  height: e,
@@ -1335,7 +1343,7 @@ function Kt(e, t, n, o) {
1335
1343
  return e.text ? i = e.text.textContent : i = e.childNodes[0].textContent, i.split(`
1336
1344
  `).forEach((l, c) => {
1337
1345
  const d = document.createElementNS(C, "text");
1338
- w(d, {
1346
+ x(d, {
1339
1347
  x: n + parseInt(t.paddingLeft) + "",
1340
1348
  y: o + parseInt(t.paddingTop) + Gt(t.lineHeight, t.fontSize) * (c + 1) + parseFloat(t.fontSize) * (c + 1) + "",
1341
1349
  "text-anchor": "start",
@@ -1351,21 +1359,21 @@ function Ut(e, t, n, o) {
1351
1359
  let s = "";
1352
1360
  (l = e.nodeObj) != null && l.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
1353
1361
  const i = document.createElementNS(C, "foreignObject");
1354
- w(i, {
1362
+ x(i, {
1355
1363
  x: n + parseInt(t.paddingLeft) + "",
1356
1364
  y: o + parseInt(t.paddingTop) + "",
1357
1365
  width: t.width,
1358
1366
  height: t.height
1359
1367
  });
1360
1368
  const r = document.createElement("div");
1361
- return w(r, {
1369
+ return x(r, {
1362
1370
  xmlns: "http://www.w3.org/1999/xhtml",
1363
1371
  style: `font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`
1364
1372
  }), r.innerHTML = s, i.appendChild(r), i;
1365
1373
  }
1366
1374
  function Jt(e, t) {
1367
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = A(e.nodes, t), i = document.createElementNS(C, "rect");
1368
- return w(i, {
1375
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = N(e.nodes, t), i = document.createElementNS(C, "rect");
1376
+ return x(i, {
1369
1377
  x: o + "",
1370
1378
  y: s + "",
1371
1379
  rx: n.borderRadius,
@@ -1377,9 +1385,9 @@ function Jt(e, t) {
1377
1385
  "stroke-width": n.borderWidth
1378
1386
  }), i;
1379
1387
  }
1380
- function G(e, t, n = !1) {
1381
- const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = A(e.nodes, t), r = document.createElementNS(C, "rect");
1382
- w(r, {
1388
+ function Y(e, t, n = !1) {
1389
+ const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = N(e.nodes, t), r = document.createElementNS(C, "rect");
1390
+ x(r, {
1383
1391
  x: s + "",
1384
1392
  y: i + "",
1385
1393
  rx: o.borderRadius,
@@ -1396,8 +1404,8 @@ function G(e, t, n = !1) {
1396
1404
  return n ? c = Ut(t, o, s, i) : c = Kt(t, o, s, i), l.appendChild(c), l;
1397
1405
  }
1398
1406
  function Qt(e, t) {
1399
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = A(e.nodes, t), i = document.createElementNS(C, "a"), r = document.createElementNS(C, "text");
1400
- return w(r, {
1407
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = N(e.nodes, t), i = document.createElementNS(C, "a"), r = document.createElementNS(C, "text");
1408
+ return x(r, {
1401
1409
  x: o + "",
1402
1410
  y: s + parseInt(n.fontSize) + "",
1403
1411
  "text-anchor": "start",
@@ -1408,8 +1416,8 @@ function Qt(e, t) {
1408
1416
  }), r.innerHTML = t.textContent, i.appendChild(r), i.setAttribute("href", t.href), i;
1409
1417
  }
1410
1418
  function Zt(e, t) {
1411
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = A(e.nodes, t), i = document.createElementNS(C, "image");
1412
- return w(i, {
1419
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = N(e.nodes, t), i = document.createElementNS(C, "image");
1420
+ return x(i, {
1413
1421
  x: o + "",
1414
1422
  y: s + "",
1415
1423
  width: n.width + "",
@@ -1417,18 +1425,18 @@ function Zt(e, t) {
1417
1425
  href: t.src
1418
1426
  }), i;
1419
1427
  }
1420
- const K = 100, en = '<?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">', tn = (e, t = !1) => {
1428
+ const G = 100, en = '<?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">', tn = (e, t = !1) => {
1421
1429
  var a, f, m;
1422
- const n = e.nodes, o = n.offsetHeight + K * 2, s = n.offsetWidth + K * 2, i = Yt(o + "px", s + "px"), r = document.createElementNS(C, "svg"), l = document.createElementNS(C, "rect");
1423
- w(l, {
1430
+ const n = e.nodes, o = n.offsetHeight + G * 2, s = n.offsetWidth + G * 2, i = Yt(o + "px", s + "px"), r = document.createElementNS(C, "svg"), l = document.createElementNS(C, "rect");
1431
+ x(l, {
1424
1432
  x: "0",
1425
1433
  y: "0",
1426
1434
  width: `${s}`,
1427
1435
  height: `${o}`,
1428
1436
  fill: e.theme.cssVar["--bgcolor"]
1429
1437
  }), i.appendChild(l), n.querySelectorAll(".subLines").forEach((u) => {
1430
- const p = u.cloneNode(!0), { offsetLeft: g, offsetTop: v } = A(n, u.parentElement);
1431
- p.setAttribute("x", `${g}`), p.setAttribute("y", `${v}`), r.appendChild(p);
1438
+ const p = u.cloneNode(!0), { offsetLeft: g, offsetTop: y } = N(n, u.parentElement);
1439
+ p.setAttribute("x", `${g}`), p.setAttribute("y", `${y}`), r.appendChild(p);
1432
1440
  });
1433
1441
  const c = (a = n.querySelector(".lines")) == null ? void 0 : a.cloneNode(!0);
1434
1442
  c && r.appendChild(c);
@@ -1436,18 +1444,18 @@ const K = 100, en = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "
1436
1444
  d && r.appendChild(d);
1437
1445
  const h = (m = n.querySelector(".summary")) == null ? void 0 : m.cloneNode(!0);
1438
1446
  return h && r.appendChild(h), n.querySelectorAll("me-tpc").forEach((u) => {
1439
- u.nodeObj.dangerouslySetInnerHTML ? r.appendChild(G(e, u, !t)) : (r.appendChild(Jt(e, u)), r.appendChild(G(e, u.text, !t)));
1447
+ u.nodeObj.dangerouslySetInnerHTML ? r.appendChild(Y(e, u, !t)) : (r.appendChild(Jt(e, u)), r.appendChild(Y(e, u.text, !t)));
1440
1448
  }), n.querySelectorAll(".tags > span").forEach((u) => {
1441
- r.appendChild(G(e, u));
1449
+ r.appendChild(Y(e, u));
1442
1450
  }), n.querySelectorAll(".icons > span").forEach((u) => {
1443
- r.appendChild(G(e, u));
1451
+ r.appendChild(Y(e, u));
1444
1452
  }), n.querySelectorAll(".hyper-link").forEach((u) => {
1445
1453
  r.appendChild(Qt(e, u));
1446
1454
  }), n.querySelectorAll("img").forEach((u) => {
1447
1455
  r.appendChild(Zt(e, u));
1448
- }), w(r, {
1449
- x: K + "",
1450
- y: K + "",
1456
+ }), x(r, {
1457
+ x: G + "",
1458
+ y: G + "",
1451
1459
  overflow: "visible"
1452
1460
  }), i.appendChild(r), i;
1453
1461
  }, nn = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), en + e.outerHTML);
@@ -1478,8 +1486,8 @@ const sn = function(e = !1, t) {
1478
1486
  exportPng: rn,
1479
1487
  exportSvg: sn
1480
1488
  }, Symbol.toStringTag, { value: "Module" })), cn = {}, an = {
1481
- getObjById: U,
1482
- generateNewObj: $e,
1489
+ getObjById: K,
1490
+ generateNewObj: Ae,
1483
1491
  layout: He,
1484
1492
  linkDiv: Fe,
1485
1493
  editTopic: Re,
@@ -1497,7 +1505,7 @@ const sn = function(e = !1, t) {
1497
1505
  init(e) {
1498
1506
  if (!e || !e.nodeData)
1499
1507
  return new Error("MindElixir: `data` is required");
1500
- e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, te(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && Ye(this), this.toCenter(), this.layout(), this.linkDiv();
1508
+ e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, ee(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && Ye(this), this.toCenter(), this.layout(), this.linkDiv();
1501
1509
  },
1502
1510
  destroy() {
1503
1511
  var e, t;
@@ -1517,11 +1525,11 @@ function dn({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction:
1517
1525
  d ? h = e + o / 2 : h = e + o;
1518
1526
  const f = s + l;
1519
1527
  let m = 0, u = 0, p = 0;
1520
- const g = Math.abs(h - f) / 300 * N;
1521
- return c === "lhs" ? (p = t, m = p + N, u = p - N, a = i + N, `M ${m} ${h} C ${p} ${h} ${p + g} ${f} ${u} ${f} H ${a}`) : (p = t + n, m = p - N, u = p + N, a = i + r - N, `M ${m} ${h} C ${p} ${h} ${p - g} ${f} ${u} ${f} H ${a}`);
1528
+ const g = Math.abs(h - f) / 300 * $;
1529
+ return c === "lhs" ? (p = t, m = p + $, u = p - $, a = i + $, `M ${m} ${h} C ${p} ${h} ${p + g} ${f} ${u} ${f} H ${a}`) : (p = t + n, m = p - $, u = p + $, a = i + r - $, `M ${m} ${h} C ${p} ${h} ${p - g} ${f} ${u} ${f} H ${a}`);
1522
1530
  }
1523
- const un = "4.2.2", I = document;
1524
- function $({
1531
+ const un = "4.2.4", V = document;
1532
+ function A({
1525
1533
  el: e,
1526
1534
  direction: t,
1527
1535
  locale: n,
@@ -1539,27 +1547,26 @@ function $({
1539
1547
  generateMainBranch: u,
1540
1548
  generateSubBranch: p,
1541
1549
  overflowHidden: g,
1542
- mobileMenu: v,
1543
1550
  theme: y
1544
1551
  }) {
1545
- let b = null;
1546
- const _ = Object.prototype.toString.call(e);
1547
- if (_ === "[object HTMLDivElement]" ? b = e : _ === "[object String]" && (b = document.querySelector(e)), !b)
1552
+ let v = null;
1553
+ const w = Object.prototype.toString.call(e);
1554
+ if (w === "[object HTMLDivElement]" ? v = e : w === "[object String]" && (v = document.querySelector(e)), !v)
1548
1555
  throw new Error("MindElixir: el is not a valid element");
1549
- b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", N + "px"), this.mindElixirBox = b, this.disposable = [], this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mouseSelectionButton = d || 0, this.mobileMenu = v || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = f || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = m === void 0 ? !1 : m, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = u || hn, this.generateSubBranch = p || dn, this.overflowHidden = g || !1, this.bus = De.create(), this.container = I.createElement("div"), this.selectionContainer = h || this.container, this.container.className = "map-container";
1550
- const E = window.matchMedia("(prefers-color-scheme: dark)");
1551
- this.theme = y || (E.matches ? ye : ve);
1552
- const R = I.createElement("div");
1553
- R.className = "map-canvas", this.map = R, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.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 = le(), this.line2 = le(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = F("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : ke(this);
1556
+ v.className += " mind-elixir", v.innerHTML = "", v.style.setProperty("--gap", $ + "px"), this.mindElixirBox = v, this.disposable = [], this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mouseSelectionButton = d || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = f || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = m === void 0 ? !1 : m, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = u || hn, this.generateSubBranch = p || dn, this.overflowHidden = g || !1, this.bus = De.create(), this.container = V.createElement("div"), this.selectionContainer = h || this.container, this.container.className = "map-container";
1557
+ const _ = window.matchMedia("(prefers-color-scheme: dark)");
1558
+ this.theme = y || (_.matches ? ye : ve);
1559
+ const E = V.createElement("div");
1560
+ E.className = "map-canvas", this.map = E, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = V.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = I("lines"), this.summarySvg = I("summary"), this.linkController = I("linkcontroller"), this.P2 = V.createElement("div"), this.P3 = V.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = le(), this.line2 = le(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = I("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : ke(this);
1554
1561
  }
1555
- $.prototype = an;
1556
- $.LEFT = q;
1557
- $.RIGHT = Z;
1558
- $.SIDE = ee;
1559
- $.THEME = ve;
1560
- $.DARK_THEME = ye;
1561
- $.version = un;
1562
- $.E = L;
1562
+ A.prototype = an;
1563
+ A.LEFT = q;
1564
+ A.RIGHT = Q;
1565
+ A.SIDE = Z;
1566
+ A.THEME = ve;
1567
+ A.DARK_THEME = ye;
1568
+ A.version = un;
1569
+ A.E = L;
1563
1570
  export {
1564
- $ as default
1571
+ A as default
1565
1572
  };