balkan-orgchart-react-community 9.2.21 → 9.2.29
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.es.js +28 -6
- package/index.umd.js +5 -5
- package/package.json +2 -2
package/index.es.js
CHANGED
|
@@ -15929,7 +15929,7 @@ b.prototype.init = function(e, t) {
|
|
|
15929
15929
|
t._menuClickHandler.apply(t, [this, e]);
|
|
15930
15930
|
});
|
|
15931
15931
|
}
|
|
15932
|
-
}, b === void 0 && (b = {}), b.VERSION = "9.2.
|
|
15932
|
+
}, b === void 0 && (b = {}), b.VERSION = "9.2.29", b.orientation = {}, b.orientation.top = 0, b.orientation.bottom = 1, b.orientation.right = 2, b.orientation.left = 3, b.orientation.top_left = 4, b.orientation.bottom_left = 5, b.orientation.right_top = 6, b.orientation.left_top = 7, b.anchor = {
|
|
15933
15933
|
top_right: "top_right",
|
|
15934
15934
|
right_top: "right_top",
|
|
15935
15935
|
bottom_right: "bottom_right",
|
|
@@ -18143,18 +18143,18 @@ b.prototype.init = function(e, t) {
|
|
|
18143
18143
|
},
|
|
18144
18144
|
expandCollapseSize: 30,
|
|
18145
18145
|
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>",
|
|
18146
|
-
link: "<path
|
|
18146
|
+
link: "<path stroke-linejoin=\"round\" stroke=\"#aeaeae\" stroke-width=\"1px\" fill=\"none\" d=\"{rounded}\" />",
|
|
18147
18147
|
node: function(e, t, n, r) {
|
|
18148
|
-
return `<rect
|
|
18148
|
+
return `<rect x="0" y="0" height="${e.h}" width="${e.w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="10" ry="10"></rect>`;
|
|
18149
18149
|
},
|
|
18150
18150
|
plus: function(e, t, n, r, i) {
|
|
18151
18151
|
var a = r.mode == "dark" ? "#1E1E1E" : "#ffffff";
|
|
18152
|
-
return `<g transform="matrix(1,0,0,1,${i.x - 15},${i.y - 15})"><circle
|
|
18152
|
+
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>
|
|
18153
18153
|
<text text-anchor="middle" style="font-size: 14px;cursor:pointer;" fill="#aeaeae" x="15" y="21">${e.deepCollapsedChildCount}</text></g>`;
|
|
18154
18154
|
},
|
|
18155
18155
|
minus: function(e, t, n, r, i) {
|
|
18156
18156
|
var a = r.mode == "dark" ? "#1E1E1E" : "#ffffff";
|
|
18157
|
-
return `<g transform="matrix(1,0,0,1,${i.x - 15},${i.y - 15})"><circle
|
|
18157
|
+
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>
|
|
18158
18158
|
<line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line></g>`;
|
|
18159
18159
|
},
|
|
18160
18160
|
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>",
|
|
@@ -20219,6 +20219,20 @@ b.prototype.init = function(e, t) {
|
|
|
20219
20219
|
e.width = s, e.height = c, i.drawImage(a, 0, 0, s, c), r(e.toDataURL("image/png"));
|
|
20220
20220
|
}, a.onerror = i, a.src = e;
|
|
20221
20221
|
});
|
|
20222
|
+
}, b._addSelectedStyle = function(e, t, n) {
|
|
20223
|
+
var r = e.getNodeElement(t.id);
|
|
20224
|
+
if (r && r.classList.add("boc-selected"), n != t.id) {
|
|
20225
|
+
var i = e.element.querySelector(`[data-ctrl-ec-id="${t.id}"]`);
|
|
20226
|
+
i && i.classList.add("boc-selected");
|
|
20227
|
+
}
|
|
20228
|
+
var a = e.getNode(t.pid);
|
|
20229
|
+
if (a) {
|
|
20230
|
+
let r = e.element.querySelector(`[data-l-id="[${t.parent.id}][${t.id}]"]`);
|
|
20231
|
+
r && r.classList.add("boc-selected"), b._addSelectedStyle(e, a, n);
|
|
20232
|
+
}
|
|
20233
|
+
}, b._removeSelectedStyle = function(e) {
|
|
20234
|
+
let t = e.element.querySelectorAll(".boc-selected");
|
|
20235
|
+
for (let e = 0; e < t.length; e++) t[e].classList.remove("boc-selected");
|
|
20222
20236
|
}, b.prototype.zoom = function(e, t, n, r) {
|
|
20223
20237
|
var i = this.getViewBox().slice(0), a = i, o = i[2], s = i[3];
|
|
20224
20238
|
e === !0 ? (i[2] /= b.SCALE_FACTOR, i[3] /= b.SCALE_FACTOR) : e === !1 ? (i[2] *= b.SCALE_FACTOR, i[3] *= b.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]);
|
|
@@ -20526,7 +20540,7 @@ b.prototype.init = function(e, t) {
|
|
|
20526
20540
|
}
|
|
20527
20541
|
}
|
|
20528
20542
|
}, b.ui.css = function() {
|
|
20529
|
-
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-menu{position:absolute;min-width:240px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:scale(.95);transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:1000;user-select:none;font:13px/28px Helvetica,\"Segoe UI\",Arial,sans-serif}.boc-menu-options{width:100%;table-layout:auto;border-collapse:collapse}.boc-menu-item{cursor:pointer}.boc-menu-icon,.boc-menu-shortcut{width:1%;white-space:nowrap;padding:12px}.boc-menu-icon{border-top-left-radius:7px;border-bottom-left-radius:7px;vertical-align:middle;font-size:20px}.boc-menu-icon>img,.boc-menu-icon>svg{display:block}.boc-menu-shortcut{text-align:right;border-top-right-radius:7px;border-bottom-right-radius:7px}.boc-menu-text{width:auto;padding:12px 0}.boc-menu-submenu{width:0%}.boc-menu.active{opacity:1;visibility:visible;transform:scale(1)}.boc-menu-line{height:1px}.boc-menu-divider>td{height:12px}.boc-menu-item.boc-has-submenu{position:relative}.boc-submenu-arrow{font-size:10px;opacity:.6}.boc-submenu{position:absolute;top:-9px;min-width:180px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:translateX(-10px);transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:1001}.boc-submenu.boc-submenu-left{right:100%;left:auto;margin-right:4px;transform:translateX(10px)}.boc-submenu:not(.boc-submenu-left){left:100%;right:auto;margin-left:4px}.boc-submenu.boc-submenu-top{bottom:0;top:auto}.boc-submenu:not(.boc-submenu-top){bottom:auto;top:0}.boc-menu-item.boc-has-submenu:hover>.boc-menu-submenu>.boc-submenu{opacity:1;visibility:visible;transform:translateX(0)}.boc-light .boc-submenu{background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05);border:1px solid #e0e0e0}.boc-light .boc-menu-divider .boc-menu-line{background-color:#e0e0e0}.boc-light .boc-menu-shortcut{color:#666}.boc-light .boc-menu-item{color:#333}.boc-light .boc-menu-item:hover>td{background-color:#f5f5f5}.boc-light .boc-menu-item:hover>.boc-menu-text{color:#000}.boc-light .boc-menu{border:1px solid #e0e0e0;background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05)}.boc-dark .boc-submenu{background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45);border:1px solid #3a3a3a}.boc-dark .boc-menu-divider .boc-menu-line{background-color:#3a3a3a}.boc-dark .boc-menu-shortcut{color:#8b949e}.boc-dark .boc-menu-item{color:#c9d1d9}.boc-dark .boc-menu-item:hover>td{background-color:#2d2d2d}.boc-dark .boc-menu-item:hover>.boc-menu-text{color:#fff}.boc-dark .boc-menu{border:1px solid #3a3a3a;background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45)}.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>";
|
|
20543
|
+
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-menu{position:absolute;min-width:240px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:scale(.95);transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:1000;user-select:none;font:13px/28px Helvetica,\"Segoe UI\",Arial,sans-serif}.boc-menu-options{width:100%;table-layout:auto;border-collapse:collapse}.boc-menu-item{cursor:pointer}.boc-menu-icon,.boc-menu-shortcut{width:1%;white-space:nowrap;padding:12px}.boc-menu-icon{border-top-left-radius:7px;border-bottom-left-radius:7px;vertical-align:middle;font-size:20px}.boc-menu-icon>img,.boc-menu-icon>svg{display:block}.boc-menu-shortcut{text-align:right;border-top-right-radius:7px;border-bottom-right-radius:7px}.boc-menu-text{width:auto;padding:12px 0}.boc-menu-submenu{width:0%}.boc-menu.active{opacity:1;visibility:visible;transform:scale(1)}.boc-menu-line{height:1px}.boc-menu-divider>td{height:12px}.boc-menu-item.boc-has-submenu{position:relative}.boc-submenu-arrow{font-size:10px;opacity:.6}.boc-submenu{position:absolute;top:-9px;min-width:180px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:translateX(-10px);transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:1001}.boc-submenu.boc-submenu-left{right:100%;left:auto;margin-right:4px;transform:translateX(10px)}.boc-submenu:not(.boc-submenu-left){left:100%;right:auto;margin-left:4px}.boc-submenu.boc-submenu-top{bottom:0;top:auto}.boc-submenu:not(.boc-submenu-top){bottom:auto;top:0}.boc-menu-item.boc-has-submenu:hover>.boc-menu-submenu>.boc-submenu{opacity:1;visibility:visible;transform:translateX(0)}.boc-light .boc-submenu{background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05);border:1px solid #e0e0e0}.boc-light .boc-menu-divider .boc-menu-line{background-color:#e0e0e0}.boc-light .boc-menu-shortcut{color:#666}.boc-light .boc-menu-item{color:#333}.boc-light .boc-menu-item:hover>td{background-color:#f5f5f5}.boc-light .boc-menu-item:hover>.boc-menu-text{color:#000}.boc-light .boc-menu{border:1px solid #e0e0e0;background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05)}.boc-dark .boc-submenu{background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45);border:1px solid #3a3a3a}.boc-dark .boc-menu-divider .boc-menu-line{background-color:#3a3a3a}.boc-dark .boc-menu-shortcut{color:#8b949e}.boc-dark .boc-menu-item{color:#c9d1d9}.boc-dark .boc-menu-item:hover>td{background-color:#2d2d2d}.boc-dark .boc-menu-item:hover>.boc-menu-text{color:#fff}.boc-dark .boc-menu{border:1px solid #3a3a3a;background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45)}.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-selected .boc-selectable{stroke:#ffca28;stroke-width:3px}.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>";
|
|
20530
20544
|
}, b.input = {}, b.input._timeout = null, b.input.initWithTimeout = function() {
|
|
20531
20545
|
b.input._timeout && (clearTimeout(b.input._timeout), b.input._timeout = null), b.input._timeout = setTimeout(b.input.init, 200);
|
|
20532
20546
|
}, b.input.init = function(e) {
|
|
@@ -20661,6 +20675,14 @@ b.prototype.init = function(e, t) {
|
|
|
20661
20675
|
return this.on("click", function(t, n) {
|
|
20662
20676
|
return e.call(t, n);
|
|
20663
20677
|
});
|
|
20678
|
+
}, b.prototype.onNodeMouseover = function(e) {
|
|
20679
|
+
return this.on("node-mouseover", function(t, n) {
|
|
20680
|
+
return e.call(t, n);
|
|
20681
|
+
});
|
|
20682
|
+
}, b.prototype.onNodeMouseleave = function(e) {
|
|
20683
|
+
return this.on("node-mouseleave", function(t, n) {
|
|
20684
|
+
return e.call(t, n);
|
|
20685
|
+
});
|
|
20664
20686
|
}, b.prototype.onCanvasClick = function(e) {
|
|
20665
20687
|
return this.on("canvas-click", function(t, n) {
|
|
20666
20688
|
return e.call(t, n);
|
package/index.umd.js
CHANGED
|
@@ -209,7 +209,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
209
209
|
<rect style="display: ${C}" data-treelist-scroll="${f.id}" class="boc-scroll" x="${f.x+f.w-f.padding[1]-_.TREELIST_SCROLLBAR_WIDTH}" y="${f.y+f.padding[0]}" width="${_.TREELIST_SCROLLBAR_WIDTH}" height="${f.h-f.padding[2]-f.padding[0]}"></rect>
|
|
210
210
|
<rect style="display: ${C}" data-treelist-thumb="${f.id}" class="boc-scroll-thumb" x="${f.x+f.w-f.padding[1]-_.TREELIST_SCROLLBAR_WIDTH}" y="${S}" width="${_.TREELIST_SCROLLBAR_WIDTH}" height="${x}"></rect>
|
|
211
211
|
|
|
212
|
-
</g>`}}for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]],p=i._get(f.id);f.isTreeListItem||(_.RENDER_LINKS_BEFORE_NODES||(o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),o+=i.ui.expandCollapseBtn(i,f,p,i.config,i._layoutConfigs,t,s))}var a={content:o,res:e};if(_.events.publish(`render`,[i,a]),o=a.content,e=a.res,o+=i.ui.lonely(i.config),t===_.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===_.action.centernode||t===_.action.insert||t===_.action.expand||t===_.action.collapse||t===_.action.update)&&(l=c),t===_.action.init&&c!=null&&(l=c),t===_.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 d=0;d<j[0].length;d++)j[0][d]=i.getNodeElement(j[0][d]);_.animate(j[0],j[1],j[2],i.config.anim.duration,i.config.anim.func,function(){A||=(r&&r.call(i),_.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)})}t===_.action.centerNode?_.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),_.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===_.action.insert||t===_.action.expand||t===_.action.collapse||t===_.action.update||t===_.action.init)?_.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),_.events.publish(`redraw`,[i]),!0)}):j[0].length==0&&(A||=(r&&r.call(i),_.events.publish(`redraw`,[i]),!0)),i._initialized||(i._initialized=!0,i.filterUI.update(),i._ai.setContext(),_.events.publish(`init`,[i])),!i._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(i._loaded=!0)}},function(e){_.events.publish(`ready`,[i,e])})}},_.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`))},_.prototype.width=function(){return this.element.offsetWidth},_.prototype.height=function(){return this.element.offsetHeight},_.prototype.getViewBox=function(){var e=this.getSvg();return _._getViewBox(e)},_.prototype.setViewBox=function(e){this.getSvg().setAttribute(`viewBox`,e.toString())},_.prototype.getScale=function(e){return e||=this.getViewBox(),_.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},_.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),_.events.publish(`redraw`,[this]),e},_.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,u=r.h,d=l-o>o?l-o:o,f=u-s>s?u-s:s;d=d,f=f;var p=d>f?d:f,m=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),h=document.createElementNS(`http://www.w3.org/2000/svg`,`clipPath`),g=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`),v=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`),y=_.randomId();h.setAttribute(`id`,y);var b={ripple:_.t(r.templateName,r.min,this.getScale()).ripple,node:r};_.events.publish(`ripple`,[this,b]),g.setAttribute(`x`,b.ripple.rect?b.ripple.rect.x:0),g.setAttribute(`y`,b.ripple.rect?b.ripple.rect.y:0),g.setAttribute(`width`,b.ripple.rect?b.ripple.rect.width:r.w),g.setAttribute(`height`,b.ripple.rect?b.ripple.rect.height:r.h),g.setAttribute(`rx`,b.ripple.radius),g.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`),h.appendChild(g),m.appendChild(h),m.appendChild(v),i.appendChild(m),_.animate(v,{r:0,opacity:1},{r:p,opacity:0},500,_.anim.outPow,function(){i.removeChild(m)})}}},_.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var n=this;this._centerInNodesTimeout=_.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){n.draw(_.action.update,null,function(){e&&e.call(n)})})}},_.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,u=c/(c+this.config.padding*2),d=l/(l+this.config.padding*2),f=u>d?d:u;f>this.config.scaleMax&&(f=this.config.scaleMax),f<this.config.scaleMin&&(f=this.config.scaleMin);var p=[50,50],m=this.width(),h=this.height(),u=m/n[2],d=h/n[3],g=u>d?d:u,v=n,y=n[2],b=n[3];n[2]/=f/g,n[3]/=f/g,n[0]=v[0]-(n[2]-y)/(100/p[0]),n[1]=v[1]-(n[3]-b)/(100/p[1]),n[0]=a-(m/f-c)/2,n[1]=r-(h/f-l)/2;var x=this;this._centerInNodesTimeout&&=(clearTimeout(this._centerInNodesTimeout),null),this._centerInNodesTimeout=_.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:n},300,this.config.anim.func,function(){x.draw(_.action.update,null,function(){t&&t.call(x)})})},_.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,_.action.centerNode,{id:e,options:c},n)},_.prototype.fit=function(e){this.config.scaleInitial=_.match.boundary,this._draw(!0,_.action.init,{method:`fit`},e)},_.prototype.fitIfOutside=function(e){this.config.scaleInitial=_.match.boundaryIfOutside,this._draw(!0,_.action.init,{method:`fit`},e)},_.prototype.toggleFullScreen=function(){var e=document.querySelector(`[`+_.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=_.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=_.toolbarUI.closeFullScreenIcon))},_.prototype.getNode=function(e){return this.nodes[e]},_.prototype.setLayout=function(e,t){t||=`base`,this._layoutConfigs[t].layout=e,t==`base`&&(this.config.layout=e),this._draw(!1,_.action.update)},_.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,_.action.update,void 0,function(){r.getScale(),_._moveToBoundaryArea(r.getSvg(),r.getViewBox(),r.response.boundary,function(){r._draw(!0,_.action.pan),n&&n()})})},_.prototype.search=function(e,t,n){return _.isNEU(t)&&(t=this.searchUI._searchFields),_.isNEU(n)&&(n=t),_._search.search(this.config.nodes,e,t,n,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},_.prototype._hideBeforeAnimation=function(e){if(this._hideBeforeAnimationCompleted!=1&&!(e&&e<_.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName(`text`);if(t.length>_.TEXT_THRESHOLD)for(var n=0;n<t.length;n++)t[n].style.display=`none`;var r=this.element.getElementsByTagName(`image`);if(r.length>_.IMAGES_THRESHOLD)for(var n=0;n<r.length;n++)r[n].style.display=`none`;var i=this.element.querySelectorAll(`[`+_.attr.link_id+`]`);if(i.length>_.LINKS_THRESHOLD)for(var n=0;n<i.length;n++)i[n].style.display=`none`;var a=this.element.querySelectorAll(`[`+_.attr.control_expcoll_id+`]`);if(a.length>_.BUTTONS_THRESHOLD)for(var n=0;n<a.length;n++)a[n].style.display=`none`;var o=this.element.querySelectorAll(`[`+_.attr.control_up_id+`]`);if(o.length>_.BUTTONS_THRESHOLD)for(var n=0;n<o.length;n++)o[n].style.display=`none`;this._hideBeforeAnimationCompleted=!0}},_.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(`[`+_.attr.link_id+`]`),t=0;t<r.length;t++)r[t].style.display=``;for(var i=this.element.querySelectorAll(`[`+_.attr.control_expcoll_id+`]`),t=0;t<i.length;t++)i[t].style.display=``;for(var a=this.element.querySelectorAll(`[`+_.attr.control_up_id+`]`),t=0;t<a.length;t++)a[t].style.display=``;this._hideBeforeAnimationCompleted=!1},_.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},_.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},_.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``},_.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}},_.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,u=0;u<e.length;u++){var d=this.nodes[e[u]];d.x!=null&&d.y!=null&&((o===null||o<d.x+d.w)&&(o=d.x+d.w),(s===null||s<d.y+d.h)&&(s=d.y+d.h),(c===null||c>d.x)&&(c=d.x),(l===null||l>d.y)&&(l=d.y))}if(!(o==null||s==null||c==null||l==null)){var f=this.width(),p=this.height(),m=o-c+this.config.padding*2,h=s-l+this.config.padding*2,g=f/m,v=p/h,y=g>v?v:g,b=Math.ceil(f/y),x=Math.ceil(p/y),m=0,h=0;if(b-this.config.padding*2>=o-c)m=(o+c)/2-b/2;else switch(m=r.x-b/2+_.manager._getNodeWidth(r,this.config)/2,this.config.orientation){case _.orientation.right:case _.orientation.right_top:m=-(b/2-(c-o)/2),m<this.config.padding-b&&(m=this.config.padding-b);break;case _.orientation.left:case _.orientation.bottom_left:case _.orientation.top_left:case _.orientation.left_top:m=-(b/2-(o-c)/2),m>-this.config.padding&&(m=-this.config.padding);break}if(x-this.config.padding*2>=s-l)h=(s+l)/2-x/2;else switch(h=-(x/2-(s-l)/2),h>-this.config.padding&&(h=-this.config.padding),this.config.orientation){case _.orientation.bottom:case _.orientation.bottom_left:h=-(x/2-(l-s)/2),h<this.config.padding-x&&(h=this.config.padding-x);break;case _.orientation.left:case _.orientation.right:h=r.y-x/2+_.manager._getNodeWidth(r,this.config)/2;break}var S=[m,h,b,x];a[0]!==S[0]||a[1]!==S[1]?_.animate(i,{viewBox:a},{viewBox:S},this.config.anim.duration,this.config.anim.func,function(){n.draw(_.action.update,void 0,t)}):t&&t()}},_.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!_.isNEU(e.pid)&&this.getNode(e.pid)},_.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),_.events.removeForEventId(this._event_id),this.element.innerHTML=null},_.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)},_.prototype._canUpdateLink=_.prototype.canUpdateLink,_.prototype.updateNode=function(e,t,n,r){if(e){var i=this,a=this.get(e.id);if(n===!0&&_.events.publish(`update`,[this,a,e])===!1)return!1;this.update(e),this._ai.setContext(),_.events.publish(`updated`,[this]),this.filterUI.update();var o=this.getNode(e.id),s=o.pid;s??=o.stpid,this._draw(!1,_.action.update,{id:s},function(){r||i.ripple(e.id),t&&t()})}},_.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},_.prototype.removeNode=function(e,t,n){if(!this.canRemove(e))return!1;var r=this._getNewPidsAndStpidsForIds(e);return n===!0&&_.events.publish(`remove`,[this,e,r])===!1?!1:(this.remove(e),this._ai.setContext(),_.events.publish(`updated`,[this]),this.filterUI.update(),this._draw(!1,_.action.update,null,function(){t&&t()}),!0)},_.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},_.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}},_.prototype.addNode=function(e,t,n){var r=this;if(n===!0&&_.events.publish(`add`,[this,e])===!1)return!1;this.add(e),this._ai.setContext(),_.events.publish(`updated`,[this]),this.filterUI.update(),r._draw(!1,_.action.insert,{id:e.pid,insertedNodeId:e.id},function(){r.ripple(e.id),t&&t()})},_.prototype.add=function(e){if(e.id??console.error(`Call addNode without id`),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!_.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},_.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,_.action.update,void 0,t)},_.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++)_.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(!_.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(!_.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(!_.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)},_.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!_.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},_.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},_.prototype.get=function(e){var t=this._get(e);return t==null?null:JSON.parse(JSON.stringify(t))},_.prototype.canRemove=function(e){var t=this.getNode(e);return!(!t||t.hasPartners||t.hasAssistants)},_===void 0&&(_={}),_.animate=function(e,t,n,r,i,a,o){var s=10,c=1,l=1,u=r/s+1,d;document.getElementsByTagName(`g`),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);function f(){for(var f=0;f<e.length;f++)for(var p in n[f]){var m=_._arrayContains([`top`,`left`,`right`,`bottom`,`width`,`height`],p.toLowerCase())?`px`:``;switch(p.toLowerCase()){case`d`:var h=i((l*s-s)/r)*(n[f][p][0]-t[f][p][0])+t[f][p][0],g=i((l*s-s)/r)*(n[f][p][1]-t[f][p][1])+t[f][p][1];e[f].setAttribute(`d`,e[f].getAttribute(`d`)+` L`+h+` `+g);break;case`r`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`r`,v);break;case`x1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x1`,v);break;case`x2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x2`,v);break;case`y1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y1`,v);break;case`y2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y2`,v);break;case`scrolltop`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTop=v;break;case`rotate3d`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].style.transform=`rotate3d(`+x.toString()+`deg)`}break;case`transform`:if(n[f][p]){var y=t[f][p],b=n[f][p],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[f].hasAttribute(`transform`)?e[f].setAttribute(`transform`,`matrix(`+x.toString()+`)`):e[f].style.transform=`matrix(`+x.toString()+`)`}break;case`viewbox`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].setAttribute(`viewBox`,x.toString())}break;case`margin`:if(n[f][p]){var y=t[f][p],b=n[f][p],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[f]&&e[f].style&&(e[f].style[p]=C)}break;case`scrolly`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTo(0,v);break;default:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f]&&e[f].style&&(e[f].style[p]=v+m);break}}if(o){var v=i((l*s-s)/r);o(v)}l+=c,l>u+1&&(clearInterval(d),a&&a(e))}return d=setInterval(f,s),d},_.anim={},_.anim.inPow=function(e){return e<0?0:e>1?1:e**2},_.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)},_.anim.inOutPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;if(e*=2,e<1)return _.anim.inPow(e,t)/2;var n=t%2==0?-1:1;return n/2*((e-2)**t+n*2)},_.anim.inSin=function(e){return e<0?0:e>1?1:-Math.cos(Math.PI/2*e)+1},_.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(Math.PI/2*e)},_.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},_.anim.inExp=function(e){return e<0?0:e>1?1:2**(10*(e-1))},_.anim.outExp=function(e){return e<0?0:e>1?1:-(2**(-10*e))+1},_.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)},_.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},_.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},_.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)},_.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)},_.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},_.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},_.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)},_.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},_.anim.expPulse=function(e){return Math.exp(-2*e**2)},_===void 0&&(_={}),_.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!=_.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])})}},_===void 0&&(_={}),_.VERSION=`9.2.21`,_.orientation={},_.orientation.top=0,_.orientation.bottom=1,_.orientation.right=2,_.orientation.left=3,_.orientation.top_left=4,_.orientation.bottom_left=5,_.orientation.right_top=6,_.orientation.left_top=7,_.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`},_.align={},_.align.center=_.CENTER=8,_.align.orientation=_.ORIENTATION=9,_.attr={},_.attr.l=`data-l`,_.attr.id=`data-id`,_.attr.sl=`data-sl`,_.attr.lbl=`data-lbl`,_.attr.val=`data-val`,_.attr.tlbr=`data-tlbr`,_.attr.item=`data-item`,_.attr.layout=`data-layout`,_.attr.node_id=`data-n-id`,_.attr.link_id=`data-l-id`,_.attr.field_name=`data-f-name`,_.attr.c_link_to=`data-c-l-to`,_.attr.c_link_from=`data-c-l-from`,_.attr.s_link_to=`data-s-l-to`,_.attr.s_link_from=`data-s-l-from`,_.attr.control_add=`data-ctrl-add`,_.attr.control_expcoll_id=`data-ctrl-ec-id`,_.attr.control_up_id=`data-ctrl-up-id`,_.attr.control_export_menu=`data-ctrl-menu`,_.attr.control_node_menu_id=`data-ctrl-n-menu-id`,_.attr.control_node_circle_menu_id=`data-ctrl-n-c-menu-id`,_.attr.control_node_circle_menu_name=`data-ctrl-n-c-menu-name`,_.attr.control_node_circle_menu_wrraper_id=`data-ctrl-n-c-menu-wrapper-id`,_.attr.width=`data-width`,_.attr.text_overflow=`data-text-overflow`,_.ID=`id`,_.PID=`pid`,_.STPID=`stpid`,_.TAGS=`tags`,_.NODES=`nodes`,_.ELASTIC=`elastic`,_.ASSISTANT=`Assistant`,_.action={},_.action.expand=0,_.action.collapse=1,_.action.maximize=101,_.action.minimize=102,_.action.expandCollapse=501,_.action.edit=1,_.action.zoom=2,_.action.ctrlZoom=22,_.action.scroll=41,_.action.xScroll=3,_.action.yScroll=4,_.action.none=5,_.action.init=6,_.action.update=7,_.action.move=70,_.action.pan=8,_.action.centerNode=9,_.action.resize=10,_.action.insert=11,_.action.insertfirst=12,_.action.details=13,_.action.exporting=14,_.none=400001,_.scroll={},_.scroll.visible=!0,_.scroll.smooth=12,_.scroll.speed=120,_.scroll.safari={smooth:12,speed:250},_.match={},_.match.height=100001,_.match.width=100002,_.match.boundary=100003,_.match.boundaryIfOutside=100004,_.match.none=1,_.movable={},_.movable.node=`node`,_.movable.tree=`tree`,_.movable.detachTree=`detachTree`,_.layout={},_.layout.normal=_.normal=0,_.layout.mixed=_.mixed=1,_.layout.tree=_.tree=2,_.layout.treeLeftOffset=_.treeLeftOffset=3,_.layout.treeRightOffset=_.treeRightOffset=4,_.layout.treeLeft=5,_.layout.treeRight=6,_.layout.grid=-1,_.layout.treeList=-2,_.nodeOpenTag=`<g `+_.attr.node_id+`="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" `+_.attr.sl+`="{sl}" `+_.attr.l+`="{level}" {lcn}>`,_.linkOpenTag=`<g `+_.attr.link_id+`="[{id}][{child-id}]" class="{class}">`,_.expcollOpenTag=`<g `+_.attr.control_expcoll_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,_.upOpenTag=`<g `+_.attr.control_up_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,_.linkFieldsOpenTag=`<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">`,_.grCloseTag=`</g>`,_.A5={width:420,height:595},_.A4={width:595,height:842},_.A3={width:842,height:1191},_.A2={width:1191,height:1684},_.A1={width:1684,height:2384},_.Letter={width:612,height:791},_.Legal={width:612,height:1009},_.Legal={width:612,height:1009},_.Widescreen={width:720,height:1280},_.Standard={width:720,height:960},_.COLLAPSE_PARENT_NEIGHBORS=1,_.COLLAPSE_SUB_CHILDRENS=2,_.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,_.TEXT_THRESHOLD=4e3,_.IMAGES_THRESHOLD=1e3,_.LINKS_THRESHOLD=2e3,_.BUTTONS_THRESHOLD=700,_.ANIM_THRESHOLD=500,_.IT_IS_LONELY_HERE=`<g transform="translate(-100, 0)" style="cursor:pointer;" `+_.attr.control_add+`="control-add"><text fill="#039be5">{link}</text></g>`,_.RES={},_.IT_IS_LONELY_HERE_LINK=_.RES.IT_IS_LONELY_HERE_LINK=`It's lonely here, add your first node`,_.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,_.STRING_TAGS=!1,_.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>`,_.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>`,_.SEARCH_PLACEHOLDER=`Search... type ? to get help.`,_.SEARCH_HELP_SYMBOL=`?`,_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,_.SEARCH_RESULT_LIMIT=10,_.IMPORT_MESSAGE=`Choose the columns (fields) in your data file that contain the required information.`,_.FIXED_POSITION_ON_CLICK=!1,_.RENDER_LINKS_BEFORE_NODES=!1,_.RENDER_CLINKS_BEFORE_NODES=!1,_.MIXED_LAYOUT_ALL_NODES=!1,_.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,_.LINK_ROUNDED_CORNERS=5,_.MOVE_STEP=5,_.CLINK_CURVE=1,_.MAX_DEPTH=200,_.SCALE_FACTOR=1.44,_.LAZY_LOADING_FACTOR=`auto`,_.LAZY_LOADING=!0,_.ARRAY_FIELDS=[`tags`],_.CSV_DELIMITER=`,`,_.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>`,_.ESCAPE_HTML=!1,_.VERTICAL_CHILDREN_ASSISTANT=!1,_.EXPORT_PAGES_CUT_NODES=!1,_.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,_.FILTER_ALPHABETICALLY=!0,_.SERVER_PREFIX=`.azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs`,_.FUNC_URL_NAME=`func-url-orgchartjs`,_.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,_.AI_SYSTEM_MESSAGES=[],_.ORGSCRIBE_OFFSET=` `,_.TREELIST_WHEEL_STEP=`auto`,_.TREELIST_SCROLLBAR_WIDTH=10,_.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,_.REQUEST_CUSTOM_HEADERS={},_.SLINK_GAP=7,_._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 _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.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,u=t.s,d=(a-r)*(u-c)-(l-s)*(o-i),f,p;return d===0?!1:(p=((u-c)*(l-r)+(s-l)*(u-i))/d,f=((i-o)*(l-r)+(a-r)*(u-i))/d,0<p&&p<1&&0<f&&f<1)},_._addPoint=function(e,t,n,r,i){switch(n.orientation){case _.orientation.top:case _.orientation.top_left:return _._addPointTop(e,t,n,r,i);case _.orientation.bottom:case _.orientation.bottom_left:return _._addPointBottom(e,t,n,r,i);case _.orientation.left:case _.orientation.left_top:return _._addPointLeft(e,t,n,r,i);case _.orientation.right:case _.orientation.right_top:return _._addPointRight(e,t,n,r,i)}},_._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},_._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},_._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},_._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},_._addConnectorLines=function(e,t){_._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),_._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),_._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},_._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})}},_._addLineToPath=function(e,t,n){return _._avoidOverlapping(t,n),e.push([n.x1,n.y1]),e.push([n.x2,n.y2]),_._addConnectorLine(t,n),n},_._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)}},_._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==_.orientation.top||r==_.orientation.top_left?n==`left`?o[0]-=_.SLINK_GAP:n==`right`&&(o[0]+=_.SLINK_GAP):(r==_.orientation.bottom||r==_.orientation.bottom_left)&&(n==`right`?o[0]+=_.SLINK_GAP:n==`left`&&(o[0]-=_.SLINK_GAP)),c=!1;break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}var u=!0;if(a[1]==o[1]&&a[0]>=o[0]&&(u=!1),u&&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==_.orientation.top||r==_.orientation.top_left?o[1]-=_.SLINK_GAP:(r==_.orientation.bottom||r==_.orientation.bottom_left)&&(o[1]+=_.SLINK_GAP),c=!1);break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}u&&_._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},_._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==_.orientation.top||n==_.orientation.top_left?a[1]-=_.SLINK_GAP:(n==_.orientation.bottom||n==_.orientation.bottom_left)&&(a[1]+=_.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.y[a[1]]}i[1]=a[1]}o||_._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},_._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==_.orientation.left||r==_.orientation.left_top?n==`top`?o[1]-=_.SLINK_GAP:n==`bottom`&&(o[1]+=_.SLINK_GAP):(r==_.orientation.right||r==_.orientation.right_top)&&(n==`bottom`?o[1]+=_.SLINK_GAP:n==`top`&&(o[1]-=_.SLINK_GAP)),c=!1;break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}var u=!0;if(a[0]==o[0]&&a[1]>=o[1]&&(u=!1),u&&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==_.orientation.left||r==_.orientation.left_top?o[0]-=_.SLINK_GAP:(r==_.orientation.right||r==_.orientation.right_top)&&(o[0]+=_.SLINK_GAP),c=!1);break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}u&&_._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},_._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==_.orientation.left||n==_.orientation.left_top?a[0]-=_.SLINK_GAP:(n==_.orientation.right||n==_.orientation.right_top)&&(a[0]+=_.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.x[a[0]]}i[0]=a[0]}o||_._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},_.prototype.getSvg=function(){return this.element.querySelector(`svg`)},_.prototype.getPointerElement=function(){return this.element.querySelector(`g[data-pointer]`)},_.prototype.getNodeElement=function(e){return this.element.querySelector(`[`+_.attr.node_id+`='`+e+`']`)},_.prototype.getMenuButton=function(){return this.element.querySelector(`[`+_.attr.control_export_menu+`]`)},_.notifierUI=function(){},_.notifierUI.prototype.init=function(e){this.obj=e},_.notifierUI.prototype.show=function(e,t){if(e==null)return!1;e==1&&(e=_.MAX_NODES_MESS,t=`#FFCA28`),e==2&&(e=_.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`,_.animate(n,{opacity:0,width:10},{opacity:1,width:a},this.obj.config.anim.duration,this.obj.config.anim.func),!0},_===void 0&&(_={}),_.icon={},_.icon.png_export=_.icon.png_preview=_.icon.pngpreview=_.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}">
|
|
212
|
+
</g>`}}for(var d=0;d<e.visibleNodeIds.length;d++){var f=e.nodes[e.visibleNodeIds[d]],p=i._get(f.id);f.isTreeListItem||(_.RENDER_LINKS_BEFORE_NODES||(o+=i.ui.link(f,i,s,e.bordersByRootIdAndLevel,e.nodes,t)),o+=i.ui.expandCollapseBtn(i,f,p,i.config,i._layoutConfigs,t,s))}var a={content:o,res:e};if(_.events.publish(`render`,[i,a]),o=a.content,e=a.res,o+=i.ui.lonely(i.config),t===_.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===_.action.centernode||t===_.action.insert||t===_.action.expand||t===_.action.collapse||t===_.action.update)&&(l=c),t===_.action.init&&c!=null&&(l=c),t===_.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 d=0;d<j[0].length;d++)j[0][d]=i.getNodeElement(j[0][d]);_.animate(j[0],j[1],j[2],i.config.anim.duration,i.config.anim.func,function(){A||=(r&&r.call(i),_.events.publish(`redraw`,[i]),i._showAfterAnimation(),!0)})}t===_.action.centerNode?_.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),_.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===_.action.insert||t===_.action.expand||t===_.action.collapse||t===_.action.update||t===_.action.init)?_.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),_.events.publish(`redraw`,[i]),!0)}):j[0].length==0&&(A||=(r&&r.call(i),_.events.publish(`redraw`,[i]),!0)),i._initialized||(i._initialized=!0,i.filterUI.update(),i._ai.setContext(),_.events.publish(`init`,[i])),!i._loaded&&e&&e.nodes&&Object.keys(e.nodes).length&&(i._loaded=!0)}},function(e){_.events.publish(`ready`,[i,e])})}},_.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`))},_.prototype.width=function(){return this.element.offsetWidth},_.prototype.height=function(){return this.element.offsetHeight},_.prototype.getViewBox=function(){var e=this.getSvg();return _._getViewBox(e)},_.prototype.setViewBox=function(e){this.getSvg().setAttribute(`viewBox`,e.toString())},_.prototype.getScale=function(e){return e||=this.getViewBox(),_.getScale(e,this.width(),this.height(),this.config.scaleInitial,this.config.scaleMax,this.config.scaleMin)},_.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),_.events.publish(`redraw`,[this]),e},_.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,u=r.h,d=l-o>o?l-o:o,f=u-s>s?u-s:s;d=d,f=f;var p=d>f?d:f,m=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),h=document.createElementNS(`http://www.w3.org/2000/svg`,`clipPath`),g=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`),v=document.createElementNS(`http://www.w3.org/2000/svg`,`circle`),y=_.randomId();h.setAttribute(`id`,y);var b={ripple:_.t(r.templateName,r.min,this.getScale()).ripple,node:r};_.events.publish(`ripple`,[this,b]),g.setAttribute(`x`,b.ripple.rect?b.ripple.rect.x:0),g.setAttribute(`y`,b.ripple.rect?b.ripple.rect.y:0),g.setAttribute(`width`,b.ripple.rect?b.ripple.rect.width:r.w),g.setAttribute(`height`,b.ripple.rect?b.ripple.rect.height:r.h),g.setAttribute(`rx`,b.ripple.radius),g.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`),h.appendChild(g),m.appendChild(h),m.appendChild(v),i.appendChild(m),_.animate(v,{r:0,opacity:1},{r:p,opacity:0},500,_.anim.outPow,function(){i.removeChild(m)})}}},_.prototype.centerOutNodes=function(e){if(this._centerInNodes){var t=JSON.parse(this._centerInNodes);this._centerInNodes=null;var n=this;this._centerInNodesTimeout=_.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:t},300,this.config.anim.func,function(){n.draw(_.action.update,null,function(){e&&e.call(n)})})}},_.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,u=c/(c+this.config.padding*2),d=l/(l+this.config.padding*2),f=u>d?d:u;f>this.config.scaleMax&&(f=this.config.scaleMax),f<this.config.scaleMin&&(f=this.config.scaleMin);var p=[50,50],m=this.width(),h=this.height(),u=m/n[2],d=h/n[3],g=u>d?d:u,v=n,y=n[2],b=n[3];n[2]/=f/g,n[3]/=f/g,n[0]=v[0]-(n[2]-y)/(100/p[0]),n[1]=v[1]-(n[3]-b)/(100/p[1]),n[0]=a-(m/f-c)/2,n[1]=r-(h/f-l)/2;var x=this;this._centerInNodesTimeout&&=(clearTimeout(this._centerInNodesTimeout),null),this._centerInNodesTimeout=_.animate(this.getSvg(),{viewBox:this.getViewBox()},{viewBox:n},300,this.config.anim.func,function(){x.draw(_.action.update,null,function(){t&&t.call(x)})})},_.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,_.action.centerNode,{id:e,options:c},n)},_.prototype.fit=function(e){this.config.scaleInitial=_.match.boundary,this._draw(!0,_.action.init,{method:`fit`},e)},_.prototype.fitIfOutside=function(e){this.config.scaleInitial=_.match.boundaryIfOutside,this._draw(!0,_.action.init,{method:`fit`},e)},_.prototype.toggleFullScreen=function(){var e=document.querySelector(`[`+_.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=_.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=_.toolbarUI.closeFullScreenIcon))},_.prototype.getNode=function(e){return this.nodes[e]},_.prototype.setLayout=function(e,t){t||=`base`,this._layoutConfigs[t].layout=e,t==`base`&&(this.config.layout=e),this._draw(!1,_.action.update)},_.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,_.action.update,void 0,function(){r.getScale(),_._moveToBoundaryArea(r.getSvg(),r.getViewBox(),r.response.boundary,function(){r._draw(!0,_.action.pan),n&&n()})})},_.prototype.search=function(e,t,n){return _.isNEU(t)&&(t=this.searchUI._searchFields),_.isNEU(n)&&(n=t),_._search.search(this.config.nodes,e,t,n,this.config.searchDisplayField,this.config.searchFieldsWeight,this.searchUI._searchFieldsAbbreviation)},_.prototype._hideBeforeAnimation=function(e){if(this._hideBeforeAnimationCompleted!=1&&!(e&&e<_.ANIM_THRESHOLD)){var t=this.element.getElementsByTagName(`text`);if(t.length>_.TEXT_THRESHOLD)for(var n=0;n<t.length;n++)t[n].style.display=`none`;var r=this.element.getElementsByTagName(`image`);if(r.length>_.IMAGES_THRESHOLD)for(var n=0;n<r.length;n++)r[n].style.display=`none`;var i=this.element.querySelectorAll(`[`+_.attr.link_id+`]`);if(i.length>_.LINKS_THRESHOLD)for(var n=0;n<i.length;n++)i[n].style.display=`none`;var a=this.element.querySelectorAll(`[`+_.attr.control_expcoll_id+`]`);if(a.length>_.BUTTONS_THRESHOLD)for(var n=0;n<a.length;n++)a[n].style.display=`none`;var o=this.element.querySelectorAll(`[`+_.attr.control_up_id+`]`);if(o.length>_.BUTTONS_THRESHOLD)for(var n=0;n<o.length;n++)o[n].style.display=`none`;this._hideBeforeAnimationCompleted=!0}},_.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(`[`+_.attr.link_id+`]`),t=0;t<r.length;t++)r[t].style.display=``;for(var i=this.element.querySelectorAll(`[`+_.attr.control_expcoll_id+`]`),t=0;t<i.length;t++)i[t].style.display=``;for(var a=this.element.querySelectorAll(`[`+_.attr.control_up_id+`]`),t=0;t<a.length;t++)a[t].style.display=``;this._hideBeforeAnimationCompleted=!1},_.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},_.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},_.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``},_.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}},_.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,u=0;u<e.length;u++){var d=this.nodes[e[u]];d.x!=null&&d.y!=null&&((o===null||o<d.x+d.w)&&(o=d.x+d.w),(s===null||s<d.y+d.h)&&(s=d.y+d.h),(c===null||c>d.x)&&(c=d.x),(l===null||l>d.y)&&(l=d.y))}if(!(o==null||s==null||c==null||l==null)){var f=this.width(),p=this.height(),m=o-c+this.config.padding*2,h=s-l+this.config.padding*2,g=f/m,v=p/h,y=g>v?v:g,b=Math.ceil(f/y),x=Math.ceil(p/y),m=0,h=0;if(b-this.config.padding*2>=o-c)m=(o+c)/2-b/2;else switch(m=r.x-b/2+_.manager._getNodeWidth(r,this.config)/2,this.config.orientation){case _.orientation.right:case _.orientation.right_top:m=-(b/2-(c-o)/2),m<this.config.padding-b&&(m=this.config.padding-b);break;case _.orientation.left:case _.orientation.bottom_left:case _.orientation.top_left:case _.orientation.left_top:m=-(b/2-(o-c)/2),m>-this.config.padding&&(m=-this.config.padding);break}if(x-this.config.padding*2>=s-l)h=(s+l)/2-x/2;else switch(h=-(x/2-(s-l)/2),h>-this.config.padding&&(h=-this.config.padding),this.config.orientation){case _.orientation.bottom:case _.orientation.bottom_left:h=-(x/2-(l-s)/2),h<this.config.padding-x&&(h=this.config.padding-x);break;case _.orientation.left:case _.orientation.right:h=r.y-x/2+_.manager._getNodeWidth(r,this.config)/2;break}var S=[m,h,b,x];a[0]!==S[0]||a[1]!==S[1]?_.animate(i,{viewBox:a},{viewBox:S},this.config.anim.duration,this.config.anim.func,function(){n.draw(_.action.update,void 0,t)}):t&&t()}},_.prototype._nodeHasHiddenParent=function(e){return!e.parent&&!_.isNEU(e.pid)&&this.getNode(e.pid)},_.prototype.destroy=function(){this._initCalled=!1,this._resizeObserver.unobserve(this.element),_.events.removeForEventId(this._event_id),this.element.innerHTML=null},_.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)},_.prototype._canUpdateLink=_.prototype.canUpdateLink,_.prototype.updateNode=function(e,t,n,r){if(e){var i=this,a=this.get(e.id);if(n===!0&&_.events.publish(`update`,[this,a,e])===!1)return!1;this.update(e),this._ai.setContext(),_.events.publish(`updated`,[this]),this.filterUI.update();var o=this.getNode(e.id),s=o.pid;s??=o.stpid,this._draw(!1,_.action.update,{id:s},function(){r||i.ripple(e.id),t&&t()})}},_.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},_.prototype.removeNode=function(e,t,n){if(!this.canRemove(e))return!1;var r=this._getNewPidsAndStpidsForIds(e);return n===!0&&_.events.publish(`remove`,[this,e,r])===!1?!1:(this.remove(e),this._ai.setContext(),_.events.publish(`updated`,[this]),this.filterUI.update(),this._draw(!1,_.action.update,null,function(){t&&t()}),!0)},_.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},_.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}},_.prototype.addNode=function(e,t,n){var r=this;if(n===!0&&_.events.publish(`add`,[this,e])===!1)return!1;this.add(e),this._ai.setContext(),_.events.publish(`updated`,[this]),this.filterUI.update(),r._draw(!1,_.action.insert,{id:e.pid,insertedNodeId:e.id},function(){r.ripple(e.id),t&&t()})},_.prototype.add=function(e){if(e.id??console.error(`Call addNode without id`),this._putInUndoStack(),this.clearRedo(),this.config.movable&&!_.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},_.prototype.replaceIds=function(e,t){this._replaceIds(e),this._draw(!1,_.action.update,void 0,t)},_.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++)_.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(!_.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(!_.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(!_.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)},_.prototype._get=function(e){var t=this.__get(e);if(t)return t;if((this.config.groupDottedLines.length||this.config.dottedLines.length)&&!_.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},_.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},_.prototype.get=function(e){var t=this._get(e);return t==null?null:JSON.parse(JSON.stringify(t))},_.prototype.canRemove=function(e){var t=this.getNode(e);return!(!t||t.hasPartners||t.hasAssistants)},_===void 0&&(_={}),_.animate=function(e,t,n,r,i,a,o){var s=10,c=1,l=1,u=r/s+1,d;document.getElementsByTagName(`g`),Array.isArray(e)||(e=[e]),Array.isArray(t)||(t=[t]),Array.isArray(n)||(n=[n]);function f(){for(var f=0;f<e.length;f++)for(var p in n[f]){var m=_._arrayContains([`top`,`left`,`right`,`bottom`,`width`,`height`],p.toLowerCase())?`px`:``;switch(p.toLowerCase()){case`d`:var h=i((l*s-s)/r)*(n[f][p][0]-t[f][p][0])+t[f][p][0],g=i((l*s-s)/r)*(n[f][p][1]-t[f][p][1])+t[f][p][1];e[f].setAttribute(`d`,e[f].getAttribute(`d`)+` L`+h+` `+g);break;case`r`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`r`,v);break;case`x1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x1`,v);break;case`x2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`x2`,v);break;case`y1`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y1`,v);break;case`y2`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].setAttribute(`y2`,v);break;case`scrolltop`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTop=v;break;case`rotate3d`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].style.transform=`rotate3d(`+x.toString()+`deg)`}break;case`transform`:if(n[f][p]){var y=t[f][p],b=n[f][p],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[f].hasAttribute(`transform`)?e[f].setAttribute(`transform`,`matrix(`+x.toString()+`)`):e[f].style.transform=`matrix(`+x.toString()+`)`}break;case`viewbox`:if(n[f][p]){var y=t[f][p],b=n[f][p],x=[0,0,0,0];for(var S in y)x[S]=i((l*s-s)/r)*(b[S]-y[S])+y[S];e[f].setAttribute(`viewBox`,x.toString())}break;case`margin`:if(n[f][p]){var y=t[f][p],b=n[f][p],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[f]&&e[f].style&&(e[f].style[p]=C)}break;case`scrolly`:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f].scrollTo(0,v);break;default:var v=i((l*s-s)/r)*(n[f][p]-t[f][p])+t[f][p];e[f]&&e[f].style&&(e[f].style[p]=v+m);break}}if(o){var v=i((l*s-s)/r);o(v)}l+=c,l>u+1&&(clearInterval(d),a&&a(e))}return d=setInterval(f,s),d},_.anim={},_.anim.inPow=function(e){return e<0?0:e>1?1:e**2},_.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)},_.anim.inOutPow=function(e){var t=2;if(e<0)return 0;if(e>1)return 1;if(e*=2,e<1)return _.anim.inPow(e,t)/2;var n=t%2==0?-1:1;return n/2*((e-2)**t+n*2)},_.anim.inSin=function(e){return e<0?0:e>1?1:-Math.cos(Math.PI/2*e)+1},_.anim.outSin=function(e){return e<0?0:e>1?1:Math.sin(Math.PI/2*e)},_.anim.inOutSin=function(e){return e<0?0:e>1?1:-.5*(Math.cos(Math.PI*e)-1)},_.anim.inExp=function(e){return e<0?0:e>1?1:2**(10*(e-1))},_.anim.outExp=function(e){return e<0?0:e>1?1:-(2**(-10*e))+1},_.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)},_.anim.inCirc=function(e){return e<0?0:e>1?1:-(Math.sqrt(1-e*e)-1)},_.anim.outCirc=function(e){return e<0?0:e>1?1:Math.sqrt(1-(e-1)*(e-1))},_.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)},_.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)},_.anim.inBack=function(e){return e<0?0:e>1?1:e*e*(2.70158*e-1.70158)},_.anim.outBack=function(e){return e<0?0:e>1?1:(e-1)*(e-1)*(2.70158*(e-1)+1.70158)+1},_.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)},_.anim.impulse=function(e){var t=2*e;return t*Math.exp(1-t)},_.anim.expPulse=function(e){return Math.exp(-2*e**2)},_===void 0&&(_={}),_.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!=_.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])})}},_===void 0&&(_={}),_.VERSION=`9.2.29`,_.orientation={},_.orientation.top=0,_.orientation.bottom=1,_.orientation.right=2,_.orientation.left=3,_.orientation.top_left=4,_.orientation.bottom_left=5,_.orientation.right_top=6,_.orientation.left_top=7,_.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`},_.align={},_.align.center=_.CENTER=8,_.align.orientation=_.ORIENTATION=9,_.attr={},_.attr.l=`data-l`,_.attr.id=`data-id`,_.attr.sl=`data-sl`,_.attr.lbl=`data-lbl`,_.attr.val=`data-val`,_.attr.tlbr=`data-tlbr`,_.attr.item=`data-item`,_.attr.layout=`data-layout`,_.attr.node_id=`data-n-id`,_.attr.link_id=`data-l-id`,_.attr.field_name=`data-f-name`,_.attr.c_link_to=`data-c-l-to`,_.attr.c_link_from=`data-c-l-from`,_.attr.s_link_to=`data-s-l-to`,_.attr.s_link_from=`data-s-l-from`,_.attr.control_add=`data-ctrl-add`,_.attr.control_expcoll_id=`data-ctrl-ec-id`,_.attr.control_up_id=`data-ctrl-up-id`,_.attr.control_export_menu=`data-ctrl-menu`,_.attr.control_node_menu_id=`data-ctrl-n-menu-id`,_.attr.control_node_circle_menu_id=`data-ctrl-n-c-menu-id`,_.attr.control_node_circle_menu_name=`data-ctrl-n-c-menu-name`,_.attr.control_node_circle_menu_wrraper_id=`data-ctrl-n-c-menu-wrapper-id`,_.attr.width=`data-width`,_.attr.text_overflow=`data-text-overflow`,_.ID=`id`,_.PID=`pid`,_.STPID=`stpid`,_.TAGS=`tags`,_.NODES=`nodes`,_.ELASTIC=`elastic`,_.ASSISTANT=`Assistant`,_.action={},_.action.expand=0,_.action.collapse=1,_.action.maximize=101,_.action.minimize=102,_.action.expandCollapse=501,_.action.edit=1,_.action.zoom=2,_.action.ctrlZoom=22,_.action.scroll=41,_.action.xScroll=3,_.action.yScroll=4,_.action.none=5,_.action.init=6,_.action.update=7,_.action.move=70,_.action.pan=8,_.action.centerNode=9,_.action.resize=10,_.action.insert=11,_.action.insertfirst=12,_.action.details=13,_.action.exporting=14,_.none=400001,_.scroll={},_.scroll.visible=!0,_.scroll.smooth=12,_.scroll.speed=120,_.scroll.safari={smooth:12,speed:250},_.match={},_.match.height=100001,_.match.width=100002,_.match.boundary=100003,_.match.boundaryIfOutside=100004,_.match.none=1,_.movable={},_.movable.node=`node`,_.movable.tree=`tree`,_.movable.detachTree=`detachTree`,_.layout={},_.layout.normal=_.normal=0,_.layout.mixed=_.mixed=1,_.layout.tree=_.tree=2,_.layout.treeLeftOffset=_.treeLeftOffset=3,_.layout.treeRightOffset=_.treeRightOffset=4,_.layout.treeLeft=5,_.layout.treeRight=6,_.layout.grid=-1,_.layout.treeList=-2,_.nodeOpenTag=`<g `+_.attr.node_id+`="{id}" style="opacity: {opacity}" transform="matrix(1,0,0,1,{x},{y})" class="{class}" `+_.attr.sl+`="{sl}" `+_.attr.l+`="{level}" {lcn}>`,_.linkOpenTag=`<g `+_.attr.link_id+`="[{id}][{child-id}]" class="{class}">`,_.expcollOpenTag=`<g `+_.attr.control_expcoll_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,_.upOpenTag=`<g `+_.attr.control_up_id+`="{id}" transform="matrix(1,0,0,1,{x},{y})" style="cursor:pointer;">`,_.linkFieldsOpenTag=`<g transform="matrix(1,0,0,1,{x},{y}) rotate({rotate})">`,_.grCloseTag=`</g>`,_.A5={width:420,height:595},_.A4={width:595,height:842},_.A3={width:842,height:1191},_.A2={width:1191,height:1684},_.A1={width:1684,height:2384},_.Letter={width:612,height:791},_.Legal={width:612,height:1009},_.Legal={width:612,height:1009},_.Widescreen={width:720,height:1280},_.Standard={width:720,height:960},_.COLLAPSE_PARENT_NEIGHBORS=1,_.COLLAPSE_SUB_CHILDRENS=2,_.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED=3,_.TEXT_THRESHOLD=4e3,_.IMAGES_THRESHOLD=1e3,_.LINKS_THRESHOLD=2e3,_.BUTTONS_THRESHOLD=700,_.ANIM_THRESHOLD=500,_.IT_IS_LONELY_HERE=`<g transform="translate(-100, 0)" style="cursor:pointer;" `+_.attr.control_add+`="control-add"><text fill="#039be5">{link}</text></g>`,_.RES={},_.IT_IS_LONELY_HERE_LINK=_.RES.IT_IS_LONELY_HERE_LINK=`It's lonely here, add your first node`,_.FIRE_DRAG_NOT_CLICK_IF_MOVE=3,_.STRING_TAGS=!1,_.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>`,_.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>`,_.SEARCH_PLACEHOLDER=`Search... type ? to get help.`,_.SEARCH_HELP_SYMBOL=`?`,_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE=!1,_.SEARCH_RESULT_LIMIT=10,_.IMPORT_MESSAGE=`Choose the columns (fields) in your data file that contain the required information.`,_.FIXED_POSITION_ON_CLICK=!1,_.RENDER_LINKS_BEFORE_NODES=!1,_.RENDER_CLINKS_BEFORE_NODES=!1,_.MIXED_LAYOUT_ALL_NODES=!1,_.MIXED_LAYOUT_FOR_NODES_WITH_COLLAPSED_CHILDREN=!1,_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN=1,_.LINK_ROUNDED_CORNERS=5,_.MOVE_STEP=5,_.CLINK_CURVE=1,_.MAX_DEPTH=200,_.SCALE_FACTOR=1.44,_.LAZY_LOADING_FACTOR=`auto`,_.LAZY_LOADING=!0,_.ARRAY_FIELDS=[`tags`],_.CSV_DELIMITER=`,`,_.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>`,_.ESCAPE_HTML=!1,_.VERTICAL_CHILDREN_ASSISTANT=!1,_.EXPORT_PAGES_CUT_NODES=!1,_.RESET_MOVABLE_ONEXPANDCOLLAPSE=!1,_.FILTER_ALPHABETICALLY=!0,_.SERVER_PREFIX=`.azurewebsites.net/api/you-see-this-request-because-it-is-trial-version-of-orgchartjs`,_.FUNC_URL_NAME=`func-url-orgchartjs`,_.MINIMUM_SYMBOLS_IN_SEARCH_INPUT=1,_.AI_SYSTEM_MESSAGES=[],_.ORGSCRIBE_OFFSET=` `,_.TREELIST_WHEEL_STEP=`auto`,_.TREELIST_SCROLLBAR_WIDTH=10,_.CONVERT_IMAGES_TO_BASE64_BEFORE_EXPORT=!1,_.REQUEST_CUSTOM_HEADERS={},_.SLINK_GAP=7,_._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 _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.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,u=t.s,d=(a-r)*(u-c)-(l-s)*(o-i),f,p;return d===0?!1:(p=((u-c)*(l-r)+(s-l)*(u-i))/d,f=((i-o)*(l-r)+(a-r)*(u-i))/d,0<p&&p<1&&0<f&&f<1)},_._addPoint=function(e,t,n,r,i){switch(n.orientation){case _.orientation.top:case _.orientation.top_left:return _._addPointTop(e,t,n,r,i);case _.orientation.bottom:case _.orientation.bottom_left:return _._addPointBottom(e,t,n,r,i);case _.orientation.left:case _.orientation.left_top:return _._addPointLeft(e,t,n,r,i);case _.orientation.right:case _.orientation.right_top:return _._addPointRight(e,t,n,r,i)}},_._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},_._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},_._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},_._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},_._addConnectorLines=function(e,t){_._addConnectorLine(e,{x1:t.xa,y1:t.ya,x2:t.xb,y2:t.yb}),_._addConnectorLine(e,{x1:t.xb,y1:t.yb,x2:t.xc,y2:t.yc}),_._addConnectorLine(e,{x1:t.xc,y1:t.yc,x2:t.xd,y2:t.yd})},_._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})}},_._addLineToPath=function(e,t,n){return _._avoidOverlapping(t,n),e.push([n.x1,n.y1]),e.push([n.x2,n.y2]),_._addConnectorLine(t,n),n},_._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)}},_._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==_.orientation.top||r==_.orientation.top_left?n==`left`?o[0]-=_.SLINK_GAP:n==`right`&&(o[0]+=_.SLINK_GAP):(r==_.orientation.bottom||r==_.orientation.bottom_left)&&(n==`right`?o[0]+=_.SLINK_GAP:n==`left`&&(o[0]-=_.SLINK_GAP)),c=!1;break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}var u=!0;if(a[1]==o[1]&&a[0]>=o[0]&&(u=!1),u&&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==_.orientation.top||r==_.orientation.top_left?o[1]-=_.SLINK_GAP:(r==_.orientation.bottom||r==_.orientation.bottom_left)&&(o[1]+=_.SLINK_GAP),c=!1);break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}u&&_._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},_._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==_.orientation.top||n==_.orientation.top_left?a[1]-=_.SLINK_GAP:(n==_.orientation.bottom||n==_.orientation.bottom_left)&&(a[1]+=_.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.y[a[1]]}i[1]=a[1]}o||_._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},_._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==_.orientation.left||r==_.orientation.left_top?n==`top`?o[1]-=_.SLINK_GAP:n==`bottom`&&(o[1]+=_.SLINK_GAP):(r==_.orientation.right||r==_.orientation.right_top)&&(n==`bottom`?o[1]+=_.SLINK_GAP:n==`top`&&(o[1]-=_.SLINK_GAP)),c=!1;break}if(c)break;s=e.y[o[1]]}a[1]=o[1]}var u=!0;if(a[0]==o[0]&&a[1]>=o[1]&&(u=!1),u&&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==_.orientation.left||r==_.orientation.left_top?o[0]-=_.SLINK_GAP:(r==_.orientation.right||r==_.orientation.right_top)&&(o[0]+=_.SLINK_GAP),c=!1);break}if(c)break;s=e.x[o[0]]}a[0]=o[0]}u&&_._addConnectorLine(e,{x1:a[0],y1:a[1],x2:o[0],y2:o[1]})}},_._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==_.orientation.left||n==_.orientation.left_top?a[0]-=_.SLINK_GAP:(n==_.orientation.right||n==_.orientation.right_top)&&(a[0]+=_.SLINK_GAP),c=!1):o=!0;break}if(c)break;s=e.x[a[0]]}i[0]=a[0]}o||_._addConnectorLine(e,{x1:i[0],y1:i[1],x2:a[0],y2:a[1]})}},_.prototype.getSvg=function(){return this.element.querySelector(`svg`)},_.prototype.getPointerElement=function(){return this.element.querySelector(`g[data-pointer]`)},_.prototype.getNodeElement=function(e){return this.element.querySelector(`[`+_.attr.node_id+`='`+e+`']`)},_.prototype.getMenuButton=function(){return this.element.querySelector(`[`+_.attr.control_export_menu+`]`)},_.notifierUI=function(){},_.notifierUI.prototype.init=function(e){this.obj=e},_.notifierUI.prototype.show=function(e,t){if(e==null)return!1;e==1&&(e=_.MAX_NODES_MESS,t=`#FFCA28`),e==2&&(e=_.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`,_.animate(n,{opacity:0,width:10},{opacity:1,width:a},this.obj.config.anim.duration,this.obj.config.anim.func),!0},_===void 0&&(_={}),_.icon={},_.icon.png_export=_.icon.png_preview=_.icon.pngpreview=_.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}">
|
|
213
213
|
<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"/>
|
|
214
214
|
<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"/>
|
|
215
215
|
</svg>`},_.icon.pdf_export=_.icon.pdf_preview=_.icon.pdfpreview=_.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}">
|
|
@@ -380,8 +380,8 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
380
380
|
<path d="M0 6H3V8H0V6Z" fill="${n}"/>
|
|
381
381
|
</svg>`},_===void 0&&(_={}),_.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--)(!_.isNEU(r)&&!_.isNEU(n)&&e[t][a].event_id==r&&e[t][a].listener==n||!_.isNEU(r)&&_.isNEU(n)&&e[t][a].event_id==r||_.isNEU(r)&&!_.isNEU(n)&&e[t][a].listener==n||_.isNEU(r)&&_.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(_.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}}}}})(),_.prototype.expand=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,_.action.expand,r,n)},_.prototype.collapse=function(e,t,n){this._treeListExpandCollapseHandler(e),this._resetMovableNodes();var r={id:e,ids:t};this._draw(!1,_.action.collapse,r,n)},_.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,_.action.collapse,i,r)},_.prototype.changeRoots=function(e,t,n){this.config.roots=t;var r={id:e,changeRoots:t};this._draw(!1,_.action.update,r,n)},_.prototype._resetMovableNodes=function(){if(_.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(),_.events.publish(`updated`,[this]))}},_.prototype.maximize=function(e,t,n,r){var i=this,a={id:e,options:{}};_.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,_.action.maximize,a,function(){i.ripple(e),r&&r()})},_.prototype.minimize=function(e,t){var n=this,r={id:e};_.isNEU(r.id)&&(r.id=this.roots[0].id,r.all=!0),this._draw(!1,_.action.minimize,r,function(){n.ripple(e),t&&t()})},_.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=_.events.publish(`expcollclick`,[this,!1,e,n]);if(r===!1)return!1;this.expand(e,n,!1)}else{var r=_.events.publish(`expcollclick`,[this,!0,e,t.childrenIds]);if(r===!1)return!1;this.collapse(e,t.childrenIds,!1)}},_.prototype._upHandler=function(e){this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide();var t=this._upHandlerCreateArgs(e);if(_.events.publish(`up-click`,[this,t])===!1)return!1;this.changeRoots(t.id,t.roots,!1)},_.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}),_.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(_.attr.control_node_menu_id)&&!i.hasAttribute(_.attr.control_node_circle_menu_id);){if(i.hasAttribute){var a=null;i.hasAttribute(_.attr.node_id)?a=this.getNode(i.getAttribute(_.attr.node_id)):i.hasAttribute(_.attr.control_expcoll_id)?a=this.getNode(i.getAttribute(_.attr.control_expcoll_id)):(i.hasAttribute(_.attr.control_node_menu_id)||i.hasAttribute(_.attr.control_node_menu_id))&&(a=this.getNode(i.getAttribute(_.attr.control_node_menu_id))),r||=_._getScrollableTreeListNodeInTouchEnabledDevice(a)}if(i.hasAttribute(_.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(_.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)},_.prototype._globalContextHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(_.attr.node_id)){var r=n.getAttribute(_.attr.node_id),i=this.getNode(r);this._nodeContextHandler(i.id,t);return}n=n.parentNode}},_.prototype._nodeContextHandler=function(e,t){t.preventDefault(),_.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)},_.prototype._globalDbClickHandler=function(e,t){for(var n=t.target;n!=e;){if(n.hasAttribute(_.attr.node_id)){var r=n.getAttribute(_.attr.node_id),i=this.getNode(r);this._nodeDbClickHandler(i.id,t);return}n=n.parentNode}},_.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)},_.prototype.__mouseScrollHandler=function(e,t){if(t.ctrlKey){if(this.config.mouseScrool==_.action.zoom)return}else if(this.config.mouseScrool==_.action.ctrlZoom||this.config.mouseScrool!=_.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=_._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=_._centerPointInPercent(e,t.clientX,t.clientY);function d(){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(d)}var l=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,20)}}();t.preventDefault();var u=t.delta||t.wheelDelta;u===void 0&&(u=-t.detail),u=Math.max(-1,Math.min(1,u)),s+=-u*a,i||d()}},_.prototype._nodeCircleNodeMenuItemMouseDownHandler=function(e,t,n,r){var i=t.parentNode.getAttribute(_.attr.control_node_circle_menu_wrraper_id),a=t.getAttribute(_.attr.control_node_circle_menu_name),o=this.nodeCircleMenuUI._menu[a];if(!o.draggable){this._clickHandler(e,n);return}var s=this,c=_._getClientXY(n),l=this.getNode(i);t._dragEventFired=!1;var u=s.getScale(),d=null,f=null;document.body.style.mozUserSelect=document.body.style.webkitUserSelect=document.body.style.userSelect=`none`;var p=this.getSvg(),m={x:c.x,y:c.y},h=function(e){for(;e&&!e.hasAttribute(_.attr.control_node_circle_menu_wrraper_id);)e=e.parentNode;if(!e){console.error(`cannot find parent`+_.attr.control_node_circle_menu_wrraper_id);return}var t=_._getTransform(e);return{x:t[4],y:t[5]}},g=t.cloneNode(!0);p.insertBefore(g,p.firstChild);var v=_._getTransform(g),y=v[4],b=v[5],x=h(t);g.setAttribute(`transform`,`matrix(1,0,0,1,`+(y+x.x)+`,`+(b+x.y)+`)`),g.style.opacity=.7;var S=function(e,t){if(e!=null){t.classList.remove(`boc-drag-over`);for(var n=_.getStParentNodes(s.getNode(d)),r=0;r<n.length;r++){var i=s.getNodeElement(n[r].id);i&&(i.style.opacity=1)}}},C=function(e){if(m){var n=_._getClientXY(e),r=e.target;_.isMobile()&&(r=document.elementFromPoint(n.x,n.y)),n.x+=x.x*u,n.y+=x.y*u;var i=_._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){p.classList&&(p.classList.remove(`boc-cursor-grab`),p.classList.add(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`));var l=v[4],h=v[5],C=m.x,T=m.y,E=n.x,D=n.y;s.moveStart(c,function(e){v[4]=l+e.x,v[5]=h+e.y,m.x=C-e.xWithoutScale,m.y=T-e.yWithoutScale,n.x=E-e.xWithoutScale,n.y=D-e.yWithoutScale,g.setAttribute(`transform`,`matrix(`+v.toString()+`)`)})}else{for(s.moveEnd(),p.classList&&(p.classList.add(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`)),S(d,f),d=null,f=null;r!=null&&r!=p;){if(r.hasAttribute&&r.hasAttribute(_.attr.node_id)){var O=r.getAttribute(_.attr.node_id);d=O,f=r;break}r=r.parentNode}if(d!=null){f.classList.add(`boc-drag-over`);for(var k=s.getNode(d),A=_.getStParentNodes(k),j=0;j<A.length;j++){var M=s.getNodeElement(A[j].id);M&&(M.style.opacity=.1)}p.classList.remove(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.add(`boc-cursor-copy`),p.classList.remove(`boc-cursor-nodrop`)}var N=(n.x-m.x)/u,P=(n.y-m.y)/u;v[4]=y+N,v[5]=b+P,!t._dragEventFired&&(Math.abs(n.x-m.x)>_.FIRE_DRAG_NOT_CLICK_IF_MOVE||Math.abs(n.y-m.y)>_.FIRE_DRAG_NOT_CLICK_IF_MOVE)&&(s._gragStartedId=t.parentNode.getAttribute(_.attr.control_node_circle_menu_wrraper_id),_.events.publish(`drag`,[s.nodeCircleMenuUI,{from:O,menuItem:o,menuItemName:a}])===!1&&w(),t._dragEventFired=!0),g.setAttribute(`transform`,`matrix(`+v.toString()+`)`)}}},w=function(e){if(s.moveEnd(),p.classList&&(p.classList.remove(`boc-cursor-grab`),p.classList.remove(`boc-cursor-move`),p.classList.remove(`boc-cursor-nodrop`),p.classList.remove(`boc-cursor-copy`)),p.removeEventListener(r.move,C),p.removeEventListener(r.up,w),r.leave&&p.removeEventListener(r.leave,w),l.id==d||d==null){p.removeChild(g),s._gragStartedId=null,t._dragEventFired&&_.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,menuItemName:a,menuItem:o,event:e}]);return}var n=s.getNode(d);_.events.publish(`drop`,[s.nodeCircleMenuUI,{from:l.id,to:n.id,menuItem:o,menuItemName:a,event:e}]),S(d,f),p.removeChild(g),s._gragStartedId=null};p.addEventListener(r.move,C),p.addEventListener(r.up,w),r.leave&&p.addEventListener(r.leave,w)},_.prototype._nodeMouseDownHandler=function(e,t,n){var r=e.getAttribute(_.attr.node_id),i=this.getNode(r);this.config.movable&&!_.getRootOf(i).stParent?this._movableHandler(e,t,n):this.config.enableDragDrop&&this._dragDropHandler(e,t,n)},_.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,_.action.resize)}}},_.prototype._nodeDbClickHandler=function(e,t){if(_.events.publish(`dbclick`,[this,this.get(e)])===!1)return!1;this._commonClickHandler(e,t,this.config.nodeMouseDbClick)},_.prototype._nodeClickHandler=function(e,t){if(_.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)},_.prototype._nodeCircleMenuItemClickHandler=function(e,t){var n=e.parentNode.getAttribute(_.attr.control_node_circle_menu_wrraper_id),r=e.getAttribute(_.attr.control_node_circle_menu_name),i=this.nodeCircleMenuUI._menu[r];_.events.publish(`click`,[this.nodeCircleMenuUI,{nodeId:n,menuItemName:r,menuItem:i,event:t}])},_.prototype._nodeCircleMenuClickHandler=function(e){if(_.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)}},_.prototype._commonClickHandler=function(e,t,n){if(_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&this.searchUI.hide(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.hide(),this.nodeCircleMenuUI.hide(),n==_.action.expandCollapse&&this.toggleExpandCollapse(e,t),n==_.action.edit){var r=this.getNode(e);r&&(this.editUI.show(r.id),this.ripple(r.id,t.clientX,t.clientY))}if(n==_.action.details){var r=this.getNode(e);r&&(this.editUI.show(r.id,!0),this.ripple(r.id,t.clientX,t.clientY))}},_.prototype._menuHandlerMouseDownHandler=function(e,t){t.stopPropagation(),t.preventDefault()},_.prototype._nodeMenuClickHandler=function(e,t,n){_.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)},_.prototype._menuClickHandler=function(e,t){t.stopPropagation(),t.preventDefault(),this.nodeMenuUI.hide(),this.nodeContextMenuUI.hide(),this.menuUI.show(e.offsetLeft,e.offsetTop)},_.prototype._lonelyButtonHandler=function(){var e={id:this.generateId()};this.addNode(e,null,!0)!==!1&&this.center(e.id)},_.prototype.toggleExpandCollapse=function(e,t){var n=this.getNode(e),r=this.getCollapsedIds(n);if(r.length){var i=_.events.publish(`expcollclick`,[this,!1,e,r]);if(i===!1)return!1;this.expand(e,r,!1)}else{var i=_.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)},_.prototype._clickHandler=function(e,t){if(!(t.button>0)){for(var n=t.target;n!=e;){if(n.hasAttribute(_.attr.control_expcoll_id)){var r=n.getAttribute(_.attr.control_expcoll_id),i=this.getNode(r);this._expCollHandler(i.id);return}if(n.hasAttribute(_.attr.node_id)){var r=n.getAttribute(_.attr.node_id),i=this.getNode(r);this._nodeClickHandler(i.id,t);return}if(n.hasAttribute(_.attr.control_node_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(_.attr.control_node_menu_id),i=this.getNode(r);this._nodeMenuClickHandler(i.id,n,t);return}if(n.hasAttribute(_.attr.control_node_circle_menu_id)){t.stopPropagation(),t.preventDefault();var r=n.getAttribute(_.attr.control_node_circle_menu_id);this._nodeCircleMenuClickHandler(r);return}if(n.hasAttribute(_.attr.control_node_circle_menu_name)){t.stopPropagation(),this._nodeCircleMenuItemClickHandler(n,t);return}if(n.hasAttribute(_.attr.control_add)){this._lonelyButtonHandler();return}if(n.hasAttribute(_.attr.control_up_id)){var r=n.getAttribute(_.attr.control_up_id);t.stopPropagation(),t.preventDefault(),this._upHandler(r);return}if(n.hasAttribute(_.attr.c_link_from)){_.events.publish(`clink-click`,[this,{from:n.getAttribute(_.attr.c_link_from),to:n.getAttribute(_.attr.c_link_to),event:t}]);return}if(n.hasAttribute(_.attr.s_link_from)){_.events.publish(`slink-click`,[this,{from:n.getAttribute(_.attr.s_link_from),to:n.getAttribute(_.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}_.events.publish(`canvas-click`,[this,{event:t}])}},_.prototype._mouseDownHandler=function(e,t,n,r){var i=this;_.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=_._getClientTouchesXY(t,0),c=_._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 u=null;if(r){var d=r.stChildren[0].lcn?r.stChildren[0].lcn:`base`;u=i.manager.layoutConfigs[d],l.scrollTop=r.treeList.scrollTop}var f=0,p=function(e){var t=_._getClientTouchesXY(e,0);if(l&&l.type==`pan`){clearTimeout(i._timeout),l.diffX=t.x-l.x0,l.diffY=t.y-l.y0,f=Math.max(Math.abs(l.diffY),Math.abs(l.diffX));var n=-(l.diffY/o)+l.viewBoxTop,s=-(l.diffX/o)+l.viewBoxLeft;f>3&&(r?(r.treeList.scrollTop=l.scrollTop-l.diffY/o,i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdate(r,u)):(i._hideBeforeAnimation(),i._changeCursorOnPanStart(a,o,e),i._move(n,s,a)))}else if(l&&l.type==`pinch`){var c=_._getClientTouchesXY(e,1),d=Math.sqrt((t.x-c.x)*(t.x-c.x)+(t.y-c.y)*(t.y-c.y)),p=1+(d-l.dist)/(l.dist/100)/100;l.dist=d;var m=_._pinchMiddlePointInPercent(i.element,i.width(),i.height(),e);i.zoom(p,m)}},m=function(t){if(f<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(f/a);if(o>.5){var s=r.treeList.scrollTop,c=s+o*400*(l.diffY>0?-1:1),d=r.stChildren[0].h;c=Math.round(c/d)*d,c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=_.animate(null,{},{},1500,_.anim.outExp,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,u.orientation)}))}else{var s=r.treeList.scrollTop,d=r.stChildren[0].h,c=Math.round(r.treeList.scrollTop/d)*d;c!=s&&(i._treeListUpdateInterval&&=(clearInterval(i._treeListUpdateInterval),null),i._treeListUpdateInterval=_.animate(null,{},{},200,_.anim.outSin,function(){},function(e){r.treeList.scrollTop=e*(c-s)+s,i._treeListUpdate(r,u.orientation)}))}}else l.type==`pan`&&!r&&f>10&&i._draw(!0,_.action.pan);l.type==`pan`&&!r&&i._changeCursorOnPanEnd(),l=null,e.removeEventListener(n.move,p),e.removeEventListener(n.up,m),n.leave&&e.removeEventListener(n.leave,m),n.touchstart&&e.removeEventListener(n.touchstart,m)};e.addEventListener(n.move,p,{passive:!0}),e.addEventListener(n.up,m),n.leave&&e.addEventListener(n.leave,m),n.touchstart&&e.addEventListener(n.touchstart,m,{passive:!0})},_.prototype._changeCursorOnPanStart=function(e,t,n){var r=this.getPointerElement();if(r){var i=_._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+`)`),_.animate(r,{transform:[0,0,0,0,a,o],opacity:0},{transform:[1/t,0,0,1/t,a,o],opacity:1},300,_.anim.outBack)}else this.element.style.cursor=`move`},_.prototype._changeCursorOnPanEnd=function(){var e=this.getPointerElement();e?e.style.display=`none`:this.element.style.cursor=`initial`},_.prototype._move=function(e,t,n){n[0]=t,n[1]=e,this.setViewBox(n),this.xScrollUI.setPosition(),this.yScrollUI.setPosition()},_.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,u=1,d=1;_.isNEU(n)&&(n=_.anim.inSin),_.isNEU(r)&&(r=3e3);function f(){var f={x:0,y:0,xWithoutScale:0,yWithoutScale:0};e.left?(s++,f.x=s*_.MOVE_STEP/o,f.xWithoutScale=s*_.MOVE_STEP):e.right&&(s++,f.x=-(s*_.MOVE_STEP)/o,f.xWithoutScale=-(s*_.MOVE_STEP)),e.up?(c++,f.y=c*_.MOVE_STEP/o,f.yWithoutScale=c*_.MOVE_STEP):e.down&&(c++,f.y=-(c*_.MOVE_STEP)/o,f.yWithoutScale=-(c*_.MOVE_STEP));var p=n((d*l-l)/r);f.x*=p,f.xWithoutScale*=p,f.y*=p,f.yWithoutScale*=p,i.setViewBox([a[0]+f.x,a[1]+f.y,a[2],a[3]]),t&&t(f),d+=u}this._moveInterval=setInterval(f,l)},_.prototype.moveEnd=function(){this._moveInterval&&=(clearInterval(this._moveInterval),null)},_===void 0&&(_={}),_.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||=[]},_===void 0&&(_={}),_.idb={version:1,dbName:`BALKAN`,tableName:`orgchart-js`,keyPath:`id`},_.idb.db=null,_.idb._open=function(e){if(_._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(_.idb.db!=null){e&&e(!0);return}var t=indexedDB.open(_.idb.dbName,_.idb.version);t.onerror=function(t){console.error(`Cannot open database!`),e&&e(!1)},t.onsuccess=function(t){_.idb.db=t.target.result,e&&e(!0)},t.onupgradeneeded=function(e){var t=e.target.result;t.objectStoreNames.contains(_.idb.tableName)&&t.deleteObjectStore(_.idb.tableName),t.createObjectStore(_.idb.tableName,{keyPath:_.idb.keyPath})}},_.idb.read=function(e,t){_.idb._open(function(n){if(n){var r=_.idb.db.transaction([_.idb.tableName]).objectStore(_.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)})},_.idb.write=function(e,t){_.idb.read(e.id,function(n){if(n==null){var r=_.idb.db.transaction([_.idb.tableName],`readwrite`).objectStore(_.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)})},_.idb.put=function(e,t){_.idb._open(function(n){if(n){var r=_.idb.db.transaction([_.idb.tableName],`readwrite`).objectStore(_.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)})},_.idb.delete=function(e,t){_.idb._open(function(n){if(n){var r=_.idb.db.transaction([_.idb.tableName],`readwrite`).objectStore(_.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)})},_===void 0&&(_={}),_.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}},_.manager.prototype.read=function(e,t,n,r,i,a,o,s){var c=this;_.state._get(this.config.state,t,n,function(l){c.state=l,c.action=i,c.actionParams=a,i!=_.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 u=c.maxX,d=c.maxY,f=c.minX,p=c.minY,m=c.bordersByRootIdAndLevel,h=c.roots,g=c.nodes;if(!e)g?c.oldNodes=g:c.oldNodes=null,c._read(function(e){u=e.maxX,d=e.maxY,f=e.minX,p=e.minY,m=e.bordersByRootIdAndLevel,h=e.roots,g=e.nodes;var r=_.manager._getResponse(t,n,c.visibleNodeIds,c.config,u,d,f,p,c.viewBox,h,c.action,c.actionParams,g,c.oldNodes,c.vbIsInitializedFromState);r.notif=e.limit,r.roots=h,r.bordersByRootIdAndLevel=m,r.adjustify=e.adjustify,i!=_.action.exporting&&(c.maxX=u,c.maxY=d,c.minX=f,c.minY=p,c.roots=h,c.nodes=g,c.visibleNodeIds=r.visibleNodeIds,c.bordersByRootIdAndLevel=m,c.rootList=e.rootList),o(r)},s);else{var v=_.manager._getResponse(t,n,c.visibleNodeIds,c.config,u,d,f,p,c.viewBox,h,c.action,c.actionParams,g,c.oldNodes,c.vbIsInitializedFromState);i!=_.action.exporting&&(c.maxX=u,c.maxY=d,c.minX=f,c.minY=p,c.roots=h,c.nodes=g,c.visibleNodeIds=v.visibleNodeIds),v.bordersByRootIdAndLevel=m,v.roots=h,v.adjustify={x:0,y:0},c.state&&(v.adjustify=c.state.adjustify),o(v)}})},_.manager.prototype._read=function(e,t){var n=this,r=_.manager._createNodes(this.instance);t(r);var i=r.nodes,a=r.roots,o=_.remote;o??=_.local,o._setPositions(a,n.layoutConfigs,function(t){var o=_.manager._doNotChangePositionOfClickedNodeIfAny(a,i,n.action,n.actionParams,n.oldNodes,n.config.orientation);n.state&&n.action==_.action.init&&(o=n.state.adjustify),n.action==_.action.exporting?o=n._fixAdjustForExport:n._fixAdjustForExport=o;for(var s={minX:null,minY:null,maxX:null,maxY:null},c={},l=[],u=0;u<a.length;u++)_.manager._setMinMaxXYAdjustifyIterate(a[u],a[u],s,0,c,o,n.config.orientation,l);for(var u=0;u<a.length;u++)_.manager._setChildCountPropsIterate(a[u],i);for(var d in l)for(var f in l[d]){var p=c[d][f],m=l[d][f];p.minX==null&&p.minY==null&&p.maxX==null&&p.maxY==null&&_._setMinMaxXY(m,p,!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)},_===void 0&&(_={}),_.manager._initDinamicNode=function(e,t,n){t&&(e.lcn=t),n&&(e.isAssistant=!0);var r=_.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`},_.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==_.action.expand&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!1),i==_.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==_.action.collapse&&n.ids.indexOf(e.id)!=-1&&(e.collapsed=!0),i==_.action.expand&&n.ids==`all`&&(e.collapsed=!1),i==_.action.exporting&&(!_.isNEU(n.parentLevels)||!_.isNEU(n.childLevels))&&n.id!=null){if(n.id!=null&&(!_.isNEU(n.parentLevels)||!_.isNEU(n.childLevels))){var c=s[n.id];if(c==e)e.collapsed=!1;else{for(var l=!1,u=-1,d=!1,f=-1;c;){if(u++,c==e){l=!0;break}c=s[c.pid]}c=s[n.id];for(var p=s[e.id];p;){if(f++,p==c){d=!0;break}p=s[p.pid]}n.parentLevels!=null&&l&&u<=n.parentLevels||n.childLevels!=null&&d&&f<=n.childLevels||d&&n.expandChildren?e.collapsed=!1:e.collapsed=!0}}}else i==_.action.exporting&&n.expandChildren&&(e.collapsed=!1);i==_.action.init&&o!=null?e.collapsed=!o.exp.has(e.id):i==_.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==_.action.centerNode||i==_.action.insert||i==_.action.expand||i==_.action.collapse?r.has(e.id)&&(e.collapsed=!1):i==_.action.update&&n&&n.changeRoots&&n.changeRoots.has(e.id)&&(e.collapsed=!1)},_.manager._initNode=function(e,t,n,r,i,a,o){var s=o.manager.config,c=o.manager.layoutConfigs,l=o.manager.action,u=o.manager.actionParams,d=o.manager.state,f=c[n||`base`];e.parent??_.manager._setCollpasedProperty(e,f,u,i,l,r-1,d,t);for(var p=0;p<e.childrenIds.length;p++){var m=t[e.childrenIds[p]];if(_.manager._setCollpasedProperty(m,f,u,i,l,r,d,t),m.collapsed)e.collapsedChildCount++;else{if(m.parent=e,m.ppid!=null){var h=t[m.ppid];h&&(m.parentPartner=h)}(m.tags.indexOf(`left-partner`)!=-1||m.tags.indexOf(`right-partner`)!=-1||m.tags.indexOf(`partner`)!=-1||m.parentPartner)&&a.indexOf(e.id)==-1&&a.push(e.id),e.children.push(m)}}if(l==_.action.minimize&&!e.min?(u.all||u.id==e.id)&&(e.min=!0):l==_.action.maximize&&e.min===!0?(u.all||u.id==e.id)&&(e.min=!1):l==_.action.exporting&&u.min===!1?e.min=!1:l==_.action.init&&d!=null&&(e.min=d.min.has(e.id)),!e.min&&(!e.tags||!e.tags.has(`filter`)))for(var p=0;p<e.stChildrenIds.length;p++){var m=t[e.stChildrenIds[p]];m.stParent=e,e.stChildren.push(m)}r!=null&&(e.level=r),n&&(e.lcn=n);var g=_._getSubLevels(e.tags,s.tags);g>0&&(e.subLevels=g),e.tags.indexOf(`assistant`)!=-1&&e.parent!=null&&(e.isAssistant=!0),f.layout==_.layout.treeList&&(e.isTreeListItem=!0),f.template&&s.template==e.templateName&&(e.templateName=f.template);var v=_.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=_.t(e.stParent.templateName,e.stParent.min);e.stParent.treeList={pinnedIds:[],scrollTop:0,scrollTopMax:0,maxHeight:y.treeListMaxHeight}}var b={node:e};_.events.publish(`node-initialized`,[o,b])},_.manager._iterate=function(e,t,n,r,i,a,o,s,c,l,u,d){var f=d.manager.layoutConfigs;if(_.manager._initNode(t,n,c,r,l,u,d),t.isAssistant&&(a[t.pid]||(a[t.pid]=[]),a[t.pid].push(t.id)),t.subLevels>0&&o.push(t.id),_.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 p=[],m=0,h=0,g=0;g<t.parent.children.length;g++){var v=t.parent.children[g];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?p.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)&&h++:m++}(_.MIXED_LAYOUT_ALL_NODES&&p.length>1&&p.length==t.parent.children.length-m-h||!_.MIXED_LAYOUT_ALL_NODES&&p.length>1)&&(s[t.pid]=p)}}else if(!t.isAssistant&&t.childrenIds.length==0&&t.parent&&!s[t.pid]){for(var p=[],m=0,h=0,g=0;g<t.parent.children.length;g++){var v=t.parent.children[g];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?p.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)&&h++:m++}(_.MIXED_LAYOUT_ALL_NODES&&p.length>_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&p.length==t.parent.childrenIds.length-m-h||!_.MIXED_LAYOUT_ALL_NODES&&p.length>_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)&&(s[t.pid]=p)}t.stChildren.length&&(e.stContainerNodes||=[],e.stContainerNodes.push(t));for(var y=0;y<t.stChildren.length;y++){for(var b=``,g=0;g<t.tags.length;g++)if(f[t.tags[g]]){b=t.tags[g];break}i.push(t.stChildren[y].id),_.manager._iterate(e,t.stChildren[y],n,0,i,a,o,s,b,l,u,d)}r++;for(var y=0;y<t.children.length;y++)t.isTreeListItem&&(t.children[y].isTreeListItem=t.isTreeListItem),_.manager._iterate(e,t.children[y],n,r,i,a,o,s,c,l,u,d)},_.manager.__createNodes=function(e,t,n,r,i,a,o,s){for(var c=[],l=_._addDottedLines(n),u=0;u<l.length;u++){var d=l[u],f=_.STRING_TAGS?d.tags?d.tags.split(`,`):[]:Array.isArray(d.tags)?d.tags.slice(0):[];s.filterUI.addFilterTag(d)&&f.unshift(`filter`);var p=s.searchUI.addMatchTag(d.id);p===!0?f.unshift(`match`):p===!1&&f.unshift(`no-match`);var m=_._getTemplate(f,n.tags,n.template);d&&d.template&&(m=d.template);var h=new _.node(d.id,d.pid,f,m);_.isNEU(d.ppid)||(h.ppid=d.ppid),_.isNEU(d.stpid)||(h.stpid=d.stpid),d.movex!=null&&(h.movex=d.movex),d.movey!=null&&(h.movey=d.movey),e[d.id]=h,c.push(d.id)}if(n.orderBy!=null){var g=_.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<g.length;a++){var o=n[g[a].field],s=r[g[a].field],c=o,u=s;if(c??=``,u??=``,typeof c==`string`&&typeof u==`string`){var d=c.localeCompare(u);if(g[a].desc&&(d*=-1),d!==0)return d}else{var d=o<s?-1:o>s?1:0;if(g[a].desc&&(d*=-1),d!==0)return d}}})}for(var u=0;u<c.length;u++){var v=c[u],h=e[v],y=a?a[v]:null,b=e[h.stpid],x=e[h.pid];if(b||(h.stpid=null),x||(h.pid=null),b){var S=a?a[b.id]:null;S&&(b.min=S.min),b.stChildrenIds.push(h.id)}else x?(y&&(h.collapsed=y.collapsed,h.min=y.min,h.treeList=y.treeList),x.childrenIds.push(h.id)):(y&&(h.collapsed=y.collapsed,h.min=y.min,h.treeList=y.treeList),t.push(h),o.push(h.id));r==_.action.init&&(h.min=_._getMin(h,n))}},_.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(_.manager.__createNodes(s,c,t,r,i,a,l,e),t.roots!=null){c=[];for(var u=0;u<t.roots.length;u++){var d=s[t.roots[u]];if(d&&r==_.action.centerNode){for(var f=d;f.pid!=null||f.stpid!=null;)f=f.pid==null&&f.stpid!=null?s[f.stpid]:s[f.pid];for(var p=s[i.id];(p.pid!=null||p.stpid!=null)&&p!=d;)p=p.pid==null&&p.stpid!=null?s[p.stpid]:s[p.pid];f==p&&(d=f)}if(d){for(var m=!1,h=0;h<c.length;h++)if(c[h].id==d.id){m=!0;break}if(!m){if(!_.isNEU(d.pid)){var g=s[d.pid],v=g.childrenIds.indexOf(d.id);v>-1&&g.childrenIds.splice(v,1)}c.push(d)}}}t.roots=[];for(var u=0;u<c.length;u++)t.roots.push(c[u].id)}if(r==_.action.exporting&&i.id!=null)if(i.parentLevels){for(var g=s[i.id],y=0;y<i.parentLevels&&s[g.pid];)y++,g=s[g.pid];g.pid=null,c=[g]}else{var b=s[i.id];b&&(b.pid=null,c=[b])}var x=[];if(r==_.action.init&&t.expand&&t.expand.nodes&&o==null)for(var u=0;u<t.expand.nodes.length;u++){var b=s[t.expand.nodes[u]];for(t.expand.allChildren===!0&&_.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==_.action.expand&&i.ids&&i.ids!=`all`||r==_.action.collapse&&i&&i.expandIds)for(var S=r==_.action.expand?i.ids:i.expandIds,u=0;u<S.length;u++)for(var b=s[S[u]],g=s[b.pid];g;)x.push(g.id),g.pid==null&&g.stpid!=null?(g=s[g.stpid],g.min=!1):g=s[g.pid];else if(r==_.action.centerNode){for(var C=_._getCenterNodeFromParams(s,i);C;){if(x.push(C.id),i.options.parentState===_.COLLAPSE_PARENT_NEIGHBORS&&C)for(var u=0;u<C.childrenIds.length;u++){var w=s[C.childrenIds[u]];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=_._getCenterNodeFromParams(s,i),i.options.childrenState===_.COLLAPSE_SUB_CHILDRENS)for(var u=0;u<C.childrenIds.length;u++){var T=s[C.childrenIds[u]];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===_.COLLAPSE_PARENT_SUB_CHILDREN_EXCEPT_CLICKED){var g=s[C.pid];if(g)for(var u=0;u<g.childrenIds.length;u++){var T=s[g.childrenIds[u]];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==_.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=[],u=0;u<c.length;u++)_.manager._iterate(c[u],c[u],s,0,O,k,A,j,``,x,M,e);if(r==_.action.collapse&&i&&Array.isArray(i.expandIds)&&Array.isArray(i.collapseIds))for(var u=0;u<i.ids.length;u++)if(i.expandIds.has(i.collapseIds[u]))console.error(`id ${i.collapseIds[u]} exist in both collapseIds and expandIds`);else{var b=s[i.collapseIds[u]];b&&(b.collapsed=!0)}for(var u=c.length-1;u>=0;u--)c[u].collapsed&&c.splice(u,1);for(var u=0;u<M.length;u++){for(var b=s[M[u]],N=[],P=[],F=[],I={},L=0,R=0,z=0,ee=[],te=[],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&&!(L%2)?(w.isPartner=1,w.children=[],P.push(w.id),L++):w.tags.indexOf(`partner`)!=-1&&L%2?(w.isPartner=2,w.children=[],F.push(w.id),L++):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 B=[],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 V=0;V<w.childrenIds.length;V++)B.push(w.childrenIds[V])}for(var ne=[],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 V=0;V<w.childrenIds.length;V++)ne.push(w.childrenIds[V])}for(var E=0;E<ne.length;E++){var w=s[ne[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 h=0;h<I[F[E]].length;h++)b.children.push(s[I[F[E]][h]]),R++,te.indexOf(F[E])==-1&&te.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 h=0;h<I[P[E]].length;h++)b.children.push(s[I[P[E]][h]]),z++,ee.indexOf(P[E])==-1&&ee.push(P[E]);for(var E=0;E<B.length;E++){var w=s[B[E]];w.collapsed||(w.parentPartner=w.parent,w.parent=b,w.isChildOfPartner=!0,b.children.push(w))}b.partnerSeparation=Math.max(te.length,ee.length)*t.partnerChildrenSplitSeparation+t.minPartnerSeparation,!N.length&&R&&!z?b.hasPartners=2:!N.length&&!R&&z?b.hasPartners=3:!N.length&&R==1&&z==1?b.hasPartners=4:!N.length&&!R&&!z?b.hasPartners=5:N.length&&!R&&!z?b.hasPartners=6:N.length&&(R||z)?b.hasPartners=7:b.hasPartners=1}for(var u=0;u<A.length;u++)for(var b=s[A[u]],re=b.lcn?b.lcn:`base`,ie=n[re],E=0;E<b.subLevels;E++){var H=new _.node(b.id+`_sub_level_index_`+E,b.pid,[],`subLevel`);_.manager._initDinamicNode(H,b.lcn);var g=b.parent;if(g){b.movex!=null&&(H.movex=b.movex),b.movey!=null&&(H.movey=b.movey);var v=g.children.indexOf(b);v>-1&&(g.children.splice(v,1),g.children.splice(v,0,H)),H.children.push(b),H.parent=g,b.parent=H,s[H.id]=H}}for(var U in k){var g=s[U];g.hasAssistants=!0;var H=new _.node(g.id+`_split_assitant_0`,g.id,[`assistant`],`split`);g.movex!=null&&(H.movex=g.movex),g.movey!=null&&(H.movey=g.movey),_.manager._initDinamicNode(H,g.lcn,!0),s[H.id]=H;for(var ae=[],E=g.children.length-1;E>=0;E--){var w=g.children[E];w.isAssistant?(w.parent=null,g.children.splice(E,1),ae.splice(0,0,w.id)):w.isPartner||(w.parent&&j[w.parent.id]&&H&&w.parent.id!=H.id&&(Object.defineProperty(j,H.id,Object.getOwnPropertyDescriptor(j,w.parent.id)),delete j[w.parent.id]),w.parent=H,H.children.unshift(w),g.children.splice(E,1))}if(ae.length%2){var W=s[ae[ae.length-1]],oe=new _.node(W.id+`_mirror`,g.pid,[],`mirror`);_.manager._initDinamicNode(oe,W.lcn,!0),oe.isAssistant=!0,oe.w=W.w,oe.h=W.h,s[oe.id]=oe,ae.splice(ae.length-1,0,oe.id)}for(var G=1,E=ae.length-1;E>=0;E--)if(E%2&&E!=ae.length-1){var se=new _.node(g.id+`_split_assitant_`+G,g.pid,[],`split`);_.manager._initDinamicNode(se,g.lcn,!0),g.movex!=null&&(se.movex=g.movex),g.movey!=null&&(se.movey=g.movey),s[se.id]=se,ae.splice(E,0,se.id),G++}else E%2&&ae.splice(E,0,H.id);for(var E=0;E<ae.length;E+=3){var ce=null;ce=E==0?g:s[ae[E-2]];var le=s[ae[E]],ue=s[ae[E+1]],de=s[ae[E+2]];le.parent=ce,ue.parent=ce,de.parent=ce,ce.children.push(le),ce.children.push(ue),ce.children.push(de)}}var fe=!1;for(var pe in n){var ie=n[pe];if(ie.layout!=0){fe=!0;break}}var me=_.events.has(`node-layout`,e._event_id);if(fe||me){var he={nodes:s,config:t,action:r,actionParams:i};if(A.length){var K=!1;for(var U in j){for(var S=j[U],u=0;u<S.length;u++){var b=s[S[u]];if(b.subLevels){K=!0;break}}if(K)break}if(K){var ge={},_e={},ve={};for(var U in j)for(var S=j[U],ye=!1,be=null,u=0;u<S.length;u++){var xe=S[u];(be===null||A.has(xe))&&(be=s[xe].parent.id,!ye&&!_.isNEU(s[xe].subLevels)&&(ye=s[xe].subLevels>0)),ge[be]||(ge[be]=[]),ge[be].push(xe),ye&&(ve[be]=U,_e[be]||(_e[be]=[]),_e[be].push(xe))}for(var U in j={},_e)if(_e[U].length>_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN)for(var Se=ve[U],u=s[Se].children.length-1;u>=0;u--){var w=s[Se].children[u];_e[U].has(w.id)&&s[Se].children.splice(u,1)}for(var U in ge)ge[U].length>_.MIXED_LAYOUT_IF_NUMBER_OF_CHILDREN_IS_MORE_THEN&&(j[U]=ge[U])}}for(var U in j){for(var g=s[U],Ce=g;Ce.isSplit;)Ce=s[Ce.pid];for(;Ce.isSubLevel;)Ce=s[Ce.pid];var re=g.lcn?g.lcn:`base`,ie=n[re];if(ie.layout!=0||me){he.pnode=g,he.layout=ie.layout,he.layoutGridColumns=t.layoutGridColumns,he.childrenIds=j[U],he.lastChildrenPidIds=j,he.subLevels=0,he.layouts=[],_.events.publish(`node-layout`,[e,he]),_.events.publish(`layout`,[he]),he.layouts.length||he.layouts.push({layout:he.layout,childrenIds:he.childrenIds,subLevels:he.subLevels,layoutGridColumns:he.layoutGridColumns});for(var q=0;q<he.layouts.length;q++){var J=he.layouts[q];for(_.isNEU(J.subLevels)&&(J.subLevels=0),_.isNEU(J.layout)&&(J.layout=ie.layout),g=s[U],Ce=g;Ce.isSplit;)Ce=s[Ce.pid];for(;Ce.isSubLevel;)Ce=s[Ce.pid];for(var we=g,E=0;E<J.subLevels;E++){var H=new _.node(q+`_sublevel_layout_`+E,we.id,[],`subLevel`);_.manager._initDinamicNode(H,we.lcn),H.parent=we,we.children.push(H),s[H.id]=H,we=H}if(J.subLevels){for(var E=0;E<J.childrenIds.length;E++){var w=s[J.childrenIds[E]],v=g.children.indexOf(w);v!=-1&&g.children.splice(v,1),w.parent=we,we.children.push(w)}g=we}if(J.layout==_.layout.grid&&J.childrenIds.length>2){J.layoutGridColumns==`dynamic`&&(J.layoutGridColumns=_._getDynamicGridCoulumns(J.childrenIds.length));for(var Te=g.id,u=g.children.length-1;u>=0;u--)for(var E=0;E<J.childrenIds.length;E++){var xe=J.childrenIds[E];if(g.children[u].id==xe){g.children.splice(u,1);break}}var Ee=J.layoutGridColumns;Ee%2!=0&&Ee>2&&Ee--;for(var u=0;u<J.childrenIds.length;u+=Ee)for(var De=null,E=0;E<Ee;E++){var Oe=u+Ee>=J.childrenIds.length;if(J.childrenIds.length-1<u+E)break;var xe=J.childrenIds[u+E],w=s[xe];w.parent=s[Te],s[Te].children.push(w),Oe||(Ee/2-1==E&&(De=new _.node(J.childrenIds[u+E-1]+`_grid_pseudo_node_`+J.childrenIds[u+E+1],Te,[],`subLevel`),_.manager._initDinamicNode(De,g.lcn),De.parent=s[Te],s[Te].children.push(De),s[De.id]=De),Ee-1==E&&(Te=De.id))}}if(J.layout==_.layout.mixed)for(var ke=J.childrenIds,u=ke.length-1;u>=0;u--){var w=s[ke[u]];g=w.parent,w.layout=_.layout.mixed;for(var E=g.children.length-1;E>=0;E--)if(w.id==g.children[E].id){g.children.splice(E,1);break}if(u>0){var Ae=s[ke[u-1]];w.parent=Ae,w.layout=_.layout.mixed,Ae.children.push(w)}else g.children.push(w)}else if(J.layout>1){var H=new _.node(q+`_`+g.id+`_split_0`,Ce.id,[],`split`);g.movex!=null&&(H.movex=g.movex),g.movey!=null&&(H.movey=g.movey),_.manager._initDinamicNode(H,g.lcn),s[H.id]=H,H.layout=J.layout;for(var je=[],u=J.childrenIds.length-1;u>=0;u--){for(var w=s[J.childrenIds[u]],E=0;E<g.children.length;E++)g.children[E].id==w.id&&g.children.splice(E,1);if(w.parent=null,w.layout=J.layout,(J.layout==_.layout.treeRightOffset||J.layout==_.layout.treeRight)&&je.splice(0,0,w.id),J.layout>2){var Me=new _.node(q+`_`+w.id+`_mirror`,Ce.id,[],`mirror`);_.manager._initDinamicNode(Me,w.lcn),Me.layout=J.layout,s[Me.id]=Me,je.splice(0,0,Me.id)}J.layout!=_.layout.treeRightOffset&&J.layout!=_.layout.treeRight&&je.splice(0,0,w.id)}for(var G=1,E=je.length-1;E>=0;E--)if(E%2&&E!=je.length-1){var se=new _.node(q+`_`+g.id+`_split_`+G,Ce.id,[],`split`);_.manager._initDinamicNode(se,g.lcn),g.movex!=null&&(se.movex=g.movex),g.movey!=null&&(se.movey=g.movey),se.layout=J.layout,s[se.id]=se,je.splice(E,0,se.id),G++}else E%2&&je.splice(E,0,H.id);for(var E=0;E<je.length;E+=3){var ce=null;E==0&&(ce=g);var le=s[je[E]],ue=s[je[E+1]],de=s[je[E+2]];E!=0&&(ce=s[je[E-3]]),E!=0&&!ue&&(ce=s[je[E-2]]),le.parent=ce,ce.children.push(le),ue&&(E!=0&&(ce=s[je[E-2]]),ue.parent=ce,ce.children.push(ue)),de&&(E!=0&&(ce=s[je[E-1]]),de.parent=ce,ce.children.push(de))}}}}}}if(_.VERTICAL_CHILDREN_ASSISTANT)for(var u=0;u<c.length;u++)_.manager._verticalAssistantIterate(c[u],s);var he={nodes:s,roots:c};return _.events.publish(`nodes-initialized`,[e,he]),{nodes:he.nodes,roots:he.roots,rootList:l}},_.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!`)},_.manager._getNodeWidth=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h}return 0},_.manager._isVisible=function(e,t,n,r,i,a,o){var s=0;if(_.LAZY_LOADING_FACTOR==`auto`){var c=a/i*2,l=o/i*2;s=Math.ceil(c>l?c:l)}else s=_.LAZY_LOADING_FACTOR/i;if(!(e.x==null||e.y==null)){if(_._getLazyLoading(t)&&r!==_.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 u=0;u<e.children.length;u++)if(t(e.children[u],n))return!0;return!1}return!0}},_.manager.getAllFields=function(e){var t=[_.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!==_.ID&&r!==_.TAGS&&r!==_.NODES&&r!==_.PID&&r!==_.STPID&&r!==`movex`&&r!==`movey`&&(e.nodeBinding[r]||t.has(r)||t.push(r));return t},_.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},_.manager._getResponse=function(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m){var h=l[0],g=[],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=_.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&&!m&&r.align==_.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 _.orientation.right:case _.orientation.right_top:T=(o-i)/2-C/2;break}else switch(T=h.x-C/2+_.manager._getNodeWidth(h,r)/2,r.orientation){case _.orientation.right:case _.orientation.right_top:T=-(C/2-(o-i)/2),T<r.padding-C&&(T=r.padding-C);break;case _.orientation.left:case _.orientation.bottom_left:case _.orientation.top_left:case _.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 _.orientation.bottom:case _.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 _.orientation.bottom:case _.orientation.bottom_left:E=-(w/2-(s-a)/2),E<r.padding-w&&(E=r.padding-w);break;case _.orientation.left:case _.orientation.right:E=h.y-w/2+_.manager._getNodeWidth(h,r)/2;break}c=[T,E,C,w]}else if(c==null&&!m&&r.align==_.ORIENTATION){var C=Math.ceil(e/S),w=Math.ceil(t/S),T=0,E=0;switch(r.orientation){case _.orientation.top:T=h.x-C/2+_.manager._getNodeWidth(h,r)/2,E=-r.padding;break;case _.orientation.bottom:T=h.x-C/2+_.manager._getNodeWidth(h,r)/2,E=r.padding-w;break;case _.orientation.left:T=-r.padding,E=h.y-w/2+_.manager._getNodeWidth(h,r)/2;break;case _.orientation.right:T=r.padding-C,E=h.y-w/2+_.manager._getNodeWidth(h,r)/2;break;case _.orientation.top_left:T=-r.padding,E=-r.padding;break;case _.orientation.right_top:T=r.padding-C,E=-r.padding;break;case _.orientation.left_top:T=-r.padding,E=-r.padding;break;case _.orientation.bottom_left:T=-r.padding,E=r.padding-w;break}c=[T,E,C,w]}if(u==_.action.centerNode||u==_.action.maximize){var D=_._getCenterNodeFromParams(f,d);d.options.horizontal==1&&(c[0]=D.x+D.w/2-c[2]/2),d.options.vertical==1&&(c[1]=D.y+D.h/2-c[3]/2)}if(u==_.action.insert||u==_.action.expand||u==_.action.collapse||u==_.action.update||u==_.action.centerNode){var O=null;if(u==_.action.insert&&d&&d.insertedNodeId!=null&&d.insertedNodeId!=null)O=f[d.insertedNodeId];else if(u==_.action.update&&d&&d.visId!=null&&d.visId!=null)O=f[d.visId];else if((u==_.action.expand||u==_.action.collapse)&&d&&d.id!=null&&d.id!=null)O=f[d.id],O=_.manager._getMostDeepChild(O);else if(u==_.action.centerNode){switch(r.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:d.options.vertical||(O=f[d.id]);break;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:d.options.horizontal||(O=f[d.id]);break}O&&=_.manager._getMostDeepChild(O)}if(!_.FIXED_POSITION_ON_CLICK&&O){if(O.isTreeListItem){for(;!O.stParent;)O=O.parent;O=O.stParent}switch(r.orientation){case _.orientation.top:case _.orientation.top_left:var k=O.y+O.h-c[3]+r.padding;c[1]<k&&(c[1]=k);break;case _.orientation.bottom:case _.orientation.bottom_left:var k=O.y-r.padding;c[1]>k&&(c[1]=k);break;case _.orientation.right:case _.orientation.right_top:var k=O.x-r.padding;c[0]>k&&(c[0]=k);break;case _.orientation.left:case _.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++)_.manager._iterate2(l[A],f,r,c,u,d,g,p,n,y,S,e,t);return{animations:y,boundary:v,viewBox:c,visibleNodeIds:g,nodes:f,allFields:_.manager.getAllFields(r)}},_.manager._iterate2=function(e,t,n,r,i,a,o,s,c,l,u,d,f){if(_.manager._isVisible(e,n,r,i,u,d,f)){o.push(e.id);var p=null;if((i==_.action.expand||i==_.action.collapse||i==_.action.maximize)&&s&&s[e.id]&&a.method==`expandCollapseToLevel`){var m=s[e.id];if(p={x:m.x,y:m.y},m){p={x:m.x,y:m.y};for(var h=e,g=null;h!=null;)s[h.id]&&s[h.id].collapsed&&(g=h),h=h.parent;g&&g.parent&&(p={x:g.parent.x,y:g.parent.y})}var v=t[a.id];if(v){for(var h=e.parent;h!=null;)h=h.parent;h&&(p={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if((i==_.action.expand||i==_.action.collapse)&&s&&s[e.id]){var m=s[e.id];if(p={x:m.x,y:m.y},a.ids==`all`&&m){p={x:m.x,y:m.y};for(var h=e,g=null;h!=null;)s[h.id]&&s[h.id].collapsed&&(g=h),h=h.parent;g&&g.parent&&(p={x:g.parent.x,y:g.parent.y})}var v=t[a.id];if(v){for(var h=e.parent;h!=null&&a.ids.indexOf(e.id)==-1&&a.ids.indexOf(h.id)==-1;)h=h.parent;h&&(p={x:v.x+v.w/2-e.w/2,y:v.y+v.h/2-e.h/2})}}else if(i==_.action.centerNode&&s&&s[e.id]){var m=s[e.id];m.x!=null&&m.y!=null&&(p={x:m.x,y:m.y});var y=_._getCenterNodeFromParams(t,a);if(y&&y==e){var h=e.parent;h&&h.id==a.id&&(p={x:y.x+y.w/2-e.w/2,y:y.y+y.h/2-e.h/2})}}else if(i==_.action.maximize&&s&&s[e.id]){var m=s[e.id];m.x!=null&&m.y!=null&&(p={x:m.x,y:m.y});var y=_._getCenterNodeFromParams(t,a);if(y&&y==e){var h=e.parent;h&&h.id==a.id&&(p={x:y.x+y.w/2-e.w/2,y:y.y+y.h/2-e.h/2})}}else if(i==_.action.minimize&&s&&s[e.id]){var m=s[e.id];p={x:m.x,y:m.y}}else if(i==_.action.insert&&a&&a.insertedNodeId==e.id&&e.parent)p={x:e.parent.x,y:e.parent.y};else if((i==_.action.update||i==_.action.insert)&&s){var m=s[e.id];if((!m||_.isNEU(m.x)&&_.isNEU(m.y))&&a){var v=t[a.id];if(v){for(var h=v;h&&h.id==e.id;)h=h.parent;h&&(p={x:v.x,y:v.y})}}else m&&(p={x:m.x,y:m.y})}else i!==_.action.exporting&&i!==_.action.init&&c.indexOf(e.id)==-1&&(l[0].push(e.id),l[1].push({opacity:0}),l[2].push({opacity:1}));p!=null&&p.x!=null&&p.y!=null&&(p.x!=e.x||p.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,p.x,p.y]}),l[2].push({transform:[1,0,0,1,e.x,e.y]}))}for(var b=0;b<e.stChildren.length;b++)_.manager._iterate2(e.stChildren[b],t,n,r,i,a,o,s,c,l,u,d,f);for(var b=0;b<e.children.length;b++)_.manager._iterate2(e.children[b],t,n,r,i,a,o,s,c,l,u,d,f)},_.manager._addExpandedNodeIdsIterate=function(e,t,n){for(var r=0;r<e.childrenIds.length;r++)n.push(e.childrenIds[r]),_.manager._addExpandedNodeIdsIterate(t[e.childrenIds[r]],t,n)},_.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)_.manager._setChildCountPropsIterate(t[r],t);for(var r of e.childrenIds)_.manager._setChildCountPropsIterate(t[r],t)},_.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)_.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)):_._setMinMaxXY(e,i[t.id][e.sl],!0),e.movex!=null&&(e.x+=e.movex),e.movey!=null&&(e.y+=e.movey),_._setMinMaxXY(e,n,!0),r++;for(var c of e.children)_.manager._setMinMaxXYAdjustifyIterate(c,t,n,r,i,a,o,s)},_.manager._doNotChangePositionOfClickedNodeIfAny=function(e,t,n,r,i,a){if(n!=_.action.expand&&n!=_.action.collapse&&n!=_.action.minimize&&n!=_.action.maximize&&n!=_.action.centerNode&&n!=_.action.update&&n!=_.action.insert)return{x:0,y:0};if(n==_.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==_.action.minimize&&t[o].parent||n==_.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,u=c.movey==null?0:c.movey,d={x:(c.x?c.x-l:0)-s.x,y:(c.y?c.y-u:0)-s.y};return s&&s.isTreeListItem?{x:0,y:0}:d},_.manager._verticalAssistantIterate=function(e,t){for(var n=0;n<e.stChildren.length;n++)_.manager._verticalAssistantIterate(e.stChildren[n],t);if(e.children.length==3)_.manager._verticalAssistantIterate(e.children[0],t),_.manager._verticalAssistantIterate(e.children[2],t),_.manager._verticalAssistantIterate(e.children[1],t);else for(var n=0;n<e.children.length;n++)_.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};_.manager._verticalAssistantLevelCountIterate(r,0,o),_.manager._verticalAssistantLevelCountIterate(i,0,s);for(var c=Math.max(o.max,s.max),l=[],n=0;n<c;n++){var u=new _.node(e.parent.id+`_split_assitant_level_`+n,e.pid,[],`subLevel`);_.manager._initDinamicNode(u,e.lcn,!0),a.movex!=null&&(u.movex=a.movex),a.movey!=null&&(u.movey=a.movey),n>0&&(l[n-1].children.push(u),u.parent=l[n-1]),t[u.id]=u,l.push(u)}if(l.length){for(var d=l[l.length-1],f=l[0],p=e.children.length-1;p>=0;p--){var m=e.children[p];d.children.unshift(m),m.parent=d,e.children.splice(p,1)}e.children.push(f),f.parent=e}}},_.manager._verticalAssistantLevelCountIterate=function(e,t,n){n.max<t&&(n.max=t),t++;for(var r=0;r<e.children.length;r++)_.manager._verticalAssistantLevelCountIterate(e.children[r],t,n)},_._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},_===void 0&&(_={}),_.templates={},_.templates.base={defs:``,size:[250,120],expandCollapseSize:30,linkAdjuster:{fromX:0,fromY:0,toX:0,toY:0},ripple:{radius:0,color:`#e6e6e6`,rect:null},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>
|
|
382
382
|
<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>
|
|
383
|
-
<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;" `+_.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" `+_.attr.width+`="290" x="0" y="0" style="font-size:10px;">{val}</text>`,editFormHeaderColor:`#039BE5`,treeListMaxHeight:500},_.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
|
|
384
|
-
<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
|
|
383
|
+
<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;" `+_.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" `+_.attr.width+`="290" x="0" y="0" style="font-size:10px;">{val}</text>`,editFormHeaderColor:`#039BE5`,treeListMaxHeight:500},_.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}" />`,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>
|
|
384
|
+
<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>
|
|
385
385
|
<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:_.templates.base.menuButton,img_0:function(e,t,n,r,i){var a=50,o=30,s=40,c=_.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" `+_.attr.width+`="290" x="0" y="0" style="font-size:10px;">{val}</text>`,field_0:function(e,t,n,r,i){return _.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 _.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},_.templates.split=Object.assign({},_.templates.ana),_.templates.split.size=[10,10],_.templates.split.node=`<circle cx="5" cy="5" r="5" fill="none" stroke-width="1" stroke="#aeaeae"></circle>`,_.templates.split.field_0=``,_.templates.split.field_1=``,_.templates.split.img_0=``,_.templates.dot=Object.assign({},_.templates.split),_.templates.group=Object.assign({},_.templates.ana),_.templates.group.size=[250,120],_.templates.group.padding=[50,20,35,20],_.templates.group.node=`<rect rx="50" ry="50" x="0" y="0" height="{h}" width="{w}" fill="#f2f2f2" stroke-width="0"></rect>`,_.templates.group.link=`<path stroke="#aeaeae" stroke-width="1px" fill="none" d="M{xa},{ya} C{xb},{yb} {xc},{yc} {xd},{yd}"/>`,_.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>`,_.templates.group.field_0=`<text `+_.attr.width+`="230" style="font-size: 18px;" fill="#aeaeae" x="{cw}" y="30" text-anchor="middle">{val}</text>`,_.templates.group.field_1=``,_.templates.group.ripple={radius:50,color:`#aeaeae`},_.templates.invisibleGroup=Object.assign({},_.templates.group),_.templates.invisibleGroup.node=``,_.templates.invisibleGroup.padding=[0,0,0,0],_.templates.invisibleGroup.field_0=``,_.templates.invisibleGroup.nodeMenuButton=``,_.templates.mirror={linkAdjuster:{},link:``,node:``,nodeMenuButton:``,size:[0,0]},_.templates.ula=Object.assign({},_.templates.ana),_.templates.ula.field_0=function(e,t,n,r,i){return _.wrapText(i,`<text style="font-size: 18px;" fill="#039BE5" x="100" y="55"></text>`,e.w-105,1)},_.templates.ula.field_1=function(e,t,n,r,i){return _.wrapText(i,`<text data-text-overflow="multiline" style="font-size: 14px;" fill="#afafaf" x="100" y="76"></text>`,e.w-105,3)},_.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>`},_.templates.ula.img_0=function(e,t,n,r,i){var a=50,o=60,s=40,c=_.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>`},_.templates.ula.menu=`<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,12)" `+_.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>`,_.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>`},_.templates.ula.padding=[110,1,1,1],_.templates.olivia=Object.assign({},_.templates.ana),_.templates.olivia.defs=`<style>
|
|
386
386
|
#olivia_gradient {
|
|
387
387
|
--color-stop-1: #ffffff;
|
|
@@ -451,7 +451,7 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
451
451
|
<path stroke-width="${r}" fill="none" stroke="url(#${e}_linearColors6)" d="${a(n,n,n,300,1)}"/>
|
|
452
452
|
</g>`},_._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)},_.convertCsvToNodes=function(e){for(var t=_._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]]=_._convertStringToArray(s,c)}a.id.trim()!=``&&r.push(a)}return r},_._escapeHtml=function(e){return _.ESCAPE_HTML&&typeof e==`string`?e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`):e},_._escapeDoubleQuotes=function(e){return typeof e==`string`?e.replace(/"/g,`"`):e},_._escapeGreaterLessSign=function(e){return typeof e==`string`?e.replace(/</g,`<`).replace(/>/g,`>`):e},_.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(` `)+` `},``)},_._isMoved=function(e){return e.movex!=null||e.movey!=null},_._getDynamicGridCoulumns=function(e){for(var t=1;t<e&&(e/t,!(e/t-t<=0));t++);return t%2!=0&&t>2&&t--,t},_._getLazyLoading=function(e){var t=e.lazyLoading;return t==`auto`&&(t=!!(e&&e.nodes&&e.nodes.length>700)),t},_._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}},_._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)},_._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},_._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+=`
|
|
453
453
|
`;for(let t of Object.keys(e))[`id`,`pid`,`name`,`children`,`tags`].includes(t)||(a+=r+`[`+t+`]`+e[t]+`
|
|
454
|
-
`);for(let t of e.children)a+=i(t,n+1);return a}return r.map(e=>i(e,0)).join(``).trim()},_._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={};_.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToSVG(c)}else if(t===`pdf_export`||t===`pdf`){var c={};_.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPDF(c)}else if(t===`png_export`||t===`png`){var c={};_.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(_.layout.mixed):t===`layout_normal`?e.setLayout(_.layout.normal):t===`layout_right_offset`?e.setLayout(_.layout.treeRightOffset):t===`layout_left_offset`?e.setLayout(_.layout.treeLeftOffset):t===`layout_tree`?e.setLayout(_.layout.tree):t===`layout_grid`&&e.setLayout(_.layout.grid);else a=n.call(e,r,i);return a},_._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}},_._treeListAdjustToSTNodePostition=function(e,t){for(var n of e)n.y+=t.y+t.padding[0],n.x+=t.x+t.padding[3],_._treeListAdjustToSTNodePostition(n.children,t)},_._treeListSetProps=function(e,t){var n=-e.treeList.scrollTop,r={nodesByLevels:[],lastNode:null,y:0};e.treeList.pinnedIds=[],_._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,u=0,d=c.parent;d&&(u+=d.h,d.parent);)d=d.parent;if(c.children.length&&c.y+n<=u){l=-n+u;var f=o[s+1];if(f&&f.y<l+c.h&&(l=f.y-c.h),d){var p=e.stChildren.indexOf(d);if(e.stChildren.length>p+1){var m=e.stChildren[p+1];m.y<l+c.h&&(l=m.y-c.h)}}}c.y!=l&&e.treeList.pinnedIds.push(c.id),c.y=l,c.x=0}if(t==_.orientation.bottom){var h=r.lastNode.y+r.lastNode.h;for(var a of r.nodesByLevels)for(var c of a)c.y=h-c.y-c.h}e.treeList.scrollTop=-n,e.treeList.scrollTopMax=i},_._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,_._treeListIterate(r.children,t,n)},_._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}},_._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},_._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},_._getScrollTopForNode=function(e,t){var n={nodesByLevels:[],lastNode:null,y:0};_._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],u=e.treeList.maxHeight-c-l,d=n.lastNode.y+n.lastNode.h-u;d<0&&(d=0);var f=e.treeList.scrollTop,p=r.y-o,m=r.y+r.h-u,h=f;return r.y<f+o?h=p:r.y+r.h>f+u&&(h=r.h>u-o?p:m),h<0?h=0:h>d&&(h=d),h},_._getDefailtPositionForExpandCollpase=function(e,t){var n={x:0,y:0};switch(e.orientation){case _.orientation.top:case _.orientation.top_left:n.x=t.w/2,n.y=t.h;break;case _.orientation.bottom:case _.orientation.bottom_left:n.x=t.w/2,n.y=0;break;case _.orientation.right:case _.orientation.right_top:n.x=0,n.y=t.h/2;break;case _.orientation.left:case _.orientation.left_top:n.x=t.w,n.y=t.h/2;break}return n},_._measureCache={svg:null,text:null},_._getMeasureElement=function(){if(_._measureCache.svg)return _._measureCache.text;let e=`http://www.w3.org/2000/svg`;return _._measureCache.svg=document.createElementNS(e,`svg`),_._measureCache.svg.id=`orgchart_js_test__measure`,_._measureCache.svg.style.cssText=`position:absolute;top:-9999px;visibility:hidden;white-space:pre;`,_._measureCache.text=document.createElementNS(e,`text`),_._measureCache.svg.appendChild(_._measureCache.text),document.body.appendChild(_._measureCache.svg),_._measureCache.text},_._lineClamp=function(e,t,n,r){if(t===void 0||t==null)return``;typeof t!=`string`&&(t=t.toString()),t=_._escapeHtml(t);let i=/(\w+(?:-\w+)?)="([^"]*)"/g,a={},o;for(;(o=i.exec(e))!==null;)a[o[1]]=o[2];let s=_._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(` `),u=[],d=``,f=0;for(;f<l.length&&u.length<r;){let e=l[f],t=d?d+` `+e:e;if(c(t)<=n)d=t,f++;else if(d===``){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}u.push(e.slice(0,i)),l[f]=e.slice(i)}else u.push(d),d=``}d&&u.length<r&&u.push(d);let p=f<l.length||f===l.length&&l[f-1]===``&&t.endsWith(` `);if(p&&u.length>0){let e=u[u.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}u[u.length-1]=i}let m=` x="${a.x||`0`}"`,h=u.length===1?u[0]:u.map((e,t)=>`<tspan${m} dy="${t===0?0:`1.2em`}">${e}</tspan>`).join(``);return`<text${Object.entries(a).map(([e,t])=>` ${e}="${t}"`).join(``)}>${p?`<title>${t}</title>`:``}${h}</text>`},_._getScrollableTreeListNodeInTouchEnabledDevice=function(e){if(!e||!e.isTreeListItem||!_._isTouchDevice())return null;var t=_.getRootOf(e).stParent,{thumbHeight:n,thumbPosition:r,scrollBarDisplay:i}=_._treeListGetTumbPositionFromScrollTop(t);return i==`none`?null:t},_._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 _._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)}))},_._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})},_.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]/=_.SCALE_FACTOR,i[3]/=_.SCALE_FACTOR):e===!1?(i[2]*=_.SCALE_FACTOR,i[3]*=_.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),_.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,_.action.zoom,null,r)},500)})):(this.setViewBox(i),clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,_.action.zoom,null,r)},500))}},_._ai=function(e){this.instance=e,this.sessionId=null},_._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)}))},_._ai.prototype._prompt=function(e,t){var n=this,r=[];for(var i of _.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()}},_._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)})}},_._ai.prototype.toolCalls=function(e,t){var n=this,r={toolCalls:e.ToolCalls};_.events.publish(`ai-tool-calls`,[this.instance,r]);var i=[],a=[],o=[],s=[],c=[],l=null,u=null,d=null,f=null,p=null;for(var m of r.toolCalls)m.FunctionResult??(m.FunctionName==`removeNode`?i.push(m):m.FunctionName==`addNode`?a.push(m):m.FunctionName==`updateNode`?o.push(m):m.FunctionName==`select`?s.push(m):m.FunctionName==`deselect`?c.push(m):m.FunctionName==`exportToPDF`?l=m:m.FunctionName==`changeTemplate`?u=m:m.FunctionName==`addSlink`?d=m:m.FunctionName==`removeSlink`?f=m:m.FunctionName==`fit`&&(p=m));var h=!1;if(u&&(h=!0,m.FunctionResult=`ok`,this.instance.config.template=m.FunctionArguments.templateName),d){var g=this.instance.getNode(m.FunctionArguments.employeeId1),v=this.instance.getNode(m.FunctionArguments.employeeId2);!g||!v||g==v?m.FunctionResult=`Cannot add link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(h=!0,this.instance.addSlink(g.id,v.id),m.FunctionResult=`ok`)}if(f){var g=this.instance.getNode(m.FunctionArguments.employeeId1),v=this.instance.getNode(m.FunctionArguments.employeeId2);!g||!v||g==v?m.FunctionResult=`Cannot remove link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(h=!0,this.instance.removeSlink(g.id,v.id),m.FunctionResult=`ok`)}p&&(this.instance.fit(),h=!1);for(var m of i)h=!0,m.FunctionResult=`ok`,this.instance.remove(m.FunctionArguments.id);for(var m of a){h=!0,m.FunctionResult=`ok`;var y=JSON.parse(JSON.stringify(m.FunctionArguments));y.isAssistant&&(y.tags=[`assistant`]),delete y.isAssistant,_.isNEU(y.id)&&(y.id=this.instance.generateId()),this.instance.add(y)}for(var m of o){h=!0,m.FunctionResult=`ok`;var y=this.instance.get(m.FunctionArguments.id);for(var b in m.FunctionArguments)b!=`id`&&m.FunctionArguments[b]!=null&&(y[b]=m.FunctionArguments[b]);this.instance.update(y)}for(var m of s){m.FunctionResult=`ok`;for(var x of m.FunctionArguments.ids){var S=m.FunctionArguments.color;S||=`#FFCA28`;var C=this.instance.getNodeElement(x).firstChild;C&&(C.style.stroke=m.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 h=!0};h?(this.setContext(),this.instance.draw(_.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(){m.FunctionResult=`ok`,_._downloadFile(`application/pdf`,response,`OrgChart.pdf`,!1,`pdf`),T()}):T()},_.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}})},_.aiUI.title=`AI for OrgChart JS`,_.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()})},_.aiUI.prototype.isVisible=function(){return!(!this.element||this.element.style.display==`none`)},_.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=_.animate(this.element,{opacity:0},{opacity:1},300,_.anim.outSin,function(){e||n.inputElement.focus()}))},_.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">
|
|
454
|
+
`);for(let t of e.children)a+=i(t,n+1);return a}return r.map(e=>i(e,0)).join(``).trim()},_._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={};_.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToSVG(c)}else if(t===`pdf_export`||t===`pdf`){var c={};_.isNEU(r)||(c.pages=[{nodeId:r}]),e.exportToPDF(c)}else if(t===`png_export`||t===`png`){var c={};_.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(_.layout.mixed):t===`layout_normal`?e.setLayout(_.layout.normal):t===`layout_right_offset`?e.setLayout(_.layout.treeRightOffset):t===`layout_left_offset`?e.setLayout(_.layout.treeLeftOffset):t===`layout_tree`?e.setLayout(_.layout.tree):t===`layout_grid`&&e.setLayout(_.layout.grid);else a=n.call(e,r,i);return a},_._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}},_._treeListAdjustToSTNodePostition=function(e,t){for(var n of e)n.y+=t.y+t.padding[0],n.x+=t.x+t.padding[3],_._treeListAdjustToSTNodePostition(n.children,t)},_._treeListSetProps=function(e,t){var n=-e.treeList.scrollTop,r={nodesByLevels:[],lastNode:null,y:0};e.treeList.pinnedIds=[],_._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,u=0,d=c.parent;d&&(u+=d.h,d.parent);)d=d.parent;if(c.children.length&&c.y+n<=u){l=-n+u;var f=o[s+1];if(f&&f.y<l+c.h&&(l=f.y-c.h),d){var p=e.stChildren.indexOf(d);if(e.stChildren.length>p+1){var m=e.stChildren[p+1];m.y<l+c.h&&(l=m.y-c.h)}}}c.y!=l&&e.treeList.pinnedIds.push(c.id),c.y=l,c.x=0}if(t==_.orientation.bottom){var h=r.lastNode.y+r.lastNode.h;for(var a of r.nodesByLevels)for(var c of a)c.y=h-c.y-c.h}e.treeList.scrollTop=-n,e.treeList.scrollTopMax=i},_._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,_._treeListIterate(r.children,t,n)},_._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}},_._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},_._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},_._getScrollTopForNode=function(e,t){var n={nodesByLevels:[],lastNode:null,y:0};_._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],u=e.treeList.maxHeight-c-l,d=n.lastNode.y+n.lastNode.h-u;d<0&&(d=0);var f=e.treeList.scrollTop,p=r.y-o,m=r.y+r.h-u,h=f;return r.y<f+o?h=p:r.y+r.h>f+u&&(h=r.h>u-o?p:m),h<0?h=0:h>d&&(h=d),h},_._getDefailtPositionForExpandCollpase=function(e,t){var n={x:0,y:0};switch(e.orientation){case _.orientation.top:case _.orientation.top_left:n.x=t.w/2,n.y=t.h;break;case _.orientation.bottom:case _.orientation.bottom_left:n.x=t.w/2,n.y=0;break;case _.orientation.right:case _.orientation.right_top:n.x=0,n.y=t.h/2;break;case _.orientation.left:case _.orientation.left_top:n.x=t.w,n.y=t.h/2;break}return n},_._measureCache={svg:null,text:null},_._getMeasureElement=function(){if(_._measureCache.svg)return _._measureCache.text;let e=`http://www.w3.org/2000/svg`;return _._measureCache.svg=document.createElementNS(e,`svg`),_._measureCache.svg.id=`orgchart_js_test__measure`,_._measureCache.svg.style.cssText=`position:absolute;top:-9999px;visibility:hidden;white-space:pre;`,_._measureCache.text=document.createElementNS(e,`text`),_._measureCache.svg.appendChild(_._measureCache.text),document.body.appendChild(_._measureCache.svg),_._measureCache.text},_._lineClamp=function(e,t,n,r){if(t===void 0||t==null)return``;typeof t!=`string`&&(t=t.toString()),t=_._escapeHtml(t);let i=/(\w+(?:-\w+)?)="([^"]*)"/g,a={},o;for(;(o=i.exec(e))!==null;)a[o[1]]=o[2];let s=_._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(` `),u=[],d=``,f=0;for(;f<l.length&&u.length<r;){let e=l[f],t=d?d+` `+e:e;if(c(t)<=n)d=t,f++;else if(d===``){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}u.push(e.slice(0,i)),l[f]=e.slice(i)}else u.push(d),d=``}d&&u.length<r&&u.push(d);let p=f<l.length||f===l.length&&l[f-1]===``&&t.endsWith(` `);if(p&&u.length>0){let e=u[u.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}u[u.length-1]=i}let m=` x="${a.x||`0`}"`,h=u.length===1?u[0]:u.map((e,t)=>`<tspan${m} dy="${t===0?0:`1.2em`}">${e}</tspan>`).join(``);return`<text${Object.entries(a).map(([e,t])=>` ${e}="${t}"`).join(``)}>${p?`<title>${t}</title>`:``}${h}</text>`},_._getScrollableTreeListNodeInTouchEnabledDevice=function(e){if(!e||!e.isTreeListItem||!_._isTouchDevice())return null;var t=_.getRootOf(e).stParent,{thumbHeight:n,thumbPosition:r,scrollBarDisplay:i}=_._treeListGetTumbPositionFromScrollTop(t);return i==`none`?null:t},_._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 _._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)}))},_._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})},_._addSelectedStyle=function(e,t,n){var r=e.getNodeElement(t.id);if(r&&r.classList.add(`boc-selected`),n!=t.id){var i=e.element.querySelector(`[data-ctrl-ec-id="${t.id}"]`);i&&i.classList.add(`boc-selected`)}var a=e.getNode(t.pid);if(a){let r=e.element.querySelector(`[data-l-id="[${t.parent.id}][${t.id}]"]`);r&&r.classList.add(`boc-selected`),_._addSelectedStyle(e,a,n)}},_._removeSelectedStyle=function(e){let t=e.element.querySelectorAll(`.boc-selected`);for(let e=0;e<t.length;e++)t[e].classList.remove(`boc-selected`)},_.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]/=_.SCALE_FACTOR,i[3]/=_.SCALE_FACTOR):e===!1?(i[2]*=_.SCALE_FACTOR,i[3]*=_.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),_.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,_.action.zoom,null,r)},500)})):(this.setViewBox(i),clearTimeout(l._timeout),l._timeout=setTimeout(function(){l._draw(!0,_.action.zoom,null,r)},500))}},_._ai=function(e){this.instance=e,this.sessionId=null},_._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)}))},_._ai.prototype._prompt=function(e,t){var n=this,r=[];for(var i of _.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()}},_._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)})}},_._ai.prototype.toolCalls=function(e,t){var n=this,r={toolCalls:e.ToolCalls};_.events.publish(`ai-tool-calls`,[this.instance,r]);var i=[],a=[],o=[],s=[],c=[],l=null,u=null,d=null,f=null,p=null;for(var m of r.toolCalls)m.FunctionResult??(m.FunctionName==`removeNode`?i.push(m):m.FunctionName==`addNode`?a.push(m):m.FunctionName==`updateNode`?o.push(m):m.FunctionName==`select`?s.push(m):m.FunctionName==`deselect`?c.push(m):m.FunctionName==`exportToPDF`?l=m:m.FunctionName==`changeTemplate`?u=m:m.FunctionName==`addSlink`?d=m:m.FunctionName==`removeSlink`?f=m:m.FunctionName==`fit`&&(p=m));var h=!1;if(u&&(h=!0,m.FunctionResult=`ok`,this.instance.config.template=m.FunctionArguments.templateName),d){var g=this.instance.getNode(m.FunctionArguments.employeeId1),v=this.instance.getNode(m.FunctionArguments.employeeId2);!g||!v||g==v?m.FunctionResult=`Cannot add link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(h=!0,this.instance.addSlink(g.id,v.id),m.FunctionResult=`ok`)}if(f){var g=this.instance.getNode(m.FunctionArguments.employeeId1),v=this.instance.getNode(m.FunctionArguments.employeeId2);!g||!v||g==v?m.FunctionResult=`Cannot remove link between ${m.FunctionArguments.employeeId1} and ${m.FunctionArguments.employeeId2}`:(h=!0,this.instance.removeSlink(g.id,v.id),m.FunctionResult=`ok`)}p&&(this.instance.fit(),h=!1);for(var m of i)h=!0,m.FunctionResult=`ok`,this.instance.remove(m.FunctionArguments.id);for(var m of a){h=!0,m.FunctionResult=`ok`;var y=JSON.parse(JSON.stringify(m.FunctionArguments));y.isAssistant&&(y.tags=[`assistant`]),delete y.isAssistant,_.isNEU(y.id)&&(y.id=this.instance.generateId()),this.instance.add(y)}for(var m of o){h=!0,m.FunctionResult=`ok`;var y=this.instance.get(m.FunctionArguments.id);for(var b in m.FunctionArguments)b!=`id`&&m.FunctionArguments[b]!=null&&(y[b]=m.FunctionArguments[b]);this.instance.update(y)}for(var m of s){m.FunctionResult=`ok`;for(var x of m.FunctionArguments.ids){var S=m.FunctionArguments.color;S||=`#FFCA28`;var C=this.instance.getNodeElement(x).firstChild;C&&(C.style.stroke=m.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 h=!0};h?(this.setContext(),this.instance.draw(_.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(){m.FunctionResult=`ok`,_._downloadFile(`application/pdf`,response,`OrgChart.pdf`,!1,`pdf`),T()}):T()},_.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}})},_.aiUI.title=`AI for OrgChart JS`,_.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()})},_.aiUI.prototype.isVisible=function(){return!(!this.element||this.element.style.display==`none`)},_.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=_.animate(this.element,{opacity:0},{opacity:1},300,_.anim.outSin,function(){e||n.inputElement.focus()}))},_.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">
|
|
455
455
|
<div data-boc-ai-close class="boc-ai-close">${_.icon.x(20,20,`#aeaeae`)}</div>
|
|
456
456
|
<div class="boc-ai-middle boc-ai-start">
|
|
457
457
|
<div data-boc-ai-messages class="boc-ai-messages">
|
|
@@ -471,5 +471,5 @@ performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready
|
|
|
471
471
|
</div>
|
|
472
472
|
|
|
473
473
|
</div>
|
|
474
|
-
</div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display=`block`,_.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=_.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=_.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:}})}},_.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)},_.aiUI.prototype.hide=function(){this.instance.leftElement.style.display=`none`,this.element&&=(this.element.parentNode.removeChild(this.element),null)},_.aiUI.prototype.sendUserInput=function(){var e=this;_.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=``},_.aiUI._addSuggestion=function(e){e=e.trim();var t=_.aiUI._getSuggestions(),n=t.indexOf(e);n!=-1&&t.splice(n,1),t.push(e),localStorage.setItem(`suggestions`,JSON.stringify(t))},_.aiUI._getSuggestions=function(){var e=localStorage.getItem(`suggestions`);return e=e?JSON.parse(e):[],e},_===void 0&&(_={}),_.events.on(`init`,function(e,t){if(e.config.keyNavigation&&(window.addEventListener(`keydown`,function(){e._windowKeyDownHandler.apply(e,[this,arguments[0]])}),_.isNEU(e._keyNavigationActiveNodeId)&&e.roots&&e.roots.length)){var n=e.roots[0].id;_.isNEU(e.config.keyNavigation.focusId)||(n=e.config.keyNavigation.focusId),e._keyNavigationActiveNodeId=n,e.center(e._keyNavigationActiveNodeId)}}),_.prototype._windowKeyDownHandler=function(e,t){for(var n=t.target,r=null;n&&n!=this.element;){if(n.hasAttribute&&n.hasAttribute(_.attr.node_id)){r=n.getAttribute(_.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(_.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(_.attr.node_id);this.toggleExpandCollapse(l,t);return}}}},_.events.on(`redraw`,function(e,t){e.config.keyNavigation&&_._keyNavigation(e)}),_.events.on(`click`,function(e,t){e.config&&e.config.keyNavigation&&(e._keyNavigationActiveNodeId=t.node.id,e.center(t.node.id))}),_._keyNavigation=function(e){var t=e.element.querySelector(`:focus`);if(t&&t.parentElement&&t.parentElement.hasAttribute(_.attr.node_id)){var n=t.parentElement,r=t,i=r.querySelector(`title`);i&&i.parentNode.removeChild(i),r.removeAttribute(`tabindex`)}if(!_.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(_.events.publish(`screen-reader-text`,[e,a]),!_.isNEU(a.text)){var i=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);i.innerHTML=a.text,r.appendChild(i)}_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&e.searchUI.hide(),r.focus()}}},_.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-menu{position:absolute;min-width:240px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:scale(.95);transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:1000;user-select:none;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-menu-options{width:100%;table-layout:auto;border-collapse:collapse}.boc-menu-item{cursor:pointer}.boc-menu-icon,.boc-menu-shortcut{width:1%;white-space:nowrap;padding:12px}.boc-menu-icon{border-top-left-radius:7px;border-bottom-left-radius:7px;vertical-align:middle;font-size:20px}.boc-menu-icon>img,.boc-menu-icon>svg{display:block}.boc-menu-shortcut{text-align:right;border-top-right-radius:7px;border-bottom-right-radius:7px}.boc-menu-text{width:auto;padding:12px 0}.boc-menu-submenu{width:0%}.boc-menu.active{opacity:1;visibility:visible;transform:scale(1)}.boc-menu-line{height:1px}.boc-menu-divider>td{height:12px}.boc-menu-item.boc-has-submenu{position:relative}.boc-submenu-arrow{font-size:10px;opacity:.6}.boc-submenu{position:absolute;top:-9px;min-width:180px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:translateX(-10px);transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:1001}.boc-submenu.boc-submenu-left{right:100%;left:auto;margin-right:4px;transform:translateX(10px)}.boc-submenu:not(.boc-submenu-left){left:100%;right:auto;margin-left:4px}.boc-submenu.boc-submenu-top{bottom:0;top:auto}.boc-submenu:not(.boc-submenu-top){bottom:auto;top:0}.boc-menu-item.boc-has-submenu:hover>.boc-menu-submenu>.boc-submenu{opacity:1;visibility:visible;transform:translateX(0)}.boc-light .boc-submenu{background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05);border:1px solid #e0e0e0}.boc-light .boc-menu-divider .boc-menu-line{background-color:#e0e0e0}.boc-light .boc-menu-shortcut{color:#666}.boc-light .boc-menu-item{color:#333}.boc-light .boc-menu-item:hover>td{background-color:#f5f5f5}.boc-light .boc-menu-item:hover>.boc-menu-text{color:#000}.boc-light .boc-menu{border:1px solid #e0e0e0;background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05)}.boc-dark .boc-submenu{background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45);border:1px solid #3a3a3a}.boc-dark .boc-menu-divider .boc-menu-line{background-color:#3a3a3a}.boc-dark .boc-menu-shortcut{color:#8b949e}.boc-dark .boc-menu-item{color:#c9d1d9}.boc-dark .boc-menu-item:hover>td{background-color:#2d2d2d}.boc-dark .boc-menu-item:hover>.boc-menu-text{color:#fff}.boc-dark .boc-menu{border:1px solid #3a3a3a;background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45)}.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>`},_.input={},_.input._timeout=null,_.input.initWithTimeout=function(){_.input._timeout&&(clearTimeout(_.input._timeout),_.input._timeout=null),_.input._timeout=setTimeout(_.input.init,200)},_.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(){_.input.blurHandler(this)})}},_.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`)},_.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"> `+i+`</span>`,t.classList.add(`boc-validation-error`),!1):a&&!_.input.validatePassword(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+a+`</span>`,t.classList.add(`boc-validation-error`),!1):o&&!_.input.isValidEmail(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+o+`</span>`,t.classList.add(`boc-validation-error`),!1):s&&!_.input.isValidEmails(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+s+`</span>`,t.classList.add(`boc-validation-error`),!1):!0},_.input.validateAndGetData=function(e){for(var t=e.querySelectorAll(`[data-boc-input]`),n=!0,r=0;r<t.length;r++){var i=t[r];_.input.validate(i)||(n=!1)}return n?_.input.getData(e):!1},_.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},_.input.validatePassword=function(e){return e&&=e.trim(),e.length<5||e.length>18?!1:e.indexOf(` `)==-1},_.input.isValidEmails=function(e){if(e)for(var t=e.split(`,`),n=0;n<t.length;n++){var r=t[n].trim();if(!_.input.isValidEmail(r))return!1}return!0},_.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())},_===void 0&&(_={}),_.prototype.onField=function(e){return this.on(`field`,function(t,n){return e.call(t,n)})},_.prototype.onInit=function(e){return this.on(`init`,function(t){return e.call(t)})},_.prototype.onRedraw=function(e){return this.on(`redraw`,function(t){return e.call(t)})},_.prototype.onUpdateNode=function(e){return this.on(`update`,function(t,n,r){var i={oldData:n,newData:r};return e.call(t,i)})},_.prototype.onUpdated=function(e){return this.on(`updated`,function(t){return e.call(t)})},_.prototype.onRemoveNode=function(e){return this.on(`remove`,function(t,n,r){var i={id:n,newPidsAndStpidsForIds:r};return e.call(t,i)})},_.prototype.onAddNode=function(e){return this.on(`add`,function(t,n){var r={data:n};return e.call(t,r)})},_.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)})},_.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)})},_.prototype.onExpandCollapseButtonClick=_.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)})},_.prototype.onExportStart=function(e){return this.on(`exportstart`,function(t,n){return e.call(t,n)})},_.prototype.onExportEnd=function(e){return this.on(`exportend`,function(t,n){return e.call(t,n)})},_.prototype.onNodeClick=function(e){return this.on(`click`,function(t,n){return e.call(t,n)})},_.prototype.onCanvasClick=function(e){return this.on(`canvas-click`,function(t,n){return e.call(t,n)})},_.prototype.onNodeDoubleClick=function(e){return this.on(`dbclick`,function(t,n){var r={data:n};return e.call(t,r)})},_.prototype.onAIToolCalls=function(e){return this.on(`ai-tool-calls`,function(t,n){return e.call(t,n)})},_.prototype._dragDropHandler=function(e,t,n){},_.prototype._movableHandler=function(e,t,n){},_===void 0&&(_={}),_._communityMessages=[],_._communityAlert=function(){var e=[];for(var t of _._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(`
|
|
474
|
+
</div>`,this.instance.leftElement.appendChild(this.element),this.instance.leftElement.style.display=`block`,_.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=_.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=_.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:}})}},_.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)},_.aiUI.prototype.hide=function(){this.instance.leftElement.style.display=`none`,this.element&&=(this.element.parentNode.removeChild(this.element),null)},_.aiUI.prototype.sendUserInput=function(){var e=this;_.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=``},_.aiUI._addSuggestion=function(e){e=e.trim();var t=_.aiUI._getSuggestions(),n=t.indexOf(e);n!=-1&&t.splice(n,1),t.push(e),localStorage.setItem(`suggestions`,JSON.stringify(t))},_.aiUI._getSuggestions=function(){var e=localStorage.getItem(`suggestions`);return e=e?JSON.parse(e):[],e},_===void 0&&(_={}),_.events.on(`init`,function(e,t){if(e.config.keyNavigation&&(window.addEventListener(`keydown`,function(){e._windowKeyDownHandler.apply(e,[this,arguments[0]])}),_.isNEU(e._keyNavigationActiveNodeId)&&e.roots&&e.roots.length)){var n=e.roots[0].id;_.isNEU(e.config.keyNavigation.focusId)||(n=e.config.keyNavigation.focusId),e._keyNavigationActiveNodeId=n,e.center(e._keyNavigationActiveNodeId)}}),_.prototype._windowKeyDownHandler=function(e,t){for(var n=t.target,r=null;n&&n!=this.element;){if(n.hasAttribute&&n.hasAttribute(_.attr.node_id)){r=n.getAttribute(_.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(_.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(_.attr.node_id);this.toggleExpandCollapse(l,t);return}}}},_.events.on(`redraw`,function(e,t){e.config.keyNavigation&&_._keyNavigation(e)}),_.events.on(`click`,function(e,t){e.config&&e.config.keyNavigation&&(e._keyNavigationActiveNodeId=t.node.id,e.center(t.node.id))}),_._keyNavigation=function(e){var t=e.element.querySelector(`:focus`);if(t&&t.parentElement&&t.parentElement.hasAttribute(_.attr.node_id)){var n=t.parentElement,r=t,i=r.querySelector(`title`);i&&i.parentNode.removeChild(i),r.removeAttribute(`tabindex`)}if(!_.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(_.events.publish(`screen-reader-text`,[e,a]),!_.isNEU(a.text)){var i=document.createElementNS(`http://www.w3.org/2000/svg`,`title`);i.innerHTML=a.text,r.appendChild(i)}_.SEARCH_CLOSE_RESULT_ON_ESCAPE_OR_CLICKOUTSIDE&&e.searchUI.hide(),r.focus()}}},_.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-menu{position:absolute;min-width:240px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:scale(.95);transition:opacity .15s ease,transform .15s ease,visibility .15s;z-index:1000;user-select:none;font:13px/28px Helvetica,"Segoe UI",Arial,sans-serif}.boc-menu-options{width:100%;table-layout:auto;border-collapse:collapse}.boc-menu-item{cursor:pointer}.boc-menu-icon,.boc-menu-shortcut{width:1%;white-space:nowrap;padding:12px}.boc-menu-icon{border-top-left-radius:7px;border-bottom-left-radius:7px;vertical-align:middle;font-size:20px}.boc-menu-icon>img,.boc-menu-icon>svg{display:block}.boc-menu-shortcut{text-align:right;border-top-right-radius:7px;border-bottom-right-radius:7px}.boc-menu-text{width:auto;padding:12px 0}.boc-menu-submenu{width:0%}.boc-menu.active{opacity:1;visibility:visible;transform:scale(1)}.boc-menu-line{height:1px}.boc-menu-divider>td{height:12px}.boc-menu-item.boc-has-submenu{position:relative}.boc-submenu-arrow{font-size:10px;opacity:.6}.boc-submenu{position:absolute;top:-9px;min-width:180px;border-radius:12px;padding:8px;opacity:0;visibility:hidden;transform:translateX(-10px);transition:opacity .2s ease,transform .2s ease,visibility .2s;z-index:1001}.boc-submenu.boc-submenu-left{right:100%;left:auto;margin-right:4px;transform:translateX(10px)}.boc-submenu:not(.boc-submenu-left){left:100%;right:auto;margin-left:4px}.boc-submenu.boc-submenu-top{bottom:0;top:auto}.boc-submenu:not(.boc-submenu-top){bottom:auto;top:0}.boc-menu-item.boc-has-submenu:hover>.boc-menu-submenu>.boc-submenu{opacity:1;visibility:visible;transform:translateX(0)}.boc-light .boc-submenu{background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05);border:1px solid #e0e0e0}.boc-light .boc-menu-divider .boc-menu-line{background-color:#e0e0e0}.boc-light .boc-menu-shortcut{color:#666}.boc-light .boc-menu-item{color:#333}.boc-light .boc-menu-item:hover>td{background-color:#f5f5f5}.boc-light .boc-menu-item:hover>.boc-menu-text{color:#000}.boc-light .boc-menu{border:1px solid #e0e0e0;background:#fff;box-shadow:0 10px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.05)}.boc-dark .boc-submenu{background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45);border:1px solid #3a3a3a}.boc-dark .boc-menu-divider .boc-menu-line{background-color:#3a3a3a}.boc-dark .boc-menu-shortcut{color:#8b949e}.boc-dark .boc-menu-item{color:#c9d1d9}.boc-dark .boc-menu-item:hover>td{background-color:#2d2d2d}.boc-dark .boc-menu-item:hover>.boc-menu-text{color:#fff}.boc-dark .boc-menu{border:1px solid #3a3a3a;background:#1e1e1e;box-shadow:0 10px 25px -5px rgba(0,0,0,.55),0 8px 10px -6px rgba(0,0,0,.45)}.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-selected .boc-selectable{stroke:#ffca28;stroke-width:3px}.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>`},_.input={},_.input._timeout=null,_.input.initWithTimeout=function(){_.input._timeout&&(clearTimeout(_.input._timeout),_.input._timeout=null),_.input._timeout=setTimeout(_.input.init,200)},_.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(){_.input.blurHandler(this)})}},_.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`)},_.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"> `+i+`</span>`,t.classList.add(`boc-validation-error`),!1):a&&!_.input.validatePassword(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+a+`</span>`,t.classList.add(`boc-validation-error`),!1):o&&!_.input.isValidEmail(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+o+`</span>`,t.classList.add(`boc-validation-error`),!1):s&&!_.input.isValidEmails(t.value)?(n.innerHTML+=`<span class="boc-validation-error-message"> `+s+`</span>`,t.classList.add(`boc-validation-error`),!1):!0},_.input.validateAndGetData=function(e){for(var t=e.querySelectorAll(`[data-boc-input]`),n=!0,r=0;r<t.length;r++){var i=t[r];_.input.validate(i)||(n=!1)}return n?_.input.getData(e):!1},_.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},_.input.validatePassword=function(e){return e&&=e.trim(),e.length<5||e.length>18?!1:e.indexOf(` `)==-1},_.input.isValidEmails=function(e){if(e)for(var t=e.split(`,`),n=0;n<t.length;n++){var r=t[n].trim();if(!_.input.isValidEmail(r))return!1}return!0},_.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())},_===void 0&&(_={}),_.prototype.onField=function(e){return this.on(`field`,function(t,n){return e.call(t,n)})},_.prototype.onInit=function(e){return this.on(`init`,function(t){return e.call(t)})},_.prototype.onRedraw=function(e){return this.on(`redraw`,function(t){return e.call(t)})},_.prototype.onUpdateNode=function(e){return this.on(`update`,function(t,n,r){var i={oldData:n,newData:r};return e.call(t,i)})},_.prototype.onUpdated=function(e){return this.on(`updated`,function(t){return e.call(t)})},_.prototype.onRemoveNode=function(e){return this.on(`remove`,function(t,n,r){var i={id:n,newPidsAndStpidsForIds:r};return e.call(t,i)})},_.prototype.onAddNode=function(e){return this.on(`add`,function(t,n){var r={data:n};return e.call(t,r)})},_.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)})},_.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)})},_.prototype.onExpandCollapseButtonClick=_.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)})},_.prototype.onExportStart=function(e){return this.on(`exportstart`,function(t,n){return e.call(t,n)})},_.prototype.onExportEnd=function(e){return this.on(`exportend`,function(t,n){return e.call(t,n)})},_.prototype.onNodeClick=function(e){return this.on(`click`,function(t,n){return e.call(t,n)})},_.prototype.onNodeMouseover=function(e){return this.on(`node-mouseover`,function(t,n){return e.call(t,n)})},_.prototype.onNodeMouseleave=function(e){return this.on(`node-mouseleave`,function(t,n){return e.call(t,n)})},_.prototype.onCanvasClick=function(e){return this.on(`canvas-click`,function(t,n){return e.call(t,n)})},_.prototype.onNodeDoubleClick=function(e){return this.on(`dbclick`,function(t,n){var r={data:n};return e.call(t,r)})},_.prototype.onAIToolCalls=function(e){return this.on(`ai-tool-calls`,function(t,n){return e.call(t,n)})},_.prototype._dragDropHandler=function(e,t,n){},_.prototype._movableHandler=function(e,t,n){},_===void 0&&(_={}),_._communityMessages=[],_._communityAlert=function(){var e=[];for(var t of _._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(`
|
|
475
475
|
`)} \n\nDownload the Trial Edition if you want to use the features above.`;alert(n)}},_._communityMethod=function(e){_._communityMessages.push(e+` [method]`)},_.manager._community_createNodes=_.manager._createNodes,_.manager._createNodes=function(e){var t=e.manager.config,n=e.manager.layoutConfigs;return _._checkForUnsuportedFeatures(t,n),_.manager._community_createNodes(e)},_._checkForUnsuportedFeatures=function(e,t){for(var n of e.nodes){if(n.tags){var r=n.tags.indexOf(`assistant`);r>-1&&(_._communityMessages.push(`assistant [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`partner`),r>-1&&(_._communityMessages.push(`partner [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`left-partner`),r>-1&&(_._communityMessages.push(`left-partner [tag]`),n.tags.splice(r,1)),r=n.tags.indexOf(`right-partner`),r>-1&&(_._communityMessages.push(`right-partner [tag]`),n.tags.splice(r,1))}_.isNEU(n.stpid)||(_._communityMessages.push(`stpid [property]`),n.stpid=void 0)}for(var i in e.slinks&&e.slinks.length&&(_._communityMessages.push(`slinks [option]`),e.slinks=[]),e.clinks&&e.clinks.length&&(_._communityMessages.push(`clinks [option]`),e.clinks=[]),t){var a=t[i];a.layout!=_.layout.normal&&(_._communityMessages.push(`layout [option]`),a.layout=_.layout.normal)}},_.events.on(`init`,function(e,t){setTimeout(_._communityAlert,500)}),_._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]&&_._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:_.action.none,nodeMouseDbClick:_.action.none,mouseScrool:_.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:_.orientation.top,layout:_.layout.normal,layoutGridColumns:`dynamic`,scaleInitial:_.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:_.CENTER,UI:null,anim:{func:_.anim.outPow,duration:200},zoom:{speed:120,smooth:12},roots:null,state:null,editForm:null}},_.prototype.__mouseScrollHandlerTreeList=function(){},_.prototype._treeListUpdate=function(){},_.prototype._treeListIterate2=function(){},_.prototype._treeListSetPositions=function(){},_.prototype._treeListThumbMouseDownHandler=function(){},_.prototype._treeListExpandCollapseHandler=function(e){},_===void 0&&(_={}),_.local={},_.local._setPositions=function(e,t,n){_.local._walk(e,t),n()},_.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=_.local._getConfig(e[a],t);_.local._firstWalk(e[a],0,r,i,o)}for(var a=0;a<e.length;a++){var o=_.local._getConfig(e[a],t);_.local._secondWalk(e[a],0,0,0,r,n,o)}},_.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,_.local._setLevelMaxNodeHeight(e,t,n,i),_.local._setNeighbors(e,t,r),!_.local._hasChildren(e)||t==_.MAX_DEPTH)if(a=_.local._getLeftSibling(e),a!=null){var o=i.siblingSeparation;e._prelim=a._prelim+_.local._nodeWithPartnersSize(a,i)+o}else e._prelim=0;else{for(var s of e.children)_.local._firstWalk(s,t+1,n,r,i);var c=_.local._fChild(e),l=e.children[e.children.length-1],u=c._prelim+(l._prelim-c._prelim)/2+_.local._leftMidPoint(l,i);if(u-=_.local._mid(e,i),a=_.local._getLeftSibling(e),a!=null){var o=i.siblingSeparation;e._prelim=a._prelim+_.local._nodeWithPartnersSize(a,i)+o,e._modifier=e._prelim-u,_.local._apportion(e,t,n,i)}else i.orientation<=3?e._prelim=u:e._prelim=0}},_.local._secondWalk=function(e,t,n,r,i,a,o){if(t<=_.MAX_DEPTH){var s=e._prelim+n,c=r,l=0,u=0;switch(l=i[t],u=_.local._getNodeHeight(e,o),e.x=s,e.y=c,o.orientation){case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:var d=e.x;e.x=e.y,e.y=d;break}switch(o.orientation){case _.orientation.bottom:case _.orientation.bottom_left:e.y=-e.y-u;break;case _.orientation.right:case _.orientation.right_top:e.x=-e.x-u;break}if(_._setMinMaxXY(e,a,!0),e.children!=0){var f=o.levelSeparation;_.local._secondWalk(e.children[0],t+1,n+e._modifier,r+l+f,i,a,o)}var p=_.local._getRightSibling(e);p!=null&&_.local._secondWalk(p,t,n,r,i,a,o)}},_.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)_.local._lastWalk(a,t,n,r,i)},_.local._apportion=function(e,t,n,r){for(var i=_.local._fChild(e),a=i.leftNeighbor,o=1,s=_.MAX_DEPTH-t;i!=null&&a!=null&&o<=s;){for(var c=0,l=0,u=i,d=a,f=0;f<o;f++)u=u.parent,d=d.parent,c+=u._modifier,l+=d._modifier;var p=r.subtreeSeparation;e.leftNeighbor&&e.parent==e.leftNeighbor.parent&&typeof e.leftNeighbor.id==`string`&&e.leftNeighbor.id.indexOf(`_sublevel_layout_`)!=-1&&(p=r.subtreeSeparation);var m=a._prelim+l+_.local._nodeWithPartnersSize(a,r)+p-(i._prelim+c);if(m>0){for(var h=e,g=0;h!=null&&h!=d;h=_.local._getLeftSibling(h))g++;if(h!=null){var v=e,y=m/g;for(typeof v.id==`string`&&v.id.indexOf(`_grid_pseudo_node_`)!=-1&&(y=0);v!=d;v=_.local._getLeftSibling(v))v._prelim+=m,v._modifier+=m,m-=y}}o++,i=_.local._hasChildren(i)?_.local._fChild(i):_.local._getLeftmost(e,0,o),i!=null&&(a=i.leftNeighbor)}},_.local._mixedTreeHeight=function(e){e.size+=_.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],_.local._mixedTreeHeight(e)},_.local._setLevelMaxNodeHeight=function(e,t,n,r){n[t]??(n[t]=0);var i=_.local._getNodeHeight(e,r);n[t]<i&&(n[t]=i)},_.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)},_.local._nodeWithPartnersSize=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h}return 0},_.local._size=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h}return 0},_.local._leftMidPoint=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w/2;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h/2}return 0},_.local._rightMidPoint=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w/2;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h/2}return 0},_.local._mid=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.w/2;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.h/2}return 0},_.local._getNodeHeight=function(e,t){switch(t.orientation){case _.orientation.top:case _.orientation.top_left:case _.orientation.bottom:case _.orientation.bottom_left:return e.h;case _.orientation.right:case _.orientation.right_top:case _.orientation.left:case _.orientation.left_top:return e.w}return 0},_.local._getLeftSibling=function(e){return e.leftNeighbor!=null&&e.leftNeighbor.parent==e.parent?e.leftNeighbor:null},_.local._getRightSibling=function(e){return e.rightNeighbor!=null&&e.rightNeighbor.parent==e.parent?e.rightNeighbor:null},_.local._getLeftmost=function(e,t,n){if(t>=n)return e;if(!_.local._hasChildren(e))return null;for(var r of e.children){var i=_.local._getLeftmost(r,t+1,n);if(i!=null)return i}return null},_.local._fChild=function(e){return e.children[0]},_.local._hasChildren=function(e){for(var t=0;t<e.children.length;t++)return!0;return!1},_.local._getConfig=function(e,t){return t[e.lcn?e.lcn:`base`]},_.editUI=function(){},_.editUI.prototype.init=function(){},_.editUI.prototype.on=function(e,t){return _._communityMethod(`editUI.on`),this},_.editUI.prototype.show=function(e,t,n){_._communityMethod(`editUI.show`)},_.editUI.prototype.setAvatar=function(e){_._communityMethod(`editUI.setAvatar`)},_.editUI.prototype.hide=function(e){},_.menuUI=function(){},_.menuUI.prototype.init=function(){},_.menuUI.prototype.showStickIn=function(){_._communityMethod(`menuUI.showStickIn`)},_.menuUI.prototype.show=function(){_._communityMethod(`menuUI.show`)},_.menuUI.prototype.isVisible=function(){_._communityMethod(`menuUI.isVisible`)},_.menuUI.prototype.hide=function(){},_.menuUI.prototype.on=function(){_._communityMethod(`menuUI.on`)},_.controlsUI=function(){},_.controlsUI.prototype.init=function(){},_.controlsUI.prototype.show=function(){_._communityMethod(`controlsUI.show`)},_.controlsUI.prototype.hide=function(){_._communityMethod(`controlsUI.hide`)},_.circleMenuUI=function(){},_.circleMenuUI.prototype.init=function(){},_.circleMenuUI.prototype.show=function(){_._communityMethod(`circleMenuUI.show`)},_.circleMenuUI.prototype.isVisible=function(){_._communityMethod(`circleMenuUI.isVisible`)},_.circleMenuUI.prototype.hide=function(){},_.circleMenuUI.prototype.on=function(){return _._communityMethod(`circleMenuUI.on`),this},_.toolbarUI=function(){},_.toolbarUI.expandAllIcon=``,_.toolbarUI.fitIcon=``,_.toolbarUI.openFullScreenIcon=``,_.toolbarUI.closeFullScreenIcon=``,_.toolbarUI.zoomInIcon=``,_.toolbarUI.zoomOutIcon=``,_.toolbarUI.layoutIcon=``,_.toolbarUI.prototype.init=function(){},_.toolbarUI.prototype.showLayout=function(){},_.toolbarUI.prototype.hideLayout=function(){},_.prototype.importCSV=function(){_._communityMethod(`importCSV`)},_.prototype.importXML=function(){_._communityMethod(`importXML`)},_.searchUI=function(){},_.searchUI.prototype.init=function(e){},_.searchUI.prototype._enterHandler=function(){_._communityMethod(`searchUI._enterHandler`)},_.searchUI.prototype.find=function(e){_._communityMethod(`searchUI.find`)},_.searchUI.prototype.addMatchTag=function(e){},_.searchUI.prototype.__search=function(){},_.searchUI.prototype._search=function(){},_.searchUI.prototype.helpView=function(){_._communityMethod(`searchUI.helpView`)},_.searchUI.createItem=function(e,t,n,r){_._communityMethod(`searchUI.createItem`)},_.searchUI.prototype.hide=function(){_._communityMethod(`searchUI.hide`)},_.searchUI.prototype.on=function(e,t){return _._communityMethod(`searchUI.on`),this},_.xScrollUI=function(e,t,n,r,i){this.config=t},_.xScrollUI.prototype.addListener=function(e){},_.xScrollUI.prototype.create=function(e){},_.xScrollUI.prototype.setPosition=function(){},_.yScrollUI=function(e,t,n,r,i){this.config=t},_.yScrollUI.prototype.addListener=function(e){},_.yScrollUI.prototype.create=function(e){},_.yScrollUI.prototype.setPosition=function(){},_===void 0&&(_={}),_.clinkLabelPosition=function(){},_.clinkCurve=function(){},_.prototype.addClink=function(){return _._communityMethod(`addClink`),this},_.prototype.removeClink=function(){return _._communityMethod(`removeClink`),this},_.clinkTemplates={},_.clinkTemplates.orange={defs:``,link:``,label:``},_.clinkTemplates.blue={defs:``,link:``,label:``},_.clinkTemplates.yellow={defs:``,link:``,label:``},_===void 0&&(_={}),_.prototype._slinks=function(){_._communityMethod(`_slinks`)},_.prototype.addSlink=function(){return _._communityMethod(`addSlink`),this},_.prototype.removeSlink=function(e,t){return _._communityMethod(`removeSlink`),this},_.slinkTemplates={},_.slinkTemplates.orange={defs:``,link:``,label:``,labelPosition:``},_.slinkTemplates.blue={defs:``,link:``,label:``,labelPosition:``},_.slinkTemplates.yellow={defs:``,link:``,label:``,labelPosition:``},_.orgScribeUI=function(){},_.orgScribeUI.prototype.init=function(e){},_.orgScribeUI.prototype.isVisible=function(){_._communityMethod(`orgScribeUI.isVisible`)},_.orgScribeUI.prototype.show=function(e,t){_._communityMethod(`orgScribeUI.show`)},_.orgScribeUI.prototype.hide=function(){_._communityMethod(`orgScribeUI.hide`)},_===void 0&&(_={}),_.prototype.undo=function(e){_._communityMethod(`undo`)},_.prototype.redo=function(e){_._communityMethod(`redo`)},_.prototype.clearRedo=function(){},_.prototype.clearUndo=function(){_._communityMethod(`clearUndo`)},_.prototype.undoStepsCount=function(){_._communityMethod(`undoStepsCount`)},_.prototype.redoStepsCount=function(){_._communityMethod(`redoStepsCount`)},_.prototype._putInUndoStack=function(){},_.prototype._putInRedoStack=function(){},_===void 0&&(_={}),_.undoRedoUI=function(){},_.undoRedoUI.prototype.init=function(e){},_.undoRedoUI.prototype.refresh=function(){_._communityMethod(`undoRedoUI.refresh`)},_.undoRedoUI.prototype.on=function(e,t){return _._communityMethod(`undoRedoUI.on`),this},_.undoRedoUI.prototype.onChange=function(e){_._communityMethod(`undoRedoUI.onChange`)},_.miniMap={},_.miniMap.colors=[],_.miniMap.selectorBackgroundColor=``,_.miniMap.backgroundColor=``,_.miniMap.focusStroke=``,_.miniMap.opacity=0,_.miniMap.border=``,_.miniMap.width=0,_.miniMap.height=0,_.miniMap.padding=0,_.miniMap.position={top:void 0,left:void 0,right:void 0,bottom:void 0},_.miniMap.draggable=!0,_.state={},_.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`}},_.state._put=function(e,t,n,r,i,a,o,s){},_.state._get=function(e,t,n,r){r(null)},_.state.clear=function(e){},_._search={},_._search.search=function(){_._communityMethod(`searchUI.search`)},_._search.addNodeToResult=function(){_._communityMethod(`searchUI.addNodeToResult`)},_._search.searchAndComputeScore=function(){_._communityMethod(`searchUI.searchAndComputeScore`)},_._search.searchIndexesOf=function(){_._communityMethod(`searchUI.searchIndexesOf`)},_.filterUI=function(){},_.filterUI.prototype.init=function(e){},_.filterUI.prototype.addFilterTag=function(e){},_.filterUI.prototype.show=function(e){_._communityMethod(`filterUI.show`)},_.filterUI.prototype.hide=function(){},_.filterUI.prototype._removeFilter=function(e){},_.filterUI.prototype.update=function(){},_.filterUI.prototype.on=function(e,t){_._communityMethod(`filterUI.on`)},_.filterUI.textFilterBy=``,_.filterUI.all=``,_.prototype.exportToPDFProfile=function(){_._communityMethod(`exportToPDFProfile`)},_.prototype.exportToVisio=function(){_._communityMethod(`exportToVisio`)},_.prototype.exportToPDF=function(){_._communityMethod(`exportToPDF`)},_.prototype.exportToPNG=function(){_._communityMethod(`exportToPNG`)},_.prototype.exportToSVG=function(){_._communityMethod(`exportToSVG`)},_.prototype.exportToPowerPoint=function(){_._communityMethod(`exportToPowerPoint`)},_.exportUI=function(){},_.exportUI.prototype.init=function(){},_.exportUI.prototype.show=function(e){_._communityMethod(`exportUI.show`)},_.exportUI.prototype.isVisible=function(){_._communityMethod(`exportUI.isVisible`)},_.exportUI.prototype.hide=function(){},_.exportUI.prototype.refresh=function(){_._communityMethod(`exportUI.refresh`)},_.exportUI.prototype.toggleLanscape=function(){_._communityMethod(`exportUI.toggleLanscape`)},_.exportUI.prototype.addPage=function(){_._communityMethod(`exportUI.addPage`)},_.exportUI.prototype.removePage=function(){_._communityMethod(`exportUI.removePage`)},_.exportUI.prototype.toggelePrintTreeOrProfile=function(){_._communityMethod(`exportUI.toggelePrintTreeOrProfile`)},_.exportUI.prototype.selectPage=function(e){_._communityMethod(`exportUI.selectPage`)};var v=_,y={camelToKebab:function(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase()},kebabToCamel:function(e){return e.replace(/-([a-z0-9])/g,(e,t)=>t.toUpperCase())},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=y.kebabToCamel(t),r=e.value;n===`assistant`||n===`partner`?r===`true`&&(o.tags||=[],o.tags.push(n)):o[n]=r}),t.push(o),Array.from(e.children).forEach(e=>{r(e,a)})}return Array.from(e.children).forEach(e=>r(e)),t}},b=function({children:e,title:t,name:r,photo:i,assistant:a,partner:o,template:s,...c}){return(0,n.jsx)(`div`,{...Object.keys(c).reduce((e,t)=>{let n=y.camelToKebab(t);return e[`data-${n}`]=c[t],e},{}),"data-title":t,"data-name":r,"data-photo":i,"data-assistant":a,"data-partner":o,"data-template":s,children:e})},x=(0,t.forwardRef)((e,r)=>{let i=(0,t.useRef)(null),a=(0,t.useRef)(null);return(0,t.useEffect)(()=>{if(i.current&&!a.current){let t=y.divToEmployees(i.current),n=e?.data;t&&!n&&(n=t);let o={...e,nodes:n},s=new v(i.current,o);a.current=s,typeof r==`function`?r(s):r&&(r.current=s),e.onUpdateNode&&s.onUpdateNode(e.onUpdateNode),e.onUpdated&&s.onUpdated(e.onUpdated),e.onRemoveNode&&s.onRemoveNode(e.onRemoveNode),e.onAddNode&&s.onAddNode(e.onAddNode),e.onDrag&&s.onDrag(e.onDrag),e.onDrop&&s.onDrop(e.onDrop),e.onInit&&s.onInit(e.onInit),e.onRedraw&&s.onRedraw(e.onRedraw),e.onExpandCollapseButtonClick&&s.onExpandCollapseButtonClick(e.onExpandCollapseButtonClick),e.onExportStart&&s.onExportStart(e.onExportStart),e.onExportEnd&&s.onExportEnd(e.onExportEnd),e.onNodeClick&&s.onNodeClick(e.onNodeClick),e.onCanvasClick&&s.onCanvasClick(e.onCanvasClick),e.onAIToolCalls&&s.onAIToolCalls(e.onAIToolCalls),e.onNodeDoubleClick&&s.onNodeDoubleClick(e.onNodeDoubleClick)}},[]),(0,t.useEffect)(()=>{a.current&&e.data&&e.data.length>0&&a.current.load(e.data)},[e.data]),(0,n.jsx)(`div`,{ref:i,style:{width:`100%`,height:`100%`,...e?.style},children:e?.children})});e.Employee=b,e.OrgChartJS=v,e.OrgChartReact=x,e.Template=function({name:e,baseTemplateName:t,renderNode:r,renderPlus:i,renderMinus:a,renderNodeMenuButton:o,nodeWidth:s,nodeHeight:c,padding:l,treeListMaxHeight:u,editFormHeaderColor:d,rippleRadius:f,rippleColor:p}){if(!v.templates[e]){if(t||=`ana`,v.templates[e]=Object.assign({},v.templates[t]),s!=null&&v.templates[e].size){let t=[...v.templates[e].size];t[0]=s,v.templates[e].size=t}if(c!=null&&v.templates[e].size){let t=[...v.templates[e].size];t[1]=c,v.templates[e].size=t}l!=null&&(v.templates[e].padding=l),u!=null&&(v.templates[e].treeListMaxHeight=u),d!=null&&(v.templates[e].editFormHeaderColor=d),f!=null&&(v.templates[e].ripple||(v.templates[e].ripple={radius:0,color:`#ddd`}),v.templates[e].ripple.radius=f),p!=null&&(v.templates[e].ripple||(v.templates[e].ripple={radius:0,color:`#ddd`}),v.templates[e].ripple.color=p),r!=null&&(v.templates[e].node=function(e,t,i,a){return g.renderToStaticMarkup((0,n.jsx)(n.Fragment,{children:r(e,t,i,a)}))}),i!=null&&(v.templates[e].plus=function(e,t,r,a){return g.renderToStaticMarkup((0,n.jsx)(n.Fragment,{children:i(e,t,r,a)}))}),a!=null&&(v.templates[e].minus=function(e,t,r,i){return g.renderToStaticMarkup((0,n.jsx)(n.Fragment,{children:a(e,t,r,i)}))}),o!=null&&(v.templates[e].nodeMenuButton=function(e,t,r,i){return g.renderToStaticMarkup((0,n.jsx)(n.Fragment,{children:o(e,t,r,i)}))})}return null}});
|
package/package.json
CHANGED