balkan-orgchart-react-community 9.1.82

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.umd.js ADDED
@@ -0,0 +1,287 @@
1
+ (function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`react`),require(`react/jsx-runtime`)):typeof define==`function`&&define.amd?define([`exports`,`react`,`react/jsx-runtime`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.MyReactLib={},e.React,e.jsxRuntime))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:r(s(e)),l(t||!e||!e.__esModule?i(n,`default`,{value:e,enumerable:!0}):n,e)))(t);var u=function(e,t){var n=this;Object.defineProperty(this,`element`,{get(){return e?e.querySelector(`[data-boc-content]`):null},set(e){n.mainElement=e}}),Object.defineProperty(this,`mainElement`,{get(){return e},set(t){e=t,e&&(e.innerHTML=`
2
+ <style>
3
+ .boc-dark, .boc-light{ display: flex; }
4
+ [data-boc-left]{ display: none; }
5
+ [data-boc-right]{ height: 100%; position: relative; overflow:hidden; flex-grow: 1; }
6
+ [data-boc-content]{ height: 100%; width: 100%; }
7
+ @media screen and (max-width: 500px) {
8
+ .boc-dark, .boc-light{ flex-direction: column; }
9
+ [data-boc-left]{ order: 2; height: 50vh; }
10
+ [data-boc-right]{ order: 1; }
11
+ }
12
+ </style>
13
+ <div data-boc-left></div>
14
+ <div data-boc-right>
15
+ <div data-boc-content></div>
16
+ </div>`)}}),Object.defineProperty(this,`leftElement`,{get(){return e.querySelector(`[data-boc-left]`)}}),n.init(e,t)};u.prototype.init=function(e,t){if(e&&!this._initCalled){this._initCalled=!0,(typeof e==`string`||e instanceof String)&&(e=document.querySelector(e)),this.element=e;var n=this;if(this.config=u.mergeDeep(u._defaultConfig(t),t),this._layoutConfigs={base:{orientation:this.config.orientation,levelSeparation:this.config.levelSeparation,mixedHierarchyNodesSeparation:this.config.mixedHierarchyNodesSeparation,assistantSeparation:this.config.assistantSeparation,subtreeSeparation:this.config.subtreeSeparation,siblingSeparation:this.config.siblingSeparation,layout:this.config.layout,columns:this.config.columns,collapse:this.config.collapse,partnerNodeSeparation:this.config.partnerNodeSeparation}},this.config.tags)for(var r in this.config.tags){var i=this.config.tags[r];i.subTreeConfig!=null&&(this._layoutConfigs[r]={orientation:i.subTreeConfig.orientation==null?this.config.orientation:i.subTreeConfig.orientation,levelSeparation:i.subTreeConfig.levelSeparation==null?this.config.levelSeparation:i.subTreeConfig.levelSeparation,mixedHierarchyNodesSeparation:i.subTreeConfig.mixedHierarchyNodesSeparation==null?this.config.mixedHierarchyNodesSeparation:i.subTreeConfig.mixedHierarchyNodesSeparation,assistantSeparation:i.subTreeConfig.assistantSeparation==null?this.config.assistantSeparation:i.subTreeConfig.assistantSeparation,subtreeSeparation:i.subTreeConfig.subtreeSeparation==null?this.config.subtreeSeparation:i.subTreeConfig.subtreeSeparation,siblingSeparation:i.subTreeConfig.siblingSeparation==null?this.config.siblingSeparation:i.subTreeConfig.siblingSeparation,layout:i.subTreeConfig.layout==null?this.config.layout:i.subTreeConfig.layout,columns:i.subTreeConfig.columns==null?this.config.columns:i.subTreeConfig.columns,collapse:i.subTreeConfig.collapse==null?this.config.collapse:i.subTreeConfig.collapse,partnerNodeSeparation:i.subTreeConfig.partnerNodeSeparation==null?this.config.partnerNodeSeparation:i.subTreeConfig.partnerNodeSeparation,template:i.subTreeConfig.template})}this._event_id=u._guid(),u._validateConfig(this.config)&&(this._vScroll={},this.config.ui||(this.ui=u.ui),this.config.editUI?this.editUI=this.config.editUI:this.editUI=new u.editUI,this.editUI.init(this),this.config.filterUI?this.filterUI=this.config.filterUI:this.filterUI=new u.filterUI,this.filterUI.init(this),this.manager=new u.manager(this),this._ai=new u._ai(this),this.config.searchUI?this.searchUI=this.config.searchUI:this.searchUI=new u.searchUI,this.config.aiUI?this.aiUI=this.config.aiUI:this.aiUI=new u.aiUI,this.config.orgScribeUI?this.orgScribeUI=this.config.orgScribeUI:this.orgScribeUI=new u.orgScribeUI,this.config.powerPointPreviewUI?this.powerPointPreviewUI=this.config.powerPointPreviewUI:this.powerPointPreviewUI=new u.exportUI(`pptx`),this.config.pdfPreviewUI?this.pdfPreviewUI=this.config.pdfPreviewUI:this.pdfPreviewUI=new u.exportUI(`pdf`),this.config.svgPreviewUI?this.svgPreviewUI=this.config.svgPreviewUI:this.svgPreviewUI=new u.exportUI(`svg`),this.config.pngPreviewUI?this.pngPreviewUI=this.config.pngPreviewUI:this.pngPreviewUI=new u.exportUI(`png`),this.config.nodeMenuUI?this.nodeMenuUI=this.config.nodeMenuUI:this.nodeMenuUI=new u.menuUI,this.nodeMenuUI.init(this,this.config.nodeMenu),this.config.nodeCircleMenuUI?this.nodeCircleMenuUI=this.config.nodeCircleMenuUI:this.nodeCircleMenuUI=new u.circleMenuUI,this.nodeCircleMenuUI.init(this,this.config.nodeCircleMenu),this.config.nodeContextMenuUI?this.nodeContextMenuUI=this.config.nodeContextMenuUI:this.nodeContextMenuUI=new u.menuUI,this.nodeContextMenuUI.init(this,this.config.nodeContextMenu),this.config.controlsUI?this.controlsUI=this.config.controlsUI:this.controlsUI=new u.controlsUI,this.config.toolbarUI?this.toolbarUI=this.config.toolbarUI:this.toolbarUI=new u.toolbarUI,this.config.notifierUI?this.notifierUI=this.config.notifierUI:this.notifierUI=new u.notifierUI,this.notifierUI.init(this),this.config.menuUI?this.menuUI=this.config.menuUI:this.menuUI=new u.menuUI,this.menuUI.init(this,this.config.menu),this.config.xScrollUI||(this.xScrollUI=new u.xScrollUI(this.element,this.config,function(){return{boundary:n.response.boundary,scale:n.getScale(),viewBox:n.getViewBox(),padding:n.config.padding}},function(e){n.setViewBox(e)},function(){n._draw(!0,u.action.xScroll)})),this.config.yScrollUI||(this.yScrollUI=new u.yScrollUI(this.element,this.config,function(){return{boundary:n.response.boundary,scale:n.getScale(),viewBox:n.getViewBox(),padding:n.config.padding}},function(e){n.setViewBox(e)},function(){n._draw(!0,u.action.xScroll)})),this.config.undoRedoUI?this.undoRedoUI=this.config.undoRedoUI:this.undoRedoUI=new u.undoRedoUI,this.mainElement.classList.add(`boc-`+this.config.mode),this._gragStartedId=null,this._timeout=null,this._touch=null,this._initialized=!1,this._loaded=!1,this._moveInterval=null,this._movePosition=null,this.response=null,this.nodes=null,this.isVisible=null,this._connectorLines={x:{},y:{}},u._intersectionObserver(this.element,function(e){n.isVisible=e,u.events.publish(`visibility-change`,[n])!==!1&&u.LAZY_LOADING&&n.isVisible&&(n._loaded?n._draw(!1,u.action.update):(n._setInitialSizeIfNotSet(),n._draw(!1,u.action.init)))}),this._resizeObserver=new ResizeObserver(e=>{for(let t of e){let{width:e,height:r}=t.contentRect;n._resizeHandler(e,r)}}),this._resizeObserver.observe(this.element))}},u.prototype.load=function(e,t){var n=this;return this.config.nodes=e,this._draw(!1,u.action.init,void 0,function(){n.filterUI.update(),t&&t()}),this},u.prototype.loadXML=function(e,t){var n=u._xml2json(e);return this.load(n,t)},u.prototype.getXML=function(){return u._json2xml(this.config.nodes)},u.prototype.on=function(e,t){return u.events.on(e,t,this._event_id),this},u.prototype.removeListener=function(e,t){return u.events.remove(e,t,this._event_id)},u.prototype.draw=function(e,t,n){e??=u.action.update,this._draw(!1,e,t,n)},u.prototype._draw=function(e,t,n,r){var i=this;if(!(u.LAZY_LOADING&&!this.isVisible)){if(!u.LAZY_LOADING&&!this._initialized&&(this._setInitialSizeIfNotSet(),this.width()==0||this.height()==0)){console.error(`Cannot load the chart with size 0! If you are using the OrgChart within tabs set OrgChart.LAZY_LOADING to true! `);return}this._hideBeforeAnimationCompleted=!1;var a=t==u.action.init?null:this.getViewBox();this.manager.read(e,this.width(),this.height(),a,t,n,function(e){if(!i.notifierUI.show(e.notif)){t!=u.action.exporting&&(i.nodes=e.nodes,i.visibleNodeIds=e.visibleNodeIds,i.roots=e.roots),i._connectorLines={x:{},y:{}},i.editUI.fields=e.allFields;var a={defs:``};u.events.publish(`renderdefs`,[i,a]);var o=i.ui.defs(a.defs),s=i.getScale(e.viewBox);o+=i.ui.pointer(i.config,t,s);var c=i.getViewBox(),l=e.viewBox,a={content:o,res:e};u.events.publish(`prerender`,[i,a]),o=a.content;var d=[];if(u.RENDER_LINKS_BEFORE_NODES)for(var f=0;f<e.visibleNodeIds.length;f++){var p=e.nodes[e.visibleNodeIds[f]];u.getRootOf(p).stParent?d.push(p.id):o+=i.ui.link(p,i,s,e.bordersByRootIdAndLevel,e.nodes,t)}for(var f=0;f<e.visibleNodeIds.length;f++){var p=e.nodes[e.visibleNodeIds[f]],m=i._get(p.id);if(u.RENDER_LINKS_BEFORE_NODES&&d.includes(p.id)&&(o+=i.ui.link(p,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),p.isTreeListItem||(o+=i.ui.node(p,m,e.animations,i.config,void 0,void 0,void 0,t,s,i)),!p.min&&p.treeList){var h=function(n){if(!p.treeList.pinnedIds.includes(n.id)){var r=i._get(n.id);o+=i.ui.node(n,r,e.animations,i.config,void 0,void 0,void 0,t,s,i),o+=i.ui.expandCollapseBtn(i,n,r,i.config,i._layoutConfigs,t,s)}for(var a of n.children)h(a)},g=u.randomId();o+=`<clipPath id="treelist_${g}">
17
+ <rect rx="10" ry="10" x="${p.x+p.padding[3]}" y="${p.y+p.padding[0]}" width="${p.w-p.padding[1]-p.padding[3]}" height="${p.h-p.padding[2]-p.padding[0]}">
18
+ </clipPath><g clip-path="url(#treelist_${g})"><g data-treelist-content="${p.id}" transform="matrix(1,0,0,1,0,-${p.treeList.scrollTop})">`;for(var _ of p.stChildren)h(_);for(var v of p.treeList.pinnedIds){var y=i.getNode(v),b=i._get(v);o+=i.ui.node(y,b,e.animations,i.config,void 0,void 0,void 0,t,s,i,!0),o+=i.ui.expandCollapseBtn(i,y,b,i.config,i._layoutConfigs,t,s)}var{thumbHeight:x,thumbPosition:S,scrollBarDisplay:C}=u._treeListGetTumbPositionFromScrollTop(p);o+=`</g>
19
+
20
+
21
+ <rect style="display: ${C}" data-treelist-scroll="${p.id}" class="boc-scroll" x="${p.x+p.w-p.padding[1]-u.TREELIST_SCROLLBAR_WIDTH}" y="${p.y+p.padding[0]}" width="${u.TREELIST_SCROLLBAR_WIDTH}" height="${p.h-p.padding[2]-p.padding[0]}"></rect>
22
+ <rect style="display: ${C}" data-treelist-thumb="${p.id}" class="boc-scroll-thumb" x="${p.x+p.w-p.padding[1]-u.TREELIST_SCROLLBAR_WIDTH}" y="${S}" width="${u.TREELIST_SCROLLBAR_WIDTH}" height="${x}"></rect>
23
+
24
+ </g>`}}for(var f=0;f<e.visibleNodeIds.length;f++){var p=e.nodes[e.visibleNodeIds[f]],m=i._get(p.id);p.isTreeListItem||(u.RENDER_LINKS_BEFORE_NODES||(o+=i.ui.link(p,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),o+=i.ui.expandCollapseBtn(i,p,m,i.config,i._layoutConfigs,t,s))}var a={content:o,res:e};if(u.events.publish(`render`,[i,a]),o=a.content,e=a.res,o+=i.ui.lonely(i.config),t===u.action.exporting){var w=e.boundary,T=w.maxX-w.minX,E=w.maxY-w.minY,D=i.ui.svg(T,E,[w.minX,w.minY,T,E],i.config,o,s);r.call(i,D,e);return}(t===u.action.centernode||t===u.action.insert||t===u.action.expand||t===u.action.collapse||t===u.action.update)&&(l=c),t===u.action.init&&c!=null&&(l=c),t===u.action.centerNode&&c!=null&&(l=c),i.response=e,i._lastSize={width:i.width(),height:i.height()};var D=i.ui.svg(`100%`,`100%`,l,i.config,o);if(!i._initialized)i.element.innerHTML=i.ui.css()+D+i.ui.menuButton(i.config)+i.ui.aiButton(i.config),i._attachEventHandlers(),i.xScrollUI.create(i.width(),i.config.padding),i.xScrollUI.setPosition(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.create(i.height(),i.config.padding),i.yScrollUI.setPosition(),i.yScrollUI.addListener(i.getSvg()),i.config.enableSearch&&i.searchUI.init(i),i.aiUI.init(i),i.orgScribeUI.init(i),i.powerPointPreviewUI.init(i),i.pdfPreviewUI.init(i),i.svgPreviewUI.init(i),i.pngPreviewUI.init(i),i.toolbarUI.init(i,i.config.toolbar),i.undoRedoUI.init(i),i.controlsUI.init(i);else{var O=i.getSvg(),k=O.parentNode;k.removeChild(O),k.insertAdjacentHTML(`afterbegin`,D),i._attachEventHandlers(),i.xScrollUI.addListener(i.getSvg()),i.yScrollUI.addListener(i.getSvg()),i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}var A=!1,j=i.response.animations;if(j[0].length>0){i._hideBeforeAnimation(j[0].length);for(var f=0;f<j[0].length;f++)j[0][f]=i.getNodeElement(j[0][f]);u.animate(j[0],j[1],j[2],i.config.anim.duration,i.config.anim.func,function(){A||=(r&&r.call(i),u.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)})}t===u.action.centerNode?u.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration,i.config.anim.func,function(){i.ripple(n.options.rippleId),A||=(r&&r.call(i),u.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)},function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition()}):c&&i.response&&(c[0]!=i.response.viewBox[0]||c[1]!=i.response.viewBox[1]||c[2]!=i.response.viewBox[2]||c[3]!=i.response.viewBox[3])&&(t===u.action.insert||t===u.action.expand||t===u.action.collapse||t===u.action.update||t===u.action.init)?u.animate(i.getSvg(),{viewbox:c},{viewbox:i.response.viewBox},i.config.anim.duration*2,i.config.anim.func,function(){i.xScrollUI.setPosition(),i.yScrollUI.setPosition(),A||=(r&&r.call(i),u.events.publish(`redraw`,[i]),!0)}):j[0].length==0&&(A||=(r&&r.call(i),u.events.publish(`redraw`,[i]),!0)),i._initialized||(i._initialized=!0,i.filterUI.update(),i._ai.setContext(),u.events.publish(`init`,[i])),!i._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(i._loaded=!0)}},function(e){u.events.publish(`ready`,[i,e])})}},u.prototype._setInitialSizeIfNotSet=function(){this.mainElement.style.overflow=`hidden`,this.mainElement.style.position=`relative`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`100%`,this.mainElement.offsetHeight==0&&(this.mainElement.style.height=`700px`)),this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`100%`,this.mainElement.offsetWidth==0&&(this.mainElement.style.width=`700px`))},u.prototype.width=function(){return this.element.offsetWidth},u.prototype.height=function(){return this.element.offsetHeight},u.prototype.getViewBox=function(){var e=this.getSvg();return u._getViewBox(e)},u.prototype.setViewBox=function(e){this.getSvg().setAttribute(`viewBox`,e.toString())},u.prototype.getScale=function(e){return e||=this.getViewBox(),u.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},u.prototype.setScale=function(e){e>this.config.scaleMax&&(e=this.config.scaleMax),e<this.config.scaleMin&&(e=this.config.scaleMin);var t=this.getViewBox().slice(0),n=this.width(),r=this.height(),i=n/t[2],a=r/t[3],o=i>a?a:i,s=t,c=t[2],l=t[3];return t[2]/=e/o,t[3]/=e/o,t[0]=s[0]-(t[2]-c)/2,t[1]=s[1]-(t[3]-l)/2,this.setViewBox(t),u.events.publish(`redraw`,[this]),e},u.prototype.ripple=function(e,t,n){var r=this.getNode(e);if(r!=null){var i=this.getNodeElement(e);if(i!=null){var a=this.getScale(),o=r.w/2,s=r.h/2;if(t!==void 0&&n!==void 0){var c=i.getBoundingClientRect();o=t/a-c.left/a,s=n/a-c.top/a}var l=r.w,d=r.h,f=l-o>o?l-o:o,p=d-s>s?d-s:s;f=f,p=p;var m=f>p?f:p,h=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),g=document.createElementNS(`http://www.w3.org/2000/svg`,`clipPath`),_=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`),v=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`),y=u.randomId();g.setAttribute(`id`,y);var b={ripple:u.t(r.templateName,r.min,this.getScale()).ripple,node:r};u.events.publish(`ripple`,[this,b]),_.setAttribute(`x`,b.ripple.rect?b.ripple.rect.x:0),_.setAttribute(`y`,b.ripple.rect?b.ripple.rect.y:0),_.setAttribute(`width`,b.ripple.rect?b.ripple.rect.width:r.w),_.setAttribute(`height`,b.ripple.rect?b.ripple.rect.height:r.h),_.setAttribute(`rx`,b.ripple.radius),_.setAttribute(`ry`,b.ripple.radius),v.setAttribute(`clip-path`,`url(#`+y+`)`),v.setAttribute(`cx`,o),v.setAttribute(`cy`,s),v.setAttribute(`r`,0),v.setAttribute(`fill`,b.ripple.color),v.setAttribute(`class`,`boc-ripple`),g.appendChild(_),h.appendChild(g),h.appendChild(v),i.appendChild(h),u.animate(v,{r:0,opacity:1},{r:m,opacity:0},500,u.anim.outPow,function(){i.removeChild(h)})}}},u.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var n=this;this._centerInNodesTimeout=u.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){n.draw(u.action.update,null,function(){e&&e.call(n)})})}},u.prototype.centerInNodes=function(e,t){var n=this.getViewBox();this._centerInNodes||=JSON.stringify(n);var r=2**53-1,i=-(2**53-1),a=2**53-1,o=-(2**53-1);for(var s of e)s.y<r&&(r=s.y),s.y+s.h>i&&(i=s.y+s.h),s.x<a&&(a=s.x),s.x+s.w>o&&(o=s.x+s.w);var c=o-a,l=i-r,d=c/(c+this.config.padding*2),f=l/(l+this.config.padding*2),p=d>f?f:d;p>this.config.scaleMax&&(p=this.config.scaleMax),p<this.config.scaleMin&&(p=this.config.scaleMin);var m=[50,50],h=this.width(),g=this.height(),d=h/n[2],f=g/n[3],_=d>f?f:d,v=n,y=n[2],b=n[3];n[2]/=p/_,n[3]/=p/_,n[0]=v[0]-(n[2]-y)/(100/m[0]),n[1]=v[1]-(n[3]-b)/(100/m[1]),n[0]=a-(h/p-c)/2,n[1]=r-(g/p-l)/2;var x=this;this._centerInNodesTimeout&&=(clearTimeout(this._centerInNodesTimeout),null),this._centerInNodesTimeout=u.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:n},300,this.config.anim.func,function(){x.draw(u.action.update,null,function(){t&&t.call(x)})})},u.prototype.center=function(e,t,n){var r,i,a=e,o=!0,s=!0;t&&t.parentState!=null&&(r=t.parentState),t&&t.childrenState!=null&&(i=t.childrenState),t&&t.rippleId!=null&&(a=t.rippleId),t&&t.vertical!=null&&(o=t.vertical),t&&t.horizontal!=null&&(s=t.horizontal);var c={parentState:r,childrenState:i,rippleId:a,vertical:o,horizontal:s};this._draw(!1,u.action.centerNode,{id:e,options:c},n)},u.prototype.fit=function(e){this.config.scaleInitial=u.match.boundary,this._draw(!0,u.action.init,{method:`fit`},e)},u.prototype.fitIfOutside=function(e){this.config.scaleInitial=u.match.boundaryIfOutside,this._draw(!0,u.action.init,{method:`fit`},e)},u.prototype.toggleFullScreen=function(){var e=document.querySelector(`[`+u.attr.tlbr+`r='fullScreen']`);document.fullscreenElement==this.element||document.webkitFullscreenElement==this.element||document.mozFullScreenElement==this.element||document.msFullscreenElement==this.element?(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen(),e&&(e.innerHTML=u.toolbarUI.openFullScreenIcon)):(this.element.requestFullscreen?this.element.requestFullscreen():this.element.mozRequestFullScreen?this.element.mozRequestFullScreen():this.element.webkitRequestFullscreen?this.element.webkitRequestFullscreen():this.element.msRequestFullscreen&&this.element.msRequestFullscreen(),e&&(e.innerHTML=u.toolbarUI.closeFullScreenIcon))},u.prototype.getNode=function(e){return this.nodes[e]},u.prototype.setLayout=function(e,t){t||=`base`,this._layoutConfigs[t].layout=e,t==`base`&&(this.config.layout=e),this._draw(!1,u.action.update)},u.prototype.setOrientation=function(e,t,n){var r=this;t||=`base`,this._layoutConfigs[t].orientation=e,t==`base`&&(this.config.orientation=e),this._draw(!1,u.action.update,void 0,function(){r.getScale(),u._moveToBoundaryArea(r.getSvg(),r.getViewBox(),r.response.boundary,function(){r._draw(!0,u.action.pan),n&&n()})})},u.prototype.search=function(e,t,n){return u.isNEU(t)&&(t=this.searchUI._searchFields),u.isNEU(n)&&(n=t),u._search.search(this.config.nodes,e,t,n,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},u.prototype._hideBeforeAnimation=function(e){if(this._hideBeforeAnimationCompleted!=1&&!(e&&e<u.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName(`text`);if(t.length>u.TEXT_THRESHOLD)for(var n=0;n<t.length;n++)t[n].style.display=`none`;var r=this.element.getElementsByTagName(`image`);if(r.length>u.IMAGES_THRESHOLD)for(var n=0;n<r.length;n++)r[n].style.display=`none`;var i=this.element.querySelectorAll(`[`+u.attr.link_id+`]`);if(i.length>u.LINKS_THRESHOLD)for(var n=0;n<i.length;n++)i[n].style.display=`none`;var a=this.element.querySelectorAll(`[`+u.attr.control_expcoll_id+`]`);if(a.length>u.BUTTONS_THRESHOLD)for(var n=0;n<a.length;n++)a[n].style.display=`none`;var o=this.element.querySelectorAll(`[`+u.attr.control_up_id+`]`);if(o.length>u.BUTTONS_THRESHOLD)for(var n=0;n<o.length;n++)o[n].style.display=`none`;this._hideBeforeAnimationCompleted=!0}},u.prototype._showAfterAnimation=function(){for(var e=this.element.getElementsByTagName(`text`),t=0;t<e.length;t++)e[t].style.display=``;for(var n=this.element.getElementsByTagName(`image`),t=0;t<n.length;t++)n[t].style.display=``;for(var r=this.element.querySelectorAll(`[`+u.attr.link_id+`]`),t=0;t<r.length;t++)r[t].style.display=``;for(var i=this.element.querySelectorAll(`[`+u.attr.control_expcoll_id+`]`),t=0;t<i.length;t++)i[t].style.display=``;for(var a=this.element.querySelectorAll(`[`+u.attr.control_up_id+`]`),t=0;t<a.length;t++)a[t].style.display=``;this._hideBeforeAnimationCompleted=!1},u.prototype.isChild=function(e,t){for(var n=this.getNode(t);n;){if(n.id==e)return!0;n=n.parent?n.parent:n.stParent}return!1},u.prototype.getCollapsedIds=function(e){for(var t=[],n=0;n<e.childrenIds.length;n++){var r=this.getNode(e.childrenIds[n]);r.collapsed==1&&t.push(r.id)}return t},u.prototype.stateToUrl=function(){if(this.manager.state){var e={};return e.exp=this.manager.state.exp.join(`*`),e.min=this.manager.state.min.join(`*`),e.adjustify=this.manager.state.adjustify.x+`*`+this.manager.state.adjustify.y,e.scale=this.manager.state.scale,e.y=this.manager.state.x,e.x=this.manager.state.y,new URLSearchParams(e).toString()}return``},u.prototype.generateId=function(){for(;;){var e=`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4);if(this.nodes==null||!this.nodes.hasOwnProperty(e))return e}},u.prototype.moveNodesToVisibleArea=function(e,t){for(var n=this,r=this.roots[0],i=this.getSvg(),a=this.getViewBox(),o=null,s=null,c=null,l=null,d=0;d<e.length;d++){var f=this.nodes[e[d]];f.x!=null&&f.y!=null&&((o===null||o<f.x+f.w)&&(o=f.x+f.w),(s===null||s<f.y+f.h)&&(s=f.y+f.h),(c===null||c>f.x)&&(c=f.x),(l===null||l>f.y)&&(l=f.y))}if(!(o==null||s==null||c==null||l==null)){var p=this.width(),m=this.height(),h=o-c+this.config.padding*2,g=s-l+this.config.padding*2,_=p/h,v=m/g,y=_>v?v:_,b=Math.ceil(p/y),x=Math.ceil(m/y),h=0,g=0;if(b-this.config.padding*2>=o-c)h=(o+c)/2-b/2;else switch(h=r.x-b/2+u.manager._getNodeWidth(r,this.config)/2,this.config.orientation){case u.orientation.right:case u.orientation.right_top:h=-(b/2-(c-o)/2),h<this.config.padding-b&&(h=this.config.padding-b);break;case u.orientation.left:case u.orientation.bottom_left:case u.orientation.top_left:case u.orientation.left_top:h=-(b/2-(o-c)/2),h>-this.config.padding&&(h=-this.config.padding);break}if(x-this.config.padding*2>=s-l)g=(s+l)/2-x/2;else switch(g=-(x/2-(s-l)/2),g>-this.config.padding&&(g=-this.config.padding),this.config.orientation){case u.orientation.bottom:case u.orientation.bottom_left:g=-(x/2-(l-s)/2),g<this.config.padding-x&&(g=this.config.padding-x);break;case u.orientation.left:case u.orientation.right:g=r.y-x/2+u.manager._getNodeWidth(r,this.config)/2;break}var S=[h,g,b,x];a[0]!==S[0]||a[1]!==S[1]?u.animate(i,{viewBox:a},{viewBox:S},this.config.anim.duration,this.config.anim.func,function(){n.draw(u.action.update,void 0,t)}):t&&t()}},u.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!u.isNEU(e.pid)&&this.getNode(e.pid)},u.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),u.events.removeForEventId(this._event_id),this.element.innerHTML=null},u.prototype.canUpdateLink=function(e,t){if(t==null||t==null||e==null||e==null||e==t)return!1;var n=this.getNode(t),r=this.getNode(e);return n&&r&&(n.isPartner||n.hasPartners&&r.isAssistant||n.hasAssistants&&r.isPartner)?!1:!this.isChild(e,t)},u.prototype._canUpdateLink=u.prototype.canUpdateLink,u.prototype.updateNode=function(e,t,n,r){if(e){var i=this,a=this.get(e.id);if(n===!0&&u.events.publish(`update`,[this,a,e])===!1)return!1;this.update(e),this._ai.setContext(),u.events.publish(`updated`,[this]),this.filterUI.update();var o=this.getNode(e.id),s=o.pid;s??=o.stpid,this._draw(!1,u.action.update,{id:s},function(){r||i.ripple(e.id),t&&t()})}},u.prototype.update=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e.id){this._putInUndoStack(),this.clearRedo(),this.config.nodes[t]=e;break}return this},u.prototype.removeNode=function(e,t,n){if(!this.canRemove(e))return!1;var r=this._getNewPidsAndStpidsForIds(e);return n===!0&&u.events.publish(`remove`,[this,e,r])===!1?!1:(this.remove(e),this._ai.setContext(),u.events.publish(`updated`,[this]),this.filterUI.update(),this._draw(!1,u.action.update,null,function(){t&&t()}),!0)},u.prototype.remove=function(e){var t=this.get(e);if(t){this._putInUndoStack(),this.clearRedo();for(var n=this.config.nodes.length-1;n>=0;n--)(this.config.nodes[n].pid==e||this.config.nodes[n].stpid==e)&&(this.config.nodes[n].pid=t.pid,this.config.nodes[n].stpid=t.stpid),this.config.nodes[n].id==e&&this.config.nodes.splice(n,1)}return this},u.prototype._getNewPidsAndStpidsForIds=function(e){var t=this.get(e),n={},r={};if(t)for(var i=this.config.nodes.length-1;i>=0;i--)this.config.nodes[i].pid==e?n[this.config.nodes[i].id]=t.pid:this.config.nodes[i].stpid==e&&(r[this.config.nodes[i].id]=t.stpid);return{newPidsForIds:n,newStpidsForIds:r}},u.prototype.addNode=function(e,t,n){var r=this;if(n===!0&&u.events.publish(`add`,[this,e])===!1)return!1;this.add(e),this._ai.setContext(),u.events.publish(`updated`,[this]),this.filterUI.update(),r._draw(!1,u.action.insert,{id:e.pid,insertedNodeId:e.id},function(){r.ripple(e.id),t&&t()})},u.prototype.add=function(e){if(e.id??console.error(`Call addNode without id`),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!u.isNEU(e.pid)){var t=this._get(e.pid);t&&(t.movex!=null&&(e.movex=t.movex),t.movey!=null&&(e.movey=t.movey))}return this.config.nodes.push(e),this},u.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,u.action.update,void 0,t)},u.prototype._replaceIds=function(e){for(var t=function(t){for(var n=0;n<t.length;n++){var r=t[n];for(var i in e){var a=e[i];r.from==i&&(r.from=a),r.to==i&&(r.to=a)}}},n=0;n<this.config.nodes.length;n++){var r=this.config.nodes[n];for(var i in e){var a=e[i];r.id==i&&(r.id=a),r.pid==i&&(r.pid=a),r.stpid==i&&(r.stpid=a),r.ppid==i&&(r.ppid=a)}}if(Array.isArray(this.config.roots))for(var n=0;n<this.config.roots.length;n++)u.isNEU(e[this.config.roots[n]])||(this.config.roots[n]=e[this.config.roots[n]]);if(this.nodes){for(var o in this.nodes)if(!u.isNEU(e[o])){var a=e[o],s=this.nodes[o];s.id=a,this.nodes[a]=s}}if(this.manager.oldNodes){for(var o in this.manager.oldNodes)if(!u.isNEU(e[o])){var a=e[o],s=this.manager.oldNodes[o];s.id=a,this.manager.oldNodes[a]=s}}if(this.roots){for(var o in this.roots)if(!u.isNEU(e[o])){var a=e[o],s=this.roots[o];s.id=a,this.roots[a]=s}}t(this.config.clinks),t(this.config.slinks),t(this.config.groupDottedLines),t(this.config.dottedLines)},u.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!u.isNEU(e)&&typeof e==`string`&&(e.indexOf(`balkan_group_dotted_`)!=-1||e.indexOf(`balkan_dotted_`)!=-1)){e=e.replace(`balkan_group_dotted_`,``),e=e.replace(`balkan_dotted_`,``);var n=e.indexOf(`_balkan_id_`);if(e=e.substring(n+11),t=this.__get(e),t)return t}return null},u.prototype.__get=function(e){for(var t=0;t<this.config.nodes.length;t++)if(this.config.nodes[t].id==e)return this.config.nodes[t];return null},u.prototype.get=function(e){var t=this._get(e);return t==null?null:JSON.parse(JSON.stringify(t))},u.prototype.canRemove=function(e){var t=this.getNode(e);return!(!t||t.hasPartners||t.hasAssistants)},u===void 0&&(u={}),u.animate=function(e,t,n,r,i,a,o){var s=10,c=1,l=1,d=r/s+1,f;document.getElementsByTagName(`g`),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);function p(){for(var p=0;p<e.length;p++)for(var m in n[p]){var h=u._arrayContains([`top`,`left`,`right`,`bottom`,`width`,`height`],m.toLowerCase())?`px`:``;switch(m.toLowerCase()){case`d`:var g=i((l*s-s)/r)*(n[p][m][0]-t[p][m][0])+t[p][m][0],_=i((l*s-s)/r)*(n[p][m][1]-t[p][m][1])+t[p][m][1];e[p].setAttribute(`d`,e[p].getAttribute(`d`)+` L`+g+` `+_);break;case`r`:var v=i((l*s-s)/r)*(n[p][m]-t[p][m])+t[p][m];e[p].setAttribute(`r`,v);break;case`x1`:var v=i((l*s-s)/r)*(n[p][m]-t[p][m])+t[p][m];e[p].setAttribute(`x1`,v);break;case`x2`:var v=i((l*s-s)/r)*(n[p][m]-t[p][m])+t[p][m];e[p].setAttribute(`x2`,v);break;case`y1`:var v=i((l*s-s)/r)*(n[p][m]-t[p][m])+t[p][m];e[p].setAttribute(`y1`,v);break;case`y2`:var v=i((l*s-s)/r)*(n[p][m]-t[p][m])+t[p][m];e[p].setAttribute(`y2`,v);break;case`scrolltop`:var v=i((l*s-s)/r)*(n[p][m]-t[p][m])+t[p][m];e[p].scrollTop=v;break;case`rotate3d`:if(n[p][m]){var y=t[p][m],b=n[p][m],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[p].style.transform=`rotate3d(`+x.toString()+`deg)`}break;case`transform`:if(n[p][m]){var y=t[p][m],b=n[p][m],x=[0,0,0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[p].hasAttribute(`transform`)?e[p].setAttribute(`transform`,`matrix(`+x.toString()+`)`):e[p].style.transform=`matrix(`+x.toString()+`)`}break;case`viewbox`:if(n[p][m]){var y=t[p][m],b=n[p][m],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[p].setAttribute(`viewBox`,x.toString())}break;case`margin`:if(n[p][m]){var y=t[p][m],b=n[p][m],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];for(var C=``,S=0;S<x.length;S++)C+=parseInt(x[S])+`px `;e[p]&&e[p].style&&(e[p].style[m]=C)}break;case`scrolly`:var v=i((l*s-s)/r)*(n[p][m]-t[p][m])+t[p][m];e[p].scrollTo(0,v);break;default:var v=i((l*s-s)/r)*(n[p][m]-t[p][m])+t[p][m];e[p]&&e[p].style&&(e[p].style[m]=v+h);break}}if(o){var v=i((l*s-s)/r);o(v)}l+=c,l>d+1&&(clearInterval(f),a&&a(e))}return f=setInterval(p,s),f},u.anim={},u.anim.inPow=function(e){return e<0?0:e>1?1:e**2},u.anim.outPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;var n=t%2==0?-1:1;return n*((e-1)**t+n)},u.anim.inOutPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;if(e*=2,e<1)return u.anim.inPow(e,t)/2;var n=t%2==0?-1:1;return n/2*((e-2)**t+n*2)},u.anim.inSin=function(e){return e<0?0:e>1?1:-Math.cos(Math.PI/2*e)+1},u.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(Math.PI/2*e)},u.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},u.anim.inExp=function(e){return e<0?0:e>1?1:2**(10*(e-1))},u.anim.outExp=function(e){return e<0?0:e>1?1:-(2**(-10*e))+1},u.anim.inOutExp=function(e){return e<0?0:e>1?1:e<.5?.5*2**(10*(2*e-1)):.5*(-(2**(10*(-2*e+1)))+2)},u.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},u.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},u.anim.inOutCirc=function(e){return e<0?0:e>1?1:e<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(2*e-2)*(2*e-2))+1)},u.anim.rebound=function(e){return e<0?0:e>1?1:e<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-1.5/2.75)*(e-1.5/2.75)+.75):e<2.5/2.75?1-(7.5625*(e-2.25/2.75)*(e-2.25/2.75)+.9375):1-(7.5625*(e-2.625/2.75)*(e-2.625/2.75)+.984375)},u.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},u.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},u.anim.inOutBack=function(e){return e<0?0:e>1?1:e<.5?.5*(4*e*e*(3.5949*2*e-2.5949)):.5*((2*e-2)*(2*e-2)*(3.5949*(2*e-2)+2.5949)+2)},u.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},u.anim.expPulse=function(e){return Math.exp(-2*e**2)},u===void 0&&(u={}),u.prototype._attachEventHandlers=function(e){if(this.config.interactive){var e=this.getSvg(),t=this;e.addEventListener(`touchstart`,function(e){e.preventDefault(),t._globalMouseDownHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener(`mousedown`,function(e){t._globalMouseDownHandler.apply(t,[this,e])},{passive:!0}),e.addEventListener(`contextmenu`,function(e){t._globalContextHandler.apply(t,[this,e])},{passive:!1}),e.addEventListener(`dblclick`,function(e){t._globalDbClickHandler.apply(t,[this,e])},{passive:!0}),this.config.mouseScrool!=u.action.none&&e.addEventListener(`wheel`,function(e){t._mouseScrollHandler.apply(t,[this,e])},{passive:!1});var n=this.getMenuButton();n&&n.addEventListener(`click`,function(e){t._menuClickHandler.apply(t,[this,e])})}},u===void 0&&(u={}),u.VERSION=`9.1.82`,u.orientation={},u.orientation.top=0,u.orientation.bottom=1,u.orientation.right=2,u.orientation.left=3,u.orientation.top_left=4,u.orientation.bottom_left=5,u.orientation.right_top=6,u.orientation.left_top=7,u.anchor={top_right:`top_right`,right_top:`right_top`,bottom_right:`bottom_right`,right_bottom:`right_bottom`,top_left:`top_left`,left_top:`left_top`,bottom_left:`bottom_left`,left_bottom:`left_bottom`,top:`top`,bottom:`bottom`,left:`left`,right:`right`},u.align={},u.align.center=u.CENTER=8,u.align.orientation=u.ORIENTATION=9,u.attr={},u.attr.l=`data-l`,u.attr.id=`data-id`,u.attr.sl=`data-sl`,u.attr.lbl=`data-lbl`,u.attr.val=`data-val`,u.attr.tlbr=`data-tlbr`,u.attr.item=`data-item`,u.attr.layout=`data-layout`,u.attr.node_id=`data-n-id`,u.attr.link_id=`data-l-id`,u.attr.field_name=`data-f-name`,u.attr.c_link_to=`data-c-l-to`,u.attr.c_link_from=`data-c-l-from`,u.attr.s_link_to=`data-s-l-to`,u.attr.s_link_from=`data-s-l-from`,u.attr.control_add=`data-ctrl-add`,u.attr.control_expcoll_id=`data-ctrl-ec-id`,u.attr.control_up_id=`data-ctrl-up-id`,u.attr.control_export_menu=`data-ctrl-menu`,u.attr.control_node_menu_id=`data-ctrl-n-menu-id`,u.attr.control_node_circle_menu_id=`data-ctrl-n-c-menu-id`,u.attr.control_node_circle_menu_name=`data-ctrl-n-c-menu-name`,u.attr.control_node_circle_menu_wrraper_id=`data-ctrl-n-c-menu-wrapper-id`,u.attr.width=`data-width`,u.attr.text_overflow=`data-text-overflow`,u.ID=`id`,u.PID=`pid`,u.STPID=`stpid`,u.TAGS=`tags`,u.NODES=`nodes`,u.ELASTIC=`elastic`,u.ASSISTANT=`Assistant`,u.action={},u.action.expand=0,u.action.collapse=1,u.action.maximize=101,u.action.minimize=102,u.action.expandCollapse=501,u.action.edit=1,u.action.zoom=2,u.action.ctrlZoom=22,u.action.scroll=41,u.action.xScroll=3,u.action.yScroll=4,u.action.none=5,u.action.init=6,u.action.update=7,u.action.move=70,u.action.pan=8,u.action.centerNode=9,u.action.resize=10,u.action.insert=11,u.action.insertfirst=12,u.action.details=13,u.action.exporting=14,u.none=400001,u.scroll={},u.scroll.visible=!0,u.scroll.smooth=12,u.scroll.speed=120,u.scroll.safari={smooth:12,speed:250},u.match={},u.match.height=100001,u.match.width=100002,u.match.boundary=100003,u.match.boundaryIfOutside=100004,u.match.none=1,u.movable={},u.movable.node=`node`,u.movable.tree=`tree`,u.movable.detachTree=`detachTree`,u.layout={},u.layout.normal=u.normal=0,u.layout.mixed=u.mixed=1,u.layout.tree=u.tree=2,u.layout.treeLeftOffset=u.treeLeftOffset=3,u.layout.treeRightOffset=u.treeRightOffset=4,u.layout.treeLeft=5,u.layout.treeRight=6,u.layout.grid=-1,u.layout.treeList=-2,u.nodeOpenTag=`<g `+u.attr.node_id+`="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" `+u.attr.sl+`="{sl}" `+u.attr.l+`="{level}" {lcn}>`,u.linkOpenTag=`<g `+u.attr.link_id+`="[{id}][{child-id}]" class="{class}">`,u.expcollOpenTag=`<g `+u.attr.control_expcoll_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,u.upOpenTag=`<g `+u.attr.control_up_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,u.linkFieldsOpenTag=`<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">`,u.grCloseTag=`</g>`,u.A5={width:420,height:595},u.A4={width:595,height:842},u.A3={width:842,height:1191},u.A2={width:1191,height:1684},u.A1={width:1684,height:2384},u.Letter={width:612,height:791},u.Legal={width:612,height:1009},u.Legal={width:612,height:1009},u.Widescreen={width:720,height:1280},u.Standard={width:720,height:960},u.COLLAPSE_PARENT_NEIGHBORS=1,u.COLLAPSE_SUB_CHILDRENS=2,u.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,u.TEXT_THRESHOLD=4e3,u.IMAGES_THRESHOLD=1e3,u.LINKS_THRESHOLD=2e3,u.BUTTONS_THRESHOLD=700,u.ANIM_THRESHOLD=500,u.IT_IS_LONELY_HERE=`<g transform="translate(-100, 0)" style="cursor:pointer;" `+u.attr.control_add+`="control-add"><text fill="#039be5">{link}</text></g>`,u.RES={},u.IT_IS_LONELY_HERE_LINK=u.RES.IT_IS_LONELY_HERE_LINK=`It's lonely here, add your first node`,u.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,u.STRING_TAGS=!1,u.MAX_NODES_MESS=`The trial has expired or 200 nodes limit was reached! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>`,u.OFFLINE_MESS=`The evaluation version requires internet connection! <br /><a style='color: #039BE5;' target='_blank' href='https://balkan.app/OrgChartJS/Docs/Evaluation'>See more</a>`,u.SEARCH_PLACEHOLDER=`Search... type ? to get help.`,u.SEARCH_HELP_SYMBOL=`?`,u.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,u.SEARCH_RESULT_LIMIT=10,u.IMPORT_MESSAGE=`Choose the columns (fields) in your data file that contain the required information.`,u.FIXED_POSITION_ON_CLICK=!1,u.RENDER_LINKS_BEFORE_NODES=!1,u.RENDER_CLINKS_BEFORE_NODES=!1,u.MIXED_LAYOUT_ALL_NODES=!1,u.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,u.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,u.LINK_ROUNDED_CORNERS=5,u.MOVE_STEP=5,u.CLINK_CURVE=1,u.MAX_DEPTH=200,u.SCALE_FACTOR=1.44,u.LAZY_LOADING_FACTOR=`auto`,u.LAZY_LOADING=!0,u.ARRAY_FIELDS=[`tags`],u.CSV_DELIMITER=`,`,u.EDITFORM_CLOSE_BTN=`<svg data-edit-from-close class="boc-edit-form-close"><path style="fill:#ffffff;" d="M21.205,5.007c-0.429-0.444-1.143-0.444-1.587,0c-0.429,0.429-0.429,1.143,0,1.571l8.047,8.047H1.111 C0.492,14.626,0,15.118,0,15.737c0,0.619,0.492,1.127,1.111,1.127h26.554l-8.047,8.032c-0.429,0.444-0.429,1.159,0,1.587 c0.444,0.444,1.159,0.444,1.587,0l9.952-9.952c0.444-0.429,0.444-1.143,0-1.571L21.205,5.007z"></path></svg>`,u.ESCAPE_HTML=!1,u.VERTICAL_CHILDREN_ASSISTANT=!1,u.EXPORT_PAGES_CUT_NODES=!1,u.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,u.FILTER_ALPHABETICALLY=!0,u.SERVER_PREFIX=`.azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs`,u.FUNC_URL_NAME=`func-url-orgchartjs`,u.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,u.AI_SYSTEM_MESSAGES=[],u.ORGSCRIBE_OFFSET=` `,u.TREELIST_WHEEL_STEP=`auto`,u.TREELIST_SCROLLBAR_WIDTH=10,u.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,u.REQUEST_CUSTOM_HEADERS={},u.SLINK_GAP=7,u._intersects=function(e,t,n){var r=e.x-n.siblingSeparation/4,i=e.y,a=e.x+e.w+n.siblingSeparation/4,o=e.y;switch(n.orientation){case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:r=e.x,i=e.y-n.siblingSeparation/4,a=e.x,o=e.y+e.h+n.siblingSeparation/4;break}var s=t.p,c=t.q,l=t.r,d=t.s,f=(a-r)*(d-c)-(l-s)*(o-i),p,m;return f===0?!1:(m=((d-c)*(l-r)+(s-l)*(d-i))/f,p=((i-o)*(l-r)+(a-r)*(d-i))/f,0<m&&m<1&&0<p&&p<1)},u._addPoint=function(e,t,n,r,i){switch(n.orientation){case u.orientation.top:case u.orientation.top_left:return u._addPointTop(e,t,n,r,i);case u.orientation.bottom:case u.orientation.bottom_left:return u._addPointBottom(e,t,n,r,i);case u.orientation.left:case u.orientation.left_top:return u._addPointLeft(e,t,n,r,i);case u.orientation.right:case u.orientation.right_top:return u._addPointRight(e,t,n,r,i)}},u._addPointTop=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y-n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},u._addPointBottom=function(e,t,n,r,i){var a,o,s;return i==`left`?a=e.leftNeighbor?e.x+(e.leftNeighbor.x+e.leftNeighbor.w-e.x)/2:e.x-n.siblingSeparation/2:i==`right`&&(a=e.rightNeighbor?e.x+e.w+(e.rightNeighbor.x-(e.x+e.w))/2:e.x+e.w+n.siblingSeparation/2),t.push([a,t[t.length-1][1]]),t.push([a,e.y+e.h+n.levelSeparation/3]),o=t[t.length-1][1],s=a,r.p=a,r.q=o,r.r=s,r},u._addPointLeft=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x-n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},u._addPointRight=function(e,t,n,r,i){var a=t[t.length-1][0],o;i==`bottom`?o=e.rightNeighbor?e.y+e.h+(e.rightNeighbor.y-(e.y+e.h))/2:e.y+e.h+n.siblingSeparation/2:i==`top`&&(o=e.leftNeighbor?e.y+(e.leftNeighbor.y+e.leftNeighbor.h-e.y)/2:e.y-n.siblingSeparation/2),t.push([t[t.length-1][0],o]),t.push([e.x+e.w+n.levelSeparation/3,o]),a=t[t.length-1][0];var s=o;return r.p=a,r.q=o,r.s=s,r},u._addConnectorLines=function(e,t){u._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),u._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),u._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},u._addConnectorLine=function(e,t){if(t.x1==t.x2){if(e.x[t.x1]||(e.x[t.x1]=[]),t.y1>t.y2){var n=t.y1;t.y1=t.y2,t.y2=n}e.x[t.x1].push({y1:t.y1,y2:t.y2})}if(t.y1==t.y2){if(e.y[t.y1]||(e.y[t.y1]=[]),t.x1>t.x2){var r=t.x1;t.x1=t.x2,t.x2=r}e.y[t.y1].push({x1:t.x1,x2:t.x2})}},u._addLineToPath=function(e,t,n){return u._avoidOverlapping(t,n),e.push([n.x1,n.y1]),e.push([n.x2,n.y2]),u._addConnectorLine(t,n),n},u._slinkRemoveUnusedPoints=function(e){for(var t=e.length-2;t>=1;t--){var n=e[t-1],r=e[t],i=e[t+1];(r[0]==n[0]&&r[0]==i[0]||r[1]==n[1]&&r[1]==i[1])&&e.splice(t,1)}},u._slinkAvoidOverlaping=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){r==u.orientation.top||r==u.orientation.top_left?n==`left`?o[0]-=u.SLINK_GAP:n==`right`&&(o[0]+=u.SLINK_GAP):(r==u.orientation.bottom||r==u.orientation.bottom_left)&&(n==`right`?o[0]+=u.SLINK_GAP:n==`left`&&(o[0]-=u.SLINK_GAP)),c=!1;break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}var d=!0;if(a[1]==o[1]&&a[0]>=o[0]&&(d=!1),d&&a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){a[0]>=o[0]||(r==u.orientation.top||r==u.orientation.top_left?o[1]-=u.SLINK_GAP:(r==u.orientation.bottom||r==u.orientation.bottom_left)&&(o[1]+=u.SLINK_GAP),c=!1);break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}d&&u._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},u._slinkAvoidOverlapingSecond=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[1]==a[1]){for(var s=e.y[a[1]];s;){var c=!0;for(var l of s)if(l.x1<=i[0]&&l.x2>=i[0]||l.x1<=a[0]&&l.x2>=a[0]){i[0]>=a[0]?(n==u.orientation.top||n==u.orientation.top_left?a[1]-=u.SLINK_GAP:(n==u.orientation.bottom||n==u.orientation.bottom_left)&&(a[1]+=u.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.y[a[1]]}i[1]=a[1]}o||u._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},u._slinkAvoidOverlaping2=function(e,t,n,r){for(var i=1;i<t.length;i++){var a=t[i-1],o=t[i];if(a[1]==o[1]){for(var s=e.y[o[1]];s;){var c=!0;for(var l of s)if(l.x1<=a[0]&&l.x2>=a[0]||l.x1<=o[0]&&l.x2>=o[0]){r==u.orientation.left||r==u.orientation.left_top?n==`top`?o[1]-=u.SLINK_GAP:n==`bottom`&&(o[1]+=u.SLINK_GAP):(r==u.orientation.right||r==u.orientation.right_top)&&(n==`bottom`?o[1]+=u.SLINK_GAP:n==`top`&&(o[1]-=u.SLINK_GAP)),c=!1;break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}var d=!0;if(a[0]==o[0]&&a[1]>=o[1]&&(d=!1),d&&a[0]==o[0]){for(var s=e.x[o[0]];s;){var c=!0;for(var l of s)if(l.y1<=a[1]&&l.y2>=a[1]||l.y1<=o[1]&&l.y2>=o[1]){a[1]>=o[1]||(r==u.orientation.left||r==u.orientation.left_top?o[0]-=u.SLINK_GAP:(r==u.orientation.right||r==u.orientation.right_top)&&(o[0]+=u.SLINK_GAP),c=!1);break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}d&&u._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},u._slinkAvoidOverlapingSecond2=function(e,t,n){for(var r=1;r<t.length;r++){var i=t[r-1],a=t[r],o=!1;if(i[0]==a[0]){for(var s=e.x[a[0]];s;){var c=!0;for(var l of s)if(l.y1<=i[1]&&l.y2>=i[1]||l.y1<=a[1]&&l.y2>=a[1]){i[1]>=a[1]?(n==u.orientation.left||n==u.orientation.left_top?a[0]-=u.SLINK_GAP:(n==u.orientation.right||n==u.orientation.right_top)&&(a[0]+=u.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.x[a[0]]}i[0]=a[0]}o||u._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},u.prototype.getSvg=function(){return this.element.querySelector(`svg`)},u.prototype.getPointerElement=function(){return this.element.querySelector(`g[data-pointer]`)},u.prototype.getNodeElement=function(e){return this.element.querySelector(`[`+u.attr.node_id+`='`+e+`']`)},u.prototype.getMenuButton=function(){return this.element.querySelector(`[`+u.attr.control_export_menu+`]`)},u.notifierUI=function(){},u.notifierUI.prototype.init=function(e){this.obj=e},u.notifierUI.prototype.show=function(e,t){if(e==null)return!1;e==1&&(e=u.MAX_NODES_MESS,t=`#FFCA28`),e==2&&(e=u.OFFLINE_MESS,t=`#FFCA28`);var n=document.createElement(`div`);n.innerHTML=e,Object.assign(n.style,{position:`absolute`,"background-color":t,color:`#ffffff`,padding:`15px`,"border-radius":`40px`,opacity:0,overflow:`hidden`,"white-space":`nowrap`,"text-align":`center`}),this.obj.element.appendChild(n);var r=this.obj.width()/2-n.offsetWidth/2,i=this.obj.height()/2-n.offsetHeight/2;n.style.left=r+`px`,n.style.top=i+`px`;var a=n.offsetWidth;return n.style.width=`20px`,u.animate(n,{opacity:0,width:10},{opacity:1,width:a},this.obj.config.anim.duration,this.obj.config.anim.func),!0},u===void 0&&(u={}),u.icon={},u.icon.png_export=u.icon.png_preview=u.icon.pngpreview=u.icon.png=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
25
+ <path fill="${n}" d="M146.747,276.708c0-13.998-9.711-22.352-26.887-22.352c-6.99,0-11.726,0.675-14.204,1.355v44.927 c2.932,0.676,6.539,0.896,11.52,0.896C135.449,301.546,146.747,292.28,146.747,276.708z"/>
26
+ <path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M234.344,335.86v45.831h-31.601V229.524h40.184 l31.611,55.759c9.025,16.031,18.064,34.983,24.825,52.154h0.675c-2.257-20.103-2.933-40.643-2.933-63.44v-44.473h31.614v152.167 h-36.117l-32.516-58.703c-9.049-16.253-18.971-35.892-26.438-53.727l-0.665,0.222C233.906,289.58,234.344,311.027,234.344,335.86z M71.556,381.691V231.56c10.613-1.804,25.516-3.159,46.506-3.159c21.215,0,36.353,4.061,46.509,12.192 c9.698,7.673,16.255,20.313,16.255,35.219c0,14.897-4.959,27.549-13.999,36.123c-11.738,11.063-29.123,16.031-49.441,16.031 c-4.522,0-8.593-0.231-11.736-0.675v54.411H71.556V381.691z M453.601,523.353H97.2V419.302h356.4V523.353z M485.652,374.688 c-10.61,3.607-30.713,8.585-50.805,8.585c-27.759,0-47.872-7.003-61.857-20.545c-13.995-13.1-21.684-32.97-21.452-55.318 c0.222-50.569,37.03-79.463,86.917-79.463c19.644,0,34.783,3.829,42.219,7.446l-7.214,27.543c-8.369-3.617-18.752-6.55-35.458-6.55 c-28.656,0-50.341,16.256-50.341,49.22c0,31.382,19.649,49.892,47.872,49.892c7.895,0,14.218-0.901,16.934-2.257v-31.835h-23.493 v-26.869h56.679V374.688z"/>
27
+ </svg>`},u.icon.pdf_export=u.icon.pdf_preview=u.icon.pdfpreview=u.icon.pdf=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
28
+ <path fill="${n}" d="M160.381,282.225c0-14.832-10.299-23.684-28.474-23.684c-7.414,0-12.437,0.715-15.071,1.432V307.6 c3.114,0.707,6.942,0.949,12.192,0.949C148.419,308.549,160.381,298.74,160.381,282.225z"/>
29
+ <path fill="${n}" d="M272.875,259.019c-8.145,0-13.397,0.717-16.519,1.435v105.523c3.116,0.729,8.142,0.729,12.69,0.729 c33.017,0.231,54.554-17.946,54.554-56.474C323.842,276.719,304.215,259.019,272.875,259.019z"/>
30
+ <path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M362.359,309.023c0,30.876-11.243,52.165-26.82,65.333 c-16.971,14.117-42.82,20.814-74.396,20.814c-18.9,0-32.297-1.197-41.401-2.389V234.365c13.399-2.149,30.878-3.346,49.304-3.346 c30.612,0,50.478,5.508,66.039,17.226C351.828,260.69,362.359,280.547,362.359,309.023z M80.7,393.499V234.365 c11.241-1.904,27.042-3.346,49.296-3.346c22.491,0,38.527,4.308,49.291,12.928c10.292,8.131,17.215,21.534,17.215,37.328 c0,15.799-5.25,29.198-14.829,38.285c-12.442,11.728-30.865,16.996-52.407,16.996c-4.778,0-9.1-0.243-12.435-0.723v57.67H80.7 V393.499z M453.601,523.353H97.2V419.302h356.4V523.353z M484.898,262.127h-61.989v36.851h57.913v29.674h-57.913v64.848h-36.593 V232.216h98.582V262.127z"/>
31
+ </svg>`},u.icon.svg_export=u.icon.svg_preview=u.icon.svg=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
32
+ <path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.398-0.063-0.799-0.116-1.202c-0.021-2.534-0.827-5.023-2.562-6.995L366.325,3.694 c-0.032-0.031-0.063-0.042-0.085-0.076c-0.633-0.707-1.371-1.295-2.151-1.804c-0.231-0.155-0.464-0.285-0.706-0.419 c-0.676-0.369-1.393-0.675-2.131-0.896c-0.2-0.056-0.38-0.138-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.873v160.545 c0,17.043,13.824,30.87,30.873,30.87h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87v-160.54C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.513c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M338.871,225.672L284.545,386.96h-42.591 l-51.69-161.288h39.967l19.617,68.196c5.508,19.143,10.531,37.567,14.36,57.67h0.717c4.061-19.385,9.089-38.527,14.592-56.953 l20.585-68.918h38.77V225.672z M68.458,379.54l7.415-30.153c9.811,5.021,24.888,10.051,40.439,10.051 c16.751,0,25.607-6.935,25.607-17.465c0-10.052-7.662-15.795-27.05-22.734c-26.8-9.328-44.263-24.168-44.263-47.611 c0-27.524,22.971-48.579,61.014-48.579c18.188,0,31.591,3.823,41.159,8.131l-8.126,29.437c-6.465-3.116-17.945-7.657-33.745-7.657 c-15.791,0-23.454,7.183-23.454,15.552c0,10.296,9.089,14.842,29.917,22.731c28.468,10.536,41.871,25.365,41.871,48.094 c0,27.042-20.812,50.013-65.09,50.013C95.731,389.349,77.538,384.571,68.458,379.54z M453.601,523.353H97.2V419.302h356.4V523.353z M488.911,379.54c-11.243,3.823-32.537,9.103-53.831,9.103c-29.437,0-50.73-7.426-65.57-21.779 c-14.839-13.875-22.971-34.942-22.738-58.625c0.253-53.604,39.255-84.235,92.137-84.235c20.81,0,36.852,4.073,44.74,7.896 l-7.657,29.202c-8.859-3.829-19.849-6.95-37.567-6.95c-30.396,0-53.357,17.233-53.357,52.173c0,33.265,20.81,52.882,50.73,52.882 c8.375,0,15.072-0.96,17.94-2.395v-33.745h-24.875v-28.471h60.049V379.54L488.911,379.54z" />
33
+ </svg>`},u.icon.csv_export=u.icon.csv=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 548.29 548.291" x="${r}" y="${i}">'
34
+ <path fill="${n}" d="M486.2,196.121h-13.164V132.59c0-0.399-0.064-0.795-0.116-1.2c-0.021-2.52-0.824-5-2.551-6.96L364.656,3.677 c-0.031-0.034-0.064-0.044-0.085-0.075c-0.629-0.707-1.364-1.292-2.141-1.796c-0.231-0.157-0.462-0.286-0.704-0.419 c-0.672-0.365-1.386-0.672-2.121-0.893c-0.199-0.052-0.377-0.134-0.576-0.188C358.229,0.118,357.4,0,356.562,0H96.757 C84.893,0,75.256,9.649,75.256,21.502v174.613H62.093c-16.972,0-30.733,13.756-30.733,30.73v159.81 c0,16.966,13.761,30.736,30.733,30.736h13.163V526.79c0,11.854,9.637,21.501,21.501,21.501h354.777 c11.853,0,21.502-9.647,21.502-21.501V417.392H486.2c16.966,0,30.729-13.764,30.729-30.731v-159.81 C516.93,209.872,503.166,196.121,486.2,196.121z M96.757,21.502h249.053v110.006c0,5.94,4.818,10.751,10.751,10.751h94.973v53.861 H96.757V21.502z M258.618,313.18c-26.68-9.291-44.063-24.053-44.063-47.389c0-27.404,22.861-48.368,60.733-48.368 c18.107,0,31.447,3.811,40.968,8.107l-8.09,29.3c-6.43-3.107-17.862-7.632-33.59-7.632c-15.717,0-23.339,7.149-23.339,15.485 c0,10.247,9.047,14.769,29.78,22.632c28.341,10.479,41.681,25.239,41.681,47.874c0,26.909-20.721,49.786-64.792,49.786 c-18.338,0-36.449-4.776-45.497-9.77l7.38-30.016c9.772,5.014,24.775,10.006,40.264,10.006c16.671,0,25.488-6.908,25.488-17.396 C285.536,325.789,277.909,320.078,258.618,313.18z M69.474,302.692c0-54.781,39.074-85.269,87.654-85.269 c18.822,0,33.113,3.811,39.549,7.149l-7.392,28.816c-7.38-3.084-17.632-5.939-30.491-5.939c-28.822,0-51.206,17.375-51.206,53.099 c0,32.158,19.051,52.4,51.456,52.4c10.947,0,23.097-2.378,30.241-5.238l5.483,28.346c-6.672,3.34-21.674,6.919-41.208,6.919 C98.06,382.976,69.474,348.424,69.474,302.692z M451.534,520.962H96.757v-103.57h354.777V520.962z M427.518,380.583h-42.399 l-51.45-160.536h39.787l19.526,67.894c5.479,19.046,10.479,37.386,14.299,57.397h0.709c4.048-19.298,9.045-38.352,14.526-56.693 l20.487-68.598h38.599L427.518,380.583z" />'
35
+ </svg>`},u.icon.json_export=u.icon.json=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 32 32" x="${r}" y="${i}">
36
+ <polygon fill="${n}" points="31 11 31 21 29 21 27 15 27 21 25 21 25 11 27 11 29 17 29 11 31 11"/>
37
+ <path fill="${n}" d="M21.3335,21h-2.667A1.6684,1.6684,0,0,1,17,19.3335v-6.667A1.6684,1.6684,0,0,1,18.6665,11h2.667A1.6684,1.6684,0,0,1,23,12.6665v6.667A1.6684,1.6684,0,0,1,21.3335,21ZM19,19h2V13H19Z"/>
38
+ <path fill="${n}" d="M13.3335,21H9V19h4V17H11a2.002,2.002,0,0,1-2-2V12.6665A1.6684,1.6684,0,0,1,10.6665,11H15v2H11v2h2a2.002,2.002,0,0,1,2,2v2.3335A1.6684,1.6684,0,0,1,13.3335,21Z"/>
39
+ <path fill="${n}" d="M5.3335,21H2.6665A1.6684,1.6684,0,0,1,1,19.3335V17H3v2H5V11H7v8.3335A1.6684,1.6684,0,0,1,5.3335,21Z"/>
40
+ <rect fill="${n}" id="_Transparent_Rectangle_" data-name="&lt;Transparent Rectangle&gt;" style="fill: none;" width="32" height="32"/>'
41
+ </svg>`},u.icon.excel=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${r}" y="${i}">
42
+ <path fill="${n}" d="M9.29289 1.29289C9.48043 1.10536 9.73478 1 10 1H18C19.6569 1 21 2.34315 21 4V9C21 9.55228 20.5523 10 20 10C19.4477 10 19 9.55228 19 9V4C19 3.44772 18.5523 3 18 3H11V8C11 8.55228 10.5523 9 10 9H5V20C5 20.5523 5.44772 21 6 21H7C7.55228 21 8 21.4477 8 22C8 22.5523 7.55228 23 7 23H6C4.34315 23 3 21.6569 3 20V8C3 7.73478 3.10536 7.48043 3.29289 7.29289L9.29289 1.29289ZM6.41421 7H9V4.41421L6.41421 7ZM19 12C19.5523 12 20 12.4477 20 13V19H23C23.5523 19 24 19.4477 24 20C24 20.5523 23.5523 21 23 21H19C18.4477 21 18 20.5523 18 20V13C18 12.4477 18.4477 12 19 12ZM11.8137 12.4188C11.4927 11.9693 10.8682 11.8653 10.4188 12.1863C9.96935 12.5073 9.86526 13.1318 10.1863 13.5812L12.2711 16.5L10.1863 19.4188C9.86526 19.8682 9.96935 20.4927 10.4188 20.8137C10.8682 21.1347 11.4927 21.0307 11.8137 20.5812L13.5 18.2205L15.1863 20.5812C15.5073 21.0307 16.1318 21.1347 16.5812 20.8137C17.0307 20.4927 17.1347 19.8682 16.8137 19.4188L14.7289 16.5L16.8137 13.5812C17.1347 13.1318 17.0307 12.5073 16.5812 12.1863C16.1318 11.8653 15.5073 11.9693 15.1863 12.4188L13.5 14.7795L11.8137 12.4188Z" fill="#000000"/>
43
+ </svg>`},u.icon.pp_export=u.icon.pp_preview=u.icon.pppreview=u.icon.powerpoint=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${r}" y="${i}">
44
+ <path fill="${n}" d="M10 1C9.73478 1 9.48043 1.10536 9.29289 1.29289L3.29289 7.29289C3.10536 7.48043 3 7.73478 3 8V20C3 21.6569 4.34315 23 6 23H11C11.5523 23 12 22.5523 12 22C12 21.4477 11.5523 21 11 21H6C5.44772 21 5 20.5523 5 20V9H10C10.5523 9 11 8.55228 11 8V3H18C18.5523 3 19 3.44772 19 4V9C19 9.55228 19.4477 10 20 10C20.5523 10 21 9.55228 21 9V4C21 2.34315 19.6569 1 18 1H10ZM9 7H6.41421L9 4.41421V7ZM15 12C14.4477 12 14 12.4477 14 13V17V20C14 20.5523 14.4477 21 15 21C15.5523 21 16 20.5523 16 20V18H19C20.6569 18 22 16.6569 22 15C22 13.3431 20.6569 12 19 12H15ZM19 16H16V14H19C19.5523 14 20 14.4477 20 15C20 15.5523 19.5523 16 19 16Z" fill="#000000"/>
45
+ </svg>`},u.icon.edit=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 528.899 528.899" x="${r}" y="${i}">
46
+ <path fill="${n}" d="M328.883,89.125l107.59,107.589l-272.34,272.34L56.604,361.465L328.883,89.125z M518.113,63.177l-47.981-47.981 c-18.543-18.543-48.653-18.543-67.259,0l-45.961,45.961l107.59,107.59l53.611-53.611 C532.495,100.753,532.495,77.559,518.113,63.177z M0.3,512.69c-1.958,8.812,5.998,16.708,14.811,14.565l119.891-29.069 L27.473,390.597L0.3,512.69z" />'
47
+ </svg>`},u.icon.details=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${r}" y="${i}">
48
+ <path fill="${n}" d="M447.933,103.629c-0.034-3.076-1.224-6.09-3.485-8.352L352.683,3.511c-0.004-0.004-0.007-0.005-0.011-0.008 C350.505,1.338,347.511,0,344.206,0H89.278C75.361,0,64.04,11.32,64.04,25.237v461.525c0,13.916,11.32,25.237,25.237,25.237 h333.444c13.916,0,25.237-11.32,25.237-25.237V103.753C447.96,103.709,447.937,103.672,447.933,103.629z M356.194,40.931 l50.834,50.834h-49.572c-0.695,0-1.262-0.567-1.262-1.262V40.931z M423.983,486.763c0,0.695-0.566,1.261-1.261,1.261H89.278 c-0.695,0-1.261-0.566-1.261-1.261V25.237c0-0.695,0.566-1.261,1.261-1.261h242.94v66.527c0,13.916,11.322,25.239,25.239,25.239 h66.527V486.763z"/>
49
+ <path fill="${n}" d="M362.088,164.014H149.912c-6.62,0-11.988,5.367-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,169.381,368.707,164.014,362.088,164.014z"/>
50
+ <path fill="${n}" d="M362.088,236.353H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.62,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.368,11.988-11.988C374.076,241.721,368.707,236.353,362.088,236.353z"/>
51
+ <path fill="${n}" d="M362.088,308.691H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988h212.175 c6.62,0,11.988-5.367,11.988-11.988C374.076,314.06,368.707,308.691,362.088,308.691z"/>
52
+ <path fill="${n}" d="M256,381.031H149.912c-6.62,0-11.988,5.368-11.988,11.988c0,6.621,5.368,11.988,11.988,11.988H256 c6.62,0,11.988-5.367,11.988-11.988C267.988,386.398,262.62,381.031,256,381.031z"/>
53
+ </svg>`},u.icon.remove=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 900.5 900.5" x="${r}" y="${i}">
54
+ <path fill="${n}" d="M176.415,880.5c0,11.046,8.954,20,20,20h507.67c11.046,0,20-8.954,20-20V232.487h-547.67V880.5L176.415,880.5z M562.75,342.766h75v436.029h-75V342.766z M412.75,342.766h75v436.029h-75V342.766z M262.75,342.766h75v436.029h-75V342.766z"/>
55
+ <path fill="${n}" d="M618.825,91.911V20c0-11.046-8.954-20-20-20h-297.15c-11.046,0-20,8.954-20,20v71.911v12.5v12.5H141.874 c-11.046,0-20,8.954-20,20v50.576c0,11.045,8.954,20,20,20h34.541h547.67h34.541c11.046,0,20-8.955,20-20v-50.576 c0-11.046-8.954-20-20-20H618.825v-12.5V91.911z M543.825,112.799h-187.15v-8.389v-12.5V75h187.15v16.911v12.5V112.799z"/>
56
+ </svg>`},u.icon.add=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 922 922" x="${r}" y="${i}">
57
+ <path fill="${n}" d="M922,453V81c0-11.046-8.954-20-20-20H410c-11.045,0-20,8.954-20,20v149h318c24.812,0,45,20.187,45,45v198h149 C913.046,473.001,922,464.046,922,453z" />
58
+ <path fill="${n}" d="M557,667.001h151c11.046,0,20-8.954,20-20v-174v-198c0-11.046-8.954-20-20-20H390H216c-11.045,0-20,8.954-20,20v149h194 h122c24.812,0,45,20.187,45,45v4V667.001z" />
59
+ <path fill="${n}" d="M0,469v372c0,11.046,8.955,20,20,20h492c11.046,0,20-8.954,20-20V692v-12.501V667V473v-4c0-11.046-8.954-20-20-20H390H196 h-12.5H171H20C8.955,449,0,457.955,0,469z" />
60
+ </svg>`},u.icon.search=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 485.213 485.213" x="${r}" y="${i}">
61
+ <path fill="${n}" d="M471.882,407.567L360.567,296.243c-16.586,25.795-38.536,47.734-64.331,64.321l111.324,111.324 c17.772,17.768,46.587,17.768,64.321,0C489.654,454.149,489.654,425.334,471.882,407.567z" />
62
+ <path fill="${n}" d="M363.909,181.955C363.909,81.473,282.44,0,181.956,0C81.474,0,0.001,81.473,0.001,181.955s81.473,181.951,181.955,181.951 C282.44,363.906,363.909,282.437,363.909,181.955z M181.956,318.416c-75.252,0-136.465-61.208-136.465-136.46 c0-75.252,61.213-136.465,136.465-136.465c75.25,0,136.468,61.213,136.468,136.465 C318.424,257.208,257.206,318.416,181.956,318.416z" />
63
+ <path fill="${n}" d="M75.817,181.955h30.322c0-41.803,34.014-75.814,75.816-75.814V75.816C123.438,75.816,75.817,123.437,75.817,181.955z" />
64
+ </svg>`},u.icon.xml_export=u.icon.xml=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 550.801 550.801" x="${r}" y="${i}">
65
+ <path fill="${n}" d="M488.426,197.019H475.2v-63.816c0-0.401-0.063-0.799-0.116-1.205c-0.021-2.534-0.827-5.023-2.562-6.992L366.325,3.691 c-0.032-0.031-0.063-0.042-0.085-0.073c-0.633-0.707-1.371-1.298-2.151-1.804c-0.231-0.158-0.464-0.287-0.706-0.422 c-0.676-0.366-1.393-0.675-2.131-0.896c-0.2-0.053-0.38-0.135-0.58-0.19C359.87,0.119,359.037,0,358.193,0H97.2 c-11.918,0-21.6,9.693-21.6,21.601v175.413H62.377c-17.049,0-30.873,13.818-30.873,30.87v160.542 c0,17.044,13.824,30.876,30.873,30.876h13.224V529.2c0,11.907,9.682,21.601,21.6,21.601h356.4c11.907,0,21.6-9.693,21.6-21.601 V419.302h13.226c17.044,0,30.871-13.827,30.871-30.87V227.89C519.297,210.838,505.47,197.019,488.426,197.019z M97.2,21.605 h250.193v110.51c0,5.967,4.841,10.8,10.8,10.8h95.407v54.108H97.2V21.605z M369.531,374.53h-32.058l-2.156-55.519 c-0.644-17.434-1.298-38.518-1.298-59.611h-0.633c-4.514,18.516-10.547,39.166-16.137,56.162l-17.645,56.601h-25.618 l-15.494-56.157c-4.725-16.996-9.671-37.658-13.123-56.6h-0.43c-0.854,19.585-1.508,41.961-2.586,60.038l-2.576,55.086h-30.343 l9.26-145.035h43.677l14.207,48.421c4.517,16.774,9.041,34.847,12.258,51.843h0.654c4.081-16.77,9.038-35.923,13.774-52.064 l15.493-48.199h42.82L369.531,374.53z M69.992,374.53l41.955-73.385l-40.444-71.65h37.655l12.688,26.465 c4.316,8.828,7.533,15.928,10.99,24.092h0.422c3.438-9.242,6.23-15.694,9.893-24.092l12.274-26.465h37.434l-40.89,70.796 l43.044,74.239h-37.866l-13.134-26.257c-5.376-10.108-8.817-17.639-12.909-26.04h-0.433c-3.009,8.401-6.674,15.932-11.19,26.04 l-12.042,26.257H69.992z M453.601,523.353H97.2V419.302h356.4V523.353z M485.325,374.53h-90.608V229.495h32.933v117.497h57.682 v27.538H485.325z"/>
66
+ </svg>`},u.icon.visio_export=u.icon.visio=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 24 24" x="${r}" y="${i}">
67
+ <path fill="${n}" d="M24 7.609v9.556q0 .424-.302.726-.303.303-.726.303h-5.19q-.072 1.149-.556 2.135-.484.986-1.264 1.717-.78.732-1.803 1.15-1.022.417-2.159.417-1.016 0-1.96-.35-.943-.352-1.705-.969-.762-.617-1.295-1.47-.532-.852-.713-1.856H1.028q-.423 0-.726-.303Q0 18.363 0 17.94V7.609q0-.424.302-.726.303-.302.726-.302h5.238q-.072-.182-.072-.387 0-.424.302-.726L11.274.69q.303-.303.726-.303t.726.303l4.778 4.778q.302.302.302.726 0 .205-.072.387h5.238q.423 0 .726.302.302.302.302.726zM12 2.153l-4.04 4.04.387.388h3.012q.423 0 .726.302.302.302.302.726v2.238l3.653-3.653zM7.161 16.84l3.085-8.13H8.238q-.508 1.489-1.028 2.952-.52 1.464-1.004 2.964-.496-1.488-.992-2.958-.496-1.47-1.004-2.957H2.153l3.037 8.129zM12 22.065q.883 0 1.657-.333t1.355-.913q.58-.581.913-1.355.333-.774.333-1.658 0-.81-.302-1.548-.303-.738-.823-1.318-.52-.581-1.228-.944-.707-.363-1.518-.423v4.367q0 .423-.302.725-.303.303-.726.303H7.923q.206.677.593 1.246.387.568.92.98.532.41 1.185.64.653.23 1.379.23zm10.452-5.42V8.13h-6.158q-.133.133-.441.454-.309.32-.714.725-.405.406-.847.853-.441.448-.828.823-.387.375-.684.641-.296.266-.393.302v.097q.968.036 1.845.411t1.578.998q.702.623 1.186 1.446t.677 1.766Z"/>
68
+ </svg>`},u.icon.link=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512.092 512.092" x="${r}" y="${i}">
69
+ <path fill="${n}" d="M312.453,199.601c-6.066-6.102-12.792-11.511-20.053-16.128c-19.232-12.315-41.59-18.859-64.427-18.859 c-31.697-0.059-62.106,12.535-84.48,34.987L34.949,308.23c-22.336,22.379-34.89,52.7-34.91,84.318 c-0.042,65.98,53.41,119.501,119.39,119.543c31.648,0.11,62.029-12.424,84.395-34.816l89.6-89.6 c1.628-1.614,2.537-3.816,2.524-6.108c-0.027-4.713-3.87-8.511-8.583-8.484h-3.413c-18.72,0.066-37.273-3.529-54.613-10.581 c-3.195-1.315-6.867-0.573-9.301,1.877l-64.427,64.512c-20.006,20.006-52.442,20.006-72.448,0 c-20.006-20.006-20.006-52.442,0-72.448l108.971-108.885c19.99-19.965,52.373-19.965,72.363,0 c13.472,12.679,34.486,12.679,47.957,0c5.796-5.801,9.31-13.495,9.899-21.675C322.976,216.108,319.371,206.535,312.453,199.601z" />
70
+ <path fill="${n}" d="M477.061,34.993c-46.657-46.657-122.303-46.657-168.96,0l-89.515,89.429c-2.458,2.47-3.167,6.185-1.792,9.387 c1.359,3.211,4.535,5.272,8.021,5.205h3.157c18.698-0.034,37.221,3.589,54.528,10.667c3.195,1.315,6.867,0.573,9.301-1.877 l64.256-64.171c20.006-20.006,52.442-20.006,72.448,0c20.006,20.006,20.006,52.442,0,72.448l-80.043,79.957l-0.683,0.768 l-27.989,27.819c-19.99,19.965-52.373,19.965-72.363,0c-13.472-12.679-34.486-12.679-47.957,0 c-5.833,5.845-9.35,13.606-9.899,21.845c-0.624,9.775,2.981,19.348,9.899,26.283c9.877,9.919,21.433,18.008,34.133,23.893 c1.792,0.853,3.584,1.536,5.376,2.304c1.792,0.768,3.669,1.365,5.461,2.048c1.792,0.683,3.669,1.28,5.461,1.792l5.035,1.365 c3.413,0.853,6.827,1.536,10.325,2.133c4.214,0.626,8.458,1.025,12.715,1.195h5.973h0.512l5.12-0.597 c1.877-0.085,3.84-0.512,6.059-0.512h2.901l5.888-0.853l2.731-0.512l4.949-1.024h0.939c20.961-5.265,40.101-16.118,55.381-31.403 l108.629-108.629C523.718,157.296,523.718,81.65,477.061,34.993z" />
71
+ </svg>`},u.icon.happy=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${r}" y="${i}">
72
+ <path fill="${n}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>
73
+ <path fill="${n}" d="M176,176c17.673,0,32,14.327,32,32h32c0-35.346-28.654-64-64-64c-35.346,0-64,28.654-64,64h32 C144,190.327,158.327,176,176,176z"/>
74
+ <path fill="${n}" d="M336,144c-35.346,0-64,28.654-64,64h32c0-17.673,14.327-32,32-32c17.673,0,32,14.327,32,32h32 C400,172.654,371.346,144,336,144z"/>
75
+ <path fill="${n}" d="M256,368c-53.019,0-96-42.981-96-96h-32c0,70.692,57.308,128,128,128s128-57.308,128-128h-32 C352,325.019,309.019,368,256,368z"/>
76
+ </svg>`},u.icon.sad=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" viewBox="0 0 512 512" x="${r}" y="${i}">
77
+ <path fill="${n}" d="M256,0C114.615,0,0,114.615,0,256s114.615,256,256,256s256-114.615,256-256S397.385,0,256,0z M256,480 C132.288,480,32,379.712,32,256S132.288,32,256,32s224,100.288,224,224S379.712,480,256,480z"/>
78
+ <path fill="${n}" d="M336,192c-17.673,0-32-14.327-32-32h-32c0,35.346,28.654,64,64,64c35.346,0,64-28.654,64-64h-32 C368,177.673,353.673,192,336,192z"/>
79
+ <path fill="${n}" d="M176,224c35.346,0,64-28.654,64-64h-32c0,17.673-14.327,32-32,32s-32-14.327-32-32h-32C112,195.346,140.654,224,176,224z "/>
80
+ <path fill="${n}" d="M256,256c-70.692,0-128,57.308-128,128h32c0-53.019,42.981-96,96-96s96,42.981,96,96h32C384,313.308,326.692,256,256,256 z"/>
81
+ </svg>`},u.icon.share=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 512 512">
82
+ <path fill="${n}" d="M406,332c-29.641,0-55.761,14.581-72.167,36.755L191.99,296.124c2.355-8.027,4.01-16.346,4.01-25.124
83
+ c0-11.906-2.441-23.225-6.658-33.636l148.445-89.328C354.307,167.424,378.589,180,406,180c49.629,0,90-40.371,90-90
84
+ c0-49.629-40.371-90-90-90c-49.629,0-90,40.371-90,90c0,11.437,2.355,22.286,6.262,32.358l-148.887,89.59
85
+ C156.869,193.136,132.937,181,106,181c-49.629,0-90,40.371-90,90c0,49.629,40.371,90,90,90c30.13,0,56.691-15.009,73.035-37.806
86
+ l141.376,72.395C317.807,403.995,316,412.75,316,422c0,49.629,40.371,90,90,90c49.629,0,90-40.371,90-90
87
+ C496,372.371,455.629,332,406,332z"/>
88
+ </svg>`},u.icon.user=function(e,t,n,r,i){return u.isNEU(r)&&(r=0),u.isNEU(i)&&(i=0),`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
89
+ <path fill="${n}" d="M12 11.796C14.7189 11.796 16.9231 9.60308 16.9231 6.89801C16.9231 4.19294 14.7189 2.00005 12 2.00005C9.28106 2.00005 7.07692 4.19294 7.07692 6.89801C7.07692 9.60308 9.28106 11.796 12 11.796Z" fill="#030D45"/>
90
+ <path fill="${n}" d="M14.5641 13.8369H9.4359C6.46154 13.8369 4 16.2859 4 19.245C4 19.9593 4.30769 20.5716 4.92308 20.8777C5.84615 21.3879 7.89744 22.0001 12 22.0001C16.1026 22.0001 18.1538 21.3879 19.0769 20.8777C19.5897 20.5716 20 19.9593 20 19.245C20 16.1838 17.5385 13.8369 14.5641 13.8369Z" fill="#030D45"/>
91
+ </svg>`},u.icon.close=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 512 512">
92
+ <path fill="${n}" d="m256 0c-141.49 0-256 114.5-256 256 0 141.49 114.5 256 256 256 141.49 0 256-114.5 256-256 0-141.49-114.5-256-256-256zm-12.284 317.397-58.121 58.132c-6.565 6.553-15.283 10.166-24.557 10.166-19.196 0-34.734-15.526-34.734-34.734 0-9.274 3.612-17.992 10.166-24.557l58.132-58.121c6.785-6.784 6.785-17.783 0-24.568l-58.132-58.121c-6.553-6.565-10.166-15.283-10.166-24.557 0-19.196 15.526-34.734 34.734-34.734 9.274 0 17.992 3.613 24.557 10.166l58.121 58.132c6.785 6.773 17.784 6.773 24.568 0l58.121-58.132c6.565-6.553 15.283-10.166 24.557-10.166 19.196 0 34.734 15.526 34.734 34.734 0 9.274-3.612 17.992-10.166 24.557l-58.132 58.121c-6.785 6.784-6.785 17.783 0 24.568l58.132 58.121c6.553 6.565 10.166 15.283 10.166 24.557 0 19.196-15.526 34.734-34.734 34.734-9.274 0-17.992-3.613-24.557-10.166l-58.121-58.132c-6.784-6.784-17.784-6.773-24.568 0z"/>
93
+ </svg>`},u.icon.undo=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
94
+ <path fill-rule="evenodd" clip-rule="evenodd" fill="${n}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM9.25871 7.97395C9.56308 7.693 9.58205 7.21851 9.3011 6.91414C9.02015 6.60978 8.54565 6.5908 8.24129 6.87175L5.99129 8.94867C5.83748 9.09065 5.75 9.29045 5.75 9.49977C5.75 9.7091 5.83748 9.9089 5.99129 10.0509L8.24129 12.1278C8.54565 12.4088 9.02015 12.3898 9.3011 12.0854C9.58205 11.781 9.56308 11.3065 9.25871 11.0256L8.41824 10.2498H14.0385C14.7376 10.2498 15.2069 10.2506 15.5652 10.2862C15.9116 10.3205 16.0724 10.3813 16.1787 10.4501C16.3272 10.5461 16.4537 10.6726 16.5497 10.8211C16.6184 10.9274 16.6793 11.0882 16.7136 11.4345C16.7491 11.7929 16.75 12.2622 16.75 12.9613C16.75 13.6604 16.7491 14.1298 16.7136 14.4881C16.6793 14.8344 16.6185 14.9952 16.5497 15.1015C16.4537 15.2501 16.3272 15.3765 16.1787 15.4726C16.0724 15.5413 15.9116 15.6021 15.5652 15.6365C15.2069 15.672 14.7376 15.6729 14.0385 15.6729H9.5C9.08579 15.6729 8.75 16.0086 8.75 16.4229C8.75 16.8371 9.08579 17.1729 9.5 17.1729H14.0758C14.7279 17.1729 15.2721 17.1729 15.7133 17.1291C16.1748 17.0834 16.6038 16.9839 16.9931 16.7322C17.3199 16.5209 17.5981 16.2427 17.8094 15.916C18.0611 15.5266 18.1605 15.0976 18.2063 14.6361C18.25 14.195 18.25 13.6508 18.25 12.9987V12.924C18.25 12.2718 18.25 11.7276 18.2063 11.2865C18.1605 10.825 18.0611 10.396 17.8093 10.0067C17.5981 9.6799 17.3199 9.40169 16.9931 9.19042C16.6038 8.9387 16.1748 8.83927 15.7133 8.7935C15.2721 8.74975 14.7279 8.74976 14.0758 8.74977L8.41824 8.74977L9.25871 7.97395Z" />
95
+ <rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect>
96
+ </svg>`},u.icon.redo=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24" >
97
+ <path fill="#f9f9f9" fill-rule="evenodd" clip-rule="evenodd" fill="${n}" d="M3.46447 3.46447C2 4.92893 2 7.28595 2 12C2 16.714 2 19.0711 3.46447 20.5355C4.92893 22 7.28595 22 12 22C16.714 22 19.0711 22 20.5355 20.5355C22 19.0711 22 16.7141 22 12C22 7.28598 22 4.92893 20.5355 3.46447C19.0711 2 16.714 2 12 2C7.28595 2 4.92893 2 3.46447 3.46447ZM15.7587 6.87273C15.4543 6.59177 14.9799 6.61075 14.6989 6.91512C14.4179 7.21948 14.4369 7.69398 14.7413 7.97493L15.5818 8.75075H9.96155C7.63558 8.75075 5.75 10.6363 5.75 12.9623C5.75 15.2883 7.63557 17.1738 9.96154 17.1738H14.5C14.9142 17.1738 15.25 16.838 15.25 16.4238C15.25 16.0096 14.9142 15.6738 14.5 15.6738H9.96154C8.464 15.6738 7.25 14.4598 7.25 12.9623C7.25 11.4647 8.464 10.2508 9.96155 10.2508H15.5818L14.7413 11.0266C14.4369 11.3075 14.4179 11.782 14.6989 12.0864C14.9799 12.3908 15.4543 12.4097 15.7587 12.1288L18.0087 10.0519C18.1625 9.90987 18.25 9.71007 18.25 9.50075C18.25 9.29143 18.1625 9.09163 18.0087 8.94965L15.7587 6.87273Z"/>
98
+ <rect style="opacity: 0" x="2" y="2" width="20" height="20"></rect>
99
+ </svg>`},u.icon.send=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24" >
100
+ <path fill="none" stroke="${n}" stroke-width="2" d="M10.3009 13.6949L20.102 3.89742M10.5795 14.1355L12.8019 18.5804C13.339 19.6545 13.6075 20.1916 13.9458 20.3356C14.2394 20.4606 14.575 20.4379 14.8492 20.2747C15.1651 20.0866 15.3591 19.5183 15.7472 18.3818L19.9463 6.08434C20.2845 5.09409 20.4535 4.59896 20.3378 4.27142C20.2371 3.98648 20.013 3.76234 19.7281 3.66167C19.4005 3.54595 18.9054 3.71502 17.9151 4.05315L5.61763 8.2523C4.48114 8.64037 3.91289 8.83441 3.72478 9.15032C3.56153 9.42447 3.53891 9.76007 3.66389 10.0536C3.80791 10.3919 4.34498 10.6605 5.41912 11.1975L9.86397 13.42C10.041 13.5085 10.1295 13.5527 10.2061 13.6118C10.2742 13.6643 10.3352 13.7253 10.3876 13.7933C10.4468 13.87 10.491 13.9585 10.5795 14.1355Z" />
101
+ </svg>`},u.icon.x=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
102
+ <line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${n}"></line>
103
+ <line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${n}"></line>
104
+ </svg>`},u.icon.x=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 24 24">
105
+ <line x1="0" y1="0" x2="24" y2="24" stroke-width="3" stroke="${n}"></line>
106
+ <line x1="24" y1="0" x2="0" y2="24" stroke-width="3" stroke="${n}"></line>
107
+ </svg>`},u.icon.fit=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 128 128">
108
+ <path fill="${n}" d="M 58.1875 4.90625 C 29.957889 4.90625 6.9375 27.957888 6.9375 56.1875 C 6.9375 84.417111 29.957889 107.4375 58.1875 107.4375 C 69.752492 107.4375 80.436703 103.56785 89.03125 97.0625 L 108.59375 120.4375 A 7.0007 7.0007 0 1 0 119.3125 111.4375 L 98.96875 87.15625 C 105.53731 78.538312 109.4375 67.814416 109.4375 56.1875 C 109.4375 27.957888 86.417111 4.90625 58.1875 4.90625 z M 58.1875 18.875 C 78.850949 18.875 95.4375 35.52405 95.4375 56.1875 C 95.4375 76.850949 78.850949 93.4375 58.1875 93.4375 C 37.524051 93.4375 20.9375 76.850949 20.9375 56.1875 C 20.9375 35.52405 37.524051 18.875 58.1875 18.875 z M 33.125 31.09375 L 33.125 36.40625 L 33.125 75.90625 L 33.125 81.21875 L 38.4375 81.21875 L 77.9375 81.21875 L 83.25 81.21875 L 83.25 75.90625 L 83.25 36.40625 L 83.25 31.09375 L 77.9375 31.09375 L 38.4375 31.09375 L 33.125 31.09375 z M 43.78125 41.75 L 72.59375 41.75 L 72.59375 70.5625 L 43.78125 70.5625 L 43.78125 41.75 z "/>
109
+ </svg>`},u.icon.expand_all=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 32 32">
110
+ <path fill="${n}" d="M13.816 5.989l-7.785 0.046 0.003 7.735 2.59-2.591 3.454 3.454 2.665-2.665-3.453-3.454 2.526-2.525zM12.079 17.35l-3.454 3.455-2.59-2.592-0.003 7.799 7.785-0.018-2.526-2.525 3.454-3.453-2.666-2.666zM19.922 14.633l3.453-3.454 2.59 2.591 0.004-7.735-7.785-0.046 2.526 2.525-3.454 3.454 2.666 2.665zM23.375 20.805l-3.453-3.455-2.666 2.666 3.454 3.453-2.526 2.525 7.785 0.018-0.004-7.799-2.59 2.592z"></path>
111
+ </svg>`},u.icon.full_screen=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 48 48">
112
+ <rect width="48" height="48" fill="${n}" fill-opacity="0.01"/>
113
+ <path fill="none" d="M16 40H6C4.89543 40 4 39.1046 4 38V10C4 8.89543 4.89543 8 6 8H42C43.1046 8 44 8.89543 44 10V16" stroke="${n}" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
114
+ <rect x="24" y="24" width="20" height="16" rx="2" fill="none" stroke="${n}" stroke-width="4" stroke-linejoin="round"/>
115
+ </svg>`},u.icon.zoom_in=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 32 32" >
116
+ <g sketch:type="MSLayerGroup" transform="translate(-362.000000, -1037.000000)" fill="${n}">
117
+ <path d="M390,1049 L382,1049 L382,1041 C382,1038.79 380.209,1037 378,1037 C375.791,1037 374,1038.79 374,1041 L374,1049 L366,1049 C363.791,1049 362,1050.79 362,1053 C362,1055.21 363.791,1057 366,1057 L374,1057 L374,1065 C374,1067.21 375.791,1069 378,1069 C380.209,1069 382,1067.21 382,1065 L382,1057 L390,1057 C392.209,1057 394,1055.21 394,1053 C394,1050.79 392.209,1049 390,1049" id="plus" sketch:type="MSShapeGroup"></path>
118
+ </g>
119
+ </svg>`},u.icon.zoom_out=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 -12 32 32" >
120
+ <g id="Icon-Set-Filled" sketch:type="MSLayerGroup" transform="translate(-414.000000, -1049.000000)" fill="${n}">
121
+ <path d="M442,1049 L418,1049 C415.791,1049 414,1050.79 414,1053 C414,1055.21 415.791,1057 418,1057 L442,1057 C444.209,1057 446,1055.21 446,1053 C446,1050.79 444.209,1049 442,1049" id="minus" sketch:type="MSShapeGroup"></path>
122
+ </g>
123
+ </svg>`},u.icon.layout_normal=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
124
+ <rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
125
+ <rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
126
+ <rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
127
+ <line stroke="${n}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>
128
+ <line stroke="${n}" x1="32" x2="88" y1="35" y2="35" stroke-width="1"></line>
129
+ <line stroke="${n}" x1="32" x2="32" y1="35" y2="41" stroke-width="1"></line>
130
+ <line stroke="${n}" x1="88" x2="88" y1="35" y2="41" stroke-width="1"></line>
131
+ </svg>`},u.icon.layout_right_offset=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
132
+ <rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
133
+ <rect fill="${n}" x="40" y="41" width="50" height="27"></rect>
134
+ <rect fill="${n}" x="40" y="73" width="50" height="27"></rect>
135
+ <line stroke="${n}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>
136
+ <line stroke="${n}" x1="60" x2="35" y1="35" y2="35" stroke-width="1"></line>
137
+ <line stroke="${n}" x1="35" x2="35" y1="35" y2="86" stroke-width="1"></line>
138
+ <line stroke="${n}" x1="35" x2="40" y1="86" y2="86" stroke-width="1"></line>
139
+ <line stroke="${n}" x1="35" x2="40" y1="54" y2="54" stroke-width="1"></line>
140
+ </svg>`},u.icon.layout_left_offset=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
141
+ <rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
142
+ <rect fill="${n}" x="30" y="41" width="50" height="27"></rect>
143
+ <rect fill="${n}" x="30" y="73" width="50" height="27"></rect>
144
+ <line stroke="${n}" x1="60" x2="60" y1="27" y2="35" stroke-width="1"></line>
145
+ <line stroke="${n}" x1="60" x2="85" y1="35" y2="35" stroke-width="1"></line>
146
+ <line stroke="${n}" x1="85" x2="85" y1="35" y2="86" stroke-width="1"></line>
147
+ <line stroke="${n}" x1="80" x2="85" y1="86" y2="86" stroke-width="1"></line>
148
+ <line stroke="${n}" x1="80" x2="85" y1="54" y2="54" stroke-width="1"></line>
149
+ </svg>`},u.icon.layout_mixed=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
150
+ <rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
151
+ <rect fill="${n}" x="35" y="41" width="50" height="27"></rect>
152
+ <rect fill="${n}" x="35" y="73" width="50" height="27"></rect>
153
+ <line stroke="${n}" x1="60" x2="60" y1="27" y2="41" stroke-width="1"></line>
154
+ <line stroke="${n}" x1="60" x2="60" y1="68" y2="73" stroke-width="1"></line>
155
+ </svg>`},u.icon.layout_tree=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
156
+ <rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
157
+ <rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
158
+ <rect fill="${n}" x="35" y="73" width="50" height="27"></rect>
159
+ <rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
160
+ <line stroke="${n}" x1="60" x2="60" y1="27" y2="73" stroke-width="1"></line>
161
+ <line stroke="${n}" x1="57" x2="63" y1="54" y2="54" stroke-width="1"></line>
162
+ </svg>`},u.icon.layout_grid=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
163
+ <rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
164
+ <rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
165
+ <rect fill="${n}" x="7" y="73" width="50" height="27"></rect>
166
+ <rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
167
+ <rect fill="${n}" x="63" y="73" width="50" height="27"></rect>
168
+ <line stroke="${n}" x1="60" x2="60" y1="27" y2="71" stroke-width="1"></line>
169
+ <line stroke="${n}" x1="32" x2="88" y1="39" y2="39" stroke-width="1"></line>
170
+ <line stroke="${n}" x1="32" x2="88" y1="71" y2="71" stroke-width="1"></line>
171
+ <line stroke="${n}" x1="32" x2="32" y1="71" y2="73" stroke-width="1"></line>
172
+ <line stroke="${n}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>
173
+ <line stroke="${n}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>
174
+ <line stroke="${n}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>
175
+ </svg>`},u.icon.layout_grid=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 110 100">
176
+ <rect fill="${n}" x="35" y="0" width="50" height="27"></rect>
177
+ <rect fill="${n}" x="7" y="41" width="50" height="27"></rect>
178
+ <rect fill="${n}" x="7" y="73" width="50" height="27"></rect>
179
+ <rect fill="${n}" x="63" y="41" width="50" height="27"></rect>
180
+ <rect fill="${n}" x="63" y="73" width="50" height="27"></rect>
181
+ <line stroke="${n}" x1="60" x2="60" y1="27" y2="71" stroke-width="1"></line>
182
+ <line stroke="${n}" x1="32" x2="88" y1="39" y2="39" stroke-width="1"></line>
183
+ <line stroke="${n}" x1="32" x2="88" y1="71" y2="71" stroke-width="1"></line>
184
+ <line stroke="${n}" x1="32" x2="32" y1="71" y2="73" stroke-width="1"></line>
185
+ <line stroke="${n}" x1="88" x2="88" y1="71" y2="73" stroke-width="1"></line>
186
+ <line stroke="${n}" x1="32" x2="32" y1="39" y2="41" stroke-width="1"></line>
187
+ <line stroke="${n}" x1="88" x2="88" y1="39" y2="41" stroke-width="1"></line>
188
+ </svg>`},u.icon.cursor=function(e,t,n,r,i){return r??=0,i??=0,`<svg width="${e}" height="${t}" x="${r}" y="${i}" viewBox="0 0 16 16" >
189
+ <path d="M8 3V0H6V3H8Z" fill="${n}"/>
190
+ <path d="M0.792893 2.20711L3.29289 4.70711L4.70711 3.29289L2.20711 0.792893L0.792893 2.20711Z" fill="${n}"/>
191
+ <path d="M6 5L5 6.00001L8 15H10L10.7172 12.1314L14.2929 15.7071L15.7071 14.2929L12.1314 10.7172L15 10V8L6 5Z" fill="${n}"/>
192
+ <path d="M0 6H3V8H0V6Z" fill="${n}"/>
193
+ </svg>`},u===void 0&&(u={}),u.events=(function(){var e={};return{on:function(t,n,r){Array.isArray(e[t])||(e[t]=[]),e[t].push({listener:n,event_id:r})},removeAll:function(t){Array.isArray(e[t])||(e[t]=[]),e[t]=[]},remove:function(t,n,r){var i=!1;if(e[t]&&Array.isArray(e[t])&&e[t].length>0)for(var a=e[t].length-1;a>=0;a--)(!u.isNEU(r)&&!u.isNEU(n)&&e[t][a].event_id==r&&e[t][a].listener==n||!u.isNEU(r)&&u.isNEU(n)&&e[t][a].event_id==r||u.isNEU(r)&&!u.isNEU(n)&&e[t][a].listener==n||u.isNEU(r)&&u.isNEU(n))&&(e[t].splice(a,1),i=!0);return i},has:function(t,n){if(e[t]&&Array.isArray(e[t])&&e[t].length>0){if(u.isNEU(n))return!0;for(var r=0;r<e[t].length;r++)if(e[t][r].event_id==n)return!0}return!1},removeForEventId:function(t){for(var n in e)if(Array.isArray(e[n]))for(var r=e[n].length-1;r>=0;r--)e[n][r].event_id==t&&e[n].splice(r,1)},publish:function(t,n){if(e[t]){for(var r=[],i=0;i<e[t].length;i++){var a=e[t][i];(a.event_id==null||a.event_id==n[0]._event_id)&&r.push(a.listener)}if(r.length>0){for(var o=!0,i=0;i<r.length&&(n.length==1?o=r[i](n[0])&&o:n.length==2?o=r[i](n[0],n[1])&&o:n.length==3?o=r[i](n[0],n[1],n[2])&&o:n.length==4?o=r[i](n[0],n[1],n[2],n[3])&&o:n.length==5&&(o=r[i](n[0],n[1],n[2],n[3],n[4])&&o),o!==!1);i++);return o}}}}})(),u.prototype.expand=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,u.action.expand,r,n)},u.prototype.collapse=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,u.action.collapse,r,n)},u.prototype.expandCollapse=function(e,t,n,r){this._treeListExpandCollapseHandler(e),this._resetMovableNodes(),Array.isArray(t)||(t=[]),Array.isArray(n)||(n=[]);var i={id:e,expandIds:t,collapseIds:n,ids:t.concat(n)};this._draw(!1,u.action.collapse,i,r)},u.prototype.changeRoots=function(e,t,n){this.config.roots=t;var r={id:e,changeRoots:t};this._draw(!1,u.action.update,r,n)},u.prototype._resetMovableNodes=function(){if(u.RESET_MOVABLE_ONEXPANDCOLLAPSE&&this.config.movable!=null){for(var e=!1,t=0;t<this.config.nodes.length;t++){var n=this.config.nodes[t];n.movex!=null&&(n.movex=0,e=!0),n.movey!=null&&(n.movey=0,e=!0)}e&&(this._ai.setContext(),u.events.publish(`updated`,[this]))}},u.prototype.maximize=function(e,t,n,r){var i=this,a={id:e,options:{}};u.isNEU(a.id)&&(a.id=this.roots[0].id,a.all=!0),a.options.horizontal=!1,a.options.vertical=!1,t&&(a.options.horizontal=t),n&&(a.options.vertical=n),this._draw(!1,u.action.maximize,a,function(){i.ripple(e),r&&r()})},u.prototype.minimize=function(e,t){var n=this,r={id:e};u.isNEU(r.id)&&(r.id=this.roots[0].id,r.all=!0),this._draw(!1,u.action.minimize,r,function(){n.ripple(e),t&&t()})},u.prototype._expCollHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this.getNode(e),n=this.getCollapsedIds(t);if(n.length){var r=u.events.publish(`expcollclick`,[this,!1,e,n]);if(r===!1)return!1;this.expand(e,n,!1)}else{var r=u.events.publish(`expcollclick`,[this,!0,e,t.childrenIds]);if(r===!1)return!1;this.collapse(e,t.childrenIds,!1)}},u.prototype._upHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this._upHandlerCreateArgs(e);if(u.events.publish(`up-click`,[this,t])===!1)return!1;this.changeRoots(t.id,t.roots,!1)},u.prototype._upHandlerCreateArgs=function(e){var t=this.getNode(e),n=Object.assign([],this.config.roots),r=this.getNode(t.pid),i;if(r&&(i=r),i){if(Array.isArray(n)){var a=n.indexOf(t.id);a!=-1&&n.splice(a,1)}else n=[];n.push(i.id)}return{id:t.id,roots:n}},String.prototype.replaceAll||(String.prototype.replaceAll=function(e,t){return this.replace(new RegExp(e,`g`),t)}),String.prototype.endsWith||(String.prototype.endsWith=function(e){return this.indexOf(e,this.length-e.length)!==-1}),String.prototype.splice||(String.prototype.splice=function(e,t,n){return this.slice(0,e)+n+this.slice(e+Math.abs(t))}),String.prototype.insert||(String.prototype.insert=function(e,t){return e>0?this.substring(0,e)+t+this.substr(e):t+this}),Array.prototype.unique||Object.defineProperty(Array.prototype,`unique`,{value:function(){for(var e=this.concat(),t=0;t<e.length;++t)for(var n=t+1;n<e.length;++n)e[t]===e[n]&&e.splice(n--,1);return e},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.has||Object.defineProperty(Array.prototype,`has`,{value:function(e){for(var t=0;t<this.length;t++)if(this[t]==e)return!0;return!1},writable:!0,configurable:!0,enumerable:!1}),Array.prototype.compare||Object.defineProperty(Array.prototype,`compare`,{value:function(e){if(this.length!=e.length)return!1;for(var t=0;t<this.length;t++)if(!e.has(this[t]))return!1;return!0},writable:!0,configurable:!0,enumerable:!1}),Object.assign||Object.defineProperty(Object,`assign`,{value:function(e,t){if(e==null)throw TypeError(`Cannot convert undefined or null to object`);for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(i!=null)for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},writable:!0,configurable:!0}),u.prototype._globalMouseDownHandler=function(e,t){var n={move:`mousemove`,up:`mouseup`,leave:`mouseleave`};t.type.indexOf(`touch`)!=-1&&(t.touches.length==1?this._touch={x:t.touches[0].clientX,y:t.touches[0].clientY}:this._touch=null,n={move:`touchmove`,up:`touchend`,touchstart:`touchstart`}),this._treeListUpdateInterval&&=(clearInterval(this._treeListUpdateInterval),null);for(var r=null,i=t.target;i!=e&&!i.hasAttribute(u.attr.control_node_menu_id)&&!i.hasAttribute(u.attr.control_node_circle_menu_id);){if(i.hasAttribute){var a=null;i.hasAttribute(u.attr.node_id)?a=this.getNode(i.getAttribute(u.attr.node_id)):i.hasAttribute(u.attr.control_expcoll_id)?a=this.getNode(i.getAttribute(u.attr.control_expcoll_id)):(i.hasAttribute(u.attr.control_node_menu_id)||i.hasAttribute(u.attr.control_node_menu_id))&&(a=this.getNode(i.getAttribute(u.attr.control_node_menu_id))),r||=u._getScrollableTreeListNodeInTouchEnabledDevice(a)}if(i.hasAttribute(u.attr.node_id)&&!r&&(this.config.enableDragDrop||this.config.movable)){if(t.touches==null||t.touches.length<=1){this._nodeMouseDownHandler(i,t,n);return}}else if(i.hasAttribute(u.attr.control_node_circle_menu_name)){if(t.stopPropagation(),t.touches==null||t.touches.length<=1){this._nodeCircleNodeMenuItemMouseDownHandler(e,i,t,n);return}}else if(i.hasAttribute(`data-treelist-thumb`)&&(t.stopPropagation(),t.touches==null||t.touches.length<=1)){this._treeListThumbMouseDownHandler(i,t,n);return}i=i.parentNode}t.stopPropagation(),this._mouseDownHandler(e,t,n,r)},u.prototype._globalContextHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(u.attr.node_id)){var r=n.getAttribute(u.attr.node_id),i=this.getNode(r);this._nodeContextHandler(i.id,t);return}n=n.parentNode}},u.prototype._nodeContextHandler=function(e,t){t.preventDefault(),u.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var n=this.get(e),r=null;if(n!=null&&Array.isArray(n.tags))for(var i=0;i<n.tags.length;i++){var a=n.tags[i];this.config.tags[a]&&this.config.tags[a].nodeContextMenu&&(r=this.config.tags[a].nodeContextMenu)}var o=this.element.getBoundingClientRect(),s=t.clientX-o.left,c=t.clientY-o.top;this.nodeContextMenuUI.show(s,c,e,null,r)},u.prototype._globalDbClickHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(u.attr.node_id)){var r=n.getAttribute(u.attr.node_id),i=this.getNode(r);this._nodeDbClickHandler(i.id,t);return}n=n.parentNode}},u.prototype._mouseScrollHandler=function(e,t){for(var n=!1,r=t.target,i=null;r&&r.hasAttribute&&!r.hasAttribute(`data-n-id`)&&!r.hasAttribute(`data-ctrl-ec-id`);)r=r.parentNode;if(r.hasAttribute&&r.hasAttribute(`data-n-id`)){var a=r.getAttribute(`data-n-id`);i=this.getNode(a),i.isTreeListItem&&(n=!0)}if(r.hasAttribute&&r.hasAttribute(`data-ctrl-ec-id`)){var a=r.getAttribute(`data-ctrl-ec-id`);i=this.getNode(a),i.isTreeListItem&&(n=!0)}t.ctrlKey&&(n=!1),n?this.__mouseScrollHandlerTreeList(i,t):this.__mouseScrollHandler(this.getSvg(),t)},u.prototype.__mouseScrollHandler=function(e,t){if(t.ctrlKey){if(this.config.mouseScrool==u.action.zoom)return}else if(this.config.mouseScrool==u.action.ctrlZoom||this.config.mouseScrool!=u.action.zoom)return;if(t.preventDefault(),!navigator.hardwareConcurrency||navigator.hardwareConcurrency<9){let r=t.deltaY/1e3;r=Math.abs(r)<.1?.1*t.deltaY/Math.abs(t.deltaY):r;var n=u._centerPointInPercent(e,t.clientX,t.clientY);this.zoom(1-r,n)}else{var r=this,i=!1,a=this.config.zoom.speed,o=this.config.zoom.smooth,s=0,c=this.getScale(),n=u._centerPointInPercent(e,t.clientX,t.clientY);function f(){i=!0;var e=(s-c)/o;e>0?e++:e--,c+=e,r.zoom(1-e/12/50,n),parseInt(c)==parseInt(s)?i=!1:l(f)}var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,20)}}();t.preventDefault();var d=t.delta||t.wheelDelta;d===void 0&&(d=-t.detail),d=Math.max(-1,Math.min(1,d)),s+=-d*a,i||f()}},u.prototype._nodeCircleNodeMenuItemMouseDownHandler=function(e,t,n,r){var i=t.parentNode.getAttribute(u.attr.control_node_circle_menu_wrraper_id),a=t.getAttribute(u.attr.control_node_circle_menu_name),o=this.nodeCircleMenuUI._menu[a];if(!o.draggable){this._clickHandler(e,n);return}var s=this,c=u._getClientXY(n),l=this.getNode(i);t._dragEventFired=!1;var d=s.getScale(),f=null,p=null;document.body.style.mozUserSelect=document.body.style.webkitUserSelect=document.body.style.userSelect=`none`;var m=this.getSvg(),h={x:c.x,y:c.y},g=function(e){for(;e&&!e.hasAttribute(u.attr.control_node_circle_menu_wrraper_id);)e=e.parentNode;if(!e){console.error(`cannot find parent`+u.attr.control_node_circle_menu_wrraper_id);return}var t=u._getTransform(e);return{x:t[4],y:t[5]}},_=t.cloneNode(!0);m.insertBefore(_,m.firstChild);var v=u._getTransform(_),y=v[4],b=v[5],x=g(t);_.setAttribute(`transform`,`matrix(1,0,0,1,`+(y+x.x)+`,`+(b+x.y)+`)`),_.style.opacity=.7;var S=function(e,t){if(e!=null){t.classList.remove(`boc-drag-over`);for(var n=u.getStParentNodes(s.getNode(f)),r=0;r<n.length;r++){var i=s.getNodeElement(n[r].id);i&&(i.style.opacity=1)}}},C=function(e){if(h){var n=u._getClientXY(e),r=e.target;u.isMobile()&&(r=document.elementFromPoint(n.x,n.y)),n.x+=x.x*d,n.y+=x.y*d;var i=u._getOffsetXY(s.element,e),c={left:s.width()-(i.x+s.config.padding)<0,right:i.x-s.config.padding<0,up:s.height()-(i.y+s.config.padding)<0,down:i.y-s.config.padding<0};if(c.left||c.right||c.up||c.down){m.classList&&(m.classList.remove(`boc-cursor-grab`),m.classList.add(`boc-cursor-move`),m.classList.remove(`boc-cursor-nodrop`),m.classList.remove(`boc-cursor-copy`));var l=v[4],g=v[5],C=h.x,T=h.y,E=n.x,D=n.y;s.moveStart(c,function(e){v[4]=l+e.x,v[5]=g+e.y,h.x=C-e.xWithoutScale,h.y=T-e.yWithoutScale,n.x=E-e.xWithoutScale,n.y=D-e.yWithoutScale,_.setAttribute(`transform`,`matrix(`+v.toString()+`)`)})}else{for(s.moveEnd(),m.classList&&(m.classList.add(`boc-cursor-grab`),m.classList.remove(`boc-cursor-move`),m.classList.remove(`boc-cursor-nodrop`),m.classList.remove(`boc-cursor-copy`)),S(f,p),f=null,p=null;r!=null&&r!=m;){if(r.hasAttribute&&r.hasAttribute(u.attr.node_id)){var O=r.getAttribute(u.attr.node_id);f=O,p=r;break}r=r.parentNode}if(f!=null){p.classList.add(`boc-drag-over`);for(var k=s.getNode(f),A=u.getStParentNodes(k),j=0;j<A.length;j++){var M=s.getNodeElement(A[j].id);M&&(M.style.opacity=.1)}m.classList.remove(`boc-cursor-grab`),m.classList.remove(`boc-cursor-move`),m.classList.add(`boc-cursor-copy`),m.classList.remove(`boc-cursor-nodrop`)}var N=(n.x-h.x)/d,P=(n.y-h.y)/d;v[4]=y+N,v[5]=b+P,!t._dragEventFired&&(Math.abs(n.x-h.x)>u.FIRE_DRAG_NOT_CLICK_IF_MOVE||Math.abs(n.y-h.y)>u.FIRE_DRAG_NOT_CLICK_IF_MOVE)&&(s._gragStartedId=t.parentNode.getAttribute(u.attr.control_node_circle_menu_wrraper_id),u.events.publish(`drag`,[s.nodeCircleMenuUI,{from:O,menuItem:o,menuItemName:a}])===!1&&w(),t._dragEventFired=!0),_.setAttribute(`transform`,`matrix(`+v.toString()+`)`)}}},w=function(e){if(s.moveEnd(),m.classList&&(m.classList.remove(`boc-cursor-grab`),m.classList.remove(`boc-cursor-move`),m.classList.remove(`boc-cursor-nodrop`),m.classList.remove(`boc-cursor-copy`)),m.removeEventListener(r.move,C),m.removeEventListener(r.up,w),r.leave&&m.removeEventListener(r.leave,w),l.id==f||f==null){m.removeChild(_),s._gragStartedId=null,t._dragEventFired&&u.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,menuItemName:a,menuItem:o,event:e}]);return}var n=s.getNode(f);u.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,to:n.id,menuItem:o,menuItemName:a,event:e}]),S(f,p),m.removeChild(_),s._gragStartedId=null};m.addEventListener(r.move,C),m.addEventListener(r.up,w),r.leave&&m.addEventListener(r.leave,w)},u.prototype._nodeMouseDownHandler=function(e,t,n){var r=e.getAttribute(u.attr.node_id),i=this.getNode(r);this.config.movable&&!u.getRootOf(i).stParent?this._movableHandler(e,t,n):this.config.enableDragDrop&&this._dragDropHandler(e,t,n)},u.prototype._resizeHandler=function(e,t){if(this.isVisible&&!(e==0||t==0)){var n=this.getViewBox();if(n){n=n.slice(0);var r=e/n[2],i=t/n[3];Math.abs(this._lastSize.width-e)>Math.abs(this._lastSize.height-t)?n[3]=t/r:n[2]=e/i,this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),this.setViewBox(n),this.xScrollUI.create(e),this.yScrollUI.create(t),this._draw(!0,u.action.resize)}}},u.prototype._nodeDbClickHandler=function(e,t){if(u.events.publish(`dbclick`,[this,this.get(e)])===!1)return!1;this._commonClickHandler(e,t,this.config.nodeMouseDbClick)},u.prototype._nodeClickHandler=function(e,t){if(u.events.publish(`click`,[this,{node:this.getNode(e),event:t}])===!1)return!1;if(this.powerPointPreviewUI.isVisible()&&this.powerPointPreviewUI.selectedPage!=null){this.powerPointPreviewUI.selectedPage.content=void 0,this.powerPointPreviewUI.selectedPage.nodeId=e,this.powerPointPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.pdfPreviewUI.isVisible()&&this.pdfPreviewUI.selectedPage!=null){this.pdfPreviewUI.selectedPage.content=void 0,this.pdfPreviewUI.selectedPage.nodeId=e,this.pdfPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.svgPreviewUI.isVisible()&&this.svgPreviewUI.selectedPage!=null){this.svgPreviewUI.selectedPage.content=void 0,this.svgPreviewUI.selectedPage.nodeId=e,this.svgPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}if(this.pngPreviewUI.isVisible()&&this.pngPreviewUI.selectedPage!=null){this.pngPreviewUI.selectedPage.content=void 0,this.pngPreviewUI.selectedPage.nodeId=e,this.pngPreviewUI.refresh(e),this.ripple(e,t.clientX,t.clientY);return}var n=this.getNodeElement(e);if(n&&n._dragEventFired){n._dragEventFired=!1;return}this._commonClickHandler(e,t,this.config.nodeMouseClick)},u.prototype._nodeCircleMenuItemClickHandler=function(e,t){var n=e.parentNode.getAttribute(u.attr.control_node_circle_menu_wrraper_id),r=e.getAttribute(u.attr.control_node_circle_menu_name),i=this.nodeCircleMenuUI._menu[r];u.events.publish(`click`,[this.nodeCircleMenuUI,{nodeId:n,menuItemName:r,menuItem:i,event:t}])},u.prototype._nodeCircleMenuClickHandler=function(e){if(u.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.menuUI.hide(),this.nodeContextMenuUI.isVisible())this.nodeContextMenuUI.hide();else{var t=this.getNode(e),n=null;if(Array.isArray(t.tags))for(var r=0;r<t.tags.length;r++){var i=t.tags[r];this.config.tags[i]&&this.config.tags[i].nodeCircleMenu&&(n=this.config.tags[i].nodeCircleMenu)}this.nodeCircleMenuUI.show(e,n)}},u.prototype._commonClickHandler=function(e,t,n){if(u.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),n==u.action.expandCollapse&&this.toggleExpandCollapse(e,t),n==u.action.edit){var r=this.getNode(e);r&&(this.editUI.show(r.id),this.ripple(r.id,t.clientX,t.clientY))}if(n==u.action.details){var r=this.getNode(e);r&&(this.editUI.show(r.id,!0),this.ripple(r.id,t.clientX,t.clientY))}},u.prototype._menuHandlerMouseDownHandler=function(e,t){t.stopPropagation(),t.preventDefault()},u.prototype._nodeMenuClickHandler=function(e,t,n){u.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var r=this.getNode(e),i=null;if(Array.isArray(r.tags))for(var a=0;a<r.tags.length;a++){var o=r.tags[a];this.config.tags[o]&&this.config.tags[o].nodeMenu&&(i=this.config.tags[o].nodeMenu)}this.nodeMenuUI.showStickIn(t,e,null,i)},u.prototype._menuClickHandler=function(e,t){t.stopPropagation(),t.preventDefault(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.show(e.offsetLeft,e.offsetTop)},u.prototype._lonelyButtonHandler=function(){var e={id:this.generateId()};this.addNode(e,null,!0)!==!1&&this.center(e.id)},u.prototype.toggleExpandCollapse=function(e,t){var n=this.getNode(e),r=this.getCollapsedIds(n);if(r.length){var i=u.events.publish(`expcollclick`,[this,!1,e,r]);if(i===!1)return!1;this.expand(e,r,!1)}else{var i=u.events.publish(`expcollclick`,[this,!0,e,n.childrenIds]);if(i===!1)return!1;this.collapse(e,n.childrenIds,!1)}t&&this.ripple(n.id,t.clientX,t.clientY)},u.prototype._clickHandler=function(e,t){if(!(t.button>0)){for(var n=t.target;n!=e;){if(n.hasAttribute(u.attr.control_expcoll_id)){var r=n.getAttribute(u.attr.control_expcoll_id),i=this.getNode(r);this._expCollHandler(i.id);return}if(n.hasAttribute(u.attr.node_id)){var r=n.getAttribute(u.attr.node_id),i=this.getNode(r);this._nodeClickHandler(i.id,t);return}if(n.hasAttribute(u.attr.control_node_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(u.attr.control_node_menu_id),i=this.getNode(r);this._nodeMenuClickHandler(i.id,n,t);return}if(n.hasAttribute(u.attr.control_node_circle_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(u.attr.control_node_circle_menu_id);this._nodeCircleMenuClickHandler(r);return}if(n.hasAttribute(u.attr.control_node_circle_menu_name)){t.stopPropagation(),this._nodeCircleMenuItemClickHandler(n,t);return}if(n.hasAttribute(u.attr.control_add)){this._lonelyButtonHandler();return}if(n.hasAttribute(u.attr.control_up_id)){var r=n.getAttribute(u.attr.control_up_id);t.stopPropagation(),t.preventDefault(),this._upHandler(r);return}if(n.hasAttribute(u.attr.c_link_from)){u.events.publish(`clink-click`,[this,{from:n.getAttribute(u.attr.c_link_from),to:n.getAttribute(u.attr.c_link_to),event:t}]);return}if(n.hasAttribute(u.attr.s_link_from)){u.events.publish(`slink-click`,[this,{from:n.getAttribute(u.attr.s_link_from),to:n.getAttribute(u.attr.s_link_to),event:t}]);return}if(n.hasAttribute(`data-ctrl-n-dotted-close`)){var r=n.getAttribute(`data-ctrl-n-dotted-close`);this.minimize(r);return}if(n.hasAttribute(`data-ctrl-n-dotted-open`)){var r=n.getAttribute(`data-ctrl-n-dotted-open`);this.maximize(r);return}n=n.parentNode}u.events.publish(`canvas-click`,[this,{event:t}])}},u.prototype._mouseDownHandler=function(e,t,n,r){var i=this;u.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide();var a=this.getViewBox(),o=this.getScale(),s=u._getClientTouchesXY(t,0),c=u._getClientTouchesXY(t,1),l={diffX:0,diffY:0,x0:s.x,y0:s.y,type:this.config.enablePan?`pan`:`pan-not-enabled`,viewBoxLeft:a[0],viewBoxTop:a[1],time:Date.now()};t.touches&&t.touches.length>1&&(l.type=`pinch`,l.dist=Math.sqrt((s.x-c.x)*(s.x-c.x)+(s.y-c.y)*(s.y-c.y)));var d=null;if(r){var f=r.stChildren[0].lcn?r.stChildren[0].lcn:`base`;d=i.manager.layoutConfigs[f],l.scrollTop=r.treeList.scrollTop}var p=0,m=function(e){var t=u._getClientTouchesXY(e,0);if(l&&l.type==`pan`){clearTimeout(i._timeout),l.diffX=t.x-l.x0,l.diffY=t.y-l.y0,p=Math.max(Math.abs(l.diffY),Math.abs(l.diffX));var n=-(l.diffY/o)+l.viewBoxTop,s=-(l.diffX/o)+l.viewBoxLeft;p>3&&(r?(r.treeList.scrollTop=l.scrollTop-l.diffY/o,i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdate(r,d)):(i._hideBeforeAnimation(),i._changeCursorOnPanStart(a,o,e),i._move(n,s,a)))}else if(l&&l.type==`pinch`){var c=u._getClientTouchesXY(e,1),f=Math.sqrt((t.x-c.x)*(t.x-c.x)+(t.y-c.y)*(t.y-c.y)),m=1+(f-l.dist)/(l.dist/100)/100;l.dist=f;var h=u._pinchMiddlePointInPercent(i.element,i.width(),i.height(),e);i.zoom(m,h)}},h=function(t){if(p<3&&l.type!=`pinch`&&(t.touches==null||t.touches.length<=1))i._clickHandler(e,t);else if(l.type==`pan`&&r){var a=Date.now()-l.time,o=Math.abs(p/a);if(o>.5){var s=r.treeList.scrollTop,c=s+o*400*(l.diffY>0?-1:1),f=r.stChildren[0].h;c=Math.round(c/f)*f,c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=u.animate(null,{},{},1500,u.anim.outExp,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,d.orientation)}))}else{var s=r.treeList.scrollTop,f=r.stChildren[0].h,c=Math.round(r.treeList.scrollTop/f)*f;c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=u.animate(null,{},{},200,u.anim.outSin,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,d.orientation)}))}}else l.type==`pan`&&!r&&p>10&&i._draw(!0,u.action.pan);l.type==`pan`&&!r&&i._changeCursorOnPanEnd(),l=null,e.removeEventListener(n.move,m),e.removeEventListener(n.up,h),n.leave&&e.removeEventListener(n.leave,h),n.touchstart&&e.removeEventListener(n.touchstart,h)};e.addEventListener(n.move,m,{passive:!0}),e.addEventListener(n.up,h),n.leave&&e.addEventListener(n.leave,h),n.touchstart&&e.addEventListener(n.touchstart,h,{passive:!0})},u.prototype._changeCursorOnPanStart=function(e,t,n){var r=this.getPointerElement();if(r){var i=u._getOffsetXY(this.element,n),a=i.x/t+e[0]-16/t,o=i.y/t+e[1]-16/t;r.style.display=`inherit`,r.setAttribute(`transform`,`matrix(0,0,0,0,`+a+`,`+o+`)`),u.animate(r,{transform:[0,0,0,0,a,o],opacity:0},{transform:[1/t,0,0,1/t,a,o],opacity:1},300,u.anim.outBack)}else this.element.style.cursor=`move`},u.prototype._changeCursorOnPanEnd=function(){var e=this.getPointerElement();e?e.style.display=`none`:this.element.style.cursor=`initial`},u.prototype._move=function(e,t,n){n[0]=t,n[1]=e,this.setViewBox(n),this.xScrollUI.setPosition(),this.yScrollUI.setPosition()},u.prototype.moveStart=function(e,t,n,r){if(!e){console.error(`movePosition parameter not defined`);return}if(this._moveInterval)return;var i=this,a=this.getViewBox().slice(0),o=this.getScale(),s=0,c=0,l=10,d=1,f=1;u.isNEU(n)&&(n=u.anim.inSin),u.isNEU(r)&&(r=3e3);function p(){var p={x:0,y:0,xWithoutScale:0,yWithoutScale:0};e.left?(s++,p.x=s*u.MOVE_STEP/o,p.xWithoutScale=s*u.MOVE_STEP):e.right&&(s++,p.x=-(s*u.MOVE_STEP)/o,p.xWithoutScale=-(s*u.MOVE_STEP)),e.up?(c++,p.y=c*u.MOVE_STEP/o,p.yWithoutScale=c*u.MOVE_STEP):e.down&&(c++,p.y=-(c*u.MOVE_STEP)/o,p.yWithoutScale=-(c*u.MOVE_STEP));var m=n((f*l-l)/r);p.x*=m,p.xWithoutScale*=m,p.y*=m,p.yWithoutScale*=m,i.setViewBox([a[0]+p.x,a[1]+p.y,a[2],a[3]]),t&&t(p),f+=d}this._moveInterval=setInterval(p,l)},u.prototype.moveEnd=function(){this._moveInterval&&=(clearInterval(this._moveInterval),null)},u===void 0&&(u={}),u.node=function(e,t,n,r){this.templateName=r,this.id=e,this.pid=t,this.children=[],this.childrenIds=[],this.parent=null,this.stpid=null,this.stParent=null,this.stChildren=[],this.stChildrenIds=[],this.tags=n,this.childCount=0,this.collapsedChildCount=0,this.deepCollapsedChildCount=0,this.deepChildCount=0,this.tags||=[]},u===void 0&&(u={}),u.idb={version:1,dbName:`BALKAN`,tableName:`orgchart-js`,keyPath:`id`},u.idb.db=null,u.idb._open=function(e){if(u._browser().msie){e&&e(!1);return}if((navigator.userAgent.toLowerCase().indexOf(`safari`)>0||navigator.userAgent.toLowerCase().indexOf(`firefox`)>0)&&window.location!==window.parent.location){e&&e(!1);return}if(!window.indexedDB){console.error(`Your browser doesn't support a stable version of IndexedDB.`),e&&e(!1);return}if(u.idb.db!=null){e&&e(!0);return}var t=indexedDB.open(u.idb.dbName,u.idb.version);t.onerror=function(t){console.error(`Cannot open database!`),e&&e(!1)},t.onsuccess=function(t){u.idb.db=t.target.result,e&&e(!0)},t.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(u.idb.tableName)&&t.deleteObjectStore(u.idb.tableName),t.createObjectStore(u.idb.tableName,{keyPath:u.idb.keyPath})}},u.idb.read=function(e,t){u.idb._open(function(n){if(n){var r=u.idb.db.transaction([u.idb.tableName]).objectStore(u.idb.tableName).get(e);r.onerror=function(e){console.error(`Unable to retrieve data from database!`),t&&t(!1)},r.onsuccess=function(e){r.result?t&&t(!0,r.result):t&&t(null)}}else t&&t(!1)})},u.idb.write=function(e,t){u.idb.read(e.id,function(n){if(n==null){var r=u.idb.db.transaction([u.idb.tableName],`readwrite`).objectStore(u.idb.tableName).add(e);r.onerror=function(e){console.error(`Unable to add data to database!`),t&&t(!1)},r.onsuccess=function(e){t&&t(!0)}}else t&&t(n)})},u.idb.put=function(e,t){u.idb._open(function(n){if(n){var r=u.idb.db.transaction([u.idb.tableName],`readwrite`).objectStore(u.idb.tableName).put(e);r.onerror=function(e){console.error(`Unable to put data to database!`),t&&t(!1)},r.onsuccess=function(e){t&&t(!0)}}else t&&t(!1)})},u.idb.delete=function(e,t){u.idb._open(function(n){if(n){var r=u.idb.db.transaction([u.idb.tableName],`readwrite`).objectStore(u.idb.tableName).delete(e);r.onerror=function(e){console.error(`Unable to retrieve data from database!`),t&&t(!1)},r.onsuccess=function(e){r.error?t&&t(!1):t&&t(!0)}}else t&&t(!1)})},u===void 0&&(u={}),u.manager=function(e){this.config=e.config,this.layoutConfigs=e._layoutConfigs,this.visibleNodeIds=[],this.viewBox=null,this.action=null,this.actionParams=null,this.nodes={},this.oldNodes={},this.maxX=null,this.maxY=null,this.minX=null,this.minY=null,this.bordersByRootIdAndLevel=null,this.roots=null,this.state=null,this.vbIsInitializedFromState=!1,this.rootList=[],this.instance=e,this._fixAdjustForExport={x:0,y:0}},u.manager.prototype.read=function(e,t,n,r,i,a,o,s){var c=this;u.state._get(this.config.state,t,n,function(l){c.state=l,c.action=i,c.actionParams=a,i!=u.action.init||!c.state||a&&a.method&&a.method==`fit`?(c.viewBox=r,c.vbIsInitializedFromState=!1):(c.viewBox=c.state.vb,c.vbIsInitializedFromState=!0,Array.isArray(c.state.roots)&&(c.config.roots=c.state.roots));var d=c.maxX,f=c.maxY,p=c.minX,m=c.minY,h=c.bordersByRootIdAndLevel,g=c.roots,_=c.nodes;if(!e)_?c.oldNodes=_:c.oldNodes=null,c._read(function(e){d=e.maxX,f=e.maxY,p=e.minX,m=e.minY,h=e.bordersByRootIdAndLevel,g=e.roots,_=e.nodes;var r=u.manager._getResponse(t,n,c.visibleNodeIds,c.config,d,f,p,m,c.viewBox,g,c.action,c.actionParams,_,c.oldNodes,c.vbIsInitializedFromState);r.notif=e.limit,r.roots=g,r.bordersByRootIdAndLevel=h,r.adjustify=e.adjustify,i!=u.action.exporting&&(c.maxX=d,c.maxY=f,c.minX=p,c.minY=m,c.roots=g,c.nodes=_,c.visibleNodeIds=r.visibleNodeIds,c.bordersByRootIdAndLevel=h,c.rootList=e.rootList),o(r)},s);else{var v=u.manager._getResponse(t,n,c.visibleNodeIds,c.config,d,f,p,m,c.viewBox,g,c.action,c.actionParams,_,c.oldNodes,c.vbIsInitializedFromState);i!=u.action.exporting&&(c.maxX=d,c.maxY=f,c.minX=p,c.minY=m,c.roots=g,c.nodes=_,c.visibleNodeIds=v.visibleNodeIds),v.bordersByRootIdAndLevel=h,v.roots=g,v.adjustify={x:0,y:0},c.state&&(v.adjustify=c.state.adjustify),o(v)}})},u.manager.prototype._read=function(e,t){var n=this,r=u.manager._createNodes(this.instance);t(r);var i=r.nodes,a=r.roots,o=u.remote;o??=u.local,o._setPositions(a,n.layoutConfigs,function(t){var o=u.manager._doNotChangePositionOfClickedNodeIfAny(a,i,n.action,n.actionParams,n.oldNodes,n.config.orientation);n.state&&n.action==u.action.init&&(o=n.state.adjustify),n.action==u.action.exporting?o=n._fixAdjustForExport:n._fixAdjustForExport=o;for(var s={minX:null,minY:null,maxX:null,maxY:null},c={},l=[],d=0;d<a.length;d++)u.manager._setMinMaxXYAdjustifyIterate(a[d],a[d],s,0,c,o,n.config.orientation,l);for(var d=0;d<a.length;d++)u.manager._setChildCountPropsIterate(a[d],i);for(var f in l)for(var p in l[f]){var m=c[f][p],h=l[f][p];m.minX==null&&m.minY==null&&m.maxX==null&&m.maxY==null&&u._setMinMaxXY(h,m,!0)}e({minX:s.minX,minY:s.minY,maxX:s.maxX,maxY:s.maxY,bordersByRootIdAndLevel:c,nodes:i,roots:a,rootList:r.rootList,limit:t,adjustify:o})},i)},u===void 0&&(u={}),u.manager._initDinamicNode=function(e,t,n){t&&(e.lcn=t),n&&(e.isAssistant=!0);var r=u.t(e.templateName);e.w=r&&r.size?r.size[0]:0,e.h=r&&r.size?r.size[1]:0,e.isSplit=e.templateName==`split`,e.isMirror=e.templateName==`mirror`,e.isSubLevel=e.templateName==`subLevel`},u.manager._setCollpasedProperty=function(e,t,n,r,i,a,o,s){if(e.collapsed==null&&t.collapse&&t.collapse.allChildren?e.collapsed=!0:e.collapsed??=!1,i==u.action.expand&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!1),i==u.action.collapse&&(n.expandIds||n.collapseIds)?n.expandIds&&n.expandIds.indexOf(e.id)!=-1?e.collapsed=!1:n.collapseIds&&n.collapseIds.indexOf(e.id)!=-1&&(e.collapsed=!0):i==u.action.collapse&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!0),i==u.action.expand&&n.ids==`all`&&(e.collapsed=!1),i==u.action.exporting&&(!u.isNEU(n.parentLevels)||!u.isNEU(n.childLevels))&&n.id!=null){if(n.id!=null&&(!u.isNEU(n.parentLevels)||!u.isNEU(n.childLevels))){var c=s[n.id];if(c==e)e.collapsed=!1;else{for(var l=!1,d=-1,f=!1,p=-1;c;){if(d++,c==e){l=!0;break}c=s[c.pid]}c=s[n.id];for(var m=s[e.id];m;){if(p++,m==c){f=!0;break}m=s[m.pid]}n.parentLevels!=null&&l&&d<=n.parentLevels||n.childLevels!=null&&f&&p<=n.childLevels||f&&n.expandChildren?e.collapsed=!1:e.collapsed=!0}}}else i==u.action.exporting&&n.expandChildren&&(e.collapsed=!1);i==u.action.init&&o!=null?e.collapsed=!o.exp.has(e.id):i==u.action.init?e.tags.indexOf(`left-partner`)!=-1||e.tags.indexOf(`right-partner`)!=-1||e.tags.indexOf(`partner`)!=-1||e.parentPartner?e.collapsed=t.collapse&&a>=t.collapse.level&&r.indexOf(e.id)==-1:e.collapsed=t.collapse&&a>=t.collapse.level-1&&r.indexOf(e.id)==-1:i==u.action.centerNode||i==u.action.insert||i==u.action.expand||i==u.action.collapse?r.has(e.id)&&(e.collapsed=!1):i==u.action.update&&n&&n.changeRoots&&n.changeRoots.has(e.id)&&(e.collapsed=!1)},u.manager._initNode=function(e,t,n,r,i,a,o){var s=o.manager.config,c=o.manager.layoutConfigs,l=o.manager.action,d=o.manager.actionParams,f=o.manager.state,p=c[n||`base`];e.parent??u.manager._setCollpasedProperty(e,p,d,i,l,r-1,f,t);for(var m=0;m<e.childrenIds.length;m++){var h=t[e.childrenIds[m]];if(u.manager._setCollpasedProperty(h,p,d,i,l,r,f,t),h.collapsed)e.collapsedChildCount++;else{if(h.parent=e,h.ppid!=null){var g=t[h.ppid];g&&(h.parentPartner=g)}(h.tags.indexOf(`left-partner`)!=-1||h.tags.indexOf(`right-partner`)!=-1||h.tags.indexOf(`partner`)!=-1||h.parentPartner)&&a.indexOf(e.id)==-1&&a.push(e.id),e.children.push(h)}}if(l==u.action.minimize&&!e.min?(d.all||d.id==e.id)&&(e.min=!0):l==u.action.maximize&&e.min===!0?(d.all||d.id==e.id)&&(e.min=!1):l==u.action.exporting&&d.min===!1?e.min=!1:l==u.action.init&&f!=null&&(e.min=f.min.has(e.id)),!e.min&&(!e.tags||!e.tags.has(`filter`)))for(var m=0;m<e.stChildrenIds.length;m++){var h=t[e.stChildrenIds[m]];h.stParent=e,e.stChildren.push(h)}r!=null&&(e.level=r),n&&(e.lcn=n);var _=u._getSubLevels(e.tags,s.tags);_>0&&(e.subLevels=_),e.tags.indexOf(`assistant`)!=-1&&e.parent!=null&&(e.isAssistant=!0),p.layout==u.layout.treeList&&(e.isTreeListItem=!0),p.template&&s.template==e.templateName&&(e.templateName=p.template);var v=u.t(e.templateName,e.min);if(e.w=v&&v.size?v.size[0]:0,e.h=v&&v.size?v.size[1]:0,e.padding=v&&v.padding?v.padding:[0,0,0,0],e.isTreeListItem&&e.stParent&&e.stParent.treeList==null){var y=u.t(e.stParent.templateName,e.stParent.min);e.stParent.treeList={pinnedIds:[],scrollTop:0,scrollTopMax:0,maxHeight:y.treeListMaxHeight}}var b={node:e};u.events.publish(`node-initialized`,[o,b])},u.manager._iterate=function(e,t,n,r,i,a,o,s,c,l,d,f){var p=f.manager.layoutConfigs;if(u.manager._initNode(t,n,c,r,l,d,f),t.isAssistant&&(a[t.pid]||(a[t.pid]=[]),a[t.pid].push(t.id)),t.subLevels>0&&o.push(t.id),u.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN&&!t.isAssistant&&t.parent){if(t.parent&&t.parent.children.length&&t.parent.children[t.parent.children.length-1]==t){for(var m=[],h=0,g=0,_=0;_<t.parent.children.length;_++){var v=t.parent.children[_];v.tags.indexOf(`partner`)==-1&&v.tags.indexOf(`left-partner`)==-1&&v.tags.indexOf(`right-partner`)==-1&&v.tags.indexOf(`assistant`)==-1&&v.children.length==0?m.push(v.id):v.tags.indexOf(`assistant`)==-1?(v.tags.indexOf(`partner`)!=-1||v.tags.indexOf(`left-partner`)!=-1||v.tags.indexOf(`right-partner`)!=-1)&&g++:h++}(u.MIXED_LAYOUT_ALL_NODES&&m.length>1&&m.length==t.parent.children.length-h-g||!u.MIXED_LAYOUT_ALL_NODES&&m.length>1)&&(s[t.pid]=m)}}else if(!t.isAssistant&&t.childrenIds.length==0&&t.parent&&!s[t.pid]){for(var m=[],h=0,g=0,_=0;_<t.parent.children.length;_++){var v=t.parent.children[_];v.tags.indexOf(`partner`)==-1&&v.tags.indexOf(`left-partner`)==-1&&v.tags.indexOf(`right-partner`)==-1&&v.tags.indexOf(`assistant`)==-1&&v.childrenIds.length==0?m.push(v.id):v.tags.indexOf(`assistant`)==-1?(v.tags.indexOf(`partner`)!=-1||v.tags.indexOf(`left-partner`)!=-1||v.tags.indexOf(`right-partner`)!=-1)&&g++:h++}(u.MIXED_LAYOUT_ALL_NODES&&m.length>u.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&m.length==t.parent.childrenIds.length-h-g||!u.MIXED_LAYOUT_ALL_NODES&&m.length>u.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)&&(s[t.pid]=m)}t.stChildren.length&&(e.stContainerNodes||=[],e.stContainerNodes.push(t));for(var y=0;y<t.stChildren.length;y++){for(var b=``,_=0;_<t.tags.length;_++)if(p[t.tags[_]]){b=t.tags[_];break}i.push(t.stChildren[y].id),u.manager._iterate(e,t.stChildren[y],n,0,i,a,o,s,b,l,d,f)}r++;for(var y=0;y<t.children.length;y++)t.isTreeListItem&&(t.children[y].isTreeListItem=t.isTreeListItem),u.manager._iterate(e,t.children[y],n,r,i,a,o,s,c,l,d,f)},u.manager.__createNodes=function(e,t,n,r,i,a,o,s){for(var c=[],l=u._addDottedLines(n),d=0;d<l.length;d++){var f=l[d],p=u.STRING_TAGS?f.tags?f.tags.split(`,`):[]:Array.isArray(f.tags)?f.tags.slice(0):[];s.filterUI.addFilterTag(f)&&p.unshift(`filter`);var m=s.searchUI.addMatchTag(f.id);m===!0?p.unshift(`match`):m===!1&&p.unshift(`no-match`);var h=u._getTemplate(p,n.tags,n.template),g=new u.node(f.id,f.pid,p,h);u.isNEU(f.ppid)||(g.ppid=f.ppid),u.isNEU(f.stpid)||(g.stpid=f.stpid),f.movex!=null&&(g.movex=f.movex),f.movey!=null&&(g.movey=f.movey),e[f.id]=g,c.push(f.id)}if(n.orderBy!=null){var _=u.manager._getOrderSortArray(n.orderBy);c.sort(function(e,t){var n,r;for(var i of l)if(i.id==e&&(n=i),i.id==t&&(r=i),n&&r)break;for(var a=0;a<_.length;a++){var o=n[_[a].field],s=r[_[a].field],c=o,u=s;if(c??=``,u??=``,typeof c==`string`&&typeof u==`string`){var d=c.localeCompare(u);if(_[a].desc&&(d*=-1),d!==0)return d}else{var d=o<s?-1:o>s?1:0;if(_[a].desc&&(d*=-1),d!==0)return d}}})}for(var d=0;d<c.length;d++){var v=c[d],g=e[v],y=a?a[v]:null,b=e[g.stpid],x=e[g.pid];if(b||(g.stpid=null),x||(g.pid=null),b){var S=a?a[b.id]:null;S&&(b.min=S.min),b.stChildrenIds.push(g.id)}else x?(y&&(g.collapsed=y.collapsed,g.min=y.min,g.treeList=y.treeList),x.childrenIds.push(g.id)):(y&&(g.collapsed=y.collapsed,g.min=y.min,g.treeList=y.treeList),t.push(g),o.push(g.id));r==u.action.init&&(g.min=u._getMin(g,n))}},u.manager._createNodes=function(e){var t=e.manager.config,n=e.manager.layoutConfigs,r=e.manager.action,i=e.manager.actionParams,a=e.manager.oldNodes,o=e.manager.state,s={},c=[],l=[];if(u.manager.__createNodes(s,c,t,r,i,a,l,e),t.roots!=null){c=[];for(var d=0;d<t.roots.length;d++){var f=s[t.roots[d]];if(f&&r==u.action.centerNode){for(var p=f;p.pid!=null||p.stpid!=null;)p=p.pid==null&&p.stpid!=null?s[p.stpid]:s[p.pid];for(var m=s[i.id];(m.pid!=null||m.stpid!=null)&&m!=f;)m=m.pid==null&&m.stpid!=null?s[m.stpid]:s[m.pid];p==m&&(f=p)}if(f){for(var h=!1,g=0;g<c.length;g++)if(c[g].id==f.id){h=!0;break}if(!h){if(!u.isNEU(f.pid)){var _=s[f.pid],v=_.childrenIds.indexOf(f.id);v>-1&&_.childrenIds.splice(v,1)}c.push(f)}}}t.roots=[];for(var d=0;d<c.length;d++)t.roots.push(c[d].id)}if(r==u.action.exporting&&i.id!=null)if(i.parentLevels){for(var _=s[i.id],y=0;y<i.parentLevels&&s[_.pid];)y++,_=s[_.pid];_.pid=null,c=[_]}else{var b=s[i.id];b&&(b.pid=null,c=[b])}var x=[];if(r==u.action.init&&t.expand&&t.expand.nodes&&o==null)for(var d=0;d<t.expand.nodes.length;d++){var b=s[t.expand.nodes[d]];for(t.expand.allChildren===!0&&u.manager._addExpandedNodeIdsIterate(b,s,x);b;)x.push(b.id),b.pid==null&&b.stpid!=null?(b=s[b.stpid],b.min=!1):b=s[b.pid]}else if(r==u.action.expand&&i.ids&&i.ids!=`all`||r==u.action.collapse&&i&&i.expandIds)for(var S=r==u.action.expand?i.ids:i.expandIds,d=0;d<S.length;d++)for(var b=s[S[d]],_=s[b.pid];_;)x.push(_.id),_.pid==null&&_.stpid!=null?(_=s[_.stpid],_.min=!1):_=s[_.pid];else if(r==u.action.centerNode){for(var C=u._getCenterNodeFromParams(s,i);C;){if(x.push(C.id),i.options.parentState===u.COLLAPSE_PARENT_NEIGHBORS&&C)for(var d=0;d<C.childrenIds.length;d++){var w=s[C.childrenIds[d]];w.collapsed=!0}if(C.pid==null&&C.stpid!=null){if(C=s[C.stpid],C.min=!1,C.tags){var v=C.tags.indexOf(`filter`);v!=-1&&(C.tags.splice(v,1),e.filterUI._removeFilter(C.id))}}else C=s[C.pid]}if(C=u._getCenterNodeFromParams(s,i),i.options.childrenState===u.COLLAPSE_SUB_CHILDRENS)for(var d=0;d<C.childrenIds.length;d++){var T=s[C.childrenIds[d]];T.collapsed=!1;for(var E=0;E<T.childrenIds.length;E++){var D=s[T.childrenIds[E]];D.collapsed=!0}}if(i.options.parentState===u.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED){var _=s[C.pid];if(_)for(var d=0;d<_.childrenIds.length;d++){var T=s[_.childrenIds[d]];if(T!=C){T.collapsed=!1;for(var E=0;E<T.childrenIds.length;E++){var D=s[T.childrenIds[E]];D.collapsed=!0}}}}}else if(r==u.action.insert)for(var b=s[i.insertedNodeId];b;)x.push(b.id),b.pid==null&&b.stpid!=null?(b=s[b.stpid],b.min=!1):b=s[b.pid];for(var O=[],k={},A=[],j={},M=[],d=0;d<c.length;d++)u.manager._iterate(c[d],c[d],s,0,O,k,A,j,``,x,M,e);if(r==u.action.collapse&&i&&Array.isArray(i.expandIds)&&Array.isArray(i.collapseIds))for(var d=0;d<i.ids.length;d++)if(i.expandIds.has(i.collapseIds[d]))console.error(`id ${i.collapseIds[d]} exist in both collapseIds and expandIds`);else{var b=s[i.collapseIds[d]];b&&(b.collapsed=!0)}for(var d=c.length-1;d>=0;d--)c[d].collapsed&&c.splice(d,1);for(var d=0;d<M.length;d++){for(var b=s[M[d]],N=[],P=[],F=[],I={},ee=0,L=0,R=0,te=[],ne=[],E=0;E<b.children.length;E++){var w=b.children[E];w.isAssistant?N.push(w.id):w.tags.indexOf(`right-partner`)==-1?w.tags.indexOf(`left-partner`)==-1?w.tags.indexOf(`partner`)!=-1&&!(ee%2)?(w.isPartner=1,w.children=[],P.push(w.id),ee++):w.tags.indexOf(`partner`)!=-1&&ee%2?(w.isPartner=2,w.children=[],F.push(w.id),ee++):w.parentPartner?(I[w.parentPartner.id]||(I[w.parentPartner.id]=[]),I[w.parentPartner.id].push(w.id)):N.push(w.id):(w.isPartner=2,w.children=[],F.push(w.id)):(w.isPartner=1,w.children=[],P.push(w.id))}b.children=[];for(var re=[],E=0;E<P.length;E++){var w=s[P[E]];I[w.id]?b.children.push(w):b.children.splice(0,0,w);for(var ie=0;ie<w.childrenIds.length;ie++)re.push(w.childrenIds[ie])}for(var ae=[],E=0;E<F.length;E++){var w=s[F[E]];I[w.id]?b.children.push(w):b.children.splice(0,0,w);for(var ie=0;ie<w.childrenIds.length;ie++)ae.push(w.childrenIds[ie])}for(var E=0;E<ae.length;E++){var w=s[ae[E]];w.collapsed||(w.parentPartner=w.parent,w.parent=b,w.isChildOfPartner=!0,b.children.push(w))}for(var E=F.length-1;E>=0;E--)if(I[F[E]])for(var g=0;g<I[F[E]].length;g++)b.children.push(s[I[F[E]][g]]),L++,ne.indexOf(F[E])==-1&&ne.push(F[E]);for(var E=0;E<N.length;E++){var w=s[N[E]];b.children.push(w)}for(var E=0;E<P.length;E++)if(I[P[E]])for(var g=0;g<I[P[E]].length;g++)b.children.push(s[I[P[E]][g]]),R++,te.indexOf(P[E])==-1&&te.push(P[E]);for(var E=0;E<re.length;E++){var w=s[re[E]];w.collapsed||(w.parentPartner=w.parent,w.parent=b,w.isChildOfPartner=!0,b.children.push(w))}b.partnerSeparation=Math.max(ne.length,te.length)*t.partnerChildrenSplitSeparation+t.minPartnerSeparation,!N.length&&L&&!R?b.hasPartners=2:!N.length&&!L&&R?b.hasPartners=3:!N.length&&L==1&&R==1?b.hasPartners=4:!N.length&&!L&&!R?b.hasPartners=5:N.length&&!L&&!R?b.hasPartners=6:N.length&&(L||R)?b.hasPartners=7:b.hasPartners=1}for(var d=0;d<A.length;d++)for(var b=s[A[d]],oe=b.lcn?b.lcn:`base`,se=n[oe],E=0;E<b.subLevels;E++){var z=new u.node(b.id+`_sub_level_index_`+E,b.pid,[],`subLevel`);u.manager._initDinamicNode(z,b.lcn);var _=b.parent;if(_){b.movex!=null&&(z.movex=b.movex),b.movey!=null&&(z.movey=b.movey);var v=_.children.indexOf(b);v>-1&&(_.children.splice(v,1),_.children.splice(v,0,z)),z.children.push(b),z.parent=_,b.parent=z,s[z.id]=z}}for(var B in k){var _=s[B];_.hasAssistants=!0;var z=new u.node(_.id+`_split_assitant_0`,_.id,[`assistant`],`split`);_.movex!=null&&(z.movex=_.movex),_.movey!=null&&(z.movey=_.movey),u.manager._initDinamicNode(z,_.lcn,!0),s[z.id]=z;for(var V=[],E=_.children.length-1;E>=0;E--){var w=_.children[E];w.isAssistant?(w.parent=null,_.children.splice(E,1),V.splice(0,0,w.id)):w.isPartner||(w.parent&&j[w.parent.id]&&z&&w.parent.id!=z.id&&(Object.defineProperty(j,z.id,Object.getOwnPropertyDescriptor(j,w.parent.id)),delete j[w.parent.id]),w.parent=z,z.children.unshift(w),_.children.splice(E,1))}if(V.length%2){var ce=s[V[V.length-1]],H=new u.node(ce.id+`_mirror`,_.pid,[],`mirror`);u.manager._initDinamicNode(H,ce.lcn,!0),H.isAssistant=!0,H.w=ce.w,H.h=ce.h,s[H.id]=H,V.splice(V.length-1,0,H.id)}for(var le=1,E=V.length-1;E>=0;E--)if(E%2&&E!=V.length-1){var U=new u.node(_.id+`_split_assitant_`+le,_.pid,[],`split`);u.manager._initDinamicNode(U,_.lcn,!0),_.movex!=null&&(U.movex=_.movex),_.movey!=null&&(U.movey=_.movey),s[U.id]=U,V.splice(E,0,U.id),le++}else E%2&&V.splice(E,0,z.id);for(var E=0;E<V.length;E+=3){var W=null;W=E==0?_:s[V[E-2]];var ue=s[V[E]],de=s[V[E+1]],fe=s[V[E+2]];ue.parent=W,de.parent=W,fe.parent=W,W.children.push(ue),W.children.push(de),W.children.push(fe)}}var pe=!1;for(var me in n){var se=n[me];if(se.layout!=0){pe=!0;break}}var he=u.events.has(`node-layout`,e._event_id);if(pe||he){var G={nodes:s,config:t,action:r,actionParams:i};if(A.length){var ge=!1;for(var B in j){for(var S=j[B],d=0;d<S.length;d++){var b=s[S[d]];if(b.subLevels){ge=!0;break}}if(ge)break}if(ge){var _e={},ve={},ye={};for(var B in j)for(var S=j[B],be=!1,K=null,d=0;d<S.length;d++){var q=S[d];(K===null||A.has(q))&&(K=s[q].parent.id,!be&&!u.isNEU(s[q].subLevels)&&(be=s[q].subLevels>0)),_e[K]||(_e[K]=[]),_e[K].push(q),be&&(ye[K]=B,ve[K]||(ve[K]=[]),ve[K].push(q))}for(var B in j={},ve)if(ve[B].length>u.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)for(var xe=ye[B],d=s[xe].children.length-1;d>=0;d--){var w=s[xe].children[d];ve[B].has(w.id)&&s[xe].children.splice(d,1)}for(var B in _e)_e[B].length>u.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&(j[B]=_e[B])}}for(var B in j){for(var _=s[B],J=_;J.isSplit;)J=s[J.pid];for(;J.isSubLevel;)J=s[J.pid];var oe=_.lcn?_.lcn:`base`,se=n[oe];if(se.layout!=0||he){G.pnode=_,G.layout=se.layout,G.layoutGridColumns=t.layoutGridColumns,G.childrenIds=j[B],G.lastChildrenPidIds=j,G.subLevels=0,G.layouts=[],u.events.publish(`node-layout`,[e,G]),u.events.publish(`layout`,[G]),G.layouts.length||G.layouts.push({layout:G.layout,childrenIds:G.childrenIds,subLevels:G.subLevels,layoutGridColumns:G.layoutGridColumns});for(var Y=0;Y<G.layouts.length;Y++){var X=G.layouts[Y];for(u.isNEU(X.subLevels)&&(X.subLevels=0),u.isNEU(X.layout)&&(X.layout=se.layout),_=s[B],J=_;J.isSplit;)J=s[J.pid];for(;J.isSubLevel;)J=s[J.pid];for(var Z=_,E=0;E<X.subLevels;E++){var z=new u.node(Y+`_sublevel_layout_`+E,Z.id,[],`subLevel`);u.manager._initDinamicNode(z,Z.lcn),z.parent=Z,Z.children.push(z),s[z.id]=z,Z=z}if(X.subLevels){for(var E=0;E<X.childrenIds.length;E++){var w=s[X.childrenIds[E]],v=_.children.indexOf(w);v!=-1&&_.children.splice(v,1),w.parent=Z,Z.children.push(w)}_=Z}if(X.layout==u.layout.grid&&X.childrenIds.length>2){X.layoutGridColumns==`dynamic`&&(X.layoutGridColumns=u._getDynamicGridCoulumns(X.childrenIds.length));for(var Se=_.id,d=_.children.length-1;d>=0;d--)for(var E=0;E<X.childrenIds.length;E++){var q=X.childrenIds[E];if(_.children[d].id==q){_.children.splice(d,1);break}}var Q=X.layoutGridColumns;Q%2!=0&&Q>2&&Q--;for(var d=0;d<X.childrenIds.length;d+=Q)for(var Ce=null,E=0;E<Q;E++){var we=d+Q>=X.childrenIds.length;if(X.childrenIds.length-1<d+E)break;var q=X.childrenIds[d+E],w=s[q];w.parent=s[Se],s[Se].children.push(w),we||(Q/2-1==E&&(Ce=new u.node(X.childrenIds[d+E-1]+`_grid_pseudo_node_`+X.childrenIds[d+E+1],Se,[],`subLevel`),u.manager._initDinamicNode(Ce,_.lcn),Ce.parent=s[Se],s[Se].children.push(Ce),s[Ce.id]=Ce),Q-1==E&&(Se=Ce.id))}}if(X.layout==u.layout.mixed)for(var Te=X.childrenIds,d=Te.length-1;d>=0;d--){var w=s[Te[d]];_=w.parent,w.layout=u.layout.mixed;for(var E=_.children.length-1;E>=0;E--)if(w.id==_.children[E].id){_.children.splice(E,1);break}if(d>0){var Ee=s[Te[d-1]];w.parent=Ee,w.layout=u.layout.mixed,Ee.children.push(w)}else _.children.push(w)}else if(X.layout>1){var z=new u.node(Y+`_`+_.id+`_split_0`,J.id,[],`split`);_.movex!=null&&(z.movex=_.movex),_.movey!=null&&(z.movey=_.movey),u.manager._initDinamicNode(z,_.lcn),s[z.id]=z,z.layout=X.layout;for(var $=[],d=X.childrenIds.length-1;d>=0;d--){for(var w=s[X.childrenIds[d]],E=0;E<_.children.length;E++)_.children[E].id==w.id&&_.children.splice(E,1);if(w.parent=null,w.layout=X.layout,(X.layout==u.layout.treeRightOffset||X.layout==u.layout.treeRight)&&$.splice(0,0,w.id),X.layout>2){var De=new u.node(Y+`_`+w.id+`_mirror`,J.id,[],`mirror`);u.manager._initDinamicNode(De,w.lcn),De.layout=X.layout,s[De.id]=De,$.splice(0,0,De.id)}X.layout!=u.layout.treeRightOffset&&X.layout!=u.layout.treeRight&&$.splice(0,0,w.id)}for(var le=1,E=$.length-1;E>=0;E--)if(E%2&&E!=$.length-1){var U=new u.node(Y+`_`+_.id+`_split_`+le,J.id,[],`split`);u.manager._initDinamicNode(U,_.lcn),_.movex!=null&&(U.movex=_.movex),_.movey!=null&&(U.movey=_.movey),U.layout=X.layout,s[U.id]=U,$.splice(E,0,U.id),le++}else E%2&&$.splice(E,0,z.id);for(var E=0;E<$.length;E+=3){var W=null;E==0&&(W=_);var ue=s[$[E]],de=s[$[E+1]],fe=s[$[E+2]];E!=0&&(W=s[$[E-3]]),E!=0&&!de&&(W=s[$[E-2]]),ue.parent=W,W.children.push(ue),de&&(E!=0&&(W=s[$[E-2]]),de.parent=W,W.children.push(de)),fe&&(E!=0&&(W=s[$[E-1]]),fe.parent=W,W.children.push(fe))}}}}}}if(u.VERTICAL_CHILDREN_ASSISTANT)for(var d=0;d<c.length;d++)u.manager._verticalAssistantIterate(c[d],s);var G={nodes:s,roots:c};return u.events.publish(`nodes-initialized`,[e,G]),{nodes:G.nodes,roots:G.roots,rootList:l}},u.manager._getOrderSortArray=function(e){if(typeof e==`string`)return[{field:e,desc:!1}];if(Array.isArray(e)){var t=[];for(var n of e)typeof n==`string`?t.push({field:n,desc:!1}):e instanceof Object?t.push(n):console.error(`Unseported orderBy value!`);return t}else if(e instanceof Object)return[e];else console.error(`Unseported orderBy value!`)},u.manager._getNodeWidth=function(e,t){switch(t.orientation){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:return e.w;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:return e.h}return 0},u.manager._isVisible=function(e,t,n,r,i,a,o){var s=0;if(u.LAZY_LOADING_FACTOR==`auto`){var c=a/i*2,l=o/i*2;s=Math.ceil(c>l?c:l)}else s=u.LAZY_LOADING_FACTOR/i;if(!(e.x==null||e.y==null)){if(u._getLazyLoading(t)&&r!==u.action.exporting){function t(e,t){var n=e.x,r=e.y,i=e.w,a=e.h,o=t[0]-s,c=t[2]+s+t[0],l=t[1]-s,u=t[3]+s+t[1],d=n+i>o&&c>n;return d&&=r+a>l&&u>r,d}if(t(e,n))return!0;for(var d=0;d<e.children.length;d++)if(t(e.children[d],n))return!0;return!1}return!0}},u.manager.getAllFields=function(e){var t=[u.TAGS];for(var n in e.nodeBinding)t.push(e.nodeBinding[n]);for(var n=0;n<e.nodes.length;n++)for(var r in e.nodes[n])r!==u.ID&&r!==u.TAGS&&r!==u.NODES&&r!==u.PID&&r!==u.STPID&&r!==`movex`&&r!==`movey`&&(e.nodeBinding[r]||t.has(r)||t.push(r));return t},u.manager._getMostDeepChild=function(e){if(!e)return;var t=e;function n(e){e.sl>t.sl&&(t=e);for(var r=0;r<e.children.length;r++)n(e.children[r])}return n(e),t},u.manager._getResponse=function(e,t,n,r,i,a,o,s,c,l,d,f,p,m,h){var g=l[0],_=[],v={top:null,left:null,bottom:null,right:null,minX:null,maxX:null,minY:null,maxY:null},y=[[],[],[]],b=i-o+r.padding*2,x=a-s+r.padding*2,S=u.getScale(c,e,t,r.scaleInitial,r.scaleMax,r.scaleMin,b,x);if(v.top=s-r.padding,v.left=o-r.padding,v.bottom=a+r.padding-t/S,v.right=i+r.padding-e/S,v.maxX=i,v.minX=o,v.maxY=a,v.minY=s,l.length==0||c==null&&!h&&r.align==u.CENTER){var C=Math.ceil(e/S),w=Math.ceil(t/S),T=0,E=0;if(C-r.padding*2>=i-o)switch(T=(i+o)/2-C/2,r.orientation){case u.orientation.right:case u.orientation.right_top:T=(o-i)/2-C/2;break}else switch(T=g.x-C/2+u.manager._getNodeWidth(g,r)/2,r.orientation){case u.orientation.right:case u.orientation.right_top:T=-(C/2-(o-i)/2),T<r.padding-C&&(T=r.padding-C);break;case u.orientation.left:case u.orientation.bottom_left:case u.orientation.top_left:case u.orientation.left_top:T=-(C/2-(i-o)/2),T>-r.padding&&(T=-r.padding);break}if(w-r.padding*2>=a-s)switch(E=(a+s)/2-w/2,r.orientation){case u.orientation.bottom:case u.orientation.bottom_left:E=(s-a)/2-w/2;break}else switch(E=-(w/2-(a-s)/2),E>-r.padding&&(E=-r.padding),r.orientation){case u.orientation.bottom:case u.orientation.bottom_left:E=-(w/2-(s-a)/2),E<r.padding-w&&(E=r.padding-w);break;case u.orientation.left:case u.orientation.right:E=g.y-w/2+u.manager._getNodeWidth(g,r)/2;break}c=[T,E,C,w]}else if(c==null&&!h&&r.align==u.ORIENTATION){var C=Math.ceil(e/S),w=Math.ceil(t/S),T=0,E=0;switch(r.orientation){case u.orientation.top:T=g.x-C/2+u.manager._getNodeWidth(g,r)/2,E=-r.padding;break;case u.orientation.bottom:T=g.x-C/2+u.manager._getNodeWidth(g,r)/2,E=r.padding-w;break;case u.orientation.left:T=-r.padding,E=g.y-w/2+u.manager._getNodeWidth(g,r)/2;break;case u.orientation.right:T=r.padding-C,E=g.y-w/2+u.manager._getNodeWidth(g,r)/2;break;case u.orientation.top_left:T=-r.padding,E=-r.padding;break;case u.orientation.right_top:T=r.padding-C,E=-r.padding;break;case u.orientation.left_top:T=-r.padding,E=-r.padding;break;case u.orientation.bottom_left:T=-r.padding,E=r.padding-w;break}c=[T,E,C,w]}if(d==u.action.centerNode||d==u.action.maximize){var D=u._getCenterNodeFromParams(p,f);f.options.horizontal==1&&(c[0]=D.x+D.w/2-c[2]/2),f.options.vertical==1&&(c[1]=D.y+D.h/2-c[3]/2)}if(d==u.action.insert||d==u.action.expand||d==u.action.collapse||d==u.action.update||d==u.action.centerNode){var O=null;if(d==u.action.insert&&f&&f.insertedNodeId!=null&&f.insertedNodeId!=null)O=p[f.insertedNodeId];else if(d==u.action.update&&f&&f.visId!=null&&f.visId!=null)O=p[f.visId];else if((d==u.action.expand||d==u.action.collapse)&&f&&f.id!=null&&f.id!=null)O=p[f.id],O=u.manager._getMostDeepChild(O);else if(d==u.action.centerNode){switch(r.orientation){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:f.options.vertical||(O=p[f.id]);break;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:f.options.horizontal||(O=p[f.id]);break}O&&=u.manager._getMostDeepChild(O)}if(!u.FIXED_POSITION_ON_CLICK&&O){if(O.isTreeListItem){for(;!O.stParent;)O=O.parent;O=O.stParent}switch(r.orientation){case u.orientation.top:case u.orientation.top_left:var k=O.y+O.h-c[3]+r.padding;c[1]<k&&(c[1]=k);break;case u.orientation.bottom:case u.orientation.bottom_left:var k=O.y-r.padding;c[1]>k&&(c[1]=k);break;case u.orientation.right:case u.orientation.right_top:var k=O.x-r.padding;c[0]>k&&(c[0]=k);break;case u.orientation.left:case u.orientation.left_top:var k=O.x+O.w-c[2]+r.padding;c[0]<k&&(c[0]=k);break}}}for(var A=0;A<l.length;A++)u.manager._iterate2(l[A],p,r,c,d,f,_,m,n,y,S,e,t);return{animations:y,boundary:v,viewBox:c,visibleNodeIds:_,nodes:p,allFields:u.manager.getAllFields(r)}},u.manager._iterate2=function(e,t,n,r,i,a,o,s,c,l,d,f,p){if(u.manager._isVisible(e,n,r,i,d,f,p)){o.push(e.id);var m=null;if((i==u.action.expand||i==u.action.collapse||i==u.action.maximize)&&s&&s[e.id]&&a.method==`expandCollapseToLevel`){var h=s[e.id];if(m={x:h.x,y:h.y},h){m={x:h.x,y:h.y};for(var g=e,_=null;g!=null;)s[g.id]&&s[g.id].collapsed&&(_=g),g=g.parent;_&&_.parent&&(m={x:_.parent.x,y:_.parent.y})}var v=t[a.id];if(v){for(var g=e.parent;g!=null;)g=g.parent;g&&(m={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if((i==u.action.expand||i==u.action.collapse)&&s&&s[e.id]){var h=s[e.id];if(m={x:h.x,y:h.y},a.ids==`all`&&h){m={x:h.x,y:h.y};for(var g=e,_=null;g!=null;)s[g.id]&&s[g.id].collapsed&&(_=g),g=g.parent;_&&_.parent&&(m={x:_.parent.x,y:_.parent.y})}var v=t[a.id];if(v){for(var g=e.parent;g!=null&&a.ids.indexOf(e.id)==-1&&a.ids.indexOf(g.id)==-1;)g=g.parent;g&&(m={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if(i==u.action.centerNode&&s&&s[e.id]){var h=s[e.id];h.x!=null&&h.y!=null&&(m={x:h.x,y:h.y});var y=u._getCenterNodeFromParams(t,a);if(y&&y==e){var g=e.parent;g&&g.id==a.id&&(m={x:y.x+y.w/2-e.w/2,y:y.y+y.h/2-e.h/2})}}else if(i==u.action.maximize&&s&&s[e.id]){var h=s[e.id];h.x!=null&&h.y!=null&&(m={x:h.x,y:h.y});var y=u._getCenterNodeFromParams(t,a);if(y&&y==e){var g=e.parent;g&&g.id==a.id&&(m={x:y.x+y.w/2-e.w/2,y:y.y+y.h/2-e.h/2})}}else if(i==u.action.minimize&&s&&s[e.id]){var h=s[e.id];m={x:h.x,y:h.y}}else if(i==u.action.insert&&a&&a.insertedNodeId==e.id&&e.parent)m={x:e.parent.x,y:e.parent.y};else if((i==u.action.update||i==u.action.insert)&&s){var h=s[e.id];if((!h||u.isNEU(h.x)&&u.isNEU(h.y))&&a){var v=t[a.id];if(v){for(var g=v;g&&g.id==e.id;)g=g.parent;g&&(m={x:v.x,y:v.y})}}else h&&(m={x:h.x,y:h.y})}else i!==u.action.exporting&&i!==u.action.init&&c.indexOf(e.id)==-1&&(l[0].push(e.id),l[1].push({opacity:0}),l[2].push({opacity:1}));m!=null&&m.x!=null&&m.y!=null&&(m.x!=e.x||m.y!=e.y)&&!(a&&a.dragNodeIdList&&a.dragNodeIdList.indexOf(e.id)!=-1)&&!e.isSplit&&(l[0].push(e.id),l[1].push({transform:[1,0,0,1,m.x,m.y]}),l[2].push({transform:[1,0,0,1,e.x,e.y]}))}for(var b=0;b<e.stChildren.length;b++)u.manager._iterate2(e.stChildren[b],t,n,r,i,a,o,s,c,l,d,f,p);for(var b=0;b<e.children.length;b++)u.manager._iterate2(e.children[b],t,n,r,i,a,o,s,c,l,d,f,p)},u.manager._addExpandedNodeIdsIterate=function(e,t,n){for(var r=0;r<e.childrenIds.length;r++)n.push(e.childrenIds[r]),u.manager._addExpandedNodeIdsIterate(t[e.childrenIds[r]],t,n)},u.manager._setChildCountPropsIterate=function(e,t){e.w===void 0&&(e.collapsedChildCount=e.childrenIds.length),e.deepChildCount=e.childCount=e.childrenIds.length,e.deepCollapsedChildCount=e.collapsedChildCount;for(var n=t[e.pid];n;)n.deepCollapsedChildCount+=e.collapsedChildCount,n.deepChildCount+=e.childCount,n=t[n.pid];for(var r of e.stChildrenIds)u.manager._setChildCountPropsIterate(t[r],t);for(var r of e.childrenIds)u.manager._setChildCountPropsIterate(t[r],t)},u.manager._setMinMaxXYAdjustifyIterate=function(e,t,n,r,i,a,o,s){e.x+=a.x,e.y+=a.y;for(var c of e.stChildren)u.manager._setMinMaxXYAdjustifyIterate(c,c,n,0,i,a,o,s);e.isPartner?e.sl=r-1:e.sl=r,i[t.id]??(i[t.id]={}),i[t.id][e.sl]??(i[t.id][e.sl]={minX:null,minY:null,maxX:null,maxY:null}),e.layout?(s[t.id]??(s[t.id]={}),s[t.id][e.sl]??(s[t.id][e.sl]=e)):u._setMinMaxXY(e,i[t.id][e.sl],!0),e.movex!=null&&(e.x+=e.movex),e.movey!=null&&(e.y+=e.movey),u._setMinMaxXY(e,n,!0),r++;for(var c of e.children)u.manager._setMinMaxXYAdjustifyIterate(c,t,n,r,i,a,o,s)},u.manager._doNotChangePositionOfClickedNodeIfAny=function(e,t,n,r,i,a){if(n!=u.action.expand&&n!=u.action.collapse&&n!=u.action.minimize&&n!=u.action.maximize&&n!=u.action.centerNode&&n!=u.action.update&&n!=u.action.insert)return{x:0,y:0};if(n==u.action.update&&(!r||r.id==null)){if(!e||!e.length)return{x:0,y:0};r={id:e[0].id}}if(r.id==null)return{x:0,y:0};var o=r.id;(n==u.action.minimize&&t[o].parent||n==u.action.maximize&&t[o].parent)&&(o=t[o].pid);var s=t[o],c=i[o];if(!c)return{x:0,y:0};var l=c.movex==null?0:c.movex,d=c.movey==null?0:c.movey,f={x:(c.x?c.x-l:0)-s.x,y:(c.y?c.y-d:0)-s.y};return s&&s.isTreeListItem?{x:0,y:0}:f},u.manager._verticalAssistantIterate=function(e,t){for(var n=0;n<e.stChildren.length;n++)u.manager._verticalAssistantIterate(e.stChildren[n],t);if(e.children.length==3)u.manager._verticalAssistantIterate(e.children[0],t),u.manager._verticalAssistantIterate(e.children[2],t),u.manager._verticalAssistantIterate(e.children[1],t);else for(var n=0;n<e.children.length;n++)u.manager._verticalAssistantIterate(e.children[n],t);if(e.isAssistant&&e.isSplit&&e.children.length){for(var r=e.parent.children[0],i=e.parent.children[2],a=e.parent;!a.hasAssistants;)a=a.parent;var o={max:0},s={max:0};u.manager._verticalAssistantLevelCountIterate(r,0,o),u.manager._verticalAssistantLevelCountIterate(i,0,s);for(var c=Math.max(o.max,s.max),l=[],n=0;n<c;n++){var d=new u.node(e.parent.id+`_split_assitant_level_`+n,e.pid,[],`subLevel`);u.manager._initDinamicNode(d,e.lcn,!0),a.movex!=null&&(d.movex=a.movex),a.movey!=null&&(d.movey=a.movey),n>0&&(l[n-1].children.push(d),d.parent=l[n-1]),t[d.id]=d,l.push(d)}if(l.length){for(var f=l[l.length-1],p=l[0],m=e.children.length-1;m>=0;m--){var h=e.children[m];f.children.unshift(h),h.parent=f,e.children.splice(m,1)}e.children.push(p),p.parent=e}}},u.manager._verticalAssistantLevelCountIterate=function(e,t,n){n.max<t&&(n.max=t),t++;for(var r=0;r<e.children.length;r++)u.manager._verticalAssistantLevelCountIterate(e.children[r],t,n)},u._addDottedLines=function(e){var t=e.nodes;if((e.groupDottedLines.length||e.dottedLines.length)&&(t=JSON.parse(JSON.stringify(t))),e.groupDottedLines.length)for(var n=[],r=0;r<e.groupDottedLines.length;r++){var i=e.groupDottedLines[r];i.rootId??=i.to;var a=`balkan_group_dotted_${i.rootId}`;if(!n.has(a)){for(var o=0;o<t.length;o++)if(t[o].id==i.rootId){var s=JSON.parse(JSON.stringify(t[o]));s.id=`balkan_group_dotted_${i.rootId}_balkan_id_${t[o].id}`,s.pid=void 0,s.stpid=t[o].id,t.push(s),n.push(a),t[o].tags||(t[o].tags=[]),t[o].tags.push(`group-dotted-lines`),t[o].tags.push(`group-dotted-lines-`+a);break}}for(var o=0;o<t.length;o++)if(t[o].id==i.from){var s=JSON.parse(JSON.stringify(t[o]));if(s.id=`balkan_group_dotted_${i.rootId}_balkan_id_${t[o].id}`,s.pid=`balkan_group_dotted_${i.rootId}_balkan_id_${i.to}`,s.tags){var c=s.tags.indexOf(`group-dotted-lines`);c!=-1&&s.tags.splice(c,1)}if(s.tags||=[],s.tags.push(`boc-dotted-connector`),i.tags)for(var l=0;l<i.tags.length;l++)s.tags.push(i.tags[l]);t.push(s);break}}if(e.dottedLines.length)for(var r=0;r<e.dottedLines.length;r++){var u=e.dottedLines[r];u.rootId??=u.to;for(var o=0;o<t.length;o++)if(t[o].id==u.from){var s=JSON.parse(JSON.stringify(t[o]));if(s.id=`balkan_dotted_${u.rootId}_balkan_id_${t[o].id}`,u.rootId==u.to?s.pid=u.to:s.pid=`balkan_dotted_${u.rootId}_balkan_id_${u.to}`,s.tags||=[],s.tags.push(`boc-dotted-connector`),u.tags)for(var l=0;l<u.tags.length;l++)s.tags.push(u.tags[l]);t.push(s);break}}return t},u===void 0&&(u={}),u.templates={},u.templates.base={defs:``,size:[250,120],expandCollapseSize:30,linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:`#e6e6e6`,rect:null},assistanseLink:`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="2px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} {xd},{yd} L{xe},{ye}"/>`,svg:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,link:`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>`,node:`<rect x="0" y="0" height="120" width="250" fill="none" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>`,plus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
194
+ <text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
195
+ <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},nodeMenuButton:`<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,105)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`,menuButton:`<div style="user-select:none;position:absolute;right:{p}px;top:{p}px; width:30px;height:50px;cursor:pointer;" `+u.attr.control_export_menu+`=""><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"><hr style="background-color: #7A7A7A; height: 3px; border: none;"></div>`,img_0:`<clipPath id="{randId}"><circle cx="60" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="20" y="20" width="80" height="80"></image>`,link_field_0:`<text text-anchor="middle" fill="#aeaeae" `+u.attr.width+`="290" x="0" y="0" style="font-size:10px;">{val}</text>`,editFormHeaderColor:`#039BE5`,treeListMaxHeight:500},u.templates.ana={defs:``,size:[250,120],linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:`#e6e6e6`,rect:null},expandCollapseSize:30,svg:`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,link:`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />`,assistanseLink:`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="2px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} {xd},{yd} L{xe},{ye}"/>`,node:function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},plus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
196
+ <text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`},minus:function(e,t,n,r,i){var a=r.mode==`dark`?`#1E1E1E`:`#ffffff`;return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="${a}" stroke="#aeaeae" stroke-width="1"></circle>
197
+ <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`},up:`<rect x="20" y="-25" width="30" height="17" fill="#aeaeae" rx="3" ry="3"></rect><line x1="35" x2="35" y1="0" y2="-8" stroke="#aeaeae" stroke-width="1"></line>`,nodeMenuButton:function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},menuButton:u.templates.base.menuButton,img_0:function(e,t,n,r,i){var a=50,o=30,s=40,c=u.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},link_field_0:`<text text-anchor="middle" fill="#aeaeae" `+u.attr.width+`="290" x="0" y="0" style="font-size:10px;">{val}</text>`,field_0:function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="${e.h-25}" text-anchor="middle"></text>`,e.w-20,1)},field_1:function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w-20}" y="30" text-anchor="end"></text>`,e.w-120,3)},padding:[75,5,50,5],editFormHeaderColor:`#039BE5`,treeListMaxHeight:500},u.templates.split=Object.assign({},u.templates.ana),u.templates.split.size=[10,10],u.templates.split.node=`<circle cx="5" cy="5" r="5" fill="none" stroke-width="1" stroke="#aeaeae"></circle>`,u.templates.split.field_0=``,u.templates.split.field_1=``,u.templates.split.img_0=``,u.templates.dot=Object.assign({},u.templates.split),u.templates.group=Object.assign({},u.templates.ana),u.templates.group.size=[250,120],u.templates.group.padding=[50,20,35,20],u.templates.group.node=`<rect rx="50" ry="50" x="0" y="0" height="{h}" width="{w}" fill="#f2f2f2" stroke-width="0"></rect>`,u.templates.group.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>`,u.templates.group.nodeMenuButton=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,{ew},25)"><g transform="matrix(1,0,0,1,-22,-8)"><rect x="0" y="0" fill="red" fill-opacity="0" width="18" height="22"></rect><line x1="0" y1="2" x2="9" y2="2" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="9" x2="18" y2="9" stroke="#aeaeae" stroke-width="1"></line><line x1="0" y1="16" x2="22" y2="16" stroke="#aeaeae" stroke-width="1"></line></g></g>`,u.templates.group.field_0=`<text `+u.attr.width+`="230" style="font-size: 18px;" fill="#aeaeae" x="{cw}" y="30" text-anchor="middle">{val}</text>`,u.templates.group.field_1=``,u.templates.group.ripple={radius:50,color:`#aeaeae`},u.templates.invisibleGroup=Object.assign({},u.templates.group),u.templates.invisibleGroup.node=``,u.templates.invisibleGroup.padding=[0,0,0,0],u.templates.invisibleGroup.field_0=``,u.templates.invisibleGroup.nodeMenuButton=``,u.templates.mirror={linkAdjuster:{},link:``,node:``,nodeMenuButton:``,size:[0,0]},u.templates.ula=Object.assign({},u.templates.ana),u.templates.ula.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="100" y="55"></text>`,e.w-105,1)},u.templates.ula.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text data-text-overflow="multiline" style="font-size: 14px;" fill="#afafaf" x="100" y="76"></text>`,e.w-105,3)},u.templates.ula.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#aeaeae"></rect><line x1="0" y1="0" x2="${e.w}" y2="0" stroke-width="2" stroke="#039BE5"></line>`},u.templates.ula.img_0=function(e,t,n,r,i){var a=50,o=60,s=40,c=u.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},u.templates.ula.menu=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,12)" `+u.attr.control_node_menu_id+`="{id}"><rect x="-4" y="-10" fill="#ffffff" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#039BE5"></circle><circle cx="7" cy="0" r="2" fill="#039BE5"></circle><circle cx="14" cy="0" r="2" fill="#039BE5"></circle></g>`,u.templates.ula.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},u.templates.ula.padding=[110,1,1,1],u.templates.olivia=Object.assign({},u.templates.ana),u.templates.olivia.defs=`<style>
198
+ #olivia_gradient {
199
+ --color-stop-1: #ffffff;
200
+ --color-stop-2: #eeeeee;
201
+ --opacity-stop: 1;
202
+ }
203
+ .olivia-f0{
204
+ font-size: 18px;
205
+ fill: #757575;
206
+ }
207
+ .olivia-f1{
208
+ font-size: 14px;
209
+ fill: #757575;
210
+ }
211
+ .boc-dark .olivia-f0,.boc-dark .olivia-f1{
212
+ fill: #aeaeae;
213
+ }
214
+ .boc-dark #olivia_gradient {
215
+ --color-stop-1: #646464;
216
+ --color-stop-2: #363636;
217
+ --opacity-stop: 1;
218
+ }
219
+ </style>
220
+ <linearGradient id="olivia_gradient" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="var(--color-stop-1)" stop-opacity="var(--opacity-stop)"/><stop offset="100%" stop-color="var(--color-stop-2)" stop-opacity="var(--opacity-stop)" /></linearGradient>`,u.templates.olivia.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text class="olivia-f0" x="100" y="55"></text>`,e.w-105,1)},u.templates.olivia.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text class="olivia-f1" x="100" y="76"></text>`,e.w-105,3)},u.templates.olivia.node=function(e,t,n,r){return`<rect fill="url(#olivia_gradient)" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},u.templates.olivia.img_0=`<clipPath id="{randId}"><circle cx="50" cy="60" r="40"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="10" y="20" width="80" height="80" ></image>`,u.templates.olivia.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="7" cy="0" r="2" fill="#AEAEAE"></circle><circle cx="14" cy="0" r="2" fill="#AEAEAE"></circle></g>`},u.templates.olivia.padding=[110,15,30,15],u.templates.belinda=Object.assign({},u.templates.ana),u.templates.belinda.size=[180,180],u.templates.belinda.ripple={radius:90,color:`#e6e6e6`,rect:null},u.templates.belinda.node=function(e,t,n,r){return`<circle cx="${e.w/2}" cy="${e.h/2}" r="${e.w/2}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></circle>`},u.templates.belinda.img_0=function(e,t,n,r,i){var a=e.w/2,o=45,s=40,c=u.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},u.templates.belinda.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+15}"></text>`,e.w-10,1)},u.templates.belinda.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 14px;" text-anchor="middle" fill="#ffffff" x="${e.w/2}" y="${e.h/2+35}"></text>`,e.w-20,2)},u.templates.belinda.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>`,u.templates.belinda.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w/2-11},5)"><rect x="0" y="0" fill="#000000" fill-opacity="0" width="22" height="22"></rect><line stroke-width="2" stroke="#000" x1="0" y1="3" x2="22" y2="3"></line><line stroke-width="2" stroke="#000" x1="0" y1="9" x2="22" y2="9"></line><line stroke-width="2" stroke="#000" x1="0" y1="15" x2="22" y2="15"></line></g>`},u.templates.rony=Object.assign({},u.templates.ana),u.templates.rony.svg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="background-color:#E8E8E8;display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,u.templates.rony.defs=`<filter id="{randId}" x="0" y="0" width="200%" height="200%"><feOffset result="offOut" in="SourceAlpha" dx="5" dy="5"></feOffset><feGaussianBlur result="blurOut" in="offOut" stdDeviation="5"></feGaussianBlur><feBlend in="SourceGraphic" in2="blurOut" mode="normal"></feBlend></filter>`,u.templates.rony.size=[180,250],u.templates.rony.ripple={color:`#F57C00`,radius:5,rect:null},u.templates.rony.padding=[250,0,30,0],u.templates.rony.img_0=function(e,t,n,r,i){var a=e.w/2,o=160,s=60,c=u.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},u.templates.rony.node=function(e,t,n,r){return`<rect filter="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="0" rx="10" ry="10"></rect>'`},u.templates.rony.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="40" text-anchor="middle"></text>`,e.w-15,1)},u.templates.rony.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 14px;" fill="#F57C00" x="${e.w/2}" y="60" text-anchor="middle"></text>`,e.w-15,3)},u.templates.rony.field_2=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 14px;" fill="#FFCA28" x="${e.w/2}" y="80" text-anchor="middle"></text>`,e.w-15,1)},u.templates.rony.link=`<path stroke="#039BE5" stroke-width="1px" fill="none" d="M{xa},{ya} {xb},{yb} {xc},{yc} L{xd},{yd}"/>`,u.templates.rony.plus=function(e,t,n,r,i){return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line></g>`},u.templates.rony.minus=function(e,t,n,r,i){return`<g transform="matrix(1,0,0,1,${i.x-15},${i.y-15})"><circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line></g>`},u.templates.rony.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},u.templates.mery=Object.assign({},u.templates.ana),u.templates.mery.ripple={color:`#e6e6e6`,radius:50,rect:null},u.templates.mery.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#ffffff" stroke-width="1" stroke="#686868" rx="50" ry="50"></rect><rect x="0" y="${e.h/2-15}" height="30" width="${e.w}" fill="#039BE5" stroke-width="1"></rect>`},u.templates.mery.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />`,u.templates.mery.img_0=function(e,t,n,r,i){var a=e.w/2,o=e.h/2,s=24,c=u.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},u.templates.mery.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2-30}" text-anchor="middle"></text>`,e.w-30,1)},u.templates.mery.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 14px;" fill="#039BE5" x="${e.w/2}" y="${e.h/2+40}" text-anchor="middle"></text>`,e.w-30,1)},u.templates.mery.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25}, ${e.h/2})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},u.templates.polina=Object.assign({},u.templates.ana),u.templates.polina.size=[300,80],u.templates.polina.padding=[80,15,30,15],u.templates.polina.ripple={color:`#e6e6e6`,radius:40,rect:null},u.templates.polina.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="40" ry="40"></rect>`},u.templates.polina.img_0=`<clipPath id="{randId}"><circle cx="40" cy="40" r="35"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="0" y="0" width="80" height="80"></image>`,u.templates.polina.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="80" y="30" text-anchor="start"></text>`,e.w-90,1)},u.templates.polina.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="80" y="55" text-anchor="start"></text>`,e.w-90,1)},u.templates.polina.link=`<path stroke="#686868" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}" />`,u.templates.polina.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-15},33)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="0" cy="7" r="2" fill="#ffffff"></circle><circle cx="0" cy="14" r="2" fill="#ffffff"></circle></g>`},u.templates.mila=Object.assign({},u.templates.ana),u.templates.mila.padding=[60,15,120,15],u.templates.mila.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae"></rect><rect x="-5" y="${e.h-50}" height="30" width="${e.w+10}" fill="#ffffff" stroke-width="1" stroke="#039BE5"></rect><line x1="-5" x2="0" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/><line x1="${e.w+5}" x2="${e.w}" y1="${e.h-20}" y2="${e.h-15}" stroke-width="1" stroke="#039BE5"/>`},u.templates.mila.img_0=function(e,t,n,r,i){return`<image preserveAspectRatio="xMidYMid slice" xlink:href="${i}" x="20" y="${e.h-115}" width="64" height="64"></image>`},u.templates.mila.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="${e.w/2}" y="${e.h-28}" text-anchor="middle"></text>`,e.w-10,1)},u.templates.mila.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-10})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},u.templates.diva=Object.assign({},u.templates.ana),u.templates.diva.size=[200,170],u.templates.diva.padding=[160,10,30,10],u.templates.diva.node=function(e,t,n,r){return`<rect x="0" y="80" height="${e.h-80}" width="${e.w}" fill="#039BE5"></rect><circle cx="${e.w/2}" cy="50" fill="#ffffff" r="50" stroke="#039BE5" stroke-width="2"></circle>`},u.templates.diva.img_0=function(e,t,n,r,i){var a=e.w/2,o=50,s=45,c=u.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},u.templates.diva.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="${e.w/2}" y="125" text-anchor="middle"></text>`,e.w-15,1)},u.templates.diva.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${e.w/2}" y="145" text-anchor="middle"></text>`,e.w-15,1)},u.templates.diva.pointer=`<g data-pointer="pointer" transform="matrix(0,0,0,0,100,100)"><radialGradient id="pointerGradient"><stop stop-color="#ffffff" offset="0" /><stop stop-color="#039BE5" offset="1" /></radialGradient><circle cx="16" cy="16" r="16" stroke-width="1" stroke="#acacac" fill="url(#pointerGradient)"></circle></g>`,u.templates.diva.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-30}, ${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},u.templates.luba=Object.assign({},u.templates.ana),u.templates.luba.svg=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="display:block;background-color: #2E2E2E;" width="{w}" height="{h}" viewBox="{viewBox}">{content}</svg>`,u.templates.luba.defs=`<linearGradient id="{randId}" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:#646464;stop-opacity:1" /><stop offset="100%" style="stop-color:#363636;stop-opacity:1" /></linearGradient>`,u.templates.luba.node=function(e,t,n,r){return`<rect fill="url(#{randId})" x="0" y="0" height="${e.h}" width="${e.w}" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},u.templates.luba.padding=[70,10,60,10],u.templates.luba.img_0=function(e,t,n,r,i){var a=50,o=25,s=40,c=u.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},u.templates.luba.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w-25},${e.h-15})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#aeaeae"></circle><circle cx="7" cy="0" r="2" fill="#aeaeae"></circle><circle cx="14" cy="0" r="2" fill="#aeaeae"></circle></g>`},u.templates.luba.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" fill="#aeaeae" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-15,1)},u.templates.luba.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 14px;" fill="#aeaeae" x="${e.w-10}" y="30" text-anchor="end"></text>`,e.w-110,1)},u.templates.luba.plus=`<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line><line x1="18" y1="4" x2="18" y2="32" stroke-width="1" stroke="#aeaeae"></line>`,u.templates.luba.minus=`<rect x="0" y="0" width="36" height="36" rx="12" ry="12" fill="#2E2E2E" stroke="#aeaeae" stroke-width="1"></rect><line x1="4" y1="18" x2="32" y2="18" stroke-width="1" stroke="#aeaeae"></line>`,u.templates.luba.expandCollapseSize=36,u.templates.isla=Object.assign({},u.templates.ana),u.templates.isla.defs=`<filter x="-50%" y="-50%" width="200%" height="200%" filterUnits="objectBoundingBox" id="isla-shadow"><feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1" /><feGaussianBlur stdDeviation="10" in="shadowOffsetOuter1" result="shadowBlurOuter1" /><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0" in="shadowBlurOuter1" type="matrix" result="shadowMatrixOuter1" /><feMerge><feMergeNode in="shadowMatrixOuter1" /><feMergeNode in="SourceGraphic" /></feMerge></filter>`,u.templates.isla.size=[180,120],u.templates.isla.padding=[70,1,60,1],u.templates.isla.node=function(e,t,n,r){return`<rect filter="url(#isla-shadow)" x="0" y="20" rx="10" ry="10" height="${e.h-20}" width="${e.w}" fill="#FFF" stroke-width="1" stroke="#039BE5" ></rect><rect x="25" y="${e.h-45}" rx="10" ry="10" height="20" width="${e.w-50}" fill="#039BE5" stroke-width="3" stroke="#039BE5"></rect><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect><circle stroke="#FFCA28" stroke-width="3" fill="none" cx="${e.w/2}" cy="12" r="8"></circle><path d="M${e.w/2-15},34 C${e.w/2-15},17 ${e.w/2+15},17 ${e.w/2+15},34" stroke="#FFCA28" stroke-width="3" fill="none"></path>`},u.templates.isla.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 12px;" fill="#fff" x="${e.w/2}" y="${e.h-30}" text-anchor="middle"></text>`,e.w-60,1)},u.templates.isla.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 13px;" fill="#039BE5" x="${e.w/2}" y="64" text-anchor="middle"></text>`,e.w-20,1)},u.templates.isla.img_0=``,u.templates.isla.img_0=function(e,t,n,r,i){var a=u.randomId();return`<clipPath id="${a}"><rect filter="url(#isla-shadow)" fill="#ffffff" stroke="#039BE5" stroke-width="1" x="${e.w/2-20}" y="0" rx="13" ry="13" width="40" height="40"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${i}" x="${e.w/2-20}" y="0" width="40" height="40"></image>`},u.templates.isla.minus=`<circle cx="15" cy="15" r="15" fill="#F57C00" stroke="#F57C00" stroke-width="1"></circle><line x1="8" y1="15" x2="22" y2="15" stroke-width="1" stroke="#ffffff"></line>`,u.templates.isla.plus=`<circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#039BE5" stroke-width="1"></circle><line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#039BE5"></line><line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#039BE5"></line>`,u.templates.isla.nodeMenuButton=function(e,t,n,r){return`<g transform="matrix(1,0,0,1,${e.w/2-7},45)"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#F57C00"></circle><circle cx="7" cy="0" r="2" fill="#F57C00"></circle><circle cx="14" cy="0" r="2" fill="#F57C00"></circle></g>`},u.templates.isla.ripple={radius:0,color:`#F57C00`,rect:{x:0,y:20,width:180,height:100}},u.templates.deborah=Object.assign({},u.templates.polina),u.templates.deborah.size=[150,150],u.templates.deborah.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#686868" rx="15" ry="15"></rect>`},u.templates.deborah.img_0=function(e,t,n,r,i){var a=u.randomId();return`<clipPath id="${a}"><rect fill="#ffffff" stroke="#039BE5" stroke-width="1" x="5" y="5" rx="15" ry="15" width="${e.w-10}" height="${e.h-10}"></rect></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${a})" xlink:href="${i}" x="5" y="5" width="${e.w-10}" height="${e.h-10}"></image><rect x="3" y="5" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect><rect x="3" y="${e.h-35}" height="30" width="${e.w-6}" fill="#039BE5" opacity="0.5" rx="3" ry="3"></rect>`},u.templates.deborah.field_0=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 18px;" fill="#ffffff" x="15" y="25" text-anchor="start"></text>`,e.w-25,1)},u.templates.deborah.field_1=function(e,t,n,r,i){return u.wrapText(i,`<text style="font-size: 11px;" fill="#ffffff" x="15" y="${e.h-15}" text-anchor="start"></text>`,e.w-45,1)},u.templates.deborah.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1,${e.w-25},${e.h-20})"><rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect><circle cx="0" cy="0" r="2" fill="#ffffff"></circle><circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle></g>`},u.templates.subLevel=Object.assign({},u.templates.base),u.templates.subLevel.size=[0,0],u.templates.subLevel.node=``,u.templates.subLevel.plus=``,u.templates.subLevel.minus=``,u.templates.subLevel.nodeMenuButton=``,u.templates.group_dotted_lines=Object.assign({},u.templates.group),u.templates.group_dotted_lines.size=[250,120],u.templates.group_dotted_lines.padding=[50,20,35,20],u.templates.group_dotted_lines.link=`<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />`,u.templates.group_dotted_lines.node=`<rect rx="5" ry="5" x="0" y="0" height="{h}" width="{w}" fill="#e5e5e5" stroke-width="0"></rect>`,u.templates.group_dotted_lines.nodeGroupDottedCloseButton=`<g transform="matrix(1,0,0,1,{ew},0)"><circle cx="0.5" cy="21.5" r="12" fill="#F57C00"></circle>`+u.icon.close(25,25,`#fff`,-13,8)+`</g>`,u.templates.group_dotted_lines.field_0=`<text data-width="230" style="font-size: 18px;" fill="#F57C00" x="20" y="30" text-anchor="start">Dotted Lines</text>`,u.templates.group_dotted_lines.field_1=``,u.templates.group_dotted_lines.img_0=``,u.templates.group_dotted_lines.ripple.radius=5,u.templates.group_dotted_lines.min=Object.assign({},u.templates.olivia),u.templates.group_dotted_lines.min.nodeGroupDottedOpenButton=`<g transform="matrix(1,0,0,1,220,10)"><rect x="0" y="0" width="22" height="22" stroke="#aeaeae" stroke-width="1" fill="#ffffff" rx="5" ry="5"></rect><text x="11" y="16" text-anchor="middle" style="font-size: 14px;" fill="#2A292E">{children-total-count}</text><rect x="0" y="0" width="22" height="22" style="opacity: 0" stroke="#aeaeae" stroke-width="1" fill="red" rx="5" ry="5"></rect></g>`,u.templates.clara=Object.assign({},u.templates.ana),u.templates.clara.size=[180,210],u.templates.clara.padding=[80,7,7,7],u.templates.clara.img_0=function(e,t,n,r,i){var a=50,o=30,s=40;e.stChildren.length||(s=60,a=e.w/2,o=70);var c=u.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},u.templates.clara.treeListMaxHeight=387,u.templates.clara.field_0=function(e,t,n,r,i){var a=65,o=e.w/2,s=`middle`,c=e.w-100;return e.stChildren.length||(s=`middle`,o=e.w/2,a=160,c=e.w-20),u.wrapText(i,`<text style="font-size: 20px;" fill="#ffffff" x="${o}" y="${a}" text-anchor="${s}"></text>`,c,1)},u.templates.clara.field_1=function(e,t,n,r,i){var a=35,o=e.w-15,s=`end`,c=e.w-100;return e.stChildren.length||(s=`middle`,o=e.w/2,a=180,c=e.w-20),u.wrapText(i,`<text style="font-size: 14px;" fill="#ffffff" x="${o}" y="${a}" text-anchor="${s}"></text>`,c,1)},u.templates.clara.nodeMenuButton=function(e,t,n,r){return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-35}, 2)">
221
+ <rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>
222
+ <circle cy="13" cx="6" r="2" fill="#fff"></circle>
223
+ <circle cy="13" cx="13" r="2" fill="#fff"></circle>
224
+ <circle cy="13" cx="20" r="2" fill="#fff"></circle>
225
+ </g>`},u.templates.clara.node=function(e,t,n,r){return`<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`},u.templates.treeListItem=Object.assign({},u.templates.ana),u.templates.treeListItem.size=[350,60],u.templates.treeListItem.field_0=function(e,t,n,r,i){var a=e.level*n.expandCollapseSize+45,o=r.mode==`dark`?`#ccc`:`#757575`;return u.wrapText(i,`<text fill="${o}" x="${a}" y="27" style="font-size:16px;"></text>`,e.w-a-70,1)},u.templates.treeListItem.field_1=function(e,t,n,r,i){var a=e.level*n.expandCollapseSize+45,o=r.mode==`dark`?`#ccc`:`#757575`;return u.wrapText(i,`<text fill="${o}" x="${a}" y="47" style="font-size:12px;"></text>`,e.w-a-70,1)},u.templates.treeListItem.img_0=function(e,t,n,r,i){var a=e.w-55,o=e.h/2,s=e.h/2-4,c=u.randomId();return`<clipPath id="${c}"><circle cx="${a}" cy="${o}" r="${s}"></circle></clipPath><image preserveAspectRatio="xMidYMid slice" clip-path="url(#${c})" xlink:href="${i}" x="${a-s}" y="${o-s}" width="${s*2}" height="${s*2}" ></image>`},u.templates.treeListItem.expandCollapseSize=24,u.templates.treeListItem.plus=function(e,t,n,r){var i=n.expandCollapseSize/2+e.level*n.expandCollapseSize,a=e.h/2;a-=n.expandCollapseSize/2;var o=r.mode==`dark`?`#ccc`:`#757575`;return`<g transform="matrix(1,0,0,1,${i},${a})"><text x="6" style="font-size: 10px;" fill="${o}" y="15.5" text-anchor="end">${e.deepCollapsedChildCount}</text><path fill="${o}" d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},u.templates.treeListItem.minus=function(e,t,n,r){var i=n.expandCollapseSize/2+e.level*n.expandCollapseSize,a=e.h/2;a-=n.expandCollapseSize/2;var o=r.mode==`dark`?`#ccc`:`#757575`;return`<g transform="matrix(1,0,0,1,${i},${a})"><path fill="${o}" d="M7.42,8.59L12,13.17L16.59,8.59L18,10L12,16L6,10L7.42,8.59Z" /><rect style="opacity: 0" x="-3" y="-3" width="30" height="30"></rect></g>`},u.templates.treeListItem.nodeMenuButton=function(e,t,n,r){var i=r.mode==`dark`?`#ccc`:`#757575`;return`<g style="cursor:pointer;" transform="matrix(1,0,0,1, ${e.w-36}, ${e.h/2-13})">
226
+ <rect x="0" y="0" fill="red" style="opacity: 0;" width="26" height="26"></rect>
227
+ <circle cx="13" cy="6" r="2" fill="${i}"></circle>
228
+ <circle cx="13" cy="13" r="2" fill="${i}"></circle>
229
+ <circle cx="13" cy="20" r="2" fill="${i}"></circle>
230
+ </g>`},u.templates.treeListItem.node=function(e,t,n,r){var i=``,a=`#FFFFFF`;if(e.isTreeListItem&&!e.stParent||e.isTreeListItem&&e.stParent&&e.stParent.stChildren[0]!=e){var o=`#E0E0E0`;r.mode==`dark`&&(o=`#444444`),i=`<line stroke="${o}" stroke-width="1" x1="0" x2="${e.w}" y1="0" y2="0"></line>`}return r.mode==`dark`&&(a=`#252526`),`<rect fill="${a}" x="0" y="0" height="${e.h}" width="${e.w}" rx="0" ry="0" ></rect>${i}`},u.ui={_defsIds:{},defs:function(e){var t=``;for(var n in u.templates){var r=u.templates[n];r.defs&&(u.ui._defsIds[n]=u.randomId(),t+=r.defs.replaceAll(`{randId}`,u.ui._defsIds[n]))}return`<defs>`+t+e+`</defs>`},lonely:function(e){return!e.nodes||!e.nodes.length?u.IT_IS_LONELY_HERE.replace(`{link}`,u.RES.IT_IS_LONELY_HERE_LINK):``},pointer:function(e,t,n){if(t===u.action.exporting)return``;var r=u.t(e.template,!1,n).pointer;return r||=``,r},aiButton:function(e){return e.enableAI?`<div data-boc-ai-button class="boc-ai-button">AI</div>`:``},node:function(e,t,n,r,i,a,o,s,c,l,d){var f=u.t(e.templateName,e.min,c),p=``;typeof f.node==`function`?p=f.node(e,t,f,r):u.isNEU(f.node)||(p=f.node,p&&=p.replaceAll(`{w}`,e.w).replaceAll(`{h}`,e.h)),f.defs&&(p=p.replaceAll(`{randId}`,u.ui._defsIds[e.templateName])),o??=r.nodeBinding;var m={node:e,data:t};for(var h in o){var g=o[h],_;t&&(_=t[g]),_??=e[g],m.element=f[h],m.value=_;var v=!1;typeof m.element==`function`&&(v=!0,m.element=m.element(e,t,f,r,m.value));var y=u._lblIsImg(r,h);if(m.name=g,m.field=h,u.events.publish(`field`,[l,m])!==!1&&m.value!=null&&m.value!=null&&m.element!=null){if(v)p+=m.element;else if(!y||y&&!u.isNEU(m.value)){if(!y&&typeof m.value==`string`){var b=m.element;b&&=b.replaceAll(`{ew}`,e.w-(e.padding?e.padding[1]:0)).replaceAll(`{cw}`,e.w/2),m.value=u.wrapText(m.value,b)}var x=m.element.replace(`{val}`,m.value);x=x.replaceAll(`{ew}`,e.w-(e.padding?e.padding[1]:0)).replaceAll(`{cw}`,e.w/2).replaceAll(`{randId}`,u.randomId()).replaceAll(`{randId2}`,u.randomId()),p+=x}}}var S=u._getPosition(n,e,i,a),C=`node`;Array.isArray(e.tags)&&e.tags.length&&(C+=` `+e.tags.join(` `)),e.layout&&(C+=` tree-layout`),d&&(C+=` treelist-pinned`);var w=``;e.lcn&&(w=`lcn="`+e.lcn+`"`);var T=u.nodeOpenTag.replace(`{lcn}`,w).replace(`{id}`,e.id).replace(`{class}`,C).replace(`{sl}`,e.sl).replace(`{level}`,e.level).replace(`{x}`,S.x).replace(`{y}`,S.y),E=u._getOpacity(n,e);return T=T.replace(`{opacity}`,E),p+=u.ui.nodeBtns(r,e,t,s,f,l),p=T+p+u.grCloseTag,p},nodeBtns:function(e,t,n,r,i,a){var o=``;return e.nodeMenu!=null&&!t.isSplit&&r!==u.action.exporting&&(typeof i.nodeMenuButton==`function`?o+=i.nodeMenuButton(t,n,i,e):u.isNEU(i.nodeMenuButton)||(o+=i.nodeMenuButton.replace(`{id}`,t.id).replace(`{cw}`,t.w/2).replace(`{ch}`,t.h/2).replace(`{ew}`,t.w-(t.padding?t.padding[1]:0)).replace(`{eh}`,t.h-(t.padding?t.padding[2]:0)))),o&&=`<g style="cursor:pointer;" ${u.attr.control_node_menu_id}="${t.id}">${o}</g>`,e.nodeCircleMenu!=null&&!t.isSplit&&r!==u.action.exporting&&(u.isNEU(i.nodeCircleMenuButton)||(o+=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,`+i.nodeCircleMenuButton.x+`,`+i.nodeCircleMenuButton.y+`)" `+u.attr.control_node_circle_menu_id+`="`+t.id+`"><circle cx="0" cy="0" fill="`+i.nodeCircleMenuButton.color+`" r="`+i.nodeCircleMenuButton.radius+`" stroke-width="1" stroke="`+i.nodeCircleMenuButton.stroke+`"></circle><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="-6" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="-6" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="0" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="0" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line><line x1="-`+i.nodeCircleMenuButton.radius/2+`" y1="6" x2="`+i.nodeCircleMenuButton.radius/2+`" y2="6" stroke-width="2" stroke="`+i.nodeCircleMenuButton.stroke+`"></line></g>`)),o},expandCollapseBtn:function(e,t,n,r,i,a,o){var s=``;if(a!==u.action.exporting&&!t.isSplit){var c=i[t.lcn?t.lcn:`base`],l=u.t(t.templateName,t.min,o);if(t.childrenIds.length>0){if(t.hasPartners){for(var d=!1,f=0;f<t.childrenIds.length;f++){var p=e.getNode(t.childrenIds[f]);p&&!p.parentPartner&&!p.isPartner&&(d=!0)}if(!d)return``}var m=u._getDefailtPositionForExpandCollpase(c,t),h={x:m.x+t.x-l.expandCollapseSize/2,y:m.y+t.y-l.expandCollapseSize/2},g=e.getCollapsedIds(t);g.length?(typeof l.plus==`function`?(s+=u.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.plus(t,n,l,r,m)):(s+=u.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,h.x).replace(`{y}`,h.y),s+=l.plus),s+=u.grCloseTag):(typeof l.minus==`function`?(s+=u.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.minus(t,n,l,r,m)):(s+=u.expcollOpenTag.replace(`{id}`,t.id).replace(`{x}`,h.x).replace(`{y}`,h.y),s+=l.minus),s+=u.grCloseTag),(g.length&&typeof l.plus!=`function`||!g.length&&typeof l.minus!=`function`)&&(s.indexOf(`{collapsed-children-count}`)!=-1&&(s=s.replace(`{collapsed-children-count}`,t.collapsedChildCount)),s.indexOf(`{collapsed-children-total-count}`)!=-1&&(s=s.replace(`{collapsed-children-total-count}`,t.deepCollapsedChildCount)),s.indexOf(`{children-count}`)!=-1&&(s=s.replace(`{children-count}`,t.childCount)),s.indexOf(`{children-total-count}`)!=-1&&(s=s.replace(`{children-total-count}`,t.deepChildCount)))}e._nodeHasHiddenParent(t)&&(s+=u.upOpenTag.replace(`{id}`,t.id).replace(`{x}`,t.x).replace(`{y}`,t.y),s+=l.up,s+=u.grCloseTag)}var _={html:s,node:t};return u.events.publish(`renderbuttons`,[e,_]),_.html},link:function(e,t,n,r,i,a,o){var s=e.lcn?e.lcn:`base`,c=t._layoutConfigs[s],l=u.t(e.templateName,e.min,n),d=[],f=[],p=0,m=c.levelSeparation/2;e.layout>0&&(m=c.mixedHierarchyNodesSeparation/2);var h=0,g=u.getRootOf(e).id,_=r[g][e.sl],v=void 0;if(e.hasPartners){v={ids:[],indexes:{},ppnodes:{},lastLeft:null,firstRight:null,maxSidePartnersWithChildren:0,rightIds:[],leftIds:[],partnerChildrenSplitSeparation:t.config.partnerChildrenSplitSeparation};for(var y=0;y<e.children.length;y++){var b=e.children[y];b.parentPartner?(v.ppnodes[b.id]=b.parentPartner,v.ids.push(b.id),b.parentPartner.isPartner==1?(v.rightIds.indexOf(b.parentPartner.id)==-1&&v.rightIds.push(b.parentPartner.id),v.indexes[b.id]=v.rightIds.indexOf(b.parentPartner.id),v.firstRight||=b):b.parentPartner.isPartner==2&&(v.leftIds.indexOf(b.parentPartner.id)==-1&&v.leftIds.push(b.parentPartner.id),v.indexes[b.id]=v.leftIds.indexOf(b.parentPartner.id),v.lastLeft=b)):b.isPartner||(v.lastLeft=b,v.firstRight||=b)}v.maxSidePartnersWithChildren=Math.max(v.leftIds.length,v.rightIds.length),h=v.maxSidePartnersWithChildren==0?t.config.minPartnerSeparation/2:t.config.minPartnerSeparation/2+v.partnerChildrenSplitSeparation*v.maxSidePartnersWithChildren+v.partnerChildrenSplitSeparation/2}for(var y=0;y<e.children.length;y++){var b=e.children[y],x=r[g][b.sl],S={xa:0,ya:0,xb:0,yb:0,xc:0,yc:0,xd:0,yd:0,x:0,y:0,rotate:0};l=u.t(b.templateName,b.min,n);var C=l.link;if(b.isChildOfPartner)switch(c.orientation){case u.orientation.top:case u.orientation.top_left:var w=b.layout==1?void 0:x.minY-(x.minY-_.maxY)/2;S=u.ui._linkTopToBottom(b.parentPartner,b,l,m,w,t);break;case u.orientation.bottom:case u.orientation.bottom_left:var w=b.layout==1?void 0:x.maxY-(x.maxY-_.minY)/2;S=u.ui._linkBottomToTop(b.parentPartner,b,l,m,w,t);break;case u.orientation.right:case u.orientation.right_top:var w=b.layout==1?void 0:x.maxX-(x.maxX-_.minX)/2;S=u.ui._linkRightToLeft(b.parentPartner,b,l,m,w,t);break;case u.orientation.left:case u.orientation.left_top:var w=b.layout==1?void 0:x.minX-(x.minX-_.maxX)/2;S=u.ui._linkLeftToRight(b.parentPartner,b,l,m,w,t);break}else if(v&&v.ids.indexOf(b.id)!=-1)switch(c.orientation){case u.orientation.top:case u.orientation.top_left:S=u.ui._linkPpTop(v,e,b,x,_,l);break;case u.orientation.bottom:case u.orientation.bottom_left:S=u.ui._linkPpBottom(v,e,b,x,_,l);break;case u.orientation.right:case u.orientation.right_top:S=u.ui._linkPpRight(v,e,b,x,_,l);break;case u.orientation.left:case u.orientation.left_top:S=u.ui._linkPpLeft(v,e,b,x,_,l);break}else{var T=b.isAssistant&&b.rightNeighbor&&b.rightNeighbor.isAssistant&&b.parent==b.rightNeighbor.parent,E=b.isAssistant&&b.leftNeighbor&&b.leftNeighbor.isAssistant&&b.parent==b.leftNeighbor.parent;if((T||b.layout>1)&&b.rightNeighbor&&b.rightNeighbor.isSplit)switch(c.orientation){case u.orientation.top:case u.orientation.top_left:S=u.ui._linkRightToLeft(b.rightNeighbor,b,l,m);break;case u.orientation.bottom:case u.orientation.bottom_left:S=u.ui._linkRightToLeft(b.rightNeighbor,b,l,m);break;case u.orientation.right:case u.orientation.right_top:S=u.ui._linkBottomToTop(b.rightNeighbor,b,l,m);break;case u.orientation.left:case u.orientation.left_top:S=u.ui._linkBottomToTop(b.rightNeighbor,b,l,m);break}else if((E||b.layout>1)&&b.leftNeighbor&&b.leftNeighbor.isSplit)switch(c.orientation){case u.orientation.top:case u.orientation.top_left:S=u.ui._linkLeftToRight(b.leftNeighbor,b,l,m,t);break;case u.orientation.bottom:case u.orientation.bottom_left:S=u.ui._linkLeftToRight(b.leftNeighbor,b,l,m,t);break;case u.orientation.right:case u.orientation.right_top:S=u.ui._linkTopToBottom(b.leftNeighbor,b,l,m,t);break;case u.orientation.left:case u.orientation.left_top:S=u.ui._linkTopToBottom(b.leftNeighbor,b,l,m,t);break}else switch(c.orientation){case u.orientation.top:case u.orientation.top_left:if(b.isPartner==1)S=u.ui._linkLeftToRight(e,b,l,h);else if(b.isPartner==2)S=u.ui._linkRightToLeft(e,b,l,h);else{var w=b.layout==1?void 0:x.minY-(x.minY-_.maxY)/2;S=u.ui._linkTopToBottom(e,b,l,m,w,t)}break;case u.orientation.bottom:case u.orientation.bottom_left:if(b.isPartner==1)S=u.ui._linkLeftToRight(e,b,l,h);else if(b.isPartner==2)S=u.ui._linkRightToLeft(e,b,l,h);else{var w=b.layout==1?void 0:x.maxY-(x.maxY-_.minY)/2;S=u.ui._linkBottomToTop(e,b,l,m,w,t)}break;case u.orientation.right:case u.orientation.right_top:if(b.isPartner==1)S=u.ui._linkTopToBottom(e,b,l,h);else if(b.isPartner==2)S=u.ui._linkBottomToTop(e,b,l,h);else{var w=b.layout==1?void 0:x.maxX-(x.maxX-_.minX)/2;S=u.ui._linkRightToLeft(e,b,l,m,w,t)}break;case u.orientation.left:case u.orientation.left_top:if(b.isPartner==1)S=u.ui._linkTopToBottom(e,b,l,h);else if(b.isPartner==2)S=u.ui._linkBottomToTop(e,b,l,h);else{var w=b.layout==1?void 0:x.minX-(x.minX-_.maxX)/2;S=u.ui._linkLeftToRight(e,b,l,m,w,t)}break}}var D,O=u.ui._draggableLinkPath(t,e,b,S,m,c.orientation);if(O)D=O,C=C.replaceAll(`{rounded}`,O).replaceAll(`{edge}`,O).replaceAll(`{curve}`,D);else if(C.indexOf(`{rounded}`)!=-1)if(S.xa==S.xb&&S.xa==S.xc&&S.xa==S.xd||S.ya==S.yb&&S.ya==S.yc&&S.ya==S.yd)D=`M`+S.xa+`,`+S.ya+` L`+S.xd+`,`+S.yd,C=C.replaceAll(`{rounded}`,D);else if(Math.abs(S.xa-S.xd)<=u.LINK_ROUNDED_CORNERS&&Math.abs(S.xa-S.xc)<=u.LINK_ROUNDED_CORNERS&&Math.abs(S.xa-S.xb)<=u.LINK_ROUNDED_CORNERS)D=`M`+S.xa+`,`+S.ya+` L`+S.xa+`,`+S.yd,C=C.replaceAll(`{rounded}`,D);else if(Math.abs(S.ya-S.yd)<=u.LINK_ROUNDED_CORNERS&&Math.abs(S.ya-S.yc)<=u.LINK_ROUNDED_CORNERS&&Math.abs(S.ya-S.yb)<=u.LINK_ROUNDED_CORNERS)D=`M`+S.xa+`,`+S.ya+` L`+S.xd+`,`+S.ya,C=C.replaceAll(`{rounded}`,D);else{var k=u.ui._roundedEdge(S.xa,S.ya,S.xb,S.yb,S.xc,S.yc),A=u.ui._roundedEdge(S.xb,S.yb,S.xc,S.yc,S.xd,S.yd);D=`M`+k.x1+`,`+k.y1+` `+k.x2+`,`+k.y2+` Q`+k.qx1+`,`+k.qy1+` `+k.qx2+`,`+k.qy2+` L`+A.x2+`,`+A.y2+` Q`+A.qx1+`,`+A.qy1+` `+A.qx2+`,`+A.qy2+` L`+A.x3+`,`+A.y3,C=C.replaceAll(`{rounded}`,D)}else C.indexOf(`{edge}`)==-1?C.indexOf(`{curve}`)==-1?(D=C.replaceAll(`{xa}`,S.xa).replaceAll(`{ya}`,S.ya).replaceAll(`{xb}`,S.xb).replaceAll(`{yb}`,S.yb).replaceAll(`{xc}`,S.xc).replaceAll(`{yc}`,S.yc).replaceAll(`{xd}`,S.xd).replaceAll(`{yd}`,S.yd),C=D):(D=`M`+S.xa+`,`+S.ya+` C`+S.xb+`,`+S.yb+` `+S.xc+`,`+S.yc+` `+S.xd+`,`+S.yd,C=C.replaceAll(`{curve}`,D)):(D=`M`+S.xa+`,`+S.ya+` `+S.xb+`,`+S.yb+` `+S.xc+`,`+S.yc+` L`+S.xd+`,`+S.yd,C=C.replaceAll(`{edge}`,D));d.push(u.linkOpenTag.replaceAll(`{id}`,e.id).replaceAll(`{class}`,`link `+b.tags.join(` `)).replaceAll(`{child-id}`,b.id));var j={node:e,cnode:b,p:S,html:C,action:a};u.events.publish(`render-link`,[t,j]),d.push(j.html),o&&f.push({id:e.id,childId:b.id,html:j.html});var M=``;for(var N in t.config.linkBinding){var P=t.config.linkBinding[N],F=t._get(b.id);F&&(j.value=F[P],j.element=l[N],j.name=P,u.events.publish(`label`,[t,j])!==!1&&!u.isNEU(j.value)&&!u.isNEU(j.element)&&(M+=j.element.replace(`{val}`,j.value)))}if(M!=``){var I=S.x,ee=S.y;b.movey!=null&&(ee+=b.movey),M=u.linkFieldsOpenTag.replace(`{x}`,I).replace(`{y}`,ee).replace(`{rotate}`,p)+M+u.grCloseTag,d.push(M)}d.push(u.grCloseTag)}return o?f:d.join(``)},svg:function(e,t,n,r,i,a){return u.t(r.template,!1,a).svg.replace(`{w}`,e).replace(`{h}`,t).replace(`{viewBox}`,n).replace(`{randId}`,u.ui._defsIds[r.template]).replace(`{mode}`,r.mode).replace(`{template}`,r.template).replace(`{content}`,function(){return i})},menuButton:function(e){return e.menu==null?``:u.t(e.template,!1).menuButton.replaceAll(`{p}`,e.padding)},_roundedEdge:function(e,t,n,r,i,a){var o=u.LINK_ROUNDED_CORNERS,s,c,l,d=0;return e==n&&e==i||t==r&&t==a?(s=l=n,c=d=r):(e!=i&&n==i&&(s=l=n,c=r,t<a?d=r+o:t>a&&(d=r-o)),e<i&&n==i?n-=o:e>i&&n==i&&(n+=o),t!=a&&r==a&&(s=n,c=d=r,e<i?l=n+o:e>i&&(l=n-o)),t<a&&r==a?r-=o:t>a&&r==a&&(r+=o)),{x1:e,y1:t,x2:n,y2:r,x3:i,y3:a,qx1:s,qy1:c,qx2:l,qy2:d}},_linkTopToBottom:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0;o=e.x+e.w/2+n.linkAdjuster.toX,s=e.y+e.h+n.linkAdjuster.toY,p=d=t.x+t.w/2+n.linkAdjuster.fromX,m=t.y+n.linkAdjuster.fromY,c=o,l=f=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.y+e.rightNeighbor.h+r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?m:t.templateName==`split`?s+r:i??m-r,h=d,g=u.isNEU(t.parentPartner)?f+16:f;var v={xa:o,ya:s,xb:c,yb:l,xc:d,yc:f,xd:p,yd:m,x:h,y:g,rotate:_};return a&&u._addConnectorLines(a._connectorLines,v),v},_linkBottomToTop:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0;o=e.x+e.w/2+n.linkAdjuster.toX,s=e.y+n.linkAdjuster.toY,p=d=t.x+t.w/2+n.linkAdjuster.fromX,m=t.y+t.h+n.linkAdjuster.fromY,c=o,l=f=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.y-r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?m:t.templateName==`split`?s-r:i??m+r,h=d,g=f-14;var v={xa:o,ya:s,xb:c,yb:l,xc:d,yc:f,xd:p,yd:m,x:h,y:g,rotate:_};return a&&u._addConnectorLines(a._connectorLines,v),v},_linkRightToLeft:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0;o=e.x+n.linkAdjuster.toX,s=e.y+e.h/2+n.linkAdjuster.toY,p=t.x+t.w+n.linkAdjuster.fromX,m=f=t.y+t.h/2+n.linkAdjuster.fromY,l=s,c=d=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.x-r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?p:t.templateName==`split`?o-r:i??p+r,h=d-16,g=f,_=90;var v={xa:o,ya:s,xb:c,yb:l,xc:d,yc:f,xd:p,yd:m,x:h,y:g,rotate:_};return a&&u._addConnectorLines(a._connectorLines,v),v},_linkLeftToRight:function(e,t,n,r,i,a){var o=0,s=0,c=0,l=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0;o=e.x+e.w+n.linkAdjuster.toX,s=e.y+e.h/2+n.linkAdjuster.toY,p=t.x+n.linkAdjuster.fromX,m=f=t.y+t.h/2+n.linkAdjuster.fromY,l=s,c=d=e.rightNeighbor&&e.rightNeighbor.isAssistant&&t.templateName==`split`?e.rightNeighbor.x+e.rightNeighbor.w+r:e.templateName==`split`&&(t.isAssistant||t.layout>1)?p:t.templateName==`split`?o+r:i??p-r,h=d+14,g=f,_=270;var v={xa:o,ya:s,xb:c,yb:l,xc:d,yc:f,xd:p,yd:m,x:h,y:g,rotate:_};return a&&u._addConnectorLines(a._connectorLines,v),v},_linkPpTop:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=o.y+o.h/2,c=r.minY-(r.minY-i.maxY)/2,l=(r.minY-i.maxY)/e.maxSidePartnersWithChildren/4,d=u.ui.__linkPpBottomTop(e,t,n,c,l,o),f=d.x;return c=d.mid,u.ui._linkTopToBottom({x:f,y:s,w:0,h:0},n,a,0,c)},_linkPpBottom:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=o.y+o.h/2,c=r.maxY-(r.maxY-i.minY)/2,l=(r.maxY-i.minY)/e.maxSidePartnersWithChildren/4,d=u.ui.__linkPpBottomTop(e,t,n,c,l,o),f=d.x;return c=d.mid,u.ui._linkBottomToTop({x:f,y:s,w:0,h:0},n,a,0,c)},_linkPpLeft:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=r.minX-(r.minX-i.maxX)/2,c=(r.minX-i.maxX)/e.maxSidePartnersWithChildren/4,l=o.x+o.w/2,d=u.ui.__linkPpLeftRight(e,t,n,s,c,o),f=d.y;return s=d.mid,u.ui._linkLeftToRight({x:l,y:f,w:0,h:0},n,a,0,s)},_linkPpRight:function(e,t,n,r,i,a){var o=e.ppnodes[n.id],s=r.maxX-(r.maxX-i.minX)/2,c=(r.maxX-i.minX)/e.maxSidePartnersWithChildren/4,l=o.x+o.w/2,d=u.ui.__linkPpLeftRight(e,t,n,s,c,o),f=d.y;return s=d.mid,u.ui._linkRightToLeft({x:l,y:f,w:0,h:0},n,a,0,s)},__linkPpBottomTop:function(e,t,n,r,i,a){var o=0;return a.isPartner==1?(o=a.x-t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&o<e.lastLeft.x+e.lastLeft.w/2?o<n.x+n.w/2?r-=(e.indexes[n.id]+1)*i:r-=(e.rightIds.length-e.indexes[n.id])*i:o<n.x+n.w/2?r+=(e.rightIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i):a.isPartner==2&&(o=a.x+a.w+t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&o>e.firstRight.x+e.firstRight.w/2?o<n.x+n.w/2?r-=(e.indexes[n.id]+1)*i:r-=(e.leftIds.length-e.indexes[n.id])*i:o<n.x+n.w/2?r+=(e.leftIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i),{x:o,mid:r}},__linkPpLeftRight:function(e,t,n,r,i,a){var o=0;return a.isPartner==1?(o=a.y-t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.rightIds.length-1)*e.partnerChildrenSplitSeparation/2,e.lastLeft&&o<e.lastLeft.y+e.lastLeft.h/2?o<n.y+n.h/2?r-=(e.indexes[n.id]+1)*i:r-=(e.rightIds.length-e.indexes[n.id])*i:o<n.y+n.h/2?r+=(e.rightIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i):a.isPartner==2&&(o=a.y+a.h+t.partnerSeparation/2+e.indexes[n.id]*e.partnerChildrenSplitSeparation-(e.leftIds.length-1)*e.partnerChildrenSplitSeparation/2,e.firstRight&&o>e.firstRight.y+e.firstRight.h/2?o<n.y+n.h/2?r-=(e.indexes[n.id]+1)*i:r-=(e.leftIds.length-e.indexes[n.id])*i:o<n.y+n.h/2?r+=(e.leftIds.length-e.indexes[n.id])*i:r+=(e.indexes[n.id]+1)*i),{y:o,mid:r}},_draggableLinkPath:function(e,t,n,r,i,a){if(n.isSubLevel||t.isSubLevel||n.leftNeighbor&&n.leftNeighbor.isSplit||n.rightNeighbor&&n.rightNeighbor.isSplit||n.isPartner||n.isAssistant)return null;if(u._isMoved(n)&&!u._isMoved(t)){var o,s,c=[];switch(a){case u.orientation.top:case u.orientation.top_left:if(r.yb+i/2<r.yd)return null;o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y-i/2;break;case u.orientation.bottom:case u.orientation.bottom_left:if(r.yb-i/2>r.yd)return null;o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y+n.h+i/2;break;case u.orientation.right:case u.orientation.right_top:if(r.xb-i/2>r.xd)return null;s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x+n.w+i/2;break;case u.orientation.left:case u.orientation.left_top:if(r.xb+i/2<r.xd)return null;s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x-i/2;break}switch(a){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,o,r.yb]),c.push([`L`,o,s]),c.push([`L`,r.xd,s]),c.push([`L`,r.xd,r.yd]);break;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:var c=[];c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,r.xb,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yd]),c.push([`L`,r.xd,r.yd]);break}return u.roundPathCorners(c,u.LINK_ROUNDED_CORNERS,!1)}else if(!u._isMoved(n)&&u._isMoved(t)){var o,s,l=!1,c=[];switch(a){case u.orientation.top:case u.orientation.top_left:if(r.ya+i/2>r.yb)l=!0,o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y+t.h+i;else if(r.yb+i/2<r.yd)return null;else o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y-i/2;break;case u.orientation.bottom:case u.orientation.bottom_left:if(r.ya-i/2<r.yb)l=!0,o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y-i;else if(r.yb-i/2>r.yd)return null;else o=r.xa<r.xd?n.x-i/2:n.x+n.w+i/2,s=n.y+n.h+i/2;break;case u.orientation.right:case u.orientation.right_top:if(r.xa-i/2<r.xb)l=!0,s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x-i;else if(r.xb-i/2>r.xd)return null;else s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x+n.w+i/2;break;case u.orientation.left:case u.orientation.left_top:if(r.xa+i/2>r.xb)l=!0,s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x+t.w+i;else if(r.xb+i/2<r.xd)return null;else s=r.ya<r.yd?n.y-i/2:n.y+n.h+i/2,o=n.x-i/2;break}if(l)switch(a){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yc]),c.push([`L`,r.xc,r.yc]),c.push([`L`,r.xd,r.yd]);break;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,r.xc,s]),c.push([`L`,r.xc,r.yc]),c.push([`L`,r.xd,r.yd]);break}else switch(a){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,o,r.yb]),c.push([`L`,o,s]),c.push([`L`,r.xd,s]),c.push([`L`,r.xd,r.yd]);break;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xb,r.yb]),c.push([`L`,r.xb,s]),c.push([`L`,o,s]),c.push([`L`,o,r.yd]),c.push([`L`,r.xd,r.yd]);break}return u.roundPathCorners(c,u.LINK_ROUNDED_CORNERS,!1)}else if(u._isMoved(n)&&u._isMoved(t)){var c=[];switch(a){case u.orientation.top:case u.orientation.top_left:if(r.ya+i>r.yd){var o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y+t.h+i,d=n.y-i;c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,d]),c.push([`L`,r.xc,d]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,t.y+t.h+i]),c.push([`L`,r.xc,t.y+t.h+i]),c.push([`L`,r.xd,r.yd]);break;case u.orientation.bottom:case u.orientation.bottom_left:if(r.ya-i<r.yd){var o=r.xa<r.xd?t.x+t.w+i/2:t.x-i/2,s=t.y-i,d=n.y+n.h+i;c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,s]),c.push([`L`,o,s]),c.push([`L`,o,d]),c.push([`L`,r.xc,d]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,r.xa,t.y-i]),c.push([`L`,r.xc,t.y-i]),c.push([`L`,r.xd,r.yd]);break;case u.orientation.right:case u.orientation.right_top:if(r.xa-i<r.xd){var s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x-i,f=n.x+n.w+i;c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,f,s]),c.push([`L`,f,r.yc]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,t.x-i,r.ya]),c.push([`L`,t.x-i,r.yc]),c.push([`L`,r.xd,r.yd]);break;case u.orientation.left:case u.orientation.left_top:if(r.xa+i>r.xd){var s=r.ya<r.yd?t.y+t.h+i/2:t.y-i/2,o=t.x+t.w+i,f=n.x-i;c.push([`M`,r.xa,r.ya]),c.push([`L`,o,r.ya]),c.push([`L`,o,s]),c.push([`L`,f,s]),c.push([`L`,f,r.yc]),c.push([`L`,r.xd,r.yd])}else c.push([`M`,r.xa,r.ya]),c.push([`L`,t.x+t.w+i,r.ya]),c.push([`L`,t.x+t.w+i,r.yc]),c.push([`L`,r.xd,r.yd]);break}return u.roundPathCorners(c,u.LINK_ROUNDED_CORNERS,!1)}return null}},u===void 0&&(u={}),u._validateConfig=function(e){if(!e)console.error(`config is not defined`);else return!0;return!1},u._arrayContains=function(e,t){if(e&&Array.isArray(e)){for(var n=e.length;n--;)if(e[n]===t)return!0}return!1},u._interceptions=function(e,t){if(!e||!t)return[];var n=[];if(Array.isArray(e)&&Array.isArray(t))for(var r in e)for(var i in t)e[r]==t[i]&&n.push(e[r]);else if(Array.isArray(e)&&!Array.isArray(t))for(var r in e)for(var i in t)e[r]==i&&n.push(e[r]);else if(!Array.isArray(e)&&Array.isArray(t))for(var r in e)for(var i in t)r==t[i]&&n.push(t[i]);return n},u._getTags=function(e){return e.tags&&!Array.isArray(e.tags)?e.tags.split(`,`):e.tags&&Array.isArray(e.tags)?e.tags:[]},u._centerPointInPercent=function(e,t,n){var r=e.getBoundingClientRect(),i=t-r.left,a=n-r.top;return[i/(r.width/100),a/(r.height/100)]},u._trim=function(e){return e.replace(/^\s+|\s+$/g,``)},u._getTransform=function(e){var t=e.getAttribute(`transform`);return t=t.replace(`matrix`,``).replace(`(`,``).replace(`)`,``),u._browser().msie&&(t=t.replace(/ /g,`,`)),t=u._trim(t),t=`[`+t+`]`,t=JSON.parse(t),t},u.getScale=function(e,t,n,r,i,a,o,s){var c=1;if(!e&&(r===u.match.boundary||r===u.match.boundaryIfOutside)){var l=t/o,d=n/s;c=l>d?d:l,r===u.match.boundaryIfOutside&&c>1&&(c=1)}else if(!e&&r===u.match.width)c=t/o;else if(!e&&r===u.match.height)c=n/s;else if(!e)c=r;else{var l=t/e[2],d=n/e[3];c=l>d?d:l}return c&&c>i&&(c=i),c&&c<a&&(c=a),c},u.isObject=function(e){return e&&typeof e==`object`&&!Array.isArray(e)&&e!==null&&e.constructor&&e.constructor.name.toLowerCase()==`object`},u.fileUploadDialog=function(e){var t=document.createElement(`INPUT`);t.setAttribute(`type`,`file`),t.style.display=`none`,t.onchange=function(){var t=this.files[0];e(t)},document.body.appendChild(t),t.click()},u.mergeDeep=function(e,t){if(u.isObject(e)&&u.isObject(t))for(var n in t)u.isObject(t[n])?(e[n]||Object.assign(e,{[n]:{}}),u.mergeDeep(e[n],t[n])):Object.assign(e,{[n]:t[n]});return e},u._lblIsImg=function(e,t){return!!(e.nodeBinding&&typeof t==`string`&&t.indexOf(`img`)!=-1&&e.nodeBinding[t])},u._getFistImgField=function(e){if(e.nodeBinding){for(var t in e.nodeBinding)if(t.indexOf(`img`)!=-1)return e.nodeBinding[t]}return!1},u._fieldIsImg=function(e,t){if(e.nodeBinding){for(var n in e.nodeBinding)if(e.nodeBinding[n]==t)return u._lblIsImg(e,n)}return!1},u._guid=function(){function e(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return e()+e()+`-`+e()+`-`+e()+`-`+e()+`-`+e()+e()+e()},u.htmlRipple=function(e){var t=document.createElement(`style`);t.type=`text/css`,t.innerHTML=` .boc-ripple-container {position: absolute; top: 0; right: 0; bottom: 0; left: 0; } .boc-ripple-container span {transform: scale(0);border-radius:100%;position:absolute;opacity:0.75;background-color:#fff;animation: boc-ripple 1000ms; }@-moz-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-webkit-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@-o-keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}@keyframes boc-ripple {to {opacity: 0;transform: scale(2);}}`,document.head.appendChild(t);var n=function(e,t){var n=void 0;return function(){var r,i=this;return r=arguments,clearTimeout(n),n=setTimeout(function(){return e.apply(i,r)},t)}},r=function(t){var n,r=this,i=document.createElement(`span`),a=r.offsetWidth,o,s,c;return n=r.getBoundingClientRect(),s=t.pageX-n.left-a/2,c=t.pageY-n.top-a/2,o=`top:`+c+`px; left: `+s+`px; height: `+a+`px; width: `+a+`px;`,e.rippleContainer.appendChild(i),i.setAttribute(`style`,o)},i=function(){for(;this.rippleContainer.firstChild;)this.rippleContainer.removeChild(this.rippleContainer.firstChild)},a=document.createElement(`div`);a.className=`boc-ripple-container`,e.addEventListener(`mousedown`,r),e.addEventListener(`mouseup`,n(i,2e3)),e.rippleContainer=a,e.appendChild(a)},u._moveToBoundaryArea=function(e,t,n,r){var i=t.slice(0);t[0]<n.left&&t[0]<n.right&&(i[0]=n.left>n.right?n.right:n.left),t[0]>n.right&&t[0]>n.left&&(i[0]=n.left>n.right?n.left:n.right),t[1]<n.top&&t[1]<n.bottom&&(i[1]=n.top>n.bottom?n.bottom:n.top),t[1]>n.bottom&&t[1]>n.top&&(i[1]=n.top>n.bottom?n.top:n.bottom),t[0]!==i[0]||t[1]!==i[1]?u.animate(e,{viewBox:t},{viewBox:i},300,u.anim.outPow,function(){r&&r()}):r&&r()},u.randomId=function(){return`_`+(`0000`+(Math.random()*36**4|0).toString(36)).slice(-4)},u._getClientXY=function(e){if(e.type.indexOf(`touch`)!=-1){if(e.changedTouches.length)return{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}}else return{x:e.clientX,y:e.clientY}},u._getClientTouchesXY=function(e,t){return e.type.indexOf(`touch`)==-1?{x:e.clientX,y:e.clientY}:e.touches.length<t+1?{x:null,y:null}:{x:e.touches[t].clientX,y:e.touches[t].clientY}},u._getOffset=function(e,t){e&&(t.x+=e.offsetLeft,t.y+=e.offsetTop,u._getOffset(e.offsetParent,t))},u._getTopLeft=function(e){var t={x:0,y:0};return u._getOffset(e,t),t},u._getOffsetXY=function(e,t){if(t.type.indexOf(`touch`)!=-1){if(t.touches.length){var n=u._getTopLeft(e);return{x:t.touches[0].pageX-n.x,y:t.touches[0].pageY-n.y}}else if(t.changedTouches.length){var n=u._getTopLeft(e);return isNaN(n.x)||isNaN(n.y)?{x:t.changedTouches[0].pageX,y:t.changedTouches[0].pageY}:{x:t.changedTouches[0].pageX-n.x,y:t.changedTouches[0].pageY-n.y}}}else return{x:t.offsetX,y:t.offsetY}},u._pinchMiddlePointInPercent=function(e,t,n,r){var i=u._getTopLeft(e),a=r.touches[0].pageX-i.x,o=r.touches[0].pageY-i.y,s=r.touches[1].pageX-i.x,c=r.touches[1].pageY-i.y;return[((a-s)/2+s)/(t/100),((o-c)/2+c)/(n/100)]},u._browser=function(){var e=!!window.opr&&!!window.opr.addons||!!window.opera||navigator.userAgent.indexOf(` OPR/`)>=0,t=typeof InstallTrigger<`u`,n=/constructor/i.test(window.HTMLElement)||(function(e){return e.toString()===`[object SafariRemoteNotification]`})(!window.safari||window.safari!==void 0&&safari.pushNotification),r=!!document.documentMode,i=!r&&!!window.StyleMedia,a=!!window.chrome&&(!!window.chrome.webstore||!!window.chrome.runtime);return{opera:e,firefox:t,safari:n,msie:r,edge:i,chrome:a,blink:(a||e)&&!!window.CSS}},u._menuPosition=function(e,t,n){var r=e.getBoundingClientRect(),i=n.getBoundingClientRect(),a=t.getBoundingClientRect(),o=r.left-i.left,s=r.top-i.top;return r.top+a.height>i.top+i.height&&(s-=a.height),r.left-a.width<i.left&&(o+=a.width),{x:o,y:s}},u._getTemplate=function(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++){var i=t[e[r]];if(i&&i.template)return i.template}return n},u._getMin=function(e,t){if(e.tags&&e.tags.length&&t.tags)for(var n=0;n<e.tags.length;n++){var r=t.tags[e.tags[n]];if(r&&r.min===!0)return!0}return t.min},u._getSubLevels=function(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var r=t[e[n]];if(r&&r.subLevels)return r.subLevels}return 0},u._isHTML=function(e){var t=new DOMParser().parseFromString(e,`text/html`);return Array.from(t.body.childNodes).some(e=>e.nodeType===1)},u._getTestDiv=function(){var e=document.getElementById(`orgchart_js_test_div`);return e||(e=document.createElement(`div`),e.id=`orgchart_js_test_div`,e.style.position=`fixed`,e.style.top=`-10000px`,e.style.left=`-10000px`,document.body.appendChild(e)),e},u._getLabelSize=function(e){var t=u._getTestDiv();return t.innerHTML=`<svg>`+e+`</svg>`,t.querySelector(`text`).getBoundingClientRect()},u.wrapText=function(e,t,n,r){if(n!=null&&r!=null)return u._lineClamp(t,e,n,r);var i=t,a=i.toLowerCase();if(a.indexOf(`<text`)==-1||a.indexOf(u.attr.width)==-1||a.indexOf(`foreignobject`)!=-1||i.indexOf(u.attr.width)==-1||u.ESCAPE_HTML&&typeof str==`string`&&u._isHTML(e))return u._escapeHtml(e);if(!u.ESCAPE_HTML&&u._isHTML(e))return e;var o=u._getTestDiv();i=i.replaceAll(`{cw}`,0),o.innerHTML=`<svg>`+i+`</svg>`;var s=new DOMParser().parseFromString(i,`text/xml`).getElementsByTagName(`text`)[0],c=parseFloat(s.getAttribute(`x`)),l=parseFloat(s.getAttribute(`y`)),d=s.getAttribute(`text-anchor`),n=s.getAttribute(u.attr.width),f=s.getAttribute(u.attr.text_overflow),p=`http://www.w3.org/2000/svg`,m=o.getElementsByTagName(`svg`)[0].getElementsByTagName(`text`)[0],r,h;f||=`ellipsis`;var g=f.split(`-`);if(g.length>1&&(r=parseInt(f.split(`-`)[1]),g.length>2&&g[2]==`ellipsis`&&(h=!0)),!n)return u._escapeHtml(e);if(n=parseFloat(n),c||=0,l||=0,c||(d=`start`),f==`ellipsis`){m.removeChild(m.firstChild),m.textContent=e;for(var _=m.getComputedTextLength(),v=2;_>n;)m.textContent=e.substring(0,e.length-v),m.textContent+=`...`,_=m.getComputedTextLength(),v++;return v>2?`<title>${u._escapeHtml(e)}</title>${m.textContent}`:u._escapeHtml(e)}else if(f.indexOf(`multiline`)!=-1){var y=e.split(` `),b=m.getBBox().height;m.textContent=``;var x=document.createElementNS(p,`tspan`),S=document.createTextNode(y[0]);x.setAttributeNS(null,`x`,c),x.setAttributeNS(null,`y`,l),x.setAttributeNS(null,`text-anchor`,d),x.appendChild(S),m.appendChild(x);for(var v=1,C=1,w=!1,T=1;T<y.length;T++){var E=x.firstChild.data.length;if(x.firstChild.data+=` `+y[T],x.getComputedTextLength()>n){if(x.firstChild.data=x.firstChild.data.slice(0,E),C++,r&&C>r){if(h&&m.children.length==r){var D=m.children[r-1].textContent;m.children[r-1].textContent=D.substring(0,D.length-3)+`...`,w=!0}break}var x=document.createElementNS(p,`tspan`);x.setAttributeNS(null,`x`,c),x.setAttributeNS(null,`y`,l+b*v),x.setAttributeNS(null,`text-anchor`,d),S=document.createTextNode(y[T]),x.appendChild(S),m.appendChild(x),v++}}var O=``;if(m.innerHTML!=null)O=m.innerHTML,m.innerHTML=``;else{for(var k=``,T=m.childNodes.length-1;T>=0;T--)k=XMLSerializer().serializeToString(m.childNodes[T])+k,m.removeChild(m.childNodes[T]);O=k}return w?`<title>${u._escapeHtml(e)}</title>${O}`:O}},u._downloadFile=function(e,t,n,r,i){var a=new Blob([t],{type:e});if(r==1){var o=URL.createObjectURL(a);window.open(o,`_blank`).focus()}else if(navigator.msSaveBlob)navigator.msSaveBlob(a,n);else{var s=document.createElement(`a`);if(s.download!==void 0){var o=URL.createObjectURL(a);s.setAttribute(`href`,o);var c=n;c.toLowerCase().endsWith(i.toLowerCase())||(c=c+`.`+i),s.setAttribute(`download`,c),s.style.visibility=`hidden`,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}},u._getPosition=function(e,t,n,r){var i={x:t.x,y:t.y};if(n!=null&&(i.x=n),r!=null&&(i.y=n),e&&e.length==3){var a=e[0].indexOf(t.id);a!=-1&&e[1][a].transform!=null&&(n??(i.x=e[1][a].transform[4]),r??(i.y=e[1][a].transform[5]))}return i},u._getOpacity=function(e,t){var n=1;if(e&&e.length==3){var r=e[0].indexOf(t.id);r!=-1&&e[1][r].opacity!=null&&(n=e[1][r].opacity)}return n},u.t=function(e,t,n){var r=u.templates[e];r??console.error(`Template "${e}" does not exist!`);var i=null;if(n!=null&&r.scaleLessThen){var a=[];for(var o in r.scaleLessThen){var s=parseFloat(o);n<s&&a.push(s)}if(a.length>0){a.sort(function(e,t){return e-t});var c=r.scaleLessThen[a[0]];for(var l in c)i??=Object.assign({},r),i[l]=c[l]}}return t?i==null?r.min?r.min:r:i.min?i.min:i:i??r},u.setNodeSize=function(e){var t=u.t(e.templateName,e.min);e.w=t&&t.size?t.size[0]:0,e.h=t&&t.size?t.size[1]:0},u._imgs2base64=function(e,t,n,r){var i=e.getElementsByTagName(t),a=i.length;a==0&&r();for(var o=0;o<a;o++)(function(){var e=o,t=i[e];u._getDataUri(t.getAttribute(n),function(i){i.success&&t.setAttribute(n,i.result),e==a-1&&r()})})()},u._getDataUri=function(e,t){if(e.indexOf(`base64`)!=-1)t({success:!1});else{var n=new XMLHttpRequest;n.open(`GET`,e),n.responseType=`blob`,n.onload=function(){n.status===200?r.readAsDataURL(n.response):n.status===404&&t({success:!1,result:n.status})};var r=new FileReader;r.onloadend=function(){t({success:!0,result:r.result})},n.send()}},u._convertStringToArray=function(e,t){return u.ARRAY_FIELDS.indexOf(e)==-1?t:u.isNEU(t)?[]:t.split(`,`)},u._convertArrayToString=function(e){return!u.isNEU(e)&&Array.isArray(e)?e.join():e},u._csvToArray=function(e,t){t||=u.CSV_DELIMITER;for(var n=RegExp(`(\\`+t+`|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\`+t+`\\r\\n]*))`,`gi`),r=[[]],i=null;i=n.exec(e);){var a=i[1];a.length&&a!==t&&r.push([]);var o=i[2]?i[2].replace(RegExp(`""`,`g`),`"`):i[3];r[r.length-1].push(o)}return r},u._json2xml=function(e){for(var t=document.implementation.createDocument(``,``,null),n=t.createElement(`nodes`),r=0;r<e.length;r++){var i=t.createElement(`node`),a=e[r];for(var o in a){var s=a[o];i.setAttribute(o,u._convertArrayToString(s))}n.appendChild(i)}return t.appendChild(n),`<?xml version="1.0" encoding="utf-8" ?>`+new XMLSerializer().serializeToString(t.documentElement)},u._xml2json=function(e){for(var t=new DOMParser().parseFromString(e,`text/xml`).getElementsByTagName(`node`),n=[],r=0;r<t.length;r++){for(var i=t[r],a={},o=0;o<i.attributes.length;o++){var s=i.attributes[o];a[s.name]=u._convertStringToArray(s.name,s.value)}n.push(a)}return n},u.convertNodesToCsv=function(e){return u._json2csv(e)},u._json2csv=function(e){for(var t=[],n=function(e){for(var n=``,r=0;r<t.length;r++){var i=t[r]==`reportsTo`?null:e[t[r]]==null?``:e[t[r]];i instanceof Date&&(i=i.toLocaleString()),i=i===null?``:i.toString();var a=i.replace(/"/g,`""`),o=RegExp(`("|;|
231
+ )`,`g`);a.search(o)>=0&&(a=`"`+a+`"`),r>0&&(n+=u.CSV_DELIMITER),n+=a}return n+`
232
+ `},r=``,i=0;i<e.length;i++)for(var a in e[i])u._arrayContains(t,a)||(t.push(a),r+=a+u.CSV_DELIMITER);r=r.substring(0,r.length-1),r+=`
233
+ `;for(var i=0;i<e.length;i++)r+=n(e[i]);return r=r.substring(0,r.length-1),r},u.accentFold=function(e){return e=e.toString().toLowerCase(),e.replace(/([àáâãäå])|([ç])|([èéêë])|([ìíîï])|([ñ])|([òóôõöø])|([ß])|([ùúûü])|([ÿ])|([æ])/g,function(e,t,n,r,i,a,o,s,c,l,u){if(t)return`a`;if(n)return`c`;if(r)return`e`;if(i)return`i`;if(a)return`n`;if(o)return`o`;if(s)return`s`;if(c)return`u`;if(l)return`y`;if(u)return`ae`})},u.copy=function(e){if(typeof e!=`object`||!e||`isActiveClone`in e)return e;if(e instanceof Date)var t=new e.constructor;else var t=e.constructor();for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e.isActiveClone=null,t[n]=u.copy(e[n]),delete e.isActiveClone);return t},u._getScrollSensitivity=function(){var e=u._browser();return e.msie&&u.scroll.ie?u.scroll.ie:e.edge&&u.scroll.edge?u.scroll.edge:e.safari&&u.scroll.safari?u.scroll.safari:e.chrome&&u.scroll.chrome?u.scroll.chrome:e.firefox&&u.scroll.firefox?u.scroll.firefox:e.opera&&u.scroll.opera?u.scroll.opera:{smooth:u.scroll.smooth,speed:u.scroll.speed}},u.isMobile=function(){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e),n=navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1;return t||n},u._isTouchDevice=function(){return navigator.maxTouchPoints>0},u.isTrial=function(){return u.remote!==void 0},u.childrenCount=function(e,t){for(var n=0,r=0;r<t.childrenIds.length;r++)e.nodes[t.childrenIds[r]]&&n++;return n},u.childrenTotalCount=function(e,t){for(var n=0,r=0;r<t.childrenIds.length;r++){var i=e.nodes[t.childrenIds[r]];i&&(n++,n+=u.childrenTotalCount(e,i))}return n},u.collapsedChildrenCount=function(e,t){for(var n=0,r=0;r<t.childrenIds.length;r++){var i=e.nodes[t.childrenIds[r]];i&&i.collapsed===!0&&n++}return n},u.collapsedChildrenTotalCount=function(e,t,n){for(var r=0,i=0;i<t.childrenIds.length;i++){var a=e.nodes[t.childrenIds[i]];a&&((n||a.collapsed===!0)&&r++,r+=u.collapsedChildrenTotalCount(e,a,!0))}return r},u._setMinMaxXY=function(e,t,n){n&&e.isTreeListItem||((t.minX==null||e.x!=null&&e.x<t.minX)&&(t.minX=e.x),(t.minY==null||e.y!=null&&e.y<t.minY)&&(t.minY=e.y),(t.maxX==null||e.x!=null&&e.x+e.w>t.maxX)&&(t.maxX=e.x+e.w),(t.maxY==null||e.y!=null&&e.y+e.h>t.maxY)&&(t.maxY=e.y+e.h))},u.getStParentNodes=function(e,t){for(t||=[];e.parent;)e=e.parent;return e.stParent&&(t.push(e.stParent),u.getStParentNodes(e.stParent,t)),t},u.getRootOf=function(e){for(;e&&e.parent;)e=e.parent;return e},u._getViewBox=function(e){var t=null;return e?(t=e.getAttribute(`viewBox`),t=`[`+t+`]`,t=t.replace(/\ /g,`,`),t=JSON.parse(t),t):null},u.isNEU=function(e){return e==null||e===``},u.gradientCircleForDefs=function(e,t,n,r){Array.isArray(t)||(t=[t,t,t,t,t,t]);function i(e,t,n,r){var i=(r-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}}function a(e,t,n,r,a){var o=i(e,t,n,a),s=i(e,t,n,r),c=a-r<=180?`0`:`1`;return[`M`,o.x,o.y,`A`,n,n,0,c,0,s.x,s.y].join(` `)}return`<linearGradient id="${e}_linearColors1" x1="0" y1="0" x2="1" y2="1">
234
+ <stop offset="0%" stop-color="${t[0]}"></stop>
235
+ <stop offset="100%" stop-color="${t[1]}"></stop>
236
+ </linearGradient>
237
+ <linearGradient id="${e}_linearColors2" x1="0.5" y1="0" x2="0.5" y2="1">
238
+ <stop offset="0%" stop-color="${t[1]}"></stop>
239
+ <stop offset="100%" stop-color="${t[2]}"></stop>
240
+ </linearGradient>
241
+ <linearGradient id="${e}_linearColors3" x1="1" y1="0" x2="0" y2="1">
242
+ <stop offset="0%" stop-color="${t[2]}"></stop>
243
+ <stop offset="100%" stop-color="${t[3]}"></stop>
244
+ </linearGradient>
245
+ <linearGradient id="${e}_linearColors4" x1="1" y1="1" x2="0" y2="0">
246
+ <stop offset="0%" stop-color="${t[3]}"></stop>
247
+ <stop offset="100%" stop-color="${t[4]}"></stop>
248
+ </linearGradient>
249
+ <linearGradient id="${e}_linearColors5" x1="0.5" y1="1" x2="0.5" y2="0">
250
+ <stop offset="0%" stop-color="${t[4]}"></stop>
251
+ <stop offset="100%" stop-color="${t[5]}"></stop>
252
+ </linearGradient>
253
+ <linearGradient id="${e}_linearColors6" x1="0" y1="1" x2="1" y2="0">
254
+ <stop offset="0%" stop-color="${t[5]}"></stop>
255
+ <stop offset="100%" stop-color="${t[0]}"></stop>
256
+ </linearGradient>
257
+ <g id="${e}">
258
+ <path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors1)" d="${a(n,n,n,1,60)}" />
259
+ <path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors2)" d="${a(n,n,n,60,120)}"/>
260
+ <path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors3)" d="${a(n,n,n,120,180)}" />
261
+ <path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors4)" d="${a(n,n,n,180,240)}" />
262
+ <path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors5)" d="${a(n,n,n,240,300)}" />
263
+ <path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors6)" d="${a(n,n,n,300,1)}"/>
264
+ </g>`},u._intersectionObserver=function(e,t){typeof IntersectionObserver==`function`?new IntersectionObserver(function(e,n){e.forEach(function(e){var n=e.intersectionRatio>0;e.intersectionRatio==0&&(n=e.isIntersecting),t(n)})}).observe(e):t(!0)},u.convertCsvToNodes=function(e){for(var t=u._csvToArray(e),n=t[0],r=[],i=1;i<t.length;i++){for(var a={},o=0;o<t[i].length;o++){var s=n[o],c=t[i][o];a[n[o]]=u._convertStringToArray(s,c)}a.id.trim()!=``&&r.push(a)}return r},u._escapeHtml=function(e){return u.ESCAPE_HTML&&typeof e==`string`?e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#039;`):e},u._escapeDoubleQuotes=function(e){return typeof e==`string`?e.replace(/"/g,`&quot;`):e},u._escapeGreaterLessSign=function(e){return typeof e==`string`?e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`):e},u.roundPathCorners=function(e,t,n){function r(e,t,n){var r=t.x-e.x,a=t.y-e.y,o=Math.sqrt(r*r+a*a);return i(e,t,Math.min(1,n/o))}function i(e,t,n){return{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function a(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function o(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}Array.isArray(e)||(e=e.split(/[,\s]/).reduce(function(e,t){var n=t.match(`([a-zA-Z])(.+)`);return n?(e.push(n[1]),e.push(n[2])):e.push(t),e},[]),e=e.reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]));var s=[];if(e.length>1){var c=o(e[0]),l=null;e[e.length-1][0]==`Z`&&e[0].length>2&&(l=[`L`,c.x,c.y],e[e.length-1]=l),s.push(e[0]);for(var u=1;u<e.length;u++){var d=s[s.length-1],f=e[u],p=f==l?e[1]:e[u+1];if(p&&d&&d.length>2&&f[0]==`L`&&p.length>2&&p[0]==`L`){var m=o(d),h=o(f),g=o(p),_,v;n?(_=i(h,d.origPoint||m,t),v=i(h,p.origPoint||g,t)):(_=r(h,m,t),v=r(h,g,t)),a(f,_),f.origPoint=h,s.push(f);var y=i(_,h,.5),b=i(h,v,.5),x=[`C`,y.x,y.y,b.x,b.y,v.x,v.y];x.origPoint=h,s.push(x)}else s.push(f)}if(l){var S=o(s[s.length-1]);s.push([`Z`]),a(s[0],S)}}else s=e;return s.reduce(function(e,t){return e+t.join(` `)+` `},``)},u._isMoved=function(e){return e.movex!=null||e.movey!=null},u._getDynamicGridCoulumns=function(e){for(var t=1;t<e&&(e/t,!(e/t-t<=0));t++);return t%2!=0&&t>2&&t--,t},u._getLazyLoading=function(e){var t=e.lazyLoading;return t==`auto`&&(t=!!(e&&e.nodes&&e.nodes.length>700)),t},u._getSvgAttributes=function(e){let t=/width="([\d.]+)"/,n=/height="([\d.]+)"/,r=/x="([\d.]+)"/,i=/y="([\d.]+)"/,a=/viewBox="([^"]+)"/,o=e.match(t),s=e.match(n),c=e.match(r),l=e.match(i),u=e.match(a),d=o?parseFloat(o[1]):0,f=s?parseFloat(s[1]):0,p=c?parseFloat(c[1]):0,m=l?parseFloat(l[1]):0,h=[0,0,0,0];return u&&(h=u[1],h=JSON.parse(`[${h}]`)),{width:d,height:f,viewBox:h,x:p,y:m}},u._setSvgAttributes=function(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.viewBox.join(`,`);let s=e.match(/<svg\s+([^>]*?)>/);if(!s)return e;let c=s[0],l=s[1],u=(e,t,n)=>{if(n==null)return e;let r=RegExp(`\\s*${t}="[^"]*"`,`i`),i=` ${t}="${n}"`;return e.match(r)?e.replace(r,i):e+i};l=u(l,`x`,n),l=u(l,`y`,r),l=u(l,`width`,i),l=u(l,`height`,a),l=u(l,`viewBox`,o);let d=`<svg ${l}>`;return e.replace(c,d)},u._convertTextToNodes=function(e,t){let n=e.split(/\r?\n/).filter(e=>e.trim()!==``),r=[],i=1,a=[];for(let e of n){let n=0;for(;e.startsWith(t);)e=e.slice(t.length),n++;if(e=e.trim(),!e)continue;let o=e.match(/^\[([^\]]+)](.*)$/);if(o){let e=o[1].trim(),t=o[2].trim();a.length>0&&(a[a.length-1][e]=t);continue}let s=e.match(/^([^\(]+)\(([^)]+)\)$/),c,l=[];s?(c=s[1].trim(),l=s[2].split(`,`).map(e=>e.trim())):c=e;let u=n===0?null:a[n-1].id,d={id:i++,pid:u,name:c,tags:l};a[n]=d,a.length=n+1,r.push(d)}return r},u._convertFromNodesToText=function(e,t){let n={},r=[];e.forEach(e=>{n[e.id]={...e,children:[]}}),e.forEach(e=>{e.pid&&n[e.pid]?n[e.pid].children.push(n[e.id]):r.push(n[e.id])});function i(e,n){let r=t.repeat(n),a=r+e.name;Array.isArray(e.tags)&&e.tags.length>0&&(a+=`(`+e.tags.join(`,`)+`)`),a+=`
265
+ `;for(let t of Object.keys(e))[`id`,`pid`,`name`,`children`,`tags`].includes(t)||(a+=r+`[`+t+`]`+e[t]+`
266
+ `);for(let t of e.children)a+=i(t,n+1);return a}return r.map(e=>i(e,0)).join(``).trim()},u._onClickHandler=function(e,t,n,r,i){var a;if(n===void 0)if(t===`add`){var o={id:e.generateId(),pid:r};e.addNode(o,null,!0)}else if(t===`edit`){var s=e.getNode(r);e.editUI.show(s.id)}else if(t===`details`){var s=e.getNode(r);e.editUI.show(s.id,!0)}else if(t===`remove`)e.removeNode(r,null,!0);else if(t===`svg_export`||t===`svg`){var c={};u.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToSVG(c)}else if(t===`pdf_export`||t===`pdf`){var c={};u.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPDF(c)}else if(t===`png_export`||t===`png`){var c={};u.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPNG(c)}else if(t===`visio_export`||t===`visio`)e.exportToVisio({nodeId:r});else if(t===`pp_export`||t===`powerpoint`)e.exportToPowerPoint();else if(t===`pp_preview`||t===`pppreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.powerPointPreviewUI.show(c)}else if(t===`pdf_preview`||t===`pdfpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.pdfPreviewUI.show(c)}else if(t===`svg_preview`||t===`svgpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.svgPreviewUI.show(c)}else if(t===`png_preview`||t===`pngpreview`){var c={parentLevels:0,childLevels:1,expandChildren:!1,pages:[{parentLevels:null,childLevels:null,expandChildren:!0,nodeId:e.roots[0].id}]};r!=null&&(c.expandChildren=!1,c.pages[0].nodeId=r),e.pngPreviewUI.show(c)}else t===`csv_export`||t===`csv`?e.exportToCSV({nodeId:r}):t===`xml_export`||t===`xml`?e.exportToXML({nodeId:r}):t===`json_export`||t===`json`?e.exportToJSON({nodeId:r}):t===`fit`?e.fit():t===`expand_all`?e.expand(null,`all`):t===`full_screen`?e.toggleFullScreen():t===`zoom_in`?e.zoom(!0,null,!0):t===`zoom_out`||t===`zoom_out`?e.zoom(!1,null,!0):t===`layout_mixed`?e.setLayout(u.layout.mixed):t===`layout_normal`?e.setLayout(u.layout.normal):t===`layout_right_offset`?e.setLayout(u.layout.treeRightOffset):t===`layout_left_offset`?e.setLayout(u.layout.treeLeftOffset):t===`layout_tree`?e.setLayout(u.layout.tree):t===`layout_grid`&&e.setLayout(u.layout.grid);else a=n.call(e,r,i);return a},u._isSVG=function(e){if(typeof e!=`string`)return!1;let t=e.trim();if(!t.startsWith(`<svg`)||!t.endsWith(`</svg>`))return!1;try{let e=new DOMParser().parseFromString(t,`image/svg+xml`);return e.querySelector(`parsererror`)?!1:e.documentElement.nodeName.toLowerCase()===`svg`}catch{return!1}},u._treeListAdjustToSTNodePostition=function(e,t){for(var n of e)n.y+=t.y+t.padding[0],n.x+=t.x+t.padding[3],u._treeListAdjustToSTNodePostition(n.children,t)},u._treeListSetProps=function(e,t){var n=-e.treeList.scrollTop,r={nodesByLevels:[],lastNode:null,y:0};e.treeList.pinnedIds=[],u._treeListIterate(e.stChildren,r,-1);var i=r.lastNode.y+r.lastNode.h-0-(e.treeList.maxHeight-e.padding[0]-e.padding[2]);n>0||i<0?n=0:n!=0&&n*-1>i&&(n=-i);for(var a=r.nodesByLevels.length-1;a>=0;a--)for(var o=r.nodesByLevels[a],s=o.length-1;s>=0;s--){for(var c=o[s],l=c.y,d=0,f=c.parent;f&&(d+=f.h,f.parent);)f=f.parent;if(c.children.length&&c.y+n<=d){l=-n+d;var p=o[s+1];if(p&&p.y<l+c.h&&(l=p.y-c.h),f){var m=e.stChildren.indexOf(f);if(e.stChildren.length>m+1){var h=e.stChildren[m+1];h.y<l+c.h&&(l=h.y-c.h)}}}c.y!=l&&e.treeList.pinnedIds.push(c.id),c.y=l,c.x=0}if(t==u.orientation.bottom){var g=r.lastNode.y+r.lastNode.h;for(var a of r.nodesByLevels)for(var c of a)c.y=g-c.y-c.h}e.treeList.scrollTop=-n,e.treeList.scrollTopMax=i},u._treeListIterate=function(e,t,n){n++;for(var r of e)r.y=t.y,t.y+=r.h,t.nodesByLevels[n]||(t.nodesByLevels[n]=[]),t.nodesByLevels[n].push(r),t.lastNode=r,u._treeListIterate(r.children,t,n)},u._treeListGetTumbPositionFromScrollTop=function(e){var t=e.h-e.padding[0]-e.padding[2],n=t/((e.treeList.scrollTopMax+t)/100),r=t/100*n,i=t-r,a=-e.treeList.scrollTop/(e.treeList.scrollTopMax/100),o=e.y+e.padding[0]+i/-100*a,s=`initial`;return(isNaN(r)||isNaN(o)||r<0||n>100)&&(s=`none`,r=0,o=0),{thumbHeight:r,thumbPosition:o,scrollBarDisplay:s}},u._treeListGetScrollTopFromTumbPosition=function(e,t,n){var r=e.h-e.padding[0]-e.padding[2]-t,i=(n-(e.y+e.padding[0]))/r*100/100*e.treeList.scrollTopMax;return(isNaN(i)||i<0)&&(i=0),i>e.treeList.scrollTopMax&&(i=e.treeList.scrollTopMax),i},u._getCenterNodeFromParams=function(e,t){var n=e[t.id];if(n){if(n.isTreeListItem){for(;!n.stParent;)n=n.parent;n=n.stParent}return n}return null},u._getScrollTopForNode=function(e,t){var n={nodesByLevels:[],lastNode:null,y:0};u._treeListIterate(e.stChildren,n,-1);var r=null;for(var i of n.nodesByLevels){for(var a of i)if(a.id==t){r=a;break}if(r)break}if(!r)return e.treeList.scrollTop;for(var o=0,s=r.parent;s&&(o+=s.h,s.parent);)s=s.parent;var c=e.padding[0],l=e.padding[2],d=e.treeList.maxHeight-c-l,f=n.lastNode.y+n.lastNode.h-d;f<0&&(f=0);var p=e.treeList.scrollTop,m=r.y-o,h=r.y+r.h-d,g=p;return r.y<p+o?g=m:r.y+r.h>p+d&&(g=r.h>d-o?m:h),g<0?g=0:g>f&&(g=f),g},u._getDefailtPositionForExpandCollpase=function(e,t){var n={x:0,y:0};switch(e.orientation){case u.orientation.top:case u.orientation.top_left:n.x=t.w/2,n.y=t.h;break;case u.orientation.bottom:case u.orientation.bottom_left:n.x=t.w/2,n.y=0;break;case u.orientation.right:case u.orientation.right_top:n.x=0,n.y=t.h/2;break;case u.orientation.left:case u.orientation.left_top:n.x=t.w,n.y=t.h/2;break}return n},u._measureCache={svg:null,text:null},u._getMeasureElement=function(){if(u._measureCache.svg)return u._measureCache.text;let e=`http://www.w3.org/2000/svg`;return u._measureCache.svg=document.createElementNS(e,`svg`),u._measureCache.svg.id=`orgchart_js_test__measure`,u._measureCache.svg.style.cssText=`position:absolute;top:-9999px;visibility:hidden;white-space:pre;`,u._measureCache.text=document.createElementNS(e,`text`),u._measureCache.svg.appendChild(u._measureCache.text),document.body.appendChild(u._measureCache.svg),u._measureCache.text},u._lineClamp=function(e,t,n,r){if(t===void 0||t==null)return``;typeof t!=`string`&&(t=t.toString()),t=u._escapeHtml(t);let i=/(\w+(?:-\w+)?)="([^"]*)"/g,a={},o;for(;(o=i.exec(e))!==null;)a[o[1]]=o[2];let s=u._getMeasureElement();s.textContent=``;for(let[e,t]of Object.entries(a))e!==`x`&&e!==`y`&&s.setAttribute(e,t);let c=e=>(s.textContent=e,s.getComputedTextLength()),l=t.split(` `),d=[],f=``,p=0;for(;p<l.length&&d.length<r;){let e=l[p],t=f?f+` `+e:e;if(c(t)<=n)f=t,p++;else if(f===``){let t=0,r=e.length,i=1;for(;t<=r;){let a=t+r>>1;c(e.slice(0,a))<=n?(i=a,t=a+1):r=a-1}d.push(e.slice(0,i)),l[p]=e.slice(i)}else d.push(f),f=``}f&&d.length<r&&d.push(f);let m=p<l.length||p===l.length&&l[p-1]===``&&t.endsWith(` `);if(m&&d.length>0){let e=d[d.length-1],t=0,r=e.length,i=``;for(;t<=r;){let a=Math.floor((t+r)/2),o=e.substring(0,a)+`...`;c(o)<=n?(i=o,t=a+1):r=a-1}d[d.length-1]=i}let h=` x="${a.x||`0`}"`,g=d.length===1?d[0]:d.map((e,t)=>`<tspan${h} dy="${t===0?0:`1.2em`}">${e}</tspan>`).join(``);return`<text${Object.entries(a).map(([e,t])=>` ${e}="${t}"`).join(``)}>${m?`<title>${t}</title>`:``}${g}</text>`},u._getScrollableTreeListNodeInTouchEnabledDevice=function(e){if(!e||!e.isTreeListItem||!u._isTouchDevice())return null;var t=u.getRootOf(e).stParent,{thumbHeight:n,thumbPosition:r,scrollBarDisplay:i}=u._treeListGetTumbPositionFromScrollTop(t);return i==`none`?null:t},u._convertImagesToBase64=async function(e){let t=new DOMParser;return await Promise.all(e.map(async e=>{let n=t.parseFromString(e,`image/svg+xml`),r=n.querySelectorAll(`image`);for(let e of r){let t=e.getAttribute(`href`)||e.getAttribute(`xlink:href`);if(t&&!t.startsWith(`data:`))try{let n=parseFloat(e.getAttribute(`width`))||0,r=parseFloat(e.getAttribute(`height`))||0;if(n>0&&r>0){let i=await u._resizeAndConvert(t,n,r);e.setAttribute(`href`,i),e.removeAttributeNS(`http://www.w3.org/1999/xlink`,`href`)}}catch(e){console.error(`Failed to process image:`,t,e)}}return new XMLSerializer().serializeToString(n)}))},u._resizeAndConvert=function(e,t,n){return new Promise((r,i)=>{let a=new Image;a.crossOrigin=`anonymous`,a.onload=()=>{let e=document.createElement(`canvas`),i=e.getContext(`2d`),o=Math.min(t/a.width,n/a.height),s=a.width*o,c=a.height*o;e.width=s,e.height=c,i.drawImage(a,0,0,s,c),r(e.toDataURL(`image/png`))},a.onerror=i,a.src=e})},u.prototype.zoom=function(e,t,n,r){var i=this.getViewBox().slice(0),a=i,o=i[2],s=i[3];e===!0?(i[2]/=u.SCALE_FACTOR,i[3]/=u.SCALE_FACTOR):e===!1?(i[2]*=u.SCALE_FACTOR,i[3]*=u.SCALE_FACTOR):(i[2]/=e,i[3]/=e),t||=[50,50],i[0]=a[0]-(i[2]-o)/(100/t[0]),i[1]=a[1]-(i[3]-s)/(100/t[1]);var c=this.getScale(i);if(i[2]=this.width()/c,i[3]=this.height()/c,e===!0&&c<this.config.scaleMax||e===!1&&c>this.config.scaleMin||e!=0&&e!=1&&c<this.config.scaleMax&&c>this.config.scaleMin){this._hideBeforeAnimation();var l=this;n?(clearTimeout(l._timeout),u.animate(this.getSvg(),{viewbox:this.getViewBox()},{viewbox:i},this.config.anim.duration,this.config.anim.func,function(){clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,u.action.zoom,null,r)},500)})):(this.setViewBox(i),clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,u.action.zoom,null,r)},500))}},u._ai=function(e){this.instance=e,this.sessionId=null},u._ai.prototype.prompt=function(e,t){var n=this;e=e.trim(),e&&(this.sessionId?n._prompt([{Role:`user`,Text:e}],t):this.setContext(function(){n._prompt([{Role:`user`,Text:e}],t)}))},u._ai.prototype._prompt=function(e,t){var n=this,r=[];for(var i of u.AI_SYSTEM_MESSAGES)r.push({Role:`system`,Text:i});var a=this.instance.config.serverUrl+`/OrgChartJSAI/Prompt?client_messages=${encodeURIComponent(JSON.stringify(e))}&system_messages=${encodeURIComponent(JSON.stringify(r))}&sessionId=${this.sessionId}`;let o=new EventSource(a);o.onmessage=function(e){var r=JSON.parse(e.data),i=``;r.kind==`end`&&o.close(),r.kind==`text`&&(i+=r.text,t&&t(r.text)),r.kind==`assistant-message-with-tools`?n.toolCalls(r.message,t):r.kind==`error`&&console.error(r.text)},o.onerror=function(e){console.error(e),o.close()}},u._ai.prototype.setContext=function(e){if(this.instance&&this.instance.config.enableAI&&this.instance.aiUI.canSetContext){this.sessionId=this.instance._event_id;var t=this.instance.config.serverUrl+`/OrgChartJSAI/SetContext`,n=this.instance.config.aiChatTools.slice();for(var r of n)r.functionParameters??=null,r.functionParameters=JSON.stringify(r.functionParameters);fetch(t,{method:`post`,headers:{"Content-Type":`application/json`,"x-request-type":`ajax`},body:JSON.stringify({context:this.instance.config.nodes,sessionId:this.sessionId,chatTools:n})}).then(function(){e&&e()}).catch(function(e){console.error(e)})}},u._ai.prototype.toolCalls=function(e,t){var n=this,r={toolCalls:e.ToolCalls};u.events.publish(`ai-tool-calls`,[this.instance,r]);var i=[],a=[],o=[],s=[],c=[],l=null,d=null,f=null,p=null,m=null;for(var h of r.toolCalls)h.FunctionResult??(h.FunctionName==`removeNode`?i.push(h):h.FunctionName==`addNode`?a.push(h):h.FunctionName==`updateNode`?o.push(h):h.FunctionName==`select`?s.push(h):h.FunctionName==`deselect`?c.push(h):h.FunctionName==`exportToPDF`?l=h:h.FunctionName==`changeTemplate`?d=h:h.FunctionName==`addSlink`?f=h:h.FunctionName==`removeSlink`?p=h:h.FunctionName==`fit`&&(m=h));var g=!1;if(d&&(g=!0,h.FunctionResult=`ok`,this.instance.config.template=h.FunctionArguments.templateName),f){var _=this.instance.getNode(h.FunctionArguments.employeeId1),v=this.instance.getNode(h.FunctionArguments.employeeId2);!_||!v||_==v?h.FunctionResult=`Cannot add link between ${h.FunctionArguments.employeeId1} and ${h.FunctionArguments.employeeId2}`:(g=!0,this.instance.addSlink(_.id,v.id),h.FunctionResult=`ok`)}if(p){var _=this.instance.getNode(h.FunctionArguments.employeeId1),v=this.instance.getNode(h.FunctionArguments.employeeId2);!_||!v||_==v?h.FunctionResult=`Cannot remove link between ${h.FunctionArguments.employeeId1} and ${h.FunctionArguments.employeeId2}`:(g=!0,this.instance.removeSlink(_.id,v.id),h.FunctionResult=`ok`)}m&&(this.instance.fit(),g=!1);for(var h of i)g=!0,h.FunctionResult=`ok`,this.instance.remove(h.FunctionArguments.id);for(var h of a){g=!0,h.FunctionResult=`ok`;var y=JSON.parse(JSON.stringify(h.FunctionArguments));y.isAssistant&&(y.tags=[`assistant`]),delete y.isAssistant,u.isNEU(y.id)&&(y.id=this.instance.generateId()),this.instance.add(y)}for(var h of o){g=!0,h.FunctionResult=`ok`;var y=this.instance.get(h.FunctionArguments.id);for(var b in h.FunctionArguments)b!=`id`&&h.FunctionArguments[b]!=null&&(y[b]=h.FunctionArguments[b]);this.instance.update(y)}for(var h of s){h.FunctionResult=`ok`;for(var x of h.FunctionArguments.ids){var S=h.FunctionArguments.color;S||=`#FFCA28`;var C=this.instance.getNodeElement(x).firstChild;C&&(C.style.stroke=h.FunctionArguments.color,C.style.strokeWidth=5)}}var w=function(){for(var e of c)if(e.FunctionResult=`ok`,e.FunctionArguments.ids)for(var t of e.FunctionArguments.ids){var r=n.instance.getNodeElement(t).firstChild;r&&(r.style.stroke=`#aeaeae`,r.style.strokeWidth=1)}else g=!0};g?(this.setContext(),this.instance.draw(u.action.update,void 0,w)):w();var T=function(){var e=[];for(var i of r.toolCalls)e.push({Role:`tool`,Text:i.FunctionResult,Id:i.Id});n._prompt(e,t)};l?this.chartInstance.exportToPDF({},function(){h.FunctionResult=`ok`,u._downloadFile(`application/pdf`,response,`OrgChart.pdf`,!1,`pdf`),T()}):T()},u.aiUI=function(){this.instance=null,this.interval=null,this.canSetContext=!1,this.element=null,this.inputElement=null,this.btnSendElement=null,this.messagesElement=null,Object.defineProperty(this,`width`,{get(){return this.isVisible()?this.element.offsetWidth:0}})},u.aiUI.title=`AI for OrgChart JS`,u.aiUI.prototype.init=function(e){this.instance=e;var t=this,n=this.instance.element.querySelector(`[data-boc-ai-button]`);n&&n.addEventListener(`click`,function(e){t.show()})},u.aiUI.prototype.isVisible=function(){return!(!this.element||this.element.style.display==`none`)},u.aiUI.prototype.show=function(e,t){this.instance.pdfPreviewUI.hide(),this.instance.svgPreviewUI.hide(),this.instance.pngPreviewUI.hide(),this.instance.powerPointPreviewUI.hide(),this.instance.aiUI.hide(),this.instance.orgScribeUI.hide(),this._create(),this.element.style.display=``,this.canSetContext||(this.canSetContext=!0,this.instance._ai.setContext());var n=this;t||(this.timeout&&clearInterval(this.interval),this.interval=u.animate(this.element,{opacity:0},{opacity:1},300,u.anim.outSin,function(){e||n.inputElement.focus()}))},u.aiUI.prototype._create=function(){if(!this.element){var e=this,t=`inp_`+this.instance.generateId();this.element=document.createElement(`div`),this.element.setAttribute(`data-boc-ai-form`,``),this.element.style.opacity=0,this.element.classList.add(`boc-ai-form`),this.element.classList.add(this.instance.config.mode),this.element.innerHTML=`<div class="boc-ai-container">
267
+ <div data-boc-ai-close class="boc-ai-close">${u.icon.x(20,20,`#aeaeae`)}</div>
268
+ <div class="boc-ai-middle boc-ai-start">
269
+ <div data-boc-ai-messages class="boc-ai-messages">
270
+ <img src="https://orgchartjs.balkan.app/logo.svg">&nbsp;
271
+ <span>
272
+ ${u.aiUI.title}
273
+ </span>
274
+ </div>
275
+ </div>
276
+ <div>
277
+ <div class="boc-input" data-boc-input="">
278
+ <label for="${t}">Message OrgChart</label>
279
+ <input maxlength="256" id="${t}" name="${t}" type="text" value="" autocomplete="off">
280
+ <div data-boc-ai-send class="boc-ai-send">
281
+ ${u.icon.send(20,20,`#aeaeae`)}
282
+ </div>
283
+ </div>
284
+
285
+ </div>
286
+ </div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display=`block`,u.input.init(this.element);var n=this.instance.leftElement.querySelector(`[data-boc-ai-close] svg`);n&&n.addEventListener(`click`,function(t){e.hide()}),this.inputElement=this.element.querySelector(`#`+t),this.btnSendElement=this.inputElement.parentNode.querySelector(`[data-boc-ai-send]`),this.messagesElement=this.element.querySelector(`[data-boc-ai-messages]`),this.inputElement.addEventListener(`input`,function(e){this.value?this.parentNode.querySelector(`.boc-ai-send`).classList.add(`boc-ai-send-cansend`):this.parentNode.querySelector(`.boc-ai-send`).classList.remove(`boc-ai-send-cansend`)}),this.element.querySelector(`[data-boc-ai-send]`).addEventListener(`click`,function(t){e.sendUserInput()}),this.inputElement.addEventListener(`keyup`,function(t){var n=window.event?window.event:t;switch(e.canSetContext||(e.canSetContext=!0,e.instance._ai.setContext()),n.key){case`Enter`:e.sendUserInput();break;case`ArrowUp`:var r=u.aiUI._getSuggestions();if(r.length){var i=r.indexOf(e.inputElement.value);i==-1?i=r.length-1:i--,i==-1&&(i=r.length-1),e.inputElement.value=r[i]}break;case`ArrowDown`:var r=u.aiUI._getSuggestions();if(r.length){var i=r.indexOf(e.inputElement.value);i==-1?i=0:i++,i==r.length&&(i=0),e.inputElement.value=r[i]}break;default:}})}},u.aiUI.prototype.addUserMessage=function(e){this.btnSendElement.classList.remove(`boc-ai-send-cansend`);var t=this.element.querySelector(`.boc-ai-start`);t&&(t.classList.remove(`boc-ai-start`),this.messagesElement.innerHTML=``);var n=document.createElement(`div`);n.classList.add(`boc-ai-user-message`),n.innerHTML=`<span class="boc-inner-user-message">${e}</span>`,this.messagesElement.appendChild(n)},u.aiUI.prototype.hide=function(){this.instance.leftElement.style.display=`none`,this.element&&=(this.element.parentNode.removeChild(this.element),null)},u.aiUI.prototype.sendUserInput=function(){var e=this;u.aiUI._addSuggestion(this.inputElement.value),this.addUserMessage(this.inputElement.value);var t=document.createElement(`div`);t.classList.add(`boc-ai-assistant-message`);var n=document.createElement(`span`);n.classList.add(`boc-inner-assistant-message`),t.appendChild(n),this.messagesElement.appendChild(t);var r=``;this.instance._ai.prompt(this.inputElement.value,function(t){r+=t,n.innerHTML=marked.parse(r);var i=e.element.querySelector(`.boc-ai-middle`);i.scrollTo(0,i.scrollHeight)}),this.inputElement.value=``},u.aiUI._addSuggestion=function(e){e=e.trim();var t=u.aiUI._getSuggestions(),n=t.indexOf(e);n!=-1&&t.splice(n,1),t.push(e),localStorage.setItem(`suggestions`,JSON.stringify(t))},u.aiUI._getSuggestions=function(){var e=localStorage.getItem(`suggestions`);return e=e?JSON.parse(e):[],e},u===void 0&&(u={}),u.events.on(`init`,function(e,t){if(e.config.keyNavigation&&(window.addEventListener(`keydown`,function(){e._windowKeyDownHandler.apply(e,[this,arguments[0]])}),u.isNEU(e._keyNavigationActiveNodeId)&&e.roots&&e.roots.length)){var n=e.roots[0].id;u.isNEU(e.config.keyNavigation.focusId)||(n=e.config.keyNavigation.focusId),e._keyNavigationActiveNodeId=n,e.center(e._keyNavigationActiveNodeId)}}),u.prototype._windowKeyDownHandler=function(e,t){for(var n=t.target,r=null;n&&n!=this.element;){if(n.hasAttribute&&n.hasAttribute(u.attr.node_id)){r=n.getAttribute(u.attr.node_id);break}n=n.parentNode}if(n){var i=r?this.getNode(r):null,a={node:i,data:r?this.get(r):null,event:t};if(u.events.publish(`key-down`,[this,a])!==!1&&i){if(t.code==`KeyF`)this.searchUI.find(``);else if(t.code==`ArrowRight`||i.isAssistant&&t.code==`ArrowDown`||i.isPartner&&t.code==`ArrowDown`){var o=this.getNode(i.pid);if(o){var s=o.childrenIds.indexOf(i.id);if(s++,s<o.childrenIds.length){var c=o.childrenIds[s];this._keyNavigationActiveNodeId=c,this.center(c)}}}else if(t.code==`ArrowLeft`){var o=this.getNode(i.pid);if(o){var s=o.childrenIds.indexOf(i.id);if(s--,s>=0){var c=o.childrenIds[s];this._keyNavigationActiveNodeId=c,this.center(c)}}}else if(t.code==`ArrowUp`){var o=this.getNode(i.pid);if(o){var c=o.id;if(i.isAssistant||o.hasAssistants||i.isPartner||o.hasPartners){var s=o.childrenIds.indexOf(i.id);s--,s>=0&&(c=o.childrenIds[s])}this._keyNavigationActiveNodeId=c,this.center(c)}}else if(t.code==`ArrowDown`)i.childrenIds.length&&(this._keyNavigationActiveNodeId=i.childrenIds[0],this.center(i.childrenIds[0]));else if(t.code==`Space`){var l=n.getAttribute(u.attr.node_id);this.toggleExpandCollapse(l,t);return}}}},u.events.on(`redraw`,function(e,t){e.config.keyNavigation&&u._keyNavigation(e)}),u.events.on(`click`,function(e,t){e.config&&e.config.keyNavigation&&(e._keyNavigationActiveNodeId=t.node.id,e.center(t.node.id))}),u._keyNavigation=function(e){var t=e.element.querySelector(`:focus`);if(t&&t.parentElement&&t.parentElement.hasAttribute(u.attr.node_id)){var n=t.parentElement,r=t,i=r.querySelector(`title`);i&&i.parentNode.removeChild(i),r.removeAttribute(`tabindex`)}if(!u.isNEU(e._keyNavigationActiveNodeId)){var n=e.getNodeElement(e._keyNavigationActiveNodeId);if(!(!n||!n.children.length)){var r=n.children[0];r.setAttribute(`tabindex`,2);var a={text:``,id:e._keyNavigationActiveNodeId};if(u.events.publish(`screen-reader-text`,[e,a]),!u.isNEU(a.text)){var i=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);i.innerHTML=a.text,r.appendChild(i)}u.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&e.searchUI.hide(),r.focus()}}},u.ui.css=function(){return`<style data-boc-styles>.boc-ai-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-ai-form{color:#aeaeae}.boc-light .boc-ai-form{color:#757575}.boc-ai-messages{font-size:16px}@media screen and (max-width:500px){.boc-ai-form{width:100%}}.boc-dark .boc-ai-form{background-color:#252526}.boc-light .boc-ai-form{background-color:#fff}.boc-ai-button{font-size:32px;position:absolute;top:20px;left:20px;cursor:pointer;padding:12px;border-radius:50%;user-select:none}.boc-dark .boc-ai-button{color:#aeaeae}.boc-light .boc-ai-button{color:#757575}.boc-ai-button:hover{color:#fff;background-color:#039be5}.boc-ai-container{padding:0 14px;display:grid;grid-template-rows:40px auto 80px;gap:10px;height:100%}.boc-ai-container .boc-input input{padding-right:50px}.boc-ai-close{text-align:end;margin-top:20px}.boc-ai-close svg{cursor:pointer}.boc-ai-start{text-align:center;display:flex;justify-content:center;align-items:center;user-select:none}.boc-ai-start span{font-weight:700;font-size:32px;font:"Segoe UI",Arial,sans-serif;background:linear-gradient(90deg,#039be5 28%,#f57c00,#ffca28);color:transparent!important;background-clip:text;display:inline-block;padding:10px 0}.boc-ai-send.boc-ai-send-cansend{cursor:pointer;background-color:#039be5}.boc-ai-send.boc-ai-send-cansend:hover{background-color:#f57c00}.boc-ai-send.boc-ai-send-cansend:active{background-color:#ffca28}.boc-ai-send{background-color:transparent;position:absolute;right:7px;top:7px;width:38px;height:38px;border-radius:50%;text-align:center;background-repeat:no-repeat;background-position:center;background-size:20px 20px}.boc-ai-send svg{display:block;margin:auto;height:100%}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.boc-ai-middle{overflow-y:auto}.boc-ai-middle::-webkit-scrollbar{display:none}.boc-button{background-color:#039be5;cursor:pointer;width:calc(100%);height:50px;color:#fff;padding-top:5px;padding-left:7px;padding-right:7px;text-align:center;text-transform:uppercase;border:1px solid #3fc0ff;display:inline-block;border-radius:5px}.boc-button.orange{background-color:#f57c00;border:1px solid #ffa03e}.boc-button.yellow{background-color:#ffca28;border:1px solid #ffdf7c}.boc-button.lower{text-transform:unset}.boc-button.transparent{background-color:transparent}.boc-button:hover{background-color:#35afea}.boc-button.orange:hover{background-color:#f79632}.boc-button.yellow:hover{background-color:#ffd452}.boc-button:active{transform:matrix(.98,0,0,.98,0,0)}.boc-button-icon{text-align:initial;cursor:pointer;margin-bottom:15px;color:#039be5}.boc-dark .boc-button-icon:hover{background-color:#2d2d2d}.boc-light .boc-button-icon:hover{background-color:#ececec}.boc-button-icon>img{height:24px;width:24px;vertical-align:middle;padding:7px}.boc-button:focus{outline:0}.boc-button-icon>img{filter:invert(46%) sepia(66%) saturate(2530%) hue-rotate(171deg) brightness(95%) contrast(98%)}.boc-light .boc-button.transparent{color:#039be5}.boc-light .boc-button.transparent:hover{color:#fff}.boc-button-loading{background-color:transparent;cursor:pointer;width:calc(100% - 2px);height:50px;color:#fff;text-align:center;text-transform:uppercase;border:1px solid #027cb7;display:inline-block;display:flex;justify-content:center;align-items:center;display:none}.boc-button-loading .boc-loading-dots div{margin:0 10px}.boc-link-boc-button{position:absolute;right:10px;top:-1px}@media screen and (max-width:1000px){.boc-link-boc-button{right:50px}}[data-boc-input-disabled] .boc-link-boc-button{display:none}[dir=rtl] .boc-link-boc-button{left:10px;right:unset}.boc-img-button{width:48px;height:48px;cursor:pointer;border-radius:50%;background-color:#039be5;background-repeat:no-repeat;background-size:24px 24px;background-position:center center;margin:3px;display:inline-block}.boc-img-button:hover{background-color:#f57c00}.boc-checkbox{display:block;position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap}.boc-checkbox input{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.boc-checkbox-checkmark{position:absolute;top:0;left:0;height:25px;width:25px;border-radius:5px}.boc-dark [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-dark [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark,.boc-light [data-boc-input-disabled] .boc-checkbox-checkmark,.boc-light [data-boc-input-disabled].boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#aeaeae!important}[data-boc-input-disabled].boc-checkbox{cursor:default}[dir=rtl] .boc-checkbox-checkmark{right:0}[dir=rtl] .boc-checkbox{padding-left:unset;padding-right:35px}.boc-dark .boc-checkbox-checkmark{background-color:#333;border:1px solid #5b5b5b}.boc-light .boc-checkbox-checkmark{background-color:#fff;border:1px solid #c7c7c7}.boc-dark .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#3c3c3c}.boc-light .boc-checkbox:hover input~.boc-checkbox-checkmark{background-color:#f8f9f9}.boc-dark .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-light .boc-checkbox input:checked~.boc-checkbox-checkmark{background-color:#039be5}.boc-checkbox-checkmark:after{content:"";position:absolute;display:none}.boc-checkbox input:checked~.boc-checkbox-checkmark:after{display:block}.boc-checkbox .boc-checkbox-checkmark:after{left:9px;top:5px;width:5px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.boc-controls{display:flex;gap:7px;position:absolute}.boc-controls-top{left:unset;top:15px;right:50%;bottom:unset;transform:translateX(50%);flex-direction:row}.boc-controls-bottom{left:unset;top:unset;right:50%;bottom:15px;transform:translateX(50%);flex-direction:row}.boc-controls-left{left:15px;top:50%;right:unset;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-right{left:unset;top:50%;right:15px;bottom:unset;transform:translateY(-50%);flex-direction:column}.boc-controls-bottom_right,.boc-controls-right_bottom{left:unset;top:unset;right:15px;bottom:15px;flex-direction:row}.boc-controls-right_bottom{flex-direction:column}.boc-controls-right_top,.boc-controls-top_right{left:unset;top:15px;right:15px;bottom:unset;flex-direction:row}.boc-controls-right_top{flex-direction:column}.boc-controls-bottom_left,.boc-controls-left_bottom{left:15px;top:unset;right:unset;bottom:15px;flex-direction:row}.boc-controls-left_bottom{flex-direction:column}.boc-controls-left_top,.boc-controls-top_left{left:15px;top:15px;right:unset;bottom:unset;flex-direction:row}.boc-controls-left_top{flex-direction:column}.boc-controls [data-control-id] svg{display:block;margin:0 auto}.boc-controls [data-control-id]{display:flex;align-items:center;cursor:pointer;width:60px;height:60px;border-radius:30px;box-shadow:0 4px 30px rgba(0,0,0,.1);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.boc-light .boc-controls [data-control-id]{background:rgba(255,255,255,.2);border:1px solid #c7c7c7}.boc-dark .boc-controls [data-control-id]{background:rgba(30,30,30,.2);border:1px solid #5b5b5b}.boc-controls [data-control-id]:hover{background-color:#0074e8}.boc-controls [data-control-id]:hover svg{filter:brightness(0) invert(1)}.boc-controls [data-control-id].boc-control-selected{background-color:#0074e8}.boc-controls [data-control-id].boc-control-selected svg{filter:brightness(0) invert(1)}.boc-filter{user-select:none}.boc-light .boc-filter{color:#757575}.boc-dark .boc-filter{color:#ccc}.boc-filter>div>div{display:inline-block;padding:3px 10px;cursor:pointer}.boc-filter-menu fieldset,.boc-filter>div,.filter-field-selected{border-radius:5px}.boc-filter-menu fieldset{overflow-y:auto;max-height:300px}.boc-filter>div.boc-filter-menu{padding:10px}.boc-light .boc-filter>div.boc-filter-menu,.boc-light .filter-field-selected{background-color:#f8f9f9}.boc-dark .boc-filter>div.boc-filter-menu,.boc-dark .filter-field-selected{background-color:#3c3c3c}.boc-light .boc-filter>div{background-color:#eee}.boc-dark .boc-filter>div{background-color:#333}.boc-form-perspective{transform-style:preserve-3d;perspective:500px;position:absolute;top:32px}.boc-form{box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;padding:14px;transform-origin:top center;user-select:none;display:none;position:relative;max-height:calc(100vh - 100px);overflow-y:auto;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.boc-form-bottom{border-bottom-left-radius:unset;border-bottom-right-radius:unset;border-top-left-radius:5px;border-top-right-radius:5px}.boc-form .separator{margin:0 10px}@media screen and (max-width:1000px){.boc-form-perspective{min-width:100%;max-height:calc(100% - 32px);left:unset!important;right:unset!important;transform:none!important}.boc-form .set{max-height:calc(100vh - 74px)}.boc-form-fieldset{max-width:unset!important}}.boc-light .boc-form .separator{border-bottom:1px solid #c7c7c7}.boc-dark .boc-form .separator{border-bottom:1px solid #5b5b5b}.boc-light .boc-form{background-color:#fff}.boc-dark .boc-form{background-color:#252526}.boc-item{padding:6px 12px 6px 12px;display:flex;flex-direction:row}.boc-light .boc-form .boc-item.selected,.boc-light .boc-form .boc-item:hover{background-color:#0074e8;color:#fff}.boc-dark .boc-form .boc-item.selected,.boc-dark .boc-form .boc-item:hover{background-color:#094771;color:#fff}.boc-item.selected img,.boc-item:hover img{filter:invert(100%)}.boc-item.selected img{visibility:visible!important}.boc-form-fieldset{display:flex;flex-wrap:wrap;margin:0!important}.boc-form-field{flex:1 0 21%;margin:3px;min-width:200px}.boc-form-field-100{flex:1 0 96%;margin:3px;min-width:200px}.boc-input{position:relative}.boc-input>input,.boc-input>select{height:50px;padding:18px 10px 2px 9px;width:100%;box-sizing:border-box;border-style:solid;border-width:1px}.boc-input select{height:50px;padding:20px 5px 4px 5px}[data-boc-input-disabled].boc-input>input,[data-boc-input-disabled].boc-input>select{border-color:transparent!important}.boc-light [data-boc-input-disabled]>input,.boc-light [data-boc-input-disabled]>select{background-color:#fff!important}.boc-dark [data-boc-input-disabled]>input,.boc-dark [data-boc-input-disabled]>select{background-color:#252526!important}[data-boc-input-disabled]>select{appearance:none;padding-left:8px}.boc-input>label{display:inline-block;position:absolute;padding-left:10px;padding-right:10px;color:#acacac;cursor:text;-webkit-transition:all .1s ease-out;-moz-transition:all .1s ease-out;-ms-transition:all .1s ease-out;-o-transition:all .1s ease-out;transition:all .1 ease-out;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:initial;text-align:initial;white-space:nowrap}.boc-input>label{top:12px;overflow:hidden;text-overflow:ellipsis;max-width:calc(100% - 14px)}.boc-input>label.focused,.boc-input>label.hasval{top:-1px}.boc-input>input,.boc-input>select{outline:0;border-radius:5px}.boc-dark .boc-input>label.focused,.boc-light .boc-input>label.focused{color:#039be5}.boc-dark .boc-input>input,.boc-dark .boc-input>select{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-input>input,.boc-light .boc-input>select{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-light .boc-input>input:focus,.boc-light .boc-input>select:focus{border-color:#039be5;background-color:#f8f9f9}.boc-dark .boc-input>input:focus,.boc-dark .boc-input>select:focus{border-color:#039be5;background-color:#3c3c3c}.boc-dark .boc-input>input.boc-validation-error,.boc-dark .boc-input>select.boc-validation-error,.boc-light .boc-input>input.boc-validation-error,.boc-light .boc-input>select.boc-validation-error{border-color:#ca2a2a}.boc-dark .boc-validation-error-message,.boc-light .boc-validation-error-message{color:#ca2a2a}.boc-input select.multiple{height:initial}.boc-link{color:#039be5;cursor:pointer;text-decoration:underline}.boc-link:hover{color:#f57c00}.boc-dark ::-webkit-scrollbar,.boc-light ::-webkit-scrollbar{width:15px;height:15px}.boc-dark ::-webkit-scrollbar-corner{background:#1e1e1e}.boc-dark ::-webkit-scrollbar-track{background:#1e1e1e;border-left:1px solid #333;border-top:1px solid #333}.boc-dark ::-webkit-scrollbar-thumb{background:#424242}.boc-dark ::-webkit-scrollbar-thumb:hover{background:#4f4f4f}.boc-dark ::-webkit-scrollbar-thumb:active{background:#5e5e5e}.boc-light ::-webkit-scrollbar-corner{background:#fff}.boc-light ::-webkit-scrollbar-track{background:#fff;border-left:1px solid #ddd;border-top:1px solid #ddd}.boc-light ::-webkit-scrollbar-thumb{background:#c1c1c1}.boc-light ::-webkit-scrollbar-thumb:hover{background:#929292}.boc-light ::-webkit-scrollbar-thumb:active{background:#666}.boc-edit-form{position:fixed;top:0;right:0;height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:1000px){.boc-edit-form{width:100%}}.boc-dark .boc-edit-form{background-color:#252526}.boc-light .boc-edit-form{background-color:#fff}.boc-edit-form-header{height:200px;text-align:center;border-radius:10px}.export-service .boc-edit-form-header{border-radius:unset}.boc-edit-form-title{color:#fff;margin:0;padding:14px 17px 7px 17px}.boc-edit-form-avatar{border-radius:50%;width:150px;height:150px;position:absolute;top:75px;border:5px solid #fff;left:50%;transform:translateX(-50%);background-color:#cacaca;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0}.boc-edit-form-close{position:absolute;right:14px;top:14px;width:34px;height:34px;cursor:pointer}.boc-edit-form-fields{flex-grow:1;overflow-y:auto;overflow-x:hidden}.boc-edit-form-fields-inner{margin:0 7px 20px 7px}.boc-ai-user-message{text-align:end;margin:14px 0}.boc-inner-user-message{padding:7px;border-radius:7px;display:inline-block}.dark .boc-inner-user-message{background-color:#333}.light .boc-inner-user-message{background-color:#f9f9f9}.boc-export-form{box-shadow:rgba(0,0,0,.2) 0 -6px 6px 0,rgba(0,0,0,.19) 0 -13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}.boc-dark .boc-export-form{color:#aeaeae;background-color:#252526}.boc-light .boc-export-form{color:#757575;background-color:#eee}@media screen and (max-width:500px){.boc-export-form{width:100%}}.boc-export-container{display:grid;grid-template-rows:40px auto;gap:10px;height:100%}.boc-export-page{width:100%;border:1px solid #aeaeae;display:flex;justify-content:center;align-items:center;user-select:none;position:relative}.boc-export-selected{border:1px solid #ffca28}.boc-export-middle{overflow-y:auto;overflow-x:hidden;padding:0 3px 0 0;margin-bottom:10px}.boc-export-btns-inner{padding-top:14px;display:flex;justify-content:space-between}.boc-export-left{justify-content:flex-start}.boc-export-right{justify-content:flex-end}.boc-export-left,.boc-export-right{user-select:none}.boc-export-select{position:absolute;top:0;left:0;text-align:center;width:100%}.boc-export-child-buttons{position:absolute;bottom:7px;left:7px;display:none}.boc-export-page:hover .boc-export-child-buttons{display:initial}.boc-export-parent-buttons{position:absolute;top:7px;left:7px;display:none}.boc-export-page:hover .boc-export-parent-buttons{display:initial}.boc-export-remove-buttons{position:absolute;bottom:7px;right:7px;display:none}.boc-export-page:hover .boc-export-remove-buttons{display:initial}.boc-export-child-buttons button,.boc-export-parent-buttons button{width:23px}.boc-export-profiletree-buttons{position:absolute;top:7px;right:7px;display:none}.boc-export-page:hover .boc-export-profiletree-buttons{display:initial}.boc-export-middle-inner{display:grid;gap:10px;margin:0 10px}.boc-export-btns-inner{margin:0 10px}.boc-chart-menu{opacity:0;display:inline-block;position:absolute;text-align:left;user-select:none;min-width:270px;box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif;border-radius:10px}.boc-chart-menu>div:hover img{filter:invert(100%)}.boc-chart-menu [data-item]{text-align:start;padding:7px 10px}.boc-dark .boc-chart-menu [data-item]{background-color:#252526;color:#acacac;border-bottom:1px solid #333}.boc-dark .boc-chart-menu [data-item]:hover{background-color:#094771!important;color:#fff!important}.boc-dark .boc-chart-menu [data-item]:hover svg{filter:brightness(0) invert(1)}.boc-light .boc-chart-menu [data-item]{background-color:#fff;color:#333;border-bottom:1px solid #c7c7c7}.boc-light .boc-chart-menu [data-item]:hover{background-color:#0074e8!important;color:#fff!important}.boc-light .boc-chart-menu [data-item]:hover svg{filter:brightness(0) invert(1)}.boc-chart-menu [data-item] svg{vertical-align:middle}.boc-chart-menu [data-item]:first-child{border-top-left-radius:7px;border-top-right-radius:7px}.boc-chart-menu [data-item]:last-child{border-bottom-width:0;border-bottom-style:none;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.boc-orgscribe-form{height:100%;width:100%;box-shadow:rgba(0,0,0,.2) 0 6px 6px 0,rgba(0,0,0,.19) 0 13px 20px 0;display:flex;flex-direction:column;height:100%;width:400px}@media screen and (max-width:500px){.boc-orgscribe-form{width:100%}}.boc-dark .boc-orgscribe-form{background-color:#252526}.boc-light .boc-orgscribe-form{background-color:#fff}.boc-orgscribe-container{padding:0 14px;display:grid;grid-template-rows:40px auto 10px;gap:10px;height:100%}.boc-orgscribe-container .boc-input input{padding-right:50px}.boc-orgscribe-close{text-align:end;margin-top:20px}.boc-orgscribe-close svg{cursor:pointer}.boc-orgscribe-txt{width:100%;height:100%;box-sizing:border-box;border-style:solid;border-width:1px;outline:0;border-radius:5px;font-size:24px}.boc-dark .boc-orgscribe-txt{color:#ccc;background-color:#333;border-color:#5b5b5b}.boc-light .boc-orgscribe-txt{color:#757575;background-color:#fff;border-color:#c7c7c7}.boc-search{position:absolute}@media screen and (max-width:500px){.boc-search{width:calc(100% - 30px);left:15px}}.boc-search .boc-input{margin-bottom:0}.boc-search-input{color:#7a7a7a;width:100%;border:none;outline:0;padding-top:10px;padding-right:47px}.boc-search-image-td{width:43px}.boc-search-text-td{padding-inline-end:7px;line-height:15px;text-align:start}.boc-search table{box-shadow:rgba(0,0,0,.2) 0 4px 8px 0,rgba(0,0,0,.19) 0 6px 20px 0;margin:0 3.5px 0 3.5px;width:calc(100% - 7px);border-radius:7px}.boc-search table tr:first-child td:first-child{border-top-left-radius:7px}.boc-search table tr:first-child td:last-child{border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:first-child{border-top-left-radius:unset;border-top-right-radius:7px}[dir=rtl] .boc-search table tr:first-child td:last-child{border-top-right-radius:unset;border-top-left-radius:7px}.boc-search table tr:last-child td:first-child{border-bottom-left-radius:7px}.boc-search table tr:last-child td:last-child{border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:first-child{border-bottom-left-radius:unset;border-bottom-right-radius:7px}[dir=rtl] .boc-search table tr:last-child td:last-child{border-bottom-right-radius:unset;border-bottom-left-radius:7px}.boc-dark .boc-search table{background-color:#252526;color:#acacac}.boc-search [data-search-item-id]{cursor:pointer}.boc-search-photo{margin:7px 7px 0 7px;width:32px;height:32px;background-size:cover;background-position:top center;border-radius:50%;display:inline-block;border:1px solid #8c8c8c}.boc-search [data-search-item-id]:hover .boc-link{color:#ffca28}.boc-search [data-search-item-id]:hover .boc-link:hover{color:#f57c00}.boc-dark .boc-search [data-search-item-id] td{border-top:1px solid #333}.boc-dark .boc-search [data-search-item-id]:hover,.boc-dark .boc-search [data-selected=yes]{background-color:#094771;color:#fff}.boc-light .boc-search table{background-color:#fff;color:#333}.boc-light .boc-search [data-search-item-id] td{border-top:1px solid #c7c7c7}.boc-light .boc-search [data-search-item-id]:hover,.boc-light .boc-search [data-selected=yes]{background-color:#0074e8;color:#fff}.boc-search [data-search-item-id]:first-child td{border-top:unset}.boc-ripple-container{position:absolute;top:0;right:0;bottom:0;left:0}.boc-drag-over rect{opacity:.5}.boc-ripple-container span{transform:scale(0);border-radius:100%;position:absolute;opacity:.75;background-color:#fff;animation:boc-ripple 1s}@-moz-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-webkit-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@-o-keyframes boc-ripple{to{opacity:0;transform:scale(2)}}@keyframes boc-ripple{to{opacity:0;transform:scale(2)}}.boc-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:.4s;transition:.4s}.boc-slider:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.boc-slider.round{border-radius:24px}.boc-slider.round:before{border-radius:50%}svg text:hover{cursor:default}svg.boc-cursor-grab,svg.boc-cursor-grab text:hover{cursor:grab}svg.boc-cursor-nodrop,svg.boc-cursor-nodrop text:hover{cursor:no-drop}svg.boc-cursor-copy,svg.boc-cursor-copy text:hover{cursor:copy}svg.boc-cursor-move,svg.boc-cursor-move text:hover{cursor:move}#boc-close-btn:focus,#boc-close-btn:hover{color:#000;text-decoration:none;cursor:pointer}#boc-id-select:focus{outline:.5px solid #aeaeae}#boc-sampleDialog #title:hover{cursor:default;background:gray}.boc-light{background-color:#fff;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark{background-color:#1e1e1e;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark input,.boc-dark select,.boc-light input,.boc-light select{font:16px Helvetica,"Segoe UI",Arial,sans-serif}.boc-dark h1,.boc-light h1{font-size:30px;line-height:1}.boc-light [data-boc-content]::backdrop{background-color:#fff}.boc-dark [data-boc-content]::backdrop{background-color:#1e1e1e}.boc-dark text,.boc-light text{user-select:none}.boc-edit-form{position:absolute;border-radius:10px}.export-service .boc-edit-form{border-radius:unset}.boc-dark .boc-edit-form{color:#acacac}.boc-light .boc-edit-form{color:#333}.boc-dark ::-webkit-calendar-picker-indicator{filter:invert(70%)}.boc-light ::-webkit-calendar-picker-indicator{filter:invert(50%)}.boc-edit-form-instruments{margin:42px 10px 0 10px;text-align:center;min-height:70px}.boc-img-button svg{position:relative;top:12px}.boc-light .boc-toolbar-container svg circle,.boc-light .boc-toolbar-container svg line,.boc-light .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg circle,.boc-dark .boc-toolbar-container svg line,.boc-dark .boc-toolbar-container svg path{stroke:#8c8c8c!important}.boc-dark .boc-toolbar-container svg rect{fill:#252526!important}.boc-dark .boc-toolbar-container [data-tlbr=minus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-bottom:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr=plus] svg{border-left:1px solid #5b5b5b!important;border-right:1px solid #5b5b5b!important;border-top:1px solid #5b5b5b!important}.boc-dark .boc-toolbar-container [data-tlbr]>svg{border:1px solid #5b5b5b!important;background-color:#252526!important}.boc-toolbar-layout{height:123px;padding-top:20px;position:absolute;width:100%;left:"0";bottom:"-145px"}.boc-light .boc-toolbar-layout{border-top:1px solid #c7c7c7;background-color:#f9f9f9}.boc-dark .boc-toolbar-layout{border-top:1px solid #5b5b5b;background-color:#2b2b2b}.boc-dotted-connector path{stroke-dasharray:7}.boc-undo-redo{position:absolute;top:23px;left:23px}@media screen and (max-width:500px){.boc-undo-redo{position:absolute;top:83px;left:23px}}.boc-light .boc-undo-redo path{fill:#cacaca}.boc-dark .boc-undo-redo path{fill:#5b5b5b}.boc-light .boc-undo-redo .boc-ur-clickable path{fill:#9c9c9c}.boc-dark .boc-undo-redo .boc-ur-clickable path{fill:#8c8c8c}.boc-undo-redo .boc-ur-clickable rect{cursor:pointer}.boc-undo-redo>span{position:relative;display:inline-block;user-select:none}.boc-undo-redo .boc-undo-i{left:-6px;top:-6px}.boc-undo-redo .boc-redo-i{right:-6px;bottom:6px}.boc-undo-redo>span>span{color:#fff;position:absolute;display:inline-block;min-width:20px;min-height:20px;border-radius:50%;line-height:20px;text-align:center;padding:1px;user-select:none;cursor:pointer}.boc-light .boc-undo-redo>span>span{background-color:#9c9c9c}.boc-dark .boc-undo-redo>span>span{background-color:#8c8c8c}.boc-dark .treelist-pinned{filter:brightness(1.2)}.boc-light .treelist-pinned{filter:brightness(.9)}.boc-light .boc-scroll{fill:#fff}.boc-light .boc-scroll-thumb{fill:#c1c1c1}.boc-light .boc-scroll-thumb:hover{fill:#929292}.boc-dark .boc-scroll{fill:#1e1e1e}.boc-dark .boc-scroll-thumb{fill:#424242}.boc-dark .boc-scroll-thumb:hover{fill:#4f4f4f}</style>`},u.input={},u.input._timeout=null,u.input.initWithTimeout=function(){u.input._timeout&&(clearTimeout(u.input._timeout),u.input._timeout=null),u.input._timeout=setTimeout(u.input.init,200)},u.input.init=function(e){for(var t=e?e.querySelectorAll(`[data-boc-input]`):document.querySelectorAll(`[data-boc-input]`),n=0;n<t.length;n++){var r=t[n],i=null;r.type&&r.type.toLowerCase()==`hidden`&&(i=r),i||=r.querySelector(`input`),i||=r.querySelector(`select`);var a=r.querySelector(`label`);a&&(i.value||i.type==`select-one`&&i.selectedOptions&&i.selectedOptions.length&&i.selectedOptions[0].value==``&&i.selectedOptions[0].innerHTML)&&a.classList.add(`hasval`),i.type.toLowerCase()!=`checkbox`&&i.addEventListener(`focus`,function(){this.classList.remove(`boc-validation-error`);var e=this.parentNode.querySelector(`label`);e.classList.add(`focused`);var t=e.querySelector(`.boc-validation-error-message`);t&&t.parentNode.removeChild(t)}),i.type.toLowerCase()!=`checkbox`&&i.addEventListener(`blur`,function(){u.input.blurHandler(this)})}},u.input.blurHandler=function(e){var t=e.parentNode.querySelector(`label`);t.classList.remove(`focused`),e.value||e.type==`date`?t.classList.add(`hasval`):t.classList.remove(`hasval`)},u.input.validate=function(e){var t=null;e.type&&e.type.toLowerCase()==`hidden`&&(t=e),t||=e.querySelector(`input`),t||=e.querySelector(`select`);var n=e.querySelector(`label`);if(t.classList.remove(`boc-validation-error`),n){var r=n.querySelector(`.boc-validation-error-message`);r&&r.parentNode.removeChild(r)}!t.selectedOptions&&t.value&&(t.value=t.value.trim());var i=e.getAttribute(`data-v-required`),a=e.getAttribute(`data-v-password`),o=e.getAttribute(`data-v-email`),s=e.getAttribute(`data-v-emails`);return i&&t.value==``?(n.innerHTML+=`<span class="boc-validation-error-message">&nbsp;`+i+`</span>`,t.classList.add(`boc-validation-error`),!1):a&&!u.input.validatePassword(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message">&nbsp;`+a+`</span>`,t.classList.add(`boc-validation-error`),!1):o&&!u.input.isValidEmail(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message">&nbsp;`+o+`</span>`,t.classList.add(`boc-validation-error`),!1):s&&!u.input.isValidEmails(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message">&nbsp;`+s+`</span>`,t.classList.add(`boc-validation-error`),!1):!0},u.input.validateAndGetData=function(e){for(var t=e.querySelectorAll(`[data-boc-input]`),n=!0,r=0;r<t.length;r++){var i=t[r];u.input.validate(i)||(n=!1)}return n?u.input.getData(e):!1},u.input.getData=function(e){for(var t=e.querySelectorAll(`[data-binding]`),n={},r=0;r<t.length;r++){var i=t[r],a=i.getAttribute(`data-binding`);if(i.type.toLowerCase()==`checkbox`)n[a]=i.checked;else if(i.selectedOptions&&i.hasAttribute(`multiple`)){var o=i.selectedOptions;n[a]=Array.from(o).map(({value:e})=>e)}else n[a]=i.value}return n},u.input.validatePassword=function(e){return e&&=e.trim(),e.length<5||e.length>18?!1:e.indexOf(` `)==-1},u.input.isValidEmails=function(e){if(e)for(var t=e.split(`,`),n=0;n<t.length;n++){var r=t[n].trim();if(!u.input.isValidEmail(r))return!1}return!0},u.input.isValidEmail=function(e){return e&&=e.trim(),/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},u===void 0&&(u={}),u.prototype.onField=function(e){return this.on(`field`,function(t,n){return e.call(t,n)})},u.prototype.onInit=function(e){return this.on(`init`,function(t){return e.call(t)})},u.prototype.onRedraw=function(e){return this.on(`redraw`,function(t){return e.call(t)})},u.prototype.onUpdateNode=function(e){return this.on(`update`,function(t,n,r){var i={oldData:n,newData:r};return e.call(t,i)})},u.prototype.onUpdated=function(e){return this.on(`updated`,function(t){return e.call(t)})},u.prototype.onRemoveNode=function(e){return this.on(`remove`,function(t,n,r){var i={id:n,newPidsAndStpidsForIds:r};return e.call(t,i)})},u.prototype.onAddNode=function(e){return this.on(`add`,function(t,n){var r={data:n};return e.call(t,r)})},u.prototype.onDrop=function(e){return this.on(`drop`,function(t,n,r,i,a){var o={dragId:n,dropId:r,dragNodeElement:i,event:a};return e.call(t,o)})},u.prototype.onDrag=function(e){return this.on(`drag`,function(t,n,r,i){var a={dragId:n,event:r,nodeIds:i};return e.call(t,a)})},u.prototype.onExpandCollapseButtonClick=u.prototype.onExpandCollpaseButtonClick=function(e){return this.on(`expcollclick`,function(t,n,r,i){var a={collapsing:n,id:r,ids:i};return e.call(t,a)})},u.prototype.onExportStart=function(e){return this.on(`exportstart`,function(t,n){return e.call(t,n)})},u.prototype.onExportEnd=function(e){return this.on(`exportend`,function(t,n){return e.call(t,n)})},u.prototype.onNodeClick=function(e){return this.on(`click`,function(t,n){return e.call(t,n)})},u.prototype.onCanvasClick=function(e){return this.on(`canvas-click`,function(t,n){return e.call(t,n)})},u.prototype.onNodeDoubleClick=function(e){return this.on(`dbclick`,function(t,n){var r={data:n};return e.call(t,r)})},u.prototype.onAIToolCalls=function(e){return this.on(`ai-tool-calls`,function(t,n){return e.call(t,n)})},u.prototype._dragDropHandler=function(e,t,n){},u.prototype._movableHandler=function(e,t,n){},u===void 0&&(u={}),u._communityMessages=[],u._communityAlert=function(){var e=[];for(var t of u._communityMessages)e.includes(t)||e.push(t);if(e.length){var n=`The following methods and options are not supported in Community Edition:\n\n${e.join(`
287
+ `)} \n\nDownload the Trial Edition if you want to use the features above.`;alert(n)}},u._communityMethod=function(e){u._communityMessages.push(e+` [method]`)},u.manager._community_createNodes=u.manager._createNodes,u.manager._createNodes=function(e){var t=e.manager.config,n=e.manager.layoutConfigs;return u._checkForUnsuportedFeatures(t,n),u.manager._community_createNodes(e)},u._checkForUnsuportedFeatures=function(e,t){for(var n of e.nodes){if(n.tags){var r=n.tags.indexOf(`assistant`);r>-1&&(u._communityMessages.push(`assistant [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`partner`),r>-1&&(u._communityMessages.push(`partner [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`left-partner`),r>-1&&(u._communityMessages.push(`left-partner [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`right-partner`),r>-1&&(u._communityMessages.push(`right-partner [tag]`),n.tags.splice(r,1))}u.isNEU(n.stpid)||(u._communityMessages.push(`stpid [property]`),n.stpid=void 0)}for(var i in e.slinks&&e.slinks.length&&(u._communityMessages.push(`slinks [option]`),e.slinks=[]),e.clinks&&e.clinks.length&&(u._communityMessages.push(`clinks [option]`),e.clinks=[]),t){var a=t[i];a.layout!=u.layout.normal&&(u._communityMessages.push(`layout [option]`),a.layout=u.layout.normal)}},u.events.on(`init`,function(e,t){setTimeout(u._communityAlert,500)}),u._defaultConfig=function(e){for(var t of[`enableDragDrop`,`enableSearch`,`enableAI`,`keyNavigation`,`miniMap`,`controls`,`nodeMenu`,`nodeCircleMenu`,`nodeContextMenu`,`menu`,`toolbar`,`showXScroll`,`showYScroll`,`searchFields`,`searchDisplayField`,`searchFieldsWeight`,`searchFieldsAbbreviation`,`movable`,`serverUrl`,`state`,`editForm`,`showYScroll`,`showYScroll`,`filterBy`,`undoRedoStorageName`])e[t]&&u._communityMessages.push(t+` [option]`);return{interactive:!0,mode:`light`,lazyLoading:`auto`,enableDragDrop:!1,enableSearch:!1,enableAI:!1,enablePan:!0,keyNavigation:!1,miniMap:!1,controls:null,nodeMenu:null,nodeCircleMenu:null,nodeContextMenu:null,menu:null,toolbar:!1,nodeMouseClick:u.action.none,nodeMouseDbClick:u.action.none,mouseScrool:u.action.ctrlZoom,showXScroll:!1,showYScroll:!1,template:`ana`,tags:{},min:!1,nodeBinding:{},linkBinding:{},searchFields:null,searchDisplayField:null,searchFieldsWeight:null,searchFieldsAbbreviation:null,nodes:[],clinks:[],slinks:[],backdrops:[],groupDottedLines:[],dottedLines:[],undoRedoStorageName:null,levelSeparation:60,siblingSeparation:20,subtreeSeparation:40,backdropSeparation:15,mixedHierarchyNodesSeparation:15,assistantSeparation:100,minPartnerSeparation:50,partnerChildrenSplitSeparation:20,partnerNodeSeparation:15,columns:10,padding:30,orientation:u.orientation.top,layout:u.layout.normal,layoutGridColumns:`dynamic`,scaleInitial:u.match.boundaryIfOutside,movable:null,scaleMin:.1,scaleMax:5,orderBy:null,editUI:null,aiUI:null,orgScribeUI:null,powerPointPreviewUI:null,pdfPreviewUI:null,svgPreviewUI:null,pngPreviewUI:null,filterUI:null,searchUI:null,xScrollUI:null,yScrollUI:null,nodeMenuUI:null,controlsUI:null,nodeCircleMenuUI:null,nodeContextMenuUI:null,toolbarUI:null,notifierUI:null,menuUI:null,undoRedoUI:null,exportUrl:null,serverUrl:null,aiChatTools:[],collapse:{},expand:{},align:u.CENTER,UI:null,anim:{func:u.anim.outPow,duration:200},zoom:{speed:120,smooth:12},roots:null,state:null,editForm:null}},u.prototype.__mouseScrollHandlerTreeList=function(){},u.prototype._treeListUpdate=function(){},u.prototype._treeListIterate2=function(){},u.prototype._treeListSetPositions=function(){},u.prototype._treeListThumbMouseDownHandler=function(){},u.prototype._treeListExpandCollapseHandler=function(e){},u===void 0&&(u={}),u.local={},u.local._setPositions=function(e,t,n){u.local._walk(e,t),n()},u.local._walk=function(e,t){for(var n={minX:null,minY:null,maxX:null,maxY:null},r=[],i=[],a=0;a<e.length;a++){var o=u.local._getConfig(e[a],t);u.local._firstWalk(e[a],0,r,i,o)}for(var a=0;a<e.length;a++){var o=u.local._getConfig(e[a],t);u.local._secondWalk(e[a],0,0,0,r,n,o)}},u.local._firstWalk=function(e,t,n,r,i){var a=null;if(e.x=0,e.y=0,e._prelim=0,e._modifier=0,e.leftNeighbor=null,e.rightNeighbor=null,u.local._setLevelMaxNodeHeight(e,t,n,i),u.local._setNeighbors(e,t,r),!u.local._hasChildren(e)||t==u.MAX_DEPTH)if(a=u.local._getLeftSibling(e),a!=null){var o=i.siblingSeparation;e._prelim=a._prelim+u.local._nodeWithPartnersSize(a,i)+o}else e._prelim=0;else{for(var s of e.children)u.local._firstWalk(s,t+1,n,r,i);var c=u.local._fChild(e),l=e.children[e.children.length-1],d=c._prelim+(l._prelim-c._prelim)/2+u.local._leftMidPoint(l,i);if(d-=u.local._mid(e,i),a=u.local._getLeftSibling(e),a!=null){var o=i.siblingSeparation;e._prelim=a._prelim+u.local._nodeWithPartnersSize(a,i)+o,e._modifier=e._prelim-d,u.local._apportion(e,t,n,i)}else i.orientation<=3?e._prelim=d:e._prelim=0}},u.local._secondWalk=function(e,t,n,r,i,a,o){if(t<=u.MAX_DEPTH){var s=e._prelim+n,c=r,l=0,d=0;switch(l=i[t],d=u.local._getNodeHeight(e,o),e.x=s,e.y=c,o.orientation){case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:var f=e.x;e.x=e.y,e.y=f;break}switch(o.orientation){case u.orientation.bottom:case u.orientation.bottom_left:e.y=-e.y-d;break;case u.orientation.right:case u.orientation.right_top:e.x=-e.x-d;break}if(u._setMinMaxXY(e,a,!0),e.children!=0){var p=o.levelSeparation;u.local._secondWalk(e.children[0],t+1,n+e._modifier,r+l+p,i,a,o)}var m=u.local._getRightSibling(e);m!=null&&u.local._secondWalk(m,t,n,r,i,a,o)}},u.local._lastWalk=function(e,t,n,r,i){e.x+=t+i[3]-r.minX,e.y+=n+i[0]-r.minY;for(var a of e.children)u.local._lastWalk(a,t,n,r,i)},u.local._apportion=function(e,t,n,r){for(var i=u.local._fChild(e),a=i.leftNeighbor,o=1,s=u.MAX_DEPTH-t;i!=null&&a!=null&&o<=s;){for(var c=0,l=0,d=i,f=a,p=0;p<o;p++)d=d.parent,f=f.parent,c+=d._modifier,l+=f._modifier;var m=r.subtreeSeparation;e.leftNeighbor&&e.parent==e.leftNeighbor.parent&&typeof e.leftNeighbor.id==`string`&&e.leftNeighbor.id.indexOf(`_sublevel_layout_`)!=-1&&(m=r.subtreeSeparation);var h=a._prelim+l+u.local._nodeWithPartnersSize(a,r)+m-(i._prelim+c);if(h>0){for(var g=e,_=0;g!=null&&g!=f;g=u.local._getLeftSibling(g))_++;if(g!=null){var v=e,y=h/_;for(typeof v.id==`string`&&v.id.indexOf(`_grid_pseudo_node_`)!=-1&&(y=0);v!=f;v=u.local._getLeftSibling(v))v._prelim+=h,v._modifier+=h,h-=y}}o++,i=u.local._hasChildren(i)?u.local._fChild(i):u.local._getLeftmost(e,0,o),i!=null&&(a=i.leftNeighbor)}},u.local._mixedTreeHeight=function(e){e.size+=u.local._getNodeHeight(e.node,e.config)+e.config.mixedHierarchyNodesSeparation;for(var t=0;t<e.node.children.length;t++)e.node=e.node.children[t],u.local._mixedTreeHeight(e)},u.local._setLevelMaxNodeHeight=function(e,t,n,r){n[t]??(n[t]=0);var i=u.local._getNodeHeight(e,r);n[t]<i&&(n[t]=i)},u.local._setNeighbors=function(e,t,n){n[t]&&n[t].id===e.id||(e.leftNeighbor=n[t],e.leftNeighbor!=null&&(e.leftNeighbor.rightNeighbor=e),n[t]=e)},u.local._nodeWithPartnersSize=function(e,t){switch(t.orientation){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:return e.w;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:return e.h}return 0},u.local._size=function(e,t){switch(t.orientation){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:return e.w;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:return e.h}return 0},u.local._leftMidPoint=function(e,t){switch(t.orientation){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:return e.w/2;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:return e.h/2}return 0},u.local._rightMidPoint=function(e,t){switch(t.orientation){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:return e.w/2;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:return e.h/2}return 0},u.local._mid=function(e,t){switch(t.orientation){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:return e.w/2;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:return e.h/2}return 0},u.local._getNodeHeight=function(e,t){switch(t.orientation){case u.orientation.top:case u.orientation.top_left:case u.orientation.bottom:case u.orientation.bottom_left:return e.h;case u.orientation.right:case u.orientation.right_top:case u.orientation.left:case u.orientation.left_top:return e.w}return 0},u.local._getLeftSibling=function(e){return e.leftNeighbor!=null&&e.leftNeighbor.parent==e.parent?e.leftNeighbor:null},u.local._getRightSibling=function(e){return e.rightNeighbor!=null&&e.rightNeighbor.parent==e.parent?e.rightNeighbor:null},u.local._getLeftmost=function(e,t,n){if(t>=n)return e;if(!u.local._hasChildren(e))return null;for(var r of e.children){var i=u.local._getLeftmost(r,t+1,n);if(i!=null)return i}return null},u.local._fChild=function(e){return e.children[0]},u.local._hasChildren=function(e){for(var t=0;t<e.children.length;t++)return!0;return!1},u.local._getConfig=function(e,t){return t[e.lcn?e.lcn:`base`]},u.editUI=function(){},u.editUI.prototype.init=function(){},u.editUI.prototype.on=function(e,t){return u._communityMethod(`editUI.on`),this},u.editUI.prototype.show=function(e,t,n){u._communityMethod(`editUI.show`)},u.editUI.prototype.setAvatar=function(e){u._communityMethod(`editUI.setAvatar`)},u.editUI.prototype.hide=function(e){},u.menuUI=function(){},u.menuUI.prototype.init=function(){},u.menuUI.prototype.showStickIn=function(){u._communityMethod(`menuUI.showStickIn`)},u.menuUI.prototype.show=function(){u._communityMethod(`menuUI.show`)},u.menuUI.prototype.isVisible=function(){u._communityMethod(`menuUI.isVisible`)},u.menuUI.prototype.hide=function(){},u.menuUI.prototype.on=function(){u._communityMethod(`menuUI.on`)},u.controlsUI=function(){},u.controlsUI.prototype.init=function(){},u.controlsUI.prototype.show=function(){u._communityMethod(`controlsUI.show`)},u.controlsUI.prototype.hide=function(){u._communityMethod(`controlsUI.hide`)},u.circleMenuUI=function(){},u.circleMenuUI.prototype.init=function(){},u.circleMenuUI.prototype.show=function(){u._communityMethod(`circleMenuUI.show`)},u.circleMenuUI.prototype.isVisible=function(){u._communityMethod(`circleMenuUI.isVisible`)},u.circleMenuUI.prototype.hide=function(){},u.circleMenuUI.prototype.on=function(){return u._communityMethod(`circleMenuUI.on`),this},u.toolbarUI=function(){},u.toolbarUI.expandAllIcon=``,u.toolbarUI.fitIcon=``,u.toolbarUI.openFullScreenIcon=``,u.toolbarUI.closeFullScreenIcon=``,u.toolbarUI.zoomInIcon=``,u.toolbarUI.zoomOutIcon=``,u.toolbarUI.layoutIcon=``,u.toolbarUI.prototype.init=function(){},u.toolbarUI.prototype.showLayout=function(){},u.toolbarUI.prototype.hideLayout=function(){},u.prototype.importCSV=function(){u._communityMethod(`importCSV`)},u.prototype.importXML=function(){u._communityMethod(`importXML`)},u.searchUI=function(){},u.searchUI.prototype.init=function(e){},u.searchUI.prototype._enterHandler=function(){u._communityMethod(`searchUI._enterHandler`)},u.searchUI.prototype.find=function(e){u._communityMethod(`searchUI.find`)},u.searchUI.prototype.addMatchTag=function(e){},u.searchUI.prototype.__search=function(){},u.searchUI.prototype._search=function(){},u.searchUI.prototype.helpView=function(){u._communityMethod(`searchUI.helpView`)},u.searchUI.createItem=function(e,t,n,r){u._communityMethod(`searchUI.createItem`)},u.searchUI.prototype.hide=function(){u._communityMethod(`searchUI.hide`)},u.searchUI.prototype.on=function(e,t){return u._communityMethod(`searchUI.on`),this},u.xScrollUI=function(e,t,n,r,i){this.config=t},u.xScrollUI.prototype.addListener=function(e){},u.xScrollUI.prototype.create=function(e){},u.xScrollUI.prototype.setPosition=function(){},u.yScrollUI=function(e,t,n,r,i){this.config=t},u.yScrollUI.prototype.addListener=function(e){},u.yScrollUI.prototype.create=function(e){},u.yScrollUI.prototype.setPosition=function(){},u===void 0&&(u={}),u.clinkLabelPosition=function(){},u.clinkCurve=function(){},u.prototype.addClink=function(){return u._communityMethod(`addClink`),this},u.prototype.removeClink=function(){return u._communityMethod(`removeClink`),this},u.clinkTemplates={},u.clinkTemplates.orange={defs:``,link:``,label:``},u.clinkTemplates.blue={defs:``,link:``,label:``},u.clinkTemplates.yellow={defs:``,link:``,label:``},u===void 0&&(u={}),u.prototype._slinks=function(){u._communityMethod(`_slinks`)},u.prototype.addSlink=function(){return u._communityMethod(`addSlink`),this},u.prototype.removeSlink=function(e,t){return u._communityMethod(`removeSlink`),this},u.slinkTemplates={},u.slinkTemplates.orange={defs:``,link:``,label:``,labelPosition:``},u.slinkTemplates.blue={defs:``,link:``,label:``,labelPosition:``},u.slinkTemplates.yellow={defs:``,link:``,label:``,labelPosition:``},u.orgScribeUI=function(){},u.orgScribeUI.prototype.init=function(e){},u.orgScribeUI.prototype.isVisible=function(){u._communityMethod(`orgScribeUI.isVisible`)},u.orgScribeUI.prototype.show=function(e,t){u._communityMethod(`orgScribeUI.show`)},u.orgScribeUI.prototype.hide=function(){u._communityMethod(`orgScribeUI.hide`)},u===void 0&&(u={}),u.prototype.undo=function(e){u._communityMethod(`undo`)},u.prototype.redo=function(e){u._communityMethod(`redo`)},u.prototype.clearRedo=function(){},u.prototype.clearUndo=function(){u._communityMethod(`clearUndo`)},u.prototype.undoStepsCount=function(){u._communityMethod(`undoStepsCount`)},u.prototype.redoStepsCount=function(){u._communityMethod(`redoStepsCount`)},u.prototype._putInUndoStack=function(){},u.prototype._putInRedoStack=function(){},u===void 0&&(u={}),u.undoRedoUI=function(){},u.undoRedoUI.prototype.init=function(e){},u.undoRedoUI.prototype.refresh=function(){u._communityMethod(`undoRedoUI.refresh`)},u.undoRedoUI.prototype.on=function(e,t){return u._communityMethod(`undoRedoUI.on`),this},u.undoRedoUI.prototype.onChange=function(e){u._communityMethod(`undoRedoUI.onChange`)},u.miniMap={},u.miniMap.colors=[],u.miniMap.selectorBackgroundColor=``,u.miniMap.backgroundColor=``,u.miniMap.focusStroke=``,u.miniMap.opacity=0,u.miniMap.border=``,u.miniMap.width=0,u.miniMap.height=0,u.miniMap.padding=0,u.miniMap.position={top:void 0,left:void 0,right:void 0,bottom:void 0},u.miniMap.draggable=!0,u.state={},u.state._buildStateNames=function(e){return{paramScale:e+`-scale`,paramX:e+`-x`,paramY:e+`-y`,paramExp:e+`-exp`,paramMin:e+`-min`,paramRoots:e+`-roots`,paramAdjustify:e+`-adjustify`}},u.state._put=function(e,t,n,r,i,a,o,s){},u.state._get=function(e,t,n,r){r(null)},u.state.clear=function(e){},u._search={},u._search.search=function(){u._communityMethod(`searchUI.search`)},u._search.addNodeToResult=function(){u._communityMethod(`searchUI.addNodeToResult`)},u._search.searchAndComputeScore=function(){u._communityMethod(`searchUI.searchAndComputeScore`)},u._search.searchIndexesOf=function(){u._communityMethod(`searchUI.searchIndexesOf`)},u.filterUI=function(){},u.filterUI.prototype.init=function(e){},u.filterUI.prototype.addFilterTag=function(e){},u.filterUI.prototype.show=function(e){u._communityMethod(`filterUI.show`)},u.filterUI.prototype.hide=function(){},u.filterUI.prototype._removeFilter=function(e){},u.filterUI.prototype.update=function(){},u.filterUI.prototype.on=function(e,t){u._communityMethod(`filterUI.on`)},u.filterUI.textFilterBy=``,u.filterUI.all=``,u.prototype.exportToPDFProfile=function(){u._communityMethod(`exportToPDFProfile`)},u.prototype.exportToVisio=function(){u._communityMethod(`exportToVisio`)},u.prototype.exportToPDF=function(){u._communityMethod(`exportToPDF`)},u.prototype.exportToPNG=function(){u._communityMethod(`exportToPNG`)},u.prototype.exportToSVG=function(){u._communityMethod(`exportToSVG`)},u.prototype.exportToPowerPoint=function(){u._communityMethod(`exportToPowerPoint`)},u.exportUI=function(){},u.exportUI.prototype.init=function(){},u.exportUI.prototype.show=function(e){u._communityMethod(`exportUI.show`)},u.exportUI.prototype.isVisible=function(){u._communityMethod(`exportUI.isVisible`)},u.exportUI.prototype.hide=function(){},u.exportUI.prototype.refresh=function(){u._communityMethod(`exportUI.refresh`)},u.exportUI.prototype.toggleLanscape=function(){u._communityMethod(`exportUI.toggleLanscape`)},u.exportUI.prototype.addPage=function(){u._communityMethod(`exportUI.addPage`)},u.exportUI.prototype.removePage=function(){u._communityMethod(`exportUI.removePage`)},u.exportUI.prototype.toggelePrintTreeOrProfile=function(){u._communityMethod(`exportUI.toggelePrintTreeOrProfile`)},u.exportUI.prototype.selectPage=function(e){u._communityMethod(`exportUI.selectPage`)};var d=u,f={divToEmployees:function(e){let t=[],n=1;function r(e,i){let a=n++,o={id:a};i!==void 0&&(o.pid=i),Array.from(e.attributes).forEach(e=>{let t=e.name.replace(`data-`,``),n=e.value;t===`assistant`||t===`partner`?n===`true`&&(o.tags||=[],o.tags.push(t)):o[t]=n}),t.push(o),Array.from(e.children).forEach(e=>{r(e,a)})}return Array.from(e.children).forEach(e=>r(e)),t}},p=function({children:e,title:t,name:r,photo:i,assistant:a,partner:o,...s}){return(0,n.jsx)(`div`,{...Object.keys(s).reduce((e,t)=>(e[`data-${t}`]=s[t],e),{}),"data-title":t,"data-name":r,"data-photo":i,"data-assistant":a,"data-partner":o,children:e})},m=(0,t.forwardRef)((e,r)=>{let i=(0,t.useRef)(null),a=(0,t.useRef)(null);return(0,t.useImperativeHandle)(r,()=>({get instance(){return a.current}})),(0,t.useEffect)(()=>{if(i.current&&!a.current){let t=f.divToEmployees(i.current),n=e?.data;t&&!n&&(n=t);let r={...e,nodes:n},o=new d(i.current,r);a.current=o,e.onUpdateNode&&o.onUpdateNode(e.onUpdateNode)}},[]),(0,t.useEffect)(()=>{a.current&&e.data},[e.data]),(0,n.jsx)(`div`,{ref:i,style:{width:`100%`,height:`600px`,...e?.style},children:e?.children})});m.displayName=`OrgChart`,e.Employee=p,e.OrgChart=m});