mind-elixir 3.2.1 → 3.2.2
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.
- package/dist/MindElixir.iife.js +5 -5
- package/dist/MindElixir.js +59 -56
- package/dist/MindElixirLite.iife.js +3 -3
- package/dist/MindElixirLite.js +56 -53
- package/dist/types/customLink.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/methods.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
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;--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}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.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;line-height:1.2em;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:20px 65px}.map-container me-main>me-wrapper>me-parent{margin:var(--gap);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 var(--gap)}.map-container me-main>me-wrapper>me-parent>me-tpc #input-box{padding:8px var(--gap)}.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);line-height:1.2em}.map-container me-parent me-tpc>div,.map-container me-parent me-tpc>span,.map-container me-parent me-tpc>img{pointer-events:none}.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>img{pointer-events:none;display:block;margin-top:8px}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#aaa;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}.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}.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;font:300 15px Roboto,sans-serif;color:var(--panel-color);box-shadow:0 12px 15px #0003}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:10px 14px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color)}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none;color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li:hover{cursor:pointer;filter:brightness(.9)}.mind-elixir .context-menu .menu-list li:first-child{border-radius:5px 5px 0 0}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0;border-radius:0 0 5px 5px}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.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(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
|
|
2
|
-
var MindElixirLite=function(){"use strict";const $e="";(function(e){var t,n,s,i,o,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");if(c&&!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(h){console&&console.log(h)}}function u(){o||(o=!0,s())}t=function(){var h,d,a,f;(f=document.createElement("div")).innerHTML=l,l=null,(a=f.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",h=a,(d=document.body).firstChild?(f=h,(a=d.firstChild).parentNode.insertBefore(f,a)):d.appendChild(h))},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&&(s=t,i=e.document,o=!1,(r=function(){try{i.documentElement.doScroll("left")}catch{return void setTimeout(r,50)}u()})(),i.onreadystatechange=function(){i.readyState=="complete"&&(i.onreadystatechange=null,u())})})(window);const z=0,Q=1,X=2,L=30,S=8,nt={name:"Latte",palette:["#dd7878","#ea76cb","#8839ef","#e64553","#fe640b","#df8e1d","#40a02b","#209fb5","#1e66f5","#7287fd"],cssVar:{"--main-color":"#444446","--main-bgcolor":"#ffffff","--color":"#777777","--bgcolor":"#f6f6f6","--panel-color":"#444446","--panel-bgcolor":"#ffffff","--panel-border-color":"#eaeaea"}},st={name:"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 it(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""")}const ot=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 s=ot(e,t.children[n]);if(s)return s}return null}else return null},Z=(e,t)=>{if(e.parent=t,e.children)for(let n=0;n<e.children.length;n++)Z(e.children[n],e)};function rt(e,t,n,s){const i=s-t,o=e-n;let r=Math.atan(Math.abs(i)/Math.abs(o))/3.14*180;o<0&&i>0&&(r=180-r),o<0&&i<0&&(r=180+r),o>0&&i<0&&(r=360-r);const l=15,c=30,u=r+c,h=r-c;return{x1:n+Math.cos(Math.PI*u/180)*l,y1:s-Math.sin(Math.PI*u/180)*l,x2:n+Math.cos(Math.PI*h/180)*l,y2:s-Math.sin(Math.PI*h/180)*l}}function tt(){return(new Date().getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}const $t=function(){const e=tt();return{topic:this.newTopicName,id:e}},B=(e,t)=>{let n=0,s=0;for(;t&&t!==e;)n+=t.offsetLeft,s+=t.offsetTop,t=t.offsetParent;return{offsetLeft:n,offsetTop:s}},b=(e,t)=>{for(const n in t)e.setAttribute(n,t[n])},N={moved:!1,mousedown:!1,lastX:0,lastY:0,onMove(e,t){if(this.mousedown){if(this.moved=!0,!this.lastX){this.lastX=e.pageX,this.lastY=e.pageY;return}const n=this.lastX-e.pageX,s=this.lastY-e.pageY;t.scrollTo(t.scrollLeft+n,t.scrollTop+s),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.moved=!1,this.mousedown=!1,this.lastX=0,this.lastY=0}},lt=e=>e.tagName==="ME-TPC";function Tt(e){e.map.addEventListener("click",t=>{if(N.moved){N.clear();return}e.unselectNode(),e.unselectNodes(),e.unselectSummary();const n=t.target;if(n.tagName==="ME-EPD")e.expandNode(n.previousSibling);else if(e.editable)lt(n)?e.selectNode(n,!1,t):n.tagName==="text"?n.dataset.type==="custom-link"?e.selectLink(n.parentElement):e.selectSummary(n.parentElement):n.className==="circle"||e.hideLinkController&&e.hideLinkController();else return}),e.map.addEventListener("dblclick",t=>{if(t.preventDefault(),!e.editable)return;const n=t.target;lt(n)?e.beginEdit(n):n.tagName==="text"&&(n.dataset.type==="custom-link"?e.editCutsomLinkLabel(n.parentElement):e.editSummary(n.parentElement))}),e.map.addEventListener("mousemove",t=>{t.target.contentEditable!=="true"&&N.onMove(t,e.container)}),e.map.addEventListener("mousedown",t=>{t.button===2&&t.target.contentEditable!=="true"&&(N.moved=!1,N.mousedown=!0)}),e.map.addEventListener("mouseleave",t=>{console.log(t.button),t.button===2&&N.clear()}),e.map.addEventListener("mouseup",t=>{t.button===2&&N.clear()}),e.map.addEventListener("contextmenu",t=>{t.preventDefault()})}const Nt={create(){return{handlers:{},showHandler:function(){console.log(this.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 s=0;s<n.length;s++)n[s](...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 s=0;s<n.length;s++)n[s]===t&&this.handlers[e].splice(s,1)}}}},F=document,Dt=function(){console.time("layout"),this.nodes.innerHTML="";const e=this.createTopic(this.nodeData);ct(e,this.nodeData),e.draggable=!1;const t=F.createElement("me-root");t.appendChild(e);const n=this.nodeData.children||[];if(this.direction===X){let s=0,i=0;n.map(o=>{o.direction===z?s+=1:o.direction===Q?i+=1:s<=i?(o.direction=z,s+=1):(o.direction=Q,i+=1)})}At(this,n,t),console.timeEnd("layout")},At=function(e,t,n){const s=F.createElement("me-main");s.className="lhs";const i=F.createElement("me-main");i.className="rhs";for(let o=0;o<t.length;o++){const r=t[o],{grp:l}=e.createWrapper(r);e.direction===X?r.direction===z?s.appendChild(l):i.appendChild(l):e.direction===z?s.appendChild(l):i.appendChild(l)}e.nodes.appendChild(s),e.nodes.appendChild(n),e.nodes.appendChild(i),e.nodes.appendChild(e.lines)},Ht=function(e,t){const n=F.createElement("me-children");for(let s=0;s<t.length;s++){const i=t[s],{grp:o}=e.createWrapper(i);n.appendChild(o)}return n},E=document,C=(e,t)=>(t?t.mindElixirBox:E).querySelector(`[data-nodeid=me${e}]`),ct=function(e,t){if(e.textContent=t.topic,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.image){const n=t.image;if(n.url&&n.width&&n.height){const s=E.createElement("img");s.src=n.url,s.style.width=n.width+"px",s.style.height=n.height+"px",e.appendChild(s),e.image=s}else console.warn("image url/width/height are required")}if(t.hyperLink){const n=E.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n),e.linkContainer=n}else e.linkContainer&&(e.linkContainer.remove(),e.linkContainer=null);if(t.icons&&t.icons.length){const n=E.createElement("span");n.className="icons",n.innerHTML=t.icons.map(s=>`<span>${it(s)}</span>`).join(""),e.appendChild(n),e.icons=n}if(t.tags&&t.tags.length){const n=E.createElement("div");n.className="tags",n.innerHTML=t.tags.map(s=>`<span>${it(s)}</span>`).join(""),e.appendChild(n),e.tags=n}t.branchColor&&(e.style.borderColor=t.branchColor)},Pt=function(e,t){const n=E.createElement("me-wrapper"),{p:s,tpc:i}=this.createParent(e);if(n.appendChild(s),!t&&e.children&&e.children.length>0){const o=Rt(e.expanded);if(s.appendChild(o),e.expanded!==!1){const r=Ht(this,e.children);n.appendChild(r)}}return{grp:n,top:s,tpc:i}},zt=function(e){const t=E.createElement("me-parent"),n=this.createTopic(e);return ct(n,e),t.appendChild(n),{p:t,tpc:n}},Bt=function(e){const t=E.createElement("me-children");return t.append(...e),t},Ot=function(e){const t=E.createElement("me-tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t};function at(e){const t=E.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}const qt=function(e){if(console.time("editTopic"),!e)return;const t=E.createElement("div"),n=e.childNodes[0].textContent;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===z&&(t.style.right="0"),t.focus(),at(t),this.bus.fire("operation",{name:"beginEdit",obj:e.nodeObj}),t.addEventListener("keydown",s=>{s.stopPropagation();const i=s.key;if(i==="Enter"||i==="Tab"){if(s.shiftKey)return;s.preventDefault(),t==null||t.blur(),this.map.focus()}}),t.addEventListener("blur",()=>{var o;if(!t)return;const s=e.nodeObj,i=((o=t.textContent)==null?void 0:o.trim())||"";console.log(i),i===""?s.topic=n:s.topic=i,t.remove(),i!==n&&(e.childNodes[0].textContent=s.topic,this.linkDiv(),this.bus.fire("operation",{name:"finishEdit",obj:s,origin:n}))}),console.timeEnd("editTopic")},Rt=function(e){const t=E.createElement("me-epd");return t.expanded=e!==!1,t.className=e!==!1?"minus":"",t},D=document,A="http://www.w3.org/2000/svg",Vt=function(e,t){const n=D.createElementNS(A,"path");return n.setAttribute("d",e),n.setAttribute("stroke",t||"#666"),n.setAttribute("fill","none"),n.setAttribute("stroke-width","3"),n},V=function(e){const t=D.createElementNS(A,"svg");return t.setAttribute("class",e),t.setAttribute("overflow","visible"),t},ht=function(){const e=D.createElementNS(A,"line");return e.setAttribute("stroke","#bbb"),e.setAttribute("fill","none"),e.setAttribute("stroke-width","2"),e},jt=function(e,t){const n=D.createElementNS(A,"path");return n.setAttribute("d",e),n.setAttribute("stroke",t||"#555"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","square"),n.setAttribute("stroke-width","2"),n},Wt=function(e,t){const n={stroke:"rgb(235, 95, 82)",fill:"none","stroke-linecap":"cap","stroke-width":"2"},s=D.createElementNS(A,"g"),i=D.createElementNS(A,"path"),o=D.createElementNS(A,"path");return b(o,{d:t,...n}),b(i,{d:e,...n,"stroke-dasharray":"8,2"}),s.appendChild(i),s.appendChild(o),s},dt=function(e,t,n){if(console.time("editSummary"),!t)return;const s=document.createElement("div");e.nodes.appendChild(s);const i=t.innerHTML;s.id="input-box",s.textContent=i,s.contentEditable="true",s.spellcheck=!1;const o=t.getAttribute("x")+"px",r=t.getAttribute("y")+"px";s.style.cssText=`min-width:${100-8}px;position:absolute;left:${o};top:${r};`;const l=t.getAttribute("text-anchor");l==="end"?s.style.cssText+="transform: translate(-100%, -100%);":l==="middle"?s.style.cssText+="transform: translate(-50%, -100%);":s.style.cssText+="transform: translate(0, -100%);",s.focus(),at(s),s.addEventListener("keydown",c=>{c.stopPropagation();const u=c.key;if(u==="Enter"||u==="Tab"){if(c.shiftKey)return;c.preventDefault(),s.blur(),e.map.focus()}}),s.addEventListener("blur",()=>{s&&n(s)}),console.timeEnd("editSummary")};let ut=pt;const Xt=function(e){console.time("linkDiv");const t=this.map.querySelector("me-root");this.nodes.style.top=`${1e4-this.nodes.offsetHeight/2}px`,this.nodes.style.left=`${1e4-t.offsetLeft-t.offsetWidth/2}px`;const n=this.map.querySelectorAll("me-main > me-wrapper");this.lines.innerHTML="",ut=this.subLinkStyle===2?It:pt;for(let s=0;s<n.length;s++){const i=n[s],o=i.querySelector("me-tpc"),r=i.firstChild,l=i.parentNode.className;let c=t.offsetLeft+t.offsetWidth/2;const u=t.offsetTop+t.offsetHeight/2;let h;const d=this.theme.palette,a=o.nodeObj.branchColor||d[s%d.length],{offsetLeft:f,offsetTop:g}=B(this.nodes,r);l==="lhs"?h=f+r.offsetWidth:h=f;const m=g+r.offsetHeight/2;let p="";if(this.mainLinkStyle===2)this.direction===X&&(l==="lhs"?c=c-t.offsetWidth/6:c=c+t.offsetWidth/6),p=Ft({x1:c,y1:u,x2:h,y2:m});else{const w=(1-Math.abs(m-i.parentElement.offsetTop-i.parentElement.offsetHeight/2)/i.parentElement.offsetHeight)*.25*(t.offsetWidth/2);l==="lhs"?c=c-t.offsetWidth/10-w:c=c+t.offsetWidth/10+w,p=Yt({x1:c,y1:u,x2:h,y2:m})}this.lines.appendChild(Vt(p,a));const v=i.children[0].children[1];if(v&&(v.style.top=(v.parentNode.offsetHeight-v.offsetHeight)/2+"px",l==="lhs"?v.style.left="-10px":v.style.right="-10px"),!(e&&e!==i)&&i.childElementCount){const x=V("subLines"),w=i.lastChild;w.tagName==="svg"&&w.remove(),i.appendChild(x);const _=i.firstChild,M=i.children[1].children,U=ft(M,_,l,!0);x.appendChild(jt(U,a))}}this.renderCustomLink(),this.renderSummary(),console.timeEnd("linkDiv")},ft=function(e,t,n,s){let i="";const o=t.offsetTop,r=t.offsetLeft,l=t.offsetWidth,c=t.offsetHeight;for(let u=0;u<e.length;u++){const h=e[u],d=h.firstChild,a=d.offsetTop,f=d.offsetLeft,g=d.offsetWidth,m=d.offsetHeight;i+=ut({pT:o,pL:r,pW:l,pH:c,cT:a,cL:f,cW:g,cH:m,direction:n,isFirst:s});const p=d.children[1];if(p){if(p.style.bottom=-(p.offsetHeight/2)+"px",n==="lhs"?p.style.left="10px":n==="rhs"&&(p.style.right="10px"),!p.expanded)continue}else continue;const v=h.children[1].children;v.length>0&&(i+=ft(v,d,n))}return i};function Ft({x1:e,y1:t,x2:n,y2:s}){return`M ${e} ${t} V ${s>t?s-20:s+20} C ${e} ${s} ${e} ${s} ${n>e?e+20:e-20} ${s} H ${n}`}function Yt({x1:e,y1:t,x2:n,y2:s}){return`M ${e} ${t} Q ${e} ${s} ${n} ${s}`}function It({pT:e,pL:t,pW:n,pH:s,cT:i,cL:o,cW:r,cH:l,direction:c,isFirst:u}){let h;u?h=e+s/2:h=e+s;const d=i+l;let a=0,f=0,g=0;return c==="lhs"?(a=t+L,f=o,g=o+r):c==="rhs"&&(a=t+n-L,f=o+r,g=o),d<h+50&&d>h-50?`M ${a} ${h} H ${g} V ${d} H ${f}`:d>=h?`M ${a} ${h} H ${g} V ${d-S} A ${S} ${S} 0 0 ${a>f?1:0} ${a>f?g-S:g+S} ${d} H ${f}`:`M ${a} ${h} H ${g} V ${d+S} A ${S} ${S} 0 0 ${a>f?0:1} ${a>f?g-S:g+S} ${d} H ${f}`}function pt({pT:e,pL:t,pW:n,pH:s,cT:i,cL:o,cW:r,cH:l,direction:c,isFirst:u}){let h=0,d=0;u?h=e+s/2:h=e+s;const a=i+l;let f=0,g=0,m=0;const p=Math.min(Math.abs(h-a)/800,1.2)*L;return c==="lhs"?(m=t,f=m+L,g=m-L,d=o+L,`M ${f} ${h} C ${m} ${h} ${m+p} ${a} ${g} ${a} H ${d}`):(m=t+n,f=m-L,g=m+L,d=o+r-L,`M ${f} ${h} C ${m} ${h} ${m-p} ${a} ${g} ${a} H ${d}`)}const Te="",Ne="",De="",H=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
|
|
2
|
+
var MindElixirLite=function(){"use strict";const Te="";(function(e){var t,n,s,i,o,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");if(c&&!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(h){console&&console.log(h)}}function u(){o||(o=!0,s())}t=function(){var h,d,a,f;(f=document.createElement("div")).innerHTML=l,l=null,(a=f.getElementsByTagName("svg")[0])&&(a.setAttribute("aria-hidden","true"),a.style.position="absolute",a.style.width=0,a.style.height=0,a.style.overflow="hidden",h=a,(d=document.body).firstChild?(f=h,(a=d.firstChild).parentNode.insertBefore(f,a)):d.appendChild(h))},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&&(s=t,i=e.document,o=!1,(r=function(){try{i.documentElement.doScroll("left")}catch{return void setTimeout(r,50)}u()})(),i.onreadystatechange=function(){i.readyState=="complete"&&(i.onreadystatechange=null,u())})})(window);const z=0,Q=1,X=2,L=30,S=8,nt={name:"Latte",palette:["#dd7878","#ea76cb","#8839ef","#e64553","#fe640b","#df8e1d","#40a02b","#209fb5","#1e66f5","#7287fd"],cssVar:{"--main-color":"#444446","--main-bgcolor":"#ffffff","--color":"#777777","--bgcolor":"#f6f6f6","--panel-color":"#444446","--panel-bgcolor":"#ffffff","--panel-border-color":"#eaeaea"}},st={name:"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 it(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/"/g,""")}const ot=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 s=ot(e,t.children[n]);if(s)return s}return null}else return null},Z=(e,t)=>{if(e.parent=t,e.children)for(let n=0;n<e.children.length;n++)Z(e.children[n],e)};function rt(e,t,n,s){const i=s-t,o=e-n;let r=Math.atan(Math.abs(i)/Math.abs(o))/3.14*180;o<0&&i>0&&(r=180-r),o<0&&i<0&&(r=180+r),o>0&&i<0&&(r=360-r);const l=15,c=30,u=r+c,h=r-c;return{x1:n+Math.cos(Math.PI*u/180)*l,y1:s-Math.sin(Math.PI*u/180)*l,x2:n+Math.cos(Math.PI*h/180)*l,y2:s-Math.sin(Math.PI*h/180)*l}}function tt(){return(new Date().getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}const $t=function(){const e=tt();return{topic:this.newTopicName,id:e}},B=(e,t)=>{let n=0,s=0;for(;t&&t!==e;)n+=t.offsetLeft,s+=t.offsetTop,t=t.offsetParent;return{offsetLeft:n,offsetTop:s}},b=(e,t)=>{for(const n in t)e.setAttribute(n,t[n])},N={moved:!1,mousedown:!1,lastX:0,lastY:0,onMove(e,t){if(this.mousedown){if(this.moved=!0,!this.lastX){this.lastX=e.pageX,this.lastY=e.pageY;return}const n=this.lastX-e.pageX,s=this.lastY-e.pageY;t.scrollTo(t.scrollLeft+n,t.scrollTop+s),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.moved=!1,this.mousedown=!1,this.lastX=0,this.lastY=0}},lt=e=>e.tagName==="ME-TPC";function Tt(e){e.map.addEventListener("click",t=>{if(N.moved){N.clear();return}e.unselectNode(),e.unselectNodes(),e.unselectSummary(),e.unselectLink();const n=t.target;if(n.tagName==="ME-EPD")e.expandNode(n.previousSibling);else if(e.editable)lt(n)?e.selectNode(n,!1,t):n.tagName==="text"?n.dataset.type==="custom-link"?e.selectLink(n.parentElement):e.selectSummary(n.parentElement):n.className==="circle"||e.hideLinkController&&e.hideLinkController();else return}),e.map.addEventListener("dblclick",t=>{if(t.preventDefault(),!e.editable)return;const n=t.target;lt(n)?e.beginEdit(n):n.tagName==="text"&&(n.dataset.type==="custom-link"?e.editCutsomLinkLabel(n.parentElement):e.editSummary(n.parentElement))}),e.map.addEventListener("mousemove",t=>{t.target.contentEditable!=="true"&&N.onMove(t,e.container)}),e.map.addEventListener("mousedown",t=>{t.button===2&&t.target.contentEditable!=="true"&&(N.moved=!1,N.mousedown=!0)}),e.map.addEventListener("mouseleave",t=>{console.log(t.button),t.button===2&&N.clear()}),e.map.addEventListener("mouseup",t=>{t.button===2&&N.clear()}),e.map.addEventListener("contextmenu",t=>{t.preventDefault()})}const Nt={create(){return{handlers:{},showHandler:function(){console.log(this.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 s=0;s<n.length;s++)n[s](...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 s=0;s<n.length;s++)n[s]===t&&this.handlers[e].splice(s,1)}}}},F=document,Dt=function(){console.time("layout"),this.nodes.innerHTML="";const e=this.createTopic(this.nodeData);ct(e,this.nodeData),e.draggable=!1;const t=F.createElement("me-root");t.appendChild(e);const n=this.nodeData.children||[];if(this.direction===X){let s=0,i=0;n.map(o=>{o.direction===z?s+=1:o.direction===Q?i+=1:s<=i?(o.direction=z,s+=1):(o.direction=Q,i+=1)})}At(this,n,t),console.timeEnd("layout")},At=function(e,t,n){const s=F.createElement("me-main");s.className="lhs";const i=F.createElement("me-main");i.className="rhs";for(let o=0;o<t.length;o++){const r=t[o],{grp:l}=e.createWrapper(r);e.direction===X?r.direction===z?s.appendChild(l):i.appendChild(l):e.direction===z?s.appendChild(l):i.appendChild(l)}e.nodes.appendChild(s),e.nodes.appendChild(n),e.nodes.appendChild(i),e.nodes.appendChild(e.lines)},Ht=function(e,t){const n=F.createElement("me-children");for(let s=0;s<t.length;s++){const i=t[s],{grp:o}=e.createWrapper(i);n.appendChild(o)}return n},E=document,C=(e,t)=>(t?t.mindElixirBox:E).querySelector(`[data-nodeid=me${e}]`),ct=function(e,t){if(e.textContent=t.topic,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.image){const n=t.image;if(n.url&&n.width&&n.height){const s=E.createElement("img");s.src=n.url,s.style.width=n.width+"px",s.style.height=n.height+"px",e.appendChild(s),e.image=s}else console.warn("image url/width/height are required")}if(t.hyperLink){const n=E.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n),e.linkContainer=n}else e.linkContainer&&(e.linkContainer.remove(),e.linkContainer=null);if(t.icons&&t.icons.length){const n=E.createElement("span");n.className="icons",n.innerHTML=t.icons.map(s=>`<span>${it(s)}</span>`).join(""),e.appendChild(n),e.icons=n}if(t.tags&&t.tags.length){const n=E.createElement("div");n.className="tags",n.innerHTML=t.tags.map(s=>`<span>${it(s)}</span>`).join(""),e.appendChild(n),e.tags=n}t.branchColor&&(e.style.borderColor=t.branchColor)},Pt=function(e,t){const n=E.createElement("me-wrapper"),{p:s,tpc:i}=this.createParent(e);if(n.appendChild(s),!t&&e.children&&e.children.length>0){const o=Rt(e.expanded);if(s.appendChild(o),e.expanded!==!1){const r=Ht(this,e.children);n.appendChild(r)}}return{grp:n,top:s,tpc:i}},zt=function(e){const t=E.createElement("me-parent"),n=this.createTopic(e);return ct(n,e),t.appendChild(n),{p:t,tpc:n}},Bt=function(e){const t=E.createElement("me-children");return t.append(...e),t},Ot=function(e){const t=E.createElement("me-tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t};function at(e){const t=E.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}const qt=function(e){if(console.time("editTopic"),!e)return;const t=E.createElement("div"),n=e.childNodes[0].textContent;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===z&&(t.style.right="0"),t.focus(),at(t),this.bus.fire("operation",{name:"beginEdit",obj:e.nodeObj}),t.addEventListener("keydown",s=>{s.stopPropagation();const i=s.key;if(i==="Enter"||i==="Tab"){if(s.shiftKey)return;s.preventDefault(),t==null||t.blur(),this.map.focus()}}),t.addEventListener("blur",()=>{var o;if(!t)return;const s=e.nodeObj,i=((o=t.textContent)==null?void 0:o.trim())||"";console.log(i),i===""?s.topic=n:s.topic=i,t.remove(),i!==n&&(e.childNodes[0].textContent=s.topic,this.linkDiv(),this.bus.fire("operation",{name:"finishEdit",obj:s,origin:n}))}),console.timeEnd("editTopic")},Rt=function(e){const t=E.createElement("me-epd");return t.expanded=e!==!1,t.className=e!==!1?"minus":"",t},D=document,A="http://www.w3.org/2000/svg",Vt=function(e,t){const n=D.createElementNS(A,"path");return n.setAttribute("d",e),n.setAttribute("stroke",t||"#666"),n.setAttribute("fill","none"),n.setAttribute("stroke-width","3"),n},V=function(e){const t=D.createElementNS(A,"svg");return t.setAttribute("class",e),t.setAttribute("overflow","visible"),t},ht=function(){const e=D.createElementNS(A,"line");return e.setAttribute("stroke","#bbb"),e.setAttribute("fill","none"),e.setAttribute("stroke-width","2"),e},jt=function(e,t){const n=D.createElementNS(A,"path");return n.setAttribute("d",e),n.setAttribute("stroke",t||"#555"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","square"),n.setAttribute("stroke-width","2"),n},Wt=function(e,t){const n={stroke:"rgb(235, 95, 82)",fill:"none","stroke-linecap":"cap","stroke-width":"2"},s=D.createElementNS(A,"g"),i=D.createElementNS(A,"path"),o=D.createElementNS(A,"path");return b(o,{d:t,...n}),b(i,{d:e,...n,"stroke-dasharray":"8,2"}),s.appendChild(i),s.appendChild(o),s},dt=function(e,t,n){if(console.time("editSummary"),!t)return;const s=document.createElement("div");e.nodes.appendChild(s);const i=t.innerHTML;s.id="input-box",s.textContent=i,s.contentEditable="true",s.spellcheck=!1;const o=t.getAttribute("x")+"px",r=t.getAttribute("y")+"px";s.style.cssText=`min-width:${100-8}px;position:absolute;left:${o};top:${r};`;const l=t.getAttribute("text-anchor");l==="end"?s.style.cssText+="transform: translate(-100%, -100%);":l==="middle"?s.style.cssText+="transform: translate(-50%, -100%);":s.style.cssText+="transform: translate(0, -100%);",s.focus(),at(s),s.addEventListener("keydown",c=>{c.stopPropagation();const u=c.key;if(u==="Enter"||u==="Tab"){if(c.shiftKey)return;c.preventDefault(),s.blur(),e.map.focus()}}),s.addEventListener("blur",()=>{s&&n(s)}),console.timeEnd("editSummary")};let ut=pt;const Xt=function(e){console.time("linkDiv");const t=this.map.querySelector("me-root");this.nodes.style.top=`${1e4-this.nodes.offsetHeight/2}px`,this.nodes.style.left=`${1e4-t.offsetLeft-t.offsetWidth/2}px`;const n=this.map.querySelectorAll("me-main > me-wrapper");this.lines.innerHTML="",ut=this.subLinkStyle===2?It:pt;for(let s=0;s<n.length;s++){const i=n[s],o=i.querySelector("me-tpc"),r=i.firstChild,l=i.parentNode.className;let c=t.offsetLeft+t.offsetWidth/2;const u=t.offsetTop+t.offsetHeight/2;let h;const d=this.theme.palette,a=o.nodeObj.branchColor||d[s%d.length],{offsetLeft:f,offsetTop:g}=B(this.nodes,r);l==="lhs"?h=f+r.offsetWidth:h=f;const m=g+r.offsetHeight/2;let p="";if(this.mainLinkStyle===2)this.direction===X&&(l==="lhs"?c=c-t.offsetWidth/6:c=c+t.offsetWidth/6),p=Ft({x1:c,y1:u,x2:h,y2:m});else{const w=(1-Math.abs(m-i.parentElement.offsetTop-i.parentElement.offsetHeight/2)/i.parentElement.offsetHeight)*.25*(t.offsetWidth/2);l==="lhs"?c=c-t.offsetWidth/10-w:c=c+t.offsetWidth/10+w,p=Yt({x1:c,y1:u,x2:h,y2:m})}this.lines.appendChild(Vt(p,a));const v=i.children[0].children[1];if(v&&(v.style.top=(v.parentNode.offsetHeight-v.offsetHeight)/2+"px",l==="lhs"?v.style.left="-10px":v.style.right="-10px"),!(e&&e!==i)&&i.childElementCount){const x=V("subLines"),w=i.lastChild;w.tagName==="svg"&&w.remove(),i.appendChild(x);const _=i.firstChild,M=i.children[1].children,U=ft(M,_,l,!0);x.appendChild(jt(U,a))}}this.renderCustomLink(),this.renderSummary(),console.timeEnd("linkDiv")},ft=function(e,t,n,s){let i="";const o=t.offsetTop,r=t.offsetLeft,l=t.offsetWidth,c=t.offsetHeight;for(let u=0;u<e.length;u++){const h=e[u],d=h.firstChild,a=d.offsetTop,f=d.offsetLeft,g=d.offsetWidth,m=d.offsetHeight;i+=ut({pT:o,pL:r,pW:l,pH:c,cT:a,cL:f,cW:g,cH:m,direction:n,isFirst:s});const p=d.children[1];if(p){if(p.style.bottom=-(p.offsetHeight/2)+"px",n==="lhs"?p.style.left="10px":n==="rhs"&&(p.style.right="10px"),!p.expanded)continue}else continue;const v=h.children[1].children;v.length>0&&(i+=ft(v,d,n))}return i};function Ft({x1:e,y1:t,x2:n,y2:s}){return`M ${e} ${t} V ${s>t?s-20:s+20} C ${e} ${s} ${e} ${s} ${n>e?e+20:e-20} ${s} H ${n}`}function Yt({x1:e,y1:t,x2:n,y2:s}){return`M ${e} ${t} Q ${e} ${s} ${n} ${s}`}function It({pT:e,pL:t,pW:n,pH:s,cT:i,cL:o,cW:r,cH:l,direction:c,isFirst:u}){let h;u?h=e+s/2:h=e+s;const d=i+l;let a=0,f=0,g=0;return c==="lhs"?(a=t+L,f=o,g=o+r):c==="rhs"&&(a=t+n-L,f=o+r,g=o),d<h+50&&d>h-50?`M ${a} ${h} H ${g} V ${d} H ${f}`:d>=h?`M ${a} ${h} H ${g} V ${d-S} A ${S} ${S} 0 0 ${a>f?1:0} ${a>f?g-S:g+S} ${d} H ${f}`:`M ${a} ${h} H ${g} V ${d+S} A ${S} ${S} 0 0 ${a>f?0:1} ${a>f?g-S:g+S} ${d} H ${f}`}function pt({pT:e,pL:t,pW:n,pH:s,cT:i,cL:o,cW:r,cH:l,direction:c,isFirst:u}){let h=0,d=0;u?h=e+s/2:h=e+s;const a=i+l;let f=0,g=0,m=0;const p=Math.min(Math.abs(h-a)/800,1.2)*L;return c==="lhs"?(m=t,f=m+L,g=m-L,d=o+L,`M ${f} ${h} C ${m} ${h} ${m+p} ${a} ${g} ${a} H ${d}`):(m=t+n,f=m-L,g=m+L,d=o+r-L,`M ${f} ${h} C ${m} ${h} ${m-p} ${a} ${g} ${a} H ${d}`)}const Ne="",De="",Ae="",H=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
|
|
3
3
|
<use xlink:href="#icon-${t}"></use>
|
|
4
4
|
</svg>`,n};function Gt(e){const t=document.createElement("div"),n=H("fullscreen","full"),s=H("toCenter","living"),i=H("zoomout","move"),o=H("zoomin","add"),r=document.createElement("span");return r.innerText="100%",t.appendChild(n),t.appendChild(s),t.appendChild(i),t.appendChild(o),t.className="mind-elixir-toolbar rb",n.onclick=()=>{e.container.requestFullscreen()},s.onclick=()=>{e.toCenter()},i.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},o.onclick=()=>{e.scaleVal>1.6||e.scale(e.scaleVal+=.2)},t}function Ut(e){const t=document.createElement("div"),n=H("tbltl","left"),s=H("tbltr","right"),i=H("tblts","side");return t.appendChild(n),t.appendChild(s),t.appendChild(i),t.className="mind-elixir-toolbar lt",n.onclick=()=>{e.initLeft()},s.onclick=()=>{e.initRight()},i.onclick=()=>{e.initSide()},t}function Kt(e){e.container.append(Gt(e)),e.container.append(Ut(e))}/*! @viselect/vanilla v3.3.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */var Jt=Object.defineProperty,Qt=(e,t,n)=>t in e?Jt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,y=(e,t,n)=>(Qt(e,typeof t!="symbol"?t+"":t,n),n);class Zt{constructor(){y(this,"_listeners",new Map),y(this,"on",this.addEventListener),y(this,"off",this.removeEventListener),y(this,"emit",this.dispatchEvent)}addEventListener(t,n){const s=this._listeners.get(t)??new Set;return this._listeners.set(t,s),s.add(n),this}removeEventListener(t,n){var s;return(s=this._listeners.get(t))==null||s.delete(n),this}dispatchEvent(t,...n){let s=!0;for(const i of this._listeners.get(t)??[])s=i(...n)!==!1&&s;return s}unbindAllListeners(){this._listeners.clear()}}const mt=(e,t="px")=>typeof e=="number"?e+t:e;function $({style:e},t,n){if(typeof t=="object")for(const[s,i]of Object.entries(t))i!==void 0&&(e[s]=mt(i));else n!==void 0&&(e[t]=mt(n))}function gt(e){return(t,n,s,i={})=>{t instanceof HTMLCollection||t instanceof NodeList?t=Array.from(t):Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);for(const o of t)for(const r of n)o[e](r,s,{capture:!1,...i});return[t,n,s,i]}}const O=gt("addEventListener"),T=gt("removeEventListener"),Y=e=>{var t;const{clientX:n,clientY:s,target:i}=((t=e.touches)==null?void 0:t[0])??e;return{x:n,y:s,target:i}};function vt(e,t,n="touch"){switch(n){case"center":{const s=t.left+t.width/2,i=t.top+t.height/2;return s>=e.left&&s<=e.right&&i>=e.top&&i<=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 q(e,t=document){const n=Array.isArray(e)?e:[e];let s=[];for(let i=0,o=n.length;i<o;i++){const r=n[i];typeof r=="string"?s=s.concat(Array.from(t.querySelectorAll(r))):r instanceof Element&&s.push(r)}return s}const te=()=>matchMedia("(hover: none), (pointer: coarse)").matches,ee=()=>"safari"in window,ne=e=>{let t,n=-1,s=!1;return{next(...i){t=i,s||(s=!0,n=requestAnimationFrame(()=>{e(...t),s=!1}))},cancel(){cancelAnimationFrame(n),s=!1}}},{abs:P,max:yt,min:bt,ceil:xt}=Math;class se extends Zt{constructor(t){var n,s,i,o,r;super(),y(this,"_options"),y(this,"_selection",{stored:[],selected:[],touched:[],changed:{added:[],removed:[]}}),y(this,"_area"),y(this,"_clippingElement"),y(this,"_targetElement"),y(this,"_targetRect"),y(this,"_selectables",[]),y(this,"_latestElement"),y(this,"_areaRect",new DOMRect),y(this,"_areaLocation",{y1:0,x2:0,y2:0,x1:0}),y(this,"_singleClick",!0),y(this,"_frame"),y(this,"_scrollAvailable",!0),y(this,"_scrollingActive",!1),y(this,"_scrollSpeed",{x:0,y:0}),y(this,"_scrollDelta",{x:0,y:0}),y(this,"disable",this._bindStartEvents.bind(this,!1)),y(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",...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,...(s=t.behaviour)==null?void 0:s.scrolling,startScrollMargins:{x:0,y:0,...(o=(i=t.behaviour)==null?void 0:i.scrolling)==null?void 0:o.startScrollMargins}}},features:{range:!0,touch:!0,...t.features,singleTap:{allow:!0,intersect:"native",...(r=t.features)==null?void 0:r.singleTap}}};for(const h of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))typeof this[h]=="function"&&(this[h]=this[h].bind(this));const{document:l,selectionAreaClass:c,selectionContainerClass:u}=this._options;this._area=l.createElement("div"),this._clippingElement=l.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(c),u&&this._clippingElement.classList.add(u),$(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),$(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=ne(h=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",h),this._redrawSelectionArea()}),this.enable()}_bindStartEvents(t=!0){const{document:n,features:s}=this._options,i=t?O:T;i(n,"mousedown",this._onTapStart),s.touch&&i(n,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(t,n=!1){const{x:s,y:i,target:o}=Y(t),{_options:r}=this,{document:l}=this._options,c=o.getBoundingClientRect(),u=q(r.startAreas,r.document),h=q(r.boundaries,r.document);this._targetElement=h.find(f=>vt(f.getBoundingClientRect(),c));const d=t.composedPath();if(!this._targetElement||!u.find(f=>d.includes(f))||!h.find(f=>d.includes(f))||!n&&this._emitEvent("beforestart",t)===!1)return;this._areaLocation={x1:s,y1:i,x2:0,y2:0};const a=l.scrollingElement??l.body;this._scrollDelta={x:a.scrollLeft,y:a.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),O(l,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),O(l,["mouseup","touchcancel","touchend"],this._onTapStop),O(l,"scroll",this._onScroll)}_onSingleTap(t){const{singleTap:{intersect:n},range:s}=this._options.features,i=Y(t);let o;if(n==="native")o=i.target;else if(n==="touch"){this.resolveSelectables();const{x:l,y:c}=i;o=this._selectables.find(u=>{const{right:h,left:d,top:a,bottom:f}=u.getBoundingClientRect();return l<h&&l>d&&c<f&&c>a})}if(!o)return;for(this.resolveSelectables();!this._selectables.includes(o);){if(!o.parentElement)return;o=o.parentElement}const{stored:r}=this._selection;if(this._emitEvent("start",t),t.shiftKey&&s&&this._latestElement){const l=this._latestElement,[c,u]=l.compareDocumentPosition(o)&4?[o,l]:[l,o],h=[...this._selectables.filter(d=>d.compareDocumentPosition(c)&4&&d.compareDocumentPosition(u)&2),c,u];this.select(h),this._latestElement=l}else r.includes(o)&&(r.length===1||t.ctrlKey||r.every(l=>this._selection.stored.includes(l)))?this.deselect(o):(this.select(o),this._latestElement=o);this._emitEvent("stop",t)}_delayedTapMove(t){const{container:n,document:s,behaviour:{startThreshold:i}}=this._options,{x1:o,y1:r}=this._areaLocation,{x:l,y:c}=Y(t);if(typeof i=="number"&&P(l+c-(o+r))>=i||typeof i=="object"&&P(l-o)>=i.x||P(c-r)>=i.y){if(T(s,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),this._emitEvent("beforedrag",t)===!1){T(s,["mouseup","touchcancel","touchend"],this._onTapStop);return}O(s,["mousemove","touchmove"],this._onTapMove,{passive:!1}),$(this._area,"display","block"),q(n,s)[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&&(O(s,"wheel",this._manualScroll,{passive:!1}),this._selectables=this._selectables.filter(u=>this._targetElement.contains(u))),this._setupSelectionArea(),this._emitEvent("start",t),this._onTapMove(t)}this._handleMoveEvent(t)}_setupSelectionArea(){const{_clippingElement:t,_targetElement:n,_area:s}=this,i=this._targetRect=n.getBoundingClientRect();this._scrollAvailable?($(t,{top:i.top,left:i.left,width:i.width,height:i.height}),$(s,{marginTop:-i.top,marginLeft:-i.left})):($(t,{top:0,left:0,width:"100%",height:"100%"}),$(s,{marginTop:0,marginLeft:0}))}_onTapMove(t){const{x:n,y:s}=Y(t),{_scrollSpeed:i,_areaLocation:o,_options:r,_frame:l}=this,{speedDivider:c}=r.behaviour.scrolling,u=this._targetElement;if(o.x2=n,o.y2=s,this._scrollAvailable&&!this._scrollingActive&&(i.y||i.x)){this._scrollingActive=!0;const h=()=>{if(!i.x&&!i.y){this._scrollingActive=!1;return}const{scrollTop:d,scrollLeft:a}=u;i.y&&(u.scrollTop+=xt(i.y/c),o.y1-=u.scrollTop-d),i.x&&(u.scrollLeft+=xt(i.x/c),o.x1-=u.scrollLeft-a),l.next(t),requestAnimationFrame(h)};requestAnimationFrame(h)}else l.next(t);this._handleMoveEvent(t)}_handleMoveEvent(t){const{features:n}=this._options;(n.touch&&te()||this._scrollAvailable&&ee())&&t.preventDefault()}_onScroll(){const{_scrollDelta:t,_options:{document:n}}=this,{scrollTop:s,scrollLeft:i}=n.scrollingElement??n.body;this._areaLocation.x1+=t.x-i,this._areaLocation.y1+=t.y-s,t.x=i,t.y=s,this._setupSelectionArea(),this._frame.next(null)}_manualScroll(t){const{manualSpeed:n}=this._options.behaviour.scrolling,s=t.deltaY?t.deltaY>0?1:-1:0,i=t.deltaX?t.deltaX>0?1:-1:0;this._scrollSpeed.y+=s*n,this._scrollSpeed.x+=i*n,this._onTapMove(t),t.preventDefault()}_recalculateSelectionAreaRect(){const{_scrollSpeed:t,_areaLocation:n,_areaRect:s,_targetElement:i,_options:o}=this,{scrollTop:r,scrollHeight:l,clientHeight:c,scrollLeft:u,scrollWidth:h,clientWidth:d}=i,a=this._targetRect,{x1:f,y1:g}=n;let{x2:m,y2:p}=n;const{behaviour:{scrolling:{startScrollMargins:v}}}=o;m<a.left+v.x?(t.x=u?-P(a.left-m+v.x):0,m=m<a.left?a.left:m):m>a.right-v.x?(t.x=h-u-d?P(a.left+a.width-m-v.x):0,m=m>a.right?a.right:m):t.x=0,p<a.top+v.y?(t.y=r?-P(a.top-p+v.y):0,p=p<a.top?a.top:p):p>a.bottom-v.y?(t.y=l-r-c?P(a.top+a.height-p-v.y):0,p=p>a.bottom?a.bottom:p):t.y=0;const x=bt(f,m),w=bt(g,p),_=yt(f,m),M=yt(g,p);s.x=x,s.y=w,s.width=_-x,s.height=M-w}_redrawSelectionArea(){const{x:t,y:n,width:s,height:i}=this._areaRect,{style:o}=this._area;o.left=`${t}px`,o.top=`${n}px`,o.width=`${s}px`,o.height=`${i}px`}_onTapStop(t,n){var s;const{document:i,features:o}=this._options,{_singleClick:r}=this;T(i,["mousemove","touchmove"],this._delayedTapMove),T(i,["touchmove","mousemove"],this._onTapMove),T(i,["mouseup","touchcancel","touchend"],this._onTapStop),T(i,"scroll",this._onScroll),this._keepSelection(),t&&r&&o.singleTap.allow?this._onSingleTap(t):!r&&!n&&(this._updateElementSelection(),this._emitEvent("stop",t)),this._scrollSpeed.x=0,this._scrollSpeed.y=0,this._scrollAvailable&&T(i,"wheel",this._manualScroll,{passive:!0}),this._clippingElement.remove(),(s=this._frame)==null||s.cancel(),$(this._area,"display","none")}_updateElementSelection(){const{_selectables:t,_options:n,_selection:s,_areaRect:i}=this,{stored:o,selected:r,touched:l}=s,{intersect:c,overlap:u}=n.behaviour,h=u==="invert",d=[],a=[],f=[];for(let m=0;m<t.length;m++){const p=t[m];if(vt(i,p.getBoundingClientRect(),c)){if(r.includes(p))o.includes(p)&&!l.includes(p)&&l.push(p);else if(h&&o.includes(p)){f.push(p);continue}else a.push(p);d.push(p)}}h&&a.push(...o.filter(m=>!r.includes(m)));const g=u==="keep";for(let m=0;m<r.length;m++){const p=r[m];!d.includes(p)&&!(g&&o.includes(p))&&f.push(p)}s.selected=d,s.changed={added:a,removed:f},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:s,changed:i,touched:o,stored:r}=n,l=s.filter(c=>!r.includes(c));switch(t.behaviour.overlap){case"drop":{n.stored=[...l,...r.filter(c=>!o.includes(c))];break}case"invert":{n.stored=[...l,...r.filter(c=>!i.removed.includes(c))];break}case"keep":{n.stored=[...r,...s.filter(c=>!r.includes(c))];break}}}trigger(t,n=!0){this._onTapStart(t,n)}resolveSelectables(){this._selectables=q(this._options.selectables,this._options.document)}clearSelection(t=!0,n=!1){const{selected:s,stored:i,changed:o}=this._selection;o.added=[],o.removed.push(...s,...t?i:[]),n||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection={stored:t?[]:i,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:s,selected:i,stored:o}=this._selection,r=q(t,this._options.document).filter(l=>!i.includes(l)&&!o.includes(l));return o.push(...r),i.push(...r),s.added.push(...r),s.removed=[],this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)),r}deselect(t,n=!1){const{selected:s,stored:i,changed:o}=this._selection,r=q(t,this._options.document).filter(l=>s.includes(l)||i.includes(l));r.length&&(this._selection.stored=i.filter(l=>!r.includes(l)),this._selection.selected=s.filter(l=>!r.includes(l)),this._selection.changed.added=[],this._selection.changed.removed.push(...r.filter(l=>!o.removed.includes(l))),this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null)))}}y(se,"version","3.3.1");const ie=function(e,t=!0){this.theme=e;const n=this.theme.cssVar,s=Object.keys(n);for(let i=0;i<s.length;i++){const o=s[i];this.mindElixirBox.style.setProperty(o,n[o])}t&&this.refresh()};function wt(e){return{nodeData:e.isFocusMode?e.nodeDataBackup:e.nodeData,linkData:e.linkData,summaries:e.summaries,direction:e.direction,theme:e.theme}}const oe=Object.freeze(Object.defineProperty({__proto__:null,cancelFocus:function(){this.isFocusMode=!1,this.tempDirection!==null&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},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,this.layout(),this.linkDiv(),this.bus.fire("expandNode",n)},focusNode:function(e){e.nodeObj.root||(this.tempDirection===null&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=e.nodeObj,this.nodeData.root=!0,this.initRight(),this.toCenter())},getData:function(){return JSON.parse(this.getDataString())},getDataMd:function(){const e=wt(this).nodeData;let t="# "+e.topic+`
|
|
5
5
|
|
|
6
6
|
`;function n(s,i){for(let o=0;o<s.length;o++)i<=6?t+="".padStart(i,"#")+" "+s[o].topic+`
|
|
7
7
|
|
|
8
8
|
`:t+="".padStart(i-7," ")+"- "+s[o].topic+`
|
|
9
|
-
`,s[o].children&&n(s[o].children||[],i+1)}return n(e.children||[],2),t},getDataString:function(){const e=wt(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)},refresh:function(e){e&&(e=JSON.parse(JSON.stringify(e)),this.nodeData=e.nodeData,this.linkData=e.linkData||{}),Z(this.nodeData),this.layout(),this.linkDiv()},scale:function(e){this.scaleVal=e,this.map.style.transform="scale("+e+")"},selectFirstChild:function(){if(!this.currentNode)return;const e=this.currentNode.parentElement.nextSibling;if(e&&e.firstChild){const t=e.firstChild.firstChild.firstChild;this.selectNode(t)}},selectNextSibling:function(){if(!this.currentNode||this.currentNode.dataset.nodeid==="meroot")return!1;const e=this.currentNode.parentElement.parentElement.nextSibling;let t;if(e)t=e.firstChild.firstChild;else return!1;return this.selectNode(t),!0},selectNode:function(e,t,n){if(e){if(console.time("selectNode"),typeof e=="string"){const s=C(e);return s?this.selectNode(s):void 0}this.currentNode&&(this.currentNode.className=""),e.className="selected",e.scrollIntoView({block:"nearest",inline:"nearest"}),this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj):this.bus.fire("selectNode",e.nodeObj,n),console.timeEnd("selectNode")}},selectNodes:function(e){if(e){console.time("selectNodes");for(const t of e)t.className="selected";this.currentNodes=e,this.bus.fire("selectNodes",e.map(t=>t.nodeObj)),console.timeEnd("selectNodes")}},selectParent:function(){if(!this.currentNode||this.currentNode.dataset.nodeid==="meroot")return;const e=this.currentNode.parentElement.parentElement.parentElement.previousSibling;if(e){const t=e.firstChild;this.selectNode(t)}},selectPrevSibling:function(){if(!this.currentNode||this.currentNode.dataset.nodeid==="meroot")return!1;const e=this.currentNode.parentElement.parentElement.previousSibling;let t;if(e)t=e.firstChild.firstChild;else return!1;return this.selectNode(t),!0},setLocale:function(e){this.locale=e,this.refresh()},toCenter:function(){this.container.scrollTo(1e4-this.container.offsetWidth/2,1e4-this.container.offsetHeight/2)},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},unselectNodes:function(){if(this.currentNodes)for(const e of this.currentNodes)e.classList.remove("selected");this.currentNodes=null,this.bus.fire("unselectNodes")}},Symbol.toStringTag,{value:"Module"})),_t={create:function(e){return{dom:e,mousedown:!1,lastX:0,lastY:0,handleMouseMove(t){if(this.mousedown){if(!this.lastX){this.lastX=t.pageX,this.lastY=t.pageY;return}const n=this.lastX-t.pageX,s=this.lastY-t.pageY;this.cb&&this.cb(n,s),this.lastX=t.pageX,this.lastY=t.pageY}},handleMouseDown(t){this.mousedown=!0},handleClear(t){this.clear()},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),t.addEventListener("mousemove",this.handleMouseMove),t.addEventListener("mouseleave",this.handleClear),t.addEventListener("mouseup",this.handleClear),this.dom.addEventListener("mousedown",this.handleMouseDown)},destory(t){t.removeEventListener("mousemove",this.handleMouseMove),t.removeEventListener("mouseleave",this.handleClear),t.removeEventListener("mouseup",this.handleClear),this.dom.removeEventListener("mousedown",this.handleMouseDown)},clear(){this.mousedown=!1,this.lastX=0,this.lastY=0}}}};function I(e,t,n){const{offsetLeft:s,offsetTop:i}=B(e.nodes,t),o=t.offsetWidth,r=t.offsetHeight,l=s+o/2,c=i+r/2,u=l+n.x,h=c+n.y;return{w:o,h:r,cx:l,cy:c,ctrlX:u,ctrlY:h}}function R(e){let t,n;const s=(e.cy-e.ctrlY)/(e.ctrlX-e.cx);return s>e.h/e.w||s<-e.h/e.w?e.cy-e.ctrlY<0?(t=e.cx-e.h/2/s,n=e.cy+e.h/2):(t=e.cx+e.h/2/s,n=e.cy-e.h/2):e.cx-e.ctrlX<0?(t=e.cx+e.w/2,n=e.cy-e.w*s/2):(t=e.cx-e.w/2,n=e.cy+e.w*s/2),{x:t,y:n}}const re=function(e,t,n,s){const i=document.createElementNS("http://www.w3.org/2000/svg","text");return b(i,{"text-anchor":"middle",x:t+"",y:n+"",fill:s||"#666"}),i.dataset.type="custom-link",i.innerHTML=e,i},le=function(e,t,n,s){if(!e||!t)return;const i=performance.now();this.hideLinkController();const o=I(this,e,n.delta1),r=I(this,t,n.delta2),{x:l,y:c}=R(o),{ctrlX:u,ctrlY:h}=o,{ctrlX:d,ctrlY:a}=r,{x:f,y:g}=R(r),m=rt(d,a,f,g),p=Wt(`M ${l} ${c} C ${u} ${h} ${d} ${a} ${f} ${g}`,`M ${m.x1} ${m.y1} L ${f} ${g} L ${m.x2} ${m.y2}`),v=l/8+u*3/8+d*3/8+f/8,x=c/8+h*3/8+a*3/8+g/8,w=re(n.label,v,x,this.theme.cssVar["--color"]);p.appendChild(w),p.linkObj=n,p.dataset.linkid=n.id,this.linkSvgGroup.appendChild(p),s||(this.linkData[n.id]=n,this.currentLink=p,this.showLinkController(n,o,r));const _=performance.now();console.log(`DrawCustomLink Execution time: ${_-i} ms`)},ce=function(e,t){const n={id:tt(),label:"Custom Link",from:e.nodeObj.id,to:t.nodeObj.id,delta1:{x:0,y:-200},delta2:{x:0,y:-200}};this.drawCustomLink(e,t,n)},ae=function(e){let t;if(e?t=e:t=this.currentLink,!t)return;this.hideLinkController();const n=t.linkObj.id;delete this.linkData[n],t.remove(),t=null},he=function(e){this.currentLink=e;const t=e.linkObj,n=C(t.from),s=C(t.to),i=I(this,n,t.delta1),o=I(this,s,t.delta2);this.showLinkController(t,i,o)},de=function(){this.linkController.style.display="none",this.P2.style.display="none",this.P3.style.display="none"},ue=function(e,t,n){this.linkController.style.display="initial",this.P2.style.display="initial",this.P3.style.display="initial",this.nodes.appendChild(this.linkController),this.nodes.appendChild(this.P2),this.nodes.appendChild(this.P3);let{x:s,y:i}=R(t),{ctrlX:o,ctrlY:r}=t,{ctrlX:l,ctrlY:c}=n,{x:u,y:h}=R(n);this.P2.style.cssText=`top:${r}px;left:${o}px;`,this.P3.style.cssText=`top:${c}px;left:${l}px;`,b(this.line1,{x1:s+"",y1:i+"",x2:o+"",y2:r+""}),b(this.line2,{x1:l+"",y1:c+"",x2:u+"",y2:h+""}),this.helper1&&(this.helper1.destory(this.map),this.helper2.destory(this.map)),this.helper1=_t.create(this.P2),this.helper2=_t.create(this.P3),this.helper1.init(this.map,(d,a)=>{var p;o=o-d/this.scaleVal,r=r-a/this.scaleVal;const f=R({...t,ctrlX:o,ctrlY:r});s=f.x,i=f.y;const g=s/8+o*3/8+l*3/8+u/8,m=i/8+r*3/8+c*3/8+h/8;this.P2.style.top=r+"px",this.P2.style.left=o+"px",(p=this.currentLink)==null||p.children[0].setAttribute("d",`M ${s} ${i} C ${o} ${r} ${l} ${c} ${u} ${h}`),b(this.currentLink.children[2],{x:g+"",y:m+""}),b(this.line1,{x1:s+"",y1:i+"",x2:o+"",y2:r+""}),e.delta1.x=o-t.cx,e.delta1.y=r-t.cy}),this.helper2.init(this.map,(d,a)=>{var v,x;l=l-d/this.scaleVal,c=c-a/this.scaleVal;const f=R({...n,ctrlX:l,ctrlY:c});u=f.x,h=f.y;const g=s/8+o*3/8+l*3/8+u/8,m=i/8+r*3/8+c*3/8+h/8,p=rt(l,c,u,h);this.P3.style.top=c+"px",this.P3.style.left=l+"px",(v=this.currentLink)==null||v.children[0].setAttribute("d",`M ${s} ${i} C ${o} ${r} ${l} ${c} ${u} ${h}`),(x=this.currentLink)==null||x.children[1].setAttribute("d",`M ${p.x1} ${p.y1} L ${u} ${h} L ${p.x2} ${p.y2}`),b(this.currentLink.children[2],{x:g+"",y:m+""}),b(this.line2,{x1:l+"",y1:c+"",x2:u+"",y2:h+""}),e.delta2.x=l-n.cx,e.delta2.y=c-n.cy})};function fe(){this.linkSvgGroup.innerHTML="";for(const e in this.linkData){const t=this.linkData[e];this.drawCustomLink(C(t.from),C(t.to),t,!0)}this.nodes.appendChild(this.linkSvgGroup)}function pe(e){if(console.time("editSummary"),!e)return;const t=e.children[2];console.log(t,e),dt(this,t,n=>{var o;const s=e.linkObj,i=((o=n.textContent)==null?void 0:o.trim())||"";i===""?s.label=origin:s.label=i,n.remove(),i!==origin&&(t.innerHTML=s.label,this.linkDiv())}),console.timeEnd("editSummary")}const me=Object.freeze(Object.defineProperty({__proto__:null,createLink:ce,drawCustomLink:le,editCutsomLinkLabel:pe,hideLinkController:de,removeLink:ae,renderCustomLink:fe,selectLink:he,showLinkController:ue},Symbol.toStringTag,{value:"Module"})),ge=function(e){var c,u;if(e.length===0)throw new Error("No selected node.");if(e.length===1){const h=e[0].nodeObj,d=e[0].nodeObj.parent;if(!d)throw new Error("Can not select root node.");const a=d.children.findIndex(f=>h===f);return{parent:d.id,start:a,end:a}}let t=0;const n=e.map(h=>{let d=h.nodeObj;const a=[];for(;d.parent;){const f=d.parent,g=f.children,m=g==null?void 0:g.indexOf(d);d=f,a.unshift({node:d,index:m})}return a.length>t&&(t=a.length),a});let s=0;t:for(;s<t;s++){const h=(c=n[0][s])==null?void 0:c.node;for(let d=1;d<n.length;d++)if(((u=n[d][s])==null?void 0:u.node)!==h)break t}if(!s)throw new Error("Can not select root node.");const i=n.map(h=>h[s-1].index).sort(),o=i[0]||0,r=i[i.length-1]||0,l=n[0][s-1].node;if(l.root)throw new Error("Please select nodes in the same main topic.");return{parent:l.id,start:o,end:r}},ve=function(e){const t=document.createElementNS("http://www.w3.org/2000/svg","g");return t.setAttribute("id",e),t},Et=function(e,t){const n=document.createElementNS("http://www.w3.org/2000/svg","path");return b(n,{d:e,stroke:t||"#666",fill:"none","stroke-linecap":"round","stroke-width":"2"}),n},Ct=function(e,t,n,s,i){const o=document.createElementNS("http://www.w3.org/2000/svg","text");return b(o,{"text-anchor":s,x:t+"",y:n+"",fill:i||"#666"}),o.innerHTML=e,o},ye=e=>C(e).parentElement.parentElement,be=function({parent:e,start:t}){var o,r;const n=C(e),s=n.nodeObj;let i;return s.root===!0?i=(o=C(s.children[t].id).closest("me-main"))==null?void 0:o.className:i=(r=n.closest("me-main"))==null?void 0:r.className,i},Lt=function(e,t){var U;const{id:n,text:s,parent:i,start:o,end:r}=t,l=e.nodes,u=C(i).nodeObj,h=be(t);let d=1/0,a=0,f=0,g=0;for(let W=o;W<=r;W++){const kt=(U=u.children)==null?void 0:U[W];if(!kt)return console.warn("Child not found"),e.removeSummary(n),null;const K=ye(kt.id),{offsetLeft:J,offsetTop:Mt}=B(l,K);W===o&&(f=Mt),W===r&&(g=Mt+K.offsetHeight),J<d&&(d=J),K.offsetWidth+J>a&&(a=K.offsetWidth+J)}let m,p;const v=f+10,x=g+10,w=(v+x)/2,_=e.theme.cssVar["--color"];h==="lhs"?(m=Et(`M ${d+10} ${v} c -5 0 -10 5 -10 10 L ${d} ${x-10} c 0 5 5 10 10 10 M ${d} ${w} h -10`,_),p=Ct(s,d-20,w+6,"end",_)):(m=Et(`M ${a-10} ${v} c 5 0 10 5 10 10 L ${a} ${x-10} c 0 5 -5 10 -10 10 M ${a} ${w} h 10`,_),p=Ct(s,a+20,w+6,"start",_));const M=ve("s-"+n);return M.appendChild(m),M.appendChild(p),M.summaryObj=t,e.summarySvg.appendChild(M),M},xe=Object.freeze(Object.defineProperty({__proto__:null,createSummary:function(){let e=[];this.currentNode?e=[this.currentNode]:this.currentNodes&&(e=this.currentNodes);const{parent:t,start:n,end:s}=ge(e),i={id:tt(),parent:t,start:n,end:s,text:"summary"},o=Lt(this,i);this.summaries.push(i),this.editSummary(o)},editSummary:function(e){if(console.time("editSummary"),!e)return;const t=e.childNodes[1];dt(this,t,n=>{var o;const s=e.summaryObj,i=((o=n.textContent)==null?void 0:o.trim())||"";i===""?s.text=origin:s.text=i,n.remove(),i!==origin&&(t.innerHTML=s.text,this.linkDiv(),this.bus.fire("operation",{name:"finishEditSummary",obj:s,origin}))}),console.timeEnd("editSummary")},removeSummary:function(e){var n;const t=this.summaries.findIndex(s=>s.id===e);t>-1&&(this.summaries.splice(t,1),(n=document.querySelector("#s-"+e))==null||n.remove())},renderSummary:function(){this.summarySvg.innerHTML="",this.summaries.forEach(e=>{Lt(this,e)}),this.nodes.insertAdjacentElement("beforeend",this.summarySvg)},selectSummary:function(e){const t=e.children[1].getBBox(),n=6,s=3,i=document.createElementNS("http://www.w3.org/2000/svg","rect");b(i,{x:t.x-n+"",y:t.y-n+"",width:t.width+n*2+"",height:t.height+n*2+"",rx:s+"",stroke:this.theme.cssVar["--selected"]||"#4dc4ff","stroke-width":"2",fill:"none"}),i.classList.add("selected"),e.appendChild(i),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"}));function we(e,t){const n=document.createElementNS("http://www.w3.org/2000/svg","svg");return b(n,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",height:e,width:t}),n}function _e(e,t){return(parseInt(e)-parseInt(t))/2}function Ee(e,t,n,s){const i=document.createElementNS("http://www.w3.org/2000/svg","g");return e.childNodes[0].textContent.split(`
|
|
10
|
-
`).forEach((l,c)=>{const u=document.createElementNS("http://www.w3.org/2000/svg","text");b(u,{x:n+parseInt(t.paddingLeft)+"",y:s+parseInt(t.paddingTop)+
|
|
9
|
+
`,s[o].children&&n(s[o].children||[],i+1)}return n(e.children||[],2),t},getDataString:function(){const e=wt(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)},refresh:function(e){e&&(e=JSON.parse(JSON.stringify(e)),this.nodeData=e.nodeData,this.linkData=e.linkData||{}),Z(this.nodeData),this.layout(),this.linkDiv()},scale:function(e){this.scaleVal=e,this.map.style.transform="scale("+e+")"},selectFirstChild:function(){if(!this.currentNode)return;const e=this.currentNode.parentElement.nextSibling;if(e&&e.firstChild){const t=e.firstChild.firstChild.firstChild;this.selectNode(t)}},selectNextSibling:function(){if(!this.currentNode||this.currentNode.dataset.nodeid==="meroot")return!1;const e=this.currentNode.parentElement.parentElement.nextSibling;let t;if(e)t=e.firstChild.firstChild;else return!1;return this.selectNode(t),!0},selectNode:function(e,t,n){if(e){if(console.time("selectNode"),typeof e=="string"){const s=C(e);return s?this.selectNode(s):void 0}this.currentNode&&(this.currentNode.className=""),e.className="selected",e.scrollIntoView({block:"nearest",inline:"nearest"}),this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj):this.bus.fire("selectNode",e.nodeObj,n),console.timeEnd("selectNode")}},selectNodes:function(e){if(e){console.time("selectNodes");for(const t of e)t.className="selected";this.currentNodes=e,this.bus.fire("selectNodes",e.map(t=>t.nodeObj)),console.timeEnd("selectNodes")}},selectParent:function(){if(!this.currentNode||this.currentNode.dataset.nodeid==="meroot")return;const e=this.currentNode.parentElement.parentElement.parentElement.previousSibling;if(e){const t=e.firstChild;this.selectNode(t)}},selectPrevSibling:function(){if(!this.currentNode||this.currentNode.dataset.nodeid==="meroot")return!1;const e=this.currentNode.parentElement.parentElement.previousSibling;let t;if(e)t=e.firstChild.firstChild;else return!1;return this.selectNode(t),!0},setLocale:function(e){this.locale=e,this.refresh()},toCenter:function(){this.container.scrollTo(1e4-this.container.offsetWidth/2,1e4-this.container.offsetHeight/2)},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},unselectNodes:function(){if(this.currentNodes)for(const e of this.currentNodes)e.classList.remove("selected");this.currentNodes=null,this.bus.fire("unselectNodes")}},Symbol.toStringTag,{value:"Module"})),_t={create:function(e){return{dom:e,mousedown:!1,lastX:0,lastY:0,handleMouseMove(t){if(this.mousedown){if(!this.lastX){this.lastX=t.pageX,this.lastY=t.pageY;return}const n=this.lastX-t.pageX,s=this.lastY-t.pageY;this.cb&&this.cb(n,s),this.lastX=t.pageX,this.lastY=t.pageY}},handleMouseDown(t){this.mousedown=!0},handleClear(t){this.clear()},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),t.addEventListener("mousemove",this.handleMouseMove),t.addEventListener("mouseleave",this.handleClear),t.addEventListener("mouseup",this.handleClear),this.dom.addEventListener("mousedown",this.handleMouseDown)},destory(t){t.removeEventListener("mousemove",this.handleMouseMove),t.removeEventListener("mouseleave",this.handleClear),t.removeEventListener("mouseup",this.handleClear),this.dom.removeEventListener("mousedown",this.handleMouseDown)},clear(){this.mousedown=!1,this.lastX=0,this.lastY=0}}}};function I(e,t,n){const{offsetLeft:s,offsetTop:i}=B(e.nodes,t),o=t.offsetWidth,r=t.offsetHeight,l=s+o/2,c=i+r/2,u=l+n.x,h=c+n.y;return{w:o,h:r,cx:l,cy:c,ctrlX:u,ctrlY:h}}function R(e){let t,n;const s=(e.cy-e.ctrlY)/(e.ctrlX-e.cx);return s>e.h/e.w||s<-e.h/e.w?e.cy-e.ctrlY<0?(t=e.cx-e.h/2/s,n=e.cy+e.h/2):(t=e.cx+e.h/2/s,n=e.cy-e.h/2):e.cx-e.ctrlX<0?(t=e.cx+e.w/2,n=e.cy-e.w*s/2):(t=e.cx-e.w/2,n=e.cy+e.w*s/2),{x:t,y:n}}const re=function(e,t,n,s){const i=document.createElementNS("http://www.w3.org/2000/svg","text");return b(i,{"text-anchor":"middle",x:t+"",y:n+"",fill:s||"#666"}),i.dataset.type="custom-link",i.innerHTML=e,i},le=function(e,t,n,s){if(!e||!t)return;const i=performance.now();this.hideLinkController();const o=I(this,e,n.delta1),r=I(this,t,n.delta2),{x:l,y:c}=R(o),{ctrlX:u,ctrlY:h}=o,{ctrlX:d,ctrlY:a}=r,{x:f,y:g}=R(r),m=rt(d,a,f,g),p=Wt(`M ${l} ${c} C ${u} ${h} ${d} ${a} ${f} ${g}`,`M ${m.x1} ${m.y1} L ${f} ${g} L ${m.x2} ${m.y2}`),v=l/8+u*3/8+d*3/8+f/8,x=c/8+h*3/8+a*3/8+g/8,w=re(n.label,v,x,this.theme.cssVar["--color"]);p.appendChild(w),p.linkObj=n,p.dataset.linkid=n.id,this.linkSvgGroup.appendChild(p),s||(this.linkData[n.id]=n,this.currentLink=p,this.showLinkController(n,o,r));const _=performance.now();console.log(`DrawCustomLink Execution time: ${_-i} ms`)},ce=function(e,t){const n={id:tt(),label:"Custom Link",from:e.nodeObj.id,to:t.nodeObj.id,delta1:{x:0,y:-200},delta2:{x:0,y:-200}};this.drawCustomLink(e,t,n)},ae=function(e){let t;if(e?t=e:t=this.currentLink,!t)return;this.hideLinkController();const n=t.linkObj.id;delete this.linkData[n],t.remove(),t=null},he=function(e){this.currentLink=e;const t=e.linkObj,n=C(t.from),s=C(t.to),i=I(this,n,t.delta1),o=I(this,s,t.delta2);this.showLinkController(t,i,o)},de=function(){this.currentLink=null,this.hideLinkController()},ue=function(){this.linkController.style.display="none",this.P2.style.display="none",this.P3.style.display="none"},fe=function(e,t,n){this.linkController.style.display="initial",this.P2.style.display="initial",this.P3.style.display="initial",this.nodes.appendChild(this.linkController),this.nodes.appendChild(this.P2),this.nodes.appendChild(this.P3);let{x:s,y:i}=R(t),{ctrlX:o,ctrlY:r}=t,{ctrlX:l,ctrlY:c}=n,{x:u,y:h}=R(n);this.P2.style.cssText=`top:${r}px;left:${o}px;`,this.P3.style.cssText=`top:${c}px;left:${l}px;`,b(this.line1,{x1:s+"",y1:i+"",x2:o+"",y2:r+""}),b(this.line2,{x1:l+"",y1:c+"",x2:u+"",y2:h+""}),this.helper1&&(this.helper1.destory(this.map),this.helper2.destory(this.map)),this.helper1=_t.create(this.P2),this.helper2=_t.create(this.P3),this.helper1.init(this.map,(d,a)=>{var p;o=o-d/this.scaleVal,r=r-a/this.scaleVal;const f=R({...t,ctrlX:o,ctrlY:r});s=f.x,i=f.y;const g=s/8+o*3/8+l*3/8+u/8,m=i/8+r*3/8+c*3/8+h/8;this.P2.style.top=r+"px",this.P2.style.left=o+"px",(p=this.currentLink)==null||p.children[0].setAttribute("d",`M ${s} ${i} C ${o} ${r} ${l} ${c} ${u} ${h}`),b(this.currentLink.children[2],{x:g+"",y:m+""}),b(this.line1,{x1:s+"",y1:i+"",x2:o+"",y2:r+""}),e.delta1.x=o-t.cx,e.delta1.y=r-t.cy}),this.helper2.init(this.map,(d,a)=>{var v,x;l=l-d/this.scaleVal,c=c-a/this.scaleVal;const f=R({...n,ctrlX:l,ctrlY:c});u=f.x,h=f.y;const g=s/8+o*3/8+l*3/8+u/8,m=i/8+r*3/8+c*3/8+h/8,p=rt(l,c,u,h);this.P3.style.top=c+"px",this.P3.style.left=l+"px",(v=this.currentLink)==null||v.children[0].setAttribute("d",`M ${s} ${i} C ${o} ${r} ${l} ${c} ${u} ${h}`),(x=this.currentLink)==null||x.children[1].setAttribute("d",`M ${p.x1} ${p.y1} L ${u} ${h} L ${p.x2} ${p.y2}`),b(this.currentLink.children[2],{x:g+"",y:m+""}),b(this.line2,{x1:l+"",y1:c+"",x2:u+"",y2:h+""}),e.delta2.x=l-n.cx,e.delta2.y=c-n.cy})};function pe(){this.linkSvgGroup.innerHTML="";for(const e in this.linkData){const t=this.linkData[e];this.drawCustomLink(C(t.from),C(t.to),t,!0)}this.nodes.appendChild(this.linkSvgGroup)}function me(e){if(console.time("editSummary"),!e)return;const t=e.children[2];console.log(t,e),dt(this,t,n=>{var o;const s=e.linkObj,i=((o=n.textContent)==null?void 0:o.trim())||"";i===""?s.label=origin:s.label=i,n.remove(),i!==origin&&(t.innerHTML=s.label,this.linkDiv())}),console.timeEnd("editSummary")}const ge=Object.freeze(Object.defineProperty({__proto__:null,createLink:ce,drawCustomLink:le,editCutsomLinkLabel:me,hideLinkController:ue,removeLink:ae,renderCustomLink:pe,selectLink:he,showLinkController:fe,unselectLink:de},Symbol.toStringTag,{value:"Module"})),ve=function(e){var c,u;if(e.length===0)throw new Error("No selected node.");if(e.length===1){const h=e[0].nodeObj,d=e[0].nodeObj.parent;if(!d)throw new Error("Can not select root node.");const a=d.children.findIndex(f=>h===f);return{parent:d.id,start:a,end:a}}let t=0;const n=e.map(h=>{let d=h.nodeObj;const a=[];for(;d.parent;){const f=d.parent,g=f.children,m=g==null?void 0:g.indexOf(d);d=f,a.unshift({node:d,index:m})}return a.length>t&&(t=a.length),a});let s=0;t:for(;s<t;s++){const h=(c=n[0][s])==null?void 0:c.node;for(let d=1;d<n.length;d++)if(((u=n[d][s])==null?void 0:u.node)!==h)break t}if(!s)throw new Error("Can not select root node.");const i=n.map(h=>h[s-1].index).sort(),o=i[0]||0,r=i[i.length-1]||0,l=n[0][s-1].node;if(l.root)throw new Error("Please select nodes in the same main topic.");return{parent:l.id,start:o,end:r}},ye=function(e){const t=document.createElementNS("http://www.w3.org/2000/svg","g");return t.setAttribute("id",e),t},Et=function(e,t){const n=document.createElementNS("http://www.w3.org/2000/svg","path");return b(n,{d:e,stroke:t||"#666",fill:"none","stroke-linecap":"round","stroke-width":"2"}),n},Ct=function(e,t,n,s,i){const o=document.createElementNS("http://www.w3.org/2000/svg","text");return b(o,{"text-anchor":s,x:t+"",y:n+"",fill:i||"#666"}),o.innerHTML=e,o},be=e=>C(e).parentElement.parentElement,xe=function({parent:e,start:t}){var o,r;const n=C(e),s=n.nodeObj;let i;return s.root===!0?i=(o=C(s.children[t].id).closest("me-main"))==null?void 0:o.className:i=(r=n.closest("me-main"))==null?void 0:r.className,i},Lt=function(e,t){var U;const{id:n,text:s,parent:i,start:o,end:r}=t,l=e.nodes,u=C(i).nodeObj,h=xe(t);let d=1/0,a=0,f=0,g=0;for(let W=o;W<=r;W++){const kt=(U=u.children)==null?void 0:U[W];if(!kt)return console.warn("Child not found"),e.removeSummary(n),null;const K=be(kt.id),{offsetLeft:J,offsetTop:Mt}=B(l,K);W===o&&(f=Mt),W===r&&(g=Mt+K.offsetHeight),J<d&&(d=J),K.offsetWidth+J>a&&(a=K.offsetWidth+J)}let m,p;const v=f+10,x=g+10,w=(v+x)/2,_=e.theme.cssVar["--color"];h==="lhs"?(m=Et(`M ${d+10} ${v} c -5 0 -10 5 -10 10 L ${d} ${x-10} c 0 5 5 10 10 10 M ${d} ${w} h -10`,_),p=Ct(s,d-20,w+6,"end",_)):(m=Et(`M ${a-10} ${v} c 5 0 10 5 10 10 L ${a} ${x-10} c 0 5 -5 10 -10 10 M ${a} ${w} h 10`,_),p=Ct(s,a+20,w+6,"start",_));const M=ye("s-"+n);return M.appendChild(m),M.appendChild(p),M.summaryObj=t,e.summarySvg.appendChild(M),M},we=Object.freeze(Object.defineProperty({__proto__:null,createSummary:function(){let e=[];this.currentNode?e=[this.currentNode]:this.currentNodes&&(e=this.currentNodes);const{parent:t,start:n,end:s}=ve(e),i={id:tt(),parent:t,start:n,end:s,text:"summary"},o=Lt(this,i);this.summaries.push(i),this.editSummary(o)},editSummary:function(e){if(console.time("editSummary"),!e)return;const t=e.childNodes[1];dt(this,t,n=>{var o;const s=e.summaryObj,i=((o=n.textContent)==null?void 0:o.trim())||"";i===""?s.text=origin:s.text=i,n.remove(),i!==origin&&(t.innerHTML=s.text,this.linkDiv(),this.bus.fire("operation",{name:"finishEditSummary",obj:s,origin}))}),console.timeEnd("editSummary")},removeSummary:function(e){var n;const t=this.summaries.findIndex(s=>s.id===e);t>-1&&(this.summaries.splice(t,1),(n=document.querySelector("#s-"+e))==null||n.remove())},renderSummary:function(){this.summarySvg.innerHTML="",this.summaries.forEach(e=>{Lt(this,e)}),this.nodes.insertAdjacentElement("beforeend",this.summarySvg)},selectSummary:function(e){const t=e.children[1].getBBox(),n=6,s=3,i=document.createElementNS("http://www.w3.org/2000/svg","rect");b(i,{x:t.x-n+"",y:t.y-n+"",width:t.width+n*2+"",height:t.height+n*2+"",rx:s+"",stroke:this.theme.cssVar["--selected"]||"#4dc4ff","stroke-width":"2",fill:"none"}),i.classList.add("selected"),e.appendChild(i),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"}));function _e(e,t){const n=document.createElementNS("http://www.w3.org/2000/svg","svg");return b(n,{version:"1.1",xmlns:"http://www.w3.org/2000/svg",height:e,width:t}),n}function Ee(e,t){return(parseInt(e)-parseInt(t))/2}function Ce(e,t,n,s){const i=document.createElementNS("http://www.w3.org/2000/svg","g");return e.childNodes[0].textContent.split(`
|
|
10
|
+
`).forEach((l,c)=>{const u=document.createElementNS("http://www.w3.org/2000/svg","text");b(u,{x:n+parseInt(t.paddingLeft)+"",y:s+parseInt(t.paddingTop)+Ee(t.lineHeight,t.fontSize)*(c+1)+parseFloat(t.fontSize)*(c+1)+"","text-anchor":"start","font-family":t.fontFamily,"font-size":`${t.fontSize}`,"font-weight":`${t.fontWeight}`,fill:`${t.color}`}),u.innerHTML=l,i.appendChild(u)}),i}function Le(e,t,n,s){const i=e.childNodes[0].textContent,o=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");b(o,{x:n+parseInt(t.paddingLeft)+"",y:s+parseInt(t.paddingTop)+"",width:t.width,height:t.height});const r=document.createElement("div");return b(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=i,o.appendChild(r),o}function et(e,t,n=!1){const s=getComputedStyle(t),{offsetLeft:i,offsetTop:o}=B(e.nodes,t),r=document.createElementNS("http://www.w3.org/2000/svg","rect");b(r,{x:i+"",y:o+"",rx:s.borderRadius,ry:s.borderRadius,width:s.width,height:s.height,fill:s.backgroundColor,stroke:s.borderColor,"stroke-width":s.borderWidth});const l=document.createElementNS("http://www.w3.org/2000/svg","g");l.appendChild(r);let c;return n?c=Le(t,s,i,o):c=Ce(t,s,i,o),l.appendChild(c),l}function Se(e,t){const n=getComputedStyle(t),{offsetLeft:s,offsetTop:i}=B(e.nodes,t),o=document.createElementNS("http://www.w3.org/2000/svg","a"),r=document.createElementNS("http://www.w3.org/2000/svg","text");return b(r,{x:s+"",y:i+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,o.appendChild(r),o.setAttribute("href",t.href),o}const G=100,ke='<?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">',St=e=>{var h,d,a;const t=e.nodes,n=t.offsetHeight+G*2,s=t.offsetWidth+G*2,i=_e(n+"px",s+"px"),o=document.createElementNS("http://www.w3.org/2000/svg","svg"),r=document.createElementNS("http://www.w3.org/2000/svg","rect");b(r,{x:"0",y:"0",width:`${s}`,height:`${n}`,fill:e.theme.cssVar["--bgcolor"]}),i.appendChild(r),t.querySelectorAll(".subLines").forEach(f=>{const g=f.cloneNode(!0),{offsetLeft:m,offsetTop:p}=B(t,f.parentElement);g.setAttribute("x",`${m}`),g.setAttribute("y",`${p}`),o.appendChild(g)});const l=(h=t.querySelector(".lines"))==null?void 0:h.cloneNode(!0);l&&o.appendChild(l);const c=(d=t.querySelector(".topiclinks"))==null?void 0:d.cloneNode(!0);c&&o.appendChild(c);const u=(a=t.querySelector(".summary"))==null?void 0:a.cloneNode(!0);return u&&o.appendChild(u),t.querySelectorAll("me-tpc").forEach(f=>{o.appendChild(et(e,f,!0))}),t.querySelectorAll(".tags > span").forEach(f=>{o.appendChild(et(e,f))}),t.querySelectorAll(".icons > span").forEach(f=>{o.appendChild(et(e,f))}),t.querySelectorAll(".hyper-link").forEach(f=>{o.appendChild(Se(e,f))}),b(o,{x:G+"",y:G+"",overflow:"visible"}),i.appendChild(o),ke+i.outerHTML};function Me(e){return new Promise((t,n)=>{const s=new FileReader;s.onload=i=>{t(i.target.result)},s.onerror=i=>{n(i)},s.readAsDataURL(e)})}const $e={getObjById:ot,generateNewObj:$t,layout:Dt,linkDiv:Xt,editTopic:qt,createWrapper:Pt,createParent:zt,createChildren:Bt,createTopic:Ot,findEle:C,changeTheme:ie,...oe,...{},...ge,...we,...Object.freeze(Object.defineProperty({__proto__:null,exportPng:async function(){const e=St(this),t=new Blob([e],{type:"image/svg+xml"}),n=await Me(t);return new Promise((s,i)=>{const o=new Image;o.setAttribute("crossOrigin","anonymous"),o.onload=()=>{const r=document.createElement("canvas");r.width=o.width,r.height=o.height,r.getContext("2d").drawImage(o,0,0),r.toBlob(s,"image/png",1)},o.src=n,o.onerror=i})},exportSvg:function(){const e=St(this);return new Blob([e],{type:"image/svg+xml"})}},Symbol.toStringTag,{value:"Module"})),init(e){if(!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,Z(this.nodeData),this.linkData=e.linkData||{},this.summaries=e.summaries||[],this.toolBar&&Kt(this),this.toCenter(),this.layout(),this.linkDiv()}},j=document;function k({el:e,direction:t,locale:n,draggable:s,editable:i,contextMenu:o,contextMenuOption:r,toolBar:l,keypress:c,before:u,newTopicName:h,allowUndo:d,mainLinkStyle:a,subLinkStyle:f,overflowHidden:g,mobileMenu:m,theme:p}){console.log("ME_version "+k.version,this);let v=null;const x=Object.prototype.toString.call(e);if(x==="[object HTMLDivElement]"?v=e:x==="[object String]"&&(v=document.querySelector(e)),!v)throw new Error("MindElixir: el is not a valid element");v.className+=" mind-elixir",v.innerHTML="",v.style.setProperty("--gap",L+"px"),this.mindElixirBox=v,this.before=u||{},this.locale=n||"en",this.contextMenuOption=r,this.contextMenu=o===void 0?!0:o,this.toolBar=l===void 0?!0:l,this.keypress=c===void 0?!0:c,this.mobileMenu=m||!1,this.direction=typeof t=="number"?t:1,this.draggable=s===void 0?!0:s,this.newTopicName=h||"new node",this.editable=i===void 0?!0:i,this.allowUndo=d===void 0?!1:d,this.currentNode=null,this.currentLink=null,this.scaleVal=1,this.tempDirection=null,this.mainLinkStyle=a||0,this.subLinkStyle=f||0,this.overflowHidden=g||!1,this.bus=Nt.create(),this.container=j.createElement("div"),this.container.className="map-container";const w=window.matchMedia("(prefers-color-scheme: dark)");this.theme=p||(w.matches?st:nt);const _=j.createElement("div");_.className="map-canvas",this.map=_,this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.nodes=j.createElement("me-nodes"),this.nodes.className="main-node-container",this.lines=V("lines"),this.summarySvg=V("summary"),this.linkController=V("linkcontroller"),this.P2=j.createElement("div"),this.P3=j.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=ht(),this.line2=ht(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=V("topiclinks"),this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":Tt(this)}return k.prototype=$e,k.LEFT=z,k.RIGHT=Q,k.SIDE=X,k.THEME=nt,k.DARK_THEME=st,k.version="3.2.2",k.E=C,k}();
|
package/dist/MindElixirLite.js
CHANGED
|
@@ -130,7 +130,7 @@ function Tt(e) {
|
|
|
130
130
|
N.clear();
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
|
-
e.unselectNode(), e.unselectNodes(), e.unselectSummary();
|
|
133
|
+
e.unselectNode(), e.unselectNodes(), e.unselectSummary(), e.unselectLink();
|
|
134
134
|
const n = t.target;
|
|
135
135
|
if (n.tagName === "ME-EPD")
|
|
136
136
|
e.expandNode(n.previousSibling);
|
|
@@ -1120,8 +1120,10 @@ const Ne = function(e, t, n, s) {
|
|
|
1120
1120
|
const t = e.linkObj, n = C(t.from), s = C(t.to), i = K(this, n, t.delta1), o = K(this, s, t.delta2);
|
|
1121
1121
|
this.showLinkController(t, i, o);
|
|
1122
1122
|
}, ze = function() {
|
|
1123
|
+
this.currentLink = null, this.hideLinkController();
|
|
1124
|
+
}, Be = function() {
|
|
1123
1125
|
this.linkController.style.display = "none", this.P2.style.display = "none", this.P3.style.display = "none";
|
|
1124
|
-
},
|
|
1126
|
+
}, Oe = function(e, t, n) {
|
|
1125
1127
|
this.linkController.style.display = "initial", this.P2.style.display = "initial", this.P3.style.display = "initial", this.nodes.appendChild(this.linkController), this.nodes.appendChild(this.P2), this.nodes.appendChild(this.P3);
|
|
1126
1128
|
let { x: s, y: i } = O(t), { ctrlX: o, ctrlY: r } = t, { ctrlX: l, ctrlY: c } = n, { x: u, y: h } = O(n);
|
|
1127
1129
|
this.P2.style.cssText = `top:${r}px;left:${o}px;`, this.P3.style.cssText = `top:${c}px;left:${l}px;`, b(this.line1, {
|
|
@@ -1166,7 +1168,7 @@ const Ne = function(e, t, n, s) {
|
|
|
1166
1168
|
}), e.delta2.x = l - n.cx, e.delta2.y = c - n.cy;
|
|
1167
1169
|
});
|
|
1168
1170
|
};
|
|
1169
|
-
function
|
|
1171
|
+
function qe() {
|
|
1170
1172
|
this.linkSvgGroup.innerHTML = "";
|
|
1171
1173
|
for (const e in this.linkData) {
|
|
1172
1174
|
const t = this.linkData[e];
|
|
@@ -1174,7 +1176,7 @@ function Oe() {
|
|
|
1174
1176
|
}
|
|
1175
1177
|
this.nodes.appendChild(this.linkSvgGroup);
|
|
1176
1178
|
}
|
|
1177
|
-
function
|
|
1179
|
+
function Ve(e) {
|
|
1178
1180
|
if (console.time("editSummary"), !e)
|
|
1179
1181
|
return;
|
|
1180
1182
|
const t = e.children[2];
|
|
@@ -1184,17 +1186,18 @@ function qe(e) {
|
|
|
1184
1186
|
i === "" ? s.label = origin : s.label = i, n.remove(), i !== origin && (t.innerHTML = s.label, this.linkDiv());
|
|
1185
1187
|
}), console.timeEnd("editSummary");
|
|
1186
1188
|
}
|
|
1187
|
-
const
|
|
1189
|
+
const Re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1188
1190
|
__proto__: null,
|
|
1189
1191
|
createLink: De,
|
|
1190
1192
|
drawCustomLink: Ae,
|
|
1191
|
-
editCutsomLinkLabel:
|
|
1192
|
-
hideLinkController:
|
|
1193
|
+
editCutsomLinkLabel: Ve,
|
|
1194
|
+
hideLinkController: Be,
|
|
1193
1195
|
removeLink: He,
|
|
1194
|
-
renderCustomLink:
|
|
1196
|
+
renderCustomLink: qe,
|
|
1195
1197
|
selectLink: Pe,
|
|
1196
|
-
showLinkController:
|
|
1197
|
-
|
|
1198
|
+
showLinkController: Oe,
|
|
1199
|
+
unselectLink: ze
|
|
1200
|
+
}, Symbol.toStringTag, { value: "Module" })), je = function(e) {
|
|
1198
1201
|
var c, u;
|
|
1199
1202
|
if (e.length === 0)
|
|
1200
1203
|
throw new Error("No selected node.");
|
|
@@ -1237,7 +1240,7 @@ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1237
1240
|
start: o,
|
|
1238
1241
|
end: r
|
|
1239
1242
|
};
|
|
1240
|
-
},
|
|
1243
|
+
}, We = function(e) {
|
|
1241
1244
|
const t = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
1242
1245
|
return t.setAttribute("id", e), t;
|
|
1243
1246
|
}, ft = function(e, t) {
|
|
@@ -1257,37 +1260,37 @@ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1257
1260
|
y: n + "",
|
|
1258
1261
|
fill: i || "#666"
|
|
1259
1262
|
}), o.innerHTML = e, o;
|
|
1260
|
-
},
|
|
1263
|
+
}, Xe = (e) => C(e).parentElement.parentElement, Ye = function({ parent: e, start: t }) {
|
|
1261
1264
|
var o, r;
|
|
1262
1265
|
const n = C(e), s = n.nodeObj;
|
|
1263
1266
|
let i;
|
|
1264
1267
|
return s.root === !0 ? i = (o = C(s.children[t].id).closest("me-main")) == null ? void 0 : o.className : i = (r = n.closest("me-main")) == null ? void 0 : r.className, i;
|
|
1265
1268
|
}, kt = function(e, t) {
|
|
1266
1269
|
var X;
|
|
1267
|
-
const { id: n, text: s, parent: i, start: o, end: r } = t, l = e.nodes, u = C(i).nodeObj, h =
|
|
1270
|
+
const { id: n, text: s, parent: i, start: o, end: r } = t, l = e.nodes, u = C(i).nodeObj, h = Ye(t);
|
|
1268
1271
|
let d = 1 / 0, a = 0, f = 0, g = 0;
|
|
1269
1272
|
for (let R = o; R <= r; R++) {
|
|
1270
1273
|
const nt = (X = u.children) == null ? void 0 : X[R];
|
|
1271
1274
|
if (!nt)
|
|
1272
1275
|
return console.warn("Child not found"), e.removeSummary(n), null;
|
|
1273
|
-
const Y =
|
|
1276
|
+
const Y = Xe(nt.id), { offsetLeft: F, offsetTop: st } = V(l, Y);
|
|
1274
1277
|
R === o && (f = st), R === r && (g = st + Y.offsetHeight), F < d && (d = F), Y.offsetWidth + F > a && (a = Y.offsetWidth + F);
|
|
1275
1278
|
}
|
|
1276
1279
|
let m, p;
|
|
1277
1280
|
const v = f + 10, x = g + 10, w = (v + x) / 2, _ = e.theme.cssVar["--color"];
|
|
1278
1281
|
h === "lhs" ? (m = ft(`M ${d + 10} ${v} c -5 0 -10 5 -10 10 L ${d} ${x - 10} c 0 5 5 10 10 10 M ${d} ${w} h -10`, _), p = pt(s, d - 20, w + 6, "end", _)) : (m = ft(`M ${a - 10} ${v} c 5 0 10 5 10 10 L ${a} ${x - 10} c 0 5 -5 10 -10 10 M ${a} ${w} h 10`, _), p = pt(s, a + 20, w + 6, "start", _));
|
|
1279
|
-
const k =
|
|
1282
|
+
const k = We("s-" + n);
|
|
1280
1283
|
return k.appendChild(m), k.appendChild(p), k.summaryObj = t, e.summarySvg.appendChild(k), k;
|
|
1281
|
-
},
|
|
1284
|
+
}, Fe = function() {
|
|
1282
1285
|
let e = [];
|
|
1283
1286
|
this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
|
|
1284
|
-
const { parent: t, start: n, end: s } =
|
|
1287
|
+
const { parent: t, start: n, end: s } = je(e), i = { id: et(), parent: t, start: n, end: s, text: "summary" }, o = kt(this, i);
|
|
1285
1288
|
this.summaries.push(i), this.editSummary(o);
|
|
1286
|
-
},
|
|
1289
|
+
}, Ie = function(e) {
|
|
1287
1290
|
var n;
|
|
1288
1291
|
const t = this.summaries.findIndex((s) => s.id === e);
|
|
1289
1292
|
t > -1 && (this.summaries.splice(t, 1), (n = document.querySelector("#s-" + e)) == null || n.remove());
|
|
1290
|
-
},
|
|
1293
|
+
}, Ge = function(e) {
|
|
1291
1294
|
const t = e.children[1].getBBox(), n = 6, s = 3, i = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
1292
1295
|
b(i, {
|
|
1293
1296
|
x: t.x - n + "",
|
|
@@ -1299,14 +1302,14 @@ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1299
1302
|
"stroke-width": "2",
|
|
1300
1303
|
fill: "none"
|
|
1301
1304
|
}), i.classList.add("selected"), e.appendChild(i), this.currentSummary = e;
|
|
1302
|
-
},
|
|
1305
|
+
}, Ue = function() {
|
|
1303
1306
|
var e, t;
|
|
1304
1307
|
(t = (e = this.currentSummary) == null ? void 0 : e.querySelector("rect")) == null || t.remove(), this.currentSummary = null;
|
|
1305
|
-
},
|
|
1308
|
+
}, Ke = function() {
|
|
1306
1309
|
this.summarySvg.innerHTML = "", this.summaries.forEach((e) => {
|
|
1307
1310
|
kt(this, e);
|
|
1308
1311
|
}), this.nodes.insertAdjacentElement("beforeend", this.summarySvg);
|
|
1309
|
-
},
|
|
1312
|
+
}, Je = function(e) {
|
|
1310
1313
|
if (console.time("editSummary"), !e)
|
|
1311
1314
|
return;
|
|
1312
1315
|
const t = e.childNodes[1];
|
|
@@ -1319,16 +1322,16 @@ const Ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1319
1322
|
origin
|
|
1320
1323
|
}));
|
|
1321
1324
|
}), console.timeEnd("editSummary");
|
|
1322
|
-
},
|
|
1325
|
+
}, Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1323
1326
|
__proto__: null,
|
|
1324
|
-
createSummary:
|
|
1325
|
-
editSummary:
|
|
1326
|
-
removeSummary:
|
|
1327
|
-
renderSummary:
|
|
1328
|
-
selectSummary:
|
|
1329
|
-
unselectSummary:
|
|
1327
|
+
createSummary: Fe,
|
|
1328
|
+
editSummary: Je,
|
|
1329
|
+
removeSummary: Ie,
|
|
1330
|
+
renderSummary: Ke,
|
|
1331
|
+
selectSummary: Ge,
|
|
1332
|
+
unselectSummary: Ue
|
|
1330
1333
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1331
|
-
function
|
|
1334
|
+
function Ze(e, t) {
|
|
1332
1335
|
const n = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
1333
1336
|
return b(n, {
|
|
1334
1337
|
version: "1.1",
|
|
@@ -1337,17 +1340,17 @@ function Qe(e, t) {
|
|
|
1337
1340
|
width: t
|
|
1338
1341
|
}), n;
|
|
1339
1342
|
}
|
|
1340
|
-
function
|
|
1343
|
+
function tn(e, t) {
|
|
1341
1344
|
return (parseInt(e) - parseInt(t)) / 2;
|
|
1342
1345
|
}
|
|
1343
|
-
function
|
|
1346
|
+
function en(e, t, n, s) {
|
|
1344
1347
|
const i = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
1345
1348
|
return e.childNodes[0].textContent.split(`
|
|
1346
1349
|
`).forEach((l, c) => {
|
|
1347
1350
|
const u = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1348
1351
|
b(u, {
|
|
1349
1352
|
x: n + parseInt(t.paddingLeft) + "",
|
|
1350
|
-
y: s + parseInt(t.paddingTop) +
|
|
1353
|
+
y: s + parseInt(t.paddingTop) + tn(t.lineHeight, t.fontSize) * (c + 1) + parseFloat(t.fontSize) * (c + 1) + "",
|
|
1351
1354
|
"text-anchor": "start",
|
|
1352
1355
|
"font-family": t.fontFamily,
|
|
1353
1356
|
"font-size": `${t.fontSize}`,
|
|
@@ -1356,7 +1359,7 @@ function tn(e, t, n, s) {
|
|
|
1356
1359
|
}), u.innerHTML = l, i.appendChild(u);
|
|
1357
1360
|
}), i;
|
|
1358
1361
|
}
|
|
1359
|
-
function
|
|
1362
|
+
function nn(e, t, n, s) {
|
|
1360
1363
|
const i = e.childNodes[0].textContent, o = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");
|
|
1361
1364
|
b(o, {
|
|
1362
1365
|
x: n + parseInt(t.paddingLeft) + "",
|
|
@@ -1386,9 +1389,9 @@ function Q(e, t, n = !1) {
|
|
|
1386
1389
|
const l = document.createElementNS("http://www.w3.org/2000/svg", "g");
|
|
1387
1390
|
l.appendChild(r);
|
|
1388
1391
|
let c;
|
|
1389
|
-
return n ? c =
|
|
1392
|
+
return n ? c = nn(t, s, i, o) : c = en(t, s, i, o), l.appendChild(c), l;
|
|
1390
1393
|
}
|
|
1391
|
-
function
|
|
1394
|
+
function sn(e, t) {
|
|
1392
1395
|
const n = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = V(e.nodes, t), o = document.createElementNS("http://www.w3.org/2000/svg", "a"), r = document.createElementNS("http://www.w3.org/2000/svg", "text");
|
|
1393
1396
|
return b(r, {
|
|
1394
1397
|
x: s + "",
|
|
@@ -1400,9 +1403,9 @@ function nn(e, t) {
|
|
|
1400
1403
|
fill: `${n.color}`
|
|
1401
1404
|
}), r.innerHTML = t.textContent, o.appendChild(r), o.setAttribute("href", t.href), o;
|
|
1402
1405
|
}
|
|
1403
|
-
const G = 100,
|
|
1406
|
+
const G = 100, on = '<?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">', Mt = (e) => {
|
|
1404
1407
|
var h, d, a;
|
|
1405
|
-
const t = e.nodes, n = t.offsetHeight + G * 2, s = t.offsetWidth + G * 2, i =
|
|
1408
|
+
const t = e.nodes, n = t.offsetHeight + G * 2, s = t.offsetWidth + G * 2, i = Ze(n + "px", s + "px"), o = document.createElementNS("http://www.w3.org/2000/svg", "svg"), r = document.createElementNS("http://www.w3.org/2000/svg", "rect");
|
|
1406
1409
|
b(r, {
|
|
1407
1410
|
x: "0",
|
|
1408
1411
|
y: "0",
|
|
@@ -1425,14 +1428,14 @@ const G = 100, sn = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "
|
|
|
1425
1428
|
}), t.querySelectorAll(".icons > span").forEach((f) => {
|
|
1426
1429
|
o.appendChild(Q(e, f));
|
|
1427
1430
|
}), t.querySelectorAll(".hyper-link").forEach((f) => {
|
|
1428
|
-
o.appendChild(
|
|
1431
|
+
o.appendChild(sn(e, f));
|
|
1429
1432
|
}), b(o, {
|
|
1430
1433
|
x: G + "",
|
|
1431
1434
|
y: G + "",
|
|
1432
1435
|
overflow: "visible"
|
|
1433
|
-
}), i.appendChild(o),
|
|
1436
|
+
}), i.appendChild(o), on + i.outerHTML;
|
|
1434
1437
|
};
|
|
1435
|
-
function
|
|
1438
|
+
function rn(e) {
|
|
1436
1439
|
return new Promise((t, n) => {
|
|
1437
1440
|
const s = new FileReader();
|
|
1438
1441
|
s.onload = (i) => {
|
|
@@ -1442,11 +1445,11 @@ function on(e) {
|
|
|
1442
1445
|
}, s.readAsDataURL(e);
|
|
1443
1446
|
});
|
|
1444
1447
|
}
|
|
1445
|
-
const
|
|
1448
|
+
const ln = function() {
|
|
1446
1449
|
const e = Mt(this);
|
|
1447
1450
|
return new Blob([e], { type: "image/svg+xml" });
|
|
1448
|
-
},
|
|
1449
|
-
const e = Mt(this), t = new Blob([e], { type: "image/svg+xml" }), n = await
|
|
1451
|
+
}, cn = async function() {
|
|
1452
|
+
const e = Mt(this), t = new Blob([e], { type: "image/svg+xml" }), n = await rn(t);
|
|
1450
1453
|
return new Promise((s, i) => {
|
|
1451
1454
|
const o = new Image();
|
|
1452
1455
|
o.setAttribute("crossOrigin", "anonymous"), o.onload = () => {
|
|
@@ -1454,11 +1457,11 @@ const rn = function() {
|
|
|
1454
1457
|
r.width = o.width, r.height = o.height, r.getContext("2d").drawImage(o, 0, 0), r.toBlob(s, "image/png", 1);
|
|
1455
1458
|
}, o.src = n, o.onerror = i;
|
|
1456
1459
|
});
|
|
1457
|
-
},
|
|
1460
|
+
}, an = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1458
1461
|
__proto__: null,
|
|
1459
|
-
exportPng:
|
|
1460
|
-
exportSvg:
|
|
1461
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1462
|
+
exportPng: cn,
|
|
1463
|
+
exportSvg: ln
|
|
1464
|
+
}, Symbol.toStringTag, { value: "Module" })), hn = {}, dn = {
|
|
1462
1465
|
getObjById: vt,
|
|
1463
1466
|
generateNewObj: $t,
|
|
1464
1467
|
layout: At,
|
|
@@ -1471,10 +1474,10 @@ const rn = function() {
|
|
|
1471
1474
|
findEle: C,
|
|
1472
1475
|
changeTheme: ie,
|
|
1473
1476
|
...$e,
|
|
1477
|
+
...hn,
|
|
1478
|
+
...Re,
|
|
1479
|
+
...Qe,
|
|
1474
1480
|
...an,
|
|
1475
|
-
...Ve,
|
|
1476
|
-
...Je,
|
|
1477
|
-
...cn,
|
|
1478
1481
|
init(e) {
|
|
1479
1482
|
if (!e || !e.nodeData)
|
|
1480
1483
|
return new Error("MindElixir: `data` is required");
|
|
@@ -1511,13 +1514,13 @@ function M({
|
|
|
1511
1514
|
const _ = j.createElement("div");
|
|
1512
1515
|
_.className = "map-canvas", this.map = _, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = j.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = W("lines"), this.summarySvg = W("summary"), this.linkController = W("linkcontroller"), this.P2 = j.createElement("div"), this.P3 = j.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = rt(), this.line2 = rt(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = W("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : Tt(this);
|
|
1513
1516
|
}
|
|
1514
|
-
M.prototype =
|
|
1517
|
+
M.prototype = dn;
|
|
1515
1518
|
M.LEFT = q;
|
|
1516
1519
|
M.RIGHT = Z;
|
|
1517
1520
|
M.SIDE = J;
|
|
1518
1521
|
M.THEME = mt;
|
|
1519
1522
|
M.DARK_THEME = gt;
|
|
1520
|
-
M.version = "3.2.
|
|
1523
|
+
M.version = "3.2.2";
|
|
1521
1524
|
M.E = C;
|
|
1522
1525
|
export {
|
|
1523
1526
|
M as default
|