UNPKG

react-agiletc-editor

Version:

A minder editor for React Component

58 lines 281 kB
module.exports=function(n){var r={};function o(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return n[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=n,o.c=r,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="./src/kityminderEditor.js")}({"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/editor.scss": /*!******************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/editor.scss ***! \******************************************************************************************************/ /*! no static exports found */function(e,t,n){(e.exports=n(/*! ../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".kityminder-editor-container {\n position: relative;\n overflow: hidden; }\n .kityminder-editor-container.full-screen {\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh !important;\n z-index: 99; }\n\n.kityminder-core-container {\n width: 100%;\n height: 800px;\n position: relative; }\n .kityminder-core-container .toolbar-group {\n display: flex; }\n\n.km-btn-item {\n text-align: center; }\n\n.km-btn-item[disabled] {\n opacity: 0.5; }\n\n.km-btn-item:hover {\n background-color: #eff3fa; }\n\n.toolbar {\n display: flex;\n align-items: center;\n flex-wrap: wrap; }\n .toolbar.has-right-border .nodes-actions {\n border-right: 1px dashed #eee; }\n .toolbar.has-right-border > .nodes-actions:last-child {\n border-right: none; }\n\n.kityminder-tools-tab {\n z-index: 99;\n background-color: #fff; }\n .kityminder-tools-tab > .ant-tabs-content {\n height: auto;\n transition: all 0.3s; }\n .kityminder-tools-tab.collapsed > .ant-tabs-content {\n height: 0px;\n overflow: hidden; }\n .kityminder-tools-tab .ant-btn-link {\n border: none;\n vertical-align: middle; }\n .kityminder-tools-tab .ant-btn-link.priority-btn {\n color: #fff !important; }\n .kityminder-tools-tab.ant-tabs {\n overflow: visible; }\n .kityminder-tools-tab .ant-tabs-bar {\n margin: 0px; }\n .kityminder-tools-tab .ant-tabs-content > .ant-tabs-tabpane {\n padding: 8px 4px; }\n .kityminder-tools-tab .ant-tabs-content > .ant-tabs-tabpane .ant-btn-link {\n color: #333; }\n .kityminder-tools-tab .ant-tabs-content > .ant-tabs-tabpane .ant-btn-link[disabled] {\n color: rgba(0, 0, 0, 0.3); }\n .kityminder-tools-tab .ant-tabs-content > .ant-tabs-tabpane.ant-tabs-tabpane-active {\n overflow: visible; }\n\n.for-container .for-editor,\n.for-container > div:first-child {\n border-radius: 0px !important; }\n\n.note-previewer {\n display: inline-block;\n position: absolute;\n box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);\n background: #ffd;\n padding: 6px 16px;\n border-radius: 5px;\n max-width: 400px;\n max-height: 200px;\n overflow: auto;\n z-index: 10;\n word-break: break-all;\n font-size: 12px;\n -webkit-user-select: text;\n color: #333;\n line-height: 1.8em; }\n .note-previewer p:last-child {\n margin: 0px; }\n\n.note-previewer.hide,\n.edit-input.hide {\n display: none; }\n\n.edit-input {\n z-index: 9;\n background-color: #fff;\n border-radius: 4px;\n display: inline-block;\n position: absolute;\n width: auto;\n box-shadow: 0 0 15px rgba(0, 0, 0, 0.5); }\n\n.ant-checkbox-wrapper {\n margin-top: 4px;\n margin-left: 0px !important;\n margin-right: 8px !important; }\n\n.color-wrapper {\n display: inline-block; }\n\n.resource-tag.ant-tag-has-color,\n.resource-tag.ant-tag-has-color .anticon-close,\n.resource-tag.ant-tag-has-color .anticon-close:hover {\n color: rgba(0, 0, 0, 0.65);\n cursor: pointer; }\n .resource-tag.ant-tag-has-color.disabled,\n .resource-tag.ant-tag-has-color .anticon-close.disabled,\n .resource-tag.ant-tag-has-color .anticon-close:hover.disabled {\n cursor: not-allowed;\n opacity: 0.5; }\n\n.nav-bar {\n position: absolute;\n bottom: 8px;\n left: 8px;\n line-height: 24px;\n background-color: #fff;\n border-radius: 4px;\n padding: 4px 6px;\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); }\n .nav-bar a {\n display: inline-block;\n height: 24px;\n vertical-align: middle; }\n .nav-bar a:hover svg {\n fill: #008dff;\n transition: all 0.3s; }\n .nav-bar .zoom-text {\n display: inline-block;\n padding: 0 8px;\n width: 54px;\n text-align: center; }\n .nav-bar .nav-previewer {\n background: #fff;\n width: 178px;\n height: 120px;\n position: absolute;\n left: 0;\n bottom: 32px;\n box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);\n border-radius: 0 2px 2px 0;\n padding: 1px;\n overflow: hidden;\n border-radius: 4px;\n transition: -webkit-transform 0.7s 0.1s ease;\n transition: transform 0.7s 0.1s ease; }\n .nav-bar .nav-previewer :hover {\n cursor: crosshair; }\n .nav-bar .nav-previewer-pointer :hover {\n cursor: pointer; }\n\n.agiletc-loader {\n position: absolute;\n width: 100%;\n height: 100%;\n background: rgba(230, 230, 230, 0.6);\n display: flex;\n justify-content: center;\n align-items: center; }\n\n.agiletc-lock.ant-switch {\n background-color: #61c663; }\n .agiletc-lock.ant-switch.ant-switch-checked {\n background-color: #ff6a70; }\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/toolbar/DoGroup.scss": /*!***************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/toolbar/DoGroup.scss ***! \***************************************************************************************************************/ /*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,"@charset \"UTF-8\";\n.km-btn-item.undo:after {\n content: '撤销';\n color: #1890ff; }\n\n.km-btn-item.redo:after {\n content: '重做';\n color: #1890ff; }\n\n.km-btn-item {\n height: 24px; }\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/toolbar/MediaGroup.scss": /*!******************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/toolbar/MediaGroup.scss ***! \******************************************************************************************************************/ /*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".big-icon {\n height: 64px !important;\n padding: 0px 4px; }\n .big-icon.ant-btn > .anticon + span,\n .big-icon.ant-btn > span + .anticon {\n margin-left: 2px; }\n .big-icon.ant-btn > .anticon:first-of-type {\n width: 22px;\n height: 22px; }\n .big-icon.ant-btn > .anticon:first-of-type > svg {\n width: inherit;\n height: inherit; }\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/toolbar/Nodes.scss": /*!*************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/toolbar/Nodes.scss ***! \*************************************************************************************************************/ /*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".km-node-command-menu.insert-node {\n display: inline-block;\n margin-right: 12px; }\n\n.ant-btn > .anticon + span,\n.ant-btn > span + .anticon {\n margin-left: 4px; }\n\n.nodes-actions .ant-btn-link {\n padding: 0px 6px; }\n\n.nodes-actions .ant-btn-link:hover {\n background-color: #eff3fa; }\n",""])},"./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/toolbar/PriorityGroup.scss": /*!*********************************************************************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/toolbar/PriorityGroup.scss ***! \*********************************************************************************************************************/ /*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".ant-btn.priority-btn {\n border-radius: 8px;\n padding: 0px 2px;\n margin-left: 2px;\n font-style: italic;\n font-size: 12px;\n height: 22px;\n margin-left: 4px; }\n .ant-btn.priority-btn span {\n color: #fff;\n display: inline-block;\n width: 17px;\n text-align: center; }\n .ant-btn.priority-btn:first {\n margin-left: 0px; }\n .ant-btn.priority-btn.ant-btn-link {\n background-color: #a3a3a3;\n border-bottom: 3px solid #515151; }\n .ant-btn.priority-btn.p1 {\n background-color: #ff1200;\n border-bottom: 3px solid #840023; }\n .ant-btn.priority-btn.p1[disabled]:hover {\n background-color: #ff1200; }\n .ant-btn.priority-btn.p2 {\n background-color: #0074ff;\n border-bottom: 3px solid #01467f; }\n .ant-btn.priority-btn.p2[disabled]:hover {\n background-color: #0074ff; }\n .ant-btn.priority-btn.p3 {\n background-color: #00af00;\n border-bottom: 3px solid #006300; }\n .ant-btn.priority-btn.p3[disabled]:hover {\n background-color: #00af00; }\n .ant-btn.priority-btn.p4 {\n background-color: #ff962e;\n border-bottom: 3px solid #b25000; }\n .ant-btn.priority-btn.p4[disabled]:hover {\n background-color: #ff962e; }\n .ant-btn.priority-btn.p5 {\n background-color: #a464ff;\n border-bottom: 3px solid #4720c4; }\n .ant-btn.priority-btn.p5[disabled]:hover {\n background-color: #a464ff; }\n .ant-btn.priority-btn:hover {\n color: #fff;\n opacity: 0.7; }\n .ant-btn.priority-btn[disabled] {\n opacity: 0.4; }\n",""])},"./node_modules/css-loader/dist/runtime/api.js": /*!*****************************************************!*\ !*** ./node_modules/css-loader/dist/runtime/api.js ***! \*****************************************************/ /*! no static exports found */function(e,t,n){"use strict";e.exports=function(n){var a=[];return a.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),t=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(t).concat([e]).join("\n")}return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},a.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(n[o]=!0)}for(r=0;r<e.length;r++){var i=e[r];null!=i[0]&&n[i[0]]||(t&&!i[2]?i[2]=t:t&&(i[2]="("+i[2]+") and ("+t+")"),a.push(i))}},a}},"./node_modules/process/browser.js": /*!*****************************************!*\ !*** ./node_modules/process/browser.js ***! \*****************************************/ /*! no static exports found */function(e,t){var n,r,e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var s,c=[],u=!1,l=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}e.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||u||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=p,e.addListener=p,e.once=p,e.off=p,e.removeListener=p,e.removeAllListeners=p,e.emit=p,e.prependListener=p,e.prependOnceListener=p,e.listeners=function(e){return[]},e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},"./node_modules/style-loader/lib/addStyles.js": /*!****************************************************!*\ !*** ./node_modules/style-loader/lib/addStyles.js ***! \****************************************************/ /*! no static exports found */function(e,t,r){var n,o,i,c={},u=(n=function(){return window&&document&&document.all&&!window.atob},function(){return o=void 0===o?n.apply(this,arguments):o}),a=(i={},function(e,t){if("function"==typeof e)return e();if(void 0===i[e]){t=function(e,t){return(t||document).querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}i[e]=t}return i[e]}),s=null,l=0,d=[],f=r(/*! ./urls */"./node_modules/style-loader/lib/urls.js");function h(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=c[r.id];if(o){o.refs++;for(var i=0;i<o.parts.length;i++)o.parts[i](r.parts[i]);for(;i<r.parts.length;i++)o.parts.push(v(r.parts[i],t))}else{for(var a=[],i=0;i<r.parts.length;i++)a.push(v(r.parts[i],t));c[r.id]={id:r.id,refs:1,parts:a}}}}function p(e,t){for(var n=[],r={},o=0;o<e.length;o++){var i=e[o],a=t.base?i[0]+t.base:i[0],i={css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(i):n.push(r[a]={id:a,parts:[i]})}return n}function m(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=d[d.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");e=a(e.insertAt.before,n);n.insertBefore(t,e)}}function g(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=d.indexOf(e))&&d.splice(e,1))}function y(e){var t,n=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0!==e.attrs.nonce||(t=function(){0;return r.nc}())&&(e.attrs.nonce=t),b(n,e.attrs),m(e,n),n}function b(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function v(t,e){var n,r,o,i,a;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}return o=e.singleton?(a=l++,n=s=s||y(e),r=S.bind(null,n,a,!1),S.bind(null,n,a,!0)):t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=e,a=document.createElement("link"),void 0===i.attrs.type&&(i.attrs.type="text/css"),i.attrs.rel="stylesheet",b(a,i.attrs),m(i,a),n=a,r=function(e,t,n){var r=n.css,o=n.sourceMap,n=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||n)&&(r=f(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");o=new Blob([r],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(o),r&&URL.revokeObjectURL(r)}.bind(null,n,e),function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(e),r=function(e,t){var n=t.css,t=t.media;t&&e.setAttribute("media",t);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){g(n)}),r(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||r(t=e):o()}}e.exports=function(e,a){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(a=a||{}).attrs="object"==typeof a.attrs?a.attrs:{},a.singleton||"boolean"==typeof a.singleton||(a.singleton=u()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var s=p(e,a);return h(s,a),function(e){for(var t=[],n=0;n<s.length;n++){var r=s[n];(o=c[r.id]).refs--,t.push(o)}e&&h(p(e,a),a);for(var o,n=0;n<t.length;n++)if(0===(o=t[n]).refs){for(var i=0;i<o.parts.length;i++)o.parts[i]();delete c[o.id]}}};var w,x=(w=[],function(e,t){return w[e]=t,w.filter(Boolean).join("\n")});function S(e,t,n,r){var n=n?"":r.css;e.styleSheet?e.styleSheet.cssText=x(t,n):(r=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(r,n[t]):e.appendChild(r))}},"./node_modules/style-loader/lib/urls.js": /*!***********************************************!*\ !*** ./node_modules/style-loader/lib/urls.js ***! \***********************************************/ /*! no static exports found */function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var t=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(t)?e:(t=0===t.indexOf("//")?t:0===t.indexOf("/")?n+t:r+t.replace(/^\.\//,""),"url("+JSON.stringify(t)+")")})}},"./node_modules/timers-browserify/main.js": /*!************************************************!*\ !*** ./node_modules/timers-browserify/main.js ***! \************************************************/ /*! no static exports found */function(e,o,i){!function(e){var t=void 0!==e&&e||"undefined"!=typeof self&&self||window,n=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}o.setTimeout=function(){return new r(n.call(setTimeout,t,arguments),clearTimeout)},o.setInterval=function(){return new r(n.call(setInterval,t,arguments),clearInterval)},o.clearTimeout=o.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(t,this._id)},o.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},o.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},o._unrefActive=o.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;0<=t&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},i(/*! setimmediate */"setimmediate"),o.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,o.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}.call(this,i(/*! ./../webpack/buildin/global.js */"./node_modules/webpack/buildin/global.js"))},"./node_modules/webpack/buildin/global.js": /*!***********************************!*\ !*** (webpack)/buildin/global.js ***! \***********************************/ /*! no static exports found */function(e,t){var n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},"./src/assets/kityminder-core/kityminder.core.js": /*!*******************************************************!*\ !*** ./src/assets/kityminder-core/kityminder.core.js ***! \*******************************************************/ /*! no static exports found */function(e,t,n){!function(u,l){function d(e){return(d="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)} /*! * ==================================================== * Kity Minder Core - v1.4.49 - 2018-04-02 * https://github.com/fex-team/kityminder-core * GitHub: https://github.com/fex-team/kityminder-core.git * Copyright (c) 2018 Baidu FEX; Licensed BSD-3-Clause * ==================================================== */ var m;(m={r:function(e){if(m[e].inited)return m[e].value;if("function"!=typeof m[e].value)return m[e].inited=!0,m[e].value;var t,n={exports:{}},r=m[e].value(null,n.exports,n);if(m[e].inited=!0,void 0!==(m[e].value=r))return r;for(t in n.exports)if(n.exports.hasOwnProperty(t))return m[e].inited=!0,m[e].value=n.exports,n.exports},0:{value:function(e,t,n){var u=m.r(17),r=m.r(11),l=(new u.Marker).pipe(function(){var e=new u.Circle(6);this.addShape(e),this.setRef(6,0).setViewBox(-7,-7,14,14).setWidth(7).setHeight(7),this.dot=e,this.node.setAttribute("markerUnits","userSpaceOnUse")});r.register("arc",function(e,t,n,r,o){var i=e.getLayoutBox(),a=t.getLayoutBox(),s=Math.abs,c=[],t=i.x>a.x?"right":"left";e.getMinder().getPaper().addResource(l),a=new u.Point(a.cx,a.cy),t="left"==t?new u.Point(i.right+2,i.cy):new u.Point(i.left-2,i.cy),i=u.Vector.fromPoints(a,t),c.push("M",a),c.push("A",s(i.x),s(i.y),0,0,0<i.x*i.y?0:1,t),n.setMarker(l),l.dot.fill(o),n.setPathData(c)})}},1:{value:function(e,t,n){var u=m.r(17),r=m.r(11),l=(new u.Marker).pipe(function(){var e=new u.Circle(6);this.addShape(e),this.setRef(6,0).setViewBox(-7,-7,14,14).setWidth(7).setHeight(7),this.dot=e,this.node.setAttribute("markerUnits","userSpaceOnUse")});r.register("arc_tp",function(e,t,n,r,o){var i=e.getLayoutBox(),a=t.getLayoutBox(),s=e.getIndex(),c=t.getChildren()[s+1];0<e.getIndex()&&(a=t.getChildren()[s-1].getLayoutBox());Math.abs;var t=[];i.x,a.x;e.getMinder().getPaper().addResource(l);var s=new u.Point(a.cx,a.cy),a=new u.Point(i.cx,i.cy),i=Math.sqrt(Math.pow(s.x-a.x,2)+Math.pow(s.y-a.y,2)),i=0==e.getIndex()?.4*i:i;u.Vector.fromPoints(s,a);t.push("M",s),t.push("A",i,i,0,0,1,a),n.setMarker(l),l.dot.fill(o),n.setPathData(t),c&&c.getConnection()&&(i=c.getConnection(),n=c.getLayoutBox(),c=new u.Point(n.cx,n.cy),n=Math.sqrt(Math.pow(a.x-c.x,2)+Math.pow(a.y-c.y,2)),(t=[]).push("M",a),t.push("A",n,n,0,0,1,c),i.setMarker(l),l.dot.fill(o),i.setPathData(t))})}},2:{value:function(e,t,n){m.r(17);m.r(11).register("bezier",function(e,t,n){var r,o=t.getLayoutVertexOut(),i=e.getLayoutVertexIn(),a=t.getLayoutVectorOut().normalize(),s=Math.round,e=Math.abs,t=[];t.push("M",s(o.x),s(o.y)),e(a.x)>e(a.y)?(r=(i.x+o.x)/2,t.push("C",r,o.y,r,i.y,i.x,i.y)):(r=(i.y+o.y)/2,t.push("C",o.x,r,i.x,r,i.x,i.y)),n.setMarker(null),n.setPathData(t)})}},3:{value:function(e,t,n){m.r(17);m.r(11).register("fish-bone-master",function(e,t,n){var r=t.getLayoutVertexOut(),o=e.getLayoutVertexIn(),i=Math.abs,t=i(r.y-o.y),e=i(r.x-o.x),i=[];i.push("M",r.x,r.y),i.push("h",e-t),i.push("L",o.x,o.y),n.setMarker(null),n.setPathData(i)})}},4:{value:function(e,t,n){m.r(17);m.r(11).register("l",function(e,t,n){var r=t.getLayoutVertexOut(),o=e.getLayoutVertexIn(),i=t.getLayoutVectorOut(),a=[],e=Math.round,t=Math.abs;a.push("M",r.round()),t(i.x)>t(i.y)?a.push("H",e(o.x)):a.push("V",o.y),a.push("L",o),n.setPathData(a)})}},5:{value:function(e,t,n){m.r(17);m.r(11).register("poly",function(e,t,n,r){var o=t.getLayoutVertexOut(),i=e.getLayoutVertexIn(),a=t.getLayoutVectorOut().normalize(),s=Math.round,e=Math.abs,c=[];switch(c.push("M",s(o.x),s(o.y)),!0){case e(a.x)>e(a.y)&&a.x<0:c.push("h",-t.getStyle("margin-left")),c.push("v",i.y-o.y),c.push("H",i.x);break;case e(a.x)>e(a.y)&&0<=a.x:c.push("h",t.getStyle("margin-right")),c.push("v",i.y-o.y),c.push("H",i.x);break;case e(a.x)<=e(a.y)&&a.y<0:c.push("v",-t.getStyle("margin-top")),c.push("h",i.x-o.x),c.push("V",i.y);break;case e(a.x)<=e(a.y)&&0<=a.y:c.push("v",t.getStyle("margin-bottom")),c.push("h",i.x-o.x),c.push("V",i.y)}n.setMarker(null),n.setPathData(c)})}},6:{value:function(e,t,n){var d=m.r(17);m.r(11).register("under",function(e,t,n,r,o){var i,a,s=e.getLayoutBox(),c=t.getLayoutBox(),u=(Math.abs,[]),l=s.x>c.x?"right":"left",e=(e.getStyle("connect-radius"),s.bottom+3),t="sub"==t.getType()?c.bottom+3:c.cy,s="right"==l?(i=new d.Point(c.right,t),a=new d.Point(s.left-10,e),new d.Point(s.right,e)):(i=new d.Point(c.left,t),a=new d.Point(s.right+10,e),new d.Point(s.left,e)),e=(i.x+a.x)/2;u.push("M",i),u.push("C",e,i.y,e,a.y,a),u.push("L",s),n.setMarker(null),n.setPathData(u)})}},7:{value:function(e,t,n){var r,o=m.r(17),i=m.r(19);-1!=location.href.indexOf("boxv")&&(Object.defineProperty(o.Box.prototype,"visualization",{get:function(){return r?r.setBox(this):null}}),i.registerInitHook(function(){this.on("paperrender",function(){(r=new o.Rect).fill("rgba(200, 200, 200, .5)"),r.stroke("orange"),this.getRenderContainer().addShape(r)})}))}},8:{value:function(e,t,n){var r=m.r(19),o={enableAnimation:!0,layoutAnimationDuration:300,viewAnimationDuration:100,zoomAnimationDuration:300},i={};r.registerInitHook(function(){this.setDefaultOptions(o),this.getOption("enableAnimation")||this.disableAnimation()}),r.prototype.enableAnimation=function(){for(var e in o)o.hasOwnProperty(e)&&this.setOption(i[e])},r.prototype.disableAnimation=function(){for(var e in o)o.hasOwnProperty(e)&&(i[e]=this.getOption(e),this.setOption(e,0))}}},9:{value:function(e,t,n){var r=m.r(17),o=(m.r(33),m.r(19)),a=(m.r(21),m.r(13)),i=r.createClass("Command",{constructor:function(){this._isContentChange=!0,this._isSelectionChange=!1},execute:function(e,t){throw new Error("Not Implement: Command.execute()")},setContentChanged:function(e){this._isContentChange=!!e},isContentChanged:function(){return this._isContentChange},setSelectionChanged:function(e){this._isSelectionChange=!!e},isSelectionChanged:function(){return this._isContentChange},queryState:function(e){return 0},queryValue:function(e){return 0},isNeedUndo:function(){return!0}});i.STATE_NORMAL=0,i.STATE_ACTIVE=1,i.STATE_DISABLED=-1,r.extendClass(o,{_getCommand:function(e){return this._commands[e.toLowerCase()]},_queryCommand:function(e,t,n){e=this._getCommand(e);if(e){t=e["query"+t];if(t)return t.apply(e,[this].concat(n))}return 0},queryCommandState:function(e){return this._queryCommand(e,"State",[].slice.call(arguments,1))},queryCommandValue:function(e){return this._queryCommand(e,"Value",[].slice.call(arguments,1))},execCommand:function(e){if(!e)return null;e=e.toLowerCase();var t,n=[].slice.call(arguments,1),r=this,o=this._getCommand(e),i={command:o,commandName:e.toLowerCase(),commandArgs:n};return!(!o||!~this.queryCommandState(e))&&(this._hasEnterExecCommand?(t=o.execute.apply(o,[r].concat(n)),this._hasEnterExecCommand||this._interactChange()):(this._hasEnterExecCommand=!0,this._fire(new a("beforeExecCommand",i,!0))||(this._fire(new a("preExecCommand",i,!1)),t=o.execute.apply(o,[r].concat(n)),this._fire(new a("execCommand",i,!1)),o.isContentChanged()&&this._firePharse(new a("contentchange")),this._interactChange()),this._hasEnterExecCommand=!1),void 0===t?null:t)}}),n.exports=i}}})[10]={value:function(e,t,n){m.r(33);function r(e,t){t(e),e.children&&e.children.forEach(function(e){r(e,t)})}return function(e){var t;switch(e.version||(e.root?"1.4.0":"1.1.3")){case"1.1.3":!function(e){var t=e.data.currentstyle;delete e.data.currentstyle,"bottom"==t?(e.template="structure",e.theme="snow"):"default"==t&&(e.template="default",e.theme="classic");r(e,function(e){e=e.data;"PriorityIcon"in e&&(e.priority=e.PriorityIcon,delete e.PriorityIcon),"ProgressIcon"in e&&(e.progress=1+(e.ProgressIcon-1<<1),delete e.ProgressIcon),delete e.point,delete e.layout})}(e);case"1.2.0":case"1.2.1":r(e,function(e){e=e.data;delete e.layout_bottom_offset,delete e.layout_default_offset,delete e.layout_filetree_offset});case"1.3.0":case"1.3.1":case"1.3.2":case"1.3.3":case"1.3.4":case"1.3.5":(t=e).root={data:t.data,children:t.children},delete t.data,delete t.children}return e}}},m[11]={value:function(e,t,n){var r=m.r(17),o=m.r(33),i=m.r(20),a=m.r(19),s=m.r(21),c={};function u(e,t){c[e]=t}u("default",function(e,t,n){n.setPathData(["M",t.getLayoutVertexOut(),"L",e.getLayoutVertexIn()])}),r.extendClass(s,{getConnect:function(){return this.data.connect||"default"},getConnectProvider:function(){return c[this.getConnect()]||c.default},getConnection:function(){return this._connection||null}}),r.extendClass(a,{getConnectContainer:function(){return this._connectContainer},createConnect:function(e){var t;e.isRoot()||(t=new r.Path,e._connection=t,this._connectContainer.addShape(t),this.updateConnect(e))},removeConnect:function(e){var t=this;e.traverse(function(e){t._connectContainer.removeShape(e._connection),e._connection=null})},updateConnect:function(e){var t,n,r,o=e._connection,i=e.parent;i&&o&&(i.isCollapsed()?o.setVisible(!1):(o.setVisible(!0),t=e.getConnectProvider(),n=e.getStyle("connect-color")||"white",r=e.getStyle("connect-width")||2,o.stroke(n,r),t(e,i,o,r,n),r%2==0?o.setTranslate(.5,.5):o.setTranslate(0,0)))}}),i.register("Connect",{init:function(){this._connectContainer=(new r.Group).setId(o.uuid("minder_connect_group")),this.getRenderContainer().prependShape(this._connectContainer)},events:{nodeattach:function(e){this.createConnect(e.node)},nodedetach:function(e){this.removeConnect(e.node)},"layoutapply layoutfinish noderender":function(e){this.updateConnect(e.node)}}}),t.register=u}},m[12]={value:function(e,t,n){var r=m.r(17),o=(m.r(33),m.r(19)),i=(m.r(21),m.r(13)),a=m.r(10),s=m.r(25),c={};t.registerProtocol=function(e,t){for(var n in c[e]=t,c)c.hasOwnProperty(n)&&(c[n]=c[n],c[n].name=n)},t.getRegisterProtocol=function(e){return void 0===e?c:c[e]||null},r.extendClass(o,{setup:function(e){if(e="string"==typeof e?document.querySelector(e):e){var t,n=e.getAttribute("minder-data-type");return n in c&&(t=e.textContent,e.textContent=null,this.renderTo(e),this.importData(n,t)),this}},exportJson:function(){var e={root:function e(t){var n={};n.data=t.getData();var r=t.getChildren();n.children=[];for(var o=0;o<r.length;o++)n.children.push(e(r[o]));return n}(this.getRoot())};return e.template=this.getTemplate(),e.theme=this.getTheme(),e.version=o.version,e.base=this.getBase(),JSON.parse(JSON.stringify(e))},Text2Children:function(e,t){if(e instanceof kityminder.Node){for(var n,r,o=[],i={},a=/^(\t|\x20{4})/,s=t.split(/\r|\n|\r\n/),c="",u=0,l=this;void 0!==(c=s[u++]);)if(c=c.replace(/&nbsp;/g,""),""!==(r=c)||/\S/.test(r))if(n=function(e){for(var t=0;a.test(e);)e=e.replace(a,""),t++;return t}(c),r={data:{text:c.replace(/^(\t|\x20{4})+/,"").replace(/(\t|\x20{4})+$/,"")},children:[]},0===n)i={},o.push(r),i[0]=o[o.length-1];else{if(!i[n-1])throw new Error("Invalid local format");i[n-1].children.push(r),i[n]=r}!function e(t,n){for(var r=0,o=n.length;r<o;r++){var i=l.createNode(null,t);i.setData("text",n[r].data.text||""),e(i,n[r].children)}}(e,o),l.refresh()}},exportNode:function(e){var t={};t.data=e.getData();var n=e.getChildren();t.children=[];for(var r=0;r<n.length;r++)t.children.push(this.exportNode(n[r]));return t},importNode:function(e,t){var n,r=t.data;for(n in e.data={},r)e.setData(n,r[n]);for(var o=t.children||[],i=0;i<o.length;i++){var a=this.createNode(null,e);this.importNode(a,o[i])}return e},importJson:function(e){if(e){for(this._fire(new i("preimport",null,!1));this._root.getChildren().length;)this.removeNode(this._root.getChildren()[0]);return e=a(e),this.importNode(this._root,e.root),this.setTemplate(e.template||"default"),this.setTheme(e.theme||null),this.setBase(e.base),this.refresh(),this.fire("import"),this._firePharse({type:"contentchange"}),this._interactChange(),this}},exportData:function(e,t){var n,r=this.exportJson();return!e||(n=c[e])&&n.encode?(this._fire(new i("beforeexport",{json:r,protocolName:e,protocol:n})),s.resolve(n.encode(r,this,t))):s.reject(new Error("Not supported protocol:"+e))},importData:function(e,t,n){var r,o=this;return!e||(r=c[e])&&r.decode?(this._fire(new i("beforeimport",{local:t,protocolName:e,protocol:r})),s.resolve(r.decode(t,this,n)).then(function(e){return o.importJson(e),e})):s.reject(new Error("Not supported protocol:"+e))},decodeData:function(e,t,n){var r;return!e||(r=c[e])&&r.decode?(this._fire(new i("beforeimport",{local:t,protocolName:e,protocol:r})),s.resolve(r.decode(t,this,n))):s.reject(new Error("Not supported protocol:"+e))}})}},m[13]={value:function(e,t,n){var r=m.r(17),o=(m.r(33),m.r(19)),i=r.createClass("MindEvent",{constructor:function(e,t,n){(t=t||{}).getType&&"ShapeEvent"==t.getType()?(this.kityEvent=t,this.originEvent=t.originEvent):t.target&&t.preventDefault?this.originEvent=t:r.Utils.extend(this,t),this.type=e,this._canstop=n||!1},getPosition:function(e){if(this.kityEvent)return e&&"minder"!=e?this.kityEvent.getPosition.call(this.kityEvent,e):this.kityEvent.getPosition(this.minder.getRenderContainer())},getTargetNode:function(){var e=this.kityEvent&&this.kityEvent.targetShape;if(!e)return null;for(;!e.minderNode&&e.container;)e=e.container;var t=e.minderNode;return!(t&&e.getOpacity()<1)&&t||null},stopPropagation:function(){this._stoped=!0},stopPropagationImmediately:function(){this._immediatelyStoped=!0,this._stoped=!0},shouldStopPropagation:function(){return this._canstop&&this._stoped},shouldStopPropagationImmediately:function(){return this._canstop&&this._immediatelyStoped},preventDefault:function(){this.originEvent.preventDefault()},isRightMB:function(){var e=!1;return!!this.originEvent&&("which"in this.originEvent?e=3==this.originEvent.which:"button"in this.originEvent&&(e=2==this.originEvent.button),e)},getKeyCode:function(){var e=this.originEvent;return e.keyCode||e.which}});o.registerInitHook(function(e){this._initEvents()}),r.extendClass(o,{_initEvents:function(){this._eventCallbacks={}},_resetEvents:function(){this._initEvents(),this._bindEvents()},_bindEvents:function(){this._paper.on("click dblclick mousedown contextmenu mouseup mousemove mouseover mousewheel DOMMouseScroll touchstart touchmove touchend dragenter dragleave drop",this._firePharse.bind(this)),window&&window.addEventListener("resize",this._firePharse.bind(this))},dispatchKeyEvent:function(e){this._firePharse(e)},_firePharse:function(e){var t,n;"DOMMouseScroll"==e.type&&(e.type="mousewheel",e.wheelDelta=e.originEvent.wheelDelta=-10*e.originEvent.detail,e.wheelDeltaX=e.originEvent.mozMovementX,e.wheelDeltaY=e.originEvent.mozMovementY),n=new i("before"+e.type,e,!0),this._fire(n)||(t=new i("pre"+e.type,e,!0),n=new i(e.type,e,!0),(this._fire(t)||this._fire(n))&&this._fire(new i("after"+e.type,e,!1)))},_interactChange:function(e){var t=this;t._interactScheduled||(setTimeout(function(){t._fire(new i("interactchange")),t._interactScheduled=!1},100),t._interactScheduled=!0)},_listen:function(e,t){(this._eventCallbacks[e]||(this._eventCallbacks[e]=[])).push(t)},_fire:function(e){var t=(e.minder=this).getStatus(),n=this._eventCallbacks[e.type.toLowerCase()]||[];if(0!==(n=t?n.concat(this._eventCallbacks[t+"."+e.type.toLowerCase()]||[]):n).length){this.getStatus();for(var r=0;r<n.length&&(n[r].call(this,e),!e.shouldStopPropagationImmediately());r++);return e.shouldStopPropagation()}},on:function(e,t){var n=this;return e.split(/\s+/).forEach(function(e){n._listen(e.toLowerCase(),t)}),this},off:function(e,t){for(var n,r,o,i=e.split(/\s+/),a=0;a<i.length;a++)if(r=this._eventCallbacks[i[a].toLowerCase()]){for(o=null,n=0;n<r.length;n++)r[n]==t&&(o=n);null!==o&&r.splice(o,1)}},fire:function(e,t){t=new i(e,t);return this._fire(t),this}}),n.exports=i}},m[14]={value:function(e,t,n){var r=m.r(17),o=m.r(19);o.registerInitHook(function(){this.on("beforemousedown",function(e){this.focus(),e.preventDefault()}),this.on("paperrender",function(){this.focus()})}),r.extendClass(o,{focus:function(){return this.isFocused()||(this._renderTarget.classList.add("focus"),this.renderNodeBatch(this.getSelectedNodes())),this.fire("focus"),this},blur:function(){return this.isFocused()&&(this._renderTarget.classList.remove("focus"),this.renderNodeBatch(this.getSelectedNodes())),this.fire("blur"),this},isFocused:function(){var e=this._renderTarget;return e&&e.classList.contains("focus")}})}},m[15]={value:function(e,t,n){var r,o={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,direction:{37:1,38:1,39:1,40:1},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,controlKeys:{16:1,17:1,18:1,20:1,91:1,224:1},notContentChange:{13:1,9:1,33:1,34:1,35:1,36:1,16:1,17:1,18:1,20:1,91:1,37:1,38:1,39:1,40:1,113:1,114:1,115:1,144:1,27:1},isSelectedNodeKey:{37:1,38:1,39:1,40:1,13:1,9:1}};for(r in o)o.hasOwnProperty(r)&&(o[r.toLowerCase()]=o[r]);var i="a".charCodeAt(0);"abcdefghijklmnopqrstuvwxyz".split("").forEach(function(e){o[e]=e.charCodeAt(0)-i+65});for(var a=9;o[a.toString()]=a+48,--a;);n.exports=o}},m[16]={value:function(e,t,n){var r=m.r(17),o=(m.r(33),m.r(19));o.registerInitHook(function(e){this.setDefaultOptions({enableKeyReceiver:!0}),this.getOption("enableKeyReceiver")&&this.on("paperrender",function(){this._initKeyReceiver()})}),r.extendClass(o,{_initKeyReceiver:function(){var t,n,r,o;this._keyReceiver||((t=this._keyReceiver=document.createElement("input")).classList.add("km-receiver"),this._renderTarget.appendChild(t),n=this,r=t,o=function(e){switch(e.type){case"blur":n.blur();break;case"focus":n.focus();break;case"input":t.value=null}n._firePharse(e),e.preventDefault()},"keydown keyup keypress copy paste blur focus input".split(" ").forEach(function(e){r.addEventListener(e,o,!1)}),this.on("focus",function(){t.select(),t.focus()}),this.on("blur",function(){t.blur()}),this.isFocused()&&(t.select(),t.focus()))}})}},m[17]={value:function(e,t,n){n.exports=window.kity}},m[18]={value:function(e,t,n){var r,l=m.r(17),o=m.r(33),i=m.r(19),a=m.r(21),s=(m.r(13),m.r(9),{});var c=l.createClass("Layout",{doLayout:function(e,t){throw new Error("Not Implement: Layout.doLayout()")},align:function(e,r,o){var i=this;o=o||0,e.forEach(function(e){var t=i.getTreeBox([e]),n=e.getLayoutTransform();switch(r){case"left":return n.translate(o-t.left,0);case"right":return n.translate(o-t.right,0);case"top":return n.translate(0,o-t.top);case"bottom":return n.translate(0,o-t.bottom)}})},stack:function(e,a,s){var c=this,u=0;return s=s||function(e,t,n){return e.getStyle({x:"margin-right",y:"margin-bottom"}[n])+t.getStyle({x:"margin-left",y:"margin-top"}[n])},e.forEach(function(e,t,n){var r=c.getTreeBox([e]),o={x:r.width,y:r.height}[a],i={x:r.left,y:r.top}[a],r=e.getLayoutTransform();"x"==a?r.translate(u-i,0):r.translate(0,u-i),u+=o,n[t+1]&&(u+=s(e,n[t+1],a))}),u},move:function(e,t,n){e.forEach(function(e){e.getLayoutTransform().translate(t,n)})},getBranchBox:function(e){for(var t,n,r=new l.Box,o=0;o<e.length;o++)t=(n=e[o]).getLayoutTransform(),n=n.getContentBox(),r=r.merge(t.transformBox(n));return r},getTreeBox:function(e){var t,n,r,o,i=new l.Box;for(e instanceof Array||(e=[e]),t=0;t<e.length;t++)r=(n=e[t]).getLayoutTransform(),o=n.getContentBox(),n.isExpanded()&&n.children.length&&(o=o.merge(this.getTreeBox(n.children))),i=i.merge(r.transformBox(o));return i},getOrderHint:function(e){return[]}});c.register=function(e,t){s[e]=t,r=r||e},i.registerInitHook(function(e){this.refresh()}),o.extend(i,{getLayoutList:function(){return s},getLayoutInstance:function(e){var t=s[e];if(!t)throw new Error("Missing Layout: "+e);return new t}}),l.extendClass(a,{getLayout:function(){return this.getData("layout")||(this.isRoot()?r:this.parent.getLayout())},setLayout:function(e){return e&&("inherit"==e?this.setData("layout"):this.setData("layout",e)),this},layout:function(e){return this.setLayout(e).getMinder().layout(),this},getLayoutInstance:function(){return i.getLayoutInstance(this.getLayout())},getOrderHint:function(e){return this.parent.getLayoutInstance().getOrderHint(this)},getLayoutTransform:function(){return this._layoutTransform||new l.Matrix},getGlobalLayoutTransformPreview:function(){var e=this.parent?this.parent.getLayoutTransform():new l.Matrix,t=this.getLayoutTransform(),n=this.getLayoutOffset();return n&&(t=t.clone().translate(n.x,n.y)),e.merge(t)},getLayoutPointPreview:function(){return this.getGlobalLayoutTransformPreview().transformPoint(new l.Point)},getGlobalLayoutTransform:function(){return this._globalLayoutTransform||(this.parent?this.parent.getGlobalLayoutTransform():new l.Matrix)},setLayoutTransform:function(e){return this._layoutTransform=e,this},setGlobalLayoutTransform:function(e){return this.getRenderContainer().setMatrix(this._globalLayoutTransform=e),this},setVertexIn:function(e){this._vertexIn=e},setVertexOut:function(e){this._vertexOut=e},getVertexIn:function(){return this._vertexIn||new l.Point},getVertexOut:function(){return this._vertexOut||new l.Point},getLayoutVertexIn:function(){return this.getGlobalLayoutTransform().transformPoint(this.getVertexIn())},getLayoutVertexOut:function(){return this.getGlobalLayoutTransform().transformPoint(this.getVertexOut())},setLayoutVectorIn:function(e){return this._layoutVectorIn=e,this},setLayoutVectorOut:function(e){return this._layoutVectorOut=e,this},getLayoutVectorIn:function(){return this._layoutVectorIn||new l.Vector},getLayoutVectorOut:function(){return this._layoutVectorOut||new l.Vector},getLayoutBox:function(){return this.getGlobalLayoutTransform().transformBox(this.getContentBox())},getLayoutPoint:function(){return this.getGlobalLayoutTransform().transformPoint(new l.Point)},getLayoutOffset:function(){if(!this.parent)return new l.Point;var e=this.getData("layout_"+this.parent.getLayout()+"_offset");return e?new l.Point(e.x,e.y):new l.Point},setLayoutOffset:function(e){return this.parent&&this.setData("layout_"+this.parent.getLayout()+"_offset",e?{x:e.x,y:e.y}:void 0),this},hasLayoutOffset:function(){return!!this.getData("layout_"+this.parent.getLayout()+"_offset")},resetLayoutOffset:function(){return this.setLayoutOffset(null)},getLayoutRoot:function(){return this.isLayoutRoot()?this:this.parent.getLayoutRoot()},isLayoutRoot:function(){return this.getData("layout")||this.isRoot()}}),l.extendClass(i,{layout:function(){var e=this.getOption("layoutAnimationDuration");function n(e,t){e.isExpanded(),e.children.forEach(function(e){n(e,t)}),e.getLayoutInstance().doLayout(e,e.getChildren(),t)}this.getRoot().traverse(function(e){e.setLayoutTransform(null)}),n(this.getRoot(),1),n(this.getRoot(),2);var t=this;return this.applyLayoutResult(this.getRoot(),e,function(){setTimeout(function(){t.fire("layoutallfinish")},0)}),this.fire("layout")},refresh:function(){return this.getRoot().renderTree(),this.layout().fire("contentchange")._interactChange(),this},applyLayoutResult:function(e,a,t){e=e||this.getRoot();var s=this,n=e.getComplex();function c(){--n||t&&t()}function u(e,t){e.setGlobalLayoutTransform(t),s.fire("layoutapply",{node:e,matrix:t})}return 200<n&&(a=0),function e(t,n){var r=t.getLayoutTransform().merge(n.clone()),o=t.getGlobalLayoutTransform()||new l.Matrix,n=t.getLayoutOffset();r.translate(n.x,n.y),r.m.e=Math.round(r.m.e),r.m.f=Math.round(r.m.f),t._layoutTimeline&&(t._layoutTimeline.stop(),t._layoutTimeline=null),a?t._layoutTimeline=new l.Animator(o,r,u).start(t,a,"ease").on("finish",function(){setTimeout(function(){u(t,r),s.fire("layoutfinish",{node:t,matrix:r}),c()},150)}):(u(t,r),s.fire("layoutfinish",{node:t,matrix:r}),c());for(var i=0;i<t.children.length;i++)e(t.children[i],r)}(e,e.parent?e.parent.getGlobalLayoutTransform():new l.Matrix),this}}),n.exports=c}},m[19]={value:function(e,t,n){var r=m.r(17),o=m.r(33),i=[],r=r.createClass("Minder",{constructor:function(e){this._options=o.extend({},e);for(var t,n=i.slice();n.length;)"function"==typeof(t=n.shift())&&t.call(this,this._options);this.fire("finishInitHook")}});r.version="1.4.43",r.registerInitHook=function(e){i.push(e)},n.exports=r}},m[20]={value:function(e,t,n){var r=m.r(17),u=m.r(33),o=m.r(19),l={};t.register=function(e,t){l[e]=t},o.registerInitHook(function(){this._initModules()}),r.extendClass(o,{_initModules:function(){var e,t,n,r,o,i,a=l,s=this._options.modules||u.keys(a);this._commands={},this._query={},this._modules={},this._rendererClasses={};for(var c=0;c<s.length;c++)if(a[e=s[c]]&&(n="function"==typeof a[e]?a[e].call(this):a[e],this._modules[e]=n)){for(e in n.defaultOptions&&this.setDefaultOptions(n.defaultOptions),n.init&&n.init.call(this,this._options),r=n.commands)this._commands[e.toLowerCase()]=new r[e];if(o=n.events)for(t in o)this.on(t,o[t]);if(i=n.renderers)for(t in i)this._rendererClasses[t]=this._rendererClasses[t]||[],u.isArray(i[t])?this._rendererClasses[t]=this._rendererClasses[t].concat(i[t]):this._rendererClasses[t].push(i[t]);n.commandShortcutKeys&&this.addCommandShortcutKeys(n.commandShortcutKeys)}},_garbage:function(){for(this.clearSelect();this._root.getChildren().length;)this._root.removeChild(0)},destroy:function(){var e,t=this._modules;for(e in this._resetEvents(),this._garbage(),t)t[e].destroy&&t[e].destroy.call(this)},reset:function(){var e,t=this._modules;for(e in this._garbage(),t)t[e].reset&&t[e].reset.call(this)}})}},m[21]={value:function(e,t,n){var r=m.r(17),o=m.r(33),i=m.r(19),a=r.createClass("MinderNode",{constructor:function(e){this.parent=null,(this.root=this).children=[],this.data={id:o.guid(),created:+new Date},this.initContainers(),o.isString(e)?this.setText(e):o.isObject(e)&&o.extend(this.data,e)},initContainers:function(){this.rc=(new r.Group).setId(o.uuid("minder_node")),this.rc.minderNode=this},isRoot:function(){return this.root===this},isLeaf:function(){return 0===this.children.length},getRoot:function(){return this.root||this},getParent:function(){return this.parent},getSiblings:function(){var e=this.parent.children,t=[],n=this;return e.forEach(function(e){e!=n&&t.push(e)}),t},getLevel:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e},getComplex:function(){var e=0;return this.traverse(function(){e++}),e},getType:function(e){return this.type=["root","main","sub"][Math.min(this.getLevel(),2)],this.type},isAncestorOf:function(e){for(var t=e.parent;t;){if(t==this)return!0;t=t.parent}return!1},getData:function(e){return e?this.data[e]:this.data},setData:function(e,t){if("object"==d(e)){var n=e;for(e in n)n.hasOwnProperty(e)&&(this.data[e]=n[e])}else this.data[e]=t;return this},setText:function(e){return this.data.text=e},getText:function(){return this.data.text||null},preTraverse:function(e,t){var n=this.getChildren();t||e(this);for(var r=0;r<n.length;r++)n[r].preTraverse(e)},postTraverse:function(e,t){for(var n=this.getChildren(),r=0;r<n.length;r++)n[r].postTraverse(e);t||e(this)},traverse:function(e,t){return this.postTraverse(e,t)},getChildren:function(){return this.children},getIndex:function(){return this.parent?this.parent.children.indexOf(this):-1},insertChild:function(e,t){void 0===t&&(t=this.children.length),e.parent&&e.parent.removeChild(e),e.parent=this,e.root=this.root,this.children.splice(t,0,e)},appendChild:function(e){return this.insertChild(e)},prependChild:function(e){return this.insertChild(e,0)},removeChild:function(e){var t=e;0<=(t=e instanceof a?this.children.indexOf(e):t)&&((t=this.children.splice(t,1)[0]).parent=null,t.root=t)},clearChildren:function(){this.children=[]},getChild:function(e){return this.children[e]},getRenderContainer:function(){return this.rc},getCommonAncestor:function(e){return a.getCommonAncestor(this,e)},contains:function(e){return this==e||this.isAncestorOf(e)},clone:function(){var t=new a;return t.data=o.clone(this.data),this.children.forEach(function(e){t.appendChild(e.clone())}),t},compareTo:function(e){if(!o.comparePlainObject(this.data,e.data))return!1;if(!o.comparePlainObject(this.temp,e.temp))return!1;if(this.children.length!=e.children.length)return!1;for(var t=0;this.children[t];){if(!this.children[t].compareTo(e.children[t]))return!1;t++}return!0},getMinder:function(){return this.getRoot().minder}});a.getCommonAncestor=function(e,t){if(e instanceof Array)return a.getCommonAncestor.apply(this,e);switch(arguments.length){case 1:return e.parent||e;case 2:if(e.isAncestorOf(t))return e;if(t.isAncestorOf(e))return t;for(var n=e.parent;n&&!n.isAncestorOf(t);)n=n.parent;return n;default:return Array.prototype.reduce.call(arguments,function(e,t){return a.getCommonAncestor(e,t)},e)}},r.extendClass(i,{getRoot:function(){return this._root},setRoot:function(e){(this._root=e).minder=this},get