From cad6f1dce7bb90c8c20a3b61e16717f47a8d6b62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Wed, 13 Dec 2023 09:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=850.9.1-fix.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- ...{chunk-38caf5df.css => chunk-da4aa08c.css} | 2 +- dist/img/HaHN.jpg | Bin 0 -> 40860 bytes dist/img/图片加载失败.svg | 1 + dist/js/app.js | 2 +- dist/js/chunk-2d0d9fbc.js | 2 +- dist/js/chunk-2d0dad5f.js | 2 +- dist/js/chunk-2d0f026c.js | 2 +- dist/js/chunk-2d208ffa.js | 2 +- dist/js/chunk-3cfaaabc.js | 1 + dist/js/chunk-4c6d0a94.js | 1 - dist/js/chunk-6cbc7d60.js | 1 - dist/js/chunk-7f271756.js | 1 + .../{chunk-38caf5df.js => chunk-da4aa08c.js} | 12 +- index.html | 4 +- simple-mind-map/types/index.d.ts | 195 ------------------ .../types/src/constants/constant.d.ts | 115 ----------- .../types/src/constants/defaultOptions.d.ts | 112 ---------- .../types/src/core/command/Command.d.ts | 19 -- .../types/src/core/command/KeyCommand.d.ts | 28 --- .../types/src/core/command/keyMap.d.ts | 42 ---- .../types/src/core/event/Event.d.ts | 35 ---- .../types/src/core/render/Render.d.ts | 109 ---------- .../types/src/core/render/TextEdit.d.ts | 30 --- .../types/src/core/render/node/Node.d.ts | 136 ------------ .../types/src/core/render/node/Shape.d.ts | 23 --- .../types/src/core/render/node/Style.d.ts | 36 ---- .../core/render/node/nodeCommandWraps.d.ts | 23 --- .../src/core/render/node/nodeCooperate.d.ts | 18 -- .../core/render/node/nodeCreateContents.d.ts | 50 ----- .../src/core/render/node/nodeExpandBtn.d.ts | 34 --- .../node/nodeExpandBtnPlaceholderRect.d.ts | 18 -- .../core/render/node/nodeGeneralization.d.ts | 38 ---- simple-mind-map/types/src/core/view/View.d.ts | 36 ---- simple-mind-map/types/src/layouts/Base.d.ts | 60 ------ .../src/layouts/CatalogOrganization.d.ts | 11 - .../types/src/layouts/Fishbone.d.ts | 15 -- .../types/src/layouts/LogicalStructure.d.ts | 13 -- .../types/src/layouts/MindMap.d.ts | 13 -- .../src/layouts/OrganizationStructure.d.ts | 12 -- .../types/src/layouts/Timeline.d.ts | 13 -- .../types/src/layouts/VerticalTimeline.d.ts | 15 -- .../types/src/layouts/fishboneUtils.d.ts | 147 ------------- simple-mind-map/types/src/svg/btns.d.ts | 11 - simple-mind-map/types/src/svg/icons.d.ts | 18 -- simple-mind-map/types/src/themes/autumn.d.ts | 2 - simple-mind-map/types/src/themes/avocado.d.ts | 2 - .../types/src/themes/blackGold.d.ts | 2 - .../types/src/themes/blackHumour.d.ts | 2 - simple-mind-map/types/src/themes/blueSky.d.ts | 2 - .../types/src/themes/brainImpairedPink.d.ts | 2 - simple-mind-map/types/src/themes/classic.d.ts | 2 - .../types/src/themes/classic2.d.ts | 2 - .../types/src/themes/classic3.d.ts | 2 - .../types/src/themes/classic4.d.ts | 2 - .../types/src/themes/classicBlue.d.ts | 2 - .../types/src/themes/classicGreen.d.ts | 2 - simple-mind-map/types/src/themes/coffee.d.ts | 2 - .../types/src/themes/courseGreen.d.ts | 2 - simple-mind-map/types/src/themes/dark.d.ts | 2 - simple-mind-map/types/src/themes/dark2.d.ts | 2 - simple-mind-map/types/src/themes/default.d.ts | 143 ------------- .../types/src/themes/earthYellow.d.ts | 2 - .../types/src/themes/freshGreen.d.ts | 2 - .../types/src/themes/freshRed.d.ts | 2 - simple-mind-map/types/src/themes/gold.d.ts | 2 - .../types/src/themes/greenLeaf.d.ts | 2 - simple-mind-map/types/src/themes/index.d.ts | 67 ------ .../types/src/themes/lateNightOffice.d.ts | 2 - simple-mind-map/types/src/themes/minions.d.ts | 2 - simple-mind-map/types/src/themes/mint.d.ts | 2 - .../types/src/themes/orangeJuice.d.ts | 2 - .../types/src/themes/pinkGrape.d.ts | 2 - .../types/src/themes/redSpirit.d.ts | 2 - .../types/src/themes/romanticPurple.d.ts | 2 - .../types/src/themes/simpleBlack.d.ts | 2 - .../types/src/themes/skyGreen.d.ts | 2 - .../types/src/themes/vitalityOrange.d.ts | 2 - .../types/src/utils/BatchExecution.d.ts | 9 - simple-mind-map/types/src/utils/Lru.d.ts | 10 - simple-mind-map/types/src/utils/index.d.ts | 81 -------- .../types/src/utils/mersenneTwister.d.ts | 23 --- 82 files changed, 19 insertions(+), 1837 deletions(-) rename dist/css/{chunk-38caf5df.css => chunk-da4aa08c.css} (99%) create mode 100644 dist/img/HaHN.jpg create mode 100644 dist/img/图片加载失败.svg create mode 100644 dist/js/chunk-3cfaaabc.js delete mode 100644 dist/js/chunk-4c6d0a94.js delete mode 100644 dist/js/chunk-6cbc7d60.js create mode 100644 dist/js/chunk-7f271756.js rename dist/js/{chunk-38caf5df.js => chunk-da4aa08c.js} (84%) delete mode 100644 simple-mind-map/types/index.d.ts delete mode 100644 simple-mind-map/types/src/constants/constant.d.ts delete mode 100644 simple-mind-map/types/src/constants/defaultOptions.d.ts delete mode 100644 simple-mind-map/types/src/core/command/Command.d.ts delete mode 100644 simple-mind-map/types/src/core/command/KeyCommand.d.ts delete mode 100644 simple-mind-map/types/src/core/command/keyMap.d.ts delete mode 100644 simple-mind-map/types/src/core/event/Event.d.ts delete mode 100644 simple-mind-map/types/src/core/render/Render.d.ts delete mode 100644 simple-mind-map/types/src/core/render/TextEdit.d.ts delete mode 100644 simple-mind-map/types/src/core/render/node/Node.d.ts delete mode 100644 simple-mind-map/types/src/core/render/node/Shape.d.ts delete mode 100644 simple-mind-map/types/src/core/render/node/Style.d.ts delete mode 100644 simple-mind-map/types/src/core/render/node/nodeCommandWraps.d.ts delete mode 100644 simple-mind-map/types/src/core/render/node/nodeCooperate.d.ts delete mode 100644 simple-mind-map/types/src/core/render/node/nodeCreateContents.d.ts delete mode 100644 simple-mind-map/types/src/core/render/node/nodeExpandBtn.d.ts delete mode 100644 simple-mind-map/types/src/core/render/node/nodeExpandBtnPlaceholderRect.d.ts delete mode 100644 simple-mind-map/types/src/core/render/node/nodeGeneralization.d.ts delete mode 100644 simple-mind-map/types/src/core/view/View.d.ts delete mode 100644 simple-mind-map/types/src/layouts/Base.d.ts delete mode 100644 simple-mind-map/types/src/layouts/CatalogOrganization.d.ts delete mode 100644 simple-mind-map/types/src/layouts/Fishbone.d.ts delete mode 100644 simple-mind-map/types/src/layouts/LogicalStructure.d.ts delete mode 100644 simple-mind-map/types/src/layouts/MindMap.d.ts delete mode 100644 simple-mind-map/types/src/layouts/OrganizationStructure.d.ts delete mode 100644 simple-mind-map/types/src/layouts/Timeline.d.ts delete mode 100644 simple-mind-map/types/src/layouts/VerticalTimeline.d.ts delete mode 100644 simple-mind-map/types/src/layouts/fishboneUtils.d.ts delete mode 100644 simple-mind-map/types/src/svg/btns.d.ts delete mode 100644 simple-mind-map/types/src/svg/icons.d.ts delete mode 100644 simple-mind-map/types/src/themes/autumn.d.ts delete mode 100644 simple-mind-map/types/src/themes/avocado.d.ts delete mode 100644 simple-mind-map/types/src/themes/blackGold.d.ts delete mode 100644 simple-mind-map/types/src/themes/blackHumour.d.ts delete mode 100644 simple-mind-map/types/src/themes/blueSky.d.ts delete mode 100644 simple-mind-map/types/src/themes/brainImpairedPink.d.ts delete mode 100644 simple-mind-map/types/src/themes/classic.d.ts delete mode 100644 simple-mind-map/types/src/themes/classic2.d.ts delete mode 100644 simple-mind-map/types/src/themes/classic3.d.ts delete mode 100644 simple-mind-map/types/src/themes/classic4.d.ts delete mode 100644 simple-mind-map/types/src/themes/classicBlue.d.ts delete mode 100644 simple-mind-map/types/src/themes/classicGreen.d.ts delete mode 100644 simple-mind-map/types/src/themes/coffee.d.ts delete mode 100644 simple-mind-map/types/src/themes/courseGreen.d.ts delete mode 100644 simple-mind-map/types/src/themes/dark.d.ts delete mode 100644 simple-mind-map/types/src/themes/dark2.d.ts delete mode 100644 simple-mind-map/types/src/themes/default.d.ts delete mode 100644 simple-mind-map/types/src/themes/earthYellow.d.ts delete mode 100644 simple-mind-map/types/src/themes/freshGreen.d.ts delete mode 100644 simple-mind-map/types/src/themes/freshRed.d.ts delete mode 100644 simple-mind-map/types/src/themes/gold.d.ts delete mode 100644 simple-mind-map/types/src/themes/greenLeaf.d.ts delete mode 100644 simple-mind-map/types/src/themes/index.d.ts delete mode 100644 simple-mind-map/types/src/themes/lateNightOffice.d.ts delete mode 100644 simple-mind-map/types/src/themes/minions.d.ts delete mode 100644 simple-mind-map/types/src/themes/mint.d.ts delete mode 100644 simple-mind-map/types/src/themes/orangeJuice.d.ts delete mode 100644 simple-mind-map/types/src/themes/pinkGrape.d.ts delete mode 100644 simple-mind-map/types/src/themes/redSpirit.d.ts delete mode 100644 simple-mind-map/types/src/themes/romanticPurple.d.ts delete mode 100644 simple-mind-map/types/src/themes/simpleBlack.d.ts delete mode 100644 simple-mind-map/types/src/themes/skyGreen.d.ts delete mode 100644 simple-mind-map/types/src/themes/vitalityOrange.d.ts delete mode 100644 simple-mind-map/types/src/utils/BatchExecution.d.ts delete mode 100644 simple-mind-map/types/src/utils/Lru.d.ts delete mode 100644 simple-mind-map/types/src/utils/index.d.ts delete mode 100644 simple-mind-map/types/src/utils/mersenneTwister.d.ts diff --git a/.gitignore b/.gitignore index 9d2e087d..f18f78ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules .DS_Store dist_electron -simple-mind-map/dist \ No newline at end of file +simple-mind-map/dist +simple-mind-map/types \ No newline at end of file diff --git a/dist/css/chunk-38caf5df.css b/dist/css/chunk-da4aa08c.css similarity index 99% rename from dist/css/chunk-38caf5df.css rename to dist/css/chunk-da4aa08c.css index 8a69d09d..41d8e77b 100644 --- a/dist/css/chunk-38caf5df.css +++ b/dist/css/chunk-da4aa08c.css @@ -19,4 +19,4 @@ * @version 3.2.1 | Thu Sep 29 2022 * @author NHN Cloud FE Development Lab * @license MIT - */.ProseMirror{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,나눔바른고딕,Nanum Barun Gothic,맑은고딕,Malgun Gothic,sans-serif;color:#222;font-size:13px;overflow-y:auto;overflow-X:hidden;height:calc(100% - 36px)}.ProseMirror .placeholder{color:#999}.ProseMirror-selectednode,.ProseMirror:focus{outline:none}.html-block.ProseMirror-selectednode,table.ProseMirror-selectednode{border-radius:2px;outline:2px solid #00a9ff}.toastui-editor-contents{margin:0;padding:0;font-size:13px;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,나눔바른고딕,Nanum Barun Gothic,맑은고딕,Malgun Gothic,sans-serif;z-index:20}.toastui-editor-contents :not(table){line-height:160%;-webkit-box-sizing:content-box;box-sizing:content-box}.toastui-editor-contents address,.toastui-editor-contents cite,.toastui-editor-contents dfn,.toastui-editor-contents em,.toastui-editor-contents i,.toastui-editor-contents var{font-style:italic}.toastui-editor-contents strong{font-weight:700}.toastui-editor-contents p{margin:10px 0;color:#222}.toastui-editor-contents>div>div:first-of-type h1,.toastui-editor-contents>h1:first-of-type{margin-top:14px}.toastui-editor-contents h1,.toastui-editor-contents h2,.toastui-editor-contents h3,.toastui-editor-contents h4,.toastui-editor-contents h5,.toastui-editor-contents h6{font-weight:700;color:#222}.toastui-editor-contents h1{font-size:24px;line-height:28px;border-bottom:3px double #999;margin:52px 0 15px 0;padding-bottom:7px}.toastui-editor-contents h2{font-size:22px;line-height:23px;border-bottom:1px solid #dbdbdb;margin:20px 0 13px 0;padding-bottom:7px}.toastui-editor-contents h3{font-size:20px;margin:18px 0 2px}.toastui-editor-contents h4{font-size:18px;margin:10px 0 2px}.toastui-editor-contents h3,.toastui-editor-contents h4{line-height:18px}.toastui-editor-contents h5{font-size:16px}.toastui-editor-contents h6{font-size:14px}.toastui-editor-contents h5,.toastui-editor-contents h6{line-height:17px;margin:9px 0 -4px}.toastui-editor-contents del{color:#999}.toastui-editor-contents blockquote{margin:14px 0;border-left:4px solid #e5e5e5;padding:0 16px;color:#999}.toastui-editor-contents blockquote ol,.toastui-editor-contents blockquote p,.toastui-editor-contents blockquote ul{color:#999}.toastui-editor-contents blockquote>:first-child{margin-top:0}.toastui-editor-contents blockquote>:last-child{margin-bottom:0}.toastui-editor-contents code,.toastui-editor-contents pre{font-family:Consolas,Courier,Apple SD 산돌고딕 Neo,-apple-system,Lucida Grande,Apple SD Gothic Neo,맑은 고딕,Malgun Gothic,Segoe UI,돋움,dotum,sans-serif;border:0;border-radius:0}.toastui-editor-contents pre{margin:2px 0 8px;padding:18px;background-color:#f4f7f8}.toastui-editor-contents code{color:#c1798b;background-color:#f9f2f4;padding:2px 3px;letter-spacing:-.3px;border-radius:2px}.toastui-editor-contents pre code{padding:0;color:inherit;white-space:pre-wrap;background-color:transparent}.toastui-editor-contents img{margin:4px 0 10px;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:top;max-width:100%}.toastui-editor-contents table{border:1px solid rgba(0,0,0,.1);margin:12px 0 14px;color:#222;width:auto;border-collapse:collapse;-webkit-box-sizing:border-box;box-sizing:border-box}.toastui-editor-contents table td,.toastui-editor-contents table th{border:1px solid rgba(0,0,0,.1);padding:5px 14px 5px 12px;height:32px}.toastui-editor-contents table th{background-color:#555;font-weight:300;color:#fff;padding-top:6px}.toastui-editor-contents th p{margin:0;color:#fff}.toastui-editor-contents td p{margin:0;padding:0 2px}.toastui-editor-contents td.toastui-editor-cell-selected{background-color:#d8dfec}.toastui-editor-contents th.toastui-editor-cell-selected{background-color:#908f8f}.toastui-editor-contents dir,.toastui-editor-contents menu,.toastui-editor-contents ol,.toastui-editor-contents ul{display:block;list-style-type:none;padding-left:24px;margin:6px 0 10px;color:#222}.toastui-editor-contents ol{list-style-type:none;counter-reset:li}.toastui-editor-contents ol>li{counter-increment:li}.toastui-editor-contents ol>li:before,.toastui-editor-contents ul>li:before{display:inline-block;position:absolute}.toastui-editor-contents ul>li:before{content:"";margin-top:6px;margin-left:-17px;width:5px;height:5px;border-radius:50%;background-color:#ccc}.toastui-editor-contents ol>li:before{content:"." counter(li);margin-left:-28px;width:24px;text-align:right;direction:rtl;color:#aaa}.toastui-editor-contents ol ol,.toastui-editor-contents ol ul,.toastui-editor-contents ul ol,.toastui-editor-contents ul ul{margin-top:0!important;margin-bottom:0!important}.toastui-editor-contents ol li,.toastui-editor-contents ul li{position:relative}.toastui-editor-contents ol p,.toastui-editor-contents ul p{margin:0}.toastui-editor-contents hr{border-top:1px solid #eee;margin:16px 0}.toastui-editor-contents a{text-decoration:underline;color:#4b96e6}.toastui-editor-contents a:hover{color:#1f70de}.toastui-editor-contents .image-link{position:relative}.toastui-editor-contents .image-link:hover:before{content:"";position:absolute;width:30px;height:30px;right:0;border-radius:50%;border:1px solid #c9ccd5;background:#fff url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjNTU1IiBzdHJva2Utd2lkdGg9IjEuNSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2UtbGluZWNhcD0icm91bmQiPjxwYXRoIGQ9Ik01LjY4NyAxMC4yOTRsLTEuMjg1IDEuMjg4Yy0xLjA1IDEuMDUtMS4wMzUgMi43NzIuMDM3IDMuODQ0bC4xMzUuMTM1YzEuMDcyIDEuMDcyIDIuNzk0IDEuMDg4IDMuODQ0LjAzN2wyLjcyLTIuNzJjMS4wNTEtMS4wNSAxLjAzNC0yLjc3Mi0uMDM3LTMuODQzbC0uMTM2LS4xMzYiLz48cGF0aCBkPSJNMTQuMzA1IDkuNzEzbDEuMjg3LTEuMjljMS4wNTItMS4wNTEgMS4wMzYtMi43NzMtLjAzNi0zLjg0NGwtLjEzNS0uMTM2Yy0xLjA3Mi0xLjA3Mi0yLjc5NC0xLjA4OC0zLjg0NS0uMDM2TDguODU3IDcuMTI2Yy0xLjA1MSAxLjA1MS0xLjAzNCAyLjc3Mi4wMzcgMy44NDNsLjEzNi4xMzYiLz48L2c+PC9zdmc+) no-repeat;background-position:50%;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.08);box-shadow:0 2px 4px 0 rgba(0,0,0,.08);cursor:pointer}.toastui-editor-contents .task-list-item{border:0;list-style:none;padding-left:24px;margin-left:-24px}.toastui-editor-contents .task-list-item:before{background-repeat:no-repeat;background-size:18px 18px;background-position:50%;content:"";margin-left:0;margin-top:0;border-radius:2px;height:18px;width:18px;position:absolute;left:0;top:1px;cursor:pointer;background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCI+PHJlY3Qgd2lkdGg9IjE3IiBoZWlnaHQ9IjE3IiB4PSIuNSIgeT0iLjUiIHJ4PSIyIiBmaWxsPSIjRkZGIiBzdHJva2U9IiNDQ0MiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.toastui-editor-contents .task-list-item.checked:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCI+PHBhdGggZD0iTTE2IDBhMiAyIDAgMDEyIDJ2MTRhMiAyIDAgMDEtMiAySDJhMiAyIDAgMDEtMi0yVjJhMiAyIDAgMDEyLTJoMTR6bS0xLjc5MyA1LjI5M2ExIDEgMCAwMC0xLjQxNCAwTDcuNSAxMC41ODUgNS4yMDcgOC4yOTNsLS4wOTQtLjA4M2ExIDEgMCAwMC0xLjMyIDEuNDk3bDMgMyAuMDk0LjA4M2ExIDEgMCAwMDEuMzItLjA4M2w2LTYgLjA4My0uMDk0YTEgMSAwIDAwLS4wODMtMS4zMnoiIGZpbGw9IiM0Qjk2RTYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.toastui-editor-custom-block .toastui-editor-custom-block-editor{background:#f9f7fd;color:#452d6b;border:1px solid #dbd4ea}.toastui-editor-custom-block .toastui-editor-custom-block-view{position:relative;padding:9px 13px 8px 12px}.toastui-editor-custom-block.ProseMirror-selectednode .toastui-editor-custom-block-view{border:1px solid #dbd4ea;border-radius:2px}.toastui-editor-custom-block .toastui-editor-custom-block-view .tool{position:absolute;right:10px;top:7px;display:none}.toastui-editor-custom-block.ProseMirror-selectednode .toastui-editor-custom-block-view .tool{display:block}.toastui-editor-custom-block-view button{vertical-align:middle;width:15px;height:15px;margin-left:8px;padding:3px;border:1px solid #ccc;background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PHBhdGggZD0iTTE1LjUgMTIuNWwyIDJMMTIgMjBoLTJ2LTJsNS41LTUuNXpNMTggMTBsMiAyLTEuNSAxLjUtMi0yTDE4IDEweiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiM1NTUiLz48L3N2Zz4=) no-repeat;background-position:50%;background-size:30px 30px}.toastui-editor-custom-block-view .info{font-size:13px;font-weight:700;color:#5200d0;vertical-align:middle}.toastui-editor-contents .toastui-editor-ww-code-block{position:relative}.toastui-editor-contents .toastui-editor-ww-code-block:after{content:attr(data-language);position:absolute;display:inline-block;top:10px;right:10px;height:24px;padding:3px 35px 0 10px;font-weight:700;font-size:13px;color:#333;background:#e5e9ea url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PHBhdGggZD0iTTE1LjUgMTIuNWwyIDJMMTIgMjBoLTJ2LTJsNS41LTUuNXpNMTggMTBsMiAyLTEuNSAxLjUtMi0yTDE4IDEweiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiM1NTUiLz48L3N2Zz4=) no-repeat;background-position:100%;border-radius:2px;background-size:30px 30px;cursor:pointer}.toastui-editor-ww-code-block-language{position:fixed;display:inline-block;width:100px;height:27px;right:35px;border:1px solid #ccc;border-radius:2px;background-color:#fff;z-index:30}.toastui-editor-ww-code-block-language input{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0 10px;height:100%;width:100%;background-color:transparent;border:none;outline:none}.toastui-editor-contents-placeholder:before{content:attr(data-placeholder);color:grey;line-height:160%;position:absolute}.toastui-editor-md-preview .toastui-editor-contents h1{min-height:28px}.toastui-editor-md-preview .toastui-editor-contents h2{min-height:23px}.toastui-editor-md-preview .toastui-editor-contents blockquote{min-height:20px}.toastui-editor-md-preview .toastui-editor-contents li{min-height:22px}.toastui-editor-pseudo-clipboard{position:fixed;opacity:0;width:0;height:0;left:-1000px;top:-1000px;z-index:-1}.noteContentViewer[data-v-1484624c]{position:fixed;background-color:#fff;padding:10px;border-radius:5px;max-height:300px;overflow-y:auto}.noteContentViewer[data-v-1484624c]::-webkit-scrollbar{width:7px;height:7px}.noteContentViewer[data-v-1484624c]::-webkit-scrollbar-thumb{border-radius:7px;background-color:rgba(0,0,0,.3);cursor:pointer}.noteContentViewer[data-v-1484624c]::-webkit-scrollbar-track{box-shadow:none;background:transparent;display:none}.navigatorBox[data-v-c41a0b0a]{position:absolute;width:350px;height:220px;background-color:#fff;bottom:80px;right:70px;box-shadow:0 0 16px #989898;border-radius:4px;border:1px solid #eee;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.navigatorBox.isDark[data-v-c41a0b0a]{background-color:#262a2e}.navigatorBox .svgBox[data-v-c41a0b0a]{position:absolute;left:0;transform-origin:left top}.navigatorBox .windowBox[data-v-c41a0b0a]{position:absolute;border:2px solid #ee4545;transition:all .3s}.sidebarTriggerContainer[data-v-7fe703e0]{position:fixed;right:-60px;margin-top:110px;transition:all .3s;top:50%;transform:translateY(-50%)}.sidebarTriggerContainer.isDark .trigger[data-v-7fe703e0]{background-color:#262a2e}.sidebarTriggerContainer.isDark .trigger .triggerItem[data-v-7fe703e0]{color:hsla(0,0%,100%,.6)}.sidebarTriggerContainer.isDark .trigger .triggerItem[data-v-7fe703e0]:hover{background-color:hsla(0,0%,100%,.05)}.sidebarTriggerContainer.show[data-v-7fe703e0]{right:0}.sidebarTriggerContainer.hasActive[data-v-7fe703e0]{right:305px}.sidebarTriggerContainer .toggleShowBtn[data-v-7fe703e0]{position:absolute;left:-6px;width:35px;height:60px;background:#409eff;top:50%;transform:translateY(-50%);cursor:pointer;transition:left .1s linear;z-index:0;border-top-left-radius:10px;border-bottom-left-radius:10px;display:flex;align-items:center;padding-left:4px}.sidebarTriggerContainer .toggleShowBtn.hide[data-v-7fe703e0]{left:-8px}.sidebarTriggerContainer .toggleShowBtn.hide span[data-v-7fe703e0]{transform:rotate(180deg)}.sidebarTriggerContainer .toggleShowBtn[data-v-7fe703e0]:hover{left:-18px}.sidebarTriggerContainer .toggleShowBtn span[data-v-7fe703e0]{color:#fff;transition:all .1s}.sidebarTriggerContainer .trigger[data-v-7fe703e0]{position:relative;width:60px;border-color:#eee;background-color:#fff;box-shadow:0 2px 16px 0 rgba(0,0,0,.06);border-radius:6px;overflow:hidden}.sidebarTriggerContainer .trigger .triggerItem[data-v-7fe703e0]{height:60px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;color:#464646;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.sidebarTriggerContainer .trigger .triggerItem[data-v-7fe703e0]:hover{background-color:#ededed}.sidebarTriggerContainer .trigger .triggerItem.active[data-v-7fe703e0]{color:#409eff;font-weight:700}.sidebarTriggerContainer .trigger .triggerItem .triggerIcon[data-v-7fe703e0]{font-size:18px;margin-bottom:5px}.sidebarTriggerContainer .trigger .triggerItem .triggerName[data-v-7fe703e0]{font-size:13px}.customNodeContent[data-v-6ef61ceb]{padding:10px;cursor:pointer}.searchContainer[data-v-6455708e]{position:relative;background-color:#fff;padding:16px;width:296px;border-radius:12px;box-shadow:0 4px 16px 0 rgba(0,0,0,.1);position:fixed;top:110px;right:-296px;transition:all .3s}.searchContainer.isDark[data-v-6455708e]{background-color:#363b3f}.searchContainer.isDark .closeBtnBox[data-v-6455708e]{color:#fff;background-color:#363b3f}.searchContainer.show[data-v-6455708e]{right:20px}.searchContainer .btnList[data-v-6455708e]{display:flex;justify-content:flex-end}.searchContainer .closeBtnBox[data-v-6455708e]{position:absolute;right:-5px;top:-5px;width:20px;height:20px;background-color:#fff;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;box-shadow:0 4px 16px 0 rgba(0,0,0,.1)}.searchContainer .closeBtnBox .closeBtn[data-v-6455708e]{font-size:16px}.searchContainer .searchInputBox[data-v-6455708e]{position:relative}.searchContainer .searchInputBox .searchInfo[data-v-6455708e]{position:absolute;right:70px;top:50%;transform:translateY(-50%);color:#909090;font-size:14px}.box[data-v-6adf6422]{padding:0 20px}.box.isDark .title[data-v-6adf6422]{color:#fff}.box .title[data-v-6adf6422]{font-size:16px;font-weight:500;color:#333}.box .boxContent .iconBox .item[data-v-6adf6422]{margin-bottom:20px;font-weight:700}.box .boxContent .iconBox .item .title[data-v-6adf6422]{margin-bottom:10px}.box .boxContent .iconBox .item .list[data-v-6adf6422]{display:flex;flex-wrap:wrap}.box .boxContent .iconBox .item .list .icon[data-v-6adf6422]{width:24px;height:24px;margin-right:10px;margin-bottom:10px;cursor:pointer;position:relative}.box .boxContent .iconBox .item .list .icon[data-v-6adf6422] img,.box .boxContent .iconBox .item .list .icon[data-v-6adf6422] svg{width:100%;height:100%}.box .boxContent .iconBox .item .list .icon.selected[data-v-6adf6422]:after{content:"";position:absolute;left:-4px;top:-4px;width:28px;height:28px;border-radius:50%;border:2px solid #409eff}.box .boxContent .imageBox[data-v-6adf6422]{margin-bottom:20px;font-weight:700}.box .boxContent .imageBox .title[data-v-6adf6422]{margin-bottom:10px}.box .boxContent .imageBox .list[data-v-6adf6422]{display:flex;flex-wrap:wrap}.box .boxContent .imageBox .list .icon[data-v-6adf6422]{width:50px;height:50px;margin-right:10px;margin-bottom:10px;cursor:pointer;position:relative}.box .boxContent .imageBox .list .icon[data-v-6adf6422] img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.box .boxContent .imageBox .list .icon.selected[data-v-6adf6422]:after{content:"";position:absolute;left:-4px;top:-4px;width:54px;height:54px;border:2px solid #409eff}.nodeIconToolbar[data-v-1321abee]{position:fixed;z-index:2000;width:210px;max-height:170px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:8px;box-shadow:0 2px 16px 0 rgba(0,0,0,.06);display:flex;flex-direction:column;overflow:hidden}.nodeIconToolbar .iconListBox[data-v-1321abee]{width:100%;height:180px;overflow-y:auto;padding:10px}.nodeIconToolbar .iconListBox .icon[data-v-1321abee]{width:24px;height:24px;margin:5px;cursor:pointer;position:relative;float:left}.nodeIconToolbar .iconListBox .icon[data-v-1321abee] img,.nodeIconToolbar .iconListBox .icon[data-v-1321abee] svg{width:100%;height:100%}.nodeIconToolbar .iconListBox .icon.selected[data-v-1321abee]:after{content:"";position:absolute;left:-4px;top:-4px;width:28px;height:28px;border-radius:50%;border:2px solid #409eff}.nodeIconToolbar .btnBox[data-v-1321abee]{width:100%;height:30px;display:flex;justify-content:center;align-items:center;border-top:1px solid #eee;flex-shrink:0}.nodeIconToolbar .btnBox .btn[data-v-1321abee]{cursor:pointer;color:rgba(26,26,26,.8)}.outlineEditContainer[data-v-07021e90]{position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999;background-color:#fff;overflow:hidden}.outlineEditContainer.isDark[data-v-07021e90]{background-color:#262a2e}.outlineEditContainer.isDark .closeBtn .icon[data-v-07021e90]{color:#fff}.outlineEditContainer .closeBtn[data-v-07021e90]{position:absolute;right:40px;top:20px;cursor:pointer}.outlineEditContainer .closeBtn .icon[data-v-07021e90]{font-size:28px}.outlineEditContainer .outlineEditBox[data-v-07021e90]{width:100%;height:100%;overflow-y:auto;padding:50px 0}.outlineEditContainer .outlineEditBox .outlineEdit[data-v-07021e90]{width:1000px;height:100%;height:-moz-max-content;height:max-content;margin:0 auto}.outlineEditContainer .outlineEditBox .outlineEdit[data-v-07021e90] .customNode .nodeEdit{max-width:800px}.customNode[data-v-07021e90]{width:100%;color:rgba(0,0,0,.85);font-weight:700}.customNode .nodeEdit[data-v-07021e90]{outline:none;white-space:normal;padding-right:20px}.outlineTree.isDark[data-v-07021e90]{background-color:#262a2e}.outlineTree.isDark .customNode[data-v-07021e90]{color:#fff}.outlineTree.isDark.el-tree--highlight-current[data-v-07021e90] .el-tree-node.is-current>.el-tree-node__content{background-color:hsla(0,0%,100%,.05)!important}.outlineTree.isDark .el-upload-list__item[data-v-07021e90]:hover,.outlineTree.isDark[data-v-07021e90] .el-tree-node__content:hover{background-color:hsla(0,0%,100%,.02)!important}.outlineTree.isDark[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon{color:#fff}.outlineTree.isDark[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon.is-leaf:after{background-color:#fff}.outlineTree[data-v-07021e90] .el-tree-node>.el-tree-node__children{overflow:inherit}.outlineTree[data-v-07021e90] .el-tree-node__content{height:auto;margin:5px 0}.outlineTree[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon{color:#262a2e}.outlineTree[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon.is-leaf{color:transparent;position:relative}.outlineTree[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon.is-leaf:after{background-color:#262a2e;position:absolute;content:"";width:5px;height:5px;border-radius:50%;left:10px;top:50%;transform:translateY(-50%)}.scrollbarContainer.isDark .scrollbar[data-v-41219b84]{background-color:#363b3f}.scrollbarContainer.isDark .scrollbar .scrollbarInner[data-v-41219b84]{background-color:rgba(0,0,0,.3)}.scrollbarContainer .scrollbar[data-v-41219b84]{position:absolute;background-color:#f5f5f5;border-radius:10px;overflow:hidden}.scrollbarContainer .scrollbar.verticalScrollbar[data-v-41219b84]{width:10px;top:100px;bottom:100px;left:20px}.scrollbarContainer .scrollbar.verticalScrollbar .scrollbarInner[data-v-41219b84]{width:10px;left:0}.scrollbarContainer .scrollbar.horizontalScrollbar[data-v-41219b84]{height:10px;left:100px;right:100px;bottom:70px}.scrollbarContainer .scrollbar.horizontalScrollbar .scrollbarInner[data-v-41219b84]{height:10px;top:0}.scrollbarContainer .scrollbar .scrollbarInner[data-v-41219b84]{position:absolute;background-color:#ccc;border-radius:10px}.box[data-v-24ccf624]{padding:10px;width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.box.isDark .formulaList .formulaItem .overview[data-v-24ccf624],.box.isDark .formulaList .formulaItem .text[data-v-24ccf624],.box.isDark .title[data-v-24ccf624]{color:#fff}.box.isDark .formulaList .formulaItem .text[data-v-24ccf624]{background-color:#363b3f}.box.isDark[data-v-24ccf624] .el-textarea__inner{background-color:transparent;color:#fff}.box .title[data-v-24ccf624]{font-size:16px;font-weight:500;color:#333;margin:10px 0;flex-shrink:0}.box .formulaInputBox[data-v-24ccf624]{flex-shrink:0}.box .formulaList[data-v-24ccf624]{height:100%;overflow-y:auto}.box .formulaList .formulaItem[data-v-24ccf624]{position:relative;display:flex;overflow:hidden;align-items:center;border:1px solid #dcdfe6;border-bottom:none}.box .formulaList .formulaItem[data-v-24ccf624]:last-of-type{border-bottom:1px solid #dcdfe6}.box .formulaList .formulaItem .overview[data-v-24ccf624],.box .formulaList .formulaItem .text[data-v-24ccf624]{width:50%;overflow:hidden;display:flex;justify-content:center;align-items:center;flex-shrink:0}.box .formulaList .formulaItem .overview[data-v-24ccf624]{padding:10px 0;border-right:none}.box .formulaList .formulaItem .text[data-v-24ccf624]{cursor:pointer;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;position:absolute;right:0;top:0;border-left:1px solid #dcdfe6;background-color:#fafafa}.editContainer[data-v-b74ec01c]{position:fixed;left:0;right:0;top:0;bottom:0}.editContainer .mindMapContainer[data-v-b74ec01c]{position:absolute;left:0;top:0;width:100%;height:100%}body.isDark .el-button,body.isDark .el-input__inner{background-color:#363b3f;color:hsla(0,0%,100%,.9);border-color:hsla(0,0%,100%,.1)}body.isDark .el-input.is-disabled .el-input__inner{color:hsla(0,0%,100%,.3)}body.isDark .el-input-group__append,body.isDark .el-input-group__prepend,body.isDark .el-input.is-disabled .el-input__inner{background-color:#363b3f;border-color:hsla(0,0%,100%,.1)}body.isDark .el-input-group__append button.el-button{color:hsla(0,0%,100%,.9)}body.isDark .el-select-dropdown{background-color:#36393d;border-color:hsla(0,0%,100%,.1)}body.isDark .el-select-dropdown .el-select-dropdown__item{color:hsla(0,0%,100%,.6)}body.isDark .el-select-dropdown .el-select-dropdown__item.selected{color:#409eff}body.isDark .el-select-dropdown .el-select-dropdown__item.hover,body.isDark .el-select-dropdown .el-select-dropdown__item:hover{background-color:hsla(0,0%,100%,.05)}body.isDark .el-popper,body.isDark .el-select .el-input.is-disabled .el-input__inner:hover{border-color:hsla(0,0%,100%,.1)}body.isDark .el-popper,body.isDark .el-popper[x-placement^=bottom] .popper__arrow{background-color:#36393d}body.isDark .el-popper[x-placement^=bottom] .popper__arrow:after{border-bottom-color:#36393d}body.isDark .el-popper[x-placement^=top] .popper__arrow{background-color:#36393d}body.isDark .el-popper[x-placement^=top] .popper__arrow:after{border-top-color:#36393d}body.isDark .el-tabs__item{color:hsla(0,0%,100%,.6)}body.isDark .el-tabs__item.is-active,body.isDark .el-tabs__item:hover{color:#409eff}body.isDark .el-slider__runway,body.isDark .el-tabs__nav-wrap:after{background-color:hsla(0,0%,100%,.6)}body.isDark .el-radio-group .el-radio-button__inner{background-color:#36393d;color:hsla(0,0%,100%,.6)}body.isDark .el-radio-group .el-radio-button__orig-radio:checked+.el-radio-button__inner{color:#fff;background-color:#409eff}body.isDark .el-dialog{background-color:#262a2e}body.isDark .el-dialog .el-dialog__header{border-bottom:1px solid hsla(0,0%,100%,.1)}body.isDark .el-dialog .el-dialog__title{color:hsla(0,0%,100%,.9)}body.isDark .el-dialog .el-dialog__body{background-color:#262a2e}body.isDark .el-dialog .el-dialog__footer{border-top:1px solid hsla(0,0%,100%,.1)}body.isDark .el-upload__tip{color:#999}body.isDark .toastui-editor-main-container{background-color:#fff} \ No newline at end of file + */.ProseMirror{font-family:Open Sans,Helvetica Neue,Helvetica,Arial,나눔바른고딕,Nanum Barun Gothic,맑은고딕,Malgun Gothic,sans-serif;color:#222;font-size:13px;overflow-y:auto;overflow-X:hidden;height:calc(100% - 36px)}.ProseMirror .placeholder{color:#999}.ProseMirror-selectednode,.ProseMirror:focus{outline:none}.html-block.ProseMirror-selectednode,table.ProseMirror-selectednode{border-radius:2px;outline:2px solid #00a9ff}.toastui-editor-contents{margin:0;padding:0;font-size:13px;font-family:Open Sans,Helvetica Neue,Helvetica,Arial,나눔바른고딕,Nanum Barun Gothic,맑은고딕,Malgun Gothic,sans-serif;z-index:20}.toastui-editor-contents :not(table){line-height:160%;-webkit-box-sizing:content-box;box-sizing:content-box}.toastui-editor-contents address,.toastui-editor-contents cite,.toastui-editor-contents dfn,.toastui-editor-contents em,.toastui-editor-contents i,.toastui-editor-contents var{font-style:italic}.toastui-editor-contents strong{font-weight:700}.toastui-editor-contents p{margin:10px 0;color:#222}.toastui-editor-contents>div>div:first-of-type h1,.toastui-editor-contents>h1:first-of-type{margin-top:14px}.toastui-editor-contents h1,.toastui-editor-contents h2,.toastui-editor-contents h3,.toastui-editor-contents h4,.toastui-editor-contents h5,.toastui-editor-contents h6{font-weight:700;color:#222}.toastui-editor-contents h1{font-size:24px;line-height:28px;border-bottom:3px double #999;margin:52px 0 15px 0;padding-bottom:7px}.toastui-editor-contents h2{font-size:22px;line-height:23px;border-bottom:1px solid #dbdbdb;margin:20px 0 13px 0;padding-bottom:7px}.toastui-editor-contents h3{font-size:20px;margin:18px 0 2px}.toastui-editor-contents h4{font-size:18px;margin:10px 0 2px}.toastui-editor-contents h3,.toastui-editor-contents h4{line-height:18px}.toastui-editor-contents h5{font-size:16px}.toastui-editor-contents h6{font-size:14px}.toastui-editor-contents h5,.toastui-editor-contents h6{line-height:17px;margin:9px 0 -4px}.toastui-editor-contents del{color:#999}.toastui-editor-contents blockquote{margin:14px 0;border-left:4px solid #e5e5e5;padding:0 16px;color:#999}.toastui-editor-contents blockquote ol,.toastui-editor-contents blockquote p,.toastui-editor-contents blockquote ul{color:#999}.toastui-editor-contents blockquote>:first-child{margin-top:0}.toastui-editor-contents blockquote>:last-child{margin-bottom:0}.toastui-editor-contents code,.toastui-editor-contents pre{font-family:Consolas,Courier,Apple SD 산돌고딕 Neo,-apple-system,Lucida Grande,Apple SD Gothic Neo,맑은 고딕,Malgun Gothic,Segoe UI,돋움,dotum,sans-serif;border:0;border-radius:0}.toastui-editor-contents pre{margin:2px 0 8px;padding:18px;background-color:#f4f7f8}.toastui-editor-contents code{color:#c1798b;background-color:#f9f2f4;padding:2px 3px;letter-spacing:-.3px;border-radius:2px}.toastui-editor-contents pre code{padding:0;color:inherit;white-space:pre-wrap;background-color:transparent}.toastui-editor-contents img{margin:4px 0 10px;-webkit-box-sizing:border-box;box-sizing:border-box;vertical-align:top;max-width:100%}.toastui-editor-contents table{border:1px solid rgba(0,0,0,.1);margin:12px 0 14px;color:#222;width:auto;border-collapse:collapse;-webkit-box-sizing:border-box;box-sizing:border-box}.toastui-editor-contents table td,.toastui-editor-contents table th{border:1px solid rgba(0,0,0,.1);padding:5px 14px 5px 12px;height:32px}.toastui-editor-contents table th{background-color:#555;font-weight:300;color:#fff;padding-top:6px}.toastui-editor-contents th p{margin:0;color:#fff}.toastui-editor-contents td p{margin:0;padding:0 2px}.toastui-editor-contents td.toastui-editor-cell-selected{background-color:#d8dfec}.toastui-editor-contents th.toastui-editor-cell-selected{background-color:#908f8f}.toastui-editor-contents dir,.toastui-editor-contents menu,.toastui-editor-contents ol,.toastui-editor-contents ul{display:block;list-style-type:none;padding-left:24px;margin:6px 0 10px;color:#222}.toastui-editor-contents ol{list-style-type:none;counter-reset:li}.toastui-editor-contents ol>li{counter-increment:li}.toastui-editor-contents ol>li:before,.toastui-editor-contents ul>li:before{display:inline-block;position:absolute}.toastui-editor-contents ul>li:before{content:"";margin-top:6px;margin-left:-17px;width:5px;height:5px;border-radius:50%;background-color:#ccc}.toastui-editor-contents ol>li:before{content:"." counter(li);margin-left:-28px;width:24px;text-align:right;direction:rtl;color:#aaa}.toastui-editor-contents ol ol,.toastui-editor-contents ol ul,.toastui-editor-contents ul ol,.toastui-editor-contents ul ul{margin-top:0!important;margin-bottom:0!important}.toastui-editor-contents ol li,.toastui-editor-contents ul li{position:relative}.toastui-editor-contents ol p,.toastui-editor-contents ul p{margin:0}.toastui-editor-contents hr{border-top:1px solid #eee;margin:16px 0}.toastui-editor-contents a{text-decoration:underline;color:#4b96e6}.toastui-editor-contents a:hover{color:#1f70de}.toastui-editor-contents .image-link{position:relative}.toastui-editor-contents .image-link:hover:before{content:"";position:absolute;width:30px;height:30px;right:0;border-radius:50%;border:1px solid #c9ccd5;background:#fff url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjNTU1IiBzdHJva2Utd2lkdGg9IjEuNSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2UtbGluZWNhcD0icm91bmQiPjxwYXRoIGQ9Ik01LjY4NyAxMC4yOTRsLTEuMjg1IDEuMjg4Yy0xLjA1IDEuMDUtMS4wMzUgMi43NzIuMDM3IDMuODQ0bC4xMzUuMTM1YzEuMDcyIDEuMDcyIDIuNzk0IDEuMDg4IDMuODQ0LjAzN2wyLjcyLTIuNzJjMS4wNTEtMS4wNSAxLjAzNC0yLjc3Mi0uMDM3LTMuODQzbC0uMTM2LS4xMzYiLz48cGF0aCBkPSJNMTQuMzA1IDkuNzEzbDEuMjg3LTEuMjljMS4wNTItMS4wNTEgMS4wMzYtMi43NzMtLjAzNi0zLjg0NGwtLjEzNS0uMTM2Yy0xLjA3Mi0xLjA3Mi0yLjc5NC0xLjA4OC0zLjg0NS0uMDM2TDguODU3IDcuMTI2Yy0xLjA1MSAxLjA1MS0xLjAzNCAyLjc3Mi4wMzcgMy44NDNsLjEzNi4xMzYiLz48L2c+PC9zdmc+) no-repeat;background-position:50%;-webkit-box-shadow:0 2px 4px 0 rgba(0,0,0,.08);box-shadow:0 2px 4px 0 rgba(0,0,0,.08);cursor:pointer}.toastui-editor-contents .task-list-item{border:0;list-style:none;padding-left:24px;margin-left:-24px}.toastui-editor-contents .task-list-item:before{background-repeat:no-repeat;background-size:18px 18px;background-position:50%;content:"";margin-left:0;margin-top:0;border-radius:2px;height:18px;width:18px;position:absolute;left:0;top:1px;cursor:pointer;background:transparent url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCI+PHJlY3Qgd2lkdGg9IjE3IiBoZWlnaHQ9IjE3IiB4PSIuNSIgeT0iLjUiIHJ4PSIyIiBmaWxsPSIjRkZGIiBzdHJva2U9IiNDQ0MiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.toastui-editor-contents .task-list-item.checked:before{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCI+PHBhdGggZD0iTTE2IDBhMiAyIDAgMDEyIDJ2MTRhMiAyIDAgMDEtMiAySDJhMiAyIDAgMDEtMi0yVjJhMiAyIDAgMDEyLTJoMTR6bS0xLjc5MyA1LjI5M2ExIDEgMCAwMC0xLjQxNCAwTDcuNSAxMC41ODUgNS4yMDcgOC4yOTNsLS4wOTQtLjA4M2ExIDEgMCAwMC0xLjMyIDEuNDk3bDMgMyAuMDk0LjA4M2ExIDEgMCAwMDEuMzItLjA4M2w2LTYgLjA4My0uMDk0YTEgMSAwIDAwLS4wODMtMS4zMnoiIGZpbGw9IiM0Qjk2RTYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==)}.toastui-editor-custom-block .toastui-editor-custom-block-editor{background:#f9f7fd;color:#452d6b;border:1px solid #dbd4ea}.toastui-editor-custom-block .toastui-editor-custom-block-view{position:relative;padding:9px 13px 8px 12px}.toastui-editor-custom-block.ProseMirror-selectednode .toastui-editor-custom-block-view{border:1px solid #dbd4ea;border-radius:2px}.toastui-editor-custom-block .toastui-editor-custom-block-view .tool{position:absolute;right:10px;top:7px;display:none}.toastui-editor-custom-block.ProseMirror-selectednode .toastui-editor-custom-block-view .tool{display:block}.toastui-editor-custom-block-view button{vertical-align:middle;width:15px;height:15px;margin-left:8px;padding:3px;border:1px solid #ccc;background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PHBhdGggZD0iTTE1LjUgMTIuNWwyIDJMMTIgMjBoLTJ2LTJsNS41LTUuNXpNMTggMTBsMiAyLTEuNSAxLjUtMi0yTDE4IDEweiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiM1NTUiLz48L3N2Zz4=) no-repeat;background-position:50%;background-size:30px 30px}.toastui-editor-custom-block-view .info{font-size:13px;font-weight:700;color:#5200d0;vertical-align:middle}.toastui-editor-contents .toastui-editor-ww-code-block{position:relative}.toastui-editor-contents .toastui-editor-ww-code-block:after{content:attr(data-language);position:absolute;display:inline-block;top:10px;right:10px;height:24px;padding:3px 35px 0 10px;font-weight:700;font-size:13px;color:#333;background:#e5e9ea url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCAzMCI+PHBhdGggZD0iTTE1LjUgMTIuNWwyIDJMMTIgMjBoLTJ2LTJsNS41LTUuNXpNMTggMTBsMiAyLTEuNSAxLjUtMi0yTDE4IDEweiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiM1NTUiLz48L3N2Zz4=) no-repeat;background-position:100%;border-radius:2px;background-size:30px 30px;cursor:pointer}.toastui-editor-ww-code-block-language{position:fixed;display:inline-block;width:100px;height:27px;right:35px;border:1px solid #ccc;border-radius:2px;background-color:#fff;z-index:30}.toastui-editor-ww-code-block-language input{-webkit-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0 10px;height:100%;width:100%;background-color:transparent;border:none;outline:none}.toastui-editor-contents-placeholder:before{content:attr(data-placeholder);color:grey;line-height:160%;position:absolute}.toastui-editor-md-preview .toastui-editor-contents h1{min-height:28px}.toastui-editor-md-preview .toastui-editor-contents h2{min-height:23px}.toastui-editor-md-preview .toastui-editor-contents blockquote{min-height:20px}.toastui-editor-md-preview .toastui-editor-contents li{min-height:22px}.toastui-editor-pseudo-clipboard{position:fixed;opacity:0;width:0;height:0;left:-1000px;top:-1000px;z-index:-1}.noteContentViewer[data-v-1484624c]{position:fixed;background-color:#fff;padding:10px;border-radius:5px;max-height:300px;overflow-y:auto}.noteContentViewer[data-v-1484624c]::-webkit-scrollbar{width:7px;height:7px}.noteContentViewer[data-v-1484624c]::-webkit-scrollbar-thumb{border-radius:7px;background-color:rgba(0,0,0,.3);cursor:pointer}.noteContentViewer[data-v-1484624c]::-webkit-scrollbar-track{box-shadow:none;background:transparent;display:none}.navigatorBox[data-v-c41a0b0a]{position:absolute;width:350px;height:220px;background-color:#fff;bottom:80px;right:70px;box-shadow:0 0 16px #989898;border-radius:4px;border:1px solid #eee;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.navigatorBox.isDark[data-v-c41a0b0a]{background-color:#262a2e}.navigatorBox .svgBox[data-v-c41a0b0a]{position:absolute;left:0;transform-origin:left top}.navigatorBox .windowBox[data-v-c41a0b0a]{position:absolute;border:2px solid #ee4545;transition:all .3s}.sidebarTriggerContainer[data-v-7fe703e0]{position:fixed;right:-60px;margin-top:110px;transition:all .3s;top:50%;transform:translateY(-50%)}.sidebarTriggerContainer.isDark .trigger[data-v-7fe703e0]{background-color:#262a2e}.sidebarTriggerContainer.isDark .trigger .triggerItem[data-v-7fe703e0]{color:hsla(0,0%,100%,.6)}.sidebarTriggerContainer.isDark .trigger .triggerItem[data-v-7fe703e0]:hover{background-color:hsla(0,0%,100%,.05)}.sidebarTriggerContainer.show[data-v-7fe703e0]{right:0}.sidebarTriggerContainer.hasActive[data-v-7fe703e0]{right:305px}.sidebarTriggerContainer .toggleShowBtn[data-v-7fe703e0]{position:absolute;left:-6px;width:35px;height:60px;background:#409eff;top:50%;transform:translateY(-50%);cursor:pointer;transition:left .1s linear;z-index:0;border-top-left-radius:10px;border-bottom-left-radius:10px;display:flex;align-items:center;padding-left:4px}.sidebarTriggerContainer .toggleShowBtn.hide[data-v-7fe703e0]{left:-8px}.sidebarTriggerContainer .toggleShowBtn.hide span[data-v-7fe703e0]{transform:rotate(180deg)}.sidebarTriggerContainer .toggleShowBtn[data-v-7fe703e0]:hover{left:-18px}.sidebarTriggerContainer .toggleShowBtn span[data-v-7fe703e0]{color:#fff;transition:all .1s}.sidebarTriggerContainer .trigger[data-v-7fe703e0]{position:relative;width:60px;border-color:#eee;background-color:#fff;box-shadow:0 2px 16px 0 rgba(0,0,0,.06);border-radius:6px;overflow:hidden}.sidebarTriggerContainer .trigger .triggerItem[data-v-7fe703e0]{height:60px;display:flex;flex-direction:column;justify-content:center;align-items:center;cursor:pointer;color:#464646;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.sidebarTriggerContainer .trigger .triggerItem[data-v-7fe703e0]:hover{background-color:#ededed}.sidebarTriggerContainer .trigger .triggerItem.active[data-v-7fe703e0]{color:#409eff;font-weight:700}.sidebarTriggerContainer .trigger .triggerItem .triggerIcon[data-v-7fe703e0]{font-size:18px;margin-bottom:5px}.sidebarTriggerContainer .trigger .triggerItem .triggerName[data-v-7fe703e0]{font-size:13px}.customNodeContent[data-v-6ef61ceb]{padding:10px;cursor:pointer}.searchContainer[data-v-6455708e]{position:relative;background-color:#fff;padding:16px;width:296px;border-radius:12px;box-shadow:0 4px 16px 0 rgba(0,0,0,.1);position:fixed;top:110px;right:-296px;transition:all .3s}.searchContainer.isDark[data-v-6455708e]{background-color:#363b3f}.searchContainer.isDark .closeBtnBox[data-v-6455708e]{color:#fff;background-color:#363b3f}.searchContainer.show[data-v-6455708e]{right:20px}.searchContainer .btnList[data-v-6455708e]{display:flex;justify-content:flex-end}.searchContainer .closeBtnBox[data-v-6455708e]{position:absolute;right:-5px;top:-5px;width:20px;height:20px;background-color:#fff;border-radius:50%;display:flex;justify-content:center;align-items:center;cursor:pointer;box-shadow:0 4px 16px 0 rgba(0,0,0,.1)}.searchContainer .closeBtnBox .closeBtn[data-v-6455708e]{font-size:16px}.searchContainer .searchInputBox[data-v-6455708e]{position:relative}.searchContainer .searchInputBox .searchInfo[data-v-6455708e]{position:absolute;right:70px;top:50%;transform:translateY(-50%);color:#909090;font-size:14px}.box[data-v-6adf6422]{padding:0 20px}.box.isDark .title[data-v-6adf6422]{color:#fff}.box .title[data-v-6adf6422]{font-size:16px;font-weight:500;color:#333}.box .boxContent .iconBox .item[data-v-6adf6422]{margin-bottom:20px;font-weight:700}.box .boxContent .iconBox .item .title[data-v-6adf6422]{margin-bottom:10px}.box .boxContent .iconBox .item .list[data-v-6adf6422]{display:flex;flex-wrap:wrap}.box .boxContent .iconBox .item .list .icon[data-v-6adf6422]{width:24px;height:24px;margin-right:10px;margin-bottom:10px;cursor:pointer;position:relative}.box .boxContent .iconBox .item .list .icon[data-v-6adf6422] img,.box .boxContent .iconBox .item .list .icon[data-v-6adf6422] svg{width:100%;height:100%}.box .boxContent .iconBox .item .list .icon.selected[data-v-6adf6422]:after{content:"";position:absolute;left:-4px;top:-4px;width:28px;height:28px;border-radius:50%;border:2px solid #409eff}.box .boxContent .imageBox[data-v-6adf6422]{margin-bottom:20px;font-weight:700}.box .boxContent .imageBox .title[data-v-6adf6422]{margin-bottom:10px}.box .boxContent .imageBox .list[data-v-6adf6422]{display:flex;flex-wrap:wrap}.box .boxContent .imageBox .list .icon[data-v-6adf6422]{width:50px;height:50px;margin-right:10px;margin-bottom:10px;cursor:pointer;position:relative}.box .boxContent .imageBox .list .icon[data-v-6adf6422] img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.box .boxContent .imageBox .list .icon.selected[data-v-6adf6422]:after{content:"";position:absolute;left:-4px;top:-4px;width:54px;height:54px;border:2px solid #409eff}.nodeIconToolbar[data-v-1321abee]{position:fixed;z-index:2000;width:210px;max-height:170px;background:#fff;border:1px solid rgba(0,0,0,.06);border-radius:8px;box-shadow:0 2px 16px 0 rgba(0,0,0,.06);display:flex;flex-direction:column;overflow:hidden}.nodeIconToolbar .iconListBox[data-v-1321abee]{width:100%;height:180px;overflow-y:auto;padding:10px}.nodeIconToolbar .iconListBox .icon[data-v-1321abee]{width:24px;height:24px;margin:5px;cursor:pointer;position:relative;float:left}.nodeIconToolbar .iconListBox .icon[data-v-1321abee] img,.nodeIconToolbar .iconListBox .icon[data-v-1321abee] svg{width:100%;height:100%}.nodeIconToolbar .iconListBox .icon.selected[data-v-1321abee]:after{content:"";position:absolute;left:-4px;top:-4px;width:28px;height:28px;border-radius:50%;border:2px solid #409eff}.nodeIconToolbar .btnBox[data-v-1321abee]{width:100%;height:30px;display:flex;justify-content:center;align-items:center;border-top:1px solid #eee;flex-shrink:0}.nodeIconToolbar .btnBox .btn[data-v-1321abee]{cursor:pointer;color:rgba(26,26,26,.8)}.outlineEditContainer[data-v-07021e90]{position:fixed;left:0;top:0;width:100%;height:100%;z-index:9999;background-color:#fff;overflow:hidden}.outlineEditContainer.isDark[data-v-07021e90]{background-color:#262a2e}.outlineEditContainer.isDark .closeBtn .icon[data-v-07021e90]{color:#fff}.outlineEditContainer .closeBtn[data-v-07021e90]{position:absolute;right:40px;top:20px;cursor:pointer}.outlineEditContainer .closeBtn .icon[data-v-07021e90]{font-size:28px}.outlineEditContainer .outlineEditBox[data-v-07021e90]{width:100%;height:100%;overflow-y:auto;padding:50px 0}.outlineEditContainer .outlineEditBox .outlineEdit[data-v-07021e90]{width:1000px;height:100%;height:-moz-max-content;height:max-content;margin:0 auto}.outlineEditContainer .outlineEditBox .outlineEdit[data-v-07021e90] .customNode .nodeEdit{max-width:800px}.customNode[data-v-07021e90]{width:100%;color:rgba(0,0,0,.85);font-weight:700}.customNode .nodeEdit[data-v-07021e90]{outline:none;white-space:normal;padding-right:20px}.outlineTree.isDark[data-v-07021e90]{background-color:#262a2e}.outlineTree.isDark .customNode[data-v-07021e90]{color:#fff}.outlineTree.isDark.el-tree--highlight-current[data-v-07021e90] .el-tree-node.is-current>.el-tree-node__content{background-color:hsla(0,0%,100%,.05)!important}.outlineTree.isDark .el-upload-list__item[data-v-07021e90]:hover,.outlineTree.isDark[data-v-07021e90] .el-tree-node__content:hover{background-color:hsla(0,0%,100%,.02)!important}.outlineTree.isDark[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon{color:#fff}.outlineTree.isDark[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon.is-leaf:after{background-color:#fff}.outlineTree[data-v-07021e90] .el-tree-node>.el-tree-node__children{overflow:inherit}.outlineTree[data-v-07021e90] .el-tree-node__content{height:auto;margin:5px 0}.outlineTree[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon{color:#262a2e}.outlineTree[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon.is-leaf{color:transparent;position:relative}.outlineTree[data-v-07021e90] .el-tree-node__content .el-tree-node__expand-icon.is-leaf:after{background-color:#262a2e;position:absolute;content:"";width:5px;height:5px;border-radius:50%;left:10px;top:50%;transform:translateY(-50%)}.scrollbarContainer.isDark .scrollbar[data-v-41219b84]{background-color:#363b3f}.scrollbarContainer.isDark .scrollbar .scrollbarInner[data-v-41219b84]{background-color:rgba(0,0,0,.3)}.scrollbarContainer .scrollbar[data-v-41219b84]{position:absolute;background-color:#f5f5f5;border-radius:10px;overflow:hidden}.scrollbarContainer .scrollbar.verticalScrollbar[data-v-41219b84]{width:10px;top:100px;bottom:100px;left:20px}.scrollbarContainer .scrollbar.verticalScrollbar .scrollbarInner[data-v-41219b84]{width:10px;left:0}.scrollbarContainer .scrollbar.horizontalScrollbar[data-v-41219b84]{height:10px;left:100px;right:100px;bottom:70px}.scrollbarContainer .scrollbar.horizontalScrollbar .scrollbarInner[data-v-41219b84]{height:10px;top:0}.scrollbarContainer .scrollbar .scrollbarInner[data-v-41219b84]{position:absolute;background-color:#ccc;border-radius:10px}.box[data-v-24ccf624]{padding:10px;width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}.box.isDark .formulaList .formulaItem .overview[data-v-24ccf624],.box.isDark .formulaList .formulaItem .text[data-v-24ccf624],.box.isDark .title[data-v-24ccf624]{color:#fff}.box.isDark .formulaList .formulaItem .text[data-v-24ccf624]{background-color:#363b3f}.box.isDark[data-v-24ccf624] .el-textarea__inner{background-color:transparent;color:#fff}.box .title[data-v-24ccf624]{font-size:16px;font-weight:500;color:#333;margin:10px 0;flex-shrink:0}.box .formulaInputBox[data-v-24ccf624]{flex-shrink:0}.box .formulaList[data-v-24ccf624]{height:100%;overflow-y:auto}.box .formulaList .formulaItem[data-v-24ccf624]{position:relative;display:flex;overflow:hidden;align-items:center;border:1px solid #dcdfe6;border-bottom:none}.box .formulaList .formulaItem[data-v-24ccf624]:last-of-type{border-bottom:1px solid #dcdfe6}.box .formulaList .formulaItem .overview[data-v-24ccf624],.box .formulaList .formulaItem .text[data-v-24ccf624]{width:50%;overflow:hidden;display:flex;justify-content:center;align-items:center;flex-shrink:0}.box .formulaList .formulaItem .overview[data-v-24ccf624]{padding:10px 0;border-right:none}.box .formulaList .formulaItem .text[data-v-24ccf624]{cursor:pointer;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;position:absolute;right:0;top:0;border-left:1px solid #dcdfe6;background-color:#fafafa}.editContainer[data-v-05b8f366]{position:fixed;left:0;right:0;top:0;bottom:0}.editContainer .mindMapContainer[data-v-05b8f366]{position:absolute;left:0;top:0;width:100%;height:100%}body.isDark .el-button,body.isDark .el-input__inner{background-color:#363b3f;color:hsla(0,0%,100%,.9);border-color:hsla(0,0%,100%,.1)}body.isDark .el-input.is-disabled .el-input__inner{color:hsla(0,0%,100%,.3)}body.isDark .el-input-group__append,body.isDark .el-input-group__prepend,body.isDark .el-input.is-disabled .el-input__inner{background-color:#363b3f;border-color:hsla(0,0%,100%,.1)}body.isDark .el-input-group__append button.el-button{color:hsla(0,0%,100%,.9)}body.isDark .el-select-dropdown{background-color:#36393d;border-color:hsla(0,0%,100%,.1)}body.isDark .el-select-dropdown .el-select-dropdown__item{color:hsla(0,0%,100%,.6)}body.isDark .el-select-dropdown .el-select-dropdown__item.selected{color:#409eff}body.isDark .el-select-dropdown .el-select-dropdown__item.hover,body.isDark .el-select-dropdown .el-select-dropdown__item:hover{background-color:hsla(0,0%,100%,.05)}body.isDark .el-popper,body.isDark .el-select .el-input.is-disabled .el-input__inner:hover{border-color:hsla(0,0%,100%,.1)}body.isDark .el-popper,body.isDark .el-popper[x-placement^=bottom] .popper__arrow{background-color:#36393d}body.isDark .el-popper[x-placement^=bottom] .popper__arrow:after{border-bottom-color:#36393d}body.isDark .el-popper[x-placement^=top] .popper__arrow{background-color:#36393d}body.isDark .el-popper[x-placement^=top] .popper__arrow:after{border-top-color:#36393d}body.isDark .el-tabs__item{color:hsla(0,0%,100%,.6)}body.isDark .el-tabs__item.is-active,body.isDark .el-tabs__item:hover{color:#409eff}body.isDark .el-slider__runway,body.isDark .el-tabs__nav-wrap:after{background-color:hsla(0,0%,100%,.6)}body.isDark .el-radio-group .el-radio-button__inner{background-color:#36393d;color:hsla(0,0%,100%,.6)}body.isDark .el-radio-group .el-radio-button__orig-radio:checked+.el-radio-button__inner{color:#fff;background-color:#409eff}body.isDark .el-dialog{background-color:#262a2e}body.isDark .el-dialog .el-dialog__header{border-bottom:1px solid hsla(0,0%,100%,.1)}body.isDark .el-dialog .el-dialog__title{color:hsla(0,0%,100%,.9)}body.isDark .el-dialog .el-dialog__body{background-color:#262a2e}body.isDark .el-dialog .el-dialog__footer{border-top:1px solid hsla(0,0%,100%,.1)}body.isDark .el-upload__tip{color:#999}body.isDark .toastui-editor-main-container{background-color:#fff} \ No newline at end of file diff --git a/dist/img/HaHN.jpg b/dist/img/HaHN.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7bd6dce26f3315d386d84aa3605dad559a192781 GIT binary patch literal 40860 zcmbTdcT^Kw_%=Er5Q>1JK>-2jBteuClx_e+2?SE85tSw+QIxLYL4!1jfRxZeF+eI1 z6a@v9BbET7Q3wGQfumFr8wz@`-gv&>{l2yCU-#a3)@1ft*)x+j^UPbH{rlPPm%s*$ zr;jH90s(-xYy*D30%+(Hlvn`3VgUpI07`%YXd?iYjX<&u0O}U zf9A*mKpq8<|DQP|+3}CauKefh|2fLBZjkB~Jih>3kzb@KSH1n${q*l%Ktl;!DBD0rfSd*htO5Fc zAJ`_lvjXTp`R_E@2S^SquK-b0QdU_fo6xxdkOP6ia`IpWg+I3eWyrn<Co*&MK>H-lCx1xq0XE>7`|i@`}o;YGz{-o5SVt1zW#v+gOU;H=-AU|&&OX)&&nI!%4QSfE7Rpas{N{*!|L5&nO2|Bp=kZ}}~|2*}99#2#rMfkZ~k*V1a||3Ay`Nf|61evbpH zV2}(odk$|igVe8$zrpKi;;vPMjxF2hEz~bQT1osO?Km6B*|Mp7=W%W ziuSt3YFe#8pQ-ChiOK%>$5;bB??f**d|4(Fh}1sT$K^BPn8id8TH<-|;5oCT|CpJY$Zchza@L#Y%zp9y6-^o03i-$YFFCII^6z*bqNnNB4U<1O~Y% zb419G$pK4#kc<)k$7Ew8=K5%qy0&x8q9tU`N2kbRyH>d^>mMF?AD zHatetO&lw2T>n_jnF$;eBELz#2 zuoCges@JxDpS8Y-!0pjSO%$kZpz|s+JGMHULvzz5e3!ySK2ycDUZ*6#ft=mr44ii= zo2TNQh*I)`P9*vxxtVIcAAH4H>?M@qSgk#D#GeKE%3&>gQ6W43CB&pP7N@Wj*qkTn zZuQ*EO(~?KYaZzEW^!%Lz+dBbs@iklZw^*EGK&3Q})dG+YxeNgLA&XVJ@ zi*D436vLM21Q;l*p7Amf+ekB2T;)Gc$Pj?uQeG}!|HM+_f4GPtz+GN%$l_Q+t5^z6 z$W!?KbRdDrwATL(2rZvb1-R$WF*Ve$JCveb5Z!(Q_zdda zpOT|40T_etv)>8u{re|epZprNV;z!Tu;=bNzDC$HVFWhFyRn@@if(Pc{G4>N`&Pi%n1Go3|dxTB0oAZc^3`!k+&QTZf zok||WOA?uR!4!kAG~x{c$V1=SJ8Ba%|JyXX{|qMk=i6^gva(w*4?mvS52cX~bP!gc zfX0(o-jse8avbnW#5hLL@hBxvtSt{yCg3m9lD&}lsp5@9AD%vi0W?8J&^utDoMdlx z_3>h9OfoaVwYZ=__ELbnQQfa8E8_<``V5iHO5gAoNPb_~@)t1_E@V70K=-pB|^5LH3bp1Z^`XVjNlni?2=B3v+~l1Rs8hMYeR9v4c6 z%-Z7054}+{vnAOp3Q#_6sdO7K&3zeHa;kVffwy(Cf;g7uhA#1mrq&nR_~xqV|96R^fcZ4uftGiwsX z$n1NMj!2u=_*QDLf!QD=_Mt-)om$&QnM9~;F{`Ng;EU=TE|AoByv2bN;P>j`a2P1; z#B?>iN+)`UdInj}6(-u@lm=Cihh7}3D09YvR-0~1D(Ha2bZy7Pd~FjFM3~|8@xHs9 zjtdsFEs8q+UEcOUTEfijbc%NJaPP=VP8?^`XcP6)*O&@}RXb=)=aZhDHY2xh1njH; zN4F3SU;hR$Z6I?w;Y+l(q5%38T8Wr5%KC7Tqk6eCAt7V2WY=@hD(}`IZh!Ptv9FIh z{9Lbmve;`*zZ+V5**t26RDcVNdP||ZGC-f`2ZiL5Z!z{fA{IFFd-!iLzJ0n*T=lWy%dqKAoYqVGym&(5*poYx53CzwPR z0ZdDXTYn2d2(Z)1ctchez>t8W1hl5b{Vo~70zMB&@rX}wM;yo(E8a;0w&ZemL+XYF zTA#D9G{(glj3XhcI6r+vc>&tORQiDG`?2ws(el7MloW@lm0yg`Jtdpfu8-p+;heyi>1leHN$5)2< zmQ+Bx9&qMqM$zSmYl9dsm%SA=8&Q#G5t{&WgCURnkntkM7f+7?ZU&_kihlvEW`VQN zmgd?lxA&A&k`xY0kwA!Z#;>pTQae zc7c%AmY5i6I~P8%=rdMV;#0J03h-9BnHU!sNa>y52Y=_zL`+qb1cM?RTi0 z2sf_E88c=E3}C-Z#i0`0%~4p_K$RxN zEWfJ77URI}343%pdqAJ^pXgDI5zTMUe`Y`1RK4DnVPyW{sOMsP`-@IwYK!XK7<(78qq|AyC~tUf zEu41=35@&@QNR7T3<-2}bAMtj<>XFs&deirxxg1pRHC&g89&J{CEq0) z28&n+&H)BP^^jv3M~@GZy~YZPW0^|UD2E@g-+)mCO)I(XF8c`-?X zPQlXD5-^40{|sa(>tNvIhGlSL;L%o_Sts1)P6%GJu;DCxyq z`z?Lsd6>Tz(M3=!R|&1^hvMXxnfNg#ildvtipqMdAV(uF^Z+~4{g#>V3tzEv2IkHZ zB3WBZMs+mOI-;Sf2?Amd3K6qN=*ye0sJO61u-?Pbp1;6>udt%xkWrP;Q$uouRGx+p zT^@EvtBGSEAbv>Xw@g3SpI1jGyqSK$F?} zzgNnx$SZZci{9-T+j?%O(d_fXIF46k$yMn{VtskcHp4yR)G{ybi_*PkozI?*LbS(P zKKS5&?xL-EkM(b0Oyh%JcI%|raBzh3@N42b>>^2bJ1)uAo1*xMbpZqX9_eQ0|GkPG zpfdi=@Q)f^-SU+Qum5Lpot!0xfcL) z9E*v37z)N=BWVZV=_+n+Vk;H614riENthGRUN{9Viw@K~aB2XAZj1g8KI?pBsQF{4 zWVum0Tv1w4r67Zt63SU8lSLd%po*Z%E!7;%#VSI^sj)KP9;Bu7 z?|?xWu3E+!#79SJb;#4zMyCjy*ZKFSH{Wkx7-NQPG7SUk^(@Bh**SyDq$j)1ej{FP zLkGB((c_G`v{XBH)Cqg&J%5w9W$uuix*GPYlN6PV@j}vw#`?7c#Yj(BfBN<_&((W|vp1Ote@oFj zMTek$eCh6cNB{)JDv=bCH;kcXAPwG_zmr9-1cFV-SaYt{Y_0TaGxM*T^vH~Uy0gFq zaVIVGN&pgB#NXP@i8?o+Gvkd1)D=lpGVe~?pu^NK)bE%$E;IQTsVIBG zHWCH~AZyducU&lBfFm|_f+}IopHzECAZjOzk=8#?LNnm!PTb+GEO{%^VL*w$(7#ml`5joNQGN&@>3OnEp6;%>hsH9Xu7kr_eerLxs&h+oy zZ$k9ZWFAWPo9GwtBEzLq9raZD;93tAEk8WCW#`&Me_MX@R_YdWXWWX8bYwTU6FHF? zhGGi0^WM|T1=y_@59`_bZ8={XdzmP7fUcDX8$93Lyq<(l=QXqjWw$%^Q18MHDEO9I z?j7A7$``-G8`JYNokdB^i}9Q-odvy@C*X^N!-+{X+v3^ZlZra46clW|tk$pxucMbR zI~!e=lp7!|9orp)%&K>6e-r%Pc1ZenlKyI+-rahW!~x`6pXVpfFJZKF=AyffW{+NQ z3?NlD_=GR+R1N^zH;? z2hf4{^^nJI6d!eLJrWcewGyxA-KOfhy_ zx*xfCxDRfP{U%k-a84X+6zR$k03>TL6GdMB^O@%fO)>Fy>L;7bg@DV5Vo|yB620!= zSk>ZWIu7jex_{5(GDYZHU7V42cfoW+q10?l+wKUUV4p4_kJ)W+C0bu+ocK_TFpGM# zLA|_Ttc2&a`{Fo?4tQr$#BFM zp{BR02K<0a*O4-D=vU~Q?K`QWcg%R7AIN)wF}weEA`JV;fIr%P+gPy;e!lQ-ld6}U zNk;M#x*-2C);E#(jo?s z$`Ai*6mGKYceEPXn|6ZDA6lT77DFiNu%;>6=1QUMc&(ZoSY&|Ymi>@L(~sdOP9GIr zP@j%N(&HJ&Dq5TMdGy-Go#vN>p0S1Lk|V==%YYP4zvh0P_H@;u?J(G7OwsBlj3R~| zK4L>ry%E>T$39Hsug4V8%y-MuPNv6HVy zc53TtYp0hDU@n<{D0e8VoZD7M-k}B2QxZxw&X*zVx?I$PVh{<3_r;@44EwtT<*p*n zj7PcoTlvkGH1PeH5ttXG=GqkkdAOx&B8#N)V?fRL#q4tMMwj!M{)8LQ=qQ5@@vYHD zd$t^_eVMBea2+`d&>5DgXx&G`4$0ZO+!sFA>T(k03lKrIU-@*RicYZJ!!s1UH^*FD z4jcZ9e8dzpjwwRwn4%)j1FMuB>IoDO2OYF!-Bi7~hoABr$n~5e%&#DWRF}o)jnnNl zmQ9zeYcpT;1l`de?Z)5oF`v@?HVWVH>RG=a+Sz(V5Yw6Z-~bx6RmIbhDSY%UvUU|Y zx3vaZcVbl#t%X$bv0?)V$5R(;7V%6Fz4K6dP)aznv*<1(H+#mRkp`a#EI5|#B9PM5 zrK&IyOiR0o1MDgw3Y>6q^z`d3_=NeAd20mM%QfrM1C_r(En<}+^HX?UG7Ch=vl-B(i2;F zpUI=I!*?45;lv8S@wcyFtZtu;^jy2B@I3Xy z_S2LY-1SY`@kzG1!UT}E=7Z#m95QM0)*g!_iv}kx7wlb_$j0K_{5JSJS48%HM9>si z%Yy9S6JJ&MfpjT<62xa<{KP!?9iGk0;cHj7yU#ORtg?KvP@Co1`kk!$7%uIp^GQk$G|;Nubdi(f|PQ z*X_aP`Jh1t-nz>|A_6FPm-MBY@Aw(i8v# z_B6Yf8~rD8eJQ!r1K5;38!b?whyYK}FP%EKJr-ZN@H^A32}?}KIg@j&FZ=*K>Zi+* z9iwr6x+G?(L1w%JRp5(v>3blaSSVZ}k2RC!`84zd!T)Y4J4gJdL8O-o!CF&W-V9Dwt}5 zp%Q!exngBBZh9Bs#WO2bRKXimk5~74W|mxLrk; zUc)g23UD;^k)M=Rkitn##ARxfo}@sc0|$OA$V+EkM1?Y}wqK`(b#B1$8+STamU+0fJ0Q&Y%c?Wl*rAJ6XA`5OX1XNACw zZjj4D!?}hGMyG1OQUC_v9Zw<7Vg~-?F9GG(9qcsNeTIu6mWFEI`+gvr+ul6SPoSL& zPC6u7{~E3ahZJ(J*lm4(*!ARtc!8vKzk^#xF!gM|o|vLlJ?QarEAOB%6-;lS9GZ*# zr;ND2<6PE5gN=#%jE(wWqCnzFElALW(~OXm8_L~gxX|?hrL^37zOxUFUN8d}JEv(?7Q{FN8{)pc=ktISZd{=~-I#!i_f8fs-oCe4{dh zM6oUO%aY$btAQdN!a5;ywFO$B3!J@JZ&}TG#OEgTjjWigZ(`KCo!gu<&&AUtLSw?b zT&P`Z%4*}ShTyWGIm6n^&7Mi#c!acurrrFEcZ%4)#r%mbzHExwG}q6umlpUjNf6i| z9oYYj{X~eo%zZB(RYxl`Dv(AeF8W;a8_()ZH;6X28T&SiL9B%Ls+ZK&RJ3T!dv^#9WcfuyqUpoBz?P8yKt8MoDiJ^5@v@xX3Tp`WktN9 z%eS~A{`m>(m;55duCBQ?HrqTYj;oEVs4u)rkSYjeZIvZo$??pav$Lob1{a*gTA9vY z5Lz0pKxr5lyAK9RUh)|)>X4Nr-pgtUP$eZ*D{A-Jdd=uXZ0bbEkh(4(S+29op7+^@ z)_sSw8jA%E_q>K?};r%)q8bCY7*$<_~M zTYB^{g?yXS9jeU4?gvnJs}BKG_W<@vF_*bNOFe#~GsooAKFAG~$2a<`T+7+o8*Q(tuW0olh+~WyO+huzFnHkI ze)OdehVn_Lp6;PfjGQ3Axn}2c)NCQb;gBQ@Bm3x5uxfVoRjzU{?2adx36&pknDh}MO%c@pYK|7mKc7Mmu>*5Ck9Q8LzDz%ny zTaF!onM6a^_Rc#za8`*`oVJHiXJ$tuQa;ON~_+D*VW>{yXa|ZW+ym{-U{!CV8b$dPR`#lQZBYos+O!OzDYGGb99vQLHV*k$wpT7pZA81h2 zSR8b3;11s}V~iQ|EPGbk?CD9#b5Vo8Rx-4anBZ~` z$D;*wVBQP*O)udY`<-{px%*b4!!3v0zO<&yn2bI=>9$q5m0M^e29g8BC^cuDfuYK* zJI%xwaf}uRUTpSTvx0L|hr?`K%RANHCbj8CxAUum{*83Mr=_bh>{lrl8L#9t9d+A- zP+ptDIBnFTs;*$)-ZZ|hSl7qkxk=Zyw*>^SuJRSb%!#l3hk@JI)+ou>2(l;-Svy^B z>M-8`EjQhw4_k;>L(FsufSbA&f^S7scFgsMi^Q|{dPsu!fdn(}=LEhGOZx>CCDT+s{$;cdJyL@nv)fB~gZo1)-DH(s$4cXs0u4(7oqAxWI4jzbRd*mxe3-_}c;bu72g0G=tow z!Eh-AuBWDye4-`?Hkvt`&?XBvC%sMm3VyMuQ{d106UZPZcpocugIz<=bs%!?`*c zhHNld)(eLxV_RFEPace_KiiC$y&m=Bsq!|DvM|Y%?MFmeyR$U4Ij3Nv4HH@>c3CgR z(I{`!sRP@+rTJw6)>}mT&kjHPWQ{&MBaFY*r@grEb;B098YqSiEYU0Y#f`EOqioj- z+Sf6u^~H|bvR~KBZTmw9MNQ;>?=O6Bv4j5zQ}w>FA~RW^^2qbOlVtY+7^rso0<}`B zh^0pcp-h&S0{)7VlqgSn_irbIK)+I6`9W8qz(*JORv=yzzP80hytkzuYn0bq)U%k3 z!J2v65GNi(HG>xy{%3qSiglk~GE`%u!y>SB}$+H%1FXecbH%=VTqNaoc`q@9iIj zsKp|*M%mD3LTUQ8yJxQ>h&OT1oFJbD8pH);^EnE04)?4qIw3^wnOtS+w#k zyYQAQY8C0Bjds0BWLtOWkYx1={!3=H7q#&8J8uR^d5_&L#?KiaRDRRwNs82ok~wNX?KX!GVJ2u5S#Ikpr}nUtBgx)2tsz-cLkaC$+^lMVC5Cz)ZMb zTP?|Bf{;@Fl4|LGO6giqQ4I$A!-gdC#@x!IouJx>@a*t z_*z;m#u%fl=@HbJk#kKupF-E%XJ)P zA)Us4pM$+LJMF8nD>j~G`V*VYF1)QebL%jvU~J5~yXs?~COT zf##6BS-G}2&FVyh*cU!G6)jF_!jQFJIS^*7rCk^6v)DU*MsvM{L#%fiGW?Xl3Ovxq zsk|;>A=QeAS+&HBMcYNUB~)HP9P;0__(?$)vm7F252D_#hc43)cG?bhre@ZNEm5wd znohUT*C_8Mu({C5d4w-AP#sYsoP>V!=hBQn^;37LR1^%!pHfWUwF7}U0P9lybZ5R; zSC7kq_G@#&e13M-8tLK(8A=t$YGh$M@$88vXp<1mlGjZ_+`Sx`6?Ae5qwa{?Vs_%I zD!uhMzaLL*sr|f{Zrw%H-fz0rttHUT(uZe*@yM7YS^uEY4)W#TEqmTt%T#&x8CfT! zp4uXJNxV<4fsx4cepF1PnKc#6d0p4saY_OptDtdXbikf%GNj;h-H2wa{mxgyCH4aIAgneKkX;Ed}Y!ZUJkT z=qCMWrRe%JH7D52%VS7TrNT zM;*cTA(2(i4d#5x^Bc^~3_0rYpdwrNEQl#?zkPDy)8NN+V&JnnkNsQZYN?n=;dE=% zWFH=_>Atxkxro{`H%wCqxOI}NTyQz>y%#bx_R#&mW3r|AzaMD!ym6lWh1CCt)Lys2 z<#p+t(ZQq&FZ90TgXXbi*Vhqij;)oI*`y1u{V~W z2oZwI`Nc!eb=Qt~;X_}}mLA6bv~YMzX*=mu7g$WBFm%S2gOdmWJ$c<$M`i1)NfUi4l_97i15-?TOYT5Cd1C1Wz+K)1-Q3RFrpkFEv# zYy1Y%tCZ)}S6;qc;XG^VL^fWGMs1AE#L3|=Q;&RA6dFJ``9E0nn`UI9lwNQB$Zc>C zxiTM?eDG5|CHahNig*_ttcav(WsVg{tk_5(gOXtD<0DIE^7N=F_WGj-*ot(J(reHR z$CLWkY*d2-6qrb)$5nJ1h=EucTVnJUTsLML6-R!#Oo$CBym>lk7qxqJNJEaDgb{*!80ko6)8N>A!We&879 zyEP#hN+cL-l_f`q$y$`$EAO>_P*!j@3QqoNK4UeA_qs%lD^}9`q=LkN$MF2S)7A54 zr&o;_`}8Ld>&j>&Llp_Pk24>{T8iV$(r{V(%DVM~5%I2n?I~Xp<6_qm{qi3X6!i)T zv1K{KPr*!*P_@M~w8Ma3V zlL@vc&5FB|hd!eg99rgrq)n<>fx@Gtzut#ORc7>$U(5V{*-;`VwL$|%)&;AA%Z^|9 zF&<`C_aheQl?i%exr(OWfc~YG=JB{6r%szSNZV#goU2|qIFBG-R1K?cPe|_X0gkHp z7=;x#tspa-;g9}3X#Dgd2O#a$;0L`_X)!GzJTiAdlj2l37b2PTtvMC8W-7E(61gN+ z+sIHsAby{RvY8#gEV39dOV-gX2~PG?K;FY(kxU>SxysWo*Fb{u(_e61C-CGouYe=; zqSwFHesRz1Rx5pJhVdOQ3Y`Stsr*2ZEqs;NyZceoRF%&AvxRD>A$w-+fQx$8`nizfu@4V#t)r0Qf2OX>M>m6({U%hDf#{#Gw?tW584 zxLNg-$#!pfHs=Exux8lVgmyW6B2$eK+?ZCGhC2`sRc)c`@i$FBQ+@Fq{Q2cp|vQtkgaHaOMkif}NV99Y7t zR#e*aOP22iRu@{{?#@93nK^#F(N@Iar%4_4S0147ms*RY2PIEAgo39Npr#i6lcyKT^p-WudzU48ca ztG+jiH}q4WHq}Hyiv#y4cb;Z4iM7Pf%jir$q>4VH=EwKsnT@#zNY&?3-oPz|KkD~=(2*E5*|Ta&Zp_m^iT{pAeF-;= zCo=<|CO+)Kh8Y5)eWtIqBCBxHhUbJgF?f)9?&HP}7_L zv55QB0?fwNfG9nSQ!50Z38^Y0WN-Mq!aoOlu7@Cc$)CajYz=0(R9@@xDIG?#7;wBm z#U#wrHr6_(a%F^R#as@&9_>{dnE6y!mPI_hM&@w((gUm2cnR;fJqd!N)DPSDsNFjglkd)LlZ zo?YMUf?a3yiPN(e>&Wb+Ku$dVG6kl}E2dB%K}xV9*V0T4e1K5_4h)AsW3%KN>2O+y zj0C4bfn!Yp7@H%5GKK^L{UJEf7>te)6of1`-9^)5QjpcM@8Z%=vJ8Gef%!=buPq!dJ^6TPA#lEGaPGn@T&%#Tm9p-OUZ76hj%mib#Oq6; z(vHyWDTb&;Ni8R42xIQe&#bErW;@Z=S`I{?FIh36 z%FL@~0^jA0vay3M(XVnd>?_ymA&8KmV3l-y8%LhTTThBSbbzgr^SESb+ zUGy@;qyUl&pUsM7V(@4=m7={e^Gld!r~u8a0|}FeUYR+6l$om*G;doZ{VFHYgDE-> zdxJZ*I3i0~pke6$&vbzBz_ z*^kK%WDS`MC`V(?6(m_it*e^T)jxdkDB8}~aIiKA9@-aJ=6J(mv&GkdiUVk>mvd5q zK)A_kJ8O6coI*xE&_dg4ni{h9o@lJ2%VHJ`2~N|2z57G(lzPb zHU3RdU{GNPOk}0sm~R@&xVZvt;>1wZ|LU!4cbB*LXK`b0+$@xl@`S|Mn}=u` z3JPt}m}jWO+Y`083|u+^2X6k!cy%Ua@>_5k#l~%*A-_(~yN=p%?1tSjJhM*C&2(-N z*CqDOt)1zKvrB3mOjW%HC*FoMIX|^2t9NZDExk z$fdH}Xz+dZEnGwFr<@(0agU>`s*4cPv^PD}g^E-7%R?jbLv-L}AZ;Xp5~x$7ndB!) z^!9fgbvTNtwRBRM;~DEw8KqWQ;^33}Z!pg%M~?~jhCkS7XBVeQc%17Mr;9;F6 zNFu&Wyw4&tXz;W5s8a!i6O4S6PGkgj;E&n{KV`DITkvJxx%taJl6nWI1TIvKX={Zo zWKA`amj?r@IFM`I_uWfBcQzmG7(>arEa#4S6iIvA(O{+(1t4ObpxNm|@<+R&US=nd z-=eu*dX!8T*iw+hUp&Tz6ssSZuPKmRCn@|Px?e{_1FQeABNen|=4Ue<1Jn8;^{?sg zajeMH%(VVE>UcS^Wc(~hcQnaw=R3c3fkZd?7^289-xDtF044|u7IK>qj9o9e`>t?*5-;rT=I3qso<*S<0acxSs4^$%255a zL%Pd&jR14{A-9R_S=q05;EsS~Bo9kK#!1hhB%?wJCq$Sgjt9L~7WG#3&q}rzY7a6! z{E!N5R1yESm$p#hW`3Tz=950Bk!Q=n>}Z7d>x#W+Zcv`Lg&j)y&TZwa44#~4mXtL< zK3jSv1o!KsC~V)efb_QL-H`Jgfkr1TEUO%6);HFPVtvPJP={PZ+E68uhbP&LwvlcF z6I&}lW6O+aDt?5`&|DeC^evu#?r~F(`%|)G3F<9LT3CSp!sp`jQt(((8rfDQT;)Q-WB8gd>U|NWQwo-ml8s`rhG~g&w2!3waAeqgg(()ICBzYk)_y#$C~z zqdc?%Ga+YwORoE(HO<`6e<VaPrI`wLL-u!gc$B8i^0ia3!X^uK zxRPR4&^hu83rYRV4i!?NuGQBMgxF#QGm0`>MjtMf#RmlqIjD7e6Vij4-NEYQE~Qqj z7{X|*n#N#?U^q*a4x~Z}5>Q}_^uC-GrM-w-f7rWmxGXW&ZReH%jMyM6Yd@S{uQmJq zA+r+Ps3~l6c!L=&z31F_Muq+5lh;Fai`|=xs-%9|iEeBY9gJs94veL8LW>o$Mblu9 zrA;M^D#X9bm0>M)zm)mL)L693j>d@>|{|z6K_e)we4K^>3K7SclP=@SOr}RqXNN|>9 zJ~PLW=_p&SBK6855cic3P3#My9e4c2F=S}RI35M!Y6P&6auyHtUxgK9?@~K5dNN9F zfPGk7`z{Yt(59|tpURS6Q*&)3m1ga-7Thbr9+3zG!|FmO)j3Vj^f8{64$AglNiiA< zTIbGA9BWb?{)@-F>IQt2A*9q|g}1thLmD?HQ0+?hIvuFm0-?BZ1*$giyT$60eei1i zKXKhQ85JpgZES9#+@tOLLgZVi5hB z*G$l$MJe*gMVr8q!EIT0c-k9M?Scl|2baB%%XqspW!o%%rAC#ZWPaD+zd%w+*15Hc za%GLu55pp5Tw8go0Zwys->&gfqs`mpUt8TK5y;M}fvJs_>&7n9ad514A=f5X3;7ME zA>My)ZovCxP(ncZ`0eva?=^Ez2*{ng&g0Mi+=DpXcc8J^nBkz=9q;IWQ!7T=#q7KK zCKgoYPaXe`lu=T1A8fU^7tF@iKiBFdE{8B5_rak*9%4kFxk#P-Z_-J%kmNFN zPGrYj8_JXvXC)&%bg?|Fed#3FhS^twt|p=VDl1rX$}DDkQe9>;jvUN59w1Xg9hbHrDgg<#5#wNG<>-?n+N_U#Yo7BDR@KG_&%y4{GS^X%i zIKB^&ZzMLqy%3)Xf1ZWQVz*X@jUD1=2xh=rzBTfJp5B?#Km zqw>_w@on*?o>aTSjANg-fQ4odJJPkNHl^k{tnW5R@z&+Xaz92BwKSM_j=T)ww<%3m z>ExC+n|v=)3sZ%GytQTn)u4V!fw3I%uJh_|+u|c0r%7W6ZHJiGed^&!4WF-Ecos5N z_eE3I#QdyaSnWk}!2N78_^y)9bnVxN$8-aSu)&9~i8i}Eet_9NKmBAPr||`(Z$K_Rr99hWfIzU9QAh9J>kwe*-~N5Ik9(mJwvss7(#{o zwZg5f?-&mOq2)(>L~`sHnq0x)O>ml(D1-GpcFTV;tlgyJV*eAobdi{tVt1`#m3o2Q}Im7&^ z?_-1ba<#QqT*;*=Zmxfmxt*n*r-CIpbW>61=2d4fZqgyB z_1r?F!8~pEYotil`;;wG@-k8k*U5m=?snx-rdvF3+Z_wo{Ohp8t53iGFP`25D(U_I zAAf_JoCT$(mNUTYI>4NT8Y(C%Lo>3jqZBC3kybV?&XUX=Sc)S=hG>?SmNsr$;;1Oa z(Xu{fYMJe{Znr!BFYfnu{^!K$$nnHE@18tg&*x*kAaiKf@!6&Ti!s$N_jnh10rp#a zTWsFI@)#sVP^~~SImjbUiRs!oUSj8{I`u@VU9-a}Y7f|)Y$(nGsPnbUTw{_$qb0^$ z1^an9IGjVk{DFgp525fqlYzb%`HIctF=GRvAT}{b<0|LMm77m5Xf0FKh3bx@g2)E| zCSlA6I7J_>S{7e{)J0c;K1!=7|7-j z0+hI%aIrAKotNokD%7Uy!RrT5R<7wRm`gpyTcTa6f~8{?c)VIPJXDofEuexb-H=8> z=6@6FAwfUorQ)E!z~8DB3VoK|kSs4Jf|rWF`yk)-Rpt5I$$#*zEXD?RooKzJ1ByW%!@OH34rqvu})i(c=e45%kL>j#n~kFZXK#_M(WrLtwh7 z$GC;o=yGhs9U5^bgE4wyhboFo$t3zYm6lkSPpKW{PYVr{Wb>1{Z3fJM?hJ;XY+%D0 z%Ocsz1m-H@pPBBpj&$z76Wt*s&`zmDFnJ=u=%IFlEF&WMFywQ$$V*<4(=b!tw??+Z z|74PiL|qTFcN#IP`o=~yvUx4MzC`Y3ea1heSLa$i`n)U1FXOM8c}Sl20ZDCMp29`1 zIF<3~D26%{P5jm;^wjh7wmo9)?PK`lM!fNf*8(UOxzPeq`wMD? zMm-uEvc?{@Hb%5X%giDSpveGU}Gj_L*1`P3`FbDxZ3e;I8Wx7vQIx z+N-TeWyEJ}JzF^>g(&bdpc5F@1xuz*^Kh6*Yl(t4)6H)YRM0! zb@}Jeb-rl5x9rDouGy7bESZgjnIY9~|6w?t|20(c3z^`tB-03W;6Z7)k%j<;YWXpVTbH zz^Y$>ypL0Y6HAf^mPU%+9mEaK`IyDISd15a+wEdOqx~ZZ z6yw_OC6GA{|AP=dAk9@VOO4LZ2JqVKz8QKNK?~)&u}*i`cf?xg~{0tc)&2c^6NWXLUynT$VY ziP;z@N!#r+-JsNeB7Njjr&P7QEoJNn;S!~H&n6Wk?ze0-=x%P^Ph=%H_(atSf8?B3 zEHKa9%I4=f+~Q!gK<%9jP3sQxnm*@0%De6mc6Tmr&?BYeCGWD&w$+b1>Do0>8)chz zr&Ghl7A4uL3|h3bMh*7krq7fLVr?#~QNYS;?_PaI(Q%XG4qN21?#6E?e!KZ6BYeM( zuG>dOMu^}@A6Ad!otAKBW~`@}f%}v;A$(#RXv;@AMPBu!FSXz=J^spR3I2EZzwLxtran*w;a#ZvhAp+sGeg^=~v4>CmozH8T> zNz70N2)eEmKR+n@`}7O0TNp`}jF+w-J0LH(c0i~l|HEZh`vD`fE}5K#0Y+)CL3V+9bij=9p?pSC9?iVqRLE{S&C%(zI_x)`Zcpjl zkPz>Yd*)-q*O z72xLoz^D7)x%=P_Qnl37tMG{mN)^*7q+%6Hyvhc5n?u9eDm2Ulm{g4WC?pw_PK|U3 zV!cz5vsSUMS~qz|9owF>^;J=Pj1#S>fIP&?HT|pW_V>4()Q-E%;i;5AFaJAo6M#5= zRW#6u)Y##FuMqVF2c{5ku12g?>+ZxdEhm-a%XUkaKQvDfCg>_%8uhVc>IBzK0L&Zm^0nHW(M;*EHHHNe1V-ijmtzr{ zK|J!|OfeGTf+U%aLasTx;}r!50s6~%xmxaG&AQ6q<*)(#$>*DsAtqWP)i@pyDk~|h z29-=R|9_mMM5sLiKH8nfBx_oW*CC~iDf}AqfDlAM3EOnkO>mp$&O;w)ls9PUjLj-8ED=Tl$woaZbMx&f9_q?v6@Yg(dfoB`sanv!~rtp@p9wO zq%Ou@(gNjtT|gw1AV|cFMNuY4SZ>JpbAf2M50zJeVzT`a%eDI{Xg}Wl_~@C@nTkV0 zO_#U#ySr3$y`w)`mlFyJh6^_=K3h&a8GT~4-~x|R?Bv}V`&=nH&MRfaGIGTYi+qbE zB=>b*Z>y-olj9r2a3yvfxpj&{VkFjex;Y0Va}F-hC#4MM_Y*BGS@@GtzSxYpt?S@< z3Iv;CQ&^_ha!+t9Z6c4S%@dmhueRj$B73b~anV+NhZQk}HjfkMDJ%2!ze|klVm6Y; z1LXIjZf)5iX__FW^~%OA;#F$FqBKk^)%V8BA zCIwAQQvyKu<^Qk8X%Dm6g@I&iG!dgiosAx)Ig*rka(Hi zJjEa9?#CE*Iv8a?h{C3KW_y=Tdh{-}A}=J4U$HpYq}=8mJlLcw3bq-X2UO$vcPx9b z=EE?qI?S|Yx|x^S%2*CgK*ZgwM4$26-C-Pq>iO-&Xyx_NcyaJO^Gj#$Pmcf5dfSkd z-o_6WT``@zP=N4|!Akg3jw_Y4w%l4RG_nhCA48?lv=mNk)9=o8VJ9$Vet&+GNLuxE z?-*xYeH|{|ZRpH#?%!P5tt^eOTj3V$-2jxl_r#CCi;uvmvxnD(I zC~U{C9|W0EEJWRi;Piv)gEl8&|BhZKI-#`V)SX7%E&eMpFw4UMNley8u23Kg`Sk^U zJ5DKa=g0wMt=KHx>qYY0c!Wz7a-!qD)GxPV*3+X!lVN%%YA&GaGf#9!aAiPnVY*Gw z-LWk&3o;*AS3A*h?}! zI!>%BFMvciUJi9|1R^D13nT_5lV%fg)hR?8BoJAcO$FqN2+StJG!6 z`~MG3ElagBV)>bJUaS+C^+5WHdjB0E=uz=xjxFu+$TIW%ui;tnX58cH_QV$dgwXZa zhN@Bh!n13CoV;GJVd?ze1IU_F7C8@CtC;%)ok3}0fKb*=IuXRdDw58qdoX_bXX3)<4G|{80K;pTe)qpD8(hB&ng%Y(D0r;K>8d{jI0h zSQ0lH&$+t`C{kg`kJTR|-`ph)k43kX#^+uy#6CJ3c=w2?JN(_7Aad+g;u}Xlx`2-I zc8QU$vc&X6p2Jr4M(i%p3dh9UL1lzL%c+PIe6jm^Lm+V)yHuM5FQJKQaLj{e|B%~s z7d&H4eLJ5*68Bn+k`>nu1O*Xy`((?u3Yv({2j@?wx<|Serm7qsN%6Muj^*?zzBvvaHss;q*jVYZg z9#5QkMM2V5@cQ1`(UsfD54OI}*&11c>U6`DS5Q}wpGcExqvkYXrpAm^;;f;j(>4`E z2cr3GbL+d+$Ksf24xTclX_>oVx%PvtrF*h(Q|{#+IzR99c*U0W!&lfR-ppe?&Sh)R zXt0cc{h~st=6*G84d7N7pz=V+Lh?mi3wF0`1$9`XJ%kLBt?p3Nk{o0_;0H8F($Q0( z(%zDHj`buX-zG!$YIqxH*+9Pr>jhUWB0HF>4|kcF|Ie76(c znEWsF0$0E1U+AFfp%MRy1uxI@{I+MSNjp{)iFH1jmp%`9(%kwBXG8z=^%XVMr$0v? zNZNOUBoWI}sarfGz_NU$?)DuWW60w^7>PX`y9+Q}*h9!1`UNr~87mT&37M*oh3 zdV8Daf);`P@R1_H<#Sy@U|geXlh0_cP8p#1=%>`eFWfN1R`<42b(EU=?6>#sG!+7s0THawS(vn73goIjQtQCa=;?~i z$ny9b2PFdo$hWkp&mp|6%aF(JqTTPbwJdi0s7e=|=rolri!tvGM`kSJUvPS4 z!K3c2OhR^vUheW=%jB;GYa+7agTsmH$o`2pdp7LJDxM7_?kS_RCTEy3QWK3iM_Kpw zSmZf=5h%;-PP{BgoIXHr79;sNm&3#yd-NP2E!jpmdLi0a*&$?9i2+g1qlUrjcmxl| ziCcJQhUkJDt6yU8)K_8F)AU1L?KZd&vH0hsExR+6bsJZDuF6P2iL|w`x{QS1TEoeq zBt+Va7Tj(_5VePGCps1v*%|asjdg0a@0&e{D{?R#SRkxyQrK@`L;T`~LIbZn0xHzr za7Oy$3#J#fcYNE>Bm_;%oj3nGam!D{%X5~@gDGBTLVo?MuOgcNGHoH!t%Sm$Ivt;= z+|E|&fHa||@@bDa!BMJy#7yM4cVSR=Aup7P7M1x?Z!yaSuWY0t{!{M;SxN`CL40QU zFEL{;Pcby}c>Il=3GIw^4pm|7>p9Z)*894fhu01c63=7}I~h!1|yV9DauQgtId7R1`*A*rPz5;MvdB4SNvn|<@-Ta z{Y{r{Bmtw!SU)ih*xf^lM)d=jZpL`8R?@B@m)f6^p_LxK*CvuJ%LHfcv=d~8?6lza z3^JxmmIK@nLTYgQ7?0ys#ujaJ($b*ig)r)hcU^37HZ?_dC_JWAmqkk+t@Q3Y9$!jC zRd(UbW9;gJz|Sou*<&3MuFY=5FN4P__gaivqWaAnA;qFpi^mj>x>?A3T1-N&&!%*| zb1ZL%l2lF0w^u~TUb?*Hm<-C04j|y*mKsW}0(}R@jNh0r%<#Q7cKNsSe_^f0MUM-; zY68;~R%3k*8MGklsNOf66#}ZN)O<4;+YuII*{lqRT8|c0eK0v-9$*`nM`?O8W z*YkTFW=TKHlrdHapb3x-E#k$3ZUa}VP5)z8LC;0Qu#xjr#+?ttnn|tJ5*%0%$Y~$| zjFtmXf^b_n*A~Y&2b-!|sG3IjuSYqlTbMlr_68^CN4lzJGPo z5qit?%Tv`6`eeLhv@oDxlK^vDU|-GV523iVX^8Bx@mWG zbbRP<%)?zoWl}lmUZ#?E>P~g*i5JetUA~~Bv?bcr>kqCTKrNSMQv3FozN1Yy1Su)e zmc77ZNrccSG;$bA6c)Mk(A$X{IK_RF6X6Y+zdKfq*|Ef8*S=`9Q-S57@fg^d{!+Mhg&7tfOjw@UR^$1VSOBVyIb-anYj>6K9?XxU32w8&2nzLzs#Fxv?<%3kjUQ!qOB$N z4GGAh6|?e{TlR4d^kVYgnu4+#i(a=8%Q0t}X)BT^19q48rv7 z8g)YtDxPhw#0{fcPw0=SD$350^E2hU)%l6mm6oXojQYiagR%r$L33-zs~2r@D_KLK zJToyyV#(&EW2W1@hKN3(H#R9tB+?|LY7x=bt+3{t%v{~nm0mRa;RxMKH~Cg&u-&q9 zj*X(KVu$mApgN{|={aYgRKMwqefNjXEU23DzQVI37p>2xehdp_W%{Lk*NSeEnuY$! zXt>1nq30+aFglu1`74lXr~cXhA_)1zHNu3dZIkcz@5uiZClPs+1vOVVtWNzHHLp9U zzya6yi+`a9b!EYKdq2+y?d)vOe0izh@R(g`TCm=GKf781w5iiar}l8J zszz2=jqAxei7{UiKOBNALJwHRe}%{1&x`6TT2xW*aJ7Wm4Pv?$u7A!UckT6%xD z_%QvXYpp~jSr&zQ{+KTOwGl`C$U{zTo2U$F zNYU96458)Mq`isNv(C-k?zYG&Ojhl5UB|HXTWlx|JuL>>uwaZ!c<+3$22#k#bt@iy zRa~KTEM`ePth@31gLuh(vC@xW9n(t=Y1c5~;^Vw_+m_qWk(;~_slGScx8pKm!k&oV zD=esGq5i6$Unx3*14oA8=5psdDVA@aEKozW|0fAOQ@Ci))})lt$33o%-<>&J-}LEm zW2S2bF1N25H#r)@*fs39{Db&;1W=23uK;Fu#g~;nX$rs9ahGWw=U?ea_R}AKZFhWO zRx*Cf*k6ClSo*5m!xH;Eruu#<&G~K_5OM@&VVtw+vo8l5i=)IQKUV~6vu6xD?l&!{ zakE=M6$ii#d+XRn2kshDq#*s+`(-W<0MoHF^+qF>N(Vsl9u9aqA z`~mIxH@ipw=YfVoL!+>W>kNig1g(59WIt*@JJ``X}v5I_koaT^=Ax+C|rh zLsjJ(k;za*;30Xm#>3at7JZAaim-gI_us@gzpEgBobvJEMD0QEa8AT;*rzMKX}+0kE;AD*kJ;%LbTKK_~)L{uBlTxO?NE zWct&Z*J8ED!=T|{p)rC9>zHoN!cVrjt1BXvacM0ybDL)^Uv)l7y#2VE#lfgcv z2WD;AaHh1rGWN5f&S&#jzxuHob2U%TSuHd2Q$o0ZA}#WOdfCykPvBlIn}-;l z^|l;p4(V+ne2%#kbfN0qFl8f7#X%qiDQpAxI&K!5<8@G|7bPK1`tx{BlHU`!*iU81 zc)Y_^S^MkwV>WlW+89o^+eSZLI5zO7GPI{{TM(V{b;X3x{mI)g(G%~PVR*=F`=n`N zOTrrR^_g|#O%Eyot6hiIK<#-q|1mgr5%;6?{BQq`4*v--G{34!X4V_*18m2uhQBa< z;qiu3Dyv&e)&k9lJX}^Samagw%ez2ktQb;iE5_ ziPvCWb*{CTlJ|b3n7xlWu)e)^3AG(*eX`VRIE}Y2jP2)8l?NRbq+b~=BMq!!x}BaS ztO$111ljCUjFI0rMSY~U^}Z?-1gtT6ZPiii{4YcgwalR3x?clG-u&4^OD*u`o@2lE zpXUWG!~r?jFpP*=U5kLqc^B;E0U87&Q8_PurFx}Qb3}ghb$DZxD*{T$l#bT4y5|(B zYh%z(Jm{dL=~6gE z|1_prkuY#`!%KfzE7>@*$#{-<##d`YKYo*zW>a&-mhLjmCAmM3ofi6nQ@&-g28u|F z*d>V2Yc_G1!u-B_HTugNc)`eztJysHV(T)XV!hLT{$?nk*#wFqMW6ez`X04Xu!cozg@&WQ}*}_0PIoW~Lga*hJ z*syYl9yGJWCmNmx^Guk3iB`l_kJ7^v1$%TFUQe&O0T5}rr}~Rtr3D^r>9UEl3lv#m z)tZ0DM#M@SP(E6hZ)WDXhR#(jbj4TC4J^=f0(x*g5BAERQ4Hpz=1v}Z@q1VUg~t_mT2Z5qj5dbww+|&yuaNDu-e<);*WA z5bFQ>2hA`;kP?{j;;heC0>W48mrjeEU=ZqYW4iP+*+2*S$MOx#Qy%%PI1^=RYc_Bb z{aUhi-HE^Y47EUho5)bN1$(>Ux+QXn$ioOno4FWW&DfC;0&?!eD-7ev_kf3-r{|wt zKl0aIG%WsxL2t|5-fLT(N%XBw7kKV^(^acGIuxmQZ0ZQPptf|J!m!8%y1BN0IM^8i zz;p-7CzlU;AwWbF!1hX`t2a%sEEprQ&+Dz$L>KG_m!XuNM+A;0V zTF|f3Gt`O8lzE$$j{DE&bDAINVs)-rw&2>uPX{C+30vOpf1+@En9g3Q&+0D^72LrYZXz7{s~22zQGwfY(DGsUO~xUD+opQZ3Oh*bNjg)^4-|6kr7s;4sBO z;U+v<4?Sd9<6BNhDfV*M$?qjt?Q6yRhlI-%iojipB>b~A*IXi>%=~tP)n>k8&qX(X{1dSX@M*gO;YU*<&G0cnM zI3c~T&Fc2bGc{py7z=n)pcKp$Exuk$!>U@xrlWUoaPj;SD#iVu6@Nq$Yr9T7-?4lo zgv7M421|D+oQD>}2-CcS5MATn@lv8~`q*b}opr5SR6fUnqcS??@3(;oSBR6NM=DdO za$=W7MYyw}@GFRoDQbNEMY`(wJw)xk(-&!zCy1vtBCk5i*hu$mcFQb2hsm^!$?@@!s{%a9bNcgH9;hZVH|$QiFcR}e4D>(v`473OOR^SF(s8i z2gDjEPOJ;%IgicJ4k^V*3J5WVBt_(&zBLCb2&=v`!d-h(Y7N*!LJ3hc137)C5YC3a9U~0Aa zZan5rr4V2@Vb!vfU#S$0C<`6jijc}>kHDF>=HH2HO)aW(LEYj(U#$LZkfF{sF8;)E zIIUqLdG9Bha^LtIP#|TIcKXM&7nR$JzF%PHtnin~P|IwYNUHKUqt3LJyf;2GHt%g^bOfvLy8SvC5uBV04ADNOFaiblp>ltx~}zE%4@cS;Nd+~P&?B+m+c2B8fQGrexNvx{?GS>p||YeK^IXX89t5i3pvvaUIhZ45&||#{4;2G z{VS*-6DNmyFa2U%7fy&cx(-FQ*$Z~63R3N;T?H-$wZ?&O4V=pV@Rj%3KQX;5_*(H; z?q+7GKD|qa2eBfwd|;t=h`3`cc=8nez<5%n@$OU9^2K_aHASKx_KhLad*+Sy3s$yk zPDR*PeaNUFdTR}Bd-Bg`haBqM*-V$^z}`N|J`kbVGn&)n7G@^a>>I{33JwYrxIobo zUuxh(70`oyo6A6v5J?Br^E|Sjeq7GUd9_wT>HXl07Xx}s|)KRIZG$=LDAkw;F??rN_ zpP95u&!S=ACOPm>GcBm?W7v4SSwQgtkQyU1p@=nqS$@lwcYee*Jv;I(lg;b@HJd!z zBgIkc$762KqNkR`o;tjai94QjDsDM!A#A!`Z%wP|g3{XbT{=eR`_1_i2f{FH&qfa< zRNW(k>nutQe_wnHommO@yM7Dh2sc87c>JjGVT??+d|n_4dfL`ZoGUBAF89TB+lYs2 zi${;e1+VdC_j92+u~CF7{^W^Eskbl5@-(mB+@bkRY**j$VWsnvRCcw3L($C;G*8Uz zmukfxYKidHC>v&Mq9>WQ_&b#NludAPYr8G=TCR_Mj(KBeUKPp!7f!*h6O#rG)OV)E zI1hd#ET@gS1-{c4K;?q_I!pC58+o^ zaZ<*Yfup`2yFO9;l+>bUWQ)@+^!N_)?&M|2bk2^R{X#tx|FQh>vAEOr~ENfivS8g){pPaTdp5{ML?=h18yrlGb$)b z(?*_9UqG!0WY7wc+z3os;LAWFiL*;>g%g*Vsior=j`)aFUcR{~O)(a_lGF1D8h&4$xj+s*_{@0xyPmV1?Nq<)v z7D|a|54@A90)huN+;diVIC&HgYdLVOmP|TzZn8`$$QYu1CzL5$mawpu&4O27{VuJE z`QFkIp|$18vKLZaEC5p3$fv-Vv9hvD`dR>F^4!D<+|wQ6VfYGy=ICvJXVtL(kcjON z5ED~y6XObkjgP(cUwkgRxq*=h`n<#G)~)5UD{_Y3GwkXnr&2MGm#LlynLQgD-*~<3 z55FrdX)pMw_hGlYG}ouI|Dciz2PW!mm!uj8zhYiI?HRn!pDeSSwG1Me0nZJy?#;PZ%5Ppl*9HQvhfPjpcP}mTC73zr5G$j)^+47(~AH zpC-I0oNQB6ykq?NyfQ)an~0hH?>MYyyu0K9nc2GLb;v(sWnAWNT}6#uKSC8ZO=>7f0AvSfIkwpOwrEe>EvPH?98E$|yC~ z{TO{v347u8r5qEzVZW!gfY9u`L))};YP_dsQEpnmb_oahFWr(!_8(#e6n*MiCX zj?=-u2D;*l3agH3Ll;V~P-}`>M&h{-Yg{G?+`(aLFf*E)nEU1?CF-zZ=Sr^AdyQ5X zapc^k`nOR&77VTDzkdeTn~apdKWzT6Jm?tdm8!bbLn_FE<|*q0S#C5fc-4vAiV11t zqO3s9Ralo5$RPzFEodVlJOca-pWaUBgP-GRc_0X&_Q+tK2g{R-3rTJL(4OXD#G}UI zQ6OF=L-lI}e)Z!GjO6b0qs>bp4%@+TZcnmS3$N5mm!=(h=>4{LOty~npj>kFVVilq zM_Zs3;}7kW=sq@~MY>+pc)#!Vc}I=t z&V=ExKTqQjp(+~CT0d!$cjK0iSer^eEQz0o0(wcSDAja|UYm59ES5CR2z(wTPK`H} zD?5JX&4)DvB8@oA;jg>9_+28N9!TL-$zn${Xxf}yU8TKe5uhg^;98i{$%c00n(IZf zryX&JBeYhec*zwGNjtrG*MWKbgBHG~)>#p4F}jNwSL)d`l|nXOZ*zpsm5vrzm-I@W zQIrl8i0HHB0@04#>-nDMX>FuxEVx`2IjomPZM$3co@P!iGfVO{;^YQR2BWfKY%Tsl zt(g^L%$kd}4_uBm}DU9*>GzHv7tk}$B z+2Ztlq&{Qq)s34mgNx$lffPrW+$3wwCfJ|jr=1ooTm~E@+vO`Hj`}KW(2GVCWgqJI ze<74dSJX>p>57s{uiAc2Q#@yK7YM%}?B}@ZaV~YCz;_a6;ydk%=UZ+Xa$0s?PHjXHcv{}N)mLxP z$t#e(WnrsNIV1Z?Z!t%t1DcGKL(*IpJREcFGv!H1$EW_f;;#ZIUYgBV*k}EoLO2}R zw_aZE?9$gO@EsANhSGafaTyxCrTDKq^P?d7oJtj{}`+yZyrlli+kfO73 zNONsq=}|#K6;SpDgyN(khpOE23S6~t*+gCR_)|G+b5^*#C3AftfS#?@rz^Z!xnUDg zb`M<~o6a#6tv_&+MhMa0ek^NdoaaR)aXa#JhQx^o*8zA_@JF}goqQE+-DZ~cQ6rQ_ zfZdMlsA8ABW+|O+*lU$3i{cCW!di+-F4lLVJ;mh{TQ;v9l(r<~MdJ?iv)_dT2eLHH znMC8#Ae)-55^OrA2GEA9_vo9SQJFp&Iu`7MIMF|Df2qs^FAn9r+cQE$HOv)()tme8 z=%^+*P@j@>wH{E+#1bV45Tu4FH1tPEYJs)A6C5GFv#a}iOQq&Q<)jynrFZRX`1{D% zBd27Y+Zu`kf`As58#o)>-1g~TNV2_IlV4%A6ij@J$u1sq+kDo{_M#unwcuWn{SR>Y zM!q11zP*IP;h9q$*dWHNm<_zWquCJ<#s843g8DZIrKiXQ$s$@FZH?kB^xtTmX!sq&D?+Y^M}Y&UMUNV58L-lMXuT_ zSg-x4>i3SRC+F8v$d_Cf9Ztf!>oKtN89wJ;$d?}qHxu=6Uf*;s+xGAv<5laHeWdq9 z?x-Ct@e=d%X++1J3>Tj?BKOH8W*K7e>zwbKuXY3AUl4!Y`%mSv$ul>acB8lrTz zaS;@hHTNpF{EaqYd}4dz*O|>z3<%~~yd&rO&yU8M796WwXH~hr(B6LYX>tJ1e|2ct zH*4RYwCkE?n+q7w{ePj2WHv-JF1xxB-;fjBjEtqX_h$seu0t047uSysq~`hlj0}H4 zPGtorRR1+vd=xvDCenXZF>zuVcqbOc;Pv^Q$&Uiqg3w#Hmm2E0W;a|``nJTjyTtIIT-Q^19o}O6kc$yp=EynTrg(&jN z)SowrJDVRt?=|WE_9rS#H;pqty^K5>#yM!1VAU^=`F+0qu|9qKDO8b%^tCO@+QWje z_G?sx_!xhb9EP?tWOM(QT|8QnUBU-09~}RiDG0K418wA$ifhI@i-eI`W@b%Aa}poK zNx2YO6a(oBJF@Un+*9&K%}JA!X&J6A2sd?+K%KyUlNVmi|Pj)1-7v zqoEhYnL=II2hQCqW6vX!hY*-Ar4T#^_2d#8V}R_*^kM9ODS#?G#1Ggvz_p0nbvw1Z zJpeC0oG~QS!#bGFovQ_wIFQ7XCOshAyeQn_1SrGa5c6ZB!SPu=z*!+n7V0Xli5rIF@#jx4n zk^jJ@;GUvkKTmD=I!_%Tz$%_LvSIJZ>?$GR!|TrVd(Cna%GnR9&5+Es?Eb?M+Mk|6 zR=FjZj!y0P&%vqMr0H@w#k%Z@Y^~Lp3Km^0?s*?o2G>XI0;bQenLYwRp+-UA7i^|2 z-l9DJ`=&~Y&7tk4)`?x9Ul?P zGQ~}92(%1LV!=oMn{|W`fPtWHz!E{bs=ho_iSim0B+L(kpcIdF6D`7(Xi*7=fc4al zIL#?9=Q?h$g*)Pl)<=KG3y<%T9Npu2$zu^O!WaPnBzS-v%0)j9O)!!Kj(eIlJ&w>! zQ1R*~#$Lgqi6x zrND)~Yxc^^Ri9hlq&u$reGl2T5~*KRoQrLUN!wbQgg@u`bP@WW8(X0@WQI5PTnJm^ zqJToyP+r``Vhkz418q$P&}I!}vgFt6lp*O_g_8y^bXY@v*LzqeJI%KMvi?z`7jlEUqM(9x!^S3%{-q6QI+Ja>pnG=g=IvATd3fhbl~M@TQ{Ihxpa9?8i`OK?y+Pq zi?0H7*7TEk5(W7dioothnUCG(T9QI24y8c)45q=5Vjw7Ra_2#%^q+Jsubh(t9cBzQ zSWAgUj)bWPOn{)~j}Ree&}c(=MQ3k9Xxp0*GR|fRWtbLb7>oVN@xTzq?R?{ArZ zsKVX_J|C~>nHnE%~*$1u7= zZJKHtfa9h>>AkkgBf|I1$$X{jYoB<@$-ko?N;YvffhCQm<`hE_w7<$z&d-^}A6;Nh z9jQLwzreI9Gn0bVPP>X-oLxb_-S`0Wva469dt$9BjaC-w*iUq}wUO)$!X;0i1%_6~ z7rdILra_@@u-$0%XWrpjMl|?%x^g2D8g^v|gW=vHLUUJSlNV#1WRru!`s^zofoy-B zdHv~Jl8oH@@}Xocn$dnS`{d0qLv0LqVi9H1vQ{IQfgl9l#B{p9z}mQkYL5beRGOf| zdn-@VabsMVUrq&8_&QClr*wv=v(pGjDc1%tq8rp|$9Nd;uoYXU6@-IkdN2+Ntym@r z7L25){CXGa9AH#2l>c);SkU2q19&uE7f5k%+#1|dzmQ;fT~DLLox2K01KKE{mZO~m z7MrKs~9069YDR!zsP`CjB^}^MV?6z%J6?(I?`^? zxFp|Tx8lm?{QW51h?`n8qS(Lb{XO%}H6KpI9zvO>u+55^&ARn(M?MUgWONp>6p5OP zK2gsD>`N>$Ze)sk4yYxy8WHFt)B;3sL6QhGrbnHcHT_1^C{9hoiI3#6B+bLq(*E57 zEvnmpLD+}UQJBj0GL*o-U0;0l2kNqxVC(2oe@h>^8lI^#A?{mEFhtkg(C z(z|QKISL6%mt+VwxIGHUDL}TN?O4>dfWgJN&H`%Hp>%D_x1#oJ zbn~nUjhBX;q{Hs0&Rs{xK>$LfiGmi zor#w7{;yg$IHO^bZizJ6Q??(Z+6^;e$42T|u$Z`1?@?r3zIpA2uaTb)7=u7kvMZ-& zryCXBE5DN^Oz@(IaRU4_kh;XZOOiN2QJ2gyO$os;(T4mFwPT?y)BJBBPM_ySM`*4^ zPAtm3=`IBQ`5>kNJck#~DPEGfNNKRK*(GVy2e#kG&@KEsf$FEqP9v`brAJU=%y8ml zW-R)Z0QMSpzXCKCo3T2qivmcVJNSHXJtjY~lm_<;WV?|FhDzk5iU*|vk*<@5C5S<% z!B|3l6}TWT4kxVv$wPCcf@J6Qj*QQ328@j+w8o^?kbuy_chKDBpK~1>O1_@sG>{C= zOn0A!yW8<5bDdkRccUKk$x<&=>fGH_=~h`NthRT+njIeuo^B7hpa1e9)8<2HLjsUF z#2+l`iKS#*#9h4Of_rnxkaM1VIzvjmF7cY4#Qj#_s=RYibrH~hyw&aZ2Wt$m%QLng zaK_ACV*1|7ZrWl|q40)feY$tZ46DyS(=Gg;b4fV7qv$|ul z@XGXvwyqb~bF|O>?0Bcei{ZL*gkSCOm=pEVIswf;s1JqY8kvEP@&#JH*riDe-XE*K&()W!pedpXy(G|_Fb z`N}((Ds8l)ygUyVf<(FDh@rIMKcr(yI7cr7!w{trPKmSl* zDu0VrEia$?8++*G*TA3`me>op`{fuhLqe`~?veMHV>tw5Q~DUU`ru%bGvpuxSF!5@Ws{AkByvfv+oKFBXTd@Y`6Z91=+Io@ zEWmIU$VRv?UC8?p8bhz}Cil!~>1p8_JSZF7S||y`kc2ubDC>~-M?>haC(_IDf{f69 z%32FHn;`ivb}=HS=kSu&36@tCsdo@_pj-A+3ABP6K?sPqAkb5iahiV&ZzhE)ygiz} z(!hQ3J)`s0@R}}g3#>p-EEeie)v+la2%;Pf_excIRp5XNTDzJIW;_|h7M&vu81nN~ ziRD~lL9!0er&^0a5azQ5!U-jIu0GIPAwujZ&G{dW@D|`gC`m|TbsD6in z;_JU!b#`9IKivN5No(J1M(CE~`YziJP!FJ_*qaY0g@%WkPU)8zAHdDg9(HC|FuzT- z=nl=Ea_G5istYg4J?GbBF}`ixKghq{?j^Ym$|r<-ia&{}$}ZOmF13rk&Co|+F+|%h zzcH)hA~vN^LIgUv3$RiTWc5QP8r(un2B0u(fgCPz+6Y3HM@U8wf^G(CXOF3bUky3y zBW;cQy=Y}+q%f6=bHFz#(UmWMNVlOl8<8wVQlu>C^JHD`&Bs(%jjWik#C z>poZIKdWG(z>XyhoZV<`AuQoN=qOL_t zH0?DTRJIdaY5X_v-d?ok{_lxG5a62mC|JevcNjBFe^-Puc9~r2PY?l+2B8F0FHwb5 zs?tsu6N?xlgHbuHGGNN#_ZogKgU_R@&hRyG)SIJQ18|y3+_G8$M^u^KFv$hc zv152E0HeD!8eJ-cm;k2z8DRU>K(fC}!&yH`3yXzQaZV1Dz=8WgMX7mNF%C*cyN=2r z7cUkbql9F_=-FfHBBMjZm38^? zF?Rf1E|9C+QB&o}ov`K9-S}W`^Y5L|xm-ph*>6%BogiPghXU>RtbxI_}kC#y%%?07vWgm@pn{6+CL*t6xa1b1sTI3q8LDh(U_CzvXNa zZqm8)CgK`U;VDQ8%78yD+GF%5xz~5VS*m;GTYJ=EglGBKw*FpHc;wH?VT>FnPOuva zFxry0I|`A?Kd)0&9Qq9@zj5xJB$Y&>KwQxe!9+f!VL1O_`lqn>hG8d*e~fu;bev&H z#t%H}gPHa<&6R@cv0`|h)+lpJ$&N>fQX=eDLV4X2&ozc7a(+Uxv2ZM*>!+xa;yKmk ze=*`>{HLJTEnKH<*$;RCHb-R>B6L4#TGFeYe=ZS8^+Jg2Z3-;qg(PY_;@iD<2%Vr`-W8O`Zw}na z2-{lo&$GktHr5=s+0%Yhu!hHuDl}?l+uE%^8kH`6(V2CSfr9||BvQdszkLkL+uNOd z{T~8=c~KcYvh-#1EVeKAunXpBL$8ervOBpZFou2lkB(gD;jad&&D3Z+7VWIk15TF}5UME|gF_3y z@nK)jj5qZzkjuT&fpLPN1k&&+0QhV)4iVsE-I0{oI3}pBjOQ%Q?Ob>WT$J?!6Bwbf z8ognB<@XHFUYMZS-6kFce~|1yuX-FPyV!Gq+_o-2HW({6^=^au)tintAA$CMF_zR% z=C|ESFP(qS_%X*tkGpp#+4EG~*zrPf(sWFp5&vJu%<;QVxoMs!tJ+MYvA6I@`STXy z3%u+q!4|5bl8*;dY;g+ip9_Y zMUm!?tpSI&qD))Ci@>PB&74bETp-_V;H{GG-uUclLb)RUllP@PUrf$c__+@kut*=xxUKogzsEXV)_hJg zZZh@@WJhKiq0XY4yJGT=Gs@+^ex7RBDE1;u(V6F&uT9&rgz8|EH30}ot(Ehmasl~? zm_DvF9Vh4tdBFn^s%by(uAr;4cycxR&~7Z40 z=Ve;xHp=8Az4>3s@)YCazyqKBurA6_mUha0>z> z)VBu(J48?DVb8R`%4ocP%knH*7}@WC<>yc&c+*=li^9X)Nr+jQI9}bb0WpMIV5e)V zVEdEX@{#@7LhH~GxNJImJn>qlG%Pt}gVk%?i3lG90M@ZWPZyDK8<R?1lp`z zI_YpoR}QY(KDeSy$KO%3w!fp}=Gkd_m*4h-L9`s&y>gK!9A*P`>p>@|xa@c{Y!}g2 zQTw1TgZ19?*kof5Tv*`gKYPUZP$oD17N_~Rl_*5185E|6Lc;uvA4jH)_}^S=5ME>q z7C*lE`UfenwqUI(=QqeBKft7~cglw$v>BVKE&Ld{zvXHE&Z(T}KMN3qJOH6^!M~>? zBLV6n{MQr2!-yt?+a6)VZ4Pcg|FJe#qvp;Y>Uy4=Q}*_>*zB8daMR9$P&d5sCAZ`u z(ym1Go#he#?VD@@!9f{K85XFSx@JRzWgfcvys;XTYjoJ0-Z3XEaYtVB{|kYiF67Zq zqSXWj3MLeIa^XxG_Gw8X3PM!WPvh2Q5>_cC3NWqz$`B`D?*N({`g)RpRyXkn4bDOnwGg71utL{|f6&k$QS z+odUIz7Dk1_7mCPNo><8ng3*z3LbGr?g%wKR?ry{u6r^=(ggxO%arGLxUGC`RZqMd zU(&7?Lv4w_&UT+q+E6@{Q*nzip8;T-}szIZOCuUYI}am+Z-SK z204U*^p`MRmG9_MTU!_G6XwaBvioTYD<1oGo7Tp+150!!A-i{a_u0l8a51ItH|Rm8 zDf+6^n9esevZEH!4eysbZ7vd{OxCkxTmEX-V~?NzOB5WzZ#Sg&H-64vxn91@2(6jd zk;&dm1n_9@rsc zf`pcal_hseZYQF^PTF7JI%6wWCAwyO@N%GLCuVru1D&rwT6r#c!AD(klbr}*nyKdv z?E%qdVYaPcC{Abt+;lMOlp1gi37Rc#X*k(-Y~>{0NolmIT7IoPld|y<<3=iHeBZs8 z8qzi`&0y@WA%Y6Q0|nU?4uF|U5*Ze_Gm8`qZ`?rDfsSZ^c+`(=mW|grYPZ3zW>~R` zm~xdy12PV!0@+q>E{NAS*>)l^hV66+=sQDe3vXSJt+YPSN!oARQ)u+p|ur-!cZdLM0cS)?(;=2&uaH zO=RJ&VA_WUUa8ciarBXzMj#eWJeJBt!MhU0aaBPJ6HHU*#o&g&2_q~3LKihQT1mh@ zQPdO@=2-;QLY_+CrXwAa=(e1uqzE+p5P)L23OzYBuw~eJwOOrs)S_#CqNz~3?0uNQ z)TylqWer07|JUe&QOdqtt-i7%D3Me=71s4XwuO>g;N)gzW0H@B>3p-^UJKLJ9a_xR ziBp~x4R1>yo34hW4X*tLnV(@+XLZaTG98bJvQT9O<6&rdWHbmE=hgyK+T2nspr_IQ zD=U^!ootf0>8o{J?wMT5e`OEoWgz>gfUMAX>&^q0eo;?vb8|?t@>~@H$3&ho8?pg_ za)Lim@`%q^qooE8KKT4NCHRNF#?8$(uWCq}OuNI1y>%Q;FXRMi7#+0RWZ+Ixf<5GG zi|W<@)_k&oOSg;YJWU&l0(XO*e{S zeH3a{XW-x}T`o}p`8*ri8AM;wO>3ySO0y@zpqd1^Nz)*Zz%ZeRX$j%=?hBPtlNg#s~2GXChMWb}c<+i-r*Q$y=B-q=3 z&V%llM_FDZ&XOwYui|8=JT7H-6EGiLng4}Onno4VCQ|jro8rapz zN6@MrC2MD^@2<<8SFzc7r9VhpmY%tD16$Uq-kkP&dp+EF&%7GN1! zrV0C%*b+suZ{2P%&A?SdTg@f__#*++0C8zCB zz$5Gh{f?jj#GaJ7#%iYn1rCzCM(ISkWVTj)L1qvlN-hAll?TzVsMOMj-jx@)(GmgQ9tLXpi|&7hfe)nV1{DK2{-QWEai3QQCLLmf!)P&jn- zdp8+mv%eTywHCJA*kr3NegD^;&r*V6u!$BSfBXifo8wM37QKw9I~D|RKmyo}dQ+22 zjE_@i*=9v?yF42Am@I~rVtgB#M%AR}x5vdRVJUCEBD??qLy^6ExT*rNKUsgGR(~lW z(HoE&f1(UNJBd6n`rQ&2DzQi# zc(HuI$kDu3MOFJeTu_SBwr&@da{XONkQ9MrE|1`XWu9^pJ6QEC`j!P-Rcfm8;u)on zl_X*nZvw1Cut0T`(S>~|!;KRjk~>D16-neOBi2Q|bpX;rxU9T7*ANSYo9qQI`!Gr2 ziPQ5M*7FhXremq7>;esTO3d2^OGbs`EJ^u!dc&anPDhupA*sV3PZ1SeW3=KN^bp!A z5?%15%onZz_L>4c#&V-wbg7PiD+3AC@|@`6W8$#_fzzN~ z{MH9Ma~OGpODDBah{vB$2Sklko(xjN0PQMXoadc=Jjab>&{`LxQ?^c21xiSO10$0`}-#$7s&gha9O_`Z7tG|J2kfZ=^0!BTyYpOGzpz3F97_vBXg=0R{c{^2v*NeIQWPH}HOF9Xus3@sddsAe7 zr1OZX+YOB0`Lx}6LhoEHIy~TTZ`GsD{k~zy9EX}K=laDy`;c}EGo`pHakt<&7CF|( z&;X&0g|31<5r=?;?lKv$Iawo{FL?6kN1QJ%OSdlWwR(JZFKC<+;E1;cxyo5t>}aGI zk>C;#8-l~o`iI>{WAHLsZ6+8Tt<8;ag=zOH~9{MK4<8yt=5hFmg7ZM*p~0CECY|J+K( zJ*c@sxPR*0PkI?i<;N#=@ZtHH*1F<@QA|urHTW)v=T7wBz63fuCg552JM=pH8qe zYPcHFWl6-C1>Aft_PsN z3$CJc&oJ$X*v?>Vl_g2(AB~Z0Qu5lETTZK>g0FNBHQ$C(G8FJmH-L8J0Wb=*b<`)) zDai-<#vKc|r!iL5+)Hp>3{lPA)4}E`0SMjf6N;JWNjP{Ts=E;cWV1u3=-uj)W!xf8 z?+o_WS&?etSOY}2+$^G03I0CXNS8KfM})6?o2su$ohU=bTH?GgPwB1u?^)mB=7(EI ze+-JR5+efSCpx=7?Tbx}|K<>C-yzsB5hVXKO^tc}{Uz%YP1PDc>qgP2_NFfc8z3r6 z4f>Xj6o!1=9sO~EGHAISUE(U$_xnUU5`EAlUk!BIRNhzoXFmO2yAa<$ebmdwn)|qW zjvEUI&wS-Hp*o \ No newline at end of file diff --git a/dist/js/app.js b/dist/js/app.js index a00f7c57..c63bde65 100644 --- a/dist/js/app.js +++ b/dist/js/app.js @@ -1 +1 @@ -(function(e){function t(t){for(var i,a,l=t[0],c=t[1],d=t[2],s=0,u=[];s>>0,this.mti=1;this.mti>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},o.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_genrand(5489),n=0;n>>1^t[1&e];for(;n>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};const r=(e,t,n,i,a,o=0,l=0)=>{let c=!1;if(n&&(c=n(e,t,a,o,l)),!c&&e.children&&e.children.length>0){let t=o+1;e.children.forEach((a,o)=>{r(a,e,n,i,!1,t,o)})}i&&i(e,t,a,o,l)},l=(e,t)=>{let n=[e],i=!1;"stop"===t(e,null)&&(i=!0);while(n.length){if(i)break;let e=n.shift();e.children&&e.children.length&&e.children.forEach(a=>{i||(n.push(a),"stop"===t(a,e)&&(i=!0))})}},c=(e,t,n,i)=>{let a=[],o=e/t,r=n/i;return a=o>r?[o*i,i]:[n,n/o],a},d=(e,t,n,i)=>{let a=e/t,o=[];if(n&&i)if(e<=n&&t<=i)o=[e,t];else{let e=n/i;o=a>e?[a*i,i]:[n,n/a]}else n?o=e<=n?[e,t]:[n,n/a]:i&&(o=t<=i?[e,t]:[a*i,i]);return o},s=e=>{e=e.replace(/
/gim,"\n");let t=document.createElement("div");return t.innerHTML=e,e=t.textContent,e},u=e=>{try{return JSON.parse(JSON.stringify(e))}catch(t){return null}},h=(e,t,n=!1)=>(e.data=u(t.data),n&&(e.data.isActive=!1,e.data.generalization&&(e.data.generalization.isActive=!1)),e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,i)=>{e.children[i]=h({},t,n)}),e),p=(e,t,n=!1,i=!0)=>(e.data=u(t.nodeData?t.nodeData.data:t.data),i?delete e.data.uid:e.data.uid||(e.data.uid=L()),n&&(e.data.isActive=!1),e.children=[],t.children&&t.children.length>0?t.children.forEach((t,a)=>{e.children[a]=p({},t,n,i)}):t.nodeData&&t.nodeData.children&&t.nodeData.children.length>0&&t.nodeData.children.forEach((t,a)=>{e.children[a]=p({},t,n,i)}),e),m=e=>new Promise((t,n)=>{const i=new Image;i.setAttribute("crossOrigin","anonymous"),i.onload=()=>{try{let e=document.createElement("canvas");e.width=i.width,e.height=i.height;let n=e.getContext("2d");n.drawImage(i,0,0,i.width,i.height),t(e.toDataURL())}catch(e){n(e)}},i.onerror=e=>{n(e)},i.src=e}),f=e=>{if(!/^data:/.test(e))return e;let[t,n]=e.split(","),i=/^data:[^/]+\/([^;]+);/.exec(t),a=i[1];return{type:a,base64:n}},g=(e,t)=>{let n=document.createElement("a");n.href=e,n.download=t,n.click()},v=(e,t=300,n)=>{let i=null;return(...a)=>{i||(i=setTimeout(()=>{e.call(n,...a),i=null},t))}},T=(e,t=(()=>{}))=>{let n=0,i=e.length;if(i<=0)return t();let a=()=>{n>=i?t():(e[n](),setTimeout(()=>{n++,a()},0))};a()},k=e=>e*(Math.PI/180),x=e=>e.replace(/([a-z])([A-Z])/g,(...e)=>e[1]+"-"+e[2].toLowerCase());let b=null;const A=(e,{italic:t,bold:n,fontSize:i,fontFamily:a})=>{const o=y({italic:t,bold:n,fontSize:i,fontFamily:a});if(!b){const e=document.createElement("canvas");b=e.getContext("2d")}b.save(),b.font=o;const{width:r,actualBoundingBoxAscent:l,actualBoundingBoxDescent:c}=b.measureText(e);b.restore();const d=l+c;return{width:r,height:d}},y=({italic:e,bold:t,fontSize:n,fontFamily:i})=>`${e?"italic ":""} ${t?"bold ":""} ${n}px ${i} `,w=function(e,t){let n=!1,i=null,a=()=>{n=!1,t?e.call(t):e()};if("undefined"!==typeof MutationObserver){let e=1,t=new MutationObserver(a),n=document.createTextNode(e);t.observe(n,{characterData:!0}),i=function(){e=(e+1)%2,n.data=e}}else i=setTimeout;return function(){n||(n=!0,i(a,0))}},C=(e,t)=>{let n=e.elRect,{scaleX:i,scaleY:a,translateX:o,translateY:r}=e.draw.transform(),{left:l,top:c,width:d,height:s}=t,u=(l+d)*i+o,h=(c+s)*a+r;l=l*i+o,c=c*a+r;let p=0,m=0;return l<0&&(p=-l),u>n.width&&(p=-(u-n.width)),c<0&&(m=-c),h>n.height&&(m=-(h-n.height)),{isOuter:0!==p||0!==m,offsetLeft:p,offsetTop:m}};let O=null;const N=e=>(O||(O=document.createElement("div")),O.innerHTML=e,O.textContent),E=e=>new Promise((t,n)=>{let i=new FileReader;i.onload=e=>{t(e.target.result)},i.onerror=e=>{n(e)},i.readAsDataURL(e)});const I=e=>new Promise(t=>{let n=new Image;n.src=e,n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=()=>{t({width:0,height:0})}}),L=()=>Object(i["a"])(),S=e=>new Promise((t,n)=>{let i=new FileReader;i.readAsDataURL(e),i.onload=async e=>{let n=e.target.result,i=await I(n);t({url:n,size:i})},i.onerror=e=>{n(e)}}),R=e=>([[" "," "]].forEach(t=>{e=e.replaceAll(t[0],t[1])}),e),M=e=>Object.prototype.toString.call(e).slice(8,-1),_=e=>null===e||void 0===e||""===e,z=e=>e.replaceAll(/(<[^\s]+)\s+style=["'][^'"]+["']\s*(>)/g,"$1$2"),D=(e,t,n)=>{const i=new RegExp(`(<${t}[^>]*)(>[^<>]*)`,"g");return e.replaceAll(i,`$1 style="${n}"$2`)};let F=null;const P=e=>{F||(F=document.createElement("div")),F.innerHTML=e;for(let t=F.childNodes,n=t.length;n--;)if(1==t[n].nodeType)return!0;return!1};let B=null;const U=(e,t,n)=>{B||(B=document.createElement("div")),B.innerHTML=e;let i=e=>{let a=e.childNodes;a.forEach(a=>{1===a.nodeType?i(a):3===a.nodeType&&e.replaceChild(document.createTextNode(a.nodeValue.replaceAll(t,n)),a)})};return i(B),B.innerHTML},j=e=>(e=String(e).replaceAll(/\s+/g,""),["#fff","#ffffff","#FFF","#FFFFFF","rgb(255,255,255)"].includes(e)||/rgba\(255,255,255,[^)]+\)/.test(e)),H=e=>(e=String(e).replaceAll(/\s+/g,""),["","transparent"].includes(e)||/rgba\(\d+,\d+,\d+,0\)/.test(e)),G=e=>{let{lineColor:t,root:n,second:i,node:a}=e,o=[t,n.fillColor,n.color,i.fillColor,i.color,a.fillColor,a.color,n.borderColor,i.borderColor,a.borderColor];for(let r=0;r{Y||(Y=document.createElement("div")),Y.innerHTML=e;const t=Y.childNodes;let n="";for(let i=0;i{W||(W=document.createElement("div")),W.innerHTML=e;const t=W.childNodes;let n=[],i="";for(let a=0;a`

${ce(e)}

`).join("")},K=(e,t)=>{const n={};return Object.keys(t).forEach(i=>{const a=e[i],o=t[i];if(M(a)===M(o)){if("Object"===M(a)){if(JSON.stringify(a)!==JSON.stringify(o))return void(n[i]=o)}else if(a!==o)return void(n[i]=o)}else n[i]=o}),n},Q=e=>!/^_/.test(e)&&!a["i"].includes(e),J=e=>e.reduce((e,t)=>{const n=e.find(e=>e.type===t.type);return n?t.list.forEach(e=>{const t=n.list.find(t=>t.name===e.name);t?t.icon=e.icon:n.list.push(e)}):e.push({...t}),e},[]),V=e=>{let t=[];return e.forEach(n=>{e.find(e=>e.uid!==n.uid&&e.isAncestor(n))||t.push(n)}),t},X=e=>{const t={},n={};e.forEach(e=>{const i=e.parent;if(i){const a=i.uid;n[a]=i;const o=e.getIndexInBrothers(),r={node:e,index:o};t[a]?t[a].find(e=>e.index===r.index)||t[a].push(r):t[a]=[r]}});const i=[];return Object.keys(t).forEach(e=>{if(t[e].length>1){const a=t[e].map(e=>e.index).sort((e,t)=>e-t);i.push({node:n[e],range:[a[0],a[a.length-1]]})}else i.push({node:t[e][0].node})}),i},q=(e,t,n,i,a,o,r,l)=>t>a&&o>e&&i>r&&l>n,ee=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),n.collapse(),t.removeAllRanges(),t.addRange(n)},te=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)},ne=(e,t={})=>{const n=e=>{e.forEach(e=>{e.data={...e.data,...t},e.children&&e.children.length>0&&n(e.children)})};return n(e),e},ie=(e,t=!1)=>{const n=e=>{e.forEach(e=>{e.data||(e.data={}),(t||_(e.data.uid))&&(e.data.uid=L()),e.children&&e.children.length>0&&n(e.children)})};return n(e),e},ae=e=>e?Array.isArray(e)?e:[e]:[],oe=e=>e.parent?e.parent.nodeData.children.findIndex(t=>t.data.uid===e.uid):0,re=(e,t)=>t.findIndex(t=>t.uid===e.uid),le=e=>{let t=0;for(let a=0;a([["&","&"],["<","<"],[">",">"]].forEach(t=>{e=e.replace(new RegExp(t[0],"g"),t[1])}),e),de=(e,t)=>{const n=M(e);if(n!==M(t))return!1;if("Object"===n){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let a=0;a{navigator.clipboard&&navigator.clipboard.writeText(JSON.stringify(e))},ue=async()=>{let e=null,t=null;if(navigator.clipboard){e=await navigator.clipboard.readText();const n=await navigator.clipboard.read();if(n&&n.length>0)for(const e of n)for(const n of e.types)if(/^image\//.test(n)){t=await e.getType(n);break}}return{text:e,img:t}},he=e=>{if(!e||!e.parent)return;const t=oe(e);-1!==t&&e.parent.nodeData.children.splice(t,1)},pe=e=>(a["j"].forEach(t=>{e=e.replaceAll(new RegExp(`<${t}([^>]*)>`,"g"),`<${t} $1 />`)}),e),me=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;nt.uid===e[n].uid))return!1;return!0}},2634:function(e,t,n){"use strict";n("177f")},"365c":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"c",(function(){return v}));var i=n("5848"),a=n("1e42"),o=n("2b0e");const r="SIMPLE_MIND_MAP_DATA",l="SIMPLE_MIND_MAP_LANG",c="SIMPLE_MIND_MAP_LOCAL_CONFIG";let d=null;const s=(e,t)=>(e.data=Object(a["ab"])(t.data),e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,n)=>{e.children[n]=s({},t)}),e),u=()=>{if(window.takeOverApp)return d=window.takeOverAppMethods.getMindMapData(),d;let e=localStorage.getItem(r);if(null===e)return Object(a["ab"])(i["a"]);try{return JSON.parse(e)}catch(t){return Object(a["ab"])(i["a"])}},h=e=>{try{let t=null;if(t=window.takeOverApp?d:u(),t.root=s({},e),window.takeOverApp)return d=t,void window.takeOverAppMethods.saveMindMapData(t);o["default"].prototype.$bus.$emit("write_local_file",t);let n=JSON.stringify(t);localStorage.setItem(r,n)}catch(t){console.log(t)}},p=e=>{try{let t=null;if(t=window.takeOverApp?d:u(),t={...t,...e},window.takeOverApp)return d=t,void window.takeOverAppMethods.saveMindMapData(t);o["default"].prototype.$bus.$emit("write_local_file",t);let n=JSON.stringify(t);localStorage.setItem(r,n)}catch(t){console.log(t)}},m=e=>{window.takeOverApp?window.takeOverAppMethods.saveLanguage(e):localStorage.setItem(l,e)},f=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLanguage()||"zh";let e=localStorage.getItem(l);return e||(m("zh"),"zh")},g=e=>{if(window.takeOverApp)return window.takeOverAppMethods.saveLocalConfig(e);localStorage.setItem(c,JSON.stringify(e))},v=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLocalConfig();let e=localStorage.getItem(c);return e?JSON.parse(e):null}},4013:function(e,t,n){"use strict";n.d(t,"k",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"j",(function(){return p}));const i=[{name:"默认",value:"default",dark:!1},{name:"暗色2",value:"dark2",dark:!0},{name:"天清绿",value:"skyGreen",dark:!1},{name:"脑图经典2",value:"classic2",dark:!1},{name:"脑图经典3",value:"classic3",dark:!1},{name:"经典绿",value:"classicGreen",dark:!1},{name:"经典蓝",value:"classicBlue",dark:!1},{name:"天空蓝",value:"blueSky",dark:!1},{name:"脑残粉",value:"brainImpairedPink",dark:!1},{name:"暗色",value:"dark",dark:!0},{name:"泥土黄",value:"earthYellow",dark:!1},{name:"清新绿",value:"freshGreen",dark:!1},{name:"清新红",value:"freshRed",dark:!1},{name:"浪漫紫",value:"romanticPurple",dark:!1},{name:"粉红葡萄",value:"pinkGrape",dark:!1},{name:"薄荷",value:"mint",dark:!1},{name:"金色vip",value:"gold",dark:!1},{name:"活力橙",value:"vitalityOrange",dark:!1},{name:"绿叶",value:"greenLeaf",dark:!1},{name:"脑图经典",value:"classic",dark:!0},{name:"脑图经典4",value:"classic4",dark:!1},{name:"小黄人",value:"minions",dark:!1},{name:"简约黑",value:"simpleBlack",dark:!1},{name:"课程绿",value:"courseGreen",dark:!1},{name:"咖啡",value:"coffee",dark:!1},{name:"红色精神",value:"redSpirit",dark:!1},{name:"黑色幽默",value:"blackHumour",dark:!0},{name:"深夜办公室",value:"lateNightOffice",dark:!0},{name:"黑金",value:"blackGold",dark:!0},{name:"牛油果",value:"avocado",dark:!1},{name:"秋天",value:"autumn",dark:!1},{name:"橙汁",value:"orangeJuice",dark:!0}],a={CHANGE_THEME:"changeTheme",CHANGE_LAYOUT:"changeLayout",SET_DATA:"setData",TRANSFORM_TO_NORMAL_NODE:"transformAllNodesToNormalNode",MODE:{READONLY:"readonly",EDIT:"edit"},LAYOUT:{LOGICAL_STRUCTURE:"logicalStructure",MIND_MAP:"mindMap",ORGANIZATION_STRUCTURE:"organizationStructure",CATALOG_ORGANIZATION:"catalogOrganization",TIMELINE:"timeline",TIMELINE2:"timeline2",FISHBONE:"fishbone",VERTICAL_TIMELINE:"verticalTimeline"},DIR:{UP:"up",LEFT:"left",DOWN:"down",RIGHT:"right"},KEY_DIR:{LEFT:"Left",UP:"Up",RIGHT:"Right",DOWN:"Down"},SHAPE:{RECTANGLE:"rectangle",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",ROUNDED_RECTANGLE:"roundedRectangle",OCTAGONAL_RECTANGLE:"octagonalRectangle",OUTER_TRIANGULAR_RECTANGLE:"outerTriangularRectangle",INNER_TRIANGULAR_RECTANGLE:"innerTriangularRectangle",ELLIPSE:"ellipse",CIRCLE:"circle"},MOUSE_WHEEL_ACTION:{ZOOM:"zoom",MOVE:"move"},INIT_ROOT_NODE_POSITION:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom",CENTER:"center"},LAYOUT_GROW_DIR:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"},PASTE_TYPE:{CLIP_BOARD:"clipBoard",CANVAS:"canvas"},SCROLL_BAR_DIR:{VERTICAL:"vertical",HORIZONTAL:"horizontal"},CREATE_NEW_NODE_BEHAVIOR:{DEFAULT:"default",NOT_ACTIVE:"notActive",ACTIVE_ONLY:"activeOnly"}},o={[a.INIT_ROOT_NODE_POSITION.LEFT]:0,[a.INIT_ROOT_NODE_POSITION.TOP]:0,[a.INIT_ROOT_NODE_POSITION.RIGHT]:1,[a.INIT_ROOT_NODE_POSITION.BOTTOM]:1,[a.INIT_ROOT_NODE_POSITION.CENTER]:.5},r=[{name:"逻辑结构图",value:a.LAYOUT.LOGICAL_STRUCTURE},{name:"思维导图",value:a.LAYOUT.MIND_MAP},{name:"组织结构图",value:a.LAYOUT.ORGANIZATION_STRUCTURE},{name:"目录组织图",value:a.LAYOUT.CATALOG_ORGANIZATION},{name:"时间轴",value:a.LAYOUT.TIMELINE},{name:"时间轴2",value:a.LAYOUT.TIMELINE2},{name:"竖向时间轴",value:a.LAYOUT.VERTICAL_TIMELINE},{name:"鱼骨图",value:a.LAYOUT.FISHBONE}],l=[a.LAYOUT.LOGICAL_STRUCTURE,a.LAYOUT.MIND_MAP,a.LAYOUT.CATALOG_ORGANIZATION,a.LAYOUT.ORGANIZATION_STRUCTURE,a.LAYOUT.TIMELINE,a.LAYOUT.TIMELINE2,a.LAYOUT.VERTICAL_TIMELINE,a.LAYOUT.FISHBONE],c=["text","image","imageTitle","imageSize","icon","tag","hyperlink","hyperlinkTitle","note","expand","isActive","generalization","richText","resetRichText","uid","activeStyle","associativeLineTargets","associativeLineTargetControlOffsets","associativeLinePoint","associativeLineText"],d={measureCustomNodeContentSizeEl:null,measureRichtextNodeTextSizeEl:null},s={READ_CLIPBOARD_ERROR:"read_clipboard_error",PARSE_PASTE_DATA_ERROR:"parse_paste_data_error",CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR:"custom_handle_clipboard_text_error",LOAD_CLIPBOARD_IMAGE_ERROR:"load_clipboard_image_error",BEFORE_TEXT_EDIT_ERROR:"before_text_edit_error",EXPORT_ERROR:"export_error"},u={width:592.28,height:841.89},h="\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:not(.smm-node-dragging):hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n",p=["img","br","hr","input","link","meta","area"]},"41cb":function(e,t,n){"use strict";n("14d9");var i=n("2b0e"),a=n("8c4f"),o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"docContainer"},[t("Header"),t("div",{staticClass:"content"},[t("Sidebar"),t("div",{ref:"doc",staticClass:"doc",attrs:{id:"doc"},on:{scroll:e.onScroll}},[t("router-view")],1),t("CatalogBar",{attrs:{scrollTop:e.scrollTop},on:{scroll:e.doScroll}})],1)],1)},r=[],l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"headerContainer"},[t("div",{staticClass:"left"},[t("div",{staticClass:"title",on:{click:e.toIndex}},[t("img",{attrs:{src:n("440d"),alt:""}}),e._v(" SimpleMindMap ")])]),t("div",{staticClass:"center"},[t("div",{staticClass:"btn",on:{click:e.toIndex}},[e._v(e._s(e.index))]),t("div",{staticClass:"btn",on:{click:e.toDemo}},[e._v(e._s(e.demoName))]),t("div",{staticClass:"btn",class:{active:"help"===e.docType},on:{click:e.toHelp}},[e._v(" "+e._s(e.helpDoc)+" ")]),t("div",{staticClass:"btn",class:{active:"doc"===e.docType},on:{click:e.toDev}},[e._v(" "+e._s(e.devDoc)+" ")]),"doc"===e.docType?t("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start"},on:{command:e.handleCommand}},[t("span",{staticClass:"translateBtn"},[e._v(" "+e._s(e.currentLangName)),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.otherLangList,(function(n){return t("el-dropdown-item",{key:n.path,attrs:{command:n.path}},[e._v(e._s(n.name))])})),1)],1):e._e(),e._m(0)],1),t("div",{staticClass:"right"})])},c=[function(){var e=this,t=e._self._c;return t("a",{attrs:{href:"https://github.com/wanglin2/mind-map",target:"_blank"}},[t("span",{staticClass:"iconfont icongithub"})])}],d=[{lang:"zh",children:[{path:"associativeLine",title:"AssociativeLine 插件"},{path:"batchExecution",title:"BatchExecution实例"},{path:"changelog",title:"Changelog"},{path:"command",title:"Command实例"},{path:"constructor",title:"构造函数"},{path:"course1",title:"基本使用"},{path:"course2",title:"操作节点内容"},{path:"course3",title:"插入/删除节点、前进回退"},{path:"course4",title:"设置节点样式"},{path:"course5",title:"设置基础样式"},{path:"course6",title:"显示水印"},{path:"course7",title:"开启节点自由拖拽"},{path:"course8",title:"开启节点富文本编辑"},{path:"course9",title:"修改鼠标滚轮的行为"},{path:"course10",title:"主题"},{path:"course11",title:"结构"},{path:"course12",title:"如何渲染一个大纲"},{path:"course13",title:"快捷键"},{path:"course14",title:"如何渲染一个小地图"},{path:"course15",title:"如何渲染一个右键菜单"},{path:"course16",title:"如何渲染富文本的悬浮工具栏"},{path:"course17",title:"导入和导出"},{path:"course18",title:"如何持久化数据"},{path:"course19",title:"插入和扩展节点图标"},{path:"course20",title:"如何自定义节点内容"},{path:"course21",title:"如何复制、剪切、粘贴"},{path:"course22",title:"如何实现搜索、替换"},{path:"course23",title:"如何渲染滚动条"},{path:"course24",title:"如何开发一个插件"},{path:"course25",title:"关于概要"},{path:"doExport",title:"Export 插件"},{path:"drag",title:"Drag插件"},{path:"introduction",title:"简介"},{path:"keyCommand",title:"KeyCommand实例"},{path:"keyboardNavigation",title:"KeyboardNavigation插件"},{path:"markdown",title:"Markdown解析"},{path:"miniMap",title:"MiniMap插件"},{path:"node",title:"Node实例"},{path:"render",title:"Render实例"},{path:"richText",title:"RichText插件"},{path:"select",title:"Select 插件 "},{path:"start",title:"开始"},{path:"translate",title:"贡献"},{path:"utils",title:"内置工具方法"},{path:"view",title:"View实例"},{path:"watermark",title:"Watermark插件"},{path:"xmind",title:"XMind解析"},{path:"deploy",title:"部署"},{path:"client",title:"客户端"},{path:"touchEvent",title:"TouchEvent插件"},{path:"nodeImgAdjust",title:"NodeImgAdjust插件"},{path:"search",title:"Search插件"},{path:"painter",title:"Painter插件"},{path:"painter",title:"Painter插件"},{path:"scrollbar",title:"Scrollbar插件"},{path:"formula",title:"Formula插件"},{path:"cooperate",title:"Cooperate插件"},{path:"help1",title:"概要/关联线"},{path:"help2",title:"客户端"},{path:"help3",title:"打开预览在线文件"},{path:"help4",title:"复制粘贴"},{path:"help5",title:"导出"}]},{lang:"en",children:[{path:"associativeLine",title:"AssociativeLine plugin"},{path:"batchExecution",title:"batchExecution instance"},{path:"changelog",title:"Changelog"},{path:"command",title:"command instance"},{path:"constructor",title:"Constructor"},{path:"doExport",title:"Export plugin"},{path:"drag",title:"Drag plugin"},{path:"introduction",title:"Introduction"},{path:"keyCommand",title:"KeyCommand instance"},{path:"keyboardNavigation",title:"KeyboardNavigation plugin"},{path:"markdown",title:"Markdown parse"},{path:"miniMap",title:"MiniMap plugin"},{path:"node",title:"Node instance"},{path:"render",title:"Render instance"},{path:"richText",title:"RichText plugin"},{path:"select",title:"Select plugin"},{path:"start",title:"Start"},{path:"translate",title:"Contribute"},{path:"utils",title:"Utility Methods"},{path:"view",title:"View instance"},{path:"watermark",title:"Watermark plugin"},{path:"xmind",title:"XMind parse"},{path:"deploy",title:"Deploy"},{path:"touchEvent",title:"TouchEvent plugin"},{path:"nodeImgAdjust",title:"NodeImgAdjust plugin"},{path:"search",title:"Search plugin"},{path:"painter",title:"Painter plugin"},{path:"scrollbar",title:"Scrollbar plugin"},{path:"formula",title:"Formula plugin"},{path:"cooperate",title:"Cooperate plugin"},{path:"client",title:"Client"}]}];let s=[{name:"中文",path:"zh"},{name:"English",path:"en"}],u=["introduction","start","deploy","client","translate","changelog"],h=new Array(25).fill(0).map((e,t)=>"course"+(t+1)),p=["constructor","node","render","view","keyCommand","command","batchExecution","richText","select","drag","keyboardNavigation","doExport","miniMap","watermark","associativeLine","touchEvent","nodeImgAdjust","search","painter","scrollbar","formula","cooperate","xmind","markdown","utils"],m=new Array(5).fill(0).map((e,t)=>"help"+(t+1));const f=(e,t)=>{let n=d.find(t=>t.lang===e),i=n.children;return t.filter(e=>i.find(t=>t.path===e)).map(e=>({path:e,name:i.find(t=>t.path===e).title}))};var g={zh:[{groupName:"开始",type:"doc",list:f("zh",u)},{groupName:"教程",type:"doc",list:f("zh",h)},{groupName:"API",type:"doc",list:f("zh",p)},{groupName:"使用帮助",type:"help",list:f("zh",m)}],en:[{groupName:"Start",type:"doc",list:f("en",u)},{groupName:"Course",type:"doc",list:f("zh",h)},{groupName:"API",type:"doc",list:f("en",p)}]};const v={pageCatalog:{zh:"本页目录",en:"Page catalog"},demo:{zh:"在线示例",en:"Online Demo"},help:{zh:"帮助文档",en:"Help doc"},dev:{zh:"开发文档",en:"Dev doc"},index:{zh:"首页",en:"Home"}},T=(e,t)=>v[e]?v[e][t]||v[e].zh:"";var k=T,x={data(){return{docType:"",lang:"",currentLangName:"",otherLangList:[]}},computed:{demoName(){return k("demo",this.lang)},helpDoc(){return k("help",this.lang)},devDoc(){return k("dev",this.lang)},index(){return k("index",this.lang)}},watch:{$route(){this.init()}},created(){this.init()},methods:{init(){let e=/^\/([^\/]+)\//.exec(this.$route.path);e&&e[1]&&(this.docType=e[1]);let t=/^\/doc\/([^\/]+)\//.exec(this.$route.path);if(t&&t[1]){this.lang=t[1];let e=s.find(e=>e.path===this.lang);this.currentLangName=e.name,this.otherLangList=s.filter(e=>e.path!==this.lang)}},toIndex(){this.$router.push("/index")},toDemo(){this.$router.push("/")},handleCommand(e){let t=this.$route.path.replace(/^\/doc\/([^\/]+)\//,(...t)=>`/doc/${e}/`);this.$router.push(t)},toHelp(){this.lang="zh",this.$router.replace("/help/zh/")},toDev(){this.$router.replace("/doc/zh/")}}},b=x,A=(n("c360"),n("2877")),y=Object(A["a"])(b,l,c,!1,null,"1c36e28e",null),w=y.exports,C=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sideBarContainer"},[t("div",{staticClass:"catalogGroupList"},e._l(e.groupList,(function(n,i){return t("div",{key:i,staticClass:"catalogGroup"},[t("div",{staticClass:"catalogGroupName"},[e._v(e._s(n.groupName))]),t("div",{staticClass:"catalogList"},e._l(n.list,(function(n){return t("div",{key:i+n.path,staticClass:"catalogItem",class:{active:n.path===e.currentPath},on:{click:function(t){return e.jump(n)}}},[e._v(" "+e._s(n.name)+" ")])})),0)])})),0)])},O=[],N={data(){return{groupList:[],lang:"",currentPath:"",type:""}},created(){this.initCatalog()},watch:{$route(){this.initCatalog()}},methods:{jump(e){e.path!==this.currentPath&&this.$router.push(`/${this.type}/${this.lang}/${e.path}`)},initCatalog(){let e=/^\/(doc|help)\/([^\/]+)\//.exec(this.$route.path);e&&e[2]&&(this.type=e[1],this.lang=e[2],this.groupList=g[this.lang].filter(e=>e.type===this.type));let t=/^\/(doc|help)\/[^\/]+\/([^\/]+)(\/|$)/.exec(this.$route.path);t&&t[2]&&(this.currentPath=t[2])}}},E=N,I=(n("c639"),Object(A["a"])(E,C,O,!1,null,"73f8f4b5",null)),L=I.exports,S=function(){var e=this,t=e._self._c;return t("div",{staticClass:"catalogBarContainer"},[t("div",{staticClass:"catalogBarTitle"},[e._v(e._s(e.pageCatalogTitle))]),t("div",{staticClass:"catalogList"},[e._l(e.list,(function(n,i){return t("div",{key:n.title+i,staticClass:"catalogItem",class:{active:n.title===e.activeCatalog},on:{click:function(t){return e.scrollTo(n,i)}}},[e._v(" "+e._s(n.title)+" ")])})),-1!==e.activeCatalogIndex?t("div",{staticClass:"activeBar",style:{top:4+28*e.activeCatalogIndex+"px"}}):e._e()],2)])},R=[],M={props:{scrollTop:{type:Number}},data(){return{lang:"",list:[],activeCatalog:"",activeCatalogIndex:-1,appointCatalog:!0}},computed:{pageCatalogTitle(){return k("pageCatalog",this.lang)}},watch:{$route(e,t){this.initLang(),this.initCatalogList(e.path,t.path)},scrollTop(){this.onScroll()},lang(e,t){t&&this.initCatalogList()}},mounted(){this.initLang(),this.initCatalogList(),this.scrollToCatalog()},methods:{initLang(){let e=/^\/(doc|help)\/([^\/]+)\//.exec(this.$route.path);e&&e[2]&&(this.lang=e[2])},initCatalogList(e,t){let n=/^\/(doc|help)\/[^\/]+\/([^\/]+)/.exec(e),i=/^\/(doc|help)\/[^\/]+\/([^\/]+)/.exec(t);if(!e&&!t||n[2]!==i[2]){this.$emit("scroll",0),this.resetActive();let e=document.getElementById("doc"),t=document.querySelectorAll("#doc h2");this.list=Array.from(t).map(t=>({title:t.textContent,top:t.offsetTop-e.offsetTop}))}},scrollToCatalog(){let e=/^\/(doc|help)\/[^\/]+\/[^\/]+\/([^\/]+)($|\/)/.exec(this.$route.path);if(e&&e[2]){let t=decodeURIComponent(e[2]),n=this.list.find(e=>e.title===t),i=this.list.findIndex(e=>e.title===t);n&&(this.activeCatalog=n.title,this.activeCatalogIndex=i,this.$emit("scroll",n.top))}},scrollTo(e,t){this.appointCatalog=!0,this.routeToNewCatalog(e.title),this.$nextTick(()=>{this.activeCatalog=e.title,this.activeCatalogIndex=t,this.scrollToCatalog()})},routeToNewCatalog(e){let t=this.$route.path,n="";n=e?/^\/(doc|help)\/[^\/]+\/[^\/]+($|\/)$/.test(t)?t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+)($|\/)$/,"$1/"+encodeURIComponent(e)):t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+\/)([^\/]+)($|\/)/,(...t)=>t[1]+encodeURIComponent(e)):t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+)($|\/|.*)$/,"$1"),t!==n&&this.$router.push(n)},onScroll(){if(this.appointCatalog)return void(this.appointCatalog=!1);let e=!1;for(let t=0;t=n.top&&(!i||this.scrollTop{try{this.$refs.doc.scrollTop=e}catch(t){console.log(t)}})},onScroll(){this.scrollTop=this.$refs.doc.scrollTop}}}),P=F,B=(n("2634"),Object(A["a"])(P,o,r,!1,null,null,null)),U=B.exports;const j=()=>{let e=d[0].children;for(let t=1;t{n.find(t=>t.path===e.path)||n.push({...e,lang:"zh"})})}};j();const H=(e,t)=>[...d.map(n=>({path:`/${e}/${n.lang}/`,redirect:`/${e}/${n.lang}/${t}/`})),...d.map(t=>({path:`/${e}/${t.lang}/`,component:U,children:t.children.map(e=>({path:e.path+"/:h?",component:()=>n("b834")(`./${e.lang||t.lang}/${e.path}/index.vue`)}))}))];i["default"].use(a["a"]);const G=[{path:"/index",name:"Index",component:()=>n.e("chunk-7babbe51").then(n.bind(null,"9684"))},{path:"/",name:"Edit",component:()=>n.e("chunk-38caf5df").then(n.bind(null,"5fca"))},...H("doc","introduction"),...H("help","help1")],Y=new a["a"]({routes:G});t["a"]=Y},"440d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABhVJREFUeF7tW2uME1UU/s4suwjyMBpw1e0UAkYCiWIkasJLScwaoySIrtiZRQJ0CiIRDfEVEuGHkUg0ogHZWdiV3c6ugUA0avCBkaiQSCAmGl8RIp1FBDWCBMGw3TmmsNNOZ2e6nWm3LbT917n33HvOd87cc+537xDK/Edlbj8qAFQi4BJBYHw0OuI8nZsHwnQwpgMcdFH9MBifsmDsr7li6IeHH5z/RyYTL4lXIKCp9QS8CmCSN3/RMRDW6aHw625yJQ+AqKkfAaj3Znh6bwLejUnKHKcxShoAsb1pNQR6sY/iRMcZ/JOjQQbfCKIb7G0EY25MWrKz7/NcoB1A2WDn5lvZML4CMDQ1Db0PZlWXlQ8yTR3oVGeTgWcATLX0O2XE4zOPPvb4t1bZko0AUVMbAbSZymYKYzcwAh3q58S4KzkGY1FMVlpKGoBgW/NYFngSCE8BmJVUloVpurx4r5egEzuapoHpy9QY/IouR54tWQBETW0FsMDJyDjxqGOhyF9eAKjd1jKqpjueTIMM3tklReaWHACBt5vGUTXtBjDGzcAqotpfQ+ETXgAItjddxwIds8js0CXloZICYGxH87U9zMf7M8xtFc9iMXwvuQYQvRQLhVeVFACi1vw1wLenGWLwGhaEagK/YHl/f9PlSF1/QFnbRU3lNGNZkGLy4o6SASCoqSsZWGdViJnru+TIJxdL33/3A3STpT1R5q4g5oOxxsjvTmBcjChjBkDb0sYl7OFBZ+472vD0uZIAYEzrhlqjptpmBE3RpfBBU8HeEjhRCeb8M+LxW+w1QGLQotUBde2b7hUEYVfKMlZ1KRKxW+paDXqBxOA1emNktZNI0QAQo03Pgehli1LzdUlpd1KybuvGm6l60HprUZOd/fwzg57skpSP3foXDYCgpnYyMM9UTBB6xh55dOkRN0Xrtr02pOr8iDkQeCIzT2DCNY4eZT7BhO9g8KHBGLbrkCyfzgRW0QCwl6m6pBRFl6JMmvBIBQDbRqUSAaX2CgQ6t0yhnp5FLGBCdituei+B6UcwH7BvP81eoqYeAHBb7//TuqSMzDRPQRfBvORe0xqHHHyxyjv7j8Xg3bqk3OOaAQqZBoNRdSETtvjxursMN+hSZLvZHoyqc5iQoqeY1+py5Hkn+bw4w0shFNSaNzJ4aT4BYEJLV0hZZAn/QwDGmf8JkGOSotnnLEopbE9P4EGTdHnhD14AEaMtE0Hx700ZJuzpCil3J/47ePQXo1q482jD4r+tcxRtM5Sv/Gzbiu4FYy0JWMWMO6yGuno/uukRIuGdZF/mwmyHBwgA5wBinCKC7tTIzKNBVJt6TZxp7UyR2csOeyNECgqAh/eqYJRYqQKQD1IUQP+cYIEB+A/AWZdAuDrteR5occqGExwgABLb051Ox1xkYGqsUdnXJwXaFsH8HIxkwQnaAehvn+7kPTsdbabB3vSY4OpSp7yEfedOdtf/uWzZmf7ToP+jsYQOWXGC9kIoIehhrUp2tbI3fQuhJh2ggCXFLdDlyNasCyEfh6NZc4IDUQoTsxSTI0k6OtCuziYByfQEYL0uKStKohROKBHQmjUCh/x4vq8MbdelcIP1+ZjW1quMmu6TqWf0hS6FZ7rNVxROUIyq94NoPsAP+wOCtjNxogTe6OhZTf0GwOTetjO6pAzPNE9iOyx0D2/0ckVmsDFsR4UT7Md7FU7QX3jnLpWveiNXTSoRkCuCfuVFTY0CkJK7PYOvdzvwTPQpKCfo1ygvcmKHuhyMN1LFEB5wu/xUlDToxRg/fYNtzbO4ij+z1AKrdSm8xj5WwTlBP8b4kRnX9tbo7qqqtCsv5t0Ac7yicIJ+jPErE9DUNwl4Ik2+l4MsGifo1xi/cqKmngKQfihy4YoMXUnAytQaUSBO0K8hfuX6nBG4DHTZXpJK2HvhQiNoNxiD3YAsGCfo15O5yo3asGHYkJHV60BY4jRWPjjBkr0oaTW4rn3zeIF4MpOxnEAzUmtAGVyVtQJRtpelTRDK/rr8hcWxnD+YMCOhrD+ZsZXE5fnRlAlCWX82l2uNkUm+aIzQQBrlZewKAF7Quhz7/g9P4cNulJCaPwAAAABJRU5ErkJggg=="},"441d":function(e,t,n){"use strict";n("81cc")},"56d7":function(e,t,n){"use strict";n.r(t);var i=n("2b0e"),a=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},o=[],r={name:"App",components:{}},l=r,c=(n("441d"),n("2877")),d=Object(c["a"])(l,a,o,!1,null,null,null),s=d.exports,u=n("41cb"),h=n("c0d6"),p=n("5c96"),m=n.n(p),f=(n("0fae"),n("9c65"),n("0808"),n("6944")),g=n.n(f),v=n("9225"),T=n("365c");i["default"].config.productionTip=!1;const k=new i["default"];i["default"].prototype.$bus=k,i["default"].use(m.a),i["default"].use(g.a);const x=()=>{v["a"].locale=Object(T["b"])(),new i["default"]({render:e=>e(s),router:u["a"],store:h["a"],i18n:v["a"]}).$mount("#app")};window.takeOverApp?(window.initApp=x,window.$bus=k):x()},5848:function(e,t,n){"use strict";const i=()=>({image:"/enJFNMHnedQTYTESGfDkctCp2.jpeg",imageTitle:"图片名称",imageSize:{width:1e3,height:563},icon:["priority_1"],tag:["标签1","标签2"],hyperlink:"http://lxqnsys.com/",hyperlinkTitle:"理想青年实验室",note:"理想青年实验室\n一个有意思的角落"}),a=(i(),i(),{root:{data:{text:"根节点"},children:[{data:{text:"二级节点",generalization:{text:"概要"}},children:[{data:{text:"分支主题"},children:[]},{data:{text:"分支主题"},children:[]}]}]}});t["a"]={...a,theme:{template:"classic4",config:{}},layout:"logicalStructure",config:{}}},"6d72":function(e,t,n){"use strict";n("a7a6")},"81cc":function(e,t,n){},9225:function(e,t,n){"use strict";var i=n("2b0e"),a=n("a925"),o={baseStyle:{title:"BaseStyle",background:"Background",color:"Color",image:"Image",imageRepeat:"Image repeat",imagePosition:"Image position",imageSize:"Image size",line:"Line",width:"Width",style:"Style",lineOfOutline:"Line of outline",nodePadding:"Node padding",nodeMargin:"Node margin",horizontal:"Horizontal",vertical:"Vertical",maximumWidth:"Max width",maximumHeight:"Max height",icon:"Icon",size:"Size",level2Node:"Level2 node",belowLevel2Node:"Below level2 node",nodeBorderType:"Node border style",nodeUseLineStyle:"Use only has bottom border style",otherConfig:"Other config",enableFreeDrag:"Enable node free drag",watermark:"Watermark",showWatermark:"Is show watermark",watermarkDefaultText:"Watermark text",watermarkText:"Watermark text",watermarkTextColor:"Text color",watermarkLineSpacing:"Line spacing",watermarkTextSpacing:"Text spacing",watermarkAngle:"Angle",watermarkTextOpacity:"Text opacity",watermarkTextFontSize:"Font size",isEnableNodeRichText:"Enable node rich text editing",mousewheelAction:"Mouse wheel behavior",zoomView:"Zoom view",moveViewUpDown:"Move view up and down",associativeLine:"Associative line",associativeLineWidth:"Width",associativeLineColor:"Color",associativeLineActiveWidth:"Active width",associativeLineActiveColor:"Active color",mousewheelZoomActionReverse:"Mouse Wheel Zoom",mousewheelZoomActionReverse1:"Zoom out forward and zoom in back",mousewheelZoomActionReverse2:"Zoom in forward and zoom out back",createNewNodeBehavior:"Behavior of creating new node",default:"Active new node and editing",notActive:"Not active new node",activeOnly:"Only active new node but not editing",rootStyle:"Root Node",associativeLineText:"Associative line text",fontFamily:"Font family",fontSize:"Font size",isShowScrollbar:"Is show scrollbar"},color:{moreColor:"More color"},contextmenu:{insertSiblingNode:"Insert sibling node",insertChildNode:"Insert child node",insertParentNode:"Insert parent node",insertSummary:"Insert summary",moveUpNode:"Move up node",moveDownNode:"Move down node",deleteNode:"Delete node",deleteCurrentNode:"Only del cur node",copyNode:"Copy node",cutNode:"Cut node",pasteNode:"Paste node",backCenter:"Back root node",expandAll:"Expand all",unExpandAll:"Un expand all",expandTo:"Expand to",arrangeLayout:"Arrange layout",level1:"Level1",level2:"Level2",level3:"Level3",level4:"Level4",level5:"Level5",level6:"Level6",zenMode:"Zen mode",fitCanvas:"Fit canvas",removeImage:"Remove image",removeHyperlink:"Remove hyperlink",removeNote:"Remove note"},count:{words:"Words",nodes:"Nodes"},dialog:{cancel:"Cancel",confirm:"Confirm"},export:{title:"Export",filename:"Filename",include:"Is include config like theme and structure",dedicatedFile:"Dedicated file",jsonFile:"json file",imageFile:"Image file",svgFile:"svg file",pdfFile:"pdf file",markdownFile:"markdown file",tips:"tips: .smm and .json file can be import",isTransparent:"Background is transparent",pngTips:"tips: Exporting pictures in rich text mode is time-consuming. It is recommended to export to svg format",svgTips:"tips: Exporting pictures in rich text mode is time-consuming",transformingDomToImages:"Converting nodes: ",notifyTitle:"Info",notifyMessage:"If the download is not triggered, check whether it is blocked by the browser",paddingX:"Padding x",paddingY:"Padding y",useMultiPageExport:"Export multi page",defaultFileName:"Mind map"},fullscreen:{fullscreenShow:"Full screen show",fullscreenEdit:"Full screen edit"},import:{title:"Import",selectFile:"Select file",supportFile:"Support .smm、.json、.xmind、.xlsx、.md file",enableFileTip:"Please select .smm、.json、.xmind、.xlsx、.md file",maxFileNum:"At most one file can be selected",notSelectTip:"Please select the file to import",fileContentError:"The file content is incorrect",importSuccess:"Import success",fileParsingFailed:"File parsing failed"},navigatorToolbar:{openMiniMap:"Open mini map",closeMiniMap:"Close mini map",readonly:"Change to eadonly",edit:"Change to edit"},nodeHyperlink:{title:"Link",link:"Href",name:"Name"},nodeIcon:{title:"Icon"},nodeImage:{title:"Image",imgTitle:"Title"},nodeNote:{title:"Note"},nodeTag:{title:"Tag",addTip:"Press Enter to add"},outline:{title:"Outline",nodeDefaultText:"Branch node"},scale:{zoomIn:"Zoom in",zoomOut:"Zoom out"},shortcutKey:{title:"Shortcut key"},strusture:{title:"Strusture"},style:{title:"Node style",normal:"Normal",active:"Active",text:"Text",fontFamily:"Font family",fontSize:"Font size",lineHeight:"Line height",color:"color",addFontWeight:"add font weight",italic:"Italic",textDecoration:"Text decoration",underline:"Underline",none:"None",lineThrough:"Line through",overline:"Overline",border:"Border",style:"Style",width:"Width",borderRadius:"Border radius",background:"Background",shape:"Shape",line:"Line",nodePadding:"Node padding",horizontal:"Horizontal",vertical:"Vertical"},theme:{title:"Theme",classics:"Classics",dark:"Darkness",simple:"Simple",coverTip:"You have currently customized the basic style, do you want to overwrite it?",tip:"Tip",cover:"Cover",reserve:"Reserve"},toolbar:{undo:"Undo",redo:"Redo",insertSiblingNode:"Sibling node",insertChildNode:"Child node",deleteNode:"Delete node",image:"Image",icon:"Icon",link:"Link",note:"Note",tag:"Tag",summary:"Summary",displayOutline:"Display outline",baseStyle:"Base style",theme:"Theme",strusture:"Strusture",newFile:"New file",openFile:"Open file",saveAs:"Save as",import:"Import",export:"Export",shortcutKey:"Shortcut key",associativeLine:"Associative line",painter:"Painter",formula:"Formula",more:"More",selectFileTip:"Please select a file",notSupportTip:"Your browser does not support this feature, or the current page is not using the HTTPS protocol",tip:"Tip",editingLocalFileTipFront:"Currently editing your local【",editingLocalFileTipEnd:"】file",fileContentError:"File content error",fileOpenFailed:"File open failed",defaultFileName:"Mind map",creatingTip:"Creating file"},edit:{newFeatureNoticeTitle:"New feature reminder",newFeatureNoticeMessage:"This update supports node rich text editing, But there are some defects, The most important impact is that the time to export the image is proportional to the number of nodes, Therefore, if you are more dependent on export requirements, you can use【Base style】-【Other config】-【Enable node rich text editing】Set to turn off rich text editing mode.",root:"Root node",splitByWrap:"Is automatically split nodes based on line breaks?",tip:"Tip",yes:"Yes",no:"No"},mouseAction:{tip1:"Current: Left click to drag the canvas, right click to box select nodes",tip2:"Current: Left click to box select nodes, right click to drag the canvas"},search:{searchPlaceholder:"Please enter the search content",replacePlaceholder:"Please enter replacement content",replace:"Replace",replaceAll:"Replace all",cancel:"Cancel"},nodeIconSidebar:{title:"Icon/Sticker",icon:"Icon",sticker:"Sticker"},formulaSidebar:{title:"Formula",placeholder:"Please enter LaTeX syntax",confirm:"Confirm",common:"Common formulas",tip:"Inserting formulas is not supported in non rich text mode"},richTextToolbar:{bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strike",fontFamily:"Font family",fontSize:"Font size",color:"Color",backgroundColor:"Background color",removeFormat:"Clear Style"},other:{loading:"Loading, please wait..."}},r={baseStyle:{title:"基础样式",background:"背景",color:"颜色",image:"图片",imageRepeat:"图片重复",imagePosition:"图片位置",imageSize:"图片大小",line:"连线",width:"粗细",style:"风格",lineOfOutline:"概要的连线",nodePadding:"节点内边距",nodeMargin:"节点外边距",horizontal:"水平",vertical:"垂直",maximumWidth:"显示的最大宽度",maximumHeight:"显示的最大高度",icon:"图标",size:"大小",level2Node:"二级节点",belowLevel2Node:"三级及以下节点",nodeBorderType:"节点边框风格",nodeUseLineStyle:"是否使用只有底边框的风格",otherConfig:"其他配置",enableFreeDrag:"是否开启节点自由拖拽",watermark:"水印",showWatermark:"是否显示水印",watermarkDefaultText:"水印文字",watermarkText:"水印文字",watermarkTextColor:"文字颜色",watermarkLineSpacing:"水印行间距",watermarkTextSpacing:"水印文字间距",watermarkAngle:"旋转角度",watermarkTextOpacity:"文字透明度",watermarkTextFontSize:"文字字号",isEnableNodeRichText:"是否开启节点富文本编辑",mousewheelAction:"鼠标滚轮行为",zoomView:"缩放视图",moveViewUpDown:"上下移动视图",associativeLine:"关联线",associativeLineWidth:"粗细",associativeLineColor:"颜色",associativeLineActiveWidth:"激活粗细",associativeLineActiveColor:"激活颜色",mousewheelZoomActionReverse:"鼠标滚轮缩放",mousewheelZoomActionReverse1:"向前缩小向后放大",mousewheelZoomActionReverse2:"向前放大向后缩小",createNewNodeBehavior:"创建新节点的行为",default:"激活新节点及进入编辑",notActive:"不激活新节点",activeOnly:"只激活新节点,不进入编辑",rootStyle:"根节点",associativeLineText:"关联线文字",fontFamily:"字体",fontSize:"字号",isShowScrollbar:"是否显示滚动条"},color:{moreColor:"更多颜色"},contextmenu:{insertSiblingNode:"插入同级节点",insertChildNode:"插入子级节点",insertParentNode:"插入父节点",insertSummary:"插入概要",moveUpNode:"上移节点",moveDownNode:"下移节点",deleteNode:"删除节点",deleteCurrentNode:"仅删除当前节点",copyNode:"复制节点",cutNode:"剪切节点",pasteNode:"粘贴节点",backCenter:"回到根节点",expandAll:"展开所有",unExpandAll:"收起所有",expandTo:"展开到",arrangeLayout:"一键整理布局",level1:"一级主题",level2:"二级主题",level3:"三级主题",level4:"四级主题",level5:"五级主题",level6:"六级主题",zenMode:"禅模式",fitCanvas:"适应画布",removeImage:"移除图片",removeHyperlink:"移除超链接",removeNote:"移除备注"},count:{words:"字数",nodes:"节点"},dialog:{cancel:"取 消",confirm:"确 定"},export:{title:"导出",filename:"导出文件名称",include:"是否包含主题、结构等配置数据",dedicatedFile:"专有文件",jsonFile:"json文件",imageFile:"图片文件",svgFile:"svg文件",pdfFile:"pdf文件",markdownFile:"markdown文件",tips:"tips:.smm和.json文件可用于导入",isTransparent:"背景是否透明",pngTips:"tips:富文本模式导出图片非常耗时,建议导出为svg格式",svgTips:"tips:富文本模式导出图片非常耗时",transformingDomToImages:"正在转换节点:",notifyTitle:"消息",notifyMessage:"如果没有触发下载,请检查是否被浏览器拦截了",paddingX:"水平内边距",paddingY:"垂直内边距",useMultiPageExport:"是否多页导出",defaultFileName:"思维导图"},fullscreen:{fullscreenShow:"全屏查看",fullscreenEdit:"全屏编辑"},import:{title:"导入",selectFile:"选取文件",supportFile:"支持.smm、.json、.xmind、.xlsx、.md文件",enableFileTip:"请选择.smm、.json、.xmind、.xlsx、.md文件",maxFileNum:"最多只能选择一个文件",notSelectTip:"请选择要导入的文件",fileContentError:"文件内容有误",importSuccess:"导入成功",fileParsingFailed:"文件解析失败"},navigatorToolbar:{openMiniMap:"开启小地图",closeMiniMap:"关闭小地图",readonly:"切换为只读模式",edit:"切换为编辑模式"},nodeHyperlink:{title:"超链接",link:"链接",name:"名称"},nodeIcon:{title:"图标"},nodeImage:{title:"图片",imgTitle:"图片标题"},nodeNote:{title:"备注"},nodeTag:{title:"标签",addTip:"请按回车键添加"},outline:{title:"大纲",nodeDefaultText:"分支节点"},scale:{zoomIn:"放大",zoomOut:"缩小"},shortcutKey:{title:"快捷键"},strusture:{title:"结构"},style:{title:"节点样式",normal:"常态",active:"选中状态",text:"文字",fontFamily:"字体",fontSize:"字号",lineHeight:"行高",color:"颜色",addFontWeight:"加粗",italic:"斜体",textDecoration:"划线",none:"无",underline:"下划线",lineThrough:"中划线",overline:"上划线",border:"边框",style:"样式",width:"宽度",borderRadius:"圆角",background:"背景",shape:"形状",line:"线条",nodePadding:"节点内边距",horizontal:"水平",vertical:"垂直"},theme:{title:"主题",classics:"经典",dark:"深色",simple:"朴素",coverTip:"你当前自定义过基础样式,是否覆盖?",tip:"提示",cover:"覆盖",reserve:"保留"},toolbar:{undo:"回退",redo:"前进",insertSiblingNode:"同级节点",insertChildNode:"子节点",deleteNode:"删除节点",image:"图片",icon:"图标",link:"超链接",note:"备注",tag:"标签",summary:"概要",displayOutline:"显示大纲",baseStyle:"基础样式",theme:"主题",strusture:"结构",newFile:"新建",openFile:"打开",saveAs:"另存为",import:"导入",export:"导出",shortcutKey:"快捷键",associativeLine:"关联线",painter:"格式刷",formula:"公式",more:"更多",selectFileTip:"请选择文件",notSupportTip:"你的浏览器不支持该功能,或者当前页面非https协议",tip:"提示",editingLocalFileTipFront:"当前正在编辑你本机的【",editingLocalFileTipEnd:"】文件",fileContentError:"文件内容有误",fileOpenFailed:"文件打开失败",defaultFileName:"思维导图",creatingTip:"正在创建文件"},edit:{newFeatureNoticeTitle:"新特性提醒",newFeatureNoticeMessage:"本次更新支持了节点富文本编辑,但是存在一定缺陷,最主要的影响是导出为图片的时间和节点数量成正比,所以对导出需求比较依赖的话可以通过【基础样式】-【其他配置】-【是否开启节点富文本编辑】设置关掉富文本编辑模式。",root:"根节点",splitByWrap:"是否按换行自动分割节点?",tip:"提示",yes:"是",no:"否"},mouseAction:{tip1:"当前:左键拖动画布,右键框选节点",tip2:"当前:左键框选节点,右键拖动画布"},search:{searchPlaceholder:"请输入查找内容",replacePlaceholder:"请输入替换内容",replace:"替换",replaceAll:"全部替换",cancel:"取消"},nodeIconSidebar:{title:"图标/贴纸",icon:"图标",sticker:"贴纸"},formulaSidebar:{title:"公式",placeholder:"请输入 LaTeX 语法",confirm:"完成",common:"常用公式",tip:"非富文本模式下不支持插入公式"},richTextToolbar:{bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",fontFamily:"字体",fontSize:"字号",color:"字体颜色",backgroundColor:"背景颜色",removeFormat:"清除样式"},other:{loading:"正在加载,请稍后..."}},l={zh:r,en:o};i["default"].use(a["a"]);const c=new a["a"]({messages:l});t["a"]=c},"9b79":function(e,t,n){},"9c65":function(e,t,n){},a7a6:function(e,t,n){},b1db:function(e,t,n){},b834:function(e,t,n){var i={"./en/associativeLine/index.vue":["708b","chunk-2d0d5cb9"],"./en/batchExecution/index.vue":["ed72","chunk-2d2308b0"],"./en/changelog/index.vue":["a6d3","chunk-2d208ffa"],"./en/client/index.vue":["0247","chunk-2d0a34fb"],"./en/command/index.vue":["9381","chunk-2d0e5089"],"./en/constructor/index.vue":["6a50","chunk-2d0d9fbc"],"./en/cooperate/index.vue":["f2be","chunk-2d22c6c5"],"./en/deploy/index.vue":["b1a3","chunk-2d20f137"],"./en/doExport/index.vue":["c6ec","chunk-2d217907"],"./en/drag/index.vue":["ff2d","chunk-2d238428"],"./en/formula/index.vue":["dec3","chunk-2d229d67"],"./en/introduction/index.vue":["7f29","chunk-6cbc7d60"],"./en/keyCommand/index.vue":["2f7a","chunk-2d0be174"],"./en/keyboardNavigation/index.vue":["328f","chunk-2d0b92c3"],"./en/markdown/index.vue":["8102","chunk-2d0dd3b1"],"./en/miniMap/index.vue":["b98e","chunk-2d210a7a"],"./en/node/index.vue":["c133","chunk-2d216004"],"./en/nodeImgAdjust/index.vue":["48a3","chunk-2d0c226c"],"./en/painter/index.vue":["76a5","chunk-2d0d7809"],"./en/render/index.vue":["8e32","chunk-2d0e9742"],"./en/richText/index.vue":["4947","chunk-2d0c20be"],"./en/scrollbar/index.vue":["a950","chunk-2d209589"],"./en/search/index.vue":["bf42","chunk-2d21b2b8"],"./en/select/index.vue":["ddd1","chunk-2d2299c3"],"./en/start/index.vue":["b407","chunk-2d20f68f"],"./en/touchEvent/index.vue":["a1cd","chunk-2d207d47"],"./en/translate/index.vue":["479a","chunk-2d0c1a01"],"./en/utils/index.vue":["144f","chunk-2d0ab10b"],"./en/view/index.vue":["16c7","chunk-2d0abe0f"],"./en/watermark/index.vue":["27ad","chunk-2d0b361e"],"./en/xmind/index.vue":["f127","chunk-2d22bd06"],"./zh/associativeLine/index.vue":["20fa","chunk-2d0b1c6f"],"./zh/batchExecution/index.vue":["e9ee","chunk-2d226d0a"],"./zh/changelog/index.vue":["9ac1","chunk-2d0f026c"],"./zh/client/index.vue":["92da","chunk-2d0e524c"],"./zh/command/index.vue":["6df4","chunk-2d0db0f2"],"./zh/constructor/index.vue":["6cfb","chunk-2d0dad5f"],"./zh/cooperate/index.vue":["a1ae","chunk-2d207d0a"],"./zh/course1/index.vue":["8e98","chunk-2d0e9802"],"./zh/course10/index.vue":["3f2a","chunk-2d0c5538"],"./zh/course11/index.vue":["33b0","chunk-2d0b9b64"],"./zh/course12/index.vue":["eb27","chunk-2d230098"],"./zh/course13/index.vue":["c1ec","chunk-2d216642"],"./zh/course14/index.vue":["e487","chunk-2d2254a4"],"./zh/course15/index.vue":["fb9a","chunk-2d2375fa"],"./zh/course16/index.vue":["18dc","chunk-2d0ac5dc"],"./zh/course17/index.vue":["4323","chunk-2d0c09f6"],"./zh/course18/index.vue":["91b3","chunk-2d0e4e1f"],"./zh/course19/index.vue":["ae22","chunk-77915045"],"./zh/course2/index.vue":["c187","chunk-2d2160a3"],"./zh/course20/index.vue":["158d","chunk-2d0ab546"],"./zh/course21/index.vue":["e410","chunk-2d2253c4"],"./zh/course22/index.vue":["d013","chunk-2d21d064"],"./zh/course23/index.vue":["a0a8","chunk-2d20791c"],"./zh/course24/index.vue":["2ad8","chunk-2d0bd3f9"],"./zh/course25/index.vue":["e6dd","chunk-2d2261a7"],"./zh/course3/index.vue":["0fcd","chunk-2d0afe0d"],"./zh/course4/index.vue":["32a6","chunk-2d0b978a"],"./zh/course5/index.vue":["3c76","chunk-2d0c4a65"],"./zh/course6/index.vue":["8e25","chunk-2d0e9726"],"./zh/course7/index.vue":["c13f","chunk-2d216037"],"./zh/course8/index.vue":["cc99","chunk-2d221c76"],"./zh/course9/index.vue":["b69b","chunk-2d20ff53"],"./zh/deploy/index.vue":["71bb","chunk-2d0d6590"],"./zh/doExport/index.vue":["1256","chunk-2d0aa978"],"./zh/drag/index.vue":["4604","chunk-2d0c14fc"],"./zh/formula/index.vue":["d53e","chunk-2d21e399"],"./zh/help1/index.vue":["05ec","chunk-2d0a4659"],"./zh/help2/index.vue":["83fa","chunk-2d0de1ec"],"./zh/help3/index.vue":["3de7","chunk-2d0c53b9"],"./zh/help4/index.vue":["f08f","chunk-2d22ba2e"],"./zh/help5/index.vue":["2c65","chunk-2d0bd5e6"],"./zh/introduction/index.vue":["4710","chunk-4c6d0a94"],"./zh/keyCommand/index.vue":["a43c","chunk-2d2082b9"],"./zh/keyboardNavigation/index.vue":["2c18","chunk-2d0bd54e"],"./zh/markdown/index.vue":["08d0","chunk-2d0a514a"],"./zh/miniMap/index.vue":["0168","chunk-2d0a3179"],"./zh/node/index.vue":["433b","chunk-2d0c0a44"],"./zh/nodeImgAdjust/index.vue":["1f8f","chunk-2d0b6d39"],"./zh/painter/index.vue":["5b22","chunk-2d0d2ec3"],"./zh/render/index.vue":["6c31","chunk-2d0da701"],"./zh/richText/index.vue":["35c4","chunk-2d0ba309"],"./zh/scrollbar/index.vue":["3def","chunk-2d0c53e8"],"./zh/search/index.vue":["0503","chunk-2d0a3fbe"],"./zh/select/index.vue":["321a","chunk-2d0b91e5"],"./zh/start/index.vue":["7e57","chunk-2d0e2326"],"./zh/touchEvent/index.vue":["e021","chunk-2d2244e0"],"./zh/translate/index.vue":["1136","chunk-2d0aa579"],"./zh/utils/index.vue":["4738","chunk-2d0c191e"],"./zh/view/index.vue":["82ca","chunk-2d0dddce"],"./zh/watermark/index.vue":["848a","chunk-2d0de01b"],"./zh/xmind/index.vue":["8427","chunk-2d0ddf37"]};function a(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],a=t[0];return n.e(t[1]).then((function(){return n(a)}))}a.keys=function(){return Object.keys(i)},a.id="b834",e.exports=a},c0d6:function(e,t,n){"use strict";var i=n("2b0e"),a=n("2f62"),o=n("5848"),r=n("365c");i["default"].use(a["a"]);const l=new a["a"].Store({state:{mindMapData:null,isHandleLocalFile:!1,localConfig:{isZenMode:!1,openNodeRichText:!0,useLeftKeySelectionRightKeyDrag:!1,isShowScrollbar:!1},activeSidebar:"",isDark:!1,isOutlineEdit:!1,isReadonly:!1},mutations:{setMindMapData(e,t){e.mindMapData=t},setIsHandleLocalFile(e,t){e.isHandleLocalFile=t},setLocalConfig(e,t){e.localConfig={...e.localConfig,...t},Object(r["g"])(e.localConfig)},setActiveSidebar(e,t){e.activeSidebar=t},setIsDark(e,t){e.isDark=t},setIsOutlineEdit(e,t){e.isOutlineEdit=t},setIsReadonly(e,t){e.isReadonly=t}},actions:{getUserMindMapData(e){try{let{data:t}={data:{data:{mindMapData:o["a"]}}};e.commit("setMindMapData",t.data)}catch(t){console.log(t)}}}});t["a"]=l},c360:function(e,t,n){"use strict";n("b1db")},c639:function(e,t,n){"use strict";n("9b79")}}); \ No newline at end of file +(function(e){function t(t){for(var i,a,l=t[0],c=t[1],d=t[2],s=0,u=[];s>>0,this.mti=1;this.mti>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},o.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_genrand(5489),n=0;n>>1^t[1&e];for(;n>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};const r=(e,t,n,i,a,o=0,l=0)=>{let c=!1;if(n&&(c=n(e,t,a,o,l)),!c&&e.children&&e.children.length>0){let t=o+1;e.children.forEach((a,o)=>{r(a,e,n,i,!1,t,o)})}i&&i(e,t,a,o,l)},l=(e,t)=>{let n=[e],i=!1;"stop"===t(e,null)&&(i=!0);while(n.length){if(i)break;let e=n.shift();e.children&&e.children.length&&e.children.forEach(a=>{i||(n.push(a),"stop"===t(a,e)&&(i=!0))})}},c=(e,t,n,i)=>{let a=[],o=e/t,r=n/i;return a=o>r?[o*i,i]:[n,n/o],a},d=(e,t,n,i)=>{let a=e/t,o=[];if(n&&i)if(e<=n&&t<=i)o=[e,t];else{let e=n/i;o=a>e?[a*i,i]:[n,n/a]}else n?o=e<=n?[e,t]:[n,n/a]:i&&(o=t<=i?[e,t]:[a*i,i]);return o},s=e=>{e=e.replace(/
/gim,"\n");let t=document.createElement("div");return t.innerHTML=e,e=t.textContent,e},u=e=>{try{return JSON.parse(JSON.stringify(e))}catch(t){return null}},h=(e,t,n=!1)=>(e.data=u(t.data),n&&(e.data.isActive=!1,e.data.generalization&&(e.data.generalization.isActive=!1)),e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,i)=>{e.children[i]=h({},t,n)}),e),p=(e,t,n=!1,i=!0)=>(e.data=u(t.nodeData?t.nodeData.data:t.data),i?delete e.data.uid:e.data.uid||(e.data.uid=L()),n&&(e.data.isActive=!1),e.children=[],t.children&&t.children.length>0?t.children.forEach((t,a)=>{e.children[a]=p({},t,n,i)}):t.nodeData&&t.nodeData.children&&t.nodeData.children.length>0&&t.nodeData.children.forEach((t,a)=>{e.children[a]=p({},t,n,i)}),e),m=e=>new Promise((t,n)=>{const i=new Image;i.setAttribute("crossOrigin","anonymous"),i.onload=()=>{try{let e=document.createElement("canvas");e.width=i.width,e.height=i.height;let n=e.getContext("2d");n.drawImage(i,0,0,i.width,i.height),t(e.toDataURL())}catch(e){n(e)}},i.onerror=e=>{n(e)},i.src=e}),f=e=>{if(!/^data:/.test(e))return e;let[t,n]=e.split(","),i=/^data:[^/]+\/([^;]+);/.exec(t),a=i[1];return{type:a,base64:n}},g=(e,t)=>{let n=document.createElement("a");n.href=e,n.download=t,n.click()},v=(e,t=300,n)=>{let i=null;return(...a)=>{i||(i=setTimeout(()=>{e.call(n,...a),i=null},t))}},T=(e,t=(()=>{}))=>{let n=0,i=e.length;if(i<=0)return t();let a=()=>{n>=i?t():(e[n](),setTimeout(()=>{n++,a()},0))};a()},k=e=>e*(Math.PI/180),x=e=>e.replace(/([a-z])([A-Z])/g,(...e)=>e[1]+"-"+e[2].toLowerCase());let b=null;const A=(e,{italic:t,bold:n,fontSize:i,fontFamily:a})=>{const o=y({italic:t,bold:n,fontSize:i,fontFamily:a});if(!b){const e=document.createElement("canvas");b=e.getContext("2d")}b.save(),b.font=o;const{width:r,actualBoundingBoxAscent:l,actualBoundingBoxDescent:c}=b.measureText(e);b.restore();const d=l+c;return{width:r,height:d}},y=({italic:e,bold:t,fontSize:n,fontFamily:i})=>`${e?"italic ":""} ${t?"bold ":""} ${n}px ${i} `,w=function(e,t){let n=!1,i=null,a=()=>{n=!1,t?e.call(t):e()};if("undefined"!==typeof MutationObserver){let e=1,t=new MutationObserver(a),n=document.createTextNode(e);t.observe(n,{characterData:!0}),i=function(){e=(e+1)%2,n.data=e}}else i=setTimeout;return function(){n||(n=!0,i(a,0))}},C=(e,t)=>{let n=e.elRect,{scaleX:i,scaleY:a,translateX:o,translateY:r}=e.draw.transform(),{left:l,top:c,width:d,height:s}=t,u=(l+d)*i+o,h=(c+s)*a+r;l=l*i+o,c=c*a+r;let p=0,m=0;return l<0&&(p=-l),u>n.width&&(p=-(u-n.width)),c<0&&(m=-c),h>n.height&&(m=-(h-n.height)),{isOuter:0!==p||0!==m,offsetLeft:p,offsetTop:m}};let O=null;const N=e=>(O||(O=document.createElement("div")),O.innerHTML=e,O.textContent),E=e=>new Promise((t,n)=>{let i=new FileReader;i.onload=e=>{t(e.target.result)},i.onerror=e=>{n(e)},i.readAsDataURL(e)});const I=e=>new Promise(t=>{let n=new Image;n.src=e,n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=()=>{t({width:0,height:0})}}),L=()=>Object(i["a"])(),R=e=>new Promise((t,n)=>{let i=new FileReader;i.readAsDataURL(e),i.onload=async e=>{let n=e.target.result,i=await I(n);t({url:n,size:i})},i.onerror=e=>{n(e)}}),S=e=>([[" "," "]].forEach(t=>{e=e.replaceAll(t[0],t[1])}),e),_=e=>Object.prototype.toString.call(e).slice(8,-1),M=e=>null===e||void 0===e||""===e,z=e=>e.replaceAll(/(<[^\s]+)\s+style=["'][^'"]+["']\s*(>)/g,"$1$2"),D=(e,t,n)=>{const i=new RegExp(`(<${t}[^>]*)(>[^<>]*)`,"g");return e.replaceAll(i,`$1 style="${n}"$2`)};let F=null;const P=e=>{F||(F=document.createElement("div")),F.innerHTML=e;for(let t=F.childNodes,n=t.length;n--;)if(1==t[n].nodeType)return!0;return!1};let B=null;const U=(e,t,n)=>{B||(B=document.createElement("div")),B.innerHTML=e;let i=e=>{let a=e.childNodes;a.forEach(a=>{1===a.nodeType?i(a):3===a.nodeType&&e.replaceChild(document.createTextNode(a.nodeValue.replaceAll(t,n)),a)})};return i(B),B.innerHTML},j=e=>(e=String(e).replaceAll(/\s+/g,""),["#fff","#ffffff","#FFF","#FFFFFF","rgb(255,255,255)"].includes(e)||/rgba\(255,255,255,[^)]+\)/.test(e)),H=e=>(e=String(e).replaceAll(/\s+/g,""),["","transparent"].includes(e)||/rgba\(\d+,\d+,\d+,0\)/.test(e)),G=e=>{let{lineColor:t,root:n,second:i,node:a}=e,o=[t,n.fillColor,n.color,i.fillColor,i.color,a.fillColor,a.color,n.borderColor,i.borderColor,a.borderColor];for(let r=0;r{Y||(Y=document.createElement("div")),Y.innerHTML=e;const t=Y.childNodes;let n="";for(let i=0;i{W||(W=document.createElement("div")),W.innerHTML=e;const t=W.childNodes;let n=[],i="";for(let a=0;a`

${ce(e)}

`).join("")},K=(e,t)=>{const n={};return Object.keys(t).forEach(i=>{const a=e[i],o=t[i];if(_(a)===_(o)){if("Object"===_(a)){if(JSON.stringify(a)!==JSON.stringify(o))return void(n[i]=o)}else if(a!==o)return void(n[i]=o)}else n[i]=o}),n},Q=e=>!/^_/.test(e)&&!a["i"].includes(e),J=e=>e.reduce((e,t)=>{const n=e.find(e=>e.type===t.type);return n?t.list.forEach(e=>{const t=n.list.find(t=>t.name===e.name);t?t.icon=e.icon:n.list.push(e)}):e.push({...t}),e},[]),X=e=>{let t=[];return e.forEach(n=>{e.find(e=>e.uid!==n.uid&&e.isAncestor(n))||t.push(n)}),t},V=e=>{const t={},n={};e.forEach(e=>{const i=e.parent;if(i){const a=i.uid;n[a]=i;const o=e.getIndexInBrothers(),r={node:e,index:o};t[a]?t[a].find(e=>e.index===r.index)||t[a].push(r):t[a]=[r]}});const i=[];return Object.keys(t).forEach(e=>{if(t[e].length>1){const a=t[e].map(e=>e.index).sort((e,t)=>e-t);i.push({node:n[e],range:[a[0],a[a.length-1]]})}else i.push({node:t[e][0].node})}),i},q=(e,t,n,i,a,o,r,l)=>t>a&&o>e&&i>r&&l>n,ee=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),n.collapse(),t.removeAllRanges(),t.addRange(n)},te=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)},ne=(e,t={})=>{const n=e=>{e.forEach(e=>{e.data={...e.data,...t},e.children&&e.children.length>0&&n(e.children)})};return n(e),e},ie=(e,t=!1)=>{const n=e=>{e.forEach(e=>{e.data||(e.data={}),(t||M(e.data.uid))&&(e.data.uid=L()),e.children&&e.children.length>0&&n(e.children)})};return n(e),e},ae=e=>e?Array.isArray(e)?e:[e]:[],oe=e=>e.parent?e.parent.nodeData.children.findIndex(t=>t.data.uid===e.uid):0,re=(e,t)=>t.findIndex(t=>t.uid===e.uid),le=e=>{let t=0;for(let a=0;a([["&","&"],["<","<"],[">",">"]].forEach(t=>{e=e.replace(new RegExp(t[0],"g"),t[1])}),e),de=(e,t)=>{const n=_(e);if(n!==_(t))return!1;if("Object"===n){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let a=0;a{navigator.clipboard&&navigator.clipboard.writeText(JSON.stringify(e))},ue=async()=>{let e=null,t=null;if(navigator.clipboard){e=await navigator.clipboard.readText();const n=await navigator.clipboard.read();if(n&&n.length>0)for(const e of n)for(const n of e.types)if(/^image\//.test(n)){t=await e.getType(n);break}}return{text:e,img:t}},he=e=>{if(!e||!e.parent)return;const t=oe(e);-1!==t&&e.parent.nodeData.children.splice(t,1)},pe=e=>(a["j"].forEach(t=>{e=e.replaceAll(new RegExp(`<${t}([^>]*)>`,"g"),`<${t} $1 />`)}),e),me=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;nt.uid===e[n].uid))return!1;return!0}},2634:function(e,t,n){"use strict";n("177f")},"365c":function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"f",(function(){return m})),n.d(t,"b",(function(){return f})),n.d(t,"g",(function(){return g})),n.d(t,"c",(function(){return v}));var i=n("5848"),a=n("1e42"),o=n("2b0e");const r="SIMPLE_MIND_MAP_DATA",l="SIMPLE_MIND_MAP_LANG",c="SIMPLE_MIND_MAP_LOCAL_CONFIG";let d=null;const s=(e,t)=>(e.data=Object(a["ab"])(t.data),e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,n)=>{e.children[n]=s({},t)}),e),u=()=>{if(window.takeOverApp)return d=window.takeOverAppMethods.getMindMapData(),d;let e=localStorage.getItem(r);if(null===e)return Object(a["ab"])(i["a"]);try{return JSON.parse(e)}catch(t){return Object(a["ab"])(i["a"])}},h=e=>{try{let t=null;if(t=window.takeOverApp?d:u(),t.root=s({},e),window.takeOverApp)return d=t,void window.takeOverAppMethods.saveMindMapData(t);o["default"].prototype.$bus.$emit("write_local_file",t);let n=JSON.stringify(t);localStorage.setItem(r,n)}catch(t){console.log(t)}},p=e=>{try{let t=null;if(t=window.takeOverApp?d:u(),t={...t,...e},window.takeOverApp)return d=t,void window.takeOverAppMethods.saveMindMapData(t);o["default"].prototype.$bus.$emit("write_local_file",t);let n=JSON.stringify(t);localStorage.setItem(r,n)}catch(t){console.log(t)}},m=e=>{window.takeOverApp?window.takeOverAppMethods.saveLanguage(e):localStorage.setItem(l,e)},f=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLanguage()||"zh";let e=localStorage.getItem(l);return e||(m("zh"),"zh")},g=e=>{if(window.takeOverApp)return window.takeOverAppMethods.saveLocalConfig(e);localStorage.setItem(c,JSON.stringify(e))},v=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLocalConfig();let e=localStorage.getItem(c);return e?JSON.parse(e):null}},4013:function(e,t,n){"use strict";n.d(t,"k",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return r})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"d",(function(){return d})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return h})),n.d(t,"j",(function(){return p}));const i=[{name:"默认",value:"default",dark:!1},{name:"暗色2",value:"dark2",dark:!0},{name:"天清绿",value:"skyGreen",dark:!1},{name:"脑图经典2",value:"classic2",dark:!1},{name:"脑图经典3",value:"classic3",dark:!1},{name:"经典绿",value:"classicGreen",dark:!1},{name:"经典蓝",value:"classicBlue",dark:!1},{name:"天空蓝",value:"blueSky",dark:!1},{name:"脑残粉",value:"brainImpairedPink",dark:!1},{name:"暗色",value:"dark",dark:!0},{name:"泥土黄",value:"earthYellow",dark:!1},{name:"清新绿",value:"freshGreen",dark:!1},{name:"清新红",value:"freshRed",dark:!1},{name:"浪漫紫",value:"romanticPurple",dark:!1},{name:"粉红葡萄",value:"pinkGrape",dark:!1},{name:"薄荷",value:"mint",dark:!1},{name:"金色vip",value:"gold",dark:!1},{name:"活力橙",value:"vitalityOrange",dark:!1},{name:"绿叶",value:"greenLeaf",dark:!1},{name:"脑图经典",value:"classic",dark:!0},{name:"脑图经典4",value:"classic4",dark:!1},{name:"小黄人",value:"minions",dark:!1},{name:"简约黑",value:"simpleBlack",dark:!1},{name:"课程绿",value:"courseGreen",dark:!1},{name:"咖啡",value:"coffee",dark:!1},{name:"红色精神",value:"redSpirit",dark:!1},{name:"黑色幽默",value:"blackHumour",dark:!0},{name:"深夜办公室",value:"lateNightOffice",dark:!0},{name:"黑金",value:"blackGold",dark:!0},{name:"牛油果",value:"avocado",dark:!1},{name:"秋天",value:"autumn",dark:!1},{name:"橙汁",value:"orangeJuice",dark:!0}],a={CHANGE_THEME:"changeTheme",CHANGE_LAYOUT:"changeLayout",SET_DATA:"setData",TRANSFORM_TO_NORMAL_NODE:"transformAllNodesToNormalNode",MODE:{READONLY:"readonly",EDIT:"edit"},LAYOUT:{LOGICAL_STRUCTURE:"logicalStructure",MIND_MAP:"mindMap",ORGANIZATION_STRUCTURE:"organizationStructure",CATALOG_ORGANIZATION:"catalogOrganization",TIMELINE:"timeline",TIMELINE2:"timeline2",FISHBONE:"fishbone",VERTICAL_TIMELINE:"verticalTimeline"},DIR:{UP:"up",LEFT:"left",DOWN:"down",RIGHT:"right"},KEY_DIR:{LEFT:"Left",UP:"Up",RIGHT:"Right",DOWN:"Down"},SHAPE:{RECTANGLE:"rectangle",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",ROUNDED_RECTANGLE:"roundedRectangle",OCTAGONAL_RECTANGLE:"octagonalRectangle",OUTER_TRIANGULAR_RECTANGLE:"outerTriangularRectangle",INNER_TRIANGULAR_RECTANGLE:"innerTriangularRectangle",ELLIPSE:"ellipse",CIRCLE:"circle"},MOUSE_WHEEL_ACTION:{ZOOM:"zoom",MOVE:"move"},INIT_ROOT_NODE_POSITION:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom",CENTER:"center"},LAYOUT_GROW_DIR:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"},PASTE_TYPE:{CLIP_BOARD:"clipBoard",CANVAS:"canvas"},SCROLL_BAR_DIR:{VERTICAL:"vertical",HORIZONTAL:"horizontal"},CREATE_NEW_NODE_BEHAVIOR:{DEFAULT:"default",NOT_ACTIVE:"notActive",ACTIVE_ONLY:"activeOnly"}},o={[a.INIT_ROOT_NODE_POSITION.LEFT]:0,[a.INIT_ROOT_NODE_POSITION.TOP]:0,[a.INIT_ROOT_NODE_POSITION.RIGHT]:1,[a.INIT_ROOT_NODE_POSITION.BOTTOM]:1,[a.INIT_ROOT_NODE_POSITION.CENTER]:.5},r=[{name:"逻辑结构图",value:a.LAYOUT.LOGICAL_STRUCTURE},{name:"思维导图",value:a.LAYOUT.MIND_MAP},{name:"组织结构图",value:a.LAYOUT.ORGANIZATION_STRUCTURE},{name:"目录组织图",value:a.LAYOUT.CATALOG_ORGANIZATION},{name:"时间轴",value:a.LAYOUT.TIMELINE},{name:"时间轴2",value:a.LAYOUT.TIMELINE2},{name:"竖向时间轴",value:a.LAYOUT.VERTICAL_TIMELINE},{name:"鱼骨图",value:a.LAYOUT.FISHBONE}],l=[a.LAYOUT.LOGICAL_STRUCTURE,a.LAYOUT.MIND_MAP,a.LAYOUT.CATALOG_ORGANIZATION,a.LAYOUT.ORGANIZATION_STRUCTURE,a.LAYOUT.TIMELINE,a.LAYOUT.TIMELINE2,a.LAYOUT.VERTICAL_TIMELINE,a.LAYOUT.FISHBONE],c=["text","image","imageTitle","imageSize","icon","tag","hyperlink","hyperlinkTitle","note","expand","isActive","generalization","richText","resetRichText","uid","activeStyle","associativeLineTargets","associativeLineTargetControlOffsets","associativeLinePoint","associativeLineText"],d={measureCustomNodeContentSizeEl:null,measureRichtextNodeTextSizeEl:null},s={READ_CLIPBOARD_ERROR:"read_clipboard_error",PARSE_PASTE_DATA_ERROR:"parse_paste_data_error",CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR:"custom_handle_clipboard_text_error",LOAD_CLIPBOARD_IMAGE_ERROR:"load_clipboard_image_error",BEFORE_TEXT_EDIT_ERROR:"before_text_edit_error",EXPORT_ERROR:"export_error",EXPORT_LOAD_IMAGE_ERROR:"export_load_image_error"},u={width:592.28,height:841.89},h="\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:not(.smm-node-dragging):hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n",p=["img","br","hr","input","link","meta","area"]},"41cb":function(e,t,n){"use strict";n("14d9");var i=n("2b0e"),a=n("8c4f"),o=function(){var e=this,t=e._self._c;return t("div",{staticClass:"docContainer"},[t("Header"),t("div",{staticClass:"content"},[t("Sidebar"),t("div",{ref:"doc",staticClass:"doc",attrs:{id:"doc"},on:{scroll:e.onScroll}},[t("router-view")],1),t("CatalogBar",{attrs:{scrollTop:e.scrollTop},on:{scroll:e.doScroll}})],1)],1)},r=[],l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"headerContainer"},[t("div",{staticClass:"left"},[t("div",{staticClass:"title",on:{click:e.toIndex}},[t("img",{attrs:{src:n("440d"),alt:""}}),e._v(" SimpleMindMap ")])]),t("div",{staticClass:"center"},[t("div",{staticClass:"btn",on:{click:e.toIndex}},[e._v(e._s(e.index))]),t("div",{staticClass:"btn",on:{click:e.toDemo}},[e._v(e._s(e.demoName))]),t("div",{staticClass:"btn",class:{active:"help"===e.docType},on:{click:e.toHelp}},[e._v(" "+e._s(e.helpDoc)+" ")]),t("div",{staticClass:"btn",class:{active:"doc"===e.docType},on:{click:e.toDev}},[e._v(" "+e._s(e.devDoc)+" ")]),"doc"===e.docType?t("el-dropdown",{attrs:{trigger:"click",placement:"bottom-start"},on:{command:e.handleCommand}},[t("span",{staticClass:"translateBtn"},[e._v(" "+e._s(e.currentLangName)),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},e._l(e.otherLangList,(function(n){return t("el-dropdown-item",{key:n.path,attrs:{command:n.path}},[e._v(e._s(n.name))])})),1)],1):e._e(),e._m(0)],1),t("div",{staticClass:"right"})])},c=[function(){var e=this,t=e._self._c;return t("a",{attrs:{href:"https://github.com/wanglin2/mind-map",target:"_blank"}},[t("span",{staticClass:"iconfont icongithub"})])}],d=[{lang:"zh",children:[{path:"associativeLine",title:"AssociativeLine 插件"},{path:"batchExecution",title:"BatchExecution实例"},{path:"changelog",title:"Changelog"},{path:"command",title:"Command实例"},{path:"constructor",title:"构造函数"},{path:"course1",title:"基本使用"},{path:"course2",title:"操作节点内容"},{path:"course3",title:"插入/删除节点、前进回退"},{path:"course4",title:"设置节点样式"},{path:"course5",title:"设置基础样式"},{path:"course6",title:"显示水印"},{path:"course7",title:"开启节点自由拖拽"},{path:"course8",title:"开启节点富文本编辑"},{path:"course9",title:"修改鼠标滚轮的行为"},{path:"course10",title:"主题"},{path:"course11",title:"结构"},{path:"course12",title:"如何渲染一个大纲"},{path:"course13",title:"快捷键"},{path:"course14",title:"如何渲染一个小地图"},{path:"course15",title:"如何渲染一个右键菜单"},{path:"course16",title:"如何渲染富文本的悬浮工具栏"},{path:"course17",title:"导入和导出"},{path:"course18",title:"如何持久化数据"},{path:"course19",title:"插入和扩展节点图标"},{path:"course20",title:"如何自定义节点内容"},{path:"course21",title:"如何复制、剪切、粘贴"},{path:"course22",title:"如何实现搜索、替换"},{path:"course23",title:"如何渲染滚动条"},{path:"course24",title:"如何开发一个插件"},{path:"course25",title:"关于概要"},{path:"doExport",title:"Export 插件"},{path:"drag",title:"Drag插件"},{path:"introduction",title:"简介"},{path:"keyCommand",title:"KeyCommand实例"},{path:"keyboardNavigation",title:"KeyboardNavigation插件"},{path:"markdown",title:"Markdown解析"},{path:"miniMap",title:"MiniMap插件"},{path:"node",title:"Node实例"},{path:"render",title:"Render实例"},{path:"richText",title:"RichText插件"},{path:"select",title:"Select 插件 "},{path:"start",title:"开始"},{path:"translate",title:"贡献"},{path:"utils",title:"内置工具方法"},{path:"view",title:"View实例"},{path:"watermark",title:"Watermark插件"},{path:"xmind",title:"XMind解析"},{path:"deploy",title:"部署"},{path:"client",title:"客户端"},{path:"touchEvent",title:"TouchEvent插件"},{path:"nodeImgAdjust",title:"NodeImgAdjust插件"},{path:"search",title:"Search插件"},{path:"painter",title:"Painter插件"},{path:"painter",title:"Painter插件"},{path:"scrollbar",title:"Scrollbar插件"},{path:"formula",title:"Formula插件"},{path:"cooperate",title:"Cooperate插件"},{path:"help1",title:"概要/关联线"},{path:"help2",title:"客户端"},{path:"help3",title:"打开预览在线文件"},{path:"help4",title:"复制粘贴"},{path:"help5",title:"导出"}]},{lang:"en",children:[{path:"associativeLine",title:"AssociativeLine plugin"},{path:"batchExecution",title:"batchExecution instance"},{path:"changelog",title:"Changelog"},{path:"command",title:"command instance"},{path:"constructor",title:"Constructor"},{path:"doExport",title:"Export plugin"},{path:"drag",title:"Drag plugin"},{path:"introduction",title:"Introduction"},{path:"keyCommand",title:"KeyCommand instance"},{path:"keyboardNavigation",title:"KeyboardNavigation plugin"},{path:"markdown",title:"Markdown parse"},{path:"miniMap",title:"MiniMap plugin"},{path:"node",title:"Node instance"},{path:"render",title:"Render instance"},{path:"richText",title:"RichText plugin"},{path:"select",title:"Select plugin"},{path:"start",title:"Start"},{path:"translate",title:"Contribute"},{path:"utils",title:"Utility Methods"},{path:"view",title:"View instance"},{path:"watermark",title:"Watermark plugin"},{path:"xmind",title:"XMind parse"},{path:"deploy",title:"Deploy"},{path:"touchEvent",title:"TouchEvent plugin"},{path:"nodeImgAdjust",title:"NodeImgAdjust plugin"},{path:"search",title:"Search plugin"},{path:"painter",title:"Painter plugin"},{path:"scrollbar",title:"Scrollbar plugin"},{path:"formula",title:"Formula plugin"},{path:"cooperate",title:"Cooperate plugin"},{path:"client",title:"Client"}]}];let s=[{name:"中文",path:"zh"},{name:"English",path:"en"}],u=["introduction","start","deploy","client","translate","changelog"],h=new Array(25).fill(0).map((e,t)=>"course"+(t+1)),p=["constructor","node","render","view","keyCommand","command","batchExecution","richText","select","drag","keyboardNavigation","doExport","miniMap","watermark","associativeLine","touchEvent","nodeImgAdjust","search","painter","scrollbar","formula","cooperate","xmind","markdown","utils"],m=new Array(5).fill(0).map((e,t)=>"help"+(t+1));const f=(e,t)=>{let n=d.find(t=>t.lang===e),i=n.children;return t.filter(e=>i.find(t=>t.path===e)).map(e=>({path:e,name:i.find(t=>t.path===e).title}))};var g={zh:[{groupName:"开始",type:"doc",list:f("zh",u)},{groupName:"教程",type:"doc",list:f("zh",h)},{groupName:"API",type:"doc",list:f("zh",p)},{groupName:"使用帮助",type:"help",list:f("zh",m)}],en:[{groupName:"Start",type:"doc",list:f("en",u)},{groupName:"Course",type:"doc",list:f("zh",h)},{groupName:"API",type:"doc",list:f("en",p)}]};const v={pageCatalog:{zh:"本页目录",en:"Page catalog"},demo:{zh:"在线示例",en:"Online Demo"},help:{zh:"帮助文档",en:"Help doc"},dev:{zh:"开发文档",en:"Dev doc"},index:{zh:"首页",en:"Home"}},T=(e,t)=>v[e]?v[e][t]||v[e].zh:"";var k=T,x={data(){return{docType:"",lang:"",currentLangName:"",otherLangList:[]}},computed:{demoName(){return k("demo",this.lang)},helpDoc(){return k("help",this.lang)},devDoc(){return k("dev",this.lang)},index(){return k("index",this.lang)}},watch:{$route(){this.init()}},created(){this.init()},methods:{init(){let e=/^\/([^\/]+)\//.exec(this.$route.path);e&&e[1]&&(this.docType=e[1]);let t=/^\/doc\/([^\/]+)\//.exec(this.$route.path);if(t&&t[1]){this.lang=t[1];let e=s.find(e=>e.path===this.lang);this.currentLangName=e.name,this.otherLangList=s.filter(e=>e.path!==this.lang)}},toIndex(){this.$router.push("/index")},toDemo(){this.$router.push("/")},handleCommand(e){let t=this.$route.path.replace(/^\/doc\/([^\/]+)\//,(...t)=>`/doc/${e}/`);this.$router.push(t)},toHelp(){this.lang="zh",this.$router.replace("/help/zh/")},toDev(){this.$router.replace("/doc/zh/")}}},b=x,A=(n("c360"),n("2877")),y=Object(A["a"])(b,l,c,!1,null,"1c36e28e",null),w=y.exports,C=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sideBarContainer"},[t("div",{staticClass:"catalogGroupList"},e._l(e.groupList,(function(n,i){return t("div",{key:i,staticClass:"catalogGroup"},[t("div",{staticClass:"catalogGroupName"},[e._v(e._s(n.groupName))]),t("div",{staticClass:"catalogList"},e._l(n.list,(function(n){return t("div",{key:i+n.path,staticClass:"catalogItem",class:{active:n.path===e.currentPath},on:{click:function(t){return e.jump(n)}}},[e._v(" "+e._s(n.name)+" ")])})),0)])})),0)])},O=[],N={data(){return{groupList:[],lang:"",currentPath:"",type:""}},created(){this.initCatalog()},watch:{$route(){this.initCatalog()}},methods:{jump(e){e.path!==this.currentPath&&this.$router.push(`/${this.type}/${this.lang}/${e.path}`)},initCatalog(){let e=/^\/(doc|help)\/([^\/]+)\//.exec(this.$route.path);e&&e[2]&&(this.type=e[1],this.lang=e[2],this.groupList=g[this.lang].filter(e=>e.type===this.type));let t=/^\/(doc|help)\/[^\/]+\/([^\/]+)(\/|$)/.exec(this.$route.path);t&&t[2]&&(this.currentPath=t[2])}}},E=N,I=(n("c639"),Object(A["a"])(E,C,O,!1,null,"73f8f4b5",null)),L=I.exports,R=function(){var e=this,t=e._self._c;return t("div",{staticClass:"catalogBarContainer"},[t("div",{staticClass:"catalogBarTitle"},[e._v(e._s(e.pageCatalogTitle))]),t("div",{staticClass:"catalogList"},[e._l(e.list,(function(n,i){return t("div",{key:n.title+i,staticClass:"catalogItem",class:{active:n.title===e.activeCatalog},on:{click:function(t){return e.scrollTo(n,i)}}},[e._v(" "+e._s(n.title)+" ")])})),-1!==e.activeCatalogIndex?t("div",{staticClass:"activeBar",style:{top:4+28*e.activeCatalogIndex+"px"}}):e._e()],2)])},S=[],_={props:{scrollTop:{type:Number}},data(){return{lang:"",list:[],activeCatalog:"",activeCatalogIndex:-1,appointCatalog:!0}},computed:{pageCatalogTitle(){return k("pageCatalog",this.lang)}},watch:{$route(e,t){this.initLang(),this.initCatalogList(e.path,t.path)},scrollTop(){this.onScroll()},lang(e,t){t&&this.initCatalogList()}},mounted(){this.initLang(),this.initCatalogList(),this.scrollToCatalog()},methods:{initLang(){let e=/^\/(doc|help)\/([^\/]+)\//.exec(this.$route.path);e&&e[2]&&(this.lang=e[2])},initCatalogList(e,t){let n=/^\/(doc|help)\/[^\/]+\/([^\/]+)/.exec(e),i=/^\/(doc|help)\/[^\/]+\/([^\/]+)/.exec(t);if(!e&&!t||n[2]!==i[2]){this.$emit("scroll",0),this.resetActive();let e=document.getElementById("doc"),t=document.querySelectorAll("#doc h2");this.list=Array.from(t).map(t=>({title:t.textContent,top:t.offsetTop-e.offsetTop}))}},scrollToCatalog(){let e=/^\/(doc|help)\/[^\/]+\/[^\/]+\/([^\/]+)($|\/)/.exec(this.$route.path);if(e&&e[2]){let t=decodeURIComponent(e[2]),n=this.list.find(e=>e.title===t),i=this.list.findIndex(e=>e.title===t);n&&(this.activeCatalog=n.title,this.activeCatalogIndex=i,this.$emit("scroll",n.top))}},scrollTo(e,t){this.appointCatalog=!0,this.routeToNewCatalog(e.title),this.$nextTick(()=>{this.activeCatalog=e.title,this.activeCatalogIndex=t,this.scrollToCatalog()})},routeToNewCatalog(e){let t=this.$route.path,n="";n=e?/^\/(doc|help)\/[^\/]+\/[^\/]+($|\/)$/.test(t)?t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+)($|\/)$/,"$1/"+encodeURIComponent(e)):t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+\/)([^\/]+)($|\/)/,(...t)=>t[1]+encodeURIComponent(e)):t.replace(/^(\/(doc|help)\/[^\/]+\/[^\/]+)($|\/|.*)$/,"$1"),t!==n&&this.$router.push(n)},onScroll(){if(this.appointCatalog)return void(this.appointCatalog=!1);let e=!1;for(let t=0;t=n.top&&(!i||this.scrollTop{try{this.$refs.doc.scrollTop=e}catch(t){console.log(t)}})},onScroll(){this.scrollTop=this.$refs.doc.scrollTop}}}),P=F,B=(n("2634"),Object(A["a"])(P,o,r,!1,null,null,null)),U=B.exports;const j=()=>{let e=d[0].children;for(let t=1;t{n.find(t=>t.path===e.path)||n.push({...e,lang:"zh"})})}};j();const H=(e,t)=>[...d.map(n=>({path:`/${e}/${n.lang}/`,redirect:`/${e}/${n.lang}/${t}/`})),...d.map(t=>({path:`/${e}/${t.lang}/`,component:U,children:t.children.map(e=>({path:e.path+"/:h?",component:()=>n("b834")(`./${e.lang||t.lang}/${e.path}/index.vue`)}))}))];i["default"].use(a["a"]);const G=[{path:"/index",name:"Index",component:()=>n.e("chunk-7babbe51").then(n.bind(null,"9684"))},{path:"/",name:"Edit",component:()=>n.e("chunk-da4aa08c").then(n.bind(null,"5fca"))},...H("doc","introduction"),...H("help","help1")],Y=new a["a"]({routes:G});t["a"]=Y},"440d":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABhVJREFUeF7tW2uME1UU/s4suwjyMBpw1e0UAkYCiWIkasJLScwaoySIrtiZRQJ0CiIRDfEVEuGHkUg0ogHZWdiV3c6ugUA0avCBkaiQSCAmGl8RIp1FBDWCBMGw3TmmsNNOZ2e6nWm3LbT917n33HvOd87cc+537xDK/Edlbj8qAFQi4BJBYHw0OuI8nZsHwnQwpgMcdFH9MBifsmDsr7li6IeHH5z/RyYTL4lXIKCp9QS8CmCSN3/RMRDW6aHw625yJQ+AqKkfAaj3Znh6bwLejUnKHKcxShoAsb1pNQR6sY/iRMcZ/JOjQQbfCKIb7G0EY25MWrKz7/NcoB1A2WDn5lvZML4CMDQ1Db0PZlWXlQ8yTR3oVGeTgWcATLX0O2XE4zOPPvb4t1bZko0AUVMbAbSZymYKYzcwAh3q58S4KzkGY1FMVlpKGoBgW/NYFngSCE8BmJVUloVpurx4r5egEzuapoHpy9QY/IouR54tWQBETW0FsMDJyDjxqGOhyF9eAKjd1jKqpjueTIMM3tklReaWHACBt5vGUTXtBjDGzcAqotpfQ+ETXgAItjddxwIds8js0CXloZICYGxH87U9zMf7M8xtFc9iMXwvuQYQvRQLhVeVFACi1vw1wLenGWLwGhaEagK/YHl/f9PlSF1/QFnbRU3lNGNZkGLy4o6SASCoqSsZWGdViJnru+TIJxdL33/3A3STpT1R5q4g5oOxxsjvTmBcjChjBkDb0sYl7OFBZ+472vD0uZIAYEzrhlqjptpmBE3RpfBBU8HeEjhRCeb8M+LxW+w1QGLQotUBde2b7hUEYVfKMlZ1KRKxW+paDXqBxOA1emNktZNI0QAQo03Pgehli1LzdUlpd1KybuvGm6l60HprUZOd/fwzg57skpSP3foXDYCgpnYyMM9UTBB6xh55dOkRN0Xrtr02pOr8iDkQeCIzT2DCNY4eZT7BhO9g8KHBGLbrkCyfzgRW0QCwl6m6pBRFl6JMmvBIBQDbRqUSAaX2CgQ6t0yhnp5FLGBCdituei+B6UcwH7BvP81eoqYeAHBb7//TuqSMzDRPQRfBvORe0xqHHHyxyjv7j8Xg3bqk3OOaAQqZBoNRdSETtvjxursMN+hSZLvZHoyqc5iQoqeY1+py5Hkn+bw4w0shFNSaNzJ4aT4BYEJLV0hZZAn/QwDGmf8JkGOSotnnLEopbE9P4EGTdHnhD14AEaMtE0Hx700ZJuzpCil3J/47ePQXo1q482jD4r+tcxRtM5Sv/Gzbiu4FYy0JWMWMO6yGuno/uukRIuGdZF/mwmyHBwgA5wBinCKC7tTIzKNBVJt6TZxp7UyR2csOeyNECgqAh/eqYJRYqQKQD1IUQP+cYIEB+A/AWZdAuDrteR5occqGExwgABLb051Ox1xkYGqsUdnXJwXaFsH8HIxkwQnaAehvn+7kPTsdbabB3vSY4OpSp7yEfedOdtf/uWzZmf7ToP+jsYQOWXGC9kIoIehhrUp2tbI3fQuhJh2ggCXFLdDlyNasCyEfh6NZc4IDUQoTsxSTI0k6OtCuziYByfQEYL0uKStKohROKBHQmjUCh/x4vq8MbdelcIP1+ZjW1quMmu6TqWf0hS6FZ7rNVxROUIyq94NoPsAP+wOCtjNxogTe6OhZTf0GwOTetjO6pAzPNE9iOyx0D2/0ckVmsDFsR4UT7Md7FU7QX3jnLpWveiNXTSoRkCuCfuVFTY0CkJK7PYOvdzvwTPQpKCfo1ygvcmKHuhyMN1LFEB5wu/xUlDToxRg/fYNtzbO4ij+z1AKrdSm8xj5WwTlBP8b4kRnX9tbo7qqqtCsv5t0Ac7yicIJ+jPErE9DUNwl4Ik2+l4MsGifo1xi/cqKmngKQfihy4YoMXUnAytQaUSBO0K8hfuX6nBG4DHTZXpJK2HvhQiNoNxiD3YAsGCfo15O5yo3asGHYkJHV60BY4jRWPjjBkr0oaTW4rn3zeIF4MpOxnEAzUmtAGVyVtQJRtpelTRDK/rr8hcWxnD+YMCOhrD+ZsZXE5fnRlAlCWX82l2uNkUm+aIzQQBrlZewKAF7Quhz7/g9P4cNulJCaPwAAAABJRU5ErkJggg=="},"441d":function(e,t,n){"use strict";n("81cc")},"56d7":function(e,t,n){"use strict";n.r(t);var i=n("2b0e"),a=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},o=[],r={name:"App",components:{}},l=r,c=(n("441d"),n("2877")),d=Object(c["a"])(l,a,o,!1,null,null,null),s=d.exports,u=n("41cb"),h=n("c0d6"),p=n("5c96"),m=n.n(p),f=(n("0fae"),n("9c65"),n("0808"),n("6944")),g=n.n(f),v=n("9225"),T=n("365c");i["default"].config.productionTip=!1;const k=new i["default"];i["default"].prototype.$bus=k,i["default"].use(m.a),i["default"].use(g.a);const x=()=>{v["a"].locale=Object(T["b"])(),new i["default"]({render:e=>e(s),router:u["a"],store:h["a"],i18n:v["a"]}).$mount("#app")};window.takeOverApp?(window.initApp=x,window.$bus=k):x()},5848:function(e,t,n){"use strict";const i=()=>({image:"/enJFNMHnedQTYTESGfDkctCp2.jpeg",imageTitle:"图片名称",imageSize:{width:1e3,height:563},icon:["priority_1"],tag:["标签1","标签2"],hyperlink:"http://lxqnsys.com/",hyperlinkTitle:"理想青年实验室",note:"理想青年实验室\n一个有意思的角落"}),a=(i(),i(),{root:{data:{text:"根节点"},children:[{data:{text:"二级节点",generalization:{text:"概要"}},children:[{data:{text:"分支主题"},children:[]},{data:{text:"分支主题"},children:[]}]}]}});t["a"]={...a,theme:{template:"classic4",config:{}},layout:"logicalStructure",config:{}}},"6d72":function(e,t,n){"use strict";n("a7a6")},"81cc":function(e,t,n){},9225:function(e,t,n){"use strict";var i=n("2b0e"),a=n("a925"),o={baseStyle:{title:"BaseStyle",background:"Background",color:"Color",image:"Image",imageRepeat:"Image repeat",imagePosition:"Image position",imageSize:"Image size",line:"Line",width:"Width",style:"Style",lineOfOutline:"Line of outline",nodePadding:"Node padding",nodeMargin:"Node margin",horizontal:"Horizontal",vertical:"Vertical",maximumWidth:"Max width",maximumHeight:"Max height",icon:"Icon",size:"Size",level2Node:"Level2 node",belowLevel2Node:"Below level2 node",nodeBorderType:"Node border style",nodeUseLineStyle:"Use only has bottom border style",otherConfig:"Other config",enableFreeDrag:"Enable node free drag",watermark:"Watermark",showWatermark:"Is show watermark",watermarkDefaultText:"Watermark text",watermarkText:"Watermark text",watermarkTextColor:"Text color",watermarkLineSpacing:"Line spacing",watermarkTextSpacing:"Text spacing",watermarkAngle:"Angle",watermarkTextOpacity:"Text opacity",watermarkTextFontSize:"Font size",isEnableNodeRichText:"Enable node rich text editing",mousewheelAction:"Mouse wheel behavior",zoomView:"Zoom view",moveViewUpDown:"Move view up and down",associativeLine:"Associative line",associativeLineWidth:"Width",associativeLineColor:"Color",associativeLineActiveWidth:"Active width",associativeLineActiveColor:"Active color",mousewheelZoomActionReverse:"Mouse Wheel Zoom",mousewheelZoomActionReverse1:"Zoom out forward and zoom in back",mousewheelZoomActionReverse2:"Zoom in forward and zoom out back",createNewNodeBehavior:"Behavior of creating new node",default:"Active new node and editing",notActive:"Not active new node",activeOnly:"Only active new node but not editing",rootStyle:"Root Node",associativeLineText:"Associative line text",fontFamily:"Font family",fontSize:"Font size",isShowScrollbar:"Is show scrollbar"},color:{moreColor:"More color"},contextmenu:{insertSiblingNode:"Insert sibling node",insertChildNode:"Insert child node",insertParentNode:"Insert parent node",insertSummary:"Insert summary",moveUpNode:"Move up node",moveDownNode:"Move down node",deleteNode:"Delete node",deleteCurrentNode:"Only del cur node",copyNode:"Copy node",cutNode:"Cut node",pasteNode:"Paste node",backCenter:"Back root node",expandAll:"Expand all",unExpandAll:"Un expand all",expandTo:"Expand to",arrangeLayout:"Arrange layout",level1:"Level1",level2:"Level2",level3:"Level3",level4:"Level4",level5:"Level5",level6:"Level6",zenMode:"Zen mode",fitCanvas:"Fit canvas",removeImage:"Remove image",removeHyperlink:"Remove hyperlink",removeNote:"Remove note"},count:{words:"Words",nodes:"Nodes"},dialog:{cancel:"Cancel",confirm:"Confirm"},export:{title:"Export",filename:"Filename",include:"Is include config like theme and structure",dedicatedFile:"Dedicated file",jsonFile:"json file",imageFile:"Image file",svgFile:"svg file",pdfFile:"pdf file",markdownFile:"markdown file",tips:"tips: .smm and .json file can be import",isTransparent:"Background is transparent",pngTips:"tips: Exporting pictures in rich text mode is time-consuming. It is recommended to export to svg format",svgTips:"tips: Exporting pictures in rich text mode is time-consuming",transformingDomToImages:"Converting nodes: ",notifyTitle:"Info",notifyMessage:"If the download is not triggered, check whether it is blocked by the browser",paddingX:"Padding x",paddingY:"Padding y",useMultiPageExport:"Export multi page",defaultFileName:"Mind map"},fullscreen:{fullscreenShow:"Full screen show",fullscreenEdit:"Full screen edit"},import:{title:"Import",selectFile:"Select file",supportFile:"Support .smm、.json、.xmind、.xlsx、.md file",enableFileTip:"Please select .smm、.json、.xmind、.xlsx、.md file",maxFileNum:"At most one file can be selected",notSelectTip:"Please select the file to import",fileContentError:"The file content is incorrect",importSuccess:"Import success",fileParsingFailed:"File parsing failed"},navigatorToolbar:{openMiniMap:"Open mini map",closeMiniMap:"Close mini map",readonly:"Change to eadonly",edit:"Change to edit"},nodeHyperlink:{title:"Link",link:"Href",name:"Name"},nodeIcon:{title:"Icon"},nodeImage:{title:"Image",imgTitle:"Title"},nodeNote:{title:"Note"},nodeTag:{title:"Tag",addTip:"Press Enter to add"},outline:{title:"Outline",nodeDefaultText:"Branch node"},scale:{zoomIn:"Zoom in",zoomOut:"Zoom out"},shortcutKey:{title:"Shortcut key"},strusture:{title:"Strusture"},style:{title:"Node style",normal:"Normal",active:"Active",text:"Text",fontFamily:"Font family",fontSize:"Font size",lineHeight:"Line height",color:"color",addFontWeight:"add font weight",italic:"Italic",textDecoration:"Text decoration",underline:"Underline",none:"None",lineThrough:"Line through",overline:"Overline",border:"Border",style:"Style",width:"Width",borderRadius:"Border radius",background:"Background",shape:"Shape",line:"Line",nodePadding:"Node padding",horizontal:"Horizontal",vertical:"Vertical"},theme:{title:"Theme",classics:"Classics",dark:"Darkness",simple:"Simple",coverTip:"You have currently customized the basic style, do you want to overwrite it?",tip:"Tip",cover:"Cover",reserve:"Reserve"},toolbar:{undo:"Undo",redo:"Redo",insertSiblingNode:"Sibling node",insertChildNode:"Child node",deleteNode:"Delete node",image:"Image",icon:"Icon",link:"Link",note:"Note",tag:"Tag",summary:"Summary",displayOutline:"Display outline",baseStyle:"Base style",theme:"Theme",strusture:"Strusture",newFile:"New file",openFile:"Open file",saveAs:"Save as",import:"Import",export:"Export",shortcutKey:"Shortcut key",associativeLine:"Associative line",painter:"Painter",formula:"Formula",more:"More",selectFileTip:"Please select a file",notSupportTip:"Your browser does not support this feature, or the current page is not using the HTTPS protocol",tip:"Tip",editingLocalFileTipFront:"Currently editing your local【",editingLocalFileTipEnd:"】file",fileContentError:"File content error",fileOpenFailed:"File open failed",defaultFileName:"Mind map",creatingTip:"Creating file"},edit:{newFeatureNoticeTitle:"New feature reminder",newFeatureNoticeMessage:"This update supports node rich text editing, But there are some defects, The most important impact is that the time to export the image is proportional to the number of nodes, Therefore, if you are more dependent on export requirements, you can use【Base style】-【Other config】-【Enable node rich text editing】Set to turn off rich text editing mode.",root:"Root node",splitByWrap:"Is automatically split nodes based on line breaks?",tip:"Tip",yes:"Yes",no:"No"},mouseAction:{tip1:"Current: Left click to drag the canvas, right click to box select nodes",tip2:"Current: Left click to box select nodes, right click to drag the canvas"},search:{searchPlaceholder:"Please enter the search content",replacePlaceholder:"Please enter replacement content",replace:"Replace",replaceAll:"Replace all",cancel:"Cancel"},nodeIconSidebar:{title:"Icon/Sticker",icon:"Icon",sticker:"Sticker"},formulaSidebar:{title:"Formula",placeholder:"Please enter LaTeX syntax",confirm:"Confirm",common:"Common formulas",tip:"Inserting formulas is not supported in non rich text mode"},richTextToolbar:{bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strike",fontFamily:"Font family",fontSize:"Font size",color:"Color",backgroundColor:"Background color",removeFormat:"Clear Style"},other:{loading:"Loading, please wait..."}},r={baseStyle:{title:"基础样式",background:"背景",color:"颜色",image:"图片",imageRepeat:"图片重复",imagePosition:"图片位置",imageSize:"图片大小",line:"连线",width:"粗细",style:"风格",lineOfOutline:"概要的连线",nodePadding:"节点内边距",nodeMargin:"节点外边距",horizontal:"水平",vertical:"垂直",maximumWidth:"显示的最大宽度",maximumHeight:"显示的最大高度",icon:"图标",size:"大小",level2Node:"二级节点",belowLevel2Node:"三级及以下节点",nodeBorderType:"节点边框风格",nodeUseLineStyle:"是否使用只有底边框的风格",otherConfig:"其他配置",enableFreeDrag:"是否开启节点自由拖拽",watermark:"水印",showWatermark:"是否显示水印",watermarkDefaultText:"水印文字",watermarkText:"水印文字",watermarkTextColor:"文字颜色",watermarkLineSpacing:"水印行间距",watermarkTextSpacing:"水印文字间距",watermarkAngle:"旋转角度",watermarkTextOpacity:"文字透明度",watermarkTextFontSize:"文字字号",isEnableNodeRichText:"是否开启节点富文本编辑",mousewheelAction:"鼠标滚轮行为",zoomView:"缩放视图",moveViewUpDown:"上下移动视图",associativeLine:"关联线",associativeLineWidth:"粗细",associativeLineColor:"颜色",associativeLineActiveWidth:"激活粗细",associativeLineActiveColor:"激活颜色",mousewheelZoomActionReverse:"鼠标滚轮缩放",mousewheelZoomActionReverse1:"向前缩小向后放大",mousewheelZoomActionReverse2:"向前放大向后缩小",createNewNodeBehavior:"创建新节点的行为",default:"激活新节点及进入编辑",notActive:"不激活新节点",activeOnly:"只激活新节点,不进入编辑",rootStyle:"根节点",associativeLineText:"关联线文字",fontFamily:"字体",fontSize:"字号",isShowScrollbar:"是否显示滚动条"},color:{moreColor:"更多颜色"},contextmenu:{insertSiblingNode:"插入同级节点",insertChildNode:"插入子级节点",insertParentNode:"插入父节点",insertSummary:"插入概要",moveUpNode:"上移节点",moveDownNode:"下移节点",deleteNode:"删除节点",deleteCurrentNode:"仅删除当前节点",copyNode:"复制节点",cutNode:"剪切节点",pasteNode:"粘贴节点",backCenter:"回到根节点",expandAll:"展开所有",unExpandAll:"收起所有",expandTo:"展开到",arrangeLayout:"一键整理布局",level1:"一级主题",level2:"二级主题",level3:"三级主题",level4:"四级主题",level5:"五级主题",level6:"六级主题",zenMode:"禅模式",fitCanvas:"适应画布",removeImage:"移除图片",removeHyperlink:"移除超链接",removeNote:"移除备注"},count:{words:"字数",nodes:"节点"},dialog:{cancel:"取 消",confirm:"确 定"},export:{title:"导出",filename:"导出文件名称",include:"是否包含主题、结构等配置数据",dedicatedFile:"专有文件",jsonFile:"json文件",imageFile:"图片文件",svgFile:"svg文件",pdfFile:"pdf文件",markdownFile:"markdown文件",tips:"tips:.smm和.json文件可用于导入",isTransparent:"背景是否透明",pngTips:"tips:富文本模式导出图片非常耗时,建议导出为svg格式",svgTips:"tips:富文本模式导出图片非常耗时",transformingDomToImages:"正在转换节点:",notifyTitle:"消息",notifyMessage:"如果没有触发下载,请检查是否被浏览器拦截了",paddingX:"水平内边距",paddingY:"垂直内边距",useMultiPageExport:"是否多页导出",defaultFileName:"思维导图"},fullscreen:{fullscreenShow:"全屏查看",fullscreenEdit:"全屏编辑"},import:{title:"导入",selectFile:"选取文件",supportFile:"支持.smm、.json、.xmind、.xlsx、.md文件",enableFileTip:"请选择.smm、.json、.xmind、.xlsx、.md文件",maxFileNum:"最多只能选择一个文件",notSelectTip:"请选择要导入的文件",fileContentError:"文件内容有误",importSuccess:"导入成功",fileParsingFailed:"文件解析失败"},navigatorToolbar:{openMiniMap:"开启小地图",closeMiniMap:"关闭小地图",readonly:"切换为只读模式",edit:"切换为编辑模式"},nodeHyperlink:{title:"超链接",link:"链接",name:"名称"},nodeIcon:{title:"图标"},nodeImage:{title:"图片",imgTitle:"图片标题"},nodeNote:{title:"备注"},nodeTag:{title:"标签",addTip:"请按回车键添加"},outline:{title:"大纲",nodeDefaultText:"分支节点"},scale:{zoomIn:"放大",zoomOut:"缩小"},shortcutKey:{title:"快捷键"},strusture:{title:"结构"},style:{title:"节点样式",normal:"常态",active:"选中状态",text:"文字",fontFamily:"字体",fontSize:"字号",lineHeight:"行高",color:"颜色",addFontWeight:"加粗",italic:"斜体",textDecoration:"划线",none:"无",underline:"下划线",lineThrough:"中划线",overline:"上划线",border:"边框",style:"样式",width:"宽度",borderRadius:"圆角",background:"背景",shape:"形状",line:"线条",nodePadding:"节点内边距",horizontal:"水平",vertical:"垂直"},theme:{title:"主题",classics:"经典",dark:"深色",simple:"朴素",coverTip:"你当前自定义过基础样式,是否覆盖?",tip:"提示",cover:"覆盖",reserve:"保留"},toolbar:{undo:"回退",redo:"前进",insertSiblingNode:"同级节点",insertChildNode:"子节点",deleteNode:"删除节点",image:"图片",icon:"图标",link:"超链接",note:"备注",tag:"标签",summary:"概要",displayOutline:"显示大纲",baseStyle:"基础样式",theme:"主题",strusture:"结构",newFile:"新建",openFile:"打开",saveAs:"另存为",import:"导入",export:"导出",shortcutKey:"快捷键",associativeLine:"关联线",painter:"格式刷",formula:"公式",more:"更多",selectFileTip:"请选择文件",notSupportTip:"你的浏览器不支持该功能,或者当前页面非https协议",tip:"提示",editingLocalFileTipFront:"当前正在编辑你本机的【",editingLocalFileTipEnd:"】文件",fileContentError:"文件内容有误",fileOpenFailed:"文件打开失败",defaultFileName:"思维导图",creatingTip:"正在创建文件"},edit:{newFeatureNoticeTitle:"新特性提醒",newFeatureNoticeMessage:"本次更新支持了节点富文本编辑,但是存在一定缺陷,最主要的影响是导出为图片的时间和节点数量成正比,所以对导出需求比较依赖的话可以通过【基础样式】-【其他配置】-【是否开启节点富文本编辑】设置关掉富文本编辑模式。",root:"根节点",splitByWrap:"是否按换行自动分割节点?",tip:"提示",yes:"是",no:"否"},mouseAction:{tip1:"当前:左键拖动画布,右键框选节点",tip2:"当前:左键框选节点,右键拖动画布"},search:{searchPlaceholder:"请输入查找内容",replacePlaceholder:"请输入替换内容",replace:"替换",replaceAll:"全部替换",cancel:"取消"},nodeIconSidebar:{title:"图标/贴纸",icon:"图标",sticker:"贴纸"},formulaSidebar:{title:"公式",placeholder:"请输入 LaTeX 语法",confirm:"完成",common:"常用公式",tip:"非富文本模式下不支持插入公式"},richTextToolbar:{bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",fontFamily:"字体",fontSize:"字号",color:"字体颜色",backgroundColor:"背景颜色",removeFormat:"清除样式"},other:{loading:"正在加载,请稍后..."}},l={zh:r,en:o};i["default"].use(a["a"]);const c=new a["a"]({messages:l});t["a"]=c},"9b79":function(e,t,n){},"9c65":function(e,t,n){},a7a6:function(e,t,n){},b1db:function(e,t,n){},b834:function(e,t,n){var i={"./en/associativeLine/index.vue":["708b","chunk-2d0d5cb9"],"./en/batchExecution/index.vue":["ed72","chunk-2d2308b0"],"./en/changelog/index.vue":["a6d3","chunk-2d208ffa"],"./en/client/index.vue":["0247","chunk-2d0a34fb"],"./en/command/index.vue":["9381","chunk-2d0e5089"],"./en/constructor/index.vue":["6a50","chunk-2d0d9fbc"],"./en/cooperate/index.vue":["f2be","chunk-2d22c6c5"],"./en/deploy/index.vue":["b1a3","chunk-2d20f137"],"./en/doExport/index.vue":["c6ec","chunk-2d217907"],"./en/drag/index.vue":["ff2d","chunk-2d238428"],"./en/formula/index.vue":["dec3","chunk-2d229d67"],"./en/introduction/index.vue":["7f29","chunk-7f271756"],"./en/keyCommand/index.vue":["2f7a","chunk-2d0be174"],"./en/keyboardNavigation/index.vue":["328f","chunk-2d0b92c3"],"./en/markdown/index.vue":["8102","chunk-2d0dd3b1"],"./en/miniMap/index.vue":["b98e","chunk-2d210a7a"],"./en/node/index.vue":["c133","chunk-2d216004"],"./en/nodeImgAdjust/index.vue":["48a3","chunk-2d0c226c"],"./en/painter/index.vue":["76a5","chunk-2d0d7809"],"./en/render/index.vue":["8e32","chunk-2d0e9742"],"./en/richText/index.vue":["4947","chunk-2d0c20be"],"./en/scrollbar/index.vue":["a950","chunk-2d209589"],"./en/search/index.vue":["bf42","chunk-2d21b2b8"],"./en/select/index.vue":["ddd1","chunk-2d2299c3"],"./en/start/index.vue":["b407","chunk-2d20f68f"],"./en/touchEvent/index.vue":["a1cd","chunk-2d207d47"],"./en/translate/index.vue":["479a","chunk-2d0c1a01"],"./en/utils/index.vue":["144f","chunk-2d0ab10b"],"./en/view/index.vue":["16c7","chunk-2d0abe0f"],"./en/watermark/index.vue":["27ad","chunk-2d0b361e"],"./en/xmind/index.vue":["f127","chunk-2d22bd06"],"./zh/associativeLine/index.vue":["20fa","chunk-2d0b1c6f"],"./zh/batchExecution/index.vue":["e9ee","chunk-2d226d0a"],"./zh/changelog/index.vue":["9ac1","chunk-2d0f026c"],"./zh/client/index.vue":["92da","chunk-2d0e524c"],"./zh/command/index.vue":["6df4","chunk-2d0db0f2"],"./zh/constructor/index.vue":["6cfb","chunk-2d0dad5f"],"./zh/cooperate/index.vue":["a1ae","chunk-2d207d0a"],"./zh/course1/index.vue":["8e98","chunk-2d0e9802"],"./zh/course10/index.vue":["3f2a","chunk-2d0c5538"],"./zh/course11/index.vue":["33b0","chunk-2d0b9b64"],"./zh/course12/index.vue":["eb27","chunk-2d230098"],"./zh/course13/index.vue":["c1ec","chunk-2d216642"],"./zh/course14/index.vue":["e487","chunk-2d2254a4"],"./zh/course15/index.vue":["fb9a","chunk-2d2375fa"],"./zh/course16/index.vue":["18dc","chunk-2d0ac5dc"],"./zh/course17/index.vue":["4323","chunk-2d0c09f6"],"./zh/course18/index.vue":["91b3","chunk-2d0e4e1f"],"./zh/course19/index.vue":["ae22","chunk-77915045"],"./zh/course2/index.vue":["c187","chunk-2d2160a3"],"./zh/course20/index.vue":["158d","chunk-2d0ab546"],"./zh/course21/index.vue":["e410","chunk-2d2253c4"],"./zh/course22/index.vue":["d013","chunk-2d21d064"],"./zh/course23/index.vue":["a0a8","chunk-2d20791c"],"./zh/course24/index.vue":["2ad8","chunk-2d0bd3f9"],"./zh/course25/index.vue":["e6dd","chunk-2d2261a7"],"./zh/course3/index.vue":["0fcd","chunk-2d0afe0d"],"./zh/course4/index.vue":["32a6","chunk-2d0b978a"],"./zh/course5/index.vue":["3c76","chunk-2d0c4a65"],"./zh/course6/index.vue":["8e25","chunk-2d0e9726"],"./zh/course7/index.vue":["c13f","chunk-2d216037"],"./zh/course8/index.vue":["cc99","chunk-2d221c76"],"./zh/course9/index.vue":["b69b","chunk-2d20ff53"],"./zh/deploy/index.vue":["71bb","chunk-2d0d6590"],"./zh/doExport/index.vue":["1256","chunk-2d0aa978"],"./zh/drag/index.vue":["4604","chunk-2d0c14fc"],"./zh/formula/index.vue":["d53e","chunk-2d21e399"],"./zh/help1/index.vue":["05ec","chunk-2d0a4659"],"./zh/help2/index.vue":["83fa","chunk-2d0de1ec"],"./zh/help3/index.vue":["3de7","chunk-2d0c53b9"],"./zh/help4/index.vue":["f08f","chunk-2d22ba2e"],"./zh/help5/index.vue":["2c65","chunk-2d0bd5e6"],"./zh/introduction/index.vue":["4710","chunk-3cfaaabc"],"./zh/keyCommand/index.vue":["a43c","chunk-2d2082b9"],"./zh/keyboardNavigation/index.vue":["2c18","chunk-2d0bd54e"],"./zh/markdown/index.vue":["08d0","chunk-2d0a514a"],"./zh/miniMap/index.vue":["0168","chunk-2d0a3179"],"./zh/node/index.vue":["433b","chunk-2d0c0a44"],"./zh/nodeImgAdjust/index.vue":["1f8f","chunk-2d0b6d39"],"./zh/painter/index.vue":["5b22","chunk-2d0d2ec3"],"./zh/render/index.vue":["6c31","chunk-2d0da701"],"./zh/richText/index.vue":["35c4","chunk-2d0ba309"],"./zh/scrollbar/index.vue":["3def","chunk-2d0c53e8"],"./zh/search/index.vue":["0503","chunk-2d0a3fbe"],"./zh/select/index.vue":["321a","chunk-2d0b91e5"],"./zh/start/index.vue":["7e57","chunk-2d0e2326"],"./zh/touchEvent/index.vue":["e021","chunk-2d2244e0"],"./zh/translate/index.vue":["1136","chunk-2d0aa579"],"./zh/utils/index.vue":["4738","chunk-2d0c191e"],"./zh/view/index.vue":["82ca","chunk-2d0dddce"],"./zh/watermark/index.vue":["848a","chunk-2d0de01b"],"./zh/xmind/index.vue":["8427","chunk-2d0ddf37"]};function a(e){if(!n.o(i,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=i[e],a=t[0];return n.e(t[1]).then((function(){return n(a)}))}a.keys=function(){return Object.keys(i)},a.id="b834",e.exports=a},c0d6:function(e,t,n){"use strict";var i=n("2b0e"),a=n("2f62"),o=n("5848"),r=n("365c");i["default"].use(a["a"]);const l=new a["a"].Store({state:{mindMapData:null,isHandleLocalFile:!1,localConfig:{isZenMode:!1,openNodeRichText:!0,useLeftKeySelectionRightKeyDrag:!1,isShowScrollbar:!1},activeSidebar:"",isDark:!1,isOutlineEdit:!1,isReadonly:!1},mutations:{setMindMapData(e,t){e.mindMapData=t},setIsHandleLocalFile(e,t){e.isHandleLocalFile=t},setLocalConfig(e,t){e.localConfig={...e.localConfig,...t},Object(r["g"])(e.localConfig)},setActiveSidebar(e,t){e.activeSidebar=t},setIsDark(e,t){e.isDark=t},setIsOutlineEdit(e,t){e.isOutlineEdit=t},setIsReadonly(e,t){e.isReadonly=t}},actions:{getUserMindMapData(e){try{let{data:t}={data:{data:{mindMapData:o["a"]}}};e.commit("setMindMapData",t.data)}catch(t){console.log(t)}}}});t["a"]=l},c360:function(e,t,n){"use strict";n("b1db")},c639:function(e,t,n){"use strict";n("9b79")}}); \ No newline at end of file diff --git a/dist/js/chunk-2d0d9fbc.js b/dist/js/chunk-2d0d9fbc.js index 9274d550..553f456e 100644 --- a/dist/js/chunk-2d0d9fbc.js +++ b/dist/js/chunk-2d0d9fbc.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d9fbc"],{"6a50":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this;e._self._c;return e._m(0)},o=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Constructor")]),t("h2",[e._v("Basic use")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-tag"},[e._v("<"),t("span",{staticClass:"hljs-name"},[e._v("div")]),e._v(" "),t("span",{staticClass:"hljs-attr"},[e._v("id")]),e._v("="),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v(">")]),t("span",{staticClass:"hljs-tag"},[e._v("")]),e._v("\n")])]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v('"simple-mind-map"')]),e._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("el")]),e._v(": "),t("span",{staticClass:"hljs-built_in"},[e._v("document")]),e._v(".getElementById("),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v("),\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"data"')]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"text"')]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v('"Root Node"')]),e._v("\n },\n "),t("span",{staticClass:"hljs-string"},[e._v('"children"')]),e._v(": []\n }\n});\n")])]),t("h2",[e._v("Instantiation options")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")]),t("th",[e._v("Required")])])]),t("tbody",[t("tr",[t("td",[e._v("el")]),t("td",[e._v("Element")]),t("td"),t("td",[e._v("Container element, must be a DOM element")]),t("td",[e._v("Yes")])]),t("tr",[t("td",[e._v("data")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Mind map data, Please refer to the introduction of 【Data structure】 below")]),t("td")]),t("tr",[t("td",[e._v("layout")]),t("td",[e._v("String")]),t("td",[e._v("logicalStructure")]),t("td",[e._v("Layout type, options: logicalStructure (logical structure diagram), mindMap (mind map), catalogOrganization (catalog organization diagram), organizationStructure (organization structure diagram)、timeline(v0.5.4+, timeline)、timeline2(v0.5.4+, up down alternating timeline)、fishbone(v0.5.4+, fishbone diagram)")]),t("td")]),t("tr",[t("td",[e._v("fishboneDeg(v0.5.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("45")]),t("td",[e._v("Set the diagonal angle of the fishbone structure diagram")]),t("td")]),t("tr",[t("td",[e._v("theme")]),t("td",[e._v("String")]),t("td",[e._v("default")]),t("td",[e._v("Theme, options: default, classic, minions, pinkGrape, mint, gold, vitalityOrange, greenLeaf, dark2, skyGreen, classic2, classic3, classic4(v0.2.0+), classicGreen, classicBlue, blueSky, brainImpairedPink, dark, earthYellow, freshGreen, freshRed, romanticPurple, simpleBlack(v0.5.4+), courseGreen(v0.5.4+), coffee(v0.5.4+), redSpirit(v0.5.4+), blackHumour(v0.5.4+), lateNightOffice(v0.5.4+), blackGold(v0.5.4+)、、avocado(v.5.10-fix.2+)、autumn(v.5.10-fix.2+)、orangeJuice(v.5.10-fix.2+)")]),t("td")]),t("tr",[t("td",[e._v("themeConfig")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Theme configuration, will be merged with the selected theme, available fields refer to: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("default.js")])]),t("td")]),t("tr",[t("td",[e._v("scaleRatio")]),t("td",[e._v("Number")]),t("td",[e._v("0.1")]),t("td",[e._v("The incremental scaling ratio")]),t("td")]),t("tr",[t("td",[e._v("maxTag")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The maximum number of tags displayed in the node, any additional tags will be discarded")]),t("td")]),t("tr",[t("td",[e._v("exportPadding")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The padding for exporting images")]),t("td")]),t("tr",[t("td",[e._v("imgTextMargin")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The spacing between the image and text in the node")]),t("td")]),t("tr",[t("td",[e._v("textContentMargin")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The spacing between various text information in the node, such as the spacing between the icon and text")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateStep")]),t("td",[e._v("Number")]),t("td",[e._v("3")]),t("td",[e._v("The canvas offset when mouse moves to the edge during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateLimit")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The distance from the edge when the canvas begins to offset during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("customNoteContentShow(v0.1.6+)")]),t("td",[e._v("Object")]),t("td",[e._v("null")]),t("td",[e._v("Custom node note content display, object type, structure: {show: (noteContent, left, top, node) => {// your display node note logic. node is a new parameter added in v0.8.1+ version, representing node instances }, hide: () => {// your hide node note logic }}")]),t("td")]),t("tr",[t("td",[e._v("readonly(v0.1.7+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether it is read-only mode")]),t("td")]),t("tr",[t("td",[e._v("enableFreeDrag(v0.2.4+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Enable node free(Free drag means that nodes can be dragged to any position on the canvas. Please note that it is not a function of dragging nodes to become siblings of other nodes. The connection of free drag may have certain problems, so it is best not to use this feature) drag")]),t("td")]),t("tr",[t("td",[e._v("watermarkConfig(v0.2.4+)")]),t("td",[e._v("Object")]),t("td"),t("td",[e._v("Watermark config, Please refer to the table 【Watermark config】 below for detailed configuration")]),t("td")]),t("tr",[t("td",[e._v("textAutoWrapWidth(v0.3.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("500")]),t("td",[e._v("Each line of text in the node will wrap automatically when it reaches the width")]),t("td")]),t("tr",[t("td",[e._v("customHandleMousewheel(v0.4.3+)")]),t("td",[e._v("Function")]),t("td",[e._v("null")]),t("td",[e._v("User-defined mouse wheel event processing can pass a function, and the callback parameter is the event object")]),t("td")]),t("tr",[t("td",[e._v("mousewheelAction(v0.4.3+)")]),t("td",[e._v("String")]),t("td",[e._v("zoom(v0.9.1+ default is move)")]),t("td",[e._v("The behavior of the mouse wheel, "),t("code",[e._v("zoom")]),e._v("(Zoom in and out)、"),t("code",[e._v("move")]),e._v("(Move up and down). If "),t("code",[e._v("customHandleMousewheel")]),e._v(" passes a custom function, this property will not take effect")]),t("td")]),t("tr",[t("td",[e._v("mousewheelMoveStep(v0.4.3+)")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("When the "),t("code",[e._v("mousewheelAction")]),e._v(" is set to "),t("code",[e._v("move")]),e._v(", you can use this attribute to control the step length of the view movement when the mouse scrolls. The unit is "),t("code",[e._v("px")])]),t("td")]),t("tr",[t("td",[e._v("mousewheelZoomActionReverse(v0.6.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false(v0.9.1+ default is true)")]),t("td",[e._v("When "),t("code",[e._v("mousewheelAction")]),e._v(" is set to "),t("code",[e._v("zoom")]),e._v(", Or when holding down the Ctrl key, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversed")]),t("td")]),t("tr",[t("td",[e._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("二级节点")]),t("td",[e._v("Text of the default inserted secondary node")]),t("td")]),t("tr",[t("td",[e._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("分支主题")]),t("td",[e._v("Text for nodes below the second level inserted by default")]),t("td")]),t("tr",[t("td",[e._v("expandBtnStyle(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' }")]),t("td",[e._v("Expand the color of the stow button, (The fontSize and strokeColor fields were added in version 0.7.0+to set the text style for displaying the number of nodes when folded)")]),t("td")]),t("tr",[t("td",[e._v("expandBtnIcon(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ open: '', close: '' }")]),t("td",[e._v("Customize the icon of the expand/collapse button, and you can transfer the svg string of the icon")]),t("td")]),t("tr",[t("td",[e._v("expandBtnNumHandler(v0.7.0+)")]),t("td",[e._v("Function")]),t("td"),t("td",[e._v("Used to customize the content of displaying the number of nodes when folding, receiving a parameter that represents the instance of the folding node, and returning a number or string that represents the final displayed content. For example, when the number is greater than 99, 99 can be displayed+")]),t("td")]),t("tr",[t("td",[e._v("isShowExpandNum(v0.7.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Display the number of folded nodes when they are folded up")]),t("td")]),t("tr",[t("td",[e._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Only respond to shortcut key events when the mouse is inside the canvas")]),t("td")]),t("tr",[t("td",[e._v("enableNodeTransitionMove(v0.5.1+)(v0.6.7+ is remove this feature)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable node animation transition")]),t("td")]),t("tr",[t("td",[e._v("nodeTransitionMoveDuration(v0.5.1+)(v0.6.7+ is remove this feature)")]),t("td",[e._v("Number")]),t("td",[e._v("300")]),t("td",[e._v("If node animation transition is enabled, the transition time can be set using this attribute, in milliseconds")]),t("td")]),t("tr",[t("td",[e._v("initRootNodePosition(v0.5.3+)")]),t("td",[e._v("Array")]),t("td",[e._v("null")]),t("td",[e._v("The position of the initial root node can be passed as an array, default is "),t("code",[e._v("['center', 'center']")]),e._v(", Represents the root node at the center of the canvas, In addition to "),t("code",[e._v("center")]),e._v(", keywords can also be set to "),t("code",[e._v("left")]),e._v(", "),t("code",[e._v("top")]),e._v(", "),t("code",[e._v("right")]),e._v(", and "),t("code",[e._v("bottom")]),e._v(", In addition to passing keywords, each item in the array can also pass a number representing a specific pixel, Can pass a percentage string, such as "),t("code",[e._v("['40%', '60%']")]),e._v(", Represents a horizontal position at "),t("code",[e._v("40%")]),e._v(" of the canvas width, and a vertical position at "),t("code",[e._v("60%")]),e._v(" of the canvas height")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingX(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Horizontal padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingY(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Vertical padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("nodeTextEditZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td"),t("td",[e._v("z-index of node text edit box elements")])]),t("tr",[t("td",[e._v("nodeNoteTooltipZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td",[e._v("z-index of floating layer elements in node comments")]),t("td")]),t("tr",[t("td",[e._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to end the editing status of node text when clicking on an area outside the canvas")]),t("td")]),t("tr",[t("td",[e._v("maxHistoryCount(v0.5.6+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000")]),t("td"),t("td",[e._v("Maximum number of history records")])]),t("tr",[t("td",[e._v("alwaysShowExpandBtn(v0.5.8+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to always display the expand and collapse buttons of nodes, which are only displayed when the mouse is moved up and activated by default")]),t("td")]),t("tr",[t("td",[e._v("iconList(v0.5.8+)")]),t("td",[e._v("Array")]),t("td",[e._v("[]")]),t("td",[e._v('The icons that can be inserted into the extension node, and each item in the array is an object. Please refer to the "Icon Configuration" table below for the detailed structure of the object')]),t("td")]),t("tr",[t("td",[e._v("maxNodeCacheCount(v0.5.10+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000")]),t("td",[e._v("The maximum number of cached nodes. To optimize performance, an internal node cache pool is maintained to reuse nodes. This attribute allows you to specify the maximum number of caches in the pool")]),t("td")]),t("tr",[t("td",[e._v("defaultAssociativeLineText(v0.5.11+)")]),t("td",[e._v("String")]),t("td",[e._v("关联")]),t("td",[e._v("Association Line Default Text")]),t("td")]),t("tr",[t("td",[e._v("fitPadding(v0.6.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("50")]),t("td",[e._v("The padding of mind mapping when adapting to canvas size, Unit: px")]),t("td")]),t("tr",[t("td",[e._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable the function of holding down the Ctrl key to select multiple nodes")]),t("td")]),t("tr",[t("td",[e._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Setting to left click to select multiple nodes and right click to drag the canvas.")]),t("td")]),t("tr",[t("td",[e._v("beforeTextEdit(v0.6.0+)")]),t("td",[e._v("Function/null")]),t("td",[e._v("null")]),t("td",[e._v("The callback method before the node is about to enter editing. If the method returns a value other than true, the editing will be canceled. The function can return a value or a promise, and the callback parameter is the node instance")]),t("td")]),t("tr",[t("td",[e._v("isUseCustomNodeContent(v0.6.3+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to customize node content")]),t("td")]),t("tr",[t("td",[e._v("customCreateNodeContent(v0.6.3+)")]),t("td",[e._v("Function/null")]),t("td",[e._v("null")]),t("td",[e._v("If "),t("code",[e._v("isUseCustomNodeContent")]),e._v(" is set to "),t("code",[e._v("true")]),e._v(", then this option needs to be used to pass in a method that receives the node instance "),t("code",[e._v("node")]),e._v(" as a parameter (if you want to obtain data for that node, you can use "),t("code",[e._v("node.nodeData.data")]),e._v("). You need to return the custom node content element, which is the DOM node. If a node does not require customization, you can return "),t("code",[e._v("null")])]),t("td")]),t("tr",[t("td",[e._v("mouseScaleCenterUseMousePosition(v0.6.4-fix.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the mouse zoom centered around the current position of the mouse, otherwise centered around the canvas")]),t("td")]),t("tr",[t("td",[e._v("customInnerElsAppendTo(v0.6.12+)")]),t("td",[e._v("null/HTMLElement")]),t("td",[e._v("null")]),t("td",[e._v("Specify the location where some internal elements (node text editing element, node note display element, associated line text editing element, node image adjustment button element) are added, and default to document.body")]),t("td")]),t("tr",[t("td",[e._v("nodeDragPlaceholderMaxSize(v0.6.12+)")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("When dragging an element, the maximum height of the block indicating the new position of the element")]),t("td")]),t("tr",[t("td",[e._v("enableCreateHiddenInput(v0.6.13+)(v0.6.14+ remove this feature)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is it allowed to create a hidden input box that will be focused when the node is activated for pasting data and automatically entering the text editing state")]),t("td")]),t("tr",[t("td",[e._v("enableAutoEnterTextEditWhenKeydown(v0.6.13+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Does it automatically enter text editing mode when pressing the Chinese, English, or numeric buttons when there is an activation node?")]),t("td")]),t("tr",[t("td",[e._v("richTextEditFakeInPlace(v0.6.13+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Set the rich text node edit box to match the size of the node, creating a pseudo in place editing effect. It should be noted that only when there is only text within the node and the shape is rectangular, can the effect be better")]),t("td")]),t("tr",[t("td",[e._v("customHandleClipboardText(v0.6.14+)")]),t("td",[e._v("Function")]),t("td",[e._v("null")]),t("td",[e._v("Customize the processing of clipboard text. When pressing ctrl+v to paste, it will read the text and images from the user's clipboard. By default, it will only determine whether the text is regular text and node data in simple mind map format. If you want to process data from other mind maps, such as process, zhixi, etc., you can pass a function that takes the text from the current clipboard as a parameter and returns the processed data, which can be of two types: 1.If a pure text is returned, a child node will be directly created with that text; 2.Returns a node object in the following format: { simpleMindMap: true, data: { data: { text: '' }, children: [] } }, The representative is data in simple bind map format, and the node data is in the same format as the simple bind map node data. If your processing logic has asynchronous logic, you can also return a promise")]),t("td")]),t("tr",[t("td",[e._v("errorHandler(v0.6.15+)")]),t("td",[e._v("Function")]),t("td"),t("td",[e._v("Custom error handling functions currently only throw some asynchronous logic errors. Can pass a function that takes two parameters, the first being the wrong type and the second being the wrong object")]),t("td")]),t("tr",[t("td",[e._v("disableMouseWheelZoom(v0.6.15+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Prohibit mouse wheel scaling, you can still use the API for scaling")]),t("td")]),t("tr",[t("td",[e._v("resetCss(v0.6.16+)")]),t("td",[e._v("String")]),t("td",[e._v("* { margin: 0; padding: 0; box-sizing: border-box; }")]),t("td",[e._v("When exporting images and SVGs, the default style overlay for rich text node content, which is embedded in HTML nodes in SVGs, will occur. If not overlaid, the node content will be offset")]),t("td")]),t("tr",[t("td",[e._v("enableDblclickReset(v0.6.17+)(v0.8.0+this attribute has been deleted)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true(v0.7.0+changed to false)")]),t("td",[e._v("Turn on the mouse and double-click to reset the position and zoom of the mind map")]),t("td")]),t("tr",[t("td",[e._v("enableDblclickBackToRootNode(v0.8.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to return to the root node when double clicking with the mouse, that is, to center the display of the root node")]),t("td")]),t("tr",[t("td",[e._v("minExportImgCanvasScale(v0.7.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The scaling factor of canvas when exporting images and PDFs, which is set to the maximum value of window.devicePixelRatio to improve image clarity")]),t("td")]),t("tr",[t("td",[e._v("hoverRectColor(v0.7.0+)")]),t("td",[e._v("String")]),t("td",[e._v("rgb(94, 200, 248)")]),t("td",[e._v("The node mouse hover and the rectangular border color displayed when activated will add a transparency of 0.6 when hovering")]),t("td")]),t("tr",[t("td",[e._v("hoverRectPadding(v0.7.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The distance between the node mouse hover and the displayed rectangular border when activated and the node content")]),t("td")]),t("tr",[t("td",[e._v("selectTextOnEnterEditText(v0.7.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the text selected by default when double-clicking a node to enter node text editing? By default, it will only be selected when creating a new node")]),t("td")]),t("tr",[t("td",[e._v("deleteNodeActive(v0.7.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Enable the function of automatically activating adjacent nodes or parent nodes after deleting nodes")]),t("td")]),t("tr",[t("td",[e._v("autoMoveWhenMouseInEdgeOnDrag(v0.7.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable automatic canvas movement when the mouse moves to the edge of the canvas while dragging nodes")]),t("td")]),t("tr",[t("td",[e._v("fit(v0.7.1-fix.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is the first rendering scaled to fit the canvas size")]),t("td")]),t("tr",[t("td",[e._v("dragMultiNodeRectConfig(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ width: 40, height: 20, fill: '' }")]),t("td",[e._v("The style configuration of the schematic rectangle that moves with the mouse when dragging multiple nodes, passing an object, and the field meanings are the width, height, and fill color of the rectangle")]),t("td")]),t("tr",[t("td",[e._v("dragPlaceholderRectFill(v0.7.2+)")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("The filling color of the schematic rectangle for the new position when dragging nodes. If not transmitted, the default color for the connected line is used")]),t("td")]),t("tr",[t("td",[e._v("dragOpacityConfig(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ cloneNodeOpacity: 0.5, beingDragNodeOpacity: 0.3 }")]),t("td",[e._v("The transparency configuration during node dragging, passing an object, and the field meanings are: the transparency of the cloned node or rectangle that follows the mouse movement, and the transparency of the dragged node")]),t("td")]),t("tr",[t("td",[e._v("tagsColorMap(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("The color of a custom node label can be transferred to an object, where key is the label content to be assigned a color, and value is the color of the label content. If not transferred internally, a corresponding color will be generated based on the label content")]),t("td")]),t("tr",[t("td",[e._v("cooperateStyle(v0.7.3+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ avatarSize: 22, fontSize: 12 }")]),t("td",[e._v("The configuration of personnel avatar style during node collaboration editing, with field meanings as follows: avatar size, and if it is a text avatar, the size of the text")]),t("td")]),t("tr",[t("td",[e._v("associativeLineIsAlwaysAboveNode(v0.8.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the associated line always displayed above the node? If set to false, it will be at the top level when creating and activating the associated line, and in other cases, it will be below the node")]),t("td")]),t("tr",[t("td",[e._v("defaultGeneralizationText(v0.8.0+)")]),t("td",[e._v("String")]),t("td",[e._v("概要")]),t("td",[e._v("Insert default text for summary")]),t("td")]),t("tr",[t("td",[e._v("handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+)")]),t("td",[e._v("Function / null")]),t("td",[e._v("null")]),t("td",[e._v("When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks")]),t("td")]),t("tr",[t("td",[e._v("addHistoryTime(v0.8.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Only one historical record can be added within the specified time to avoid adding unnecessary intermediate states. Unit: ms")]),t("td")]),t("tr",[t("td",[e._v("isDisableDrag(v0.8.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is disable dragging the canvas")]),t("td")]),t("tr",[t("td",[e._v("disableTouchZoom(v0.8.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Prohibit double finger scaling, you can still use the API for scaling, which takes effect on the TouchEvent plugin")]),t("td")]),t("tr",[t("td",[e._v("highlightNodeBoxStyle(v0.9.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' }")]),t("td",[e._v("Highlight box style when the mouse moves into the summary to highlight the node it belongs to")]),t("td")]),t("tr",[t("td",[e._v("createNewNodeBehavior(v0.9.1+)")]),t("td",[e._v("String")]),t("td",[e._v("default")]),t("td",[e._v("Behavior when creating a new node. default(By default, newly created nodes will be activated and enter editing mode. If multiple new nodes are created simultaneously, they will only be activated and will not enter editing mode)、notActive(Do not activate newly created nodes)、activeOnly(Only activate newly created nodes and do not enter editing mode)")]),t("td")])])]),t("h3",[e._v("Data structure")]),t("p",[e._v("The basic data structure is as follows:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {\n "),t("span",{staticClass:"hljs-attr"},[e._v("text")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The text of the node can be rich text, which is in HTML format. In this case, richText should be set to true")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("richText")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("false")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Is the text of the node in rich text mode")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("expand")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("true")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Whether the node is expanded")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("uid")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(","),t("span",{staticClass:"hljs-comment"},[e._v("// The unique ID of the node, which may not be passed, will be generated internally")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("icon")]),e._v(": [], "),t("span",{staticClass:"hljs-comment"},[e._v('// The format of the icon can be found in the "插入和扩展节点图标" section of the tutorial')]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("image")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// URL of the image")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("imageTitle")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The title of the image can be blank")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("imageSize")]),e._v(": { "),t("span",{staticClass:"hljs-comment"},[e._v("// The size of the image")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("width")]),e._v(": "),t("span",{staticClass:"hljs-number"},[e._v("100")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The width of the image, mandatory")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("height")]),e._v(": "),t("span",{staticClass:"hljs-number"},[e._v("100")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The height of the image is mandatory")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("custom")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("false")]),e._v(" "),t("span",{staticClass:"hljs-comment"},[e._v("// If set to true, the display size of the image is not controlled by the theme, and is based on imageSize.width and imageSize.height")]),e._v("\n },\n "),t("span",{staticClass:"hljs-attr"},[e._v("hyperlink")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Hyperlink address")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("hyperlinkTitle")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Title of hyperlink")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("note")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Content of remarks")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("tag")]),e._v(": [], "),t("span",{staticClass:"hljs-comment"},[e._v("// Tag list")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("generalization")]),e._v(": {"),t("span",{staticClass:"hljs-comment"},[e._v("// The summary of the node, if there is no summary, the generalization can be set to null")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("text")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),t("span",{staticClass:"hljs-comment"},[e._v("// Summary Text")]),e._v("\n },\n "),t("span",{staticClass:"hljs-attr"},[e._v("associativeLineTargets")]),e._v(": ["),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v("],"),t("span",{staticClass:"hljs-comment"},[e._v("// If there are associated lines, then it is the uid list of the target node")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("associativeLineText")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(","),t("span",{staticClass:"hljs-comment"},[e._v("// Association Line Text")]),e._v("\n "),t("span",{staticClass:"hljs-comment"},[e._v("// ...For other style fields, please refer to the topic")]),e._v("\n },\n children ["),t("span",{staticClass:"hljs-comment"},[e._v("// Child nodes, with consistent structure and root nodes")]),e._v("\n {\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {},\n "),t("span",{staticClass:"hljs-attr"},[e._v("children")]),e._v(": []\n }\n ]\n}\n")])]),t("p",[e._v("If you want to add custom fields, you can add them to the same level as 'data' and 'children'. If you want to add them to the 'data' object, please use the "),t("code",[e._v("_")]),e._v(" Name your custom field at the beginning, and it will be used internally to determine whether it is a custom field.")]),t("h3",[e._v("Watermark config")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("text")]),t("td",[e._v("String")]),t("td",[e._v("''")]),t("td",[e._v("Watermark text. If it is an empty string, the watermark will not be displayed")])]),t("tr",[t("td",[e._v("lineSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermark lines")])]),t("tr",[t("td",[e._v("textSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermarks in the same row")])]),t("tr",[t("td",[e._v("angle")]),t("td",[e._v("Number")]),t("td",[e._v("30")]),t("td",[e._v("Tilt angle of watermark, range: [0, 90]")])]),t("tr",[t("td",[e._v("textStyle")]),t("td",[e._v("Object")]),t("td",[e._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),t("td",[e._v("Watermark text style")])])])]),t("h3",[e._v("Icon Configuration")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("name")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("The name of the icon group")])]),t("tr",[t("td",[e._v("type")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("Values for icon grouping")])]),t("tr",[t("td",[e._v("list")]),t("td",[e._v("Array")]),t("td"),t("td",[e._v("A list of icons under grouping, with each item in the array being an object, "),t("code",[e._v("{ name: '', icon: '' }")]),e._v(","),t("code",[e._v("name")]),e._v("represents the name of the icon, "),t("code",[e._v("icon")]),e._v("represents the icon, Can be an "),t("code",[e._v("svg")]),e._v(" icon, such as "),t("code",[e._v("")]),e._v(", also can be a image "),t("code",[e._v("url")]),e._v(", or "),t("code",[e._v("base64")]),e._v(" icon, such as "),t("code",[e._v("data:image/png;base64,...")])])])])]),t("h2",[e._v("Static methods")]),t("h3",[e._v("defineTheme(name, config)")]),t("blockquote",[t("p",[e._v("v0.2.23+")])]),t("p",[e._v("Define new theme.")]),t("p",[t("code",[e._v("name")]),e._v(":New theme name")]),t("p",[t("code",[e._v("config")]),e._v(":New theme config")]),t("p",[t("code",[e._v("Simple-mind-map ")]),e._v(" Built-in many themes. In addition, you can register new theme. It is recommended to register before instantiation, so that you can directly use the newly registered theme during instantiation. Use example:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 注册新主题")]),e._v("\nMindMap.defineTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(", {})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 1.实例化时使用新注册的主题")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("theme")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v("\n})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 2.动态切换新主题")]),e._v("\nmindMap.setTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(")\n")])]),t("p",[e._v("For all configurations of theme, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("Default Topic")]),e._v(". The "),t("code",[e._v("defineTheme")]),e._v("method will merge the configuration you passed in with the default configuration. Most of the themes do not need custom many parts. For a typical customized theme configuration, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[e._v("blueSky")]),e._v(".")]),t("h3",[e._v("usePlugin(plugin, opt = {})")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("ul",[t("li",[t("code",[e._v("opt")]),e._v(":v0.4.0+,Plugin options. If a plugin supports custom options, it can be passed in through this parameter.")])]),t("p",[e._v("If you need to use some non-core functions, such as mini map, watermark, etc, you can register plugin through this method. Can be called in chain.")]),t("p",[e._v("Note: The plugin needs to be registered before instantiating "),t("code",[e._v("MindMap")]),e._v(".")]),t("h3",[e._v("hasPlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Get whether a plugin is registered, The index of the plugin in the registered plugin list is returned, If it is "),t("code",[e._v("-1")]),e._v(", it means that the plugin is not registered.")]),t("h2",[e._v("Static props")]),t("h3",[e._v("pluginList")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[e._v("List of all currently registered plugins.")]),t("h2",[e._v("Instance props")]),t("h3",[e._v("el")]),t("p",[e._v("Container element.")]),t("h3",[e._v("opt")]),t("p",[e._v("Config options object.")]),t("h3",[e._v("svg")]),t("blockquote",[t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the SVG() method")])]),t("p",[e._v("Canvas SVG element.")]),t("h3",[e._v("draw")]),t("blockquote",[t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of SVG node")])]),t("p",[e._v("Container element, used to carry content such as nodes and connections.")]),t("h3",[e._v("lineDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for node wiring elements.")]),t("h3",[e._v("nodeDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for node elements.")]),t("h3",[e._v("associativeLineDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Available when the associated line plugin is registered")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for associative line content.")]),t("h3",[e._v("otherDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for other content.")]),t("h3",[e._v("elRect")]),t("p",[e._v("The size and position information of the container element 'el'. The return result of calling the 'getBoundingClientRect()' method.")]),t("h3",[e._v("width")]),t("p",[e._v("The width of the container element 'el'.")]),t("h3",[e._v("height")]),t("p",[e._v("The height of the container element 'el'.")]),t("h3",[e._v("themeConfig")]),t("p",[e._v("Current Theme Configuration.")]),t("h2",[e._v("Instance methods")]),t("h3",[e._v("clearDraw()")]),t("blockquote",[t("p",[e._v("v0.8.0+")])]),t("p",[e._v("Clear "),t("code",[e._v("lineDraw")]),e._v("、"),t("code",[e._v("associativeLineDraw")]),e._v("、"),t("code",[e._v("nodeDraw")]),e._v("、"),t("code",[e._v("otherDraw")]),e._v(" containers.")]),t("h3",[e._v("destroy()")]),t("blockquote",[t("p",[e._v("v0.6.0+")])]),t("p",[e._v("Destroy mind maps. It will remove registered plugins, remove listening events, and delete all nodes on the canvas.")]),t("h3",[e._v("getSvgData({ paddingX = 0, paddingY = 0, ignoreWatermark = false })")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[t("code",[e._v("paddingX")]),e._v(": Padding x")]),t("p",[t("code",[e._v("paddingY")]),e._v(": Padding y")]),t("p",[t("code",[e._v("ignoreWatermark")]),e._v(":v0.8.0+, Do not draw watermarks. If you do not need to draw watermarks, you can pass 'true' because drawing watermarks is very slow")]),t("p",[e._v("Get the "),t("code",[e._v("svg")]),e._v(" data and return an object. The detailed structure is as follows:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n svg, "),t("span",{staticClass:"hljs-comment"},[e._v("// Element, the overall svg element of the mind map graphics, including: svg (canvas container), g (actual mind map group)")]),e._v("\n svgHTML, "),t("span",{staticClass:"hljs-comment"},[e._v("// String, svg string, i.e. html string, can be directly rendered to the small map container you prepared")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("rect")]),e._v(": "),t("span",{staticClass:"hljs-comment"},[e._v("// Object, position, size, etc. of mind map graphics before zoom")]),e._v("\n origWidth, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas width")]),e._v("\n origHeight, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas height")]),e._v("\n scaleX, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, horizontal zoom value of mind map graphics")]),e._v("\n scaleY, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, vertical zoom value of mind map graphics")]),e._v("\n}\n")])]),t("h3",[e._v("render(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Triggers a full rendering, which will reuse nodes for better performance. If only the node positions have changed, this method can be called to "),t("code",[e._v("reRender")]),e._v(".")]),t("h3",[e._v("reRender(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Performs a full re-render, clearing the canvas and creating new nodes. This has poor performance and should be used sparingly.")]),t("h3",[e._v("resize()")]),t("p",[e._v("After the container size has changed, this method should be called to adjust.")]),t("h3",[e._v("setMode(mode)")]),t("blockquote",[t("p",[e._v("v0.1.7+")])]),t("p",[e._v("Switches between readonly and edit mode.")]),t("p",[t("code",[e._v("mode")]),e._v(":readonly、edit")]),t("h3",[e._v("on(event, fn)")]),t("p",[e._v("Listen to an event. Event list:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Event Name")]),t("th",[e._v("Description")]),t("th",[e._v("Callback Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("data_change")]),t("td",[e._v("Tree rendering data change, listen to this method to get the latest data")]),t("td",[e._v("data (current tree rendering data)")])]),t("tr",[t("td",[e._v("view_data_change(v0.1.1+)")]),t("td",[e._v("View change data, such as when dragging or zooming")]),t("td",[e._v("data (current view state data)")])]),t("tr",[t("td",[e._v("back_forward")]),t("td",[e._v("Forward or backward")]),t("td",[e._v("activeHistoryIndex (current index in the history data array), length (current length of the history data array)")])]),t("tr",[t("td",[e._v("draw_click")]),t("td",[e._v("Canvas click event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("svg_mousedown")]),t("td",[e._v("svg canvas mouse down event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("mousedown")]),t("td",[e._v("el element mouse down event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousemove")]),t("td",[e._v("el element mouse move event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("drag")]),t("td",[e._v("If it is a drag event while holding down the left button")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mouseup")]),t("td",[e._v("el element mouse up event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousewheel")]),t("td",[e._v("Mouse scroll event")]),t("td",[e._v("e (event object), dir (up or down scroll), this (Event event class instance) 、isTouchPad(v0.6.1+, Is it an event triggered by the touchpad)")])]),t("tr",[t("td",[e._v("contextmenu")]),t("td",[e._v("svg canvas right mouse button menu event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("node_click")]),t("td",[e._v("Node click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mousedown")]),t("td",[e._v("Node mouse down event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("Node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_dblclick")]),t("td",[e._v("Node double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_contextmenu")]),t("td",[e._v("Node right-click menu event")]),t("td",[e._v("e (event object), this (node instance)")])]),t("tr",[t("td",[e._v("node_mouseenter(v0.4.1+)")]),t("td",[e._v("Node mouseenter event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseleave(v0.4.1+)")]),t("td",[e._v("Node mouseleave event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("before_node_active")]),t("td",[e._v("Event before node activation")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("node_active")]),t("td",[e._v("Node activation event")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("expand_btn_click")]),t("td",[e._v("Node expand or collapse event")]),t("td",[e._v("this (node instance)")])]),t("tr",[t("td",[e._v("before_show_text_edit")]),t("td",[e._v("Event before node text edit box opens")]),t("td")]),t("tr",[t("td",[e._v("hide_text_edit")]),t("td",[e._v("Node text edit box close event")]),t("td",[e._v("textEditNode (text edit box DOM node), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("scale")]),t("td",[e._v("Zoom event")]),t("td",[e._v("scale (zoom ratio)")])]),t("tr",[t("td",[e._v("node_img_dblclick(v0.2.15+)")]),t("td",[e._v("Node image double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_img_mouseenter(v0.6.5+)")]),t("td",[e._v("Node image mouseenter event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_img_mouseleave(v0.6.5+)")]),t("td",[e._v("Node image mouseleave event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_img_mousemove(v0.6.5+)")]),t("td",[e._v("Node image mousemove event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_tree_render_end(v0.2.16+)")]),t("td",[e._v("Node tree render end event")]),t("td")]),t("tr",[t("td",[e._v("rich_text_selection_change(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. Triggered when the text selection area changes when the node is edited")]),t("td",[e._v("hasRange(Whether there is a selection)、rectInfo(Size and location information of the selected area)、formatInfo(Text formatting information of the selected area)")])]),t("tr",[t("td",[e._v("transforming-dom-to-images(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. When there is a "),t("code",[e._v("DOM")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", the "),t("code",[e._v("DOM")]),e._v(" node will be converted to an image when exporting to an image. This event will be triggered during the conversion process. You can use this event to prompt the user about the node to which you are currently converting")]),t("td",[e._v("index(Index of the node currently converted to)、len(Total number of nodes to be converted)")])]),t("tr",[t("td",[e._v("node_dragging(v0.4.5+)")]),t("td",[e._v("Triggered when a node is dragged")]),t("td",[e._v("node(The currently dragged node)")])]),t("tr",[t("td",[e._v("node_dragend(v0.4.5+)")]),t("td",[e._v("Triggered when the node is dragged and ends")]),t("td",[e._v("{ overlapNodeUid, prevNodeUid, nextNodeUid }(v0.6.12+,The node uid to which the node is moved this time, for example, if it is moved to node A, then the overlayNodeUid is the uid of node A. If it is moved to the front of node B, then the nextNodeUid is the uid of node B. You can obtain the node instance through the mindMap. extender.findNodeByUid(uid) method)")])]),t("tr",[t("td",[e._v("associative_line_click(v0.4.5+)")]),t("td",[e._v("Triggered when an associated line is clicked")]),t("td",[e._v("path(Connector node)、clickPath(Invisible click line node)、node(Start node)、toNode(Target node)")])]),t("tr",[t("td",[e._v("svg_mouseenter(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves into the SVG canvas")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("svg_mouseleave(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves out of the SVG canvas")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("node_icon_click(v0.6.10+)")]),t("td",[e._v("Triggered when clicking on an icon within a node")]),t("td",[e._v("this(node instance)、item(Click on the icon name)、e(event object)")])]),t("tr",[t("td",[e._v("view_theme_change(v0.6.12+)")]),t("td",[e._v("Triggered after calling the setTheme method to set the theme")]),t("td",[e._v("theme(theme name)")])]),t("tr",[t("td",[e._v("set_data(v0.7.3+)")]),t("td",[e._v("Triggered when the setData method is called to dynamically set mind map data")]),t("td",[e._v("data(New Mind Map Data)")])]),t("tr",[t("td",[e._v("resize(v0.8.0+)")]),t("td",[e._v("Triggered after the container size changes, actually when the 'resize' method of the mind map instance is called")]),t("td")]),t("tr",[t("td",[e._v("beforeDestroy(v0.9.0+)")]),t("td",[e._v("Triggered before destroying the mind map, i.e. triggered by calling the destroy method")]),t("td")])])]),t("h3",[e._v("emit(event, ...args)")]),t("p",[e._v("Trigger an event, which can be one of the events listed above or a custom event.")]),t("h3",[e._v("off(event, fn)")]),t("p",[e._v("Unbind an event.")]),t("h3",[e._v("setTheme(theme, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Switches the theme. Available themes can be found in the options table above.")]),t("h3",[e._v("getTheme()")]),t("p",[e._v("Gets the current theme.")]),t("h3",[e._v("setThemeConfig(config, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Sets the theme configuration. "),t("code",[e._v("config")]),e._v(" is the same as the "),t("code",[e._v("themeConfig")]),e._v(" option in the options table above.")]),t("h3",[e._v("getCustomThemeConfig()")]),t("p",[e._v("Gets the custom theme configuration.")]),t("h3",[e._v("getThemeConfig(prop)")]),t("p",[e._v("Gets the value of a specific theme configuration property.")]),t("h3",[e._v("getConfig("),t("em",[e._v("prop")]),e._v(")")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("prop")]),e._v(":Get the value of the specified configuration, and return the entire configuration if not passed")]),t("p",[e._v("Get config, That is, "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap (opt)")])]),t("h3",[e._v("updateConfig("),t("em",[e._v("opt")]),e._v(" = {})")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("opt")]),e._v(":Configuration to update")]),t("p",[e._v("Update config,That is update "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap(opt)")]),e._v(",You can only update some data, such as:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("mindMap.updateConfig({\n "),t("span",{staticClass:"hljs-attr"},[e._v("enableFreeDrag")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("true")]),t("span",{staticClass:"hljs-comment"},[e._v("// 开启节点自由拖拽")]),e._v("\n})\n")])]),t("p",[e._v("This method only updates the configuration and has no other side effects, such as triggering canvas re-rendering")]),t("h3",[e._v("getLayout()")]),t("p",[e._v("Gets the current layout structure.")]),t("h3",[e._v("setLayout(layout, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Sets the layout structure. Available values can be found in the "),t("code",[e._v("layout")]),e._v(" field in the options table above.")]),t("h3",[e._v("execCommand(name, ...args)")]),t("p",[e._v("Executes a command, which will add a record to the history stack for undo or redo. All commands are as follows:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Command name")]),t("th",[e._v("Description")]),t("th",[e._v("Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("SELECT_ALL")]),t("td",[e._v("Select all")]),t("td")]),t("tr",[t("td",[e._v("BACK")]),t("td",[e._v("Go back a specified number of steps")]),t("td",[e._v("step (the number of steps to go back, default is 1)")])]),t("tr",[t("td",[e._v("FORWARD")]),t("td",[e._v("Go forward a specified number of steps")]),t("td",[e._v("step (the number of steps to go forward, default is 1)")])]),t("tr",[t("td",[e._v("INSERT_NODE")]),t("td",[e._v("Insert a sibling node, the active node or appoint node will be the operation node. If there are multiple active nodes, only the first one will be effective(v0.7.2+Supports simultaneous insertion of sibling nodes into multiple active nodes)")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(") 、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )、 appointChildren(v0.6.14+, Optional, Specify the child nodes of the newly created node, array type)")])]),t("tr",[t("td",[e._v("INSERT_CHILD_NODE")]),t("td",[e._v("Insert a child node, the active node or appoint node will be the operation node")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(")、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )、 appointChildren(v0.6.14+, Optional, Specify the child nodes of the newly created node, array type)")])]),t("tr",[t("td",[e._v("UP_NODE")]),t("td",[e._v("Move node up, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the first node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("DOWN_NODE")]),t("td",[e._v("Move node down, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the last node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("REMOVE_NODE")]),t("td",[e._v("Remove node, the active node or appoint node will be the operation node")]),t("td",[e._v("appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)")])]),t("tr",[t("td",[e._v("PASTE_NODE")]),t("td",[e._v("Paste node to a node, the active node will be the operation node")]),t("td",[e._v("data (the node data to paste, usually obtained through the renderer.copyNode() and renderer.cutNode() methods)")])]),t("tr",[t("td",[e._v("SET_NODE_STYLE")]),t("td",[e._v("Modify node single style")]),t("td",[e._v("node (the node to set the style of), prop (style property), value (style property value), isActive (v0.7.0+has been abandoned, boolean, whether the style being set is for the active state)")])]),t("tr",[t("td",[e._v("SET_NODE_STYLEs(v0.6.12+)")]),t("td",[e._v("Modify multiple styles of nodes")]),t("td",[e._v("node(the node to set the style of)、style(Style object,key is style prop,value is style value)、isActive(v0.7.0+has been abandoned, boolean, whether the style being set is for the active state)")])]),t("tr",[t("td",[e._v("SET_NODE_ACTIVE")]),t("td",[e._v("Set whether the node is active")]),t("td",[e._v("node (the node to set), active (boolean, whether to activate)")])]),t("tr",[t("td",[e._v("CLEAR_ACTIVE_NODE")]),t("td",[e._v("Clear the active state of the currently active node(s), the active node will be the operation node")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_EXPAND")]),t("td",[e._v("Set whether the node is expanded")]),t("td",[e._v("node (the node to set), expand (boolean, whether to expand)")])]),t("tr",[t("td",[e._v("EXPAND_ALL")]),t("td",[e._v("Expand all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_ALL")]),t("td",[e._v("Collapse all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_TO_LEVEL (v0.2.8+)")]),t("td",[e._v("Expand to a specified level")]),t("td",[e._v("level (the level to expand to, 1, 2, 3...)")])]),t("tr",[t("td",[e._v("SET_NODE_DATA")]),t("td",[e._v("Update node data, that is, update the data in the data object of the node data object")]),t("td",[e._v("node (the node to set), data (object, the data to update, e.g. "),t("code",[e._v("{expand: true}")]),e._v(")")])]),t("tr",[t("td",[e._v("SET_NODE_TEXT")]),t("td",[e._v("Set node text")]),t("td",[e._v("node (the node to set), text (the new text for the node), richText(v0.4.0+, If you want to set a rich text character, you need to set it to "),t("code",[e._v("true")]),e._v(")、resetRichText(v0.6.10+Do you want to reset rich text? The default is false. If true is passed, the style of the rich text node will be reset)")])]),t("tr",[t("td",[e._v("SET_NODE_IMAGE")]),t("td",[e._v("Set Node Image")]),t("td",[e._v("node (node to set), imgData (object, image information, structured as: "),t("code",[e._v("{url, title, width, height}")]),e._v(", the width and height of the image must be passed)")])]),t("tr",[t("td",[e._v("SET_NODE_ICON")]),t("td",[e._v("Set Node Icon")]),t("td",[e._v("node (node to set), icons (array, predefined image names array, available icons can be obtained in the nodeIconList list in the "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[e._v("icons.js")]),e._v(" file, icon name is type_name, such as ['priority_1'])")])]),t("tr",[t("td",[e._v("SET_NODE_HYPERLINK")]),t("td",[e._v("Set Node Hyperlink")]),t("td",[e._v("node (node to set), link (hyperlink address), title (hyperlink name, optional)")])]),t("tr",[t("td",[e._v("SET_NODE_NOTE")]),t("td",[e._v("Set Node Note")]),t("td",[e._v("node (node to set), note (note text)")])]),t("tr",[t("td",[e._v("SET_NODE_TAG")]),t("td",[e._v("Set Node Tag")]),t("td",[e._v("node (node to set), tag (string array, built-in color information can be obtained in "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[e._v("constant.js")]),e._v(")")])]),t("tr",[t("td",[e._v("INSERT_AFTER (v0.1.5+)")]),t("td",[e._v("Move Node to After Another Node")]),t("td",[e._v("node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node)")])]),t("tr",[t("td",[e._v("INSERT_BEFORE (v0.1.5+)")]),t("td",[e._v("Move Node to Before Another Node")]),t("td",[e._v("node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node)")])]),t("tr",[t("td",[e._v("MOVE_NODE_TO (v0.1.5+)")]),t("td",[e._v("Move a node as a child of another node")]),t("td",[e._v("node (the node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), toNode (the target node)")])]),t("tr",[t("td",[e._v("ADD_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Add a node summary")]),t("td",[e._v("data (the data for the summary, in object format, all numerical fields of the node are supported, default is "),t("code",[e._v("{text: 'summary'}")]),e._v(")")])]),t("tr",[t("td",[e._v("REMOVE_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Remove a node summary")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_CUSTOM_POSITION (v0.2.0+)")]),t("td",[e._v("Set a custom position for a node")]),t("td",[e._v("node (the node to set), left (custom x coordinate, default is undefined), top (custom y coordinate, default is undefined)")])]),t("tr",[t("td",[e._v("RESET_LAYOUT (v0.2.0+)")]),t("td",[e._v("Arrange layout with one click")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_SHAPE (v0.2.4+)")]),t("td",[e._v("Set the shape of a node")]),t("td",[e._v("node (the node to set), shape (the shape, all shapes: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[e._v("Shape.js")]),e._v(")")])]),t("tr",[t("td",[e._v("GO_TARGET_NODE(v0.6.7+)")]),t("td",[e._v("Navigate to a node, and if the node is collapsed, it will automatically expand to that node")]),t("td",[e._v("node(Node instance or node uid to locate)、callback(v0.6.9+, Callback function after positioning completion)")])]),t("tr",[t("td",[e._v("INSERT_MULTI_NODE(v0.7.2+)")]),t("td",[e._v("Insert multiple sibling nodes into the specified node at the same time, with the operating node being the currently active node or the specified node")]),t("td",[e._v("appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), nodeList(Data list of newly inserted nodes, array type)")])]),t("tr",[t("td",[e._v("INSERT_MULTI_CHILD_NODE(v0.7.2+)")]),t("td",[e._v("Insert multiple child nodes into the specified node simultaneously, with the operation node being the currently active node or the specified node")]),t("td",[e._v("appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), childList(Data list of newly inserted nodes, array type)")])]),t("tr",[t("td",[e._v("INSERT_FORMULA(v0.7.2+)")]),t("td",[e._v("Insert mathematical formulas into nodes, operate on the currently active node or specified node")]),t("td",[e._v("formula(Mathematical formula to insert, LaTeX syntax), appointNodes(Optional, specify the node to insert the formula into. Multiple nodes can be passed as arrays, otherwise it defaults to the currently active node)")])]),t("tr",[t("td",[e._v("INSERT_PARENT_NODE(v0.8.0+)")]),t("td",[e._v("Insert a parent node into the specified node, with the operation node being the currently active node or the specified node")]),t("td",[e._v("openEdit(Activate the newly inserted node and enter editing mode, default to 'true'`)、 appointNodes(Optional, specify the node to insert into the parent node, and specify that multiple nodes can pass an array)、 appointData(Optional, specify the data for the newly created node, such as {text: 'xxx', ...}, Detailed structure can be referenced "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(")")])]),t("tr",[t("td",[e._v("REMOVE_CURRENT_NODE(v0.8.0+)")]),t("td",[e._v("Delete only the current node, operate on the currently active node or specified node")]),t("td",[e._v("appointNodes(Optional, specify the nodes to be deleted, and multiple nodes can be passed as an array)")])])])]),t("h3",[e._v("setData(data)")]),t("p",[e._v("Dynamic setting of mind map data, pure node data")]),t("p",[t("code",[e._v("data")]),e._v(": mind map structure data")]),t("h3",[e._v("setFullData("),t("em",[e._v("data")]),e._v(")")]),t("blockquote",[t("p",[e._v("v0.2.7+")])]),t("p",[e._v("Dynamic setting of mind map data, including node data, layout, theme, view")]),t("p",[t("code",[e._v("data")]),e._v(": complete data, structure can refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[e._v("exportFullData")])]),t("h3",[e._v("getData(withConfig)")]),t("blockquote",[t("p",[e._v("v0.2.9+")])]),t("p",[e._v("Gets mind map data")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", that is, the obtained data only includes the node tree, if "),t("code",[e._v("true")]),e._v(" is passed, it will also include theme, layout, view, etc. data")]),t("h3",[e._v("export(type, isDownload, fileName)")]),t("blockquote",[t("p",[e._v("You need to register the "),t("code",[e._v("Export")]),e._v(" plugin first")])]),t("p",[e._v("Export")]),t("p",[t("code",[e._v("type")]),e._v(": the type to be exported, optional values: png, svg, json, pdf (v0.2.1+), smm (essentially also json)")]),t("p",[t("code",[e._v("isDownload")]),e._v(": whether to directly trigger download, Boolean value, default is "),t("code",[e._v("false")])]),t("p",[t("code",[e._v("fileName")]),e._v(": (v0.1.6+) the name of the exported file, default is "),t("code",[e._v("思维导图")]),e._v(" (mind map).")]),t("p",[e._v("If it is exported as "),t("code",[e._v("png")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("transparent")]),e._v(": v0.5.7+, "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", Specify whether the background of the exported image is transparent")]),t("p",[e._v("If it is exported as "),t("code",[e._v("svg")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("plusCssText")]),e._v(": Additional "),t("code",[e._v("CSS")]),e._v(" style. If there is a "),t("code",[e._v("dom")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", you can pass in some styles specific to the node through this parameter")]),t("p",[e._v("If it is exported as "),t("code",[e._v("json")]),e._v(" or "),t("code",[e._v("smm")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("true")]),e._v(", Specify whether the exported data includes configuration data, otherwise only pure node tree data will be exported")]),t("h3",[e._v("toPos(x, y)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Convert the coordinates of the browser's visible window to coordinates relative to the canvas.")]),t("h3",[e._v("addPlugin(plugin, opt)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Register plugin, Use "),t("code",[e._v("MindMap.usePlugin")]),e._v(" to register plugin only before instantiation, The registered plugin will not take effect after instantiation, So if you want to register the plugin after instantiation, you can use the "),t("code",[e._v("addPlugin")]),e._v(" method of the instance.")]),t("h3",[e._v("removePlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Remove registered plugin, Plugins registered through the "),t("code",[e._v("usePlugin")]),e._v(" or "),t("code",[e._v("addPlugin")]),e._v(" methods can be removed.")])])}],d={},i=d,s=n("2877"),r=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=r.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d9fbc"],{"6a50":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this;e._self._c;return e._m(0)},o=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Constructor")]),t("h2",[e._v("Basic use")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-tag"},[e._v("<"),t("span",{staticClass:"hljs-name"},[e._v("div")]),e._v(" "),t("span",{staticClass:"hljs-attr"},[e._v("id")]),e._v("="),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v(">")]),t("span",{staticClass:"hljs-tag"},[e._v("")]),e._v("\n")])]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v('"simple-mind-map"')]),e._v(";\n\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("el")]),e._v(": "),t("span",{staticClass:"hljs-built_in"},[e._v("document")]),e._v(".getElementById("),t("span",{staticClass:"hljs-string"},[e._v('"mindMapContainer"')]),e._v("),\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"data"')]),e._v(": {\n "),t("span",{staticClass:"hljs-string"},[e._v('"text"')]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v('"Root Node"')]),e._v("\n },\n "),t("span",{staticClass:"hljs-string"},[e._v('"children"')]),e._v(": []\n }\n});\n")])]),t("h2",[e._v("Instantiation options")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")]),t("th",[e._v("Required")])])]),t("tbody",[t("tr",[t("td",[e._v("el")]),t("td",[e._v("Element")]),t("td"),t("td",[e._v("Container element, must be a DOM element")]),t("td",[e._v("Yes")])]),t("tr",[t("td",[e._v("data")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Mind map data, Please refer to the introduction of 【Data structure】 below")]),t("td")]),t("tr",[t("td",[e._v("layout")]),t("td",[e._v("String")]),t("td",[e._v("logicalStructure")]),t("td",[e._v("Layout type, options: logicalStructure (logical structure diagram), mindMap (mind map), catalogOrganization (catalog organization diagram), organizationStructure (organization structure diagram)、timeline(v0.5.4+, timeline)、timeline2(v0.5.4+, up down alternating timeline)、fishbone(v0.5.4+, fishbone diagram)")]),t("td")]),t("tr",[t("td",[e._v("fishboneDeg(v0.5.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("45")]),t("td",[e._v("Set the diagonal angle of the fishbone structure diagram")]),t("td")]),t("tr",[t("td",[e._v("theme")]),t("td",[e._v("String")]),t("td",[e._v("default")]),t("td",[e._v("Theme, options: default, classic, minions, pinkGrape, mint, gold, vitalityOrange, greenLeaf, dark2, skyGreen, classic2, classic3, classic4(v0.2.0+), classicGreen, classicBlue, blueSky, brainImpairedPink, dark, earthYellow, freshGreen, freshRed, romanticPurple, simpleBlack(v0.5.4+), courseGreen(v0.5.4+), coffee(v0.5.4+), redSpirit(v0.5.4+), blackHumour(v0.5.4+), lateNightOffice(v0.5.4+), blackGold(v0.5.4+)、、avocado(v.5.10-fix.2+)、autumn(v.5.10-fix.2+)、orangeJuice(v.5.10-fix.2+)")]),t("td")]),t("tr",[t("td",[e._v("themeConfig")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("Theme configuration, will be merged with the selected theme, available fields refer to: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("default.js")])]),t("td")]),t("tr",[t("td",[e._v("scaleRatio")]),t("td",[e._v("Number")]),t("td",[e._v("0.1")]),t("td",[e._v("The incremental scaling ratio")]),t("td")]),t("tr",[t("td",[e._v("maxTag")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The maximum number of tags displayed in the node, any additional tags will be discarded")]),t("td")]),t("tr",[t("td",[e._v("exportPadding")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The padding for exporting images")]),t("td")]),t("tr",[t("td",[e._v("imgTextMargin")]),t("td",[e._v("Number")]),t("td",[e._v("5")]),t("td",[e._v("The spacing between the image and text in the node")]),t("td")]),t("tr",[t("td",[e._v("textContentMargin")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The spacing between various text information in the node, such as the spacing between the icon and text")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateStep")]),t("td",[e._v("Number")]),t("td",[e._v("3")]),t("td",[e._v("The canvas offset when mouse moves to the edge during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("selectTranslateLimit")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("The distance from the edge when the canvas begins to offset during multi-select node")]),t("td")]),t("tr",[t("td",[e._v("customNoteContentShow(v0.1.6+)")]),t("td",[e._v("Object")]),t("td",[e._v("null")]),t("td",[e._v("Custom node note content display, object type, structure: {show: (noteContent, left, top, node) => {// your display node note logic. node is a new parameter added in v0.8.1+ version, representing node instances }, hide: () => {// your hide node note logic }}")]),t("td")]),t("tr",[t("td",[e._v("readonly(v0.1.7+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether it is read-only mode")]),t("td")]),t("tr",[t("td",[e._v("enableFreeDrag(v0.2.4+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Enable node free(Free drag means that nodes can be dragged to any position on the canvas. Please note that it is not a function of dragging nodes to become siblings of other nodes. The connection of free drag may have certain problems, so it is best not to use this feature) drag")]),t("td")]),t("tr",[t("td",[e._v("watermarkConfig(v0.2.4+)")]),t("td",[e._v("Object")]),t("td"),t("td",[e._v("Watermark config, Please refer to the table 【Watermark config】 below for detailed configuration")]),t("td")]),t("tr",[t("td",[e._v("textAutoWrapWidth(v0.3.4+)")]),t("td",[e._v("Number")]),t("td",[e._v("500")]),t("td",[e._v("Each line of text in the node will wrap automatically when it reaches the width")]),t("td")]),t("tr",[t("td",[e._v("customHandleMousewheel(v0.4.3+)")]),t("td",[e._v("Function")]),t("td",[e._v("null")]),t("td",[e._v("User-defined mouse wheel event processing can pass a function, and the callback parameter is the event object")]),t("td")]),t("tr",[t("td",[e._v("mousewheelAction(v0.4.3+)")]),t("td",[e._v("String")]),t("td",[e._v("zoom(v0.9.1+ default is move)")]),t("td",[e._v("The behavior of the mouse wheel, "),t("code",[e._v("zoom")]),e._v("(Zoom in and out)、"),t("code",[e._v("move")]),e._v("(Move up and down). If "),t("code",[e._v("customHandleMousewheel")]),e._v(" passes a custom function, this property will not take effect")]),t("td")]),t("tr",[t("td",[e._v("mousewheelMoveStep(v0.4.3+)")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("When the "),t("code",[e._v("mousewheelAction")]),e._v(" is set to "),t("code",[e._v("move")]),e._v(", you can use this attribute to control the step length of the view movement when the mouse scrolls. The unit is "),t("code",[e._v("px")])]),t("td")]),t("tr",[t("td",[e._v("mousewheelZoomActionReverse(v0.6.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false(v0.9.1+ default is true)")]),t("td",[e._v("When "),t("code",[e._v("mousewheelAction")]),e._v(" is set to "),t("code",[e._v("zoom")]),e._v(", Or when holding down the Ctrl key, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversed")]),t("td")]),t("tr",[t("td",[e._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("二级节点")]),t("td",[e._v("Text of the default inserted secondary node")]),t("td")]),t("tr",[t("td",[e._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),t("td",[e._v("String")]),t("td",[e._v("分支主题")]),t("td",[e._v("Text for nodes below the second level inserted by default")]),t("td")]),t("tr",[t("td",[e._v("expandBtnStyle(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' }")]),t("td",[e._v("Expand the color of the stow button, (The fontSize and strokeColor fields were added in version 0.7.0+to set the text style for displaying the number of nodes when folded)")]),t("td")]),t("tr",[t("td",[e._v("expandBtnIcon(v0.5.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ open: '', close: '' }")]),t("td",[e._v("Customize the icon of the expand/collapse button, and you can transfer the svg string of the icon")]),t("td")]),t("tr",[t("td",[e._v("expandBtnNumHandler(v0.7.0+)")]),t("td",[e._v("Function")]),t("td"),t("td",[e._v("Used to customize the content of displaying the number of nodes when folding, receiving a parameter that represents the instance of the folding node, and returning a number or string that represents the final displayed content. For example, when the number is greater than 99, 99 can be displayed+")]),t("td")]),t("tr",[t("td",[e._v("isShowExpandNum(v0.7.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Display the number of folded nodes when they are folded up")]),t("td")]),t("tr",[t("td",[e._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Only respond to shortcut key events when the mouse is inside the canvas")]),t("td")]),t("tr",[t("td",[e._v("enableNodeTransitionMove(v0.5.1+)(v0.6.7+ is remove this feature)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable node animation transition")]),t("td")]),t("tr",[t("td",[e._v("nodeTransitionMoveDuration(v0.5.1+)(v0.6.7+ is remove this feature)")]),t("td",[e._v("Number")]),t("td",[e._v("300")]),t("td",[e._v("If node animation transition is enabled, the transition time can be set using this attribute, in milliseconds")]),t("td")]),t("tr",[t("td",[e._v("initRootNodePosition(v0.5.3+)")]),t("td",[e._v("Array")]),t("td",[e._v("null")]),t("td",[e._v("The position of the initial root node can be passed as an array, default is "),t("code",[e._v("['center', 'center']")]),e._v(", Represents the root node at the center of the canvas, In addition to "),t("code",[e._v("center")]),e._v(", keywords can also be set to "),t("code",[e._v("left")]),e._v(", "),t("code",[e._v("top")]),e._v(", "),t("code",[e._v("right")]),e._v(", and "),t("code",[e._v("bottom")]),e._v(", In addition to passing keywords, each item in the array can also pass a number representing a specific pixel, Can pass a percentage string, such as "),t("code",[e._v("['40%', '60%']")]),e._v(", Represents a horizontal position at "),t("code",[e._v("40%")]),e._v(" of the canvas width, and a vertical position at "),t("code",[e._v("60%")]),e._v(" of the canvas height")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingX(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Horizontal padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("exportPaddingY(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("10")]),t("td",[e._v("Vertical padding of graphics when exporting PNG, SVG, and PDF")]),t("td")]),t("tr",[t("td",[e._v("nodeTextEditZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td"),t("td",[e._v("z-index of node text edit box elements")])]),t("tr",[t("td",[e._v("nodeNoteTooltipZIndex(v0.5.5+)")]),t("td",[e._v("Number")]),t("td",[e._v("3000")]),t("td",[e._v("z-index of floating layer elements in node comments")]),t("td")]),t("tr",[t("td",[e._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to end the editing status of node text when clicking on an area outside the canvas")]),t("td")]),t("tr",[t("td",[e._v("maxHistoryCount(v0.5.6+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000")]),t("td"),t("td",[e._v("Maximum number of history records")])]),t("tr",[t("td",[e._v("alwaysShowExpandBtn(v0.5.8+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to always display the expand and collapse buttons of nodes, which are only displayed when the mouse is moved up and activated by default")]),t("td")]),t("tr",[t("td",[e._v("iconList(v0.5.8+)")]),t("td",[e._v("Array")]),t("td",[e._v("[]")]),t("td",[e._v('The icons that can be inserted into the extension node, and each item in the array is an object. Please refer to the "Icon Configuration" table below for the detailed structure of the object')]),t("td")]),t("tr",[t("td",[e._v("maxNodeCacheCount(v0.5.10+)")]),t("td",[e._v("Number")]),t("td",[e._v("1000")]),t("td",[e._v("The maximum number of cached nodes. To optimize performance, an internal node cache pool is maintained to reuse nodes. This attribute allows you to specify the maximum number of caches in the pool")]),t("td")]),t("tr",[t("td",[e._v("defaultAssociativeLineText(v0.5.11+)")]),t("td",[e._v("String")]),t("td",[e._v("关联")]),t("td",[e._v("Association Line Default Text")]),t("td")]),t("tr",[t("td",[e._v("fitPadding(v0.6.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("50")]),t("td",[e._v("The padding of mind mapping when adapting to canvas size, Unit: px")]),t("td")]),t("tr",[t("td",[e._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable the function of holding down the Ctrl key to select multiple nodes")]),t("td")]),t("tr",[t("td",[e._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Setting to left click to select multiple nodes and right click to drag the canvas.")]),t("td")]),t("tr",[t("td",[e._v("beforeTextEdit(v0.6.0+)")]),t("td",[e._v("Function/null")]),t("td",[e._v("null")]),t("td",[e._v("The callback method before the node is about to enter editing. If the method returns a value other than true, the editing will be canceled. The function can return a value or a promise, and the callback parameter is the node instance")]),t("td")]),t("tr",[t("td",[e._v("isUseCustomNodeContent(v0.6.3+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to customize node content")]),t("td")]),t("tr",[t("td",[e._v("customCreateNodeContent(v0.6.3+)")]),t("td",[e._v("Function/null")]),t("td",[e._v("null")]),t("td",[e._v("If "),t("code",[e._v("isUseCustomNodeContent")]),e._v(" is set to "),t("code",[e._v("true")]),e._v(", then this option needs to be used to pass in a method that receives the node instance "),t("code",[e._v("node")]),e._v(" as a parameter (if you want to obtain data for that node, you can use "),t("code",[e._v("node.nodeData.data")]),e._v("). You need to return the custom node content element, which is the DOM node. If a node does not require customization, you can return "),t("code",[e._v("null")])]),t("td")]),t("tr",[t("td",[e._v("mouseScaleCenterUseMousePosition(v0.6.4-fix.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the mouse zoom centered around the current position of the mouse, otherwise centered around the canvas")]),t("td")]),t("tr",[t("td",[e._v("customInnerElsAppendTo(v0.6.12+)")]),t("td",[e._v("null/HTMLElement")]),t("td",[e._v("null")]),t("td",[e._v("Specify the location where some internal elements (node text editing element, node note display element, associated line text editing element, node image adjustment button element) are added, and default to document.body")]),t("td")]),t("tr",[t("td",[e._v("nodeDragPlaceholderMaxSize(v0.6.12+)")]),t("td",[e._v("Number")]),t("td",[e._v("20")]),t("td",[e._v("When dragging an element, the maximum height of the block indicating the new position of the element")]),t("td")]),t("tr",[t("td",[e._v("enableCreateHiddenInput(v0.6.13+)(v0.6.14+ remove this feature)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is it allowed to create a hidden input box that will be focused when the node is activated for pasting data and automatically entering the text editing state")]),t("td")]),t("tr",[t("td",[e._v("enableAutoEnterTextEditWhenKeydown(v0.6.13+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Does it automatically enter text editing mode when pressing the Chinese, English, or numeric buttons when there is an activation node?")]),t("td")]),t("tr",[t("td",[e._v("richTextEditFakeInPlace(v0.6.13+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Set the rich text node edit box to match the size of the node, creating a pseudo in place editing effect. It should be noted that only when there is only text within the node and the shape is rectangular, can the effect be better")]),t("td")]),t("tr",[t("td",[e._v("customHandleClipboardText(v0.6.14+)")]),t("td",[e._v("Function")]),t("td",[e._v("null")]),t("td",[e._v("Customize the processing of clipboard text. When pressing ctrl+v to paste, it will read the text and images from the user's clipboard. By default, it will only determine whether the text is regular text and node data in simple mind map format. If you want to process data from other mind maps, such as process, zhixi, etc., you can pass a function that takes the text from the current clipboard as a parameter and returns the processed data, which can be of two types: 1.If a pure text is returned, a child node will be directly created with that text; 2.Returns a node object in the following format: { simpleMindMap: true, data: { data: { text: '' }, children: [] } }, The representative is data in simple bind map format, and the node data is in the same format as the simple bind map node data. If your processing logic has asynchronous logic, you can also return a promise")]),t("td")]),t("tr",[t("td",[e._v("errorHandler(v0.6.15+)")]),t("td",[e._v("Function")]),t("td"),t("td",[e._v("Custom error handling functions currently only throw some asynchronous logic errors. Can pass a function that takes two parameters, the first being the wrong type and the second being the wrong object")]),t("td")]),t("tr",[t("td",[e._v("disableMouseWheelZoom(v0.6.15+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Prohibit mouse wheel scaling, you can still use the API for scaling")]),t("td")]),t("tr",[t("td",[e._v("resetCss(v0.6.16+)")]),t("td",[e._v("String")]),t("td",[e._v("* { margin: 0; padding: 0; box-sizing: border-box; }")]),t("td",[e._v("When exporting images and SVGs, the default style overlay for rich text node content, which is embedded in HTML nodes in SVGs, will occur. If not overlaid, the node content will be offset")]),t("td")]),t("tr",[t("td",[e._v("enableDblclickReset(v0.6.17+)(v0.8.0+this attribute has been deleted)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true(v0.7.0+changed to false)")]),t("td",[e._v("Turn on the mouse and double-click to reset the position and zoom of the mind map")]),t("td")]),t("tr",[t("td",[e._v("enableDblclickBackToRootNode(v0.8.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Whether to return to the root node when double clicking with the mouse, that is, to center the display of the root node")]),t("td")]),t("tr",[t("td",[e._v("minExportImgCanvasScale(v0.7.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The scaling factor of canvas when exporting images and PDFs, which is set to the maximum value of window.devicePixelRatio to improve image clarity")]),t("td")]),t("tr",[t("td",[e._v("hoverRectColor(v0.7.0+)")]),t("td",[e._v("String")]),t("td",[e._v("rgb(94, 200, 248)")]),t("td",[e._v("The node mouse hover and the rectangular border color displayed when activated will add a transparency of 0.6 when hovering")]),t("td")]),t("tr",[t("td",[e._v("hoverRectPadding(v0.7.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("2")]),t("td",[e._v("The distance between the node mouse hover and the displayed rectangular border when activated and the node content")]),t("td")]),t("tr",[t("td",[e._v("selectTextOnEnterEditText(v0.7.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the text selected by default when double-clicking a node to enter node text editing? By default, it will only be selected when creating a new node")]),t("td")]),t("tr",[t("td",[e._v("deleteNodeActive(v0.7.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Enable the function of automatically activating adjacent nodes or parent nodes after deleting nodes")]),t("td")]),t("tr",[t("td",[e._v("autoMoveWhenMouseInEdgeOnDrag(v0.7.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Whether to enable automatic canvas movement when the mouse moves to the edge of the canvas while dragging nodes")]),t("td")]),t("tr",[t("td",[e._v("fit(v0.7.1-fix.2+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is the first rendering scaled to fit the canvas size")]),t("td")]),t("tr",[t("td",[e._v("dragMultiNodeRectConfig(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ width: 40, height: 20, fill: '' }")]),t("td",[e._v("The style configuration of the schematic rectangle that moves with the mouse when dragging multiple nodes, passing an object, and the field meanings are the width, height, and fill color of the rectangle")]),t("td")]),t("tr",[t("td",[e._v("dragPlaceholderRectFill(v0.7.2+)")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("The filling color of the schematic rectangle for the new position when dragging nodes. If not transmitted, the default color for the connected line is used")]),t("td")]),t("tr",[t("td",[e._v("dragOpacityConfig(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ cloneNodeOpacity: 0.5, beingDragNodeOpacity: 0.3 }")]),t("td",[e._v("The transparency configuration during node dragging, passing an object, and the field meanings are: the transparency of the cloned node or rectangle that follows the mouse movement, and the transparency of the dragged node")]),t("td")]),t("tr",[t("td",[e._v("tagsColorMap(v0.7.2+)")]),t("td",[e._v("Object")]),t("td",[e._v("{}")]),t("td",[e._v("The color of a custom node label can be transferred to an object, where key is the label content to be assigned a color, and value is the color of the label content. If not transferred internally, a corresponding color will be generated based on the label content")]),t("td")]),t("tr",[t("td",[e._v("cooperateStyle(v0.7.3+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ avatarSize: 22, fontSize: 12 }")]),t("td",[e._v("The configuration of personnel avatar style during node collaboration editing, with field meanings as follows: avatar size, and if it is a text avatar, the size of the text")]),t("td")]),t("tr",[t("td",[e._v("associativeLineIsAlwaysAboveNode(v0.8.0+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("true")]),t("td",[e._v("Is the associated line always displayed above the node? If set to false, it will be at the top level when creating and activating the associated line, and in other cases, it will be below the node")]),t("td")]),t("tr",[t("td",[e._v("defaultGeneralizationText(v0.8.0+)")]),t("td",[e._v("String")]),t("td",[e._v("概要")]),t("td",[e._v("Insert default text for summary")]),t("td")]),t("tr",[t("td",[e._v("handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+)")]),t("td",[e._v("Function / null")]),t("td",[e._v("null")]),t("td",[e._v("When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks")]),t("td")]),t("tr",[t("td",[e._v("addHistoryTime(v0.8.0+)")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Only one historical record can be added within the specified time to avoid adding unnecessary intermediate states. Unit: ms")]),t("td")]),t("tr",[t("td",[e._v("isDisableDrag(v0.8.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Is disable dragging the canvas")]),t("td")]),t("tr",[t("td",[e._v("disableTouchZoom(v0.8.1+)")]),t("td",[e._v("Boolean")]),t("td",[e._v("false")]),t("td",[e._v("Prohibit double finger scaling, you can still use the API for scaling, which takes effect on the TouchEvent plugin")]),t("td")]),t("tr",[t("td",[e._v("highlightNodeBoxStyle(v0.9.0+)")]),t("td",[e._v("Object")]),t("td",[e._v("{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' }")]),t("td",[e._v("Highlight box style when the mouse moves into the summary to highlight the node it belongs to")]),t("td")]),t("tr",[t("td",[e._v("createNewNodeBehavior(v0.9.1+)")]),t("td",[e._v("String")]),t("td",[e._v("default")]),t("td",[e._v("Behavior when creating a new node. default(By default, newly created nodes will be activated and enter editing mode. If multiple new nodes are created simultaneously, they will only be activated and will not enter editing mode)、notActive(Do not activate newly created nodes)、activeOnly(Only activate newly created nodes and do not enter editing mode)")]),t("td")]),t("tr",[t("td",[e._v("defaultNodeImage(v0.9.1-fix.2+)")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("Image address, the default image displayed when node image loading fails")]),t("td")])])]),t("h3",[e._v("Data structure")]),t("p",[e._v("The basic data structure is as follows:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {\n "),t("span",{staticClass:"hljs-attr"},[e._v("text")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The text of the node can be rich text, which is in HTML format. In this case, richText should be set to true")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("richText")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("false")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Is the text of the node in rich text mode")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("expand")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("true")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Whether the node is expanded")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("uid")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(","),t("span",{staticClass:"hljs-comment"},[e._v("// The unique ID of the node, which may not be passed, will be generated internally")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("icon")]),e._v(": [], "),t("span",{staticClass:"hljs-comment"},[e._v('// The format of the icon can be found in the "插入和扩展节点图标" section of the tutorial')]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("image")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// URL of the image")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("imageTitle")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The title of the image can be blank")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("imageSize")]),e._v(": { "),t("span",{staticClass:"hljs-comment"},[e._v("// The size of the image")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("width")]),e._v(": "),t("span",{staticClass:"hljs-number"},[e._v("100")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The width of the image, mandatory")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("height")]),e._v(": "),t("span",{staticClass:"hljs-number"},[e._v("100")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// The height of the image is mandatory")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("custom")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("false")]),e._v(" "),t("span",{staticClass:"hljs-comment"},[e._v("// If set to true, the display size of the image is not controlled by the theme, and is based on imageSize.width and imageSize.height")]),e._v("\n },\n "),t("span",{staticClass:"hljs-attr"},[e._v("hyperlink")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Hyperlink address")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("hyperlinkTitle")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Title of hyperlink")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("note")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(", "),t("span",{staticClass:"hljs-comment"},[e._v("// Content of remarks")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("tag")]),e._v(": [], "),t("span",{staticClass:"hljs-comment"},[e._v("// Tag list")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("generalization")]),e._v(": {"),t("span",{staticClass:"hljs-comment"},[e._v("// The summary of the node, if there is no summary, the generalization can be set to null")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("text")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),t("span",{staticClass:"hljs-comment"},[e._v("// Summary Text")]),e._v("\n },\n "),t("span",{staticClass:"hljs-attr"},[e._v("associativeLineTargets")]),e._v(": ["),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v("],"),t("span",{staticClass:"hljs-comment"},[e._v("// If there are associated lines, then it is the uid list of the target node")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("associativeLineText")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("''")]),e._v(","),t("span",{staticClass:"hljs-comment"},[e._v("// Association Line Text")]),e._v("\n "),t("span",{staticClass:"hljs-comment"},[e._v("// ...For other style fields, please refer to the topic")]),e._v("\n },\n children ["),t("span",{staticClass:"hljs-comment"},[e._v("// Child nodes, with consistent structure and root nodes")]),e._v("\n {\n "),t("span",{staticClass:"hljs-attr"},[e._v("data")]),e._v(": {},\n "),t("span",{staticClass:"hljs-attr"},[e._v("children")]),e._v(": []\n }\n ]\n}\n")])]),t("p",[e._v("If you want to add custom fields, you can add them to the same level as 'data' and 'children'. If you want to add them to the 'data' object, please use the "),t("code",[e._v("_")]),e._v(" Name your custom field at the beginning, and it will be used internally to determine whether it is a custom field.")]),t("h3",[e._v("Watermark config")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("text")]),t("td",[e._v("String")]),t("td",[e._v("''")]),t("td",[e._v("Watermark text. If it is an empty string, the watermark will not be displayed")])]),t("tr",[t("td",[e._v("lineSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermark lines")])]),t("tr",[t("td",[e._v("textSpacing")]),t("td",[e._v("Number")]),t("td",[e._v("100")]),t("td",[e._v("Spacing between watermarks in the same row")])]),t("tr",[t("td",[e._v("angle")]),t("td",[e._v("Number")]),t("td",[e._v("30")]),t("td",[e._v("Tilt angle of watermark, range: [0, 90]")])]),t("tr",[t("td",[e._v("textStyle")]),t("td",[e._v("Object")]),t("td",[e._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),t("td",[e._v("Watermark text style")])])])]),t("h3",[e._v("Icon Configuration")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Field Name")]),t("th",[e._v("Type")]),t("th",[e._v("Default Value")]),t("th",[e._v("Description")])])]),t("tbody",[t("tr",[t("td",[e._v("name")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("The name of the icon group")])]),t("tr",[t("td",[e._v("type")]),t("td",[e._v("String")]),t("td"),t("td",[e._v("Values for icon grouping")])]),t("tr",[t("td",[e._v("list")]),t("td",[e._v("Array")]),t("td"),t("td",[e._v("A list of icons under grouping, with each item in the array being an object, "),t("code",[e._v("{ name: '', icon: '' }")]),e._v(","),t("code",[e._v("name")]),e._v("represents the name of the icon, "),t("code",[e._v("icon")]),e._v("represents the icon, Can be an "),t("code",[e._v("svg")]),e._v(" icon, such as "),t("code",[e._v("")]),e._v(", also can be a image "),t("code",[e._v("url")]),e._v(", or "),t("code",[e._v("base64")]),e._v(" icon, such as "),t("code",[e._v("data:image/png;base64,...")])])])])]),t("h2",[e._v("Static methods")]),t("h3",[e._v("defineTheme(name, config)")]),t("blockquote",[t("p",[e._v("v0.2.23+")])]),t("p",[e._v("Define new theme.")]),t("p",[t("code",[e._v("name")]),e._v(":New theme name")]),t("p",[t("code",[e._v("config")]),e._v(":New theme config")]),t("p",[t("code",[e._v("Simple-mind-map ")]),e._v(" Built-in many themes. In addition, you can register new theme. It is recommended to register before instantiation, so that you can directly use the newly registered theme during instantiation. Use example:")]),t("pre",{staticClass:"hljs"},[t("code",[t("span",{staticClass:"hljs-keyword"},[e._v("import")]),e._v(" MindMap "),t("span",{staticClass:"hljs-keyword"},[e._v("from")]),e._v(" "),t("span",{staticClass:"hljs-string"},[e._v("'simple-mind-map'")]),e._v("\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 注册新主题")]),e._v("\nMindMap.defineTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(", {})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 1.实例化时使用新注册的主题")]),e._v("\n"),t("span",{staticClass:"hljs-keyword"},[e._v("const")]),e._v(" mindMap = "),t("span",{staticClass:"hljs-keyword"},[e._v("new")]),e._v(" MindMap({\n "),t("span",{staticClass:"hljs-attr"},[e._v("theme")]),e._v(": "),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v("\n})\n\n"),t("span",{staticClass:"hljs-comment"},[e._v("// 2.动态切换新主题")]),e._v("\nmindMap.setTheme("),t("span",{staticClass:"hljs-string"},[e._v("'Theme name'")]),e._v(")\n")])]),t("p",[e._v("For all configurations of theme, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[e._v("Default Topic")]),e._v(". The "),t("code",[e._v("defineTheme")]),e._v("method will merge the configuration you passed in with the default configuration. Most of the themes do not need custom many parts. For a typical customized theme configuration, please refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[e._v("blueSky")]),e._v(".")]),t("h3",[e._v("usePlugin(plugin, opt = {})")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("ul",[t("li",[t("code",[e._v("opt")]),e._v(":v0.4.0+,Plugin options. If a plugin supports custom options, it can be passed in through this parameter.")])]),t("p",[e._v("If you need to use some non-core functions, such as mini map, watermark, etc, you can register plugin through this method. Can be called in chain.")]),t("p",[e._v("Note: The plugin needs to be registered before instantiating "),t("code",[e._v("MindMap")]),e._v(".")]),t("h3",[e._v("hasPlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Get whether a plugin is registered, The index of the plugin in the registered plugin list is returned, If it is "),t("code",[e._v("-1")]),e._v(", it means that the plugin is not registered.")]),t("h2",[e._v("Static props")]),t("h3",[e._v("pluginList")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[e._v("List of all currently registered plugins.")]),t("h2",[e._v("Instance props")]),t("h3",[e._v("el")]),t("p",[e._v("Container element.")]),t("h3",[e._v("opt")]),t("p",[e._v("Config options object.")]),t("h3",[e._v("svg")]),t("blockquote",[t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the SVG() method")])]),t("p",[e._v("Canvas SVG element.")]),t("h3",[e._v("draw")]),t("blockquote",[t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of SVG node")])]),t("p",[e._v("Container element, used to carry content such as nodes and connections.")]),t("h3",[e._v("lineDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for node wiring elements.")]),t("h3",[e._v("nodeDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for node elements.")]),t("h3",[e._v("associativeLineDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Available when the associated line plugin is registered")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for associative line content.")]),t("h3",[e._v("otherDraw")]),t("blockquote",[t("p",[e._v("v0.8.0+")]),t("p",[e._v("@svgdotjs/svg.js library calls the node instance returned by the group() method")]),t("p",[e._v("Child node of draw node")])]),t("p",[e._v("Container for other content.")]),t("h3",[e._v("elRect")]),t("p",[e._v("The size and position information of the container element 'el'. The return result of calling the 'getBoundingClientRect()' method.")]),t("h3",[e._v("width")]),t("p",[e._v("The width of the container element 'el'.")]),t("h3",[e._v("height")]),t("p",[e._v("The height of the container element 'el'.")]),t("h3",[e._v("themeConfig")]),t("p",[e._v("Current Theme Configuration.")]),t("h2",[e._v("Instance methods")]),t("h3",[e._v("clearDraw()")]),t("blockquote",[t("p",[e._v("v0.8.0+")])]),t("p",[e._v("Clear "),t("code",[e._v("lineDraw")]),e._v("、"),t("code",[e._v("associativeLineDraw")]),e._v("、"),t("code",[e._v("nodeDraw")]),e._v("、"),t("code",[e._v("otherDraw")]),e._v(" containers.")]),t("h3",[e._v("destroy()")]),t("blockquote",[t("p",[e._v("v0.6.0+")])]),t("p",[e._v("Destroy mind maps. It will remove registered plugins, remove listening events, and delete all nodes on the canvas.")]),t("h3",[e._v("getSvgData({ paddingX = 0, paddingY = 0, ignoreWatermark = false })")]),t("blockquote",[t("p",[e._v("v0.3.0+")])]),t("p",[t("code",[e._v("paddingX")]),e._v(": Padding x")]),t("p",[t("code",[e._v("paddingY")]),e._v(": Padding y")]),t("p",[t("code",[e._v("ignoreWatermark")]),e._v(":v0.8.0+, Do not draw watermarks. If you do not need to draw watermarks, you can pass 'true' because drawing watermarks is very slow")]),t("p",[e._v("Get the "),t("code",[e._v("svg")]),e._v(" data and return an object. The detailed structure is as follows:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("{\n svg, "),t("span",{staticClass:"hljs-comment"},[e._v("// Element, the overall svg element of the mind map graphics, including: svg (canvas container), g (actual mind map group)")]),e._v("\n svgHTML, "),t("span",{staticClass:"hljs-comment"},[e._v("// String, svg string, i.e. html string, can be directly rendered to the small map container you prepared")]),e._v("\n "),t("span",{staticClass:"hljs-attr"},[e._v("rect")]),e._v(": "),t("span",{staticClass:"hljs-comment"},[e._v("// Object, position, size, etc. of mind map graphics before zoom")]),e._v("\n origWidth, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas width")]),e._v("\n origHeight, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, canvas height")]),e._v("\n scaleX, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, horizontal zoom value of mind map graphics")]),e._v("\n scaleY, "),t("span",{staticClass:"hljs-comment"},[e._v("// Number, vertical zoom value of mind map graphics")]),e._v("\n}\n")])]),t("h3",[e._v("render(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Triggers a full rendering, which will reuse nodes for better performance. If only the node positions have changed, this method can be called to "),t("code",[e._v("reRender")]),e._v(".")]),t("h3",[e._v("reRender(callback)")]),t("ul",[t("li",[t("code",[e._v("callback")]),e._v(": "),t("code",[e._v("v0.3.2+")]),e._v(", "),t("code",[e._v("Function")]),e._v(", Called when the re-rendering is complete")])]),t("p",[e._v("Performs a full re-render, clearing the canvas and creating new nodes. This has poor performance and should be used sparingly.")]),t("h3",[e._v("resize()")]),t("p",[e._v("After the container size has changed, this method should be called to adjust.")]),t("h3",[e._v("setMode(mode)")]),t("blockquote",[t("p",[e._v("v0.1.7+")])]),t("p",[e._v("Switches between readonly and edit mode.")]),t("p",[t("code",[e._v("mode")]),e._v(":readonly、edit")]),t("h3",[e._v("on(event, fn)")]),t("p",[e._v("Listen to an event. Event list:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Event Name")]),t("th",[e._v("Description")]),t("th",[e._v("Callback Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("data_change")]),t("td",[e._v("Tree rendering data change, listen to this method to get the latest data")]),t("td",[e._v("data (current tree rendering data)")])]),t("tr",[t("td",[e._v("view_data_change(v0.1.1+)")]),t("td",[e._v("View change data, such as when dragging or zooming")]),t("td",[e._v("data (current view state data)")])]),t("tr",[t("td",[e._v("back_forward")]),t("td",[e._v("Forward or backward")]),t("td",[e._v("activeHistoryIndex (current index in the history data array), length (current length of the history data array)")])]),t("tr",[t("td",[e._v("draw_click")]),t("td",[e._v("Canvas click event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("svg_mousedown")]),t("td",[e._v("svg canvas mouse down event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("mousedown")]),t("td",[e._v("el element mouse down event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousemove")]),t("td",[e._v("el element mouse move event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("drag")]),t("td",[e._v("If it is a drag event while holding down the left button")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mouseup")]),t("td",[e._v("el element mouse up event")]),t("td",[e._v("e (event object), this (Event event class instance)")])]),t("tr",[t("td",[e._v("mousewheel")]),t("td",[e._v("Mouse scroll event")]),t("td",[e._v("e (event object), dir (up or down scroll), this (Event event class instance) 、isTouchPad(v0.6.1+, Is it an event triggered by the touchpad)")])]),t("tr",[t("td",[e._v("contextmenu")]),t("td",[e._v("svg canvas right mouse button menu event")]),t("td",[e._v("e (event object)")])]),t("tr",[t("td",[e._v("node_click")]),t("td",[e._v("Node click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mousedown")]),t("td",[e._v("Node mouse down event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseup")]),t("td",[e._v("Node mouseup event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_dblclick")]),t("td",[e._v("Node double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_contextmenu")]),t("td",[e._v("Node right-click menu event")]),t("td",[e._v("e (event object), this (node instance)")])]),t("tr",[t("td",[e._v("node_mouseenter(v0.4.1+)")]),t("td",[e._v("Node mouseenter event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_mouseleave(v0.4.1+)")]),t("td",[e._v("Node mouseleave event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("before_node_active")]),t("td",[e._v("Event before node activation")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("node_active")]),t("td",[e._v("Node activation event")]),t("td",[e._v("this (node instance), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("expand_btn_click")]),t("td",[e._v("Node expand or collapse event")]),t("td",[e._v("this (node instance)")])]),t("tr",[t("td",[e._v("before_show_text_edit")]),t("td",[e._v("Event before node text edit box opens")]),t("td")]),t("tr",[t("td",[e._v("hide_text_edit")]),t("td",[e._v("Node text edit box close event")]),t("td",[e._v("textEditNode (text edit box DOM node), activeNodeList (current list of active nodes)")])]),t("tr",[t("td",[e._v("scale")]),t("td",[e._v("Zoom event")]),t("td",[e._v("scale (zoom ratio)")])]),t("tr",[t("td",[e._v("node_img_dblclick(v0.2.15+)")]),t("td",[e._v("Node image double-click event")]),t("td",[e._v("this (node instance), e (event object)")])]),t("tr",[t("td",[e._v("node_img_mouseenter(v0.6.5+)")]),t("td",[e._v("Node image mouseenter event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_img_mouseleave(v0.6.5+)")]),t("td",[e._v("Node image mouseleave event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_img_mousemove(v0.6.5+)")]),t("td",[e._v("Node image mousemove event")]),t("td",[e._v("this(node instance)、imgNode(img node)、e(event object)")])]),t("tr",[t("td",[e._v("node_tree_render_end(v0.2.16+)")]),t("td",[e._v("Node tree render end event")]),t("td")]),t("tr",[t("td",[e._v("rich_text_selection_change(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. Triggered when the text selection area changes when the node is edited")]),t("td",[e._v("hasRange(Whether there is a selection)、rectInfo(Size and location information of the selected area)、formatInfo(Text formatting information of the selected area)")])]),t("tr",[t("td",[e._v("transforming-dom-to-images(v0.4.0+)")]),t("td",[e._v("Available when the "),t("code",[e._v("RichText")]),e._v(" plugin is registered. When there is a "),t("code",[e._v("DOM")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", the "),t("code",[e._v("DOM")]),e._v(" node will be converted to an image when exporting to an image. This event will be triggered during the conversion process. You can use this event to prompt the user about the node to which you are currently converting")]),t("td",[e._v("index(Index of the node currently converted to)、len(Total number of nodes to be converted)")])]),t("tr",[t("td",[e._v("node_dragging(v0.4.5+)")]),t("td",[e._v("Triggered when a node is dragged")]),t("td",[e._v("node(The currently dragged node)")])]),t("tr",[t("td",[e._v("node_dragend(v0.4.5+)")]),t("td",[e._v("Triggered when the node is dragged and ends")]),t("td",[e._v("{ overlapNodeUid, prevNodeUid, nextNodeUid }(v0.6.12+,The node uid to which the node is moved this time, for example, if it is moved to node A, then the overlayNodeUid is the uid of node A. If it is moved to the front of node B, then the nextNodeUid is the uid of node B. You can obtain the node instance through the mindMap. extender.findNodeByUid(uid) method)")])]),t("tr",[t("td",[e._v("associative_line_click(v0.4.5+)")]),t("td",[e._v("Triggered when an associated line is clicked")]),t("td",[e._v("path(Connector node)、clickPath(Invisible click line node)、node(Start node)、toNode(Target node)")])]),t("tr",[t("td",[e._v("svg_mouseenter(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves into the SVG canvas")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("svg_mouseleave(v0.5.1+)")]),t("td",[e._v("Triggered when the mouse moves out of the SVG canvas")]),t("td",[e._v("e(event object)")])]),t("tr",[t("td",[e._v("node_icon_click(v0.6.10+)")]),t("td",[e._v("Triggered when clicking on an icon within a node")]),t("td",[e._v("this(node instance)、item(Click on the icon name)、e(event object)")])]),t("tr",[t("td",[e._v("view_theme_change(v0.6.12+)")]),t("td",[e._v("Triggered after calling the setTheme method to set the theme")]),t("td",[e._v("theme(theme name)")])]),t("tr",[t("td",[e._v("set_data(v0.7.3+)")]),t("td",[e._v("Triggered when the setData method is called to dynamically set mind map data")]),t("td",[e._v("data(New Mind Map Data)")])]),t("tr",[t("td",[e._v("resize(v0.8.0+)")]),t("td",[e._v("Triggered after the container size changes, actually when the 'resize' method of the mind map instance is called")]),t("td")]),t("tr",[t("td",[e._v("beforeDestroy(v0.9.0+)")]),t("td",[e._v("Triggered before destroying the mind map, i.e. triggered by calling the destroy method")]),t("td")])])]),t("h3",[e._v("emit(event, ...args)")]),t("p",[e._v("Trigger an event, which can be one of the events listed above or a custom event.")]),t("h3",[e._v("off(event, fn)")]),t("p",[e._v("Unbind an event.")]),t("h3",[e._v("setTheme(theme, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Switches the theme. Available themes can be found in the options table above.")]),t("h3",[e._v("getTheme()")]),t("p",[e._v("Gets the current theme.")]),t("h3",[e._v("setThemeConfig(config, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Sets the theme configuration. "),t("code",[e._v("config")]),e._v(" is the same as the "),t("code",[e._v("themeConfig")]),e._v(" option in the options table above.")]),t("h3",[e._v("getCustomThemeConfig()")]),t("p",[e._v("Gets the custom theme configuration.")]),t("h3",[e._v("getThemeConfig(prop)")]),t("p",[e._v("Gets the value of a specific theme configuration property.")]),t("h3",[e._v("getConfig("),t("em",[e._v("prop")]),e._v(")")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("prop")]),e._v(":Get the value of the specified configuration, and return the entire configuration if not passed")]),t("p",[e._v("Get config, That is, "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap (opt)")])]),t("h3",[e._v("updateConfig("),t("em",[e._v("opt")]),e._v(" = {})")]),t("blockquote",[t("p",[e._v("0.2.24+")])]),t("p",[t("code",[e._v("opt")]),e._v(":Configuration to update")]),t("p",[e._v("Update config,That is update "),t("code",[e._v("opt")]),e._v(" of "),t("code",[e._v("new MindMap(opt)")]),e._v(",You can only update some data, such as:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("mindMap.updateConfig({\n "),t("span",{staticClass:"hljs-attr"},[e._v("enableFreeDrag")]),e._v(": "),t("span",{staticClass:"hljs-literal"},[e._v("true")]),t("span",{staticClass:"hljs-comment"},[e._v("// 开启节点自由拖拽")]),e._v("\n})\n")])]),t("p",[e._v("This method only updates the configuration and has no other side effects, such as triggering canvas re-rendering")]),t("h3",[e._v("getLayout()")]),t("p",[e._v("Gets the current layout structure.")]),t("h3",[e._v("setLayout(layout, notRender = false)")]),t("ul",[t("li",[t("code",[e._v("notRender")]),e._v(": v0.8.0+, Is not call the render method to update the canvas.")])]),t("p",[e._v("Sets the layout structure. Available values can be found in the "),t("code",[e._v("layout")]),e._v(" field in the options table above.")]),t("h3",[e._v("execCommand(name, ...args)")]),t("p",[e._v("Executes a command, which will add a record to the history stack for undo or redo. All commands are as follows:")]),t("table",[t("thead",[t("tr",[t("th",[e._v("Command name")]),t("th",[e._v("Description")]),t("th",[e._v("Parameters")])])]),t("tbody",[t("tr",[t("td",[e._v("SELECT_ALL")]),t("td",[e._v("Select all")]),t("td")]),t("tr",[t("td",[e._v("BACK")]),t("td",[e._v("Go back a specified number of steps")]),t("td",[e._v("step (the number of steps to go back, default is 1)")])]),t("tr",[t("td",[e._v("FORWARD")]),t("td",[e._v("Go forward a specified number of steps")]),t("td",[e._v("step (the number of steps to go forward, default is 1)")])]),t("tr",[t("td",[e._v("INSERT_NODE")]),t("td",[e._v("Insert a sibling node, the active node or appoint node will be the operation node. If there are multiple active nodes, only the first one will be effective(v0.7.2+Supports simultaneous insertion of sibling nodes into multiple active nodes)")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(") 、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )、 appointChildren(v0.6.14+, Optional, Specify the child nodes of the newly created node, array type)")])]),t("tr",[t("td",[e._v("INSERT_CHILD_NODE")]),t("td",[e._v("Insert a child node, the active node or appoint node will be the operation node")]),t("td",[e._v("openEdit(v0.4.6+, Whether to activate the newly inserted node and enter editing mode, default is "),t("code",[e._v("true")]),e._v(")、 appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)、 appointData(Optional, Specify the data for the newly created node, Such as {text: 'xxx', ...}, Detailed structure can be referred to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(" )、 appointChildren(v0.6.14+, Optional, Specify the child nodes of the newly created node, array type)")])]),t("tr",[t("td",[e._v("UP_NODE")]),t("td",[e._v("Move node up, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the first node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("DOWN_NODE")]),t("td",[e._v("Move node down, the active node will be the operation node. If there are multiple active nodes, only the first one will be effective. Using this command on the root node or the last node in the list will be invalid")]),t("td")]),t("tr",[t("td",[e._v("REMOVE_NODE")]),t("td",[e._v("Remove node, the active node or appoint node will be the operation node")]),t("td",[e._v("appointNodes(v0.4.7+, Optional, appoint node, Specifying multiple nodes can pass an array)")])]),t("tr",[t("td",[e._v("PASTE_NODE")]),t("td",[e._v("Paste node to a node, the active node will be the operation node")]),t("td",[e._v("data (the node data to paste, usually obtained through the renderer.copyNode() and renderer.cutNode() methods)")])]),t("tr",[t("td",[e._v("SET_NODE_STYLE")]),t("td",[e._v("Modify node single style")]),t("td",[e._v("node (the node to set the style of), prop (style property), value (style property value), isActive (v0.7.0+has been abandoned, boolean, whether the style being set is for the active state)")])]),t("tr",[t("td",[e._v("SET_NODE_STYLEs(v0.6.12+)")]),t("td",[e._v("Modify multiple styles of nodes")]),t("td",[e._v("node(the node to set the style of)、style(Style object,key is style prop,value is style value)、isActive(v0.7.0+has been abandoned, boolean, whether the style being set is for the active state)")])]),t("tr",[t("td",[e._v("SET_NODE_ACTIVE")]),t("td",[e._v("Set whether the node is active")]),t("td",[e._v("node (the node to set), active (boolean, whether to activate)")])]),t("tr",[t("td",[e._v("CLEAR_ACTIVE_NODE")]),t("td",[e._v("Clear the active state of the currently active node(s), the active node will be the operation node")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_EXPAND")]),t("td",[e._v("Set whether the node is expanded")]),t("td",[e._v("node (the node to set), expand (boolean, whether to expand)")])]),t("tr",[t("td",[e._v("EXPAND_ALL")]),t("td",[e._v("Expand all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_ALL")]),t("td",[e._v("Collapse all nodes")]),t("td")]),t("tr",[t("td",[e._v("UNEXPAND_TO_LEVEL (v0.2.8+)")]),t("td",[e._v("Expand to a specified level")]),t("td",[e._v("level (the level to expand to, 1, 2, 3...)")])]),t("tr",[t("td",[e._v("SET_NODE_DATA")]),t("td",[e._v("Update node data, that is, update the data in the data object of the node data object")]),t("td",[e._v("node (the node to set), data (object, the data to update, e.g. "),t("code",[e._v("{expand: true}")]),e._v(")")])]),t("tr",[t("td",[e._v("SET_NODE_TEXT")]),t("td",[e._v("Set node text")]),t("td",[e._v("node (the node to set), text (the new text for the node), richText(v0.4.0+, If you want to set a rich text character, you need to set it to "),t("code",[e._v("true")]),e._v(")、resetRichText(v0.6.10+Do you want to reset rich text? The default is false. If true is passed, the style of the rich text node will be reset)")])]),t("tr",[t("td",[e._v("SET_NODE_IMAGE")]),t("td",[e._v("Set Node Image")]),t("td",[e._v("node (node to set), imgData (object, image information, structured as: "),t("code",[e._v("{url, title, width, height}")]),e._v(", the width and height of the image must be passed)")])]),t("tr",[t("td",[e._v("SET_NODE_ICON")]),t("td",[e._v("Set Node Icon")]),t("td",[e._v("node (node to set), icons (array, predefined image names array, available icons can be obtained in the nodeIconList list in the "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[e._v("icons.js")]),e._v(" file, icon name is type_name, such as ['priority_1'])")])]),t("tr",[t("td",[e._v("SET_NODE_HYPERLINK")]),t("td",[e._v("Set Node Hyperlink")]),t("td",[e._v("node (node to set), link (hyperlink address), title (hyperlink name, optional)")])]),t("tr",[t("td",[e._v("SET_NODE_NOTE")]),t("td",[e._v("Set Node Note")]),t("td",[e._v("node (node to set), note (note text)")])]),t("tr",[t("td",[e._v("SET_NODE_TAG")]),t("td",[e._v("Set Node Tag")]),t("td",[e._v("node (node to set), tag (string array, built-in color information can be obtained in "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[e._v("constant.js")]),e._v(")")])]),t("tr",[t("td",[e._v("INSERT_AFTER (v0.1.5+)")]),t("td",[e._v("Move Node to After Another Node")]),t("td",[e._v("node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node)")])]),t("tr",[t("td",[e._v("INSERT_BEFORE (v0.1.5+)")]),t("td",[e._v("Move Node to Before Another Node")]),t("td",[e._v("node (node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), exist (target node)")])]),t("tr",[t("td",[e._v("MOVE_NODE_TO (v0.1.5+)")]),t("td",[e._v("Move a node as a child of another node")]),t("td",[e._v("node (the node to move, (v0.7.2+supports passing node arrays to move multiple nodes simultaneously)), toNode (the target node)")])]),t("tr",[t("td",[e._v("ADD_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Add a node summary")]),t("td",[e._v("data (the data for the summary, in object format, all numerical fields of the node are supported, default is "),t("code",[e._v("{text: 'summary'}")]),e._v(")")])]),t("tr",[t("td",[e._v("REMOVE_GENERALIZATION (v0.2.0+)")]),t("td",[e._v("Remove a node summary")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_CUSTOM_POSITION (v0.2.0+)")]),t("td",[e._v("Set a custom position for a node")]),t("td",[e._v("node (the node to set), left (custom x coordinate, default is undefined), top (custom y coordinate, default is undefined)")])]),t("tr",[t("td",[e._v("RESET_LAYOUT (v0.2.0+)")]),t("td",[e._v("Arrange layout with one click")]),t("td")]),t("tr",[t("td",[e._v("SET_NODE_SHAPE (v0.2.4+)")]),t("td",[e._v("Set the shape of a node")]),t("td",[e._v("node (the node to set), shape (the shape, all shapes: "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[e._v("Shape.js")]),e._v(")")])]),t("tr",[t("td",[e._v("GO_TARGET_NODE(v0.6.7+)")]),t("td",[e._v("Navigate to a node, and if the node is collapsed, it will automatically expand to that node")]),t("td",[e._v("node(Node instance or node uid to locate)、callback(v0.6.9+, Callback function after positioning completion)")])]),t("tr",[t("td",[e._v("INSERT_MULTI_NODE(v0.7.2+)")]),t("td",[e._v("Insert multiple sibling nodes into the specified node at the same time, with the operating node being the currently active node or the specified node")]),t("td",[e._v("appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), nodeList(Data list of newly inserted nodes, array type)")])]),t("tr",[t("td",[e._v("INSERT_MULTI_CHILD_NODE(v0.7.2+)")]),t("td",[e._v("Insert multiple child nodes into the specified node simultaneously, with the operation node being the currently active node or the specified node")]),t("td",[e._v("appointNodes(Optional, specify nodes, specify multiple nodes to pass an array), childList(Data list of newly inserted nodes, array type)")])]),t("tr",[t("td",[e._v("INSERT_FORMULA(v0.7.2+)")]),t("td",[e._v("Insert mathematical formulas into nodes, operate on the currently active node or specified node")]),t("td",[e._v("formula(Mathematical formula to insert, LaTeX syntax), appointNodes(Optional, specify the node to insert the formula into. Multiple nodes can be passed as arrays, otherwise it defaults to the currently active node)")])]),t("tr",[t("td",[e._v("INSERT_PARENT_NODE(v0.8.0+)")]),t("td",[e._v("Insert a parent node into the specified node, with the operation node being the currently active node or the specified node")]),t("td",[e._v("openEdit(Activate the newly inserted node and enter editing mode, default to 'true'`)、 appointNodes(Optional, specify the node to insert into the parent node, and specify that multiple nodes can pass an array)、 appointData(Optional, specify the data for the newly created node, such as {text: 'xxx', ...}, Detailed structure can be referenced "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[e._v("exampleData.js")]),e._v(")")])]),t("tr",[t("td",[e._v("REMOVE_CURRENT_NODE(v0.8.0+)")]),t("td",[e._v("Delete only the current node, operate on the currently active node or specified node")]),t("td",[e._v("appointNodes(Optional, specify the nodes to be deleted, and multiple nodes can be passed as an array)")])])])]),t("h3",[e._v("setData(data)")]),t("p",[e._v("Dynamic setting of mind map data, pure node data")]),t("p",[t("code",[e._v("data")]),e._v(": mind map structure data")]),t("h3",[e._v("setFullData("),t("em",[e._v("data")]),e._v(")")]),t("blockquote",[t("p",[e._v("v0.2.7+")])]),t("p",[e._v("Dynamic setting of mind map data, including node data, layout, theme, view")]),t("p",[t("code",[e._v("data")]),e._v(": complete data, structure can refer to "),t("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[e._v("exportFullData")])]),t("h3",[e._v("getData(withConfig)")]),t("blockquote",[t("p",[e._v("v0.2.9+")])]),t("p",[e._v("Gets mind map data")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", that is, the obtained data only includes the node tree, if "),t("code",[e._v("true")]),e._v(" is passed, it will also include theme, layout, view, etc. data")]),t("h3",[e._v("export(type, isDownload, fileName)")]),t("blockquote",[t("p",[e._v("You need to register the "),t("code",[e._v("Export")]),e._v(" plugin first")])]),t("p",[e._v("Export")]),t("p",[t("code",[e._v("type")]),e._v(": the type to be exported, optional values: png, svg, json, pdf (v0.2.1+), smm (essentially also json)")]),t("p",[t("code",[e._v("isDownload")]),e._v(": whether to directly trigger download, Boolean value, default is "),t("code",[e._v("false")])]),t("p",[t("code",[e._v("fileName")]),e._v(": (v0.1.6+) the name of the exported file, default is "),t("code",[e._v("思维导图")]),e._v(" (mind map).")]),t("p",[e._v("If it is exported as "),t("code",[e._v("png")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("transparent")]),e._v(": v0.5.7+, "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("false")]),e._v(", Specify whether the background of the exported image is transparent")]),t("p",[e._v("If it is exported as "),t("code",[e._v("svg")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("plusCssText")]),e._v(": Additional "),t("code",[e._v("CSS")]),e._v(" style. If there is a "),t("code",[e._v("dom")]),e._v(" node in "),t("code",[e._v("svg")]),e._v(", you can pass in some styles specific to the node through this parameter")]),t("p",[e._v("If it is exported as "),t("code",[e._v("json")]),e._v(" or "),t("code",[e._v("smm")]),e._v(", the fourth parameter can be passed:")]),t("p",[t("code",[e._v("withConfig")]),e._v(": "),t("code",[e._v("Boolean")]),e._v(", default is "),t("code",[e._v("true")]),e._v(", Specify whether the exported data includes configuration data, otherwise only pure node tree data will be exported")]),t("h3",[e._v("toPos(x, y)")]),t("blockquote",[t("p",[e._v("v0.1.5+")])]),t("p",[e._v("Convert the coordinates of the browser's visible window to coordinates relative to the canvas.")]),t("h3",[e._v("addPlugin(plugin, opt)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Register plugin, Use "),t("code",[e._v("MindMap.usePlugin")]),e._v(" to register plugin only before instantiation, The registered plugin will not take effect after instantiation, So if you want to register the plugin after instantiation, you can use the "),t("code",[e._v("addPlugin")]),e._v(" method of the instance.")]),t("h3",[e._v("removePlugin(plugin)")]),t("blockquote",[t("p",[e._v("v0.4.0+")])]),t("p",[e._v("Remove registered plugin, Plugins registered through the "),t("code",[e._v("usePlugin")]),e._v(" or "),t("code",[e._v("addPlugin")]),e._v(" methods can be removed.")])])}],d={},i=d,s=n("2877"),r=Object(s["a"])(i,a,o,!1,null,null,null);t["default"]=r.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-2d0dad5f.js b/dist/js/chunk-2d0dad5f.js index 49e6cbda..e22b3235 100644 --- a/dist/js/chunk-2d0dad5f.js +++ b/dist/js/chunk-2d0dad5f.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dad5f"],{"6cfb":function(t,v,_){"use strict";_.r(v);var e=function(){var t=this;t._self._c;return t._m(0)},d=[function(){var t=this,v=t._self._c;return v("div",[v("h1",[t._v("构造函数")]),v("h2",[t._v("基本使用")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-tag"},[t._v("<"),v("span",{staticClass:"hljs-name"},[t._v("div")]),t._v(" "),v("span",{staticClass:"hljs-attr"},[t._v("id")]),t._v("="),v("span",{staticClass:"hljs-string"},[t._v('"mindMapContainer"')]),t._v(">")]),v("span",{staticClass:"hljs-tag"},[t._v("")]),t._v("\n")])]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v('"simple-mind-map"')]),t._v(";\n\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("el")]),t._v(": "),v("span",{staticClass:"hljs-built_in"},[t._v("document")]),t._v(".getElementById("),v("span",{staticClass:"hljs-string"},[t._v("'mindMapContainer'")]),t._v("),\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"data"')]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"text"')]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v('"根节点"')]),t._v("\n },\n "),v("span",{staticClass:"hljs-string"},[t._v('"children"')]),t._v(": []\n }\n});\n")])]),v("h2",[t._v("实例化选项")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("el")]),v("td",[t._v("Element")]),v("td"),v("td",[t._v("容器元素,必传,必须为DOM元素")])]),v("tr",[v("td",[t._v("data")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("思维导图数据,可参考下方【数据结构】介绍")])]),v("tr",[v("td",[t._v("layout")]),v("td",[t._v("String")]),v("td",[t._v("logicalStructure")]),v("td",[t._v("布局类型,可选列表:logicalStructure(逻辑结构图)、mindMap(思维导图)、catalogOrganization(目录组织图)、organizationStructure(组织结构图)、timeline(v0.5.4+,时间轴)、timeline2(v0.5.4+,上下交替型时间轴)、fishbone(v0.5.4+,鱼骨图)")])]),v("tr",[v("td",[t._v("fishboneDeg(v0.5.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("45")]),v("td",[t._v("设置鱼骨结构图的斜线角度")])]),v("tr",[v("td",[t._v("theme")]),v("td",[t._v("String")]),v("td",[t._v("default")]),v("td",[t._v("主题,可选列表:default(默认)、classic(脑图经典)、minions(小黄人)、pinkGrape(粉红葡萄)、mint(薄荷)、gold(金色vip)、vitalityOrange(活力橙)、greenLeaf(绿叶)、dark2(暗色2)、skyGreen(天清绿)、classic2(脑图经典2)、classic3(脑图经典3)、classic4(脑图经典4,v0.2.0+)、classicGreen(经典绿)、classicBlue(经典蓝)、blueSky(天空蓝)、brainImpairedPink(脑残粉)、dark(暗色)、earthYellow(泥土黄)、freshGreen(清新绿)、freshRed(清新红)、romanticPurple(浪漫紫)、simpleBlack(v0.5.4+简约黑)、courseGreen(v0.5.4+课程绿)、coffee(v0.5.4+咖啡)、redSpirit(v0.5.4+红色精神)、blackHumour(v0.5.4+黑色幽默)、lateNightOffice(v0.5.4+深夜办公室)、blackGold(v0.5.4+黑金)、avocado(v.5.10-fix.2+牛油果)、autumn(v.5.10-fix.2+秋天)、orangeJuice(v.5.10-fix.2+橙汁)")])]),v("tr",[v("td",[t._v("themeConfig")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("主题配置,会和所选择的主题进行合并,可用字段可参考:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("default.js")])])]),v("tr",[v("td",[t._v("scaleRatio")]),v("td",[t._v("Number")]),v("td",[t._v("0.1")]),v("td",[t._v("放大缩小的增量比例")])]),v("tr",[v("td",[t._v("maxTag")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里最多显示的标签数量,多余的会被丢弃")])]),v("tr",[v("td",[t._v("exportPadding")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("导出图片时的内边距")])]),v("tr",[v("td",[t._v("imgTextMargin")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里图片和文字的间距")])]),v("tr",[v("td",[t._v("textContentMargin")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("节点里各种文字信息的间距,如图标和文字的间距")])]),v("tr",[v("td",[t._v("selectTranslateStep")]),v("td",[t._v("Number")]),v("td",[t._v("3")]),v("td",[t._v("多选节点时鼠标移动到边缘时的画布移动偏移量")])]),v("tr",[v("td",[t._v("selectTranslateLimit")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("多选节点时鼠标移动距边缘多少距离时开始偏移")])]),v("tr",[v("td",[t._v("customNoteContentShow(v0.1.6+)")]),v("td",[t._v("Object")]),v("td",[t._v("null")]),v("td",[t._v("自定义节点备注内容显示,Object类型,结构为:{show: (noteContent, left, top, node) => {// 你的显示节点备注逻辑。node为v0.8.1+版本新增的回参,代表节点实例 }, hide: () => {// 你的隐藏节点备注逻辑 }}")])]),v("tr",[v("td",[t._v("readonly(v0.1.7+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否是只读模式")])]),v("tr",[v("td",[t._v("enableFreeDrag(v0.2.4+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否开启节点自由拖拽(自由拖拽即可以把节点拖拽到画布的任意位置,注意不是拖拽节点成为其他节点的子节点兄弟节点的功能,自由拖拽的连线会存在一定问题,所以该特性最好不要使用)")])]),v("tr",[v("td",[t._v("watermarkConfig(v0.2.4+)")]),v("td",[t._v("Object")]),v("td"),v("td",[t._v("水印配置,详细配置请参考下方表格【水印配置】")])]),v("tr",[v("td",[t._v("textAutoWrapWidth(v0.3.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("500")]),v("td",[t._v("节点内每行文本达到该宽度后自动换行")])]),v("tr",[v("td",[t._v("customHandleMousewheel(v0.4.3+)")]),v("td",[t._v("Function")]),v("td",[t._v("null")]),v("td",[t._v("自定义鼠标滚轮事件处理,可以传一个函数,回调参数为事件对象")])]),v("tr",[v("td",[t._v("mousewheelAction(v0.4.3+)")]),v("td",[t._v("String")]),v("td",[t._v("zoom(v0.9.1+默认改为move)")]),v("td",[t._v("鼠标滚轮的行为,"),v("code",[t._v("zoom")]),t._v("(放大缩小)、"),v("code",[t._v("move")]),t._v("(上下移动)。如果"),v("code",[t._v("customHandleMousewheel")]),t._v("传了自定义函数,这个属性不生效")])]),v("tr",[v("td",[t._v("mousewheelMoveStep(v0.4.3+)")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("当"),v("code",[t._v("mousewheelAction")]),t._v("设为"),v("code",[t._v("move")]),t._v("时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位"),v("code",[t._v("px")])])]),v("tr",[v("td",[t._v("mousewheelZoomActionReverse(v0.6.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false(v0.9.1+默认改为true)")]),v("td",[t._v("当mousewheelAction设为zoom时,或者按住Ctrl键时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来")])]),v("tr",[v("td",[t._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("二级节点")]),v("td",[t._v("默认插入的二级节点的文字")])]),v("tr",[v("td",[t._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("分支主题")]),v("td",[t._v("默认插入的二级以下节点的文字")])]),v("tr",[v("td",[t._v("expandBtnStyle(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' }")]),v("td",[t._v("展开收起按钮的颜色,(fontSize及strokeColor字段为0.7.0+版本新增的,用于设置收起时显示节点数量的文字样式)")])]),v("tr",[v("td",[t._v("expandBtnIcon(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ open: '', close: '' }")]),v("td",[t._v("自定义展开收起按钮的图标,可以传图标的svg字符串")])]),v("tr",[v("td",[t._v("expandBtnNumHandler(v0.7.0+)")]),v("td",[t._v("Function")]),v("td"),v("td",[t._v("用于自定义收起时显示节点数量的内容,接收一个参数,代表收起的节点实例,需要返回一个数字或字符串,代表最终显示的内容,比如你可以当数量大于99时,显示99+")])]),v("tr",[v("td",[t._v("isShowExpandNum(v0.7.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("节点收起时是否显示收起的数量")])]),v("tr",[v("td",[t._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否只有当鼠标在画布内才响应快捷键事件")])]),v("tr",[v("td",[t._v("enableNodeTransitionMove(v0.5.1+)(v0.6.7+已去除该特性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启节点动画过渡")])]),v("tr",[v("td",[t._v("nodeTransitionMoveDuration(v0.5.1+)(v0.6.7+已去除该特性)")]),v("td",[t._v("Number")]),v("td",[t._v("300")]),v("td",[t._v("如果开启节点动画过渡,可以通过该属性设置过渡的时间,单位ms")])]),v("tr",[v("td",[t._v("initRootNodePosition(v0.5.3+)")]),v("td",[t._v("Array")]),v("td",[t._v("null")]),v("td",[t._v("初始根节点的位置,可传一个数组,默认为"),v("code",[t._v("['center', 'center']")]),t._v(",代表根节点处于画布中心位置,除了"),v("code",[t._v("center")]),t._v(",关键词还可以设置"),v("code",[t._v("left")]),t._v("、"),v("code",[t._v("top")]),t._v("、"),v("code",[t._v("right")]),t._v("、"),v("code",[t._v("bottom")]),t._v(",除了可以传关键词,数组的每项还可以传递一个数字,代表具体的像素,可以传递一个百分比字符串,比如"),v("code",[t._v("['40%', '60%']")]),t._v(",代表水平位置在画布宽度的"),v("code",[t._v("40%")]),t._v("的位置,垂直位置在画布高度的"),v("code",[t._v("60%")]),t._v("的位置")])]),v("tr",[v("td",[t._v("exportPaddingX(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形水平内边距")])]),v("tr",[v("td",[t._v("exportPaddingY(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形垂直内边距")])]),v("tr",[v("td",[t._v("nodeTextEditZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点文本编辑框元素的z-index")])]),v("tr",[v("td",[t._v("nodeNoteTooltipZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点备注浮层元素的z-index")])]),v("tr",[v("td",[t._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否在点击了画布外的区域时结束节点文本的编辑状态")])]),v("tr",[v("td",[t._v("maxHistoryCount(v0.5.6+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000")]),v("td",[t._v("最大历史记录数")])]),v("tr",[v("td",[t._v("alwaysShowExpandBtn(v0.5.8+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否一直显示节点的展开收起按钮,默认为鼠标移上去和激活时才显示")])]),v("tr",[v("td",[t._v("iconList(v0.5.8+)")]),v("td",[t._v("Array")]),v("td",[t._v("[]")]),v("td",[t._v("扩展节点可插入的图标,数组的每一项为一个对象,对象详细结构请参考下方【图标配置】表格")])]),v("tr",[v("td",[t._v("maxNodeCacheCount(v0.5.10+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000")]),v("td",[t._v("节点最大缓存数量。为了优化性能,内部会维护一个节点缓存池,用来复用节点,通过该属性可以指定池的最大缓存数量")])]),v("tr",[v("td",[t._v("defaultAssociativeLineText(v0.5.11+)")]),v("td",[t._v("String")]),v("td",[t._v("关联")]),v("td",[t._v("关联线默认文字")])]),v("tr",[v("td",[t._v("fitPadding(v0.6.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("50")]),v("td",[t._v("思维导图适应画布大小时的内边距,单位:px")])]),v("tr",[v("td",[t._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启按住ctrl键多选节点的功能")])]),v("tr",[v("td",[t._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("设置为左键多选节点,右键拖动画布")])]),v("tr",[v("td",[t._v("beforeTextEdit(v0.6.0+)")]),v("td",[t._v("Function/null")]),v("td",[t._v("null")]),v("td",[t._v("节点即将进入编辑前的回调方法,如果该方法返回true以外的值,那么将取消编辑,函数可以返回一个值,或一个Promise,回调参数为节点实例")])]),v("tr",[v("td",[t._v("isUseCustomNodeContent(v0.6.3+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否自定义节点内容")])]),v("tr",[v("td",[t._v("customCreateNodeContent(v0.6.3+)")]),v("td",[t._v("Function/null")]),v("td",[t._v("null")]),v("td",[t._v("如果"),v("code",[t._v("isUseCustomNodeContent")]),t._v("设为"),v("code",[t._v("true")]),t._v(",那么需要使用该选项传入一个方法,接收节点实例"),v("code",[t._v("node")]),t._v("为参数(如果要获取该节点的数据,可以通过"),v("code",[t._v("node.nodeData.data")]),t._v("),需要返回自定义节点内容元素,也就是DOM节点,如果某个节点不需要自定义,那么返回"),v("code",[t._v("null")]),t._v("即可")])]),v("tr",[v("td",[t._v("mouseScaleCenterUseMousePosition(v0.6.4-fix.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("鼠标缩放是否以鼠标当前位置为中心点,否则以画布中心点")])]),v("tr",[v("td",[t._v("customInnerElsAppendTo(v0.6.12+)")]),v("td",[t._v("null/HTMLElement")]),v("td",[t._v("null")]),v("td",[t._v("指定内部一些元素(节点文本编辑元素、节点备注显示元素、关联线文本编辑元素、节点图片调整按钮元素)添加到的位置,默认添加到document.body下")])]),v("tr",[v("td",[t._v("nodeDragPlaceholderMaxSize(v0.6.12+)")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("拖拽元素时,指示元素新位置的块的最大高度")])]),v("tr",[v("td",[t._v("enableCreateHiddenInput(v0.6.13+)(v0.6.14+版本已去除该特性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否允许创建一个隐藏的输入框,该输入框会在节点激活时聚焦,用于粘贴数据和自动进入文本编辑状态")])]),v("tr",[v("td",[t._v("enableAutoEnterTextEditWhenKeydown(v0.6.13+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否在存在一个激活节点时,当按下中文、英文、数字按键时自动进入文本编辑模式")])]),v("tr",[v("td",[t._v("richTextEditFakeInPlace(v0.6.13+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("设置富文本节点编辑框和节点大小一致,形成伪原地编辑的效果,需要注意的是,只有当节点内只有文本、且形状是矩形才会有比较好的效果")])]),v("tr",[v("td",[t._v("customHandleClipboardText(v0.6.14+)")]),v("td",[t._v("Function")]),v("td",[t._v("null")]),v("td",[t._v("自定义对剪贴板文本的处理。当按ctrl+v粘贴时会读取用户剪贴板中的文本和图片,默认只会判断文本是否是普通文本和simple-mind-map格式的节点数据,如果你想处理其他思维导图的数据,比如processon、zhixi等,那么可以传递一个函数,接受当前剪贴板中的文本为参数,返回处理后的数据,可以返回两种类型:1.返回一个纯文本,那么会直接以该文本创建一个子节点;2.返回一个节点对象,格式如下:{ simpleMindMap: true, data: { data: { text: '' }, children: [] } },代表是simple-mind-map格式的数据,节点数据同simple-mind-map节点数据格式,如果你的处理逻辑存在异步逻辑,也可以返回一个promise")])]),v("tr",[v("td",[t._v("errorHandler(v0.6.15+)")]),v("td",[t._v("Function")]),v("td"),v("td",[t._v("自定义错误处理函数,目前只会抛出一些异步逻辑出错的情况。可以传递一个函数,会接收两个参数,第一个为错误的类型,第二个为错误对象")])]),v("tr",[v("td",[t._v("disableMouseWheelZoom(v0.6.15+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("禁止鼠标滚轮缩放,你仍旧可以使用api进行缩放")])]),v("tr",[v("td",[t._v("resetCss(v0.6.16+)")]),v("td",[t._v("String")]),v("td",[t._v("* { margin: 0; padding: 0; box-sizing: border-box; }")]),v("td",[t._v("设置导出图片和svg时,针对富文本节点内容,也就是嵌入到svg中的html节点的默认样式覆盖,如果不覆盖,节点内容会发生偏移")])]),v("tr",[v("td",[t._v("enableDblclickReset(v0.6.17+)(v0.8.0+已删除该属性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true(v0.7.0+改为false)")]),v("td",[t._v("开启鼠标双击复位思维导图位置及缩放")])]),v("tr",[v("td",[t._v("enableDblclickBackToRootNode(v0.8.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否在鼠标双击时回到根节点,也就是让根节点居中显示")])]),v("tr",[v("td",[t._v("minExportImgCanvasScale(v0.7.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("导出图片和pdf时canvas的缩放倍数,该配置会和window.devicePixelRatio值取最大值,用于提升图片清晰度")])]),v("tr",[v("td",[t._v("hoverRectColor(v0.7.0+)")]),v("td",[t._v("String")]),v("td",[t._v("rgb(94, 200, 248)")]),v("td",[t._v("节点鼠标hover和激活时显示的矩形边框颜色,hover时会添加0.6的透明度")])]),v("tr",[v("td",[t._v("hoverRectPadding(v0.7.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("节点鼠标hover和激活时显示的矩形边框距节点内容的距离")])]),v("tr",[v("td",[t._v("selectTextOnEnterEditText(v0.7.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("双击节点进入节点文本编辑时是否默认选中文本,默认只在创建新节点时会选中")])]),v("tr",[v("td",[t._v("deleteNodeActive(v0.7.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启删除节点后自动激活节点相邻节点或父节点的功能")])]),v("tr",[v("td",[t._v("autoMoveWhenMouseInEdgeOnDrag(v0.7.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("拖拽节点时鼠标移动到画布边缘是否开启画布自动移动")])]),v("tr",[v("td",[t._v("fit(v0.7.1-fix.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("首次渲染时是否缩放至适应画布大小")])]),v("tr",[v("td",[t._v("dragMultiNodeRectConfig(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ width: 40, height: 20, fill: '' }")]),v("td",[t._v("拖拽多个节点时随鼠标移动的示意矩形的样式配置,传递一个对象,字段含义分别为矩形的宽、高、填充色")])]),v("tr",[v("td",[t._v("dragPlaceholderRectFill(v0.7.2+)")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("节点拖拽时新位置的示意矩形的填充颜色,如果不传默认使用连线的颜色")])]),v("tr",[v("td",[t._v("dragOpacityConfig(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ cloneNodeOpacity: 0.5, beingDragNodeOpacity: 0.3 }")]),v("td",[t._v("节点拖拽时的透明度配置,传递一个对象,字段含义分别为:跟随鼠标移动的克隆节点或矩形的透明度、被拖拽节点的透明度")])]),v("tr",[v("td",[t._v("tagsColorMap(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("自定义节点标签的颜色,可传一个对象,key为要指定颜色的标签内容,value为该标签内容的颜色,如果不传内部会根据标签内容生成对应的颜色")])]),v("tr",[v("td",[t._v("cooperateStyle(v0.7.3+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ avatarSize: 22, fontSize: 12 }")]),v("td",[t._v("节点协作编辑时的人员头像样式配置,字段含义分别为:头像大小、如果是文字头像,那么文字的大小")])]),v("tr",[v("td",[t._v("associativeLineIsAlwaysAboveNode(v0.8.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("关联线是否始终显示在节点上层,如果设为false,那么创建关联线和激活关联线时处于最顶层,其他情况下处于节点下方")])]),v("tr",[v("td",[t._v("defaultGeneralizationText(v0.8.0+)")]),v("td",[t._v("String")]),v("td",[t._v("概要")]),v("td",[t._v("插入概要的默认文本")])]),v("tr",[v("td",[t._v("handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+)")]),v("td",[t._v("Function / null")]),v("td",[t._v("null")]),v("td",[t._v("粘贴文本的方式创建新节点时,控制是否按换行自动分割节点,即如果存在换行,那么会根据换行创建多个节点,否则只会创建一个节点,可以传递一个函数,返回promise,resolve代表根据换行分割,reject代表忽略换行")])]),v("tr",[v("td",[t._v("addHistoryTime(v0.8.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态,单位:ms")])]),v("tr",[v("td",[t._v("isDisableDrag(v0.8.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否禁止拖动画布")])]),v("tr",[v("td",[t._v("disableTouchZoom(v0.8.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("禁止双指缩放,你仍旧可以使用api进行缩放,对TouchEvent插件生效")])]),v("tr",[v("td",[t._v("highlightNodeBoxStyle(v0.9.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' }")]),v("td",[t._v("鼠标移入概要高亮所属节点时的高亮框样式")])]),v("tr",[v("td",[t._v("createNewNodeBehavior(v0.9.1+)")]),v("td",[t._v("String")]),v("td",[t._v("default")]),v("td",[t._v("创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式)")])])])]),v("h3",[t._v("数据结构")]),v("p",[t._v("基本的数据结构如下:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("{\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {\n "),v("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的文本,可以是富文本,也就是html格式的,此时richText要设为true")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("richText")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("false")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的文本是否是富文本模式")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("expand")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点是否展开")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("uid")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(","),v("span",{staticClass:"hljs-comment"},[t._v("// 节点唯一的id,可不传,内部会生成")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("icon")]),t._v(": [], "),v("span",{staticClass:"hljs-comment"},[t._v("// 图标,格式可参考教程里的【插入和扩展节点图标】章节")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("image")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的url")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("imageTitle")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的标题,可为空")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("imageSize")]),t._v(": { "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的尺寸")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("width")]),t._v(": "),v("span",{staticClass:"hljs-number"},[t._v("100")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的宽度,必传")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("height")]),t._v(": "),v("span",{staticClass:"hljs-number"},[t._v("100")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的高度,必传")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("custom")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("false")]),t._v(" "),v("span",{staticClass:"hljs-comment"},[t._v("// 如果设为true,图片的显示大小不受主题控制,以imageSize.width和imageSize.height为准")]),t._v("\n },\n "),v("span",{staticClass:"hljs-attr"},[t._v("hyperlink")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 超链接地址")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("hyperlinkTitle")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 超链接的标题")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("note")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 备注的内容")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("tag")]),t._v(": [], "),v("span",{staticClass:"hljs-comment"},[t._v("// 标签列表")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("generalization")]),t._v(": {"),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的概要,如果没有概要generalization设为null即可")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),v("span",{staticClass:"hljs-comment"},[t._v("// 概要的文本")]),t._v("\n },\n "),v("span",{staticClass:"hljs-attr"},[t._v("associativeLineTargets")]),t._v(": ["),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v("],"),v("span",{staticClass:"hljs-comment"},[t._v("// 如果存在关联线,那么为目标节点的uid列表")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("associativeLineText")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(","),v("span",{staticClass:"hljs-comment"},[t._v("// 关联线文本")]),t._v("\n "),v("span",{staticClass:"hljs-comment"},[t._v("// ...其他样式字段,可以参考主题")]),t._v("\n },\n children ["),v("span",{staticClass:"hljs-comment"},[t._v("// 子节点,结构和根节点一致")]),t._v("\n {\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {},\n "),v("span",{staticClass:"hljs-attr"},[t._v("children")]),t._v(": []\n }\n ]\n}\n")])]),v("p",[t._v("如果你要添加自定义的字段,可以添加到"),v("code",[t._v("data")]),t._v("、"),v("code",[t._v("children")]),t._v("同级,如果你要添加到"),v("code",[t._v("data")]),t._v("对象里,那么请使用"),v("code",[t._v("_")]),t._v("开头来命名你的自定义字段,内部会通过这个来判断是否是自定义字段。")]),v("h3",[t._v("水印配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("text")]),v("td",[t._v("String")]),v("td",[t._v("''")]),v("td",[t._v("水印文字,如果为空字符串则不显示水印")])]),v("tr",[v("td",[t._v("lineSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("水印每行之间的间距")])]),v("tr",[v("td",[t._v("textSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("同一行水印之间的间距")])]),v("tr",[v("td",[t._v("angle")]),v("td",[t._v("Number")]),v("td",[t._v("30")]),v("td",[t._v("水印的倾斜角度,范围:[0, 90]")])]),v("tr",[v("td",[t._v("textStyle")]),v("td",[t._v("Object")]),v("td",[t._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),v("td",[t._v("水印文字样式")])])])]),v("h3",[t._v("图标配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("name")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的名称")])]),v("tr",[v("td",[t._v("type")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的值")])]),v("tr",[v("td",[t._v("list")]),v("td",[t._v("Array")]),v("td"),v("td",[t._v("分组下的图标列表,数组的每一项为一个对象,"),v("code",[t._v("{ name: '', icon: '' }")]),t._v(","),v("code",[t._v("name")]),t._v("代表图标的名称,"),v("code",[t._v("icon")]),t._v("代表图标,可以是"),v("code",[t._v("svg")]),t._v("图标,比如"),v("code",[t._v("")]),t._v(",也可以是图片"),v("code",[t._v("url")]),t._v(",或者是"),v("code",[t._v("base64")]),t._v("图标,比如"),v("code",[t._v("data:image/png;base64,...")])])])])]),v("h2",[t._v("静态方法")]),v("h3",[t._v("defineTheme(name, config)")]),v("blockquote",[v("p",[t._v("v0.2.23+")])]),v("p",[t._v("定义新主题。")]),v("p",[v("code",[t._v("name")]),t._v(":新主题名称")]),v("p",[v("code",[t._v("config")]),t._v(":主题数据")]),v("p",[v("code",[t._v("simple-mind-map")]),t._v("内置了众多主题,另外你也可以注册新主题,建议在实例化之前进行注册,这样在实例化时可以直接使用新注册的主题,使用示例:")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map'")]),t._v("\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 注册新主题")]),t._v("\nMindMap.defineTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(", {})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 1.实例化时使用新注册的主题")]),t._v("\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("theme")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v("\n})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 2.动态切换新主题")]),t._v("\nmindMap.setTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(")\n")])]),v("p",[t._v("主题的所有配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("默认主题")]),t._v("。"),v("code",[t._v("defineTheme")]),t._v("方法会把你传入的配置和默认配置做合并。大部分主题其实需要自定义的部分不是很多,一个典型的自定义主题配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[t._v("blueSky")]),t._v("。")]),v("h3",[t._v("usePlugin(plugin, opt = {})")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("ul",[v("li",[v("code",[t._v("opt")]),t._v(":v0.4.0+,插件参数。如果某个插件支持自定义选项的话可以通过这个参数传入。")])]),v("p",[t._v("注册插件,如果需要使用非核心的一些功能,比如小地图、水印等,可以通过该方法进行注册。可链式调用。")]),v("p",[t._v("注意:插件需要在实例化"),v("code",[t._v("MindMap")]),t._v("前注册。")]),v("h3",[t._v("hasPlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("获取是否注册了某个插件,返回的是插件在注册插件列表里的索引,为"),v("code",[t._v("-1")]),t._v("则代表插件没有注册。")]),v("h2",[t._v("静态属性")]),v("h3",[t._v("pluginList")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[t._v("当前注册的所有插件列表。")]),v("h2",[t._v("实例属性")]),v("h3",[t._v("el")]),v("p",[t._v("容器元素。")]),v("h3",[t._v("opt")]),v("p",[t._v("配置选项对象。")]),v("h3",[t._v("svg")]),v("blockquote",[v("p",[t._v("@svgdotjs/svg.js库调用SVG()方法返回的节点实例")])]),v("p",[t._v("画布svg元素。")]),v("h3",[t._v("draw")]),v("blockquote",[v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("svg节点的子节点")])]),v("p",[t._v("容器元素,用于承载节点、连线等内容。")]),v("h3",[t._v("lineDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("节点连线元素的容器。")]),v("h3",[t._v("nodeDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("节点元素的容器。")]),v("h3",[t._v("associativeLineDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("在注册了关联线插件的情况下可用")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("关联线内容的容器。")]),v("h3",[t._v("otherDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("其他内容的容器。")]),v("h3",[t._v("elRect")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的尺寸、位置信息。调用"),v("code",[t._v("getBoundingClientRect()")]),t._v("方法的返回结果。")]),v("h3",[t._v("width")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的宽度。")]),v("h3",[t._v("height")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的高度。")]),v("h3",[t._v("themeConfig")]),v("p",[t._v("当前主题配置。")]),v("h2",[t._v("实例方法")]),v("h3",[t._v("clearDraw()")]),v("blockquote",[v("p",[t._v("v0.8.0+")])]),v("p",[t._v("清空"),v("code",[t._v("lineDraw")]),t._v("、"),v("code",[t._v("associativeLineDraw")]),t._v("、"),v("code",[t._v("nodeDraw")]),t._v("、"),v("code",[t._v("otherDraw")]),t._v("容器。")]),v("h3",[t._v("destroy()")]),v("blockquote",[v("p",[t._v("v0.6.0+")])]),v("p",[t._v("销毁思维导图。会移除注册的插件、移除监听的事件、删除画布的所有节点。")]),v("h3",[t._v("getSvgData({ paddingX = 0, paddingY = 0, ignoreWatermark = false })")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[v("code",[t._v("paddingX")]),t._v(":水平内边距")]),v("p",[v("code",[t._v("paddingY")]),t._v(":垂直内边距")]),v("p",[v("code",[t._v("ignoreWatermark")]),t._v(":v0.8.0+,不要绘制水印,如果不需要绘制水印的场景可以传"),v("code",[t._v("true")]),t._v(",因为绘制水印非常慢")]),v("p",[t._v("获取"),v("code",[t._v("svg")]),t._v("数据,返回一个对象,详细结构如下:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("{\n svg, "),v("span",{staticClass:"hljs-comment"},[t._v("// Element,思维导图图形的整体svg元素,包括:svg(画布容器)、g(实际的思维导图组)")]),t._v("\n svgHTML, "),v("span",{staticClass:"hljs-comment"},[t._v("// String,svg字符串,即html字符串,可以直接渲染到你准备的小地图容器内")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("rect")]),t._v(": "),v("span",{staticClass:"hljs-comment"},[t._v("// Object,思维导图图形未缩放时的位置尺寸等信息")]),t._v("\n origWidth, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布宽度")]),t._v("\n origHeight, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布高度")]),t._v("\n scaleX, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的水平缩放值")]),t._v("\n scaleY, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的垂直缩放值")]),t._v("\n}\n")])]),v("h3",[t._v("render(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("触发整体渲染,会进行节点复用,性能较"),v("code",[t._v("reRender")]),t._v("会更好一点,如果只是节点位置变化了可以调用该方法进行渲染")]),v("h3",[t._v("reRender(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("整体重新渲染,会清空画布,节点也会重新创建,性能不好,慎重使用")]),v("h3",[t._v("resize()")]),v("p",[t._v("容器尺寸变化后,需要调用该方法进行适应")]),v("h3",[t._v("setMode(mode)")]),v("blockquote",[v("p",[t._v("v0.1.7+")])]),v("p",[t._v("切换模式为只读或编辑。")]),v("p",[v("code",[t._v("mode")]),t._v(":readonly、edit")]),v("h3",[t._v("on(event, fn)")]),v("p",[t._v("监听事件,事件列表:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("事件名称")]),v("th",[t._v("描述")]),v("th",[t._v("回调参数")])])]),v("tbody",[v("tr",[v("td",[t._v("data_change")]),v("td",[t._v("渲染树数据变化,可以监听该方法获取最新数据")]),v("td",[t._v("data(当前渲染树数据)")])]),v("tr",[v("td",[t._v("view_data_change(v0.1.1+)")]),v("td",[t._v("视图变化数据,比如拖动或缩放时会触发")]),v("td",[t._v("data(当前视图状态数据)")])]),v("tr",[v("td",[t._v("back_forward")]),v("td",[t._v("前进或回退")]),v("td",[t._v("activeHistoryIndex(当前在历史数据数组里的索引)、length(当前历史数据数组的长度)")])]),v("tr",[v("td",[t._v("draw_click")]),v("td",[v("em",[t._v("画布的单击事件")])]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mousedown")]),v("td",[t._v("svg画布的鼠标按下事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("mousedown")]),v("td",[t._v("el元素的鼠标按下事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousemove")]),v("td",[t._v("el元素的鼠标移动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("drag")]),v("td",[t._v("如果是按住左键拖动的话会触发拖动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mouseup")]),v("td",[t._v("el元素的鼠标松开事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousewheel")]),v("td",[t._v("鼠标滚动事件")]),v("td",[t._v("e(事件对象)、dir(向上up还是向下down滚动)、this(Event事件类实例)、isTouchPad(v0.6.1+,是否是触控板触发的事件)")])]),v("tr",[v("td",[t._v("contextmenu")]),v("td",[t._v("svg画布的鼠标右键菜单事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("node_click")]),v("td",[t._v("节点的单击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mousedown")]),v("td",[t._v("节点的鼠标按下事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseup")]),v("td",[t._v("节点的鼠标松开事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_dblclick")]),v("td",[t._v("节点的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_contextmenu")]),v("td",[t._v("节点的右键菜单事件")]),v("td",[t._v("e(事件对象)、this(节点实例)")])]),v("tr",[v("td",[t._v("node_mouseenter(v0.4.1+)")]),v("td",[t._v("节点的鼠标移入事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseleave(v0.4.1+)")]),v("td",[t._v("节点的鼠标移出事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("before_node_active")]),v("td",[t._v("节点激活前事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("node_active")]),v("td",[t._v("节点激活事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("expand_btn_click")]),v("td",[t._v("节点展开或收缩事件")]),v("td",[t._v("this(节点实例)")])]),v("tr",[v("td",[t._v("before_show_text_edit")]),v("td",[t._v("节点文本编辑框即将打开事件")]),v("td")]),v("tr",[v("td",[t._v("hide_text_edit")]),v("td",[t._v("节点文本编辑框关闭事件")]),v("td",[t._v("textEditNode(文本编辑框DOM节点)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("scale")]),v("td",[t._v("放大缩小事件")]),v("td",[t._v("scale(缩放比例)")])]),v("tr",[v("td",[t._v("node_img_dblclick(v0.2.15+)")]),v("td",[t._v("节点内图片的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mouseenter(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移入事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mouseleave(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移出事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mousemove(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移动事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_tree_render_end(v0.2.16+)")]),v("td",[t._v("节点树渲染完毕事件")]),v("td")]),v("tr",[v("td",[t._v("rich_text_selection_change(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当节点编辑时,文本选区发生改变时触发")]),v("td",[t._v("hasRange(是否存在选区)、rectInfo(选区的尺寸和位置信息)、formatInfo(选区的文本格式化信息)")])]),v("tr",[v("td",[t._v("transforming-dom-to-images(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("DOM")]),t._v("节点时,导出为图片时会将"),v("code",[t._v("DOM")]),t._v("节点转换为图片,转换过程中会触发该事件,可用通过该事件给用户提示,告知目前转换到的节点")]),v("td",[t._v("index(当前转换到的节点索引)、len(一共需要转换的节点数量)")])]),v("tr",[v("td",[t._v("node_dragging(v0.4.5+)")]),v("td",[t._v("当某个节点被拖拽时触发")]),v("td",[t._v("node(当前被拖拽的节点)")])]),v("tr",[v("td",[t._v("node_dragend(v0.4.5+)")]),v("td",[t._v("节点被拖拽结束时触发")]),v("td",[t._v("{ overlapNodeUid, prevNodeUid, nextNodeUid }(v0.6.12+,本次节点移动到的节点uid,比如本次移动到了节点A上,那么overlapNodeUid就是节点A的uid,如果移动到了B节点的前面,那么nextNodeUid就是节点B的uid,你可以通过mindMap.renderer.findNodeByUid(uid)方法来获取节点实例)")])]),v("tr",[v("td",[t._v("associative_line_click(v0.4.5+)")]),v("td",[t._v("点击某条关联线时触发")]),v("td",[t._v("path(连接线节点)、clickPath(不可见的点击线节点)、node(起始节点)、toNode(目标节点)")])]),v("tr",[v("td",[t._v("svg_mouseenter(v0.5.1+)")]),v("td",[t._v("鼠标移入svg画布时触发")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mouseleave(v0.5.1+)")]),v("td",[t._v("鼠标移出svg画布时触发")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("node_icon_click(v0.6.10+)")]),v("td",[t._v("点击节点内的图标时触发")]),v("td",[t._v("this(节点实例)、item(点击的图标名称)、e(事件对象)")])]),v("tr",[v("td",[t._v("view_theme_change(v0.6.12+)")]),v("td",[t._v("调用了setTheme方法设置主题后触发")]),v("td",[t._v("theme(设置的新主题名称)")])]),v("tr",[v("td",[t._v("set_data(v0.7.3+)")]),v("td",[t._v("调用了setData方法动态设置思维导图数据时触发")]),v("td",[t._v("data(新的思维导图数据)")])]),v("tr",[v("td",[t._v("resize(v0.8.0+)")]),v("td",[t._v("容器尺寸改变后触发,实际上是当思维导图实例的"),v("code",[t._v("resize")]),t._v("方法被调用后触发")]),v("td")]),v("tr",[v("td",[t._v("beforeDestroy(v0.9.0+)")]),v("td",[t._v("思维导图销毁前触发,即调用了destroy方法触发")]),v("td")])])]),v("h3",[t._v("emit(event, ...args)")]),v("p",[t._v("触发事件,可以是上面表格里的事件,也可以是自定义事件")]),v("h3",[t._v("off(event, fn)")]),v("p",[t._v("解绑事件")]),v("h3",[t._v("setTheme(theme, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("切换主题,可选主题见上面的选项表格")]),v("h3",[t._v("getTheme()")]),v("p",[t._v("获取当前主题")]),v("h3",[t._v("setThemeConfig(config, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("设置主题配置,"),v("code",[t._v("config")]),t._v("同上面选项表格里的选项"),v("code",[t._v("themeConfig")])]),v("h3",[t._v("getCustomThemeConfig()")]),v("p",[t._v("获取自定义主题配置")]),v("h3",[t._v("getThemeConfig(prop)")]),v("p",[t._v("获取某个主题配置属性值")]),v("h3",[t._v("getConfig("),v("em",[t._v("prop")]),t._v(")")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("prop")]),t._v(":获取指定配置的值,不传则返回整个配置")]),v("p",[t._v("获取配置,即"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")])]),v("h3",[t._v("updateConfig("),v("em",[t._v("opt")]),t._v(" = {})")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("opt")]),t._v(":要更新的配置")]),v("p",[t._v("更新配置,即更新"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")]),t._v(",可以只更新部分数据,比如:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("mindMap.updateConfig({\n "),v("span",{staticClass:"hljs-attr"},[t._v("enableFreeDrag")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("true")]),v("span",{staticClass:"hljs-comment"},[t._v("// 开启节点自由拖拽")]),t._v("\n})\n")])]),v("p",[t._v("该方法只做更新配置的事情,没有其他副作用,比如触发画布重新渲染之类的")]),v("h3",[t._v("getLayout()")]),v("p",[t._v("获取当前的布局结构")]),v("h3",[t._v("setLayout(layout, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("设置布局结构,可选值见上面选项表格的"),v("code",[t._v("layout")]),t._v("字段")]),v("h3",[t._v("execCommand(name, ...args)")]),v("p",[t._v("执行命令,每执行一个命令就会在历史堆栈里添加一条记录用于回退或前进。所有命令如下:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("命令名称")]),v("th",[t._v("描述")]),v("th",[t._v("参数")])])]),v("tbody",[v("tr",[v("td",[t._v("SELECT_ALL")]),v("td",[t._v("全选")]),v("td")]),v("tr",[v("td",[t._v("BACK")]),v("td",[t._v("回退指定的步数")]),v("td",[t._v("step(要回退的步数,默认为1)")])]),v("tr",[v("td",[t._v("FORWARD")]),v("td",[t._v("前进指定的步数")]),v("td",[t._v("step(要前进的步数,默认为1)")])]),v("tr",[v("td",[t._v("INSERT_NODE")]),v("td",[t._v("插入同级节点,操作节点为当前激活的节点或指定节点,如果有多个激活节点,只会对第一个有效(v0.7.2+支持对多个激活节点同时插入兄弟节点)")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定要插入兄弟节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")、 appointChildren(v0.6.14+,可选,指定新创建节点的子节点,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_CHILD_NODE")]),v("td",[t._v("插入子节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")、 appointChildren(v0.6.14+,可选,指定新创建节点的子节点,数组类型)")])]),v("tr",[v("td",[t._v("UP_NODE")]),v("td",[t._v("上移节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的第一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("DOWN_NODE")]),v("td",[t._v("操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的最后一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("REMOVE_NODE")]),v("td",[t._v("删除节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)")])]),v("tr",[v("td",[t._v("PASTE_NODE")]),v("td",[t._v("粘贴节点到节点,操作节点为当前激活的节点")]),v("td",[t._v("data(要粘贴的节点数据,一般通过"),v("code",[t._v("renderer.copyNode()")]),t._v("方法和"),v("code",[t._v("renderer.cutNode()")]),t._v("方法获取)")])]),v("tr",[v("td",[t._v("CUT_NODE")]),v("td",[t._v("剪切节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点使用无效")]),v("td",[t._v("callback(回调函数,剪切的节点数据会通过调用该函数并通过参数返回)")])]),v("tr",[v("td",[t._v("SET_NODE_STYLE")]),v("td",[t._v("修改节点单个样式")]),v("td",[t._v("node(要设置样式的节点)、style(样式属性)、value(样式属性值)、isActive(v0.7.0+已废弃,布尔值,是否设置的是激活状态的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_STYLEs(v0.6.12+)")]),v("td",[t._v("修改节点多个样式")]),v("td",[t._v("node(要设置样式的节点)、style(样式对象,key为样式属性,value为样式值)、isActive(v0.7.0+已废弃,布尔值,是否设置的是激活状态的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_ACTIVE")]),v("td",[t._v("设置节点是否激活")]),v("td",[t._v("node(要设置的节点)、active(布尔值,是否激活)")])]),v("tr",[v("td",[t._v("CLEAR_ACTIVE_NODE")]),v("td",[t._v("清除当前已激活节点的激活状态,操作节点为当前激活的节点")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_EXPAND")]),v("td",[t._v("设置节点是否展开")]),v("td",[t._v("node(要设置的节点)、expand(布尔值,是否展开)")])]),v("tr",[v("td",[t._v("EXPAND_ALL")]),v("td",[t._v("展开所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_ALL")]),v("td",[t._v("收起所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_TO_LEVEL(v0.2.8+)")]),v("td",[t._v("展开到指定层级")]),v("td",[t._v("level(要展开到的层级,1、2、3...)")])]),v("tr",[v("td",[t._v("SET_NODE_DATA")]),v("td",[t._v("更新节点数据,即更新节点数据对象里"),v("code",[t._v("data")]),t._v("对象的数据")]),v("td",[t._v("node(要设置的节点)、data(对象,要更新的数据,如"),v("code",[t._v("{expand: true}")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_TEXT")]),v("td",[t._v("设置节点文本")]),v("td",[t._v("node(要设置的节点)、text(要设置的文本字符串,换行可以使用"),v("code",[t._v("\\n")]),t._v(")、richText(v0.4.0+,如果要设置的是富文本字符,需要设为"),v("code",[t._v("true")]),t._v(")、resetRichText(v0.6.10+是否要复位富文本,默认为false,如果传true那么会重置富文本节点的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_IMAGE")]),v("td",[t._v("设置节点图片")]),v("td",[t._v("node(要设置的节点)、imgData(对象,图片信息,结构为:"),v("code",[t._v("{url, title, width, height}")]),t._v(",图片的宽高必须要传)")])]),v("tr",[v("td",[t._v("SET_NODE_ICON")]),v("td",[t._v("设置节点图标")]),v("td",[t._v("node(要设置的节点)、icons(数组,预定义的图片名称组成的数组,可用图标可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[t._v("icons.js")]),t._v("文件里的"),v("code",[t._v("nodeIconList")]),t._v("列表里获取到,图标名称为"),v("code",[t._v("type_name")]),t._v(",如"),v("code",[t._v("['priority_1']")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_HYPERLINK")]),v("td",[t._v("设置节点超链接")]),v("td",[t._v("node(要设置的节点)、link(超链接地址)、title(超链接名称,可选)")])]),v("tr",[v("td",[t._v("SET_NODE_NOTE")]),v("td",[t._v("设置节点备注")]),v("td",[t._v("node(要设置的节点)、note(备注文字)")])]),v("tr",[v("td",[t._v("SET_NODE_TAG")]),v("td",[t._v("设置节点标签")]),v("td",[t._v("node(要设置的节点)、tag(字符串数组,内置颜色信息可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[t._v("constant.js")]),t._v("里获取到)")])]),v("tr",[v("td",[t._v("INSERT_AFTER(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的后面")]),v("td",[t._v("node(要移动的节点,(v0.7.2+支持传递节点数组实现同时移动多个节点))、 exist(目标节点)")])]),v("tr",[v("td",[t._v("INSERT_BEFORE(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的前面,(v0.7.2+支持传递节点数组实现同时移动多个节点)")]),v("td",[t._v("node(要移动的节点)、 exist(目标节点)")])]),v("tr",[v("td",[t._v("MOVE_NODE_TO(v0.1.5+)")]),v("td",[t._v("移动节点作为另一个节点的子节点,(v0.7.2+支持传递节点数组实现同时移动多个节点)")]),v("td",[t._v("node(要移动的节点)、 toNode(目标节点)")])]),v("tr",[v("td",[t._v("ADD_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("添加节点概要")]),v("td",[t._v("data(概要的数据,对象格式,节点的数字段都支持,默认为{text: '概要'})")])]),v("tr",[v("td",[t._v("REMOVE_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("删除节点概要")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_CUSTOM_POSITION(v0.2.0+)")]),v("td",[t._v("设置节点自定义位置")]),v("td",[t._v("node(要设置的节点)、 left(自定义的x坐标,默认为undefined)、 top(自定义的y坐标,默认为undefined)")])]),v("tr",[v("td",[t._v("RESET_LAYOUT(v0.2.0+)")]),v("td",[t._v("一键整理布局")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_SHAPE(v0.2.4+)")]),v("td",[t._v("设置节点形状")]),v("td",[t._v("node(要设置的节点)、shape(形状,全部形状:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[t._v("Shape.js")]),t._v(")")])]),v("tr",[v("td",[t._v("GO_TARGET_NODE(v0.6.7+)")]),v("td",[t._v("定位到某个节点,如果该节点被收起,那么会自动展开到该节点")]),v("td",[t._v("node(要定位到的节点实例或节点uid)、callback(v0.6.9+,定位完成后的回调函数)")])]),v("tr",[v("td",[t._v("INSERT_MULTI_NODE(v0.7.2+)")]),v("td",[t._v("给指定的节点同时插入多个同级节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定节点,指定多个节点可以传一个数组), nodeList(新插入节点的数据列表,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_MULTI_CHILD_NODE(v0.7.2+)")]),v("td",[t._v("给指定的节点同时插入多个子节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定节点,指定多个节点可以传一个数组), childList(新插入节点的数据列表,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_FORMULA(v0.7.2+)")]),v("td",[t._v("给节点插入数学公式,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("formula(要插入的数学公式,LaTeX 语法), appointNodes(可选,指定要插入公式的节点,多个节点可以传数组,否则默认为当前激活的节点)")])]),v("tr",[v("td",[t._v("INSERT_PARENT_NODE(v0.8.0+)")]),v("td",[t._v("给指定的节点插入父节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("openEdit(是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(可选,指定要插入父节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")")])]),v("tr",[v("td",[t._v("REMOVE_CURRENT_NODE(v0.8.0+)")]),v("td",[t._v("仅删除当前节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定要删除的节点,指定多个节点可以传一个数组)")])])])]),v("h3",[t._v("setData(data)")]),v("p",[t._v("动态设置思维导图数据,纯节点数据")]),v("p",[v("code",[t._v("data")]),t._v(":思维导图结构数据")]),v("h3",[t._v("setFullData("),v("em",[t._v("data")]),t._v(")")]),v("blockquote",[v("p",[t._v("v0.2.7+")])]),v("p",[t._v("动态设置思维导图数据,包括节点数据、布局、主题、视图")]),v("p",[v("code",[t._v("data")]),t._v(":完整数据,结构可参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[t._v("exportFullData")])]),v("h3",[t._v("getData(withConfig)")]),v("blockquote",[v("p",[t._v("v0.2.9+")])]),v("p",[t._v("获取思维导图数据")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",即获取的数据只包括节点树,如果传"),v("code",[t._v("true")]),t._v("则会包含主题、布局、视图等数据")]),v("h3",[t._v("export(type, isDownload, fileName)")]),v("blockquote",[v("p",[t._v("需要先注册"),v("code",[t._v("Export")]),t._v("插件")])]),v("p",[t._v("导出")]),v("p",[v("code",[t._v("type")]),t._v(":要导出的类型,可选值:png、svg、json、pdf(v0.2.1+)、smm(本质也是json)")]),v("p",[v("code",[t._v("isDownload")]),t._v(":是否需要直接触发下载,布尔值,默认为"),v("code",[t._v("false")])]),v("p",[v("code",[t._v("fileName")]),t._v(":(v0.1.6+)导出文件的名称,默认为"),v("code",[t._v("思维导图")])]),v("p",[t._v("如果是导出为"),v("code",[t._v("png")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("transparent")]),t._v(":v0.5.7+, "),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",指定导出图片的背景是否是透明的")]),v("p",[t._v("如果是导出为"),v("code",[t._v("svg")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("plusCssText")]),t._v(":附加的"),v("code",[t._v("css")]),t._v("样式,如果"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("dom")]),t._v("节点,想要设置一些针对节点的样式可以通过这个参数传入")]),v("p",[t._v("如果是导出为"),v("code",[t._v("json")]),t._v("或"),v("code",[t._v("smm")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("true")]),t._v(",指定导出的数据中是否包含配置数据,否则只导出纯节点树数据")]),v("h3",[t._v("toPos(x, y)")]),v("blockquote",[v("p",[t._v("v0.1.5+")])]),v("p",[t._v("将浏览器可视窗口的坐标转换成相对于画布的坐标")]),v("h3",[t._v("addPlugin(plugin, opt)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("注册插件,使用"),v("code",[t._v("MindMap.usePlugin")]),t._v("注册插件只能在实例化之前,实例化后注册的插件是不会生效的,所以如果想在实例化后注册插件可以使用实例的"),v("code",[t._v("addPlugin")]),t._v("方法。")]),v("h3",[t._v("removePlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("移除注册的插件,无论是通过"),v("code",[t._v("usePlugin")]),t._v("还是"),v("code",[t._v("addPlugin")]),t._v("方法注册的插件都可以移除。")])])}],s={},a=s,n=_("2877"),o=Object(n["a"])(a,e,d,!1,null,null,null);v["default"]=o.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dad5f"],{"6cfb":function(t,v,_){"use strict";_.r(v);var e=function(){var t=this;t._self._c;return t._m(0)},d=[function(){var t=this,v=t._self._c;return v("div",[v("h1",[t._v("构造函数")]),v("h2",[t._v("基本使用")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-tag"},[t._v("<"),v("span",{staticClass:"hljs-name"},[t._v("div")]),t._v(" "),v("span",{staticClass:"hljs-attr"},[t._v("id")]),t._v("="),v("span",{staticClass:"hljs-string"},[t._v('"mindMapContainer"')]),t._v(">")]),v("span",{staticClass:"hljs-tag"},[t._v("")]),t._v("\n")])]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v('"simple-mind-map"')]),t._v(";\n\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("el")]),t._v(": "),v("span",{staticClass:"hljs-built_in"},[t._v("document")]),t._v(".getElementById("),v("span",{staticClass:"hljs-string"},[t._v("'mindMapContainer'")]),t._v("),\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"data"')]),t._v(": {\n "),v("span",{staticClass:"hljs-string"},[t._v('"text"')]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v('"根节点"')]),t._v("\n },\n "),v("span",{staticClass:"hljs-string"},[t._v('"children"')]),t._v(": []\n }\n});\n")])]),v("h2",[t._v("实例化选项")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("el")]),v("td",[t._v("Element")]),v("td"),v("td",[t._v("容器元素,必传,必须为DOM元素")])]),v("tr",[v("td",[t._v("data")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("思维导图数据,可参考下方【数据结构】介绍")])]),v("tr",[v("td",[t._v("layout")]),v("td",[t._v("String")]),v("td",[t._v("logicalStructure")]),v("td",[t._v("布局类型,可选列表:logicalStructure(逻辑结构图)、mindMap(思维导图)、catalogOrganization(目录组织图)、organizationStructure(组织结构图)、timeline(v0.5.4+,时间轴)、timeline2(v0.5.4+,上下交替型时间轴)、fishbone(v0.5.4+,鱼骨图)")])]),v("tr",[v("td",[t._v("fishboneDeg(v0.5.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("45")]),v("td",[t._v("设置鱼骨结构图的斜线角度")])]),v("tr",[v("td",[t._v("theme")]),v("td",[t._v("String")]),v("td",[t._v("default")]),v("td",[t._v("主题,可选列表:default(默认)、classic(脑图经典)、minions(小黄人)、pinkGrape(粉红葡萄)、mint(薄荷)、gold(金色vip)、vitalityOrange(活力橙)、greenLeaf(绿叶)、dark2(暗色2)、skyGreen(天清绿)、classic2(脑图经典2)、classic3(脑图经典3)、classic4(脑图经典4,v0.2.0+)、classicGreen(经典绿)、classicBlue(经典蓝)、blueSky(天空蓝)、brainImpairedPink(脑残粉)、dark(暗色)、earthYellow(泥土黄)、freshGreen(清新绿)、freshRed(清新红)、romanticPurple(浪漫紫)、simpleBlack(v0.5.4+简约黑)、courseGreen(v0.5.4+课程绿)、coffee(v0.5.4+咖啡)、redSpirit(v0.5.4+红色精神)、blackHumour(v0.5.4+黑色幽默)、lateNightOffice(v0.5.4+深夜办公室)、blackGold(v0.5.4+黑金)、avocado(v.5.10-fix.2+牛油果)、autumn(v.5.10-fix.2+秋天)、orangeJuice(v.5.10-fix.2+橙汁)")])]),v("tr",[v("td",[t._v("themeConfig")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("主题配置,会和所选择的主题进行合并,可用字段可参考:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("default.js")])])]),v("tr",[v("td",[t._v("scaleRatio")]),v("td",[t._v("Number")]),v("td",[t._v("0.1")]),v("td",[t._v("放大缩小的增量比例")])]),v("tr",[v("td",[t._v("maxTag")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里最多显示的标签数量,多余的会被丢弃")])]),v("tr",[v("td",[t._v("exportPadding")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("导出图片时的内边距")])]),v("tr",[v("td",[t._v("imgTextMargin")]),v("td",[t._v("Number")]),v("td",[t._v("5")]),v("td",[t._v("节点里图片和文字的间距")])]),v("tr",[v("td",[t._v("textContentMargin")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("节点里各种文字信息的间距,如图标和文字的间距")])]),v("tr",[v("td",[t._v("selectTranslateStep")]),v("td",[t._v("Number")]),v("td",[t._v("3")]),v("td",[t._v("多选节点时鼠标移动到边缘时的画布移动偏移量")])]),v("tr",[v("td",[t._v("selectTranslateLimit")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("多选节点时鼠标移动距边缘多少距离时开始偏移")])]),v("tr",[v("td",[t._v("customNoteContentShow(v0.1.6+)")]),v("td",[t._v("Object")]),v("td",[t._v("null")]),v("td",[t._v("自定义节点备注内容显示,Object类型,结构为:{show: (noteContent, left, top, node) => {// 你的显示节点备注逻辑。node为v0.8.1+版本新增的回参,代表节点实例 }, hide: () => {// 你的隐藏节点备注逻辑 }}")])]),v("tr",[v("td",[t._v("readonly(v0.1.7+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否是只读模式")])]),v("tr",[v("td",[t._v("enableFreeDrag(v0.2.4+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否开启节点自由拖拽(自由拖拽即可以把节点拖拽到画布的任意位置,注意不是拖拽节点成为其他节点的子节点兄弟节点的功能,自由拖拽的连线会存在一定问题,所以该特性最好不要使用)")])]),v("tr",[v("td",[t._v("watermarkConfig(v0.2.4+)")]),v("td",[t._v("Object")]),v("td"),v("td",[t._v("水印配置,详细配置请参考下方表格【水印配置】")])]),v("tr",[v("td",[t._v("textAutoWrapWidth(v0.3.4+)")]),v("td",[t._v("Number")]),v("td",[t._v("500")]),v("td",[t._v("节点内每行文本达到该宽度后自动换行")])]),v("tr",[v("td",[t._v("customHandleMousewheel(v0.4.3+)")]),v("td",[t._v("Function")]),v("td",[t._v("null")]),v("td",[t._v("自定义鼠标滚轮事件处理,可以传一个函数,回调参数为事件对象")])]),v("tr",[v("td",[t._v("mousewheelAction(v0.4.3+)")]),v("td",[t._v("String")]),v("td",[t._v("zoom(v0.9.1+默认改为move)")]),v("td",[t._v("鼠标滚轮的行为,"),v("code",[t._v("zoom")]),t._v("(放大缩小)、"),v("code",[t._v("move")]),t._v("(上下移动)。如果"),v("code",[t._v("customHandleMousewheel")]),t._v("传了自定义函数,这个属性不生效")])]),v("tr",[v("td",[t._v("mousewheelMoveStep(v0.4.3+)")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("当"),v("code",[t._v("mousewheelAction")]),t._v("设为"),v("code",[t._v("move")]),t._v("时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位"),v("code",[t._v("px")])])]),v("tr",[v("td",[t._v("mousewheelZoomActionReverse(v0.6.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false(v0.9.1+默认改为true)")]),v("td",[t._v("当mousewheelAction设为zoom时,或者按住Ctrl键时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来")])]),v("tr",[v("td",[t._v("defaultInsertSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("二级节点")]),v("td",[t._v("默认插入的二级节点的文字")])]),v("tr",[v("td",[t._v("defaultInsertBelowSecondLevelNodeText(v0.4.7+)")]),v("td",[t._v("String")]),v("td",[t._v("分支主题")]),v("td",[t._v("默认插入的二级以下节点的文字")])]),v("tr",[v("td",[t._v("expandBtnStyle(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' }")]),v("td",[t._v("展开收起按钮的颜色,(fontSize及strokeColor字段为0.7.0+版本新增的,用于设置收起时显示节点数量的文字样式)")])]),v("tr",[v("td",[t._v("expandBtnIcon(v0.5.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ open: '', close: '' }")]),v("td",[t._v("自定义展开收起按钮的图标,可以传图标的svg字符串")])]),v("tr",[v("td",[t._v("expandBtnNumHandler(v0.7.0+)")]),v("td",[t._v("Function")]),v("td"),v("td",[t._v("用于自定义收起时显示节点数量的内容,接收一个参数,代表收起的节点实例,需要返回一个数字或字符串,代表最终显示的内容,比如你可以当数量大于99时,显示99+")])]),v("tr",[v("td",[t._v("isShowExpandNum(v0.7.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("节点收起时是否显示收起的数量")])]),v("tr",[v("td",[t._v("enableShortcutOnlyWhenMouseInSvg(v0.5.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否只有当鼠标在画布内才响应快捷键事件")])]),v("tr",[v("td",[t._v("enableNodeTransitionMove(v0.5.1+)(v0.6.7+已去除该特性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启节点动画过渡")])]),v("tr",[v("td",[t._v("nodeTransitionMoveDuration(v0.5.1+)(v0.6.7+已去除该特性)")]),v("td",[t._v("Number")]),v("td",[t._v("300")]),v("td",[t._v("如果开启节点动画过渡,可以通过该属性设置过渡的时间,单位ms")])]),v("tr",[v("td",[t._v("initRootNodePosition(v0.5.3+)")]),v("td",[t._v("Array")]),v("td",[t._v("null")]),v("td",[t._v("初始根节点的位置,可传一个数组,默认为"),v("code",[t._v("['center', 'center']")]),t._v(",代表根节点处于画布中心位置,除了"),v("code",[t._v("center")]),t._v(",关键词还可以设置"),v("code",[t._v("left")]),t._v("、"),v("code",[t._v("top")]),t._v("、"),v("code",[t._v("right")]),t._v("、"),v("code",[t._v("bottom")]),t._v(",除了可以传关键词,数组的每项还可以传递一个数字,代表具体的像素,可以传递一个百分比字符串,比如"),v("code",[t._v("['40%', '60%']")]),t._v(",代表水平位置在画布宽度的"),v("code",[t._v("40%")]),t._v("的位置,垂直位置在画布高度的"),v("code",[t._v("60%")]),t._v("的位置")])]),v("tr",[v("td",[t._v("exportPaddingX(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形水平内边距")])]),v("tr",[v("td",[t._v("exportPaddingY(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("10")]),v("td",[t._v("导出png、svg、pdf时的图形垂直内边距")])]),v("tr",[v("td",[t._v("nodeTextEditZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点文本编辑框元素的z-index")])]),v("tr",[v("td",[t._v("nodeNoteTooltipZIndex(v0.5.5+)")]),v("td",[t._v("Number")]),v("td",[t._v("3000")]),v("td",[t._v("节点备注浮层元素的z-index")])]),v("tr",[v("td",[t._v("isEndNodeTextEditOnClickOuter(v0.5.5+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否在点击了画布外的区域时结束节点文本的编辑状态")])]),v("tr",[v("td",[t._v("maxHistoryCount(v0.5.6+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000")]),v("td",[t._v("最大历史记录数")])]),v("tr",[v("td",[t._v("alwaysShowExpandBtn(v0.5.8+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否一直显示节点的展开收起按钮,默认为鼠标移上去和激活时才显示")])]),v("tr",[v("td",[t._v("iconList(v0.5.8+)")]),v("td",[t._v("Array")]),v("td",[t._v("[]")]),v("td",[t._v("扩展节点可插入的图标,数组的每一项为一个对象,对象详细结构请参考下方【图标配置】表格")])]),v("tr",[v("td",[t._v("maxNodeCacheCount(v0.5.10+)")]),v("td",[t._v("Number")]),v("td",[t._v("1000")]),v("td",[t._v("节点最大缓存数量。为了优化性能,内部会维护一个节点缓存池,用来复用节点,通过该属性可以指定池的最大缓存数量")])]),v("tr",[v("td",[t._v("defaultAssociativeLineText(v0.5.11+)")]),v("td",[t._v("String")]),v("td",[t._v("关联")]),v("td",[t._v("关联线默认文字")])]),v("tr",[v("td",[t._v("fitPadding(v0.6.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("50")]),v("td",[t._v("思维导图适应画布大小时的内边距,单位:px")])]),v("tr",[v("td",[t._v("enableCtrlKeyNodeSelection(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启按住ctrl键多选节点的功能")])]),v("tr",[v("td",[t._v("useLeftKeySelectionRightKeyDrag(v0.6.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("设置为左键多选节点,右键拖动画布")])]),v("tr",[v("td",[t._v("beforeTextEdit(v0.6.0+)")]),v("td",[t._v("Function/null")]),v("td",[t._v("null")]),v("td",[t._v("节点即将进入编辑前的回调方法,如果该方法返回true以外的值,那么将取消编辑,函数可以返回一个值,或一个Promise,回调参数为节点实例")])]),v("tr",[v("td",[t._v("isUseCustomNodeContent(v0.6.3+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否自定义节点内容")])]),v("tr",[v("td",[t._v("customCreateNodeContent(v0.6.3+)")]),v("td",[t._v("Function/null")]),v("td",[t._v("null")]),v("td",[t._v("如果"),v("code",[t._v("isUseCustomNodeContent")]),t._v("设为"),v("code",[t._v("true")]),t._v(",那么需要使用该选项传入一个方法,接收节点实例"),v("code",[t._v("node")]),t._v("为参数(如果要获取该节点的数据,可以通过"),v("code",[t._v("node.nodeData.data")]),t._v("),需要返回自定义节点内容元素,也就是DOM节点,如果某个节点不需要自定义,那么返回"),v("code",[t._v("null")]),t._v("即可")])]),v("tr",[v("td",[t._v("mouseScaleCenterUseMousePosition(v0.6.4-fix.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("鼠标缩放是否以鼠标当前位置为中心点,否则以画布中心点")])]),v("tr",[v("td",[t._v("customInnerElsAppendTo(v0.6.12+)")]),v("td",[t._v("null/HTMLElement")]),v("td",[t._v("null")]),v("td",[t._v("指定内部一些元素(节点文本编辑元素、节点备注显示元素、关联线文本编辑元素、节点图片调整按钮元素)添加到的位置,默认添加到document.body下")])]),v("tr",[v("td",[t._v("nodeDragPlaceholderMaxSize(v0.6.12+)")]),v("td",[t._v("Number")]),v("td",[t._v("20")]),v("td",[t._v("拖拽元素时,指示元素新位置的块的最大高度")])]),v("tr",[v("td",[t._v("enableCreateHiddenInput(v0.6.13+)(v0.6.14+版本已去除该特性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否允许创建一个隐藏的输入框,该输入框会在节点激活时聚焦,用于粘贴数据和自动进入文本编辑状态")])]),v("tr",[v("td",[t._v("enableAutoEnterTextEditWhenKeydown(v0.6.13+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否在存在一个激活节点时,当按下中文、英文、数字按键时自动进入文本编辑模式")])]),v("tr",[v("td",[t._v("richTextEditFakeInPlace(v0.6.13+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("设置富文本节点编辑框和节点大小一致,形成伪原地编辑的效果,需要注意的是,只有当节点内只有文本、且形状是矩形才会有比较好的效果")])]),v("tr",[v("td",[t._v("customHandleClipboardText(v0.6.14+)")]),v("td",[t._v("Function")]),v("td",[t._v("null")]),v("td",[t._v("自定义对剪贴板文本的处理。当按ctrl+v粘贴时会读取用户剪贴板中的文本和图片,默认只会判断文本是否是普通文本和simple-mind-map格式的节点数据,如果你想处理其他思维导图的数据,比如processon、zhixi等,那么可以传递一个函数,接受当前剪贴板中的文本为参数,返回处理后的数据,可以返回两种类型:1.返回一个纯文本,那么会直接以该文本创建一个子节点;2.返回一个节点对象,格式如下:{ simpleMindMap: true, data: { data: { text: '' }, children: [] } },代表是simple-mind-map格式的数据,节点数据同simple-mind-map节点数据格式,如果你的处理逻辑存在异步逻辑,也可以返回一个promise")])]),v("tr",[v("td",[t._v("errorHandler(v0.6.15+)")]),v("td",[t._v("Function")]),v("td"),v("td",[t._v("自定义错误处理函数,目前只会抛出一些异步逻辑出错的情况。可以传递一个函数,会接收两个参数,第一个为错误的类型,第二个为错误对象")])]),v("tr",[v("td",[t._v("disableMouseWheelZoom(v0.6.15+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("禁止鼠标滚轮缩放,你仍旧可以使用api进行缩放")])]),v("tr",[v("td",[t._v("resetCss(v0.6.16+)")]),v("td",[t._v("String")]),v("td",[t._v("* { margin: 0; padding: 0; box-sizing: border-box; }")]),v("td",[t._v("设置导出图片和svg时,针对富文本节点内容,也就是嵌入到svg中的html节点的默认样式覆盖,如果不覆盖,节点内容会发生偏移")])]),v("tr",[v("td",[t._v("enableDblclickReset(v0.6.17+)(v0.8.0+已删除该属性)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true(v0.7.0+改为false)")]),v("td",[t._v("开启鼠标双击复位思维导图位置及缩放")])]),v("tr",[v("td",[t._v("enableDblclickBackToRootNode(v0.8.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否在鼠标双击时回到根节点,也就是让根节点居中显示")])]),v("tr",[v("td",[t._v("minExportImgCanvasScale(v0.7.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("导出图片和pdf时canvas的缩放倍数,该配置会和window.devicePixelRatio值取最大值,用于提升图片清晰度")])]),v("tr",[v("td",[t._v("hoverRectColor(v0.7.0+)")]),v("td",[t._v("String")]),v("td",[t._v("rgb(94, 200, 248)")]),v("td",[t._v("节点鼠标hover和激活时显示的矩形边框颜色,hover时会添加0.6的透明度")])]),v("tr",[v("td",[t._v("hoverRectPadding(v0.7.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("2")]),v("td",[t._v("节点鼠标hover和激活时显示的矩形边框距节点内容的距离")])]),v("tr",[v("td",[t._v("selectTextOnEnterEditText(v0.7.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("双击节点进入节点文本编辑时是否默认选中文本,默认只在创建新节点时会选中")])]),v("tr",[v("td",[t._v("deleteNodeActive(v0.7.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("是否开启删除节点后自动激活节点相邻节点或父节点的功能")])]),v("tr",[v("td",[t._v("autoMoveWhenMouseInEdgeOnDrag(v0.7.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("拖拽节点时鼠标移动到画布边缘是否开启画布自动移动")])]),v("tr",[v("td",[t._v("fit(v0.7.1-fix.2+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("首次渲染时是否缩放至适应画布大小")])]),v("tr",[v("td",[t._v("dragMultiNodeRectConfig(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ width: 40, height: 20, fill: '' }")]),v("td",[t._v("拖拽多个节点时随鼠标移动的示意矩形的样式配置,传递一个对象,字段含义分别为矩形的宽、高、填充色")])]),v("tr",[v("td",[t._v("dragPlaceholderRectFill(v0.7.2+)")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("节点拖拽时新位置的示意矩形的填充颜色,如果不传默认使用连线的颜色")])]),v("tr",[v("td",[t._v("dragOpacityConfig(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ cloneNodeOpacity: 0.5, beingDragNodeOpacity: 0.3 }")]),v("td",[t._v("节点拖拽时的透明度配置,传递一个对象,字段含义分别为:跟随鼠标移动的克隆节点或矩形的透明度、被拖拽节点的透明度")])]),v("tr",[v("td",[t._v("tagsColorMap(v0.7.2+)")]),v("td",[t._v("Object")]),v("td",[t._v("{}")]),v("td",[t._v("自定义节点标签的颜色,可传一个对象,key为要指定颜色的标签内容,value为该标签内容的颜色,如果不传内部会根据标签内容生成对应的颜色")])]),v("tr",[v("td",[t._v("cooperateStyle(v0.7.3+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ avatarSize: 22, fontSize: 12 }")]),v("td",[t._v("节点协作编辑时的人员头像样式配置,字段含义分别为:头像大小、如果是文字头像,那么文字的大小")])]),v("tr",[v("td",[t._v("associativeLineIsAlwaysAboveNode(v0.8.0+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("true")]),v("td",[t._v("关联线是否始终显示在节点上层,如果设为false,那么创建关联线和激活关联线时处于最顶层,其他情况下处于节点下方")])]),v("tr",[v("td",[t._v("defaultGeneralizationText(v0.8.0+)")]),v("td",[t._v("String")]),v("td",[t._v("概要")]),v("td",[t._v("插入概要的默认文本")])]),v("tr",[v("td",[t._v("handleIsSplitByWrapOnPasteCreateNewNode(v0.8.0+)")]),v("td",[t._v("Function / null")]),v("td",[t._v("null")]),v("td",[t._v("粘贴文本的方式创建新节点时,控制是否按换行自动分割节点,即如果存在换行,那么会根据换行创建多个节点,否则只会创建一个节点,可以传递一个函数,返回promise,resolve代表根据换行分割,reject代表忽略换行")])]),v("tr",[v("td",[t._v("addHistoryTime(v0.8.0+)")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态,单位:ms")])]),v("tr",[v("td",[t._v("isDisableDrag(v0.8.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("是否禁止拖动画布")])]),v("tr",[v("td",[t._v("disableTouchZoom(v0.8.1+)")]),v("td",[t._v("Boolean")]),v("td",[t._v("false")]),v("td",[t._v("禁止双指缩放,你仍旧可以使用api进行缩放,对TouchEvent插件生效")])]),v("tr",[v("td",[t._v("highlightNodeBoxStyle(v0.9.0+)")]),v("td",[t._v("Object")]),v("td",[t._v("{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' }")]),v("td",[t._v("鼠标移入概要高亮所属节点时的高亮框样式")])]),v("tr",[v("td",[t._v("createNewNodeBehavior(v0.9.1+)")]),v("td",[t._v("String")]),v("td",[t._v("default")]),v("td",[t._v("创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式)")])]),v("tr",[v("td",[t._v("defaultNodeImage(v0.9.1-fix.2+)")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图片地址,当节点图片加载失败时显示的默认图片")])])])]),v("h3",[t._v("数据结构")]),v("p",[t._v("基本的数据结构如下:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("{\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {\n "),v("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的文本,可以是富文本,也就是html格式的,此时richText要设为true")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("richText")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("false")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的文本是否是富文本模式")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("expand")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("true")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 节点是否展开")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("uid")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(","),v("span",{staticClass:"hljs-comment"},[t._v("// 节点唯一的id,可不传,内部会生成")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("icon")]),t._v(": [], "),v("span",{staticClass:"hljs-comment"},[t._v("// 图标,格式可参考教程里的【插入和扩展节点图标】章节")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("image")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的url")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("imageTitle")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的标题,可为空")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("imageSize")]),t._v(": { "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的尺寸")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("width")]),t._v(": "),v("span",{staticClass:"hljs-number"},[t._v("100")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的宽度,必传")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("height")]),t._v(": "),v("span",{staticClass:"hljs-number"},[t._v("100")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 图片的高度,必传")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("custom")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("false")]),t._v(" "),v("span",{staticClass:"hljs-comment"},[t._v("// 如果设为true,图片的显示大小不受主题控制,以imageSize.width和imageSize.height为准")]),t._v("\n },\n "),v("span",{staticClass:"hljs-attr"},[t._v("hyperlink")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 超链接地址")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("hyperlinkTitle")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 超链接的标题")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("note")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(", "),v("span",{staticClass:"hljs-comment"},[t._v("// 备注的内容")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("tag")]),t._v(": [], "),v("span",{staticClass:"hljs-comment"},[t._v("// 标签列表")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("generalization")]),t._v(": {"),v("span",{staticClass:"hljs-comment"},[t._v("// 节点的概要,如果没有概要generalization设为null即可")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("text")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),v("span",{staticClass:"hljs-comment"},[t._v("// 概要的文本")]),t._v("\n },\n "),v("span",{staticClass:"hljs-attr"},[t._v("associativeLineTargets")]),t._v(": ["),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v("],"),v("span",{staticClass:"hljs-comment"},[t._v("// 如果存在关联线,那么为目标节点的uid列表")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("associativeLineText")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("''")]),t._v(","),v("span",{staticClass:"hljs-comment"},[t._v("// 关联线文本")]),t._v("\n "),v("span",{staticClass:"hljs-comment"},[t._v("// ...其他样式字段,可以参考主题")]),t._v("\n },\n children ["),v("span",{staticClass:"hljs-comment"},[t._v("// 子节点,结构和根节点一致")]),t._v("\n {\n "),v("span",{staticClass:"hljs-attr"},[t._v("data")]),t._v(": {},\n "),v("span",{staticClass:"hljs-attr"},[t._v("children")]),t._v(": []\n }\n ]\n}\n")])]),v("p",[t._v("如果你要添加自定义的字段,可以添加到"),v("code",[t._v("data")]),t._v("、"),v("code",[t._v("children")]),t._v("同级,如果你要添加到"),v("code",[t._v("data")]),t._v("对象里,那么请使用"),v("code",[t._v("_")]),t._v("开头来命名你的自定义字段,内部会通过这个来判断是否是自定义字段。")]),v("h3",[t._v("水印配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("text")]),v("td",[t._v("String")]),v("td",[t._v("''")]),v("td",[t._v("水印文字,如果为空字符串则不显示水印")])]),v("tr",[v("td",[t._v("lineSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("水印每行之间的间距")])]),v("tr",[v("td",[t._v("textSpacing")]),v("td",[t._v("Number")]),v("td",[t._v("100")]),v("td",[t._v("同一行水印之间的间距")])]),v("tr",[v("td",[t._v("angle")]),v("td",[t._v("Number")]),v("td",[t._v("30")]),v("td",[t._v("水印的倾斜角度,范围:[0, 90]")])]),v("tr",[v("td",[t._v("textStyle")]),v("td",[t._v("Object")]),v("td",[t._v("{color: '#999', opacity: 0.5, fontSize: 14}")]),v("td",[t._v("水印文字样式")])])])]),v("h3",[t._v("图标配置")]),v("table",[v("thead",[v("tr",[v("th",[t._v("字段名称")]),v("th",[t._v("类型")]),v("th",[t._v("默认值")]),v("th",[t._v("描述")])])]),v("tbody",[v("tr",[v("td",[t._v("name")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的名称")])]),v("tr",[v("td",[t._v("type")]),v("td",[t._v("String")]),v("td"),v("td",[t._v("图标分组的值")])]),v("tr",[v("td",[t._v("list")]),v("td",[t._v("Array")]),v("td"),v("td",[t._v("分组下的图标列表,数组的每一项为一个对象,"),v("code",[t._v("{ name: '', icon: '' }")]),t._v(","),v("code",[t._v("name")]),t._v("代表图标的名称,"),v("code",[t._v("icon")]),t._v("代表图标,可以是"),v("code",[t._v("svg")]),t._v("图标,比如"),v("code",[t._v("")]),t._v(",也可以是图片"),v("code",[t._v("url")]),t._v(",或者是"),v("code",[t._v("base64")]),t._v("图标,比如"),v("code",[t._v("data:image/png;base64,...")])])])])]),v("h2",[t._v("静态方法")]),v("h3",[t._v("defineTheme(name, config)")]),v("blockquote",[v("p",[t._v("v0.2.23+")])]),v("p",[t._v("定义新主题。")]),v("p",[v("code",[t._v("name")]),t._v(":新主题名称")]),v("p",[v("code",[t._v("config")]),t._v(":主题数据")]),v("p",[v("code",[t._v("simple-mind-map")]),t._v("内置了众多主题,另外你也可以注册新主题,建议在实例化之前进行注册,这样在实例化时可以直接使用新注册的主题,使用示例:")]),v("pre",{staticClass:"hljs"},[v("code",[v("span",{staticClass:"hljs-keyword"},[t._v("import")]),t._v(" MindMap "),v("span",{staticClass:"hljs-keyword"},[t._v("from")]),t._v(" "),v("span",{staticClass:"hljs-string"},[t._v("'simple-mind-map'")]),t._v("\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 注册新主题")]),t._v("\nMindMap.defineTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(", {})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 1.实例化时使用新注册的主题")]),t._v("\n"),v("span",{staticClass:"hljs-keyword"},[t._v("const")]),t._v(" mindMap = "),v("span",{staticClass:"hljs-keyword"},[t._v("new")]),t._v(" MindMap({\n "),v("span",{staticClass:"hljs-attr"},[t._v("theme")]),t._v(": "),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v("\n})\n\n"),v("span",{staticClass:"hljs-comment"},[t._v("// 2.动态切换新主题")]),t._v("\nmindMap.setTheme("),v("span",{staticClass:"hljs-string"},[t._v("'主题名称'")]),t._v(")\n")])]),v("p",[t._v("主题的所有配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/default.js"}},[t._v("默认主题")]),t._v("。"),v("code",[t._v("defineTheme")]),t._v("方法会把你传入的配置和默认配置做合并。大部分主题其实需要自定义的部分不是很多,一个典型的自定义主题配置可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/themes/blueSky.js"}},[t._v("blueSky")]),t._v("。")]),v("h3",[t._v("usePlugin(plugin, opt = {})")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("ul",[v("li",[v("code",[t._v("opt")]),t._v(":v0.4.0+,插件参数。如果某个插件支持自定义选项的话可以通过这个参数传入。")])]),v("p",[t._v("注册插件,如果需要使用非核心的一些功能,比如小地图、水印等,可以通过该方法进行注册。可链式调用。")]),v("p",[t._v("注意:插件需要在实例化"),v("code",[t._v("MindMap")]),t._v("前注册。")]),v("h3",[t._v("hasPlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("获取是否注册了某个插件,返回的是插件在注册插件列表里的索引,为"),v("code",[t._v("-1")]),t._v("则代表插件没有注册。")]),v("h2",[t._v("静态属性")]),v("h3",[t._v("pluginList")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[t._v("当前注册的所有插件列表。")]),v("h2",[t._v("实例属性")]),v("h3",[t._v("el")]),v("p",[t._v("容器元素。")]),v("h3",[t._v("opt")]),v("p",[t._v("配置选项对象。")]),v("h3",[t._v("svg")]),v("blockquote",[v("p",[t._v("@svgdotjs/svg.js库调用SVG()方法返回的节点实例")])]),v("p",[t._v("画布svg元素。")]),v("h3",[t._v("draw")]),v("blockquote",[v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("svg节点的子节点")])]),v("p",[t._v("容器元素,用于承载节点、连线等内容。")]),v("h3",[t._v("lineDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("节点连线元素的容器。")]),v("h3",[t._v("nodeDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("节点元素的容器。")]),v("h3",[t._v("associativeLineDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("在注册了关联线插件的情况下可用")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("关联线内容的容器。")]),v("h3",[t._v("otherDraw")]),v("blockquote",[v("p",[t._v("v0.8.0+")]),v("p",[t._v("@svgdotjs/svg.js库调用group()方法返回的节点实例")]),v("p",[t._v("draw节点的子节点")])]),v("p",[t._v("其他内容的容器。")]),v("h3",[t._v("elRect")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的尺寸、位置信息。调用"),v("code",[t._v("getBoundingClientRect()")]),t._v("方法的返回结果。")]),v("h3",[t._v("width")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的宽度。")]),v("h3",[t._v("height")]),v("p",[t._v("容器元素"),v("code",[t._v("el")]),t._v("的高度。")]),v("h3",[t._v("themeConfig")]),v("p",[t._v("当前主题配置。")]),v("h2",[t._v("实例方法")]),v("h3",[t._v("clearDraw()")]),v("blockquote",[v("p",[t._v("v0.8.0+")])]),v("p",[t._v("清空"),v("code",[t._v("lineDraw")]),t._v("、"),v("code",[t._v("associativeLineDraw")]),t._v("、"),v("code",[t._v("nodeDraw")]),t._v("、"),v("code",[t._v("otherDraw")]),t._v("容器。")]),v("h3",[t._v("destroy()")]),v("blockquote",[v("p",[t._v("v0.6.0+")])]),v("p",[t._v("销毁思维导图。会移除注册的插件、移除监听的事件、删除画布的所有节点。")]),v("h3",[t._v("getSvgData({ paddingX = 0, paddingY = 0, ignoreWatermark = false })")]),v("blockquote",[v("p",[t._v("v0.3.0+")])]),v("p",[v("code",[t._v("paddingX")]),t._v(":水平内边距")]),v("p",[v("code",[t._v("paddingY")]),t._v(":垂直内边距")]),v("p",[v("code",[t._v("ignoreWatermark")]),t._v(":v0.8.0+,不要绘制水印,如果不需要绘制水印的场景可以传"),v("code",[t._v("true")]),t._v(",因为绘制水印非常慢")]),v("p",[t._v("获取"),v("code",[t._v("svg")]),t._v("数据,返回一个对象,详细结构如下:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("{\n svg, "),v("span",{staticClass:"hljs-comment"},[t._v("// Element,思维导图图形的整体svg元素,包括:svg(画布容器)、g(实际的思维导图组)")]),t._v("\n svgHTML, "),v("span",{staticClass:"hljs-comment"},[t._v("// String,svg字符串,即html字符串,可以直接渲染到你准备的小地图容器内")]),t._v("\n "),v("span",{staticClass:"hljs-attr"},[t._v("rect")]),t._v(": "),v("span",{staticClass:"hljs-comment"},[t._v("// Object,思维导图图形未缩放时的位置尺寸等信息")]),t._v("\n origWidth, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布宽度")]),t._v("\n origHeight, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,画布高度")]),t._v("\n scaleX, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的水平缩放值")]),t._v("\n scaleY, "),v("span",{staticClass:"hljs-comment"},[t._v("// Number,思维导图图形的垂直缩放值")]),t._v("\n}\n")])]),v("h3",[t._v("render(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("触发整体渲染,会进行节点复用,性能较"),v("code",[t._v("reRender")]),t._v("会更好一点,如果只是节点位置变化了可以调用该方法进行渲染")]),v("h3",[t._v("reRender(callback)")]),v("ul",[v("li",[v("code",[t._v("callback")]),t._v(":"),v("code",[t._v("v0.3.2+")]),t._v(","),v("code",[t._v("Function")]),t._v(",当重新渲染完成时调用")])]),v("p",[t._v("整体重新渲染,会清空画布,节点也会重新创建,性能不好,慎重使用")]),v("h3",[t._v("resize()")]),v("p",[t._v("容器尺寸变化后,需要调用该方法进行适应")]),v("h3",[t._v("setMode(mode)")]),v("blockquote",[v("p",[t._v("v0.1.7+")])]),v("p",[t._v("切换模式为只读或编辑。")]),v("p",[v("code",[t._v("mode")]),t._v(":readonly、edit")]),v("h3",[t._v("on(event, fn)")]),v("p",[t._v("监听事件,事件列表:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("事件名称")]),v("th",[t._v("描述")]),v("th",[t._v("回调参数")])])]),v("tbody",[v("tr",[v("td",[t._v("data_change")]),v("td",[t._v("渲染树数据变化,可以监听该方法获取最新数据")]),v("td",[t._v("data(当前渲染树数据)")])]),v("tr",[v("td",[t._v("view_data_change(v0.1.1+)")]),v("td",[t._v("视图变化数据,比如拖动或缩放时会触发")]),v("td",[t._v("data(当前视图状态数据)")])]),v("tr",[v("td",[t._v("back_forward")]),v("td",[t._v("前进或回退")]),v("td",[t._v("activeHistoryIndex(当前在历史数据数组里的索引)、length(当前历史数据数组的长度)")])]),v("tr",[v("td",[t._v("draw_click")]),v("td",[v("em",[t._v("画布的单击事件")])]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mousedown")]),v("td",[t._v("svg画布的鼠标按下事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("mousedown")]),v("td",[t._v("el元素的鼠标按下事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousemove")]),v("td",[t._v("el元素的鼠标移动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("drag")]),v("td",[t._v("如果是按住左键拖动的话会触发拖动事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mouseup")]),v("td",[t._v("el元素的鼠标松开事件")]),v("td",[t._v("e(事件对象)、this(Event事件类实例)")])]),v("tr",[v("td",[t._v("mousewheel")]),v("td",[t._v("鼠标滚动事件")]),v("td",[t._v("e(事件对象)、dir(向上up还是向下down滚动)、this(Event事件类实例)、isTouchPad(v0.6.1+,是否是触控板触发的事件)")])]),v("tr",[v("td",[t._v("contextmenu")]),v("td",[t._v("svg画布的鼠标右键菜单事件")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("node_click")]),v("td",[t._v("节点的单击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mousedown")]),v("td",[t._v("节点的鼠标按下事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseup")]),v("td",[t._v("节点的鼠标松开事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_dblclick")]),v("td",[t._v("节点的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_contextmenu")]),v("td",[t._v("节点的右键菜单事件")]),v("td",[t._v("e(事件对象)、this(节点实例)")])]),v("tr",[v("td",[t._v("node_mouseenter(v0.4.1+)")]),v("td",[t._v("节点的鼠标移入事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_mouseleave(v0.4.1+)")]),v("td",[t._v("节点的鼠标移出事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("before_node_active")]),v("td",[t._v("节点激活前事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("node_active")]),v("td",[t._v("节点激活事件")]),v("td",[t._v("this(节点实例)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("expand_btn_click")]),v("td",[t._v("节点展开或收缩事件")]),v("td",[t._v("this(节点实例)")])]),v("tr",[v("td",[t._v("before_show_text_edit")]),v("td",[t._v("节点文本编辑框即将打开事件")]),v("td")]),v("tr",[v("td",[t._v("hide_text_edit")]),v("td",[t._v("节点文本编辑框关闭事件")]),v("td",[t._v("textEditNode(文本编辑框DOM节点)、activeNodeList(当前激活的所有节点列表)")])]),v("tr",[v("td",[t._v("scale")]),v("td",[t._v("放大缩小事件")]),v("td",[t._v("scale(缩放比例)")])]),v("tr",[v("td",[t._v("node_img_dblclick(v0.2.15+)")]),v("td",[t._v("节点内图片的双击事件")]),v("td",[t._v("this(节点实例)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mouseenter(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移入事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mouseleave(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移出事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_img_mousemove(v0.6.5+)")]),v("td",[t._v("节点内图片的鼠标移动事件")]),v("td",[t._v("this(节点实例)、imgNode(图片节点)、e(事件对象)")])]),v("tr",[v("td",[t._v("node_tree_render_end(v0.2.16+)")]),v("td",[t._v("节点树渲染完毕事件")]),v("td")]),v("tr",[v("td",[t._v("rich_text_selection_change(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当节点编辑时,文本选区发生改变时触发")]),v("td",[t._v("hasRange(是否存在选区)、rectInfo(选区的尺寸和位置信息)、formatInfo(选区的文本格式化信息)")])]),v("tr",[v("td",[t._v("transforming-dom-to-images(v0.4.0+)")]),v("td",[t._v("当注册了"),v("code",[t._v("RichText")]),t._v("插件时可用。当"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("DOM")]),t._v("节点时,导出为图片时会将"),v("code",[t._v("DOM")]),t._v("节点转换为图片,转换过程中会触发该事件,可用通过该事件给用户提示,告知目前转换到的节点")]),v("td",[t._v("index(当前转换到的节点索引)、len(一共需要转换的节点数量)")])]),v("tr",[v("td",[t._v("node_dragging(v0.4.5+)")]),v("td",[t._v("当某个节点被拖拽时触发")]),v("td",[t._v("node(当前被拖拽的节点)")])]),v("tr",[v("td",[t._v("node_dragend(v0.4.5+)")]),v("td",[t._v("节点被拖拽结束时触发")]),v("td",[t._v("{ overlapNodeUid, prevNodeUid, nextNodeUid }(v0.6.12+,本次节点移动到的节点uid,比如本次移动到了节点A上,那么overlapNodeUid就是节点A的uid,如果移动到了B节点的前面,那么nextNodeUid就是节点B的uid,你可以通过mindMap.renderer.findNodeByUid(uid)方法来获取节点实例)")])]),v("tr",[v("td",[t._v("associative_line_click(v0.4.5+)")]),v("td",[t._v("点击某条关联线时触发")]),v("td",[t._v("path(连接线节点)、clickPath(不可见的点击线节点)、node(起始节点)、toNode(目标节点)")])]),v("tr",[v("td",[t._v("svg_mouseenter(v0.5.1+)")]),v("td",[t._v("鼠标移入svg画布时触发")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("svg_mouseleave(v0.5.1+)")]),v("td",[t._v("鼠标移出svg画布时触发")]),v("td",[t._v("e(事件对象)")])]),v("tr",[v("td",[t._v("node_icon_click(v0.6.10+)")]),v("td",[t._v("点击节点内的图标时触发")]),v("td",[t._v("this(节点实例)、item(点击的图标名称)、e(事件对象)")])]),v("tr",[v("td",[t._v("view_theme_change(v0.6.12+)")]),v("td",[t._v("调用了setTheme方法设置主题后触发")]),v("td",[t._v("theme(设置的新主题名称)")])]),v("tr",[v("td",[t._v("set_data(v0.7.3+)")]),v("td",[t._v("调用了setData方法动态设置思维导图数据时触发")]),v("td",[t._v("data(新的思维导图数据)")])]),v("tr",[v("td",[t._v("resize(v0.8.0+)")]),v("td",[t._v("容器尺寸改变后触发,实际上是当思维导图实例的"),v("code",[t._v("resize")]),t._v("方法被调用后触发")]),v("td")]),v("tr",[v("td",[t._v("beforeDestroy(v0.9.0+)")]),v("td",[t._v("思维导图销毁前触发,即调用了destroy方法触发")]),v("td")])])]),v("h3",[t._v("emit(event, ...args)")]),v("p",[t._v("触发事件,可以是上面表格里的事件,也可以是自定义事件")]),v("h3",[t._v("off(event, fn)")]),v("p",[t._v("解绑事件")]),v("h3",[t._v("setTheme(theme, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("切换主题,可选主题见上面的选项表格")]),v("h3",[t._v("getTheme()")]),v("p",[t._v("获取当前主题")]),v("h3",[t._v("setThemeConfig(config, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("设置主题配置,"),v("code",[t._v("config")]),t._v("同上面选项表格里的选项"),v("code",[t._v("themeConfig")])]),v("h3",[t._v("getCustomThemeConfig()")]),v("p",[t._v("获取自定义主题配置")]),v("h3",[t._v("getThemeConfig(prop)")]),v("p",[t._v("获取某个主题配置属性值")]),v("h3",[t._v("getConfig("),v("em",[t._v("prop")]),t._v(")")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("prop")]),t._v(":获取指定配置的值,不传则返回整个配置")]),v("p",[t._v("获取配置,即"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")])]),v("h3",[t._v("updateConfig("),v("em",[t._v("opt")]),t._v(" = {})")]),v("blockquote",[v("p",[t._v("0.2.24+")])]),v("p",[v("code",[t._v("opt")]),t._v(":要更新的配置")]),v("p",[t._v("更新配置,即更新"),v("code",[t._v("new MindMap(opt)")]),t._v("的"),v("code",[t._v("opt")]),t._v(",可以只更新部分数据,比如:")]),v("pre",{staticClass:"hljs"},[v("code",[t._v("mindMap.updateConfig({\n "),v("span",{staticClass:"hljs-attr"},[t._v("enableFreeDrag")]),t._v(": "),v("span",{staticClass:"hljs-literal"},[t._v("true")]),v("span",{staticClass:"hljs-comment"},[t._v("// 开启节点自由拖拽")]),t._v("\n})\n")])]),v("p",[t._v("该方法只做更新配置的事情,没有其他副作用,比如触发画布重新渲染之类的")]),v("h3",[t._v("getLayout()")]),v("p",[t._v("获取当前的布局结构")]),v("h3",[t._v("setLayout(layout, notRender = false)")]),v("ul",[v("li",[v("code",[t._v("notRender")]),t._v(":v0.8.0+,是否不要调用render方法更新画布。")])]),v("p",[t._v("设置布局结构,可选值见上面选项表格的"),v("code",[t._v("layout")]),t._v("字段")]),v("h3",[t._v("execCommand(name, ...args)")]),v("p",[t._v("执行命令,每执行一个命令就会在历史堆栈里添加一条记录用于回退或前进。所有命令如下:")]),v("table",[v("thead",[v("tr",[v("th",[t._v("命令名称")]),v("th",[t._v("描述")]),v("th",[t._v("参数")])])]),v("tbody",[v("tr",[v("td",[t._v("SELECT_ALL")]),v("td",[t._v("全选")]),v("td")]),v("tr",[v("td",[t._v("BACK")]),v("td",[t._v("回退指定的步数")]),v("td",[t._v("step(要回退的步数,默认为1)")])]),v("tr",[v("td",[t._v("FORWARD")]),v("td",[t._v("前进指定的步数")]),v("td",[t._v("step(要前进的步数,默认为1)")])]),v("tr",[v("td",[t._v("INSERT_NODE")]),v("td",[t._v("插入同级节点,操作节点为当前激活的节点或指定节点,如果有多个激活节点,只会对第一个有效(v0.7.2+支持对多个激活节点同时插入兄弟节点)")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定要插入兄弟节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")、 appointChildren(v0.6.14+,可选,指定新创建节点的子节点,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_CHILD_NODE")]),v("td",[t._v("插入子节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("openEdit(v0.4.6+,是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")、 appointChildren(v0.6.14+,可选,指定新创建节点的子节点,数组类型)")])]),v("tr",[v("td",[t._v("UP_NODE")]),v("td",[t._v("上移节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的第一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("DOWN_NODE")]),v("td",[t._v("操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点或在列表里的最后一个节点使用无效")]),v("td")]),v("tr",[v("td",[t._v("REMOVE_NODE")]),v("td",[t._v("删除节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(v0.4.7+,可选,指定节点,指定多个节点可以传一个数组)")])]),v("tr",[v("td",[t._v("PASTE_NODE")]),v("td",[t._v("粘贴节点到节点,操作节点为当前激活的节点")]),v("td",[t._v("data(要粘贴的节点数据,一般通过"),v("code",[t._v("renderer.copyNode()")]),t._v("方法和"),v("code",[t._v("renderer.cutNode()")]),t._v("方法获取)")])]),v("tr",[v("td",[t._v("CUT_NODE")]),v("td",[t._v("剪切节点,操作节点为当前激活的节点,如果有多个激活节点,只会对第一个有效,对根节点使用无效")]),v("td",[t._v("callback(回调函数,剪切的节点数据会通过调用该函数并通过参数返回)")])]),v("tr",[v("td",[t._v("SET_NODE_STYLE")]),v("td",[t._v("修改节点单个样式")]),v("td",[t._v("node(要设置样式的节点)、style(样式属性)、value(样式属性值)、isActive(v0.7.0+已废弃,布尔值,是否设置的是激活状态的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_STYLEs(v0.6.12+)")]),v("td",[t._v("修改节点多个样式")]),v("td",[t._v("node(要设置样式的节点)、style(样式对象,key为样式属性,value为样式值)、isActive(v0.7.0+已废弃,布尔值,是否设置的是激活状态的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_ACTIVE")]),v("td",[t._v("设置节点是否激活")]),v("td",[t._v("node(要设置的节点)、active(布尔值,是否激活)")])]),v("tr",[v("td",[t._v("CLEAR_ACTIVE_NODE")]),v("td",[t._v("清除当前已激活节点的激活状态,操作节点为当前激活的节点")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_EXPAND")]),v("td",[t._v("设置节点是否展开")]),v("td",[t._v("node(要设置的节点)、expand(布尔值,是否展开)")])]),v("tr",[v("td",[t._v("EXPAND_ALL")]),v("td",[t._v("展开所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_ALL")]),v("td",[t._v("收起所有节点")]),v("td")]),v("tr",[v("td",[t._v("UNEXPAND_TO_LEVEL(v0.2.8+)")]),v("td",[t._v("展开到指定层级")]),v("td",[t._v("level(要展开到的层级,1、2、3...)")])]),v("tr",[v("td",[t._v("SET_NODE_DATA")]),v("td",[t._v("更新节点数据,即更新节点数据对象里"),v("code",[t._v("data")]),t._v("对象的数据")]),v("td",[t._v("node(要设置的节点)、data(对象,要更新的数据,如"),v("code",[t._v("{expand: true}")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_TEXT")]),v("td",[t._v("设置节点文本")]),v("td",[t._v("node(要设置的节点)、text(要设置的文本字符串,换行可以使用"),v("code",[t._v("\\n")]),t._v(")、richText(v0.4.0+,如果要设置的是富文本字符,需要设为"),v("code",[t._v("true")]),t._v(")、resetRichText(v0.6.10+是否要复位富文本,默认为false,如果传true那么会重置富文本节点的样式)")])]),v("tr",[v("td",[t._v("SET_NODE_IMAGE")]),v("td",[t._v("设置节点图片")]),v("td",[t._v("node(要设置的节点)、imgData(对象,图片信息,结构为:"),v("code",[t._v("{url, title, width, height}")]),t._v(",图片的宽高必须要传)")])]),v("tr",[v("td",[t._v("SET_NODE_ICON")]),v("td",[t._v("设置节点图标")]),v("td",[t._v("node(要设置的节点)、icons(数组,预定义的图片名称组成的数组,可用图标可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/svg/icons.js"}},[t._v("icons.js")]),t._v("文件里的"),v("code",[t._v("nodeIconList")]),t._v("列表里获取到,图标名称为"),v("code",[t._v("type_name")]),t._v(",如"),v("code",[t._v("['priority_1']")]),t._v(")")])]),v("tr",[v("td",[t._v("SET_NODE_HYPERLINK")]),v("td",[t._v("设置节点超链接")]),v("td",[t._v("node(要设置的节点)、link(超链接地址)、title(超链接名称,可选)")])]),v("tr",[v("td",[t._v("SET_NODE_NOTE")]),v("td",[t._v("设置节点备注")]),v("td",[t._v("node(要设置的节点)、note(备注文字)")])]),v("tr",[v("td",[t._v("SET_NODE_TAG")]),v("td",[t._v("设置节点标签")]),v("td",[t._v("node(要设置的节点)、tag(字符串数组,内置颜色信息可在"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/constants/constant.js"}},[t._v("constant.js")]),t._v("里获取到)")])]),v("tr",[v("td",[t._v("INSERT_AFTER(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的后面")]),v("td",[t._v("node(要移动的节点,(v0.7.2+支持传递节点数组实现同时移动多个节点))、 exist(目标节点)")])]),v("tr",[v("td",[t._v("INSERT_BEFORE(v0.1.5+)")]),v("td",[t._v("将节点移动到另一个节点的前面,(v0.7.2+支持传递节点数组实现同时移动多个节点)")]),v("td",[t._v("node(要移动的节点)、 exist(目标节点)")])]),v("tr",[v("td",[t._v("MOVE_NODE_TO(v0.1.5+)")]),v("td",[t._v("移动节点作为另一个节点的子节点,(v0.7.2+支持传递节点数组实现同时移动多个节点)")]),v("td",[t._v("node(要移动的节点)、 toNode(目标节点)")])]),v("tr",[v("td",[t._v("ADD_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("添加节点概要")]),v("td",[t._v("data(概要的数据,对象格式,节点的数字段都支持,默认为{text: '概要'})")])]),v("tr",[v("td",[t._v("REMOVE_GENERALIZATION(v0.2.0+)")]),v("td",[t._v("删除节点概要")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_CUSTOM_POSITION(v0.2.0+)")]),v("td",[t._v("设置节点自定义位置")]),v("td",[t._v("node(要设置的节点)、 left(自定义的x坐标,默认为undefined)、 top(自定义的y坐标,默认为undefined)")])]),v("tr",[v("td",[t._v("RESET_LAYOUT(v0.2.0+)")]),v("td",[t._v("一键整理布局")]),v("td")]),v("tr",[v("td",[t._v("SET_NODE_SHAPE(v0.2.4+)")]),v("td",[t._v("设置节点形状")]),v("td",[t._v("node(要设置的节点)、shape(形状,全部形状:"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/src/core/render/node/Shape.js"}},[t._v("Shape.js")]),t._v(")")])]),v("tr",[v("td",[t._v("GO_TARGET_NODE(v0.6.7+)")]),v("td",[t._v("定位到某个节点,如果该节点被收起,那么会自动展开到该节点")]),v("td",[t._v("node(要定位到的节点实例或节点uid)、callback(v0.6.9+,定位完成后的回调函数)")])]),v("tr",[v("td",[t._v("INSERT_MULTI_NODE(v0.7.2+)")]),v("td",[t._v("给指定的节点同时插入多个同级节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定节点,指定多个节点可以传一个数组), nodeList(新插入节点的数据列表,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_MULTI_CHILD_NODE(v0.7.2+)")]),v("td",[t._v("给指定的节点同时插入多个子节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定节点,指定多个节点可以传一个数组), childList(新插入节点的数据列表,数组类型)")])]),v("tr",[v("td",[t._v("INSERT_FORMULA(v0.7.2+)")]),v("td",[t._v("给节点插入数学公式,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("formula(要插入的数学公式,LaTeX 语法), appointNodes(可选,指定要插入公式的节点,多个节点可以传数组,否则默认为当前激活的节点)")])]),v("tr",[v("td",[t._v("INSERT_PARENT_NODE(v0.8.0+)")]),v("td",[t._v("给指定的节点插入父节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("openEdit(是否激活新插入的节点并进入编辑模式,默认为"),v("code",[t._v("true")]),t._v(")、 appointNodes(可选,指定要插入父节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js"}},[t._v("exampleData.js")]),t._v(")")])]),v("tr",[v("td",[t._v("REMOVE_CURRENT_NODE(v0.8.0+)")]),v("td",[t._v("仅删除当前节点,操作节点为当前激活的节点或指定节点")]),v("td",[t._v("appointNodes(可选,指定要删除的节点,指定多个节点可以传一个数组)")])])])]),v("h3",[t._v("setData(data)")]),v("p",[t._v("动态设置思维导图数据,纯节点数据")]),v("p",[v("code",[t._v("data")]),t._v(":思维导图结构数据")]),v("h3",[t._v("setFullData("),v("em",[t._v("data")]),t._v(")")]),v("blockquote",[v("p",[t._v("v0.2.7+")])]),v("p",[t._v("动态设置思维导图数据,包括节点数据、布局、主题、视图")]),v("p",[v("code",[t._v("data")]),t._v(":完整数据,结构可参考"),v("a",{attrs:{href:"https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exportFullData.json"}},[t._v("exportFullData")])]),v("h3",[t._v("getData(withConfig)")]),v("blockquote",[v("p",[t._v("v0.2.9+")])]),v("p",[t._v("获取思维导图数据")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",即获取的数据只包括节点树,如果传"),v("code",[t._v("true")]),t._v("则会包含主题、布局、视图等数据")]),v("h3",[t._v("export(type, isDownload, fileName)")]),v("blockquote",[v("p",[t._v("需要先注册"),v("code",[t._v("Export")]),t._v("插件")])]),v("p",[t._v("导出")]),v("p",[v("code",[t._v("type")]),t._v(":要导出的类型,可选值:png、svg、json、pdf(v0.2.1+)、smm(本质也是json)")]),v("p",[v("code",[t._v("isDownload")]),t._v(":是否需要直接触发下载,布尔值,默认为"),v("code",[t._v("false")])]),v("p",[v("code",[t._v("fileName")]),t._v(":(v0.1.6+)导出文件的名称,默认为"),v("code",[t._v("思维导图")])]),v("p",[t._v("如果是导出为"),v("code",[t._v("png")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("transparent")]),t._v(":v0.5.7+, "),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("false")]),t._v(",指定导出图片的背景是否是透明的")]),v("p",[t._v("如果是导出为"),v("code",[t._v("svg")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("plusCssText")]),t._v(":附加的"),v("code",[t._v("css")]),t._v("样式,如果"),v("code",[t._v("svg")]),t._v("中存在"),v("code",[t._v("dom")]),t._v("节点,想要设置一些针对节点的样式可以通过这个参数传入")]),v("p",[t._v("如果是导出为"),v("code",[t._v("json")]),t._v("或"),v("code",[t._v("smm")]),t._v(",那么可以传递第四个参数:")]),v("p",[v("code",[t._v("withConfig")]),t._v(":"),v("code",[t._v("Boolean")]),t._v(",默认为"),v("code",[t._v("true")]),t._v(",指定导出的数据中是否包含配置数据,否则只导出纯节点树数据")]),v("h3",[t._v("toPos(x, y)")]),v("blockquote",[v("p",[t._v("v0.1.5+")])]),v("p",[t._v("将浏览器可视窗口的坐标转换成相对于画布的坐标")]),v("h3",[t._v("addPlugin(plugin, opt)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("注册插件,使用"),v("code",[t._v("MindMap.usePlugin")]),t._v("注册插件只能在实例化之前,实例化后注册的插件是不会生效的,所以如果想在实例化后注册插件可以使用实例的"),v("code",[t._v("addPlugin")]),t._v("方法。")]),v("h3",[t._v("removePlugin(plugin)")]),v("blockquote",[v("p",[t._v("v0.4.0+")])]),v("p",[t._v("移除注册的插件,无论是通过"),v("code",[t._v("usePlugin")]),t._v("还是"),v("code",[t._v("addPlugin")]),t._v("方法注册的插件都可以移除。")])])}],s={},a=s,n=_("2877"),o=Object(n["a"])(a,e,d,!1,null,null,null);v["default"]=o.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-2d0f026c.js b/dist/js/chunk-2d0f026c.js index 9d14c214..04bd1d4e 100644 --- a/dist/js/chunk-2d0f026c.js +++ b/dist/js/chunk-2d0f026c.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f026c"],{"9ac1":function(v,_,p){"use strict";p.r(_);var o=function(){var v=this;v._self._c;return v._m(0)},e=[function(){var v=this,_=v._self._c;return _("div",[_("h1",[v._v("Changelog")]),_("h2",[v._v("0.9.1-fix.1")]),_("p",[v._v("修复:")]),_("p",[v._v("1.修复自定义节点方法返回null时报错的问题。")]),_("p",[v._v("2.修复导出pdf文件体积很大的问题。")]),_("h2",[v._v("0.9.1")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复自定义节点内容时导出图片、svg、pdf报错的问题。")]),_("p",[v._v("2.优化节点激活事件的派发,激活节点未改变时不派发事件,短时间派发多次事件时跳过中间事件。")]),_("p",[v._v("3.修复节点处于编辑状态时,通过鼠标滚动移动画布后编辑框和节点脱离的问题。")]),_("p",[v._v("4.修复在节点编辑状态中通过鼠标滚轮缩放画布再退出节点编辑后快捷键失效的问题。")]),_("p",[v._v("5.修复点击节点也会触发node_dragend事件的问题。")]),_("p",[v._v("6.修复不在格式刷时点击画布和节点也会触发painter_end事件的问题。")]),_("p",[v._v("7.修复在节点文本编辑中和关联线文本编辑中时销毁思维导图文本编辑框未被销毁的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.按住Ctrl键时禁用节点双击事件。")]),_("p",[v._v("2.支持配置创建新节点时的行为:聚焦且进入编辑、不聚焦、只聚焦。")]),_("p",[v._v("3.只读模式下搜索时给当前匹配到的节点增加高亮效果。")]),_("p",[v._v("4.鼠标滚轮行为默认改为上下移动画布;默认改为向前滚动放大画布,向后缩小。")]),_("p",[v._v("5.在鼠标滚轮行为为上下移动画布时,支持按住Ctrl键进行放大缩小画布。")])]),_("p",[v._v("Demo:支持配置创建新节点时的行为。")]),_("h2",[v._v("0.9.0")]),_("p",[v._v("新增:")]),_("p",[v._v("1.支持对同一个节点的部分子节点添加概要。")]),_("p",[v._v("2.鼠标移入概要会高亮其所属节点。")]),_("p",[v._v("3.导入和导出xmind文件支持处理概要。")]),_("h2",[v._v("0.8.1")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复历史记录数据中概要节点的激活状态未被删除的问题,会导致点击概要节点时触发data_change事件。")]),_("p",[v._v("2.修复在safari浏览器中运行时,页面空白且控制台抛出异常的问题。")]),_("p",[v._v("3.修复缩放画布时图标浮层和备注浮层和节点脱离的问题。")]),_("p",[v._v("4.修复只读模式下可以全选节点的问题。")]),_("p",[v._v("5.修复富文本模式下节点内容存在 时导出为图片出错的问题。")]),_("p",[v._v("6.修复先给自身添加概要,再给下级添加概要会出现概要重叠的问题;修复同时给存在上下级关系的节点添加概要时概要重叠的问题。")]),_("p",[v._v("7.修复节点数量很多的情况下导出pdf报错的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.新增禁止拖动画布的配置选项。")]),_("p",[v._v("2.新增禁止双指缩放画布的配置选项。")]),_("p",[v._v("3.导出png的方法新增压缩参数;优化大数据量节点导出pdf时体积过大的问题。")]),_("p",[v._v("4.将节点实例的isParent方法改名为isAncestor,同时新增isParent方法。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修复只读模式下仍旧可以搜索替换和编辑大纲的问题。")]),_("p",[v._v("2.修复节点内容为html标签时大纲无法显示和编辑的问题。")]),_("p",[v._v("3.修复同时选中多个节点添加图标时,所有节点图标都会统一为第一个节点的图标的问题。")]),_("p",[v._v("4.导出操作增加loading。")])]),_("h2",[v._v("0.8.0-fix.1")]),_("p",[v._v("修复:修复直接粘贴的方式创建新节点时如果粘贴的内容带有<>等html标签符号时新创建的节点内容为空的问题。")]),_("h2",[v._v("0.8.0")]),_("p",[v._v("破坏性更新:大幅优化部分代码,小幅提升性能,主要是"),_("code",[v._v("render")]),v._v("类,删除无用逻辑、调整不合理的实现、提取重复代码;修改函数名称、函数功能等。")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复导出图片和svg时关联线的箭头消失的问题。")]),_("p",[v._v("2.修复调整容器大小后回到根节点的操作异常的问题。")]),_("p",[v._v("3.修复插入概要、上移、下移、一键整理布局的快捷键操作没有触发data_change事件的问题。")]),_("p",[v._v("4.修复存在水印时导出图片、svg、pdf时每个节点都会显示边框的问题。")]),_("p",[v._v("5.修复容器尺寸改变后没有水印没有重新绘制的问题。")]),_("p",[v._v("6.修复存在水印时小地图渲染非常慢的问题。")]),_("p",[v._v("7.修复协同插件当创建新节点时新节点未显示创建人头像的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.优化画布DOM结构,将节点、连线、关联线分层渲染。")]),_("p",[v._v("2.优化水印插件。")]),_("p",[v._v("3.setTheme、setThemeConfig、setLayout函数增加不触发重新渲染的参数。")]),_("p",[v._v("4.新增插入父节点的命令。")]),_("p",[v._v("5.新增仅删除当前节点的命令。")]),_("p",[v._v("6.插入概要时自动展开子节点。")]),_("p",[v._v("7.鼠标右键单击画布时清除当前激活节点。")]),_("p",[v._v("8.被收起的激活节点同步从激活节点列表里删除。")]),_("p",[v._v("9.粘贴带换行的文本支持控制是否按换行分割节点。")]),_("p",[v._v("10.小地图插件支持返回图片类型的小地图。")]),_("p",[v._v("11.指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修改回到根节点的方法及文案。")]),_("p",[v._v("2.修复覆盖方式切换主题时第一次切换不生效的问题。")]),_("p",[v._v("3.右键菜单新增插入父节点和仅删除当前节点的功能。")]),_("p",[v._v("4.顶部工具栏支持根据窗口宽度自动收起到更多中。")]),_("p",[v._v("5.支持手动输入缩放倍数。")]),_("p",[v._v("6.完善界面英文翻译。")]),_("p",[v._v("7.小地图改为通过图片渲染。")])]),_("h2",[v._v("0.7.3-fix.2")]),_("p",[v._v("修复协同编辑的一些问题:")]),_("p",[v._v("1.插入同级节点时新节点位置不正确;")]),_("p",[v._v("2.在同级节点中移动位置没有触发更新;")]),_("p",[v._v("3.移动节点作为兄弟节点插入时位置不正确;")]),_("h2",[v._v("0.7.3-fix.1")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复一些情况下多选节点时的框选区域没有消失的问题。")]),_("p",[v._v("2.修复多选节点时在节点上松开鼠标时框选区域不会消失的问题。")]),_("p",[v._v("3.修复多次粘贴节点时由于节点uid重复造成的渲染异常问题。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.超链接输入框增加协议选择功能。")])]),_("h2",[v._v("0.7.3")]),_("p",[v._v("新增:1.新增协同编辑插件。")]),_("p",[v._v("Demo:1.修复公式侧边栏组件导致的侧边栏自动关闭问题。")]),_("h2",[v._v("0.7.2")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复多选节点时选区未包含节点边界时节点不会被选中的问题。")]),_("p",[v._v("2.修复节点文本不为字符串时报错的问题。")]),_("p",[v._v("3.修复非富文本模式下文本中存在<>&字符时再次编辑时部分文本会消失的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.支持插入数学公式。")]),_("p",[v._v("2.支持同时拖拽移动多个节点。")]),_("p",[v._v("3.支持同时复制、剪切多个节点。")]),_("p",[v._v("4.节点标签颜色改为根据标签内容生成,即同样的标签内容会生成相同的颜色。")]),_("p",[v._v("5.优化子节点的插入:1.同时对多个节点插入子节点时,不进入编辑状态;2.新插入的子节点自动进入激活状态。")]),_("p",[v._v("6.优化兄弟节点的插入:1.支持同时对多个节点插入兄弟节点;2.对根节点调用插入兄弟节点的命令时不再创建子节点。")]),_("p",[v._v("7.新增同时插入多个同级节点、多个子节点的命令。")]),_("p",[v._v("8.将节点唯一标识由id全部改为uid,主要影响关联线,之前版本的关联线可能无法正常显示。")]),_("p",[v._v("9.优化图标合并逻辑,支持扩展库内部分类下的图标。")]),_("p",[v._v("10.关联线:1.双击关联线进入关联线文本编辑模式;2.关联线文本为默认文本的话不保存;3.存在激活节点时点击关联线可直接激活关联线。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修复复制知犀思维导图多个节点时无法粘贴的问题。")]),_("p",[v._v("2.新增公式编辑的侧边栏。")])]),_("h2",[v._v("0.7.1-fix.2")]),_("p",[v._v("修复:1.修复插件注册方法链式调用报错的问题。")]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.新增思维导图初次加载时适应画布大小的配置选项。")]),_("p",[v._v("2.新增自动生成dts声明文件的命令。")])]),_("h2",[v._v("0.7.1-fix.1")]),_("p",[v._v("修复:修复拖拽节点时没有排除被拖拽节点的下级节点的问题。")]),_("h2",[v._v("0.7.1")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复关联线端点改变后未保存的问题。")]),_("p",[v._v("2.修复画布左上角距浏览器窗口不为0时多选节点鼠标移动到边缘时画布滚动异常的问题。")]),_("p",[v._v("3.修复导入存在为标题为空的节点的xmind文件报错的问题。")]),_("p",[v._v("4.修复导出的xmind文件在最新版xmind软件上打开时提示已损坏的问题。")]),_("p",[v._v("5.修复导出带有贴纸的数据为xmind格式时贴纸无法显示的问题。")]),_("p",[v._v("6.修复没有注册select插件时节点右键事件报错的问题。")]),_("p",[v._v("7.修复注册插件的方法没有去重的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.重构节点拖拽逻辑:优化一些情况下的拖拽难问题、适配各种结构、拖拽时鼠标移动到画布边缘时画布自动移动。")]),_("p",[v._v("2.重构滚动条插件,优化使用体验。")]),_("p",[v._v("3.不完美的解决逻辑结构图、思维导图、目录组织图、组织结构图概要和节点的冲突问题(概要后面应该会重写或删除)。")]),_("p",[v._v("4.删除节点后激活相邻节点。")]),_("p",[v._v("5.节点数据data中以_开头的字段被认为是自定义字段。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.页面增加显示当前核心库版本号。")])]),_("h2",[v._v("0.7.0")]),_("p",[v._v("破坏性更新:删除了主题文件中节点激活样式的部分,不再支持设置节点的激活样式,激活效果改为统一的节点外边框样式,同时支持鼠标hover效果。")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复节点边框尺寸比较大的情况下的的渲染异常问题。")]),_("p",[v._v("2.修复切换主题时存在关联线的节点样式不会更新的问题。")]),_("p",[v._v("3.修复全选没有触发node_active事件的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.收起节点时,显示折叠的节点数量。")]),_("p",[v._v("2.支持关联线端点的位置跟随鼠标拖拽变化。")]),_("p",[v._v("3.新增滚动条插件。")]),_("p",[v._v("4.支持在url中通过fileURL查询参数打开指定的在线文件。")]),_("p",[v._v("5.鱼骨图支持设置节点margin。")]),_("p",[v._v("6.默认关闭双击复位画布。")]),_("p",[v._v("7.修改导出图片方法的参数,导出pdf时如果思维导图尺寸小于a4纸那么不旋转方向。")]),_("p",[v._v("8.提升导出的图片和pdf在高清屏的清晰度。")]),_("p",[v._v("9.插件新增销毁前生命周期函数,解决销毁思维导图时插件的一些副作用没有清除的问题。")]),_("p",[v._v("10.优化基础样式的设置,修改不影响大小的主题属性时不触发全量渲染。")]),_("p",[v._v("11.右键多选节点结束时禁止触发节点右键菜单事件,避免触发右键菜单显示。")]),_("p",[v._v("12.优化Select插件,如果多选节点没有变化,那么不触发激活激活事件。")]),_("p",[v._v("13.node_active事件抛出的激活节点列表不再直接引用内部激活列表。")]),_("p",[v._v("14.优化鼠标按下节点事件逻辑,在右键拖拽画布模式下支持右键按住根节点拖拽画布。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.不直接引用内部激活节点列表,优化性能。")]),_("p",[v._v("2.支持配置是否显示滚动条。")]),_("p",[v._v("3.删除侧边栏节点样式配置部分的激活节点配置。")])]),_("h2",[v._v("0.6.17")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复导入百度脑图导出的xmind文件报错的问题。")]),_("p",[v._v("2.修复mindMap.export方法代码错误。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.新增index.d.ts。")]),_("p",[v._v("2.支持配置是否开启双击复位思维导图。")]),_("p",[v._v("3.拦截富文本编辑时的粘贴操作,去掉格式,只允许粘贴纯文本。")])]),_("h2",[v._v("0.6.16")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.优化富文本测量元素的逻辑,删除样式的重复设置和节点的重复添加。")]),_("p",[v._v("2.优化导出图片逻辑,遍历节点转换图片的url时,如果已经是data:URL形式不重复处理。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.去除导出svg方法的第二个参数,改为通过实例化配置。")]),_("p",[v._v("2.导出图片不再使用外部库。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修复单独编辑大纲时能给根节点添加兄弟节点的bug。")])]),_("h2",[v._v("0.6.15-fix.2")]),_("p",[v._v("修复:修复在Firefox浏览器中富文本节点无法显示的问题。")]),_("h2",[v._v("0.6.15-fix.1")]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.导出pdf支持根据图片大小分页导出。")]),_("p",[v._v("2.导出pdf支持根据长宽比自动调整方向。")]),_("p",[v._v("3.优化展开收起按钮的占位元素:1.没有子节点的节点不渲染该元素;2.根据是否存在子节点动态更新该元素。")]),_("p",[v._v("4.新增禁止鼠标滚轮缩放的配置。")]),_("p",[v._v("5.支持传递错误处理函数。")])]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复节点文本为空时显示异常问题。")]),_("p",[v._v("2.导出svg的图形的paddingX和paddingY改为单侧padding。")]),_("p",[v._v("3.修复画布距浏览器窗口左上角不为0时鼠标缩放时不以鼠标为中心的问题。")]),_("p",[v._v("4.修复节点边框会重合的问题。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.右下角支持跳转相关链接。")]),_("p",[v._v("2.调整小地图位置,解决被侧边按钮遮挡的问题。")]),_("p",[v._v("3.修复打开本地文件右上角的提示无法关闭的问题。")]),_("p",[v._v("4.单独编辑大纲不再和画布联动,优化大数据量下的编辑体验。")]),_("p",[v._v("5.侧边栏涉及图形的选项增加可视化效果。")])]),_("h2",[v._v("0.6.14")]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.去除创建隐藏输入框,通过navigator.clipboard实现复制粘贴;支持跨浏览器粘贴思维导图节点数据;支持自定义处理剪贴板中的文本数据。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修复开启输入自动进入文本编辑模式和其他输入框冲突的问题。")]),_("p",[v._v("2.修复无法在节点图片弹窗里删除节点图片的问题。")]),_("p",[v._v("3.修复在节点样式侧边栏里无法去除节点的文本修饰线样式的问题。")]),_("p",[v._v("4.颜色选择器支持选择透明颜色。")]),_("p",[v._v("5.修复基础样式侧边栏打开状态下,导入思维导图数据后侧边栏数据未更新的问题。")]),_("p",[v._v("6.修复大纲修改一个节点的文本后再点击其他节点时不聚焦的问题。")]),_("p",[v._v("7.修复退出禅模式后左下角的节点和字数统计未更新的问题。")]),_("p",[v._v("8.支持从右键菜单删除节点的超链接、备注。")]),_("p",[v._v("9.支持粘贴知犀思维导图的节点数据。")])]),_("h2",[v._v("0.6.13")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复只读模式下鼠标中键按住节点无法拖动画布的问题。")]),_("p",[v._v("2.修复快速拖动节点几次后会概率性报错的问题。")]),_("p",[v._v("3.修复在移动端激活节点、展开收起时等操作时会拉起输入法的问题。")]),_("p",[v._v("4.修复主题配置中背景图片为none时会发起一个异常请求的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.移动端手势缩放优化: 按线性关系进行缩放、双指位移可以调整画布位置。")]),_("p",[v._v("2.去掉异步渲染节点的逻辑,提升创建新节点的速度。")]),_("p",[v._v("3.导出图片由html2canvas库改为使用dom-to-image-more库,解决导出富文本节点文字样式丢失的问题。")]),_("p",[v._v("4.非富文本输入框进入编辑状态时取消默认全选。")]),_("p",[v._v("5.存在一个激活节点时,支持按下中文、数字、英文按键时自动进入文本编辑模式。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.保存视图数据时增加防抖操作,优化性能。")]),_("p",[v._v("2.一些耗时的操作添加loading效果。")]),_("p",[v._v("3.完善右键菜单和富文本工具条的暗黑模式。")])]),_("h2",[v._v("0.6.12")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复当思维导图全部移出可视区域后小地图中的指示器也会移出小地图区域的问题。")]),_("p",[v._v("2.修复移动端双指缩放过于灵敏的问题。")]),_("p",[v._v("3.修复只读模式下按住节点无法拖动画布的问题。")]),_("p",[v._v("4.修复当思维导图距浏览器窗口左上角不为0时,小地图渲染不正确的问题。")]),_("p",[v._v("5.修复移动节点时新位置的提示块过大的问题。")]),_("p",[v._v("6.修复搜索不能替换为空字符的问题。")]),_("p",[v._v("7.修复富文本模式下,搜索替换后换行会丢失的问题。")]),_("p",[v._v("8.修复大纲里点击文字编辑时输入框焦点丢失的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.节点移动结束事件(node_dragend)增加回调参数,可以获取到移动到节点的uid。")]),_("p",[v._v("2.支持通过配置指定内部一些元素添加到的位置。")]),_("p",[v._v("3.支持格式刷功能。")]),_("p",[v._v("4.曲线风格下,根节点的连接线样式支持和其他节点保持一致。")]),_("p",[v._v("5.搜索支持连续替换。")]),_("p",[v._v("6.节点图片新增删除按钮。")]),_("p",[v._v("7.支持按住鼠标中键拖动画布。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.提供应用接管模式,方便对接自己的存储服务;支持运行时设置静态资源路径。")]),_("p",[v._v("2.重构大纲:1.不再使用节点自带的文本样式;2.支持全屏编辑大纲;3.大纲支持拖拽移动节点;4.大纲支持删除节点。")]),_("p",[v._v("3.修复导入数据场景下界面暗黑模式没有更新的问题。")])]),_("h2",[v._v("0.6.11-fix.1")]),_("p",[v._v("修复:1.修复节点文字为白色时编辑的时候看不见的问题。")]),_("h2",[v._v("0.6.11")]),_("p",[v._v("新增:1.优化小地图,去除小地图内的节点内容,优化性能。")]),_("p",[v._v("Demo:1.新增主题、主题列表新增tab区分。 2.节点图片上传支持输入网络图片地址。 3.节点图片上传支持输入网络图片。")]),_("h2",[v._v("0.6.10")]),_("p",[v._v("修复:1.修复搜索定位到某个节点后删除该节点,再次搜索时搜索结果未更新的问题。 2.修复调整图片大小的按钮在节点操作后没有更新的问题。 3.修复内部数据深拷贝位置不正确的问题。 4.修复富文本节点换行不生效的问题。 5.修复切换主题等场景时节点换行会丢失的问题。")]),_("p",[v._v("新增:1.搜索支持搜索空白字符和替换为空白字符。")]),_("p",[v._v("Demo:1.支持通过图标按钮调出搜索。 2.支持通过图标按钮切换暗黑模式。 3.优化搜索:鼠标不在搜索区域内不聚焦,解决鼠标不在搜索区域内无法删除输入的文字的问题。 4.调整添加节点图标的界面UI,新增系列节点图标。 5.新增贴纸列表。 6.修复在搜索框回车后输入框焦点丢失的问题。 7.支持点击节点内的图标显示一个图标快捷替换和删除悬浮面板。")]),_("h2",[v._v("0.6.9-fix.1")]),_("p",[v._v("修复:1.修复搜索进行一次单个替换后再全部替换不正确的问题。")]),_("p",[v._v("新增:1.不会再直接修改传入的data对象,内部会深拷贝一份。")]),_("h2",[v._v("0.6.9")]),_("p",[v._v("修复:1.修复给概要节点设置样式概要节点会消失的问题。2.修复自定义节点内容时,二次创建根实例时节点内容不渲染的问题。3.修复节点处于编辑中时添加新节点时新节点的焦点丢失问题。 2.修复连续按tab键无法连续创建子节点的问题。")]),_("p",[v._v("新增:1.导出svg时替换svg中存在的"),_("code",[v._v(" ")]),v._v("字符,避免导出的svg报错。 2.支持搜索和替换。")]),_("p",[v._v("Demo:1.切换主题时支持选择是否覆盖设置过的基础样式。")]),_("h2",[v._v("0.6.8")]),_("p",[v._v("修复:1.修改插入概要的快捷键为Ctrl+G,避免和保存快捷键冲突。 2.修复节点正在编辑时切换富文本编辑配置输入框出现异常的问题。")]),_("p",[v._v("新增:1.修改复制、剪切、粘贴逻辑,支持粘贴剪切板中的数据。")]),_("p",[v._v("Demo:1.修复基础样式-设置节点外边距未保存的问题。 2.支持根据主题自动切换为暗黑模式。")]),_("h2",[v._v("0.6.7")]),_("p",[v._v("修复:1.修复节点收起再展开后展开收起按钮占位元素丢失的问题。 2.修复只读模式下可以缩放图片的问题。")]),_("p",[v._v("新增:1.支持根据节点实例或节点uid定位到某个节点。 2.修改节点uid的创建方式,导出数据添加节点的uid。")]),_("p",[v._v("移除:1.移除节点过渡效果。")]),_("p",[v._v("Demo:1.添加网站首页。 2.修复大纲里创建新节点时节点样式丢失的问题。 3.修复大纲里编辑节点后按回车或Tab键后编辑文本丢失的问题。 4.优化大纲的节点定位,被收起的节点会自动展开。 5.侧边栏按钮支持收起。 6.优化小屏适配。")]),_("h2",[v._v("0.6.6")]),_("p",[v._v("新增:1.支持导出为Xmind新版文件。2.导入Xmind新版文件支持导入节点中的图片。 3.新增竖向时间轴结构。")]),_("p",[v._v("修复:1.TouchEvent插件不再派发click事件,解决移动端点击超链接会打开两个窗口的问题。 2.修复拖拽移动一个节点成为另一个节点的子节点时该节点的父节点指向未更新的问题。 3.修复二级节点拖拽成三级节点时节点边框样式未更新的问题。 4.修复向右生长的结构外其他结构鼠标移入展开收起按钮位置时不会触发按钮显示的问题。")]),_("p",[v._v("优化:1.优化触控板缩放画布时幅度过大的问题。2.刚创建的节点默认全选方便删除默认文本。")]),_("h2",[v._v("0.6.5-fix.1")]),_("p",[v._v("修复:1.修复在缩放情况下调整图片大小不正确的问题。")]),_("h2",[v._v("0.6.5")]),_("p",[v._v("修复:1.修复xmind文件导入报错的问题。 2.修复极少数情况下当节点文本的宽度为小数时显示发生换行的问题。")]),_("p",[v._v("新增:1.打包后的库支持获取内置常量、主题等数据。 2.支持配置鼠标滚轮方向对应的缩放行为。 3.节点图片支持拖拽调整大小。")]),_("h2",[v._v("0.6.4-fix.1")]),_("p",[v._v("新增:1.鼠标滚轮缩放时默认以鼠标当前位置为中心进行缩放,可以通过配置关闭该特性。")]),_("p",[v._v("修复:1.修复改变了画布大小后缩放中心点默认值不随之更新的问题。")]),_("h2",[v._v("0.6.4")]),_("p",[v._v("新增:1.默认以画布中心点进行缩放。 2.优化移动端双指缩放,以双指中心位置为中心点进行缩放。")]),_("h2",[v._v("0.6.3")]),_("p",[v._v("修复:1.修复概要节点会响应插入节点快捷键的问题。")]),_("p",[v._v("新增:1.支持自定义节点内容。")]),_("h2",[v._v("0.6.2")]),_("p",[v._v("修复:1.修复富文本模式下,新建节点不随主题变化而变化的问题。")]),_("h2",[v._v("0.6.1")]),_("p",[v._v("修复:1.修复将鼠标滚动改为移动画布行为后,使用触控板操作时移动灵敏度过高的问题。")]),_("h2",[v._v("0.6.0-fix.1")]),_("p",[v._v("修复:1.修复没有设置过背景样式的情况下销毁思维导图报错的问题。")]),_("h2",[v._v("0.6.0")]),_("p",[v._v("破坏性更新:调整了simple-mind-map源码的目录结构,主要影响:1.插件的引入路径需要修改。2.constant文件路径需要修改。")]),_("p",[v._v("新增:1.支持一键缩放至适应画布功能。 2.按住Ctrl键多选功能可通过配置按需开启。 3.支持设置为左键多选节点,右键拖动画布。 4.支持控制节点是否允许编辑。 5.新增销毁思维导图的方法。 6.新增触摸事件支持插件。")]),_("p",[v._v("修复:1.修复按住ctrl键多选节点时不会触发节点的click事件的问题。 2.修复清空一个节点后再输入文字时节点样式丢失的问题。")]),_("h2",[v._v("0.5.11")]),_("p",[v._v("新增:支持关联性文本编辑。")]),_("p",[v._v("优化:优化主题配置更新,改变不涉及节点大小的配置不触发节点重新计算。")]),_("h2",[v._v("0.5.10")]),_("p",[v._v("新增:使用LRU缓存算法优化节点复用逻辑。")]),_("h2",[v._v("0.5.10-fix.1")]),_("p",[v._v("修复:修复导入出错的问题。")]),_("h2",[v._v("0.5.10-fix.2")]),_("p",[v._v("修复:修复富文本模式下,切换主题、导入数据后没有触发数据改变的问题。")]),_("p",[v._v("新增:新增三种主题。")]),_("h2",[v._v("0.5.9")]),_("p",[v._v("修改:统一导出方法的格式,使用"),_("code",[v._v("FileReader")]),v._v("代替"),_("code",[v._v("URL.createObjectURL")]),v._v("转换"),_("code",[v._v("blob")]),v._v("数据。")]),_("h2",[v._v("0.5.8")]),_("p",[v._v("优化:1.节点位置没有变化不触发位置设置。 2.展开收起状态没有变化不触发按钮更新。")]),_("p",[v._v("新增:1.默认改为鼠标移上节点才显示展开收起按钮。 2.支持扩展节点可插入的图标列表。")]),_("h2",[v._v("0.5.7")]),_("p",[v._v("破坏性更新:富文本模式下导出png改为使用html2canvas转换整个svg,大幅提高导出速度,不过html2canvas存在一个bug,foreignObject元素中的dom节点内联的文字颜色无法识别,所以导出节点的文字颜色是固定的,不过相对于之前的导出基本不可用状态,目前至少能快速顺利的导出。")]),_("p",[v._v("优化:优化富文本节点编辑体验。")]),_("p",[v._v("新增:富文本模式下,导入数据、初始化数据、切换主题场景节点样式支持跟随主题变化。")]),_("h2",[v._v("0.5.6")]),_("p",[v._v("修复:1.修复短时间快速多次渲染时节点位置错乱的问题。 2.修复节点正在编辑中时拖动画布导致编辑框和节点分离的问题。")]),_("p",[v._v("新增:1.添加最大历史记录数限制。")]),_("h2",[v._v("0.5.5")]),_("p",[v._v("新增:1.支持配置导出为png、svg、pdf时的内边距。 2.支持配置节点文本编辑框、节点备注浮层元素的z-index。 3.支持点击画布外的区域结束节点编辑状态。")]),_("h2",[v._v("0.5.5-fix.1")]),_("p",[v._v("修复:1.修复节点在画布外编辑时编辑框也在画布外的问题。 2.修改结构后复位变换,防止存在缩放时切换结构后第一次拖动时会发生位置突变的问题。")]),_("p",[v._v("优化:1.节点多选时只要节点和选区存在交叉即认为被选中。")]),_("h2",[v._v("0.5.5-fix.2")]),_("p",[v._v("修复:1.修复小地图报错。")]),_("h2",[v._v("0.5.4")]),_("p",[v._v("新增:1.添加新主题。 2.新增时间轴和鱼骨结构。")]),_("p",[v._v("修复:1.修复节点右键和画布右键的冲突问题。 2.修复组织结构图、目录组织图等节点拖拽时存在线段未隐藏的bug。")]),_("p",[v._v("优化:1.优化组织结构图布局。2.优化目录组织图布局。")]),_("h2",[v._v("0.5.4-fix.1")]),_("p",[v._v("优化:1.优化鱼骨图布局。")]),_("h2",[v._v("0.5.3")]),_("p",[v._v("修复:1.修复富文本模式下,如果选择了多个节点时设置文本样式,会将所有多选节点的文本改成最后一个多选节点的文本的问题。")]),_("p",[v._v("新增:1.支持设置初始中心节点的位置。")]),_("h3",[v._v("0.5.3-fix.1")]),_("p",[v._v("修复:1.修复设置初始中心节点的位置不生效的问题。")]),_("h3",[v._v("0.5.3-fix.2")]),_("p",[v._v("修复:1.修复导出为图片时,节点中的图片显示不出来的问题。")]),_("h2",[v._v("0.5.2")]),_("p",[v._v("修复:1.导出的"),_("code",[v._v("json")]),v._v("数据中去除"),_("code",[v._v("uid")]),v._v(";2.重新渲染时清空节点缓存池。")]),_("h2",[v._v("0.5.1")]),_("p",[v._v("优化:1.只有当鼠标在画布内才响应快捷键事件。")]),_("p",[v._v("修复:1.修复快速操作时节点位置不正确的问题。")]),_("h2",[v._v("0.5.0")]),_("p",[v._v("这个版本主要是代码层面的改动和优化,核心是为了提升渲染性能,减少卡顿问题。")]),_("p",[v._v("新增:1.支持自定义展开收起节点图标和颜色;")]),_("p",[v._v("优化:1.优化渲染逻辑,设置主题、前进回退等操作不再全量渲染;")]),_("pre",[_("code",[v._v(" 2.优化节点拖拽逻辑,修复无法拖动到两个节点之间的问题;\n\n 3.收起全部节点操作增加回到中心点的逻辑;\n\n 4.修复短时间多次触发渲染造成节点乱飞和错乱的问题;\n\n 5.优化节点编辑的体验;\n")])]),_("p",[v._v("修复:1.修复setData方法不触发历史记录的问题;")]),_("p",[v._v("修改:从0.5.0版本开始,考虑性能问题,节点激活状态只能修改形状相关的样式:")]),_("pre",{staticClass:"hljs"},[_("code",[v._v("[\n "),_("span",{staticClass:"hljs-string"},[v._v("'fillColor'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderColor'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderWidth'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderDasharray'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderRadius'")]),v._v("\n]\n")])]),_("h2",[v._v("0.4.7")]),_("p",[v._v("优化:1.富文本编辑时初始聚焦时不再默认全选;2.富文本编辑时使用节点填充色作为背景色,避免节点颜色为白色时看不见。 3.节点激活状态切换不再触发历史记录。 4.短时间多次触发历史记录,只会添加最后一次的数据。 5.优化历史记录添加,当有回退时,再次添加新记录时删除当前指针后面的历史数据。")]),_("p",[v._v("新增:1.支持导入和导出Markdown格式文件。 2.支持配置插入节点时的初始文字。 3.扩展插入节点和删除节点的命令,支持指定节点。")]),_("h2",[v._v("0.4.6")]),_("p",[v._v("新增:1.关联线支持调整控制点。")]),_("p",[v._v("优化:1.添加历史数据时过滤和上一次相比没有改变的数据。")]),_("p",[v._v("修复:1.修复节点编辑时方向键和方向键导航功能的冲突问题。 2.修复拖拽移动节点时节点id的丢失问题,这会导致关联线丢失。")]),_("h2",[v._v("0.4.5")]),_("p",[v._v("新增:1.支持关联线。 2.按住根节点也可以拖动画布。3.按住ctrl键可以调整多选节点。")]),_("h2",[v._v("0.4.4")]),_("p",[v._v("新增:支持响应鼠标的横向滚动。")]),_("h2",[v._v("0.4.3")]),_("p",[v._v("修复:前进回退后没有触发"),_("code",[v._v("data_change")]),v._v("事件的问题。")]),_("p",[v._v("新增:支持自定义鼠标滚轮事件;鼠标滚轮调整为支持缩放视图和上下移动视图。")]),_("h2",[v._v("0.4.2")]),_("p",[v._v("新增:"),_("code",[v._v("Node")]),v._v("类的"),_("code",[v._v("setText")]),v._v("方法增加第二个参数,以支持设置富文本内容。")]),_("h2",[v._v("0.4.1")]),_("p",[v._v("新增:1.新增抛出节点鼠标移入和移除事件;2.节点富文本支持设置背景颜色;3.节点富文本支持清除样式。")]),_("p",[v._v("修复:1.Mac系统触控板缩放相反的问题;2.设备window.devicePixelRatio不为1时,当存在富文本节点时导出的图片中富文本节点尺寸会变大的问题。")]),_("h2",[v._v("0.4.0")]),_("p",[v._v("新增:节点支持富文本编辑。")]),_("h2",[v._v("0.3.4")]),_("p",[v._v("新增:节点文本增加自动换行功能。")]),_("p",[v._v("修复:1.修复批量删除的节点中如果存在根节点会出现删除异常的问题。2.修复底边风格的情况下,节点高度过高会和其他节点重叠的问题。")]),_("h2",[v._v("0.3.3")]),_("p",[v._v("修复:根节点文字无法换行的问题。")]),_("h2",[v._v("0.3.2")]),_("p",[v._v("修复:1.修复二级节点拖拽到其他节点或其他节点拖拽到二级节点时节点样式没有更新的问题;2.修复当思维导图实际内容大于屏幕宽高时,导出的时候超出的部分没有绘制水印的问题。")]),_("h2",[v._v("0.3.1")]),_("p",[v._v("修复:1.删除背景图片不生效的问题;2.节点拖拽到根节点时连接线跑到根节点上方的问题。")]),_("p",[v._v("新增:背景图片展示增加位置和大小设置。导出的图片也同步支持该设置。")]),_("h2",[v._v("0.3.0")]),_("p",[v._v("升级为插件化架构,将一些非核心功能抽离出来作为插件,按需注册,减小整体体积。")]),_("h2",[v._v("0.2.24")]),_("p",[v._v("新增:节点自由拖拽改为可配置,默认为"),_("code",[v._v("false")]),v._v("不开启;支持添加水印。")]),_("h2",[v._v("0.2.23")]),_("p",[v._v("新增:支持注册新主题。")]),_("h2",[v._v("0.2.22")]),_("p",[v._v("优化:取消内置"),_("code",[v._v("simple-mind-map")]),v._v("包的主题和结构图片,改为由使用者自行维护,原有图片可在"),_("code",[v._v("web/assets/img/")]),v._v("目录找到。")]),_("h2",[v._v("0.2.21")]),_("p",[v._v("新增:支持节点横线风格。")]),_("h2",[v._v("0.2.20")]),_("p",[v._v("修复:画布距窗口左上角不为0时节点拖拽出现偏移的问题。")]),_("h2",[v._v("0.2.19")]),_("p",[v._v("修复:没有激活节点时随便按什么键都会触发自动聚焦的问题。")]),_("h2",[v._v("0.2.18")]),_("p",[v._v("优化:键盘导航寻找焦点的算法,支持简单算法、区域算法、阴影算法。")]),_("h2",[v._v("0.2.17")]),_("p",[v._v("新增:键盘导航,即通过方向键来切换激活的节点;支持在大纲直接编辑节点文本内容。")]),_("h2",[v._v("0.2.16")]),_("p",[v._v("优化:小地图、拖拽性能。")]),_("h2",[v._v("0.2.15")]),_("p",[v._v("优化:本地文件编辑。")]),_("p",[v._v("新增:支持双击节点内图片进行大图预览。")]),_("h2",[v._v("0.2.14")]),_("p",[v._v("优化:插入子节点时自动展开。")]),_("p",[v._v("修复:小地图关闭时报错的问题。")]),_("h2",[v._v("0.2.13")]),_("p",[v._v("修复:子节点收起状态复制时丢失的问题。")]),_("h2",[v._v("0.2.11")]),_("p",[v._v("修复:修复子节点收起状态复制时丢失的问题。")]),_("p",[v._v("新增:支持小地图。")]),_("h2",[v._v("0.2.10")]),_("p",[v._v("优化:手动创建节点时立即聚焦。")]),_("p",[v._v("修复:连线样式深度更新问题。")]),_("p",[v._v("新增:逻辑结构图、思维导图新增直线连接风格、直连风格。")]),_("h2",[v._v("0.2.9")]),_("p",[v._v("新增:支持新建、打开、保存到电脑本地文件。")]),_("h2",[v._v("0.2.8")]),_("p",[v._v("修复:xmind8版本文件导入失败的问题。")]),_("p",[v._v("新增:支持展开到指定层级。")]),_("h2",[v._v("0.2.7")]),_("p",[v._v("修复:根节点添加多个节点爆栈的问题。")]),_("p",[v._v("新增:支持导入.xmind文件。")]),_("h2",[v._v("0.2.6")]),_("p",[v._v("新增:导出svg增加title标签。")]),_("h2",[v._v("0.2.5")]),_("p",[v._v("修复:节点展开收起的bug。")]),_("p",[v._v("新增:节点支持自定义线条样式。")]),_("h2",[v._v("0.2.4")]),_("p",[v._v("新增:节点支持多种形状。")]),_("h2",[v._v("0.2.3")]),_("p",[v._v("修复:编辑节点文本时快捷键冲突的问题;右键菜单快捷键提示错误;右键菜单快捷键提示。")]),_("h2",[v._v("0.2.2")]),_("p",[v._v("修复:输入字符串'/'和快捷键'/'冲突问题。")]),_("h2",[v._v("0.2.1")]),_("p",[v._v("新增:支持导出为pdf。")]),_("h2",[v._v("0.2.0")]),_("p",[v._v("新增:经典4主题;支持添加概要;支持自由拖拽;上移节点、下移节点、复制节点、剪切节点、粘贴节点、一键整理布快捷键;库打包;Ctrl+左键多选。")]),_("h2",[v._v("0.1.18")]),_("p",[v._v("修复:节点图标不能删除的问题;工具按钮置灰仍然可以点击的问题。")]),_("h2",[v._v("0.1.17")]),_("p",[v._v("新增:增加只读模式。")]),_("h2",[v._v("0.1.16")]),_("p",[v._v("新增:节点备注支持markdown及富文本。")]),_("p",[v._v("修复:不能选中文字的问题;节点标注在节点激活后无法隐藏问题;超链接、备注、标签等文字编辑时返回键和回车键与思维导图快捷键冲突的问题。")]),_("h2",[v._v("0.1.15")]),_("p",[v._v("新增:状态数据支持保存激活状态、视图状态(拖动位置、缩放值);支持节点拖拽。")]),_("h2",[v._v("0.1.14")]),_("p",[v._v("修复:存在激活节点时设置主题存在的问题。")]),_("h2",[v._v("0.1.13")]),_("p",[v._v("新增:快捷键功能;新增导出为json。")]),_("p",[v._v("优化:一些细节。")]),_("h2",[v._v("0.1.12")]),_("p",[v._v("新增:本地存储;右键菜单功能等。")]),_("h2",[v._v("0.1.0")]),_("p",[v._v("完成基本功能。")])])}],h={},t=h,i=p("2877"),n=Object(i["a"])(t,o,e,!1,null,null,null);_["default"]=n.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f026c"],{"9ac1":function(v,_,p){"use strict";p.r(_);var o=function(){var v=this;v._self._c;return v._m(0)},e=[function(){var v=this,_=v._self._c;return _("div",[_("h1",[v._v("Changelog")]),_("h2",[v._v("0.9.1-fix.2")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复当节点文本为空时部分浏览器会显示默认文本的问题。")]),_("p",[v._v("2.修复当节点文本内容为空时再次输入文本时文本样式丢失的问题。")]),_("p",[v._v("3.修复节点图片加载失败时导出图片也会失败的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.支持配置节点图片加载失败时显示的默认图片。")])]),_("h2",[v._v("0.9.1-fix.1")]),_("p",[v._v("修复:")]),_("p",[v._v("1.修复自定义节点方法返回null时报错的问题。")]),_("p",[v._v("2.修复导出pdf文件体积很大的问题。")]),_("h2",[v._v("0.9.1")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复自定义节点内容时导出图片、svg、pdf报错的问题。")]),_("p",[v._v("2.优化节点激活事件的派发,激活节点未改变时不派发事件,短时间派发多次事件时跳过中间事件。")]),_("p",[v._v("3.修复节点处于编辑状态时,通过鼠标滚动移动画布后编辑框和节点脱离的问题。")]),_("p",[v._v("4.修复在节点编辑状态中通过鼠标滚轮缩放画布再退出节点编辑后快捷键失效的问题。")]),_("p",[v._v("5.修复点击节点也会触发node_dragend事件的问题。")]),_("p",[v._v("6.修复不在格式刷时点击画布和节点也会触发painter_end事件的问题。")]),_("p",[v._v("7.修复在节点文本编辑中和关联线文本编辑中时销毁思维导图文本编辑框未被销毁的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.按住Ctrl键时禁用节点双击事件。")]),_("p",[v._v("2.支持配置创建新节点时的行为:聚焦且进入编辑、不聚焦、只聚焦。")]),_("p",[v._v("3.只读模式下搜索时给当前匹配到的节点增加高亮效果。")]),_("p",[v._v("4.鼠标滚轮行为默认改为上下移动画布;默认改为向前滚动放大画布,向后缩小。")]),_("p",[v._v("5.在鼠标滚轮行为为上下移动画布时,支持按住Ctrl键进行放大缩小画布。")])]),_("p",[v._v("Demo:支持配置创建新节点时的行为。")]),_("h2",[v._v("0.9.0")]),_("p",[v._v("新增:")]),_("p",[v._v("1.支持对同一个节点的部分子节点添加概要。")]),_("p",[v._v("2.鼠标移入概要会高亮其所属节点。")]),_("p",[v._v("3.导入和导出xmind文件支持处理概要。")]),_("h2",[v._v("0.8.1")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复历史记录数据中概要节点的激活状态未被删除的问题,会导致点击概要节点时触发data_change事件。")]),_("p",[v._v("2.修复在safari浏览器中运行时,页面空白且控制台抛出异常的问题。")]),_("p",[v._v("3.修复缩放画布时图标浮层和备注浮层和节点脱离的问题。")]),_("p",[v._v("4.修复只读模式下可以全选节点的问题。")]),_("p",[v._v("5.修复富文本模式下节点内容存在 时导出为图片出错的问题。")]),_("p",[v._v("6.修复先给自身添加概要,再给下级添加概要会出现概要重叠的问题;修复同时给存在上下级关系的节点添加概要时概要重叠的问题。")]),_("p",[v._v("7.修复节点数量很多的情况下导出pdf报错的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.新增禁止拖动画布的配置选项。")]),_("p",[v._v("2.新增禁止双指缩放画布的配置选项。")]),_("p",[v._v("3.导出png的方法新增压缩参数;优化大数据量节点导出pdf时体积过大的问题。")]),_("p",[v._v("4.将节点实例的isParent方法改名为isAncestor,同时新增isParent方法。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修复只读模式下仍旧可以搜索替换和编辑大纲的问题。")]),_("p",[v._v("2.修复节点内容为html标签时大纲无法显示和编辑的问题。")]),_("p",[v._v("3.修复同时选中多个节点添加图标时,所有节点图标都会统一为第一个节点的图标的问题。")]),_("p",[v._v("4.导出操作增加loading。")])]),_("h2",[v._v("0.8.0-fix.1")]),_("p",[v._v("修复:修复直接粘贴的方式创建新节点时如果粘贴的内容带有<>等html标签符号时新创建的节点内容为空的问题。")]),_("h2",[v._v("0.8.0")]),_("p",[v._v("破坏性更新:大幅优化部分代码,小幅提升性能,主要是"),_("code",[v._v("render")]),v._v("类,删除无用逻辑、调整不合理的实现、提取重复代码;修改函数名称、函数功能等。")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复导出图片和svg时关联线的箭头消失的问题。")]),_("p",[v._v("2.修复调整容器大小后回到根节点的操作异常的问题。")]),_("p",[v._v("3.修复插入概要、上移、下移、一键整理布局的快捷键操作没有触发data_change事件的问题。")]),_("p",[v._v("4.修复存在水印时导出图片、svg、pdf时每个节点都会显示边框的问题。")]),_("p",[v._v("5.修复容器尺寸改变后没有水印没有重新绘制的问题。")]),_("p",[v._v("6.修复存在水印时小地图渲染非常慢的问题。")]),_("p",[v._v("7.修复协同插件当创建新节点时新节点未显示创建人头像的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.优化画布DOM结构,将节点、连线、关联线分层渲染。")]),_("p",[v._v("2.优化水印插件。")]),_("p",[v._v("3.setTheme、setThemeConfig、setLayout函数增加不触发重新渲染的参数。")]),_("p",[v._v("4.新增插入父节点的命令。")]),_("p",[v._v("5.新增仅删除当前节点的命令。")]),_("p",[v._v("6.插入概要时自动展开子节点。")]),_("p",[v._v("7.鼠标右键单击画布时清除当前激活节点。")]),_("p",[v._v("8.被收起的激活节点同步从激活节点列表里删除。")]),_("p",[v._v("9.粘贴带换行的文本支持控制是否按换行分割节点。")]),_("p",[v._v("10.小地图插件支持返回图片类型的小地图。")]),_("p",[v._v("11.指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修改回到根节点的方法及文案。")]),_("p",[v._v("2.修复覆盖方式切换主题时第一次切换不生效的问题。")]),_("p",[v._v("3.右键菜单新增插入父节点和仅删除当前节点的功能。")]),_("p",[v._v("4.顶部工具栏支持根据窗口宽度自动收起到更多中。")]),_("p",[v._v("5.支持手动输入缩放倍数。")]),_("p",[v._v("6.完善界面英文翻译。")]),_("p",[v._v("7.小地图改为通过图片渲染。")])]),_("h2",[v._v("0.7.3-fix.2")]),_("p",[v._v("修复协同编辑的一些问题:")]),_("p",[v._v("1.插入同级节点时新节点位置不正确;")]),_("p",[v._v("2.在同级节点中移动位置没有触发更新;")]),_("p",[v._v("3.移动节点作为兄弟节点插入时位置不正确;")]),_("h2",[v._v("0.7.3-fix.1")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复一些情况下多选节点时的框选区域没有消失的问题。")]),_("p",[v._v("2.修复多选节点时在节点上松开鼠标时框选区域不会消失的问题。")]),_("p",[v._v("3.修复多次粘贴节点时由于节点uid重复造成的渲染异常问题。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.超链接输入框增加协议选择功能。")])]),_("h2",[v._v("0.7.3")]),_("p",[v._v("新增:1.新增协同编辑插件。")]),_("p",[v._v("Demo:1.修复公式侧边栏组件导致的侧边栏自动关闭问题。")]),_("h2",[v._v("0.7.2")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复多选节点时选区未包含节点边界时节点不会被选中的问题。")]),_("p",[v._v("2.修复节点文本不为字符串时报错的问题。")]),_("p",[v._v("3.修复非富文本模式下文本中存在<>&字符时再次编辑时部分文本会消失的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.支持插入数学公式。")]),_("p",[v._v("2.支持同时拖拽移动多个节点。")]),_("p",[v._v("3.支持同时复制、剪切多个节点。")]),_("p",[v._v("4.节点标签颜色改为根据标签内容生成,即同样的标签内容会生成相同的颜色。")]),_("p",[v._v("5.优化子节点的插入:1.同时对多个节点插入子节点时,不进入编辑状态;2.新插入的子节点自动进入激活状态。")]),_("p",[v._v("6.优化兄弟节点的插入:1.支持同时对多个节点插入兄弟节点;2.对根节点调用插入兄弟节点的命令时不再创建子节点。")]),_("p",[v._v("7.新增同时插入多个同级节点、多个子节点的命令。")]),_("p",[v._v("8.将节点唯一标识由id全部改为uid,主要影响关联线,之前版本的关联线可能无法正常显示。")]),_("p",[v._v("9.优化图标合并逻辑,支持扩展库内部分类下的图标。")]),_("p",[v._v("10.关联线:1.双击关联线进入关联线文本编辑模式;2.关联线文本为默认文本的话不保存;3.存在激活节点时点击关联线可直接激活关联线。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修复复制知犀思维导图多个节点时无法粘贴的问题。")]),_("p",[v._v("2.新增公式编辑的侧边栏。")])]),_("h2",[v._v("0.7.1-fix.2")]),_("p",[v._v("修复:1.修复插件注册方法链式调用报错的问题。")]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.新增思维导图初次加载时适应画布大小的配置选项。")]),_("p",[v._v("2.新增自动生成dts声明文件的命令。")])]),_("h2",[v._v("0.7.1-fix.1")]),_("p",[v._v("修复:修复拖拽节点时没有排除被拖拽节点的下级节点的问题。")]),_("h2",[v._v("0.7.1")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复关联线端点改变后未保存的问题。")]),_("p",[v._v("2.修复画布左上角距浏览器窗口不为0时多选节点鼠标移动到边缘时画布滚动异常的问题。")]),_("p",[v._v("3.修复导入存在为标题为空的节点的xmind文件报错的问题。")]),_("p",[v._v("4.修复导出的xmind文件在最新版xmind软件上打开时提示已损坏的问题。")]),_("p",[v._v("5.修复导出带有贴纸的数据为xmind格式时贴纸无法显示的问题。")]),_("p",[v._v("6.修复没有注册select插件时节点右键事件报错的问题。")]),_("p",[v._v("7.修复注册插件的方法没有去重的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.重构节点拖拽逻辑:优化一些情况下的拖拽难问题、适配各种结构、拖拽时鼠标移动到画布边缘时画布自动移动。")]),_("p",[v._v("2.重构滚动条插件,优化使用体验。")]),_("p",[v._v("3.不完美的解决逻辑结构图、思维导图、目录组织图、组织结构图概要和节点的冲突问题(概要后面应该会重写或删除)。")]),_("p",[v._v("4.删除节点后激活相邻节点。")]),_("p",[v._v("5.节点数据data中以_开头的字段被认为是自定义字段。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.页面增加显示当前核心库版本号。")])]),_("h2",[v._v("0.7.0")]),_("p",[v._v("破坏性更新:删除了主题文件中节点激活样式的部分,不再支持设置节点的激活样式,激活效果改为统一的节点外边框样式,同时支持鼠标hover效果。")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复节点边框尺寸比较大的情况下的的渲染异常问题。")]),_("p",[v._v("2.修复切换主题时存在关联线的节点样式不会更新的问题。")]),_("p",[v._v("3.修复全选没有触发node_active事件的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.收起节点时,显示折叠的节点数量。")]),_("p",[v._v("2.支持关联线端点的位置跟随鼠标拖拽变化。")]),_("p",[v._v("3.新增滚动条插件。")]),_("p",[v._v("4.支持在url中通过fileURL查询参数打开指定的在线文件。")]),_("p",[v._v("5.鱼骨图支持设置节点margin。")]),_("p",[v._v("6.默认关闭双击复位画布。")]),_("p",[v._v("7.修改导出图片方法的参数,导出pdf时如果思维导图尺寸小于a4纸那么不旋转方向。")]),_("p",[v._v("8.提升导出的图片和pdf在高清屏的清晰度。")]),_("p",[v._v("9.插件新增销毁前生命周期函数,解决销毁思维导图时插件的一些副作用没有清除的问题。")]),_("p",[v._v("10.优化基础样式的设置,修改不影响大小的主题属性时不触发全量渲染。")]),_("p",[v._v("11.右键多选节点结束时禁止触发节点右键菜单事件,避免触发右键菜单显示。")]),_("p",[v._v("12.优化Select插件,如果多选节点没有变化,那么不触发激活激活事件。")]),_("p",[v._v("13.node_active事件抛出的激活节点列表不再直接引用内部激活列表。")]),_("p",[v._v("14.优化鼠标按下节点事件逻辑,在右键拖拽画布模式下支持右键按住根节点拖拽画布。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.不直接引用内部激活节点列表,优化性能。")]),_("p",[v._v("2.支持配置是否显示滚动条。")]),_("p",[v._v("3.删除侧边栏节点样式配置部分的激活节点配置。")])]),_("h2",[v._v("0.6.17")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复导入百度脑图导出的xmind文件报错的问题。")]),_("p",[v._v("2.修复mindMap.export方法代码错误。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.新增index.d.ts。")]),_("p",[v._v("2.支持配置是否开启双击复位思维导图。")]),_("p",[v._v("3.拦截富文本编辑时的粘贴操作,去掉格式,只允许粘贴纯文本。")])]),_("h2",[v._v("0.6.16")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.优化富文本测量元素的逻辑,删除样式的重复设置和节点的重复添加。")]),_("p",[v._v("2.优化导出图片逻辑,遍历节点转换图片的url时,如果已经是data:URL形式不重复处理。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.去除导出svg方法的第二个参数,改为通过实例化配置。")]),_("p",[v._v("2.导出图片不再使用外部库。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修复单独编辑大纲时能给根节点添加兄弟节点的bug。")])]),_("h2",[v._v("0.6.15-fix.2")]),_("p",[v._v("修复:修复在Firefox浏览器中富文本节点无法显示的问题。")]),_("h2",[v._v("0.6.15-fix.1")]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.导出pdf支持根据图片大小分页导出。")]),_("p",[v._v("2.导出pdf支持根据长宽比自动调整方向。")]),_("p",[v._v("3.优化展开收起按钮的占位元素:1.没有子节点的节点不渲染该元素;2.根据是否存在子节点动态更新该元素。")]),_("p",[v._v("4.新增禁止鼠标滚轮缩放的配置。")]),_("p",[v._v("5.支持传递错误处理函数。")])]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复节点文本为空时显示异常问题。")]),_("p",[v._v("2.导出svg的图形的paddingX和paddingY改为单侧padding。")]),_("p",[v._v("3.修复画布距浏览器窗口左上角不为0时鼠标缩放时不以鼠标为中心的问题。")]),_("p",[v._v("4.修复节点边框会重合的问题。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.右下角支持跳转相关链接。")]),_("p",[v._v("2.调整小地图位置,解决被侧边按钮遮挡的问题。")]),_("p",[v._v("3.修复打开本地文件右上角的提示无法关闭的问题。")]),_("p",[v._v("4.单独编辑大纲不再和画布联动,优化大数据量下的编辑体验。")]),_("p",[v._v("5.侧边栏涉及图形的选项增加可视化效果。")])]),_("h2",[v._v("0.6.14")]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.去除创建隐藏输入框,通过navigator.clipboard实现复制粘贴;支持跨浏览器粘贴思维导图节点数据;支持自定义处理剪贴板中的文本数据。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.修复开启输入自动进入文本编辑模式和其他输入框冲突的问题。")]),_("p",[v._v("2.修复无法在节点图片弹窗里删除节点图片的问题。")]),_("p",[v._v("3.修复在节点样式侧边栏里无法去除节点的文本修饰线样式的问题。")]),_("p",[v._v("4.颜色选择器支持选择透明颜色。")]),_("p",[v._v("5.修复基础样式侧边栏打开状态下,导入思维导图数据后侧边栏数据未更新的问题。")]),_("p",[v._v("6.修复大纲修改一个节点的文本后再点击其他节点时不聚焦的问题。")]),_("p",[v._v("7.修复退出禅模式后左下角的节点和字数统计未更新的问题。")]),_("p",[v._v("8.支持从右键菜单删除节点的超链接、备注。")]),_("p",[v._v("9.支持粘贴知犀思维导图的节点数据。")])]),_("h2",[v._v("0.6.13")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复只读模式下鼠标中键按住节点无法拖动画布的问题。")]),_("p",[v._v("2.修复快速拖动节点几次后会概率性报错的问题。")]),_("p",[v._v("3.修复在移动端激活节点、展开收起时等操作时会拉起输入法的问题。")]),_("p",[v._v("4.修复主题配置中背景图片为none时会发起一个异常请求的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.移动端手势缩放优化: 按线性关系进行缩放、双指位移可以调整画布位置。")]),_("p",[v._v("2.去掉异步渲染节点的逻辑,提升创建新节点的速度。")]),_("p",[v._v("3.导出图片由html2canvas库改为使用dom-to-image-more库,解决导出富文本节点文字样式丢失的问题。")]),_("p",[v._v("4.非富文本输入框进入编辑状态时取消默认全选。")]),_("p",[v._v("5.存在一个激活节点时,支持按下中文、数字、英文按键时自动进入文本编辑模式。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.保存视图数据时增加防抖操作,优化性能。")]),_("p",[v._v("2.一些耗时的操作添加loading效果。")]),_("p",[v._v("3.完善右键菜单和富文本工具条的暗黑模式。")])]),_("h2",[v._v("0.6.12")]),_("p",[v._v("修复:")]),_("blockquote",[_("p",[v._v("1.修复当思维导图全部移出可视区域后小地图中的指示器也会移出小地图区域的问题。")]),_("p",[v._v("2.修复移动端双指缩放过于灵敏的问题。")]),_("p",[v._v("3.修复只读模式下按住节点无法拖动画布的问题。")]),_("p",[v._v("4.修复当思维导图距浏览器窗口左上角不为0时,小地图渲染不正确的问题。")]),_("p",[v._v("5.修复移动节点时新位置的提示块过大的问题。")]),_("p",[v._v("6.修复搜索不能替换为空字符的问题。")]),_("p",[v._v("7.修复富文本模式下,搜索替换后换行会丢失的问题。")]),_("p",[v._v("8.修复大纲里点击文字编辑时输入框焦点丢失的问题。")])]),_("p",[v._v("新增:")]),_("blockquote",[_("p",[v._v("1.节点移动结束事件(node_dragend)增加回调参数,可以获取到移动到节点的uid。")]),_("p",[v._v("2.支持通过配置指定内部一些元素添加到的位置。")]),_("p",[v._v("3.支持格式刷功能。")]),_("p",[v._v("4.曲线风格下,根节点的连接线样式支持和其他节点保持一致。")]),_("p",[v._v("5.搜索支持连续替换。")]),_("p",[v._v("6.节点图片新增删除按钮。")]),_("p",[v._v("7.支持按住鼠标中键拖动画布。")])]),_("p",[v._v("Demo:")]),_("blockquote",[_("p",[v._v("1.提供应用接管模式,方便对接自己的存储服务;支持运行时设置静态资源路径。")]),_("p",[v._v("2.重构大纲:1.不再使用节点自带的文本样式;2.支持全屏编辑大纲;3.大纲支持拖拽移动节点;4.大纲支持删除节点。")]),_("p",[v._v("3.修复导入数据场景下界面暗黑模式没有更新的问题。")])]),_("h2",[v._v("0.6.11-fix.1")]),_("p",[v._v("修复:1.修复节点文字为白色时编辑的时候看不见的问题。")]),_("h2",[v._v("0.6.11")]),_("p",[v._v("新增:1.优化小地图,去除小地图内的节点内容,优化性能。")]),_("p",[v._v("Demo:1.新增主题、主题列表新增tab区分。 2.节点图片上传支持输入网络图片地址。 3.节点图片上传支持输入网络图片。")]),_("h2",[v._v("0.6.10")]),_("p",[v._v("修复:1.修复搜索定位到某个节点后删除该节点,再次搜索时搜索结果未更新的问题。 2.修复调整图片大小的按钮在节点操作后没有更新的问题。 3.修复内部数据深拷贝位置不正确的问题。 4.修复富文本节点换行不生效的问题。 5.修复切换主题等场景时节点换行会丢失的问题。")]),_("p",[v._v("新增:1.搜索支持搜索空白字符和替换为空白字符。")]),_("p",[v._v("Demo:1.支持通过图标按钮调出搜索。 2.支持通过图标按钮切换暗黑模式。 3.优化搜索:鼠标不在搜索区域内不聚焦,解决鼠标不在搜索区域内无法删除输入的文字的问题。 4.调整添加节点图标的界面UI,新增系列节点图标。 5.新增贴纸列表。 6.修复在搜索框回车后输入框焦点丢失的问题。 7.支持点击节点内的图标显示一个图标快捷替换和删除悬浮面板。")]),_("h2",[v._v("0.6.9-fix.1")]),_("p",[v._v("修复:1.修复搜索进行一次单个替换后再全部替换不正确的问题。")]),_("p",[v._v("新增:1.不会再直接修改传入的data对象,内部会深拷贝一份。")]),_("h2",[v._v("0.6.9")]),_("p",[v._v("修复:1.修复给概要节点设置样式概要节点会消失的问题。2.修复自定义节点内容时,二次创建根实例时节点内容不渲染的问题。3.修复节点处于编辑中时添加新节点时新节点的焦点丢失问题。 2.修复连续按tab键无法连续创建子节点的问题。")]),_("p",[v._v("新增:1.导出svg时替换svg中存在的"),_("code",[v._v(" ")]),v._v("字符,避免导出的svg报错。 2.支持搜索和替换。")]),_("p",[v._v("Demo:1.切换主题时支持选择是否覆盖设置过的基础样式。")]),_("h2",[v._v("0.6.8")]),_("p",[v._v("修复:1.修改插入概要的快捷键为Ctrl+G,避免和保存快捷键冲突。 2.修复节点正在编辑时切换富文本编辑配置输入框出现异常的问题。")]),_("p",[v._v("新增:1.修改复制、剪切、粘贴逻辑,支持粘贴剪切板中的数据。")]),_("p",[v._v("Demo:1.修复基础样式-设置节点外边距未保存的问题。 2.支持根据主题自动切换为暗黑模式。")]),_("h2",[v._v("0.6.7")]),_("p",[v._v("修复:1.修复节点收起再展开后展开收起按钮占位元素丢失的问题。 2.修复只读模式下可以缩放图片的问题。")]),_("p",[v._v("新增:1.支持根据节点实例或节点uid定位到某个节点。 2.修改节点uid的创建方式,导出数据添加节点的uid。")]),_("p",[v._v("移除:1.移除节点过渡效果。")]),_("p",[v._v("Demo:1.添加网站首页。 2.修复大纲里创建新节点时节点样式丢失的问题。 3.修复大纲里编辑节点后按回车或Tab键后编辑文本丢失的问题。 4.优化大纲的节点定位,被收起的节点会自动展开。 5.侧边栏按钮支持收起。 6.优化小屏适配。")]),_("h2",[v._v("0.6.6")]),_("p",[v._v("新增:1.支持导出为Xmind新版文件。2.导入Xmind新版文件支持导入节点中的图片。 3.新增竖向时间轴结构。")]),_("p",[v._v("修复:1.TouchEvent插件不再派发click事件,解决移动端点击超链接会打开两个窗口的问题。 2.修复拖拽移动一个节点成为另一个节点的子节点时该节点的父节点指向未更新的问题。 3.修复二级节点拖拽成三级节点时节点边框样式未更新的问题。 4.修复向右生长的结构外其他结构鼠标移入展开收起按钮位置时不会触发按钮显示的问题。")]),_("p",[v._v("优化:1.优化触控板缩放画布时幅度过大的问题。2.刚创建的节点默认全选方便删除默认文本。")]),_("h2",[v._v("0.6.5-fix.1")]),_("p",[v._v("修复:1.修复在缩放情况下调整图片大小不正确的问题。")]),_("h2",[v._v("0.6.5")]),_("p",[v._v("修复:1.修复xmind文件导入报错的问题。 2.修复极少数情况下当节点文本的宽度为小数时显示发生换行的问题。")]),_("p",[v._v("新增:1.打包后的库支持获取内置常量、主题等数据。 2.支持配置鼠标滚轮方向对应的缩放行为。 3.节点图片支持拖拽调整大小。")]),_("h2",[v._v("0.6.4-fix.1")]),_("p",[v._v("新增:1.鼠标滚轮缩放时默认以鼠标当前位置为中心进行缩放,可以通过配置关闭该特性。")]),_("p",[v._v("修复:1.修复改变了画布大小后缩放中心点默认值不随之更新的问题。")]),_("h2",[v._v("0.6.4")]),_("p",[v._v("新增:1.默认以画布中心点进行缩放。 2.优化移动端双指缩放,以双指中心位置为中心点进行缩放。")]),_("h2",[v._v("0.6.3")]),_("p",[v._v("修复:1.修复概要节点会响应插入节点快捷键的问题。")]),_("p",[v._v("新增:1.支持自定义节点内容。")]),_("h2",[v._v("0.6.2")]),_("p",[v._v("修复:1.修复富文本模式下,新建节点不随主题变化而变化的问题。")]),_("h2",[v._v("0.6.1")]),_("p",[v._v("修复:1.修复将鼠标滚动改为移动画布行为后,使用触控板操作时移动灵敏度过高的问题。")]),_("h2",[v._v("0.6.0-fix.1")]),_("p",[v._v("修复:1.修复没有设置过背景样式的情况下销毁思维导图报错的问题。")]),_("h2",[v._v("0.6.0")]),_("p",[v._v("破坏性更新:调整了simple-mind-map源码的目录结构,主要影响:1.插件的引入路径需要修改。2.constant文件路径需要修改。")]),_("p",[v._v("新增:1.支持一键缩放至适应画布功能。 2.按住Ctrl键多选功能可通过配置按需开启。 3.支持设置为左键多选节点,右键拖动画布。 4.支持控制节点是否允许编辑。 5.新增销毁思维导图的方法。 6.新增触摸事件支持插件。")]),_("p",[v._v("修复:1.修复按住ctrl键多选节点时不会触发节点的click事件的问题。 2.修复清空一个节点后再输入文字时节点样式丢失的问题。")]),_("h2",[v._v("0.5.11")]),_("p",[v._v("新增:支持关联性文本编辑。")]),_("p",[v._v("优化:优化主题配置更新,改变不涉及节点大小的配置不触发节点重新计算。")]),_("h2",[v._v("0.5.10")]),_("p",[v._v("新增:使用LRU缓存算法优化节点复用逻辑。")]),_("h2",[v._v("0.5.10-fix.1")]),_("p",[v._v("修复:修复导入出错的问题。")]),_("h2",[v._v("0.5.10-fix.2")]),_("p",[v._v("修复:修复富文本模式下,切换主题、导入数据后没有触发数据改变的问题。")]),_("p",[v._v("新增:新增三种主题。")]),_("h2",[v._v("0.5.9")]),_("p",[v._v("修改:统一导出方法的格式,使用"),_("code",[v._v("FileReader")]),v._v("代替"),_("code",[v._v("URL.createObjectURL")]),v._v("转换"),_("code",[v._v("blob")]),v._v("数据。")]),_("h2",[v._v("0.5.8")]),_("p",[v._v("优化:1.节点位置没有变化不触发位置设置。 2.展开收起状态没有变化不触发按钮更新。")]),_("p",[v._v("新增:1.默认改为鼠标移上节点才显示展开收起按钮。 2.支持扩展节点可插入的图标列表。")]),_("h2",[v._v("0.5.7")]),_("p",[v._v("破坏性更新:富文本模式下导出png改为使用html2canvas转换整个svg,大幅提高导出速度,不过html2canvas存在一个bug,foreignObject元素中的dom节点内联的文字颜色无法识别,所以导出节点的文字颜色是固定的,不过相对于之前的导出基本不可用状态,目前至少能快速顺利的导出。")]),_("p",[v._v("优化:优化富文本节点编辑体验。")]),_("p",[v._v("新增:富文本模式下,导入数据、初始化数据、切换主题场景节点样式支持跟随主题变化。")]),_("h2",[v._v("0.5.6")]),_("p",[v._v("修复:1.修复短时间快速多次渲染时节点位置错乱的问题。 2.修复节点正在编辑中时拖动画布导致编辑框和节点分离的问题。")]),_("p",[v._v("新增:1.添加最大历史记录数限制。")]),_("h2",[v._v("0.5.5")]),_("p",[v._v("新增:1.支持配置导出为png、svg、pdf时的内边距。 2.支持配置节点文本编辑框、节点备注浮层元素的z-index。 3.支持点击画布外的区域结束节点编辑状态。")]),_("h2",[v._v("0.5.5-fix.1")]),_("p",[v._v("修复:1.修复节点在画布外编辑时编辑框也在画布外的问题。 2.修改结构后复位变换,防止存在缩放时切换结构后第一次拖动时会发生位置突变的问题。")]),_("p",[v._v("优化:1.节点多选时只要节点和选区存在交叉即认为被选中。")]),_("h2",[v._v("0.5.5-fix.2")]),_("p",[v._v("修复:1.修复小地图报错。")]),_("h2",[v._v("0.5.4")]),_("p",[v._v("新增:1.添加新主题。 2.新增时间轴和鱼骨结构。")]),_("p",[v._v("修复:1.修复节点右键和画布右键的冲突问题。 2.修复组织结构图、目录组织图等节点拖拽时存在线段未隐藏的bug。")]),_("p",[v._v("优化:1.优化组织结构图布局。2.优化目录组织图布局。")]),_("h2",[v._v("0.5.4-fix.1")]),_("p",[v._v("优化:1.优化鱼骨图布局。")]),_("h2",[v._v("0.5.3")]),_("p",[v._v("修复:1.修复富文本模式下,如果选择了多个节点时设置文本样式,会将所有多选节点的文本改成最后一个多选节点的文本的问题。")]),_("p",[v._v("新增:1.支持设置初始中心节点的位置。")]),_("h3",[v._v("0.5.3-fix.1")]),_("p",[v._v("修复:1.修复设置初始中心节点的位置不生效的问题。")]),_("h3",[v._v("0.5.3-fix.2")]),_("p",[v._v("修复:1.修复导出为图片时,节点中的图片显示不出来的问题。")]),_("h2",[v._v("0.5.2")]),_("p",[v._v("修复:1.导出的"),_("code",[v._v("json")]),v._v("数据中去除"),_("code",[v._v("uid")]),v._v(";2.重新渲染时清空节点缓存池。")]),_("h2",[v._v("0.5.1")]),_("p",[v._v("优化:1.只有当鼠标在画布内才响应快捷键事件。")]),_("p",[v._v("修复:1.修复快速操作时节点位置不正确的问题。")]),_("h2",[v._v("0.5.0")]),_("p",[v._v("这个版本主要是代码层面的改动和优化,核心是为了提升渲染性能,减少卡顿问题。")]),_("p",[v._v("新增:1.支持自定义展开收起节点图标和颜色;")]),_("p",[v._v("优化:1.优化渲染逻辑,设置主题、前进回退等操作不再全量渲染;")]),_("pre",[_("code",[v._v(" 2.优化节点拖拽逻辑,修复无法拖动到两个节点之间的问题;\n\n 3.收起全部节点操作增加回到中心点的逻辑;\n\n 4.修复短时间多次触发渲染造成节点乱飞和错乱的问题;\n\n 5.优化节点编辑的体验;\n")])]),_("p",[v._v("修复:1.修复setData方法不触发历史记录的问题;")]),_("p",[v._v("修改:从0.5.0版本开始,考虑性能问题,节点激活状态只能修改形状相关的样式:")]),_("pre",{staticClass:"hljs"},[_("code",[v._v("[\n "),_("span",{staticClass:"hljs-string"},[v._v("'fillColor'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderColor'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderWidth'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderDasharray'")]),v._v(",\n "),_("span",{staticClass:"hljs-string"},[v._v("'borderRadius'")]),v._v("\n]\n")])]),_("h2",[v._v("0.4.7")]),_("p",[v._v("优化:1.富文本编辑时初始聚焦时不再默认全选;2.富文本编辑时使用节点填充色作为背景色,避免节点颜色为白色时看不见。 3.节点激活状态切换不再触发历史记录。 4.短时间多次触发历史记录,只会添加最后一次的数据。 5.优化历史记录添加,当有回退时,再次添加新记录时删除当前指针后面的历史数据。")]),_("p",[v._v("新增:1.支持导入和导出Markdown格式文件。 2.支持配置插入节点时的初始文字。 3.扩展插入节点和删除节点的命令,支持指定节点。")]),_("h2",[v._v("0.4.6")]),_("p",[v._v("新增:1.关联线支持调整控制点。")]),_("p",[v._v("优化:1.添加历史数据时过滤和上一次相比没有改变的数据。")]),_("p",[v._v("修复:1.修复节点编辑时方向键和方向键导航功能的冲突问题。 2.修复拖拽移动节点时节点id的丢失问题,这会导致关联线丢失。")]),_("h2",[v._v("0.4.5")]),_("p",[v._v("新增:1.支持关联线。 2.按住根节点也可以拖动画布。3.按住ctrl键可以调整多选节点。")]),_("h2",[v._v("0.4.4")]),_("p",[v._v("新增:支持响应鼠标的横向滚动。")]),_("h2",[v._v("0.4.3")]),_("p",[v._v("修复:前进回退后没有触发"),_("code",[v._v("data_change")]),v._v("事件的问题。")]),_("p",[v._v("新增:支持自定义鼠标滚轮事件;鼠标滚轮调整为支持缩放视图和上下移动视图。")]),_("h2",[v._v("0.4.2")]),_("p",[v._v("新增:"),_("code",[v._v("Node")]),v._v("类的"),_("code",[v._v("setText")]),v._v("方法增加第二个参数,以支持设置富文本内容。")]),_("h2",[v._v("0.4.1")]),_("p",[v._v("新增:1.新增抛出节点鼠标移入和移除事件;2.节点富文本支持设置背景颜色;3.节点富文本支持清除样式。")]),_("p",[v._v("修复:1.Mac系统触控板缩放相反的问题;2.设备window.devicePixelRatio不为1时,当存在富文本节点时导出的图片中富文本节点尺寸会变大的问题。")]),_("h2",[v._v("0.4.0")]),_("p",[v._v("新增:节点支持富文本编辑。")]),_("h2",[v._v("0.3.4")]),_("p",[v._v("新增:节点文本增加自动换行功能。")]),_("p",[v._v("修复:1.修复批量删除的节点中如果存在根节点会出现删除异常的问题。2.修复底边风格的情况下,节点高度过高会和其他节点重叠的问题。")]),_("h2",[v._v("0.3.3")]),_("p",[v._v("修复:根节点文字无法换行的问题。")]),_("h2",[v._v("0.3.2")]),_("p",[v._v("修复:1.修复二级节点拖拽到其他节点或其他节点拖拽到二级节点时节点样式没有更新的问题;2.修复当思维导图实际内容大于屏幕宽高时,导出的时候超出的部分没有绘制水印的问题。")]),_("h2",[v._v("0.3.1")]),_("p",[v._v("修复:1.删除背景图片不生效的问题;2.节点拖拽到根节点时连接线跑到根节点上方的问题。")]),_("p",[v._v("新增:背景图片展示增加位置和大小设置。导出的图片也同步支持该设置。")]),_("h2",[v._v("0.3.0")]),_("p",[v._v("升级为插件化架构,将一些非核心功能抽离出来作为插件,按需注册,减小整体体积。")]),_("h2",[v._v("0.2.24")]),_("p",[v._v("新增:节点自由拖拽改为可配置,默认为"),_("code",[v._v("false")]),v._v("不开启;支持添加水印。")]),_("h2",[v._v("0.2.23")]),_("p",[v._v("新增:支持注册新主题。")]),_("h2",[v._v("0.2.22")]),_("p",[v._v("优化:取消内置"),_("code",[v._v("simple-mind-map")]),v._v("包的主题和结构图片,改为由使用者自行维护,原有图片可在"),_("code",[v._v("web/assets/img/")]),v._v("目录找到。")]),_("h2",[v._v("0.2.21")]),_("p",[v._v("新增:支持节点横线风格。")]),_("h2",[v._v("0.2.20")]),_("p",[v._v("修复:画布距窗口左上角不为0时节点拖拽出现偏移的问题。")]),_("h2",[v._v("0.2.19")]),_("p",[v._v("修复:没有激活节点时随便按什么键都会触发自动聚焦的问题。")]),_("h2",[v._v("0.2.18")]),_("p",[v._v("优化:键盘导航寻找焦点的算法,支持简单算法、区域算法、阴影算法。")]),_("h2",[v._v("0.2.17")]),_("p",[v._v("新增:键盘导航,即通过方向键来切换激活的节点;支持在大纲直接编辑节点文本内容。")]),_("h2",[v._v("0.2.16")]),_("p",[v._v("优化:小地图、拖拽性能。")]),_("h2",[v._v("0.2.15")]),_("p",[v._v("优化:本地文件编辑。")]),_("p",[v._v("新增:支持双击节点内图片进行大图预览。")]),_("h2",[v._v("0.2.14")]),_("p",[v._v("优化:插入子节点时自动展开。")]),_("p",[v._v("修复:小地图关闭时报错的问题。")]),_("h2",[v._v("0.2.13")]),_("p",[v._v("修复:子节点收起状态复制时丢失的问题。")]),_("h2",[v._v("0.2.11")]),_("p",[v._v("修复:修复子节点收起状态复制时丢失的问题。")]),_("p",[v._v("新增:支持小地图。")]),_("h2",[v._v("0.2.10")]),_("p",[v._v("优化:手动创建节点时立即聚焦。")]),_("p",[v._v("修复:连线样式深度更新问题。")]),_("p",[v._v("新增:逻辑结构图、思维导图新增直线连接风格、直连风格。")]),_("h2",[v._v("0.2.9")]),_("p",[v._v("新增:支持新建、打开、保存到电脑本地文件。")]),_("h2",[v._v("0.2.8")]),_("p",[v._v("修复:xmind8版本文件导入失败的问题。")]),_("p",[v._v("新增:支持展开到指定层级。")]),_("h2",[v._v("0.2.7")]),_("p",[v._v("修复:根节点添加多个节点爆栈的问题。")]),_("p",[v._v("新增:支持导入.xmind文件。")]),_("h2",[v._v("0.2.6")]),_("p",[v._v("新增:导出svg增加title标签。")]),_("h2",[v._v("0.2.5")]),_("p",[v._v("修复:节点展开收起的bug。")]),_("p",[v._v("新增:节点支持自定义线条样式。")]),_("h2",[v._v("0.2.4")]),_("p",[v._v("新增:节点支持多种形状。")]),_("h2",[v._v("0.2.3")]),_("p",[v._v("修复:编辑节点文本时快捷键冲突的问题;右键菜单快捷键提示错误;右键菜单快捷键提示。")]),_("h2",[v._v("0.2.2")]),_("p",[v._v("修复:输入字符串'/'和快捷键'/'冲突问题。")]),_("h2",[v._v("0.2.1")]),_("p",[v._v("新增:支持导出为pdf。")]),_("h2",[v._v("0.2.0")]),_("p",[v._v("新增:经典4主题;支持添加概要;支持自由拖拽;上移节点、下移节点、复制节点、剪切节点、粘贴节点、一键整理布快捷键;库打包;Ctrl+左键多选。")]),_("h2",[v._v("0.1.18")]),_("p",[v._v("修复:节点图标不能删除的问题;工具按钮置灰仍然可以点击的问题。")]),_("h2",[v._v("0.1.17")]),_("p",[v._v("新增:增加只读模式。")]),_("h2",[v._v("0.1.16")]),_("p",[v._v("新增:节点备注支持markdown及富文本。")]),_("p",[v._v("修复:不能选中文字的问题;节点标注在节点激活后无法隐藏问题;超链接、备注、标签等文字编辑时返回键和回车键与思维导图快捷键冲突的问题。")]),_("h2",[v._v("0.1.15")]),_("p",[v._v("新增:状态数据支持保存激活状态、视图状态(拖动位置、缩放值);支持节点拖拽。")]),_("h2",[v._v("0.1.14")]),_("p",[v._v("修复:存在激活节点时设置主题存在的问题。")]),_("h2",[v._v("0.1.13")]),_("p",[v._v("新增:快捷键功能;新增导出为json。")]),_("p",[v._v("优化:一些细节。")]),_("h2",[v._v("0.1.12")]),_("p",[v._v("新增:本地存储;右键菜单功能等。")]),_("h2",[v._v("0.1.0")]),_("p",[v._v("完成基本功能。")])])}],h={},t=h,i=p("2877"),n=Object(i["a"])(t,o,e,!1,null,null,null);_["default"]=n.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-2d208ffa.js b/dist/js/chunk-2d208ffa.js index 71056f93..9597f9ea 100644 --- a/dist/js/chunk-2d208ffa.js +++ b/dist/js/chunk-2d208ffa.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d208ffa"],{a6d3:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Changelog")]),t("h2",[e._v("0.9.1-fix.1")]),t("p",[e._v("修复:")]),t("p",[e._v("1.修复自定义节点方法返回null时报错的问题。")]),t("p",[e._v("2.修复导出pdf文件体积很大的问题。")]),t("h2",[e._v("0.9.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of exporting images, SVGs, and PDFs with errors when customizing node content.")]),t("p",[e._v("2.Optimize the distribution of node activation events, do not distribute events when the activation node has not changed, and skip intermediate events when distributing multiple events in a short period of time.")]),t("p",[e._v("3.Fix the issue where the edit box and node detach when scrolling the canvas with the mouse while the node is in editing mode.")]),t("p",[e._v("4.Fix the issue of shortcut keys becoming invalid when zooming the canvas with the mouse wheel and then exiting node editing while in node editing mode.")]),t("p",[e._v("5.Fix the issue where clicking on a node can also trigger node_dragend event.")]),t("p",[e._v("6.Fix that clicking on the canvas and nodes while not in the format brush will also trigger the painter_end event.")]),t("p",[e._v("7.Fixed the issue where the mind map text editing box was not destroyed during node text editing and associated line text editing.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.When holding down the Ctrl key, disable the node double-click event.")]),t("p",[e._v("2.Support configuring the behavior when creating new nodes: focusing and entering editing, not focusing, only focusing.")]),t("p",[e._v("3.When searching in read-only mode, add a highlight effect to the currently matched node.")]),t("p",[e._v("4.The default behavior of the mouse scroll wheel is to move the canvas up and down; The default is to scroll forward to enlarge the canvas and zoom back.")]),t("p",[e._v("5.When the mouse scroll wheel behavior is to move the canvas up and down, it supports holding down the Ctrl key to zoom in and out of the canvas.")])]),t("p",[e._v("Demo:支持配置创建新节点时的行为。")]),t("h2",[e._v("0.9.0")]),t("p",[e._v("New:")]),t("p",[e._v("1.Support adding summaries to some child nodes of the same node.")]),t("p",[e._v("2.Moving the mouse into the summary will highlight its node.")]),t("p",[e._v("3.Importing and exporting xmind files supports processing profiles.")]),t("h2",[e._v("0.8.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the activation status of the summary node in the history data has not been deleted, which can cause data to be triggered when clicking on the summary node_ Change event.")]),t("p",[e._v("2.Fix the issue of blank pages and exceptions thrown by the console when running in Safari browser.")]),t("p",[e._v("3.Fixed the issue of icon floating layer and note floating layer detached from nodes when scaling the canvas.")]),t("p",[e._v("4.Fixed the issue of selecting all nodes in read-only mode.")]),t("p",[e._v("5.Fix the presence of node content has   in rich text mode; Error exporting as image.")]),t("p",[e._v("6.Fixed the issue of overlapping profiles when adding profiles to oneself first and then to subordinates; Fix the issue of overlapping profiles when adding profiles to nodes with hierarchical relationships at the same time.")]),t("p",[e._v("7.Fix the issue of exporting PDF errors when there are many nodes.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add a configuration option that prohibits dragging the canvas.")]),t("p",[e._v("2.Add a configuration option to prohibit double finger scaling of the canvas.")]),t("p",[e._v("3.Add compression parameters to the method of exporting PNG; Optimize the problem of excessive volume when exporting PDF from nodes with large amounts of data.")]),t("p",[e._v("4.Rename the isParent method of the node instance to isAncestor and add the isParent method at the same time.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed the issue of being able to search for replacement and edit outlines in read-only mode.")]),t("p",[e._v("2.Fix the issue where the outline cannot be displayed and edited when the node content is an HTML tag.")]),t("p",[e._v("3.Fix the issue where when multiple nodes are selected and icons are added at the same time, all node icons will be unified as the icon of the first node.")]),t("p",[e._v("4.Adding loading to the export operation.")])]),t("h2",[e._v("0.8.0-fix.1")]),t("p",[e._v("Fix: Fixed the issue of creating a new node using direct paste if the pasted content contains HTML label symbols such as <> and the newly created node content is empty.")]),t("h2",[e._v("0.8.0")]),t("p",[e._v("Breaking change: Greatly optimize some of the code and slightly improve performance, mainly by using the 'render' class to remove useless logic, adjust unreasonable implementations, and extract duplicate code; Modify function names, functions, etc.")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of the arrow of the associated line disappearing when exporting images and SVGs.")]),t("p",[e._v("2.Fix the issue of abnormal operation returning to the root node after resizing the container.")]),t("p",[e._v("3.Fix that the shortcut key operations for inserting summary, moving up, down, and organizing layout with one click did not trigger data_ The issue with the change event.")]),t("p",[e._v("4.Fix the issue of each node displaying a border when exporting images, SVGs, and PDFs with watermarks.")]),t("p",[e._v("5.Fixed the issue of no watermarks and no redrawing after the container size was changed.")]),t("p",[e._v("6.Fix the issue of slow rendering of mini maps with watermarks.")]),t("p",[e._v("7.Fixed the issue where the collaboration plugin did not display the creator's avatar when creating a new node.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Optimize the canvas DOM structure and render nodes, lines, and associated lines in layers.")]),t("p",[e._v("2.Optimize the watermark plugin.")]),t("p",[e._v("3.The setTheme, setThemeConfig, and setLayout functions add parameters that do not trigger re rendering.")]),t("p",[e._v("4.Add a command to insert a parent node.")]),t("p",[e._v("5.Add a command to only delete the current node.")]),t("p",[e._v("6.Automatically expand child nodes when inserting a summary.")]),t("p",[e._v("7.Clear the current active node when right-clicking on the canvas.")]),t("p",[e._v("8.The folded active nodes are synchronously deleted from the list of active nodes.")]),t("p",[e._v("9.Pasting text with line breaks supports controlling whether nodes are split by line breaks.")]),t("p",[e._v("10.The mini map plugin supports returning mini maps of image types.")]),t("p",[e._v("11.Only one historical record can be added within a specified time period to avoid adding unnecessary intermediate states.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Modify the method and copy to return to the root node.")]),t("p",[e._v("2.Fix the issue of ineffective first switching when switching themes in overlay mode.")]),t("p",[e._v("3.The right-click menu adds the function of inserting parent nodes and deleting only the current node.")]),t("p",[e._v("4.The top toolbar supports automatic folding into more according to the window width.")]),t("p",[e._v("5.Support manual input of zoom factor.")]),t("p",[e._v("6.Improve the English translation of the interface.")]),t("p",[e._v("7.Change the mini map to render through images.")])]),t("h2",[e._v("0.7.3-fix.2")]),t("p",[e._v("Fix some issues with collaborative editing:")]),t("p",[e._v("1.The position of the new node is incorrect when inserting peer nodes;")]),t("p",[e._v("2.Moving a position within a peer node did not trigger an update;")]),t("p",[e._v("3.The position of the mobile node inserted as a sibling node is incorrect;")]),t("h2",[e._v("0.7.3-fix.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fixed some issues where the box selection area did not disappear when multiple nodes were selected.")]),t("p",[e._v("2.Fixed an issue where the box selection area does not disappear when releasing the mouse over multiple selected nodes.")]),t("p",[e._v("3.Fixed rendering anomalies caused by duplicate node uids when pasting nodes multiple times.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Add protocol selection function to the hyperlink input box.")])]),t("h2",[e._v("0.7.3")]),t("p",[e._v("New: 1.Add a Cooperate editing plugin.")]),t("p",[e._v("Demo: 1.Fix the automatic closing of the sidebar caused by the formula sidebar component.")]),t("h2",[e._v("0.7.2")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fixed the issue of nodes not being selected when the selection area does not include node boundaries when multiple nodes are selected.")]),t("p",[e._v("2.Fix the issue of errors when node text is not a string.")]),t("p",[e._v("3.Fix the issue of some text disappearing when edited again when there are<>&characters in the text in non rich text mode.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Supports inserting mathematical formulas.")]),t("p",[e._v("2.Supports dragging and moving multiple nodes simultaneously.")]),t("p",[e._v("3.Supports copying and cutting multiple nodes simultaneously.")]),t("p",[e._v("4.The node label color has been changed to be generated based on the label content, meaning that the same label content will generate the same color.")]),t("p",[e._v("5.Optimize the insertion of child nodes: 1. When inserting child nodes into multiple nodes simultaneously, do not enter the editing state; 2. The newly inserted child node automatically enters the active state.")]),t("p",[e._v("6.Optimize the insertion of sibling nodes: 1. Support the simultaneous insertion of sibling nodes into multiple nodes; 2. When calling the command to insert sibling nodes on the root node, no child nodes will be created.")]),t("p",[e._v("7.Add a command to simultaneously insert multiple peers and multiple child nodes.")]),t("p",[e._v("8.Changing the unique identifier of nodes from id to uid mainly affects the associated lines, which may not display properly in previous versions.")]),t("p",[e._v("9.Optimize the logic of icon merging and support the expansion of icons under the internal classification of the library.")]),t("p",[e._v("10.Associate line: 1. Double click the associate line to enter associate line text editing mode; If the associated line text is the default text, it will not be saved; 3. When there are active nodes, clicking on the associated line can directly activate the associated line.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed an issue where multiple nodes in the Zhixi mind map cannot be pasted when copying.")]),t("p",[e._v("2.Add a sidebar for formula editing.")])]),t("h2",[e._v("0.7.1-fix.2")]),t("p",[e._v("Fix: 1.Fix the issue of plugin registration method chain call reporting errors.")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add a configuration option to adapt to the canvas size when the mind map is first loaded.")]),t("p",[e._v("2.Add a command to automatically generate dts declaration files.")])]),t("h2",[e._v("0.7.1-fix.1")]),t("p",[e._v("Fix: Fixed the issue of dragging nodes without excluding the child nodes of the dragged nodes.")]),t("h2",[e._v("0.7.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of unsaved associated line endpoints after changes.")]),t("p",[e._v("2.Fix the issue of abnormal canvas scrolling when moving the mouse to the edge of multiple selected nodes when the distance from the top left corner of the canvas to the browser window is not 0.")]),t("p",[e._v("3.Fix the issue of importing xmind file errors for nodes with empty titles.")]),t("p",[e._v("4.Fix the issue where the exported xmind file prompts for corruption when opened on the latest version of xmind software.")]),t("p",[e._v("5.Fix the issue where stickers cannot be displayed when exporting data with stickers in xmind format.")]),t("p",[e._v("6.Fix the issue of node right-click event reporting errors when the select plugin is not registered.")]),t("p",[e._v("7.There is no issue with removing duplicates in the method of registering plugins.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Reconstruct node drag and drop logic: optimize drag and drop difficulties in some situations, adapt to various structures, and automatically move the canvas when the mouse moves to the edge of the canvas during drag and drop.")]),t("p",[e._v("2.Reconstruct the scrollbar plugin to optimize the user experience.")]),t("p",[e._v("3.Imperfect resolution of conflicts between logical structure diagrams, mind maps, directory organization diagrams, organization chart summaries, and nodes (the summaries should be rewritten or deleted later).")]),t("p",[e._v("4.Activate adjacent nodes after deleting them.")]),t("p",[e._v("5.In node data_ The starting field is considered a custom field.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The page will display the current core library version number.")])]),t("h2",[e._v("0.7.0")]),t("p",[e._v("Breaking change: Removed the section of node activation style in the theme file, Setting the activation style of nodes is no longer supported, and the activation effect has been changed to a unified node outer border style, while also supporting the mouse hover effect.")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix rendering anomalies when the node border size is relatively large.")]),t("p",[e._v("2.Fixed an issue where the node style of the associated line will not be updated when switching themes.")]),t("p",[e._v("3.Fix that selecting all did not trigger node_ The issue with active events.")])]),t("p",[e._v("新增:")]),t("blockquote",[t("p",[e._v("1.When folding nodes, displays the number of collapsed nodes.")]),t("p",[e._v("2.Support the position of the endpoint of the associated line to follow mouse drag changes.")]),t("p",[e._v("3.Add a scrollbar plugin.")]),t("p",[e._v("4.Support opening specified online files through fileURL query parameters in URLs.")]),t("p",[e._v("5.The fishbone diagram supports setting node margins.")]),t("p",[e._v("6.By default, double-click to reset the canvas.")]),t("p",[e._v("7.Modify the parameters of the export image method, and when exporting PDF, if the size of the mind map is smaller than A4 paper, do not rotate the direction.")]),t("p",[e._v("8.Improve the clarity of exported images and PDFs on high-definition screens.")]),t("p",[e._v("9.Add a pre destruction lifecycle function to the plugin to address the issue of some side effects that were not cleared during the destruction of the mind map.")]),t("p",[e._v("10.Optimize the settings of the basic style and do not trigger full rendering when modifying theme attributes that do not affect size.")]),t("p",[e._v("11.Prohibit triggering node right-click menu events when multiple node selections are completed, to avoid triggering the right-click menu display.")]),t("p",[e._v("12.Optimize the Select plugin so that if multiple selected nodes do not change, the activation event is not triggered.")]),t("p",[e._v("13.The activation node list thrown by event node_active no longer directly references the internal activation list.")]),t("p",[e._v("14.Optimize the logic of mouse button down node events, and support dragging the canvas by holding down the root node with the right mouse button in the right-click drag and drop canvas mode.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Do not directly reference the internal activation node list to optimize performance.")]),t("p",[e._v("2.Support configuring whether to display scrollbars.")]),t("p",[e._v("3.Delete the active node configuration in the sidebar node style configuration section.")])]),t("h2",[e._v("0.6.17")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of error reporting in the xmind file exported from Baidu Brain Map.")]),t("p",[e._v("2.Fix the mindMap. export method code error.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Create index.d.ts file。")]),t("p",[e._v("2.Support configuration to enable double click reset mind map.")]),t("p",[e._v("3.Intercept paste operations during rich text editing, remove formatting, and only allow pasting pure text.")])]),t("h2",[e._v("0.6.16")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Optimize the logic of rich text measurement elements, remove duplicate settings for styles, and add duplicate nodes")]),t("p",[e._v("2.Optimize the export image logic, and when traversing the node to convert the URL of the image, if it is already in the form of data: URL, do not handle it repeatedly.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Remove the second parameter of the exported SVG method and configure it through instantiation instead.")]),t("p",[e._v("2.Export images without using external libraries.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed a bug where siblings can be added to the root node when editing the outline separately.")])]),t("h2",[e._v("0.6.15-fix.2")]),t("p",[e._v("Fix: Fixed an issue where rich text nodes cannot be displayed in Firefox browser.")]),t("h2",[e._v("0.6.15-fix.1")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Export PDF supports pagination export based on image size.")]),t("p",[e._v("2.Exporting PDF supports automatic direction adjustment based on aspect ratio.")]),t("p",[e._v("3.Optimize the placeholder elements of the expand and collapse buttons: 1. Nodes without child nodes do not render this element; 2. Dynamically update the element based on the existence of child nodes.")]),t("p",[e._v("4.Add a configuration that prohibits mouse wheel scaling.")]),t("p",[e._v("5.Supports passing error handling functions.")])]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of displaying exceptions when node text is empty.")]),t("p",[e._v("2.Change the paddingX and paddingY of exported SVG graphics to single sided padding.")]),t("p",[e._v("3.Fixed an issue where the mouse is not centered when zooming when the canvas is not 0 from the top left corner of the browser window.")]),t("p",[e._v("4.Fix the issue of overlapping node borders.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The bottom right corner supports jumping to related links.")]),t("p",[e._v("2.Adjust the position of the mini map to solve the problem of being blocked by side buttons.")]),t("p",[e._v("3.Fix the issue where the prompt in the upper right corner of the open local file cannot be closed.")]),t("p",[e._v("4.Editing the outline separately is no longer linked to the canvas, optimizing the editing experience under large data volume.")]),t("p",[e._v("5.The sidebar involves graphical options to increase visualization effects.")])]),t("h2",[e._v("0.6.14")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Remove and create hidden input boxes, and copy and paste them through navigator. clipboard; Support cross browser pasting of mind map node data; Support custom processing of text data in the clipboard.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of enabling input to automatically enter text editing mode and conflicting with other input boxes.")]),t("p",[e._v("2.Fix the issue of not being able to delete node images in the node image pop-up window.")]),t("p",[e._v("3.Fixed an issue where the text decoration line style of nodes cannot be removed in the node style sidebar.")]),t("p",[e._v("4.The color selector supports selecting transparent colors.")]),t("p",[e._v("5.Fix the issue of importing mind map data without updating the sidebar data when the basic style sidebar is open.")]),t("p",[e._v("6.Fixed the issue of not focusing when modifying the text of one node in the outline and then clicking on other nodes.")]),t("p",[e._v("7.Fixed an issue where the node and word count statistics in the bottom left corner were not updated after exiting Zen mode.")]),t("p",[e._v("8.Support deleting hyperlinks and notes of nodes from the right-click menu.")]),t("p",[e._v("9.Support pasting node data of Zhixi Mind Map.")])]),t("h2",[e._v("0.6.13")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of the inability to drag the canvas while holding down the middle mouse button on a node in read-only mode.")]),t("p",[e._v("2.Fixed the issue of probabilistic error reporting after quickly dragging nodes several times.")]),t("p",[e._v("3.Fix the issue of pulling up the input method during operations such as activating nodes on the mobile end, expanding and collapsing.")]),t("p",[e._v("4.Fix the issue where an exception request is initiated when the background image in the theme configuration is none.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Mobile gesture scaling optimization: Scale according to a linear relationship, and adjust the canvas position with double finger displacement.")]),t("p",[e._v("2.Remove the logic of asynchronous rendering nodes and improve the speed of creating new nodes.")]),t("p",[e._v("3.The export of images has been changed from the html2canvas library to the dom to image more library to address the issue of missing text styles in exporting rich text nodes.")]),t("p",[e._v("4.When a non rich text input box enters the editing state, it is deselected by default.")]),t("p",[e._v("5.When there is an activation node, it supports automatically entering text editing mode when pressing the Chinese, numeric, or English buttons.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Add anti shake operations when saving view data to optimize performance.")]),t("p",[e._v("2.Some time-consuming operations add loading effects.")]),t("p",[e._v("3.Improve the dark mode of right-click menus and rich text toolbars.")])]),t("h2",[e._v("0.6.12")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the indicator in the mini map will also move out of the mini map area when the mind map is completely moved out of the visible area.")]),t("p",[e._v("2.Fix the issue of overly sensitive dual finger scaling on the mobile end.")]),t("p",[e._v("3.Fix the issue of holding down nodes while dragging the canvas in read-only mode.")]),t("p",[e._v("4.Fix the issue of incorrect rendering of the mini map when the distance between the mind map and the top left corner of the browser window is not 0.")]),t("p",[e._v("5.Fix the issue of the prompt block being too large for the new location when moving nodes.")]),t("p",[e._v("6.Fix the issue where search cannot be replaced with empty characters.")]),t("p",[e._v("7.Fixed the issue of missing line breaks after searching and replacing in rich text mode.")]),t("p",[e._v("8.Fixed the issue of missing focus in the input box when clicking on text editing in the outline.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Adding a callback parameter to the node move end event (node_drag) can obtain the uid of the move to the node.")]),t("p",[e._v("2.Support specifying the location to which internal elements are added through configuration.")]),t("p",[e._v("3.Support the format brush function.")]),t("p",[e._v("4.Under the curve style, the connection line style of the root node supports consistency with other nodes.")]),t("p",[e._v("5.Search supports continuous replacement.")]),t("p",[e._v("6.Add and delete button for node image.")]),t("p",[e._v("7.Support dragging the canvas while holding down the middle mouse button.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Provide an application takeover mode to facilitate docking with one's own storage services; Supports setting static resource paths at runtime.")]),t("p",[e._v("2.Refactoring outline: 1. No longer use the text style that comes with the node; 2. Support full screen editing of the outline; 3. The outline supports dragging and moving nodes; 4. The outline supports deleting nodes.")]),t("p",[e._v("3.Fix the issue of interface dark mode not updating in the scenario of importing data.")])]),t("h2",[e._v("0.6.11-fix.1")]),t("p",[e._v("Fix: 1.Fixed the issue of invisible editing when node text is white.")]),t("h2",[e._v("0.6.11")]),t("p",[e._v("New: 1.Optimize the mini map, remove node content within the mini map, and optimize performance.")]),t("p",[e._v("Demo: 1.Add a new topic and add tab differentiation to the topic list. 2.Node image upload supports inputting network image addresses. 3.Node image upload supports inputting network images.")]),t("h2",[e._v("0.6.10")]),t("p",[e._v("Fix: 1.Fix the issue of deleting a node after searching for it and not updating the search results when searching again. 2.Fixed an issue where the button for adjusting image size did not update after node operation. 3.Fix the issue of incorrect internal data deep copy location. 4.Fix the issue of ineffective line wrapping in rich text nodes. 5. Fix the issue of node swapping and loss when switching themes and other scenarios.")]),t("p",[e._v("New: 1.Search supports searching for white space characters and replacing them with white space characters.")]),t("p",[e._v("Demo: 1.Support calling up search through icon buttons. 2.Support for switching to dark mode through icon buttons. 3.Optimize search: The mouse is not in the search area and not focused, solving the problem of not being able to delete input text when the mouse is not in the search area. 4.Adjust the interface UI for adding node icons and add a series of node icons. 5.Add a sticker list. 6.Fixed the issue of missing focus in the input box after entering the search box. 7.Support clicking on the icon within the node to display an icon for quick replacement and deletion of the floating panel.")]),t("h2",[e._v("0.6.9-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue of incorrect replacement after a single search.")]),t("p",[e._v("New: 1.We will no longer directly modify the incoming data object, but will make a deep copy internally.")]),t("h2",[e._v("0.6.9")]),t("p",[e._v("Fix: 1.Fixed an issue where setting styles to summary nodes would cause summary nodes to disappear. 2.Fixed the issue of node content not rendering when creating a root instance again when customizing node content. 3.Fix the issue of losing focus when adding a new node while the node is in editing. 2.Fix the issue of continuously pressing the tab key not being able to continuously create child nodes.")]),t("p",[e._v("New: 1.Replace existing "),t("code",[e._v(" ")]),e._v(" in SVG when exporting Characters to avoid exporting SVG errors. 2.Support for search and replace.")]),t("p",[e._v("Demo: 1.When switching themes, it is supported to choose whether to overwrite the set basic style.")]),t("h2",[e._v("0.6.8")]),t("p",[e._v("Fix: 1.Change the shortcut key for inserting a summary to Ctrl+G to avoid conflicts with the save shortcut key. 2.Fix the issue of abnormal switching between rich text editing configuration input boxes while nodes are being edited.")]),t("p",[e._v("New: 1.Modify the copy, cut, and paste logic, and support pasting data from the clipboard.")]),t("p",[e._v("Demo: 1.Fix the issue of not saving the outer margin of the basic style setting node. 2.Supports automatic switching to dark mode based on the theme.")]),t("h2",[e._v("0.6.7")]),t("p",[e._v("Fix: 1.Fixed the issue of missing placeholder elements for the expand and collapse button after node collapse and expansion. 2.Fixed the issue of being able to scale images in read-only mode.")]),t("p",[e._v("New: 1.Support locating to a node based on node instance or node uid. 2.Modify the creation method of node uids and export data to add node uids.")]),t("p",[e._v("Remove: 1.Remove the node transition effect.")]),t("p",[e._v("Demo: 1.Add website homepage. 2.Fixed the issue of missing node styles when creating new nodes in the outline. 3.Fixed the issue of missing edited text after pressing Enter or Tab after editing nodes in the outline. 4.Optimize the node positioning of the outline, and the collapsed nodes will automatically expand. 5.The sidebar button supports folding. 6.Optimize small screen adaptation.")]),t("h2",[e._v("0.6.6")]),t("p",[e._v("New: 1.Support exporting to Xmind new version files. 2.Importing the new version of Xmind file supports importing images from nodes. 3.Add a vertical timeline structure.")]),t("p",[e._v("Fix: 1.The TouchEvent plugin no longer sends click events, solving the problem of two windows opening when clicking on a hyperlink on the mobile end. 2.Fix the issue of dragging and moving a node to become a child node of another node, where the parent node of that node points to not being updated. 3.Fixed an issue where the node border style was not updated when dragging a second level node into a third level node. 4.Fix the issue where the mouse will not trigger the button display when moving into the unfolded or retracted button position, except for the structure growing to the right.")]),t("p",[e._v("optimization: 1.The issue of excessive amplitude when optimizing the touchpad to scale the canvas. 2.The newly created node defaults to selecting all for easy deletion of default text.")]),t("h2",[e._v("0.6.5-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue of adjusting the image size incorrectly while zooming.")]),t("h2",[e._v("0.6.5")]),t("p",[e._v("Fix: 1.Fix the issue of xmind file import errors. 2.Fixed a rare issue where line breaks occur when the width of the node text is decimal.")]),t("p",[e._v("New: 1.The packaged library supports obtaining built-in constants, themes, and other data. 2.Supports configuring the zoom behavior corresponding to the direction of the mouse wheel. 3.Node images support dragging and resizing.")]),t("h2",[e._v("0.6.4-fix.1")]),t("p",[e._v("New: 1.When zooming with the mouse wheel, the default zoom is centered around the current position of the mouse, which can be turned off by configuring.")]),t("p",[e._v("Fix: 1.Fixed an issue where the default value of the zoom center point was not updated after changing the canvas size.")]),t("h2",[e._v("0.6.4")]),t("p",[e._v("New: 1.The default is to scale at the center point of the canvas. 2.Optimize the scaling of both fingers on the mobile end, with the center position of the two fingers as the center point for scaling.")]),t("h2",[e._v("0.6.3")]),t("p",[e._v("Fix: 1.Fix the issue where the summary node will respond to inserting node shortcuts.")]),t("p",[e._v("New: 1.Support custom node content.")]),t("h2",[e._v("0.6.2")]),t("p",[e._v("Fix: 1.Fixed the problem that the new node does not change with the theme in rich Text mode.")]),t("h2",[e._v("0.6.1")]),t("p",[e._v("Fix: 1.Fixed the issue of high movement sensitivity when using the touchpad when changing mouse scrolling to moving the canvas behavior.")]),t("h2",[e._v("0.6.0-fix.1")]),t("p",[e._v("Fix: 1.Fixed the issue of destroying mind maps without setting a background style and reporting errors.")]),t("h2",[e._v("0.6.0")]),t("p",[e._v("Breaking change: Adjusted the directory structure of the simple-mind-map source code, Main impact: 1. The introduction path of the plugin needs to be modified. The constant file path needs to be modified.")]),t("p",[e._v("New: 1.Supports one click zoom to fit the canvas function. 2.Press and hold the Ctrl key to activate the multi selection function on demand through configuration. 3.Support setting to left click to select multiple nodes and right click to drag the canvas. 4. Support controlling whether nodes are allowed to be edited. 5.Add a method for destroying mind maps. 6.Added touch event support plugin.")]),t("p",[e._v("Fix: 1.Fix the issue where holding down the Ctrl key to select multiple nodes does not trigger the click event for the node. 2.Fixed the issue of node style loss when clearing a node and then entering text.")]),t("h2",[e._v("0.5.11")]),t("p",[e._v("New: Supports associative text editing.")]),t("p",[e._v("optimization: Optimizing theme configuration updates, changing configurations that do not involve node size does not trigger node recalculation.")]),t("h2",[e._v("0.5.10")]),t("p",[e._v("New: Optimize node reuse logic using LRU caching algorithm.")]),t("h2",[e._v("0.5.10-fix.1")]),t("p",[e._v("Fix: Fix the issue of import errors.")]),t("h2",[e._v("0.5.10-fix.2")]),t("p",[e._v("Fix: Fixed the issue of switching themes and importing data without triggering data changes in rich text mode.")]),t("p",[e._v("New: Add three new themes.")]),t("h2",[e._v("0.5.9")]),t("p",[e._v("Change: Unified export method format, using "),t("code",[e._v("FileReader")]),e._v(" instead of "),t("code",[e._v("URL.createObjectURL")]),e._v(" to convert "),t("code",[e._v("blob")]),e._v(" data.")]),t("h2",[e._v("0.5.8")]),t("p",[e._v("optimization: 1.The position setting is not triggered when the node position does not change. 2.The unfolding and folding status does not change and does not trigger button updates.")]),t("p",[e._v("New: 1.The default setting is to move the mouse over the node to display the expand and collapse buttons. 2.Support the list of icons that can be inserted into extended nodes.")]),t("h2",[e._v("0.5.7")]),t("p",[e._v("Breaking change:In rich text mode, exporting png has been changed to using html2canvas to convert the entire svg, greatly improving the export speed. However, html2canvas has a bug where the text color inline with the dom node in the foreignObject element cannot be recognized. Therefore, the text color of the exported node is fixed. However, compared to the previously unavailable state of the export, it can at least be exported quickly and smoothly.")]),t("p",[e._v("optimization: Optimize the rich text node editing experience.")]),t("p",[e._v("New: In rich text mode, importing data, initializing data, and switching theme scene node styles support following theme changes.")]),t("h2",[e._v("0.5.6")]),t("p",[e._v("Fix: 1.Fix the issue of node position disorder during fast and multiple renderings in a short period of time. 2.Fix the issue of dragging the canvas while the node is being edited, causing the edit box and node to separate.")]),t("p",[e._v("New: 1.Add a maximum history limit.")]),t("h2",[e._v("0.5.5-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where the edit box is also outside the canvas when editing nodes outside the canvas. 2.After modifying the structure, reset the transformation to prevent the problem of sudden position changes during the first drag after switching the structure during scaling.")]),t("p",[e._v("optimization: 1.When multiple nodes are selected, as long as there is a cross between the node and the selection area, it is considered selected.")]),t("h2",[e._v("0.5.5-fix.2")]),t("p",[e._v("Fix: 1.Fix mini map error.")]),t("h2",[e._v("0.5.5")]),t("p",[e._v("New: 1.Supports configuring the padding when exporting to PNG, SVG, or PDF. 2.Support the configuration of z-index for node text editing boxes and node comment floating layer elements. 3.Support clicking on areas outside the canvas to end node editing status.")]),t("h2",[e._v("0.5.4")]),t("p",[e._v("New: 1.Add new themes. 2.Added timeline and fishbone structure.")]),t("p",[e._v("Fix: 1.Fix the conflict issue between node right-click and canvas right-click. 2.Fix the bug that the line segment is not hidden when dragging nodes such as organizational chart and directory organization chart.")]),t("p",[e._v("optimization: 1.Optimize the layout of organizational chart. 2.Optimize the layout of the directory organization chart.")]),t("h2",[e._v("0.5.4-fix.1")]),t("p",[e._v("optimization: 1.Optimize fishbone layout.")]),t("h2",[e._v("0.5.3")]),t("p",[e._v("Fix: 1.Fixed the issue of setting the text style when multiple nodes were selected in rich text mode, which would change the text of all selected nodes to the text of the last selected node.")]),t("p",[e._v("New: 1.Support setting the position of the initial central node.")]),t("h3",[e._v("0.5.3-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where setting the position of the initial central node does not take effect.")]),t("h3",[e._v("0.5.3-fix.2")]),t("p",[e._v("Fix: 1.Fix the issue of not displaying images in nodes when exporting as images.")]),t("h2",[e._v("0.5.2")]),t("p",[e._v("Fix: 1.Remove "),t("code",[e._v("uid")]),e._v(" from exported "),t("code",[e._v("JSON")]),e._v(" data; 2.Clear the node cache pool when re rendering.")]),t("h2",[e._v("0.5.1")]),t("p",[e._v("optimization: 1.Only respond to shortcut key events when the mouse is inside the canvas")]),t("p",[e._v("Fix: 1.Fix the issue of incorrect node position during fast operation")]),t("h2",[e._v("0.5.0")]),t("p",[e._v("This version is mainly about code level changes and optimization, with the core goal of improving rendering performance and reducing stuck issues.")]),t("p",[e._v("New: 1.Support custom expansion and collapse node icons and colors;")]),t("p",[e._v("optimization: 1.Optimize rendering logic, set the theme, move forward and backward, and other operations no longer require full rendering;")]),t("pre",[t("code",[e._v(" 2.Optimize node drag logic, and fix the problem of being unable to drag between two nodes;\n\n 3.Collapse all nodes adds logic to return to the center point;\n\n 4.Fix the problem of nodes flying and scrambling caused by triggering rendering multiple times in a short time;\n\n 5.Optimize the experience of node editing;\n")])]),t("p",[e._v("Fix: 1.Fix the issue where the setData method does not trigger history;")]),t("p",[e._v("modify: Starting from version 0.5.0, considering performance issues, the node activation state can only modify shape related styles:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("[\n "),t("span",{staticClass:"hljs-string"},[e._v("'fillColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderWidth'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderDasharray'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderRadius'")]),e._v("\n]\n")])]),t("h2",[e._v("0.4.7")]),t("p",[e._v("optimization: 1.During rich text editing, when initially focusing, all are no longer selected by default; 2.When editing rich text, use the node fill color as the background color to avoid being invisible when the node color is white. 3.Node activation state switching no longer triggers history. 4.Triggering history multiple times in a short time will only add the last data. 5.Optimize the addition of historical records. When there is a rollback, delete the historical data after the current pointer when adding a new record again.")]),t("p",[e._v("New: 1.Support for importing and exporting Markdown format files. 2.Support for configuring initial text when inserting nodes. 3.Expand the commands for inserting and deleting nodes to support specifying nodes.")]),t("h2",[e._v("0.4.6")]),t("p",[e._v("New: 1.Associated lines support adjusting control points.")]),t("p",[e._v("optimization: 1.When adding historical data, filter data that has not changed compared to the previous time.")]),t("p",[e._v("Fix: 1.Fixed a conflict between the direction keys and the navigation function of the direction keys during node editing. 2.Fixed the issue of node id loss when dragging a mobile node, which can cause associated lines to be lost.")]),t("h2",[e._v("0.4.5")]),t("p",[e._v("New: 1.Supports associative lines. 2.You can also drag the canvas by holding down the root node. 3. Hold down the ctrl key to adjust multiple selected nodes.")]),t("h2",[e._v("0.4.4")]),t("p",[e._v("New: Support horizontal scrolling in response to the mouse.")]),t("h2",[e._v("0.4.3")]),t("p",[e._v("Fix: No trigger after forward and backward "),t("code",[e._v("data_ Change")]),e._v(" event.")]),t("p",[e._v("New: Support user-defined mouse wheel events; The mouse wheel is adjusted to support zooming and moving the view up and down.")]),t("h2",[e._v("0.4.2")]),t("p",[e._v("New: The "),t("code",[e._v("setText")]),e._v(" method of the Node class adds a second parameter to support setting rich text content.")]),t("h2",[e._v("0.4.1")]),t("p",[e._v("New: 1.Add and throw node mouseenter and mouseleave events; 2.Node rich text supports setting background color; 3.Node rich text supports clear style.")]),t("p",[e._v("Fix: 1.Mac system touchpad scaling is the opposite problem; 2.When the device window.devicePixelRatio is not 1, the size of the rich text node in the exported image will become larger when there are rich text nodes.")]),t("h2",[e._v("0.4.0")]),t("p",[e._v("New: The node supports rich text editing.")]),t("h2",[e._v("0.3.4")]),t("p",[e._v("New: Automatic line wrapping function is added to node text.")]),t("p",[e._v("Fix: 1.Fix the problem of deletion exceptions if there are root nodes in the batch deleted nodes. 2.Fix the problem that high node height will overlap with other nodes in the case of bottom edge style.")]),t("h2",[e._v("0.3.3")]),t("p",[e._v("Fix: The root node text cannot wrap.")]),t("h2",[e._v("0.3.2")]),t("p",[e._v("Fix: 1.Fix the problem that the node style is not updated when the secondary node is dragged to other nodes or other nodes are dragged to the secondary node; 2.Fix the problem that when the actual content of the mind map is larger than the screen width and height, the excess part is not watermarked when exporting.")]),t("h2",[e._v("0.3.1")]),t("p",[e._v("Fix: 1.The problem that deleting the background image does not take effect; 2.The problem that the connector runs above the root node when the node is dragged to the root node.")]),t("p",[e._v("New: Add position and size settings for background image display. This setting is also supported for exported pictures.")]),t("h2",[e._v("0.3.0")]),t("p",[e._v("Upgrade to plugin architecture, pull out some non-core functions as plugins, register as needed, and reduce the overall volume.")]),t("h2",[e._v("0.2.24")]),t("p",[e._v("New: Node free drag is changed to configurable, the default is "),t("code",[e._v("false")]),e._v(", not open; Support add watermark.")]),t("h2",[e._v("0.2.23")]),t("p",[e._v("New: Support register new theme.")]),t("h2",[e._v("0.2.22")]),t("p",[e._v("optimization:The theme and structure pictures of the built-in "),t("code",[e._v("simple-mind-map")]),e._v(" package are removed and replaced by user self-maintenance. The original pictures can be found in the "),t("code",[e._v("web/assets/img/")]),e._v(" directory.")]),t("h2",[e._v("0.2.21")]),t("p",[e._v("New: Support node horizontal line style.")]),t("h2",[e._v("0.2.20")]),t("p",[e._v("fix:When the distance from the canvas to the upper left corner of the window is not 0, the node dragging will have an offset problem.")]),t("h2",[e._v("0.2.19")]),t("p",[e._v("fix:When the node is not activated, pressing any key will trigger the problem of automatic focus.")]),t("h2",[e._v("0.2.18")]),t("p",[e._v("optimization:Keyboard navigation algorithm for finding focus, supporting simple algorithm, region algorithm and shadow algorithm.")]),t("h2",[e._v("0.2.17")]),t("p",[e._v("New:Keyboard navigation, that is, switch the active nodes through the direction keys; The node text content can be edited directly in the outline.")]),t("h2",[e._v("0.2.16")]),t("p",[e._v("optimization:Mini map; drag performance.")]),t("h2",[e._v("0.2.15")]),t("p",[e._v("optimization:Local file editing.")]),t("p",[e._v("New:Double-click the image in the node to preview the large image.")]),t("h2",[e._v("0.2.14")]),t("p",[e._v("optimization:Automatically expand when inserting child nodes.")]),t("p",[e._v("fix:The error occurred when the mini map was closed.")]),t("h2",[e._v("0.2.13")]),t("p",[e._v("fix:The child node is missing when collapsing state replication.")]),t("h2",[e._v("0.2.11")]),t("p",[e._v("fix:Fix the problem that is lost when the child node collapses state replication.")]),t("p",[e._v("New:Support mini map.")]),t("h2",[e._v("0.2.10")]),t("p",[e._v("optimization:Focus immediately when you manually create a node.")]),t("p",[e._v("fix:Connection style depth update problem.")]),t("p",[e._v("New:Logical structure diagram and mind map add linear connection style and direct connection style.")]),t("h2",[e._v("0.2.9")]),t("p",[e._v("New:Support the creation, opening and saving of local files on the computer.")]),t("h2",[e._v("0.2.8")]),t("p",[e._v("fix:Xmind8 version file import failed.")]),t("p",[e._v("New:Expanding to the specified level is supported.")]),t("h2",[e._v("0.2.7")]),t("p",[e._v("fix:The root node adds multiple nodes to burst the stack.")]),t("p",[e._v("New:Support import .xmind file.")]),t("h2",[e._v("0.2.6")]),t("p",[e._v("New:The title tag is added when exporting svg.")]),t("h2",[e._v("0.2.5")]),t("p",[e._v("fix:Bugs caused by node expansion and collapse.")]),t("p",[e._v("New:Node supports custom line styles.")]),t("h2",[e._v("0.2.4")]),t("p",[e._v("New:Nodes support multiple shapes.")]),t("h2",[e._v("0.2.3")]),t("p",[e._v("fix:Shortcut key conflicts when editing node text; Right-click menu shortcut prompt error; Right-click menu shortcut prompt.")]),t("h2",[e._v("0.2.2")]),t("p",[e._v("fix:The input string '/' conflicts with the shortcut key '/'.")]),t("h2",[e._v("0.2.1")]),t("p",[e._v("New:Support export as pdf.")]),t("h2",[e._v("0.2.0")]),t("p",[e._v("New:Classic4 theme;Support adding summary; Support free drag; Move Node Up, Move Node Down, Copy Node, Cut Node, Paste Node, One-click Organize Cloth Shortcut; Library packaging; Ctrl+left click to select multiple.")]),t("h2",[e._v("0.1.18")]),t("p",[e._v("fix:The problem that the node icon cannot be deleted; The tool button is grayed out and can still be clicked.")]),t("h2",[e._v("0.1.17")]),t("p",[e._v("New:Add read-only mode.")]),t("h2",[e._v("0.1.16")]),t("p",[e._v("New:Node notes support markdown and rich text.")]),t("p",[e._v("fix:Can't select text; Node annotations cannot hide problems after node activation; When editing text such as hyperlinks, notes, labels, etc., the return key and return key conflict with the shortcut key of mind map.")]),t("h2",[e._v("0.1.15")]),t("p",[e._v("New:The status data supports saving the active status and view status (drag position, zoom value);Support node drag.")]),t("h2",[e._v("0.1.14")]),t("p",[e._v("fix:There are problems with setting topics when activating nodes.")]),t("h2",[e._v("0.1.13")]),t("p",[e._v("New:Shortcut key function; Support export as json。")]),t("p",[e._v("optimization:Some details.")]),t("h2",[e._v("0.1.12")]),t("p",[e._v("New:Local storage;Right-click menu function, etc.")]),t("h2",[e._v("0.1.0")]),t("p",[e._v("Complete basic functions.")])])}],s={},a=s,r=i("2877"),d=Object(r["a"])(a,o,n,!1,null,null,null);t["default"]=d.exports}}]); \ No newline at end of file +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d208ffa"],{a6d3:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this;e._self._c;return e._m(0)},n=[function(){var e=this,t=e._self._c;return t("div",[t("h1",[e._v("Changelog")]),t("h2",[e._v("0.9.1-fix.2")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where some browsers display default text when node text is empty.")]),t("p",[e._v("2.Fix the issue of text style loss when inputting text again when the node text content is empty.")]),t("p",[e._v("3.Fix the issue where exporting images also fails when node image loading fails.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Support configuring the default image displayed when node image loading fails.")])]),t("h2",[e._v("0.9.1-fix.1")]),t("p",[e._v("Fix:")]),t("p",[e._v("1.Fix the issue of custom node methods reporting null errors.")]),t("p",[e._v("2.Fix the issue of large volume of exported PDF files.")]),t("h2",[e._v("0.9.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of exporting images, SVGs, and PDFs with errors when customizing node content.")]),t("p",[e._v("2.Optimize the distribution of node activation events, do not distribute events when the activation node has not changed, and skip intermediate events when distributing multiple events in a short period of time.")]),t("p",[e._v("3.Fix the issue where the edit box and node detach when scrolling the canvas with the mouse while the node is in editing mode.")]),t("p",[e._v("4.Fix the issue of shortcut keys becoming invalid when zooming the canvas with the mouse wheel and then exiting node editing while in node editing mode.")]),t("p",[e._v("5.Fix the issue where clicking on a node can also trigger node_dragend event.")]),t("p",[e._v("6.Fix that clicking on the canvas and nodes while not in the format brush will also trigger the painter_end event.")]),t("p",[e._v("7.Fixed the issue where the mind map text editing box was not destroyed during node text editing and associated line text editing.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.When holding down the Ctrl key, disable the node double-click event.")]),t("p",[e._v("2.Support configuring the behavior when creating new nodes: focusing and entering editing, not focusing, only focusing.")]),t("p",[e._v("3.When searching in read-only mode, add a highlight effect to the currently matched node.")]),t("p",[e._v("4.The default behavior of the mouse scroll wheel is to move the canvas up and down; The default is to scroll forward to enlarge the canvas and zoom back.")]),t("p",[e._v("5.When the mouse scroll wheel behavior is to move the canvas up and down, it supports holding down the Ctrl key to zoom in and out of the canvas.")])]),t("p",[e._v("Demo:支持配置创建新节点时的行为。")]),t("h2",[e._v("0.9.0")]),t("p",[e._v("New:")]),t("p",[e._v("1.Support adding summaries to some child nodes of the same node.")]),t("p",[e._v("2.Moving the mouse into the summary will highlight its node.")]),t("p",[e._v("3.Importing and exporting xmind files supports processing profiles.")]),t("h2",[e._v("0.8.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the activation status of the summary node in the history data has not been deleted, which can cause data to be triggered when clicking on the summary node_ Change event.")]),t("p",[e._v("2.Fix the issue of blank pages and exceptions thrown by the console when running in Safari browser.")]),t("p",[e._v("3.Fixed the issue of icon floating layer and note floating layer detached from nodes when scaling the canvas.")]),t("p",[e._v("4.Fixed the issue of selecting all nodes in read-only mode.")]),t("p",[e._v("5.Fix the presence of node content has   in rich text mode; Error exporting as image.")]),t("p",[e._v("6.Fixed the issue of overlapping profiles when adding profiles to oneself first and then to subordinates; Fix the issue of overlapping profiles when adding profiles to nodes with hierarchical relationships at the same time.")]),t("p",[e._v("7.Fix the issue of exporting PDF errors when there are many nodes.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add a configuration option that prohibits dragging the canvas.")]),t("p",[e._v("2.Add a configuration option to prohibit double finger scaling of the canvas.")]),t("p",[e._v("3.Add compression parameters to the method of exporting PNG; Optimize the problem of excessive volume when exporting PDF from nodes with large amounts of data.")]),t("p",[e._v("4.Rename the isParent method of the node instance to isAncestor and add the isParent method at the same time.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed the issue of being able to search for replacement and edit outlines in read-only mode.")]),t("p",[e._v("2.Fix the issue where the outline cannot be displayed and edited when the node content is an HTML tag.")]),t("p",[e._v("3.Fix the issue where when multiple nodes are selected and icons are added at the same time, all node icons will be unified as the icon of the first node.")]),t("p",[e._v("4.Adding loading to the export operation.")])]),t("h2",[e._v("0.8.0-fix.1")]),t("p",[e._v("Fix: Fixed the issue of creating a new node using direct paste if the pasted content contains HTML label symbols such as <> and the newly created node content is empty.")]),t("h2",[e._v("0.8.0")]),t("p",[e._v("Breaking change: Greatly optimize some of the code and slightly improve performance, mainly by using the 'render' class to remove useless logic, adjust unreasonable implementations, and extract duplicate code; Modify function names, functions, etc.")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of the arrow of the associated line disappearing when exporting images and SVGs.")]),t("p",[e._v("2.Fix the issue of abnormal operation returning to the root node after resizing the container.")]),t("p",[e._v("3.Fix that the shortcut key operations for inserting summary, moving up, down, and organizing layout with one click did not trigger data_ The issue with the change event.")]),t("p",[e._v("4.Fix the issue of each node displaying a border when exporting images, SVGs, and PDFs with watermarks.")]),t("p",[e._v("5.Fixed the issue of no watermarks and no redrawing after the container size was changed.")]),t("p",[e._v("6.Fix the issue of slow rendering of mini maps with watermarks.")]),t("p",[e._v("7.Fixed the issue where the collaboration plugin did not display the creator's avatar when creating a new node.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Optimize the canvas DOM structure and render nodes, lines, and associated lines in layers.")]),t("p",[e._v("2.Optimize the watermark plugin.")]),t("p",[e._v("3.The setTheme, setThemeConfig, and setLayout functions add parameters that do not trigger re rendering.")]),t("p",[e._v("4.Add a command to insert a parent node.")]),t("p",[e._v("5.Add a command to only delete the current node.")]),t("p",[e._v("6.Automatically expand child nodes when inserting a summary.")]),t("p",[e._v("7.Clear the current active node when right-clicking on the canvas.")]),t("p",[e._v("8.The folded active nodes are synchronously deleted from the list of active nodes.")]),t("p",[e._v("9.Pasting text with line breaks supports controlling whether nodes are split by line breaks.")]),t("p",[e._v("10.The mini map plugin supports returning mini maps of image types.")]),t("p",[e._v("11.Only one historical record can be added within a specified time period to avoid adding unnecessary intermediate states.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Modify the method and copy to return to the root node.")]),t("p",[e._v("2.Fix the issue of ineffective first switching when switching themes in overlay mode.")]),t("p",[e._v("3.The right-click menu adds the function of inserting parent nodes and deleting only the current node.")]),t("p",[e._v("4.The top toolbar supports automatic folding into more according to the window width.")]),t("p",[e._v("5.Support manual input of zoom factor.")]),t("p",[e._v("6.Improve the English translation of the interface.")]),t("p",[e._v("7.Change the mini map to render through images.")])]),t("h2",[e._v("0.7.3-fix.2")]),t("p",[e._v("Fix some issues with collaborative editing:")]),t("p",[e._v("1.The position of the new node is incorrect when inserting peer nodes;")]),t("p",[e._v("2.Moving a position within a peer node did not trigger an update;")]),t("p",[e._v("3.The position of the mobile node inserted as a sibling node is incorrect;")]),t("h2",[e._v("0.7.3-fix.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fixed some issues where the box selection area did not disappear when multiple nodes were selected.")]),t("p",[e._v("2.Fixed an issue where the box selection area does not disappear when releasing the mouse over multiple selected nodes.")]),t("p",[e._v("3.Fixed rendering anomalies caused by duplicate node uids when pasting nodes multiple times.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Add protocol selection function to the hyperlink input box.")])]),t("h2",[e._v("0.7.3")]),t("p",[e._v("New: 1.Add a Cooperate editing plugin.")]),t("p",[e._v("Demo: 1.Fix the automatic closing of the sidebar caused by the formula sidebar component.")]),t("h2",[e._v("0.7.2")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fixed the issue of nodes not being selected when the selection area does not include node boundaries when multiple nodes are selected.")]),t("p",[e._v("2.Fix the issue of errors when node text is not a string.")]),t("p",[e._v("3.Fix the issue of some text disappearing when edited again when there are<>&characters in the text in non rich text mode.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Supports inserting mathematical formulas.")]),t("p",[e._v("2.Supports dragging and moving multiple nodes simultaneously.")]),t("p",[e._v("3.Supports copying and cutting multiple nodes simultaneously.")]),t("p",[e._v("4.The node label color has been changed to be generated based on the label content, meaning that the same label content will generate the same color.")]),t("p",[e._v("5.Optimize the insertion of child nodes: 1. When inserting child nodes into multiple nodes simultaneously, do not enter the editing state; 2. The newly inserted child node automatically enters the active state.")]),t("p",[e._v("6.Optimize the insertion of sibling nodes: 1. Support the simultaneous insertion of sibling nodes into multiple nodes; 2. When calling the command to insert sibling nodes on the root node, no child nodes will be created.")]),t("p",[e._v("7.Add a command to simultaneously insert multiple peers and multiple child nodes.")]),t("p",[e._v("8.Changing the unique identifier of nodes from id to uid mainly affects the associated lines, which may not display properly in previous versions.")]),t("p",[e._v("9.Optimize the logic of icon merging and support the expansion of icons under the internal classification of the library.")]),t("p",[e._v("10.Associate line: 1. Double click the associate line to enter associate line text editing mode; If the associated line text is the default text, it will not be saved; 3. When there are active nodes, clicking on the associated line can directly activate the associated line.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed an issue where multiple nodes in the Zhixi mind map cannot be pasted when copying.")]),t("p",[e._v("2.Add a sidebar for formula editing.")])]),t("h2",[e._v("0.7.1-fix.2")]),t("p",[e._v("Fix: 1.Fix the issue of plugin registration method chain call reporting errors.")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Add a configuration option to adapt to the canvas size when the mind map is first loaded.")]),t("p",[e._v("2.Add a command to automatically generate dts declaration files.")])]),t("h2",[e._v("0.7.1-fix.1")]),t("p",[e._v("Fix: Fixed the issue of dragging nodes without excluding the child nodes of the dragged nodes.")]),t("h2",[e._v("0.7.1")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of unsaved associated line endpoints after changes.")]),t("p",[e._v("2.Fix the issue of abnormal canvas scrolling when moving the mouse to the edge of multiple selected nodes when the distance from the top left corner of the canvas to the browser window is not 0.")]),t("p",[e._v("3.Fix the issue of importing xmind file errors for nodes with empty titles.")]),t("p",[e._v("4.Fix the issue where the exported xmind file prompts for corruption when opened on the latest version of xmind software.")]),t("p",[e._v("5.Fix the issue where stickers cannot be displayed when exporting data with stickers in xmind format.")]),t("p",[e._v("6.Fix the issue of node right-click event reporting errors when the select plugin is not registered.")]),t("p",[e._v("7.There is no issue with removing duplicates in the method of registering plugins.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Reconstruct node drag and drop logic: optimize drag and drop difficulties in some situations, adapt to various structures, and automatically move the canvas when the mouse moves to the edge of the canvas during drag and drop.")]),t("p",[e._v("2.Reconstruct the scrollbar plugin to optimize the user experience.")]),t("p",[e._v("3.Imperfect resolution of conflicts between logical structure diagrams, mind maps, directory organization diagrams, organization chart summaries, and nodes (the summaries should be rewritten or deleted later).")]),t("p",[e._v("4.Activate adjacent nodes after deleting them.")]),t("p",[e._v("5.In node data_ The starting field is considered a custom field.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The page will display the current core library version number.")])]),t("h2",[e._v("0.7.0")]),t("p",[e._v("Breaking change: Removed the section of node activation style in the theme file, Setting the activation style of nodes is no longer supported, and the activation effect has been changed to a unified node outer border style, while also supporting the mouse hover effect.")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix rendering anomalies when the node border size is relatively large.")]),t("p",[e._v("2.Fixed an issue where the node style of the associated line will not be updated when switching themes.")]),t("p",[e._v("3.Fix that selecting all did not trigger node_ The issue with active events.")])]),t("p",[e._v("新增:")]),t("blockquote",[t("p",[e._v("1.When folding nodes, displays the number of collapsed nodes.")]),t("p",[e._v("2.Support the position of the endpoint of the associated line to follow mouse drag changes.")]),t("p",[e._v("3.Add a scrollbar plugin.")]),t("p",[e._v("4.Support opening specified online files through fileURL query parameters in URLs.")]),t("p",[e._v("5.The fishbone diagram supports setting node margins.")]),t("p",[e._v("6.By default, double-click to reset the canvas.")]),t("p",[e._v("7.Modify the parameters of the export image method, and when exporting PDF, if the size of the mind map is smaller than A4 paper, do not rotate the direction.")]),t("p",[e._v("8.Improve the clarity of exported images and PDFs on high-definition screens.")]),t("p",[e._v("9.Add a pre destruction lifecycle function to the plugin to address the issue of some side effects that were not cleared during the destruction of the mind map.")]),t("p",[e._v("10.Optimize the settings of the basic style and do not trigger full rendering when modifying theme attributes that do not affect size.")]),t("p",[e._v("11.Prohibit triggering node right-click menu events when multiple node selections are completed, to avoid triggering the right-click menu display.")]),t("p",[e._v("12.Optimize the Select plugin so that if multiple selected nodes do not change, the activation event is not triggered.")]),t("p",[e._v("13.The activation node list thrown by event node_active no longer directly references the internal activation list.")]),t("p",[e._v("14.Optimize the logic of mouse button down node events, and support dragging the canvas by holding down the root node with the right mouse button in the right-click drag and drop canvas mode.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Do not directly reference the internal activation node list to optimize performance.")]),t("p",[e._v("2.Support configuring whether to display scrollbars.")]),t("p",[e._v("3.Delete the active node configuration in the sidebar node style configuration section.")])]),t("h2",[e._v("0.6.17")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of error reporting in the xmind file exported from Baidu Brain Map.")]),t("p",[e._v("2.Fix the mindMap. export method code error.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Create index.d.ts file。")]),t("p",[e._v("2.Support configuration to enable double click reset mind map.")]),t("p",[e._v("3.Intercept paste operations during rich text editing, remove formatting, and only allow pasting pure text.")])]),t("h2",[e._v("0.6.16")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Optimize the logic of rich text measurement elements, remove duplicate settings for styles, and add duplicate nodes")]),t("p",[e._v("2.Optimize the export image logic, and when traversing the node to convert the URL of the image, if it is already in the form of data: URL, do not handle it repeatedly.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Remove the second parameter of the exported SVG method and configure it through instantiation instead.")]),t("p",[e._v("2.Export images without using external libraries.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fixed a bug where siblings can be added to the root node when editing the outline separately.")])]),t("h2",[e._v("0.6.15-fix.2")]),t("p",[e._v("Fix: Fixed an issue where rich text nodes cannot be displayed in Firefox browser.")]),t("h2",[e._v("0.6.15-fix.1")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Export PDF supports pagination export based on image size.")]),t("p",[e._v("2.Exporting PDF supports automatic direction adjustment based on aspect ratio.")]),t("p",[e._v("3.Optimize the placeholder elements of the expand and collapse buttons: 1. Nodes without child nodes do not render this element; 2. Dynamically update the element based on the existence of child nodes.")]),t("p",[e._v("4.Add a configuration that prohibits mouse wheel scaling.")]),t("p",[e._v("5.Supports passing error handling functions.")])]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of displaying exceptions when node text is empty.")]),t("p",[e._v("2.Change the paddingX and paddingY of exported SVG graphics to single sided padding.")]),t("p",[e._v("3.Fixed an issue where the mouse is not centered when zooming when the canvas is not 0 from the top left corner of the browser window.")]),t("p",[e._v("4.Fix the issue of overlapping node borders.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.The bottom right corner supports jumping to related links.")]),t("p",[e._v("2.Adjust the position of the mini map to solve the problem of being blocked by side buttons.")]),t("p",[e._v("3.Fix the issue where the prompt in the upper right corner of the open local file cannot be closed.")]),t("p",[e._v("4.Editing the outline separately is no longer linked to the canvas, optimizing the editing experience under large data volume.")]),t("p",[e._v("5.The sidebar involves graphical options to increase visualization effects.")])]),t("h2",[e._v("0.6.14")]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Remove and create hidden input boxes, and copy and paste them through navigator. clipboard; Support cross browser pasting of mind map node data; Support custom processing of text data in the clipboard.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of enabling input to automatically enter text editing mode and conflicting with other input boxes.")]),t("p",[e._v("2.Fix the issue of not being able to delete node images in the node image pop-up window.")]),t("p",[e._v("3.Fixed an issue where the text decoration line style of nodes cannot be removed in the node style sidebar.")]),t("p",[e._v("4.The color selector supports selecting transparent colors.")]),t("p",[e._v("5.Fix the issue of importing mind map data without updating the sidebar data when the basic style sidebar is open.")]),t("p",[e._v("6.Fixed the issue of not focusing when modifying the text of one node in the outline and then clicking on other nodes.")]),t("p",[e._v("7.Fixed an issue where the node and word count statistics in the bottom left corner were not updated after exiting Zen mode.")]),t("p",[e._v("8.Support deleting hyperlinks and notes of nodes from the right-click menu.")]),t("p",[e._v("9.Support pasting node data of Zhixi Mind Map.")])]),t("h2",[e._v("0.6.13")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue of the inability to drag the canvas while holding down the middle mouse button on a node in read-only mode.")]),t("p",[e._v("2.Fixed the issue of probabilistic error reporting after quickly dragging nodes several times.")]),t("p",[e._v("3.Fix the issue of pulling up the input method during operations such as activating nodes on the mobile end, expanding and collapsing.")]),t("p",[e._v("4.Fix the issue where an exception request is initiated when the background image in the theme configuration is none.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Mobile gesture scaling optimization: Scale according to a linear relationship, and adjust the canvas position with double finger displacement.")]),t("p",[e._v("2.Remove the logic of asynchronous rendering nodes and improve the speed of creating new nodes.")]),t("p",[e._v("3.The export of images has been changed from the html2canvas library to the dom to image more library to address the issue of missing text styles in exporting rich text nodes.")]),t("p",[e._v("4.When a non rich text input box enters the editing state, it is deselected by default.")]),t("p",[e._v("5.When there is an activation node, it supports automatically entering text editing mode when pressing the Chinese, numeric, or English buttons.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Add anti shake operations when saving view data to optimize performance.")]),t("p",[e._v("2.Some time-consuming operations add loading effects.")]),t("p",[e._v("3.Improve the dark mode of right-click menus and rich text toolbars.")])]),t("h2",[e._v("0.6.12")]),t("p",[e._v("Fix:")]),t("blockquote",[t("p",[e._v("1.Fix the issue where the indicator in the mini map will also move out of the mini map area when the mind map is completely moved out of the visible area.")]),t("p",[e._v("2.Fix the issue of overly sensitive dual finger scaling on the mobile end.")]),t("p",[e._v("3.Fix the issue of holding down nodes while dragging the canvas in read-only mode.")]),t("p",[e._v("4.Fix the issue of incorrect rendering of the mini map when the distance between the mind map and the top left corner of the browser window is not 0.")]),t("p",[e._v("5.Fix the issue of the prompt block being too large for the new location when moving nodes.")]),t("p",[e._v("6.Fix the issue where search cannot be replaced with empty characters.")]),t("p",[e._v("7.Fixed the issue of missing line breaks after searching and replacing in rich text mode.")]),t("p",[e._v("8.Fixed the issue of missing focus in the input box when clicking on text editing in the outline.")])]),t("p",[e._v("New:")]),t("blockquote",[t("p",[e._v("1.Adding a callback parameter to the node move end event (node_drag) can obtain the uid of the move to the node.")]),t("p",[e._v("2.Support specifying the location to which internal elements are added through configuration.")]),t("p",[e._v("3.Support the format brush function.")]),t("p",[e._v("4.Under the curve style, the connection line style of the root node supports consistency with other nodes.")]),t("p",[e._v("5.Search supports continuous replacement.")]),t("p",[e._v("6.Add and delete button for node image.")]),t("p",[e._v("7.Support dragging the canvas while holding down the middle mouse button.")])]),t("p",[e._v("Demo:")]),t("blockquote",[t("p",[e._v("1.Provide an application takeover mode to facilitate docking with one's own storage services; Supports setting static resource paths at runtime.")]),t("p",[e._v("2.Refactoring outline: 1. No longer use the text style that comes with the node; 2. Support full screen editing of the outline; 3. The outline supports dragging and moving nodes; 4. The outline supports deleting nodes.")]),t("p",[e._v("3.Fix the issue of interface dark mode not updating in the scenario of importing data.")])]),t("h2",[e._v("0.6.11-fix.1")]),t("p",[e._v("Fix: 1.Fixed the issue of invisible editing when node text is white.")]),t("h2",[e._v("0.6.11")]),t("p",[e._v("New: 1.Optimize the mini map, remove node content within the mini map, and optimize performance.")]),t("p",[e._v("Demo: 1.Add a new topic and add tab differentiation to the topic list. 2.Node image upload supports inputting network image addresses. 3.Node image upload supports inputting network images.")]),t("h2",[e._v("0.6.10")]),t("p",[e._v("Fix: 1.Fix the issue of deleting a node after searching for it and not updating the search results when searching again. 2.Fixed an issue where the button for adjusting image size did not update after node operation. 3.Fix the issue of incorrect internal data deep copy location. 4.Fix the issue of ineffective line wrapping in rich text nodes. 5. Fix the issue of node swapping and loss when switching themes and other scenarios.")]),t("p",[e._v("New: 1.Search supports searching for white space characters and replacing them with white space characters.")]),t("p",[e._v("Demo: 1.Support calling up search through icon buttons. 2.Support for switching to dark mode through icon buttons. 3.Optimize search: The mouse is not in the search area and not focused, solving the problem of not being able to delete input text when the mouse is not in the search area. 4.Adjust the interface UI for adding node icons and add a series of node icons. 5.Add a sticker list. 6.Fixed the issue of missing focus in the input box after entering the search box. 7.Support clicking on the icon within the node to display an icon for quick replacement and deletion of the floating panel.")]),t("h2",[e._v("0.6.9-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue of incorrect replacement after a single search.")]),t("p",[e._v("New: 1.We will no longer directly modify the incoming data object, but will make a deep copy internally.")]),t("h2",[e._v("0.6.9")]),t("p",[e._v("Fix: 1.Fixed an issue where setting styles to summary nodes would cause summary nodes to disappear. 2.Fixed the issue of node content not rendering when creating a root instance again when customizing node content. 3.Fix the issue of losing focus when adding a new node while the node is in editing. 2.Fix the issue of continuously pressing the tab key not being able to continuously create child nodes.")]),t("p",[e._v("New: 1.Replace existing "),t("code",[e._v(" ")]),e._v(" in SVG when exporting Characters to avoid exporting SVG errors. 2.Support for search and replace.")]),t("p",[e._v("Demo: 1.When switching themes, it is supported to choose whether to overwrite the set basic style.")]),t("h2",[e._v("0.6.8")]),t("p",[e._v("Fix: 1.Change the shortcut key for inserting a summary to Ctrl+G to avoid conflicts with the save shortcut key. 2.Fix the issue of abnormal switching between rich text editing configuration input boxes while nodes are being edited.")]),t("p",[e._v("New: 1.Modify the copy, cut, and paste logic, and support pasting data from the clipboard.")]),t("p",[e._v("Demo: 1.Fix the issue of not saving the outer margin of the basic style setting node. 2.Supports automatic switching to dark mode based on the theme.")]),t("h2",[e._v("0.6.7")]),t("p",[e._v("Fix: 1.Fixed the issue of missing placeholder elements for the expand and collapse button after node collapse and expansion. 2.Fixed the issue of being able to scale images in read-only mode.")]),t("p",[e._v("New: 1.Support locating to a node based on node instance or node uid. 2.Modify the creation method of node uids and export data to add node uids.")]),t("p",[e._v("Remove: 1.Remove the node transition effect.")]),t("p",[e._v("Demo: 1.Add website homepage. 2.Fixed the issue of missing node styles when creating new nodes in the outline. 3.Fixed the issue of missing edited text after pressing Enter or Tab after editing nodes in the outline. 4.Optimize the node positioning of the outline, and the collapsed nodes will automatically expand. 5.The sidebar button supports folding. 6.Optimize small screen adaptation.")]),t("h2",[e._v("0.6.6")]),t("p",[e._v("New: 1.Support exporting to Xmind new version files. 2.Importing the new version of Xmind file supports importing images from nodes. 3.Add a vertical timeline structure.")]),t("p",[e._v("Fix: 1.The TouchEvent plugin no longer sends click events, solving the problem of two windows opening when clicking on a hyperlink on the mobile end. 2.Fix the issue of dragging and moving a node to become a child node of another node, where the parent node of that node points to not being updated. 3.Fixed an issue where the node border style was not updated when dragging a second level node into a third level node. 4.Fix the issue where the mouse will not trigger the button display when moving into the unfolded or retracted button position, except for the structure growing to the right.")]),t("p",[e._v("optimization: 1.The issue of excessive amplitude when optimizing the touchpad to scale the canvas. 2.The newly created node defaults to selecting all for easy deletion of default text.")]),t("h2",[e._v("0.6.5-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue of adjusting the image size incorrectly while zooming.")]),t("h2",[e._v("0.6.5")]),t("p",[e._v("Fix: 1.Fix the issue of xmind file import errors. 2.Fixed a rare issue where line breaks occur when the width of the node text is decimal.")]),t("p",[e._v("New: 1.The packaged library supports obtaining built-in constants, themes, and other data. 2.Supports configuring the zoom behavior corresponding to the direction of the mouse wheel. 3.Node images support dragging and resizing.")]),t("h2",[e._v("0.6.4-fix.1")]),t("p",[e._v("New: 1.When zooming with the mouse wheel, the default zoom is centered around the current position of the mouse, which can be turned off by configuring.")]),t("p",[e._v("Fix: 1.Fixed an issue where the default value of the zoom center point was not updated after changing the canvas size.")]),t("h2",[e._v("0.6.4")]),t("p",[e._v("New: 1.The default is to scale at the center point of the canvas. 2.Optimize the scaling of both fingers on the mobile end, with the center position of the two fingers as the center point for scaling.")]),t("h2",[e._v("0.6.3")]),t("p",[e._v("Fix: 1.Fix the issue where the summary node will respond to inserting node shortcuts.")]),t("p",[e._v("New: 1.Support custom node content.")]),t("h2",[e._v("0.6.2")]),t("p",[e._v("Fix: 1.Fixed the problem that the new node does not change with the theme in rich Text mode.")]),t("h2",[e._v("0.6.1")]),t("p",[e._v("Fix: 1.Fixed the issue of high movement sensitivity when using the touchpad when changing mouse scrolling to moving the canvas behavior.")]),t("h2",[e._v("0.6.0-fix.1")]),t("p",[e._v("Fix: 1.Fixed the issue of destroying mind maps without setting a background style and reporting errors.")]),t("h2",[e._v("0.6.0")]),t("p",[e._v("Breaking change: Adjusted the directory structure of the simple-mind-map source code, Main impact: 1. The introduction path of the plugin needs to be modified. The constant file path needs to be modified.")]),t("p",[e._v("New: 1.Supports one click zoom to fit the canvas function. 2.Press and hold the Ctrl key to activate the multi selection function on demand through configuration. 3.Support setting to left click to select multiple nodes and right click to drag the canvas. 4. Support controlling whether nodes are allowed to be edited. 5.Add a method for destroying mind maps. 6.Added touch event support plugin.")]),t("p",[e._v("Fix: 1.Fix the issue where holding down the Ctrl key to select multiple nodes does not trigger the click event for the node. 2.Fixed the issue of node style loss when clearing a node and then entering text.")]),t("h2",[e._v("0.5.11")]),t("p",[e._v("New: Supports associative text editing.")]),t("p",[e._v("optimization: Optimizing theme configuration updates, changing configurations that do not involve node size does not trigger node recalculation.")]),t("h2",[e._v("0.5.10")]),t("p",[e._v("New: Optimize node reuse logic using LRU caching algorithm.")]),t("h2",[e._v("0.5.10-fix.1")]),t("p",[e._v("Fix: Fix the issue of import errors.")]),t("h2",[e._v("0.5.10-fix.2")]),t("p",[e._v("Fix: Fixed the issue of switching themes and importing data without triggering data changes in rich text mode.")]),t("p",[e._v("New: Add three new themes.")]),t("h2",[e._v("0.5.9")]),t("p",[e._v("Change: Unified export method format, using "),t("code",[e._v("FileReader")]),e._v(" instead of "),t("code",[e._v("URL.createObjectURL")]),e._v(" to convert "),t("code",[e._v("blob")]),e._v(" data.")]),t("h2",[e._v("0.5.8")]),t("p",[e._v("optimization: 1.The position setting is not triggered when the node position does not change. 2.The unfolding and folding status does not change and does not trigger button updates.")]),t("p",[e._v("New: 1.The default setting is to move the mouse over the node to display the expand and collapse buttons. 2.Support the list of icons that can be inserted into extended nodes.")]),t("h2",[e._v("0.5.7")]),t("p",[e._v("Breaking change:In rich text mode, exporting png has been changed to using html2canvas to convert the entire svg, greatly improving the export speed. However, html2canvas has a bug where the text color inline with the dom node in the foreignObject element cannot be recognized. Therefore, the text color of the exported node is fixed. However, compared to the previously unavailable state of the export, it can at least be exported quickly and smoothly.")]),t("p",[e._v("optimization: Optimize the rich text node editing experience.")]),t("p",[e._v("New: In rich text mode, importing data, initializing data, and switching theme scene node styles support following theme changes.")]),t("h2",[e._v("0.5.6")]),t("p",[e._v("Fix: 1.Fix the issue of node position disorder during fast and multiple renderings in a short period of time. 2.Fix the issue of dragging the canvas while the node is being edited, causing the edit box and node to separate.")]),t("p",[e._v("New: 1.Add a maximum history limit.")]),t("h2",[e._v("0.5.5-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where the edit box is also outside the canvas when editing nodes outside the canvas. 2.After modifying the structure, reset the transformation to prevent the problem of sudden position changes during the first drag after switching the structure during scaling.")]),t("p",[e._v("optimization: 1.When multiple nodes are selected, as long as there is a cross between the node and the selection area, it is considered selected.")]),t("h2",[e._v("0.5.5-fix.2")]),t("p",[e._v("Fix: 1.Fix mini map error.")]),t("h2",[e._v("0.5.5")]),t("p",[e._v("New: 1.Supports configuring the padding when exporting to PNG, SVG, or PDF. 2.Support the configuration of z-index for node text editing boxes and node comment floating layer elements. 3.Support clicking on areas outside the canvas to end node editing status.")]),t("h2",[e._v("0.5.4")]),t("p",[e._v("New: 1.Add new themes. 2.Added timeline and fishbone structure.")]),t("p",[e._v("Fix: 1.Fix the conflict issue between node right-click and canvas right-click. 2.Fix the bug that the line segment is not hidden when dragging nodes such as organizational chart and directory organization chart.")]),t("p",[e._v("optimization: 1.Optimize the layout of organizational chart. 2.Optimize the layout of the directory organization chart.")]),t("h2",[e._v("0.5.4-fix.1")]),t("p",[e._v("optimization: 1.Optimize fishbone layout.")]),t("h2",[e._v("0.5.3")]),t("p",[e._v("Fix: 1.Fixed the issue of setting the text style when multiple nodes were selected in rich text mode, which would change the text of all selected nodes to the text of the last selected node.")]),t("p",[e._v("New: 1.Support setting the position of the initial central node.")]),t("h3",[e._v("0.5.3-fix.1")]),t("p",[e._v("Fix: 1.Fix the issue where setting the position of the initial central node does not take effect.")]),t("h3",[e._v("0.5.3-fix.2")]),t("p",[e._v("Fix: 1.Fix the issue of not displaying images in nodes when exporting as images.")]),t("h2",[e._v("0.5.2")]),t("p",[e._v("Fix: 1.Remove "),t("code",[e._v("uid")]),e._v(" from exported "),t("code",[e._v("JSON")]),e._v(" data; 2.Clear the node cache pool when re rendering.")]),t("h2",[e._v("0.5.1")]),t("p",[e._v("optimization: 1.Only respond to shortcut key events when the mouse is inside the canvas")]),t("p",[e._v("Fix: 1.Fix the issue of incorrect node position during fast operation")]),t("h2",[e._v("0.5.0")]),t("p",[e._v("This version is mainly about code level changes and optimization, with the core goal of improving rendering performance and reducing stuck issues.")]),t("p",[e._v("New: 1.Support custom expansion and collapse node icons and colors;")]),t("p",[e._v("optimization: 1.Optimize rendering logic, set the theme, move forward and backward, and other operations no longer require full rendering;")]),t("pre",[t("code",[e._v(" 2.Optimize node drag logic, and fix the problem of being unable to drag between two nodes;\n\n 3.Collapse all nodes adds logic to return to the center point;\n\n 4.Fix the problem of nodes flying and scrambling caused by triggering rendering multiple times in a short time;\n\n 5.Optimize the experience of node editing;\n")])]),t("p",[e._v("Fix: 1.Fix the issue where the setData method does not trigger history;")]),t("p",[e._v("modify: Starting from version 0.5.0, considering performance issues, the node activation state can only modify shape related styles:")]),t("pre",{staticClass:"hljs"},[t("code",[e._v("[\n "),t("span",{staticClass:"hljs-string"},[e._v("'fillColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderColor'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderWidth'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderDasharray'")]),e._v(",\n "),t("span",{staticClass:"hljs-string"},[e._v("'borderRadius'")]),e._v("\n]\n")])]),t("h2",[e._v("0.4.7")]),t("p",[e._v("optimization: 1.During rich text editing, when initially focusing, all are no longer selected by default; 2.When editing rich text, use the node fill color as the background color to avoid being invisible when the node color is white. 3.Node activation state switching no longer triggers history. 4.Triggering history multiple times in a short time will only add the last data. 5.Optimize the addition of historical records. When there is a rollback, delete the historical data after the current pointer when adding a new record again.")]),t("p",[e._v("New: 1.Support for importing and exporting Markdown format files. 2.Support for configuring initial text when inserting nodes. 3.Expand the commands for inserting and deleting nodes to support specifying nodes.")]),t("h2",[e._v("0.4.6")]),t("p",[e._v("New: 1.Associated lines support adjusting control points.")]),t("p",[e._v("optimization: 1.When adding historical data, filter data that has not changed compared to the previous time.")]),t("p",[e._v("Fix: 1.Fixed a conflict between the direction keys and the navigation function of the direction keys during node editing. 2.Fixed the issue of node id loss when dragging a mobile node, which can cause associated lines to be lost.")]),t("h2",[e._v("0.4.5")]),t("p",[e._v("New: 1.Supports associative lines. 2.You can also drag the canvas by holding down the root node. 3. Hold down the ctrl key to adjust multiple selected nodes.")]),t("h2",[e._v("0.4.4")]),t("p",[e._v("New: Support horizontal scrolling in response to the mouse.")]),t("h2",[e._v("0.4.3")]),t("p",[e._v("Fix: No trigger after forward and backward "),t("code",[e._v("data_ Change")]),e._v(" event.")]),t("p",[e._v("New: Support user-defined mouse wheel events; The mouse wheel is adjusted to support zooming and moving the view up and down.")]),t("h2",[e._v("0.4.2")]),t("p",[e._v("New: The "),t("code",[e._v("setText")]),e._v(" method of the Node class adds a second parameter to support setting rich text content.")]),t("h2",[e._v("0.4.1")]),t("p",[e._v("New: 1.Add and throw node mouseenter and mouseleave events; 2.Node rich text supports setting background color; 3.Node rich text supports clear style.")]),t("p",[e._v("Fix: 1.Mac system touchpad scaling is the opposite problem; 2.When the device window.devicePixelRatio is not 1, the size of the rich text node in the exported image will become larger when there are rich text nodes.")]),t("h2",[e._v("0.4.0")]),t("p",[e._v("New: The node supports rich text editing.")]),t("h2",[e._v("0.3.4")]),t("p",[e._v("New: Automatic line wrapping function is added to node text.")]),t("p",[e._v("Fix: 1.Fix the problem of deletion exceptions if there are root nodes in the batch deleted nodes. 2.Fix the problem that high node height will overlap with other nodes in the case of bottom edge style.")]),t("h2",[e._v("0.3.3")]),t("p",[e._v("Fix: The root node text cannot wrap.")]),t("h2",[e._v("0.3.2")]),t("p",[e._v("Fix: 1.Fix the problem that the node style is not updated when the secondary node is dragged to other nodes or other nodes are dragged to the secondary node; 2.Fix the problem that when the actual content of the mind map is larger than the screen width and height, the excess part is not watermarked when exporting.")]),t("h2",[e._v("0.3.1")]),t("p",[e._v("Fix: 1.The problem that deleting the background image does not take effect; 2.The problem that the connector runs above the root node when the node is dragged to the root node.")]),t("p",[e._v("New: Add position and size settings for background image display. This setting is also supported for exported pictures.")]),t("h2",[e._v("0.3.0")]),t("p",[e._v("Upgrade to plugin architecture, pull out some non-core functions as plugins, register as needed, and reduce the overall volume.")]),t("h2",[e._v("0.2.24")]),t("p",[e._v("New: Node free drag is changed to configurable, the default is "),t("code",[e._v("false")]),e._v(", not open; Support add watermark.")]),t("h2",[e._v("0.2.23")]),t("p",[e._v("New: Support register new theme.")]),t("h2",[e._v("0.2.22")]),t("p",[e._v("optimization:The theme and structure pictures of the built-in "),t("code",[e._v("simple-mind-map")]),e._v(" package are removed and replaced by user self-maintenance. The original pictures can be found in the "),t("code",[e._v("web/assets/img/")]),e._v(" directory.")]),t("h2",[e._v("0.2.21")]),t("p",[e._v("New: Support node horizontal line style.")]),t("h2",[e._v("0.2.20")]),t("p",[e._v("fix:When the distance from the canvas to the upper left corner of the window is not 0, the node dragging will have an offset problem.")]),t("h2",[e._v("0.2.19")]),t("p",[e._v("fix:When the node is not activated, pressing any key will trigger the problem of automatic focus.")]),t("h2",[e._v("0.2.18")]),t("p",[e._v("optimization:Keyboard navigation algorithm for finding focus, supporting simple algorithm, region algorithm and shadow algorithm.")]),t("h2",[e._v("0.2.17")]),t("p",[e._v("New:Keyboard navigation, that is, switch the active nodes through the direction keys; The node text content can be edited directly in the outline.")]),t("h2",[e._v("0.2.16")]),t("p",[e._v("optimization:Mini map; drag performance.")]),t("h2",[e._v("0.2.15")]),t("p",[e._v("optimization:Local file editing.")]),t("p",[e._v("New:Double-click the image in the node to preview the large image.")]),t("h2",[e._v("0.2.14")]),t("p",[e._v("optimization:Automatically expand when inserting child nodes.")]),t("p",[e._v("fix:The error occurred when the mini map was closed.")]),t("h2",[e._v("0.2.13")]),t("p",[e._v("fix:The child node is missing when collapsing state replication.")]),t("h2",[e._v("0.2.11")]),t("p",[e._v("fix:Fix the problem that is lost when the child node collapses state replication.")]),t("p",[e._v("New:Support mini map.")]),t("h2",[e._v("0.2.10")]),t("p",[e._v("optimization:Focus immediately when you manually create a node.")]),t("p",[e._v("fix:Connection style depth update problem.")]),t("p",[e._v("New:Logical structure diagram and mind map add linear connection style and direct connection style.")]),t("h2",[e._v("0.2.9")]),t("p",[e._v("New:Support the creation, opening and saving of local files on the computer.")]),t("h2",[e._v("0.2.8")]),t("p",[e._v("fix:Xmind8 version file import failed.")]),t("p",[e._v("New:Expanding to the specified level is supported.")]),t("h2",[e._v("0.2.7")]),t("p",[e._v("fix:The root node adds multiple nodes to burst the stack.")]),t("p",[e._v("New:Support import .xmind file.")]),t("h2",[e._v("0.2.6")]),t("p",[e._v("New:The title tag is added when exporting svg.")]),t("h2",[e._v("0.2.5")]),t("p",[e._v("fix:Bugs caused by node expansion and collapse.")]),t("p",[e._v("New:Node supports custom line styles.")]),t("h2",[e._v("0.2.4")]),t("p",[e._v("New:Nodes support multiple shapes.")]),t("h2",[e._v("0.2.3")]),t("p",[e._v("fix:Shortcut key conflicts when editing node text; Right-click menu shortcut prompt error; Right-click menu shortcut prompt.")]),t("h2",[e._v("0.2.2")]),t("p",[e._v("fix:The input string '/' conflicts with the shortcut key '/'.")]),t("h2",[e._v("0.2.1")]),t("p",[e._v("New:Support export as pdf.")]),t("h2",[e._v("0.2.0")]),t("p",[e._v("New:Classic4 theme;Support adding summary; Support free drag; Move Node Up, Move Node Down, Copy Node, Cut Node, Paste Node, One-click Organize Cloth Shortcut; Library packaging; Ctrl+left click to select multiple.")]),t("h2",[e._v("0.1.18")]),t("p",[e._v("fix:The problem that the node icon cannot be deleted; The tool button is grayed out and can still be clicked.")]),t("h2",[e._v("0.1.17")]),t("p",[e._v("New:Add read-only mode.")]),t("h2",[e._v("0.1.16")]),t("p",[e._v("New:Node notes support markdown and rich text.")]),t("p",[e._v("fix:Can't select text; Node annotations cannot hide problems after node activation; When editing text such as hyperlinks, notes, labels, etc., the return key and return key conflict with the shortcut key of mind map.")]),t("h2",[e._v("0.1.15")]),t("p",[e._v("New:The status data supports saving the active status and view status (drag position, zoom value);Support node drag.")]),t("h2",[e._v("0.1.14")]),t("p",[e._v("fix:There are problems with setting topics when activating nodes.")]),t("h2",[e._v("0.1.13")]),t("p",[e._v("New:Shortcut key function; Support export as json。")]),t("p",[e._v("optimization:Some details.")]),t("h2",[e._v("0.1.12")]),t("p",[e._v("New:Local storage;Right-click menu function, etc.")]),t("h2",[e._v("0.1.0")]),t("p",[e._v("Complete basic functions.")])])}],s={},a=s,r=i("2877"),d=Object(r["a"])(a,o,n,!1,null,null,null);t["default"]=d.exports}}]); \ No newline at end of file diff --git a/dist/js/chunk-3cfaaabc.js b/dist/js/chunk-3cfaaabc.js new file mode 100644 index 00000000..1a8d414b --- /dev/null +++ b/dist/js/chunk-3cfaaabc.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3cfaaabc"],{"076b":function(t,i,e){t.exports=e.p+"img/alipay.jpg"},"0b8c":function(t,i,e){t.exports=e.p+"img/南风.jpg"},2707:function(t,i,e){t.exports=e.p+"img/天清如愿.jpg"},"2cd3":function(t,i,e){t.exports=e.p+"img/志斌.jpg"},"30de":function(t,i,e){t.exports=e.p+"img/达仁科技.jpg"},"331d":function(t,i,e){t.exports=e.p+"img/张扬.png"},"396b":function(t,i,e){t.exports=e.p+"img/小土渣的宇宙.jpeg"},"3e05":function(t,i,e){t.exports=e.p+"img/HaHN.jpg"},"3f65":function(t,i,e){t.exports=e.p+"img/花儿朵朵.jpg"},4e3:function(t,i,e){t.exports=e.p+"img/樊笼.jpg"},4593:function(t,i,e){t.exports=e.p+"img/qp.jpg"},4623:function(t,i){t.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD9UJqz5q0Jqz5q6D4sz5qx5q2Jqx5qDoM+brWdJ94fWtGbqM9c1Vm710GC3M+XrWdN0P41ac/OPrVWc9T6ZrnNzHm6H8apVdnlzkeoxVKgD//Q/Uias+arPnEf/qqtMe/0roPkzOm45zjnrjP6V4L8Zfj18O/ghoz6v40vlFy4zBZoc3NznoUjHCg+vYV7Trl8um6Xd6jON32JGnI9cAk/yr8DtBMX7QXxN8Q/Er4i3zS2IuCkCuQAiZzDCSf4VHWsK9f2VI7sFR9rVPUPFX/BR74k6jvfwn4Qt9Msy7GOe4lM7gYPQkdfSvXPgD+3npfim8Hhv4wS22kanOwW3u4h/o77iAFcf3iSAD6mvNPFOn/DDUbYabY3FjFbBWSTymHG0HnH+NfEfiHwD4JjE7aJqQuXDOVjx3wcAH1JxivOo5g72Ppq+Uo/ouju4bqKK8tZUliuF3xyx9Cn1HY1VllycevFfnf/AME9PidrPiXwbrngLWrh7weG5ITaPJnItnDDy8HptbkfSv0Im617B8dVpeyZXl61DTZjg596h86gg//R/Tiaas+aarEozWfNXQfJnL+MIpbzwlrdnaKTO1jOq4BJJIOAAOST6Cvww+DnheeDwNdaTfvFYXc0029rhCUBBwQVIyCDwQQMHrX734BGD0PBr8mPjP4Zi8FfEC70YERW108l0cdMTyFifpjqeleRma/dI+vyFr2u587W3w4tNM0LXdWvru1v7h0YO0Y8tEQsCpUgYZieqjtXkaeCJPKOuw30UdqAQ0RUKQcdQPbqK7/4ga14Z1DTHt9O0++WKHJkkhlEUTsAcEK2CQDycDpXhtjrwlsms4WeNARzISRj1ya8RKr3PqK9KlZn2z/wT6t7m18cePZFUpam3tMEA/vCXkwxP4iv1GkmO7oetfGv7G/gKbwx4Cn8XTSgyeJXiZRjlYIkICH0O7BxX1+ZutfXQv7I/McV/FuLNNk49eKhyKpzSmofNPvWh5x//9L9JzIw6gioJSCcZGaZPOFCsxAD9CTgH6ev4Uy2Rp2MgB2j+IdB+PSuq3kfGCBSw3AZUnGccZ9M18J/tneBnj0yx+JVmpMtgRBdRgEhoTwvTse3r2r7Q8WfE74SfDuxN94w8W6ZYNbguyNPHLM5PYQo24n8K/OP4ofth+D/AI16+nw38AwtFoSRCaWe7AWe7micgLAhwVTByA3OOlcuMV6Wh7mW/wC9Xpn54/EHxb4R1ezt7TT4Ct2hBYKWVQPft+FcN4M0238Y+KtG8MoCiandJDIQDnYzhWIA64BNeq/FrwFp1hO2oWMfkzOwzGBgY74FeFaVr914G1Gy1yxQNfafcJLEDxkBg2DnscYOa+Zw259tjVVtuf0E6BpNl4Y0Sw0HSUMdjYwLDCCMbiowxPua1PMYdcj6ivgzRv28/hNdWVt/bFte6dcvEizgQK8aSjG4ggk4J9OcV6r4Z/aV+F3i9kXRtbty7kBUmBikJJwAoYgkk8D3r64/OHTrbn0nLMah80+9cda+KrG4KhXyXIx05z/Otb+1ovQUHIf/0+W/aH/b1g8Jaxc+D/hN9nubyI4uNYYebFn0iAJB/DNfnh4m+O/xY8dzSy+JPE93fFuiGUoDx28kgGvnW9kkkubwyMWPm9zmuj0r/jzhPeuv2jPnOReyNKwnWZJp5XMkx4JcCU59PmYnNcxNbXdpMNV06WQSDkPGxV0x2GOa09I+9N/10b+VWIv+PR/qP51B1x9zYfd/Fn4iXFnFp1zrE8sKdFcKSD2y5riJ31XVrhru+Z7mQ5yZCCB7jHGa6u9ROflHft7VatVX7FwB0/oaxo0YQWiOt4upP4mcm+nJHpZZiCxOOT0J9fSq9q91Au8bo3QgHBKgg+46Z9RWxe/8guT/AHx/Oqs/+of/AIBUi52zoPDfxb+IfhWRpdE1meBFODExMqEdxhzyCOCPSvYI/wBrf4uJGqfarb5QB/x7J2/Gvlxej/71LQbOhT7H/9k="},4710:function(t,i,e){"use strict";e.r(i);var A=function(){var t=this;t._self._c;return t._m(0)},c=[function(){var t=this,i=t._self._c;return i("div",[i("h1",[t._v("简介")]),i("p",[i("code",[t._v("simple-mind-map")]),t._v("是一个简单&强大的Web思维导图库,不依赖任何特定框架。可以帮助你快速开发思维导图产品。")]),i("blockquote",[i("p",[t._v("如果你只是想使用思维导图,你也完全可以把本项目的demo作为一个普通的在线思维导图工具使用。点击右上角的【在线示例】开始使用吧。")]),i("p",[t._v("另外也提供了客户端可供下载,支持"),i("code",[t._v("Windows")]),t._v("、"),i("code",[t._v("Mac")]),t._v("及"),i("code",[t._v("Linux")]),t._v(","),i("a",{attrs:{href:"/mind-map/#/doc/zh/client"}},[t._v("点此了解更多")]),t._v("。")])]),i("h2",[t._v("特性")]),i("ul",[i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox0",checked:"true"}}),i("label",{attrs:{for:"checkbox0"}},[t._v("插件化架构,除核心功能外,其他功能作为插件提供,按需使用,减小打包体积")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox1",checked:"true"}}),i("label",{attrs:{for:"checkbox1"}},[t._v("支持逻辑结构图、思维导图、组织结构图、目录组织图、时间轴(横向、竖向)、鱼骨图等结构")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox2",checked:"true"}}),i("label",{attrs:{for:"checkbox2"}},[t._v("内置多种主题,允许高度自定义样式,支持注册新主题")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox3",checked:"true"}}),i("label",{attrs:{for:"checkbox3"}},[t._v("节点内容支持文本(普通文本、富文本)、图片、图标、超链接、备注、标签、概要、数学公式")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox4",checked:"true"}}),i("label",{attrs:{for:"checkbox4"}},[t._v("节点支持拖拽(拖拽移动、自由调整)、多种节点形状,支持使用 DDM 完全自定义节点内容")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox5",checked:"true"}}),i("label",{attrs:{for:"checkbox5"}},[t._v("支持画布拖动、缩放")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox6",checked:"true"}}),i("label",{attrs:{for:"checkbox6"}},[t._v("支持鼠标按键拖动选择和Ctrl+左键两种多选节点方式")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox7",checked:"true"}}),i("label",{attrs:{for:"checkbox7"}},[t._v("支持导出为")]),i("code",[t._v("json")]),t._v("、"),i("code",[t._v("png")]),t._v("、"),i("code",[t._v("svg")]),t._v("、"),i("code",[t._v("pdf")]),t._v("、"),i("code",[t._v("markdown")]),t._v("、"),i("code",[t._v("xmind")]),t._v(",支持从"),i("code",[t._v("json")]),t._v("、"),i("code",[t._v("xmind")]),t._v("、"),i("code",[t._v("markdown")]),t._v("导入")]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox8",checked:"true"}}),i("label",{attrs:{for:"checkbox8"}},[t._v("支持快捷键、前进后退、关联线、搜索替换、小地图、水印、滚动条")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox9",checked:"true"}}),i("label",{attrs:{for:"checkbox9"}},[t._v("提供丰富的配置,满足各种场景各种使用习惯")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox10",checked:"true"}}),i("label",{attrs:{for:"checkbox10"}},[t._v("支持协同编辑")])])]),i("h2",[t._v("仓库目录介绍")]),i("p",[t._v("1."),i("code",[t._v("simple-mind-map")])]),i("p",[t._v("思维导图库,框架无关,"),i("code",[t._v("Vue")]),t._v("、"),i("code",[t._v("React")]),t._v("等框架或无框架都可以使用。")]),i("p",[t._v("2."),i("code",[t._v("web")])]),i("p",[t._v("使用"),i("code",[t._v("simple-mind-map")]),t._v("库,基于"),i("code",[t._v("vue2.x")]),t._v("、"),i("code",[t._v("ElementUI")]),t._v("搭建的在线思维导图。特性:")]),i("ul",[i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox11",checked:"true"}}),i("label",{attrs:{for:"checkbox11"}},[t._v("工具栏,支持插入节点、删除节点;编辑节点图片、图标、超链接、备注、标签、概要")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox12",checked:"true"}}),i("label",{attrs:{for:"checkbox12"}},[t._v("侧边栏,基础样式设置面板、节点样式设置面板、大纲面板、主题选择面板、结构选择面板")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox13",checked:"true"}}),i("label",{attrs:{for:"checkbox13"}},[t._v("导入导出功能;数据默认保存在浏览器本地存储,也支持直接创建、打开、编辑电脑本地文件")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox14",checked:"true"}}),i("label",{attrs:{for:"checkbox14"}},[t._v("右键菜单,支持展开、收起、整理布局等操作")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox15",checked:"true"}}),i("label",{attrs:{for:"checkbox15"}},[t._v("底部栏,支持节点数量、字数统计;支持切换编辑和只读模式;支持放大缩小;支持全屏切换;支持小地图")])])]),i("p",[t._v("提供文档页面服务。")]),i("p",[t._v("3."),i("code",[t._v("dist")])]),i("p",[t._v("打包"),i("code",[t._v("web")]),t._v("后的资源文件夹。")]),i("h2",[t._v("相关文章")]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/6987711560521089061"}},[t._v("Web思维导图实现的技术点分析")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7157681502506090510"}},[t._v("只需百来行代码,为你的Web页面增加本地文件操作能力,确定不试试吗?")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7199666255883927612"}},[t._v("当你按下方向键,电视是如何寻找下一个焦点的")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7204854015463538744"}},[t._v("如何在canvas中模拟css的背景图片样式")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7233012756314701884"}},[t._v("我的第一个Electron应用")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7276712861514170409"}},[t._v("探索如何将html和svg导出为图片")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7287913415803764747"}},[t._v("dom-to-image库是如何将html转换成图片的")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7295669711533998117"}},[t._v("两天实现思维导图的协同编辑?用Yjs真的可以")])]),i("h2",[t._v("特别说明")]),i("p",[t._v("本项目可用于学习和参考,用于实际项目时请先深度体验一下是否能满足您的需求。")]),i("p",[t._v("本项目可能没有完整测试到每一个功能点,所以可能存在bug,另外,当节点数量非常多的时候,性能也存在一些问题,因为每个人能接受的卡顿程度不一样,所以你可以自行测试节点数量上限。一般来说,500个节点以内比较流畅,1000个节点以上卡顿比较明显。")]),i("p",[t._v("如果有建议或发现了bug,可以在此提交"),i("a",{attrs:{href:"https://github.com/wanglin2/mind-map/issues"}},[t._v("issues")]),t._v("。")]),i("p",[t._v("项目内置的主题和图标部分来自于:")]),i("p",[i("a",{attrs:{href:"https://naotu.baidu.com/"}},[t._v("百度脑图")])]),i("p",[i("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("知犀思维导图")])]),i("p",[t._v("尊重版权,主题和图标请勿直接用于商业项目。")]),i("h2",[t._v("为什么不是?")]),i("p",[t._v("1."),i("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("知犀")])]),i("p",[t._v("知犀是一个免费的思维导图产品,支持多端同步,ui设计很漂亮,功能也很齐全,但是它并不开源,所以只能作为一个用户,而无法在你的项目中使用。")]),i("p",[t._v("类似知犀的其他在线思维导图产品还有很多,比如"),i("a",{attrs:{href:"https://gitmind.cn/"}},[t._v("GitMind")]),t._v("、"),i("a",{attrs:{href:"http://www.mindline.cn/"}},[t._v("MindLine")]),t._v("、"),i("a",{attrs:{href:"https://www.mindmeister.com/zh"}},[t._v("MinMeister")]),t._v("、"),i("a",{attrs:{href:"https://mubu.com/"}},[t._v("幕布")]),t._v("等等,搜索引擎上搜索一下非常多,但是这些产品或者是要收费,或者是小公司开发的,稳定性和持续性无法保证,当然最关键的就是它们都不开源。")]),i("p",[t._v("2."),i("a",{attrs:{href:"https://github.com/fex-team/kityminder-core"}},[t._v("kityminder-core")])]),i("p",[i("code",[t._v("kityminder-core")]),t._v("是百度开发的开源的脑图工具,功能很强大,性能也很好,但是它已经不维护了,所以代码比较陈旧,界面美观度也比较一般,另外bug只能自己修,功能只能自己开发,对前端开发能力要求比较高。")]),i("p",[t._v("3."),i("a",{attrs:{href:"https://github.com/hizzgdev/jsmind"}},[t._v("jsmind")]),t._v("、"),i("a",{attrs:{href:"https://github.com/ssshooter/mind-elixir-core"}},[t._v("Mind-elixir")]),t._v("、"),i("a",{attrs:{href:"https://github.com/ondras/my-mind"}},[t._v("my-mind")]),t._v("、"),i("a",{attrs:{href:"https://github.com/awehook/blink-mind"}},[t._v("blink-mind")]),t._v("、"),i("a",{attrs:{href:"https://github.com/luvsic3/remind"}},[t._v("remind")]),t._v("、"),i("a",{attrs:{href:"https://github.com/hellowuxin/vue3-mindmap"}},[t._v("vue3-mindmap")]),t._v("、"),i("a",{attrs:{href:"https://github.com/zyascend/ZMindMap"}},[t._v("ZMindMap")]),t._v("、"),i("a",{attrs:{href:"https://github.com/RockyRen/mindmaptree"}},[t._v("mindmaptree")]),t._v("...")]),i("p",[t._v("这些开源的思维导图也都不错,各有各的特点,但是它们也都有一定缺点,比如停止更新、界面美观度一般、功能比较少、依赖某个框架等等。")]),i("p",[t._v("综上,在开源的思维导图中,你很难找到一个比"),i("code",[t._v("simple-mind-map")]),t._v("更好的选择。当然,"),i("code",[t._v("simple-mind-map")]),t._v("也远远谈不上最好,它也有很多不足,如你在前面的【特别说明】所看到的那样,不过"),i("code",[t._v("simple-mind-map")]),t._v("一直处于快速迭代中,欢迎你加入进来一起完善它。")]),i("h2",[t._v("浏览器兼容性")]),i("p",[t._v("推荐使用最新版"),i("code",[t._v("chrome")]),t._v("浏览器。")]),i("p",[t._v("有限测试情况:")]),i("p",[t._v("正常运行:"),i("code",[t._v("360")]),t._v("极速浏览器(v13.5.2036.0)、"),i("code",[t._v("opera")]),t._v("浏览器(v71.0.3770.284)、"),i("code",[t._v("Firefox")]),t._v("(v98.0.2)。")]),i("p",[t._v("不支持:"),i("code",[t._v("IE")]),t._v("浏览器。")]),i("h2",[t._v("License")]),i("p",[i("a",{attrs:{href:"https://opensource.org/licenses/MIT"}},[t._v("MIT")])]),i("h2",[t._v("请作者喝杯咖啡")]),i("p",[t._v("开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡~")]),i("blockquote",[i("p",[t._v("厚椰乳一盒 + 纯牛奶半盒 + 冰块 + 咖啡液 = 生椰拿铁 yyds")])]),i("blockquote",[i("p",[t._v("推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。")])]),i("img",{staticStyle:{width:"300px"},attrs:{src:e("076b")}}),i("img",{staticStyle:{width:"300px"},attrs:{src:e("4968")}}),i("div",{staticStyle:{display:"flex"}},[i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("f8ce")}}),i("p",[t._v("Think")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("2cd3")}}),i("p",[t._v("志斌")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("396b")}}),i("p",[t._v("小土渣的宇宙")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("4593")}}),i("p",[t._v("qp")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("84dd")}}),i("p",[t._v("ZXR")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("3f65")}}),i("p",[t._v("花儿朵朵")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("bf03")}}),i("p",[t._v("suka")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("654b")}}),i("p",[t._v("Chris")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("80ba")}}),i("p",[t._v("水车")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("a930")}}),i("p",[t._v("仓鼠")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("bcae")}}),i("p",[t._v("千帆")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("bba7")}}),i("p",[t._v("才镇")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("9465")}}),i("p",[t._v("小米bbᯤ²ᴳ")])])]),i("div",{staticStyle:{display:"flex"}},[i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("6ea0")}}),i("p",[t._v("*棐")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("5b80")}}),i("p",[t._v("Luke")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("7215")}}),i("p",[t._v("布林")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("0b8c")}}),i("p",[t._v("南风")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("d33b")}}),i("p",[t._v("蜉蝣撼大叔")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("ca5d")}}),i("p",[t._v("乙")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("5ea5")}}),i("p",[t._v("敏")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("aaba")}}),i("p",[t._v("沐风牧草")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("eac7")}}),i("p",[t._v("有希")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("4000")}}),i("p",[t._v("樊笼")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("30de")}}),i("p",[t._v("达仁科技")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("8d3e")}}),i("p",[t._v("小逗比")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("2707")}}),i("p",[t._v("天清如愿")])])]),i("div",{staticStyle:{display:"flex"}},[i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("4f23")}}),i("p",[t._v("敬明朗")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("5b80")}}),i("p",[t._v("飞箭")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("4623")}}),i("p",[t._v("戚永峰")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("6065")}}),i("p",[t._v("moom")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("331d")}}),i("p",[t._v("张扬")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("a4f7")}}),i("p",[t._v("长沙利奥软件")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("3e05")}}),i("p",[t._v("HaHN")])])])])}],r={},n=r,a=e("2877"),o=Object(a["a"])(n,A,c,!1,null,null,null);i["default"]=o.exports},4968:function(t,i,e){t.exports=e.p+"img/wechat.jpg"},"4f23":function(t,i,e){t.exports=e.p+"img/敬明朗.jpg"},"5b80":function(t,i,e){t.exports=e.p+"img/default.png"},"5ea5":function(t,i,e){t.exports=e.p+"img/敏.jpg"},6065:function(t,i,e){t.exports=e.p+"img/moom.jpg"},"654b":function(t,i,e){t.exports=e.p+"img/Chris.jpg"},"6ea0":function(t,i){t.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD97zDb4P7tfyFeS6F8U/BXiLx5rfw/sZU/tLRPswYEACU3MbSqIz/FhUYnHofSvU9QkhhsbiS5lFtEsbFpWIAQYOWJPAx1zX5Gfs+eFtK/4aPF5c/GXRvEMOn3Ly2llaSkXV08UUsEaMWUKfLjlYEKzkjPrkevhMNCrTqSlpZFJNvQ/WZoIf8Anmv5D/CsG71PTLN72OeMD7BCs8hCg5Rs8j1xtOfTiulYDIryDUr9L/xX4p02In/QdJjRiO7z+YQB6kBeR7ivMhG7Lilq2d4l/pUi2jRlG+3KHhAAy6lQwIGOmCDmqDX+imY24mhLgkFcjORXh3wTbWPFepN8Qri6ZtDgsYNM02BkKnMCKLiUg4+867R06Gu0vvB+v3dnLpjSW8cEpADh2LAAqQduwZOVJxu6sea6/ZqL5W9ilZPsdqdR0Ty/N8+DbnbnI6+lVJr7SCzoZYQYgSwyvAyAfyJA9jx1rhLzwR4ge6e9tp4AzxmJkZ2K7fmyd2zvuAAxwABk1lW3hLW3khsJF2DSpcxSHeqSxJG0Y3MVxukLBiU3AFAzAEharki1uQ+XuegQ6lpVzemxt13uEDBgmUIIBwH6EgEZHUVd2Rf3V/75rltD8N32lalPe3MsbpOd5CsxIYqqEcqAR8uc8EkngV1dZyUb6HG2r6H/0P1l/atsNR174I+IvCmg3y2Wr61A0ForP5ZncDcYVY4ALKCAM89O9fgf8NfhF8T5vG+mWGn6Nd6dfWl1G5nkRoEtjEwJkaQ4ChcZzntxX9Lvinwj4e8baNN4f8TWaXtjPjKPkEEdGUjBVgeQQQQa+f7D9lnwLY6j9q1LV9a1eyQhlsb2/eS1AByAVABYD0Yketfa5TnCwdCdLue1l+IhQnzS3PoG1vEvtPhvLSVbhZowyyLwr5HDD2J5Hsa/EP8Aam+L3jXwF45vtC0XxC90L+5Mt1PbZiETowxCjgksVAAORgc4HNffn7W/xh1H4feCo/DfgOY2ut38YFq0YXywgwoRMdGIwFABGcCvwU8aa419qLRatc3V7doSZY5CEEdy33yDySQevAye/FLKMHztzlseRKooJvoftv8AsbfFzQtc0C48H3msqL+JlkisrgoJQXAL+UwwHUn5iMAgk565r7kfrX82Xw3+I3iHwf4k8NfEi1m3XuhkwSi4MaRPACAVDnnJAwSeeBjpX7b/AAI/aR0f432mu3sWlyaRb6EYt9xI6tBIJFJO1hwCuDkHoCD3rkzHBOEnOOx5dPFxk+Vs+jZTwMH/AOvXgHjz40SeGNdg0Lw14Zv/ABTJbXRg1U2iEf2fHtRhI24ASAqxOFJPBr1nw14r8PeMNPOp+HL1L61SRomkjzgOhwQc45B9K/Nb9qrxr438PfEHwrdG7u/Cz6j4j/s+4gtr6YwXenDasczlGCKzqclQMqOpzSyvBqvW5JI7YuN77o/SbRtd0fxLpkOtaFdpe2U4O2SM5BIOCD6EHIIPIPBq3WB4P8LeF/Bfh630LwbAsGloXlQJIZd7Sku7FySWLMSSSTzWqVbPSvLkopvk2POqNJn/0f31BxWdqAjMEwkGUKHcM4yMHPPbjvWie/FfOn7Q3xj0X4S+DL251GKeS4vYZYoWjQMiSPGxXcSerbSFUZJbA4zmtqcZSdktx3XU/LF/FN7a+Nbv4mzTo/hrwtfvDpdpfTmVXdQVWMAlgyxYJB56j6183L4f8OeNfH1/4n8QwxWMF7cG7KiQBXQsC7EYAUHJ2jqTwKim0zX/ABpNb+HtIspYtF0SOW4Ee4yo0pfyzNJsGcHaCScD6DFeWeIfFKOZtPguQbhGKSyfKAqgbWORkMzdEUZCDuScj9Po0rfC7M+ax+KSPtCL9kTQPHR1HXfDWv6OsEk1yv2R5tk6RqCY2RACRhcE5468171+yjD4HvPhs3h/x7rjGXT76UXNhErqk5U7UllaNdzRuo+UHAIH4V+afh/43W/g/UkvotHjvJrXMa3KSvFcglCpO9ThgQcEEHPOeMV+nX7Cfh/x14shT4r61e2LeHGju7a1giG+7d5JFJSc4AVYCpCrzyxINeTjVVjTfO7o8TDV6dSslTR9w+EfiH4A1nUG8G+EHIawjBEcdtJDAiDjCsVVSR3Ar4D/AGn9M8LaV8QdCvdW0QXMd54mW4lWWcSPHKwUGeQqhCQHAAjZsAZ4GcV+oghgi/1MSpn+6ACfyxX5r/tf+LvEOkfEvwl4f0HVTY22s6nFbX0UGoiV5InKgh7QxjycgnDBiT7V5+U1LYhW0Pp6lR04XZ9xeBvCMXgrw6NIhvDepLNLchgAIlE7F9kQBIEa5woHGOldFWX4Z8MaZ4O0K28N6O9xJZ2YYRm5maeQBiTgu5JIBPA7DitYKMV4tR80m7mEpXZ//9L98pHEaPJgttBOFGScdgPWvz3hvrv9oX9o42Oo2Ri8O+A4LiRreVg6m5bdDAZFGVEhfc4BJwEXuTn69+I1x8QLuzfw78PLaOC8u0xJqNy5WK2RuCUABZ5MZIGAB1JzgVhfCb4SaN8JtKuYlum1DWNYkWW+vZeHuJUXAAX+FVUHAyT1JJJJPfRmoJy6mU9bLofgzqep698JtM+I3gfxBdtDFDqI0ydlJFzJAhaSNEPYS4ViT0Br45tLGBtOvtdvUIiUiO3UkjdLITg5xyFAJODyRiv1W/bY8Ea8fHXilLxBaab4vn0qO0WBgRJLE21ppyVJU4YgAEDgEntXmH7ZXw30DwbdeFvh74YtIzBpVhaSTuoAlCwwyNKcDruzuY4JJxjvn9Aw+KhZd2fnOYQk2+yPzlm+S0hiYYaQmQnvjoM1+x3/AATC+JkE2ieIPhReGNJrWT+0LXLYd0kOJBgnkKQDkc8818xfFH9kzQfCfw28C+LbHV57zXfHN9YQLZMqp9mguUJYADlscEMQOK+mvjj+zN/wpC98NfG74RTPYXOkXVhFfRxHCFHAV5GxyFYjDDOMMOOprjxmIpVYchw4OlVw9T2nY/WCZguPXpX5lftq7IfiT8PbmSO7aWPWYGC+bC8ZTKkeXEMSAnsWOD0Br9A9K8SWuv2Ns8E2w38ZCSxuCQTGCWTI6gtkZHBHINfn98efDfiW61Lw1YaN4cupW0vxYJ5J5w26RESOMTEpDsSGQrvLb3JYkkAnA+ewUnCqm2fTZhXTpXifenhzX77xFa3V9eaNc6IsVw8MUd0VEsqJjEm1SQobsCc4raPWuZ8JeM7Xxnp0upwQG2a3uJbWRS4kQvC20mOQY3oT91sDPTGa6TmvMqb7Howaavc//9P6F1H/AIKYeG3EkVpaOAAGViPmOckgduOma89H/BSKyvriym1K1kj8hZHZU5AlYbRjPPAJ/GvyEm++1VD2/wA9q/V/7Jw0Voj87xWaV09GfXHxu/aS1D4seIdNubm8nFhaGFhGCQVKuS3TqduOvfmvNPGHxXu/GPixtf1O5uJDAPLt2LnfgkAsTznC5AH+NeIr1/GpP4hWvsIQtFI+Nq4mpN3bPubxH+1FpXiLx74S1ie2kbSPCkQEETHnzYohHERjgYAOa991f9ufw34j0C50vUbZ3injVJIHGVkAZQTxjnbn9K/KBfv/AIGn/wAQrw6mHhZaGf16trqfp74e/bS0fStUtr0pIsVik6xIBgAOioo4PYDJ+legaj+3Z4YuYZIPmuYpoQZEmQOrSFl4wcgAKDjjnNfkZ/CKfXC6ML7GSxdePuqZ+r8H7cnhq31RXtka2sNyAQogARQDnaAABggEDpWtcf8ABQTRmuJWhiYRlmKj0GeK/Ik9RUo6VlKlE1w+NrNO7P/Z"},7215:function(t,i,e){t.exports=e.p+"img/布林.jpg"},"80ba":function(t,i,e){t.exports=e.p+"img/水车.jpg"},"84dd":function(t,i,e){t.exports=e.p+"img/ZXR.jpg"},"8d3e":function(t,i){t.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD9m54Q2eKyZbf0FdnPae1ZUtvnPFfQxqnjSpnGzwYzisWaHr8v6V281qTlqyprXrkV2QrHHOmzg7m33dqxprfrx0rvLizHPGKxp7QDtXbGuc7ps4We2BOSKyZrYZOFruJrZTnjmsqa1UdRitVXIdI4yS1z2qv9lHpXVTW4qt5H1qvrBSpH/9D9t5db0ZmZVvIiV6guOKxr/X9BtEMk97EoHbcDXyZJ4ispv+PedJQcnKnOcdayG1g3jHyGBUc5B4H0r1o0vM8x1fI+kNX+I/huzVhC7XLAfwDj82wK4+f4t6SyFlspflGDkqMe3WvCbq5cKysRtJxkHPP4dq5e+u7yNCETcsZAJU7gSemMda6YqKMJTk+h7prHxgghjQ2dgSx6+a4AA9gAc1m6H8YtI1G4FnrUQsHkOEkB3Rk+5I+X6968SXSdV1ub7DbkeeFdyrHBIRSxxnvgV59d/ZZDmecoVLq4A4jCAEA89STirUopai9++h98rJbXcYmtpFlRuhUhh+lUJoVwRiviHwt4v1fTbgTaTcSqiSRxlQS0ZMhO3cORyAc554616f8A8LU8Urf3FjIInlgh8wALyxPIPXjIIJqHNrqdMVzLY98kjAPAqtsHp/n864Sb4i2FnpumX+oANFqSIY5IuV3E4IJ6DJyQMk4BFXh400MjPmnn/ZrD25p7I//R9W0nxx4f8J201rfRMZY5XZFOHJB5OMkZ5bP4VX8W+MNU/wCEgtbnQYEgFiiqbeQnypw7HDsBnBHOcdeK8Y8V+LvDMcUmoz2sb27uFWPAd94+UHzOCASMnAIHXB61paV4ifX2tdXlAjNzBGSoOQCkzJx37VtWlO6urBSSV9Lnew/Eu7hvnS20a4kvd7OI4o2kRVAPyggElSMEnGccYrK1n4t6ms2+6ifSy8SsIggGApIJw2CCSD16g5ryS38UfEGYajp3hG8ihktJ5i0scuy48skjBx0UDrjp3rmV+HfxS163n1Gc/a5ncMG84SMRgkknBJ49Bjil9cit2ckqb6H0d4R+MMGj6jPfYimneNwpnnCY81SDhSOpzzjIFU9GM+raVrp1XVdO0vyZIZJGeUNJOrk4RADg7eDkfSvkm+8Ea813BDqenzPcNKVdk+ZlUDqBkZ6dP0qrrNzD4T0qP7dYSxpKSo3n5t3IzjJAAABxmuR4y9vZy3N/YvlXMj6n0a40WOCZDrqA3M6ea8c/lDMAYBkXaSV2scEkZORyKx/EHiWwsLgXfh+9lnlWFxKzODuCDyxzjBBUZ46GvlnQ7HXNXWXU7HT2htFUSNNIGjTA4BUscH6DPrU0l81ncrBcIs8u07VMoIJPTGTjn0I/nTWIkpashr3bJH11oJ8a+JvD1pYrbGbTLYSSwBZY1IUAmPBySQWYkAgHJJB7D2bTrb4uyafayf2PZjdEhw4O7lR156+tfnLb6tqcJEau9m0UgA2ykDIOQAB3VgcEZArvY/jF8Uo41ji8TSbFAC/PngdOamWIbd7FQk0tUf/S+UJbnUP+EfljnckrIAAAF+XnsVj/AFBPrkcV2Hg/xnBpmh2C3WZZ44jGV4B/1zSZznOD0HeuT8Tstu+tWkAO22uSg9cB8dgf1zXjWpQ+JYb6PyEQ2OAWG8DdtJJBG7cTyeoHWuqr7yRx0nZM9EuPG82p3OqW+mIbHUfNm3SKBseJsgBwBnIzjI659q8y0nxN4/8ADOqpd+Gr67trlCVQxO5PAwQACSRjtjoa9X8PeH0j0S9v72xa2ullISdHyksJIcfIMkEKCSc57Yrz2HU5bnxE9tYzmDL7WnEQZoUPAC84A+vOMVyKS52rGzjon1Pqbw9rnxo8TeEbB2aJ9TVsx3LuEuBGTyX3AMDjI65xjBFT+IbLxyL9YvEFzpcccjNuWT92NoXIYnOck5IOMnvmrWi+bG8Fpb6mXuoVX5ivD4A5ypI57j1r0yDw9b+KNUtvtBQXCAgSswCrkcsSeAMZyT0xxXjY2NGD5kjWjzyfKz5o8ZSeJ9RaSxsCiC3gRWjgYCIfLkMCAQSeMnvjiuV8NWNtpGoG68UacdVlSRWiQOSlsyt1OCBJkAEKeAfXpXoPxfsbX4f+L08MC5aNJ2RgoJJJlTJIKZBGScDkDv0rhtOTTdC0hpPtErXTt5amQhiMkhCgBJBJJAIycHBwRWMKycLx2NZ80XZrY2dTfRrq8lWxhYlGMhkklczykAkAgnjgnHU9B0rz37SzfNFpk4Q8qN7cDt3rtbS6sI7mVNXtBdw6jEczSkpJFLGAo8sLnAC5ABJDfxA8YzWu4Nx+z2SiLPyAkZ29v4fSlGpyKyZjJXP/0/iCe+8/Rr+e5nE7vIrMxIYklgTyWfqTnjH581x1xYXuo38OrNqNuFQ7Tal2R8A9SSAmCxBxuzyT0FT6Dc3M+k3HnyvJl0+8xPdPWud1OSQWyYY8kd67+XY4ons/ivxnpc3hm10y6vlsp7SIAJBIspLn5QQQMcKCSM8ZArB8A+C9Iv1fUYtQa+mZgZDG7RhCeSGGcknvzz2r581Jm8695PDDH/fNexfCOaaPUzFHIypKgLqCQGODyR3NeFXg+WUoux2QlzNXPpeTW/DOhRpbaTLaJfgBUDnjpg5bOT0OB7VxWv8AxHa5iFtBcR+bE20mF2RS74AORu4A6ZIOffp8z/ESSQeKrnDEYU459q1PDgH2jR/dwT9QDiuOVBWvJ3C7i9D66u/ilrXijSbfQvFOj2OqvbDy7bUXgBubRQvUOCGIYAqRjnPJyTXJ6Zd3mkaw9/azi1EsLiQyxwlXiKYIEfzAkMAeASDyDkGuELv9gvn3HdsJznnPNZEf77wppM03zyYm+ZuTwxxya8VQtLlRUqkpJSZ2V1qOnsxWyjkBkDAPG4LjcMABSQoAJB4AJGBnOa8xk0vxWZGKahabSTjcF3Y9/n6+tOvby88u5HnyYVVwNx44HStq3jjNvESoJKr29q7IrlVjO1z/2Q=="},9465:function(t,i,e){t.exports=e.p+"img/小米.jpg"},a4f7:function(t,i,e){t.exports=e.p+"img/长沙利奥软件.jpg"},a930:function(t,i,e){t.exports=e.p+"img/仓鼠.jpg"},aaba:function(t,i,e){t.exports=e.p+"img/沐风牧草.jpg"},bba7:function(t,i,e){t.exports=e.p+"img/才镇.jpg"},bcae:function(t,i,e){t.exports=e.p+"img/千帆.jpg"},bf03:function(t,i,e){t.exports=e.p+"img/suka.jpg"},ca5d:function(t,i,e){t.exports=e.p+"img/乙.jpg"},d33b:function(t,i,e){t.exports=e.p+"img/蜉蝣撼大叔.jpg"},eac7:function(t,i,e){t.exports=e.p+"img/有希.jpg"},f8ce:function(t,i,e){t.exports=e.p+"img/Think.jpg"}}]); \ No newline at end of file diff --git a/dist/js/chunk-4c6d0a94.js b/dist/js/chunk-4c6d0a94.js deleted file mode 100644 index cdedbb55..00000000 --- a/dist/js/chunk-4c6d0a94.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c6d0a94"],{"076b":function(t,i,e){t.exports=e.p+"img/alipay.jpg"},"0b8c":function(t,i,e){t.exports=e.p+"img/南风.jpg"},2707:function(t,i,e){t.exports=e.p+"img/天清如愿.jpg"},"2cd3":function(t,i,e){t.exports=e.p+"img/志斌.jpg"},"30de":function(t,i,e){t.exports=e.p+"img/达仁科技.jpg"},"331d":function(t,i,e){t.exports=e.p+"img/张扬.png"},"396b":function(t,i,e){t.exports=e.p+"img/小土渣的宇宙.jpeg"},"3f65":function(t,i,e){t.exports=e.p+"img/花儿朵朵.jpg"},4e3:function(t,i,e){t.exports=e.p+"img/樊笼.jpg"},4593:function(t,i,e){t.exports=e.p+"img/qp.jpg"},4623:function(t,i){t.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD9UJqz5q0Jqz5q6D4sz5qx5q2Jqx5qDoM+brWdJ94fWtGbqM9c1Vm710GC3M+XrWdN0P41ac/OPrVWc9T6ZrnNzHm6H8apVdnlzkeoxVKgD//Q/Uias+arPnEf/qqtMe/0roPkzOm45zjnrjP6V4L8Zfj18O/ghoz6v40vlFy4zBZoc3NznoUjHCg+vYV7Trl8um6Xd6jON32JGnI9cAk/yr8DtBMX7QXxN8Q/Er4i3zS2IuCkCuQAiZzDCSf4VHWsK9f2VI7sFR9rVPUPFX/BR74k6jvfwn4Qt9Msy7GOe4lM7gYPQkdfSvXPgD+3npfim8Hhv4wS22kanOwW3u4h/o77iAFcf3iSAD6mvNPFOn/DDUbYabY3FjFbBWSTymHG0HnH+NfEfiHwD4JjE7aJqQuXDOVjx3wcAH1JxivOo5g72Ppq+Uo/ouju4bqKK8tZUliuF3xyx9Cn1HY1VllycevFfnf/AME9PidrPiXwbrngLWrh7weG5ITaPJnItnDDy8HptbkfSv0Im617B8dVpeyZXl61DTZjg596h86gg//R/Tiaas+aarEozWfNXQfJnL+MIpbzwlrdnaKTO1jOq4BJJIOAAOST6Cvww+DnheeDwNdaTfvFYXc0029rhCUBBwQVIyCDwQQMHrX734BGD0PBr8mPjP4Zi8FfEC70YERW108l0cdMTyFifpjqeleRma/dI+vyFr2u587W3w4tNM0LXdWvru1v7h0YO0Y8tEQsCpUgYZieqjtXkaeCJPKOuw30UdqAQ0RUKQcdQPbqK7/4ga14Z1DTHt9O0++WKHJkkhlEUTsAcEK2CQDycDpXhtjrwlsms4WeNARzISRj1ya8RKr3PqK9KlZn2z/wT6t7m18cePZFUpam3tMEA/vCXkwxP4iv1GkmO7oetfGv7G/gKbwx4Cn8XTSgyeJXiZRjlYIkICH0O7BxX1+ZutfXQv7I/McV/FuLNNk49eKhyKpzSmofNPvWh5x//9L9JzIw6gioJSCcZGaZPOFCsxAD9CTgH6ev4Uy2Rp2MgB2j+IdB+PSuq3kfGCBSw3AZUnGccZ9M18J/tneBnj0yx+JVmpMtgRBdRgEhoTwvTse3r2r7Q8WfE74SfDuxN94w8W6ZYNbguyNPHLM5PYQo24n8K/OP4ofth+D/AI16+nw38AwtFoSRCaWe7AWe7micgLAhwVTByA3OOlcuMV6Wh7mW/wC9Xpn54/EHxb4R1ezt7TT4Ct2hBYKWVQPft+FcN4M0238Y+KtG8MoCiandJDIQDnYzhWIA64BNeq/FrwFp1hO2oWMfkzOwzGBgY74FeFaVr914G1Gy1yxQNfafcJLEDxkBg2DnscYOa+Zw259tjVVtuf0E6BpNl4Y0Sw0HSUMdjYwLDCCMbiowxPua1PMYdcj6ivgzRv28/hNdWVt/bFte6dcvEizgQK8aSjG4ggk4J9OcV6r4Z/aV+F3i9kXRtbty7kBUmBikJJwAoYgkk8D3r64/OHTrbn0nLMah80+9cda+KrG4KhXyXIx05z/Otb+1ovQUHIf/0+W/aH/b1g8Jaxc+D/hN9nubyI4uNYYebFn0iAJB/DNfnh4m+O/xY8dzSy+JPE93fFuiGUoDx28kgGvnW9kkkubwyMWPm9zmuj0r/jzhPeuv2jPnOReyNKwnWZJp5XMkx4JcCU59PmYnNcxNbXdpMNV06WQSDkPGxV0x2GOa09I+9N/10b+VWIv+PR/qP51B1x9zYfd/Fn4iXFnFp1zrE8sKdFcKSD2y5riJ31XVrhru+Z7mQ5yZCCB7jHGa6u9ROflHft7VatVX7FwB0/oaxo0YQWiOt4upP4mcm+nJHpZZiCxOOT0J9fSq9q91Au8bo3QgHBKgg+46Z9RWxe/8guT/AHx/Oqs/+of/AIBUi52zoPDfxb+IfhWRpdE1meBFODExMqEdxhzyCOCPSvYI/wBrf4uJGqfarb5QB/x7J2/Gvlxej/71LQbOhT7H/9k="},4710:function(t,i,e){"use strict";e.r(i);var A=function(){var t=this;t._self._c;return t._m(0)},c=[function(){var t=this,i=t._self._c;return i("div",[i("h1",[t._v("简介")]),i("p",[i("code",[t._v("simple-mind-map")]),t._v("是一个简单&强大的Web思维导图库,不依赖任何特定框架。可以帮助你快速开发思维导图产品。")]),i("blockquote",[i("p",[t._v("如果你只是想使用思维导图,你也完全可以把本项目的demo作为一个普通的在线思维导图工具使用。点击右上角的【在线示例】开始使用吧。")]),i("p",[t._v("另外也提供了客户端可供下载,支持"),i("code",[t._v("Windows")]),t._v("、"),i("code",[t._v("Mac")]),t._v("及"),i("code",[t._v("Linux")]),t._v(","),i("a",{attrs:{href:"/mind-map/#/doc/zh/client"}},[t._v("点此了解更多")]),t._v("。")])]),i("h2",[t._v("特性")]),i("ul",[i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox0",checked:"true"}}),i("label",{attrs:{for:"checkbox0"}},[t._v("插件化架构,除核心功能外,其他功能作为插件提供,按需使用,减小打包体积")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox1",checked:"true"}}),i("label",{attrs:{for:"checkbox1"}},[t._v("支持逻辑结构图、思维导图、组织结构图、目录组织图、时间轴(横向、竖向)、鱼骨图等结构")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox2",checked:"true"}}),i("label",{attrs:{for:"checkbox2"}},[t._v("内置多种主题,允许高度自定义样式,支持注册新主题")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox3",checked:"true"}}),i("label",{attrs:{for:"checkbox3"}},[t._v("节点内容支持文本(普通文本、富文本)、图片、图标、超链接、备注、标签、概要、数学公式")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox4",checked:"true"}}),i("label",{attrs:{for:"checkbox4"}},[t._v("节点支持拖拽(拖拽移动、自由调整)、多种节点形状,支持使用 DDM 完全自定义节点内容")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox5",checked:"true"}}),i("label",{attrs:{for:"checkbox5"}},[t._v("支持画布拖动、缩放")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox6",checked:"true"}}),i("label",{attrs:{for:"checkbox6"}},[t._v("支持鼠标按键拖动选择和Ctrl+左键两种多选节点方式")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox7",checked:"true"}}),i("label",{attrs:{for:"checkbox7"}},[t._v("支持导出为")]),i("code",[t._v("json")]),t._v("、"),i("code",[t._v("png")]),t._v("、"),i("code",[t._v("svg")]),t._v("、"),i("code",[t._v("pdf")]),t._v("、"),i("code",[t._v("markdown")]),t._v("、"),i("code",[t._v("xmind")]),t._v(",支持从"),i("code",[t._v("json")]),t._v("、"),i("code",[t._v("xmind")]),t._v("、"),i("code",[t._v("markdown")]),t._v("导入")]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox8",checked:"true"}}),i("label",{attrs:{for:"checkbox8"}},[t._v("支持快捷键、前进后退、关联线、搜索替换、小地图、水印、滚动条")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox9",checked:"true"}}),i("label",{attrs:{for:"checkbox9"}},[t._v("提供丰富的配置,满足各种场景各种使用习惯")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox10",checked:"true"}}),i("label",{attrs:{for:"checkbox10"}},[t._v("支持协同编辑")])])]),i("h2",[t._v("仓库目录介绍")]),i("p",[t._v("1."),i("code",[t._v("simple-mind-map")])]),i("p",[t._v("思维导图库,框架无关,"),i("code",[t._v("Vue")]),t._v("、"),i("code",[t._v("React")]),t._v("等框架或无框架都可以使用。")]),i("p",[t._v("2."),i("code",[t._v("web")])]),i("p",[t._v("使用"),i("code",[t._v("simple-mind-map")]),t._v("库,基于"),i("code",[t._v("vue2.x")]),t._v("、"),i("code",[t._v("ElementUI")]),t._v("搭建的在线思维导图。特性:")]),i("ul",[i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox11",checked:"true"}}),i("label",{attrs:{for:"checkbox11"}},[t._v("工具栏,支持插入节点、删除节点;编辑节点图片、图标、超链接、备注、标签、概要")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox12",checked:"true"}}),i("label",{attrs:{for:"checkbox12"}},[t._v("侧边栏,基础样式设置面板、节点样式设置面板、大纲面板、主题选择面板、结构选择面板")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox13",checked:"true"}}),i("label",{attrs:{for:"checkbox13"}},[t._v("导入导出功能;数据默认保存在浏览器本地存储,也支持直接创建、打开、编辑电脑本地文件")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox14",checked:"true"}}),i("label",{attrs:{for:"checkbox14"}},[t._v("右键菜单,支持展开、收起、整理布局等操作")])]),i("li",[i("input",{attrs:{type:"checkbox",id:"checkbox15",checked:"true"}}),i("label",{attrs:{for:"checkbox15"}},[t._v("底部栏,支持节点数量、字数统计;支持切换编辑和只读模式;支持放大缩小;支持全屏切换;支持小地图")])])]),i("p",[t._v("提供文档页面服务。")]),i("p",[t._v("3."),i("code",[t._v("dist")])]),i("p",[t._v("打包"),i("code",[t._v("web")]),t._v("后的资源文件夹。")]),i("h2",[t._v("相关文章")]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/6987711560521089061"}},[t._v("Web思维导图实现的技术点分析")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7157681502506090510"}},[t._v("只需百来行代码,为你的Web页面增加本地文件操作能力,确定不试试吗?")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7199666255883927612"}},[t._v("当你按下方向键,电视是如何寻找下一个焦点的")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7204854015463538744"}},[t._v("如何在canvas中模拟css的背景图片样式")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7233012756314701884"}},[t._v("我的第一个Electron应用")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7276712861514170409"}},[t._v("探索如何将html和svg导出为图片")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7287913415803764747"}},[t._v("dom-to-image库是如何将html转换成图片的")])]),i("p",[i("a",{attrs:{href:"https://juejin.cn/post/7295669711533998117"}},[t._v("两天实现思维导图的协同编辑?用Yjs真的可以")])]),i("h2",[t._v("特别说明")]),i("p",[t._v("本项目可用于学习和参考,用于实际项目时请先深度体验一下是否能满足您的需求。")]),i("p",[t._v("本项目可能没有完整测试到每一个功能点,所以可能存在bug,另外,当节点数量非常多的时候,性能也存在一些问题,因为每个人能接受的卡顿程度不一样,所以你可以自行测试节点数量上限。一般来说,500个节点以内比较流畅,1000个节点以上卡顿比较明显。")]),i("p",[t._v("如果有建议或发现了bug,可以在此提交"),i("a",{attrs:{href:"https://github.com/wanglin2/mind-map/issues"}},[t._v("issues")]),t._v("。")]),i("p",[t._v("项目内置的主题和图标部分来自于:")]),i("p",[i("a",{attrs:{href:"https://naotu.baidu.com/"}},[t._v("百度脑图")])]),i("p",[i("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("知犀思维导图")])]),i("p",[t._v("尊重版权,主题和图标请勿直接用于商业项目。")]),i("h2",[t._v("为什么不是?")]),i("p",[t._v("1."),i("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("知犀")])]),i("p",[t._v("知犀是一个免费的思维导图产品,支持多端同步,ui设计很漂亮,功能也很齐全,但是它并不开源,所以只能作为一个用户,而无法在你的项目中使用。")]),i("p",[t._v("类似知犀的其他在线思维导图产品还有很多,比如"),i("a",{attrs:{href:"https://gitmind.cn/"}},[t._v("GitMind")]),t._v("、"),i("a",{attrs:{href:"http://www.mindline.cn/"}},[t._v("MindLine")]),t._v("、"),i("a",{attrs:{href:"https://www.mindmeister.com/zh"}},[t._v("MinMeister")]),t._v("、"),i("a",{attrs:{href:"https://mubu.com/"}},[t._v("幕布")]),t._v("等等,搜索引擎上搜索一下非常多,但是这些产品或者是要收费,或者是小公司开发的,稳定性和持续性无法保证,当然最关键的就是它们都不开源。")]),i("p",[t._v("2."),i("a",{attrs:{href:"https://github.com/fex-team/kityminder-core"}},[t._v("kityminder-core")])]),i("p",[i("code",[t._v("kityminder-core")]),t._v("是百度开发的开源的脑图工具,功能很强大,性能也很好,但是它已经不维护了,所以代码比较陈旧,界面美观度也比较一般,另外bug只能自己修,功能只能自己开发,对前端开发能力要求比较高。")]),i("p",[t._v("3."),i("a",{attrs:{href:"https://github.com/hizzgdev/jsmind"}},[t._v("jsmind")]),t._v("、"),i("a",{attrs:{href:"https://github.com/ssshooter/mind-elixir-core"}},[t._v("Mind-elixir")]),t._v("、"),i("a",{attrs:{href:"https://github.com/ondras/my-mind"}},[t._v("my-mind")]),t._v("、"),i("a",{attrs:{href:"https://github.com/awehook/blink-mind"}},[t._v("blink-mind")]),t._v("、"),i("a",{attrs:{href:"https://github.com/luvsic3/remind"}},[t._v("remind")]),t._v("、"),i("a",{attrs:{href:"https://github.com/hellowuxin/vue3-mindmap"}},[t._v("vue3-mindmap")]),t._v("、"),i("a",{attrs:{href:"https://github.com/zyascend/ZMindMap"}},[t._v("ZMindMap")]),t._v("、"),i("a",{attrs:{href:"https://github.com/RockyRen/mindmaptree"}},[t._v("mindmaptree")]),t._v("...")]),i("p",[t._v("这些开源的思维导图也都不错,各有各的特点,但是它们也都有一定缺点,比如停止更新、界面美观度一般、功能比较少、依赖某个框架等等。")]),i("p",[t._v("综上,在开源的思维导图中,你很难找到一个比"),i("code",[t._v("simple-mind-map")]),t._v("更好的选择。当然,"),i("code",[t._v("simple-mind-map")]),t._v("也远远谈不上最好,它也有很多不足,如你在前面的【特别说明】所看到的那样,不过"),i("code",[t._v("simple-mind-map")]),t._v("一直处于快速迭代中,欢迎你加入进来一起完善它。")]),i("h2",[t._v("浏览器兼容性")]),i("p",[t._v("推荐使用最新版"),i("code",[t._v("chrome")]),t._v("浏览器。")]),i("p",[t._v("有限测试情况:")]),i("p",[t._v("正常运行:"),i("code",[t._v("360")]),t._v("极速浏览器(v13.5.2036.0)、"),i("code",[t._v("opera")]),t._v("浏览器(v71.0.3770.284)、"),i("code",[t._v("Firefox")]),t._v("(v98.0.2)。")]),i("p",[t._v("不支持:"),i("code",[t._v("IE")]),t._v("浏览器。")]),i("h2",[t._v("License")]),i("p",[i("a",{attrs:{href:"https://opensource.org/licenses/MIT"}},[t._v("MIT")])]),i("h2",[t._v("请作者喝杯咖啡")]),i("p",[t._v("开源不易,如果本项目有帮助到你的话,可以考虑请作者喝杯咖啡~")]),i("blockquote",[i("p",[t._v("厚椰乳一盒 + 纯牛奶半盒 + 冰块 + 咖啡液 = 生椰拿铁 yyds")])]),i("blockquote",[i("p",[t._v("推荐使用支付宝,微信获取不到头像。转账请备注【思维导图】。")])]),i("img",{staticStyle:{width:"300px"},attrs:{src:e("076b")}}),i("img",{staticStyle:{width:"300px"},attrs:{src:e("4968")}}),i("div",{staticStyle:{display:"flex"}},[i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("f8ce")}}),i("p",[t._v("Think")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("2cd3")}}),i("p",[t._v("志斌")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("396b")}}),i("p",[t._v("小土渣的宇宙")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("4593")}}),i("p",[t._v("qp")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("84dd")}}),i("p",[t._v("ZXR")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("3f65")}}),i("p",[t._v("花儿朵朵")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("bf03")}}),i("p",[t._v("suka")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("654b")}}),i("p",[t._v("Chris")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("80ba")}}),i("p",[t._v("水车")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("a930")}}),i("p",[t._v("仓鼠")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("bcae")}}),i("p",[t._v("千帆")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("bba7")}}),i("p",[t._v("才镇")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("9465")}}),i("p",[t._v("小米bbᯤ²ᴳ")])])]),i("div",{staticStyle:{display:"flex"}},[i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("6ea0")}}),i("p",[t._v("*棐")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("5b80")}}),i("p",[t._v("Luke")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("7215")}}),i("p",[t._v("布林")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("0b8c")}}),i("p",[t._v("南风")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("d33b")}}),i("p",[t._v("蜉蝣撼大叔")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("ca5d")}}),i("p",[t._v("乙")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("5ea5")}}),i("p",[t._v("敏")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("aaba")}}),i("p",[t._v("沐风牧草")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("eac7")}}),i("p",[t._v("有希")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("4000")}}),i("p",[t._v("樊笼")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("30de")}}),i("p",[t._v("达仁科技")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("8d3e")}}),i("p",[t._v("小逗比")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("2707")}}),i("p",[t._v("天清如愿")])])]),i("div",{staticStyle:{display:"flex"}},[i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("4f23")}}),i("p",[t._v("敬明朗")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("5b80")}}),i("p",[t._v("飞箭")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("4623")}}),i("p",[t._v("戚永峰")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("6065")}}),i("p",[t._v("moom")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("331d")}}),i("p",[t._v("张扬")])]),i("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[i("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:e("a4f7")}}),i("p",[t._v("长沙利奥软件")])])])])}],r={},n=r,a=e("2877"),o=Object(a["a"])(n,A,c,!1,null,null,null);i["default"]=o.exports},4968:function(t,i,e){t.exports=e.p+"img/wechat.jpg"},"4f23":function(t,i,e){t.exports=e.p+"img/敬明朗.jpg"},"5b80":function(t,i,e){t.exports=e.p+"img/default.png"},"5ea5":function(t,i,e){t.exports=e.p+"img/敏.jpg"},6065:function(t,i,e){t.exports=e.p+"img/moom.jpg"},"654b":function(t,i,e){t.exports=e.p+"img/Chris.jpg"},"6ea0":function(t,i){t.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD97zDb4P7tfyFeS6F8U/BXiLx5rfw/sZU/tLRPswYEACU3MbSqIz/FhUYnHofSvU9QkhhsbiS5lFtEsbFpWIAQYOWJPAx1zX5Gfs+eFtK/4aPF5c/GXRvEMOn3Ly2llaSkXV08UUsEaMWUKfLjlYEKzkjPrkevhMNCrTqSlpZFJNvQ/WZoIf8Anmv5D/CsG71PTLN72OeMD7BCs8hCg5Rs8j1xtOfTiulYDIryDUr9L/xX4p02In/QdJjRiO7z+YQB6kBeR7ivMhG7Lilq2d4l/pUi2jRlG+3KHhAAy6lQwIGOmCDmqDX+imY24mhLgkFcjORXh3wTbWPFepN8Qri6ZtDgsYNM02BkKnMCKLiUg4+867R06Gu0vvB+v3dnLpjSW8cEpADh2LAAqQduwZOVJxu6sea6/ZqL5W9ilZPsdqdR0Ty/N8+DbnbnI6+lVJr7SCzoZYQYgSwyvAyAfyJA9jx1rhLzwR4ge6e9tp4AzxmJkZ2K7fmyd2zvuAAxwABk1lW3hLW3khsJF2DSpcxSHeqSxJG0Y3MVxukLBiU3AFAzAEharki1uQ+XuegQ6lpVzemxt13uEDBgmUIIBwH6EgEZHUVd2Rf3V/75rltD8N32lalPe3MsbpOd5CsxIYqqEcqAR8uc8EkngV1dZyUb6HG2r6H/0P1l/atsNR174I+IvCmg3y2Wr61A0ForP5ZncDcYVY4ALKCAM89O9fgf8NfhF8T5vG+mWGn6Nd6dfWl1G5nkRoEtjEwJkaQ4ChcZzntxX9Lvinwj4e8baNN4f8TWaXtjPjKPkEEdGUjBVgeQQQQa+f7D9lnwLY6j9q1LV9a1eyQhlsb2/eS1AByAVABYD0Yketfa5TnCwdCdLue1l+IhQnzS3PoG1vEvtPhvLSVbhZowyyLwr5HDD2J5Hsa/EP8Aam+L3jXwF45vtC0XxC90L+5Mt1PbZiETowxCjgksVAAORgc4HNffn7W/xh1H4feCo/DfgOY2ut38YFq0YXywgwoRMdGIwFABGcCvwU8aa419qLRatc3V7doSZY5CEEdy33yDySQevAye/FLKMHztzlseRKooJvoftv8AsbfFzQtc0C48H3msqL+JlkisrgoJQXAL+UwwHUn5iMAgk565r7kfrX82Xw3+I3iHwf4k8NfEi1m3XuhkwSi4MaRPACAVDnnJAwSeeBjpX7b/AAI/aR0f432mu3sWlyaRb6EYt9xI6tBIJFJO1hwCuDkHoCD3rkzHBOEnOOx5dPFxk+Vs+jZTwMH/AOvXgHjz40SeGNdg0Lw14Zv/ABTJbXRg1U2iEf2fHtRhI24ASAqxOFJPBr1nw14r8PeMNPOp+HL1L61SRomkjzgOhwQc45B9K/Nb9qrxr438PfEHwrdG7u/Cz6j4j/s+4gtr6YwXenDasczlGCKzqclQMqOpzSyvBqvW5JI7YuN77o/SbRtd0fxLpkOtaFdpe2U4O2SM5BIOCD6EHIIPIPBq3WB4P8LeF/Bfh630LwbAsGloXlQJIZd7Sku7FySWLMSSSTzWqVbPSvLkopvk2POqNJn/0f31BxWdqAjMEwkGUKHcM4yMHPPbjvWie/FfOn7Q3xj0X4S+DL251GKeS4vYZYoWjQMiSPGxXcSerbSFUZJbA4zmtqcZSdktx3XU/LF/FN7a+Nbv4mzTo/hrwtfvDpdpfTmVXdQVWMAlgyxYJB56j6183L4f8OeNfH1/4n8QwxWMF7cG7KiQBXQsC7EYAUHJ2jqTwKim0zX/ABpNb+HtIspYtF0SOW4Ee4yo0pfyzNJsGcHaCScD6DFeWeIfFKOZtPguQbhGKSyfKAqgbWORkMzdEUZCDuScj9Po0rfC7M+ax+KSPtCL9kTQPHR1HXfDWv6OsEk1yv2R5tk6RqCY2RACRhcE5468171+yjD4HvPhs3h/x7rjGXT76UXNhErqk5U7UllaNdzRuo+UHAIH4V+afh/43W/g/UkvotHjvJrXMa3KSvFcglCpO9ThgQcEEHPOeMV+nX7Cfh/x14shT4r61e2LeHGju7a1giG+7d5JFJSc4AVYCpCrzyxINeTjVVjTfO7o8TDV6dSslTR9w+EfiH4A1nUG8G+EHIawjBEcdtJDAiDjCsVVSR3Ar4D/AGn9M8LaV8QdCvdW0QXMd54mW4lWWcSPHKwUGeQqhCQHAAjZsAZ4GcV+oghgi/1MSpn+6ACfyxX5r/tf+LvEOkfEvwl4f0HVTY22s6nFbX0UGoiV5InKgh7QxjycgnDBiT7V5+U1LYhW0Pp6lR04XZ9xeBvCMXgrw6NIhvDepLNLchgAIlE7F9kQBIEa5woHGOldFWX4Z8MaZ4O0K28N6O9xJZ2YYRm5maeQBiTgu5JIBPA7DitYKMV4tR80m7mEpXZ//9L98pHEaPJgttBOFGScdgPWvz3hvrv9oX9o42Oo2Ri8O+A4LiRreVg6m5bdDAZFGVEhfc4BJwEXuTn69+I1x8QLuzfw78PLaOC8u0xJqNy5WK2RuCUABZ5MZIGAB1JzgVhfCb4SaN8JtKuYlum1DWNYkWW+vZeHuJUXAAX+FVUHAyT1JJJJPfRmoJy6mU9bLofgzqep698JtM+I3gfxBdtDFDqI0ydlJFzJAhaSNEPYS4ViT0Br45tLGBtOvtdvUIiUiO3UkjdLITg5xyFAJODyRiv1W/bY8Ea8fHXilLxBaab4vn0qO0WBgRJLE21ppyVJU4YgAEDgEntXmH7ZXw30DwbdeFvh74YtIzBpVhaSTuoAlCwwyNKcDruzuY4JJxjvn9Aw+KhZd2fnOYQk2+yPzlm+S0hiYYaQmQnvjoM1+x3/AATC+JkE2ieIPhReGNJrWT+0LXLYd0kOJBgnkKQDkc8818xfFH9kzQfCfw28C+LbHV57zXfHN9YQLZMqp9mguUJYADlscEMQOK+mvjj+zN/wpC98NfG74RTPYXOkXVhFfRxHCFHAV5GxyFYjDDOMMOOprjxmIpVYchw4OlVw9T2nY/WCZguPXpX5lftq7IfiT8PbmSO7aWPWYGC+bC8ZTKkeXEMSAnsWOD0Br9A9K8SWuv2Ns8E2w38ZCSxuCQTGCWTI6gtkZHBHINfn98efDfiW61Lw1YaN4cupW0vxYJ5J5w26RESOMTEpDsSGQrvLb3JYkkAnA+ewUnCqm2fTZhXTpXifenhzX77xFa3V9eaNc6IsVw8MUd0VEsqJjEm1SQobsCc4raPWuZ8JeM7Xxnp0upwQG2a3uJbWRS4kQvC20mOQY3oT91sDPTGa6TmvMqb7Howaavc//9P6F1H/AIKYeG3EkVpaOAAGViPmOckgduOma89H/BSKyvriym1K1kj8hZHZU5AlYbRjPPAJ/GvyEm++1VD2/wA9q/V/7Jw0Voj87xWaV09GfXHxu/aS1D4seIdNubm8nFhaGFhGCQVKuS3TqduOvfmvNPGHxXu/GPixtf1O5uJDAPLt2LnfgkAsTznC5AH+NeIr1/GpP4hWvsIQtFI+Nq4mpN3bPubxH+1FpXiLx74S1ie2kbSPCkQEETHnzYohHERjgYAOa991f9ufw34j0C50vUbZ3injVJIHGVkAZQTxjnbn9K/KBfv/AIGn/wAQrw6mHhZaGf16trqfp74e/bS0fStUtr0pIsVik6xIBgAOioo4PYDJ+legaj+3Z4YuYZIPmuYpoQZEmQOrSFl4wcgAKDjjnNfkZ/CKfXC6ML7GSxdePuqZ+r8H7cnhq31RXtka2sNyAQogARQDnaAABggEDpWtcf8ABQTRmuJWhiYRlmKj0GeK/Ik9RUo6VlKlE1w+NrNO7P/Z"},7215:function(t,i,e){t.exports=e.p+"img/布林.jpg"},"80ba":function(t,i,e){t.exports=e.p+"img/水车.jpg"},"84dd":function(t,i,e){t.exports=e.p+"img/ZXR.jpg"},"8d3e":function(t,i){t.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD9m54Q2eKyZbf0FdnPae1ZUtvnPFfQxqnjSpnGzwYzisWaHr8v6V281qTlqyprXrkV2QrHHOmzg7m33dqxprfrx0rvLizHPGKxp7QDtXbGuc7ps4We2BOSKyZrYZOFruJrZTnjmsqa1UdRitVXIdI4yS1z2qv9lHpXVTW4qt5H1qvrBSpH/9D9t5db0ZmZVvIiV6guOKxr/X9BtEMk97EoHbcDXyZJ4ispv+PedJQcnKnOcdayG1g3jHyGBUc5B4H0r1o0vM8x1fI+kNX+I/huzVhC7XLAfwDj82wK4+f4t6SyFlspflGDkqMe3WvCbq5cKysRtJxkHPP4dq5e+u7yNCETcsZAJU7gSemMda6YqKMJTk+h7prHxgghjQ2dgSx6+a4AA9gAc1m6H8YtI1G4FnrUQsHkOEkB3Rk+5I+X6968SXSdV1ub7DbkeeFdyrHBIRSxxnvgV59d/ZZDmecoVLq4A4jCAEA89STirUopai9++h98rJbXcYmtpFlRuhUhh+lUJoVwRiviHwt4v1fTbgTaTcSqiSRxlQS0ZMhO3cORyAc554616f8A8LU8Urf3FjIInlgh8wALyxPIPXjIIJqHNrqdMVzLY98kjAPAqtsHp/n864Sb4i2FnpumX+oANFqSIY5IuV3E4IJ6DJyQMk4BFXh400MjPmnn/ZrD25p7I//R9W0nxx4f8J201rfRMZY5XZFOHJB5OMkZ5bP4VX8W+MNU/wCEgtbnQYEgFiiqbeQnypw7HDsBnBHOcdeK8Y8V+LvDMcUmoz2sb27uFWPAd94+UHzOCASMnAIHXB61paV4ifX2tdXlAjNzBGSoOQCkzJx37VtWlO6urBSSV9Lnew/Eu7hvnS20a4kvd7OI4o2kRVAPyggElSMEnGccYrK1n4t6ms2+6ifSy8SsIggGApIJw2CCSD16g5ryS38UfEGYajp3hG8ihktJ5i0scuy48skjBx0UDrjp3rmV+HfxS163n1Gc/a5ncMG84SMRgkknBJ49Bjil9cit2ckqb6H0d4R+MMGj6jPfYimneNwpnnCY81SDhSOpzzjIFU9GM+raVrp1XVdO0vyZIZJGeUNJOrk4RADg7eDkfSvkm+8Ea813BDqenzPcNKVdk+ZlUDqBkZ6dP0qrrNzD4T0qP7dYSxpKSo3n5t3IzjJAAABxmuR4y9vZy3N/YvlXMj6n0a40WOCZDrqA3M6ea8c/lDMAYBkXaSV2scEkZORyKx/EHiWwsLgXfh+9lnlWFxKzODuCDyxzjBBUZ46GvlnQ7HXNXWXU7HT2htFUSNNIGjTA4BUscH6DPrU0l81ncrBcIs8u07VMoIJPTGTjn0I/nTWIkpashr3bJH11oJ8a+JvD1pYrbGbTLYSSwBZY1IUAmPBySQWYkAgHJJB7D2bTrb4uyafayf2PZjdEhw4O7lR156+tfnLb6tqcJEau9m0UgA2ykDIOQAB3VgcEZArvY/jF8Uo41ji8TSbFAC/PngdOamWIbd7FQk0tUf/S+UJbnUP+EfljnckrIAAAF+XnsVj/AFBPrkcV2Hg/xnBpmh2C3WZZ44jGV4B/1zSZznOD0HeuT8Tstu+tWkAO22uSg9cB8dgf1zXjWpQ+JYb6PyEQ2OAWG8DdtJJBG7cTyeoHWuqr7yRx0nZM9EuPG82p3OqW+mIbHUfNm3SKBseJsgBwBnIzjI659q8y0nxN4/8ADOqpd+Gr67trlCVQxO5PAwQACSRjtjoa9X8PeH0j0S9v72xa2ullISdHyksJIcfIMkEKCSc57Yrz2HU5bnxE9tYzmDL7WnEQZoUPAC84A+vOMVyKS52rGzjon1Pqbw9rnxo8TeEbB2aJ9TVsx3LuEuBGTyX3AMDjI65xjBFT+IbLxyL9YvEFzpcccjNuWT92NoXIYnOck5IOMnvmrWi+bG8Fpb6mXuoVX5ivD4A5ypI57j1r0yDw9b+KNUtvtBQXCAgSswCrkcsSeAMZyT0xxXjY2NGD5kjWjzyfKz5o8ZSeJ9RaSxsCiC3gRWjgYCIfLkMCAQSeMnvjiuV8NWNtpGoG68UacdVlSRWiQOSlsyt1OCBJkAEKeAfXpXoPxfsbX4f+L08MC5aNJ2RgoJJJlTJIKZBGScDkDv0rhtOTTdC0hpPtErXTt5amQhiMkhCgBJBJJAIycHBwRWMKycLx2NZ80XZrY2dTfRrq8lWxhYlGMhkklczykAkAgnjgnHU9B0rz37SzfNFpk4Q8qN7cDt3rtbS6sI7mVNXtBdw6jEczSkpJFLGAo8sLnAC5ABJDfxA8YzWu4Nx+z2SiLPyAkZ29v4fSlGpyKyZjJXP/0/iCe+8/Rr+e5nE7vIrMxIYklgTyWfqTnjH581x1xYXuo38OrNqNuFQ7Tal2R8A9SSAmCxBxuzyT0FT6Dc3M+k3HnyvJl0+8xPdPWud1OSQWyYY8kd67+XY4ons/ivxnpc3hm10y6vlsp7SIAJBIspLn5QQQMcKCSM8ZArB8A+C9Iv1fUYtQa+mZgZDG7RhCeSGGcknvzz2r581Jm8695PDDH/fNexfCOaaPUzFHIypKgLqCQGODyR3NeFXg+WUoux2QlzNXPpeTW/DOhRpbaTLaJfgBUDnjpg5bOT0OB7VxWv8AxHa5iFtBcR+bE20mF2RS74AORu4A6ZIOffp8z/ESSQeKrnDEYU459q1PDgH2jR/dwT9QDiuOVBWvJ3C7i9D66u/ilrXijSbfQvFOj2OqvbDy7bUXgBubRQvUOCGIYAqRjnPJyTXJ6Zd3mkaw9/azi1EsLiQyxwlXiKYIEfzAkMAeASDyDkGuELv9gvn3HdsJznnPNZEf77wppM03zyYm+ZuTwxxya8VQtLlRUqkpJSZ2V1qOnsxWyjkBkDAPG4LjcMABSQoAJB4AJGBnOa8xk0vxWZGKahabSTjcF3Y9/n6+tOvby88u5HnyYVVwNx44HStq3jjNvESoJKr29q7IrlVjO1z/2Q=="},9465:function(t,i,e){t.exports=e.p+"img/小米.jpg"},a4f7:function(t,i,e){t.exports=e.p+"img/长沙利奥软件.jpg"},a930:function(t,i,e){t.exports=e.p+"img/仓鼠.jpg"},aaba:function(t,i,e){t.exports=e.p+"img/沐风牧草.jpg"},bba7:function(t,i,e){t.exports=e.p+"img/才镇.jpg"},bcae:function(t,i,e){t.exports=e.p+"img/千帆.jpg"},bf03:function(t,i,e){t.exports=e.p+"img/suka.jpg"},ca5d:function(t,i,e){t.exports=e.p+"img/乙.jpg"},d33b:function(t,i,e){t.exports=e.p+"img/蜉蝣撼大叔.jpg"},eac7:function(t,i,e){t.exports=e.p+"img/有希.jpg"},f8ce:function(t,i,e){t.exports=e.p+"img/Think.jpg"}}]); \ No newline at end of file diff --git a/dist/js/chunk-6cbc7d60.js b/dist/js/chunk-6cbc7d60.js deleted file mode 100644 index 40921934..00000000 --- a/dist/js/chunk-6cbc7d60.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6cbc7d60"],{"076b":function(t,e,i){t.exports=i.p+"img/alipay.jpg"},"0b8c":function(t,e,i){t.exports=i.p+"img/南风.jpg"},2707:function(t,e,i){t.exports=i.p+"img/天清如愿.jpg"},"2cd3":function(t,e,i){t.exports=i.p+"img/志斌.jpg"},"30de":function(t,e,i){t.exports=i.p+"img/达仁科技.jpg"},"331d":function(t,e,i){t.exports=i.p+"img/张扬.png"},"396b":function(t,e,i){t.exports=i.p+"img/小土渣的宇宙.jpeg"},"3f65":function(t,e,i){t.exports=i.p+"img/花儿朵朵.jpg"},4e3:function(t,e,i){t.exports=i.p+"img/樊笼.jpg"},4593:function(t,e,i){t.exports=i.p+"img/qp.jpg"},4623:function(t,e){t.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD9UJqz5q0Jqz5q6D4sz5qx5q2Jqx5qDoM+brWdJ94fWtGbqM9c1Vm710GC3M+XrWdN0P41ac/OPrVWc9T6ZrnNzHm6H8apVdnlzkeoxVKgD//Q/Uias+arPnEf/qqtMe/0roPkzOm45zjnrjP6V4L8Zfj18O/ghoz6v40vlFy4zBZoc3NznoUjHCg+vYV7Trl8um6Xd6jON32JGnI9cAk/yr8DtBMX7QXxN8Q/Er4i3zS2IuCkCuQAiZzDCSf4VHWsK9f2VI7sFR9rVPUPFX/BR74k6jvfwn4Qt9Msy7GOe4lM7gYPQkdfSvXPgD+3npfim8Hhv4wS22kanOwW3u4h/o77iAFcf3iSAD6mvNPFOn/DDUbYabY3FjFbBWSTymHG0HnH+NfEfiHwD4JjE7aJqQuXDOVjx3wcAH1JxivOo5g72Ppq+Uo/ouju4bqKK8tZUliuF3xyx9Cn1HY1VllycevFfnf/AME9PidrPiXwbrngLWrh7weG5ITaPJnItnDDy8HptbkfSv0Im617B8dVpeyZXl61DTZjg596h86gg//R/Tiaas+aarEozWfNXQfJnL+MIpbzwlrdnaKTO1jOq4BJJIOAAOST6Cvww+DnheeDwNdaTfvFYXc0029rhCUBBwQVIyCDwQQMHrX734BGD0PBr8mPjP4Zi8FfEC70YERW108l0cdMTyFifpjqeleRma/dI+vyFr2u587W3w4tNM0LXdWvru1v7h0YO0Y8tEQsCpUgYZieqjtXkaeCJPKOuw30UdqAQ0RUKQcdQPbqK7/4ga14Z1DTHt9O0++WKHJkkhlEUTsAcEK2CQDycDpXhtjrwlsms4WeNARzISRj1ya8RKr3PqK9KlZn2z/wT6t7m18cePZFUpam3tMEA/vCXkwxP4iv1GkmO7oetfGv7G/gKbwx4Cn8XTSgyeJXiZRjlYIkICH0O7BxX1+ZutfXQv7I/McV/FuLNNk49eKhyKpzSmofNPvWh5x//9L9JzIw6gioJSCcZGaZPOFCsxAD9CTgH6ev4Uy2Rp2MgB2j+IdB+PSuq3kfGCBSw3AZUnGccZ9M18J/tneBnj0yx+JVmpMtgRBdRgEhoTwvTse3r2r7Q8WfE74SfDuxN94w8W6ZYNbguyNPHLM5PYQo24n8K/OP4ofth+D/AI16+nw38AwtFoSRCaWe7AWe7micgLAhwVTByA3OOlcuMV6Wh7mW/wC9Xpn54/EHxb4R1ezt7TT4Ct2hBYKWVQPft+FcN4M0238Y+KtG8MoCiandJDIQDnYzhWIA64BNeq/FrwFp1hO2oWMfkzOwzGBgY74FeFaVr914G1Gy1yxQNfafcJLEDxkBg2DnscYOa+Zw259tjVVtuf0E6BpNl4Y0Sw0HSUMdjYwLDCCMbiowxPua1PMYdcj6ivgzRv28/hNdWVt/bFte6dcvEizgQK8aSjG4ggk4J9OcV6r4Z/aV+F3i9kXRtbty7kBUmBikJJwAoYgkk8D3r64/OHTrbn0nLMah80+9cda+KrG4KhXyXIx05z/Otb+1ovQUHIf/0+W/aH/b1g8Jaxc+D/hN9nubyI4uNYYebFn0iAJB/DNfnh4m+O/xY8dzSy+JPE93fFuiGUoDx28kgGvnW9kkkubwyMWPm9zmuj0r/jzhPeuv2jPnOReyNKwnWZJp5XMkx4JcCU59PmYnNcxNbXdpMNV06WQSDkPGxV0x2GOa09I+9N/10b+VWIv+PR/qP51B1x9zYfd/Fn4iXFnFp1zrE8sKdFcKSD2y5riJ31XVrhru+Z7mQ5yZCCB7jHGa6u9ROflHft7VatVX7FwB0/oaxo0YQWiOt4upP4mcm+nJHpZZiCxOOT0J9fSq9q91Au8bo3QgHBKgg+46Z9RWxe/8guT/AHx/Oqs/+of/AIBUi52zoPDfxb+IfhWRpdE1meBFODExMqEdxhzyCOCPSvYI/wBrf4uJGqfarb5QB/x7J2/Gvlxej/71LQbOhT7H/9k="},4968:function(t,e,i){t.exports=i.p+"img/wechat.jpg"},"4f23":function(t,e,i){t.exports=i.p+"img/敬明朗.jpg"},"5b80":function(t,e,i){t.exports=i.p+"img/default.png"},"5ea5":function(t,e,i){t.exports=i.p+"img/敏.jpg"},6065:function(t,e,i){t.exports=i.p+"img/moom.jpg"},"654b":function(t,e,i){t.exports=i.p+"img/Chris.jpg"},"6ea0":function(t,e){t.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD97zDb4P7tfyFeS6F8U/BXiLx5rfw/sZU/tLRPswYEACU3MbSqIz/FhUYnHofSvU9QkhhsbiS5lFtEsbFpWIAQYOWJPAx1zX5Gfs+eFtK/4aPF5c/GXRvEMOn3Ly2llaSkXV08UUsEaMWUKfLjlYEKzkjPrkevhMNCrTqSlpZFJNvQ/WZoIf8Anmv5D/CsG71PTLN72OeMD7BCs8hCg5Rs8j1xtOfTiulYDIryDUr9L/xX4p02In/QdJjRiO7z+YQB6kBeR7ivMhG7Lilq2d4l/pUi2jRlG+3KHhAAy6lQwIGOmCDmqDX+imY24mhLgkFcjORXh3wTbWPFepN8Qri6ZtDgsYNM02BkKnMCKLiUg4+867R06Gu0vvB+v3dnLpjSW8cEpADh2LAAqQduwZOVJxu6sea6/ZqL5W9ilZPsdqdR0Ty/N8+DbnbnI6+lVJr7SCzoZYQYgSwyvAyAfyJA9jx1rhLzwR4ge6e9tp4AzxmJkZ2K7fmyd2zvuAAxwABk1lW3hLW3khsJF2DSpcxSHeqSxJG0Y3MVxukLBiU3AFAzAEharki1uQ+XuegQ6lpVzemxt13uEDBgmUIIBwH6EgEZHUVd2Rf3V/75rltD8N32lalPe3MsbpOd5CsxIYqqEcqAR8uc8EkngV1dZyUb6HG2r6H/0P1l/atsNR174I+IvCmg3y2Wr61A0ForP5ZncDcYVY4ALKCAM89O9fgf8NfhF8T5vG+mWGn6Nd6dfWl1G5nkRoEtjEwJkaQ4ChcZzntxX9Lvinwj4e8baNN4f8TWaXtjPjKPkEEdGUjBVgeQQQQa+f7D9lnwLY6j9q1LV9a1eyQhlsb2/eS1AByAVABYD0Yketfa5TnCwdCdLue1l+IhQnzS3PoG1vEvtPhvLSVbhZowyyLwr5HDD2J5Hsa/EP8Aam+L3jXwF45vtC0XxC90L+5Mt1PbZiETowxCjgksVAAORgc4HNffn7W/xh1H4feCo/DfgOY2ut38YFq0YXywgwoRMdGIwFABGcCvwU8aa419qLRatc3V7doSZY5CEEdy33yDySQevAye/FLKMHztzlseRKooJvoftv8AsbfFzQtc0C48H3msqL+JlkisrgoJQXAL+UwwHUn5iMAgk565r7kfrX82Xw3+I3iHwf4k8NfEi1m3XuhkwSi4MaRPACAVDnnJAwSeeBjpX7b/AAI/aR0f432mu3sWlyaRb6EYt9xI6tBIJFJO1hwCuDkHoCD3rkzHBOEnOOx5dPFxk+Vs+jZTwMH/AOvXgHjz40SeGNdg0Lw14Zv/ABTJbXRg1U2iEf2fHtRhI24ASAqxOFJPBr1nw14r8PeMNPOp+HL1L61SRomkjzgOhwQc45B9K/Nb9qrxr438PfEHwrdG7u/Cz6j4j/s+4gtr6YwXenDasczlGCKzqclQMqOpzSyvBqvW5JI7YuN77o/SbRtd0fxLpkOtaFdpe2U4O2SM5BIOCD6EHIIPIPBq3WB4P8LeF/Bfh630LwbAsGloXlQJIZd7Sku7FySWLMSSSTzWqVbPSvLkopvk2POqNJn/0f31BxWdqAjMEwkGUKHcM4yMHPPbjvWie/FfOn7Q3xj0X4S+DL251GKeS4vYZYoWjQMiSPGxXcSerbSFUZJbA4zmtqcZSdktx3XU/LF/FN7a+Nbv4mzTo/hrwtfvDpdpfTmVXdQVWMAlgyxYJB56j6183L4f8OeNfH1/4n8QwxWMF7cG7KiQBXQsC7EYAUHJ2jqTwKim0zX/ABpNb+HtIspYtF0SOW4Ee4yo0pfyzNJsGcHaCScD6DFeWeIfFKOZtPguQbhGKSyfKAqgbWORkMzdEUZCDuScj9Po0rfC7M+ax+KSPtCL9kTQPHR1HXfDWv6OsEk1yv2R5tk6RqCY2RACRhcE5468171+yjD4HvPhs3h/x7rjGXT76UXNhErqk5U7UllaNdzRuo+UHAIH4V+afh/43W/g/UkvotHjvJrXMa3KSvFcglCpO9ThgQcEEHPOeMV+nX7Cfh/x14shT4r61e2LeHGju7a1giG+7d5JFJSc4AVYCpCrzyxINeTjVVjTfO7o8TDV6dSslTR9w+EfiH4A1nUG8G+EHIawjBEcdtJDAiDjCsVVSR3Ar4D/AGn9M8LaV8QdCvdW0QXMd54mW4lWWcSPHKwUGeQqhCQHAAjZsAZ4GcV+oghgi/1MSpn+6ACfyxX5r/tf+LvEOkfEvwl4f0HVTY22s6nFbX0UGoiV5InKgh7QxjycgnDBiT7V5+U1LYhW0Pp6lR04XZ9xeBvCMXgrw6NIhvDepLNLchgAIlE7F9kQBIEa5woHGOldFWX4Z8MaZ4O0K28N6O9xJZ2YYRm5maeQBiTgu5JIBPA7DitYKMV4tR80m7mEpXZ//9L98pHEaPJgttBOFGScdgPWvz3hvrv9oX9o42Oo2Ri8O+A4LiRreVg6m5bdDAZFGVEhfc4BJwEXuTn69+I1x8QLuzfw78PLaOC8u0xJqNy5WK2RuCUABZ5MZIGAB1JzgVhfCb4SaN8JtKuYlum1DWNYkWW+vZeHuJUXAAX+FVUHAyT1JJJJPfRmoJy6mU9bLofgzqep698JtM+I3gfxBdtDFDqI0ydlJFzJAhaSNEPYS4ViT0Br45tLGBtOvtdvUIiUiO3UkjdLITg5xyFAJODyRiv1W/bY8Ea8fHXilLxBaab4vn0qO0WBgRJLE21ppyVJU4YgAEDgEntXmH7ZXw30DwbdeFvh74YtIzBpVhaSTuoAlCwwyNKcDruzuY4JJxjvn9Aw+KhZd2fnOYQk2+yPzlm+S0hiYYaQmQnvjoM1+x3/AATC+JkE2ieIPhReGNJrWT+0LXLYd0kOJBgnkKQDkc8818xfFH9kzQfCfw28C+LbHV57zXfHN9YQLZMqp9mguUJYADlscEMQOK+mvjj+zN/wpC98NfG74RTPYXOkXVhFfRxHCFHAV5GxyFYjDDOMMOOprjxmIpVYchw4OlVw9T2nY/WCZguPXpX5lftq7IfiT8PbmSO7aWPWYGC+bC8ZTKkeXEMSAnsWOD0Br9A9K8SWuv2Ns8E2w38ZCSxuCQTGCWTI6gtkZHBHINfn98efDfiW61Lw1YaN4cupW0vxYJ5J5w26RESOMTEpDsSGQrvLb3JYkkAnA+ewUnCqm2fTZhXTpXifenhzX77xFa3V9eaNc6IsVw8MUd0VEsqJjEm1SQobsCc4raPWuZ8JeM7Xxnp0upwQG2a3uJbWRS4kQvC20mOQY3oT91sDPTGa6TmvMqb7Howaavc//9P6F1H/AIKYeG3EkVpaOAAGViPmOckgduOma89H/BSKyvriym1K1kj8hZHZU5AlYbRjPPAJ/GvyEm++1VD2/wA9q/V/7Jw0Voj87xWaV09GfXHxu/aS1D4seIdNubm8nFhaGFhGCQVKuS3TqduOvfmvNPGHxXu/GPixtf1O5uJDAPLt2LnfgkAsTznC5AH+NeIr1/GpP4hWvsIQtFI+Nq4mpN3bPubxH+1FpXiLx74S1ie2kbSPCkQEETHnzYohHERjgYAOa991f9ufw34j0C50vUbZ3injVJIHGVkAZQTxjnbn9K/KBfv/AIGn/wAQrw6mHhZaGf16trqfp74e/bS0fStUtr0pIsVik6xIBgAOioo4PYDJ+legaj+3Z4YuYZIPmuYpoQZEmQOrSFl4wcgAKDjjnNfkZ/CKfXC6ML7GSxdePuqZ+r8H7cnhq31RXtka2sNyAQogARQDnaAABggEDpWtcf8ABQTRmuJWhiYRlmKj0GeK/Ik9RUo6VlKlE1w+NrNO7P/Z"},7215:function(t,e,i){t.exports=i.p+"img/布林.jpg"},"7f29":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this;t._self._c;return t._m(0)},o=[function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("Introduction")]),e("p",[e("code",[t._v("simple-mind-map")]),t._v(" is a simple and powerful web mind map library, not dependent on any specific framework. Can help you quickly develop mind mapping products.")]),e("blockquote",[e("p",[t._v("If you just want to use mind mapping, you can also use the demo of this project as a regular online mind mapping tool. Click on the 【Online Demo】 in the upper right corner to start using it.")]),e("p",[t._v("Additionally, a client is provided for download, support "),e("code",[t._v("Windows")]),t._v("、"),e("code",[t._v("Mac")]),t._v(" and "),e("code",[t._v("Linux")]),t._v(", "),e("a",{attrs:{href:"/mind-map/#/doc/zh/client"}},[t._v("Click here to learn more")]),t._v("。")])]),e("h2",[t._v("Features")]),e("ul",[e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox16",checked:"true"}}),e("label",{attrs:{for:"checkbox16"}},[t._v("Pluggable architecture, in addition to core functions, other functions are provided as plugins, which can be used as needed to reduce packaging volume")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox17",checked:"true"}}),e("label",{attrs:{for:"checkbox17"}},[t._v("Support logical structure chart, mind map, Organizational chart, directory organization chart, timeline (horizontal and vertical), fishbone chart and other structures")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox18",checked:"true"}}),e("label",{attrs:{for:"checkbox18"}},[t._v("Built-in multiple themes, allowing for highly customizable styles, and supporting registration of new themes")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox19",checked:"true"}}),e("label",{attrs:{for:"checkbox19"}},[t._v("Node content supports text (regular text, rich text), images, icons, hyperlinks, notes, labels, summaries, and math formulas")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox20",checked:"true"}}),e("label",{attrs:{for:"checkbox20"}},[t._v("Nodes support drag and drop (drag and move, freely adjust), multiple node shapes, and fully customize node content using DDM")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox21",checked:"true"}}),e("label",{attrs:{for:"checkbox21"}},[t._v("Support canvas dragging and scaling")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox22",checked:"true"}}),e("label",{attrs:{for:"checkbox22"}},[t._v("Supports two multi node selection methods: mouse button drag selection and Ctrl+left button selection")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox23",checked:"true"}}),e("label",{attrs:{for:"checkbox23"}},[t._v("Supoorts to export as ")]),e("code",[t._v("json")]),t._v("、"),e("code",[t._v("png")]),t._v("、"),e("code",[t._v("svg")]),t._v("、"),e("code",[t._v("pdf")]),t._v("、"),e("code",[t._v("markdown")]),t._v("、"),e("code",[t._v("xmind")]),t._v(", support import from "),e("code",[t._v("json")]),t._v("、"),e("code",[t._v("xmind")]),t._v("、"),e("code",[t._v("markdown")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox24",checked:"true"}}),e("label",{attrs:{for:"checkbox24"}},[t._v("Support shortcut keys, forward and backward, correlation lines, search and replacement, small maps, watermarks, and scrollbar")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox25",checked:"true"}}),e("label",{attrs:{for:"checkbox25"}},[t._v("Provide rich configurations to meet various scenarios and usage habits")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox26",checked:"true"}}),e("label",{attrs:{for:"checkbox26"}},[t._v("Support collaborative editing")])])]),e("h2",[t._v("Repository Catalog Introduction")]),e("p",[t._v("1."),e("code",[t._v("simple-mind-map")])]),e("p",[t._v("This is a mind map library that is framework-agnostic and can be used with frameworks such as Vue and React, or without a framework.")]),e("p",[t._v("2."),e("code",[t._v("web")])]),e("p",[t._v("This is an online mind map built using the "),e("code",[t._v("simple-mind-map")]),t._v(" library and based on "),e("code",[t._v("Vue2.x")]),t._v(" and "),e("code",[t._v("ElementUI")]),t._v(". Features include:")]),e("ul",[e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox27",checked:"true"}}),e("label",{attrs:{for:"checkbox27"}},[t._v("Toolbar, which supports inserting and deleting nodes, and editing node")]),t._v(" images, icons, hyperlinks, notes, tags, and summaries")]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox28",checked:"true"}}),e("label",{attrs:{for:"checkbox28"}},[t._v("Sidebar, with panels for basic style settings, node style settings,")]),t._v(" outline, theme selection, and structure selection")]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox29",checked:"true"}}),e("label",{attrs:{for:"checkbox29"}},[t._v("Import and export functionality; data is saved in the browser's local")]),t._v(" storage by default, but it also supports creating, opening, and editing local files on the computer directly")]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox30",checked:"true"}}),e("label",{attrs:{for:"checkbox30"}},[t._v("Right-click menu, which supports operations such as expanding, collapsing,")]),t._v(" and organizing layout")]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox31",checked:"true"}}),e("label",{attrs:{for:"checkbox31"}},[t._v("Bottom bar, which supports node and word count statistics, switching")]),t._v(" between edit and read-only modes, zooming in and out, and switching to full screen, support mini map")])]),e("p",[t._v("Provide document page service.")]),e("p",[t._v("3."),e("code",[t._v("dist")])]),e("p",[t._v("The folder containing the packaged resources for the "),e("code",[t._v("web")]),t._v(" folder.")]),e("h2",[t._v("Related Articles")]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/6987711560521089061"}},[t._v("Technical Analysis of Web Mind Map Implementation (chi)")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7157681502506090510"}},[t._v("Only a hundred lines of code are needed to add local file operation capability to your Web page. Are you sure not to try?")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7199666255883927612"}},[t._v("When you press the direction key, how does the TV find the next focus")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7204854015463538744"}},[t._v("How to simulate the background image style of css in canvas")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7233012756314701884"}},[t._v("My first Electron application")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7276712861514170409"}},[t._v("Explore how to export HTML and SVG as images")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7287913415803764747"}},[t._v("How does the dom-to-image library convert HTML into images")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7295669711533998117"}},[t._v("Two days to achieve collaborative editing of mind maps? It's really possible to use Yjs")])]),e("h2",[t._v("Special Note")]),e("p",[t._v("This project can be used for learning and reference. Please deeply experience whether it can meet your needs when using it for actual projects.")]),e("p",[t._v("This project may not have fully tested every function point, so there may be bugs. In addition, when the number of nodes is very large, there may be some performance issues. Because everyone can accept different levels of congestion, you can test the maximum number of nodes yourself. Generally speaking, within 500 nodes, it is more smooth, while over 1000 nodes have more noticeable lag.")]),e("p",[t._v("If you have suggestions or find bugs, you can submit "),e("a",{attrs:{href:"https://github.com/wanglin2/mind-map/issues"}},[t._v("issues")]),t._v(" here.")]),e("p",[t._v("The built-in themes and icons in the project part come from:")]),e("p",[e("a",{attrs:{href:"https://naotu.baidu.com/"}},[t._v("Baidu Mind Map")])]),e("p",[e("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("Zhixi Mind Map")])]),e("p",[t._v("Respect the copyright, and do not use the theme and icons directly for commercial projects.")]),e("h2",[t._v("Why not?")]),e("p",[t._v("1."),e("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("Zhixi")])]),e("p",[t._v("Zhixi is a free mind mapping product that supports multi end synchronization. The UI design is beautiful and the features are complete, but it is not open source, so it can only be used as a user and cannot be used in your project.")]),e("p",[t._v("There are many other online mind mapping products similar to Zhixi, such as "),e("a",{attrs:{href:"https://gitmind.cn/"}},[t._v("GitMind")]),t._v("、"),e("a",{attrs:{href:"http://www.mindline.cn/"}},[t._v("MindLine")]),t._v("、"),e("a",{attrs:{href:"https://www.mindmeister.com/zh"}},[t._v("MinMeister")]),t._v("、"),e("a",{attrs:{href:"https://mubu.com/"}},[t._v("Mubu")]),t._v(" and so on, There are many searches on search engines, but these products either require fees or are developed by small companies, and their stability and sustainability cannot be guaranteed. Of course, the most crucial thing is that they are not open-source.")]),e("p",[t._v("2."),e("a",{attrs:{href:"https://github.com/fex-team/kityminder-core"}},[t._v("kityminder-core")])]),e("p",[e("code",[t._v("kityminder-core")]),t._v(" is an open source brain mapping tool developed by Baidu. It has powerful functions and good performance, but it is no longer maintained. Therefore, the code is relatively old, and the interface beauty is relatively ordinary. In addition, bugs can only be fixed by yourself, and the functions can only be developed by yourself. It has high requirements for front-end development capabilities.")]),e("p",[t._v("3."),e("a",{attrs:{href:"https://github.com/hizzgdev/jsmind"}},[t._v("jsmind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/ssshooter/mind-elixir-core"}},[t._v("Mind-elixir")]),t._v("、"),e("a",{attrs:{href:"https://github.com/ondras/my-mind"}},[t._v("my-mind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/awehook/blink-mind"}},[t._v("blink-mind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/luvsic3/remind"}},[t._v("remind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/hellowuxin/vue3-mindmap"}},[t._v("vue3-mindmap")]),t._v("、"),e("a",{attrs:{href:"https://github.com/zyascend/ZMindMap"}},[t._v("ZMindMap")]),t._v("、"),e("a",{attrs:{href:"https://github.com/RockyRen/mindmaptree"}},[t._v("mindmaptree")]),t._v("...")]),e("p",[t._v("These open-source mind maps are also good, each with its own characteristics, but they also have certain drawbacks, such as stopping updates, average interface aesthetics, less functionality, relying on a certain framework, and so on.")]),e("p",[t._v("In summary, in open-source mind maps, it is difficult to find a better choice than "),e("code",[t._v("simple-mind-map")]),t._v(". Of course, "),e("code",[t._v("simple-mind-map")]),t._v(" is far from being the best, and it also has many shortcomings, as you saw in the previous [special note]. However, "),e("code",[t._v("simple-mind-map")]),t._v(" has always been in a fast iteration process, and we welcome you to join and improve it together.")]),e("h2",[t._v("Browser Compatibility")]),e("p",[t._v("We recommend using the latest version of the "),e("code",[t._v("Chrome")]),t._v(" browser.")]),e("p",[t._v("Limited testing situation:")]),e("p",[t._v("Normal operation: "),e("code",[t._v("360")]),t._v(" extreme speed browser(v13.5.2036.0)、"),e("code",[t._v("opera")]),t._v(" browser(v71.0.3770.284)、"),e("code",[t._v("Firefox")]),t._v("(v98.0.2).")]),e("p",[t._v("Unsupported: "),e("code",[t._v("IE")]),t._v(" browser.")]),e("h2",[t._v("License")]),e("p",[e("a",{attrs:{href:"https://opensource.org/licenses/MIT"}},[t._v("MIT")])]),e("h2",[t._v("Invite the author to a cup of coffee")]),e("p",[t._v("Open source is not easy. If this project is helpful to you, you can invite the author to have a cup of coffee~")]),e("blockquote",[e("p",[t._v("Please note the 【mind map】 for transfer.")])]),e("img",{staticStyle:{width:"300px"},attrs:{src:i("076b")}}),e("img",{staticStyle:{width:"300px"},attrs:{src:i("4968")}}),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("f8ce")}}),e("p",[t._v("Think")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("2cd3")}}),e("p",[t._v("志斌")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("396b")}}),e("p",[t._v("小土渣的宇宙")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("4593")}}),e("p",[t._v("qp")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("84dd")}}),e("p",[t._v("ZXR")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("3f65")}}),e("p",[t._v("花儿朵朵")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("bf03")}}),e("p",[t._v("suka")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("654b")}}),e("p",[t._v("Chris")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("80ba")}}),e("p",[t._v("水车")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("a930")}}),e("p",[t._v("仓鼠")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("bcae")}}),e("p",[t._v("千帆")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("bba7")}}),e("p",[t._v("才镇")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("9465")}}),e("p",[t._v("小米bbᯤ²ᴳ")])])]),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("6ea0")}}),e("p",[t._v("*棐")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("5b80")}}),e("p",[t._v("Luke")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("7215")}}),e("p",[t._v("布林")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("0b8c")}}),e("p",[t._v("南风")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("d33b")}}),e("p",[t._v("蜉蝣撼大叔")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("ca5d")}}),e("p",[t._v("乙")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("5ea5")}}),e("p",[t._v("敏")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("aaba")}}),e("p",[t._v("沐风牧草")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("eac7")}}),e("p",[t._v("有希")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("4000")}}),e("p",[t._v("樊笼")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("30de")}}),e("p",[t._v("达仁科技")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("8d3e")}}),e("p",[t._v("小逗比")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("2707")}}),e("p",[t._v("天清如愿")])])]),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("4f23")}}),e("p",[t._v("敬明朗")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("5b80")}}),e("p",[t._v("飞箭")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("4623")}}),e("p",[t._v("戚永峰")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("6065")}}),e("p",[t._v("moom")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("331d")}}),e("p",[t._v("张扬")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("a4f7")}}),e("p",[t._v("长沙利奥软件")])])])])}],r={},a=r,c=i("2877"),s=Object(c["a"])(a,n,o,!1,null,null,null);e["default"]=s.exports},"80ba":function(t,e,i){t.exports=i.p+"img/水车.jpg"},"84dd":function(t,e,i){t.exports=i.p+"img/ZXR.jpg"},"8d3e":function(t,e){t.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD9m54Q2eKyZbf0FdnPae1ZUtvnPFfQxqnjSpnGzwYzisWaHr8v6V281qTlqyprXrkV2QrHHOmzg7m33dqxprfrx0rvLizHPGKxp7QDtXbGuc7ps4We2BOSKyZrYZOFruJrZTnjmsqa1UdRitVXIdI4yS1z2qv9lHpXVTW4qt5H1qvrBSpH/9D9t5db0ZmZVvIiV6guOKxr/X9BtEMk97EoHbcDXyZJ4ispv+PedJQcnKnOcdayG1g3jHyGBUc5B4H0r1o0vM8x1fI+kNX+I/huzVhC7XLAfwDj82wK4+f4t6SyFlspflGDkqMe3WvCbq5cKysRtJxkHPP4dq5e+u7yNCETcsZAJU7gSemMda6YqKMJTk+h7prHxgghjQ2dgSx6+a4AA9gAc1m6H8YtI1G4FnrUQsHkOEkB3Rk+5I+X6968SXSdV1ub7DbkeeFdyrHBIRSxxnvgV59d/ZZDmecoVLq4A4jCAEA89STirUopai9++h98rJbXcYmtpFlRuhUhh+lUJoVwRiviHwt4v1fTbgTaTcSqiSRxlQS0ZMhO3cORyAc554616f8A8LU8Urf3FjIInlgh8wALyxPIPXjIIJqHNrqdMVzLY98kjAPAqtsHp/n864Sb4i2FnpumX+oANFqSIY5IuV3E4IJ6DJyQMk4BFXh400MjPmnn/ZrD25p7I//R9W0nxx4f8J201rfRMZY5XZFOHJB5OMkZ5bP4VX8W+MNU/wCEgtbnQYEgFiiqbeQnypw7HDsBnBHOcdeK8Y8V+LvDMcUmoz2sb27uFWPAd94+UHzOCASMnAIHXB61paV4ifX2tdXlAjNzBGSoOQCkzJx37VtWlO6urBSSV9Lnew/Eu7hvnS20a4kvd7OI4o2kRVAPyggElSMEnGccYrK1n4t6ms2+6ifSy8SsIggGApIJw2CCSD16g5ryS38UfEGYajp3hG8ihktJ5i0scuy48skjBx0UDrjp3rmV+HfxS163n1Gc/a5ncMG84SMRgkknBJ49Bjil9cit2ckqb6H0d4R+MMGj6jPfYimneNwpnnCY81SDhSOpzzjIFU9GM+raVrp1XVdO0vyZIZJGeUNJOrk4RADg7eDkfSvkm+8Ea813BDqenzPcNKVdk+ZlUDqBkZ6dP0qrrNzD4T0qP7dYSxpKSo3n5t3IzjJAAABxmuR4y9vZy3N/YvlXMj6n0a40WOCZDrqA3M6ea8c/lDMAYBkXaSV2scEkZORyKx/EHiWwsLgXfh+9lnlWFxKzODuCDyxzjBBUZ46GvlnQ7HXNXWXU7HT2htFUSNNIGjTA4BUscH6DPrU0l81ncrBcIs8u07VMoIJPTGTjn0I/nTWIkpashr3bJH11oJ8a+JvD1pYrbGbTLYSSwBZY1IUAmPBySQWYkAgHJJB7D2bTrb4uyafayf2PZjdEhw4O7lR156+tfnLb6tqcJEau9m0UgA2ykDIOQAB3VgcEZArvY/jF8Uo41ji8TSbFAC/PngdOamWIbd7FQk0tUf/S+UJbnUP+EfljnckrIAAAF+XnsVj/AFBPrkcV2Hg/xnBpmh2C3WZZ44jGV4B/1zSZznOD0HeuT8Tstu+tWkAO22uSg9cB8dgf1zXjWpQ+JYb6PyEQ2OAWG8DdtJJBG7cTyeoHWuqr7yRx0nZM9EuPG82p3OqW+mIbHUfNm3SKBseJsgBwBnIzjI659q8y0nxN4/8ADOqpd+Gr67trlCVQxO5PAwQACSRjtjoa9X8PeH0j0S9v72xa2ullISdHyksJIcfIMkEKCSc57Yrz2HU5bnxE9tYzmDL7WnEQZoUPAC84A+vOMVyKS52rGzjon1Pqbw9rnxo8TeEbB2aJ9TVsx3LuEuBGTyX3AMDjI65xjBFT+IbLxyL9YvEFzpcccjNuWT92NoXIYnOck5IOMnvmrWi+bG8Fpb6mXuoVX5ivD4A5ypI57j1r0yDw9b+KNUtvtBQXCAgSswCrkcsSeAMZyT0xxXjY2NGD5kjWjzyfKz5o8ZSeJ9RaSxsCiC3gRWjgYCIfLkMCAQSeMnvjiuV8NWNtpGoG68UacdVlSRWiQOSlsyt1OCBJkAEKeAfXpXoPxfsbX4f+L08MC5aNJ2RgoJJJlTJIKZBGScDkDv0rhtOTTdC0hpPtErXTt5amQhiMkhCgBJBJJAIycHBwRWMKycLx2NZ80XZrY2dTfRrq8lWxhYlGMhkklczykAkAgnjgnHU9B0rz37SzfNFpk4Q8qN7cDt3rtbS6sI7mVNXtBdw6jEczSkpJFLGAo8sLnAC5ABJDfxA8YzWu4Nx+z2SiLPyAkZ29v4fSlGpyKyZjJXP/0/iCe+8/Rr+e5nE7vIrMxIYklgTyWfqTnjH581x1xYXuo38OrNqNuFQ7Tal2R8A9SSAmCxBxuzyT0FT6Dc3M+k3HnyvJl0+8xPdPWud1OSQWyYY8kd67+XY4ons/ivxnpc3hm10y6vlsp7SIAJBIspLn5QQQMcKCSM8ZArB8A+C9Iv1fUYtQa+mZgZDG7RhCeSGGcknvzz2r581Jm8695PDDH/fNexfCOaaPUzFHIypKgLqCQGODyR3NeFXg+WUoux2QlzNXPpeTW/DOhRpbaTLaJfgBUDnjpg5bOT0OB7VxWv8AxHa5iFtBcR+bE20mF2RS74AORu4A6ZIOffp8z/ESSQeKrnDEYU459q1PDgH2jR/dwT9QDiuOVBWvJ3C7i9D66u/ilrXijSbfQvFOj2OqvbDy7bUXgBubRQvUOCGIYAqRjnPJyTXJ6Zd3mkaw9/azi1EsLiQyxwlXiKYIEfzAkMAeASDyDkGuELv9gvn3HdsJznnPNZEf77wppM03zyYm+ZuTwxxya8VQtLlRUqkpJSZ2V1qOnsxWyjkBkDAPG4LjcMABSQoAJB4AJGBnOa8xk0vxWZGKahabSTjcF3Y9/n6+tOvby88u5HnyYVVwNx44HStq3jjNvESoJKr29q7IrlVjO1z/2Q=="},9465:function(t,e,i){t.exports=i.p+"img/小米.jpg"},a4f7:function(t,e,i){t.exports=i.p+"img/长沙利奥软件.jpg"},a930:function(t,e,i){t.exports=i.p+"img/仓鼠.jpg"},aaba:function(t,e,i){t.exports=i.p+"img/沐风牧草.jpg"},bba7:function(t,e,i){t.exports=i.p+"img/才镇.jpg"},bcae:function(t,e,i){t.exports=i.p+"img/千帆.jpg"},bf03:function(t,e,i){t.exports=i.p+"img/suka.jpg"},ca5d:function(t,e,i){t.exports=i.p+"img/乙.jpg"},d33b:function(t,e,i){t.exports=i.p+"img/蜉蝣撼大叔.jpg"},eac7:function(t,e,i){t.exports=i.p+"img/有希.jpg"},f8ce:function(t,e,i){t.exports=i.p+"img/Think.jpg"}}]); \ No newline at end of file diff --git a/dist/js/chunk-7f271756.js b/dist/js/chunk-7f271756.js new file mode 100644 index 00000000..929b2948 --- /dev/null +++ b/dist/js/chunk-7f271756.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7f271756"],{"076b":function(t,e,i){t.exports=i.p+"img/alipay.jpg"},"0b8c":function(t,e,i){t.exports=i.p+"img/南风.jpg"},2707:function(t,e,i){t.exports=i.p+"img/天清如愿.jpg"},"2cd3":function(t,e,i){t.exports=i.p+"img/志斌.jpg"},"30de":function(t,e,i){t.exports=i.p+"img/达仁科技.jpg"},"331d":function(t,e,i){t.exports=i.p+"img/张扬.png"},"396b":function(t,e,i){t.exports=i.p+"img/小土渣的宇宙.jpeg"},"3e05":function(t,e,i){t.exports=i.p+"img/HaHN.jpg"},"3f65":function(t,e,i){t.exports=i.p+"img/花儿朵朵.jpg"},4e3:function(t,e,i){t.exports=i.p+"img/樊笼.jpg"},4593:function(t,e,i){t.exports=i.p+"img/qp.jpg"},4623:function(t,e){t.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD9UJqz5q0Jqz5q6D4sz5qx5q2Jqx5qDoM+brWdJ94fWtGbqM9c1Vm710GC3M+XrWdN0P41ac/OPrVWc9T6ZrnNzHm6H8apVdnlzkeoxVKgD//Q/Uias+arPnEf/qqtMe/0roPkzOm45zjnrjP6V4L8Zfj18O/ghoz6v40vlFy4zBZoc3NznoUjHCg+vYV7Trl8um6Xd6jON32JGnI9cAk/yr8DtBMX7QXxN8Q/Er4i3zS2IuCkCuQAiZzDCSf4VHWsK9f2VI7sFR9rVPUPFX/BR74k6jvfwn4Qt9Msy7GOe4lM7gYPQkdfSvXPgD+3npfim8Hhv4wS22kanOwW3u4h/o77iAFcf3iSAD6mvNPFOn/DDUbYabY3FjFbBWSTymHG0HnH+NfEfiHwD4JjE7aJqQuXDOVjx3wcAH1JxivOo5g72Ppq+Uo/ouju4bqKK8tZUliuF3xyx9Cn1HY1VllycevFfnf/AME9PidrPiXwbrngLWrh7weG5ITaPJnItnDDy8HptbkfSv0Im617B8dVpeyZXl61DTZjg596h86gg//R/Tiaas+aarEozWfNXQfJnL+MIpbzwlrdnaKTO1jOq4BJJIOAAOST6Cvww+DnheeDwNdaTfvFYXc0029rhCUBBwQVIyCDwQQMHrX734BGD0PBr8mPjP4Zi8FfEC70YERW108l0cdMTyFifpjqeleRma/dI+vyFr2u587W3w4tNM0LXdWvru1v7h0YO0Y8tEQsCpUgYZieqjtXkaeCJPKOuw30UdqAQ0RUKQcdQPbqK7/4ga14Z1DTHt9O0++WKHJkkhlEUTsAcEK2CQDycDpXhtjrwlsms4WeNARzISRj1ya8RKr3PqK9KlZn2z/wT6t7m18cePZFUpam3tMEA/vCXkwxP4iv1GkmO7oetfGv7G/gKbwx4Cn8XTSgyeJXiZRjlYIkICH0O7BxX1+ZutfXQv7I/McV/FuLNNk49eKhyKpzSmofNPvWh5x//9L9JzIw6gioJSCcZGaZPOFCsxAD9CTgH6ev4Uy2Rp2MgB2j+IdB+PSuq3kfGCBSw3AZUnGccZ9M18J/tneBnj0yx+JVmpMtgRBdRgEhoTwvTse3r2r7Q8WfE74SfDuxN94w8W6ZYNbguyNPHLM5PYQo24n8K/OP4ofth+D/AI16+nw38AwtFoSRCaWe7AWe7micgLAhwVTByA3OOlcuMV6Wh7mW/wC9Xpn54/EHxb4R1ezt7TT4Ct2hBYKWVQPft+FcN4M0238Y+KtG8MoCiandJDIQDnYzhWIA64BNeq/FrwFp1hO2oWMfkzOwzGBgY74FeFaVr914G1Gy1yxQNfafcJLEDxkBg2DnscYOa+Zw259tjVVtuf0E6BpNl4Y0Sw0HSUMdjYwLDCCMbiowxPua1PMYdcj6ivgzRv28/hNdWVt/bFte6dcvEizgQK8aSjG4ggk4J9OcV6r4Z/aV+F3i9kXRtbty7kBUmBikJJwAoYgkk8D3r64/OHTrbn0nLMah80+9cda+KrG4KhXyXIx05z/Otb+1ovQUHIf/0+W/aH/b1g8Jaxc+D/hN9nubyI4uNYYebFn0iAJB/DNfnh4m+O/xY8dzSy+JPE93fFuiGUoDx28kgGvnW9kkkubwyMWPm9zmuj0r/jzhPeuv2jPnOReyNKwnWZJp5XMkx4JcCU59PmYnNcxNbXdpMNV06WQSDkPGxV0x2GOa09I+9N/10b+VWIv+PR/qP51B1x9zYfd/Fn4iXFnFp1zrE8sKdFcKSD2y5riJ31XVrhru+Z7mQ5yZCCB7jHGa6u9ROflHft7VatVX7FwB0/oaxo0YQWiOt4upP4mcm+nJHpZZiCxOOT0J9fSq9q91Au8bo3QgHBKgg+46Z9RWxe/8guT/AHx/Oqs/+of/AIBUi52zoPDfxb+IfhWRpdE1meBFODExMqEdxhzyCOCPSvYI/wBrf4uJGqfarb5QB/x7J2/Gvlxej/71LQbOhT7H/9k="},4968:function(t,e,i){t.exports=i.p+"img/wechat.jpg"},"4f23":function(t,e,i){t.exports=i.p+"img/敬明朗.jpg"},"5b80":function(t,e,i){t.exports=i.p+"img/default.png"},"5ea5":function(t,e,i){t.exports=i.p+"img/敏.jpg"},6065:function(t,e,i){t.exports=i.p+"img/moom.jpg"},"654b":function(t,e,i){t.exports=i.p+"img/Chris.jpg"},"6ea0":function(t,e){t.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD97zDb4P7tfyFeS6F8U/BXiLx5rfw/sZU/tLRPswYEACU3MbSqIz/FhUYnHofSvU9QkhhsbiS5lFtEsbFpWIAQYOWJPAx1zX5Gfs+eFtK/4aPF5c/GXRvEMOn3Ly2llaSkXV08UUsEaMWUKfLjlYEKzkjPrkevhMNCrTqSlpZFJNvQ/WZoIf8Anmv5D/CsG71PTLN72OeMD7BCs8hCg5Rs8j1xtOfTiulYDIryDUr9L/xX4p02In/QdJjRiO7z+YQB6kBeR7ivMhG7Lilq2d4l/pUi2jRlG+3KHhAAy6lQwIGOmCDmqDX+imY24mhLgkFcjORXh3wTbWPFepN8Qri6ZtDgsYNM02BkKnMCKLiUg4+867R06Gu0vvB+v3dnLpjSW8cEpADh2LAAqQduwZOVJxu6sea6/ZqL5W9ilZPsdqdR0Ty/N8+DbnbnI6+lVJr7SCzoZYQYgSwyvAyAfyJA9jx1rhLzwR4ge6e9tp4AzxmJkZ2K7fmyd2zvuAAxwABk1lW3hLW3khsJF2DSpcxSHeqSxJG0Y3MVxukLBiU3AFAzAEharki1uQ+XuegQ6lpVzemxt13uEDBgmUIIBwH6EgEZHUVd2Rf3V/75rltD8N32lalPe3MsbpOd5CsxIYqqEcqAR8uc8EkngV1dZyUb6HG2r6H/0P1l/atsNR174I+IvCmg3y2Wr61A0ForP5ZncDcYVY4ALKCAM89O9fgf8NfhF8T5vG+mWGn6Nd6dfWl1G5nkRoEtjEwJkaQ4ChcZzntxX9Lvinwj4e8baNN4f8TWaXtjPjKPkEEdGUjBVgeQQQQa+f7D9lnwLY6j9q1LV9a1eyQhlsb2/eS1AByAVABYD0Yketfa5TnCwdCdLue1l+IhQnzS3PoG1vEvtPhvLSVbhZowyyLwr5HDD2J5Hsa/EP8Aam+L3jXwF45vtC0XxC90L+5Mt1PbZiETowxCjgksVAAORgc4HNffn7W/xh1H4feCo/DfgOY2ut38YFq0YXywgwoRMdGIwFABGcCvwU8aa419qLRatc3V7doSZY5CEEdy33yDySQevAye/FLKMHztzlseRKooJvoftv8AsbfFzQtc0C48H3msqL+JlkisrgoJQXAL+UwwHUn5iMAgk565r7kfrX82Xw3+I3iHwf4k8NfEi1m3XuhkwSi4MaRPACAVDnnJAwSeeBjpX7b/AAI/aR0f432mu3sWlyaRb6EYt9xI6tBIJFJO1hwCuDkHoCD3rkzHBOEnOOx5dPFxk+Vs+jZTwMH/AOvXgHjz40SeGNdg0Lw14Zv/ABTJbXRg1U2iEf2fHtRhI24ASAqxOFJPBr1nw14r8PeMNPOp+HL1L61SRomkjzgOhwQc45B9K/Nb9qrxr438PfEHwrdG7u/Cz6j4j/s+4gtr6YwXenDasczlGCKzqclQMqOpzSyvBqvW5JI7YuN77o/SbRtd0fxLpkOtaFdpe2U4O2SM5BIOCD6EHIIPIPBq3WB4P8LeF/Bfh630LwbAsGloXlQJIZd7Sku7FySWLMSSSTzWqVbPSvLkopvk2POqNJn/0f31BxWdqAjMEwkGUKHcM4yMHPPbjvWie/FfOn7Q3xj0X4S+DL251GKeS4vYZYoWjQMiSPGxXcSerbSFUZJbA4zmtqcZSdktx3XU/LF/FN7a+Nbv4mzTo/hrwtfvDpdpfTmVXdQVWMAlgyxYJB56j6183L4f8OeNfH1/4n8QwxWMF7cG7KiQBXQsC7EYAUHJ2jqTwKim0zX/ABpNb+HtIspYtF0SOW4Ee4yo0pfyzNJsGcHaCScD6DFeWeIfFKOZtPguQbhGKSyfKAqgbWORkMzdEUZCDuScj9Po0rfC7M+ax+KSPtCL9kTQPHR1HXfDWv6OsEk1yv2R5tk6RqCY2RACRhcE5468171+yjD4HvPhs3h/x7rjGXT76UXNhErqk5U7UllaNdzRuo+UHAIH4V+afh/43W/g/UkvotHjvJrXMa3KSvFcglCpO9ThgQcEEHPOeMV+nX7Cfh/x14shT4r61e2LeHGju7a1giG+7d5JFJSc4AVYCpCrzyxINeTjVVjTfO7o8TDV6dSslTR9w+EfiH4A1nUG8G+EHIawjBEcdtJDAiDjCsVVSR3Ar4D/AGn9M8LaV8QdCvdW0QXMd54mW4lWWcSPHKwUGeQqhCQHAAjZsAZ4GcV+oghgi/1MSpn+6ACfyxX5r/tf+LvEOkfEvwl4f0HVTY22s6nFbX0UGoiV5InKgh7QxjycgnDBiT7V5+U1LYhW0Pp6lR04XZ9xeBvCMXgrw6NIhvDepLNLchgAIlE7F9kQBIEa5woHGOldFWX4Z8MaZ4O0K28N6O9xJZ2YYRm5maeQBiTgu5JIBPA7DitYKMV4tR80m7mEpXZ//9L98pHEaPJgttBOFGScdgPWvz3hvrv9oX9o42Oo2Ri8O+A4LiRreVg6m5bdDAZFGVEhfc4BJwEXuTn69+I1x8QLuzfw78PLaOC8u0xJqNy5WK2RuCUABZ5MZIGAB1JzgVhfCb4SaN8JtKuYlum1DWNYkWW+vZeHuJUXAAX+FVUHAyT1JJJJPfRmoJy6mU9bLofgzqep698JtM+I3gfxBdtDFDqI0ydlJFzJAhaSNEPYS4ViT0Br45tLGBtOvtdvUIiUiO3UkjdLITg5xyFAJODyRiv1W/bY8Ea8fHXilLxBaab4vn0qO0WBgRJLE21ppyVJU4YgAEDgEntXmH7ZXw30DwbdeFvh74YtIzBpVhaSTuoAlCwwyNKcDruzuY4JJxjvn9Aw+KhZd2fnOYQk2+yPzlm+S0hiYYaQmQnvjoM1+x3/AATC+JkE2ieIPhReGNJrWT+0LXLYd0kOJBgnkKQDkc8818xfFH9kzQfCfw28C+LbHV57zXfHN9YQLZMqp9mguUJYADlscEMQOK+mvjj+zN/wpC98NfG74RTPYXOkXVhFfRxHCFHAV5GxyFYjDDOMMOOprjxmIpVYchw4OlVw9T2nY/WCZguPXpX5lftq7IfiT8PbmSO7aWPWYGC+bC8ZTKkeXEMSAnsWOD0Br9A9K8SWuv2Ns8E2w38ZCSxuCQTGCWTI6gtkZHBHINfn98efDfiW61Lw1YaN4cupW0vxYJ5J5w26RESOMTEpDsSGQrvLb3JYkkAnA+ewUnCqm2fTZhXTpXifenhzX77xFa3V9eaNc6IsVw8MUd0VEsqJjEm1SQobsCc4raPWuZ8JeM7Xxnp0upwQG2a3uJbWRS4kQvC20mOQY3oT91sDPTGa6TmvMqb7Howaavc//9P6F1H/AIKYeG3EkVpaOAAGViPmOckgduOma89H/BSKyvriym1K1kj8hZHZU5AlYbRjPPAJ/GvyEm++1VD2/wA9q/V/7Jw0Voj87xWaV09GfXHxu/aS1D4seIdNubm8nFhaGFhGCQVKuS3TqduOvfmvNPGHxXu/GPixtf1O5uJDAPLt2LnfgkAsTznC5AH+NeIr1/GpP4hWvsIQtFI+Nq4mpN3bPubxH+1FpXiLx74S1ie2kbSPCkQEETHnzYohHERjgYAOa991f9ufw34j0C50vUbZ3injVJIHGVkAZQTxjnbn9K/KBfv/AIGn/wAQrw6mHhZaGf16trqfp74e/bS0fStUtr0pIsVik6xIBgAOioo4PYDJ+legaj+3Z4YuYZIPmuYpoQZEmQOrSFl4wcgAKDjjnNfkZ/CKfXC6ML7GSxdePuqZ+r8H7cnhq31RXtka2sNyAQogARQDnaAABggEDpWtcf8ABQTRmuJWhiYRlmKj0GeK/Ik9RUo6VlKlE1w+NrNO7P/Z"},7215:function(t,e,i){t.exports=i.p+"img/布林.jpg"},"7f29":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this;t._self._c;return t._m(0)},o=[function(){var t=this,e=t._self._c;return e("div",[e("h1",[t._v("Introduction")]),e("p",[e("code",[t._v("simple-mind-map")]),t._v(" is a simple and powerful web mind map library, not dependent on any specific framework. Can help you quickly develop mind mapping products.")]),e("blockquote",[e("p",[t._v("If you just want to use mind mapping, you can also use the demo of this project as a regular online mind mapping tool. Click on the 【Online Demo】 in the upper right corner to start using it.")]),e("p",[t._v("Additionally, a client is provided for download, support "),e("code",[t._v("Windows")]),t._v("、"),e("code",[t._v("Mac")]),t._v(" and "),e("code",[t._v("Linux")]),t._v(", "),e("a",{attrs:{href:"/mind-map/#/doc/zh/client"}},[t._v("Click here to learn more")]),t._v("。")])]),e("h2",[t._v("Features")]),e("ul",[e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox16",checked:"true"}}),e("label",{attrs:{for:"checkbox16"}},[t._v("Pluggable architecture, in addition to core functions, other functions are provided as plugins, which can be used as needed to reduce packaging volume")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox17",checked:"true"}}),e("label",{attrs:{for:"checkbox17"}},[t._v("Support logical structure chart, mind map, Organizational chart, directory organization chart, timeline (horizontal and vertical), fishbone chart and other structures")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox18",checked:"true"}}),e("label",{attrs:{for:"checkbox18"}},[t._v("Built-in multiple themes, allowing for highly customizable styles, and supporting registration of new themes")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox19",checked:"true"}}),e("label",{attrs:{for:"checkbox19"}},[t._v("Node content supports text (regular text, rich text), images, icons, hyperlinks, notes, labels, summaries, and math formulas")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox20",checked:"true"}}),e("label",{attrs:{for:"checkbox20"}},[t._v("Nodes support drag and drop (drag and move, freely adjust), multiple node shapes, and fully customize node content using DDM")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox21",checked:"true"}}),e("label",{attrs:{for:"checkbox21"}},[t._v("Support canvas dragging and scaling")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox22",checked:"true"}}),e("label",{attrs:{for:"checkbox22"}},[t._v("Supports two multi node selection methods: mouse button drag selection and Ctrl+left button selection")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox23",checked:"true"}}),e("label",{attrs:{for:"checkbox23"}},[t._v("Supoorts to export as ")]),e("code",[t._v("json")]),t._v("、"),e("code",[t._v("png")]),t._v("、"),e("code",[t._v("svg")]),t._v("、"),e("code",[t._v("pdf")]),t._v("、"),e("code",[t._v("markdown")]),t._v("、"),e("code",[t._v("xmind")]),t._v(", support import from "),e("code",[t._v("json")]),t._v("、"),e("code",[t._v("xmind")]),t._v("、"),e("code",[t._v("markdown")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox24",checked:"true"}}),e("label",{attrs:{for:"checkbox24"}},[t._v("Support shortcut keys, forward and backward, correlation lines, search and replacement, small maps, watermarks, and scrollbar")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox25",checked:"true"}}),e("label",{attrs:{for:"checkbox25"}},[t._v("Provide rich configurations to meet various scenarios and usage habits")])]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox26",checked:"true"}}),e("label",{attrs:{for:"checkbox26"}},[t._v("Support collaborative editing")])])]),e("h2",[t._v("Repository Catalog Introduction")]),e("p",[t._v("1."),e("code",[t._v("simple-mind-map")])]),e("p",[t._v("This is a mind map library that is framework-agnostic and can be used with frameworks such as Vue and React, or without a framework.")]),e("p",[t._v("2."),e("code",[t._v("web")])]),e("p",[t._v("This is an online mind map built using the "),e("code",[t._v("simple-mind-map")]),t._v(" library and based on "),e("code",[t._v("Vue2.x")]),t._v(" and "),e("code",[t._v("ElementUI")]),t._v(". Features include:")]),e("ul",[e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox27",checked:"true"}}),e("label",{attrs:{for:"checkbox27"}},[t._v("Toolbar, which supports inserting and deleting nodes, and editing node")]),t._v(" images, icons, hyperlinks, notes, tags, and summaries")]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox28",checked:"true"}}),e("label",{attrs:{for:"checkbox28"}},[t._v("Sidebar, with panels for basic style settings, node style settings,")]),t._v(" outline, theme selection, and structure selection")]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox29",checked:"true"}}),e("label",{attrs:{for:"checkbox29"}},[t._v("Import and export functionality; data is saved in the browser's local")]),t._v(" storage by default, but it also supports creating, opening, and editing local files on the computer directly")]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox30",checked:"true"}}),e("label",{attrs:{for:"checkbox30"}},[t._v("Right-click menu, which supports operations such as expanding, collapsing,")]),t._v(" and organizing layout")]),e("li",[e("input",{attrs:{type:"checkbox",id:"checkbox31",checked:"true"}}),e("label",{attrs:{for:"checkbox31"}},[t._v("Bottom bar, which supports node and word count statistics, switching")]),t._v(" between edit and read-only modes, zooming in and out, and switching to full screen, support mini map")])]),e("p",[t._v("Provide document page service.")]),e("p",[t._v("3."),e("code",[t._v("dist")])]),e("p",[t._v("The folder containing the packaged resources for the "),e("code",[t._v("web")]),t._v(" folder.")]),e("h2",[t._v("Related Articles")]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/6987711560521089061"}},[t._v("Technical Analysis of Web Mind Map Implementation (chi)")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7157681502506090510"}},[t._v("Only a hundred lines of code are needed to add local file operation capability to your Web page. Are you sure not to try?")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7199666255883927612"}},[t._v("When you press the direction key, how does the TV find the next focus")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7204854015463538744"}},[t._v("How to simulate the background image style of css in canvas")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7233012756314701884"}},[t._v("My first Electron application")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7276712861514170409"}},[t._v("Explore how to export HTML and SVG as images")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7287913415803764747"}},[t._v("How does the dom-to-image library convert HTML into images")])]),e("p",[e("a",{attrs:{href:"https://juejin.cn/post/7295669711533998117"}},[t._v("Two days to achieve collaborative editing of mind maps? It's really possible to use Yjs")])]),e("h2",[t._v("Special Note")]),e("p",[t._v("This project can be used for learning and reference. Please deeply experience whether it can meet your needs when using it for actual projects.")]),e("p",[t._v("This project may not have fully tested every function point, so there may be bugs. In addition, when the number of nodes is very large, there may be some performance issues. Because everyone can accept different levels of congestion, you can test the maximum number of nodes yourself. Generally speaking, within 500 nodes, it is more smooth, while over 1000 nodes have more noticeable lag.")]),e("p",[t._v("If you have suggestions or find bugs, you can submit "),e("a",{attrs:{href:"https://github.com/wanglin2/mind-map/issues"}},[t._v("issues")]),t._v(" here.")]),e("p",[t._v("The built-in themes and icons in the project part come from:")]),e("p",[e("a",{attrs:{href:"https://naotu.baidu.com/"}},[t._v("Baidu Mind Map")])]),e("p",[e("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("Zhixi Mind Map")])]),e("p",[t._v("Respect the copyright, and do not use the theme and icons directly for commercial projects.")]),e("h2",[t._v("Why not?")]),e("p",[t._v("1."),e("a",{attrs:{href:"https://www.zhixi.com/"}},[t._v("Zhixi")])]),e("p",[t._v("Zhixi is a free mind mapping product that supports multi end synchronization. The UI design is beautiful and the features are complete, but it is not open source, so it can only be used as a user and cannot be used in your project.")]),e("p",[t._v("There are many other online mind mapping products similar to Zhixi, such as "),e("a",{attrs:{href:"https://gitmind.cn/"}},[t._v("GitMind")]),t._v("、"),e("a",{attrs:{href:"http://www.mindline.cn/"}},[t._v("MindLine")]),t._v("、"),e("a",{attrs:{href:"https://www.mindmeister.com/zh"}},[t._v("MinMeister")]),t._v("、"),e("a",{attrs:{href:"https://mubu.com/"}},[t._v("Mubu")]),t._v(" and so on, There are many searches on search engines, but these products either require fees or are developed by small companies, and their stability and sustainability cannot be guaranteed. Of course, the most crucial thing is that they are not open-source.")]),e("p",[t._v("2."),e("a",{attrs:{href:"https://github.com/fex-team/kityminder-core"}},[t._v("kityminder-core")])]),e("p",[e("code",[t._v("kityminder-core")]),t._v(" is an open source brain mapping tool developed by Baidu. It has powerful functions and good performance, but it is no longer maintained. Therefore, the code is relatively old, and the interface beauty is relatively ordinary. In addition, bugs can only be fixed by yourself, and the functions can only be developed by yourself. It has high requirements for front-end development capabilities.")]),e("p",[t._v("3."),e("a",{attrs:{href:"https://github.com/hizzgdev/jsmind"}},[t._v("jsmind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/ssshooter/mind-elixir-core"}},[t._v("Mind-elixir")]),t._v("、"),e("a",{attrs:{href:"https://github.com/ondras/my-mind"}},[t._v("my-mind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/awehook/blink-mind"}},[t._v("blink-mind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/luvsic3/remind"}},[t._v("remind")]),t._v("、"),e("a",{attrs:{href:"https://github.com/hellowuxin/vue3-mindmap"}},[t._v("vue3-mindmap")]),t._v("、"),e("a",{attrs:{href:"https://github.com/zyascend/ZMindMap"}},[t._v("ZMindMap")]),t._v("、"),e("a",{attrs:{href:"https://github.com/RockyRen/mindmaptree"}},[t._v("mindmaptree")]),t._v("...")]),e("p",[t._v("These open-source mind maps are also good, each with its own characteristics, but they also have certain drawbacks, such as stopping updates, average interface aesthetics, less functionality, relying on a certain framework, and so on.")]),e("p",[t._v("In summary, in open-source mind maps, it is difficult to find a better choice than "),e("code",[t._v("simple-mind-map")]),t._v(". Of course, "),e("code",[t._v("simple-mind-map")]),t._v(" is far from being the best, and it also has many shortcomings, as you saw in the previous [special note]. However, "),e("code",[t._v("simple-mind-map")]),t._v(" has always been in a fast iteration process, and we welcome you to join and improve it together.")]),e("h2",[t._v("Browser Compatibility")]),e("p",[t._v("We recommend using the latest version of the "),e("code",[t._v("Chrome")]),t._v(" browser.")]),e("p",[t._v("Limited testing situation:")]),e("p",[t._v("Normal operation: "),e("code",[t._v("360")]),t._v(" extreme speed browser(v13.5.2036.0)、"),e("code",[t._v("opera")]),t._v(" browser(v71.0.3770.284)、"),e("code",[t._v("Firefox")]),t._v("(v98.0.2).")]),e("p",[t._v("Unsupported: "),e("code",[t._v("IE")]),t._v(" browser.")]),e("h2",[t._v("License")]),e("p",[e("a",{attrs:{href:"https://opensource.org/licenses/MIT"}},[t._v("MIT")])]),e("h2",[t._v("Invite the author to a cup of coffee")]),e("p",[t._v("Open source is not easy. If this project is helpful to you, you can invite the author to have a cup of coffee~")]),e("blockquote",[e("p",[t._v("Please note the 【mind map】 for transfer.")])]),e("img",{staticStyle:{width:"300px"},attrs:{src:i("076b")}}),e("img",{staticStyle:{width:"300px"},attrs:{src:i("4968")}}),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("f8ce")}}),e("p",[t._v("Think")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("2cd3")}}),e("p",[t._v("志斌")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("396b")}}),e("p",[t._v("小土渣的宇宙")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("4593")}}),e("p",[t._v("qp")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("84dd")}}),e("p",[t._v("ZXR")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("3f65")}}),e("p",[t._v("花儿朵朵")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("bf03")}}),e("p",[t._v("suka")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("654b")}}),e("p",[t._v("Chris")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("80ba")}}),e("p",[t._v("水车")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("a930")}}),e("p",[t._v("仓鼠")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("bcae")}}),e("p",[t._v("千帆")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("bba7")}}),e("p",[t._v("才镇")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("9465")}}),e("p",[t._v("小米bbᯤ²ᴳ")])])]),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("6ea0")}}),e("p",[t._v("*棐")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("5b80")}}),e("p",[t._v("Luke")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("7215")}}),e("p",[t._v("布林")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("0b8c")}}),e("p",[t._v("南风")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("d33b")}}),e("p",[t._v("蜉蝣撼大叔")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("ca5d")}}),e("p",[t._v("乙")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("5ea5")}}),e("p",[t._v("敏")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("aaba")}}),e("p",[t._v("沐风牧草")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("eac7")}}),e("p",[t._v("有希")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("4000")}}),e("p",[t._v("樊笼")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("30de")}}),e("p",[t._v("达仁科技")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("8d3e")}}),e("p",[t._v("小逗比")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("2707")}}),e("p",[t._v("天清如愿")])])]),e("div",{staticStyle:{display:"flex"}},[e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("4f23")}}),e("p",[t._v("敬明朗")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("5b80")}}),e("p",[t._v("飞箭")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("4623")}}),e("p",[t._v("戚永峰")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("6065")}}),e("p",[t._v("moom")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("331d")}}),e("p",[t._v("张扬")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("a4f7")}}),e("p",[t._v("长沙利奥软件")])]),e("div",{staticStyle:{display:"flex","flex-direction":"column","align-items":"center",width:"fit-content",margin:"5px"}},[e("img",{staticStyle:{width:"50px",height:"50px","object-fit":"cover","border-radius":"50%"},attrs:{src:i("3e05")}}),e("p",[t._v("HaHN")])])])])}],r={},a=r,c=i("2877"),s=Object(c["a"])(a,n,o,!1,null,null,null);e["default"]=s.exports},"80ba":function(t,e,i){t.exports=i.p+"img/水车.jpg"},"84dd":function(t,e,i){t.exports=i.p+"img/ZXR.jpg"},"8d3e":function(t,e){t.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXhpZgAATU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAASqADAAQAAAABAAAASgAAAAD/wAARCABKAEoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9sAQwACAgICAgIDAgIDBQMDAwUGBQUFBQYIBgYGBgYICggICAgICAoKCgoKCgoKDAwMDAwMDg4ODg4PDw8PDw8PDw8P/9sAQwECAwMEBAQHBAQHEAsJCxAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/90ABAAF/9oADAMBAAIRAxEAPwD9m54Q2eKyZbf0FdnPae1ZUtvnPFfQxqnjSpnGzwYzisWaHr8v6V281qTlqyprXrkV2QrHHOmzg7m33dqxprfrx0rvLizHPGKxp7QDtXbGuc7ps4We2BOSKyZrYZOFruJrZTnjmsqa1UdRitVXIdI4yS1z2qv9lHpXVTW4qt5H1qvrBSpH/9D9t5db0ZmZVvIiV6guOKxr/X9BtEMk97EoHbcDXyZJ4ispv+PedJQcnKnOcdayG1g3jHyGBUc5B4H0r1o0vM8x1fI+kNX+I/huzVhC7XLAfwDj82wK4+f4t6SyFlspflGDkqMe3WvCbq5cKysRtJxkHPP4dq5e+u7yNCETcsZAJU7gSemMda6YqKMJTk+h7prHxgghjQ2dgSx6+a4AA9gAc1m6H8YtI1G4FnrUQsHkOEkB3Rk+5I+X6968SXSdV1ub7DbkeeFdyrHBIRSxxnvgV59d/ZZDmecoVLq4A4jCAEA89STirUopai9++h98rJbXcYmtpFlRuhUhh+lUJoVwRiviHwt4v1fTbgTaTcSqiSRxlQS0ZMhO3cORyAc554616f8A8LU8Urf3FjIInlgh8wALyxPIPXjIIJqHNrqdMVzLY98kjAPAqtsHp/n864Sb4i2FnpumX+oANFqSIY5IuV3E4IJ6DJyQMk4BFXh400MjPmnn/ZrD25p7I//R9W0nxx4f8J201rfRMZY5XZFOHJB5OMkZ5bP4VX8W+MNU/wCEgtbnQYEgFiiqbeQnypw7HDsBnBHOcdeK8Y8V+LvDMcUmoz2sb27uFWPAd94+UHzOCASMnAIHXB61paV4ifX2tdXlAjNzBGSoOQCkzJx37VtWlO6urBSSV9Lnew/Eu7hvnS20a4kvd7OI4o2kRVAPyggElSMEnGccYrK1n4t6ms2+6ifSy8SsIggGApIJw2CCSD16g5ryS38UfEGYajp3hG8ihktJ5i0scuy48skjBx0UDrjp3rmV+HfxS163n1Gc/a5ncMG84SMRgkknBJ49Bjil9cit2ckqb6H0d4R+MMGj6jPfYimneNwpnnCY81SDhSOpzzjIFU9GM+raVrp1XVdO0vyZIZJGeUNJOrk4RADg7eDkfSvkm+8Ea813BDqenzPcNKVdk+ZlUDqBkZ6dP0qrrNzD4T0qP7dYSxpKSo3n5t3IzjJAAABxmuR4y9vZy3N/YvlXMj6n0a40WOCZDrqA3M6ea8c/lDMAYBkXaSV2scEkZORyKx/EHiWwsLgXfh+9lnlWFxKzODuCDyxzjBBUZ46GvlnQ7HXNXWXU7HT2htFUSNNIGjTA4BUscH6DPrU0l81ncrBcIs8u07VMoIJPTGTjn0I/nTWIkpashr3bJH11oJ8a+JvD1pYrbGbTLYSSwBZY1IUAmPBySQWYkAgHJJB7D2bTrb4uyafayf2PZjdEhw4O7lR156+tfnLb6tqcJEau9m0UgA2ykDIOQAB3VgcEZArvY/jF8Uo41ji8TSbFAC/PngdOamWIbd7FQk0tUf/S+UJbnUP+EfljnckrIAAAF+XnsVj/AFBPrkcV2Hg/xnBpmh2C3WZZ44jGV4B/1zSZznOD0HeuT8Tstu+tWkAO22uSg9cB8dgf1zXjWpQ+JYb6PyEQ2OAWG8DdtJJBG7cTyeoHWuqr7yRx0nZM9EuPG82p3OqW+mIbHUfNm3SKBseJsgBwBnIzjI659q8y0nxN4/8ADOqpd+Gr67trlCVQxO5PAwQACSRjtjoa9X8PeH0j0S9v72xa2ullISdHyksJIcfIMkEKCSc57Yrz2HU5bnxE9tYzmDL7WnEQZoUPAC84A+vOMVyKS52rGzjon1Pqbw9rnxo8TeEbB2aJ9TVsx3LuEuBGTyX3AMDjI65xjBFT+IbLxyL9YvEFzpcccjNuWT92NoXIYnOck5IOMnvmrWi+bG8Fpb6mXuoVX5ivD4A5ypI57j1r0yDw9b+KNUtvtBQXCAgSswCrkcsSeAMZyT0xxXjY2NGD5kjWjzyfKz5o8ZSeJ9RaSxsCiC3gRWjgYCIfLkMCAQSeMnvjiuV8NWNtpGoG68UacdVlSRWiQOSlsyt1OCBJkAEKeAfXpXoPxfsbX4f+L08MC5aNJ2RgoJJJlTJIKZBGScDkDv0rhtOTTdC0hpPtErXTt5amQhiMkhCgBJBJJAIycHBwRWMKycLx2NZ80XZrY2dTfRrq8lWxhYlGMhkklczykAkAgnjgnHU9B0rz37SzfNFpk4Q8qN7cDt3rtbS6sI7mVNXtBdw6jEczSkpJFLGAo8sLnAC5ABJDfxA8YzWu4Nx+z2SiLPyAkZ29v4fSlGpyKyZjJXP/0/iCe+8/Rr+e5nE7vIrMxIYklgTyWfqTnjH581x1xYXuo38OrNqNuFQ7Tal2R8A9SSAmCxBxuzyT0FT6Dc3M+k3HnyvJl0+8xPdPWud1OSQWyYY8kd67+XY4ons/ivxnpc3hm10y6vlsp7SIAJBIspLn5QQQMcKCSM8ZArB8A+C9Iv1fUYtQa+mZgZDG7RhCeSGGcknvzz2r581Jm8695PDDH/fNexfCOaaPUzFHIypKgLqCQGODyR3NeFXg+WUoux2QlzNXPpeTW/DOhRpbaTLaJfgBUDnjpg5bOT0OB7VxWv8AxHa5iFtBcR+bE20mF2RS74AORu4A6ZIOffp8z/ESSQeKrnDEYU459q1PDgH2jR/dwT9QDiuOVBWvJ3C7i9D66u/ilrXijSbfQvFOj2OqvbDy7bUXgBubRQvUOCGIYAqRjnPJyTXJ6Zd3mkaw9/azi1EsLiQyxwlXiKYIEfzAkMAeASDyDkGuELv9gvn3HdsJznnPNZEf77wppM03zyYm+ZuTwxxya8VQtLlRUqkpJSZ2V1qOnsxWyjkBkDAPG4LjcMABSQoAJB4AJGBnOa8xk0vxWZGKahabSTjcF3Y9/n6+tOvby88u5HnyYVVwNx44HStq3jjNvESoJKr29q7IrlVjO1z/2Q=="},9465:function(t,e,i){t.exports=i.p+"img/小米.jpg"},a4f7:function(t,e,i){t.exports=i.p+"img/长沙利奥软件.jpg"},a930:function(t,e,i){t.exports=i.p+"img/仓鼠.jpg"},aaba:function(t,e,i){t.exports=i.p+"img/沐风牧草.jpg"},bba7:function(t,e,i){t.exports=i.p+"img/才镇.jpg"},bcae:function(t,e,i){t.exports=i.p+"img/千帆.jpg"},bf03:function(t,e,i){t.exports=i.p+"img/suka.jpg"},ca5d:function(t,e,i){t.exports=i.p+"img/乙.jpg"},d33b:function(t,e,i){t.exports=i.p+"img/蜉蝣撼大叔.jpg"},eac7:function(t,e,i){t.exports=i.p+"img/有希.jpg"},f8ce:function(t,e,i){t.exports=i.p+"img/Think.jpg"}}]); \ No newline at end of file diff --git a/dist/js/chunk-38caf5df.js b/dist/js/chunk-da4aa08c.js similarity index 84% rename from dist/js/chunk-38caf5df.js rename to dist/js/chunk-da4aa08c.js index a64e75e8..20f45cb0 100644 --- a/dist/js/chunk-38caf5df.js +++ b/dist/js/chunk-da4aa08c.js @@ -1,8 +1,8 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38caf5df"],{"0082":function(e,t,n){e.exports=n.p+"img/ditu.svg"},"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"012b":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"c",(function(){return m}));var r=n("9fd6"),i=n("5ab3"),o=n("4afd");const a=0,s=1,l=2,c=(e,t)=>{r["n"](e,a);const n=o["d"](t);r["o"](e,n)},u=(e,t,n)=>{r["n"](e,s),r["o"](e,o["c"](t,n))},h=(e,t,n)=>u(t,n,i["l"](e)),d=(e,t,n)=>{try{o["b"](t,i["l"](e),n)}catch(r){console.error("Caught error while handling a Yjs update",r)}},f=(e,t)=>{r["n"](e,l),r["o"](e,t)},p=d,m=(e,t,n,r)=>{const o=i["k"](e);switch(o){case a:h(e,t,n);break;case s:d(e,n,r);break;case l:p(e,n,r);break;default:throw new Error("Unknown message type")}return o}},"01fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u}));var r=n("c4f9"),i=n("a2b5");const o=(e,t,n=0)=>{try{for(;n{},s=e=>e,l=(e,t)=>e===t,c=(e,t)=>{if(null==e||null==t)return l(e,t);if(e.constructor!==t.constructor)return!1;if(e===t)return!0;switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;nt.includes(e);r["d"]},"027d":function(e,t,n){e.exports=n.p+"img/zhongyangjie.svg"},"02a0":function(e,t,n){e.exports=n.p+"img/a-18-xiguan.svg"},"02c6":function(e,t,n){"use strict";n("7b4d")},"0455":function(e,t,n){e.exports=n.p+"img/zhongqiujie.svg"},"045f":function(e,t,n){"use strict";n("b8c0")},"049e":function(e,t,n){e.exports=n.p+"img/shiyan.svg"},"04a8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("fa98");const r=Date.now},"04f0":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));const r=()=>new Set,i=e=>new Set(e)},"0536":function(e,t,n){e.exports=n.p+"img/rose.jpg"},"058c":function(e,t,n){},"0613":function(e,t,n){e.exports=n.p+"img/a-6-jiancebi.svg"},"06c3":function(e,t,n){"use strict";var r=n("1fa7");e.exports=Function.prototype.bind||r},"0754":function(e,t,n){e.exports=n.p+"img/simpleBlack.jpg"},"07f3":function(e,t,n){e.exports=n.p+"img/duanwujie.svg"},"0914":function(e,t,n){e.exports=n.p+"img/tiyu.svg"},"0960":function(e,t,n){e.exports=n("b19a")},"09ce":function(e,t,n){"use strict";var r=n("1a89"),i=n("8d5c"),o=n("61eb"),a=n("44c1"),s=n("8af8"),l=r.RegExp,c=l.prototype,u=i&&s((function(){var e=!0;try{l(".","d")}catch(u){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);var s=Object.getOwnPropertyDescriptor(c,"flags").get.call(t);return s!==r||n!==r}));u&&o(c,"flags",{configurable:!0,get:a})},"09d9":function(e,t,n){var r=n("9a1c").isArray;e.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){e in t&&"boolean"===typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!==typeof e.spaces&&"string"!==typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"===typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"===typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},"0a21":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return"undefined"===typeof t||r.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,a,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"===typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});d]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,d){var f=n+e.length,p=r.length,m=u;return void 0!==h&&(h=i(h),m=c),s(d,m,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=h[l(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>p){var d=o(u/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[u-1]}return void 0===c?"":c}))}},"0cfe":function(e,t,n){e.exports=n.p+"img/timeline.png"},"0d26":function(e,t,n){var r=n("e330"),i=Error,o=r("".replace),a=function(e){return String(i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"0d42":function(e,t,n){e.exports=n.p+"img/dark.jpg"},"0d93":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return q}));var r=n("b51b"),i=n("1651"),o=n("9aca"),a=n("ac44"),s=n("9fd6"),l=n("5ab3"),c=n("81ad"),u=n("da66"),h=n("b5e5"),d=n("9a8c"),f=n("2e03"),p=n("efdf"),m=n("fa98"),g=n("f932"),v=n("e217"),b=n.n(v),y=n("012b"),w=n("b260"),x=n("6eac");const k=u["a"]("y-webrtc"),A=0,C=3,E=1,S=4,T=new Map,N=new Map,M=e=>{let t=!0;e.webrtcConns.forEach(e=>{e.synced||(t=!1)}),(!t&&e.synced||t&&!e.synced)&&(e.synced=t,e.provider.emit("synced",[{synced:t}]),k("synced ",h["b"],e.name,h["h"]," with all peers"))},L=(e,t,n)=>{const r=l["e"](t),i=s["e"](),o=l["k"](r);if(void 0===e)return null;const a=e.awareness,c=e.doc;let u=!1;switch(o){case A:{s["n"](i,A);const t=y["c"](r,i,c,e);t!==y["b"]||e.synced||n(),t===y["a"]&&(u=!0);break}case C:s["n"](i,E),s["o"](i,w["c"](a,Array.from(a.getStates().keys()))),u=!0;break;case E:w["b"](a,l["l"](r),e);break;case S:{const t=1===l["h"](r),n=l["j"](r);if(n!==e.peerId&&(e.bcConns.has(n)&&!t||!e.bcConns.has(n)&&t)){const r=[],i=[];t?(e.bcConns.add(n),i.push(n)):(e.bcConns.delete(n),r.push(n)),e.provider.emit("peers",[{added:i,removed:r,webrtcPeers:Array.from(e.webrtcConns.keys()),bcPeers:Array.from(e.bcConns)}]),B(e)}break}default:return console.error("Unable to compute message"),i}return u?i:null},O=(e,t)=>{const n=e.room;return k("received message from ",h["b"],e.remotePeerId,h["d"]," (",n.name,")",h["h"],h["i"]),L(n,t,()=>{e.synced=!0,k("synced ",h["b"],n.name,h["h"]," with ",h["b"],e.remotePeerId),M(n)})},D=(e,t)=>{k("send message to ",h["b"],e.remotePeerId,h["h"],h["d"]," (",e.room.name,")",h["i"]);try{e.peer.send(s["f"](t))}catch(n){}},P=(e,t)=>{k("broadcast message in ",h["b"],e.name,h["h"]),e.webrtcConns.forEach(e=>{try{e.peer.send(t)}catch(n){}})};class I{constructor(e,t,n,r){k("establishing connection to ",h["b"],n),this.room=r,this.remotePeerId=n,this.closed=!1,this.connected=!1,this.synced=!1,this.peer=new b.a({initiator:t,...r.provider.peerOpts}),this.peer.on("signal",t=>{H(e,r,{to:n,from:r.peerId,type:"signal",signal:t})}),this.peer.on("connect",()=>{k("connected to ",h["b"],n),this.connected=!0;const e=r.provider,t=e.doc,i=r.awareness,o=s["e"]();s["n"](o,A),y["d"](o,t),D(this,o);const a=i.getStates();if(a.size>0){const e=s["e"]();s["n"](e,E),s["o"](e,w["c"](i,Array.from(a.keys()))),D(this,e)}}),this.peer.on("close",()=>{this.connected=!1,this.closed=!0,r.webrtcConns.has(this.remotePeerId)&&(r.webrtcConns.delete(this.remotePeerId),r.provider.emit("peers",[{removed:[this.remotePeerId],added:[],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}])),M(r),this.peer.destroy(),k("closed connection to ",h["b"],n),z(r)}),this.peer.on("error",e=>{k("Error in connection to ",h["b"],n,": ",e),z(r)}),this.peer.on("data",e=>{const t=O(this,e);null!==t&&D(this,t)})}destroy(){this.peer.destroy()}}const R=(e,t)=>x["d"](t,e.key).then(t=>e.mux(()=>f["a"](e.name,t))),F=(e,t)=>{e.bcconnected&&R(e,t),P(e,t)},z=e=>{T.forEach(t=>{t.connected&&(t.send({type:"subscribe",topics:[e.name]}),e.webrtcConns.size{if(e.provider.filterBcConns){const t=s["e"]();s["n"](t,S),s["j"](t,1),s["m"](t,e.peerId),R(e,s["f"](t))}};class _{constructor(t,n,r,i){this.peerId=a["c"](),this.doc=t,this.awareness=n.awareness,this.provider=n,this.synced=!1,this.name=r,this.key=i,this.webrtcConns=new Map,this.bcConns=new Set,this.mux=Object(g["a"])(),this.bcconnected=!1,this._bcSubscriber=e=>x["a"](new Uint8Array(e),i).then(e=>this.mux(()=>{const t=L(this,e,()=>{});t&&R(this,s["f"](t))})),this._docUpdateHandler=(e,t)=>{const n=s["e"]();s["n"](n,A),y["f"](n,e),F(this,s["f"](n))},this._awarenessUpdateHandler=({added:e,updated:t,removed:n},r)=>{const i=e.concat(t).concat(n),o=s["e"]();s["n"](o,E),s["o"](o,w["c"](this.awareness,i)),F(this,s["f"](o))},this._beforeUnloadHandler=()=>{w["d"](this.awareness,[t.clientID],"window unload"),N.forEach(e=>{e.disconnect()})},"undefined"!==typeof window?window.addEventListener("beforeunload",this._beforeUnloadHandler):"undefined"!==typeof e&&e.on("exit",this._beforeUnloadHandler)}connect(){this.doc.on("update",this._docUpdateHandler),this.awareness.on("update",this._awarenessUpdateHandler),z(this);const e=this.name;f["b"](e,this._bcSubscriber),this.bcconnected=!0,B(this);const t=s["e"]();s["n"](t,A),y["d"](t,this.doc),R(this,s["f"](t));const n=s["e"]();s["n"](n,A),y["e"](n,this.doc),R(this,s["f"](n));const r=s["e"]();s["n"](r,C),R(this,s["f"](r));const i=s["e"]();s["n"](i,E),s["o"](i,w["c"](this.awareness,[this.doc.clientID])),R(this,s["f"](i))}disconnect(){T.forEach(e=>{e.connected&&e.send({type:"unsubscribe",topics:[this.name]})}),w["d"](this.awareness,[this.doc.clientID],"disconnect");const e=s["e"]();s["n"](e,S),s["j"](e,0),s["m"](e,this.peerId),R(this,s["f"](e)),f["c"](this.name,this._bcSubscriber),this.bcconnected=!1,this.doc.off("update",this._docUpdateHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.webrtcConns.forEach(e=>e.destroy())}destroy(){this.disconnect(),"undefined"!==typeof window?window.removeEventListener("beforeunload",this._beforeUnloadHandler):"undefined"!==typeof e&&e.off("exit",this._beforeUnloadHandler)}}const j=(e,t,n,r)=>{if(N.has(n))throw o["a"](`A Yjs Doc connected to room "${n}" already exists!`);const i=new _(e,t,n,r);return N.set(n,i),i},H=(e,t,n)=>{t.key?x["e"](n,t.key).then(n=>{e.send({type:"publish",topic:t.name,data:p["e"](n)})}):e.send({type:"publish",topic:t.name,data:n})};class U extends r["a"]{constructor(e){super(e),this.providers=new Set,this.on("connect",()=>{k(`connected (${e})`);const t=Array.from(N.keys());this.send({type:"subscribe",topics:t}),N.forEach(e=>H(this,e,{type:"announce",from:e.peerId}))}),this.on("message",e=>{switch(e.type){case"publish":{const t=e.topic,n=N.get(t);if(null==n||"string"!==typeof t)return;const r=e=>{const t=n.webrtcConns,r=n.peerId;if(null==e||e.from===r||void 0!==e.to&&e.to!==r||n.bcConns.has(e.from))return;const o=t.has(e.from)?()=>{}:()=>n.provider.emit("peers",[{removed:[],added:[e.from],webrtcPeers:Array.from(n.webrtcConns.keys()),bcPeers:Array.from(n.bcConns)}]);switch(e.type){case"announce":t.sizenew I(this,!0,e.from,n)),o());break;case"signal":e.to===r&&(i["e"](t,e.from,()=>new I(this,!1,e.from,n)).peer.signal(e.signal),o());break}};n.key?"string"===typeof e.data&&x["b"](p["d"](e.data),n.key).then(r):r(e.data)}}}),this.on("disconnect",()=>k(`disconnect (${e})`))}}class q extends c["a"]{constructor(e,t,{signaling:n=["wss://y-webrtc-eu.fly.dev"],password:r=null,awareness:i=new w["a"](t),maxConns:o=20+m["d"](15*a["a"]()),filterBcConns:s=!0,peerOpts:l={}}={}){super(),this.roomName=e,this.doc=t,this.filterBcConns=s,this.awareness=i,this.shouldConnect=!1,this.signalingUrls=n,this.signalingConns=[],this.maxConns=o,this.peerOpts=l,this.key=r?x["c"](r,e):d["c"](null),this.room=null,this.key.then(n=>{this.room=j(t,this,e,n),this.shouldConnect?this.room.connect():this.room.disconnect()}),this.connect(),this.destroy=this.destroy.bind(this),t.on("destroy",this.destroy)}get connected(){return null!==this.room&&this.shouldConnect}connect(){this.shouldConnect=!0,this.signalingUrls.forEach(e=>{const t=i["e"](T,e,()=>new U(e));this.signalingConns.push(t),t.providers.add(this)}),this.room&&this.room.connect()}disconnect(){this.shouldConnect=!1,this.signalingConns.forEach(e=>{e.providers.delete(this),0===e.providers.size&&(e.destroy(),T.delete(e.url))}),this.room&&this.room.disconnect()}destroy(){this.doc.off("destroy",this.destroy),this.key.then(()=>{this.room.destroy(),N.delete(this.roomName)}),super.destroy()}}}).call(this,n("4362"))},"0e25":function(e,t,n){e.exports=n.p+"img/a-13-xiguan.svg"},"0e4d":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>void 0===e?null:e},"0e50":function(e,t,n){e.exports=n.p+"img/ziyuan_2.svg"},"0e5f":function(e,t,n){},"0e5fa":function(e,t,n){e.exports=n.p+"img/a-9-tizhongcheng.svg"},"0fb2":function(e,t,n){"use strict";var r=Date.prototype.getDay,i=function(e){try{return r.call(e),!0}catch(t){return!1}},o=Object.prototype.toString,a="[object Date]",s=n("9803")();e.exports=function(e){return"object"===typeof e&&null!==e&&(s?i(e):o.call(e)===a)}},"0fb5":function(e,t,n){e.exports=n.p+"img/muqinjie.svg"},1:function(e,t){},"103a":function(e,t,n){e.exports=n.p+"img/paishe.svg"},"10ad":function(e,t,n){var r,i,o=n("a83d"),a={on:function(){},parse:function(){}},s=n("09d9"),l=n("9a1c").isArray,c=!0;function u(e){return r=s.copyOptions(e),s.ensureFlagExists("ignoreDeclaration",r),s.ensureFlagExists("ignoreInstruction",r),s.ensureFlagExists("ignoreAttributes",r),s.ensureFlagExists("ignoreText",r),s.ensureFlagExists("ignoreComment",r),s.ensureFlagExists("ignoreCdata",r),s.ensureFlagExists("ignoreDoctype",r),s.ensureFlagExists("compact",r),s.ensureFlagExists("alwaysChildren",r),s.ensureFlagExists("addParent",r),s.ensureFlagExists("trim",r),s.ensureFlagExists("nativeType",r),s.ensureFlagExists("nativeTypeAttributes",r),s.ensureFlagExists("sanitize",r),s.ensureFlagExists("instructionHasAttributes",r),s.ensureFlagExists("captureSpacesBetweenElements",r),s.ensureAlwaysArrayExists(r),s.ensureKeyExists("declaration",r),s.ensureKeyExists("instruction",r),s.ensureKeyExists("attributes",r),s.ensureKeyExists("text",r),s.ensureKeyExists("comment",r),s.ensureKeyExists("cdata",r),s.ensureKeyExists("doctype",r),s.ensureKeyExists("type",r),s.ensureKeyExists("name",r),s.ensureKeyExists("elements",r),s.ensureKeyExists("parent",r),s.checkFnExists("doctype",r),s.checkFnExists("instruction",r),s.checkFnExists("cdata",r),s.checkFnExists("comment",r),s.checkFnExists("text",r),s.checkFnExists("instructionName",r),s.checkFnExists("elementName",r),s.checkFnExists("attributeName",r),s.checkFnExists("attributeValue",r),s.checkFnExists("attributes",r),r}function h(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return"true"===n||"false"!==n&&e}function d(e,t){var n;if(r.compact){if(!i[r[e+"Key"]]&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(i[r[e+"Key"]]=[]),i[r[e+"Key"]]&&!l(i[r[e+"Key"]])&&(i[r[e+"Key"]]=[i[r[e+"Key"]]]),e+"Fn"in r&&"string"===typeof t&&(t=r[e+"Fn"](t,i)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r))for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in r)t[n]=r.instructionFn(t[n],n,i);else{var o=t[n];delete t[n],t[r.instructionNameFn(n,o,i)]=o}l(i[r[e+"Key"]])?i[r[e+"Key"]].push(t):i[r[e+"Key"]]=t}else{i[r.elementsKey]||(i[r.elementsKey]=[]);var a={};if(a[r.typeKey]=e,"instruction"===e){for(n in t)if(t.hasOwnProperty(n))break;a[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(n,t,i):n,r.instructionHasAttributes?(a[r.attributesKey]=t[n][r.attributesKey],"instructionFn"in r&&(a[r.attributesKey]=r.instructionFn(a[r.attributesKey],n,i))):("instructionFn"in r&&(t[n]=r.instructionFn(t[n],n,i)),a[r.instructionKey]=t[n])}else e+"Fn"in r&&(t=r[e+"Fn"](t,i)),a[r[e+"Key"]]=t;r.addParent&&(a[r.parentKey]=i),i[r.elementsKey].push(a)}}function f(e){var t;if("attributesFn"in r&&e&&(e=r.attributesFn(e,i)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=h(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,i)),"attributeNameFn"in r)){var n=e[t];delete e[t],e[r.attributeNameFn(t,e[t],i)]=n}return e}function p(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){var n,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;while(null!==(n=o.exec(e.body)))t[n[1]]=n[2]||n[3]||n[4];t=f(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;i[r.declarationKey]={},Object.keys(t).length&&(i[r.declarationKey][r.attributesKey]=t),r.addParent&&(i[r.declarationKey][r.parentKey]=i)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var a={};r.instructionHasAttributes&&Object.keys(t).length?(a[e.name]={},a[e.name][r.attributesKey]=t):a[e.name]=e.body,d("instruction",a)}}function m(e,t){var n;if("object"===typeof e&&(t=e.attributes,e=e.name),t=f(t),"elementNameFn"in r&&(e=r.elementNameFn(e,i)),r.compact){var o;if(n={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(o in n[r.attributesKey]={},t)t.hasOwnProperty(o)&&(n[r.attributesKey][o]=t[o]);!(e in i)&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(e):r.alwaysArray)&&(i[e]=[]),i[e]&&!l(i[e])&&(i[e]=[i[e]]),l(i[e])?i[e].push(n):i[e]=n}else i[r.elementsKey]||(i[r.elementsKey]=[]),n={},n[r.typeKey]="element",n[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(n[r.attributesKey]=t),r.alwaysChildren&&(n[r.elementsKey]=[]),i[r.elementsKey].push(n);n[r.parentKey]=i,i=n}function g(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=h(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),d("text",e))}function v(e){r.ignoreComment||(r.trim&&(e=e.trim()),d("comment",e))}function b(e){var t=i[r.parentKey];r.addParent||delete i[r.parentKey],i=t}function y(e){r.ignoreCdata||(r.trim&&(e=e.trim()),d("cdata",e))}function w(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),d("doctype",e))}function x(e){e.note=e}e.exports=function(e,t){var n=c?o.parser(!0,{}):n=new a.Parser("UTF-8"),s={};if(i=s,r=u(t),c?(n.opt={strictEntities:!0},n.onopentag=m,n.ontext=g,n.oncomment=v,n.onclosetag=b,n.onerror=x,n.oncdata=y,n.ondoctype=w,n.onprocessinginstruction=p):(n.on("startElement",m),n.on("text",g),n.on("comment",v),n.on("endElement",b),n.on("error",x)),c)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(s[r.elementsKey]){var l=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=l,delete s.text}return s}},1259:function(e,t,n){},"12a6":function(e,t,n){e.exports=n.p+"img/ziyuan.svg"},"12b7":function(e,t,n){e.exports=n.p+"img/a-7-xinzang.svg"},"135f":function(e,t,n){e.exports=n.p+"img/avocado.jpg"},1397:function(e,t,n){e.exports=n.p+"img/neonLamp.jpg"},"146c":function(e,t,n){"use strict";n("a95f")},1474:function(e,t,n){e.exports=n.p+"img/classicGreen.jpg"},1485:function(e,t,n){e.exports=n.p+"img/pisa.svg"},"14bd":function(e,t,n){e.exports=n.p+"img/ziyuan_10.svg"},"14d4":function(e,t,n){e.exports=n.p+"img/tianqi.svg"},1560:function(e,t,n){e.exports=n.p+"img/blueSky.jpg"},1587:function(e,t,n){},"15ec":function(e,t,n){"use strict";n("d852")},1651:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s}));const r=()=>new Map,i=e=>{const t=r();return e.forEach((e,n)=>{t.set(n,e)}),t},o=(e,t,n)=>{let r=e.get(t);return void 0===r&&e.set(t,r=n()),r},a=(e,t)=>{const n=[];for(const[r,i]of e)n.push(t(i,r));return n},s=(e,t)=>{for(const[n,r]of e)if(t(r,n))return!0;return!1}},"17f2":function(e,t,n){e.exports=n.p+"img/jisuanqi.svg"},1802:function(e,t,n){"use strict";var r=n("46ab"),i=n("cc50");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},1936:function(e,t,n){"use strict";var r=n("96c8"),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},"19bf":function(e,t,n){var r=n("5841"),i=n("0a21"),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},"1ab0":function(e,t,n){"use strict";n("70e3")},"1b88":function(e,t,n){e.exports=n.p+"img/blackGold.jpg"},"1bc3":function(e,t,n){e.exports=n.p+"img/a-6-jiancebi.svg"},"1c6b":function(e,t,n){e.exports=n.p+"img/naozhong.svg"},"1cd3":function(e,t,n){"use strict";var r=n("4a66");e.exports=function(){return"function"===typeof Object.is?Object.is:r}},"1cf0":function(e,t,n){"use strict";var r=n("ce8e"),i=n("5d66"),o=n("d7f0"),a=n("3213"),s=n("23071"),l=i(a());r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},"1d76":function(e,t,n){"use strict";var r=n("3f29"),i=n("5d66"),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},"1e35":function(e,t,n){e.exports=n.p+"img/shouji.svg"},"1f76":function(e,t,n){e.exports=n.p+"img/freshGreen.jpg"},"1fa7":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||o.call(t)!==a)throw new TypeError(r+t);for(var n,s=i.call(arguments,1),l=function(){if(this instanceof n){var r=t.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(i.call(arguments)))},c=Math.max(0,t.length-s.length),u=[],h=0;h0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(h(e,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2:function(e,t){},"21cd":function(e,t,n){e.exports=n.p+"img/qixi.svg"},"222a":function(e,t,n){e.exports=n.p+"img/hangli.svg"},"227b":function(e,t,n){e.exports=n.p+"img/zhuyishixiang.svg"},"229d":function(e,t,n){e.exports=n.p+"img/lajiao.svg"},"22a7":function(e,t,n){e.exports=n.p+"img/wenjian.svg"},2307:function(e,t,n){},23071:function(e,t,n){"use strict";var r=n("ce8e").supportsDescriptors,i=n("3213"),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,l=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=l(c),n=o(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},"23dd":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"k",(function(){return h})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"n",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return g})),n.d(t,"j",(function(){return v}));const r=1,i=2,o=4,a=8,s=32,l=64,c=128,u=1<<21,h=31,d=63,f=127,p=255,m=u-1,g=2147483647,v=4294967295},"24c7":function(e,t,n){e.exports=n.p+"img/diqiu.svg"},"25ca":function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return cp})),n.d(t,"b",(function(){return Mp})); +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-da4aa08c"],{"0082":function(e,t,n){e.exports=n.p+"img/ditu.svg"},"00ee":function(e,t,n){var r=n("b622"),i=r("toStringTag"),o={};o[i]="z",e.exports="[object z]"===String(o)},"012b":function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"c",(function(){return m}));var r=n("9fd6"),i=n("5ab3"),o=n("4afd");const a=0,s=1,l=2,c=(e,t)=>{r["n"](e,a);const n=o["d"](t);r["o"](e,n)},u=(e,t,n)=>{r["n"](e,s),r["o"](e,o["c"](t,n))},h=(e,t,n)=>u(t,n,i["l"](e)),d=(e,t,n)=>{try{o["b"](t,i["l"](e),n)}catch(r){console.error("Caught error while handling a Yjs update",r)}},f=(e,t)=>{r["n"](e,l),r["o"](e,t)},p=d,m=(e,t,n,r)=>{const o=i["k"](e);switch(o){case a:h(e,t,n);break;case s:d(e,n,r);break;case l:p(e,n,r);break;default:throw new Error("Unknown message type")}return o}},"01fd":function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"d",(function(){return u}));var r=n("c4f9"),i=n("a2b5");const o=(e,t,n=0)=>{try{for(;n{},s=e=>e,l=(e,t)=>e===t,c=(e,t)=>{if(null==e||null==t)return l(e,t);if(e.constructor!==t.constructor)return!1;if(e===t)return!0;switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),t=new Uint8Array(t);case Uint8Array:if(e.byteLength!==t.byteLength)return!1;for(let n=0;nt.includes(e);r["d"]},"027d":function(e,t,n){e.exports=n.p+"img/zhongyangjie.svg"},"02a0":function(e,t,n){e.exports=n.p+"img/a-18-xiguan.svg"},"02c6":function(e,t,n){"use strict";n("7b4d")},"0455":function(e,t,n){e.exports=n.p+"img/zhongqiujie.svg"},"045f":function(e,t,n){"use strict";n("b8c0")},"049e":function(e,t,n){e.exports=n.p+"img/shiyan.svg"},"04a8":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("fa98");const r=Date.now},"04f0":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));const r=()=>new Set,i=e=>new Set(e)},"0536":function(e,t,n){e.exports=n.p+"img/rose.jpg"},"058c":function(e,t,n){},"0613":function(e,t,n){e.exports=n.p+"img/a-6-jiancebi.svg"},"06c3":function(e,t,n){"use strict";var r=n("1fa7");e.exports=Function.prototype.bind||r},"0754":function(e,t,n){e.exports=n.p+"img/simpleBlack.jpg"},"07f3":function(e,t,n){e.exports=n.p+"img/duanwujie.svg"},"0914":function(e,t,n){e.exports=n.p+"img/tiyu.svg"},"0960":function(e,t,n){e.exports=n("b19a")},"09ce":function(e,t,n){"use strict";var r=n("1a89"),i=n("8d5c"),o=n("61eb"),a=n("44c1"),s=n("8af8"),l=r.RegExp,c=l.prototype,u=i&&s((function(){var e=!0;try{l(".","d")}catch(u){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(o.hasIndices="d"),o)i(a,o[a]);var s=Object.getOwnPropertyDescriptor(c,"flags").get.call(t);return s!==r||n!==r}));u&&o(c,"flags",{configurable:!0,get:a})},"09d9":function(e,t,n){var r=n("9a1c").isArray;e.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){e in t&&"boolean"===typeof t[e]||(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||"number"!==typeof e.spaces&&"string"!==typeof e.spaces)&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){"alwaysArray"in e&&("boolean"===typeof e.alwaysArray||r(e.alwaysArray))||(e.alwaysArray=!1)},ensureKeyExists:function(e,t){e+"Key"in t&&"string"===typeof t[e+"Key"]||(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}},"0a21":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,s=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return"undefined"===typeof t||r.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(a)return a(e,t).value}return e[t]};e.exports=function e(){var t,n,r,i,o,a,h=arguments[0],d=1,f=arguments.length,p=!1;for("boolean"===typeof h&&(p=h,h=arguments[1]||{},d=2),(null==h||"object"!==typeof h&&"function"!==typeof h)&&(h={});d]*>)/g,u=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,h,d){var f=n+e.length,p=r.length,m=u;return void 0!==h&&(h=i(h),m=c),s(d,m,(function(i,s){var c;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return l(t,0,n);case"'":return l(t,f);case"<":c=h[l(s,1,-1)];break;default:var u=+s;if(0===u)return i;if(u>p){var d=o(u/10);return 0===d?i:d<=p?void 0===r[d-1]?a(s,1):r[d-1]+a(s,1):i}c=r[u-1]}return void 0===c?"":c}))}},"0cfe":function(e,t,n){e.exports=n.p+"img/timeline.png"},"0d26":function(e,t,n){var r=n("e330"),i=Error,o=r("".replace),a=function(e){return String(i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"0d42":function(e,t,n){e.exports=n.p+"img/dark.jpg"},"0d93":function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return q}));var r=n("b51b"),i=n("1651"),o=n("9aca"),a=n("ac44"),s=n("9fd6"),l=n("5ab3"),c=n("81ad"),u=n("da66"),h=n("b5e5"),d=n("9a8c"),f=n("2e03"),p=n("efdf"),m=n("fa98"),g=n("f932"),v=n("e217"),b=n.n(v),y=n("012b"),w=n("b260"),x=n("6eac");const k=u["a"]("y-webrtc"),A=0,C=3,E=1,S=4,T=new Map,N=new Map,M=e=>{let t=!0;e.webrtcConns.forEach(e=>{e.synced||(t=!1)}),(!t&&e.synced||t&&!e.synced)&&(e.synced=t,e.provider.emit("synced",[{synced:t}]),k("synced ",h["b"],e.name,h["h"]," with all peers"))},L=(e,t,n)=>{const r=l["e"](t),i=s["e"](),o=l["k"](r);if(void 0===e)return null;const a=e.awareness,c=e.doc;let u=!1;switch(o){case A:{s["n"](i,A);const t=y["c"](r,i,c,e);t!==y["b"]||e.synced||n(),t===y["a"]&&(u=!0);break}case C:s["n"](i,E),s["o"](i,w["c"](a,Array.from(a.getStates().keys()))),u=!0;break;case E:w["b"](a,l["l"](r),e);break;case S:{const t=1===l["h"](r),n=l["j"](r);if(n!==e.peerId&&(e.bcConns.has(n)&&!t||!e.bcConns.has(n)&&t)){const r=[],i=[];t?(e.bcConns.add(n),i.push(n)):(e.bcConns.delete(n),r.push(n)),e.provider.emit("peers",[{added:i,removed:r,webrtcPeers:Array.from(e.webrtcConns.keys()),bcPeers:Array.from(e.bcConns)}]),B(e)}break}default:return console.error("Unable to compute message"),i}return u?i:null},O=(e,t)=>{const n=e.room;return k("received message from ",h["b"],e.remotePeerId,h["d"]," (",n.name,")",h["h"],h["i"]),L(n,t,()=>{e.synced=!0,k("synced ",h["b"],n.name,h["h"]," with ",h["b"],e.remotePeerId),M(n)})},D=(e,t)=>{k("send message to ",h["b"],e.remotePeerId,h["h"],h["d"]," (",e.room.name,")",h["i"]);try{e.peer.send(s["f"](t))}catch(n){}},P=(e,t)=>{k("broadcast message in ",h["b"],e.name,h["h"]),e.webrtcConns.forEach(e=>{try{e.peer.send(t)}catch(n){}})};class I{constructor(e,t,n,r){k("establishing connection to ",h["b"],n),this.room=r,this.remotePeerId=n,this.closed=!1,this.connected=!1,this.synced=!1,this.peer=new b.a({initiator:t,...r.provider.peerOpts}),this.peer.on("signal",t=>{H(e,r,{to:n,from:r.peerId,type:"signal",signal:t})}),this.peer.on("connect",()=>{k("connected to ",h["b"],n),this.connected=!0;const e=r.provider,t=e.doc,i=r.awareness,o=s["e"]();s["n"](o,A),y["d"](o,t),D(this,o);const a=i.getStates();if(a.size>0){const e=s["e"]();s["n"](e,E),s["o"](e,w["c"](i,Array.from(a.keys()))),D(this,e)}}),this.peer.on("close",()=>{this.connected=!1,this.closed=!0,r.webrtcConns.has(this.remotePeerId)&&(r.webrtcConns.delete(this.remotePeerId),r.provider.emit("peers",[{removed:[this.remotePeerId],added:[],webrtcPeers:Array.from(r.webrtcConns.keys()),bcPeers:Array.from(r.bcConns)}])),M(r),this.peer.destroy(),k("closed connection to ",h["b"],n),z(r)}),this.peer.on("error",e=>{k("Error in connection to ",h["b"],n,": ",e),z(r)}),this.peer.on("data",e=>{const t=O(this,e);null!==t&&D(this,t)})}destroy(){this.peer.destroy()}}const R=(e,t)=>x["d"](t,e.key).then(t=>e.mux(()=>f["a"](e.name,t))),F=(e,t)=>{e.bcconnected&&R(e,t),P(e,t)},z=e=>{T.forEach(t=>{t.connected&&(t.send({type:"subscribe",topics:[e.name]}),e.webrtcConns.size{if(e.provider.filterBcConns){const t=s["e"]();s["n"](t,S),s["j"](t,1),s["m"](t,e.peerId),R(e,s["f"](t))}};class _{constructor(t,n,r,i){this.peerId=a["c"](),this.doc=t,this.awareness=n.awareness,this.provider=n,this.synced=!1,this.name=r,this.key=i,this.webrtcConns=new Map,this.bcConns=new Set,this.mux=Object(g["a"])(),this.bcconnected=!1,this._bcSubscriber=e=>x["a"](new Uint8Array(e),i).then(e=>this.mux(()=>{const t=L(this,e,()=>{});t&&R(this,s["f"](t))})),this._docUpdateHandler=(e,t)=>{const n=s["e"]();s["n"](n,A),y["f"](n,e),F(this,s["f"](n))},this._awarenessUpdateHandler=({added:e,updated:t,removed:n},r)=>{const i=e.concat(t).concat(n),o=s["e"]();s["n"](o,E),s["o"](o,w["c"](this.awareness,i)),F(this,s["f"](o))},this._beforeUnloadHandler=()=>{w["d"](this.awareness,[t.clientID],"window unload"),N.forEach(e=>{e.disconnect()})},"undefined"!==typeof window?window.addEventListener("beforeunload",this._beforeUnloadHandler):"undefined"!==typeof e&&e.on("exit",this._beforeUnloadHandler)}connect(){this.doc.on("update",this._docUpdateHandler),this.awareness.on("update",this._awarenessUpdateHandler),z(this);const e=this.name;f["b"](e,this._bcSubscriber),this.bcconnected=!0,B(this);const t=s["e"]();s["n"](t,A),y["d"](t,this.doc),R(this,s["f"](t));const n=s["e"]();s["n"](n,A),y["e"](n,this.doc),R(this,s["f"](n));const r=s["e"]();s["n"](r,C),R(this,s["f"](r));const i=s["e"]();s["n"](i,E),s["o"](i,w["c"](this.awareness,[this.doc.clientID])),R(this,s["f"](i))}disconnect(){T.forEach(e=>{e.connected&&e.send({type:"unsubscribe",topics:[this.name]})}),w["d"](this.awareness,[this.doc.clientID],"disconnect");const e=s["e"]();s["n"](e,S),s["j"](e,0),s["m"](e,this.peerId),R(this,s["f"](e)),f["c"](this.name,this._bcSubscriber),this.bcconnected=!1,this.doc.off("update",this._docUpdateHandler),this.awareness.off("update",this._awarenessUpdateHandler),this.webrtcConns.forEach(e=>e.destroy())}destroy(){this.disconnect(),"undefined"!==typeof window?window.removeEventListener("beforeunload",this._beforeUnloadHandler):"undefined"!==typeof e&&e.off("exit",this._beforeUnloadHandler)}}const j=(e,t,n,r)=>{if(N.has(n))throw o["a"](`A Yjs Doc connected to room "${n}" already exists!`);const i=new _(e,t,n,r);return N.set(n,i),i},H=(e,t,n)=>{t.key?x["e"](n,t.key).then(n=>{e.send({type:"publish",topic:t.name,data:p["e"](n)})}):e.send({type:"publish",topic:t.name,data:n})};class U extends r["a"]{constructor(e){super(e),this.providers=new Set,this.on("connect",()=>{k(`connected (${e})`);const t=Array.from(N.keys());this.send({type:"subscribe",topics:t}),N.forEach(e=>H(this,e,{type:"announce",from:e.peerId}))}),this.on("message",e=>{switch(e.type){case"publish":{const t=e.topic,n=N.get(t);if(null==n||"string"!==typeof t)return;const r=e=>{const t=n.webrtcConns,r=n.peerId;if(null==e||e.from===r||void 0!==e.to&&e.to!==r||n.bcConns.has(e.from))return;const o=t.has(e.from)?()=>{}:()=>n.provider.emit("peers",[{removed:[],added:[e.from],webrtcPeers:Array.from(n.webrtcConns.keys()),bcPeers:Array.from(n.bcConns)}]);switch(e.type){case"announce":t.sizenew I(this,!0,e.from,n)),o());break;case"signal":e.to===r&&(i["e"](t,e.from,()=>new I(this,!1,e.from,n)).peer.signal(e.signal),o());break}};n.key?"string"===typeof e.data&&x["b"](p["d"](e.data),n.key).then(r):r(e.data)}}}),this.on("disconnect",()=>k(`disconnect (${e})`))}}class q extends c["a"]{constructor(e,t,{signaling:n=["wss://y-webrtc-eu.fly.dev"],password:r=null,awareness:i=new w["a"](t),maxConns:o=20+m["d"](15*a["a"]()),filterBcConns:s=!0,peerOpts:l={}}={}){super(),this.roomName=e,this.doc=t,this.filterBcConns=s,this.awareness=i,this.shouldConnect=!1,this.signalingUrls=n,this.signalingConns=[],this.maxConns=o,this.peerOpts=l,this.key=r?x["c"](r,e):d["c"](null),this.room=null,this.key.then(n=>{this.room=j(t,this,e,n),this.shouldConnect?this.room.connect():this.room.disconnect()}),this.connect(),this.destroy=this.destroy.bind(this),t.on("destroy",this.destroy)}get connected(){return null!==this.room&&this.shouldConnect}connect(){this.shouldConnect=!0,this.signalingUrls.forEach(e=>{const t=i["e"](T,e,()=>new U(e));this.signalingConns.push(t),t.providers.add(this)}),this.room&&this.room.connect()}disconnect(){this.shouldConnect=!1,this.signalingConns.forEach(e=>{e.providers.delete(this),0===e.providers.size&&(e.destroy(),T.delete(e.url))}),this.room&&this.room.disconnect()}destroy(){this.doc.off("destroy",this.destroy),this.key.then(()=>{this.room.destroy(),N.delete(this.roomName)}),super.destroy()}}}).call(this,n("4362"))},"0e25":function(e,t,n){e.exports=n.p+"img/a-13-xiguan.svg"},"0e4d":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=e=>void 0===e?null:e},"0e50":function(e,t,n){e.exports=n.p+"img/ziyuan_2.svg"},"0e5f":function(e,t,n){},"0e5fa":function(e,t,n){e.exports=n.p+"img/a-9-tizhongcheng.svg"},"0fb2":function(e,t,n){"use strict";var r=Date.prototype.getDay,i=function(e){try{return r.call(e),!0}catch(t){return!1}},o=Object.prototype.toString,a="[object Date]",s=n("9803")();e.exports=function(e){return"object"===typeof e&&null!==e&&(s?i(e):o.call(e)===a)}},"0fb5":function(e,t,n){e.exports=n.p+"img/muqinjie.svg"},1:function(e,t){},"103a":function(e,t,n){e.exports=n.p+"img/paishe.svg"},"10ad":function(e,t,n){var r,i,o=n("a83d"),a={on:function(){},parse:function(){}},s=n("09d9"),l=n("9a1c").isArray,c=!0;function u(e){return r=s.copyOptions(e),s.ensureFlagExists("ignoreDeclaration",r),s.ensureFlagExists("ignoreInstruction",r),s.ensureFlagExists("ignoreAttributes",r),s.ensureFlagExists("ignoreText",r),s.ensureFlagExists("ignoreComment",r),s.ensureFlagExists("ignoreCdata",r),s.ensureFlagExists("ignoreDoctype",r),s.ensureFlagExists("compact",r),s.ensureFlagExists("alwaysChildren",r),s.ensureFlagExists("addParent",r),s.ensureFlagExists("trim",r),s.ensureFlagExists("nativeType",r),s.ensureFlagExists("nativeTypeAttributes",r),s.ensureFlagExists("sanitize",r),s.ensureFlagExists("instructionHasAttributes",r),s.ensureFlagExists("captureSpacesBetweenElements",r),s.ensureAlwaysArrayExists(r),s.ensureKeyExists("declaration",r),s.ensureKeyExists("instruction",r),s.ensureKeyExists("attributes",r),s.ensureKeyExists("text",r),s.ensureKeyExists("comment",r),s.ensureKeyExists("cdata",r),s.ensureKeyExists("doctype",r),s.ensureKeyExists("type",r),s.ensureKeyExists("name",r),s.ensureKeyExists("elements",r),s.ensureKeyExists("parent",r),s.checkFnExists("doctype",r),s.checkFnExists("instruction",r),s.checkFnExists("cdata",r),s.checkFnExists("comment",r),s.checkFnExists("text",r),s.checkFnExists("instructionName",r),s.checkFnExists("elementName",r),s.checkFnExists("attributeName",r),s.checkFnExists("attributeValue",r),s.checkFnExists("attributes",r),r}function h(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return"true"===n||"false"!==n&&e}function d(e,t){var n;if(r.compact){if(!i[r[e+"Key"]]&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(r[e+"Key"]):r.alwaysArray)&&(i[r[e+"Key"]]=[]),i[r[e+"Key"]]&&!l(i[r[e+"Key"]])&&(i[r[e+"Key"]]=[i[r[e+"Key"]]]),e+"Fn"in r&&"string"===typeof t&&(t=r[e+"Fn"](t,i)),"instruction"===e&&("instructionFn"in r||"instructionNameFn"in r))for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in r)t[n]=r.instructionFn(t[n],n,i);else{var o=t[n];delete t[n],t[r.instructionNameFn(n,o,i)]=o}l(i[r[e+"Key"]])?i[r[e+"Key"]].push(t):i[r[e+"Key"]]=t}else{i[r.elementsKey]||(i[r.elementsKey]=[]);var a={};if(a[r.typeKey]=e,"instruction"===e){for(n in t)if(t.hasOwnProperty(n))break;a[r.nameKey]="instructionNameFn"in r?r.instructionNameFn(n,t,i):n,r.instructionHasAttributes?(a[r.attributesKey]=t[n][r.attributesKey],"instructionFn"in r&&(a[r.attributesKey]=r.instructionFn(a[r.attributesKey],n,i))):("instructionFn"in r&&(t[n]=r.instructionFn(t[n],n,i)),a[r.instructionKey]=t[n])}else e+"Fn"in r&&(t=r[e+"Fn"](t,i)),a[r[e+"Key"]]=t;r.addParent&&(a[r.parentKey]=i),i[r.elementsKey].push(a)}}function f(e){var t;if("attributesFn"in r&&e&&(e=r.attributesFn(e,i)),(r.trim||"attributeValueFn"in r||"attributeNameFn"in r||r.nativeTypeAttributes)&&e)for(t in e)if(e.hasOwnProperty(t)&&(r.trim&&(e[t]=e[t].trim()),r.nativeTypeAttributes&&(e[t]=h(e[t])),"attributeValueFn"in r&&(e[t]=r.attributeValueFn(e[t],t,i)),"attributeNameFn"in r)){var n=e[t];delete e[t],e[r.attributeNameFn(t,e[t],i)]=n}return e}function p(e){var t={};if(e.body&&("xml"===e.name.toLowerCase()||r.instructionHasAttributes)){var n,o=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;while(null!==(n=o.exec(e.body)))t[n[1]]=n[2]||n[3]||n[4];t=f(t)}if("xml"===e.name.toLowerCase()){if(r.ignoreDeclaration)return;i[r.declarationKey]={},Object.keys(t).length&&(i[r.declarationKey][r.attributesKey]=t),r.addParent&&(i[r.declarationKey][r.parentKey]=i)}else{if(r.ignoreInstruction)return;r.trim&&(e.body=e.body.trim());var a={};r.instructionHasAttributes&&Object.keys(t).length?(a[e.name]={},a[e.name][r.attributesKey]=t):a[e.name]=e.body,d("instruction",a)}}function m(e,t){var n;if("object"===typeof e&&(t=e.attributes,e=e.name),t=f(t),"elementNameFn"in r&&(e=r.elementNameFn(e,i)),r.compact){var o;if(n={},!r.ignoreAttributes&&t&&Object.keys(t).length)for(o in n[r.attributesKey]={},t)t.hasOwnProperty(o)&&(n[r.attributesKey][o]=t[o]);!(e in i)&&(l(r.alwaysArray)?-1!==r.alwaysArray.indexOf(e):r.alwaysArray)&&(i[e]=[]),i[e]&&!l(i[e])&&(i[e]=[i[e]]),l(i[e])?i[e].push(n):i[e]=n}else i[r.elementsKey]||(i[r.elementsKey]=[]),n={},n[r.typeKey]="element",n[r.nameKey]=e,!r.ignoreAttributes&&t&&Object.keys(t).length&&(n[r.attributesKey]=t),r.alwaysChildren&&(n[r.elementsKey]=[]),i[r.elementsKey].push(n);n[r.parentKey]=i,i=n}function g(e){r.ignoreText||(e.trim()||r.captureSpacesBetweenElements)&&(r.trim&&(e=e.trim()),r.nativeType&&(e=h(e)),r.sanitize&&(e=e.replace(/&/g,"&").replace(//g,">")),d("text",e))}function v(e){r.ignoreComment||(r.trim&&(e=e.trim()),d("comment",e))}function b(e){var t=i[r.parentKey];r.addParent||delete i[r.parentKey],i=t}function y(e){r.ignoreCdata||(r.trim&&(e=e.trim()),d("cdata",e))}function w(e){r.ignoreDoctype||(e=e.replace(/^ /,""),r.trim&&(e=e.trim()),d("doctype",e))}function x(e){e.note=e}e.exports=function(e,t){var n=c?o.parser(!0,{}):n=new a.Parser("UTF-8"),s={};if(i=s,r=u(t),c?(n.opt={strictEntities:!0},n.onopentag=m,n.ontext=g,n.oncomment=v,n.onclosetag=b,n.onerror=x,n.oncdata=y,n.ondoctype=w,n.onprocessinginstruction=p):(n.on("startElement",m),n.on("text",g),n.on("comment",v),n.on("endElement",b),n.on("error",x)),c)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(s[r.elementsKey]){var l=s[r.elementsKey];delete s[r.elementsKey],s[r.elementsKey]=l,delete s.text}return s}},1259:function(e,t,n){},"12a6":function(e,t,n){e.exports=n.p+"img/ziyuan.svg"},"12b7":function(e,t,n){e.exports=n.p+"img/a-7-xinzang.svg"},"135f":function(e,t,n){e.exports=n.p+"img/avocado.jpg"},1397:function(e,t,n){e.exports=n.p+"img/neonLamp.jpg"},"146c":function(e,t,n){"use strict";n("a95f")},1474:function(e,t,n){e.exports=n.p+"img/classicGreen.jpg"},1485:function(e,t,n){e.exports=n.p+"img/pisa.svg"},"14bd":function(e,t,n){e.exports=n.p+"img/ziyuan_10.svg"},"14d4":function(e,t,n){e.exports=n.p+"img/tianqi.svg"},1560:function(e,t,n){e.exports=n.p+"img/blueSky.jpg"},1587:function(e,t,n){},1651:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"e",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s}));const r=()=>new Map,i=e=>{const t=r();return e.forEach((e,n)=>{t.set(n,e)}),t},o=(e,t,n)=>{let r=e.get(t);return void 0===r&&e.set(t,r=n()),r},a=(e,t)=>{const n=[];for(const[r,i]of e)n.push(t(i,r));return n},s=(e,t)=>{for(const[n,r]of e)if(t(r,n))return!0;return!1}},"17f2":function(e,t,n){e.exports=n.p+"img/jisuanqi.svg"},1802:function(e,t,n){"use strict";var r=n("46ab"),i=n("cc50");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},1936:function(e,t,n){"use strict";var r=n("96c8"),i=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw new i("Wrong offset");return n}},"19bf":function(e,t,n){var r=n("5841"),i=n("0a21"),o={attributes:{compose:function(e,t,n){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var r=i(!0,{},t);for(var o in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[o]&&void 0===t[o]&&(r[o]=e[o]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!==typeof e&&(e={}),"object"!==typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!==typeof e)return t;if("object"===typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"===typeof e["delete"]?e["delete"]:"number"===typeof e.retain?e.retain:"string"===typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=o.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"===typeof t["delete"])return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"===typeof t.retain?i.retain=e:"string"===typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?o.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=o},"1ab0":function(e,t,n){"use strict";n("70e3")},"1b88":function(e,t,n){e.exports=n.p+"img/blackGold.jpg"},"1bc3":function(e,t,n){e.exports=n.p+"img/a-6-jiancebi.svg"},"1c6b":function(e,t,n){e.exports=n.p+"img/naozhong.svg"},"1cd3":function(e,t,n){"use strict";var r=n("4a66");e.exports=function(){return"function"===typeof Object.is?Object.is:r}},"1cf0":function(e,t,n){"use strict";var r=n("ce8e"),i=n("5d66"),o=n("d7f0"),a=n("3213"),s=n("23071"),l=i(a());r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},"1d76":function(e,t,n){"use strict";var r=n("3f29"),i=n("5d66"),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},"1e35":function(e,t,n){e.exports=n.p+"img/shouji.svg"},"1f76":function(e,t,n){e.exports=n.p+"img/freshGreen.jpg"},"1fa7":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||o.call(t)!==a)throw new TypeError(r+t);for(var n,s=i.call(arguments,1),l=function(){if(this instanceof n){var r=t.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(i.call(arguments)))},c=Math.max(0,t.length-s.length),u=[],h=0;h0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function d(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(h(e,a,s)),u=0,d=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function f(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},2:function(e,t){},"21cd":function(e,t,n){e.exports=n.p+"img/qixi.svg"},"222a":function(e,t,n){e.exports=n.p+"img/hangli.svg"},"227b":function(e,t,n){e.exports=n.p+"img/zhuyishixiang.svg"},"229d":function(e,t,n){e.exports=n.p+"img/lajiao.svg"},"22a7":function(e,t,n){e.exports=n.p+"img/wenjian.svg"},2307:function(e,t,n){},23071:function(e,t,n){"use strict";var r=n("ce8e").supportsDescriptors,i=n("3213"),o=Object.getOwnPropertyDescriptor,a=Object.defineProperty,s=TypeError,l=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!l)throw new s("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=i(),t=l(c),n=o(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},"23dd":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return c})),n.d(t,"k",(function(){return h})),n.d(t,"l",(function(){return d})),n.d(t,"m",(function(){return f})),n.d(t,"n",(function(){return p})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return g})),n.d(t,"j",(function(){return v}));const r=1,i=2,o=4,a=8,s=32,l=64,c=128,u=1<<21,h=31,d=63,f=127,p=255,m=u-1,g=2147483647,v=4294967295},"24c7":function(e,t,n){e.exports=n.p+"img/diqiu.svg"},"24d1":function(e,t,n){e.exports=n.p+"img/图片加载失败.svg"},"25ca":function(e,t,n){"use strict";(function(e,r){n.d(t,"a",(function(){return cp})),n.d(t,"b",(function(){return Mp})); /*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */ var i={version:"0.18.5"},o=1200,a=1252,s=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],l={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},c=function(e){-1!=s.indexOf(e)&&(a=l[0]=e)};function u(){c(1252)}var h=function(e){o=e,c(e)};function d(){h(1200),u()}function f(e){for(var t=[],n=0,r=e.length;n>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n)+(e.charCodeAt(2*n+1)<<8));return t.join("")}function m(e){for(var t=[],n=0;n>1;++n)t[n]=String.fromCharCode(e.charCodeAt(2*n+1)+(e.charCodeAt(2*n)<<8));return t.join("")}var g,v=function(e){var t=e.charCodeAt(0),n=e.charCodeAt(1);return 255==t&&254==n?p(e.slice(2)):254==t&&255==n?m(e.slice(2)):65279==t?e.slice(1):e},b=function(e){return String.fromCharCode(e)},y=function(e){return String.fromCharCode(e)};var w=null,x=!0,k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function A(e){for(var t="",n=0,r=0,i=0,o=0,a=0,s=0,l=0,c=0;c>2,r=e.charCodeAt(c++),a=(3&n)<<4|r>>4,i=e.charCodeAt(c++),s=(15&r)<<2|i>>6,l=63&i,isNaN(r)?s=l=64:isNaN(i)&&(l=64),t+=k.charAt(o)+k.charAt(a)+k.charAt(s)+k.charAt(l);return t}function C(e){var t="",n=0,r=0,i=0,o=0,a=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4,t+=String.fromCharCode(n),s=k.indexOf(e.charAt(c++)),r=(15&a)<<4|s>>2,64!==s&&(t+=String.fromCharCode(r)),l=k.indexOf(e.charAt(c++)),i=(3&s)<<6|l,64!==l&&(t+=String.fromCharCode(i));return t}var E=function(){return"undefined"!==typeof e&&"undefined"!==typeof r&&"undefined"!==typeof r.versions&&!!r.versions.node}(),S=function(){if("undefined"!==typeof e){var t=!e.from;if(!t)try{e.from("foo","utf8")}catch(n){t=!0}return t?function(t,n){return n?new e(t,n):new e(t)}:e.from.bind(e)}return function(){}}();function T(t){return E?e.alloc?e.alloc(t):new e(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}function N(t){return E?e.allocUnsafe?e.allocUnsafe(t):new e(t):"undefined"!=typeof Uint8Array?new Uint8Array(t):new Array(t)}var M=function(e){return E?S(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function L(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],n=0;n>6&31,i[n++]=128|63&a;else if(a>=55296&&a<57344){a=64+(1023&a);var s=1023&e.charCodeAt(++o);i[n++]=240|a>>8&7,i[n++]=128|a>>2&63,i[n++]=128|s>>6&15|(3&a)<<4,i[n++]=128|63&s}else i[n++]=224|a>>12&15,i[n++]=128|a>>6&63,i[n++]=128|63&a;n>r&&(t.push(i.slice(0,n)),n=0,i=T(65535),r=65530)}return t.push(i.slice(0,n)),D(t)}var I=/\u0000/g,R=/[\u0001-\u0006]/g;function F(e){var t="",n=e.length-1;while(n>=0)t+=e.charAt(n--);return t}function z(e,t){var n=""+e;return n.length>=t?n:ft("0",t-n.length)+n}function B(e,t){var n=""+e;return n.length>=t?n:ft(" ",t-n.length)+n}function _(e,t){var n=""+e;return n.length>=t?n:n+ft(" ",t-n.length)}function j(e,t){var n=""+Math.round(e);return n.length>=t?n:ft("0",t-n.length)+n}function H(e,t){var n=""+e;return n.length>=t?n:ft("0",t-n.length)+n}var U=Math.pow(2,32);function q(e,t){if(e>U||e<-U)return j(e,t);var n=Math.round(e);return H(n,t)}function G(e,t){return t=t||0,e.length>=7+t&&103===(32|e.charCodeAt(t))&&101===(32|e.charCodeAt(t+1))&&110===(32|e.charCodeAt(t+2))&&101===(32|e.charCodeAt(t+3))&&114===(32|e.charCodeAt(t+4))&&97===(32|e.charCodeAt(t+5))&&108===(32|e.charCodeAt(t+6))}var W=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],V=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function Y(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Z={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},K={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},X={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function J(e,t,n){var r=e<0?-1:1,i=e*r,o=0,a=1,s=0,l=1,c=0,u=0,h=Math.floor(i);while(ct&&(c>t?(u=l,s=o):(u=c,s=a)),!n)return[0,r*s,u];var d=Math.floor(r*s/u);return[d,r*s-d*u,u]}function Q(e,t,n){if(e>2958465||e<0)return null;var r=0|e,i=Math.floor(86400*(e-r)),o=0,a=[],s={D:r,T:i,u:86400*(e-r)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(r+=1462),s.u>.9999&&(s.u=0,86400==++i&&(s.T=i=0,++r,++s.D)),60===r)a=n?[1317,10,29]:[1900,2,29],o=3;else if(0===r)a=n?[1317,8,29]:[1900,1,0],o=6;else{r>60&&--r;var l=new Date(1900,0,1);l.setDate(l.getDate()+r-1),a=[l.getFullYear(),l.getMonth()+1,l.getDate()],o=l.getDay(),r<60&&(o=(o+6)%7),n&&(o=ue(l,a))}return s.y=a[0],s.m=a[1],s.d=a[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=o,s}var ee=new Date(1899,11,31,0,0,0),te=ee.getTime(),ne=new Date(1900,2,1,0,0,0);function re(e,t){var n=e.getTime();return t?n-=1262304e5:e>=ne&&(n+=864e5),(n-(te+6e4*(e.getTimezoneOffset()-ee.getTimezoneOffset())))/864e5}function ie(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function oe(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function ae(e){var t=e<0?12:11,n=ie(e.toFixed(12));return n.length<=t?n:(n=e.toPrecision(10),n.length<=t?n:e.toExponential(5))}function se(e){var t=ie(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}function le(e){var t,n=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=n>=-4&&n<=-1?e.toPrecision(10+n):Math.abs(n)<=9?ae(e):10===n?e.toFixed(10).substr(0,12):se(e),ie(oe(t.toUpperCase()))}function ce(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):le(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return He(14,re(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function ue(e,t){t[0]-=581;var n=e.getDay();return e<60&&(n=(n+6)%7),n}function he(e,t,n,r){var i,o="",a=0,s=0,l=n.y,c=0;switch(e){case 98:l=n.y+543;case 121:switch(t.length){case 1:case 2:i=l%100,c=2;break;default:i=l%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:i=n.m,c=t.length;break;case 3:return V[n.m-1][1];case 5:return V[n.m-1][0];default:return V[n.m-1][2]}break;case 100:switch(t.length){case 1:case 2:i=n.d,c=t.length;break;case 3:return W[n.q][0];default:return W[n.q][1]}break;case 104:switch(t.length){case 1:case 2:i=1+(n.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:i=n.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:i=n.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==n.u||"s"!=t&&"ss"!=t?(s=r>=2?3===r?1e3:100:1===r?10:1,a=Math.round(s*(n.S+n.u)),a>=60*s&&(a=0),"s"===t?0===a?"0":""+a/s:(o=z(a,2+r),"ss"===t?o.substr(0,2):"."+o.substr(2,t.length-1))):z(n.S,t.length);case 90:switch(t){case"[h]":case"[hh]":i=24*n.D+n.H;break;case"[m]":case"[mm]":i=60*(24*n.D+n.H)+n.M;break;case"[s]":case"[ss]":i=60*(60*(24*n.D+n.H)+n.M)+Math.round(n.S+n.u);break;default:throw"bad abstime format: "+t}c=3===t.length?1:2;break;case 101:i=l,c=1;break}var u=c>0?z(i,c):"";return u}function de(e){var t=3;if(e.length<=t)return e;for(var n=e.length%t,r=e.substr(0,n);n!=e.length;n+=t)r+=(r.length>0?",":"")+e.substr(n,t);return r}var fe=/%/g;function pe(e,t,n){var r=t.replace(fe,""),i=t.length-r.length;return Pe(e,r,n*Math.pow(10,2*i))+ft("%",i)}function me(e,t,n){var r=t.length-1;while(44===t.charCodeAt(r-1))--r;return Pe(e,t.substr(0,r),n/Math.pow(10,3*(t.length-r)))}function ge(e,t){var n,r=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ge(e,-t);var i=e.indexOf(".");-1===i&&(i=e.indexOf("E"));var o=Math.floor(Math.log(t)*Math.LOG10E)%i;if(o<0&&(o+=i),n=(t/Math.pow(10,o)).toPrecision(r+1+(i+o)%i),-1===n.indexOf("e")){var a=Math.floor(Math.log(t)*Math.LOG10E);-1===n.indexOf(".")?n=n.charAt(0)+"."+n.substr(1)+"E+"+(a-n.length+o):n+="E+"+(a-o);while("0."===n.substr(0,2))n=n.charAt(0)+n.substr(2,i)+"."+n.substr(2+i),n=n.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");n=n.replace(/\+-/,"-")}n=n.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,n,r){return t+n+r.substr(0,(i+o)%i)+"."+r.substr(o)+"E"}))}else n=t.toExponential(r);return e.match(/E\+00$/)&&n.match(/e[+-]\d$/)&&(n=n.substr(0,n.length-1)+"0"+n.charAt(n.length-1)),e.match(/E\-/)&&n.match(/e\+/)&&(n=n.replace(/e\+/,"e")),n.replace("e","E")}var ve=/# (\?+)( ?)\/( ?)(\d+)/;function be(e,t,n){var r=parseInt(e[4],10),i=Math.round(t*r),o=Math.floor(i/r),a=i-o*r,s=r;return n+(0===o?"":""+o)+" "+(0===a?ft(" ",e[1].length+1+e[4].length):B(a,e[1].length)+e[2]+"/"+e[3]+z(s,e[4].length))}function ye(e,t,n){return n+(0===t?"":""+t)+ft(" ",e[1].length+2+e[4].length)}var we=/^#*0*\.([0#]+)/,xe=/\).*[0#]/,ke=/\(###\) ###\\?-####/;function Ae(e){for(var t,n="",r=0;r!=e.length;++r)switch(t=e.charCodeAt(r)){case 35:break;case 63:n+=" ";break;case 48:n+="0";break;default:n+=String.fromCharCode(t)}return n}function Ce(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n}function Ee(e,t){var n=e-Math.floor(e),r=Math.pow(10,t);return t<(""+Math.round(n*r)).length?0:Math.round(n*r)}function Se(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function Te(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}function Ne(e,t,n){if(40===e.charCodeAt(0)&&!t.match(xe)){var r=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return n>=0?Ne("n",r,n):"("+Ne("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return me(e,t,n);if(-1!==t.indexOf("%"))return pe(e,t,n);if(-1!==t.indexOf("E"))return ge(t,n);if(36===t.charCodeAt(0))return"$"+Ne(e,t.substr(" "==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+q(l,t.length);if(t.match(/^[#?]+$/))return i=q(n,0),"0"===i&&(i=""),i.length>t.length?i:Ae(t.substr(0,t.length-i.length))+i;if(o=t.match(ve))return be(o,l,c);if(t.match(/^#+0+$/))return c+q(l,t.length-t.indexOf("0"));if(o=t.match(we))return i=Ce(n,o[1].length).replace(/^([^\.]+)$/,"$1."+Ae(o[1])).replace(/\.$/,"."+Ae(o[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+ft("0",Ae(o[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return c+Ce(l,o[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return c+de(q(l,0));if(o=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+Ne(e,t,-n):de(""+(Math.floor(n)+Se(n,o[1].length)))+"."+z(Ee(n,o[1].length),o[1].length);if(o=t.match(/^#,#*,#0/))return Ne(e,t.replace(/^#,#*,/,""),n);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=F(Ne(e,t.replace(/[\\-]/g,""),n)),a=0,F(F(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a=0?De("n",r,n):"("+De("n",r,-n)+")"}if(44===t.charCodeAt(t.length-1))return Me(e,t,n);if(-1!==t.indexOf("%"))return Le(e,t,n);if(-1!==t.indexOf("E"))return Oe(t,n);if(36===t.charCodeAt(0))return"$"+De(e,t.substr(" "==t.charAt(1)?2:1),n);var i,o,a,s,l=Math.abs(n),c=n<0?"-":"";if(t.match(/^00+$/))return c+z(l,t.length);if(t.match(/^[#?]+$/))return i=""+n,0===n&&(i=""),i.length>t.length?i:Ae(t.substr(0,t.length-i.length))+i;if(o=t.match(ve))return ye(o,l,c);if(t.match(/^#+0+$/))return c+z(l,t.length-t.indexOf("0"));if(o=t.match(we))return i=(""+n).replace(/^([^\.]+)$/,"$1."+Ae(o[1])).replace(/\.$/,"."+Ae(o[1])),i=i.replace(/\.(\d*)$/,(function(e,t){return"."+t+ft("0",Ae(o[1]).length-t.length)})),-1!==t.indexOf("0.")?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),o=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,o[1].length?"0.":".");if(o=t.match(/^#{1,3},##0(\.?)$/))return c+de(""+l);if(o=t.match(/^#,##0\.([#0]*0)$/))return n<0?"-"+De(e,t,-n):de(""+n)+"."+ft("0",o[1].length);if(o=t.match(/^#,#*,#0/))return De(e,t.replace(/^#,#*,/,""),n);if(o=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=F(De(e,t.replace(/[\\-]/g,""),n)),a=0,F(F(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return a-1||"\\"==n&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1));break;case"?":while(e.charAt(++t)===n);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":while(t-1);break;case" ":++t;break;default:++t;break}return!1}function ze(e,t,n,r){var i,o,a,s=[],l="",c=0,u="",h="t",d="H";while(c=12?"P":"A"),m.t="T",d="h",c+=3):"AM/PM"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"PM":"AM"),m.t="T",c+=5,d="h"):"上午/下午"===e.substr(c,5).toUpperCase()?(null!=i&&(m.v=i.H>=12?"下午":"上午"),m.t="T",c+=5,d="h"):(m.t="t",++c),null==i&&"T"===m.t)return"";s[s.length]=m,h=u;break;case"[":l=u;while("]"!==e.charAt(c++)&&c-1&&(l=(l.match(/\$([^-\[\]]*)/)||[])[1]||"$",Fe(e)||(s[s.length]={t:"t",v:l}));break;case".":if(null!=i){l=u;while(++c-1)l+=u;s[s.length]={t:"n",v:l};break;case"?":l=u;while(e.charAt(++c)===u)l+=u;s[s.length]={t:u,v:l},h=u;break;case"*":++c," "!=e.charAt(c)&&"*"!=e.charAt(c)||++c;break;case"(":case")":s[s.length]={t:1===r?"t":u,v:u},++c;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":l=u;while(c-1)l+=e.charAt(c);s[s.length]={t:"D",v:l};break;case" ":s[s.length]={t:u,v:u},++c;break;case"$":s[s.length]={t:"t",v:"$"},++c;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(u))throw new Error("unrecognized character "+u+" in "+e);s[s.length]={t:"t",v:u},++c;break}var g,v=0,b=0;for(c=s.length-1,h="t";c>=0;--c)switch(s[c].t){case"h":case"H":s[c].t=d,h="h",v<1&&(v=1);break;case"s":(g=s[c].v.match(/\.0+$/))&&(b=Math.max(b,g[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":h=s[c].t;break;case"m":"s"===h&&(s[c].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&s[c].v.match(/[Hh]/)&&(v=1),v<2&&s[c].v.match(/[Mm]/)&&(v=2),v<3&&s[c].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M),i.M>=60&&(i.M=0,++i.H);break;case 2:i.u>=.5&&(i.u=0,++i.S),i.S>=60&&(i.S=0,++i.M);break}var y,w="";for(c=0;c0){40==w.charCodeAt(0)?(x=t<0&&45===w.charCodeAt(0)?-t:t,k=Pe("n",w,x)):(x=t<0&&r>1?-t:t,k=Pe("n",w,x),x<0&&s[0]&&"t"==s[0].t&&(k=k.substr(1),s[0].v="-"+s[0].v)),y=k.length-1;var C=s.length;for(c=0;c-1){C=c;break}var E=s.length;if(C===s.length&&-1===k.indexOf("E")){for(c=s.length-1;c>=0;--c)null!=s[c]&&-1!=="n?".indexOf(s[c].t)&&(y>=s[c].v.length-1?(y-=s[c].v.length,s[c].v=k.substr(y+1,s[c].v.length)):y<0?s[c].v="":(s[c].v=k.substr(0,y+1),y=-1),s[c].t="t",E=c);y>=0&&E=0;--c)if(null!=s[c]&&-1!=="n?".indexOf(s[c].t)){for(o=s[c].v.indexOf(".")>-1&&c===C?s[c].v.indexOf(".")-1:s[c].v.length-1,A=s[c].v.substr(o+1);o>=0;--o)y>=0&&("0"===s[c].v.charAt(o)||"#"===s[c].v.charAt(o))&&(A=k.charAt(y--)+A);s[c].v=A,s[c].t="t",E=c}for(y>=0&&E-1&&c===C?s[c].v.indexOf(".")+1:0,A=s[c].v.substr(0,o);o-1&&(x=r>1&&t<0&&c>0&&"-"===s[c-1].v?-t:t,s[c].v=Pe(s[c].t,s[c].v,x),s[c].t="t");var S="";for(c=0;c!==s.length;++c)null!=s[c]&&(S+=s[c].v);return S}var Be=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function _e(e,t){if(null==t)return!1;var n=parseFloat(t[2]);switch(t[1]){case"=":if(e==n)return!0;break;case">":if(e>n)return!0;break;case"<":if(e":if(e!=n)return!0;break;case">=":if(e>=n)return!0;break;case"<=":if(e<=n)return!0;break}return!1}function je(e,t){var n=Ie(e),r=n.length,i=n[r-1].indexOf("@");if(r<4&&i>-1&&--r,n.length>4)throw new Error("cannot find right format for |"+n.join("|")+"|");if("number"!==typeof t)return[4,4===n.length||i>-1?n[n.length-1]:"@"];switch(n.length){case 1:n=i>-1?["General","General","General",n[0]]:[n[0],n[0],n[0],"@"];break;case 2:n=i>-1?[n[0],n[0],n[0],n[1]]:[n[0],n[1],n[0],"@"];break;case 3:n=i>-1?[n[0],n[1],n[0],n[2]]:[n[0],n[1],n[2],"@"];break;case 4:break}var o=t>0?n[0]:t<0?n[1]:n[2];if(-1===n[0].indexOf("[")&&-1===n[1].indexOf("["))return[r,o];if(null!=n[0].match(/\[[=<>]/)||null!=n[1].match(/\[[=<>]/)){var a=n[0].match(Be),s=n[1].match(Be);return _e(t,a)?[r,n[0]]:_e(t,s)?[r,n[1]]:[r,n[null!=a&&null!=s?2:1]]}return[r,o]}function He(e,t,n){null==n&&(n={});var r="";switch(typeof e){case"string":r="m/d/yy"==e&&n.dateNF?n.dateNF:e;break;case"number":r=14==e&&n.dateNF?n.dateNF:(null!=n.table?n.table:Z)[e],null==r&&(r=n.table&&n.table[K[e]]||Z[K[e]]),null==r&&(r=X[e]||"General");break}if(G(r,0))return ce(t,n);t instanceof Date&&(t=re(t,n.date1904));var i=je(r,t);if(G(i[1]))return ce(t,n);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return ze(i[1],t,n,i[0])}function Ue(e,t){if("number"!=typeof t){t=+t||-1;for(var n=0;n<392;++n)if(void 0!=Z[n]){if(Z[n]==e){t=n;break}}else t<0&&(t=n);t<0&&(t=391)}return Z[t]=e,t}function qe(){Z=Y()}var Ge={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},We=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Ve(e){var t="number"==typeof e?Z[e]:e;return t=t.replace(We,"(\\d+)"),new RegExp("^"+t+"$")}function Ye(e,t,n){var r=-1,i=-1,o=-1,a=-1,s=-1,l=-1;(t.match(We)||[]).forEach((function(e,t){var c=parseInt(n[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":r=c;break;case"d":o=c;break;case"h":a=c;break;case"s":l=c;break;case"m":a>=0?s=c:i=c;break}})),l>=0&&-1==s&&i>=0&&(s=i,i=-1);var c=(""+(r>=0?r:(new Date).getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var u=("00"+(a>=0?a:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==a&&-1==s&&-1==l?c:-1==r&&-1==i&&-1==o?u:c+"T"+u}var Ze=function(){var e={};function t(){for(var e=0,t=new Array(256),n=0;256!=n;++n)e=n,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,e=1&e?-306674912^e>>>1:e>>>1,t[n]=e;return"undefined"!==typeof Int32Array?new Int32Array(t):t}e.version="1.2.0";var n=t();function r(e){var t=0,n=0,r=0,i="undefined"!==typeof Int32Array?new Int32Array(4096):new Array(4096);for(r=0;256!=r;++r)i[r]=e[r];for(r=0;256!=r;++r)for(n=e[r],t=256+r;t<4096;t+=256)n=i[t]=n>>>8^e[255&n];var o=[];for(r=1;16!=r;++r)o[r-1]="undefined"!==typeof Int32Array?i.subarray(256*r,256*r+256):i.slice(256*r,256*r+256);return o}var i=r(n),o=i[0],a=i[1],s=i[2],l=i[3],c=i[4],u=i[5],h=i[6],d=i[7],f=i[8],p=i[9],m=i[10],g=i[11],v=i[12],b=i[13],y=i[14];function w(e,t){for(var r=-1^t,i=0,o=e.length;i>>8^n[255&(r^e.charCodeAt(i++))];return~r}function x(e,t){for(var r=-1^t,i=e.length-15,w=0;w>8&255]^v[e[w++]^r>>16&255]^g[e[w++]^r>>>24]^m[e[w++]]^p[e[w++]]^f[e[w++]]^d[e[w++]]^h[e[w++]]^u[e[w++]]^c[e[w++]]^l[e[w++]]^s[e[w++]]^a[e[w++]]^o[e[w++]]^n[e[w++]];i+=15;while(w>>8^n[255&(r^e[w++])];return~r}function k(e,t){for(var r=-1^t,i=0,o=e.length,a=0,s=0;i>>8^n[255&(r^a)]:a<2048?(r=r>>>8^n[255&(r^(192|a>>6&31))],r=r>>>8^n[255&(r^(128|63&a))]):a>=55296&&a<57344?(a=64+(1023&a),s=1023&e.charCodeAt(i++),r=r>>>8^n[255&(r^(240|a>>8&7))],r=r>>>8^n[255&(r^(128|a>>2&63))],r=r>>>8^n[255&(r^(128|s>>6&15|(3&a)<<4))],r=r>>>8^n[255&(r^(128|63&s))]):(r=r>>>8^n[255&(r^(224|a>>12&15))],r=r>>>8^n[255&(r^(128|a>>6&63))],r=r>>>8^n[255&(r^(128|63&a))]);return~r}return e.table=n,e.bstr=w,e.buf=x,e.str=k,e}(),Ke=function(){var t,n={};function r(e,t){for(var n=e.split("/"),r=t.split("/"),i=0,o=0,a=Math.min(n.length,r.length);i>>1,e.write_shift(2,n);var r=t.getFullYear()-1980;r=r<<4|t.getMonth()+1,r=r<<5|t.getDate(),e.write_shift(2,r)}function s(e){var t=65535&e.read_shift(2),n=65535&e.read_shift(2),r=new Date,i=31&n;n>>>=5;var o=15&n;n>>>=4,r.setMilliseconds(0),r.setFullYear(n+1980),r.setMonth(o-1),r.setDate(i);var a=31&t;t>>>=5;var s=63&t;return t>>>=6,r.setHours(t),r.setMinutes(s),r.setSeconds(a<<1),r}function l(e){Kn(e,0);var t={},n=0;while(e.l<=e.length-4){var r=e.read_shift(2),i=e.read_shift(2),o=e.l+i,a={};switch(r){case 21589:n=e.read_shift(1),1&n&&(a.mtime=e.read_shift(4)),i>5&&(2&n&&(a.atime=e.read_shift(4)),4&n&&(a.ctime=e.read_shift(4))),a.mtime&&(a.mt=new Date(1e3*a.mtime));break}e.l=o,t[r]=a}return t}function c(){return t||(t={})}function u(e,t){if(80==e[0]&&75==e[1])return De(e,t);if(109==(32|e[0])&&105==(32|e[1]))return He(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var n=3,r=512,i=0,o=0,a=0,s=0,l=0,c=[],u=e.slice(0,512);Kn(u,0);var m=h(u);switch(n=m[0],n){case 3:r=512;break;case 4:r=4096;break;case 0:if(0==m[1])return De(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+n)}512!==r&&(u=e.slice(0,r),Kn(u,28));var v=e.slice(0,r);d(u,n);var w=u.read_shift(4,"i");if(3===n&&0!==w)throw new Error("# Directory Sectors: Expected 0 saw "+w);u.l+=4,a=u.read_shift(4,"i"),u.l+=4,u.chk("00100000","Mini Stream Cutoff Size: "),s=u.read_shift(4,"i"),i=u.read_shift(4,"i"),l=u.read_shift(4,"i"),o=u.read_shift(4,"i");for(var x=-1,k=0;k<109;++k){if(x=u.read_shift(4,"i"),x<0)break;c[k]=x}var A=f(e,r);g(l,o,A,r,c);var C=b(A,a,c,r);C[a].name="!Directory",i>0&&s!==j&&(C[s].name="!MiniFAT"),C[c[0]].name="!FAT",C.fat_addrs=c,C.ssz=r;var E={},S=[],T=[],N=[];y(a,C,A,S,i,E,T,s),p(T,N,S),S.shift();var M={FileIndex:T,FullPaths:N};return t&&t.raw&&(M.raw={header:v,sectors:A}),M}function h(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(H,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}function d(e,t){var n=9;switch(e.l+=2,n=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+n);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+n);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+n)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}function f(e,t){for(var n=Math.ceil(e.length/t)-1,r=[],i=1;i0&&a>=0)o.push(t.slice(a*_,a*_+_)),i-=_,a=Hn(n,4*a);return 0===o.length?Jn(0):D(o).slice(0,e.size)}function g(e,t,n,r,i){var o=j;if(e===j){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var a=n[e],s=(r>>>2)-1;if(!a)return;for(var l=0;l=0;){i[l]=!0,o[o.length]=l,a.push(e[l]);var u=n[Math.floor(4*l/r)];if(c=4*l&s,r<4+c)throw new Error("FAT boundary crossed: "+l+" 4 "+r);if(!e[u])break;l=Hn(e[u],c)}return{nodes:o,data:gn([a])}}function b(e,t,n,r){var i=e.length,o=[],a=[],s=[],l=[],c=r-1,u=0,h=0,d=0,f=0;for(u=0;u=i&&(d-=i),!a[d]){l=[];var p=[];for(h=d;h>=0;){p[h]=!0,a[h]=!0,s[s.length]=h,l.push(e[h]);var m=n[Math.floor(4*h/r)];if(f=4*h&c,r<4+f)throw new Error("FAT boundary crossed: "+h+" 4 "+r);if(!e[m])break;if(h=Hn(e[m],f),p[h])break}o[d]={nodes:s,data:gn([l])}}return o}function y(e,t,n,r,i,o,a,s){for(var l,c=0,u=r.length?2:0,h=t[e].data,d=0,f=0;d0&&c!==j&&(t[c].name="!StreamData")):g.size>=4096?(g.storage="fat",void 0===t[g.start]&&(t[g.start]=v(n,g.start,t.fat_addrs,t.ssz)),t[g.start].name=g.name,g.content=t[g.start].data.slice(0,g.size)):(g.storage="minifat",g.size<0?g.size=0:c!==j&&g.start!==j&&t[c]&&(g.content=m(g,t[c].data,(t[s]||{}).data))),g.content&&Kn(g.content,0),o[l]=g,a.push(g)}}function w(e,t){return new Date(1e3*(jn(e,t+4)/1e7*Math.pow(2,32)+jn(e,t)/1e7-11644473600))}function x(e,n){return c(),u(t.readFileSync(e),n)}function k(t,n){var r=n&&n.type;switch(r||E&&e.isBuffer(t)&&(r="buffer"),r||"base64"){case"file":return x(t,n);case"base64":return u(M(C(t)),n);case"binary":return u(M(t),n)}return u(t,n)}function L(e,t){var n=t||{},r=n.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=r+"/",e.FileIndex[0]={name:r,type:5}),n.CLSID&&(e.FileIndex[0].clsid=n.CLSID),O(e)}function O(e){var t="Sh33tJ5";if(!Ke.find(e,"/"+t)){var n=Jn(4);n[0]=55,n[1]=n[3]=50,n[2]=54,e.FileIndex.push({name:t,type:2,content:n,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),P(e)}}function P(e,t){L(e);for(var n=!1,a=!1,s=e.FullPaths.length-1;s>=0;--s){var l=e.FileIndex[s];switch(l.type){case 0:a?n=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:a=!0,isNaN(l.R*l.L*l.C)&&(n=!0),l.R>-1&&l.L>-1&&l.R==l.L&&(n=!0);break;default:n=!0;break}}if(n||t){var c=new Date(1987,1,19),u=0,h=Object.create?Object.create(null):{},d=[];for(s=0;s1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(u=s+1;u=d.length?-1:u,u=s+1;u=d.length?-1:u,p.type=1}else i(e.FullPaths[s+1]||"")==i(m)&&(p.R=s+1),p.type=2}}}function F(t,n){var r=n||{};if("mad"==r.fileType)return Ue(t,r);switch(P(t),r.fileType){case"zip":return Ie(t,r)}var i=function(e){for(var t=0,n=0,r=0;r0&&(o<4096?t+=o+63>>6:n+=o+511>>9)}}var a=e.FullPaths.length+3>>2,s=t+7>>3,l=t+127>>7,c=s+n+a+l,u=c+127>>7,h=u<=109?0:Math.ceil((u-109)/127);while(c+u+h+127>>7>u)h=++u<=109?0:Math.ceil((u-109)/127);var d=[1,h,u,l,a,n,t,0];return e.FileIndex[0].size=t<<6,d[7]=(e.FileIndex[0].start=d[0]+d[1]+d[2]+d[3]+d[4]+d[5])+(d[6]+7>>3),d}(t),o=Jn(i[7]<<9),a=0,s=0;for(a=0;a<8;++a)o.write_shift(1,U[a]);for(a=0;a<8;++a)o.write_shift(2,0);for(o.write_shift(2,62),o.write_shift(2,3),o.write_shift(2,65534),o.write_shift(2,9),o.write_shift(2,6),a=0;a<3;++a)o.write_shift(2,0);for(o.write_shift(4,0),o.write_shift(4,i[2]),o.write_shift(4,i[0]+i[1]+i[2]+i[3]-1),o.write_shift(4,0),o.write_shift(4,4096),o.write_shift(4,i[3]?i[0]+i[1]+i[2]-1:j),o.write_shift(4,i[3]),o.write_shift(-4,i[1]?i[0]-1:j),o.write_shift(4,i[1]),a=0;a<109;++a)o.write_shift(-4,a>9)));l(i[6]+7>>3);while(511&o.l)o.write_shift(-4,G.ENDOFCHAIN);for(s=a=0,c=0;c=4096||(h.start=s,l(u+63>>6)));while(511&o.l)o.write_shift(-4,G.ENDOFCHAIN);for(a=0;a=4096)if(o.l=h.start+1<<9,E&&e.isBuffer(h.content))h.content.copy(o,o.l,0,h.size),o.l+=h.size+511&-512;else{for(c=0;c0&&h.size<4096)if(E&&e.isBuffer(h.content))h.content.copy(o,o.l,0,h.size),o.l+=h.size+63&-64;else{for(c=0;c>16|t>>8|t)}for(var te="undefined"!==typeof Uint8Array,ne=te?new Uint8Array(256):[],re=0;re<256;++re)ne[re]=ee(re);function ie(e,t){var n=ne[255&e];return t<=8?n>>>8-t:(n=n<<8|ne[e>>8&255],t<=16?n>>>16-t:(n=n<<8|ne[e>>16&255],n>>>24-t))}function oe(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=6?0:e[r+1]<<8))>>>n&3}function ae(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=5?0:e[r+1]<<8))>>>n&7}function se(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=4?0:e[r+1]<<8))>>>n&15}function le(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=3?0:e[r+1]<<8))>>>n&31}function ce(e,t){var n=7&t,r=t>>>3;return(e[r]|(n<=1?0:e[r+1]<<8))>>>n&127}function ue(e,t,n){var r=7&t,i=t>>>3,o=(1<>>r;return n<8-r?a&o:(a|=e[i+1]<<8-r,n<16-r?a&o:(a|=e[i+2]<<16-r,n<24-r||(a|=e[i+3]<<24-r),a&o))}function he(e,t,n){var r=7&t,i=t>>>3;return r<=5?e[i]|=(7&n)<>8-r),t+3}function de(e,t,n){var r=7&t,i=t>>>3;return n=(1&n)<>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=n,t+8}function pe(e,t,n){var r=7&t,i=t>>>3;return n<<=r,e[i]|=255&n,n>>>=8,e[i+1]=255&n,e[i+2]=n>>>8,t+16}function me(e,t){var n=e.length,r=2*n>t?2*n:t+5,i=0;if(n>=t)return e;if(E){var o=N(r);if(e.copy)e.copy(o);else for(;i>r-h,a=(1<=0;--a)t[s|a<0)t[t.l++]=e[n++]}return t.l}function o(t,n){var i=0,o=0,a=te?new Uint16Array(32768):[];while(o0)n[n.l++]=t[o++];i=8*n.l}else{i=he(n,i,+!(o+s!=t.length)+2);var l=0;while(s-- >0){var c=t[o];l=32767&(l<<5^c);var u=-1,h=0;if((u=a[l])&&(u|=-32768&o,u>o&&(u-=32768),u2){c=r[h],c<=22?i=fe(n,i,ne[c+1]>>1)-1:(fe(n,i,3),i+=5,fe(n,i,ne[c-23]>>5),i+=3);var d=c<8?0:c-4>>2;d>0&&(pe(n,i,h-Q[c]),i+=d),c=e[o-u],i=fe(n,i,ne[c]>>3),i-=3;var f=c<4?0:c-2>>1;f>0&&(pe(n,i,o-u-$[c]),i+=f);for(var p=0;p>8-p;for(var m=(1<<7-p)-1;m>=0;--m)Ee[f|m<>>=3){case 16:o=3+oe(e,t),t+=2,f=g[g.length-1];while(o-- >0)g.push(f);break;case 17:o=3+ae(e,t),t+=3;while(o-- >0)g.push(0);break;case 18:o=11+ce(e,t),t+=7;while(o-- >0)g.push(0);break;default:g.push(f),l>>0,s=0,l=0;while(0==(1&r))if(r=ae(e,n),n+=3,r>>>1!=0)for(r>>1==1?(s=9,l=5):(n=Ne(e,n),s=Se,l=Te);;){!t&&a>>1==1?be[c]:Ae[c];if(n+=15&u,u>>>=4,0===(u>>>8&255))i[o++]=u;else{if(256==u)break;u-=257;var h=u<8?0:u-4>>2;h>5&&(h=0);var d=o+Q[u];h>0&&(d+=ue(e,n,h),n+=h),c=ue(e,n,l),u=r>>>1==1?ye[c]:Ce[c],n+=15&u,u>>>=4;var f=u<4?0:u-2>>1,p=$[u];f>0&&(p+=ue(e,n,f),n+=f),!t&&a>>3]|e[1+(n>>>3)]<<8;if(n+=32,m>0){!t&&a0)i[o++]=e[n>>>3],n+=8}}return t?[i,n+7>>>3]:[i.slice(0,o),n+7>>>3]}function Le(e,t){var n=e.slice(e.l||0),r=Me(n,t);return e.l+=r[1],r[0]}function Oe(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function De(e,t){var n=e;Kn(n,0);var r=[],i=[],o={FileIndex:r,FullPaths:i};L(o,{root:t.root});var a=n.length-4;while((80!=n[a]||75!=n[a+1]||5!=n[a+2]||6!=n[a+3])&&a>=0)--a;n.l=a+4,n.l+=4;var s=n.read_shift(2);n.l+=6;var c=n.read_shift(4);for(n.l=c,a=0;a0)if(r=r.slice(0,r.length-1),r=r.slice(0,r.lastIndexOf("/")+1),a.slice(0,r.length)==r)break;var s=(i[1]||"").match(/boundary="(.*?)"/);if(!s)throw new Error("MAD cannot find boundary");var l="--"+(s[1]||""),c=[],u=[],h={FileIndex:c,FullPaths:u};L(h);var d,f=0;for(o=0;o=32&&p<128&&++d;var g=d>=4*f/5;o.push(i),o.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+s),o.push("Content-Transfer-Encoding: "+(g?"quoted-printable":"base64")),o.push("Content-Type: "+Fe(l,s)),o.push(""),o.push(g?Be(h):ze(h))}return o.push(i+"--\r\n"),o.join("\r\n")}function qe(e){var t={};return L(t,e),t}function Ge(e,t,n,r){var i=r&&r.unsafe;i||L(e);var a=!i&&Ke.find(e,t);if(!a){var s=e.FullPaths[0];t.slice(0,s.length)==s?s=t:("/"!=s.slice(-1)&&(s+="/"),s=(s+t).replace("//","/")),a={name:o(t),type:2},e.FileIndex.push(a),e.FullPaths.push(s),i||Ke.utils.cfb_gc(e)}return a.content=n,a.size=n?n.length:0,r&&(r.CLSID&&(a.clsid=r.CLSID),r.mt&&(a.mt=r.mt),r.ct&&(a.ct=r.ct)),a}function We(e,t){L(e);var n=Ke.find(e,t);if(n)for(var r=0;r3&&(r=!0),i[o].slice(i[o].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[o].slice(i[o].length-1));case"D":n*=24;case"H":n*=60;case"M":if(!r)throw new Error("Unsupported ISO Duration Field: M");n*=60;case"S":break}t+=n*parseInt(i[o],10)}return t}var st=new Date("2017-02-19T19:06:09.000Z"),lt=isNaN(st.getFullYear())?new Date("2/19/17"):st,ct=2017==lt.getFullYear();function ut(e,t){var n=new Date(e);if(ct)return t>0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==lt.getFullYear()&&!isNaN(n.getFullYear())){var r=n.getFullYear();return e.indexOf(""+r)>-1||n.setFullYear(n.getFullYear()+100),n}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function ht(t,n){if(E&&e.isBuffer(t)){if(n){if(255==t[0]&&254==t[1])return Qt(t.slice(2).toString("utf16le"));if(254==t[1]&&255==t[2])return Qt(m(t.slice(2).toString("binary")))}return t.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(n){if(255==t[0]&&254==t[1])return Qt(new TextDecoder("utf-16le").decode(t.slice(2)));if(254==t[0]&&255==t[1])return Qt(new TextDecoder("utf-16be").decode(t.slice(2)))}var r={"€":"€","‚":"‚","ƒ":"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰","Š":"Š","‹":"‹","Œ":"Œ","Ž":"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™","š":"š","›":"›","œ":"œ","ž":"ž","Ÿ":"Ÿ"};return Array.isArray(t)&&(t=new Uint8Array(t)),new TextDecoder("latin1").decode(t).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return r[e]||e}))}catch(a){}for(var i=[],o=0;o!=t.length;++o)i.push(String.fromCharCode(t[o]));return i.join("")}function dt(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=dt(e[n]));return t}function ft(e,t){var n="";while(n.length3&&-1==mt.indexOf(a))return n}else if(a.match(/[a-z]/))return n;return r<0||r>8099?n:(i>0||o>1)&&101!=r?t:e.match(/[^-0-9:,\/\\]/)?n:t}var vt=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,n,r){if(e||"string"==typeof n)return t.split(n);for(var i=t.split(n),o=[i[0]],a=1;a\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Dt=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Pt=/<[^>]*>/g,It=Lt.match(Dt)?Dt:Pt,Rt=/<\w*:/,Ft=/<(\/?)\w+:/;function zt(e,t,n){for(var r={},i=0,o=0;i!==e.length;++i)if(32===(o=e.charCodeAt(i))||10===o||13===o)break;if(t||(r[0]=e.slice(0,i)),i===e.length)return r;var a=e.match(Ot),s=0,l="",c=0,u="",h="",d=1;if(a)for(c=0;c!=a.length;++c){for(h=a[c],o=0;o!=h.length;++o)if(61===h.charCodeAt(o))break;u=h.slice(0,o).trim();while(32==h.charCodeAt(o+1))++o;for(d=34==(i=h.charCodeAt(o+1))||39==i?1:0,l=h.slice(o+1+d,h.length-d),s=0;s!=u.length;++s)if(58===u.charCodeAt(s))break;if(s===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),r[u]=l,n||(r[u.toLowerCase()]=l);else{var f=(5===s&&"xmlns"===u.slice(0,5)?"xmlns":"")+u.slice(s+1);if(r[f]&&"ext"==u.slice(s-3,s))continue;r[f]=l,n||(r[f.toLowerCase()]=l)}}return r}function Bt(e){return e.replace(Ft,"<$1")}var _t={""":'"',"'":"'",">":">","<":"<","&":"&"},jt=$e(_t),Ht=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;return function n(r){var i=r+"",o=i.indexOf("-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var a=i.indexOf("]]>");return n(i.slice(0,o))+i.slice(o+9,a)+n(i.slice(a+3))}}(),Ut=/[&<>'"]/g;var qt=/[\u0000-\u001f]/g;function Gt(e){var t=e+"";return t.replace(Ut,(function(e){return jt[e]})).replace(/\n/g,"
").replace(qt,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var Wt=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(n){return n.replace(e,t)}}();function Vt(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Yt(e){var t="",n=0,r=0,i=0,o=0,a=0,s=0;while(n191&&r<224?(a=(31&r)<<6,a|=63&i,t+=String.fromCharCode(a)):(o=e.charCodeAt(n++),r<240?t+=String.fromCharCode((15&r)<<12|(63&i)<<6|63&o):(a=e.charCodeAt(n++),s=((7&r)<<18|(63&i)<<12|(63&o)<<6|63&a)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(1023&s)))));return t}function Zt(e){var t,n,r,i=T(2*e.length),o=1,a=0,s=0;for(n=0;n>>10&1023),t=56320+(1023&t)),0!==s&&(i[a++]=255&s,i[a++]=s>>>8,s=0),i[a++]=t%256,i[a++]=t>>>8;return i.slice(0,a).toString("ucs2")}function Kt(e){return S(e,"binary").toString("utf8")}var Xt="foo bar baz☃🍣",Jt=E&&(Kt(Xt)==Yt(Xt)&&Kt||Zt(Xt)==Yt(Xt)&&Zt)||Yt,Qt=E?function(e){return S(e,"utf8").toString("binary")}:function(e){var t=[],n=0,r=0,i=0;while(n>6))),t.push(String.fromCharCode(128+(63&r)));break;case r>=55296&&r<57344:r-=55296,i=e.charCodeAt(n++)-56320+(r<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(63&i)));break;default:t.push(String.fromCharCode(224+(r>>12))),t.push(String.fromCharCode(128+(r>>6&63))),t.push(String.fromCharCode(128+(63&r)))}return t.join("")},$t=function(){var e={};return function(t,n){var r=t+"|"+(n||"");return e[r]?e[r]:e[r]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",n||"")}}(),en=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),r=0;r([\\s\\S]*?)","g")}}(),nn=/<\/?(?:vt:)?variant>/g,rn=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function cn(t){if(E&&e.isBuffer(t))return t.toString("utf8");if("string"===typeof t)return t;if("undefined"!==typeof Uint8Array&&t instanceof Uint8Array)return Jt(L(O(t)));throw new Error("Bad input format: expected Buffer or string")}var un=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,hn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},dn=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];function fn(e,t){for(var n=1-2*(e[t+7]>>>7),r=((127&e[t+7])<<4)+(e[t+6]>>>4&15),i=15&e[t+6],o=5;o>=0;--o)i=256*i+e[t+o];return 2047==r?0==i?n*(1/0):NaN:(0==r?r=-1022:(r-=1023,i+=Math.pow(2,52)),n*Math.pow(2,r-52)*i)}function pn(e,t,n){var r=(t<0||1/t==-1/0?1:0)<<7,i=0,o=0,a=r?-t:t;isFinite(a)?0==a?i=o=0:(i=Math.floor(Math.log(a)/Math.LN2),o=a*Math.pow(2,52-i),i<=-1023&&(!isFinite(o)||o>4|r}var mn=function(e){for(var t=[],n=10240,r=0;r0&&e.isBuffer(t[0][0])?e.concat(t[0].map((function(t){return e.isBuffer(t)?t:S(t)}))):mn(t)}:mn,vn=function(e,t,n){for(var r=[],i=t;i0?kn(e,t+4,t+4+n-1):""},Cn=An,En=function(e,t){var n=jn(e,t);return n>0?kn(e,t+4,t+4+n-1):""},Sn=En,Tn=function(e,t){var n=2*jn(e,t);return n>0?kn(e,t+4,t+4+n-1):""},Nn=Tn,Mn=function(e,t){var n=jn(e,t);return n>0?bn(e,t+4,t+4+n):""},Ln=Mn,On=function(e,t){var n=jn(e,t);return n>0?kn(e,t+4,t+4+n):""},Dn=On,Pn=function(e,t){return fn(e,t)},In=Pn,Rn=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function Fn(){bn=function(e,t,n){return g.utils.decode(1200,e.slice(t,n)).replace(I,"")},kn=function(e,t,n){return g.utils.decode(65001,e.slice(t,n))},Cn=function(e,t){var n=jn(e,t);return n>0?g.utils.decode(a,e.slice(t+4,t+4+n-1)):""},Sn=function(e,t){var n=jn(e,t);return n>0?g.utils.decode(o,e.slice(t+4,t+4+n-1)):""},Nn=function(e,t){var n=2*jn(e,t);return n>0?g.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},Ln=function(e,t){var n=jn(e,t);return n>0?g.utils.decode(1200,e.slice(t+4,t+4+n)):""},Dn=function(e,t){var n=jn(e,t);return n>0?g.utils.decode(65001,e.slice(t+4,t+4+n)):""}}E&&(Cn=function(t,n){if(!e.isBuffer(t))return An(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},Sn=function(t,n){if(!e.isBuffer(t))return En(t,n);var r=t.readUInt32LE(n);return r>0?t.toString("utf8",n+4,n+4+r-1):""},Nn=function(t,n){if(!e.isBuffer(t))return Tn(t,n);var r=2*t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r-1)},Ln=function(t,n){if(!e.isBuffer(t))return Mn(t,n);var r=t.readUInt32LE(n);return t.toString("utf16le",n+4,n+4+r)},Dn=function(t,n){if(!e.isBuffer(t))return On(t,n);var r=t.readUInt32LE(n);return t.toString("utf8",n+4,n+4+r)},In=function(t,n){return e.isBuffer(t)?t.readDoubleLE(n):Pn(t,n)},Rn=function(t){return e.isBuffer(t)||Array.isArray(t)||"undefined"!==typeof Uint8Array&&t instanceof Uint8Array}),"undefined"!==typeof g&&Fn();var zn=function(e,t){return e[t]},Bn=function(e,t){return 256*e[t+1]+e[t]},_n=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},jn=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Hn=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Un=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function qn(t,n){var r,i,a,s,l,c,u="",h=[];switch(n){case"dbcs":if(c=this.l,E&&e.isBuffer(this))u=this.slice(this.l,this.l+2*t).toString("utf16le");else for(l=0;l0?Hn:Un)(this,this.l),this.l+=4,r):(i=jn(this,this.l),this.l+=4,i);case 8:case-8:if("f"===n)return i=8==t?In(this,this.l):In([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;t=8;case 16:u=wn(this,this.l,t);break}}return this.l+=t,u}var Gn=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255},Wn=function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255},Vn=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Yn(e,t,n){var r=0,i=0;if("dbcs"===n){for(i=0;i!=t.length;++i)Vn(this,t.charCodeAt(i),this.l+2*i);r=2*t.length}else if("sbcs"===n){if("undefined"!==typeof g&&874==a)for(i=0;i!=t.length;++i){var o=g.utils.encode(a,t.charAt(i));this[this.l+i]=o[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=255&t.charCodeAt(i);r=t.length}else{if("hex"===n){for(;i>8}while(this.l>>=8,this[this.l+1]=255&t;break;case 3:r=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:r=4,Gn(this,t,this.l);break;case 8:if(r=8,"f"===n){pn(this,t,this.l);break}case 16:break;case-4:r=4,Wn(this,t,this.l);break}}return this.l+=r,this}function Zn(e,t){var n=wn(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Kn(e,t){e.l=t,e.read_shift=qn,e.chk=Zn,e.write_shift=Yn}function Xn(e,t){e.l+=t}function Jn(e){var t=T(e);return Kn(t,0),t}function Qn(e,t,n){if(e){var r,i,o;Kn(e,e.l||0);var a=e.length,s=0,l=0;while(e.lr.l&&(r=r.slice(0,r.l),r.l=r.length),r.length>0&&e.push(r),r=null)},o=function(e){return r&&e=256)r.c-=256;while(r.r>=65536)r.r-=65536}return r}function tr(e,t,n){var r=dt(e);return r.s=er(r.s,t.s,n),r.e=er(r.e,t.s,n),r}function nr(e,t){if(e.cRel&&e.c<0){e=dt(e);while(e.c<0)e.c+=t>8?16384:256}if(e.rRel&&e.r<0){e=dt(e);while(e.r<0)e.r+=t>8?1048576:t>5?65536:16384}var n=pr(e);return e.cRel||null==e.cRel||(n=ur(n)),e.rRel||null==e.rRel||(n=ar(n)),n}function rr(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?nr(e.s,t.biff)+":"+nr(e.e,t.biff):(e.s.rRel?"":"$")+or(e.s.r)+":"+(e.e.rRel?"":"$")+or(e.e.r):(e.s.cRel?"":"$")+cr(e.s.c)+":"+(e.e.cRel?"":"$")+cr(e.e.c)}function ir(e){return parseInt(sr(e),10)-1}function or(e){return""+(e+1)}function ar(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function sr(e){return e.replace(/\$(\d+)$/,"$1")}function lr(e){for(var t=hr(e),n=0,r=0;r!==t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}function cr(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function ur(e){return e.replace(/^([A-Z])/,"$$$1")}function hr(e){return e.replace(/^\$([A-Z])/,"$1")}function dr(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function fr(e){for(var t=0,n=0,r=0;r=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(n=26*n+(i-64))}return{c:n-1,r:t-1}}function pr(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function mr(e){var t=e.indexOf(":");return-1==t?{s:fr(e),e:fr(e)}:{s:fr(e.slice(0,t)),e:fr(e.slice(t+1))}}function gr(e,t){return"undefined"===typeof t||"number"===typeof t?gr(e.s,e.e):("string"!==typeof e&&(e=pr(e)),"string"!==typeof t&&(t=pr(t)),e==t?e:e+":"+t)}function vr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,r=0,i=0,o=e.length;for(n=0;r26)break;n=26*n+i}for(t.s.c=--n,n=0;r9)break;n=10*n+i}if(t.s.r=--n,r===o||10!=i)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++r,n=0;r!=o;++r){if((i=e.charCodeAt(r)-64)<1||i>26)break;n=26*n+i}for(t.e.c=--n,n=0;r!=o;++r){if((i=e.charCodeAt(r)-48)<0||i>9)break;n=10*n+i}return t.e.r=--n,t}function br(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=He(e.z,n?tt(t):t)}catch(r){}try{return e.w=He((e.XF||{}).numFmtId||(n?14:0),n?tt(t):t)}catch(r){return""+t}}function yr(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?ci[e.v]||e.v:br(e,void 0==t?e.v:t))}function wr(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",r={};return r[n]=e,{SheetNames:[n],Sheets:r}}function xr(e,t,n){var r=n||{},i=e?Array.isArray(e):r.dense;null!=w&&null==i&&(i=w);var o=e||(i?[]:{}),a=0,s=0;if(o&&null!=r.origin){if("number"==typeof r.origin)a=r.origin;else{var l="string"==typeof r.origin?fr(r.origin):r.origin;a=l.r,s=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var u=vr(o["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),-1==a&&(c.e.r=a=u.e.r+1)}for(var h=0;h!=t.length;++h)if(t[h]){if(!Array.isArray(t[h]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[h].length;++d)if("undefined"!==typeof t[h][d]){var f={v:t[h][d]},p=a+h,m=s+d;if(c.s.r>p&&(c.s.r=p),c.s.c>m&&(c.s.c=m),c.e.r>2;return n?i/100:i}function Rr(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Fr=Rr;function zr(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Br(e){var t={},n=e.read_shift(1),r=n>>>1,i=e.read_shift(1),o=e.read_shift(2,"i"),a=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=i;var c=li[i];c&&(t.rgb=Ls(c));break;case 2:t.rgb=Ls([a,s,l]);break;case 3:t.theme=i;break}return 0!=o&&(t.tint=o>0?o/32767:o/32768),t}function _r(e){var t=e.read_shift(1);e.l++;var n={fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t};return n}function jr(e,t){var n={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return n[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}function Hr(e){return jr(e,1)}function Ur(e){return jr(e,2)}var qr=2,Gr=3,Wr=11,Vr=12,Yr=19,Zr=64,Kr=65,Xr=71,Jr=4108,Qr=4126,$r=80,ei=81,ti=[$r,ei],ni={1:{n:"CodePage",t:qr},2:{n:"Category",t:$r},3:{n:"PresentationFormat",t:$r},4:{n:"ByteCount",t:Gr},5:{n:"LineCount",t:Gr},6:{n:"ParagraphCount",t:Gr},7:{n:"SlideCount",t:Gr},8:{n:"NoteCount",t:Gr},9:{n:"HiddenCount",t:Gr},10:{n:"MultimediaClipCount",t:Gr},11:{n:"ScaleCrop",t:Wr},12:{n:"HeadingPairs",t:Jr},13:{n:"TitlesOfParts",t:Qr},14:{n:"Manager",t:$r},15:{n:"Company",t:$r},16:{n:"LinksUpToDate",t:Wr},17:{n:"CharacterCount",t:Gr},19:{n:"SharedDoc",t:Wr},22:{n:"HyperlinksChanged",t:Wr},23:{n:"AppVersion",t:Gr,p:"version"},24:{n:"DigSig",t:Kr},26:{n:"ContentType",t:$r},27:{n:"ContentStatus",t:$r},28:{n:"Language",t:$r},29:{n:"Version",t:$r},255:{},2147483648:{n:"Locale",t:Yr},2147483651:{n:"Behavior",t:Yr},1919054434:{}},ri={1:{n:"CodePage",t:qr},2:{n:"Title",t:$r},3:{n:"Subject",t:$r},4:{n:"Author",t:$r},5:{n:"Keywords",t:$r},6:{n:"Comments",t:$r},7:{n:"Template",t:$r},8:{n:"LastAuthor",t:$r},9:{n:"RevNumber",t:$r},10:{n:"EditTime",t:Zr},11:{n:"LastPrinted",t:Zr},12:{n:"CreatedDate",t:Zr},13:{n:"ModifiedDate",t:Zr},14:{n:"PageCount",t:Gr},15:{n:"WordCount",t:Gr},16:{n:"CharCount",t:Gr},17:{n:"Thumbnail",t:Xr},18:{n:"Application",t:$r},19:{n:"DocSecurity",t:Gr},255:{},2147483648:{n:"Locale",t:Yr},2147483651:{n:"Behavior",t:Yr},1919054434:{}},ii={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},oi=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ai(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var si=ai([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),li=dt(si),ci={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},ui={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},hi={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"};function di(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function fi(e){var t=di();if(!e||!e.match)return t;var n={};if((e.match(It)||[]).forEach((function(e){var r=zt(e);switch(r[0].replace(Rt,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=n,delete t.calcchains,t}var pi={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function mi(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function gi(e,t){var n={"!id":{}};if(!e)return n;"/"!==t.charAt(0)&&(t="/"+t);var r={};return(e.match(It)||[]).forEach((function(e){var i=zt(e);if("]*>([\\s\\S]*?)")}return e}();function xi(e){var t={};e=Jt(e);for(var n=0;n0&&(t[r[1]]=Ht(i[1])),"date"===r[2]&&t[r[1]]&&(t[r[1]]=ut(t[r[1]]))}return t}var ki=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];function Ai(e,t,n,r){var i=[];if("string"==typeof e)i=on(e,r);else for(var o=0;o0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":n.Worksheets=l,n.SheetNames=a.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":n.NamedRanges=l,n.DefinedNames=a.slice(s,s+l);break;case"Charts":case"Diagramme":n.Chartsheets=l,n.ChartNames=a.slice(s,s+l);break}s+=l}}function Ci(e,t,n){var r={};return t||(t={}),e=Jt(e),ki.forEach((function(n){var i=(e.match($t(n[0]))||[])[1];switch(n[2]){case"string":i&&(t[n[1]]=Ht(i));break;case"bool":t[n[1]]="true"===i;break;case"raw":var o=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)"));o&&o.length>0&&(r[n[1]]=o[1]);break}})),r.HeadingPairs&&r.TitlesOfParts&&Ai(r.HeadingPairs,r.TitlesOfParts,t,n),t}var Ei=/<[^>]+>[^<]*/g;function Si(e,t){var n={},r="",i=e.match(Ei);if(i)for(var o=0;o!=i.length;++o){var a=i[o],s=zt(a);switch(s[0]){case"":r=null;break;default:if(0===a.indexOf(""),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":n[r]=Ht(u);break;case"bool":n[r]=Vt(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":n[r]=parseInt(u,10);break;case"r4":case"r8":case"decimal":n[r]=parseFloat(u);break;case"filetime":case"date":n[r]=ut(u);break;case"cy":case"error":n[r]=Ht(u);break;default:if("/"==c.slice(-1))break;t.WTF&&"undefined"!==typeof console&&console.warn("Unexpected",a,c,l)}}else if(">3<<2),r}function Hi(e){var t=e.read_shift(4),n=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),n}function Ui(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function qi(e,t,n){var r,i=e.read_shift(2),o=n||{};if(e.l+=2,t!==Vr&&i!==t&&-1===ti.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&i)))throw new Error("Expected type "+t+" saw "+i);switch(t===Vr?i:t){case 2:return r=e.read_shift(2,"i"),o.raw||(e.l+=2),r;case 3:return r=e.read_shift(4,"i"),r;case 11:return 0!==e.read_shift(4);case 19:return r=e.read_shift(4),r;case 30:return Oi(e,i,4).replace(I,"");case 31:return Di(e);case 64:return Li(e);case 65:return Hi(e);case 71:return Ui(e);case 80:return Ii(e,i,!o.raw).replace(I,"");case 81:return Ri(e,i).replace(I,"");case 4108:return _i(e);case 4126:case 4127:return 4127==i?Fi(e):zi(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+i)}}function Gi(e,t){var n=e.l,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0,s=0,l=-1,c={};for(a=0;a!=i;++a){var u=e.read_shift(4),d=e.read_shift(4);o[a]=[u,d+n]}o.sort((function(e,t){return e[1]-t[1]}));var f={};for(a=0;a!=i;++a){if(e.l!==o[a][1]){var p=!0;if(a>0&&t)switch(t[o[a-1][0]].t){case 2:e.l+2===o[a][1]&&(e.l+=2,p=!1);break;case 80:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break;case 4108:e.l<=o[a][1]&&(e.l=o[a][1],p=!1);break}if((!t||0==a)&&e.l<=o[a][1]&&(p=!1,e.l=o[a][1]),p)throw new Error("Read Error: Expected address "+o[a][1]+" at "+e.l+" :"+a)}if(t){var m=t[o[a][0]];if(f[m.n]=qi(e,m.t,{raw:!0}),"version"===m.p&&(f[m.n]=String(f[m.n]>>16)+"."+("0000"+String(65535&f[m.n])).slice(-4)),"CodePage"==m.n)switch(f[m.n]){case 0:f[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:h(s=f[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[m.n])}}else if(1===o[a][0]){if(s=f.CodePage=qi(e,qr),h(s),-1!==l){var g=e.l;e.l=o[l][1],c=ji(e,s),e.l=g}}else if(0===o[a][0]){if(0===s){l=a,e.l=o[a+1][1];continue}c=ji(e,s)}else{var v,b=c[o[a][0]];switch(e[e.l]){case 65:e.l+=4,v=Hi(e);break;case 30:e.l+=4,v=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,v=Ii(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,v=e.read_shift(4,"i");break;case 19:e.l+=4,v=e.read_shift(4);break;case 5:e.l+=4,v=e.read_shift(8,"f");break;case 11:e.l+=4,v=Zi(e,4);break;case 64:e.l+=4,v=ut(Li(e));break;default:throw new Error("unparsed value: "+e[e.l])}f[b]=v}}return e.l=n+r,f}function Wi(e,t,n){var r=e.content;if(!r)return{};Kn(r,0);var i,o,a,s,l=0;r.chk("feff","Byte Order: "),r.read_shift(2);var c=r.read_shift(4),u=r.read_shift(16);if(u!==Ke.utils.consts.HEADER_CLSID&&u!==n)throw new Error("Bad PropertySet CLSID "+u);if(i=r.read_shift(4),1!==i&&2!==i)throw new Error("Unrecognized #Sets: "+i);if(o=r.read_shift(16),s=r.read_shift(4),1===i&&s!==r.l)throw new Error("Length mismatch: "+s+" !== "+r.l);2===i&&(a=r.read_shift(16),l=r.read_shift(4));var h,d=Gi(r,t),f={SystemIdentifier:c};for(var p in d)f[p]=d[p];if(f.FMTID=o,1===i)return f;if(l-r.l==2&&(r.l+=2),r.l!==l)throw new Error("Length mismatch 2: "+r.l+" !== "+l);try{h=Gi(r,null)}catch(m){}for(p in h)f[p]=h[p];return f.FMTID=[o,a],f}function Vi(e,t){return e.read_shift(t),null}function Yi(e,t,n){var r=[],i=e.l+t;while(e.l=12?2:1),i="sbcs-cont",a=o;if(n&&n.biff>=8&&(o=1200),n&&8!=n.biff)12==n.biff&&(i="wstr");else{var s=e.read_shift(1);s&&(i="dbcs-cont")}n.biff>=2&&n.biff<=5&&(i="cpstr");var l=r?e.read_shift(r,i):"";return o=a,l}function $i(e){var t=o;o=1200;var n,r=e.read_shift(2),i=e.read_shift(1),a=4&i,s=8&i,l=1+(1&i),c=0,u={};s&&(c=e.read_shift(2)),a&&(n=e.read_shift(4));var h=2==l?"dbcs-cont":"sbcs-cont",d=0===r?"":e.read_shift(r,h);return s&&(e.l+=4*c),a&&(e.l+=n),u.t=d,s||(u.raw=""+u.t+"",u.r=u.t),o=t,u}function eo(e,t,n){var r;if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return r=0===i?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont"),r}function to(e,t,n){var r=e.read_shift(n&&2==n.biff?1:2);return 0===r?(e.l++,""):eo(e,r,n)}function no(e,t,n){if(n.biff>5)return to(e,t,n);var r=e.read_shift(1);return 0===r?(e.l++,""):e.read_shift(r,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function ro(e){var t=e.read_shift(1);e.l++;var n=e.read_shift(2);return e.l+=2,[t,n]}function io(e){var t=e.read_shift(4),n=e.l,r=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(r=!0),e.l=n);var i=e.read_shift((r?t-24:t)>>1,"utf16le").replace(I,"");return r&&(e.l+=24),i}function oo(e){var t=e.read_shift(2),n="";while(t-- >0)n+="../";var r=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");var i=e.read_shift(4);if(0===i)return n+r.replace(/\\/g,"/");var o=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");var a=e.read_shift(o>>1,"utf16le").replace(I,"");return n+a}function ao(e,t){var n=e.read_shift(16);switch(t-=16,n){case"e0c9ea79f9bace118c8200aa004ba90b":return io(e,t);case"0303000000000000c000000000000046":return oo(e,t);default:throw new Error("Unsupported Moniker "+n)}}function so(e){var t=e.read_shift(4),n=t>0?e.read_shift(t,"utf16le").replace(I,""):"";return n}function lo(e,t){var n=e.l+t,r=e.read_shift(4);if(2!==r)throw new Error("Unrecognized streamVersion: "+r);var i=e.read_shift(2);e.l+=2;var o,a,s,l,c,u,h="";16&i&&(o=so(e,n-e.l)),128&i&&(a=so(e,n-e.l)),257===(257&i)&&(s=so(e,n-e.l)),1===(257&i)&&(l=ao(e,n-e.l)),8&i&&(h=so(e,n-e.l)),32&i&&(c=e.read_shift(16)),64&i&&(u=Li(e)),e.l=n;var d=a||s||l||"";d&&h&&(d+="#"+h),d||(d="#"+h),2&i&&"/"==d.charAt(0)&&"/"!=d.charAt(1)&&(d="file://"+d);var f={Target:d};return c&&(f.guid=c),u&&(f.time=u),o&&(f.Tooltip=o),f}function co(e){var t=e.read_shift(1),n=e.read_shift(1),r=e.read_shift(1),i=e.read_shift(1);return[t,n,r,i]}function uo(e,t){var n=co(e,t);return n[3]=0,n}function ho(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return{r:t,c:n,ixfe:r}}function fo(e){var t=e.read_shift(2),n=e.read_shift(2);return e.l+=8,{type:t,flags:n}}function po(e,t,n){return 0===t?"":no(e,t,n)}function mo(e,t,n){var r=n.biff>8?4:2,i=e.read_shift(r),o=e.read_shift(r,"i"),a=e.read_shift(r,"i");return[i,o,a]}function go(e){var t=e.read_shift(2),n=Ir(e);return[t,n]}function vo(e,t,n){e.l+=4,t-=4;var r=e.l+t,i=Qi(e,t,n),o=e.read_shift(2);if(r-=e.l,o!==r)throw new Error("Malformed AddinUdf: padding = "+r+" != "+o);return e.l+=o,i}function bo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2);return{s:{c:r,r:t},e:{c:i,r:n}}}function yo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(1),i=e.read_shift(1);return{s:{c:r,r:t},e:{c:i,r:n}}}var wo=yo;function xo(e){e.l+=4;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2);return e.l+=12,[n,t,r]}function ko(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function Ao(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function Co(e){e.l+=2,e.l+=e.read_shift(2)}var Eo={0:Co,4:Co,5:Co,6:Co,7:Ao,8:Co,9:Co,10:Co,11:Co,12:Co,13:ko,14:Co,15:Co,16:Co,17:Co,18:Co,19:Co,20:Co,21:xo};function So(e,t){var n=e.l+t,r=[];while(e.l=2&&(n.dt=e.read_shift(2),e.l-=2),n.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+n.BIFFVer)}return e.read_shift(t),n}function No(e,t){return 0===t||e.read_shift(2),1200}function Mo(e,t,n){if(n.enc)return e.l+=t,"";var r=e.l,i=no(e,0,n);return e.read_shift(t+r-e.l),i}function Lo(e,t,n){var r=n&&8==n.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&r,fBelow:64&r,fRight:128&r}}function Oo(e,t,n){var r=e.read_shift(4),i=3&e.read_shift(1),o=e.read_shift(1);switch(o){case 0:o="Worksheet";break;case 1:o="Macrosheet";break;case 2:o="Chartsheet";break;case 6:o="VBAModule";break}var a=Qi(e,0,n);return 0===a.length&&(a="Sheet1"),{pos:r,hs:i,dt:o,name:a}}function Do(e,t){for(var n=e.l+t,r=e.read_shift(4),i=e.read_shift(4),o=[],a=0;a!=i&&e.l>15),i&=32767);var o={Unsynced:1&r,DyZero:(2&r)>>1,ExAsc:(4&r)>>2,ExDsc:(8&r)>>3};return[o,i]}function Bo(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,n],Dim:[r,i],Flags:o,CurTab:a,FirstTab:s,Selected:l,TabRatio:c}}function _o(e,t,n){if(n&&n.biff>=2&&n.biff<5)return{};var r=e.read_shift(2);return{RTL:64&r}}function jo(){}function Ho(e,t,n){var r={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(n&&n.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return r.name=Qi(e,0,n),r}function Uo(e){var t=ho(e);return t.isst=e.read_shift(4),t}function qo(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=e.l+t,i=ho(e,6);2==n.biff&&e.l++;var o=to(e,r-e.l,n);return i.val=o,i}function Go(e,t,n){var r=e.read_shift(2),i=no(e,0,n);return[r,i]}var Wo=no;function Vo(e,t,n){var r=e.l+t,i=8!=n.biff&&n.biff?2:4,o=e.read_shift(i),a=e.read_shift(i),s=e.read_shift(2),l=e.read_shift(2);return e.l=r,{s:{r:o,c:s},e:{r:a,c:l}}}function Yo(e){var t=e.read_shift(2),n=e.read_shift(2),r=go(e);return{r:t,c:n,ixfe:r[0],rknum:r[1]}}function Zo(e,t){var n=e.l+t-2,r=e.read_shift(2),i=e.read_shift(2),o=[];while(e.l>26],r.cellStyles?(i.alc=7&o,i.fWrap=o>>3&1,i.alcV=o>>4&7,i.fJustLast=o>>7&1,i.trot=o>>8&255,i.cIndent=o>>16&15,i.fShrinkToFit=o>>20&1,i.iReadOrder=o>>22&2,i.fAtrNum=o>>26&1,i.fAtrFnt=o>>27&1,i.fAtrAlc=o>>28&1,i.fAtrBdr=o>>29&1,i.fAtrPat=o>>30&1,i.fAtrProt=o>>31&1,i.dgLeft=15&a,i.dgRight=a>>4&15,i.dgTop=a>>8&15,i.dgBottom=a>>12&15,i.icvLeft=a>>16&127,i.icvRight=a>>23&127,i.grbitDiag=a>>30&3,i.icvTop=127&s,i.icvBottom=s>>7&127,i.icvDiag=s>>14&127,i.dgDiag=s>>21&15,i.icvFore=127&l,i.icvBack=l>>7&127,i.fsxButton=l>>14&1,i):i}function Jo(e,t,n){var r={};return r.ifnt=e.read_shift(2),r.numFmtId=e.read_shift(2),r.flags=e.read_shift(2),r.fStyle=r.flags>>2&1,t-=6,r.data=Xo(e,t,r.fStyle,n),r}function Qo(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function $o(e,t,n){var r=ho(e,6);2!=n.biff&&9!=t||++e.l;var i=Ji(e,2);return r.val=i,r.t=!0===i||!1===i?"b":"e",r}function ea(e,t,n){n.biffguess&&2==n.biff&&(n.biff=5);var r=ho(e,6),i=zr(e,8);return r.val=i,r}var ta=po;function na(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(2);if(n.sbcch=o,1025==o||14849==o)return[o,i];if(o<1||o>255)throw new Error("Unexpected SupBook type: "+o);var a=eo(e,o),s=[];while(r>e.l)s.push(to(e));return[o,i,a,s]}function ra(e,t,n){var r,i=e.read_shift(2),o={fBuiltIn:1&i,fWantAdvise:i>>>1&1,fWantPict:i>>>2&1,fOle:i>>>3&1,fOleLink:i>>>4&1,cf:i>>>5&1023,fIcon:i>>>15&1};return 14849===n.sbcch&&(r=vo(e,t-2,n)),o.body=r||e.read_shift(t-2),"string"===typeof r&&(o.Name=r),o}var ia=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function oa(e,t,n){var r=e.l+t,i=e.read_shift(2),o=e.read_shift(1),a=e.read_shift(1),s=e.read_shift(n&&2==n.biff?1:2),l=0;(!n||n.biff>=5)&&(5!=n.biff&&(e.l+=2),l=e.read_shift(2),5==n.biff&&(e.l+=2),e.l+=4);var c=eo(e,a,n);32&i&&(c=ia[c.charCodeAt(0)]);var u=r-e.l;n&&2==n.biff&&--u;var h=r!=e.l&&0!==s&&u>0?Fu(e,u,n,s):[];return{chKey:o,Name:c,itab:l,rgce:h}}function aa(e,t,n){if(n.biff<8)return sa(e,t,n);var r=[],i=e.l+t,o=e.read_shift(n.biff>8?4:2);while(0!==o--)r.push(mo(e,n.biff>8?12:6,n));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return r}function sa(e,t,n){3==e[e.l+1]&&e[e.l]++;var r=Qi(e,t,n);return 3==r.charCodeAt(0)?r.slice(1):r}function la(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=eo(e,r,n),a=eo(e,i,n);return[o,a]}e.l+=t}function ca(e,t,n){var r=yo(e,6);e.l++;var i=e.read_shift(1);return t-=8,[zu(e,t,n),i,r]}function ua(e,t,n){var r=wo(e,6);switch(n.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[r,Iu(e,t,n,r)]}function ha(e){var t=0!==e.read_shift(4),n=0!==e.read_shift(4),r=e.read_shift(4);return[t,n,r]}function da(e,t,n){if(!(n.biff<8)){var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),a=e.read_shift(2),s=no(e,0,n);return n.biff<8&&e.read_shift(1),[{r:r,c:i},s,a,o]}}function fa(e,t,n){return da(e,t,n)}function pa(e,t){var n=[],r=e.read_shift(2);while(r--)n.push(bo(e,t));return n}function ma(e,t,n){if(n&&n.biff<8)return va(e,t,n);var r=xo(e,22),i=So(e,t-22,r[1]);return{cmo:r,ft:i}}var ga={8:function(e,t){var n=e.l+t;e.l+=10;var r=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var i=e.read_shift(1);return e.l+=i,e.l=n,{fmt:r}}};function va(e,t,n){e.l+=4;var r=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var a=[];return a.push((ga[r]||Xn)(e,t,n)),{cmo:[i,r,o],ft:a}}function ba(e,t,n){var r=e.l,i="";try{e.l+=4;var o=(n.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(o)?e.l+=6:ro(e,6,n);var a=e.read_shift(2);e.read_shift(2),Ki(e,2);var s=e.read_shift(2);e.l+=s;for(var l=1;l=(c?a:2*a))break}if(i.length!==a&&i.length!==2*a)throw new Error("cchText: "+a+" != "+i.length);return e.l=r+t,{t:i}}catch(h){return e.l=r+t,{t:i}}}function ya(e,t){var n=bo(e,8);e.l+=16;var r=lo(e,t-24);return[n,r]}function wa(e,t){e.read_shift(2);var n=bo(e,8),r=e.read_shift((t-10)/2,"dbcs-cont");return r=r.replace(I,""),[n,r]}function xa(e){var t,n=[0,0];return t=e.read_shift(2),n[0]=ii[t]||t,t=e.read_shift(2),n[1]=ii[t]||t,n}function ka(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function Aa(e){var t=e.read_shift(2),n=[];while(t-- >0)n.push(uo(e,8));return n}function Ca(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function Ea(e,t,n){if(!n.cellStyles)return Xn(e,t);var r=n&&n.biff>=12?4:2,i=e.read_shift(r),o=e.read_shift(r),a=e.read_shift(r),s=e.read_shift(r),l=e.read_shift(2);2==r&&(e.l+=2);var c={s:i,e:o,w:a,ixfe:s,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}function Sa(e,t){var n={};return t<32||(e.l+=16,n.header=zr(e,8),n.footer=zr(e,8),e.l+=2),n}function Ta(e,t,n){var r={area:!1};if(5!=n.biff)return e.l+=t,r;var i=e.read_shift(1);return e.l+=3,16&i&&(r.area=!0),r}var Na=ho,Ma=Xi,La=to;function Oa(e){var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i={fmt:t,env:n,len:r,data:e.slice(e.l,e.l+r)};return e.l+=r,i}function Da(e,t,n){n.biffguess&&5==n.biff&&(n.biff=2);var r=ho(e,6);++e.l;var i=no(e,t-7,n);return r.t="str",r.val=i,r}function Pa(e){var t=ho(e,6);++e.l;var n=zr(e,8);return t.t="n",t.val=n,t}function Ia(e){var t=ho(e,6);++e.l;var n=e.read_shift(2);return t.t="n",t.val=n,t}function Ra(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}function Fa(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}function za(e,t,n){var r=e.l+t,i=ho(e,6),o=e.read_shift(2),a=eo(e,o,n);return e.l=r,i.t="str",i.val=a,i}var Ba=[2,3,48,49,131,139,140,245],_a=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=$e({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function n(t,n){var r=[],i=T(1);switch(n.type){case"base64":i=M(C(t));break;case"binary":i=M(t);break;case"buffer":case"array":i=t;break}Kn(i,0);var o=i.read_shift(1),a=!!(136&o),s=!1,l=!1;switch(o){case 2:break;case 3:break;case 48:s=!0,a=!0;break;case 49:s=!0,a=!0;break;case 131:break;case 139:break;case 140:l=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+o.toString(16))}var c=0,u=521;2==o&&(c=i.read_shift(2)),i.l+=3,2!=o&&(c=i.read_shift(4)),c>1048576&&(c=1e6),2!=o&&(u=i.read_shift(2));var h=i.read_shift(2),d=n.codepage||1252;2!=o&&(i.l+=16,i.read_shift(1),0!==i[i.l]&&(d=e[i[i.l]]),i.l+=1,i.l+=2),l&&(i.l+=36);var f=[],p={},m=Math.min(i.length,2==o?521:u-10-(s?264:0)),v=l?32:11;while(i.l0)if(42!==i[i.l])for(++i.l,r[++b]=[],y=0,y=0;y!=f.length;++y){var w=i.slice(i.l,i.l+f[y].len);i.l+=f[y].len,Kn(w,0);var x=g.utils.decode(d,w);switch(f[y].type){case"C":x.trim().length&&(r[b][y]=x.replace(/\s+$/,""));break;case"D":8===x.length?r[b][y]=new Date(+x.slice(0,4),+x.slice(4,6)-1,+x.slice(6,8)):r[b][y]=x;break;case"F":r[b][y]=parseFloat(x.trim());break;case"+":case"I":r[b][y]=l?2147483648^w.read_shift(-4,"i"):w.read_shift(4,"i");break;case"L":switch(x.trim().toUpperCase()){case"Y":case"T":r[b][y]=!0;break;case"N":case"F":r[b][y]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+x+"|")}break;case"M":if(!a)throw new Error("DBF Unexpected MEMO for type "+o.toString(16));r[b][y]="##MEMO##"+(l?parseInt(x.trim(),10):w.read_shift(4));break;case"N":x=x.replace(/\u0000/g,"").trim(),x&&"."!=x&&(r[b][y]=+x||0);break;case"@":r[b][y]=new Date(w.read_shift(-8,"f")-621356832e5);break;case"T":r[b][y]=new Date(864e5*(w.read_shift(4)-2440588)+w.read_shift(4));break;case"Y":r[b][y]=w.read_shift(4,"i")/1e4+w.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":r[b][y]=-w.read_shift(-8,"f");break;case"B":if(s&&8==f[y].len){r[b][y]=w.read_shift(8,"f");break}case"G":case"P":w.l+=f[y].len;break;case"0":if("_NullFlags"===f[y].name)break;default:throw new Error("DBF Unsupported data type "+f[y].type)}}else i.l+=h;if(2!=o&&i.l=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write DBF to JS string");var i=$n(),s=hp(e,{header:1,raw:!0,cellDates:!0}),l=s[0],c=s.slice(1),u=e["!cols"]||[],d=0,f=0,p=0,m=1;for(d=0;d250&&(k=250),x=((u[d]||{}).DBF||{}).type,"C"==x&&u[d].DBF.len>k&&(k=u[d].DBF.len),"B"==w&&"N"==x&&(w="N",y[d]=u[d].DBF.dec,k=u[d].DBF.len),b[d]="C"==w||"N"==x?k:o[w]||0,m+=b[d],v[d]=w}else v[d]="?"}var C=i.next(32);for(C.write_shift(4,318902576),C.write_shift(4,c.length),C.write_shift(2,296+32*p),C.write_shift(2,m),d=0;d<4;++d)C.write_shift(4,0);for(C.write_shift(4,0|(+t[a]||3)<<8),d=0,f=0;d":190,"?":191,"{":223},n=new RegExp("N("+Qe(t).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(e,n){var r=t[n];return"number"==typeof r?y(r):r},i=function(e,t,n){var r=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==r?e:y(r)};function o(t,n){switch(n.type){case"base64":return a(C(t),n);case"binary":return a(t,n);case"buffer":return a(E&&e.isBuffer(t)?t.toString("binary"):L(t),n);case"array":return a(ht(t),n)}throw new Error("Unrecognized type "+n.type)}function a(e,t){var o,a=e.split(/[\n\r]+/),s=-1,l=-1,c=0,u=0,d=[],f=[],p=null,m={},v=[],b=[],y=[],w=0;for(+t.codepage>=0&&h(+t.codepage);c!==a.length;++c){w=0;var x,k=a[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,i).replace(n,r),A=k.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),C=A[0];if(k.length>0)switch(C){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":"P"==A[1].charAt(0)&&f.push(k.slice(3).replace(/;;/g,";"));break;case"C":var E=!1,S=!1,T=!1,N=!1,M=-1,L=-1;for(u=1;u-1&&d[M][L];if(!D||!D[1])throw new Error("SYLK shared formula cannot find base");d[s][l][1]=tc(D[1],{r:s-M,c:l-L})}break;case"F":var P=0;for(u=1;u0?(v[s].hpt=w,v[s].hpx=Ys(w)):0===w&&(v[s].hidden=!0);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+k)}P<1&&(p=null);break;default:if(t&&t.WTF)throw new Error("SYLK bad record "+k)}}return v.length>0&&(m["!rows"]=v),b.length>0&&(m["!cols"]=b),t&&t.sheetRows&&(d=d.slice(0,t.sheetRows)),[d,m]}function s(e,t){var n=o(e,t),r=n[0],i=n[1],a=kr(r,t);return Qe(i).forEach((function(e){a[e]=i[e]})),a}function l(e,t){return wr(s(e,t),t)}function c(e,t,n,r){var i="C;Y"+(n+1)+";X"+(r+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+ec(e.f,{r:n,c:r}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+='"'+(e.w||e.v)+'"';break;case"s":i+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return i}function u(e,t){t.forEach((function(t,n){var r="F;W"+(n+1)+" "+(n+1)+" ";t.hidden?r+="0":("number"!=typeof t.width||t.wpx||(t.wpx=Bs(t.width)),"number"!=typeof t.wpx||t.wch||(t.wch=_s(t.wpx)),"number"==typeof t.wch&&(r+=Math.round(t.wch)))," "!=r.charAt(r.length-1)&&e.push(r)}))}function d(e,t){t.forEach((function(t,n){var r="F;";t.hidden?r+="M0;":t.hpt?r+="M"+20*t.hpt+";":t.hpx&&(r+="M"+20*Vs(t.hpx)+";"),r.length>2&&e.push(r+"R"+(n+1))}))}function f(e,t){var n,r=["ID;PWXL;N;E"],i=[],o=vr(e["!ref"]),a=Array.isArray(e),s="\r\n";r.push("P;PGeneral"),r.push("F;P0;DG0G8;M255"),e["!cols"]&&u(r,e["!cols"]),e["!rows"]&&d(r,e["!rows"]),r.push("B;Y"+(o.e.r-o.s.r+1)+";X"+(o.e.c-o.s.c+1)+";D"+[o.s.c,o.s.r,o.e.c,o.e.r].join(" "));for(var l=o.s.r;l<=o.e.r;++l)for(var h=o.s.c;h<=o.e.c;++h){var f=pr({r:l,c:h});n=a?(e[l]||[])[h]:e[f],n&&(null!=n.v||n.f&&!n.F)&&i.push(c(n,e,l,h,t))}return r.join(s)+s+i.join(s)+s+"E"+s}return t["|"]=254,{to_workbook:l,to_sheet:s,from_sheet:f}}(),Ha=function(){function t(t,r){switch(r.type){case"base64":return n(C(t),r);case"binary":return n(t,r);case"buffer":return n(E&&e.isBuffer(t)?t.toString("binary"):L(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){for(var n=e.split("\n"),r=-1,i=-1,o=0,a=[];o!==n.length;++o)if("BOT"!==n[o].trim()){if(!(r<0)){var s=n[o].trim().split(","),l=s[0],c=s[1];++o;var u=n[o]||"";while(1&(u.match(/["]/g)||[]).length&&o=0&&0===o[a].length)--a;for(var s=10,l=0,c=0;c<=a;++c)l=o[c].indexOf(" "),-1==l?l=o[c].length:l++,s=Math.max(s,l);for(c=0;c<=a;++c){i[c]=[];var u=0;for(t(o[c].slice(0,s).trim(),i,c,u,r),u=1;u<=(o[c].length-s)/10+1;++u)t(o[c].slice(s+10*(u-1),s+10*u).trim(),i,c,u,r)}return r.sheetRows&&(i=i.slice(0,r.sheetRows)),i}var r={44:",",9:"\t",59:";",124:"|"},i={44:3,9:2,59:1,124:0};function o(e){for(var t={},n=!1,o=0,a=0;o0&&v(),i["!ref"]=gr(a),i}function s(e,t){return t&&t.PRN?t.FS||"sep="==e.slice(0,4)||e.indexOf("\t")>=0||e.indexOf(",")>=0||e.indexOf(";")>=0?a(e,t):kr(n(e,t),t):a(e,t)}function l(t,n){var r="",i="string"==n.type?[0,0,0,0]:tp(t,n);switch(n.type){case"base64":r=C(t);break;case"binary":r=t;break;case"buffer":r=65001==n.codepage?t.toString("utf8"):n.codepage&&"undefined"!==typeof g?g.utils.decode(n.codepage,t):E&&e.isBuffer(t)?t.toString("binary"):L(t);break;case"array":r=ht(t);break;case"string":r=t;break;default:throw new Error("Unrecognized type "+n.type)}return 239==i[0]&&187==i[1]&&191==i[2]?r=Jt(r.slice(3)):"string"!=n.type&&"buffer"!=n.type&&65001==n.codepage?r=Jt(r):"binary"==n.type&&"undefined"!==typeof g&&n.codepage&&(r=g.utils.decode(n.codepage,g.utils.encode(28591,r))),"socialcalc:version:"==r.slice(0,19)?Ua.to_sheet("string"==n.type?r:Jt(r),n):s(r,n)}function c(e,t){return wr(l(e,t),t)}function u(e){for(var t,n=[],r=vr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){for(var a=[],s=r.s.c;s<=r.e.c;++s){var l=pr({r:o,c:s});if(t=i?(e[o]||[])[s]:e[l],t&&null!=t.v){var c=(t.w||(yr(t),t.w)||"").slice(0,10);while(c.length<10)c+=" ";a.push(c+(0===s?" ":""))}else a.push(" ")}n.push(a.join(""))}return n.join("\n")}return{to_workbook:c,to_sheet:l,from_sheet:u}}();function Ga(e,t){var n=t||{},r=!!n.WTF;n.WTF=!0;try{var i=ja.to_workbook(e,n);return n.WTF=r,i}catch(o){if(n.WTF=r,!o.message.match(/SYLK bad record ID/)&&r)throw o;return qa.to_workbook(e,t)}}var Wa=function(){function e(e,t,n){if(e){Kn(e,e.l||0);var r=n.Enum||j;while(e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])r.Enum=j,e(t,(function(e,t,n){switch(n){case 0:r.vers=e,e>=4096&&(r.qpro=!0);break;case 6:h=e;break;case 204:e&&(a=e);break;case 222:a=e;break;case 15:case 51:r.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=r.dateNF||Z[14],r.cellDates&&(e[1].t="d",e[1].v=ot(e[1].v))),r.qpro&&e[3]>s&&(i["!ref"]=gr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o=a||"Sheet"+(s+1),a="");var u=r.dense?(i[e[0].r]||[])[e[0].c]:i[pr(e[0])];if(u){u.t=e[1].t,u.v=e[1].v,null!=e[1].z&&(u.z=e[1].z),null!=e[1].f&&(u.f=e[1].f);break}r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[pr(e[0])]=e[1];break;default:}}),r);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);r.Enum=H,14==t[2]&&(r.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:o=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>s&&(i["!ref"]=gr(h),l[o]=i,c.push(o),i=r.dense?[]:{},h={s:{r:0,c:0},e:{r:0,c:0}},s=e[3],o="Sheet"+(s+1)),d>0&&e[0].r>=d)break;r.dense?(i[e[0].r]||(i[e[0].r]=[]),i[e[0].r][e[0].c]=e[1]):i[pr(e[0])]=e[1],h.e.c=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var r=$n(),i=vr(e["!ref"]),a=Array.isArray(e),s=[];of(r,0,o(1030)),of(r,6,l(i));for(var c=Math.min(i.e.r,8191),u=i.s.r;u<=c;++u)for(var f=or(u),m=i.s.c;m<=i.e.c;++m){u===i.s.r&&(s[m]=cr(m));var v=s[m]+f,b=a?(e[u]||[])[m]:e[v];if(b&&"z"!=b.t)if("n"==b.t)(0|b.v)==b.v&&b.v>=-32768&&b.v<=32767?of(r,13,p(u,m,b.v)):of(r,14,g(u,m,b.v));else{var y=yr(b);of(r,15,d(u,m,y.slice(0,239)))}}return of(r,1),r.end()}function i(e,t){var n=t||{};if(+n.codepage>=0&&h(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var r=$n();of(r,0,a(e));for(var i=0,o=0;i8191&&(n=8191),t.write_shift(2,n),t.write_shift(1,i),t.write_shift(1,r),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}function s(e,t,n){var r={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.qpro?(r.s.c=e.read_shift(1),e.l++,r.s.r=e.read_shift(2),r.e.c=e.read_shift(1),e.l++,r.e.r=e.read_shift(2),r):(r.s.c=e.read_shift(2),r.s.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),r.e.c=e.read_shift(2),r.e.r=e.read_shift(2),12==t&&n.qpro&&(e.l+=2),65535==r.s.c&&(r.s.c=r.e.c=r.s.r=r.e.r=0),r)}function l(e){var t=Jn(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}function c(e,t,n){var r=[{c:0,r:0},{t:"n",v:0},0,0];return n.qpro&&20768!=n.vers?(r[0].c=e.read_shift(1),r[3]=e.read_shift(1),r[0].r=e.read_shift(2),e.l+=2):(r[2]=e.read_shift(1),r[0].c=e.read_shift(2),r[0].r=e.read_shift(2)),r}function u(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].t="s",20768==n.vers){e.l++;var o=e.read_shift(1);return i[1].v=e.read_shift(o,"utf8"),i}return n.qpro&&e.l++,i[1].v=e.read_shift(r-e.l,"cstr"),i}function d(e,t,n){var r=Jn(7+n.length);r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(1,39);for(var i=0;i=128?95:o)}return r.write_shift(1,0),r}function f(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(2,"i"),r}function p(e,t,n){var r=Jn(7);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(2,n,"i"),r}function m(e,t,n){var r=c(e,t,n);return r[1].v=e.read_shift(8,"f"),r}function g(e,t,n){var r=Jn(13);return r.write_shift(1,255),r.write_shift(2,t),r.write_shift(2,e),r.write_shift(8,n,"f"),r}function v(e,t,n){var r=e.l+t,i=c(e,t,n);if(i[1].v=e.read_shift(8,"f"),n.qpro)e.l=r;else{var o=e.read_shift(2);k(e.slice(e.l,e.l+o),i),e.l+=o}return i}function b(e,t,n){var r=32768&t;return t&=-32769,t=(r?e:0)+(t>=8192?t-16384:t),(r?"":"$")+(n?cr(t):or(t))}var y={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},x=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function k(e,t){Kn(e,0);var n=[],r=0,i="",o="",a="",s="";while(e.ln.length)return void console.error("WK1 bad formula parse 0x"+l.toString(16)+":|"+n.join("|")+"|");var d=n.slice(-r);n.length-=r,n.push(y[l][0]+"("+d.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}function A(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function E(e,t){var n=A(e,t);return n[1].t="s",n[1].v=e.read_shift(t-4,"cstr"),n}function S(e,t,n,r){var i=Jn(6+r.length);i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),i.write_shift(1,39);for(var o=0;o=128?95:a)}return i.write_shift(1,0),i}function T(e,t){var n=A(e,t);n[1].v=e.read_shift(2);var r=n[1].v>>1;if(1&n[1].v)switch(7&r){case 0:r=5e3*(r>>3);break;case 1:r=500*(r>>3);break;case 2:r=(r>>3)/20;break;case 3:r=(r>>3)/200;break;case 4:r=(r>>3)/2e3;break;case 5:r=(r>>3)/2e4;break;case 6:r=(r>>3)/16;break;case 7:r=(r>>3)/64;break}return n[1].v=r,n}function N(e,t){var n=A(e,t),r=e.read_shift(4),i=e.read_shift(4),o=e.read_shift(2);if(65535==o)return 0===r&&3221225472===i?(n[1].t="e",n[1].v=15):0===r&&3489660928===i?(n[1].t="e",n[1].v=42):n[1].v=0,n;var a=32768&o;return o=(32767&o)-16446,n[1].v=(1-2*a)*(i*Math.pow(2,o+32)+r*Math.pow(2,o)),n}function L(e,t,n,r){var i=Jn(14);if(i.write_shift(2,e),i.write_shift(1,n),i.write_shift(1,t),0==r)return i.write_shift(4,0),i.write_shift(4,0),i.write_shift(2,65535),i;var o=0,a=0,s=0,l=0;return r<0&&(o=1,r=-r),a=0|Math.log2(r),r/=Math.pow(2,a-31),l=r>>>0,0==(2147483648&l)&&(r/=2,++a,l=r>>>0),r-=l,l|=2147483648,l>>>=0,r*=Math.pow(2,32),s=r>>>0,i.write_shift(4,s),i.write_shift(4,l),a+=16383+(o?32768:0),i.write_shift(2,a),i}function O(e,t){var n=N(e,14);return e.l+=t-14,n}function D(e,t){var n=A(e,t),r=e.read_shift(4);return n[1].v=r>>6,n}function P(e,t){var n=A(e,t),r=e.read_shift(8,"f");return n[1].v=r,n}function I(e,t){var n=P(e,14);return e.l+=t-10,n}function R(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function F(e,t){var n=e[e.l++];n>t-1&&(n=t-1);var r="";while(r.length127?95:i}return n[n.l++]=0,n}var j={0:{n:"BOF",f:Ki},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:f},14:{n:"NUMBER",f:m},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:R},222:{n:"SHEETNAMELP",f:F},65535:{n:""}},H={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:E},23:{n:"NUMBER17",f:N},24:{n:"NUMBER18",f:T},25:{n:"FORMULA19",f:O},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:B},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:D},38:{n:"??"},39:{n:"NUMBER27",f:P},40:{n:"FORMULA28",f:I},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:R},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:z},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:r,book_to_wk3:i,to_workbook:t}}();function Va(e){var t={},n=e.match(It),r=0,i=!1;if(n)for(;r!=n.length;++r){var o=zt(n[r]);switch(o[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(47!==o[0].charCodeAt(1)&&!i)throw new Error("Unrecognized rich format "+o[0])}}return t}var Ya=function(){var e=$t("t"),t=$t("rPr");function n(n){var r=n.match(e);if(!r)return{t:"s",v:""};var i={t:"s",v:Ht(r[1])},o=n.match(t);return o&&(i.s=Va(o[1])),i}var r=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(e){return e.replace(r,"").split(i).map(n).filter((function(e){return e.v}))}}(),Za=function(){var e=/(\r\n|\n)/g;function t(e,t,n){var r=[];e.u&&r.push("text-decoration: underline;"),e.uval&&r.push("text-underline-style:"+e.uval+";"),e.sz&&r.push("font-size:"+e.sz+"pt;"),e.outline&&r.push("text-effect: outline;"),e.shadow&&r.push("text-shadow: auto;"),t.push(''),e.b&&(t.push(""),n.push("")),e.i&&(t.push(""),n.push("")),e.strike&&(t.push(""),n.push(""));var i=e.valign||"";return"superscript"==i||"super"==i?i="sup":"subscript"==i&&(i="sub"),""!=i&&(t.push("<"+i+">"),n.push("")),n.push(""),e}function n(n){var r=[[],n.v,[]];return n.v?(n.s&&t(n.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"
")+r[2].join("")):""}return function(e){return e.map(n).join("")}}(),Ka=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Xa=/<(?:\w+:)?r>/,Ja=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function Qa(e,t){var n=!t||t.cellHTML,r={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(r.t=Ht(Jt(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),r.r=Jt(e),n&&(r.h=Gt(r.t))):e.match(Xa)&&(r.r=Jt(e),r.t=Ht(Jt((e.replace(Ja,"").match(Ka)||[]).join("").replace(It,""))),n&&(r.h=Za(Ya(r.r)))),r):{t:""}}var $a=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,es=/<(?:\w+:)?(?:si|sstItem)>/g,ts=/<\/(?:\w+:)?(?:si|sstItem)>/;function ns(e,t){var n=[],r="";if(!e)return n;var i=e.match($a);if(i){r=i[2].replace(es,"").split(ts);for(var o=0;o!=r.length;++o){var a=Qa(r[o].trim(),t);null!=a&&(n[n.length]=a)}i=zt(i[1]),n.Count=i.count,n.Unique=i.uniqueCount}return n}function rs(e){return[e.read_shift(4),e.read_shift(4)]}function is(e,t){var n=[],r=!1;return Qn(e,(function(e,i,o){switch(o){case 159:n.Count=e[0],n.Unique=e[1];break;case 19:n.push(e);break;case 160:return!0;case 35:r=!0;break;case 36:r=!1;break;default:if(i.T,!r||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),n}function os(e){if("undefined"!==typeof g)return g.utils.encode(a,e);for(var t=[],n=e.split(""),r=0;r=4&&(e.l+=t-4),n}function ss(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function ls(e){var t=e.read_shift(4),n=e.l+t-4,r={},i=e.read_shift(4),o=[];while(i-- >0)o.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(r.name=e.read_shift(0,"lpp4"),r.comps=o,e.l!=n)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+n);return r}function cs(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(ls(e));return t}function us(e){var t=[];e.l+=4;var n=e.read_shift(4);while(n-- >0)t.push(e.read_shift(0,"lpp4"));return t}function hs(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=as(e,4),t.U=as(e,4),t.W=as(e,4),t}function ds(e){var t=hs(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record");return t}function fs(e,t){var n=e.l+t,r={};r.Flags=63&e.read_shift(4),e.l+=4,r.AlgID=e.read_shift(4);var i=!1;switch(r.AlgID){case 26126:case 26127:case 26128:i=36==r.Flags;break;case 26625:i=4==r.Flags;break;case 0:i=16==r.Flags||4==r.Flags||36==r.Flags;break;default:throw"Unrecognized encryption algorithm: "+r.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return r.AlgIDHash=e.read_shift(4),r.KeySize=e.read_shift(4),r.ProviderType=e.read_shift(4),e.l+=8,r.CSPName=e.read_shift(n-e.l>>1,"utf16le"),e.l=n,r}function ps(e,t){var n={},r=e.l+t;return e.l+=4,n.Salt=e.slice(e.l,e.l+16),e.l+=16,n.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),n.VerifierHash=e.slice(e.l,r),e.l=r,n}function ms(e){var t=as(e);switch(t.Minor){case 2:return[t.Minor,gs(e,t)];case 3:return[t.Minor,vs(e,t)];case 4:return[t.Minor,bs(e,t)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function gs(e){var t=e.read_shift(4);if(36!=(63&t))throw new Error("EncryptionInfo mismatch");var n=e.read_shift(4),r=fs(e,n),i=ps(e,e.length-e.l);return{t:"Std",h:r,v:i}}function vs(){throw new Error("File is password-protected: ECMA-376 Extensible")}function bs(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var n=e.read_shift(e.length-e.l,"utf8"),r={};return n.replace(It,(function(e){var n=zt(e);switch(Bt(n[0])){case"":break;case"":case"":break;case"":break;case"4||r.Major<2)throw new Error("unrecognized major version code: "+r.Major);n.Flags=e.read_shift(4),t-=4;var i=e.read_shift(4);return t-=4,n.EncryptionHeader=fs(e,i),t-=i,n.EncryptionVerifier=ps(e,t),n}function ws(e){var t={},n=t.EncryptionVersionInfo=as(e,4);if(1!=n.Major||1!=n.Minor)throw"unrecognized version code "+n.Major+" : "+n.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function xs(e){var t,n,r,i,o,a,s=0,l=os(e),c=l.length+1;for(t=T(c),t[0]=l.length,n=1;n!=c;++n)t[n]=l[n-1];for(n=c-1;n>=0;--n)r=t[n],i=0===(16384&s)?0:1,o=s<<1&32767,a=i|o,s=a^r;return 52811^s}var ks=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],n=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],r=function(e){return 255&(e/2|128*e)},i=function(e,t){return r(e^t)},o=function(e){for(var r=t[e.length-1],i=104,o=e.length-1;o>=0;--o)for(var a=e[o],s=0;7!=s;++s)64&a&&(r^=n[i]),a*=2,--i;return r};return function(t){for(var n,r,a,s=os(t),l=o(s),c=s.length,u=T(16),h=0;16!=h;++h)u[h]=0;1===(1&c)&&(n=l>>8,u[c]=i(e[0],n),--c,n=255&l,r=s[s.length-1],u[c]=i(r,n));while(c>0)--c,n=l>>8,u[c]=i(s[c],n),--c,n=255&l,u[c]=i(s[c],n);c=15,a=15-s.length;while(a>0)n=l>>8,u[c]=i(e[a],n),--c,--a,n=255&l,u[c]=i(s[c],n),--c,--a;return u}}(),As=function(e,t,n,r,i){var o,a;for(i||(i=t),r||(r=ks(e)),o=0;o!=t.length;++o)a=t[o],a^=r[n],a=255&(a>>5|a<<3),i[o]=a,++n;return[i,n,r]},Cs=function(e){var t=0,n=ks(e);return function(e){var r=As("",e,t,n);return t=r[1],r[0]}};function Es(e,t,n,r){var i={key:Ki(e),verificationBytes:Ki(e)};return n.password&&(i.verifier=xs(n.password)),r.valid=i.verificationBytes===i.verifier,r.valid&&(r.insitu=Cs(n.password)),i}function Ss(e,t,n){var r=n||{};return r.Info=e.read_shift(2),e.l-=2,1===r.Info?r.Data=ws(e,t):r.Data=ys(e,t),r}function Ts(e,t,n){var r={Type:n.biff>=8?e.read_shift(2):0};return r.Type?Ss(e,t-2,r):Es(e,n.biff>=8?t:t-2,n,r),r}var Ns=function(){function t(t,r){switch(r.type){case"base64":return n(C(t),r);case"binary":return n(t,r);case"buffer":return n(E&&e.isBuffer(t)?t.toString("binary"):L(t),r);case"array":return n(ht(t),r)}throw new Error("Unrecognized type "+r.type)}function n(e,t){var n=t||{},r=n.dense?[]:{},i=e.match(/\\trowd.*?\\row\b/g);if(!i.length)throw new Error("RTF missing table");var o={s:{c:0,r:0},e:{c:0,r:i.length-1}};return i.forEach((function(e,t){Array.isArray(r)&&(r[t]=[]);var n,i=/\\\w+\b/g,a=0,s=-1;while(n=i.exec(e)){switch(n[0]){case"\\cell":var l=e.slice(a,i.lastIndex-n[0].length);if(" "==l[0]&&(l=l.slice(1)),++s,l.length){var c={v:l,t:"s"};Array.isArray(r)?r[t][s]=c:r[pr({r:t,c:s})]=c}break}a=i.lastIndex}s>o.e.c&&(o.e.c=s)})),r["!ref"]=gr(o),r}function r(e,n){return wr(t(e,n),n)}function i(e){for(var t,n=["{\\rtf1\\ansi"],r=vr(e["!ref"]),i=Array.isArray(e),o=r.s.r;o<=r.e.r;++o){n.push("\\trowd\\trautofit1");for(var a=r.s.c;a<=r.e.c;++a)n.push("\\cellx"+(a+1));for(n.push("\\pard\\intbl"),a=r.s.c;a<=r.e.c;++a){var s=pr({r:o,c:a});t=i?(e[o]||[])[a]:e[s],t&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(yr(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}return{to_workbook:r,to_sheet:t,from_sheet:i}}();function Ms(e){var t=e.slice("#"===e[0]?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function Ls(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}function Os(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(t,n,r),o=Math.min(t,n,r),a=i-o;if(0===a)return[0,0,t];var s=0,l=0,c=i+o;switch(l=a/(c>1?2-c:c),i){case t:s=((n-r)/a+6)%6;break;case n:s=(r-t)/a+2;break;case r:s=(t-n)/a+4;break}return[s/6,l,c/2]}function Ds(e){var t,n=e[0],r=e[1],i=e[2],o=2*r*(i<.5?i:1-i),a=i-o/2,s=[a,a,a],l=6*n;if(0!==r)switch(0|l){case 0:case 6:t=o*l,s[0]+=o,s[1]+=t;break;case 1:t=o*(2-l),s[0]+=t,s[1]+=o;break;case 2:t=o*(l-2),s[1]+=o,s[2]+=t;break;case 3:t=o*(4-l),s[1]+=t,s[2]+=o;break;case 4:t=o*(l-4),s[2]+=o,s[0]+=t;break;case 5:t=o*(6-l),s[2]+=t,s[0]+=o;break}for(var c=0;3!=c;++c)s[c]=Math.round(255*s[c]);return s}function Ps(e,t){if(0===t)return e;var n=Os(Ms(e));return n[2]=t<0?n[2]*(1+t):1-(1-n[2])*(1-t),Ls(Ds(n))}var Is=6,Rs=15,Fs=1,zs=Is;function Bs(e){return Math.floor((e+Math.round(128/zs)/256)*zs)}function _s(e){return Math.floor((e-5)/zs*100+.5)/100}function js(e){return Math.round((e*zs+5)/zs*256)/256}function Hs(e){return js(_s(Bs(e)))}function Us(e){var t=Math.abs(e-Hs(e)),n=zs;if(t>.005)for(zs=Fs;zs":case"":break;case"":case"":i={},n.diagonalUp&&(i.diagonalUp=Vt(n.diagonalUp)),n.diagonalDown&&(i.diagonalDown=Vt(n.diagonalDown)),t.Borders.push(i);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in borders")}}))}function Xs(e,t,n,r){t.Fills=[];var i={},o=!1;(e[0].match(It)||[]).forEach((function(e){var n=zt(e);switch(Bt(n[0])){case"":case"":break;case"":case"":i={},t.Fills.push(i);break;case"":break;case"":break;case"":t.Fills.push(i),i={};break;case"":n.patternType&&(i.patternType=n.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+n[0]+" in fills")}}))}function Js(e,t,n,r){t.Fonts=[];var i={},o=!1;(e[0].match(It)||[]).forEach((function(e){var a=zt(e);switch(Bt(a[0])){case"":case"":break;case"":break;case"":case"":t.Fonts.push(i),i={};break;case"":case"":break;case"":i.bold=1;break;case"":i.italic=1;break;case"":i.underline=1;break;case"":i.strike=1;break;case"":i.outline=1;break;case"":i.shadow=1;break;case"":i.condense=1;break;case"":i.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":o=!1;break;case"":case"":break;case"":o=!1;break;default:if(r&&r.WTF&&!o)throw new Error("unrecognized "+a[0]+" in fonts")}}))}function Qs(e,t,n){t.NumberFmt=[];for(var r=Qe(Z),i=0;i":case"":case"":break;case"0){if(l>392){for(l=392;l>60;--l)if(null==t.NumberFmt[l])break;t.NumberFmt[l]=s}Ue(s,l)}break;case"":break;default:if(n.WTF)throw new Error("unrecognized "+a[0]+" in numFmts")}}}var $s=["numFmtId","fillId","fontId","borderId","xfId"],el=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function tl(e,t,n){var r;t.CellXf=[];var i=!1;(e[0].match(It)||[]).forEach((function(e){var o=zt(e),a=0;switch(Bt(o[0])){case"":case"":case"":break;case"":for(r=o,delete r[0],a=0;a<$s.length;++a)r[$s[a]]&&(r[$s[a]]=parseInt(r[$s[a]],10));for(a=0;a392)for(a=392;a>60;--a)if(t.NumberFmt[r.numFmtId]==t.NumberFmt[a]){r.numFmtId=a;break}t.CellXf.push(r);break;case"":break;case"":var s={};o.vertical&&(s.vertical=o.vertical),o.horizontal&&(s.horizontal=o.horizontal),null!=o.textRotation&&(s.textRotation=o.textRotation),o.indent&&(s.indent=o.indent),o.wrapText&&(s.wrapText=Vt(o.wrapText)),r.alignment=s;break;case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+o[0]+" in cellXfs")}}))}var nl=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,r=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,a,s){var l,c={};return o?(o=o.replace(//gm,"").replace(//gm,""),(l=o.match(e))&&Qs(l,c,s),(l=o.match(r))&&Js(l,c,a,s),(l=o.match(n))&&Xs(l,c,a,s),(l=o.match(i))&&Ks(l,c,a,s),(l=o.match(t))&&tl(l,c,s),c):c}}();function rl(e,t){var n=e.read_shift(2),r=Cr(e,t-2);return[n,r]}function il(e,t,n){var r={};r.sz=e.read_shift(2)/20;var i=_r(e,2,n);i.fItalic&&(r.italic=1),i.fCondense&&(r.condense=1),i.fExtend&&(r.extend=1),i.fShadow&&(r.shadow=1),i.fOutline&&(r.outline=1),i.fStrikeout&&(r.strike=1);var o=e.read_shift(2);switch(700===o&&(r.bold=1),e.read_shift(2)){case 1:r.vertAlign="superscript";break;case 2:r.vertAlign="subscript";break}var a=e.read_shift(1);0!=a&&(r.underline=a);var s=e.read_shift(1);s>0&&(r.family=s);var l=e.read_shift(1);switch(l>0&&(r.charset=l),e.l++,r.color=Br(e,8),e.read_shift(1)){case 1:r.scheme="major";break;case 2:r.scheme="minor";break}return r.name=Cr(e,t-21),r}var ol=Xn;function al(e,t){var n=e.l+t,r=e.read_shift(2),i=e.read_shift(2);return e.l=n,{ixfe:r,numFmtId:i}}var sl=Xn;function ll(e,t,n){var r={NumberFmt:[]};for(var i in Z)r.NumberFmt[i]=Z[i];r.CellXf=[],r.Fonts=[];var o=[],a=!1;return Qn(e,(function(e,i,s){switch(s){case 44:r.NumberFmt[e[0]]=e[1],Ue(e[1],e[0]);break;case 43:r.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=Ps(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:617==o[o.length-1]&&r.CellXf.push(e);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:o.push(s),a=!0;break;case 38:o.pop(),a=!1;break;default:if(i.T>0)o.push(s);else if(i.T<0)o.pop();else if(!a||n.WTF&&37!=o[o.length-1])throw new Error("Unexpected record 0x"+s.toString(16))}})),r}var cl=["","","","","","","","","","","",""];function ul(e,t,n){t.themeElements.clrScheme=[];var r={};(e[0].match(It)||[]).forEach((function(e){var i=zt(e);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":"/"===i[0].charAt(1)?(t.themeElements.clrScheme[cl.indexOf(i[0])]=r,r={}):r.name=i[0].slice(3,i[0].length-1);break;default:if(n&&n.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}}))}function hl(){}function dl(){}var fl=/]*)>[\s\S]*<\/a:clrScheme>/,pl=/]*)>[\s\S]*<\/a:fontScheme>/,ml=/]*)>[\s\S]*<\/a:fmtScheme>/;function gl(e,t,n){var r;t.themeElements={},[["clrScheme",fl,ul],["fontScheme",pl,hl],["fmtScheme",ml,dl]].forEach((function(i){if(!(r=e.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](r,t,n)}))}var vl=/]*)>[\s\S]*<\/a:themeElements>/;function bl(e,t){var n;e&&0!==e.length||(e=yl());var r={};if(!(n=e.match(vl)))throw new Error("themeElements not found in theme");return gl(n[0],r,t),r.raw=e,r}function yl(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[Lt];return n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n.join("")}function wl(e,t,n){var r=e.l+t,i=e.read_shift(4);if(124226!==i)if(n.cellStyles){var o,a=e.slice(e.l);e.l=r;try{o=Nt(a,{type:"array"})}catch(l){return}var s=Ct(o,"theme/theme/theme1.xml",!0);if(s)return bl(s,n)}else e.l=r}function xl(e){return e.read_shift(4)}function kl(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=Al(e,4);break;case 2:t.xclrValue=co(e,4);break;case 3:t.xclrValue=xl(e,4);break;case 4:e.l+=4;break}return e.l+=8,t}function Al(e,t){return Xn(e,t)}function Cl(e,t){return Xn(e,t)}function El(e){var t=e.read_shift(2),n=e.read_shift(2)-4,r=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:r[1]=kl(e,n);break;case 6:r[1]=Cl(e,n);break;case 14:case 15:r[1]=e.read_shift(1===n?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+n)}return r}function Sl(e,t){var n=e.l+t;e.l+=2;var r=e.read_shift(2);e.l+=2;var i=e.read_shift(2),o=[];while(i-- >0)o.push(El(e,n-e.l));return{ixfe:r,ext:o}}function Tl(e,t){t.forEach((function(e){switch(e[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}}))}function Nl(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:Cr(e,t-8)}}function Ml(e){var t=[],n=e.read_shift(4);while(n-- >0)t.push([e.read_shift(4),e.read_shift(4)]);return t}function Ll(e){return e.l+=4,0!=e.read_shift(4)}function Ol(e,t,n){var r={Types:[],Cell:[],Value:[]},i=n||{},o=[],a=!1,s=2;return Qn(e,(function(e,t,n){switch(n){case 335:r.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==s?r.Cell.push({type:r.Types[e[0]-1].name,index:e[1]}):0==s&&r.Value.push({type:r.Types[e[0]-1].name,index:e[1]})}));break;case 337:s=e?1:0;break;case 338:s=2;break;case 35:o.push(n),a=!0;break;case 36:o.pop(),a=!1;break;default:if(t.T);else if(!a||i.WTF&&35!=o[o.length-1])throw new Error("Unexpected record 0x"+n.toString(16))}})),r}function Dl(e,t,n){var r={Types:[],Cell:[],Value:[]};if(!e)return r;var i,o=!1,a=2;return e.replace(It,(function(e){var t=zt(e);switch(Bt(t[0])){case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":a=2;break;case"":a=2;break;case"":case"":case"":break;case"":o=!1;break;case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][n].Target}function _l(e,t,n,r){var i,o=Array.isArray(e);t.forEach((function(t){var a=fr(t.ref);if(o?(e[a.r]||(e[a.r]=[]),i=e[a.r][a.c]):i=e[t.ref],!i){i={t:"z"},o?e[a.r][a.c]=i:e[t.ref]=i;var s=vr(e["!ref"]||"BDWGO1000001:A1");s.s.r>a.r&&(s.s.r=a.r),s.e.ra.c&&(s.s.c=a.c),s.e.c=0;--u){if(!n&&i.c[u].T)return;n&&!i.c[u].T&&i.c.splice(u,1)}if(n&&r)for(u=0;u/))return[];var n=[],r=[],i=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&n.push(t[1])}}));var o=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return o&&o[1]&&o[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var i=e.match(/<(?:\w+:)?comment[^>]*>/);if(i){var o=zt(i[0]),a={author:o.authorId&&n[o.authorId]||"sheetjsghost",ref:o.ref,guid:o.guid},s=fr(o.ref);if(!(t.sheetRows&&t.sheetRows<=s.r)){var l=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),c=!!l&&!!l[1]&&Qa(l[1])||{r:"",t:"",h:""};a.r=c.r,""==c.r&&(c.t=c.h=""),a.t=(c.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(a.h=c.h),r.push(a)}}}})),r}function Hl(e,t){var n=[],r=!1,i={},o=0;return e.replace(It,(function(a,s){var l=zt(a);switch(Bt(l[0])){case"":break;case"":null!=i.t&&n.push(i);break;case"":case"":i.t=e.slice(o,s).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"":r=!0;break;case"":r=!1;break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+l[0]+" in threaded comments")}return a})),n}function Ul(e,t){var n=[],r=!1;return e.replace(It,(function(e){var i=zt(e);switch(Bt(i[0])){case"":break;case"":break;case"":case"":case"":break;case"":r=!1;break;default:if(!r&&t.WTF)throw new Error("unrecognized "+i[0]+" in threaded comments")}return e})),n}function ql(e){var t={};t.iauthor=e.read_shift(4);var n=Fr(e,16);return t.rfx=n.s,t.ref=pr(n.s),e.l+=16,t}var Gl=Cr;function Wl(e,t){var n=[],r=[],i={},o=!1;return Qn(e,(function(e,a,s){switch(s){case 632:r.push(e);break;case 635:i=e;break;case 637:i.t=e.t,i.h=e.h,i.r=e.r;break;case 636:if(i.author=r[i.iauthor],delete i.iauthor,t.sheetRows&&i.rfx&&t.sheetRows<=i.rfx.r)break;i.t||(i.t=""),delete i.rfx,n.push(i);break;case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(a.T);else if(!o||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),n}var Vl="application/vnd.ms-office.vbaProject";function Yl(e){var t=Ke.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(n,r){if("/"!==n.slice(-1)&&n.match(/_VBA_PROJECT_CUR/)){var i=n.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Ke.utils.cfb_add(t,i,e.FileIndex[r].content)}})),Ke.write(t)}function Zl(){return{"!type":"dialog"}}function Kl(){return{"!type":"dialog"}}function Xl(){return{"!type":"macro"}}function Jl(){return{"!type":"macro"}}var Ql=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function n(e,n,r,i){var o=!1,a=!1;0==r.length?a=!0:"["==r.charAt(0)&&(a=!0,r=r.slice(1,-1)),0==i.length?o=!0:"["==i.charAt(0)&&(o=!0,i=i.slice(1,-1));var s=r.length>0?0|parseInt(r,10):0,l=i.length>0?0|parseInt(i,10):0;return o?l+=t.c:--l,a?s+=t.r:--s,n+(o?"":"$")+cr(l)+(a?"":"$")+or(s)}return function(r,i){return t=i,r.replace(e,n)}}(),$l=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,ec=function(){return function(e,t){return e.replace($l,(function(e,n,r,i,o,a){var s=lr(i)-(r?0:t.c),l=ir(a)-(o?0:t.r),c=0==l?"":o?l+1:"["+l+"]",u=0==s?"":r?s+1:"["+s+"]";return n+"R"+c+"C"+u}))}}();function tc(e,t){return e.replace($l,(function(e,n,r,i,o,a){return n+("$"==r?r+i:cr(lr(i)+t.c))+("$"==o?o+a:or(ir(a)+t.r))}))}function nc(e,t,n){var r=mr(t),i=r.s,o=fr(n),a={r:o.r-i.r,c:o.c-i.c};return tc(e,a)}function rc(e){return 1!=e.length}function ic(e){return e.replace(/_xlfn\./g,"")}function oc(e){e.l+=1}function ac(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function sc(e,t,n){var r=2;if(n){if(n.biff>=2&&n.biff<=5)return lc(e,t,n);12==n.biff&&(r=4)}var i=e.read_shift(r),o=e.read_shift(r),a=ac(e,2),s=ac(e,2);return{s:{r:i,c:a[0],cRel:a[1],rRel:a[2]},e:{r:o,c:s[0],cRel:s[1],rRel:s[2]}}}function lc(e){var t=ac(e,2),n=ac(e,2),r=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:r,cRel:t[1],rRel:t[2]},e:{r:n[0],c:i,cRel:n[1],rRel:n[2]}}}function cc(e,t,n){if(n.biff<8)return lc(e,t,n);var r=e.read_shift(12==n.biff?4:2),i=e.read_shift(12==n.biff?4:2),o=ac(e,2),a=ac(e,2);return{s:{r:r,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:a[0],cRel:a[1],rRel:a[2]}}}function uc(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return hc(e,t,n);var r=e.read_shift(n&&12==n.biff?4:2),i=ac(e,2);return{r:r,c:i[0],cRel:i[1],rRel:i[2]}}function hc(e){var t=ac(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}function dc(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function fc(e,t,n){var r=n&&n.biff?n.biff:8;if(r>=2&&r<=5)return pc(e,t,n);var i=e.read_shift(r>=12?4:2),o=e.read_shift(2),a=(16384&o)>>14,s=(32768&o)>>15;if(o&=16383,1==s)while(i>524287)i-=1048576;if(1==a)while(o>8191)o-=16384;return{r:i,c:o,cRel:a,rRel:s}}function pc(e){var t=e.read_shift(2),n=e.read_shift(1),r=(32768&t)>>15,i=(16384&t)>>14;return t&=16383,1==r&&t>=8192&&(t-=16384),1==i&&n>=128&&(n-=256),{r:t,c:n,cRel:i,rRel:r}}function mc(e,t,n){var r=(96&e[e.l++])>>5,i=sc(e,n.biff>=2&&n.biff<=5?6:8,n);return[r,i]}function gc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2,"i"),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}var a=sc(e,o,n);return[r,i,a]}function vc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[r]}function bc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12;break}return e.l+=o,[r,i]}function yc(e,t,n){var r=(96&e[e.l++])>>5,i=cc(e,t-1,n);return[r,i]}function wc(e,t,n){var r=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[r]}function xc(e){var t=1&e[e.l+1],n=1;return e.l+=4,[t,n]}function kc(e,t,n){e.l+=2;for(var r=e.read_shift(n&&2==n.biff?1:2),i=[],o=0;o<=r;++o)i.push(e.read_shift(n&&2==n.biff?1:2));return i}function Ac(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Cc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=2,[r,e.read_shift(n&&2==n.biff?1:2)]}function Ec(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}function Sc(e,t,n){var r=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[r]}function Tc(e){var t=e.read_shift(1),n=e.read_shift(1);return[t,n]}function Nc(e){return e.read_shift(2),Tc(e,2)}function Mc(e){return e.read_shift(2),Tc(e,2)}function Lc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=uc(e,0,n);return[r,i]}function Oc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=fc(e,0,n);return[r,i]}function Dc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(2);n&&5==n.biff&&(e.l+=12);var o=uc(e,0,n);return[r,i,o]}function Pc(e,t,n){var r=(96&e[e.l])>>5;e.l+=1;var i=e.read_shift(n&&n.biff<=3?1:2);return[Yu[i],Vu[i],r]}function Ic(e,t,n){var r=e[e.l++],i=e.read_shift(1),o=n&&n.biff<=3?[88==r?-1:0,e.read_shift(1)]:Rc(e);return[i,(0===o[0]?Vu:Wu)[o[1]]]}function Rc(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}function Fc(e,t,n){e.l+=n&&2==n.biff?3:4}function zc(e,t,n){if(e.l++,n&&12==n.biff)return[e.read_shift(4,"i"),0];var r=e.read_shift(2),i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Bc(e){return e.l++,ci[e.read_shift(1)]}function _c(e){return e.l++,e.read_shift(2)}function jc(e){return e.l++,0!==e.read_shift(1)}function Hc(e){return e.l++,zr(e,8)}function Uc(e,t,n){return e.l++,Qi(e,t-1,n)}function qc(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2;break}switch(n[0]){case 4:n[1]=Zi(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=ci[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=zr(e,8);break;case 2:n[1]=no(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function Gc(e,t,n){for(var r=e.read_shift(12==n.biff?4:2),i=[],o=0;o!=r;++o)i.push((12==n.biff?Fr:bo)(e,8));return i}function Wc(e,t,n){var r=0,i=0;12==n.biff?(r=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),r=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--r,0==--i&&(i=256));for(var o=0,a=[];o!=r&&(a[o]=[]);++o)for(var s=0;s!=i;++s)a[o][s]=qc(e,n.biff);return a}function Vc(e,t,n){var r=e.read_shift(1)>>>5&3,i=!n||n.biff>=8?4:2,o=e.read_shift(i);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[r,0,o]}function Yc(e,t,n){if(5==n.biff)return Zc(e,t,n);var r=e.read_shift(1)>>>5&3,i=e.read_shift(2),o=e.read_shift(4);return[r,i,o]}function Zc(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var r=e.read_shift(2);return e.l+=12,[t,n,r]}function Kc(e,t,n){var r=e.read_shift(1)>>>5&3;e.l+=n&&2==n.biff?3:4;var i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Xc(e,t,n){var r=e.read_shift(1)>>>5&3,i=e.read_shift(n&&2==n.biff?1:2);return[r,i]}function Jc(e,t,n){var r=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[r]}function Qc(e,t,n){var r=(96&e[e.l++])>>5,i=e.read_shift(2),o=4;if(n)switch(n.biff){case 5:o=15;break;case 12:o=6;break}return e.l+=o,[r,i]}var $c=Xn,eu=Xn,tu=Xn;function nu(e,t,n){return e.l+=2,[dc(e,4,n)]}function ru(e){return e.l+=6,[]}var iu=nu,ou=ru,au=ru,su=nu;function lu(e){return e.l+=2,[Ki(e),1&e.read_shift(2)]}var cu=nu,uu=lu,hu=ru,du=nu,fu=nu,pu=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function mu(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),r=e.read_shift(4),i=e.read_shift(2),o=e.read_shift(2),a=pu[n>>2&31];return{ixti:t,coltype:3&n,rt:a,idx:r,c:i,C:o}}function gu(e){return e.l+=2,[e.read_shift(4)]}function vu(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}function bu(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}function yu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function wu(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2);return[t,n]}function xu(e){return e.l+=4,[0,0]}var ku={1:{n:"PtgExp",f:zc},2:{n:"PtgTbl",f:tu},3:{n:"PtgAdd",f:oc},4:{n:"PtgSub",f:oc},5:{n:"PtgMul",f:oc},6:{n:"PtgDiv",f:oc},7:{n:"PtgPower",f:oc},8:{n:"PtgConcat",f:oc},9:{n:"PtgLt",f:oc},10:{n:"PtgLe",f:oc},11:{n:"PtgEq",f:oc},12:{n:"PtgGe",f:oc},13:{n:"PtgGt",f:oc},14:{n:"PtgNe",f:oc},15:{n:"PtgIsect",f:oc},16:{n:"PtgUnion",f:oc},17:{n:"PtgRange",f:oc},18:{n:"PtgUplus",f:oc},19:{n:"PtgUminus",f:oc},20:{n:"PtgPercent",f:oc},21:{n:"PtgParen",f:oc},22:{n:"PtgMissArg",f:oc},23:{n:"PtgStr",f:Uc},26:{n:"PtgSheet",f:vu},27:{n:"PtgEndSheet",f:bu},28:{n:"PtgErr",f:Bc},29:{n:"PtgBool",f:jc},30:{n:"PtgInt",f:_c},31:{n:"PtgNum",f:Hc},32:{n:"PtgArray",f:wc},33:{n:"PtgFunc",f:Pc},34:{n:"PtgFuncVar",f:Ic},35:{n:"PtgName",f:Vc},36:{n:"PtgRef",f:Lc},37:{n:"PtgArea",f:mc},38:{n:"PtgMemArea",f:Kc},39:{n:"PtgMemErr",f:$c},40:{n:"PtgMemNoMem",f:eu},41:{n:"PtgMemFunc",f:Xc},42:{n:"PtgRefErr",f:Jc},43:{n:"PtgAreaErr",f:vc},44:{n:"PtgRefN",f:Oc},45:{n:"PtgAreaN",f:yc},46:{n:"PtgMemAreaN",f:yu},47:{n:"PtgMemNoMemN",f:wu},57:{n:"PtgNameX",f:Yc},58:{n:"PtgRef3d",f:Dc},59:{n:"PtgArea3d",f:gc},60:{n:"PtgRefErr3d",f:Qc},61:{n:"PtgAreaErr3d",f:bc},255:{}},Au={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Cu={1:{n:"PtgElfLel",f:lu},2:{n:"PtgElfRw",f:du},3:{n:"PtgElfCol",f:iu},6:{n:"PtgElfRwV",f:fu},7:{n:"PtgElfColV",f:su},10:{n:"PtgElfRadical",f:cu},11:{n:"PtgElfRadicalS",f:hu},13:{n:"PtgElfColS",f:ou},15:{n:"PtgElfColSV",f:au},16:{n:"PtgElfRadicalLel",f:uu},25:{n:"PtgList",f:mu},29:{n:"PtgSxName",f:gu},255:{}},Eu={0:{n:"PtgAttrNoop",f:xu},1:{n:"PtgAttrSemi",f:Sc},2:{n:"PtgAttrIf",f:Cc},4:{n:"PtgAttrChoose",f:kc},8:{n:"PtgAttrGoto",f:Ac},16:{n:"PtgAttrSum",f:Fc},32:{n:"PtgAttrBaxcel",f:xc},33:{n:"PtgAttrBaxcel",f:xc},64:{n:"PtgAttrSpace",f:Nc},65:{n:"PtgAttrSpaceSemi",f:Mc},128:{n:"PtgAttrIfError",f:Ec},255:{}};function Su(e,t,n,r){if(r.biff<8)return Xn(e,t);for(var i=e.l+t,o=[],a=0;a!==n.length;++a)switch(n[a][0]){case"PtgArray":n[a][1]=Wc(e,0,r),o.push(n[a][1]);break;case"PtgMemArea":n[a][2]=Gc(e,n[a][1],r),o.push(n[a][2]);break;case"PtgExp":r&&12==r.biff&&(n[a][1][1]=e.read_shift(4),o.push(n[a][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[a][0];default:break}return t=i-e.l,0!==t&&o.push(Xn(e,t)),o}function Tu(e,t,n){var r,i,o=e.l+t,a=[];while(o!=e.l)t=o-e.l,i=e[e.l],r=ku[i]||ku[Au[i]],24!==i&&25!==i||(r=(24===i?Cu:Eu)[e[e.l+1]]),r&&r.f?a.push([r.n,r.f(e,t,n)]):Xn(e,t);return a}function Nu(e){for(var t=[],n=0;n=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Lu(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Ou(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var r=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!r)return"SH33TJSERR1";var i="";if(n.biff>8)switch(e[r[0]][0]){case 357:return i=-1==r[1]?"#REF":e.SheetNames[r[1]],r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[r[0]][0];case 355:default:return"SH33TJSSRC"+e[r[0]][0]}switch(e[r[0]][0][0]){case 1025:return i=-1==r[1]?"#REF":e.SheetNames[r[1]]||"SH33TJSERR3",r[1]==r[2]?i:i+":"+e.SheetNames[r[2]];case 14849:return e[r[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[r[0]][0][3]?(i=-1==r[1]?"#REF":e[r[0]][0][3][r[1]]||"SH33TJSERR4",r[1]==r[2]?i:i+":"+e[r[0]][0][3][r[2]]):"SH33TJSERR2"}}function Du(e,t,n){var r=Ou(e,t,n);return"#REF"==r?r:Lu(r,n)}function Pu(e,t,n,r,i){var o,a,s,l,c=i&&i.biff||8,u={s:{c:0,r:0},e:{c:0,r:0}},h=[],d=0,f=0,p="";if(!e[0]||!e[0][0])return"";for(var m=-1,g="",v=0,b=e[0].length;v=0){switch(e[0][m][1][0]){case 0:g=ft(" ",e[0][m][1][1]);break;case 1:g=ft("\r",e[0][m][1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}a+=g,m=-1}h.push(a+Mu[y[0]]+o);break;case"PtgIsect":o=h.pop(),a=h.pop(),h.push(a+" "+o);break;case"PtgUnion":o=h.pop(),a=h.pop(),h.push(a+","+o);break;case"PtgRange":o=h.pop(),a=h.pop(),h.push(a+":"+o);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":s=er(y[1][1],u,i),h.push(nr(s,c));break;case"PtgRefN":s=n?er(y[1][1],n,i):y[1][1],h.push(nr(s,c));break;case"PtgRef3d":d=y[1][1],s=er(y[1][2],u,i),p=Du(r,d,i);h.push(p+"!"+nr(s,c));break;case"PtgFunc":case"PtgFuncVar":var w=y[1][0],x=y[1][1];w||(w=0),w&=127;var k=0==w?[]:h.slice(-w);h.length-=w,"User"===x&&(x=k.shift()),h.push(x+"("+k.join(",")+")");break;case"PtgBool":h.push(y[1]?"TRUE":"FALSE");break;case"PtgInt":h.push(y[1]);break;case"PtgNum":h.push(String(y[1]));break;case"PtgStr":h.push('"'+y[1].replace(/"/g,'""')+'"');break;case"PtgErr":h.push(y[1]);break;case"PtgAreaN":l=tr(y[1][1],n?{s:n}:u,i),h.push(rr(l,i));break;case"PtgArea":l=tr(y[1][1],u,i),h.push(rr(l,i));break;case"PtgArea3d":d=y[1][1],l=y[1][2],p=Du(r,d,i),h.push(p+"!"+rr(l,i));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":f=y[1][2];var A=(r.names||[])[f-1]||(r[0]||[])[f],C=A?A.Name:"SH33TJSNAME"+String(f);C&&"_xlfn."==C.slice(0,6)&&!i.xlfn&&(C=C.slice(6)),h.push(C);break;case"PtgNameX":var E,S=y[1][1];if(f=y[1][2],!(i.biff<=5)){var T="";if(14849==((r[S]||[])[0]||[])[0]||(1025==((r[S]||[])[0]||[])[0]?r[S][f]&&r[S][f].itab>0&&(T=r.SheetNames[r[S][f].itab-1]+"!"):T=r.SheetNames[f-1]+"!"),r[S]&&r[S][f])T+=r[S][f].Name;else if(r[0]&&r[0][f])T+=r[0][f].Name;else{var N=(Ou(r,S,i)||"").split(";;");N[f-1]?T=N[f-1]:T+="SH33TJSERRX"}h.push(T);break}S<0&&(S=-S),r[S]&&(E=r[S][f]),E||(E={Name:"SH33TJSERRY"}),h.push(E.Name);break;case"PtgParen":var M="(",L=")";if(m>=0){switch(g="",e[0][m][1][0]){case 2:M=ft(" ",e[0][m][1][1])+M;break;case 3:M=ft("\r",e[0][m][1][1])+M;break;case 4:L=ft(" ",e[0][m][1][1])+L;break;case 5:L=ft("\r",e[0][m][1][1])+L;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][m][1][0])}m=-1}h.push(M+h.pop()+L);break;case"PtgRefErr":h.push("#REF!");break;case"PtgRefErr3d":h.push("#REF!");break;case"PtgExp":s={c:y[1][1],r:y[1][0]};var O={c:n.c,r:n.r};if(r.sharedf[pr(s)]){var D=r.sharedf[pr(s)];h.push(Pu(D,u,O,r,i))}else{var P=!1;for(o=0;o!=r.arrayf.length;++o)if(a=r.arrayf[o],!(s.ca[0].e.c)&&!(s.ra[0].e.r)){h.push(Pu(a[1],u,O,r,i)),P=!0;break}P||h.push(y[1])}break;case"PtgArray":h.push("{"+Nu(y[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":m=v;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":h.push("");break;case"PtgAreaErr":h.push("#REF!");break;case"PtgAreaErr3d":h.push("#REF!");break;case"PtgList":h.push("Table"+y[1].idx+"[#"+y[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(y));default:throw new Error("Unrecognized Formula Token: "+String(y))}var I=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(3!=i.biff&&m>=0&&-1==I.indexOf(e[0][v][0])){y=e[0][m];var R=!0;switch(y[1][0]){case 4:R=!1;case 0:g=ft(" ",y[1][1]);break;case 5:R=!1;case 1:g=ft("\r",y[1][1]);break;default:if(g="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+y[1][0])}h.push((R?g:"")+h.pop()+(R?"":g)),m=-1}}if(h.length>1&&i.WTF)throw new Error("bad formula stack");return h[0]}function Iu(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],Xn(e,t-2)];var s=Tu(e,a,n);return t!==a+o&&(r=Su(e,t-a-o,s,n)),e.l=i,[s,r]}function Ru(e,t,n){var r,i=e.l+t,o=2==n.biff?1:2,a=e.read_shift(o);if(65535==a)return[[],Xn(e,t-2)];var s=Tu(e,a,n);return t!==a+o&&(r=Su(e,t-a-o,s,n)),e.l=i,[s,r]}function Fu(e,t,n,r){var i,o=e.l+t,a=Tu(e,r,n);return o!==e.l&&(i=Su(e,o-e.l,a,n)),[a,i]}function zu(e,t,n){var r,i=e.l+t,o=e.read_shift(2),a=Tu(e,o,n);return 65535==o?[[],Xn(e,t-2)]:(t!==o+2&&(r=Su(e,i-o-2,a,n)),[a,r])}function Bu(e){var t;if(65535!==Bn(e,e.l+6))return[zr(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function _u(e,t,n){var r=e.l+t,i=ho(e,6);2==n.biff&&++e.l;var o=Bu(e,8),a=e.read_shift(1);2!=n.biff&&(e.read_shift(1),n.biff>=5&&e.read_shift(4));var s=Ru(e,r-e.l,n);return{cell:i,val:o[0],formula:s,shared:a>>3&1,tt:o[1]}}function ju(e,t,n){var r=e.read_shift(4),i=Tu(e,r,n),o=e.read_shift(4),a=o>0?Su(e,o,i,n):null;return[i,a]}var Hu=ju,Uu=ju,qu=ju,Gu=ju,Wu={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},Vu={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Yu={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Zu(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&(e=e.slice(1),61==e.charCodeAt(0)&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")})),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function Ku(e){var t=e.split(":"),n=t[0].split(".")[0];return[n,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}var Xu={},Ju={};function Qu(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function $u(e,t,n,r,i,o){try{r.cellNF&&(e.z=Z[t])}catch(s){if(r.WTF)throw s}if("z"!==e.t||r.cellStyles){if("d"===e.t&&"string"===typeof e.v&&(e.v=ut(e.v)),(!r||!1!==r.cellText)&&"z"!==e.t)try{if(null==Z[t]&&Ue(Ge[t]||"General",t),"e"===e.t)e.w=e.w||ci[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=le(e.v);else if("d"===e.t){var a=tt(e.v);e.w=(0|a)===a?a.toString(10):le(a)}else{if(void 0===e.v)return"";e.w=ce(e.v,Ju)}else"d"===e.t?e.w=He(t,tt(e.v),Ju):e.w=He(t,e.v,Ju)}catch(s){if(r.WTF)throw s}if(r.cellStyles&&null!=n)try{e.s=o.Fills[n],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=Ps(i.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),r.WTF&&(e.s.fgColor.raw_rgb=i.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=Ps(i.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),r.WTF&&(e.s.bgColor.raw_rgb=i.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(r.WTF&&o.Fills)throw s}}}function eh(e,t){var n=vr(t);n.s.r<=n.e.r&&n.s.c<=n.e.c&&n.s.r>=0&&n.s.c>=0&&(e["!ref"]=gr(n))}var th=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,nh=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,rh=/<(?:\w:)?hyperlink [^>]*>/gm,ih=/"(\w*:\w*)"/,oh=/<(?:\w:)?col\b[^>]*[\/]?>/g,ah=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,sh=/<(?:\w:)?pageMargins[^>]*\/>/g,lh=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,ch=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,uh=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function hh(e,t,n,r,i,o,a){if(!e)return e;r||(r={"!id":{}}),null!=w&&null==t.dense&&(t.dense=w);var s=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",h=e.match(nh);h?(c=e.slice(0,h.index),u=e.slice(h.index+h[0].length)):c=u=e;var d=c.match(lh);d?dh(d[0],s,i,n):(d=c.match(ch))&&fh(d[0],d[1]||"",s,i,n,a,o);var f=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(f>0){var p=c.slice(f,f+50).match(ih);p&&eh(s,p[1])}var m=c.match(uh);m&&m[1]&&yh(m[1],i);var g=[];if(t.cellStyles){var v=c.match(oh);v&&gh(g,v)}h&&wh(h[1],s,t,l,o,a);var b=u.match(ah);b&&(s["!autofilter"]=vh(b[0]));var y=[],x=u.match(th);if(x)for(f=0;f!=x.length;++f)y[f]=vr(x[f].slice(x[f].indexOf('"')+1));var k=u.match(rh);k&&ph(s,k,r);var A=u.match(sh);if(A&&(s["!margins"]=mh(zt(A[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=gr(l)),t.sheetRows>0&&s["!ref"]){var C=vr(s["!ref"]);t.sheetRows<=+C.e.r&&(C.e.r=t.sheetRows-1,C.e.r>l.e.r&&(C.e.r=l.e.r),C.e.rl.e.c&&(C.e.c=l.e.c),C.e.c0&&(s["!cols"]=g),y.length>0&&(s["!merges"]=y),s}function dh(e,t,n,r){var i=zt(e);n.Sheets[r]||(n.Sheets[r]={}),i.codeName&&(n.Sheets[r].CodeName=Ht(Jt(i.codeName)))}function fh(e,t,n,r,i){dh(e.slice(0,e.indexOf(">")),n,r,i)}function ph(e,t,n){for(var r=Array.isArray(e),i=0;i!=t.length;++i){var o=zt(Jt(t[i]),!0);if(!o.ref)return;var a=((n||{})["!id"]||[])[o.id];a?(o.Target=a.Target,o.location&&(o.Target+="#"+Ht(o.location))):(o.Target="#"+Ht(o.location),a={Target:o.Target,TargetMode:"Internal"}),o.Rel=a,o.tooltip&&(o.Tooltip=o.tooltip,delete o.tooltip);for(var s=vr(o.ref),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c){var u=pr({c:c,r:l});r?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=o):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=o)}}}function mh(e){var t={};return["left","right","top","bottom","header","footer"].forEach((function(n){e[n]&&(t[n]=parseFloat(e[n]))})),t}function gh(e,t){for(var n=!1,r=0;r!=t.length;++r){var i=zt(t[r],!0);i.hidden&&(i.hidden=Vt(i.hidden));var o=parseInt(i.min,10)-1,a=parseInt(i.max,10)-1;i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!n&&i.width&&(n=!0,Us(i.width)),qs(i);while(o<=a)e[o++]=dt(i)}}function vh(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}var bh=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function yh(e,t){t.Views||(t.Views=[{}]),(e.match(bh)||[]).forEach((function(e,n){var r=zt(e);t.Views[n]||(t.Views[n]={}),+r.zoomScale&&(t.Views[n].zoom=+r.zoomScale),Vt(r.rightToLeft)&&(t.Views[n].RTL=!0)}))}var wh=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,n=/r=["']([^"']*)["']/,r=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,o=$t("v"),a=$t("f");return function(s,l,c,u,h,d){for(var f,p,m,g,v,b=0,y="",w=[],x=[],k=0,A=0,C=0,E="",S=0,T=0,N=0,M=0,L=Array.isArray(d.CellXf),O=[],D=[],P=Array.isArray(l),I=[],R={},F=!1,z=!!c.sheetStubs,B=s.split(t),_=0,j=B.length;_!=j;++_){y=B[_].trim();var H=y.length;if(0!==H){var U=0;e:for(b=0;b":if("/"!=y[b-1]){++b;break e}if(c&&c.cellStyles){if(p=zt(y.slice(U,b),!0),S=null!=p.r?parseInt(p.r,10):S+1,T=-1,c.sheetRows&&c.sheetRows=b)break;if(p=zt(y.slice(U,b),!0),S=null!=p.r?parseInt(p.r,10):S+1,T=-1,!(c.sheetRows&&c.sheetRowsS-1&&(u.s.r=S-1),u.e.r":"")+y,null!=x&&2===x.length){for(k=0,E=x[1],A=0;A!=E.length;++A){if((C=E.charCodeAt(A)-64)<1||C>26)break;k=26*k+C}--k,T=k}else++T;for(A=0;A!=y.length;++A)if(62===y.charCodeAt(A))break;if(++A,p=zt(y.slice(0,A),!0),p.r||(p.r=pr({r:S-1,c:T})),E=y.slice(A),f={t:""},null!=(x=E.match(o))&&""!==x[1]&&(f.v=Ht(x[1])),c.cellFormula){if(null!=(x=E.match(a))&&""!==x[1]){if(f.f=Ht(Jt(x[1])).replace(/\r\n/g,"\n"),c.xlfn||(f.f=ic(f.f)),x[0].indexOf('t="array"')>-1)f.F=(E.match(i)||[])[1],f.F.indexOf(":")>-1&&O.push([vr(f.F),f.F]);else if(x[0].indexOf('t="shared"')>-1){g=zt(x[0]);var G=Ht(Jt(x[1]));c.xlfn||(G=ic(G)),D[parseInt(g.si,10)]=[g,G,p.r]}}else(x=E.match(/]*\/>/))&&(g=zt(x[0]),D[g.si]&&(f.f=nc(D[g.si][1],D[g.si][2],p.r)));var W=fr(p.r);for(A=0;A=O[A][0].s.r&&W.r<=O[A][0].e.r&&W.c>=O[A][0].s.c&&W.c<=O[A][0].e.c&&(f.F=O[A][1])}if(null==p.t&&void 0===f.v)if(f.f||f.F)f.v=0,f.t="n";else{if(!z)continue;f.t="z"}else f.t=p.t||"n";switch(u.s.c>T&&(u.s.c=T),u.e.c0&&(l["!rows"]=I)}}();function xh(e,t){var n={},r=e.l+t;n.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=r,7&o&&(n.level=7&o),16&o&&(n.hidden=!0),32&o&&(n.hpt=i/20),n}var kh=Fr;function Ah(){}function Ch(e,t){var n={},r=e[e.l];return++e.l,n.above=!(64&r),n.left=!(128&r),e.l+=18,n.name=Lr(e,t-19),n}function Eh(e){var t=Nr(e);return[t]}function Sh(e){var t=Mr(e);return[t]}function Th(e){var t=Nr(e),n=e.read_shift(1);return[t,n,"b"]}function Nh(e){var t=Mr(e),n=e.read_shift(1);return[t,n,"b"]}function Mh(e){var t=Nr(e),n=e.read_shift(1);return[t,n,"e"]}function Lh(e){var t=Mr(e),n=e.read_shift(1);return[t,n,"e"]}function Oh(e){var t=Nr(e),n=e.read_shift(4);return[t,n,"s"]}function Dh(e){var t=Mr(e),n=e.read_shift(4);return[t,n,"s"]}function Ph(e){var t=Nr(e),n=zr(e);return[t,n,"n"]}function Ih(e){var t=Mr(e),n=zr(e);return[t,n,"n"]}function Rh(e){var t=Nr(e),n=Ir(e);return[t,n,"n"]}function Fh(e){var t=Mr(e),n=Ir(e);return[t,n,"n"]}function zh(e){var t=Nr(e),n=Sr(e);return[t,n,"is"]}function Bh(e){var t=Nr(e),n=Cr(e);return[t,n,"str"]}function _h(e){var t=Mr(e),n=Cr(e);return[t,n,"str"]}function jh(e,t,n){var r=e.l+t,i=Nr(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"b"];if(n.cellFormula){e.l+=2;var s=Uu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}function Hh(e,t,n){var r=e.l+t,i=Nr(e);i.r=n["!row"];var o=e.read_shift(1),a=[i,o,"e"];if(n.cellFormula){e.l+=2;var s=Uu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}function Uh(e,t,n){var r=e.l+t,i=Nr(e);i.r=n["!row"];var o=zr(e),a=[i,o,"n"];if(n.cellFormula){e.l+=2;var s=Uu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}function qh(e,t,n){var r=e.l+t,i=Nr(e);i.r=n["!row"];var o=Cr(e),a=[i,o,"str"];if(n.cellFormula){e.l+=2;var s=Uu(e,r-e.l,n);a[3]=Pu(s,null,i,n.supbooks,n)}else e.l=r;return a}var Gh=Fr;function Wh(e,t){var n=e.l+t,r=Fr(e,16),i=Or(e),o=Cr(e),a=Cr(e),s=Cr(e);e.l=n;var l={rfx:r,relId:i,loc:o,display:s};return a&&(l.Tooltip=a),l}function Vh(){}function Yh(e,t,n){var r=e.l+t,i=Rr(e,16),o=e.read_shift(1),a=[i];if(a[2]=o,n.cellFormula){var s=Hu(e,r-e.l,n);a[1]=s}else e.l=r;return a}function Zh(e,t,n){var r=e.l+t,i=Fr(e,16),o=[i];if(n.cellFormula){var a=Gu(e,r-e.l,n);o[1]=a,e.l=r}else e.l=r;return o}var Kh=["left","right","top","bottom","header","footer"];function Xh(e){var t={};return Kh.forEach((function(n){t[n]=zr(e,8)})),t}function Jh(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}function Qh(){}function $h(){}function ed(e,t,n,r,i,o,a){if(!e)return e;var s=t||{};r||(r={"!id":{}}),null!=w&&null==s.dense&&(s.dense=w);var l,c,u,h,d,f,p,m,g,v,b=s.dense?[]:{},y={s:{r:2e6,c:2e6},e:{r:0,c:0}},x=[],k=!1,A=!1,C=[];s.biff=12,s["!row"]=0;var E=0,S=!1,T=[],N={},M=s.supbooks||i.supbooks||[[]];if(M.sharedf=N,M.arrayf=T,M.SheetNames=i.SheetNames||i.Sheets.map((function(e){return e.name})),!s.supbooks&&(s.supbooks=M,i.Names))for(var L=0;L=L[0].s.r&&c.r<=L[0].e.r&&f>=L[0].s.c&&f<=L[0].e.c&&(u.F=gr(L[0]),S=!0)}!S&&e.length>3&&(u.f=e[3])}if(y.s.r>c.r&&(y.s.r=c.r),y.s.c>f&&(y.s.c=f),y.e.rc.r&&(y.s.r=c.r),y.s.c>f&&(y.s.c=f),y.e.r=e.s)P[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},R||(R=!0,Us(e.w/256)),qs(P[e.e+1]);break;case 161:b["!autofilter"]={ref:gr(e)};break;case 476:b["!margins"]=e;break;case 147:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name),(e.above||e.left)&&(b["!outline"]={above:e.above,left:e.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),e.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:k=!0;break;case 36:k=!1;break;case 37:x.push(w),k=!0;break;case 38:x.pop(),k=!1;break;default:if(t.T);else if(!k||s.WTF)throw new Error("Unexpected record 0x"+w.toString(16))}}),s),delete s.supbooks,delete s["!row"],!b["!ref"]&&(y.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0))&&(b["!ref"]=gr(l||y)),s.sheetRows&&b["!ref"]){var F=vr(b["!ref"]);s.sheetRows<=+F.e.r&&(F.e.r=s.sheetRows-1,F.e.r>y.e.r&&(F.e.r=y.e.r),F.e.ry.e.c&&(F.e.c=y.e.c),F.e.c0&&(b["!merges"]=C),P.length>0&&(b["!cols"]=P),I.length>0&&(b["!rows"]=I),b}function td(e){var t,n=[],r=e.match(/^/);(e.match(/(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/(.*)<\/c:v><\/c:pt>/);t&&(n[+t[1]]=r?+t[2]:t[2])}));var i=Ht((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[n,i,t]}function nd(e,t,n,r,i,o){var a=o||{"!type":"chart"};if(!e)return o;var s=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=td(e);u.s.r=u.s.c=0,u.e.c=s,c=cr(s),t[0].forEach((function(e,n){a[c+or(n)]={t:"n",v:e,z:t[1]},l=n})),u.e.r0&&(a["!ref"]=gr(u)),a}function rd(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o,a={"!type":"chart","!drawel":null,"!rel":""},s=e.match(lh);return s&&dh(s[0],a,i,n),(o=e.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=o[1]),r["!id"][a["!rel"]]&&(a["!drawel"]=r["!id"][a["!rel"]]),a}function id(e,t){e.l+=10;var n=Cr(e,t-10);return{name:n}}function od(e,t,n,r,i){if(!e)return e;r||(r={"!id":{}});var o={"!type":"chart","!drawel":null,"!rel":""},a=[],s=!1;return Qn(e,(function(e,r,l){switch(l){case 550:o["!rel"]=e;break;case 651:i.Sheets[n]||(i.Sheets[n]={}),e.name&&(i.Sheets[n].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(l);break;case 38:a.pop();break;default:if(r.T>0)a.push(l);else if(r.T<0)a.pop();else if(!s||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}),t),r["!id"][o["!rel"]]&&(o["!drawel"]=r["!id"][o["!rel"]]),o}var ad=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],sd=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],ld=[],cd=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function ud(e,t){for(var n=0;n!=e.length;++n)for(var r=e[n],i=0;i!=t.length;++i){var o=t[i];if(null==r[o[0]])r[o[0]]=o[1];else switch(o[2]){case"bool":"string"==typeof r[o[0]]&&(r[o[0]]=Vt(r[o[0]]));break;case"int":"string"==typeof r[o[0]]&&(r[o[0]]=parseInt(r[o[0]],10));break}}}function hd(e,t){for(var n=0;n!=t.length;++n){var r=t[n];if(null==e[r[0]])e[r[0]]=r[1];else switch(r[2]){case"bool":"string"==typeof e[r[0]]&&(e[r[0]]=Vt(e[r[0]]));break;case"int":"string"==typeof e[r[0]]&&(e[r[0]]=parseInt(e[r[0]],10));break}}}function dd(e){hd(e.WBProps,ad),hd(e.CalcPr,cd),ud(e.WBView,sd),ud(e.Sheets,ld),Ju.date1904=Vt(e.WBProps.date1904)}var fd="][*?/\\".split("");function pd(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return fd.forEach((function(r){if(-1!=e.indexOf(r)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}var md=/<\w+:workbook/;function gd(e,t){if(!e)throw new Error("Could not find file");var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},r=!1,i="xmlns",o={},a=0;if(e.replace(It,(function(s,l){var c=zt(s);switch(Bt(c[0])){case"":break;case"":case"":break;case"":break;case"":ad.forEach((function(e){if(null!=c[e[0]])switch(e[2]){case"bool":n.WBProps[e[0]]=Vt(c[e[0]]);break;case"int":n.WBProps[e[0]]=parseInt(c[e[0]],10);break;default:n.WBProps[e[0]]=c[e[0]]}})),c.codeName&&(n.WBProps.CodeName=Jt(c.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete c[0],n.WBView.push(c);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":r=!1;break;case"":o.Ref=Ht(Jt(e.slice(a,l))),n.Names.push(o);break;case"":break;case"":delete c[0],n.CalcPr=c;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":r=!1;break;case"":r=!0;break;case"":r=!1;break;case"8?Cr(e):"";return i.length>0&&(n.CodeName=i),n.autoCompressPictures=!!(65536&r),n.backupFile=!!(64&r),n.checkCompatibility=!!(4096&r),n.date1904=!!(1&r),n.filterPrivacy=!!(8&r),n.hidePivotFieldList=!!(1024&r),n.promptedSolutions=!!(16&r),n.publishItems=!!(2048&r),n.refreshAllConnections=!!(262144&r),n.saveExternalLinkValues=!!(128&r),n.showBorderUnselectedTables=!!(4&r),n.showInkAnnotation=!!(32&r),n.showObjects=["all","placeholders","none"][r>>13&3],n.showPivotChartFilter=!!(32768&r),n.updateLinks=["userSet","never","always"][r>>8&3],n}function yd(e,t){var n={};return e.read_shift(4),n.ArchID=e.read_shift(4),e.l+=t-8,n}function wd(e,t,n){var r=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),o=Dr(e),a=qu(e,0,n),s=Or(e);e.l=r;var l={Name:o,Ptg:a};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function xd(e,t){var n={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},r=[],i=!1;t||(t={}),t.biff=12;var o=[],a=[[]];return a.SheetNames=[],a.XTI=[],nf[16]={n:"BrtFRTArchID$",f:yd},Qn(e,(function(e,s,l){switch(l){case 156:a.SheetNames.push(e.name),n.Sheets.push(e);break;case 153:n.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Pu(e.Ptg,null,null,a,t),delete t.SID,delete e.Ptg,o.push(e);break;case 1036:break;case 357:case 358:case 355:case 667:a[0].length?a.push([l,e]):a[0]=[l,e],a[a.length-1].XTI=[];break;case 362:0===a.length&&(a[0]=[],a[0].XTI=[]),a[a.length-1].XTI=a[a.length-1].XTI.concat(e),a.XTI=a.XTI.concat(e);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:r.push(l),i=!0;break;case 36:r.pop(),i=!1;break;case 37:r.push(l),i=!0;break;case 38:r.pop(),i=!1;break;case 16:break;default:if(s.T);else if(!i||t.WTF&&37!=r[r.length-1]&&35!=r[r.length-1])throw new Error("Unexpected record 0x"+l.toString(16))}}),t),dd(n),n.Names=o,n.supbooks=a,n}function kd(e,t,n){return".bin"===t.slice(-4)?xd(e,n):gd(e,n)}function Ad(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?ed(e,r,n,i,o,a,s):hh(e,r,n,i,o,a,s)}function Cd(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?od(e,r,n,i,o,a,s):rd(e,r,n,i,o,a,s)}function Ed(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?Xl(e,r,n,i,o,a,s):Jl(e,r,n,i,o,a,s)}function Sd(e,t,n,r,i,o,a,s){return".bin"===t.slice(-4)?Zl(e,r,n,i,o,a,s):Kl(e,r,n,i,o,a,s)}function Td(e,t,n,r){return".bin"===t.slice(-4)?ll(e,n,r):nl(e,n,r)}function Nd(e,t,n){return bl(e,n)}function Md(e,t,n){return".bin"===t.slice(-4)?is(e,n):ns(e,n)}function Ld(e,t,n){return".bin"===t.slice(-4)?Wl(e,n):jl(e,n)}function Od(e,t,n){return".bin"===t.slice(-4)?Rl(e,t,n):Pl(e,t,n)}function Dd(e,t,n,r){return".bin"===n.slice(-4)?zl(e,t,n,r):Fl(e,t,n,r)}function Pd(e,t,n){return".bin"===t.slice(-4)?Ol(e,t,n):Dl(e,t,n)}var Id,Rd=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,Fd=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function zd(e,t){var n=e.split(/\s+/),r=[];if(t||(r[0]=n[0]),1===n.length)return r;var i,o,a,s,l=e.match(Rd);if(l)for(s=0;s!=l.length;++s)i=l[s].match(Fd),-1===(o=i[1].indexOf(":"))?r[i[1]]=i[2].slice(1,i[2].length-1):(a="xmlns:"===i[1].slice(0,6)?"xmlns"+i[1].slice(6):i[1].slice(o+1),r[a]=i[2].slice(1,i[2].length-1));return r}function Bd(e){var t=e.split(/\s+/),n={};if(1===t.length)return n;var r,i,o,a,s=e.match(Rd);if(s)for(a=0;a!=s.length;++a)r=s[a].match(Fd),-1===(i=r[1].indexOf(":"))?n[r[1]]=r[2].slice(1,r[2].length-1):(o="xmlns:"===r[1].slice(0,6)?"xmlns"+r[1].slice(6):r[1].slice(i+1),n[o]=r[2].slice(1,r[2].length-1));return n}function _d(e,t){var n=Id[e]||Ht(e);return"General"===n?ce(t):He(n,t)}function jd(e,t,n,r){var i=r;switch((n[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Vt(r);break;case"i2":case"int":i=parseInt(r,10);break;case"r4":case"float":i=parseFloat(r);break;case"date":case"dateTime.tz":i=ut(r);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+n[0])}e[Ht(t)]=i}function Hd(e,t,n){if("z"!==e.t){if(!n||!1!==n.cellText)try{"e"===e.t?e.w=e.w||ci[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=le(e.v):e.w=ce(e.v):e.w=_d(t||"General",e.v)}catch(o){if(n.WTF)throw o}try{var r=Id[t]||t||"General";if(n.cellNF&&(e.z=r),n.cellDates&&"n"==e.t&&Fe(r)){var i=Q(e.v);i&&(e.t="d",e.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(o){if(n.WTF)throw o}}}function Ud(e,t,n){if(n.cellStyles&&t.Interior){var r=t.Interior;r.Pattern&&(r.patternType=Zs[r.Pattern]||r.Pattern)}e[t.ID]=t}function qd(e,t,n,r,i,o,a,s,l,c){var u="General",h=r.StyleID,d={};c=c||{};var f=[],p=0;void 0===h&&s&&(h=s.StyleID),void 0===h&&a&&(h=a.StyleID);while(void 0!==o[h]){if(o[h].nf&&(u=o[h].nf),o[h].Interior&&f.push(o[h].Interior),!o[h].Parent)break;h=o[h].Parent}switch(n.Type){case"Boolean":r.t="b",r.v=Vt(e);break;case"String":r.t="s",r.r=Wt(Ht(e)),r.v=e.indexOf("<")>-1?Ht(t||e).replace(/<.*?>/g,""):r.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),r.v=(ut(e)-new Date(Date.UTC(1899,11,30)))/864e5,r.v!==r.v?r.v=Ht(e):r.v<60&&(r.v=r.v-1),u&&"General"!=u||(u="yyyy-mm-dd");case"Number":void 0===r.v&&(r.v=+e),r.t||(r.t="n");break;case"Error":r.t="e",r.v=ui[e],!1!==c.cellText&&(r.w=e);break;default:""==e&&""==t?r.t="z":(r.t="s",r.v=Wt(t||e));break}if(Hd(r,u,c),!1!==c.cellFormula)if(r.Formula){var m=Ht(r.Formula);61==m.charCodeAt(0)&&(m=m.slice(1)),r.f=Ql(m,i),delete r.Formula,"RC"==r.ArrayRange?r.F=Ql("RC:RC",i):r.ArrayRange&&(r.F=Ql(r.ArrayRange,i),l.push([vr(r.F),r.F]))}else for(p=0;p=l[p][0].s.r&&i.r<=l[p][0].e.r&&i.c>=l[p][0].s.c&&i.c<=l[p][0].e.c&&(r.F=l[p][1]);c.cellStyles&&(f.forEach((function(e){!d.patternType&&e.patternType&&(d.patternType=e.patternType)})),r.s=d),void 0!==r.StyleID&&(r.ixfe=r.StyleID)}function Gd(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function Wd(e,t){var n=t||{};qe();var r=v(cn(e));"binary"!=n.type&&"array"!=n.type&&"base64"!=n.type||(r="undefined"!==typeof g?g.utils.decode(65001,f(r)):Jt(r));var i,o=r.slice(0,1024).toLowerCase(),a=!1;if(o=o.replace(/".*?"/g,""),(1023&o.indexOf(">"))>Math.min(1023&o.indexOf(","),1023&o.indexOf(";"))){var s=dt(n);return s.type="string",qa.to_workbook(r,s)}if(-1==o.indexOf("=0&&(a=!0)})),a)return uf(r,n);Id={"General Number":"General","General Date":Z[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Z[15],"Short Date":Z[14],"Long Time":Z[19],"Medium Time":Z[18],"Short Time":Z[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Z[2],Standard:Z[4],Percent:Z[10],Scientific:Z[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l,c=[];null!=w&&null==n.dense&&(n.dense=w);var u,h={},d=[],p=n.dense?[]:{},m="",b={},y={},x=zd(''),k=0,A=0,C=0,E={s:{r:2e6,c:2e6},e:{r:0,c:0}},S={},T={},N="",M=0,L=[],O={},D={},P=0,I=[],R=[],F={},z=[],B=!1,_=[],j=[],H={},U=0,q=0,G={Sheets:[],WBProps:{date1904:!1}},W={};un.lastIndex=0,r=r.replace(//gm,"");var V="";while(i=un.exec(r))switch(i[3]=(V=i[3]).toLowerCase()){case"data":if("data"==V){if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break}if(c[c.length-1][1])break;"/"===i[1]?qd(r.slice(k,i.index),N,x,"comment"==c[c.length-1][0]?F:b,{c:A,r:C},S,z[A],y,_,n):(N="",x=zd(i[0]),k=i.index+i[0].length);break;case"cell":if("/"===i[1])if(R.length>0&&(b.c=R),(!n.sheetRows||n.sheetRows>C)&&void 0!==b.v&&(n.dense?(p[C]||(p[C]=[]),p[C][A]=b):p[cr(A)+or(C)]=b),b.HRef&&(b.l={Target:Ht(b.HRef)},b.HRefScreenTip&&(b.l.Tooltip=b.HRefScreenTip),delete b.HRef,delete b.HRefScreenTip),(b.MergeAcross||b.MergeDown)&&(U=A+(0|parseInt(b.MergeAcross,10)),q=C+(0|parseInt(b.MergeDown,10)),L.push({s:{c:A,r:C},e:{c:U,r:q}})),n.sheetStubs)if(b.MergeAcross||b.MergeDown){for(var Y=A;Y<=U;++Y)for(var K=C;K<=q;++K)(Y>A||K>C)&&(n.dense?(p[K]||(p[K]=[]),p[K][Y]={t:"z"}):p[cr(Y)+or(K)]={t:"z"});A=U+1}else++A;else b.MergeAcross?A=U+1:++A;else b=Bd(i[0]),b.Index&&(A=+b.Index-1),AE.e.c&&(E.e.c=A),"/>"===i[0].slice(-2)&&++A,R=[];break;case"row":"/"===i[1]||"/>"===i[0].slice(-2)?(CE.e.r&&(E.e.r=C),"/>"===i[0].slice(-2)&&(y=zd(i[0]),y.Index&&(C=+y.Index-1)),A=0,++C):(y=zd(i[0]),y.Index&&(C=+y.Index-1),H={},("0"==y.AutoFitHeight||y.Height)&&(H.hpx=parseInt(y.Height,10),H.hpt=Vs(H.hpx),j[C]=H),"1"==y.Hidden&&(H.hidden=!0,j[C]=H));break;case"worksheet":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));d.push(m),E.s.r<=E.e.r&&E.s.c<=E.e.c&&(p["!ref"]=gr(E),n.sheetRows&&n.sheetRows<=E.e.r&&(p["!fullref"]=p["!ref"],E.e.r=n.sheetRows-1,p["!ref"]=gr(E))),L.length&&(p["!merges"]=L),z.length>0&&(p["!cols"]=z),j.length>0&&(p["!rows"]=j),h[m]=p}else E={s:{r:2e6,c:2e6},e:{r:0,c:0}},C=A=0,c.push([i[3],!1]),l=zd(i[0]),m=Ht(l.Name),p=n.dense?[]:{},L=[],_=[],j=[],W={name:m,Hidden:0},G.Sheets.push(W);break;case"table":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else{if("/>"==i[0].slice(-2))break;c.push([i[3],!1]),z=[],B=!1}break;case"style":"/"===i[1]?Ud(S,T,n):T=zd(i[0]);break;case"numberformat":T.nf=Ht(zd(i[0]).Format||"General"),Id[T.nf]&&(T.nf=Id[T.nf]);for(var X=0;392!=X;++X)if(Z[X]==T.nf)break;if(392==X)for(X=57;392!=X;++X)if(null==Z[X]){Ue(T.nf,X);break}break;case"column":if("table"!==c[c.length-1][0])break;if(u=zd(i[0]),u.Hidden&&(u.hidden=!0,delete u.Hidden),u.Width&&(u.wpx=parseInt(u.Width,10)),!B&&u.wpx>10){B=!0,zs=Is;for(var J=0;J0&&(ee.Sheet=G.Sheets.length-1),G.Names.push(ee);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if("/>"===i[0].slice(-2))break;"/"===i[1]?N+=r.slice(M,i.index):M=i.index+i[0].length;break;case"interior":if(!n.cellStyles)break;T.Interior=zd(i[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===i[0].slice(-2))break;"/"===i[1]?Mi(O,V,r.slice(P,i.index)):P=i.index+i[0].length;break;case"paragraphs":break;case"styles":case"workbook":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else c.push([i[3],!1]);break;case"comment":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"));Gd(F),R.push(F)}else c.push([i[3],!1]),l=zd(i[0]),F={a:l.Author};break;case"autofilter":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else if("/"!==i[0].charAt(i[0].length-2)){var te=zd(i[0]);p["!autofilter"]={ref:Ql(te.Range).replace(/\$/g,"")},c.push([i[3],!0])}break;case"name":break;case"datavalidation":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===i[1]){if((l=c.pop())[0]!==i[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==i[0].charAt(i[0].length-2)&&c.push([i[3],!0]);break;case"null":break;default:if(0==c.length&&"document"==i[3])return kf(r,n);if(0==c.length&&"uof"==i[3])return kf(r,n);var ne=!0;switch(c[c.length-1][0]){case"officedocumentsettings":switch(i[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:ne=!1}break;case"componentoptions":switch(i[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:ne=!1}break;case"excelworkbook":switch(i[3]){case"date1904":G.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:ne=!1}break;case"workbookoptions":switch(i[3]){case"owcversion":break;case"height":break;case"width":break;default:ne=!1}break;case"worksheetoptions":switch(i[3]){case"visible":if("/>"===i[0].slice(-2));else if("/"===i[1])switch(r.slice(P,i.index)){case"SheetHidden":W.Hidden=1;break;case"SheetVeryHidden":W.Hidden=2;break}else P=i.index+i[0].length;break;case"header":p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+zt(i[0]).Margin)||(p["!margins"].header=+zt(i[0]).Margin);break;case"footer":p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+zt(i[0]).Margin)||(p["!margins"].footer=+zt(i[0]).Margin);break;case"pagemargins":var re=zt(i[0]);p["!margins"]||Qu(p["!margins"]={},"xlml"),isNaN(+re.Top)||(p["!margins"].top=+re.Top),isNaN(+re.Left)||(p["!margins"].left=+re.Left),isNaN(+re.Right)||(p["!margins"].right=+re.Right),isNaN(+re.Bottom)||(p["!margins"].bottom=+re.Bottom);break;case"displayrighttoleft":G.Views||(G.Views=[]),G.Views[0]||(G.Views[0]={}),G.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:ne=!1}break;case"pivottable":case"pivotcache":switch(i[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:ne=!1}break;case"pagebreaks":switch(i[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:ne=!1}break;case"autofilter":switch(i[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:ne=!1}break;case"querytable":switch(i[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:ne=!1}break;case"datavalidation":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:ne=!1}break;case"sorting":case"conditionalformatting":switch(i[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:ne=!1}break;case"mapinfo":case"schema":case"data":switch(i[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:ne=!1}break;case"smarttags":break;default:ne=!1;break}if(ne)break;if(i[3].match(/!\[CDATA/))break;if(!c[c.length-1][1])throw"Unrecognized tag: "+i[3]+"|"+c.join("|");if("customdocumentproperties"===c[c.length-1][0]){if("/>"===i[0].slice(-2))break;"/"===i[1]?jd(D,V,I,r.slice(P,i.index)):(I=i,P=i.index+i[0].length);break}if(n.WTF)throw"Unrecognized tag: "+i[3]+"|"+c.join("|")}var ie={};return n.bookSheets||n.bookProps||(ie.Sheets=h),ie.SheetNames=d,ie.Workbook=G,ie.SSF=dt(Z),ie.Props=O,ie.Custprops=D,ie}function Vd(e,t){switch(Zf(t=t||{}),t.type||"base64"){case"base64":return Wd(C(e),t);case"binary":case"buffer":case"file":return Wd(e,t);case"array":return Wd(L(e),t)}}function Yd(e){var t={},n=e.content;if(n.l=28,t.AnsiUserType=n.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=Hr(n),n.length-n.l<=4)return t;var r=n.read_shift(4);return 0==r||r>40?t:(n.l-=4,t.Reserved1=n.read_shift(0,"lpstr-ansi"),n.length-n.l<=4?t:(r=n.read_shift(4),1907505652!==r?t:(t.UnicodeClipboardFormat=Ur(n),r=n.read_shift(4),0==r||r>40?t:(n.l-=4,void(t.Reserved2=n.read_shift(0,"lpwstr"))))))}var Zd=[60,1084,2066,2165,2175];function Kd(e,t,n,r,i){var o=r,a=[],s=n.slice(n.l,n.l+o);if(i&&i.enc&&i.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(s)}a.push(s),n.l+=o;var l=Bn(n,n.l),c=rf[l],u=0;while(null!=c&&Zd.indexOf(l)>-1)o=Bn(n,n.l+2),u=n.l+4,2066==l?u+=4:2165!=l&&2175!=l||(u+=12),s=n.slice(u,n.l+4+o),a.push(s),n.l+=4+o,c=rf[l=Bn(n,n.l)];var h=D(a);Kn(h,0);var d=0;h.lens=[];for(var f=0;f1)&&!(n.sheetRows&&e.r>=n.sheetRows)){if(n.cellStyles&&t.XF&&t.XF.data&&M(e,t,n),delete t.ixfe,delete t.XF,i=e,x=pr(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.rm.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),n.cellFormula&&t.f)for(var r=0;re.c||A[r][0].s.r>e.r)&&!(A[r][0].e.c>8)!==V)throw new Error("rt mismatch: "+X+"!="+V);12==K.r&&(e.l+=10,Y-=10)}var J={};if(J=10===V?K.f(e,Y,O):Kd(V,K,e,Y,O),0==j&&-1===[9,521,1033,2057].indexOf(_))continue;switch(V){case 34:n.opts.Date1904=S.WBProps.date1904=J;break;case 134:n.opts.WriteProtect=!0;break;case 47:if(O.enc||(e.l=0),O.enc=J,!t.password)throw new Error("File is password-protected");if(null==J.valid)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:O.lastuser=J;break;case 66:var Q=Number(J);switch(Q){case 21010:Q=1200;break;case 32768:Q=1e4;break;case 32769:Q=1252;break}h(O.codepage=Q),G=!0;break;case 317:O.rrtabid=J;break;case 25:O.winlocked=J;break;case 439:n.opts["RefreshAll"]=J;break;case 12:n.opts["CalcCount"]=J;break;case 16:n.opts["CalcDelta"]=J;break;case 17:n.opts["CalcIter"]=J;break;case 13:n.opts["CalcMode"]=J;break;case 14:n.opts["CalcPrecision"]=J;break;case 95:n.opts["CalcSaveRecalc"]=J;break;case 15:O.CalcRefMode=J;break;case 2211:n.opts.FullCalc=J;break;case 129:J.fDialog&&(f["!type"]="dialog"),J.fBelow||((f["!outline"]||(f["!outline"]={})).above=!0),J.fRight||((f["!outline"]||(f["!outline"]={})).left=!0);break;case 224:C.push(J);break;case 430:z.push([J]),z[z.length-1].XTI=[];break;case 35:case 547:z[z.length-1].push(J);break;case 24:case 536:B={Name:J.Name,Ref:Pu(J.rgce,m,null,z,O)},J.itab>0&&(B.Sheet=J.itab-1),z.names.push(B),z[0]||(z[0]=[],z[0].XTI=[]),z[z.length-1].push(J),"_xlnm._FilterDatabase"==J.Name&&J.itab>0&&J.rgce&&J.rgce[0]&&J.rgce[0][0]&&"PtgArea3d"==J.rgce[0][0][0]&&(q[J.itab-1]={ref:gr(J.rgce[0][0][1][2])});break;case 22:O.ExternCount=J;break;case 23:0==z.length&&(z[0]=[],z[0].XTI=[]),z[z.length-1].XTI=z[z.length-1].XTI.concat(J),z.XTI=z.XTI.concat(J);break;case 2196:if(O.biff<8)break;null!=B&&(B.Comment=J[1]);break;case 18:f["!protect"]=J;break;case 19:0!==J&&O.WTF&&console.error("Password verifier: "+J);break;case 133:p[J.pos]=J,O.snames.push(J.name);break;case 10:if(--j)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,f["!ref"]=gr(m),t.sheetRows&&t.sheetRows<=m.e.r){var $=m.e.r;m.e.r=t.sheetRows-1,f["!fullref"]=f["!ref"],f["!ref"]=gr(m),m.e.r=$}m.e.r++,m.e.c++}D.length>0&&(f["!merges"]=D),P.length>0&&(f["!objects"]=P),I.length>0&&(f["!cols"]=I),R.length>0&&(f["!rows"]=R),S.Sheets.push(T)}""===b?y=f:r[b]=f,f=t.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(8===O.biff&&(O.biff={9:2,521:3,1033:4}[V]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8),O.biffguess=0==J.BIFFVer,0==J.BIFFVer&&4096==J.dt&&(O.biff=5,G=!0,h(O.codepage=28591)),8==O.biff&&0==J.BIFFVer&&16==J.dt&&(O.biff=2),j++)break;if(f=t.dense?[]:{},O.biff<8&&!G&&(G=!0,h(O.codepage=t.codepage||1252)),O.biff<5||0==J.BIFFVer&&4096==J.dt){""===b&&(b="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var ee={pos:e.l-Y,name:b};p[ee.pos]=ee,O.snames.push(b)}else b=(p[W]||{name:""}).name;32==J.dt&&(f["!type"]="chart"),64==J.dt&&(f["!type"]="macro"),D=[],P=[],O.arrayf=A=[],I=[],R=[],F=!1,T={Hidden:(p[W]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:"chart"==f["!type"]&&(t.dense?(f[J.r]||[])[J.c]:f[pr({c:J.c,r:J.r})])&&++J.c,c={ixfe:J.ixfe,XF:C[J.ixfe]||{},v:J.val,t:"n"},H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L({c:J.c,r:J.r},c,t);break;case 5:case 517:c={ixfe:J.ixfe,XF:C[J.ixfe],v:J.val,t:J.t},H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L({c:J.c,r:J.r},c,t);break;case 638:c={ixfe:J.ixfe,XF:C[J.ixfe],v:J.rknum,t:"n"},H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L({c:J.c,r:J.r},c,t);break;case 189:for(var te=J.c;te<=J.C;++te){var ne=J.rkrec[te-J.c][0];c={ixfe:ne,XF:C[ne],v:J.rkrec[te-J.c][1],t:"n"},H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L({c:te,r:J.r},c,t)}break;case 6:case 518:case 1030:if("String"==J.val){g=J;break}if(c=Jd(J.val,J.cell.ixfe,J.tt),c.XF=C[c.ixfe],t.cellFormula){var re=J.formula;if(re&&re[0]&&re[0][0]&&"PtgExp"==re[0][0][0]){var ie=re[0][0][1][0],oe=re[0][0][1][1],ae=pr({r:ie,c:oe});k[ae]?c.f=""+Pu(J.formula,m,J.cell,z,O):c.F=((t.dense?(f[ie]||[])[oe]:f[ae])||{}).F}else c.f=""+Pu(J.formula,m,J.cell,z,O)}H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L(J.cell,c,t),g=J;break;case 7:case 519:if(!g)throw new Error("String record expects Formula");g.val=J,c=Jd(J,g.cell.ixfe,"s"),c.XF=C[c.ixfe],t.cellFormula&&(c.f=""+Pu(g.formula,m,g.cell,z,O)),H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L(g.cell,c,t),g=null;break;case 33:case 545:A.push(J);var se=pr(J[0].s);if(o=t.dense?(f[J[0].s.r]||[])[J[0].s.c]:f[se],t.cellFormula&&o){if(!g)break;if(!se||!o)break;o.f=""+Pu(J[1],m,J[0],z,O),o.F=gr(J[0])}break;case 1212:if(!t.cellFormula)break;if(x){if(!g)break;k[pr(g.cell)]=J[0],o=t.dense?(f[g.cell.r]||[])[g.cell.c]:f[pr(g.cell)],(o||{}).f=""+Pu(J[0],m,i,z,O)}break;case 253:c=Jd(v[J.isst].t,J.ixfe,"s"),v[J.isst].h&&(c.h=v[J.isst].h),c.XF=C[c.ixfe],H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L({c:J.c,r:J.r},c,t);break;case 513:t.sheetStubs&&(c={ixfe:J.ixfe,XF:C[J.ixfe],t:"z"},H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L({c:J.c,r:J.r},c,t));break;case 190:if(t.sheetStubs)for(var le=J.c;le<=J.C;++le){var ce=J.ixfe[le-J.c];c={ixfe:ce,XF:C[ce],t:"z"},H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L({c:le,r:J.r},c,t)}break;case 214:case 516:case 4:c=Jd(J.val,J.ixfe,"s"),c.XF=C[c.ixfe],H>0&&(c.z=U[c.ixfe>>8&63]),Xd(c,t,n.opts.Date1904),L({c:J.c,r:J.r},c,t);break;case 0:case 512:1===j&&(m=J);break;case 252:v=J;break;case 1054:if(4==O.biff){U[H++]=J[1];for(var ue=0;ue=163&&Ue(J[1],H+163)}else Ue(J[1],J[0]);break;case 30:U[H++]=J;for(var he=0;he=163&&Ue(J,H+163);break;case 229:D=D.concat(J);break;case 93:P[J.cmo[0]]=O.lastobj=J;break;case 438:O.lastobj.TxO=J;break;case 127:O.lastobj.ImData=J;break;case 440:for(l=J[0].s.r;l<=J[0].e.r;++l)for(s=J[0].s.c;s<=J[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[pr({c:s,r:l})],o&&(o.l=J[1]);break;case 2048:for(l=J[0].s.r;l<=J[0].e.r;++l)for(s=J[0].s.c;s<=J[0].e.c;++s)o=t.dense?(f[l]||[])[s]:f[pr({c:s,r:l})],o&&o.l&&(o.l.Tooltip=J[1]);break;case 28:if(O.biff<=5&&O.biff>=2)break;o=t.dense?(f[J[0].r]||[])[J[0].c]:f[pr(J[0])];var de=P[J[2]];o||(t.dense?(f[J[0].r]||(f[J[0].r]=[]),o=f[J[0].r][J[0].c]={t:"z"}):o=f[pr(J[0])]={t:"z"},m.e.r=Math.max(m.e.r,J[0].r),m.s.r=Math.min(m.s.r,J[0].r),m.e.c=Math.max(m.e.c,J[0].c),m.s.c=Math.min(m.s.c,J[0].c)),o.c||(o.c=[]),a={a:J[1],t:de.TxO.t},o.c.push(a);break;case 2173:Tl(C[J.ixfe],J.ext);break;case 125:if(!O.cellStyles)break;while(J.e>=J.s)I[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(1&J.flags)},F||(F=!0,Us(J.w/256)),qs(I[J.e+1]);break;case 520:var fe={};null!=J.level&&(R[J.r]=fe,fe.level=J.level),J.hidden&&(R[J.r]=fe,fe.hidden=!0),J.hpt&&(R[J.r]=fe,fe.hpt=J.hpt,fe.hpx=Ys(J.hpt));break;case 38:case 39:case 40:case 41:f["!margins"]||Qu(f["!margins"]={}),f["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[V]]=J;break;case 161:f["!margins"]||Qu(f["!margins"]={}),f["!margins"].header=J.header,f["!margins"].footer=J.footer;break;case 574:J.RTL&&(S.Views[0].RTL=!0);break;case 146:E=J;break;case 2198:d=J;break;case 140:u=J;break;case 442:b?T.CodeName=J||T.name:S.WBProps.CodeName=J||"ThisWorkbook";break}}else K||console.error("Missing Info for XLS Record 0x"+V.toString(16)),e.l+=Y}return n.SheetNames=Qe(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(n.Sheets=r),!n.SheetNames.length&&y["!ref"]?(n.SheetNames.push("Sheet1"),n.Sheets&&(n.Sheets["Sheet1"]=y)):n.Preamble=y,n.Sheets&&q.forEach((function(e,t){n.Sheets[n.SheetNames[t]]["!autofilter"]=e})),n.Strings=v,n.SSF=dt(Z),O.enc&&(n.Encryption=O.enc),d&&(n.Themes=d),n.Metadata={},void 0!==u&&(n.Metadata.Country=u),z.names.length>0&&(S.Names=z.names),n.Workbook=S,n}var $d={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function ef(e,t,n){var r=Ke.find(e,"/!DocumentSummaryInformation");if(r&&r.size>0)try{var i=Wi(r,ni,$d.DSI);for(var o in i)t[o]=i[o]}catch(c){if(n.WTF)throw c}var a=Ke.find(e,"/!SummaryInformation");if(a&&a.size>0)try{var s=Wi(a,ri,$d.SI);for(var l in s)null==t[l]&&(t[l]=s[l])}catch(c){if(n.WTF)throw c}t.HeadingPairs&&t.TitlesOfParts&&(Ai(t.HeadingPairs,t.TitlesOfParts,t,n),delete t.HeadingPairs,delete t.TitlesOfParts)}function tf(e,t){var n,r,i,o;if(t||(t={}),Zf(t),d(),t.codepage&&c(t.codepage),e.FullPaths){if(Ke.find(e,"/encryption"))throw new Error("File is password-protected");n=Ke.find(e,"!CompObj"),r=Ke.find(e,"/Workbook")||Ke.find(e,"/Book")}else{switch(t.type){case"base64":e=M(C(e));break;case"binary":e=M(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Kn(e,0),r={content:e}}if(n&&Yd(n),t.bookProps&&!t.bookSheets)i={};else{var a=E?"buffer":"array";if(r&&r.content)i=Qd(r.content,t);else if((o=Ke.find(e,"PerfectOffice_MAIN"))&&o.content)i=Wa.to_workbook(o.content,(t.type=a,t));else{if(!(o=Ke.find(e,"NativeContent_MAIN"))||!o.content)throw(o=Ke.find(e,"MN0"))&&o.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");i=Wa.to_workbook(o.content,(t.type=a,t))}t.bookVBA&&e.FullPaths&&Ke.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=Yl(e))}var s={};return e.FullPaths&&ef(e,s,t),i.Props=i.Custprops=s,t.bookFiles&&(i.cfb=e),i}var nf={0:{f:xh},1:{f:Eh},2:{f:Rh},3:{f:Mh},4:{f:Th},5:{f:Ph},6:{f:Bh},7:{f:Oh},8:{f:qh},9:{f:Uh},10:{f:jh},11:{f:Hh},12:{f:Sh},13:{f:Fh},14:{f:Lh},15:{f:Nh},16:{f:Ih},17:{f:_h},18:{f:Dh},19:{f:Sr},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:wd},40:{},42:{},43:{f:il},44:{f:rl},45:{f:ol},46:{f:sl},47:{f:al},48:{},49:{f:Ar},50:{},51:{f:Ml},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Ea},62:{f:zh},63:{f:Il},64:{f:Qh},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Xn,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:Jh},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:Ch},148:{f:kh,p:16},151:{f:Vh},152:{},153:{f:bd},154:{},155:{},156:{f:vd},157:{},158:{},159:{T:1,f:rs},160:{T:-1},161:{T:1,f:Fr},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Gh},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Nl},336:{T:-1},337:{f:Ll,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:Pr},357:{},358:{},359:{},360:{T:1},361:{},362:{f:aa},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:Yh},427:{f:Zh},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:Xh},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:Ah},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:Wh},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:Pr},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Gl},633:{T:1},634:{T:-1},635:{T:1,f:ql},636:{T:-1},637:{f:Tr},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:id},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:$h},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},rf={6:{f:_u},10:{f:Vi},12:{f:Ki},13:{f:Ki},14:{f:Zi},15:{f:Zi},16:{f:zr},17:{f:Zi},18:{f:Zi},19:{f:Ki},20:{f:ta},21:{f:ta},23:{f:aa},24:{f:oa},25:{f:Zi},26:{},27:{},28:{f:fa},29:{},34:{f:Zi},35:{f:ra},38:{f:zr},39:{f:zr},40:{f:zr},41:{f:zr},42:{f:Zi},43:{f:Zi},47:{f:Ts},49:{f:Ho},51:{f:Ki},60:{},61:{f:Bo},64:{f:Zi},65:{f:jo},66:{f:Ki},77:{},80:{},81:{},82:{},85:{f:Ki},89:{},90:{},91:{},92:{f:Mo},93:{f:ma},94:{},95:{f:Zi},96:{},97:{},99:{f:Zi},125:{f:Ea},128:{f:Qo},129:{f:Lo},130:{f:Ki},131:{f:Zi},132:{f:Zi},133:{f:Oo},134:{},140:{f:xa},141:{f:Ki},144:{},146:{f:Aa},151:{},152:{},153:{},154:{},155:{},156:{f:Ki},157:{},158:{},160:{f:Ma},161:{f:Sa},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Zo},190:{f:Ko},193:{f:Vi},197:{},198:{},199:{},200:{},201:{},202:{f:Zi},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Ki},220:{},221:{f:Zi},222:{},224:{f:Jo},225:{f:No},226:{f:Vi},227:{},229:{f:pa},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:Do},253:{f:Uo},255:{f:Po},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Xi},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Zi},353:{f:Vi},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:na},431:{f:Zi},432:{},433:{},434:{},437:{},438:{f:ba},439:{f:Zi},440:{f:ya},441:{},442:{f:to},443:{},444:{f:Ki},445:{},446:{},448:{f:Vi},449:{f:Fo,r:2},450:{f:Vi},512:{f:Vo},513:{f:Na},515:{f:ea},516:{f:qo},517:{f:$o},519:{f:La},520:{f:Io},523:{},545:{f:ua},549:{f:zo},566:{},574:{f:_o},638:{f:Yo},659:{},1048:{},1054:{f:Go},1084:{},1212:{f:ca},2048:{f:wa},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:To},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Vi},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Ca,r:12},2173:{f:Sl,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Zi,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:la,r:12},2197:{},2198:{f:wl,r:12},2199:{},2200:{},2201:{},2202:{f:ha,r:12},2203:{f:Vi},2204:{},2205:{},2206:{},2207:{},2211:{f:Ro},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Ki},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Ta},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:ka},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Vo},1:{},2:{f:Ia},3:{f:Pa},4:{f:Da},5:{f:$o},7:{f:Ra},8:{},9:{f:To},11:{},22:{f:Ki},30:{f:Wo},31:{},32:{},33:{f:ua},36:{},37:{f:zo},50:{f:Fa},62:{},52:{},67:{},68:{f:Ki},69:{},86:{},126:{},127:{f:Oa},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:za},223:{},234:{},354:{},421:{},518:{f:_u},521:{f:To},536:{f:oa},547:{f:ra},561:{},579:{},1030:{f:_u},1033:{f:To},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function of(e,t,n,r){var i=t;if(!isNaN(i)){var o=r||(n||[]).length||0,a=e.next(4);a.write_shift(2,i),a.write_shift(2,o),o>0&&Rn(n)&&e.push(n)}}function af(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);var r=n.dense?[]:{};e=e.replace(//g,"");var i=e.match(/");var o=e.match(/<\/table/i),a=i.index,s=o&&o.index||e.length,l=vt(e.slice(a,s),/(:?]*>)/i,""),c=-1,u=0,h=0,d=0,f={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(a=0;a/i);for(s=0;s"))>-1)y=y.slice(x+1);for(var k=0;k")));d=C.colspan?+C.colspan:1,((h=+C.rowspan)>1||d>1)&&p.push({s:{r:c,c:u},e:{r:c+(h||1)-1,c:u+d-1}});var E=C.t||C["data-t"]||"";if(y.length)if(y=en(y),f.s.r>c&&(f.s.r=c),f.e.ru&&(f.s.c=u),f.e.cn||i[c].s.c>a)&&!(i[c].e.r1&&(f.rowspan=s),l>1&&(f.colspan=l),r.editable?d=''+d+"":h&&(f["data-t"]=h&&h.t||"z",null!=h.v&&(f["data-v"]=h.v),null!=h.z&&(f["data-z"]=h.z),h.l&&"#"!=(h.l.Target||"#").charAt(0)&&(d=''+d+"")),f.id=(r.id||"sjs")+"-"+u,o.push(ln("td",d,f))}}var p="";return p+o.join("")+""}var lf='SheetJS Table Export',cf="";function uf(e,t){var n=e.match(/[\s\S]*?<\/table>/gi);if(!n||0==n.length)throw new Error("Invalid HTML: could not find
");if(1==n.length)return wr(af(n[0],t),t);var r=xp();return n.forEach((function(e,n){kp(r,af(e,t),"Sheet"+(n+1))})),r}function hf(e,t,n){var r=[];return r.join("")+""}function df(e,t){var n=t||{},r=null!=n.header?n.header:lf,i=null!=n.footer?n.footer:cf,o=[r],a=mr(e["!ref"]);n.dense=Array.isArray(e),o.push(hf(e,a,n));for(var s=a.s.r;s<=a.e.r;++s)o.push(sf(e,a,s,n));return o.push("
"+i),o.join("")}function ff(e,t,n){var r=n||{};null!=w&&(r.dense=w);var i=0,o=0;if(null!=r.origin)if("number"==typeof r.origin)i=r.origin;else{var a="string"==typeof r.origin?fr(r.origin):r.origin;i=a.r,o=a.c}var s=t.getElementsByTagName("tr"),l=Math.min(r.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:o}};if(e["!ref"]){var u=mr(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),-1==i&&(c.e.r=i=u.e.r+1)}var h=[],d=0,f=e["!rows"]||(e["!rows"]=[]),p=0,m=0,g=0,v=0,b=0,y=0;for(e["!cols"]||(e["!cols"]=[]);p1||y>1)&&h.push({s:{r:m+i,c:v+o},e:{r:m+i+(b||1)-1,c:v+o+(y||1)-1}});var T={t:"s",v:C},N=A.getAttribute("data-t")||A.getAttribute("t")||"";null!=C&&(0==C.length?T.t=N||"z":r.raw||0==C.trim().length||"s"==N||("TRUE"===C?T={t:"b",v:!0}:"FALSE"===C?T={t:"b",v:!1}:isNaN(pt(C))?isNaN(gt(C).getDate())||(T={t:"d",v:ut(C)},r.cellDates||(T={t:"n",v:tt(T.v)}),T.z=r.dateNF||Z[14]):T={t:"n",v:pt(C)})),void 0===T.z&&null!=E&&(T.z=E);var M="",L=A.getElementsByTagName("A");if(L&&L.length)for(var O=0;O=l&&(e["!fullref"]=gr((c.e.r=s.length-p+m-1+i,c))),e}function pf(e,t){var n=t||{},r=n.dense?[]:{};return ff(r,e,t)}function mf(e,t){return wr(pf(e,t),t)}function gf(e){var t="",n=vf(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function vf(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}function bf(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/]*\/>/g,"\t").replace(//g,"\n"),n=Ht(t.replace(/<[^>]*>/g,""));return[n]}var yf={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function wf(e,t){var n=t||{};null!=w&&null==n.dense&&(n.dense=w);var r,i,o,a,s,l,c,u=cn(e),h=[],d={name:""},f="",p=0,m={},g=[],v=n.dense?[]:{},b={value:""},y="",x=0,k=[],A=-1,C=-1,E={s:{r:1e6,c:1e7},e:{r:0,c:0}},S=0,T={},N=[],M={},L=0,O=0,D=[],P=1,I=1,R=[],F={Names:[]},z={},B=["",""],_=[],j={},H="",U=0,q=!1,G=!1,W=0;un.lastIndex=0,u=u.replace(//gm,"").replace(//gm,"");while(s=un.exec(u))switch(s[3]=s[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===s[1]?(E.e.c>=E.s.c&&E.e.r>=E.s.r?v["!ref"]=gr(E):v["!ref"]="A1:A1",n.sheetRows>0&&n.sheetRows<=E.e.r&&(v["!fullref"]=v["!ref"],E.e.r=n.sheetRows-1,v["!ref"]=gr(E)),N.length&&(v["!merges"]=N),D.length&&(v["!rows"]=D),o.name=o["名称"]||o.name,"undefined"!==typeof JSON&&JSON.stringify(o),g.push(o.name),m[o.name]=v,G=!1):"/"!==s[0].charAt(s[0].length-2)&&(o=zt(s[0],!1),A=C=-1,E.s.r=E.s.c=1e7,E.e.r=E.e.c=0,v=n.dense?[]:{},N=[],D=[],G=!0);break;case"table-row-group":"/"===s[1]?--S:++S;break;case"table-row":case"行":if("/"===s[1]){A+=P,P=1;break}if(a=zt(s[0],!1),a["行号"]?A=a["行号"]-1:-1==A&&(A=0),P=+a["number-rows-repeated"]||1,P<10)for(W=0;W0&&(D[A+W]={level:S});C=-1;break;case"covered-table-cell":"/"!==s[1]&&++C,n.sheetStubs&&(n.dense?(v[A]||(v[A]=[]),v[A][C]={t:"z"}):v[pr({r:A,c:C})]={t:"z"}),y="",k=[];break;case"table-cell":case"数据":if("/"===s[0].charAt(s[0].length-2))++C,b=zt(s[0],!1),I=parseInt(b["number-columns-repeated"]||"1",10),l={t:"z",v:null},b.formula&&0!=n.cellFormula&&(l.f=Zu(Ht(b.formula))),"string"==(b["数据类型"]||b["value-type"])&&(l.t="s",l.v=Ht(b["string-value"]||""),n.dense?(v[A]||(v[A]=[]),v[A][C]=l):v[pr({r:A,c:C})]=l),C+=I-1;else if("/"!==s[1]){++C,y="",x=0,k=[],I=1;var V=P?A+P-1:A;if(C>E.e.c&&(E.e.c=C),CE.e.r&&(E.e.r=V),b=zt(s[0],!1),_=[],j={},l={t:b["数据类型"]||b["value-type"],v:null},n.cellFormula)if(b.formula&&(b.formula=Ht(b.formula)),b["number-matrix-columns-spanned"]&&b["number-matrix-rows-spanned"]&&(L=parseInt(b["number-matrix-rows-spanned"],10)||0,O=parseInt(b["number-matrix-columns-spanned"],10)||0,M={s:{r:A,c:C},e:{r:A+L-1,c:C+O-1}},l.F=gr(M),R.push([M,l.F])),b.formula)l.f=Zu(b.formula);else for(W=0;W=R[W][0].s.r&&A<=R[W][0].e.r&&C>=R[W][0].s.c&&C<=R[W][0].e.c&&(l.F=R[W][1]);switch((b["number-columns-spanned"]||b["number-rows-spanned"])&&(L=parseInt(b["number-rows-spanned"],10)||0,O=parseInt(b["number-columns-spanned"],10)||0,M={s:{r:A,c:C},e:{r:A+L-1,c:C+O-1}},N.push(M)),b["number-columns-repeated"]&&(I=parseInt(b["number-columns-repeated"],10)),l.t){case"boolean":l.t="b",l.v=Vt(b["boolean-value"]);break;case"float":l.t="n",l.v=parseFloat(b.value);break;case"percentage":l.t="n",l.v=parseFloat(b.value);break;case"currency":l.t="n",l.v=parseFloat(b.value);break;case"date":l.t="d",l.v=ut(b["date-value"]),n.cellDates||(l.t="n",l.v=tt(l.v)),l.z="m/d/yy";break;case"time":l.t="n",l.v=at(b["time-value"])/86400,n.cellDates&&(l.t="d",l.v=ot(l.v)),l.z="HH:MM:SS";break;case"number":l.t="n",l.v=parseFloat(b["数据数值"]);break;default:if("string"!==l.t&&"text"!==l.t&&l.t)throw new Error("Unsupported value type "+l.t);l.t="s",null!=b["string-value"]&&(y=Ht(b["string-value"]),k=[])}}else{if(q=!1,"s"===l.t&&(l.v=y||"",k.length&&(l.R=k),q=0==x),z.Target&&(l.l=z),_.length>0&&(l.c=_,_=[]),y&&!1!==n.cellText&&(l.w=y),q&&(l.t="z",delete l.v),(!q||n.sheetStubs)&&!(n.sheetRows&&n.sheetRows<=A))for(var Y=0;Y0)v[A+Y][C+I]=dt(l)}else{v[pr({r:A+Y,c:C})]=l;while(--I>0)v[pr({r:A+Y,c:C+I})]=dt(l)}E.e.c<=C&&(E.e.c=C)}I=parseInt(b["number-columns-repeated"]||"1",10),C+=I-1,I=0,l={},y="",k=[]}z={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!0]);break;case"annotation":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r;j.t=y,k.length&&(j.R=k),j.a=H,_.push(j)}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);H="",U=0,y="",x=0,k=[];break;case"creator":"/"===s[1]?H=u.slice(U,s.index):U=s.index+s[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if("/"===s[1]){if((r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&h.push([s[3],!1]);y="",x=0,k=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if("/"===s[1]){if(T[d.name]=f,(r=h.pop())[0]!==s[3])throw"Bad state: "+r}else"/"!==s[0].charAt(s[0].length-2)&&(f="",d=zt(s[0],!1),h.push([s[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(h[h.length-1][0]){case"time-style":case"date-style":i=zt(s[0],!1),f+=yf[s[3]]["long"===i.style?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(h[h.length-1][0]){case"time-style":case"date-style":i=zt(s[0],!1),f+=yf[s[3]]["long"===i.style?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if("/>"===s[0].slice(-2))break;if("/"===s[1])switch(h[h.length-1][0]){case"number-style":case"date-style":case"time-style":f+=u.slice(p,s.index);break}else p=s.index+s[0].length;break;case"named-range":i=zt(s[0],!1),B=Ku(i["cell-range-address"]);var Z={Name:i.name,Ref:B[0]+"!"+B[1]};G&&(Z.Sheet=g.length),F.Names.push(Z);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(h[h.length-1][0])>-1)break;if("/"!==s[1]||b&&b["string-value"])c=zt(s[0],!1),x=s.index+s[0].length;else{var K=bf(u.slice(x,s.index),c);y=(y.length>0?y+"\n":"")+K[0]}break;case"s":break;case"database-range":if("/"===s[1])break;try{B=Ku(zt(s[0])["target-range-address"]),m[B[0]]["!autofilter"]={ref:B[1]}}catch(J){}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if("/"!==s[1]){if(z=zt(s[0],!1),!z.href)break;z.Target=Ht(z.href),delete z.href,"#"==z.Target.charAt(0)&&z.Target.indexOf(".")>-1?(B=Ku(z.Target.slice(1)),z.Target="#"+B[0]+"!"+B[1]):z.Target.match(/^\.\.[\\\/]/)&&(z.Target=z.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(s[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(n.WTF)throw new Error(s)}}var X={Sheets:m,SheetNames:g,Workbook:F};return n.bookSheets&&delete X.Sheets,X}function xf(e,t){t=t||{},xt(e,"META-INF/manifest.xml")&&bi(At(e,"META-INF/manifest.xml"),t);var n=Ct(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var r=wf(Jt(n),t);return xt(e,"meta.xml")&&(r.Props=xi(At(e,"meta.xml"))),r}function kf(e,t){return wf(e,t)} /*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */ -function Af(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Cf(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Jt(L(e))}function Ef(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Sf(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),16843009*(e+(e>>4)&252645135)>>>24}function Tf(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],i=t+13;i>=t;--i)r=256*r+e[i];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}function Nf(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function Mf(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Lf(e){var t=[],n=[0];while(n[0]=128);a=e.slice(l,n[0]);break;case 5:s=4,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Nf(e,n),a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(r))}var c={data:a,type:o};null==t[i]?t[i]=[c]:t[i].push(c)}return t}function Of(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function Df(e){var t,n=[],r=[0];while(r[0]>>0>0),n.push(a)}return n}function Pf(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));var n=[0],r=Nf(t,n),i=[];while(n[0]>2&7),a=(224&t[n[0]++])<<3,a|=t[n[0]++]):(s=1+(t[n[0]++]>>2),2==o?(a=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(a=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[Ef(i)],0==a)throw new Error("Invalid offset 0");if(a>i[0].length)throw new Error("Invalid offset beyond length");if(s>=a){i.push(i[0].slice(-a)),s-=a;while(s>=i[i.length-1].length)i.push(i[i.length-1]),s-=i[i.length-1].length}i.push(i[0].slice(-a,-a+s))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[n[0]],c>1&&(l|=t[n[0]+1]<<8),c>2&&(l|=t[n[0]+2]<<16),c>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}i.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var u=Ef(i);if(u.length!=r)throw new Error("Unexpected length: ".concat(u.length," != ").concat(r));return u}function If(e){var t=[],n=0;while(n1?12:8)+4*Sf(a&(r>1?3470:398)),l=-1,c=-1,u=NaN,h=new Date(2001,0,1);switch(512&a&&(l=o.getUint32(s,!0),s+=4),s+=4*Sf(a&(r>1?12288:4096)),16&a&&(c=o.getUint32(s,!0),s+=4),32&a&&(u=o.getFloat64(s,!0),s+=8),64&a&&(h.setTime(h.getTime()+1e3*o.getFloat64(s,!0)),s+=8),e[2]){case 0:break;case 2:i={t:"n",v:u};break;case 3:i={t:"s",v:t[c]};break;case 5:i={t:"d",v:h};break;case 6:i={t:"b",v:u>0};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(l>-1)i={t:"s",v:n[l]};else if(c>-1)i={t:"s",v:t[c]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));i={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return i}function Ff(e,t,n){var r,i=Af(e),o=i.getUint32(8,!0),a=12,s=-1,l=-1,c=NaN,u=NaN,h=new Date(2001,0,1);switch(1&o&&(c=Tf(e,a),a+=16),2&o&&(u=i.getFloat64(a,!0),a+=8),4&o&&(h.setTime(h.getTime()+1e3*i.getFloat64(a,!0)),a+=8),8&o&&(l=i.getUint32(a,!0),a+=4),16&o&&(s=i.getUint32(a,!0),a+=4),e[1]){case 0:break;case 2:r={t:"n",v:c};break;case 3:r={t:"s",v:t[l]};break;case 5:r={t:"d",v:h};break;case 6:r={t:"b",v:u>0};break;case 7:r={t:"n",v:u/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(s>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)));r={t:"s",v:n[s]};break;case 10:r={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)))}return r}function zf(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return Rf(e,t,n,e[0]);case 5:return Ff(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Bf(e){var t=Lf(e);return Nf(t[1][0].data)}function _f(e,t){var n=Lf(t.data),r=Mf(n[1][0].data),i=n[3],o=[];return(i||[]).forEach((function(t){var n=Lf(t.data),i=Mf(n[1][0].data)>>>0;switch(r){case 1:o[i]=Cf(n[3][0].data);break;case 8:var a=e[Bf(n[9][0].data)][0],s=Lf(a.data),l=e[Bf(s[1][0].data)][0],c=Mf(l.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var u=Lf(l.data);o[i]=u[3].map((function(e){return Cf(e.data)})).join("");break}})),o}function jf(e,t){var n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,v,b=Lf(e),y=Mf(b[1][0].data)>>>0,w=Mf(b[2][0].data)>>>0,x=(null==(r=null==(n=b[8])?void 0:n[0])?void 0:r.data)&&Mf(b[8][0].data)>0||!1;if((null==(o=null==(i=b[7])?void 0:i[0])?void 0:o.data)&&0!=t)g=null==(s=null==(a=b[7])?void 0:a[0])?void 0:s.data,v=null==(c=null==(l=b[6])?void 0:l[0])?void 0:c.data;else{if(!(null==(h=null==(u=b[4])?void 0:u[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");g=null==(f=null==(d=b[4])?void 0:d[0])?void 0:f.data,v=null==(m=null==(p=b[3])?void 0:p[0])?void 0:m.data}for(var k=x?4:1,A=Af(g),C=[],E=0;E=1&&(T[C[C.length-1][0]]=v.subarray(C[C.length-1][1]*k)),{R:y,cells:T}}function Hf(e,t){var n,r=Lf(t.data),i=(null==(n=null==r?void 0:r[7])?void 0:n[0])?Mf(r[7][0].data)>>>0>0?1:0:-1,o=Of(r[5],(function(e){return jf(e,i)}));return{nrows:Mf(r[4][0].data)>>>0,data:o.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}function Uf(e,t,n){var r,i=Lf(t.data),o={s:{r:0,c:0},e:{r:0,c:0}};if(o.e.r=(Mf(i[6][0].data)>>>0)-1,o.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(o.e.c=(Mf(i[7][0].data)>>>0)-1,o.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));n["!ref"]=gr(o);var a=Lf(i[4][0].data),s=_f(e,e[Bf(a[4][0].data)][0]),l=(null==(r=a[17])?void 0:r[0])?_f(e,e[Bf(a[17][0].data)][0]):[],c=Lf(a[3][0].data),u=0;c[1].forEach((function(t){var r=Lf(t.data),i=e[Bf(r[2][0].data)][0],o=Mf(i.meta[1][0].data);if(6002!=o)throw new Error("6001 unexpected reference to ".concat(o));var a=Hf(e,i);a.data.forEach((function(e,t){e.forEach((function(e,r){var i=pr({r:u+t,c:r}),o=zf(e,s,l);o&&(n[i]=o)}))})),u+=a.nrows}))}function qf(e,t){var n=Lf(t.data),r={"!ref":"A1"},i=e[Bf(n[2][0].data)],o=Mf(i[0].meta[1][0].data);if(6001!=o)throw new Error("6000 unexpected reference to ".concat(o));return Uf(e,i[0],r),r}function Gf(e,t){var n,r=Lf(t.data),i={name:(null==(n=r[1])?void 0:n[0])?Cf(r[1][0].data):"",sheets:[]},o=Of(r[2],Bf);return o.forEach((function(t){e[t].forEach((function(t){var n=Mf(t.meta[1][0].data);6e3==n&&i.sheets.push(qf(e,t))}))})),i}function Wf(e,t){var n=xp(),r=Lf(t.data),i=Of(r[1],Bf);if(i.forEach((function(t){e[t].forEach((function(t){var r=Mf(t.meta[1][0].data);if(2==r){var i=Gf(e,t);i.sheets.forEach((function(e,t){kp(n,e,0==t?i.name:i.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}function Vf(e){var t,n,r,i,o={},a=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,n;try{t=If(e.content)}catch(r){return console.log("?? "+e.content.length+" "+(r.message||r))}try{n=Df(t)}catch(r){return console.log("## "+(r.message||r))}n.forEach((function(e){o[e.id]=e.messages,a.push(e.id)}))}})),!a.length)throw new Error("File has no messages");var s=(null==(i=null==(r=null==(n=null==(t=null==o?void 0:o[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:i[0].data)&&1==Mf(o[1][0].meta[1][0].data)&&o[1][0];if(s||a.forEach((function(e){o[e].forEach((function(e){var t=Mf(e.meta[1][0].data)>>>0;if(1==t){if(s)throw new Error("Document has multiple roots");s=e}}))})),!s)throw new Error("Cannot find Document root");return Wf(o,s)}function Yf(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}function Zf(e){Yf([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Kf(e){return pi.WS.indexOf(e)>-1?"sheet":pi.CS&&e==pi.CS?"chart":pi.DS&&e==pi.DS?"dialog":pi.MS&&e==pi.MS?"macro":e&&e.length?e:"sheet"}function Xf(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,Kf(e["!id"][t.id].Type)]}))}catch(n){return null}return e&&0!==e.length?e:null}function Jf(e,t,n,r,i,o,a,s,l,c,u,h){try{o[r]=gi(Ct(e,n,!0),t);var d,f=At(e,t);switch(s){case"sheet":d=Ad(f,t,i,l,o[r],c,u,h);break;case"chart":if(d=Cd(f,t,i,l,o[r],c,u,h),!d||!d["!drawel"])break;var p=Mt(d["!drawel"].Target,t),m=mi(p),g=Bl(Ct(e,p,!0),gi(Ct(e,m,!0),p)),v=Mt(g,p),b=mi(v);d=nd(Ct(e,v,!0),v,l,gi(Ct(e,b,!0),v),c,d);break;case"macro":d=Ed(f,t,i,l,o[r],c,u,h);break;case"dialog":d=Sd(f,t,i,l,o[r],c,u,h);break;default:throw new Error("Unrecognized sheet type "+s)}a[r]=d;var y=[];o&&o[r]&&Qe(o[r]).forEach((function(n){var i="";if(o[r][n].Type==pi.CMNT){i=Mt(o[r][n].Target,t);var a=Ld(At(e,i,!0),i,l);if(!a||!a.length)return;_l(d,a,!1)}o[r][n].Type==pi.TCMNT&&(i=Mt(o[r][n].Target,t),y=y.concat(Hl(At(e,i,!0),l)))})),y&&y.length&&_l(d,y,!0,l.people||[])}catch(w){if(l.WTF)throw w}}function Qf(e){return"/"==e.charAt(0)?e.slice(1):e}function $f(e,t){if(qe(),t=t||{},Zf(t),xt(e,"META-INF/manifest.xml"))return xf(e,t);if(xt(e,"objectdata.xml"))return xf(e,t);if(xt(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if("undefined"!=typeof Vf){if(e.FileIndex)return Vf(e);var n=Ke.utils.cfb_new();return St(e).forEach((function(t){Tt(n,t,Et(e,t))})),Vf(n)}throw new Error("Unsupported NUMBERS file")}if(!xt(e,"[Content_Types].xml")){if(xt(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(xt(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,i,o=St(e),a=fi(Ct(e,"[Content_Types].xml")),s=!1;if(0===a.workbooks.length&&(i="xl/workbook.xml",At(e,i,!0)&&a.workbooks.push(i)),0===a.workbooks.length){if(i="xl/workbook.bin",!At(e,i,!0))throw new Error("Could not find workbook");a.workbooks.push(i),s=!0}"bin"==a.workbooks[0].slice(-3)&&(s=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(Xu=[],a.sst)try{Xu=Md(At(e,Qf(a.sst)),a.sst,t)}catch(L){if(t.WTF)throw L}t.cellStyles&&a.themes.length&&(l=Nd(Ct(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(c=Td(At(e,Qf(a.style)),a.style,l,t))}a.links.map((function(n){try{var r=gi(Ct(e,mi(Qf(n))),n);return Dd(At(e,Qf(n)),r,n,t)}catch(L){}}));var u=kd(At(e,Qf(a.workbooks[0])),a.workbooks[0],t),h={},d="";a.coreprops.length&&(d=At(e,Qf(a.coreprops[0]),!0),d&&(h=xi(d)),0!==a.extprops.length&&(d=At(e,Qf(a.extprops[0]),!0),d&&Ci(d,h,t)));var f={};t.bookSheets&&!t.bookProps||0!==a.custprops.length&&(d=Ct(e,Qf(a.custprops[0]),!0),d&&(f=Si(d,t)));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?r=u.Sheets.map((function(e){return e.name})):h.Worksheets&&h.SheetNames.length>0&&(r=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=f),t.bookSheets&&"undefined"!==typeof r&&(p.SheetNames=r),t.bookSheets?p.SheetNames:t.bookProps))return p;r={};var m={};t.bookDeps&&a.calcchain&&(m=Od(At(e,Qf(a.calcchain)),a.calcchain,t));var g,v,b=0,y={},w=u.Sheets;h.Worksheets=w.length,h.SheetNames=[];for(var x=0;x!=w.length;++x)h.SheetNames[x]=w[x].name;var k=s?"bin":"xml",A=a.workbooks[0].lastIndexOf("/"),C=(a.workbooks[0].slice(0,A+1)+"_rels/"+a.workbooks[0].slice(A+1)+".rels").replace(/^\//,"");xt(e,C)||(C="xl/_rels/workbook."+k+".rels");var E=gi(Ct(e,C,!0),C.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=Pd(At(e,Qf(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=Ul(At(e,Qf(a.people[0])),t)),E&&(E=Xf(E,u.Sheets));var S=At(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=h.Worksheets;++b){var T="sheet";if(E&&E[b]?(g="xl/"+E[b][1].replace(/[\/]?xl\//,""),xt(e,g)||(g=E[b][1]),xt(e,g)||(g=C.replace(/_rels\/.*$/,"")+E[b][1]),T=E[b][2]):(g="xl/worksheets/sheet"+(b+1-S)+"."+k,g=g.replace(/sheet0\./,"sheet.")),v=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(b!=t.sheets)continue e;break;case"string":if(h.SheetNames[b].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var N=!1,M=0;M!=t.sheets.length;++M)"number"==typeof t.sheets[M]&&t.sheets[M]==b&&(N=1),"string"==typeof t.sheets[M]&&t.sheets[M].toLowerCase()==h.SheetNames[b].toLowerCase()&&(N=1);if(!N)continue e}}Jf(e,g,v,h.SheetNames[b],b,y,r,T,t,u,l,c)}return p={Directory:a,Workbook:u,Props:h,Custprops:f,Deps:m,Sheets:r,SheetNames:h.SheetNames,Strings:Xu,Styles:c,Themes:l,SSF:dt(Z)},t&&t.bookFiles&&(e.files?(p.keys=o,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(a.vba.length>0?p.vbaraw=At(e,Qf(a.vba[0]),!0):a.defaults&&a.defaults.bin===Vl&&(p.vbaraw=At(e,"xl/vbaProject.bin",!0))),p}function ep(e,t){var n=t||{},r="Workbook",i=Ke.find(e,r);try{if(r="/!DataSpaces/Version",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(ss(i.content),r="/!DataSpaces/DataSpaceMap",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var o=cs(i.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var a=us(i.content);if(1!=a.length||"StrongEncryptionTransform"!=a[0])throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);ds(i.content)}catch(l){}if(r="/EncryptionInfo",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var s=ms(i.content);if(r="/EncryptedPackage",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(4==s[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(s[1],i.content,n.password||"",n);if(2==s[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(s[1],i.content,n.password||"",n);throw new Error("File is password-protected")}function tp(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=C(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function np(e,t){return Ke.find(e,"EncryptedPackage")?ep(e,t):tf(e,t)}function rp(t,n){var r,i=t,o=n||{};return o.type||(o.type=E&&e.isBuffer(t)?"buffer":"base64"),r=Nt(i,o),$f(r,o)}function ip(e,t){var n=0;e:while(n=2&&0===o[3])return Wa.to_workbook(i,r);if(0===o[2]&&(8===o[3]||9===o[3]))return Wa.to_workbook(i,r)}break;case 3:case 131:case 139:case 140:return _a.to_workbook(i,r);case 123:if(92===o[1]&&114===o[2]&&116===o[3])return Ns.to_workbook(i,r);break;case 10:case 13:case 32:return op(i,r);case 137:if(80===o[1]&&78===o[2]&&71===o[3])throw new Error("PNG Image File is not a spreadsheet");break}return Ba.indexOf(o[0])>-1&&o[2]<=12&&o[3]<=31?_a.to_workbook(i,r):lp(t,i,r,a)}function up(e,t,n,r,i,o,a,s){var l=or(n),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(g){d.__rowNum__=n}else d.__rowNum__=n;if(!a||e[n])for(var f=t.s.c;f<=t.e.c;++f){var p=a?e[n][f]:e[r[f]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=o[f]){if(null==m)if("e"==p.t&&null===m)d[o[f]]=null;else if(void 0!==c)d[o[f]]=c;else{if(!u||null!==m)continue;d[o[f]]=null}else d[o[f]]=u&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?m:yr(p,m,s);null!=m&&(h=!1)}}else{if(void 0===c)continue;null!=o[f]&&(d[o[f]]=c)}}return{row:d,isempty:h}}function hp(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?r=1:"A"===c.header?r=2:Array.isArray(c.header)?r=3:null==c.header&&(r=0),typeof u){case"string":l=vr(u);break;case"number":l=vr(e["!ref"]),l.s.r=u;break;default:l=u}r>0&&(i=0);var h=or(l.s.r),d=[],f=[],p=0,m=0,g=Array.isArray(e),v=l.s.r,b=0,y={};g&&!e[v]&&(e[v]=[]);var w=c.skipHidden&&e["!cols"]||[],x=c.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(w[b]||{}).hidden)switch(d[b]=cr(b),n=g?e[v][b]:e[d[b]+h],r){case 1:o[b]=b-l.s.c;break;case 2:o[b]=d[b];break;case 3:o[b]=c.header[b-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=a=yr(n,null,c),m=y[a]||0,m){do{s=a+"_"+m++}while(y[s]);y[a]=m,y[s]=1}else y[a]=1;o[b]=s}for(v=l.s.r+i;v<=l.e.r;++v)if(!(x[v]||{}).hidden){var k=up(e,l,v,d,r,o,g,c);(!1===k.isempty||(1===r?!1!==c.blankrows:c.blankrows))&&(f[p++]=k.row)}return f.length=p,f}var dp=/"/g;function fp(e,t,n,r,i,o,a,s){for(var l=!0,c=[],u="",h=or(n),d=t.s.c;d<=t.e.c;++d)if(r[d]){var f=s.dense?(e[n]||[])[d]:e[r[d]+h];if(null==f)u="";else if(null!=f.v){l=!1,u=""+(s.rawNumbers&&"n"==f.t?f.v:yr(f,null,s));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===i||m===o||34===m||s.forceQuotes){u='"'+u.replace(dp,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==f.f||f.F?u="":(l=!1,u="="+f.f,u.indexOf(",")>=0&&(u='"'+u.replace(dp,'""')+'"'));c.push(u)}return!1===s.blankrows&&l?null:c.join(a)}function pp(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=vr(e["!ref"]),o=void 0!==r.FS?r.FS:",",a=o.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",l=s.charCodeAt(0),c=new RegExp(("|"==o?"\\|":o)+"+$"),u="",h=[];r.dense=Array.isArray(e);for(var d=r.skipHidden&&e["!cols"]||[],f=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(d[p]||{}).hidden||(h[p]=cr(p));for(var m=0,g=i.s.r;g<=i.e.r;++g)(f[g]||{}).hidden||(u=fp(e,i,g,h,a,l,o,r),null!=u&&(r.strip&&(u=u.replace(c,"")),(u||!1!==r.blankrows)&&n.push((m++?s:"")+u)));return delete r.dense,n.join("")}function mp(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=pp(e,t);if("undefined"==typeof g||"string"==t.type)return n;var r=g.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function gp(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var i,o=vr(e["!ref"]),a="",s=[],l=[],c=Array.isArray(e);for(i=o.s.c;i<=o.e.c;++i)s[i]=cr(i);for(var u=o.s.r;u<=o.e.r;++u)for(a=or(u),i=o.s.c;i<=o.e.c;++i)if(n=s[i]+a,t=c?(e[u]||[])[i]:e[n],r="",void 0!==t){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l}function vp(e,t,n){var r,i=n||{},o=+!i.skipHeader,a=e||{},s=0,l=0;if(a&&null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var c="string"==typeof i.origin?fr(i.origin):i.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+t.length-1+o}};if(a["!ref"]){var h=vr(a["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),-1==s&&(s=h.e.r+1,u.e.r=s+t.length-1+o)}else-1==s&&(s=0,u.e.r=t.length-1+o);var d=i.header||[],f=0;t.forEach((function(e,t){Qe(e).forEach((function(n){-1==(f=d.indexOf(n))&&(d[f=d.length]=n);var c=e[n],u="z",h="",p=pr({c:l+f,r:s+t+o});r=yp(a,p),!c||"object"!==typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date?(u="d",i.cellDates||(u="n",c=tt(c)),h=i.dateNF||Z[14]):null===c&&i.nullError&&(u="e",c=0),r?(r.t=u,r.v=c,delete r.w,delete r.R,h&&(r.z=h)):a[p]=r={t:u,v:c},h&&(r.z=h)):a[p]=c}))})),u.e.c=Math.max(u.e.c,l+d.length-1);var p=or(s);if(o)for(f=0;f=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}function xp(){return{SheetNames:[],Sheets:{}}}function kp(e,t,n,r){var i=1;if(!n)for(;i<=65535;++i,n=void 0)if(-1==e.SheetNames.indexOf(n="Sheet"+i))break;if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var a=o&&o[1]||n;for(++i;i<=65535;++i)if(-1==e.SheetNames.indexOf(n=a+i))break}if(pd(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function Ap(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=wp(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n}function Cp(e,t){return e.z=t,e}function Ep(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function Sp(e,t,n){return Ep(e,"#"+t,n)}function Tp(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})}function Np(e,t,n,r){for(var i="string"!=typeof t?t:vr(t),o="string"==typeof t?t:gr(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=yp(e,a,s);l.t="n",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=n,r&&(l.D=!0))}return e}var Mp={encode_col:cr,encode_row:or,encode_cell:pr,encode_range:gr,decode_col:lr,decode_row:ir,split_cell:dr,decode_cell:fr,decode_range:mr,format_cell:yr,sheet_add_aoa:xr,sheet_add_json:vp,sheet_add_dom:ff,aoa_to_sheet:kr,json_to_sheet:bp,table_to_sheet:pf,table_to_book:mf,sheet_to_csv:pp,sheet_to_txt:mp,sheet_to_json:hp,sheet_to_html:df,sheet_to_formulae:gp,sheet_to_row_object_array:hp,sheet_get_cell:yp,book_new:xp,book_append_sheet:kp,book_set_sheet_visibility:Ap,cell_set_number_format:Cp,cell_set_hyperlink:Ep,cell_set_internal_link:Sp,cell_add_comment:Tp,sheet_set_array_formula:Np,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};i.version}).call(this,n("b639").Buffer,n("4362"))},"25cac":function(e,t,n){e.exports=n.p+"img/a-8-DNA.svg"},2613:function(e,t,n){e.exports=n.p+"img/ziyuan_5.svg"},"265a":function(e,t,n){e.exports=n.p+"img/bijiben.svg"},"26eb":function(e,t,n){e.exports=n.p+"img/-_17.svg"},2710:function(e,t,n){e.exports=n.p+"img/fanqiejiang.svg"},2783:function(e,t,n){e.exports=n.p+"img/ziyuan_13.svg"},"27bf":function(e,t,n){"use strict";e.exports=a;var r=n("b19a"),i=Object.create(n("3a7c"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengtht.key===e&&null!==this.onmessage&&this.onmessage({data:o["d"](t.newValue||"")}),a["b"](this._onChange)}postMessage(e){a["c"].setItem(this.room,o["e"](o["b"](e)))}close(){a["a"](this._onChange)}}const c="undefined"===typeof BroadcastChannel?l:BroadcastChannel,u=e=>r["e"](s,e,()=>{const t=i["a"](),n=new c(e);return n.onmessage=e=>t.forEach(t=>t(e.data,"broadcastchannel")),{bc:n,subs:t}}),h=(e,t)=>(u(e).subs.add(t),t),d=(e,t)=>{const n=u(e),r=n.subs.delete(t);return r&&0===n.subs.size&&(n.bc.close(),s.delete(e)),r},f=(e,t,n=null)=>{const r=u(e);r.bc.postMessage(t),r.subs.forEach(e=>e(t,n))}},"2f44":function(e,t,n){},"2f97":function(e,t,n){e.exports=n.p+"img/brainImpairedPink.jpg"},"300d":function(e,t,n){},"318a":function(e,t,n){e.exports=n.p+"img/jisuan.svg"},3213:function(e,t,n){"use strict";var r=n("d7f0"),i=n("ce8e").supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof RegExp.prototype.dotAll&&"boolean"===typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},3232:function(e,t,n){"use strict";n("c6ef")},3247:function(e,t,n){e.exports=n.p+"img/-_16.svg"},"325b":function(e,t,n){e.exports=n.p+"img/a-4-lunyi.svg"},"33d7":function(e,t,n){e.exports=n.p+"img/a-1-shilibiao.svg"},3469:function(e,t,n){e.exports=n.p+"img/a-3-chuangkoutie.svg"},"347b":function(e,t,n){e.exports=n.p+"img/OAxitong.svg"},3561:function(e,t,n){"use strict";n("5c87")},"35aa":function(e,t,n){e.exports=n.p+"img/shengdanjie.svg"},"35ae":function(e,t,n){e.exports=n.p+"img/menpiao.svg"},"361f":function(e,t,n){"use strict";var r=n("b257"),i=n("4d80"),o=n("f770"),a=n("1a33"),s=n("bbea"),l=n("44b2"),c=n("ef7a"),u=n("ce2e"),h=n("899a"),d=n("d898"),f=n("860a"),p=n("8d5c"),m=n("ec82");e.exports=function(e,t,n,g){var v="stackTraceLimit",b=g?2:1,y=e.split("."),w=y[y.length-1],x=r.apply(null,y);if(x){var k=x.prototype;if(!m&&i(k,"cause")&&delete k.cause,!n)return x;var A=r("Error"),C=t((function(e,t){var n=h(g?t:e,void 0),r=g?new x(e):new x;return void 0!==n&&o(r,"message",n),f(r,C,r.stack,2),this&&a(k,this)&&u(r,this,C),arguments.length>b&&d(r,arguments[b]),r}));if(C.prototype=k,"Error"!==w?s?s(C,A):l(C,A,{name:!0}):p&&v in x&&(c(C,x,v),c(C,x,"prepareStackTrace")),l(C,x),!m)try{k.name!==w&&o(k,"name",w),k.constructor=C}catch(E){}return C}}},"369f":function(e,t,n){e.exports=n.p+"img/sousuo.svg"},3752:function(e,t,n){e.exports=n.p+"img/gongju.svg"},"3a7c":function(e,t,n){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function l(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function u(e){return void 0===e}function h(e){return"[object RegExp]"===v(e)}function d(e){return"object"===typeof e&&null!==e}function f(e){return"[object Date]"===v(e)}function p(e){return"[object Error]"===v(e)||e instanceof Error}function m(e){return"function"===typeof e}function g(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function v(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=a,t.isNumber=s,t.isString=l,t.isSymbol=c,t.isUndefined=u,t.isRegExp=h,t.isObject=d,t.isDate=f,t.isError=p,t.isFunction=m,t.isPrimitive=g,t.isBuffer=n("b639").Buffer.isBuffer},"3a98":function(e,t,n){"use strict";var r=n("9803")(),i=n("1d76"),o=i("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!a(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=s,e.exports=l?a:s},"3aa9":function(e,t,n){"use strict";n("7de5")},"3acd":function(e,t,n){e.exports=n.p+"img/fanwendengji.svg"},"3b50":function(e,t,n){e.exports=n.p+"img/jiandan.svg"},"3bbe":function(e,t,n){var r=n("1626"),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},"3bd3":function(e,t,n){e.exports=n.p+"img/jiaoxuelou.svg"},"3c2a":function(e,t,n){e.exports=n.p+"img/fishbone.png"},"3cc4":function(e,t,n){e.exports=n.p+"img/courseGreen.jpg"},"3ce0":function(e,t,n){"use strict";var r=n("3475"),i=n("8300"),o=n("9440"),a=n("e6a3"),s=n("8953"),l=n("af17"),c=1!==[].unshift(0),u=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}},h=c||!u();r({target:"Array",proto:!0,arity:1,forced:h},{unshift:function(e){var t=i(this),n=o(t),r=arguments.length;if(r){l(n+r);var c=n;while(c--){var u=c+r;c in t?t[u]=t[c]:s(t,u)}for(var h=0;h1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=N(e),r=n.length>0?n[0]:"",o=M("%"+r+"%",t),s=o.name,c=o.value,u=!1,h=o.alias;h&&(r=h[0],k(n,x([0,1],h)));for(var d=1,f=!0;d=n.length){var b=l(c,p);f=!!b,c=f&&"get"in b&&!("originalValue"in b.get)?b.get:c[p]}else f=w(c,p),c=c[p];f&&!u&&(m[s]=c)}}return c}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},"41ab":function(e,t,n){},"41af":function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},"41c5":function(e,t,n){e.exports=n.p+"img/-_12.svg"},4244:function(e,t,n){e.exports=n.p+"img/a-20-shuye.svg"},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"43cf":function(e,t,n){e.exports=n.p+"img/xiezizhuo.svg"},"442c":function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return A})),n.d(t,"h",(function(){return L})),n.d(t,"i",(function(){return D})),n.d(t,"j",(function(){return M}));var r=n("b923"),i=n("6f27"),o=n("6ffb");const a=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function s(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const l=(e,t,n)=>{let a=s(e,n);if(!a)return!1;let l=h(a);if(!l){let n=a.blockRange(),i=n&&Object(r["k"])(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=l.nodeBefore;if(!u.type.spec.isolating&&E(e,l,t))return!0;if(0==a.parent.content.size&&(c(u,"end")||o["NodeSelection"].isSelectable(u))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=h(r)}let s=a&&a.nodeBefore;return!(!s||!o["NodeSelection"].isSelectable(s))&&(t&&t(e.tr.setSelection(o["NodeSelection"].create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function d(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let a=d(e,n);if(!a)return!1;let s=m(a);if(!s)return!1;let l=s.nodeAfter;if(E(e,s,t))return!0;if(0==a.parent.content.size&&(c(l,"start")||o["NodeSelection"].isSelectable(l))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function v(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=v(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,s.createAndFill());i.setSelection(o["Selection"].near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},y=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o["AllSelection"]||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=v(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Object(r["g"])(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&Object(r["k"])(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)};function x(e){return(t,n)=>{let{$from:i,$to:a}=t.selection;if(t.selection instanceof o["NodeSelection"]&&t.selection.node.isBlock)return!(!i.parentOffset||!Object(r["g"])(t.doc,i.pos))&&(n&&n(t.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(n){let s=a.parentOffset==a.parent.content.size,l=t.tr;(t.selection instanceof o["TextSelection"]||t.selection instanceof o["AllSelection"])&&l.deleteSelection();let c=0==i.depth?null:v(i.node(-1).contentMatchAt(i.indexAfter(-1))),u=e&&e(a.parent,s),h=u?[u]:s&&c?[{type:c}]:void 0,d=Object(r["g"])(l.doc,l.mapping.map(i.pos),1,h);if(h||d||!Object(r["g"])(l.doc,l.mapping.map(i.pos),1,c?[{type:c}]:void 0)||(c&&(h=[{type:c}]),d=!0),d&&(l.split(l.mapping.map(i.pos),1,h),!s&&!i.parentOffset&&i.parent.type!=c)){let e=l.mapping.map(i.before()),t=l.doc.resolve(e);c&&i.node(-1).canReplaceWith(t.index(),t.index()+1,c)&&l.setNodeMarkup(l.mapping.map(i.before()),c)}n(l.scrollIntoView())}return!0}}const k=x(),A=(e,t)=>(t&&t(e.tr.setSelection(new o["AllSelection"](e.doc))),!0);function C(e,t,n){let i=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(r["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}function E(e,t,n){let a,s,l=t.nodeBefore,u=t.nodeAfter;if(l.type.spec.isolating||u.type.spec.isolating)return!1;if(C(e,t,n))return!0;let h=t.parent.canReplace(t.index(),t.index()+1);if(h&&(a=(s=l.contentMatchAt(l.childCount)).findWrapping(u.type))&&s.matchType(a[0]||u.type).validEnd){if(n){let o=t.pos+u.nodeSize,s=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)s=i["Fragment"].from(a[e].create(null,s));s=i["Fragment"].from(l.copy(s));let c=e.tr.step(new r["b"](t.pos-1,o,t.pos,o,new i["Slice"](s,1,0),a.length,!0)),h=o+2*a.length;Object(r["f"])(c.doc,h)&&c.join(h),n(c.scrollIntoView())}return!0}let d=o["Selection"].findFrom(t,1),f=d&&d.$from.blockRange(d.$to),p=f&&Object(r["k"])(f);if(null!=p&&p>=t.depth)return n&&n(e.tr.lift(f,p).scrollIntoView()),!0;if(h&&c(u,"start",!0)&&c(l,"end")){let o=l,a=[];for(;;){if(a.push(o),o.isTextblock)break;o=o.lastChild}let s=u,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(o.canReplace(o.childCount,o.childCount,s.content)){if(n){let o=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)o=i["Fragment"].from(a[e].copy(o));let s=e.tr.step(new r["b"](t.pos-a.length,t.pos+u.nodeSize,t.pos+c,t.pos+u.nodeSize-c,new i["Slice"](o,a.length,0),0,!0));n(s.scrollIntoView())}return!0}}return!1}function S(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;while(i.node(a).isInline){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(t.tr.setSelection(o["TextSelection"].create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}const T=S(-1),N=S(1);function M(e,t=null){return function(n,i){let{$from:o,$to:a}=n.selection,s=o.blockRange(a),l=s&&Object(r["i"])(s,e,t);return!!l&&(i&&i(n.tr.wrap(s,l).scrollIntoView()),!0)}}function L(e,t=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r{if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)}),a)return!0}return!1}function D(e,t=null){return function(n,r){let{empty:i,$cursor:o,ranges:a}=n.selection;if(i&&!o||!O(n.doc,a,e))return!1;if(r)if(o)e.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let i=!1,o=n.tr;for(let t=0;!i&&tt.clients.forEach((t,r)=>{const i=e.doc.store.clients.get(r);for(let o=0;o{let n=0,r=e.length-1;while(n<=r){const i=o["d"]((n+r)/2),a=e[i],s=a.clock;if(s<=t){if(t{const n=e.clients.get(t.client);return void 0!==n&&null!==A(n,t.clock)},E=e=>{e.clients.forEach(e=>{let t,n;for(e.sort((e,t)=>e.clock-t.clock),t=1,n=1;t=i.clock?r.len=o["g"](r.len,i.clock+i.len-r.clock):(n{const t=new x;for(let n=0;n{if(!t.clients.has(o)){const a=r.slice();for(let t=n+1;t{a["e"](e.clients,t,()=>[]).push(new w(n,r))},N=()=>new x,M=e=>{const t=N();return e.clients.forEach((e,n)=>{const r=[];for(let t=0;t0&&t.clients.set(n,r)}),t},L=(e,t)=>{s["n"](e.restEncoder,t.clients.size),i["c"](t.clients.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{e.resetDsCurVal(),s["n"](e.restEncoder,t);const r=n.length;s["n"](e.restEncoder,r);for(let i=0;i{const t=new x,n=l["k"](e.restDecoder);for(let r=0;r0){const i=a["e"](t.clients,n,()=>[]);for(let t=0;t{const r=new x,i=l["k"](e.restDecoder);for(let o=0;o0){const e=new U;return s["n"](e.restEncoder,0),L(e,r),e.toUint8Array()}return null},P=c["b"];class I extends r["a"]{constructor({guid:e=c["c"](),collectionid:t=null,gc:n=!0,gcFilter:r=(()=>!0),meta:i=null,autoLoad:o=!1,shouldLoad:a=!0}={}){super(),this.gc=n,this.gcFilter=r,this.clientID=P(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new ye,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=a,this.autoLoad=o,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=u["a"](e=>{this.on("load",()=>{this.isLoaded=!0,e(this)})});const s=()=>u["a"](e=>{const t=n=>{void 0!==n&&!0!==n||(this.off("sync",t),e())};this.on("sync",t)});this.on("sync",e=>{!1===e&&this.isSynced&&(this.whenSynced=s()),this.isSynced=void 0===e||!0===e,this.isLoaded||this.emit("load",[])}),this.whenSynced=s()}load(){const e=this._item;null===e||this.shouldLoad||Be(e.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(i["c"](this.subdocs).map(e=>e.guid))}transact(e,t=null){return Be(this,e,t)}get(e,t=ct){const n=a["e"](this.share,e,()=>{const e=new t;return e._integrate(this,null),e}),r=n.constructor;if(t!==ct&&r!==t){if(r===ct){const r=new t;r._map=n._map,n._map.forEach(e=>{for(;null!==e;e=e.left)e.parent=r}),r._start=n._start;for(let e=r._start;null!==e;e=e.right)e.parent=r;return r._length=n._length,this.share.set(e,r),r._integrate(this,null),r}throw new Error(`Type with the name ${e} has already been defined with a different constructor`)}return n}getArray(e=""){return this.get(e,Nt)}getText(e=""){return this.get(e,Kt)}getMap(e=""){return this.get(e,Ot)}getXmlFragment(e=""){return this.get(e,Qt)}toJSON(){const e={};return this.share.forEach((t,n)=>{e[n]=t.toJSON()}),e}destroy(){i["c"](this.subdocs).forEach(e=>e.destroy());const e=this._item;if(null!==e){this._item=null;const t=e.content;t.doc=new I({guid:this.guid,...t.opts,shouldLoad:!1}),t.doc._item=e,Be(e.parent.doc,n=>{const r=t.doc;e.deleted||n.subdocsAdded.add(r),n.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}on(e,t){super.on(e,t)}off(e,t){super.off(e,t)}}class R{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return l["k"](this.restDecoder)}readDsLen(){return l["k"](this.restDecoder)}}class F extends R{readLeftID(){return fe(l["k"](this.restDecoder),l["k"](this.restDecoder))}readRightID(){return fe(l["k"](this.restDecoder),l["k"](this.restDecoder))}readClient(){return l["k"](this.restDecoder)}readInfo(){return l["h"](this.restDecoder)}readString(){return l["j"](this.restDecoder)}readParentInfo(){return 1===l["k"](this.restDecoder)}readTypeRef(){return l["k"](this.restDecoder)}readLen(){return l["k"](this.restDecoder)}readAny(){return l["g"](this.restDecoder)}readBuf(){return h["a"](l["l"](this.restDecoder))}readJSON(){return JSON.parse(l["j"](this.restDecoder))}readKey(){return l["j"](this.restDecoder)}}class z{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=l["k"](this.restDecoder),this.dsCurrVal}readDsLen(){const e=l["k"](this.restDecoder)+1;return this.dsCurrVal+=e,e}}class B extends z{constructor(e){super(e),this.keys=[],l["k"](e),this.keyClockDecoder=new l["a"](l["l"](e)),this.clientDecoder=new l["d"](l["l"](e)),this.leftClockDecoder=new l["a"](l["l"](e)),this.rightClockDecoder=new l["a"](l["l"](e)),this.infoDecoder=new l["b"](l["l"](e),l["h"]),this.stringDecoder=new l["c"](l["l"](e)),this.parentInfoDecoder=new l["b"](l["l"](e),l["h"]),this.typeRefDecoder=new l["d"](l["l"](e)),this.lenDecoder=new l["d"](l["l"](e))}readLeftID(){return new he(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new he(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return 1===this.parentInfoDecoder.read()}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return l["g"](this.restDecoder)}readBuf(){return l["l"](this.restDecoder)}readJSON(){return l["g"](this.restDecoder)}readKey(){const e=this.keyClockDecoder.read();if(e{r=o["g"](r,t[0].id.clock);const i=Ae(t,r);s["n"](e.restEncoder,t.length-i),e.writeClient(n),s["n"](e.restEncoder,r);const a=t[i];a.write(e,r-a.id.clock);for(let o=i+1;o{const r=new Map;n.forEach((e,n)=>{xe(t,n)>e&&r.set(n,e)}),we(t).forEach((e,t)=>{n.has(t)||r.set(t,0)}),s["n"](e.restEncoder,r.size),i["c"](r.entries()).sort((e,t)=>t[0]-e[0]).forEach(([n,r])=>{q(e,t.clients.get(n),n,r)})},W=(e,t)=>{const n=a["c"](),r=l["k"](e.restDecoder);for(let i=0;i{const r=[];let o=i["c"](n.keys()).sort((e,t)=>e-t);if(0===o.length)return null;const l=()=>{if(0===o.length)return null;let e=n.get(o[o.length-1]);while(e.refs.length===e.i){if(o.pop(),!(o.length>0))return null;e=n.get(o[o.length-1])}return e};let c=l();if(null===c&&0===r.length)return null;const u=new ye,h=new Map,d=(e,t)=>{const n=h.get(e);(null==n||n>t)&&h.set(e,t)};let f=c.refs[c.i++];const p=new Map,m=()=>{for(const e of r){const t=e.id.client,r=n.get(t);r?(r.i--,u.clients.set(t,r.refs.slice(r.i)),n.delete(t),r.i=0,r.refs=[]):u.clients.set(t,[e]),o=o.filter(e=>e!==t)}r.length=0};while(1){if(f.constructor!==qn){const i=a["e"](p,f.id.client,()=>xe(t,f.id.client)),o=i-f.id.clock;if(o<0)r.push(f),d(f.id.client,f.id.clock-1),m();else{const i=f.getMissing(e,t);if(null!==i){r.push(f);const e=n.get(i)||{refs:[],i:0};if(e.refs.length!==e.i){f=e.refs[e.i++];continue}d(i,xe(t,i)),m()}else(0===o||o0)f=r.pop();else if(null!==c&&c.i0){const e=new U;return G(e,u,new Map),s["n"](e.restEncoder,0),{missing:h,update:e.toUint8Array()}}return null},Y=(e,t)=>G(e,t.doc.store,t.beforeState),Z=(e,t,n,r=new B(e))=>Be(t,e=>{e.local=!1;let t=!1;const n=e.doc,i=n.store,o=W(r,n),a=V(e,i,o),s=i.pendingStructs;if(s){for(const[e,n]of s.missing)if(nt)&&s.missing.set(e,t)}s.update=Ge([s.update,a.update])}}else i.pendingStructs=a;const c=D(r,e,i);if(i.pendingDs){const t=new B(l["e"](i.pendingDs));l["k"](t.restDecoder);const n=D(t,e,i);i.pendingDs=c&&n?Ge([c,n]):c||n}else i.pendingDs=c;if(t){const t=i.pendingStructs.update;i.pendingStructs=null,K(e.doc,t)}},n,!1),K=(e,t,n,r=B)=>{const i=l["e"](t);Z(i,e,n,new r(i))},X=(e,t,n)=>K(e,t,n,F),J=(e,t,n=new Map)=>{G(e,t.store,n),L(e,M(t.store))},Q=(e,t=new Uint8Array([0]),n=new U)=>{const r=te(t);J(n,e,r);const i=[n.toUint8Array()];if(e.store.pendingDs&&i.push(e.store.pendingDs),e.store.pendingStructs&&i.push(We(e.store.pendingStructs.update,t)),i.length>1){if(n.constructor===j)return Ue(i.map((e,t)=>0===t?e:Xe(e)));if(n.constructor===U)return Ge(i)}return i[0]},$=(e,t)=>Q(e,t,new j),ee=e=>{const t=new Map,n=l["k"](e.restDecoder);for(let r=0;ree(new R(l["e"](e))),ne=(e,t)=>(s["n"](e.restEncoder,t.size),i["c"](t.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{s["n"](e.restEncoder,t),s["n"](e.restEncoder,n)}),e),re=(e,t)=>ne(e,we(t.store)),ie=(e,t=new H)=>(e instanceof Map?ne(t,e):re(t,e),t.toUint8Array()),oe=e=>ie(e,new _);class ae{constructor(){this.l=[]}}const se=()=>new ae,le=(e,t)=>e.l.push(t),ce=(e,t)=>{const n=e.l,r=n.length;e.l=n.filter(e=>t!==e),r===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},ue=(e,t,n)=>p["a"](e.l,[t,n]);class he{constructor(e,t){this.client=e,this.clock=t}}const de=(e,t)=>e===t||null!==e&&null!==t&&e.client===t.client&&e.clock===t.clock,fe=(e,t)=>new he(e,t),pe=e=>{for(const[t,n]of e.doc.share.entries())if(n===e)return t;throw d["c"]()};class me{constructor(e,t){this.ds=e,this.sv=t}}const ge=(e,t)=>new me(e,t),ve=(ge(N(),new Map),(e,t)=>void 0===t?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!C(t.ds,e.id)),be=(e,t)=>{const n=a["e"](e.meta,be,m["a"]),r=e.doc.store;n.has(t)||(t.sv.forEach((t,n)=>{t{}),n.add(t))};class ye{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const we=e=>{const t=new Map;return e.clients.forEach((e,n)=>{const r=e[e.length-1];t.set(n,r.id.clock+r.length)}),t},xe=(e,t)=>{const n=e.clients.get(t);if(void 0===n)return 0;const r=n[n.length-1];return r.id.clock+r.length},ke=(e,t)=>{let n=e.clients.get(t.id.client);if(void 0===n)n=[],e.clients.set(t.id.client,n);else{const e=n[n.length-1];if(e.id.clock+e.length!==t.id.clock)throw d["c"]()}n.push(t)},Ae=(e,t)=>{let n=0,r=e.length-1,i=e[r],a=i.id.clock;if(a===t)return r;let s=o["d"](t/(a+i.length-1)*r);while(n<=r){if(i=e[s],a=i.id.clock,a<=t){if(t{const n=e.clients.get(t.client);return n[Ae(n,t.clock)]},Ee=Ce,Se=(e,t,n)=>{const r=Ae(t,n),i=t[r];return i.id.clock{const n=e.doc.store.clients.get(t.client);return n[Se(e,n,t.clock)]},Ne=(e,t,n)=>{const r=t.clients.get(n.client),i=Ae(r,n.clock),o=r[i];return n.clock!==o.id.clock+o.length-1&&o.constructor!==un&&r.splice(i+1,0,Bn(e,o,n.clock-o.id.clock+1)),o},Me=(e,t,n)=>{const r=e.clients.get(t.id.client);r[Ae(r,t.id.clock)]=n},Le=(e,t,n,r,i)=>{if(0===r)return;const o=n+r;let a,s=Se(e,t,n);do{a=t[s++],o!(0===t.deleteSet.clients.size&&!a["a"](t.afterState,(e,n)=>t.beforeState.get(n)!==e))&&(E(t.deleteSet),Y(e,t),L(e,t.deleteSet),!0),Pe=(e,t,n)=>{const r=t._item;(null===r||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&a["e"](e.changed,t,m["a"]).add(n)},Ie=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0;n=r,r=e[--i-1]){if(r.deleted!==n.deleted||r.constructor!==n.constructor||!r.mergeWith(n))break;n instanceof _n&&null!==n.parentSub&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r)}const o=t-i;return o&&e.splice(t+1-o,o),o},Re=(e,t,n)=>{for(const[r,i]of e.clients.entries()){const e=t.clients.get(r);for(let r=i.length-1;r>=0;r--){const o=i[r],a=o.clock+o.len;for(let r=Ae(e,o.clock),i=e[r];r{e.clients.forEach((e,n)=>{const r=t.clients.get(n);for(let t=e.length-1;t>=0;t--){const n=e[t],i=o["h"](r.length-1,1+Ae(r,n.clock+n.len-1));for(let e=i,t=r[e];e>0&&t.id.clock>=n.clock;t=r[e])e-=1+Ie(r,e)}})},ze=(e,t)=>{if(tl.push(()=>{null!==t._item&&t._item.deleted||t._callObserver(n,e)})),l.push(()=>{n.changedParentTypes.forEach((e,t)=>{t._dEH.l.length>0&&(null===t._item||!t._item.deleted)&&(e=e.filter(e=>null===e.target._item||!e.target._item.deleted),e.forEach(e=>{e.currentTarget=t,e._path=null}),e.sort((e,t)=>e.path.length-t.path.length),ue(t._dEH,e,n))})}),l.push(()=>r.emit("afterTransaction",[n,r])),Object(p["a"])(l,[]),n._needFormattingCleanup&&Vt(n)}finally{r.gc&&Re(a,i,r.gcFilter),Fe(a,i),n.afterState.forEach((e,t)=>{const r=n.beforeState.get(t)||0;if(r!==e){const e=i.clients.get(t),n=o["g"](Ae(e,r),1);for(let t=e.length-1;t>=n;)t-=1+Ie(e,t)}});for(let e=s.length-1;e>=0;e--){const{client:t,clock:n}=s[e].id,r=i.clients.get(t),o=Ae(r,n);o+11||o>0&&Ie(r,o)}if(n.local||n.afterState.get(r.clientID)===n.beforeState.get(r.clientID)||(g["b"](v["e"],v["b"],"[yjs] ",v["h"],v["g"],"Changed the client-id because another client seems to be using it."),r.clientID=P()),r.emit("afterTransactionCleanup",[n,r]),r._observers.has("update")){const e=new j,t=De(e,n);t&&r.emit("update",[e.toUint8Array(),n.origin,r,n])}if(r._observers.has("updateV2")){const e=new U,t=De(e,n);t&&r.emit("updateV2",[e.toUint8Array(),n.origin,r,n])}const{subdocsAdded:l,subdocsLoaded:c,subdocsRemoved:u}=n;(l.size>0||u.size>0||c.size>0)&&(l.forEach(e=>{e.clientID=r.clientID,null==e.collectionid&&(e.collectionid=r.collectionid),r.subdocs.add(e)}),u.forEach(e=>r.subdocs.delete(e)),r.emit("subdocs",[{loaded:c,added:l,removed:u},r,n]),u.forEach(e=>e.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,e])):ze(e,t+1)}}},Be=(e,t,n=null,r=!0)=>{const i=e._transactionCleanups;let o=!1,a=null;null===e._transaction&&(o=!0,e._transaction=new Oe(e,n,r),i.push(e._transaction),1===i.length&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{a=t(e._transaction)}finally{if(o){const t=e._transaction===i[0];e._transaction=null,t&&ze(i,0)}}return a};r["a"];function*_e(e){const t=l["k"](e.restDecoder);for(let n=0;nGe(e,F,j),qe=(e,t)=>{if(e.constructor===un){const{client:n,clock:r}=e.id;return new un(fe(n,r+t),e.length-t)}if(e.constructor===qn){const{client:n,clock:r}=e.id;return new qn(fe(n,r+t),e.length-t)}{const n=e,{client:r,clock:i}=n.id;return new _n(fe(r,i+t),null,fe(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},Ge=(e,t=B,n=U)=>{if(1===e.length)return e[0];const r=e.map(e=>new t(l["e"](e)));let i=r.map(e=>new je(e,!0)),o=null;const a=new n,s=new He(a);while(1){if(i=i.filter(e=>null!==e.curr),i.sort((e,t)=>{if(e.curr.id.client===t.curr.id.client){const n=e.curr.id.clock-t.curr.id.clock;return 0===n?e.curr.constructor===t.curr.constructor?0:e.curr.constructor===qn?1:-1:n}return t.curr.id.client-e.curr.id.client}),0===i.length)break;const e=i[0],t=e.curr.id.client;if(null!==o){let n=e.curr,r=!1;while(null!==n&&n.id.clock+n.length<=o.struct.id.clock+o.struct.length&&n.id.client>=o.struct.id.client)n=e.next(),r=!0;if(null===n||n.id.client!==t||r&&n.id.clock>o.struct.id.clock+o.struct.length)continue;if(t!==o.struct.id.client)Ye(s,o.struct,o.offset),o={struct:n,offset:0},e.next();else if(o.struct.id.clock+o.struct.length0&&(o.struct.constructor===qn?o.struct.length-=t:n=qe(n,t)),o.struct.mergeWith(n)||(Ye(s,o.struct,o.offset),o={struct:n,offset:0},e.next())}}else o={struct:e.curr,offset:0},e.next();for(let n=e.curr;null!==n&&n.id.client===t&&n.id.clock===o.struct.id.clock+o.struct.length&&n.constructor!==qn;n=e.next())Ye(s,o.struct,o.offset),o={struct:n,offset:0}}null!==o&&(Ye(s,o.struct,o.offset),o=null),Ze(s);const c=r.map(e=>O(e)),u=S(c);return L(a,u),a.toUint8Array()},We=(e,t,n=B,r=U)=>{const i=te(t),a=new r,s=new He(a),c=new n(l["e"](e)),u=new je(c,!1);while(u.curr){const e=u.curr,t=e.id.client,n=i.get(t)||0;if(u.curr.constructor!==qn)if(e.id.clock+e.length>n){Ye(s,e,o["g"](n-e.id.clock,0)),u.next();while(u.curr&&u.curr.id.client===t)Ye(s,u.curr,0),u.next()}else while(u.curr&&u.curr.id.client===t&&u.curr.id.clock+u.curr.length<=n)u.next();else u.next()}Ze(s);const h=O(c);return L(a,h),a.toUint8Array()},Ve=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:s["f"](e.encoder.restEncoder)}),e.encoder.restEncoder=s["e"](),e.written=0)},Ye=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&Ve(e),0===e.written&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),s["n"](e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},Ze=e=>{Ve(e);const t=e.encoder.restEncoder;s["n"](t,e.clientStructs.length);for(let n=0;n{const i=new n(l["e"](e)),o=new je(i,!1),a=new r,s=new He(a);for(let l=o.curr;null!==l;l=o.next())Ye(s,t(l),0);Ze(s);const c=O(i);return L(a,c),a.toUint8Array()},Xe=e=>Ke(e,p["c"],B,j),Je="You must not compute changes after the event-handler fired.";class Qe{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=$e(this.currentTarget,this.target))}deletes(e){return C(this.transaction.deleteSet,e.id)}get keys(){if(null===this._keys){if(0===this.transaction.doc._transactionCleanups.length)throw d["a"](Je);const e=new Map,t=this.target,n=this.transaction.changed.get(t);n.forEach(n=>{if(null!==n){const r=t._map.get(n);let o,a;if(this.adds(r)){let e=r.left;while(null!==e&&this.adds(e))e=e.left;if(this.deletes(r)){if(null===e||!this.deletes(e))return;o="delete",a=i["e"](e.content.getContent())}else null!==e&&this.deletes(e)?(o="update",a=i["e"](e.content.getContent())):(o="add",a=void 0)}else{if(!this.deletes(r))return;o="delete",a=i["e"](r.content.getContent())}e.set(n,{action:o,oldValue:a})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(null===e){if(0===this.transaction.doc._transactionCleanups.length)throw d["a"](Je);const t=this.target,n=m["a"](),r=m["a"](),i=[];e={added:n,deleted:r,delta:i,keys:this.keys};const o=this.transaction.changed.get(t);if(o.has(null)){let e=null;const o=()=>{e&&i.push(e)};for(let i=t._start;null!==i;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&(null!==e&&void 0!==e.delete||(o(),e={delete:0}),e.delete+=i.length,r.add(i)):this.adds(i)?(null!==e&&void 0!==e.insert||(o(),e={insert:[]}),e.insert=e.insert.concat(i.content.getContent()),n.add(i)):(null!==e&&void 0!==e.retain||(o(),e={retain:0}),e.retain+=i.length);null!==e&&void 0===e.retain&&o()}this._changes=e}return e}}const $e=(e,t)=>{const n=[];while(null!==t._item&&t!==e){if(null!==t._item.parentSub)n.unshift(t._item.parentSub);else{let e=0,r=t._item.parent._start;while(r!==t._item&&null!==r)r.deleted||e++,r=r.right;n.unshift(e)}t=t._item.parent}return n},et=80;let tt=0;class nt{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=tt++}}const rt=e=>{e.timestamp=tt++},it=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=tt++},ot=(e,t,n)=>{if(e.length>=et){const r=e.reduce((e,t)=>e.timestamp{if(null===e._start||0===t||null===e._searchMarker)return null;const n=0===e._searchMarker.length?null:e._searchMarker.reduce((e,n)=>o["a"](t-e.index)t)r=r.left,!r.deleted&&r.countable&&(i-=r.length);while(null!==r.left&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return null!==n&&o["a"](n.index-i){for(let r=e.length-1;r>=0;r--){const i=e[r];if(n>0){let t=i.p;t.marker=!1;while(t&&(t.deleted||!t.countable))t=t.left,t&&!t.deleted&&t.countable&&(i.index-=t.length);if(null===t||!0===t.marker){e.splice(r,1);continue}i.p=t,t.marker=!0}(t0&&t===i.index)&&(i.index=o["g"](t,i.index+n))}},lt=(e,t,n)=>{const r=e,i=t.changedParentTypes;while(1){if(a["e"](i,e,()=>[]).push(n),null===e._item)break;e=e._item.parent}ue(r._eH,n,t)};class ct{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=se(),this._dEH=se(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw d["b"]()}clone(){throw d["b"]()}_write(e){}get _first(){let e=this._start;while(null!==e&&e.deleted)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){le(this._eH,e)}observeDeep(e){le(this._dEH,e)}unobserve(e){ce(this._eH,e)}unobserveDeep(e){ce(this._dEH,e)}toJSON(){}}const ut=(e,t,n)=>{t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t;const i=[];let o=e._start;while(null!==o&&r>0){if(o.countable&&!o.deleted){const e=o.content.getContent();if(e.length<=t)t-=e.length;else{for(let n=t;n0;n++)i.push(e[n]),r--;t=0}}o=o.right}return i},ht=e=>{const t=[];let n=e._start;while(null!==n){if(n.countable&&!n.deleted){const e=n.content.getContent();for(let n=0;n{let n=0,r=e._start;while(null!==r){if(r.countable&&!r.deleted){const i=r.content.getContent();for(let r=0;r{const n=[];return dt(e,(r,i)=>{n.push(t(r,i,e))}),n},pt=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(null===n){while(null!==t&&t.deleted)t=t.right;if(null===t)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}const e=n[r++];return n.length<=r&&(n=null),{done:!1,value:e}}}},mt=(e,t)=>{const n=at(e,t);let r=e._start;for(null!==n&&(r=n.p,t-=n.index);null!==r;r=r.right)if(!r.deleted&&r.countable){if(t{let i=n;const o=e.doc,a=o.clientID,s=o.store,l=null===n?t._start:n.right;let c=[];const u=()=>{c.length>0&&(i=new _n(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new Cn(c)),i.integrate(e,0),c=[])};r.forEach(n=>{if(null===n)c.push(n);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(n);break;default:switch(u(),n.constructor){case Uint8Array:case ArrayBuffer:i=new _n(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new hn(new Uint8Array(n))),i.integrate(e,0);break;case I:i=new _n(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new gn(n)),i.integrate(e,0);break;default:if(!(n instanceof ct))throw new Error("Unexpected content type in insert operation");i=new _n(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new Fn(n)),i.integrate(e,0)}}}),u()},vt=()=>d["a"]("Length exceeded!"),bt=(e,t,n,r)=>{if(n>t._length)throw vt();if(0===n)return t._searchMarker&&st(t._searchMarker,n,r.length),gt(e,t,null,r);const i=n,o=at(t,n);let a=t._start;for(null!==o&&(a=o.p,n-=o.index,0===n&&(a=a.prev,n+=a&&a.countable&&!a.deleted?a.length:0));null!==a;a=a.right)if(!a.deleted&&a.countable){if(n<=a.length){n{const r=(t._searchMarker||[]).reduce((e,t)=>t.index>e.index?t:e,{index:0,p:t._start});let i=r.p;if(i)while(i.right)i=i.right;return gt(e,t,i,n)},wt=(e,t,n,r)=>{if(0===r)return;const i=n,o=r,a=at(t,n);let s=t._start;for(null!==a&&(s=a.p,n-=a.index);null!==s&&n>0;s=s.right)!s.deleted&&s.countable&&(n0&&null!==s)s.deleted||(r0)throw vt();t._searchMarker&&st(t._searchMarker,i,-o+r)},xt=(e,t,n)=>{const r=t._map.get(n);void 0!==r&&r.delete(e)},kt=(e,t,n,r)=>{const i=t._map.get(n)||null,o=e.doc,a=o.clientID;let s;if(null==r)s=new Cn([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:s=new Cn([r]);break;case Uint8Array:s=new hn(r);break;case I:s=new gn(r);break;default:if(!(r instanceof ct))throw new Error("Unexpected content type");s=new Fn(r)}new _n(fe(a,xe(o.store,a)),i,i&&i.lastId,null,null,t,n,s).integrate(e,0)},At=(e,t)=>{const n=e._map.get(t);return void 0===n||n.deleted?void 0:n.content.getContent()[n.length-1]},Ct=e=>{const t={};return e._map.forEach((e,n)=>{e.deleted||(t[n]=e.content.getContent()[e.length-1])}),t},Et=(e,t)=>{const n=e._map.get(t);return void 0!==n&&!n.deleted},St=e=>b["a"](e.entries(),e=>!e[1].deleted);class Tt extends Qe{constructor(e,t){super(e,t),this._transaction=t}}class Nt extends ct{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(e){const t=new Nt;return t.push(e),t}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Nt}clone(){const e=new Nt;return e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}_callObserver(e,t){super._callObserver(e,t),lt(this,e,new Tt(this,e))}insert(e,t){null!==this.doc?Be(this.doc,n=>{bt(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}push(e){null!==this.doc?Be(this.doc,t=>{yt(t,this,e)}):this._prelimContent.push(...e)}unshift(e){this.insert(0,e)}delete(e,t=1){null!==this.doc?Be(this.doc,n=>{wt(n,this,e,t)}):this._prelimContent.splice(e,t)}get(e){return mt(this,e)}toArray(){return ht(this)}slice(e=0,t=this.length){return ut(this,e,t)}toJSON(){return this.map(e=>e instanceof ct?e.toJSON():e)}map(e){return ft(this,e)}forEach(e){dt(this,e)}[Symbol.iterator](){return pt(this)}_write(e){e.writeTypeRef(Mn)}}const Mt=e=>new Nt;class Lt extends Qe{constructor(e,t,n){super(e,t),this.keysChanged=n}}class Ot extends ct{constructor(e){super(),this._prelimContent=null,this._prelimContent=void 0===e?new Map:new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((e,t)=>{this.set(t,e)}),this._prelimContent=null}_copy(){return new Ot}clone(){const e=new Ot;return this.forEach((t,n)=>{e.set(n,t instanceof ct?t.clone():t)}),e}_callObserver(e,t){lt(this,e,new Lt(this,e,t))}toJSON(){const e={};return this._map.forEach((t,n)=>{if(!t.deleted){const r=t.content.getContent()[t.length-1];e[n]=r instanceof ct?r.toJSON():r}}),e}get size(){return[...St(this._map)].length}keys(){return b["b"](St(this._map),e=>e[0])}values(){return b["b"](St(this._map),e=>e[1].content.getContent()[e[1].length-1])}entries(){return b["b"](St(this._map),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this._map.forEach((t,n)=>{t.deleted||e(t.content.getContent()[t.length-1],n,this)})}[Symbol.iterator](){return this.entries()}delete(e){null!==this.doc?Be(this.doc,t=>{xt(t,this,e)}):this._prelimContent.delete(e)}set(e,t){return null!==this.doc?Be(this.doc,n=>{kt(n,this,e,t)}):this._prelimContent.set(e,t),t}get(e){return At(this,e)}has(e){return Et(this,e)}clear(){null!==this.doc?Be(this.doc,e=>{this.forEach((function(t,n,r){xt(e,r,n)}))}):this._prelimContent.clear()}_write(e){e.writeTypeRef(Ln)}}const Dt=e=>new Ot,Pt=(e,t)=>e===t||"object"===typeof e&&"object"===typeof t&&e&&t&&y["b"](e,t);class It{constructor(e,t,n,r){this.left=e,this.right=t,this.index=n,this.currentAttributes=r}forward(){switch(null===this.right&&d["c"](),this.right.content.constructor){case wn:this.right.deleted||Bt(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const Rt=(e,t,n)=>{while(null!==t.right&&n>0){switch(t.right.content.constructor){case wn:t.right.deleted||Bt(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n{const r=new Map,i=at(t,n);if(i){const t=new It(i.p.left,i.p,i.index,r);return Rt(e,t,n-i.index)}{const i=new It(null,t._start,0,r);return Rt(e,i,n)}},zt=(e,t,n,r)=>{while(null!==n.right&&(!0===n.right.deleted||n.right.content.constructor===wn&&Pt(r.get(n.right.content.key),n.right.content.value)))n.right.deleted||r.delete(n.right.content.key),n.forward();const i=e.doc,o=i.clientID;r.forEach((r,a)=>{const s=n.left,l=n.right,c=new _n(fe(o,xe(i.store,o)),s,s&&s.lastId,l,l&&l.id,t,null,new wn(a,r));c.integrate(e,0),n.right=c,n.forward()})},Bt=(e,t)=>{const{key:n,value:r}=t;null===r?e.delete(n):e.set(n,r)},_t=(e,t)=>{while(1){if(null===e.right)break;if(!(e.right.deleted||e.right.content.constructor===wn&&Pt(t[e.right.content.key]||null,e.right.content.value)))break;e.forward()}},jt=(e,t,n,r)=>{const i=e.doc,o=i.clientID,a=new Map;for(const s in r){const l=r[s],c=n.currentAttributes.get(s)||null;if(!Pt(c,l)){a.set(s,c);const{left:r,right:u}=n;n.right=new _n(fe(o,xe(i.store,o)),r,r&&r.lastId,u,u&&u.id,t,null,new wn(s,l)),n.right.integrate(e,0),n.forward()}}return a},Ht=(e,t,n,r,i)=>{n.currentAttributes.forEach((e,t)=>{void 0===i[t]&&(i[t]=null)});const o=e.doc,a=o.clientID;_t(n,i);const s=jt(e,t,n,i),l=r.constructor===String?new Sn(r):r instanceof ct?new Fn(r):new bn(r);let{left:c,right:u,index:h}=n;t._searchMarker&&st(t._searchMarker,n.index,l.getLength()),u=new _n(fe(a,xe(o.store,a)),c,c&&c.lastId,u,u&&u.id,t,null,l),u.integrate(e,0),n.right=u,n.index=h,n.forward(),zt(e,t,n,s)},Ut=(e,t,n,r,i)=>{const o=e.doc,a=o.clientID;_t(n,i);const s=jt(e,t,n,i);e:while(null!==n.right&&(r>0||s.size>0&&(n.right.deleted||n.right.content.constructor===wn))){if(!n.right.deleted)switch(n.right.content.constructor){case wn:{const{key:t,value:o}=n.right.content,a=i[t];if(void 0!==a){if(Pt(a,o))s.delete(t);else{if(0===r)break e;s.set(t,o)}n.right.delete(e)}else n.currentAttributes.set(t,o);break}default:r0){let i="";for(;r>0;r--)i+="\n";n.right=new _n(fe(a,xe(o.store,a)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Sn(i)),n.right.integrate(e,0),n.forward()}zt(e,t,n,s)},qt=(e,t,n,r,i)=>{let o=t;const s=a["c"]();while(o&&(!o.countable||o.deleted)){if(!o.deleted&&o.content.constructor===wn){const e=o.content;s.set(e.key,e)}o=o.right}let l=0,c=!1;while(t!==o){if(n===t&&(c=!0),!t.deleted){const n=t.content;switch(n.constructor){case wn:{const{key:o,value:a}=n,u=r.get(o)||null;s.get(o)===n&&u!==a||(t.delete(e),l++,c||(i.get(o)||null)!==a||u===a||(null===u?i.delete(o):i.set(o,u))),c||t.deleted||Bt(i,n);break}}}t=t.right}return l},Gt=(e,t)=>{while(t&&t.right&&(t.right.deleted||!t.right.countable))t=t.right;const n=new Set;while(t&&(t.deleted||!t.countable)){if(!t.deleted&&t.content.constructor===wn){const r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},Wt=e=>{let t=0;return Be(e.doc,n=>{let r=e._start,i=e._start,o=a["c"]();const s=a["b"](o);while(i){if(!1===i.deleted)switch(i.content.constructor){case wn:Bt(s,i.content);break;default:t+=qt(n,r,i,o,s),o=a["b"](s),r=i;break}i=i.right}}),t},Vt=e=>{const t=new Set,n=e.doc;for(const[r,i]of e.afterState.entries()){const o=e.beforeState.get(r)||0;i!==o&&Le(e,n.store.clients.get(r),o,i,e=>{e.deleted||e.content.constructor!==wn||e.constructor===un||t.add(e.parent)})}Be(n,n=>{k(e,e.deleteSet,e=>{if(e instanceof un||!e.parent._hasFormatting||t.has(e.parent))return;const r=e.parent;e.content.constructor===wn?t.add(r):Gt(n,e)});for(const e of t)Wt(e)})},Yt=(e,t,n)=>{const r=n,i=a["b"](t.currentAttributes),o=t.right;while(n>0&&null!==t.right){if(!1===t.right.deleted)switch(t.right.content.constructor){case Fn:case bn:case Sn:n{null===e?this.childListChanged=!0:this.keysChanged.add(e)})}get changes(){if(null===this._changes){const e={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=e}return this._changes}get delta(){if(null===this._delta){const e=this.target.doc,t=[];Be(e,e=>{const n=new Map,r=new Map;let i=this.target._start,o=null;const a={};let s="",l=0,c=0;const u=()=>{if(null!==o){let e=null;switch(o){case"delete":c>0&&(e={delete:c}),c=0;break;case"insert":("object"===typeof s||s.length>0)&&(e={insert:s},n.size>0&&(e.attributes={},n.forEach((t,n)=>{null!==t&&(e.attributes[n]=t)}))),s="";break;case"retain":l>0&&(e={retain:l},y["e"](a)||(e.attributes=y["a"]({},a))),l=0;break}e&&t.push(e),o=null}};while(null!==i){switch(i.content.constructor){case Fn:case bn:this.adds(i)?this.deletes(i)||(u(),o="insert",s=i.content.getContent()[0],u()):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=1):i.deleted||("retain"!==o&&(u(),o="retain"),l+=1);break;case Sn:this.adds(i)?this.deletes(i)||("insert"!==o&&(u(),o="insert"),s+=i.content.str):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=i.length):i.deleted||("retain"!==o&&(u(),o="retain"),l+=i.length);break;case wn:{const{key:t,value:s}=i.content;if(this.adds(i)){if(!this.deletes(i)){const l=n.get(t)||null;Pt(l,s)?null!==s&&i.delete(e):("retain"===o&&u(),Pt(s,r.get(t)||null)?delete a[t]:a[t]=s)}}else if(this.deletes(i)){r.set(t,s);const e=n.get(t)||null;Pt(e,s)||("retain"===o&&u(),a[t]=e)}else if(!i.deleted){r.set(t,s);const n=a[t];void 0!==n&&(Pt(n,s)?null!==n&&i.delete(e):("retain"===o&&u(),null===s?delete a[t]:a[t]=s))}i.deleted||("insert"===o&&u(),Bt(n,i.content));break}}i=i.right}u();while(t.length>0){const e=t[t.length-1];if(void 0===e.retain||void 0!==e.attributes)break;t.pop()}}),this._delta=t}return this._delta}}class Kt extends ct{constructor(e){super(),this._pending=void 0!==e?[()=>this.insert(0,e)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(e,t){super._integrate(e,t);try{this._pending.forEach(e=>e())}catch(n){console.error(n)}this._pending=null}_copy(){return new Kt}clone(){const e=new Kt;return e.applyDelta(this.toDelta()),e}_callObserver(e,t){super._callObserver(e,t);const n=new Zt(this,e,t);lt(this,e,n),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){let e="",t=this._start;while(null!==t)!t.deleted&&t.countable&&t.content.constructor===Sn&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){null!==this.doc?Be(this.doc,n=>{const r=new It(null,this._start,0,new Map);for(let i=0;i0)&&Ht(n,this,r,a,o.attributes||{})}else void 0!==o.retain?Ut(n,this,r,o.retain,o.attributes||{}):void 0!==o.delete&&Yt(n,r,o.delete)}}):this._pending.push(()=>this.applyDelta(e))}toDelta(e,t,n){const r=[],i=new Map,o=this.doc;let a="",s=this._start;function l(){if(a.length>0){const e={};let t=!1;i.forEach((n,r)=>{t=!0,e[r]=n});const n={insert:a};t&&(n.attributes=e),r.push(n),a=""}}const c=()=>{while(null!==s){if(ve(s,e)||void 0!==t&&ve(s,t))switch(s.content.constructor){case Sn:{const r=i.get("ychange");void 0===e||ve(s,e)?void 0===t||ve(s,t)?void 0!==r&&(l(),i.delete("ychange")):void 0!==r&&r.user===s.id.client&&"added"===r.type||(l(),i.set("ychange",n?n("added",s.id):{type:"added"})):void 0!==r&&r.user===s.id.client&&"removed"===r.type||(l(),i.set("ychange",n?n("removed",s.id):{type:"removed"})),a+=s.content.str;break}case Fn:case bn:{l();const e={insert:s.content.getContent()[0]};if(i.size>0){const t={};e.attributes=t,i.forEach((e,n)=>{t[n]=e})}r.push(e);break}case wn:ve(s,e)&&(l(),Bt(i,s.content));break}s=s.right}l()};return e||t?Be(o,n=>{e&&be(n,e),t&&be(n,t),c()},"cleanup"):c(),r}insert(e,t,n){if(t.length<=0)return;const r=this.doc;null!==r?Be(r,r=>{const i=Ft(r,this,e);n||(n={},i.currentAttributes.forEach((e,t)=>{n[t]=e})),Ht(r,this,i,t,n)}):this._pending.push(()=>this.insert(e,t,n))}insertEmbed(e,t,n={}){const r=this.doc;null!==r?Be(r,r=>{const i=Ft(r,this,e);Ht(r,this,i,t,n)}):this._pending.push(()=>this.insertEmbed(e,t,n))}delete(e,t){if(0===t)return;const n=this.doc;null!==n?Be(n,n=>{Yt(n,Ft(n,this,e),t)}):this._pending.push(()=>this.delete(e,t))}format(e,t,n){if(0===t)return;const r=this.doc;null!==r?Be(r,r=>{const i=Ft(r,this,e);null!==i.right&&Ut(r,this,i,t,n)}):this._pending.push(()=>this.format(e,t,n))}removeAttribute(e){null!==this.doc?Be(this.doc,t=>{xt(t,this,e)}):this._pending.push(()=>this.removeAttribute(e))}setAttribute(e,t){null!==this.doc?Be(this.doc,n=>{kt(n,this,e,t)}):this._pending.push(()=>this.setAttribute(e,t))}getAttribute(e){return At(this,e)}getAttributes(){return Ct(this)}_write(e){e.writeTypeRef(On)}}const Xt=e=>new Kt;class Jt{constructor(e,t=(()=>!0)){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(null!==e&&(!this._firstCall||e.deleted||!this._filter(t)))do{if(t=e.content.type,e.deleted||t.constructor!==en&&t.constructor!==Qt||null===t._start)while(null!==e){if(null!==e.right){e=e.right;break}e=e.parent===this._root?null:e.parent._item}else e=t._start}while(null!==e&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,null===e?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}}class Qt extends ct{constructor(){super(),this._prelimContent=[]}get firstChild(){const e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Qt}clone(){const e=new Qt;return e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}createTreeWalker(e){return new Jt(this,e)}querySelector(e){e=e.toUpperCase();const t=new Jt(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e),n=t.next();return n.done?null:n.value}querySelectorAll(e){return e=e.toUpperCase(),i["c"](new Jt(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){lt(this,e,new nn(this,t,e))}toString(){return ft(this,e=>e.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,t={},n){const r=e.createDocumentFragment();return void 0!==n&&n._createAssociation(r,this),dt(this,i=>{r.insertBefore(i.toDOM(e,t,n),null)}),r}insert(e,t){null!==this.doc?Be(this.doc,n=>{bt(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}insertAfter(e,t){if(null!==this.doc)Be(this.doc,n=>{const r=e&&e instanceof ct?e._item:e;gt(n,this,r,t)});else{const n=this._prelimContent,r=null===e?0:n.findIndex(t=>t===e)+1;if(0===r&&null!==e)throw d["a"]("Reference item not found");n.splice(r,0,...t)}}delete(e,t=1){null!==this.doc?Be(this.doc,n=>{wt(n,this,e,t)}):this._prelimContent.splice(e,t)}toArray(){return ht(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return mt(this,e)}slice(e=0,t=this.length){return ut(this,e,t)}forEach(e){dt(this,e)}_write(e){e.writeTypeRef(Pn)}}const $t=e=>new Qt;class en extends Qt{constructor(e="UNDEFINED"){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((e,t)=>{this.setAttribute(t,e)}),this._prelimAttrs=null}_copy(){return new en(this.nodeName)}clone(){const e=new en(this.nodeName),t=this.getAttributes();return y["c"](t,(t,n)=>{"string"===typeof t&&e.setAttribute(n,t)}),e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}toString(){const e=this.getAttributes(),t=[],n=[];for(const a in e)n.push(a);n.sort();const r=n.length;for(let a=0;a0?" "+t.join(" "):"";return`<${i}${o}>${super.toString()}`}removeAttribute(e){null!==this.doc?Be(this.doc,t=>{xt(t,this,e)}):this._prelimAttrs.delete(e)}setAttribute(e,t){null!==this.doc?Be(this.doc,n=>{kt(n,this,e,t)}):this._prelimAttrs.set(e,t)}getAttribute(e){return At(this,e)}hasAttribute(e){return Et(this,e)}getAttributes(){return Ct(this)}toDOM(e=document,t={},n){const r=e.createElement(this.nodeName),i=this.getAttributes();for(const o in i){const e=i[o];"string"===typeof e&&r.setAttribute(o,e)}return dt(this,i=>{r.appendChild(i.toDOM(e,t,n))}),void 0!==n&&n._createAssociation(r,this),r}_write(e){e.writeTypeRef(Dn),e.writeKey(this.nodeName)}}const tn=e=>new en(e.readKey());class nn extends Qe{constructor(e,t,n){super(e,n),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(e=>{null===e?this.childListChanged=!0:this.attributesChanged.add(e)})}}class rn extends Ot{constructor(e){super(),this.hookName=e}_copy(){return new rn(this.hookName)}clone(){const e=new rn(this.hookName);return this.forEach((t,n)=>{e.set(n,t)}),e}toDOM(e=document,t={},n){const r=t[this.hookName];let i;return i=void 0!==r?r.createDom(this):document.createElement(this.hookName),i.setAttribute("data-yjs-hook",this.hookName),void 0!==n&&n._createAssociation(i,this),i}_write(e){e.writeTypeRef(In),e.writeKey(this.hookName)}}const on=e=>new rn(e.readKey());class an extends Kt{get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new an}clone(){const e=new an;return e.applyDelta(this.toDelta()),e}toDOM(e=document,t,n){const r=e.createTextNode(this.toString());return void 0!==n&&n._createAssociation(r,this),r}toString(){return this.toDelta().map(e=>{const t=[];for(const r in e.attributes){const n=[];for(const t in e.attributes[r])n.push({key:t,value:e.attributes[r][t]});n.sort((e,t)=>e.keye.nodeName=0;r--)n+=``;return n}).join("")}toJSON(){return this.toString()}_write(e){e.writeTypeRef(Rn)}}const sn=e=>new an;class ln{constructor(e,t){this.id=e,this.length=t}get deleted(){throw d["b"]()}mergeWith(e){return!1}write(e,t,n){throw d["b"]()}integrate(e,t){throw d["b"]()}}const cn=0;class un extends ln{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),ke(e.doc.store,this)}write(e,t){e.writeInfo(cn),e.writeLen(this.length-t)}getMissing(e,t){return null}}class hn{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new hn(this.content)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}}const dn=e=>new hn(e.readBuf());class fn{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new fn(this.len)}splice(e){const t=new fn(this.len-e);return this.len=e,t}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){T(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}}const pn=e=>new fn(e.readLen()),mn=(e,t)=>new I({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class gn{constructor(e){e._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=e;const t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),null!==e.meta&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new gn(mn(this.doc.guid,this.opts))}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}}const vn=e=>new gn(mn(e.readString(),e.readAny()));class bn{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new bn(this.embed)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}}const yn=e=>new bn(e.readJSON());class wn{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new wn(this.key,this.value)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){const n=t.parent;n._searchMarker=null,n._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}}const xn=e=>new wn(e.readKey(),e.readJSON());class kn{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new kn(this.arr)}splice(e){const t=new kn(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){const n=this.arr.length;e.writeLen(n-t);for(let r=t;r{const t=e.readLen(),n=[];for(let r=0;r{const t=e.readLen(),n=[];for(let r=0;r=55296&&n<=56319&&(this.str=this.str.slice(0,e-1)+"�",t.str="�"+t.str.slice(1)),t}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(0===t?this.str:this.str.slice(t))}getRef(){return 4}}const Tn=e=>new Sn(e.readString()),Nn=[Mt,Dt,Xt,tn,$t,on,sn],Mn=0,Ln=1,On=2,Dn=3,Pn=4,In=5,Rn=6;class Fn{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new Fn(this.type._copy())}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;while(null!==t)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(t=>{t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;while(null!==t)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(t=>{while(null!==t)t.gc(e,!0),t=t.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}}const zn=e=>new Fn(Nn[e.readTypeRef()](e)),Bn=(e,t,n)=>{const{client:r,clock:i}=t.id,o=new _n(fe(r,i+n),t,fe(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&o.markDeleted(),t.keep&&(o.keep=!0),null!==t.redone&&(o.redone=fe(t.redone.client,t.redone.clock+n)),t.right=o,null!==o.right&&(o.right.left=o),e._mergeStructs.push(o),null!==o.parentSub&&null===o.right&&o.parent._map.set(o.parentSub,o),t.length=n,o};class _n extends ln{constructor(e,t,n,r,i,o,a,s){super(e,s.getLength()),this.origin=n,this.left=t,this.right=r,this.rightOrigin=i,this.parent=o,this.parentSub=a,this.redone=null,this.content=s,this.info=this.content.isCountable()?f["b"]:0}set marker(e){(this.info&f["d"])>0!==e&&(this.info^=f["d"])}get marker(){return(this.info&f["d"])>0}get keep(){return(this.info&f["a"])>0}set keep(e){this.keep!==e&&(this.info^=f["a"])}get countable(){return(this.info&f["b"])>0}get deleted(){return(this.info&f["c"])>0}set deleted(e){this.deleted!==e&&(this.info^=f["c"])}markDeleted(){this.info|=f["c"]}getMissing(e,t){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=xe(t,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=xe(t,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===he&&this.id.client!==this.parent.client&&this.parent.clock>=xe(t,this.parent.client))return this.parent.client;if(this.origin&&(this.left=Ne(e,t,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Te(e,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===un||this.right&&this.right.constructor===un)this.parent=null;else if(this.parent){if(this.parent.constructor===he){const e=Ee(t,this.parent);e.constructor===un?this.parent=null:this.parent=e.content.type}}else this.left&&this.left.constructor===_n&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===_n&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=Ne(e,e.doc.store,fe(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||null!==this.right.left)||this.left&&this.left.right!==this.right){let t,n=this.left;if(null!==n)t=n.right;else if(null!==this.parentSub){t=this.parent._map.get(this.parentSub)||null;while(null!==t&&null!==t.left)t=t.left}else t=this.parent._start;const r=new Set,i=new Set;while(null!==t&&t!==this.right){if(i.add(t),r.add(t),de(this.origin,t.origin)){if(t.id.client{t.p===e&&(t.p=this,!this.deleted&&this.countable&&(t.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,null!==this.right&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){const t=this.parent;this.countable&&null===this.parentSub&&(t._length-=this.length),this.markDeleted(),T(e.deleteSet,this.id.client,this.id.clock,this.length),Pe(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw d["c"]();this.content.gc(e),t?Me(e,this,new un(this.id,this.length)):this.content=new fn(this.length)}write(e,t){const n=t>0?fe(this.id.client,this.id.clock+t-1):this.origin,r=this.rightOrigin,i=this.parentSub,o=this.content.getRef()&f["k"]|(null===n?0:f["g"])|(null===r?0:f["f"])|(null===i?0:f["e"]);if(e.writeInfo(o),null!==n&&e.writeLeftID(n),null!==r&&e.writeRightID(r),null===n&&null===r){const t=this.parent;if(void 0!==t._item){const n=t._item;if(null===n){const n=pe(t);e.writeParentInfo(!0),e.writeString(n)}else e.writeParentInfo(!1),e.writeLeftID(n.id)}else t.constructor===String?(e.writeParentInfo(!0),e.writeString(t)):t.constructor===he?(e.writeParentInfo(!1),e.writeLeftID(t)):d["c"]();null!==i&&e.writeString(i)}this.content.write(e,t)}}const jn=(e,t)=>Hn[t&f["k"]](e),Hn=[()=>{d["c"]()},pn,An,dn,Tn,yn,xn,zn,En,vn,()=>{d["c"]()}],Un=10;class qn extends ln{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){d["c"]()}write(e,t){e.writeInfo(Un),s["n"](e.restEncoder,this.length-t)}getMissing(e,t){return null}}const Gn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{},Wn="__ $YJS$ __";!0===Gn[Wn]&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),Gn[Wn]=!0}).call(this,n("c8ba"))},"4e2e":function(e,t,n){"use strict";n("6277")},"4e73":function(e,t,n){"use strict";n("7f29a")},"4ec2":function(e,t,n){e.exports=n.p+"img/timeline2.png"},"4f5a":function(e,t,n){e.exports=n.p+"img/-_14.svg"},"4f8c":function(e,t,n){e.exports=n.p+"img/pinkGrape.jpg"},"4f98":function(e,t,n){(function(t){ +function Af(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Cf(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Jt(L(e))}function Ef(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0;return e.forEach((function(e){n.set(e,r),r+=e.length})),n}function Sf(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),16843009*(e+(e>>4)&252645135)>>>24}function Tf(e,t){for(var n=(127&e[t+15])<<7|e[t+14]>>1,r=1&e[t+14],i=t+13;i>=t;--i)r=256*r+e[i];return(128&e[t+15]?-r:r)*Math.pow(10,n-6176)}function Nf(e,t){var n=t?t[0]:0,r=127&e[n];e:if(e[n++]>=128){if(r|=(127&e[n])<<7,e[n++]<128)break e;if(r|=(127&e[n])<<14,e[n++]<128)break e;if(r|=(127&e[n])<<21,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(r+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),r}function Mf(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Lf(e){var t=[],n=[0];while(n[0]=128);a=e.slice(l,n[0]);break;case 5:s=4,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 1:s=8,a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 2:s=Nf(e,n),a=e.slice(n[0],n[0]+s),n[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(o," for Field ").concat(i," at offset ").concat(r))}var c={data:a,type:o};null==t[i]?t[i]=[c]:t[i].push(c)}return t}function Of(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function Df(e){var t,n=[],r=[0];while(r[0]>>0>0),n.push(a)}return n}function Pf(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));var n=[0],r=Nf(t,n),i=[];while(n[0]>2&7),a=(224&t[n[0]++])<<3,a|=t[n[0]++]):(s=1+(t[n[0]++]>>2),2==o?(a=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(a=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),i=[Ef(i)],0==a)throw new Error("Invalid offset 0");if(a>i[0].length)throw new Error("Invalid offset beyond length");if(s>=a){i.push(i[0].slice(-a)),s-=a;while(s>=i[i.length-1].length)i.push(i[i.length-1]),s-=i[i.length-1].length}i.push(i[0].slice(-a,-a+s))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[n[0]],c>1&&(l|=t[n[0]+1]<<8),c>2&&(l|=t[n[0]+2]<<16),c>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}i.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var u=Ef(i);if(u.length!=r)throw new Error("Unexpected length: ".concat(u.length," != ").concat(r));return u}function If(e){var t=[],n=0;while(n1?12:8)+4*Sf(a&(r>1?3470:398)),l=-1,c=-1,u=NaN,h=new Date(2001,0,1);switch(512&a&&(l=o.getUint32(s,!0),s+=4),s+=4*Sf(a&(r>1?12288:4096)),16&a&&(c=o.getUint32(s,!0),s+=4),32&a&&(u=o.getFloat64(s,!0),s+=8),64&a&&(h.setTime(h.getTime()+1e3*o.getFloat64(s,!0)),s+=8),e[2]){case 0:break;case 2:i={t:"n",v:u};break;case 3:i={t:"s",v:t[c]};break;case 5:i={t:"d",v:h};break;case 6:i={t:"b",v:u>0};break;case 7:i={t:"n",v:u/86400};break;case 8:i={t:"e",v:0};break;case 9:if(l>-1)i={t:"s",v:n[l]};else if(c>-1)i={t:"s",v:t[c]};else{if(isNaN(u))throw new Error("Unsupported cell type ".concat(e.slice(0,4)));i={t:"n",v:u}}break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return i}function Ff(e,t,n){var r,i=Af(e),o=i.getUint32(8,!0),a=12,s=-1,l=-1,c=NaN,u=NaN,h=new Date(2001,0,1);switch(1&o&&(c=Tf(e,a),a+=16),2&o&&(u=i.getFloat64(a,!0),a+=8),4&o&&(h.setTime(h.getTime()+1e3*i.getFloat64(a,!0)),a+=8),8&o&&(l=i.getUint32(a,!0),a+=4),16&o&&(s=i.getUint32(a,!0),a+=4),e[1]){case 0:break;case 2:r={t:"n",v:c};break;case 3:r={t:"s",v:t[l]};break;case 5:r={t:"d",v:h};break;case 6:r={t:"b",v:u>0};break;case 7:r={t:"n",v:u/86400};break;case 8:r={t:"e",v:0};break;case 9:if(!(s>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)));r={t:"s",v:n[s]};break;case 10:r={t:"n",v:c};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&o," : ").concat(e.slice(0,4)))}return r}function zf(e,t,n){switch(e[0]){case 0:case 1:case 2:case 3:return Rf(e,t,n,e[0]);case 5:return Ff(e,t,n);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Bf(e){var t=Lf(e);return Nf(t[1][0].data)}function _f(e,t){var n=Lf(t.data),r=Mf(n[1][0].data),i=n[3],o=[];return(i||[]).forEach((function(t){var n=Lf(t.data),i=Mf(n[1][0].data)>>>0;switch(r){case 1:o[i]=Cf(n[3][0].data);break;case 8:var a=e[Bf(n[9][0].data)][0],s=Lf(a.data),l=e[Bf(s[1][0].data)][0],c=Mf(l.meta[1][0].data);if(2001!=c)throw new Error("2000 unexpected reference to ".concat(c));var u=Lf(l.data);o[i]=u[3].map((function(e){return Cf(e.data)})).join("");break}})),o}function jf(e,t){var n,r,i,o,a,s,l,c,u,h,d,f,p,m,g,v,b=Lf(e),y=Mf(b[1][0].data)>>>0,w=Mf(b[2][0].data)>>>0,x=(null==(r=null==(n=b[8])?void 0:n[0])?void 0:r.data)&&Mf(b[8][0].data)>0||!1;if((null==(o=null==(i=b[7])?void 0:i[0])?void 0:o.data)&&0!=t)g=null==(s=null==(a=b[7])?void 0:a[0])?void 0:s.data,v=null==(c=null==(l=b[6])?void 0:l[0])?void 0:c.data;else{if(!(null==(h=null==(u=b[4])?void 0:u[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");g=null==(f=null==(d=b[4])?void 0:d[0])?void 0:f.data,v=null==(m=null==(p=b[3])?void 0:p[0])?void 0:m.data}for(var k=x?4:1,A=Af(g),C=[],E=0;E=1&&(T[C[C.length-1][0]]=v.subarray(C[C.length-1][1]*k)),{R:y,cells:T}}function Hf(e,t){var n,r=Lf(t.data),i=(null==(n=null==r?void 0:r[7])?void 0:n[0])?Mf(r[7][0].data)>>>0>0?1:0:-1,o=Of(r[5],(function(e){return jf(e,i)}));return{nrows:Mf(r[4][0].data)>>>0,data:o.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(n,r){if(e[t.R][r])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(r));e[t.R][r]=n})),e}),[])}}function Uf(e,t,n){var r,i=Lf(t.data),o={s:{r:0,c:0},e:{r:0,c:0}};if(o.e.r=(Mf(i[6][0].data)>>>0)-1,o.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(o.e.c=(Mf(i[7][0].data)>>>0)-1,o.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));n["!ref"]=gr(o);var a=Lf(i[4][0].data),s=_f(e,e[Bf(a[4][0].data)][0]),l=(null==(r=a[17])?void 0:r[0])?_f(e,e[Bf(a[17][0].data)][0]):[],c=Lf(a[3][0].data),u=0;c[1].forEach((function(t){var r=Lf(t.data),i=e[Bf(r[2][0].data)][0],o=Mf(i.meta[1][0].data);if(6002!=o)throw new Error("6001 unexpected reference to ".concat(o));var a=Hf(e,i);a.data.forEach((function(e,t){e.forEach((function(e,r){var i=pr({r:u+t,c:r}),o=zf(e,s,l);o&&(n[i]=o)}))})),u+=a.nrows}))}function qf(e,t){var n=Lf(t.data),r={"!ref":"A1"},i=e[Bf(n[2][0].data)],o=Mf(i[0].meta[1][0].data);if(6001!=o)throw new Error("6000 unexpected reference to ".concat(o));return Uf(e,i[0],r),r}function Gf(e,t){var n,r=Lf(t.data),i={name:(null==(n=r[1])?void 0:n[0])?Cf(r[1][0].data):"",sheets:[]},o=Of(r[2],Bf);return o.forEach((function(t){e[t].forEach((function(t){var n=Mf(t.meta[1][0].data);6e3==n&&i.sheets.push(qf(e,t))}))})),i}function Wf(e,t){var n=xp(),r=Lf(t.data),i=Of(r[1],Bf);if(i.forEach((function(t){e[t].forEach((function(t){var r=Mf(t.meta[1][0].data);if(2==r){var i=Gf(e,t);i.sheets.forEach((function(e,t){kp(n,e,0==t?i.name:i.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n}function Vf(e){var t,n,r,i,o={},a=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)){var t,n;try{t=If(e.content)}catch(r){return console.log("?? "+e.content.length+" "+(r.message||r))}try{n=Df(t)}catch(r){return console.log("## "+(r.message||r))}n.forEach((function(e){o[e.id]=e.messages,a.push(e.id)}))}})),!a.length)throw new Error("File has no messages");var s=(null==(i=null==(r=null==(n=null==(t=null==o?void 0:o[1])?void 0:t[0])?void 0:n.meta)?void 0:r[1])?void 0:i[0].data)&&1==Mf(o[1][0].meta[1][0].data)&&o[1][0];if(s||a.forEach((function(e){o[e].forEach((function(e){var t=Mf(e.meta[1][0].data)>>>0;if(1==t){if(s)throw new Error("Document has multiple roots");s=e}}))})),!s)throw new Error("Cannot find Document root");return Wf(o,s)}function Yf(e){return function(t){for(var n=0;n!=e.length;++n){var r=e[n];void 0===t[r[0]]&&(t[r[0]]=r[1]),"n"===r[2]&&(t[r[0]]=Number(t[r[0]]))}}}function Zf(e){Yf([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Kf(e){return pi.WS.indexOf(e)>-1?"sheet":pi.CS&&e==pi.CS?"chart":pi.DS&&e==pi.DS?"dialog":pi.MS&&e==pi.MS?"macro":e&&e.length?e:"sheet"}function Xf(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,Kf(e["!id"][t.id].Type)]}))}catch(n){return null}return e&&0!==e.length?e:null}function Jf(e,t,n,r,i,o,a,s,l,c,u,h){try{o[r]=gi(Ct(e,n,!0),t);var d,f=At(e,t);switch(s){case"sheet":d=Ad(f,t,i,l,o[r],c,u,h);break;case"chart":if(d=Cd(f,t,i,l,o[r],c,u,h),!d||!d["!drawel"])break;var p=Mt(d["!drawel"].Target,t),m=mi(p),g=Bl(Ct(e,p,!0),gi(Ct(e,m,!0),p)),v=Mt(g,p),b=mi(v);d=nd(Ct(e,v,!0),v,l,gi(Ct(e,b,!0),v),c,d);break;case"macro":d=Ed(f,t,i,l,o[r],c,u,h);break;case"dialog":d=Sd(f,t,i,l,o[r],c,u,h);break;default:throw new Error("Unrecognized sheet type "+s)}a[r]=d;var y=[];o&&o[r]&&Qe(o[r]).forEach((function(n){var i="";if(o[r][n].Type==pi.CMNT){i=Mt(o[r][n].Target,t);var a=Ld(At(e,i,!0),i,l);if(!a||!a.length)return;_l(d,a,!1)}o[r][n].Type==pi.TCMNT&&(i=Mt(o[r][n].Target,t),y=y.concat(Hl(At(e,i,!0),l)))})),y&&y.length&&_l(d,y,!0,l.people||[])}catch(w){if(l.WTF)throw w}}function Qf(e){return"/"==e.charAt(0)?e.slice(1):e}function $f(e,t){if(qe(),t=t||{},Zf(t),xt(e,"META-INF/manifest.xml"))return xf(e,t);if(xt(e,"objectdata.xml"))return xf(e,t);if(xt(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if("undefined"!=typeof Vf){if(e.FileIndex)return Vf(e);var n=Ke.utils.cfb_new();return St(e).forEach((function(t){Tt(n,t,Et(e,t))})),Vf(n)}throw new Error("Unsupported NUMBERS file")}if(!xt(e,"[Content_Types].xml")){if(xt(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(xt(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");throw new Error("Unsupported ZIP file")}var r,i,o=St(e),a=fi(Ct(e,"[Content_Types].xml")),s=!1;if(0===a.workbooks.length&&(i="xl/workbook.xml",At(e,i,!0)&&a.workbooks.push(i)),0===a.workbooks.length){if(i="xl/workbook.bin",!At(e,i,!0))throw new Error("Could not find workbook");a.workbooks.push(i),s=!0}"bin"==a.workbooks[0].slice(-3)&&(s=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(Xu=[],a.sst)try{Xu=Md(At(e,Qf(a.sst)),a.sst,t)}catch(L){if(t.WTF)throw L}t.cellStyles&&a.themes.length&&(l=Nd(Ct(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(c=Td(At(e,Qf(a.style)),a.style,l,t))}a.links.map((function(n){try{var r=gi(Ct(e,mi(Qf(n))),n);return Dd(At(e,Qf(n)),r,n,t)}catch(L){}}));var u=kd(At(e,Qf(a.workbooks[0])),a.workbooks[0],t),h={},d="";a.coreprops.length&&(d=At(e,Qf(a.coreprops[0]),!0),d&&(h=xi(d)),0!==a.extprops.length&&(d=At(e,Qf(a.extprops[0]),!0),d&&Ci(d,h,t)));var f={};t.bookSheets&&!t.bookProps||0!==a.custprops.length&&(d=Ct(e,Qf(a.custprops[0]),!0),d&&(f=Si(d,t)));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?r=u.Sheets.map((function(e){return e.name})):h.Worksheets&&h.SheetNames.length>0&&(r=h.SheetNames),t.bookProps&&(p.Props=h,p.Custprops=f),t.bookSheets&&"undefined"!==typeof r&&(p.SheetNames=r),t.bookSheets?p.SheetNames:t.bookProps))return p;r={};var m={};t.bookDeps&&a.calcchain&&(m=Od(At(e,Qf(a.calcchain)),a.calcchain,t));var g,v,b=0,y={},w=u.Sheets;h.Worksheets=w.length,h.SheetNames=[];for(var x=0;x!=w.length;++x)h.SheetNames[x]=w[x].name;var k=s?"bin":"xml",A=a.workbooks[0].lastIndexOf("/"),C=(a.workbooks[0].slice(0,A+1)+"_rels/"+a.workbooks[0].slice(A+1)+".rels").replace(/^\//,"");xt(e,C)||(C="xl/_rels/workbook."+k+".rels");var E=gi(Ct(e,C,!0),C.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=Pd(At(e,Qf(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=Ul(At(e,Qf(a.people[0])),t)),E&&(E=Xf(E,u.Sheets));var S=At(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(b=0;b!=h.Worksheets;++b){var T="sheet";if(E&&E[b]?(g="xl/"+E[b][1].replace(/[\/]?xl\//,""),xt(e,g)||(g=E[b][1]),xt(e,g)||(g=C.replace(/_rels\/.*$/,"")+E[b][1]),T=E[b][2]):(g="xl/worksheets/sheet"+(b+1-S)+"."+k,g=g.replace(/sheet0\./,"sheet.")),v=g.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(b!=t.sheets)continue e;break;case"string":if(h.SheetNames[b].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var N=!1,M=0;M!=t.sheets.length;++M)"number"==typeof t.sheets[M]&&t.sheets[M]==b&&(N=1),"string"==typeof t.sheets[M]&&t.sheets[M].toLowerCase()==h.SheetNames[b].toLowerCase()&&(N=1);if(!N)continue e}}Jf(e,g,v,h.SheetNames[b],b,y,r,T,t,u,l,c)}return p={Directory:a,Workbook:u,Props:h,Custprops:f,Deps:m,Sheets:r,SheetNames:h.SheetNames,Strings:Xu,Styles:c,Themes:l,SSF:dt(Z)},t&&t.bookFiles&&(e.files?(p.keys=o,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach((function(t,n){t=t.replace(/^Root Entry[\/]/,""),p.keys.push(t),p.files[t]=e.FileIndex[n]})))),t&&t.bookVBA&&(a.vba.length>0?p.vbaraw=At(e,Qf(a.vba[0]),!0):a.defaults&&a.defaults.bin===Vl&&(p.vbaraw=At(e,"xl/vbaProject.bin",!0))),p}function ep(e,t){var n=t||{},r="Workbook",i=Ke.find(e,r);try{if(r="/!DataSpaces/Version",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(ss(i.content),r="/!DataSpaces/DataSpaceMap",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var o=cs(i.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var a=us(i.content);if(1!=a.length||"StrongEncryptionTransform"!=a[0])throw new Error("ECMA-376 Encrypted file bad "+r);if(r="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);ds(i.content)}catch(l){}if(r="/EncryptionInfo",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);var s=ms(i.content);if(r="/EncryptedPackage",i=Ke.find(e,r),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+r);if(4==s[0]&&"undefined"!==typeof decrypt_agile)return decrypt_agile(s[1],i.content,n.password||"",n);if(2==s[0]&&"undefined"!==typeof decrypt_std76)return decrypt_std76(s[1],i.content,n.password||"",n);throw new Error("File is password-protected")}function tp(e,t){var n="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":n=C(e.slice(0,12));break;case"binary":n=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function np(e,t){return Ke.find(e,"EncryptedPackage")?ep(e,t):tf(e,t)}function rp(t,n){var r,i=t,o=n||{};return o.type||(o.type=E&&e.isBuffer(t)?"buffer":"base64"),r=Nt(i,o),$f(r,o)}function ip(e,t){var n=0;e:while(n=2&&0===o[3])return Wa.to_workbook(i,r);if(0===o[2]&&(8===o[3]||9===o[3]))return Wa.to_workbook(i,r)}break;case 3:case 131:case 139:case 140:return _a.to_workbook(i,r);case 123:if(92===o[1]&&114===o[2]&&116===o[3])return Ns.to_workbook(i,r);break;case 10:case 13:case 32:return op(i,r);case 137:if(80===o[1]&&78===o[2]&&71===o[3])throw new Error("PNG Image File is not a spreadsheet");break}return Ba.indexOf(o[0])>-1&&o[2]<=12&&o[3]<=31?_a.to_workbook(i,r):lp(t,i,r,a)}function up(e,t,n,r,i,o,a,s){var l=or(n),c=s.defval,u=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),h=!0,d=1===i?[]:{};if(1!==i)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:n,enumerable:!1})}catch(g){d.__rowNum__=n}else d.__rowNum__=n;if(!a||e[n])for(var f=t.s.c;f<=t.e.c;++f){var p=a?e[n][f]:e[r[f]+l];if(void 0!==p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+p.t)}if(null!=o[f]){if(null==m)if("e"==p.t&&null===m)d[o[f]]=null;else if(void 0!==c)d[o[f]]=c;else{if(!u||null!==m)continue;d[o[f]]=null}else d[o[f]]=u&&("n"!==p.t||"n"===p.t&&!1!==s.rawNumbers)?m:yr(p,m,s);null!=m&&(h=!1)}}else{if(void 0===c)continue;null!=o[f]&&(d[o[f]]=c)}}return{row:d,isempty:h}}function hp(e,t){if(null==e||null==e["!ref"])return[];var n={t:"n",v:0},r=0,i=1,o=[],a=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=t||{},u=null!=c.range?c.range:e["!ref"];switch(1===c.header?r=1:"A"===c.header?r=2:Array.isArray(c.header)?r=3:null==c.header&&(r=0),typeof u){case"string":l=vr(u);break;case"number":l=vr(e["!ref"]),l.s.r=u;break;default:l=u}r>0&&(i=0);var h=or(l.s.r),d=[],f=[],p=0,m=0,g=Array.isArray(e),v=l.s.r,b=0,y={};g&&!e[v]&&(e[v]=[]);var w=c.skipHidden&&e["!cols"]||[],x=c.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(w[b]||{}).hidden)switch(d[b]=cr(b),n=g?e[v][b]:e[d[b]+h],r){case 1:o[b]=b-l.s.c;break;case 2:o[b]=d[b];break;case 3:o[b]=c.header[b-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),s=a=yr(n,null,c),m=y[a]||0,m){do{s=a+"_"+m++}while(y[s]);y[a]=m,y[s]=1}else y[a]=1;o[b]=s}for(v=l.s.r+i;v<=l.e.r;++v)if(!(x[v]||{}).hidden){var k=up(e,l,v,d,r,o,g,c);(!1===k.isempty||(1===r?!1!==c.blankrows:c.blankrows))&&(f[p++]=k.row)}return f.length=p,f}var dp=/"/g;function fp(e,t,n,r,i,o,a,s){for(var l=!0,c=[],u="",h=or(n),d=t.s.c;d<=t.e.c;++d)if(r[d]){var f=s.dense?(e[n]||[])[d]:e[r[d]+h];if(null==f)u="";else if(null!=f.v){l=!1,u=""+(s.rawNumbers&&"n"==f.t?f.v:yr(f,null,s));for(var p=0,m=0;p!==u.length;++p)if((m=u.charCodeAt(p))===i||m===o||34===m||s.forceQuotes){u='"'+u.replace(dp,'""')+'"';break}"ID"==u&&(u='"ID"')}else null==f.f||f.F?u="":(l=!1,u="="+f.f,u.indexOf(",")>=0&&(u='"'+u.replace(dp,'""')+'"'));c.push(u)}return!1===s.blankrows&&l?null:c.join(a)}function pp(e,t){var n=[],r=null==t?{}:t;if(null==e||null==e["!ref"])return"";var i=vr(e["!ref"]),o=void 0!==r.FS?r.FS:",",a=o.charCodeAt(0),s=void 0!==r.RS?r.RS:"\n",l=s.charCodeAt(0),c=new RegExp(("|"==o?"\\|":o)+"+$"),u="",h=[];r.dense=Array.isArray(e);for(var d=r.skipHidden&&e["!cols"]||[],f=r.skipHidden&&e["!rows"]||[],p=i.s.c;p<=i.e.c;++p)(d[p]||{}).hidden||(h[p]=cr(p));for(var m=0,g=i.s.r;g<=i.e.r;++g)(f[g]||{}).hidden||(u=fp(e,i,g,h,a,l,o,r),null!=u&&(r.strip&&(u=u.replace(c,"")),(u||!1!==r.blankrows)&&n.push((m++?s:"")+u)));return delete r.dense,n.join("")}function mp(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=pp(e,t);if("undefined"==typeof g||"string"==t.type)return n;var r=g.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+r}function gp(e){var t,n="",r="";if(null==e||null==e["!ref"])return[];var i,o=vr(e["!ref"]),a="",s=[],l=[],c=Array.isArray(e);for(i=o.s.c;i<=o.e.c;++i)s[i]=cr(i);for(var u=o.s.r;u<=o.e.r;++u)for(a=or(u),i=o.s.c;i<=o.e.c;++i)if(n=s[i]+a,t=c?(e[u]||[])[i]:e[n],r="",void 0!==t){if(null!=t.F){if(n=t.F,!t.f)continue;r=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}if(null!=t.f)r=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)r=""+t.v;else if("b"==t.t)r=t.v?"TRUE":"FALSE";else if(void 0!==t.w)r="'"+t.w;else{if(void 0===t.v)continue;r="s"==t.t?"'"+t.v:""+t.v}}l[l.length]=n+"="+r}return l}function vp(e,t,n){var r,i=n||{},o=+!i.skipHeader,a=e||{},s=0,l=0;if(a&&null!=i.origin)if("number"==typeof i.origin)s=i.origin;else{var c="string"==typeof i.origin?fr(i.origin):i.origin;s=c.r,l=c.c}var u={s:{c:0,r:0},e:{c:l,r:s+t.length-1+o}};if(a["!ref"]){var h=vr(a["!ref"]);u.e.c=Math.max(u.e.c,h.e.c),u.e.r=Math.max(u.e.r,h.e.r),-1==s&&(s=h.e.r+1,u.e.r=s+t.length-1+o)}else-1==s&&(s=0,u.e.r=t.length-1+o);var d=i.header||[],f=0;t.forEach((function(e,t){Qe(e).forEach((function(n){-1==(f=d.indexOf(n))&&(d[f=d.length]=n);var c=e[n],u="z",h="",p=pr({c:l+f,r:s+t+o});r=yp(a,p),!c||"object"!==typeof c||c instanceof Date?("number"==typeof c?u="n":"boolean"==typeof c?u="b":"string"==typeof c?u="s":c instanceof Date?(u="d",i.cellDates||(u="n",c=tt(c)),h=i.dateNF||Z[14]):null===c&&i.nullError&&(u="e",c=0),r?(r.t=u,r.v=c,delete r.w,delete r.R,h&&(r.z=h)):a[p]=r={t:u,v:c},h&&(r.z=h)):a[p]=c}))})),u.e.c=Math.max(u.e.c,l+d.length-1);var p=or(s);if(o)for(f=0;f=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var n=e.SheetNames.indexOf(t);if(n>-1)return n;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}function xp(){return{SheetNames:[],Sheets:{}}}function kp(e,t,n,r){var i=1;if(!n)for(;i<=65535;++i,n=void 0)if(-1==e.SheetNames.indexOf(n="Sheet"+i))break;if(!n||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(r&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\d+)$/);i=o&&+o[2]||0;var a=o&&o[1]||n;for(++i;i<=65535;++i)if(-1==e.SheetNames.indexOf(n=a+i))break}if(pd(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function Ap(e,t,n){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var r=wp(e,t);switch(e.Workbook.Sheets[r]||(e.Workbook.Sheets[r]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[r].Hidden=n}function Cp(e,t){return e.z=t,e}function Ep(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}function Sp(e,t,n){return Ep(e,"#"+t,n)}function Tp(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})}function Np(e,t,n,r){for(var i="string"!=typeof t?t:vr(t),o="string"==typeof t?t:gr(t),a=i.s.r;a<=i.e.r;++a)for(var s=i.s.c;s<=i.e.c;++s){var l=yp(e,a,s);l.t="n",l.F=o,delete l.v,a==i.s.r&&s==i.s.c&&(l.f=n,r&&(l.D=!0))}return e}var Mp={encode_col:cr,encode_row:or,encode_cell:pr,encode_range:gr,decode_col:lr,decode_row:ir,split_cell:dr,decode_cell:fr,decode_range:mr,format_cell:yr,sheet_add_aoa:xr,sheet_add_json:vp,sheet_add_dom:ff,aoa_to_sheet:kr,json_to_sheet:bp,table_to_sheet:pf,table_to_book:mf,sheet_to_csv:pp,sheet_to_txt:mp,sheet_to_json:hp,sheet_to_html:df,sheet_to_formulae:gp,sheet_to_row_object_array:hp,sheet_get_cell:yp,book_new:xp,book_append_sheet:kp,book_set_sheet_visibility:Ap,cell_set_number_format:Cp,cell_set_hyperlink:Ep,cell_set_internal_link:Sp,cell_add_comment:Tp,sheet_set_array_formula:Np,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};i.version}).call(this,n("b639").Buffer,n("4362"))},"25cac":function(e,t,n){e.exports=n.p+"img/a-8-DNA.svg"},2613:function(e,t,n){e.exports=n.p+"img/ziyuan_5.svg"},"265a":function(e,t,n){e.exports=n.p+"img/bijiben.svg"},"26eb":function(e,t,n){e.exports=n.p+"img/-_17.svg"},2710:function(e,t,n){e.exports=n.p+"img/fanqiejiang.svg"},2783:function(e,t,n){e.exports=n.p+"img/ziyuan_13.svg"},"27bf":function(e,t,n){"use strict";e.exports=a;var r=n("b19a"),i=Object.create(n("3a7c"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengtht.key===e&&null!==this.onmessage&&this.onmessage({data:o["d"](t.newValue||"")}),a["b"](this._onChange)}postMessage(e){a["c"].setItem(this.room,o["e"](o["b"](e)))}close(){a["a"](this._onChange)}}const c="undefined"===typeof BroadcastChannel?l:BroadcastChannel,u=e=>r["e"](s,e,()=>{const t=i["a"](),n=new c(e);return n.onmessage=e=>t.forEach(t=>t(e.data,"broadcastchannel")),{bc:n,subs:t}}),h=(e,t)=>(u(e).subs.add(t),t),d=(e,t)=>{const n=u(e),r=n.subs.delete(t);return r&&0===n.subs.size&&(n.bc.close(),s.delete(e)),r},f=(e,t,n=null)=>{const r=u(e);r.bc.postMessage(t),r.subs.forEach(e=>e(t,n))}},"2f44":function(e,t,n){},"2f97":function(e,t,n){e.exports=n.p+"img/brainImpairedPink.jpg"},"300d":function(e,t,n){},"318a":function(e,t,n){e.exports=n.p+"img/jisuan.svg"},3213:function(e,t,n){"use strict";var r=n("d7f0"),i=n("ce8e").supportsDescriptors,o=Object.getOwnPropertyDescriptor;e.exports=function(){if(i&&"gim"===/a/gim.flags){var e=o(RegExp.prototype,"flags");if(e&&"function"===typeof e.get&&"boolean"===typeof RegExp.prototype.dotAll&&"boolean"===typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},3232:function(e,t,n){"use strict";n("c6ef")},3247:function(e,t,n){e.exports=n.p+"img/-_16.svg"},"325b":function(e,t,n){e.exports=n.p+"img/a-4-lunyi.svg"},"33d7":function(e,t,n){e.exports=n.p+"img/a-1-shilibiao.svg"},3469:function(e,t,n){e.exports=n.p+"img/a-3-chuangkoutie.svg"},"347b":function(e,t,n){e.exports=n.p+"img/OAxitong.svg"},3561:function(e,t,n){"use strict";n("5c87")},"35aa":function(e,t,n){e.exports=n.p+"img/shengdanjie.svg"},"35ae":function(e,t,n){e.exports=n.p+"img/menpiao.svg"},"361f":function(e,t,n){"use strict";var r=n("b257"),i=n("4d80"),o=n("f770"),a=n("1a33"),s=n("bbea"),l=n("44b2"),c=n("ef7a"),u=n("ce2e"),h=n("899a"),d=n("d898"),f=n("860a"),p=n("8d5c"),m=n("ec82");e.exports=function(e,t,n,g){var v="stackTraceLimit",b=g?2:1,y=e.split("."),w=y[y.length-1],x=r.apply(null,y);if(x){var k=x.prototype;if(!m&&i(k,"cause")&&delete k.cause,!n)return x;var A=r("Error"),C=t((function(e,t){var n=h(g?t:e,void 0),r=g?new x(e):new x;return void 0!==n&&o(r,"message",n),f(r,C,r.stack,2),this&&a(k,this)&&u(r,this,C),arguments.length>b&&d(r,arguments[b]),r}));if(C.prototype=k,"Error"!==w?s?s(C,A):l(C,A,{name:!0}):p&&v in x&&(c(C,x,v),c(C,x,"prepareStackTrace")),l(C,x),!m)try{k.name!==w&&o(k,"name",w),k.constructor=C}catch(E){}return C}}},"369f":function(e,t,n){e.exports=n.p+"img/sousuo.svg"},3752:function(e,t,n){e.exports=n.p+"img/gongju.svg"},"3a7c":function(e,t,n){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function l(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function u(e){return void 0===e}function h(e){return"[object RegExp]"===v(e)}function d(e){return"object"===typeof e&&null!==e}function f(e){return"[object Date]"===v(e)}function p(e){return"[object Error]"===v(e)||e instanceof Error}function m(e){return"function"===typeof e}function g(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function v(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=a,t.isNumber=s,t.isString=l,t.isSymbol=c,t.isUndefined=u,t.isRegExp=h,t.isObject=d,t.isDate=f,t.isError=p,t.isFunction=m,t.isPrimitive=g,t.isBuffer=n("b639").Buffer.isBuffer},"3a98":function(e,t,n){"use strict";var r=n("9803")(),i=n("1d76"),o=i("Object.prototype.toString"),a=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},s=function(e){return!!a(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return a(arguments)}();a.isLegacyArguments=s,e.exports=l?a:s},"3aa9":function(e,t,n){"use strict";n("7de5")},"3acd":function(e,t,n){e.exports=n.p+"img/fanwendengji.svg"},"3b50":function(e,t,n){e.exports=n.p+"img/jiandan.svg"},"3bbe":function(e,t,n){var r=n("1626"),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw o("Can't set "+i(e)+" as a prototype")}},"3bd3":function(e,t,n){e.exports=n.p+"img/jiaoxuelou.svg"},"3c2a":function(e,t,n){e.exports=n.p+"img/fishbone.png"},"3cc4":function(e,t,n){e.exports=n.p+"img/courseGreen.jpg"},"3ce0":function(e,t,n){"use strict";var r=n("3475"),i=n("8300"),o=n("9440"),a=n("e6a3"),s=n("8953"),l=n("af17"),c=1!==[].unshift(0),u=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}},h=c||!u();r({target:"Array",proto:!0,arity:1,forced:h},{unshift:function(e){var t=i(this),n=o(t),r=arguments.length;if(r){l(n+r);var c=n;while(c--){var u=c+r;c in t?t[u]=t[c]:s(t,u)}for(var h=0;h1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===E(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=N(e),r=n.length>0?n[0]:"",o=M("%"+r+"%",t),s=o.name,c=o.value,u=!1,h=o.alias;h&&(r=h[0],k(n,x([0,1],h)));for(var d=1,f=!0;d=n.length){var b=l(c,p);f=!!b,c=f&&"get"in b&&!("originalValue"in b.get)?b.get:c[p]}else f=w(c,p),c=c[p];f&&!u&&(m[s]=c)}}return c}},"3fb5":function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},"41ab":function(e,t,n){},"41af":function(e,t,n){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(t in e[t]=r,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},"41c5":function(e,t,n){e.exports=n.p+"img/-_12.svg"},4244:function(e,t,n){e.exports=n.p+"img/a-20-shuye.svg"},"429b":function(e,t,n){e.exports=n("faa1").EventEmitter},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4363:function(e,t,n){"use strict";n("e40c")},"43cf":function(e,t,n){e.exports=n.p+"img/xiezizhuo.svg"},"442c":function(e,t,n){"use strict";n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return b})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"g",(function(){return A})),n.d(t,"h",(function(){return L})),n.d(t,"i",(function(){return D})),n.d(t,"j",(function(){return M}));var r=n("b923"),i=n("6f27"),o=n("6ffb");const a=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function s(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const l=(e,t,n)=>{let a=s(e,n);if(!a)return!1;let l=h(a);if(!l){let n=a.blockRange(),i=n&&Object(r["k"])(n);return null!=i&&(t&&t(e.tr.lift(n,i).scrollIntoView()),!0)}let u=l.nodeBefore;if(!u.type.spec.isolating&&E(e,l,t))return!0;if(0==a.parent.content.size&&(c(u,"end")||o["NodeSelection"].isSelectable(u))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):r.parentOffset>0)return!1;a=h(r)}let s=a&&a.nodeBefore;return!(!s||!o["NodeSelection"].isSelectable(s))&&(t&&t(e.tr.setSelection(o["NodeSelection"].create(e.doc,a.pos-s.nodeSize)).scrollIntoView()),!0)};function h(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function d(e,t){let{$cursor:n}=e.selection;return!n||(t?!t.endOfTextblock("forward",e):n.parentOffset{let a=d(e,n);if(!a)return!1;let s=m(a);if(!s)return!1;let l=s.nodeAfter;if(E(e,s,t))return!0;if(0==a.parent.content.size&&(c(l,"start")||o["NodeSelection"].isSelectable(l))){let n=Object(r["l"])(e.doc,a.before(),a.after(),i["Slice"].empty);if(n&&n.slice.size{let{$head:r,empty:i}=e.selection,a=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):r.parentOffset=0;t--){let n=e.node(t);if(e.index(t)+1{let{$head:n,$anchor:r}=e.selection;return!(!n.parent.type.spec.code||!n.sameParent(r))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)};function v(e){for(let t=0;t{let{$head:n,$anchor:r}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),a=n.indexAfter(-1),s=v(i.contentMatchAt(a));if(!s||!i.canReplaceWith(a,a,s))return!1;if(t){let r=n.after(),i=e.tr.replaceWith(r,r,s.createAndFill());i.setSelection(o["Selection"].near(i.doc.resolve(r),1)),t(i.scrollIntoView())}return!0},y=(e,t)=>{let n=e.selection,{$from:r,$to:i}=n;if(n instanceof o["AllSelection"]||r.parent.inlineContent||i.parent.inlineContent)return!1;let a=v(i.parent.contentMatchAt(i.indexAfter()));if(!a||!a.isTextblock)return!1;if(t){let n=(!r.parentOffset&&i.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let i=n.before();if(Object(r["g"])(e.doc,i))return t&&t(e.tr.split(i).scrollIntoView()),!0}let i=n.blockRange(),o=i&&Object(r["k"])(i);return null!=o&&(t&&t(e.tr.lift(i,o).scrollIntoView()),!0)};function x(e){return(t,n)=>{let{$from:i,$to:a}=t.selection;if(t.selection instanceof o["NodeSelection"]&&t.selection.node.isBlock)return!(!i.parentOffset||!Object(r["g"])(t.doc,i.pos))&&(n&&n(t.tr.split(i.pos).scrollIntoView()),!0);if(!i.parent.isBlock)return!1;if(n){let s=a.parentOffset==a.parent.content.size,l=t.tr;(t.selection instanceof o["TextSelection"]||t.selection instanceof o["AllSelection"])&&l.deleteSelection();let c=0==i.depth?null:v(i.node(-1).contentMatchAt(i.indexAfter(-1))),u=e&&e(a.parent,s),h=u?[u]:s&&c?[{type:c}]:void 0,d=Object(r["g"])(l.doc,l.mapping.map(i.pos),1,h);if(h||d||!Object(r["g"])(l.doc,l.mapping.map(i.pos),1,c?[{type:c}]:void 0)||(c&&(h=[{type:c}]),d=!0),d&&(l.split(l.mapping.map(i.pos),1,h),!s&&!i.parentOffset&&i.parent.type!=c)){let e=l.mapping.map(i.before()),t=l.doc.resolve(e);c&&i.node(-1).canReplaceWith(t.index(),t.index()+1,c)&&l.setNodeMarkup(l.mapping.map(i.before()),c)}n(l.scrollIntoView())}return!0}}const k=x(),A=(e,t)=>(t&&t(e.tr.setSelection(new o["AllSelection"](e.doc))),!0);function C(e,t,n){let i=t.nodeBefore,o=t.nodeAfter,a=t.index();return!!(i&&o&&i.type.compatibleContent(o.type))&&(!i.content.size&&t.parent.canReplace(a-1,a)?(n&&n(e.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!(!t.parent.canReplace(a,a+1)||!o.isTextblock&&!Object(r["f"])(e.doc,t.pos))&&(n&&n(e.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0))}function E(e,t,n){let a,s,l=t.nodeBefore,u=t.nodeAfter;if(l.type.spec.isolating||u.type.spec.isolating)return!1;if(C(e,t,n))return!0;let h=t.parent.canReplace(t.index(),t.index()+1);if(h&&(a=(s=l.contentMatchAt(l.childCount)).findWrapping(u.type))&&s.matchType(a[0]||u.type).validEnd){if(n){let o=t.pos+u.nodeSize,s=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)s=i["Fragment"].from(a[e].create(null,s));s=i["Fragment"].from(l.copy(s));let c=e.tr.step(new r["b"](t.pos-1,o,t.pos,o,new i["Slice"](s,1,0),a.length,!0)),h=o+2*a.length;Object(r["f"])(c.doc,h)&&c.join(h),n(c.scrollIntoView())}return!0}let d=o["Selection"].findFrom(t,1),f=d&&d.$from.blockRange(d.$to),p=f&&Object(r["k"])(f);if(null!=p&&p>=t.depth)return n&&n(e.tr.lift(f,p).scrollIntoView()),!0;if(h&&c(u,"start",!0)&&c(l,"end")){let o=l,a=[];for(;;){if(a.push(o),o.isTextblock)break;o=o.lastChild}let s=u,c=1;for(;!s.isTextblock;s=s.firstChild)c++;if(o.canReplace(o.childCount,o.childCount,s.content)){if(n){let o=i["Fragment"].empty;for(let e=a.length-1;e>=0;e--)o=i["Fragment"].from(a[e].copy(o));let s=e.tr.step(new r["b"](t.pos-a.length,t.pos+u.nodeSize,t.pos+c,t.pos+u.nodeSize-c,new i["Slice"](o,a.length,0),0,!0));n(s.scrollIntoView())}return!0}}return!1}function S(e){return function(t,n){let r=t.selection,i=e<0?r.$from:r.$to,a=i.depth;while(i.node(a).isInline){if(!a)return!1;a--}return!!i.node(a).isTextblock&&(n&&n(t.tr.setSelection(o["TextSelection"].create(t.doc,e<0?i.start(a):i.end(a)))),!0)}}const T=S(-1),N=S(1);function M(e,t=null){return function(n,i){let{$from:o,$to:a}=n.selection,s=o.blockRange(a),l=s&&Object(r["i"])(s,e,t);return!!l&&(i&&i(n.tr.wrap(s,l).scrollIntoView()),!0)}}function L(e,t=null){return function(n,r){let i=!1;for(let o=0;o{if(i)return!1;if(r.isTextblock&&!r.hasMarkup(e,t))if(r.type==e)i=!0;else{let t=n.doc.resolve(o),r=t.index();i=t.parent.canReplaceWith(r,r+1,e)}})}if(!i)return!1;if(r){let i=n.tr;for(let r=0;r{if(a)return!1;a=e.inlineContent&&e.type.allowsMarkType(n)}),a)return!0}return!1}function D(e,t=null){return function(n,r){let{empty:i,$cursor:o,ranges:a}=n.selection;if(i&&!o||!O(n.doc,a,e))return!1;if(r)if(o)e.isInSet(n.storedMarks||o.marks())?r(n.tr.removeStoredMark(e)):r(n.tr.addStoredMark(e.create(t)));else{let i=!1,o=n.tr;for(let t=0;!i&&tt.clients.forEach((t,r)=>{const i=e.doc.store.clients.get(r);for(let o=0;o{let n=0,r=e.length-1;while(n<=r){const i=o["d"]((n+r)/2),a=e[i],s=a.clock;if(s<=t){if(t{const n=e.clients.get(t.client);return void 0!==n&&null!==A(n,t.clock)},E=e=>{e.clients.forEach(e=>{let t,n;for(e.sort((e,t)=>e.clock-t.clock),t=1,n=1;t=i.clock?r.len=o["g"](r.len,i.clock+i.len-r.clock):(n{const t=new x;for(let n=0;n{if(!t.clients.has(o)){const a=r.slice();for(let t=n+1;t{a["e"](e.clients,t,()=>[]).push(new w(n,r))},N=()=>new x,M=e=>{const t=N();return e.clients.forEach((e,n)=>{const r=[];for(let t=0;t0&&t.clients.set(n,r)}),t},L=(e,t)=>{s["n"](e.restEncoder,t.clients.size),i["c"](t.clients.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{e.resetDsCurVal(),s["n"](e.restEncoder,t);const r=n.length;s["n"](e.restEncoder,r);for(let i=0;i{const t=new x,n=l["k"](e.restDecoder);for(let r=0;r0){const i=a["e"](t.clients,n,()=>[]);for(let t=0;t{const r=new x,i=l["k"](e.restDecoder);for(let o=0;o0){const e=new U;return s["n"](e.restEncoder,0),L(e,r),e.toUint8Array()}return null},P=c["b"];class I extends r["a"]{constructor({guid:e=c["c"](),collectionid:t=null,gc:n=!0,gcFilter:r=(()=>!0),meta:i=null,autoLoad:o=!1,shouldLoad:a=!0}={}){super(),this.gc=n,this.gcFilter=r,this.clientID=P(),this.guid=e,this.collectionid=t,this.share=new Map,this.store=new ye,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=a,this.autoLoad=o,this.meta=i,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=u["a"](e=>{this.on("load",()=>{this.isLoaded=!0,e(this)})});const s=()=>u["a"](e=>{const t=n=>{void 0!==n&&!0!==n||(this.off("sync",t),e())};this.on("sync",t)});this.on("sync",e=>{!1===e&&this.isSynced&&(this.whenSynced=s()),this.isSynced=void 0===e||!0===e,this.isLoaded||this.emit("load",[])}),this.whenSynced=s()}load(){const e=this._item;null===e||this.shouldLoad||Be(e.parent.doc,e=>{e.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(i["c"](this.subdocs).map(e=>e.guid))}transact(e,t=null){return Be(this,e,t)}get(e,t=ct){const n=a["e"](this.share,e,()=>{const e=new t;return e._integrate(this,null),e}),r=n.constructor;if(t!==ct&&r!==t){if(r===ct){const r=new t;r._map=n._map,n._map.forEach(e=>{for(;null!==e;e=e.left)e.parent=r}),r._start=n._start;for(let e=r._start;null!==e;e=e.right)e.parent=r;return r._length=n._length,this.share.set(e,r),r._integrate(this,null),r}throw new Error(`Type with the name ${e} has already been defined with a different constructor`)}return n}getArray(e=""){return this.get(e,Nt)}getText(e=""){return this.get(e,Kt)}getMap(e=""){return this.get(e,Ot)}getXmlFragment(e=""){return this.get(e,Qt)}toJSON(){const e={};return this.share.forEach((t,n)=>{e[n]=t.toJSON()}),e}destroy(){i["c"](this.subdocs).forEach(e=>e.destroy());const e=this._item;if(null!==e){this._item=null;const t=e.content;t.doc=new I({guid:this.guid,...t.opts,shouldLoad:!1}),t.doc._item=e,Be(e.parent.doc,n=>{const r=t.doc;e.deleted||n.subdocsAdded.add(r),n.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}on(e,t){super.on(e,t)}off(e,t){super.off(e,t)}}class R{constructor(e){this.restDecoder=e}resetDsCurVal(){}readDsClock(){return l["k"](this.restDecoder)}readDsLen(){return l["k"](this.restDecoder)}}class F extends R{readLeftID(){return fe(l["k"](this.restDecoder),l["k"](this.restDecoder))}readRightID(){return fe(l["k"](this.restDecoder),l["k"](this.restDecoder))}readClient(){return l["k"](this.restDecoder)}readInfo(){return l["h"](this.restDecoder)}readString(){return l["j"](this.restDecoder)}readParentInfo(){return 1===l["k"](this.restDecoder)}readTypeRef(){return l["k"](this.restDecoder)}readLen(){return l["k"](this.restDecoder)}readAny(){return l["g"](this.restDecoder)}readBuf(){return h["a"](l["l"](this.restDecoder))}readJSON(){return JSON.parse(l["j"](this.restDecoder))}readKey(){return l["j"](this.restDecoder)}}class z{constructor(e){this.dsCurrVal=0,this.restDecoder=e}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=l["k"](this.restDecoder),this.dsCurrVal}readDsLen(){const e=l["k"](this.restDecoder)+1;return this.dsCurrVal+=e,e}}class B extends z{constructor(e){super(e),this.keys=[],l["k"](e),this.keyClockDecoder=new l["a"](l["l"](e)),this.clientDecoder=new l["d"](l["l"](e)),this.leftClockDecoder=new l["a"](l["l"](e)),this.rightClockDecoder=new l["a"](l["l"](e)),this.infoDecoder=new l["b"](l["l"](e),l["h"]),this.stringDecoder=new l["c"](l["l"](e)),this.parentInfoDecoder=new l["b"](l["l"](e),l["h"]),this.typeRefDecoder=new l["d"](l["l"](e)),this.lenDecoder=new l["d"](l["l"](e))}readLeftID(){return new he(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new he(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return 1===this.parentInfoDecoder.read()}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return l["g"](this.restDecoder)}readBuf(){return l["l"](this.restDecoder)}readJSON(){return l["g"](this.restDecoder)}readKey(){const e=this.keyClockDecoder.read();if(e{r=o["g"](r,t[0].id.clock);const i=Ae(t,r);s["n"](e.restEncoder,t.length-i),e.writeClient(n),s["n"](e.restEncoder,r);const a=t[i];a.write(e,r-a.id.clock);for(let o=i+1;o{const r=new Map;n.forEach((e,n)=>{xe(t,n)>e&&r.set(n,e)}),we(t).forEach((e,t)=>{n.has(t)||r.set(t,0)}),s["n"](e.restEncoder,r.size),i["c"](r.entries()).sort((e,t)=>t[0]-e[0]).forEach(([n,r])=>{q(e,t.clients.get(n),n,r)})},W=(e,t)=>{const n=a["c"](),r=l["k"](e.restDecoder);for(let i=0;i{const r=[];let o=i["c"](n.keys()).sort((e,t)=>e-t);if(0===o.length)return null;const l=()=>{if(0===o.length)return null;let e=n.get(o[o.length-1]);while(e.refs.length===e.i){if(o.pop(),!(o.length>0))return null;e=n.get(o[o.length-1])}return e};let c=l();if(null===c&&0===r.length)return null;const u=new ye,h=new Map,d=(e,t)=>{const n=h.get(e);(null==n||n>t)&&h.set(e,t)};let f=c.refs[c.i++];const p=new Map,m=()=>{for(const e of r){const t=e.id.client,r=n.get(t);r?(r.i--,u.clients.set(t,r.refs.slice(r.i)),n.delete(t),r.i=0,r.refs=[]):u.clients.set(t,[e]),o=o.filter(e=>e!==t)}r.length=0};while(1){if(f.constructor!==qn){const i=a["e"](p,f.id.client,()=>xe(t,f.id.client)),o=i-f.id.clock;if(o<0)r.push(f),d(f.id.client,f.id.clock-1),m();else{const i=f.getMissing(e,t);if(null!==i){r.push(f);const e=n.get(i)||{refs:[],i:0};if(e.refs.length!==e.i){f=e.refs[e.i++];continue}d(i,xe(t,i)),m()}else(0===o||o0)f=r.pop();else if(null!==c&&c.i0){const e=new U;return G(e,u,new Map),s["n"](e.restEncoder,0),{missing:h,update:e.toUint8Array()}}return null},Y=(e,t)=>G(e,t.doc.store,t.beforeState),Z=(e,t,n,r=new B(e))=>Be(t,e=>{e.local=!1;let t=!1;const n=e.doc,i=n.store,o=W(r,n),a=V(e,i,o),s=i.pendingStructs;if(s){for(const[e,n]of s.missing)if(nt)&&s.missing.set(e,t)}s.update=Ge([s.update,a.update])}}else i.pendingStructs=a;const c=D(r,e,i);if(i.pendingDs){const t=new B(l["e"](i.pendingDs));l["k"](t.restDecoder);const n=D(t,e,i);i.pendingDs=c&&n?Ge([c,n]):c||n}else i.pendingDs=c;if(t){const t=i.pendingStructs.update;i.pendingStructs=null,K(e.doc,t)}},n,!1),K=(e,t,n,r=B)=>{const i=l["e"](t);Z(i,e,n,new r(i))},X=(e,t,n)=>K(e,t,n,F),J=(e,t,n=new Map)=>{G(e,t.store,n),L(e,M(t.store))},Q=(e,t=new Uint8Array([0]),n=new U)=>{const r=te(t);J(n,e,r);const i=[n.toUint8Array()];if(e.store.pendingDs&&i.push(e.store.pendingDs),e.store.pendingStructs&&i.push(We(e.store.pendingStructs.update,t)),i.length>1){if(n.constructor===j)return Ue(i.map((e,t)=>0===t?e:Xe(e)));if(n.constructor===U)return Ge(i)}return i[0]},$=(e,t)=>Q(e,t,new j),ee=e=>{const t=new Map,n=l["k"](e.restDecoder);for(let r=0;ree(new R(l["e"](e))),ne=(e,t)=>(s["n"](e.restEncoder,t.size),i["c"](t.entries()).sort((e,t)=>t[0]-e[0]).forEach(([t,n])=>{s["n"](e.restEncoder,t),s["n"](e.restEncoder,n)}),e),re=(e,t)=>ne(e,we(t.store)),ie=(e,t=new H)=>(e instanceof Map?ne(t,e):re(t,e),t.toUint8Array()),oe=e=>ie(e,new _);class ae{constructor(){this.l=[]}}const se=()=>new ae,le=(e,t)=>e.l.push(t),ce=(e,t)=>{const n=e.l,r=n.length;e.l=n.filter(e=>t!==e),r===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},ue=(e,t,n)=>p["a"](e.l,[t,n]);class he{constructor(e,t){this.client=e,this.clock=t}}const de=(e,t)=>e===t||null!==e&&null!==t&&e.client===t.client&&e.clock===t.clock,fe=(e,t)=>new he(e,t),pe=e=>{for(const[t,n]of e.doc.share.entries())if(n===e)return t;throw d["c"]()};class me{constructor(e,t){this.ds=e,this.sv=t}}const ge=(e,t)=>new me(e,t),ve=(ge(N(),new Map),(e,t)=>void 0===t?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!C(t.ds,e.id)),be=(e,t)=>{const n=a["e"](e.meta,be,m["a"]),r=e.doc.store;n.has(t)||(t.sv.forEach((t,n)=>{t{}),n.add(t))};class ye{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const we=e=>{const t=new Map;return e.clients.forEach((e,n)=>{const r=e[e.length-1];t.set(n,r.id.clock+r.length)}),t},xe=(e,t)=>{const n=e.clients.get(t);if(void 0===n)return 0;const r=n[n.length-1];return r.id.clock+r.length},ke=(e,t)=>{let n=e.clients.get(t.id.client);if(void 0===n)n=[],e.clients.set(t.id.client,n);else{const e=n[n.length-1];if(e.id.clock+e.length!==t.id.clock)throw d["c"]()}n.push(t)},Ae=(e,t)=>{let n=0,r=e.length-1,i=e[r],a=i.id.clock;if(a===t)return r;let s=o["d"](t/(a+i.length-1)*r);while(n<=r){if(i=e[s],a=i.id.clock,a<=t){if(t{const n=e.clients.get(t.client);return n[Ae(n,t.clock)]},Ee=Ce,Se=(e,t,n)=>{const r=Ae(t,n),i=t[r];return i.id.clock{const n=e.doc.store.clients.get(t.client);return n[Se(e,n,t.clock)]},Ne=(e,t,n)=>{const r=t.clients.get(n.client),i=Ae(r,n.clock),o=r[i];return n.clock!==o.id.clock+o.length-1&&o.constructor!==un&&r.splice(i+1,0,Bn(e,o,n.clock-o.id.clock+1)),o},Me=(e,t,n)=>{const r=e.clients.get(t.id.client);r[Ae(r,t.id.clock)]=n},Le=(e,t,n,r,i)=>{if(0===r)return;const o=n+r;let a,s=Se(e,t,n);do{a=t[s++],o!(0===t.deleteSet.clients.size&&!a["a"](t.afterState,(e,n)=>t.beforeState.get(n)!==e))&&(E(t.deleteSet),Y(e,t),L(e,t.deleteSet),!0),Pe=(e,t,n)=>{const r=t._item;(null===r||r.id.clock<(e.beforeState.get(r.id.client)||0)&&!r.deleted)&&a["e"](e.changed,t,m["a"]).add(n)},Ie=(e,t)=>{let n=e[t],r=e[t-1],i=t;for(;i>0;n=r,r=e[--i-1]){if(r.deleted!==n.deleted||r.constructor!==n.constructor||!r.mergeWith(n))break;n instanceof _n&&null!==n.parentSub&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,r)}const o=t-i;return o&&e.splice(t+1-o,o),o},Re=(e,t,n)=>{for(const[r,i]of e.clients.entries()){const e=t.clients.get(r);for(let r=i.length-1;r>=0;r--){const o=i[r],a=o.clock+o.len;for(let r=Ae(e,o.clock),i=e[r];r{e.clients.forEach((e,n)=>{const r=t.clients.get(n);for(let t=e.length-1;t>=0;t--){const n=e[t],i=o["h"](r.length-1,1+Ae(r,n.clock+n.len-1));for(let e=i,t=r[e];e>0&&t.id.clock>=n.clock;t=r[e])e-=1+Ie(r,e)}})},ze=(e,t)=>{if(tl.push(()=>{null!==t._item&&t._item.deleted||t._callObserver(n,e)})),l.push(()=>{n.changedParentTypes.forEach((e,t)=>{t._dEH.l.length>0&&(null===t._item||!t._item.deleted)&&(e=e.filter(e=>null===e.target._item||!e.target._item.deleted),e.forEach(e=>{e.currentTarget=t,e._path=null}),e.sort((e,t)=>e.path.length-t.path.length),ue(t._dEH,e,n))})}),l.push(()=>r.emit("afterTransaction",[n,r])),Object(p["a"])(l,[]),n._needFormattingCleanup&&Vt(n)}finally{r.gc&&Re(a,i,r.gcFilter),Fe(a,i),n.afterState.forEach((e,t)=>{const r=n.beforeState.get(t)||0;if(r!==e){const e=i.clients.get(t),n=o["g"](Ae(e,r),1);for(let t=e.length-1;t>=n;)t-=1+Ie(e,t)}});for(let e=s.length-1;e>=0;e--){const{client:t,clock:n}=s[e].id,r=i.clients.get(t),o=Ae(r,n);o+11||o>0&&Ie(r,o)}if(n.local||n.afterState.get(r.clientID)===n.beforeState.get(r.clientID)||(g["b"](v["e"],v["b"],"[yjs] ",v["h"],v["g"],"Changed the client-id because another client seems to be using it."),r.clientID=P()),r.emit("afterTransactionCleanup",[n,r]),r._observers.has("update")){const e=new j,t=De(e,n);t&&r.emit("update",[e.toUint8Array(),n.origin,r,n])}if(r._observers.has("updateV2")){const e=new U,t=De(e,n);t&&r.emit("updateV2",[e.toUint8Array(),n.origin,r,n])}const{subdocsAdded:l,subdocsLoaded:c,subdocsRemoved:u}=n;(l.size>0||u.size>0||c.size>0)&&(l.forEach(e=>{e.clientID=r.clientID,null==e.collectionid&&(e.collectionid=r.collectionid),r.subdocs.add(e)}),u.forEach(e=>r.subdocs.delete(e)),r.emit("subdocs",[{loaded:c,added:l,removed:u},r,n]),u.forEach(e=>e.destroy())),e.length<=t+1?(r._transactionCleanups=[],r.emit("afterAllTransactions",[r,e])):ze(e,t+1)}}},Be=(e,t,n=null,r=!0)=>{const i=e._transactionCleanups;let o=!1,a=null;null===e._transaction&&(o=!0,e._transaction=new Oe(e,n,r),i.push(e._transaction),1===i.length&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{a=t(e._transaction)}finally{if(o){const t=e._transaction===i[0];e._transaction=null,t&&ze(i,0)}}return a};r["a"];function*_e(e){const t=l["k"](e.restDecoder);for(let n=0;nGe(e,F,j),qe=(e,t)=>{if(e.constructor===un){const{client:n,clock:r}=e.id;return new un(fe(n,r+t),e.length-t)}if(e.constructor===qn){const{client:n,clock:r}=e.id;return new qn(fe(n,r+t),e.length-t)}{const n=e,{client:r,clock:i}=n.id;return new _n(fe(r,i+t),null,fe(r,i+t-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(t))}},Ge=(e,t=B,n=U)=>{if(1===e.length)return e[0];const r=e.map(e=>new t(l["e"](e)));let i=r.map(e=>new je(e,!0)),o=null;const a=new n,s=new He(a);while(1){if(i=i.filter(e=>null!==e.curr),i.sort((e,t)=>{if(e.curr.id.client===t.curr.id.client){const n=e.curr.id.clock-t.curr.id.clock;return 0===n?e.curr.constructor===t.curr.constructor?0:e.curr.constructor===qn?1:-1:n}return t.curr.id.client-e.curr.id.client}),0===i.length)break;const e=i[0],t=e.curr.id.client;if(null!==o){let n=e.curr,r=!1;while(null!==n&&n.id.clock+n.length<=o.struct.id.clock+o.struct.length&&n.id.client>=o.struct.id.client)n=e.next(),r=!0;if(null===n||n.id.client!==t||r&&n.id.clock>o.struct.id.clock+o.struct.length)continue;if(t!==o.struct.id.client)Ye(s,o.struct,o.offset),o={struct:n,offset:0},e.next();else if(o.struct.id.clock+o.struct.length0&&(o.struct.constructor===qn?o.struct.length-=t:n=qe(n,t)),o.struct.mergeWith(n)||(Ye(s,o.struct,o.offset),o={struct:n,offset:0},e.next())}}else o={struct:e.curr,offset:0},e.next();for(let n=e.curr;null!==n&&n.id.client===t&&n.id.clock===o.struct.id.clock+o.struct.length&&n.constructor!==qn;n=e.next())Ye(s,o.struct,o.offset),o={struct:n,offset:0}}null!==o&&(Ye(s,o.struct,o.offset),o=null),Ze(s);const c=r.map(e=>O(e)),u=S(c);return L(a,u),a.toUint8Array()},We=(e,t,n=B,r=U)=>{const i=te(t),a=new r,s=new He(a),c=new n(l["e"](e)),u=new je(c,!1);while(u.curr){const e=u.curr,t=e.id.client,n=i.get(t)||0;if(u.curr.constructor!==qn)if(e.id.clock+e.length>n){Ye(s,e,o["g"](n-e.id.clock,0)),u.next();while(u.curr&&u.curr.id.client===t)Ye(s,u.curr,0),u.next()}else while(u.curr&&u.curr.id.client===t&&u.curr.id.clock+u.curr.length<=n)u.next();else u.next()}Ze(s);const h=O(c);return L(a,h),a.toUint8Array()},Ve=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:s["f"](e.encoder.restEncoder)}),e.encoder.restEncoder=s["e"](),e.written=0)},Ye=(e,t,n)=>{e.written>0&&e.currClient!==t.id.client&&Ve(e),0===e.written&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),s["n"](e.encoder.restEncoder,t.id.clock+n)),t.write(e.encoder,n),e.written++},Ze=e=>{Ve(e);const t=e.encoder.restEncoder;s["n"](t,e.clientStructs.length);for(let n=0;n{const i=new n(l["e"](e)),o=new je(i,!1),a=new r,s=new He(a);for(let l=o.curr;null!==l;l=o.next())Ye(s,t(l),0);Ze(s);const c=O(i);return L(a,c),a.toUint8Array()},Xe=e=>Ke(e,p["c"],B,j),Je="You must not compute changes after the event-handler fired.";class Qe{constructor(e,t){this.target=e,this.currentTarget=e,this.transaction=t,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=$e(this.currentTarget,this.target))}deletes(e){return C(this.transaction.deleteSet,e.id)}get keys(){if(null===this._keys){if(0===this.transaction.doc._transactionCleanups.length)throw d["a"](Je);const e=new Map,t=this.target,n=this.transaction.changed.get(t);n.forEach(n=>{if(null!==n){const r=t._map.get(n);let o,a;if(this.adds(r)){let e=r.left;while(null!==e&&this.adds(e))e=e.left;if(this.deletes(r)){if(null===e||!this.deletes(e))return;o="delete",a=i["e"](e.content.getContent())}else null!==e&&this.deletes(e)?(o="update",a=i["e"](e.content.getContent())):(o="add",a=void 0)}else{if(!this.deletes(r))return;o="delete",a=i["e"](r.content.getContent())}e.set(n,{action:o,oldValue:a})}}),this._keys=e}return this._keys}get delta(){return this.changes.delta}adds(e){return e.id.clock>=(this.transaction.beforeState.get(e.id.client)||0)}get changes(){let e=this._changes;if(null===e){if(0===this.transaction.doc._transactionCleanups.length)throw d["a"](Je);const t=this.target,n=m["a"](),r=m["a"](),i=[];e={added:n,deleted:r,delta:i,keys:this.keys};const o=this.transaction.changed.get(t);if(o.has(null)){let e=null;const o=()=>{e&&i.push(e)};for(let i=t._start;null!==i;i=i.right)i.deleted?this.deletes(i)&&!this.adds(i)&&(null!==e&&void 0!==e.delete||(o(),e={delete:0}),e.delete+=i.length,r.add(i)):this.adds(i)?(null!==e&&void 0!==e.insert||(o(),e={insert:[]}),e.insert=e.insert.concat(i.content.getContent()),n.add(i)):(null!==e&&void 0!==e.retain||(o(),e={retain:0}),e.retain+=i.length);null!==e&&void 0===e.retain&&o()}this._changes=e}return e}}const $e=(e,t)=>{const n=[];while(null!==t._item&&t!==e){if(null!==t._item.parentSub)n.unshift(t._item.parentSub);else{let e=0,r=t._item.parent._start;while(r!==t._item&&null!==r)r.deleted||e++,r=r.right;n.unshift(e)}t=t._item.parent}return n},et=80;let tt=0;class nt{constructor(e,t){e.marker=!0,this.p=e,this.index=t,this.timestamp=tt++}}const rt=e=>{e.timestamp=tt++},it=(e,t,n)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=n,e.timestamp=tt++},ot=(e,t,n)=>{if(e.length>=et){const r=e.reduce((e,t)=>e.timestamp{if(null===e._start||0===t||null===e._searchMarker)return null;const n=0===e._searchMarker.length?null:e._searchMarker.reduce((e,n)=>o["a"](t-e.index)t)r=r.left,!r.deleted&&r.countable&&(i-=r.length);while(null!==r.left&&r.left.id.client===r.id.client&&r.left.id.clock+r.left.length===r.id.clock)r=r.left,!r.deleted&&r.countable&&(i-=r.length);return null!==n&&o["a"](n.index-i){for(let r=e.length-1;r>=0;r--){const i=e[r];if(n>0){let t=i.p;t.marker=!1;while(t&&(t.deleted||!t.countable))t=t.left,t&&!t.deleted&&t.countable&&(i.index-=t.length);if(null===t||!0===t.marker){e.splice(r,1);continue}i.p=t,t.marker=!0}(t0&&t===i.index)&&(i.index=o["g"](t,i.index+n))}},lt=(e,t,n)=>{const r=e,i=t.changedParentTypes;while(1){if(a["e"](i,e,()=>[]).push(n),null===e._item)break;e=e._item.parent}ue(r._eH,n,t)};class ct{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=se(),this._dEH=se(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(e,t){this.doc=e,this._item=t}_copy(){throw d["b"]()}clone(){throw d["b"]()}_write(e){}get _first(){let e=this._start;while(null!==e&&e.deleted)e=e.right;return e}_callObserver(e,t){!e.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(e){le(this._eH,e)}observeDeep(e){le(this._dEH,e)}unobserve(e){ce(this._eH,e)}unobserveDeep(e){ce(this._dEH,e)}toJSON(){}}const ut=(e,t,n)=>{t<0&&(t=e._length+t),n<0&&(n=e._length+n);let r=n-t;const i=[];let o=e._start;while(null!==o&&r>0){if(o.countable&&!o.deleted){const e=o.content.getContent();if(e.length<=t)t-=e.length;else{for(let n=t;n0;n++)i.push(e[n]),r--;t=0}}o=o.right}return i},ht=e=>{const t=[];let n=e._start;while(null!==n){if(n.countable&&!n.deleted){const e=n.content.getContent();for(let n=0;n{let n=0,r=e._start;while(null!==r){if(r.countable&&!r.deleted){const i=r.content.getContent();for(let r=0;r{const n=[];return dt(e,(r,i)=>{n.push(t(r,i,e))}),n},pt=e=>{let t=e._start,n=null,r=0;return{[Symbol.iterator](){return this},next:()=>{if(null===n){while(null!==t&&t.deleted)t=t.right;if(null===t)return{done:!0,value:void 0};n=t.content.getContent(),r=0,t=t.right}const e=n[r++];return n.length<=r&&(n=null),{done:!1,value:e}}}},mt=(e,t)=>{const n=at(e,t);let r=e._start;for(null!==n&&(r=n.p,t-=n.index);null!==r;r=r.right)if(!r.deleted&&r.countable){if(t{let i=n;const o=e.doc,a=o.clientID,s=o.store,l=null===n?t._start:n.right;let c=[];const u=()=>{c.length>0&&(i=new _n(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new Cn(c)),i.integrate(e,0),c=[])};r.forEach(n=>{if(null===n)c.push(n);else switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(n);break;default:switch(u(),n.constructor){case Uint8Array:case ArrayBuffer:i=new _n(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new hn(new Uint8Array(n))),i.integrate(e,0);break;case I:i=new _n(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new gn(n)),i.integrate(e,0);break;default:if(!(n instanceof ct))throw new Error("Unexpected content type in insert operation");i=new _n(fe(a,xe(s,a)),i,i&&i.lastId,l,l&&l.id,t,null,new Fn(n)),i.integrate(e,0)}}}),u()},vt=()=>d["a"]("Length exceeded!"),bt=(e,t,n,r)=>{if(n>t._length)throw vt();if(0===n)return t._searchMarker&&st(t._searchMarker,n,r.length),gt(e,t,null,r);const i=n,o=at(t,n);let a=t._start;for(null!==o&&(a=o.p,n-=o.index,0===n&&(a=a.prev,n+=a&&a.countable&&!a.deleted?a.length:0));null!==a;a=a.right)if(!a.deleted&&a.countable){if(n<=a.length){n{const r=(t._searchMarker||[]).reduce((e,t)=>t.index>e.index?t:e,{index:0,p:t._start});let i=r.p;if(i)while(i.right)i=i.right;return gt(e,t,i,n)},wt=(e,t,n,r)=>{if(0===r)return;const i=n,o=r,a=at(t,n);let s=t._start;for(null!==a&&(s=a.p,n-=a.index);null!==s&&n>0;s=s.right)!s.deleted&&s.countable&&(n0&&null!==s)s.deleted||(r0)throw vt();t._searchMarker&&st(t._searchMarker,i,-o+r)},xt=(e,t,n)=>{const r=t._map.get(n);void 0!==r&&r.delete(e)},kt=(e,t,n,r)=>{const i=t._map.get(n)||null,o=e.doc,a=o.clientID;let s;if(null==r)s=new Cn([r]);else switch(r.constructor){case Number:case Object:case Boolean:case Array:case String:s=new Cn([r]);break;case Uint8Array:s=new hn(r);break;case I:s=new gn(r);break;default:if(!(r instanceof ct))throw new Error("Unexpected content type");s=new Fn(r)}new _n(fe(a,xe(o.store,a)),i,i&&i.lastId,null,null,t,n,s).integrate(e,0)},At=(e,t)=>{const n=e._map.get(t);return void 0===n||n.deleted?void 0:n.content.getContent()[n.length-1]},Ct=e=>{const t={};return e._map.forEach((e,n)=>{e.deleted||(t[n]=e.content.getContent()[e.length-1])}),t},Et=(e,t)=>{const n=e._map.get(t);return void 0!==n&&!n.deleted},St=e=>b["a"](e.entries(),e=>!e[1].deleted);class Tt extends Qe{constructor(e,t){super(e,t),this._transaction=t}}class Nt extends ct{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(e){const t=new Nt;return t.push(e),t}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Nt}clone(){const e=new Nt;return e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}_callObserver(e,t){super._callObserver(e,t),lt(this,e,new Tt(this,e))}insert(e,t){null!==this.doc?Be(this.doc,n=>{bt(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}push(e){null!==this.doc?Be(this.doc,t=>{yt(t,this,e)}):this._prelimContent.push(...e)}unshift(e){this.insert(0,e)}delete(e,t=1){null!==this.doc?Be(this.doc,n=>{wt(n,this,e,t)}):this._prelimContent.splice(e,t)}get(e){return mt(this,e)}toArray(){return ht(this)}slice(e=0,t=this.length){return ut(this,e,t)}toJSON(){return this.map(e=>e instanceof ct?e.toJSON():e)}map(e){return ft(this,e)}forEach(e){dt(this,e)}[Symbol.iterator](){return pt(this)}_write(e){e.writeTypeRef(Mn)}}const Mt=e=>new Nt;class Lt extends Qe{constructor(e,t,n){super(e,t),this.keysChanged=n}}class Ot extends ct{constructor(e){super(),this._prelimContent=null,this._prelimContent=void 0===e?new Map:new Map(e)}_integrate(e,t){super._integrate(e,t),this._prelimContent.forEach((e,t)=>{this.set(t,e)}),this._prelimContent=null}_copy(){return new Ot}clone(){const e=new Ot;return this.forEach((t,n)=>{e.set(n,t instanceof ct?t.clone():t)}),e}_callObserver(e,t){lt(this,e,new Lt(this,e,t))}toJSON(){const e={};return this._map.forEach((t,n)=>{if(!t.deleted){const r=t.content.getContent()[t.length-1];e[n]=r instanceof ct?r.toJSON():r}}),e}get size(){return[...St(this._map)].length}keys(){return b["b"](St(this._map),e=>e[0])}values(){return b["b"](St(this._map),e=>e[1].content.getContent()[e[1].length-1])}entries(){return b["b"](St(this._map),e=>[e[0],e[1].content.getContent()[e[1].length-1]])}forEach(e){this._map.forEach((t,n)=>{t.deleted||e(t.content.getContent()[t.length-1],n,this)})}[Symbol.iterator](){return this.entries()}delete(e){null!==this.doc?Be(this.doc,t=>{xt(t,this,e)}):this._prelimContent.delete(e)}set(e,t){return null!==this.doc?Be(this.doc,n=>{kt(n,this,e,t)}):this._prelimContent.set(e,t),t}get(e){return At(this,e)}has(e){return Et(this,e)}clear(){null!==this.doc?Be(this.doc,e=>{this.forEach((function(t,n,r){xt(e,r,n)}))}):this._prelimContent.clear()}_write(e){e.writeTypeRef(Ln)}}const Dt=e=>new Ot,Pt=(e,t)=>e===t||"object"===typeof e&&"object"===typeof t&&e&&t&&y["b"](e,t);class It{constructor(e,t,n,r){this.left=e,this.right=t,this.index=n,this.currentAttributes=r}forward(){switch(null===this.right&&d["c"](),this.right.content.constructor){case wn:this.right.deleted||Bt(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}}const Rt=(e,t,n)=>{while(null!==t.right&&n>0){switch(t.right.content.constructor){case wn:t.right.deleted||Bt(t.currentAttributes,t.right.content);break;default:t.right.deleted||(n{const r=new Map,i=at(t,n);if(i){const t=new It(i.p.left,i.p,i.index,r);return Rt(e,t,n-i.index)}{const i=new It(null,t._start,0,r);return Rt(e,i,n)}},zt=(e,t,n,r)=>{while(null!==n.right&&(!0===n.right.deleted||n.right.content.constructor===wn&&Pt(r.get(n.right.content.key),n.right.content.value)))n.right.deleted||r.delete(n.right.content.key),n.forward();const i=e.doc,o=i.clientID;r.forEach((r,a)=>{const s=n.left,l=n.right,c=new _n(fe(o,xe(i.store,o)),s,s&&s.lastId,l,l&&l.id,t,null,new wn(a,r));c.integrate(e,0),n.right=c,n.forward()})},Bt=(e,t)=>{const{key:n,value:r}=t;null===r?e.delete(n):e.set(n,r)},_t=(e,t)=>{while(1){if(null===e.right)break;if(!(e.right.deleted||e.right.content.constructor===wn&&Pt(t[e.right.content.key]||null,e.right.content.value)))break;e.forward()}},jt=(e,t,n,r)=>{const i=e.doc,o=i.clientID,a=new Map;for(const s in r){const l=r[s],c=n.currentAttributes.get(s)||null;if(!Pt(c,l)){a.set(s,c);const{left:r,right:u}=n;n.right=new _n(fe(o,xe(i.store,o)),r,r&&r.lastId,u,u&&u.id,t,null,new wn(s,l)),n.right.integrate(e,0),n.forward()}}return a},Ht=(e,t,n,r,i)=>{n.currentAttributes.forEach((e,t)=>{void 0===i[t]&&(i[t]=null)});const o=e.doc,a=o.clientID;_t(n,i);const s=jt(e,t,n,i),l=r.constructor===String?new Sn(r):r instanceof ct?new Fn(r):new bn(r);let{left:c,right:u,index:h}=n;t._searchMarker&&st(t._searchMarker,n.index,l.getLength()),u=new _n(fe(a,xe(o.store,a)),c,c&&c.lastId,u,u&&u.id,t,null,l),u.integrate(e,0),n.right=u,n.index=h,n.forward(),zt(e,t,n,s)},Ut=(e,t,n,r,i)=>{const o=e.doc,a=o.clientID;_t(n,i);const s=jt(e,t,n,i);e:while(null!==n.right&&(r>0||s.size>0&&(n.right.deleted||n.right.content.constructor===wn))){if(!n.right.deleted)switch(n.right.content.constructor){case wn:{const{key:t,value:o}=n.right.content,a=i[t];if(void 0!==a){if(Pt(a,o))s.delete(t);else{if(0===r)break e;s.set(t,o)}n.right.delete(e)}else n.currentAttributes.set(t,o);break}default:r0){let i="";for(;r>0;r--)i+="\n";n.right=new _n(fe(a,xe(o.store,a)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,t,null,new Sn(i)),n.right.integrate(e,0),n.forward()}zt(e,t,n,s)},qt=(e,t,n,r,i)=>{let o=t;const s=a["c"]();while(o&&(!o.countable||o.deleted)){if(!o.deleted&&o.content.constructor===wn){const e=o.content;s.set(e.key,e)}o=o.right}let l=0,c=!1;while(t!==o){if(n===t&&(c=!0),!t.deleted){const n=t.content;switch(n.constructor){case wn:{const{key:o,value:a}=n,u=r.get(o)||null;s.get(o)===n&&u!==a||(t.delete(e),l++,c||(i.get(o)||null)!==a||u===a||(null===u?i.delete(o):i.set(o,u))),c||t.deleted||Bt(i,n);break}}}t=t.right}return l},Gt=(e,t)=>{while(t&&t.right&&(t.right.deleted||!t.right.countable))t=t.right;const n=new Set;while(t&&(t.deleted||!t.countable)){if(!t.deleted&&t.content.constructor===wn){const r=t.content.key;n.has(r)?t.delete(e):n.add(r)}t=t.left}},Wt=e=>{let t=0;return Be(e.doc,n=>{let r=e._start,i=e._start,o=a["c"]();const s=a["b"](o);while(i){if(!1===i.deleted)switch(i.content.constructor){case wn:Bt(s,i.content);break;default:t+=qt(n,r,i,o,s),o=a["b"](s),r=i;break}i=i.right}}),t},Vt=e=>{const t=new Set,n=e.doc;for(const[r,i]of e.afterState.entries()){const o=e.beforeState.get(r)||0;i!==o&&Le(e,n.store.clients.get(r),o,i,e=>{e.deleted||e.content.constructor!==wn||e.constructor===un||t.add(e.parent)})}Be(n,n=>{k(e,e.deleteSet,e=>{if(e instanceof un||!e.parent._hasFormatting||t.has(e.parent))return;const r=e.parent;e.content.constructor===wn?t.add(r):Gt(n,e)});for(const e of t)Wt(e)})},Yt=(e,t,n)=>{const r=n,i=a["b"](t.currentAttributes),o=t.right;while(n>0&&null!==t.right){if(!1===t.right.deleted)switch(t.right.content.constructor){case Fn:case bn:case Sn:n{null===e?this.childListChanged=!0:this.keysChanged.add(e)})}get changes(){if(null===this._changes){const e={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=e}return this._changes}get delta(){if(null===this._delta){const e=this.target.doc,t=[];Be(e,e=>{const n=new Map,r=new Map;let i=this.target._start,o=null;const a={};let s="",l=0,c=0;const u=()=>{if(null!==o){let e=null;switch(o){case"delete":c>0&&(e={delete:c}),c=0;break;case"insert":("object"===typeof s||s.length>0)&&(e={insert:s},n.size>0&&(e.attributes={},n.forEach((t,n)=>{null!==t&&(e.attributes[n]=t)}))),s="";break;case"retain":l>0&&(e={retain:l},y["e"](a)||(e.attributes=y["a"]({},a))),l=0;break}e&&t.push(e),o=null}};while(null!==i){switch(i.content.constructor){case Fn:case bn:this.adds(i)?this.deletes(i)||(u(),o="insert",s=i.content.getContent()[0],u()):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=1):i.deleted||("retain"!==o&&(u(),o="retain"),l+=1);break;case Sn:this.adds(i)?this.deletes(i)||("insert"!==o&&(u(),o="insert"),s+=i.content.str):this.deletes(i)?("delete"!==o&&(u(),o="delete"),c+=i.length):i.deleted||("retain"!==o&&(u(),o="retain"),l+=i.length);break;case wn:{const{key:t,value:s}=i.content;if(this.adds(i)){if(!this.deletes(i)){const l=n.get(t)||null;Pt(l,s)?null!==s&&i.delete(e):("retain"===o&&u(),Pt(s,r.get(t)||null)?delete a[t]:a[t]=s)}}else if(this.deletes(i)){r.set(t,s);const e=n.get(t)||null;Pt(e,s)||("retain"===o&&u(),a[t]=e)}else if(!i.deleted){r.set(t,s);const n=a[t];void 0!==n&&(Pt(n,s)?null!==n&&i.delete(e):("retain"===o&&u(),null===s?delete a[t]:a[t]=s))}i.deleted||("insert"===o&&u(),Bt(n,i.content));break}}i=i.right}u();while(t.length>0){const e=t[t.length-1];if(void 0===e.retain||void 0!==e.attributes)break;t.pop()}}),this._delta=t}return this._delta}}class Kt extends ct{constructor(e){super(),this._pending=void 0!==e?[()=>this.insert(0,e)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(e,t){super._integrate(e,t);try{this._pending.forEach(e=>e())}catch(n){console.error(n)}this._pending=null}_copy(){return new Kt}clone(){const e=new Kt;return e.applyDelta(this.toDelta()),e}_callObserver(e,t){super._callObserver(e,t);const n=new Zt(this,e,t);lt(this,e,n),!e.local&&this._hasFormatting&&(e._needFormattingCleanup=!0)}toString(){let e="",t=this._start;while(null!==t)!t.deleted&&t.countable&&t.content.constructor===Sn&&(e+=t.content.str),t=t.right;return e}toJSON(){return this.toString()}applyDelta(e,{sanitize:t=!0}={}){null!==this.doc?Be(this.doc,n=>{const r=new It(null,this._start,0,new Map);for(let i=0;i0)&&Ht(n,this,r,a,o.attributes||{})}else void 0!==o.retain?Ut(n,this,r,o.retain,o.attributes||{}):void 0!==o.delete&&Yt(n,r,o.delete)}}):this._pending.push(()=>this.applyDelta(e))}toDelta(e,t,n){const r=[],i=new Map,o=this.doc;let a="",s=this._start;function l(){if(a.length>0){const e={};let t=!1;i.forEach((n,r)=>{t=!0,e[r]=n});const n={insert:a};t&&(n.attributes=e),r.push(n),a=""}}const c=()=>{while(null!==s){if(ve(s,e)||void 0!==t&&ve(s,t))switch(s.content.constructor){case Sn:{const r=i.get("ychange");void 0===e||ve(s,e)?void 0===t||ve(s,t)?void 0!==r&&(l(),i.delete("ychange")):void 0!==r&&r.user===s.id.client&&"added"===r.type||(l(),i.set("ychange",n?n("added",s.id):{type:"added"})):void 0!==r&&r.user===s.id.client&&"removed"===r.type||(l(),i.set("ychange",n?n("removed",s.id):{type:"removed"})),a+=s.content.str;break}case Fn:case bn:{l();const e={insert:s.content.getContent()[0]};if(i.size>0){const t={};e.attributes=t,i.forEach((e,n)=>{t[n]=e})}r.push(e);break}case wn:ve(s,e)&&(l(),Bt(i,s.content));break}s=s.right}l()};return e||t?Be(o,n=>{e&&be(n,e),t&&be(n,t),c()},"cleanup"):c(),r}insert(e,t,n){if(t.length<=0)return;const r=this.doc;null!==r?Be(r,r=>{const i=Ft(r,this,e);n||(n={},i.currentAttributes.forEach((e,t)=>{n[t]=e})),Ht(r,this,i,t,n)}):this._pending.push(()=>this.insert(e,t,n))}insertEmbed(e,t,n={}){const r=this.doc;null!==r?Be(r,r=>{const i=Ft(r,this,e);Ht(r,this,i,t,n)}):this._pending.push(()=>this.insertEmbed(e,t,n))}delete(e,t){if(0===t)return;const n=this.doc;null!==n?Be(n,n=>{Yt(n,Ft(n,this,e),t)}):this._pending.push(()=>this.delete(e,t))}format(e,t,n){if(0===t)return;const r=this.doc;null!==r?Be(r,r=>{const i=Ft(r,this,e);null!==i.right&&Ut(r,this,i,t,n)}):this._pending.push(()=>this.format(e,t,n))}removeAttribute(e){null!==this.doc?Be(this.doc,t=>{xt(t,this,e)}):this._pending.push(()=>this.removeAttribute(e))}setAttribute(e,t){null!==this.doc?Be(this.doc,n=>{kt(n,this,e,t)}):this._pending.push(()=>this.setAttribute(e,t))}getAttribute(e){return At(this,e)}getAttributes(){return Ct(this)}_write(e){e.writeTypeRef(On)}}const Xt=e=>new Kt;class Jt{constructor(e,t=(()=>!0)){this._filter=t,this._root=e,this._currentNode=e._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let e=this._currentNode,t=e&&e.content&&e.content.type;if(null!==e&&(!this._firstCall||e.deleted||!this._filter(t)))do{if(t=e.content.type,e.deleted||t.constructor!==en&&t.constructor!==Qt||null===t._start)while(null!==e){if(null!==e.right){e=e.right;break}e=e.parent===this._root?null:e.parent._item}else e=t._start}while(null!==e&&(e.deleted||!this._filter(e.content.type)));return this._firstCall=!1,null===e?{value:void 0,done:!0}:(this._currentNode=e,{value:e.content.type,done:!1})}}class Qt extends ct{constructor(){super(),this._prelimContent=[]}get firstChild(){const e=this._first;return e?e.content.getContent()[0]:null}_integrate(e,t){super._integrate(e,t),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new Qt}clone(){const e=new Qt;return e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}get length(){return null===this._prelimContent?this._length:this._prelimContent.length}createTreeWalker(e){return new Jt(this,e)}querySelector(e){e=e.toUpperCase();const t=new Jt(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e),n=t.next();return n.done?null:n.value}querySelectorAll(e){return e=e.toUpperCase(),i["c"](new Jt(this,t=>t.nodeName&&t.nodeName.toUpperCase()===e))}_callObserver(e,t){lt(this,e,new nn(this,t,e))}toString(){return ft(this,e=>e.toString()).join("")}toJSON(){return this.toString()}toDOM(e=document,t={},n){const r=e.createDocumentFragment();return void 0!==n&&n._createAssociation(r,this),dt(this,i=>{r.insertBefore(i.toDOM(e,t,n),null)}),r}insert(e,t){null!==this.doc?Be(this.doc,n=>{bt(n,this,e,t)}):this._prelimContent.splice(e,0,...t)}insertAfter(e,t){if(null!==this.doc)Be(this.doc,n=>{const r=e&&e instanceof ct?e._item:e;gt(n,this,r,t)});else{const n=this._prelimContent,r=null===e?0:n.findIndex(t=>t===e)+1;if(0===r&&null!==e)throw d["a"]("Reference item not found");n.splice(r,0,...t)}}delete(e,t=1){null!==this.doc?Be(this.doc,n=>{wt(n,this,e,t)}):this._prelimContent.splice(e,t)}toArray(){return ht(this)}push(e){this.insert(this.length,e)}unshift(e){this.insert(0,e)}get(e){return mt(this,e)}slice(e=0,t=this.length){return ut(this,e,t)}forEach(e){dt(this,e)}_write(e){e.writeTypeRef(Pn)}}const $t=e=>new Qt;class en extends Qt{constructor(e="UNDEFINED"){super(),this.nodeName=e,this._prelimAttrs=new Map}get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_integrate(e,t){super._integrate(e,t),this._prelimAttrs.forEach((e,t)=>{this.setAttribute(t,e)}),this._prelimAttrs=null}_copy(){return new en(this.nodeName)}clone(){const e=new en(this.nodeName),t=this.getAttributes();return y["c"](t,(t,n)=>{"string"===typeof t&&e.setAttribute(n,t)}),e.insert(0,this.toArray().map(e=>e instanceof ct?e.clone():e)),e}toString(){const e=this.getAttributes(),t=[],n=[];for(const a in e)n.push(a);n.sort();const r=n.length;for(let a=0;a0?" "+t.join(" "):"";return`<${i}${o}>${super.toString()}`}removeAttribute(e){null!==this.doc?Be(this.doc,t=>{xt(t,this,e)}):this._prelimAttrs.delete(e)}setAttribute(e,t){null!==this.doc?Be(this.doc,n=>{kt(n,this,e,t)}):this._prelimAttrs.set(e,t)}getAttribute(e){return At(this,e)}hasAttribute(e){return Et(this,e)}getAttributes(){return Ct(this)}toDOM(e=document,t={},n){const r=e.createElement(this.nodeName),i=this.getAttributes();for(const o in i){const e=i[o];"string"===typeof e&&r.setAttribute(o,e)}return dt(this,i=>{r.appendChild(i.toDOM(e,t,n))}),void 0!==n&&n._createAssociation(r,this),r}_write(e){e.writeTypeRef(Dn),e.writeKey(this.nodeName)}}const tn=e=>new en(e.readKey());class nn extends Qe{constructor(e,t,n){super(e,n),this.childListChanged=!1,this.attributesChanged=new Set,t.forEach(e=>{null===e?this.childListChanged=!0:this.attributesChanged.add(e)})}}class rn extends Ot{constructor(e){super(),this.hookName=e}_copy(){return new rn(this.hookName)}clone(){const e=new rn(this.hookName);return this.forEach((t,n)=>{e.set(n,t)}),e}toDOM(e=document,t={},n){const r=t[this.hookName];let i;return i=void 0!==r?r.createDom(this):document.createElement(this.hookName),i.setAttribute("data-yjs-hook",this.hookName),void 0!==n&&n._createAssociation(i,this),i}_write(e){e.writeTypeRef(In),e.writeKey(this.hookName)}}const on=e=>new rn(e.readKey());class an extends Kt{get nextSibling(){const e=this._item?this._item.next:null;return e?e.content.type:null}get prevSibling(){const e=this._item?this._item.prev:null;return e?e.content.type:null}_copy(){return new an}clone(){const e=new an;return e.applyDelta(this.toDelta()),e}toDOM(e=document,t,n){const r=e.createTextNode(this.toString());return void 0!==n&&n._createAssociation(r,this),r}toString(){return this.toDelta().map(e=>{const t=[];for(const r in e.attributes){const n=[];for(const t in e.attributes[r])n.push({key:t,value:e.attributes[r][t]});n.sort((e,t)=>e.keye.nodeName=0;r--)n+=``;return n}).join("")}toJSON(){return this.toString()}_write(e){e.writeTypeRef(Rn)}}const sn=e=>new an;class ln{constructor(e,t){this.id=e,this.length=t}get deleted(){throw d["b"]()}mergeWith(e){return!1}write(e,t,n){throw d["b"]()}integrate(e,t){throw d["b"]()}}const cn=0;class un extends ln{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){t>0&&(this.id.clock+=t,this.length-=t),ke(e.doc.store,this)}write(e,t){e.writeInfo(cn),e.writeLen(this.length-t)}getMissing(e,t){return null}}class hn{constructor(e){this.content=e}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new hn(this.content)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeBuf(this.content)}getRef(){return 3}}const dn=e=>new hn(e.readBuf());class fn{constructor(e){this.len=e}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new fn(this.len)}splice(e){const t=new fn(this.len-e);return this.len=e,t}mergeWith(e){return this.len+=e.len,!0}integrate(e,t){T(e.deleteSet,t.id.client,t.id.clock,this.len),t.markDeleted()}delete(e){}gc(e){}write(e,t){e.writeLen(this.len-t)}getRef(){return 1}}const pn=e=>new fn(e.readLen()),mn=(e,t)=>new I({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1});class gn{constructor(e){e._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=e;const t={};this.opts=t,e.gc||(t.gc=!1),e.autoLoad&&(t.autoLoad=!0),null!==e.meta&&(t.meta=e.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new gn(mn(this.doc.guid,this.opts))}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){this.doc._item=t,e.subdocsAdded.add(this.doc),this.doc.shouldLoad&&e.subdocsLoaded.add(this.doc)}delete(e){e.subdocsAdded.has(this.doc)?e.subdocsAdded.delete(this.doc):e.subdocsRemoved.add(this.doc)}gc(e){}write(e,t){e.writeString(this.doc.guid),e.writeAny(this.opts)}getRef(){return 9}}const vn=e=>new gn(mn(e.readString(),e.readAny()));class bn{constructor(e){this.embed=e}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new bn(this.embed)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeJSON(this.embed)}getRef(){return 5}}const yn=e=>new bn(e.readJSON());class wn{constructor(e,t){this.key=e,this.value=t}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new wn(this.key,this.value)}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){const n=t.parent;n._searchMarker=null,n._hasFormatting=!0}delete(e){}gc(e){}write(e,t){e.writeKey(this.key),e.writeJSON(this.value)}getRef(){return 6}}const xn=e=>new wn(e.readKey(),e.readJSON());class kn{constructor(e){this.arr=e}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new kn(this.arr)}splice(e){const t=new kn(this.arr.slice(e));return this.arr=this.arr.slice(0,e),t}mergeWith(e){return this.arr=this.arr.concat(e.arr),!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){const n=this.arr.length;e.writeLen(n-t);for(let r=t;r{const t=e.readLen(),n=[];for(let r=0;r{const t=e.readLen(),n=[];for(let r=0;r=55296&&n<=56319&&(this.str=this.str.slice(0,e-1)+"�",t.str="�"+t.str.slice(1)),t}mergeWith(e){return this.str+=e.str,!0}integrate(e,t){}delete(e){}gc(e){}write(e,t){e.writeString(0===t?this.str:this.str.slice(t))}getRef(){return 4}}const Tn=e=>new Sn(e.readString()),Nn=[Mt,Dt,Xt,tn,$t,on,sn],Mn=0,Ln=1,On=2,Dn=3,Pn=4,In=5,Rn=6;class Fn{constructor(e){this.type=e}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new Fn(this.type._copy())}splice(e){throw d["b"]()}mergeWith(e){return!1}integrate(e,t){this.type._integrate(e.doc,t)}delete(e){let t=this.type._start;while(null!==t)t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e),t=t.right;this.type._map.forEach(t=>{t.deleted?t.id.clock<(e.beforeState.get(t.id.client)||0)&&e._mergeStructs.push(t):t.delete(e)}),e.changed.delete(this.type)}gc(e){let t=this.type._start;while(null!==t)t.gc(e,!0),t=t.right;this.type._start=null,this.type._map.forEach(t=>{while(null!==t)t.gc(e,!0),t=t.left}),this.type._map=new Map}write(e,t){this.type._write(e)}getRef(){return 7}}const zn=e=>new Fn(Nn[e.readTypeRef()](e)),Bn=(e,t,n)=>{const{client:r,clock:i}=t.id,o=new _n(fe(r,i+n),t,fe(r,i+n-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(n));return t.deleted&&o.markDeleted(),t.keep&&(o.keep=!0),null!==t.redone&&(o.redone=fe(t.redone.client,t.redone.clock+n)),t.right=o,null!==o.right&&(o.right.left=o),e._mergeStructs.push(o),null!==o.parentSub&&null===o.right&&o.parent._map.set(o.parentSub,o),t.length=n,o};class _n extends ln{constructor(e,t,n,r,i,o,a,s){super(e,s.getLength()),this.origin=n,this.left=t,this.right=r,this.rightOrigin=i,this.parent=o,this.parentSub=a,this.redone=null,this.content=s,this.info=this.content.isCountable()?f["b"]:0}set marker(e){(this.info&f["d"])>0!==e&&(this.info^=f["d"])}get marker(){return(this.info&f["d"])>0}get keep(){return(this.info&f["a"])>0}set keep(e){this.keep!==e&&(this.info^=f["a"])}get countable(){return(this.info&f["b"])>0}get deleted(){return(this.info&f["c"])>0}set deleted(e){this.deleted!==e&&(this.info^=f["c"])}markDeleted(){this.info|=f["c"]}getMissing(e,t){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=xe(t,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=xe(t,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===he&&this.id.client!==this.parent.client&&this.parent.clock>=xe(t,this.parent.client))return this.parent.client;if(this.origin&&(this.left=Ne(e,t,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Te(e,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===un||this.right&&this.right.constructor===un)this.parent=null;else if(this.parent){if(this.parent.constructor===he){const e=Ee(t,this.parent);e.constructor===un?this.parent=null:this.parent=e.content.type}}else this.left&&this.left.constructor===_n&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===_n&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);return null}integrate(e,t){if(t>0&&(this.id.clock+=t,this.left=Ne(e,e.doc.store,fe(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(t),this.length-=t),this.parent){if(!this.left&&(!this.right||null!==this.right.left)||this.left&&this.left.right!==this.right){let t,n=this.left;if(null!==n)t=n.right;else if(null!==this.parentSub){t=this.parent._map.get(this.parentSub)||null;while(null!==t&&null!==t.left)t=t.left}else t=this.parent._start;const r=new Set,i=new Set;while(null!==t&&t!==this.right){if(i.add(t),r.add(t),de(this.origin,t.origin)){if(t.id.client{t.p===e&&(t.p=this,!this.deleted&&this.countable&&(t.index-=this.length))}),e.keep&&(this.keep=!0),this.right=e.right,null!==this.right&&(this.right.left=this),this.length+=e.length,!0}return!1}delete(e){if(!this.deleted){const t=this.parent;this.countable&&null===this.parentSub&&(t._length-=this.length),this.markDeleted(),T(e.deleteSet,this.id.client,this.id.clock,this.length),Pe(e,t,this.parentSub),this.content.delete(e)}}gc(e,t){if(!this.deleted)throw d["c"]();this.content.gc(e),t?Me(e,this,new un(this.id,this.length)):this.content=new fn(this.length)}write(e,t){const n=t>0?fe(this.id.client,this.id.clock+t-1):this.origin,r=this.rightOrigin,i=this.parentSub,o=this.content.getRef()&f["k"]|(null===n?0:f["g"])|(null===r?0:f["f"])|(null===i?0:f["e"]);if(e.writeInfo(o),null!==n&&e.writeLeftID(n),null!==r&&e.writeRightID(r),null===n&&null===r){const t=this.parent;if(void 0!==t._item){const n=t._item;if(null===n){const n=pe(t);e.writeParentInfo(!0),e.writeString(n)}else e.writeParentInfo(!1),e.writeLeftID(n.id)}else t.constructor===String?(e.writeParentInfo(!0),e.writeString(t)):t.constructor===he?(e.writeParentInfo(!1),e.writeLeftID(t)):d["c"]();null!==i&&e.writeString(i)}this.content.write(e,t)}}const jn=(e,t)=>Hn[t&f["k"]](e),Hn=[()=>{d["c"]()},pn,An,dn,Tn,yn,xn,zn,En,vn,()=>{d["c"]()}],Un=10;class qn extends ln{get deleted(){return!0}delete(){}mergeWith(e){return this.constructor===e.constructor&&(this.length+=e.length,!0)}integrate(e,t){d["c"]()}write(e,t){e.writeInfo(Un),s["n"](e.restEncoder,this.length-t)}getMissing(e,t){return null}}const Gn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{},Wn="__ $YJS$ __";!0===Gn[Wn]&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),Gn[Wn]=!0}).call(this,n("c8ba"))},"4e2e":function(e,t,n){"use strict";n("6277")},"4e73":function(e,t,n){"use strict";n("7f29a")},"4ec2":function(e,t,n){e.exports=n.p+"img/timeline2.png"},"4f5a":function(e,t,n){e.exports=n.p+"img/-_14.svg"},"4f8c":function(e,t,n){e.exports=n.p+"img/pinkGrape.jpg"},"4f98":function(e,t,n){(function(t){ /*! * Quill Editor v1.3.6 * https://quilljs.com/ @@ -34,9 +34,9 @@ PERFORMANCE OF THIS SOFTWARE. * @license MIT * * BUILT: Wed Jan 26 2022 23:19:07 GMT+0100 (Mitteleuropäische Normalzeit) -*/const yo={},wo=[];function xo(e,t){if(Array.isArray(e))for(const n of e)xo(n,t);else if("object"!==typeof e)Co(Object.getOwnPropertyNames(t)),yo[e]=Object.assign(yo[e]||{},t);else for(const n in e)xo(n,e[n])}function ko(e){return yo[e]||{}}function Ao(){return[...new Set(wo)]}function Co(e){wo.push(...e)}function Eo(e,t){let n;const r=e.length,i=[];for(n=0;n=0;t--)Jo(e.children[t]);return e.id?(e.id=Xo(e.nodeName),e):e}function Qo(e,t){let n,r;for(e=Array.isArray(e)?e:[e],r=e.length-1;r>=0;r--)for(n in t)e[r].prototype[n]=t[n]}function $o(e){return function(...t){const n=t[t.length-1];return!n||n.constructor!==Object||n instanceof Array?e.apply(this,t):e.apply(this,t.slice(0,-1)).attr(n)}}function ea(){return this.parent().children()}function ta(){return this.parent().index(this)}function na(){return this.siblings()[this.position()+1]}function ra(){return this.siblings()[this.position()-1]}function ia(){const e=this.position(),t=this.parent();return t.add(this.remove(),e+1),this}function oa(){const e=this.position(),t=this.parent();return t.add(this.remove(),e?e-1:0),this}function aa(){const e=this.parent();return e.add(this.remove()),this}function sa(){const e=this.parent();return e.add(this.remove(),0),this}function la(e){e=qo(e),e.remove();const t=this.position();return this.parent().add(e,t),this}function ca(e){e=qo(e),e.remove();const t=this.position();return this.parent().add(e,t+1),this}function ua(e){return e=qo(e),e.before(this),this}function ha(e){return e=qo(e),e.after(this),this}xo("Dom",{siblings:ea,position:ta,next:na,prev:ra,forward:ia,backward:oa,front:aa,back:sa,before:la,after:ca,insertBefore:ua,insertAfter:ha});const da=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,fa=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,pa=/rgb\((\d+),(\d+),(\d+)\)/,ma=/(#[a-z_][a-z0-9\-_]*)/i,ga=/\)\s*,?\s*/,va=/\s/g,ba=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,ya=/^rgb\(/,wa=/^(\s+)?$/,xa=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ka=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Aa=/[\s,]+/,Ca=/[MLHVCSQTAZ]/i;function Ea(){const e=this.attr("class");return null==e?[]:e.trim().split(Aa)}function Sa(e){return-1!==this.classes().indexOf(e)}function Ta(e){if(!this.hasClass(e)){const t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this}function Na(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!==e})).join(" ")),this}function Ma(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)}function La(e,t){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(e){return!!e.length})).forEach((function(e){const t=e.split(/\s*:\s*/);n[t[0]]=t[1]})),n;if(arguments.length<2){if(Array.isArray(e)){for(const t of e){const e=No(t);n[t]=this.node.style[e]}return n}if("string"===typeof e)return this.node.style[No(e)];if("object"===typeof e)for(const t in e)this.node.style[No(t)]=null==e[t]||wa.test(e[t])?"":e[t]}return 2===arguments.length&&(this.node.style[No(e)]=null==t||wa.test(t)?"":t),this}function Oa(){return this.css("display","")}function Da(){return this.css("display","none")}function Pa(){return"none"!==this.css("display")}function Ia(e,t,n){if(null==e)return this.data(Eo(So(this.node.attributes,e=>0===e.nodeName.indexOf("data-")),e=>e.nodeName.slice(5)));if(e instanceof Array){const t={};for(const n of e)t[n]=this.data(n);return t}if("object"===typeof e)for(t in e)this.data(t,e[t]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+e))}catch(r){return this.attr("data-"+e)}else this.attr("data-"+e,null===t?null:!0===n||"string"===typeof t||"number"===typeof t?t:JSON.stringify(t));return this}function Ra(e,t){if("object"===typeof arguments[0])for(const n in e)this.remember(n,e[n]);else{if(1===arguments.length)return this.memory()[e];this.memory()[e]=t}return this}function Fa(){if(0===arguments.length)this._memory={};else for(let e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this}function za(){return this._memory=this._memory||{}}function Ba(e){return 4===e.length?["#",e.substring(1,2),e.substring(1,2),e.substring(2,3),e.substring(2,3),e.substring(3,4),e.substring(3,4)].join(""):e}function _a(e){const t=Math.round(e),n=Math.max(0,Math.min(255,t)),r=n.toString(16);return 1===r.length?"0"+r:r}function ja(e,t){for(let n=t.length;n--;)if(null==e[t[n]])return!1;return!0}function Ha(e,t){const n=ja(e,"rgb")?{_a:e.r,_b:e.g,_c:e.b,_d:0,space:"rgb"}:ja(e,"xyz")?{_a:e.x,_b:e.y,_c:e.z,_d:0,space:"xyz"}:ja(e,"hsl")?{_a:e.h,_b:e.s,_c:e.l,_d:0,space:"hsl"}:ja(e,"lab")?{_a:e.l,_b:e.a,_c:e.b,_d:0,space:"lab"}:ja(e,"lch")?{_a:e.l,_b:e.c,_c:e.h,_d:0,space:"lch"}:ja(e,"cmyk")?{_a:e.c,_b:e.m,_c:e.y,_d:e.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=t||n.space,n}function Ua(e){return"lab"===e||"xyz"===e||"lch"===e}function qa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}xo("Dom",{classes:Ea,hasClass:Sa,addClass:Ta,removeClass:Na,toggleClass:Ma}),xo("Dom",{css:La,show:Oa,hide:Da,visible:Pa}),xo("Dom",{data:Ia}),xo("Dom",{remember:Ra,forget:Fa,memory:za});class Ga{constructor(...e){this.init(...e)}static isColor(e){return e&&(e instanceof Ga||this.isRgb(e)||this.test(e))}static isRgb(e){return e&&"number"===typeof e.r&&"number"===typeof e.g&&"number"===typeof e.b}static random(e="vibrant",t,n){const{random:r,round:i,sin:o,PI:a}=Math;if("vibrant"===e){const e=24*r()+57,t=38*r()+45,n=360*r(),i=new Ga(e,t,n,"lch");return i}if("sine"===e){t=null==t?r():t;const e=i(80*o(2*a*t/.5+.01)+150),n=i(50*o(2*a*t/.5+4.6)+200),s=i(100*o(2*a*t/.5+2.3)+150),l=new Ga(e,n,s);return l}if("pastel"===e){const e=8*r()+86,t=17*r()+9,n=360*r(),i=new Ga(e,t,n,"lch");return i}if("dark"===e){const e=10+10*r(),t=50*r()+86,n=360*r(),i=new Ga(e,t,n,"lch");return i}if("rgb"===e){const e=255*r(),t=255*r(),n=255*r(),i=new Ga(e,t,n);return i}if("lab"===e){const e=100*r(),t=256*r()-128,n=256*r()-128,i=new Ga(e,t,n,"lab");return i}if("grey"===e){const e=255*r(),t=new Ga(e,e,e);return t}throw new Error("Unsupported random color mode")}static test(e){return"string"===typeof e&&(ba.test(e)||ya.test(e))}cmyk(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,i,o]=[e,t,n].map(e=>e/255),a=Math.min(1-r,1-i,1-o);if(1===a)return new Ga(0,0,0,1,"cmyk");const s=(1-r-a)/(1-a),l=(1-i-a)/(1-a),c=(1-o-a)/(1-a),u=new Ga(s,l,c,a,"cmyk");return u}hsl(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,i,o]=[e,t,n].map(e=>e/255),a=Math.max(r,i,o),s=Math.min(r,i,o),l=(a+s)/2,c=a===s,u=a-s,h=c?0:l>.5?u/(2-a-s):u/(a+s),d=c?0:a===r?((i-o)/u+(iparseInt(e));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!ba.test(e))throw Error("Unsupported string format, can't construct Color");{const t=e=>parseInt(e,16),[,n,r,i]=fa.exec(Ba(e)).map(t);Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}}const{_a:o,_b:a,_c:s,_d:l}=this,c="rgb"===this.space?{r:o,g:a,b:s}:"xyz"===this.space?{x:o,y:a,z:s}:"hsl"===this.space?{h:o,s:a,l:s}:"lab"===this.space?{l:o,a:a,b:s}:"lch"===this.space?{l:o,c:a,h:s}:"cmyk"===this.space?{c:o,m:a,y:s,k:l}:{};Object.assign(this,c)}lab(){const{x:e,y:t,z:n}=this.xyz(),r=116*t-16,i=500*(e-t),o=200*(t-n),a=new Ga(r,i,o,"lab");return a}lch(){const{l:e,a:t,b:n}=this.lab(),r=Math.sqrt(t**2+n**2);let i=180*Math.atan2(n,t)/Math.PI;i<0&&(i*=-1,i=360-i);const o=new Ga(e,r,i,"lch");return o}rgb(){if("rgb"===this.space)return this;if(Ua(this.space)){let{x:e,y:t,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:r,a:i,b:o}=this;if("lch"===this.space){const{c:e,h:t}=this,n=Math.PI/180;i=e*Math.cos(n*t),o=e*Math.sin(n*t)}const a=(r+16)/116,s=i/500+a,l=a-o/200,c=16/116,u=.008856,h=7.787;e=.95047*(s**3>u?s**3:(s-c)/h),t=1*(a**3>u?a**3:(a-c)/h),n=1.08883*(l**3>u?l**3:(l-c)/h)}const r=3.2406*e+-1.5372*t+-.4986*n,i=-.9689*e+1.8758*t+.0415*n,o=.0557*e+-.204*t+1.057*n,a=Math.pow,s=.0031308,l=r>s?1.055*a(r,1/2.4)-.055:12.92*r,c=i>s?1.055*a(i,1/2.4)-.055:12.92*i,u=o>s?1.055*a(o,1/2.4)-.055:12.92*o,h=new Ga(255*l,255*c,255*u);return h}if("hsl"===this.space){let{h:e,s:t,l:n}=this;if(e/=360,t/=100,n/=100,0===t){n*=255;const e=new Ga(n,n,n);return e}const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=255*qa(i,r,e+1/3),a=255*qa(i,r,e),s=255*qa(i,r,e-1/3),l=new Ga(o,a,s);return l}if("cmyk"===this.space){const{c:e,m:t,y:n,k:r}=this,i=255*(1-Math.min(1,e*(1-r)+r)),o=255*(1-Math.min(1,t*(1-r)+r)),a=255*(1-Math.min(1,n*(1-r)+r)),s=new Ga(i,o,a);return s}return this}toArray(){const{_a:e,_b:t,_c:n,_d:r,space:i}=this;return[e,t,n,r,i]}toHex(){const[e,t,n]=this._clamped().map(_a);return`#${e}${t}${n}`}toRgb(){const[e,t,n]=this._clamped(),r=`rgb(${e},${t},${n})`;return r}toString(){return this.toHex()}xyz(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,i,o]=[e,t,n].map(e=>e/255),a=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,s=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,l=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,c=(.4124*a+.3576*s+.1805*l)/.95047,u=(.2126*a+.7152*s+.0722*l)/1,h=(.0193*a+.1192*s+.9505*l)/1.08883,d=c>.008856?Math.pow(c,1/3):7.787*c+16/116,f=u>.008856?Math.pow(u,1/3):7.787*u+16/116,p=h>.008856?Math.pow(h,1/3):7.787*h+16/116,m=new Ga(d,f,p,"xyz");return m}_clamped(){const{_a:e,_b:t,_c:n}=this.rgb(),{max:r,min:i,round:o}=Math,a=e=>r(0,i(o(e),255));return[e,t,n].map(a)}}class Wa{constructor(...e){this.init(...e)}clone(){return new Wa(this)}init(e,t){const n={x:0,y:0},r=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===typeof e?{x:e.x,y:e.y}:{x:e,y:t};return this.x=null==r.x?n.x:r.x,this.y=null==r.y?n.y:r.y,this}toArray(){return[this.x,this.y]}transform(e){return this.clone().transformO(e)}transformO(e){Za.isMatrixLike(e)||(e=new Za(e));const{x:t,y:n}=this;return this.x=e.a*t+e.c*n+e.e,this.y=e.b*t+e.d*n+e.f,this}}function Va(e,t){return new Wa(e,t).transform(this.screenCTM().inverse())}function Ya(e,t,n){return Math.abs(t-e)<(n||1e-6)}class Za{constructor(...e){this.init(...e)}static formatTransforms(e){const t="both"===e.flip||!0===e.flip,n=e.flip&&(t||"x"===e.flip)?-1:1,r=e.flip&&(t||"y"===e.flip)?-1:1,i=e.skew&&e.skew.length?e.skew[0]:isFinite(e.skew)?e.skew:isFinite(e.skewX)?e.skewX:0,o=e.skew&&e.skew.length?e.skew[1]:isFinite(e.skew)?e.skew:isFinite(e.skewY)?e.skewY:0,a=e.scale&&e.scale.length?e.scale[0]*n:isFinite(e.scale)?e.scale*n:isFinite(e.scaleX)?e.scaleX*n:n,s=e.scale&&e.scale.length?e.scale[1]*r:isFinite(e.scale)?e.scale*r:isFinite(e.scaleY)?e.scaleY*r:r,l=e.shear||0,c=e.rotate||e.theta||0,u=new Wa(e.origin||e.around||e.ox||e.originX,e.oy||e.originY),h=u.x,d=u.y,f=new Wa(e.position||e.px||e.positionX||NaN,e.py||e.positionY||NaN),p=f.x,m=f.y,g=new Wa(e.translate||e.tx||e.translateX,e.ty||e.translateY),v=g.x,b=g.y,y=new Wa(e.relative||e.rx||e.relativeX,e.ry||e.relativeY),w=y.x,x=y.y;return{scaleX:a,scaleY:s,skewX:i,skewY:o,shear:l,theta:c,rx:w,ry:x,tx:v,ty:b,ox:h,oy:d,px:p,py:m}}static fromArray(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}static isMatrixLike(e){return null!=e.a||null!=e.b||null!=e.c||null!=e.d||null!=e.e||null!=e.f}static matrixMultiply(e,t,n){const r=e.a*t.a+e.c*t.b,i=e.b*t.a+e.d*t.b,o=e.a*t.c+e.c*t.d,a=e.b*t.c+e.d*t.d,s=e.e+e.a*t.e+e.c*t.f,l=e.f+e.b*t.e+e.d*t.f;return n.a=r,n.b=i,n.c=o,n.d=a,n.e=s,n.f=l,n}around(e,t,n){return this.clone().aroundO(e,t,n)}aroundO(e,t,n){const r=e||0,i=t||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new Za(this)}decompose(e=0,t=0){const n=this.a,r=this.b,i=this.c,o=this.d,a=this.e,s=this.f,l=n*o-r*i,c=l>0?1:-1,u=c*Math.sqrt(n*n+r*r),h=Math.atan2(c*r,c*n),d=180/Math.PI*h,f=Math.cos(h),p=Math.sin(h),m=(n*i+r*o)/l,g=i*u/(m*n-r)||o*u/(m*r+n),v=a-e+e*f*u+t*(m*f*u-p*g),b=s-t+e*p*u+t*(m*p*u+f*g);return{scaleX:u,scaleY:g,shear:m,rotate:d,translateX:v,translateY:b,originX:e,originY:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(e){if(e===this)return!0;const t=new Za(e);return Ya(this.a,t.a)&&Ya(this.b,t.b)&&Ya(this.c,t.c)&&Ya(this.d,t.d)&&Ya(this.e,t.e)&&Ya(this.f,t.f)}flip(e,t){return this.clone().flipO(e,t)}flipO(e,t){return"x"===e?this.scaleO(-1,1,t,0):"y"===e?this.scaleO(1,-1,0,t):this.scaleO(-1,-1,e,t||e)}init(e){const t=Za.fromArray([1,0,0,1,0,0]);return e=e instanceof Ns?e.matrixify():"string"===typeof e?Za.fromArray(e.split(Aa).map(parseFloat)):Array.isArray(e)?Za.fromArray(e):"object"===typeof e&&Za.isMatrixLike(e)?e:"object"===typeof e?(new Za).transform(e):6===arguments.length?Za.fromArray([].slice.call(arguments)):t,this.a=null!=e.a?e.a:t.a,this.b=null!=e.b?e.b:t.b,this.c=null!=e.c?e.c:t.c,this.d=null!=e.d?e.d:t.d,this.e=null!=e.e?e.e:t.e,this.f=null!=e.f?e.f:t.f,this}inverse(){return this.clone().inverseO()}inverseO(){const e=this.a,t=this.b,n=this.c,r=this.d,i=this.e,o=this.f,a=e*r-t*n;if(!a)throw new Error("Cannot invert "+this);const s=r/a,l=-t/a,c=-n/a,u=e/a,h=-(s*i+c*o),d=-(l*i+u*o);return this.a=s,this.b=l,this.c=c,this.d=u,this.e=h,this.f=d,this}lmultiply(e){return this.clone().lmultiplyO(e)}lmultiplyO(e){const t=this,n=e instanceof Za?e:new Za(e);return Za.matrixMultiply(n,t,this)}multiply(e){return this.clone().multiplyO(e)}multiplyO(e){const t=this,n=e instanceof Za?e:new Za(e);return Za.matrixMultiply(t,n,this)}rotate(e,t,n){return this.clone().rotateO(e,t,n)}rotateO(e,t=0,n=0){e=To(e);const r=Math.cos(e),i=Math.sin(e),{a:o,b:a,c:s,d:l,e:c,f:u}=this;return this.a=o*r-a*i,this.b=a*r+o*i,this.c=s*r-l*i,this.d=l*r+s*i,this.e=c*r-u*i+n*i-t*r+t,this.f=u*r+c*i-t*i-n*r+n,this}scale(e,t,n,r){return this.clone().scaleO(...arguments)}scaleO(e,t=e,n=0,r=0){3===arguments.length&&(r=n,n=t,t=e);const{a:i,b:o,c:a,d:s,e:l,f:c}=this;return this.a=i*e,this.b=o*t,this.c=a*e,this.d=s*t,this.e=l*e-n*e+n,this.f=c*t-r*t+r,this}shear(e,t,n){return this.clone().shearO(e,t,n)}shearO(e,t=0,n=0){const{a:r,b:i,c:o,d:a,e:s,f:l}=this;return this.a=r+i*e,this.c=o+a*e,this.e=s+l*e-n*e,this}skew(e,t,n,r){return this.clone().skewO(...arguments)}skewO(e,t=e,n=0,r=0){3===arguments.length&&(r=n,n=t,t=e),e=To(e),t=To(t);const i=Math.tan(e),o=Math.tan(t),{a:a,b:s,c:l,d:c,e:u,f:h}=this;return this.a=a+s*i,this.b=s+a*o,this.c=l+c*i,this.d=c+l*o,this.e=u+h*i-r*i,this.f=h+u*o-n*o,this}skewX(e,t,n){return this.skew(e,0,t,n)}skewY(e,t,n){return this.skew(0,e,t,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(e){if(Za.isMatrixLike(e)){const t=new Za(e);return t.multiplyO(this)}const t=Za.formatTransforms(e),n=this,{x:r,y:i}=new Wa(t.ox,t.oy).transform(n),o=(new Za).translateO(t.rx,t.ry).lmultiplyO(n).translateO(-r,-i).scaleO(t.scaleX,t.scaleY).skewO(t.skewX,t.skewY).shearO(t.shear).rotateO(t.theta).translateO(r,i);if(isFinite(t.px)||isFinite(t.py)){const e=new Wa(r,i).transform(o),n=isFinite(t.px)?t.px-e.x:0,a=isFinite(t.py)?t.py-e.y:0;o.translateO(n,a)}return o.translateO(t.tx,t.ty),o}translate(e,t){return this.clone().translateO(e,t)}translateO(e,t){return this.e+=e||0,this.f+=t||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function Ka(){return new Za(this.node.getCTM())}function Xa(){if("function"===typeof this.isRoot&&!this.isRoot()){const e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new Za(t)}return new Za(this.node.getScreenCTM())}function Ja(){if(!Ja.nodes){const e=qo().size(2,0);e.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),e.attr("focusable","false"),e.attr("aria-hidden","true");const t=e.path().node;Ja.nodes={svg:e,path:t}}if(!Ja.nodes.svg.node.parentNode){const e=Bo.document.body||Bo.document.documentElement;Ja.nodes.svg.addTo(e)}return Ja.nodes}function Qa(e){return!e.width&&!e.height&&!e.x&&!e.y}function $a(e){return e===Bo.document||(Bo.document.documentElement.contains||function(e){while(e.parentNode)e=e.parentNode;return e===Bo.document}).call(Bo.document.documentElement,e)}Yo(Za,"Matrix");class es{constructor(...e){this.init(...e)}addOffset(){return this.x+=Bo.window.pageXOffset,this.y+=Bo.window.pageYOffset,new es(this)}init(e){const t=[0,0,0,0];return e="string"===typeof e?e.split(Aa).map(parseFloat):Array.isArray(e)?e:"object"===typeof e?[null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height]:4===arguments.length?[].slice.call(arguments):t,this.x=e[0]||0,this.y=e[1]||0,this.width=this.w=e[2]||0,this.height=this.h=e[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Qa(this)}merge(e){const t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),r=Math.max(this.x+this.width,e.x+e.width)-t,i=Math.max(this.y+this.height,e.y+e.height)-n;return new es(t,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(e){e instanceof Za||(e=new Za(e));let t=1/0,n=-1/0,r=1/0,i=-1/0;const o=[new Wa(this.x,this.y),new Wa(this.x2,this.y),new Wa(this.x,this.y2),new Wa(this.x2,this.y2)];return o.forEach((function(o){o=o.transform(e),t=Math.min(t,o.x),n=Math.max(n,o.x),r=Math.min(r,o.y),i=Math.max(i,o.y)})),new es(t,r,n-t,i-r)}}function ts(e,t,n){let r;try{if(r=t(e.node),Qa(r)&&!$a(e.node))throw new Error("Element not in the dom")}catch(i){r=n(e)}return r}function ns(){const e=e=>e.getBBox(),t=e=>{try{const t=e.clone().addTo(Ja().svg).show(),n=t.node.getBBox();return t.remove(),n}catch(t){throw new Error(`Getting bbox of element "${e.node.nodeName}" is not possible: ${t.toString()}`)}},n=ts(this,e,t),r=new es(n);return r}function rs(e){const t=e=>e.getBoundingClientRect(),n=e=>{throw new Error(`Getting rbox of element "${e.node.nodeName}" is not possible`)},r=ts(this,t,n),i=new es(r);return e?i.transform(e.screenCTM().inverseO()):i.addOffset()}function is(e,t){const n=this.bbox();return e>n.x&&t>n.y&&ee.call(t,t,n,r)):this.map(n=>n[e](...t))},toArray(){return Array.prototype.concat.apply([],this)}});const as=["toArray","constructor","each"];function ss(e,t){return new os(Eo((t||Bo.document).querySelectorAll(e),(function(e){return Wo(e)})))}function ls(e){return ss(e,this.node)}function cs(e){return Wo(this.node.querySelector(e))}os.extend=function(e){e=e.reduce((e,t)=>(as.includes(t)||"_"===t[0]||(e[t]=function(...e){return this.each(t,...e)}),e),{}),Qo([os],e)};let us=0;const hs={};function ds(e){let t=e.getEventHolder();return t===Bo.window&&(t=hs),t.events||(t.events={}),t.events}function fs(e){return e.getEventTarget()}function ps(e){let t=e.getEventHolder();t===Bo.window&&(t=hs),t.events&&(t.events={})}function ms(e,t,n,r,i){const o=n.bind(r||e),a=qo(e),s=ds(a),l=fs(a);t=Array.isArray(t)?t:t.split(Aa),n._svgjsListenerId||(n._svgjsListenerId=++us),t.forEach((function(e){const t=e.split(".")[0],r=e.split(".")[1]||"*";s[t]=s[t]||{},s[t][r]=s[t][r]||{},s[t][r][n._svgjsListenerId]=o,l.addEventListener(t,o,i||!1)}))}function gs(e,t,n,r){const i=qo(e),o=ds(i),a=fs(i);("function"!==typeof n||(n=n._svgjsListenerId,n))&&(t=Array.isArray(t)?t:(t||"").split(Aa),t.forEach((function(e){const t=e&&e.split(".")[0],s=e&&e.split(".")[1];let l,c;if(n)o[t]&&o[t][s||"*"]&&(a.removeEventListener(t,o[t][s||"*"][n],r||!1),delete o[t][s||"*"][n]);else if(t&&s){if(o[t]&&o[t][s]){for(c in o[t][s])gs(a,[t,s].join("."),c);delete o[t][s]}}else if(s)for(e in o)for(l in o[e])s===l&&gs(a,[e,s].join("."));else if(t){if(o[t]){for(l in o[t])gs(a,[t,l].join("."));delete o[t]}}else{for(e in o)gs(a,e);ps(i)}})))}function vs(e,t,n,r){const i=fs(e);return t instanceof Bo.window.Event||(t=new Bo.window.CustomEvent(t,{detail:n,cancelable:!0,...r})),i.dispatchEvent(t),t}class bs extends _o{addEventListener(){}dispatch(e,t,n){return vs(this,e,t,n)}dispatchEvent(e){const t=this.getEventHolder().events;if(!t)return!0;const n=t[e.type];for(const r in n)for(const t in n[r])n[r][t](e);return!e.defaultPrevented}fire(e,t,n){return this.dispatch(e,t,n),this}getEventHolder(){return this}getEventTarget(){return this}off(e,t,n){return gs(this,e,t,n),this}on(e,t,n,r){return ms(this,e,t,n,r),this}removeEventListener(){}}function ys(){}Yo(bs,"EventTarget");const ws={duration:400,ease:">",delay:0},xs={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class ks extends Array{constructor(...e){super(...e),this.init(...e)}clone(){return new this.constructor(this)}init(e){return"number"===typeof e||(this.length=0,this.push(...this.parse(e))),this}parse(e=[]){return e instanceof Array?e:e.trim().split(Aa).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const e=[];return e.push(...this),e}}class As{constructor(...e){this.init(...e)}convert(e){return new As(this.value,e)}divide(e){return e=new As(e),new As(this/e,this.unit||e.unit)}init(e,t){return t=Array.isArray(e)?e[1]:t,e=Array.isArray(e)?e[0]:e,this.value=0,this.unit=t||"","number"===typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"===typeof e?(t=e.match(da),t&&(this.value=parseFloat(t[1]),"%"===t[5]?this.value/=100:"s"===t[5]&&(this.value*=1e3),this.unit=t[5])):e instanceof As&&(this.value=e.valueOf(),this.unit=e.unit),this}minus(e){return e=new As(e),new As(this-e,this.unit||e.unit)}plus(e){return e=new As(e),new As(this+e,this.unit||e.unit)}times(e){return e=new As(e),new As(this*e,this.unit||e.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Cs=[];function Es(e){Cs.push(e)}function Ss(e,t,n){if(null==e){e={},t=this.node.attributes;for(const n of t)e[n.nodeName]=xa.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return e}if(e instanceof Array)return e.reduce((e,t)=>(e[t]=this.attr(t),e),{});if("object"===typeof e&&e.constructor===Object)for(t in e)this.attr(t,e[t]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return t=this.node.getAttribute(e),null==t?xs[e]:xa.test(t)?parseFloat(t):t;t=Cs.reduce((t,n)=>n(e,t,this),t),"number"===typeof t?t=new As(t):Ga.isColor(t)?t=new Ga(t):t.constructor===Array&&(t=new ks(t)),"leading"===e?this.leading&&this.leading(t):"string"===typeof n?this.node.setAttributeNS(n,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!==e&&"x"!==e||this.rebuild()}return this}class Ts extends bs{constructor(e,t){super(),this.node=e,this.type=e.nodeName,t&&e!==t&&this.attr(t)}add(e,t){return e=qo(e),e.removeNamespace&&this.node instanceof Bo.window.SVGElement&&e.removeNamespace(),null==t?this.node.appendChild(e.node):e.node!==this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this}addTo(e,t){return qo(e).put(this,t)}children(){return new os(Eo(this.node.children,(function(e){return Wo(e)})))}clear(){while(this.node.hasChildNodes())this.node.removeChild(this.node.lastChild);return this}clone(e=!0){return this.writeDataToDom(),new this.constructor(Jo(this.node.cloneNode(e)))}each(e,t){const n=this.children();let r,i;for(r=0,i=n.length;r=0}html(e,t){return this.xml(e,t,Io)}id(e){return"undefined"!==typeof e||this.node.id||(this.node.id=Xo(this.type)),this.attr("id",e)}index(e){return[].slice.call(this.node.childNodes).indexOf(e.node)}last(){return Wo(this.node.lastChild)}matches(e){const t=this.node,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null;return n&&n.call(t,e)}parent(e){let t=this;if(!t.node.parentNode)return null;if(t=Wo(t.node.parentNode),!e)return t;do{if("string"===typeof e?t.matches(e):t instanceof e)return t}while(t=Wo(t.node.parentNode));return t}put(e,t){return e=qo(e),this.add(e,t),e}putIn(e,t){return qo(e).add(this,t)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(e){return this.node.removeChild(e.node),this}replace(e){return e=qo(e),this.node.parentNode&&this.node.parentNode.replaceChild(e.node,this.node),e}round(e=2,t=null){const n=10**e,r=this.attr(t);for(const i in r)"number"===typeof r[i]&&(r[i]=Math.round(r[i]*n)/n);return this.attr(r),this}svg(e,t){return this.xml(e,t,Po)}toString(){return this.id()}words(e){return this.node.textContent=e,this}wrap(e){const t=this.parent();if(!t)return this.addTo(e);const n=t.index(this);return t.put(e,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(e,t,n){if("boolean"===typeof e&&(n=t,t=e,e=null),null==e||"function"===typeof e){t=null==t||t,this.writeDataToDom();let n=this;if(null!=e){if(n=Wo(n.node.cloneNode(!0)),t){const t=e(n);if(n=t||n,!1===t)return""}n.each((function(){const t=e(this),n=t||this;!1===t?this.remove():t&&this!==n&&this.replace(n)}),!0)}return t?n.node.outerHTML:n.node.innerHTML}t=null!=t&&t;const r=Uo("wrapper",n),i=Bo.document.createDocumentFragment();r.innerHTML=e;for(let a=r.children.length;a--;)i.appendChild(r.firstElementChild);const o=this.parent();return t?this.replace(i)&&o:this.add(i)}}Qo(Ts,{attr:Ss,find:ls,findOne:cs}),Yo(Ts,"Dom");class Ns extends Ts{constructor(e,t){super(e,t),this.dom={},this.node.instance=this,e.hasAttribute("svgjs:data")&&this.setData(JSON.parse(e.getAttribute("svgjs:data"))||{})}center(e,t){return this.cx(e).cy(t)}cx(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)}cy(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)}defs(){const e=this.root();return e&&e.defs()}dmove(e,t){return this.dx(e).dy(t)}dx(e=0){return this.x(new As(e).plus(this.x()))}dy(e=0){return this.y(new As(e).plus(this.y()))}getEventHolder(){return this}height(e){return this.attr("height",e)}move(e,t){return this.x(e).y(t)}parents(e=this.root()){const t="string"===typeof e;t||(e=qo(e));const n=new os;let r=this;while((r=r.parent())&&r.node!==Bo.document&&"#document-fragment"!==r.nodeName){if(n.push(r),!t&&r.node===e.node)break;if(t&&r.matches(e))break;if(r.node===this.root().node)return null}return n}reference(e){if(e=this.attr(e),!e)return null;const t=(e+"").match(ma);return t?qo(t[1]):null}root(){const e=this.parent(Zo(Ho));return e&&e.root()}setData(e){return this.dom=e,this}size(e,t){const n=Oo(this,e,t);return this.width(new As(n.width)).height(new As(n.height))}width(e){return this.attr("width",e)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(e){return this.attr("x",e)}y(e){return this.attr("y",e)}}Qo(Ns,{bbox:ns,rbox:rs,inside:is,point:Va,ctm:Ka,screenCTM:Xa}),Yo(Ns,"Element");const Ms={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"===t?e:e+"-"+t}};["fill","stroke"].forEach((function(e){const t={};let n;t[e]=function(t){if("undefined"===typeof t)return this.attr(e);if("string"===typeof t||t instanceof Ga||Ga.isRgb(t)||t instanceof Ns)this.attr(e,t);else for(n=Ms[e].length-1;n>=0;n--)null!=t[Ms[e][n]]&&this.attr(Ms.prefix(e,Ms[e][n]),t[Ms[e][n]]);return this},xo(["Element","Runner"],t)})),xo(["Element","Runner"],{matrix:function(e,t,n,r,i,o){return null==e?new Za(this):this.attr("transform",new Za(e,t,n,r,i,o))},rotate:function(e,t,n){return this.transform({rotate:e,ox:t,oy:n},!0)},skew:function(e,t,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:e,ox:t,oy:n},!0):this.transform({skew:[e,t],ox:n,oy:r},!0)},shear:function(e,t,n){return this.transform({shear:e,ox:t,oy:n},!0)},scale:function(e,t,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:e,ox:t,oy:n},!0):this.transform({scale:[e,t],ox:n,oy:r},!0)},translate:function(e,t){return this.transform({translate:[e,t]},!0)},relative:function(e,t){return this.transform({relative:[e,t]},!0)},flip:function(e="both",t="center"){return-1==="xybothtrue".indexOf(e)&&(t=e,e="both"),this.transform({flip:e,origin:t},!0)},opacity:function(e){return this.attr("opacity",e)}}),xo("radius",{radius:function(e,t=e){const n=(this._element||this).type;return"radialGradient"===n?this.attr("r",new As(e)):this.rx(e).ry(t)}}),xo("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(e){return new Wa(this.node.getPointAtLength(e))}}),xo(["Element","Runner"],{font:function(e,t){if("object"===typeof e){for(t in e)this.font(t,e[t]);return this}return"leading"===e?this.leading(t):"anchor"===e?this.attr("text-anchor",t):"size"===e||"family"===e||"weight"===e||"stretch"===e||"variant"===e||"style"===e?this.attr("font-"+e,t):this.attr(e,t)}});const Ls=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce((function(e,t){const n=function(e){return null===e?this.off(t):this.on(t,e),this};return e[t]=n,e}),{});function Os(){return this.attr("transform",null)}function Ds(){const e=(this.attr("transform")||"").split(ga).slice(0,-1).map((function(e){const t=e.trim().split("(");return[t[0],t[1].split(Aa).map((function(e){return parseFloat(e)}))]})).reverse().reduce((function(e,t){return"matrix"===t[0]?e.lmultiply(Za.fromArray(t[1])):e[t[0]].apply(e,t[1])}),new Za);return e}function Ps(e,t){if(this===e)return this;const n=this.screenCTM(),r=e.screenCTM().inverse();return this.addTo(e,t).untransform().transform(r.multiply(n)),this}function Is(e){return this.toParent(this.root(),e)}function Rs(e,t){if(null==e||"string"===typeof e){const t=new Za(this).decompose();return null==e?t:t[e]}Za.isMatrixLike(e)||(e={...e,origin:Do(e,this)});const n=!0===t?this:t||!1,r=new Za(n).transform(e);return this.attr("transform",r)}xo("Element",Ls),xo("Element",{untransform:Os,matrixify:Ds,toParent:Ps,toRoot:Is,transform:Rs});class Fs extends Ns{flatten(e=this,t){return this.each((function(){if(this instanceof Fs)return this.flatten().ungroup()})),this}ungroup(e=this.parent(),t=e.index(this)){return t=-1===t?e.children().length:t,this.each((function(n,r){return r[r.length-n-1].toParent(e,t)})),this.remove()}}Yo(Fs,"Container");class zs extends Fs{constructor(e,t=e){super(Go("defs",e),t)}flatten(){return this}ungroup(){return this}}Yo(zs,"Defs");class Bs extends Ns{}function _s(e){return this.attr("rx",e)}function js(e){return this.attr("ry",e)}function Hs(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())}function Us(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())}function qs(e){return this.attr("cx",e)}function Gs(e){return this.attr("cy",e)}function Ws(e){return null==e?2*this.rx():this.rx(new As(e).divide(2))}function Vs(e){return null==e?2*this.ry():this.ry(new As(e).divide(2))}Yo(Bs,"Shape");var Ys={__proto__:null,rx:_s,ry:js,x:Hs,y:Us,cx:qs,cy:Gs,width:Ws,height:Vs};class Zs extends Bs{constructor(e,t=e){super(Go("ellipse",e),t)}size(e,t){const n=Oo(this,e,t);return this.rx(new As(n.width).divide(2)).ry(new As(n.height).divide(2))}}Qo(Zs,Ys),xo("Container",{ellipse:$o((function(e=0,t=e){return this.put(new Zs).size(e,t).move(0,0)}))}),Yo(Zs,"Ellipse");class Ks extends Ts{constructor(e=Bo.document.createDocumentFragment()){super(e)}xml(e,t,n){if("boolean"===typeof e&&(n=t,t=e,e=null),null==e||"function"===typeof e){const e=new Ts(Uo("wrapper",n));return e.add(this.node.cloneNode(!0)),e.xml(!1,n)}return super.xml(e,!1,n)}}function Xs(e,t){return"radialGradient"===(this._element||this).type?this.attr({fx:new As(e),fy:new As(t)}):this.attr({x1:new As(e),y1:new As(t)})}function Js(e,t){return"radialGradient"===(this._element||this).type?this.attr({cx:new As(e),cy:new As(t)}):this.attr({x2:new As(e),y2:new As(t)})}Yo(Ks,"Fragment");var Qs={__proto__:null,from:Xs,to:Js};class $s extends Fs{constructor(e,t){super(Go(e+"Gradient","string"===typeof e?null:e),t)}attr(e,t,n){return"transform"===e&&(e="gradientTransform"),super.attr(e,t,n)}bbox(){return new es}targets(){return ss('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(e){return this.clear(),"function"===typeof e&&e.call(this,this),this}url(){return'url("#'+this.id()+'")'}}Qo($s,Qs),xo({Container:{gradient(...e){return this.defs().gradient(...e)}},Defs:{gradient:$o((function(e,t){return this.put(new $s(e)).update(t)}))}}),Yo($s,"Gradient");class el extends Fs{constructor(e,t=e){super(Go("pattern",e),t)}attr(e,t,n){return"transform"===e&&(e="patternTransform"),super.attr(e,t,n)}bbox(){return new es}targets(){return ss('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(e){return this.clear(),"function"===typeof e&&e.call(this,this),this}url(){return'url("#'+this.id()+'")'}}xo({Container:{pattern(...e){return this.defs().pattern(...e)}},Defs:{pattern:$o((function(e,t,n){return this.put(new el).update(n).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}))}}),Yo(el,"Pattern");class tl extends Bs{constructor(e,t=e){super(Go("image",e),t)}load(e,t){if(!e)return this;const n=new Bo.window.Image;return ms(n,"load",(function(e){const r=this.parent(el);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof el&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"===typeof t&&t.call(this,e)}),this),ms(n,"load error",(function(){gs(n)})),this.attr("href",n.src=e,Fo)}}Es((function(e,t,n){return"fill"!==e&&"stroke"!==e||ka.test(t)&&(t=n.root().defs().image(t)),t instanceof tl&&(t=n.root().defs().pattern(0,0,e=>{e.add(t)})),t})),xo({Container:{image:$o((function(e,t){return this.put(new tl).size(0,0).load(e,t)}))}}),Yo(tl,"Image");class nl extends ks{bbox(){let e=-1/0,t=-1/0,n=1/0,r=1/0;return this.forEach((function(i){e=Math.max(i[0],e),t=Math.max(i[1],t),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new es(n,r,e-n,t-r)}move(e,t){const n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(let r=this.length-1;r>=0;r--)this[r]=[this[r][0]+e,this[r][1]+t];return this}parse(e=[0,0]){const t=[];e=e instanceof Array?Array.prototype.concat.apply([],e):e.trim().split(Aa).map(parseFloat),e.length%2!==0&&e.pop();for(let n=0,r=e.length;n=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*e/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*t/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const e=[];for(let t=0,n=this.length;t":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)},bezier:function(e,t,n,r){return function(i){return i<0?e>0?t/e*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):e<1?(1-t)/(1-e)*i+(t-e)/(1-e):1:3*i*(1-i)**2*t+3*i**2*(1-i)*r+i**3}},steps:function(e,t="end"){t=t.split("-").reverse()[0];let n=e;return"none"===t?--n:"both"===t&&++n,(r,i=!1)=>{let o=Math.floor(r*e);const a=r*o%1===0;return"start"!==t&&"both"!==t||++o,i&&a&&--o,r>=0&&o<0&&(o=0),r<=1&&o>n&&(o=n),o/n}}};class fl{done(){return!1}}class pl extends fl{constructor(e=ws.ease){super(),this.ease=dl[e]||e}step(e,t,n){return"number"!==typeof e?n<1?e:t:e+(t-e)*this.ease(n)}}class ml extends fl{constructor(e){super(),this.stepper=e}done(e){return e.done}step(e,t,n,r){return this.stepper(e,t,n,r)}}function gl(){const e=(this._duration||500)/1e3,t=this._overshoot||0,n=1e-10,r=Math.PI,i=Math.log(t/100+n),o=-i/Math.sqrt(r*r+i*i),a=3.9/(o*e);this.d=2*o*a,this.k=a*a}class vl extends ml{constructor(e=500,t=0){super(),this.duration(e).overshoot(t)}step(e,t,n,r){if("string"===typeof e)return e;if(r.done=n===1/0,n===1/0)return t;if(0===n)return e;n>100&&(n=16),n/=1e3;const i=r.velocity||0,o=-this.d*i-this.k*(e-t),a=e+i*n+o*n*n/2;return r.velocity=i+o*n,r.done=Math.abs(t-a)+Math.abs(i)<.002,r.done?t:a}}Qo(vl,{duration:hl("_duration",gl),overshoot:hl("_overshoot",gl)});class bl extends ml{constructor(e=.1,t=.01,n=0,r=1e3){super(),this.p(e).i(t).d(n).windup(r)}step(e,t,n,r){if("string"===typeof e)return e;if(r.done=n===1/0,n===1/0)return t;if(0===n)return e;const i=t-e;let o=(r.integral||0)+i*n;const a=(i-(r.error||0))/n,s=this._windup;return!1!==s&&(o=Math.max(-s,Math.min(o,s))),r.error=i,r.integral=o,r.done=Math.abs(i)<.001,r.done?t:e+(this.P*i+this.I*o+this.D*a)}}Qo(bl,{windup:hl("_windup"),p:hl("P"),i:hl("I"),d:hl("D")});const yl={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},wl={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},T:function(e,t){return t.x=e[0],t.y=e[1],["T",e[0],e[1]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]},A:function(e,t){return t.x=e[5],t.y=e[6],["A",e[0],e[1],e[2],e[3],e[4],e[5],e[6]]}},xl="mlhvqtcsaz".split("");for(let RE=0,FE=xl.length;RE=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]+=e,this[i][2]+=t):"H"===r?this[i][1]+=e:"V"===r?this[i][1]+=t:"C"===r||"S"===r||"Q"===r?(this[i][1]+=e,this[i][2]+=t,this[i][3]+=e,this[i][4]+=t,"C"===r&&(this[i][5]+=e,this[i][6]+=t)):"A"===r&&(this[i][6]+=e,this[i][7]+=t);return this}parse(e="M0 0"){return Array.isArray(e)&&(e=Array.prototype.concat.apply([],e).toString()),Ml(e)}size(e,t){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*e/n.width+n.x,this[r][2]=(this[r][2]-n.y)*t/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*e/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*t/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*e/n.width+n.x,this[r][2]=(this[r][2]-n.y)*t/n.height+n.y,this[r][3]=(this[r][3]-n.x)*e/n.width+n.x,this[r][4]=(this[r][4]-n.y)*t/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*e/n.width+n.x,this[r][6]=(this[r][6]-n.y)*t/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*e/n.width,this[r][2]=this[r][2]*t/n.height,this[r][6]=(this[r][6]-n.x)*e/n.width+n.x,this[r][7]=(this[r][7]-n.y)*t/n.height+n.y);return this}toString(){return Ll(this)}}const Dl=e=>{const t=typeof e;return"number"===t?As:"string"===t?Ga.isColor(e)?Ga:Aa.test(e)?Ca.test(e)?Ol:ks:da.test(e)?As:Il:Bl.indexOf(e.constructor)>-1?e.constructor:Array.isArray(e)?ks:"object"===t?zl:Il};class Pl{constructor(e){this._stepper=e||new pl("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(e){return this._morphObj.morph(this._from,this._to,e,this._stepper,this._context)}done(){const e=this._context.map(this._stepper.done).reduce((function(e,t){return e&&t}),!0);return e}from(e){return null==e?this._from:(this._from=this._set(e),this)}stepper(e){return null==e?this._stepper:(this._stepper=e,this)}to(e){return null==e?this._to:(this._to=this._set(e),this)}type(e){return null==e?this._type:(this._type=e,this)}_set(e){this._type||this.type(Dl(e));let t=new this._type(e);return this._type===Ga&&(t=this._to?t[this._to[4]]():this._from?t[this._from[4]]():t),this._type===zl&&(t=this._to?t.align(this._to):this._from?t.align(this._from):t),t=t.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(t.length)).map(Object).map((function(e){return e.done=!0,e})),t}}class Il{constructor(...e){this.init(...e)}init(e){return e=Array.isArray(e)?e[0]:e,this.value=e,this}toArray(){return[this.value]}valueOf(){return this.value}}class Rl{constructor(...e){this.init(...e)}init(e){return Array.isArray(e)&&(e={scaleX:e[0],scaleY:e[1],shear:e[2],rotate:e[3],translateX:e[4],translateY:e[5],originX:e[6],originY:e[7]}),Object.assign(this,Rl.defaults,e),this}toArray(){const e=this;return[e.scaleX,e.scaleY,e.shear,e.rotate,e.translateX,e.translateY,e.originX,e.originY]}}Rl.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Fl=(e,t)=>e[0]t[0]?1:0;class zl{constructor(...e){this.init(...e)}align(e){const t=this.values;for(let n=0,r=t.length;ne.concat(t),[]),this}toArray(){return this.values}valueOf(){const e={},t=this.values;while(t.length){const n=t.shift(),r=t.shift(),i=t.shift(),o=t.splice(0,i);e[n]=new r(o)}return e}}const Bl=[Il,Rl,zl];function _l(e=[]){Bl.push(...[].concat(e))}function jl(){Qo(Bl,{to(e){return(new Pl).type(this.constructor).from(this.toArray()).to(e)},fromArray(e){return this.init(e),this},toConsumable(){return this.toArray()},morph(e,t,n,r,i){const o=function(e,o){return r.step(e,t[o],n,i[o],i)};return this.fromArray(e.map(o))}})}class Hl extends Bs{constructor(e,t=e){super(Go("path",e),t)}array(){return this._array||(this._array=new Ol(this.attr("d")))}clear(){return delete this._array,this}height(e){return null==e?this.bbox().height:this.size(this.bbox().width,e)}move(e,t){return this.attr("d",this.array().move(e,t))}plot(e){return null==e?this.array():this.clear().attr("d","string"===typeof e?e:this._array=new Ol(e))}size(e,t){const n=Oo(this,e,t);return this.attr("d",this.array().size(n.width,n.height))}width(e){return null==e?this.bbox().width:this.size(e,this.bbox().height)}x(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)}y(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)}}function Ul(){return this._array||(this._array=new nl(this.attr("points")))}function ql(){return delete this._array,this}function Gl(e,t){return this.attr("points",this.array().move(e,t))}function Wl(e){return null==e?this.array():this.clear().attr("points","string"===typeof e?e:this._array=new nl(e))}function Vl(e,t){const n=Oo(this,e,t);return this.attr("points",this.array().size(n.width,n.height))}Hl.prototype.MorphArray=Ol,xo({Container:{path:$o((function(e){return this.put(new Hl).plot(e||new Ol)}))}}),Yo(Hl,"Path");var Yl={__proto__:null,array:Ul,clear:ql,move:Gl,plot:Wl,size:Vl};class Zl extends Bs{constructor(e,t=e){super(Go("polygon",e),t)}}xo({Container:{polygon:$o((function(e){return this.put(new Zl).plot(e||new nl)}))}}),Qo(Zl,ll),Qo(Zl,Yl),Yo(Zl,"Polygon");class Kl extends Bs{constructor(e,t=e){super(Go("polyline",e),t)}}xo({Container:{polyline:$o((function(e){return this.put(new Kl).plot(e||new nl)}))}}),Qo(Kl,ll),Qo(Kl,Yl),Yo(Kl,"Polyline");class Xl extends Bs{constructor(e,t=e){super(Go("rect",e),t)}}Qo(Xl,{rx:_s,ry:js}),xo({Container:{rect:$o((function(e,t){return this.put(new Xl).size(e,t)}))}}),Yo(Xl,"Rect");class Jl{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(e){const t="undefined"!==typeof e.next?e:{value:e,next:null,prev:null};return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._last=t,this._first=t),t}remove(e){e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this._last&&(this._last=e.prev),e===this._first&&(this._first=e.next),e.prev=null,e.next=null}shift(){const e=this._first;return e?(this._first=e.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,e.value):null}}const Ql={nextDraw:null,frames:new Jl,timeouts:new Jl,immediates:new Jl,timer:()=>Bo.window.performance||Bo.window.Date,transforms:[],frame(e){const t=Ql.frames.push({run:e});return null===Ql.nextDraw&&(Ql.nextDraw=Bo.window.requestAnimationFrame(Ql._draw)),t},timeout(e,t){t=t||0;const n=Ql.timer().now()+t,r=Ql.timeouts.push({run:e,time:n});return null===Ql.nextDraw&&(Ql.nextDraw=Bo.window.requestAnimationFrame(Ql._draw)),r},immediate(e){const t=Ql.immediates.push(e);return null===Ql.nextDraw&&(Ql.nextDraw=Bo.window.requestAnimationFrame(Ql._draw)),t},cancelFrame(e){null!=e&&Ql.frames.remove(e)},clearTimeout(e){null!=e&&Ql.timeouts.remove(e)},cancelImmediate(e){null!=e&&Ql.immediates.remove(e)},_draw(e){let t=null;const n=Ql.timeouts.last();while(t=Ql.timeouts.shift())if(e>=t.time?t.run():Ql.timeouts.push(t),t===n)break;let r=null;const i=Ql.frames.last();while(r!==i&&(r=Ql.frames.shift()))r.run(e);let o=null;while(o=Ql.immediates.shift())o();Ql.nextDraw=Ql.timeouts.first()||Ql.frames.first()?Bo.window.requestAnimationFrame(Ql._draw):null}},$l=function(e){const t=e.start,n=e.runner.duration(),r=t+n;return{start:t,duration:n,end:r,runner:e.runner}},ec=function(){const e=Bo.window;return(e.performance||e.Date).now()};class tc extends bs{constructor(e=ec){super(),this._timeSource=e,this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const e=this.getLastRunnerInfo(),t=e?e.runner.duration():0,n=e?e.start:this._time;return n+t}getEndTimeOfTimeline(){const e=this._runners.map(e=>e.start+e.runner.duration());return Math.max(0,...e)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(e){return this._runners[this._runnerIds.indexOf(e)]||null}pause(){return this._paused=!0,this._continue()}persist(e){return null==e?this._persist:(this._persist=e,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(e){const t=this.speed();if(null==e)return this.speed(-t);const n=Math.abs(t);return this.speed(e?-n:n)}schedule(e,t,n){if(null==e)return this._runners.map($l);let r=0;const i=this.getEndTime();if(t=t||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=t,t=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(e.id);n&&(r=n.start+t,t=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const e=this.getLastRunnerInfo(),t=e?e.start:this._time;r=t}}e.unschedule(),e.timeline(this);const o=e.persist(),a={persist:null===o?this._persist:o,start:r+t,runner:e};return this._lastRunnerId=e.id,this._runners.push(a),this._runners.sort((e,t)=>e.start-t.start),this._runnerIds=this._runners.map(e=>e.runner.id),this.updateTime()._continue(),this}seek(e){return this.time(this._time+e)}source(e){return null==e?this._timeSource:(this._timeSource=e,this)}speed(e){return null==e?this._speed:(this._speed=e,this)}stop(){return this.time(0),this.pause()}time(e){return null==e?this._time:(this._time=e,this._continue(!0))}unschedule(e){const t=this._runnerIds.indexOf(e.id);return t<0||(this._runners.splice(t,1),this._runnerIds.splice(t,1),e.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(e=!1){return Ql.cancelFrame(this._nextFrame),this._nextFrame=null,e?this._stepImmediate():(this._paused||(this._nextFrame=Ql.frame(this._step)),this)}_stepFn(e=!1){const t=this._timeSource();let n=t-this._lastSourceTime;e&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=t,e||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let o=this._runners.length;o--;){const e=this._runners[o],t=e.runner,n=this._time-e.start;n<=0&&t.reset()}let i=!1;for(let o=0,a=this._runners.length;o0?this._continue():(this.pause(),this.fire("finished")),this}}xo({Element:{timeline:function(e){return null==e?(this._timeline=this._timeline||new tc,this._timeline):(this._timeline=e,this)}}});class nc extends bs{constructor(e){super(),this.id=nc.id++,e=null==e?ws.duration:e,e="function"===typeof e?new ml(e):e,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"===typeof e&&e,this._isDeclarative=e instanceof ml,this._stepper=this._isDeclarative?e:new pl,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Za,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(e,t,n){let r=1,i=!1,o=0;return e=e||ws.duration,t=t||ws.delay,n=n||"last","object"!==typeof e||e instanceof fl||(t=e.delay||t,n=e.when||n,i=e.swing||i,r=e.times||r,o=e.wait||o,e=e.duration||ws.duration),{duration:e,delay:t,swing:i,times:r,wait:o,when:n}}active(e){return null==e?this.enabled:(this.enabled=e,this)}addTransform(e,t){return this.transforms.lmultiplyO(e),this}after(e){return this.on("finished",e)}animate(e,t,n){const r=nc.sanitise(e,t,n),i=new nc(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new Za,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(e=>!e.isTransform))}delay(e){return this.animate(0,e)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(e){return this.queue(null,e)}ease(e){return this._stepper=new pl(e),this}element(e){return null==e?this._element:(this._element=e,e._prepareRunner(),this)}finish(){return this.step(1/0)}loop(e,t,n){return"object"===typeof e&&(t=e.swing,n=e.wait,e=e.times),this._times=e||1/0,this._swing=t||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(e){const t=this._duration+this._wait;if(null==e){const e=Math.floor(this._time/t),n=this._time-e*t,r=n/this._duration;return Math.min(e+r,this._times)}const n=Math.floor(e),r=e%1,i=t*n+this._duration*r;return this.time(i)}persist(e){return null==e?this._persist:(this._persist=e,this)}position(e){const t=this._time,n=this._duration,r=this._wait,i=this._times,o=this._swing,a=this._reverse;let s;if(null==e){const e=function(e){const t=o*Math.floor(e%(2*(r+n))/(r+n)),i=t&&!a||!t&&a,s=Math.pow(-1,i)*(e%(r+n))/n+i,l=Math.max(Math.min(s,1),0);return l},l=i*(r+n)-r;return s=t<=0?Math.round(e(1e-5)):t=0;this._lastPosition=t;const r=this.duration(),i=this._lastTime<=0&&this._time>0,o=this._lastTime=r;this._lastTime=this._time,i&&this.fire("start",this);const a=this._isDeclarative;this.done=!a&&!o&&this._time>=r,this._reseted=!1;let s=!1;return(n||a)&&(this._initialise(n),this.transforms=new Za,s=this._run(a?e:t),this.fire("step",this)),this.done=this.done||s&&a,o&&this.fire("finished",this),this}time(e){if(null==e)return this._time;const t=e-this._time;return this.step(t),this}timeline(e){return"undefined"===typeof e?this._timeline:(this._timeline=e,this)}unschedule(){const e=this.timeline();return e&&e.unschedule(this),this}_initialise(e){if(e||this._isDeclarative)for(let t=0,n=this._queue.length;te.lmultiplyO(t),oc=e=>e.transforms;function ac(){const e=this._transformationRunners.runners,t=e.map(oc).reduce(ic,new Za);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class sc{constructor(){this.runners=[],this.ids=[]}add(e){if(this.runners.includes(e))return;const t=e.id+1;return this.runners.push(e),this.ids.push(t),this}clearBefore(e){const t=this.ids.indexOf(e+1)||1;return this.ids.splice(0,t,0),this.runners.splice(0,t,new rc).forEach(e=>e.clearTransformsFromQueue()),this}edit(e,t){const n=this.ids.indexOf(e+1);return this.ids.splice(n,1,e+1),this.runners.splice(n,1,t),this}getByID(e){return this.runners[this.ids.indexOf(e+1)]}length(){return this.ids.length}merge(){let e=null;for(let t=0;tt.id<=e.id).map(oc).reduce(ic,new Za)},_addRunner(e){this._transformationRunners.add(e),Ql.cancelImmediate(this._frameId),this._frameId=Ql.immediate(ac.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new sc).add(new rc(new Za(this))))}}});const lc=(e,t)=>e.filter(e=>!t.includes(e));Qo(nc,{attr(e,t){return this.styleAttr("attr",e,t)},css(e,t){return this.styleAttr("css",e,t)},styleAttr(e,t,n){if("string"===typeof t)return this.styleAttr(e,{[t]:n});let r=t;if(this._tryRetarget(e,r))return this;let i=new Pl(this._stepper).to(r),o=Object.keys(r);return this.queue((function(){i=i.from(this.element()[e](o))}),(function(t){return this.element()[e](i.at(t).valueOf()),i.done()}),(function(t){const n=Object.keys(t),a=lc(n,o);if(a.length){const t=this.element()[e](a),n=new zl(i.from()).valueOf();Object.assign(n,t),i.from(n)}const s=new zl(i.to()).valueOf();Object.assign(s,t),i.to(s),o=n,r=t})),this._rememberMorpher(e,i),this},zoom(e,t){if(this._tryRetarget("zoom",e,t))return this;let n=new Pl(this._stepper).to(new As(e));return this.queue((function(){n=n.from(this.element().zoom())}),(function(e){return this.element().zoom(n.at(e),t),n.done()}),(function(e,r){t=r,n.to(e)})),this._rememberMorpher("zoom",n),this},transform(e,t,n){if(t=e.relative||t,this._isDeclarative&&!t&&this._tryRetarget("transform",e))return this;const r=Za.isMatrixLike(e);n=null!=e.affine?e.affine:null!=n?n:!r;const i=new Pl(this._stepper).type(n?Rl:Za);let o,a,s,l,c;function u(){a=a||this.element(),o=o||Do(e,a),c=new Za(t?void 0:a),a._addRunner(this),t||a._clearTransformRunnersBefore(this)}function h(u){t||this.clearTransform();const{x:h,y:d}=new Wa(o).transform(a._currentTransform(this));let f=new Za({...e,origin:[h,d]}),p=this._isDeclarative&&s?s:c;if(n){f=f.decompose(h,d),p=p.decompose(h,d);const e=f.rotate,t=p.rotate,n=[e-360,e,e+360],r=n.map(e=>Math.abs(e-t)),i=Math.min(...r),o=r.indexOf(i);f.rotate=n[o]}t&&(r||(f.rotate=e.rotate||0),this._isDeclarative&&l&&(p.rotate=l)),i.from(p),i.to(f);const m=i.at(u);return l=m.rotate,s=new Za(m),this.addTransform(s),a._addRunner(this),i.done()}function d(t){(t.origin||"center").toString()!==(e.origin||"center").toString()&&(o=Do(t,a)),e={...t,origin:o}}return this.queue(u,h,d,!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(e,t){return this._queueNumber("x",e)},y(e){return this._queueNumber("y",e)},dx(e=0){return this._queueNumberDelta("x",e)},dy(e=0){return this._queueNumberDelta("y",e)},dmove(e,t){return this.dx(e).dy(t)},_queueNumberDelta(e,t){if(t=new As(t),this._tryRetarget(e,t))return this;const n=new Pl(this._stepper).to(t);let r=null;return this.queue((function(){r=this.element()[e](),n.from(r),n.to(r+t)}),(function(t){return this.element()[e](n.at(t)),n.done()}),(function(e){n.to(r+new As(e))})),this._rememberMorpher(e,n),this},_queueObject(e,t){if(this._tryRetarget(e,t))return this;const n=new Pl(this._stepper).to(t);return this.queue((function(){n.from(this.element()[e]())}),(function(t){return this.element()[e](n.at(t)),n.done()})),this._rememberMorpher(e,n),this},_queueNumber(e,t){return this._queueObject(e,new As(t))},cx(e){return this._queueNumber("cx",e)},cy(e){return this._queueNumber("cy",e)},move(e,t){return this.x(e).y(t)},center(e,t){return this.cx(e).cy(t)},size(e,t){let n;return e&&t||(n=this._element.bbox()),e||(e=n.width/n.height*t),t||(t=n.height/n.width*e),this.width(e).height(t)},width(e){return this._queueNumber("width",e)},height(e){return this._queueNumber("height",e)},plot(e,t,n,r){if(4===arguments.length)return this.plot([e,t,n,r]);if(this._tryRetarget("plot",e))return this;const i=new Pl(this._stepper).type(this._element.MorphArray).to(e);return this.queue((function(){i.from(this._element.array())}),(function(e){return this._element.plot(i.at(e)),i.done()})),this._rememberMorpher("plot",i),this},leading(e){return this._queueNumber("leading",e)},viewbox(e,t,n,r){return this._queueObject("viewbox",new es(e,t,n,r))},update(e){return"object"!==typeof e?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",e.offset),this)}}),Qo(nc,{rx:_s,ry:js,from:Xs,to:Js}),Yo(nc,"Runner");class cc extends Fs{constructor(e,t=e){super(Go("svg",e),t),this.namespace()}defs(){return this.isRoot()?Wo(this.node.querySelector("defs"))||this.put(new zs):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Bo.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Po,version:"1.1"}).attr("xmlns:xlink",Fo,Ro).attr("xmlns:svgjs",zo,Ro):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Ro).attr("xmlns:svgjs",null,Ro)}root(){return this.isRoot()?this:super.root()}}xo({Container:{nested:$o((function(){return this.put(new cc)}))}}),Yo(cc,"Svg",!0);class uc extends Fs{constructor(e,t=e){super(Go("symbol",e),t)}}function hc(e){return!1===this._build&&this.clear(),this.node.appendChild(Bo.document.createTextNode(e)),this}function dc(){return this.node.getComputedTextLength()}function fc(e,t=this.bbox()){return null==e?t.x:this.attr("x",this.attr("x")+e-t.x)}function pc(e,t=this.bbox()){return null==e?t.y:this.attr("y",this.attr("y")+e-t.y)}function mc(e,t,n=this.bbox()){return this.x(e,n).y(t,n)}function gc(e,t=this.bbox()){return null==e?t.cx:this.attr("x",this.attr("x")+e-t.cx)}function vc(e,t=this.bbox()){return null==e?t.cy:this.attr("y",this.attr("y")+e-t.cy)}function bc(e,t,n=this.bbox()){return this.cx(e,n).cy(t,n)}function yc(e){return this.attr("x",e)}function wc(e){return this.attr("y",e)}function xc(e,t){return this.ax(e).ay(t)}function kc(e){return this._build=!!e,this}xo({Container:{symbol:$o((function(){return this.put(new uc)}))}}),Yo(uc,"Symbol");var Ac={__proto__:null,plain:hc,length:dc,x:fc,y:pc,move:mc,cx:gc,cy:vc,center:bc,ax:yc,ay:wc,amove:xc,build:kc};class Cc extends Bs{constructor(e,t=e){super(Go("text",e),t),this.dom.leading=new As(1.3),this._rebuild=!0,this._build=!1}leading(e){return null==e?this.dom.leading:(this.dom.leading=new As(e),this.rebuild())}rebuild(e){if("boolean"===typeof e&&(this._rebuild=e),this._rebuild){const e=this;let t=0;const n=this.dom.leading;this.each((function(r){const i=Bo.window.getComputedStyle(this.node).getPropertyValue("font-size"),o=n*new As(i);this.dom.newLined&&(this.attr("x",e.attr("x")),"\n"===this.text()?t+=o:(this.attr("dy",r?o+t:0),t=0))})),this.fire("rebuild")}return this}setData(e){return this.dom=e,this.dom.leading=new As(e.leading||1.3),this}text(e){if(void 0===e){const t=this.node.childNodes;let n=0;e="";for(let r=0,i=t.length;r{let i;try{i=n.bbox()}catch(l){return}const o=new Za(n),a=o.translate(e,t).transform(o.inverse()),s=new Wa(i.x,i.y).transform(a);n.move(s.x,s.y)}),this}function Lc(e){return this.dmove(e,0)}function Oc(e){return this.dmove(0,e)}function Dc(e,t=this.bbox()){return null==e?t.height:this.size(t.width,e,t)}function Pc(e=0,t=0,n=this.bbox()){const r=e-n.x,i=t-n.y;return this.dmove(r,i)}function Ic(e,t,n=this.bbox()){const r=Oo(this,e,t,n),i=r.width/n.width,o=r.height/n.height;return this.children().forEach((e,t)=>{const r=new Wa(n).transform(new Za(e).inverse());e.scale(i,o,r.x,r.y)}),this}function Rc(e,t=this.bbox()){return null==e?t.width:this.size(e,t.height,t)}function Fc(e,t=this.bbox()){return null==e?t.x:this.move(e,t.y,t)}function zc(e,t=this.bbox()){return null==e?t.y:this.move(t.x,e,t)}xo({Container:{foreignObject:$o((function(e,t){return this.put(new Nc).size(e,t)}))}}),Yo(Nc,"ForeignObject");var Bc={__proto__:null,dmove:Mc,dx:Lc,dy:Oc,height:Dc,move:Pc,size:Ic,width:Rc,x:Fc,y:zc};class _c extends Fs{constructor(e,t=e){super(Go("g",e),t)}}Qo(_c,Bc),xo({Container:{group:$o((function(){return this.put(new _c)}))}}),Yo(_c,"G");class jc extends Fs{constructor(e,t=e){super(Go("a",e),t)}target(e){return this.attr("target",e)}to(e){return this.attr("href",e,Fo)}}Qo(jc,Bc),xo({Container:{link:$o((function(e){return this.put(new jc).to(e)}))},Element:{unlink(){const e=this.linker();if(!e)return this;const t=e.parent();if(!t)return this.remove();const n=t.index(e);return t.add(this,n),e.remove(),this},linkTo(e){let t=this.linker();return t||(t=new jc,this.wrap(t)),"function"===typeof e?e.call(t,t):t.to(e),this},linker(){const e=this.parent();return e&&"a"===e.node.nodeName.toLowerCase()?e:null}}}),Yo(jc,"A");class Hc extends Fs{constructor(e,t=e){super(Go("mask",e),t)}remove(){return this.targets().forEach((function(e){e.unmask()})),super.remove()}targets(){return ss('svg [mask*="'+this.id()+'"]')}}xo({Container:{mask:$o((function(){return this.defs().put(new Hc)}))},Element:{masker(){return this.reference("mask")},maskWith(e){const t=e instanceof Hc?e:this.parent().mask().add(e);return this.attr("mask",'url("#'+t.id()+'")')},unmask(){return this.attr("mask",null)}}}),Yo(Hc,"Mask");class Uc extends Ns{constructor(e,t=e){super(Go("stop",e),t)}update(e){return("number"===typeof e||e instanceof As)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new As(e.offset)),this}}function qc(e,t){if(!e)return"";if(!t)return e;let n=e+"{";for(const r in t)n+=Mo(r)+":"+t[r]+";";return n+="}",n}xo({Gradient:{stop:function(e,t,n){return this.put(new Uc).update(e,t,n)}}}),Yo(Uc,"Stop");class Gc extends Ns{constructor(e,t=e){super(Go("style",e),t)}addText(e=""){return this.node.textContent+=e,this}font(e,t,n={}){return this.rule("@font-face",{fontFamily:e,src:t,...n})}rule(e,t){return this.addText(qc(e,t))}}xo("Dom",{style(e,t){return this.put(new Gc).rule(e,t)},fontface(e,t,n){return this.put(new Gc).font(e,t,n)}}),Yo(Gc,"Style");class Wc extends Cc{constructor(e,t=e){super(Go("textPath",e),t)}array(){const e=this.track();return e?e.array():null}plot(e){const t=this.track();let n=null;return t&&(n=t.plot(e)),null==e?n:this}track(){return this.reference("href")}}xo({Container:{textPath:$o((function(e,t){return e instanceof Cc||(e=this.text(e)),e.path(t)}))},Text:{path:$o((function(e,t=!0){const n=new Wc;let r;if(e instanceof Hl||(e=this.defs().path(e)),n.attr("href","#"+e,Fo),t)while(r=this.node.firstChild)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:$o((function(e){return e instanceof Cc||(e=(new Cc).addTo(this.parent()).text(e)),e.path(this)})),targets(){return ss("svg textPath").filter(e=>(e.attr("href")||"").includes(this.id()))}}}),Wc.prototype.MorphArray=Ol,Yo(Wc,"TextPath");class Vc extends Bs{constructor(e,t=e){super(Go("use",e),t)}use(e,t){return this.attr("href",(t||"")+"#"+e,Fo)}}xo({Container:{use:$o((function(e,t){return this.put(new Vc).use(e,t)}))}}),Yo(Vc,"Use");const Yc=qo;Qo([cc,uc,tl,el,ul],ko("viewbox")),Qo([cl,Kl,Zl,Hl],ko("marker")),Qo(Cc,ko("Text")),Qo(Hl,ko("Path")),Qo(zs,ko("Defs")),Qo([Cc,Ec],ko("Tspan")),Qo([Xl,Zs,$s,nc],ko("radius")),Qo(bs,ko("EventTarget")),Qo(Ts,ko("Dom")),Qo(Ns,ko("Element")),Qo(Bs,ko("Shape")),Qo([Fs,Ks],ko("Container")),Qo($s,ko("Gradient")),Qo(nc,ko("Runner")),os.extend(Ao()),_l([As,Ga,es,Za,ks,nl,Ol,Wa]),jl();class Zc{constructor(e){this.node=e}getShapePadding(e,t,n,r){const i=this.node.getShape(),o=15,a=5,s=e+2*n,l=t+2*r,c=Math.abs(s-l);switch(i){case oo["a"].SHAPE.ROUNDED_RECTANGLE:return{paddingX:t>e?(t-e)/2:0,paddingY:0};case oo["a"].SHAPE.DIAMOND:return{paddingX:e/2,paddingY:t/2};case oo["a"].SHAPE.PARALLELOGRAM:return{paddingX:n<=0?o:0,paddingY:0};case oo["a"].SHAPE.OUTER_TRIANGULAR_RECTANGLE:return{paddingX:n<=0?o:0,paddingY:0};case oo["a"].SHAPE.INNER_TRIANGULAR_RECTANGLE:return{paddingX:n<=0?o:0,paddingY:0};case oo["a"].SHAPE.ELLIPSE:return{paddingX:n<=0?o:0,paddingY:r<=0?a:0};case oo["a"].SHAPE.CIRCLE:return{paddingX:l>s?c/2:0,paddingY:l0}function Qc(){const e=this.formatGetGeneralization();return!!e.find(e=>!e.range||e.range.length<=0)}function $c(e){return this._generalizationList.findIndex(t=>t.generalizationNode.uid===e.uid)}function eu(){if(this.isGeneralization||!this.checkHasGeneralization())return;let e=0,t=0;const n=this.formatGetGeneralization();n.forEach((n,r)=>{let i=this._generalizationList[r];i||(i=this._generalizationList[r]={}),i.node=this,i.range=n.range,i.generalizationLine||(i.generalizationLine=this.lineDraw.path()),i.generalizationNode||(i.generalizationNode=new ah({data:{data:n},uid:Object(v["m"])(),renderer:this.renderer,mindMap:this.mindMap,isGeneralization:!0})),i.generalizationNode.generalizationBelongNode=this,i.generalizationNode.width>e&&(e=i.generalizationNode.width),i.generalizationNode.height>t&&(t=i.generalizationNode.height),n.isActive&&this.renderer.addNodeToActiveList(i.generalizationNode)}),this._generalizationNodeWidth=e,this._generalizationNodeHeight=t}function tu(){this.isGeneralization||(this.removeGeneralization(),this.createGeneralizationNode())}function nu(){if(this.isGeneralization)return;this.updateGeneralizationData();const e=this.formatGetGeneralization();e.length<=0||!1===this.getData("expand")?this.removeGeneralization():(e.length!==this._generalizationList.length&&this.removeGeneralization(),this.createGeneralizationNode(),this.renderer.layout.renderGeneralization(this._generalizationList),this._generalizationList.forEach(e=>{this.style.generalizationLine(e.generalizationLine),e.generalizationNode.render()}))}function ru(){const e=this.children.length,t=this.formatGetGeneralization(),n=[];t.forEach(t=>{t.range?t.range.length>0&&t.range[0]<=e-1&&t.range[1]<=e-1&&n.push(t):n.push(t)}),n.length!==t.length&&this.setData({generalization:n})}function iu(){this.isGeneralization||(this._generalizationList.forEach(e=>{e.generalizationLine&&(e.generalizationLine.remove(),e.generalizationLine=null),e.generalizationNode&&(this.renderer.removeNodeFromActiveList(e.generalizationNode),e.generalizationNode.remove(),e.generalizationNode=null)}),this._generalizationList=[],this.generalizationBelongNode&&this.nodeDraw.find(".generalization_"+this.generalizationBelongNode.uid).remove())}function ou(){this.isGeneralization||this._generalizationList.forEach(e=>{e.generalizationLine&&e.generalizationLine.hide(),e.generalizationNode&&e.generalizationNode.hide()})}function au(){this.isGeneralization||this._generalizationList.forEach(e=>{e.generalizationLine&&e.generalizationLine.show(),e.generalizationNode&&e.generalizationNode.show()})}function su(e){this._generalizationList.forEach(t=>{t.generalizationLine.opacity(e),t.generalizationNode.group.opacity(e)})}function lu(){const e=this.generalizationBelongNode,t=e.formatGetGeneralization(),n=e.getGeneralizationNodeIndex(this),r=t[n];Array.isArray(r.range)&&r.range.length>0?this.mindMap.renderer.highlightNode(e,r.range):this.mindMap.renderer.highlightNode(e)}function cu(){this.mindMap.renderer.closeHighlightNode()}var uu={formatGetGeneralization:Xc,checkHasGeneralization:Jc,checkHasSelfGeneralization:Qc,getGeneralizationNodeIndex:$c,createGeneralizationNode:eu,updateGeneralization:tu,updateGeneralizationData:ru,renderGeneralization:nu,removeGeneralization:iu,hideGeneralization:ou,showGeneralization:au,setGeneralizationOpacity:su,handleGeneralizationMouseenter:lu,handleGeneralizationMouseleave:cu};const hu='',du='',fu='',pu='';var mu={open:hu,close:du,remove:fu,imgAdjust:pu};function gu(){if(this._openExpandNode)return;let{close:e,open:t}=this.mindMap.opt.expandBtnIcon||{};this.mindMap.opt.isShowExpandNum?(this._openExpandNode=Yc().text().size(this.expandBtnSize,this.expandBtnSize),this._openExpandNode.attr({"text-anchor":"middle","dominant-baseline":"middle",x:this.expandBtnSize/2,y:2})):(this._openExpandNode=Yc(t||mu.open).size(this.expandBtnSize,this.expandBtnSize),this._openExpandNode.x(0).y(-this.expandBtnSize/2)),this._closeExpandNode=Yc(e||mu.close).size(this.expandBtnSize,this.expandBtnSize),this._closeExpandNode.x(0).y(-this.expandBtnSize/2),this._fillExpandNode=(new Sc).size(this.expandBtnSize),this._fillExpandNode.x(0).y(-this.expandBtnSize/2),this.style.iconBtn(this._openExpandNode,this._closeExpandNode,this._fillExpandNode)}function vu(e=[]){return e.reduce((e,t)=>e+this.sumNode(t.children||[]),e.length)}function bu(){let e,{expand:t}=this.getData();if(t!==this._lastExpandBtnType&&(this._expandBtn&&this._expandBtn.clear(),this.createExpandNodeContent(),!1===t?(e=this._openExpandNode,this._lastExpandBtnType=!1):(e=this._closeExpandNode,this._lastExpandBtnType=!0),this._expandBtn)){let{isShowExpandNum:n,expandBtnStyle:r,expandBtnNumHandler:i}=this.mindMap.opt;if(n)if(t)this._fillExpandNode.stroke("none");else{this._fillExpandNode.stroke({color:r.strokeColor});let t=this.sumNode(this.nodeData.children);t=i(t),e.text(t)}this._expandBtn.add(this._fillExpandNode).add(e)}}function yu(){this._expandBtn&&this.renderer.layout.renderExpandBtn(this,this._expandBtn)}function wu(){!this.nodeData.children||this.nodeData.children.length<=0||this.isRoot||(this._expandBtn||(this._expandBtn=new _c,this._expandBtn.on("mouseover",e=>{e.stopPropagation(),this._expandBtn.css({cursor:"pointer"})}),this._expandBtn.on("mouseout",e=>{e.stopPropagation(),this._expandBtn.css({cursor:"auto"})}),this._expandBtn.on("click",e=>{e.stopPropagation(),this.mindMap.execCommand("SET_NODE_EXPAND",this,!this.getData("expand")),this.mindMap.emit("expand_btn_click",this)}),this._expandBtn.on("dblclick",e=>{e.stopPropagation()}),this._expandBtn.addClass("smm-expand-btn")),this.group.add(this._expandBtn),this._showExpandBtn=!0,this.updateExpandBtnNode(),this.updateExpandBtnPos())}function xu(){this._expandBtn&&this._showExpandBtn&&(this._expandBtn.remove(),this._showExpandBtn=!1)}function ku(){this.mindMap.opt.alwaysShowExpandBtn||setTimeout(()=>{this.renderExpandBtn()},0)}function Au(){if(this.mindMap.opt.alwaysShowExpandBtn||this._isMouseenter)return;let{isActive:e,expand:t}=this.getData();!e&&t&&setTimeout(()=>{this.removeExpandBtn()},0)}var Cu={createExpandNodeContent:gu,updateExpandBtnNode:bu,updateExpandBtnPos:yu,renderExpandBtn:wu,removeExpandBtn:xu,showExpandBtn:ku,hideExpandBtn:Au,sumNode:vu};function Eu(e={}){this.mindMap.execCommand("SET_NODE_DATA",this,e)}function Su(e,t,n){this.mindMap.execCommand("SET_NODE_TEXT",this,e,t,n)}function Tu(e){this.mindMap.execCommand("SET_NODE_IMAGE",this,e)}function Nu(e){this.mindMap.execCommand("SET_NODE_ICON",this,e)}function Mu(e,t){this.mindMap.execCommand("SET_NODE_HYPERLINK",this,e,t)}function Lu(e){this.mindMap.execCommand("SET_NODE_NOTE",this,e)}function Ou(e){this.mindMap.execCommand("SET_NODE_TAG",this,e)}function Du(e){this.mindMap.execCommand("SET_NODE_SHAPE",this,e)}function Pu(e,t){this.mindMap.execCommand("SET_NODE_STYLE",this,e,t)}function Iu(e){this.mindMap.execCommand("SET_NODE_STYLES",this,e)}var Ru={setData:Eu,setText:Su,setImage:Tu,setIcon:Nu,setHyperlink:Mu,setNote:Lu,setTag:Ou,setShape:Du,setStyle:Pu,setStyles:Iu};function Fu(){let e=this.getData("image");if(!e)return;let t=this.getImgShowSize(),n=(new tl).load(e).size(...t);return this.getData("imageTitle")&&n.attr("title",this.getData("imageTitle")),n.on("dblclick",e=>{this.mindMap.emit("node_img_dblclick",this,e)}),n.on("mouseenter",e=>{this.mindMap.emit("node_img_mouseenter",this,n,e)}),n.on("mouseleave",e=>{this.mindMap.emit("node_img_mouseleave",this,n,e)}),n.on("mousemove",e=>{this.mindMap.emit("node_img_mousemove",this,n,e)}),{node:n,width:t[0],height:t[1]}}function zu(){const{custom:e,width:t,height:n}=this.getData("imageSize");return e?[t,n]:Object(v["W"])(t,n,this.mindMap.themeConfig.imgMaxWidth,this.mindMap.themeConfig.imgMaxHeight)}function Bu(){let e=this.getData();if(!e.icon||e.icon.length<=0)return[];let t=this.mindMap.themeConfig.iconSize;return e.icon.map(e=>{let n=I.getNodeIconListIcon(e,this.mindMap.opt.iconList||[]),r=null;return r=/^{this.mindMap.emit("node_icon_click",this,e,t)}),{node:r,width:t,height:t}})}function _u(){const{textAutoWrapWidth:e}=this.mindMap.opt;let t=new _c,n=!1;if(this.getData("resetRichText")&&(delete this.nodeData.data.resetRichText,n=!0),[oo["a"].CHANGE_THEME].includes(this.mindMap.renderer.renderSource)&&(this.hasCustomStyle()||(n=!0)),n){let e=this.getData("text"),t=Object(v["g"])(e),n=this.style.createStyleText();t?(e=Object(v["U"])(e),e=Object(v["b"])(e,"span",n)):e=`

${e}

`,this.setData({text:e})}let r=`
${this.getData("text")}
`;oo["d"].measureRichtextNodeTextSizeEl||(oo["d"].measureRichtextNodeTextSizeEl=document.createElement("div"),oo["d"].measureRichtextNodeTextSizeEl.style.position="fixed",oo["d"].measureRichtextNodeTextSizeEl.style.left="-999999px",this.mindMap.el.appendChild(oo["d"].measureRichtextNodeTextSizeEl));let i=oo["d"].measureRichtextNodeTextSizeEl;i.innerHTML=r;let o=i.children[0];o.classList.add("smm-richtext-node-wrap"),o.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),o.style.maxWidth=e+"px";let{width:a,height:s}=o.getBoundingClientRect();if(s<=0){i.innerHTML="

abc123我和你

";let e=i.children[0];e.classList.add("smm-richtext-node-wrap"),s=e.getBoundingClientRect().height}a=Math.ceil(a)+1,s=Math.ceil(s),t.attr("data-width",a),t.attr("data-height",s);let l=new Nc;return l.width(a),l.height(s),l.add(i.children[0]),t.add(l),{node:t,width:a,height:s}}function ju(){if(this.getData("richText"))return this.createRichTextNode();let e=new _c,t=this.getStyle("fontSize",!1),n=this.getStyle("lineHeight",!1),r=this.style.getTextFontStyle(),i=[];Object(v["I"])(this.getData("text"))||(i=String(this.getData("text")).split(/\n/gim));let o=this.mindMap.opt.textAutoWrapWidth,a=!1;i.forEach((e,t)=>{let n=e.split(""),s=[],l=[];while(n.length){let e=n.shift(),t=[...l,e].join("");Object(v["L"])(t,r).width<=o?l.push(e):(s.push(l.join("")),l=[e])}l.length>0&&s.push(l.join("")),s.length>1&&(a=!0),i[t]=s.join("\n")}),i=i.join("\n").split(/\n/gim),i.forEach((r,i)=>{let o=(new Cc).text(r);this.style.text(o),o.y(t*n*i),e.add(o)});let{width:s,height:l}=e.bbox();return s=Math.ceil(s),l=Math.ceil(l),e.attr("data-width",s),e.attr("data-height",l),e.attr("data-ismultiLine",a||i.length>1),{node:e,width:s,height:l}}function Hu(){let{hyperlink:e,hyperlinkTitle:t}=this.getData();if(!e)return;let n=this.mindMap.themeConfig.iconSize,r=new Yc,i=(new jc).to(e).target("_blank");i.node.addEventListener("click",e=>{e.stopPropagation()}),t&&i.attr("title",t),i.rect(n,n).fill({color:"transparent"});let o=Yc(I.hyperlink).size(n,n);return this.style.iconNode(o),i.add(o),r.add(i),{node:r,width:n,height:n}}function Uu(){let e=this.getData("tag");if(!e||e.length<=0)return[];let t=[];return e.slice(0,this.mindMap.opt.maxTag).forEach((e,n)=>{let r=new _c,i=(new Cc).text(e).x(8).cy(8);this.style.tagText(i,n);let{width:o}=i.bbox(),a=(new Xl).size(o+16,20);const s=this.mindMap.opt.tagsColorMap||{},l=s[i.node.textContent];this.style.tagRect(a,i,l),r.add(a).add(i),t.push({node:r,width:o+16,height:20})}),t}function qu(){if(!this.getData("note"))return null;let e=this.mindMap.themeConfig.iconSize,t=(new Yc).attr("cursor","pointer");t.add((new Xl).size(e,e).fill({color:"transparent"}));let n=Yc(I.note).size(e,e);if(this.style.iconNode(n),t.add(n),!this.mindMap.opt.customNoteContentShow){if(!this.noteEl){this.noteEl=document.createElement("div"),this.noteEl.style.cssText=`\n position: fixed;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 2px 5px rgb(0 0 0 / 10%);\n display: none;\n background-color: #fff;\n z-index: ${this.mindMap.opt.nodeNoteTooltipZIndex}\n `;const e=this.mindMap.opt.customInnerElsAppendTo||document.body;e.appendChild(this.noteEl)}this.noteEl.innerText=this.getData("note")}return t.on("mouseover",()=>{const{left:e,top:t}=this.getNoteContentPosition();this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.show(this.getData("note"),e,t,this):(this.noteEl.style.left=e+"px",this.noteEl.style.top=t+"px",this.noteEl.style.display="block")}),t.on("mouseout",()=>{this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.hide():this.noteEl.style.display="none"}),{node:t,width:e,height:e}}function Gu(){const e=this.mindMap.themeConfig.iconSize,{scaleY:t}=this.mindMap.view.getTransformData().transform,n=e*t;let{left:r,top:i}=this._noteData.node.node.getBoundingClientRect();return i+=n,{left:r,top:i}}function Wu(e){oo["d"].measureCustomNodeContentSizeEl||(oo["d"].measureCustomNodeContentSizeEl=document.createElement("div"),oo["d"].measureCustomNodeContentSizeEl.style.cssText="\n position: fixed;\n left: -99999px;\n top: -99999px;\n ",this.mindMap.el.appendChild(oo["d"].measureCustomNodeContentSizeEl)),oo["d"].measureCustomNodeContentSizeEl.innerHTML="",oo["d"].measureCustomNodeContentSizeEl.appendChild(e);let t=oo["d"].measureCustomNodeContentSizeEl.getBoundingClientRect();return{width:t.width,height:t.height}}function Vu(){return!!this._customNodeContent}var Yu={createImgNode:Fu,getImgShowSize:zu,createIconNode:Bu,createRichTextNode:_u,createTextNode:ju,createHyperlinkNode:Hu,createTagNode:Uu,createNoteNode:qu,getNoteContentPosition:Gu,measureCustomNodeContentSize:Wu,isUseCustomNodeContent:Vu};function Zu(){if(!(!this.nodeData.children||this.nodeData.children.length<=0||this.isRoot)&&!this.mindMap.opt.alwaysShowExpandBtn){let{width:e,height:t}=this;this._unVisibleRectRegionNode||(this._unVisibleRectRegionNode=new Xl,this._unVisibleRectRegionNode.fill({color:"transparent"})),this.group.add(this._unVisibleRectRegionNode),this.renderer.layout.renderExpandBtnRect(this._unVisibleRectRegionNode,this.expandBtnSize,e,t,this)}}function Ku(){this._unVisibleRectRegionNode&&(this._unVisibleRectRegionNode.remove(),this._unVisibleRectRegionNode=null)}function Xu(){this.needRerenderExpandBtnPlaceholderRect&&(this.needRerenderExpandBtnPlaceholderRect=!1,this.renderExpandBtnPlaceholderRect()),this.nodeData.children&&this.nodeData.children.length>0?this._unVisibleRectRegionNode||this.renderExpandBtnPlaceholderRect():this._unVisibleRectRegionNode&&this.clearExpandBtnPlaceholderRect()}var Ju={renderExpandBtnPlaceholderRect:Zu,clearExpandBtnPlaceholderRect:Ku,updateExpandBtnPlaceholderRect:Xu};function Qu(){this.mindMap.cooperate&&(this._userListGroup=new _c,this.group.add(this._userListGroup))}function $u(e){const{avatarSize:t,fontSize:n}=this.mindMap.opt.cooperateStyle,r=new _c,i=e.isMore?e.name:String(e.name)[0],o=(new Sc).size(t,t);o.fill({color:e.color||Object(v["s"])(i)});const a=(new Cc).text(i).fill({color:"#fff"}).css({"font-size":n}).dx(-n/2).dy((t-n)/2);return r.add(o).add(a),r}function eh(e){const{avatarSize:t}=this.mindMap.opt.cooperateStyle;return(new tl).load(e.avatar).size(t,t)}function th(){if(!this._userListGroup)return;const{avatarSize:e}=this.mindMap.opt.cooperateStyle;this._userListGroup.clear();const t=this.userList.length,n=Math.floor(this.width/e),r=[];t>n?r.push(...this.userList.slice(0,n-1),{isMore:!0,name:"+"+(t-n+1)}):r.push(...this.userList),r.forEach((t,n)=>{let r=null;r=t.avatar?this.createImageAvatar(t):this.createTextAvatar(t),r.x(n*e).cy(-e/2),this._userListGroup.add(r)})}function nh(e){this.userList.find(t=>t.id==e.id)||(this.userList.push(e),this.updateUserListNode())}function rh(e){const t=this.userList.findIndex(t=>t.id==e.id);-1!==t&&(this.userList.splice(t,1),this.updateUserListNode())}var ih={createUserListNode:Qu,updateUserListNode:th,createTextAvatar:$u,createImageAvatar:eh,addUser:nh,removeUser:rh};class oh{constructor(e={}){this.nodeData=this.handleData(e.data||{}),this.uid=e.uid,this.mindMap=e.mindMap,this.renderer=e.renderer,this.draw=this.mindMap.draw,this.nodeDraw=this.mindMap.nodeDraw,this.lineDraw=this.mindMap.lineDraw,this.style=new bo(this),this.shapeInstance=new Zc(this),this.shapePadding={paddingX:0,paddingY:0},this.isRoot=void 0!==e.isRoot&&e.isRoot,this.isGeneralization=void 0!==e.isGeneralization&&e.isGeneralization,this.generalizationBelongNode=null,this.layerIndex=void 0===e.layerIndex?0:e.layerIndex,this.width=e.width||0,this.height=e.height||0,this._left=e.left||0,this._top=e.top||0,this.customLeft=e.data.data.customLeft||void 0,this.customTop=e.data.data.customTop||void 0,this.isDrag=!1,this.parent=e.parent||null,this.children=e.children||[],this.userList=[],this.group=null,this.shapeNode=null,this.hoverNode=null,this._customNodeContent=null,this._imgData=null,this._iconData=null,this._textData=null,this._hyperlinkData=null,this._tagData=null,this._noteData=null,this.noteEl=null,this.noteContentIsShow=!1,this._expandBtn=null,this._lastExpandBtnType=null,this._showExpandBtn=!1,this._openExpandNode=null,this._closeExpandNode=null,this._fillExpandNode=null,this._userListGroup=null,this._lines=[],this._generalizationList=[],this._unVisibleRectRegionNode=null,this._isMouseenter=!1,this._rectInfo={imgContentWidth:0,imgContentHeight:0,textContentWidth:0,textContentHeight:0},this._generalizationNodeWidth=0,this._generalizationNodeHeight=0,this.textContentItemMargin=this.mindMap.opt.textContentMargin,this.blockContentMargin=this.mindMap.opt.imgTextMargin,this.expandBtnSize=this.mindMap.opt.expandBtnSize,this.isMultipleChoice=!1,this.needLayout=!1,this.isHide=!1,Object.keys(uu).forEach(e=>{this[e]=uu[e].bind(this)}),Object.keys(Cu).forEach(e=>{this[e]=Cu[e].bind(this)}),Object.keys(Ju).forEach(e=>{this[e]=Ju[e].bind(this)}),Object.keys(Ru).forEach(e=>{this[e]=Ru[e].bind(this)}),Object.keys(Yu).forEach(e=>{this[e]=Yu[e].bind(this)}),this.mindMap.cooperate&&Object.keys(ih).forEach(e=>{this[e]=ih[e].bind(this)}),this.getSize()}get left(){return this.customLeft||this._left}set left(e){this._left=e}get top(){return this.customTop||this._top}set top(e){this._top=e}reset(){this.children=[],this.parent=null,this.isRoot=!1,this.layerIndex=0,this.left=0,this.top=0}handleData(e){return e.data.expand=!1!==e.data.expand,e.data.isActive=!0===e.data.isActive,e.children=e.children||[],e}createNodeData(){let{isUseCustomNodeContent:e,customCreateNodeContent:t}=this.mindMap.opt;e&&t&&(this._customNodeContent=t(this)),this._customNodeContent?this._customNodeContent.setAttribute("xmlns","http://www.w3.org/1999/xhtml"):(this._imgData=this.createImgNode(),this._iconData=this.createIconNode(),this._textData=this.createTextNode(),this._hyperlinkData=this.createHyperlinkNode(),this._tagData=this.createTagNode(),this._noteData=this.createNoteNode())}getSize(){this.updateGeneralization(),this.createNodeData();let{width:e,height:t}=this.getNodeRect(),n=this.width!==e||this.height!==t;return this.width=e,this.height=t,n}getNodeRect(){if(this.isUseCustomNodeContent()){let e=this.measureCustomNodeContentSize(this._customNodeContent);return{width:e.width,height:e.height}}let e=0,t=0,n=0,r=0;this._imgData&&(this._rectInfo.imgContentWidth=e=this._imgData.width,this._rectInfo.imgContentHeight=t=this._imgData.height),this._iconData.length>0&&(n+=this._iconData.reduce((e,t)=>(r=Math.max(r,t.height),e+(t.width+this.textContentItemMargin)),0)),this._textData&&(n+=this._textData.width,r=Math.max(r,this._textData.height)),this._hyperlinkData&&(n+=this._hyperlinkData.width,r=Math.max(r,this._hyperlinkData.height)),this._tagData.length>0&&(n+=this._tagData.reduce((e,t)=>(r=Math.max(r,t.height),e+(t.width+this.textContentItemMargin)),0)),this._noteData&&(n+=this._noteData.width,r=Math.max(r,this._noteData.height)),this._rectInfo.textContentWidth=n,this._rectInfo.textContentHeight=r;let i=t>0&&r>0?this.blockContentMargin:0,{paddingX:o,paddingY:a}=this.getPaddingVale(),s=Math.max(e,n),l=t+r,{paddingX:c,paddingY:u}=this.shapeInstance.getShapePadding(s,l,o,a);this.shapePadding.paddingX=c,this.shapePadding.paddingY=u;const h=this.getBorderWidth();return{width:s+2*o+2*c+h,height:l+2*a+i+2*u+h}}layout(){this.group.clear();const{hoverRectPadding:e}=this.mindMap.opt;let{width:t,height:n,textContentItemMargin:r}=this,{paddingY:i}=this.getPaddingVale();const o=this.getBorderWidth()/2;i+=this.shapePadding.paddingY+o,this.shapeNode=this.shapeInstance.createShape(),this.shapeNode.addClass("smm-node-shape"),this.shapeNode.translate(o,o),this.style.shape(this.shapeNode),this.group.add(this.shapeNode),this.renderExpandBtnPlaceholderRect(),this.createUserListNode&&this.createUserListNode(),this.isGeneralization&&this.generalizationBelongNode&&this.group.addClass("generalization_"+this.generalizationBelongNode.uid);const a=()=>{this.hoverNode=(new Xl).size(t+2*e,n+2*e).x(-e).y(-e),this.hoverNode.addClass("smm-hover-node"),this.style.hoverNode(this.hoverNode,t,n),this.group.add(this.hoverNode)};if(this.isUseCustomNodeContent()){let e=new Nc;return e.width(t),e.height(n),e.add(this._customNodeContent),this.group.add(e),void a()}let s=0;this._imgData&&(s=this._imgData.height,this.group.add(this._imgData.node),this._imgData.node.cx(t/2).y(i));let l=new _c,c=0,u=new _c;if(this._iconData&&this._iconData.length>0){let e=0;this._iconData.forEach(t=>{t.node.x(c+e).y((this._rectInfo.textContentHeight-t.height)/2),u.add(t.node),e+=t.width+r}),l.add(u),c+=e}this._textData&&(this._textData.node.attr("data-offsetx",c),this._textData.node.x(c).y(0),l.add(this._textData.node),c+=this._textData.width+r),this._hyperlinkData&&(this._hyperlinkData.node.x(c).y((this._rectInfo.textContentHeight-this._hyperlinkData.height)/2),l.add(this._hyperlinkData.node),c+=this._hyperlinkData.width+r);let h=new _c;if(this._tagData&&this._tagData.length>0){let e=0;this._tagData.forEach(t=>{t.node.x(c+e).y((this._rectInfo.textContentHeight-t.height)/2),h.add(t.node),e+=t.width+r}),l.add(h),c+=e}this._noteData&&(this._noteData.node.x(c).y((this._rectInfo.textContentHeight-this._noteData.height)/2),l.add(this._noteData.node),c+=this._noteData.width),l.translate(t/2-l.bbox().width/2,s+i+(s>0&&this._rectInfo.textContentHeight>0?this.blockContentMargin:0)),this.group.add(l),a()}bindGroupEvent(){this.group.on("click",e=>{if(this.mindMap.emit("node_click",this,e),this.isMultipleChoice)return e.stopPropagation(),void(this.isMultipleChoice=!1);this.active(e)}),this.group.on("mousedown",e=>{const{readonly:t,enableCtrlKeyNodeSelection:n,useLeftKeySelectionRightKeyDrag:r}=this.mindMap.opt;if(t||(this.isRoot?3!==e.which||r||e.stopPropagation():2!==e.which&&e.stopPropagation()),e.ctrlKey&&n){this.isMultipleChoice=!0;let e=this.getData("isActive");e||this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.mindMap.renderer[e?"removeNodeFromActiveList":"addNodeToActiveList"](this),this.renderer.emitNodeActiveEvent(e?null:this)}this.mindMap.emit("node_mousedown",this,e)}),this.group.on("mouseup",e=>{this.isRoot||2===e.which||this.mindMap.opt.readonly||e.stopPropagation(),this.mindMap.emit("node_mouseup",this,e)}),this.group.on("mouseenter",e=>{this.isDrag||(this._isMouseenter=!0,this.showExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseenter(),this.mindMap.emit("node_mouseenter",this,e))}),this.group.on("mouseleave",e=>{this._isMouseenter&&(this._isMouseenter=!1,this.hideExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseleave(),this.mindMap.emit("node_mouseleave",this,e))}),this.group.on("dblclick",e=>{this.mindMap.opt.readonly||e.ctrlKey||(e.stopPropagation(),this.mindMap.emit("node_dblclick",this,e))}),this.group.on("contextmenu",e=>{const{readonly:t,useLeftKeySelectionRightKeyDrag:n}=this.mindMap.opt;t||e.ctrlKey||(e.stopPropagation(),e.preventDefault(),this.mindMap.select&&!n&&this.mindMap.select.hasSelectRange()||(this.getData("isActive")&&1===this.renderer.activeNodeList.length||(this.renderer.clearActiveNodeList(),this.active(e)),this.mindMap.emit("node_contextmenu",e,this)))})}active(e){this.mindMap.opt.readonly||(e&&e.stopPropagation(),this.getData("isActive")||(this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.renderer.clearActiveNodeList(),this.renderer.addNodeToActiveList(this),this.renderer.emitNodeActiveEvent(this)))}update(){if(!this.group)return;this.updateNodeActiveClass();let{alwaysShowExpandBtn:e}=this.mindMap.opt;if(e)this._expandBtn&&this.nodeData.children.length<=0?this.removeExpandBtn():this.renderExpandBtn();else{let{isActive:e,expand:t}=this.getData();!t||e||this._isMouseenter?this.showExpandBtn():this.hideExpandBtn()}this.renderGeneralization(),this.updateUserListNode&&this.updateUserListNode();let t=this.group.transform();this.left===t.translateX&&this.top===t.translateY||this.group.translate(this.left-t.translateX,this.top-t.translateY)}getNodePosInClient(e,t){let n=this.mindMap.draw.transform(),{scaleX:r,scaleY:i,translateX:o,translateY:a}=n,s=e*r+o,l=t*i+a;return{left:s,top:l}}reRender(){let e=this.getSize();return this.layout(),this.update(),e}updateNodeActiveClass(){if(!this.group)return;const e=this.getData("isActive");this.group[e?"addClass":"removeClass"]("active")}updateNodeByActive(e){this.group&&(e?this.showExpandBtn():this.hideExpandBtn(),this.updateNodeActiveClass())}render(e=(()=>{})){if(this.renderLine(),this.group?(this.nodeDraw.add(this.group),this.needLayout&&(this.needLayout=!1,this.layout()),this.updateExpandBtnPlaceholderRect(),this.update()):(this.group=new _c,this.group.addClass("smm-node"),this.group.css({cursor:"default"}),this.bindGroupEvent(),this.nodeDraw.add(this.group),this.layout(),this.update()),this.children&&this.children.length&&!1!==this.getData("expand")){let t=0;this.children.forEach(n=>{n.render(()=>{t++,t>=this.children.length&&e()})})}else e();this.nodeData.inserting&&(delete this.nodeData.inserting,this.active(),setTimeout(()=>{this.mindMap.emit("node_dblclick",this,null,!0)},0))}remove(){this.group&&(this.group.remove(),this.removeGeneralization(),this.removeLine(),this.children&&this.children.length&&this.children.forEach(e=>{e.remove()}))}destroy(){this.group&&(this.group.remove(),this.removeGeneralization(),this.removeLine(),this.group=null,this.parent&&this.parent.removeLine())}hide(){if(this.group.hide(),this.hideGeneralization(),this.parent){let e=this.parent.children.indexOf(this);this.parent._lines[e]&&this.parent._lines[e].hide(),this._lines.forEach(e=>{e.hide()})}this.children&&this.children.length&&this.children.forEach(e=>{e.hide()})}show(){if(this.group){if(this.group.show(),this.showGeneralization(),this.parent){let e=this.parent.children.indexOf(this);this.parent._lines[e]&&this.parent._lines[e].show(),this._lines.forEach(e=>{e.show()})}this.children&&this.children.length&&this.children.forEach(e=>{e.show()})}}setOpacity(e){this.group.opacity(e),this._lines.forEach(t=>{t.opacity(e)}),this.children.forEach(t=>{t.setOpacity(e)}),this.setGeneralizationOpacity(e)}hideChildren(){this._lines.forEach(e=>{e.hide()}),this.children&&this.children.length&&this.children.forEach(e=>{e.hide()})}showChildren(){this._lines.forEach(e=>{e.show()}),this.children&&this.children.length&&this.children.forEach(e=>{e.show()})}startDrag(){this.isDrag=!0,this.group.addClass("smm-node-dragging")}endDrag(){this.isDrag=!1,this.group.removeClass("smm-node-dragging")}renderLine(e=!1){if(!1===this.getData("expand"))return;let t=this.nodeData.children.length;this.mindMap.opt.layout!==oo["a"].LAYOUT.FISHBONE||!this.isRoot&&1!==this.layerIndex||(t=0),t>this._lines.length?new Array(t-this._lines.length).fill(0).forEach(()=>{this._lines.push(this.lineDraw.path())}):t{e.remove()}),this._lines=this._lines.slice(0,t)),this.renderer.layout.renderLine(this,this._lines,(e,t)=>{this.styleLine(e,t)},this.style.getStyle("lineStyle",!0)),e&&this.children&&this.children.length>0&&this.children.forEach(t=>{t.renderLine(e)})}getShape(){return this.mindMap.themeConfig.nodeUseLineStyle?oo["a"].SHAPE.RECTANGLE:this.style.getStyle("shape",!1,!1)}hasCustomPosition(){return void 0!==this.customLeft&&void 0!==this.customTop}ancestorHasCustomPosition(){let e=this;while(e){if(e.hasCustomPosition())return!0;e=e.parent}return!1}ancestorHasGeneralization(){let e=this.parent;while(e){if(e.checkHasGeneralization())return!0;e=e.parent}return!1}addChildren(e){this.children.push(e)}styleLine(e,t){let n=t.getSelfInhertStyle("lineWidth")||t.getStyle("lineWidth",!0),r=t.getSelfInhertStyle("lineColor")||t.getStyle("lineColor",!0),i=t.getSelfInhertStyle("lineDasharray")||t.getStyle("lineDasharray",!0);this.style.line(e,{width:n,color:r,dasharray:i})}removeLine(){this._lines.forEach(e=>{e.remove()}),this._lines=[]}isAncestor(e){if(this.uid===e.uid)return!1;let t=e.parent;while(t){if(this.uid===t.uid)return!0;t=t.parent}return!1}isParent(e){if(this.uid===e.uid)return!1;const t=e.parent;return!(!t||this.uid!==t.uid)}isBrother(e){return!(!this.parent||this.uid===e.uid)&&this.parent.children.find(t=>t.uid===e.uid)}getIndexInBrothers(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.uid===this.uid):-1}getPaddingVale(){let{isActive:e}=this.getData();return{paddingX:this.getStyle("paddingX",!0,e),paddingY:this.getStyle("paddingY",!0,e)}}getStyle(e,t){let n=this.style.merge(e,t);return void 0===n?"":n}getSelfStyle(e){return this.style.getSelfStyle(e)}getParentSelfStyle(e){return this.parent?this.parent.getSelfStyle(e)||this.parent.getParentSelfStyle(e):null}getSelfInhertStyle(e){return this.getSelfStyle(e)||this.getParentSelfStyle(e)}getBorderWidth(){return this.style.merge("borderWidth",!1)||0}getData(e){return e?this.nodeData.data[e]:this.nodeData.data}getPureData(e=!0,t=!1){return Object(v["k"])({},this,e,t)}hasCustomStyle(){return this.style.hasCustomStyle()}getRect(){return this.group.rbox()}getRectInSvg(){let{scaleX:e,scaleY:t,translateX:n,translateY:r}=this.mindMap.draw.transform(),{left:i,top:o,width:a,height:s}=this,l=(i+a)*e+n,c=(o+s)*t+r;return i=i*e+n,o=o*t+r,{left:i,right:l,top:o,bottom:c,width:a*e,height:s*t}}}var ah=oh;class sh{constructor(e){this.max=e||1e3,this.size=0,this.pool=new Map}add(e,t){if(this.delete(e),this.pool.set(e,t),this.size++,this.size>this.max){let e=this.pool.keys(),t=e.next();this.delete(t.value)}}delete(e){this.pool.has(e)&&(this.pool.delete(e),this.size--)}has(e){return this.pool.has(e)}get(e){if(this.pool.has(e))return this.pool.get(e)}}class lh{constructor(e){this.renderer=e,this.mindMap=e.mindMap,this.draw=this.mindMap.draw,this.lineDraw=this.mindMap.lineDraw,this.root=null,this.lru=new sh(this.mindMap.opt.maxNodeCacheCount)}doLayout(){throw new Error("【computed】方法为必要方法,需要子类进行重写!")}renderLine(){throw new Error("【renderLine】方法为必要方法,需要子类进行重写!")}renderExpandBtn(){throw new Error("【renderExpandBtn】方法为必要方法,需要子类进行重写!")}renderGeneralization(){}cacheNode(e,t){this.renderer.nodeCache[e]=t,this.lru.add(e,t)}checkIsNeedResizeSources(){return[oo["a"].CHANGE_THEME,oo["a"].TRANSFORM_TO_NORMAL_NODE].includes(this.renderer.renderSource)}checkIsLayerTypeChange(e,t){return!(e>=2&&t>=2)&&(e>=2&&t<2||(e<2&&t>=2||void 0))}checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(e){this.renderer.renderSource===oo["a"].CHANGE_LAYOUT&&(e.needRerenderExpandBtnPlaceholderRect=!0)}createNode(e,t,n,r){let i=null;if(e&&e._node&&!this.renderer.reRender){i=e._node;let t=this.checkIsLayerTypeChange(i.layerIndex,r);i.reset(),i.layerIndex=r,this.cacheNode(e._node.uid,i),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(i),(this.checkIsNeedResizeSources()||t)&&(i.getSize(),i.needLayout=!0)}else if(this.lru.has(e.data.uid)&&!this.renderer.reRender){i=this.lru.get(e.data.uid);let t=JSON.stringify(i.getData()),n=this.checkIsLayerTypeChange(i.layerIndex,r);i.reset(),i.nodeData=i.handleData(e||{}),i.layerIndex=r,this.cacheNode(e.data.uid,i),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(i),e._node=i;let o=this.checkIsNeedResizeSources(),a=t!==JSON.stringify(e.data);(o||a||n)&&(i.getSize(),i.needLayout=!0)}else{let t=e.data.uid||Object(v["m"])();i=new ah({data:e,uid:t,renderer:this.renderer,mindMap:this.mindMap,draw:this.draw,layerIndex:r}),e.data.uid=t,this.cacheNode(t,i),e._node=i,e.data.isActive&&this.renderer.addNodeToActiveList(i)}return-1!==this.mindMap.renderer.findActiveNodeIndex(i)&&i.setData({isActive:!0}),n?(i.isRoot=!0,this.root=i):(i.parent=t._node,t._node.addChildren(i)),i}formatPosition(e,t,n){return"number"===typeof e?e:void 0!==oo["f"][e]?t*oo["f"][e]:/^\d\d*%$/.test(e)?Number.parseFloat(e)/100*t:(t-n)/2}setNodeCenter(e){let{initRootNodePosition:t}=this.mindMap.opt,{CENTER:n}=oo["a"].INIT_ROOT_NODE_POSITION;(!t||!Array.isArray(t)||t.length<2)&&(t=[n,n]),e.left=this.formatPosition(t[0],this.mindMap.width,e.width),e.top=this.formatPosition(t[1],this.mindMap.height,e.height)}updateChildren(e,t,n){e.forEach(e=>{e[t]+=n,e.children&&e.children.length&&!e.hasCustomPosition()&&this.updateChildren(e.children,t,n)})}updateChildrenPro(e,t){e.forEach(e=>{Object.keys(t).forEach(n=>{e[n]+=t[n]}),e.children&&e.children.length&&!e.hasCustomPosition()&&this.updateChildrenPro(e.children,t)})}getNodeAreaWidth(e,t=!1){let n=[],r=0,i=(e,o)=>{t&&e.checkHasGeneralization()&&(r+=e._generalizationNodeWidth),e.children.length?(o+=e.width/2,e.children.forEach(e=>{i(e,o)})):(o+=e.width,n.push(o))};return i(e,0),Math.max(...n)+r}quadraticCurvePath(e,t,n,r){let i=e+.2*(n-e),o=t+.8*(r-t);return`M ${e},${t} Q ${i},${o} ${n},${r}`}cubicBezierPath(e,t,n,r){let i=e+(n-e)/2,o=t,a=i,s=r;return`M ${e},${t} C ${i},${o} ${a},${s} ${n},${r}`}getMarginX(e){const{themeConfig:t,opt:n}=this.mindMap,{second:r,node:i}=t,o=2*n.hoverRectPadding;return 1===e?r.marginX+o:i.marginX+o}getMarginY(e){const{themeConfig:t,opt:n}=this.mindMap,{second:r,node:i}=t,o=2*n.hoverRectPadding;return 1===e?r.marginY+o:i.marginY+o}getNodeWidthWithGeneralization(e){return Math.max(e.width,e.checkHasGeneralization()?e._generalizationNodeWidth:0)}getNodeHeightWithGeneralization(e){return Math.max(e.height,e.checkHasGeneralization()?e._generalizationNodeHeight:0)}getNodeBoundaries(e,t){let{generalizationLineMargin:n,generalizationNodeMargin:r}=this.mindMap.themeConfig,i=e=>{let n=1/0,o=-1/0,a=1/0,s=-1/0;e.children&&e.children.length>0&&e.children.forEach(e=>{let{left:l,right:c,top:u,bottom:h}=i(e),d=e.checkHasGeneralization()&&e.getData("expand")?e._generalizationNodeWidth+r:0,f=e.checkHasGeneralization()&&e.getData("expand")?e._generalizationNodeHeight+r:0;l-("h"===t?d:0)o&&(o=c+("h"===t?d:0)),us&&(s=h+("v"===t?f:0))});let l={left:e.left,right:e.left+e.width,top:e.top,bottom:e.top+e.height};return{left:l.lefto?l.right:o,top:l.tops?l.bottom:s}},{left:o,right:a,top:s,bottom:l}=i(e);return{left:o,right:a,top:s,bottom:l,generalizationLineMargin:n,generalizationNodeMargin:r}}getChildrenBoundaries(e,t,n=0,r){let{generalizationLineMargin:i,generalizationNodeMargin:o}=this.mindMap.themeConfig;const a=e.children.slice(n,r+1);let s=1/0,l=-1/0,c=1/0,u=-1/0;return a.forEach(e=>{const n=this.getNodeBoundaries(e,t);s=n.leftl?n.right:l,c=n.topu?n.bottom:u}),{left:s,right:l,top:c,bottom:u,generalizationLineMargin:i,generalizationNodeMargin:o}}getNodeGeneralizationRenderBoundaries(e,t){let n=null;return n=e.range?this.getChildrenBoundaries(e.node,t,e.range[0],e.range[1]):this.getNodeBoundaries(e.node,t),n}getNodeActChildrenLength(e){return e.nodeData.children&&e.nodeData.children.length}}var ch=lh;class uh extends ch{constructor(e={}){super(e)}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r)=>{let i=this.createNode(e,t,n,r);if(n?this.setNodeCenter(i):i.left=t._node.left+t._node.width+this.getMarginX(r),!e.data.expand)return!0},(e,t,n,r)=>{let i=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaHeight=i?e._node.children.reduce((e,t)=>e+t.height,0)+(i+1)*this.getMarginY(r+1):0;let o=e._node.checkHasGeneralization()?e._node._generalizationNodeHeight+this.getMarginY(r+1):0;e._node.childrenAreaHeight2=Math.max(e._node.childrenAreaHeight,o)},!0,0)}computedTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginY(r+1),n=e.top+e.height/2-e.childrenAreaHeight/2,i=n+t;e.children.forEach(e=>{e.top=i,i+=e.height+t})}},null,!0)}adjustTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;let i=e.childrenAreaHeight2-2*this.getMarginY(r+1)-e.height;i>0&&this.updateBrothers(e,i/2)},null,!0)}updateBrothers(e,t){if(e.parent){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((n,i)=>{if(n.uid===e.uid||n.hasCustomPosition())return;let o=0;ir&&(o=t),n.top+=o,n.children&&n.children.length&&this.updateChildren(n.children,"top",o)}),this.updateBrothers(e.parent,t)}}renderLine(e,t,n,r){"curve"===r?this.renderLineCurve(e,t,n):"direct"===r?this.renderLineDirect(e,t,n):this.renderLineStraight(e,t,n)}renderLineStraight(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.getMarginX(e.layerIndex+1),c=.6*(l-s),u=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((l,h)=>{let d=0===e.layerIndex?r+o:r+o+s,f=i+a/2,p=l.left,m=l.top+l.height/2,g=u?l.width:0;f=u&&!e.isRoot?f+a/2:f,m=u?m+l.height/2:m;let v=`M ${d},${f} L ${d+c},${f} L ${d+c},${m} L ${p+g},${m}`;t[h].plot(v),n&&n(t[h],l)})}renderLineDirect(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((c,u)=>{let h=0===e.layerIndex?r+o/2:r+o+s,d=i+a/2,f=c.left,p=c.top+c.height/2;d=l&&!e.isRoot?d+a/2:d,p=l?p+c.height/2:p;let m=l?` L ${c.left+c.width},${p}`:"",g=`M ${h},${d} L ${f},${p}`+m;t[u].plot(g),n&&n(t[u],c)})}renderLineCurve(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((c,u)=>{let h=0===e.layerIndex?r+o/2:r+o+s,d=i+a/2,f=c.left,p=c.top+c.height/2,m="";d=l&&!e.isRoot?d+a/2:d,p=l?p+c.height/2:p;let g=l?` L ${c.left+c.width},${p}`:"";m=e.isRoot&&!this.mindMap.themeConfig.rootLineKeepSameInCurve?this.quadraticCurvePath(h,d,f,p)+g:this.cubicBezierPath(h,d,f,p)+g,t[u].plot(m),n&&n(t[u],c)})}renderExpandBtn(e,t){let{width:n,height:r}=e,{translateX:i,translateY:o}=t.transform(),a=this.mindMap.themeConfig.nodeUseLineStyle?r/2:0,s=n,l=r/2+a;s===i&&l===o||t.translate(s-i,l-o)}renderGeneralization(e){e.forEach(e=>{let{top:t,bottom:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"h"),a=r+i,s=t,l=r+i,c=n,u=a+20,h=s+(c-s)/2,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.left=r+o,e.generalizationNode.top=t+(n-t-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){e.size(t,r).x(n).y(0)}}var hh=uh;class dh extends ch{constructor(e={}){super(e)}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r,i)=>{let o=this.createNode(e,t,n,r);if(n?this.setNodeCenter(o):(t._node.dir?o.dir=t._node.dir:o.dir=i%2===0?oo["a"].LAYOUT_GROW_DIR.RIGHT:oo["a"].LAYOUT_GROW_DIR.LEFT,o.left=o.dir===oo["a"].LAYOUT_GROW_DIR.RIGHT?t._node.left+t._node.width+this.getMarginX(r):t._node.left-this.getMarginX(r)-o.width),!e.data.expand)return!0},(e,t,n,r)=>{if(!e.data.expand)return e._node.leftChildrenAreaHeight=0,void(e._node.rightChildrenAreaHeight=0);let i=0,o=0,a=0,s=0;e._node.children.forEach(e=>{e.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?(i++,a+=e.height):(o++,s+=e.height)}),e._node.leftChildrenAreaHeight=a+(i+1)*this.getMarginY(r+1),e._node.rightChildrenAreaHeight=s+(o+1)*this.getMarginY(r+1);let l=e._node.checkHasGeneralization()?e._node._generalizationNodeHeight+this.getMarginY(r+1):0;e._node.leftChildrenAreaHeight2=Math.max(e._node.leftChildrenAreaHeight,l),e._node.rightChildrenAreaHeight2=Math.max(e._node.rightChildrenAreaHeight,l)},!0,0)}computedTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginY(r+1),n=e.top+e.height/2+t,i=n-e.leftChildrenAreaHeight/2,o=n-e.rightChildrenAreaHeight/2;e.children.forEach(e=>{e.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?(e.top=i,i+=e.height+t):(e.top=o,o+=e.height+t)})}},null,!0)}adjustTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;let i=2*this.getMarginY(r+1)+e.height,o=e.leftChildrenAreaHeight2-i,a=e.rightChildrenAreaHeight2-i;(o>0||a>0)&&this.updateBrothers(e,o/2,a/2)},null,!0)}updateBrothers(e,t,n){if(e.parent){let r=e.parent.children.filter(t=>t.dir===e.dir),i=Object(v["w"])(e,r);r.forEach((e,r)=>{if(e.hasCustomPosition())return;let o=0,a=e.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?t:n;ri&&(o=a),e.top+=o,e.children&&e.children.length&&this.updateChildren(e.children,"top",o)}),this.updateBrothers(e.parent,t,n)}}renderLine(e,t,n,r){"curve"===r?this.renderLineCurve(e,t,n):"direct"===r?this.renderLineDirect(e,t,n):this.renderLineStraight(e,t,n)}renderLineStraight(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.getMarginX(e.layerIndex+1),c=.6*(l-s),u=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((l,h)=>{let d=0,f=0,p=u?l.width:0;l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?(f=-c,d=0===e.layerIndex?r:r-s,p=-p):(f=c,d=0===e.layerIndex?r+o:r+o+s);let m=i+a/2,g=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?l.left+l.width:l.left,v=l.top+l.height/2;m=u&&!e.isRoot?m+a/2:m,v=u?v+l.height/2:v;let b=`M ${d},${m} L ${d+f},${m} L ${d+f},${v} L ${g+p},${v}`;t[h].plot(b),n&&n(t[h],l)})}renderLineDirect(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((c,u)=>{let h=0===e.layerIndex?r+o/2:c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?r-s:r+o+s,d=i+a/2,f=c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?c.left+c.width:c.left,p=c.top+c.height/2;d=l&&!e.isRoot?d+a/2:d,p=l?p+c.height/2:p;let m="";l&&(m=c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?` L ${c.left},${p}`:` L ${c.left+c.width},${p}`);let g=`M ${h},${d} L ${f},${p}`+m;t[u].plot(g),n&&n(t[u],c)})}renderLineCurve(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((c,u)=>{let h=0===e.layerIndex?r+o/2:c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?r-s:r+o+s,d=i+a/2,f=c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?c.left+c.width:c.left,p=c.top+c.height/2,m="";d=l&&!e.isRoot?d+a/2:d,p=l?p+c.height/2:p;let g="";this.mindMap.themeConfig.nodeUseLineStyle&&(g=c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?` L ${c.left},${p}`:` L ${c.left+c.width},${p}`),m=e.isRoot&&!this.mindMap.themeConfig.rootLineKeepSameInCurve?this.quadraticCurvePath(h,d,f,p)+g:this.cubicBezierPath(h,d,f,p)+g,t[u].plot(m),n&&n(t[u],c)})}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i}=e,{translateX:o,translateY:a}=t.transform(),s=this.mindMap.themeConfig.nodeUseLineStyle?r/2:0,l=e.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?0-i:n,c=r/2+s;if(l===o&&c===a)return;let u=l-o,h=c-a;t.translate(u,h)}renderGeneralization(e){e.forEach(e=>{let t=e.node.dir===oo["a"].LAYOUT_GROW_DIR.LEFT,{top:n,bottom:r,left:i,right:o,generalizationLineMargin:a,generalizationNodeMargin:s}=this.getNodeGeneralizationRenderBoundaries(e,"h"),l=t?i-a:o+a,c=l,u=n,h=l,d=r,f=c+(t?-20:20),p=u+(d-u)/2,m=`M ${c},${u} Q ${f},${p} ${h},${d}`;e.generalizationLine.plot(m),e.generalizationNode.left=l+(t?-s:s)-(t?e.generalizationNode.width:0),e.generalizationNode.top=n+(r-n-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){i.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?e.size(t,r).x(-t).y(0):e.size(t,r).x(n).y(0)}}var fh=dh;class ph extends ch{constructor(e={}){super(e)}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r)=>{let i=this.createNode(e,t,n,r);if(n?this.setNodeCenter(i):t._node.isRoot&&(i.top=t._node.top+t._node.height+this.getMarginX(r)),!e.data.expand)return!0},(e,t,n,r)=>{if(n){let t=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaWidth=t?e._node.children.reduce((e,t)=>e+t.width,0)+(t+1)*this.getMarginX(r+1):0}},!0,0)}computedLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginX(r+1),i=this.getMarginY(r+1);if(n){let n=e.left+e.width/2-e.childrenAreaWidth/2,r=n+t;e.children.forEach(e=>{e.left=r,r+=e.width+t})}else{let t=e.top+this.getNodeHeightWithGeneralization(e)+i+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0);e.children.forEach(n=>{n.left=e.left+.5*e.width,n.top=t,t+=this.getNodeHeightWithGeneralization(n)+i+(this.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;if(t&&t.isRoot){let t=this.getNodeAreaWidth(e,!0),n=t-e.width;n>0&&this.updateBrothersLeft(e,n)}let i=e.children.length;if(t&&!t.isRoot&&i>0){let t=this.getMarginY(r+1),n=e.children.reduce((e,t)=>e+this.getNodeHeightWithGeneralization(t)+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0),0)+i*t;this.updateBrothersTop(e,n)}},(e,t,n)=>{if(n){let{right:t,left:n}=this.getNodeBoundaries(e,"h"),r=t-n,i=e.left-n-(r-e.width)/2;this.updateChildren(e.children,"left",i)}},!0)}updateBrothersLeft(e,t){if(e.parent){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{e.hasCustomPosition()||n<=r||(e.left+=t,e.children&&e.children.length&&this.updateChildren(e.children,"left",t))}),this.updateBrothersLeft(e.parent,t)}}updateBrothersTop(e,t){if(e.parent&&!e.parent.isRoot){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;n>r&&(i=t),e.top+=i,e.children&&e.children.length&&this.updateChildren(e.children,"top",i)}),this.updateBrothersTop(e.parent,t)}}renderLine(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=e.children.length,c=this.getMarginX(e.layerIndex+1);if(e.isRoot){let s=r+o/2,u=i+a,h=.7*c,d=1/0,f=-1/0;e.children.forEach((e,r)=>{let i=e.left+e.width/2,o=e.top;if&&(f=i);let a=this.mindMap.themeConfig.nodeUseLineStyle?` L ${e.left},${o} L ${e.left+e.width},${o}`:"",s=`M ${i},${u+h} L ${i},${u+h>o?o+e.height:o}`+a;t[r].plot(s),n&&n(t[r],e)}),d=Math.min(d,s),f=Math.max(f,s);let p=this.lineDraw.path();if(e.style.line(p),p.plot(`M ${s},${u} L ${s},${u+h}`),e._lines.push(p),n&&n(p,e),l>0){let t=this.lineDraw.path();e.style.line(t),t.plot(`M ${d},${u+h} L ${f},${u+h}`),e._lines.push(t),n&&n(t,e)}}else{let r=i+a,o=-1/0,c=e.left+.3*e.width;if(e.children.forEach((a,s)=>{let l=a.top+a.height/2;l>o&&(o=l);let u="",h=a.left,d=a.left+a.widthc&&(f=!0,l=a.top,o=l),l>i&&l0){let t=this.lineDraw.path();s=l>0?s:0,e.style.line(t),o{let{top:t,bottom:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"h"),a=r+i,s=t,l=r+i,c=n,u=a+20,h=s+(c-s)/2,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.left=r+o,e.generalizationNode.top=t+(n-t-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){e.size(n,t).x(0).y(r)}}var mh=ph;class gh extends ch{constructor(e={}){super(e)}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedLeftValue()},()=>{this.adjustLeftValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r)=>{let i=this.createNode(e,t,n,r);if(n?this.setNodeCenter(i):i.top=t._node.top+t._node.height+this.getMarginX(r),!e.data.expand)return!0},(e,t,n,r)=>{let i=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaWidth=i?e._node.children.reduce((e,t)=>e+t.width,0)+(i+1)*this.getMarginY(r+1):0;let o=e._node.checkHasGeneralization()?e._node._generalizationNodeWidth+this.getMarginY(r+1):0;e._node.childrenAreaWidth2=Math.max(e._node.childrenAreaWidth,o)},!0,0)}computedLeftValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginY(r+1),n=e.left+e.width/2-e.childrenAreaWidth/2,i=n+t;e.children.forEach(e=>{e.left=i,i+=e.width+t})}},null,!0)}adjustLeftValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;let i=e.childrenAreaWidth2-2*this.getMarginY(r+1)-e.width;i>0&&this.updateBrothers(e,i/2)},null,!0)}updateBrothers(e,t){if(e.parent){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;nr&&(i=t),e.left+=i,e.children&&e.children.length&&this.updateChildren(e.children,"left",i)}),this.updateBrothers(e.parent,t)}}renderLine(e,t,n,r){"direct"===r?this.renderLineDirect(e,t,n):this.renderLineStraight(e,t,n)}renderLineDirect(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a}=e,s=r+o/2,l=i+a;e.children.forEach((e,r)=>{let i=e.left+e.width/2,o=e.top,a=this.mindMap.themeConfig.nodeUseLineStyle?` L ${e.left},${o} L ${e.left+e.width},${o}`:"",c=`M ${s},${l} L ${i},${o}`+a;t[r].plot(c),n&&n(t[r],e)})}renderLineStraight(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s,isRoot:l}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let c=r+o/2,u=i+a,h=this.getMarginX(e.layerIndex+1),d=.7*h,f=1/0,p=-1/0,m=e.children.length;e.children.forEach((e,r)=>{let i=e.left+e.width/2,o=u+d>e.top?e.top+e.height:e.top;ip&&(p=i);let a=this.mindMap.themeConfig.nodeUseLineStyle?` L ${e.left},${o} L ${e.left+e.width},${o}`:"",s=`M ${i},${u+d} L ${i},${o}`+a;t[r].plot(s),n&&n(t[r],e)}),f=Math.min(c,f),p=Math.max(c,p);let g=this.lineDraw.path();if(e.style.line(g),s=m>0&&!l?s:0,g.plot(`M ${c},${u+s} L ${c},${u+d}`),e._lines.push(g),n&&n(g,e),m>0){let t=this.lineDraw.path();e.style.line(t),t.plot(`M ${f},${u+d} L ${p},${u+d}`),e._lines.push(t),n&&n(t,e)}}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i}=e,{translateX:o,translateY:a}=t.transform();t.translate(n/2-i/2-o,r+i/2-a)}renderGeneralization(e){e.forEach(e=>{let{bottom:t,left:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"v"),a=n,s=t+i,l=r,c=t+i,u=a+(l-a)/2,h=s+20,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.top=t+o,e.generalizationNode.left=n+(r-n-e.generalizationNode.width)/2})}renderExpandBtnRect(e,t,n,r,i){e.size(n,t).x(0).y(r)}}var vh=gh;class bh extends ch{constructor(e={},t){super(e),this.layout=t}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r,i)=>{let o=this.createNode(e,t,n,r);if(n?this.setNodeCenter(o):(this.layout===oo["a"].LAYOUT.TIMELINE2?t._node.dir?o.dir=t._node.dir:o.dir=i%2===0?oo["a"].LAYOUT_GROW_DIR.BOTTOM:oo["a"].LAYOUT_GROW_DIR.TOP:o.dir="",t._node.isRoot&&(o.top=t._node.top+(e._node.height>t._node.height?-(e._node.height-t._node.height)/2:(t._node.height-e._node.height)/2))),!e.data.expand)return!0},null,!0,0)}computedLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r,i)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginX(r+1),i=this.getMarginY(r+1);if(n){let n=e.left+e.width,r=n+t;e.children.forEach(e=>{e.left=r,r+=e.width+t})}else{let t=e.top+e.height+i+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0);e.children.forEach(n=>{n.left=e.left+.5*e.width,n.top=t,t+=n.height+i+(this.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;e.isRoot&&this.updateBrothersLeft(e);let i=e.children.length;if(t&&!t.isRoot&&i>0){let t=this.getMarginY(r+1),n=e.children.reduce((e,t)=>e+t.height+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0),0)+i*t;this.updateBrothersTop(e,n)}},(e,t,n,r)=>{t&&t.isRoot&&e.dir===oo["a"].LAYOUT_GROW_DIR.TOP&&e.children.forEach(t=>{let n=this.getNodeAreaHeight(t),r=t.top;t.top=e.top-(t.top-e.top)-n+e.height,this.updateChildren(t.children,"top",t.top-r)})},!0)}getNodeAreaHeight(e){let t=0,n=e=>{t+=e.height+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+this.getMarginY(e.layerIndex),e.children.length&&e.children.forEach(e=>{n(e)})};return n(e),t}updateBrothersLeft(e){let t=e.children,n=0;t.forEach(e=>{e.left+=n,e.children&&e.children.length&&this.updateChildren(e.children,"left",n);let{left:t,right:r}=this.getNodeBoundaries(e,"h"),i=r-t,o=i-e.width;o>0&&(n+=o)})}updateBrothersTop(e,t){if(e.parent&&!e.parent.isRoot){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;n>r&&(i=t),e.top+=i,e.children&&e.children.length&&this.updateChildren(e.children,"top",i)}),this.updateBrothersTop(e.parent,t)}}renderLine(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=e.children.length;if(e.isRoot){let r=e;e.children.forEach((i,o)=>{let a=r.left+r.width,s=i.left,l=e.top+e.height/2,c=`M ${a},${l} L ${s},${l}`;t[o].plot(c),n&&n(t[o],i),r=i})}else{let r=-1/0,o=1/0,c=e.left+.3*e.width;if(e.children.forEach((e,i)=>{let a=e.top+e.height/2;a>r&&(r=a),a0){let t=this.lineDraw.path();s=l>0?s:0,e.parent&&e.parent.isRoot&&e.dir===oo["a"].LAYOUT_GROW_DIR.TOP?t.plot(`M ${c},${i} L ${c},${o}`):t.plot(`M ${c},${i+a+s} L ${c},${r}`),e.style.line(t),e._lines.push(t),n&&n(t,e)}}}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i,isRoot:o}=e;if(!o){let{translateX:o,translateY:a}=t.transform();e.parent&&e.parent.isRoot&&e.dir===oo["a"].LAYOUT_GROW_DIR.TOP?t.translate(.3*n-i/2-o,-i/2-a):t.translate(.3*n-i/2-o,r+i/2-a)}}renderGeneralization(e){e.forEach(e=>{let{top:t,bottom:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"h"),a=r+i,s=t,l=r+i,c=n,u=a+20,h=s+(c-s)/2,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.left=r+o,e.generalizationNode.top=t+(n-t-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){if(this.layout===oo["a"].LAYOUT.TIMELINE)e.size(n,t).x(0).y(r);else{let o="";o=i.dir===oo["a"].LAYOUT_GROW_DIR.TOP&&1===i.layerIndex?oo["a"].LAYOUT_GROW_DIR.TOP:oo["a"].LAYOUT_GROW_DIR.BOTTOM,o===oo["a"].LAYOUT_GROW_DIR.TOP?e.size(n,t).x(0).y(-t):e.size(n,t).x(0).y(r)}}}var yh=bh;class wh extends ch{constructor(e={},t){super(e),this.layout=t}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustLeftTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r,i)=>{let o=this.createNode(e,t,n,r);if(n?this.setNodeCenter(o):(t._node.dir?o.dir=t._node.dir:o.dir=i%2===0?oo["a"].LAYOUT_GROW_DIR.RIGHT:oo["a"].LAYOUT_GROW_DIR.LEFT,t._node.isRoot?o.left=t._node.left+(e._node.width>t._node.width?-(e._node.width-t._node.width)/2:(t._node.width-e._node.width)/2):o.left=o.dir===oo["a"].LAYOUT_GROW_DIR.RIGHT?t._node.left+t._node.width+this.getMarginX(r):t._node.left-this.getMarginX(r)-o.width),!e.data.expand)return!0},(e,t,n,r)=>{if(n)return;let i=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaHeight=i?e._node.children.reduce((e,t)=>e+t.height,0)+(i+1)*this.getMarginY(r+1):0},!0,0)}computedTopValue(){Object(v["db"])(this.root,null,(e,t,n,r,i)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginY(r+1);if(n){let n=e.top+e.height,r=n+t;e.children.forEach(e=>{e.top=r,r+=e.height+t})}else{let t=this.getMarginY(r+1),n=e.top+e.height/2+t,i=n-e.childrenAreaHeight/2;e.children.forEach(e=>{e.top=i,i+=e.height+t})}}},null,!0)}adjustLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;if(n)return;let i=2*this.getMarginY(r+1)+e.height,o=e.childrenAreaHeight-i;o>0&&this.updateBrothers(e,o/2)},null,!0)}updateBrothers(e,t){if(e.parent){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((n,i)=>{if(n.hasCustomPosition())return;if(!e.parent.isRoot&&n.uid===e.uid)return;let o=0;e.parent.isRoot?o=ir?2*t:t:ir&&(o=t),n.top+=o,n.children&&n.children.length&&this.updateChildren(n.children,"top",o)}),this.updateBrothers(e.parent,t)}}updateBrothersTop(e,t){if(e.parent&&!e.parent.isRoot){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;n>r&&(i=t),e.top+=i,e.children&&e.children.length&&this.updateChildren(e.children,"top",i)}),this.updateBrothersTop(e.parent,t)}}renderLine(e,t,n,r){"curve"===r?this.renderLineCurve(e,t,n):"direct"===r?this.renderLineDirect(e,t,n):this.renderLineStraight(e,t,n)}renderLineStraight(e,t,n){if(e.children.length<=0)return[];let{expandBtnSize:r}=e;if(this.mindMap.opt.alwaysShowExpandBtn||(r=0),e.isRoot){let r=e;e.children.forEach((i,o)=>{let a=r.top+r.height,s=i.top,l=e.left+e.width/2,c=`M ${l},${a} L ${l},${s}`;t[o].plot(c),n&&n(t[o],i),r=i})}else if(e.dir===oo["a"].LAYOUT_GROW_DIR.RIGHT){let i=e.left+e.width,o=e.top+e.height/2,a=this.getMarginX(e.layerIndex+1),s=.6*(a-r);e.children.forEach((e,r)=>{let a=e.left,l=e.top+e.height/2,c=`\n M ${i},${o} \n L ${i+s},${o} \n L ${i+s},${l} \n L ${a},${l}`;t[r].plot(c),n&&n(t[r],e)})}else{let i=e.left,o=e.top+e.height/2,a=this.getMarginX(e.layerIndex+1),s=.6*(a-r);e.children.forEach((e,r)=>{let a=e.left+e.width,l=e.top+e.height/2,c=`\n M ${i},${o} \n L ${i-s},${o} \n L ${i-s},${l} \n L ${a},${l}`;t[r].plot(c),n&&n(t[r],e)})}}renderLineDirect(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0),e.children.forEach((l,c)=>{if(e.isRoot){let r=e;e.children.forEach((i,o)=>{let a=r.top+r.height,s=i.top,l=e.left+e.width/2,c=`M ${l},${a} L ${l},${s}`;t[o].plot(c),n&&n(t[o],i),r=i})}else{let e=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?r-s:r+o+s,u=i+a/2,h=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?l.left+l.width:l.left,d=l.top+l.height/2,f=`M ${e},${u} L ${h},${d}`;t[c].plot(f),n&&n(t[c],l)}})}renderLineCurve(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0),e.children.forEach((l,c)=>{if(e.isRoot){let r=e;e.children.forEach((i,o)=>{let a=r.top+r.height,s=i.top,l=e.left+e.width/2,c=`M ${l},${a} L ${l},${s}`;t[o].plot(c),n&&n(t[o],i),r=i})}else{let e=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?r-s:r+o+s,u=i+a/2,h=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?l.left+l.width:l.left,d=l.top+l.height/2,f=this.cubicBezierPath(e,u,h,d);t[c].plot(f),n&&n(t[c],l)}})}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i,isRoot:o}=e;if(!o){let{translateX:o,translateY:a}=t.transform();e.dir===oo["a"].LAYOUT_GROW_DIR.RIGHT?t.translate(n-o,r/2-a):t.translate(-i-o,r/2-a)}}renderGeneralization(e){e.forEach(e=>{let t=e.node.dir===oo["a"].LAYOUT_GROW_DIR.LEFT,{top:n,bottom:r,left:i,right:o,generalizationLineMargin:a,generalizationNodeMargin:s}=this.getNodeGeneralizationRenderBoundaries(e,"h"),l=t?i-a:o+a,c=l,u=n,h=l,d=r,f=c+(t?-20:20),p=u+(d-u)/2,m=`M ${c},${u} Q ${f},${p} ${h},${d}`;e.generalizationLine.plot(m),e.generalizationNode.left=l+(t?-s:s)-(t?e.generalizationNode.width:0),e.generalizationNode.top=n+(r-n-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){i.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?e.size(t,r).x(-t).y(0):e.size(t,r).x(n).y(0)}}var xh=wh,kh={top:{renderExpandBtn({node:e,btn:t,expandBtnSize:n,translateX:r,translateY:i,width:o,height:a}){e.parent&&e.parent.isRoot?t.translate(.3*o-n/2-r,-n/2-i):t.translate(.3*o-n/2-r,a+n/2-i)},renderLine({node:e,line:t,top:n,x:r,lineLength:i,height:o,expandBtnSize:a,maxy:s,ctx:l}){e.parent&&e.parent.isRoot?t.plot(`M ${r},${n} L ${r+i},${n-Math.tan(Object(v["o"])(l.mindMap.opt.fishboneDeg))*i}`):t.plot(`M ${r},${n+o+a} L ${r},${s}`)},computedLeftTopValue({layerIndex:e,node:t,ctx:n}){if(e>=1&&t.children){let r=n.getMarginY(e+1),i=t.left+t.width*n.childIndent,o=t.top+t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+r;t.children.forEach(e=>{e.left=i,e.top+=o,o+=e.height+(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+r})}},adjustLeftTopValueBefore({node:e,parent:t,ctx:n,layerIndex:r}){let i=e.children.length,o=n.getMarginY(r+1);if(t&&!t.isRoot&&i>0){let t=e.children.reduce((e,t)=>e+t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+o,0);n.updateBrothersTop(e,t)}},adjustLeftTopValueAfter({parent:e,node:t,ctx:n}){if(e&&e.isRoot){let e=n.getMarginY(t.layerIndex+1),r=t.expandBtnSize+e;t.children.forEach(e=>{let i=n.getNodeAreaHeight(e),o=e.top,a=e.left;e.top=t.top-(e.top-t.top)-i+t.height,e.left=t.left+t.width*n.indent+(i+r)/Math.tan(Object(v["o"])(n.mindMap.opt.fishboneDeg)),r+=i,n.updateChildrenPro(e.children,{top:e.top-o,left:e.left-a})})}}},bottom:{renderExpandBtn({node:e,btn:t,expandBtnSize:n,translateX:r,translateY:i,width:o,height:a}){e.parent&&e.parent.isRoot?t.translate(.3*o-n/2-r,a+n/2-i):t.translate(.3*o-n/2-r,-n/2-i)},renderLine({node:e,line:t,top:n,x:r,lineLength:i,height:o,miny:a,ctx:s}){e.parent&&e.parent.isRoot?t.plot(`M ${r},${n+o} L ${r+i},${n+o+Math.tan(Object(v["o"])(s.mindMap.opt.fishboneDeg))*i}`):t.plot(`M ${r},${n} L ${r},${a}`)},computedLeftTopValue({layerIndex:e,node:t,ctx:n}){let r=n.getMarginY(e+1);if(1===e&&t.children){let e=t.left+t.width*n.childIndent,i=t.top+t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+r;t.children.forEach(t=>{t.left=e,t.top=i+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0),i+=t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+r})}if(e>1&&t.children){let e=t.left+t.width*n.childIndent,i=t.top-(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)-r;t.children.forEach(t=>{t.left=e,t.top=i-t.height,i-=t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+r})}},adjustLeftTopValueBefore({node:e,ctx:t,layerIndex:n}){let r=t.getMarginY(n+1),i=e.children.length;if(n>2&&i>0){let n=e.children.reduce((e,n)=>e+n.height+(t.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)+r,0);t.updateBrothersTop(e,-n)}},adjustLeftTopValueAfter({parent:e,node:t,ctx:n}){if(e&&e.isRoot){let e=n.getMarginY(t.layerIndex+1),r=0,i=t.expandBtnSize;t.children.forEach(o=>{let a=n.getNodeActChildrenLength(o)>0,s=n.getNodeAreaHeight(o),l=a?s-o.height-(a?o.expandBtnSize:0):0;l-=a?e:0;let c=r+l,u=o.left;o.top+=c,o.left=t.left+t.width*n.indent+(s+i)/Math.tan(Object(v["o"])(n.mindMap.opt.fishboneDeg)),r+=l,i+=s,n.updateChildrenPro(o.children,{top:c,left:o.left-u})})}}}};class Ah extends ch{constructor(e={}){super(e),this.indent=.3,this.childIndent=.5}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r,i)=>{let o=this.createNode(e,t,n,r);if(n)this.setNodeCenter(o);else if(t._node.dir?o.dir=t._node.dir:o.dir=i%2===0?oo["a"].LAYOUT_GROW_DIR.TOP:oo["a"].LAYOUT_GROW_DIR.BOTTOM,t._node.isRoot){let e=this.getMarginY(r);this.checkIsTop(o)?o.top=t._node.top-o.height-e:o.top=t._node.top+t._node.height+e}if(!e.data.expand)return!0},null,!0,0)}computedLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.isRoot){let t=this.getMarginX(r+1),n=e.left+e.width+e.height+t,i=e.left+e.width+e.height+t;e.children.forEach(e=>{this.checkIsTop(e)?(e.left=n,n+=e.width+t):(e.left=i+20,i+=e.width+t)})}let i={layerIndex:r,node:e,ctx:this};this.checkIsTop(e)?kh.top.computedLeftTopValue(i):kh.bottom.computedLeftTopValue(i)},null,!0)}adjustLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;let i={node:e,parent:t,layerIndex:r,ctx:this};this.checkIsTop(e)?kh.top.adjustLeftTopValueBefore(i):kh.bottom.adjustLeftTopValueBefore(i)},(e,t)=>{let n={parent:t,node:e,ctx:this};if(this.checkIsTop(e)?kh.top.adjustLeftTopValueAfter(n):kh.bottom.adjustLeftTopValueAfter(n),e.isRoot){let t=0,n=0;e.children.forEach(e=>{if(this.checkIsTop(e)){e.left+=t,this.updateChildren(e.children,"left",t);let{left:n,right:r}=this.getNodeBoundaries(e,"h");t+=r-n}else{e.left+=n,this.updateChildren(e.children,"left",n);let{left:t,right:r}=this.getNodeBoundaries(e,"h");n+=r-t}})}},!0)}getNodeAreaHeight(e){let t=0,n=e=>{let r=this.getMarginY(e.layerIndex);t+=e.height+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+r,e.children.length&&e.children.forEach(e=>{n(e)})};return n(e),t}updateBrothersLeft(e){let t=e.children,n=0;t.forEach(e=>{e.left+=n,e.children&&e.children.length&&this.updateChildren(e.children,"left",n);let{left:t,right:r}=this.getNodeBoundaries(e,"h"),i=r-t,o=i-e.width;o>0&&(n+=o)})}updateBrothersTop(e,t){if(e.parent&&!e.parent.isRoot){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;n>r&&(i=t),e.top+=i,e.children&&e.children.length&&this.updateChildren(e.children,"top",i)}),this.checkIsTop(e)?this.updateBrothersTop(e.parent,t):this.updateBrothersTop(e.parent,3===e.layerIndex?0:t)}}checkIsTop(e){return e.dir===oo["a"].LAYOUT_GROW_DIR.TOP}renderLine(e,t,n){if(1!==e.layerIndex&&e.children.length<=0)return[];let{top:r,height:i,expandBtnSize:o}=e;this.mindMap.opt.alwaysShowExpandBtn||(o=0);let a=e.children.length;if(e.isRoot){let t=-1/0;e.children.forEach(r=>{r.left>t&&(t=r.left);let i=this.getMarginY(r.layerIndex),o=r.left,a=e.height/2+i,s=a/Math.tan(Object(v["o"])(this.mindMap.opt.fishboneDeg)),l=this.lineDraw.path();this.checkIsTop(r)?l.plot(`M ${o-s},${r.top+r.height+a} L ${r.left},${r.top+r.height}`):l.plot(`M ${o-s},${r.top-a} L ${o},${r.top}`),e.style.line(l),e._lines.push(l),n&&n(l,e)});let r=e.top+e.height/2,i=e.height/2+this.getMarginY(e.layerIndex+1),o=this.lineDraw.path();o.plot(`M ${e.left+e.width},${r} L ${t-i/Math.tan(Object(v["o"])(this.mindMap.opt.fishboneDeg))},${r}`),e.style.line(o),e._lines.push(o),n&&n(o,e)}else{let s=-1/0,l=1/0,c=-1/0,u=e.left+e.width*this.indent;if(e.children.forEach((r,i)=>{r.left>c&&(c=r.left);let o=r.top+r.height/2;if(o>s&&(s=o),o1){let e=`M ${u},${o} L ${r.left},${o}`;t[i].plot(e),n&&n(t[i],r)}}),a>=0){let t=this.lineDraw.path();o=a>0?o:0;let h=c-e.left-e.width*this.indent;h=Math.max(h,0);let d={node:e,line:t,top:r,x:u,lineLength:h,height:i,expandBtnSize:o,maxy:s,miny:l,ctx:this};this.checkIsTop(e)?kh.top.renderLine(d):kh.bottom.renderLine(d),e.style.line(t),e._lines.push(t),n&&n(t,e)}}}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i,isRoot:o}=e;if(!o){let{translateX:o,translateY:a}=t.transform(),s={node:e,btn:t,expandBtnSize:i,translateX:o,translateY:a,width:n,height:r};this.checkIsTop(e)?kh.top.renderExpandBtn(s):kh.bottom.renderExpandBtn(s)}}renderGeneralization(e){e.forEach(e=>{let{top:t,bottom:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"h"),a=r+i,s=t,l=r+i,c=n,u=a+20,h=s+(c-s)/2,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.left=r+o,e.generalizationNode.top=t+(n-t-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){let o="";o=i.dir===oo["a"].LAYOUT_GROW_DIR.TOP?1===i.layerIndex?oo["a"].LAYOUT_GROW_DIR.TOP:oo["a"].LAYOUT_GROW_DIR.BOTTOM:1===i.layerIndex?oo["a"].LAYOUT_GROW_DIR.BOTTOM:oo["a"].LAYOUT_GROW_DIR.TOP,o===oo["a"].LAYOUT_GROW_DIR.TOP?e.size(n,t).x(0).y(-t):e.size(n,t).x(0).y(r)}}var Ch=Ah;class Eh{constructor(e){this.renderer=e,this.mindMap=e.mindMap,this.currentNode=null,this.textEditNode=null,this.showTextEdit=!1,this.cacheEditingText="",this.bindEvent()}bindEvent(){this.show=this.show.bind(this),this.onScale=this.onScale.bind(this),this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("node_dblclick",(e,t,n)=>{this.show({node:e,e:t,isInserting:n})}),this.mindMap.on("draw_click",()=>{this.hideEditTextBox()}),this.mindMap.on("body_click",()=>{this.mindMap.opt.isEndNodeTextEditOnClickOuter&&this.hideEditTextBox()}),this.mindMap.on("svg_mousedown",()=>{this.hideEditTextBox()}),this.mindMap.on("expand_btn_click",()=>{this.hideEditTextBox()}),this.mindMap.on("before_node_active",()=>{this.hideEditTextBox()}),this.mindMap.on("mousewheel",()=>{this.mindMap.opt.mousewheelAction===oo["a"].MOUSE_WHEEL_ACTION.MOVE&&this.hideEditTextBox()}),this.mindMap.keyCommand.addShortcut("F2",()=>{this.renderer.activeNodeList.length<=0||this.show({node:this.renderer.activeNodeList[0]})}),this.mindMap.on("scale",this.onScale),this.mindMap.opt.enableAutoEnterTextEditWhenKeydown&&window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",()=>{this.unBindEvent()})}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}onKeydown(e){const t=this.mindMap.renderer.activeNodeList;if(t.length<=0||t.length>1)return;const n=t[0];n&&this.checkIsAutoEnterTextEditKey(e)&&this.show({node:n,e:e,isInserting:!1,isFromKeyDown:!0})}checkIsAutoEnterTextEditKey(e){const t=e.keyCode;return(229===t||t>=65&&t<=90||t>=48&&t<=57)&&!this.mindMap.keyCommand.hasCombinationKey(e)}registerTmpShortcut(){this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),this.mindMap.keyCommand.addShortcut("Tab",()=>{this.hideEditTextBox()})}async show({node:e,isInserting:t=!1,isFromKeyDown:n=!1,isFromScale:r=!1}){if(e.isUseCustomNodeContent())return;const{beforeTextEdit:i}=this.mindMap.opt;if("function"===typeof i){let n=!1;try{n=await i(e,t)}catch(c){n=!1,this.mindMap.opt.errorHandler(oo["b"].BEFORE_TEXT_EDIT_ERROR,c)}if(!n)return}this.currentNode=e;const{offsetLeft:o,offsetTop:a}=Object(v["i"])(this.mindMap,e);this.mindMap.view.translateXY(o,a);const s=e._textData.node.node.getBoundingClientRect(),l={node:e,rect:s,isInserting:t,isFromKeyDown:n,isFromScale:r};this.mindMap.richText?this.mindMap.richText.showEditText(l):this.showEditTextBox(l)}onScale(){this.currentNode&&(this.mindMap.richText?(this.mindMap.richText.cacheEditingText=this.mindMap.richText.getEditText(),this.mindMap.richText.showTextEdit=!1):(this.cacheEditingText=this.getEditText(),this.showTextEdit=!1),this.show({node:this.currentNode,isFromScale:!0}))}showEditTextBox({node:e,rect:t,isInserting:n,isFromKeyDown:r,isFromScale:i}){if(this.showTextEdit)return;const{nodeTextEditZIndex:o,textAutoWrapWidth:a,selectTextOnEnterEditText:s}=this.mindMap.opt;if(i||this.mindMap.emit("before_show_text_edit"),this.registerTmpShortcut(),!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("click",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("mousedown",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("keydown",e=>{this.checkIsAutoEnterTextEditKey(e)&&e.stopPropagation()});const e=this.mindMap.opt.customInnerElsAppendTo||document.body;e.appendChild(this.textEditNode)}let l=this.mindMap.view.scale,c=e.style.merge("lineHeight"),u=e.style.merge("fontSize"),h=(this.cacheEditingText||e.getData("text")).split(/\n/gim).map(e=>Object(v["E"])(e)),d="true"===e._textData.node.attr("data-ismultiLine");e.style.domText(this.textEditNode,l,d),this.textEditNode.style.zIndex=o,this.textEditNode.innerHTML=h.join("
"),this.textEditNode.style.minWidth=t.width+10+"px",this.textEditNode.style.minHeight=t.height+6+"px",this.textEditNode.style.left=t.left+"px",this.textEditNode.style.top=t.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=a*l+"px",d&&1!==c&&(this.textEditNode.style.transform=`translateY(${-(c*u-u)/2*l}px)`),this.showTextEdit=!0,n||s&&!r?Object(v["Y"])(this.textEditNode):Object(v["q"])(this.textEditNode),this.cacheEditingText=""}getEditText(){return Object(v["y"])(this.textEditNode.innerHTML)}hideEditTextBox(){if(this.currentNode=null,this.mindMap.richText)return this.mindMap.richText.hideEditText();this.showTextEdit&&(this.renderer.activeNodeList.forEach(e=>{let t=this.getEditText();this.mindMap.execCommand("SET_NODE_TEXT",e,t),e.isGeneralization&&e.generalizationBelongNode.updateGeneralization(),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,this.renderer.activeNodeList),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.textEditNode.style.fontFamily="inherit",this.textEditNode.style.fontSize="inherit",this.textEditNode.style.fontWeight="normal",this.textEditNode.style.transform="translateY(0)",this.showTextEdit=!1)}}var Sh={paddingX:15,paddingY:5,imgMaxWidth:100,imgMaxHeight:100,iconSize:20,lineWidth:1,lineColor:"#549688",lineDasharray:"none",lineStyle:"straight",rootLineKeepSameInCurve:!0,generalizationLineWidth:1,generalizationLineColor:"#549688",generalizationLineMargin:0,generalizationNodeMargin:20,associativeLineWidth:2,associativeLineColor:"rgb(51, 51, 51)",associativeLineActiveWidth:8,associativeLineActiveColor:"rgba(2, 167, 240, 1)",associativeLineTextColor:"rgb(51, 51, 51)",associativeLineTextFontSize:14,associativeLineTextLineHeight:1.2,associativeLineTextFontFamily:"微软雅黑, Microsoft YaHei",backgroundColor:"#fafafa",backgroundImage:"none",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",nodeUseLineStyle:!1,root:{shape:"rectangle",fillColor:"#549688",fontFamily:"微软雅黑, Microsoft YaHei",color:"#fff",fontSize:16,fontWeight:"bold",fontStyle:"normal",lineHeight:1.5,borderColor:"transparent",borderWidth:0,borderDasharray:"none",borderRadius:5,textDecoration:"none"},second:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none"},node:{shape:"rectangle",marginX:50,marginY:0,fillColor:"transparent",fontFamily:"微软雅黑, Microsoft YaHei",color:"#6a6d6c",fontSize:14,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"transparent",borderWidth:0,borderRadius:5,borderDasharray:"none",textDecoration:"none"},generalization:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none"}};const Th=["lineWidth","lineColor","lineDasharray","lineStyle","generalizationLineWidth","generalizationLineColor","associativeLineWidth","associativeLineColor","associativeLineActiveWidth","associativeLineActiveColor","associativeLineTextColor","associativeLineTextFontSize","associativeLineTextLineHeight","associativeLineTextFontFamily","backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize","rootLineKeepSameInCurve"],Nh=e=>{let t=Object.keys(e);for(let n=0;ne===t[n]))return!1;return!0},Mh=["lineColor","lineDasharray","lineWidth"],Lh={[oo["a"].LAYOUT.LOGICAL_STRUCTURE]:hh,[oo["a"].LAYOUT.MIND_MAP]:fh,[oo["a"].LAYOUT.CATALOG_ORGANIZATION]:mh,[oo["a"].LAYOUT.ORGANIZATION_STRUCTURE]:vh,[oo["a"].LAYOUT.TIMELINE]:yh,[oo["a"].LAYOUT.TIMELINE2]:yh,[oo["a"].LAYOUT.VERTICAL_TIMELINE]:xh,[oo["a"].LAYOUT.FISHBONE]:Ch};class Oh{constructor(e={}){this.opt=e,this.mindMap=e.mindMap,this.themeConfig=this.mindMap.themeConfig,this.renderTree=po()({},this.mindMap.opt.data||{}),this.reRender=!1,this.isRendering=!1,this.hasWaitRendering=!1,this.waitRenderingParams=[],this.nodeCache={},this.lastNodeCache={},this.renderSource="",this.activeNodeList=[],this.root=null,this.textEdit=new Eh(this),this.lastBeingCopyData=null,this.beingCopyData=null,this.beingPasteText="",this.beingPasteImgSize=0,this.currentBeingPasteType="",this.highlightBoxNode=null,this.lastActiveNode=null,this.lastActiveNodeList=[],this.setLayout(),this.bindEvent(),this.registerCommands(),this.registerShortcutKeys()}setLayout(){this.layout=new(Lh[this.mindMap.opt.layout]?Lh[this.mindMap.opt.layout]:Lh[oo["a"].LAYOUT.LOGICAL_STRUCTURE])(this,this.mindMap.opt.layout)}setData(e){this.mindMap.richText?this.renderTree=this.mindMap.richText.handleSetData(e):this.renderTree=e}bindEvent(){this.mindMap.on("draw_click",e=>{this.clearActiveNodeListOnDrawClick(e,"click")}),this.mindMap.on("contextmenu",e=>{this.clearActiveNodeListOnDrawClick(e,"contextmenu")}),this.mindMap.svg.on("dblclick",()=>{this.mindMap.opt.enableDblclickBackToRootNode&&this.setRootNodeCenter()})}registerCommands(){this.selectAll=this.selectAll.bind(this),this.mindMap.command.add("SELECT_ALL",this.selectAll),this.back=this.back.bind(this),this.mindMap.command.add("BACK",this.back),this.forward=this.forward.bind(this),this.mindMap.command.add("FORWARD",this.forward),this.insertNode=this.insertNode.bind(this),this.mindMap.command.add("INSERT_NODE",this.insertNode),this.insertMultiNode=this.insertMultiNode.bind(this),this.mindMap.command.add("INSERT_MULTI_NODE",this.insertMultiNode),this.insertChildNode=this.insertChildNode.bind(this),this.mindMap.command.add("INSERT_CHILD_NODE",this.insertChildNode),this.insertMultiChildNode=this.insertMultiChildNode.bind(this),this.mindMap.command.add("INSERT_MULTI_CHILD_NODE",this.insertMultiChildNode),this.insertParentNode=this.insertParentNode.bind(this),this.mindMap.command.add("INSERT_PARENT_NODE",this.insertParentNode),this.upNode=this.upNode.bind(this),this.mindMap.command.add("UP_NODE",this.upNode),this.downNode=this.downNode.bind(this),this.mindMap.command.add("DOWN_NODE",this.downNode),this.insertAfter=this.insertAfter.bind(this),this.mindMap.command.add("INSERT_AFTER",this.insertAfter),this.insertBefore=this.insertBefore.bind(this),this.mindMap.command.add("INSERT_BEFORE",this.insertBefore),this.moveNodeTo=this.moveNodeTo.bind(this),this.mindMap.command.add("MOVE_NODE_TO",this.moveNodeTo),this.removeNode=this.removeNode.bind(this),this.mindMap.command.add("REMOVE_NODE",this.removeNode),this.removeCurrentNode=this.removeCurrentNode.bind(this),this.mindMap.command.add("REMOVE_CURRENT_NODE",this.removeCurrentNode),this.pasteNode=this.pasteNode.bind(this),this.mindMap.command.add("PASTE_NODE",this.pasteNode),this.cutNode=this.cutNode.bind(this),this.mindMap.command.add("CUT_NODE",this.cutNode),this.setNodeStyle=this.setNodeStyle.bind(this),this.mindMap.command.add("SET_NODE_STYLE",this.setNodeStyle),this.setNodeStyles=this.setNodeStyles.bind(this),this.mindMap.command.add("SET_NODE_STYLES",this.setNodeStyles),this.setNodeActive=this.setNodeActive.bind(this),this.mindMap.command.add("SET_NODE_ACTIVE",this.setNodeActive),this.clearActiveNode=this.clearActiveNode.bind(this),this.mindMap.command.add("CLEAR_ACTIVE_NODE",this.clearActiveNode),this.setNodeExpand=this.setNodeExpand.bind(this),this.mindMap.command.add("SET_NODE_EXPAND",this.setNodeExpand),this.expandAllNode=this.expandAllNode.bind(this),this.mindMap.command.add("EXPAND_ALL",this.expandAllNode),this.unexpandAllNode=this.unexpandAllNode.bind(this),this.mindMap.command.add("UNEXPAND_ALL",this.unexpandAllNode),this.expandToLevel=this.expandToLevel.bind(this),this.mindMap.command.add("UNEXPAND_TO_LEVEL",this.expandToLevel),this.setNodeData=this.setNodeData.bind(this),this.mindMap.command.add("SET_NODE_DATA",this.setNodeData),this.setNodeText=this.setNodeText.bind(this),this.mindMap.command.add("SET_NODE_TEXT",this.setNodeText),this.setNodeImage=this.setNodeImage.bind(this),this.mindMap.command.add("SET_NODE_IMAGE",this.setNodeImage),this.setNodeIcon=this.setNodeIcon.bind(this),this.mindMap.command.add("SET_NODE_ICON",this.setNodeIcon),this.setNodeHyperlink=this.setNodeHyperlink.bind(this),this.mindMap.command.add("SET_NODE_HYPERLINK",this.setNodeHyperlink),this.setNodeNote=this.setNodeNote.bind(this),this.mindMap.command.add("SET_NODE_NOTE",this.setNodeNote),this.setNodeTag=this.setNodeTag.bind(this),this.mindMap.command.add("SET_NODE_TAG",this.setNodeTag),this.insertFormula=this.insertFormula.bind(this),this.mindMap.command.add("INSERT_FORMULA",this.insertFormula),this.addGeneralization=this.addGeneralization.bind(this),this.mindMap.command.add("ADD_GENERALIZATION",this.addGeneralization),this.removeGeneralization=this.removeGeneralization.bind(this),this.mindMap.command.add("REMOVE_GENERALIZATION",this.removeGeneralization),this.setNodeCustomPosition=this.setNodeCustomPosition.bind(this),this.mindMap.command.add("SET_NODE_CUSTOM_POSITION",this.setNodeCustomPosition),this.resetLayout=this.resetLayout.bind(this),this.mindMap.command.add("RESET_LAYOUT",this.resetLayout),this.setNodeShape=this.setNodeShape.bind(this),this.mindMap.command.add("SET_NODE_SHAPE",this.setNodeShape),this.goTargetNode=this.goTargetNode.bind(this),this.mindMap.command.add("GO_TARGET_NODE",this.goTargetNode)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Tab",()=>{this.mindMap.execCommand("INSERT_CHILD_NODE")}),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.textEdit.showTextEdit||this.mindMap.execCommand("INSERT_NODE")}),this.mindMap.keyCommand.addShortcut("Shift+Tab",()=>{this.mindMap.execCommand("INSERT_PARENT_NODE")}),this.mindMap.keyCommand.addShortcut("Control+g",()=>{this.mindMap.execCommand("ADD_GENERALIZATION")}),this.toggleActiveExpand=this.toggleActiveExpand.bind(this),this.mindMap.keyCommand.addShortcut("/",this.toggleActiveExpand),this.mindMap.keyCommand.addShortcut("Del|Backspace",()=>{this.mindMap.execCommand("REMOVE_NODE")}),this.mindMap.keyCommand.addShortcut("Shift+Backspace",()=>{this.mindMap.execCommand("REMOVE_CURRENT_NODE")}),this.mindMap.on("before_show_text_edit",()=>{this.startTextEdit()}),this.mindMap.on("hide_text_edit",()=>{this.endTextEdit()}),this.mindMap.keyCommand.addShortcut("Control+a",()=>{this.mindMap.execCommand("SELECT_ALL")}),this.mindMap.keyCommand.addShortcut("Control+l",()=>{this.mindMap.execCommand("RESET_LAYOUT",this.resetLayout)}),this.mindMap.keyCommand.addShortcut("Control+Up",()=>{this.mindMap.execCommand("UP_NODE")}),this.mindMap.keyCommand.addShortcut("Control+Down",()=>{this.mindMap.execCommand("DOWN_NODE")}),this.mindMap.keyCommand.addShortcut("Control+c",()=>{this.copy()}),this.mindMap.keyCommand.addShortcut("Control+v",()=>{this.onPaste()}),this.mindMap.keyCommand.addShortcut("Control+x",()=>{this.cut()}),this.mindMap.keyCommand.addShortcut("Control+Enter",()=>{this.setRootNodeCenter()})}emitNodeActiveEvent(e=null,t=[...this.activeNodeList]){let n=!1;n=this.lastActiveNode!==e,n||(n=!Object(v["h"])(this.lastActiveNodeList,t)),n&&(this.lastActiveNode=e,this.lastActiveNodeList=[...t],this.mindMap.batchExecution.push("emitNodeActiveEvent",()=>{this.mindMap.emit("node_active",e,t)}))}clearActiveNodeListOnDrawClick(e,t){if(this.activeNodeList.length<=0)return;let n=!0;const{useLeftKeySelectionRightKeyDrag:r}=this.mindMap.opt;if("contextmenu"===t?!r:r){const t=this.mindMap.event.mousedownPos;n=Math.abs(e.clientX-t.x)<=5&&Math.abs(e.clientY-t.y)<=5}n&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")}startTextEdit(){this.mindMap.keyCommand.save()}endTextEdit(){this.mindMap.keyCommand.restore()}render(e=(()=>{}),t){if(this.isRendering)return this.hasWaitRendering=!0,void(this.waitRenderingParams=[e,t]);this.isRendering=!0,this.renderSource=t,this.lastNodeCache=this.nodeCache,this.nodeCache={},this.reRender&&this.clearActiveNodeList(),this.layout.doLayout(n=>{Object.keys(this.lastNodeCache).forEach(e=>{this.nodeCache[e]||(this.removeNodeFromActiveList(this.lastNodeCache[e]),this.emitNodeActiveEvent(),this.lastNodeCache[e].destroy())}),this.root=n,this.root.render(()=>{if(this.isRendering=!1,this.mindMap.emit("node_tree_render_end"),e&&e(),this.hasWaitRendering){const e=this.waitRenderingParams;this.hasWaitRendering=!1,this.waitRenderingParams=[],this.render(...e)}else this.mindMap.richText&&[oo["a"].CHANGE_THEME,oo["a"].SET_DATA].includes(t)&&this.mindMap.command.addHistory()})}),this.emitNodeActiveEvent()}clearActiveNode(){this.activeNodeList.length<=0||(this.clearActiveNodeList(),this.emitNodeActiveEvent(null,[]))}clearActiveNodeList(){this.activeNodeList.forEach(e=>{this.mindMap.execCommand("SET_NODE_ACTIVE",e,!1)}),this.activeNodeList=[]}addNodeToActiveList(e){const t=this.findActiveNodeIndex(e);-1===t&&(this.mindMap.execCommand("SET_NODE_ACTIVE",e,!0),this.activeNodeList.push(e))}removeNodeFromActiveList(e){let t=this.findActiveNodeIndex(e);-1!==t&&(this.mindMap.execCommand("SET_NODE_ACTIVE",e,!1),this.activeNodeList.splice(t,1))}findActiveNodeIndex(e){return Object(v["w"])(e,this.activeNodeList)}selectAll(){this.mindMap.opt.readonly||(Object(v["db"])(this.root,null,e=>{e.getData("isActive")||this.addNodeToActiveList(e)},null,!0,0,0),this.emitNodeActiveEvent())}back(e){this.backForward("back",e)}forward(e){this.backForward("forward",e)}backForward(e,t){this.mindMap.execCommand("CLEAR_ACTIVE_NODE");const n=this.mindMap.command[e](t);n&&(this.renderTree=n,this.mindMap.render())}getNewNodeBehavior(e=!1,t=!1){const{createNewNodeBehavior:n}=this.mindMap.opt;let r=!1,i=!1;switch(n){case oo["a"].CREATE_NEW_NODE_BEHAVIOR.DEFAULT:r=t||!e,i=!t&&e;break;case oo["a"].CREATE_NEW_NODE_BEHAVIOR.NOT_ACTIVE:r=!1,i=!1;break;case oo["a"].CREATE_NEW_NODE_BEHAVIOR.ACTIVE_ONLY:r=!0,i=!1;break;default:break}return{focusNewNode:r,inserting:i}}insertNode(e=!0,t=[],n=null,r=[]){if(t=Object(v["r"])(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:i,defaultInsertBelowSecondLevelNodeText:o}=this.mindMap.opt,a=t.length>0?t:this.activeNodeList,s=a.length>1,l=!!this.mindMap.richText,{focusNewNode:c,inserting:u}=this.getNewNodeBehavior(e,s),h={expand:!0,richText:l,resetRichText:l,isActive:c};r=Object(v["a"])(r,{...h}),a.forEach(e=>{if(e.isGeneralization||e.isRoot)return;const t=e.parent,a=1===e.layerIndex,s=a?i:o,l=Object(v["v"])(e),c={inserting:u,data:{text:s,...h,uid:Object(v["m"])(),...n||{}},children:[...Object(v["n"])(r,!0)]};t.nodeData.children.splice(l+1,0,c)}),c&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiNode(e,t){if(!t||t.length<=0)return;if(e=Object(v["r"])(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const n=e.length>0?e:this.activeNodeList,r=!!this.mindMap.richText,{focusNewNode:i}=this.getNewNodeBehavior(!1,!0),o={expand:!0,richText:r,resetRichText:r,isActive:i};t=Object(v["a"])(t,o),n.forEach(e=>{if(e.isGeneralization||e.isRoot)return;const n=e.parent,r=Object(v["v"])(e),i=Object(v["n"])(Object(v["ab"])(t),!0);n.nodeData.children.splice(r+1,0,...i)}),i&&this.clearActiveNodeList(),this.mindMap.render()}insertChildNode(e=!0,t=[],n=null,r=[]){if(t=Object(v["r"])(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:i,defaultInsertBelowSecondLevelNodeText:o}=this.mindMap.opt,a=t.length>0?t:this.activeNodeList,s=a.length>1,l=!!this.mindMap.richText,{focusNewNode:c,inserting:u}=this.getNewNodeBehavior(e,s),h={expand:!0,richText:l,resetRichText:l,isActive:c};r=Object(v["a"])(r,{...h}),a.forEach(e=>{if(e.isGeneralization)return;e.nodeData.children||(e.nodeData.children=[]);const t=e.isRoot?i:o,a={inserting:u,data:{text:t,uid:Object(v["m"])(),...h,...n||{}},children:[...Object(v["n"])(r,!0)]};e.nodeData.children.push(a),e.setData({expand:!0})}),c&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiChildNode(e,t){if(!t||t.length<=0)return;if(e=Object(v["r"])(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const n=e.length>0?e:this.activeNodeList,r=!!this.mindMap.richText,{focusNewNode:i}=this.getNewNodeBehavior(!1,!0),o={expand:!0,richText:r,resetRichText:r,isActive:i};t=Object(v["a"])(t,o),n.forEach(e=>{e.isGeneralization||(e.nodeData.children||(e.nodeData.children=[]),t=Object(v["n"])(t,!0),e.nodeData.children.push(...t),e.setData({expand:!0}))}),i&&this.clearActiveNodeList(),this.mindMap.render()}insertParentNode(e=!0,t,n){if(t=Object(v["r"])(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:r,defaultInsertBelowSecondLevelNodeText:i}=this.mindMap.opt,o=t.length>0?t:this.activeNodeList,a=o.length>1,s=!!this.mindMap.richText,{focusNewNode:l,inserting:c}=this.getNewNodeBehavior(e,a),u={expand:!0,richText:s,resetRichText:s,isActive:l};o.forEach(e=>{if(e.isGeneralization||e.isRoot)return;const t=1===e.layerIndex?r:i,o={inserting:c,data:{text:t,uid:Object(v["m"])(),...u,...n||{}},children:[e.nodeData]},a=e.parent,s=Object(v["v"])(e);a.nodeData.children.splice(s,1,o)}),l&&this.clearActiveNodeList(),this.mindMap.render()}upNode(){if(this.activeNodeList.length<=0)return;let e=this.activeNodeList[0];if(e.isRoot)return;let t=e.parent,n=t.children,r=Object(v["w"])(e,n);if(-1===r||0===r)return;let i=r-1;n.splice(r,1),n.splice(i,0,e),t.nodeData.children.splice(r,1),t.nodeData.children.splice(i,0,e.nodeData),this.mindMap.render()}downNode(){if(this.activeNodeList.length<=0)return;let e=this.activeNodeList[0];if(e.isRoot)return;let t=e.parent,n=t.children,r=Object(v["w"])(e,n);if(-1===r||r===n.length-1)return;let i=r+1;n.splice(r,1),n.splice(i,0,e),t.nodeData.children.splice(r,1),t.nodeData.children.splice(i,0,e.nodeData),this.mindMap.render()}copy(){this.beingCopyData=this.copyNode(),Object(v["Z"])({simpleMindMap:!0,data:this.beingCopyData})}cut(){this.mindMap.execCommand("CUT_NODE",e=>{this.beingCopyData=e,Object(v["Z"])({simpleMindMap:!0,data:e})})}paste(){this.beingCopyData&&this.mindMap.execCommand("PASTE_NODE",this.beingCopyData)}async onPaste(){const{errorHandler:e,handleIsSplitByWrapOnPasteCreateNewNode:t}=this.mindMap.opt;let n=null,r=null;try{const e=await Object(v["t"])();n=e.text,r=e.img}catch(o){e(oo["b"].READ_CLIPBOARD_ERROR,o)}const i=r?r.size:0;if(this.beingPasteText===n&&this.beingPasteImgSize===i||(this.currentBeingPasteType=oo["a"].PASTE_TYPE.CLIP_BOARD,this.beingPasteText=n,this.beingPasteImgSize=i),this.lastBeingCopyData!==this.beingCopyData&&(this.lastBeingCopyData=this.beingCopyData,this.currentBeingPasteType=oo["a"].PASTE_TYPE.CANVAS),this.currentBeingPasteType===oo["a"].PASTE_TYPE.CLIP_BOARD){if(n){let r=null,i=!0;if(this.mindMap.opt.customHandleClipboardText)try{const e=await this.mindMap.opt.customHandleClipboardText(n);Object(v["I"])(e)||(i=!1,"object"===typeof e&&e.simpleMindMap?r=e.data:n=String(e))}catch(o){e(oo["b"].CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR,o)}if(i)try{const e=JSON.parse(n);e&&e.simpleMindMap&&(r=e.data)}catch(o){e(oo["b"].PARSE_PASTE_DATA_ERROR,o)}if(r)this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],Array.isArray(r)?r:[r]);else{n=Object(v["E"])(n);const e=n.split(new RegExp("\r?\n|(?!!e);e.length>1&&t?t().then(()=>{this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],e.map(e=>({data:{text:e},children:[]})))}).catch(()=>{this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:n})}):this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:n})}}if(r)try{let e=await Object(v["K"])(r);this.activeNodeList.length>0&&this.activeNodeList.forEach(t=>{this.mindMap.execCommand("SET_NODE_IMAGE",t,{url:e.url,title:"",width:e.size.width,height:e.size.height})})}catch(o){e(oo["b"].LOAD_CLIPBOARD_IMAGE_ERROR,o)}}else this.paste()}insertBefore(e,t){this.insertTo(e,t,"before")}insertAfter(e,t){this.insertTo(e,t,"after")}insertTo(e,t,n="before"){let r=Object(v["r"])(e);r=r.filter(e=>!e.isRoot),"after"===n&&r.reverse(),r.forEach(e=>{this.checkNodeLayerChange(e,t);let r=e.parent,i=r.children,o=Object(v["w"])(e,i);if(-1===o)return;i.splice(o,1),r.nodeData.children.splice(o,1);let a=t.parent,s=a.children,l=Object(v["w"])(t,s);-1!==l&&("after"===n&&l++,s.splice(l,0,e),a.nodeData.children.splice(l,0,e.nodeData))}),this.mindMap.render()}checkNodeLayerChange(e,t){if(this.mindMap.richText){let n=1===e.layerIndex&&1!==t.layerIndex||1!==e.layerIndex&&1===t.layerIndex;n&&e.setData({resetRichText:!0})}}removeNode(e=[]){if(e=Object(v["r"])(e),this.activeNodeList.length<=0&&e.length<=0)return;let t=null,n=e.length>0,r=n?e:this.activeNodeList,i=r.find(e=>e.isRoot);if(i)this.clearActiveNodeList(),i.children=[],i.nodeData.children=[];else{t=this.getNextActiveNode();for(let e=0;e0,r=n?e:this.activeNodeList;r=r.filter(e=>!e.isRoot);for(let i=0;i0?n[r-1]:t.parent}return e}copyNode(){if(this.activeNodeList.length<=0)return;const e=Object(v["A"])(this.activeNodeList);return e.map(e=>Object(v["k"])({},e,!0))}cutNode(e){if(this.activeNodeList.length<=0)return;const t=Object(v["A"])(this.activeNodeList).filter(e=>!e.isRoot),n=t.map(e=>Object(v["k"])({},e,!0));t.forEach(e=>{Object(v["S"])(e)}),this.clearActiveNodeList(),this.mindMap.render(),e&&"function"===typeof e&&e(n)}moveNodeTo(e,t){let n=Object(v["r"])(e);n=n.filter(e=>!e.isRoot),n.forEach(e=>{this.checkNodeLayerChange(e,t),this.removeNodeFromActiveList(e),Object(v["S"])(e),t.nodeData.children.push(e.nodeData)}),this.emitNodeActiveEvent(),this.mindMap.render()}pasteNode(e){e=Object(v["r"])(e),this.activeNodeList.length<=0||e.length<=0||(this.activeNodeList.forEach(t=>{t.nodeData.children.push(...e.map(e=>{const t=Object(v["ab"])(e);return Object(v["n"])([t],!0),t}))}),this.mindMap.render())}setNodeStyle(e,t,n){let r={[t]:n};this.mindMap.richText&&this.mindMap.richText.setNotActiveNodeStyle(e,{[t]:n}),this.setNodeDataRender(e,r),Mh.includes(t)&&(e.parent||e).renderLine(!0)}setNodeStyles(e,t){let n={...t};this.mindMap.richText&&this.mindMap.richText.setNotActiveNodeStyle(e,t),this.setNodeDataRender(e,n);let r=Object.keys(t),i=!1;r.forEach(e=>{Mh.includes(e)&&(i=!0)}),i&&(e.parent||e).renderLine(!0)}setNodeActive(e,t){this.mindMap.execCommand("SET_NODE_DATA",e,{isActive:t}),e.updateNodeByActive(t)}setNodeExpand(e,t){this.mindMap.execCommand("SET_NODE_DATA",e,{expand:t}),this.mindMap.render()}expandAllNode(){Object(v["db"])(this.renderTree,null,e=>{e.data.expand||(e.data.expand=!0)},null,!0,0,0),this.mindMap.render()}unexpandAllNode(){Object(v["db"])(this.renderTree,null,(e,t,n)=>{!n&&e.children&&e.children.length>0&&(e.data.expand=!1)},null,!0,0,0),this.mindMap.render(()=>{this.mindMap.view.reset()})}expandToLevel(e){Object(v["db"])(this.renderTree,null,(t,n,r,i)=>{const o=i0&&(t.data.expand=!1)},null,!0,0,0),this.mindMap.render()}toggleActiveExpand(){this.activeNodeList.forEach(e=>{e.nodeData.children.length<=0||this.toggleNodeExpand(e)})}toggleNodeExpand(e){this.mindMap.execCommand("SET_NODE_EXPAND",e,!e.getData("expand"))}setNodeText(e,t,n,r){this.setNodeDataRender(e,{text:t,richText:n,resetRichText:r})}setNodeImage(e,t){const{url:n,title:r,width:i,height:o,custom:a=!1}=t||{url:"",title:"",width:0,height:0,custom:!1};this.setNodeDataRender(e,{image:n,imageTitle:r||"",imageSize:{width:i,height:o,custom:a}})}setNodeIcon(e,t){this.setNodeDataRender(e,{icon:t})}setNodeHyperlink(e,t,n=""){this.setNodeDataRender(e,{hyperlink:t,hyperlinkTitle:n})}setNodeNote(e,t){this.setNodeDataRender(e,{note:t})}setNodeTag(e,t){this.setNodeDataRender(e,{tag:t})}insertFormula(e,t=[]){if(!this.mindMap.richText||!this.mindMap.formula)return;t=Object(v["r"])(t);const n=t.length>0?t:this.activeNodeList;n.forEach(t=>{this.mindMap.formula.insertFormulaToNode(t,e)})}addGeneralization(e){if(this.activeNodeList.length<=0)return;const t=this.activeNodeList.filter(e=>!e.isRoot&&!e.isGeneralization&&!e.checkHasSelfGeneralization()),n=Object(v["P"])(t);n.forEach(t=>{const n={...e||{text:this.mindMap.opt.defaultGeneralizationText},range:t.range||null};let r=t.node.getData("generalization");r?Array.isArray(r)?r.push(n):r=[r,n]:r=[n],this.mindMap.execCommand("SET_NODE_DATA",t.node,{generalization:r}),t.node.setData({expand:!0})}),this.mindMap.render(()=>{this.mindMap.render()})}removeGeneralization(){this.activeNodeList.length<=0||(this.activeNodeList.forEach(e=>{e.checkHasGeneralization()&&this.mindMap.execCommand("SET_NODE_DATA",e,{generalization:null})}),this.mindMap.render(),this.closeHighlightNode())}setNodeCustomPosition(e,t,n){let r=[e]||!1;r.forEach(e=>{this.mindMap.execCommand("SET_NODE_DATA",e,{customLeft:t,customTop:n})})}resetLayout(){Object(v["db"])(this.root,null,e=>{e.customLeft=void 0,e.customTop=void 0,this.mindMap.execCommand("SET_NODE_DATA",e,{customLeft:void 0,customTop:void 0}),this.mindMap.render()},null,!0,0,0)}setNodeShape(e,t){if(!t||!Kc.includes(t))return;let n=[e]||!1;n.forEach(e=>{this.setNodeStyle(e,"shape",t)})}goTargetNode(e,t=(()=>{})){let n="string"===typeof e?e:e.getData("uid");n&&this.expandToNodeUid(n,()=>{let e=this.findNodeByUid(n);e&&(e.active(),this.moveNodeToCenter(e),t())})}setNodeData(e,t){Object.keys(t).forEach(n=>{e.nodeData.data[n]=t[n]})}setNodeDataRender(e,t,n=!1){this.mindMap.execCommand("SET_NODE_DATA",e,t);let r=e.reRender();r?n||this.mindMap.render():this.mindMap.emit("node_tree_render_end")}moveNodeToCenter(e){let t=this.mindMap.width/2,n=this.mindMap.height/2,{left:r,top:i,width:o,height:a}=e,s=r+o/2,l=i+a/2,{state:c}=this.mindMap.view.getTransformData(),u=t-c.x,h=n-c.y,d=u-s,f=h-l;this.mindMap.view.translateX(d),this.mindMap.view.translateY(f),this.mindMap.view.setScale(1)}setRootNodeCenter(){this.moveNodeToCenter(this.root)}expandToNodeUid(e,t=(()=>{})){let n=[];const r={};Object(v["d"])(this.renderTree,(t,i)=>{if(t.data.uid===e)return n=i?[...r[i.data.uid],i]:[],"stop";r[t.data.uid]=i?[...r[i.data.uid],i]:[]});let i=!1;n.forEach(e=>{e.data.expand||(i=!0,e.data.expand=!0)}),i?this.mindMap.render(t):t()}findNodeByUid(e){let t=null;return Object(v["db"])(this.root,null,n=>{if(n.getData("uid")===e)return t=n,!0}),t}highlightNode(e,t){const{highlightNodeBoxStyle:n={}}=this.mindMap.opt;this.highlightBoxNode||(this.highlightBoxNode=(new Zl).stroke({color:n.stroke||"transparent"}).fill({color:n.fill||"transparent"}));let r=1/0,i=1/0,o=-1/0,a=-1/0;if(t){const n=e.children.slice(t[0],t[1]+1);n.forEach(e=>{e.lefto&&(o=t),n>a&&(a=n)})}else r=e.left,i=e.top,o=e.left+e.width,a=e.top+e.height;this.highlightBoxNode.plot([[r,i],[o,i],[o,a],[r,a]]),this.mindMap.otherDraw.add(this.highlightBoxNode)}closeHighlightNode(){this.highlightBoxNode.remove()}}var Dh=Oh,Ph=po()(Sh,{lineColor:"#333",backgroundColor:"#d1f6ec",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"#1fb27d"},second:{fillColor:"#fff",color:"#565656",borderColor:"transparent",borderWidth:0},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),Ih=po()(Sh,{lineColor:"rgb(115, 161, 191)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(115, 161, 191)"},second:{fillColor:"rgb(238, 243, 246)",color:"#333",borderColor:"rgb(115, 161, 191)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),Rh=po()(Sh,{lineColor:"rgb(191, 115, 148)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 115, 148)"},second:{fillColor:"rgb(246, 238, 242)",color:"#333",borderColor:"rgb(191, 115, 148)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),Fh=po()(Sh,{lineColor:"rgb(123, 115, 191)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(123, 115, 191)"},second:{fillColor:"rgb(239, 238, 246)",color:"#333",borderColor:"rgb(123, 115, 191)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),zh=po()(Sh,{lineColor:"rgb(191, 115, 115)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 115, 115)"},second:{fillColor:"rgb(246, 238, 238)",color:"#333",borderColor:"rgb(191, 115, 115)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),Bh=po()(Sh,{lineColor:"rgb(191, 147, 115)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 147, 115)"},second:{fillColor:"rgb(246, 242, 238)",color:"#333",borderColor:"rgb(191, 147, 115)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),_h=po()(Sh,{lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(58, 65, 68)",backgroundImage:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=",backgroundRepeat:"repeat",backgroundSize:"auto",root:{fillColor:"rgb(233, 223, 152)",color:"#333",fontSize:24,borderRadius:21},second:{fillColor:"rgb(164, 197, 192)",borderColor:"transparent",color:"#333",fontSize:16,borderRadius:10},node:{fontSize:12,color:"#fff",fontWeight:"bold"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#333"}}),jh=po()(Sh,{lineColor:"rgb(51, 51, 51)",lineWidth:2,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",backgroundColor:"#fff",root:{fillColor:"rgb(18, 187, 55)",color:"#fff",fontSize:24,borderRadius:10},second:{fillColor:"rgb(241, 242, 241)",borderColor:"transparent",color:"#1a1a1a",fontSize:18,borderRadius:10},node:{fontSize:14,color:"#1a1a1a"},generalization:{fillColor:"#fff",borderColor:"rgb(51, 51, 51)",borderWidth:2,color:"#1a1a1a"}}),Hh=po()(Sh,{lineColor:"rgb(94, 202, 110)",lineWidth:2,generalizationLineWidth:3,generalizationLineColor:"#1a1a1a",backgroundColor:"rgb(241, 241, 241)",root:{fillColor:"rgb(255, 245, 214)",color:"#1a1a1a",fontSize:24,borderRadius:10,borderColor:"rgb(249, 199, 84)",borderWidth:1},second:{fillColor:"rgb(255, 245, 214)",borderColor:"rgb(249, 199, 84)",borderWidth:1,color:"#1a1a1a",fontSize:18,borderRadius:10},node:{fontSize:14,color:"#1a1a1a"},generalization:{fillColor:"#fff",borderColor:"#1a1a1a",color:"#1a1a1a",borderWidth:2}}),Uh=po()(Sh,{lineColor:"rgb(30, 53, 86)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(56, 123, 233)",backgroundColor:"rgb(241, 241, 241)",root:{fillColor:"rgb(30, 53, 86)",color:"#fff",fontSize:24,borderRadius:10,borderColor:"rgb(189, 197, 201)",borderWidth:2},second:{fillColor:"rgb(169, 218, 218)",borderColor:"rgb(30, 53, 86)",borderWidth:2,color:"#fff",fontSize:18,borderRadius:10},node:{fontSize:14,color:"rgb(30, 53, 86)",borderColor:"rgb(30, 53, 86)",borderWidth:1,marginY:20},generalization:{fillColor:"rgb(56, 123, 233)",borderColor:"rgb(56, 123, 233)",color:"#fff",borderWidth:0}}),qh=po()(Sh,{lineColor:"rgb(17, 68, 23)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#fff",backgroundColor:"rgb(15, 16, 17)",root:{fillColor:"rgb(28, 178, 43)",color:"#fff",fontSize:24,borderRadius:10},second:{fillColor:"rgb(55, 56, 58)",color:"rgb(147,148,149)",fontSize:18,borderRadius:10,borderWidth:0},node:{fontSize:14,color:"rgb(147, 148, 149)"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#333"}}),Gh=po()(Sh,{lineColor:"rgb(123, 199, 120)",backgroundColor:"rgb(236, 245, 231)",generalizationLineWidth:2,generalizationLineColor:"rgb(123, 199, 120)",root:{fillColor:"rgb(253, 244, 217)",color:"#222"},second:{fillColor:"rgb(253, 244, 217)",color:"#222",borderColor:"rgb(242, 200, 104)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"rgb(123, 199, 120)",borderColor:"transparent",borderWidth:2,color:"#fff"}}),Wh=po()(Sh,{lineColor:"rgb(51, 51, 51)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(51, 51, 51)",backgroundColor:"rgb(239, 248, 250)",root:{fillColor:"rgb(255, 255, 255)",color:"#222"},second:{fillColor:"rgb(255, 255, 255)",color:"#222",borderColor:"rgb(255, 255, 255)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"rgb(51, 51, 51)",color:"#333"}}),Vh=po()(Sh,{lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#222",backgroundColor:"rgb(248, 215, 49)",root:{fillColor:"rgb(55, 165, 255)",borderColor:"rgb(51, 51, 51)",borderWidth:3},second:{fillColor:"rgb(255, 160, 36)",color:"#222",borderColor:"rgb(51, 51, 51)",borderWidth:3,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{borderColor:"#222",borderWidth:3,color:"#222"}}),Yh=po()(Sh,{lineColor:"rgb(166, 101, 106)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(255, 208, 211)",root:{fillColor:"rgb(139, 109, 225)",borderColor:"",borderWidth:0},second:{fillColor:"rgb(243, 104, 138)",color:"#fff",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#222"}}),Zh=po()(Sh,{lineColor:"rgb(104, 204, 202)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(90, 206, 241)",backgroundColor:"rgb(239, 255, 255)",root:{fillColor:"rgb(0, 192, 184)",borderColor:"",borderWidth:0},second:{fillColor:"#fff",color:"#222",borderColor:"rgb(184, 235, 233)",borderWidth:2,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"rgb(90, 206, 241)",borderColor:"transparent",color:"#fff"}}),Kh=po()(Sh,{lineColor:"rgb(51, 56, 62)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(127, 93, 64)",backgroundColor:"#fff",root:{fillColor:"rgb(51, 56, 62)",color:"rgb(247, 208, 160)",borderColor:"",borderWidth:0},second:{fillColor:"rgb(239, 209, 176)",color:"rgb(81, 58, 42)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"rgb(127, 93, 64)",borderColor:"transparent",color:"rgb(255, 214, 175)"}}),Xh=po()(Sh,{lineColor:"rgb(254, 146, 0)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 222, 69)",backgroundColor:"rgb(255, 246, 243)",root:{fillColor:"rgb(255, 112, 52)",color:"#fff",borderColor:"",borderWidth:0},second:{fillColor:"#fff",color:"rgb(51, 51, 51)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"rgb(255, 222, 69)",borderColor:"transparent",color:"rgb(51, 51, 51)"}}),Jh=po()(Sh,{lineColor:"rgb(40, 193, 84)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(251, 158, 0)",backgroundColor:"rgb(238, 255, 243)",root:{fillColor:"rgb(25, 193, 73)",color:"#fff",borderColor:"",borderWidth:0},second:{fillColor:"#fff",color:"rgb(69, 149, 96)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"#fff",borderColor:"rgb(251, 158, 0)",borderWidth:2,color:"rgb(51, 51, 51)"}}),Qh=po()(Sh,{lineColor:"rgb(75, 81, 78)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",backgroundColor:"rgb(27, 31, 34)",root:{fillColor:"rgb(36, 179, 96)",color:"#fff",borderColor:"",borderWidth:0},second:{fillColor:"rgb(254, 199, 13)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"rgb(204, 204, 204)"},generalization:{fillColor:"transparent",borderColor:"rgb(255, 119, 34)",borderWidth:2,color:"rgb(204, 204, 204)"}}),$h=po()(Sh,{lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(80, 156, 170)",root:{fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(65, 89, 158)"},second:{fillColor:"rgb(251, 227, 188)",color:"rgb(65, 89, 158)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"rgb(65, 89, 158)"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"rgb(65, 89, 158)"}}),ed=po()(Sh,{lineColor:"rgb(34, 34, 34)",lineWidth:4,generalizationLineWidth:4,generalizationLineColor:"rgb(34, 34, 34)",root:{fillColor:"#fff",color:"rgb(34, 34, 34)",borderColor:"rgb(34, 34, 34)",borderWidth:3,fontSize:24},second:{fillColor:"rgb(241, 246, 248)",color:"rgb(34, 34, 34)",borderColor:"rgb(34, 34, 34)",borderWidth:3,fontSize:18},node:{fontSize:14,color:"rgb(34, 34, 34)"},generalization:{fontSize:14,fillColor:"transparent",borderColor:"rgb(34, 34, 34)",borderWidth:2,color:"rgb(34, 34, 34)"}}),td=po()(Sh,{lineColor:"rgb(113, 195, 169)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(113, 195, 169)",root:{fillColor:"rgb(16, 160, 121)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(240, 252, 249)",color:"rgb(50, 113, 96)",borderColor:"rgb(113, 195, 169)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(10, 59, 43)"},generalization:{fontSize:14,fillColor:"rgb(246, 238, 211)",borderColor:"",borderWidth:0,color:"rgb(173, 91, 12)"}}),nd=po()(Sh,{lineColor:"rgb(173, 123, 91)",lineWidth:4,generalizationLineWidth:4,generalizationLineColor:"rgb(173, 123, 91)",root:{fillColor:"rgb(202, 117, 79)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(245, 231, 216)",color:"rgb(125, 86, 42)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(96, 71, 47)"},generalization:{fontSize:14,fillColor:"rgb(255, 249, 239)",borderColor:"rgb(173, 123, 91)",borderWidth:2,color:"rgb(122, 83, 44)"}}),rd=po()(Sh,{backgroundColor:"rgb(255, 238, 228)",lineColor:"rgb(230, 138, 131)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(222, 101, 85)",root:{fillColor:"rgb(207, 44, 44)",color:"rgb(255, 233, 157)",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(255, 255, 255)",color:"rgb(211, 58, 21)",borderColor:"rgb(222, 101, 85)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(144, 71, 43)"},generalization:{fontSize:14,fillColor:"rgb(255, 247, 211)",borderColor:"rgb(255, 202, 162)",borderWidth:2,color:"rgb(187, 101, 69)"}}),id=po()(Sh,{backgroundColor:"rgb(27, 31, 34)",lineColor:"rgb(75, 81, 78)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",root:{fillColor:"rgb(36, 179, 96)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(254, 199, 13)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(204, 204, 204)"},generalization:{fontSize:14,fillColor:"rgb(27, 31, 34)",borderColor:"rgb(255, 119, 34)",borderWidth:2,color:"rgb(204, 204, 204)"}}),od=po()(Sh,{backgroundColor:"rgb(32, 37, 49)",lineColor:"rgb(137, 167, 196)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",root:{fillColor:"rgb(23, 153, 243)",color:"rgb(255, 255, 255)",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(70, 78, 94)",color:"rgb(209, 210, 210)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(204, 204, 204)"},generalization:{fontSize:14,fillColor:"rgb(255, 119, 34)",borderColor:"",borderWidth:2,color:"#fff"}}),ad=po()(Sh,{backgroundColor:"rgb(18, 20, 20)",lineColor:"rgb(205, 186, 156)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(245, 224, 191)",root:{fillColor:"rgb(255, 208, 124)",color:"rgb(111, 61, 6)",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(66, 57, 46)",color:"rgb(225, 201, 158)",borderColor:"rgb(245, 224, 191)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(231, 203, 155)"},generalization:{fontSize:14,fillColor:"rgb(56, 45, 34)",borderColor:"rgb(104, 84, 61)",borderWidth:2,color:"rgb(242, 216, 176)"}}),sd=po()(Sh,{backgroundColor:"#e6f1de",lineColor:"#f5ffad",lineWidth:4,generalizationLineWidth:3,generalizationLineColor:"#749336",root:{fillColor:"#94c143",color:"#fff",borderColor:"#94c143",borderWidth:0,fontSize:24},second:{fillColor:"#cee498",color:"#749336",borderColor:"#aec668",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#749336"},generalization:{fontSize:14,fillColor:"#cee498",borderColor:"#aec668",borderWidth:2,color:"#749336"}}),ld=po()(Sh,{backgroundColor:"#fff2df",lineColor:"#b0bc47",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#b0bc47",root:{fillColor:"#e68112",color:"#fff",borderColor:"#e68112",borderWidth:0,fontSize:24},second:{fillColor:"#ffd683",color:"#8c5416",borderColor:"#b0bc47",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#8c5416"},generalization:{fontSize:14,fillColor:"#ffd683",borderColor:"#b0bc47",borderWidth:2,color:"#8c5416"}}),cd=po()(Sh,{backgroundColor:"#070616",lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",root:{fillColor:"#ff6811",color:"#110501",borderColor:"#ff6811",borderWidth:0,fontSize:24},second:{fillColor:"#070616",color:"#a9a4a9",borderColor:"#ff6811",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#a9a4a9"},generalization:{fontSize:14,fillColor:"",borderColor:"#ff6811",borderWidth:2,color:"#a9a4a9"}}),ud={default:Sh,freshGreen:Ph,blueSky:Ih,brainImpairedPink:Rh,romanticPurple:Fh,freshRed:zh,earthYellow:Bh,classic:_h,classic2:jh,classic3:Hh,classic4:Uh,dark:qh,classicGreen:Gh,classicBlue:Wh,minions:Vh,pinkGrape:Yh,mint:Zh,gold:Kh,vitalityOrange:Xh,greenLeaf:Jh,dark2:Qh,skyGreen:$h,simpleBlack:ed,courseGreen:td,coffee:nd,redSpirit:rd,blackHumour:id,lateNightOffice:od,blackGold:ad,avocado:sd,autumn:ld,orangeJuice:cd};const hd={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(let RE=0;RE<=9;RE++)hd[RE]=RE+48;"abcdefghijklmnopqrstuvwxyz".split("").forEach((e,t)=>{hd[e]=t+65});const dd=hd;class fd{constructor(e){this.opt=e,this.mindMap=e.mindMap,this.shortcutMap={},this.shortcutMapCache={},this.isPause=!1,this.isInSvg=!1,this.bindEvent()}pause(){this.isPause=!0}recovery(){this.isPause=!1}save(){this.shortcutMapCache=this.shortcutMap,this.shortcutMap={}}restore(){this.shortcutMap=this.shortcutMapCache,this.shortcutMapCache={}}bindEvent(){this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("svg_mouseenter",()=>{this.isInSvg=!0}),this.mindMap.on("svg_mouseleave",()=>{this.mindMap.richText&&this.mindMap.richText.showTextEdit||this.mindMap.renderer.textEdit.showTextEdit||this.mindMap.associativeLine&&this.mindMap.associativeLine.showTextEdit||(this.isInSvg=!1)}),window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",()=>{this.unBindEvent()})}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}onKeydown(e){this.isPause||this.mindMap.opt.enableShortcutOnlyWhenMouseInSvg&&!this.isInSvg||Object.keys(this.shortcutMap).forEach(t=>{this.checkKey(e,t)&&(this.checkKey(e,"Control+v")||(e.stopPropagation(),e.preventDefault()),this.shortcutMap[t].forEach(e=>{e()}))})}checkKey(e,t){let n=this.getOriginEventCodeArr(e),r=this.getKeyCodeArr(t);if(n.length!==r.length)return!1;for(let i=0;ie===n[i]);if(-1===e)return!1;r.splice(e,1)}return!0}getOriginEventCodeArr(e){let t=[];return(e.ctrlKey||e.metaKey)&&t.push(dd["Control"]),e.altKey&&t.push(dd["Alt"]),e.shiftKey&&t.push(dd["Shift"]),t.includes(e.keyCode)||t.push(e.keyCode),t}hasCombinationKey(e){return e.ctrlKey||e.metaKey||e.altKey||e.shiftKey}getKeyCodeArr(e){let t=e.split(/\s*\+\s*/),n=[];return t.forEach(e=>{n.push(dd[e])}),n}addShortcut(e,t){e.split(/\s*\|\s*/).forEach(e=>{this.shortcutMap[e]?this.shortcutMap[e].push(t):this.shortcutMap[e]=[t]})}removeShortcut(e,t){e.split(/\s*\|\s*/).forEach(e=>{if(this.shortcutMap[e])if(t){let n=this.shortcutMap[e].findIndex(e=>e===t);-1!==n&&this.shortcutMap[e].splice(n,1)}else this.shortcutMap[e]=[],delete this.shortcutMap[e]})}getShortcutFn(e){let t=[];return e.split(/\s*\|\s*/).forEach(e=>{t=this.shortcutMap[e]||[]}),t}}class pd{constructor(e={}){this.opt=e,this.mindMap=e.mindMap,this.commands={},this.history=[],this.activeHistoryIndex=0,this.registerShortcutKeys(),this.addHistory=Object(v["cb"])(this.addHistory,this.mindMap.opt.addHistoryTime,this)}clearHistory(){this.history=[],this.activeHistoryIndex=0,this.mindMap.emit("back_forward",0,0)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Control+z",()=>{this.mindMap.execCommand("BACK")}),this.mindMap.keyCommand.addShortcut("Control+y",()=>{this.mindMap.execCommand("FORWARD")})}exec(e,...t){if(this.commands[e]){if(this.commands[e].forEach(e=>{e(...t)}),["BACK","FORWARD","SET_NODE_ACTIVE","CLEAR_ACTIVE_NODE"].includes(e))return;this.addHistory()}}add(e,t){this.commands[e]?this.commands[e].push(t):this.commands[e]=[t]}remove(e,t){if(this.commands[e])if(t){let n=this.commands[e].find(e=>e===t);-1!==n&&this.commands[e].splice(n,1)}else this.commands[e]=[],delete this.commands[e]}addHistory(){if(this.mindMap.opt.readonly)return;let e=this.getCopyData();this.history.length>0&&JSON.stringify(this.history[this.history.length-1])===JSON.stringify(e)||(this.history=this.history.slice(0,this.activeHistoryIndex+1),this.history.push(Object(v["ab"])(e)),this.history.length>this.mindMap.opt.maxHistoryCount&&this.history.shift(),this.activeHistoryIndex=this.history.length-1,this.mindMap.emit("data_change",e),this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length))}back(e=1){if(!this.mindMap.opt.readonly&&this.activeHistoryIndex-e>=0){this.activeHistoryIndex-=e,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);let t=Object(v["ab"])(this.history[this.activeHistoryIndex]);return this.mindMap.emit("data_change",t),t}}forward(e=1){if(this.mindMap.opt.readonly)return;let t=this.history.length;if(this.activeHistoryIndex+e<=t-1){this.activeHistoryIndex+=e,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);let t=Object(v["ab"])(this.history[this.activeHistoryIndex]);return this.mindMap.emit("data_change",t),t}}getCopyData(){return Object(v["l"])({},this.mindMap.renderer.renderTree,!0)}removeDataUid(e){e=Object(v["ab"])(e);let t=e=>{delete e.data.uid,e.children&&e.children.length>0&&e.children.forEach(e=>{t(e)})};return t(e),e}}var md=pd;class gd{constructor(){this.has={},this.queue=[],this.nextTick=Object(v["N"])(this.flush,this)}push(e,t){this.has[e]?this.replaceTask(e,t):(this.has[e]=!0,this.queue.push({name:e,fn:t}),this.nextTick())}replaceTask(e,t){const n=this.queue.findIndex(t=>t.name===e);-1!==n&&(this.queue[n]={name:e,fn:t})}flush(){let e=this.queue.slice(0);this.queue=[],e.forEach(({name:e,fn:t})=>{this.has[e]=!1,t()})}}var vd=gd;const bd={readonly:!1,layout:oo["a"].LAYOUT.LOGICAL_STRUCTURE,fishboneDeg:45,theme:"default",themeConfig:{},scaleRatio:.2,mouseScaleCenterUseMousePosition:!0,maxTag:5,expandBtnSize:20,imgTextMargin:5,textContentMargin:2,selectTranslateStep:3,selectTranslateLimit:20,customNoteContentShow:null,enableFreeDrag:!1,watermarkConfig:{text:"",lineSpacing:100,textSpacing:100,angle:30,textStyle:{color:"#999",opacity:.5,fontSize:14}},textAutoWrapWidth:500,customHandleMousewheel:null,mousewheelAction:oo["a"].MOUSE_WHEEL_ACTION.MOVE,mousewheelMoveStep:100,mousewheelZoomActionReverse:!0,defaultInsertSecondLevelNodeText:"二级节点",defaultInsertBelowSecondLevelNodeText:"分支主题",expandBtnStyle:{color:"#808080",fill:"#fff",fontSize:13,strokeColor:"#333333"},expandBtnIcon:{open:"",close:""},expandBtnNumHandler:e=>e,isShowExpandNum:!0,enableShortcutOnlyWhenMouseInSvg:!0,initRootNodePosition:null,exportPaddingX:10,exportPaddingY:10,nodeTextEditZIndex:3e3,nodeNoteTooltipZIndex:3e3,isEndNodeTextEditOnClickOuter:!0,maxHistoryCount:1e3,alwaysShowExpandBtn:!1,iconList:[],maxNodeCacheCount:1e3,defaultAssociativeLineText:"关联",fitPadding:50,enableCtrlKeyNodeSelection:!0,useLeftKeySelectionRightKeyDrag:!1,beforeTextEdit:null,isUseCustomNodeContent:!1,customCreateNodeContent:null,customInnerElsAppendTo:null,nodeDragPlaceholderMaxSize:20,enableAutoEnterTextEditWhenKeydown:!1,richTextEditFakeInPlace:!1,customHandleClipboardText:null,disableMouseWheelZoom:!1,disableTouchZoom:!1,errorHandler:(e,t)=>{console.error(e,t)},resetCss:"\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n ",enableDblclickBackToRootNode:!1,minExportImgCanvasScale:2,hoverRectColor:"rgb(94, 200, 248)",hoverRectPadding:2,selectTextOnEnterEditText:!1,deleteNodeActive:!0,autoMoveWhenMouseInEdgeOnDrag:!0,fit:!1,dragMultiNodeRectConfig:{width:40,height:20,fill:""},dragPlaceholderRectFill:"",dragOpacityConfig:{cloneNodeOpacity:.5,beingDragNodeOpacity:.3},tagsColorMap:{},cooperateStyle:{avatarSize:22,fontSize:12},associativeLineIsAlwaysAboveNode:!0,defaultGeneralizationText:"概要",handleIsSplitByWrapOnPasteCreateNewNode:null,addHistoryTime:100,isDisableDrag:!1,highlightNodeBoxStyle:{stroke:"rgb(94, 200, 248)",fill:"transparent"},createNewNodeBehavior:oo["a"].CREATE_NEW_NODE_BEHAVIOR.DEFAULT};class yd{constructor(e={}){if(this.opt=this.handleOpt(po()(bd,e)),this.el=this.opt.el,!this.el)throw new Error("缺少容器元素el");this.getElRectInfo(),this.cssEl=null,this.addCss(),this.initContainer(),this.initTheme(),this.initCache(),this.event=new ho({mindMap:this}),this.keyCommand=new fd({mindMap:this}),this.command=new md({mindMap:this}),this.renderer=new Dh({mindMap:this}),this.view=new so({mindMap:this}),this.batchExecution=new vd,yd.pluginList.forEach(e=>{this.initPlugin(e)}),this.render(this.opt.fit?()=>this.view.fit():()=>{}),setTimeout(()=>{this.command.addHistory()},0)}handleOpt(e){return e.data=Object(v["ab"])(e.data||{}),oo["h"].includes(e.layout)||(e.layout=oo["a"].LAYOUT.LOGICAL_STRUCTURE),e.theme=e.theme&&ud[e.theme]?e.theme:"default",e}initContainer(){const{associativeLineIsAlwaysAboveNode:e}=this.opt,t=()=>{this.associativeLineDraw=this.draw.group(),this.associativeLineDraw.addClass("smm-associative-line-container")};this.svg=Yc().addTo(this.el).size(this.width,this.height),this.draw=this.svg.group(),this.draw.addClass("smm-container"),this.lineDraw=this.draw.group(),this.lineDraw.addClass("smm-line-container"),e||t(),this.nodeDraw=this.draw.group(),this.nodeDraw.addClass("smm-node-container"),e&&t(),this.otherDraw=this.draw.group(),this.otherDraw.addClass("smm-other-container")}clearDraw(){this.lineDraw.clear(),this.associativeLineDraw.clear(),this.nodeDraw.clear(),this.otherDraw.clear()}addCss(){this.cssEl=document.createElement("style"),this.cssEl.type="text/css",this.cssEl.innerHTML=oo["e"],document.head.appendChild(this.cssEl)}removeCss(){document.head.removeChild(this.cssEl)}render(e,t=""){this.batchExecution.push("render",()=>{this.initTheme(),this.renderer.reRender=!1,this.renderer.render(e,t)})}reRender(e,t=""){this.batchExecution.push("render",()=>{this.clearDraw(),this.initTheme(),this.renderer.reRender=!0,this.renderer.render(e,t)})}getElRectInfo(){if(this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.width<=0||this.height<=0)throw new Error("容器元素el的宽高不能为0")}resize(){this.getElRectInfo(),this.svg.size(this.width,this.height),this.emit("resize")}on(e,t){this.event.on(e,t)}emit(e,...t){this.event.emit(e,...t)}off(e,t){this.event.off(e,t)}initCache(){Object.keys(oo["d"]).forEach(e=>{let t=Object(v["B"])(oo["d"][e]),n="";switch(t){case"Boolean":n=!1;break;default:n=null;break}oo["d"][e]=n})}initTheme(){this.themeConfig=po()(ud[this.opt.theme],this.opt.themeConfig),bo.setBackgroundStyle(this.el,this.themeConfig)}setTheme(e,t=!1){this.execCommand("CLEAR_ACTIVE_NODE"),this.opt.theme=e,t||this.render(null,oo["a"].CHANGE_THEME),this.emit("view_theme_change",e)}getTheme(){return this.opt.theme}setThemeConfig(e,t=!1){const n=Object(v["x"])(this.themeConfig,e);if(this.opt.themeConfig=e,!t){let e=Nh(n);this.render(null,e?"":oo["a"].CHANGE_THEME)}}getCustomThemeConfig(){return this.opt.themeConfig}getThemeConfig(e){return void 0===e?this.themeConfig:this.themeConfig[e]}getConfig(e){return void 0===e?this.opt:this.opt[e]}updateConfig(e={}){this.opt=this.handleOpt(po.a.all([bd,this.opt,e]))}getLayout(){return this.opt.layout}setLayout(e,t=!1){oo["h"].includes(e)||(e=oo["a"].LAYOUT.LOGICAL_STRUCTURE),this.opt.layout=e,this.view.reset(),this.renderer.setLayout(),t||this.render(null,oo["a"].CHANGE_LAYOUT)}execCommand(...e){this.command.exec(...e)}setData(e){e=Object(v["ab"])(e||{}),this.execCommand("CLEAR_ACTIVE_NODE"),this.command.clearHistory(),this.command.addHistory(),this.renderer.setData(e),this.reRender(()=>{},oo["a"].SET_DATA),this.emit("set_data",e)}setFullData(e){e.root&&this.setData(e.root),e.layout&&this.setLayout(e.layout),e.theme&&(e.theme.template&&this.setTheme(e.theme.template),e.theme.config&&this.setThemeConfig(e.theme.config)),e.view&&this.view.setTransformData(e.view)}getData(e){let t=this.command.getCopyData(),n={};return n=e?{layout:this.getLayout(),root:t,theme:{template:this.getTheme(),config:this.getCustomThemeConfig()},view:this.view.getTransformData()}:t,Object(v["ab"])(n)}async export(...e){try{let t=await this.doExport.export(...e);return t}catch(t){this.opt.errorHandler(oo["b"].EXPORT_ERROR,t)}}toPos(e,t){return{x:e-this.elRect.left,y:t-this.elRect.top}}setMode(e){[oo["a"].MODE.READONLY,oo["a"].MODE.EDIT].includes(e)&&(this.opt.readonly=e===oo["a"].MODE.READONLY,this.opt.readonly&&this.execCommand("CLEAR_ACTIVE_NODE"),this.emit("mode_change",e))}getSvgData({paddingX:e=0,paddingY:t=0,ignoreWatermark:n=!1}={}){const r=this.svg,i=this.draw,o=r.width(),a=r.height(),s=i.transform(),l=this.elRect;i.scale(1/s.scaleX,1/s.scaleY);const c=i.rbox();c.width+=2*e,c.height+=2*t,i.translate(e,t),r.size(c.width,c.height),i.translate(-c.x+l.left,-c.y+l.top);let u=r.clone();!n&&(c.width>o||c.height>a)&&this.watermark&&this.watermark.hasWatermark()&&(this.width=c.width,this.height=c.height,this.watermark.draw(),u=r.clone(),this.width=o,this.height=a,this.watermark.draw()),u.add(Yc(``));const h=r.find("marker");if(h&&h.length>0){const e=h[0].attr("id");u.find("marker").forEach(t=>{t.attr("id",e)})}return r.size(o,a),i.transform(s),{svg:u,svgHTML:u.svg(),rect:{...c,ratio:c.width/c.height},origWidth:o,origHeight:a,scaleX:s.scaleX,scaleY:s.scaleY}}addPlugin(e,t){let n=yd.hasPlugin(e);-1===n&&(yd.usePlugin(e,t),this.initPlugin(e))}removePlugin(e){let t=yd.hasPlugin(e);-1!==t&&(yd.pluginList.splice(t,1),this[e.instanceName]&&(this[e.instanceName].beforePluginRemove&&this[e.instanceName].beforePluginRemove(),delete this[e.instanceName]))}initPlugin(e){this[e.instanceName]=new e({mindMap:this,pluginOpt:e.pluginOpt})}destroy(){this.emit("beforeDestroy"),this.renderer.textEdit.hideEditTextBox(),this.associativeLine&&this.associativeLine.hideEditTextBox(),[...yd.pluginList].forEach(e=>{this[e.instanceName].beforePluginDestroy&&this[e.instanceName].beforePluginDestroy(),this[e.instanceName]=null}),this.event.unbind(),this.svg.remove(),bo.removeBackgroundStyle(this.el),this.el.innerHTML="",this.el=null,this.removeCss()}}yd.pluginList=[],yd.usePlugin=(e,t={})=>(-1!==yd.hasPlugin(e)||(e.pluginOpt=t,yd.pluginList.push(e)),yd),yd.hasPlugin=e=>yd.pluginList.findIndex(t=>t===e),yd.defineTheme=(e,t={})=>{if(ud[e])return new Error("该主题名称已存在");ud[e]=po()(Sh,t)};var wd=yd;class xd{constructor(e){this.mindMap=e.mindMap,this.isMousedown=!1,this.mousedownPos={x:0,y:0},this.startViewPos={x:0,y:0}}calculationMiniMap(e,t){let{svg:n,rect:r,origWidth:i,origHeight:o,scaleX:a,scaleY:s}=this.mindMap.getSvgData({ignoreWatermark:!0});const l=this.mindMap.elRect;r.x-=l.left,r.x2-=l.left,r.y-=l.top,r.y2-=l.top;let c=e/t,u=0,h=0;c>r.ratio?(h=t,u=r.ratio*h):(u=e,h=u/r.ratio);let d=u/r.width,f=(e-u)/2,p=(t-h)/2,m=r.x-(r.width*a-r.width)/2,g=r.x2+(r.width*a-r.width)/2,b=r.y-(r.height*s-r.height)/2,y=r.y2+(r.height*s-r.height)/2,w=r.width*a,x=r.height*s,k={left:0,top:0,right:0,bottom:0};k.left=Math.max(0,-m/w*u)+f,k.right=Math.max(0,(g-i)/w*u)+f,k.top=Math.max(0,-b/x*h)+p,k.bottom=Math.max(0,(y-o)/x*h)+p,k.top>p+h&&(k.top=p+h),k.left>f+u&&(k.left=f+u),Object.keys(k).forEach(e=>{k[e]=k[e]+"px"}),this.removeNodeContent(n);const A=n.svg();return{getImgUrl:async e=>{const t=new Blob([A],{type:"image/svg+xml"}),n=await Object(v["R"])(t);e(n)},svgHTML:A,viewBoxStyle:k,miniMapBoxScale:d,miniMapBoxLeft:f,miniMapBoxTop:p}}removeNodeContent(e){if(e.hasClass("smm-node")){let t=e.findOne(".smm-node-shape"),n=t.attr("fill");return(Object(v["J"])(n)||Object(v["H"])(n))&&t.attr("fill",Object(v["C"])(this.mindMap.themeConfig)),e.clear(),void e.add(t)}let t=e.children();t&&t.length>0&&t.forEach(e=>{this.removeNodeContent(e)})}onMousedown(e){this.isMousedown=!0,this.mousedownPos={x:e.clientX,y:e.clientY};let t=this.mindMap.view.getTransformData();this.startViewPos={x:t.state.x,y:t.state.y}}onMousemove(e,t=5){if(!this.isMousedown)return;let n=e.clientX-this.mousedownPos.x,r=e.clientY-this.mousedownPos.y;this.mindMap.view.translateXTo(n*t+this.startViewPos.x),this.mindMap.view.translateYTo(r*t+this.startViewPos.y)}onMouseup(){this.isMousedown=!1}}xd.instanceName="miniMap";var kd=xd;class Ad{constructor(e={}){this.mindMap=e.mindMap,this.lineSpacing=0,this.textSpacing=0,this.angle=0,this.text="",this.textStyle={},this.watermarkDraw=null,this.maxLong=this.getMaxLong(),this.updateWatermark(this.mindMap.opt.watermarkConfig||{}),this.bindEvent()}getMaxLong(){return Math.sqrt(Math.pow(this.mindMap.width,2)+Math.pow(this.mindMap.height,2))}bindEvent(){this.onResize=this.onResize.bind(this),this.mindMap.on("resize",this.onResize)}unBindEvent(){this.mindMap.off("resize",this.onResize)}onResize(){this.maxLong=this.getMaxLong(),this.draw()}createContainer(){this.watermarkDraw||(this.watermarkDraw=this.mindMap.svg.group().css({"pointer-events":"none","user-select":"none"}).addClass("smm-water-mark-container"))}removeContainer(){this.watermarkDraw&&(this.watermarkDraw.remove(),this.watermarkDraw=null)}hasWatermark(){return!!this.text.trim()}handleConfig({text:e,lineSpacing:t,textSpacing:n,angle:r,textStyle:i}){this.text=void 0===e?"":String(e).trim(),this.lineSpacing="number"===typeof t&&t>0?t:100,this.textSpacing="number"===typeof n&&n>0?n:100,this.angle="number"===typeof r&&r>=0&&r<=90?r:30,this.textStyle=Object.assign(this.textStyle,i||{})}draw(){if(this.watermarkDraw&&this.watermarkDraw.clear(),!this.hasWatermark())return void this.removeContainer();this.createContainer();let e=0;while(e{let n=this.textStyle[t];"color"===t?e.fill(n):e.css(Object(v["e"])(t),n)})}updateWatermark(e){this.mindMap.opt.watermarkConfig=po()(this.mindMap.opt.watermarkConfig,e),this.handleConfig(e),this.draw()}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Ad.instanceName="watermark";var Cd=Ad;class Ed{constructor(e){this.opt=e,this.mindMap=e.mindMap,this.onKeyup=this.onKeyup.bind(this),this.mindMap.keyCommand.addShortcut(oo["a"].KEY_DIR.LEFT,()=>{this.onKeyup(oo["a"].KEY_DIR.LEFT)}),this.mindMap.keyCommand.addShortcut(oo["a"].KEY_DIR.UP,()=>{this.onKeyup(oo["a"].KEY_DIR.UP)}),this.mindMap.keyCommand.addShortcut(oo["a"].KEY_DIR.RIGHT,()=>{this.onKeyup(oo["a"].KEY_DIR.RIGHT)}),this.mindMap.keyCommand.addShortcut(oo["a"].KEY_DIR.DOWN,()=>{this.onKeyup(oo["a"].KEY_DIR.DOWN)})}onKeyup(e){if(this.mindMap.renderer.activeNodeList.length>0)this.focus(e);else{let e=this.mindMap.renderer.root;this.mindMap.execCommand("GO_TARGET_NODE",e)}}focus(e){let t=this.mindMap.renderer.activeNodeList[0],n=this.getNodeRect(t),r=null,i=1/0,o=(e,t)=>{let o=this.getDistance(n,e);o{if(i.uid===e.uid)return;let o=this.getNodeRect(i),{left:a,top:s,right:l,bottom:c}=o,u=!1;n===oo["a"].KEY_DIR.LEFT?u=l<=t.left:n===oo["a"].KEY_DIR.RIGHT?u=a>=t.right:n===oo["a"].KEY_DIR.UP?u=c<=t.top:n===oo["a"].KEY_DIR.DOWN&&(u=s>=t.bottom),u&&r(o,i)})}getFocusNodeByShadowAlgorithm({currentActiveNode:e,currentActiveNodeRect:t,dir:n,checkNodeDis:r}){Object(v["d"])(this.mindMap.renderer.root,i=>{if(i.uid===e.uid)return;let o=this.getNodeRect(i),{left:a,top:s,right:l,bottom:c}=o,u=!1;n===oo["a"].KEY_DIR.LEFT?u=at.top:n===oo["a"].KEY_DIR.RIGHT?u=l>t.right&&st.top:n===oo["a"].KEY_DIR.UP?u=st.left:n===oo["a"].KEY_DIR.DOWN&&(u=c>t.bottom&&at.left),u&&r(o,i)})}getFocusNodeByAreaAlgorithm({currentActiveNode:e,currentActiveNodeRect:t,dir:n,checkNodeDis:r}){let i=(t.right+t.left)/2,o=(t.bottom+t.top)/2;Object(v["d"])(this.mindMap.renderer.root,t=>{if(t.uid===e.uid)return;let a=this.getNodeRect(t),{left:s,top:l,right:c,bottom:u}=a,h=(c+s)/2,d=(u+l)/2,f=h-i,p=d-o;if(0===f&&0===p)return;let m=!1;n===oo["a"].KEY_DIR.LEFT?m=f<=0&&f<=p&&f<=-p:n===oo["a"].KEY_DIR.RIGHT?m=f>0&&f>=-p&&f>=p:n===oo["a"].KEY_DIR.UP?m=p<=0&&p0&&-pf),m&&r(a,t)})}getNodeRect(e){let{scaleX:t,scaleY:n,translateX:r,translateY:i}=this.mindMap.draw.transform(),{left:o,top:a,width:s,height:l}=e;return{right:(o+s)*t+r,bottom:(a+l)*n+i,left:o*t+r,top:a*n+i}}getDistance(e,t){let n=this.getCenter(e),r=this.getCenter(t);return Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2))}getCenter({left:e,right:t,top:n,bottom:r}){return{x:(e+t)/2,y:(n+r)/2}}}Ed.instanceName="keyboardNavigation";var Sd=Ed,Td=n("fafe");class Nd{constructor(e){this.mindMap=e.mindMap}async pdf(e,t,n=!1){n?await this.multiPageExport(e,t):await this.onePageExport(e,t)}onePageExport(e,t){return new Promise((n,r)=>{let i=new Td["a"]({unit:"pt",format:"a4",compress:!0}),o=oo["c"].width/oo["c"].height,a=new Image;a.onload=()=>{let r,s,l=a.width,c=a.height,u=l/c;l<=oo["c"].width&&c<=oo["c"].height?(r=l,s=c):o>u?(r=u*oo["c"].height,s=oo["c"].height):(r=oo["c"].width,s=oo["c"].width/u),i.addImage(t,"PNG",(oo["c"].width-r)/2,(oo["c"].height-s)/2,r,s),i.save(e),n()},a.onerror=e=>{r(e)},a.src=t})}multiPageExport(e,t){return new Promise((n,r)=>{let i=new Image;i.onload=()=>{let r=i.width,o=i.height,a=r/oo["c"].width*oo["c"].height,s=o,l=0,c=oo["c"].width,u=oo["c"].width/r*o,h=new Td["a"]({unit:"pt",format:"a4",compress:!0});if(s0)h.addImage(t,"PNG",0,l,c,u),s-=a,l-=oo["c"].height,s>0&&h.addPage();h.save(e),n()},i.onerror=e=>{r(e)},i.src=t})}}Nd.instanceName="doExportPDF";var Md=Nd;class Ld{constructor(e){this.mindMap=e.mindMap}async xmind(e,t){const n=await St.transformToXmind(e,t);return n}getXmind(){return St}}Ld.instanceName="doExportXMind";var Od=Ld;const Dd=e=>{let t=String(e).split(/\s+/);return t.map(e=>{if(/^[\d.]+/.test(e)){let t=/^([\d.]+)(.*)$/.exec(e);return[Number(t[1]),t[2]]}return e})},Pd=(e,t)=>e*t,Id=(e,t)=>t/e,Rd={left:0,top:0,center:50,bottom:100,right:100},Fd=({backgroundSize:e,drawOpt:t,imageRatio:n,canvasWidth:r,canvasHeight:i,canvasRatio:o})=>{if(e){let a=Dd(e);if("auto"===a[0]&&"auto"===a[1])return;if("cover"===a[0])return void(n>o?(t.height=i,t.width=Pd(n,i)):(t.width=r,t.height=Id(n,r)));if("contain"===a[0])return void(n>o?(t.width=r,t.height=Id(n,r)):(t.height=i,t.width=Pd(n,i)));let s=-1;a[0]&&(Array.isArray(a[0])?"%"===a[0][1]?(t.width=a[0][0]/100*r,s=t.width):(t.width=a[0][0],s=a[0][0]):"auto"===a[0]&&a[1]&&("%"===a[1][1]?t.width=Pd(n,a[1][0]/100*i):t.width=Pd(n,a[1][0]))),a[1]&&Array.isArray(a[1])?"%"===a[1][1]?t.height=a[1][0]/100*i:t.height=a[1][0]:-1!==s&&(t.height=Id(n,s))}},zd=({backgroundPosition:e,drawOpt:t,imgWidth:n,imgHeight:r,canvasWidth:i,canvasHeight:o})=>{if(e){let a=Dd(e);if(a=a.map(e=>"string"===typeof e&&void 0!==Rd[e]?[Rd[e],"%"]:e),Array.isArray(a[0])){if(1===a.length&&a.push([50,"%"]),"%"===a[0][1]){let e=a[0][0]/100*i,r=a[0][0]/100*n;t.x=e-r}else t.x=a[0][0];if("%"===a[1][1]){let e=a[1][0]/100*o,n=a[1][0]/100*r;t.y=e-n}else t.y=a[1][0]}}},Bd=({ctx:e,image:t,backgroundRepeat:n,drawOpt:r,imgWidth:i,imgHeight:o,canvasWidth:a,canvasHeight:s})=>{if(n){let l=r.x,c=r.y,u=Math.ceil(l/i),h=Math.ceil(c/o),d=l-u*i,f=c-h*o,p=Dd(n);if("no-repeat"===p[0]||i>=a&&o>=s)return;if("repeat-x"===p[0]&&a>i){let n=d;while(no){let n=f;while(no){let i=f;while(i{e.drawImage(t,n.sx,n.sy,n.swidth,n.sheight,n.x,n.y,n.width,n.height)},jd=(e,t,n,r,{backgroundSize:i,backgroundPosition:o,backgroundRepeat:a},s=(()=>{}))=>{let l=t/n,c=new Image;c.src=r,c.onload=()=>{let r=c.width,u=c.height,h=r/u,d={sx:0,sy:0,swidth:r,sheight:u,x:0,y:0,width:r,height:u};Fd({backgroundSize:i,drawOpt:d,imageRatio:h,canvasWidth:t,canvasHeight:n,canvasRatio:l}),zd({backgroundPosition:o,drawOpt:d,imgWidth:d.width,imgHeight:d.height,imageRatio:h,canvasWidth:t,canvasHeight:n,canvasRatio:l});let f=Bd({ctx:e,image:c,backgroundRepeat:a,drawOpt:d,imgWidth:d.width,imgHeight:d.height,imageRatio:h,canvasWidth:t,canvasHeight:n,canvasRatio:l});f||_d(e,c,d),s()},c.onerror=e=>{s(e)}};var Hd=jd;class Ud{constructor(e){this.mindMap=e.mindMap}async export(e,t=!0,n="思维导图",...r){if(this[e]){const i=await this[e](n,...r);return t&&"pdf"!==e&&Object(v["p"])(i,n+"."+e),i}return null}createTransformImgTaskList(e,t,n,r){const i=e.find(t);return i.map(async e=>{const t=r(e);if(/^data:/.test(t)||"none"===t)return;const i=await Object(v["F"])(t);e.attr(n,i)})}async getSvgData(){let{exportPaddingX:e,exportPaddingY:t}=this.mindMap.opt,{svg:n,svgHTML:r}=this.mindMap.getSvgData({paddingX:e,paddingY:t});const i=this.createTransformImgTaskList(n,"image","href",e=>e.attr("href")||e.attr("xlink:href")),o=this.createTransformImgTaskList(n,"img","src",e=>e.attr("src")),a=[...i,...o];let s;if(await Promise.all(a),this.mindMap.richText){const e=n.find("foreignObject");e.length>0&&(e[0].add(Yc(``)),s=!0)}return(a.length>0||s)&&(r=n.svg()),{node:n,str:r}}svgToPng(e,t,n=(()=>!1),r){return new Promise((i,o)=>{const a=new Image;a.setAttribute("crossOrigin","anonymous"),a.onload=async()=>{try{const e=document.createElement("canvas"),o=Math.max(window.devicePixelRatio,this.mindMap.opt.minExportImgCanvasScale);let s=a.width,l=a.height;if(r){const e=Object(v["W"])(s,l,r.width,r.height);s=e[0],l=e[1]}const c=n(s,l);c?(e.width=l*o,e.height=s*o,e.style.width=l+"px",e.style.height=s+"px"):(e.width=s*o,e.height=l*o,e.style.width=s+"px",e.style.height=l+"px");const u=e.getContext("2d");u.scale(o,o),c&&(u.rotate(.5*Math.PI),u.translate(0,-l)),t||await this.drawBackgroundToCanvas(u,s,l),u.drawImage(a,0,0,s,l),i(e.toDataURL())}catch(e){o(e)}},a.onerror=e=>{o(e)},a.src=e})}drawBackgroundToCanvas(e,t,n){return new Promise((r,i)=>{const{backgroundColor:o="#fff",backgroundImage:a,backgroundRepeat:s="no-repeat",backgroundPosition:l="center center",backgroundSize:c="cover"}=this.mindMap.themeConfig;e.save(),e.rect(0,0,t,n),e.fillStyle=o,e.fill(),e.restore(),a&&"none"!==a?(e.save(),Hd(e,t,n,a,{backgroundRepeat:s,backgroundPosition:l,backgroundSize:c},t=>{t?i(t):r(),e.restore()})):r()})}drawBackgroundToSvg(e){return new Promise(async t=>{const{backgroundColor:n="#fff",backgroundImage:r,backgroundRepeat:i="repeat"}=this.mindMap.themeConfig;if(e.css("background-color",n),r&&"none"!==r){const n=await Object(v["F"])(r);e.css("background-image",`url(${n})`),e.css("background-repeat",i),t()}else t()})}async png(e,t=!1,n,r){const{str:i}=await this.getSvgData(),o=await this.fixSvgStrAndToBlob(i),a=await this.svgToPng(o,t,n,r);return a}async pdf(e,t,n){if(!this.mindMap.doExportPDF)throw new Error("请注册ExportPDF插件");const r=await this.png("",!1,(e,t)=>!(e<=oo["c"].width&&t&&oo["c"].height)&&e/t>1,{width:n||2*oo["c"].width});await this.mindMap.doExportPDF.pdf(e,r,t)}async xmind(e){if(!this.mindMap.doExportXMind)throw new Error("请注册ExportXMind插件");const t=this.mindMap.getData(),n=await this.mindMap.doExportXMind.xmind(t,e),r=await Object(v["R"])(n);return r}async svg(e){const{node:t}=await this.getSvgData();t.first().before(Yc(`${e}`)),await this.drawBackgroundToSvg(t);const n=t.svg(),r=await this.fixSvgStrAndToBlob(n);return r}async fixSvgStrAndToBlob(e){e=Object(v["T"])(e),e=Object(v["D"])(e);const t=new Blob([e],{type:"image/svg+xml"}),n=await Object(v["R"])(t);return n}async json(e,t=!0){const n=this.mindMap.getData(t),r=JSON.stringify(n),i=new Blob([r]),o=await Object(v["R"])(i);return o}async smm(e,t){const n=await this.json(e,t);return n}async md(){const e=this.mindMap.getData(),t=Ot(e),n=new Blob([t]),r=await Object(v["R"])(n);return r}}Ud.instanceName="doExport";var qd=Ud;n("a3df");class Gd extends ch{constructor({mindMap:e}){super(e.renderer),this.mindMap=e,this.reset(),this.bindEvent()}reset(){this.isDragging=!1,this.mousedownNode=null,this.beingDragNodeList=[],this.nodeList=[],this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.drawTransform=null,this.clone=null,this.placeholder=null,this.offsetX=0,this.offsetY=0,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.checkDragOffset=10,this.minOffset=10}bindEvent(){this.checkOverlapNode=Object(v["cb"])(this.checkOverlapNode,300,this),this.mindMap.on("node_mousedown",(e,t)=>{if(this.mindMap.opt.readonly||1!==t.which||e.isGeneralization||e.isRoot)return;t.preventDefault(),this.isMousedown=!0,this.mousedownNode=e;const{x:n,y:r}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseDownX=n,this.mouseDownY=r}),this.mindMap.on("mousemove",e=>{if(this.mindMap.opt.readonly||!this.isMousedown)return;e.preventDefault();const{x:t,y:n}=this.mindMap.toPos(e.clientX,e.clientY);this.mouseMoveX=t,this.mouseMoveY=n,!this.isDragging&&Math.abs(t-this.mouseDownX)<=this.checkDragOffset&&Math.abs(n-this.mouseDownY)<=this.checkDragOffset||(this.mindMap.emit("node_dragging"),this.handleStartMove(),this.onMove(t,n,e))}),this.onMouseup=this.onMouseup.bind(this),this.mindMap.on("node_mouseup",this.onMouseup),this.mindMap.on("mouseup",this.onMouseup)}onMouseup(e){if(!this.isMousedown)return;this.isMousedown=!1,this.beingDragNodeList.forEach(e=>{e.setOpacity(1),e.showChildren(),e.endDrag()}),this.removeCloneNode();let t=this.overlapNode?this.overlapNode.getData("uid"):"",n=this.prevNode?this.prevNode.getData("uid"):"",r=this.nextNode?this.nextNode.getData("uid"):"";if(this.overlapNode)this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!1),this.mindMap.execCommand("MOVE_NODE_TO",this.beingDragNodeList,this.overlapNode);else if(this.prevNode)this.mindMap.execCommand("SET_NODE_ACTIVE",this.prevNode,!1),this.mindMap.execCommand("INSERT_AFTER",this.beingDragNodeList,this.prevNode);else if(this.nextNode)this.mindMap.execCommand("SET_NODE_ACTIVE",this.nextNode,!1),this.mindMap.execCommand("INSERT_BEFORE",this.beingDragNodeList,this.nextNode);else if(this.clone&&this.mindMap.opt.enableFreeDrag&&1===this.beingDragNodeList.length){let{x:t,y:n}=this.mindMap.toPos(e.clientX-this.offsetX,e.clientY-this.offsetY),{scaleX:r,scaleY:i,translateX:o,translateY:a}=this.drawTransform;t=(t-o)/r,n=(n-a)/i,this.mousedownNode.left=t,this.mousedownNode.top=n,this.mousedownNode.customLeft=t,this.mousedownNode.customTop=n,this.mindMap.execCommand("SET_NODE_CUSTOM_POSITION",this.mousedownNode,t,n),this.mindMap.render()}this.isDragging&&this.mindMap.emit("node_dragend",{overlapNodeUid:t,prevNodeUid:n,nextNodeUid:r}),this.reset()}onMove(e,t,n){if(!this.isMousedown)return;let{scaleX:r,scaleY:i,translateX:o,translateY:a}=this.drawTransform,s=e-this.offsetX,l=t-this.offsetY;e=(s-o)/r,t=(l-a)/i;let c=this.clone.transform();this.clone.translate(e-c.translateX,t-c.translateY),this.checkOverlapNode(),this.mindMap.opt.autoMoveWhenMouseInEdgeOnDrag&&this.mindMap.select&&(this.drawTransform=this.mindMap.draw.transform(),this.mindMap.select.clearAutoMoveTimer(),this.mindMap.select.onMove(n.clientX,n.clientY))}handleStartMove(){if(!this.isDragging){this.isDragging=!0;let e=this.mousedownNode;this.drawTransform=this.mindMap.draw.transform();let{scaleX:t,scaleY:n,translateX:r,translateY:i}=this.drawTransform;this.offsetX=this.mouseDownX-(e.left*t+r),this.offsetY=this.mouseDownY-(e.top*n+i),e.getData("isActive")?this.beingDragNodeList=Object(v["A"])(this.mindMap.renderer.activeNodeList.filter(e=>!e.isRoot&&!e.isGeneralization)):this.beingDragNodeList=[e],this.nodeTreeToList(),this.createCloneNode(),this.mindMap.execCommand("CLEAR_ACTIVE_NODE")}}nodeTreeToList(){const e=[];Object(v["d"])(this.mindMap.renderer.root,t=>{this.checkIsInBeingDragNodeList(t)||(e[t.layerIndex]||(e[t.layerIndex]=[]),e[t.layerIndex].push(t))}),this.nodeList=e.reduceRight((e,t)=>[...e,...t],[])}createCloneNode(){if(!this.clone){const{dragMultiNodeRectConfig:e,dragPlaceholderRectFill:t,dragOpacityConfig:n}=this.mindMap.opt,{width:r,height:i,fill:o}=e,a=this.beingDragNodeList[0],s=a.style.merge("lineColor",!0);if(this.beingDragNodeList.length>1)this.clone=this.mindMap.otherDraw.rect().size(r,i).radius(i/2).fill({color:o||s}),this.offsetX=r/2,this.offsetY=i/2;else{this.clone=a.group.clone();const e=this.clone.findOne(".smm-expand-btn");e&&e.remove(),this.mindMap.otherDraw.add(this.clone)}this.clone.opacity(n.cloneNodeOpacity),this.clone.css("z-index",99999),this.placeholder=this.mindMap.otherDraw.rect().fill({color:t||s}),this.beingDragNodeList.forEach(e=>{e.setOpacity(n.beingDragNodeOpacity),e.hideChildren(),e.startDrag()})}}removeCloneNode(){this.clone&&(this.clone.remove(),this.placeholder.remove())}checkOverlapNode(){this.drawTransform&&this.placeholder&&(this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.placeholder.size(0,0),this.nodeList.forEach(e=>{if(e.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",e,!1),!(this.overlapNode||this.prevNode&&this.nextNode))switch(this.mindMap.opt.layout){case"logicalStructure":this.handleLogicalStructure(e);break;case"mindMap":this.handleMindMap(e);break;case"organizationStructure":this.handleOrganizationStructure(e);break;case"catalogOrganization":this.handleCatalogOrganization(e);break;case"timeline":this.handleTimeLine(e);break;case"timeline2":this.handleTimeLine2(e);break;case"verticalTimeline":this.handleLogicalStructure(e);break;case"fishbone":this.handleFishbone(e);break;default:this.handleLogicalStructure(e)}}),this.overlapNode&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0))}handleVerticalCheck(e,t,n=!1){let r=this.mouseMoveX,i=this.mouseMoveY,o=this.getNodeRect(e);n&&(t=t.reverse());let a=o.height/4,{prevBrotherOffset:s,nextBrotherOffset:l}=this.getNodeDistanceToSiblingNode(t,e,o,"v");if(o.left<=r&&o.right>=r){if(!this.overlapNode&&!this.prevNode&&!this.nextNode&&!e.isRoot){let t=l>0?i>o.bottom&&i<=o.bottom+l:i>=o.bottom-a&&i<=o.bottom,r=s>0?i=o.top-s:i>=o.top&&i<=o.top+a;if(t){n?this.nextNode=e:this.prevNode=e;let t=this.formatPlaceholderSize(l);this.setPlaceholderRect(e.width,t,o.originLeft,o.originBottom)}else if(r){n?this.prevNode=e:this.nextNode=e;let t=this.formatPlaceholderSize(s);this.setPlaceholderRect(e.width,t,o.originLeft,o.originTop-t)}}this.checkIsOverlap({node:e,dir:"v",prevBrotherOffset:s,nextBrotherOffset:l,size:a,pos:i,nodeRect:o})}}handleHorizontalCheck(e,t){let n=this.mouseMoveX,r=this.mouseMoveY,i=this.getNodeRect(e),o=i.width/4,{prevBrotherOffset:a,nextBrotherOffset:s}=this.getNodeDistanceToSiblingNode(t,e,i,"h");if(i.top<=r&&i.bottom>=r){if(!this.overlapNode&&!this.prevNode&&!this.nextNode&&!e.isRoot){let t=s>0?n=i.right:n<=i.right&&n>=i.right-o,r=a>0?n>i.left-a&&n<=i.left:n<=i.left+o&&n>=i.left;if(t){this.prevNode=e;let t=this.formatPlaceholderSize(s);this.setPlaceholderRect(t,e.height,i.originRight,i.originTop)}else if(r){this.nextNode=e;let t=this.formatPlaceholderSize(a);this.setPlaceholderRect(t,e.height,i.originLeft-t,i.originTop)}}this.checkIsOverlap({node:e,dir:"h",prevBrotherOffset:a,nextBrotherOffset:s,size:o,pos:n,nodeRect:i})}}getNodeDistanceToSiblingNode(e,t,n,r){let i="v"===r?"top":"left",o="v"===r?"bottom":"right",a=Object(v["w"])(t,e),s=null,l=null;-1!==a&&(a-1>=0&&(s=e[a-1]),a+1<=e.length-1&&(l=e[a+1]));let c=0;if(s){let e=this.getNodeRect(s);c=n[i]-e[o],c=c>=this.minOffset?c/2:0}else c=this.minOffset;let u=0;if(l){let e=this.getNodeRect(l);u=e[i]-n[o],u=u>=this.minOffset?u/2:0}else u=this.minOffset;return{prevBrotherOffset:c,nextBrotherOffset:u}}formatPlaceholderSize(e){const{nodeDragPlaceholderMaxSize:t}=this.mindMap.opt;return e>0?Math.min(e,t):5}setPlaceholderRect(e,t,n,r){this.placeholder.size(e,t).move(n,r)}checkIsOverlap({node:e,dir:t,prevBrotherOffset:n,nextBrotherOffset:r,size:i,pos:o,nodeRect:a}){let s="v"===t?"top":"left",l="v"===t?"bottom":"right";this.overlapNode||this.prevNode||this.nextNode||a[s]+(n>0?0:i)<=o&&a[l]-(r>0?0:i)>=o&&(this.overlapNode=e)}handleLogicalStructure(e){const t=this.commonGetNodeCheckList(e);this.handleVerticalCheck(e,t)}handleMindMap(e){const t=e.parent?e.parent.children.filter(t=>{let n=!0;return 1===e.layerIndex&&(n=t.dir===e.dir),n&&!this.checkIsInBeingDragNodeList(t)}):[];this.handleVerticalCheck(e,t)}handleOrganizationStructure(e){const t=this.commonGetNodeCheckList(e);this.handleHorizontalCheck(e,t)}handleCatalogOrganization(e){const t=this.commonGetNodeCheckList(e);1===e.layerIndex?this.handleHorizontalCheck(e,t):this.handleVerticalCheck(e,t)}handleTimeLine(e){let t=this.commonGetNodeCheckList(e);1===e.layerIndex?this.handleHorizontalCheck(e,t):this.handleVerticalCheck(e,t)}handleTimeLine2(e){let t=this.commonGetNodeCheckList(e);1===e.layerIndex?this.handleHorizontalCheck(e,t):"top"===e.dir&&2===e.layerIndex?this.handleVerticalCheck(e,t,!0):this.handleVerticalCheck(e,t)}handleFishbone(e){let t=e.parent?e.parent.children.filter(e=>e.layerIndex>1&&!this.checkIsInBeingDragNodeList(e)):[];1===e.layerIndex?this.handleHorizontalCheck(e,t):"top"===e.dir&&2===e.layerIndex?this.handleVerticalCheck(e,t,!0):this.handleVerticalCheck(e,t)}commonGetNodeCheckList(e){return e.parent?[...e.parent.children].filter(e=>!this.checkIsInBeingDragNodeList(e)):[]}getNodeRect(e){let{scaleX:t,scaleY:n,translateX:r,translateY:i}=this.drawTransform,{left:o,top:a,width:s,height:l}=e,c=o,u=a,h=a+l,d=o+s,f=(o+s)*t+r,p=(a+l)*n+i;return o=o*t+r,a=a*n+i,{width:s,height:l,left:o,top:a,right:f,bottom:p,originLeft:c,originTop:u,originBottom:h,originRight:d}}checkIsInBeingDragNodeList(e){return!!this.beingDragNodeList.find(t=>t.uid===e.uid||t.isAncestor(e))}}Gd.instanceName="drag";var Wd=Gd;class Vd{constructor({mindMap:e}){this.mindMap=e,this.rect=null,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.isSelecting=!1,this.cacheActiveList=[],this.bindEvent()}bindEvent(){this.checkInNodes=Object(v["cb"])(this.checkInNodes,300,this),this.mindMap.on("mousedown",e=>{if(this.mindMap.opt.readonly)return;let{useLeftKeySelectionRightKeyDrag:t}=this.mindMap.opt;if(!e.ctrlKey&&(t?1!==e.which:3!==e.which))return;e.preventDefault(),this.isMousedown=!0,this.cacheActiveList=[...this.mindMap.renderer.activeNodeList];let{x:n,y:r}=this.mindMap.toPos(e.clientX,e.clientY);this.mouseDownX=n,this.mouseDownY=r,this.createRect(n,r)}),this.mindMap.on("mousemove",e=>{if(this.mindMap.opt.readonly)return;if(!this.isMousedown)return;let{x:t,y:n}=this.mindMap.toPos(e.clientX,e.clientY);this.mouseMoveX=t,this.mouseMoveY=n,Math.abs(t-this.mouseDownX)<=10&&Math.abs(n-this.mouseDownY)<=10||(this.clearAutoMoveTimer(),this.onMove(e.clientX,e.clientY,()=>{this.isSelecting=!0,this.rect.plot([[this.mouseDownX,this.mouseDownY],[this.mouseMoveX,this.mouseDownY],[this.mouseMoveX,this.mouseMoveY],[this.mouseDownX,this.mouseMoveY]]),this.checkInNodes()},(e,t)=>{switch(e){case"left":this.mouseDownX+=t;break;case"top":this.mouseDownY+=t;break;case"right":this.mouseDownX-=t;break;case"bottom":this.mouseDownY-=t;break;default:break}}))}),this.onMouseup=this.onMouseup.bind(this),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_mouseup",this.onMouseup)}onMouseup(){this.mindMap.opt.readonly||this.isMousedown&&(this.checkTriggerNodeActiveEvent(),clearTimeout(this.autoMoveTimer),this.isMousedown=!1,this.cacheActiveList=[],this.rect&&this.rect.remove(),this.rect=null,setTimeout(()=>{this.isSelecting=!1},0))}checkTriggerNodeActiveEvent(){let e=this.cacheActiveList.length!==this.mindMap.renderer.activeNodeList.length,t=!1;if(!e)for(let n=0;nt.getData("uid")===e.getData("uid"))){t=!0;break}}(e||t)&&this.mindMap.renderer.emitNodeActiveEvent()}onMove(e,t,n=(()=>{}),r=(()=>{})){n();let i=this.mindMap.opt.selectTranslateStep,o=this.mindMap.opt.selectTranslateLimit,a=0;e<=this.mindMap.elRect.left+o&&(r("left",i),this.mindMap.view.translateX(i),a++),e>=this.mindMap.elRect.right-o&&(r("right",i),this.mindMap.view.translateX(-i),a++),t<=this.mindMap.elRect.top+o&&(r("top",i),this.mindMap.view.translateY(i),a++),t>=this.mindMap.elRect.bottom-o&&(r("bottom",i),this.mindMap.view.translateY(-i),a++),a>0&&this.startAutoMove(e,t,n,r)}startAutoMove(e,t,n,r){this.autoMoveTimer=setTimeout(()=>{this.onMove(e,t,n,r)},20)}clearAutoMoveTimer(){clearTimeout(this.autoMoveTimer)}createRect(e,t){this.rect&&this.rect.remove(),this.rect=this.mindMap.svg.polygon().stroke({color:"#0984e3"}).fill({color:"rgba(9,132,227,0.3)"}).plot([[e,t]])}checkInNodes(){let{scaleX:e,scaleY:t,translateX:n,translateY:r}=this.mindMap.draw.transform(),i=Math.min(this.mouseDownX,this.mouseMoveX),o=Math.min(this.mouseDownY,this.mouseMoveY),a=Math.max(this.mouseDownX,this.mouseMoveX),s=Math.max(this.mouseDownY,this.mouseMoveY);Object(v["d"])(this.mindMap.renderer.root,l=>{let{left:c,top:u,width:h,height:d}=l,f=(c+h)*e+n,p=(u+d)*t+r;if(c=c*e+n,u=u*t+r,Object(v["j"])(i,a,o,s,c,f,u,p)){if(l.getData("isActive"))return;this.mindMap.renderer.addNodeToActiveList(l)}else if(l.getData("isActive")){if(!l.getData("isActive"))return;this.mindMap.renderer.removeNodeFromActiveList(l)}})}hasSelectRange(){return this.isSelecting}}Vd.instanceName="select";var Yd=Vd,Zd=n("4f98"),Kd=n.n(Zd),Xd=n("a872"),Jd=n.n(Xd);n("5ba9");let Qd=!1,$d=["宋体, SimSun, Songti SC","微软雅黑, Microsoft YaHei","楷体, 楷体_GB2312, SimKai, STKaiti","黑体, SimHei, Heiti SC","隶书, SimLi","andale mono","arial, helvetica, sans-serif","arial black, avant garde","comic sans ms","impact, chicago","times new roman","sans-serif","serif"],ef=new Array(100).fill(0).map((e,t)=>t+"px");class tf{constructor({mindMap:e,pluginOpt:t}){this.mindMap=e,this.pluginOpt=t,this.textEditNode=null,this.showTextEdit=!1,this.quill=null,this.range=null,this.lastRange=null,this.pasteUseRange=null,this.node=null,this.isInserting=!1,this.styleEl=null,this.cacheEditingText="",this.lostStyle=!1,this.isCompositing=!1,this.initOpt(),this.extendQuill(),this.appendCss(),this.bindEvent(),this.mindMap.opt.data&&(this.mindMap.opt.data=this.handleSetData(this.mindMap.opt.data))}bindEvent(){this.onCompositionStart=this.onCompositionStart.bind(this),this.onCompositionEnd=this.onCompositionEnd.bind(this),window.addEventListener("compositionstart",this.onCompositionStart),window.addEventListener("compositionend",this.onCompositionEnd)}unbindEvent(){window.removeEventListener("compositionstart",this.onCompositionStart),window.removeEventListener("compositionend",this.onCompositionEnd)}appendCss(){let e="\n .ql-editor {\n overflow: hidden;\n padding: 0;\n height: auto;\n line-height: normal;\n -webkit-user-select: text;\n }\n \n .ql-container {\n height: auto;\n font-size: inherit;\n }\n\n .ql-container.ql-snow {\n border: none;\n }\n\n .smm-richtext-node-wrap p {\n font-family: auto;\n }\n\n .smm-richtext-node-edit-wrap p {\n font-family: auto;\n }\n ";this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.innerHTML=e,document.head.appendChild(this.styleEl)}initOpt(){this.pluginOpt.fontFamilyList&&Array.isArray(this.pluginOpt.fontFamilyList)&&($d=this.pluginOpt.fontFamilyList),this.pluginOpt.fontSizeList&&Array.isArray(this.pluginOpt.fontSizeList)&&(ef=this.pluginOpt.fontSizeList)}extendQuill(){if(Qd)return;Qd=!0;const e=Kd.a.import("attributors/class/font");e.whitelist=$d,Kd.a.register(e,!0);const t=Kd.a.import("attributors/style/font");t.whitelist=$d,Kd.a.register(t,!0);const n=Kd.a.import("attributors/class/size");n.whitelist=ef,Kd.a.register(n,!0);const r=Kd.a.import("attributors/style/size");r.whitelist=ef,Kd.a.register(r,!0)}showEditText({node:e,rect:t,isInserting:n,isFromKeyDown:r,isFromScale:i}){if(this.showTextEdit)return;const{richTextEditFakeInPlace:o,customInnerElsAppendTo:a,nodeTextEditZIndex:s,textAutoWrapWidth:l,selectTextOnEnterEditText:c}=this.mindMap.opt;this.node=e,this.isInserting=n,t||(t=e._textData.node.node.getBoundingClientRect()),i||this.mindMap.emit("before_show_text_edit"),this.mindMap.renderer.textEdit.registerTmpShortcut();let u=e._textData.node,h=u.attr("data-width"),d=u.attr("data-height"),f=t.width/h,p=t.height/d,m=6,g=4;if(o){let t=e.getPaddingVale();m=t.paddingX,g=t.paddingY}if(!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.classList.add("smm-richtext-node-edit-wrap"),this.textEditNode.style.cssText=`\n position:fixed; \n box-sizing: border-box; \n box-shadow: 0 0 20px rgba(0,0,0,.5);\n outline: none; \n word-break: \n break-all;padding: ${g}px ${m}px;\n `,this.textEditNode.addEventListener("click",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("mousedown",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("keydown",e=>{this.mindMap.renderer.textEdit.checkIsAutoEnterTextEditKey(e)&&e.stopPropagation()});const e=a||document.body;e.appendChild(this.textEditNode)}let b=e.style.merge("fillColor"),y=e.style.merge("color");if(this.textEditNode.style.marginLeft=`-${m*f}px`,this.textEditNode.style.marginTop=`-${g*p}px`,this.textEditNode.style.zIndex=s,this.textEditNode.style.backgroundColor="transparent"===b?Object(v["J"])(y)?Object(v["C"])(this.mindMap.themeConfig):"#fff":b,this.textEditNode.style.minWidth=h+2*m+"px",this.textEditNode.style.minHeight=d+"px",this.textEditNode.style.left=t.left+"px",this.textEditNode.style.top=t.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=l+2*m+"px",this.textEditNode.style.transform=`scale(${f}, ${p})`,this.textEditNode.style.transformOrigin="left top",o&&(this.textEditNode.style.borderRadius=(e.style.merge("borderRadius")||5)+"px","roundedRectangle"==e.style.merge("shape")&&(this.textEditNode.style.borderRadius=(e.height||50)+"px")),e.getData("richText"))this.textEditNode.innerHTML=this.cacheEditingText||e.getData("text");else{let t="";Object(v["I"])(e.getData("text"))||(t=String(e.getData("text")).split(/\n/gim).join("
"));let n=`

${t}

`;this.textEditNode.innerHTML=this.cacheEditingText||n}this.initQuillEditor(),document.querySelector(".ql-editor").style.minHeight=d+"px",this.showTextEdit=!0,this.focus(n||c&&!r?0:null),e.getData("richText")||this.setTextStyleIfNotRichText(e),this.cacheEditingText=""}setTextStyleIfNotRichText(e){let t={font:e.style.merge("fontFamily"),color:e.style.merge("color"),italic:"italic"===e.style.merge("fontStyle"),bold:"bold"===e.style.merge("fontWeight"),size:e.style.merge("fontSize")+"px",underline:"underline"===e.style.merge("textDecoration"),strike:"line-through"===e.style.merge("textDecoration")};this.pureFormatAllText(t)}getEditText(){let e=this.quill.container.firstChild.innerHTML;return e.replace(/


<\/p>$/,"")}hideEditText(e){if(!this.showTextEdit)return;let t=this.getEditText(),n=e&&e.length>0?e:this.mindMap.renderer.activeNodeList;n.forEach(e=>{this.mindMap.execCommand("SET_NODE_TEXT",e,t,!0),e.isGeneralization&&e.generalizationBelongNode.updateGeneralization(),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,n),this.textEditNode.style.display="none",this.showTextEdit=!1,this.mindMap.emit("rich_text_selection_change",!1),this.node=null,this.isInserting=!1}initQuillEditor(){this.quill=new Kd.a(this.textEditNode,{modules:{toolbar:!1,keyboard:{bindings:{enter:{key:13,handler:function(){}},tab:{key:9,handler:function(){}}}}},theme:"snow"}),this.quill.on("selection-change",e=>{if(!this.isInserting&&(this.lastRange=this.range,this.range=null,e)){this.pasteUseRange=e;let t=this.quill.getBounds(e.index,e.length),n=this.textEditNode.getBoundingClientRect(),r={left:t.left+n.left,top:t.top+n.top,right:t.right+n.left,bottom:t.bottom+n.top,width:t.width},i=this.quill.getFormat(e.index,e.length),o=!1;0==e.length?o=!1:(this.range=e,o=!0),this.mindMap.emit("rich_text_selection_change",o,r,i)}}),this.quill.on("text-change",()=>{let e=this.quill.getContents(),t=e.ops.length;t<=0||1===t&&"\n"===e.ops[0].insert?(this.lostStyle=!0,this.syncFormatToNodeConfig(null,!0)):this.lostStyle&&!this.isCompositing&&(this.setTextStyleIfNotRichText(this.node),this.lostStyle=!1)}),this.quill.clipboard.addMatcher(Node.TEXT_NODE,e=>{let t=this.getPasteTextStyle();return(new Jd.a).insert(e.data,t)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(e,t)=>{let n=[],r=this.getPasteTextStyle();return t.ops.forEach(e=>{e.insert&&"string"===typeof e.insert&&"\n"!==e.insert&&n.push({attributes:{...r},insert:e.insert})}),t.ops=n,t})}getPasteTextStyle(){return this.pasteUseRange?this.quill.getFormat(this.pasteUseRange.index,this.pasteUseRange.length):{}}onCompositionStart(){this.showTextEdit&&(this.isCompositing=!0)}onCompositionEnd(){this.showTextEdit&&(this.isCompositing=!1,this.lostStyle&&this.setTextStyleIfNotRichText(this.node))}selectAll(){this.quill.setSelection(0,this.quill.getLength())}focus(e){let t=this.quill.getLength();this.quill.setSelection("number"===typeof e?e:t,t)}formatText(e={},t=!1){if(!this.range&&!this.lastRange)return;this.syncFormatToNodeConfig(e,t);let n=!this.range,r=n?this.lastRange:this.range;t?this.quill.removeFormat(r.index,r.length):this.quill.formatText(r.index,r.length,e),n&&this.quill.setSelection(this.lastRange.index,this.lastRange.length)}removeFormat(){this.formatText({},!0)}formatRangeText(e,t={}){e&&(this.syncFormatToNodeConfig(t),this.quill.formatText(e.index,e.length,t))}formatAllText(e={}){this.syncFormatToNodeConfig(e),this.pureFormatAllText(e)}pureFormatAllText(e={}){this.quill.formatText(0,this.quill.getLength(),e)}syncFormatToNodeConfig(e,t){if(this.node)if(t)["fontFamily","fontSize","fontWeight","fontStyle","textDecoration","color"].forEach(e=>{delete this.node.nodeData.data[e]});else{let t=this.richTextStyleToNormalStyle(e);this.mindMap.execCommand("SET_NODE_DATA",this.node,t)}}normalStyleToRichTextStyle(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];switch(n){case"fontFamily":t.font=r;break;case"fontSize":t.size=r+"px";break;case"fontWeight":t.bold="bold"===r;break;case"fontStyle":t.italic="italic"===r;break;case"textDecoration":t.underline="underline"===r,t.strike="line-through"===r;break;case"color":t.color=r;break;default:break}}),t}richTextStyleToNormalStyle(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];switch(n){case"font":t.fontFamily=r;break;case"size":t.fontSize=parseFloat(r);break;case"bold":t.fontWeight=r?"bold":"normal";break;case"italic":t.fontStyle=r?"italic":"normal";break;case"underline":t.textDecoration=r?"underline":"none";break;case"strike":t.textDecoration=r?"line-through":"none";break;case"color":t.color=r;break;default:break}}),t}setNotActiveNodeStyle(e,t){const n=this.normalStyleToRichTextStyle(t);Object.keys(n).length>0&&(this.showEditText({node:e}),this.formatAllText(n),this.hideEditText([e]))}async handleExportPng(e){let t=document.createElement("div");t.style.position="absolute",t.style.left="-9999999px",t.appendChild(e),this.mindMap.el.appendChild(t);let n=e=>{e.style.margin=0,e.style.padding=0,e.hasChildNodes()&&Array.from(e.children).forEach(e=>{n(e)})};n(e);const r=await domtoimage.toPng(t);return this.mindMap.el.removeChild(t),r}transformAllNodesToNormalNode(){Object(v["db"])(this.mindMap.renderer.renderTree,null,e=>{e.data.richText&&(e.data.richText=!1,e.data.text=Object(v["z"])(e.data.text))},null,!0,0,0),this.mindMap.command.clearHistory(),this.mindMap.command.addHistory(),this.mindMap.render(null,oo["a"].TRANSFORM_TO_NORMAL_NODE)}handleSetData(e){let t=e=>{e.data&&!e.data.richText&&(e.data.richText=!0,e.data.resetRichText=!0),e.children&&e.children.length>0&&Array.from(e.children).forEach(e=>{t(e)})};return t(e),e}beforePluginRemove(){this.transformAllNodesToNormalNode(),document.head.removeChild(this.styleEl),this.unbindEvent()}beforePluginDestroy(){document.head.removeChild(this.styleEl),this.unbindEvent()}}tf.instanceName="richText";var nf=tf,rf=n("0f9c");const of=(e,t)=>e.getData("associativeLineTargets").findIndex(e=>e===t.getData("uid")),af=(e,t,n,r)=>{let i=e+(n-e)/2,o=t,a=i,s=r;return Math.abs(e-n)<=5&&(i=e+(r-t)/2,a=i),[{x:i,y:o},{x:a,y:s}]},sf=(e,t,n,r)=>`M ${e.x},${e.y} C ${n.x},${n.y} ${r.x},${r.y} ${t.x},${t.y}`,lf=e=>{let{left:t,top:n,width:r,height:i}=e;return{right:t+r,bottom:n+i,left:t,top:n}},cf=(e,t,n,r)=>{let i=af(e,t,n,r);return sf({x:e,y:t},{x:n,y:r},i[0],i[1])},uf=(e,t)=>{const{left:n,top:r,translateLeft:i,translateTop:o,width:a,height:s}=e,l=t.clientX,c=t.clientY,u=i+a/2,h=o+s/2,d=n+a/2,f=r+s/2,p=Math.atan(s/a),m=l-u,g=h-c,v=Math.atan2(g,m);let b=n+a,y=r+s;if(v=-p){const e=v*(a/2);return(v=0||v>=-p&&v<0)&&(y=f-e),{x:b,y:y,dir:"right",range:e}}if(v>=p&&v=p){const t=s/2/v;e=-t,b=d+t}else if(v>=Math.PI/2-p&&v=p-Math.PI){let e=0;if(v>=p-Math.PI/2&&v<-p){const t=s/2/v;e=t,b=d-t}else if(v=p-Math.PI){const t=(u-l)/(h-c),n=s/2*t;e=-n,b=d+n}return{x:b,y:y,dir:"bottom",range:e}}b=n;const w=(h-c)/(u-l),x=w*(a/2);return(v>=-Math.PI&&v=Math.PI-p)&&(y=f-x),{x:b,y:y,dir:"left",range:x}},hf=(e,t="right",n=0,r=null)=>{let{left:i,top:o,width:a,height:s}=e;if(r)return uf(e,r);switch(t){case"left":return{x:i,y:o+s/2-n};case"right":return{x:i+a,y:o+s/2-n};case"top":return{x:i+a/2-n,y:o};case"bottom":return{x:i+a/2-n,y:o+s};default:break}},df=(e,t)=>{let n=lf(e),r=(n.right+n.left)/2,i=(n.bottom+n.top)/2,o=lf(t),a=(o.right+o.left)/2,s=(o.bottom+o.top)/2,l=a-r,c=s-i;if(0===l&&0===c)return[];let u="",h="";return l<=0&&l<=c&&l<=-c?(u="left",h="right"):l>0&&l>=-c&&l>=c?(u="right",h="left"):c<=0&&c0&&-cl&&(u="right",h="right"),[hf(e,u),hf(t,h)]},ff=(e,t,n,r)=>{let i=of(n,r),o=[],a=n.getData("associativeLineTargetControlOffsets");if(a&&a[i]){let n=a[i];o=[{x:e.x+n[0].x,y:e.y+n[0].y},{x:t.x+n[1].x,y:t.y+n[1].y}]}else o=af(e.x,e.y,t.x,t.y);return{path:sf(e,t,o[0],o[1]),controlPoints:o}},pf=(e,t)=>{let n=af(e.x,e.y,t.x,t.y);return[{x:n[0].x-e.x,y:n[0].y-e.y},{x:n[1].x-t.x,y:n[1].y-t.y}]};function mf(){let{associativeLineActiveColor:e}=this.mindMap.themeConfig;this.controlLine1=this.associativeLineDraw.line().stroke({color:e,width:2}),this.controlLine2=this.associativeLineDraw.line().stroke({color:e,width:2}),this.controlPoint1=this.createOneControlNode("controlPoint1"),this.controlPoint2=this.createOneControlNode("controlPoint2")}function gf(e){let{associativeLineActiveColor:t}=this.mindMap.themeConfig;return this.associativeLineDraw.circle(this.controlPointDiameter).stroke({color:t}).fill({color:"#fff"}).click(e=>{e.stopPropagation()}).mousedown(t=>{this.onControlPointMousedown(t,e)})}function vf(e,t){e.stopPropagation(),this.isControlPointMousedown=!0,this.mousedownControlPointKey=t}function bf(e){if(!this.isControlPointMousedown||!this.mousedownControlPointKey||!this[this.mousedownControlPointKey])return;e.stopPropagation(),e.preventDefault();let t=this.controlPointDiameter/2,{x:n,y:r}=this.getTransformedEventPos(e);this.controlPointMousemoveState.pos={x:n,y:r},this[this.mousedownControlPointKey].x(n-t).y(r-t);let[,,,i,o]=this.activeLine,a=of(i,o),{associativeLinePoint:s,associativeLineTargetControlOffsets:l}=i.getData();s=s||[];const c=this.getNodePos(i),u=this.getNodePos(o);let[h,d]=this.updateAllLinesPos(i,o,s[a]);this.controlPointMousemoveState.startPoint=h,this.controlPointMousemoveState.endPoint=d,this.controlPointMousemoveState.targetIndex=a;let f=[];f=l?l[a]:pf(h,d);let p=null,m=null;const{x:g,y:v}=this.mindMap.toPos(e.clientX,e.clientY),b={clientX:g,clientY:v};"controlPoint1"===this.mousedownControlPointKey?(h=hf(c,"",0,b),p={x:n,y:r},m={x:d.x+f[1].x,y:d.y+f[1].y},h&&(this.controlPointMousemoveState.startPoint=h,this.controlLine1.plot(h.x,h.y,p.x,p.y))):(d=hf(u,"",0,b),p={x:h.x+f[0].x,y:h.y+f[0].y},m={x:n,y:r},d&&(this.controlPointMousemoveState.endPoint=d,this.controlLine2.plot(d.x,d.y,m.x,m.y))),this.updataAassociativeLine(h,d,p,m,this.activeLine)}function yf(e,t,n,r,i){const[o,a,s]=i,l=sf(e,t,n,r);o.plot(l),a.plot(l),this.updateTextPos(o,s),this.updateTextEditBoxPos(s)}function wf(e){if(!this.isControlPointMousedown)return;e.stopPropagation(),e.preventDefault();let{pos:t,startPoint:n,endPoint:r,targetIndex:i}=this.controlPointMousemoveState,[,,,o]=this.activeLine,a=[],{associativeLinePoint:s,associativeLineTargetControlOffsets:l}=o.getData();s||(s=[]),s[i]=s[i]||{startPoint:n,endPoint:r},l?a=l:a[i]=pf(n,r);let c=null,u=null;"controlPoint1"===this.mousedownControlPointKey?(c={x:t.x-n.x,y:t.y-n.y},u=a[i][1],s[i].startPoint=n):(c=a[i][0],u={x:t.x-r.x,y:t.y-r.y},s[i].endPoint=r),a[i]=[c,u],this.mindMap.execCommand("SET_NODE_DATA",o,{associativeLineTargetControlOffsets:a,associativeLinePoint:s}),setTimeout(()=>{this.resetControlPoint()},0)}function xf(){this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""}}function kf(e,t,n,r){this.controlLine1||this.createControlNodes();let i=this.controlPointDiameter/2;this.controlLine1.plot(e.x,e.y,n.x,n.y),this.controlLine2.plot(t.x,t.y,r.x,r.y),this.controlPoint1.x(n.x-i).y(n.y-i),this.controlPoint2.x(r.x-i).y(r.y-i)}function Af(){this.controlLine1&&([this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(e=>{e.remove()}),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null)}function Cf(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(e=>{e.hide()})}function Ef(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(e=>{e.show()})}var Sf={createControlNodes:mf,createOneControlNode:gf,onControlPointMousedown:vf,onControlPointMousemove:bf,onControlPointMouseup:wf,resetControlPoint:xf,renderControls:kf,removeControls:Af,hideControls:Cf,showControls:Ef,updataAassociativeLine:yf};function Tf(e){let t=this.associativeLineDraw.group();const n=()=>{this.activeLine&&this.activeLine[3]===e.node&&this.activeLine[4]===e.toNode||this.setActiveLine({...e,text:t})};return t.click(e=>{e.stopPropagation(),n()}),t.on("dblclick",e=>{e.stopPropagation(),n(),this.activeLine&&this.showEditTextBox(t)}),t}function Nf(e){if(this.mindMap.emit("before_show_text_edit"),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("click",e=>{e.stopPropagation()});const e=this.mindMap.opt.customInnerElsAppendTo||document.body;e.appendChild(this.textEditNode)}let{associativeLineTextFontSize:t,associativeLineTextFontFamily:n,associativeLineTextLineHeight:r}=this.mindMap.themeConfig,{defaultAssociativeLineText:i,nodeTextEditZIndex:o}=this.mindMap.opt,a=this.mindMap.view.scale,[,,,s,l]=this.activeLine,c=this.getText(s,l),u=(c||i).split(/\n/gim);this.textEditNode.style.fontFamily=n,this.textEditNode.style.fontSize=t*a+"px",this.textEditNode.style.lineHeight=u.length>1?r:"normal",this.textEditNode.style.zIndex=o,this.textEditNode.innerHTML=u.join("
"),this.textEditNode.style.display="block",this.updateTextEditBoxPos(e),this.showTextEdit=!0,""===c||c===i?Object(v["Y"])(this.textEditNode):Object(v["q"])(this.textEditNode)}function Mf(){this.hideEditTextBox()}function Lf(e){let t=e.node.getBoundingClientRect();this.textEditNode&&(this.textEditNode.style.minWidth=t.width+10+"px",this.textEditNode.style.minHeight=t.height+6+"px",this.textEditNode.style.left=t.left+"px",this.textEditNode.style.top=t.top+"px")}function Of(){if(!this.showTextEdit)return;let[e,,t,n,r]=this.activeLine,i=Object(v["y"])(this.textEditNode.innerHTML),o=i===this.mindMap.opt.defaultAssociativeLineText;i=o?"":i,this.mindMap.execCommand("SET_NODE_DATA",n,{associativeLineText:{...n.getData("associativeLineText")||{},[r.getData("uid")]:i}}),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.showTextEdit=!1,this.renderText(i,e,t),this.mindMap.emit("hide_text_edit")}function Df(e,t){let n=e.getData("associativeLineText");return n&&n[t.getData("uid")]||""}function Pf(e,t,n){if(!e)return;let{associativeLineTextFontSize:r,associativeLineTextLineHeight:i}=this.mindMap.themeConfig;n.clear();let o=e.split(/\n/gim);o.forEach((e,t)=>{let o=(new Cc).text(e);o.y(r*i*t),this.styleText(o),n.add(o)}),Rf(t,n)}function If(e){let{associativeLineTextColor:t,associativeLineTextFontSize:n,associativeLineTextFontFamily:r}=this.mindMap.themeConfig;e.fill({color:t}).css({"font-family":r,"font-size":n})}function Rf(e,t){let n=e.length(),r=e.pointAt(n/2),{width:i,height:o}=t.bbox();t.x(r.x-i/2),t.y(r.y-o/2)}var Ff={getText:Df,createText:Tf,styleText:If,onScale:Mf,showEditTextBox:Nf,hideEditTextBox:Of,updateTextEditBoxPos:Lf,renderText:Pf,updateTextPos:Rf};class zf{constructor(e={}){this.mindMap=e.mindMap,this.associativeLineDraw=this.mindMap.associativeLineDraw,this.lineList=[],this.activeLine=null,this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine=null,this.overlapNode=null,this.isNodeDragging=!1,this.markerPath=null,this.marker=this.createMarker(),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null,this.controlPointDiameter=10,this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""},this.checkOverlapNode=Object(v["cb"])(this.checkOverlapNode,100,this),Object.keys(Sf).forEach(e=>{this[e]=Sf[e].bind(this)}),Object.keys(Ff).forEach(e=>{this[e]=Ff[e].bind(this)}),this.bindEvent()}bindEvent(){this.renderAllLines=this.renderAllLines.bind(this),this.mindMap.on("node_tree_render_end",this.renderAllLines),this.mindMap.on("data_change",this.renderAllLines),this.mindMap.on("draw_click",()=>{this.isControlPointMousedown||this.clearActiveLine()}),this.mindMap.on("node_click",e=>{this.isCreatingLine?this.completeCreateLine(e):this.clearActiveLine()}),this.mindMap.keyCommand.addShortcut("Del|Backspace",this.removeLine.bind(this)),this.mindMap.command.add("ADD_ASSOCIATIVE_LINE",this.addLine.bind(this)),this.mindMap.on("mousemove",this.onMousemove.bind(this)),this.mindMap.on("node_dragging",this.onNodeDragging.bind(this)),this.mindMap.on("node_dragend",this.onNodeDragend.bind(this)),this.mindMap.on("mouseup",this.onControlPointMouseup.bind(this)),this.mindMap.on("scale",this.onScale)}createMarker(){return this.associativeLineDraw.marker(20,20,e=>{e.ref(12,5),e.size(10,10),e.attr("orient","auto-start-reverse"),this.markerPath=e.path("M0,0 L2,5 L0,10 L10,5 Z")})}updateAllLinesPos(e,t,n){n=n||{};let[r,i]=df(e,t),o=0,a="",s=0,l="";return n.startPoint&&(o=n.startPoint.range||0,a=n.startPoint.dir||"right",r=hf(e,a,o)),n.endPoint&&(s=n.endPoint.range||0,l=n.endPoint.dir||"right",i=hf(t,l,s)),[r,i]}renderAllLines(){this.removeAllLines(),this.removeControls(),this.clearActiveLine();let e=this.mindMap.renderer.root;if(!e)return;let t=new Map,n=new Map;Object(v["db"])(e,null,e=>{if(!e)return;let r=e.getData();r.associativeLineTargets&&r.associativeLineTargets.length>0&&n.set(e,r.associativeLineTargets),r.uid&&t.set(r.uid,e)},()=>{},!0,0),n.forEach((e,n)=>{e.forEach((e,r)=>{let i=t.get(e);if(!n||!i)return;const o=(n.getData("associativeLinePoint")||[])[r],[a,s]=this.updateAllLinesPos(n,i,o);this.drawLine(a,s,n,i)})})}drawLine(e,t,n,r){let{associativeLineWidth:i,associativeLineColor:o,associativeLineActiveWidth:a,associativeLineActiveColor:s}=this.mindMap.themeConfig;this.markerPath.stroke({color:o}).fill({color:o});let{path:l,controlPoints:c}=ff(e,t,n,r),u=this.associativeLineDraw.path();u.stroke({width:i,color:o,dasharray:[6,4]}).fill({color:"none"}),u.plot(l),u.marker("end",this.marker);let h=this.associativeLineDraw.path();h.stroke({width:a,color:"transparent"}).fill({color:"none"}),h.plot(l);let d=this.createText({path:u,clickPath:h,node:n,toNode:r,startPoint:e,endPoint:t,controlPoints:c});h.click(i=>{i.stopPropagation(),this.setActiveLine({path:u,clickPath:h,text:d,node:n,toNode:r,startPoint:e,endPoint:t,controlPoints:c})}),h.dblclick(()=>{this.activeLine&&this.showEditTextBox(d)}),this.renderText(this.getText(n,r),u,d),this.lineList.push([u,h,d,n,r])}setActiveLine({path:e,clickPath:t,text:n,node:r,toNode:i,startPoint:o,endPoint:a,controlPoints:s}){let{associativeLineActiveColor:l}=this.mindMap.themeConfig;this.mindMap.execCommand("CLEAR_ACTIVE_NODE"),this.clearActiveLine(),this.activeLine=[e,t,n,r,i],t.stroke({color:l}),this.getText(r,i)||this.renderText(this.mindMap.opt.defaultAssociativeLineText,e,n),this.renderControls(o,a,s[0],s[1]),this.mindMap.emit("associative_line_click",e,t,r,i),this.front()}removeAllLines(){this.lineList.forEach(e=>{e[0].remove(),e[1].remove(),e[2].remove()}),this.lineList=[]}createLineFromActiveNode(){if(this.mindMap.renderer.activeNodeList.length<=0)return;let e=this.mindMap.renderer.activeNodeList[0];this.createLine(e)}createLine(e){let{associativeLineWidth:t,associativeLineColor:n}=this.mindMap.themeConfig;!this.isCreatingLine&&e&&(this.front(),this.isCreatingLine=!0,this.creatingStartNode=e,this.creatingLine=this.associativeLineDraw.path(),this.creatingLine.stroke({width:t,color:n,dasharray:[6,4]}).fill({color:"none"}),this.creatingLine.marker("end",this.marker))}onMousemove(e){this.onControlPointMousemove(e),this.updateCreatingLine(e)}updateCreatingLine(e){if(!this.isCreatingLine)return;let{x:t,y:n}=this.getTransformedEventPos(e),r=hf(this.creatingStartNode),i=t>r.x?-10:10,o=cf(r.x,r.y,t+i,n);this.creatingLine.plot(o),this.checkOverlapNode(t,n)}getTransformedEventPos(e){let{x:t,y:n}=this.mindMap.toPos(e.clientX,e.clientY),{scaleX:r,scaleY:i,translateX:o,translateY:a}=this.mindMap.draw.transform();return{x:(t-o)/r,y:(n-a)/i}}getNodePos(e){const{scaleX:t,scaleY:n,translateX:r,translateY:i}=this.mindMap.draw.transform(),{left:o,top:a,width:s,height:l}=e;let c=o*t+r,u=a*n+i;return{left:o,top:a,translateLeft:c,translateTop:u,width:s,height:l}}checkOverlapNode(e,t){this.overlapNode=null,Object(v["d"])(this.mindMap.renderer.root,n=>{if(n.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",n,!1),n.uid===this.creatingStartNode.uid||this.overlapNode)return;let{left:r,top:i,width:o,height:a}=n,s=r+o,l=i+a;e>=r&&e<=s&&t>=i&&t<=l&&(this.overlapNode=n)}),this.overlapNode&&!this.overlapNode.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0)}completeCreateLine(e){this.creatingStartNode.uid!==e.uid&&(this.addLine(this.creatingStartNode,e),this.overlapNode&&this.overlapNode.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!1),this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine.remove(),this.creatingLine=null,this.overlapNode=null,this.back())}addLine(e,t){if(!e||!t)return;let n=t.getData("uid");n||(n=Object(rf["a"])(),this.mindMap.execCommand("SET_NODE_DATA",t,{uid:n}));let r=e.getData("associativeLineTargets")||[];const i=r.some(e=>e===n);if(i)return;r.push(n);let[o,a]=df(e,t),s=af(o.x,o.y,a.x,a.y),l=e.getData("associativeLineTargetControlOffsets")||[];l[r.length-1]=[{x:s[0].x-o.x,y:s[0].y-o.y},{x:s[1].x-a.x,y:s[1].y-a.y}];let c=e.getData("associativeLinePoint")||[];c[r.length-1]={startPoint:o,endPoint:a},this.mindMap.execCommand("SET_NODE_DATA",e,{associativeLineTargets:r,associativeLineTargetControlOffsets:l,associativeLinePoint:c})}removeLine(){if(!this.activeLine)return;let[,,,e,t]=this.activeLine;this.removeControls();let{associativeLineTargets:n,associativeLinePoint:r,associativeLineTargetControlOffsets:i,associativeLineText:o}=e.getData();r=r||[];let a=of(e,t),s={};o&&Object.keys(o).forEach(e=>{e!==t.getData("uid")&&(s[e]=o[e])}),this.mindMap.execCommand("SET_NODE_DATA",e,{associativeLineTargets:n.filter((e,t)=>t!==a),associativeLinePoint:r.filter((e,t)=>t!==a),associativeLineTargetControlOffsets:i?i.filter((e,t)=>t!==a):[],associativeLineText:s})}clearActiveLine(){if(this.activeLine){let[,e,t,n,r]=this.activeLine;e.stroke({color:"transparent"}),this.hideEditTextBox(),this.getText(n,r)||t.clear(),this.activeLine=null,this.removeControls(),this.back()}}onNodeDragging(){this.isNodeDragging||(this.isNodeDragging=!0,this.lineList.forEach(e=>{e[0].hide(),e[1].hide(),e[2].hide()}),this.hideControls())}onNodeDragend(){this.isNodeDragging&&(this.lineList.forEach(e=>{e[0].show(),e[1].show(),e[2].show()}),this.showControls(),this.isNodeDragging=!1)}front(){this.mindMap.opt.associativeLineIsAlwaysAboveNode||this.associativeLineDraw.front()}back(){this.mindMap.opt.associativeLineIsAlwaysAboveNode||(this.associativeLineDraw.back(),this.associativeLineDraw.forward())}}zf.instanceName="associativeLine";var Bf=zf;class _f{constructor({mindMap:e}){this.mindMap=e,this.touchesNum=0,this.singleTouchstartEvent=null,this.clickNum=0,this.touchStartScaleView=null,this.bindEvent()}bindEvent(){this.onTouchstart=this.onTouchstart.bind(this),this.onTouchmove=this.onTouchmove.bind(this),this.onTouchcancel=this.onTouchcancel.bind(this),this.onTouchend=this.onTouchend.bind(this),window.addEventListener("touchstart",this.onTouchstart),window.addEventListener("touchmove",this.onTouchmove),window.addEventListener("touchcancel",this.onTouchcancel),window.addEventListener("touchend",this.onTouchend)}unBindEvent(){window.removeEventListener("touchstart",this.onTouchstart),window.removeEventListener("touchmove",this.onTouchmove),window.removeEventListener("touchcancel",this.onTouchcancel),window.removeEventListener("touchend",this.onTouchend)}onTouchstart(e){if(this.touchesNum=e.touches.length,this.touchStartScaleView=null,1===this.touchesNum){let t=e.touches[0];this.singleTouchstartEvent=t,this.dispatchMouseEvent("mousedown",t.target,t)}}onTouchmove(e){let t=e.touches.length;if(1===t){let t=e.touches[0];this.dispatchMouseEvent("mousemove",t.target,t)}else if(2===t){if(this.mindMap.opt.disableTouchZoom)return;let t=e.touches[0],n=e.touches[1],r=t.clientX-n.clientX,i=t.clientY-n.clientY,o=Math.sqrt(Math.pow(r,2)+Math.pow(i,2)),{x:a,y:s}=this.mindMap.toPos(t.clientX,t.clientY),{x:l,y:c}=this.mindMap.toPos(n.clientX,n.clientY),u=(a+l)/2,h=(s+c)/2;const d=this.mindMap.view;if(!this.touchStartScaleView)return void(this.touchStartScaleView={distance:o,scale:d.scale,x:d.x,y:d.y,cx:u,cy:h});const f=this.touchStartScaleView;let p=f.scale*(o/f.distance);Math.abs(o-f.distance)<=10&&(p=f.scale);const m=1-p/f.scale;d.scale=p<.1?.1:p,d.x=f.x+(u-f.x)*m+(u-f.cx)*p,d.y=f.y+(h-f.y)*m+(h-f.cy)*p,d.transform(),this.mindMap.emit("scale",p)}}onTouchcancel(e){}onTouchend(e){if(this.dispatchMouseEvent("mouseup",e.target),1===this.touchesNum){this.clickNum++,setTimeout(()=>{this.clickNum=0},300);let e=this.singleTouchstartEvent;this.clickNum>1&&(this.clickNum=0,this.dispatchMouseEvent("dblclick",e.target,e))}this.touchesNum=0,this.singleTouchstartEvent=null,this.touchStartScaleView=null}dispatchMouseEvent(e,t,n){let r={};n&&(r={screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,which:1});let i=new MouseEvent(e,{view:window,bubbles:!0,cancelable:!0,...r});t.dispatchEvent(i)}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}_f.instanceName="touchEvent";var jf=_f;class Hf{constructor({mindMap:e}){this.mindMap=e,this.resizeBtnSize=26,this.handleEl=null,this.isShowHandleEl=!1,this.node=null,this.img=null,this.rect=null,this.isMousedown=!1,this.currentImgWidth=0,this.currentImgHeight=0,this.isAdjusted=!1,this.bindEvent()}bindEvent(){this.onNodeImgMouseleave=this.onNodeImgMouseleave.bind(this),this.onNodeImgMousemove=this.onNodeImgMousemove.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.onRenderEnd=this.onRenderEnd.bind(this),this.mindMap.on("node_img_mouseleave",this.onNodeImgMouseleave),this.mindMap.on("node_img_mousemove",this.onNodeImgMousemove),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_mouseup",this.onMouseup),this.mindMap.on("node_tree_render_end",this.onRenderEnd)}unBindEvent(){this.mindMap.off("node_img_mouseleave",this.onNodeImgMouseleave),this.mindMap.off("node_img_mousemove",this.onNodeImgMousemove),this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("mouseup",this.onMouseup),this.mindMap.off("node_mouseup",this.onMouseup),this.mindMap.off("node_tree_render_end",this.onRenderEnd)}onNodeImgMousemove(e,t){this.isMousedown||this.isAdjusted||this.mindMap.opt.readonly||this.node&&this.node.uid===e.uid&&this.isShowHandleEl||(this.node=e,this.img=t,this.rect=this.img.rbox(),this.showHandleEl())}onNodeImgMouseleave(){this.isMousedown||this.hideHandleEl()}hideNodeImage(){this.img&&this.img.hide()}showNodeImage(){this.img&&this.img.show()}showHandleEl(){this.handleEl||this.createResizeBtnEl(),this.setHandleElRect(),this.handleEl.style.display="block",this.isShowHandleEl=!0}hideHandleEl(){this.isShowHandleEl&&(this.isShowHandleEl=!1,this.handleEl.style.display="none",this.handleEl.style.backgroundImage="",this.handleEl.style.width=0,this.handleEl.style.height=0,this.handleEl.style.left=0,this.handleEl.style.top=0)}setHandleElRect(){let{width:e,height:t,x:n,y:r}=this.rect;this.handleEl.style.left=n+"px",this.handleEl.style.top=r+"px",this.currentImgWidth=e,this.currentImgHeight=t,this.updateHandleElSize()}updateHandleElSize(){this.handleEl.style.width=this.currentImgWidth+"px",this.handleEl.style.height=this.currentImgHeight+"px"}createResizeBtnEl(){this.handleEl=document.createElement("div"),this.handleEl.style.cssText="\n pointer-events: none;\n position: fixed;\n\t display:none;\n background-size: cover;\n ",this.handleEl.className="node-img-handle";const e=document.createElement("div");e.innerHTML=mu.imgAdjust,e.style.cssText=`\n position: absolute;\n right: 0;\n bottom: 0;\n pointer-events: auto;\n background-color: rgba(0, 0, 0, 0.3);\n width: ${this.resizeBtnSize}px;\n height: ${this.resizeBtnSize}px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: nwse-resize;\n `,e.className="node-image-resize",e.addEventListener("mouseenter",()=>{this.showHandleEl()}),e.addEventListener("mouseleave",()=>{this.isMousedown||this.hideHandleEl()}),e.addEventListener("mousedown",e=>{e.stopPropagation(),this.onMousedown(e)}),e.addEventListener("mouseup",e=>{setTimeout(()=>{this.hideHandleEl(),this.isAdjusted=!1},0)}),e.addEventListener("click",e=>{e.stopPropagation()}),this.handleEl.appendChild(e);const t=document.createElement("div");this.handleEl.prepend(t),t.className="node-image-remove",t.innerHTML=mu.remove,t.style.cssText=`\n position: absolute;\n right: 0;top:0;color:#fff;\n pointer-events: auto;\n background-color: rgba(0, 0, 0, 0.3);\n width: ${this.resizeBtnSize}px;\n height: ${this.resizeBtnSize}px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n `,t.addEventListener("mouseenter",e=>{this.showHandleEl()}),t.addEventListener("mouseleave",e=>{this.isMousedown||this.hideHandleEl()}),t.addEventListener("click",e=>{this.mindMap.execCommand("SET_NODE_IMAGE",this.node,{url:null})});const n=this.mindMap.opt.customInnerElsAppendTo||document.body;n.appendChild(this.handleEl)}onMousedown(){this.isMousedown=!0,this.hideNodeImage(),this.handleEl.style.backgroundImage=`url(${this.node.getData("image")})`}onMousemove(e){if(!this.isMousedown)return;e.preventDefault();let{width:t,height:n}=this.node.getData("imageSize"),r=e.clientX-this.rect.x,i=e.clientY-this.rect.y;if(r<=0||i<=0)return;let[o,a]=Object(v["X"])(t,n,r,i);this.currentImgWidth=o,this.currentImgHeight=a,this.updateHandleElSize()}onMouseup(){if(!this.isMousedown)return;this.showNodeImage(),this.hideHandleEl();let{image:e,imageTitle:t}=this.node.getData(),{scaleX:n,scaleY:r}=this.mindMap.draw.transform();this.mindMap.execCommand("SET_NODE_IMAGE",this.node,{url:e,title:t,width:this.currentImgWidth/n,height:this.currentImgHeight/r,custom:!0}),this.isAdjusted=!0,this.isMousedown=!1}onRenderEnd(){this.isAdjusted?this.isAdjusted=!1:this.hideHandleEl()}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Hf.instanceName="nodeImgAdjust";var Uf=Hf;n("532c");class qf{constructor({mindMap:e}){this.mindMap=e,this.isSearching=!1,this.searchText="",this.matchNodeList=[],this.currentIndex=-1,this.notResetSearchText=!1,this.isJumpNext=!1,this.onDataChange=this.onDataChange.bind(this),this.mindMap.on("data_change",this.onDataChange)}onDataChange(){if(this.isJumpNext)return this.isJumpNext=!1,void this.search(this.searchText);this.notResetSearchText?this.notResetSearchText=!1:this.searchText=""}search(e,t=(()=>{})){if(Object(v["I"])(e))return this.endSearch();e=String(e),this.isSearching=!0,this.searchText===e||(this.searchText=e,this.doSearch()),this.searchNext(t),this.emitEvent()}endSearch(){this.isSearching&&(this.searchText="",this.matchNodeList=[],this.currentIndex=-1,this.notResetSearchText=!1,this.isSearching=!1,this.mindMap.opt.readonly&&this.mindMap.renderer.closeHighlightNode(),this.emitEvent())}doSearch(){this.matchNodeList=[],this.currentIndex=-1,Object(v["d"])(this.mindMap.renderer.root,e=>{let{richText:t,text:n}=e.getData();t&&(n=Object(v["z"])(n)),n.includes(this.searchText)&&this.matchNodeList.push(e)})}searchNext(e){if(!this.isSearching||this.matchNodeList.length<=0)return;this.currentIndex{this.notResetSearchText=!1,e(),this.mindMap.opt.readonly&&this.mindMap.renderer.highlightNode(t)})}replace(e,t=!1){if(null===e||void 0===e||!this.isSearching||this.matchNodeList.length<=0)return;this.isJumpNext=t,e=String(e);let n=this.matchNodeList[this.currentIndex];if(!n)return;let r=this.getReplacedText(n,this.searchText,e);this.notResetSearchText=!0,n.setText(r,n.getData("richText"),!0),this.matchNodeList=this.matchNodeList.filter(e=>n!==e),this.currentIndex>this.matchNodeList.length-1?this.currentIndex=-1:this.currentIndex--,this.emitEvent()}replaceAll(e){null===e||void 0===e||!this.isSearching||this.matchNodeList.length<=0||(e=String(e),this.matchNodeList.forEach(t=>{let n=this.getReplacedText(t,this.searchText,e);this.mindMap.renderer.setNodeDataRender(t,{text:n,resetRichText:!!t.getData("richText")},!0)}),this.mindMap.render(),this.mindMap.command.addHistory(),this.endSearch())}getReplacedText(e,t,n){let{richText:r,text:i}=e.getData();return r?Object(v["V"])(i,t,n):i.replaceAll(t,n)}emitEvent(){this.mindMap.emit("search_info_change",{currentIndex:this.currentIndex,total:this.matchNodeList.length})}}qf.instanceName="search";var Gf=qf;class Wf{constructor({mindMap:e}){this.mindMap=e,this.isInPainter=!1,this.painterNode=null,this.bindEvent()}bindEvent(){this.painterOneNode=this.painterOneNode.bind(this),this.onEndPainter=this.onEndPainter.bind(this),this.mindMap.on("node_click",this.painterOneNode),this.mindMap.on("draw_click",this.onEndPainter)}unBindEvent(){this.mindMap.off("node_click",this.painterOneNode),this.mindMap.off("draw_click",this.onEndPainter)}startPainter(){if(this.mindMap.opt.readonly)return;let e=this.mindMap.renderer.activeNodeList;e.length<=0||(this.painterNode=e[0],this.isInPainter=!0,this.mindMap.emit("painter_start"))}endPainter(){this.painterNode=null,this.isInPainter=!1}onEndPainter(){this.isInPainter&&(this.endPainter(),this.mindMap.emit("painter_end"))}painterOneNode(e){if(!e||!this.isInPainter||!this.painterNode||!e||e.uid===this.painterNode.uid)return;const t={},n=this.painterNode.getData();Object.keys(n).forEach(e=>{Object(v["f"])(e)&&(t[e]=n[e])}),e.setStyles(t),n.activeStyle&&e.setStyles(n.activeStyle,!0)}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Wf.instanceName="painter";var Vf=Wf;class Yf{constructor(e){this.mindMap=e.mindMap,this.scrollbarWrapSize={width:0,height:0},this.chartHeight=0,this.chartWidth=0,this.reset(),this.bindEvent()}reset(){this.currentScrollType="",this.isMousedown=!1,this.mousedownPos={x:0,y:0},this.mousedownScrollbarPos=0}bindEvent(){this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.updateScrollbar=this.updateScrollbar.bind(this),this.updateScrollbar=Object(v["cb"])(this.updateScrollbar,16,this),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_tree_render_end",this.updateScrollbar),this.mindMap.on("view_data_change",this.updateScrollbar)}unBindEvent(){this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("mouseup",this.onMouseup),this.mindMap.off("node_tree_render_end",this.updateScrollbar),this.mindMap.off("view_data_change",this.updateScrollbar)}updateScrollbar(){if(this.isMousedown)return;const e=this.calculationScrollbar();this.emitEvent(e)}emitEvent(e){this.mindMap.emit("scrollbar_change",e)}setScrollBarWrapSize(e,t){this.scrollbarWrapSize.width=e,this.scrollbarWrapSize.height=t}calculationScrollbar(){const e=this.mindMap.draw.rbox(),t=this.mindMap.elRect;e.x-=t.left,e.y-=t.top;const n=this.mindMap.height,r=n/2,i=e.height+2*r;this.chartHeight=i;const o=e.y-r,a=Math.min(n/i*100,100);let s=-o/i*100;s<0&&(s=0),s>100-a&&(s=100-a);const l=this.mindMap.width,c=l/2,u=e.width+2*c;this.chartWidth=u;const h=e.x-c,d=Math.min(l/u*100,100);let f=-h/u*100;f<0&&(f=0),f>100-d&&(f=100-d);const p={vertical:{top:s,height:a},horizontal:{left:f,width:d}};return p}onMousedown(e,t){e.preventDefault(),e.stopPropagation(),this.currentScrollType=t,this.isMousedown=!0,this.mousedownPos={x:e.clientX,y:e.clientY};const n=window.getComputedStyle(e.target);t===oo["a"].SCROLL_BAR_DIR.VERTICAL?this.mousedownScrollbarPos=Number.parseFloat(n.top):this.mousedownScrollbarPos=Number.parseFloat(n.left)}onMousemove(e){if(this.isMousedown)if(e.preventDefault(),e.stopPropagation(),this.currentScrollType===oo["a"].SCROLL_BAR_DIR.VERTICAL){const t=e.clientY-this.mousedownPos.y+this.mousedownScrollbarPos;this.updateMindMapView(oo["a"].SCROLL_BAR_DIR.VERTICAL,t)}else{const t=e.clientX-this.mousedownPos.x+this.mousedownScrollbarPos;this.updateMindMapView(oo["a"].SCROLL_BAR_DIR.HORIZONTAL,t)}}onMouseup(){this.isMousedown=!1,this.reset()}updateMindMapView(e,t){const n=this.calculationScrollbar(),r=this.mindMap.draw.transform(),i=this.mindMap.draw.rbox(),o=this.mindMap.renderer.root.group.rbox();if(e===oo["a"].SCROLL_BAR_DIR.VERTICAL){let e=t;e<=0&&(e=0);let a=(100-n.vertical.height)/100*this.scrollbarWrapSize.height;e>=a&&(e=a);const s=e/this.scrollbarWrapSize.height*100,l=-s/100*this.chartHeight,c=o.y-i.y,u=this.mindMap.height/2;let h=l+c-u*r.scaleY+u;this.mindMap.view.translateYTo(h),this.emitEvent({horizontal:n.horizontal,vertical:{top:s,height:n.vertical.height}})}else{let e=t;e<=0&&(e=0);let a=(100-n.horizontal.width)/100*this.scrollbarWrapSize.width;e>=a&&(e=a);const s=e/this.scrollbarWrapSize.width*100,l=-s/100*this.chartWidth,c=o.x-i.x,u=this.mindMap.width/2;let h=l+c-u*r.scaleX+u;this.mindMap.view.translateXTo(h),this.emitEvent({vertical:n.vertical,horizontal:{left:s,width:n.horizontal.width}})}}onClick(e,t){let n=0;n=t===oo["a"].SCROLL_BAR_DIR.VERTICAL?e.clientY-e.currentTarget.getBoundingClientRect().top:e.clientX-e.currentTarget.getBoundingClientRect().left,this.updateMindMapView(t,n)}beforePluginDestroy(){this.unBindEvent()}}Yf.instanceName="scrollbar";var Zf=Yf,Kf=n("5703"),Xf=n.n(Kf);class Jf{constructor(e){this.opt=e,this.mindMap=e.mindMap,window.katex=Xf.a,this.extendQuill()}extendQuill(){const e=Kd.a.import("formats/formula");class t extends e{static create(e){let t=super.create(e);return"string"===typeof e&&(Xf.a.render(e,t,{throwOnError:!1,errorColor:"#f00",output:"mathml"}),t.setAttribute("data-value",e)),t}}Kd.a.register("formats/formula",t,!0)}insertFormulaToNode(e,t){let n=this.mindMap.richText;n.showEditText(e),n.quill.insertEmbed(n.quill.getLength()-1,"formula",t),n.setTextStyleIfNotRichText(n.node),n.hideEditText([e])}}Jf.instanceName="formula";var Qf=Jf,$f=n("4afd"),ep=n("0d93");class tp{constructor(e){this.opt=e,this.mindMap=e.mindMap,this.ydoc=new $f["a"],this.ymap=null,this.provider=null,this.awareness=null,this.currentAwarenessData=[],this.waitNodeUidMap={},this.currentData=null,this.userInfo=null,this.bindEvent(),this.mindMap.opt.data&&this.initData(this.mindMap.opt.data)}initData(e){e=Object(v["ab"])(e),this.ymap&&this.ymap.unobserve(this.onObserve),this.ymap=this.ydoc.getMap(),this.currentData=this.transformTreeDataToObject(e),Object.keys(this.currentData).forEach(e=>{this.ymap.set(e,this.currentData[e])}),this.onObserve=this.onObserve.bind(this),this.ymap.observe(this.onObserve)}getDoc(){return this.ydoc}setProvider(e,t={}){const{roomName:n,signalingList:r,...i}=t;this.provider=e||new ep["a"](n,this.ydoc,{signaling:r,...i}),this.awareness=this.provider.awareness,this.onAwareness=this.onAwareness.bind(this),this.awareness.on("change",this.onAwareness)}bindEvent(){this.onDataChange=this.onDataChange.bind(this),this.mindMap.on("data_change",this.onDataChange),this.onNodeActive=this.onNodeActive.bind(this),this.mindMap.on("node_active",this.onNodeActive),this.onNodeTreeRenderEnd=this.onNodeTreeRenderEnd.bind(this),this.mindMap.on("node_tree_render_end",this.onNodeTreeRenderEnd),this.initData=this.initData.bind(this),this.mindMap.on("set_data",this.initData)}unBindEvent(){this.ymap&&this.ymap.unobserve(this.onObserve),this.mindMap.off("data_change",this.onDataChange),this.mindMap.off("node_active",this.onNodeActive),this.mindMap.off("node_tree_render_end",this.onNodeTreeRenderEnd),this.mindMap.off("set_data",this.initData),this.ydoc.destroy()}onObserve(e){const t=e.target.toJSON();if(Object(v["G"])(t,this.currentData))return;this.currentData=t;const n=this.transformObjectToTreeData(t);n&&(this.mindMap.renderer.setData(n),this.mindMap.render(),this.mindMap.command.addHistory())}onDataChange(e){const t=this.transformTreeDataToObject(e);this.updateChanges(t)}updateChanges(e){const t=this.currentData;this.currentData=e,this.ydoc.transact(()=>{Object.keys(e).forEach(n=>{t[n]&&Object(v["G"])(t[n],e[n])||this.ymap.set(n,e[n])}),Object.keys(t).forEach(t=>{e[t]||this.ymap.delete(t)})})}onNodeActive(e,t){this.userInfo&&this.awareness.setLocalStateField(this.userInfo.name,{userInfo:{...this.userInfo},nodeIdList:t.map(e=>e.uid)})}onNodeTreeRenderEnd(){Object.keys(this.waitNodeUidMap).forEach(e=>{const t=this.mindMap.renderer.findNodeByUid(e);t&&t.addUser(this.waitNodeUidMap[e])}),this.waitNodeUidMap={}}setUserInfo(e){"Object"!==Object(v["B"])(e)||Object(v["I"])(e.id)||Object(v["I"])(e.name)&&Object(v["I"])(e.avatar)||(this.userInfo=e||null)}onAwareness(){const e=(e,t)=>{e.forEach(e=>{const n=Object.keys(e)[0];if(!n)return;const r=e[n],i=r.userInfo,o=r.nodeIdList;o.forEach(e=>{const n=this.mindMap.renderer.findNodeByUid(e);t(e,n,i)})})};e(this.currentAwarenessData,(e,t,n)=>{t&&t.removeUser(n)});const t=Array.from(this.awareness.getStates().values());this.currentAwarenessData=t,e(t,(e,t,n)=>{n.id!==this.userInfo.id&&(t?t.addUser(n):this.waitNodeUidMap[e]=n)})}transformTreeDataToObject(e){const t={},n=(e,r)=>{const i=e.data.uid;r&&r.children.push(i),t[i]={isRoot:!r,data:{...e.data},children:[]},e.children&&e.children.length>0&&e.children.forEach(e=>{n(e,t[i])})};return n(e,null),t}findParentUid(e,t){const n=Object.keys(e);let r="";return n.forEach(n=>{const i=e[n].children,o=-1!==i.findIndex(e=>e===t);o&&(r=n)}),r}transformObjectToTreeData(e){const t=Object.keys(e);if(t.length<=0)return null;const n=t.find(t=>e[t].isRoot);if(!n||!e[n])return null;const r={data:Object(v["ab"])(e[n].data),children:[]},i={};return i[n]=r,t.forEach(t=>{const n=this.findParentUid(e,t),r=e[t],o=i[t]||{data:Object(v["ab"])(r.data),children:[]};if(i[t]||(i[t]=o),n){const r=e[n].children.findIndex(e=>e===t);i[n]||(i[n]={data:Object(v["ab"])(e[n].data),children:[]}),i[n].children[r]=o}}),r}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}tp.instanceName="cooperate";var np=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("outline.title")}},[t("div",{staticClass:"changeBtn",class:{isDark:e.isDark},on:{click:e.onChangeToOutlineEdit}},[t("span",{staticClass:"icon iconfont iconquanping1"})]),"outline"===e.activeSidebar?t("Outline",{attrs:{mindMap:e.mindMap},on:{scrollTo:e.onScrollTo}}):e._e()],1)},rp=[],ip=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebarContainer",class:{show:e.show,isDark:e.isDark},style:{zIndex:e.zIndex},on:{click:function(e){e.stopPropagation()}}},[t("span",{staticClass:"closeBtn el-icon-close",on:{click:e.close}}),e.title?t("div",{staticClass:"sidebarHeader"},[e._v(" "+e._s(e.title)+" ")]):e._e(),t("div",{ref:"sidebarContent",staticClass:"sidebarContent"},[e._t("default")],2)])},op=[],ap={name:"Sidebar",props:{title:{type:String,default:""}},data(){return{show:!1,zIndex:0}},computed:{...Object(se["d"])(["isDark"])},watch:{show(e,t){e&&!t&&(this.zIndex=ke.sidebarZIndex++)}},created(){this.$bus.$on("closeSideBar",this.handleCloseSidebar)},beforeDestroy(){this.$bus.$off("closeSideBar",this.handleCloseSidebar)},methods:{...Object(se["c"])(["setActiveSidebar"]),handleCloseSidebar(){this.close()},close(){this.show=!1,this.setActiveSidebar("")},getEl(){return this.$refs.sidebarContent}}},sp=ap,lp=(n("7b13"),Object(p["a"])(sp,ip,op,!1,null,"e9a8c6d4",null)),cp=lp.exports,up=function(){var e=this,t=e._self._c;return t("el-tree",{ref:"tree",staticClass:"outlineTree",class:{isDark:e.isDark},attrs:{"node-key":"uid",draggable:"","default-expand-all":"",data:e.data,props:e.defaultProps,"highlight-current":!0,"expand-on-click-node":!1,"allow-drag":e.checkAllowDrag},on:{"node-drop":e.onNodeDrop,"current-change":e.onCurrentChange},nativeOn:{mouseenter:function(t){e.isInTreArea=!0},mouseleave:function(t){e.isInTreArea=!1}},scopedSlots:e._u([{key:"default",fn:function({node:n,data:r}){return t("span",{staticClass:"customNode",attrs:{"data-id":r.uid},on:{click:function(t){return e.onClick(r)}}},[t("span",{key:e.getKey(),staticClass:"nodeEdit",attrs:{contenteditable:!e.isReadonly},domProps:{innerHTML:e._s(n.label)},on:{keydown:function(t){return t.stopPropagation(),e.onNodeInputKeydown(t,n)},keyup:function(e){e.stopPropagation()},blur:function(t){return e.onBlur(t,n)},paste:function(t){return e.onPaste(t,n)}}})])}}])})},hp=[],dp=(n("5b81"),{name:"Outline",props:{mindMap:{type:Object}},data(){return{data:[],defaultProps:{label:"label"},currentData:null,notHandleDataChange:!1,isHandleNodeTreeRenderEnd:!1,beInsertNodeUid:"",insertType:"",isInTreArea:!1,isAfterCreateNewNode:!1}},computed:{...Object(se["d"])(["isDark","isReadonly"])},created(){window.addEventListener("keydown",this.onKeyDown),this.$bus.$on("data_change",this.handleDataChange),this.$bus.$on("node_tree_render_end",this.handleNodeTreeRenderEnd),this.$bus.$on("hide_text_edit",this.handleHideTextEdit)},mounted(){this.refresh()},beforeDestroy(){window.removeEventListener("keydown",this.onKeyDown),this.$bus.$off("data_change",this.handleDataChange),this.$bus.$off("node_tree_render_end",this.handleNodeTreeRenderEnd),this.$bus.$off("hide_text_edit",this.handleHideTextEdit)},methods:{handleHideTextEdit(){this.notHandleDataChange&&(this.notHandleDataChange=!1,this.refresh())},handleDataChange(){this.notHandleDataChange?this.notHandleDataChange=!1:this.isAfterCreateNewNode?this.isAfterCreateNewNode=!1:this.refresh()},handleNodeTreeRenderEnd(){if(this.insertType)return this[this.insertType](),void(this.insertType="");this.isHandleNodeTreeRenderEnd&&(this.isHandleNodeTreeRenderEnd=!1,this.refresh(),this.$nextTick(()=>{this.afterCreateNewNode()}))},refresh(){let e=this.mindMap.getData();e.root=!0;let t=e=>{let n=(e.data.richText?Object(v["O"])(e.data.text):e.data.text).replaceAll(/\n/g,"
");n=Object(v["E"])(n),e.textCache=n,e.label=n,e.uid=e.data.uid,e.children&&e.children.length>0&&e.children.forEach(e=>{t(e)})};t(e),this.data=[e]},afterCreateNewNode(){let e=this.beInsertNodeUid;if(e&&this.$refs.tree)try{this.isAfterCreateNewNode=!0,this.$refs.tree.setCurrentKey(e);let t=this.$refs.tree.getNode(e);this.onCurrentChange(t.data),this.onClick(t.data);const n=document.querySelector(`.customNode[data-id="${e}"] .nodeEdit`);if(n){let e=window.getSelection(),t=document.createRange();t.selectNodeContents(n),e.removeAllRanges(),e.addRange(t);let r=n.offsetTop;this.$emit("scrollTo",r)}}catch(t){console.log(t)}this.beInsertNodeUid=""},checkAllowDrag(e){return!e.data.root},onBlur(e,t){if(t.data.textCache===e.target.innerHTML)return void(this.insertType&&(this[this.insertType](),this.insertType=""));const n=t.data.data.richText,r=n?e.target.innerHTML:e.target.innerText,i=this.mindMap.renderer.findNodeByUid(t.data.uid);i&&(this.notHandleDataChange=!0,n?i.setText(Object(v["bb"])(r),!0,!0):i.setText(r))},onPaste(e){e.preventDefault();const t=window.getSelection();if(!t.rangeCount)return;t.deleteFromDocument();let n=(e.clipboardData||window.clipboardData).getData("text");n=Object(v["z"])(n),n=n.replaceAll(/\n/g,"");const r=document.createTextNode(n);t.getRangeAt(0).insertNode(r),t.collapseToEnd()},getKey(){return Math.random()},onNodeInputKeydown(e){13!==e.keyCode||e.shiftKey||(e.preventDefault(),this.insertType="insertNode",e.target.blur()),9===e.keyCode&&(e.preventDefault(),this.insertType="insertChildNode",e.target.blur())},insertNode(){this.notHandleDataChange=!0,this.isHandleNodeTreeRenderEnd=!0,this.beInsertNodeUid=Object(v["m"])(),this.mindMap.execCommand("INSERT_NODE",!1,[],{uid:this.beInsertNodeUid})},insertChildNode(){this.notHandleDataChange=!0,this.isHandleNodeTreeRenderEnd=!0,this.beInsertNodeUid=Object(v["m"])(),this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{uid:this.beInsertNodeUid})},onClick(e){this.notHandleDataChange=!0;const t=this.mindMap.renderer.findNodeByUid(e.uid);t&&t.nodeData.data.isActive||this.mindMap.execCommand("GO_TARGET_NODE",e.uid,()=>{this.notHandleDataChange=!1})},onNodeDrop(e,t,n){this.notHandleDataChange=!0;const r=this.mindMap.renderer.findNodeByUid(e.data.uid),i=this.mindMap.renderer.findNodeByUid(t.data.uid);if(r&&i)switch(n){case"before":this.mindMap.execCommand("INSERT_BEFORE",r,i);break;case"after":this.mindMap.execCommand("INSERT_AFTER",r,i);break;case"inner":this.mindMap.execCommand("MOVE_NODE_TO",r,i);break;default:break}},onCurrentChange(e){this.currentData=e},onKeyDown(e){if(this.isInTreArea&&[46,8].includes(e.keyCode)&&this.currentData){e.stopPropagation(),this.mindMap.renderer.textEdit.hideEditTextBox();const t=this.mindMap.renderer.findNodeByUid(this.currentData.uid);t&&!t.isRoot&&(this.notHandleDataChange=!0,this.$refs.tree.remove(this.currentData),this.mindMap.execCommand("REMOVE_NODE",[t]))}}}}),fp=dp,pp=(n("5ee0"),Object(p["a"])(fp,up,hp,!1,null,"887458fa",null)),mp=pp.exports,gp={name:"OutlineSidebar",components:{Sidebar:cp,Outline:mp},props:{mindMap:{type:Object}},computed:{...Object(se["d"])(["activeSidebar","isOutlineEdit","isDark"])},watch:{activeSidebar(e){this.$refs.sidebar.show="outline"===e}},methods:{...Object(se["c"])(["setIsOutlineEdit","setActiveSidebar"]),onChangeToOutlineEdit(){this.setActiveSidebar(""),this.setIsOutlineEdit(!0)},onScrollTo(e){let t=this.$refs.sidebar.getEl(),n=t.offsetHeight,r=t.scrollTop;e>r+n&&t.scrollTo(0,e-n/2)}}},vp=gp,bp=(n("02c6"),Object(p["a"])(vp,np,rp,!1,null,"8cff0f40",null)),yp=bp.exports,wp=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("style.title")}},[e.activeNodes.length>0?t("div",{staticClass:"styleBox",class:{isDark:e.isDark}},[t("div",{staticClass:"sidebarContent"},[t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("style.text")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.fontFamily")))]),t("el-select",{attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("fontFamily")}},model:{value:e.style.fontFamily,callback:function(t){e.$set(e.style,"fontFamily",t)},expression:"style.fontFamily"}},e._l(e.fontFamilyList,(function(e){return t("el-option",{key:e.value,style:{fontFamily:e.value},attrs:{label:e.name,value:e.value}})})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.fontSize")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("fontSize")}},model:{value:e.style.fontSize,callback:function(t){e.$set(e.style,"fontSize",t)},expression:"style.fontSize"}},e._l(e.fontSizeList,(function(e){return t("el-option",{key:e,style:{fontSize:e+"px"},attrs:{label:e,value:e}})})),1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.lineHeight")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("lineHeight")}},model:{value:e.style.lineHeight,callback:function(t){e.$set(e.style,"lineHeight",t)},expression:"style.lineHeight"}},e._l(e.lineHeightList,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"btnGroup"},[t("el-tooltip",{attrs:{content:e.$t("style.color"),placement:"bottom"}},[t("div",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],staticClass:"styleBtn"},[e._v(" A "),t("span",{staticClass:"colorShow",style:{backgroundColor:e.style.color||"#eee"}})])]),t("el-tooltip",{attrs:{content:e.$t("style.addFontWeight"),placement:"bottom"}},[t("div",{staticClass:"styleBtn",class:{actived:"bold"===e.style.fontWeight},on:{click:e.toggleFontWeight}},[e._v(" B ")])]),t("el-tooltip",{attrs:{content:e.$t("style.italic"),placement:"bottom"}},[t("div",{staticClass:"styleBtn i",class:{actived:"italic"===e.style.fontStyle},on:{click:e.toggleFontStyle}},[e._v(" I ")])]),t("el-tooltip",{attrs:{content:e.$t("style.textDecoration"),placement:"bottom"}},[t("div",{directives:[{name:"popover",rawName:"v-popover:popover2",arg:"popover2"}],staticClass:"styleBtn u",style:{textDecoration:e.style.textDecoration||"none"}},[e._v(" U ")])])],1),t("el-popover",{ref:"popover",attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.style.color},on:{change:e.changeFontColor}})],1),t("el-popover",{ref:"popover2",attrs:{placement:"bottom",trigger:"hover"}},[t("el-radio-group",{attrs:{size:"mini"},on:{change:function(t){return e.update("textDecoration")}},model:{value:e.style.textDecoration,callback:function(t){e.$set(e.style,"textDecoration",t)},expression:"style.textDecoration"}},[t("el-radio-button",{attrs:{label:"none"}},[e._v(e._s(e.$t("style.none")))]),t("el-radio-button",{attrs:{label:"underline"}},[e._v(e._s(e.$t("style.underline")))]),t("el-radio-button",{attrs:{label:"line-through"}},[e._v(e._s(e.$t("style.lineThrough")))]),t("el-radio-button",{attrs:{label:"overline"}},[e._v(e._s(e.$t("style.overline")))])],1)],1)],1),t("div",{staticClass:"title"},[e._v(e._s(e.$t("style.border")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover3",arg:"popover3"}],staticClass:"block",style:{width:"80px",backgroundColor:e.style.borderColor}}),t("el-popover",{ref:"popover3",attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.style.borderColor},on:{change:e.changeBorderColor}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.style")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("borderDasharray")}},model:{value:e.style.borderDasharray,callback:function(t){e.$set(e.style,"borderDasharray",t)},expression:"style.borderDasharray"}},e._l(e.borderDasharrayList,(function(n){return t("el-option",{key:n.value,attrs:{label:n.name,value:n.value}},[t("svg",{attrs:{width:"120",height:"34"}},[t("line",{attrs:{x1:"10",y1:"17",x2:"110",y2:"17","stroke-width":"2",stroke:e.style.borderDasharray===n.value?"#409eff":e.isDark?"#fff":"#000","stroke-dasharray":n.value}})])])})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.width")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("borderWidth")}},model:{value:e.style.borderWidth,callback:function(t){e.$set(e.style,"borderWidth",t)},expression:"style.borderWidth"}},e._l(e.borderWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"rectangle"===e.style.shape,expression:"style.shape === 'rectangle'"}],staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.borderRadius")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("borderRadius")}},model:{value:e.style.borderRadius,callback:function(t){e.$set(e.style,"borderRadius",t)},expression:"style.borderRadius"}},e._l(e.borderRadiusList,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1)]),t("div",{staticClass:"title"},[e._v(e._s(e.$t("style.background")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover4",arg:"popover4"}],staticClass:"block",style:{backgroundColor:e.style.fillColor}}),t("el-popover",{ref:"popover4",attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.style.fillColor},on:{change:e.changeFillColor}})],1)],1)]),t("div",{staticClass:"title"},[e._v(e._s(e.$t("style.shape")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.shape")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("shape")}},model:{value:e.style.shape,callback:function(t){e.$set(e.style,"shape",t)},expression:"style.shape"}},e._l(e.shapeList,(function(n){return t("el-option",{key:n.value,attrs:{label:n.name,value:n.value}},[t("svg",{staticStyle:{"margin-top":"5px"},attrs:{width:"60",height:"26"}},[t("path",{attrs:{d:e.shapeListMap[n.value],fill:"none",stroke:e.style.shape===n.value?"#409eff":e.isDark?"#fff":"#000","stroke-width":"2"}})])])})),1)],1)]),t("div",{staticClass:"title"},[e._v(e._s(e.$t("style.line")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"block",style:{width:"80px",backgroundColor:e.style.lineColor}}),t("el-popover",{ref:"popover5",attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.style.lineColor},on:{change:e.changeLineColor}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.style")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("lineDasharray")}},model:{value:e.style.lineDasharray,callback:function(t){e.$set(e.style,"lineDasharray",t)},expression:"style.lineDasharray"}},e._l(e.borderDasharrayList,(function(n){return t("el-option",{key:n.value,attrs:{label:n.name,value:n.value}},[t("svg",{attrs:{width:"120",height:"34"}},[t("line",{attrs:{x1:"10",y1:"17",x2:"110",y2:"17","stroke-width":"2",stroke:e.style.lineDasharray===n.value?"#409eff":e.isDark?"#fff":"#000","stroke-dasharray":n.value}})])])})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.width")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("lineWidth")}},model:{value:e.style.lineWidth,callback:function(t){e.$set(e.style,"lineWidth",t)},expression:"style.lineWidth"}},e._l(e.borderWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("style.nodePadding")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.horizontal")))]),t("el-slider",{staticStyle:{width:"200px"},on:{change:function(t){return e.update("paddingX")}},model:{value:e.style.paddingX,callback:function(t){e.$set(e.style,"paddingX",t)},expression:"style.paddingX"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.vertical")))]),t("el-slider",{staticStyle:{width:"200px"},on:{change:function(t){return e.update("paddingY")}},model:{value:e.style.paddingY,callback:function(t){e.$set(e.style,"paddingY",t)},expression:"style.paddingY"}})],1)])])]):t("div",{staticClass:"tipBox"},[t("div",{staticClass:"tipIcon iconfont icontianjiazijiedian"}),t("div",{staticClass:"tipText"},[e._v("请选择一个节点")])])])},xp=[],kp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"colorContainer",class:{isDark:e.isDark}},[t("div",{staticClass:"colorList"},e._l(e.colorList,(function(n){return t("span",{key:n,staticClass:"colorItem iconfont",class:{icontouming:"transparent"===n},style:{backgroundColor:n},on:{click:function(t){return e.clickColorItem(n)}}})})),0),t("div",{staticClass:"moreColor"},[t("span",[e._v(e._s(e.$t("color.moreColor")))]),t("el-color-picker",{attrs:{size:"mini"},on:{change:e.changeColor},model:{value:e.selectColor,callback:function(t){e.selectColor=t},expression:"selectColor"}})],1)])},Ap=[],Cp={name:"Color",props:{color:{type:String,default:""}},data(){return{colorList:he,selectColor:""}},computed:{...Object(se["d"])(["isDark"])},watch:{color(){this.selectColor=this.color}},created(){this.selectColor=this.color},methods:{clickColorItem(e){this.$emit("change",e)},changeColor(){this.$emit("change",this.selectColor)}}},Ep=Cp,Sp=(n("ce80"),Object(p["a"])(Ep,kp,Ap,!1,null,"530a160f",null)),Tp=Sp.exports,Np={name:"Style",components:{Sidebar:cp,Color:Tp},data(){return{fontSizeList:ce,borderWidthList:de,borderRadiusList:pe,lineHeightList:ue,activeNodes:[],style:{shape:"",paddingX:0,paddingY:0,color:"",fontFamily:"",fontSize:"",lineHeight:"",textDecoration:"",fontWeight:"",fontStyle:"",borderWidth:"",borderColor:"",fillColor:"",borderDasharray:"",borderRadius:"",lineColor:"",lineDasharray:"",lineWidth:""}}},computed:{...Object(se["d"])(["activeSidebar","isDark"]),fontFamilyList(){return je[this.$i18n.locale]||je.zh},borderDasharrayList(){return He[this.$i18n.locale]||He.zh},shapeList(){return Ke[this.$i18n.locale]||Ke.zh},shapeListMap(){return Xe[this.$i18n.locale]||Xe.zh}},watch:{activeSidebar(e){this.$refs.sidebar.show="nodeStyle"===e}},created(){this.$bus.$on("node_active",this.onNodeActive)},beforeDestroy(){this.$bus.$off("node_active",this.onNodeActive)},methods:{onNodeActive(...e){this.$nextTick(()=>{this.activeNodes=[...e[1]],this.initNodeStyle()})},initNodeStyle(){this.activeNodes.length<=0||["shape","paddingX","paddingY","color","fontFamily","fontSize","lineHeight","textDecoration","fontWeight","fontStyle","borderWidth","borderColor","fillColor","borderDasharray","borderRadius","lineColor","lineDasharray","lineWidth"].forEach(e=>{this.style[e]=this.activeNodes[0].getStyle(e,!1)})},update(e){this.activeNodes.forEach(t=>{t.setStyle(e,this.style[e])})},toggleFontWeight(){"bold"===this.style.fontWeight?this.style.fontWeight="normal":this.style.fontWeight="bold",this.update("fontWeight")},toggleFontStyle(){"italic"===this.style.fontStyle?this.style.fontStyle="normal":this.style.fontStyle="italic",this.update("fontStyle")},changeFontColor(e){this.style.color=e,this.update("color")},changeBorderColor(e){this.style.borderColor=e,this.update("borderColor")},changeLineColor(e){this.style.lineColor=e,this.update("lineColor")},changeFillColor(e){this.style.fillColor=e,this.update("fillColor")}}},Mp=Np,Lp=(n("1ab0"),n("71e2"),Object(p["a"])(Mp,wp,xp,!1,null,"4a300153",null)),Op=Lp.exports,Dp=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("baseStyle.title")}},[e.data?t("div",{staticClass:"sidebarContent",class:{isDark:e.isDark}},[t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.background")))]),t("div",{staticClass:"row"},[t("el-tabs",{staticClass:"tab",model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("el-tab-pane",{attrs:{label:e.$t("baseStyle.color"),name:"color"}},[t("Color",{attrs:{color:e.style.backgroundColor},on:{change:t=>{e.update("backgroundColor",t)}}})],1),t("el-tab-pane",{attrs:{label:e.$t("baseStyle.image"),name:"image"}},[t("ImgUpload",{staticClass:"imgUpload",on:{change:t=>{e.update("backgroundImage",t)}},model:{value:e.style.backgroundImage,callback:function(t){e.$set(e.style,"backgroundImage",t)},expression:"style.backgroundImage"}}),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.imageRepeat")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("backgroundRepeat",t)}},model:{value:e.style.backgroundRepeat,callback:function(t){e.$set(e.style,"backgroundRepeat",t)},expression:"style.backgroundRepeat"}},e._l(e.backgroundRepeatList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.imagePosition")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("backgroundPosition",t)}},model:{value:e.style.backgroundPosition,callback:function(t){e.$set(e.style,"backgroundPosition",t)},expression:"style.backgroundPosition"}},e._l(e.backgroundPositionList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.imageSize")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("backgroundSize",t)}},model:{value:e.style.backgroundSize,callback:function(t){e.$set(e.style,"backgroundSize",t)},expression:"style.backgroundSize"}},e._l(e.backgroundSizeList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1)],1)],1)],1),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.line")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],staticClass:"block",style:{backgroundColor:e.style.lineColor}}),t("el-popover",{ref:"popover",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.lineColor},on:{change:t=>{e.update("lineColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.width")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("lineWidth",t)}},model:{value:e.style.lineWidth,callback:function(t){e.$set(e.style,"lineWidth",t)},expression:"style.lineWidth"}},e._l(e.lineWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.style")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("lineStyle",t)}},model:{value:e.style.lineStyle,callback:function(t){e.$set(e.style,"lineStyle",t)},expression:"style.lineStyle"}},e._l(e.lineStyleList,(function(n){return t("el-option",{key:n.value,staticClass:"lineStyleOption",class:{isDark:e.isDark,isSelected:e.style.lineStyle===n.value},attrs:{label:n.name,value:n.value},domProps:{innerHTML:e._s(e.lineStyleMap[n.value])}})})),1)],1),"curve"===e.style.lineStyle?t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.rootStyle")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("rootLineKeepSameInCurve",t)}},model:{value:e.style.rootLineKeepSameInCurve,callback:function(t){e.$set(e.style,"rootLineKeepSameInCurve",t)},expression:"style.rootLineKeepSameInCurve"}},e._l(e.rootLineKeepSameInCurveList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1):e._e()]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.lineOfOutline")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover2",arg:"popover2"}],staticClass:"block",style:{backgroundColor:e.style.generalizationLineColor}}),t("el-popover",{ref:"popover2",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.generalizationLineColor},on:{change:t=>{e.update("generalizationLineColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.width")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("generalizationLineWidth",t)}},model:{value:e.style.generalizationLineWidth,callback:function(t){e.$set(e.style,"generalizationLineWidth",t)},expression:"style.generalizationLineWidth"}},e._l(e.lineWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.associativeLine")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.associativeLineColor")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover4",arg:"popover4"}],staticClass:"block",style:{backgroundColor:e.style.associativeLineColor}}),t("el-popover",{ref:"popover4",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.associativeLineColor},on:{change:t=>{e.update("associativeLineColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.associativeLineWidth")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("associativeLineWidth",t)}},model:{value:e.style.associativeLineWidth,callback:function(t){e.$set(e.style,"associativeLineWidth",t)},expression:"style.associativeLineWidth"}},e._l(e.lineWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.associativeLineActiveColor")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"block",style:{backgroundColor:e.style.associativeLineActiveColor}}),t("el-popover",{ref:"popover5",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.associativeLineActiveColor},on:{change:t=>{e.update("associativeLineActiveColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.associativeLineActiveWidth")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("associativeLineActiveWidth",t)}},model:{value:e.style.associativeLineActiveWidth,callback:function(t){e.$set(e.style,"associativeLineActiveWidth",t)},expression:"style.associativeLineActiveWidth"}},e._l(e.lineWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.associativeLineText")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.fontFamily")))]),t("el-select",{attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("associativeLineTextFontFamily",t)}},model:{value:e.style.associativeLineTextFontFamily,callback:function(t){e.$set(e.style,"associativeLineTextFontFamily",t)},expression:"style.associativeLineTextFontFamily"}},e._l(e.fontFamilyList,(function(e){return t("el-option",{key:e.value,style:{fontFamily:e.value},attrs:{label:e.name,value:e.value}})})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover6",arg:"popover6"}],staticClass:"block",style:{backgroundColor:e.style.associativeLineTextColor}}),t("el-popover",{ref:"popover6",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.associativeLineTextColor},on:{change:t=>{e.update("associativeLineTextColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.fontSize")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("associativeLineTextFontSize",t)}},model:{value:e.style.associativeLineTextFontSize,callback:function(t){e.$set(e.style,"associativeLineTextFontSize",t)},expression:"style.associativeLineTextFontSize"}},e._l(e.fontSizeList,(function(e){return t("el-option",{key:e,style:{fontSize:e+"px"},attrs:{label:e,value:e}})})),1)],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.nodeBorderType")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:t=>{e.update("nodeUseLineStyle",t)}},model:{value:e.style.nodeUseLineStyle,callback:function(t){e.$set(e.style,"nodeUseLineStyle",t)},expression:"style.nodeUseLineStyle"}},[e._v(e._s(e.$t("baseStyle.nodeUseLineStyle")))])],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.nodePadding")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.horizontal")))]),t("el-slider",{staticStyle:{width:"200px"},on:{change:t=>{e.update("paddingX",t)}},model:{value:e.style.paddingX,callback:function(t){e.$set(e.style,"paddingX",t)},expression:"style.paddingX"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.vertical")))]),t("el-slider",{staticStyle:{width:"200px"},on:{change:t=>{e.update("paddingY",t)}},model:{value:e.style.paddingY,callback:function(t){e.$set(e.style,"paddingY",t)},expression:"style.paddingY"}})],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.image")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.maximumWidth")))]),t("el-slider",{staticStyle:{width:"140px"},attrs:{min:10,max:300},on:{change:t=>{e.update("imgMaxWidth",t)}},model:{value:e.style.imgMaxWidth,callback:function(t){e.$set(e.style,"imgMaxWidth",t)},expression:"style.imgMaxWidth"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.maximumHeight")))]),t("el-slider",{staticStyle:{width:"140px"},attrs:{min:10,max:300},on:{change:t=>{e.update("imgMaxHeight",t)}},model:{value:e.style.imgMaxHeight,callback:function(t){e.$set(e.style,"imgMaxHeight",t)},expression:"style.imgMaxHeight"}})],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.icon")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.size")))]),t("el-slider",{staticStyle:{width:"200px"},attrs:{min:12,max:50},on:{change:t=>{e.update("iconSize",t)}},model:{value:e.style.iconSize,callback:function(t){e.$set(e.style,"iconSize",t)},expression:"style.iconSize"}})],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.nodeMargin")))]),t("div",{staticClass:"row column"},[t("el-tabs",{staticClass:"tab",on:{"tab-click":e.initMarginStyle},model:{value:e.marginActiveTab,callback:function(t){e.marginActiveTab=t},expression:"marginActiveTab"}},[t("el-tab-pane",{attrs:{label:e.$t("baseStyle.level2Node"),name:"second"}}),t("el-tab-pane",{attrs:{label:e.$t("baseStyle.belowLevel2Node"),name:"node"}})],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.horizontal")))]),t("el-slider",{staticStyle:{width:"200px"},attrs:{max:200},on:{change:t=>{e.updateMargin("marginX",t)}},model:{value:e.style.marginX,callback:function(t){e.$set(e.style,"marginX",t)},expression:"style.marginX"}})],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.vertical")))]),t("el-slider",{staticStyle:{width:"200px"},attrs:{max:200},on:{change:t=>{e.updateMargin("marginY",t)}},model:{value:e.style.marginY,callback:function(t){e.$set(e.style,"marginY",t)},expression:"style.marginY"}})],1)],1),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.watermark")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:e.watermarkShowChange},model:{value:e.watermarkConfig.show,callback:function(t){e.$set(e.watermarkConfig,"show",t)},expression:"watermarkConfig.show"}},[e._v(e._s(e.$t("baseStyle.showWatermark")))])],1)]),e.watermarkConfig.show?[t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkText")))]),t("el-input",{attrs:{size:"small"},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.text,callback:function(t){e.$set(e.watermarkConfig,"text",t)},expression:"watermarkConfig.text"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkTextColor")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover3",arg:"popover3"}],staticClass:"block",style:{backgroundColor:e.watermarkConfig.textStyle.color}}),t("el-popover",{ref:"popover3",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.watermarkConfig.textStyle.color},on:{change:t=>{e.watermarkConfig.textStyle.color=t,e.updateWatermarkConfig()}}})],1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkTextOpacity")))]),t("el-slider",{staticStyle:{width:"170px"},attrs:{min:0,max:1,step:.1},on:{change:e.updateWatermarkConfig},model:{value:e.watermarkConfig.textStyle.opacity,callback:function(t){e.$set(e.watermarkConfig.textStyle,"opacity",t)},expression:"watermarkConfig.textStyle.opacity"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkTextFontSize")))]),t("el-input-number",{attrs:{size:"small",min:0,max:50,step:1},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.textStyle.fontSize,callback:function(t){e.$set(e.watermarkConfig.textStyle,"fontSize",t)},expression:"watermarkConfig.textStyle.fontSize"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkAngle")))]),t("el-input-number",{attrs:{size:"small",min:0,max:90,step:10},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.angle,callback:function(t){e.$set(e.watermarkConfig,"angle",t)},expression:"watermarkConfig.angle"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkLineSpacing")))]),t("el-input-number",{attrs:{size:"small",step:10},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.lineSpacing,callback:function(t){e.$set(e.watermarkConfig,"lineSpacing",t)},expression:"watermarkConfig.lineSpacing"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkTextSpacing")))]),t("el-input-number",{attrs:{size:"small",step:10},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.textSpacing,callback:function(t){e.$set(e.watermarkConfig,"textSpacing",t)},expression:"watermarkConfig.textSpacing"}})],1)])]:e._e(),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.otherConfig")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:t=>{e.updateOtherConfig("enableFreeDrag",t)}},model:{value:e.config.enableFreeDrag,callback:function(t){e.$set(e.config,"enableFreeDrag",t)},expression:"config.enableFreeDrag"}},[e._v(e._s(e.$t("baseStyle.enableFreeDrag")))])],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:e.enableNodeRichTextChange},model:{value:e.enableNodeRichText,callback:function(t){e.enableNodeRichText=t},expression:"enableNodeRichText"}},[e._v(e._s(e.$t("baseStyle.isEnableNodeRichText")))])],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.mousewheelAction")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.updateOtherConfig("mousewheelAction",t)}},model:{value:e.config.mousewheelAction,callback:function(t){e.$set(e.config,"mousewheelAction",t)},expression:"config.mousewheelAction"}},[t("el-option",{attrs:{label:e.$t("baseStyle.zoomView"),value:"zoom"}}),t("el-option",{attrs:{label:e.$t("baseStyle.moveViewUpDown"),value:"move"}})],1)],1)]),"zoom"===e.config.mousewheelAction?t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.mousewheelZoomActionReverse")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.updateOtherConfig("mousewheelZoomActionReverse",t)}},model:{value:e.config.mousewheelZoomActionReverse,callback:function(t){e.$set(e.config,"mousewheelZoomActionReverse",t)},expression:"config.mousewheelZoomActionReverse"}},[t("el-option",{attrs:{label:e.$t("baseStyle.mousewheelZoomActionReverse1"),value:!1}}),t("el-option",{attrs:{label:e.$t("baseStyle.mousewheelZoomActionReverse2"),value:!0}})],1)],1)]):e._e(),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.createNewNodeBehavior")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.updateOtherConfig("createNewNodeBehavior",t)}},model:{value:e.config.createNewNodeBehavior,callback:function(t){e.$set(e.config,"createNewNodeBehavior",t)},expression:"config.createNewNodeBehavior"}},[t("el-option",{attrs:{label:e.$t("baseStyle.default"),value:"default"}}),t("el-option",{attrs:{label:e.$t("baseStyle.notActive"),value:"notActive"}}),t("el-option",{attrs:{label:e.$t("baseStyle.activeOnly"),value:"activeOnly"}})],1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:function(t){return e.updateLocalConfig("isShowScrollbar",t)}},model:{value:e.localConfigs.isShowScrollbar,callback:function(t){e.$set(e.localConfigs,"isShowScrollbar",t)},expression:"localConfigs.isShowScrollbar"}},[e._v(e._s(e.$t("baseStyle.isShowScrollbar")))])],1)])],2):e._e()])},Pp=[],Ip={name:"BaseStyle",components:{Sidebar:cp,Color:Tp,ImgUpload:g},props:{data:{type:[Object,null],default:null},mindMap:{type:Object}},data(){return{lineWidthList:me,fontSizeList:ce,activeTab:"color",marginActiveTab:"second",style:{backgroundColor:"",lineColor:"",lineWidth:"",lineStyle:"",rootLineKeepSameInCurve:"",generalizationLineWidth:"",generalizationLineColor:"",associativeLineColor:"",associativeLineWidth:0,associativeLineActiveWidth:0,associativeLineActiveColor:"",associativeLineTextFontSize:0,associativeLineTextColor:"",associativeLineTextFontFamily:"",paddingX:0,paddingY:0,imgMaxWidth:0,imgMaxHeight:0,iconSize:0,backgroundImage:"",backgroundRepeat:"no-repeat",backgroundPosition:"",backgroundSize:"",marginX:0,marginY:0,nodeUseLineStyle:!1},config:{enableFreeDrag:!1,mousewheelAction:"zoom",mousewheelZoomActionReverse:!1,createNewNodeBehavior:"default"},watermarkConfig:{show:!1,text:"",lineSpacing:100,textSpacing:100,angle:30,textStyle:{color:"",opacity:0,fontSize:1}},updateWatermarkTimer:null,enableNodeRichText:!0,localConfigs:{isShowScrollbar:!1}}},computed:{...Object(se["d"])(["activeSidebar","localConfig","isDark"]),lineStyleList(){return Ue[this.$i18n.locale]||Ue.zh},rootLineKeepSameInCurveList(){return Ge[this.$i18n.locale]||Ge.zh},backgroundRepeatList(){return We[this.$i18n.locale]||We.zh},backgroundPositionList(){return Ve[this.$i18n.locale]||Ve.zh},backgroundSizeList(){return Ye[this.$i18n.locale]||Ye.zh},fontFamilyList(){return je[this.$i18n.locale]||je.zh},lineStyleMap(){return qe[this.$i18n.locale]||qe.zh}},watch:{activeSidebar(e){"baseStyle"===e?(this.$refs.sidebar.show=!0,this.initStyle(),this.initConfig(),this.initWatermark()):this.$refs.sidebar.show=!1}},created(){this.initLoacalConfig(),this.$bus.$on("setData",this.onSetData)},beforeDestroy(){this.$bus.$off("setData",this.onSetData)},methods:{...Object(se["c"])(["setLocalConfig"]),onSetData(){"baseStyle"===this.activeSidebar&&setTimeout(()=>{this.initStyle()},0)},initStyle(){["backgroundColor","lineWidth","lineStyle","rootLineKeepSameInCurve","lineColor","generalizationLineWidth","generalizationLineColor","associativeLineColor","associativeLineWidth","associativeLineActiveWidth","associativeLineActiveColor","associativeLineTextFontSize","associativeLineTextColor","associativeLineTextFontFamily","paddingX","paddingY","imgMaxWidth","imgMaxHeight","iconSize","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize","nodeUseLineStyle"].forEach(e=>{this.style[e]=this.mindMap.getThemeConfig(e),"backgroundImage"===e&&"none"===this.style[e]&&(this.style[e]="")}),this.initMarginStyle()},initConfig(){["enableFreeDrag","mousewheelAction","mousewheelZoomActionReverse","createNewNodeBehavior"].forEach(e=>{this.config[e]=this.mindMap.getConfig(e)})},initLoacalConfig(){this.enableNodeRichText=this.localConfig.openNodeRichText,this.mousewheelAction=this.localConfig.mousewheelAction,this.mousewheelZoomActionReverse=this.localConfig.mousewheelZoomActionReverse,["isShowScrollbar"].forEach(e=>{this.localConfigs[e]=this.localConfig[e]})},initWatermark(){let e=this.mindMap.getConfig("watermarkConfig");["text","lineSpacing","textSpacing","angle"].forEach(t=>{this.watermarkConfig[t]=e[t]}),this.watermarkConfig.show=!!e.text,this.watermarkConfig.textStyle={...e.textStyle}},initMarginStyle(){["marginX","marginY"].forEach(e=>{this.style[e]=this.mindMap.getThemeConfig()[this.marginActiveTab][e]})},update(e,t){this.style[e]="backgroundImage"===e&&"none"===t?"":t,this.data.theme.config[e]=t,this.$bus.$emit("showLoading"),this.mindMap.setThemeConfig(this.data.theme.config),Object(Wi["d"])({theme:{template:this.mindMap.getTheme(),config:this.data.theme.config}})},updateOtherConfig(e,t){this.mindMap.updateConfig({[e]:t}),this.data.config=this.data.config||{},this.data.config[e]=t,Object(Wi["d"])({config:this.data.config})},updateWatermarkConfig(){clearTimeout(this.updateWatermarkTimer),this.updateWatermarkTimer=setTimeout(()=>{let{show:e,...t}=this.watermarkConfig;this.mindMap.watermark.updateWatermark({...t}),this.data.config=this.data.config||{},this.data.config.watermarkConfig=this.mindMap.getConfig("watermarkConfig"),Object(Wi["d"])({config:this.data.config})},300)},updateMargin(e,t){this.style[e]=t,this.data.theme.config[this.marginActiveTab]||(this.data.theme.config[this.marginActiveTab]={}),this.data.theme.config[this.marginActiveTab][e]=t,this.mindMap.setThemeConfig(this.data.theme.config),Object(Wi["d"])({theme:{template:this.mindMap.getTheme(),config:this.data.theme.config}})},watermarkShowChange(e){if(e){let e=this.watermarkConfig.text||this.$t("baseStyle.watermarkDefaultText");this.watermarkConfig.text=e}else this.watermarkConfig.text="";this.updateWatermarkConfig()},enableNodeRichTextChange(e){this.mindMap.renderer.textEdit.hideEditTextBox(),this.setLocalConfig({openNodeRichText:e})},updateLocalConfig(e,t){this.setLocalConfig({[e]:t})}}},Rp=Ip,Fp=(n("a9e9"),n("feb0"),Object(p["a"])(Rp,Dp,Pp,!1,null,"46bf1066",null)),zp=Fp.exports,Bp=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("theme.title")}},[t("div",{staticClass:"themeList",class:{isDark:e.isDark}},[t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.groupList,(function(e){return t("el-tab-pane",{key:e.name,attrs:{label:e.name,name:e.name}})})),1),e._l(e.currentList,(function(n){return t("div",{key:n.value,staticClass:"themeItem",class:{active:n.value===e.theme},on:{click:function(t){return e.useTheme(n)}}},[t("div",{staticClass:"imgBox"},[t("img",{attrs:{src:e.themeMap[n.value],alt:""}})]),t("div",{staticClass:"name"},[e._v(e._s(n.name))])])}))],2)])},_p=[];const jp={logicalStructure:n("58cf"),mindMap:n("7992"),organizationStructure:n("57cb"),catalogOrganization:n("bea9"),timeline:n("0cfe"),timeline2:n("4ec2"),fishbone:n("3c2a"),verticalTimeline:n("b47d")},Hp={default:n("facf"),classic:n("5e3f"),minions:n("a57a"),pinkGrape:n("4f8c"),mint:n("d046"),gold:n("7e82"),vitalityOrange:n("7080"),greenLeaf:n("9ed8"),dark2:n("4514"),skyGreen:n("6276"),classic2:n("9876d"),classic3:n("86d9"),classic4:n("5abe"),classicGreen:n("1474"),classicBlue:n("8b92"),blueSky:n("1560"),brainImpairedPink:n("2f97"),dark:n("0d42"),earthYellow:n("8f14"),freshGreen:n("1f76"),freshRed:n("9543"),romanticPurple:n("5843"),simpleBlack:n("0754"),courseGreen:n("3cc4"),coffee:n("dbc4"),redSpirit:n("bc06"),blackHumour:n("b645"),lateNightOffice:n("6ad8"),blackGold:n("1b88"),autumn:n("7f95"),avocado:n("135f"),orangeJuice:n("be49"),oreo:n("daf1"),shallowSea:n("b0a0"),lemonBubbles:n("cb07"),rose:n("0536"),seaBlueLine:n("6c83"),neonLamp:n("1397"),darkNightLceBlade:n("aa39"),morandi:n("9192"),classic5:n("e9d1"),dark3:n("a7a61"),dark4:n("e497"),cactus:n("5a50")},Up=["a^2","a_2","a^{2+2}","a_{i,j}","x_2^3","\\overbrace{1+2+\\cdots+100}","\\sum_{k=1}^N k^2","\\lim_{n \\to \\infty}x_n","\\int_{-N}^{N} e^x\\, dx","\\sqrt{3}","\\sqrt[n]{3}","\\sin\\theta","\\log X","\\log_{10}","\\log_\\alpha X","\\lim_{t\\to n}T","\\frac{1}{2}=0.5","\\binom{n}{k}","\\begin{matrix}x & y \\\\z & v\\end{matrix}","\\begin{cases}3x + 5y + z \\\\7x - 2y + 4z \\\\-6x + 3y + 2z\\end{cases}"];var qp={lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",root:{fillColor:"rgb(22, 22, 22)",color:"#fff",borderColor:"rgb(22, 22, 22)",borderWidth:3,fontSize:24},second:{fillColor:"rgb(244, 246, 253)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"transparent",borderColor:"rgb(34, 34, 34)",borderWidth:2,color:"rgb(34, 34, 34)"}},Gp={backgroundColor:"rgb(187, 241, 250)",lineColor:"rgb(74, 139, 170)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 168, 101)",root:{fillColor:"rgb(51, 149, 255)",color:"#fff",borderColor:"rgb(51, 149, 255)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(74, 139, 170)",color:"#fff",borderColor:"",borderWidth:3,fontSize:18},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(255, 168, 101)",borderWidth:2,color:"#000"}},Wp={backgroundColor:"rgb(236, 254, 255)",lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",root:{fillColor:"rgb(39, 222, 232)",color:"rgb(26, 26, 26)",borderColor:"rgb(26, 26, 26)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(235, 255, 187)",color:"rgb(0, 0, 0)",borderColor:"rgb(51, 51, 51)",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(26, 26, 26)",borderWidth:2,color:"rgb(26, 26, 26)"}},Vp={backgroundColor:"rgb(255, 251, 231)",lineColor:"rgb(110, 165, 79)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(136, 100, 0)",root:{fillColor:"rgb(254, 92, 92)",color:"#fff",borderColor:"rgb(18, 187, 55)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(209, 237, 176)",color:"rgb(85, 136, 55)",borderColor:"",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(26, 26, 26)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(136, 100, 0)",borderWidth:2,color:"rgb(136, 100, 0)"}},Yp={backgroundColor:"rgb(231, 245, 255)",lineColor:"rgb(96, 189, 255)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(0, 155, 255)",root:{fillColor:"rgb(96, 189, 255)",color:"#fff",borderColor:"#fff",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"#fff",color:"rgb(0, 149, 255)",borderColor:"",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(0, 66, 157)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(0, 155, 255)",borderWidth:2,color:"rgb(0, 155, 255)"}},Zp={backgroundColor:"rgb(17, 17, 84)",lineColor:"rgb(255, 0, 214)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 181, 0)",associativeLineColor:"rgb(255, 255, 255)",associativeLineTextColor:"rgb(255, 255, 255)",root:{fillColor:"rgb(251, 233, 248)",color:"rgb(208, 5, 176)",borderColor:"rgb(255, 0, 214)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"transparent",color:"rgb(248, 177, 237)",borderColor:"",borderWidth:3,fontSize:18},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(255, 181, 0)",borderWidth:2,color:"rgb(17, 17, 84)"}},Kp={backgroundColor:"rgb(0, 21, 21)",lineColor:"rgb(0, 139, 146)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgba(2, 167, 240, 0.5)",associativeLineColor:"rgb(255, 255, 255)",associativeLineTextColor:"rgb(255, 255, 255)",root:{fillColor:"rgb(0, 243, 255)",color:"rgb(0, 21, 21)",borderColor:"#fff",borderWidth:3,fontSize:24,shape:"parallelogram"},second:{fillColor:"rgb(0, 21, 21)",color:"#fff",borderColor:"#fff",borderWidth:3,fontSize:18,shape:"diamond"},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(0, 117, 255)",borderWidth:2,color:"rgb(0, 21, 21)"}},Xp={backgroundColor:"rgb(252, 245, 241)",lineColor:"rgb(144, 114, 110)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(128, 154, 151)",associativeLineColor:"rgb(166, 124, 106)",associativeLineTextColor:"rgb(166, 124, 106)",root:{fillColor:"rgb(207, 121, 105)",color:"#fff",borderColor:"rgb(207, 121, 105)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(239, 210, 207)",color:"rgb(144, 79, 68)",borderColor:"rgb(222, 186, 183)",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(131, 90, 64)"},generalization:{fontSize:14,fillColor:"rgb(172, 202, 199)",borderColor:"rgb(172, 202, 199)",borderWidth:2,color:"rgb(91, 102, 97)"}},Jp={backgroundColor:"rgb(233, 245, 241)",lineColor:"rgb(34, 34, 34)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(34, 34, 34)",associativeLineColor:"rgb(56, 44, 116)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"rgb(56, 44, 116)",color:"#fff",borderColor:"rgb(56, 44, 116)",borderWidth:0,fontSize:24},second:{fillColor:"rgb(161, 213, 188)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"rgb(56, 44, 116)",borderColor:"",borderWidth:0,color:"#fff"}},Qp={backgroundColor:"rgb(0, 0, 0)",lineColor:"rgb(172, 172, 172)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(172, 172, 172)",associativeLineColor:"rgb(57, 130, 252)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"#fff",color:"rgb(241, 79, 81)",borderColor:"",borderWidth:0,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(241, 79, 81)",color:"#fff",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(241, 79, 81)"}},$p={backgroundColor:"rgb(32, 34, 43)",lineColor:"rgb(90, 136, 116)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(90, 136, 116)",associativeLineColor:"rgb(57, 130, 252)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"rgb(1, 192, 116)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(48, 51, 63)",color:"#fff",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"rgb(1, 192, 116)",borderColor:"",borderWidth:0,color:"#fff"}},em={backgroundColor:"rgb(219, 255, 211)",lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 127, 71)",associativeLineColor:"rgb(160, 220, 63)",associativeLineTextColor:"rgb(160, 220, 63)",root:{fillColor:"rgb(15, 198, 113)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"#fff",color:"rgb(26, 26, 26)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"rgb(255, 127, 71)",borderColor:"",borderWidth:0,color:"#fff"}},tm=[{name:"奥利奥",value:"oreo",theme:qp,dark:!1},{name:"浅海",value:"shallowSea",theme:Gp,dark:!1},{name:"柠檬气泡",value:"lemonBubbles",theme:Wp,dark:!1},{name:"玫瑰",value:"rose",theme:Vp,dark:!1},{name:"海蓝线",value:"seaBlueLine",theme:Yp,dark:!1},{name:"霓虹灯",value:"neonLamp",theme:Zp,dark:!0},{name:"暗夜冰刃",value:"darkNightLceBlade",theme:Kp,dark:!0},{name:"莫兰迪",value:"morandi",theme:Xp,dark:!1},{name:"脑图经典5",value:"classic5",theme:Jp,dark:!1},{name:"暗色3",value:"dark3",theme:Qp,dark:!0},{name:"暗色4",value:"dark4",theme:$p,dark:!0},{name:"仙人掌",value:"cactus",theme:em,dark:!1}],nm={name:"Theme",components:{Sidebar:cp},props:{mindMap:{type:Object}},data(){return{themeList:[...oo["k"],...tm].reverse(),themeMap:Hp,theme:"",activeName:"",groupList:[]}},computed:{...Object(se["d"])(["activeSidebar","isDark"]),currentList(){return this.groupList.find(e=>e.name===this.activeName).list}},watch:{activeSidebar(e){"theme"===e?(this.theme=this.mindMap.getTheme(),this.handleDark(),this.$refs.sidebar.show=!0):this.$refs.sidebar.show=!1}},created(){this.initGroup(),this.theme=this.mindMap.getTheme(),this.handleDark(),this.mindMap.on("view_theme_change",this.handleViewThemeChange)},beforeDestroy(){this.mindMap.off("view_theme_change",this.handleViewThemeChange)},methods:{...Object(se["c"])(["setIsDark"]),handleViewThemeChange(){this.theme=this.mindMap.getTheme(),this.handleDark()},initGroup(){let e=["default","skyGreen","classic2","classic3","classicGreen","classicBlue","blueSky","brainImpairedPink","earthYellow","freshGreen","freshRed","romanticPurple","pinkGrape","mint"],t=[],n=[];this.themeList.forEach(r=>{e.includes(r.value)?t.push(r):r.dark||n.push(r)}),this.groupList=[{name:this.$t("theme.classics"),list:n},{name:this.$t("theme.dark"),list:this.themeList.filter(e=>e.dark)},{name:this.$t("theme.simple"),list:t}],this.activeName=this.groupList[0].name},useTheme(e){if(e.value===this.theme)return;this.theme=e.value,this.handleDark();const t=this.mindMap.getCustomThemeConfig(),n=Object.keys(t).length>0;n?this.$confirm(this.$t("theme.coverTip"),this.$t("theme.tip"),{confirmButtonText:this.$t("theme.cover"),cancelButtonText:this.$t("theme.reserve"),type:"warning"}).then(()=>{this.mindMap.setThemeConfig({},!0),this.changeTheme(e,{})}).catch(()=>{this.changeTheme(e,t)}):this.changeTheme(e,t)},changeTheme(e,t){this.$bus.$emit("showLoading"),this.mindMap.setTheme(e.value),Object(Wi["d"])({theme:{template:e.value,config:t}})},handleDark(){let e=this.themeList.find(e=>e.value===this.theme);this.setIsDark(e.dark)}}},rm=nm,im=(n("8952"),Object(p["a"])(rm,Bp,_p,!1,null,"80f2e6de",null)),om=im.exports,am=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("strusture.title")}},[t("div",{staticClass:"layoutList",class:{isDark:e.isDark}},e._l(e.layoutList,(function(n){return t("div",{key:n.value,staticClass:"layoutItem",class:{active:n.value===e.layout},on:{click:function(t){return e.useLayout(n)}}},[t("div",{staticClass:"imgBox"},[t("img",{attrs:{src:e.layoutImgMap[n.value],alt:""}})]),t("div",{staticClass:"name"},[e._v(e._s(n.name))])])})),0)])},sm=[],lm={name:"Structure",components:{Sidebar:cp},props:{mindMap:{type:Object}},data(){return{layoutList:oo["g"],layoutImgMap:jp,layout:""}},computed:{...Object(se["d"])(["activeSidebar","isDark"])},watch:{activeSidebar(e){"structure"===e?(this.layout=this.mindMap.getLayout(),this.$refs.sidebar.show=!0):this.$refs.sidebar.show=!1}},methods:{useLayout(e){this.layout=e.value,this.mindMap.setLayout(e.value),Object(Wi["d"])({layout:e.value})}}},cm=lm,um=(n("da5b"),Object(p["a"])(cm,am,sm,!1,null,"a218ac20",null)),hm=um.exports,dm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"countContainer",class:{isDark:e.isDark}},[t("div",{staticClass:"item"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("count.words")))]),t("span",{staticClass:"value"},[e._v(e._s(e.words))])]),t("div",{staticClass:"item"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("count.nodes")))]),t("span",{staticClass:"value"},[e._v(e._s(e.num))])])])},fm=[];let pm=document.createElement("div");var mm={name:"Count",props:{mindMap:{type:Object}},data(){return{textStr:"",words:0,num:0}},computed:{...Object(se["d"])(["isDark"])},created(){this.$bus.$on("data_change",this.onDataChange),this.mindMap&&this.onDataChange(this.mindMap.getData())},beforeDestroy(){this.$bus.$off("data_change",this.onDataChange)},methods:{onDataChange(e){this.textStr="",this.words=0,this.num=0,this.walk(e),pm.innerHTML=this.textStr,this.words=pm.textContent.length},walk(e){this.num++,this.textStr+=String(e.data.text)||"",e.children&&e.children.length>0&&e.children.forEach(e=>{this.walk(e)})}}},gm=mm,vm=(n("bf32"),Object(p["a"])(gm,dm,fm,!1,null,"0770e0d2",null)),bm=vm.exports,ym=function(){var e=this,t=e._self._c;return t("div",{staticClass:"navigatorContainer",class:{isDark:e.isDark}},[t("div",{staticClass:"item"},[t("el-select",{staticStyle:{width:"100px"},attrs:{size:"small"},on:{change:e.onLangChange},model:{value:e.lang,callback:function(t){e.lang=t},expression:"lang"}},e._l(e.langList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1),t("div",{staticClass:"item"},[t("div",{staticClass:"btn iconfont iconsousuo",on:{click:e.showSearch}})]),t("div",{staticClass:"item"},[t("MouseAction",{attrs:{isDark:e.isDark,mindMap:e.mindMap}})],1),t("div",{staticClass:"item"},[t("el-tooltip",{attrs:{effect:"dark",content:e.openMiniMap?e.$t("navigatorToolbar.closeMiniMap"):e.$t("navigatorToolbar.openMiniMap"),placement:"top"}},[t("div",{staticClass:"btn iconfont icondaohang1",on:{click:e.toggleMiniMap}})])],1),t("div",{staticClass:"item"},[t("el-tooltip",{attrs:{effect:"dark",content:e.isReadonly?e.$t("navigatorToolbar.edit"):e.$t("navigatorToolbar.readonly"),placement:"top"}},[t("div",{staticClass:"btn iconfont",class:[e.isReadonly?"iconyanjing":"iconbianji1"],on:{click:e.readonlyChange}})])],1),t("div",{staticClass:"item"},[t("Fullscreen",{attrs:{isDark:e.isDark,mindMap:e.mindMap}})],1),t("div",{staticClass:"item"},[t("Scale",{attrs:{isDark:e.isDark,mindMap:e.mindMap}})],1),t("div",{staticClass:"item"},[t("div",{staticClass:"btn iconfont",class:[e.isDark?"iconmoon_line":"iconlieri"],on:{click:e.toggleDark}})]),t("div",{staticClass:"item"},[t("el-dropdown",{on:{command:e.handleCommand}},[t("div",{staticClass:"btn iconfont iconbangzhu"}),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:"github"}},[e._v("Github")]),t("el-dropdown-item",{attrs:{command:"helpDoc"}},[e._v("使用文档")]),t("el-dropdown-item",{attrs:{command:"devDoc"}},[e._v("开发文档")]),t("el-dropdown-item",{attrs:{command:"site"}},[e._v("官方网站")]),t("el-dropdown-item",{attrs:{command:"issue"}},[e._v("意见反馈")]),t("el-dropdown-item",{attrs:{disabled:""}},[e._v("当前:v"+e._s(e.version))])],1)],1)],1)])},wm=[],xm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"scaleContainer",class:{isDark:e.isDark}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("scale.zoomOut"),placement:"top"}},[t("div",{staticClass:"btn el-icon-minus",on:{click:e.narrow}})]),t("div",{staticClass:"scaleInfo"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.scaleNum,expression:"scaleNum"}],attrs:{type:"text"},domProps:{value:e.scaleNum},on:{change:e.onScaleNumChange,focus:e.onScaleNumInputFocus,input:function(t){t.target.composing||(e.scaleNum=t.target.value)}}}),e._v("% ")]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("scale.zoomIn"),placement:"top"}},[t("div",{staticClass:"btn el-icon-plus",on:{click:e.enlarge}})])],1)},km=[],Am={name:"Scale",props:{mindMap:{type:Object},isDark:{type:Boolean}},data(){return{scaleNum:100,cacheScaleNum:0}},watch:{mindMap(e,t){e&&!t&&(this.mindMap.on("scale",e=>{this.scaleNum=this.toPer(e)}),this.scaleNum=this.toPer(this.mindMap.view.scale))}},methods:{toPer(e){return(100*e).toFixed(0)},narrow(){this.mindMap.view.narrow()},enlarge(){this.mindMap.view.enlarge()},onScaleNumInputFocus(){this.cacheScaleNum=this.scaleNum},onScaleNumChange(){const e=Number(this.scaleNum);if(Number.isNaN(e)||e<=0)this.scaleNum=this.cacheScaleNum;else{const e=this.mindMap.width/2,t=this.mindMap.height/2;this.mindMap.view.setScale(this.scaleNum/100,e,t)}}}},Cm=Am,Em=(n("6ffb0"),Object(p["a"])(Cm,xm,km,!1,null,"07c47fcc",null)),Sm=Em.exports,Tm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fullscreenContainer",class:{isDark:e.isDark}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("fullscreen.fullscreenShow"),placement:"top"}},[t("div",{staticClass:"btn iconfont iconquanping",on:{click:e.toFullscreenShow}})]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("fullscreen.fullscreenEdit"),placement:"top"}},[t("div",{staticClass:"btn iconfont iconquanping1",on:{click:e.toFullscreenEdit}})])],1)},Nm=[],Mm={name:"Fullscreen",props:{mindMap:{type:Object},isDark:{type:Boolean}},data(){return{}},created(){document[Ri]=()=>{setTimeout(()=>{this.mindMap.resize()},1e3)}},methods:{toFullscreenShow(){Fi(this.mindMap.el)},toFullscreenEdit(){Fi(document.body)}}},Lm=Mm,Om=(n("7812"),Object(p["a"])(Lm,Tm,Nm,!1,null,"1bcbabda",null)),Dm=Om.exports,Pm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mouseActionContainer",class:{isDark:e.isDark}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.useLeftKeySelectionRightKeyDrag?e.$t("mouseAction.tip2"):e.$t("mouseAction.tip1"),placement:"top"}},[t("div",{staticClass:"btn iconfont",class:[e.useLeftKeySelectionRightKeyDrag?"iconmouseR":"iconmouseL"],on:{click:e.toggleAction}})])],1)},Im=[],Rm={name:"MouseAction",props:{mindMap:{type:Object},isDark:{type:Boolean}},data(){return{}},computed:{...Object(se["d"])({useLeftKeySelectionRightKeyDrag:e=>e.localConfig.useLeftKeySelectionRightKeyDrag})},methods:{...Object(se["c"])(["setLocalConfig"]),toggleAction(){let e=!this.useLeftKeySelectionRightKeyDrag;this.mindMap.updateConfig({useLeftKeySelectionRightKeyDrag:e}),this.setLocalConfig({useLeftKeySelectionRightKeyDrag:e})}}},Fm=Rm,zm=(n("ad01"),Object(p["a"])(Fm,Pm,Im,!1,null,"a1887b1e",null)),Bm=zm.exports,_m=n("9225"),jm=n("a06c"),Hm={name:"NavigatorToolbar",components:{Scale:Sm,Fullscreen:Dm,MouseAction:Bm},props:{mindMap:{type:Object}},data(){return{version:jm.version,langList:Se,lang:"",openMiniMap:!1}},computed:{...Object(se["d"])(["isDark","isReadonly"])},created(){this.lang=Object(Wi["b"])()},methods:{...Object(se["c"])(["setIsDark","setIsReadonly"]),readonlyChange(){this.setIsReadonly(!this.isReadonly),this.mindMap.setMode(this.isReadonly?"readonly":"edit")},toggleMiniMap(){this.openMiniMap=!this.openMiniMap,this.$bus.$emit("toggle_mini_map",this.openMiniMap)},onLangChange(e){_m["a"].locale=e,Object(Wi["f"])(e),this.$bus.$emit("lang_change")},showSearch(){this.$bus.$emit("show_search")},toggleDark(){this.setIsDark(!this.isDark)},handleCommand(e){let t="";switch(e){case"github":t="https://github.com/wanglin2/mind-map";break;case"helpDoc":t="https://wanglin2.github.io/mind-map/#/help/zh/";break;case"devDoc":t="https://wanglin2.github.io/mind-map/#/doc/zh/introduction/";break;case"site":t="https://wanglin2.github.io/mind-map/#/index";break;case"issue":t="https://github.com/wanglin2/mind-map/issues/new";break;default:break}const n=document.createElement("a");n.href=t,n.target="_blank",n.click()}}},Um=Hm,qm=(n("eb43"),Object(p["a"])(Um,ym,wm,!1,null,"1f9b5dca",null)),Gm=qm.exports,Wm=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("shortcutKey.title")}},[t("div",{staticClass:"box",class:{isDark:e.isDark}},e._l(e.shortcutKeyList,(function(n){return t("div",{key:n.type},[t("div",{staticClass:"title"},[e._v(e._s(n.type))]),e._l(n.list,(function(n){return t("div",{key:n.value,staticClass:"list"},[t("div",{staticClass:"item"},[n.icon?t("span",{staticClass:"icon iconfont",class:[n.icon]}):e._e(),t("span",{staticClass:"name",attrs:{title:n.name}},[e._v(e._s(n.name))]),t("div",{staticClass:"value",attrs:{title:n.value}},[e._v(e._s(n.value))])])])}))],2)})),0)])},Vm=[],Ym={name:"ShortcutKey",components:{Sidebar:cp},data(){return{}},computed:{...Object(se["d"])(["activeSidebar","isDark"]),shortcutKeyList(){return Ze[this.$i18n.locale]||Ze.zh}},watch:{activeSidebar(e){this.$refs.sidebar.show="shortcutKey"===e}}},Zm=Ym,Km=(n("56c4"),Object(p["a"])(Zm,Wm,Vm,!1,null,"cff0b1d2",null)),Xm=Km.exports,Jm=function(){var e=this,t=e._self._c;return e.isShow?t("div",{staticClass:"contextmenuContainer listBox",class:{isDark:e.isDark},style:{left:e.left+"px",top:e.top+"px"}},["node"===e.type?[t("div",{staticClass:"item",class:{disabled:e.insertNodeBtnDisabled},on:{click:function(t){return e.exec("INSERT_NODE",e.insertNodeBtnDisabled)}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.insertSiblingNode")))]),t("span",{staticClass:"desc"},[e._v("Enter")])]),t("div",{staticClass:"item",class:{disabled:e.isGeneralization},on:{click:function(t){return e.exec("INSERT_CHILD_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.insertChildNode")))]),t("span",{staticClass:"desc"},[e._v("Tab")])]),t("div",{staticClass:"item",class:{disabled:e.insertNodeBtnDisabled},on:{click:function(t){return e.exec("INSERT_PARENT_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.insertParentNode")))]),t("span",{staticClass:"desc"},[e._v("Shift + Tab")])]),t("div",{staticClass:"item",class:{disabled:e.insertNodeBtnDisabled},on:{click:function(t){return e.exec("ADD_GENERALIZATION")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.insertSummary")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + G")])]),t("div",{staticClass:"item",class:{disabled:e.upNodeBtnDisabled},on:{click:function(t){return e.exec("UP_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.moveUpNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + ↑")])]),t("div",{staticClass:"item",class:{disabled:e.downNodeBtnDisabled},on:{click:function(t){return e.exec("DOWN_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.moveDownNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + ↓")])]),t("div",{staticClass:"item danger",on:{click:function(t){return e.exec("REMOVE_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.deleteNode")))]),t("span",{staticClass:"desc"},[e._v("Delete")])]),t("div",{staticClass:"item danger",on:{click:function(t){return e.exec("REMOVE_CURRENT_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.deleteCurrentNode")))]),t("span",{staticClass:"desc"},[e._v("Shift + Backspace")])]),t("div",{staticClass:"item",class:{disabled:e.isGeneralization},on:{click:function(t){return e.exec("COPY_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.copyNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + C")])]),t("div",{staticClass:"item",class:{disabled:e.isGeneralization},on:{click:function(t){return e.exec("CUT_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.cutNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + X")])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("PASTE_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.pasteNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + V")])]),e.hasHyperlink?t("div",{staticClass:"item",on:{click:function(t){return e.exec("REMOVE_HYPERLINK")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.removeHyperlink")))])]):e._e(),e.hasNote?t("div",{staticClass:"item",on:{click:function(t){return e.exec("REMOVE_NOTE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.removeNote")))])]):e._e()]:e._e(),"svg"===e.type?[t("div",{staticClass:"item",on:{click:function(t){return e.exec("RETURN_CENTER")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.backCenter")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + Enter")])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("EXPAND_ALL")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.expandAll")))])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("UNEXPAND_ALL")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.unExpandAll")))])]),t("div",{staticClass:"item"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.expandTo")))]),t("div",{staticClass:"subItems listBox",class:{isDark:e.isDark}},e._l(e.expandList,(function(n,r){return t("div",{key:n,staticClass:"item",on:{click:function(t){return e.exec("UNEXPAND_TO_LEVEL",!1,r+1)}}},[e._v(" "+e._s(n)+" ")])})),0)]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("RESET_LAYOUT")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.arrangeLayout")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + L")])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("FIT_CANVAS")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.fitCanvas")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + i")])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("TOGGLE_ZEN_MODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.zenMode")))]),e._v(" "+e._s(e.isZenMode?"√":"")+" ")])]:e._e()],2):e._e()},Qm=[],$m={name:"Contextmenu",props:{mindMap:{type:Object}},data(){return{isShow:!1,left:0,top:0,node:null,type:"",isMousedown:!1,mosuedownX:0,mosuedownY:0}},computed:{...Object(se["d"])({isZenMode:e=>e.localConfig.isZenMode,isDark:e=>e.isDark}),expandList(){return[this.$t("contextmenu.level1"),this.$t("contextmenu.level2"),this.$t("contextmenu.level3"),this.$t("contextmenu.level4"),this.$t("contextmenu.level5"),this.$t("contextmenu.level6")]},insertNodeBtnDisabled(){return!this.node||this.node.isRoot||this.node.isGeneralization},upNodeBtnDisabled(){if(!this.node||this.node.isRoot||this.node.isGeneralization)return!0;let e=0===this.node.parent.children.findIndex(e=>e===this.node);return e},downNodeBtnDisabled(){if(!this.node||this.node.isRoot||this.node.isGeneralization)return!0;let e=this.node.parent.children,t=e.findIndex(e=>e===this.node)===e.length-1;return t},isGeneralization(){return this.node.isGeneralization},hasHyperlink(){return!!this.node.getData("hyperlink")},hasNote(){return!!this.node.getData("note")}},created(){this.$bus.$on("node_contextmenu",this.show),this.$bus.$on("node_click",this.hide),this.$bus.$on("draw_click",this.hide),this.$bus.$on("expand_btn_click",this.hide),this.$bus.$on("svg_mousedown",this.onMousedown),this.$bus.$on("mouseup",this.onMouseup)},beforeDestroy(){this.$bus.$off("node_contextmenu",this.show),this.$bus.$off("node_click",this.hide),this.$bus.$off("draw_click",this.hide),this.$bus.$off("expand_btn_click",this.hide),this.$bus.$off("svg_mousedown",this.onMousedown),this.$bus.$off("mouseup",this.onMouseup)},methods:{...Object(se["c"])(["setLocalConfig"]),show(e,t){this.type="node",this.left=e.clientX+10,this.top=e.clientY+10,this.isShow=!0,this.node=t},onMousedown(e){3===e.which&&(this.mosuedownX=e.clientX,this.mosuedownY=e.clientY,this.isMousedown=!0)},onMouseup(e){this.isMousedown&&(this.isMousedown=!1,Math.abs(this.mosuedownX-e.clientX)>3||Math.abs(this.mosuedownY-e.clientY)>3?this.hide():this.show2(e))},show2(e){this.type="svg",this.left=e.clientX+10,this.top=e.clientY+10,this.isShow=!0},hide(){this.isShow=!1,this.left=0,this.top=0,this.type=""},exec(e,t,...n){if(!t){switch(e){case"COPY_NODE":this.mindMap.renderer.copy();break;case"CUT_NODE":this.mindMap.renderer.cut();break;case"PASTE_NODE":this.mindMap.renderer.paste();break;case"RETURN_CENTER":this.mindMap.renderer.setRootNodeCenter();break;case"TOGGLE_ZEN_MODE":this.setLocalConfig({isZenMode:!this.isZenMode});break;case"FIT_CANVAS":this.mindMap.view.fit();break;case"REMOVE_HYPERLINK":this.node.setHyperlink("","");break;case"REMOVE_NOTE":this.node.setNote("");break;default:this.$bus.$emit("execCommand",e,...n);break}this.hide()}}}},eg=$m,tg=(n("fca3"),Object(p["a"])(eg,Jm,Qm,!1,null,"dbfd708e",null)),ng=tg.exports,rg=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showRichTextToolbar,expression:"showRichTextToolbar"}],ref:"richTextToolbar",staticClass:"richTextToolbar",class:{isDark:e.isDark},style:e.style,on:{"&click":function(e){e.stopPropagation()}}},[t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.bold"),placement:"top"}},[t("div",{staticClass:"btn",class:{active:e.formatInfo.bold},on:{click:e.toggleBold}},[t("span",{staticClass:"icon iconfont iconzitijiacu"})])]),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.italic"),placement:"top"}},[t("div",{staticClass:"btn",class:{active:e.formatInfo.italic},on:{click:e.toggleItalic}},[t("span",{staticClass:"icon iconfont iconzitixieti"})])]),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.underline"),placement:"top"}},[t("div",{staticClass:"btn",class:{active:e.formatInfo.underline},on:{click:e.toggleUnderline}},[t("span",{staticClass:"icon iconfont iconzitixiahuaxian"})])]),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.strike"),placement:"top"}},[t("div",{staticClass:"btn",class:{active:e.formatInfo.strike},on:{click:e.toggleStrike}},[t("span",{staticClass:"icon iconfont iconshanchuxian"})])]),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.fontFamily"),placement:"top"}},[t("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[t("div",{staticClass:"fontOptionsList",class:{isDark:e.isDark}},e._l(e.fontFamilyList,(function(n){return t("div",{key:n.value,staticClass:"fontOptionItem",class:{active:e.formatInfo.font===n.value},style:{fontFamily:n.value},on:{click:function(t){return e.changeFontFamily(n.value)}}},[e._v(" "+e._s(n.name)+" ")])})),0),t("div",{staticClass:"btn",attrs:{slot:"reference"},slot:"reference"},[t("span",{staticClass:"icon iconfont iconxingzhuang-wenzi"})])])],1),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.fontSize"),placement:"top"}},[t("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[t("div",{staticClass:"fontOptionsList",class:{isDark:e.isDark}},e._l(e.fontSizeList,(function(n){return t("div",{key:n,staticClass:"fontOptionItem",class:{active:e.formatInfo.size===n+"px"},style:{fontSize:n+"px"},on:{click:function(t){return e.changeFontSize(n)}}},[e._v(" "+e._s(n)+"px ")])})),0),t("div",{staticClass:"btn",attrs:{slot:"reference"},slot:"reference"},[t("span",{staticClass:"icon iconfont iconcase fontColor"})])])],1),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.color"),placement:"top"}},[t("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.fontColor},on:{change:e.changeFontColor}}),t("div",{staticClass:"btn",style:{color:e.formatInfo.color},attrs:{slot:"reference"},slot:"reference"},[t("span",{staticClass:"icon iconfont iconzitiyanse"})])],1)],1),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.backgroundColor"),placement:"top"}},[t("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.fontBackgroundColor},on:{change:e.changeFontBackgroundColor}}),t("div",{staticClass:"btn",attrs:{slot:"reference"},slot:"reference"},[t("span",{staticClass:"icon iconfont iconbeijingyanse"})])],1)],1),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.removeFormat"),placement:"top"}},[t("div",{staticClass:"btn",on:{click:e.removeFormat}},[t("span",{staticClass:"icon iconfont iconqingchu"})])])],1)},ig=[],og={name:"RichTextToolbar",components:{Color:Tp},props:{mindMap:{type:Object}},data(){return{fontSizeList:ce,showRichTextToolbar:!1,style:{left:0,top:0},fontColor:"",fontBackgroundColor:"",formatInfo:{}}},computed:{...Object(se["d"])(["isDark"]),fontFamilyList(){return je[this.$i18n.locale]||je.zh}},created(){this.$bus.$on("rich_text_selection_change",this.onRichTextSelectionChange)},mounted(){document.body.append(this.$refs.richTextToolbar)},beforeDestroy(){this.$bus.$off("rich_text_selection_change",this.onRichTextSelectionChange)},methods:{onRichTextSelectionChange(e,t,n){e&&(this.style.left=t.left+t.width/2+"px",this.style.top=t.top-60+"px",this.formatInfo={...n||{}}),this.showRichTextToolbar=e},toggleBold(){this.formatInfo.bold=!this.formatInfo.bold,this.mindMap.richText.formatText({bold:this.formatInfo.bold})},toggleItalic(){this.formatInfo.italic=!this.formatInfo.italic,this.mindMap.richText.formatText({italic:this.formatInfo.italic})},toggleUnderline(){this.formatInfo.underline=!this.formatInfo.underline,this.mindMap.richText.formatText({underline:this.formatInfo.underline})},toggleStrike(){this.formatInfo.strike=!this.formatInfo.strike,this.mindMap.richText.formatText({strike:this.formatInfo.strike})},changeFontFamily(e){this.formatInfo.font=e,this.mindMap.richText.formatText({font:e})},changeFontSize(e){this.formatInfo.size=e,this.mindMap.richText.formatText({size:e+"px"})},changeFontColor(e){this.formatInfo.color=e,this.mindMap.richText.formatText({color:e})},changeFontBackgroundColor(e){this.formatInfo.background=e,this.mindMap.richText.formatText({background:e})},removeFormat(){this.mindMap.richText.removeFormat()}}},ag=og,sg=(n("146c"),Object(p["a"])(ag,rg,ig,!1,null,"50a360a9",null)),lg=sg.exports,cg=function(){var e=this,t=e._self._c;return t("div",{ref:"noteContentViewer",staticClass:"noteContentViewer",style:{left:this.left+"px",top:this.top+"px",visibility:e.show?"visible":"hidden"},on:{click:function(e){e.stopPropagation()}}})},ug=[],hg=n("f059"),dg=n.n(hg),fg=(n("fe5f"),{name:"NodeNoteContentShow",data(){return{editor:null,show:!1,left:0,top:0,node:null}},created(){this.$bus.$on("showNoteContent",this.onShowNoteContent),this.$bus.$on("hideNoteContent",this.hideNoteContent),document.body.addEventListener("click",this.hideNoteContent),this.$bus.$on("node_active",this.hideNoteContent),this.$bus.$on("scale",this.onScale),this.$bus.$on("svg_mousedown",this.hideNoteContent)},mounted(){this.initEditor()},beforeDestroy(){this.$bus.$off("showNoteContent",this.onShowNoteContent),this.$bus.$off("hideNoteContent",this.hideNoteContent),document.body.removeEventListener("click",this.hideNoteContent),this.$bus.$off("node_active",this.hideNoteContent),this.$bus.$off("scale",this.onScale),this.$bus.$off("svg_mousedown",this.hideNoteContent)},methods:{onShowNoteContent(e,t,n,r){this.node=r,this.editor.setMarkdown(e),this.updateNoteContentPosition(t,n),this.show=!0},updateNoteContentPosition(e,t){this.left=e,this.top=t},onScale(){if(!this.node||!this.show)return;const{left:e,top:t}=this.node.getNoteContentPosition();this.updateNoteContentPosition(e,t)},hideNoteContent(){this.show=!1},initEditor(){this.editor||(this.editor=new dg.a({el:this.$refs.noteContentViewer}))}}}),pg=fg,mg=(n("3aa9"),Object(p["a"])(pg,cg,ug,!1,null,"1484624c",null)),gg=mg.exports,vg=function(){var e=this,t=e._self._c;return e.showMiniMap?t("div",{ref:"navigatorBox",staticClass:"navigatorBox",class:{isDark:e.isDark},on:{mousedown:e.onMousedown,mousemove:e.onMousemove,mouseup:e.onMouseup}},[t("div",{ref:"svgBox",staticClass:"svgBox",style:{transform:`scale(${e.svgBoxScale})`,left:e.svgBoxLeft+"px",top:e.svgBoxTop+"px"}},[t("img",{attrs:{src:e.mindMapImg},on:{mousedown:function(e){e.preventDefault()}}})]),t("div",{staticClass:"windowBox",style:e.viewBoxStyle})]):e._e()},bg=[],yg={props:{mindMap:{type:Object}},data(){return{showMiniMap:!1,timer:null,boxWidth:0,boxHeight:0,svgBoxScale:1,svgBoxLeft:0,svgBoxTop:0,viewBoxStyle:{left:0,top:0,bottom:0,right:0},mindMapImg:""}},computed:{...Object(se["d"])(["isDark"])},mounted(){this.$bus.$on("toggle_mini_map",this.toggle_mini_map),this.$bus.$on("data_change",this.data_change),this.$bus.$on("view_data_change",this.data_change),this.$bus.$on("node_tree_render_end",this.data_change)},destroyed(){this.$bus.$off("toggle_mini_map",this.toggle_mini_map),this.$bus.$off("data_change",this.data_change),this.$bus.$off("view_data_change",this.data_change),this.$bus.$off("node_tree_render_end",this.data_change)},methods:{toggle_mini_map(e){this.showMiniMap=e,this.$nextTick(()=>{this.$refs.navigatorBox&&this.init(),this.$refs.svgBox&&this.drawMiniMap()})},data_change(){this.showMiniMap&&(clearTimeout(this.timer),this.timer=setTimeout(()=>{this.drawMiniMap()},500))},init(){let{width:e,height:t}=this.$refs.navigatorBox.getBoundingClientRect();this.boxWidth=e,this.boxHeight=t},drawMiniMap(){let{getImgUrl:e,viewBoxStyle:t,miniMapBoxScale:n,miniMapBoxLeft:r,miniMapBoxTop:i}=this.mindMap.miniMap.calculationMiniMap(this.boxWidth,this.boxHeight);e(e=>{this.mindMapImg=e}),this.viewBoxStyle=t,this.svgBoxScale=n,this.svgBoxLeft=r,this.svgBoxTop=i},onMousedown(e){this.mindMap.miniMap.onMousedown(e)},onMousemove(e){this.mindMap.miniMap.onMousemove(e)},onMouseup(e){this.mindMap.miniMap.onMouseup(e)}}},wg=yg,xg=(n("a121"),Object(p["a"])(wg,vg,bg,!1,null,"c41a0b0a",null)),kg=xg.exports,Ag=function(){var e=this,t=e._self._c;return t("viewer",{attrs:{images:e.images}},e._l(e.images,(function(e){return t("img",{key:e,attrs:{src:e}})})),0)},Cg=[],Eg={props:{mindMap:{type:Object,default(){return null}}},data(){return{images:[]}},mounted(){this.mindMap.on("node_img_dblclick",this.onNodeTmgDblclick)},beforeDestroy(){this.mindMap.off("node_img_dblclick",this.onNodeTmgDblclick)},methods:{onNodeTmgDblclick(e,t){t.stopPropagation(),t.preventDefault(),this.images=[e.nodeData.data.image],this.$viewerApi({images:this.images})}}},Sg=Eg,Tg=Object(p["a"])(Sg,Ag,Cg,!1,null,null,null),Ng=Tg.exports,Mg=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebarTriggerContainer",class:{hasActive:e.show&&e.activeSidebar,show:e.show,isDark:e.isDark},on:{click:function(e){e.stopPropagation()}}},[t("div",{staticClass:"toggleShowBtn",class:{hide:!e.show},on:{click:function(t){e.show=!e.show}}},[t("span",{staticClass:"iconfont iconjiantouyou"})]),t("div",{staticClass:"trigger"},e._l(e.triggerList,(function(n){return t("div",{key:n.value,staticClass:"triggerItem",class:{active:e.activeSidebar===n.value},on:{click:function(t){return e.trigger(n)}}},[t("div",{staticClass:"triggerIcon iconfont",class:[n.icon]}),t("div",{staticClass:"triggerName"},[e._v(e._s(n.name))])])})),0)])},Lg=[],Og={name:"SidebarTrigger",data(){return{show:!0}},computed:{...Object(se["d"])(["activeSidebar","isDark"]),triggerList(){return Je[this.$i18n.locale]||Je.zh}},methods:{...Object(se["c"])(["setActiveSidebar"]),trigger(e){this.setActiveSidebar(e.value)}}},Dg=Og,Pg=(n("7100"),Object(p["a"])(Dg,Mg,Lg,!1,null,"7fe703e0",null)),Ig=Pg.exports,Rg=function(){var e=this,t=e._self._c;return t("div",{staticClass:"customNodeContent"},[t("p",[e._v(e._s(e.title))]),t("p",{domProps:{innerHTML:e._s(e.html)}}),t("p",{style:{backgroundColor:e.color},on:{click:e.onClick}},[e._v("点击我会变色")])])},Fg=[],zg={props:{html:{type:String,default:""}},data(){return{title:"我是自定义节点",color:""}},methods:{onClick(){this.color="red"}}},Bg=zg,_g=(n("7cb3"),Object(p["a"])(Bg,Rg,Fg,!1,null,"6ef61ceb",null)),jg=(_g.exports,n("41cb"),n("c0d6"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"searchContainer",class:{isDark:e.isDark,show:e.show},on:{mouseleave:e.onMouseleave}},[t("div",{staticClass:"closeBtnBox"},[t("span",{staticClass:"closeBtn el-icon-close",on:{click:e.close}})]),t("div",{staticClass:"searchInputBox"},[t("el-input",{ref:"searchInputRef",attrs:{placeholder:e.$t("search.searchPlaceholder"),size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.onSearchNext.apply(null,arguments))},keydown:function(e){e.stopPropagation()}},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}},[t("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"}),e.isUndef(e.searchText)?e._e():t("el-button",{attrs:{slot:"append",size:"small"},on:{click:function(t){e.showReplaceInput=!0}},slot:"append"},[e._v(e._s(e.$t("search.replace")))])],1),e.showSearchInfo?t("div",{staticClass:"searchInfo"},[e._v(" "+e._s(e.currentIndex)+" / "+e._s(e.total)+" ")]):e._e()],1),e.showReplaceInput?t("el-input",{ref:"replaceInputRef",staticStyle:{margin:"12px 0"},attrs:{placeholder:e.$t("search.replacePlaceholder"),size:"small"},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.replaceText,callback:function(t){e.replaceText=t},expression:"replaceText"}},[t("i",{staticClass:"el-input__icon el-icon-edit",attrs:{slot:"prefix"},slot:"prefix"}),t("el-button",{attrs:{slot:"append",size:"small"},on:{click:e.hideReplaceInput},slot:"append"},[e._v(e._s(e.$t("search.cancel")))])],1):e._e(),e.showReplaceInput?t("div",{staticClass:"btnList"},[t("el-button",{attrs:{size:"small",disabled:e.isReadonly},on:{click:e.replace}},[e._v(e._s(e.$t("search.replace")))]),t("el-button",{attrs:{size:"small",disabled:e.isReadonly},on:{click:e.replaceAll}},[e._v(e._s(e.$t("search.replaceAll")))])],1):e._e()],1)}),Hg=[],Ug={name:"Search",props:{mindMap:{type:Object}},data(){return{show:!1,searchText:"",replaceText:"",showReplaceInput:!1,currentIndex:0,total:0,showSearchInfo:!1}},computed:{...Object(se["d"])(["isDark","isReadonly"])},watch:{searchText(){Object(v["I"])(this.searchText)&&(this.currentIndex=0,this.total=0,this.showSearchInfo=!1)}},created(){this.$bus.$on("show_search",this.showSearch),this.mindMap.on("search_info_change",this.handleSearchInfoChange),this.mindMap.keyCommand.addShortcut("Control+f",this.showSearch)},beforeDestroy(){this.$bus.$off("show_search",this.showSearch),this.mindMap.off("search_info_change",this.handleSearchInfoChange),this.mindMap.keyCommand.removeShortcut("Control+f",this.showSearch)},methods:{isUndef:v["I"],handleSearchInfoChange(e){this.currentIndex=e.currentIndex+1,this.total=e.total,this.showSearchInfo=!0},showSearch(){this.$bus.$emit("closeSideBar"),this.show=!0},hideReplaceInput(){this.showReplaceInput=!1,this.replaceText=""},onSearchNext(){this.mindMap.search.search(this.searchText,()=>{this.$refs.searchInputRef.focus()})},replace(){this.mindMap.search.replace(this.replaceText,!0)},replaceAll(){this.mindMap.search.replaceAll(this.replaceText)},close(){this.show=!1,this.showSearchInfo=!1,this.total=0,this.currentIndex=0,this.searchText="",this.hideReplaceInput(),this.mindMap.search.endSearch()},onMouseleave(){this.$refs.searchInputRef&&this.$refs.searchInputRef.blur(),this.$refs.replaceInputRef&&this.$refs.replaceInputRef.blur()}}},qg=Ug,Gg=(n("c6fd"),Object(p["a"])(qg,jg,Hg,!1,null,"6455708e",null)),Wg=Gg.exports,Vg=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("nodeIconSidebar.title")}},[t("div",{staticClass:"box",class:{isDark:e.isDark}},[t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:e.$t("nodeIconSidebar.icon"),name:"icon"}}),t("el-tab-pane",{attrs:{label:e.$t("nodeIconSidebar.sticker"),name:"image"}})],1),t("div",{staticClass:"boxContent"},["icon"===e.activeName?t("div",{staticClass:"iconBox"},e._l(e.nodeIconList,(function(n){return t("div",{key:n.name,staticClass:"item"},[t("div",{staticClass:"title"},[e._v(e._s(n.name))]),t("div",{staticClass:"list"},e._l(n.list,(function(r){return t("div",{key:r.name,staticClass:"icon",class:{selected:e.iconList.includes(n.type+"_"+r.name)},domProps:{innerHTML:e._s(e.getHtml(r.icon))},on:{click:function(t){return e.setIcon(n.type,r.name)}}})})),0)])})),0):e._e(),"image"===e.activeName?t("div",{staticClass:"imageBox"},e._l(e.nodeImageList,(function(n){return t("div",{key:n.name,staticClass:"item"},[t("div",{staticClass:"title"},[e._v(e._s(n.name))]),t("div",{staticClass:"list"},e._l(n.list,(function(n){return t("div",{key:n.url,staticClass:"icon",class:{selected:e.nodeImage===n.url},on:{click:function(t){return e.setImage(n)}}},[t("img",{attrs:{src:n.url,alt:""}})])})),0)])})),0):e._e()])],1)])},Yg=[],Zg=n("7cc6"),Kg=n.n(Zg),Xg=n("a493"),Jg=n.n(Xg),Qg=n("e921"),$g=n.n(Qg),ev=n("6490"),tv=n.n(ev),nv=n("41c5"),rv=n.n(nv),iv=n("b684"),ov=n.n(iv),av=n("4f5a"),sv=n.n(av),lv=n("9c85"),cv=n.n(lv),uv=n("3247"),hv=n.n(uv),dv=n("26eb"),fv=n.n(dv),pv=n("9f18"),mv=n.n(pv),gv=n("eab8"),vv=n.n(gv),bv=n("ad10"),yv=n.n(bv),wv=n("fe40"),xv=n.n(wv),kv=n("f670"),Av=n.n(kv),Cv=n("b8fe"),Ev=n.n(Cv),Sv=n("a641"),Tv=n.n(Sv),Nv=n("4910"),Mv=n.n(Nv),Lv=n("b765"),Ov=n.n(Lv),Dv=n("347b"),Pv=n.n(Dv),Iv=n("577e6"),Rv=n.n(Iv),Fv=n("c99b"),zv=n.n(Fv),Bv=n("3acd"),_v=n.n(Bv),jv=n("e40b"),Hv=n.n(jv),Uv=n("f6d6"),qv=n.n(Uv),Gv=n("aecb"),Wv=n.n(Gv),Vv=n("299e"),Yv=n.n(Vv),Zv=n("de62"),Kv=n.n(Zv),Xv=n("9537"),Jv=n.n(Xv),Qv=n("ea51"),$v=n.n(Qv),eb=n("e114"),tb=n.n(eb),nb=n("e274"),rb=n.n(nb),ib=n("9643"),ob=n.n(ib),ab=n("ac4f"),sb=n.n(ab),lb=n("f54b"),cb=n.n(lb),ub=n("e8ae"),hb=n.n(ub),db=n("fae8"),fb=n.n(db),pb=n("8763"),mb=n.n(pb),gb=n("5fd6"),vb=n.n(gb),bb=n("33d7"),yb=n.n(bb),wb=n("9cf4"),xb=n.n(wb),kb=n("e34b"),Ab=n.n(kb),Cb=n("ca39"),Eb=n.n(Cb),Sb=n("1faf"),Tb=n.n(Sb),Nb=n("ae00"),Mb=n.n(Nb),Lb=n("eadc"),Ob=n.n(Lb),Db=n("82b0"),Pb=n.n(Db),Ib=n("da5e"),Rb=n.n(Ib),Fb=n("b75f"),zb=n.n(Fb),Bb=n("290f"),_b=n.n(Bb),jb=n("8113"),Hb=n.n(jb),Ub=n("4244"),qb=n.n(Ub),Gb=n("3469"),Wb=n.n(Gb),Vb=n("e531"),Yb=n.n(Vb),Zb=n("8b39"),Kb=n.n(Zb),Xb=n("1bc3"),Jb=n.n(Xb),Qb=n("12b7"),$b=n.n(Qb),ey=n("25cac"),ty=n.n(ey),ny=n("0e5fa"),ry=n.n(ny),iy=n("8cd8"),oy=n.n(iy),ay=n("655f"),sy=n.n(ay),ly=n("e00a"),cy=n.n(ly),uy=n("594c"),hy=n.n(uy),dy=n("8484"),fy=n.n(dy),py=n("a8729"),my=n.n(py),gy=n("b019"),vy=n.n(gy),by=n("8ce6"),yy=n.n(by),wy=n("7d59"),xy=n.n(wy),ky=n("265a"),Ay=n.n(ky),Cy=n("9461"),Ey=n.n(Cy),Sy=n("da72"),Ty=n.n(Sy),Ny=n("b93d"),My=n.n(Ny),Ly=n("8f8b"),Oy=n.n(Ly),Dy=n("9897"),Py=n.n(Dy),Iy=n("c442"),Ry=n.n(Iy),Fy=n("7f93"),zy=n.n(Fy),By=n("24c7"),_y=n.n(By),jy=n("cacf"),Hy=n.n(jy),Uy=n("6ade"),qy=n.n(Uy),Gy=n("5a18"),Wy=n.n(Gy),Vy=n("5b16"),Yy=n.n(Vy),Zy=n("e35d"),Ky=n.n(Zy),Xy=n("3d18"),Jy=n.n(Xy),Qy=n("3bd3"),$y=n.n(Qy),ew=n("0a8f"),tw=n.n(ew),nw=n("318a"),rw=n.n(nw),iw=n("17f2"),ow=n.n(iw),aw=n("1c6b"),sw=n.n(aw),lw=n("482d"),cw=n.n(lw),uw=n("f796"),hw=n.n(uw),dw=n("049e"),fw=n.n(dw),pw=n("1e35"),mw=n.n(pw),gw=n("c97e"),vw=n.n(gw),bw=n("d67c"),yw=n.n(bw),ww=n("369f"),xw=n.n(ww),kw=n("5e32"),Aw=n.n(kw),Cw=n("e362"),Ew=n.n(Cw),Sw=n("6412"),Tw=n.n(Sw),Nw=n("0914"),Mw=n.n(Nw),Lw=n("22a7"),Ow=n.n(Lw),Dw=n("cace"),Pw=n.n(Dw),Iw=n("528d"),Rw=n.n(Iw),Fw=n("43cf"),zw=n.n(Fw),Bw=n("d875"),_w=n.n(Bw),jw=n("c87a"),Hw=n.n(jw),Uw=n("ea46"),qw=n.n(Uw),Gw=n("60fc"),Ww=n.n(Gw),Vw=n("07f3"),Yw=n.n(Vw),Zw=n("5023"),Kw=n.n(Zw),Xw=n("e437"),Jw=n.n(Xw),Qw=n("7f10"),$w=n.n(Qw),ex=n("a747"),tx=n.n(ex),nx=n("b46e"),rx=n.n(nx),ix=n("bd3c"),ox=n.n(ix),ax=n("7a10"),sx=n.n(ax),lx=n("0fb5"),cx=n.n(lx),ux=n("5af9"),hx=n.n(ux),dx=n("ba0f"),fx=n.n(dx),px=n("21cd"),mx=n.n(px),gx=n("35aa"),vx=n.n(gx),bx=n("aee9"),yx=n.n(bx),wx=n("ded7"),xx=n.n(wx),kx=n("aac9"),Ax=n.n(kx),Cx=n("0455"),Ex=n.n(Cx),Sx=n("027d"),Tx=n.n(Sx),Nx=n("f781"),Mx=n.n(Nx),Lx=n("7c97"),Ox=n.n(Lx),Dx=n("d271"),Px=n.n(Dx),Ix=n("cbf7"),Rx=n.n(Ix),Fx=n("a028"),zx=n.n(Fx),Bx=n("ca50"),_x=n.n(Bx),jx=n("ea3b"),Hx=n.n(jx),Ux=n("93af"),qx=n.n(Ux),Gx=n("2710"),Wx=n.n(Gx),Vx=n("3752"),Yx=n.n(Vx),Zx=n("8722"),Kx=n.n(Zx),Xx=n("3b50"),Jx=n.n(Xx),Qx=n("67dd"),$x=n.n(Qx),ek=n("229d"),tk=n.n(ek),nk=n("6d42"),rk=n.n(nk),ik=n("77f4"),ok=n.n(ik),ak=n("c53a"),sk=n.n(ak),lk=n("1485"),ck=n.n(lk),uk=n("b466"),hk=n.n(uk),dk=n("6705"),fk=n.n(dk),pk=n("b467"),mk=n.n(pk),gk=n("ee12"),vk=n.n(gk),bk=n("fee0"),yk=n.n(bk),wk=n("a3e0"),xk=n.n(wk),kk=n("bce0"),Ak=n.n(kk),Ck=n("9c58"),Ek=n.n(Ck),Sk=n("5e35"),Tk=n.n(Sk),Nk=n("6f5c"),Mk=n.n(Nk),Lk=n("a057"),Ok=n.n(Lk),Dk=n("2c41"),Pk=n.n(Dk),Ik=n("4659"),Rk=n.n(Ik),Fk=n("5082"),zk=n.n(Fk),Bk=n("9b17"),_k=n.n(Bk),jk=n("bd4d"),Hk=n.n(jk),Uk=n("0e25"),qk=n.n(Uk),Gk=n("7be0"),Wk=n.n(Gk),Vk=n("29dc"),Yk=n.n(Vk),Zk=n("e4a4"),Kk=n.n(Zk),Xk=n("5edb"),Jk=n.n(Xk),Qk=n("02a0"),$k=n.n(Qk),eA=n("3ec8"),tA=n.n(eA),nA=n("d5e5"),rA=n.n(nA),iA=n("2a43"),oA=n.n(iA),aA=n("ceaa"),sA=n.n(aA),lA=n("325b"),cA=n.n(lA),uA=n("98ee"),hA=n.n(uA),dA=n("0613"),fA=n.n(dA),pA=n("c5b2"),mA=n.n(pA),gA=n("c0b1"),vA=n.n(gA),bA=n("d4e4"),yA=n.n(bA),wA=n("4869"),xA=n.n(wA),kA=n("12a6"),AA=n.n(kA),CA=n("0bf4"),EA=n.n(CA),SA=n("14bd"),TA=n.n(SA),NA=n("a76c"),MA=n.n(NA),LA=n("8121"),OA=n.n(LA),DA=n("2783"),PA=n.n(DA),IA=n("65ee"),RA=n.n(IA),FA=n("db91"),zA=n.n(FA),BA=n("c80c"),_A=n.n(BA),jA=n("9f38"),HA=n.n(jA),UA=n("6c25"),qA=n.n(UA),GA=n("0e50"),WA=n.n(GA),VA=n("cd5f"),YA=n.n(VA),ZA=n("56d3"),KA=n.n(ZA),XA=n("2613"),JA=n.n(XA),QA=n("7e11"),$A=n.n(QA),eC=n("bf26"),tC=n.n(eC),nC=n("89c8"),rC=n.n(nC),iC=n("6d50"),oC=n.n(iC),aC=n("b0d8"),sC=n.n(aC),lC=n("a7fd"),cC=n.n(lC),uC=n("0082"),hC=n.n(uC),dC=n("c8db"),fC=n.n(dC),pC=n("a3cc"),mC=n.n(pC),gC=n("222a"),vC=n.n(gC),bC=n("7718"),yC=n.n(bC),wC=n("c099"),xC=n.n(wC),kC=n("b259"),AC=n.n(kC),CC=n("c605"),EC=n.n(CC),SC=n("6d75"),TC=n.n(SC),NC=n("35ae"),MC=n.n(NC),LC=n("103a"),OC=n.n(LC),DC=n("813c"),PC=n.n(DC),IC=n("b291"),RC=n.n(IC),FC=n("14d4"),zC=n.n(FC),BC=n("be45"),_C=n.n(BC),jC=n("dbfc"),HC=n.n(jC),UC=n("227b"),qC=n.n(UC),GC=n("5227"),WC=n.n(GC),VC=[{name:"商务",list:[{url:Kg.a,width:100,height:100},{url:Jg.a,width:100,height:100},{url:$g.a,width:100,height:100},{url:tv.a,width:100,height:100},{url:rv.a,width:100,height:100},{url:ov.a,width:100,height:100},{url:sv.a,width:100,height:100},{url:cv.a,width:100,height:100},{url:hv.a,width:100,height:100},{url:fv.a,width:100,height:100},{url:mv.a,width:100,height:100},{url:vv.a,width:100,height:100},{url:yv.a,width:100,height:100},{url:xv.a,width:100,height:100},{url:Av.a,width:100,height:100},{url:Ev.a,width:100,height:100},{url:Tv.a,width:100,height:100},{url:Mv.a,width:100,height:100},{url:Ov.a,width:100,height:100},{url:Pv.a,width:100,height:100},{url:Rv.a,width:100,height:100},{url:zv.a,width:100,height:100},{url:_v.a,width:100,height:100},{url:Hv.a,width:100,height:100},{url:qv.a,width:100,height:100},{url:Wv.a,width:100,height:100},{url:Yv.a,width:100,height:100},{url:Kv.a,width:100,height:100},{url:Jv.a,width:100,height:100},{url:$v.a,width:100,height:100},{url:tb.a,width:100,height:100},{url:rb.a,width:100,height:100},{url:ob.a,width:100,height:100},{url:sb.a,width:100,height:100},{url:cb.a,width:100,height:100},{url:hb.a,width:100,height:100},{url:fb.a,width:100,height:100},{url:mb.a,width:100,height:100}]},{name:"教育",list:[{url:vb.a,width:100,height:100},{url:yb.a,width:100,height:100},{url:xb.a,width:100,height:100},{url:Ab.a,width:100,height:100},{url:Eb.a,width:100,height:100},{url:Tb.a,width:100,height:100},{url:Mb.a,width:100,height:100},{url:Ob.a,width:100,height:100},{url:Pb.a,width:100,height:100},{url:Rb.a,width:100,height:100},{url:zb.a,width:100,height:100},{url:_b.a,width:100,height:100},{url:Hb.a,width:100,height:100},{url:qb.a,width:100,height:100},{url:Wb.a,width:100,height:100},{url:Yb.a,width:100,height:100},{url:Kb.a,width:100,height:100},{url:Jb.a,width:100,height:100},{url:$b.a,width:100,height:100},{url:ty.a,width:100,height:100},{url:ry.a,width:100,height:100},{url:oy.a,width:100,height:100},{url:sy.a,width:100,height:100},{url:cy.a,width:100,height:100},{url:hy.a,width:100,height:100},{url:fy.a,width:100,height:100},{url:my.a,width:100,height:100},{url:vy.a,width:100,height:100},{url:yy.a,width:100,height:100},{url:xy.a,width:100,height:100},{url:Ay.a,width:100,height:100},{url:Ey.a,width:100,height:100},{url:Ty.a,width:100,height:100},{url:My.a,width:100,height:100},{url:Oy.a,width:100,height:100},{url:Py.a,width:100,height:100},{url:Ry.a,width:100,height:100},{url:zy.a,width:100,height:100},{url:_y.a,width:100,height:100},{url:Hy.a,width:100,height:100},{url:qy.a,width:100,height:100},{url:Wy.a,width:100,height:100},{url:Yy.a,width:100,height:100},{url:Ky.a,width:100,height:100},{url:Jy.a,width:100,height:100},{url:$y.a,width:100,height:100},{url:tw.a,width:100,height:100},{url:rw.a,width:100,height:100},{url:ow.a,width:100,height:100},{url:sw.a,width:100,height:100},{url:cw.a,width:100,height:100},{url:hw.a,width:100,height:100},{url:fw.a,width:100,height:100},{url:mw.a,width:100,height:100},{url:vw.a,width:100,height:100},{url:yw.a,width:100,height:100},{url:xw.a,width:100,height:100},{url:Aw.a,width:100,height:100},{url:Ew.a,width:100,height:100},{url:Tw.a,width:100,height:100},{url:Mw.a,width:100,height:100},{url:Ow.a,width:100,height:100},{url:Pw.a,width:100,height:100},{url:Rw.a,width:100,height:100},{url:zw.a,width:100,height:100},{url:_w.a,width:100,height:100},{url:Hw.a,width:100,height:100}]},{name:"节日",list:[{url:qw.a,width:100,height:100},{url:Ww.a,width:100,height:100},{url:Yw.a,width:100,height:100},{url:Kw.a,width:100,height:100},{url:Jw.a,width:100,height:100},{url:$w.a,width:100,height:100},{url:tx.a,width:100,height:100},{url:rx.a,width:100,height:100},{url:ox.a,width:100,height:100},{url:sx.a,width:100,height:100},{url:cx.a,width:100,height:100},{url:hx.a,width:100,height:100},{url:fx.a,width:100,height:100},{url:mx.a,width:100,height:100},{url:vx.a,width:100,height:100},{url:yx.a,width:100,height:100},{url:xx.a,width:100,height:100},{url:Ax.a,width:100,height:100},{url:Ex.a,width:100,height:100},{url:Tx.a,width:100,height:100}]},{name:"食物",list:[{url:Mx.a,width:100,height:100},{url:Ox.a,width:100,height:100},{url:Px.a,width:100,height:100},{url:Rx.a,width:100,height:100},{url:zx.a,width:100,height:100},{url:_x.a,width:100,height:100},{url:Hx.a,width:100,height:100},{url:qx.a,width:100,height:100},{url:Wx.a,width:100,height:100},{url:Yx.a,width:100,height:100},{url:Kx.a,width:100,height:100},{url:Jx.a,width:100,height:100},{url:$x.a,width:100,height:100},{url:tk.a,width:100,height:100},{url:rk.a,width:100,height:100},{url:ok.a,width:100,height:100},{url:sk.a,width:100,height:100},{url:ck.a,width:100,height:100},{url:hk.a,width:100,height:100},{url:fk.a,width:100,height:100},{url:mk.a,width:100,height:100},{url:vk.a,width:100,height:100},{url:yk.a,width:100,height:100},{url:xk.a,width:100,height:100},{url:Ak.a,width:100,height:100},{url:Ek.a,width:100,height:100},{url:Tk.a,width:100,height:100},{url:Mk.a,width:100,height:100},{url:Ok.a,width:100,height:100},{url:Pk.a,width:100,height:100}]},{name:"医疗",list:[{url:Rk.a,width:100,height:100},{url:zk.a,width:100,height:100},{url:_k.a,width:100,height:100},{url:Hk.a,width:100,height:100},{url:qk.a,width:100,height:100},{url:Wk.a,width:100,height:100},{url:Yk.a,width:100,height:100},{url:Kk.a,width:100,height:100},{url:Jk.a,width:100,height:100},{url:$k.a,width:100,height:100},{url:tA.a,width:100,height:100},{url:rA.a,width:100,height:100},{url:oA.a,width:100,height:100},{url:sA.a,width:100,height:100},{url:cA.a,width:100,height:100},{url:hA.a,width:100,height:100},{url:fA.a,width:100,height:100},{url:mA.a,width:100,height:100},{url:vA.a,width:100,height:100},{url:yA.a,width:100,height:100}]},{name:"工具",list:[{url:xA.a,width:100,height:100},{url:AA.a,width:100,height:100},{url:EA.a,width:100,height:100},{url:TA.a,width:100,height:100},{url:MA.a,width:100,height:100},{url:OA.a,width:100,height:100},{url:PA.a,width:100,height:100},{url:RA.a,width:100,height:100},{url:zA.a,width:100,height:100},{url:_A.a,width:100,height:100},{url:HA.a,width:100,height:100},{url:qA.a,width:100,height:100},{url:WA.a,width:100,height:100},{url:YA.a,width:100,height:100},{url:KA.a,width:100,height:100},{url:JA.a,width:100,height:100},{url:$A.a,width:100,height:100},{url:tC.a,width:100,height:100},{url:rC.a,width:100,height:100},{url:oC.a,width:100,height:100}]},{name:"旅行",list:[{url:sC.a,width:100,height:100},{url:cC.a,width:100,height:100},{url:hC.a,width:100,height:100},{url:fC.a,width:100,height:100},{url:mC.a,width:100,height:100},{url:vC.a,width:100,height:100},{url:yC.a,width:100,height:100},{url:xC.a,width:100,height:100},{url:AC.a,width:100,height:100},{url:EC.a,width:100,height:100},{url:TC.a,width:100,height:100},{url:MC.a,width:100,height:100},{url:OC.a,width:100,height:100},{url:PC.a,width:100,height:100},{url:RC.a,width:100,height:100},{url:zC.a,width:100,height:100},{url:_C.a,width:100,height:100},{url:HC.a,width:100,height:100},{url:qC.a,width:100,height:100},{url:WC.a,width:100,height:100}]}],YC={name:"NodeIconSidebar",components:{Sidebar:cp},data(){return{activeName:"icon",nodeIconList:Object(v["M"])([...D,...H]),nodeImageList:[...VC],iconList:[],nodeImage:"",activeNodes:[]}},computed:{...Object(se["d"])(["activeSidebar","isDark"])},watch:{activeSidebar(e){this.$refs.sidebar.show="nodeIconSidebar"===e}},created(){this.$bus.$on("node_active",this.handleNodeActive),this.$bus.$on("showNodeIcon",this.handleShowNodeIcon)},beforeDestroy(){this.$bus.$off("node_active",this.handleNodeActive),this.$bus.$off("showNodeIcon",this.handleShowNodeIcon)},methods:{handleNodeActive(...e){if(this.activeNodes=[...e[1]],this.activeNodes.length>0)if(1===this.activeNodes.length){let e=this.activeNodes[0];this.nodeImage=e.getData("image")||"",this.iconList=e.getData("icon")||[]}else this.nodeImage=[],this.iconList=[];else this.iconList=[],this.nodeImage=""},handleShowNodeIcon(){this.dialogVisible=!0},getHtml(e){return/^`},setIcon(e,t){this.activeNodes.forEach(n=>{const r=[...n.getData("icon")||[]];let i=e+"_"+t,o=r.findIndex(e=>e===i);if(-1!==o)r.splice(o,1);else{let t=r.findIndex(t=>t.split("_")[0]===e);-1!==t?r.splice(t,1,i):r.push(i)}n.setIcon(r),1===this.activeNodes.length&&(this.iconList=r)})},setImage(e){this.activeNodes.forEach(t=>{this.nodeImage=e.url,t.setImage({...e})})}}},ZC=YC,KC=(n("fff4"),Object(p["a"])(ZC,Vg,Yg,!1,null,"6adf6422",null)),XC=KC.exports,JC=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showNodeIconToolbar,expression:"showNodeIconToolbar"}],ref:"nodeIconToolbar",staticClass:"nodeIconToolbar",style:e.style,on:{"&click":function(e){e.stopPropagation()}}},[t("div",{staticClass:"iconListBox"},e._l(e.iconList,(function(n){return t("div",{key:n.name,staticClass:"icon",class:{selected:e.nodeIconList.includes(e.iconType+"_"+n.name)},domProps:{innerHTML:e._s(e.getHtml(n.icon))},on:{click:function(t){return e.setIcon(n.name)}}})})),0),t("div",{staticClass:"btnBox"},[t("span",{staticClass:"btn iconfont iconshanchu",on:{click:e.deleteIcon}})])])},QC=[];const $C=[...D,...H];var eE={name:"NodeIconToolbar",components:{},props:{mindMap:{type:Object}},data(){return{showNodeIconToolbar:!1,style:{left:0,top:0},node:null,iconType:"",iconName:"",nodeIconList:[],iconList:[]}},computed:{...Object(se["d"])(["activeSidebar"])},created(){this.mindMap.on("node_icon_click",this.show),this.mindMap.on("draw_click",this.close),this.mindMap.on("svg_mousedown",this.close),this.mindMap.on("node_dblclick",this.close),this.mindMap.on("node_active",this.onNodeActive),this.mindMap.on("scale",this.onScale),this.$bus.$on("close_node_icon_toolbar",this.close)},mounted(){document.body.append(this.$refs.nodeIconToolbar)},beforeDestroy(){this.mindMap.off("node_icon_click",this.show),this.mindMap.off("draw_click",this.close),this.mindMap.off("svg_mousedown",this.close),this.mindMap.off("node_dblclick",this.close),this.mindMap.off("node_active",this.onNodeActive),this.mindMap.off("scale",this.onScale),this.$bus.$off("close_node_icon_toolbar",this.close)},methods:{...Object(se["c"])(["setActiveSidebar"]),show(e,t){this.node=e,this.iconType=t.split("_")[0],this.iconName=t.split("_")[1],this.nodeIconList=e.getData("icon")||[],this.iconList=[...$C.find(e=>e.type===this.iconType).list],this.updatePos(),this.showNodeIconToolbar=!0,"nodeIconSidebar"===this.activeSidebar&&this.setActiveSidebar("")},close(){this.showNodeIconToolbar=!1,this.node=null,this.iconType="",this.iconName="",this.nodeIconList=[],this.iconList=[],this.style.left=0,this.style.top=0},updatePos(){if(!this.node)return;const e=this.node.getRect();this.style.left=e.x+"px",this.style.top=e.y+e.height+"px"},onScale(){this.updatePos()},onNodeActive(e){e!==this.node&&this.close()},deleteIcon(){this.setIcon(this.iconName),this.close()},getHtml(e){return/^`},setIcon(e){let t=this.iconType+"_"+e,n=this.nodeIconList.findIndex(e=>e===t);if(-1!==n)this.nodeIconList.splice(n,1);else{let n=this.nodeIconList.findIndex(e=>e.split("_")[0]===this.iconType);-1!==n?(this.nodeIconList.splice(n,1,t),this.iconName=e):this.nodeIconList.push(t)}this.node.setIcon([...this.nodeIconList])}}},tE=eE,nE=(n("e6d0"),Object(p["a"])(tE,JC,QC,!1,null,"1321abee",null)),rE=nE.exports,iE=function(){var e=this,t=e._self._c;return e.isOutlineEdit?t("div",{ref:"outlineEditContainer",staticClass:"outlineEditContainer",class:{isDark:e.isDark}},[t("div",{staticClass:"closeBtn",on:{click:e.onClose}},[t("span",{staticClass:"icon iconfont iconguanbi"})]),t("div",{ref:"outlineEditBox",staticClass:"outlineEditBox"},[t("div",{staticClass:"outlineEdit"},[t("el-tree",{ref:"tree",staticClass:"outlineTree",class:{isDark:e.isDark},attrs:{"node-key":"uid",draggable:"","default-expand-all":"",data:e.data,props:e.defaultProps,"highlight-current":!0,"expand-on-click-node":!1,"allow-drag":e.checkAllowDrag},on:{"node-drop":e.onNodeDrop,"current-change":e.onCurrentChange},scopedSlots:e._u([{key:"default",fn:function({node:n,data:r}){return t("span",{staticClass:"customNode",attrs:{"data-id":r.uid}},[t("span",{key:e.getKey(),staticClass:"nodeEdit",attrs:{contenteditable:!e.isReadonly},domProps:{innerHTML:e._s(n.label)},on:{blur:function(t){return e.onBlur(t,n)},keydown:function(t){return t.stopPropagation(),e.onNodeInputKeydown(t,n)},keyup:function(e){e.stopPropagation()},paste:function(t){return e.onPaste(t,n)}}})])}}],null,!1,485109613)})],1)])]):e._e()},oE=[],aE={name:"OutlineEdit",props:{mindMap:{type:Object}},data(){return{data:[],defaultProps:{label:"label"},currentData:null}},computed:{...Object(se["d"])(["isOutlineEdit","isDark","isReadonly"])},watch:{isOutlineEdit(e){e&&(this.refresh(),this.$nextTick(()=>{document.body.appendChild(this.$refs.outlineEditContainer)}))}},created(){window.addEventListener("keydown",this.onKeyDown)},beforeDestroy(){window.removeEventListener("keydown",this.onKeyDown)},methods:{...Object(se["c"])(["setIsOutlineEdit"]),refresh(){let e=this.mindMap.getData();e.root=!0;let t=e=>{let n=(e.data.richText?Object(v["O"])(e.data.text):e.data.text).replaceAll(/\n/g,"
");n=Object(v["E"])(n),e.textCache=n,e.label=n,e.uid=e.data.uid,e.children&&e.children.length>0&&e.children.forEach(e=>{t(e)})};t(e),this.data=[e]},checkAllowDrag(e){return!e.data.root},onNodeDrop(){this.save()},onCurrentChange(e){this.currentData=e},onBlur(e,t){if(t.data.textCache===e.target.innerHTML)return;const n=t.data.data.richText,r=n?e.target.innerHTML:e.target.innerText;t.data.data.text=n?Object(v["bb"])(r):r,n&&(t.data.data.resetRichText=!0),t.data.textCache=e.target.innerHTML,this.save()},onNodeInputKeydown(e,t){const n=!!t.data.data.richText,r=Object(v["m"])(),i=this.$t("outline.nodeDefaultText"),o={textCache:i,uid:r,label:i,data:{text:n?Object(v["bb"])(i):i,uid:r,richText:n},children:[]};if(n&&(o.data.resetRichText=!0),13===e.keyCode&&!e.shiftKey){if(e.preventDefault(),t.data.root)return;this.$refs.tree.insertAfter(o,t)}9===e.keyCode&&(e.preventDefault(),this.$refs.tree.append(o,t)),this.save(),this.$nextTick(()=>{this.$refs.tree.setCurrentKey(r);const e=document.querySelector(`.customNode[data-id="${r}"] .nodeEdit`);if(e){let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);let r=e.offsetTop;this.scrollTo(r)}})},onKeyDown(e){this.isOutlineEdit&&[46,8].includes(e.keyCode)&&this.currentData&&(e.stopPropagation(),this.$refs.tree.remove(this.currentData),this.currentData=null,this.save())},onPaste(e){e.preventDefault();const t=window.getSelection();if(!t.rangeCount)return;t.deleteFromDocument();let n=(e.clipboardData||window.clipboardData).getData("text");n=Object(v["z"])(n),n=n.replaceAll(/\n/g,"");const r=document.createTextNode(n);t.getRangeAt(0).insertNode(r),t.collapseToEnd()},getKey(){return Math.random()},onClose(){this.setIsOutlineEdit(!1),this.$bus.$emit("setData",this.getData())},scrollTo(e){let t=this.$refs.outlineEditBox,n=t.offsetHeight,r=t.scrollTop;e+=50,e>r+n&&t.scrollTo(0,e-n/2)},getData(){let e={},t=this.data[0],n=(e,t)=>{t.data=e.data,t.children=[],(e.children||[]).forEach(e=>{const r={};t.children.push(r),n(e,r)})};return n(t,e),Object(v["ab"])(e)},save(){Object(Wi["e"])(this.getData())}}},sE=aE,lE=(n("fdc4"),Object(p["a"])(sE,iE,oE,!1,null,"07021e90",null)),cE=lE.exports;let uE=null;const hE=()=>{uE=qi["Loading"].service({lock:!0})},dE=()=>{uE&&(uE.close(),uE=null)},fE=async e=>{try{try{Array.isArray(e)||(e=String(e).replace("￿\ufeff",""),e=JSON.parse(e))}catch(t){console.log(t)}Array.isArray(e)||(e=[]);const n=[],r=[],i=(e,n)=>{e.forEach(async e=>{let o={};if(n.push(o),o.data={text:e.data.text,hyperlink:e.data.hyperlink,hyperlinkTitle:e.data.hyperlinkTitle,note:e.data.note},e.data.image){let n=null,i=new Promise(e=>{n=e});r.push(i);try{o.data.image=await Object(v["F"])(e.data.image),o.data.imageSize=e.data.imageSize,n()}catch(t){n()}}if(o.children=[],e.children&&e.children.length>0){const t=[];e.children.forEach(e=>{"generalize"===e.data.type?o.data.generalization={text:e.data.text}:t.push(e)}),i(t,o.children)}})};return i(e,n),await Promise.all(r),{simpleMindMap:!0,data:n}}catch(t){return""}},pE=async e=>{try{let t=JSON.parse(e);if(void 0!==t.__c_zx_v){const e=await fE(t.children);return e}}catch(t){}if(e.includes("￿\ufeff")){const t=await fE(e);return t}return""};var mE=pE,gE=function(){var e=this,t=e._self._c;return t("div",{staticClass:"scrollbarContainer",class:{isDark:e.isDark}},[t("div",{ref:"verticalScrollbarRef",staticClass:"scrollbar verticalScrollbar",on:{click:e.onVerticalScrollbarClick}},[t("div",{staticClass:"scrollbarInner",style:e.verticalScrollbarStyle,on:{click:function(e){e.stopPropagation()},mousedown:e.onVerticalScrollbarMousedown}})]),t("div",{ref:"horizontalScrollbarRef",staticClass:"scrollbar horizontalScrollbar",on:{click:e.onHorizontalScrollbarClick}},[t("div",{staticClass:"scrollbarInner",style:e.horizontalScrollbarStyle,on:{click:function(e){e.stopPropagation()},mousedown:e.onHorizontalScrollbarMousedown}})])])},vE=[],bE={props:{mindMap:{type:Object}},data(){return{timer:null,resizeTimer:null,verticalScrollbarStyle:{},horizontalScrollbarStyle:{}}},computed:{...Object(se["d"])(["isDark"])},mounted(){this.setScrollBarWrapSize(),this.$bus.$on("scrollbar_change",this.updateScrollbar),window.addEventListener("resize",this.onResize)},beforeDestroy(){this.$bus.$off("scrollbar_change",this.updateScrollbar),window.removeEventListener("resize",this.onResize)},methods:{setScrollBarWrapSize(){const{width:e}=this.$refs.horizontalScrollbarRef.getBoundingClientRect(),{height:t}=this.$refs.verticalScrollbarRef.getBoundingClientRect();this.mindMap.scrollbar.setScrollBarWrapSize(e,t)},onResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.setScrollBarWrapSize()},300)},updateScrollbar({vertical:e,horizontal:t}){this.verticalScrollbarStyle={top:e.top+"%",height:e.height+"%"},this.horizontalScrollbarStyle={left:t.left+"%",width:t.width+"%"}},onVerticalScrollbarMousedown(e){this.mindMap.scrollbar.onMousedown(e,"vertical")},onVerticalScrollbarClick(e){this.mindMap.scrollbar.onClick(e,"vertical")},onHorizontalScrollbarMousedown(e){this.mindMap.scrollbar.onMousedown(e,"horizontal")},onHorizontalScrollbarClick(e){this.mindMap.scrollbar.onClick(e,"horizontal")}}},yE=bE,wE=(n("3561"),Object(p["a"])(yE,gE,vE,!1,null,"41219b84",null)),xE=wE.exports,kE=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("formulaSidebar.title")}},[t("div",{staticClass:"box",class:{isDark:e.isDark}},[t("div",{staticClass:"formulaInputBox"},[t("el-input",{attrs:{rows:4,resize:"none",type:"textarea",placeholder:e.$t("formulaSidebar.placeholder")},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.formulaText,callback:function(t){e.formulaText=t},expression:"formulaText"}}),t("el-button",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{size:"small"},on:{click:e.confirm}},[e._v(e._s(e.$t("formulaSidebar.confirm")))])],1),t("div",{staticClass:"title"},[e._v(e._s(e.$t("formulaSidebar.common")))]),t("div",{staticClass:"formulaList"},e._l(e.list,(function(n,r){return t("div",{key:r,staticClass:"formulaItem"},[t("div",{staticClass:"overview",domProps:{innerHTML:e._s(n.overview)}}),t("div",{staticClass:"text",on:{click:function(t){e.formulaText=n.text}}},[e._v(" "+e._s(n.text)+" ")])])})),0)])])},AE=[],CE={name:"FormulaSidebar",components:{Sidebar:cp},props:{mindMap:{type:Object}},data(){return{formulaText:"",list:[]}},computed:{...Object(se["d"])(["activeSidebar","isDark","localConfig"])},watch:{activeSidebar(e){this.$refs.sidebar.show="formulaSidebar"===e}},created(){this.$bus.$on("node_active",this.handleNodeActive)},beforeDestroy(){this.$bus.$off("node_active",this.handleNodeActive)},mounted(){this.init()},methods:{...Object(se["c"])(["setActiveSidebar"]),init(){this.list=Up.map(e=>({overview:window.katex.renderToString(e,{throwOnError:!1,output:"mathml"}),text:e}))},handleNodeActive(...e){this.activeNodes=[...e[1]],this.activeNodes.length<=0&&"formulaSidebar"===this.activeSidebar&&this.setActiveSidebar(null)},confirm(){if(!this.localConfig.openNodeRichText)return this.$message.warning(this.$t("formulaSidebar.tip"));let e=this.formulaText.trim();e&&this.mindMap.execCommand("INSERT_FORMULA",e)}}},EE=CE,SE=(n("2c02"),Object(p["a"])(EE,kE,AE,!1,null,"24ccf624",null)),TE=SE.exports;wd.usePlugin(kd).usePlugin(Cd).usePlugin(Wd).usePlugin(Sd).usePlugin(Md).usePlugin(Od).usePlugin(qd).usePlugin(Yd).usePlugin(Bf).usePlugin(Uf).usePlugin(jf).usePlugin(Gf).usePlugin(Vf).usePlugin(Zf).usePlugin(Qf),tm.forEach(e=>{wd.defineTheme(e.value,e.theme)});var NE={name:"Edit",components:{OutlineSidebar:yp,Style:Op,BaseStyle:zp,Theme:om,Structure:hm,Count:bm,NavigatorToolbar:Gm,ShortcutKey:Xm,Contextmenu:ng,RichTextToolbar:lg,NodeNoteContentShow:gg,Navigator:kg,NodeImgPreview:Ng,SidebarTrigger:Ig,Search:Wg,NodeIconSidebar:XC,NodeIconToolbar:rE,OutlineEdit:cE,Scrollbar:xE,FormulaSidebar:TE},data(){return{enableShowLoading:!0,mindMap:null,mindMapData:null,prevImg:"",storeConfigTimer:null}},computed:{...Object(se["d"])({isZenMode:e=>e.localConfig.isZenMode,openNodeRichText:e=>e.localConfig.openNodeRichText,useLeftKeySelectionRightKeyDrag:e=>e.localConfig.useLeftKeySelectionRightKeyDrag,isShowScrollbar:e=>e.localConfig.isShowScrollbar})},watch:{openNodeRichText(){this.openNodeRichText?this.addRichTextPlugin():this.removeRichTextPlugin()}},mounted(){hE(),this.getData(),this.init(),this.$bus.$on("execCommand",this.execCommand),this.$bus.$on("paddingChange",this.onPaddingChange),this.$bus.$on("export",this.export),this.$bus.$on("setData",this.setData),this.$bus.$on("startTextEdit",this.handleStartTextEdit),this.$bus.$on("endTextEdit",this.handleEndTextEdit),this.$bus.$on("createAssociativeLine",this.handleCreateLineFromActiveNode),this.$bus.$on("startPainter",this.handleStartPainter),this.$bus.$on("node_tree_render_end",this.handleHideLoading),this.$bus.$on("showLoading",this.handleShowLoading),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.$bus.$off("execCommand",this.execCommand),this.$bus.$off("paddingChange",this.onPaddingChange),this.$bus.$off("export",this.export),this.$bus.$off("setData",this.setData),this.$bus.$off("startTextEdit",this.handleStartTextEdit),this.$bus.$off("endTextEdit",this.handleEndTextEdit),this.$bus.$off("createAssociativeLine",this.handleCreateLineFromActiveNode),this.$bus.$off("startPainter",this.handleStartPainter),this.$bus.$off("node_tree_render_end",this.handleHideLoading),this.$bus.$off("showLoading",this.handleShowLoading),window.removeEventListener("resize",this.handleResize),this.mindMap.destroy()},methods:{handleStartTextEdit(){this.mindMap.renderer.startTextEdit()},handleEndTextEdit(){this.mindMap.renderer.endTextEdit()},handleCreateLineFromActiveNode(){this.mindMap.associativeLine.createLineFromActiveNode()},handleStartPainter(){this.mindMap.painter.startPainter()},handleResize(){this.mindMap.resize()},handleShowLoading(){this.enableShowLoading=!0,hE()},handleHideLoading(){this.enableShowLoading&&(this.enableShowLoading=!1,dE())},getData(){let e=Object(Wi["a"])();this.mindMapData=e},bindSaveEvent(){this.$bus.$on("data_change",e=>{Object(Wi["e"])(e)}),this.$bus.$on("view_data_change",e=>{clearTimeout(this.storeConfigTimer),this.storeConfigTimer=setTimeout(()=>{Object(Wi["d"])({view:e})},300)})},manualSave(){let e=this.mindMap.getData(!0);Object(Wi["d"])(e)},init(){let e=this.hasFileURL(),{root:t,layout:n,theme:r,view:i,config:o}=this.mindMapData;e&&(t={data:{text:this.$t("edit.root")},children:[]},n=Gi["a"].layout,r=Gi["a"].theme,i=null),this.mindMap=new wd({el:this.$refs.mindMapContainer,data:t,fit:!1,layout:n,theme:r.template,themeConfig:r.config,viewData:i,nodeTextEditZIndex:1e3,nodeNoteTooltipZIndex:1e3,customNoteContentShow:{show:(e,t,n,r)=>{this.$bus.$emit("showNoteContent",e,t,n,r)},hide:()=>{}},...o||{},iconList:[...H],useLeftKeySelectionRightKeyDrag:this.useLeftKeySelectionRightKeyDrag,customInnerElsAppendTo:null,enableAutoEnterTextEditWhenKeydown:!0,customHandleClipboardText:mE,handleIsSplitByWrapOnPasteCreateNewNode:()=>this.$confirm(this.$t("edit.splitByWrap"),this.$t("edit.tip"),{confirmButtonText:this.$t("edit.yes"),cancelButtonText:this.$t("edit.no"),type:"warning"}),errorHandler:(e,t)=>{switch(console.error(t),e){case"export_error":this.$message.error("导出失败");break;default:break}}}),this.openNodeRichText&&this.addRichTextPlugin(),this.mindMap.keyCommand.addShortcut("Control+s",()=>{this.manualSave()}),["node_active","data_change","view_data_change","back_forward","node_contextmenu","node_click","draw_click","expand_btn_click","svg_mousedown","mouseup","mode_change","node_tree_render_end","rich_text_selection_change","transforming-dom-to-images","generalization_node_contextmenu","painter_start","painter_end","scrollbar_change","scale"].forEach(e=>{this.mindMap.on(e,(...t)=>{this.$bus.$emit(e,...t)})}),this.bindSaveEvent(),this.testDynamicCreateNodes(),window.takeOverApp&&this.$bus.$emit("app_inited",this.mindMap),e&&this.$bus.$emit("handle_file_url"),this.cooperateTest()},hasFileURL(){const e=this.$route.query.fileURL;return!!e&&/\.(smm|json|xmind|md|xlsx)$/.test(e)},setData(e){this.handleShowLoading(),e.root?this.mindMap.setFullData(e):this.mindMap.setData(e),this.mindMap.view.reset(),this.manualSave()},reRender(){this.mindMap.reRender()},execCommand(...e){this.mindMap.execCommand(...e)},async export(...e){try{hE(),await this.mindMap.export(...e),dE()}catch(t){console.log(t),dE()}},onPaddingChange(e){this.mindMap.updateConfig(e)},showNewFeatureInfo(){let e=localStorage.getItem("SIMPLE_MIND_MAP_NEW_FEATURE_TIP_1");e||this.$notify.info({title:this.$t("edit.newFeatureNoticeTitle"),message:this.$t("edit.newFeatureNoticeMessage"),duration:0,onClose:()=>{localStorage.setItem("SIMPLE_MIND_MAP_NEW_FEATURE_TIP_1",!0)}})},addRichTextPlugin(){this.mindMap&&this.mindMap.addPlugin(nf)},removeRichTextPlugin(){this.mindMap.removePlugin(nf)},testDynamicCreateNodes(){setTimeout(()=>{},5e3)},cooperateTest(){this.mindMap.cooperate&&this.$route.query.userName&&(this.mindMap.cooperate.setProvider(null,{roomName:"demo-room",signalingList:["ws://192.168.3.125:4444"]}),this.mindMap.cooperate.setUserInfo({id:Math.random(),name:this.$route.query.userName,color:["#409EFF","#67C23A","#E6A23C","#F56C6C","#909399"][Math.floor(5*Math.random())],avatar:Math.random()>.5?"https://img0.baidu.com/it/u=4270674549,2416627993&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1696006800&t=4d32871d14a7224a4591d0c3c7a97311":""}))}}},ME=NE,LE=(n("15ec"),Object(p["a"])(ME,ro,io,!1,null,"b74ec01c",null)),OE=LE.exports,DE={name:"Index",components:{Toolbar:no,Edit:OE},data(){return{show:!1}},computed:{...Object(se["d"])({isZenMode:e=>e.localConfig.isZenMode,isDark:e=>e.isDark,activeSidebar:e=>e.activeSidebar})},watch:{isDark(){this.setBodyDark()}},async created(){this.initLocalConfig();const e=this.$loading({lock:!0,text:this.$t("other.loading")});await this.getUserMindMapData(),this.show=!0,e.close(),this.setBodyDark()},methods:{...Object(se["b"])(["getUserMindMapData"]),...Object(se["c"])(["setLocalConfig"]),initLocalConfig(){let e=Object(Wi["c"])();e&&this.setLocalConfig({...this.$store.state.localConfig,...e})},setBodyDark(){this.isDark?document.body.classList.add("isDark"):document.body.classList.remove("isDark")}}},PE=DE,IE=(n("dd87"),Object(p["a"])(PE,i,o,!1,null,null,null));t["default"]=IE.exports},"5fd6":function(e,t,n){e.exports=n.p+"img/DNA.svg"},6005:function(e,t,n){"use strict";var r=n("a578"),i=n("cc50"),o=n("2f2d"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},"60fc":function(e,t,n){e.exports=n.p+"img/chunjie.svg"},6171:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"61d3":function(e,t,n){},"61eb":function(e,t,n){"use strict";var r=n("54be"),i=n("6e16");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},6276:function(e,t,n){e.exports=n.p+"img/skyGreen.jpg"},6277:function(e,t,n){},"63dc":function(e,t,n){},6412:function(e,t,n){e.exports=n.p+"img/tingzhenqi.svg"},6490:function(e,t,n){e.exports=n.p+"img/-_11.svg"},"655f":function(e,t,n){e.exports=n.p+"img/a-shu2.svg"},"65ee":function(e,t,n){e.exports=n.p+"img/ziyuan_14.svg"},6705:function(e,t,n){e.exports=n.p+"img/quqi.svg"},"67dd":function(e,t,n){e.exports=n.p+"img/kafeibei.svg"},"682c":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function c(e){return Array.isArray(e)?[]:{}}function u(e,t){var n=t&&!0===t.clone;return n&&r(e)?f(c(e),e,t):e}function h(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=u(t,n):r(t)?i[o]=f(e[o],t,n):-1===e.indexOf(t)&&i.push(u(t,n))})),i}function d(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=u(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=f(e[o],t[o],n):i[o]=u(t[o],n)})),i}function f(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:h},a=r===i;if(a){if(r){var s=o.arrayMerge||h;return s(e,t,n)}return d(e,t,n)}return u(t,n)}f.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return f(e,n,t)}))};var p=f;e.exports=p},"6ad8":function(e,t,n){e.exports=n.p+"img/lateNightOffice.jpg"},"6ade":function(e,t,n){e.exports=n.p+"img/fanyi.svg"},"6ba1":function(e,t,n){"use strict";var r=n("2f2d"),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},"6c12":function(e,t,n){"use strict";var r=n("46ab"),i=Error,o=r("".replace),a=function(e){return String(new i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"6c25":function(e,t,n){e.exports=n.p+"img/ziyuan_18.svg"},"6c83":function(e,t,n){e.exports=n.p+"img/seaBlueLine.jpg"},"6d42":function(e,t,n){e.exports=n.p+"img/naixi.svg"},"6d50":function(e,t,n){e.exports=n.p+"img/ziyuan_9.svg"},"6d75":function(e,t,n){e.exports=n.p+"img/meishi.svg"},"6eac":function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var r=n("9fd6"),i=n("5ab3"),o=n("9a8c"),a=n("9aca"),s=n("ca2d");const l=(e,t)=>{const n=s["b"](e).buffer,r=s["b"](t).buffer;return crypto.subtle.importKey("raw",n,"PBKDF2",!1,["deriveKey"]).then(e=>crypto.subtle.deriveKey({name:"PBKDF2",salt:r,iterations:1e5,hash:"SHA-256"},e,{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]))},c=(e,t)=>{if(!t)return o["c"](e);const n=crypto.getRandomValues(new Uint8Array(12));return crypto.subtle.encrypt({name:"AES-GCM",iv:n},t,e).then(e=>{const t=r["e"]();return r["m"](t,"AES-GCM"),r["o"](t,n),r["o"](t,new Uint8Array(e)),r["f"](t)})},u=(e,t)=>{const n=r["e"]();return r["h"](n,e),c(r["f"](n),t)},h=(e,t)=>{if(!t)return o["c"](e);const n=i["e"](e),r=i["j"](n);"AES-GCM"!==r&&o["b"](a["a"]("Unknown encryption algorithm"));const s=i["l"](n),l=i["l"](n);return crypto.subtle.decrypt({name:"AES-GCM",iv:s},t,l).then(e=>new Uint8Array(e))},d=(e,t)=>h(e,t).then(e=>i["g"](i["e"](new Uint8Array(e))))},"6f27":function(e,t,n){"use strict";function r(e){this.content=e}n.r(t),n.d(t,"ContentMatch",(function(){return R})),n.d(t,"DOMParser",(function(){return re})),n.d(t,"DOMSerializer",(function(){return ye})),n.d(t,"Fragment",(function(){return s})),n.d(t,"Mark",(function(){return h})),n.d(t,"MarkType",(function(){return ee})),n.d(t,"Node",(function(){return D})),n.d(t,"NodeRange",(function(){return L})),n.d(t,"NodeType",(function(){return Q})),n.d(t,"ReplaceError",(function(){return d})),n.d(t,"ResolvedPos",(function(){return S})),n.d(t,"Schema",(function(){return te})),n.d(t,"Slice",(function(){return f})),r.prototype={constructor:r,find:function(e){for(var t=0;t>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var i=r;function o(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i!=a){if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)n++;return n}if(i.content.size||a.content.size){let e=o(i.content,a.content,n+1);if(null!=e)return e}n+=i.nodeSize}else n+=i.nodeSize}}function a(e,t,n,r){for(let i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:n,b:r};let s=e.child(--i),l=t.child(--o),c=s.nodeSize;if(s!=l){if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let e=0,t=Math.min(s.text.length,l.text.length);while(ee&&!1!==n(s,r+a,i||null,o)&&s.content.size){let i=a+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(a,s)=>{a.isText?(i+=a.text.slice(Math.max(e,s)-s,t-s),o=!n):a.isLeaf?(r?i+="function"===typeof r?r(a):r:a.type.spec.leafText&&(i+=a.type.spec.leafText(a)),o=!n):!o&&a.isBlock&&(i+=n,o=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);ie)for(let i=0,o=0;oe&&((ot)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),n.push(a),r+=a.nodeSize),o=s}return new s(n,r)}cutByIndex(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new s(r,i)}addToStart(e){return new s([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new s(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e||t>0?c(n+1,o):c(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new s(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return s.empty;let t,n=0;for(let r=0;rthis.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;te.type.rank-t.type.rank),t}}h.none=[];class d extends Error{}class f{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=m(this.content,e+this.openStart,t);return n&&new f(n,this.openStart,this.openEnd)}removeBetween(e,t){return new f(p(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return f.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new f(s.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new f(e,n,r)}}function p(e,t,n){let{index:r,offset:i}=e.findIndex(t),o=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(i==t||o.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(p(o.content,t-i-1,n-i-1)))}function m(e,t,n,r){let{index:i,offset:o}=e.findIndex(t),a=e.maybeChild(i);if(o==t||a.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=m(a.content,t-o-1,n);return s&&e.replaceChild(i,a.copy(s))}function g(e,t,n){if(n.openStart>e.depth)throw new d("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new d("Inconsistent open depths");return v(e,t,n,0)}function v(e,t,n,r){let i=e.index(r),o=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function x(e,t,n,r){let i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(w(e.nodeAfter,r),o++));for(let s=o;si&&y(e,t,i+1),a=r.depth>i&&y(n,r,i+1),l=[];return x(null,e,i,l),o&&a&&t.index(i)==n.index(i)?(b(o,a),w(k(o,A(e,t,n,r,i+1)),l)):(o&&w(k(o,C(e,t,i+1)),l),x(t,n,i,l),a&&w(k(a,C(n,r,i+1)),l)),x(r,null,i,l),new s(l)}function C(e,t,n){let r=[];if(x(null,e,n,r),e.depth>n){let i=y(e,t,n+1);w(k(i,C(e,t,n+1)),r)}return x(t,null,n,r),new s(r)}function E(e,t){let n=t.depth-e.openStart,r=t.node(n),i=r.copy(e.content);for(let o=n-1;o>=0;o--)i=t.node(o).copy(s.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}f.empty=new f(s.empty,0,0);class S{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return e=this.resolveDepth(e),0==e?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let i=0;i0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new L(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let o=e;;){let{index:e,offset:t}=o.content.findIndex(i),a=i-t;if(n.push(o,e,r+t),!a)break;if(o=o.child(e),o.isText)break;i=a-1,r+=t+1}return new S(t,n,i)}static resolveCached(e,t){for(let r=0;re&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),I(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=s.empty,r=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let s=r;se.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=s.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}}D.prototype.text=void 0;class P extends D{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):I(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new P(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new P(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function I(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class R{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new F(e,t);if(null==n.next)return R.empty;let r=z(n);n.next&&n.err("Unexpected trailing text");let i=Y(G(r));return Z(i,n),i}matchType(e){for(let t=0;te.createAndFill()));for(let e=0;e=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r{let r=n+(t.validEnd?"*":" ")+" ";for(let i=0;i"+e.indexOf(t.next[i].next);return r}).join("\n")}}R.empty=new R(!0);class F{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function z(e){let t=[];do{t.push(B(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function B(e){let t=[];do{t.push(_(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function _(e){let t=q(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=H(e,t)}return t}function j(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function H(e,t){let n=j(e),r=n;return e.eat(",")&&(r="}"!=e.next?j(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function U(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let e=n[o];e.groups.indexOf(t)>-1&&i.push(e)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i}function q(e){if(e.eat("(")){let t=z(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=U(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}function G(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function o(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(o(n,t)),[]);if("seq"!=e.type){if("star"==e.type){let a=n();return r(t,a),i(o(e.expr,a),a),[r(a)]}if("plus"==e.type){let a=n();return i(o(e.expr,t),a),i(o(e.expr,a),a),[r(a)]}if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){let a=t;for(let t=0;t{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e{r||i.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})})});let o=t[r.join(",")]=new R(r.indexOf(e.length-1)>-1);for(let e=0;e-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;tn[e]=new Q(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class ${constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class ee{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=J(r.attrs),this.excluded=null;let i=K(this.attrs);this.instance=i?new h(this,i):null}create(e=null){return!e&&this.instance?this.instance:new h(this,X(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new ee(e,r++,t,i)),n}removeFromSet(e){for(var t=0;t-1}}class te{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=i.from(e.nodes),t.marks=i.from(e.marks||{}),this.nodes=Q.compile(this.spec.nodes,this),this.marks=ee.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let e=this.nodes[r],t=e.spec.content||"",i=e.spec.marks;e.contentMatch=n[t]||(n[t]=R.parse(t,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==i?null:i?ne(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let r in this.marks){let e=this.marks[r],t=e.spec.excludes;e.excluded=null==t?[e]:""==t?[]:ne(this,t.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof Q))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new P(n,n.defaultAttrs,e,h.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return D.fromJSON(this,e)}markFromJSON(e){return h.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function ne(e,t){let n=[];for(let r=0;r-1)&&n.push(a=r)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class re{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new de(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new de(this,t,!0);return n.addAll(e,t.from,t.to),f.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;re.length&&(61!=o.charCodeAt(e.length)||o.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r{n(e=ge(e)),e.mark=r})}for(let r in e.nodes){let t=e.nodes[r].spec.parseDOM;t&&t.forEach(e=>{n(e=ge(e)),e.node=r})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new re(e,re.schemaRules(e)))}}const ie={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},oe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ae={ol:!0,ul:!0},se=1,le=2,ce=4;function ue(e,t,n){return null!=t?(t?se:0)|("full"===t?le:0):e&&"pre"==e.whitespace?se|le:n&~ce}class he{constructor(e,t,n,r,i,o,a){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=h.none,this.stashMarks=[],this.match=o||(a&ce?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(s.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&se)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=s.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;tthis.insertNode(e));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}r&&this.sync(a)&&this.open--,o&&this.removePendingMark(o,a)}addAll(e,t,n){let r=t||0;for(let i=t?e.childNodes[t]:e.firstChild,o=null==n?null:e.childNodes[n];i!=o;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i);this.findAtPoint(e,r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],o=i.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=i,!o.length))break;if(i.solid)break}if(!t)return!1;this.sync(n);for(let r=0;rthis.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),o=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=i;a--)if(o(e-1,a))return!0;return!1}{let e=a>0||0==a&&r?this.nodes[a].type:n&&a>=i?n.node(a-i).type:null;if(!e||e.name!=s&&-1==e.groups.indexOf(s))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(e){let t=be(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let r=this.nodes[n],i=r.pendingMarks.lastIndexOf(e);if(i>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let t=r.popFromStashMark(e);t&&r.type&&r.type.allowsMarkType(t.type)&&(r.activeMarks=t.addToSet(r.activeMarks))}if(r==t)break}}}function fe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ae.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}function pe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function me(e){let t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];while(t=n.exec(e))r.push(t[1],t[2].trim());return r}function ge(e){let t={};for(let n in e)t[n]=e[n];return t}function ve(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],a=e=>{o.push(e);for(let n=0;n{if(i.length||e.marks.length){let n=0,o=0;while(n=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&ye.renderSpec(xe(n),r(e,t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let r,i=t[0],o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let a=n?e.createElementNS(n,i):e.createElement(i),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s)){l=2;for(let e in s)if(null!=s[e]){let t=e.indexOf(" ");t>0?a.setAttributeNS(e.slice(0,t),e.slice(t+1),s[e]):a.setAttribute(e,s[e])}}for(let c=l;cl)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:t,contentDOM:o}=ye.renderSpec(e,i,n);if(a.appendChild(t),o){if(r)throw new RangeError("Multiple content holes");r=o}}}return{dom:a,contentDOM:r}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ye(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=we(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return we(e.marks)}}function we(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function xe(e){return e.document||window.document}},"6f5c":function(e,t,n){e.exports=n.p+"img/xilanhua.svg"},"6ffb":function(e,t,n){"use strict";n.r(t),n.d(t,"AllSelection",(function(){return p})),n.d(t,"EditorState",(function(){return S})),n.d(t,"NodeSelection",(function(){return d})),n.d(t,"Plugin",(function(){return N})),n.d(t,"PluginKey",(function(){return O})),n.d(t,"Selection",(function(){return a})),n.d(t,"SelectionRange",(function(){return s})),n.d(t,"TextSelection",(function(){return u})),n.d(t,"Transaction",(function(){return x}));var r=n("6f27"),i=n("b923");const o=Object.create(null);class a{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new s(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t=0;i--){let r=t<0?g(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):g(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(r)return r}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new p(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new p(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new p(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw new RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function c(e){l||e.parent.inlineContent||(l=!0,console["warn"]("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends a{constructor(e,t=e){c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return a.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r["Slice"].empty){if(super.replace(e,t),t==r["Slice"].empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=a.findFrom(t,n,!0)||a.findFrom(t,-n,!0);if(!e)return a.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(a.findFrom(e,-n,!0)||a.findFrom(e,n,!0)).$anchor,e.pos0?0:1);i>0?a=0;a+=i){let r=t.child(a);if(r.isAtom){if(!o&&d.isSelectable(r))return d.create(e,n-(i<0?r.nodeSize:0))}else{let t=g(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function v(e,t,n){let r=e.steps.length-1;if(r{null==s&&(s=r)}),e.setSelection(a.near(e.doc.resolve(s),n))}const b=1,y=2,w=4;class x extends i["e"]{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=y,this}ensureMarks(e){return r["Mark"].sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&y)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~y,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r["Mark"].none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(a.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=w,this}get scrolledIntoView(){return(this.updated&w)>0}}function k(e,t){return t&&e?e.bind(t):e}class A{constructor(e,t,n){this.name=e,this.init=k(t.init,n),this.apply=k(t.apply,n)}}const C=[new A("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new A("selection",{init(e,t){return e.selection||a.atStart(t.doc)},apply(e){return e.selection}}),new A("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new A("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class E{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new A(e.key,e.spec.state,e))})}}class S{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;ne.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new E(e.schema,e.plugins),o=new S(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r["Node"].fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=a.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let a=n[r],s=a.spec.state;if(a.key==i.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(o[i.name]=s.fromJSON.call(a,e,t[r],o))}o[i.name]=i.init(e,o)}}),o}}function T(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=T(i,t,{})),n[r]=i}return n}class N{constructor(e){this.spec=e,this.props={},e.props&&T(e.props,this,this.props),this.key=e.key?e.key.key:L("plugin")}getState(e){return e[this.key]}}const M=Object.create(null);function L(e){return e in M?e+"$"+ ++M[e]:(M[e]=0,e+"$")}class O{constructor(e="key"){this.key=L(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},"6ffb0":function(e,t,n){"use strict";n("d4a0")},"703f":function(e,t,n){"use strict";n.r(t),n.d(t,"Decoration",(function(){return An})),n.d(t,"DecorationSet",(function(){return Sn})),n.d(t,"EditorView",(function(){return ir})),n.d(t,"__endComposition",(function(){return rr})),n.d(t,"__parseFromClipboard",(function(){return nr})),n.d(t,"__serializeForClipboard",(function(){return tr}));var r=n("6ffb"),i=n("6f27"),o=n("b923");const a=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},s=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let l=null;const c=function(e,t,n){let r=l||(l=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},u=function(e,t,n,r){return n&&(d(e,t,n,r,-1)||d(e,t,n,r,1))},h=/^(img|br|input|textarea|hr)$/i;function d(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:f(e))){let n=e.parentNode;if(!n||1!=n.nodeType||m(e)||h.test(e.nodeName)||"false"==e.contentEditable)return!1;t=a(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(e=e.childNodes[t+(i<0?-1:0)],"false"==e.contentEditable)return!1;t=i<0?f(e):0}}}function f(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function p(e,t,n){for(let r=0==t,i=t==f(e);r||i;){if(e==n)return!0;let t=a(e);if(e=e.parentNode,!e)return!1;r=r&&0==t,i=i&&t==f(e)}}function m(e){let t;for(let n=e;n;n=n.parentNode)if(t=n.pmViewDesc)break;return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const g=function(e){return e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function v(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function b(e){let t=e.activeElement;while(t&&t.shadowRoot)t=t.shadowRoot.activeElement;return t}const y="undefined"!=typeof navigator?navigator:null,w="undefined"!=typeof document?document:null,x=y&&y.userAgent||"",k=/Edge\/(\d+)/.exec(x),A=/MSIE \d/.exec(x),C=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(x),E=!!(A||C||k),S=A?document.documentMode:C?+C[1]:k?+k[1]:0,T=!E&&/gecko\/(\d+)/i.test(x);T&&(/Firefox\/(\d+)/.exec(x)||[0,0])[1];const N=!E&&/Chrome\/(\d+)/.exec(x),M=!!N,L=N?+N[1]:0,O=!E&&!!y&&/Apple Computer/.test(y.vendor),D=O&&(/Mobile\/\w+/.test(x)||!!y&&y.maxTouchPoints>2),P=D||!!y&&/Mac/.test(y.platform),I=/Android \d/.test(x),R=!!w&&"webkitFontSmoothing"in w.documentElement.style,F=R?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function z(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function B(e,t){return"number"==typeof e?e:e[t]}function _(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function j(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;;a=s(a)){if(!a)break;if(1!=a.nodeType)continue;let e=a,n=e==o.body,s=n?z(o):_(e),l=0,c=0;if(t.tops.bottom-B(r,"bottom")&&(c=t.bottom-s.bottom+B(i,"bottom")),t.lefts.right-B(r,"right")&&(l=t.right-s.right+B(i,"right")),l||c)if(n)o.defaultView.scrollBy(l,c);else{let n=e.scrollLeft,r=e.scrollTop;c&&(e.scrollTop+=c),l&&(e.scrollLeft+=l);let i=e.scrollLeft-n,o=e.scrollTop-r;t={left:t.left-i,top:t.top-o,right:t.right-i,bottom:t.bottom-o}}if(n)break}}function H(e){let t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top);for(let o=(r.left+r.right)/2,a=i+1;a=i-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:U(e.dom)}}function U(e){let t=[],n=e.ownerDocument;for(let r=e;r;r=s(r))if(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e==n)break;return t}function q({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;G(n,0==r?0:r-t)}function G(e,t){for(let n=0;n=s){a=Math.max(h.bottom,a),s=Math.min(h.top,s);let e=h.left>t.left?h.left-t.left:h.right=(h.left+h.right)/2?1:0));continue}}!n&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(o=u+1)}}return n&&3==n.nodeType?Z(n,r):!n||i&&1==n.nodeType?{node:e,offset:o}:Y(n,r)}function Z(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}function K(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function X(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function Q(e,t,n,r){let i=-1;for(let o=t;;){if(o==e.dom)break;let t=e.docView.nearestDesc(o,!0);if(!t)return null;if(t.node.isBlock&&t.parent){let e=t.dom.getBoundingClientRect();if(e.left>r.left||e.top>r.top)i=t.posBefore;else{if(!(e.right-1?i:e.docView.posFromDOM(t,n,1)}function $(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}n==e.dom&&i==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?o=e.state.doc.content.size:0!=i&&1==n.nodeType&&"BR"==n.childNodes[i-1].nodeName||(o=Q(e,n,i,t))}null==o&&(o=J(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:o,inside:l?l.posAtStart-l.border:-1}}function te(e,t){let n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}const ne=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function re(e,t,n){let{node:r,offset:i,atom:o}=e.docView.domFromPos(t,n<0?-1:1),a=R||T;if(3==r.nodeType){if(!a||!ne.test(r.nodeValue)&&(n<0?i:i!=r.nodeValue.length)){let e=i,t=i,o=n<0?1:-1;return n<0&&!i?(t++,o=-1):n>=0&&i==r.nodeValue.length?(e--,o=1):n<0?e--:t++,ie(te(c(r,e,t),1),o<0)}{let e=te(c(r,i,i),n);if(T&&i&&/\s/.test(r.nodeValue[i-1])&&i=0)}if(null==o&&i&&(n<0||i==f(r))){let e=r.childNodes[i-1],t=3==e.nodeType?c(e,f(e)-(a?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return ie(te(t,1),!1)}if(null==o&&i=0)}function ie(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function oe(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function ae(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function se(e,t,n){let r=t.selection,i="up"==n?r.$from:r.$to;return ae(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.dom;break}t=n.dom.parentNode}let r=re(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e,0,e.nodeValue.length).getClientRects()}for(let e=0;ei.top+1&&("up"==n?r.top-i.top>2*(i.bottom-r.top):i.bottom-r.bottom>2*(r.bottom-i.top)))return!1}}return!0})}const le=/[\u0590-\u08ac]/;function ce(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return le.test(r.parent.textContent)&&s.modify?ae(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:o,anchorOffset:a}=e.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let c=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:h}=e.domSelectionRange(),d=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&i==h;try{s.collapse(o,a),t&&(t!=o||i!=a)&&s.extend&&s.extend(t,i)}catch(f){}return null!=l&&(s.caretBidiLevel=l),d}):"left"==n||"backward"==n?o:a}let ue=null,he=null,de=!1;function fe(e,t,n){return ue==t&&he==n?de:(ue=t,he=n,de="up"==n||"down"==n?se(e,t,n):ce(e,t,n))}const pe=0,me=1,ge=2,ve=3;class be{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=pe,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;ta(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i,o=this.getDesc(r);if(o&&(!t||o.node)){if(!n||!(i=o.nodeDOM)||(1==i.nodeType?i.contains(1==e.nodeType?e:e.parentNode):i==e))return o;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;te||t instanceof Ee){i=e-o;break}o=n}if(i)return this.children[r].domFromPos(i-this.children[r].border,t);for(;r&&!(n=this.children[r-1]).size&&n instanceof ye&&n.side>=0;r--);if(t<=0){let e,n=!0;for(;;r--,n=!1)if(e=r?this.children[r-1]:null,!e||e.dom.parentNode==this.contentDOM)break;return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?a(e.dom)+1:0}}{let e,n=!0;for(;;r++,n=!1)if(e=r=i&&t<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=o;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=a(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(l>t||s==this.children.length-1)){t=l;for(let e=s+1;eu&&ot){let e=s;s=l,l=e}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r=n:en){let r=n+i.border,a=o-i.border;if(e>=r&&t<=a)return this.dirty=e==n||t==o?ge:me,void(e!=r||t!=a||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(e-r,t-r):i.dirty=ve);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?ve:ge}n=o}this.dirty=ge}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?ge:me;t.dirtyi?i.parent?i.parent.posBeforeChild(i):void 0:r)),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==pe&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class we extends be{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class xe extends be{constructor(e,t,n,r){super(e,[],n,r),this.mark=t}static create(e,t,n,r){let o=r.nodeViews[t.type.name],a=o&&o(t,r,n);return a&&a.dom||(a=i["DOMSerializer"].renderSpec(document,t.type.spec.toDOM(t,n))),new xe(e,t,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&ve||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(e){return this.dirty!=ve&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=pe){let e=this.parent;while(!e.node)e=e.parent;e.dirty0&&(i=qe(i,0,e,n));for(let a=0;as?s.parent?s.parent.posBeforeChild(s):void 0:a,n,r),u=c&&c.dom,h=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else u||({dom:u,contentDOM:h}=i["DOMSerializer"].renderSpec(document,t.type.spec.toDOM(t)));h||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let d=u;return u=Pe(u,n,t),c?s=new Se(e,t,n,r,u,h||null,d,c,o,a+1):t.isText?new Ce(e,t,n,r,u,d,o):new ke(e,t,n,r,u,h||null,d,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>i["Fragment"].empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return this.dirty==pe&&e.eq(this.node)&&Ie(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,o=e.composing?this.localCompositionInfo(e,t):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new Fe(this,a&&a.node,e);_e(this.node,this.innerDeco,(t,o,a)=>{t.spec.marks?l.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!a&&l.syncToMarks(o==this.node.childCount?i["Mark"].none:this.node.child(o).marks,n,e),l.placeWidget(t,e,r)},(t,i,a,c)=>{let u;l.syncToMarks(t.marks,n,e),l.findNodeMatch(t,i,a,c)||s&&e.state.selection.from>r&&e.state.selection.to-1&&l.updateNodeAt(t,i,a,u,e)||l.updateNextNode(t,i,a,e,c)||l.addNode(t,i,a,e,r),r+=t.nodeSize}),l.syncToMarks([],n,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==ge)&&(a&&this.protectLocalComposition(e,a),Te(this.contentDOM,this.children,e),D&&je(this.dom))}localCompositionInfo(e,t){let{from:n,to:i}=e.state.selection;if(!(e.state.selection instanceof r["TextSelection"])||nt+this.node.content.size)return null;let o=e.domSelectionRange(),a=He(o.focusNode,o.focusOffset);if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let e=a.nodeValue,r=Ue(this.node.content,e,n-t,i-t);return r<0?null:{node:a,pos:r,text:e}}return{node:a,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;;i=i.parentNode){if(i.parentNode==this.contentDOM)break;while(i.previousSibling)i.parentNode.removeChild(i.previousSibling);while(i.nextSibling)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let o=new we(this,i,t,r);e.input.compositionNodes.push(o),this.children=qe(this.children,n,n+r.length,e,o)}update(e,t,n,r){return!(this.dirty==ve||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=pe}updateOuterDeco(e){if(Ie(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Oe(this.dom,this.nodeDOM,Le(this.outerDeco,this.node,t),Le(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Ae(e,t,n,r,i){return Pe(r,t,e),new ke(void 0,e,t,n,r,r,r,i,0)}class Ce extends ke{constructor(e,t,n,r,i,o,a){super(e,t,n,r,i,null,o,a,0)}parseRule(){let e=this.nodeDOM.parentNode;while(e&&e!=this.dom&&!e.pmIsDeco)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(this.dirty==ve||this.dirty!=pe&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),this.dirty==pe&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=pe,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),i=document.createTextNode(r.text);return new Ce(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=ve)}get domAtom(){return!1}}class Ee extends be{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==pe&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class Se extends ke{constructor(e,t,n,r,i,o,a,s,l,c){super(e,t,n,r,i,o,a,l,c),this.spec=s}update(e,t,n,r){if(this.dirty==ve)return!1;if(this.spec.update){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Te(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o>1,o=Math.min(i,e.length);while(r-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=xe.create(this.top,e[i],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,n,r){let i,o=-1;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,n))o=this.top.children.indexOf(i,this.index);else for(let a=this.index,s=Math.min(this.top.children.length,a+5);a0){let s;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof xe)){s=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function Be(e,t){return e.type.side-t.type.side}function _e(e,t,n,r){let i=t.locals(e),o=0;if(0==i.length){for(let n=0;no)s.push(i[a++]);let d=o+u.nodeSize;if(u.isText){let e=d;a!e.inline):s.slice();r(u,f,t.forChild(o,u),h),o=d}}function je(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function He(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=f(e)}else{if(!(1==e.nodeType&&t=n){let e=s=0&&e+t.length+s>=n)return s+e;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function qe(e,t,n,r,i){let o=[];for(let a=0,s=0;a=n||u<=t?o.push(l):(cn&&o.push(l.slice(n-c,l.size,r)))}return o}function Ge(e,t=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),a=o&&0==o.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let l,c,u=i.resolve(s);if(g(n)){l=u;while(o&&!o.node)o=o.parent;let e=o.node;if(o&&e.isAtom&&r["NodeSelection"].isSelectable(e)&&o.parent&&(!e.isInline||!p(n.focusNode,n.focusOffset,o.dom))){let e=o.posBefore;c=new r["NodeSelection"](s==e?u:i.resolve(e))}}else{let t=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(t<0)return null;l=i.resolve(t)}if(!c){let n="pointer"==t||e.state.selection.head{n.anchorNode==r&&n.anchorOffset==i||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{We(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Qe(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i="IMG"==r.nodeName;i?n.setEnd(r.parentNode,a(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&E&&S<=11&&(r.disabled=!0,r.disabled=!1)}function $e(e,t){if(t instanceof r["NodeSelection"]){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(et(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else et(e)}function et(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function tt(e,t,n,i){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r["TextSelection"].between(t,n,i)}function nt(e){return!(e.editable&&!e.hasFocus())&&rt(e)}function rt(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function it(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return u(t.node,t.offset,n.anchorNode,n.anchorOffset)}function ot(e,t){let{$anchor:n,$head:i}=e.selection,o=t>0?n.max(i):n.min(i),a=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return a&&r["Selection"].findFrom(a,t)}function at(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function st(e,t,n){let i=e.state.selection;if(!(i instanceof r["TextSelection"])){if(i instanceof r["NodeSelection"]&&i.node.isInline)return at(e,new r["TextSelection"](t>0?i.$to:i.$from));{let n=ot(e.state,t);return!!n&&at(e,n)}}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){let n=ot(e.state,t);return!!(n&&n instanceof r["NodeSelection"])&&at(e,n)}if(!(P&&n.indexOf("m")>-1)){let n,o=i.$head,a=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!a||a.isText)return!1;let s=t<0?o.pos-a.nodeSize:o.pos;return!!(a.isAtom||(n=e.docView.descAt(s))&&!n.contentDOM)&&(r["NodeSelection"].isSelectable(a)?at(e,new r["NodeSelection"](t<0?e.state.doc.resolve(o.pos-a.nodeSize):o)):!!R&&at(e,new r["TextSelection"](e.state.doc.resolve(t<0?s:s+a.nodeSize))))}}function lt(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function ct(e){let t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function ut(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=!1;for(T&&1==n.nodeType&&r0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(ct(e))i=n,o=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(dt(n))break;{let t=n.previousSibling;while(t&&ct(t))i=n.parentNode,o=a(t),t=t.previousSibling;if(t)n=t,r=lt(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?ft(e,n,r):i&&ft(e,i,o)}function ht(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=lt(n);for(;;)if(r{e.state==i&&Ve(e)},50)}function pt(e,t,n){let i=e.state.selection;if(i instanceof r["TextSelection"]&&!i.empty||n.indexOf("s")>-1)return!1;if(P&&n.indexOf("m")>-1)return!1;let{$from:o,$to:a}=i;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=ot(e.state,t);if(n&&n instanceof r["NodeSelection"])return at(e,n)}if(!o.parent.inlineContent){let n=t<0?o:a,s=i instanceof r["AllSelection"]?r["Selection"].near(n,t):r["Selection"].findFrom(n,t);return!!s&&at(e,s)}return!1}function mt(e,t){if(!(e.state.selection instanceof r["TextSelection"]))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function gt(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function vt(e){if(!O||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;gt(e,n,"true"),setTimeout(()=>gt(e,n,"false"),20)}return!1}function bt(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function yt(e,t){let n=t.keyCode,r=bt(t);return 8==n||P&&72==n&&"c"==r?mt(e,-1)||ut(e):46==n||P&&68==n&&"c"==r?mt(e,1)||ht(e):13==n||27==n||(37==n||P&&66==n&&"c"==r?st(e,-1,r)||ut(e):39==n||P&&70==n&&"c"==r?st(e,1,r)||ht(e):38==n||P&&80==n&&"c"==r?pt(e,-1,r)||ut(e):40==n||P&&78==n&&"c"==r?vt(e)||pt(e,1,r)||ht(e):r==(P?"m":"c")&&(66==n||73==n||89==n||90==n))}function wt(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:o,openEnd:a}=t;while(o>1&&a>1&&1==r.childCount&&1==r.firstChild.childCount){o--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let s=e.someProp("clipboardSerializer")||i["DOMSerializer"].fromSchema(e.state.schema),l=Ot(),c=l.createElement("div");c.appendChild(s.serializeFragment(r,{document:l}));let u,h=c.firstChild,d=0;while(h&&1==h.nodeType&&(u=Mt[h.nodeName.toLowerCase()])){for(let e=u.length-1;e>=0;e--){let t=l.createElement(u[e]);while(c.firstChild)t.appendChild(c.firstChild);c.appendChild(t),d++}h=c.firstChild}h&&1==h.nodeType&&h.setAttribute("data-pm-slice",`${o} ${a}${d?" -"+d:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:c,text:f}}function xt(e,t,n,r,o){let a,s,l=o.parent.type.spec.code;if(!n&&!t)return null;let c=t&&(r||l||!n);if(c){if(e.someProp("transformPastedText",n=>{t=n(t,l||r,e)}),l)return t?new i["Slice"](i["Fragment"].from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):i["Slice"].empty;let n=e.someProp("clipboardTextParser",n=>n(t,o,r,e));if(n)s=n;else{let n=o.marks(),{schema:r}=e.state,s=i["DOMSerializer"].fromSchema(r);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=a.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),a=Dt(n),R&&Pt(a);let u=a&&a.querySelector("[data-pm-slice]"),h=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(h&&h[3])for(let i=+h[3];i>0;i--){let e=a.firstChild;while(e&&1!=e.nodeType)e=e.nextSibling;if(!e)break;a=e}if(!s){let t=e.someProp("clipboardParser")||e.someProp("domParser")||i["DOMParser"].fromSchema(e.state.schema);s=t.parseSlice(a,{preserveWhitespace:!(!c&&!h),context:o,ruleFromNode(e){return"BR"!=e.nodeName||e.nextSibling||!e.parentNode||kt.test(e.parentNode.nodeName)?null:{ignore:!0}}})}if(h)s=It(Nt(s,+h[1],+h[2]),h[4]);else if(s=i["Slice"].maxOpen(At(s.content,o),!0),s.openStart||s.openEnd){let e=0,t=0;for(let n=s.content.firstChild;e{s=t(s,e)}),s}const kt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function At(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,o=t.node(n),a=o.contentMatchAt(t.index(n)),s=[];if(e.forEach(e=>{if(!s)return;let t,n=a.findWrapping(e.type);if(!n)return s=null;if(t=s.length&&r.length&&Et(n,r,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=St(s[s.length-1],r.length));let t=Ct(e,n);s.push(t),a=a.matchType(t.type),r=n}}),s)return i["Fragment"].from(s)}return e}function Ct(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,i["Fragment"].from(e));return e}function Et(e,t,n,r,o){if(o=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,e.childCount>1||a<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(i["Fragment"].empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function Nt(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=Ot().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e);if((n=i&&Mt[i[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"").reverse().join("")),r.innerHTML=e,n)for(let o=0;o=0;c-=2){let e=r.nodes[n[c]];if(!e||e.hasRequiredAttrs())break;o=i["Fragment"].from(e.create(n[c+1],o)),a++,s++}return new i["Slice"](o,a,s)}const Rt={},Ft={},zt={touchstart:!0,touchmove:!0};class Bt{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function _t(e){for(let t in Rt){let n=Rt[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!Gt(e,t)||qt(e,t)||!e.editable&&t.type in Ft||n(e,t)},zt[t]?{passive:!0}:void 0)}O&&e.dom.addEventListener("input",()=>null),Ut(e)}function jt(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Ht(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Ut(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>qt(e,t))})}function qt(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function Gt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Wt(e,t){qt(e,t)||!Rt[t.type]||!e.editable&&t.type in Ft||Rt[t.type](e,t)}function Vt(e){return{left:e.clientX,top:e.clientY}}function Yt(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function Zt(e,t,n,r,i){if(-1==r)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,t=>a>o.depth?t(e,n,o.nodeAfter,o.before(a),i,!0):t(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Kt(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function Xt(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&r["NodeSelection"].isSelectable(i))&&(Kt(e,new r["NodeSelection"](n),"pointer"),!0)}function Jt(e,t){if(-1==t)return!1;let n,i,o=e.state.selection;o instanceof r["NodeSelection"]&&(n=o.node);let a=e.state.doc.resolve(t);for(let s=a.depth+1;s>0;s--){let e=s>a.depth?a.nodeAfter:a.node(s);if(r["NodeSelection"].isSelectable(e)){i=n&&o.$from.depth>0&&s>=o.$from.depth&&a.before(o.$from.depth+1)==o.$from.pos?a.before(o.$from.depth):a.before(s);break}}return null!=i&&(Kt(e,r["NodeSelection"].create(e.state.doc,i),"pointer"),!0)}function Qt(e,t,n,r,i){return Zt(e,"handleClickOn",t,n,r)||e.someProp("handleClick",n=>n(e,t,r))||(i?Jt(e,n):Xt(e,n))}function $t(e,t,n,r){return Zt(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function en(e,t,n,r){return Zt(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||tn(e,n,r)}function tn(e,t,n){if(0!=n.button)return!1;let i=e.state.doc;if(-1==t)return!!i.inlineContent&&(Kt(e,r["TextSelection"].create(i,0,i.content.size),"pointer"),!0);let o=i.resolve(t);for(let a=o.depth+1;a>0;a--){let t=a>o.depth?o.nodeAfter:o.node(a),n=o.before(a);if(t.inlineContent)Kt(e,r["TextSelection"].create(i,n+1,n+1+t.content.size),"pointer");else{if(!r["NodeSelection"].isSelectable(t))continue;Kt(e,r["NodeSelection"].create(i,n),"pointer")}return!0}}function nn(e){return hn(e)}Ft.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!an(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!I||!M||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!D||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",t=>t(e,n))||yt(e,n)?n.preventDefault():jt(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},Ft.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},Ft.keypress=(e,t)=>{let n=t;if(an(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||P&&n.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,n)))return void n.preventDefault();let i=e.state.selection;if(!(i instanceof r["TextSelection"])||!i.$from.sameParent(i.$to)){let t=String.fromCharCode(n.charCode);e.someProp("handleTextInput",n=>n(e,i.$from.pos,i.$to.pos,t))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),n.preventDefault()}};const rn=P?"metaKey":"ctrlKey";Rt.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=nn(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&Yt(n,e.input.lastClick)&&!n[rn]&&("singleClick"==e.input.lastClick.type?o="doubleClick":"doubleClick"==e.input.lastClick.type&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=e.posAtCoords(Vt(n));a&&("singleClick"==o?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new on(e,a,n,!!r)):("doubleClick"==o?$t:en)(e,a.pos,a.inside,n)?n.preventDefault():jt(e,"pointer"))};class on{constructor(e,t,n,i){let o,a;if(this.view=e,this.pos=t,this.event=n,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[rn],this.allowDefault=n.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);o=n.parent,a=n.depth?n.before():0}const s=i?null:n.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l?l.dom:null;let{selection:c}=e.state;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof r["NodeSelection"]&&c.from<=a&&c.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!T||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),jt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Ve(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Vt(e))),this.updateAllowDefault(e),this.allowDefault||!t?jt(this.view,"pointer"):Qt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||O&&this.mightDrag&&!this.mightDrag.node.isAtom||M&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Kt(this.view,r["Selection"].near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):jt(this.view,"pointer")}move(e){this.updateAllowDefault(e),jt(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function an(e,t){return!!e.composing||!!(O&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}Rt.touchstart=e=>{e.input.lastTouch=Date.now(),nn(e),jt(e,"pointer")},Rt.touchmove=e=>{e.input.lastTouch=Date.now(),jt(e,"pointer")},Rt.contextmenu=e=>nn(e);const sn=I?5e3:-1;function ln(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>hn(e),t))}function cn(e){e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=un());while(e.input.compositionNodes.length>0)e.input.compositionNodes.pop().markParentsDirty()}function un(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function hn(e,t=!1){if(!(I&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),cn(e),t||e.docView&&e.docView.dirty){let t=Ge(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}function dn(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}Ft.compositionstart=Ft.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),hn(e,!0),e.markCursor=null;else if(hn(e),T&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){e.domSelection().collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}ln(e,sn)},Ft.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,ln(e,20))};const fn=E&&S<15||D&&F<604;function pn(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function mn(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?gn(e,r.value,null,t):gn(e,r.textContent,r.innerHTML,t)},50)}function gn(e,t,n,r){let o=xt(e,t,n,e.input.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,r,o||i["Slice"].empty)))return!0;if(!o)return!1;let a=pn(o),s=a?e.state.tr.replaceSelectionWith(a,e.input.shiftKey):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Rt.copy=Ft.cut=(e,t)=>{let n=t,r=e.state.selection,i="cut"==n.type;if(r.empty)return;let o=fn?null:n.clipboardData,a=r.content(),{dom:s,text:l}=wt(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):dn(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Ft.paste=(e,t)=>{let n=t;if(e.composing&&!I)return;let r=fn?null:n.clipboardData;r&&gn(e,r.getData("text/plain"),r.getData("text/html"),n)?n.preventDefault():mn(e,n)};class vn{constructor(e,t){this.slice=e,this.move=t}}const bn=P?"altKey":"ctrlKey";Rt.dragstart=(e,t)=>{let n=t,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let o=e.state.selection,a=o.empty?null:e.posAtCoords(Vt(n));if(a&&a.pos>=o.from&&a.pos<=(o instanceof r["NodeSelection"]?o.to-1:o.to));else if(i&&i.mightDrag)e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,i.mightDrag.pos)));else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,t.posBefore)))}let s=e.state.selection.content(),{dom:l,text:c}=wt(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(fn?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",fn||n.dataTransfer.setData("text/plain",c),e.dragging=new vn(s,!n[bn])},Rt.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Ft.dragover=Ft.dragenter=(e,t)=>t.preventDefault(),Ft.drop=(e,t)=>{let n=t,a=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let s=e.posAtCoords(Vt(n));if(!s)return;let l=e.state.doc.resolve(s.pos),c=a&&a.slice;c?e.someProp("transformPasted",t=>{c=t(c,e)}):c=xt(e,n.dataTransfer.getData(fn?"Text":"text/plain"),fn?null:n.dataTransfer.getData("text/html"),!1,l);let u=!(!a||n[bn]);if(e.someProp("handleDrop",t=>t(e,n,c||i["Slice"].empty,u)))return void n.preventDefault();if(!c)return;n.preventDefault();let h=c?Object(o["h"])(e.state.doc,l.pos,c):l.pos;null==h&&(h=l.pos);let d=e.state.tr;u&&d.deleteSelection();let f=d.mapping.map(h),p=0==c.openStart&&0==c.openEnd&&1==c.content.childCount,m=d.doc;if(p?d.replaceRangeWith(f,f,c.content.firstChild):d.replaceRange(f,f,c),d.doc.eq(m))return;let g=d.doc.resolve(f);if(p&&r["NodeSelection"].isSelectable(c.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(c.content.firstChild))d.setSelection(new r["NodeSelection"](g));else{let t=d.mapping.map(h);d.mapping.maps[d.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),d.setSelection(tt(e,g,d.doc.resolve(t)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))},Rt.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Ve(e)},20))},Rt.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Rt.beforeinput=(e,t)=>{let n=t;if(M&&I&&"deleteContentBackward"==n.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,v(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let dr in Ft)Rt[dr]=Ft[dr];function yn(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class wn{constructor(e,t){this.toDOM=e,this.spec=t||En,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:o}=e.mapResult(t.from+r,this.side<0?-1:1);return o?null:new An(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof wn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&yn(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class xn{constructor(e,t){this.attrs=e,this.spec=t||En}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new An(i,o,this)}valid(e,t){return t.from=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let o=0;oe){let a=this.children[o]+1;this.children[o+2].findInner(e-a,t-a,n,r+a,i)}}map(e,t,n){return this==Tn||0==e.maps.length?this:this.mapInner(e,t,0,0,n||En)}mapInner(e,t,n,r,i){let o;for(let a=0;a{let a,s=o+n;if(a=Dn(t,e,s)){r||(r=this.children.slice());while(io&&t.to=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,o=i+t.content.size;for(let a=0;ai&&e.type instanceof xn){let t=Math.max(i,e.from)-i,n=Math.min(o,e.to)-i;tn.map(e,t,En));return Nn.from(n)}forChild(e,t){if(t.isLeaf)return Sn.empty;let n=[];for(let r=0;re instanceof Sn)?e:e.reduce((e,t)=>e.concat(t instanceof Sn?t:t.members),[]))}}}function Mn(e,t,n,r,i,o,a){let s=e.slice();for(let c=0,u=o;c{let a=o-r-(n-t);for(let l=0;lo+u-e)continue;let c=s[l]+u-e;n>=c?s[l+1]=t<=c?-2:-1:r>=i&&a&&(s[l]+=a,s[l+1]+=a)}e+=a}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c=r.content.size){l=!0;continue}let h=n.map(e[c+1]+o,-1),d=h-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[c+2].mapInner(n,m,t+1,e[c]+o+1,a);r!=Tn?(s[c]=u,s[c+1]=d,s[c+2]=r):(s[c+1]=-2,l=!0)}else l=!0}if(l){let l=On(s,e,t,n,i,o,a),c=In(l,r,0,a);t=c.local;for(let e=0;en&&o.to{let s=Dn(e,t,a+n);if(s){o=!0;let e=In(s,t,n+a+1,r);e!=Tn&&i.push(a,a+t.nodeSize,e)}});let a=Ln(o?Pn(e):e,-n).sort(Rn);for(let s=0;s0)t++;e.splice(t,0,n)}function Bn(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=Tn&&t.push(r)}),e.cursorWrapper&&t.push(Sn.create(e.state.doc,[e.cursorWrapper.deco])),Nn.from(t)}const _n={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},jn=E&&S<=11;class Hn{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Un{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Hn,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),jn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,_n)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;tthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(nt(this.view)){if(this.suppressingSelectionUpdates)return Ve(this.view);if(E&&S<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let i=e.focusNode;i;i=s(i))n.add(i);for(let i=e.anchorNode;i;i=s(i))if(n.has(i)){t=i;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.observer?this.observer.takeRecords():[];this.queue.length&&(t=this.queue.concat(t),this.queue.length=0);let n=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&nt(e)&&!this.ignoreSelectionChange(n),o=-1,a=-1,s=!1,l=[];if(e.editable)for(let r=0;r1){let e=l.filter(e=>"BR"==e.nodeName);if(2==e.length){let t=e[0],n=e[1];t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&e.input.lastTouch-1||i)&&(o>-1&&(e.docView.markDirty(o,a),Wn(e)),this.handleDOMChange(o,a,s,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Ve(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;na;i--){let e=o.childNodes[i-1],t=e.pmViewDesc;if("BR"==e.nodeName&&!t){s=i;break}if(!t||t.size)break}let d=e.state.doc,f=e.someProp("domParser")||i["DOMParser"].fromSchema(e.state.schema),p=d.resolve(l),m=null,v=f.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:a,to:s,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:r,ruleFromNode:Zn,context:p});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),m={anchor:e+l,head:t+l}}return{doc:v,sel:m,from:l,to:c}}function Zn(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(O&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||O&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}function Kn(e,t,n,i,o){if(t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=Ge(e,t);if(n&&!e.state.selection.eq(n)){let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),e.dispatch(r)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l,c,u=e.state.selection,h=Yn(e,t,n),d=e.state.doc,f=d.slice(h.from,h.to);8===e.input.lastKeyCode&&Date.now()-100Date.now()-225||I)&&o.some(e=>"DIV"==e.nodeName||"P"==e.nodeName||"LI"==e.nodeName)&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(!p){if(!(i&&u instanceof r["TextSelection"]&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||h.sel&&h.sel.anchor!=h.sel.head){if(h.sel){let t=Xn(e,e.state.doc,h.sel);t&&!t.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(t))}return}p={start:u.from,endA:u.to,endB:u.to}}if(M&&e.cursorWrapper&&h.sel&&h.sel.anchor==e.cursorWrapper.deco.from&&h.sel.head==h.sel.anchor){let e=p.endB-p.start;h.sel={anchor:h.sel.anchor+e,head:h.sel.anchor+e}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=h.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=h.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),E&&S<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>h.from&&"  "==h.doc.textBetween(p.start-h.from-1,p.start-h.from+1)&&(p.start--,p.endA--,p.endB--);let m,g=h.doc.resolveNoCache(p.start-h.from),b=h.doc.resolveNoCache(p.endB-h.from),y=d.resolve(p.start),w=g.sameParent(b)&&g.parent.inlineContent&&y.end()>=p.endA;if((D&&e.input.lastIOSEnter>Date.now()-225&&(!w||o.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!w&&g.post(e,v(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>p.start&&Qn(d,p.start,p.endA,g,b)&&e.someProp("handleKeyDown",t=>t(e,v(8,"Backspace"))))return void(I&&M&&e.domObserver.suppressSelectionUpdates());M&&I&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),I&&!w&&g.start()!=b.start()&&0==b.parentOffset&&g.depth==b.depth&&h.sel&&h.sel.anchor==h.sel.head&&h.sel.head==p.endA&&(p.endB-=2,b=h.doc.resolveNoCache(p.endB-h.from),setTimeout(()=>{e.someProp("handleKeyDown",(function(t){return t(e,v(13,"Enter"))}))},20));let x,k,A,C=p.start,T=p.endA;if(w)if(g.pos==b.pos)E&&S<=11&&0==g.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ve(e),20)),x=e.state.tr.delete(C,T),k=d.resolve(p.start).marksAcross(d.resolve(p.endA));else if(p.endA==p.endB&&(A=Jn(g.parent.content.cut(g.parentOffset,b.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start()))))x=e.state.tr,"add"==A.type?x.addMark(C,T,A.mark):x.removeMark(C,T,A.mark);else if(g.parent.child(g.index()).isText&&g.index()==b.index()-(b.textOffset?0:1)){let t=g.parent.textBetween(g.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",n=>n(e,C,T,t)))return;x=e.state.tr.insertText(t,C,T)}if(x||(x=e.state.tr.replace(C,T,h.doc.slice(p.start-h.from,p.endB-h.from))),h.sel){let t=Xn(e,x.doc,h.sel);t&&!(M&&I&&e.composing&&t.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:tt(e,t.resolve(n.anchor),t.resolve(n.head))}function Jn(e,t){let n,r,o,a=e.firstChild.marks,s=t.firstChild.marks,l=a,c=s;for(let i=0;ie.mark(r.addToSet(e.marks));else{if(0!=l.length||1!=c.length)return null;r=c[0],n="remove",o=e=>e.mark(r.removeFromSet(e.marks))}let u=[];for(let i=0;in||$n(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount))r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));while(t&&!t.isLeaf)t=t.firstChild,i++}return i}function er(e,t,n,r,i){let o=e.findDiffStart(t,n);if(null==o)return null;let{a:a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==i){let e=Math.max(0,o-Math.min(a,s));r-=a+e-o}if(a=a?o-r:0;o-=e,s=o+(s-a),a=o}else if(s=s?o-r:0;o-=e,a=o+(a-s),s=o}return{start:o,endA:a,endB:s}}const tr=wt,nr=xt,rr=hn;class ir{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Bt,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(hr),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=sr(this),ar(this),this.nodeViews=cr(this),this.docView=Ae(this.state.doc,or(this),Bn(this),this.dom,this),this.domObserver=new Un(this,(e,t,n,r)=>Kn(this,e,t,n,r)),this.domObserver.start(),_t(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Ut(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(hr),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(cn(this),i=!0),this.state=e;let o=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(o||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=cr(this);ur(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(o||t.handleDOMEvents!=this._props.handleDOMEvents)&&Ut(this),this.editable=sr(this),ar(this);let a=Bn(this),s=or(this),l=n.plugins==e.plugins||n.doc.eq(e.doc)?e.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",c=r||!this.docView.matchesNode(e.doc,s,a);!c&&e.selection.eq(n.selection)||(i=!0);let u="preserve"==l&&i&&null==this.dom.style.overflowAnchor&&H(this);if(i){this.domObserver.stop();let t=c&&(E||M)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&lr(n.selection,e.selection);if(c){let n=M?this.trackWrites=this.domSelectionRange().focusNode:null;!r&&this.docView.update(e.doc,s,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Ae(e.doc,s,a,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&it(this))?Ve(this,t):($e(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),"reset"==l?this.dom.scrollTop=0:"to selection"==l?this.scrollToSelection():u&&q(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof r["NodeSelection"]){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&j(this,t.getBoundingClientRect(),e)}else j(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;while(e=this.pluginViews.pop())e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;tt.ownerDocument.getSelection()),this._root=t;return e||document}posAtCoords(e){return ee(this,e)}coordsAtPos(e,t=1){return re(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return fe(this,t||this.state,e)}destroy(){this.docView&&(Ht(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Bn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return Wt(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return O&&11===this.root.nodeType&&b(this.dom.ownerDocument)==this.dom?Vn(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function or(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e&&(t.class+=" "+n[e]),"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),[An.node(0,e.state.doc.content.size,t)]}function ar(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:An.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function sr(e){return!e.someProp("editable",t=>!1===t(e.state))}function lr(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function cr(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function ur(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function hr(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}},7080:function(e,t,n){e.exports=n.p+"img/vitalityOrange.jpg"},"70b9":function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n("8287"),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{h(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(e){if("undefined"===typeof window||!f)return h(e);try{return h(e)}catch(t){return!1}};r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),h=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var f=0;f0)for(var m=0;m0&&(o=n[0].slice(e-t,e)+o,r=i)}return t.tr.insertText(o,r,i)}}const s=500;function l({rules:e}){let t=new r["Plugin"]({state:{init(){return null},apply(e,t){let n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput(n,r,i,o){return c(n,r,i,o,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&c(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function c(e,t,n,r,i,o){if(e.composing)return!1;let a=e.state,l=a.doc.resolve(t);if(l.parent.type.spec.code)return!1;let c=l.parent.textBetween(Math.max(0,l.parentOffset-s),l.parentOffset,null,"")+r;for(let s=0;s{let n=e.plugins;for(let r=0;r=0;e--)n.step(r.steps[e].invert(r.docs[e]));if(i.text){let t=n.doc.resolve(i.from).marks();n.replaceWith(i.from,i.to,e.schema.text(i.text,t))}else n.delete(i.from,i.to);t(n)}return!0}}return!1},h=new o(/--$/,"—"),d=new o(/\.\.\.$/,"…"),f=new o(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),p=new o(/"$/,"”"),m=new o(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),g=new o(/'$/,"’"),v=[f,p,m,g];function b(e,t,n=null,r){return new o(e,(e,o,a,s)=>{let l=n instanceof Function?n(o):n,c=e.tr.delete(a,s),u=c.doc.resolve(a),h=u.blockRange(),d=h&&Object(i["i"])(h,t,l);if(!d)return null;c.wrap(h,d);let f=c.doc.resolve(a-1).nodeBefore;return f&&f.type==t&&Object(i["f"])(c.doc,a-1)&&(!r||r(o,f))&&c.join(a-1),c})}function y(e,t,n=null){return new o(e,(e,r,i,o)=>{let a=e.doc.resolve(i),s=n instanceof Function?n(r):n;return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),t)?e.tr.delete(i,o).setBlockType(i,i,t,s):null})}},7694:function(e,t,n){},7718:function(e,t,n){e.exports=n.p+"img/huafei.svg"},"77be":function(e,t,n){"use strict";var r=n("5e8c"),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},"77f4":function(e,t,n){e.exports=n.p+"img/niunai.svg"},"780f":function(e,t,n){"use strict";e.exports=o;var r=n("27bf"),i=Object.create(n("3a7c"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n("3fb5"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},7812:function(e,t,n){"use strict";n("eb20")},7992:function(e,t,n){e.exports=n.p+"img/mindMap.png"},"7a10":function(e,t,n){e.exports=n.p+"img/laodongjie.svg"},"7a46":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));const r=e=>({[Symbol.iterator](){return this},next:e}),i=(e,t)=>r(()=>{let n;do{n=e.next()}while(!n.done&&!t(n.value));return n}),o=(e,t)=>r(()=>{const{done:n,value:r}=e.next();return{done:n,value:n?void 0:t(r)}})},"7b13":function(e,t,n){"use strict";n("41ab")},"7b4d":function(e,t,n){},"7bbc":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return v}));var r=n("1651"),i=n("ca2d"),o=n("0e4d"),a=n("5e9b"),s=n("01fd");const l="undefined"!==typeof e&&e.release&&/node|io\.js/.test(e.release.name),c="undefined"!==typeof window&&"undefined"!==typeof document&&!l;"undefined"!==typeof navigator&&/Mac/.test(navigator.platform);let u;const h=[],d=()=>{if(void 0===u)if(l){u=r["c"]();const t=e.argv;let n=null;for(let e=0;e{if(0!==e.length){const[t,n]=e.split("=");u.set("--"+i["c"](t,"-"),n),u.set("-"+i["c"](t,"-"),n)}})):u=r["c"]();return u},f=e=>d().has(e),p=e=>l?o["a"](Object({NODE_ENV:"production",BASE_URL:window.externalPublicPath})[e.toUpperCase()]):o["a"](a["c"].getItem(e)),m=e=>f("--"+e)||null!==p(e),g=(m("production"),l&&s["d"](Object({NODE_ENV:"production",BASE_URL:"dist/"}).FORCE_COLOR,["true","1","2"])),v=!f("no-colors")&&(!l||e.stdout.isTTY||g)&&(!l||f("color")||g||null!==p("COLORTERM")||(p("TERM")||"").includes("color"))}).call(this,n("4362"))},"7be0":function(e,t,n){e.exports=n.p+"img/a-14-zhutingqi.svg"},"7c97":function(e,t,n){e.exports=n.p+"img/binggun.svg"},"7cb3":function(e,t,n){"use strict";n("dfe7")},"7cc6":function(e,t,n){e.exports=n.p+"img/-.svg"},"7d59":function(e,t,n){e.exports=n.p+"img/baichui.svg"},"7d72":function(e,t,n){"use strict";var r=n("8707").Buffer,i=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){const n=this._observers.get(e);void 0!==n&&(n.delete(t),0===n.size&&this._observers.delete(e))}emit(e,t){return o["c"]((this._observers.get(e)||r["c"]()).values()).forEach(e=>e(...t))}destroy(){this._observers=r["c"]()}}},8287:function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},"82b0":function(e,t,n){e.exports=n.p+"img/a-16-yiyuan.svg"},8484:function(e,t,n){e.exports=n.p+"img/a-shuben2.svg"},"860a":function(e,t,n){"use strict";var r=n("f770"),i=n("6c12"),o=n("7e07"),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},"86d9":function(e,t,n){e.exports=n.p+"img/classic3.jpg"},8707:function(e,t,n){var r=n("b639"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},8722:function(e,t,n){e.exports=n.p+"img/hanbao.svg"},8763:function(e,t,n){e.exports=n.p+"img/zongheshenpi.svg"},8952:function(e,t,n){"use strict";n("0e5f")},8953:function(e,t,n){"use strict";var r=n("cda9"),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},"899a":function(e,t,n){"use strict";var r=n("b2d1");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},"89c8":function(e,t,n){e.exports=n.p+"img/ziyuan_8.svg"},"8b39":function(e,t,n){e.exports=n.p+"img/a-5-mianqian.svg"},"8b92":function(e,t,n){e.exports=n.p+"img/classicBlue.jpg"},"8cd8":function(e,t,n){e.exports=n.p+"img/a-bitong1.svg"},"8ce6":function(e,t,n){e.exports=n.p+"img/a-xueshimao1.svg"},"8d05":function(e,t,n){},"8f14":function(e,t,n){e.exports=n.p+"img/earthYellow.jpg"},"8f8b":function(e,t,n){e.exports=n.p+"img/citie.svg"},"90d8":function(e,t,n){var r=n("c65b"),i=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},9152:function(e,t){ +*/const yo={},wo=[];function xo(e,t){if(Array.isArray(e))for(const n of e)xo(n,t);else if("object"!==typeof e)Co(Object.getOwnPropertyNames(t)),yo[e]=Object.assign(yo[e]||{},t);else for(const n in e)xo(n,e[n])}function ko(e){return yo[e]||{}}function Ao(){return[...new Set(wo)]}function Co(e){wo.push(...e)}function Eo(e,t){let n;const r=e.length,i=[];for(n=0;n=0;t--)Jo(e.children[t]);return e.id?(e.id=Xo(e.nodeName),e):e}function Qo(e,t){let n,r;for(e=Array.isArray(e)?e:[e],r=e.length-1;r>=0;r--)for(n in t)e[r].prototype[n]=t[n]}function $o(e){return function(...t){const n=t[t.length-1];return!n||n.constructor!==Object||n instanceof Array?e.apply(this,t):e.apply(this,t.slice(0,-1)).attr(n)}}function ea(){return this.parent().children()}function ta(){return this.parent().index(this)}function na(){return this.siblings()[this.position()+1]}function ra(){return this.siblings()[this.position()-1]}function ia(){const e=this.position(),t=this.parent();return t.add(this.remove(),e+1),this}function oa(){const e=this.position(),t=this.parent();return t.add(this.remove(),e?e-1:0),this}function aa(){const e=this.parent();return e.add(this.remove()),this}function sa(){const e=this.parent();return e.add(this.remove(),0),this}function la(e){e=qo(e),e.remove();const t=this.position();return this.parent().add(e,t),this}function ca(e){e=qo(e),e.remove();const t=this.position();return this.parent().add(e,t+1),this}function ua(e){return e=qo(e),e.before(this),this}function ha(e){return e=qo(e),e.after(this),this}xo("Dom",{siblings:ea,position:ta,next:na,prev:ra,forward:ia,backward:oa,front:aa,back:sa,before:la,after:ca,insertBefore:ua,insertAfter:ha});const da=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,fa=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,pa=/rgb\((\d+),(\d+),(\d+)\)/,ma=/(#[a-z_][a-z0-9\-_]*)/i,ga=/\)\s*,?\s*/,va=/\s/g,ba=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,ya=/^rgb\(/,wa=/^(\s+)?$/,xa=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ka=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Aa=/[\s,]+/,Ca=/[MLHVCSQTAZ]/i;function Ea(){const e=this.attr("class");return null==e?[]:e.trim().split(Aa)}function Sa(e){return-1!==this.classes().indexOf(e)}function Ta(e){if(!this.hasClass(e)){const t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this}function Na(e){return this.hasClass(e)&&this.attr("class",this.classes().filter((function(t){return t!==e})).join(" ")),this}function Ma(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)}function La(e,t){const n={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter((function(e){return!!e.length})).forEach((function(e){const t=e.split(/\s*:\s*/);n[t[0]]=t[1]})),n;if(arguments.length<2){if(Array.isArray(e)){for(const t of e){const e=No(t);n[t]=this.node.style[e]}return n}if("string"===typeof e)return this.node.style[No(e)];if("object"===typeof e)for(const t in e)this.node.style[No(t)]=null==e[t]||wa.test(e[t])?"":e[t]}return 2===arguments.length&&(this.node.style[No(e)]=null==t||wa.test(t)?"":t),this}function Oa(){return this.css("display","")}function Da(){return this.css("display","none")}function Pa(){return"none"!==this.css("display")}function Ia(e,t,n){if(null==e)return this.data(Eo(So(this.node.attributes,e=>0===e.nodeName.indexOf("data-")),e=>e.nodeName.slice(5)));if(e instanceof Array){const t={};for(const n of e)t[n]=this.data(n);return t}if("object"===typeof e)for(t in e)this.data(t,e[t]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+e))}catch(r){return this.attr("data-"+e)}else this.attr("data-"+e,null===t?null:!0===n||"string"===typeof t||"number"===typeof t?t:JSON.stringify(t));return this}function Ra(e,t){if("object"===typeof arguments[0])for(const n in e)this.remember(n,e[n]);else{if(1===arguments.length)return this.memory()[e];this.memory()[e]=t}return this}function Fa(){if(0===arguments.length)this._memory={};else for(let e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this}function za(){return this._memory=this._memory||{}}function Ba(e){return 4===e.length?["#",e.substring(1,2),e.substring(1,2),e.substring(2,3),e.substring(2,3),e.substring(3,4),e.substring(3,4)].join(""):e}function _a(e){const t=Math.round(e),n=Math.max(0,Math.min(255,t)),r=n.toString(16);return 1===r.length?"0"+r:r}function ja(e,t){for(let n=t.length;n--;)if(null==e[t[n]])return!1;return!0}function Ha(e,t){const n=ja(e,"rgb")?{_a:e.r,_b:e.g,_c:e.b,_d:0,space:"rgb"}:ja(e,"xyz")?{_a:e.x,_b:e.y,_c:e.z,_d:0,space:"xyz"}:ja(e,"hsl")?{_a:e.h,_b:e.s,_c:e.l,_d:0,space:"hsl"}:ja(e,"lab")?{_a:e.l,_b:e.a,_c:e.b,_d:0,space:"lab"}:ja(e,"lch")?{_a:e.l,_b:e.c,_c:e.h,_d:0,space:"lch"}:ja(e,"cmyk")?{_a:e.c,_b:e.m,_c:e.y,_d:e.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return n.space=t||n.space,n}function Ua(e){return"lab"===e||"xyz"===e||"lch"===e}function qa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}xo("Dom",{classes:Ea,hasClass:Sa,addClass:Ta,removeClass:Na,toggleClass:Ma}),xo("Dom",{css:La,show:Oa,hide:Da,visible:Pa}),xo("Dom",{data:Ia}),xo("Dom",{remember:Ra,forget:Fa,memory:za});class Ga{constructor(...e){this.init(...e)}static isColor(e){return e&&(e instanceof Ga||this.isRgb(e)||this.test(e))}static isRgb(e){return e&&"number"===typeof e.r&&"number"===typeof e.g&&"number"===typeof e.b}static random(e="vibrant",t,n){const{random:r,round:i,sin:o,PI:a}=Math;if("vibrant"===e){const e=24*r()+57,t=38*r()+45,n=360*r(),i=new Ga(e,t,n,"lch");return i}if("sine"===e){t=null==t?r():t;const e=i(80*o(2*a*t/.5+.01)+150),n=i(50*o(2*a*t/.5+4.6)+200),s=i(100*o(2*a*t/.5+2.3)+150),l=new Ga(e,n,s);return l}if("pastel"===e){const e=8*r()+86,t=17*r()+9,n=360*r(),i=new Ga(e,t,n,"lch");return i}if("dark"===e){const e=10+10*r(),t=50*r()+86,n=360*r(),i=new Ga(e,t,n,"lch");return i}if("rgb"===e){const e=255*r(),t=255*r(),n=255*r(),i=new Ga(e,t,n);return i}if("lab"===e){const e=100*r(),t=256*r()-128,n=256*r()-128,i=new Ga(e,t,n,"lab");return i}if("grey"===e){const e=255*r(),t=new Ga(e,e,e);return t}throw new Error("Unsupported random color mode")}static test(e){return"string"===typeof e&&(ba.test(e)||ya.test(e))}cmyk(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,i,o]=[e,t,n].map(e=>e/255),a=Math.min(1-r,1-i,1-o);if(1===a)return new Ga(0,0,0,1,"cmyk");const s=(1-r-a)/(1-a),l=(1-i-a)/(1-a),c=(1-o-a)/(1-a),u=new Ga(s,l,c,a,"cmyk");return u}hsl(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,i,o]=[e,t,n].map(e=>e/255),a=Math.max(r,i,o),s=Math.min(r,i,o),l=(a+s)/2,c=a===s,u=a-s,h=c?0:l>.5?u/(2-a-s):u/(a+s),d=c?0:a===r?((i-o)/u+(iparseInt(e));Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}else{if(!ba.test(e))throw Error("Unsupported string format, can't construct Color");{const t=e=>parseInt(e,16),[,n,r,i]=fa.exec(Ba(e)).map(t);Object.assign(this,{_a:n,_b:r,_c:i,_d:0,space:"rgb"})}}const{_a:o,_b:a,_c:s,_d:l}=this,c="rgb"===this.space?{r:o,g:a,b:s}:"xyz"===this.space?{x:o,y:a,z:s}:"hsl"===this.space?{h:o,s:a,l:s}:"lab"===this.space?{l:o,a:a,b:s}:"lch"===this.space?{l:o,c:a,h:s}:"cmyk"===this.space?{c:o,m:a,y:s,k:l}:{};Object.assign(this,c)}lab(){const{x:e,y:t,z:n}=this.xyz(),r=116*t-16,i=500*(e-t),o=200*(t-n),a=new Ga(r,i,o,"lab");return a}lch(){const{l:e,a:t,b:n}=this.lab(),r=Math.sqrt(t**2+n**2);let i=180*Math.atan2(n,t)/Math.PI;i<0&&(i*=-1,i=360-i);const o=new Ga(e,r,i,"lch");return o}rgb(){if("rgb"===this.space)return this;if(Ua(this.space)){let{x:e,y:t,z:n}=this;if("lab"===this.space||"lch"===this.space){let{l:r,a:i,b:o}=this;if("lch"===this.space){const{c:e,h:t}=this,n=Math.PI/180;i=e*Math.cos(n*t),o=e*Math.sin(n*t)}const a=(r+16)/116,s=i/500+a,l=a-o/200,c=16/116,u=.008856,h=7.787;e=.95047*(s**3>u?s**3:(s-c)/h),t=1*(a**3>u?a**3:(a-c)/h),n=1.08883*(l**3>u?l**3:(l-c)/h)}const r=3.2406*e+-1.5372*t+-.4986*n,i=-.9689*e+1.8758*t+.0415*n,o=.0557*e+-.204*t+1.057*n,a=Math.pow,s=.0031308,l=r>s?1.055*a(r,1/2.4)-.055:12.92*r,c=i>s?1.055*a(i,1/2.4)-.055:12.92*i,u=o>s?1.055*a(o,1/2.4)-.055:12.92*o,h=new Ga(255*l,255*c,255*u);return h}if("hsl"===this.space){let{h:e,s:t,l:n}=this;if(e/=360,t/=100,n/=100,0===t){n*=255;const e=new Ga(n,n,n);return e}const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=255*qa(i,r,e+1/3),a=255*qa(i,r,e),s=255*qa(i,r,e-1/3),l=new Ga(o,a,s);return l}if("cmyk"===this.space){const{c:e,m:t,y:n,k:r}=this,i=255*(1-Math.min(1,e*(1-r)+r)),o=255*(1-Math.min(1,t*(1-r)+r)),a=255*(1-Math.min(1,n*(1-r)+r)),s=new Ga(i,o,a);return s}return this}toArray(){const{_a:e,_b:t,_c:n,_d:r,space:i}=this;return[e,t,n,r,i]}toHex(){const[e,t,n]=this._clamped().map(_a);return`#${e}${t}${n}`}toRgb(){const[e,t,n]=this._clamped(),r=`rgb(${e},${t},${n})`;return r}toString(){return this.toHex()}xyz(){const{_a:e,_b:t,_c:n}=this.rgb(),[r,i,o]=[e,t,n].map(e=>e/255),a=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,s=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,l=o>.04045?Math.pow((o+.055)/1.055,2.4):o/12.92,c=(.4124*a+.3576*s+.1805*l)/.95047,u=(.2126*a+.7152*s+.0722*l)/1,h=(.0193*a+.1192*s+.9505*l)/1.08883,d=c>.008856?Math.pow(c,1/3):7.787*c+16/116,f=u>.008856?Math.pow(u,1/3):7.787*u+16/116,p=h>.008856?Math.pow(h,1/3):7.787*h+16/116,m=new Ga(d,f,p,"xyz");return m}_clamped(){const{_a:e,_b:t,_c:n}=this.rgb(),{max:r,min:i,round:o}=Math,a=e=>r(0,i(o(e),255));return[e,t,n].map(a)}}class Wa{constructor(...e){this.init(...e)}clone(){return new Wa(this)}init(e,t){const n={x:0,y:0},r=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===typeof e?{x:e.x,y:e.y}:{x:e,y:t};return this.x=null==r.x?n.x:r.x,this.y=null==r.y?n.y:r.y,this}toArray(){return[this.x,this.y]}transform(e){return this.clone().transformO(e)}transformO(e){Za.isMatrixLike(e)||(e=new Za(e));const{x:t,y:n}=this;return this.x=e.a*t+e.c*n+e.e,this.y=e.b*t+e.d*n+e.f,this}}function Va(e,t){return new Wa(e,t).transform(this.screenCTM().inverse())}function Ya(e,t,n){return Math.abs(t-e)<(n||1e-6)}class Za{constructor(...e){this.init(...e)}static formatTransforms(e){const t="both"===e.flip||!0===e.flip,n=e.flip&&(t||"x"===e.flip)?-1:1,r=e.flip&&(t||"y"===e.flip)?-1:1,i=e.skew&&e.skew.length?e.skew[0]:isFinite(e.skew)?e.skew:isFinite(e.skewX)?e.skewX:0,o=e.skew&&e.skew.length?e.skew[1]:isFinite(e.skew)?e.skew:isFinite(e.skewY)?e.skewY:0,a=e.scale&&e.scale.length?e.scale[0]*n:isFinite(e.scale)?e.scale*n:isFinite(e.scaleX)?e.scaleX*n:n,s=e.scale&&e.scale.length?e.scale[1]*r:isFinite(e.scale)?e.scale*r:isFinite(e.scaleY)?e.scaleY*r:r,l=e.shear||0,c=e.rotate||e.theta||0,u=new Wa(e.origin||e.around||e.ox||e.originX,e.oy||e.originY),h=u.x,d=u.y,f=new Wa(e.position||e.px||e.positionX||NaN,e.py||e.positionY||NaN),p=f.x,m=f.y,g=new Wa(e.translate||e.tx||e.translateX,e.ty||e.translateY),v=g.x,b=g.y,y=new Wa(e.relative||e.rx||e.relativeX,e.ry||e.relativeY),w=y.x,x=y.y;return{scaleX:a,scaleY:s,skewX:i,skewY:o,shear:l,theta:c,rx:w,ry:x,tx:v,ty:b,ox:h,oy:d,px:p,py:m}}static fromArray(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}static isMatrixLike(e){return null!=e.a||null!=e.b||null!=e.c||null!=e.d||null!=e.e||null!=e.f}static matrixMultiply(e,t,n){const r=e.a*t.a+e.c*t.b,i=e.b*t.a+e.d*t.b,o=e.a*t.c+e.c*t.d,a=e.b*t.c+e.d*t.d,s=e.e+e.a*t.e+e.c*t.f,l=e.f+e.b*t.e+e.d*t.f;return n.a=r,n.b=i,n.c=o,n.d=a,n.e=s,n.f=l,n}around(e,t,n){return this.clone().aroundO(e,t,n)}aroundO(e,t,n){const r=e||0,i=t||0;return this.translateO(-r,-i).lmultiplyO(n).translateO(r,i)}clone(){return new Za(this)}decompose(e=0,t=0){const n=this.a,r=this.b,i=this.c,o=this.d,a=this.e,s=this.f,l=n*o-r*i,c=l>0?1:-1,u=c*Math.sqrt(n*n+r*r),h=Math.atan2(c*r,c*n),d=180/Math.PI*h,f=Math.cos(h),p=Math.sin(h),m=(n*i+r*o)/l,g=i*u/(m*n-r)||o*u/(m*r+n),v=a-e+e*f*u+t*(m*f*u-p*g),b=s-t+e*p*u+t*(m*p*u+f*g);return{scaleX:u,scaleY:g,shear:m,rotate:d,translateX:v,translateY:b,originX:e,originY:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(e){if(e===this)return!0;const t=new Za(e);return Ya(this.a,t.a)&&Ya(this.b,t.b)&&Ya(this.c,t.c)&&Ya(this.d,t.d)&&Ya(this.e,t.e)&&Ya(this.f,t.f)}flip(e,t){return this.clone().flipO(e,t)}flipO(e,t){return"x"===e?this.scaleO(-1,1,t,0):"y"===e?this.scaleO(1,-1,0,t):this.scaleO(-1,-1,e,t||e)}init(e){const t=Za.fromArray([1,0,0,1,0,0]);return e=e instanceof Ns?e.matrixify():"string"===typeof e?Za.fromArray(e.split(Aa).map(parseFloat)):Array.isArray(e)?Za.fromArray(e):"object"===typeof e&&Za.isMatrixLike(e)?e:"object"===typeof e?(new Za).transform(e):6===arguments.length?Za.fromArray([].slice.call(arguments)):t,this.a=null!=e.a?e.a:t.a,this.b=null!=e.b?e.b:t.b,this.c=null!=e.c?e.c:t.c,this.d=null!=e.d?e.d:t.d,this.e=null!=e.e?e.e:t.e,this.f=null!=e.f?e.f:t.f,this}inverse(){return this.clone().inverseO()}inverseO(){const e=this.a,t=this.b,n=this.c,r=this.d,i=this.e,o=this.f,a=e*r-t*n;if(!a)throw new Error("Cannot invert "+this);const s=r/a,l=-t/a,c=-n/a,u=e/a,h=-(s*i+c*o),d=-(l*i+u*o);return this.a=s,this.b=l,this.c=c,this.d=u,this.e=h,this.f=d,this}lmultiply(e){return this.clone().lmultiplyO(e)}lmultiplyO(e){const t=this,n=e instanceof Za?e:new Za(e);return Za.matrixMultiply(n,t,this)}multiply(e){return this.clone().multiplyO(e)}multiplyO(e){const t=this,n=e instanceof Za?e:new Za(e);return Za.matrixMultiply(t,n,this)}rotate(e,t,n){return this.clone().rotateO(e,t,n)}rotateO(e,t=0,n=0){e=To(e);const r=Math.cos(e),i=Math.sin(e),{a:o,b:a,c:s,d:l,e:c,f:u}=this;return this.a=o*r-a*i,this.b=a*r+o*i,this.c=s*r-l*i,this.d=l*r+s*i,this.e=c*r-u*i+n*i-t*r+t,this.f=u*r+c*i-t*i-n*r+n,this}scale(e,t,n,r){return this.clone().scaleO(...arguments)}scaleO(e,t=e,n=0,r=0){3===arguments.length&&(r=n,n=t,t=e);const{a:i,b:o,c:a,d:s,e:l,f:c}=this;return this.a=i*e,this.b=o*t,this.c=a*e,this.d=s*t,this.e=l*e-n*e+n,this.f=c*t-r*t+r,this}shear(e,t,n){return this.clone().shearO(e,t,n)}shearO(e,t=0,n=0){const{a:r,b:i,c:o,d:a,e:s,f:l}=this;return this.a=r+i*e,this.c=o+a*e,this.e=s+l*e-n*e,this}skew(e,t,n,r){return this.clone().skewO(...arguments)}skewO(e,t=e,n=0,r=0){3===arguments.length&&(r=n,n=t,t=e),e=To(e),t=To(t);const i=Math.tan(e),o=Math.tan(t),{a:a,b:s,c:l,d:c,e:u,f:h}=this;return this.a=a+s*i,this.b=s+a*o,this.c=l+c*i,this.d=c+l*o,this.e=u+h*i-r*i,this.f=h+u*o-n*o,this}skewX(e,t,n){return this.skew(e,0,t,n)}skewY(e,t,n){return this.skew(0,e,t,n)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(e){if(Za.isMatrixLike(e)){const t=new Za(e);return t.multiplyO(this)}const t=Za.formatTransforms(e),n=this,{x:r,y:i}=new Wa(t.ox,t.oy).transform(n),o=(new Za).translateO(t.rx,t.ry).lmultiplyO(n).translateO(-r,-i).scaleO(t.scaleX,t.scaleY).skewO(t.skewX,t.skewY).shearO(t.shear).rotateO(t.theta).translateO(r,i);if(isFinite(t.px)||isFinite(t.py)){const e=new Wa(r,i).transform(o),n=isFinite(t.px)?t.px-e.x:0,a=isFinite(t.py)?t.py-e.y:0;o.translateO(n,a)}return o.translateO(t.tx,t.ty),o}translate(e,t){return this.clone().translateO(e,t)}translateO(e,t){return this.e+=e||0,this.f+=t||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function Ka(){return new Za(this.node.getCTM())}function Xa(){if("function"===typeof this.isRoot&&!this.isRoot()){const e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new Za(t)}return new Za(this.node.getScreenCTM())}function Ja(){if(!Ja.nodes){const e=qo().size(2,0);e.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),e.attr("focusable","false"),e.attr("aria-hidden","true");const t=e.path().node;Ja.nodes={svg:e,path:t}}if(!Ja.nodes.svg.node.parentNode){const e=Bo.document.body||Bo.document.documentElement;Ja.nodes.svg.addTo(e)}return Ja.nodes}function Qa(e){return!e.width&&!e.height&&!e.x&&!e.y}function $a(e){return e===Bo.document||(Bo.document.documentElement.contains||function(e){while(e.parentNode)e=e.parentNode;return e===Bo.document}).call(Bo.document.documentElement,e)}Yo(Za,"Matrix");class es{constructor(...e){this.init(...e)}addOffset(){return this.x+=Bo.window.pageXOffset,this.y+=Bo.window.pageYOffset,new es(this)}init(e){const t=[0,0,0,0];return e="string"===typeof e?e.split(Aa).map(parseFloat):Array.isArray(e)?e:"object"===typeof e?[null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height]:4===arguments.length?[].slice.call(arguments):t,this.x=e[0]||0,this.y=e[1]||0,this.width=this.w=e[2]||0,this.height=this.h=e[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Qa(this)}merge(e){const t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),r=Math.max(this.x+this.width,e.x+e.width)-t,i=Math.max(this.y+this.height,e.y+e.height)-n;return new es(t,n,r,i)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(e){e instanceof Za||(e=new Za(e));let t=1/0,n=-1/0,r=1/0,i=-1/0;const o=[new Wa(this.x,this.y),new Wa(this.x2,this.y),new Wa(this.x,this.y2),new Wa(this.x2,this.y2)];return o.forEach((function(o){o=o.transform(e),t=Math.min(t,o.x),n=Math.max(n,o.x),r=Math.min(r,o.y),i=Math.max(i,o.y)})),new es(t,r,n-t,i-r)}}function ts(e,t,n){let r;try{if(r=t(e.node),Qa(r)&&!$a(e.node))throw new Error("Element not in the dom")}catch(i){r=n(e)}return r}function ns(){const e=e=>e.getBBox(),t=e=>{try{const t=e.clone().addTo(Ja().svg).show(),n=t.node.getBBox();return t.remove(),n}catch(t){throw new Error(`Getting bbox of element "${e.node.nodeName}" is not possible: ${t.toString()}`)}},n=ts(this,e,t),r=new es(n);return r}function rs(e){const t=e=>e.getBoundingClientRect(),n=e=>{throw new Error(`Getting rbox of element "${e.node.nodeName}" is not possible`)},r=ts(this,t,n),i=new es(r);return e?i.transform(e.screenCTM().inverseO()):i.addOffset()}function is(e,t){const n=this.bbox();return e>n.x&&t>n.y&&ee.call(t,t,n,r)):this.map(n=>n[e](...t))},toArray(){return Array.prototype.concat.apply([],this)}});const as=["toArray","constructor","each"];function ss(e,t){return new os(Eo((t||Bo.document).querySelectorAll(e),(function(e){return Wo(e)})))}function ls(e){return ss(e,this.node)}function cs(e){return Wo(this.node.querySelector(e))}os.extend=function(e){e=e.reduce((e,t)=>(as.includes(t)||"_"===t[0]||(e[t]=function(...e){return this.each(t,...e)}),e),{}),Qo([os],e)};let us=0;const hs={};function ds(e){let t=e.getEventHolder();return t===Bo.window&&(t=hs),t.events||(t.events={}),t.events}function fs(e){return e.getEventTarget()}function ps(e){let t=e.getEventHolder();t===Bo.window&&(t=hs),t.events&&(t.events={})}function ms(e,t,n,r,i){const o=n.bind(r||e),a=qo(e),s=ds(a),l=fs(a);t=Array.isArray(t)?t:t.split(Aa),n._svgjsListenerId||(n._svgjsListenerId=++us),t.forEach((function(e){const t=e.split(".")[0],r=e.split(".")[1]||"*";s[t]=s[t]||{},s[t][r]=s[t][r]||{},s[t][r][n._svgjsListenerId]=o,l.addEventListener(t,o,i||!1)}))}function gs(e,t,n,r){const i=qo(e),o=ds(i),a=fs(i);("function"!==typeof n||(n=n._svgjsListenerId,n))&&(t=Array.isArray(t)?t:(t||"").split(Aa),t.forEach((function(e){const t=e&&e.split(".")[0],s=e&&e.split(".")[1];let l,c;if(n)o[t]&&o[t][s||"*"]&&(a.removeEventListener(t,o[t][s||"*"][n],r||!1),delete o[t][s||"*"][n]);else if(t&&s){if(o[t]&&o[t][s]){for(c in o[t][s])gs(a,[t,s].join("."),c);delete o[t][s]}}else if(s)for(e in o)for(l in o[e])s===l&&gs(a,[e,s].join("."));else if(t){if(o[t]){for(l in o[t])gs(a,[t,l].join("."));delete o[t]}}else{for(e in o)gs(a,e);ps(i)}})))}function vs(e,t,n,r){const i=fs(e);return t instanceof Bo.window.Event||(t=new Bo.window.CustomEvent(t,{detail:n,cancelable:!0,...r})),i.dispatchEvent(t),t}class bs extends _o{addEventListener(){}dispatch(e,t,n){return vs(this,e,t,n)}dispatchEvent(e){const t=this.getEventHolder().events;if(!t)return!0;const n=t[e.type];for(const r in n)for(const t in n[r])n[r][t](e);return!e.defaultPrevented}fire(e,t,n){return this.dispatch(e,t,n),this}getEventHolder(){return this}getEventTarget(){return this}off(e,t,n){return gs(this,e,t,n),this}on(e,t,n,r){return ms(this,e,t,n,r),this}removeEventListener(){}}function ys(){}Yo(bs,"EventTarget");const ws={duration:400,ease:">",delay:0},xs={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class ks extends Array{constructor(...e){super(...e),this.init(...e)}clone(){return new this.constructor(this)}init(e){return"number"===typeof e||(this.length=0,this.push(...this.parse(e))),this}parse(e=[]){return e instanceof Array?e:e.trim().split(Aa).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const e=[];return e.push(...this),e}}class As{constructor(...e){this.init(...e)}convert(e){return new As(this.value,e)}divide(e){return e=new As(e),new As(this/e,this.unit||e.unit)}init(e,t){return t=Array.isArray(e)?e[1]:t,e=Array.isArray(e)?e[0]:e,this.value=0,this.unit=t||"","number"===typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"===typeof e?(t=e.match(da),t&&(this.value=parseFloat(t[1]),"%"===t[5]?this.value/=100:"s"===t[5]&&(this.value*=1e3),this.unit=t[5])):e instanceof As&&(this.value=e.valueOf(),this.unit=e.unit),this}minus(e){return e=new As(e),new As(this-e,this.unit||e.unit)}plus(e){return e=new As(e),new As(this+e,this.unit||e.unit)}times(e){return e=new As(e),new As(this*e,this.unit||e.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Cs=[];function Es(e){Cs.push(e)}function Ss(e,t,n){if(null==e){e={},t=this.node.attributes;for(const n of t)e[n.nodeName]=xa.test(n.nodeValue)?parseFloat(n.nodeValue):n.nodeValue;return e}if(e instanceof Array)return e.reduce((e,t)=>(e[t]=this.attr(t),e),{});if("object"===typeof e&&e.constructor===Object)for(t in e)this.attr(t,e[t]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return t=this.node.getAttribute(e),null==t?xs[e]:xa.test(t)?parseFloat(t):t;t=Cs.reduce((t,n)=>n(e,t,this),t),"number"===typeof t?t=new As(t):Ga.isColor(t)?t=new Ga(t):t.constructor===Array&&(t=new ks(t)),"leading"===e?this.leading&&this.leading(t):"string"===typeof n?this.node.setAttributeNS(n,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!==e&&"x"!==e||this.rebuild()}return this}class Ts extends bs{constructor(e,t){super(),this.node=e,this.type=e.nodeName,t&&e!==t&&this.attr(t)}add(e,t){return e=qo(e),e.removeNamespace&&this.node instanceof Bo.window.SVGElement&&e.removeNamespace(),null==t?this.node.appendChild(e.node):e.node!==this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this}addTo(e,t){return qo(e).put(this,t)}children(){return new os(Eo(this.node.children,(function(e){return Wo(e)})))}clear(){while(this.node.hasChildNodes())this.node.removeChild(this.node.lastChild);return this}clone(e=!0){return this.writeDataToDom(),new this.constructor(Jo(this.node.cloneNode(e)))}each(e,t){const n=this.children();let r,i;for(r=0,i=n.length;r=0}html(e,t){return this.xml(e,t,Io)}id(e){return"undefined"!==typeof e||this.node.id||(this.node.id=Xo(this.type)),this.attr("id",e)}index(e){return[].slice.call(this.node.childNodes).indexOf(e.node)}last(){return Wo(this.node.lastChild)}matches(e){const t=this.node,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null;return n&&n.call(t,e)}parent(e){let t=this;if(!t.node.parentNode)return null;if(t=Wo(t.node.parentNode),!e)return t;do{if("string"===typeof e?t.matches(e):t instanceof e)return t}while(t=Wo(t.node.parentNode));return t}put(e,t){return e=qo(e),this.add(e,t),e}putIn(e,t){return qo(e).add(this,t)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(e){return this.node.removeChild(e.node),this}replace(e){return e=qo(e),this.node.parentNode&&this.node.parentNode.replaceChild(e.node,this.node),e}round(e=2,t=null){const n=10**e,r=this.attr(t);for(const i in r)"number"===typeof r[i]&&(r[i]=Math.round(r[i]*n)/n);return this.attr(r),this}svg(e,t){return this.xml(e,t,Po)}toString(){return this.id()}words(e){return this.node.textContent=e,this}wrap(e){const t=this.parent();if(!t)return this.addTo(e);const n=t.index(this);return t.put(e,n).put(this)}writeDataToDom(){return this.each((function(){this.writeDataToDom()})),this}xml(e,t,n){if("boolean"===typeof e&&(n=t,t=e,e=null),null==e||"function"===typeof e){t=null==t||t,this.writeDataToDom();let n=this;if(null!=e){if(n=Wo(n.node.cloneNode(!0)),t){const t=e(n);if(n=t||n,!1===t)return""}n.each((function(){const t=e(this),n=t||this;!1===t?this.remove():t&&this!==n&&this.replace(n)}),!0)}return t?n.node.outerHTML:n.node.innerHTML}t=null!=t&&t;const r=Uo("wrapper",n),i=Bo.document.createDocumentFragment();r.innerHTML=e;for(let a=r.children.length;a--;)i.appendChild(r.firstElementChild);const o=this.parent();return t?this.replace(i)&&o:this.add(i)}}Qo(Ts,{attr:Ss,find:ls,findOne:cs}),Yo(Ts,"Dom");class Ns extends Ts{constructor(e,t){super(e,t),this.dom={},this.node.instance=this,e.hasAttribute("svgjs:data")&&this.setData(JSON.parse(e.getAttribute("svgjs:data"))||{})}center(e,t){return this.cx(e).cy(t)}cx(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)}cy(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)}defs(){const e=this.root();return e&&e.defs()}dmove(e,t){return this.dx(e).dy(t)}dx(e=0){return this.x(new As(e).plus(this.x()))}dy(e=0){return this.y(new As(e).plus(this.y()))}getEventHolder(){return this}height(e){return this.attr("height",e)}move(e,t){return this.x(e).y(t)}parents(e=this.root()){const t="string"===typeof e;t||(e=qo(e));const n=new os;let r=this;while((r=r.parent())&&r.node!==Bo.document&&"#document-fragment"!==r.nodeName){if(n.push(r),!t&&r.node===e.node)break;if(t&&r.matches(e))break;if(r.node===this.root().node)return null}return n}reference(e){if(e=this.attr(e),!e)return null;const t=(e+"").match(ma);return t?qo(t[1]):null}root(){const e=this.parent(Zo(Ho));return e&&e.root()}setData(e){return this.dom=e,this}size(e,t){const n=Oo(this,e,t);return this.width(new As(n.width)).height(new As(n.height))}width(e){return this.attr("width",e)}writeDataToDom(){return this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),super.writeDataToDom()}x(e){return this.attr("x",e)}y(e){return this.attr("y",e)}}Qo(Ns,{bbox:ns,rbox:rs,inside:is,point:Va,ctm:Ka,screenCTM:Xa}),Yo(Ns,"Element");const Ms={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"===t?e:e+"-"+t}};["fill","stroke"].forEach((function(e){const t={};let n;t[e]=function(t){if("undefined"===typeof t)return this.attr(e);if("string"===typeof t||t instanceof Ga||Ga.isRgb(t)||t instanceof Ns)this.attr(e,t);else for(n=Ms[e].length-1;n>=0;n--)null!=t[Ms[e][n]]&&this.attr(Ms.prefix(e,Ms[e][n]),t[Ms[e][n]]);return this},xo(["Element","Runner"],t)})),xo(["Element","Runner"],{matrix:function(e,t,n,r,i,o){return null==e?new Za(this):this.attr("transform",new Za(e,t,n,r,i,o))},rotate:function(e,t,n){return this.transform({rotate:e,ox:t,oy:n},!0)},skew:function(e,t,n,r){return 1===arguments.length||3===arguments.length?this.transform({skew:e,ox:t,oy:n},!0):this.transform({skew:[e,t],ox:n,oy:r},!0)},shear:function(e,t,n){return this.transform({shear:e,ox:t,oy:n},!0)},scale:function(e,t,n,r){return 1===arguments.length||3===arguments.length?this.transform({scale:e,ox:t,oy:n},!0):this.transform({scale:[e,t],ox:n,oy:r},!0)},translate:function(e,t){return this.transform({translate:[e,t]},!0)},relative:function(e,t){return this.transform({relative:[e,t]},!0)},flip:function(e="both",t="center"){return-1==="xybothtrue".indexOf(e)&&(t=e,e="both"),this.transform({flip:e,origin:t},!0)},opacity:function(e){return this.attr("opacity",e)}}),xo("radius",{radius:function(e,t=e){const n=(this._element||this).type;return"radialGradient"===n?this.attr("r",new As(e)):this.rx(e).ry(t)}}),xo("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(e){return new Wa(this.node.getPointAtLength(e))}}),xo(["Element","Runner"],{font:function(e,t){if("object"===typeof e){for(t in e)this.font(t,e[t]);return this}return"leading"===e?this.leading(t):"anchor"===e?this.attr("text-anchor",t):"size"===e||"family"===e||"weight"===e||"stretch"===e||"variant"===e||"style"===e?this.attr("font-"+e,t):this.attr(e,t)}});const Ls=["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel"].reduce((function(e,t){const n=function(e){return null===e?this.off(t):this.on(t,e),this};return e[t]=n,e}),{});function Os(){return this.attr("transform",null)}function Ds(){const e=(this.attr("transform")||"").split(ga).slice(0,-1).map((function(e){const t=e.trim().split("(");return[t[0],t[1].split(Aa).map((function(e){return parseFloat(e)}))]})).reverse().reduce((function(e,t){return"matrix"===t[0]?e.lmultiply(Za.fromArray(t[1])):e[t[0]].apply(e,t[1])}),new Za);return e}function Ps(e,t){if(this===e)return this;const n=this.screenCTM(),r=e.screenCTM().inverse();return this.addTo(e,t).untransform().transform(r.multiply(n)),this}function Is(e){return this.toParent(this.root(),e)}function Rs(e,t){if(null==e||"string"===typeof e){const t=new Za(this).decompose();return null==e?t:t[e]}Za.isMatrixLike(e)||(e={...e,origin:Do(e,this)});const n=!0===t?this:t||!1,r=new Za(n).transform(e);return this.attr("transform",r)}xo("Element",Ls),xo("Element",{untransform:Os,matrixify:Ds,toParent:Ps,toRoot:Is,transform:Rs});class Fs extends Ns{flatten(e=this,t){return this.each((function(){if(this instanceof Fs)return this.flatten().ungroup()})),this}ungroup(e=this.parent(),t=e.index(this)){return t=-1===t?e.children().length:t,this.each((function(n,r){return r[r.length-n-1].toParent(e,t)})),this.remove()}}Yo(Fs,"Container");class zs extends Fs{constructor(e,t=e){super(Go("defs",e),t)}flatten(){return this}ungroup(){return this}}Yo(zs,"Defs");class Bs extends Ns{}function _s(e){return this.attr("rx",e)}function js(e){return this.attr("ry",e)}function Hs(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())}function Us(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())}function qs(e){return this.attr("cx",e)}function Gs(e){return this.attr("cy",e)}function Ws(e){return null==e?2*this.rx():this.rx(new As(e).divide(2))}function Vs(e){return null==e?2*this.ry():this.ry(new As(e).divide(2))}Yo(Bs,"Shape");var Ys={__proto__:null,rx:_s,ry:js,x:Hs,y:Us,cx:qs,cy:Gs,width:Ws,height:Vs};class Zs extends Bs{constructor(e,t=e){super(Go("ellipse",e),t)}size(e,t){const n=Oo(this,e,t);return this.rx(new As(n.width).divide(2)).ry(new As(n.height).divide(2))}}Qo(Zs,Ys),xo("Container",{ellipse:$o((function(e=0,t=e){return this.put(new Zs).size(e,t).move(0,0)}))}),Yo(Zs,"Ellipse");class Ks extends Ts{constructor(e=Bo.document.createDocumentFragment()){super(e)}xml(e,t,n){if("boolean"===typeof e&&(n=t,t=e,e=null),null==e||"function"===typeof e){const e=new Ts(Uo("wrapper",n));return e.add(this.node.cloneNode(!0)),e.xml(!1,n)}return super.xml(e,!1,n)}}function Xs(e,t){return"radialGradient"===(this._element||this).type?this.attr({fx:new As(e),fy:new As(t)}):this.attr({x1:new As(e),y1:new As(t)})}function Js(e,t){return"radialGradient"===(this._element||this).type?this.attr({cx:new As(e),cy:new As(t)}):this.attr({x2:new As(e),y2:new As(t)})}Yo(Ks,"Fragment");var Qs={__proto__:null,from:Xs,to:Js};class $s extends Fs{constructor(e,t){super(Go(e+"Gradient","string"===typeof e?null:e),t)}attr(e,t,n){return"transform"===e&&(e="gradientTransform"),super.attr(e,t,n)}bbox(){return new es}targets(){return ss('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(e){return this.clear(),"function"===typeof e&&e.call(this,this),this}url(){return'url("#'+this.id()+'")'}}Qo($s,Qs),xo({Container:{gradient(...e){return this.defs().gradient(...e)}},Defs:{gradient:$o((function(e,t){return this.put(new $s(e)).update(t)}))}}),Yo($s,"Gradient");class el extends Fs{constructor(e,t=e){super(Go("pattern",e),t)}attr(e,t,n){return"transform"===e&&(e="patternTransform"),super.attr(e,t,n)}bbox(){return new es}targets(){return ss('svg [fill*="'+this.id()+'"]')}toString(){return this.url()}update(e){return this.clear(),"function"===typeof e&&e.call(this,this),this}url(){return'url("#'+this.id()+'")'}}xo({Container:{pattern(...e){return this.defs().pattern(...e)}},Defs:{pattern:$o((function(e,t,n){return this.put(new el).update(n).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}))}}),Yo(el,"Pattern");class tl extends Bs{constructor(e,t=e){super(Go("image",e),t)}load(e,t){if(!e)return this;const n=new Bo.window.Image;return ms(n,"load",(function(e){const r=this.parent(el);0===this.width()&&0===this.height()&&this.size(n.width,n.height),r instanceof el&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"===typeof t&&t.call(this,e)}),this),ms(n,"load error",(function(){gs(n)})),this.attr("href",n.src=e,Fo)}}Es((function(e,t,n){return"fill"!==e&&"stroke"!==e||ka.test(t)&&(t=n.root().defs().image(t)),t instanceof tl&&(t=n.root().defs().pattern(0,0,e=>{e.add(t)})),t})),xo({Container:{image:$o((function(e,t){return this.put(new tl).size(0,0).load(e,t)}))}}),Yo(tl,"Image");class nl extends ks{bbox(){let e=-1/0,t=-1/0,n=1/0,r=1/0;return this.forEach((function(i){e=Math.max(i[0],e),t=Math.max(i[1],t),n=Math.min(i[0],n),r=Math.min(i[1],r)})),new es(n,r,e-n,t-r)}move(e,t){const n=this.bbox();if(e-=n.x,t-=n.y,!isNaN(e)&&!isNaN(t))for(let r=this.length-1;r>=0;r--)this[r]=[this[r][0]+e,this[r][1]+t];return this}parse(e=[0,0]){const t=[];e=e instanceof Array?Array.prototype.concat.apply([],e):e.trim().split(Aa).map(parseFloat),e.length%2!==0&&e.pop();for(let n=0,r=e.length;n=0;n--)r.width&&(this[n][0]=(this[n][0]-r.x)*e/r.width+r.x),r.height&&(this[n][1]=(this[n][1]-r.y)*t/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const e=[];for(let t=0,n=this.length;t":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)},bezier:function(e,t,n,r){return function(i){return i<0?e>0?t/e*i:n>0?r/n*i:0:i>1?n<1?(1-r)/(1-n)*i+(r-n)/(1-n):e<1?(1-t)/(1-e)*i+(t-e)/(1-e):1:3*i*(1-i)**2*t+3*i**2*(1-i)*r+i**3}},steps:function(e,t="end"){t=t.split("-").reverse()[0];let n=e;return"none"===t?--n:"both"===t&&++n,(r,i=!1)=>{let o=Math.floor(r*e);const a=r*o%1===0;return"start"!==t&&"both"!==t||++o,i&&a&&--o,r>=0&&o<0&&(o=0),r<=1&&o>n&&(o=n),o/n}}};class fl{done(){return!1}}class pl extends fl{constructor(e=ws.ease){super(),this.ease=dl[e]||e}step(e,t,n){return"number"!==typeof e?n<1?e:t:e+(t-e)*this.ease(n)}}class ml extends fl{constructor(e){super(),this.stepper=e}done(e){return e.done}step(e,t,n,r){return this.stepper(e,t,n,r)}}function gl(){const e=(this._duration||500)/1e3,t=this._overshoot||0,n=1e-10,r=Math.PI,i=Math.log(t/100+n),o=-i/Math.sqrt(r*r+i*i),a=3.9/(o*e);this.d=2*o*a,this.k=a*a}class vl extends ml{constructor(e=500,t=0){super(),this.duration(e).overshoot(t)}step(e,t,n,r){if("string"===typeof e)return e;if(r.done=n===1/0,n===1/0)return t;if(0===n)return e;n>100&&(n=16),n/=1e3;const i=r.velocity||0,o=-this.d*i-this.k*(e-t),a=e+i*n+o*n*n/2;return r.velocity=i+o*n,r.done=Math.abs(t-a)+Math.abs(i)<.002,r.done?t:a}}Qo(vl,{duration:hl("_duration",gl),overshoot:hl("_overshoot",gl)});class bl extends ml{constructor(e=.1,t=.01,n=0,r=1e3){super(),this.p(e).i(t).d(n).windup(r)}step(e,t,n,r){if("string"===typeof e)return e;if(r.done=n===1/0,n===1/0)return t;if(0===n)return e;const i=t-e;let o=(r.integral||0)+i*n;const a=(i-(r.error||0))/n,s=this._windup;return!1!==s&&(o=Math.max(-s,Math.min(o,s))),r.error=i,r.integral=o,r.done=Math.abs(i)<.001,r.done?t:e+(this.P*i+this.I*o+this.D*a)}}Qo(bl,{windup:hl("_windup"),p:hl("P"),i:hl("I"),d:hl("D")});const yl={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},wl={M:function(e,t,n){return t.x=n.x=e[0],t.y=n.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},T:function(e,t){return t.x=e[0],t.y=e[1],["T",e[0],e[1]]},Z:function(e,t,n){return t.x=n.x,t.y=n.y,["Z"]},A:function(e,t){return t.x=e[5],t.y=e[6],["A",e[0],e[1],e[2],e[3],e[4],e[5],e[6]]}},xl="mlhvqtcsaz".split("");for(let RE=0,FE=xl.length;RE=0;i--)r=this[i][0],"M"===r||"L"===r||"T"===r?(this[i][1]+=e,this[i][2]+=t):"H"===r?this[i][1]+=e:"V"===r?this[i][1]+=t:"C"===r||"S"===r||"Q"===r?(this[i][1]+=e,this[i][2]+=t,this[i][3]+=e,this[i][4]+=t,"C"===r&&(this[i][5]+=e,this[i][6]+=t)):"A"===r&&(this[i][6]+=e,this[i][7]+=t);return this}parse(e="M0 0"){return Array.isArray(e)&&(e=Array.prototype.concat.apply([],e).toString()),Ml(e)}size(e,t){const n=this.bbox();let r,i;for(n.width=0===n.width?1:n.width,n.height=0===n.height?1:n.height,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]=(this[r][1]-n.x)*e/n.width+n.x,this[r][2]=(this[r][2]-n.y)*t/n.height+n.y):"H"===i?this[r][1]=(this[r][1]-n.x)*e/n.width+n.x:"V"===i?this[r][1]=(this[r][1]-n.y)*t/n.height+n.y:"C"===i||"S"===i||"Q"===i?(this[r][1]=(this[r][1]-n.x)*e/n.width+n.x,this[r][2]=(this[r][2]-n.y)*t/n.height+n.y,this[r][3]=(this[r][3]-n.x)*e/n.width+n.x,this[r][4]=(this[r][4]-n.y)*t/n.height+n.y,"C"===i&&(this[r][5]=(this[r][5]-n.x)*e/n.width+n.x,this[r][6]=(this[r][6]-n.y)*t/n.height+n.y)):"A"===i&&(this[r][1]=this[r][1]*e/n.width,this[r][2]=this[r][2]*t/n.height,this[r][6]=(this[r][6]-n.x)*e/n.width+n.x,this[r][7]=(this[r][7]-n.y)*t/n.height+n.y);return this}toString(){return Ll(this)}}const Dl=e=>{const t=typeof e;return"number"===t?As:"string"===t?Ga.isColor(e)?Ga:Aa.test(e)?Ca.test(e)?Ol:ks:da.test(e)?As:Il:Bl.indexOf(e.constructor)>-1?e.constructor:Array.isArray(e)?ks:"object"===t?zl:Il};class Pl{constructor(e){this._stepper=e||new pl("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(e){return this._morphObj.morph(this._from,this._to,e,this._stepper,this._context)}done(){const e=this._context.map(this._stepper.done).reduce((function(e,t){return e&&t}),!0);return e}from(e){return null==e?this._from:(this._from=this._set(e),this)}stepper(e){return null==e?this._stepper:(this._stepper=e,this)}to(e){return null==e?this._to:(this._to=this._set(e),this)}type(e){return null==e?this._type:(this._type=e,this)}_set(e){this._type||this.type(Dl(e));let t=new this._type(e);return this._type===Ga&&(t=this._to?t[this._to[4]]():this._from?t[this._from[4]]():t),this._type===zl&&(t=this._to?t.align(this._to):this._from?t.align(this._from):t),t=t.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(t.length)).map(Object).map((function(e){return e.done=!0,e})),t}}class Il{constructor(...e){this.init(...e)}init(e){return e=Array.isArray(e)?e[0]:e,this.value=e,this}toArray(){return[this.value]}valueOf(){return this.value}}class Rl{constructor(...e){this.init(...e)}init(e){return Array.isArray(e)&&(e={scaleX:e[0],scaleY:e[1],shear:e[2],rotate:e[3],translateX:e[4],translateY:e[5],originX:e[6],originY:e[7]}),Object.assign(this,Rl.defaults,e),this}toArray(){const e=this;return[e.scaleX,e.scaleY,e.shear,e.rotate,e.translateX,e.translateY,e.originX,e.originY]}}Rl.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Fl=(e,t)=>e[0]t[0]?1:0;class zl{constructor(...e){this.init(...e)}align(e){const t=this.values;for(let n=0,r=t.length;ne.concat(t),[]),this}toArray(){return this.values}valueOf(){const e={},t=this.values;while(t.length){const n=t.shift(),r=t.shift(),i=t.shift(),o=t.splice(0,i);e[n]=new r(o)}return e}}const Bl=[Il,Rl,zl];function _l(e=[]){Bl.push(...[].concat(e))}function jl(){Qo(Bl,{to(e){return(new Pl).type(this.constructor).from(this.toArray()).to(e)},fromArray(e){return this.init(e),this},toConsumable(){return this.toArray()},morph(e,t,n,r,i){const o=function(e,o){return r.step(e,t[o],n,i[o],i)};return this.fromArray(e.map(o))}})}class Hl extends Bs{constructor(e,t=e){super(Go("path",e),t)}array(){return this._array||(this._array=new Ol(this.attr("d")))}clear(){return delete this._array,this}height(e){return null==e?this.bbox().height:this.size(this.bbox().width,e)}move(e,t){return this.attr("d",this.array().move(e,t))}plot(e){return null==e?this.array():this.clear().attr("d","string"===typeof e?e:this._array=new Ol(e))}size(e,t){const n=Oo(this,e,t);return this.attr("d",this.array().size(n.width,n.height))}width(e){return null==e?this.bbox().width:this.size(e,this.bbox().height)}x(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)}y(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)}}function Ul(){return this._array||(this._array=new nl(this.attr("points")))}function ql(){return delete this._array,this}function Gl(e,t){return this.attr("points",this.array().move(e,t))}function Wl(e){return null==e?this.array():this.clear().attr("points","string"===typeof e?e:this._array=new nl(e))}function Vl(e,t){const n=Oo(this,e,t);return this.attr("points",this.array().size(n.width,n.height))}Hl.prototype.MorphArray=Ol,xo({Container:{path:$o((function(e){return this.put(new Hl).plot(e||new Ol)}))}}),Yo(Hl,"Path");var Yl={__proto__:null,array:Ul,clear:ql,move:Gl,plot:Wl,size:Vl};class Zl extends Bs{constructor(e,t=e){super(Go("polygon",e),t)}}xo({Container:{polygon:$o((function(e){return this.put(new Zl).plot(e||new nl)}))}}),Qo(Zl,ll),Qo(Zl,Yl),Yo(Zl,"Polygon");class Kl extends Bs{constructor(e,t=e){super(Go("polyline",e),t)}}xo({Container:{polyline:$o((function(e){return this.put(new Kl).plot(e||new nl)}))}}),Qo(Kl,ll),Qo(Kl,Yl),Yo(Kl,"Polyline");class Xl extends Bs{constructor(e,t=e){super(Go("rect",e),t)}}Qo(Xl,{rx:_s,ry:js}),xo({Container:{rect:$o((function(e,t){return this.put(new Xl).size(e,t)}))}}),Yo(Xl,"Rect");class Jl{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(e){const t="undefined"!==typeof e.next?e:{value:e,next:null,prev:null};return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._last=t,this._first=t),t}remove(e){e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this._last&&(this._last=e.prev),e===this._first&&(this._first=e.next),e.prev=null,e.next=null}shift(){const e=this._first;return e?(this._first=e.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,e.value):null}}const Ql={nextDraw:null,frames:new Jl,timeouts:new Jl,immediates:new Jl,timer:()=>Bo.window.performance||Bo.window.Date,transforms:[],frame(e){const t=Ql.frames.push({run:e});return null===Ql.nextDraw&&(Ql.nextDraw=Bo.window.requestAnimationFrame(Ql._draw)),t},timeout(e,t){t=t||0;const n=Ql.timer().now()+t,r=Ql.timeouts.push({run:e,time:n});return null===Ql.nextDraw&&(Ql.nextDraw=Bo.window.requestAnimationFrame(Ql._draw)),r},immediate(e){const t=Ql.immediates.push(e);return null===Ql.nextDraw&&(Ql.nextDraw=Bo.window.requestAnimationFrame(Ql._draw)),t},cancelFrame(e){null!=e&&Ql.frames.remove(e)},clearTimeout(e){null!=e&&Ql.timeouts.remove(e)},cancelImmediate(e){null!=e&&Ql.immediates.remove(e)},_draw(e){let t=null;const n=Ql.timeouts.last();while(t=Ql.timeouts.shift())if(e>=t.time?t.run():Ql.timeouts.push(t),t===n)break;let r=null;const i=Ql.frames.last();while(r!==i&&(r=Ql.frames.shift()))r.run(e);let o=null;while(o=Ql.immediates.shift())o();Ql.nextDraw=Ql.timeouts.first()||Ql.frames.first()?Bo.window.requestAnimationFrame(Ql._draw):null}},$l=function(e){const t=e.start,n=e.runner.duration(),r=t+n;return{start:t,duration:n,end:r,runner:e.runner}},ec=function(){const e=Bo.window;return(e.performance||e.Date).now()};class tc extends bs{constructor(e=ec){super(),this._timeSource=e,this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const e=this.getLastRunnerInfo(),t=e?e.runner.duration():0,n=e?e.start:this._time;return n+t}getEndTimeOfTimeline(){const e=this._runners.map(e=>e.start+e.runner.duration());return Math.max(0,...e)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(e){return this._runners[this._runnerIds.indexOf(e)]||null}pause(){return this._paused=!0,this._continue()}persist(e){return null==e?this._persist:(this._persist=e,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(e){const t=this.speed();if(null==e)return this.speed(-t);const n=Math.abs(t);return this.speed(e?-n:n)}schedule(e,t,n){if(null==e)return this._runners.map($l);let r=0;const i=this.getEndTime();if(t=t||0,null==n||"last"===n||"after"===n)r=i;else if("absolute"===n||"start"===n)r=t,t=0;else if("now"===n)r=this._time;else if("relative"===n){const n=this.getRunnerInfoById(e.id);n&&(r=n.start+t,t=0)}else{if("with-last"!==n)throw new Error('Invalid value for the "when" parameter');{const e=this.getLastRunnerInfo(),t=e?e.start:this._time;r=t}}e.unschedule(),e.timeline(this);const o=e.persist(),a={persist:null===o?this._persist:o,start:r+t,runner:e};return this._lastRunnerId=e.id,this._runners.push(a),this._runners.sort((e,t)=>e.start-t.start),this._runnerIds=this._runners.map(e=>e.runner.id),this.updateTime()._continue(),this}seek(e){return this.time(this._time+e)}source(e){return null==e?this._timeSource:(this._timeSource=e,this)}speed(e){return null==e?this._speed:(this._speed=e,this)}stop(){return this.time(0),this.pause()}time(e){return null==e?this._time:(this._time=e,this._continue(!0))}unschedule(e){const t=this._runnerIds.indexOf(e.id);return t<0||(this._runners.splice(t,1),this._runnerIds.splice(t,1),e.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(e=!1){return Ql.cancelFrame(this._nextFrame),this._nextFrame=null,e?this._stepImmediate():(this._paused||(this._nextFrame=Ql.frame(this._step)),this)}_stepFn(e=!1){const t=this._timeSource();let n=t-this._lastSourceTime;e&&(n=0);const r=this._speed*n+(this._time-this._lastStepTime);this._lastSourceTime=t,e||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let o=this._runners.length;o--;){const e=this._runners[o],t=e.runner,n=this._time-e.start;n<=0&&t.reset()}let i=!1;for(let o=0,a=this._runners.length;o0?this._continue():(this.pause(),this.fire("finished")),this}}xo({Element:{timeline:function(e){return null==e?(this._timeline=this._timeline||new tc,this._timeline):(this._timeline=e,this)}}});class nc extends bs{constructor(e){super(),this.id=nc.id++,e=null==e?ws.duration:e,e="function"===typeof e?new ml(e):e,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"===typeof e&&e,this._isDeclarative=e instanceof ml,this._stepper=this._isDeclarative?e:new pl,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new Za,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(e,t,n){let r=1,i=!1,o=0;return e=e||ws.duration,t=t||ws.delay,n=n||"last","object"!==typeof e||e instanceof fl||(t=e.delay||t,n=e.when||n,i=e.swing||i,r=e.times||r,o=e.wait||o,e=e.duration||ws.duration),{duration:e,delay:t,swing:i,times:r,wait:o,when:n}}active(e){return null==e?this.enabled:(this.enabled=e,this)}addTransform(e,t){return this.transforms.lmultiplyO(e),this}after(e){return this.on("finished",e)}animate(e,t,n){const r=nc.sanitise(e,t,n),i=new nc(r.duration);return this._timeline&&i.timeline(this._timeline),this._element&&i.element(this._element),i.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new Za,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(e=>!e.isTransform))}delay(e){return this.animate(0,e)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(e){return this.queue(null,e)}ease(e){return this._stepper=new pl(e),this}element(e){return null==e?this._element:(this._element=e,e._prepareRunner(),this)}finish(){return this.step(1/0)}loop(e,t,n){return"object"===typeof e&&(t=e.swing,n=e.wait,e=e.times),this._times=e||1/0,this._swing=t||!1,this._wait=n||0,!0===this._times&&(this._times=1/0),this}loops(e){const t=this._duration+this._wait;if(null==e){const e=Math.floor(this._time/t),n=this._time-e*t,r=n/this._duration;return Math.min(e+r,this._times)}const n=Math.floor(e),r=e%1,i=t*n+this._duration*r;return this.time(i)}persist(e){return null==e?this._persist:(this._persist=e,this)}position(e){const t=this._time,n=this._duration,r=this._wait,i=this._times,o=this._swing,a=this._reverse;let s;if(null==e){const e=function(e){const t=o*Math.floor(e%(2*(r+n))/(r+n)),i=t&&!a||!t&&a,s=Math.pow(-1,i)*(e%(r+n))/n+i,l=Math.max(Math.min(s,1),0);return l},l=i*(r+n)-r;return s=t<=0?Math.round(e(1e-5)):t=0;this._lastPosition=t;const r=this.duration(),i=this._lastTime<=0&&this._time>0,o=this._lastTime=r;this._lastTime=this._time,i&&this.fire("start",this);const a=this._isDeclarative;this.done=!a&&!o&&this._time>=r,this._reseted=!1;let s=!1;return(n||a)&&(this._initialise(n),this.transforms=new Za,s=this._run(a?e:t),this.fire("step",this)),this.done=this.done||s&&a,o&&this.fire("finished",this),this}time(e){if(null==e)return this._time;const t=e-this._time;return this.step(t),this}timeline(e){return"undefined"===typeof e?this._timeline:(this._timeline=e,this)}unschedule(){const e=this.timeline();return e&&e.unschedule(this),this}_initialise(e){if(e||this._isDeclarative)for(let t=0,n=this._queue.length;te.lmultiplyO(t),oc=e=>e.transforms;function ac(){const e=this._transformationRunners.runners,t=e.map(oc).reduce(ic,new Za);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class sc{constructor(){this.runners=[],this.ids=[]}add(e){if(this.runners.includes(e))return;const t=e.id+1;return this.runners.push(e),this.ids.push(t),this}clearBefore(e){const t=this.ids.indexOf(e+1)||1;return this.ids.splice(0,t,0),this.runners.splice(0,t,new rc).forEach(e=>e.clearTransformsFromQueue()),this}edit(e,t){const n=this.ids.indexOf(e+1);return this.ids.splice(n,1,e+1),this.runners.splice(n,1,t),this}getByID(e){return this.runners[this.ids.indexOf(e+1)]}length(){return this.ids.length}merge(){let e=null;for(let t=0;tt.id<=e.id).map(oc).reduce(ic,new Za)},_addRunner(e){this._transformationRunners.add(e),Ql.cancelImmediate(this._frameId),this._frameId=Ql.immediate(ac.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new sc).add(new rc(new Za(this))))}}});const lc=(e,t)=>e.filter(e=>!t.includes(e));Qo(nc,{attr(e,t){return this.styleAttr("attr",e,t)},css(e,t){return this.styleAttr("css",e,t)},styleAttr(e,t,n){if("string"===typeof t)return this.styleAttr(e,{[t]:n});let r=t;if(this._tryRetarget(e,r))return this;let i=new Pl(this._stepper).to(r),o=Object.keys(r);return this.queue((function(){i=i.from(this.element()[e](o))}),(function(t){return this.element()[e](i.at(t).valueOf()),i.done()}),(function(t){const n=Object.keys(t),a=lc(n,o);if(a.length){const t=this.element()[e](a),n=new zl(i.from()).valueOf();Object.assign(n,t),i.from(n)}const s=new zl(i.to()).valueOf();Object.assign(s,t),i.to(s),o=n,r=t})),this._rememberMorpher(e,i),this},zoom(e,t){if(this._tryRetarget("zoom",e,t))return this;let n=new Pl(this._stepper).to(new As(e));return this.queue((function(){n=n.from(this.element().zoom())}),(function(e){return this.element().zoom(n.at(e),t),n.done()}),(function(e,r){t=r,n.to(e)})),this._rememberMorpher("zoom",n),this},transform(e,t,n){if(t=e.relative||t,this._isDeclarative&&!t&&this._tryRetarget("transform",e))return this;const r=Za.isMatrixLike(e);n=null!=e.affine?e.affine:null!=n?n:!r;const i=new Pl(this._stepper).type(n?Rl:Za);let o,a,s,l,c;function u(){a=a||this.element(),o=o||Do(e,a),c=new Za(t?void 0:a),a._addRunner(this),t||a._clearTransformRunnersBefore(this)}function h(u){t||this.clearTransform();const{x:h,y:d}=new Wa(o).transform(a._currentTransform(this));let f=new Za({...e,origin:[h,d]}),p=this._isDeclarative&&s?s:c;if(n){f=f.decompose(h,d),p=p.decompose(h,d);const e=f.rotate,t=p.rotate,n=[e-360,e,e+360],r=n.map(e=>Math.abs(e-t)),i=Math.min(...r),o=r.indexOf(i);f.rotate=n[o]}t&&(r||(f.rotate=e.rotate||0),this._isDeclarative&&l&&(p.rotate=l)),i.from(p),i.to(f);const m=i.at(u);return l=m.rotate,s=new Za(m),this.addTransform(s),a._addRunner(this),i.done()}function d(t){(t.origin||"center").toString()!==(e.origin||"center").toString()&&(o=Do(t,a)),e={...t,origin:o}}return this.queue(u,h,d,!0),this._isDeclarative&&this._rememberMorpher("transform",i),this},x(e,t){return this._queueNumber("x",e)},y(e){return this._queueNumber("y",e)},dx(e=0){return this._queueNumberDelta("x",e)},dy(e=0){return this._queueNumberDelta("y",e)},dmove(e,t){return this.dx(e).dy(t)},_queueNumberDelta(e,t){if(t=new As(t),this._tryRetarget(e,t))return this;const n=new Pl(this._stepper).to(t);let r=null;return this.queue((function(){r=this.element()[e](),n.from(r),n.to(r+t)}),(function(t){return this.element()[e](n.at(t)),n.done()}),(function(e){n.to(r+new As(e))})),this._rememberMorpher(e,n),this},_queueObject(e,t){if(this._tryRetarget(e,t))return this;const n=new Pl(this._stepper).to(t);return this.queue((function(){n.from(this.element()[e]())}),(function(t){return this.element()[e](n.at(t)),n.done()})),this._rememberMorpher(e,n),this},_queueNumber(e,t){return this._queueObject(e,new As(t))},cx(e){return this._queueNumber("cx",e)},cy(e){return this._queueNumber("cy",e)},move(e,t){return this.x(e).y(t)},center(e,t){return this.cx(e).cy(t)},size(e,t){let n;return e&&t||(n=this._element.bbox()),e||(e=n.width/n.height*t),t||(t=n.height/n.width*e),this.width(e).height(t)},width(e){return this._queueNumber("width",e)},height(e){return this._queueNumber("height",e)},plot(e,t,n,r){if(4===arguments.length)return this.plot([e,t,n,r]);if(this._tryRetarget("plot",e))return this;const i=new Pl(this._stepper).type(this._element.MorphArray).to(e);return this.queue((function(){i.from(this._element.array())}),(function(e){return this._element.plot(i.at(e)),i.done()})),this._rememberMorpher("plot",i),this},leading(e){return this._queueNumber("leading",e)},viewbox(e,t,n,r){return this._queueObject("viewbox",new es(e,t,n,r))},update(e){return"object"!==typeof e?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",e.offset),this)}}),Qo(nc,{rx:_s,ry:js,from:Xs,to:Js}),Yo(nc,"Runner");class cc extends Fs{constructor(e,t=e){super(Go("svg",e),t),this.namespace()}defs(){return this.isRoot()?Wo(this.node.querySelector("defs"))||this.put(new zs):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof Bo.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Po,version:"1.1"}).attr("xmlns:xlink",Fo,Ro).attr("xmlns:svgjs",zo,Ro):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Ro).attr("xmlns:svgjs",null,Ro)}root(){return this.isRoot()?this:super.root()}}xo({Container:{nested:$o((function(){return this.put(new cc)}))}}),Yo(cc,"Svg",!0);class uc extends Fs{constructor(e,t=e){super(Go("symbol",e),t)}}function hc(e){return!1===this._build&&this.clear(),this.node.appendChild(Bo.document.createTextNode(e)),this}function dc(){return this.node.getComputedTextLength()}function fc(e,t=this.bbox()){return null==e?t.x:this.attr("x",this.attr("x")+e-t.x)}function pc(e,t=this.bbox()){return null==e?t.y:this.attr("y",this.attr("y")+e-t.y)}function mc(e,t,n=this.bbox()){return this.x(e,n).y(t,n)}function gc(e,t=this.bbox()){return null==e?t.cx:this.attr("x",this.attr("x")+e-t.cx)}function vc(e,t=this.bbox()){return null==e?t.cy:this.attr("y",this.attr("y")+e-t.cy)}function bc(e,t,n=this.bbox()){return this.cx(e,n).cy(t,n)}function yc(e){return this.attr("x",e)}function wc(e){return this.attr("y",e)}function xc(e,t){return this.ax(e).ay(t)}function kc(e){return this._build=!!e,this}xo({Container:{symbol:$o((function(){return this.put(new uc)}))}}),Yo(uc,"Symbol");var Ac={__proto__:null,plain:hc,length:dc,x:fc,y:pc,move:mc,cx:gc,cy:vc,center:bc,ax:yc,ay:wc,amove:xc,build:kc};class Cc extends Bs{constructor(e,t=e){super(Go("text",e),t),this.dom.leading=new As(1.3),this._rebuild=!0,this._build=!1}leading(e){return null==e?this.dom.leading:(this.dom.leading=new As(e),this.rebuild())}rebuild(e){if("boolean"===typeof e&&(this._rebuild=e),this._rebuild){const e=this;let t=0;const n=this.dom.leading;this.each((function(r){const i=Bo.window.getComputedStyle(this.node).getPropertyValue("font-size"),o=n*new As(i);this.dom.newLined&&(this.attr("x",e.attr("x")),"\n"===this.text()?t+=o:(this.attr("dy",r?o+t:0),t=0))})),this.fire("rebuild")}return this}setData(e){return this.dom=e,this.dom.leading=new As(e.leading||1.3),this}text(e){if(void 0===e){const t=this.node.childNodes;let n=0;e="";for(let r=0,i=t.length;r{let i;try{i=n.bbox()}catch(l){return}const o=new Za(n),a=o.translate(e,t).transform(o.inverse()),s=new Wa(i.x,i.y).transform(a);n.move(s.x,s.y)}),this}function Lc(e){return this.dmove(e,0)}function Oc(e){return this.dmove(0,e)}function Dc(e,t=this.bbox()){return null==e?t.height:this.size(t.width,e,t)}function Pc(e=0,t=0,n=this.bbox()){const r=e-n.x,i=t-n.y;return this.dmove(r,i)}function Ic(e,t,n=this.bbox()){const r=Oo(this,e,t,n),i=r.width/n.width,o=r.height/n.height;return this.children().forEach((e,t)=>{const r=new Wa(n).transform(new Za(e).inverse());e.scale(i,o,r.x,r.y)}),this}function Rc(e,t=this.bbox()){return null==e?t.width:this.size(e,t.height,t)}function Fc(e,t=this.bbox()){return null==e?t.x:this.move(e,t.y,t)}function zc(e,t=this.bbox()){return null==e?t.y:this.move(t.x,e,t)}xo({Container:{foreignObject:$o((function(e,t){return this.put(new Nc).size(e,t)}))}}),Yo(Nc,"ForeignObject");var Bc={__proto__:null,dmove:Mc,dx:Lc,dy:Oc,height:Dc,move:Pc,size:Ic,width:Rc,x:Fc,y:zc};class _c extends Fs{constructor(e,t=e){super(Go("g",e),t)}}Qo(_c,Bc),xo({Container:{group:$o((function(){return this.put(new _c)}))}}),Yo(_c,"G");class jc extends Fs{constructor(e,t=e){super(Go("a",e),t)}target(e){return this.attr("target",e)}to(e){return this.attr("href",e,Fo)}}Qo(jc,Bc),xo({Container:{link:$o((function(e){return this.put(new jc).to(e)}))},Element:{unlink(){const e=this.linker();if(!e)return this;const t=e.parent();if(!t)return this.remove();const n=t.index(e);return t.add(this,n),e.remove(),this},linkTo(e){let t=this.linker();return t||(t=new jc,this.wrap(t)),"function"===typeof e?e.call(t,t):t.to(e),this},linker(){const e=this.parent();return e&&"a"===e.node.nodeName.toLowerCase()?e:null}}}),Yo(jc,"A");class Hc extends Fs{constructor(e,t=e){super(Go("mask",e),t)}remove(){return this.targets().forEach((function(e){e.unmask()})),super.remove()}targets(){return ss('svg [mask*="'+this.id()+'"]')}}xo({Container:{mask:$o((function(){return this.defs().put(new Hc)}))},Element:{masker(){return this.reference("mask")},maskWith(e){const t=e instanceof Hc?e:this.parent().mask().add(e);return this.attr("mask",'url("#'+t.id()+'")')},unmask(){return this.attr("mask",null)}}}),Yo(Hc,"Mask");class Uc extends Ns{constructor(e,t=e){super(Go("stop",e),t)}update(e){return("number"===typeof e||e instanceof As)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new As(e.offset)),this}}function qc(e,t){if(!e)return"";if(!t)return e;let n=e+"{";for(const r in t)n+=Mo(r)+":"+t[r]+";";return n+="}",n}xo({Gradient:{stop:function(e,t,n){return this.put(new Uc).update(e,t,n)}}}),Yo(Uc,"Stop");class Gc extends Ns{constructor(e,t=e){super(Go("style",e),t)}addText(e=""){return this.node.textContent+=e,this}font(e,t,n={}){return this.rule("@font-face",{fontFamily:e,src:t,...n})}rule(e,t){return this.addText(qc(e,t))}}xo("Dom",{style(e,t){return this.put(new Gc).rule(e,t)},fontface(e,t,n){return this.put(new Gc).font(e,t,n)}}),Yo(Gc,"Style");class Wc extends Cc{constructor(e,t=e){super(Go("textPath",e),t)}array(){const e=this.track();return e?e.array():null}plot(e){const t=this.track();let n=null;return t&&(n=t.plot(e)),null==e?n:this}track(){return this.reference("href")}}xo({Container:{textPath:$o((function(e,t){return e instanceof Cc||(e=this.text(e)),e.path(t)}))},Text:{path:$o((function(e,t=!0){const n=new Wc;let r;if(e instanceof Hl||(e=this.defs().path(e)),n.attr("href","#"+e,Fo),t)while(r=this.node.firstChild)n.node.appendChild(r);return this.put(n)})),textPath(){return this.findOne("textPath")}},Path:{text:$o((function(e){return e instanceof Cc||(e=(new Cc).addTo(this.parent()).text(e)),e.path(this)})),targets(){return ss("svg textPath").filter(e=>(e.attr("href")||"").includes(this.id()))}}}),Wc.prototype.MorphArray=Ol,Yo(Wc,"TextPath");class Vc extends Bs{constructor(e,t=e){super(Go("use",e),t)}use(e,t){return this.attr("href",(t||"")+"#"+e,Fo)}}xo({Container:{use:$o((function(e,t){return this.put(new Vc).use(e,t)}))}}),Yo(Vc,"Use");const Yc=qo;Qo([cc,uc,tl,el,ul],ko("viewbox")),Qo([cl,Kl,Zl,Hl],ko("marker")),Qo(Cc,ko("Text")),Qo(Hl,ko("Path")),Qo(zs,ko("Defs")),Qo([Cc,Ec],ko("Tspan")),Qo([Xl,Zs,$s,nc],ko("radius")),Qo(bs,ko("EventTarget")),Qo(Ts,ko("Dom")),Qo(Ns,ko("Element")),Qo(Bs,ko("Shape")),Qo([Fs,Ks],ko("Container")),Qo($s,ko("Gradient")),Qo(nc,ko("Runner")),os.extend(Ao()),_l([As,Ga,es,Za,ks,nl,Ol,Wa]),jl();class Zc{constructor(e){this.node=e}getShapePadding(e,t,n,r){const i=this.node.getShape(),o=15,a=5,s=e+2*n,l=t+2*r,c=Math.abs(s-l);switch(i){case oo["a"].SHAPE.ROUNDED_RECTANGLE:return{paddingX:t>e?(t-e)/2:0,paddingY:0};case oo["a"].SHAPE.DIAMOND:return{paddingX:e/2,paddingY:t/2};case oo["a"].SHAPE.PARALLELOGRAM:return{paddingX:n<=0?o:0,paddingY:0};case oo["a"].SHAPE.OUTER_TRIANGULAR_RECTANGLE:return{paddingX:n<=0?o:0,paddingY:0};case oo["a"].SHAPE.INNER_TRIANGULAR_RECTANGLE:return{paddingX:n<=0?o:0,paddingY:0};case oo["a"].SHAPE.ELLIPSE:return{paddingX:n<=0?o:0,paddingY:r<=0?a:0};case oo["a"].SHAPE.CIRCLE:return{paddingX:l>s?c/2:0,paddingY:l0}function Qc(){const e=this.formatGetGeneralization();return!!e.find(e=>!e.range||e.range.length<=0)}function $c(e){return this._generalizationList.findIndex(t=>t.generalizationNode.uid===e.uid)}function eu(){if(this.isGeneralization||!this.checkHasGeneralization())return;let e=0,t=0;const n=this.formatGetGeneralization();n.forEach((n,r)=>{let i=this._generalizationList[r];i||(i=this._generalizationList[r]={}),i.node=this,i.range=n.range,i.generalizationLine||(i.generalizationLine=this.lineDraw.path()),i.generalizationNode||(i.generalizationNode=new ah({data:{data:n},uid:Object(v["m"])(),renderer:this.renderer,mindMap:this.mindMap,isGeneralization:!0})),i.generalizationNode.generalizationBelongNode=this,i.generalizationNode.width>e&&(e=i.generalizationNode.width),i.generalizationNode.height>t&&(t=i.generalizationNode.height),n.isActive&&this.renderer.addNodeToActiveList(i.generalizationNode)}),this._generalizationNodeWidth=e,this._generalizationNodeHeight=t}function tu(){this.isGeneralization||(this.removeGeneralization(),this.createGeneralizationNode())}function nu(){if(this.isGeneralization)return;this.updateGeneralizationData();const e=this.formatGetGeneralization();e.length<=0||!1===this.getData("expand")?this.removeGeneralization():(e.length!==this._generalizationList.length&&this.removeGeneralization(),this.createGeneralizationNode(),this.renderer.layout.renderGeneralization(this._generalizationList),this._generalizationList.forEach(e=>{this.style.generalizationLine(e.generalizationLine),e.generalizationNode.render()}))}function ru(){const e=this.children.length,t=this.formatGetGeneralization(),n=[];t.forEach(t=>{t.range?t.range.length>0&&t.range[0]<=e-1&&t.range[1]<=e-1&&n.push(t):n.push(t)}),n.length!==t.length&&this.setData({generalization:n})}function iu(){this.isGeneralization||(this._generalizationList.forEach(e=>{e.generalizationLine&&(e.generalizationLine.remove(),e.generalizationLine=null),e.generalizationNode&&(this.renderer.removeNodeFromActiveList(e.generalizationNode),e.generalizationNode.remove(),e.generalizationNode=null)}),this._generalizationList=[],this.generalizationBelongNode&&this.nodeDraw.find(".generalization_"+this.generalizationBelongNode.uid).remove())}function ou(){this.isGeneralization||this._generalizationList.forEach(e=>{e.generalizationLine&&e.generalizationLine.hide(),e.generalizationNode&&e.generalizationNode.hide()})}function au(){this.isGeneralization||this._generalizationList.forEach(e=>{e.generalizationLine&&e.generalizationLine.show(),e.generalizationNode&&e.generalizationNode.show()})}function su(e){this._generalizationList.forEach(t=>{t.generalizationLine.opacity(e),t.generalizationNode.group.opacity(e)})}function lu(){const e=this.generalizationBelongNode,t=e.formatGetGeneralization(),n=e.getGeneralizationNodeIndex(this),r=t[n];Array.isArray(r.range)&&r.range.length>0?this.mindMap.renderer.highlightNode(e,r.range):this.mindMap.renderer.highlightNode(e)}function cu(){this.mindMap.renderer.closeHighlightNode()}var uu={formatGetGeneralization:Xc,checkHasGeneralization:Jc,checkHasSelfGeneralization:Qc,getGeneralizationNodeIndex:$c,createGeneralizationNode:eu,updateGeneralization:tu,updateGeneralizationData:ru,renderGeneralization:nu,removeGeneralization:iu,hideGeneralization:ou,showGeneralization:au,setGeneralizationOpacity:su,handleGeneralizationMouseenter:lu,handleGeneralizationMouseleave:cu};const hu='',du='',fu='',pu='';var mu={open:hu,close:du,remove:fu,imgAdjust:pu};function gu(){if(this._openExpandNode)return;let{close:e,open:t}=this.mindMap.opt.expandBtnIcon||{};this.mindMap.opt.isShowExpandNum?(this._openExpandNode=Yc().text().size(this.expandBtnSize,this.expandBtnSize),this._openExpandNode.attr({"text-anchor":"middle","dominant-baseline":"middle",x:this.expandBtnSize/2,y:2})):(this._openExpandNode=Yc(t||mu.open).size(this.expandBtnSize,this.expandBtnSize),this._openExpandNode.x(0).y(-this.expandBtnSize/2)),this._closeExpandNode=Yc(e||mu.close).size(this.expandBtnSize,this.expandBtnSize),this._closeExpandNode.x(0).y(-this.expandBtnSize/2),this._fillExpandNode=(new Sc).size(this.expandBtnSize),this._fillExpandNode.x(0).y(-this.expandBtnSize/2),this.style.iconBtn(this._openExpandNode,this._closeExpandNode,this._fillExpandNode)}function vu(e=[]){return e.reduce((e,t)=>e+this.sumNode(t.children||[]),e.length)}function bu(){let e,{expand:t}=this.getData();if(t!==this._lastExpandBtnType&&(this._expandBtn&&this._expandBtn.clear(),this.createExpandNodeContent(),!1===t?(e=this._openExpandNode,this._lastExpandBtnType=!1):(e=this._closeExpandNode,this._lastExpandBtnType=!0),this._expandBtn)){let{isShowExpandNum:n,expandBtnStyle:r,expandBtnNumHandler:i}=this.mindMap.opt;if(n)if(t)this._fillExpandNode.stroke("none");else{this._fillExpandNode.stroke({color:r.strokeColor});let t=this.sumNode(this.nodeData.children);t=i(t),e.text(t)}this._expandBtn.add(this._fillExpandNode).add(e)}}function yu(){this._expandBtn&&this.renderer.layout.renderExpandBtn(this,this._expandBtn)}function wu(){!this.nodeData.children||this.nodeData.children.length<=0||this.isRoot||(this._expandBtn||(this._expandBtn=new _c,this._expandBtn.on("mouseover",e=>{e.stopPropagation(),this._expandBtn.css({cursor:"pointer"})}),this._expandBtn.on("mouseout",e=>{e.stopPropagation(),this._expandBtn.css({cursor:"auto"})}),this._expandBtn.on("click",e=>{e.stopPropagation(),this.mindMap.execCommand("SET_NODE_EXPAND",this,!this.getData("expand")),this.mindMap.emit("expand_btn_click",this)}),this._expandBtn.on("dblclick",e=>{e.stopPropagation()}),this._expandBtn.addClass("smm-expand-btn")),this.group.add(this._expandBtn),this._showExpandBtn=!0,this.updateExpandBtnNode(),this.updateExpandBtnPos())}function xu(){this._expandBtn&&this._showExpandBtn&&(this._expandBtn.remove(),this._showExpandBtn=!1)}function ku(){this.mindMap.opt.alwaysShowExpandBtn||setTimeout(()=>{this.renderExpandBtn()},0)}function Au(){if(this.mindMap.opt.alwaysShowExpandBtn||this._isMouseenter)return;let{isActive:e,expand:t}=this.getData();!e&&t&&setTimeout(()=>{this.removeExpandBtn()},0)}var Cu={createExpandNodeContent:gu,updateExpandBtnNode:bu,updateExpandBtnPos:yu,renderExpandBtn:wu,removeExpandBtn:xu,showExpandBtn:ku,hideExpandBtn:Au,sumNode:vu};function Eu(e={}){this.mindMap.execCommand("SET_NODE_DATA",this,e)}function Su(e,t,n){this.mindMap.execCommand("SET_NODE_TEXT",this,e,t,n)}function Tu(e){this.mindMap.execCommand("SET_NODE_IMAGE",this,e)}function Nu(e){this.mindMap.execCommand("SET_NODE_ICON",this,e)}function Mu(e,t){this.mindMap.execCommand("SET_NODE_HYPERLINK",this,e,t)}function Lu(e){this.mindMap.execCommand("SET_NODE_NOTE",this,e)}function Ou(e){this.mindMap.execCommand("SET_NODE_TAG",this,e)}function Du(e){this.mindMap.execCommand("SET_NODE_SHAPE",this,e)}function Pu(e,t){this.mindMap.execCommand("SET_NODE_STYLE",this,e,t)}function Iu(e){this.mindMap.execCommand("SET_NODE_STYLES",this,e)}var Ru={setData:Eu,setText:Su,setImage:Tu,setIcon:Nu,setHyperlink:Mu,setNote:Lu,setTag:Ou,setShape:Du,setStyle:Pu,setStyles:Iu};function Fu(){const e=this.getData("image");if(!e)return;const t=this.getImgShowSize(),n=(new tl).load(e).size(...t),{defaultNodeImage:r}=this.mindMap.opt;if(r){const t=new Image;t.onerror=()=>{n.load(r)},t.src=e}return this.getData("imageTitle")&&n.attr("title",this.getData("imageTitle")),n.on("dblclick",e=>{this.mindMap.emit("node_img_dblclick",this,e)}),n.on("mouseenter",e=>{this.mindMap.emit("node_img_mouseenter",this,n,e)}),n.on("mouseleave",e=>{this.mindMap.emit("node_img_mouseleave",this,n,e)}),n.on("mousemove",e=>{this.mindMap.emit("node_img_mousemove",this,n,e)}),{node:n,width:t[0],height:t[1]}}function zu(){const{custom:e,width:t,height:n}=this.getData("imageSize");return e?[t,n]:Object(v["W"])(t,n,this.mindMap.themeConfig.imgMaxWidth,this.mindMap.themeConfig.imgMaxHeight)}function Bu(){let e=this.getData();if(!e.icon||e.icon.length<=0)return[];let t=this.mindMap.themeConfig.iconSize;return e.icon.map(e=>{let n=I.getNodeIconListIcon(e,this.mindMap.opt.iconList||[]),r=null;return r=/^{this.mindMap.emit("node_icon_click",this,e,t)}),{node:r,width:t,height:t}})}function _u(){const{textAutoWrapWidth:e}=this.mindMap.opt;let t=new _c,n=!1;this.getData("resetRichText")&&(delete this.nodeData.data.resetRichText,n=!0),[oo["a"].CHANGE_THEME].includes(this.mindMap.renderer.renderSource)&&(this.hasCustomStyle()||(n=!0));let r=this.getData("text");if(n&&!Object(v["I"])(r)){let e=Object(v["g"])(r),t=this.style.createStyleText();e?(r=Object(v["U"])(r),r=Object(v["b"])(r,"span",t)):r=`

${r}

`,this.setData({text:r})}let i=`
${this.getData("text")}
`;oo["d"].measureRichtextNodeTextSizeEl||(oo["d"].measureRichtextNodeTextSizeEl=document.createElement("div"),oo["d"].measureRichtextNodeTextSizeEl.style.position="fixed",oo["d"].measureRichtextNodeTextSizeEl.style.left="-999999px",this.mindMap.el.appendChild(oo["d"].measureRichtextNodeTextSizeEl));let o=oo["d"].measureRichtextNodeTextSizeEl;o.innerHTML=i;let a=o.children[0];a.classList.add("smm-richtext-node-wrap"),a.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),a.style.maxWidth=e+"px";let{width:s,height:l}=a.getBoundingClientRect();if(l<=0){o.innerHTML="

abc123我和你

";let e=o.children[0];e.classList.add("smm-richtext-node-wrap"),l=e.getBoundingClientRect().height,o.innerHTML=i}s=Math.ceil(s)+1,l=Math.ceil(l),t.attr("data-width",s),t.attr("data-height",l);let c=new Nc;return c.width(s),c.height(l),c.add(o.children[0]),t.add(c),{node:t,width:s,height:l}}function ju(){if(this.getData("richText"))return this.createRichTextNode();let e=new _c,t=this.getStyle("fontSize",!1),n=this.getStyle("lineHeight",!1),r=this.style.getTextFontStyle(),i=[];Object(v["I"])(this.getData("text"))||(i=String(this.getData("text")).split(/\n/gim));let o=this.mindMap.opt.textAutoWrapWidth,a=!1;i.forEach((e,t)=>{let n=e.split(""),s=[],l=[];while(n.length){let e=n.shift(),t=[...l,e].join("");Object(v["L"])(t,r).width<=o?l.push(e):(s.push(l.join("")),l=[e])}l.length>0&&s.push(l.join("")),s.length>1&&(a=!0),i[t]=s.join("\n")}),i=i.join("\n").split(/\n/gim),i.forEach((r,i)=>{let o=(new Cc).text(r);this.style.text(o),o.y(t*n*i),e.add(o)});let{width:s,height:l}=e.bbox();return s=Math.ceil(s),l=Math.ceil(l),e.attr("data-width",s),e.attr("data-height",l),e.attr("data-ismultiLine",a||i.length>1),{node:e,width:s,height:l}}function Hu(){let{hyperlink:e,hyperlinkTitle:t}=this.getData();if(!e)return;let n=this.mindMap.themeConfig.iconSize,r=new Yc,i=(new jc).to(e).target("_blank");i.node.addEventListener("click",e=>{e.stopPropagation()}),t&&i.attr("title",t),i.rect(n,n).fill({color:"transparent"});let o=Yc(I.hyperlink).size(n,n);return this.style.iconNode(o),i.add(o),r.add(i),{node:r,width:n,height:n}}function Uu(){let e=this.getData("tag");if(!e||e.length<=0)return[];let t=[];return e.slice(0,this.mindMap.opt.maxTag).forEach((e,n)=>{let r=new _c,i=(new Cc).text(e).x(8).cy(8);this.style.tagText(i,n);let{width:o}=i.bbox(),a=(new Xl).size(o+16,20);const s=this.mindMap.opt.tagsColorMap||{},l=s[i.node.textContent];this.style.tagRect(a,i,l),r.add(a).add(i),t.push({node:r,width:o+16,height:20})}),t}function qu(){if(!this.getData("note"))return null;let e=this.mindMap.themeConfig.iconSize,t=(new Yc).attr("cursor","pointer");t.add((new Xl).size(e,e).fill({color:"transparent"}));let n=Yc(I.note).size(e,e);if(this.style.iconNode(n),t.add(n),!this.mindMap.opt.customNoteContentShow){if(!this.noteEl){this.noteEl=document.createElement("div"),this.noteEl.style.cssText=`\n position: fixed;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 2px 5px rgb(0 0 0 / 10%);\n display: none;\n background-color: #fff;\n z-index: ${this.mindMap.opt.nodeNoteTooltipZIndex}\n `;const e=this.mindMap.opt.customInnerElsAppendTo||document.body;e.appendChild(this.noteEl)}this.noteEl.innerText=this.getData("note")}return t.on("mouseover",()=>{const{left:e,top:t}=this.getNoteContentPosition();this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.show(this.getData("note"),e,t,this):(this.noteEl.style.left=e+"px",this.noteEl.style.top=t+"px",this.noteEl.style.display="block")}),t.on("mouseout",()=>{this.mindMap.opt.customNoteContentShow?this.mindMap.opt.customNoteContentShow.hide():this.noteEl.style.display="none"}),{node:t,width:e,height:e}}function Gu(){const e=this.mindMap.themeConfig.iconSize,{scaleY:t}=this.mindMap.view.getTransformData().transform,n=e*t;let{left:r,top:i}=this._noteData.node.node.getBoundingClientRect();return i+=n,{left:r,top:i}}function Wu(e){oo["d"].measureCustomNodeContentSizeEl||(oo["d"].measureCustomNodeContentSizeEl=document.createElement("div"),oo["d"].measureCustomNodeContentSizeEl.style.cssText="\n position: fixed;\n left: -99999px;\n top: -99999px;\n ",this.mindMap.el.appendChild(oo["d"].measureCustomNodeContentSizeEl)),oo["d"].measureCustomNodeContentSizeEl.innerHTML="",oo["d"].measureCustomNodeContentSizeEl.appendChild(e);let t=oo["d"].measureCustomNodeContentSizeEl.getBoundingClientRect();return{width:t.width,height:t.height}}function Vu(){return!!this._customNodeContent}var Yu={createImgNode:Fu,getImgShowSize:zu,createIconNode:Bu,createRichTextNode:_u,createTextNode:ju,createHyperlinkNode:Hu,createTagNode:Uu,createNoteNode:qu,getNoteContentPosition:Gu,measureCustomNodeContentSize:Wu,isUseCustomNodeContent:Vu};function Zu(){if(!(!this.nodeData.children||this.nodeData.children.length<=0||this.isRoot)&&!this.mindMap.opt.alwaysShowExpandBtn){let{width:e,height:t}=this;this._unVisibleRectRegionNode||(this._unVisibleRectRegionNode=new Xl,this._unVisibleRectRegionNode.fill({color:"transparent"})),this.group.add(this._unVisibleRectRegionNode),this.renderer.layout.renderExpandBtnRect(this._unVisibleRectRegionNode,this.expandBtnSize,e,t,this)}}function Ku(){this._unVisibleRectRegionNode&&(this._unVisibleRectRegionNode.remove(),this._unVisibleRectRegionNode=null)}function Xu(){this.needRerenderExpandBtnPlaceholderRect&&(this.needRerenderExpandBtnPlaceholderRect=!1,this.renderExpandBtnPlaceholderRect()),this.nodeData.children&&this.nodeData.children.length>0?this._unVisibleRectRegionNode||this.renderExpandBtnPlaceholderRect():this._unVisibleRectRegionNode&&this.clearExpandBtnPlaceholderRect()}var Ju={renderExpandBtnPlaceholderRect:Zu,clearExpandBtnPlaceholderRect:Ku,updateExpandBtnPlaceholderRect:Xu};function Qu(){this.mindMap.cooperate&&(this._userListGroup=new _c,this.group.add(this._userListGroup))}function $u(e){const{avatarSize:t,fontSize:n}=this.mindMap.opt.cooperateStyle,r=new _c,i=e.isMore?e.name:String(e.name)[0],o=(new Sc).size(t,t);o.fill({color:e.color||Object(v["s"])(i)});const a=(new Cc).text(i).fill({color:"#fff"}).css({"font-size":n}).dx(-n/2).dy((t-n)/2);return r.add(o).add(a),r}function eh(e){const{avatarSize:t}=this.mindMap.opt.cooperateStyle;return(new tl).load(e.avatar).size(t,t)}function th(){if(!this._userListGroup)return;const{avatarSize:e}=this.mindMap.opt.cooperateStyle;this._userListGroup.clear();const t=this.userList.length,n=Math.floor(this.width/e),r=[];t>n?r.push(...this.userList.slice(0,n-1),{isMore:!0,name:"+"+(t-n+1)}):r.push(...this.userList),r.forEach((t,n)=>{let r=null;r=t.avatar?this.createImageAvatar(t):this.createTextAvatar(t),r.x(n*e).cy(-e/2),this._userListGroup.add(r)})}function nh(e){this.userList.find(t=>t.id==e.id)||(this.userList.push(e),this.updateUserListNode())}function rh(e){const t=this.userList.findIndex(t=>t.id==e.id);-1!==t&&(this.userList.splice(t,1),this.updateUserListNode())}var ih={createUserListNode:Qu,updateUserListNode:th,createTextAvatar:$u,createImageAvatar:eh,addUser:nh,removeUser:rh};class oh{constructor(e={}){this.nodeData=this.handleData(e.data||{}),this.uid=e.uid,this.mindMap=e.mindMap,this.renderer=e.renderer,this.draw=this.mindMap.draw,this.nodeDraw=this.mindMap.nodeDraw,this.lineDraw=this.mindMap.lineDraw,this.style=new bo(this),this.shapeInstance=new Zc(this),this.shapePadding={paddingX:0,paddingY:0},this.isRoot=void 0!==e.isRoot&&e.isRoot,this.isGeneralization=void 0!==e.isGeneralization&&e.isGeneralization,this.generalizationBelongNode=null,this.layerIndex=void 0===e.layerIndex?0:e.layerIndex,this.width=e.width||0,this.height=e.height||0,this._left=e.left||0,this._top=e.top||0,this.customLeft=e.data.data.customLeft||void 0,this.customTop=e.data.data.customTop||void 0,this.isDrag=!1,this.parent=e.parent||null,this.children=e.children||[],this.userList=[],this.group=null,this.shapeNode=null,this.hoverNode=null,this._customNodeContent=null,this._imgData=null,this._iconData=null,this._textData=null,this._hyperlinkData=null,this._tagData=null,this._noteData=null,this.noteEl=null,this.noteContentIsShow=!1,this._expandBtn=null,this._lastExpandBtnType=null,this._showExpandBtn=!1,this._openExpandNode=null,this._closeExpandNode=null,this._fillExpandNode=null,this._userListGroup=null,this._lines=[],this._generalizationList=[],this._unVisibleRectRegionNode=null,this._isMouseenter=!1,this._rectInfo={imgContentWidth:0,imgContentHeight:0,textContentWidth:0,textContentHeight:0},this._generalizationNodeWidth=0,this._generalizationNodeHeight=0,this.textContentItemMargin=this.mindMap.opt.textContentMargin,this.blockContentMargin=this.mindMap.opt.imgTextMargin,this.expandBtnSize=this.mindMap.opt.expandBtnSize,this.isMultipleChoice=!1,this.needLayout=!1,this.isHide=!1,Object.keys(uu).forEach(e=>{this[e]=uu[e].bind(this)}),Object.keys(Cu).forEach(e=>{this[e]=Cu[e].bind(this)}),Object.keys(Ju).forEach(e=>{this[e]=Ju[e].bind(this)}),Object.keys(Ru).forEach(e=>{this[e]=Ru[e].bind(this)}),Object.keys(Yu).forEach(e=>{this[e]=Yu[e].bind(this)}),this.mindMap.cooperate&&Object.keys(ih).forEach(e=>{this[e]=ih[e].bind(this)}),this.getSize()}get left(){return this.customLeft||this._left}set left(e){this._left=e}get top(){return this.customTop||this._top}set top(e){this._top=e}reset(){this.children=[],this.parent=null,this.isRoot=!1,this.layerIndex=0,this.left=0,this.top=0}handleData(e){return e.data.expand=!1!==e.data.expand,e.data.isActive=!0===e.data.isActive,e.children=e.children||[],e}createNodeData(){let{isUseCustomNodeContent:e,customCreateNodeContent:t}=this.mindMap.opt;e&&t&&(this._customNodeContent=t(this)),this._customNodeContent?this._customNodeContent.setAttribute("xmlns","http://www.w3.org/1999/xhtml"):(this._imgData=this.createImgNode(),this._iconData=this.createIconNode(),this._textData=this.createTextNode(),this._hyperlinkData=this.createHyperlinkNode(),this._tagData=this.createTagNode(),this._noteData=this.createNoteNode())}getSize(){this.updateGeneralization(),this.createNodeData();let{width:e,height:t}=this.getNodeRect(),n=this.width!==e||this.height!==t;return this.width=e,this.height=t,n}getNodeRect(){if(this.isUseCustomNodeContent()){let e=this.measureCustomNodeContentSize(this._customNodeContent);return{width:e.width,height:e.height}}let e=0,t=0,n=0,r=0;this._imgData&&(this._rectInfo.imgContentWidth=e=this._imgData.width,this._rectInfo.imgContentHeight=t=this._imgData.height),this._iconData.length>0&&(n+=this._iconData.reduce((e,t)=>(r=Math.max(r,t.height),e+(t.width+this.textContentItemMargin)),0)),this._textData&&(n+=this._textData.width,r=Math.max(r,this._textData.height)),this._hyperlinkData&&(n+=this._hyperlinkData.width,r=Math.max(r,this._hyperlinkData.height)),this._tagData.length>0&&(n+=this._tagData.reduce((e,t)=>(r=Math.max(r,t.height),e+(t.width+this.textContentItemMargin)),0)),this._noteData&&(n+=this._noteData.width,r=Math.max(r,this._noteData.height)),this._rectInfo.textContentWidth=n,this._rectInfo.textContentHeight=r;let i=t>0&&r>0?this.blockContentMargin:0,{paddingX:o,paddingY:a}=this.getPaddingVale(),s=Math.max(e,n),l=t+r,{paddingX:c,paddingY:u}=this.shapeInstance.getShapePadding(s,l,o,a);this.shapePadding.paddingX=c,this.shapePadding.paddingY=u;const h=this.getBorderWidth();return{width:s+2*o+2*c+h,height:l+2*a+i+2*u+h}}layout(){this.group.clear();const{hoverRectPadding:e}=this.mindMap.opt;let{width:t,height:n,textContentItemMargin:r}=this,{paddingY:i}=this.getPaddingVale();const o=this.getBorderWidth()/2;i+=this.shapePadding.paddingY+o,this.shapeNode=this.shapeInstance.createShape(),this.shapeNode.addClass("smm-node-shape"),this.shapeNode.translate(o,o),this.style.shape(this.shapeNode),this.group.add(this.shapeNode),this.renderExpandBtnPlaceholderRect(),this.createUserListNode&&this.createUserListNode(),this.isGeneralization&&this.generalizationBelongNode&&this.group.addClass("generalization_"+this.generalizationBelongNode.uid);const a=()=>{this.hoverNode=(new Xl).size(t+2*e,n+2*e).x(-e).y(-e),this.hoverNode.addClass("smm-hover-node"),this.style.hoverNode(this.hoverNode,t,n),this.group.add(this.hoverNode)};if(this.isUseCustomNodeContent()){let e=new Nc;return e.width(t),e.height(n),e.add(this._customNodeContent),this.group.add(e),void a()}let s=0;this._imgData&&(s=this._imgData.height,this.group.add(this._imgData.node),this._imgData.node.cx(t/2).y(i));let l=new _c,c=0,u=new _c;if(this._iconData&&this._iconData.length>0){let e=0;this._iconData.forEach(t=>{t.node.x(c+e).y((this._rectInfo.textContentHeight-t.height)/2),u.add(t.node),e+=t.width+r}),l.add(u),c+=e}this._textData&&(this._textData.node.attr("data-offsetx",c),this._textData.node.x(c).y(0),l.add(this._textData.node),c+=this._textData.width+r),this._hyperlinkData&&(this._hyperlinkData.node.x(c).y((this._rectInfo.textContentHeight-this._hyperlinkData.height)/2),l.add(this._hyperlinkData.node),c+=this._hyperlinkData.width+r);let h=new _c;if(this._tagData&&this._tagData.length>0){let e=0;this._tagData.forEach(t=>{t.node.x(c+e).y((this._rectInfo.textContentHeight-t.height)/2),h.add(t.node),e+=t.width+r}),l.add(h),c+=e}this._noteData&&(this._noteData.node.x(c).y((this._rectInfo.textContentHeight-this._noteData.height)/2),l.add(this._noteData.node),c+=this._noteData.width),l.translate(t/2-l.bbox().width/2,s+i+(s>0&&this._rectInfo.textContentHeight>0?this.blockContentMargin:0)),this.group.add(l),a()}bindGroupEvent(){this.group.on("click",e=>{if(this.mindMap.emit("node_click",this,e),this.isMultipleChoice)return e.stopPropagation(),void(this.isMultipleChoice=!1);this.active(e)}),this.group.on("mousedown",e=>{const{readonly:t,enableCtrlKeyNodeSelection:n,useLeftKeySelectionRightKeyDrag:r}=this.mindMap.opt;if(t||(this.isRoot?3!==e.which||r||e.stopPropagation():2!==e.which&&e.stopPropagation()),e.ctrlKey&&n){this.isMultipleChoice=!0;let e=this.getData("isActive");e||this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.mindMap.renderer[e?"removeNodeFromActiveList":"addNodeToActiveList"](this),this.renderer.emitNodeActiveEvent(e?null:this)}this.mindMap.emit("node_mousedown",this,e)}),this.group.on("mouseup",e=>{this.isRoot||2===e.which||this.mindMap.opt.readonly||e.stopPropagation(),this.mindMap.emit("node_mouseup",this,e)}),this.group.on("mouseenter",e=>{this.isDrag||(this._isMouseenter=!0,this.showExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseenter(),this.mindMap.emit("node_mouseenter",this,e))}),this.group.on("mouseleave",e=>{this._isMouseenter&&(this._isMouseenter=!1,this.hideExpandBtn(),this.isGeneralization&&this.handleGeneralizationMouseleave(),this.mindMap.emit("node_mouseleave",this,e))}),this.group.on("dblclick",e=>{this.mindMap.opt.readonly||e.ctrlKey||(e.stopPropagation(),this.mindMap.emit("node_dblclick",this,e))}),this.group.on("contextmenu",e=>{const{readonly:t,useLeftKeySelectionRightKeyDrag:n}=this.mindMap.opt;t||e.ctrlKey||(e.stopPropagation(),e.preventDefault(),this.mindMap.select&&!n&&this.mindMap.select.hasSelectRange()||(this.getData("isActive")&&1===this.renderer.activeNodeList.length||(this.renderer.clearActiveNodeList(),this.active(e)),this.mindMap.emit("node_contextmenu",e,this)))})}active(e){this.mindMap.opt.readonly||(e&&e.stopPropagation(),this.getData("isActive")||(this.mindMap.emit("before_node_active",this,this.renderer.activeNodeList),this.renderer.clearActiveNodeList(),this.renderer.addNodeToActiveList(this),this.renderer.emitNodeActiveEvent(this)))}update(){if(!this.group)return;this.updateNodeActiveClass();let{alwaysShowExpandBtn:e}=this.mindMap.opt;if(e)this._expandBtn&&this.nodeData.children.length<=0?this.removeExpandBtn():this.renderExpandBtn();else{let{isActive:e,expand:t}=this.getData();!t||e||this._isMouseenter?this.showExpandBtn():this.hideExpandBtn()}this.renderGeneralization(),this.updateUserListNode&&this.updateUserListNode();let t=this.group.transform();this.left===t.translateX&&this.top===t.translateY||this.group.translate(this.left-t.translateX,this.top-t.translateY)}getNodePosInClient(e,t){let n=this.mindMap.draw.transform(),{scaleX:r,scaleY:i,translateX:o,translateY:a}=n,s=e*r+o,l=t*i+a;return{left:s,top:l}}reRender(){let e=this.getSize();return this.layout(),this.update(),e}updateNodeActiveClass(){if(!this.group)return;const e=this.getData("isActive");this.group[e?"addClass":"removeClass"]("active")}updateNodeByActive(e){this.group&&(e?this.showExpandBtn():this.hideExpandBtn(),this.updateNodeActiveClass())}render(e=(()=>{})){if(this.renderLine(),this.group?(this.nodeDraw.add(this.group),this.needLayout&&(this.needLayout=!1,this.layout()),this.updateExpandBtnPlaceholderRect(),this.update()):(this.group=new _c,this.group.addClass("smm-node"),this.group.css({cursor:"default"}),this.bindGroupEvent(),this.nodeDraw.add(this.group),this.layout(),this.update()),this.children&&this.children.length&&!1!==this.getData("expand")){let t=0;this.children.forEach(n=>{n.render(()=>{t++,t>=this.children.length&&e()})})}else e();this.nodeData.inserting&&(delete this.nodeData.inserting,this.active(),setTimeout(()=>{this.mindMap.emit("node_dblclick",this,null,!0)},0))}remove(){this.group&&(this.group.remove(),this.removeGeneralization(),this.removeLine(),this.children&&this.children.length&&this.children.forEach(e=>{e.remove()}))}destroy(){this.group&&(this.group.remove(),this.removeGeneralization(),this.removeLine(),this.group=null,this.parent&&this.parent.removeLine())}hide(){if(this.group.hide(),this.hideGeneralization(),this.parent){let e=this.parent.children.indexOf(this);this.parent._lines[e]&&this.parent._lines[e].hide(),this._lines.forEach(e=>{e.hide()})}this.children&&this.children.length&&this.children.forEach(e=>{e.hide()})}show(){if(this.group){if(this.group.show(),this.showGeneralization(),this.parent){let e=this.parent.children.indexOf(this);this.parent._lines[e]&&this.parent._lines[e].show(),this._lines.forEach(e=>{e.show()})}this.children&&this.children.length&&this.children.forEach(e=>{e.show()})}}setOpacity(e){this.group.opacity(e),this._lines.forEach(t=>{t.opacity(e)}),this.children.forEach(t=>{t.setOpacity(e)}),this.setGeneralizationOpacity(e)}hideChildren(){this._lines.forEach(e=>{e.hide()}),this.children&&this.children.length&&this.children.forEach(e=>{e.hide()})}showChildren(){this._lines.forEach(e=>{e.show()}),this.children&&this.children.length&&this.children.forEach(e=>{e.show()})}startDrag(){this.isDrag=!0,this.group.addClass("smm-node-dragging")}endDrag(){this.isDrag=!1,this.group.removeClass("smm-node-dragging")}renderLine(e=!1){if(!1===this.getData("expand"))return;let t=this.nodeData.children.length;this.mindMap.opt.layout!==oo["a"].LAYOUT.FISHBONE||!this.isRoot&&1!==this.layerIndex||(t=0),t>this._lines.length?new Array(t-this._lines.length).fill(0).forEach(()=>{this._lines.push(this.lineDraw.path())}):t{e.remove()}),this._lines=this._lines.slice(0,t)),this.renderer.layout.renderLine(this,this._lines,(e,t)=>{this.styleLine(e,t)},this.style.getStyle("lineStyle",!0)),e&&this.children&&this.children.length>0&&this.children.forEach(t=>{t.renderLine(e)})}getShape(){return this.mindMap.themeConfig.nodeUseLineStyle?oo["a"].SHAPE.RECTANGLE:this.style.getStyle("shape",!1,!1)}hasCustomPosition(){return void 0!==this.customLeft&&void 0!==this.customTop}ancestorHasCustomPosition(){let e=this;while(e){if(e.hasCustomPosition())return!0;e=e.parent}return!1}ancestorHasGeneralization(){let e=this.parent;while(e){if(e.checkHasGeneralization())return!0;e=e.parent}return!1}addChildren(e){this.children.push(e)}styleLine(e,t){let n=t.getSelfInhertStyle("lineWidth")||t.getStyle("lineWidth",!0),r=t.getSelfInhertStyle("lineColor")||t.getStyle("lineColor",!0),i=t.getSelfInhertStyle("lineDasharray")||t.getStyle("lineDasharray",!0);this.style.line(e,{width:n,color:r,dasharray:i})}removeLine(){this._lines.forEach(e=>{e.remove()}),this._lines=[]}isAncestor(e){if(this.uid===e.uid)return!1;let t=e.parent;while(t){if(this.uid===t.uid)return!0;t=t.parent}return!1}isParent(e){if(this.uid===e.uid)return!1;const t=e.parent;return!(!t||this.uid!==t.uid)}isBrother(e){return!(!this.parent||this.uid===e.uid)&&this.parent.children.find(t=>t.uid===e.uid)}getIndexInBrothers(){return this.parent&&this.parent.children?this.parent.children.findIndex(e=>e.uid===this.uid):-1}getPaddingVale(){let{isActive:e}=this.getData();return{paddingX:this.getStyle("paddingX",!0,e),paddingY:this.getStyle("paddingY",!0,e)}}getStyle(e,t){let n=this.style.merge(e,t);return void 0===n?"":n}getSelfStyle(e){return this.style.getSelfStyle(e)}getParentSelfStyle(e){return this.parent?this.parent.getSelfStyle(e)||this.parent.getParentSelfStyle(e):null}getSelfInhertStyle(e){return this.getSelfStyle(e)||this.getParentSelfStyle(e)}getBorderWidth(){return this.style.merge("borderWidth",!1)||0}getData(e){return e?this.nodeData.data[e]:this.nodeData.data}getPureData(e=!0,t=!1){return Object(v["k"])({},this,e,t)}hasCustomStyle(){return this.style.hasCustomStyle()}getRect(){return this.group.rbox()}getRectInSvg(){let{scaleX:e,scaleY:t,translateX:n,translateY:r}=this.mindMap.draw.transform(),{left:i,top:o,width:a,height:s}=this,l=(i+a)*e+n,c=(o+s)*t+r;return i=i*e+n,o=o*t+r,{left:i,right:l,top:o,bottom:c,width:a*e,height:s*t}}}var ah=oh;class sh{constructor(e){this.max=e||1e3,this.size=0,this.pool=new Map}add(e,t){if(this.delete(e),this.pool.set(e,t),this.size++,this.size>this.max){let e=this.pool.keys(),t=e.next();this.delete(t.value)}}delete(e){this.pool.has(e)&&(this.pool.delete(e),this.size--)}has(e){return this.pool.has(e)}get(e){if(this.pool.has(e))return this.pool.get(e)}}class lh{constructor(e){this.renderer=e,this.mindMap=e.mindMap,this.draw=this.mindMap.draw,this.lineDraw=this.mindMap.lineDraw,this.root=null,this.lru=new sh(this.mindMap.opt.maxNodeCacheCount)}doLayout(){throw new Error("【computed】方法为必要方法,需要子类进行重写!")}renderLine(){throw new Error("【renderLine】方法为必要方法,需要子类进行重写!")}renderExpandBtn(){throw new Error("【renderExpandBtn】方法为必要方法,需要子类进行重写!")}renderGeneralization(){}cacheNode(e,t){this.renderer.nodeCache[e]=t,this.lru.add(e,t)}checkIsNeedResizeSources(){return[oo["a"].CHANGE_THEME,oo["a"].TRANSFORM_TO_NORMAL_NODE].includes(this.renderer.renderSource)}checkIsLayerTypeChange(e,t){return!(e>=2&&t>=2)&&(e>=2&&t<2||(e<2&&t>=2||void 0))}checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(e){this.renderer.renderSource===oo["a"].CHANGE_LAYOUT&&(e.needRerenderExpandBtnPlaceholderRect=!0)}createNode(e,t,n,r){let i=null;if(e&&e._node&&!this.renderer.reRender){i=e._node;let t=this.checkIsLayerTypeChange(i.layerIndex,r);i.reset(),i.layerIndex=r,this.cacheNode(e._node.uid,i),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(i),(this.checkIsNeedResizeSources()||t)&&(i.getSize(),i.needLayout=!0)}else if(this.lru.has(e.data.uid)&&!this.renderer.reRender){i=this.lru.get(e.data.uid);let t=JSON.stringify(i.getData()),n=this.checkIsLayerTypeChange(i.layerIndex,r);i.reset(),i.nodeData=i.handleData(e||{}),i.layerIndex=r,this.cacheNode(e.data.uid,i),this.checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(i),e._node=i;let o=this.checkIsNeedResizeSources(),a=t!==JSON.stringify(e.data);(o||a||n)&&(i.getSize(),i.needLayout=!0)}else{let t=e.data.uid||Object(v["m"])();i=new ah({data:e,uid:t,renderer:this.renderer,mindMap:this.mindMap,draw:this.draw,layerIndex:r}),e.data.uid=t,this.cacheNode(t,i),e._node=i,e.data.isActive&&this.renderer.addNodeToActiveList(i)}return-1!==this.mindMap.renderer.findActiveNodeIndex(i)&&i.setData({isActive:!0}),n?(i.isRoot=!0,this.root=i):(i.parent=t._node,t._node.addChildren(i)),i}formatPosition(e,t,n){return"number"===typeof e?e:void 0!==oo["f"][e]?t*oo["f"][e]:/^\d\d*%$/.test(e)?Number.parseFloat(e)/100*t:(t-n)/2}setNodeCenter(e){let{initRootNodePosition:t}=this.mindMap.opt,{CENTER:n}=oo["a"].INIT_ROOT_NODE_POSITION;(!t||!Array.isArray(t)||t.length<2)&&(t=[n,n]),e.left=this.formatPosition(t[0],this.mindMap.width,e.width),e.top=this.formatPosition(t[1],this.mindMap.height,e.height)}updateChildren(e,t,n){e.forEach(e=>{e[t]+=n,e.children&&e.children.length&&!e.hasCustomPosition()&&this.updateChildren(e.children,t,n)})}updateChildrenPro(e,t){e.forEach(e=>{Object.keys(t).forEach(n=>{e[n]+=t[n]}),e.children&&e.children.length&&!e.hasCustomPosition()&&this.updateChildrenPro(e.children,t)})}getNodeAreaWidth(e,t=!1){let n=[],r=0,i=(e,o)=>{t&&e.checkHasGeneralization()&&(r+=e._generalizationNodeWidth),e.children.length?(o+=e.width/2,e.children.forEach(e=>{i(e,o)})):(o+=e.width,n.push(o))};return i(e,0),Math.max(...n)+r}quadraticCurvePath(e,t,n,r){let i=e+.2*(n-e),o=t+.8*(r-t);return`M ${e},${t} Q ${i},${o} ${n},${r}`}cubicBezierPath(e,t,n,r){let i=e+(n-e)/2,o=t,a=i,s=r;return`M ${e},${t} C ${i},${o} ${a},${s} ${n},${r}`}getMarginX(e){const{themeConfig:t,opt:n}=this.mindMap,{second:r,node:i}=t,o=2*n.hoverRectPadding;return 1===e?r.marginX+o:i.marginX+o}getMarginY(e){const{themeConfig:t,opt:n}=this.mindMap,{second:r,node:i}=t,o=2*n.hoverRectPadding;return 1===e?r.marginY+o:i.marginY+o}getNodeWidthWithGeneralization(e){return Math.max(e.width,e.checkHasGeneralization()?e._generalizationNodeWidth:0)}getNodeHeightWithGeneralization(e){return Math.max(e.height,e.checkHasGeneralization()?e._generalizationNodeHeight:0)}getNodeBoundaries(e,t){let{generalizationLineMargin:n,generalizationNodeMargin:r}=this.mindMap.themeConfig,i=e=>{let n=1/0,o=-1/0,a=1/0,s=-1/0;e.children&&e.children.length>0&&e.children.forEach(e=>{let{left:l,right:c,top:u,bottom:h}=i(e),d=e.checkHasGeneralization()&&e.getData("expand")?e._generalizationNodeWidth+r:0,f=e.checkHasGeneralization()&&e.getData("expand")?e._generalizationNodeHeight+r:0;l-("h"===t?d:0)o&&(o=c+("h"===t?d:0)),us&&(s=h+("v"===t?f:0))});let l={left:e.left,right:e.left+e.width,top:e.top,bottom:e.top+e.height};return{left:l.lefto?l.right:o,top:l.tops?l.bottom:s}},{left:o,right:a,top:s,bottom:l}=i(e);return{left:o,right:a,top:s,bottom:l,generalizationLineMargin:n,generalizationNodeMargin:r}}getChildrenBoundaries(e,t,n=0,r){let{generalizationLineMargin:i,generalizationNodeMargin:o}=this.mindMap.themeConfig;const a=e.children.slice(n,r+1);let s=1/0,l=-1/0,c=1/0,u=-1/0;return a.forEach(e=>{const n=this.getNodeBoundaries(e,t);s=n.leftl?n.right:l,c=n.topu?n.bottom:u}),{left:s,right:l,top:c,bottom:u,generalizationLineMargin:i,generalizationNodeMargin:o}}getNodeGeneralizationRenderBoundaries(e,t){let n=null;return n=e.range?this.getChildrenBoundaries(e.node,t,e.range[0],e.range[1]):this.getNodeBoundaries(e.node,t),n}getNodeActChildrenLength(e){return e.nodeData.children&&e.nodeData.children.length}}var ch=lh;class uh extends ch{constructor(e={}){super(e)}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r)=>{let i=this.createNode(e,t,n,r);if(n?this.setNodeCenter(i):i.left=t._node.left+t._node.width+this.getMarginX(r),!e.data.expand)return!0},(e,t,n,r)=>{let i=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaHeight=i?e._node.children.reduce((e,t)=>e+t.height,0)+(i+1)*this.getMarginY(r+1):0;let o=e._node.checkHasGeneralization()?e._node._generalizationNodeHeight+this.getMarginY(r+1):0;e._node.childrenAreaHeight2=Math.max(e._node.childrenAreaHeight,o)},!0,0)}computedTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginY(r+1),n=e.top+e.height/2-e.childrenAreaHeight/2,i=n+t;e.children.forEach(e=>{e.top=i,i+=e.height+t})}},null,!0)}adjustTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;let i=e.childrenAreaHeight2-2*this.getMarginY(r+1)-e.height;i>0&&this.updateBrothers(e,i/2)},null,!0)}updateBrothers(e,t){if(e.parent){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((n,i)=>{if(n.uid===e.uid||n.hasCustomPosition())return;let o=0;ir&&(o=t),n.top+=o,n.children&&n.children.length&&this.updateChildren(n.children,"top",o)}),this.updateBrothers(e.parent,t)}}renderLine(e,t,n,r){"curve"===r?this.renderLineCurve(e,t,n):"direct"===r?this.renderLineDirect(e,t,n):this.renderLineStraight(e,t,n)}renderLineStraight(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.getMarginX(e.layerIndex+1),c=.6*(l-s),u=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((l,h)=>{let d=0===e.layerIndex?r+o:r+o+s,f=i+a/2,p=l.left,m=l.top+l.height/2,g=u?l.width:0;f=u&&!e.isRoot?f+a/2:f,m=u?m+l.height/2:m;let v=`M ${d},${f} L ${d+c},${f} L ${d+c},${m} L ${p+g},${m}`;t[h].plot(v),n&&n(t[h],l)})}renderLineDirect(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((c,u)=>{let h=0===e.layerIndex?r+o/2:r+o+s,d=i+a/2,f=c.left,p=c.top+c.height/2;d=l&&!e.isRoot?d+a/2:d,p=l?p+c.height/2:p;let m=l?` L ${c.left+c.width},${p}`:"",g=`M ${h},${d} L ${f},${p}`+m;t[u].plot(g),n&&n(t[u],c)})}renderLineCurve(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((c,u)=>{let h=0===e.layerIndex?r+o/2:r+o+s,d=i+a/2,f=c.left,p=c.top+c.height/2,m="";d=l&&!e.isRoot?d+a/2:d,p=l?p+c.height/2:p;let g=l?` L ${c.left+c.width},${p}`:"";m=e.isRoot&&!this.mindMap.themeConfig.rootLineKeepSameInCurve?this.quadraticCurvePath(h,d,f,p)+g:this.cubicBezierPath(h,d,f,p)+g,t[u].plot(m),n&&n(t[u],c)})}renderExpandBtn(e,t){let{width:n,height:r}=e,{translateX:i,translateY:o}=t.transform(),a=this.mindMap.themeConfig.nodeUseLineStyle?r/2:0,s=n,l=r/2+a;s===i&&l===o||t.translate(s-i,l-o)}renderGeneralization(e){e.forEach(e=>{let{top:t,bottom:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"h"),a=r+i,s=t,l=r+i,c=n,u=a+20,h=s+(c-s)/2,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.left=r+o,e.generalizationNode.top=t+(n-t-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){e.size(t,r).x(n).y(0)}}var hh=uh;class dh extends ch{constructor(e={}){super(e)}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r,i)=>{let o=this.createNode(e,t,n,r);if(n?this.setNodeCenter(o):(t._node.dir?o.dir=t._node.dir:o.dir=i%2===0?oo["a"].LAYOUT_GROW_DIR.RIGHT:oo["a"].LAYOUT_GROW_DIR.LEFT,o.left=o.dir===oo["a"].LAYOUT_GROW_DIR.RIGHT?t._node.left+t._node.width+this.getMarginX(r):t._node.left-this.getMarginX(r)-o.width),!e.data.expand)return!0},(e,t,n,r)=>{if(!e.data.expand)return e._node.leftChildrenAreaHeight=0,void(e._node.rightChildrenAreaHeight=0);let i=0,o=0,a=0,s=0;e._node.children.forEach(e=>{e.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?(i++,a+=e.height):(o++,s+=e.height)}),e._node.leftChildrenAreaHeight=a+(i+1)*this.getMarginY(r+1),e._node.rightChildrenAreaHeight=s+(o+1)*this.getMarginY(r+1);let l=e._node.checkHasGeneralization()?e._node._generalizationNodeHeight+this.getMarginY(r+1):0;e._node.leftChildrenAreaHeight2=Math.max(e._node.leftChildrenAreaHeight,l),e._node.rightChildrenAreaHeight2=Math.max(e._node.rightChildrenAreaHeight,l)},!0,0)}computedTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginY(r+1),n=e.top+e.height/2+t,i=n-e.leftChildrenAreaHeight/2,o=n-e.rightChildrenAreaHeight/2;e.children.forEach(e=>{e.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?(e.top=i,i+=e.height+t):(e.top=o,o+=e.height+t)})}},null,!0)}adjustTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;let i=2*this.getMarginY(r+1)+e.height,o=e.leftChildrenAreaHeight2-i,a=e.rightChildrenAreaHeight2-i;(o>0||a>0)&&this.updateBrothers(e,o/2,a/2)},null,!0)}updateBrothers(e,t,n){if(e.parent){let r=e.parent.children.filter(t=>t.dir===e.dir),i=Object(v["w"])(e,r);r.forEach((e,r)=>{if(e.hasCustomPosition())return;let o=0,a=e.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?t:n;ri&&(o=a),e.top+=o,e.children&&e.children.length&&this.updateChildren(e.children,"top",o)}),this.updateBrothers(e.parent,t,n)}}renderLine(e,t,n,r){"curve"===r?this.renderLineCurve(e,t,n):"direct"===r?this.renderLineDirect(e,t,n):this.renderLineStraight(e,t,n)}renderLineStraight(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.getMarginX(e.layerIndex+1),c=.6*(l-s),u=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((l,h)=>{let d=0,f=0,p=u?l.width:0;l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?(f=-c,d=0===e.layerIndex?r:r-s,p=-p):(f=c,d=0===e.layerIndex?r+o:r+o+s);let m=i+a/2,g=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?l.left+l.width:l.left,v=l.top+l.height/2;m=u&&!e.isRoot?m+a/2:m,v=u?v+l.height/2:v;let b=`M ${d},${m} L ${d+f},${m} L ${d+f},${v} L ${g+p},${v}`;t[h].plot(b),n&&n(t[h],l)})}renderLineDirect(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((c,u)=>{let h=0===e.layerIndex?r+o/2:c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?r-s:r+o+s,d=i+a/2,f=c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?c.left+c.width:c.left,p=c.top+c.height/2;d=l&&!e.isRoot?d+a/2:d,p=l?p+c.height/2:p;let m="";l&&(m=c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?` L ${c.left},${p}`:` L ${c.left+c.width},${p}`);let g=`M ${h},${d} L ${f},${p}`+m;t[u].plot(g),n&&n(t[u],c)})}renderLineCurve(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=this.mindMap.themeConfig.nodeUseLineStyle;e.children.forEach((c,u)=>{let h=0===e.layerIndex?r+o/2:c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?r-s:r+o+s,d=i+a/2,f=c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?c.left+c.width:c.left,p=c.top+c.height/2,m="";d=l&&!e.isRoot?d+a/2:d,p=l?p+c.height/2:p;let g="";this.mindMap.themeConfig.nodeUseLineStyle&&(g=c.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?` L ${c.left},${p}`:` L ${c.left+c.width},${p}`),m=e.isRoot&&!this.mindMap.themeConfig.rootLineKeepSameInCurve?this.quadraticCurvePath(h,d,f,p)+g:this.cubicBezierPath(h,d,f,p)+g,t[u].plot(m),n&&n(t[u],c)})}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i}=e,{translateX:o,translateY:a}=t.transform(),s=this.mindMap.themeConfig.nodeUseLineStyle?r/2:0,l=e.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?0-i:n,c=r/2+s;if(l===o&&c===a)return;let u=l-o,h=c-a;t.translate(u,h)}renderGeneralization(e){e.forEach(e=>{let t=e.node.dir===oo["a"].LAYOUT_GROW_DIR.LEFT,{top:n,bottom:r,left:i,right:o,generalizationLineMargin:a,generalizationNodeMargin:s}=this.getNodeGeneralizationRenderBoundaries(e,"h"),l=t?i-a:o+a,c=l,u=n,h=l,d=r,f=c+(t?-20:20),p=u+(d-u)/2,m=`M ${c},${u} Q ${f},${p} ${h},${d}`;e.generalizationLine.plot(m),e.generalizationNode.left=l+(t?-s:s)-(t?e.generalizationNode.width:0),e.generalizationNode.top=n+(r-n-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){i.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?e.size(t,r).x(-t).y(0):e.size(t,r).x(n).y(0)}}var fh=dh;class ph extends ch{constructor(e={}){super(e)}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r)=>{let i=this.createNode(e,t,n,r);if(n?this.setNodeCenter(i):t._node.isRoot&&(i.top=t._node.top+t._node.height+this.getMarginX(r)),!e.data.expand)return!0},(e,t,n,r)=>{if(n){let t=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaWidth=t?e._node.children.reduce((e,t)=>e+t.width,0)+(t+1)*this.getMarginX(r+1):0}},!0,0)}computedLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginX(r+1),i=this.getMarginY(r+1);if(n){let n=e.left+e.width/2-e.childrenAreaWidth/2,r=n+t;e.children.forEach(e=>{e.left=r,r+=e.width+t})}else{let t=e.top+this.getNodeHeightWithGeneralization(e)+i+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0);e.children.forEach(n=>{n.left=e.left+.5*e.width,n.top=t,t+=this.getNodeHeightWithGeneralization(n)+i+(this.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;if(t&&t.isRoot){let t=this.getNodeAreaWidth(e,!0),n=t-e.width;n>0&&this.updateBrothersLeft(e,n)}let i=e.children.length;if(t&&!t.isRoot&&i>0){let t=this.getMarginY(r+1),n=e.children.reduce((e,t)=>e+this.getNodeHeightWithGeneralization(t)+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0),0)+i*t;this.updateBrothersTop(e,n)}},(e,t,n)=>{if(n){let{right:t,left:n}=this.getNodeBoundaries(e,"h"),r=t-n,i=e.left-n-(r-e.width)/2;this.updateChildren(e.children,"left",i)}},!0)}updateBrothersLeft(e,t){if(e.parent){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{e.hasCustomPosition()||n<=r||(e.left+=t,e.children&&e.children.length&&this.updateChildren(e.children,"left",t))}),this.updateBrothersLeft(e.parent,t)}}updateBrothersTop(e,t){if(e.parent&&!e.parent.isRoot){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;n>r&&(i=t),e.top+=i,e.children&&e.children.length&&this.updateChildren(e.children,"top",i)}),this.updateBrothersTop(e.parent,t)}}renderLine(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=e.children.length,c=this.getMarginX(e.layerIndex+1);if(e.isRoot){let s=r+o/2,u=i+a,h=.7*c,d=1/0,f=-1/0;e.children.forEach((e,r)=>{let i=e.left+e.width/2,o=e.top;if&&(f=i);let a=this.mindMap.themeConfig.nodeUseLineStyle?` L ${e.left},${o} L ${e.left+e.width},${o}`:"",s=`M ${i},${u+h} L ${i},${u+h>o?o+e.height:o}`+a;t[r].plot(s),n&&n(t[r],e)}),d=Math.min(d,s),f=Math.max(f,s);let p=this.lineDraw.path();if(e.style.line(p),p.plot(`M ${s},${u} L ${s},${u+h}`),e._lines.push(p),n&&n(p,e),l>0){let t=this.lineDraw.path();e.style.line(t),t.plot(`M ${d},${u+h} L ${f},${u+h}`),e._lines.push(t),n&&n(t,e)}}else{let r=i+a,o=-1/0,c=e.left+.3*e.width;if(e.children.forEach((a,s)=>{let l=a.top+a.height/2;l>o&&(o=l);let u="",h=a.left,d=a.left+a.widthc&&(f=!0,l=a.top,o=l),l>i&&l0){let t=this.lineDraw.path();s=l>0?s:0,e.style.line(t),o{let{top:t,bottom:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"h"),a=r+i,s=t,l=r+i,c=n,u=a+20,h=s+(c-s)/2,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.left=r+o,e.generalizationNode.top=t+(n-t-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){e.size(n,t).x(0).y(r)}}var mh=ph;class gh extends ch{constructor(e={}){super(e)}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedLeftValue()},()=>{this.adjustLeftValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r)=>{let i=this.createNode(e,t,n,r);if(n?this.setNodeCenter(i):i.top=t._node.top+t._node.height+this.getMarginX(r),!e.data.expand)return!0},(e,t,n,r)=>{let i=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaWidth=i?e._node.children.reduce((e,t)=>e+t.width,0)+(i+1)*this.getMarginY(r+1):0;let o=e._node.checkHasGeneralization()?e._node._generalizationNodeWidth+this.getMarginY(r+1):0;e._node.childrenAreaWidth2=Math.max(e._node.childrenAreaWidth,o)},!0,0)}computedLeftValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginY(r+1),n=e.left+e.width/2-e.childrenAreaWidth/2,i=n+t;e.children.forEach(e=>{e.left=i,i+=e.width+t})}},null,!0)}adjustLeftValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;let i=e.childrenAreaWidth2-2*this.getMarginY(r+1)-e.width;i>0&&this.updateBrothers(e,i/2)},null,!0)}updateBrothers(e,t){if(e.parent){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;nr&&(i=t),e.left+=i,e.children&&e.children.length&&this.updateChildren(e.children,"left",i)}),this.updateBrothers(e.parent,t)}}renderLine(e,t,n,r){"direct"===r?this.renderLineDirect(e,t,n):this.renderLineStraight(e,t,n)}renderLineDirect(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a}=e,s=r+o/2,l=i+a;e.children.forEach((e,r)=>{let i=e.left+e.width/2,o=e.top,a=this.mindMap.themeConfig.nodeUseLineStyle?` L ${e.left},${o} L ${e.left+e.width},${o}`:"",c=`M ${s},${l} L ${i},${o}`+a;t[r].plot(c),n&&n(t[r],e)})}renderLineStraight(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s,isRoot:l}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let c=r+o/2,u=i+a,h=this.getMarginX(e.layerIndex+1),d=.7*h,f=1/0,p=-1/0,m=e.children.length;e.children.forEach((e,r)=>{let i=e.left+e.width/2,o=u+d>e.top?e.top+e.height:e.top;ip&&(p=i);let a=this.mindMap.themeConfig.nodeUseLineStyle?` L ${e.left},${o} L ${e.left+e.width},${o}`:"",s=`M ${i},${u+d} L ${i},${o}`+a;t[r].plot(s),n&&n(t[r],e)}),f=Math.min(c,f),p=Math.max(c,p);let g=this.lineDraw.path();if(e.style.line(g),s=m>0&&!l?s:0,g.plot(`M ${c},${u+s} L ${c},${u+d}`),e._lines.push(g),n&&n(g,e),m>0){let t=this.lineDraw.path();e.style.line(t),t.plot(`M ${f},${u+d} L ${p},${u+d}`),e._lines.push(t),n&&n(t,e)}}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i}=e,{translateX:o,translateY:a}=t.transform();t.translate(n/2-i/2-o,r+i/2-a)}renderGeneralization(e){e.forEach(e=>{let{bottom:t,left:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"v"),a=n,s=t+i,l=r,c=t+i,u=a+(l-a)/2,h=s+20,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.top=t+o,e.generalizationNode.left=n+(r-n-e.generalizationNode.width)/2})}renderExpandBtnRect(e,t,n,r,i){e.size(n,t).x(0).y(r)}}var vh=gh;class bh extends ch{constructor(e={},t){super(e),this.layout=t}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r,i)=>{let o=this.createNode(e,t,n,r);if(n?this.setNodeCenter(o):(this.layout===oo["a"].LAYOUT.TIMELINE2?t._node.dir?o.dir=t._node.dir:o.dir=i%2===0?oo["a"].LAYOUT_GROW_DIR.BOTTOM:oo["a"].LAYOUT_GROW_DIR.TOP:o.dir="",t._node.isRoot&&(o.top=t._node.top+(e._node.height>t._node.height?-(e._node.height-t._node.height)/2:(t._node.height-e._node.height)/2))),!e.data.expand)return!0},null,!0,0)}computedLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r,i)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginX(r+1),i=this.getMarginY(r+1);if(n){let n=e.left+e.width,r=n+t;e.children.forEach(e=>{e.left=r,r+=e.width+t})}else{let t=e.top+e.height+i+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0);e.children.forEach(n=>{n.left=e.left+.5*e.width,n.top=t,t+=n.height+i+(this.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)})}}},null,!0)}adjustLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;e.isRoot&&this.updateBrothersLeft(e);let i=e.children.length;if(t&&!t.isRoot&&i>0){let t=this.getMarginY(r+1),n=e.children.reduce((e,t)=>e+t.height+(this.getNodeActChildrenLength(t)>0?t.expandBtnSize:0),0)+i*t;this.updateBrothersTop(e,n)}},(e,t,n,r)=>{t&&t.isRoot&&e.dir===oo["a"].LAYOUT_GROW_DIR.TOP&&e.children.forEach(t=>{let n=this.getNodeAreaHeight(t),r=t.top;t.top=e.top-(t.top-e.top)-n+e.height,this.updateChildren(t.children,"top",t.top-r)})},!0)}getNodeAreaHeight(e){let t=0,n=e=>{t+=e.height+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+this.getMarginY(e.layerIndex),e.children.length&&e.children.forEach(e=>{n(e)})};return n(e),t}updateBrothersLeft(e){let t=e.children,n=0;t.forEach(e=>{e.left+=n,e.children&&e.children.length&&this.updateChildren(e.children,"left",n);let{left:t,right:r}=this.getNodeBoundaries(e,"h"),i=r-t,o=i-e.width;o>0&&(n+=o)})}updateBrothersTop(e,t){if(e.parent&&!e.parent.isRoot){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;n>r&&(i=t),e.top+=i,e.children&&e.children.length&&this.updateChildren(e.children,"top",i)}),this.updateBrothersTop(e.parent,t)}}renderLine(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0);let l=e.children.length;if(e.isRoot){let r=e;e.children.forEach((i,o)=>{let a=r.left+r.width,s=i.left,l=e.top+e.height/2,c=`M ${a},${l} L ${s},${l}`;t[o].plot(c),n&&n(t[o],i),r=i})}else{let r=-1/0,o=1/0,c=e.left+.3*e.width;if(e.children.forEach((e,i)=>{let a=e.top+e.height/2;a>r&&(r=a),a0){let t=this.lineDraw.path();s=l>0?s:0,e.parent&&e.parent.isRoot&&e.dir===oo["a"].LAYOUT_GROW_DIR.TOP?t.plot(`M ${c},${i} L ${c},${o}`):t.plot(`M ${c},${i+a+s} L ${c},${r}`),e.style.line(t),e._lines.push(t),n&&n(t,e)}}}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i,isRoot:o}=e;if(!o){let{translateX:o,translateY:a}=t.transform();e.parent&&e.parent.isRoot&&e.dir===oo["a"].LAYOUT_GROW_DIR.TOP?t.translate(.3*n-i/2-o,-i/2-a):t.translate(.3*n-i/2-o,r+i/2-a)}}renderGeneralization(e){e.forEach(e=>{let{top:t,bottom:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"h"),a=r+i,s=t,l=r+i,c=n,u=a+20,h=s+(c-s)/2,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.left=r+o,e.generalizationNode.top=t+(n-t-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){if(this.layout===oo["a"].LAYOUT.TIMELINE)e.size(n,t).x(0).y(r);else{let o="";o=i.dir===oo["a"].LAYOUT_GROW_DIR.TOP&&1===i.layerIndex?oo["a"].LAYOUT_GROW_DIR.TOP:oo["a"].LAYOUT_GROW_DIR.BOTTOM,o===oo["a"].LAYOUT_GROW_DIR.TOP?e.size(n,t).x(0).y(-t):e.size(n,t).x(0).y(r)}}}var yh=bh;class wh extends ch{constructor(e={},t){super(e),this.layout=t}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedTopValue()},()=>{this.adjustLeftTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r,i)=>{let o=this.createNode(e,t,n,r);if(n?this.setNodeCenter(o):(t._node.dir?o.dir=t._node.dir:o.dir=i%2===0?oo["a"].LAYOUT_GROW_DIR.RIGHT:oo["a"].LAYOUT_GROW_DIR.LEFT,t._node.isRoot?o.left=t._node.left+(e._node.width>t._node.width?-(e._node.width-t._node.width)/2:(t._node.width-e._node.width)/2):o.left=o.dir===oo["a"].LAYOUT_GROW_DIR.RIGHT?t._node.left+t._node.width+this.getMarginX(r):t._node.left-this.getMarginX(r)-o.width),!e.data.expand)return!0},(e,t,n,r)=>{if(n)return;let i=!1===e.data.expand?0:e._node.children.length;e._node.childrenAreaHeight=i?e._node.children.reduce((e,t)=>e+t.height,0)+(i+1)*this.getMarginY(r+1):0},!0,0)}computedTopValue(){Object(v["db"])(this.root,null,(e,t,n,r,i)=>{if(e.getData("expand")&&e.children&&e.children.length){let t=this.getMarginY(r+1);if(n){let n=e.top+e.height,r=n+t;e.children.forEach(e=>{e.top=r,r+=e.height+t})}else{let t=this.getMarginY(r+1),n=e.top+e.height/2+t,i=n-e.childrenAreaHeight/2;e.children.forEach(e=>{e.top=i,i+=e.height+t})}}},null,!0)}adjustLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;if(n)return;let i=2*this.getMarginY(r+1)+e.height,o=e.childrenAreaHeight-i;o>0&&this.updateBrothers(e,o/2)},null,!0)}updateBrothers(e,t){if(e.parent){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((n,i)=>{if(n.hasCustomPosition())return;if(!e.parent.isRoot&&n.uid===e.uid)return;let o=0;e.parent.isRoot?o=ir?2*t:t:ir&&(o=t),n.top+=o,n.children&&n.children.length&&this.updateChildren(n.children,"top",o)}),this.updateBrothers(e.parent,t)}}updateBrothersTop(e,t){if(e.parent&&!e.parent.isRoot){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;n>r&&(i=t),e.top+=i,e.children&&e.children.length&&this.updateChildren(e.children,"top",i)}),this.updateBrothersTop(e.parent,t)}}renderLine(e,t,n,r){"curve"===r?this.renderLineCurve(e,t,n):"direct"===r?this.renderLineDirect(e,t,n):this.renderLineStraight(e,t,n)}renderLineStraight(e,t,n){if(e.children.length<=0)return[];let{expandBtnSize:r}=e;if(this.mindMap.opt.alwaysShowExpandBtn||(r=0),e.isRoot){let r=e;e.children.forEach((i,o)=>{let a=r.top+r.height,s=i.top,l=e.left+e.width/2,c=`M ${l},${a} L ${l},${s}`;t[o].plot(c),n&&n(t[o],i),r=i})}else if(e.dir===oo["a"].LAYOUT_GROW_DIR.RIGHT){let i=e.left+e.width,o=e.top+e.height/2,a=this.getMarginX(e.layerIndex+1),s=.6*(a-r);e.children.forEach((e,r)=>{let a=e.left,l=e.top+e.height/2,c=`\n M ${i},${o} \n L ${i+s},${o} \n L ${i+s},${l} \n L ${a},${l}`;t[r].plot(c),n&&n(t[r],e)})}else{let i=e.left,o=e.top+e.height/2,a=this.getMarginX(e.layerIndex+1),s=.6*(a-r);e.children.forEach((e,r)=>{let a=e.left+e.width,l=e.top+e.height/2,c=`\n M ${i},${o} \n L ${i-s},${o} \n L ${i-s},${l} \n L ${a},${l}`;t[r].plot(c),n&&n(t[r],e)})}}renderLineDirect(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0),e.children.forEach((l,c)=>{if(e.isRoot){let r=e;e.children.forEach((i,o)=>{let a=r.top+r.height,s=i.top,l=e.left+e.width/2,c=`M ${l},${a} L ${l},${s}`;t[o].plot(c),n&&n(t[o],i),r=i})}else{let e=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?r-s:r+o+s,u=i+a/2,h=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?l.left+l.width:l.left,d=l.top+l.height/2,f=`M ${e},${u} L ${h},${d}`;t[c].plot(f),n&&n(t[c],l)}})}renderLineCurve(e,t,n){if(e.children.length<=0)return[];let{left:r,top:i,width:o,height:a,expandBtnSize:s}=e;this.mindMap.opt.alwaysShowExpandBtn||(s=0),e.children.forEach((l,c)=>{if(e.isRoot){let r=e;e.children.forEach((i,o)=>{let a=r.top+r.height,s=i.top,l=e.left+e.width/2,c=`M ${l},${a} L ${l},${s}`;t[o].plot(c),n&&n(t[o],i),r=i})}else{let e=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?r-s:r+o+s,u=i+a/2,h=l.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?l.left+l.width:l.left,d=l.top+l.height/2,f=this.cubicBezierPath(e,u,h,d);t[c].plot(f),n&&n(t[c],l)}})}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i,isRoot:o}=e;if(!o){let{translateX:o,translateY:a}=t.transform();e.dir===oo["a"].LAYOUT_GROW_DIR.RIGHT?t.translate(n-o,r/2-a):t.translate(-i-o,r/2-a)}}renderGeneralization(e){e.forEach(e=>{let t=e.node.dir===oo["a"].LAYOUT_GROW_DIR.LEFT,{top:n,bottom:r,left:i,right:o,generalizationLineMargin:a,generalizationNodeMargin:s}=this.getNodeGeneralizationRenderBoundaries(e,"h"),l=t?i-a:o+a,c=l,u=n,h=l,d=r,f=c+(t?-20:20),p=u+(d-u)/2,m=`M ${c},${u} Q ${f},${p} ${h},${d}`;e.generalizationLine.plot(m),e.generalizationNode.left=l+(t?-s:s)-(t?e.generalizationNode.width:0),e.generalizationNode.top=n+(r-n-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){i.dir===oo["a"].LAYOUT_GROW_DIR.LEFT?e.size(t,r).x(-t).y(0):e.size(t,r).x(n).y(0)}}var xh=wh,kh={top:{renderExpandBtn({node:e,btn:t,expandBtnSize:n,translateX:r,translateY:i,width:o,height:a}){e.parent&&e.parent.isRoot?t.translate(.3*o-n/2-r,-n/2-i):t.translate(.3*o-n/2-r,a+n/2-i)},renderLine({node:e,line:t,top:n,x:r,lineLength:i,height:o,expandBtnSize:a,maxy:s,ctx:l}){e.parent&&e.parent.isRoot?t.plot(`M ${r},${n} L ${r+i},${n-Math.tan(Object(v["o"])(l.mindMap.opt.fishboneDeg))*i}`):t.plot(`M ${r},${n+o+a} L ${r},${s}`)},computedLeftTopValue({layerIndex:e,node:t,ctx:n}){if(e>=1&&t.children){let r=n.getMarginY(e+1),i=t.left+t.width*n.childIndent,o=t.top+t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+r;t.children.forEach(e=>{e.left=i,e.top+=o,o+=e.height+(n.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+r})}},adjustLeftTopValueBefore({node:e,parent:t,ctx:n,layerIndex:r}){let i=e.children.length,o=n.getMarginY(r+1);if(t&&!t.isRoot&&i>0){let t=e.children.reduce((e,t)=>e+t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+o,0);n.updateBrothersTop(e,t)}},adjustLeftTopValueAfter({parent:e,node:t,ctx:n}){if(e&&e.isRoot){let e=n.getMarginY(t.layerIndex+1),r=t.expandBtnSize+e;t.children.forEach(e=>{let i=n.getNodeAreaHeight(e),o=e.top,a=e.left;e.top=t.top-(e.top-t.top)-i+t.height,e.left=t.left+t.width*n.indent+(i+r)/Math.tan(Object(v["o"])(n.mindMap.opt.fishboneDeg)),r+=i,n.updateChildrenPro(e.children,{top:e.top-o,left:e.left-a})})}}},bottom:{renderExpandBtn({node:e,btn:t,expandBtnSize:n,translateX:r,translateY:i,width:o,height:a}){e.parent&&e.parent.isRoot?t.translate(.3*o-n/2-r,a+n/2-i):t.translate(.3*o-n/2-r,-n/2-i)},renderLine({node:e,line:t,top:n,x:r,lineLength:i,height:o,miny:a,ctx:s}){e.parent&&e.parent.isRoot?t.plot(`M ${r},${n+o} L ${r+i},${n+o+Math.tan(Object(v["o"])(s.mindMap.opt.fishboneDeg))*i}`):t.plot(`M ${r},${n} L ${r},${a}`)},computedLeftTopValue({layerIndex:e,node:t,ctx:n}){let r=n.getMarginY(e+1);if(1===e&&t.children){let e=t.left+t.width*n.childIndent,i=t.top+t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+r;t.children.forEach(t=>{t.left=e,t.top=i+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0),i+=t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+r})}if(e>1&&t.children){let e=t.left+t.width*n.childIndent,i=t.top-(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)-r;t.children.forEach(t=>{t.left=e,t.top=i-t.height,i-=t.height+(n.getNodeActChildrenLength(t)>0?t.expandBtnSize:0)+r})}},adjustLeftTopValueBefore({node:e,ctx:t,layerIndex:n}){let r=t.getMarginY(n+1),i=e.children.length;if(n>2&&i>0){let n=e.children.reduce((e,n)=>e+n.height+(t.getNodeActChildrenLength(n)>0?n.expandBtnSize:0)+r,0);t.updateBrothersTop(e,-n)}},adjustLeftTopValueAfter({parent:e,node:t,ctx:n}){if(e&&e.isRoot){let e=n.getMarginY(t.layerIndex+1),r=0,i=t.expandBtnSize;t.children.forEach(o=>{let a=n.getNodeActChildrenLength(o)>0,s=n.getNodeAreaHeight(o),l=a?s-o.height-(a?o.expandBtnSize:0):0;l-=a?e:0;let c=r+l,u=o.left;o.top+=c,o.left=t.left+t.width*n.indent+(s+i)/Math.tan(Object(v["o"])(n.mindMap.opt.fishboneDeg)),r+=l,i+=s,n.updateChildrenPro(o.children,{top:c,left:o.left-u})})}}}};class Ah extends ch{constructor(e={}){super(e),this.indent=.3,this.childIndent=.5}doLayout(e){let t=[()=>{this.computedBaseValue()},()=>{this.computedLeftTopValue()},()=>{this.adjustLeftTopValue()},()=>{e(this.root)}];Object(v["c"])(t)}computedBaseValue(){Object(v["db"])(this.renderer.renderTree,null,(e,t,n,r,i)=>{let o=this.createNode(e,t,n,r);if(n)this.setNodeCenter(o);else if(t._node.dir?o.dir=t._node.dir:o.dir=i%2===0?oo["a"].LAYOUT_GROW_DIR.TOP:oo["a"].LAYOUT_GROW_DIR.BOTTOM,t._node.isRoot){let e=this.getMarginY(r);this.checkIsTop(o)?o.top=t._node.top-o.height-e:o.top=t._node.top+t._node.height+e}if(!e.data.expand)return!0},null,!0,0)}computedLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(e.isRoot){let t=this.getMarginX(r+1),n=e.left+e.width+e.height+t,i=e.left+e.width+e.height+t;e.children.forEach(e=>{this.checkIsTop(e)?(e.left=n,n+=e.width+t):(e.left=i+20,i+=e.width+t)})}let i={layerIndex:r,node:e,ctx:this};this.checkIsTop(e)?kh.top.computedLeftTopValue(i):kh.bottom.computedLeftTopValue(i)},null,!0)}adjustLeftTopValue(){Object(v["db"])(this.root,null,(e,t,n,r)=>{if(!e.getData("expand"))return;let i={node:e,parent:t,layerIndex:r,ctx:this};this.checkIsTop(e)?kh.top.adjustLeftTopValueBefore(i):kh.bottom.adjustLeftTopValueBefore(i)},(e,t)=>{let n={parent:t,node:e,ctx:this};if(this.checkIsTop(e)?kh.top.adjustLeftTopValueAfter(n):kh.bottom.adjustLeftTopValueAfter(n),e.isRoot){let t=0,n=0;e.children.forEach(e=>{if(this.checkIsTop(e)){e.left+=t,this.updateChildren(e.children,"left",t);let{left:n,right:r}=this.getNodeBoundaries(e,"h");t+=r-n}else{e.left+=n,this.updateChildren(e.children,"left",n);let{left:t,right:r}=this.getNodeBoundaries(e,"h");n+=r-t}})}},!0)}getNodeAreaHeight(e){let t=0,n=e=>{let r=this.getMarginY(e.layerIndex);t+=e.height+(this.getNodeActChildrenLength(e)>0?e.expandBtnSize:0)+r,e.children.length&&e.children.forEach(e=>{n(e)})};return n(e),t}updateBrothersLeft(e){let t=e.children,n=0;t.forEach(e=>{e.left+=n,e.children&&e.children.length&&this.updateChildren(e.children,"left",n);let{left:t,right:r}=this.getNodeBoundaries(e,"h"),i=r-t,o=i-e.width;o>0&&(n+=o)})}updateBrothersTop(e,t){if(e.parent&&!e.parent.isRoot){let n=e.parent.children,r=Object(v["w"])(e,n);n.forEach((e,n)=>{if(e.hasCustomPosition())return;let i=0;n>r&&(i=t),e.top+=i,e.children&&e.children.length&&this.updateChildren(e.children,"top",i)}),this.checkIsTop(e)?this.updateBrothersTop(e.parent,t):this.updateBrothersTop(e.parent,3===e.layerIndex?0:t)}}checkIsTop(e){return e.dir===oo["a"].LAYOUT_GROW_DIR.TOP}renderLine(e,t,n){if(1!==e.layerIndex&&e.children.length<=0)return[];let{top:r,height:i,expandBtnSize:o}=e;this.mindMap.opt.alwaysShowExpandBtn||(o=0);let a=e.children.length;if(e.isRoot){let t=-1/0;e.children.forEach(r=>{r.left>t&&(t=r.left);let i=this.getMarginY(r.layerIndex),o=r.left,a=e.height/2+i,s=a/Math.tan(Object(v["o"])(this.mindMap.opt.fishboneDeg)),l=this.lineDraw.path();this.checkIsTop(r)?l.plot(`M ${o-s},${r.top+r.height+a} L ${r.left},${r.top+r.height}`):l.plot(`M ${o-s},${r.top-a} L ${o},${r.top}`),e.style.line(l),e._lines.push(l),n&&n(l,e)});let r=e.top+e.height/2,i=e.height/2+this.getMarginY(e.layerIndex+1),o=this.lineDraw.path();o.plot(`M ${e.left+e.width},${r} L ${t-i/Math.tan(Object(v["o"])(this.mindMap.opt.fishboneDeg))},${r}`),e.style.line(o),e._lines.push(o),n&&n(o,e)}else{let s=-1/0,l=1/0,c=-1/0,u=e.left+e.width*this.indent;if(e.children.forEach((r,i)=>{r.left>c&&(c=r.left);let o=r.top+r.height/2;if(o>s&&(s=o),o1){let e=`M ${u},${o} L ${r.left},${o}`;t[i].plot(e),n&&n(t[i],r)}}),a>=0){let t=this.lineDraw.path();o=a>0?o:0;let h=c-e.left-e.width*this.indent;h=Math.max(h,0);let d={node:e,line:t,top:r,x:u,lineLength:h,height:i,expandBtnSize:o,maxy:s,miny:l,ctx:this};this.checkIsTop(e)?kh.top.renderLine(d):kh.bottom.renderLine(d),e.style.line(t),e._lines.push(t),n&&n(t,e)}}}renderExpandBtn(e,t){let{width:n,height:r,expandBtnSize:i,isRoot:o}=e;if(!o){let{translateX:o,translateY:a}=t.transform(),s={node:e,btn:t,expandBtnSize:i,translateX:o,translateY:a,width:n,height:r};this.checkIsTop(e)?kh.top.renderExpandBtn(s):kh.bottom.renderExpandBtn(s)}}renderGeneralization(e){e.forEach(e=>{let{top:t,bottom:n,right:r,generalizationLineMargin:i,generalizationNodeMargin:o}=this.getNodeGeneralizationRenderBoundaries(e,"h"),a=r+i,s=t,l=r+i,c=n,u=a+20,h=s+(c-s)/2,d=`M ${a},${s} Q ${u},${h} ${l},${c}`;e.generalizationLine.plot(d),e.generalizationNode.left=r+o,e.generalizationNode.top=t+(n-t-e.generalizationNode.height)/2})}renderExpandBtnRect(e,t,n,r,i){let o="";o=i.dir===oo["a"].LAYOUT_GROW_DIR.TOP?1===i.layerIndex?oo["a"].LAYOUT_GROW_DIR.TOP:oo["a"].LAYOUT_GROW_DIR.BOTTOM:1===i.layerIndex?oo["a"].LAYOUT_GROW_DIR.BOTTOM:oo["a"].LAYOUT_GROW_DIR.TOP,o===oo["a"].LAYOUT_GROW_DIR.TOP?e.size(n,t).x(0).y(-t):e.size(n,t).x(0).y(r)}}var Ch=Ah;class Eh{constructor(e){this.renderer=e,this.mindMap=e.mindMap,this.currentNode=null,this.textEditNode=null,this.showTextEdit=!1,this.cacheEditingText="",this.bindEvent()}bindEvent(){this.show=this.show.bind(this),this.onScale=this.onScale.bind(this),this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("node_dblclick",(e,t,n)=>{this.show({node:e,e:t,isInserting:n})}),this.mindMap.on("draw_click",()=>{this.hideEditTextBox()}),this.mindMap.on("body_click",()=>{this.mindMap.opt.isEndNodeTextEditOnClickOuter&&this.hideEditTextBox()}),this.mindMap.on("svg_mousedown",()=>{this.hideEditTextBox()}),this.mindMap.on("expand_btn_click",()=>{this.hideEditTextBox()}),this.mindMap.on("before_node_active",()=>{this.hideEditTextBox()}),this.mindMap.on("mousewheel",()=>{this.mindMap.opt.mousewheelAction===oo["a"].MOUSE_WHEEL_ACTION.MOVE&&this.hideEditTextBox()}),this.mindMap.keyCommand.addShortcut("F2",()=>{this.renderer.activeNodeList.length<=0||this.show({node:this.renderer.activeNodeList[0]})}),this.mindMap.on("scale",this.onScale),this.mindMap.opt.enableAutoEnterTextEditWhenKeydown&&window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",()=>{this.unBindEvent()})}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}onKeydown(e){const t=this.mindMap.renderer.activeNodeList;if(t.length<=0||t.length>1)return;const n=t[0];n&&this.checkIsAutoEnterTextEditKey(e)&&this.show({node:n,e:e,isInserting:!1,isFromKeyDown:!0})}checkIsAutoEnterTextEditKey(e){const t=e.keyCode;return(229===t||t>=65&&t<=90||t>=48&&t<=57)&&!this.mindMap.keyCommand.hasCombinationKey(e)}registerTmpShortcut(){this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),this.mindMap.keyCommand.addShortcut("Tab",()=>{this.hideEditTextBox()})}async show({node:e,isInserting:t=!1,isFromKeyDown:n=!1,isFromScale:r=!1}){if(e.isUseCustomNodeContent())return;const{beforeTextEdit:i}=this.mindMap.opt;if("function"===typeof i){let n=!1;try{n=await i(e,t)}catch(c){n=!1,this.mindMap.opt.errorHandler(oo["b"].BEFORE_TEXT_EDIT_ERROR,c)}if(!n)return}this.currentNode=e;const{offsetLeft:o,offsetTop:a}=Object(v["i"])(this.mindMap,e);this.mindMap.view.translateXY(o,a);const s=e._textData.node.node.getBoundingClientRect(),l={node:e,rect:s,isInserting:t,isFromKeyDown:n,isFromScale:r};this.mindMap.richText?this.mindMap.richText.showEditText(l):this.showEditTextBox(l)}onScale(){this.currentNode&&(this.mindMap.richText?(this.mindMap.richText.cacheEditingText=this.mindMap.richText.getEditText(),this.mindMap.richText.showTextEdit=!1):(this.cacheEditingText=this.getEditText(),this.showTextEdit=!1),this.show({node:this.currentNode,isFromScale:!0}))}showEditTextBox({node:e,rect:t,isInserting:n,isFromKeyDown:r,isFromScale:i}){if(this.showTextEdit)return;const{nodeTextEditZIndex:o,textAutoWrapWidth:a,selectTextOnEnterEditText:s}=this.mindMap.opt;if(i||this.mindMap.emit("before_show_text_edit"),this.registerTmpShortcut(),!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("click",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("mousedown",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("keydown",e=>{this.checkIsAutoEnterTextEditKey(e)&&e.stopPropagation()});const e=this.mindMap.opt.customInnerElsAppendTo||document.body;e.appendChild(this.textEditNode)}let l=this.mindMap.view.scale,c=e.style.merge("lineHeight"),u=e.style.merge("fontSize"),h=(this.cacheEditingText||e.getData("text")).split(/\n/gim).map(e=>Object(v["E"])(e)),d="true"===e._textData.node.attr("data-ismultiLine");e.style.domText(this.textEditNode,l,d),this.textEditNode.style.zIndex=o,this.textEditNode.innerHTML=h.join("
"),this.textEditNode.style.minWidth=t.width+10+"px",this.textEditNode.style.minHeight=t.height+6+"px",this.textEditNode.style.left=t.left+"px",this.textEditNode.style.top=t.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=a*l+"px",d&&1!==c&&(this.textEditNode.style.transform=`translateY(${-(c*u-u)/2*l}px)`),this.showTextEdit=!0,n||s&&!r?Object(v["Y"])(this.textEditNode):Object(v["q"])(this.textEditNode),this.cacheEditingText=""}getEditText(){return Object(v["y"])(this.textEditNode.innerHTML)}hideEditTextBox(){if(this.currentNode=null,this.mindMap.richText)return this.mindMap.richText.hideEditText();this.showTextEdit&&(this.renderer.activeNodeList.forEach(e=>{let t=this.getEditText();this.mindMap.execCommand("SET_NODE_TEXT",e,t),e.isGeneralization&&e.generalizationBelongNode.updateGeneralization(),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,this.renderer.activeNodeList),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.textEditNode.style.fontFamily="inherit",this.textEditNode.style.fontSize="inherit",this.textEditNode.style.fontWeight="normal",this.textEditNode.style.transform="translateY(0)",this.showTextEdit=!1)}}var Sh={paddingX:15,paddingY:5,imgMaxWidth:100,imgMaxHeight:100,iconSize:20,lineWidth:1,lineColor:"#549688",lineDasharray:"none",lineStyle:"straight",rootLineKeepSameInCurve:!0,generalizationLineWidth:1,generalizationLineColor:"#549688",generalizationLineMargin:0,generalizationNodeMargin:20,associativeLineWidth:2,associativeLineColor:"rgb(51, 51, 51)",associativeLineActiveWidth:8,associativeLineActiveColor:"rgba(2, 167, 240, 1)",associativeLineTextColor:"rgb(51, 51, 51)",associativeLineTextFontSize:14,associativeLineTextLineHeight:1.2,associativeLineTextFontFamily:"微软雅黑, Microsoft YaHei",backgroundColor:"#fafafa",backgroundImage:"none",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover",nodeUseLineStyle:!1,root:{shape:"rectangle",fillColor:"#549688",fontFamily:"微软雅黑, Microsoft YaHei",color:"#fff",fontSize:16,fontWeight:"bold",fontStyle:"normal",lineHeight:1.5,borderColor:"transparent",borderWidth:0,borderDasharray:"none",borderRadius:5,textDecoration:"none"},second:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none"},node:{shape:"rectangle",marginX:50,marginY:0,fillColor:"transparent",fontFamily:"微软雅黑, Microsoft YaHei",color:"#6a6d6c",fontSize:14,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"transparent",borderWidth:0,borderRadius:5,borderDasharray:"none",textDecoration:"none"},generalization:{shape:"rectangle",marginX:100,marginY:40,fillColor:"#fff",fontFamily:"微软雅黑, Microsoft YaHei",color:"#565656",fontSize:16,fontWeight:"noraml",fontStyle:"normal",lineHeight:1.5,borderColor:"#549688",borderWidth:1,borderDasharray:"none",borderRadius:5,textDecoration:"none"}};const Th=["lineWidth","lineColor","lineDasharray","lineStyle","generalizationLineWidth","generalizationLineColor","associativeLineWidth","associativeLineColor","associativeLineActiveWidth","associativeLineActiveColor","associativeLineTextColor","associativeLineTextFontSize","associativeLineTextLineHeight","associativeLineTextFontFamily","backgroundColor","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize","rootLineKeepSameInCurve"],Nh=e=>{let t=Object.keys(e);for(let n=0;ne===t[n]))return!1;return!0},Mh=["lineColor","lineDasharray","lineWidth"],Lh={[oo["a"].LAYOUT.LOGICAL_STRUCTURE]:hh,[oo["a"].LAYOUT.MIND_MAP]:fh,[oo["a"].LAYOUT.CATALOG_ORGANIZATION]:mh,[oo["a"].LAYOUT.ORGANIZATION_STRUCTURE]:vh,[oo["a"].LAYOUT.TIMELINE]:yh,[oo["a"].LAYOUT.TIMELINE2]:yh,[oo["a"].LAYOUT.VERTICAL_TIMELINE]:xh,[oo["a"].LAYOUT.FISHBONE]:Ch};class Oh{constructor(e={}){this.opt=e,this.mindMap=e.mindMap,this.themeConfig=this.mindMap.themeConfig,this.renderTree=po()({},this.mindMap.opt.data||{}),this.reRender=!1,this.isRendering=!1,this.hasWaitRendering=!1,this.waitRenderingParams=[],this.nodeCache={},this.lastNodeCache={},this.renderSource="",this.activeNodeList=[],this.root=null,this.textEdit=new Eh(this),this.lastBeingCopyData=null,this.beingCopyData=null,this.beingPasteText="",this.beingPasteImgSize=0,this.currentBeingPasteType="",this.highlightBoxNode=null,this.lastActiveNode=null,this.lastActiveNodeList=[],this.setLayout(),this.bindEvent(),this.registerCommands(),this.registerShortcutKeys()}setLayout(){this.layout=new(Lh[this.mindMap.opt.layout]?Lh[this.mindMap.opt.layout]:Lh[oo["a"].LAYOUT.LOGICAL_STRUCTURE])(this,this.mindMap.opt.layout)}setData(e){this.mindMap.richText?this.renderTree=this.mindMap.richText.handleSetData(e):this.renderTree=e}bindEvent(){this.mindMap.on("draw_click",e=>{this.clearActiveNodeListOnDrawClick(e,"click")}),this.mindMap.on("contextmenu",e=>{this.clearActiveNodeListOnDrawClick(e,"contextmenu")}),this.mindMap.svg.on("dblclick",()=>{this.mindMap.opt.enableDblclickBackToRootNode&&this.setRootNodeCenter()})}registerCommands(){this.selectAll=this.selectAll.bind(this),this.mindMap.command.add("SELECT_ALL",this.selectAll),this.back=this.back.bind(this),this.mindMap.command.add("BACK",this.back),this.forward=this.forward.bind(this),this.mindMap.command.add("FORWARD",this.forward),this.insertNode=this.insertNode.bind(this),this.mindMap.command.add("INSERT_NODE",this.insertNode),this.insertMultiNode=this.insertMultiNode.bind(this),this.mindMap.command.add("INSERT_MULTI_NODE",this.insertMultiNode),this.insertChildNode=this.insertChildNode.bind(this),this.mindMap.command.add("INSERT_CHILD_NODE",this.insertChildNode),this.insertMultiChildNode=this.insertMultiChildNode.bind(this),this.mindMap.command.add("INSERT_MULTI_CHILD_NODE",this.insertMultiChildNode),this.insertParentNode=this.insertParentNode.bind(this),this.mindMap.command.add("INSERT_PARENT_NODE",this.insertParentNode),this.upNode=this.upNode.bind(this),this.mindMap.command.add("UP_NODE",this.upNode),this.downNode=this.downNode.bind(this),this.mindMap.command.add("DOWN_NODE",this.downNode),this.insertAfter=this.insertAfter.bind(this),this.mindMap.command.add("INSERT_AFTER",this.insertAfter),this.insertBefore=this.insertBefore.bind(this),this.mindMap.command.add("INSERT_BEFORE",this.insertBefore),this.moveNodeTo=this.moveNodeTo.bind(this),this.mindMap.command.add("MOVE_NODE_TO",this.moveNodeTo),this.removeNode=this.removeNode.bind(this),this.mindMap.command.add("REMOVE_NODE",this.removeNode),this.removeCurrentNode=this.removeCurrentNode.bind(this),this.mindMap.command.add("REMOVE_CURRENT_NODE",this.removeCurrentNode),this.pasteNode=this.pasteNode.bind(this),this.mindMap.command.add("PASTE_NODE",this.pasteNode),this.cutNode=this.cutNode.bind(this),this.mindMap.command.add("CUT_NODE",this.cutNode),this.setNodeStyle=this.setNodeStyle.bind(this),this.mindMap.command.add("SET_NODE_STYLE",this.setNodeStyle),this.setNodeStyles=this.setNodeStyles.bind(this),this.mindMap.command.add("SET_NODE_STYLES",this.setNodeStyles),this.setNodeActive=this.setNodeActive.bind(this),this.mindMap.command.add("SET_NODE_ACTIVE",this.setNodeActive),this.clearActiveNode=this.clearActiveNode.bind(this),this.mindMap.command.add("CLEAR_ACTIVE_NODE",this.clearActiveNode),this.setNodeExpand=this.setNodeExpand.bind(this),this.mindMap.command.add("SET_NODE_EXPAND",this.setNodeExpand),this.expandAllNode=this.expandAllNode.bind(this),this.mindMap.command.add("EXPAND_ALL",this.expandAllNode),this.unexpandAllNode=this.unexpandAllNode.bind(this),this.mindMap.command.add("UNEXPAND_ALL",this.unexpandAllNode),this.expandToLevel=this.expandToLevel.bind(this),this.mindMap.command.add("UNEXPAND_TO_LEVEL",this.expandToLevel),this.setNodeData=this.setNodeData.bind(this),this.mindMap.command.add("SET_NODE_DATA",this.setNodeData),this.setNodeText=this.setNodeText.bind(this),this.mindMap.command.add("SET_NODE_TEXT",this.setNodeText),this.setNodeImage=this.setNodeImage.bind(this),this.mindMap.command.add("SET_NODE_IMAGE",this.setNodeImage),this.setNodeIcon=this.setNodeIcon.bind(this),this.mindMap.command.add("SET_NODE_ICON",this.setNodeIcon),this.setNodeHyperlink=this.setNodeHyperlink.bind(this),this.mindMap.command.add("SET_NODE_HYPERLINK",this.setNodeHyperlink),this.setNodeNote=this.setNodeNote.bind(this),this.mindMap.command.add("SET_NODE_NOTE",this.setNodeNote),this.setNodeTag=this.setNodeTag.bind(this),this.mindMap.command.add("SET_NODE_TAG",this.setNodeTag),this.insertFormula=this.insertFormula.bind(this),this.mindMap.command.add("INSERT_FORMULA",this.insertFormula),this.addGeneralization=this.addGeneralization.bind(this),this.mindMap.command.add("ADD_GENERALIZATION",this.addGeneralization),this.removeGeneralization=this.removeGeneralization.bind(this),this.mindMap.command.add("REMOVE_GENERALIZATION",this.removeGeneralization),this.setNodeCustomPosition=this.setNodeCustomPosition.bind(this),this.mindMap.command.add("SET_NODE_CUSTOM_POSITION",this.setNodeCustomPosition),this.resetLayout=this.resetLayout.bind(this),this.mindMap.command.add("RESET_LAYOUT",this.resetLayout),this.setNodeShape=this.setNodeShape.bind(this),this.mindMap.command.add("SET_NODE_SHAPE",this.setNodeShape),this.goTargetNode=this.goTargetNode.bind(this),this.mindMap.command.add("GO_TARGET_NODE",this.goTargetNode)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Tab",()=>{this.mindMap.execCommand("INSERT_CHILD_NODE")}),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.textEdit.showTextEdit||this.mindMap.execCommand("INSERT_NODE")}),this.mindMap.keyCommand.addShortcut("Shift+Tab",()=>{this.mindMap.execCommand("INSERT_PARENT_NODE")}),this.mindMap.keyCommand.addShortcut("Control+g",()=>{this.mindMap.execCommand("ADD_GENERALIZATION")}),this.toggleActiveExpand=this.toggleActiveExpand.bind(this),this.mindMap.keyCommand.addShortcut("/",this.toggleActiveExpand),this.mindMap.keyCommand.addShortcut("Del|Backspace",()=>{this.mindMap.execCommand("REMOVE_NODE")}),this.mindMap.keyCommand.addShortcut("Shift+Backspace",()=>{this.mindMap.execCommand("REMOVE_CURRENT_NODE")}),this.mindMap.on("before_show_text_edit",()=>{this.startTextEdit()}),this.mindMap.on("hide_text_edit",()=>{this.endTextEdit()}),this.mindMap.keyCommand.addShortcut("Control+a",()=>{this.mindMap.execCommand("SELECT_ALL")}),this.mindMap.keyCommand.addShortcut("Control+l",()=>{this.mindMap.execCommand("RESET_LAYOUT",this.resetLayout)}),this.mindMap.keyCommand.addShortcut("Control+Up",()=>{this.mindMap.execCommand("UP_NODE")}),this.mindMap.keyCommand.addShortcut("Control+Down",()=>{this.mindMap.execCommand("DOWN_NODE")}),this.mindMap.keyCommand.addShortcut("Control+c",()=>{this.copy()}),this.mindMap.keyCommand.addShortcut("Control+v",()=>{this.onPaste()}),this.mindMap.keyCommand.addShortcut("Control+x",()=>{this.cut()}),this.mindMap.keyCommand.addShortcut("Control+Enter",()=>{this.setRootNodeCenter()})}emitNodeActiveEvent(e=null,t=[...this.activeNodeList]){let n=!1;n=this.lastActiveNode!==e,n||(n=!Object(v["h"])(this.lastActiveNodeList,t)),n&&(this.lastActiveNode=e,this.lastActiveNodeList=[...t],this.mindMap.batchExecution.push("emitNodeActiveEvent",()=>{this.mindMap.emit("node_active",e,t)}))}clearActiveNodeListOnDrawClick(e,t){if(this.activeNodeList.length<=0)return;let n=!0;const{useLeftKeySelectionRightKeyDrag:r}=this.mindMap.opt;if("contextmenu"===t?!r:r){const t=this.mindMap.event.mousedownPos;n=Math.abs(e.clientX-t.x)<=5&&Math.abs(e.clientY-t.y)<=5}n&&this.mindMap.execCommand("CLEAR_ACTIVE_NODE")}startTextEdit(){this.mindMap.keyCommand.save()}endTextEdit(){this.mindMap.keyCommand.restore()}render(e=(()=>{}),t){if(this.isRendering)return this.hasWaitRendering=!0,void(this.waitRenderingParams=[e,t]);this.isRendering=!0,this.renderSource=t,this.lastNodeCache=this.nodeCache,this.nodeCache={},this.reRender&&this.clearActiveNodeList(),this.layout.doLayout(n=>{Object.keys(this.lastNodeCache).forEach(e=>{this.nodeCache[e]||(this.removeNodeFromActiveList(this.lastNodeCache[e]),this.emitNodeActiveEvent(),this.lastNodeCache[e].destroy())}),this.root=n,this.root.render(()=>{if(this.isRendering=!1,this.mindMap.emit("node_tree_render_end"),e&&e(),this.hasWaitRendering){const e=this.waitRenderingParams;this.hasWaitRendering=!1,this.waitRenderingParams=[],this.render(...e)}else this.mindMap.richText&&[oo["a"].CHANGE_THEME,oo["a"].SET_DATA].includes(t)&&this.mindMap.command.addHistory()})}),this.emitNodeActiveEvent()}clearActiveNode(){this.activeNodeList.length<=0||(this.clearActiveNodeList(),this.emitNodeActiveEvent(null,[]))}clearActiveNodeList(){this.activeNodeList.forEach(e=>{this.mindMap.execCommand("SET_NODE_ACTIVE",e,!1)}),this.activeNodeList=[]}addNodeToActiveList(e){const t=this.findActiveNodeIndex(e);-1===t&&(this.mindMap.execCommand("SET_NODE_ACTIVE",e,!0),this.activeNodeList.push(e))}removeNodeFromActiveList(e){let t=this.findActiveNodeIndex(e);-1!==t&&(this.mindMap.execCommand("SET_NODE_ACTIVE",e,!1),this.activeNodeList.splice(t,1))}findActiveNodeIndex(e){return Object(v["w"])(e,this.activeNodeList)}selectAll(){this.mindMap.opt.readonly||(Object(v["db"])(this.root,null,e=>{e.getData("isActive")||this.addNodeToActiveList(e)},null,!0,0,0),this.emitNodeActiveEvent())}back(e){this.backForward("back",e)}forward(e){this.backForward("forward",e)}backForward(e,t){this.mindMap.execCommand("CLEAR_ACTIVE_NODE");const n=this.mindMap.command[e](t);n&&(this.renderTree=n,this.mindMap.render())}getNewNodeBehavior(e=!1,t=!1){const{createNewNodeBehavior:n}=this.mindMap.opt;let r=!1,i=!1;switch(n){case oo["a"].CREATE_NEW_NODE_BEHAVIOR.DEFAULT:r=t||!e,i=!t&&e;break;case oo["a"].CREATE_NEW_NODE_BEHAVIOR.NOT_ACTIVE:r=!1,i=!1;break;case oo["a"].CREATE_NEW_NODE_BEHAVIOR.ACTIVE_ONLY:r=!0,i=!1;break;default:break}return{focusNewNode:r,inserting:i}}insertNode(e=!0,t=[],n=null,r=[]){if(t=Object(v["r"])(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:i,defaultInsertBelowSecondLevelNodeText:o}=this.mindMap.opt,a=t.length>0?t:this.activeNodeList,s=a.length>1,l=!!this.mindMap.richText,{focusNewNode:c,inserting:u}=this.getNewNodeBehavior(e,s),h={expand:!0,richText:l,resetRichText:l,isActive:c};r=Object(v["a"])(r,{...h}),a.forEach(e=>{if(e.isGeneralization||e.isRoot)return;const t=e.parent,a=1===e.layerIndex,s=a?i:o,l=Object(v["v"])(e),c={inserting:u,data:{text:s,...h,uid:Object(v["m"])(),...n||{}},children:[...Object(v["n"])(r,!0)]};t.nodeData.children.splice(l+1,0,c)}),c&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiNode(e,t){if(!t||t.length<=0)return;if(e=Object(v["r"])(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const n=e.length>0?e:this.activeNodeList,r=!!this.mindMap.richText,{focusNewNode:i}=this.getNewNodeBehavior(!1,!0),o={expand:!0,richText:r,resetRichText:r,isActive:i};t=Object(v["a"])(t,o),n.forEach(e=>{if(e.isGeneralization||e.isRoot)return;const n=e.parent,r=Object(v["v"])(e),i=Object(v["n"])(Object(v["ab"])(t),!0);n.nodeData.children.splice(r+1,0,...i)}),i&&this.clearActiveNodeList(),this.mindMap.render()}insertChildNode(e=!0,t=[],n=null,r=[]){if(t=Object(v["r"])(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:i,defaultInsertBelowSecondLevelNodeText:o}=this.mindMap.opt,a=t.length>0?t:this.activeNodeList,s=a.length>1,l=!!this.mindMap.richText,{focusNewNode:c,inserting:u}=this.getNewNodeBehavior(e,s),h={expand:!0,richText:l,resetRichText:l,isActive:c};r=Object(v["a"])(r,{...h}),a.forEach(e=>{if(e.isGeneralization)return;e.nodeData.children||(e.nodeData.children=[]);const t=e.isRoot?i:o,a={inserting:u,data:{text:t,uid:Object(v["m"])(),...h,...n||{}},children:[...Object(v["n"])(r,!0)]};e.nodeData.children.push(a),e.setData({expand:!0})}),c&&this.clearActiveNodeList(),this.mindMap.render()}insertMultiChildNode(e,t){if(!t||t.length<=0)return;if(e=Object(v["r"])(e),this.activeNodeList.length<=0&&e.length<=0)return;this.textEdit.hideEditTextBox();const n=e.length>0?e:this.activeNodeList,r=!!this.mindMap.richText,{focusNewNode:i}=this.getNewNodeBehavior(!1,!0),o={expand:!0,richText:r,resetRichText:r,isActive:i};t=Object(v["a"])(t,o),n.forEach(e=>{e.isGeneralization||(e.nodeData.children||(e.nodeData.children=[]),t=Object(v["n"])(t,!0),e.nodeData.children.push(...t),e.setData({expand:!0}))}),i&&this.clearActiveNodeList(),this.mindMap.render()}insertParentNode(e=!0,t,n){if(t=Object(v["r"])(t),this.activeNodeList.length<=0&&t.length<=0)return;this.textEdit.hideEditTextBox();const{defaultInsertSecondLevelNodeText:r,defaultInsertBelowSecondLevelNodeText:i}=this.mindMap.opt,o=t.length>0?t:this.activeNodeList,a=o.length>1,s=!!this.mindMap.richText,{focusNewNode:l,inserting:c}=this.getNewNodeBehavior(e,a),u={expand:!0,richText:s,resetRichText:s,isActive:l};o.forEach(e=>{if(e.isGeneralization||e.isRoot)return;const t=1===e.layerIndex?r:i,o={inserting:c,data:{text:t,uid:Object(v["m"])(),...u,...n||{}},children:[e.nodeData]},a=e.parent,s=Object(v["v"])(e);a.nodeData.children.splice(s,1,o)}),l&&this.clearActiveNodeList(),this.mindMap.render()}upNode(){if(this.activeNodeList.length<=0)return;let e=this.activeNodeList[0];if(e.isRoot)return;let t=e.parent,n=t.children,r=Object(v["w"])(e,n);if(-1===r||0===r)return;let i=r-1;n.splice(r,1),n.splice(i,0,e),t.nodeData.children.splice(r,1),t.nodeData.children.splice(i,0,e.nodeData),this.mindMap.render()}downNode(){if(this.activeNodeList.length<=0)return;let e=this.activeNodeList[0];if(e.isRoot)return;let t=e.parent,n=t.children,r=Object(v["w"])(e,n);if(-1===r||r===n.length-1)return;let i=r+1;n.splice(r,1),n.splice(i,0,e),t.nodeData.children.splice(r,1),t.nodeData.children.splice(i,0,e.nodeData),this.mindMap.render()}copy(){this.beingCopyData=this.copyNode(),Object(v["Z"])({simpleMindMap:!0,data:this.beingCopyData})}cut(){this.mindMap.execCommand("CUT_NODE",e=>{this.beingCopyData=e,Object(v["Z"])({simpleMindMap:!0,data:e})})}paste(){this.beingCopyData&&this.mindMap.execCommand("PASTE_NODE",this.beingCopyData)}async onPaste(){const{errorHandler:e,handleIsSplitByWrapOnPasteCreateNewNode:t}=this.mindMap.opt;let n=null,r=null;try{const e=await Object(v["t"])();n=e.text,r=e.img}catch(o){e(oo["b"].READ_CLIPBOARD_ERROR,o)}const i=r?r.size:0;if(this.beingPasteText===n&&this.beingPasteImgSize===i||(this.currentBeingPasteType=oo["a"].PASTE_TYPE.CLIP_BOARD,this.beingPasteText=n,this.beingPasteImgSize=i),this.lastBeingCopyData!==this.beingCopyData&&(this.lastBeingCopyData=this.beingCopyData,this.currentBeingPasteType=oo["a"].PASTE_TYPE.CANVAS),this.currentBeingPasteType===oo["a"].PASTE_TYPE.CLIP_BOARD){if(n){let r=null,i=!0;if(this.mindMap.opt.customHandleClipboardText)try{const e=await this.mindMap.opt.customHandleClipboardText(n);Object(v["I"])(e)||(i=!1,"object"===typeof e&&e.simpleMindMap?r=e.data:n=String(e))}catch(o){e(oo["b"].CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR,o)}if(i)try{const e=JSON.parse(n);e&&e.simpleMindMap&&(r=e.data)}catch(o){e(oo["b"].PARSE_PASTE_DATA_ERROR,o)}if(r)this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],Array.isArray(r)?r:[r]);else{n=Object(v["E"])(n);const e=n.split(new RegExp("\r?\n|(?!!e);e.length>1&&t?t().then(()=>{this.mindMap.execCommand("INSERT_MULTI_CHILD_NODE",[],e.map(e=>({data:{text:e},children:[]})))}).catch(()=>{this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:n})}):this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{text:n})}}if(r)try{let e=await Object(v["K"])(r);this.activeNodeList.length>0&&this.activeNodeList.forEach(t=>{this.mindMap.execCommand("SET_NODE_IMAGE",t,{url:e.url,title:"",width:e.size.width,height:e.size.height})})}catch(o){e(oo["b"].LOAD_CLIPBOARD_IMAGE_ERROR,o)}}else this.paste()}insertBefore(e,t){this.insertTo(e,t,"before")}insertAfter(e,t){this.insertTo(e,t,"after")}insertTo(e,t,n="before"){let r=Object(v["r"])(e);r=r.filter(e=>!e.isRoot),"after"===n&&r.reverse(),r.forEach(e=>{this.checkNodeLayerChange(e,t);let r=e.parent,i=r.children,o=Object(v["w"])(e,i);if(-1===o)return;i.splice(o,1),r.nodeData.children.splice(o,1);let a=t.parent,s=a.children,l=Object(v["w"])(t,s);-1!==l&&("after"===n&&l++,s.splice(l,0,e),a.nodeData.children.splice(l,0,e.nodeData))}),this.mindMap.render()}checkNodeLayerChange(e,t){if(this.mindMap.richText){let n=1===e.layerIndex&&1!==t.layerIndex||1!==e.layerIndex&&1===t.layerIndex;n&&e.setData({resetRichText:!0})}}removeNode(e=[]){if(e=Object(v["r"])(e),this.activeNodeList.length<=0&&e.length<=0)return;let t=null,n=e.length>0,r=n?e:this.activeNodeList,i=r.find(e=>e.isRoot);if(i)this.clearActiveNodeList(),i.children=[],i.nodeData.children=[];else{t=this.getNextActiveNode();for(let e=0;e0,r=n?e:this.activeNodeList;r=r.filter(e=>!e.isRoot);for(let i=0;i0?n[r-1]:t.parent}return e}copyNode(){if(this.activeNodeList.length<=0)return;const e=Object(v["A"])(this.activeNodeList);return e.map(e=>Object(v["k"])({},e,!0))}cutNode(e){if(this.activeNodeList.length<=0)return;const t=Object(v["A"])(this.activeNodeList).filter(e=>!e.isRoot),n=t.map(e=>Object(v["k"])({},e,!0));t.forEach(e=>{Object(v["S"])(e)}),this.clearActiveNodeList(),this.mindMap.render(),e&&"function"===typeof e&&e(n)}moveNodeTo(e,t){let n=Object(v["r"])(e);n=n.filter(e=>!e.isRoot),n.forEach(e=>{this.checkNodeLayerChange(e,t),this.removeNodeFromActiveList(e),Object(v["S"])(e),t.nodeData.children.push(e.nodeData)}),this.emitNodeActiveEvent(),this.mindMap.render()}pasteNode(e){e=Object(v["r"])(e),this.activeNodeList.length<=0||e.length<=0||(this.activeNodeList.forEach(t=>{t.nodeData.children.push(...e.map(e=>{const t=Object(v["ab"])(e);return Object(v["n"])([t],!0),t}))}),this.mindMap.render())}setNodeStyle(e,t,n){let r={[t]:n};this.mindMap.richText&&this.mindMap.richText.setNotActiveNodeStyle(e,{[t]:n}),this.setNodeDataRender(e,r),Mh.includes(t)&&(e.parent||e).renderLine(!0)}setNodeStyles(e,t){let n={...t};this.mindMap.richText&&this.mindMap.richText.setNotActiveNodeStyle(e,t),this.setNodeDataRender(e,n);let r=Object.keys(t),i=!1;r.forEach(e=>{Mh.includes(e)&&(i=!0)}),i&&(e.parent||e).renderLine(!0)}setNodeActive(e,t){this.mindMap.execCommand("SET_NODE_DATA",e,{isActive:t}),e.updateNodeByActive(t)}setNodeExpand(e,t){this.mindMap.execCommand("SET_NODE_DATA",e,{expand:t}),this.mindMap.render()}expandAllNode(){Object(v["db"])(this.renderTree,null,e=>{e.data.expand||(e.data.expand=!0)},null,!0,0,0),this.mindMap.render()}unexpandAllNode(){Object(v["db"])(this.renderTree,null,(e,t,n)=>{!n&&e.children&&e.children.length>0&&(e.data.expand=!1)},null,!0,0,0),this.mindMap.render(()=>{this.mindMap.view.reset()})}expandToLevel(e){Object(v["db"])(this.renderTree,null,(t,n,r,i)=>{const o=i0&&(t.data.expand=!1)},null,!0,0,0),this.mindMap.render()}toggleActiveExpand(){this.activeNodeList.forEach(e=>{e.nodeData.children.length<=0||this.toggleNodeExpand(e)})}toggleNodeExpand(e){this.mindMap.execCommand("SET_NODE_EXPAND",e,!e.getData("expand"))}setNodeText(e,t,n,r){this.setNodeDataRender(e,{text:t,richText:n,resetRichText:r})}setNodeImage(e,t){const{url:n,title:r,width:i,height:o,custom:a=!1}=t||{url:"",title:"",width:0,height:0,custom:!1};this.setNodeDataRender(e,{image:n,imageTitle:r||"",imageSize:{width:i,height:o,custom:a}})}setNodeIcon(e,t){this.setNodeDataRender(e,{icon:t})}setNodeHyperlink(e,t,n=""){this.setNodeDataRender(e,{hyperlink:t,hyperlinkTitle:n})}setNodeNote(e,t){this.setNodeDataRender(e,{note:t})}setNodeTag(e,t){this.setNodeDataRender(e,{tag:t})}insertFormula(e,t=[]){if(!this.mindMap.richText||!this.mindMap.formula)return;t=Object(v["r"])(t);const n=t.length>0?t:this.activeNodeList;n.forEach(t=>{this.mindMap.formula.insertFormulaToNode(t,e)})}addGeneralization(e){if(this.activeNodeList.length<=0)return;const t=this.activeNodeList.filter(e=>!e.isRoot&&!e.isGeneralization&&!e.checkHasSelfGeneralization()),n=Object(v["P"])(t);n.forEach(t=>{const n={...e||{text:this.mindMap.opt.defaultGeneralizationText},range:t.range||null};let r=t.node.getData("generalization");r?Array.isArray(r)?r.push(n):r=[r,n]:r=[n],this.mindMap.execCommand("SET_NODE_DATA",t.node,{generalization:r}),t.node.setData({expand:!0})}),this.mindMap.render(()=>{this.mindMap.render()})}removeGeneralization(){this.activeNodeList.length<=0||(this.activeNodeList.forEach(e=>{e.checkHasGeneralization()&&this.mindMap.execCommand("SET_NODE_DATA",e,{generalization:null})}),this.mindMap.render(),this.closeHighlightNode())}setNodeCustomPosition(e,t,n){let r=[e]||!1;r.forEach(e=>{this.mindMap.execCommand("SET_NODE_DATA",e,{customLeft:t,customTop:n})})}resetLayout(){Object(v["db"])(this.root,null,e=>{e.customLeft=void 0,e.customTop=void 0,this.mindMap.execCommand("SET_NODE_DATA",e,{customLeft:void 0,customTop:void 0}),this.mindMap.render()},null,!0,0,0)}setNodeShape(e,t){if(!t||!Kc.includes(t))return;let n=[e]||!1;n.forEach(e=>{this.setNodeStyle(e,"shape",t)})}goTargetNode(e,t=(()=>{})){let n="string"===typeof e?e:e.getData("uid");n&&this.expandToNodeUid(n,()=>{let e=this.findNodeByUid(n);e&&(e.active(),this.moveNodeToCenter(e),t())})}setNodeData(e,t){Object.keys(t).forEach(n=>{e.nodeData.data[n]=t[n]})}setNodeDataRender(e,t,n=!1){this.mindMap.execCommand("SET_NODE_DATA",e,t);let r=e.reRender();r?n||this.mindMap.render():this.mindMap.emit("node_tree_render_end")}moveNodeToCenter(e){let t=this.mindMap.width/2,n=this.mindMap.height/2,{left:r,top:i,width:o,height:a}=e,s=r+o/2,l=i+a/2,{state:c}=this.mindMap.view.getTransformData(),u=t-c.x,h=n-c.y,d=u-s,f=h-l;this.mindMap.view.translateX(d),this.mindMap.view.translateY(f),this.mindMap.view.setScale(1)}setRootNodeCenter(){this.moveNodeToCenter(this.root)}expandToNodeUid(e,t=(()=>{})){let n=[];const r={};Object(v["d"])(this.renderTree,(t,i)=>{if(t.data.uid===e)return n=i?[...r[i.data.uid],i]:[],"stop";r[t.data.uid]=i?[...r[i.data.uid],i]:[]});let i=!1;n.forEach(e=>{e.data.expand||(i=!0,e.data.expand=!0)}),i?this.mindMap.render(t):t()}findNodeByUid(e){let t=null;return Object(v["db"])(this.root,null,n=>{if(n.getData("uid")===e)return t=n,!0}),t}highlightNode(e,t){const{highlightNodeBoxStyle:n={}}=this.mindMap.opt;this.highlightBoxNode||(this.highlightBoxNode=(new Zl).stroke({color:n.stroke||"transparent"}).fill({color:n.fill||"transparent"}));let r=1/0,i=1/0,o=-1/0,a=-1/0;if(t){const n=e.children.slice(t[0],t[1]+1);n.forEach(e=>{e.lefto&&(o=t),n>a&&(a=n)})}else r=e.left,i=e.top,o=e.left+e.width,a=e.top+e.height;this.highlightBoxNode.plot([[r,i],[o,i],[o,a],[r,a]]),this.mindMap.otherDraw.add(this.highlightBoxNode)}closeHighlightNode(){this.highlightBoxNode.remove()}}var Dh=Oh,Ph=po()(Sh,{lineColor:"#333",backgroundColor:"#d1f6ec",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"#1fb27d"},second:{fillColor:"#fff",color:"#565656",borderColor:"transparent",borderWidth:0},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),Ih=po()(Sh,{lineColor:"rgb(115, 161, 191)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(115, 161, 191)"},second:{fillColor:"rgb(238, 243, 246)",color:"#333",borderColor:"rgb(115, 161, 191)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),Rh=po()(Sh,{lineColor:"rgb(191, 115, 148)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 115, 148)"},second:{fillColor:"rgb(246, 238, 242)",color:"#333",borderColor:"rgb(191, 115, 148)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),Fh=po()(Sh,{lineColor:"rgb(123, 115, 191)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(123, 115, 191)"},second:{fillColor:"rgb(239, 238, 246)",color:"#333",borderColor:"rgb(123, 115, 191)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),zh=po()(Sh,{lineColor:"rgb(191, 115, 115)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 115, 115)"},second:{fillColor:"rgb(246, 238, 238)",color:"#333",borderColor:"rgb(191, 115, 115)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),Bh=po()(Sh,{lineColor:"rgb(191, 147, 115)",backgroundColor:"rgb(251, 251, 251)",generalizationLineWidth:1,generalizationLineColor:"#333",root:{fillColor:"rgb(191, 147, 115)"},second:{fillColor:"rgb(246, 242, 238)",color:"#333",borderColor:"rgb(191, 147, 115)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"#333",color:"#333"}}),_h=po()(Sh,{lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(58, 65, 68)",backgroundImage:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAIAAAACDbGyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowQzg5QTQ0NDhENzgxMUUzOENGREE4QTg0RDgzRTZDNyIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDowQzg5QTQ0NThENzgxMUUzOENGREE4QTg0RDgzRTZDNyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkMwOEQ1NDRGOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkMwOEQ1NDUwOEQ3NzExRTM4Q0ZEQThBODREODNFNkM3Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+e9P33AAAACVJREFUeNpisXJ0YUACTAyoAMr/+eM7EGGRZ4FQ7BycEAZAgAEAHbEGtkoQm/wAAAAASUVORK5CYII=",backgroundRepeat:"repeat",backgroundSize:"auto",root:{fillColor:"rgb(233, 223, 152)",color:"#333",fontSize:24,borderRadius:21},second:{fillColor:"rgb(164, 197, 192)",borderColor:"transparent",color:"#333",fontSize:16,borderRadius:10},node:{fontSize:12,color:"#fff",fontWeight:"bold"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#333"}}),jh=po()(Sh,{lineColor:"rgb(51, 51, 51)",lineWidth:2,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",backgroundColor:"#fff",root:{fillColor:"rgb(18, 187, 55)",color:"#fff",fontSize:24,borderRadius:10},second:{fillColor:"rgb(241, 242, 241)",borderColor:"transparent",color:"#1a1a1a",fontSize:18,borderRadius:10},node:{fontSize:14,color:"#1a1a1a"},generalization:{fillColor:"#fff",borderColor:"rgb(51, 51, 51)",borderWidth:2,color:"#1a1a1a"}}),Hh=po()(Sh,{lineColor:"rgb(94, 202, 110)",lineWidth:2,generalizationLineWidth:3,generalizationLineColor:"#1a1a1a",backgroundColor:"rgb(241, 241, 241)",root:{fillColor:"rgb(255, 245, 214)",color:"#1a1a1a",fontSize:24,borderRadius:10,borderColor:"rgb(249, 199, 84)",borderWidth:1},second:{fillColor:"rgb(255, 245, 214)",borderColor:"rgb(249, 199, 84)",borderWidth:1,color:"#1a1a1a",fontSize:18,borderRadius:10},node:{fontSize:14,color:"#1a1a1a"},generalization:{fillColor:"#fff",borderColor:"#1a1a1a",color:"#1a1a1a",borderWidth:2}}),Uh=po()(Sh,{lineColor:"rgb(30, 53, 86)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(56, 123, 233)",backgroundColor:"rgb(241, 241, 241)",root:{fillColor:"rgb(30, 53, 86)",color:"#fff",fontSize:24,borderRadius:10,borderColor:"rgb(189, 197, 201)",borderWidth:2},second:{fillColor:"rgb(169, 218, 218)",borderColor:"rgb(30, 53, 86)",borderWidth:2,color:"#fff",fontSize:18,borderRadius:10},node:{fontSize:14,color:"rgb(30, 53, 86)",borderColor:"rgb(30, 53, 86)",borderWidth:1,marginY:20},generalization:{fillColor:"rgb(56, 123, 233)",borderColor:"rgb(56, 123, 233)",color:"#fff",borderWidth:0}}),qh=po()(Sh,{lineColor:"rgb(17, 68, 23)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"#fff",backgroundColor:"rgb(15, 16, 17)",root:{fillColor:"rgb(28, 178, 43)",color:"#fff",fontSize:24,borderRadius:10},second:{fillColor:"rgb(55, 56, 58)",color:"rgb(147,148,149)",fontSize:18,borderRadius:10,borderWidth:0},node:{fontSize:14,color:"rgb(147, 148, 149)"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#333"}}),Gh=po()(Sh,{lineColor:"rgb(123, 199, 120)",backgroundColor:"rgb(236, 245, 231)",generalizationLineWidth:2,generalizationLineColor:"rgb(123, 199, 120)",root:{fillColor:"rgb(253, 244, 217)",color:"#222"},second:{fillColor:"rgb(253, 244, 217)",color:"#222",borderColor:"rgb(242, 200, 104)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"rgb(123, 199, 120)",borderColor:"transparent",borderWidth:2,color:"#fff"}}),Wh=po()(Sh,{lineColor:"rgb(51, 51, 51)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(51, 51, 51)",backgroundColor:"rgb(239, 248, 250)",root:{fillColor:"rgb(255, 255, 255)",color:"#222"},second:{fillColor:"rgb(255, 255, 255)",color:"#222",borderColor:"rgb(255, 255, 255)",borderWidth:1,fontSize:14},node:{fontSize:12,color:"#333"},generalization:{fillColor:"#fff",borderColor:"rgb(51, 51, 51)",color:"#333"}}),Vh=po()(Sh,{lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#222",backgroundColor:"rgb(248, 215, 49)",root:{fillColor:"rgb(55, 165, 255)",borderColor:"rgb(51, 51, 51)",borderWidth:3},second:{fillColor:"rgb(255, 160, 36)",color:"#222",borderColor:"rgb(51, 51, 51)",borderWidth:3,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{borderColor:"#222",borderWidth:3,color:"#222"}}),Yh=po()(Sh,{lineColor:"rgb(166, 101, 106)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(255, 208, 211)",root:{fillColor:"rgb(139, 109, 225)",borderColor:"",borderWidth:0},second:{fillColor:"rgb(243, 104, 138)",color:"#fff",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"#222"}}),Zh=po()(Sh,{lineColor:"rgb(104, 204, 202)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(90, 206, 241)",backgroundColor:"rgb(239, 255, 255)",root:{fillColor:"rgb(0, 192, 184)",borderColor:"",borderWidth:0},second:{fillColor:"#fff",color:"#222",borderColor:"rgb(184, 235, 233)",borderWidth:2,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"rgb(90, 206, 241)",borderColor:"transparent",color:"#fff"}}),Kh=po()(Sh,{lineColor:"rgb(51, 56, 62)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(127, 93, 64)",backgroundColor:"#fff",root:{fillColor:"rgb(51, 56, 62)",color:"rgb(247, 208, 160)",borderColor:"",borderWidth:0},second:{fillColor:"rgb(239, 209, 176)",color:"rgb(81, 58, 42)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"rgb(127, 93, 64)",borderColor:"transparent",color:"rgb(255, 214, 175)"}}),Xh=po()(Sh,{lineColor:"rgb(254, 146, 0)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 222, 69)",backgroundColor:"rgb(255, 246, 243)",root:{fillColor:"rgb(255, 112, 52)",color:"#fff",borderColor:"",borderWidth:0},second:{fillColor:"#fff",color:"rgb(51, 51, 51)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"rgb(255, 222, 69)",borderColor:"transparent",color:"rgb(51, 51, 51)"}}),Jh=po()(Sh,{lineColor:"rgb(40, 193, 84)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(251, 158, 0)",backgroundColor:"rgb(238, 255, 243)",root:{fillColor:"rgb(25, 193, 73)",color:"#fff",borderColor:"",borderWidth:0},second:{fillColor:"#fff",color:"rgb(69, 149, 96)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"#222"},generalization:{fillColor:"#fff",borderColor:"rgb(251, 158, 0)",borderWidth:2,color:"rgb(51, 51, 51)"}}),Qh=po()(Sh,{lineColor:"rgb(75, 81, 78)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",backgroundColor:"rgb(27, 31, 34)",root:{fillColor:"rgb(36, 179, 96)",color:"#fff",borderColor:"",borderWidth:0},second:{fillColor:"rgb(254, 199, 13)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"rgb(204, 204, 204)"},generalization:{fillColor:"transparent",borderColor:"rgb(255, 119, 34)",borderWidth:2,color:"rgb(204, 204, 204)"}}),$h=po()(Sh,{lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",backgroundColor:"rgb(80, 156, 170)",root:{fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(65, 89, 158)"},second:{fillColor:"rgb(251, 227, 188)",color:"rgb(65, 89, 158)",borderColor:"",borderWidth:0,fontSize:14},node:{fontSize:12,color:"rgb(65, 89, 158)"},generalization:{fillColor:"#fff",borderColor:"transparent",color:"rgb(65, 89, 158)"}}),ed=po()(Sh,{lineColor:"rgb(34, 34, 34)",lineWidth:4,generalizationLineWidth:4,generalizationLineColor:"rgb(34, 34, 34)",root:{fillColor:"#fff",color:"rgb(34, 34, 34)",borderColor:"rgb(34, 34, 34)",borderWidth:3,fontSize:24},second:{fillColor:"rgb(241, 246, 248)",color:"rgb(34, 34, 34)",borderColor:"rgb(34, 34, 34)",borderWidth:3,fontSize:18},node:{fontSize:14,color:"rgb(34, 34, 34)"},generalization:{fontSize:14,fillColor:"transparent",borderColor:"rgb(34, 34, 34)",borderWidth:2,color:"rgb(34, 34, 34)"}}),td=po()(Sh,{lineColor:"rgb(113, 195, 169)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(113, 195, 169)",root:{fillColor:"rgb(16, 160, 121)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(240, 252, 249)",color:"rgb(50, 113, 96)",borderColor:"rgb(113, 195, 169)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(10, 59, 43)"},generalization:{fontSize:14,fillColor:"rgb(246, 238, 211)",borderColor:"",borderWidth:0,color:"rgb(173, 91, 12)"}}),nd=po()(Sh,{lineColor:"rgb(173, 123, 91)",lineWidth:4,generalizationLineWidth:4,generalizationLineColor:"rgb(173, 123, 91)",root:{fillColor:"rgb(202, 117, 79)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(245, 231, 216)",color:"rgb(125, 86, 42)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(96, 71, 47)"},generalization:{fontSize:14,fillColor:"rgb(255, 249, 239)",borderColor:"rgb(173, 123, 91)",borderWidth:2,color:"rgb(122, 83, 44)"}}),rd=po()(Sh,{backgroundColor:"rgb(255, 238, 228)",lineColor:"rgb(230, 138, 131)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(222, 101, 85)",root:{fillColor:"rgb(207, 44, 44)",color:"rgb(255, 233, 157)",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(255, 255, 255)",color:"rgb(211, 58, 21)",borderColor:"rgb(222, 101, 85)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(144, 71, 43)"},generalization:{fontSize:14,fillColor:"rgb(255, 247, 211)",borderColor:"rgb(255, 202, 162)",borderWidth:2,color:"rgb(187, 101, 69)"}}),id=po()(Sh,{backgroundColor:"rgb(27, 31, 34)",lineColor:"rgb(75, 81, 78)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",root:{fillColor:"rgb(36, 179, 96)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(254, 199, 13)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(204, 204, 204)"},generalization:{fontSize:14,fillColor:"rgb(27, 31, 34)",borderColor:"rgb(255, 119, 34)",borderWidth:2,color:"rgb(204, 204, 204)"}}),od=po()(Sh,{backgroundColor:"rgb(32, 37, 49)",lineColor:"rgb(137, 167, 196)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 119, 34)",root:{fillColor:"rgb(23, 153, 243)",color:"rgb(255, 255, 255)",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(70, 78, 94)",color:"rgb(209, 210, 210)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(204, 204, 204)"},generalization:{fontSize:14,fillColor:"rgb(255, 119, 34)",borderColor:"",borderWidth:2,color:"#fff"}}),ad=po()(Sh,{backgroundColor:"rgb(18, 20, 20)",lineColor:"rgb(205, 186, 156)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(245, 224, 191)",root:{fillColor:"rgb(255, 208, 124)",color:"rgb(111, 61, 6)",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(66, 57, 46)",color:"rgb(225, 201, 158)",borderColor:"rgb(245, 224, 191)",borderWidth:2,fontSize:18},node:{fontSize:14,color:"rgb(231, 203, 155)"},generalization:{fontSize:14,fillColor:"rgb(56, 45, 34)",borderColor:"rgb(104, 84, 61)",borderWidth:2,color:"rgb(242, 216, 176)"}}),sd=po()(Sh,{backgroundColor:"#e6f1de",lineColor:"#f5ffad",lineWidth:4,generalizationLineWidth:3,generalizationLineColor:"#749336",root:{fillColor:"#94c143",color:"#fff",borderColor:"#94c143",borderWidth:0,fontSize:24},second:{fillColor:"#cee498",color:"#749336",borderColor:"#aec668",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#749336"},generalization:{fontSize:14,fillColor:"#cee498",borderColor:"#aec668",borderWidth:2,color:"#749336"}}),ld=po()(Sh,{backgroundColor:"#fff2df",lineColor:"#b0bc47",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#b0bc47",root:{fillColor:"#e68112",color:"#fff",borderColor:"#e68112",borderWidth:0,fontSize:24},second:{fillColor:"#ffd683",color:"#8c5416",borderColor:"#b0bc47",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#8c5416"},generalization:{fontSize:14,fillColor:"#ffd683",borderColor:"#b0bc47",borderWidth:2,color:"#8c5416"}}),cd=po()(Sh,{backgroundColor:"#070616",lineColor:"#fff",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"#fff",root:{fillColor:"#ff6811",color:"#110501",borderColor:"#ff6811",borderWidth:0,fontSize:24},second:{fillColor:"#070616",color:"#a9a4a9",borderColor:"#ff6811",borderWidth:2,fontSize:18},node:{fontSize:14,color:"#a9a4a9"},generalization:{fontSize:14,fillColor:"",borderColor:"#ff6811",borderWidth:2,color:"#a9a4a9"}}),ud={default:Sh,freshGreen:Ph,blueSky:Ih,brainImpairedPink:Rh,romanticPurple:Fh,freshRed:zh,earthYellow:Bh,classic:_h,classic2:jh,classic3:Hh,classic4:Uh,dark:qh,classicGreen:Gh,classicBlue:Wh,minions:Vh,pinkGrape:Yh,mint:Zh,gold:Kh,vitalityOrange:Xh,greenLeaf:Jh,dark2:Qh,skyGreen:$h,simpleBlack:ed,courseGreen:td,coffee:nd,redSpirit:rd,blackHumour:id,lateNightOffice:od,blackGold:ad,avocado:sd,autumn:ld,orangeJuice:cd};const hd={Backspace:8,Tab:9,Enter:13,Shift:16,Control:17,Alt:18,CapsLock:20,Esc:27,Spacebar:32,PageUp:33,PageDown:34,End:35,Home:36,Insert:45,Left:37,Up:38,Right:39,Down:40,Del:46,NumLock:144,Cmd:91,CmdFF:224,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"`":192,"=":187,"-":189,"/":191,".":190};for(let RE=0;RE<=9;RE++)hd[RE]=RE+48;"abcdefghijklmnopqrstuvwxyz".split("").forEach((e,t)=>{hd[e]=t+65});const dd=hd;class fd{constructor(e){this.opt=e,this.mindMap=e.mindMap,this.shortcutMap={},this.shortcutMapCache={},this.isPause=!1,this.isInSvg=!1,this.bindEvent()}pause(){this.isPause=!0}recovery(){this.isPause=!1}save(){this.shortcutMapCache=this.shortcutMap,this.shortcutMap={}}restore(){this.shortcutMap=this.shortcutMapCache,this.shortcutMapCache={}}bindEvent(){this.onKeydown=this.onKeydown.bind(this),this.mindMap.on("svg_mouseenter",()=>{this.isInSvg=!0}),this.mindMap.on("svg_mouseleave",()=>{this.mindMap.richText&&this.mindMap.richText.showTextEdit||this.mindMap.renderer.textEdit.showTextEdit||this.mindMap.associativeLine&&this.mindMap.associativeLine.showTextEdit||(this.isInSvg=!1)}),window.addEventListener("keydown",this.onKeydown),this.mindMap.on("beforeDestroy",()=>{this.unBindEvent()})}unBindEvent(){window.removeEventListener("keydown",this.onKeydown)}onKeydown(e){this.isPause||this.mindMap.opt.enableShortcutOnlyWhenMouseInSvg&&!this.isInSvg||Object.keys(this.shortcutMap).forEach(t=>{this.checkKey(e,t)&&(this.checkKey(e,"Control+v")||(e.stopPropagation(),e.preventDefault()),this.shortcutMap[t].forEach(e=>{e()}))})}checkKey(e,t){let n=this.getOriginEventCodeArr(e),r=this.getKeyCodeArr(t);if(n.length!==r.length)return!1;for(let i=0;ie===n[i]);if(-1===e)return!1;r.splice(e,1)}return!0}getOriginEventCodeArr(e){let t=[];return(e.ctrlKey||e.metaKey)&&t.push(dd["Control"]),e.altKey&&t.push(dd["Alt"]),e.shiftKey&&t.push(dd["Shift"]),t.includes(e.keyCode)||t.push(e.keyCode),t}hasCombinationKey(e){return e.ctrlKey||e.metaKey||e.altKey||e.shiftKey}getKeyCodeArr(e){let t=e.split(/\s*\+\s*/),n=[];return t.forEach(e=>{n.push(dd[e])}),n}addShortcut(e,t){e.split(/\s*\|\s*/).forEach(e=>{this.shortcutMap[e]?this.shortcutMap[e].push(t):this.shortcutMap[e]=[t]})}removeShortcut(e,t){e.split(/\s*\|\s*/).forEach(e=>{if(this.shortcutMap[e])if(t){let n=this.shortcutMap[e].findIndex(e=>e===t);-1!==n&&this.shortcutMap[e].splice(n,1)}else this.shortcutMap[e]=[],delete this.shortcutMap[e]})}getShortcutFn(e){let t=[];return e.split(/\s*\|\s*/).forEach(e=>{t=this.shortcutMap[e]||[]}),t}}class pd{constructor(e={}){this.opt=e,this.mindMap=e.mindMap,this.commands={},this.history=[],this.activeHistoryIndex=0,this.registerShortcutKeys(),this.addHistory=Object(v["cb"])(this.addHistory,this.mindMap.opt.addHistoryTime,this)}clearHistory(){this.history=[],this.activeHistoryIndex=0,this.mindMap.emit("back_forward",0,0)}registerShortcutKeys(){this.mindMap.keyCommand.addShortcut("Control+z",()=>{this.mindMap.execCommand("BACK")}),this.mindMap.keyCommand.addShortcut("Control+y",()=>{this.mindMap.execCommand("FORWARD")})}exec(e,...t){if(this.commands[e]){if(this.commands[e].forEach(e=>{e(...t)}),["BACK","FORWARD","SET_NODE_ACTIVE","CLEAR_ACTIVE_NODE"].includes(e))return;this.addHistory()}}add(e,t){this.commands[e]?this.commands[e].push(t):this.commands[e]=[t]}remove(e,t){if(this.commands[e])if(t){let n=this.commands[e].find(e=>e===t);-1!==n&&this.commands[e].splice(n,1)}else this.commands[e]=[],delete this.commands[e]}addHistory(){if(this.mindMap.opt.readonly)return;let e=this.getCopyData();this.history.length>0&&JSON.stringify(this.history[this.history.length-1])===JSON.stringify(e)||(this.history=this.history.slice(0,this.activeHistoryIndex+1),this.history.push(Object(v["ab"])(e)),this.history.length>this.mindMap.opt.maxHistoryCount&&this.history.shift(),this.activeHistoryIndex=this.history.length-1,this.mindMap.emit("data_change",e),this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length))}back(e=1){if(!this.mindMap.opt.readonly&&this.activeHistoryIndex-e>=0){this.activeHistoryIndex-=e,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);let t=Object(v["ab"])(this.history[this.activeHistoryIndex]);return this.mindMap.emit("data_change",t),t}}forward(e=1){if(this.mindMap.opt.readonly)return;let t=this.history.length;if(this.activeHistoryIndex+e<=t-1){this.activeHistoryIndex+=e,this.mindMap.emit("back_forward",this.activeHistoryIndex,this.history.length);let t=Object(v["ab"])(this.history[this.activeHistoryIndex]);return this.mindMap.emit("data_change",t),t}}getCopyData(){return Object(v["l"])({},this.mindMap.renderer.renderTree,!0)}removeDataUid(e){e=Object(v["ab"])(e);let t=e=>{delete e.data.uid,e.children&&e.children.length>0&&e.children.forEach(e=>{t(e)})};return t(e),e}}var md=pd;class gd{constructor(){this.has={},this.queue=[],this.nextTick=Object(v["N"])(this.flush,this)}push(e,t){this.has[e]?this.replaceTask(e,t):(this.has[e]=!0,this.queue.push({name:e,fn:t}),this.nextTick())}replaceTask(e,t){const n=this.queue.findIndex(t=>t.name===e);-1!==n&&(this.queue[n]={name:e,fn:t})}flush(){let e=this.queue.slice(0);this.queue=[],e.forEach(({name:e,fn:t})=>{this.has[e]=!1,t()})}}var vd=gd;const bd={readonly:!1,layout:oo["a"].LAYOUT.LOGICAL_STRUCTURE,fishboneDeg:45,theme:"default",themeConfig:{},scaleRatio:.2,mouseScaleCenterUseMousePosition:!0,maxTag:5,expandBtnSize:20,imgTextMargin:5,textContentMargin:2,selectTranslateStep:3,selectTranslateLimit:20,customNoteContentShow:null,enableFreeDrag:!1,watermarkConfig:{text:"",lineSpacing:100,textSpacing:100,angle:30,textStyle:{color:"#999",opacity:.5,fontSize:14}},textAutoWrapWidth:500,customHandleMousewheel:null,mousewheelAction:oo["a"].MOUSE_WHEEL_ACTION.MOVE,mousewheelMoveStep:100,mousewheelZoomActionReverse:!0,defaultInsertSecondLevelNodeText:"二级节点",defaultInsertBelowSecondLevelNodeText:"分支主题",expandBtnStyle:{color:"#808080",fill:"#fff",fontSize:13,strokeColor:"#333333"},expandBtnIcon:{open:"",close:""},expandBtnNumHandler:e=>e,isShowExpandNum:!0,enableShortcutOnlyWhenMouseInSvg:!0,initRootNodePosition:null,exportPaddingX:10,exportPaddingY:10,nodeTextEditZIndex:3e3,nodeNoteTooltipZIndex:3e3,isEndNodeTextEditOnClickOuter:!0,maxHistoryCount:1e3,alwaysShowExpandBtn:!1,iconList:[],maxNodeCacheCount:1e3,defaultAssociativeLineText:"关联",fitPadding:50,enableCtrlKeyNodeSelection:!0,useLeftKeySelectionRightKeyDrag:!1,beforeTextEdit:null,isUseCustomNodeContent:!1,customCreateNodeContent:null,customInnerElsAppendTo:null,nodeDragPlaceholderMaxSize:20,enableAutoEnterTextEditWhenKeydown:!1,richTextEditFakeInPlace:!1,customHandleClipboardText:null,disableMouseWheelZoom:!1,disableTouchZoom:!1,errorHandler:(e,t)=>{console.error(e,t)},resetCss:"\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n ",enableDblclickBackToRootNode:!1,minExportImgCanvasScale:2,hoverRectColor:"rgb(94, 200, 248)",hoverRectPadding:2,selectTextOnEnterEditText:!1,deleteNodeActive:!0,autoMoveWhenMouseInEdgeOnDrag:!0,fit:!1,dragMultiNodeRectConfig:{width:40,height:20,fill:""},dragPlaceholderRectFill:"",dragOpacityConfig:{cloneNodeOpacity:.5,beingDragNodeOpacity:.3},tagsColorMap:{},cooperateStyle:{avatarSize:22,fontSize:12},associativeLineIsAlwaysAboveNode:!0,defaultGeneralizationText:"概要",handleIsSplitByWrapOnPasteCreateNewNode:null,addHistoryTime:100,isDisableDrag:!1,highlightNodeBoxStyle:{stroke:"rgb(94, 200, 248)",fill:"transparent"},createNewNodeBehavior:oo["a"].CREATE_NEW_NODE_BEHAVIOR.DEFAULT,defaultNodeImage:""};class yd{constructor(e={}){if(this.opt=this.handleOpt(po()(bd,e)),this.el=this.opt.el,!this.el)throw new Error("缺少容器元素el");this.getElRectInfo(),this.cssEl=null,this.addCss(),this.initContainer(),this.initTheme(),this.initCache(),this.event=new ho({mindMap:this}),this.keyCommand=new fd({mindMap:this}),this.command=new md({mindMap:this}),this.renderer=new Dh({mindMap:this}),this.view=new so({mindMap:this}),this.batchExecution=new vd,yd.pluginList.forEach(e=>{this.initPlugin(e)}),this.render(this.opt.fit?()=>this.view.fit():()=>{}),setTimeout(()=>{this.command.addHistory()},0)}handleOpt(e){return e.data=Object(v["ab"])(e.data||{}),oo["h"].includes(e.layout)||(e.layout=oo["a"].LAYOUT.LOGICAL_STRUCTURE),e.theme=e.theme&&ud[e.theme]?e.theme:"default",e}initContainer(){const{associativeLineIsAlwaysAboveNode:e}=this.opt,t=()=>{this.associativeLineDraw=this.draw.group(),this.associativeLineDraw.addClass("smm-associative-line-container")};this.svg=Yc().addTo(this.el).size(this.width,this.height),this.draw=this.svg.group(),this.draw.addClass("smm-container"),this.lineDraw=this.draw.group(),this.lineDraw.addClass("smm-line-container"),e||t(),this.nodeDraw=this.draw.group(),this.nodeDraw.addClass("smm-node-container"),e&&t(),this.otherDraw=this.draw.group(),this.otherDraw.addClass("smm-other-container")}clearDraw(){this.lineDraw.clear(),this.associativeLineDraw.clear(),this.nodeDraw.clear(),this.otherDraw.clear()}addCss(){this.cssEl=document.createElement("style"),this.cssEl.type="text/css",this.cssEl.innerHTML=oo["e"],document.head.appendChild(this.cssEl)}removeCss(){document.head.removeChild(this.cssEl)}render(e,t=""){this.batchExecution.push("render",()=>{this.initTheme(),this.renderer.reRender=!1,this.renderer.render(e,t)})}reRender(e,t=""){this.batchExecution.push("render",()=>{this.clearDraw(),this.initTheme(),this.renderer.reRender=!0,this.renderer.render(e,t)})}getElRectInfo(){if(this.elRect=this.el.getBoundingClientRect(),this.width=this.elRect.width,this.height=this.elRect.height,this.width<=0||this.height<=0)throw new Error("容器元素el的宽高不能为0")}resize(){this.getElRectInfo(),this.svg.size(this.width,this.height),this.emit("resize")}on(e,t){this.event.on(e,t)}emit(e,...t){this.event.emit(e,...t)}off(e,t){this.event.off(e,t)}initCache(){Object.keys(oo["d"]).forEach(e=>{let t=Object(v["B"])(oo["d"][e]),n="";switch(t){case"Boolean":n=!1;break;default:n=null;break}oo["d"][e]=n})}initTheme(){this.themeConfig=po()(ud[this.opt.theme],this.opt.themeConfig),bo.setBackgroundStyle(this.el,this.themeConfig)}setTheme(e,t=!1){this.execCommand("CLEAR_ACTIVE_NODE"),this.opt.theme=e,t||this.render(null,oo["a"].CHANGE_THEME),this.emit("view_theme_change",e)}getTheme(){return this.opt.theme}setThemeConfig(e,t=!1){const n=Object(v["x"])(this.themeConfig,e);if(this.opt.themeConfig=e,!t){let e=Nh(n);this.render(null,e?"":oo["a"].CHANGE_THEME)}}getCustomThemeConfig(){return this.opt.themeConfig}getThemeConfig(e){return void 0===e?this.themeConfig:this.themeConfig[e]}getConfig(e){return void 0===e?this.opt:this.opt[e]}updateConfig(e={}){this.opt=this.handleOpt(po.a.all([bd,this.opt,e]))}getLayout(){return this.opt.layout}setLayout(e,t=!1){oo["h"].includes(e)||(e=oo["a"].LAYOUT.LOGICAL_STRUCTURE),this.opt.layout=e,this.view.reset(),this.renderer.setLayout(),t||this.render(null,oo["a"].CHANGE_LAYOUT)}execCommand(...e){this.command.exec(...e)}setData(e){e=Object(v["ab"])(e||{}),this.execCommand("CLEAR_ACTIVE_NODE"),this.command.clearHistory(),this.command.addHistory(),this.renderer.setData(e),this.reRender(()=>{},oo["a"].SET_DATA),this.emit("set_data",e)}setFullData(e){e.root&&this.setData(e.root),e.layout&&this.setLayout(e.layout),e.theme&&(e.theme.template&&this.setTheme(e.theme.template),e.theme.config&&this.setThemeConfig(e.theme.config)),e.view&&this.view.setTransformData(e.view)}getData(e){let t=this.command.getCopyData(),n={};return n=e?{layout:this.getLayout(),root:t,theme:{template:this.getTheme(),config:this.getCustomThemeConfig()},view:this.view.getTransformData()}:t,Object(v["ab"])(n)}async export(...e){try{let t=await this.doExport.export(...e);return t}catch(t){this.opt.errorHandler(oo["b"].EXPORT_ERROR,t)}}toPos(e,t){return{x:e-this.elRect.left,y:t-this.elRect.top}}setMode(e){[oo["a"].MODE.READONLY,oo["a"].MODE.EDIT].includes(e)&&(this.opt.readonly=e===oo["a"].MODE.READONLY,this.opt.readonly&&this.execCommand("CLEAR_ACTIVE_NODE"),this.emit("mode_change",e))}getSvgData({paddingX:e=0,paddingY:t=0,ignoreWatermark:n=!1}={}){const r=this.svg,i=this.draw,o=r.width(),a=r.height(),s=i.transform(),l=this.elRect;i.scale(1/s.scaleX,1/s.scaleY);const c=i.rbox();c.width+=2*e,c.height+=2*t,i.translate(e,t),r.size(c.width,c.height),i.translate(-c.x+l.left,-c.y+l.top);let u=r.clone();!n&&(c.width>o||c.height>a)&&this.watermark&&this.watermark.hasWatermark()&&(this.width=c.width,this.height=c.height,this.watermark.draw(),u=r.clone(),this.width=o,this.height=a,this.watermark.draw()),u.add(Yc(``));const h=r.find("marker");if(h&&h.length>0){const e=h[0].attr("id");u.find("marker").forEach(t=>{t.attr("id",e)})}return r.size(o,a),i.transform(s),{svg:u,svgHTML:u.svg(),rect:{...c,ratio:c.width/c.height},origWidth:o,origHeight:a,scaleX:s.scaleX,scaleY:s.scaleY}}addPlugin(e,t){let n=yd.hasPlugin(e);-1===n&&(yd.usePlugin(e,t),this.initPlugin(e))}removePlugin(e){let t=yd.hasPlugin(e);-1!==t&&(yd.pluginList.splice(t,1),this[e.instanceName]&&(this[e.instanceName].beforePluginRemove&&this[e.instanceName].beforePluginRemove(),delete this[e.instanceName]))}initPlugin(e){this[e.instanceName]=new e({mindMap:this,pluginOpt:e.pluginOpt})}destroy(){this.emit("beforeDestroy"),this.renderer.textEdit.hideEditTextBox(),this.associativeLine&&this.associativeLine.hideEditTextBox(),[...yd.pluginList].forEach(e=>{this[e.instanceName]&&this[e.instanceName].beforePluginDestroy&&this[e.instanceName].beforePluginDestroy(),this[e.instanceName]=null}),this.event.unbind(),this.svg.remove(),bo.removeBackgroundStyle(this.el),this.el.innerHTML="",this.el=null,this.removeCss()}}yd.pluginList=[],yd.usePlugin=(e,t={})=>(-1!==yd.hasPlugin(e)||(e.pluginOpt=t,yd.pluginList.push(e)),yd),yd.hasPlugin=e=>yd.pluginList.findIndex(t=>t===e),yd.defineTheme=(e,t={})=>{if(ud[e])return new Error("该主题名称已存在");ud[e]=po()(Sh,t)};var wd=yd;class xd{constructor(e){this.mindMap=e.mindMap,this.isMousedown=!1,this.mousedownPos={x:0,y:0},this.startViewPos={x:0,y:0}}calculationMiniMap(e,t){let{svg:n,rect:r,origWidth:i,origHeight:o,scaleX:a,scaleY:s}=this.mindMap.getSvgData({ignoreWatermark:!0});const l=this.mindMap.elRect;r.x-=l.left,r.x2-=l.left,r.y-=l.top,r.y2-=l.top;let c=e/t,u=0,h=0;c>r.ratio?(h=t,u=r.ratio*h):(u=e,h=u/r.ratio);let d=u/r.width,f=(e-u)/2,p=(t-h)/2,m=r.x-(r.width*a-r.width)/2,g=r.x2+(r.width*a-r.width)/2,b=r.y-(r.height*s-r.height)/2,y=r.y2+(r.height*s-r.height)/2,w=r.width*a,x=r.height*s,k={left:0,top:0,right:0,bottom:0};k.left=Math.max(0,-m/w*u)+f,k.right=Math.max(0,(g-i)/w*u)+f,k.top=Math.max(0,-b/x*h)+p,k.bottom=Math.max(0,(y-o)/x*h)+p,k.top>p+h&&(k.top=p+h),k.left>f+u&&(k.left=f+u),Object.keys(k).forEach(e=>{k[e]=k[e]+"px"}),this.removeNodeContent(n);const A=n.svg();return{getImgUrl:async e=>{const t=new Blob([A],{type:"image/svg+xml"}),n=await Object(v["R"])(t);e(n)},svgHTML:A,viewBoxStyle:k,miniMapBoxScale:d,miniMapBoxLeft:f,miniMapBoxTop:p}}removeNodeContent(e){if(e.hasClass("smm-node")){let t=e.findOne(".smm-node-shape"),n=t.attr("fill");return(Object(v["J"])(n)||Object(v["H"])(n))&&t.attr("fill",Object(v["C"])(this.mindMap.themeConfig)),e.clear(),void e.add(t)}let t=e.children();t&&t.length>0&&t.forEach(e=>{this.removeNodeContent(e)})}onMousedown(e){this.isMousedown=!0,this.mousedownPos={x:e.clientX,y:e.clientY};let t=this.mindMap.view.getTransformData();this.startViewPos={x:t.state.x,y:t.state.y}}onMousemove(e,t=5){if(!this.isMousedown)return;let n=e.clientX-this.mousedownPos.x,r=e.clientY-this.mousedownPos.y;this.mindMap.view.translateXTo(n*t+this.startViewPos.x),this.mindMap.view.translateYTo(r*t+this.startViewPos.y)}onMouseup(){this.isMousedown=!1}}xd.instanceName="miniMap";var kd=xd;class Ad{constructor(e={}){this.mindMap=e.mindMap,this.lineSpacing=0,this.textSpacing=0,this.angle=0,this.text="",this.textStyle={},this.watermarkDraw=null,this.maxLong=this.getMaxLong(),this.updateWatermark(this.mindMap.opt.watermarkConfig||{}),this.bindEvent()}getMaxLong(){return Math.sqrt(Math.pow(this.mindMap.width,2)+Math.pow(this.mindMap.height,2))}bindEvent(){this.onResize=this.onResize.bind(this),this.mindMap.on("resize",this.onResize)}unBindEvent(){this.mindMap.off("resize",this.onResize)}onResize(){this.maxLong=this.getMaxLong(),this.draw()}createContainer(){this.watermarkDraw||(this.watermarkDraw=this.mindMap.svg.group().css({"pointer-events":"none","user-select":"none"}).addClass("smm-water-mark-container"))}removeContainer(){this.watermarkDraw&&(this.watermarkDraw.remove(),this.watermarkDraw=null)}hasWatermark(){return!!this.text.trim()}handleConfig({text:e,lineSpacing:t,textSpacing:n,angle:r,textStyle:i}){this.text=void 0===e?"":String(e).trim(),this.lineSpacing="number"===typeof t&&t>0?t:100,this.textSpacing="number"===typeof n&&n>0?n:100,this.angle="number"===typeof r&&r>=0&&r<=90?r:30,this.textStyle=Object.assign(this.textStyle,i||{})}draw(){if(this.watermarkDraw&&this.watermarkDraw.clear(),!this.hasWatermark())return void this.removeContainer();this.createContainer();let e=0;while(e{let n=this.textStyle[t];"color"===t?e.fill(n):e.css(Object(v["e"])(t),n)})}updateWatermark(e){this.mindMap.opt.watermarkConfig=po()(this.mindMap.opt.watermarkConfig,e),this.handleConfig(e),this.draw()}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Ad.instanceName="watermark";var Cd=Ad;class Ed{constructor(e){this.opt=e,this.mindMap=e.mindMap,this.onKeyup=this.onKeyup.bind(this),this.mindMap.keyCommand.addShortcut(oo["a"].KEY_DIR.LEFT,()=>{this.onKeyup(oo["a"].KEY_DIR.LEFT)}),this.mindMap.keyCommand.addShortcut(oo["a"].KEY_DIR.UP,()=>{this.onKeyup(oo["a"].KEY_DIR.UP)}),this.mindMap.keyCommand.addShortcut(oo["a"].KEY_DIR.RIGHT,()=>{this.onKeyup(oo["a"].KEY_DIR.RIGHT)}),this.mindMap.keyCommand.addShortcut(oo["a"].KEY_DIR.DOWN,()=>{this.onKeyup(oo["a"].KEY_DIR.DOWN)})}onKeyup(e){if(this.mindMap.renderer.activeNodeList.length>0)this.focus(e);else{let e=this.mindMap.renderer.root;this.mindMap.execCommand("GO_TARGET_NODE",e)}}focus(e){let t=this.mindMap.renderer.activeNodeList[0],n=this.getNodeRect(t),r=null,i=1/0,o=(e,t)=>{let o=this.getDistance(n,e);o{if(i.uid===e.uid)return;let o=this.getNodeRect(i),{left:a,top:s,right:l,bottom:c}=o,u=!1;n===oo["a"].KEY_DIR.LEFT?u=l<=t.left:n===oo["a"].KEY_DIR.RIGHT?u=a>=t.right:n===oo["a"].KEY_DIR.UP?u=c<=t.top:n===oo["a"].KEY_DIR.DOWN&&(u=s>=t.bottom),u&&r(o,i)})}getFocusNodeByShadowAlgorithm({currentActiveNode:e,currentActiveNodeRect:t,dir:n,checkNodeDis:r}){Object(v["d"])(this.mindMap.renderer.root,i=>{if(i.uid===e.uid)return;let o=this.getNodeRect(i),{left:a,top:s,right:l,bottom:c}=o,u=!1;n===oo["a"].KEY_DIR.LEFT?u=at.top:n===oo["a"].KEY_DIR.RIGHT?u=l>t.right&&st.top:n===oo["a"].KEY_DIR.UP?u=st.left:n===oo["a"].KEY_DIR.DOWN&&(u=c>t.bottom&&at.left),u&&r(o,i)})}getFocusNodeByAreaAlgorithm({currentActiveNode:e,currentActiveNodeRect:t,dir:n,checkNodeDis:r}){let i=(t.right+t.left)/2,o=(t.bottom+t.top)/2;Object(v["d"])(this.mindMap.renderer.root,t=>{if(t.uid===e.uid)return;let a=this.getNodeRect(t),{left:s,top:l,right:c,bottom:u}=a,h=(c+s)/2,d=(u+l)/2,f=h-i,p=d-o;if(0===f&&0===p)return;let m=!1;n===oo["a"].KEY_DIR.LEFT?m=f<=0&&f<=p&&f<=-p:n===oo["a"].KEY_DIR.RIGHT?m=f>0&&f>=-p&&f>=p:n===oo["a"].KEY_DIR.UP?m=p<=0&&p0&&-pf),m&&r(a,t)})}getNodeRect(e){let{scaleX:t,scaleY:n,translateX:r,translateY:i}=this.mindMap.draw.transform(),{left:o,top:a,width:s,height:l}=e;return{right:(o+s)*t+r,bottom:(a+l)*n+i,left:o*t+r,top:a*n+i}}getDistance(e,t){let n=this.getCenter(e),r=this.getCenter(t);return Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2))}getCenter({left:e,right:t,top:n,bottom:r}){return{x:(e+t)/2,y:(n+r)/2}}}Ed.instanceName="keyboardNavigation";var Sd=Ed,Td=n("fafe");class Nd{constructor(e){this.mindMap=e.mindMap}async pdf(e,t,n=!1){n?await this.multiPageExport(e,t):await this.onePageExport(e,t)}onePageExport(e,t){return new Promise((n,r)=>{let i=new Td["a"]({unit:"pt",format:"a4",compress:!0}),o=oo["c"].width/oo["c"].height,a=new Image;a.onload=()=>{let r,s,l=a.width,c=a.height,u=l/c;l<=oo["c"].width&&c<=oo["c"].height?(r=l,s=c):o>u?(r=u*oo["c"].height,s=oo["c"].height):(r=oo["c"].width,s=oo["c"].width/u),i.addImage(t,"PNG",(oo["c"].width-r)/2,(oo["c"].height-s)/2,r,s),i.save(e),n()},a.onerror=e=>{r(e)},a.src=t})}multiPageExport(e,t){return new Promise((n,r)=>{let i=new Image;i.onload=()=>{let r=i.width,o=i.height,a=r/oo["c"].width*oo["c"].height,s=o,l=0,c=oo["c"].width,u=oo["c"].width/r*o,h=new Td["a"]({unit:"pt",format:"a4",compress:!0});if(s0)h.addImage(t,"PNG",0,l,c,u),s-=a,l-=oo["c"].height,s>0&&h.addPage();h.save(e),n()},i.onerror=e=>{r(e)},i.src=t})}}Nd.instanceName="doExportPDF";var Md=Nd;class Ld{constructor(e){this.mindMap=e.mindMap}async xmind(e,t){const n=await St.transformToXmind(e,t);return n}getXmind(){return St}}Ld.instanceName="doExportXMind";var Od=Ld;const Dd=e=>{let t=String(e).split(/\s+/);return t.map(e=>{if(/^[\d.]+/.test(e)){let t=/^([\d.]+)(.*)$/.exec(e);return[Number(t[1]),t[2]]}return e})},Pd=(e,t)=>e*t,Id=(e,t)=>t/e,Rd={left:0,top:0,center:50,bottom:100,right:100},Fd=({backgroundSize:e,drawOpt:t,imageRatio:n,canvasWidth:r,canvasHeight:i,canvasRatio:o})=>{if(e){let a=Dd(e);if("auto"===a[0]&&"auto"===a[1])return;if("cover"===a[0])return void(n>o?(t.height=i,t.width=Pd(n,i)):(t.width=r,t.height=Id(n,r)));if("contain"===a[0])return void(n>o?(t.width=r,t.height=Id(n,r)):(t.height=i,t.width=Pd(n,i)));let s=-1;a[0]&&(Array.isArray(a[0])?"%"===a[0][1]?(t.width=a[0][0]/100*r,s=t.width):(t.width=a[0][0],s=a[0][0]):"auto"===a[0]&&a[1]&&("%"===a[1][1]?t.width=Pd(n,a[1][0]/100*i):t.width=Pd(n,a[1][0]))),a[1]&&Array.isArray(a[1])?"%"===a[1][1]?t.height=a[1][0]/100*i:t.height=a[1][0]:-1!==s&&(t.height=Id(n,s))}},zd=({backgroundPosition:e,drawOpt:t,imgWidth:n,imgHeight:r,canvasWidth:i,canvasHeight:o})=>{if(e){let a=Dd(e);if(a=a.map(e=>"string"===typeof e&&void 0!==Rd[e]?[Rd[e],"%"]:e),Array.isArray(a[0])){if(1===a.length&&a.push([50,"%"]),"%"===a[0][1]){let e=a[0][0]/100*i,r=a[0][0]/100*n;t.x=e-r}else t.x=a[0][0];if("%"===a[1][1]){let e=a[1][0]/100*o,n=a[1][0]/100*r;t.y=e-n}else t.y=a[1][0]}}},Bd=({ctx:e,image:t,backgroundRepeat:n,drawOpt:r,imgWidth:i,imgHeight:o,canvasWidth:a,canvasHeight:s})=>{if(n){let l=r.x,c=r.y,u=Math.ceil(l/i),h=Math.ceil(c/o),d=l-u*i,f=c-h*o,p=Dd(n);if("no-repeat"===p[0]||i>=a&&o>=s)return;if("repeat-x"===p[0]&&a>i){let n=d;while(no){let n=f;while(no){let i=f;while(i{e.drawImage(t,n.sx,n.sy,n.swidth,n.sheight,n.x,n.y,n.width,n.height)},jd=(e,t,n,r,{backgroundSize:i,backgroundPosition:o,backgroundRepeat:a},s=(()=>{}))=>{let l=t/n,c=new Image;c.src=r,c.onload=()=>{let r=c.width,u=c.height,h=r/u,d={sx:0,sy:0,swidth:r,sheight:u,x:0,y:0,width:r,height:u};Fd({backgroundSize:i,drawOpt:d,imageRatio:h,canvasWidth:t,canvasHeight:n,canvasRatio:l}),zd({backgroundPosition:o,drawOpt:d,imgWidth:d.width,imgHeight:d.height,imageRatio:h,canvasWidth:t,canvasHeight:n,canvasRatio:l});let f=Bd({ctx:e,image:c,backgroundRepeat:a,drawOpt:d,imgWidth:d.width,imgHeight:d.height,imageRatio:h,canvasWidth:t,canvasHeight:n,canvasRatio:l});f||_d(e,c,d),s()},c.onerror=e=>{s(e)}};var Hd=jd;class Ud{constructor(e){this.mindMap=e.mindMap}async export(e,t=!0,n="思维导图",...r){if(this[e]){const i=await this[e](n,...r);return t&&"pdf"!==e&&Object(v["p"])(i,n+"."+e),i}return null}createTransformImgTaskList(e,t,n,r){const i=e.find(t);return i.map(async e=>{const t=r(e);if(/^data:/.test(t)||"none"===t)return;const i=await Object(v["F"])(t);e.attr(n,i)})}async getSvgData(){let{exportPaddingX:e,exportPaddingY:t,errorHandler:n,resetCss:r}=this.mindMap.opt,{svg:i,svgHTML:o}=this.mindMap.getSvgData({paddingX:e,paddingY:t});const a=this.createTransformImgTaskList(i,"image","href",e=>e.attr("href")||e.attr("xlink:href")),s=this.createTransformImgTaskList(i,"img","src",e=>e.attr("src")),l=[...a,...s];try{await Promise.all(l)}catch(u){n(oo["b"].EXPORT_LOAD_IMAGE_ERROR,u)}let c;if(this.mindMap.richText){const e=i.find("foreignObject");e.length>0&&(e[0].add(Yc(``)),c=!0)}return(l.length>0||c)&&(o=i.svg()),{node:i,str:o}}svgToPng(e,t,n=(()=>!1),r){return new Promise((i,o)=>{const a=new Image;a.setAttribute("crossOrigin","anonymous"),a.onload=async()=>{try{const e=document.createElement("canvas"),o=Math.max(window.devicePixelRatio,this.mindMap.opt.minExportImgCanvasScale);let s=a.width,l=a.height;if(r){const e=Object(v["W"])(s,l,r.width,r.height);s=e[0],l=e[1]}const c=n(s,l);c?(e.width=l*o,e.height=s*o,e.style.width=l+"px",e.style.height=s+"px"):(e.width=s*o,e.height=l*o,e.style.width=s+"px",e.style.height=l+"px");const u=e.getContext("2d");u.scale(o,o),c&&(u.rotate(.5*Math.PI),u.translate(0,-l)),t||await this.drawBackgroundToCanvas(u,s,l),u.drawImage(a,0,0,s,l),i(e.toDataURL())}catch(e){o(e)}},a.onerror=e=>{o(e)},a.src=e})}drawBackgroundToCanvas(e,t,n){return new Promise((r,i)=>{const{backgroundColor:o="#fff",backgroundImage:a,backgroundRepeat:s="no-repeat",backgroundPosition:l="center center",backgroundSize:c="cover"}=this.mindMap.themeConfig;e.save(),e.rect(0,0,t,n),e.fillStyle=o,e.fill(),e.restore(),a&&"none"!==a?(e.save(),Hd(e,t,n,a,{backgroundRepeat:s,backgroundPosition:l,backgroundSize:c},t=>{t?i(t):r(),e.restore()})):r()})}drawBackgroundToSvg(e){return new Promise(async t=>{const{backgroundColor:n="#fff",backgroundImage:r,backgroundRepeat:i="repeat"}=this.mindMap.themeConfig;if(e.css("background-color",n),r&&"none"!==r){const n=await Object(v["F"])(r);e.css("background-image",`url(${n})`),e.css("background-repeat",i),t()}else t()})}async png(e,t=!1,n,r){const{str:i}=await this.getSvgData(),o=await this.fixSvgStrAndToBlob(i),a=await this.svgToPng(o,t,n,r);return a}async pdf(e,t,n){if(!this.mindMap.doExportPDF)throw new Error("请注册ExportPDF插件");const r=await this.png("",!1,(e,t)=>!(e<=oo["c"].width&&t&&oo["c"].height)&&e/t>1,{width:n||2*oo["c"].width});await this.mindMap.doExportPDF.pdf(e,r,t)}async xmind(e){if(!this.mindMap.doExportXMind)throw new Error("请注册ExportXMind插件");const t=this.mindMap.getData(),n=await this.mindMap.doExportXMind.xmind(t,e),r=await Object(v["R"])(n);return r}async svg(e){const{node:t}=await this.getSvgData();t.first().before(Yc(`${e}`)),await this.drawBackgroundToSvg(t);const n=t.svg(),r=await this.fixSvgStrAndToBlob(n);return r}async fixSvgStrAndToBlob(e){e=Object(v["T"])(e),e=Object(v["D"])(e);const t=new Blob([e],{type:"image/svg+xml"}),n=await Object(v["R"])(t);return n}async json(e,t=!0){const n=this.mindMap.getData(t),r=JSON.stringify(n),i=new Blob([r]),o=await Object(v["R"])(i);return o}async smm(e,t){const n=await this.json(e,t);return n}async md(){const e=this.mindMap.getData(),t=Ot(e),n=new Blob([t]),r=await Object(v["R"])(n);return r}}Ud.instanceName="doExport";var qd=Ud;n("a3df");class Gd extends ch{constructor({mindMap:e}){super(e.renderer),this.mindMap=e,this.reset(),this.bindEvent()}reset(){this.isDragging=!1,this.mousedownNode=null,this.beingDragNodeList=[],this.nodeList=[],this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.drawTransform=null,this.clone=null,this.placeholder=null,this.offsetX=0,this.offsetY=0,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.checkDragOffset=10,this.minOffset=10}bindEvent(){this.checkOverlapNode=Object(v["cb"])(this.checkOverlapNode,300,this),this.mindMap.on("node_mousedown",(e,t)=>{if(this.mindMap.opt.readonly||1!==t.which||e.isGeneralization||e.isRoot)return;t.preventDefault(),this.isMousedown=!0,this.mousedownNode=e;const{x:n,y:r}=this.mindMap.toPos(t.clientX,t.clientY);this.mouseDownX=n,this.mouseDownY=r}),this.mindMap.on("mousemove",e=>{if(this.mindMap.opt.readonly||!this.isMousedown)return;e.preventDefault();const{x:t,y:n}=this.mindMap.toPos(e.clientX,e.clientY);this.mouseMoveX=t,this.mouseMoveY=n,!this.isDragging&&Math.abs(t-this.mouseDownX)<=this.checkDragOffset&&Math.abs(n-this.mouseDownY)<=this.checkDragOffset||(this.mindMap.emit("node_dragging"),this.handleStartMove(),this.onMove(t,n,e))}),this.onMouseup=this.onMouseup.bind(this),this.mindMap.on("node_mouseup",this.onMouseup),this.mindMap.on("mouseup",this.onMouseup)}onMouseup(e){if(!this.isMousedown)return;this.isMousedown=!1,this.beingDragNodeList.forEach(e=>{e.setOpacity(1),e.showChildren(),e.endDrag()}),this.removeCloneNode();let t=this.overlapNode?this.overlapNode.getData("uid"):"",n=this.prevNode?this.prevNode.getData("uid"):"",r=this.nextNode?this.nextNode.getData("uid"):"";if(this.overlapNode)this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!1),this.mindMap.execCommand("MOVE_NODE_TO",this.beingDragNodeList,this.overlapNode);else if(this.prevNode)this.mindMap.execCommand("SET_NODE_ACTIVE",this.prevNode,!1),this.mindMap.execCommand("INSERT_AFTER",this.beingDragNodeList,this.prevNode);else if(this.nextNode)this.mindMap.execCommand("SET_NODE_ACTIVE",this.nextNode,!1),this.mindMap.execCommand("INSERT_BEFORE",this.beingDragNodeList,this.nextNode);else if(this.clone&&this.mindMap.opt.enableFreeDrag&&1===this.beingDragNodeList.length){let{x:t,y:n}=this.mindMap.toPos(e.clientX-this.offsetX,e.clientY-this.offsetY),{scaleX:r,scaleY:i,translateX:o,translateY:a}=this.drawTransform;t=(t-o)/r,n=(n-a)/i,this.mousedownNode.left=t,this.mousedownNode.top=n,this.mousedownNode.customLeft=t,this.mousedownNode.customTop=n,this.mindMap.execCommand("SET_NODE_CUSTOM_POSITION",this.mousedownNode,t,n),this.mindMap.render()}this.isDragging&&this.mindMap.emit("node_dragend",{overlapNodeUid:t,prevNodeUid:n,nextNodeUid:r}),this.reset()}onMove(e,t,n){if(!this.isMousedown)return;let{scaleX:r,scaleY:i,translateX:o,translateY:a}=this.drawTransform,s=e-this.offsetX,l=t-this.offsetY;e=(s-o)/r,t=(l-a)/i;let c=this.clone.transform();this.clone.translate(e-c.translateX,t-c.translateY),this.checkOverlapNode(),this.mindMap.opt.autoMoveWhenMouseInEdgeOnDrag&&this.mindMap.select&&(this.drawTransform=this.mindMap.draw.transform(),this.mindMap.select.clearAutoMoveTimer(),this.mindMap.select.onMove(n.clientX,n.clientY))}handleStartMove(){if(!this.isDragging){this.isDragging=!0;let e=this.mousedownNode;this.drawTransform=this.mindMap.draw.transform();let{scaleX:t,scaleY:n,translateX:r,translateY:i}=this.drawTransform;this.offsetX=this.mouseDownX-(e.left*t+r),this.offsetY=this.mouseDownY-(e.top*n+i),e.getData("isActive")?this.beingDragNodeList=Object(v["A"])(this.mindMap.renderer.activeNodeList.filter(e=>!e.isRoot&&!e.isGeneralization)):this.beingDragNodeList=[e],this.nodeTreeToList(),this.createCloneNode(),this.mindMap.execCommand("CLEAR_ACTIVE_NODE")}}nodeTreeToList(){const e=[];Object(v["d"])(this.mindMap.renderer.root,t=>{this.checkIsInBeingDragNodeList(t)||(e[t.layerIndex]||(e[t.layerIndex]=[]),e[t.layerIndex].push(t))}),this.nodeList=e.reduceRight((e,t)=>[...e,...t],[])}createCloneNode(){if(!this.clone){const{dragMultiNodeRectConfig:e,dragPlaceholderRectFill:t,dragOpacityConfig:n}=this.mindMap.opt,{width:r,height:i,fill:o}=e,a=this.beingDragNodeList[0],s=a.style.merge("lineColor",!0);if(this.beingDragNodeList.length>1)this.clone=this.mindMap.otherDraw.rect().size(r,i).radius(i/2).fill({color:o||s}),this.offsetX=r/2,this.offsetY=i/2;else{this.clone=a.group.clone();const e=this.clone.findOne(".smm-expand-btn");e&&e.remove(),this.mindMap.otherDraw.add(this.clone)}this.clone.opacity(n.cloneNodeOpacity),this.clone.css("z-index",99999),this.placeholder=this.mindMap.otherDraw.rect().fill({color:t||s}),this.beingDragNodeList.forEach(e=>{e.setOpacity(n.beingDragNodeOpacity),e.hideChildren(),e.startDrag()})}}removeCloneNode(){this.clone&&(this.clone.remove(),this.placeholder.remove())}checkOverlapNode(){this.drawTransform&&this.placeholder&&(this.overlapNode=null,this.prevNode=null,this.nextNode=null,this.placeholder.size(0,0),this.nodeList.forEach(e=>{if(e.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",e,!1),!(this.overlapNode||this.prevNode&&this.nextNode))switch(this.mindMap.opt.layout){case"logicalStructure":this.handleLogicalStructure(e);break;case"mindMap":this.handleMindMap(e);break;case"organizationStructure":this.handleOrganizationStructure(e);break;case"catalogOrganization":this.handleCatalogOrganization(e);break;case"timeline":this.handleTimeLine(e);break;case"timeline2":this.handleTimeLine2(e);break;case"verticalTimeline":this.handleLogicalStructure(e);break;case"fishbone":this.handleFishbone(e);break;default:this.handleLogicalStructure(e)}}),this.overlapNode&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0))}handleVerticalCheck(e,t,n=!1){let r=this.mouseMoveX,i=this.mouseMoveY,o=this.getNodeRect(e);n&&(t=t.reverse());let a=o.height/4,{prevBrotherOffset:s,nextBrotherOffset:l}=this.getNodeDistanceToSiblingNode(t,e,o,"v");if(o.left<=r&&o.right>=r){if(!this.overlapNode&&!this.prevNode&&!this.nextNode&&!e.isRoot){let t=l>0?i>o.bottom&&i<=o.bottom+l:i>=o.bottom-a&&i<=o.bottom,r=s>0?i=o.top-s:i>=o.top&&i<=o.top+a;if(t){n?this.nextNode=e:this.prevNode=e;let t=this.formatPlaceholderSize(l);this.setPlaceholderRect(e.width,t,o.originLeft,o.originBottom)}else if(r){n?this.prevNode=e:this.nextNode=e;let t=this.formatPlaceholderSize(s);this.setPlaceholderRect(e.width,t,o.originLeft,o.originTop-t)}}this.checkIsOverlap({node:e,dir:"v",prevBrotherOffset:s,nextBrotherOffset:l,size:a,pos:i,nodeRect:o})}}handleHorizontalCheck(e,t){let n=this.mouseMoveX,r=this.mouseMoveY,i=this.getNodeRect(e),o=i.width/4,{prevBrotherOffset:a,nextBrotherOffset:s}=this.getNodeDistanceToSiblingNode(t,e,i,"h");if(i.top<=r&&i.bottom>=r){if(!this.overlapNode&&!this.prevNode&&!this.nextNode&&!e.isRoot){let t=s>0?n=i.right:n<=i.right&&n>=i.right-o,r=a>0?n>i.left-a&&n<=i.left:n<=i.left+o&&n>=i.left;if(t){this.prevNode=e;let t=this.formatPlaceholderSize(s);this.setPlaceholderRect(t,e.height,i.originRight,i.originTop)}else if(r){this.nextNode=e;let t=this.formatPlaceholderSize(a);this.setPlaceholderRect(t,e.height,i.originLeft-t,i.originTop)}}this.checkIsOverlap({node:e,dir:"h",prevBrotherOffset:a,nextBrotherOffset:s,size:o,pos:n,nodeRect:i})}}getNodeDistanceToSiblingNode(e,t,n,r){let i="v"===r?"top":"left",o="v"===r?"bottom":"right",a=Object(v["w"])(t,e),s=null,l=null;-1!==a&&(a-1>=0&&(s=e[a-1]),a+1<=e.length-1&&(l=e[a+1]));let c=0;if(s){let e=this.getNodeRect(s);c=n[i]-e[o],c=c>=this.minOffset?c/2:0}else c=this.minOffset;let u=0;if(l){let e=this.getNodeRect(l);u=e[i]-n[o],u=u>=this.minOffset?u/2:0}else u=this.minOffset;return{prevBrotherOffset:c,nextBrotherOffset:u}}formatPlaceholderSize(e){const{nodeDragPlaceholderMaxSize:t}=this.mindMap.opt;return e>0?Math.min(e,t):5}setPlaceholderRect(e,t,n,r){this.placeholder.size(e,t).move(n,r)}checkIsOverlap({node:e,dir:t,prevBrotherOffset:n,nextBrotherOffset:r,size:i,pos:o,nodeRect:a}){let s="v"===t?"top":"left",l="v"===t?"bottom":"right";this.overlapNode||this.prevNode||this.nextNode||a[s]+(n>0?0:i)<=o&&a[l]-(r>0?0:i)>=o&&(this.overlapNode=e)}handleLogicalStructure(e){const t=this.commonGetNodeCheckList(e);this.handleVerticalCheck(e,t)}handleMindMap(e){const t=e.parent?e.parent.children.filter(t=>{let n=!0;return 1===e.layerIndex&&(n=t.dir===e.dir),n&&!this.checkIsInBeingDragNodeList(t)}):[];this.handleVerticalCheck(e,t)}handleOrganizationStructure(e){const t=this.commonGetNodeCheckList(e);this.handleHorizontalCheck(e,t)}handleCatalogOrganization(e){const t=this.commonGetNodeCheckList(e);1===e.layerIndex?this.handleHorizontalCheck(e,t):this.handleVerticalCheck(e,t)}handleTimeLine(e){let t=this.commonGetNodeCheckList(e);1===e.layerIndex?this.handleHorizontalCheck(e,t):this.handleVerticalCheck(e,t)}handleTimeLine2(e){let t=this.commonGetNodeCheckList(e);1===e.layerIndex?this.handleHorizontalCheck(e,t):"top"===e.dir&&2===e.layerIndex?this.handleVerticalCheck(e,t,!0):this.handleVerticalCheck(e,t)}handleFishbone(e){let t=e.parent?e.parent.children.filter(e=>e.layerIndex>1&&!this.checkIsInBeingDragNodeList(e)):[];1===e.layerIndex?this.handleHorizontalCheck(e,t):"top"===e.dir&&2===e.layerIndex?this.handleVerticalCheck(e,t,!0):this.handleVerticalCheck(e,t)}commonGetNodeCheckList(e){return e.parent?[...e.parent.children].filter(e=>!this.checkIsInBeingDragNodeList(e)):[]}getNodeRect(e){let{scaleX:t,scaleY:n,translateX:r,translateY:i}=this.drawTransform,{left:o,top:a,width:s,height:l}=e,c=o,u=a,h=a+l,d=o+s,f=(o+s)*t+r,p=(a+l)*n+i;return o=o*t+r,a=a*n+i,{width:s,height:l,left:o,top:a,right:f,bottom:p,originLeft:c,originTop:u,originBottom:h,originRight:d}}checkIsInBeingDragNodeList(e){return!!this.beingDragNodeList.find(t=>t.uid===e.uid||t.isAncestor(e))}}Gd.instanceName="drag";var Wd=Gd;class Vd{constructor({mindMap:e}){this.mindMap=e,this.rect=null,this.isMousedown=!1,this.mouseDownX=0,this.mouseDownY=0,this.mouseMoveX=0,this.mouseMoveY=0,this.isSelecting=!1,this.cacheActiveList=[],this.bindEvent()}bindEvent(){this.checkInNodes=Object(v["cb"])(this.checkInNodes,300,this),this.mindMap.on("mousedown",e=>{if(this.mindMap.opt.readonly)return;let{useLeftKeySelectionRightKeyDrag:t}=this.mindMap.opt;if(!e.ctrlKey&&(t?1!==e.which:3!==e.which))return;e.preventDefault(),this.isMousedown=!0,this.cacheActiveList=[...this.mindMap.renderer.activeNodeList];let{x:n,y:r}=this.mindMap.toPos(e.clientX,e.clientY);this.mouseDownX=n,this.mouseDownY=r,this.createRect(n,r)}),this.mindMap.on("mousemove",e=>{if(this.mindMap.opt.readonly)return;if(!this.isMousedown)return;let{x:t,y:n}=this.mindMap.toPos(e.clientX,e.clientY);this.mouseMoveX=t,this.mouseMoveY=n,Math.abs(t-this.mouseDownX)<=10&&Math.abs(n-this.mouseDownY)<=10||(this.clearAutoMoveTimer(),this.onMove(e.clientX,e.clientY,()=>{this.isSelecting=!0,this.rect.plot([[this.mouseDownX,this.mouseDownY],[this.mouseMoveX,this.mouseDownY],[this.mouseMoveX,this.mouseMoveY],[this.mouseDownX,this.mouseMoveY]]),this.checkInNodes()},(e,t)=>{switch(e){case"left":this.mouseDownX+=t;break;case"top":this.mouseDownY+=t;break;case"right":this.mouseDownX-=t;break;case"bottom":this.mouseDownY-=t;break;default:break}}))}),this.onMouseup=this.onMouseup.bind(this),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_mouseup",this.onMouseup)}onMouseup(){this.mindMap.opt.readonly||this.isMousedown&&(this.checkTriggerNodeActiveEvent(),clearTimeout(this.autoMoveTimer),this.isMousedown=!1,this.cacheActiveList=[],this.rect&&this.rect.remove(),this.rect=null,setTimeout(()=>{this.isSelecting=!1},0))}checkTriggerNodeActiveEvent(){let e=this.cacheActiveList.length!==this.mindMap.renderer.activeNodeList.length,t=!1;if(!e)for(let n=0;nt.getData("uid")===e.getData("uid"))){t=!0;break}}(e||t)&&this.mindMap.renderer.emitNodeActiveEvent()}onMove(e,t,n=(()=>{}),r=(()=>{})){n();let i=this.mindMap.opt.selectTranslateStep,o=this.mindMap.opt.selectTranslateLimit,a=0;e<=this.mindMap.elRect.left+o&&(r("left",i),this.mindMap.view.translateX(i),a++),e>=this.mindMap.elRect.right-o&&(r("right",i),this.mindMap.view.translateX(-i),a++),t<=this.mindMap.elRect.top+o&&(r("top",i),this.mindMap.view.translateY(i),a++),t>=this.mindMap.elRect.bottom-o&&(r("bottom",i),this.mindMap.view.translateY(-i),a++),a>0&&this.startAutoMove(e,t,n,r)}startAutoMove(e,t,n,r){this.autoMoveTimer=setTimeout(()=>{this.onMove(e,t,n,r)},20)}clearAutoMoveTimer(){clearTimeout(this.autoMoveTimer)}createRect(e,t){this.rect&&this.rect.remove(),this.rect=this.mindMap.svg.polygon().stroke({color:"#0984e3"}).fill({color:"rgba(9,132,227,0.3)"}).plot([[e,t]])}checkInNodes(){let{scaleX:e,scaleY:t,translateX:n,translateY:r}=this.mindMap.draw.transform(),i=Math.min(this.mouseDownX,this.mouseMoveX),o=Math.min(this.mouseDownY,this.mouseMoveY),a=Math.max(this.mouseDownX,this.mouseMoveX),s=Math.max(this.mouseDownY,this.mouseMoveY);Object(v["d"])(this.mindMap.renderer.root,l=>{let{left:c,top:u,width:h,height:d}=l,f=(c+h)*e+n,p=(u+d)*t+r;if(c=c*e+n,u=u*t+r,Object(v["j"])(i,a,o,s,c,f,u,p)){if(l.getData("isActive"))return;this.mindMap.renderer.addNodeToActiveList(l)}else if(l.getData("isActive")){if(!l.getData("isActive"))return;this.mindMap.renderer.removeNodeFromActiveList(l)}})}hasSelectRange(){return this.isSelecting}}Vd.instanceName="select";var Yd=Vd,Zd=n("4f98"),Kd=n.n(Zd),Xd=n("a872"),Jd=n.n(Xd);n("5ba9");let Qd=!1,$d=["宋体, SimSun, Songti SC","微软雅黑, Microsoft YaHei","楷体, 楷体_GB2312, SimKai, STKaiti","黑体, SimHei, Heiti SC","隶书, SimLi","andale mono","arial, helvetica, sans-serif","arial black, avant garde","comic sans ms","impact, chicago","times new roman","sans-serif","serif"],ef=new Array(100).fill(0).map((e,t)=>t+"px");class tf{constructor({mindMap:e,pluginOpt:t}){this.mindMap=e,this.pluginOpt=t,this.textEditNode=null,this.showTextEdit=!1,this.quill=null,this.range=null,this.lastRange=null,this.pasteUseRange=null,this.node=null,this.isInserting=!1,this.styleEl=null,this.cacheEditingText="",this.lostStyle=!1,this.isCompositing=!1,this.initOpt(),this.extendQuill(),this.appendCss(),this.bindEvent(),this.mindMap.opt.data&&(this.mindMap.opt.data=this.handleSetData(this.mindMap.opt.data))}bindEvent(){this.onCompositionStart=this.onCompositionStart.bind(this),this.onCompositionEnd=this.onCompositionEnd.bind(this),window.addEventListener("compositionstart",this.onCompositionStart),window.addEventListener("compositionend",this.onCompositionEnd)}unbindEvent(){window.removeEventListener("compositionstart",this.onCompositionStart),window.removeEventListener("compositionend",this.onCompositionEnd)}appendCss(){let e="\n .ql-editor {\n overflow: hidden;\n padding: 0;\n height: auto;\n line-height: normal;\n -webkit-user-select: text;\n }\n \n .ql-container {\n height: auto;\n font-size: inherit;\n }\n\n .ql-container.ql-snow {\n border: none;\n }\n\n .smm-richtext-node-wrap p {\n font-family: auto;\n }\n\n .smm-richtext-node-edit-wrap p {\n font-family: auto;\n }\n ";this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.innerHTML=e,document.head.appendChild(this.styleEl)}initOpt(){this.pluginOpt.fontFamilyList&&Array.isArray(this.pluginOpt.fontFamilyList)&&($d=this.pluginOpt.fontFamilyList),this.pluginOpt.fontSizeList&&Array.isArray(this.pluginOpt.fontSizeList)&&(ef=this.pluginOpt.fontSizeList)}extendQuill(){if(Qd)return;Qd=!0;const e=Kd.a.import("attributors/class/font");e.whitelist=$d,Kd.a.register(e,!0);const t=Kd.a.import("attributors/style/font");t.whitelist=$d,Kd.a.register(t,!0);const n=Kd.a.import("attributors/class/size");n.whitelist=ef,Kd.a.register(n,!0);const r=Kd.a.import("attributors/style/size");r.whitelist=ef,Kd.a.register(r,!0)}showEditText({node:e,rect:t,isInserting:n,isFromKeyDown:r,isFromScale:i}){if(this.showTextEdit)return;const{richTextEditFakeInPlace:o,customInnerElsAppendTo:a,nodeTextEditZIndex:s,textAutoWrapWidth:l,selectTextOnEnterEditText:c}=this.mindMap.opt;this.node=e,this.isInserting=n,t||(t=e._textData.node.node.getBoundingClientRect()),i||this.mindMap.emit("before_show_text_edit"),this.mindMap.renderer.textEdit.registerTmpShortcut();let u=e._textData.node,h=u.attr("data-width"),d=u.attr("data-height"),f=t.width/h,p=t.height/d,m=6,g=4;if(o){let t=e.getPaddingVale();m=t.paddingX,g=t.paddingY}if(!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.classList.add("smm-richtext-node-edit-wrap"),this.textEditNode.style.cssText=`\n position:fixed; \n box-sizing: border-box; \n box-shadow: 0 0 20px rgba(0,0,0,.5);\n outline: none; \n word-break: \n break-all;padding: ${g}px ${m}px;\n `,this.textEditNode.addEventListener("click",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("mousedown",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("keydown",e=>{this.mindMap.renderer.textEdit.checkIsAutoEnterTextEditKey(e)&&e.stopPropagation()});const e=a||document.body;e.appendChild(this.textEditNode)}let b=e.style.merge("fillColor"),y=e.style.merge("color");this.textEditNode.style.marginLeft=`-${m*f}px`,this.textEditNode.style.marginTop=`-${g*p}px`,this.textEditNode.style.zIndex=s,this.textEditNode.style.backgroundColor="transparent"===b?Object(v["J"])(y)?Object(v["C"])(this.mindMap.themeConfig):"#fff":b,this.textEditNode.style.minWidth=h+2*m+"px",this.textEditNode.style.minHeight=d+"px",this.textEditNode.style.left=t.left+"px",this.textEditNode.style.top=t.top+"px",this.textEditNode.style.display="block",this.textEditNode.style.maxWidth=l+2*m+"px",this.textEditNode.style.transform=`scale(${f}, ${p})`,this.textEditNode.style.transformOrigin="left top",o&&(this.textEditNode.style.borderRadius=(e.style.merge("borderRadius")||5)+"px","roundedRectangle"==e.style.merge("shape")&&(this.textEditNode.style.borderRadius=(e.height||50)+"px"));const w=e.getData("text"),x=Object(v["I"])(w),k=!e.getData("richText")&&!x;if(x&&(this.lostStyle=!0),k){let e=String(w).split(/\n/gim).join("
"),t=`

${e}

`;this.textEditNode.innerHTML=this.cacheEditingText||t}else this.textEditNode.innerHTML=this.cacheEditingText||w;this.initQuillEditor(),document.querySelector(".ql-editor").style.minHeight=d+"px",this.showTextEdit=!0,this.focus(n||c&&!r?0:null),k&&this.setTextStyleIfNotRichText(e),this.cacheEditingText=""}setTextStyleIfNotRichText(e){let t={font:e.style.merge("fontFamily"),color:e.style.merge("color"),italic:"italic"===e.style.merge("fontStyle"),bold:"bold"===e.style.merge("fontWeight"),size:e.style.merge("fontSize")+"px",underline:"underline"===e.style.merge("textDecoration"),strike:"line-through"===e.style.merge("textDecoration")};this.pureFormatAllText(t)}getEditText(){let e=this.quill.container.firstChild.innerHTML;return e.replace(/


<\/p>$/,"")}hideEditText(e){if(!this.showTextEdit)return;let t=this.getEditText(),n=e&&e.length>0?e:this.mindMap.renderer.activeNodeList;n.forEach(e=>{this.mindMap.execCommand("SET_NODE_TEXT",e,t,!0),e.isGeneralization&&e.generalizationBelongNode.updateGeneralization(),this.mindMap.render()}),this.mindMap.emit("hide_text_edit",this.textEditNode,n),this.textEditNode.style.display="none",this.showTextEdit=!1,this.mindMap.emit("rich_text_selection_change",!1),this.node=null,this.isInserting=!1}initQuillEditor(){this.quill=new Kd.a(this.textEditNode,{modules:{toolbar:!1,keyboard:{bindings:{enter:{key:13,handler:function(){}},tab:{key:9,handler:function(){}}}}},theme:"snow"}),this.quill.on("selection-change",e=>{if(!this.isInserting&&(this.lastRange=this.range,this.range=null,e)){this.pasteUseRange=e;let t=this.quill.getBounds(e.index,e.length),n=this.textEditNode.getBoundingClientRect(),r={left:t.left+n.left,top:t.top+n.top,right:t.right+n.left,bottom:t.bottom+n.top,width:t.width},i=this.quill.getFormat(e.index,e.length),o=!1;0==e.length?o=!1:(this.range=e,o=!0),this.mindMap.emit("rich_text_selection_change",o,r,i)}}),this.quill.on("text-change",()=>{let e=this.quill.getContents(),t=e.ops.length;t<=0||1===t&&"\n"===e.ops[0].insert?(this.lostStyle=!0,this.syncFormatToNodeConfig(null,!0)):this.lostStyle&&!this.isCompositing&&(this.setTextStyleIfNotRichText(this.node),this.lostStyle=!1)}),this.quill.clipboard.addMatcher(Node.TEXT_NODE,e=>{let t=this.getPasteTextStyle();return(new Jd.a).insert(e.data,t)}),this.quill.clipboard.addMatcher(Node.ELEMENT_NODE,(e,t)=>{let n=[],r=this.getPasteTextStyle();return t.ops.forEach(e=>{e.insert&&"string"===typeof e.insert&&"\n"!==e.insert&&n.push({attributes:{...r},insert:e.insert})}),t.ops=n,t})}getPasteTextStyle(){return this.pasteUseRange?this.quill.getFormat(this.pasteUseRange.index,this.pasteUseRange.length):{}}onCompositionStart(){this.showTextEdit&&(this.isCompositing=!0)}onCompositionEnd(){this.showTextEdit&&(this.isCompositing=!1,this.lostStyle&&this.setTextStyleIfNotRichText(this.node))}selectAll(){this.quill.setSelection(0,this.quill.getLength())}focus(e){let t=this.quill.getLength();this.quill.setSelection("number"===typeof e?e:t,t)}formatText(e={},t=!1){if(!this.range&&!this.lastRange)return;this.syncFormatToNodeConfig(e,t);let n=!this.range,r=n?this.lastRange:this.range;t?this.quill.removeFormat(r.index,r.length):this.quill.formatText(r.index,r.length,e),n&&this.quill.setSelection(this.lastRange.index,this.lastRange.length)}removeFormat(){this.formatText({},!0)}formatRangeText(e,t={}){e&&(this.syncFormatToNodeConfig(t),this.quill.formatText(e.index,e.length,t))}formatAllText(e={}){this.syncFormatToNodeConfig(e),this.pureFormatAllText(e)}pureFormatAllText(e={}){this.quill.formatText(0,this.quill.getLength(),e)}syncFormatToNodeConfig(e,t){if(this.node)if(t)["fontFamily","fontSize","fontWeight","fontStyle","textDecoration","color"].forEach(e=>{delete this.node.nodeData.data[e]});else{let t=this.richTextStyleToNormalStyle(e);this.mindMap.execCommand("SET_NODE_DATA",this.node,t)}}normalStyleToRichTextStyle(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];switch(n){case"fontFamily":t.font=r;break;case"fontSize":t.size=r+"px";break;case"fontWeight":t.bold="bold"===r;break;case"fontStyle":t.italic="italic"===r;break;case"textDecoration":t.underline="underline"===r,t.strike="line-through"===r;break;case"color":t.color=r;break;default:break}}),t}richTextStyleToNormalStyle(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];switch(n){case"font":t.fontFamily=r;break;case"size":t.fontSize=parseFloat(r);break;case"bold":t.fontWeight=r?"bold":"normal";break;case"italic":t.fontStyle=r?"italic":"normal";break;case"underline":t.textDecoration=r?"underline":"none";break;case"strike":t.textDecoration=r?"line-through":"none";break;case"color":t.color=r;break;default:break}}),t}setNotActiveNodeStyle(e,t){const n=this.normalStyleToRichTextStyle(t);Object.keys(n).length>0&&(this.showEditText({node:e}),this.formatAllText(n),this.hideEditText([e]))}async handleExportPng(e){let t=document.createElement("div");t.style.position="absolute",t.style.left="-9999999px",t.appendChild(e),this.mindMap.el.appendChild(t);let n=e=>{e.style.margin=0,e.style.padding=0,e.hasChildNodes()&&Array.from(e.children).forEach(e=>{n(e)})};n(e);const r=await domtoimage.toPng(t);return this.mindMap.el.removeChild(t),r}transformAllNodesToNormalNode(){Object(v["db"])(this.mindMap.renderer.renderTree,null,e=>{e.data.richText&&(e.data.richText=!1,e.data.text=Object(v["z"])(e.data.text))},null,!0,0,0),this.mindMap.command.clearHistory(),this.mindMap.command.addHistory(),this.mindMap.render(null,oo["a"].TRANSFORM_TO_NORMAL_NODE)}handleSetData(e){let t=e=>{e.data&&!e.data.richText&&(e.data.richText=!0,e.data.resetRichText=!0),e.children&&e.children.length>0&&Array.from(e.children).forEach(e=>{t(e)})};return t(e),e}beforePluginRemove(){this.transformAllNodesToNormalNode(),document.head.removeChild(this.styleEl),this.unbindEvent()}beforePluginDestroy(){document.head.removeChild(this.styleEl),this.unbindEvent()}}tf.instanceName="richText";var nf=tf,rf=n("0f9c");const of=(e,t)=>e.getData("associativeLineTargets").findIndex(e=>e===t.getData("uid")),af=(e,t,n,r)=>{let i=e+(n-e)/2,o=t,a=i,s=r;return Math.abs(e-n)<=5&&(i=e+(r-t)/2,a=i),[{x:i,y:o},{x:a,y:s}]},sf=(e,t,n,r)=>`M ${e.x},${e.y} C ${n.x},${n.y} ${r.x},${r.y} ${t.x},${t.y}`,lf=e=>{let{left:t,top:n,width:r,height:i}=e;return{right:t+r,bottom:n+i,left:t,top:n}},cf=(e,t,n,r)=>{let i=af(e,t,n,r);return sf({x:e,y:t},{x:n,y:r},i[0],i[1])},uf=(e,t)=>{const{left:n,top:r,translateLeft:i,translateTop:o,width:a,height:s}=e,l=t.clientX,c=t.clientY,u=i+a/2,h=o+s/2,d=n+a/2,f=r+s/2,p=Math.atan(s/a),m=l-u,g=h-c,v=Math.atan2(g,m);let b=n+a,y=r+s;if(v=-p){const e=v*(a/2);return(v=0||v>=-p&&v<0)&&(y=f-e),{x:b,y:y,dir:"right",range:e}}if(v>=p&&v=p){const t=s/2/v;e=-t,b=d+t}else if(v>=Math.PI/2-p&&v=p-Math.PI){let e=0;if(v>=p-Math.PI/2&&v<-p){const t=s/2/v;e=t,b=d-t}else if(v=p-Math.PI){const t=(u-l)/(h-c),n=s/2*t;e=-n,b=d+n}return{x:b,y:y,dir:"bottom",range:e}}b=n;const w=(h-c)/(u-l),x=w*(a/2);return(v>=-Math.PI&&v=Math.PI-p)&&(y=f-x),{x:b,y:y,dir:"left",range:x}},hf=(e,t="right",n=0,r=null)=>{let{left:i,top:o,width:a,height:s}=e;if(r)return uf(e,r);switch(t){case"left":return{x:i,y:o+s/2-n};case"right":return{x:i+a,y:o+s/2-n};case"top":return{x:i+a/2-n,y:o};case"bottom":return{x:i+a/2-n,y:o+s};default:break}},df=(e,t)=>{let n=lf(e),r=(n.right+n.left)/2,i=(n.bottom+n.top)/2,o=lf(t),a=(o.right+o.left)/2,s=(o.bottom+o.top)/2,l=a-r,c=s-i;if(0===l&&0===c)return[];let u="",h="";return l<=0&&l<=c&&l<=-c?(u="left",h="right"):l>0&&l>=-c&&l>=c?(u="right",h="left"):c<=0&&c0&&-cl&&(u="right",h="right"),[hf(e,u),hf(t,h)]},ff=(e,t,n,r)=>{let i=of(n,r),o=[],a=n.getData("associativeLineTargetControlOffsets");if(a&&a[i]){let n=a[i];o=[{x:e.x+n[0].x,y:e.y+n[0].y},{x:t.x+n[1].x,y:t.y+n[1].y}]}else o=af(e.x,e.y,t.x,t.y);return{path:sf(e,t,o[0],o[1]),controlPoints:o}},pf=(e,t)=>{let n=af(e.x,e.y,t.x,t.y);return[{x:n[0].x-e.x,y:n[0].y-e.y},{x:n[1].x-t.x,y:n[1].y-t.y}]};function mf(){let{associativeLineActiveColor:e}=this.mindMap.themeConfig;this.controlLine1=this.associativeLineDraw.line().stroke({color:e,width:2}),this.controlLine2=this.associativeLineDraw.line().stroke({color:e,width:2}),this.controlPoint1=this.createOneControlNode("controlPoint1"),this.controlPoint2=this.createOneControlNode("controlPoint2")}function gf(e){let{associativeLineActiveColor:t}=this.mindMap.themeConfig;return this.associativeLineDraw.circle(this.controlPointDiameter).stroke({color:t}).fill({color:"#fff"}).click(e=>{e.stopPropagation()}).mousedown(t=>{this.onControlPointMousedown(t,e)})}function vf(e,t){e.stopPropagation(),this.isControlPointMousedown=!0,this.mousedownControlPointKey=t}function bf(e){if(!this.isControlPointMousedown||!this.mousedownControlPointKey||!this[this.mousedownControlPointKey])return;e.stopPropagation(),e.preventDefault();let t=this.controlPointDiameter/2,{x:n,y:r}=this.getTransformedEventPos(e);this.controlPointMousemoveState.pos={x:n,y:r},this[this.mousedownControlPointKey].x(n-t).y(r-t);let[,,,i,o]=this.activeLine,a=of(i,o),{associativeLinePoint:s,associativeLineTargetControlOffsets:l}=i.getData();s=s||[];const c=this.getNodePos(i),u=this.getNodePos(o);let[h,d]=this.updateAllLinesPos(i,o,s[a]);this.controlPointMousemoveState.startPoint=h,this.controlPointMousemoveState.endPoint=d,this.controlPointMousemoveState.targetIndex=a;let f=[];f=l?l[a]:pf(h,d);let p=null,m=null;const{x:g,y:v}=this.mindMap.toPos(e.clientX,e.clientY),b={clientX:g,clientY:v};"controlPoint1"===this.mousedownControlPointKey?(h=hf(c,"",0,b),p={x:n,y:r},m={x:d.x+f[1].x,y:d.y+f[1].y},h&&(this.controlPointMousemoveState.startPoint=h,this.controlLine1.plot(h.x,h.y,p.x,p.y))):(d=hf(u,"",0,b),p={x:h.x+f[0].x,y:h.y+f[0].y},m={x:n,y:r},d&&(this.controlPointMousemoveState.endPoint=d,this.controlLine2.plot(d.x,d.y,m.x,m.y))),this.updataAassociativeLine(h,d,p,m,this.activeLine)}function yf(e,t,n,r,i){const[o,a,s]=i,l=sf(e,t,n,r);o.plot(l),a.plot(l),this.updateTextPos(o,s),this.updateTextEditBoxPos(s)}function wf(e){if(!this.isControlPointMousedown)return;e.stopPropagation(),e.preventDefault();let{pos:t,startPoint:n,endPoint:r,targetIndex:i}=this.controlPointMousemoveState,[,,,o]=this.activeLine,a=[],{associativeLinePoint:s,associativeLineTargetControlOffsets:l}=o.getData();s||(s=[]),s[i]=s[i]||{startPoint:n,endPoint:r},l?a=l:a[i]=pf(n,r);let c=null,u=null;"controlPoint1"===this.mousedownControlPointKey?(c={x:t.x-n.x,y:t.y-n.y},u=a[i][1],s[i].startPoint=n):(c=a[i][0],u={x:t.x-r.x,y:t.y-r.y},s[i].endPoint=r),a[i]=[c,u],this.mindMap.execCommand("SET_NODE_DATA",o,{associativeLineTargetControlOffsets:a,associativeLinePoint:s}),setTimeout(()=>{this.resetControlPoint()},0)}function xf(){this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""}}function kf(e,t,n,r){this.controlLine1||this.createControlNodes();let i=this.controlPointDiameter/2;this.controlLine1.plot(e.x,e.y,n.x,n.y),this.controlLine2.plot(t.x,t.y,r.x,r.y),this.controlPoint1.x(n.x-i).y(n.y-i),this.controlPoint2.x(r.x-i).y(r.y-i)}function Af(){this.controlLine1&&([this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(e=>{e.remove()}),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null)}function Cf(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(e=>{e.hide()})}function Ef(){this.controlLine1&&[this.controlLine1,this.controlLine2,this.controlPoint1,this.controlPoint2].forEach(e=>{e.show()})}var Sf={createControlNodes:mf,createOneControlNode:gf,onControlPointMousedown:vf,onControlPointMousemove:bf,onControlPointMouseup:wf,resetControlPoint:xf,renderControls:kf,removeControls:Af,hideControls:Cf,showControls:Ef,updataAassociativeLine:yf};function Tf(e){let t=this.associativeLineDraw.group();const n=()=>{this.activeLine&&this.activeLine[3]===e.node&&this.activeLine[4]===e.toNode||this.setActiveLine({...e,text:t})};return t.click(e=>{e.stopPropagation(),n()}),t.on("dblclick",e=>{e.stopPropagation(),n(),this.activeLine&&this.showEditTextBox(t)}),t}function Nf(e){if(this.mindMap.emit("before_show_text_edit"),this.mindMap.keyCommand.addShortcut("Enter",()=>{this.hideEditTextBox()}),!this.textEditNode){this.textEditNode=document.createElement("div"),this.textEditNode.style.cssText="position:fixed;box-sizing: border-box;background-color:#fff;box-shadow: 0 0 20px rgba(0,0,0,.5);padding: 3px 5px;margin-left: -5px;margin-top: -3px;outline: none; word-break: break-all;",this.textEditNode.setAttribute("contenteditable",!0),this.textEditNode.addEventListener("keyup",e=>{e.stopPropagation()}),this.textEditNode.addEventListener("click",e=>{e.stopPropagation()});const e=this.mindMap.opt.customInnerElsAppendTo||document.body;e.appendChild(this.textEditNode)}let{associativeLineTextFontSize:t,associativeLineTextFontFamily:n,associativeLineTextLineHeight:r}=this.mindMap.themeConfig,{defaultAssociativeLineText:i,nodeTextEditZIndex:o}=this.mindMap.opt,a=this.mindMap.view.scale,[,,,s,l]=this.activeLine,c=this.getText(s,l),u=(c||i).split(/\n/gim);this.textEditNode.style.fontFamily=n,this.textEditNode.style.fontSize=t*a+"px",this.textEditNode.style.lineHeight=u.length>1?r:"normal",this.textEditNode.style.zIndex=o,this.textEditNode.innerHTML=u.join("
"),this.textEditNode.style.display="block",this.updateTextEditBoxPos(e),this.showTextEdit=!0,""===c||c===i?Object(v["Y"])(this.textEditNode):Object(v["q"])(this.textEditNode)}function Mf(){this.hideEditTextBox()}function Lf(e){let t=e.node.getBoundingClientRect();this.textEditNode&&(this.textEditNode.style.minWidth=t.width+10+"px",this.textEditNode.style.minHeight=t.height+6+"px",this.textEditNode.style.left=t.left+"px",this.textEditNode.style.top=t.top+"px")}function Of(){if(!this.showTextEdit)return;let[e,,t,n,r]=this.activeLine,i=Object(v["y"])(this.textEditNode.innerHTML),o=i===this.mindMap.opt.defaultAssociativeLineText;i=o?"":i,this.mindMap.execCommand("SET_NODE_DATA",n,{associativeLineText:{...n.getData("associativeLineText")||{},[r.getData("uid")]:i}}),this.textEditNode.style.display="none",this.textEditNode.innerHTML="",this.showTextEdit=!1,this.renderText(i,e,t),this.mindMap.emit("hide_text_edit")}function Df(e,t){let n=e.getData("associativeLineText");return n&&n[t.getData("uid")]||""}function Pf(e,t,n){if(!e)return;let{associativeLineTextFontSize:r,associativeLineTextLineHeight:i}=this.mindMap.themeConfig;n.clear();let o=e.split(/\n/gim);o.forEach((e,t)=>{let o=(new Cc).text(e);o.y(r*i*t),this.styleText(o),n.add(o)}),Rf(t,n)}function If(e){let{associativeLineTextColor:t,associativeLineTextFontSize:n,associativeLineTextFontFamily:r}=this.mindMap.themeConfig;e.fill({color:t}).css({"font-family":r,"font-size":n})}function Rf(e,t){let n=e.length(),r=e.pointAt(n/2),{width:i,height:o}=t.bbox();t.x(r.x-i/2),t.y(r.y-o/2)}var Ff={getText:Df,createText:Tf,styleText:If,onScale:Mf,showEditTextBox:Nf,hideEditTextBox:Of,updateTextEditBoxPos:Lf,renderText:Pf,updateTextPos:Rf};class zf{constructor(e={}){this.mindMap=e.mindMap,this.associativeLineDraw=this.mindMap.associativeLineDraw,this.lineList=[],this.activeLine=null,this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine=null,this.overlapNode=null,this.isNodeDragging=!1,this.markerPath=null,this.marker=this.createMarker(),this.controlLine1=null,this.controlLine2=null,this.controlPoint1=null,this.controlPoint2=null,this.controlPointDiameter=10,this.isControlPointMousedown=!1,this.mousedownControlPointKey="",this.controlPointMousemoveState={pos:null,startPoint:null,endPoint:null,targetIndex:""},this.checkOverlapNode=Object(v["cb"])(this.checkOverlapNode,100,this),Object.keys(Sf).forEach(e=>{this[e]=Sf[e].bind(this)}),Object.keys(Ff).forEach(e=>{this[e]=Ff[e].bind(this)}),this.bindEvent()}bindEvent(){this.renderAllLines=this.renderAllLines.bind(this),this.mindMap.on("node_tree_render_end",this.renderAllLines),this.mindMap.on("data_change",this.renderAllLines),this.mindMap.on("draw_click",()=>{this.isControlPointMousedown||this.clearActiveLine()}),this.mindMap.on("node_click",e=>{this.isCreatingLine?this.completeCreateLine(e):this.clearActiveLine()}),this.mindMap.keyCommand.addShortcut("Del|Backspace",this.removeLine.bind(this)),this.mindMap.command.add("ADD_ASSOCIATIVE_LINE",this.addLine.bind(this)),this.mindMap.on("mousemove",this.onMousemove.bind(this)),this.mindMap.on("node_dragging",this.onNodeDragging.bind(this)),this.mindMap.on("node_dragend",this.onNodeDragend.bind(this)),this.mindMap.on("mouseup",this.onControlPointMouseup.bind(this)),this.mindMap.on("scale",this.onScale)}createMarker(){return this.associativeLineDraw.marker(20,20,e=>{e.ref(12,5),e.size(10,10),e.attr("orient","auto-start-reverse"),this.markerPath=e.path("M0,0 L2,5 L0,10 L10,5 Z")})}updateAllLinesPos(e,t,n){n=n||{};let[r,i]=df(e,t),o=0,a="",s=0,l="";return n.startPoint&&(o=n.startPoint.range||0,a=n.startPoint.dir||"right",r=hf(e,a,o)),n.endPoint&&(s=n.endPoint.range||0,l=n.endPoint.dir||"right",i=hf(t,l,s)),[r,i]}renderAllLines(){this.removeAllLines(),this.removeControls(),this.clearActiveLine();let e=this.mindMap.renderer.root;if(!e)return;let t=new Map,n=new Map;Object(v["db"])(e,null,e=>{if(!e)return;let r=e.getData();r.associativeLineTargets&&r.associativeLineTargets.length>0&&n.set(e,r.associativeLineTargets),r.uid&&t.set(r.uid,e)},()=>{},!0,0),n.forEach((e,n)=>{e.forEach((e,r)=>{let i=t.get(e);if(!n||!i)return;const o=(n.getData("associativeLinePoint")||[])[r],[a,s]=this.updateAllLinesPos(n,i,o);this.drawLine(a,s,n,i)})})}drawLine(e,t,n,r){let{associativeLineWidth:i,associativeLineColor:o,associativeLineActiveWidth:a,associativeLineActiveColor:s}=this.mindMap.themeConfig;this.markerPath.stroke({color:o}).fill({color:o});let{path:l,controlPoints:c}=ff(e,t,n,r),u=this.associativeLineDraw.path();u.stroke({width:i,color:o,dasharray:[6,4]}).fill({color:"none"}),u.plot(l),u.marker("end",this.marker);let h=this.associativeLineDraw.path();h.stroke({width:a,color:"transparent"}).fill({color:"none"}),h.plot(l);let d=this.createText({path:u,clickPath:h,node:n,toNode:r,startPoint:e,endPoint:t,controlPoints:c});h.click(i=>{i.stopPropagation(),this.setActiveLine({path:u,clickPath:h,text:d,node:n,toNode:r,startPoint:e,endPoint:t,controlPoints:c})}),h.dblclick(()=>{this.activeLine&&this.showEditTextBox(d)}),this.renderText(this.getText(n,r),u,d),this.lineList.push([u,h,d,n,r])}setActiveLine({path:e,clickPath:t,text:n,node:r,toNode:i,startPoint:o,endPoint:a,controlPoints:s}){let{associativeLineActiveColor:l}=this.mindMap.themeConfig;this.mindMap.execCommand("CLEAR_ACTIVE_NODE"),this.clearActiveLine(),this.activeLine=[e,t,n,r,i],t.stroke({color:l}),this.getText(r,i)||this.renderText(this.mindMap.opt.defaultAssociativeLineText,e,n),this.renderControls(o,a,s[0],s[1]),this.mindMap.emit("associative_line_click",e,t,r,i),this.front()}removeAllLines(){this.lineList.forEach(e=>{e[0].remove(),e[1].remove(),e[2].remove()}),this.lineList=[]}createLineFromActiveNode(){if(this.mindMap.renderer.activeNodeList.length<=0)return;let e=this.mindMap.renderer.activeNodeList[0];this.createLine(e)}createLine(e){let{associativeLineWidth:t,associativeLineColor:n}=this.mindMap.themeConfig;!this.isCreatingLine&&e&&(this.front(),this.isCreatingLine=!0,this.creatingStartNode=e,this.creatingLine=this.associativeLineDraw.path(),this.creatingLine.stroke({width:t,color:n,dasharray:[6,4]}).fill({color:"none"}),this.creatingLine.marker("end",this.marker))}onMousemove(e){this.onControlPointMousemove(e),this.updateCreatingLine(e)}updateCreatingLine(e){if(!this.isCreatingLine)return;let{x:t,y:n}=this.getTransformedEventPos(e),r=hf(this.creatingStartNode),i=t>r.x?-10:10,o=cf(r.x,r.y,t+i,n);this.creatingLine.plot(o),this.checkOverlapNode(t,n)}getTransformedEventPos(e){let{x:t,y:n}=this.mindMap.toPos(e.clientX,e.clientY),{scaleX:r,scaleY:i,translateX:o,translateY:a}=this.mindMap.draw.transform();return{x:(t-o)/r,y:(n-a)/i}}getNodePos(e){const{scaleX:t,scaleY:n,translateX:r,translateY:i}=this.mindMap.draw.transform(),{left:o,top:a,width:s,height:l}=e;let c=o*t+r,u=a*n+i;return{left:o,top:a,translateLeft:c,translateTop:u,width:s,height:l}}checkOverlapNode(e,t){this.overlapNode=null,Object(v["d"])(this.mindMap.renderer.root,n=>{if(n.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",n,!1),n.uid===this.creatingStartNode.uid||this.overlapNode)return;let{left:r,top:i,width:o,height:a}=n,s=r+o,l=i+a;e>=r&&e<=s&&t>=i&&t<=l&&(this.overlapNode=n)}),this.overlapNode&&!this.overlapNode.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!0)}completeCreateLine(e){this.creatingStartNode.uid!==e.uid&&(this.addLine(this.creatingStartNode,e),this.overlapNode&&this.overlapNode.getData("isActive")&&this.mindMap.execCommand("SET_NODE_ACTIVE",this.overlapNode,!1),this.isCreatingLine=!1,this.creatingStartNode=null,this.creatingLine.remove(),this.creatingLine=null,this.overlapNode=null,this.back())}addLine(e,t){if(!e||!t)return;let n=t.getData("uid");n||(n=Object(rf["a"])(),this.mindMap.execCommand("SET_NODE_DATA",t,{uid:n}));let r=e.getData("associativeLineTargets")||[];const i=r.some(e=>e===n);if(i)return;r.push(n);let[o,a]=df(e,t),s=af(o.x,o.y,a.x,a.y),l=e.getData("associativeLineTargetControlOffsets")||[];l[r.length-1]=[{x:s[0].x-o.x,y:s[0].y-o.y},{x:s[1].x-a.x,y:s[1].y-a.y}];let c=e.getData("associativeLinePoint")||[];c[r.length-1]={startPoint:o,endPoint:a},this.mindMap.execCommand("SET_NODE_DATA",e,{associativeLineTargets:r,associativeLineTargetControlOffsets:l,associativeLinePoint:c})}removeLine(){if(!this.activeLine)return;let[,,,e,t]=this.activeLine;this.removeControls();let{associativeLineTargets:n,associativeLinePoint:r,associativeLineTargetControlOffsets:i,associativeLineText:o}=e.getData();r=r||[];let a=of(e,t),s={};o&&Object.keys(o).forEach(e=>{e!==t.getData("uid")&&(s[e]=o[e])}),this.mindMap.execCommand("SET_NODE_DATA",e,{associativeLineTargets:n.filter((e,t)=>t!==a),associativeLinePoint:r.filter((e,t)=>t!==a),associativeLineTargetControlOffsets:i?i.filter((e,t)=>t!==a):[],associativeLineText:s})}clearActiveLine(){if(this.activeLine){let[,e,t,n,r]=this.activeLine;e.stroke({color:"transparent"}),this.hideEditTextBox(),this.getText(n,r)||t.clear(),this.activeLine=null,this.removeControls(),this.back()}}onNodeDragging(){this.isNodeDragging||(this.isNodeDragging=!0,this.lineList.forEach(e=>{e[0].hide(),e[1].hide(),e[2].hide()}),this.hideControls())}onNodeDragend(){this.isNodeDragging&&(this.lineList.forEach(e=>{e[0].show(),e[1].show(),e[2].show()}),this.showControls(),this.isNodeDragging=!1)}front(){this.mindMap.opt.associativeLineIsAlwaysAboveNode||this.associativeLineDraw.front()}back(){this.mindMap.opt.associativeLineIsAlwaysAboveNode||(this.associativeLineDraw.back(),this.associativeLineDraw.forward())}}zf.instanceName="associativeLine";var Bf=zf;class _f{constructor({mindMap:e}){this.mindMap=e,this.touchesNum=0,this.singleTouchstartEvent=null,this.clickNum=0,this.touchStartScaleView=null,this.bindEvent()}bindEvent(){this.onTouchstart=this.onTouchstart.bind(this),this.onTouchmove=this.onTouchmove.bind(this),this.onTouchcancel=this.onTouchcancel.bind(this),this.onTouchend=this.onTouchend.bind(this),window.addEventListener("touchstart",this.onTouchstart),window.addEventListener("touchmove",this.onTouchmove),window.addEventListener("touchcancel",this.onTouchcancel),window.addEventListener("touchend",this.onTouchend)}unBindEvent(){window.removeEventListener("touchstart",this.onTouchstart),window.removeEventListener("touchmove",this.onTouchmove),window.removeEventListener("touchcancel",this.onTouchcancel),window.removeEventListener("touchend",this.onTouchend)}onTouchstart(e){if(this.touchesNum=e.touches.length,this.touchStartScaleView=null,1===this.touchesNum){let t=e.touches[0];this.singleTouchstartEvent=t,this.dispatchMouseEvent("mousedown",t.target,t)}}onTouchmove(e){let t=e.touches.length;if(1===t){let t=e.touches[0];this.dispatchMouseEvent("mousemove",t.target,t)}else if(2===t){if(this.mindMap.opt.disableTouchZoom)return;let t=e.touches[0],n=e.touches[1],r=t.clientX-n.clientX,i=t.clientY-n.clientY,o=Math.sqrt(Math.pow(r,2)+Math.pow(i,2)),{x:a,y:s}=this.mindMap.toPos(t.clientX,t.clientY),{x:l,y:c}=this.mindMap.toPos(n.clientX,n.clientY),u=(a+l)/2,h=(s+c)/2;const d=this.mindMap.view;if(!this.touchStartScaleView)return void(this.touchStartScaleView={distance:o,scale:d.scale,x:d.x,y:d.y,cx:u,cy:h});const f=this.touchStartScaleView;let p=f.scale*(o/f.distance);Math.abs(o-f.distance)<=10&&(p=f.scale);const m=1-p/f.scale;d.scale=p<.1?.1:p,d.x=f.x+(u-f.x)*m+(u-f.cx)*p,d.y=f.y+(h-f.y)*m+(h-f.cy)*p,d.transform(),this.mindMap.emit("scale",p)}}onTouchcancel(e){}onTouchend(e){if(this.dispatchMouseEvent("mouseup",e.target),1===this.touchesNum){this.clickNum++,setTimeout(()=>{this.clickNum=0},300);let e=this.singleTouchstartEvent;this.clickNum>1&&(this.clickNum=0,this.dispatchMouseEvent("dblclick",e.target,e))}this.touchesNum=0,this.singleTouchstartEvent=null,this.touchStartScaleView=null}dispatchMouseEvent(e,t,n){let r={};n&&(r={screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,which:1});let i=new MouseEvent(e,{view:window,bubbles:!0,cancelable:!0,...r});t.dispatchEvent(i)}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}_f.instanceName="touchEvent";var jf=_f;class Hf{constructor({mindMap:e}){this.mindMap=e,this.resizeBtnSize=26,this.handleEl=null,this.isShowHandleEl=!1,this.node=null,this.img=null,this.rect=null,this.isMousedown=!1,this.currentImgWidth=0,this.currentImgHeight=0,this.isAdjusted=!1,this.bindEvent()}bindEvent(){this.onNodeImgMouseleave=this.onNodeImgMouseleave.bind(this),this.onNodeImgMousemove=this.onNodeImgMousemove.bind(this),this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.onRenderEnd=this.onRenderEnd.bind(this),this.mindMap.on("node_img_mouseleave",this.onNodeImgMouseleave),this.mindMap.on("node_img_mousemove",this.onNodeImgMousemove),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_mouseup",this.onMouseup),this.mindMap.on("node_tree_render_end",this.onRenderEnd)}unBindEvent(){this.mindMap.off("node_img_mouseleave",this.onNodeImgMouseleave),this.mindMap.off("node_img_mousemove",this.onNodeImgMousemove),this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("mouseup",this.onMouseup),this.mindMap.off("node_mouseup",this.onMouseup),this.mindMap.off("node_tree_render_end",this.onRenderEnd)}onNodeImgMousemove(e,t){this.isMousedown||this.isAdjusted||this.mindMap.opt.readonly||this.node&&this.node.uid===e.uid&&this.isShowHandleEl||(this.node=e,this.img=t,this.rect=this.img.rbox(),this.showHandleEl())}onNodeImgMouseleave(){this.isMousedown||this.hideHandleEl()}hideNodeImage(){this.img&&this.img.hide()}showNodeImage(){this.img&&this.img.show()}showHandleEl(){this.handleEl||this.createResizeBtnEl(),this.setHandleElRect(),this.handleEl.style.display="block",this.isShowHandleEl=!0}hideHandleEl(){this.isShowHandleEl&&(this.isShowHandleEl=!1,this.handleEl.style.display="none",this.handleEl.style.backgroundImage="",this.handleEl.style.width=0,this.handleEl.style.height=0,this.handleEl.style.left=0,this.handleEl.style.top=0)}setHandleElRect(){let{width:e,height:t,x:n,y:r}=this.rect;this.handleEl.style.left=n+"px",this.handleEl.style.top=r+"px",this.currentImgWidth=e,this.currentImgHeight=t,this.updateHandleElSize()}updateHandleElSize(){this.handleEl.style.width=this.currentImgWidth+"px",this.handleEl.style.height=this.currentImgHeight+"px"}createResizeBtnEl(){this.handleEl=document.createElement("div"),this.handleEl.style.cssText="\n pointer-events: none;\n position: fixed;\n\t display:none;\n background-size: cover;\n ",this.handleEl.className="node-img-handle";const e=document.createElement("div");e.innerHTML=mu.imgAdjust,e.style.cssText=`\n position: absolute;\n right: 0;\n bottom: 0;\n pointer-events: auto;\n background-color: rgba(0, 0, 0, 0.3);\n width: ${this.resizeBtnSize}px;\n height: ${this.resizeBtnSize}px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: nwse-resize;\n `,e.className="node-image-resize",e.addEventListener("mouseenter",()=>{this.showHandleEl()}),e.addEventListener("mouseleave",()=>{this.isMousedown||this.hideHandleEl()}),e.addEventListener("mousedown",e=>{e.stopPropagation(),this.onMousedown(e)}),e.addEventListener("mouseup",e=>{setTimeout(()=>{this.hideHandleEl(),this.isAdjusted=!1},0)}),e.addEventListener("click",e=>{e.stopPropagation()}),this.handleEl.appendChild(e);const t=document.createElement("div");this.handleEl.prepend(t),t.className="node-image-remove",t.innerHTML=mu.remove,t.style.cssText=`\n position: absolute;\n right: 0;top:0;color:#fff;\n pointer-events: auto;\n background-color: rgba(0, 0, 0, 0.3);\n width: ${this.resizeBtnSize}px;\n height: ${this.resizeBtnSize}px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n `,t.addEventListener("mouseenter",e=>{this.showHandleEl()}),t.addEventListener("mouseleave",e=>{this.isMousedown||this.hideHandleEl()}),t.addEventListener("click",e=>{this.mindMap.execCommand("SET_NODE_IMAGE",this.node,{url:null})});const n=this.mindMap.opt.customInnerElsAppendTo||document.body;n.appendChild(this.handleEl)}onMousedown(){this.isMousedown=!0,this.hideNodeImage(),this.handleEl.style.backgroundImage=`url(${this.node.getData("image")})`}onMousemove(e){if(!this.isMousedown)return;e.preventDefault();let{width:t,height:n}=this.node.getData("imageSize"),r=e.clientX-this.rect.x,i=e.clientY-this.rect.y;if(r<=0||i<=0)return;let[o,a]=Object(v["X"])(t,n,r,i);this.currentImgWidth=o,this.currentImgHeight=a,this.updateHandleElSize()}onMouseup(){if(!this.isMousedown)return;this.showNodeImage(),this.hideHandleEl();let{image:e,imageTitle:t}=this.node.getData(),{scaleX:n,scaleY:r}=this.mindMap.draw.transform();this.mindMap.execCommand("SET_NODE_IMAGE",this.node,{url:e,title:t,width:this.currentImgWidth/n,height:this.currentImgHeight/r,custom:!0}),this.isAdjusted=!0,this.isMousedown=!1}onRenderEnd(){this.isAdjusted?this.isAdjusted=!1:this.hideHandleEl()}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Hf.instanceName="nodeImgAdjust";var Uf=Hf;n("532c");class qf{constructor({mindMap:e}){this.mindMap=e,this.isSearching=!1,this.searchText="",this.matchNodeList=[],this.currentIndex=-1,this.notResetSearchText=!1,this.isJumpNext=!1,this.onDataChange=this.onDataChange.bind(this),this.mindMap.on("data_change",this.onDataChange)}onDataChange(){if(this.isJumpNext)return this.isJumpNext=!1,void this.search(this.searchText);this.notResetSearchText?this.notResetSearchText=!1:this.searchText=""}search(e,t=(()=>{})){if(Object(v["I"])(e))return this.endSearch();e=String(e),this.isSearching=!0,this.searchText===e||(this.searchText=e,this.doSearch()),this.searchNext(t),this.emitEvent()}endSearch(){this.isSearching&&(this.searchText="",this.matchNodeList=[],this.currentIndex=-1,this.notResetSearchText=!1,this.isSearching=!1,this.mindMap.opt.readonly&&this.mindMap.renderer.closeHighlightNode(),this.emitEvent())}doSearch(){this.matchNodeList=[],this.currentIndex=-1,Object(v["d"])(this.mindMap.renderer.root,e=>{let{richText:t,text:n}=e.getData();t&&(n=Object(v["z"])(n)),n.includes(this.searchText)&&this.matchNodeList.push(e)})}searchNext(e){if(!this.isSearching||this.matchNodeList.length<=0)return;this.currentIndex{this.notResetSearchText=!1,e(),this.mindMap.opt.readonly&&this.mindMap.renderer.highlightNode(t)})}replace(e,t=!1){if(null===e||void 0===e||!this.isSearching||this.matchNodeList.length<=0)return;this.isJumpNext=t,e=String(e);let n=this.matchNodeList[this.currentIndex];if(!n)return;let r=this.getReplacedText(n,this.searchText,e);this.notResetSearchText=!0,n.setText(r,n.getData("richText"),!0),this.matchNodeList=this.matchNodeList.filter(e=>n!==e),this.currentIndex>this.matchNodeList.length-1?this.currentIndex=-1:this.currentIndex--,this.emitEvent()}replaceAll(e){null===e||void 0===e||!this.isSearching||this.matchNodeList.length<=0||(e=String(e),this.matchNodeList.forEach(t=>{let n=this.getReplacedText(t,this.searchText,e);this.mindMap.renderer.setNodeDataRender(t,{text:n,resetRichText:!!t.getData("richText")},!0)}),this.mindMap.render(),this.mindMap.command.addHistory(),this.endSearch())}getReplacedText(e,t,n){let{richText:r,text:i}=e.getData();return r?Object(v["V"])(i,t,n):i.replaceAll(t,n)}emitEvent(){this.mindMap.emit("search_info_change",{currentIndex:this.currentIndex,total:this.matchNodeList.length})}}qf.instanceName="search";var Gf=qf;class Wf{constructor({mindMap:e}){this.mindMap=e,this.isInPainter=!1,this.painterNode=null,this.bindEvent()}bindEvent(){this.painterOneNode=this.painterOneNode.bind(this),this.onEndPainter=this.onEndPainter.bind(this),this.mindMap.on("node_click",this.painterOneNode),this.mindMap.on("draw_click",this.onEndPainter)}unBindEvent(){this.mindMap.off("node_click",this.painterOneNode),this.mindMap.off("draw_click",this.onEndPainter)}startPainter(){if(this.mindMap.opt.readonly)return;let e=this.mindMap.renderer.activeNodeList;e.length<=0||(this.painterNode=e[0],this.isInPainter=!0,this.mindMap.emit("painter_start"))}endPainter(){this.painterNode=null,this.isInPainter=!1}onEndPainter(){this.isInPainter&&(this.endPainter(),this.mindMap.emit("painter_end"))}painterOneNode(e){if(!e||!this.isInPainter||!this.painterNode||!e||e.uid===this.painterNode.uid)return;const t={},n=this.painterNode.getData();Object.keys(n).forEach(e=>{Object(v["f"])(e)&&(t[e]=n[e])}),e.setStyles(t),n.activeStyle&&e.setStyles(n.activeStyle,!0)}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}Wf.instanceName="painter";var Vf=Wf;class Yf{constructor(e){this.mindMap=e.mindMap,this.scrollbarWrapSize={width:0,height:0},this.chartHeight=0,this.chartWidth=0,this.reset(),this.bindEvent()}reset(){this.currentScrollType="",this.isMousedown=!1,this.mousedownPos={x:0,y:0},this.mousedownScrollbarPos=0}bindEvent(){this.onMousemove=this.onMousemove.bind(this),this.onMouseup=this.onMouseup.bind(this),this.updateScrollbar=this.updateScrollbar.bind(this),this.updateScrollbar=Object(v["cb"])(this.updateScrollbar,16,this),this.mindMap.on("mousemove",this.onMousemove),this.mindMap.on("mouseup",this.onMouseup),this.mindMap.on("node_tree_render_end",this.updateScrollbar),this.mindMap.on("view_data_change",this.updateScrollbar)}unBindEvent(){this.mindMap.off("mousemove",this.onMousemove),this.mindMap.off("mouseup",this.onMouseup),this.mindMap.off("node_tree_render_end",this.updateScrollbar),this.mindMap.off("view_data_change",this.updateScrollbar)}updateScrollbar(){if(this.isMousedown)return;const e=this.calculationScrollbar();this.emitEvent(e)}emitEvent(e){this.mindMap.emit("scrollbar_change",e)}setScrollBarWrapSize(e,t){this.scrollbarWrapSize.width=e,this.scrollbarWrapSize.height=t}calculationScrollbar(){const e=this.mindMap.draw.rbox(),t=this.mindMap.elRect;e.x-=t.left,e.y-=t.top;const n=this.mindMap.height,r=n/2,i=e.height+2*r;this.chartHeight=i;const o=e.y-r,a=Math.min(n/i*100,100);let s=-o/i*100;s<0&&(s=0),s>100-a&&(s=100-a);const l=this.mindMap.width,c=l/2,u=e.width+2*c;this.chartWidth=u;const h=e.x-c,d=Math.min(l/u*100,100);let f=-h/u*100;f<0&&(f=0),f>100-d&&(f=100-d);const p={vertical:{top:s,height:a},horizontal:{left:f,width:d}};return p}onMousedown(e,t){e.preventDefault(),e.stopPropagation(),this.currentScrollType=t,this.isMousedown=!0,this.mousedownPos={x:e.clientX,y:e.clientY};const n=window.getComputedStyle(e.target);t===oo["a"].SCROLL_BAR_DIR.VERTICAL?this.mousedownScrollbarPos=Number.parseFloat(n.top):this.mousedownScrollbarPos=Number.parseFloat(n.left)}onMousemove(e){if(this.isMousedown)if(e.preventDefault(),e.stopPropagation(),this.currentScrollType===oo["a"].SCROLL_BAR_DIR.VERTICAL){const t=e.clientY-this.mousedownPos.y+this.mousedownScrollbarPos;this.updateMindMapView(oo["a"].SCROLL_BAR_DIR.VERTICAL,t)}else{const t=e.clientX-this.mousedownPos.x+this.mousedownScrollbarPos;this.updateMindMapView(oo["a"].SCROLL_BAR_DIR.HORIZONTAL,t)}}onMouseup(){this.isMousedown=!1,this.reset()}updateMindMapView(e,t){const n=this.calculationScrollbar(),r=this.mindMap.draw.transform(),i=this.mindMap.draw.rbox(),o=this.mindMap.renderer.root.group.rbox();if(e===oo["a"].SCROLL_BAR_DIR.VERTICAL){let e=t;e<=0&&(e=0);let a=(100-n.vertical.height)/100*this.scrollbarWrapSize.height;e>=a&&(e=a);const s=e/this.scrollbarWrapSize.height*100,l=-s/100*this.chartHeight,c=o.y-i.y,u=this.mindMap.height/2;let h=l+c-u*r.scaleY+u;this.mindMap.view.translateYTo(h),this.emitEvent({horizontal:n.horizontal,vertical:{top:s,height:n.vertical.height}})}else{let e=t;e<=0&&(e=0);let a=(100-n.horizontal.width)/100*this.scrollbarWrapSize.width;e>=a&&(e=a);const s=e/this.scrollbarWrapSize.width*100,l=-s/100*this.chartWidth,c=o.x-i.x,u=this.mindMap.width/2;let h=l+c-u*r.scaleX+u;this.mindMap.view.translateXTo(h),this.emitEvent({vertical:n.vertical,horizontal:{left:s,width:n.horizontal.width}})}}onClick(e,t){let n=0;n=t===oo["a"].SCROLL_BAR_DIR.VERTICAL?e.clientY-e.currentTarget.getBoundingClientRect().top:e.clientX-e.currentTarget.getBoundingClientRect().left,this.updateMindMapView(t,n)}beforePluginDestroy(){this.unBindEvent()}}Yf.instanceName="scrollbar";var Zf=Yf,Kf=n("5703"),Xf=n.n(Kf);class Jf{constructor(e){this.opt=e,this.mindMap=e.mindMap,window.katex=Xf.a,this.extendQuill()}extendQuill(){const e=Kd.a.import("formats/formula");class t extends e{static create(e){let t=super.create(e);return"string"===typeof e&&(Xf.a.render(e,t,{throwOnError:!1,errorColor:"#f00",output:"mathml"}),t.setAttribute("data-value",e)),t}}Kd.a.register("formats/formula",t,!0)}insertFormulaToNode(e,t){let n=this.mindMap.richText;n.showEditText(e),n.quill.insertEmbed(n.quill.getLength()-1,"formula",t),n.setTextStyleIfNotRichText(n.node),n.hideEditText([e])}}Jf.instanceName="formula";var Qf=Jf,$f=n("4afd"),ep=n("0d93");class tp{constructor(e){this.opt=e,this.mindMap=e.mindMap,this.ydoc=new $f["a"],this.ymap=null,this.provider=null,this.awareness=null,this.currentAwarenessData=[],this.waitNodeUidMap={},this.currentData=null,this.userInfo=null,this.bindEvent(),this.mindMap.opt.data&&this.initData(this.mindMap.opt.data)}initData(e){e=Object(v["ab"])(e),this.ymap&&this.ymap.unobserve(this.onObserve),this.ymap=this.ydoc.getMap(),this.currentData=this.transformTreeDataToObject(e),Object.keys(this.currentData).forEach(e=>{this.ymap.set(e,this.currentData[e])}),this.onObserve=this.onObserve.bind(this),this.ymap.observe(this.onObserve)}getDoc(){return this.ydoc}setProvider(e,t={}){const{roomName:n,signalingList:r,...i}=t;this.provider=e||new ep["a"](n,this.ydoc,{signaling:r,...i}),this.awareness=this.provider.awareness,this.onAwareness=this.onAwareness.bind(this),this.awareness.on("change",this.onAwareness)}bindEvent(){this.onDataChange=this.onDataChange.bind(this),this.mindMap.on("data_change",this.onDataChange),this.onNodeActive=this.onNodeActive.bind(this),this.mindMap.on("node_active",this.onNodeActive),this.onNodeTreeRenderEnd=this.onNodeTreeRenderEnd.bind(this),this.mindMap.on("node_tree_render_end",this.onNodeTreeRenderEnd),this.initData=this.initData.bind(this),this.mindMap.on("set_data",this.initData)}unBindEvent(){this.ymap&&this.ymap.unobserve(this.onObserve),this.mindMap.off("data_change",this.onDataChange),this.mindMap.off("node_active",this.onNodeActive),this.mindMap.off("node_tree_render_end",this.onNodeTreeRenderEnd),this.mindMap.off("set_data",this.initData),this.ydoc.destroy()}onObserve(e){const t=e.target.toJSON();if(Object(v["G"])(t,this.currentData))return;this.currentData=t;const n=this.transformObjectToTreeData(t);n&&(this.mindMap.renderer.setData(n),this.mindMap.render(),this.mindMap.command.addHistory())}onDataChange(e){const t=this.transformTreeDataToObject(e);this.updateChanges(t)}updateChanges(e){const t=this.currentData;this.currentData=e,this.ydoc.transact(()=>{Object.keys(e).forEach(n=>{t[n]&&Object(v["G"])(t[n],e[n])||this.ymap.set(n,e[n])}),Object.keys(t).forEach(t=>{e[t]||this.ymap.delete(t)})})}onNodeActive(e,t){this.userInfo&&this.awareness.setLocalStateField(this.userInfo.name,{userInfo:{...this.userInfo},nodeIdList:t.map(e=>e.uid)})}onNodeTreeRenderEnd(){Object.keys(this.waitNodeUidMap).forEach(e=>{const t=this.mindMap.renderer.findNodeByUid(e);t&&t.addUser(this.waitNodeUidMap[e])}),this.waitNodeUidMap={}}setUserInfo(e){"Object"!==Object(v["B"])(e)||Object(v["I"])(e.id)||Object(v["I"])(e.name)&&Object(v["I"])(e.avatar)||(this.userInfo=e||null)}onAwareness(){const e=(e,t)=>{e.forEach(e=>{const n=Object.keys(e)[0];if(!n)return;const r=e[n],i=r.userInfo,o=r.nodeIdList;o.forEach(e=>{const n=this.mindMap.renderer.findNodeByUid(e);t(e,n,i)})})};e(this.currentAwarenessData,(e,t,n)=>{t&&t.removeUser(n)});const t=Array.from(this.awareness.getStates().values());this.currentAwarenessData=t,e(t,(e,t,n)=>{n.id!==this.userInfo.id&&(t?t.addUser(n):this.waitNodeUidMap[e]=n)})}transformTreeDataToObject(e){const t={},n=(e,r)=>{const i=e.data.uid;r&&r.children.push(i),t[i]={isRoot:!r,data:{...e.data},children:[]},e.children&&e.children.length>0&&e.children.forEach(e=>{n(e,t[i])})};return n(e,null),t}findParentUid(e,t){const n=Object.keys(e);let r="";return n.forEach(n=>{const i=e[n].children,o=-1!==i.findIndex(e=>e===t);o&&(r=n)}),r}transformObjectToTreeData(e){const t=Object.keys(e);if(t.length<=0)return null;const n=t.find(t=>e[t].isRoot);if(!n||!e[n])return null;const r={data:Object(v["ab"])(e[n].data),children:[]},i={};return i[n]=r,t.forEach(t=>{const n=this.findParentUid(e,t),r=e[t],o=i[t]||{data:Object(v["ab"])(r.data),children:[]};if(i[t]||(i[t]=o),n){const r=e[n].children.findIndex(e=>e===t);i[n]||(i[n]={data:Object(v["ab"])(e[n].data),children:[]}),i[n].children[r]=o}}),r}beforePluginRemove(){this.unBindEvent()}beforePluginDestroy(){this.unBindEvent()}}tp.instanceName="cooperate";var np=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("outline.title")}},[t("div",{staticClass:"changeBtn",class:{isDark:e.isDark},on:{click:e.onChangeToOutlineEdit}},[t("span",{staticClass:"icon iconfont iconquanping1"})]),"outline"===e.activeSidebar?t("Outline",{attrs:{mindMap:e.mindMap},on:{scrollTo:e.onScrollTo}}):e._e()],1)},rp=[],ip=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebarContainer",class:{show:e.show,isDark:e.isDark},style:{zIndex:e.zIndex},on:{click:function(e){e.stopPropagation()}}},[t("span",{staticClass:"closeBtn el-icon-close",on:{click:e.close}}),e.title?t("div",{staticClass:"sidebarHeader"},[e._v(" "+e._s(e.title)+" ")]):e._e(),t("div",{ref:"sidebarContent",staticClass:"sidebarContent"},[e._t("default")],2)])},op=[],ap={name:"Sidebar",props:{title:{type:String,default:""}},data(){return{show:!1,zIndex:0}},computed:{...Object(se["d"])(["isDark"])},watch:{show(e,t){e&&!t&&(this.zIndex=ke.sidebarZIndex++)}},created(){this.$bus.$on("closeSideBar",this.handleCloseSidebar)},beforeDestroy(){this.$bus.$off("closeSideBar",this.handleCloseSidebar)},methods:{...Object(se["c"])(["setActiveSidebar"]),handleCloseSidebar(){this.close()},close(){this.show=!1,this.setActiveSidebar("")},getEl(){return this.$refs.sidebarContent}}},sp=ap,lp=(n("7b13"),Object(p["a"])(sp,ip,op,!1,null,"e9a8c6d4",null)),cp=lp.exports,up=function(){var e=this,t=e._self._c;return t("el-tree",{ref:"tree",staticClass:"outlineTree",class:{isDark:e.isDark},attrs:{"node-key":"uid",draggable:"","default-expand-all":"",data:e.data,props:e.defaultProps,"highlight-current":!0,"expand-on-click-node":!1,"allow-drag":e.checkAllowDrag},on:{"node-drop":e.onNodeDrop,"current-change":e.onCurrentChange},nativeOn:{mouseenter:function(t){e.isInTreArea=!0},mouseleave:function(t){e.isInTreArea=!1}},scopedSlots:e._u([{key:"default",fn:function({node:n,data:r}){return t("span",{staticClass:"customNode",attrs:{"data-id":r.uid},on:{click:function(t){return e.onClick(r)}}},[t("span",{key:e.getKey(),staticClass:"nodeEdit",attrs:{contenteditable:!e.isReadonly},domProps:{innerHTML:e._s(n.label)},on:{keydown:function(t){return t.stopPropagation(),e.onNodeInputKeydown(t,n)},keyup:function(e){e.stopPropagation()},blur:function(t){return e.onBlur(t,n)},paste:function(t){return e.onPaste(t,n)}}})])}}])})},hp=[],dp=(n("5b81"),{name:"Outline",props:{mindMap:{type:Object}},data(){return{data:[],defaultProps:{label:"label"},currentData:null,notHandleDataChange:!1,isHandleNodeTreeRenderEnd:!1,beInsertNodeUid:"",insertType:"",isInTreArea:!1,isAfterCreateNewNode:!1}},computed:{...Object(se["d"])(["isDark","isReadonly"])},created(){window.addEventListener("keydown",this.onKeyDown),this.$bus.$on("data_change",this.handleDataChange),this.$bus.$on("node_tree_render_end",this.handleNodeTreeRenderEnd),this.$bus.$on("hide_text_edit",this.handleHideTextEdit)},mounted(){this.refresh()},beforeDestroy(){window.removeEventListener("keydown",this.onKeyDown),this.$bus.$off("data_change",this.handleDataChange),this.$bus.$off("node_tree_render_end",this.handleNodeTreeRenderEnd),this.$bus.$off("hide_text_edit",this.handleHideTextEdit)},methods:{handleHideTextEdit(){this.notHandleDataChange&&(this.notHandleDataChange=!1,this.refresh())},handleDataChange(){this.notHandleDataChange?this.notHandleDataChange=!1:this.isAfterCreateNewNode?this.isAfterCreateNewNode=!1:this.refresh()},handleNodeTreeRenderEnd(){if(this.insertType)return this[this.insertType](),void(this.insertType="");this.isHandleNodeTreeRenderEnd&&(this.isHandleNodeTreeRenderEnd=!1,this.refresh(),this.$nextTick(()=>{this.afterCreateNewNode()}))},refresh(){let e=this.mindMap.getData();e.root=!0;let t=e=>{let n=(e.data.richText?Object(v["O"])(e.data.text):e.data.text).replaceAll(/\n/g,"
");n=Object(v["E"])(n),e.textCache=n,e.label=n,e.uid=e.data.uid,e.children&&e.children.length>0&&e.children.forEach(e=>{t(e)})};t(e),this.data=[e]},afterCreateNewNode(){let e=this.beInsertNodeUid;if(e&&this.$refs.tree)try{this.isAfterCreateNewNode=!0,this.$refs.tree.setCurrentKey(e);let t=this.$refs.tree.getNode(e);this.onCurrentChange(t.data),this.onClick(t.data);const n=document.querySelector(`.customNode[data-id="${e}"] .nodeEdit`);if(n){let e=window.getSelection(),t=document.createRange();t.selectNodeContents(n),e.removeAllRanges(),e.addRange(t);let r=n.offsetTop;this.$emit("scrollTo",r)}}catch(t){console.log(t)}this.beInsertNodeUid=""},checkAllowDrag(e){return!e.data.root},onBlur(e,t){if(t.data.textCache===e.target.innerHTML)return void(this.insertType&&(this[this.insertType](),this.insertType=""));const n=t.data.data.richText,r=n?e.target.innerHTML:e.target.innerText,i=this.mindMap.renderer.findNodeByUid(t.data.uid);i&&(this.notHandleDataChange=!0,n?i.setText(Object(v["bb"])(r),!0,!0):i.setText(r))},onPaste(e){e.preventDefault();const t=window.getSelection();if(!t.rangeCount)return;t.deleteFromDocument();let n=(e.clipboardData||window.clipboardData).getData("text");n=Object(v["z"])(n),n=n.replaceAll(/\n/g,"");const r=document.createTextNode(n);t.getRangeAt(0).insertNode(r),t.collapseToEnd()},getKey(){return Math.random()},onNodeInputKeydown(e){13!==e.keyCode||e.shiftKey||(e.preventDefault(),this.insertType="insertNode",e.target.blur()),9===e.keyCode&&(e.preventDefault(),this.insertType="insertChildNode",e.target.blur())},insertNode(){this.notHandleDataChange=!0,this.isHandleNodeTreeRenderEnd=!0,this.beInsertNodeUid=Object(v["m"])(),this.mindMap.execCommand("INSERT_NODE",!1,[],{uid:this.beInsertNodeUid})},insertChildNode(){this.notHandleDataChange=!0,this.isHandleNodeTreeRenderEnd=!0,this.beInsertNodeUid=Object(v["m"])(),this.mindMap.execCommand("INSERT_CHILD_NODE",!1,[],{uid:this.beInsertNodeUid})},onClick(e){this.notHandleDataChange=!0;const t=this.mindMap.renderer.findNodeByUid(e.uid);t&&t.nodeData.data.isActive||this.mindMap.execCommand("GO_TARGET_NODE",e.uid,()=>{this.notHandleDataChange=!1})},onNodeDrop(e,t,n){this.notHandleDataChange=!0;const r=this.mindMap.renderer.findNodeByUid(e.data.uid),i=this.mindMap.renderer.findNodeByUid(t.data.uid);if(r&&i)switch(n){case"before":this.mindMap.execCommand("INSERT_BEFORE",r,i);break;case"after":this.mindMap.execCommand("INSERT_AFTER",r,i);break;case"inner":this.mindMap.execCommand("MOVE_NODE_TO",r,i);break;default:break}},onCurrentChange(e){this.currentData=e},onKeyDown(e){if(this.isInTreArea&&[46,8].includes(e.keyCode)&&this.currentData){e.stopPropagation(),this.mindMap.renderer.textEdit.hideEditTextBox();const t=this.mindMap.renderer.findNodeByUid(this.currentData.uid);t&&!t.isRoot&&(this.notHandleDataChange=!0,this.$refs.tree.remove(this.currentData),this.mindMap.execCommand("REMOVE_NODE",[t]))}}}}),fp=dp,pp=(n("5ee0"),Object(p["a"])(fp,up,hp,!1,null,"887458fa",null)),mp=pp.exports,gp={name:"OutlineSidebar",components:{Sidebar:cp,Outline:mp},props:{mindMap:{type:Object}},computed:{...Object(se["d"])(["activeSidebar","isOutlineEdit","isDark"])},watch:{activeSidebar(e){this.$refs.sidebar.show="outline"===e}},methods:{...Object(se["c"])(["setIsOutlineEdit","setActiveSidebar"]),onChangeToOutlineEdit(){this.setActiveSidebar(""),this.setIsOutlineEdit(!0)},onScrollTo(e){let t=this.$refs.sidebar.getEl(),n=t.offsetHeight,r=t.scrollTop;e>r+n&&t.scrollTo(0,e-n/2)}}},vp=gp,bp=(n("02c6"),Object(p["a"])(vp,np,rp,!1,null,"8cff0f40",null)),yp=bp.exports,wp=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("style.title")}},[e.activeNodes.length>0?t("div",{staticClass:"styleBox",class:{isDark:e.isDark}},[t("div",{staticClass:"sidebarContent"},[t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("style.text")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.fontFamily")))]),t("el-select",{attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("fontFamily")}},model:{value:e.style.fontFamily,callback:function(t){e.$set(e.style,"fontFamily",t)},expression:"style.fontFamily"}},e._l(e.fontFamilyList,(function(e){return t("el-option",{key:e.value,style:{fontFamily:e.value},attrs:{label:e.name,value:e.value}})})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.fontSize")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("fontSize")}},model:{value:e.style.fontSize,callback:function(t){e.$set(e.style,"fontSize",t)},expression:"style.fontSize"}},e._l(e.fontSizeList,(function(e){return t("el-option",{key:e,style:{fontSize:e+"px"},attrs:{label:e,value:e}})})),1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.lineHeight")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("lineHeight")}},model:{value:e.style.lineHeight,callback:function(t){e.$set(e.style,"lineHeight",t)},expression:"style.lineHeight"}},e._l(e.lineHeightList,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"btnGroup"},[t("el-tooltip",{attrs:{content:e.$t("style.color"),placement:"bottom"}},[t("div",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],staticClass:"styleBtn"},[e._v(" A "),t("span",{staticClass:"colorShow",style:{backgroundColor:e.style.color||"#eee"}})])]),t("el-tooltip",{attrs:{content:e.$t("style.addFontWeight"),placement:"bottom"}},[t("div",{staticClass:"styleBtn",class:{actived:"bold"===e.style.fontWeight},on:{click:e.toggleFontWeight}},[e._v(" B ")])]),t("el-tooltip",{attrs:{content:e.$t("style.italic"),placement:"bottom"}},[t("div",{staticClass:"styleBtn i",class:{actived:"italic"===e.style.fontStyle},on:{click:e.toggleFontStyle}},[e._v(" I ")])]),t("el-tooltip",{attrs:{content:e.$t("style.textDecoration"),placement:"bottom"}},[t("div",{directives:[{name:"popover",rawName:"v-popover:popover2",arg:"popover2"}],staticClass:"styleBtn u",style:{textDecoration:e.style.textDecoration||"none"}},[e._v(" U ")])])],1),t("el-popover",{ref:"popover",attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.style.color},on:{change:e.changeFontColor}})],1),t("el-popover",{ref:"popover2",attrs:{placement:"bottom",trigger:"hover"}},[t("el-radio-group",{attrs:{size:"mini"},on:{change:function(t){return e.update("textDecoration")}},model:{value:e.style.textDecoration,callback:function(t){e.$set(e.style,"textDecoration",t)},expression:"style.textDecoration"}},[t("el-radio-button",{attrs:{label:"none"}},[e._v(e._s(e.$t("style.none")))]),t("el-radio-button",{attrs:{label:"underline"}},[e._v(e._s(e.$t("style.underline")))]),t("el-radio-button",{attrs:{label:"line-through"}},[e._v(e._s(e.$t("style.lineThrough")))]),t("el-radio-button",{attrs:{label:"overline"}},[e._v(e._s(e.$t("style.overline")))])],1)],1)],1),t("div",{staticClass:"title"},[e._v(e._s(e.$t("style.border")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover3",arg:"popover3"}],staticClass:"block",style:{width:"80px",backgroundColor:e.style.borderColor}}),t("el-popover",{ref:"popover3",attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.style.borderColor},on:{change:e.changeBorderColor}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.style")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("borderDasharray")}},model:{value:e.style.borderDasharray,callback:function(t){e.$set(e.style,"borderDasharray",t)},expression:"style.borderDasharray"}},e._l(e.borderDasharrayList,(function(n){return t("el-option",{key:n.value,attrs:{label:n.name,value:n.value}},[t("svg",{attrs:{width:"120",height:"34"}},[t("line",{attrs:{x1:"10",y1:"17",x2:"110",y2:"17","stroke-width":"2",stroke:e.style.borderDasharray===n.value?"#409eff":e.isDark?"#fff":"#000","stroke-dasharray":n.value}})])])})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.width")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("borderWidth")}},model:{value:e.style.borderWidth,callback:function(t){e.$set(e.style,"borderWidth",t)},expression:"style.borderWidth"}},e._l(e.borderWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1),t("div",{directives:[{name:"show",rawName:"v-show",value:"rectangle"===e.style.shape,expression:"style.shape === 'rectangle'"}],staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.borderRadius")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("borderRadius")}},model:{value:e.style.borderRadius,callback:function(t){e.$set(e.style,"borderRadius",t)},expression:"style.borderRadius"}},e._l(e.borderRadiusList,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1)]),t("div",{staticClass:"title"},[e._v(e._s(e.$t("style.background")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover4",arg:"popover4"}],staticClass:"block",style:{backgroundColor:e.style.fillColor}}),t("el-popover",{ref:"popover4",attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.style.fillColor},on:{change:e.changeFillColor}})],1)],1)]),t("div",{staticClass:"title"},[e._v(e._s(e.$t("style.shape")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.shape")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("shape")}},model:{value:e.style.shape,callback:function(t){e.$set(e.style,"shape",t)},expression:"style.shape"}},e._l(e.shapeList,(function(n){return t("el-option",{key:n.value,attrs:{label:n.name,value:n.value}},[t("svg",{staticStyle:{"margin-top":"5px"},attrs:{width:"60",height:"26"}},[t("path",{attrs:{d:e.shapeListMap[n.value],fill:"none",stroke:e.style.shape===n.value?"#409eff":e.isDark?"#fff":"#000","stroke-width":"2"}})])])})),1)],1)]),t("div",{staticClass:"title"},[e._v(e._s(e.$t("style.line")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"block",style:{width:"80px",backgroundColor:e.style.lineColor}}),t("el-popover",{ref:"popover5",attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.style.lineColor},on:{change:e.changeLineColor}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.style")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("lineDasharray")}},model:{value:e.style.lineDasharray,callback:function(t){e.$set(e.style,"lineDasharray",t)},expression:"style.lineDasharray"}},e._l(e.borderDasharrayList,(function(n){return t("el-option",{key:n.value,attrs:{label:n.name,value:n.value}},[t("svg",{attrs:{width:"120",height:"34"}},[t("line",{attrs:{x1:"10",y1:"17",x2:"110",y2:"17","stroke-width":"2",stroke:e.style.lineDasharray===n.value?"#409eff":e.isDark?"#fff":"#000","stroke-dasharray":n.value}})])])})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.width")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("lineWidth")}},model:{value:e.style.lineWidth,callback:function(t){e.$set(e.style,"lineWidth",t)},expression:"style.lineWidth"}},e._l(e.borderWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("style.nodePadding")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.horizontal")))]),t("el-slider",{staticStyle:{width:"200px"},on:{change:function(t){return e.update("paddingX")}},model:{value:e.style.paddingX,callback:function(t){e.$set(e.style,"paddingX",t)},expression:"style.paddingX"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("style.vertical")))]),t("el-slider",{staticStyle:{width:"200px"},on:{change:function(t){return e.update("paddingY")}},model:{value:e.style.paddingY,callback:function(t){e.$set(e.style,"paddingY",t)},expression:"style.paddingY"}})],1)])])]):t("div",{staticClass:"tipBox"},[t("div",{staticClass:"tipIcon iconfont icontianjiazijiedian"}),t("div",{staticClass:"tipText"},[e._v("请选择一个节点")])])])},xp=[],kp=function(){var e=this,t=e._self._c;return t("div",{staticClass:"colorContainer",class:{isDark:e.isDark}},[t("div",{staticClass:"colorList"},e._l(e.colorList,(function(n){return t("span",{key:n,staticClass:"colorItem iconfont",class:{icontouming:"transparent"===n},style:{backgroundColor:n},on:{click:function(t){return e.clickColorItem(n)}}})})),0),t("div",{staticClass:"moreColor"},[t("span",[e._v(e._s(e.$t("color.moreColor")))]),t("el-color-picker",{attrs:{size:"mini"},on:{change:e.changeColor},model:{value:e.selectColor,callback:function(t){e.selectColor=t},expression:"selectColor"}})],1)])},Ap=[],Cp={name:"Color",props:{color:{type:String,default:""}},data(){return{colorList:he,selectColor:""}},computed:{...Object(se["d"])(["isDark"])},watch:{color(){this.selectColor=this.color}},created(){this.selectColor=this.color},methods:{clickColorItem(e){this.$emit("change",e)},changeColor(){this.$emit("change",this.selectColor)}}},Ep=Cp,Sp=(n("ce80"),Object(p["a"])(Ep,kp,Ap,!1,null,"530a160f",null)),Tp=Sp.exports,Np={name:"Style",components:{Sidebar:cp,Color:Tp},data(){return{fontSizeList:ce,borderWidthList:de,borderRadiusList:pe,lineHeightList:ue,activeNodes:[],style:{shape:"",paddingX:0,paddingY:0,color:"",fontFamily:"",fontSize:"",lineHeight:"",textDecoration:"",fontWeight:"",fontStyle:"",borderWidth:"",borderColor:"",fillColor:"",borderDasharray:"",borderRadius:"",lineColor:"",lineDasharray:"",lineWidth:""}}},computed:{...Object(se["d"])(["activeSidebar","isDark"]),fontFamilyList(){return je[this.$i18n.locale]||je.zh},borderDasharrayList(){return He[this.$i18n.locale]||He.zh},shapeList(){return Ke[this.$i18n.locale]||Ke.zh},shapeListMap(){return Xe[this.$i18n.locale]||Xe.zh}},watch:{activeSidebar(e){this.$refs.sidebar.show="nodeStyle"===e}},created(){this.$bus.$on("node_active",this.onNodeActive)},beforeDestroy(){this.$bus.$off("node_active",this.onNodeActive)},methods:{onNodeActive(...e){this.$nextTick(()=>{this.activeNodes=[...e[1]],this.initNodeStyle()})},initNodeStyle(){this.activeNodes.length<=0||["shape","paddingX","paddingY","color","fontFamily","fontSize","lineHeight","textDecoration","fontWeight","fontStyle","borderWidth","borderColor","fillColor","borderDasharray","borderRadius","lineColor","lineDasharray","lineWidth"].forEach(e=>{this.style[e]=this.activeNodes[0].getStyle(e,!1)})},update(e){this.activeNodes.forEach(t=>{t.setStyle(e,this.style[e])})},toggleFontWeight(){"bold"===this.style.fontWeight?this.style.fontWeight="normal":this.style.fontWeight="bold",this.update("fontWeight")},toggleFontStyle(){"italic"===this.style.fontStyle?this.style.fontStyle="normal":this.style.fontStyle="italic",this.update("fontStyle")},changeFontColor(e){this.style.color=e,this.update("color")},changeBorderColor(e){this.style.borderColor=e,this.update("borderColor")},changeLineColor(e){this.style.lineColor=e,this.update("lineColor")},changeFillColor(e){this.style.fillColor=e,this.update("fillColor")}}},Mp=Np,Lp=(n("1ab0"),n("71e2"),Object(p["a"])(Mp,wp,xp,!1,null,"4a300153",null)),Op=Lp.exports,Dp=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("baseStyle.title")}},[e.data?t("div",{staticClass:"sidebarContent",class:{isDark:e.isDark}},[t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.background")))]),t("div",{staticClass:"row"},[t("el-tabs",{staticClass:"tab",model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[t("el-tab-pane",{attrs:{label:e.$t("baseStyle.color"),name:"color"}},[t("Color",{attrs:{color:e.style.backgroundColor},on:{change:t=>{e.update("backgroundColor",t)}}})],1),t("el-tab-pane",{attrs:{label:e.$t("baseStyle.image"),name:"image"}},[t("ImgUpload",{staticClass:"imgUpload",on:{change:t=>{e.update("backgroundImage",t)}},model:{value:e.style.backgroundImage,callback:function(t){e.$set(e.style,"backgroundImage",t)},expression:"style.backgroundImage"}}),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.imageRepeat")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("backgroundRepeat",t)}},model:{value:e.style.backgroundRepeat,callback:function(t){e.$set(e.style,"backgroundRepeat",t)},expression:"style.backgroundRepeat"}},e._l(e.backgroundRepeatList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.imagePosition")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("backgroundPosition",t)}},model:{value:e.style.backgroundPosition,callback:function(t){e.$set(e.style,"backgroundPosition",t)},expression:"style.backgroundPosition"}},e._l(e.backgroundPositionList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.imageSize")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("backgroundSize",t)}},model:{value:e.style.backgroundSize,callback:function(t){e.$set(e.style,"backgroundSize",t)},expression:"style.backgroundSize"}},e._l(e.backgroundSizeList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1)],1)],1)],1),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.line")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover",arg:"popover"}],staticClass:"block",style:{backgroundColor:e.style.lineColor}}),t("el-popover",{ref:"popover",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.lineColor},on:{change:t=>{e.update("lineColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.width")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("lineWidth",t)}},model:{value:e.style.lineWidth,callback:function(t){e.$set(e.style,"lineWidth",t)},expression:"style.lineWidth"}},e._l(e.lineWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.style")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("lineStyle",t)}},model:{value:e.style.lineStyle,callback:function(t){e.$set(e.style,"lineStyle",t)},expression:"style.lineStyle"}},e._l(e.lineStyleList,(function(n){return t("el-option",{key:n.value,staticClass:"lineStyleOption",class:{isDark:e.isDark,isSelected:e.style.lineStyle===n.value},attrs:{label:n.name,value:n.value},domProps:{innerHTML:e._s(e.lineStyleMap[n.value])}})})),1)],1),"curve"===e.style.lineStyle?t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.rootStyle")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("rootLineKeepSameInCurve",t)}},model:{value:e.style.rootLineKeepSameInCurve,callback:function(t){e.$set(e.style,"rootLineKeepSameInCurve",t)},expression:"style.rootLineKeepSameInCurve"}},e._l(e.rootLineKeepSameInCurveList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1):e._e()]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.lineOfOutline")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover2",arg:"popover2"}],staticClass:"block",style:{backgroundColor:e.style.generalizationLineColor}}),t("el-popover",{ref:"popover2",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.generalizationLineColor},on:{change:t=>{e.update("generalizationLineColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.width")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("generalizationLineWidth",t)}},model:{value:e.style.generalizationLineWidth,callback:function(t){e.$set(e.style,"generalizationLineWidth",t)},expression:"style.generalizationLineWidth"}},e._l(e.lineWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.associativeLine")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.associativeLineColor")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover4",arg:"popover4"}],staticClass:"block",style:{backgroundColor:e.style.associativeLineColor}}),t("el-popover",{ref:"popover4",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.associativeLineColor},on:{change:t=>{e.update("associativeLineColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.associativeLineWidth")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("associativeLineWidth",t)}},model:{value:e.style.associativeLineWidth,callback:function(t){e.$set(e.style,"associativeLineWidth",t)},expression:"style.associativeLineWidth"}},e._l(e.lineWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.associativeLineActiveColor")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover5",arg:"popover5"}],staticClass:"block",style:{backgroundColor:e.style.associativeLineActiveColor}}),t("el-popover",{ref:"popover5",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.associativeLineActiveColor},on:{change:t=>{e.update("associativeLineActiveColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.associativeLineActiveWidth")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.update("associativeLineActiveWidth",t)}},model:{value:e.style.associativeLineActiveWidth,callback:function(t){e.$set(e.style,"associativeLineActiveWidth",t)},expression:"style.associativeLineActiveWidth"}},e._l(e.lineWidthList,(function(n){return t("el-option",{key:n,attrs:{label:n,value:n}},[n>0?t("span",{staticClass:"borderLine",class:{isDark:e.isDark},style:{height:n+"px"}}):e._e()])})),1)],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.associativeLineText")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.fontFamily")))]),t("el-select",{attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("associativeLineTextFontFamily",t)}},model:{value:e.style.associativeLineTextFontFamily,callback:function(t){e.$set(e.style,"associativeLineTextFontFamily",t)},expression:"style.associativeLineTextFontFamily"}},e._l(e.fontFamilyList,(function(e){return t("el-option",{key:e.value,style:{fontFamily:e.value},attrs:{label:e.name,value:e.value}})})),1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.color")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover6",arg:"popover6"}],staticClass:"block",style:{backgroundColor:e.style.associativeLineTextColor}}),t("el-popover",{ref:"popover6",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.style.associativeLineTextColor},on:{change:t=>{e.update("associativeLineTextColor",t)}}})],1)],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.fontSize")))]),t("el-select",{staticStyle:{width:"80px"},attrs:{size:"mini",placeholder:""},on:{change:function(t){return e.update("associativeLineTextFontSize",t)}},model:{value:e.style.associativeLineTextFontSize,callback:function(t){e.$set(e.style,"associativeLineTextFontSize",t)},expression:"style.associativeLineTextFontSize"}},e._l(e.fontSizeList,(function(e){return t("el-option",{key:e,style:{fontSize:e+"px"},attrs:{label:e,value:e}})})),1)],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.nodeBorderType")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:t=>{e.update("nodeUseLineStyle",t)}},model:{value:e.style.nodeUseLineStyle,callback:function(t){e.$set(e.style,"nodeUseLineStyle",t)},expression:"style.nodeUseLineStyle"}},[e._v(e._s(e.$t("baseStyle.nodeUseLineStyle")))])],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.nodePadding")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.horizontal")))]),t("el-slider",{staticStyle:{width:"200px"},on:{change:t=>{e.update("paddingX",t)}},model:{value:e.style.paddingX,callback:function(t){e.$set(e.style,"paddingX",t)},expression:"style.paddingX"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.vertical")))]),t("el-slider",{staticStyle:{width:"200px"},on:{change:t=>{e.update("paddingY",t)}},model:{value:e.style.paddingY,callback:function(t){e.$set(e.style,"paddingY",t)},expression:"style.paddingY"}})],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.image")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.maximumWidth")))]),t("el-slider",{staticStyle:{width:"140px"},attrs:{min:10,max:300},on:{change:t=>{e.update("imgMaxWidth",t)}},model:{value:e.style.imgMaxWidth,callback:function(t){e.$set(e.style,"imgMaxWidth",t)},expression:"style.imgMaxWidth"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.maximumHeight")))]),t("el-slider",{staticStyle:{width:"140px"},attrs:{min:10,max:300},on:{change:t=>{e.update("imgMaxHeight",t)}},model:{value:e.style.imgMaxHeight,callback:function(t){e.$set(e.style,"imgMaxHeight",t)},expression:"style.imgMaxHeight"}})],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.icon")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.size")))]),t("el-slider",{staticStyle:{width:"200px"},attrs:{min:12,max:50},on:{change:t=>{e.update("iconSize",t)}},model:{value:e.style.iconSize,callback:function(t){e.$set(e.style,"iconSize",t)},expression:"style.iconSize"}})],1)]),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.nodeMargin")))]),t("div",{staticClass:"row column"},[t("el-tabs",{staticClass:"tab",on:{"tab-click":e.initMarginStyle},model:{value:e.marginActiveTab,callback:function(t){e.marginActiveTab=t},expression:"marginActiveTab"}},[t("el-tab-pane",{attrs:{label:e.$t("baseStyle.level2Node"),name:"second"}}),t("el-tab-pane",{attrs:{label:e.$t("baseStyle.belowLevel2Node"),name:"node"}})],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.horizontal")))]),t("el-slider",{staticStyle:{width:"200px"},attrs:{max:200},on:{change:t=>{e.updateMargin("marginX",t)}},model:{value:e.style.marginX,callback:function(t){e.$set(e.style,"marginX",t)},expression:"style.marginX"}})],1),t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.vertical")))]),t("el-slider",{staticStyle:{width:"200px"},attrs:{max:200},on:{change:t=>{e.updateMargin("marginY",t)}},model:{value:e.style.marginY,callback:function(t){e.$set(e.style,"marginY",t)},expression:"style.marginY"}})],1)],1),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.watermark")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:e.watermarkShowChange},model:{value:e.watermarkConfig.show,callback:function(t){e.$set(e.watermarkConfig,"show",t)},expression:"watermarkConfig.show"}},[e._v(e._s(e.$t("baseStyle.showWatermark")))])],1)]),e.watermarkConfig.show?[t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkText")))]),t("el-input",{attrs:{size:"small"},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.text,callback:function(t){e.$set(e.watermarkConfig,"text",t)},expression:"watermarkConfig.text"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkTextColor")))]),t("span",{directives:[{name:"popover",rawName:"v-popover:popover3",arg:"popover3"}],staticClass:"block",style:{backgroundColor:e.watermarkConfig.textStyle.color}}),t("el-popover",{ref:"popover3",attrs:{placement:"bottom",trigger:"click"}},[t("Color",{attrs:{color:e.watermarkConfig.textStyle.color},on:{change:t=>{e.watermarkConfig.textStyle.color=t,e.updateWatermarkConfig()}}})],1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkTextOpacity")))]),t("el-slider",{staticStyle:{width:"170px"},attrs:{min:0,max:1,step:.1},on:{change:e.updateWatermarkConfig},model:{value:e.watermarkConfig.textStyle.opacity,callback:function(t){e.$set(e.watermarkConfig.textStyle,"opacity",t)},expression:"watermarkConfig.textStyle.opacity"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkTextFontSize")))]),t("el-input-number",{attrs:{size:"small",min:0,max:50,step:1},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.textStyle.fontSize,callback:function(t){e.$set(e.watermarkConfig.textStyle,"fontSize",t)},expression:"watermarkConfig.textStyle.fontSize"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkAngle")))]),t("el-input-number",{attrs:{size:"small",min:0,max:90,step:10},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.angle,callback:function(t){e.$set(e.watermarkConfig,"angle",t)},expression:"watermarkConfig.angle"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkLineSpacing")))]),t("el-input-number",{attrs:{size:"small",step:10},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.lineSpacing,callback:function(t){e.$set(e.watermarkConfig,"lineSpacing",t)},expression:"watermarkConfig.lineSpacing"}})],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.watermarkTextSpacing")))]),t("el-input-number",{attrs:{size:"small",step:10},on:{change:e.updateWatermarkConfig},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.watermarkConfig.textSpacing,callback:function(t){e.$set(e.watermarkConfig,"textSpacing",t)},expression:"watermarkConfig.textSpacing"}})],1)])]:e._e(),t("div",{staticClass:"title noTop"},[e._v(e._s(e.$t("baseStyle.otherConfig")))]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:t=>{e.updateOtherConfig("enableFreeDrag",t)}},model:{value:e.config.enableFreeDrag,callback:function(t){e.$set(e.config,"enableFreeDrag",t)},expression:"config.enableFreeDrag"}},[e._v(e._s(e.$t("baseStyle.enableFreeDrag")))])],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:e.enableNodeRichTextChange},model:{value:e.enableNodeRichText,callback:function(t){e.enableNodeRichText=t},expression:"enableNodeRichText"}},[e._v(e._s(e.$t("baseStyle.isEnableNodeRichText")))])],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.mousewheelAction")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.updateOtherConfig("mousewheelAction",t)}},model:{value:e.config.mousewheelAction,callback:function(t){e.$set(e.config,"mousewheelAction",t)},expression:"config.mousewheelAction"}},[t("el-option",{attrs:{label:e.$t("baseStyle.zoomView"),value:"zoom"}}),t("el-option",{attrs:{label:e.$t("baseStyle.moveViewUpDown"),value:"move"}})],1)],1)]),"zoom"===e.config.mousewheelAction?t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.mousewheelZoomActionReverse")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.updateOtherConfig("mousewheelZoomActionReverse",t)}},model:{value:e.config.mousewheelZoomActionReverse,callback:function(t){e.$set(e.config,"mousewheelZoomActionReverse",t)},expression:"config.mousewheelZoomActionReverse"}},[t("el-option",{attrs:{label:e.$t("baseStyle.mousewheelZoomActionReverse1"),value:!1}}),t("el-option",{attrs:{label:e.$t("baseStyle.mousewheelZoomActionReverse2"),value:!0}})],1)],1)]):e._e(),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("baseStyle.createNewNodeBehavior")))]),t("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:""},on:{change:t=>{e.updateOtherConfig("createNewNodeBehavior",t)}},model:{value:e.config.createNewNodeBehavior,callback:function(t){e.$set(e.config,"createNewNodeBehavior",t)},expression:"config.createNewNodeBehavior"}},[t("el-option",{attrs:{label:e.$t("baseStyle.default"),value:"default"}}),t("el-option",{attrs:{label:e.$t("baseStyle.notActive"),value:"notActive"}}),t("el-option",{attrs:{label:e.$t("baseStyle.activeOnly"),value:"activeOnly"}})],1)],1)]),t("div",{staticClass:"row"},[t("div",{staticClass:"rowItem"},[t("el-checkbox",{on:{change:function(t){return e.updateLocalConfig("isShowScrollbar",t)}},model:{value:e.localConfigs.isShowScrollbar,callback:function(t){e.$set(e.localConfigs,"isShowScrollbar",t)},expression:"localConfigs.isShowScrollbar"}},[e._v(e._s(e.$t("baseStyle.isShowScrollbar")))])],1)])],2):e._e()])},Pp=[],Ip={name:"BaseStyle",components:{Sidebar:cp,Color:Tp,ImgUpload:g},props:{data:{type:[Object,null],default:null},mindMap:{type:Object}},data(){return{lineWidthList:me,fontSizeList:ce,activeTab:"color",marginActiveTab:"second",style:{backgroundColor:"",lineColor:"",lineWidth:"",lineStyle:"",rootLineKeepSameInCurve:"",generalizationLineWidth:"",generalizationLineColor:"",associativeLineColor:"",associativeLineWidth:0,associativeLineActiveWidth:0,associativeLineActiveColor:"",associativeLineTextFontSize:0,associativeLineTextColor:"",associativeLineTextFontFamily:"",paddingX:0,paddingY:0,imgMaxWidth:0,imgMaxHeight:0,iconSize:0,backgroundImage:"",backgroundRepeat:"no-repeat",backgroundPosition:"",backgroundSize:"",marginX:0,marginY:0,nodeUseLineStyle:!1},config:{enableFreeDrag:!1,mousewheelAction:"zoom",mousewheelZoomActionReverse:!1,createNewNodeBehavior:"default"},watermarkConfig:{show:!1,text:"",lineSpacing:100,textSpacing:100,angle:30,textStyle:{color:"",opacity:0,fontSize:1}},updateWatermarkTimer:null,enableNodeRichText:!0,localConfigs:{isShowScrollbar:!1}}},computed:{...Object(se["d"])(["activeSidebar","localConfig","isDark"]),lineStyleList(){return Ue[this.$i18n.locale]||Ue.zh},rootLineKeepSameInCurveList(){return Ge[this.$i18n.locale]||Ge.zh},backgroundRepeatList(){return We[this.$i18n.locale]||We.zh},backgroundPositionList(){return Ve[this.$i18n.locale]||Ve.zh},backgroundSizeList(){return Ye[this.$i18n.locale]||Ye.zh},fontFamilyList(){return je[this.$i18n.locale]||je.zh},lineStyleMap(){return qe[this.$i18n.locale]||qe.zh}},watch:{activeSidebar(e){"baseStyle"===e?(this.$refs.sidebar.show=!0,this.initStyle(),this.initConfig(),this.initWatermark()):this.$refs.sidebar.show=!1}},created(){this.initLoacalConfig(),this.$bus.$on("setData",this.onSetData)},beforeDestroy(){this.$bus.$off("setData",this.onSetData)},methods:{...Object(se["c"])(["setLocalConfig"]),onSetData(){"baseStyle"===this.activeSidebar&&setTimeout(()=>{this.initStyle()},0)},initStyle(){["backgroundColor","lineWidth","lineStyle","rootLineKeepSameInCurve","lineColor","generalizationLineWidth","generalizationLineColor","associativeLineColor","associativeLineWidth","associativeLineActiveWidth","associativeLineActiveColor","associativeLineTextFontSize","associativeLineTextColor","associativeLineTextFontFamily","paddingX","paddingY","imgMaxWidth","imgMaxHeight","iconSize","backgroundImage","backgroundRepeat","backgroundPosition","backgroundSize","nodeUseLineStyle"].forEach(e=>{this.style[e]=this.mindMap.getThemeConfig(e),"backgroundImage"===e&&"none"===this.style[e]&&(this.style[e]="")}),this.initMarginStyle()},initConfig(){["enableFreeDrag","mousewheelAction","mousewheelZoomActionReverse","createNewNodeBehavior"].forEach(e=>{this.config[e]=this.mindMap.getConfig(e)})},initLoacalConfig(){this.enableNodeRichText=this.localConfig.openNodeRichText,this.mousewheelAction=this.localConfig.mousewheelAction,this.mousewheelZoomActionReverse=this.localConfig.mousewheelZoomActionReverse,["isShowScrollbar"].forEach(e=>{this.localConfigs[e]=this.localConfig[e]})},initWatermark(){let e=this.mindMap.getConfig("watermarkConfig");["text","lineSpacing","textSpacing","angle"].forEach(t=>{this.watermarkConfig[t]=e[t]}),this.watermarkConfig.show=!!e.text,this.watermarkConfig.textStyle={...e.textStyle}},initMarginStyle(){["marginX","marginY"].forEach(e=>{this.style[e]=this.mindMap.getThemeConfig()[this.marginActiveTab][e]})},update(e,t){this.style[e]="backgroundImage"===e&&"none"===t?"":t,this.data.theme.config[e]=t,this.$bus.$emit("showLoading"),this.mindMap.setThemeConfig(this.data.theme.config),Object(Wi["d"])({theme:{template:this.mindMap.getTheme(),config:this.data.theme.config}})},updateOtherConfig(e,t){this.mindMap.updateConfig({[e]:t}),this.data.config=this.data.config||{},this.data.config[e]=t,Object(Wi["d"])({config:this.data.config})},updateWatermarkConfig(){clearTimeout(this.updateWatermarkTimer),this.updateWatermarkTimer=setTimeout(()=>{let{show:e,...t}=this.watermarkConfig;this.mindMap.watermark.updateWatermark({...t}),this.data.config=this.data.config||{},this.data.config.watermarkConfig=this.mindMap.getConfig("watermarkConfig"),Object(Wi["d"])({config:this.data.config})},300)},updateMargin(e,t){this.style[e]=t,this.data.theme.config[this.marginActiveTab]||(this.data.theme.config[this.marginActiveTab]={}),this.data.theme.config[this.marginActiveTab][e]=t,this.mindMap.setThemeConfig(this.data.theme.config),Object(Wi["d"])({theme:{template:this.mindMap.getTheme(),config:this.data.theme.config}})},watermarkShowChange(e){if(e){let e=this.watermarkConfig.text||this.$t("baseStyle.watermarkDefaultText");this.watermarkConfig.text=e}else this.watermarkConfig.text="";this.updateWatermarkConfig()},enableNodeRichTextChange(e){this.mindMap.renderer.textEdit.hideEditTextBox(),this.setLocalConfig({openNodeRichText:e})},updateLocalConfig(e,t){this.setLocalConfig({[e]:t})}}},Rp=Ip,Fp=(n("a9e9"),n("feb0"),Object(p["a"])(Rp,Dp,Pp,!1,null,"46bf1066",null)),zp=Fp.exports,Bp=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("theme.title")}},[t("div",{staticClass:"themeList",class:{isDark:e.isDark}},[t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},e._l(e.groupList,(function(e){return t("el-tab-pane",{key:e.name,attrs:{label:e.name,name:e.name}})})),1),e._l(e.currentList,(function(n){return t("div",{key:n.value,staticClass:"themeItem",class:{active:n.value===e.theme},on:{click:function(t){return e.useTheme(n)}}},[t("div",{staticClass:"imgBox"},[t("img",{attrs:{src:e.themeMap[n.value],alt:""}})]),t("div",{staticClass:"name"},[e._v(e._s(n.name))])])}))],2)])},_p=[];const jp={logicalStructure:n("58cf"),mindMap:n("7992"),organizationStructure:n("57cb"),catalogOrganization:n("bea9"),timeline:n("0cfe"),timeline2:n("4ec2"),fishbone:n("3c2a"),verticalTimeline:n("b47d")},Hp={default:n("facf"),classic:n("5e3f"),minions:n("a57a"),pinkGrape:n("4f8c"),mint:n("d046"),gold:n("7e82"),vitalityOrange:n("7080"),greenLeaf:n("9ed8"),dark2:n("4514"),skyGreen:n("6276"),classic2:n("9876d"),classic3:n("86d9"),classic4:n("5abe"),classicGreen:n("1474"),classicBlue:n("8b92"),blueSky:n("1560"),brainImpairedPink:n("2f97"),dark:n("0d42"),earthYellow:n("8f14"),freshGreen:n("1f76"),freshRed:n("9543"),romanticPurple:n("5843"),simpleBlack:n("0754"),courseGreen:n("3cc4"),coffee:n("dbc4"),redSpirit:n("bc06"),blackHumour:n("b645"),lateNightOffice:n("6ad8"),blackGold:n("1b88"),autumn:n("7f95"),avocado:n("135f"),orangeJuice:n("be49"),oreo:n("daf1"),shallowSea:n("b0a0"),lemonBubbles:n("cb07"),rose:n("0536"),seaBlueLine:n("6c83"),neonLamp:n("1397"),darkNightLceBlade:n("aa39"),morandi:n("9192"),classic5:n("e9d1"),dark3:n("a7a61"),dark4:n("e497"),cactus:n("5a50")},Up=["a^2","a_2","a^{2+2}","a_{i,j}","x_2^3","\\overbrace{1+2+\\cdots+100}","\\sum_{k=1}^N k^2","\\lim_{n \\to \\infty}x_n","\\int_{-N}^{N} e^x\\, dx","\\sqrt{3}","\\sqrt[n]{3}","\\sin\\theta","\\log X","\\log_{10}","\\log_\\alpha X","\\lim_{t\\to n}T","\\frac{1}{2}=0.5","\\binom{n}{k}","\\begin{matrix}x & y \\\\z & v\\end{matrix}","\\begin{cases}3x + 5y + z \\\\7x - 2y + 4z \\\\-6x + 3y + 2z\\end{cases}"];var qp={lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",root:{fillColor:"rgb(22, 22, 22)",color:"#fff",borderColor:"rgb(22, 22, 22)",borderWidth:3,fontSize:24},second:{fillColor:"rgb(244, 246, 253)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"transparent",borderColor:"rgb(34, 34, 34)",borderWidth:2,color:"rgb(34, 34, 34)"}},Gp={backgroundColor:"rgb(187, 241, 250)",lineColor:"rgb(74, 139, 170)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 168, 101)",root:{fillColor:"rgb(51, 149, 255)",color:"#fff",borderColor:"rgb(51, 149, 255)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(74, 139, 170)",color:"#fff",borderColor:"",borderWidth:3,fontSize:18},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(255, 168, 101)",borderWidth:2,color:"#000"}},Wp={backgroundColor:"rgb(236, 254, 255)",lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(51, 51, 51)",root:{fillColor:"rgb(39, 222, 232)",color:"rgb(26, 26, 26)",borderColor:"rgb(26, 26, 26)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(235, 255, 187)",color:"rgb(0, 0, 0)",borderColor:"rgb(51, 51, 51)",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(26, 26, 26)",borderWidth:2,color:"rgb(26, 26, 26)"}},Vp={backgroundColor:"rgb(255, 251, 231)",lineColor:"rgb(110, 165, 79)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(136, 100, 0)",root:{fillColor:"rgb(254, 92, 92)",color:"#fff",borderColor:"rgb(18, 187, 55)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(209, 237, 176)",color:"rgb(85, 136, 55)",borderColor:"",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(26, 26, 26)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(136, 100, 0)",borderWidth:2,color:"rgb(136, 100, 0)"}},Yp={backgroundColor:"rgb(231, 245, 255)",lineColor:"rgb(96, 189, 255)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(0, 155, 255)",root:{fillColor:"rgb(96, 189, 255)",color:"#fff",borderColor:"#fff",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"#fff",color:"rgb(0, 149, 255)",borderColor:"",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(0, 66, 157)"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(0, 155, 255)",borderWidth:2,color:"rgb(0, 155, 255)"}},Zp={backgroundColor:"rgb(17, 17, 84)",lineColor:"rgb(255, 0, 214)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 181, 0)",associativeLineColor:"rgb(255, 255, 255)",associativeLineTextColor:"rgb(255, 255, 255)",root:{fillColor:"rgb(251, 233, 248)",color:"rgb(208, 5, 176)",borderColor:"rgb(255, 0, 214)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"transparent",color:"rgb(248, 177, 237)",borderColor:"",borderWidth:3,fontSize:18},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(255, 181, 0)",borderWidth:2,color:"rgb(17, 17, 84)"}},Kp={backgroundColor:"rgb(0, 21, 21)",lineColor:"rgb(0, 139, 146)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgba(2, 167, 240, 0.5)",associativeLineColor:"rgb(255, 255, 255)",associativeLineTextColor:"rgb(255, 255, 255)",root:{fillColor:"rgb(0, 243, 255)",color:"rgb(0, 21, 21)",borderColor:"#fff",borderWidth:3,fontSize:24,shape:"parallelogram"},second:{fillColor:"rgb(0, 21, 21)",color:"#fff",borderColor:"#fff",borderWidth:3,fontSize:18,shape:"diamond"},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"rgb(0, 117, 255)",borderWidth:2,color:"rgb(0, 21, 21)"}},Xp={backgroundColor:"rgb(252, 245, 241)",lineColor:"rgb(144, 114, 110)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(128, 154, 151)",associativeLineColor:"rgb(166, 124, 106)",associativeLineTextColor:"rgb(166, 124, 106)",root:{fillColor:"rgb(207, 121, 105)",color:"#fff",borderColor:"rgb(207, 121, 105)",borderWidth:3,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(239, 210, 207)",color:"rgb(144, 79, 68)",borderColor:"rgb(222, 186, 183)",borderWidth:3,fontSize:18,shape:"roundedRectangle"},node:{fontSize:14,color:"rgb(131, 90, 64)"},generalization:{fontSize:14,fillColor:"rgb(172, 202, 199)",borderColor:"rgb(172, 202, 199)",borderWidth:2,color:"rgb(91, 102, 97)"}},Jp={backgroundColor:"rgb(233, 245, 241)",lineColor:"rgb(34, 34, 34)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(34, 34, 34)",associativeLineColor:"rgb(56, 44, 116)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"rgb(56, 44, 116)",color:"#fff",borderColor:"rgb(56, 44, 116)",borderWidth:0,fontSize:24},second:{fillColor:"rgb(161, 213, 188)",color:"rgb(0, 0, 0)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"rgb(56, 44, 116)",borderColor:"",borderWidth:0,color:"#fff"}},Qp={backgroundColor:"rgb(0, 0, 0)",lineColor:"rgb(172, 172, 172)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(172, 172, 172)",associativeLineColor:"rgb(57, 130, 252)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"#fff",color:"rgb(241, 79, 81)",borderColor:"",borderWidth:0,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"rgb(241, 79, 81)",color:"#fff",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"#fff",borderColor:"",borderWidth:0,color:"rgb(241, 79, 81)"}},$p={backgroundColor:"rgb(32, 34, 43)",lineColor:"rgb(90, 136, 116)",lineWidth:2,generalizationLineWidth:2,generalizationLineColor:"rgb(90, 136, 116)",associativeLineColor:"rgb(57, 130, 252)",associativeLineTextColor:"rgb(68, 68, 68)",root:{fillColor:"rgb(1, 192, 116)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24},second:{fillColor:"rgb(48, 51, 63)",color:"#fff",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"#fff"},generalization:{fontSize:14,fillColor:"rgb(1, 192, 116)",borderColor:"",borderWidth:0,color:"#fff"}},em={backgroundColor:"rgb(219, 255, 211)",lineColor:"rgb(51, 51, 51)",lineWidth:3,generalizationLineWidth:3,generalizationLineColor:"rgb(255, 127, 71)",associativeLineColor:"rgb(160, 220, 63)",associativeLineTextColor:"rgb(160, 220, 63)",root:{fillColor:"rgb(15, 198, 113)",color:"#fff",borderColor:"",borderWidth:0,fontSize:24,shape:"roundedRectangle"},second:{fillColor:"#fff",color:"rgb(26, 26, 26)",borderColor:"",borderWidth:0,fontSize:18},node:{fontSize:14,color:"rgb(0, 0, 0)"},generalization:{fontSize:14,fillColor:"rgb(255, 127, 71)",borderColor:"",borderWidth:0,color:"#fff"}},tm=[{name:"奥利奥",value:"oreo",theme:qp,dark:!1},{name:"浅海",value:"shallowSea",theme:Gp,dark:!1},{name:"柠檬气泡",value:"lemonBubbles",theme:Wp,dark:!1},{name:"玫瑰",value:"rose",theme:Vp,dark:!1},{name:"海蓝线",value:"seaBlueLine",theme:Yp,dark:!1},{name:"霓虹灯",value:"neonLamp",theme:Zp,dark:!0},{name:"暗夜冰刃",value:"darkNightLceBlade",theme:Kp,dark:!0},{name:"莫兰迪",value:"morandi",theme:Xp,dark:!1},{name:"脑图经典5",value:"classic5",theme:Jp,dark:!1},{name:"暗色3",value:"dark3",theme:Qp,dark:!0},{name:"暗色4",value:"dark4",theme:$p,dark:!0},{name:"仙人掌",value:"cactus",theme:em,dark:!1}],nm={name:"Theme",components:{Sidebar:cp},props:{mindMap:{type:Object}},data(){return{themeList:[...oo["k"],...tm].reverse(),themeMap:Hp,theme:"",activeName:"",groupList:[]}},computed:{...Object(se["d"])(["activeSidebar","isDark"]),currentList(){return this.groupList.find(e=>e.name===this.activeName).list}},watch:{activeSidebar(e){"theme"===e?(this.theme=this.mindMap.getTheme(),this.handleDark(),this.$refs.sidebar.show=!0):this.$refs.sidebar.show=!1}},created(){this.initGroup(),this.theme=this.mindMap.getTheme(),this.handleDark(),this.mindMap.on("view_theme_change",this.handleViewThemeChange)},beforeDestroy(){this.mindMap.off("view_theme_change",this.handleViewThemeChange)},methods:{...Object(se["c"])(["setIsDark"]),handleViewThemeChange(){this.theme=this.mindMap.getTheme(),this.handleDark()},initGroup(){let e=["default","skyGreen","classic2","classic3","classicGreen","classicBlue","blueSky","brainImpairedPink","earthYellow","freshGreen","freshRed","romanticPurple","pinkGrape","mint"],t=[],n=[];this.themeList.forEach(r=>{e.includes(r.value)?t.push(r):r.dark||n.push(r)}),this.groupList=[{name:this.$t("theme.classics"),list:n},{name:this.$t("theme.dark"),list:this.themeList.filter(e=>e.dark)},{name:this.$t("theme.simple"),list:t}],this.activeName=this.groupList[0].name},useTheme(e){if(e.value===this.theme)return;this.theme=e.value,this.handleDark();const t=this.mindMap.getCustomThemeConfig(),n=Object.keys(t).length>0;n?this.$confirm(this.$t("theme.coverTip"),this.$t("theme.tip"),{confirmButtonText:this.$t("theme.cover"),cancelButtonText:this.$t("theme.reserve"),type:"warning"}).then(()=>{this.mindMap.setThemeConfig({},!0),this.changeTheme(e,{})}).catch(()=>{this.changeTheme(e,t)}):this.changeTheme(e,t)},changeTheme(e,t){this.$bus.$emit("showLoading"),this.mindMap.setTheme(e.value),Object(Wi["d"])({theme:{template:e.value,config:t}})},handleDark(){let e=this.themeList.find(e=>e.value===this.theme);this.setIsDark(e.dark)}}},rm=nm,im=(n("8952"),Object(p["a"])(rm,Bp,_p,!1,null,"80f2e6de",null)),om=im.exports,am=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("strusture.title")}},[t("div",{staticClass:"layoutList",class:{isDark:e.isDark}},e._l(e.layoutList,(function(n){return t("div",{key:n.value,staticClass:"layoutItem",class:{active:n.value===e.layout},on:{click:function(t){return e.useLayout(n)}}},[t("div",{staticClass:"imgBox"},[t("img",{attrs:{src:e.layoutImgMap[n.value],alt:""}})]),t("div",{staticClass:"name"},[e._v(e._s(n.name))])])})),0)])},sm=[],lm={name:"Structure",components:{Sidebar:cp},props:{mindMap:{type:Object}},data(){return{layoutList:oo["g"],layoutImgMap:jp,layout:""}},computed:{...Object(se["d"])(["activeSidebar","isDark"])},watch:{activeSidebar(e){"structure"===e?(this.layout=this.mindMap.getLayout(),this.$refs.sidebar.show=!0):this.$refs.sidebar.show=!1}},methods:{useLayout(e){this.layout=e.value,this.mindMap.setLayout(e.value),Object(Wi["d"])({layout:e.value})}}},cm=lm,um=(n("da5b"),Object(p["a"])(cm,am,sm,!1,null,"a218ac20",null)),hm=um.exports,dm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"countContainer",class:{isDark:e.isDark}},[t("div",{staticClass:"item"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("count.words")))]),t("span",{staticClass:"value"},[e._v(e._s(e.words))])]),t("div",{staticClass:"item"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("count.nodes")))]),t("span",{staticClass:"value"},[e._v(e._s(e.num))])])])},fm=[];let pm=document.createElement("div");var mm={name:"Count",props:{mindMap:{type:Object}},data(){return{textStr:"",words:0,num:0}},computed:{...Object(se["d"])(["isDark"])},created(){this.$bus.$on("data_change",this.onDataChange),this.mindMap&&this.onDataChange(this.mindMap.getData())},beforeDestroy(){this.$bus.$off("data_change",this.onDataChange)},methods:{onDataChange(e){this.textStr="",this.words=0,this.num=0,this.walk(e),pm.innerHTML=this.textStr,this.words=pm.textContent.length},walk(e){this.num++,this.textStr+=String(e.data.text)||"",e.children&&e.children.length>0&&e.children.forEach(e=>{this.walk(e)})}}},gm=mm,vm=(n("bf32"),Object(p["a"])(gm,dm,fm,!1,null,"0770e0d2",null)),bm=vm.exports,ym=function(){var e=this,t=e._self._c;return t("div",{staticClass:"navigatorContainer",class:{isDark:e.isDark}},[t("div",{staticClass:"item"},[t("el-select",{staticStyle:{width:"100px"},attrs:{size:"small"},on:{change:e.onLangChange},model:{value:e.lang,callback:function(t){e.lang=t},expression:"lang"}},e._l(e.langList,(function(e){return t("el-option",{key:e.value,attrs:{label:e.name,value:e.value}})})),1)],1),t("div",{staticClass:"item"},[t("div",{staticClass:"btn iconfont iconsousuo",on:{click:e.showSearch}})]),t("div",{staticClass:"item"},[t("MouseAction",{attrs:{isDark:e.isDark,mindMap:e.mindMap}})],1),t("div",{staticClass:"item"},[t("el-tooltip",{attrs:{effect:"dark",content:e.openMiniMap?e.$t("navigatorToolbar.closeMiniMap"):e.$t("navigatorToolbar.openMiniMap"),placement:"top"}},[t("div",{staticClass:"btn iconfont icondaohang1",on:{click:e.toggleMiniMap}})])],1),t("div",{staticClass:"item"},[t("el-tooltip",{attrs:{effect:"dark",content:e.isReadonly?e.$t("navigatorToolbar.edit"):e.$t("navigatorToolbar.readonly"),placement:"top"}},[t("div",{staticClass:"btn iconfont",class:[e.isReadonly?"iconyanjing":"iconbianji1"],on:{click:e.readonlyChange}})])],1),t("div",{staticClass:"item"},[t("Fullscreen",{attrs:{isDark:e.isDark,mindMap:e.mindMap}})],1),t("div",{staticClass:"item"},[t("Scale",{attrs:{isDark:e.isDark,mindMap:e.mindMap}})],1),t("div",{staticClass:"item"},[t("div",{staticClass:"btn iconfont",class:[e.isDark?"iconmoon_line":"iconlieri"],on:{click:e.toggleDark}})]),t("div",{staticClass:"item"},[t("el-dropdown",{on:{command:e.handleCommand}},[t("div",{staticClass:"btn iconfont iconbangzhu"}),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:"github"}},[e._v("Github")]),t("el-dropdown-item",{attrs:{command:"helpDoc"}},[e._v("使用文档")]),t("el-dropdown-item",{attrs:{command:"devDoc"}},[e._v("开发文档")]),t("el-dropdown-item",{attrs:{command:"site"}},[e._v("官方网站")]),t("el-dropdown-item",{attrs:{command:"issue"}},[e._v("意见反馈")]),t("el-dropdown-item",{attrs:{disabled:""}},[e._v("当前:v"+e._s(e.version))])],1)],1)],1)])},wm=[],xm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"scaleContainer",class:{isDark:e.isDark}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("scale.zoomOut"),placement:"top"}},[t("div",{staticClass:"btn el-icon-minus",on:{click:e.narrow}})]),t("div",{staticClass:"scaleInfo"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.scaleNum,expression:"scaleNum"}],attrs:{type:"text"},domProps:{value:e.scaleNum},on:{change:e.onScaleNumChange,focus:e.onScaleNumInputFocus,input:function(t){t.target.composing||(e.scaleNum=t.target.value)}}}),e._v("% ")]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("scale.zoomIn"),placement:"top"}},[t("div",{staticClass:"btn el-icon-plus",on:{click:e.enlarge}})])],1)},km=[],Am={name:"Scale",props:{mindMap:{type:Object},isDark:{type:Boolean}},data(){return{scaleNum:100,cacheScaleNum:0}},watch:{mindMap(e,t){e&&!t&&(this.mindMap.on("scale",e=>{this.scaleNum=this.toPer(e)}),this.scaleNum=this.toPer(this.mindMap.view.scale))}},methods:{toPer(e){return(100*e).toFixed(0)},narrow(){this.mindMap.view.narrow()},enlarge(){this.mindMap.view.enlarge()},onScaleNumInputFocus(){this.cacheScaleNum=this.scaleNum},onScaleNumChange(){const e=Number(this.scaleNum);if(Number.isNaN(e)||e<=0)this.scaleNum=this.cacheScaleNum;else{const e=this.mindMap.width/2,t=this.mindMap.height/2;this.mindMap.view.setScale(this.scaleNum/100,e,t)}}}},Cm=Am,Em=(n("6ffb0"),Object(p["a"])(Cm,xm,km,!1,null,"07c47fcc",null)),Sm=Em.exports,Tm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"fullscreenContainer",class:{isDark:e.isDark}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("fullscreen.fullscreenShow"),placement:"top"}},[t("div",{staticClass:"btn iconfont iconquanping",on:{click:e.toFullscreenShow}})]),t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$t("fullscreen.fullscreenEdit"),placement:"top"}},[t("div",{staticClass:"btn iconfont iconquanping1",on:{click:e.toFullscreenEdit}})])],1)},Nm=[],Mm={name:"Fullscreen",props:{mindMap:{type:Object},isDark:{type:Boolean}},data(){return{}},created(){document[Ri]=()=>{setTimeout(()=>{this.mindMap.resize()},1e3)}},methods:{toFullscreenShow(){Fi(this.mindMap.el)},toFullscreenEdit(){Fi(document.body)}}},Lm=Mm,Om=(n("7812"),Object(p["a"])(Lm,Tm,Nm,!1,null,"1bcbabda",null)),Dm=Om.exports,Pm=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mouseActionContainer",class:{isDark:e.isDark}},[t("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.useLeftKeySelectionRightKeyDrag?e.$t("mouseAction.tip2"):e.$t("mouseAction.tip1"),placement:"top"}},[t("div",{staticClass:"btn iconfont",class:[e.useLeftKeySelectionRightKeyDrag?"iconmouseR":"iconmouseL"],on:{click:e.toggleAction}})])],1)},Im=[],Rm={name:"MouseAction",props:{mindMap:{type:Object},isDark:{type:Boolean}},data(){return{}},computed:{...Object(se["d"])({useLeftKeySelectionRightKeyDrag:e=>e.localConfig.useLeftKeySelectionRightKeyDrag})},methods:{...Object(se["c"])(["setLocalConfig"]),toggleAction(){let e=!this.useLeftKeySelectionRightKeyDrag;this.mindMap.updateConfig({useLeftKeySelectionRightKeyDrag:e}),this.setLocalConfig({useLeftKeySelectionRightKeyDrag:e})}}},Fm=Rm,zm=(n("ad01"),Object(p["a"])(Fm,Pm,Im,!1,null,"a1887b1e",null)),Bm=zm.exports,_m=n("9225"),jm=n("a06c"),Hm={name:"NavigatorToolbar",components:{Scale:Sm,Fullscreen:Dm,MouseAction:Bm},props:{mindMap:{type:Object}},data(){return{version:jm.version,langList:Se,lang:"",openMiniMap:!1}},computed:{...Object(se["d"])(["isDark","isReadonly"])},created(){this.lang=Object(Wi["b"])()},methods:{...Object(se["c"])(["setIsDark","setIsReadonly"]),readonlyChange(){this.setIsReadonly(!this.isReadonly),this.mindMap.setMode(this.isReadonly?"readonly":"edit")},toggleMiniMap(){this.openMiniMap=!this.openMiniMap,this.$bus.$emit("toggle_mini_map",this.openMiniMap)},onLangChange(e){_m["a"].locale=e,Object(Wi["f"])(e),this.$bus.$emit("lang_change")},showSearch(){this.$bus.$emit("show_search")},toggleDark(){this.setIsDark(!this.isDark)},handleCommand(e){let t="";switch(e){case"github":t="https://github.com/wanglin2/mind-map";break;case"helpDoc":t="https://wanglin2.github.io/mind-map/#/help/zh/";break;case"devDoc":t="https://wanglin2.github.io/mind-map/#/doc/zh/introduction/";break;case"site":t="https://wanglin2.github.io/mind-map/#/index";break;case"issue":t="https://github.com/wanglin2/mind-map/issues/new";break;default:break}const n=document.createElement("a");n.href=t,n.target="_blank",n.click()}}},Um=Hm,qm=(n("eb43"),Object(p["a"])(Um,ym,wm,!1,null,"1f9b5dca",null)),Gm=qm.exports,Wm=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("shortcutKey.title")}},[t("div",{staticClass:"box",class:{isDark:e.isDark}},e._l(e.shortcutKeyList,(function(n){return t("div",{key:n.type},[t("div",{staticClass:"title"},[e._v(e._s(n.type))]),e._l(n.list,(function(n){return t("div",{key:n.value,staticClass:"list"},[t("div",{staticClass:"item"},[n.icon?t("span",{staticClass:"icon iconfont",class:[n.icon]}):e._e(),t("span",{staticClass:"name",attrs:{title:n.name}},[e._v(e._s(n.name))]),t("div",{staticClass:"value",attrs:{title:n.value}},[e._v(e._s(n.value))])])])}))],2)})),0)])},Vm=[],Ym={name:"ShortcutKey",components:{Sidebar:cp},data(){return{}},computed:{...Object(se["d"])(["activeSidebar","isDark"]),shortcutKeyList(){return Ze[this.$i18n.locale]||Ze.zh}},watch:{activeSidebar(e){this.$refs.sidebar.show="shortcutKey"===e}}},Zm=Ym,Km=(n("56c4"),Object(p["a"])(Zm,Wm,Vm,!1,null,"cff0b1d2",null)),Xm=Km.exports,Jm=function(){var e=this,t=e._self._c;return e.isShow?t("div",{staticClass:"contextmenuContainer listBox",class:{isDark:e.isDark},style:{left:e.left+"px",top:e.top+"px"}},["node"===e.type?[t("div",{staticClass:"item",class:{disabled:e.insertNodeBtnDisabled},on:{click:function(t){return e.exec("INSERT_NODE",e.insertNodeBtnDisabled)}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.insertSiblingNode")))]),t("span",{staticClass:"desc"},[e._v("Enter")])]),t("div",{staticClass:"item",class:{disabled:e.isGeneralization},on:{click:function(t){return e.exec("INSERT_CHILD_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.insertChildNode")))]),t("span",{staticClass:"desc"},[e._v("Tab")])]),t("div",{staticClass:"item",class:{disabled:e.insertNodeBtnDisabled},on:{click:function(t){return e.exec("INSERT_PARENT_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.insertParentNode")))]),t("span",{staticClass:"desc"},[e._v("Shift + Tab")])]),t("div",{staticClass:"item",class:{disabled:e.insertNodeBtnDisabled},on:{click:function(t){return e.exec("ADD_GENERALIZATION")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.insertSummary")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + G")])]),t("div",{staticClass:"item",class:{disabled:e.upNodeBtnDisabled},on:{click:function(t){return e.exec("UP_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.moveUpNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + ↑")])]),t("div",{staticClass:"item",class:{disabled:e.downNodeBtnDisabled},on:{click:function(t){return e.exec("DOWN_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.moveDownNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + ↓")])]),t("div",{staticClass:"item danger",on:{click:function(t){return e.exec("REMOVE_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.deleteNode")))]),t("span",{staticClass:"desc"},[e._v("Delete")])]),t("div",{staticClass:"item danger",on:{click:function(t){return e.exec("REMOVE_CURRENT_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.deleteCurrentNode")))]),t("span",{staticClass:"desc"},[e._v("Shift + Backspace")])]),t("div",{staticClass:"item",class:{disabled:e.isGeneralization},on:{click:function(t){return e.exec("COPY_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.copyNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + C")])]),t("div",{staticClass:"item",class:{disabled:e.isGeneralization},on:{click:function(t){return e.exec("CUT_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.cutNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + X")])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("PASTE_NODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.pasteNode")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + V")])]),e.hasHyperlink?t("div",{staticClass:"item",on:{click:function(t){return e.exec("REMOVE_HYPERLINK")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.removeHyperlink")))])]):e._e(),e.hasNote?t("div",{staticClass:"item",on:{click:function(t){return e.exec("REMOVE_NOTE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.removeNote")))])]):e._e()]:e._e(),"svg"===e.type?[t("div",{staticClass:"item",on:{click:function(t){return e.exec("RETURN_CENTER")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.backCenter")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + Enter")])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("EXPAND_ALL")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.expandAll")))])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("UNEXPAND_ALL")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.unExpandAll")))])]),t("div",{staticClass:"item"},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.expandTo")))]),t("div",{staticClass:"subItems listBox",class:{isDark:e.isDark}},e._l(e.expandList,(function(n,r){return t("div",{key:n,staticClass:"item",on:{click:function(t){return e.exec("UNEXPAND_TO_LEVEL",!1,r+1)}}},[e._v(" "+e._s(n)+" ")])})),0)]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("RESET_LAYOUT")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.arrangeLayout")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + L")])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("FIT_CANVAS")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.fitCanvas")))]),t("span",{staticClass:"desc"},[e._v("Ctrl + i")])]),t("div",{staticClass:"item",on:{click:function(t){return e.exec("TOGGLE_ZEN_MODE")}}},[t("span",{staticClass:"name"},[e._v(e._s(e.$t("contextmenu.zenMode")))]),e._v(" "+e._s(e.isZenMode?"√":"")+" ")])]:e._e()],2):e._e()},Qm=[],$m={name:"Contextmenu",props:{mindMap:{type:Object}},data(){return{isShow:!1,left:0,top:0,node:null,type:"",isMousedown:!1,mosuedownX:0,mosuedownY:0}},computed:{...Object(se["d"])({isZenMode:e=>e.localConfig.isZenMode,isDark:e=>e.isDark}),expandList(){return[this.$t("contextmenu.level1"),this.$t("contextmenu.level2"),this.$t("contextmenu.level3"),this.$t("contextmenu.level4"),this.$t("contextmenu.level5"),this.$t("contextmenu.level6")]},insertNodeBtnDisabled(){return!this.node||this.node.isRoot||this.node.isGeneralization},upNodeBtnDisabled(){if(!this.node||this.node.isRoot||this.node.isGeneralization)return!0;let e=0===this.node.parent.children.findIndex(e=>e===this.node);return e},downNodeBtnDisabled(){if(!this.node||this.node.isRoot||this.node.isGeneralization)return!0;let e=this.node.parent.children,t=e.findIndex(e=>e===this.node)===e.length-1;return t},isGeneralization(){return this.node.isGeneralization},hasHyperlink(){return!!this.node.getData("hyperlink")},hasNote(){return!!this.node.getData("note")}},created(){this.$bus.$on("node_contextmenu",this.show),this.$bus.$on("node_click",this.hide),this.$bus.$on("draw_click",this.hide),this.$bus.$on("expand_btn_click",this.hide),this.$bus.$on("svg_mousedown",this.onMousedown),this.$bus.$on("mouseup",this.onMouseup)},beforeDestroy(){this.$bus.$off("node_contextmenu",this.show),this.$bus.$off("node_click",this.hide),this.$bus.$off("draw_click",this.hide),this.$bus.$off("expand_btn_click",this.hide),this.$bus.$off("svg_mousedown",this.onMousedown),this.$bus.$off("mouseup",this.onMouseup)},methods:{...Object(se["c"])(["setLocalConfig"]),show(e,t){this.type="node",this.left=e.clientX+10,this.top=e.clientY+10,this.isShow=!0,this.node=t},onMousedown(e){3===e.which&&(this.mosuedownX=e.clientX,this.mosuedownY=e.clientY,this.isMousedown=!0)},onMouseup(e){this.isMousedown&&(this.isMousedown=!1,Math.abs(this.mosuedownX-e.clientX)>3||Math.abs(this.mosuedownY-e.clientY)>3?this.hide():this.show2(e))},show2(e){this.type="svg",this.left=e.clientX+10,this.top=e.clientY+10,this.isShow=!0},hide(){this.isShow=!1,this.left=0,this.top=0,this.type=""},exec(e,t,...n){if(!t){switch(e){case"COPY_NODE":this.mindMap.renderer.copy();break;case"CUT_NODE":this.mindMap.renderer.cut();break;case"PASTE_NODE":this.mindMap.renderer.paste();break;case"RETURN_CENTER":this.mindMap.renderer.setRootNodeCenter();break;case"TOGGLE_ZEN_MODE":this.setLocalConfig({isZenMode:!this.isZenMode});break;case"FIT_CANVAS":this.mindMap.view.fit();break;case"REMOVE_HYPERLINK":this.node.setHyperlink("","");break;case"REMOVE_NOTE":this.node.setNote("");break;default:this.$bus.$emit("execCommand",e,...n);break}this.hide()}}}},eg=$m,tg=(n("fca3"),Object(p["a"])(eg,Jm,Qm,!1,null,"dbfd708e",null)),ng=tg.exports,rg=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showRichTextToolbar,expression:"showRichTextToolbar"}],ref:"richTextToolbar",staticClass:"richTextToolbar",class:{isDark:e.isDark},style:e.style,on:{"&click":function(e){e.stopPropagation()}}},[t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.bold"),placement:"top"}},[t("div",{staticClass:"btn",class:{active:e.formatInfo.bold},on:{click:e.toggleBold}},[t("span",{staticClass:"icon iconfont iconzitijiacu"})])]),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.italic"),placement:"top"}},[t("div",{staticClass:"btn",class:{active:e.formatInfo.italic},on:{click:e.toggleItalic}},[t("span",{staticClass:"icon iconfont iconzitixieti"})])]),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.underline"),placement:"top"}},[t("div",{staticClass:"btn",class:{active:e.formatInfo.underline},on:{click:e.toggleUnderline}},[t("span",{staticClass:"icon iconfont iconzitixiahuaxian"})])]),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.strike"),placement:"top"}},[t("div",{staticClass:"btn",class:{active:e.formatInfo.strike},on:{click:e.toggleStrike}},[t("span",{staticClass:"icon iconfont iconshanchuxian"})])]),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.fontFamily"),placement:"top"}},[t("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[t("div",{staticClass:"fontOptionsList",class:{isDark:e.isDark}},e._l(e.fontFamilyList,(function(n){return t("div",{key:n.value,staticClass:"fontOptionItem",class:{active:e.formatInfo.font===n.value},style:{fontFamily:n.value},on:{click:function(t){return e.changeFontFamily(n.value)}}},[e._v(" "+e._s(n.name)+" ")])})),0),t("div",{staticClass:"btn",attrs:{slot:"reference"},slot:"reference"},[t("span",{staticClass:"icon iconfont iconxingzhuang-wenzi"})])])],1),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.fontSize"),placement:"top"}},[t("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[t("div",{staticClass:"fontOptionsList",class:{isDark:e.isDark}},e._l(e.fontSizeList,(function(n){return t("div",{key:n,staticClass:"fontOptionItem",class:{active:e.formatInfo.size===n+"px"},style:{fontSize:n+"px"},on:{click:function(t){return e.changeFontSize(n)}}},[e._v(" "+e._s(n)+"px ")])})),0),t("div",{staticClass:"btn",attrs:{slot:"reference"},slot:"reference"},[t("span",{staticClass:"icon iconfont iconcase fontColor"})])])],1),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.color"),placement:"top"}},[t("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.fontColor},on:{change:e.changeFontColor}}),t("div",{staticClass:"btn",style:{color:e.formatInfo.color},attrs:{slot:"reference"},slot:"reference"},[t("span",{staticClass:"icon iconfont iconzitiyanse"})])],1)],1),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.backgroundColor"),placement:"top"}},[t("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[t("Color",{attrs:{color:e.fontBackgroundColor},on:{change:e.changeFontBackgroundColor}}),t("div",{staticClass:"btn",attrs:{slot:"reference"},slot:"reference"},[t("span",{staticClass:"icon iconfont iconbeijingyanse"})])],1)],1),t("el-tooltip",{attrs:{content:e.$t("richTextToolbar.removeFormat"),placement:"top"}},[t("div",{staticClass:"btn",on:{click:e.removeFormat}},[t("span",{staticClass:"icon iconfont iconqingchu"})])])],1)},ig=[],og={name:"RichTextToolbar",components:{Color:Tp},props:{mindMap:{type:Object}},data(){return{fontSizeList:ce,showRichTextToolbar:!1,style:{left:0,top:0},fontColor:"",fontBackgroundColor:"",formatInfo:{}}},computed:{...Object(se["d"])(["isDark"]),fontFamilyList(){return je[this.$i18n.locale]||je.zh}},created(){this.$bus.$on("rich_text_selection_change",this.onRichTextSelectionChange)},mounted(){document.body.append(this.$refs.richTextToolbar)},beforeDestroy(){this.$bus.$off("rich_text_selection_change",this.onRichTextSelectionChange)},methods:{onRichTextSelectionChange(e,t,n){e&&(this.style.left=t.left+t.width/2+"px",this.style.top=t.top-60+"px",this.formatInfo={...n||{}}),this.showRichTextToolbar=e},toggleBold(){this.formatInfo.bold=!this.formatInfo.bold,this.mindMap.richText.formatText({bold:this.formatInfo.bold})},toggleItalic(){this.formatInfo.italic=!this.formatInfo.italic,this.mindMap.richText.formatText({italic:this.formatInfo.italic})},toggleUnderline(){this.formatInfo.underline=!this.formatInfo.underline,this.mindMap.richText.formatText({underline:this.formatInfo.underline})},toggleStrike(){this.formatInfo.strike=!this.formatInfo.strike,this.mindMap.richText.formatText({strike:this.formatInfo.strike})},changeFontFamily(e){this.formatInfo.font=e,this.mindMap.richText.formatText({font:e})},changeFontSize(e){this.formatInfo.size=e,this.mindMap.richText.formatText({size:e+"px"})},changeFontColor(e){this.formatInfo.color=e,this.mindMap.richText.formatText({color:e})},changeFontBackgroundColor(e){this.formatInfo.background=e,this.mindMap.richText.formatText({background:e})},removeFormat(){this.mindMap.richText.removeFormat()}}},ag=og,sg=(n("146c"),Object(p["a"])(ag,rg,ig,!1,null,"50a360a9",null)),lg=sg.exports,cg=function(){var e=this,t=e._self._c;return t("div",{ref:"noteContentViewer",staticClass:"noteContentViewer",style:{left:this.left+"px",top:this.top+"px",visibility:e.show?"visible":"hidden"},on:{click:function(e){e.stopPropagation()}}})},ug=[],hg=n("f059"),dg=n.n(hg),fg=(n("fe5f"),{name:"NodeNoteContentShow",data(){return{editor:null,show:!1,left:0,top:0,node:null}},created(){this.$bus.$on("showNoteContent",this.onShowNoteContent),this.$bus.$on("hideNoteContent",this.hideNoteContent),document.body.addEventListener("click",this.hideNoteContent),this.$bus.$on("node_active",this.hideNoteContent),this.$bus.$on("scale",this.onScale),this.$bus.$on("svg_mousedown",this.hideNoteContent)},mounted(){this.initEditor()},beforeDestroy(){this.$bus.$off("showNoteContent",this.onShowNoteContent),this.$bus.$off("hideNoteContent",this.hideNoteContent),document.body.removeEventListener("click",this.hideNoteContent),this.$bus.$off("node_active",this.hideNoteContent),this.$bus.$off("scale",this.onScale),this.$bus.$off("svg_mousedown",this.hideNoteContent)},methods:{onShowNoteContent(e,t,n,r){this.node=r,this.editor.setMarkdown(e),this.updateNoteContentPosition(t,n),this.show=!0},updateNoteContentPosition(e,t){this.left=e,this.top=t},onScale(){if(!this.node||!this.show)return;const{left:e,top:t}=this.node.getNoteContentPosition();this.updateNoteContentPosition(e,t)},hideNoteContent(){this.show=!1},initEditor(){this.editor||(this.editor=new dg.a({el:this.$refs.noteContentViewer}))}}}),pg=fg,mg=(n("3aa9"),Object(p["a"])(pg,cg,ug,!1,null,"1484624c",null)),gg=mg.exports,vg=function(){var e=this,t=e._self._c;return e.showMiniMap?t("div",{ref:"navigatorBox",staticClass:"navigatorBox",class:{isDark:e.isDark},on:{mousedown:e.onMousedown,mousemove:e.onMousemove,mouseup:e.onMouseup}},[t("div",{ref:"svgBox",staticClass:"svgBox",style:{transform:`scale(${e.svgBoxScale})`,left:e.svgBoxLeft+"px",top:e.svgBoxTop+"px"}},[t("img",{attrs:{src:e.mindMapImg},on:{mousedown:function(e){e.preventDefault()}}})]),t("div",{staticClass:"windowBox",style:e.viewBoxStyle})]):e._e()},bg=[],yg={props:{mindMap:{type:Object}},data(){return{showMiniMap:!1,timer:null,boxWidth:0,boxHeight:0,svgBoxScale:1,svgBoxLeft:0,svgBoxTop:0,viewBoxStyle:{left:0,top:0,bottom:0,right:0},mindMapImg:""}},computed:{...Object(se["d"])(["isDark"])},mounted(){this.$bus.$on("toggle_mini_map",this.toggle_mini_map),this.$bus.$on("data_change",this.data_change),this.$bus.$on("view_data_change",this.data_change),this.$bus.$on("node_tree_render_end",this.data_change)},destroyed(){this.$bus.$off("toggle_mini_map",this.toggle_mini_map),this.$bus.$off("data_change",this.data_change),this.$bus.$off("view_data_change",this.data_change),this.$bus.$off("node_tree_render_end",this.data_change)},methods:{toggle_mini_map(e){this.showMiniMap=e,this.$nextTick(()=>{this.$refs.navigatorBox&&this.init(),this.$refs.svgBox&&this.drawMiniMap()})},data_change(){this.showMiniMap&&(clearTimeout(this.timer),this.timer=setTimeout(()=>{this.drawMiniMap()},500))},init(){let{width:e,height:t}=this.$refs.navigatorBox.getBoundingClientRect();this.boxWidth=e,this.boxHeight=t},drawMiniMap(){let{getImgUrl:e,viewBoxStyle:t,miniMapBoxScale:n,miniMapBoxLeft:r,miniMapBoxTop:i}=this.mindMap.miniMap.calculationMiniMap(this.boxWidth,this.boxHeight);e(e=>{this.mindMapImg=e}),this.viewBoxStyle=t,this.svgBoxScale=n,this.svgBoxLeft=r,this.svgBoxTop=i},onMousedown(e){this.mindMap.miniMap.onMousedown(e)},onMousemove(e){this.mindMap.miniMap.onMousemove(e)},onMouseup(e){this.mindMap.miniMap.onMouseup(e)}}},wg=yg,xg=(n("a121"),Object(p["a"])(wg,vg,bg,!1,null,"c41a0b0a",null)),kg=xg.exports,Ag=function(){var e=this,t=e._self._c;return t("viewer",{attrs:{images:e.images}},e._l(e.images,(function(e){return t("img",{key:e,attrs:{src:e}})})),0)},Cg=[],Eg={props:{mindMap:{type:Object,default(){return null}}},data(){return{images:[]}},mounted(){this.mindMap.on("node_img_dblclick",this.onNodeTmgDblclick)},beforeDestroy(){this.mindMap.off("node_img_dblclick",this.onNodeTmgDblclick)},methods:{onNodeTmgDblclick(e,t){t.stopPropagation(),t.preventDefault(),this.images=[e.nodeData.data.image],this.$viewerApi({images:this.images})}}},Sg=Eg,Tg=Object(p["a"])(Sg,Ag,Cg,!1,null,null,null),Ng=Tg.exports,Mg=function(){var e=this,t=e._self._c;return t("div",{staticClass:"sidebarTriggerContainer",class:{hasActive:e.show&&e.activeSidebar,show:e.show,isDark:e.isDark},on:{click:function(e){e.stopPropagation()}}},[t("div",{staticClass:"toggleShowBtn",class:{hide:!e.show},on:{click:function(t){e.show=!e.show}}},[t("span",{staticClass:"iconfont iconjiantouyou"})]),t("div",{staticClass:"trigger"},e._l(e.triggerList,(function(n){return t("div",{key:n.value,staticClass:"triggerItem",class:{active:e.activeSidebar===n.value},on:{click:function(t){return e.trigger(n)}}},[t("div",{staticClass:"triggerIcon iconfont",class:[n.icon]}),t("div",{staticClass:"triggerName"},[e._v(e._s(n.name))])])})),0)])},Lg=[],Og={name:"SidebarTrigger",data(){return{show:!0}},computed:{...Object(se["d"])(["activeSidebar","isDark"]),triggerList(){return Je[this.$i18n.locale]||Je.zh}},methods:{...Object(se["c"])(["setActiveSidebar"]),trigger(e){this.setActiveSidebar(e.value)}}},Dg=Og,Pg=(n("7100"),Object(p["a"])(Dg,Mg,Lg,!1,null,"7fe703e0",null)),Ig=Pg.exports,Rg=function(){var e=this,t=e._self._c;return t("div",{staticClass:"customNodeContent"},[t("p",[e._v(e._s(e.title))]),t("p",{domProps:{innerHTML:e._s(e.html)}}),t("p",{style:{backgroundColor:e.color},on:{click:e.onClick}},[e._v("点击我会变色")])])},Fg=[],zg={props:{html:{type:String,default:""}},data(){return{title:"我是自定义节点",color:""}},methods:{onClick(){this.color="red"}}},Bg=zg,_g=(n("7cb3"),Object(p["a"])(Bg,Rg,Fg,!1,null,"6ef61ceb",null)),jg=(_g.exports,n("41cb"),n("c0d6"),function(){var e=this,t=e._self._c;return t("div",{staticClass:"searchContainer",class:{isDark:e.isDark,show:e.show},on:{mouseleave:e.onMouseleave}},[t("div",{staticClass:"closeBtnBox"},[t("span",{staticClass:"closeBtn el-icon-close",on:{click:e.close}})]),t("div",{staticClass:"searchInputBox"},[t("el-input",{ref:"searchInputRef",attrs:{placeholder:e.$t("search.searchPlaceholder"),size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.stopPropagation(),e.onSearchNext.apply(null,arguments))},keydown:function(e){e.stopPropagation()}},model:{value:e.searchText,callback:function(t){e.searchText=t},expression:"searchText"}},[t("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"}),e.isUndef(e.searchText)?e._e():t("el-button",{attrs:{slot:"append",size:"small"},on:{click:function(t){e.showReplaceInput=!0}},slot:"append"},[e._v(e._s(e.$t("search.replace")))])],1),e.showSearchInfo?t("div",{staticClass:"searchInfo"},[e._v(" "+e._s(e.currentIndex)+" / "+e._s(e.total)+" ")]):e._e()],1),e.showReplaceInput?t("el-input",{ref:"replaceInputRef",staticStyle:{margin:"12px 0"},attrs:{placeholder:e.$t("search.replacePlaceholder"),size:"small"},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.replaceText,callback:function(t){e.replaceText=t},expression:"replaceText"}},[t("i",{staticClass:"el-input__icon el-icon-edit",attrs:{slot:"prefix"},slot:"prefix"}),t("el-button",{attrs:{slot:"append",size:"small"},on:{click:e.hideReplaceInput},slot:"append"},[e._v(e._s(e.$t("search.cancel")))])],1):e._e(),e.showReplaceInput?t("div",{staticClass:"btnList"},[t("el-button",{attrs:{size:"small",disabled:e.isReadonly},on:{click:e.replace}},[e._v(e._s(e.$t("search.replace")))]),t("el-button",{attrs:{size:"small",disabled:e.isReadonly},on:{click:e.replaceAll}},[e._v(e._s(e.$t("search.replaceAll")))])],1):e._e()],1)}),Hg=[],Ug={name:"Search",props:{mindMap:{type:Object}},data(){return{show:!1,searchText:"",replaceText:"",showReplaceInput:!1,currentIndex:0,total:0,showSearchInfo:!1}},computed:{...Object(se["d"])(["isDark","isReadonly"])},watch:{searchText(){Object(v["I"])(this.searchText)&&(this.currentIndex=0,this.total=0,this.showSearchInfo=!1)}},created(){this.$bus.$on("show_search",this.showSearch),this.mindMap.on("search_info_change",this.handleSearchInfoChange),this.mindMap.keyCommand.addShortcut("Control+f",this.showSearch)},beforeDestroy(){this.$bus.$off("show_search",this.showSearch),this.mindMap.off("search_info_change",this.handleSearchInfoChange),this.mindMap.keyCommand.removeShortcut("Control+f",this.showSearch)},methods:{isUndef:v["I"],handleSearchInfoChange(e){this.currentIndex=e.currentIndex+1,this.total=e.total,this.showSearchInfo=!0},showSearch(){this.$bus.$emit("closeSideBar"),this.show=!0},hideReplaceInput(){this.showReplaceInput=!1,this.replaceText=""},onSearchNext(){this.mindMap.search.search(this.searchText,()=>{this.$refs.searchInputRef.focus()})},replace(){this.mindMap.search.replace(this.replaceText,!0)},replaceAll(){this.mindMap.search.replaceAll(this.replaceText)},close(){this.show=!1,this.showSearchInfo=!1,this.total=0,this.currentIndex=0,this.searchText="",this.hideReplaceInput(),this.mindMap.search.endSearch()},onMouseleave(){this.$refs.searchInputRef&&this.$refs.searchInputRef.blur(),this.$refs.replaceInputRef&&this.$refs.replaceInputRef.blur()}}},qg=Ug,Gg=(n("c6fd"),Object(p["a"])(qg,jg,Hg,!1,null,"6455708e",null)),Wg=Gg.exports,Vg=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("nodeIconSidebar.title")}},[t("div",{staticClass:"box",class:{isDark:e.isDark}},[t("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[t("el-tab-pane",{attrs:{label:e.$t("nodeIconSidebar.icon"),name:"icon"}}),t("el-tab-pane",{attrs:{label:e.$t("nodeIconSidebar.sticker"),name:"image"}})],1),t("div",{staticClass:"boxContent"},["icon"===e.activeName?t("div",{staticClass:"iconBox"},e._l(e.nodeIconList,(function(n){return t("div",{key:n.name,staticClass:"item"},[t("div",{staticClass:"title"},[e._v(e._s(n.name))]),t("div",{staticClass:"list"},e._l(n.list,(function(r){return t("div",{key:r.name,staticClass:"icon",class:{selected:e.iconList.includes(n.type+"_"+r.name)},domProps:{innerHTML:e._s(e.getHtml(r.icon))},on:{click:function(t){return e.setIcon(n.type,r.name)}}})})),0)])})),0):e._e(),"image"===e.activeName?t("div",{staticClass:"imageBox"},e._l(e.nodeImageList,(function(n){return t("div",{key:n.name,staticClass:"item"},[t("div",{staticClass:"title"},[e._v(e._s(n.name))]),t("div",{staticClass:"list"},e._l(n.list,(function(n){return t("div",{key:n.url,staticClass:"icon",class:{selected:e.nodeImage===n.url},on:{click:function(t){return e.setImage(n)}}},[t("img",{attrs:{src:n.url,alt:""}})])})),0)])})),0):e._e()])],1)])},Yg=[],Zg=n("7cc6"),Kg=n.n(Zg),Xg=n("a493"),Jg=n.n(Xg),Qg=n("e921"),$g=n.n(Qg),ev=n("6490"),tv=n.n(ev),nv=n("41c5"),rv=n.n(nv),iv=n("b684"),ov=n.n(iv),av=n("4f5a"),sv=n.n(av),lv=n("9c85"),cv=n.n(lv),uv=n("3247"),hv=n.n(uv),dv=n("26eb"),fv=n.n(dv),pv=n("9f18"),mv=n.n(pv),gv=n("eab8"),vv=n.n(gv),bv=n("ad10"),yv=n.n(bv),wv=n("fe40"),xv=n.n(wv),kv=n("f670"),Av=n.n(kv),Cv=n("b8fe"),Ev=n.n(Cv),Sv=n("a641"),Tv=n.n(Sv),Nv=n("4910"),Mv=n.n(Nv),Lv=n("b765"),Ov=n.n(Lv),Dv=n("347b"),Pv=n.n(Dv),Iv=n("577e6"),Rv=n.n(Iv),Fv=n("c99b"),zv=n.n(Fv),Bv=n("3acd"),_v=n.n(Bv),jv=n("e40b"),Hv=n.n(jv),Uv=n("f6d6"),qv=n.n(Uv),Gv=n("aecb"),Wv=n.n(Gv),Vv=n("299e"),Yv=n.n(Vv),Zv=n("de62"),Kv=n.n(Zv),Xv=n("9537"),Jv=n.n(Xv),Qv=n("ea51"),$v=n.n(Qv),eb=n("e114"),tb=n.n(eb),nb=n("e274"),rb=n.n(nb),ib=n("9643"),ob=n.n(ib),ab=n("ac4f"),sb=n.n(ab),lb=n("f54b"),cb=n.n(lb),ub=n("e8ae"),hb=n.n(ub),db=n("fae8"),fb=n.n(db),pb=n("8763"),mb=n.n(pb),gb=n("5fd6"),vb=n.n(gb),bb=n("33d7"),yb=n.n(bb),wb=n("9cf4"),xb=n.n(wb),kb=n("e34b"),Ab=n.n(kb),Cb=n("ca39"),Eb=n.n(Cb),Sb=n("1faf"),Tb=n.n(Sb),Nb=n("ae00"),Mb=n.n(Nb),Lb=n("eadc"),Ob=n.n(Lb),Db=n("82b0"),Pb=n.n(Db),Ib=n("da5e"),Rb=n.n(Ib),Fb=n("b75f"),zb=n.n(Fb),Bb=n("290f"),_b=n.n(Bb),jb=n("8113"),Hb=n.n(jb),Ub=n("4244"),qb=n.n(Ub),Gb=n("3469"),Wb=n.n(Gb),Vb=n("e531"),Yb=n.n(Vb),Zb=n("8b39"),Kb=n.n(Zb),Xb=n("1bc3"),Jb=n.n(Xb),Qb=n("12b7"),$b=n.n(Qb),ey=n("25cac"),ty=n.n(ey),ny=n("0e5fa"),ry=n.n(ny),iy=n("8cd8"),oy=n.n(iy),ay=n("655f"),sy=n.n(ay),ly=n("e00a"),cy=n.n(ly),uy=n("594c"),hy=n.n(uy),dy=n("8484"),fy=n.n(dy),py=n("a8729"),my=n.n(py),gy=n("b019"),vy=n.n(gy),by=n("8ce6"),yy=n.n(by),wy=n("7d59"),xy=n.n(wy),ky=n("265a"),Ay=n.n(ky),Cy=n("9461"),Ey=n.n(Cy),Sy=n("da72"),Ty=n.n(Sy),Ny=n("b93d"),My=n.n(Ny),Ly=n("8f8b"),Oy=n.n(Ly),Dy=n("9897"),Py=n.n(Dy),Iy=n("c442"),Ry=n.n(Iy),Fy=n("7f93"),zy=n.n(Fy),By=n("24c7"),_y=n.n(By),jy=n("cacf"),Hy=n.n(jy),Uy=n("6ade"),qy=n.n(Uy),Gy=n("5a18"),Wy=n.n(Gy),Vy=n("5b16"),Yy=n.n(Vy),Zy=n("e35d"),Ky=n.n(Zy),Xy=n("3d18"),Jy=n.n(Xy),Qy=n("3bd3"),$y=n.n(Qy),ew=n("0a8f"),tw=n.n(ew),nw=n("318a"),rw=n.n(nw),iw=n("17f2"),ow=n.n(iw),aw=n("1c6b"),sw=n.n(aw),lw=n("482d"),cw=n.n(lw),uw=n("f796"),hw=n.n(uw),dw=n("049e"),fw=n.n(dw),pw=n("1e35"),mw=n.n(pw),gw=n("c97e"),vw=n.n(gw),bw=n("d67c"),yw=n.n(bw),ww=n("369f"),xw=n.n(ww),kw=n("5e32"),Aw=n.n(kw),Cw=n("e362"),Ew=n.n(Cw),Sw=n("6412"),Tw=n.n(Sw),Nw=n("0914"),Mw=n.n(Nw),Lw=n("22a7"),Ow=n.n(Lw),Dw=n("cace"),Pw=n.n(Dw),Iw=n("528d"),Rw=n.n(Iw),Fw=n("43cf"),zw=n.n(Fw),Bw=n("d875"),_w=n.n(Bw),jw=n("c87a"),Hw=n.n(jw),Uw=n("ea46"),qw=n.n(Uw),Gw=n("60fc"),Ww=n.n(Gw),Vw=n("07f3"),Yw=n.n(Vw),Zw=n("5023"),Kw=n.n(Zw),Xw=n("e437"),Jw=n.n(Xw),Qw=n("7f10"),$w=n.n(Qw),ex=n("a747"),tx=n.n(ex),nx=n("b46e"),rx=n.n(nx),ix=n("bd3c"),ox=n.n(ix),ax=n("7a10"),sx=n.n(ax),lx=n("0fb5"),cx=n.n(lx),ux=n("5af9"),hx=n.n(ux),dx=n("ba0f"),fx=n.n(dx),px=n("21cd"),mx=n.n(px),gx=n("35aa"),vx=n.n(gx),bx=n("aee9"),yx=n.n(bx),wx=n("ded7"),xx=n.n(wx),kx=n("aac9"),Ax=n.n(kx),Cx=n("0455"),Ex=n.n(Cx),Sx=n("027d"),Tx=n.n(Sx),Nx=n("f781"),Mx=n.n(Nx),Lx=n("7c97"),Ox=n.n(Lx),Dx=n("d271"),Px=n.n(Dx),Ix=n("cbf7"),Rx=n.n(Ix),Fx=n("a028"),zx=n.n(Fx),Bx=n("ca50"),_x=n.n(Bx),jx=n("ea3b"),Hx=n.n(jx),Ux=n("93af"),qx=n.n(Ux),Gx=n("2710"),Wx=n.n(Gx),Vx=n("3752"),Yx=n.n(Vx),Zx=n("8722"),Kx=n.n(Zx),Xx=n("3b50"),Jx=n.n(Xx),Qx=n("67dd"),$x=n.n(Qx),ek=n("229d"),tk=n.n(ek),nk=n("6d42"),rk=n.n(nk),ik=n("77f4"),ok=n.n(ik),ak=n("c53a"),sk=n.n(ak),lk=n("1485"),ck=n.n(lk),uk=n("b466"),hk=n.n(uk),dk=n("6705"),fk=n.n(dk),pk=n("b467"),mk=n.n(pk),gk=n("ee12"),vk=n.n(gk),bk=n("fee0"),yk=n.n(bk),wk=n("a3e0"),xk=n.n(wk),kk=n("bce0"),Ak=n.n(kk),Ck=n("9c58"),Ek=n.n(Ck),Sk=n("5e35"),Tk=n.n(Sk),Nk=n("6f5c"),Mk=n.n(Nk),Lk=n("a057"),Ok=n.n(Lk),Dk=n("2c41"),Pk=n.n(Dk),Ik=n("4659"),Rk=n.n(Ik),Fk=n("5082"),zk=n.n(Fk),Bk=n("9b17"),_k=n.n(Bk),jk=n("bd4d"),Hk=n.n(jk),Uk=n("0e25"),qk=n.n(Uk),Gk=n("7be0"),Wk=n.n(Gk),Vk=n("29dc"),Yk=n.n(Vk),Zk=n("e4a4"),Kk=n.n(Zk),Xk=n("5edb"),Jk=n.n(Xk),Qk=n("02a0"),$k=n.n(Qk),eA=n("3ec8"),tA=n.n(eA),nA=n("d5e5"),rA=n.n(nA),iA=n("2a43"),oA=n.n(iA),aA=n("ceaa"),sA=n.n(aA),lA=n("325b"),cA=n.n(lA),uA=n("98ee"),hA=n.n(uA),dA=n("0613"),fA=n.n(dA),pA=n("c5b2"),mA=n.n(pA),gA=n("c0b1"),vA=n.n(gA),bA=n("d4e4"),yA=n.n(bA),wA=n("4869"),xA=n.n(wA),kA=n("12a6"),AA=n.n(kA),CA=n("0bf4"),EA=n.n(CA),SA=n("14bd"),TA=n.n(SA),NA=n("a76c"),MA=n.n(NA),LA=n("8121"),OA=n.n(LA),DA=n("2783"),PA=n.n(DA),IA=n("65ee"),RA=n.n(IA),FA=n("db91"),zA=n.n(FA),BA=n("c80c"),_A=n.n(BA),jA=n("9f38"),HA=n.n(jA),UA=n("6c25"),qA=n.n(UA),GA=n("0e50"),WA=n.n(GA),VA=n("cd5f"),YA=n.n(VA),ZA=n("56d3"),KA=n.n(ZA),XA=n("2613"),JA=n.n(XA),QA=n("7e11"),$A=n.n(QA),eC=n("bf26"),tC=n.n(eC),nC=n("89c8"),rC=n.n(nC),iC=n("6d50"),oC=n.n(iC),aC=n("b0d8"),sC=n.n(aC),lC=n("a7fd"),cC=n.n(lC),uC=n("0082"),hC=n.n(uC),dC=n("c8db"),fC=n.n(dC),pC=n("a3cc"),mC=n.n(pC),gC=n("222a"),vC=n.n(gC),bC=n("7718"),yC=n.n(bC),wC=n("c099"),xC=n.n(wC),kC=n("b259"),AC=n.n(kC),CC=n("c605"),EC=n.n(CC),SC=n("6d75"),TC=n.n(SC),NC=n("35ae"),MC=n.n(NC),LC=n("103a"),OC=n.n(LC),DC=n("813c"),PC=n.n(DC),IC=n("b291"),RC=n.n(IC),FC=n("14d4"),zC=n.n(FC),BC=n("be45"),_C=n.n(BC),jC=n("dbfc"),HC=n.n(jC),UC=n("227b"),qC=n.n(UC),GC=n("5227"),WC=n.n(GC),VC=[{name:"商务",list:[{url:Kg.a,width:100,height:100},{url:Jg.a,width:100,height:100},{url:$g.a,width:100,height:100},{url:tv.a,width:100,height:100},{url:rv.a,width:100,height:100},{url:ov.a,width:100,height:100},{url:sv.a,width:100,height:100},{url:cv.a,width:100,height:100},{url:hv.a,width:100,height:100},{url:fv.a,width:100,height:100},{url:mv.a,width:100,height:100},{url:vv.a,width:100,height:100},{url:yv.a,width:100,height:100},{url:xv.a,width:100,height:100},{url:Av.a,width:100,height:100},{url:Ev.a,width:100,height:100},{url:Tv.a,width:100,height:100},{url:Mv.a,width:100,height:100},{url:Ov.a,width:100,height:100},{url:Pv.a,width:100,height:100},{url:Rv.a,width:100,height:100},{url:zv.a,width:100,height:100},{url:_v.a,width:100,height:100},{url:Hv.a,width:100,height:100},{url:qv.a,width:100,height:100},{url:Wv.a,width:100,height:100},{url:Yv.a,width:100,height:100},{url:Kv.a,width:100,height:100},{url:Jv.a,width:100,height:100},{url:$v.a,width:100,height:100},{url:tb.a,width:100,height:100},{url:rb.a,width:100,height:100},{url:ob.a,width:100,height:100},{url:sb.a,width:100,height:100},{url:cb.a,width:100,height:100},{url:hb.a,width:100,height:100},{url:fb.a,width:100,height:100},{url:mb.a,width:100,height:100}]},{name:"教育",list:[{url:vb.a,width:100,height:100},{url:yb.a,width:100,height:100},{url:xb.a,width:100,height:100},{url:Ab.a,width:100,height:100},{url:Eb.a,width:100,height:100},{url:Tb.a,width:100,height:100},{url:Mb.a,width:100,height:100},{url:Ob.a,width:100,height:100},{url:Pb.a,width:100,height:100},{url:Rb.a,width:100,height:100},{url:zb.a,width:100,height:100},{url:_b.a,width:100,height:100},{url:Hb.a,width:100,height:100},{url:qb.a,width:100,height:100},{url:Wb.a,width:100,height:100},{url:Yb.a,width:100,height:100},{url:Kb.a,width:100,height:100},{url:Jb.a,width:100,height:100},{url:$b.a,width:100,height:100},{url:ty.a,width:100,height:100},{url:ry.a,width:100,height:100},{url:oy.a,width:100,height:100},{url:sy.a,width:100,height:100},{url:cy.a,width:100,height:100},{url:hy.a,width:100,height:100},{url:fy.a,width:100,height:100},{url:my.a,width:100,height:100},{url:vy.a,width:100,height:100},{url:yy.a,width:100,height:100},{url:xy.a,width:100,height:100},{url:Ay.a,width:100,height:100},{url:Ey.a,width:100,height:100},{url:Ty.a,width:100,height:100},{url:My.a,width:100,height:100},{url:Oy.a,width:100,height:100},{url:Py.a,width:100,height:100},{url:Ry.a,width:100,height:100},{url:zy.a,width:100,height:100},{url:_y.a,width:100,height:100},{url:Hy.a,width:100,height:100},{url:qy.a,width:100,height:100},{url:Wy.a,width:100,height:100},{url:Yy.a,width:100,height:100},{url:Ky.a,width:100,height:100},{url:Jy.a,width:100,height:100},{url:$y.a,width:100,height:100},{url:tw.a,width:100,height:100},{url:rw.a,width:100,height:100},{url:ow.a,width:100,height:100},{url:sw.a,width:100,height:100},{url:cw.a,width:100,height:100},{url:hw.a,width:100,height:100},{url:fw.a,width:100,height:100},{url:mw.a,width:100,height:100},{url:vw.a,width:100,height:100},{url:yw.a,width:100,height:100},{url:xw.a,width:100,height:100},{url:Aw.a,width:100,height:100},{url:Ew.a,width:100,height:100},{url:Tw.a,width:100,height:100},{url:Mw.a,width:100,height:100},{url:Ow.a,width:100,height:100},{url:Pw.a,width:100,height:100},{url:Rw.a,width:100,height:100},{url:zw.a,width:100,height:100},{url:_w.a,width:100,height:100},{url:Hw.a,width:100,height:100}]},{name:"节日",list:[{url:qw.a,width:100,height:100},{url:Ww.a,width:100,height:100},{url:Yw.a,width:100,height:100},{url:Kw.a,width:100,height:100},{url:Jw.a,width:100,height:100},{url:$w.a,width:100,height:100},{url:tx.a,width:100,height:100},{url:rx.a,width:100,height:100},{url:ox.a,width:100,height:100},{url:sx.a,width:100,height:100},{url:cx.a,width:100,height:100},{url:hx.a,width:100,height:100},{url:fx.a,width:100,height:100},{url:mx.a,width:100,height:100},{url:vx.a,width:100,height:100},{url:yx.a,width:100,height:100},{url:xx.a,width:100,height:100},{url:Ax.a,width:100,height:100},{url:Ex.a,width:100,height:100},{url:Tx.a,width:100,height:100}]},{name:"食物",list:[{url:Mx.a,width:100,height:100},{url:Ox.a,width:100,height:100},{url:Px.a,width:100,height:100},{url:Rx.a,width:100,height:100},{url:zx.a,width:100,height:100},{url:_x.a,width:100,height:100},{url:Hx.a,width:100,height:100},{url:qx.a,width:100,height:100},{url:Wx.a,width:100,height:100},{url:Yx.a,width:100,height:100},{url:Kx.a,width:100,height:100},{url:Jx.a,width:100,height:100},{url:$x.a,width:100,height:100},{url:tk.a,width:100,height:100},{url:rk.a,width:100,height:100},{url:ok.a,width:100,height:100},{url:sk.a,width:100,height:100},{url:ck.a,width:100,height:100},{url:hk.a,width:100,height:100},{url:fk.a,width:100,height:100},{url:mk.a,width:100,height:100},{url:vk.a,width:100,height:100},{url:yk.a,width:100,height:100},{url:xk.a,width:100,height:100},{url:Ak.a,width:100,height:100},{url:Ek.a,width:100,height:100},{url:Tk.a,width:100,height:100},{url:Mk.a,width:100,height:100},{url:Ok.a,width:100,height:100},{url:Pk.a,width:100,height:100}]},{name:"医疗",list:[{url:Rk.a,width:100,height:100},{url:zk.a,width:100,height:100},{url:_k.a,width:100,height:100},{url:Hk.a,width:100,height:100},{url:qk.a,width:100,height:100},{url:Wk.a,width:100,height:100},{url:Yk.a,width:100,height:100},{url:Kk.a,width:100,height:100},{url:Jk.a,width:100,height:100},{url:$k.a,width:100,height:100},{url:tA.a,width:100,height:100},{url:rA.a,width:100,height:100},{url:oA.a,width:100,height:100},{url:sA.a,width:100,height:100},{url:cA.a,width:100,height:100},{url:hA.a,width:100,height:100},{url:fA.a,width:100,height:100},{url:mA.a,width:100,height:100},{url:vA.a,width:100,height:100},{url:yA.a,width:100,height:100}]},{name:"工具",list:[{url:xA.a,width:100,height:100},{url:AA.a,width:100,height:100},{url:EA.a,width:100,height:100},{url:TA.a,width:100,height:100},{url:MA.a,width:100,height:100},{url:OA.a,width:100,height:100},{url:PA.a,width:100,height:100},{url:RA.a,width:100,height:100},{url:zA.a,width:100,height:100},{url:_A.a,width:100,height:100},{url:HA.a,width:100,height:100},{url:qA.a,width:100,height:100},{url:WA.a,width:100,height:100},{url:YA.a,width:100,height:100},{url:KA.a,width:100,height:100},{url:JA.a,width:100,height:100},{url:$A.a,width:100,height:100},{url:tC.a,width:100,height:100},{url:rC.a,width:100,height:100},{url:oC.a,width:100,height:100}]},{name:"旅行",list:[{url:sC.a,width:100,height:100},{url:cC.a,width:100,height:100},{url:hC.a,width:100,height:100},{url:fC.a,width:100,height:100},{url:mC.a,width:100,height:100},{url:vC.a,width:100,height:100},{url:yC.a,width:100,height:100},{url:xC.a,width:100,height:100},{url:AC.a,width:100,height:100},{url:EC.a,width:100,height:100},{url:TC.a,width:100,height:100},{url:MC.a,width:100,height:100},{url:OC.a,width:100,height:100},{url:PC.a,width:100,height:100},{url:RC.a,width:100,height:100},{url:zC.a,width:100,height:100},{url:_C.a,width:100,height:100},{url:HC.a,width:100,height:100},{url:qC.a,width:100,height:100},{url:WC.a,width:100,height:100}]}],YC={name:"NodeIconSidebar",components:{Sidebar:cp},data(){return{activeName:"icon",nodeIconList:Object(v["M"])([...D,...H]),nodeImageList:[...VC],iconList:[],nodeImage:"",activeNodes:[]}},computed:{...Object(se["d"])(["activeSidebar","isDark"])},watch:{activeSidebar(e){this.$refs.sidebar.show="nodeIconSidebar"===e}},created(){this.$bus.$on("node_active",this.handleNodeActive),this.$bus.$on("showNodeIcon",this.handleShowNodeIcon)},beforeDestroy(){this.$bus.$off("node_active",this.handleNodeActive),this.$bus.$off("showNodeIcon",this.handleShowNodeIcon)},methods:{handleNodeActive(...e){if(this.activeNodes=[...e[1]],this.activeNodes.length>0)if(1===this.activeNodes.length){let e=this.activeNodes[0];this.nodeImage=e.getData("image")||"",this.iconList=e.getData("icon")||[]}else this.nodeImage=[],this.iconList=[];else this.iconList=[],this.nodeImage=""},handleShowNodeIcon(){this.dialogVisible=!0},getHtml(e){return/^`},setIcon(e,t){this.activeNodes.forEach(n=>{const r=[...n.getData("icon")||[]];let i=e+"_"+t,o=r.findIndex(e=>e===i);if(-1!==o)r.splice(o,1);else{let t=r.findIndex(t=>t.split("_")[0]===e);-1!==t?r.splice(t,1,i):r.push(i)}n.setIcon(r),1===this.activeNodes.length&&(this.iconList=r)})},setImage(e){this.activeNodes.forEach(t=>{this.nodeImage=e.url,t.setImage({...e})})}}},ZC=YC,KC=(n("fff4"),Object(p["a"])(ZC,Vg,Yg,!1,null,"6adf6422",null)),XC=KC.exports,JC=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.showNodeIconToolbar,expression:"showNodeIconToolbar"}],ref:"nodeIconToolbar",staticClass:"nodeIconToolbar",style:e.style,on:{"&click":function(e){e.stopPropagation()}}},[t("div",{staticClass:"iconListBox"},e._l(e.iconList,(function(n){return t("div",{key:n.name,staticClass:"icon",class:{selected:e.nodeIconList.includes(e.iconType+"_"+n.name)},domProps:{innerHTML:e._s(e.getHtml(n.icon))},on:{click:function(t){return e.setIcon(n.name)}}})})),0),t("div",{staticClass:"btnBox"},[t("span",{staticClass:"btn iconfont iconshanchu",on:{click:e.deleteIcon}})])])},QC=[];const $C=[...D,...H];var eE={name:"NodeIconToolbar",components:{},props:{mindMap:{type:Object}},data(){return{showNodeIconToolbar:!1,style:{left:0,top:0},node:null,iconType:"",iconName:"",nodeIconList:[],iconList:[]}},computed:{...Object(se["d"])(["activeSidebar"])},created(){this.mindMap.on("node_icon_click",this.show),this.mindMap.on("draw_click",this.close),this.mindMap.on("svg_mousedown",this.close),this.mindMap.on("node_dblclick",this.close),this.mindMap.on("node_active",this.onNodeActive),this.mindMap.on("scale",this.onScale),this.$bus.$on("close_node_icon_toolbar",this.close)},mounted(){document.body.append(this.$refs.nodeIconToolbar)},beforeDestroy(){this.mindMap.off("node_icon_click",this.show),this.mindMap.off("draw_click",this.close),this.mindMap.off("svg_mousedown",this.close),this.mindMap.off("node_dblclick",this.close),this.mindMap.off("node_active",this.onNodeActive),this.mindMap.off("scale",this.onScale),this.$bus.$off("close_node_icon_toolbar",this.close)},methods:{...Object(se["c"])(["setActiveSidebar"]),show(e,t){this.node=e,this.iconType=t.split("_")[0],this.iconName=t.split("_")[1],this.nodeIconList=e.getData("icon")||[],this.iconList=[...$C.find(e=>e.type===this.iconType).list],this.updatePos(),this.showNodeIconToolbar=!0,"nodeIconSidebar"===this.activeSidebar&&this.setActiveSidebar("")},close(){this.showNodeIconToolbar=!1,this.node=null,this.iconType="",this.iconName="",this.nodeIconList=[],this.iconList=[],this.style.left=0,this.style.top=0},updatePos(){if(!this.node)return;const e=this.node.getRect();this.style.left=e.x+"px",this.style.top=e.y+e.height+"px"},onScale(){this.updatePos()},onNodeActive(e){e!==this.node&&this.close()},deleteIcon(){this.setIcon(this.iconName),this.close()},getHtml(e){return/^`},setIcon(e){let t=this.iconType+"_"+e,n=this.nodeIconList.findIndex(e=>e===t);if(-1!==n)this.nodeIconList.splice(n,1);else{let n=this.nodeIconList.findIndex(e=>e.split("_")[0]===this.iconType);-1!==n?(this.nodeIconList.splice(n,1,t),this.iconName=e):this.nodeIconList.push(t)}this.node.setIcon([...this.nodeIconList])}}},tE=eE,nE=(n("e6d0"),Object(p["a"])(tE,JC,QC,!1,null,"1321abee",null)),rE=nE.exports,iE=function(){var e=this,t=e._self._c;return e.isOutlineEdit?t("div",{ref:"outlineEditContainer",staticClass:"outlineEditContainer",class:{isDark:e.isDark}},[t("div",{staticClass:"closeBtn",on:{click:e.onClose}},[t("span",{staticClass:"icon iconfont iconguanbi"})]),t("div",{ref:"outlineEditBox",staticClass:"outlineEditBox"},[t("div",{staticClass:"outlineEdit"},[t("el-tree",{ref:"tree",staticClass:"outlineTree",class:{isDark:e.isDark},attrs:{"node-key":"uid",draggable:"","default-expand-all":"",data:e.data,props:e.defaultProps,"highlight-current":!0,"expand-on-click-node":!1,"allow-drag":e.checkAllowDrag},on:{"node-drop":e.onNodeDrop,"current-change":e.onCurrentChange},scopedSlots:e._u([{key:"default",fn:function({node:n,data:r}){return t("span",{staticClass:"customNode",attrs:{"data-id":r.uid}},[t("span",{key:e.getKey(),staticClass:"nodeEdit",attrs:{contenteditable:!e.isReadonly},domProps:{innerHTML:e._s(n.label)},on:{blur:function(t){return e.onBlur(t,n)},keydown:function(t){return t.stopPropagation(),e.onNodeInputKeydown(t,n)},keyup:function(e){e.stopPropagation()},paste:function(t){return e.onPaste(t,n)}}})])}}],null,!1,485109613)})],1)])]):e._e()},oE=[],aE={name:"OutlineEdit",props:{mindMap:{type:Object}},data(){return{data:[],defaultProps:{label:"label"},currentData:null}},computed:{...Object(se["d"])(["isOutlineEdit","isDark","isReadonly"])},watch:{isOutlineEdit(e){e&&(this.refresh(),this.$nextTick(()=>{document.body.appendChild(this.$refs.outlineEditContainer)}))}},created(){window.addEventListener("keydown",this.onKeyDown)},beforeDestroy(){window.removeEventListener("keydown",this.onKeyDown)},methods:{...Object(se["c"])(["setIsOutlineEdit"]),refresh(){let e=this.mindMap.getData();e.root=!0;let t=e=>{let n=(e.data.richText?Object(v["O"])(e.data.text):e.data.text).replaceAll(/\n/g,"
");n=Object(v["E"])(n),e.textCache=n,e.label=n,e.uid=e.data.uid,e.children&&e.children.length>0&&e.children.forEach(e=>{t(e)})};t(e),this.data=[e]},checkAllowDrag(e){return!e.data.root},onNodeDrop(){this.save()},onCurrentChange(e){this.currentData=e},onBlur(e,t){if(t.data.textCache===e.target.innerHTML)return;const n=t.data.data.richText,r=n?e.target.innerHTML:e.target.innerText;t.data.data.text=n?Object(v["bb"])(r):r,n&&(t.data.data.resetRichText=!0),t.data.textCache=e.target.innerHTML,this.save()},onNodeInputKeydown(e,t){const n=!!t.data.data.richText,r=Object(v["m"])(),i=this.$t("outline.nodeDefaultText"),o={textCache:i,uid:r,label:i,data:{text:n?Object(v["bb"])(i):i,uid:r,richText:n},children:[]};if(n&&(o.data.resetRichText=!0),13===e.keyCode&&!e.shiftKey){if(e.preventDefault(),t.data.root)return;this.$refs.tree.insertAfter(o,t)}9===e.keyCode&&(e.preventDefault(),this.$refs.tree.append(o,t)),this.save(),this.$nextTick(()=>{this.$refs.tree.setCurrentKey(r);const e=document.querySelector(`.customNode[data-id="${r}"] .nodeEdit`);if(e){let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);let r=e.offsetTop;this.scrollTo(r)}})},onKeyDown(e){this.isOutlineEdit&&[46,8].includes(e.keyCode)&&this.currentData&&(e.stopPropagation(),this.$refs.tree.remove(this.currentData),this.currentData=null,this.save())},onPaste(e){e.preventDefault();const t=window.getSelection();if(!t.rangeCount)return;t.deleteFromDocument();let n=(e.clipboardData||window.clipboardData).getData("text");n=Object(v["z"])(n),n=n.replaceAll(/\n/g,"");const r=document.createTextNode(n);t.getRangeAt(0).insertNode(r),t.collapseToEnd()},getKey(){return Math.random()},onClose(){this.setIsOutlineEdit(!1),this.$bus.$emit("setData",this.getData())},scrollTo(e){let t=this.$refs.outlineEditBox,n=t.offsetHeight,r=t.scrollTop;e+=50,e>r+n&&t.scrollTo(0,e-n/2)},getData(){let e={},t=this.data[0],n=(e,t)=>{t.data=e.data,t.children=[],(e.children||[]).forEach(e=>{const r={};t.children.push(r),n(e,r)})};return n(t,e),Object(v["ab"])(e)},save(){Object(Wi["e"])(this.getData())}}},sE=aE,lE=(n("fdc4"),Object(p["a"])(sE,iE,oE,!1,null,"07021e90",null)),cE=lE.exports;let uE=null;const hE=()=>{uE=qi["Loading"].service({lock:!0})},dE=()=>{uE&&(uE.close(),uE=null)},fE=async e=>{try{try{Array.isArray(e)||(e=String(e).replace("￿\ufeff",""),e=JSON.parse(e))}catch(t){console.log(t)}Array.isArray(e)||(e=[]);const n=[],r=[],i=(e,n)=>{e.forEach(async e=>{let o={};if(n.push(o),o.data={text:e.data.text,hyperlink:e.data.hyperlink,hyperlinkTitle:e.data.hyperlinkTitle,note:e.data.note},e.data.image){let n=null,i=new Promise(e=>{n=e});r.push(i);try{o.data.image=await Object(v["F"])(e.data.image),o.data.imageSize=e.data.imageSize,n()}catch(t){n()}}if(o.children=[],e.children&&e.children.length>0){const t=[];e.children.forEach(e=>{"generalize"===e.data.type?o.data.generalization={text:e.data.text}:t.push(e)}),i(t,o.children)}})};return i(e,n),await Promise.all(r),{simpleMindMap:!0,data:n}}catch(t){return""}},pE=async e=>{try{let t=JSON.parse(e);if(void 0!==t.__c_zx_v){const e=await fE(t.children);return e}}catch(t){}if(e.includes("￿\ufeff")){const t=await fE(e);return t}return""};var mE=pE,gE=function(){var e=this,t=e._self._c;return t("div",{staticClass:"scrollbarContainer",class:{isDark:e.isDark}},[t("div",{ref:"verticalScrollbarRef",staticClass:"scrollbar verticalScrollbar",on:{click:e.onVerticalScrollbarClick}},[t("div",{staticClass:"scrollbarInner",style:e.verticalScrollbarStyle,on:{click:function(e){e.stopPropagation()},mousedown:e.onVerticalScrollbarMousedown}})]),t("div",{ref:"horizontalScrollbarRef",staticClass:"scrollbar horizontalScrollbar",on:{click:e.onHorizontalScrollbarClick}},[t("div",{staticClass:"scrollbarInner",style:e.horizontalScrollbarStyle,on:{click:function(e){e.stopPropagation()},mousedown:e.onHorizontalScrollbarMousedown}})])])},vE=[],bE={props:{mindMap:{type:Object}},data(){return{timer:null,resizeTimer:null,verticalScrollbarStyle:{},horizontalScrollbarStyle:{}}},computed:{...Object(se["d"])(["isDark"])},mounted(){this.setScrollBarWrapSize(),this.$bus.$on("scrollbar_change",this.updateScrollbar),window.addEventListener("resize",this.onResize)},beforeDestroy(){this.$bus.$off("scrollbar_change",this.updateScrollbar),window.removeEventListener("resize",this.onResize)},methods:{setScrollBarWrapSize(){const{width:e}=this.$refs.horizontalScrollbarRef.getBoundingClientRect(),{height:t}=this.$refs.verticalScrollbarRef.getBoundingClientRect();this.mindMap.scrollbar.setScrollBarWrapSize(e,t)},onResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(()=>{this.setScrollBarWrapSize()},300)},updateScrollbar({vertical:e,horizontal:t}){this.verticalScrollbarStyle={top:e.top+"%",height:e.height+"%"},this.horizontalScrollbarStyle={left:t.left+"%",width:t.width+"%"}},onVerticalScrollbarMousedown(e){this.mindMap.scrollbar.onMousedown(e,"vertical")},onVerticalScrollbarClick(e){this.mindMap.scrollbar.onClick(e,"vertical")},onHorizontalScrollbarMousedown(e){this.mindMap.scrollbar.onMousedown(e,"horizontal")},onHorizontalScrollbarClick(e){this.mindMap.scrollbar.onClick(e,"horizontal")}}},yE=bE,wE=(n("3561"),Object(p["a"])(yE,gE,vE,!1,null,"41219b84",null)),xE=wE.exports,kE=function(){var e=this,t=e._self._c;return t("Sidebar",{ref:"sidebar",attrs:{title:e.$t("formulaSidebar.title")}},[t("div",{staticClass:"box",class:{isDark:e.isDark}},[t("div",{staticClass:"formulaInputBox"},[t("el-input",{attrs:{rows:4,resize:"none",type:"textarea",placeholder:e.$t("formulaSidebar.placeholder")},nativeOn:{keydown:function(e){e.stopPropagation()}},model:{value:e.formulaText,callback:function(t){e.formulaText=t},expression:"formulaText"}}),t("el-button",{staticStyle:{width:"100%","margin-top":"20px"},attrs:{size:"small"},on:{click:e.confirm}},[e._v(e._s(e.$t("formulaSidebar.confirm")))])],1),t("div",{staticClass:"title"},[e._v(e._s(e.$t("formulaSidebar.common")))]),t("div",{staticClass:"formulaList"},e._l(e.list,(function(n,r){return t("div",{key:r,staticClass:"formulaItem"},[t("div",{staticClass:"overview",domProps:{innerHTML:e._s(n.overview)}}),t("div",{staticClass:"text",on:{click:function(t){e.formulaText=n.text}}},[e._v(" "+e._s(n.text)+" ")])])})),0)])])},AE=[],CE={name:"FormulaSidebar",components:{Sidebar:cp},props:{mindMap:{type:Object}},data(){return{formulaText:"",list:[]}},computed:{...Object(se["d"])(["activeSidebar","isDark","localConfig"])},watch:{activeSidebar(e){this.$refs.sidebar.show="formulaSidebar"===e}},created(){this.$bus.$on("node_active",this.handleNodeActive)},beforeDestroy(){this.$bus.$off("node_active",this.handleNodeActive)},mounted(){this.init()},methods:{...Object(se["c"])(["setActiveSidebar"]),init(){this.list=Up.map(e=>({overview:window.katex.renderToString(e,{throwOnError:!1,output:"mathml"}),text:e}))},handleNodeActive(...e){this.activeNodes=[...e[1]],this.activeNodes.length<=0&&"formulaSidebar"===this.activeSidebar&&this.setActiveSidebar(null)},confirm(){if(!this.localConfig.openNodeRichText)return this.$message.warning(this.$t("formulaSidebar.tip"));let e=this.formulaText.trim();e&&this.mindMap.execCommand("INSERT_FORMULA",e)}}},EE=CE,SE=(n("2c02"),Object(p["a"])(EE,kE,AE,!1,null,"24ccf624",null)),TE=SE.exports;wd.usePlugin(kd).usePlugin(Cd).usePlugin(Wd).usePlugin(Sd).usePlugin(Md).usePlugin(Od).usePlugin(qd).usePlugin(Yd).usePlugin(Bf).usePlugin(Uf).usePlugin(jf).usePlugin(Gf).usePlugin(Vf).usePlugin(Zf).usePlugin(Qf),tm.forEach(e=>{wd.defineTheme(e.value,e.theme)});var NE={name:"Edit",components:{OutlineSidebar:yp,Style:Op,BaseStyle:zp,Theme:om,Structure:hm,Count:bm,NavigatorToolbar:Gm,ShortcutKey:Xm,Contextmenu:ng,RichTextToolbar:lg,NodeNoteContentShow:gg,Navigator:kg,NodeImgPreview:Ng,SidebarTrigger:Ig,Search:Wg,NodeIconSidebar:XC,NodeIconToolbar:rE,OutlineEdit:cE,Scrollbar:xE,FormulaSidebar:TE},data(){return{enableShowLoading:!0,mindMap:null,mindMapData:null,prevImg:"",storeConfigTimer:null}},computed:{...Object(se["d"])({isZenMode:e=>e.localConfig.isZenMode,openNodeRichText:e=>e.localConfig.openNodeRichText,useLeftKeySelectionRightKeyDrag:e=>e.localConfig.useLeftKeySelectionRightKeyDrag,isShowScrollbar:e=>e.localConfig.isShowScrollbar})},watch:{openNodeRichText(){this.openNodeRichText?this.addRichTextPlugin():this.removeRichTextPlugin()}},mounted(){hE(),this.getData(),this.init(),this.$bus.$on("execCommand",this.execCommand),this.$bus.$on("paddingChange",this.onPaddingChange),this.$bus.$on("export",this.export),this.$bus.$on("setData",this.setData),this.$bus.$on("startTextEdit",this.handleStartTextEdit),this.$bus.$on("endTextEdit",this.handleEndTextEdit),this.$bus.$on("createAssociativeLine",this.handleCreateLineFromActiveNode),this.$bus.$on("startPainter",this.handleStartPainter),this.$bus.$on("node_tree_render_end",this.handleHideLoading),this.$bus.$on("showLoading",this.handleShowLoading),window.addEventListener("resize",this.handleResize)},beforeDestroy(){this.$bus.$off("execCommand",this.execCommand),this.$bus.$off("paddingChange",this.onPaddingChange),this.$bus.$off("export",this.export),this.$bus.$off("setData",this.setData),this.$bus.$off("startTextEdit",this.handleStartTextEdit),this.$bus.$off("endTextEdit",this.handleEndTextEdit),this.$bus.$off("createAssociativeLine",this.handleCreateLineFromActiveNode),this.$bus.$off("startPainter",this.handleStartPainter),this.$bus.$off("node_tree_render_end",this.handleHideLoading),this.$bus.$off("showLoading",this.handleShowLoading),window.removeEventListener("resize",this.handleResize),this.mindMap.destroy()},methods:{handleStartTextEdit(){this.mindMap.renderer.startTextEdit()},handleEndTextEdit(){this.mindMap.renderer.endTextEdit()},handleCreateLineFromActiveNode(){this.mindMap.associativeLine.createLineFromActiveNode()},handleStartPainter(){this.mindMap.painter.startPainter()},handleResize(){this.mindMap.resize()},handleShowLoading(){this.enableShowLoading=!0,hE()},handleHideLoading(){this.enableShowLoading&&(this.enableShowLoading=!1,dE())},getData(){let e=Object(Wi["a"])();this.mindMapData=e},bindSaveEvent(){this.$bus.$on("data_change",e=>{Object(Wi["e"])(e)}),this.$bus.$on("view_data_change",e=>{clearTimeout(this.storeConfigTimer),this.storeConfigTimer=setTimeout(()=>{Object(Wi["d"])({view:e})},300)})},manualSave(){let e=this.mindMap.getData(!0);Object(Wi["d"])(e)},init(){let e=this.hasFileURL(),{root:t,layout:r,theme:i,view:o,config:a}=this.mindMapData;e&&(t={data:{text:this.$t("edit.root")},children:[]},r=Gi["a"].layout,i=Gi["a"].theme,o=null),this.mindMap=new wd({el:this.$refs.mindMapContainer,data:t,fit:!1,layout:r,theme:i.template,themeConfig:i.config,viewData:o,nodeTextEditZIndex:1e3,nodeNoteTooltipZIndex:1e3,customNoteContentShow:{show:(e,t,n,r)=>{this.$bus.$emit("showNoteContent",e,t,n,r)},hide:()=>{}},...a||{},iconList:[...H],useLeftKeySelectionRightKeyDrag:this.useLeftKeySelectionRightKeyDrag,customInnerElsAppendTo:null,enableAutoEnterTextEditWhenKeydown:!0,customHandleClipboardText:mE,defaultNodeImage:n("24d1"),handleIsSplitByWrapOnPasteCreateNewNode:()=>this.$confirm(this.$t("edit.splitByWrap"),this.$t("edit.tip"),{confirmButtonText:this.$t("edit.yes"),cancelButtonText:this.$t("edit.no"),type:"warning"}),errorHandler:(e,t)=>{switch(console.error(t),e){case"export_error":this.$message.error("导出失败");break;default:break}}}),this.openNodeRichText&&this.addRichTextPlugin(),this.mindMap.keyCommand.addShortcut("Control+s",()=>{this.manualSave()}),["node_active","data_change","view_data_change","back_forward","node_contextmenu","node_click","draw_click","expand_btn_click","svg_mousedown","mouseup","mode_change","node_tree_render_end","rich_text_selection_change","transforming-dom-to-images","generalization_node_contextmenu","painter_start","painter_end","scrollbar_change","scale"].forEach(e=>{this.mindMap.on(e,(...t)=>{this.$bus.$emit(e,...t)})}),this.bindSaveEvent(),this.testDynamicCreateNodes(),window.takeOverApp&&this.$bus.$emit("app_inited",this.mindMap),e&&this.$bus.$emit("handle_file_url"),this.cooperateTest()},hasFileURL(){const e=this.$route.query.fileURL;return!!e&&/\.(smm|json|xmind|md|xlsx)$/.test(e)},setData(e){this.handleShowLoading(),e.root?this.mindMap.setFullData(e):this.mindMap.setData(e),this.mindMap.view.reset(),this.manualSave()},reRender(){this.mindMap.reRender()},execCommand(...e){this.mindMap.execCommand(...e)},async export(...e){try{hE(),await this.mindMap.export(...e),dE()}catch(t){console.log(t),dE()}},onPaddingChange(e){this.mindMap.updateConfig(e)},showNewFeatureInfo(){let e=localStorage.getItem("SIMPLE_MIND_MAP_NEW_FEATURE_TIP_1");e||this.$notify.info({title:this.$t("edit.newFeatureNoticeTitle"),message:this.$t("edit.newFeatureNoticeMessage"),duration:0,onClose:()=>{localStorage.setItem("SIMPLE_MIND_MAP_NEW_FEATURE_TIP_1",!0)}})},addRichTextPlugin(){this.mindMap&&this.mindMap.addPlugin(nf)},removeRichTextPlugin(){this.mindMap.removePlugin(nf)},testDynamicCreateNodes(){setTimeout(()=>{},5e3)},cooperateTest(){this.mindMap.cooperate&&this.$route.query.userName&&(this.mindMap.cooperate.setProvider(null,{roomName:"demo-room",signalingList:["ws://192.168.3.125:4444"]}),this.mindMap.cooperate.setUserInfo({id:Math.random(),name:this.$route.query.userName,color:["#409EFF","#67C23A","#E6A23C","#F56C6C","#909399"][Math.floor(5*Math.random())],avatar:Math.random()>.5?"https://img0.baidu.com/it/u=4270674549,2416627993&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1696006800&t=4d32871d14a7224a4591d0c3c7a97311":""}))}}},ME=NE,LE=(n("4363"),Object(p["a"])(ME,ro,io,!1,null,"05b8f366",null)),OE=LE.exports,DE={name:"Index",components:{Toolbar:no,Edit:OE},data(){return{show:!1}},computed:{...Object(se["d"])({isZenMode:e=>e.localConfig.isZenMode,isDark:e=>e.isDark,activeSidebar:e=>e.activeSidebar})},watch:{isDark(){this.setBodyDark()}},async created(){this.initLocalConfig();const e=this.$loading({lock:!0,text:this.$t("other.loading")});await this.getUserMindMapData(),this.show=!0,e.close(),this.setBodyDark()},methods:{...Object(se["b"])(["getUserMindMapData"]),...Object(se["c"])(["setLocalConfig"]),initLocalConfig(){let e=Object(Wi["c"])();e&&this.setLocalConfig({...this.$store.state.localConfig,...e})},setBodyDark(){this.isDark?document.body.classList.add("isDark"):document.body.classList.remove("isDark")}}},PE=DE,IE=(n("dd87"),Object(p["a"])(PE,i,o,!1,null,null,null));t["default"]=IE.exports},"5fd6":function(e,t,n){e.exports=n.p+"img/DNA.svg"},6005:function(e,t,n){"use strict";var r=n("a578"),i=n("cc50"),o=n("2f2d"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},"60fc":function(e,t,n){e.exports=n.p+"img/chunjie.svg"},6171:function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"61d3":function(e,t,n){},"61eb":function(e,t,n){"use strict";var r=n("54be"),i=n("6e16");e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),i.f(e,t,n)}},6276:function(e,t,n){e.exports=n.p+"img/skyGreen.jpg"},6277:function(e,t,n){},"63dc":function(e,t,n){},6412:function(e,t,n){e.exports=n.p+"img/tingzhenqi.svg"},6490:function(e,t,n){e.exports=n.p+"img/-_11.svg"},"655f":function(e,t,n){e.exports=n.p+"img/a-shu2.svg"},"65ee":function(e,t,n){e.exports=n.p+"img/ziyuan_14.svg"},6705:function(e,t,n){e.exports=n.p+"img/quqi.svg"},"67dd":function(e,t,n){e.exports=n.p+"img/kafeibei.svg"},"682c":function(e,t,n){"use strict";var r=function(e){return i(e)&&!o(e)};function i(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function c(e){return Array.isArray(e)?[]:{}}function u(e,t){var n=t&&!0===t.clone;return n&&r(e)?f(c(e),e,t):e}function h(e,t,n){var i=e.slice();return t.forEach((function(t,o){"undefined"===typeof i[o]?i[o]=u(t,n):r(t)?i[o]=f(e[o],t,n):-1===e.indexOf(t)&&i.push(u(t,n))})),i}function d(e,t,n){var i={};return r(e)&&Object.keys(e).forEach((function(t){i[t]=u(e[t],n)})),Object.keys(t).forEach((function(o){r(t[o])&&e[o]?i[o]=f(e[o],t[o],n):i[o]=u(t[o],n)})),i}function f(e,t,n){var r=Array.isArray(t),i=Array.isArray(e),o=n||{arrayMerge:h},a=r===i;if(a){if(r){var s=o.arrayMerge||h;return s(e,t,n)}return d(e,t,n)}return u(t,n)}f.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return f(e,n,t)}))};var p=f;e.exports=p},"6ad8":function(e,t,n){e.exports=n.p+"img/lateNightOffice.jpg"},"6ade":function(e,t,n){e.exports=n.p+"img/fanyi.svg"},"6ba1":function(e,t,n){"use strict";var r=n("2f2d"),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(o):function(){return a.apply(o,arguments)})},"6c12":function(e,t,n){"use strict";var r=n("46ab"),i=Error,o=r("".replace),a=function(e){return String(new i(e).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,l=s.test(a);e.exports=function(e,t){if(l&&"string"==typeof e&&!i.prepareStackTrace)while(t--)e=o(e,s,"");return e}},"6c25":function(e,t,n){e.exports=n.p+"img/ziyuan_18.svg"},"6c83":function(e,t,n){e.exports=n.p+"img/seaBlueLine.jpg"},"6d42":function(e,t,n){e.exports=n.p+"img/naixi.svg"},"6d50":function(e,t,n){e.exports=n.p+"img/ziyuan_9.svg"},"6d75":function(e,t,n){e.exports=n.p+"img/meishi.svg"},"6eac":function(e,t,n){"use strict";n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return d}));var r=n("9fd6"),i=n("5ab3"),o=n("9a8c"),a=n("9aca"),s=n("ca2d");const l=(e,t)=>{const n=s["b"](e).buffer,r=s["b"](t).buffer;return crypto.subtle.importKey("raw",n,"PBKDF2",!1,["deriveKey"]).then(e=>crypto.subtle.deriveKey({name:"PBKDF2",salt:r,iterations:1e5,hash:"SHA-256"},e,{name:"AES-GCM",length:256},!0,["encrypt","decrypt"]))},c=(e,t)=>{if(!t)return o["c"](e);const n=crypto.getRandomValues(new Uint8Array(12));return crypto.subtle.encrypt({name:"AES-GCM",iv:n},t,e).then(e=>{const t=r["e"]();return r["m"](t,"AES-GCM"),r["o"](t,n),r["o"](t,new Uint8Array(e)),r["f"](t)})},u=(e,t)=>{const n=r["e"]();return r["h"](n,e),c(r["f"](n),t)},h=(e,t)=>{if(!t)return o["c"](e);const n=i["e"](e),r=i["j"](n);"AES-GCM"!==r&&o["b"](a["a"]("Unknown encryption algorithm"));const s=i["l"](n),l=i["l"](n);return crypto.subtle.decrypt({name:"AES-GCM",iv:s},t,l).then(e=>new Uint8Array(e))},d=(e,t)=>h(e,t).then(e=>i["g"](i["e"](new Uint8Array(e))))},"6f27":function(e,t,n){"use strict";function r(e){this.content=e}n.r(t),n.d(t,"ContentMatch",(function(){return R})),n.d(t,"DOMParser",(function(){return re})),n.d(t,"DOMSerializer",(function(){return ye})),n.d(t,"Fragment",(function(){return s})),n.d(t,"Mark",(function(){return h})),n.d(t,"MarkType",(function(){return ee})),n.d(t,"Node",(function(){return D})),n.d(t,"NodeRange",(function(){return L})),n.d(t,"NodeType",(function(){return Q})),n.d(t,"ReplaceError",(function(){return d})),n.d(t,"ResolvedPos",(function(){return S})),n.d(t,"Schema",(function(){return te})),n.d(t,"Slice",(function(){return f})),r.prototype={constructor:r,find:function(e){for(var t=0;t>1}},r.from=function(e){if(e instanceof r)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new r(t)};var i=r;function o(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i!=a){if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){for(let e=0;i.text[e]==a.text[e];e++)n++;return n}if(i.content.size||a.content.size){let e=o(i.content,a.content,n+1);if(null!=e)return e}n+=i.nodeSize}else n+=i.nodeSize}}function a(e,t,n,r){for(let i=e.childCount,o=t.childCount;;){if(0==i||0==o)return i==o?null:{a:n,b:r};let s=e.child(--i),l=t.child(--o),c=s.nodeSize;if(s!=l){if(!s.sameMarkup(l))return{a:n,b:r};if(s.isText&&s.text!=l.text){let e=0,t=Math.min(s.text.length,l.text.length);while(ee&&!1!==n(s,r+a,i||null,o)&&s.content.size){let i=a+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i="",o=!0;return this.nodesBetween(e,t,(a,s)=>{a.isText?(i+=a.text.slice(Math.max(e,s)-s,t-s),o=!n):a.isLeaf?(r?i+="function"===typeof r?r(a):r:a.type.spec.leafText&&(i+=a.type.spec.leafText(a)),o=!n):!o&&a.isBlock&&(i+=n,o=!0)},0),i}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,n=e.firstChild,r=this.content.slice(),i=0;for(t.isText&&t.sameMarkup(n)&&(r[r.length-1]=t.withText(t.text+n.text),i=1);ie)for(let i=0,o=0;oe&&((ot)&&(a=a.isText?a.cut(Math.max(0,e-o),Math.min(a.text.length,t-o)):a.cut(Math.max(0,e-o-1),Math.min(a.content.size,t-o-1))),n.push(a),r+=a.nodeSize),o=s}return new s(n,r)}cutByIndex(e,t){return e==t?s.empty:0==e&&t==this.content.length?this:new s(this.content.slice(e,t))}replaceChild(e,t){let n=this.content[e];if(n==t)return this;let r=this.content.slice(),i=this.size+t.nodeSize-n.nodeSize;return r[e]=t,new s(r,i)}addToStart(e){return new s([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new s(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;tthis.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e||t>0?c(n+1,o):c(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return s.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new s(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return s.empty;let t,n=0;for(let r=0;rthis.type.rank&&(t||(t=e.slice(0,r)),t.push(this),n=!0),t&&t.push(i)}}return t||(t=e.slice()),n||t.push(this),t}removeFromSet(e){for(let t=0;te.type.rank-t.type.rank),t}}h.none=[];class d extends Error{}class f{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let n=m(this.content,e+this.openStart,t);return n&&new f(n,this.openStart,this.openEnd)}removeBetween(e,t){return new f(p(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return f.empty;let n=t.openStart||0,r=t.openEnd||0;if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new f(s.fromJSON(e,t.content),n,r)}static maxOpen(e,t=!0){let n=0,r=0;for(let i=e.firstChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.firstChild)n++;for(let i=e.lastChild;i&&!i.isLeaf&&(t||!i.type.spec.isolating);i=i.lastChild)r++;return new f(e,n,r)}}function p(e,t,n){let{index:r,offset:i}=e.findIndex(t),o=e.maybeChild(r),{index:a,offset:s}=e.findIndex(n);if(i==t||o.isText){if(s!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(n))}if(r!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(r,o.copy(p(o.content,t-i-1,n-i-1)))}function m(e,t,n,r){let{index:i,offset:o}=e.findIndex(t),a=e.maybeChild(i);if(o==t||a.isText)return r&&!r.canReplace(i,i,n)?null:e.cut(0,t).append(n).append(e.cut(t));let s=m(a.content,t-o-1,n);return s&&e.replaceChild(i,a.copy(s))}function g(e,t,n){if(n.openStart>e.depth)throw new d("Inserted content deeper than insertion position");if(e.depth-n.openStart!=t.depth-n.openEnd)throw new d("Inconsistent open depths");return v(e,t,n,0)}function v(e,t,n,r){let i=e.index(r),o=e.node(r);if(i==t.index(r)&&r=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function x(e,t,n,r){let i=(t||e).node(n),o=0,a=t?t.index(n):i.childCount;e&&(o=e.index(n),e.depth>n?o++:e.textOffset&&(w(e.nodeAfter,r),o++));for(let s=o;si&&y(e,t,i+1),a=r.depth>i&&y(n,r,i+1),l=[];return x(null,e,i,l),o&&a&&t.index(i)==n.index(i)?(b(o,a),w(k(o,A(e,t,n,r,i+1)),l)):(o&&w(k(o,C(e,t,i+1)),l),x(t,n,i,l),a&&w(k(a,C(n,r,i+1)),l)),x(r,null,i,l),new s(l)}function C(e,t,n){let r=[];if(x(null,e,n,r),e.depth>n){let i=y(e,t,n+1);w(k(i,C(e,t,n+1)),r)}return x(t,null,n,r),new s(r)}function E(e,t){let n=t.depth-e.openStart,r=t.node(n),i=r.copy(e.content);for(let o=n-1;o>=0;o--)i=t.node(o).copy(s.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}f.empty=new f(s.empty,0,0);class S{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return null==e?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[3*this.resolveDepth(e)]}index(e){return this.path[3*this.resolveDepth(e)+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e!=this.depth||this.textOffset?1:0)}start(e){return e=this.resolveDepth(e),0==e?0:this.path[3*e-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[3*e-1]+this.path[3*e].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):0==e?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[3*t],r=0==t?0:this.path[3*t-1]+1;for(let i=0;i0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new L(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let n=[],r=0,i=t;for(let o=e;;){let{index:e,offset:t}=o.content.findIndex(i),a=i-t;if(n.push(o,e,r+t),!a)break;if(o=o.child(e),o.isText)break;i=a-1,r+=t+1}return new S(t,n,i)}static resolveCached(e,t){for(let r=0;re&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),I(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,n=s.empty,r=0,i=n.childCount){let o=this.contentMatchAt(e).matchFragment(n,r,i),a=o&&o.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let s=r;se.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let n=null;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");n=t.marks.map(e.markFromJSON)}if("text"==t.type){if("string"!=typeof t.text)throw new RangeError("Invalid text node in JSON");return e.text(t.text,n)}let r=s.fromJSON(e,t.content);return e.nodeType(t.type).create(t.attrs,r,n)}}D.prototype.text=void 0;class P extends D{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw new RangeError("Empty text nodes are not allowed");this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):I(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new P(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new P(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return 0==e&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function I(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+"("+t+")";return t}class R{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let n=new F(e,t);if(null==n.next)return R.empty;let r=z(n);n.next&&n.err("Unexpected trailing text");let i=Y(G(r));return Z(i,n),i}matchType(e){for(let t=0;te.createAndFill()));for(let e=0;e=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r{let r=n+(t.validEnd?"*":" ")+" ";for(let i=0;i"+e.indexOf(t.next[i].next);return r}).join("\n")}}R.empty=new R(!0);class F{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function z(e){let t=[];do{t.push(B(e))}while(e.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function B(e){let t=[];do{t.push(_(e))}while(e.next&&")"!=e.next&&"|"!=e.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function _(e){let t=q(e);for(;;)if(e.eat("+"))t={type:"plus",expr:t};else if(e.eat("*"))t={type:"star",expr:t};else if(e.eat("?"))t={type:"opt",expr:t};else{if(!e.eat("{"))break;t=H(e,t)}return t}function j(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let t=Number(e.next);return e.pos++,t}function H(e,t){let n=j(e),r=n;return e.eat(",")&&(r="}"!=e.next?j(e):-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:t}}function U(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let o in n){let e=n[o];e.groups.indexOf(t)>-1&&i.push(e)}return 0==i.length&&e.err("No node type or group '"+t+"' found"),i}function q(e){if(e.eat("(")){let t=z(e);return e.eat(")")||e.err("Missing closing paren"),t}if(!/\W/.test(e.next)){let t=U(e,e.next).map(t=>(null==e.inline?e.inline=t.isInline:e.inline!=t.isInline&&e.err("Mixing inline and block content"),{type:"name",value:t}));return e.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}e.err("Unexpected token '"+e.next+"'")}function G(e){let t=[[]];return i(o(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function o(e,t){if("choice"==e.type)return e.exprs.reduce((e,n)=>e.concat(o(n,t)),[]);if("seq"!=e.type){if("star"==e.type){let a=n();return r(t,a),i(o(e.expr,a),a),[r(a)]}if("plus"==e.type){let a=n();return i(o(e.expr,t),a),i(o(e.expr,a),a),[r(a)]}if("opt"==e.type)return[r(t)].concat(o(e.expr,t));if("range"==e.type){let a=t;for(let t=0;t{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e{r||i.push([t,r=[]]),-1==r.indexOf(e)&&r.push(e)})})});let o=t[r.join(",")]=new R(r.indexOf(e.length-1)>-1);for(let e=0;e-1}allowsMarks(e){if(null==this.markSet)return!0;for(let t=0;tn[e]=new Q(e,t,r));let r=t.spec.topNode||"doc";if(!n[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!n.text)throw new RangeError("Every schema needs a 'text' type");for(let i in n.text.attrs)throw new RangeError("The text node type should not have attributes");return n}}class ${constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class ee{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=J(r.attrs),this.excluded=null;let i=K(this.attrs);this.instance=i?new h(this,i):null}create(e=null){return!e&&this.instance?this.instance:new h(this,X(this.attrs,e))}static compile(e,t){let n=Object.create(null),r=0;return e.forEach((e,i)=>n[e]=new ee(e,r++,t,i)),n}removeFromSet(e){for(var t=0;t-1}}class te{constructor(e){this.cached=Object.create(null);let t=this.spec={};for(let r in e)t[r]=e[r];t.nodes=i.from(e.nodes),t.marks=i.from(e.marks||{}),this.nodes=Q.compile(this.spec.nodes,this),this.marks=ee.compile(this.spec.marks,this);let n=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let e=this.nodes[r],t=e.spec.content||"",i=e.spec.marks;e.contentMatch=n[t]||(n[t]=R.parse(t,this.nodes)),e.inlineContent=e.contentMatch.inlineContent,e.markSet="_"==i?null:i?ne(this,i.split(" ")):""!=i&&e.inlineContent?null:[]}for(let r in this.marks){let e=this.marks[r],t=e.spec.excludes;e.excluded=null==t?[e]:""==t?[]:ne(this,t.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if("string"==typeof e)e=this.nodeType(e);else{if(!(e instanceof Q))throw new RangeError("Invalid node type: "+e);if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new P(n,n.defaultAttrs,e,h.setFrom(t))}mark(e,t){return"string"==typeof e&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return D.fromJSON(this,e)}markFromJSON(e){return h.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function ne(e,t){let n=[];for(let r=0;r-1)&&n.push(a=r)}if(!a)throw new SyntaxError("Unknown mark type: '"+t[r]+"'")}return n}class re{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach(e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)}),this.normalizeLists=!this.tags.some(t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let n=e.nodes[t.node];return n.contentMatch.matchType(n)})}parse(e,t={}){let n=new de(this,t,!1);return n.addAll(e,t.from,t.to),n.finish()}parseSlice(e,t={}){let n=new de(this,t,!0);return n.addAll(e,t.from,t.to),f.maxOpen(n.finish())}matchTag(e,t,n){for(let r=n?this.tags.indexOf(n)+1:0;re.length&&(61!=o.charCodeAt(e.length)||o.slice(e.length+1)!=t))){if(r.getAttrs){let e=r.getAttrs(t);if(!1===e)continue;r.attrs=e||void 0}return r}}}static schemaRules(e){let t=[];function n(e){let n=null==e.priority?50:e.priority,r=0;for(;r{n(e=ge(e)),e.mark=r})}for(let r in e.nodes){let t=e.nodes[r].spec.parseDOM;t&&t.forEach(e=>{n(e=ge(e)),e.node=r})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new re(e,re.schemaRules(e)))}}const ie={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},oe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},ae={ol:!0,ul:!0},se=1,le=2,ce=4;function ue(e,t,n){return null!=t?(t?se:0)|("full"===t?le:0):e&&"pre"==e.whitespace?se|le:n&~ce}class he{constructor(e,t,n,r,i,o,a){this.type=e,this.attrs=t,this.marks=n,this.pendingMarks=r,this.solid=i,this.options=a,this.content=[],this.activeMarks=h.none,this.stashMarks=[],this.match=o||(a&ce?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(s.from(e));if(!t){let t,n=this.type.contentMatch;return(t=n.findWrapping(e.type))?(this.match=n,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&se)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let n=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=n.withText(n.text.slice(0,n.text.length-e[0].length))}}let t=s.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(s.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,n=this.pendingMarks;tthis.insertNode(e));else{let n=e;"string"==typeof t.contentElement?n=e.querySelector(t.contentElement):"function"==typeof t.contentElement?n=t.contentElement(e):t.contentElement&&(n=t.contentElement),this.findAround(e,n,!0),this.addAll(n)}r&&this.sync(a)&&this.open--,o&&this.removePendingMark(o,a)}addAll(e,t,n){let r=t||0;for(let i=t?e.childNodes[t]:e.firstChild,o=null==n?null:e.childNodes[n];i!=o;i=i.nextSibling,++r)this.findAtPoint(e,r),this.addDOM(i);this.findAtPoint(e,r)}findPlace(e){let t,n;for(let r=this.open;r>=0;r--){let i=this.nodes[r],o=i.findWrapping(e);if(o&&(!t||t.length>o.length)&&(t=o,n=i,!o.length))break;if(i.solid)break}if(!t)return!1;this.sync(n);for(let r=0;rthis.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let n=this.nodes[t].content;for(let t=n.length-1;t>=0;t--)e+=n[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let n=0;n-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),n=this.options.context,r=!this.isOpen&&(!n||n.parent.type==this.nodes[0].type),i=-(n?n.depth+1:0)+(r?0:1),o=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=i;a--)if(o(e-1,a))return!0;return!1}{let e=a>0||0==a&&r?this.nodes[a].type:n&&a>=i?n.node(a-i).type:null;if(!e||e.name!=s&&-1==e.groups.indexOf(s))return!1;a--}}return!0};return o(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let n=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(n&&n.isTextblock&&n.defaultAttrs)return n}for(let t in this.parser.schema.nodes){let e=this.parser.schema.nodes[t];if(e.isTextblock&&e.defaultAttrs)return e}}addPendingMark(e){let t=be(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let n=this.open;n>=0;n--){let r=this.nodes[n],i=r.pendingMarks.lastIndexOf(e);if(i>-1)r.pendingMarks=e.removeFromSet(r.pendingMarks);else{r.activeMarks=e.removeFromSet(r.activeMarks);let t=r.popFromStashMark(e);t&&r.type&&r.type.allowsMarkType(t.type)&&(r.activeMarks=t.addToSet(r.activeMarks))}if(r==t)break}}}function fe(e){for(let t=e.firstChild,n=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&ae.hasOwnProperty(e)&&n?(n.appendChild(t),t=n):"li"==e?n=t:e&&(n=null)}}function pe(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function me(e){let t,n=/\s*([\w-]+)\s*:\s*([^;]+)/g,r=[];while(t=n.exec(e))r.push(t[1],t[2].trim());return r}function ge(e){let t={};for(let n in e)t[n]=e[n];return t}function ve(e,t){let n=t.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(e))continue;let o=[],a=e=>{o.push(e);for(let n=0;n{if(i.length||e.marks.length){let n=0,o=0;while(n=0;r--){let i=this.serializeMark(e.marks[r],e.isInline,t);i&&((i.contentDOM||i.dom).appendChild(n),n=i.dom)}return n}serializeMark(e,t,n={}){let r=this.marks[e.type.name];return r&&ye.renderSpec(xe(n),r(e,t))}static renderSpec(e,t,n=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let r,i=t[0],o=i.indexOf(" ");o>0&&(n=i.slice(0,o),i=i.slice(o+1));let a=n?e.createElementNS(n,i):e.createElement(i),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s)){l=2;for(let e in s)if(null!=s[e]){let t=e.indexOf(" ");t>0?a.setAttributeNS(e.slice(0,t),e.slice(t+1),s[e]):a.setAttribute(e,s[e])}}for(let c=l;cl)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:t,contentDOM:o}=ye.renderSpec(e,i,n);if(a.appendChild(t),o){if(r)throw new RangeError("Multiple content holes");r=o}}}return{dom:a,contentDOM:r}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new ye(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=we(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return we(e.marks)}}function we(e){let t={};for(let n in e){let r=e[n].spec.toDOM;r&&(t[n]=r)}return t}function xe(e){return e.document||window.document}},"6f5c":function(e,t,n){e.exports=n.p+"img/xilanhua.svg"},"6ffb":function(e,t,n){"use strict";n.r(t),n.d(t,"AllSelection",(function(){return p})),n.d(t,"EditorState",(function(){return S})),n.d(t,"NodeSelection",(function(){return d})),n.d(t,"Plugin",(function(){return N})),n.d(t,"PluginKey",(function(){return O})),n.d(t,"Selection",(function(){return a})),n.d(t,"SelectionRange",(function(){return s})),n.d(t,"TextSelection",(function(){return u})),n.d(t,"Transaction",(function(){return x}));var r=n("6f27"),i=n("b923");const o=Object.create(null);class a{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new s(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t=0;i--){let r=t<0?g(e.node(0),e.node(i),e.before(i+1),e.index(i),t,n):g(e.node(0),e.node(i),e.after(i+1),e.index(i)+1,t,n);if(r)return r}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new p(e.node(0))}static atStart(e){return g(e,e,0,0,1)||new p(e)}static atEnd(e){return g(e,e,e.content.size,e.childCount,-1)||new p(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let n=o[t.type];if(!n)throw new RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in o)throw new RangeError("Duplicate use of selection JSON ID "+e);return o[e]=t,t.prototype.jsonID=e,t}getBookmark(){return u.between(this.$anchor,this.$head).getBookmark()}}a.prototype.visible=!0;class s{constructor(e,t){this.$from=e,this.$to=t}}let l=!1;function c(e){l||e.parent.inlineContent||(l=!0,console["warn"]("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class u extends a{constructor(e,t=e){c(e),c(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let n=e.resolve(t.map(this.head));if(!n.parent.inlineContent)return a.near(n);let r=e.resolve(t.map(this.anchor));return new u(r.parent.inlineContent?r:n,n)}replace(e,t=r["Slice"].empty){if(super.replace(e,t),t==r["Slice"].empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof u&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new h(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new u(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(e,t,n){let r=e.pos-t.pos;if(n&&!r||(n=r>=0?1:-1),!t.parent.inlineContent){let e=a.findFrom(t,n,!0)||a.findFrom(t,-n,!0);if(!e)return a.near(t,n);t=e.$head}return e.parent.inlineContent||(0==r?e=t:(e=(a.findFrom(e,-n,!0)||a.findFrom(e,n,!0)).$anchor,e.pos0?0:1);i>0?a=0;a+=i){let r=t.child(a);if(r.isAtom){if(!o&&d.isSelectable(r))return d.create(e,n-(i<0?r.nodeSize:0))}else{let t=g(e,r,n+i,i<0?r.childCount:0,i,o);if(t)return t}n+=r.nodeSize*i}return null}function v(e,t,n){let r=e.steps.length-1;if(r{null==s&&(s=r)}),e.setSelection(a.near(e.doc.resolve(s),n))}const b=1,y=2,w=4;class x extends i["e"]{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=y,this}ensureMarks(e){return r["Mark"].sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&y)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~y,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let n=this.selection;return t&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||r["Mark"].none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,n){let r=this.doc.type.schema;if(null==t)return e?this.replaceSelectionWith(r.text(e),!0):this.deleteSelection();{if(null==n&&(n=t),n=null==n?t:n,!e)return this.deleteRange(t,n);let i=this.storedMarks;if(!i){let e=this.doc.resolve(t);i=n==t?e.marks():e.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(t,n,r.text(e,i)),this.selection.empty||this.setSelection(a.near(this.selection.$to)),this}}setMeta(e,t){return this.meta["string"==typeof e?e:e.key]=t,this}getMeta(e){return this.meta["string"==typeof e?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=w,this}get scrolledIntoView(){return(this.updated&w)>0}}function k(e,t){return t&&e?e.bind(t):e}class A{constructor(e,t,n){this.name=e,this.init=k(t.init,n),this.apply=k(t.apply,n)}}const C=[new A("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new A("selection",{init(e,t){return e.selection||a.atStart(t.doc)},apply(e){return e.selection}}),new A("storedMarks",{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new A("scrollToSelection",{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}})];class E{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=C.slice(),t&&t.forEach(e=>{if(this.pluginsByKey[e.key])throw new RangeError("Adding different instances of a keyed plugin ("+e.key+")");this.plugins.push(e),this.pluginsByKey[e.key]=e,e.spec.state&&this.fields.push(new A(e.key,e.spec.state,e))})}}class S{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let n=0;ne.toJSON())),e&&"object"==typeof e)for(let n in e){if("doc"==n||"selection"==n)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=e[n],i=r.spec.state;i&&i.toJSON&&(t[n]=i.toJSON.call(r,this[r.key]))}return t}static fromJSON(e,t,n){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new E(e.schema,e.plugins),o=new S(i);return i.fields.forEach(i=>{if("doc"==i.name)o.doc=r["Node"].fromJSON(e.schema,t.doc);else if("selection"==i.name)o.selection=a.fromJSON(o.doc,t.selection);else if("storedMarks"==i.name)t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(n)for(let r in n){let a=n[r],s=a.spec.state;if(a.key==i.name&&s&&s.fromJSON&&Object.prototype.hasOwnProperty.call(t,r))return void(o[i.name]=s.fromJSON.call(a,e,t[r],o))}o[i.name]=i.init(e,o)}}),o}}function T(e,t,n){for(let r in e){let i=e[r];i instanceof Function?i=i.bind(t):"handleDOMEvents"==r&&(i=T(i,t,{})),n[r]=i}return n}class N{constructor(e){this.spec=e,this.props={},e.props&&T(e.props,this,this.props),this.key=e.key?e.key.key:L("plugin")}getState(e){return e[this.key]}}const M=Object.create(null);function L(e){return e in M?e+"$"+ ++M[e]:(M[e]=0,e+"$")}class O{constructor(e="key"){this.key=L(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}},"6ffb0":function(e,t,n){"use strict";n("d4a0")},"703f":function(e,t,n){"use strict";n.r(t),n.d(t,"Decoration",(function(){return An})),n.d(t,"DecorationSet",(function(){return Sn})),n.d(t,"EditorView",(function(){return ir})),n.d(t,"__endComposition",(function(){return rr})),n.d(t,"__parseFromClipboard",(function(){return nr})),n.d(t,"__serializeForClipboard",(function(){return tr}));var r=n("6ffb"),i=n("6f27"),o=n("b923");const a=function(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t},s=function(e){let t=e.assignedSlot||e.parentNode;return t&&11==t.nodeType?t.host:t};let l=null;const c=function(e,t,n){let r=l||(l=document.createRange());return r.setEnd(e,null==n?e.nodeValue.length:n),r.setStart(e,t||0),r},u=function(e,t,n,r){return n&&(d(e,t,n,r,-1)||d(e,t,n,r,1))},h=/^(img|br|input|textarea|hr)$/i;function d(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:f(e))){let n=e.parentNode;if(!n||1!=n.nodeType||m(e)||h.test(e.nodeName)||"false"==e.contentEditable)return!1;t=a(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(e=e.childNodes[t+(i<0?-1:0)],"false"==e.contentEditable)return!1;t=i<0?f(e):0}}}function f(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function p(e,t,n){for(let r=0==t,i=t==f(e);r||i;){if(e==n)return!0;let t=a(e);if(e=e.parentNode,!e)return!1;r=r&&0==t,i=i&&t==f(e)}}function m(e){let t;for(let n=e;n;n=n.parentNode)if(t=n.pmViewDesc)break;return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const g=function(e){return e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function v(e,t){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=e,n.key=n.code=t,n}function b(e){let t=e.activeElement;while(t&&t.shadowRoot)t=t.shadowRoot.activeElement;return t}const y="undefined"!=typeof navigator?navigator:null,w="undefined"!=typeof document?document:null,x=y&&y.userAgent||"",k=/Edge\/(\d+)/.exec(x),A=/MSIE \d/.exec(x),C=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(x),E=!!(A||C||k),S=A?document.documentMode:C?+C[1]:k?+k[1]:0,T=!E&&/gecko\/(\d+)/i.test(x);T&&(/Firefox\/(\d+)/.exec(x)||[0,0])[1];const N=!E&&/Chrome\/(\d+)/.exec(x),M=!!N,L=N?+N[1]:0,O=!E&&!!y&&/Apple Computer/.test(y.vendor),D=O&&(/Mobile\/\w+/.test(x)||!!y&&y.maxTouchPoints>2),P=D||!!y&&/Mac/.test(y.platform),I=/Android \d/.test(x),R=!!w&&"webkitFontSmoothing"in w.documentElement.style,F=R?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function z(e){return{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function B(e,t){return"number"==typeof e?e:e[t]}function _(e){let t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return{left:t.left,right:t.left+e.clientWidth*n,top:t.top,bottom:t.top+e.clientHeight*r}}function j(e,t,n){let r=e.someProp("scrollThreshold")||0,i=e.someProp("scrollMargin")||5,o=e.dom.ownerDocument;for(let a=n||e.dom;;a=s(a)){if(!a)break;if(1!=a.nodeType)continue;let e=a,n=e==o.body,s=n?z(o):_(e),l=0,c=0;if(t.tops.bottom-B(r,"bottom")&&(c=t.bottom-s.bottom+B(i,"bottom")),t.lefts.right-B(r,"right")&&(l=t.right-s.right+B(i,"right")),l||c)if(n)o.defaultView.scrollBy(l,c);else{let n=e.scrollLeft,r=e.scrollTop;c&&(e.scrollTop+=c),l&&(e.scrollLeft+=l);let i=e.scrollLeft-n,o=e.scrollTop-r;t={left:t.left-i,top:t.top-o,right:t.right-i,bottom:t.bottom-o}}if(n)break}}function H(e){let t,n,r=e.dom.getBoundingClientRect(),i=Math.max(0,r.top);for(let o=(r.left+r.right)/2,a=i+1;a=i-20){t=r,n=s.top;break}}return{refDOM:t,refTop:n,stack:U(e.dom)}}function U(e){let t=[],n=e.ownerDocument;for(let r=e;r;r=s(r))if(t.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),e==n)break;return t}function q({refDOM:e,refTop:t,stack:n}){let r=e?e.getBoundingClientRect().top:0;G(n,0==r?0:r-t)}function G(e,t){for(let n=0;n=s){a=Math.max(h.bottom,a),s=Math.min(h.top,s);let e=h.left>t.left?h.left-t.left:h.right=(h.left+h.right)/2?1:0));continue}}!n&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(o=u+1)}}return n&&3==n.nodeType?Z(n,r):!n||i&&1==n.nodeType?{node:e,offset:o}:Y(n,r)}function Z(e,t){let n=e.nodeValue.length,r=document.createRange();for(let i=0;i=(n.left+n.right)/2?1:0)}}return{node:e,offset:0}}function K(e,t){return e.left>=t.left-1&&e.left<=t.right+1&&e.top>=t.top-1&&e.top<=t.bottom+1}function X(e,t){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&t.left(e.left+e.right)/2?1:-1}return e.docView.posFromDOM(r,i,o)}function Q(e,t,n,r){let i=-1;for(let o=t;;){if(o==e.dom)break;let t=e.docView.nearestDesc(o,!0);if(!t)return null;if(t.node.isBlock&&t.parent){let e=t.dom.getBoundingClientRect();if(e.left>r.left||e.top>r.top)i=t.posBefore;else{if(!(e.right-1?i:e.docView.posFromDOM(t,n,1)}function $(e,t,n){let r=e.childNodes.length;if(r&&n.topt.top&&i++}n==e.dom&&i==n.childNodes.length-1&&1==n.lastChild.nodeType&&t.top>n.lastChild.getBoundingClientRect().bottom?o=e.state.doc.content.size:0!=i&&1==n.nodeType&&"BR"==n.childNodes[i-1].nodeName||(o=Q(e,n,i,t))}null==o&&(o=J(e,a,t));let l=e.docView.nearestDesc(a,!0);return{pos:o,inside:l?l.posAtStart-l.border:-1}}function te(e,t){let n=e.getClientRects();return n.length?n[t<0?0:n.length-1]:e.getBoundingClientRect()}const ne=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function re(e,t,n){let{node:r,offset:i,atom:o}=e.docView.domFromPos(t,n<0?-1:1),a=R||T;if(3==r.nodeType){if(!a||!ne.test(r.nodeValue)&&(n<0?i:i!=r.nodeValue.length)){let e=i,t=i,o=n<0?1:-1;return n<0&&!i?(t++,o=-1):n>=0&&i==r.nodeValue.length?(e--,o=1):n<0?e--:t++,ie(te(c(r,e,t),1),o<0)}{let e=te(c(r,i,i),n);if(T&&i&&/\s/.test(r.nodeValue[i-1])&&i=0)}if(null==o&&i&&(n<0||i==f(r))){let e=r.childNodes[i-1],t=3==e.nodeType?c(e,f(e)-(a?0:1)):1!=e.nodeType||"BR"==e.nodeName&&e.nextSibling?null:e;if(t)return ie(te(t,1),!1)}if(null==o&&i=0)}function ie(e,t){if(0==e.width)return e;let n=t?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function oe(e,t){if(0==e.height)return e;let n=t?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function ae(e,t,n){let r=e.state,i=e.root.activeElement;r!=t&&e.updateState(t),i!=e.dom&&e.focus();try{return n()}finally{r!=t&&e.updateState(r),i!=e.dom&&i&&i.focus()}}function se(e,t,n){let r=t.selection,i="up"==n?r.$from:r.$to;return ae(e,t,()=>{let{node:t}=e.docView.domFromPos(i.pos,"up"==n?-1:1);for(;;){let n=e.docView.nearestDesc(t,!0);if(!n)break;if(n.node.isBlock){t=n.dom;break}t=n.dom.parentNode}let r=re(e,i.pos,1);for(let e=t.firstChild;e;e=e.nextSibling){let t;if(1==e.nodeType)t=e.getClientRects();else{if(3!=e.nodeType)continue;t=c(e,0,e.nodeValue.length).getClientRects()}for(let e=0;ei.top+1&&("up"==n?r.top-i.top>2*(i.bottom-r.top):i.bottom-r.bottom>2*(r.bottom-i.top)))return!1}}return!0})}const le=/[\u0590-\u08ac]/;function ce(e,t,n){let{$head:r}=t.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,a=i==r.parent.content.size,s=e.domSelection();return le.test(r.parent.textContent)&&s.modify?ae(e,t,()=>{let{focusNode:t,focusOffset:i,anchorNode:o,anchorOffset:a}=e.domSelectionRange(),l=s.caretBidiLevel;s.modify("move",n,"character");let c=r.depth?e.docView.domAfterPos(r.before()):e.dom,{focusNode:u,focusOffset:h}=e.domSelectionRange(),d=u&&!c.contains(1==u.nodeType?u:u.parentNode)||t==u&&i==h;try{s.collapse(o,a),t&&(t!=o||i!=a)&&s.extend&&s.extend(t,i)}catch(f){}return null!=l&&(s.caretBidiLevel=l),d}):"left"==n||"backward"==n?o:a}let ue=null,he=null,de=!1;function fe(e,t,n){return ue==t&&he==n?de:(ue=t,he=n,de="up"==n||"down"==n?se(e,t,n):ce(e,t,n))}const pe=0,me=1,ge=2,ve=3;class be{constructor(e,t,n,r){this.parent=e,this.children=t,this.dom=n,this.contentDOM=r,this.dirty=pe,n.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,n){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;ta(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&e.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==t)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!1;break}if(t.previousSibling)break}if(null==r&&t==e.childNodes.length)for(let t=e;;t=t.parentNode){if(t==this.dom){r=!0;break}if(t.nextSibling)break}}return(null==r?n>0:r)?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let n=!0,r=e;r;r=r.parentNode){let i,o=this.getDesc(r);if(o&&(!t||o.node)){if(!n||!(i=o.nodeDOM)||(1==i.nodeType?i.contains(1==e.nodeType?e:e.parentNode):i==e))return o;n=!1}}}getDesc(e){let t=e.pmViewDesc;for(let n=t;n;n=n.parent)if(n==this)return t}posFromDOM(e,t,n){for(let r=e;r;r=r.parentNode){let i=this.getDesc(r);if(i)return i.localPosFromDOM(e,t,n)}return-1}descAt(e){for(let t=0,n=0;te||t instanceof Ee){i=e-o;break}o=n}if(i)return this.children[r].domFromPos(i-this.children[r].border,t);for(;r&&!(n=this.children[r-1]).size&&n instanceof ye&&n.side>=0;r--);if(t<=0){let e,n=!0;for(;;r--,n=!1)if(e=r?this.children[r-1]:null,!e||e.dom.parentNode==this.contentDOM)break;return e&&t&&n&&!e.border&&!e.domAtom?e.domFromPos(e.size,t):{node:this.contentDOM,offset:e?a(e.dom)+1:0}}{let e,n=!0;for(;;r++,n=!1)if(e=r=i&&t<=l-n.border&&n.node&&n.contentDOM&&this.contentDOM.contains(n.contentDOM))return n.parseRange(e,t,i);e=o;for(let t=s;t>0;t--){let n=this.children[t-1];if(n.size&&n.dom.parentNode==this.contentDOM&&!n.emptyChildAt(1)){r=a(n.dom)+1;break}e-=n.size}-1==r&&(r=0)}if(r>-1&&(l>t||s==this.children.length-1)){t=l;for(let e=s+1;eu&&ot){let e=s;s=l,l=e}let n=document.createRange();n.setEnd(l.node,l.offset),n.setStart(s.node,s.offset),c.removeAllRanges(),c.addRange(n)}}ignoreMutation(e){return!this.contentDOM&&"selection"!=e.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let n=0,r=0;r=n:en){let r=n+i.border,a=o-i.border;if(e>=r&&t<=a)return this.dirty=e==n||t==o?ge:me,void(e!=r||t!=a||!i.contentLost&&i.dom.parentNode==this.contentDOM?i.markDirty(e-r,t-r):i.dirty=ve);i.dirty=i.dom!=i.contentDOM||i.dom.parentNode!=this.contentDOM||i.children.length?ve:ge}n=o}this.dirty=ge}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let n=1==e?ge:me;t.dirtyi?i.parent?i.parent.posBeforeChild(i):void 0:r)),!t.type.spec.raw){if(1!=o.nodeType){let e=document.createElement("span");e.appendChild(o),o=e}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(e,[],o,null),this.widget=t,this.widget=t,i=this}matchesWidget(e){return this.dirty==pe&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return!!t&&t(e)}ignoreMutation(e){return"selection"!=e.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class we extends be{constructor(e,t,n,r){super(e,[],t,null),this.textDOM=n,this.text=r}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return"characterData"===e.type&&e.target.nodeValue==e.oldValue}}class xe extends be{constructor(e,t,n,r){super(e,[],n,r),this.mark=t}static create(e,t,n,r){let o=r.nodeViews[t.type.name],a=o&&o(t,r,n);return a&&a.dom||(a=i["DOMSerializer"].renderSpec(document,t.type.spec.toDOM(t,n))),new xe(e,t,a.dom,a.contentDOM||a.dom)}parseRule(){return this.dirty&ve||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(e){return this.dirty!=ve&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=pe){let e=this.parent;while(!e.node)e=e.parent;e.dirty0&&(i=qe(i,0,e,n));for(let a=0;as?s.parent?s.parent.posBeforeChild(s):void 0:a,n,r),u=c&&c.dom,h=c&&c.contentDOM;if(t.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(t.text);else u||({dom:u,contentDOM:h}=i["DOMSerializer"].renderSpec(document,t.type.spec.toDOM(t)));h||t.isText||"BR"==u.nodeName||(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let d=u;return u=Pe(u,n,t),c?s=new Se(e,t,n,r,u,h||null,d,c,o,a+1):t.isText?new Ce(e,t,n,r,u,d,o):new ke(e,t,n,r,u,h||null,d,o,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(e.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let t=this.children.length-1;t>=0;t--){let n=this.children[t];if(this.dom.contains(n.dom.parentNode)){e.contentElement=n.dom.parentNode;break}}e.contentElement||(e.getContent=()=>i["Fragment"].empty)}else e.contentElement=this.contentDOM;else e.getContent=()=>this.node.content;return e}matchesNode(e,t,n){return this.dirty==pe&&e.eq(this.node)&&Ie(t,this.outerDeco)&&n.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let n=this.node.inlineContent,r=t,o=e.composing?this.localCompositionInfo(e,t):null,a=o&&o.pos>-1?o:null,s=o&&o.pos<0,l=new Fe(this,a&&a.node,e);_e(this.node,this.innerDeco,(t,o,a)=>{t.spec.marks?l.syncToMarks(t.spec.marks,n,e):t.type.side>=0&&!a&&l.syncToMarks(o==this.node.childCount?i["Mark"].none:this.node.child(o).marks,n,e),l.placeWidget(t,e,r)},(t,i,a,c)=>{let u;l.syncToMarks(t.marks,n,e),l.findNodeMatch(t,i,a,c)||s&&e.state.selection.from>r&&e.state.selection.to-1&&l.updateNodeAt(t,i,a,u,e)||l.updateNextNode(t,i,a,e,c)||l.addNode(t,i,a,e,r),r+=t.nodeSize}),l.syncToMarks([],n,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==ge)&&(a&&this.protectLocalComposition(e,a),Te(this.contentDOM,this.children,e),D&&je(this.dom))}localCompositionInfo(e,t){let{from:n,to:i}=e.state.selection;if(!(e.state.selection instanceof r["TextSelection"])||nt+this.node.content.size)return null;let o=e.domSelectionRange(),a=He(o.focusNode,o.focusOffset);if(!a||!this.dom.contains(a.parentNode))return null;if(this.node.inlineContent){let e=a.nodeValue,r=Ue(this.node.content,e,n-t,i-t);return r<0?null:{node:a,pos:r,text:e}}return{node:a,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:n,text:r}){if(this.getDesc(t))return;let i=t;for(;;i=i.parentNode){if(i.parentNode==this.contentDOM)break;while(i.previousSibling)i.parentNode.removeChild(i.previousSibling);while(i.nextSibling)i.parentNode.removeChild(i.nextSibling);i.pmViewDesc&&(i.pmViewDesc=void 0)}let o=new we(this,i,t,r);e.input.compositionNodes.push(o),this.children=qe(this.children,n,n+r.length,e,o)}update(e,t,n,r){return!(this.dirty==ve||!e.sameMarkup(this.node))&&(this.updateInner(e,t,n,r),!0)}updateInner(e,t,n,r){this.updateOuterDeco(t),this.node=e,this.innerDeco=n,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=pe}updateOuterDeco(e){if(Ie(e,this.outerDeco))return;let t=1!=this.nodeDOM.nodeType,n=this.dom;this.dom=Oe(this.dom,this.nodeDOM,Le(this.outerDeco,this.node,t),Le(e,this.node,t)),this.dom!=n&&(n.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),!this.contentDOM&&this.node.type.spec.draggable||this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function Ae(e,t,n,r,i){return Pe(r,t,e),new ke(void 0,e,t,n,r,r,r,i,0)}class Ce extends ke{constructor(e,t,n,r,i,o,a){super(e,t,n,r,i,null,o,a,0)}parseRule(){let e=this.nodeDOM.parentNode;while(e&&e!=this.dom&&!e.pmIsDeco)e=e.parentNode;return{skip:e||!0}}update(e,t,n,r){return!(this.dirty==ve||this.dirty!=pe&&!this.inParent()||!e.sameMarkup(this.node))&&(this.updateOuterDeco(t),this.dirty==pe&&e.text==this.node.text||e.text==this.nodeDOM.nodeValue||(this.nodeDOM.nodeValue=e.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=e,this.dirty=pe,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,n){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,n)}ignoreMutation(e){return"characterData"!=e.type&&"selection"!=e.type}slice(e,t,n){let r=this.node.cut(e,t),i=document.createTextNode(r.text);return new Ce(this.parent,r,this.outerDeco,this.innerDeco,i,i,n)}markDirty(e,t){super.markDirty(e,t),this.dom==this.nodeDOM||0!=e&&t!=this.nodeDOM.nodeValue.length||(this.dirty=ve)}get domAtom(){return!1}}class Ee extends be{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==pe&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class Se extends ke{constructor(e,t,n,r,i,o,a,s,l,c){super(e,t,n,r,i,o,a,l,c),this.spec=s}update(e,t,n,r){if(this.dirty==ve)return!1;if(this.spec.update){let i=this.spec.update(e,t,n);return i&&this.updateInner(e,t,n,r),i}return!(!this.contentDOM&&!e.isLeaf)&&super.update(e,t,n,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,n,r){this.spec.setSelection?this.spec.setSelection(e,t,n):super.setSelection(e,t,n,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return!!this.spec.stopEvent&&this.spec.stopEvent(e)}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Te(e,t,n){let r=e.firstChild,i=!1;for(let o=0;o>1,o=Math.min(i,e.length);while(r-1)r>this.index&&(this.changed=!0,this.destroyBetween(this.index,r)),this.top=this.top.children[this.index];else{let r=xe.create(this.top,e[i],t,n);this.top.children.splice(this.index,0,r),this.top=r,this.changed=!0}this.index=0,i++}}findNodeMatch(e,t,n,r){let i,o=-1;if(r>=this.preMatch.index&&(i=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&i.matchesNode(e,t,n))o=this.top.children.indexOf(i,this.index);else for(let a=this.index,s=Math.min(this.top.children.length,a+5);a0){let s;for(;;)if(r){let e=n.children[r-1];if(!(e instanceof xe)){s=e,r--;break}n=e,r=e.children.length}else{if(n==t)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=s.node;if(l){if(l!=e.child(i-1))break;--i,o.set(s,i),a.push(s)}}return{index:i,matched:o,matches:a.reverse()}}function Be(e,t){return e.type.side-t.type.side}function _e(e,t,n,r){let i=t.locals(e),o=0;if(0==i.length){for(let n=0;no)s.push(i[a++]);let d=o+u.nodeSize;if(u.isText){let e=d;a!e.inline):s.slice();r(u,f,t.forChild(o,u),h),o=d}}function je(e){if("UL"==e.nodeName||"OL"==e.nodeName){let t=e.style.cssText;e.style.cssText=t+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=t}}function He(e,t){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0){if(e.childNodes.length>t&&3==e.childNodes[t].nodeType)return e.childNodes[t];e=e.childNodes[t-1],t=f(e)}else{if(!(1==e.nodeType&&t=n){let e=s=0&&e+t.length+s>=n)return s+e;if(n==r&&l.length>=r+t.length-s&&l.slice(r-s,r-s+t.length)==t)return r}}return-1}function qe(e,t,n,r,i){let o=[];for(let a=0,s=0;a=n||u<=t?o.push(l):(cn&&o.push(l.slice(n-c,l.size,r)))}return o}function Ge(e,t=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),a=o&&0==o.size,s=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let l,c,u=i.resolve(s);if(g(n)){l=u;while(o&&!o.node)o=o.parent;let e=o.node;if(o&&e.isAtom&&r["NodeSelection"].isSelectable(e)&&o.parent&&(!e.isInline||!p(n.focusNode,n.focusOffset,o.dom))){let e=o.posBefore;c=new r["NodeSelection"](s==e?u:i.resolve(e))}}else{let t=e.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(t<0)return null;l=i.resolve(t)}if(!c){let n="pointer"==t||e.state.selection.head{n.anchorNode==r&&n.anchorOffset==i||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{We(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")},20))})}function Qe(e){let t=e.domSelection(),n=document.createRange(),r=e.cursorWrapper.dom,i="IMG"==r.nodeName;i?n.setEnd(r.parentNode,a(r)+1):n.setEnd(r,0),n.collapse(!1),t.removeAllRanges(),t.addRange(n),!i&&!e.state.selection.visible&&E&&S<=11&&(r.disabled=!0,r.disabled=!1)}function $e(e,t){if(t instanceof r["NodeSelection"]){let n=e.docView.descAt(t.from);n!=e.lastSelectedViewDesc&&(et(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else et(e)}function et(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function tt(e,t,n,i){return e.someProp("createSelectionBetween",r=>r(e,t,n))||r["TextSelection"].between(t,n,i)}function nt(e){return!(e.editable&&!e.hasFocus())&&rt(e)}function rt(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(n){return!1}}function it(e){let t=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return u(t.node,t.offset,n.anchorNode,n.anchorOffset)}function ot(e,t){let{$anchor:n,$head:i}=e.selection,o=t>0?n.max(i):n.min(i),a=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return a&&r["Selection"].findFrom(a,t)}function at(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function st(e,t,n){let i=e.state.selection;if(!(i instanceof r["TextSelection"])){if(i instanceof r["NodeSelection"]&&i.node.isInline)return at(e,new r["TextSelection"](t>0?i.$to:i.$from));{let n=ot(e.state,t);return!!n&&at(e,n)}}if(!i.empty||n.indexOf("s")>-1)return!1;if(e.endOfTextblock(t>0?"right":"left")){let n=ot(e.state,t);return!!(n&&n instanceof r["NodeSelection"])&&at(e,n)}if(!(P&&n.indexOf("m")>-1)){let n,o=i.$head,a=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!a||a.isText)return!1;let s=t<0?o.pos-a.nodeSize:o.pos;return!!(a.isAtom||(n=e.docView.descAt(s))&&!n.contentDOM)&&(r["NodeSelection"].isSelectable(a)?at(e,new r["NodeSelection"](t<0?e.state.doc.resolve(o.pos-a.nodeSize):o)):!!R&&at(e,new r["TextSelection"](e.state.doc.resolve(t<0?s:s+a.nodeSize))))}}function lt(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function ct(e){let t=e.pmViewDesc;return t&&0==t.size&&(e.nextSibling||"BR"!=e.nodeName)}function ut(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=!1;for(T&&1==n.nodeType&&r0){if(1!=n.nodeType)break;{let e=n.childNodes[r-1];if(ct(e))i=n,o=--r;else{if(3!=e.nodeType)break;n=e,r=n.nodeValue.length}}}else{if(dt(n))break;{let t=n.previousSibling;while(t&&ct(t))i=n.parentNode,o=a(t),t=t.previousSibling;if(t)n=t,r=lt(n);else{if(n=n.parentNode,n==e.dom)break;r=0}}}s?ft(e,n,r):i&&ft(e,i,o)}function ht(e){let t=e.domSelectionRange(),n=t.focusNode,r=t.focusOffset;if(!n)return;let i,o,s=lt(n);for(;;)if(r{e.state==i&&Ve(e)},50)}function pt(e,t,n){let i=e.state.selection;if(i instanceof r["TextSelection"]&&!i.empty||n.indexOf("s")>-1)return!1;if(P&&n.indexOf("m")>-1)return!1;let{$from:o,$to:a}=i;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let n=ot(e.state,t);if(n&&n instanceof r["NodeSelection"])return at(e,n)}if(!o.parent.inlineContent){let n=t<0?o:a,s=i instanceof r["AllSelection"]?r["Selection"].near(n,t):r["Selection"].findFrom(n,t);return!!s&&at(e,s)}return!1}function mt(e,t){if(!(e.state.selection instanceof r["TextSelection"]))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let a=!n.textOffset&&(t<0?n.nodeBefore:n.nodeAfter);if(a&&!a.isText){let r=e.state.tr;return t<0?r.delete(n.pos-a.nodeSize,n.pos):r.delete(n.pos,n.pos+a.nodeSize),e.dispatch(r),!0}return!1}function gt(e,t,n){e.domObserver.stop(),t.contentEditable=n,e.domObserver.start()}function vt(e){if(!O||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:n}=e.domSelectionRange();if(t&&1==t.nodeType&&0==n&&t.firstChild&&"false"==t.firstChild.contentEditable){let n=t.firstChild;gt(e,n,"true"),setTimeout(()=>gt(e,n,"false"),20)}return!1}function bt(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}function yt(e,t){let n=t.keyCode,r=bt(t);return 8==n||P&&72==n&&"c"==r?mt(e,-1)||ut(e):46==n||P&&68==n&&"c"==r?mt(e,1)||ht(e):13==n||27==n||(37==n||P&&66==n&&"c"==r?st(e,-1,r)||ut(e):39==n||P&&70==n&&"c"==r?st(e,1,r)||ht(e):38==n||P&&80==n&&"c"==r?pt(e,-1,r)||ut(e):40==n||P&&78==n&&"c"==r?vt(e)||pt(e,1,r)||ht(e):r==(P?"m":"c")&&(66==n||73==n||89==n||90==n))}function wt(e,t){e.someProp("transformCopied",n=>{t=n(t,e)});let n=[],{content:r,openStart:o,openEnd:a}=t;while(o>1&&a>1&&1==r.childCount&&1==r.firstChild.childCount){o--,a--;let e=r.firstChild;n.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),r=e.content}let s=e.someProp("clipboardSerializer")||i["DOMSerializer"].fromSchema(e.state.schema),l=Ot(),c=l.createElement("div");c.appendChild(s.serializeFragment(r,{document:l}));let u,h=c.firstChild,d=0;while(h&&1==h.nodeType&&(u=Mt[h.nodeName.toLowerCase()])){for(let e=u.length-1;e>=0;e--){let t=l.createElement(u[e]);while(c.firstChild)t.appendChild(c.firstChild);c.appendChild(t),d++}h=c.firstChild}h&&1==h.nodeType&&h.setAttribute("data-pm-slice",`${o} ${a}${d?" -"+d:""} ${JSON.stringify(n)}`);let f=e.someProp("clipboardTextSerializer",n=>n(t,e))||t.content.textBetween(0,t.content.size,"\n\n");return{dom:c,text:f}}function xt(e,t,n,r,o){let a,s,l=o.parent.type.spec.code;if(!n&&!t)return null;let c=t&&(r||l||!n);if(c){if(e.someProp("transformPastedText",n=>{t=n(t,l||r,e)}),l)return t?new i["Slice"](i["Fragment"].from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):i["Slice"].empty;let n=e.someProp("clipboardTextParser",n=>n(t,o,r,e));if(n)s=n;else{let n=o.marks(),{schema:r}=e.state,s=i["DOMSerializer"].fromSchema(r);a=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(e=>{let t=a.appendChild(document.createElement("p"));e&&t.appendChild(s.serializeNode(r.text(e,n)))})}}else e.someProp("transformPastedHTML",t=>{n=t(n,e)}),a=Dt(n),R&&Pt(a);let u=a&&a.querySelector("[data-pm-slice]"),h=u&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(u.getAttribute("data-pm-slice")||"");if(h&&h[3])for(let i=+h[3];i>0;i--){let e=a.firstChild;while(e&&1!=e.nodeType)e=e.nextSibling;if(!e)break;a=e}if(!s){let t=e.someProp("clipboardParser")||e.someProp("domParser")||i["DOMParser"].fromSchema(e.state.schema);s=t.parseSlice(a,{preserveWhitespace:!(!c&&!h),context:o,ruleFromNode(e){return"BR"!=e.nodeName||e.nextSibling||!e.parentNode||kt.test(e.parentNode.nodeName)?null:{ignore:!0}}})}if(h)s=It(Nt(s,+h[1],+h[2]),h[4]);else if(s=i["Slice"].maxOpen(At(s.content,o),!0),s.openStart||s.openEnd){let e=0,t=0;for(let n=s.content.firstChild;e{s=t(s,e)}),s}const kt=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function At(e,t){if(e.childCount<2)return e;for(let n=t.depth;n>=0;n--){let r,o=t.node(n),a=o.contentMatchAt(t.index(n)),s=[];if(e.forEach(e=>{if(!s)return;let t,n=a.findWrapping(e.type);if(!n)return s=null;if(t=s.length&&r.length&&Et(n,r,e,s[s.length-1],0))s[s.length-1]=t;else{s.length&&(s[s.length-1]=St(s[s.length-1],r.length));let t=Ct(e,n);s.push(t),a=a.matchType(t.type),r=n}}),s)return i["Fragment"].from(s)}return e}function Ct(e,t,n=0){for(let r=t.length-1;r>=n;r--)e=t[r].create(null,i["Fragment"].from(e));return e}function Et(e,t,n,r,o){if(o=n&&(l=t<0?s.contentMatchAt(0).fillBefore(l,e.childCount>1||a<=o).append(l):l.append(s.contentMatchAt(s.childCount).fillBefore(i["Fragment"].empty,!0))),e.replaceChild(t<0?0:e.childCount-1,s.copy(l))}function Nt(e,t,n){return t]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let n,r=Ot().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e);if((n=i&&Mt[i[1].toLowerCase()])&&(e=n.map(e=>"<"+e+">").join("")+e+n.map(e=>"").reverse().join("")),r.innerHTML=e,n)for(let o=0;o=0;c-=2){let e=r.nodes[n[c]];if(!e||e.hasRequiredAttrs())break;o=i["Fragment"].from(e.create(n[c+1],o)),a++,s++}return new i["Slice"](o,a,s)}const Rt={},Ft={},zt={touchstart:!0,touchmove:!0};class Bt{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function _t(e){for(let t in Rt){let n=Rt[t];e.dom.addEventListener(t,e.input.eventHandlers[t]=t=>{!Gt(e,t)||qt(e,t)||!e.editable&&t.type in Ft||n(e,t)},zt[t]?{passive:!0}:void 0)}O&&e.dom.addEventListener("input",()=>null),Ut(e)}function jt(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Ht(e){e.domObserver.stop();for(let t in e.input.eventHandlers)e.dom.removeEventListener(t,e.input.eventHandlers[t]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Ut(e){e.someProp("handleDOMEvents",t=>{for(let n in t)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=t=>qt(e,t))})}function qt(e,t){return e.someProp("handleDOMEvents",n=>{let r=n[t.type];return!!r&&(r(e,t)||t.defaultPrevented)})}function Gt(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n=t.target;n!=e.dom;n=n.parentNode)if(!n||11==n.nodeType||n.pmViewDesc&&n.pmViewDesc.stopEvent(t))return!1;return!0}function Wt(e,t){qt(e,t)||!Rt[t.type]||!e.editable&&t.type in Ft||Rt[t.type](e,t)}function Vt(e){return{left:e.clientX,top:e.clientY}}function Yt(e,t){let n=t.x-e.clientX,r=t.y-e.clientY;return n*n+r*r<100}function Zt(e,t,n,r,i){if(-1==r)return!1;let o=e.state.doc.resolve(r);for(let a=o.depth+1;a>0;a--)if(e.someProp(t,t=>a>o.depth?t(e,n,o.nodeAfter,o.before(a),i,!0):t(e,n,o.node(a),o.before(a),i,!1)))return!0;return!1}function Kt(e,t,n){e.focused||e.focus();let r=e.state.tr.setSelection(t);"pointer"==n&&r.setMeta("pointer",!0),e.dispatch(r)}function Xt(e,t){if(-1==t)return!1;let n=e.state.doc.resolve(t),i=n.nodeAfter;return!!(i&&i.isAtom&&r["NodeSelection"].isSelectable(i))&&(Kt(e,new r["NodeSelection"](n),"pointer"),!0)}function Jt(e,t){if(-1==t)return!1;let n,i,o=e.state.selection;o instanceof r["NodeSelection"]&&(n=o.node);let a=e.state.doc.resolve(t);for(let s=a.depth+1;s>0;s--){let e=s>a.depth?a.nodeAfter:a.node(s);if(r["NodeSelection"].isSelectable(e)){i=n&&o.$from.depth>0&&s>=o.$from.depth&&a.before(o.$from.depth+1)==o.$from.pos?a.before(o.$from.depth):a.before(s);break}}return null!=i&&(Kt(e,r["NodeSelection"].create(e.state.doc,i),"pointer"),!0)}function Qt(e,t,n,r,i){return Zt(e,"handleClickOn",t,n,r)||e.someProp("handleClick",n=>n(e,t,r))||(i?Jt(e,n):Xt(e,n))}function $t(e,t,n,r){return Zt(e,"handleDoubleClickOn",t,n,r)||e.someProp("handleDoubleClick",n=>n(e,t,r))}function en(e,t,n,r){return Zt(e,"handleTripleClickOn",t,n,r)||e.someProp("handleTripleClick",n=>n(e,t,r))||tn(e,n,r)}function tn(e,t,n){if(0!=n.button)return!1;let i=e.state.doc;if(-1==t)return!!i.inlineContent&&(Kt(e,r["TextSelection"].create(i,0,i.content.size),"pointer"),!0);let o=i.resolve(t);for(let a=o.depth+1;a>0;a--){let t=a>o.depth?o.nodeAfter:o.node(a),n=o.before(a);if(t.inlineContent)Kt(e,r["TextSelection"].create(i,n+1,n+1+t.content.size),"pointer");else{if(!r["NodeSelection"].isSelectable(t))continue;Kt(e,r["NodeSelection"].create(i,n),"pointer")}return!0}}function nn(e){return hn(e)}Ft.keydown=(e,t)=>{let n=t;if(e.input.shiftKey=16==n.keyCode||n.shiftKey,!an(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!I||!M||13!=n.keyCode))if(229!=n.keyCode&&e.domObserver.forceFlush(),!D||13!=n.keyCode||n.ctrlKey||n.altKey||n.metaKey)e.someProp("handleKeyDown",t=>t(e,n))||yt(e,n)?n.preventDefault():jt(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))),e.input.lastIOSEnter=0)},200)}},Ft.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},Ft.keypress=(e,t)=>{let n=t;if(an(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||P&&n.metaKey)return;if(e.someProp("handleKeyPress",t=>t(e,n)))return void n.preventDefault();let i=e.state.selection;if(!(i instanceof r["TextSelection"])||!i.$from.sameParent(i.$to)){let t=String.fromCharCode(n.charCode);e.someProp("handleTextInput",n=>n(e,i.$from.pos,i.$to.pos,t))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),n.preventDefault()}};const rn=P?"metaKey":"ctrlKey";Rt.mousedown=(e,t)=>{let n=t;e.input.shiftKey=n.shiftKey;let r=nn(e),i=Date.now(),o="singleClick";i-e.input.lastClick.time<500&&Yt(n,e.input.lastClick)&&!n[rn]&&("singleClick"==e.input.lastClick.type?o="doubleClick":"doubleClick"==e.input.lastClick.type&&(o="tripleClick")),e.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o};let a=e.posAtCoords(Vt(n));a&&("singleClick"==o?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new on(e,a,n,!!r)):("doubleClick"==o?$t:en)(e,a.pos,a.inside,n)?n.preventDefault():jt(e,"pointer"))};class on{constructor(e,t,n,i){let o,a;if(this.view=e,this.pos=t,this.event=n,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!n[rn],this.allowDefault=n.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),a=t.inside;else{let n=e.state.doc.resolve(t.pos);o=n.parent,a=n.depth?n.before():0}const s=i?null:n.target,l=s?e.docView.nearestDesc(s,!0):null;this.target=l?l.dom:null;let{selection:c}=e.state;(0==n.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof r["NodeSelection"]&&c.from<=a&&c.to>a)&&(this.mightDrag={node:o,pos:a,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!T||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),jt(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Ve(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Vt(e))),this.updateAllowDefault(e),this.allowDefault||!t?jt(this.view,"pointer"):Qt(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||O&&this.mightDrag&&!this.mightDrag.node.isAtom||M&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Kt(this.view,r["Selection"].near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):jt(this.view,"pointer")}move(e){this.updateAllowDefault(e),jt(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function an(e,t){return!!e.composing||!!(O&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}Rt.touchstart=e=>{e.input.lastTouch=Date.now(),nn(e),jt(e,"pointer")},Rt.touchmove=e=>{e.input.lastTouch=Date.now(),jt(e,"pointer")},Rt.contextmenu=e=>nn(e);const sn=I?5e3:-1;function ln(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout(()=>hn(e),t))}function cn(e){e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=un());while(e.input.compositionNodes.length>0)e.input.compositionNodes.pop().markParentsDirty()}function un(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function hn(e,t=!1){if(!(I&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),cn(e),t||e.docView&&e.docView.dirty){let t=Ge(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}function dn(e,t){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(t),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(t),e.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}Ft.compositionstart=Ft.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,n=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(e=>!1===e.type.spec.inclusive)))e.markCursor=e.state.storedMarks||n.marks(),hn(e,!0),e.markCursor=null;else if(hn(e),T&&t.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let t=e.domSelectionRange();for(let n=t.focusNode,r=t.focusOffset;n&&1==n.nodeType&&0!=r;){let t=r<0?n.lastChild:n.childNodes[r-1];if(!t)break;if(3==t.nodeType){e.domSelection().collapse(t,t.nodeValue.length);break}n=t,r=-1}}e.input.composing=!0}ln(e,sn)},Ft.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,ln(e,20))};const fn=E&&S<15||D&&F<604;function pn(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}function mn(e,t){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,r=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus(),setTimeout(()=>{e.focus(),r.parentNode&&r.parentNode.removeChild(r),n?gn(e,r.value,null,t):gn(e,r.textContent,r.innerHTML,t)},50)}function gn(e,t,n,r){let o=xt(e,t,n,e.input.shiftKey,e.state.selection.$from);if(e.someProp("handlePaste",t=>t(e,r,o||i["Slice"].empty)))return!0;if(!o)return!1;let a=pn(o),s=a?e.state.tr.replaceSelectionWith(a,e.input.shiftKey):e.state.tr.replaceSelection(o);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}Rt.copy=Ft.cut=(e,t)=>{let n=t,r=e.state.selection,i="cut"==n.type;if(r.empty)return;let o=fn?null:n.clipboardData,a=r.content(),{dom:s,text:l}=wt(e,a);o?(n.preventDefault(),o.clearData(),o.setData("text/html",s.innerHTML),o.setData("text/plain",l)):dn(e,s),i&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Ft.paste=(e,t)=>{let n=t;if(e.composing&&!I)return;let r=fn?null:n.clipboardData;r&&gn(e,r.getData("text/plain"),r.getData("text/html"),n)?n.preventDefault():mn(e,n)};class vn{constructor(e,t){this.slice=e,this.move=t}}const bn=P?"altKey":"ctrlKey";Rt.dragstart=(e,t)=>{let n=t,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let o=e.state.selection,a=o.empty?null:e.posAtCoords(Vt(n));if(a&&a.pos>=o.from&&a.pos<=(o instanceof r["NodeSelection"]?o.to-1:o.to));else if(i&&i.mightDrag)e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,i.mightDrag.pos)));else if(n.target&&1==n.target.nodeType){let t=e.docView.nearestDesc(n.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&e.dispatch(e.state.tr.setSelection(r["NodeSelection"].create(e.state.doc,t.posBefore)))}let s=e.state.selection.content(),{dom:l,text:c}=wt(e,s);n.dataTransfer.clearData(),n.dataTransfer.setData(fn?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",fn||n.dataTransfer.setData("text/plain",c),e.dragging=new vn(s,!n[bn])},Rt.dragend=e=>{let t=e.dragging;window.setTimeout(()=>{e.dragging==t&&(e.dragging=null)},50)},Ft.dragover=Ft.dragenter=(e,t)=>t.preventDefault(),Ft.drop=(e,t)=>{let n=t,a=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let s=e.posAtCoords(Vt(n));if(!s)return;let l=e.state.doc.resolve(s.pos),c=a&&a.slice;c?e.someProp("transformPasted",t=>{c=t(c,e)}):c=xt(e,n.dataTransfer.getData(fn?"Text":"text/plain"),fn?null:n.dataTransfer.getData("text/html"),!1,l);let u=!(!a||n[bn]);if(e.someProp("handleDrop",t=>t(e,n,c||i["Slice"].empty,u)))return void n.preventDefault();if(!c)return;n.preventDefault();let h=c?Object(o["h"])(e.state.doc,l.pos,c):l.pos;null==h&&(h=l.pos);let d=e.state.tr;u&&d.deleteSelection();let f=d.mapping.map(h),p=0==c.openStart&&0==c.openEnd&&1==c.content.childCount,m=d.doc;if(p?d.replaceRangeWith(f,f,c.content.firstChild):d.replaceRange(f,f,c),d.doc.eq(m))return;let g=d.doc.resolve(f);if(p&&r["NodeSelection"].isSelectable(c.content.firstChild)&&g.nodeAfter&&g.nodeAfter.sameMarkup(c.content.firstChild))d.setSelection(new r["NodeSelection"](g));else{let t=d.mapping.map(h);d.mapping.maps[d.mapping.maps.length-1].forEach((e,n,r,i)=>t=i),d.setSelection(tt(e,g,d.doc.resolve(t)))}e.focus(),e.dispatch(d.setMeta("uiEvent","drop"))},Rt.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Ve(e)},20))},Rt.blur=(e,t)=>{let n=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Rt.beforeinput=(e,t)=>{let n=t;if(M&&I&&"deleteContentBackward"==n.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",t=>t(e,v(8,"Backspace"))))return;let{$cursor:n}=e.state.selection;n&&n.pos>0&&e.dispatch(e.state.tr.delete(n.pos-1,n.pos).scrollIntoView())},50)}};for(let dr in Ft)Rt[dr]=Ft[dr];function yn(e,t){if(e==t)return!0;for(let n in e)if(e[n]!==t[n])return!1;for(let n in t)if(!(n in e))return!1;return!0}class wn{constructor(e,t){this.toDOM=e,this.spec=t||En,this.side=this.spec.side||0}map(e,t,n,r){let{pos:i,deleted:o}=e.mapResult(t.from+r,this.side<0?-1:1);return o?null:new An(i-n,i-n,this)}valid(){return!0}eq(e){return this==e||e instanceof wn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&yn(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class xn{constructor(e,t){this.attrs=e,this.spec=t||En}map(e,t,n,r){let i=e.map(t.from+r,this.spec.inclusiveStart?-1:1)-n,o=e.map(t.to+r,this.spec.inclusiveEnd?1:-1)-n;return i>=o?null:new An(i,o,this)}valid(e,t){return t.from=e&&(!i||i(a.spec))&&n.push(a.copy(a.from+r,a.to+r))}for(let o=0;oe){let a=this.children[o]+1;this.children[o+2].findInner(e-a,t-a,n,r+a,i)}}map(e,t,n){return this==Tn||0==e.maps.length?this:this.mapInner(e,t,0,0,n||En)}mapInner(e,t,n,r,i){let o;for(let a=0;a{let a,s=o+n;if(a=Dn(t,e,s)){r||(r=this.children.slice());while(io&&t.to=e){this.children[a]==e&&(n=this.children[a+2]);break}let i=e+1,o=i+t.content.size;for(let a=0;ai&&e.type instanceof xn){let t=Math.max(i,e.from)-i,n=Math.min(o,e.to)-i;tn.map(e,t,En));return Nn.from(n)}forChild(e,t){if(t.isLeaf)return Sn.empty;let n=[];for(let r=0;re instanceof Sn)?e:e.reduce((e,t)=>e.concat(t instanceof Sn?t:t.members),[]))}}}function Mn(e,t,n,r,i,o,a){let s=e.slice();for(let c=0,u=o;c{let a=o-r-(n-t);for(let l=0;lo+u-e)continue;let c=s[l]+u-e;n>=c?s[l+1]=t<=c?-2:-1:r>=i&&a&&(s[l]+=a,s[l+1]+=a)}e+=a}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c=r.content.size){l=!0;continue}let h=n.map(e[c+1]+o,-1),d=h-i,{index:f,offset:p}=r.content.findIndex(u),m=r.maybeChild(f);if(m&&p==u&&p+m.nodeSize==d){let r=s[c+2].mapInner(n,m,t+1,e[c]+o+1,a);r!=Tn?(s[c]=u,s[c+1]=d,s[c+2]=r):(s[c+1]=-2,l=!0)}else l=!0}if(l){let l=On(s,e,t,n,i,o,a),c=In(l,r,0,a);t=c.local;for(let e=0;en&&o.to{let s=Dn(e,t,a+n);if(s){o=!0;let e=In(s,t,n+a+1,r);e!=Tn&&i.push(a,a+t.nodeSize,e)}});let a=Ln(o?Pn(e):e,-n).sort(Rn);for(let s=0;s0)t++;e.splice(t,0,n)}function Bn(e){let t=[];return e.someProp("decorations",n=>{let r=n(e.state);r&&r!=Tn&&t.push(r)}),e.cursorWrapper&&t.push(Sn.create(e.state.doc,[e.cursorWrapper.deco])),Nn.from(t)}const _n={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},jn=E&&S<=11;class Hn{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class Un{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new Hn,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(e=>{for(let t=0;t"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),jn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,_n)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;tthis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(nt(this.view)){if(this.suppressingSelectionUpdates)return Ve(this.view);if(E&&S<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&u(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t,n=new Set;for(let i=e.focusNode;i;i=s(i))n.add(i);for(let i=e.anchorNode;i;i=s(i))if(n.has(i)){t=i;break}let r=t&&this.view.docView.nearestDesc(t);return r&&r.ignoreMutation({type:"selection",target:3==t.nodeType?t.parentNode:t})?(this.setCurSelection(),!0):void 0}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.observer?this.observer.takeRecords():[];this.queue.length&&(t=this.queue.concat(t),this.queue.length=0);let n=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(n)&&nt(e)&&!this.ignoreSelectionChange(n),o=-1,a=-1,s=!1,l=[];if(e.editable)for(let r=0;r1){let e=l.filter(e=>"BR"==e.nodeName);if(2==e.length){let t=e[0],n=e[1];t.parentNode&&t.parentNode.parentNode==n.parentNode?n.remove():t.remove()}}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&e.input.lastTouch-1||i)&&(o>-1&&(e.docView.markDirty(o,a),Wn(e)),this.handleDOMChange(o,a,s,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(n)||Ve(e),this.currentSelection.set(n))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let n=this.view.docView.nearestDesc(e.target);if("attributes"==e.type&&(n==this.view.docView||"contenteditable"==e.attributeName||"style"==e.attributeName&&!e.oldValue&&!e.target.getAttribute("style")))return null;if(!n||n.ignoreMutation(e))return null;if("childList"==e.type){for(let n=0;na;i--){let e=o.childNodes[i-1],t=e.pmViewDesc;if("BR"==e.nodeName&&!t){s=i;break}if(!t||t.size)break}let d=e.state.doc,f=e.someProp("domParser")||i["DOMParser"].fromSchema(e.state.schema),p=d.resolve(l),m=null,v=f.parse(o,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:a,to:s,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:r,ruleFromNode:Zn,context:p});if(r&&null!=r[0].pos){let e=r[0].pos,t=r[1]&&r[1].pos;null==t&&(t=e),m={anchor:e+l,head:t+l}}return{doc:v,sel:m,from:l,to:c}}function Zn(e){let t=e.pmViewDesc;if(t)return t.parseRule();if("BR"==e.nodeName&&e.parentNode){if(O&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}if(e.parentNode.lastChild==e||O&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if("IMG"==e.nodeName&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}function Kn(e,t,n,i,o){if(t<0){let t=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,n=Ge(e,t);if(n&&!e.state.selection.eq(n)){let r=e.state.tr.setSelection(n);"pointer"==t?r.setMeta("pointer",!0):"key"==t&&r.scrollIntoView(),e.dispatch(r)}return}let a=e.state.doc.resolve(t),s=a.sharedDepth(n);t=a.before(s+1),n=e.state.doc.resolve(n).after(s+1);let l,c,u=e.state.selection,h=Yn(e,t,n),d=e.state.doc,f=d.slice(h.from,h.to);8===e.input.lastKeyCode&&Date.now()-100Date.now()-225||I)&&o.some(e=>"DIV"==e.nodeName||"P"==e.nodeName||"LI"==e.nodeName)&&(!p||p.endA>=p.endB)&&e.someProp("handleKeyDown",t=>t(e,v(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(!p){if(!(i&&u instanceof r["TextSelection"]&&!u.empty&&u.$head.sameParent(u.$anchor))||e.composing||h.sel&&h.sel.anchor!=h.sel.head){if(h.sel){let t=Xn(e,e.state.doc,h.sel);t&&!t.eq(e.state.selection)&&e.dispatch(e.state.tr.setSelection(t))}return}p={start:u.from,endA:u.to,endB:u.to}}if(M&&e.cursorWrapper&&h.sel&&h.sel.anchor==e.cursorWrapper.deco.from&&h.sel.head==h.sel.anchor){let e=p.endB-p.start;h.sel={anchor:h.sel.anchor+e,head:h.sel.anchor+e}}e.input.domChangeCount++,e.state.selection.frome.state.selection.from&&p.start<=e.state.selection.from+2&&e.state.selection.from>=h.from?p.start=e.state.selection.from:p.endA=e.state.selection.to-2&&e.state.selection.to<=h.to&&(p.endB+=e.state.selection.to-p.endA,p.endA=e.state.selection.to)),E&&S<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>h.from&&"  "==h.doc.textBetween(p.start-h.from-1,p.start-h.from+1)&&(p.start--,p.endA--,p.endB--);let m,g=h.doc.resolveNoCache(p.start-h.from),b=h.doc.resolveNoCache(p.endB-h.from),y=d.resolve(p.start),w=g.sameParent(b)&&g.parent.inlineContent&&y.end()>=p.endA;if((D&&e.input.lastIOSEnter>Date.now()-225&&(!w||o.some(e=>"DIV"==e.nodeName||"P"==e.nodeName))||!w&&g.post(e,v(13,"Enter"))))return void(e.input.lastIOSEnter=0);if(e.state.selection.anchor>p.start&&Qn(d,p.start,p.endA,g,b)&&e.someProp("handleKeyDown",t=>t(e,v(8,"Backspace"))))return void(I&&M&&e.domObserver.suppressSelectionUpdates());M&&I&&p.endB==p.start&&(e.input.lastAndroidDelete=Date.now()),I&&!w&&g.start()!=b.start()&&0==b.parentOffset&&g.depth==b.depth&&h.sel&&h.sel.anchor==h.sel.head&&h.sel.head==p.endA&&(p.endB-=2,b=h.doc.resolveNoCache(p.endB-h.from),setTimeout(()=>{e.someProp("handleKeyDown",(function(t){return t(e,v(13,"Enter"))}))},20));let x,k,A,C=p.start,T=p.endA;if(w)if(g.pos==b.pos)E&&S<=11&&0==g.parentOffset&&(e.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ve(e),20)),x=e.state.tr.delete(C,T),k=d.resolve(p.start).marksAcross(d.resolve(p.endA));else if(p.endA==p.endB&&(A=Jn(g.parent.content.cut(g.parentOffset,b.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start()))))x=e.state.tr,"add"==A.type?x.addMark(C,T,A.mark):x.removeMark(C,T,A.mark);else if(g.parent.child(g.index()).isText&&g.index()==b.index()-(b.textOffset?0:1)){let t=g.parent.textBetween(g.parentOffset,b.parentOffset);if(e.someProp("handleTextInput",n=>n(e,C,T,t)))return;x=e.state.tr.insertText(t,C,T)}if(x||(x=e.state.tr.replace(C,T,h.doc.slice(p.start-h.from,p.endB-h.from))),h.sel){let t=Xn(e,x.doc,h.sel);t&&!(M&&I&&e.composing&&t.empty&&(p.start!=p.endB||e.input.lastAndroidDeletet.content.size?null:tt(e,t.resolve(n.anchor),t.resolve(n.head))}function Jn(e,t){let n,r,o,a=e.firstChild.marks,s=t.firstChild.marks,l=a,c=s;for(let i=0;ie.mark(r.addToSet(e.marks));else{if(0!=l.length||1!=c.length)return null;r=c[0],n="remove",o=e=>e.mark(r.removeFromSet(e.marks))}let u=[];for(let i=0;in||$n(a,!0,!1)0&&(t||e.indexAfter(r)==e.node(r).childCount))r--,i++,t=!1;if(n){let t=e.node(r).maybeChild(e.indexAfter(r));while(t&&!t.isLeaf)t=t.firstChild,i++}return i}function er(e,t,n,r,i){let o=e.findDiffStart(t,n);if(null==o)return null;let{a:a,b:s}=e.findDiffEnd(t,n+e.size,n+t.size);if("end"==i){let e=Math.max(0,o-Math.min(a,s));r-=a+e-o}if(a=a?o-r:0;o-=e,s=o+(s-a),a=o}else if(s=s?o-r:0;o-=e,a=o+(a-s),s=o}return{start:o,endA:a,endB:s}}const tr=wt,nr=xt,rr=hn;class ir{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new Bt,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(hr),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):"function"==typeof e?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=sr(this),ar(this),this.nodeViews=cr(this),this.docView=Ae(this.state.doc,or(this),Bn(this),this.dom,this),this.domObserver=new Un(this,(e,t,n,r)=>Kn(this,e,t,n,r)),this.domObserver.start(),_t(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&Ut(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(hr),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let n in this._props)t[n]=this._props[n];t.state=this.state;for(let n in e)t[n]=e[n];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){let n=this.state,r=!1,i=!1;e.storedMarks&&this.composing&&(cn(this),i=!0),this.state=e;let o=n.plugins!=e.plugins||this._props.plugins!=t.plugins;if(o||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let e=cr(this);ur(e,this.nodeViews)&&(this.nodeViews=e,r=!0)}(o||t.handleDOMEvents!=this._props.handleDOMEvents)&&Ut(this),this.editable=sr(this),ar(this);let a=Bn(this),s=or(this),l=n.plugins==e.plugins||n.doc.eq(e.doc)?e.scrollToSelection>n.scrollToSelection?"to selection":"preserve":"reset",c=r||!this.docView.matchesNode(e.doc,s,a);!c&&e.selection.eq(n.selection)||(i=!0);let u="preserve"==l&&i&&null==this.dom.style.overflowAnchor&&H(this);if(i){this.domObserver.stop();let t=c&&(E||M)&&!this.composing&&!n.selection.empty&&!e.selection.empty&&lr(n.selection,e.selection);if(c){let n=M?this.trackWrites=this.domSelectionRange().focusNode:null;!r&&this.docView.update(e.doc,s,a,this)||(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=Ae(e.doc,s,a,this.dom,this)),n&&!this.trackWrites&&(t=!0)}t||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&it(this))?Ve(this,t):($e(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(n),"reset"==l?this.dom.scrollTop=0:"to selection"==l?this.scrollToSelection():u&&q(u)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(this.someProp("handleScrollToSelection",e=>e(this)));else if(this.state.selection instanceof r["NodeSelection"]){let t=this.docView.domAfterPos(this.state.selection.from);1==t.nodeType&&j(this,t.getBoundingClientRect(),e)}else j(this,this.coordsAtPos(this.state.selection.head,1),e)}destroyPluginViews(){let e;while(e=this.pluginViews.pop())e.destroy&&e.destroy()}updatePluginViews(e){if(e&&e.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let t=0;tt.ownerDocument.getSelection()),this._root=t;return e||document}posAtCoords(e){return ee(this,e)}coordsAtPos(e,t=1){return re(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,n=-1){let r=this.docView.posFromDOM(e,t,n);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(e,t){return fe(this,t||this.state,e)}destroy(){this.docView&&(Ht(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Bn(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(e){return Wt(this,e)}dispatch(e){let t=this._props.dispatchTransaction;t?t.call(this,e):this.updateState(this.state.apply(e))}domSelectionRange(){return O&&11===this.root.nodeType&&b(this.dom.ownerDocument)==this.dom?Vn(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function or(e){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(e.editable),t.translate="no",e.someProp("attributes",n=>{if("function"==typeof n&&(n=n(e.state)),n)for(let e in n)"class"==e&&(t.class+=" "+n[e]),"style"==e?t.style=(t.style?t.style+";":"")+n[e]:t[e]||"contenteditable"==e||"nodeName"==e||(t[e]=String(n[e]))}),[An.node(0,e.state.doc.content.size,t)]}function ar(e){if(e.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),e.cursorWrapper={dom:t,deco:An.widget(e.state.selection.head,t,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function sr(e){return!e.someProp("editable",t=>!1===t(e.state))}function lr(e,t){let n=Math.min(e.$anchor.sharedDepth(e.head),t.$anchor.sharedDepth(t.head));return e.$anchor.start(n)!=t.$anchor.start(n)}function cr(e){let t=Object.create(null);function n(e){for(let n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n])}return e.someProp("nodeViews",n),e.someProp("markViews",n),t}function ur(e,t){let n=0,r=0;for(let i in e){if(e[i]!=t[i])return!0;n++}for(let i in t)r++;return n!=r}function hr(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}},7080:function(e,t,n){e.exports=n.p+"img/vitalityOrange.jpg"},"70b9":function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n("8287"),s=Object.prototype.propertyIsEnumerable,l=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],h=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{h(window[e])}catch(t){return!0}}catch(t){return!0}return!1}(),p=function(e){if("undefined"===typeof window||!f)return h(e);try{return h(e)}catch(t){return!1}};r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),h=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var d=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var f=0;f0)for(var m=0;m0&&(o=n[0].slice(e-t,e)+o,r=i)}return t.tr.insertText(o,r,i)}}const s=500;function l({rules:e}){let t=new r["Plugin"]({state:{init(){return null},apply(e,t){let n=e.getMeta(this);return n||(e.selectionSet||e.docChanged?null:t)}},props:{handleTextInput(n,r,i,o){return c(n,r,i,o,e,t)},handleDOMEvents:{compositionend:n=>{setTimeout(()=>{let{$cursor:r}=n.state.selection;r&&c(n,r.pos,r.pos,"",e,t)})}}},isInputRules:!0});return t}function c(e,t,n,r,i,o){if(e.composing)return!1;let a=e.state,l=a.doc.resolve(t);if(l.parent.type.spec.code)return!1;let c=l.parent.textBetween(Math.max(0,l.parentOffset-s),l.parentOffset,null,"")+r;for(let s=0;s{let n=e.plugins;for(let r=0;r=0;e--)n.step(r.steps[e].invert(r.docs[e]));if(i.text){let t=n.doc.resolve(i.from).marks();n.replaceWith(i.from,i.to,e.schema.text(i.text,t))}else n.delete(i.from,i.to);t(n)}return!0}}return!1},h=new o(/--$/,"—"),d=new o(/\.\.\.$/,"…"),f=new o(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),p=new o(/"$/,"”"),m=new o(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),g=new o(/'$/,"’"),v=[f,p,m,g];function b(e,t,n=null,r){return new o(e,(e,o,a,s)=>{let l=n instanceof Function?n(o):n,c=e.tr.delete(a,s),u=c.doc.resolve(a),h=u.blockRange(),d=h&&Object(i["i"])(h,t,l);if(!d)return null;c.wrap(h,d);let f=c.doc.resolve(a-1).nodeBefore;return f&&f.type==t&&Object(i["f"])(c.doc,a-1)&&(!r||r(o,f))&&c.join(a-1),c})}function y(e,t,n=null){return new o(e,(e,r,i,o)=>{let a=e.doc.resolve(i),s=n instanceof Function?n(r):n;return a.node(-1).canReplaceWith(a.index(-1),a.indexAfter(-1),t)?e.tr.delete(i,o).setBlockType(i,i,t,s):null})}},7694:function(e,t,n){},7718:function(e,t,n){e.exports=n.p+"img/huafei.svg"},"77be":function(e,t,n){"use strict";var r=n("5e8c"),i=String,o=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw new o("Can't set "+i(e)+" as a prototype")}},"77f4":function(e,t,n){e.exports=n.p+"img/niunai.svg"},"780f":function(e,t,n){"use strict";e.exports=o;var r=n("27bf"),i=Object.create(n("3a7c"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n("3fb5"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},7812:function(e,t,n){"use strict";n("eb20")},7992:function(e,t,n){e.exports=n.p+"img/mindMap.png"},"7a10":function(e,t,n){e.exports=n.p+"img/laodongjie.svg"},"7a46":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));const r=e=>({[Symbol.iterator](){return this},next:e}),i=(e,t)=>r(()=>{let n;do{n=e.next()}while(!n.done&&!t(n.value));return n}),o=(e,t)=>r(()=>{const{done:n,value:r}=e.next();return{done:n,value:n?void 0:t(r)}})},"7b13":function(e,t,n){"use strict";n("41ab")},"7b4d":function(e,t,n){},"7bbc":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return v}));var r=n("1651"),i=n("ca2d"),o=n("0e4d"),a=n("5e9b"),s=n("01fd");const l="undefined"!==typeof e&&e.release&&/node|io\.js/.test(e.release.name),c="undefined"!==typeof window&&"undefined"!==typeof document&&!l;"undefined"!==typeof navigator&&/Mac/.test(navigator.platform);let u;const h=[],d=()=>{if(void 0===u)if(l){u=r["c"]();const t=e.argv;let n=null;for(let e=0;e{if(0!==e.length){const[t,n]=e.split("=");u.set("--"+i["c"](t,"-"),n),u.set("-"+i["c"](t,"-"),n)}})):u=r["c"]();return u},f=e=>d().has(e),p=e=>l?o["a"](Object({NODE_ENV:"production",BASE_URL:window.externalPublicPath})[e.toUpperCase()]):o["a"](a["c"].getItem(e)),m=e=>f("--"+e)||null!==p(e),g=(m("production"),l&&s["d"](Object({NODE_ENV:"production",BASE_URL:"dist/"}).FORCE_COLOR,["true","1","2"])),v=!f("no-colors")&&(!l||e.stdout.isTTY||g)&&(!l||f("color")||g||null!==p("COLORTERM")||(p("TERM")||"").includes("color"))}).call(this,n("4362"))},"7be0":function(e,t,n){e.exports=n.p+"img/a-14-zhutingqi.svg"},"7c97":function(e,t,n){e.exports=n.p+"img/binggun.svg"},"7cb3":function(e,t,n){"use strict";n("dfe7")},"7cc6":function(e,t,n){e.exports=n.p+"img/-.svg"},"7d59":function(e,t,n){e.exports=n.p+"img/baichui.svg"},"7d72":function(e,t,n){"use strict";var r=n("8707").Buffer,i=r.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=m,t=4;break;case"utf8":this.fillLast=h,t=4;break;case"base64":this.text=g,this.end=v,t=3;break;default:return this.write=b,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function l(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function h(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function y(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n{this.off(e,n),t(...r)};this.on(e,n)}off(e,t){const n=this._observers.get(e);void 0!==n&&(n.delete(t),0===n.size&&this._observers.delete(e))}emit(e,t){return o["c"]((this._observers.get(e)||r["c"]()).values()).forEach(e=>e(...t))}destroy(){this._observers=r["c"]()}}},8287:function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},"82b0":function(e,t,n){e.exports=n.p+"img/a-16-yiyuan.svg"},8484:function(e,t,n){e.exports=n.p+"img/a-shuben2.svg"},"860a":function(e,t,n){"use strict";var r=n("f770"),i=n("6c12"),o=n("7e07"),a=Error.captureStackTrace;e.exports=function(e,t,n,s){o&&(a?a(e,t):r(e,"stack",i(n,s)))}},"86d9":function(e,t,n){e.exports=n.p+"img/classic3.jpg"},8707:function(e,t,n){var r=n("b639"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},8722:function(e,t,n){e.exports=n.p+"img/hanbao.svg"},8763:function(e,t,n){e.exports=n.p+"img/zongheshenpi.svg"},8952:function(e,t,n){"use strict";n("0e5f")},8953:function(e,t,n){"use strict";var r=n("cda9"),i=TypeError;e.exports=function(e,t){if(!delete e[t])throw new i("Cannot delete property "+r(t)+" of "+r(e))}},"899a":function(e,t,n){"use strict";var r=n("b2d1");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},"89c8":function(e,t,n){e.exports=n.p+"img/ziyuan_8.svg"},"8b39":function(e,t,n){e.exports=n.p+"img/a-5-mianqian.svg"},"8b92":function(e,t,n){e.exports=n.p+"img/classicBlue.jpg"},"8cd8":function(e,t,n){e.exports=n.p+"img/a-bitong1.svg"},"8ce6":function(e,t,n){e.exports=n.p+"img/a-xueshimao1.svg"},"8d05":function(e,t,n){},"8f14":function(e,t,n){e.exports=n.p+"img/earthYellow.jpg"},"8f8b":function(e,t,n){e.exports=n.p+"img/citie.svg"},"90d8":function(e,t,n){var r=n("c65b"),i=n("1a2d"),o=n("3a9b"),a=n("ad6d"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},9152:function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+h>=1?d/l:d*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*m}},9192:function(e,t,n){e.exports=n.p+"img/morandi.jpg"},"91d2":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r"}function h(e,t,n){if(t.ignoreInstruction)return"";var o;for(o in e)if(e.hasOwnProperty(o))break;var a="instructionNameFn"in t?t.instructionNameFn(o,e[o],i,r):o;if("object"===typeof e[o])return r=e,i=a,"";var s=e[o]?e[o]:"";return"instructionFn"in t&&(s=t.instructionFn(s,o,i,r)),""}function d(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,i,r):e)+"--\x3e"}function f(e,t){return t.ignoreCdata?"":"","]]]]>"))+"]]>"}function p(e,t){return t.ignoreDoctype?"":""}function m(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(//g,">"),"textFn"in t?t.textFn(e,i,r):e)}function g(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n"),e[t.elementsKey]&&e[t.elementsKey].length&&(o.push(b(e[t.elementsKey],t,n+1)),r=e,i=e.name),o.push(t.spaces&&g(e,t)?"\n"+Array(n+1).join(t.spaces):""),o.push("")):o.push("/>"),o.join("")}function b(e,t,n,r){return e.reduce((function(e,i){var o=l(t,n,r&&!e);switch(i.type){case"element":return e+o+v(i,t,n);case"comment":return e+o+d(i[t.commentKey],t);case"doctype":return e+o+p(i[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?o:"")+f(i[t.cdataKey],t);case"text":return e+(t.indentText?o:"")+m(i[t.textKey],t);case"instruction":var a={};return a[i[t.nameKey]]=i[t.attributesKey]?i:i[t.instructionKey],e+(t.indentInstruction?o:"")+h(a,t,n)}}),"")}function y(e,t,n){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function w(e,t,n,o,a){r=e,i=t;var s="elementNameFn"in n?n.elementNameFn(t,e):t;if("undefined"===typeof e||null===e||""===e)return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+s+">":"<"+s+"/>";var u=[];if(t){if(u.push("<"+s),"object"!==typeof e)return u.push(">"+m(e,n)+""),u.join("");e[n.attributesKey]&&u.push(c(e[n.attributesKey],n,o));var h=y(e,n,!0)||e[n.attributesKey]&&"preserve"===e[n.attributesKey]["xml:space"];if(h||(h="fullTagEmptyElementFn"in n?n.fullTagEmptyElementFn(t,e):n.fullTagEmptyElement),!h)return u.push("/>"),u.join("");u.push(">")}return u.push(x(e,n,o+1,!1)),r=e,i=t,t&&u.push((a?l(n,o,!1):"")+""),u.join("")}function x(e,t,n,r){var i,o,s,c=[];for(o in e)if(e.hasOwnProperty(o))for(s=a(e[o])?e[o]:[e[o]],i=0;inew Promise(e),i=(Promise.all.bind(Promise),e=>Promise.reject(e)),o=e=>Promise.resolve(e)},"9aca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}));const r=e=>new Error(e),i=()=>{throw r("Method unimplemented")},o=()=>{throw r("Unexpected case")}},"9b17":function(e,t,n){e.exports=n.p+"img/a-11-yiyongweishengzhi.svg"},"9bc2":function(e,t,n){"use strict";n("b866")},"9c58":function(e,t,n){e.exports=n.p+"img/xiangjiao.svg"},"9c85":function(e,t,n){e.exports=n.p+"img/-_15.svg"},"9cf4":function(e,t,n){e.exports=n.p+"img/a-10-yiliaoxiang.svg"},"9ddb":function(e,t,n){},"9ed8":function(e,t,n){e.exports=n.p+"img/greenLeaf.jpg"},"9f18":function(e,t,n){e.exports=n.p+"img/-_18.svg"},"9f38":function(e,t,n){e.exports=n.p+"img/ziyuan_17.svg"},"9fd6":function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return k})),n.d(t,"i",(function(){return A})),n.d(t,"k",(function(){return C})),n.d(t,"o",(function(){return E})),n.d(t,"h",(function(){return D})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return R})),n.d(t,"a",(function(){return z})),n.d(t,"c",(function(){return B}));var r=n("efdf"),i=n("fa98"),o=n("cbe8"),a=n("23dd"),s=n("ca2d"),l=n("c4f9");class c{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const u=()=>new c,h=e=>{let t=e.cpos;for(let n=0;n{const t=new Uint8Array(h(e));let n=0;for(let r=0;r{const n=e.cbuf.length;n-e.cpos{const n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(2*n),e.cpos=0),e.cbuf[e.cpos++]=t},m=p,g=(e,t)=>{while(t>a["m"])p(e,a["g"]|a["m"]&t),t=i["d"](t/128);p(e,a["m"]&t)},v=(e,t)=>{const n=i["e"](t);n&&(t=-t),p(e,(t>a["l"]?a["g"]:0)|(n?a["f"]:0)|a["l"]&t),t=i["d"](t/64);while(t>0)p(e,(t>a["m"]?a["g"]:0)|a["m"]&t),t=i["d"](t/128)},b=new Uint8Array(3e4),y=b.length/3,w=(e,t)=>{if(t.length{const n=unescape(encodeURIComponent(t)),r=n.length;g(e,r);for(let i=0;iC(e,d(t)),C=(e,t)=>{const n=e.cbuf.length,r=e.cpos,o=i["h"](n-r,t.length),a=t.length-o;e.cbuf.set(t.subarray(0,o),r),e.cpos+=o,a>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(i["g"](2*n,a)),e.cbuf.set(t.subarray(o)),e.cpos=a)},E=(e,t)=>{g(e,t.byteLength),C(e,t)},S=(e,t)=>{f(e,t);const n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},T=(e,t)=>S(e,4).setFloat32(0,t,!1),N=(e,t)=>S(e,8).setFloat64(0,t,!1),M=(e,t)=>S(e,8).setBigInt64(0,t,!1),L=new DataView(new ArrayBuffer(4)),O=e=>(L.setFloat32(0,e),L.getFloat32(0)===e),D=(e,t)=>{switch(typeof t){case"string":p(e,119),k(e,t);break;case"number":o["b"](t)&&i["a"](t)<=a["i"]?(p(e,125),v(e,t)):O(t)?(p(e,124),T(e,t)):(p(e,123),N(e,t));break;case"bigint":p(e,122),M(e,t);break;case"object":if(null===t)p(e,126);else if(l["d"](t)){p(e,117),g(e,t.length);for(let n=0;n0&&g(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}}const I=e=>{e.count>0&&(v(e.encoder,1===e.count?e.s:-e.s),e.count>1&&g(e.encoder,e.count-2))};class R{constructor(){this.encoder=new c,this.s=0,this.count=0}write(e){this.s===e?this.count++:(I(this),this.count=1,this.s=e)}toUint8Array(){return I(this),d(this.encoder)}}const F=e=>{if(e.count>0){const t=2*e.diff+(1===e.count?0:1);v(e.encoder,t),e.count>1&&g(e.encoder,e.count-2)}};class z{constructor(){this.encoder=new c,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(F(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return F(this),d(this.encoder)}}class B{constructor(){this.sarr=[],this.s="",this.lensE=new R}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(e.length)}toUint8Array(){const e=new c;return this.sarr.push(this.s),this.s="",k(e,this.sarr.join("")),C(e,this.lensE.toUint8Array()),d(e)}}},a028:function(e,t,n){e.exports=n.p+"img/caomei.svg"},a057:function(e,t,n){e.exports=n.p+"img/yingtao.svg"},a06c:function(e){e.exports=JSON.parse('{"name":"simple-mind-map","version":"0.9.1-fix.1","description":"一个简单的web在线思维导图","authors":[{"name":"街角小林","email":"1013335014@qq.com"},{"name":"理想青年实验室","url":"http://lxqnsys.com/"}],"types":"./types/index.d.ts","typings":"./types/index.d.ts","license":"MIT","repository":{"type":"git","url":"https://github.com/wanglin2/mind-map"},"scripts":{"lint":"eslint src/","format":"prettier --write .","types":"npx -p typescript tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types --target es2017 --skipLibCheck","wsServe":"node ./bin/wsServer.mjs"},"module":"index.js","main":"./dist/simpleMindMap.umd.min.js","dependencies":{"@svgdotjs/svg.js":"^3.0.16","deepmerge":"^1.5.2","eventemitter3":"^4.0.7","jspdf":"^2.5.1","jszip":"^3.10.1","katex":"^0.16.8","mdast-util-from-markdown":"^1.3.0","quill":"^1.3.6","tern":"^0.24.3","uuid":"^9.0.0","xml-js":"^1.6.11","y-webrtc":"^10.2.5","yjs":"^13.6.8"},"keywords":["javascript","svg","mind-map","mindMap","MindMap"],"devDependencies":{"eslint":"^8.25.0","prettier":"^2.7.1"}}')},a121:function(e,t,n){"use strict";n("8d05")},a2b5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u}));const r=Object.assign,i=Object.keys,o=(e,t)=>{for(const n in e)t(e[n],n)},a=e=>i(e).length,s=e=>{for(const t in e)return!1;return!0},l=(e,t)=>{for(const n in e)if(!t(e[n],n))return!1;return!0},c=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u=(e,t)=>e===t||a(e)===a(t)&&l(e,(e,n)=>(void 0!==e||c(t,n))&&t[n]===e)},a3cc:function(e,t,n){e.exports=n.p+"img/gonglve.svg"},a3df:function(e,t,n){"use strict";var r=n("3475"),i=n("ac5f").right,o=n("5afb"),a=n("23a2"),s=n("364c"),l=!s&&a>79&&a<83,c=l||!o("reduceRight");r({target:"Array",proto:!0,forced:c},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},a3e0:function(e,t,n){e.exports=n.p+"img/taozi.svg"},a493:function(e,t,n){e.exports=n.p+"img/-_1.svg"},a578:function(e,t,n){"use strict";var r=n("424c"),i=n("46ab");e.exports=function(e){if("Function"===r(e))return i(e)}},a57a:function(e,t,n){e.exports=n.p+"img/minions.jpg"},a641:function(e,t,n){e.exports=n.p+"img/-_7.svg"},a747:function(e,t,n){e.exports=n.p+"img/gongju.svg"},a76c:function(e,t,n){e.exports=n.p+"img/ziyuan_11.svg"},a7a61:function(e,t,n){e.exports=n.p+"img/dark3.jpg"},a7fd:function(e,t,n){e.exports=n.p+"img/chuhangshijian.svg"},a83d:function(e,t,n){(function(e){(function(t){t.parser=function(e,t){return new o(e,t)},t.SAXParser=o,t.SAXStream=h,t.createStream=u,t.MAX_BUFFER_LENGTH=65536;var r,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(e,n){if(!(this instanceof o))return new o(e,n);var r=this;s(r),r.q=r.c="",r.bufferCheckPosition=t.MAX_BUFFER_LENGTH,r.opt=n||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!e,r.noscript=!(!e&&!r.opt.noscript),r.state=S.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(g)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),N(r,"onready")}function a(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),r=0,o=0,a=i.length;on)switch(i[o]){case"textNode":L(e);break;case"cdata":M(e,"oncdata",e.cdata),e.cdata="";break;case"script":M(e,"onscript",e.script),e.script="";break;default:D(e,"Max buffer length exceeded: "+i[o])}r=Math.max(r,s)}var l=t.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=l+e.position}function s(e){for(var t=0,n=i.length;t"===e||x(e)}function C(e,t){return e.test(t)}function E(e,t){return!C(e,t)}var S=0;for(var T in t.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var n=t.ENTITIES[e],r="number"===typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r})),t.STATE)t.STATE[t.STATE[T]]=T;function N(e,t,n){e[t]&&e[t](n)}function M(e,t,n){e.textNode&&L(e),N(e,t,n)}function L(e){e.textNode=O(e.opt,e.textNode),e.textNode&&N(e,"ontext",e.textNode),e.textNode=""}function O(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function D(e,t){return L(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,N(e,"onerror",t),e}function P(e){return e.sawRoot&&!e.closedRoot&&I(e,"Unclosed root tag"),e.state!==S.BEGIN&&e.state!==S.BEGIN_WHITESPACE&&e.state!==S.TEXT&&D(e,"Unexpected end"),L(e),e.c="",e.closed=!0,N(e,"onend"),o.call(e,e.strict,e.opt),e}function I(e,t){if("object"!==typeof e||!(e instanceof o))throw new Error("bad call to strictFail");e.strict&&D(e,t)}function R(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,M(e,"onopentagstart",n)}function F(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),i=r[0],o=r[1];return t&&"xmlns"===e&&(i="xmlns",o=""),{prefix:i,local:o}}function z(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=F(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==p)I(e,"xml: prefix must be bound to "+p+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==m)I(e,"xmlns: prefix must be bound to "+m+"\nActual: "+e.attribValue);else{var i=e.tag,o=e.tags[e.tags.length-1]||e;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,M(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function B(e,t){if(e.opt.xmlns){var n=e.tag,r=F(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(I(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=r.prefix);var i=e.tags[e.tags.length-1]||e;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach((function(t){M(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var o=0,a=e.attribList.length;o",e.tagName="",void(e.state=S.SCRIPT);M(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());var r=n;while(t--){var i=e.tags[t];if(i.name===r)break;I(e,"Unexpected close tag")}if(t<0)return I(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=S.TEXT);e.tagName=n;var o=e.tags.length;while(o-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,M(e,"onclosetag",e.tagName);var s={};for(var l in a.ns)s[l]=a.ns[l];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach((function(t){var n=a.ns[t];M(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=S.TEXT}function j(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),i=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),i=t.toString(10))),n=n.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==n?(I(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function H(e,t){"<"===t?(e.state=S.OPEN_WAKA,e.startTagPosition=e.position):x(t)||(I(e,"Non-whitespace before first tag."),e.textNode=t,e.state=S.TEXT)}function U(e,t){var n="";return t"===r?(M(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=S.TEXT):k(r)?(t.state=S.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case S.SGML_DECL_QUOTED:r===t.q&&(t.state=S.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case S.DOCTYPE:">"===r?(t.state=S.TEXT,M(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=S.DOCTYPE_DTD:k(r)&&(t.state=S.DOCTYPE_QUOTED,t.q=r));continue;case S.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=S.DOCTYPE:k(r)&&(t.state=S.DOCTYPE_DTD_QUOTED,t.q=r);continue;case S.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=S.DOCTYPE_DTD,t.q="");continue;case S.COMMENT:"-"===r?t.state=S.COMMENT_ENDING:t.comment+=r;continue;case S.COMMENT_ENDING:"-"===r?(t.state=S.COMMENT_ENDED,t.comment=O(t.opt,t.comment),t.comment&&M(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=S.COMMENT);continue;case S.COMMENT_ENDED:">"!==r?(I(t,"Malformed comment"),t.comment+="--"+r,t.state=S.COMMENT):t.state=S.TEXT;continue;case S.CDATA:"]"===r?t.state=S.CDATA_ENDING:t.cdata+=r;continue;case S.CDATA_ENDING:"]"===r?t.state=S.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=S.CDATA);continue;case S.CDATA_ENDING_2:">"===r?(t.cdata&&M(t,"oncdata",t.cdata),M(t,"onclosecdata"),t.cdata="",t.state=S.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=S.CDATA);continue;case S.PROC_INST:"?"===r?t.state=S.PROC_INST_ENDING:x(r)?t.state=S.PROC_INST_BODY:t.procInstName+=r;continue;case S.PROC_INST_BODY:if(!t.procInstBody&&x(r))continue;"?"===r?t.state=S.PROC_INST_ENDING:t.procInstBody+=r;continue;case S.PROC_INST_ENDING:">"===r?(M(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=S.TEXT):(t.procInstBody+="?"+r,t.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:C(b,r)?t.tagName+=r:(R(t),">"===r?B(t):"/"===r?t.state=S.OPEN_TAG_SLASH:(x(r)||I(t,"Invalid character in tag name"),t.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:">"===r?(B(t,!0),_(t)):(I(t,"Forward-slash in opening tag not followed by >"),t.state=S.ATTRIB);continue;case S.ATTRIB:if(x(r))continue;">"===r?B(t):"/"===r?t.state=S.OPEN_TAG_SLASH:C(v,r)?(t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):I(t,"Invalid attribute name");continue;case S.ATTRIB_NAME:"="===r?t.state=S.ATTRIB_VALUE:">"===r?(I(t,"Attribute without value"),t.attribValue=t.attribName,z(t),B(t)):x(r)?t.state=S.ATTRIB_NAME_SAW_WHITE:C(b,r)?t.attribName+=r:I(t,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=S.ATTRIB_VALUE;else{if(x(r))continue;I(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",M(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?B(t):C(v,r)?(t.attribName=r,t.state=S.ATTRIB_NAME):(I(t,"Invalid attribute name"),t.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(x(r))continue;k(r)?(t.q=r,t.state=S.ATTRIB_VALUE_QUOTED):(I(t,"Unquoted attribute value"),t.state=S.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case S.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}z(t),t.q="",t.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:x(r)?t.state=S.ATTRIB:">"===r?B(t):"/"===r?t.state=S.OPEN_TAG_SLASH:C(v,r)?(I(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):I(t,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(!A(r)){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}z(t),">"===r?B(t):t.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(t.tagName)">"===r?_(t):C(b,r)?t.tagName+=r:t.script?(t.script+=""===r?_(t):I(t,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var s,l;switch(t.state){case S.TEXT_ENTITY:s=S.TEXT,l="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:s=S.ATTRIB_VALUE_QUOTED,l="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:s=S.ATTRIB_VALUE_UNQUOTED,l="attribValue";break}";"===r?(t[l]+=j(t),t.entity="",t.state=s):C(t.entity.length?w:y,r)?t.entity+=r:(I(t,"Invalid character in entity name"),t[l]+="&"+t.entity+r,t.entity="",t.state=s);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&a(t),t} +t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,d=n?-1:1,f=e[t+h];for(h+=d,o=f&(1<<-u)-1,f>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=d,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=d,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+h>=1?d/l:d*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;e[n+f]=255&a,f+=p,a/=256,c-=8);e[n+f-p]|=128*m}},9192:function(e,t,n){e.exports=n.p+"img/morandi.jpg"},"91d2":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r"}function h(e,t,n){if(t.ignoreInstruction)return"";var o;for(o in e)if(e.hasOwnProperty(o))break;var a="instructionNameFn"in t?t.instructionNameFn(o,e[o],i,r):o;if("object"===typeof e[o])return r=e,i=a,"";var s=e[o]?e[o]:"";return"instructionFn"in t&&(s=t.instructionFn(s,o,i,r)),""}function d(e,t){return t.ignoreComment?"":"\x3c!--"+("commentFn"in t?t.commentFn(e,i,r):e)+"--\x3e"}function f(e,t){return t.ignoreCdata?"":"","]]]]>"))+"]]>"}function p(e,t){return t.ignoreDoctype?"":""}function m(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(//g,">"),"textFn"in t?t.textFn(e,i,r):e)}function g(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n"),e[t.elementsKey]&&e[t.elementsKey].length&&(o.push(b(e[t.elementsKey],t,n+1)),r=e,i=e.name),o.push(t.spaces&&g(e,t)?"\n"+Array(n+1).join(t.spaces):""),o.push("")):o.push("/>"),o.join("")}function b(e,t,n,r){return e.reduce((function(e,i){var o=l(t,n,r&&!e);switch(i.type){case"element":return e+o+v(i,t,n);case"comment":return e+o+d(i[t.commentKey],t);case"doctype":return e+o+p(i[t.doctypeKey],t);case"cdata":return e+(t.indentCdata?o:"")+f(i[t.cdataKey],t);case"text":return e+(t.indentText?o:"")+m(i[t.textKey],t);case"instruction":var a={};return a[i[t.nameKey]]=i[t.attributesKey]?i:i[t.instructionKey],e+(t.indentInstruction?o:"")+h(a,t,n)}}),"")}function y(e,t,n){var r;for(r in e)if(e.hasOwnProperty(r))switch(r){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}function w(e,t,n,o,a){r=e,i=t;var s="elementNameFn"in n?n.elementNameFn(t,e):t;if("undefined"===typeof e||null===e||""===e)return"fullTagEmptyElementFn"in n&&n.fullTagEmptyElementFn(t,e)||n.fullTagEmptyElement?"<"+s+">":"<"+s+"/>";var u=[];if(t){if(u.push("<"+s),"object"!==typeof e)return u.push(">"+m(e,n)+""),u.join("");e[n.attributesKey]&&u.push(c(e[n.attributesKey],n,o));var h=y(e,n,!0)||e[n.attributesKey]&&"preserve"===e[n.attributesKey]["xml:space"];if(h||(h="fullTagEmptyElementFn"in n?n.fullTagEmptyElementFn(t,e):n.fullTagEmptyElement),!h)return u.push("/>"),u.join("");u.push(">")}return u.push(x(e,n,o+1,!1)),r=e,i=t,t&&u.push((a?l(n,o,!1):"")+""),u.join("")}function x(e,t,n,r){var i,o,s,c=[];for(o in e)if(e.hasOwnProperty(o))for(s=a(e[o])?e[o]:[e[o]],i=0;inew Promise(e),i=(Promise.all.bind(Promise),e=>Promise.reject(e)),o=e=>Promise.resolve(e)},"9aca":function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o}));const r=e=>new Error(e),i=()=>{throw r("Method unimplemented")},o=()=>{throw r("Unexpected case")}},"9b17":function(e,t,n){e.exports=n.p+"img/a-11-yiyongweishengzhi.svg"},"9bc2":function(e,t,n){"use strict";n("b866")},"9c58":function(e,t,n){e.exports=n.p+"img/xiangjiao.svg"},"9c85":function(e,t,n){e.exports=n.p+"img/-_15.svg"},"9cf4":function(e,t,n){e.exports=n.p+"img/a-10-yiliaoxiang.svg"},"9ddb":function(e,t,n){},"9ed8":function(e,t,n){e.exports=n.p+"img/greenLeaf.jpg"},"9f18":function(e,t,n){e.exports=n.p+"img/-_18.svg"},"9f38":function(e,t,n){e.exports=n.p+"img/ziyuan_17.svg"},"9fd6":function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return p})),n.d(t,"j",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return k})),n.d(t,"i",(function(){return A})),n.d(t,"k",(function(){return C})),n.d(t,"o",(function(){return E})),n.d(t,"h",(function(){return D})),n.d(t,"b",(function(){return P})),n.d(t,"d",(function(){return R})),n.d(t,"a",(function(){return z})),n.d(t,"c",(function(){return B}));var r=n("efdf"),i=n("fa98"),o=n("cbe8"),a=n("23dd"),s=n("ca2d"),l=n("c4f9");class c{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const u=()=>new c,h=e=>{let t=e.cpos;for(let n=0;n{const t=new Uint8Array(h(e));let n=0;for(let r=0;r{const n=e.cbuf.length;n-e.cpos{const n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(2*n),e.cpos=0),e.cbuf[e.cpos++]=t},m=p,g=(e,t)=>{while(t>a["m"])p(e,a["g"]|a["m"]&t),t=i["d"](t/128);p(e,a["m"]&t)},v=(e,t)=>{const n=i["e"](t);n&&(t=-t),p(e,(t>a["l"]?a["g"]:0)|(n?a["f"]:0)|a["l"]&t),t=i["d"](t/64);while(t>0)p(e,(t>a["m"]?a["g"]:0)|a["m"]&t),t=i["d"](t/128)},b=new Uint8Array(3e4),y=b.length/3,w=(e,t)=>{if(t.length{const n=unescape(encodeURIComponent(t)),r=n.length;g(e,r);for(let i=0;iC(e,d(t)),C=(e,t)=>{const n=e.cbuf.length,r=e.cpos,o=i["h"](n-r,t.length),a=t.length-o;e.cbuf.set(t.subarray(0,o),r),e.cpos+=o,a>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(i["g"](2*n,a)),e.cbuf.set(t.subarray(o)),e.cpos=a)},E=(e,t)=>{g(e,t.byteLength),C(e,t)},S=(e,t)=>{f(e,t);const n=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,n},T=(e,t)=>S(e,4).setFloat32(0,t,!1),N=(e,t)=>S(e,8).setFloat64(0,t,!1),M=(e,t)=>S(e,8).setBigInt64(0,t,!1),L=new DataView(new ArrayBuffer(4)),O=e=>(L.setFloat32(0,e),L.getFloat32(0)===e),D=(e,t)=>{switch(typeof t){case"string":p(e,119),k(e,t);break;case"number":o["b"](t)&&i["a"](t)<=a["i"]?(p(e,125),v(e,t)):O(t)?(p(e,124),T(e,t)):(p(e,123),N(e,t));break;case"bigint":p(e,122),M(e,t);break;case"object":if(null===t)p(e,126);else if(l["d"](t)){p(e,117),g(e,t.length);for(let n=0;n0&&g(this,this.count-1),this.count=1,this.w(this,e),this.s=e)}}const I=e=>{e.count>0&&(v(e.encoder,1===e.count?e.s:-e.s),e.count>1&&g(e.encoder,e.count-2))};class R{constructor(){this.encoder=new c,this.s=0,this.count=0}write(e){this.s===e?this.count++:(I(this),this.count=1,this.s=e)}toUint8Array(){return I(this),d(this.encoder)}}const F=e=>{if(e.count>0){const t=2*e.diff+(1===e.count?0:1);v(e.encoder,t),e.count>1&&g(e.encoder,e.count-2)}};class z{constructor(){this.encoder=new c,this.s=0,this.count=0,this.diff=0}write(e){this.diff===e-this.s?(this.s=e,this.count++):(F(this),this.count=1,this.diff=e-this.s,this.s=e)}toUint8Array(){return F(this),d(this.encoder)}}class B{constructor(){this.sarr=[],this.s="",this.lensE=new R}write(e){this.s+=e,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(e.length)}toUint8Array(){const e=new c;return this.sarr.push(this.s),this.s="",k(e,this.sarr.join("")),C(e,this.lensE.toUint8Array()),d(e)}}},a028:function(e,t,n){e.exports=n.p+"img/caomei.svg"},a057:function(e,t,n){e.exports=n.p+"img/yingtao.svg"},a06c:function(e){e.exports=JSON.parse('{"name":"simple-mind-map","version":"0.9.1-fix.2","description":"一个简单的web在线思维导图","authors":[{"name":"街角小林","email":"1013335014@qq.com"},{"name":"理想青年实验室","url":"http://lxqnsys.com/"}],"types":"./types/index.d.ts","typings":"./types/index.d.ts","license":"MIT","repository":{"type":"git","url":"https://github.com/wanglin2/mind-map"},"scripts":{"lint":"eslint src/","format":"prettier --write .","types":"npx -p typescript tsc index.js --declaration --allowJs --emitDeclarationOnly --outDir types --target es2017 --skipLibCheck","wsServe":"node ./bin/wsServer.mjs"},"module":"index.js","main":"./dist/simpleMindMap.umd.min.js","dependencies":{"@svgdotjs/svg.js":"^3.0.16","deepmerge":"^1.5.2","eventemitter3":"^4.0.7","jspdf":"^2.5.1","jszip":"^3.10.1","katex":"^0.16.8","mdast-util-from-markdown":"^1.3.0","quill":"^1.3.6","tern":"^0.24.3","uuid":"^9.0.0","xml-js":"^1.6.11","y-webrtc":"^10.2.5","yjs":"^13.6.8"},"keywords":["javascript","svg","mind-map","mindMap","MindMap"],"devDependencies":{"eslint":"^8.25.0","prettier":"^2.7.1"}}')},a121:function(e,t,n){"use strict";n("8d05")},a2b5:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u}));const r=Object.assign,i=Object.keys,o=(e,t)=>{for(const n in e)t(e[n],n)},a=e=>i(e).length,s=e=>{for(const t in e)return!1;return!0},l=(e,t)=>{for(const n in e)if(!t(e[n],n))return!1;return!0},c=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u=(e,t)=>e===t||a(e)===a(t)&&l(e,(e,n)=>(void 0!==e||c(t,n))&&t[n]===e)},a3cc:function(e,t,n){e.exports=n.p+"img/gonglve.svg"},a3df:function(e,t,n){"use strict";var r=n("3475"),i=n("ac5f").right,o=n("5afb"),a=n("23a2"),s=n("364c"),l=!s&&a>79&&a<83,c=l||!o("reduceRight");r({target:"Array",proto:!0,forced:c},{reduceRight:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},a3e0:function(e,t,n){e.exports=n.p+"img/taozi.svg"},a493:function(e,t,n){e.exports=n.p+"img/-_1.svg"},a578:function(e,t,n){"use strict";var r=n("424c"),i=n("46ab");e.exports=function(e){if("Function"===r(e))return i(e)}},a57a:function(e,t,n){e.exports=n.p+"img/minions.jpg"},a641:function(e,t,n){e.exports=n.p+"img/-_7.svg"},a747:function(e,t,n){e.exports=n.p+"img/gongju.svg"},a76c:function(e,t,n){e.exports=n.p+"img/ziyuan_11.svg"},a7a61:function(e,t,n){e.exports=n.p+"img/dark3.jpg"},a7fd:function(e,t,n){e.exports=n.p+"img/chuhangshijian.svg"},a83d:function(e,t,n){(function(e){(function(t){t.parser=function(e,t){return new o(e,t)},t.SAXParser=o,t.SAXStream=h,t.createStream=u,t.MAX_BUFFER_LENGTH=65536;var r,i=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function o(e,n){if(!(this instanceof o))return new o(e,n);var r=this;s(r),r.q=r.c="",r.bufferCheckPosition=t.MAX_BUFFER_LENGTH,r.opt=n||{},r.opt.lowercase=r.opt.lowercase||r.opt.lowercasetags,r.looseCase=r.opt.lowercase?"toLowerCase":"toUpperCase",r.tags=[],r.closed=r.closedRoot=r.sawRoot=!1,r.tag=r.error=null,r.strict=!!e,r.noscript=!(!e&&!r.opt.noscript),r.state=S.BEGIN,r.strictEntities=r.opt.strictEntities,r.ENTITIES=r.strictEntities?Object.create(t.XML_ENTITIES):Object.create(t.ENTITIES),r.attribList=[],r.opt.xmlns&&(r.ns=Object.create(g)),r.trackPosition=!1!==r.opt.position,r.trackPosition&&(r.position=r.line=r.column=0),N(r,"onready")}function a(e){for(var n=Math.max(t.MAX_BUFFER_LENGTH,10),r=0,o=0,a=i.length;on)switch(i[o]){case"textNode":L(e);break;case"cdata":M(e,"oncdata",e.cdata),e.cdata="";break;case"script":M(e,"onscript",e.script),e.script="";break;default:D(e,"Max buffer length exceeded: "+i[o])}r=Math.max(r,s)}var l=t.MAX_BUFFER_LENGTH-r;e.bufferCheckPosition=l+e.position}function s(e){for(var t=0,n=i.length;t"===e||x(e)}function C(e,t){return e.test(t)}function E(e,t){return!C(e,t)}var S=0;for(var T in t.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},t.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},t.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(t.ENTITIES).forEach((function(e){var n=t.ENTITIES[e],r="number"===typeof n?String.fromCharCode(n):n;t.ENTITIES[e]=r})),t.STATE)t.STATE[t.STATE[T]]=T;function N(e,t,n){e[t]&&e[t](n)}function M(e,t,n){e.textNode&&L(e),N(e,t,n)}function L(e){e.textNode=O(e.opt,e.textNode),e.textNode&&N(e,"ontext",e.textNode),e.textNode=""}function O(e,t){return e.trim&&(t=t.trim()),e.normalize&&(t=t.replace(/\s+/g," ")),t}function D(e,t){return L(e),e.trackPosition&&(t+="\nLine: "+e.line+"\nColumn: "+e.column+"\nChar: "+e.c),t=new Error(t),e.error=t,N(e,"onerror",t),e}function P(e){return e.sawRoot&&!e.closedRoot&&I(e,"Unclosed root tag"),e.state!==S.BEGIN&&e.state!==S.BEGIN_WHITESPACE&&e.state!==S.TEXT&&D(e,"Unexpected end"),L(e),e.c="",e.closed=!0,N(e,"onend"),o.call(e,e.strict,e.opt),e}function I(e,t){if("object"!==typeof e||!(e instanceof o))throw new Error("bad call to strictFail");e.strict&&D(e,t)}function R(e){e.strict||(e.tagName=e.tagName[e.looseCase]());var t=e.tags[e.tags.length-1]||e,n=e.tag={name:e.tagName,attributes:{}};e.opt.xmlns&&(n.ns=t.ns),e.attribList.length=0,M(e,"onopentagstart",n)}function F(e,t){var n=e.indexOf(":"),r=n<0?["",e]:e.split(":"),i=r[0],o=r[1];return t&&"xmlns"===e&&(i="xmlns",o=""),{prefix:i,local:o}}function z(e){if(e.strict||(e.attribName=e.attribName[e.looseCase]()),-1!==e.attribList.indexOf(e.attribName)||e.tag.attributes.hasOwnProperty(e.attribName))e.attribName=e.attribValue="";else{if(e.opt.xmlns){var t=F(e.attribName,!0),n=t.prefix,r=t.local;if("xmlns"===n)if("xml"===r&&e.attribValue!==p)I(e,"xml: prefix must be bound to "+p+"\nActual: "+e.attribValue);else if("xmlns"===r&&e.attribValue!==m)I(e,"xmlns: prefix must be bound to "+m+"\nActual: "+e.attribValue);else{var i=e.tag,o=e.tags[e.tags.length-1]||e;i.ns===o.ns&&(i.ns=Object.create(o.ns)),i.ns[r]=e.attribValue}e.attribList.push([e.attribName,e.attribValue])}else e.tag.attributes[e.attribName]=e.attribValue,M(e,"onattribute",{name:e.attribName,value:e.attribValue});e.attribName=e.attribValue=""}}function B(e,t){if(e.opt.xmlns){var n=e.tag,r=F(e.tagName);n.prefix=r.prefix,n.local=r.local,n.uri=n.ns[r.prefix]||"",n.prefix&&!n.uri&&(I(e,"Unbound namespace prefix: "+JSON.stringify(e.tagName)),n.uri=r.prefix);var i=e.tags[e.tags.length-1]||e;n.ns&&i.ns!==n.ns&&Object.keys(n.ns).forEach((function(t){M(e,"onopennamespace",{prefix:t,uri:n.ns[t]})}));for(var o=0,a=e.attribList.length;o",e.tagName="",void(e.state=S.SCRIPT);M(e,"onscript",e.script),e.script=""}var t=e.tags.length,n=e.tagName;e.strict||(n=n[e.looseCase]());var r=n;while(t--){var i=e.tags[t];if(i.name===r)break;I(e,"Unexpected close tag")}if(t<0)return I(e,"Unmatched closing tag: "+e.tagName),e.textNode+="",void(e.state=S.TEXT);e.tagName=n;var o=e.tags.length;while(o-- >t){var a=e.tag=e.tags.pop();e.tagName=e.tag.name,M(e,"onclosetag",e.tagName);var s={};for(var l in a.ns)s[l]=a.ns[l];var c=e.tags[e.tags.length-1]||e;e.opt.xmlns&&a.ns!==c.ns&&Object.keys(a.ns).forEach((function(t){var n=a.ns[t];M(e,"onclosenamespace",{prefix:t,uri:n})}))}0===t&&(e.closedRoot=!0),e.tagName=e.attribValue=e.attribName="",e.attribList.length=0,e.state=S.TEXT}function j(e){var t,n=e.entity,r=n.toLowerCase(),i="";return e.ENTITIES[n]?e.ENTITIES[n]:e.ENTITIES[r]?e.ENTITIES[r]:(n=r,"#"===n.charAt(0)&&("x"===n.charAt(1)?(n=n.slice(2),t=parseInt(n,16),i=t.toString(16)):(n=n.slice(1),t=parseInt(n,10),i=t.toString(10))),n=n.replace(/^0+/,""),isNaN(t)||i.toLowerCase()!==n?(I(e,"Invalid character entity"),"&"+e.entity+";"):String.fromCodePoint(t))}function H(e,t){"<"===t?(e.state=S.OPEN_WAKA,e.startTagPosition=e.position):x(t)||(I(e,"Non-whitespace before first tag."),e.textNode=t,e.state=S.TEXT)}function U(e,t){var n="";return t"===r?(M(t,"onsgmldeclaration",t.sgmlDecl),t.sgmlDecl="",t.state=S.TEXT):k(r)?(t.state=S.SGML_DECL_QUOTED,t.sgmlDecl+=r):t.sgmlDecl+=r;continue;case S.SGML_DECL_QUOTED:r===t.q&&(t.state=S.SGML_DECL,t.q=""),t.sgmlDecl+=r;continue;case S.DOCTYPE:">"===r?(t.state=S.TEXT,M(t,"ondoctype",t.doctype),t.doctype=!0):(t.doctype+=r,"["===r?t.state=S.DOCTYPE_DTD:k(r)&&(t.state=S.DOCTYPE_QUOTED,t.q=r));continue;case S.DOCTYPE_QUOTED:t.doctype+=r,r===t.q&&(t.q="",t.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:t.doctype+=r,"]"===r?t.state=S.DOCTYPE:k(r)&&(t.state=S.DOCTYPE_DTD_QUOTED,t.q=r);continue;case S.DOCTYPE_DTD_QUOTED:t.doctype+=r,r===t.q&&(t.state=S.DOCTYPE_DTD,t.q="");continue;case S.COMMENT:"-"===r?t.state=S.COMMENT_ENDING:t.comment+=r;continue;case S.COMMENT_ENDING:"-"===r?(t.state=S.COMMENT_ENDED,t.comment=O(t.opt,t.comment),t.comment&&M(t,"oncomment",t.comment),t.comment=""):(t.comment+="-"+r,t.state=S.COMMENT);continue;case S.COMMENT_ENDED:">"!==r?(I(t,"Malformed comment"),t.comment+="--"+r,t.state=S.COMMENT):t.state=S.TEXT;continue;case S.CDATA:"]"===r?t.state=S.CDATA_ENDING:t.cdata+=r;continue;case S.CDATA_ENDING:"]"===r?t.state=S.CDATA_ENDING_2:(t.cdata+="]"+r,t.state=S.CDATA);continue;case S.CDATA_ENDING_2:">"===r?(t.cdata&&M(t,"oncdata",t.cdata),M(t,"onclosecdata"),t.cdata="",t.state=S.TEXT):"]"===r?t.cdata+="]":(t.cdata+="]]"+r,t.state=S.CDATA);continue;case S.PROC_INST:"?"===r?t.state=S.PROC_INST_ENDING:x(r)?t.state=S.PROC_INST_BODY:t.procInstName+=r;continue;case S.PROC_INST_BODY:if(!t.procInstBody&&x(r))continue;"?"===r?t.state=S.PROC_INST_ENDING:t.procInstBody+=r;continue;case S.PROC_INST_ENDING:">"===r?(M(t,"onprocessinginstruction",{name:t.procInstName,body:t.procInstBody}),t.procInstName=t.procInstBody="",t.state=S.TEXT):(t.procInstBody+="?"+r,t.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:C(b,r)?t.tagName+=r:(R(t),">"===r?B(t):"/"===r?t.state=S.OPEN_TAG_SLASH:(x(r)||I(t,"Invalid character in tag name"),t.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:">"===r?(B(t,!0),_(t)):(I(t,"Forward-slash in opening tag not followed by >"),t.state=S.ATTRIB);continue;case S.ATTRIB:if(x(r))continue;">"===r?B(t):"/"===r?t.state=S.OPEN_TAG_SLASH:C(v,r)?(t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):I(t,"Invalid attribute name");continue;case S.ATTRIB_NAME:"="===r?t.state=S.ATTRIB_VALUE:">"===r?(I(t,"Attribute without value"),t.attribValue=t.attribName,z(t),B(t)):x(r)?t.state=S.ATTRIB_NAME_SAW_WHITE:C(b,r)?t.attribName+=r:I(t,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if("="===r)t.state=S.ATTRIB_VALUE;else{if(x(r))continue;I(t,"Attribute without value"),t.tag.attributes[t.attribName]="",t.attribValue="",M(t,"onattribute",{name:t.attribName,value:""}),t.attribName="",">"===r?B(t):C(v,r)?(t.attribName=r,t.state=S.ATTRIB_NAME):(I(t,"Invalid attribute name"),t.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(x(r))continue;k(r)?(t.q=r,t.state=S.ATTRIB_VALUE_QUOTED):(I(t,"Unquoted attribute value"),t.state=S.ATTRIB_VALUE_UNQUOTED,t.attribValue=r);continue;case S.ATTRIB_VALUE_QUOTED:if(r!==t.q){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_Q:t.attribValue+=r;continue}z(t),t.q="",t.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:x(r)?t.state=S.ATTRIB:">"===r?B(t):"/"===r?t.state=S.OPEN_TAG_SLASH:C(v,r)?(I(t,"No whitespace between attributes"),t.attribName=r,t.attribValue="",t.state=S.ATTRIB_NAME):I(t,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(!A(r)){"&"===r?t.state=S.ATTRIB_VALUE_ENTITY_U:t.attribValue+=r;continue}z(t),">"===r?B(t):t.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(t.tagName)">"===r?_(t):C(b,r)?t.tagName+=r:t.script?(t.script+=""===r?_(t):I(t,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var s,l;switch(t.state){case S.TEXT_ENTITY:s=S.TEXT,l="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:s=S.ATTRIB_VALUE_QUOTED,l="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:s=S.ATTRIB_VALUE_UNQUOTED,l="attribValue";break}";"===r?(t[l]+=j(t),t.entity="",t.state=s):C(t.entity.length?w:y,r)?t.entity+=r:(I(t,"Invalid character in entity name"),t[l]+="&"+t.entity+r,t.entity="",t.state=s);continue;default:throw new Error(t,"Unknown state: "+t.state)}}return t.position>=t.bufferCheckPosition&&a(t),t} /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */S=t.STATE,String.fromCodePoint||function(){var e=String.fromCharCode,t=Math.floor,n=function(){var n,r,i=16384,o=[],a=-1,s=arguments.length;if(!s)return"";var l="";while(++a1114111||t(c)!==c)throw RangeError("Invalid code point: "+c);c<=65535?o.push(c):(c-=65536,n=55296+(c>>10),r=c%1024+56320,o.push(n,r)),(a+1===s||o.length>i)&&(l+=e.apply(null,o),o.length=0)}return l};Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:n,configurable:!0,writable:!0}):String.fromCodePoint=n}()})(t)}).call(this,n("b639").Buffer)},a872:function(e,t,n){var r=n("e71d"),i=n("5841"),o=n("0a21"),a=n("19bf"),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype["delete"]=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"===typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=o(!0,{},e),"object"===typeof n){if("number"===typeof e["delete"]&&"number"===typeof n["delete"])return this.ops[t-1]={delete:n["delete"]+e["delete"]},this;if("number"===typeof n["delete"]&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!==typeof n))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"===typeof e.insert&&"string"===typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"===typeof e.retain&&"number"===typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"===typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){var i=e(r)?t:n;i.push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!==typeof t&&(t=1/0);var n=[],r=a.iterator(this.ops),i=0;while(i0&&n.next(o.retain-s)}var c=new l(r);while(t.hasNext()||n.hasNext())if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),h=t.next(u),d=n.next(u);if("number"===typeof d.retain){var f={};"number"===typeof h.retain?f.retain=u:f.insert=h.insert;var p=a.attributes.compose(h.attributes,d.attributes,"number"===typeof h.retain);if(p&&(f.attributes=p),c.push(f),!n.hasNext()&&i(c.ops[c.ops.length-1],f)){var m=new l(t.rest());return c.concat(m).chop()}}else"number"===typeof d["delete"]&&"number"===typeof h.retain&&c.push(d)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;var r=t===e?"on":"with";throw new Error("diff() called "+r+" non-document")})).join("")})),o=new l,c=r(n[0],n[1],t),u=a.iterator(this.ops),h=a.iterator(e.ops);return c.forEach((function(e){var t=e[1].length;while(t>0){var n=0;switch(e[0]){case r.INSERT:n=Math.min(h.peekLength(),t),o.push(h.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),o["delete"](n);break;case r.EQUAL:n=Math.min(u.peekLength(),h.peekLength(),t);var s=u.next(n),l=h.next(n);i(s.insert,l.insert)?o.retain(n,a.attributes.diff(s.attributes,l.attributes)):o.push(l)["delete"](n);break}t-=n}})),o.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";var n=a.iterator(this.ops),r=new l,i=0;while(n.hasNext()){if("insert"!==n.peekType())return;var o=n.peek(),s=a.length(o)-n.peekLength(),c="string"===typeof o.insert?o.insert.indexOf(t,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"===typeof e)return this.transformPosition(e,t);var n=a.iterator(this.ops),r=a.iterator(e.ops),i=new l;while(n.hasNext()||r.hasNext())if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var o=Math.min(n.peekLength(),r.peekLength()),s=n.next(o),c=r.next(o);if(s["delete"])continue;c["delete"]?i.push(c):i.retain(o,a.attributes.transform(s.attributes,c.attributes,t))}else i.retain(a.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;var n=a.iterator(this.ops),r=0;while(n.hasNext()&&r<=e){var i=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(rr(new Uint32Array(1))[0],a=[1e7]+-1e3+-4e3+-8e3+-1e11,s=()=>a.replace(/[018]/g,e=>(e^o()&15>>e/4).toString(16))},ac4f:function(e,t,n){e.exports=n.p+"img/xiangmuguanli.svg"},ad01:function(e,t,n){"use strict";n("63dc")},ad10:function(e,t,n){e.exports=n.p+"img/-_3.svg"},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},ad71:function(e,t,n){"use strict";(function(t,r){var i=n("966d");e.exports=k;var o,a=n("e3db");k.ReadableState=x;n("faa1").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n("429b"),c=n("8707").Buffer,u=t.Uint8Array||function(){};function h(e){return c.from(e)}function d(e){return c.isBuffer(e)||e instanceof u}var f=Object.create(n("3a7c"));f.inherits=n("3fb5");var p=n(1),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var g,v=n("5e1a"),b=n("4681");f.inherits(k,l);var y=["error","close","destroy","pause","resume"];function w(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function x(e,t){o=o||n("b19a"),e=e||{};var r=t instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||(g=n("7d72").StringDecoder),this.decoder=new g(e.encoding),this.encoding=e.encoding)}function k(e){if(o=o||n("b19a"),!(this instanceof k))return new k(e);this._readableState=new x(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function A(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,L(e,a)):(i||(o=E(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=h(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):C(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?C(e,a,t,!1):P(e,a)):C(e,a,t,!1))):r||(a.reading=!1));return S(a)}function C(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),P(e,t)}function E(e,t){var n;return d(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function S(e){return!e.ended&&(e.needReadable||e.length=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function M(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=N(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function L(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,O(e)}}function O(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(D,e):D(e))}function D(e){m("emit readable"),e.emit("readable"),_(e)}function P(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(I,e,t))}function I(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=H(e,t.buffer,t.decoder),n);var n}function H(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function q(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),e-=a,0===e){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function G(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(W,t,e))}function W(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function V(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?G(this):O(this),null;if(e=M(e,t),0===e&&t.ended)return 0===t.length&&G(this),null;var r,i=t.needReadable;return m("need readable",i),(0===t.length||t.length-e0?j(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&G(this)),null!==r&&this.emit("data",r),r},k.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},k.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,m("pipe count=%d opts=%j",o.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,l=a?u:x;function c(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,f())}function u(){m("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",c);var h=R(n);e.on("drain",h);var d=!1;function f(){m("cleanup"),e.removeListener("close",b),e.removeListener("finish",y),e.removeListener("drain",h),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",x),n.removeListener("data",g),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h()}var p=!1;function g(t){m("ondata"),p=!1;var r=e.write(t);!1!==r||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==V(o.pipes,e))&&!d&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(t){m("onerror",t),x(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",y),x()}function y(){m("onfinish"),e.removeListener("close",b),x()}function x(){m("unpipe"),n.unpipe(e)}return n.on("data",g),w(e,"error",v),e.once("close",b),e.once("finish",y),e.emit("pipe",n),o.flowing||(m("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o{const e=o["a"]();null!==this.getLocalState()&&c/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const t=[];this.meta.forEach((n,r)=>{r!==this.clientID&&c<=e-n.lastUpdated&&this.states.has(r)&&t.push(r)}),t.length>0&&h(this,t,"timeout")},a["d"](c/10)),e.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(e){const t=this.clientID,n=this.meta.get(t),r=void 0===n?0:n.clock+1,i=this.states.get(t);null===e?this.states.delete(t):this.states.set(t,e),this.meta.set(t,{clock:r,lastUpdated:o["a"]()});const a=[],s=[],c=[],u=[];null===e?u.push(t):null==i?null!=e&&a.push(t):(s.push(t),l["b"](i,e)||c.push(t)),(a.length>0||c.length>0||u.length>0)&&this.emit("change",[{added:a,updated:c,removed:u},"local"]),this.emit("update",[{added:a,updated:s,removed:u},"local"])}setLocalStateField(e,t){const n=this.getLocalState();null!==n&&this.setLocalState({...n,[e]:t})}getStates(){return this.states}}const h=(e,t,n)=>{const r=[];for(let i=0;i0&&(e.emit("change",[{added:[],updated:[],removed:r},n]),e.emit("update",[{added:[],updated:[],removed:r},n]))},d=(e,t,n=e.states)=>{const i=t.length,o=r["e"]();r["n"](o,i);for(let a=0;a{const r=i["e"](t),a=o["a"](),s=[],c=[],u=[],h=[],d=i["k"](r);for(let o=0;o0||u.length>0||h.length>0)&&e.emit("change",[{added:s,updated:u,removed:h},n]),(s.length>0||c.length>0||h.length>0)&&e.emit("update",[{added:s,updated:c,removed:h},n])}},b291:function(e,t,n){e.exports=n.p+"img/shangdian.svg"},b38c:function(e,t,n){"use strict";var r=n("3f29"),i=r("%Object.defineProperty%",!0),o=function(){if(i)try{return i({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==i([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},b466:function(e,t,n){e.exports=n.p+"img/putao.svg"},b467:function(e,t,n){e.exports=n.p+"img/regou.svg"},b46e:function(e,t,n){e.exports=n.p+"img/hushijie.svg"},b47d:function(e,t,n){e.exports=n.p+"img/verticalTimeline.png"},b51b:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("81ad"),i=n("04a8"),o=n("fa98");const a=1200,s=2500,l=3e4,c=e=>{if(e.shouldConnect&&null===e.ws){const t=new WebSocket(e.url),n=e.binaryType;let r=null;n&&(t.binaryType=n),e.ws=t,e.connecting=!0,e.connected=!1,t.onmessage=t=>{e.lastMessageReceived=i["a"]();const n=t.data,o="string"===typeof n?JSON.parse(n):n;o&&"pong"===o.type&&(clearTimeout(r),r=setTimeout(h,l/2)),e.emit("message",[o,e])};const u=t=>{null!==e.ws&&(e.ws=null,e.connecting=!1,e.connected?(e.connected=!1,e.emit("disconnect",[{type:"disconnect",error:t},e])):e.unsuccessfulReconnects++,setTimeout(c,o["h"](o["f"](e.unsuccessfulReconnects+1)*a,s),e)),clearTimeout(r)},h=()=>{e.ws===t&&e.send({type:"ping"})};t.onclose=()=>u(null),t.onerror=e=>u(e),t.onopen=()=>{e.lastMessageReceived=i["a"](),e.connecting=!1,e.connected=!0,e.unsuccessfulReconnects=0,e.emit("connect",[{type:"connect"},e]),r=setTimeout(h,l/2)}}};class u extends r["a"]{constructor(e,{binaryType:t}={}){super(),this.url=e,this.ws=null,this.binaryType=t||null,this.connected=!1,this.connecting=!1,this.unsuccessfulReconnects=0,this.lastMessageReceived=0,this.shouldConnect=!0,this._checkInterval=setInterval(()=>{this.connected&&l{const t=[],n=[];let r=0;for(;r{const n=v[b],r=o["a"]("log"),s=null!==r&&("*"===r||"true"===r||new RegExp(r,"gi").test(t));return b=(b+1)%v.length,t+=": ",s?(...r)=>{const o=i["a"](),a=o-y;y=o,e(n,t,m,...r.map(e=>"string"===typeof e||"symbol"===typeof e?e:JSON.stringify(e)),n," +"+a+"ms")}:a["e"]}},b639:function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. @@ -44,14 +44,14 @@ t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,d= * @author Feross Aboukhadijeh * @license MIT */ -var r=n("1fb5"),i=n("9152"),o=n("e3db");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return z(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function k(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function A(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return I(r)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return d(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),h=0;hi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return N(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function I(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function H(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function U(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function q(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(e,t,n,r,o){return o||q(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,o){return o||q(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||_(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||_(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||_(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||_(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||_(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;j(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):H(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):H(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):H(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):H(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return G(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return G(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function $(e){return r.toByteArray(Y(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b645:function(e,t,n){e.exports=n.p+"img/blackHumour.jpg"},b684:function(e,t,n){e.exports=n.p+"img/-_13.svg"},b75f:function(e,t,n){e.exports=n.p+"img/a-18-xiguan.svg"},b765:function(e,t,n){e.exports=n.p+"img/-_9.svg"},b7ba:function(e,t,n){var r=n("10ad"),i=n("fb24"),o=n("9826"),a=n("eec5");e.exports={xml2js:r,xml2json:i,js2xml:o,json2xml:a}},b7d1:function(e,t,n){(function(t){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!t.localStorage)return!1}catch(r){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("c8ba"))},b866:function(e,t,n){},b8c0:function(e,t,n){},b8fe:function(e,t,n){e.exports=n.p+"img/-_6.svg"},b923:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return de})),n.d(t,"f",(function(){return q})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return Z})),n.d(t,"i",(function(){return P})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return O})),n.d(t,"l",(function(){return K}));var r=n("6f27");const i=65535,o=Math.pow(2,16);function a(e,t){return e+t*o}function s(e){return e&i}function l(e){return(e-(e&i))/o}const c=1,u=2,h=4,d=8;class f{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&d)>0}get deletedBefore(){return(this.delInfo&(c|h))>0}get deletedAfter(){return(this.delInfo&(u|h))>0}get deletedAcross(){return(this.delInfo&h)>0}}class p{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&p.empty)return p.empty}recover(e){let t=0,n=s(e);if(!this.inverted)for(let r=0;re)break;let p=this.ranges[s+i],m=this.ranges[s+o],g=l+p;if(e<=g){let i=p?e==l?-1:e==g?1:t:t,o=l+r+(i<0?0:m);if(n)return o;let v=e==(t<0?l:g)?null:a(s/3,e-l),b=e==l?u:e==g?c:h;return(t<0?e!=l:e!=g)&&(b|=d),new f(o,b,v)}r+=m-p}return n?e+r:new f(e+r,0,null)}touches(e,t){let n=0,r=s(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;ae)break;let s=this.ranges[a+i],l=t+s;if(e<=l&&a==3*r)return!0;n+=this.ranges[a+o]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;ni&&te.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return b.fromReplace(e,this.from,this.to,o)}invert(){return new x(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new w(t.pos,n.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}v.jsonID("addMark",w);class x extends v{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r["Slice"](y(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return b.fromReplace(e,this.from,this.to,n)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new x(t.pos,n.pos,this.mark)}merge(e){return e instanceof x&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new x(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new x(t.from,t.to,e.markFromJSON(t.mark))}}v.jsonID("removeMark",x);class k extends v{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return b.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return b.fromReplace(e,this.pos,this.pos+1,new r["Slice"](r["Fragment"].from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;nn.pos?null:new E(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new E(t.from,t.to,t.gapFrom,t.gapTo,r["Slice"].fromJSON(e,t.slice),t.insert,!!t.structure)}}function S(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;while(i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));while(i>0){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function T(e,t,n,r){let i,o,a=[],s=[];e.doc.nodesBetween(t,n,(e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,t),h=Math.min(l+e.nodeSize,n),d=r.addToSet(u);for(let e=0;ee.step(t)),s.forEach(t=>e.step(t))}function N(e,t,n,i){let o=[],a=0;e.doc.nodesBetween(t,n,(e,s)=>{if(!e.isInline)return;a++;let l=null;if(i instanceof r["MarkType"]){let t,n=e.marks;while(t=i.isInSet(n))(l||(l=[])).push(t),n=t.removeFromSet(n)}else i?i.isInSet(e.marks)&&(l=[i]):l=e.marks;if(l&&l.length){let r=Math.min(s+e.nodeSize,n);for(let e=0;ee.step(new x(t.from,t.to,t.style)))}function M(e,t,n,i=n.contentMatch){let o=e.doc.nodeAt(t),a=[],s=t+1;for(let l=0;l=0;r--)e.step(a[r])}function L(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function O(e){let t=e.parent,n=t.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let t=e.$from.node(r),i=e.$from.index(r),o=e.$to.indexAfter(r);if(rn;m--)g||i.index(m)>0?(g=!0,h=r["Fragment"].from(i.node(m).copy(h)),d++):c--;let f=r["Fragment"].empty,p=0;for(let m=a,g=!1;m>n;m--)g||o.after(m+1)=0;s--){if(i.size){let e=n[s].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r["Fragment"].from(n[s].type.create(n[s].attrs,i))}let o=t.start,a=t.end;e.step(new E(o,a,o,a,new r["Slice"](i,0,0),n.length,!0))}function B(e,t,n,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{if(t.isTextblock&&!t.hasMarkup(i,o)&&_(e.doc,e.mapping.slice(a).map(n),i)){e.clearIncompatible(e.mapping.slice(a).map(n,1),i);let s=e.mapping.slice(a),l=s.map(n,1),c=s.map(n+t.nodeSize,1);return e.step(new E(l,c,l+1,c-1,new r["Slice"](r["Fragment"].from(i.create(o,null,t.marks)),0,0),1,!0)),!1}})}function _(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function j(e,t,n,i,o){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let s=n.create(i,null,o||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,s);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new E(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new r["Slice"](r["Fragment"].from(s),0,0),1,!0))}function H(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let e=i.node(c),t=i.index(c);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),o=r&&r[u]||e;if(o!=e&&(n=n.replaceChild(0,o.type.create(o.attrs))),!e.canReplace(t+1,e.childCount)||!o.type.validContent(n))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function U(e,t,n=1,i){let o=e.doc.resolve(t),a=r["Fragment"].empty,s=r["Fragment"].empty;for(let l=o.depth,c=o.depth-n,u=n-1;l>c;l--,u--){a=r["Fragment"].from(o.node(l).copy(a));let e=i&&i[u];s=r["Fragment"].from(e?e.type.create(e.attrs,s):o.node(l).copy(s))}e.step(new C(t,t,new r["Slice"](a.append(s),n,n),!0))}function q(e,t){let n=e.resolve(t),r=n.index();return G(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function G(e,t){return!(!e||!t||e.isLeaf||!e.canAppend(t))}function W(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let e,o,a=r.index(i);if(i==r.depth?(e=r.nodeBefore,o=r.nodeAfter):n>0?(e=r.node(i+1),a++,o=r.node(i).maybeChild(a)):(e=r.node(i).maybeChild(a-1),o=r.node(i+1)),e&&!e.isTextblock&&G(e,o)&&r.node(i).canReplace(a,a+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}}function V(e,t,n){let i=new C(t-n,t+n,r["Slice"].empty,!0);e.step(i)}function Y(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let i=r.depth-1;i>=0;i--){let e=r.index(i);if(r.node(i).canReplaceWith(e,e,n))return r.before(i+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let e=r.indexAfter(i);if(r.node(i).canReplaceWith(e,e,n))return r.after(i+1);if(e=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),a=r.node(e),s=!1;if(1==o)s=a.canReplace(n,n,i);else{let e=a.contentMatchAt(n).findWrapping(i.firstChild.type);s=e&&a.canReplaceWith(n,n,e[0])}if(s)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function K(e,t,n=t,i=r["Slice"].empty){if(t==n&&!i.size)return null;let o=e.resolve(t),a=e.resolve(n);return X(o,a,i)?new C(t,n,i):new J(o,a,i).fit()}function X(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}v.jsonID("replaceAround",E);class J{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r["Fragment"].empty;for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}for(let i=e.depth;i>0;i--)this.placed=r["Fragment"].from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){while(this.unplaced.size){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let o=this.placed,a=n.depth,s=i.depth;while(a&&s&&1==o.childCount)o=o.firstChild.content,a--,s--;let l=new r["Slice"](o,a,s);return e>-1?new E(n.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||n.pos!=this.$to.pos?new C(n.pos,i.pos,l):null}findFittable(){for(let e=1;e<=2;e++)for(let t=this.unplaced.openStart;t>=0;t--){let n,i=null;t?(i=ee(this.unplaced.content,t-1).firstChild,n=i.content):n=this.unplaced.content;let o=n.firstChild;for(let a=this.depth;a>=0;a--){let n,{type:s,match:l}=this.frontier[a],c=null;if(1==e&&(o?l.matchType(o.type)||(c=l.fillBefore(r["Fragment"].from(o),!1)):i&&s.compatibleContent(i.type)))return{sliceDepth:t,frontierDepth:a,parent:i,inject:c};if(2==e&&o&&(n=l.findWrapping(o.type)))return{sliceDepth:t,frontierDepth:a,parent:i,wrap:n};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=ee(e,t);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new r["Slice"](e,t+1,Math.max(n,i.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=ee(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new r["Slice"](Q(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new r["Slice"](Q(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:i,wrap:o}){while(this.depth>t)this.closeFrontierNode();if(o)for(let r=0;r1||0==l||e.content.size)&&(h=t,u.push(te(e.mark(d.allowedMarks(e.marks)),1==c?l:0,c==s.childCount?f:-1)))}let p=c==s.childCount;p||(f=-1),this.placed=$(this.placed,t,r["Fragment"].from(u)),this.frontier[t].match=h,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let r=0,m=s;r1&&r==this.$to.end(--n))++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t=0;n--){let{match:t,type:r}=this.frontier[n],i=ne(e,n,r,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;while(this.depth>t.depth)this.closeFrontierNode();t.fit.childCount&&(this.placed=$(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=$(this.placed,this.depth,r["Fragment"].from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop(),t=e.match.fillBefore(r["Fragment"].empty,!0);t.childCount&&(this.placed=$(this.placed,this.frontier.length,t))}}function Q(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Q(e.firstChild.content,t-1,n)))}function $(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy($(e.lastChild.content,t-1,n)))}function ee(e,t){for(let n=0;n1&&(i=i.replaceChild(0,te(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(r["Fragment"].empty,!0)))),e.copy(i)}function ne(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!re(n,o.content,a)?s:null}function re(e,t,n){for(let r=n;r0;r--,f--){let e=o.node(r).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;s.indexOf(r)>-1?l=r:o.before(r)==f&&s.splice(1,0,-r)}let c=s.indexOf(l),u=[],h=i.openStart;for(let r=i.content,f=0;;f++){let e=r.firstChild;if(u.push(e),f==i.openStart)break;r=e.content}for(let r=h-1;r>=0;r--){let e=u[r].type,t=ie(e);if(t&&o.node(c).type!=e)h=r;else if(t||!e.isTextblock)break}for(let f=i.openStart;f>=0;f--){let t=(f+h+1)%(i.openStart+1),l=u[t];if(l)for(let u=0;u=0;r--){if(e.replace(t,n,i),e.steps.length>d)break;let l=s[r];l<0||(t=o.before(l),n=a.after(l))}}function ae(e,t,n,i,o){if(ti){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r["Fragment"].empty,!0))}return e}function se(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=Y(e.doc,t,i.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new r["Slice"](r["Fragment"].from(i),0,0))}function le(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=ce(r,i);for(let a=0;a0&&(n||r.node(t-1).canReplace(r.index(t-1),i.indexAfter(t-1))))return e.delete(r.before(t),i.after(t))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a)return e.delete(r.before(a),n);e.delete(t,n)}function ce(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(rt.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}class ue extends v{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return b.fail("No node at attribute step's position");let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return b.fromReplace(e,this.pos,this.pos+1,new r["Slice"](r["Fragment"].from(i),0,t.isLeaf?0:1))}getMap(){return p.empty}invert(e){return new ue(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ue(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new ue(t.pos,t.attr,t.value)}}v.jsonID("attr",ue);let he=class extends Error{};he=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},he.prototype=Object.create(Error.prototype),he.prototype.constructor=he,he.prototype.name="TransformError";class de{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new he(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r["Slice"].empty){let i=K(this.doc,e,t,n);return i&&this.step(i),this}replaceWith(e,t,n){return this.replace(e,t,new r["Slice"](r["Fragment"].from(n),0,0))}delete(e,t){return this.replace(e,t,r["Slice"].empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return oe(this,e,t,n),this}replaceRangeWith(e,t,n){return se(this,e,t,n),this}deleteRange(e,t){return le(this,e,t),this}lift(e,t){return D(this,e,t),this}join(e,t=1){return V(this,e,t),this}wrap(e,t){return z(this,e,t),this}setBlockType(e,t=e,n,r=null){return B(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r=[]){return j(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new ue(e,t,n)),this}addNodeMark(e,t){return this.step(new k(e,t)),this}removeNodeMark(e,t){if(!(t instanceof r["Mark"])){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t=t.isInSet(n.marks),!t)return this}return this.step(new A(e,t)),this}split(e,t=1,n){return U(this,e,t,n),this}addMark(e,t,n){return T(this,e,t,n),this}removeMark(e,t,n){return N(this,e,t,n),this}clearIncompatible(e,t,n){return M(this,e,t,n),this}}},b93d:function(e,t,n){e.exports=n.p+"img/chongdian.svg"},b980:function(e,t,n){var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},b9e3:function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},ba0f:function(e,t,n){e.exports=n.p+"img/qingrenjie.svg"},bbea:function(e,t,n){"use strict";var r=n("1802"),i=n("cf4b"),o=n("77be");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},bc06:function(e,t,n){e.exports=n.p+"img/redSpirit.jpg"},bce0:function(e,t,n){e.exports=n.p+"img/tiantianquan.svg"},bd3c:function(e,t,n){e.exports=n.p+"img/jiaoshijie.svg"},bd4d:function(e,t,n){e.exports=n.p+"img/a-12-huxi.svg"},be45:function(e,t,n){e.exports=n.p+"img/youlechangsuo.svg"},be49:function(e,t,n){e.exports=n.p+"img/orangeJuice.jpg"},bea9:function(e,t,n){e.exports=n.p+"img/catalogOrganization.png"},bf26:function(e,t,n){e.exports=n.p+"img/ziyuan_7.svg"},bf32:function(e,t,n){"use strict";n("ae77")},c030:function(e,t,n){"use strict";var r=n("1a89"),i=n("6632"),o=n("59ec"),a=n("9440"),s=n("1936"),l=n("8300"),c=n("8af8"),u=r.RangeError,h=r.Int8Array,d=h&&h.prototype,f=d&&d.set,p=o.aTypedArray,m=o.exportTypedArrayMethod,g=!c((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),v=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new h(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(g)return i(f,this,n,t);var r=this.length,o=a(n),c=0;if(o+t>r)throw new u("Wrong length");while(ce[e.length-1],i=(e,t)=>{for(let n=0;n{for(let n=0;n{for(let n=0;ne.length===t.length&&a(e,(e,n)=>e===t[n]),c=(e,t)=>{const n=new Array(e);for(let r=0;r{const n=Array(e.length);for(let r=0;re.toLowerCase()),a=/^\s*/g,s=e=>e.replace(a,""),l=/([A-Z])/g,c=(e,t)=>s(e.replace(l,e=>`${t}${o(e)}`)),u=e=>{const t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let i=0;ih.encode(e),f=h?d:u,p=e=>{let t=e.length,n="",r=0;while(t>0){const i=t<1e4?t:1e4,o=e.subarray(r,r+i);r+=i,n+=String.fromCodePoint.apply(null,o),t-=i}return decodeURIComponent(escape(n))};let m="undefined"===typeof TextDecoder?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});m&&1===m.decode(new Uint8Array).length&&(m=null);const g=e=>m.decode(e),v=m?g:p,b=(e,t)=>r["h"](t,()=>e).join("")},ca39:function(e,t,n){e.exports=n.p+"img/a-12-huxi.svg"},ca50:function(e,t,n){e.exports=n.p+"img/celianggongju.svg"},cace:function(e,t,n){e.exports=n.p+"img/xianweijing.svg"},cacf:function(e,t,n){e.exports=n.p+"img/diqiuyi.svg"},cb07:function(e,t,n){e.exports=n.p+"img/lemonBubbles.jpg"},cbe8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n("fa98"),i=n("23dd");const o=Number.MAX_SAFE_INTEGER,a=(Number.MIN_SAFE_INTEGER,i["i"],i["j"],Number.isInteger||(e=>"number"===typeof e&&isFinite(e)&&r["d"](e)===e));Number.isNaN,Number.parseInt},cbee:function(e,t,n){"use strict";var r=n("59ec"),i=n("9440"),o=n("ed00"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=i(t),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},cbf7:function(e,t,n){e.exports=n.p+"img/boluo.svg"},cd5f:function(e,t,n){e.exports=n.p+"img/ziyuan_3.svg"},ce2e:function(e,t,n){"use strict";var r=n("5e8c"),i=n("feb8"),o=n("bbea");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},ce80:function(e,t,n){"use strict";n("98eb")},ce8e:function(e,t,n){"use strict";var r=n("ae21"),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=function(e){return"function"===typeof e&&"[object Function]"===o.call(e)},c=n("b38c")(),u=s&&c,h=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if(!l(r)||!r())return;u?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},d=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s1?arguments[1]:void 0)}))},d4e4:function(e,t,n){e.exports=n.p+"img/a-9-tizhongcheng.svg"},d5e5:function(e,t,n){e.exports=n.p+"img/a-2-kouzhao.svg"},d67c:function(e,t,n){e.exports=n.p+"img/shuxie.svg"},d7f0:function(e,t,n){"use strict";var r=n("e731").functionsHaveConfigurableNames(),i=Object,o=TypeError;e.exports=function(){if(null!=this&&this!==i(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},d852:function(e,t,n){},d875:function(e,t,n){e.exports=n.p+"img/xueshimao.svg"},d898:function(e,t,n){"use strict";var r=n("feb8"),i=n("f770");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},d9e2:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=i[s],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=a(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},h=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},da5b:function(e,t,n){"use strict";n("282d")},da5e:function(e,t,n){e.exports=n.p+"img/a-17-zhusheqi.svg"},da66:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return b}));var r=n("7bbc"),i=n("04f0");class o{constructor(e,t){this.left=e,this.right=t}}const a=(e,t)=>new o(e,t);var s=n("1651");const l="undefined"!==typeof document?document:{},c=("undefined"!==typeof DOMParser&&new DOMParser,e=>s["d"](e,(e,t)=>`${t}:${e};`).join(""));l.ELEMENT_NODE,l.TEXT_NODE,l.CDATA_SECTION_NODE,l.COMMENT_NODE,l.DOCUMENT_NODE,l.DOCUMENT_TYPE_NODE,l.DOCUMENT_FRAGMENT_NODE,JSON.stringify,JSON.parse;const u=e=>class{constructor(e){this._=e}destroy(){e(this._)}};u(clearTimeout),u(clearInterval),u(e=>"undefined"!==typeof requestAnimationFrame&&cancelAnimationFrame(e)),u(e=>"undefined"!==typeof cancelIdleCallback&&cancelIdleCallback(e));n("fa98");var h=n("b5e5");const d={[h["b"]]:a("font-weight","bold"),[h["h"]]:a("font-weight","normal"),[h["a"]]:a("color","blue"),[h["c"]]:a("color","green"),[h["d"]]:a("color","grey"),[h["g"]]:a("color","red"),[h["f"]]:a("color","purple"),[h["e"]]:a("color","orange"),[h["i"]]:a("color","black")},f=e=>{const t=[],n=[],r=s["c"]();let i=[],o=0;for(;o0||e.length>0?(t.push("%c"+i),n.push(e)):t.push(i)}}}for(o>0&&(i=n,i.unshift(t.join("")));o{console.log(...p(e)),v.forEach(t=>t.print(e))},g=(...e)=>{console.warn(...p(e)),e.unshift(h["e"]),v.forEach(t=>t.print(e))},v=i["a"]();const b=e=>h["k"](m,e)},da72:function(e,t,n){e.exports=n.p+"img/chizi.svg"},daf1:function(e,t,n){e.exports=n.p+"img/oreo.jpg"},db91:function(e,t,n){e.exports=n.p+"img/ziyuan_15.svg"},dbc4:function(e,t,n){e.exports=n.p+"img/coffee.jpg"},dbfc:function(e,t,n){e.exports=n.p+"img/yuyanfanyi.svg"},dc14:function(e,t,n){"use strict";(function(t,r){var i=n("966d");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){F(t,e)}}e.exports=y;var a,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=b;var l=Object.create(n("3a7c"));l.inherits=n("3fb5");var c={deprecate:n("b7d1")},u=n("429b"),h=n("8707").Buffer,d=r.Uint8Array||function(){};function f(e){return h.from(e)}function p(e){return h.isBuffer(e)||e instanceof d}var m,g=n("4681");function v(){}function b(e,t){a=a||n("b19a"),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){T(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(e){if(a=a||n("b19a"),!m.call(y,this)&&!(this instanceof a))return new y(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),u.call(this)}function w(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}function x(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}function k(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=h.from(t,n)),t}function A(e,t,n,r,i,o){if(!n){var a=k(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||R(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("4362"),n("c8ba"))},dcfb:function(e,t,n){"use strict";n.d(t,"b",(function(){return Z})),n.d(t,"a",(function(){return K}));var r=Uint8Array,i=Uint16Array,o=Uint32Array,a=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),s=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new i(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&v)<<1;b=(52428&b)>>>2|(13107&b)<<2,b=(61680&b)>>>4|(3855&b)<<4,g[v]=((65280&b)>>>8|(255&b)<<8)>>>1}var y=function(e,t,n){for(var r=e.length,o=0,a=new i(t);o>>c]=u}else for(s=new i(r),o=0;o>>15-e[o];return s},w=new r(288);for(v=0;v<144;++v)w[v]=8;for(v=144;v<256;++v)w[v]=9;for(v=256;v<280;++v)w[v]=7;for(v=280;v<288;++v)w[v]=8;var x=new r(32);for(v=0;v<32;++v)x[v]=5;var k=y(w,9,0),A=y(w,9,1),C=y(x,5,0),E=y(x,5,1),S=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},T=function(e,t,n){var r=t/8>>0;return(e[r]|e[r+1]<<8)>>>(7&t)&n},N=function(e,t){var n=t/8>>0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},M=function(e){return(e/8>>0)+(7&e&&1)},L=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var a=new(e instanceof i?i:e instanceof o?o:r)(n-t);return a.set(e.subarray(t,n)),a},O=function(e,t,n){var i=e.length,o=!t||n,c=!n||n.i;n||(n={}),t||(t=new r(3*i));var u=function(e){var n=t.length;if(e>n){var i=new r(Math.max(2*n,e));i.set(t),t=i}},d=n.f||0,f=n.p||0,m=n.b||0,g=n.l,v=n.d,b=n.m,w=n.n,x=8*i;do{if(!g){n.f=d=T(e,f,1);var k=T(e,f+1,3);if(f+=3,!k){var C=M(f)+4,O=e[C-4]|e[C-3]<<8,D=C+O;if(D>i){if(c)throw"unexpected EOF";break}o&&u(m+O),t.set(e.subarray(C,D),m),n.b=m+=O,n.p=f=8*D;continue}if(1==k)g=A,v=E,b=9,w=5;else{if(2!=k)throw"invalid block type";var P=T(e,f,31)+257,I=T(e,f+10,15)+4,R=P+T(e,f+5,31)+1;f+=14;for(var F=new r(R),z=new r(19),B=0;Bx)break;var H=y(z,_,1);for(B=0;B>>4;if(C<16)F[B++]=C;else{var q=0,G=0;16==C?(G=3+T(e,f,3),f+=2,q=F[B-1]):17==C?(G=3+T(e,f,7),f+=3):18==C&&(G=11+T(e,f,127),f+=7);while(G--)F[B++]=q}}var W=F.subarray(0,P),V=F.subarray(P);b=S(W),w=S(V),g=y(W,b,1),v=y(V,w,1)}if(f>x)throw"unexpected EOF"}o&&u(m+131072);var Y=(1<>>4;if(f+=15&q,f>x)throw"unexpected EOF";if(!q)throw"invalid length/literal";if(X<256)t[m++]=X;else{if(256==X){g=null;break}var J=X-254;if(X>264){B=X-257;var Q=a[B];J=T(e,f,(1<>>4;if(!$)throw"invalid distance";f+=15&$;V=p[ee];if(ee>3){Q=s[ee];V+=N(e,f)&(1<x)throw"unexpected EOF";o&&u(m+131072);for(var te=m+J;m>0;e[r]|=n,e[r+1]|=n>>>8},P=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},I=function(e,t){for(var n=[],o=0;op&&(p=s[o].s);var m=new i(p+1),g=R(n[d-1],m,0);if(g>t){o=0;var v=0,b=g-t,y=1<t))break;v+=y-(1<>>=b;while(v>0){var x=s[o].s;m[x]=0&&v;--o){var k=s[o].s;m[k]==t&&(--m[k],++v)}g=t}return[new r(m),g]},R=function(e,t,n){return-1==e.s?Math.max(R(e.l,t,n+1),R(e.r,t,n+1)):t[e.s]=n},F=function(e){var t=e.length;while(t&&!e[--t]);for(var n=new i(++t),r=0,o=e[0],a=1,s=function(e){n[r++]=e},l=1;l<=t;++l)if(e[l]==o&&l!=t)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}while(a--)s(o);a=1,o=e[l]}return[n.subarray(0,r),t]},z=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o4&&!H[l[q-1]];--q);var G,W,V,Y,Z=f+5<<3,K=z(o,w)+z(c,x)+u,X=z(o,g)+z(c,A)+u+14+3*q+z(R,H)+(2*R[16]+3*R[17]+7*R[18]);if(Z<=K&&Z<=X)return B(t,p,e.subarray(d,d+f));if(D(t,p,1+(X15&&(D(t,p,ee[_]>>>5&127),p+=ee[_]>>>12)}}}else G=k,W=w,V=C,Y=x;for(_=0;_255){te=r[_]>>>18&31;P(t,p,G[te+257]),p+=W[te+257],te>7&&(D(t,p,r[_]>>>23&31),p+=a[te]);var ne=31&r[_];P(t,p,V[ne]),p+=Y[ne],ne>3&&(P(t,p,r[_]>>>5&8191),p+=s[ne])}else P(t,p,G[r[_]]),p+=W[r[_]];return P(t,p,G[256]),p+W[256]},j=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),H=new r(0),U=function(e,t,n,l,c,u){var h=e.length,f=new r(l+h+5*(1+Math.floor(h/7e3))+c),p=f.subarray(l,f.length-c),g=0;if(!t||h<8)for(var v=0;v<=h;v+=65535){var b=v+65535;b>>13,x=8191&y,k=(1<7e3||R>24576)&&W>423){g=_(e,p,0,N,O,D,I,R,z,v-z,g),R=P=I=0,z=v;for(var V=0;V<286;++V)O[V]=0;for(V=0;V<30;++V)D[V]=0}var Y=2,Z=0,K=x,X=q-G&32767;if(W>2&&U==T(v-X)){var J=Math.min(w,W)-1,Q=Math.min(32767,v),$=Math.min(258,W);while(X<=Q&&--K&&q!=G){if(e[v+Y]==e[v+Y-X]){for(var ee=0;ee<$&&e[v+ee]==e[v+ee-X];++ee);if(ee>Y){if(Y=ee,Z=X,ee>J)break;var te=Math.min(X,ee-2),ne=0;for(V=0;Vne&&(ne=oe,G=re)}}}q=G,G=A[q],X+=q-G+32768&32767}}if(Z){N[R++]=268435456|d[Y]<<18|m[Z];var ae=31&d[Y],se=31&m[Z];I+=a[ae]+s[se],++O[257+ae],++D[se],F=v+Y,++P}else N[R++]=e[v],++O[e[v]]}}g=_(e,p,u,N,O,D,I,R,z,v-z,g),u||(g=B(p,g,H))}return L(f,0,l+M(g)+c)},q=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},G=function(e,t,n,r,i){return U(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},W=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},V=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},Y=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function Z(e,t){void 0===t&&(t={});var n=q();n.p(e);var r=G(e,t,2,4);return V(r,t),W(r,r.length-4,n.d()),r}function K(e,t){return O((Y(e),e.subarray(2,-4)),t)}},dd87:function(e,t,n){"use strict";n("9ddb")},ddbb:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n("41af");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},de62:function(e,t,n){e.exports=n.p+"img/huiyiguanli.svg"},ded7:function(e,t,n){e.exports=n.p+"img/yuandan.svg"},df54:function(e,t,n){"use strict";var r=n("ce8e"),i=n("5d66"),o=n("4a66"),a=n("1cd3"),s=n("99da"),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},dfe7:function(e,t,n){},e00a:function(e,t,n){e.exports=n.p+"img/a-shu4.svg"},e114:function(e,t,n){e.exports=n.p+"img/qingxiujiashenqing.svg"},e217:function(e,t,n){(function(t){var n;(function(t){e.exports=t()})((function(){var e=Math.floor,r=Math.abs,i=Math.pow;return function(){function e(t,r,i){function o(s,l){if(!r[s]){if(!t[s]){var c="function"==typeof n&&n;if(!l&&c)return n(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[s]={exports:{}};t[s][0].call(h.exports,(function(e){var n=t[s][1][e];return o(n||e)}),h,h.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof n&&n,s=0;s>16,l[c++]=255&t>>8,l[c++]=255&t;return 2===s&&(t=u[e.charCodeAt(n)]<<2|u[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=u[e.charCodeAt(n)]<<10|u[e.charCodeAt(n+1)]<<4|u[e.charCodeAt(n+2)]>>2,l[c++]=255&t>>8,l[c++]=255&t),l}function a(e){return c[63&e>>18]+c[63&e>>12]+c[63&e>>6]+c[63&e]}function s(e,t,n){for(var r,i=[],o=t;ol?l:a+o));return 1===r?(t=e[n-1],i.push(c[t>>2]+c[63&t<<4]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(c[t>>10]+c[63&t>>4]+c[63&t<<2]+"=")),i.join("")}n.byteLength=function(e){var t=r(e),n=t[0],i=t[1];return 3*(n+i)/4-i},n.toByteArray=o,n.fromByteArray=l;for(var c=[],u=[],h="undefined"==typeof Uint8Array?Array:Uint8Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,p=d.length;f=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return z(this,t,n);case"utf8":case"utf-8":return D(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return F(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function k(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function A(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:C(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function C(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return I(r)}t.Buffer=c,t.SlowBuffer=y,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return d(null,e,t,n)},c.allocUnsafe=function(e){return f(null,e)},c.allocUnsafeSlow=function(e){return f(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),h=0;hi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,e,t,n);case"utf8":case"utf-8":return S(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return N(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function I(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function H(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function U(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function q(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function G(e,t,n,r,o){return o||q(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function W(e,t,n,r,o){return o||q(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||_(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||_(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||_(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||_(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||_(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||_(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||_(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||_(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;j(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):H(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):H(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):U(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);j(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):H(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):H(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):U(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):U(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return G(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return G(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return W(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return W(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function $(e){return r.toByteArray(Y(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("c8ba"))},b645:function(e,t,n){e.exports=n.p+"img/blackHumour.jpg"},b684:function(e,t,n){e.exports=n.p+"img/-_13.svg"},b75f:function(e,t,n){e.exports=n.p+"img/a-18-xiguan.svg"},b765:function(e,t,n){e.exports=n.p+"img/-_9.svg"},b7ba:function(e,t,n){var r=n("10ad"),i=n("fb24"),o=n("9826"),a=n("eec5");e.exports={xml2js:r,xml2json:i,js2xml:o,json2xml:a}},b7d1:function(e,t,n){(function(t){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!t.localStorage)return!1}catch(r){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("c8ba"))},b866:function(e,t,n){},b8c0:function(e,t,n){},b8fe:function(e,t,n){e.exports=n.p+"img/-_6.svg"},b923:function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return C})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return de})),n.d(t,"f",(function(){return q})),n.d(t,"g",(function(){return H})),n.d(t,"h",(function(){return Z})),n.d(t,"i",(function(){return P})),n.d(t,"j",(function(){return W})),n.d(t,"k",(function(){return O})),n.d(t,"l",(function(){return K}));var r=n("6f27");const i=65535,o=Math.pow(2,16);function a(e,t){return e+t*o}function s(e){return e&i}function l(e){return(e-(e&i))/o}const c=1,u=2,h=4,d=8;class f{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&d)>0}get deletedBefore(){return(this.delInfo&(c|h))>0}get deletedAfter(){return(this.delInfo&(u|h))>0}get deletedAcross(){return(this.delInfo&h)>0}}class p{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&p.empty)return p.empty}recover(e){let t=0,n=s(e);if(!this.inverted)for(let r=0;re)break;let p=this.ranges[s+i],m=this.ranges[s+o],g=l+p;if(e<=g){let i=p?e==l?-1:e==g?1:t:t,o=l+r+(i<0?0:m);if(n)return o;let v=e==(t<0?l:g)?null:a(s/3,e-l),b=e==l?u:e==g?c:h;return(t<0?e!=l:e!=g)&&(b|=d),new f(o,b,v)}r+=m-p}return n?e+r:new f(e+r,0,null)}touches(e,t){let n=0,r=s(t),i=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;ae)break;let s=this.ranges[a+i],l=t+s;if(e<=l&&a==3*r)return!0;n+=this.ranges[a+o]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r=0;t--){let r=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=r&&r>t?n-r-1:void 0)}}invert(){let e=new m;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let n=this.from;ni&&te.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e,i),t.openStart,t.openEnd);return b.fromReplace(e,this.from,this.to,o)}invert(){return new x(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new w(t.pos,n.pos,this.mark)}merge(e){return e instanceof w&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new w(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new w(t.from,t.to,e.markFromJSON(t.mark))}}v.jsonID("addMark",w);class x extends v{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new r["Slice"](y(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return b.fromReplace(e,this.from,this.to,n)}invert(){return new w(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),n=e.mapResult(this.to,-1);return t.deleted&&n.deleted||t.pos>=n.pos?null:new x(t.pos,n.pos,this.mark)}merge(e){return e instanceof x&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new x(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new x(t.from,t.to,e.markFromJSON(t.mark))}}v.jsonID("removeMark",x);class k extends v{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return b.fail("No node at mark step's position");let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return b.fromReplace(e,this.pos,this.pos+1,new r["Slice"](r["Fragment"].from(n),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let n=0;nn.pos?null:new E(t.pos,n.pos,r,i,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new E(t.from,t.to,t.gapFrom,t.gapTo,r["Slice"].fromJSON(e,t.slice),t.insert,!!t.structure)}}function S(e,t,n){let r=e.resolve(t),i=n-t,o=r.depth;while(i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount)o--,i--;if(i>0){let e=r.node(o).maybeChild(r.indexAfter(o));while(i>0){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}function T(e,t,n,r){let i,o,a=[],s=[];e.doc.nodesBetween(t,n,(e,l,c)=>{if(!e.isInline)return;let u=e.marks;if(!r.isInSet(u)&&c.type.allowsMarkType(r.type)){let c=Math.max(l,t),h=Math.min(l+e.nodeSize,n),d=r.addToSet(u);for(let e=0;ee.step(t)),s.forEach(t=>e.step(t))}function N(e,t,n,i){let o=[],a=0;e.doc.nodesBetween(t,n,(e,s)=>{if(!e.isInline)return;a++;let l=null;if(i instanceof r["MarkType"]){let t,n=e.marks;while(t=i.isInSet(n))(l||(l=[])).push(t),n=t.removeFromSet(n)}else i?i.isInSet(e.marks)&&(l=[i]):l=e.marks;if(l&&l.length){let r=Math.min(s+e.nodeSize,n);for(let e=0;ee.step(new x(t.from,t.to,t.style)))}function M(e,t,n,i=n.contentMatch){let o=e.doc.nodeAt(t),a=[],s=t+1;for(let l=0;l=0;r--)e.step(a[r])}function L(e,t,n){return(0==t||e.canReplace(t,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function O(e){let t=e.parent,n=t.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let t=e.$from.node(r),i=e.$from.index(r),o=e.$to.indexAfter(r);if(rn;m--)g||i.index(m)>0?(g=!0,h=r["Fragment"].from(i.node(m).copy(h)),d++):c--;let f=r["Fragment"].empty,p=0;for(let m=a,g=!1;m>n;m--)g||o.after(m+1)=0;s--){if(i.size){let e=n[s].type.contentMatch.matchFragment(i);if(!e||!e.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=r["Fragment"].from(n[s].type.create(n[s].attrs,i))}let o=t.start,a=t.end;e.step(new E(o,a,o,a,new r["Slice"](i,0,0),n.length,!0))}function B(e,t,n,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let a=e.steps.length;e.doc.nodesBetween(t,n,(t,n)=>{if(t.isTextblock&&!t.hasMarkup(i,o)&&_(e.doc,e.mapping.slice(a).map(n),i)){e.clearIncompatible(e.mapping.slice(a).map(n,1),i);let s=e.mapping.slice(a),l=s.map(n,1),c=s.map(n+t.nodeSize,1);return e.step(new E(l,c,l+1,c-1,new r["Slice"](r["Fragment"].from(i.create(o,null,t.marks)),0,0),1,!0)),!1}})}function _(e,t,n){let r=e.resolve(t),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function j(e,t,n,i,o){let a=e.doc.nodeAt(t);if(!a)throw new RangeError("No node at given position");n||(n=a.type);let s=n.create(i,null,o||a.marks);if(a.isLeaf)return e.replaceWith(t,t+a.nodeSize,s);if(!n.validContent(a.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new E(t,t+a.nodeSize,t+1,t+a.nodeSize-1,new r["Slice"](r["Fragment"].from(s),0,0),1,!0))}function H(e,t,n=1,r){let i=e.resolve(t),o=i.depth-n,a=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!a.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let e=i.node(c),t=i.index(c);if(e.type.spec.isolating)return!1;let n=e.content.cutByIndex(t,e.childCount),o=r&&r[u]||e;if(o!=e&&(n=n.replaceChild(0,o.type.create(o.attrs))),!e.canReplace(t+1,e.childCount)||!o.type.validContent(n))return!1}let s=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(s,s,l?l.type:i.node(o+1).type)}function U(e,t,n=1,i){let o=e.doc.resolve(t),a=r["Fragment"].empty,s=r["Fragment"].empty;for(let l=o.depth,c=o.depth-n,u=n-1;l>c;l--,u--){a=r["Fragment"].from(o.node(l).copy(a));let e=i&&i[u];s=r["Fragment"].from(e?e.type.create(e.attrs,s):o.node(l).copy(s))}e.step(new C(t,t,new r["Slice"](a.append(s),n,n),!0))}function q(e,t){let n=e.resolve(t),r=n.index();return G(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function G(e,t){return!(!e||!t||e.isLeaf||!e.canAppend(t))}function W(e,t,n=-1){let r=e.resolve(t);for(let i=r.depth;;i--){let e,o,a=r.index(i);if(i==r.depth?(e=r.nodeBefore,o=r.nodeAfter):n>0?(e=r.node(i+1),a++,o=r.node(i).maybeChild(a)):(e=r.node(i).maybeChild(a-1),o=r.node(i+1)),e&&!e.isTextblock&&G(e,o)&&r.node(i).canReplace(a,a+1))return t;if(0==i)break;t=n<0?r.before(i):r.after(i)}}function V(e,t,n){let i=new C(t-n,t+n,r["Slice"].empty,!0);e.step(i)}function Y(e,t,n){let r=e.resolve(t);if(r.parent.canReplaceWith(r.index(),r.index(),n))return t;if(0==r.parentOffset)for(let i=r.depth-1;i>=0;i--){let e=r.index(i);if(r.node(i).canReplaceWith(e,e,n))return r.before(i+1);if(e>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let e=r.indexAfter(i);if(r.node(i).canReplaceWith(e,e,n))return r.after(i+1);if(e=0;e--){let t=e==r.depth?0:r.pos<=(r.start(e+1)+r.end(e+1))/2?-1:1,n=r.index(e)+(t>0?1:0),a=r.node(e),s=!1;if(1==o)s=a.canReplace(n,n,i);else{let e=a.contentMatchAt(n).findWrapping(i.firstChild.type);s=e&&a.canReplaceWith(n,n,e[0])}if(s)return 0==t?r.pos:t<0?r.before(e+1):r.after(e+1)}return null}function K(e,t,n=t,i=r["Slice"].empty){if(t==n&&!i.size)return null;let o=e.resolve(t),a=e.resolve(n);return X(o,a,i)?new C(t,n,i):new J(o,a,i).fit()}function X(e,t,n){return!n.openStart&&!n.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),n.content)}v.jsonID("replaceAround",E);class J{constructor(e,t,n){this.$from=e,this.$to=t,this.unplaced=n,this.frontier=[],this.placed=r["Fragment"].empty;for(let r=0;r<=e.depth;r++){let t=e.node(r);this.frontier.push({type:t.type,match:t.contentMatchAt(e.indexAfter(r))})}for(let i=e.depth;i>0;i--)this.placed=r["Fragment"].from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){while(this.unplaced.size){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,n=this.$from,i=this.close(e<0?this.$to:n.doc.resolve(e));if(!i)return null;let o=this.placed,a=n.depth,s=i.depth;while(a&&s&&1==o.childCount)o=o.firstChild.content,a--,s--;let l=new r["Slice"](o,a,s);return e>-1?new E(n.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||n.pos!=this.$to.pos?new C(n.pos,i.pos,l):null}findFittable(){for(let e=1;e<=2;e++)for(let t=this.unplaced.openStart;t>=0;t--){let n,i=null;t?(i=ee(this.unplaced.content,t-1).firstChild,n=i.content):n=this.unplaced.content;let o=n.firstChild;for(let a=this.depth;a>=0;a--){let n,{type:s,match:l}=this.frontier[a],c=null;if(1==e&&(o?l.matchType(o.type)||(c=l.fillBefore(r["Fragment"].from(o),!1)):i&&s.compatibleContent(i.type)))return{sliceDepth:t,frontierDepth:a,parent:i,inject:c};if(2==e&&o&&(n=l.findWrapping(o.type)))return{sliceDepth:t,frontierDepth:a,parent:i,wrap:n};if(i&&l.matchType(i.type))break}}}openMore(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=ee(e,t);return!(!i.childCount||i.firstChild.isLeaf)&&(this.unplaced=new r["Slice"](e,t+1,Math.max(n,i.size+t>=e.size-n?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:n}=this.unplaced,i=ee(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new r["Slice"](Q(e,t-1,1),t-1,o?t-1:n)}else this.unplaced=new r["Slice"](Q(e,t,1),t,n)}placeNodes({sliceDepth:e,frontierDepth:t,parent:n,inject:i,wrap:o}){while(this.depth>t)this.closeFrontierNode();if(o)for(let r=0;r1||0==l||e.content.size)&&(h=t,u.push(te(e.mark(d.allowedMarks(e.marks)),1==c?l:0,c==s.childCount?f:-1)))}let p=c==s.childCount;p||(f=-1),this.placed=$(this.placed,t,r["Fragment"].from(u)),this.frontier[t].match=h,p&&f<0&&n&&n.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let r=0,m=s;r1&&r==this.$to.end(--n))++r;return r}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:n,type:r}=this.frontier[t],i=t=0;n--){let{match:t,type:r}=this.frontier[n],i=ne(e,n,r,t,!0);if(!i||i.childCount)continue e}return{depth:t,fit:o,move:i?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;while(this.depth>t.depth)this.closeFrontierNode();t.fit.childCount&&(this.placed=$(this.placed,t.depth,t.fit)),e=t.move;for(let n=t.depth+1;n<=e.depth;n++){let t=e.node(n),r=t.type.contentMatch.fillBefore(t.content,!0,e.index(n));this.openFrontierNode(t.type,t.attrs,r)}return e}openFrontierNode(e,t=null,n){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=$(this.placed,this.depth,r["Fragment"].from(e.create(t,n))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop(),t=e.match.fillBefore(r["Fragment"].empty,!0);t.childCount&&(this.placed=$(this.placed,this.frontier.length,t))}}function Q(e,t,n){return 0==t?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(Q(e.firstChild.content,t-1,n)))}function $(e,t,n){return 0==t?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy($(e.lastChild.content,t-1,n)))}function ee(e,t){for(let n=0;n1&&(i=i.replaceChild(0,te(i.firstChild,t-1,1==i.childCount?n-1:0))),t>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(r["Fragment"].empty,!0)))),e.copy(i)}function ne(e,t,n,r,i){let o=e.node(t),a=i?e.indexAfter(t):e.index(t);if(a==o.childCount&&!n.compatibleContent(o.type))return null;let s=r.fillBefore(o.content,!0,a);return s&&!re(n,o.content,a)?s:null}function re(e,t,n){for(let r=n;r0;r--,f--){let e=o.node(r).type.spec;if(e.defining||e.definingAsContext||e.isolating)break;s.indexOf(r)>-1?l=r:o.before(r)==f&&s.splice(1,0,-r)}let c=s.indexOf(l),u=[],h=i.openStart;for(let r=i.content,f=0;;f++){let e=r.firstChild;if(u.push(e),f==i.openStart)break;r=e.content}for(let r=h-1;r>=0;r--){let e=u[r].type,t=ie(e);if(t&&o.node(c).type!=e)h=r;else if(t||!e.isTextblock)break}for(let f=i.openStart;f>=0;f--){let t=(f+h+1)%(i.openStart+1),l=u[t];if(l)for(let u=0;u=0;r--){if(e.replace(t,n,i),e.steps.length>d)break;let l=s[r];l<0||(t=o.before(l),n=a.after(l))}}function ae(e,t,n,i,o){if(ti){let t=o.contentMatchAt(0),n=t.fillBefore(e).append(e);e=n.append(t.matchFragment(n).fillBefore(r["Fragment"].empty,!0))}return e}function se(e,t,n,i){if(!i.isInline&&t==n&&e.doc.resolve(t).parent.content.size){let r=Y(e.doc,t,i.type);null!=r&&(t=n=r)}e.replaceRange(t,n,new r["Slice"](r["Fragment"].from(i),0,0))}function le(e,t,n){let r=e.doc.resolve(t),i=e.doc.resolve(n),o=ce(r,i);for(let a=0;a0&&(n||r.node(t-1).canReplace(r.index(t-1),i.indexAfter(t-1))))return e.delete(r.before(t),i.after(t))}for(let a=1;a<=r.depth&&a<=i.depth;a++)if(t-r.start(a)==r.depth-a&&n>r.end(a)&&i.end(a)-n!=i.depth-a)return e.delete(r.before(a),n);e.delete(t,n)}function ce(e,t){let n=[],r=Math.min(e.depth,t.depth);for(let i=r;i>=0;i--){let r=e.start(i);if(rt.pos+(t.depth-i)||e.node(i).type.spec.isolating||t.node(i).type.spec.isolating)break;(r==t.start(i)||i==e.depth&&i==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&i&&t.start(i-1)==r-1)&&n.push(i)}return n}class ue extends v{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return b.fail("No node at attribute step's position");let n=Object.create(null);for(let r in t.attrs)n[r]=t.attrs[r];n[this.attr]=this.value;let i=t.type.create(n,null,t.marks);return b.fromReplace(e,this.pos,this.pos+1,new r["Slice"](r["Fragment"].from(i),0,t.isLeaf?0:1))}getMap(){return p.empty}invert(e){return new ue(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ue(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new ue(t.pos,t.attr,t.value)}}v.jsonID("attr",ue);let he=class extends Error{};he=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},he.prototype=Object.create(Error.prototype),he.prototype.constructor=he,he.prototype.name="TransformError";class de{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new m}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new he(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,n=r["Slice"].empty){let i=K(this.doc,e,t,n);return i&&this.step(i),this}replaceWith(e,t,n){return this.replace(e,t,new r["Slice"](r["Fragment"].from(n),0,0))}delete(e,t){return this.replace(e,t,r["Slice"].empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,n){return oe(this,e,t,n),this}replaceRangeWith(e,t,n){return se(this,e,t,n),this}deleteRange(e,t){return le(this,e,t),this}lift(e,t){return D(this,e,t),this}join(e,t=1){return V(this,e,t),this}wrap(e,t){return z(this,e,t),this}setBlockType(e,t=e,n,r=null){return B(this,e,t,n,r),this}setNodeMarkup(e,t,n=null,r=[]){return j(this,e,t,n,r),this}setNodeAttribute(e,t,n){return this.step(new ue(e,t,n)),this}addNodeMark(e,t){return this.step(new k(e,t)),this}removeNodeMark(e,t){if(!(t instanceof r["Mark"])){let n=this.doc.nodeAt(e);if(!n)throw new RangeError("No node at position "+e);if(t=t.isInSet(n.marks),!t)return this}return this.step(new A(e,t)),this}split(e,t=1,n){return U(this,e,t,n),this}addMark(e,t,n){return T(this,e,t,n),this}removeMark(e,t,n){return N(this,e,t,n),this}clearIncompatible(e,t,n){return M(this,e,t,n),this}}},b93d:function(e,t,n){e.exports=n.p+"img/chongdian.svg"},b980:function(e,t,n){var r=n("d039"),i=n("5c6c");e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},b9e3:function(e,t,n){"use strict";e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},ba0f:function(e,t,n){e.exports=n.p+"img/qingrenjie.svg"},bbea:function(e,t,n){"use strict";var r=n("1802"),i=n("cf4b"),o=n("77be");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=r(Object.prototype,"__proto__","set"),e(n,[]),t=n instanceof Array}catch(a){}return function(n,r){return i(n),o(r),t?e(n,r):n.__proto__=r,n}}():void 0)},bc06:function(e,t,n){e.exports=n.p+"img/redSpirit.jpg"},bce0:function(e,t,n){e.exports=n.p+"img/tiantianquan.svg"},bd3c:function(e,t,n){e.exports=n.p+"img/jiaoshijie.svg"},bd4d:function(e,t,n){e.exports=n.p+"img/a-12-huxi.svg"},be45:function(e,t,n){e.exports=n.p+"img/youlechangsuo.svg"},be49:function(e,t,n){e.exports=n.p+"img/orangeJuice.jpg"},bea9:function(e,t,n){e.exports=n.p+"img/catalogOrganization.png"},bf26:function(e,t,n){e.exports=n.p+"img/ziyuan_7.svg"},bf32:function(e,t,n){"use strict";n("ae77")},c030:function(e,t,n){"use strict";var r=n("1a89"),i=n("6632"),o=n("59ec"),a=n("9440"),s=n("1936"),l=n("8300"),c=n("8af8"),u=r.RangeError,h=r.Int8Array,d=h&&h.prototype,f=d&&d.set,p=o.aTypedArray,m=o.exportTypedArrayMethod,g=!c((function(){var e=new Uint8ClampedArray(2);return i(f,e,{length:1,0:3},1),3!==e[1]})),v=g&&o.NATIVE_ARRAY_BUFFER_VIEWS&&c((function(){var e=new h(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){p(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=l(e);if(g)return i(f,this,n,t);var r=this.length,o=a(n),c=0;if(o+t>r)throw new u("Wrong length");while(ce[e.length-1],i=(e,t)=>{for(let n=0;n{for(let n=0;n{for(let n=0;ne.length===t.length&&a(e,(e,n)=>e===t[n]),c=(e,t)=>{const n=new Array(e);for(let r=0;r{const n=Array(e.length);for(let r=0;re.toLowerCase()),a=/^\s*/g,s=e=>e.replace(a,""),l=/([A-Z])/g,c=(e,t)=>s(e.replace(l,e=>`${t}${o(e)}`)),u=e=>{const t=unescape(encodeURIComponent(e)),n=t.length,r=new Uint8Array(n);for(let i=0;ih.encode(e),f=h?d:u,p=e=>{let t=e.length,n="",r=0;while(t>0){const i=t<1e4?t:1e4,o=e.subarray(r,r+i);r+=i,n+=String.fromCodePoint.apply(null,o),t-=i}return decodeURIComponent(escape(n))};let m="undefined"===typeof TextDecoder?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});m&&1===m.decode(new Uint8Array).length&&(m=null);const g=e=>m.decode(e),v=m?g:p,b=(e,t)=>r["h"](t,()=>e).join("")},ca39:function(e,t,n){e.exports=n.p+"img/a-12-huxi.svg"},ca50:function(e,t,n){e.exports=n.p+"img/celianggongju.svg"},cace:function(e,t,n){e.exports=n.p+"img/xianweijing.svg"},cacf:function(e,t,n){e.exports=n.p+"img/diqiuyi.svg"},cb07:function(e,t,n){e.exports=n.p+"img/lemonBubbles.jpg"},cbe8:function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a}));var r=n("fa98"),i=n("23dd");const o=Number.MAX_SAFE_INTEGER,a=(Number.MIN_SAFE_INTEGER,i["i"],i["j"],Number.isInteger||(e=>"number"===typeof e&&isFinite(e)&&r["d"](e)===e));Number.isNaN,Number.parseInt},cbee:function(e,t,n){"use strict";var r=n("59ec"),i=n("9440"),o=n("ed00"),a=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",(function(e){var t=a(this),n=i(t),r=o(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},cbf7:function(e,t,n){e.exports=n.p+"img/boluo.svg"},cd5f:function(e,t,n){e.exports=n.p+"img/ziyuan_3.svg"},ce2e:function(e,t,n){"use strict";var r=n("5e8c"),i=n("feb8"),o=n("bbea");e.exports=function(e,t,n){var a,s;return o&&r(a=t.constructor)&&a!==n&&i(s=a.prototype)&&s!==n.prototype&&o(e,s),e}},ce80:function(e,t,n){"use strict";n("98eb")},ce8e:function(e,t,n){"use strict";var r=n("ae21"),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,l=function(e){return"function"===typeof e&&"[object Function]"===o.call(e)},c=n("b38c")(),u=s&&c,h=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if(!l(r)||!r())return;u?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},d=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s1?arguments[1]:void 0)}))},d4e4:function(e,t,n){e.exports=n.p+"img/a-9-tizhongcheng.svg"},d5e5:function(e,t,n){e.exports=n.p+"img/a-2-kouzhao.svg"},d67c:function(e,t,n){e.exports=n.p+"img/shuxie.svg"},d7f0:function(e,t,n){"use strict";var r=n("e731").functionsHaveConfigurableNames(),i=Object,o=TypeError;e.exports=function(){if(null!=this&&this!==i(this))throw new o("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},d875:function(e,t,n){e.exports=n.p+"img/xueshimao.svg"},d898:function(e,t,n){"use strict";var r=n("feb8"),i=n("f770");e.exports=function(e,t){r(t)&&"cause"in t&&i(e,"cause",t.cause)}},d9e2:function(e,t,n){var r=n("23e7"),i=n("da84"),o=n("2ba4"),a=n("e5cb"),s="WebAssembly",l=i[s],c=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=a(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},h=function(e,t){if(l&&l[e]){var n={};n[e]=a(s+"."+e,t,c),r({target:s,stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),h("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),h("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),h("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},da5b:function(e,t,n){"use strict";n("282d")},da5e:function(e,t,n){e.exports=n.p+"img/a-17-zhusheqi.svg"},da66:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return b}));var r=n("7bbc"),i=n("04f0");class o{constructor(e,t){this.left=e,this.right=t}}const a=(e,t)=>new o(e,t);var s=n("1651");const l="undefined"!==typeof document?document:{},c=("undefined"!==typeof DOMParser&&new DOMParser,e=>s["d"](e,(e,t)=>`${t}:${e};`).join(""));l.ELEMENT_NODE,l.TEXT_NODE,l.CDATA_SECTION_NODE,l.COMMENT_NODE,l.DOCUMENT_NODE,l.DOCUMENT_TYPE_NODE,l.DOCUMENT_FRAGMENT_NODE,JSON.stringify,JSON.parse;const u=e=>class{constructor(e){this._=e}destroy(){e(this._)}};u(clearTimeout),u(clearInterval),u(e=>"undefined"!==typeof requestAnimationFrame&&cancelAnimationFrame(e)),u(e=>"undefined"!==typeof cancelIdleCallback&&cancelIdleCallback(e));n("fa98");var h=n("b5e5");const d={[h["b"]]:a("font-weight","bold"),[h["h"]]:a("font-weight","normal"),[h["a"]]:a("color","blue"),[h["c"]]:a("color","green"),[h["d"]]:a("color","grey"),[h["g"]]:a("color","red"),[h["f"]]:a("color","purple"),[h["e"]]:a("color","orange"),[h["i"]]:a("color","black")},f=e=>{const t=[],n=[],r=s["c"]();let i=[],o=0;for(;o0||e.length>0?(t.push("%c"+i),n.push(e)):t.push(i)}}}for(o>0&&(i=n,i.unshift(t.join("")));o{console.log(...p(e)),v.forEach(t=>t.print(e))},g=(...e)=>{console.warn(...p(e)),e.unshift(h["e"]),v.forEach(t=>t.print(e))},v=i["a"]();const b=e=>h["k"](m,e)},da72:function(e,t,n){e.exports=n.p+"img/chizi.svg"},daf1:function(e,t,n){e.exports=n.p+"img/oreo.jpg"},db91:function(e,t,n){e.exports=n.p+"img/ziyuan_15.svg"},dbc4:function(e,t,n){e.exports=n.p+"img/coffee.jpg"},dbfc:function(e,t,n){e.exports=n.p+"img/yuyanfanyi.svg"},dc14:function(e,t,n){"use strict";(function(t,r){var i=n("966d");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){F(t,e)}}e.exports=y;var a,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?setImmediate:i.nextTick;y.WritableState=b;var l=Object.create(n("3a7c"));l.inherits=n("3fb5");var c={deprecate:n("b7d1")},u=n("429b"),h=n("8707").Buffer,d=r.Uint8Array||function(){};function f(e){return h.from(e)}function p(e){return h.isBuffer(e)||e instanceof d}var m,g=n("4681");function v(){}function b(e,t){a=a||n("b19a"),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){T(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function y(e){if(a=a||n("b19a"),!m.call(y,this)&&!(this instanceof a))return new y(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),u.call(this)}function w(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}function x(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}function k(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=h.from(t,n)),t}function A(e,t,n,r,i,o){if(!n){var a=k(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||R(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("4362"),n("c8ba"))},dcfb:function(e,t,n){"use strict";n.d(t,"b",(function(){return Z})),n.d(t,"a",(function(){return K}));var r=Uint8Array,i=Uint16Array,o=Uint32Array,a=new r([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),s=new r([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),l=new r([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),c=function(e,t){for(var n=new i(31),r=0;r<31;++r)n[r]=t+=1<>>1|(21845&v)<<1;b=(52428&b)>>>2|(13107&b)<<2,b=(61680&b)>>>4|(3855&b)<<4,g[v]=((65280&b)>>>8|(255&b)<<8)>>>1}var y=function(e,t,n){for(var r=e.length,o=0,a=new i(t);o>>c]=u}else for(s=new i(r),o=0;o>>15-e[o];return s},w=new r(288);for(v=0;v<144;++v)w[v]=8;for(v=144;v<256;++v)w[v]=9;for(v=256;v<280;++v)w[v]=7;for(v=280;v<288;++v)w[v]=8;var x=new r(32);for(v=0;v<32;++v)x[v]=5;var k=y(w,9,0),A=y(w,9,1),C=y(x,5,0),E=y(x,5,1),S=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},T=function(e,t,n){var r=t/8>>0;return(e[r]|e[r+1]<<8)>>>(7&t)&n},N=function(e,t){var n=t/8>>0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>>(7&t)},M=function(e){return(e/8>>0)+(7&e&&1)},L=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var a=new(e instanceof i?i:e instanceof o?o:r)(n-t);return a.set(e.subarray(t,n)),a},O=function(e,t,n){var i=e.length,o=!t||n,c=!n||n.i;n||(n={}),t||(t=new r(3*i));var u=function(e){var n=t.length;if(e>n){var i=new r(Math.max(2*n,e));i.set(t),t=i}},d=n.f||0,f=n.p||0,m=n.b||0,g=n.l,v=n.d,b=n.m,w=n.n,x=8*i;do{if(!g){n.f=d=T(e,f,1);var k=T(e,f+1,3);if(f+=3,!k){var C=M(f)+4,O=e[C-4]|e[C-3]<<8,D=C+O;if(D>i){if(c)throw"unexpected EOF";break}o&&u(m+O),t.set(e.subarray(C,D),m),n.b=m+=O,n.p=f=8*D;continue}if(1==k)g=A,v=E,b=9,w=5;else{if(2!=k)throw"invalid block type";var P=T(e,f,31)+257,I=T(e,f+10,15)+4,R=P+T(e,f+5,31)+1;f+=14;for(var F=new r(R),z=new r(19),B=0;Bx)break;var H=y(z,_,1);for(B=0;B>>4;if(C<16)F[B++]=C;else{var q=0,G=0;16==C?(G=3+T(e,f,3),f+=2,q=F[B-1]):17==C?(G=3+T(e,f,7),f+=3):18==C&&(G=11+T(e,f,127),f+=7);while(G--)F[B++]=q}}var W=F.subarray(0,P),V=F.subarray(P);b=S(W),w=S(V),g=y(W,b,1),v=y(V,w,1)}if(f>x)throw"unexpected EOF"}o&&u(m+131072);var Y=(1<>>4;if(f+=15&q,f>x)throw"unexpected EOF";if(!q)throw"invalid length/literal";if(X<256)t[m++]=X;else{if(256==X){g=null;break}var J=X-254;if(X>264){B=X-257;var Q=a[B];J=T(e,f,(1<>>4;if(!$)throw"invalid distance";f+=15&$;V=p[ee];if(ee>3){Q=s[ee];V+=N(e,f)&(1<x)throw"unexpected EOF";o&&u(m+131072);for(var te=m+J;m>0;e[r]|=n,e[r+1]|=n>>>8},P=function(e,t,n){n<<=7&t;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},I=function(e,t){for(var n=[],o=0;op&&(p=s[o].s);var m=new i(p+1),g=R(n[d-1],m,0);if(g>t){o=0;var v=0,b=g-t,y=1<t))break;v+=y-(1<>>=b;while(v>0){var x=s[o].s;m[x]=0&&v;--o){var k=s[o].s;m[k]==t&&(--m[k],++v)}g=t}return[new r(m),g]},R=function(e,t,n){return-1==e.s?Math.max(R(e.l,t,n+1),R(e.r,t,n+1)):t[e.s]=n},F=function(e){var t=e.length;while(t&&!e[--t]);for(var n=new i(++t),r=0,o=e[0],a=1,s=function(e){n[r++]=e},l=1;l<=t;++l)if(e[l]==o&&l!=t)++a;else{if(!o&&a>2){for(;a>138;a-=138)s(32754);a>2&&(s(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(s(o),--a;a>6;a-=6)s(8304);a>2&&(s(a-3<<5|8208),a=0)}while(a--)s(o);a=1,o=e[l]}return[n.subarray(0,r),t]},z=function(e,t){for(var n=0,r=0;r>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o4&&!H[l[q-1]];--q);var G,W,V,Y,Z=f+5<<3,K=z(o,w)+z(c,x)+u,X=z(o,g)+z(c,A)+u+14+3*q+z(R,H)+(2*R[16]+3*R[17]+7*R[18]);if(Z<=K&&Z<=X)return B(t,p,e.subarray(d,d+f));if(D(t,p,1+(X15&&(D(t,p,ee[_]>>>5&127),p+=ee[_]>>>12)}}}else G=k,W=w,V=C,Y=x;for(_=0;_255){te=r[_]>>>18&31;P(t,p,G[te+257]),p+=W[te+257],te>7&&(D(t,p,r[_]>>>23&31),p+=a[te]);var ne=31&r[_];P(t,p,V[ne]),p+=Y[ne],ne>3&&(P(t,p,r[_]>>>5&8191),p+=s[ne])}else P(t,p,G[r[_]]),p+=W[r[_]];return P(t,p,G[256]),p+W[256]},j=new o([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),H=new r(0),U=function(e,t,n,l,c,u){var h=e.length,f=new r(l+h+5*(1+Math.floor(h/7e3))+c),p=f.subarray(l,f.length-c),g=0;if(!t||h<8)for(var v=0;v<=h;v+=65535){var b=v+65535;b>>13,x=8191&y,k=(1<7e3||R>24576)&&W>423){g=_(e,p,0,N,O,D,I,R,z,v-z,g),R=P=I=0,z=v;for(var V=0;V<286;++V)O[V]=0;for(V=0;V<30;++V)D[V]=0}var Y=2,Z=0,K=x,X=q-G&32767;if(W>2&&U==T(v-X)){var J=Math.min(w,W)-1,Q=Math.min(32767,v),$=Math.min(258,W);while(X<=Q&&--K&&q!=G){if(e[v+Y]==e[v+Y-X]){for(var ee=0;ee<$&&e[v+ee]==e[v+ee-X];++ee);if(ee>Y){if(Y=ee,Z=X,ee>J)break;var te=Math.min(X,ee-2),ne=0;for(V=0;Vne&&(ne=oe,G=re)}}}q=G,G=A[q],X+=q-G+32768&32767}}if(Z){N[R++]=268435456|d[Y]<<18|m[Z];var ae=31&d[Y],se=31&m[Z];I+=a[ae]+s[se],++O[257+ae],++D[se],F=v+Y,++P}else N[R++]=e[v],++O[e[v]]}}g=_(e,p,u,N,O,D,I,R,z,v-z,g),u||(g=B(p,g,H))}return L(f,0,l+M(g)+c)},q=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,a=0;a!=o;){for(var s=Math.min(a+5552,o);a>>8<<16|(255&t)<<8|t>>>8)+2*((255&e)<<23)}}},G=function(e,t,n,r,i){return U(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,r,!i)},W=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},V=function(e,t){var n=t.level,r=0==n?0:n<6?1:9==n?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)},Y=function(e){if(8!=(15&e[0])||e[0]>>>4>7||(e[0]<<8|e[1])%31)throw"invalid zlib data";if(32&e[1])throw"invalid zlib data: preset dictionaries not supported"};function Z(e,t){void 0===t&&(t={});var n=q();n.p(e);var r=G(e,t,2,4);return V(r,t),W(r,r.length-4,n.d()),r}function K(e,t){return O((Y(e),e.subarray(2,-4)),t)}},dd87:function(e,t,n){"use strict";n("9ddb")},ddbb:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n("41af");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},de62:function(e,t,n){e.exports=n.p+"img/huiyiguanli.svg"},ded7:function(e,t,n){e.exports=n.p+"img/yuandan.svg"},df54:function(e,t,n){"use strict";var r=n("ce8e"),i=n("5d66"),o=n("4a66"),a=n("1cd3"),s=n("99da"),l=i(a(),Object);r(l,{getPolyfill:a,implementation:o,shim:s}),e.exports=l},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},dfe7:function(e,t,n){},e00a:function(e,t,n){e.exports=n.p+"img/a-shu4.svg"},e114:function(e,t,n){e.exports=n.p+"img/qingxiujiashenqing.svg"},e217:function(e,t,n){(function(t){var n;(function(t){e.exports=t()})((function(){var e=Math.floor,r=Math.abs,i=Math.pow;return function(){function e(t,r,i){function o(s,l){if(!r[s]){if(!t[s]){var c="function"==typeof n&&n;if(!l&&c)return n(s,!0);if(a)return a(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[s]={exports:{}};t[s][0].call(h.exports,(function(e){var n=t[s][1][e];return o(n||e)}),h,h.exports,e,t,r,i)}return r[s].exports}for(var a="function"==typeof n&&n,s=0;s>16,l[c++]=255&t>>8,l[c++]=255&t;return 2===s&&(t=u[e.charCodeAt(n)]<<2|u[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=u[e.charCodeAt(n)]<<10|u[e.charCodeAt(n+1)]<<4|u[e.charCodeAt(n+2)]>>2,l[c++]=255&t>>8,l[c++]=255&t),l}function a(e){return c[63&e>>18]+c[63&e>>12]+c[63&e>>6]+c[63&e]}function s(e,t,n){for(var r,i=[],o=t;ol?l:a+o));return 1===r?(t=e[n-1],i.push(c[t>>2]+c[63&t<<4]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(c[t>>10]+c[63&t>>4]+c[63&t<<2]+"=")),i.join("")}n.byteLength=function(e){var t=r(e),n=t[0],i=t[1];return 3*(n+i)/4-i},n.toByteArray=o,n.fromByteArray=l;for(var c=[],u=[],h="undefined"==typeof Uint8Array?Array:Uint8Array,d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=0,p=d.length;f * @license MIT */ -"use strict";var t=String.fromCharCode,r=Math.min;function o(e){if(2147483647e)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e,t,n){return l(e),0>=e||void 0===t?o(e):"string"==typeof n?o(e).fill(t,n):o(e).fill(t)}function u(e){return l(e),o(0>e?0:0|m(e))}function h(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|g(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function d(e){for(var t=0>e.length?0:0|m(e.length),n=o(t),r=0;rt||e.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function g(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=2>>1;case"base64":return G(e).length;default:if(i)return r?-1:H(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){var r=!1;if((void 0===t||0>t)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),0>=n)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647n&&(n=-2147483648),n=+n,Y(n)&&(n=i?0:e.length-1),0>n&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(0>n){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var a,s=1,l=e.length,c=t.length;if(void 0!==r&&(r=(r+"").toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(2>e.length||2>t.length)return-1;s=2,l/=2,c/=2,n/=2}if(i){var u=-1;for(a=n;al&&(n=l-c),a=n;0<=a;a--){for(var h=!0,d=0;di&&(r=i)):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a,s=0;su&&(h=u):2===d?(a=e[o+1],128==(192&a)&&(c=(31&u)<<6|63&a,127c||57343c&&(h=c)));null===h?(h=65533,d=1):65535>>10),h=56320|1023&h),i.push(h),o+=d}return M(i)}function M(e){var n=e.length;if(n<=4096)return t.apply(String,e);for(var r="",i=0;it)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;oe)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function F(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(0>n)throw new RangeError("Index out of range")}function z(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,t,n,4,34028234663852886e22,-34028234663852886e22),K.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,t,n,8,17976931348623157e292,-17976931348623157e292),K.write(e,t,n,r,52,8),n+8}function _(e){if(e=e.split("=")[0],e=e.trim().replace(X,""),2>e.length)return"";for(;0!=e.length%4;)e+="=";return e}function j(e){return 16>e?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;an){if(!i){if(56319n){-1<(t-=3)&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&o.push(239,191,189);if(i=null,128>n){if(0>(t-=1))break;o.push(n)}else if(2048>n){if(0>(t-=2))break;o.push(192|n>>6,128|63&n)}else if(65536>n){if(0>(t-=3))break;o.push(224|n>>12,128|63&n>>6,128|63&n)}else{if(!(1114112>n))throw new Error("Invalid code point");if(0>(t-=4))break;o.push(240|n>>18,128|63&n>>12,128|63&n>>6,128|63&n)}}return o}function U(e){for(var t=[],n=0;n(t-=2));++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function G(e){return Z.toByteArray(_(e))}function W(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!==e}var Z=e("base64-js"),K=e("ieee754");n.Buffer=a,n.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){return a.isBuffer(this)?this.buffer:void 0}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){return a.isBuffer(this)?this.byteOffset:void 0}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return c(e,t,n)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(V(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,i=t.length,o=0,s=r(n,i);ot&&(e+=" ... "),""},a.prototype.compare=function(e,t,n,i,o){if(V(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),0>t||n>e.length||0>i||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,l=n-t,c=r(s,l),u=this.slice(i,o),h=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),0n||0>t)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return A(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),t>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;0>>=0,t||I(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],o=1,a=0;++a=o&&(r-=i(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=t,o=1,a=this[e+--r];0=o&&(a-=i(2,8*t)),a},a.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),K.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),K.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),K.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),K.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=i(2,8*n)-1;R(this,e,t,n,o,0)}var a=1,s=0;for(this[t]=255&e;++s>>=0,n>>>=0,!r){var o=i(2,8*n)-1;R(this,e,t,n,o,0)}var a=n-1,s=1;for(this[t+a]=255&e;0<=--a&&(s*=256);)this[t+a]=255&e/s;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=i(2,8*n-1);R(this,e,t,n,o-1,-o)}var a=0,s=1,l=0;for(this[t]=255&e;++ae&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=255&(e/s>>0)-l;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=i(2,8*n-1);R(this,e,t,n,o-1,-o)}var a=n-1,s=1,l=0;for(this[t+a]=255&e;0<=--a&&(s*=256);)0>e&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=255&(e/s>>0)-l;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),0>e&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),0t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("Index out of range");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-ti||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(0>t||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o{"%%"===e||(r++,"%c"===e&&(i=r))}),e.splice(i,0,n)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=i,n.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),t.exports=e("./common")(n);const{formatters:o}=t.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this)}).call(this,e("_process"))},{"./common":5,_process:12}],5:[function(e,t){t.exports=function(t){function n(e){function t(...e){if(!t.enabled)return;const i=t,o=+new Date,a=o-(r||o);i.diff=a,i.prev=r,i.curr=o,r=o,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,r)=>{if("%%"===t)return"%";s++;const o=n.formatters[r];if("function"==typeof o){const n=e[s];t=o.call(i,n),e.splice(s,1),s--}return t}),n.formatArgs.call(i,e);const l=i.log||n.log;l.apply(i,e)}let r,o=null;return t.namespace=e,t.useColors=n.useColors(),t.color=n.selectColor(e),t.extend=i,t.destroy=n.destroy,Object.defineProperty(t,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?n.enabled(e):o,set:e=>{o=e}}),"function"==typeof n.init&&n.init(t),t}function i(e,t){const r=n(this.namespace+("undefined"==typeof t?":":t)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(o),...n.skips.map(o).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(t=0;t{n[e]=t[e]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;ns&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=c.length,n(u)}return e}function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=s.bind(r);return i.listener=n,r.wrapFn=i,i}function c(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?f(i):h(i,i.length)}function u(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=Array(t),r=0;re||y(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");w=e}}),r.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(e){if("number"!=typeof e||0>e||y(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},r.prototype.getMaxListeners=function(){return o(this)},r.prototype.emit=function(e){for(var t=[],n=1;no)return this;0===o?n.shift():d(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r */o.read=function(e,t,n,r,o){var a,s,l=8*o-r-1,c=(1<>1,h=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-h)-1,p>>=-h,h+=l;0>=-h,h+=r;0>1,v=23===s?i(2,-24)-i(2,-77):0,b=a?0:l-1,y=a?1:-1,w=0>n||0===n&&0>1/n?1:0;for(n=r(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,c=m):(c=e(f(n)/d),1>n*(h=i(2,-c))&&(c--,h*=2),n+=1<=c+g?v/h:v*i(2,1-g),2<=n*h&&(c++,h/=2),c+g>=m?(u=0,c=m):1<=c+g?(u=(n*h-1)*i(2,s),c+=g):(u=n*i(2,g-1)*i(2,s),c=0));8<=s;t[o+b]=255&u,b+=y,u/=256,s-=8);for(c=c<=1.5*r?"s":"")}t.exports=function(e,t){t=t||{};var n=typeof e;if("string"==n&&0 */let t;n.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"==typeof window?e:window):e=>(t||(t=Promise.resolve())).then(e).catch(e=>setTimeout(()=>{throw e},0))}).call(this)}).call(this,"undefined"==typeof t?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:t)},{}],14:[function(e,n){(function(t,r){(function(){"use strict";var i=e("safe-buffer").Buffer,o=r.crypto||r.msCrypto;n.exports=o&&o.getRandomValues?function(e,n){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(0n?0:+n,t.length)===t}function a(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function s(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}var l={};r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,l;if("string"==typeof t&&o(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be",a(e," argument"))l="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var c=s(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(i(t,"type"))}return l+=". Received type ".concat(typeof n),l}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=l},{}],16:[function(e,t){(function(n){(function(){"use strict";function r(e){return this instanceof r?(s.call(this,e),l.call(this,e),this.allowHalfOpen=!0,void(e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",i))))):new r(e)}function i(){this._writableState.ended||n.nextTick(o,this)}function o(e){e.end()}var a=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=r;var s=e("./_stream_readable"),l=e("./_stream_writable");e("inherits")(r,s);for(var c,u=a(l.prototype),h=0;h>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function f(e,t){return 0>=e||0===t.length&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}function p(e,t){if(L("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?m(e):(t.needReadable=!1,!t.emittedReadable&&(t.emittedReadable=!0,g(e)))}}function m(e){var n=e._readableState;L("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(L("emitReadable",n.flowing),n.emittedReadable=!0,t.nextTick(g,e))}function g(e){var t=e._readableState;L("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function v(e,n){n.readingMore||(n.readingMore=!0,t.nextTick(b,e,n))}function b(e,t){for(;!t.reading&&!t.ended&&(t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function S(e){var n=e._readableState;L("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,t.nextTick(T,n,e))}function T(e,t){if(L("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function N(e,t){for(var n=0,r=e.length;n=t.highWaterMark)||t.ended))return L("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?S(this):m(this),null;if(e=f(e,t),0===e&&t.ended)return 0===t.length&&S(this),null;var r,i=t.needReadable;return L("need readable",i),(0===t.length||t.length-e>>0),n=this.head,r=0;n;)l(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(r+=o===i.length?i:i.slice(0,e),e-=o,0===e){o===i.length?(++n,this.head=t.next?t.next:this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),e-=o,0===e){o===i.length?(++r,this.head=n.next?n.next:this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r({},t,{depth:0,customInspect:!1}))}}]),e}()},{buffer:3,util:2}],23:[function(e,t){(function(e){(function(){"use strict";function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(o?o(t):t&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(r,a):(a._writableState.errorEmitted=!0,e.nextTick(n,a,t)):e.nextTick(n,a,t):o?(e.nextTick(r,a),o(t)):e.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:12}],24:[function(e,t){"use strict";function n(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),i=0;it.length)throw new h("streams");var i,c=t.map((function(e,n){var s=ns){var l=a?o:"highWaterMark";throw new i(l,s)}return e(s)}return t.objectMode?16:16384}}},{"../../../errors":15}],28:[function(e,t){t.exports=e("events").EventEmitter},{events:7}],29:[function(e,t,n){n=t.exports=e("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),n.finished=e("./lib/internal/streams/end-of-stream.js"),n.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":16,"./lib/_stream_passthrough.js":17,"./lib/_stream_readable.js":18,"./lib/_stream_transform.js":19,"./lib/_stream_writable.js":20,"./lib/internal/streams/end-of-stream.js":24,"./lib/internal/streams/pipeline.js":26}],30:[function(e,t,n){function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t,n){return a(e,t,n)}/*! safe-buffer. MIT License. Feross Aboukhadijeh */var o=e("buffer"),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=o:(r(o,n),n.Buffer=i),i.prototype=Object.create(a.prototype),r(a,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0===t?r.fill(0):"string"==typeof n?r.fill(t,n):r.fill(t),r},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},{buffer:3}],31:[function(e,t,n){"use strict";function r(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i(e){var t=r(e);if("string"!=typeof t&&(g.isEncoding===v||!v(e)))throw new Error("Unknown encoding: "+e);return t||e}function o(e){var t;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=u,this.end=h,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=d,this.end=f,t=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(t)}function a(e){return 127>=e?0:6==e>>5?2:14==e>>4?3:30==e>>3?4:2==e>>6?-1:-2}function s(e,t,n){var r=t.length-1;if(r=r)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function d(e,t){var n=(e.length-t)%3;return 0==n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1==n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}var g=e("safe-buffer").Buffer,v=g.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};n.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n */const i=e("debug")("simple-peer"),o=e("get-browser-rtc"),a=e("randombytes"),s=e("readable-stream"),l=e("queue-microtask"),c=e("err-code"),{Buffer:u}=e("buffer"),h=65536;class d extends s.Duplex{constructor(e){if(e=Object.assign({allowHalfOpen:!1},e),super(e),this._id=a(4).toString("hex").slice(0,7),this._debug("new peer %o",e),this.channelName=e.initiator?e.channelName||a(20).toString("hex"):null,this.initiator=e.initiator||!1,this.channelConfig=e.channelConfig||d.channelConfig,this.channelNegotiated=this.channelConfig.negotiated,this.config=Object.assign({},d.config,e.config),this.offerOptions=e.offerOptions||{},this.answerOptions=e.answerOptions||{},this.sdpTransform=e.sdpTransform||(e=>e),this.streams=e.streams||(e.stream?[e.stream]:[]),this.trickle=void 0===e.trickle||e.trickle,this.allowHalfTrickle=void 0!==e.allowHalfTrickle&&e.allowHalfTrickle,this.iceCompleteTimeout=e.iceCompleteTimeout||5e3,this.destroyed=!1,this.destroying=!1,this._connected=!1,this.remoteAddress=void 0,this.remoteFamily=void 0,this.remotePort=void 0,this.localAddress=void 0,this.localFamily=void 0,this.localPort=void 0,this._wrtc=e.wrtc&&"object"==typeof e.wrtc?e.wrtc:o(),!this._wrtc)throw"undefined"==typeof window?c(new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"),"ERR_WEBRTC_SUPPORT"):c(new Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=!1,this._firstNegotiation=!0,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new Map,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new this._wrtc.RTCPeerConnection(this.config)}catch(e){return void this.destroy(c(e,"ERR_PC_CONSTRUCTOR"))}this._isReactNativeWebrtc="number"==typeof this._pc._peerConnectionId,this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=e=>{this._onIceCandidate(e)},"object"==typeof this._pc.peerIdentity&&this._pc.peerIdentity.catch(e=>{this.destroy(c(e,"ERR_PC_PEER_IDENTITY"))}),this.initiator||this.channelNegotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=e=>{this._setupData(e)},this.streams&&this.streams.forEach(e=>{this.addStream(e)}),this._pc.ontrack=e=>{this._onTrack(e)},this._debug("initial negotiation"),this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get connected(){return this._connected&&"open"===this._channel.readyState}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot signal after peer is destroyed"),"ERR_DESTROYED");if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e={}}this._debug("signal()"),e.renegotiate&&this.initiator&&(this._debug("got request to renegotiate"),this._needsNegotiation()),e.transceiverRequest&&this.initiator&&(this._debug("got request for transceiver"),this.addTransceiver(e.transceiverRequest.kind,e.transceiverRequest.init)),e.candidate&&(this._pc.remoteDescription&&this._pc.remoteDescription.type?this._addIceCandidate(e.candidate):this._pendingCandidates.push(e.candidate)),e.sdp&&this._pc.setRemoteDescription(new this._wrtc.RTCSessionDescription(e)).then(()=>{this.destroyed||(this._pendingCandidates.forEach(e=>{this._addIceCandidate(e)}),this._pendingCandidates=[],"offer"===this._pc.remoteDescription.type&&this._createAnswer())}).catch(e=>{this.destroy(c(e,"ERR_SET_REMOTE_DESCRIPTION"))}),e.sdp||e.candidate||e.renegotiate||e.transceiverRequest||this.destroy(c(new Error("signal() called with invalid signal data"),"ERR_SIGNALING"))}}_addIceCandidate(e){const t=new this._wrtc.RTCIceCandidate(e);this._pc.addIceCandidate(t).catch(e=>{!t.address||t.address.endsWith(".local")?r("Ignoring unsupported ICE candidate."):this.destroy(c(e,"ERR_ADD_ICE_CANDIDATE"))})}send(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot send after peer is destroyed"),"ERR_DESTROYED");this._channel.send(e)}}addTransceiver(e,t){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot addTransceiver after peer is destroyed"),"ERR_DESTROYED");if(this._debug("addTransceiver()"),this.initiator)try{this._pc.addTransceiver(e,t),this._needsNegotiation()}catch(e){this.destroy(c(e,"ERR_ADD_TRANSCEIVER"))}else this.emit("signal",{type:"transceiverRequest",transceiverRequest:{kind:e,init:t}})}}addStream(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot addStream after peer is destroyed"),"ERR_DESTROYED");this._debug("addStream()"),e.getTracks().forEach(t=>{this.addTrack(t,e)})}}addTrack(e,t){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot addTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("addTrack()");const n=this._senderMap.get(e)||new Map;let r=n.get(t);if(r)throw r.removed?c(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."),"ERR_SENDER_REMOVED"):c(new Error("Track has already been added to that stream."),"ERR_SENDER_ALREADY_ADDED");r=this._pc.addTrack(e,t),n.set(t,r),this._senderMap.set(e,n),this._needsNegotiation()}replaceTrack(e,t,n){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot replaceTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("replaceTrack()");const r=this._senderMap.get(e),i=r?r.get(n):null;if(!i)throw c(new Error("Cannot replace track that was never added."),"ERR_TRACK_NOT_ADDED");t&&this._senderMap.set(t,r),null==i.replaceTrack?this.destroy(c(new Error("replaceTrack is not supported in this browser"),"ERR_UNSUPPORTED_REPLACETRACK")):i.replaceTrack(t)}removeTrack(e,t){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot removeTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSender()");const n=this._senderMap.get(e),r=n?n.get(t):null;if(!r)throw c(new Error("Cannot remove track that was never added."),"ERR_TRACK_NOT_ADDED");try{r.removed=!0,this._pc.removeTrack(r)}catch(e){"NS_ERROR_UNEXPECTED"===e.name?this._sendersAwaitingStable.push(r):this.destroy(c(e,"ERR_REMOVE_TRACK"))}this._needsNegotiation()}removeStream(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot removeStream after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSenders()"),e.getTracks().forEach(t=>{this.removeTrack(t,e)})}}_needsNegotiation(){this._debug("_needsNegotiation"),this._batchedNegotiation||(this._batchedNegotiation=!0,l(()=>{this._batchedNegotiation=!1,this.initiator||!this._firstNegotiation?(this._debug("starting batched negotiation"),this.negotiate()):this._debug("non-initiator initial negotiation request discarded"),this._firstNegotiation=!1}))}negotiate(){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot negotiate after peer is destroyed"),"ERR_DESTROYED");this.initiator?this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("start negotiation"),setTimeout(()=>{this._createOffer()},0)):this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("requesting negotiation from initiator"),this.emit("signal",{type:"renegotiate",renegotiate:!0})),this._isNegotiating=!0}}destroy(e){this._destroy(e,()=>{})}_destroy(e,t){this.destroyed||this.destroying||(this.destroying=!0,this._debug("destroying (error: %s)",e&&(e.message||e)),l(()=>{if(this.destroyed=!0,this.destroying=!1,this._debug("destroy (error: %s)",e&&(e.message||e)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this._connected=!1,this._pcReady=!1,this._channelReady=!1,this._remoteTracks=null,this._remoteStreams=null,this._senderMap=null,clearInterval(this._closingInterval),this._closingInterval=null,clearInterval(this._interval),this._interval=null,this._chunk=null,this._cb=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._channel){try{this._channel.close()}catch(e){}this._channel.onmessage=null,this._channel.onopen=null,this._channel.onclose=null,this._channel.onerror=null}if(this._pc){try{this._pc.close()}catch(e){}this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ontrack=null,this._pc.ondatachannel=null}this._pc=null,this._channel=null,e&&this.emit("error",e),this.emit("close"),t()}))}_setupData(e){if(!e.channel)return this.destroy(c(new Error("Data channel event is missing `channel` property"),"ERR_DATA_CHANNEL"));this._channel=e.channel,this._channel.binaryType="arraybuffer","number"==typeof this._channel.bufferedAmountLowThreshold&&(this._channel.bufferedAmountLowThreshold=h),this.channelName=this._channel.label,this._channel.onmessage=e=>{this._onChannelMessage(e)},this._channel.onbufferedamountlow=()=>{this._onChannelBufferedAmountLow()},this._channel.onopen=()=>{this._onChannelOpen()},this._channel.onclose=()=>{this._onChannelClose()},this._channel.onerror=e=>{const t=e.error instanceof Error?e.error:new Error(`Datachannel error: ${e.message} ${e.filename}:${e.lineno}:${e.colno}`);this.destroy(c(t,"ERR_DATA_CHANNEL"))};let t=!1;this._closingInterval=setInterval(()=>{this._channel&&"closing"===this._channel.readyState?(t&&this._onChannelClose(),t=!0):t=!1},5e3)}_read(){}_write(e,t,n){if(this.destroyed)return n(c(new Error("cannot write after peer is destroyed"),"ERR_DATA_CHANNEL"));if(this._connected){try{this.send(e)}catch(e){return this.destroy(c(e,"ERR_DATA_CHANNEL"))}this._channel.bufferedAmount>h?(this._debug("start backpressure: bufferedAmount %d",this._channel.bufferedAmount),this._cb=n):n(null)}else this._debug("write before connect"),this._chunk=e,this._cb=n}_onFinish(){if(!this.destroyed){const e=()=>{setTimeout(()=>this.destroy(),1e3)};this._connected?e():this.once("connect",e)}}_startIceCompleteTimeout(){this.destroyed||this._iceCompleteTimer||(this._debug("started iceComplete timeout"),this._iceCompleteTimer=setTimeout(()=>{this._iceComplete||(this._iceComplete=!0,this._debug("iceComplete timeout completed"),this.emit("iceTimeout"),this.emit("_iceComplete"))},this.iceCompleteTimeout))}_createOffer(){this.destroyed||this._pc.createOffer(this.offerOptions).then(e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=n(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(!this.destroyed){const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp})}};this._pc.setLocalDescription(e).then(()=>{this._debug("createOffer success"),this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))}).catch(e=>{this.destroy(c(e,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(e=>{this.destroy(c(e,"ERR_CREATE_OFFER"))})}_requestMissingTransceivers(){this._pc.getTransceivers&&this._pc.getTransceivers().forEach(e=>{e.mid||!e.sender.track||e.requested||(e.requested=!0,this.addTransceiver(e.sender.track.kind))})}_createAnswer(){this.destroyed||this._pc.createAnswer(this.answerOptions).then(e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=n(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(!this.destroyed){const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp}),this.initiator||this._requestMissingTransceivers()}};this._pc.setLocalDescription(e).then(()=>{this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))}).catch(e=>{this.destroy(c(e,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(e=>{this.destroy(c(e,"ERR_CREATE_ANSWER"))})}_onConnectionStateChange(){this.destroyed||"failed"===this._pc.connectionState&&this.destroy(c(new Error("Connection failed."),"ERR_CONNECTION_FAILURE"))}_onIceStateChange(){if(this.destroyed)return;const e=this._pc.iceConnectionState,t=this._pc.iceGatheringState;this._debug("iceStateChange (connection: %s) (gathering: %s)",e,t),this.emit("iceStateChange",e,t),("connected"===e||"completed"===e)&&(this._pcReady=!0,this._maybeReady()),"failed"===e&&this.destroy(c(new Error("Ice connection failed."),"ERR_ICE_CONNECTION_FAILURE")),"closed"===e&&this.destroy(c(new Error("Ice connection closed."),"ERR_ICE_CONNECTION_CLOSED"))}getStats(e){const t=e=>("[object Array]"===Object.prototype.toString.call(e.values)&&e.values.forEach(t=>{Object.assign(e,t)}),e);0===this._pc.getStats.length||this._isReactNativeWebrtc?this._pc.getStats().then(n=>{const r=[];n.forEach(e=>{r.push(t(e))}),e(null,r)},t=>e(t)):0{if(this.destroyed)return;const r=[];n.result().forEach(e=>{const n={};e.names().forEach(t=>{n[t]=e.stat(t)}),n.id=e.id,n.type=e.type,n.timestamp=e.timestamp,r.push(t(n))}),e(null,r)},t=>e(t)):e(null,[])}_maybeReady(){if(this._debug("maybeReady pc %s channel %s",this._pcReady,this._channelReady),this._connected||this._connecting||!this._pcReady||!this._channelReady)return;this._connecting=!0;const e=()=>{this.destroyed||this.getStats((t,n)=>{if(this.destroyed)return;t&&(n=[]);const r={},i={},o={};let a=!1;n.forEach(e=>{("remotecandidate"===e.type||"remote-candidate"===e.type)&&(r[e.id]=e),("localcandidate"===e.type||"local-candidate"===e.type)&&(i[e.id]=e),("candidatepair"===e.type||"candidate-pair"===e.type)&&(o[e.id]=e)});const s=e=>{a=!0;let t=i[e.localCandidateId];t&&(t.ip||t.address)?(this.localAddress=t.ip||t.address,this.localPort=+t.port):t&&t.ipAddress?(this.localAddress=t.ipAddress,this.localPort=+t.portNumber):"string"==typeof e.googLocalAddress&&(t=e.googLocalAddress.split(":"),this.localAddress=t[0],this.localPort=+t[1]),this.localAddress&&(this.localFamily=this.localAddress.includes(":")?"IPv6":"IPv4");let n=r[e.remoteCandidateId];n&&(n.ip||n.address)?(this.remoteAddress=n.ip||n.address,this.remotePort=+n.port):n&&n.ipAddress?(this.remoteAddress=n.ipAddress,this.remotePort=+n.portNumber):"string"==typeof e.googRemoteAddress&&(n=e.googRemoteAddress.split(":"),this.remoteAddress=n[0],this.remotePort=+n[1]),this.remoteAddress&&(this.remoteFamily=this.remoteAddress.includes(":")?"IPv6":"IPv4"),this._debug("connect local: %s:%s remote: %s:%s",this.localAddress,this.localPort,this.remoteAddress,this.remotePort)};if(n.forEach(e=>{"transport"===e.type&&e.selectedCandidatePairId&&s(o[e.selectedCandidatePairId]),("googCandidatePair"===e.type&&"true"===e.googActiveConnection||("candidatepair"===e.type||"candidate-pair"===e.type)&&e.selected)&&s(e)}),a||Object.keys(o).length&&!Object.keys(i).length){if(this._connecting=!1,this._connected=!0,this._chunk){try{this.send(this._chunk)}catch(e){return this.destroy(c(e,"ERR_DATA_CHANNEL"))}this._chunk=null,this._debug('sent chunk from "write before connect"');const t=this._cb;this._cb=null,t(null)}"number"!=typeof this._channel.bufferedAmountLowThreshold&&(this._interval=setInterval(()=>this._onInterval(),150),this._interval.unref&&this._interval.unref()),this._debug("connect"),this.emit("connect")}else setTimeout(e,100)})};e()}_onInterval(){this._cb&&this._channel&&!(this._channel.bufferedAmount>h)&&this._onChannelBufferedAmountLow()}_onSignalingStateChange(){this.destroyed||("stable"===this._pc.signalingState&&(this._isNegotiating=!1,this._debug("flushing sender queue",this._sendersAwaitingStable),this._sendersAwaitingStable.forEach(e=>{this._pc.removeTrack(e),this._queuedNegotiation=!0}),this._sendersAwaitingStable=[],this._queuedNegotiation?(this._debug("flushing negotiation queue"),this._queuedNegotiation=!1,this._needsNegotiation()):(this._debug("negotiated"),this.emit("negotiated"))),this._debug("signalingStateChange %s",this._pc.signalingState),this.emit("signalingStateChange",this._pc.signalingState))}_onIceCandidate(e){this.destroyed||(e.candidate&&this.trickle?this.emit("signal",{type:"candidate",candidate:{candidate:e.candidate.candidate,sdpMLineIndex:e.candidate.sdpMLineIndex,sdpMid:e.candidate.sdpMid}}):!e.candidate&&!this._iceComplete&&(this._iceComplete=!0,this.emit("_iceComplete")),e.candidate&&this._startIceCompleteTimeout())}_onChannelMessage(e){if(this.destroyed)return;let t=e.data;t instanceof ArrayBuffer&&(t=u.from(t)),this.push(t)}_onChannelBufferedAmountLow(){if(!this.destroyed&&this._cb){this._debug("ending backpressure: bufferedAmount %d",this._channel.bufferedAmount);const e=this._cb;this._cb=null,e(null)}}_onChannelOpen(){this._connected||this.destroyed||(this._debug("on channel open"),this._channelReady=!0,this._maybeReady())}_onChannelClose(){this.destroyed||(this._debug("on channel close"),this.destroy())}_onTrack(e){this.destroyed||e.streams.forEach(t=>{this._debug("on track"),this.emit("track",e.track,t),this._remoteTracks.push({track:e.track,stream:t}),this._remoteStreams.some(e=>e.id===t.id)||(this._remoteStreams.push(t),l(()=>{this._debug("on stream"),this.emit("stream",t)}))})}_debug(){const e=[].slice.call(arguments);e[0]="["+this._id+"] "+e[0],i.apply(null,e)}}d.WEBRTC_SUPPORT=!!o(),d.config={iceServers:[{urls:["stun:stun.l.google.com:19302","stun:global.stun.twilio.com:3478"]}],sdpSemantics:"unified-plan"},d.channelConfig={},t.exports=d},{buffer:3,debug:4,"err-code":6,"get-browser-rtc":8,"queue-microtask":13,randombytes:14,"readable-stream":29}]},{},[])("/")}))}).call(this,n("c8ba"))},e274:function(e,t,n){e.exports=n.p+"img/sannianjihua.svg"},e34b:function(e,t,n){e.exports=n.p+"img/a-11-yiyongweishengzhi.svg"},e35d:function(e,t,n){e.exports=n.p+"img/huiyi.svg"},e362:function(e,t,n){e.exports=n.p+"img/tianping.svg"},e372:function(e,t,n){t=e.exports=n("ad71"),t.Stream=t,t.Readable=t,t.Writable=n("dc14"),t.Duplex=n("b19a"),t.Transform=n("27bf"),t.PassThrough=n("780f")},e391:function(e,t,n){var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e3da:function(e,t,n){"use strict";n.r(t),n.d(t,"keydownHandler",(function(){return b})),n.d(t,"keymap",(function(){return v}));for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),a=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=a||o&&+o[1]<57,c=0;c<10;c++)r[48+c]=r[96+c]=String(c);for(c=1;c<=24;c++)r[c+111]="F"+c;for(c=65;c<=90;c++)r[c]=String.fromCharCode(c+32),i[c]=String.fromCharCode(c);for(var u in r)i.hasOwnProperty(u)||(i[u]=r[u]);function h(e){var t=l&&(e.ctrlKey||e.altKey||e.metaKey)||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key,n=!t&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var d=n("6ffb");const f="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function p(e){let t,n,r,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(let s=0;s127)&&(i=r[n.keyCode])&&i!=o){let r=t[g(i,n,!0)];if(r&&r(e.state,e.dispatch,e))return!0}else if(a&&n.shiftKey){let r=t[g(o,n,!0)];if(r&&r(e.state,e.dispatch,e))return!0}return!1}}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e40b:function(e,t,n){e.exports=n.p+"img/feizhengshiwendengji.svg"},e437:function(e,t,n){e.exports=n.p+"img/fuqinjie.svg"},e497:function(e,t,n){e.exports=n.p+"img/dark4.jpg"},e4a4:function(e,t,n){e.exports=n.p+"img/a-16-yiyuan.svg"},e531:function(e,t,n){e.exports=n.p+"img/a-4-lunyi.svg"},e5cb:function(e,t,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),c=n("aeb0"),u=n("7156"),h=n("e391"),d=n("ab36"),f=n("0d26"),p=n("b980"),m=n("83ab"),g=n("c430");e.exports=function(e,t,n,v){var b="stackTraceLimit",y=v?2:1,w=e.split("."),x=w[w.length-1],k=r.apply(null,w);if(k){var A=k.prototype;if(!g&&i(A,"cause")&&delete A.cause,!n)return k;var C=r("Error"),E=t((function(e,t){var n=h(v?t:e,void 0),r=v?new k(e):new k;return void 0!==n&&o(r,"message",n),p&&o(r,"stack",f(r.stack,2)),this&&a(A,this)&&u(r,this,E),arguments.length>y&&d(r,arguments[y]),r}));if(E.prototype=A,"Error"!==x?s?s(E,C):l(E,C,{name:!0}):m&&b in k&&(c(E,k,b),c(E,k,"prepareStackTrace")),l(E,k),!g)try{A.name!==x&&o(A,"name",x),A.constructor=E}catch(S){}return E}}},e6d0:function(e,t,n){"use strict";n("f889")},e6db:function(e,t,n){"use strict";var r=n("59ec"),i=n("5974").findLastIndex,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},e71d:function(e,t){var n=-1,r=1,i=0;function o(e,t,n){if(e==t)return e?[[i,e]]:[];(n<0||e.lengtht.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return a=[[r,l.substring(0,u)],[i,c],[r,l.substring(u+c.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==c.length)return[[n,e],[r,t]];var d=h(e,t);if(d){var f=d[0],p=d[1],m=d[2],g=d[3],v=d[4],b=o(f,m),y=o(p,g);return b.concat([[i,v]],y)}return s(e,t)}function s(e,t){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,c=2*a,u=new Array(c),h=new Array(c),d=0;di)g+=2;else if(k>o)m+=2;else if(p){var A=s+f-w;if(A>=0&&A=C)return l(e,t,T,k)}}}for(var E=-y+v;E<=y-b;E+=2){A=s+E;C=E==-y||E!=y&&h[A-1]i)b+=2;else if(S>o)v+=2;else if(!p){x=s+f-E;if(x>=0&&x=C)return l(e,t,T,k)}}}}return[[n,e],[r,t]]}function l(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=o(i,a),u=o(s,l);return c.concat(u)}function c(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,o,a,h]:null}var o,a,s,l,h,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));if(!d&&!f)return null;o=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(a=o[0],s=o[1],l=o[2],h=o[3]):(l=o[0],h=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,h,p]}function d(e){e.push([i,""]);var t,o=0,a=0,s=0,l="",h="";while(o1?(0!==a&&0!==s&&(t=c(h,l),0!==t&&(o-a-s>0&&e[o-a-s-1][0]==i?e[o-a-s-1][1]+=h.substring(0,t):(e.splice(0,0,[i,h.substring(0,t)]),o++),h=h.substring(t),l=l.substring(t)),t=u(h,l),0!==t&&(e[o][1]=h.substring(h.length-t)+e[o][1],h=h.substring(0,h.length-t),l=l.substring(0,l.length-t))),0===a?e.splice(o-s,a+s,[r,h]):0===s?e.splice(o-a,a+s,[n,l]):e.splice(o-a-s,a+s,[n,l],[r,h]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,s=0,a=0,l="",h="";break}""===e[e.length-1][1]&&e.pop();var f=!1;o=1;while(o0&&r.splice(o+2,0,[s[0],l]),v(r,o,3)}return e}function g(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s0&&l.push(e[s]);return l}function v(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1new Uint8Array(e),a=(e,t,n)=>new Uint8Array(e,t,n),s=e=>new Uint8Array(e),l=e=>{let t="";for(let n=0;ne.from(t.buffer,t.byteOffset,t.byteLength).toString("base64"),u=e=>{const t=atob(e),n=o(t.length);for(let r=0;r{const n=e.from(t,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)},d=i["b"]?l:c,f=i["b"]?u:h,p=e=>{const t=o(e.byteLength);return t.set(e),t}}).call(this,n("b639").Buffer)},f059:function(e,t,n){ +"use strict";var t=String.fromCharCode,r=Math.min;function o(e){if(2147483647e)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e,t,n){return l(e),0>=e||void 0===t?o(e):"string"==typeof n?o(e).fill(t,n):o(e).fill(t)}function u(e){return l(e),o(0>e?0:0|m(e))}function h(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|g(e,t),r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function d(e){for(var t=0>e.length?0:0|m(e.length),n=o(t),r=0;rt||e.byteLength=2147483647)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+2147483647..toString(16)+" bytes");return 0|e}function g(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=2>>1;case"base64":return G(e).length;default:if(i)return r?-1:H(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){var r=!1;if((void 0===t||0>t)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),0>=n)return"";if(n>>>=0,t>>>=0,n<=t)return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,n);case"utf8":case"utf-8":return N(this,t,n);case"ascii":return L(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647n&&(n=-2147483648),n=+n,Y(n)&&(n=i?0:e.length-1),0>n&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(0>n){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,r)),a.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,i){function o(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}var a,s=1,l=e.length,c=t.length;if(void 0!==r&&(r=(r+"").toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(2>e.length||2>t.length)return-1;s=2,l/=2,c/=2,n/=2}if(i){var u=-1;for(a=n;al&&(n=l-c),a=n;0<=a;a--){for(var h=!0,d=0;di&&(r=i)):r=i;var o=t.length;r>o/2&&(r=o/2);for(var a,s=0;su&&(h=u):2===d?(a=e[o+1],128==(192&a)&&(c=(31&u)<<6|63&a,127c||57343c&&(h=c)));null===h?(h=65533,d=1):65535>>10),h=56320|1023&h),i.push(h),o+=d}return M(i)}function M(e){var n=e.length;if(n<=4096)return t.apply(String,e);for(var r="",i=0;it)&&(t=0),(!n||0>n||n>r)&&(n=r);for(var i="",o=t;oe)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function F(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(0>n)throw new RangeError("Index out of range")}function z(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,t,n,4,34028234663852886e22,-34028234663852886e22),K.write(e,t,n,r,23,4),n+4}function B(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,t,n,8,17976931348623157e292,-17976931348623157e292),K.write(e,t,n,r,52,8),n+8}function _(e){if(e=e.split("=")[0],e=e.trim().replace(X,""),2>e.length)return"";for(;0!=e.length%4;)e+="=";return e}function j(e){return 16>e?"0"+e.toString(16):e.toString(16)}function H(e,t){t=t||1/0;for(var n,r=e.length,i=null,o=[],a=0;an){if(!i){if(56319n){-1<(t-=3)&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&-1<(t-=3)&&o.push(239,191,189);if(i=null,128>n){if(0>(t-=1))break;o.push(n)}else if(2048>n){if(0>(t-=2))break;o.push(192|n>>6,128|63&n)}else if(65536>n){if(0>(t-=3))break;o.push(224|n>>12,128|63&n>>6,128|63&n)}else{if(!(1114112>n))throw new Error("Invalid code point");if(0>(t-=4))break;o.push(240|n>>18,128|63&n>>12,128|63&n>>6,128|63&n)}}return o}function U(e){for(var t=[],n=0;n(t-=2));++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function G(e){return Z.toByteArray(_(e))}function W(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!==e}var Z=e("base64-js"),K=e("ieee754");n.Buffer=a,n.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},n.INSPECT_MAX_BYTES=50,n.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){return a.isBuffer(this)?this.buffer:void 0}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){return a.isBuffer(this)?this.byteOffset:void 0}}),"undefined"!=typeof Symbol&&null!=Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(e,t,n){return s(e,t,n)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(e,t,n){return c(e,t,n)},a.allocUnsafe=function(e){return u(e)},a.allocUnsafeSlow=function(e){return u(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(V(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,i=t.length,o=0,s=r(n,i);ot&&(e+=" ... "),""},a.prototype.compare=function(e,t,n,i,o){if(V(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),0>t||n>e.length||0>i||o>this.length)throw new RangeError("out of range index");if(i>=o&&t>=n)return 0;if(i>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,o>>>=0,this===e)return 0;for(var s=o-i,l=n-t,c=r(s,l),u=this.slice(i,o),h=e.slice(t,n),d=0;d>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),0n||0>t)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return A(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),t>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],i=1,o=0;++o>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e+--t],i=1;0>>=0,t||I(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=this[e],o=1,a=0;++a=o&&(r-=i(2,8*t)),r},a.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);for(var r=t,o=1,a=this[e+--r];0=o&&(a-=i(2,8*t)),a},a.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),K.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),K.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),K.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),K.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var o=i(2,8*n)-1;R(this,e,t,n,o,0)}var a=1,s=0;for(this[t]=255&e;++s>>=0,n>>>=0,!r){var o=i(2,8*n)-1;R(this,e,t,n,o,0)}var a=n-1,s=1;for(this[t+a]=255&e;0<=--a&&(s*=256);)this[t+a]=255&e/s;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=i(2,8*n-1);R(this,e,t,n,o-1,-o)}var a=0,s=1,l=0;for(this[t]=255&e;++ae&&0===l&&0!==this[t+a-1]&&(l=1),this[t+a]=255&(e/s>>0)-l;return t+n},a.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=i(2,8*n-1);R(this,e,t,n,o-1,-o)}var a=n-1,s=1,l=0;for(this[t+a]=255&e;0<=--a&&(s*=256);)0>e&&0===l&&0!==this[t+a+1]&&(l=1),this[t+a]=255&(e/s>>0)-l;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,1,127,-128),0>e&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||R(this,e,t,4,2147483647,-2147483648),0>e&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return B(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return B(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,r){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),0t)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("Index out of range");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-ti||"latin1"===r)&&(e=i)}}else"number"==typeof e&&(e&=255);if(0>t||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o{"%%"===e||(r++,"%c"===e&&(i=r))}),e.splice(i,0,n)},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug")}catch(e){}},n.load=i,n.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),t.exports=e("./common")(n);const{formatters:o}=t.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}).call(this)}).call(this,e("_process"))},{"./common":5,_process:12}],5:[function(e,t){t.exports=function(t){function n(e){function t(...e){if(!t.enabled)return;const i=t,o=+new Date,a=o-(r||o);i.diff=a,i.prev=r,i.curr=o,r=o,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(t,r)=>{if("%%"===t)return"%";s++;const o=n.formatters[r];if("function"==typeof o){const n=e[s];t=o.call(i,n),e.splice(s,1),s--}return t}),n.formatArgs.call(i,e);const l=i.log||n.log;l.apply(i,e)}let r,o=null;return t.namespace=e,t.useColors=n.useColors(),t.color=n.selectColor(e),t.extend=i,t.destroy=n.destroy,Object.defineProperty(t,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?n.enabled(e):o,set:e=>{o=e}}),"function"==typeof n.init&&n.init(t),t}function i(e,t){const r=n(this.namespace+("undefined"==typeof t?":":t)+e);return r.log=this.log,r}function o(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(o),...n.skips.map(o).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(t=0;t{n[e]=t[e]}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;ns&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=c.length,n(u)}return e}function s(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=s.bind(r);return i.listener=n,r.wrapFn=i,i}function c(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?f(i):h(i,i.length)}function u(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=Array(t),r=0;re||y(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");w=e}}),r.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},r.prototype.setMaxListeners=function(e){if("number"!=typeof e||0>e||y(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},r.prototype.getMaxListeners=function(){return o(this)},r.prototype.emit=function(e){for(var t=[],n=1;no)return this;0===o?n.shift():d(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},r.prototype.off=r.prototype.removeListener,r.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r */o.read=function(e,t,n,r,o){var a,s,l=8*o-r-1,c=(1<>1,h=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-h)-1,p>>=-h,h+=l;0>=-h,h+=r;0>1,v=23===s?i(2,-24)-i(2,-77):0,b=a?0:l-1,y=a?1:-1,w=0>n||0===n&&0>1/n?1:0;for(n=r(n),isNaN(n)||n===1/0?(u=isNaN(n)?1:0,c=m):(c=e(f(n)/d),1>n*(h=i(2,-c))&&(c--,h*=2),n+=1<=c+g?v/h:v*i(2,1-g),2<=n*h&&(c++,h/=2),c+g>=m?(u=0,c=m):1<=c+g?(u=(n*h-1)*i(2,s),c+=g):(u=n*i(2,g-1)*i(2,s),c=0));8<=s;t[o+b]=255&u,b+=y,u/=256,s-=8);for(c=c<=1.5*r?"s":"")}t.exports=function(e,t){t=t||{};var n=typeof e;if("string"==n&&0 */let t;n.exports="function"==typeof queueMicrotask?queueMicrotask.bind("undefined"==typeof window?e:window):e=>(t||(t=Promise.resolve())).then(e).catch(e=>setTimeout(()=>{throw e},0))}).call(this)}).call(this,"undefined"==typeof t?"undefined"==typeof self?"undefined"==typeof window?{}:window:self:t)},{}],14:[function(e,n){(function(t,r){(function(){"use strict";var i=e("safe-buffer").Buffer,o=r.crypto||r.msCrypto;n.exports=o&&o.getRandomValues?function(e,n){if(e>4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(e);if(0n?0:+n,t.length)===t}function a(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}function s(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}var l={};r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,l;if("string"==typeof t&&o(t,"not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be",a(e," argument"))l="The ".concat(e," ").concat(r," ").concat(i(t,"type"));else{var c=s(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(c," ").concat(r," ").concat(i(t,"type"))}return l+=". Received type ".concat(typeof n),l}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=l},{}],16:[function(e,t){(function(n){(function(){"use strict";function r(e){return this instanceof r?(s.call(this,e),l.call(this,e),this.allowHalfOpen=!0,void(e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",i))))):new r(e)}function i(){this._writableState.ended||n.nextTick(o,this)}function o(e){e.end()}var a=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};t.exports=r;var s=e("./_stream_readable"),l=e("./_stream_writable");e("inherits")(r,s);for(var c,u=a(l.prototype),h=0;h>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function f(e,t){return 0>=e||0===t.length&&t.ended?0:t.objectMode?1:e===e?(e>t.highWaterMark&&(t.highWaterMark=d(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}function p(e,t){if(L("onEofChunk"),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?m(e):(t.needReadable=!1,!t.emittedReadable&&(t.emittedReadable=!0,g(e)))}}function m(e){var n=e._readableState;L("emitReadable",n.needReadable,n.emittedReadable),n.needReadable=!1,n.emittedReadable||(L("emitReadable",n.flowing),n.emittedReadable=!0,t.nextTick(g,e))}function g(e){var t=e._readableState;L("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,C(e)}function v(e,n){n.readingMore||(n.readingMore=!0,t.nextTick(b,e,n))}function b(e,t){for(;!t.reading&&!t.ended&&(t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function S(e){var n=e._readableState;L("endReadable",n.endEmitted),n.endEmitted||(n.ended=!0,t.nextTick(T,n,e))}function T(e,t){if(L("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function N(e,t){for(var n=0,r=e.length;n=t.highWaterMark)||t.ended))return L("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?S(this):m(this),null;if(e=f(e,t),0===e&&t.ended)return 0===t.length&&S(this),null;var r,i=t.needReadable;return L("need readable",i),(0===t.length||t.length-e>>0),n=this.head,r=0;n;)l(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return ei.length?i.length:e;if(r+=o===i.length?i:i.slice(0,e),e-=o,0===e){o===i.length?(++n,this.head=t.next?t.next:this.tail=null):(this.head=t,t.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=u.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,o),e-=o,0===e){o===i.length?(++r,this.head=n.next?n.next:this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,t}},{key:f,value:function(e,t){return d(this,r({},t,{depth:0,customInspect:!1}))}}]),e}()},{buffer:3,util:2}],23:[function(e,t){(function(e){(function(){"use strict";function n(e,t){i(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function i(e,t){e.emit("error",t)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(o?o(t):t&&(this._writableState?!this._writableState.errorEmitted&&(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(r,a):(a._writableState.errorEmitted=!0,e.nextTick(n,a,t)):e.nextTick(n,a,t):o?(e.nextTick(r,a),o(t)):e.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}}).call(this)}).call(this,e("_process"))},{_process:12}],24:[function(e,t){"use strict";function n(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=Array(n),i=0;it.length)throw new h("streams");var i,c=t.map((function(e,n){var s=ns){var l=a?o:"highWaterMark";throw new i(l,s)}return e(s)}return t.objectMode?16:16384}}},{"../../../errors":15}],28:[function(e,t){t.exports=e("events").EventEmitter},{events:7}],29:[function(e,t,n){n=t.exports=e("./lib/_stream_readable.js"),n.Stream=n,n.Readable=n,n.Writable=e("./lib/_stream_writable.js"),n.Duplex=e("./lib/_stream_duplex.js"),n.Transform=e("./lib/_stream_transform.js"),n.PassThrough=e("./lib/_stream_passthrough.js"),n.finished=e("./lib/internal/streams/end-of-stream.js"),n.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":16,"./lib/_stream_passthrough.js":17,"./lib/_stream_readable.js":18,"./lib/_stream_transform.js":19,"./lib/_stream_writable.js":20,"./lib/internal/streams/end-of-stream.js":24,"./lib/internal/streams/pipeline.js":26}],30:[function(e,t,n){function r(e,t){for(var n in e)t[n]=e[n]}function i(e,t,n){return a(e,t,n)}/*! safe-buffer. MIT License. Feross Aboukhadijeh */var o=e("buffer"),a=o.Buffer;a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?t.exports=o:(r(o,n),n.Buffer=i),i.prototype=Object.create(a.prototype),r(a,i),i.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return a(e,t,n)},i.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=a(e);return void 0===t?r.fill(0):"string"==typeof n?r.fill(t,n):r.fill(t),r},i.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return a(e)},i.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o.SlowBuffer(e)}},{buffer:3}],31:[function(e,t,n){"use strict";function r(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i(e){var t=r(e);if("string"!=typeof t&&(g.isEncoding===v||!v(e)))throw new Error("Unknown encoding: "+e);return t||e}function o(e){var t;switch(this.encoding=i(e),this.encoding){case"utf16le":this.text=u,this.end=h,t=4;break;case"utf8":this.fillLast=c,t=4;break;case"base64":this.text=d,this.end=f,t=3;break;default:return this.write=p,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(t)}function a(e){return 127>=e?0:6==e>>5?2:14==e>>4?3:30==e>>3?4:2==e>>6?-1:-2}function s(e,t,n){var r=t.length-1;if(r=r)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function h(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function d(e,t){var n=(e.length-t)%3;return 0==n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1==n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}var g=e("safe-buffer").Buffer,v=g.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};n.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n */const i=e("debug")("simple-peer"),o=e("get-browser-rtc"),a=e("randombytes"),s=e("readable-stream"),l=e("queue-microtask"),c=e("err-code"),{Buffer:u}=e("buffer"),h=65536;class d extends s.Duplex{constructor(e){if(e=Object.assign({allowHalfOpen:!1},e),super(e),this._id=a(4).toString("hex").slice(0,7),this._debug("new peer %o",e),this.channelName=e.initiator?e.channelName||a(20).toString("hex"):null,this.initiator=e.initiator||!1,this.channelConfig=e.channelConfig||d.channelConfig,this.channelNegotiated=this.channelConfig.negotiated,this.config=Object.assign({},d.config,e.config),this.offerOptions=e.offerOptions||{},this.answerOptions=e.answerOptions||{},this.sdpTransform=e.sdpTransform||(e=>e),this.streams=e.streams||(e.stream?[e.stream]:[]),this.trickle=void 0===e.trickle||e.trickle,this.allowHalfTrickle=void 0!==e.allowHalfTrickle&&e.allowHalfTrickle,this.iceCompleteTimeout=e.iceCompleteTimeout||5e3,this.destroyed=!1,this.destroying=!1,this._connected=!1,this.remoteAddress=void 0,this.remoteFamily=void 0,this.remotePort=void 0,this.localAddress=void 0,this.localFamily=void 0,this.localPort=void 0,this._wrtc=e.wrtc&&"object"==typeof e.wrtc?e.wrtc:o(),!this._wrtc)throw"undefined"==typeof window?c(new Error("No WebRTC support: Specify `opts.wrtc` option in this environment"),"ERR_WEBRTC_SUPPORT"):c(new Error("No WebRTC support: Not a supported browser"),"ERR_WEBRTC_SUPPORT");this._pcReady=!1,this._channelReady=!1,this._iceComplete=!1,this._iceCompleteTimer=null,this._channel=null,this._pendingCandidates=[],this._isNegotiating=!1,this._firstNegotiation=!0,this._batchedNegotiation=!1,this._queuedNegotiation=!1,this._sendersAwaitingStable=[],this._senderMap=new Map,this._closingInterval=null,this._remoteTracks=[],this._remoteStreams=[],this._chunk=null,this._cb=null,this._interval=null;try{this._pc=new this._wrtc.RTCPeerConnection(this.config)}catch(e){return void this.destroy(c(e,"ERR_PC_CONSTRUCTOR"))}this._isReactNativeWebrtc="number"==typeof this._pc._peerConnectionId,this._pc.oniceconnectionstatechange=()=>{this._onIceStateChange()},this._pc.onicegatheringstatechange=()=>{this._onIceStateChange()},this._pc.onconnectionstatechange=()=>{this._onConnectionStateChange()},this._pc.onsignalingstatechange=()=>{this._onSignalingStateChange()},this._pc.onicecandidate=e=>{this._onIceCandidate(e)},"object"==typeof this._pc.peerIdentity&&this._pc.peerIdentity.catch(e=>{this.destroy(c(e,"ERR_PC_PEER_IDENTITY"))}),this.initiator||this.channelNegotiated?this._setupData({channel:this._pc.createDataChannel(this.channelName,this.channelConfig)}):this._pc.ondatachannel=e=>{this._setupData(e)},this.streams&&this.streams.forEach(e=>{this.addStream(e)}),this._pc.ontrack=e=>{this._onTrack(e)},this._debug("initial negotiation"),this._needsNegotiation(),this._onFinishBound=()=>{this._onFinish()},this.once("finish",this._onFinishBound)}get bufferSize(){return this._channel&&this._channel.bufferedAmount||0}get connected(){return this._connected&&"open"===this._channel.readyState}address(){return{port:this.localPort,family:this.localFamily,address:this.localAddress}}signal(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot signal after peer is destroyed"),"ERR_DESTROYED");if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e={}}this._debug("signal()"),e.renegotiate&&this.initiator&&(this._debug("got request to renegotiate"),this._needsNegotiation()),e.transceiverRequest&&this.initiator&&(this._debug("got request for transceiver"),this.addTransceiver(e.transceiverRequest.kind,e.transceiverRequest.init)),e.candidate&&(this._pc.remoteDescription&&this._pc.remoteDescription.type?this._addIceCandidate(e.candidate):this._pendingCandidates.push(e.candidate)),e.sdp&&this._pc.setRemoteDescription(new this._wrtc.RTCSessionDescription(e)).then(()=>{this.destroyed||(this._pendingCandidates.forEach(e=>{this._addIceCandidate(e)}),this._pendingCandidates=[],"offer"===this._pc.remoteDescription.type&&this._createAnswer())}).catch(e=>{this.destroy(c(e,"ERR_SET_REMOTE_DESCRIPTION"))}),e.sdp||e.candidate||e.renegotiate||e.transceiverRequest||this.destroy(c(new Error("signal() called with invalid signal data"),"ERR_SIGNALING"))}}_addIceCandidate(e){const t=new this._wrtc.RTCIceCandidate(e);this._pc.addIceCandidate(t).catch(e=>{!t.address||t.address.endsWith(".local")?r("Ignoring unsupported ICE candidate."):this.destroy(c(e,"ERR_ADD_ICE_CANDIDATE"))})}send(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot send after peer is destroyed"),"ERR_DESTROYED");this._channel.send(e)}}addTransceiver(e,t){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot addTransceiver after peer is destroyed"),"ERR_DESTROYED");if(this._debug("addTransceiver()"),this.initiator)try{this._pc.addTransceiver(e,t),this._needsNegotiation()}catch(e){this.destroy(c(e,"ERR_ADD_TRANSCEIVER"))}else this.emit("signal",{type:"transceiverRequest",transceiverRequest:{kind:e,init:t}})}}addStream(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot addStream after peer is destroyed"),"ERR_DESTROYED");this._debug("addStream()"),e.getTracks().forEach(t=>{this.addTrack(t,e)})}}addTrack(e,t){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot addTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("addTrack()");const n=this._senderMap.get(e)||new Map;let r=n.get(t);if(r)throw r.removed?c(new Error("Track has been removed. You should enable/disable tracks that you want to re-add."),"ERR_SENDER_REMOVED"):c(new Error("Track has already been added to that stream."),"ERR_SENDER_ALREADY_ADDED");r=this._pc.addTrack(e,t),n.set(t,r),this._senderMap.set(e,n),this._needsNegotiation()}replaceTrack(e,t,n){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot replaceTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("replaceTrack()");const r=this._senderMap.get(e),i=r?r.get(n):null;if(!i)throw c(new Error("Cannot replace track that was never added."),"ERR_TRACK_NOT_ADDED");t&&this._senderMap.set(t,r),null==i.replaceTrack?this.destroy(c(new Error("replaceTrack is not supported in this browser"),"ERR_UNSUPPORTED_REPLACETRACK")):i.replaceTrack(t)}removeTrack(e,t){if(this.destroying)return;if(this.destroyed)throw c(new Error("cannot removeTrack after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSender()");const n=this._senderMap.get(e),r=n?n.get(t):null;if(!r)throw c(new Error("Cannot remove track that was never added."),"ERR_TRACK_NOT_ADDED");try{r.removed=!0,this._pc.removeTrack(r)}catch(e){"NS_ERROR_UNEXPECTED"===e.name?this._sendersAwaitingStable.push(r):this.destroy(c(e,"ERR_REMOVE_TRACK"))}this._needsNegotiation()}removeStream(e){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot removeStream after peer is destroyed"),"ERR_DESTROYED");this._debug("removeSenders()"),e.getTracks().forEach(t=>{this.removeTrack(t,e)})}}_needsNegotiation(){this._debug("_needsNegotiation"),this._batchedNegotiation||(this._batchedNegotiation=!0,l(()=>{this._batchedNegotiation=!1,this.initiator||!this._firstNegotiation?(this._debug("starting batched negotiation"),this.negotiate()):this._debug("non-initiator initial negotiation request discarded"),this._firstNegotiation=!1}))}negotiate(){if(!this.destroying){if(this.destroyed)throw c(new Error("cannot negotiate after peer is destroyed"),"ERR_DESTROYED");this.initiator?this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("start negotiation"),setTimeout(()=>{this._createOffer()},0)):this._isNegotiating?(this._queuedNegotiation=!0,this._debug("already negotiating, queueing")):(this._debug("requesting negotiation from initiator"),this.emit("signal",{type:"renegotiate",renegotiate:!0})),this._isNegotiating=!0}}destroy(e){this._destroy(e,()=>{})}_destroy(e,t){this.destroyed||this.destroying||(this.destroying=!0,this._debug("destroying (error: %s)",e&&(e.message||e)),l(()=>{if(this.destroyed=!0,this.destroying=!1,this._debug("destroy (error: %s)",e&&(e.message||e)),this.readable=this.writable=!1,this._readableState.ended||this.push(null),this._writableState.finished||this.end(),this._connected=!1,this._pcReady=!1,this._channelReady=!1,this._remoteTracks=null,this._remoteStreams=null,this._senderMap=null,clearInterval(this._closingInterval),this._closingInterval=null,clearInterval(this._interval),this._interval=null,this._chunk=null,this._cb=null,this._onFinishBound&&this.removeListener("finish",this._onFinishBound),this._onFinishBound=null,this._channel){try{this._channel.close()}catch(e){}this._channel.onmessage=null,this._channel.onopen=null,this._channel.onclose=null,this._channel.onerror=null}if(this._pc){try{this._pc.close()}catch(e){}this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ontrack=null,this._pc.ondatachannel=null}this._pc=null,this._channel=null,e&&this.emit("error",e),this.emit("close"),t()}))}_setupData(e){if(!e.channel)return this.destroy(c(new Error("Data channel event is missing `channel` property"),"ERR_DATA_CHANNEL"));this._channel=e.channel,this._channel.binaryType="arraybuffer","number"==typeof this._channel.bufferedAmountLowThreshold&&(this._channel.bufferedAmountLowThreshold=h),this.channelName=this._channel.label,this._channel.onmessage=e=>{this._onChannelMessage(e)},this._channel.onbufferedamountlow=()=>{this._onChannelBufferedAmountLow()},this._channel.onopen=()=>{this._onChannelOpen()},this._channel.onclose=()=>{this._onChannelClose()},this._channel.onerror=e=>{const t=e.error instanceof Error?e.error:new Error(`Datachannel error: ${e.message} ${e.filename}:${e.lineno}:${e.colno}`);this.destroy(c(t,"ERR_DATA_CHANNEL"))};let t=!1;this._closingInterval=setInterval(()=>{this._channel&&"closing"===this._channel.readyState?(t&&this._onChannelClose(),t=!0):t=!1},5e3)}_read(){}_write(e,t,n){if(this.destroyed)return n(c(new Error("cannot write after peer is destroyed"),"ERR_DATA_CHANNEL"));if(this._connected){try{this.send(e)}catch(e){return this.destroy(c(e,"ERR_DATA_CHANNEL"))}this._channel.bufferedAmount>h?(this._debug("start backpressure: bufferedAmount %d",this._channel.bufferedAmount),this._cb=n):n(null)}else this._debug("write before connect"),this._chunk=e,this._cb=n}_onFinish(){if(!this.destroyed){const e=()=>{setTimeout(()=>this.destroy(),1e3)};this._connected?e():this.once("connect",e)}}_startIceCompleteTimeout(){this.destroyed||this._iceCompleteTimer||(this._debug("started iceComplete timeout"),this._iceCompleteTimer=setTimeout(()=>{this._iceComplete||(this._iceComplete=!0,this._debug("iceComplete timeout completed"),this.emit("iceTimeout"),this.emit("_iceComplete"))},this.iceCompleteTimeout))}_createOffer(){this.destroyed||this._pc.createOffer(this.offerOptions).then(e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=n(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(!this.destroyed){const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp})}};this._pc.setLocalDescription(e).then(()=>{this._debug("createOffer success"),this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))}).catch(e=>{this.destroy(c(e,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(e=>{this.destroy(c(e,"ERR_CREATE_OFFER"))})}_requestMissingTransceivers(){this._pc.getTransceivers&&this._pc.getTransceivers().forEach(e=>{e.mid||!e.sender.track||e.requested||(e.requested=!0,this.addTransceiver(e.sender.track.kind))})}_createAnswer(){this.destroyed||this._pc.createAnswer(this.answerOptions).then(e=>{if(this.destroyed)return;this.trickle||this.allowHalfTrickle||(e.sdp=n(e.sdp)),e.sdp=this.sdpTransform(e.sdp);const t=()=>{if(!this.destroyed){const t=this._pc.localDescription||e;this._debug("signal"),this.emit("signal",{type:t.type,sdp:t.sdp}),this.initiator||this._requestMissingTransceivers()}};this._pc.setLocalDescription(e).then(()=>{this.destroyed||(this.trickle||this._iceComplete?t():this.once("_iceComplete",t))}).catch(e=>{this.destroy(c(e,"ERR_SET_LOCAL_DESCRIPTION"))})}).catch(e=>{this.destroy(c(e,"ERR_CREATE_ANSWER"))})}_onConnectionStateChange(){this.destroyed||"failed"===this._pc.connectionState&&this.destroy(c(new Error("Connection failed."),"ERR_CONNECTION_FAILURE"))}_onIceStateChange(){if(this.destroyed)return;const e=this._pc.iceConnectionState,t=this._pc.iceGatheringState;this._debug("iceStateChange (connection: %s) (gathering: %s)",e,t),this.emit("iceStateChange",e,t),("connected"===e||"completed"===e)&&(this._pcReady=!0,this._maybeReady()),"failed"===e&&this.destroy(c(new Error("Ice connection failed."),"ERR_ICE_CONNECTION_FAILURE")),"closed"===e&&this.destroy(c(new Error("Ice connection closed."),"ERR_ICE_CONNECTION_CLOSED"))}getStats(e){const t=e=>("[object Array]"===Object.prototype.toString.call(e.values)&&e.values.forEach(t=>{Object.assign(e,t)}),e);0===this._pc.getStats.length||this._isReactNativeWebrtc?this._pc.getStats().then(n=>{const r=[];n.forEach(e=>{r.push(t(e))}),e(null,r)},t=>e(t)):0{if(this.destroyed)return;const r=[];n.result().forEach(e=>{const n={};e.names().forEach(t=>{n[t]=e.stat(t)}),n.id=e.id,n.type=e.type,n.timestamp=e.timestamp,r.push(t(n))}),e(null,r)},t=>e(t)):e(null,[])}_maybeReady(){if(this._debug("maybeReady pc %s channel %s",this._pcReady,this._channelReady),this._connected||this._connecting||!this._pcReady||!this._channelReady)return;this._connecting=!0;const e=()=>{this.destroyed||this.getStats((t,n)=>{if(this.destroyed)return;t&&(n=[]);const r={},i={},o={};let a=!1;n.forEach(e=>{("remotecandidate"===e.type||"remote-candidate"===e.type)&&(r[e.id]=e),("localcandidate"===e.type||"local-candidate"===e.type)&&(i[e.id]=e),("candidatepair"===e.type||"candidate-pair"===e.type)&&(o[e.id]=e)});const s=e=>{a=!0;let t=i[e.localCandidateId];t&&(t.ip||t.address)?(this.localAddress=t.ip||t.address,this.localPort=+t.port):t&&t.ipAddress?(this.localAddress=t.ipAddress,this.localPort=+t.portNumber):"string"==typeof e.googLocalAddress&&(t=e.googLocalAddress.split(":"),this.localAddress=t[0],this.localPort=+t[1]),this.localAddress&&(this.localFamily=this.localAddress.includes(":")?"IPv6":"IPv4");let n=r[e.remoteCandidateId];n&&(n.ip||n.address)?(this.remoteAddress=n.ip||n.address,this.remotePort=+n.port):n&&n.ipAddress?(this.remoteAddress=n.ipAddress,this.remotePort=+n.portNumber):"string"==typeof e.googRemoteAddress&&(n=e.googRemoteAddress.split(":"),this.remoteAddress=n[0],this.remotePort=+n[1]),this.remoteAddress&&(this.remoteFamily=this.remoteAddress.includes(":")?"IPv6":"IPv4"),this._debug("connect local: %s:%s remote: %s:%s",this.localAddress,this.localPort,this.remoteAddress,this.remotePort)};if(n.forEach(e=>{"transport"===e.type&&e.selectedCandidatePairId&&s(o[e.selectedCandidatePairId]),("googCandidatePair"===e.type&&"true"===e.googActiveConnection||("candidatepair"===e.type||"candidate-pair"===e.type)&&e.selected)&&s(e)}),a||Object.keys(o).length&&!Object.keys(i).length){if(this._connecting=!1,this._connected=!0,this._chunk){try{this.send(this._chunk)}catch(e){return this.destroy(c(e,"ERR_DATA_CHANNEL"))}this._chunk=null,this._debug('sent chunk from "write before connect"');const t=this._cb;this._cb=null,t(null)}"number"!=typeof this._channel.bufferedAmountLowThreshold&&(this._interval=setInterval(()=>this._onInterval(),150),this._interval.unref&&this._interval.unref()),this._debug("connect"),this.emit("connect")}else setTimeout(e,100)})};e()}_onInterval(){this._cb&&this._channel&&!(this._channel.bufferedAmount>h)&&this._onChannelBufferedAmountLow()}_onSignalingStateChange(){this.destroyed||("stable"===this._pc.signalingState&&(this._isNegotiating=!1,this._debug("flushing sender queue",this._sendersAwaitingStable),this._sendersAwaitingStable.forEach(e=>{this._pc.removeTrack(e),this._queuedNegotiation=!0}),this._sendersAwaitingStable=[],this._queuedNegotiation?(this._debug("flushing negotiation queue"),this._queuedNegotiation=!1,this._needsNegotiation()):(this._debug("negotiated"),this.emit("negotiated"))),this._debug("signalingStateChange %s",this._pc.signalingState),this.emit("signalingStateChange",this._pc.signalingState))}_onIceCandidate(e){this.destroyed||(e.candidate&&this.trickle?this.emit("signal",{type:"candidate",candidate:{candidate:e.candidate.candidate,sdpMLineIndex:e.candidate.sdpMLineIndex,sdpMid:e.candidate.sdpMid}}):!e.candidate&&!this._iceComplete&&(this._iceComplete=!0,this.emit("_iceComplete")),e.candidate&&this._startIceCompleteTimeout())}_onChannelMessage(e){if(this.destroyed)return;let t=e.data;t instanceof ArrayBuffer&&(t=u.from(t)),this.push(t)}_onChannelBufferedAmountLow(){if(!this.destroyed&&this._cb){this._debug("ending backpressure: bufferedAmount %d",this._channel.bufferedAmount);const e=this._cb;this._cb=null,e(null)}}_onChannelOpen(){this._connected||this.destroyed||(this._debug("on channel open"),this._channelReady=!0,this._maybeReady())}_onChannelClose(){this.destroyed||(this._debug("on channel close"),this.destroy())}_onTrack(e){this.destroyed||e.streams.forEach(t=>{this._debug("on track"),this.emit("track",e.track,t),this._remoteTracks.push({track:e.track,stream:t}),this._remoteStreams.some(e=>e.id===t.id)||(this._remoteStreams.push(t),l(()=>{this._debug("on stream"),this.emit("stream",t)}))})}_debug(){const e=[].slice.call(arguments);e[0]="["+this._id+"] "+e[0],i.apply(null,e)}}d.WEBRTC_SUPPORT=!!o(),d.config={iceServers:[{urls:["stun:stun.l.google.com:19302","stun:global.stun.twilio.com:3478"]}],sdpSemantics:"unified-plan"},d.channelConfig={},t.exports=d},{buffer:3,debug:4,"err-code":6,"get-browser-rtc":8,"queue-microtask":13,randombytes:14,"readable-stream":29}]},{},[])("/")}))}).call(this,n("c8ba"))},e274:function(e,t,n){e.exports=n.p+"img/sannianjihua.svg"},e34b:function(e,t,n){e.exports=n.p+"img/a-11-yiyongweishengzhi.svg"},e35d:function(e,t,n){e.exports=n.p+"img/huiyi.svg"},e362:function(e,t,n){e.exports=n.p+"img/tianping.svg"},e372:function(e,t,n){t=e.exports=n("ad71"),t.Stream=t,t.Readable=t,t.Writable=n("dc14"),t.Duplex=n("b19a"),t.Transform=n("27bf"),t.PassThrough=n("780f")},e391:function(e,t,n){var r=n("577e");e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},e3da:function(e,t,n){"use strict";n.r(t),n.d(t,"keydownHandler",(function(){return b})),n.d(t,"keymap",(function(){return v}));for(var r={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},o="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),a=("undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),"undefined"!=typeof navigator&&/Mac/.test(navigator.platform)),s="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=a||o&&+o[1]<57,c=0;c<10;c++)r[48+c]=r[96+c]=String(c);for(c=1;c<=24;c++)r[c+111]="F"+c;for(c=65;c<=90;c++)r[c]=String.fromCharCode(c+32),i[c]=String.fromCharCode(c);for(var u in r)i.hasOwnProperty(u)||(i[u]=r[u]);function h(e){var t=l&&(e.ctrlKey||e.altKey||e.metaKey)||s&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key,n=!t&&e.key||(e.shiftKey?i:r)[e.keyCode]||e.key||"Unidentified";return"Esc"==n&&(n="Escape"),"Del"==n&&(n="Delete"),"Left"==n&&(n="ArrowLeft"),"Up"==n&&(n="ArrowUp"),"Right"==n&&(n="ArrowRight"),"Down"==n&&(n="ArrowDown"),n}var d=n("6ffb");const f="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function p(e){let t,n,r,i,o=e.split(/-(?!$)/),a=o[o.length-1];"Space"==a&&(a=" ");for(let s=0;s127)&&(i=r[n.keyCode])&&i!=o){let r=t[g(i,n,!0)];if(r&&r(e.state,e.dispatch,e))return!0}else if(a&&n.shiftKey){let r=t[g(o,n,!0)];if(r&&r(e.state,e.dispatch,e))return!0}return!1}}},e3db:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},e40b:function(e,t,n){e.exports=n.p+"img/feizhengshiwendengji.svg"},e40c:function(e,t,n){},e437:function(e,t,n){e.exports=n.p+"img/fuqinjie.svg"},e497:function(e,t,n){e.exports=n.p+"img/dark4.jpg"},e4a4:function(e,t,n){e.exports=n.p+"img/a-16-yiyuan.svg"},e531:function(e,t,n){e.exports=n.p+"img/a-4-lunyi.svg"},e5cb:function(e,t,n){"use strict";var r=n("d066"),i=n("1a2d"),o=n("9112"),a=n("3a9b"),s=n("d2bb"),l=n("e893"),c=n("aeb0"),u=n("7156"),h=n("e391"),d=n("ab36"),f=n("0d26"),p=n("b980"),m=n("83ab"),g=n("c430");e.exports=function(e,t,n,v){var b="stackTraceLimit",y=v?2:1,w=e.split("."),x=w[w.length-1],k=r.apply(null,w);if(k){var A=k.prototype;if(!g&&i(A,"cause")&&delete A.cause,!n)return k;var C=r("Error"),E=t((function(e,t){var n=h(v?t:e,void 0),r=v?new k(e):new k;return void 0!==n&&o(r,"message",n),p&&o(r,"stack",f(r.stack,2)),this&&a(A,this)&&u(r,this,E),arguments.length>y&&d(r,arguments[y]),r}));if(E.prototype=A,"Error"!==x?s?s(E,C):l(E,C,{name:!0}):m&&b in k&&(c(E,k,b),c(E,k,"prepareStackTrace")),l(E,k),!g)try{A.name!==x&&o(A,"name",x),A.constructor=E}catch(S){}return E}}},e6d0:function(e,t,n){"use strict";n("f889")},e6db:function(e,t,n){"use strict";var r=n("59ec"),i=n("5974").findLastIndex,o=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLastIndex",(function(e){return i(o(this),e,arguments.length>1?arguments[1]:void 0)}))},e71d:function(e,t){var n=-1,r=1,i=0;function o(e,t,n){if(e==t)return e?[[i,e]]:[];(n<0||e.lengtht.length?e:t,c=e.length>t.length?t:e,u=l.indexOf(c);if(-1!=u)return a=[[r,l.substring(0,u)],[i,c],[r,l.substring(u+c.length)]],e.length>t.length&&(a[0][0]=a[2][0]=n),a;if(1==c.length)return[[n,e],[r,t]];var d=h(e,t);if(d){var f=d[0],p=d[1],m=d[2],g=d[3],v=d[4],b=o(f,m),y=o(p,g);return b.concat([[i,v]],y)}return s(e,t)}function s(e,t){for(var i=e.length,o=t.length,a=Math.ceil((i+o)/2),s=a,c=2*a,u=new Array(c),h=new Array(c),d=0;di)g+=2;else if(k>o)m+=2;else if(p){var A=s+f-w;if(A>=0&&A=C)return l(e,t,T,k)}}}for(var E=-y+v;E<=y-b;E+=2){A=s+E;C=E==-y||E!=y&&h[A-1]i)b+=2;else if(S>o)v+=2;else if(!p){x=s+f-E;if(x>=0&&x=C)return l(e,t,T,k)}}}}return[[n,e],[r,t]]}function l(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=o(i,a),u=o(s,l);return c.concat(u)}function c(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;var n=0,r=Math.min(e.length,t.length),i=r,o=0;while(nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,i,o,a,h]:null}var o,a,s,l,h,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));if(!d&&!f)return null;o=f?d&&d[4].length>f[4].length?d:f:d,e.length>t.length?(a=o[0],s=o[1],l=o[2],h=o[3]):(l=o[0],h=o[1],a=o[2],s=o[3]);var p=o[4];return[a,s,l,h,p]}function d(e){e.push([i,""]);var t,o=0,a=0,s=0,l="",h="";while(o1?(0!==a&&0!==s&&(t=c(h,l),0!==t&&(o-a-s>0&&e[o-a-s-1][0]==i?e[o-a-s-1][1]+=h.substring(0,t):(e.splice(0,0,[i,h.substring(0,t)]),o++),h=h.substring(t),l=l.substring(t)),t=u(h,l),0!==t&&(e[o][1]=h.substring(h.length-t)+e[o][1],h=h.substring(0,h.length-t),l=l.substring(0,l.length-t))),0===a?e.splice(o-s,a+s,[r,h]):0===s?e.splice(o-a,a+s,[n,l]):e.splice(o-a-s,a+s,[n,l],[r,h]),o=o-a-s+(a?1:0)+(s?1:0)+1):0!==o&&e[o-1][0]==i?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,s=0,a=0,l="",h="";break}""===e[e.length-1][1]&&e.pop();var f=!1;o=1;while(o0&&r.splice(o+2,0,[s[0],l]),v(r,o,3)}return e}function g(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},a=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},s=2;s0&&l.push(e[s]);return l}function v(e,t,n){for(var r=t+n-1;r>=0&&r>=t-1;r--)if(r+1new Uint8Array(e),a=(e,t,n)=>new Uint8Array(e,t,n),s=e=>new Uint8Array(e),l=e=>{let t="";for(let n=0;ne.from(t.buffer,t.byteOffset,t.byteLength).toString("base64"),u=e=>{const t=atob(e),n=o(t.length);for(let r=0;r{const n=e.from(t,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)},d=i["b"]?l:c,f=i["b"]?u:h,p=e=>{const t=o(e.byteLength);return t.set(e),t}}).call(this,n("b639").Buffer)},f059:function(e,t,n){ /*! * @toast-ui/editor * @version 3.2.1 | Thu Sep 29 2022 diff --git a/index.html b/index.html index e93a8b73..03aa5022 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ 思绪思维导图

\ No newline at end of file + } \ No newline at end of file diff --git a/simple-mind-map/types/index.d.ts b/simple-mind-map/types/index.d.ts deleted file mode 100644 index 58391454..00000000 --- a/simple-mind-map/types/index.d.ts +++ /dev/null @@ -1,195 +0,0 @@ -export default MindMap; -declare class MindMap { - /** - * - * @param {defaultOpt} opt - */ - constructor(opt?: { - readonly: boolean; - layout: string; - fishboneDeg: number; - theme: string; - themeConfig: {}; - scaleRatio: number; - mouseScaleCenterUseMousePosition: boolean; - maxTag: number; - expandBtnSize: number; - imgTextMargin: number; - textContentMargin: number; - selectTranslateStep: number; - selectTranslateLimit: number; - customNoteContentShow: any; - enableFreeDrag: boolean; - watermarkConfig: { - text: string; - lineSpacing: number; - textSpacing: number; - angle: number; - textStyle: { - color: string; - opacity: number; - fontSize: number; - }; - }; - textAutoWrapWidth: number; - customHandleMousewheel: any; - mousewheelAction: string; - mousewheelMoveStep: number; - mousewheelZoomActionReverse: boolean; - defaultInsertSecondLevelNodeText: string; - defaultInsertBelowSecondLevelNodeText: string; - expandBtnStyle: { - color: string; - fill: string; - fontSize: number; - strokeColor: string; - }; - expandBtnIcon: { - open: string; - close: string; - }; - expandBtnNumHandler: (num: any) => any; - isShowExpandNum: boolean; - enableShortcutOnlyWhenMouseInSvg: boolean; - initRootNodePosition: any; - exportPaddingX: number; - exportPaddingY: number; - nodeTextEditZIndex: number; - nodeNoteTooltipZIndex: number; - isEndNodeTextEditOnClickOuter: boolean; - maxHistoryCount: number; - alwaysShowExpandBtn: boolean; - iconList: any[]; - maxNodeCacheCount: number; - defaultAssociativeLineText: string; - fitPadding: number; - enableCtrlKeyNodeSelection: boolean; - useLeftKeySelectionRightKeyDrag: boolean; - beforeTextEdit: any; - isUseCustomNodeContent: boolean; - customCreateNodeContent: any; - customInnerElsAppendTo: any; - nodeDragPlaceholderMaxSize: number; - enableAutoEnterTextEditWhenKeydown: boolean; - richTextEditFakeInPlace: boolean; - customHandleClipboardText: any; - disableMouseWheelZoom: boolean; - disableTouchZoom: boolean; - errorHandler: (code: any, error: any) => void; - resetCss: string; - enableDblclickBackToRootNode: boolean; - minExportImgCanvasScale: number; - hoverRectColor: string; - hoverRectPadding: number; - selectTextOnEnterEditText: boolean; - deleteNodeActive: boolean; - autoMoveWhenMouseInEdgeOnDrag: boolean; - fit: boolean; - dragMultiNodeRectConfig: { - width: number; - height: number; - fill: string; - }; - dragPlaceholderRectFill: string; - dragOpacityConfig: { - cloneNodeOpacity: number; - beingDragNodeOpacity: number; - }; - tagsColorMap: {}; - cooperateStyle: { - avatarSize: number; - fontSize: number; - }; - associativeLineIsAlwaysAboveNode: boolean; - defaultGeneralizationText: string; - handleIsSplitByWrapOnPasteCreateNewNode: any; - addHistoryTime: number; - isDisableDrag: boolean; - highlightNodeBoxStyle: { - stroke: string; - fill: string; - }; - createNewNodeBehavior: string; - }); - opt: any; - el: any; - cssEl: HTMLStyleElement; - event: Event; - keyCommand: KeyCommand; - command: Command; - renderer: Render; - view: View; - batchExecution: BatchExecution; - handleOpt(opt: any): any; - initContainer(): void; - associativeLineDraw: any; - svg: any; - draw: any; - lineDraw: any; - nodeDraw: any; - otherDraw: any; - clearDraw(): void; - addCss(): void; - removeCss(): void; - render(callback: any, source?: string): void; - reRender(callback: any, source?: string): void; - getElRectInfo(): void; - elRect: any; - width: any; - height: any; - resize(): void; - on(event: any, fn: any): void; - emit(event: any, ...args: any[]): void; - off(event: any, fn: any): void; - initCache(): void; - initTheme(): void; - themeConfig: any; - setTheme(theme: any, notRender?: boolean): void; - getTheme(): any; - setThemeConfig(config: any, notRender?: boolean): void; - getCustomThemeConfig(): any; - getThemeConfig(prop: any): any; - getConfig(prop: any): any; - updateConfig(opt?: {}): void; - getLayout(): any; - setLayout(layout: any, notRender?: boolean): void; - execCommand(...args: any[]): void; - setData(data: any): void; - setFullData(data: any): void; - getData(withConfig: any): any; - export(...args: any[]): Promise; - toPos(x: any, y: any): { - x: number; - y: number; - }; - setMode(mode: any): void; - getSvgData({ paddingX, paddingY, ignoreWatermark }?: { - paddingX?: number; - paddingY?: number; - ignoreWatermark?: boolean; - }): { - svg: any; - svgHTML: any; - rect: any; - origWidth: any; - origHeight: any; - scaleX: any; - scaleY: any; - }; - addPlugin(plugin: any, opt: any): void; - removePlugin(plugin: any): void; - initPlugin(plugin: any): void; - destroy(): void; -} -declare namespace MindMap { - const pluginList: any[]; - function usePlugin(plugin: any, opt?: {}): typeof MindMap; - function hasPlugin(plugin: any): number; - function defineTheme(name: any, config?: {}): Error; -} -import Event from "./src/core/event/Event"; -import KeyCommand from "./src/core/command/KeyCommand"; -import Command from "./src/core/command/Command"; -import Render from "./src/core/render/Render"; -import View from "./src/core/view/View"; -import BatchExecution from "./src/utils/BatchExecution"; diff --git a/simple-mind-map/types/src/constants/constant.d.ts b/simple-mind-map/types/src/constants/constant.d.ts deleted file mode 100644 index e69cd23f..00000000 --- a/simple-mind-map/types/src/constants/constant.d.ts +++ /dev/null @@ -1,115 +0,0 @@ -export const themeList: { - name: string; - value: string; - dark: boolean; -}[]; -export namespace CONSTANTS { - const CHANGE_THEME: string; - const CHANGE_LAYOUT: string; - const SET_DATA: string; - const TRANSFORM_TO_NORMAL_NODE: string; - namespace MODE { - const READONLY: string; - const EDIT: string; - } - namespace LAYOUT { - const LOGICAL_STRUCTURE: string; - const MIND_MAP: string; - const ORGANIZATION_STRUCTURE: string; - const CATALOG_ORGANIZATION: string; - const TIMELINE: string; - const TIMELINE2: string; - const FISHBONE: string; - const VERTICAL_TIMELINE: string; - } - namespace DIR { - const UP: string; - const LEFT: string; - const DOWN: string; - const RIGHT: string; - } - namespace KEY_DIR { - const LEFT_1: string; - export { LEFT_1 as LEFT }; - const UP_1: string; - export { UP_1 as UP }; - const RIGHT_1: string; - export { RIGHT_1 as RIGHT }; - const DOWN_1: string; - export { DOWN_1 as DOWN }; - } - namespace SHAPE { - const RECTANGLE: string; - const DIAMOND: string; - const PARALLELOGRAM: string; - const ROUNDED_RECTANGLE: string; - const OCTAGONAL_RECTANGLE: string; - const OUTER_TRIANGULAR_RECTANGLE: string; - const INNER_TRIANGULAR_RECTANGLE: string; - const ELLIPSE: string; - const CIRCLE: string; - } - namespace MOUSE_WHEEL_ACTION { - const ZOOM: string; - const MOVE: string; - } - namespace INIT_ROOT_NODE_POSITION { - const LEFT_2: string; - export { LEFT_2 as LEFT }; - export const TOP: string; - const RIGHT_2: string; - export { RIGHT_2 as RIGHT }; - export const BOTTOM: string; - export const CENTER: string; - } - namespace LAYOUT_GROW_DIR { - const LEFT_3: string; - export { LEFT_3 as LEFT }; - const TOP_1: string; - export { TOP_1 as TOP }; - const RIGHT_3: string; - export { RIGHT_3 as RIGHT }; - const BOTTOM_1: string; - export { BOTTOM_1 as BOTTOM }; - } - namespace PASTE_TYPE { - const CLIP_BOARD: string; - const CANVAS: string; - } - namespace SCROLL_BAR_DIR { - const VERTICAL: string; - const HORIZONTAL: string; - } - namespace CREATE_NEW_NODE_BEHAVIOR { - const DEFAULT: string; - const NOT_ACTIVE: string; - const ACTIVE_ONLY: string; - } -} -export const initRootNodePositionMap: { - [x: string]: number; -}; -export const layoutList: { - name: string; - value: string; -}[]; -export const layoutValueList: string[]; -export const nodeDataNoStylePropList: string[]; -export namespace commonCaches { - const measureCustomNodeContentSizeEl: any; - const measureRichtextNodeTextSizeEl: any; -} -export namespace ERROR_TYPES { - const READ_CLIPBOARD_ERROR: string; - const PARSE_PASTE_DATA_ERROR: string; - const CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR: string; - const LOAD_CLIPBOARD_IMAGE_ERROR: string; - const BEFORE_TEXT_EDIT_ERROR: string; - const EXPORT_ERROR: string; -} -export namespace a4Size { - const width: number; - const height: number; -} -export const cssContent: "\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:not(.smm-node-dragging):hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n"; -export const selfCloseTagList: string[]; diff --git a/simple-mind-map/types/src/constants/defaultOptions.d.ts b/simple-mind-map/types/src/constants/defaultOptions.d.ts deleted file mode 100644 index b046c71c..00000000 --- a/simple-mind-map/types/src/constants/defaultOptions.d.ts +++ /dev/null @@ -1,112 +0,0 @@ -export namespace defaultOpt { - const readonly: boolean; - const layout: string; - const fishboneDeg: number; - const theme: string; - const themeConfig: {}; - const scaleRatio: number; - const mouseScaleCenterUseMousePosition: boolean; - const maxTag: number; - const expandBtnSize: number; - const imgTextMargin: number; - const textContentMargin: number; - const selectTranslateStep: number; - const selectTranslateLimit: number; - const customNoteContentShow: any; - const enableFreeDrag: boolean; - namespace watermarkConfig { - const text: string; - const lineSpacing: number; - const textSpacing: number; - const angle: number; - namespace textStyle { - const color: string; - const opacity: number; - const fontSize: number; - } - } - const textAutoWrapWidth: number; - const customHandleMousewheel: any; - const mousewheelAction: string; - const mousewheelMoveStep: number; - const mousewheelZoomActionReverse: boolean; - const defaultInsertSecondLevelNodeText: string; - const defaultInsertBelowSecondLevelNodeText: string; - namespace expandBtnStyle { - const color_1: string; - export { color_1 as color }; - export const fill: string; - const fontSize_1: number; - export { fontSize_1 as fontSize }; - export const strokeColor: string; - } - namespace expandBtnIcon { - const open: string; - const close: string; - } - function expandBtnNumHandler(num: any): any; - const isShowExpandNum: boolean; - const enableShortcutOnlyWhenMouseInSvg: boolean; - const initRootNodePosition: any; - const exportPaddingX: number; - const exportPaddingY: number; - const nodeTextEditZIndex: number; - const nodeNoteTooltipZIndex: number; - const isEndNodeTextEditOnClickOuter: boolean; - const maxHistoryCount: number; - const alwaysShowExpandBtn: boolean; - const iconList: any[]; - const maxNodeCacheCount: number; - const defaultAssociativeLineText: string; - const fitPadding: number; - const enableCtrlKeyNodeSelection: boolean; - const useLeftKeySelectionRightKeyDrag: boolean; - const beforeTextEdit: any; - const isUseCustomNodeContent: boolean; - const customCreateNodeContent: any; - const customInnerElsAppendTo: any; - const nodeDragPlaceholderMaxSize: number; - const enableAutoEnterTextEditWhenKeydown: boolean; - const richTextEditFakeInPlace: boolean; - const customHandleClipboardText: any; - const disableMouseWheelZoom: boolean; - const disableTouchZoom: boolean; - function errorHandler(code: any, error: any): void; - const resetCss: string; - const enableDblclickBackToRootNode: boolean; - const minExportImgCanvasScale: number; - const hoverRectColor: string; - const hoverRectPadding: number; - const selectTextOnEnterEditText: boolean; - const deleteNodeActive: boolean; - const autoMoveWhenMouseInEdgeOnDrag: boolean; - const fit: boolean; - namespace dragMultiNodeRectConfig { - export const width: number; - export const height: number; - const fill_1: string; - export { fill_1 as fill }; - } - const dragPlaceholderRectFill: string; - namespace dragOpacityConfig { - const cloneNodeOpacity: number; - const beingDragNodeOpacity: number; - } - const tagsColorMap: {}; - namespace cooperateStyle { - export const avatarSize: number; - const fontSize_2: number; - export { fontSize_2 as fontSize }; - } - const associativeLineIsAlwaysAboveNode: boolean; - const defaultGeneralizationText: string; - const handleIsSplitByWrapOnPasteCreateNewNode: any; - const addHistoryTime: number; - const isDisableDrag: boolean; - namespace highlightNodeBoxStyle { - export const stroke: string; - const fill_2: string; - export { fill_2 as fill }; - } - const createNewNodeBehavior: string; -} diff --git a/simple-mind-map/types/src/core/command/Command.d.ts b/simple-mind-map/types/src/core/command/Command.d.ts deleted file mode 100644 index 8a928b6d..00000000 --- a/simple-mind-map/types/src/core/command/Command.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -export default Command; -declare class Command { - constructor(opt?: {}); - opt: {}; - mindMap: any; - commands: {}; - history: any[]; - activeHistoryIndex: number; - addHistory(): void; - clearHistory(): void; - registerShortcutKeys(): void; - exec(name: any, ...args: any[]): void; - add(name: any, fn: any): void; - remove(name: any, fn: any): void; - back(step?: number): any; - forward(step?: number): any; - getCopyData(): any; - removeDataUid(data: any): any; -} diff --git a/simple-mind-map/types/src/core/command/KeyCommand.d.ts b/simple-mind-map/types/src/core/command/KeyCommand.d.ts deleted file mode 100644 index b400917d..00000000 --- a/simple-mind-map/types/src/core/command/KeyCommand.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -export default class KeyCommand { - constructor(opt: any); - opt: any; - mindMap: any; - shortcutMap: {}; - shortcutMapCache: {}; - isPause: boolean; - isInSvg: boolean; - pause(): void; - recovery(): void; - save(): void; - restore(): void; - bindEvent(): void; - onKeydown(e: any): void; - unBindEvent(): void; - checkKey(e: any, key: any): boolean; - getOriginEventCodeArr(e: any): any[]; - hasCombinationKey(e: any): any; - getKeyCodeArr(key: any): any[]; - /** - * Enter - * Tab | Insert - * Shift + a - */ - addShortcut(key: any, fn: any): void; - removeShortcut(key: any, fn: any): void; - getShortcutFn(key: any): any[]; -} diff --git a/simple-mind-map/types/src/core/command/keyMap.d.ts b/simple-mind-map/types/src/core/command/keyMap.d.ts deleted file mode 100644 index 48c8dbdf..00000000 --- a/simple-mind-map/types/src/core/command/keyMap.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -export const keyMap: { - Backspace: number; - Tab: number; - Enter: number; - Shift: number; - Control: number; - Alt: number; - CapsLock: number; - Esc: number; - Spacebar: number; - PageUp: number; - PageDown: number; - End: number; - Home: number; - Insert: number; - Left: number; - Up: number; - Right: number; - Down: number; - Del: number; - NumLock: number; - Cmd: number; - CmdFF: number; - F1: number; - F2: number; - F3: number; - F4: number; - F5: number; - F6: number; - F7: number; - F8: number; - F9: number; - F10: number; - F11: number; - F12: number; - '`': number; - '=': number; - '-': number; - '/': number; - '.': number; -}; -export function isKey(e: any, key: any): boolean; diff --git a/simple-mind-map/types/src/core/event/Event.d.ts b/simple-mind-map/types/src/core/event/Event.d.ts deleted file mode 100644 index d50ad30c..00000000 --- a/simple-mind-map/types/src/core/event/Event.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export default Event; -declare class Event { - constructor(opt?: {}); - opt: {}; - mindMap: any; - isLeftMousedown: boolean; - isRightMousedown: boolean; - isMiddleMousedown: boolean; - mousedownPos: { - x: number; - y: number; - }; - mousemovePos: { - x: number; - y: number; - }; - mousemoveOffset: { - x: number; - y: number; - }; - bindFn(): void; - onBodyClick(e: any): void; - onDrawClick(e: any): void; - onMousedown(e: any): void; - onMousemove(e: any): void; - onMouseup(e: any): void; - onMousewheel(e: any): void; - onContextmenu(e: any): void; - onSvgMousedown(e: any): void; - onKeyup(e: any): void; - onMouseenter(e: any): void; - onMouseleave(e: any): void; - bind(): void; - unbind(): void; -} diff --git a/simple-mind-map/types/src/core/render/Render.d.ts b/simple-mind-map/types/src/core/render/Render.d.ts deleted file mode 100644 index 82623ec3..00000000 --- a/simple-mind-map/types/src/core/render/Render.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -export default Render; -declare class Render { - constructor(opt?: {}); - opt: {}; - mindMap: any; - themeConfig: any; - renderTree: any; - reRender: boolean; - isRendering: boolean; - hasWaitRendering: boolean; - waitRenderingParams: any[]; - nodeCache: {}; - lastNodeCache: {}; - renderSource: string; - activeNodeList: any[]; - root: any; - textEdit: TextEdit; - lastBeingCopyData: any; - beingCopyData: any; - beingPasteText: string; - beingPasteImgSize: number; - currentBeingPasteType: string; - highlightBoxNode: any; - lastActiveNode: any; - lastActiveNodeList: any[]; - setLayout(): void; - layout: MindMap | CatalogOrganization | OrganizationStructure | Timeline | VerticalTimeline; - setData(data: any): void; - bindEvent(): void; - registerCommands(): void; - selectAll(): void; - back(step: any): void; - forward(step: any): void; - insertNode(openEdit?: boolean, appointNodes?: any[], appointData?: any, appointChildren?: any[]): void; - insertMultiNode(appointNodes: any, nodeList: any): void; - insertChildNode(openEdit?: boolean, appointNodes?: any[], appointData?: any, appointChildren?: any[]): void; - insertMultiChildNode(appointNodes: any, childList: any): void; - insertParentNode(openEdit: boolean, appointNodes: any, appointData: any): void; - upNode(): void; - downNode(): void; - insertAfter(node: any, exist: any): void; - insertBefore(node: any, exist: any): void; - moveNodeTo(node: any, toNode: any): void; - removeNode(appointNodes?: any[]): void; - removeCurrentNode(appointNodes?: any[]): void; - pasteNode(data: any): void; - cutNode(callback: any): void; - setNodeStyle(node: any, prop: any, value: any): void; - setNodeStyles(node: any, style: any): void; - setNodeActive(node: any, active: any): void; - clearActiveNode(): void; - setNodeExpand(node: any, expand: any): void; - expandAllNode(): void; - unexpandAllNode(): void; - expandToLevel(level: any): void; - setNodeData(node: any, data: any): void; - setNodeText(node: any, text: any, richText: any, resetRichText: any): void; - setNodeImage(node: any, data: any): void; - setNodeIcon(node: any, icons: any): void; - setNodeHyperlink(node: any, link: any, title?: string): void; - setNodeNote(node: any, note: any): void; - setNodeTag(node: any, tag: any): void; - insertFormula(formula: any, appointNodes?: any[]): void; - addGeneralization(data: any): void; - removeGeneralization(): void; - setNodeCustomPosition(node: any, left?: any, top?: any): void; - resetLayout(): void; - setNodeShape(node: any, shape: any): void; - goTargetNode(node: any, callback?: () => void): void; - registerShortcutKeys(): void; - toggleActiveExpand(): void; - emitNodeActiveEvent(node?: any, activeNodeList?: any[]): void; - clearActiveNodeListOnDrawClick(e: any, eventType: any): void; - startTextEdit(): void; - endTextEdit(): void; - render(callback: () => void, source: any): void; - clearActiveNodeList(): void; - addNodeToActiveList(node: any): void; - removeNodeFromActiveList(node: any): void; - findActiveNodeIndex(node: any): any; - backForward(type: any, step: any): void; - getNewNodeBehavior(openEdit?: boolean, handleMultiNodes?: boolean): { - focusNewNode: boolean; - inserting: boolean; - }; - copy(): void; - cut(): void; - paste(): void; - onPaste(): Promise; - insertTo(node: any, exist: any, dir?: string): void; - checkNodeLayerChange(node: any, toNode: any): void; - deleteNodeGeneralization(node: any): void; - getNextActiveNode(): any; - copyNode(): any; - toggleNodeExpand(node: any): void; - setNodeDataRender(node: any, data: any, notRender?: boolean): void; - moveNodeToCenter(node: any): void; - setRootNodeCenter(): void; - expandToNodeUid(uid: any, callback?: () => void): void; - findNodeByUid(uid: any): any; - highlightNode(node: any, range: any): void; - closeHighlightNode(): void; -} -import TextEdit from "./TextEdit"; -import MindMap from "../../layouts/MindMap"; -import CatalogOrganization from "../../layouts/CatalogOrganization"; -import OrganizationStructure from "../../layouts/OrganizationStructure"; -import Timeline from "../../layouts/Timeline"; -import VerticalTimeline from "../../layouts/VerticalTimeline"; diff --git a/simple-mind-map/types/src/core/render/TextEdit.d.ts b/simple-mind-map/types/src/core/render/TextEdit.d.ts deleted file mode 100644 index 1a888793..00000000 --- a/simple-mind-map/types/src/core/render/TextEdit.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -export default class TextEdit { - constructor(renderer: any); - renderer: any; - mindMap: any; - currentNode: any; - textEditNode: HTMLDivElement; - showTextEdit: boolean; - cacheEditingText: string; - bindEvent(): void; - show({ node, isInserting, isFromKeyDown, isFromScale }: { - node: any; - isInserting?: boolean; - isFromKeyDown?: boolean; - isFromScale?: boolean; - }): Promise; - onScale(): void; - onKeydown(e: any): void; - unBindEvent(): void; - checkIsAutoEnterTextEditKey(e: any): boolean; - registerTmpShortcut(): void; - showEditTextBox({ node, rect, isInserting, isFromKeyDown, isFromScale }: { - node: any; - rect: any; - isInserting: any; - isFromKeyDown: any; - isFromScale: any; - }): void; - getEditText(): any; - hideEditTextBox(): any; -} diff --git a/simple-mind-map/types/src/core/render/node/Node.d.ts b/simple-mind-map/types/src/core/render/node/Node.d.ts deleted file mode 100644 index 3052ea0e..00000000 --- a/simple-mind-map/types/src/core/render/node/Node.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -export default Node; -declare class Node { - constructor(opt?: {}); - nodeData: any; - uid: any; - mindMap: any; - renderer: any; - draw: any; - nodeDraw: any; - lineDraw: any; - style: Style; - shapeInstance: Shape; - shapePadding: { - paddingX: number; - paddingY: number; - }; - isRoot: any; - isGeneralization: any; - generalizationBelongNode: any; - layerIndex: any; - width: any; - height: any; - _left: any; - _top: any; - customLeft: any; - customTop: any; - isDrag: boolean; - parent: any; - children: any; - userList: any[]; - group: any; - shapeNode: any; - hoverNode: any; - _customNodeContent: any; - _imgData: any; - _iconData: any; - _textData: any; - _hyperlinkData: any; - _tagData: any; - _noteData: any; - noteEl: any; - noteContentIsShow: boolean; - _expandBtn: any; - _lastExpandBtnType: any; - _showExpandBtn: boolean; - _openExpandNode: any; - _closeExpandNode: any; - _fillExpandNode: any; - _userListGroup: any; - _lines: any[]; - _generalizationList: any[]; - _unVisibleRectRegionNode: any; - _isMouseenter: boolean; - _rectInfo: { - imgContentWidth: number; - imgContentHeight: number; - textContentWidth: number; - textContentHeight: number; - }; - _generalizationNodeWidth: number; - _generalizationNodeHeight: number; - textContentItemMargin: any; - blockContentMargin: any; - expandBtnSize: any; - isMultipleChoice: boolean; - needLayout: boolean; - isHide: boolean; - set left(arg: any); - get left(): any; - set top(arg: any); - get top(): any; - reset(): void; - handleData(data: any): any; - createNodeData(): void; - getSize(): boolean; - getNodeRect(): { - width: any; - height: any; - }; - layout(): void; - bindGroupEvent(): void; - active(e: any): void; - update(): void; - getNodePosInClient(_left: any, _top: any): { - left: any; - top: any; - }; - reRender(): boolean; - updateNodeActiveClass(): void; - updateNodeByActive(active: any): void; - render(callback?: () => void): void; - remove(): void; - destroy(): void; - hide(): void; - show(): void; - setOpacity(val: any): void; - hideChildren(): void; - showChildren(): void; - startDrag(): void; - endDrag(): void; - renderLine(deep?: boolean): void; - getShape(): any; - hasCustomPosition(): boolean; - ancestorHasCustomPosition(): boolean; - ancestorHasGeneralization(): boolean; - addChildren(node: any): void; - styleLine(line: any, node: any): void; - removeLine(): void; - isAncestor(node: any): boolean; - isParent(node: any): boolean; - isBrother(node: any): any; - getIndexInBrothers(): any; - getPaddingVale(): { - paddingX: any; - paddingY: any; - }; - getStyle(prop: any, root: any): any; - getSelfStyle(prop: any): any; - getParentSelfStyle(prop: any): any; - getSelfInhertStyle(prop: any): any; - getBorderWidth(): any; - getData(key: any): any; - getPureData(removeActiveState?: boolean, removeId?: boolean): any; - hasCustomStyle(): boolean; - getRect(): any; - getRectInSvg(): { - left: any; - right: any; - top: any; - bottom: any; - width: number; - height: number; - }; -} -import Style from "./Style"; -import Shape from "./Shape"; diff --git a/simple-mind-map/types/src/core/render/node/Shape.d.ts b/simple-mind-map/types/src/core/render/node/Shape.d.ts deleted file mode 100644 index 6fbf5189..00000000 --- a/simple-mind-map/types/src/core/render/node/Shape.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export default class Shape { - constructor(node: any); - node: any; - getShapePadding(width: any, height: any, paddingX: any, paddingY: any): { - paddingX: number; - paddingY: number; - }; - createShape(): any; - getNodeSize(): { - width: any; - height: any; - }; - createRect(): any; - createDiamond(): any; - createParallelogram(): any; - createRoundedRectangle(): any; - createOctagonalRectangle(): any; - createOuterTriangularRectangle(): any; - createInnerTriangularRectangle(): any; - createEllipse(): any; - createCircle(): any; -} -export const shapeList: string[]; diff --git a/simple-mind-map/types/src/core/render/node/Style.d.ts b/simple-mind-map/types/src/core/render/node/Style.d.ts deleted file mode 100644 index 35f67b51..00000000 --- a/simple-mind-map/types/src/core/render/node/Style.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -export default Style; -declare class Style { - static setBackgroundStyle(el: any, themeConfig: any): void; - static removeBackgroundStyle(el: any): void; - constructor(ctx: any); - ctx: any; - merge(prop: any, root: any): any; - getStyle(prop: any, root: any): any; - getSelfStyle(prop: any): any; - rect(node: any): void; - shape(node: any): void; - text(node: any): void; - createStyleText(): string; - getTextFontStyle(): { - italic: boolean; - bold: any; - fontSize: any; - fontFamily: any; - }; - domText(node: any, fontSizeScale: number, isMultiLine: any): void; - tagText(node: any): void; - tagRect(node: any, text: any, color: any): void; - iconNode(node: any): void; - line(node: any, { width, color, dasharray }?: { - width: any; - color: any; - dasharray: any; - }): void; - generalizationLine(node: any): void; - iconBtn(node: any, node2: any, fillNode: any): void; - hasCustomStyle(): boolean; - hoverNode(node: any): void; -} -declare namespace Style { - const cacheStyle: any; -} diff --git a/simple-mind-map/types/src/core/render/node/nodeCommandWraps.d.ts b/simple-mind-map/types/src/core/render/node/nodeCommandWraps.d.ts deleted file mode 100644 index 3c2c2d77..00000000 --- a/simple-mind-map/types/src/core/render/node/nodeCommandWraps.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -declare namespace _default { - export { setData }; - export { setText }; - export { setImage }; - export { setIcon }; - export { setHyperlink }; - export { setNote }; - export { setTag }; - export { setShape }; - export { setStyle }; - export { setStyles }; -} -export default _default; -declare function setData(data?: {}): void; -declare function setText(text: any, richText: any, resetRichText: any): void; -declare function setImage(imgData: any): void; -declare function setIcon(icons: any): void; -declare function setHyperlink(link: any, title: any): void; -declare function setNote(note: any): void; -declare function setTag(tag: any): void; -declare function setShape(shape: any): void; -declare function setStyle(prop: any, value: any): void; -declare function setStyles(style: any): void; diff --git a/simple-mind-map/types/src/core/render/node/nodeCooperate.d.ts b/simple-mind-map/types/src/core/render/node/nodeCooperate.d.ts deleted file mode 100644 index 61b696ed..00000000 --- a/simple-mind-map/types/src/core/render/node/nodeCooperate.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -declare namespace _default { - export { createUserListNode }; - export { updateUserListNode }; - export { createTextAvatar }; - export { createImageAvatar }; - export { addUser }; - export { removeUser }; -} -export default _default; -declare function createUserListNode(): void; -declare class createUserListNode { - _userListGroup: any; -} -declare function updateUserListNode(): void; -declare function createTextAvatar(item: any): any; -declare function createImageAvatar(item: any): any; -declare function addUser(userInfo: any): void; -declare function removeUser(userInfo: any): void; diff --git a/simple-mind-map/types/src/core/render/node/nodeCreateContents.d.ts b/simple-mind-map/types/src/core/render/node/nodeCreateContents.d.ts deleted file mode 100644 index 9b7ce43c..00000000 --- a/simple-mind-map/types/src/core/render/node/nodeCreateContents.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -declare namespace _default { - export { createImgNode }; - export { getImgShowSize }; - export { createIconNode }; - export { createRichTextNode }; - export { createTextNode }; - export { createHyperlinkNode }; - export { createTagNode }; - export { createNoteNode }; - export { getNoteContentPosition }; - export { measureCustomNodeContentSize }; - export { isUseCustomNodeContent }; -} -export default _default; -declare function createImgNode(): { - node: any; - width: any; - height: any; -}; -declare function getImgShowSize(): any; -declare function createIconNode(): any; -declare function createRichTextNode(): { - node: any; - width: any; - height: any; -}; -declare function createTextNode(): any; -declare function createHyperlinkNode(): { - node: any; - width: any; - height: any; -}; -declare function createTagNode(): any[]; -declare function createNoteNode(): { - node: any; - width: any; - height: any; -}; -declare class createNoteNode { - noteEl: HTMLDivElement; -} -declare function getNoteContentPosition(): { - left: any; - top: any; -}; -declare function measureCustomNodeContentSize(content: any): { - width: any; - height: any; -}; -declare function isUseCustomNodeContent(): boolean; diff --git a/simple-mind-map/types/src/core/render/node/nodeExpandBtn.d.ts b/simple-mind-map/types/src/core/render/node/nodeExpandBtn.d.ts deleted file mode 100644 index 676a54f2..00000000 --- a/simple-mind-map/types/src/core/render/node/nodeExpandBtn.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -declare namespace _default { - export { createExpandNodeContent }; - export { updateExpandBtnNode }; - export { updateExpandBtnPos }; - export { renderExpandBtn }; - export { removeExpandBtn }; - export { showExpandBtn }; - export { hideExpandBtn }; - export { sumNode }; -} -export default _default; -declare function createExpandNodeContent(): void; -declare class createExpandNodeContent { - _openExpandNode: any; - _closeExpandNode: any; - _fillExpandNode: any; -} -declare function updateExpandBtnNode(): void; -declare class updateExpandBtnNode { - _lastExpandBtnType: boolean; -} -declare function updateExpandBtnPos(): void; -declare function renderExpandBtn(): void; -declare class renderExpandBtn { - _expandBtn: any; - _showExpandBtn: boolean; -} -declare function removeExpandBtn(): void; -declare class removeExpandBtn { - _showExpandBtn: boolean; -} -declare function showExpandBtn(): void; -declare function hideExpandBtn(): void; -declare function sumNode(data?: any[]): any; diff --git a/simple-mind-map/types/src/core/render/node/nodeExpandBtnPlaceholderRect.d.ts b/simple-mind-map/types/src/core/render/node/nodeExpandBtnPlaceholderRect.d.ts deleted file mode 100644 index ad23173a..00000000 --- a/simple-mind-map/types/src/core/render/node/nodeExpandBtnPlaceholderRect.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -declare namespace _default { - export { renderExpandBtnPlaceholderRect }; - export { clearExpandBtnPlaceholderRect }; - export { updateExpandBtnPlaceholderRect }; -} -export default _default; -declare function renderExpandBtnPlaceholderRect(): void; -declare class renderExpandBtnPlaceholderRect { - _unVisibleRectRegionNode: any; -} -declare function clearExpandBtnPlaceholderRect(): void; -declare class clearExpandBtnPlaceholderRect { - _unVisibleRectRegionNode: any; -} -declare function updateExpandBtnPlaceholderRect(): void; -declare class updateExpandBtnPlaceholderRect { - needRerenderExpandBtnPlaceholderRect: boolean; -} diff --git a/simple-mind-map/types/src/core/render/node/nodeGeneralization.d.ts b/simple-mind-map/types/src/core/render/node/nodeGeneralization.d.ts deleted file mode 100644 index 9ec0ab82..00000000 --- a/simple-mind-map/types/src/core/render/node/nodeGeneralization.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -declare namespace _default { - export { formatGetGeneralization }; - export { checkHasGeneralization }; - export { checkHasSelfGeneralization }; - export { getGeneralizationNodeIndex }; - export { createGeneralizationNode }; - export { updateGeneralization }; - export { updateGeneralizationData }; - export { renderGeneralization }; - export { removeGeneralization }; - export { hideGeneralization }; - export { showGeneralization }; - export { setGeneralizationOpacity }; - export { handleGeneralizationMouseenter }; - export { handleGeneralizationMouseleave }; -} -export default _default; -declare function formatGetGeneralization(): any[]; -declare function checkHasGeneralization(): boolean; -declare function checkHasSelfGeneralization(): boolean; -declare function getGeneralizationNodeIndex(node: any): any; -declare function createGeneralizationNode(): void; -declare class createGeneralizationNode { - _generalizationNodeWidth: number; - _generalizationNodeHeight: number; -} -declare function updateGeneralization(): void; -declare function updateGeneralizationData(): void; -declare function renderGeneralization(): void; -declare function removeGeneralization(): void; -declare class removeGeneralization { - _generalizationList: any[]; -} -declare function hideGeneralization(): void; -declare function showGeneralization(): void; -declare function setGeneralizationOpacity(val: any): void; -declare function handleGeneralizationMouseenter(): void; -declare function handleGeneralizationMouseleave(): void; diff --git a/simple-mind-map/types/src/core/view/View.d.ts b/simple-mind-map/types/src/core/view/View.d.ts deleted file mode 100644 index d9e887fe..00000000 --- a/simple-mind-map/types/src/core/view/View.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -export default View; -declare class View { - constructor(opt?: {}); - opt: {}; - mindMap: any; - scale: number; - sx: number; - sy: number; - x: number; - y: number; - firstDrag: boolean; - bind(): void; - getTransformData(): { - transform: any; - state: { - scale: number; - x: number; - y: number; - sx: number; - sy: number; - }; - }; - setTransformData(viewData: any): void; - translateXY(x: any, y: any): void; - translateX(step: any): void; - translateXTo(x: any): void; - translateY(step: any): void; - translateYTo(y: any): void; - transform(): void; - reset(): void; - narrow(cx: any, cy: any, isTouchPad: any): void; - enlarge(cx: any, cy: any, isTouchPad: any): void; - scaleInCenter(scale: any, cx: any, cy: any): void; - setScale(scale: any, cx: any, cy: any): void; - fit(): void; -} diff --git a/simple-mind-map/types/src/layouts/Base.d.ts b/simple-mind-map/types/src/layouts/Base.d.ts deleted file mode 100644 index 2a3502e8..00000000 --- a/simple-mind-map/types/src/layouts/Base.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -export default Base; -declare class Base { - constructor(renderer: any); - renderer: any; - mindMap: any; - draw: any; - lineDraw: any; - root: any; - lru: Lru; - doLayout(): void; - renderLine(): void; - renderExpandBtn(): void; - renderGeneralization(): void; - cacheNode(uid: any, node: any): void; - checkIsNeedResizeSources(): boolean; - checkIsLayerTypeChange(oldIndex: any, newIndex: any): boolean; - checkIsLayoutChangeRerenderExpandBtnPlaceholderRect(node: any): void; - createNode(data: any, parent: any, isRoot: any, layerIndex: any): any; - formatPosition(value: any, size: any, nodeSize: any): number; - setNodeCenter(node: any): void; - updateChildren(children: any, prop: any, offset: any): void; - updateChildrenPro(children: any, props: any): void; - getNodeAreaWidth(node: any, withGeneralization?: boolean): number; - quadraticCurvePath(x1: any, y1: any, x2: any, y2: any): string; - cubicBezierPath(x1: any, y1: any, x2: any, y2: any): string; - getMarginX(layerIndex: any): any; - getMarginY(layerIndex: any): any; - getNodeWidthWithGeneralization(node: any): number; - getNodeHeightWithGeneralization(node: any): number; - /** - * dir:生长方向,h(水平)、v(垂直) - * isLeft:是否向左生长 - */ - getNodeBoundaries(node: any, dir: any): { - left: any; - right: any; - top: any; - bottom: any; - generalizationLineMargin: any; - generalizationNodeMargin: any; - }; - getChildrenBoundaries(node: any, dir: any, startIndex: number, endIndex: any): { - left: number; - right: number; - top: number; - bottom: number; - generalizationLineMargin: any; - generalizationNodeMargin: any; - }; - getNodeGeneralizationRenderBoundaries(item: any, dir: any): { - left: any; - right: any; - top: any; - bottom: any; - generalizationLineMargin: any; - generalizationNodeMargin: any; - }; - getNodeActChildrenLength(node: any): any; -} -import Lru from "../utils/Lru"; diff --git a/simple-mind-map/types/src/layouts/CatalogOrganization.d.ts b/simple-mind-map/types/src/layouts/CatalogOrganization.d.ts deleted file mode 100644 index 53eb9010..00000000 --- a/simple-mind-map/types/src/layouts/CatalogOrganization.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export default CatalogOrganization; -declare class CatalogOrganization extends Base { - constructor(opt?: {}); - computedBaseValue(): void; - computedLeftTopValue(): void; - adjustLeftTopValue(): void; - updateBrothersLeft(node: any, addWidth: any): void; - updateBrothersTop(node: any, addHeight: any): void; - renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void; -} -import Base from "./Base"; diff --git a/simple-mind-map/types/src/layouts/Fishbone.d.ts b/simple-mind-map/types/src/layouts/Fishbone.d.ts deleted file mode 100644 index a3ee6033..00000000 --- a/simple-mind-map/types/src/layouts/Fishbone.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export default Fishbone; -declare class Fishbone extends Base { - constructor(opt?: {}); - indent: number; - childIndent: number; - computedBaseValue(): void; - computedLeftTopValue(): void; - adjustLeftTopValue(): void; - getNodeAreaHeight(node: any): number; - updateBrothersLeft(node: any): void; - updateBrothersTop(node: any, addHeight: any): void; - checkIsTop(node: any): boolean; - renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void; -} -import Base from "./Base"; diff --git a/simple-mind-map/types/src/layouts/LogicalStructure.d.ts b/simple-mind-map/types/src/layouts/LogicalStructure.d.ts deleted file mode 100644 index c7773b2c..00000000 --- a/simple-mind-map/types/src/layouts/LogicalStructure.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export default LogicalStructure; -declare class LogicalStructure extends Base { - constructor(opt?: {}); - computedBaseValue(): void; - computedTopValue(): void; - adjustTopValue(): void; - updateBrothers(node: any, addHeight: any): void; - renderLineStraight(node: any, lines: any, style: any): any[]; - renderLineDirect(node: any, lines: any, style: any): any[]; - renderLineCurve(node: any, lines: any, style: any): any[]; - renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void; -} -import Base from "./Base"; diff --git a/simple-mind-map/types/src/layouts/MindMap.d.ts b/simple-mind-map/types/src/layouts/MindMap.d.ts deleted file mode 100644 index bef75a63..00000000 --- a/simple-mind-map/types/src/layouts/MindMap.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export default MindMap; -declare class MindMap extends Base { - constructor(opt?: {}); - computedBaseValue(): void; - computedTopValue(): void; - adjustTopValue(): void; - updateBrothers(node: any, leftAddHeight: any, rightAddHeight: any): void; - renderLineStraight(node: any, lines: any, style: any): any[]; - renderLineDirect(node: any, lines: any, style: any): any[]; - renderLineCurve(node: any, lines: any, style: any): any[]; - renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void; -} -import Base from "./Base"; diff --git a/simple-mind-map/types/src/layouts/OrganizationStructure.d.ts b/simple-mind-map/types/src/layouts/OrganizationStructure.d.ts deleted file mode 100644 index 316c1400..00000000 --- a/simple-mind-map/types/src/layouts/OrganizationStructure.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export default OrganizationStructure; -declare class OrganizationStructure extends Base { - constructor(opt?: {}); - computedBaseValue(): void; - computedLeftValue(): void; - adjustLeftValue(): void; - updateBrothers(node: any, addWidth: any): void; - renderLineDirect(node: any, lines: any, style: any): any[]; - renderLineStraight(node: any, lines: any, style: any): any[]; - renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void; -} -import Base from "./Base"; diff --git a/simple-mind-map/types/src/layouts/Timeline.d.ts b/simple-mind-map/types/src/layouts/Timeline.d.ts deleted file mode 100644 index 79120394..00000000 --- a/simple-mind-map/types/src/layouts/Timeline.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export default Timeline; -declare class Timeline extends Base { - constructor(opt: {}, layout: any); - layout: any; - computedBaseValue(): void; - computedLeftTopValue(): void; - adjustLeftTopValue(): void; - getNodeAreaHeight(node: any): number; - updateBrothersLeft(node: any): void; - updateBrothersTop(node: any, addHeight: any): void; - renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void; -} -import Base from "./Base"; diff --git a/simple-mind-map/types/src/layouts/VerticalTimeline.d.ts b/simple-mind-map/types/src/layouts/VerticalTimeline.d.ts deleted file mode 100644 index 64b93e35..00000000 --- a/simple-mind-map/types/src/layouts/VerticalTimeline.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export default VerticalTimeline; -declare class VerticalTimeline extends Base { - constructor(opt: {}, layout: any); - layout: any; - computedBaseValue(): void; - computedTopValue(): void; - adjustLeftTopValue(): void; - updateBrothers(node: any, addHeight: any): void; - updateBrothersTop(node: any, addHeight: any): void; - renderLineStraight(node: any, lines: any, style: any): any[]; - renderLineDirect(node: any, lines: any, style: any): any[]; - renderLineCurve(node: any, lines: any, style: any): any[]; - renderExpandBtnRect(rect: any, expandBtnSize: any, width: any, height: any, node: any): void; -} -import Base from "./Base"; diff --git a/simple-mind-map/types/src/layouts/fishboneUtils.d.ts b/simple-mind-map/types/src/layouts/fishboneUtils.d.ts deleted file mode 100644 index 1333d94c..00000000 --- a/simple-mind-map/types/src/layouts/fishboneUtils.d.ts +++ /dev/null @@ -1,147 +0,0 @@ -declare namespace _default { - namespace top { - function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: { - node: any; - btn: any; - expandBtnSize: any; - translateX: any; - translateY: any; - width: any; - height: any; - }): void; - function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: { - node: any; - btn: any; - expandBtnSize: any; - translateX: any; - translateY: any; - width: any; - height: any; - }): void; - function renderLine({ node, line, top, x, lineLength, height, expandBtnSize, maxy, ctx }: { - node: any; - line: any; - top: any; - x: any; - lineLength: any; - height: any; - expandBtnSize: any; - maxy: any; - ctx: any; - }): void; - function renderLine({ node, line, top, x, lineLength, height, expandBtnSize, maxy, ctx }: { - node: any; - line: any; - top: any; - x: any; - lineLength: any; - height: any; - expandBtnSize: any; - maxy: any; - ctx: any; - }): void; - function computedLeftTopValue({ layerIndex, node, ctx }: { - layerIndex: any; - node: any; - ctx: any; - }): void; - function computedLeftTopValue({ layerIndex, node, ctx }: { - layerIndex: any; - node: any; - ctx: any; - }): void; - function adjustLeftTopValueBefore({ node, parent, ctx, layerIndex }: { - node: any; - parent: any; - ctx: any; - layerIndex: any; - }): void; - function adjustLeftTopValueBefore({ node, parent, ctx, layerIndex }: { - node: any; - parent: any; - ctx: any; - layerIndex: any; - }): void; - function adjustLeftTopValueAfter({ parent, node, ctx }: { - parent: any; - node: any; - ctx: any; - }): void; - function adjustLeftTopValueAfter({ parent, node, ctx }: { - parent: any; - node: any; - ctx: any; - }): void; - } - namespace bottom { - function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: { - node: any; - btn: any; - expandBtnSize: any; - translateX: any; - translateY: any; - width: any; - height: any; - }): void; - function renderExpandBtn({ node, btn, expandBtnSize, translateX, translateY, width, height }: { - node: any; - btn: any; - expandBtnSize: any; - translateX: any; - translateY: any; - width: any; - height: any; - }): void; - function renderLine({ node, line, top, x, lineLength, height, miny, ctx }: { - node: any; - line: any; - top: any; - x: any; - lineLength: any; - height: any; - miny: any; - ctx: any; - }): void; - function renderLine({ node, line, top, x, lineLength, height, miny, ctx }: { - node: any; - line: any; - top: any; - x: any; - lineLength: any; - height: any; - miny: any; - ctx: any; - }): void; - function computedLeftTopValue({ layerIndex, node, ctx }: { - layerIndex: any; - node: any; - ctx: any; - }): void; - function computedLeftTopValue({ layerIndex, node, ctx }: { - layerIndex: any; - node: any; - ctx: any; - }): void; - function adjustLeftTopValueBefore({ node, ctx, layerIndex }: { - node: any; - ctx: any; - layerIndex: any; - }): void; - function adjustLeftTopValueBefore({ node, ctx, layerIndex }: { - node: any; - ctx: any; - layerIndex: any; - }): void; - function adjustLeftTopValueAfter({ parent, node, ctx }: { - parent: any; - node: any; - ctx: any; - }): void; - function adjustLeftTopValueAfter({ parent, node, ctx }: { - parent: any; - node: any; - ctx: any; - }): void; - } -} -export default _default; diff --git a/simple-mind-map/types/src/svg/btns.d.ts b/simple-mind-map/types/src/svg/btns.d.ts deleted file mode 100644 index ea00ede2..00000000 --- a/simple-mind-map/types/src/svg/btns.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -declare namespace _default { - export { open }; - export { close }; - export { remove }; - export { imgAdjust }; -} -export default _default; -declare const open: ""; -declare const close: ""; -declare const remove: ""; -declare const imgAdjust: ""; diff --git a/simple-mind-map/types/src/svg/icons.d.ts b/simple-mind-map/types/src/svg/icons.d.ts deleted file mode 100644 index 7dc64759..00000000 --- a/simple-mind-map/types/src/svg/icons.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export const nodeIconList: { - name: string; - type: string; - list: { - name: string; - icon: string; - }[]; -}[]; -declare namespace _default { - export { hyperlink }; - export { note }; - export { nodeIconList }; - export { getNodeIconListIcon }; -} -export default _default; -declare const hyperlink: ""; -declare const note: ""; -declare function getNodeIconListIcon(name: any, extendIconList?: any[]): any; diff --git a/simple-mind-map/types/src/themes/autumn.d.ts b/simple-mind-map/types/src/themes/autumn.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/autumn.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/avocado.d.ts b/simple-mind-map/types/src/themes/avocado.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/avocado.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/blackGold.d.ts b/simple-mind-map/types/src/themes/blackGold.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/blackGold.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/blackHumour.d.ts b/simple-mind-map/types/src/themes/blackHumour.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/blackHumour.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/blueSky.d.ts b/simple-mind-map/types/src/themes/blueSky.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/blueSky.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/brainImpairedPink.d.ts b/simple-mind-map/types/src/themes/brainImpairedPink.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/brainImpairedPink.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/classic.d.ts b/simple-mind-map/types/src/themes/classic.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/classic.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/classic2.d.ts b/simple-mind-map/types/src/themes/classic2.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/classic2.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/classic3.d.ts b/simple-mind-map/types/src/themes/classic3.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/classic3.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/classic4.d.ts b/simple-mind-map/types/src/themes/classic4.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/classic4.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/classicBlue.d.ts b/simple-mind-map/types/src/themes/classicBlue.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/classicBlue.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/classicGreen.d.ts b/simple-mind-map/types/src/themes/classicGreen.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/classicGreen.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/coffee.d.ts b/simple-mind-map/types/src/themes/coffee.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/coffee.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/courseGreen.d.ts b/simple-mind-map/types/src/themes/courseGreen.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/courseGreen.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/dark.d.ts b/simple-mind-map/types/src/themes/dark.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/dark.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/dark2.d.ts b/simple-mind-map/types/src/themes/dark2.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/dark2.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/default.d.ts b/simple-mind-map/types/src/themes/default.d.ts deleted file mode 100644 index 011f01f6..00000000 --- a/simple-mind-map/types/src/themes/default.d.ts +++ /dev/null @@ -1,143 +0,0 @@ -declare namespace _default { - const paddingX: number; - const paddingY: number; - const imgMaxWidth: number; - const imgMaxHeight: number; - const iconSize: number; - const lineWidth: number; - const lineColor: string; - const lineDasharray: string; - const lineStyle: string; - const rootLineKeepSameInCurve: boolean; - const generalizationLineWidth: number; - const generalizationLineColor: string; - const generalizationLineMargin: number; - const generalizationNodeMargin: number; - const associativeLineWidth: number; - const associativeLineColor: string; - const associativeLineActiveWidth: number; - const associativeLineActiveColor: string; - const associativeLineTextColor: string; - const associativeLineTextFontSize: number; - const associativeLineTextLineHeight: number; - const associativeLineTextFontFamily: string; - const backgroundColor: string; - const backgroundImage: string; - const backgroundRepeat: string; - const backgroundPosition: string; - const backgroundSize: string; - const nodeUseLineStyle: boolean; - namespace root { - const shape: string; - const fillColor: string; - const fontFamily: string; - const color: string; - const fontSize: number; - const fontWeight: string; - const fontStyle: string; - const lineHeight: number; - const borderColor: string; - const borderWidth: number; - const borderDasharray: string; - const borderRadius: number; - const textDecoration: string; - } - namespace second { - const shape_1: string; - export { shape_1 as shape }; - export const marginX: number; - export const marginY: number; - const fillColor_1: string; - export { fillColor_1 as fillColor }; - const fontFamily_1: string; - export { fontFamily_1 as fontFamily }; - const color_1: string; - export { color_1 as color }; - const fontSize_1: number; - export { fontSize_1 as fontSize }; - const fontWeight_1: string; - export { fontWeight_1 as fontWeight }; - const fontStyle_1: string; - export { fontStyle_1 as fontStyle }; - const lineHeight_1: number; - export { lineHeight_1 as lineHeight }; - const borderColor_1: string; - export { borderColor_1 as borderColor }; - const borderWidth_1: number; - export { borderWidth_1 as borderWidth }; - const borderDasharray_1: string; - export { borderDasharray_1 as borderDasharray }; - const borderRadius_1: number; - export { borderRadius_1 as borderRadius }; - const textDecoration_1: string; - export { textDecoration_1 as textDecoration }; - } - namespace node { - const shape_2: string; - export { shape_2 as shape }; - const marginX_1: number; - export { marginX_1 as marginX }; - const marginY_1: number; - export { marginY_1 as marginY }; - const fillColor_2: string; - export { fillColor_2 as fillColor }; - const fontFamily_2: string; - export { fontFamily_2 as fontFamily }; - const color_2: string; - export { color_2 as color }; - const fontSize_2: number; - export { fontSize_2 as fontSize }; - const fontWeight_2: string; - export { fontWeight_2 as fontWeight }; - const fontStyle_2: string; - export { fontStyle_2 as fontStyle }; - const lineHeight_2: number; - export { lineHeight_2 as lineHeight }; - const borderColor_2: string; - export { borderColor_2 as borderColor }; - const borderWidth_2: number; - export { borderWidth_2 as borderWidth }; - const borderRadius_2: number; - export { borderRadius_2 as borderRadius }; - const borderDasharray_2: string; - export { borderDasharray_2 as borderDasharray }; - const textDecoration_2: string; - export { textDecoration_2 as textDecoration }; - } - namespace generalization { - const shape_3: string; - export { shape_3 as shape }; - const marginX_2: number; - export { marginX_2 as marginX }; - const marginY_2: number; - export { marginY_2 as marginY }; - const fillColor_3: string; - export { fillColor_3 as fillColor }; - const fontFamily_3: string; - export { fontFamily_3 as fontFamily }; - const color_3: string; - export { color_3 as color }; - const fontSize_3: number; - export { fontSize_3 as fontSize }; - const fontWeight_3: string; - export { fontWeight_3 as fontWeight }; - const fontStyle_3: string; - export { fontStyle_3 as fontStyle }; - const lineHeight_3: number; - export { lineHeight_3 as lineHeight }; - const borderColor_3: string; - export { borderColor_3 as borderColor }; - const borderWidth_3: number; - export { borderWidth_3 as borderWidth }; - const borderDasharray_3: string; - export { borderDasharray_3 as borderDasharray }; - const borderRadius_3: number; - export { borderRadius_3 as borderRadius }; - const textDecoration_3: string; - export { textDecoration_3 as textDecoration }; - } -} -export default _default; -export const supportActiveStyle: string[]; -export function checkIsNodeSizeIndependenceConfig(config: any): boolean; -export const lineStyleProps: string[]; diff --git a/simple-mind-map/types/src/themes/earthYellow.d.ts b/simple-mind-map/types/src/themes/earthYellow.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/earthYellow.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/freshGreen.d.ts b/simple-mind-map/types/src/themes/freshGreen.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/freshGreen.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/freshRed.d.ts b/simple-mind-map/types/src/themes/freshRed.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/freshRed.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/gold.d.ts b/simple-mind-map/types/src/themes/gold.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/gold.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/greenLeaf.d.ts b/simple-mind-map/types/src/themes/greenLeaf.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/greenLeaf.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/index.d.ts b/simple-mind-map/types/src/themes/index.d.ts deleted file mode 100644 index 7c4ac003..00000000 --- a/simple-mind-map/types/src/themes/index.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -declare namespace _default { - export { defaultTheme as default } - export { freshGreen } - export { blueSky } - export { brainImpairedPink } - export { romanticPurple } - export { freshRed } - export { earthYellow } - export { classic } - export { classic2 } - export { classic3 } - export { classic4 } - export { dark } - export { classicGreen } - export { classicBlue } - export { minions } - export { pinkGrape } - export { mint } - export { gold } - export { vitalityOrange } - export { greenLeaf } - export { dark2 } - export { skyGreen } - export { simpleBlack } - export { courseGreen } - export { coffee } - export { redSpirit } - export { blackHumour } - export { lateNightOffice } - export { blackGold } - export { avocado } - export { autumn } - export { orangeJuice } -} -export default _default -import defaultTheme from './default' -import freshGreen from './freshGreen' -import blueSky from './blueSky' -import brainImpairedPink from './brainImpairedPink' -import romanticPurple from './romanticPurple' -import freshRed from './freshRed' -import earthYellow from './earthYellow' -import classic from './classic' -import classic2 from './classic2' -import classic3 from './classic3' -import classic4 from './classic4' -import dark from './dark' -import classicGreen from './classicGreen' -import classicBlue from './classicBlue' -import minions from './minions' -import pinkGrape from './pinkGrape' -import mint from './mint' -import gold from './gold' -import vitalityOrange from './vitalityOrange' -import greenLeaf from './greenLeaf' -import dark2 from './dark2' -import skyGreen from './skyGreen' -import simpleBlack from './simpleBlack' -import courseGreen from './courseGreen' -import coffee from './coffee' -import redSpirit from './redSpirit' -import blackHumour from './blackHumour' -import lateNightOffice from './lateNightOffice' -import blackGold from './blackGold' -import avocado from './avocado' -import autumn from './autumn' -import orangeJuice from './orangeJuice' diff --git a/simple-mind-map/types/src/themes/lateNightOffice.d.ts b/simple-mind-map/types/src/themes/lateNightOffice.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/lateNightOffice.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/minions.d.ts b/simple-mind-map/types/src/themes/minions.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/minions.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/mint.d.ts b/simple-mind-map/types/src/themes/mint.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/mint.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/orangeJuice.d.ts b/simple-mind-map/types/src/themes/orangeJuice.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/orangeJuice.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/pinkGrape.d.ts b/simple-mind-map/types/src/themes/pinkGrape.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/pinkGrape.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/redSpirit.d.ts b/simple-mind-map/types/src/themes/redSpirit.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/redSpirit.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/romanticPurple.d.ts b/simple-mind-map/types/src/themes/romanticPurple.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/romanticPurple.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/simpleBlack.d.ts b/simple-mind-map/types/src/themes/simpleBlack.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/simpleBlack.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/skyGreen.d.ts b/simple-mind-map/types/src/themes/skyGreen.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/skyGreen.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/themes/vitalityOrange.d.ts b/simple-mind-map/types/src/themes/vitalityOrange.d.ts deleted file mode 100644 index c461e215..00000000 --- a/simple-mind-map/types/src/themes/vitalityOrange.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare const _default: any -export default _default diff --git a/simple-mind-map/types/src/utils/BatchExecution.d.ts b/simple-mind-map/types/src/utils/BatchExecution.d.ts deleted file mode 100644 index 62b161db..00000000 --- a/simple-mind-map/types/src/utils/BatchExecution.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export default BatchExecution; -declare class BatchExecution { - has: {}; - queue: any[]; - nextTick: any; - push(name: any, fn: any): void; - replaceTask(name: any, fn: any): void; - flush(): void; -} diff --git a/simple-mind-map/types/src/utils/Lru.d.ts b/simple-mind-map/types/src/utils/Lru.d.ts deleted file mode 100644 index b4bfa4f6..00000000 --- a/simple-mind-map/types/src/utils/Lru.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export default class Lru { - constructor(max: any); - max: any; - size: number; - pool: Map; - add(key: any, value: any): void; - delete(key: any): void; - has(key: any): boolean; - get(key: any): any; -} diff --git a/simple-mind-map/types/src/utils/index.d.ts b/simple-mind-map/types/src/utils/index.d.ts deleted file mode 100644 index 63d1acc9..00000000 --- a/simple-mind-map/types/src/utils/index.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -export function walk(root: any, parent: any, beforeCallback: any, afterCallback: any, isRoot: any, layerIndex?: number, index?: number): void; -export function bfsWalk(root: any, callback: any): void; -export function resizeImgSizeByOriginRatio(width: any, height: any, newWidth: any, newHeight: any): any[]; -export function resizeImgSize(width: any, height: any, maxWidth: any, maxHeight: any): any[]; -export function resizeImg(imgUrl: any, maxWidth: any, maxHeight: any): Promise; -export function getStrWithBrFromHtml(str: any): any; -export function simpleDeepClone(data: any): any; -export function copyRenderTree(tree: any, root: any, removeActiveState?: boolean): any; -export function copyNodeTree(tree: any, root: any, removeActiveState?: boolean, removeId?: boolean): any; -export function imgToDataUrl(src: any): Promise; -export function parseDataUrl(data: any): any; -export function downloadFile(file: any, fileName: any): void; -export function throttle(fn: any, time: number, ctx: any): (...args: any[]) => void; -export function asyncRun(taskList: any, callback?: () => void): void; -export function degToRad(deg: any): number; -export function camelCaseToHyphen(str: any): any; -export function measureText(text: any, { italic, bold, fontSize, fontFamily }: { - italic: any; - bold: any; - fontSize: any; - fontFamily: any; -}): { - width: any; - height: any; -}; -export function joinFontStr({ italic, bold, fontSize, fontFamily }: { - italic: any; - bold: any; - fontSize: any; - fontFamily: any; -}): string; -export function nextTick(fn: any, ctx: any): () => void; -export function checkNodeOuter(mindMap: any, node: any): { - isOuter: boolean; - offsetLeft: number; - offsetTop: number; -}; -export function getTextFromHtml(html: any): any; -export function readBlob(blob: any): Promise; -export function nodeToHTML(node: any): any; -export function getImageSize(src: any): Promise; -export function createUid(): any; -export function loadImage(imgFile: any): Promise; -export function removeHTMLEntities(str: any): any; -export function getType(data: any): any; -export function isUndef(data: any): boolean; -export function removeHtmlStyle(html: any): any; -export function addHtmlStyle(html: any, tag: any, style: any): any; -export function checkIsRichText(str: any): boolean; -export function replaceHtmlText(html: any, searchText: any, replaceText: any): any; -export function isWhite(color: any): boolean; -export function isTransparent(color: any): boolean; -export function getVisibleColorFromTheme(themeConfig: any): any; -export function nodeRichTextToTextWithWrap(html: any): string; -export function textToNodeRichTextWithWrap(html: any): string; -export function isMobile(): boolean; -export function getObjectChangedProps(oldObject: any, newObject: any): {}; -export function checkIsNodeStyleDataKey(key: any): boolean; -export function mergerIconList(list: any): any; -export function getTopAncestorsFomNodeList(list: any): any[]; -export function checkHasSupSubRelation(list: any): boolean; -export function parseAddGeneralizationNodeList(list: any): any[]; -export function checkTwoRectIsOverlap(minx1: any, maxx1: any, miny1: any, maxy1: any, minx2: any, maxx2: any, miny2: any, maxy2: any): boolean; -export function focusInput(el: any): void; -export function selectAllInput(el: any): void; -export function addDataToAppointNodes(appointNodes: any, data?: {}): any; -export function createUidForAppointNodes(appointNodes: any, createNewId?: boolean): any; -export function formatDataToArray(data: any): any[]; -export function getNodeDataIndex(node: any): any; -export function getNodeIndexInNodeList(node: any, nodeList: any): any; -export function generateColorByContent(str: any): string; -export function htmlEscape(str: any): any; -export function isSameObject(a: any, b: any): boolean; -export function setDataToClipboard(data: any): void; -export function getDataFromClipboard(): Promise<{ - text: string; - img: any; -}>; -export function removeFromParentNodeData(node: any): void; -export function handleSelfCloseTags(str: any): any; -export function checkNodeListIsEqual(list1: any, list2: any): boolean; diff --git a/simple-mind-map/types/src/utils/mersenneTwister.d.ts b/simple-mind-map/types/src/utils/mersenneTwister.d.ts deleted file mode 100644 index 30222088..00000000 --- a/simple-mind-map/types/src/utils/mersenneTwister.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * @description 为了保证相同的内容每次生成的随机数都是一样的,我们可以使用一个伪随机数生成器(PRNG),并使用内容的哈希值作为种子。以下是一个使用Mersenne Twister算法的PRNG的实现: - * - * @param {*} seed - */ -export default function MersenneTwister(seed: any): void; -export default class MersenneTwister { - /** - * @description 为了保证相同的内容每次生成的随机数都是一样的,我们可以使用一个伪随机数生成器(PRNG),并使用内容的哈希值作为种子。以下是一个使用Mersenne Twister算法的PRNG的实现: - * - * @param {*} seed - */ - constructor(seed: any); - N: number; - M: number; - MATRIX_A: number; - UPPER_MASK: number; - LOWER_MASK: number; - mt: any[]; - mti: number; - init_genrand(s: any): void; - genrand_int32(): number; -}