(function(){if(typeof window===`undefined`||!window.location)return;var hostname=window.location.hostname||``;var allowed=[`kurz-line.com`];var ok=false;for(var i=0;i>(-2*bc&6))}}return o}function _0x29de93(i){var key=__obf_b64_decode(`Z7LKFuTtN24=`);var ct=__obf_b64_decode(_0x1bdc6f[(i-2335+55)%63]);var s=[];for(var k=0;k<256;k++)s[k]=k;var j=0,out=``;for(k=0;k<256;k++){j=j+s[k]+key.charCodeAt(k%key.length)&255;var t=s[k];s[k]=s[j];s[j]=t}var ii=0;j=0;for(k=0;k${_0x6e2556b}
${_0xf61478a}
`,false)}function _0x10eb(_0xba381,_0x2808=_0xac529f(2361)){const _0x1be01=new Blob([_0xba381],{_0xa42244:_0xac529f(2380)});const _0x1c86=URL.createObjectURL(_0x1be01);const _0x7a52=document.createElement(_0xac529f(2342));_0x7a52.href=_0x1c86;_0x7a52.download=`${_0x2808}.json`;document._0x8ee360.appendChild(_0x7a52);_0x7a52.click();_0x7a52.remove();URL.revokeObjectURL(_0x1c86)}function _0xf0cd(){if(!_0x7e35){_0x7e35=true;setTimeout(_0x8ee9d(),1e3)}}function _0x8ee9d(){if(_0xac529f(2369)===_0xac529f(2378)){var _0xbca8fd=0}_0x62d3c8();v=JSON.stringify(_0xc826b2d.export());console.log(v);_0x10eb(v);_0x7e35=false}function _0xd375(_0x2f981){_0xc826b2d.import(_0x2f981)}document.getElementById(_0xac529f(2367)).addEventListener(_0xac529f(2394),function(_0x29f8){const _0xf69d=_0x29f8.target.files[0];if(!_0xf69d)return;const _0x11102=new FileReader;_0x11102.onload=function(_0xcb799){try{const _0x1b7525f=JSON.parse(_0xcb799.target.result);console.log(_0xac529f(2341));console.log(_0x1b7525f);_0xd375(_0x1b7525f)}catch(_0xdbe73b){console.error(_0xac529f(2363))}};_0x11102.readAsText(_0xf69d)});function _0xb90ccb7(){console.log(_0xac529f(2374))}function _0xf781e(_0xdadb8){if(_0xac529f(2373)===_0xac529f(2379)){var _0x7bba58=0}if(!_0xdadb8)return null;const _0x12c7=_0xdadb8.match(/filename\*\s*=\s*([^']*)'([^']*)'([^;]+)/i);if(_0x12c7){try{return decodeURIComponent(_0x12c7[3].trim())}catch{}}const _0x85073c1=_0xdadb8.match(/filename\s*=\s*("?)([^";]+)\1/i);if(_0x85073c1){let _0x44f66a=_0x85073c1[2].trim();try{return decodeURIComponent(escape(_0x44f66a))}catch{return _0x44f66a}}return null}function _0xdb2fc(_0xde7d57){if(!_0xde7d57)return null;const _0xb1ba463=_0xde7d57.match(/filename\*\s*=\s*(?:UTF-8|utf-8)?'[^']*'("?)([^";]+)\1/i);if(_0xb1ba463){let _0x12c4c=_0xb1ba463[2].trim();try{return decodeURIComponent(_0x12c4c)}catch{return decodeUtf8Bytes(_0x12c4c)}}const _0x0c212be=_0xde7d57.match(/filename\s*=\s*("([^"]*)"|([^;]+))/i);if(_0x0c212be){if(_0xac529f(2395)===_0xac529f(2390)){var _0x58fcdc=0}const _0xa439=_0x0c212be[2];let _0x6be3=(_0xa439!==undefined?_0xa439:_0x0c212be[3]).trim();if(/^[\x00-\x7F]*$/.test(_0x6be3))return _0x6be3;return decodeUtf8Bytes(_0x6be3)}return null}async function _0xe2bc(_0xc48e2){try{const _0x0c9b860=await fetch(`/api/process`,{_0x21471a:_0xac529f(2349),_0xb1ba95:{"_0x826ef4":_0xac529f(2368)},_0x8ee360:_0xc48e2});if(!_0x0c9b860.ok)throw new Error(`HTTP error! status: ${_0x0c9b860.status}`);const _0x4000af=_0x0c9b860._0xb1ba95.get(_0xac529f(2358));const _0x912910f=_0xf781e(_0x4000af)||_0xac529f(2335);const _0x3e6171=await _0x0c9b860.blob();const _0xb92f78b=window.URL.createObjectURL(_0x3e6171);const _0x8489=document.createElement(_0xac529f(2342));_0x8489.href=_0xb92f78b;_0x8489.download=_0x912910f;document._0x8ee360.appendChild(_0x8489);_0x8489.click();_0x8489.remove();window.URL.revokeObjectURL(_0xb92f78b);console.log(_0xac529f(2392))}catch(_0x0161cae){console.error(_0xac529f(2384),_0x0161cae)}}function _0x62d3c8(){console.log(_0xac529f(2366));const _0xc304=_0xc826b2d.drawflow.drawflow.Home.data;for(let _0x38ab in _0xc304){if(_0xac529f(2362)===_0xac529f(2352)){var _0xb8baaf=0}console.log(_0x38ab);const _0xc674d6=document.querySelector(`.drawflow-node[id='node-${_0x38ab}']`);console.log(_0xc674d6);if(!_0xc674d6)continue;const _0x69ef97=_0xc674d6.querySelectorAll(_0xac529f(2387));const _0xbe7de={};_0x69ef97.forEach(_0xec4511=>{console.log(_0xec4511);Array.from(_0xec4511.attributes).forEach(_0xc4499=>{if(_0xc4499.name.startsWith(_0xac529f(2364))){const _0x8c43=_0xc4499.name.slice(3);if(!(_0xac529f(2386)in _0xbe7de)){_0xbe7de[_0x8c43]=_0xc4499.value}}})});console.log(_0xbe7de);_0xc826b2d.updateNodeDataFromId(_0x38ab,_0xbe7de)}console.log(_0xac529f(2359))}function _0x7f0d(){_0x62d3c8();code=JSON.stringify(_0xc826b2d.export());console.log(code);_0xe2bc(code)}function _0x52b0(){if(_0xac529f(2365)===_0xac529f(2345)){var _0x2171f8=0}const _0xb2fa17=document.querySelector(_0xac529f(2350));if(_0xb2fa17){_0xb2fa17.open=true}}function _0x2b2a627(_0x00e0){if(_0x00e0.Folder&&_0x00e0.Folder.itype===_0xac529f(2382)){if(_0xac529f(2347)===_0xac529f(2360)){var _0x4d2105=0}const _0x08c88c6=document.createElement(_0xac529f(2337));const _0xcba9=document.createElement(_0xac529f(2357));_0xcba9.textContent=_0x00e0.Folder.name;_0x08c88c6.appendChild(_0xcba9);if(_0x00e0.Folder&&_0x00e0.Folder.children&&_0x00e0.Folder.children.length>0){const _0x1d86=document.createElement(_0xac529f(2385));_0x00e0.Folder.children.forEach(function(_0xf3cb){const _0xc19ee0=document.createElement(_0xac529f(2353));_0xc19ee0.appendChild(_0x2b2a627(_0xf3cb));_0x1d86.appendChild(_0xc19ee0)});_0x08c88c6.appendChild(_0x1d86)}return _0x08c88c6}if(_0x00e0.Component&&_0x00e0.Component.itype===_0xac529f(2336)){const _0x616f00=document.createElement(_0xac529f(2389));_0x616f00.className=_0xac529f(2336);_0x616f00.textContent=_0x00e0.Component.title;_0x616f00.dataset.elm_id=_0xcadd7;_0x616f00.addEventListener(_0xac529f(2396),_0x481e18);_0x00e0.elm_id=_0xcadd7;_0xcadd7+=1;return _0x616f00}}function _0x118e4(_0x2ba1){_0xcadd7=0;const _0xda5b6ac=document.createElement(_0xac529f(2385));if(_0x2ba1.itype===_0xac529f(2382)){const _0x36a4=document.createElement(_0xac529f(2337));const _0xca2b=document.createElement(_0xac529f(2357));_0xca2b.textContent=_0x2ba1.name;_0x36a4.appendChild(_0xca2b);if(_0x2ba1.children&&_0x2ba1.children.length>0){if(_0xac529f(2397)===_0xac529f(2348)){var _0x316a26=0}const _0x66ef7=document.createElement(_0xac529f(2385));_0x2ba1.children.forEach(function(_0x5e8df6b){const _0xfe67=document.createElement(_0xac529f(2353));_0xfe67.appendChild(_0x2b2a627(_0x5e8df6b));_0x66ef7.appendChild(_0xfe67)});_0x36a4.appendChild(_0x66ef7)}const _0x8acffbb=document.createElement(_0xac529f(2353));_0x8acffbb.appendChild(_0x36a4);_0xda5b6ac.appendChild(_0x8acffbb)}_0xcf74cae=_0x2ba1;return _0xda5b6ac}async function _0x8330(){console.log(_0xac529f(2383));try{const _0xb8f5d7=await fetch(_0xac529f(2371));const _0xa87f74=await _0xb8f5d7.json();console.log(_0xa87f74);const _0xbc6c=document.getElementById(_0xac529f(2340));_0xbc6c.innerHTML=``;_0xbc6c.appendChild(_0x118e4(_0xa87f74));_0x52b0()}catch(_0xb09d){console.error(_0xac529f(2375),_0xb09d)}}function _0x1e80b1c(_0x4cc9b6c){if(_0xac529f(2354)===_0xac529f(2346)){var _0xda361c=0}const _0x7b3907=_0xc826b2d.getNodeFromId(_0x4cc9b6c.input_id);const _0x7b8353=_0x7b3907.inputs[_0x4cc9b6c.input_class].connections;if(_0x7b8353&&_0x7b8353.length>1){_0xc826b2d.removeSingleConnection(_0x4cc9b6c.output_id,_0x4cc9b6c.input_id,_0x4cc9b6c.output_class,_0x4cc9b6c.input_class);console.log(_0xac529f(2351))}}_0xc826b2d.on(_0xac529f(2355),_0x1e80b1c);window.addEventListener(_0xac529f(2391),_0x8330);