/* [ kimera framework V 2.7.0 ] [gapkit project beta - 0.7.0 ] */ (k=(()=>{function e(e){if(!window.getComputedStyle)return;let t=getComputedStyle(e),s=t.transform||t.webkitTransform||t.mozTransform,l=s.match(/^matrix3d\((.+)\)$/);return(l=s.match(/^matrix\((.+)\)$/))&&(l=parseFloat(l[1].split(", ")[4]),!isNaN(l))?l:void 0}console.time(":::: [ kimera framework V 2.5.4 ]\n:::: [ wikizone ] https://git.io/fhSzk\n:::: [ k-loader ] page time ");let t=e=>{var t;return s=>{t&&clearTimeout(t),t=setTimeout(e,100,s)}};const s=()=>"ontouchstart"in window,l=()=>{document.documentElement.clientWidth>920?(document.querySelector("html").style.height="",document.querySelector("body").style.height=""):(document.querySelector("html").style.height=window.innerHeight+"px",document.querySelector("body").style.height=window.innerHeight+"px")},a=()=>{let e=[...document.querySelectorAll(".loader")][0];e.classList.remove("active","hide"),e.style.transitionTime="0",e.classList.add("active"),window.onload=(()=>{document.querySelectorAll('body[class*="mode-"]')[0].style.opacity="1",setTimeout(()=>{e.classList.add("off")},150),setTimeout(()=>{e.classList.add("hide"),e.classList.remove("active","off","gpuboost"),console.timeEnd(":::: [ kimera framework V 2.5.4 ]\n:::: [ wikizone ] https://git.io/fhSzk\n:::: [ k-loader ] page time ")},750)})},o=()=>{let e=[...document.querySelectorAll(".grid-y")];if(e.length>0){let t=e.length;for(let s=0;t-1>=s;s++){let t=e[s],l=[...document.querySelectorAll(".grid-y>*")];if(t.className.split("col-")[0]){let e=l.length;for(let s=0;e>s;s++){let e=parseInt(window.getComputedStyle(t).getPropertyValue("grid-auto-rows")),a=parseInt(window.getComputedStyle(t).getPropertyValue("grid-row-gap"));e>0&&e||(e=0),a>0&&a||(a=0);let o=Math.ceil((l[s].getBoundingClientRect().height+a)/(e+a));l[s].style.gridRowEnd="span "+o}}}}},i=()=>{let e=document.querySelector('*[class*="mode-"]'),t=[...document.querySelectorAll('*[target^="outbox#"]')],s=[...document.querySelectorAll(".outbox.active")],l=t.length;for(let e=0;l>e;e++)t[e].onclick=(s=>{s.preventDefault();let l=t[e].getAttribute("target").split("#")[1],a=[...document.querySelectorAll("#"+l)][0],n=a.querySelectorAll('.overlay>div[class^="side-"]')[0].className,r=a.querySelectorAll(".overlay")[0];a.classList.add("gpuboost","active"),n.match("center")?o("center"):n.match("top")?o("top"):n.match("left")?o("left"):n.match("right")?o("right"):n.match("bottom")&&o("bottom"),a.onclick=(e=>{(e.target.className.match("close")||e.target.className.match("accept")||e.target===r)&&(a.classList.add("off"),a.classList.remove("active"),setTimeout(()=>{a.classList.remove("off","active","gpuboost")},300),i(a))})});let a=s.length;for(let e=0;a>e;e++){let t=s[e];t.onclick=(e=>{(e.target.className.match("close")||e.target.className.match("accept")||e.target.classList.contains("overlay"))&&(t.classList.add("off"),t.classList.remove("active"),setTimeout(()=>{t.classList.remove("off","active","gpuboost")},300),i(t))})}let o=t=>{e.classList.add("gpuboost","vfxtransition-in","vfx"+t)},i=(t,s)=>{e.classList.add("vfxtransition-out"),e.classList.remove("vfxtransition-in","vfxtop","vfxleft","vfxbottom","vfxright","vfxcenter"),setTimeout(()=>{t.classList.remove("off","active","gpuboost"),e.classList.remove("vfxtransition-out","gpuboost")},500)};return null},n=()=>{var e=[...document.querySelectorAll('*[class*="autocrop"]')];let t=e.length;for(let s=0;t>s;s++)if(void 0==e[s].style.height||!e[s].style.height){let t=e[s].parentNode.style.height+"px";e[s].style.height=t}return null},r=()=>{var e=[...document.querySelectorAll('*[class*="flange"]')];let t=e.length;for(let s=0;t>s;s++)setTimeout(()=>{let t,l,a,o,i,n,r=e[s],c=r.closest("NAV"),d=r.parentNode,f=!1;r.parentElement.style.position="relative",setTimeout(()=>{if((r.className.match("flange-left")||r.className.match("flange-right"))&&("DIV"==r.tagName?(r.style.height=c.offsetHeight+"px",t=r.parentNode.offsetTop,l=c.offsetTop,positon=l-t,r.style.top=positon+"px"):(r.style.top=0,o=r.offsetHeight/2,i=r.parentNode.offsetHeight/2,a=-1*(o-i),r.style.marginTop=a+"px"),r.className.match("flange-left")&&(n=r.offsetWidth,r.style.marginLeft=-1*n+"px")),r.className.match("flange-top")||r.className.match("flange-bottom")){if("DIV"==r.tagName)t=parseInt(r.parentNode.offsetLeft),l=parseInt(c.offsetLeft),a=l-t,r.style.left=a+"px",r.style.width=c.offsetWidth+"px";else{let e=-1*(parseInt(r.offsetWidth)/2-parseInt(r.parentNode.offsetWidth)/2);r.style.left=e+"px"}r.className.match("flange-top")&&(r.style.top=0,o=-1*r.offsetHeight,r.style.marginTop=o+"px"),r.className.match("flange-bottom")&&(r.style.top=0,i=r.parentNode.offsetHeight,r.style.marginTop=i+"px")}d.className.match("fx-")||r.className.match("fx-")||(d.addEventListener("click",e=>{m(e)},!0),r.addEventListener("mouseleave",e=>{u(e)},!1),document.body.addEventListener("click",e=>{e.target.closest("NAV")||u(e),document.body.onclick=null},!0))},150);let m=t=>{if(t.target.closest("li")&&("a"==t.target.tagName.toLowerCase()||t.target.closest("a")))if(f)f&&(r.classList.add("off"),r.classList.remove("active"),d.classList.add("off"),d.classList.remove("active"),f=!1);else{for(let t=0;t(r.classList.add("off"),r.classList.remove("active"),d.classList.add("off"),d.classList.remove("active"),setTimeout(()=>{r.classList.remove("off","active"),r.previousElementSibling.classList.remove("off","active")},250),f=!1)},200);return null},c=()=>{let e=[...document.querySelectorAll('[class*="card"]')],t=e.length;for(let s=0;t>s;s++){let t=e[s];if(t.firstElementChild.className.match("expansive")){let e=t.firstElementChild,s=[...e.querySelectorAll(".close")][0],l=e.getBoundingClientRect().left+"px",a=e.getBoundingClientRect().top-document.body.getBoundingClientRect().top+"px",o=e.offsetWidth+"px",i=e.offsetHeight+"px",n=document.body.clientWidth+"px",r=document.body.clientHeight+"px";e.parentNode.style.width=o,e.parentNode.style.height=i,e.style.width=o,e.style.height=i;let c=!1;s.addEventListener("click",e=>{c=!0},!0),t.addEventListener("click",t=>{let s=[...e.querySelectorAll(".auto-hide-show>.hidden , .auto-hide-show>.show")];if(e.classList.contains("active")){if(c){setTimeout(()=>{if(e.classList.add("deactivation"),e.style.width=n,e.style.height=r,e.classList.contains("auto-hide-show")){let e=s.length;for(let t=0;e>t;t++){let e=s[t];e.classList.contains("hidden")?(e.classList.add("show"),e.classList.remove("hidden")):e.classList.contains("show")&&(e.classList.add("hidden"),e.classList.remove("show"))}}setTimeout(()=>{e.style.left=l,e.style.top=a,e.style.width=o,e.style.height=i},10),setTimeout(()=>{e.classList.remove("deactivation"),e.classList.add("off"),e.classList.remove("active"),e.style=null,e.style.width=o,e.style.height=i},415)},0)}}else{if(e.classList.add("activation"),e.style.width=n,e.style.height=r,e.style.marginLeft=-e.getBoundingClientRect().left+"px",e.style.marginTop=-e.getBoundingClientRect().top+"px",e.className.match("auto-hide-show")){let e=s.length;for(let t=0;e>t;t++)setTimeout(()=>{let e=s[t];e.classList.contains("hidden")?(e.classList.add("show"),e.classList.remove("hidden")):e.classList.contains("show")&&(e.classList.add("hidden"),e.classList.remove("show"))},250)}setTimeout(()=>{e.classList.remove("off"),e.classList.add("active"),e.classList.remove("activation"),e.style=null,c=!1},415)}},!0)}else t.addEventListener("click",e=>{let s,l,a=[...document.querySelectorAll(".loader")][0];if(e.target instanceof HTMLLinkElement?(s=e.target.getAttribute("href"),l="_self"==e.target.getAttribute("target")):e.target.closest("A")?(s=e.target.parentElement.getAttribute("href"),l="_self"==e.target.parentElement.getAttribute("target")):(s=t.querySelector(".card>a:last-child").getAttribute("href"),l="_self"==t.querySelector(".card>a:last-child").getAttribute("target")),(e=e||window.event).target instanceof HTMLImageElement||e.target.parentElement instanceof HTMLImageElement)return null;l?(a.classList.add("off"),a.classList.remove("hide"),setTimeout(function(){a.classList.add("active"),a.classList.remove("off")},50),setTimeout(function(){"#"===s?location.reload():location.href=s},300)):window.open(s,"_blank")},!0)}},d=()=>{let e=[...document.querySelectorAll("video.background")];for(let t=0;t',(r=document.createElement("div")).innerHTML=htmlcode,t[e].parentNode.insertBefore(r,t[e]),r.outerHTML=r.innerHTML,t[e].parentNode.removeChild(t[e])}else if(h&&"VIDEO"==t[e].tagName){var l=h[1].split("=")[1];htmlcode="',(r=document.createElement("div")).innerHTML=htmlcode,t[e].parentNode.insertBefore(r,t[e]),r.outerHTML=r.innerHTML,t[e].parentNode.removeChild(t[e])}else if(g&&"VIDEO"==t[e].tagName){var a=g[1];htmlcode="',(r=document.createElement("div")).innerHTML=htmlcode,t[e].parentNode.insertBefore(r,t[e]),r.outerHTML=r.innerHTML,t[e].parentNode.removeChild(t[e])}else t[e].setAttribute("controls","true"),t[e].setAttribute("preload","true")}},f=()=>{setTimeout(()=>{let e=[...document.querySelectorAll(".fit-up")],t=e.length;for(let s=0;t>s;s++){let t=e[s];t.parentNode.style.position="relative";let l=t.previousElementSibling.offsetHeight,a=t.previousElementSibling.offsetWidth;t.style.height=l+"px",t.style.width=a+"px",t.style.margin="-"+l+"px 0 -"+l+"px 0"}},10)},m=()=>{let e=[...document.querySelectorAll(".fit-height")],t=e.length;for(let s=0;t>s;s++){let t=e[s];t.parentNode.style.position="relative";let l=t.parentNode.offsetHeight,a=t.parentNode.offsetWidth;t.style.width=a+"px",t.style.height=l+"px"}},u=()=>{function e(){setTimeout(()=>{let e=[...document.querySelectorAll('*[class*="Parallax-["]')],t=e.length;for(let s=0;t>s;s++){let t,l,a=e[s];a.className.match("mask")?(t=a.className.split("lax-[")[1].split("-mask]")[0].split("-")[1],l=a.className.split("lax-[")[1].split("-mask]")[0].split("-")[0]):(t=a.className.split("lax-[")[1].split("]")[0].split("-")[1],l=a.className.split("lax-[")[1].split("]")[0].split("-")[0]);let o=a.offsetHeight,i=a.offsetWidth,n=(a.offsetTop,a.offsetLeft,a.getBoundingClientRect().top+o/2),r=a.getBoundingClientRect().left+i/2,c=document.body.clientHeight,d=document.body.clientWidth,f=-1*(n-c/2),m=-1*(r-d/2),u=1,p=a.children,v=p.length;for(let e=0;v>e;e++){let s,o;o=f/c*(100-++u*l),s=m/d*(100-u*l),p[e].style.transformOrigin="center",a.className.match("xParallax-")?p[e].style.transform="scale("+t+") translate("+s+"px,0px)":a.className.match("yParallax-")?p[e].style.transform="scale("+t+") translate(0px,"+o+"px)":p[e].style.transform="scale("+t+") translate("+s+"px,"+o+"px)"}}},50)}window.addEventListener("touchmove",()=>{checkparallax=setInterval(e(),50)},!1),window.addEventListener("scroll",()=>{e()},!1),e()},p=()=>{let e=[...document.querySelectorAll(".checksize, TABLE, CODE, PRE, OUTPUT")],t=e.length;for(let s=0;t>s;s++){let t=e[s],l=parseInt(t.offsetWidth),a=parseInt(t.parentNode.offsetWidth);if(!t.parentNode.className.match("scroll-x")){let e=t.tagName;if("TABLE"==e||"CODE"==e||"PRE"==e||"OUTPUT"==e){t.style.minWidth;if(l>a){let e=document.createElement("div");t.parentNode.insertBefore(e,t),e.appendChild(t),t.parentNode.classList.add("scroll-x")}else a>=l&&t.parentNode.className.match("checksize")&&(t.parentNode.outerHTML=t.parentNode.innerHTML)}else if(l>a){let e=document.createElement("div");t.parentNode.insertBefore(e,t),e.appendChild(t),t.parentNode.classList.add("scroll-x","checksize")}else a>=l&&t.parentNode.className.match("checksize")&&(t.parentNode.outerHTML=t.parentNode.innerHTML)}}};window.onunload=(()=>{a()}),document.addEventListener("DOMContentLoaded",()=>{a(),l(),(()=>{let t=parseInt(document.body.clientWidth/2.5);if([...document.querySelectorAll(".mode-app")][0]){document.getElementsByTagName("HTML")[0].style.overflow="hidden";let g=[...document.querySelectorAll("body.mode-app")][0],y=[...g.querySelectorAll(".view-controller")][0],L=[...g.querySelectorAll(".view-group")][0],b=[...L.querySelectorAll(".view")],x=[...y.querySelectorAll(".pointer")],A=b.length;if(A>1){let S,T,q,N=[...g.querySelectorAll(".prev-view")],w=[...g.querySelectorAll(".next-view")],k=g.querySelector(".dots"),I=g.querySelector(".steps");k&&(k.closest(".snap-x")||k.closest(".snap-y"))&&(k=null),S=x>0,T=!!k,q=!!I;for(let E=0;A>E;E++){if(b[E].className.match("active")){let e=E,t=b[e].offsetLeft;S&&x[e].classList.add("active"),L.style.transform="translate("+-1*t+"px,0)"}if(q){let e=document.createElement("span");if(I.appendChild(e),e.classList.add("step"),b[E].className.match("active")){let e=E,t=[...I.querySelectorAll(".step")];for(e=0;eA||void 0==x[E]||null==x[E])&&console.log("kimera debug: mode app -> Pointers and views -> pointers don't match the amount of views, make sure there is one view for each pointer!"),x[E].onclick=(e=>{if(e.preventDefault(),b[E].className.match("lock")){x[E].classList.add("border-error");let e=document.createElement("DIV"),t=document.createElement("DIV");e.classList.add("stop-left"),t.classList.add("stop-right"),g.appendChild(e),g.appendChild(t),setTimeout(()=>{x[E].classList.remove("active"),x[E].classList.remove("border-error"),x[E].blur(),g.removeChild(e),g.removeChild(t)},1500)}else{let e;if(M(),x[E].classList.add("active"),b[E].classList.add("active"),E{s=e.target.closest(".view"),e.target,e.target.closest(".snapGroup")||e.target.closest(".snap-x")||e.target.closest(".snap-y")||e.target.closest(".scroll-x")||e.target.closest(".scroll-y")||e.target.closest(".button-number")||e.target.closest(".button-range *")||e.target.closest("a")||e.target.tagName("a")||e.target.className.match("nofx")?(s.setAttribute("draggable","false"),s.removeAttribute("draggable")):s.setAttribute("draggable","true"),n=e.changedTouches[0],c=n.pageX,d=n.pageY,p=parseInt(n.clientX),l=s.previousElementSibling,a=s.nextElementSibling,h=!1,s.className.match("active")||(M(),s.classList.add("active"),D(),C(),H()),o=l?parseInt(-1*s.previousElementSibling.offsetLeft):s.offsetLeft,a?i=parseInt(-1*s.nextElementSibling.offsetLeft):null===a?i=parseInt(-1*s.offsetLeft):null===a&&parseInt(a.nextElementSibling.offsetWidth){n=e.changedTouches[0],v=s.offsetLeft,r=parseInt(v+p+-1*n.pageX),u=n.pageY-d,m=v-r,s.onscroll=(e=>{h=!0});let t=Math.abs(m),o=Math.abs(u);s.hasAttribute("draggable")&&t>o?0>m&&!a||m>0&&!l?(m=0,L.style.transform="translate("+-1*v+"px,0)",s.removeAttribute("draggable")):0==m||h||(u=0,L.style.transform="translate("+-1*r+"px,0)"):(m=0,L.style.transform="translate("+-1*v+"px,0)",s.removeAttribute("draggable"))}),L.ontouchend=(e=>{let l;n=e.changedTouches[0],v=s.offsetLeft,f=parseInt(n.pageX-c),n.pageY,e.target.closest(".snapGroup")||e.target.closest(".snap-x")||e.target.closest(".snap-y")||e.target.closest(".scroll-x")||e.target.closest(".scroll-y")||e.target.closest(".button-number")||e.target.closest(".button-range *")||e.target.closest("a")||e.target.tagName("a")||e.target.className.match("nofx")?(l=0,f=0):l=50,s.hasAttribute("draggable")&&((f*=-1)>t?Y():f>-t?(L.style.transform="translate("+-1*v+"px,0)",s.removeAttribute("draggable")):W()),s.blur(),h=!1}),w){let e=w.length;for(let t=0;e>t;t++)w[t].onclick=(e=>{e.preventDefault(),e.stopPropagation();let t=b.length;for(let e=0;t>e;e++){let t;if(b[e].className.match("active")){if(!b[e+1].className.match("lock"))return void s(t=parseInt(e+1));{let e=document.createElement("DIV");e.classList.add("stop-right"),g.appendChild(e),setTimeout(()=>{g.removeChild(e)},1500)}}function s(e){if(void 0!==b[e]){e>=0&&b.length;{let t=b[e].offsetLeft;M(),L.style.transform="translate("+-1*t+"px,0)",b[e].classList.add("active"),D(),C(),H()}}}}})}else w=null;if(N){let e=N.length;for(let t=0;e>t;t++)N[t].onclick=(e=>{e.preventDefault(),e.stopPropagation();let t=b.length;for(let e=0;t>e;e++){let t;if(b[e].className.match("active")){if(!b[e-1].className.match("lock"))return void s(t=parseInt(e-1));{let e=document.createElement("DIV");e.classList.add("stop-left"),g.appendChild(e),setTimeout(()=>{g.removeChild(e)},1500)}}function s(e){if(void 0!==b[e]){e>=0&&b.length;{let t=b[e].offsetLeft;M(),L.style.transform="translate("+-1*t+"px,0)",b[e].classList.add("active"),D(),C(),H()}}}}})}else N=null;let M=()=>{for(let e=0;e{if(k){let e=[...k.querySelectorAll(".dot")];for(let t=0;t{if(I){let e=[...I.querySelectorAll(".step")];for(let t=0;te;e++)s[e].classList.add("active")}}},D=()=>{for(let t=0;tl||!l?y.style.transform="translate("+-1*l+"px,0)":i>l||(y.style.transform="translate("+-1*(i+o)+"px,0)")}}else S&&x[t].classList.remove("active")},Y=()=>{if(a.className.match("lock")){L.style.transform="translate("+-1*v+"px,0)",s.removeAttribute("draggable");let e=document.createElement("DIV");e.classList.add("stop-right"),g.appendChild(e),setTimeout(()=>{g.removeChild(e)},1500)}else s.removeAttribute("draggable"),s.classList.remove("active"),a.classList.add("active"),L.style.transform="translateX("+i+"px)",D(),C(),H()},W=()=>{if(l.className.match("lock")){L.style.transform="translate("+-1*v+"px,0)",s.removeAttribute("draggable");let e=document.createElement("DIV");e.classList.add("stop-left"),g.appendChild(e),setTimeout(()=>{g.removeChild(e)},1500)}else s.removeAttribute("draggable"),s.classList.remove("active"),l.classList.add("active"),L.style.transform="translateX("+o+"px)",D(),C(),H()}}}}})(),(()=>{var e=[...document.querySelectorAll('[class*="absolute-"]')];let t=e.length;for(let s=0;t>s;s++)e[s].parentNode.className.match("outbox")||e[s].parentNode.className.match("side-")||e[s].parentNode.className.match("view")||(e[s].parentNode.style.position="relative")})(),p(),(()=>{var e=[...document.querySelectorAll(".scroll-x, .scroll-y")];let t=e.length;for(let l=0;t>l;l++){let t;t="undefined"!=typeof InstallTrigger?85:2.5;var s=-1;e[l].onwheel=(a=>{if(a.stopPropagation(),e[l].focus(),++s>=1){let o;o=s>4?s>4&&7>=s?s/2.5:s/3:s/2,e[l].className.match("scroll-x")?"body"==e[l].tagName.toLowerCase()?a.deltaY>0?(document.documentElement.scrollLeft+=o*(t*a.deltaY),e[l].scrollLeft+=o*(t*a.deltaY)):0>a.deltaY&&(document.documentElement.scrollLeft-=o*(t*a.deltaY)*-1,e[l].scrollLeft-=o*(t*a.deltaY)*-1):a.deltaY>0?e[l].scrollLeft+=o*(t*a.deltaY):0>a.deltaY&&(e[l].scrollLeft-=o*(t*a.deltaY)*-1):e[l].className.match("scroll-y")&&(a.deltaY>0?e[l].scrollTop+=o*(t*a.deltaY):0>a.deltaY&&(e[l].scrollTop-=o*(t*a.deltaY)*-1)),setTimeout(()=>s=0,150)}})}})(),(()=>{function e(e,t,s,l){let a=[...e.querySelectorAll(".snaps>*")],o=a.length,i=!1;for(let e=0;o>e;e++)a[e].className.match("active")&&(null!=s&&void 0!=s||(s=a[e]),i=!0,a[e].className.match("lock")?(a[e].classList.remove("active"),t=s,s.classList.add("active")):s=t=a[e]);return i||(t=s,LatestActiveIndex=t),e.closest(".snap-x")&&!0===l&&(l?e.style.width=e.closest(".snap-x").offsetWidth*a.length+"px":l||(e.style.width=t.offsetWidth+"px")),s}function t(e,t){let s=t.length;for(let l=0;s>l;l++){let s=[...e.querySelectorAll(".dots>.dot")][l];s&&(t[l].className.match("active")?s.classList.add("active"):s.classList.remove("active"))}}function l(e,t,s){let l=e.length;for(let a=0;l>a;a++)if(e[a].className.match("active")){s[a].classList.add("active");let e=t.classList;e.contains("snaplabels-top")||e.contains("snaplabels-bottom")?t.style.transform="translateX(-"+s[a].offsetLeft+"px)":e.contains("snaplabels-top-center")||e.contains("snaplabels-bottom-center")?t.style.transform="translateX(-"+(s[a].offsetLeft+s[a].offsetWidth/2)+"px)":e.contains("snaplabels-left")||e.contains("snaplabels-right")?t.style.transform="translateY(-"+s[a].offsetTop+"px)":e.contains("snaplabels-left-center")||e.contains("snaplabels-right-center")?t.style.transform="translateY(-"+(s[a].offsetTop+s[a].offsetHeight/2)+"px)":console.log("kimera debug: snaplabels -> error on label type.")}else s[a].classList.remove("active")}(()=>{let e=[...document.querySelectorAll('*[class*="snap-"]')],t=e.length;for(let s=0;t>s;s++){let t=e[s],l=t.querySelectorAll(".snaps>*"),a=t.querySelectorAll(".dots")[0],o=l.length;if(a)for(let e=0;o>e;e++){let e=document.createElement("span");a.appendChild(e),e.classList.add("dot"),[...a.querySelectorAll(".dot")][0].classList.add("active")}}})();let a=[...document.querySelectorAll(".snap-x")],o=[...document.querySelectorAll(".snap-y")];a&&(xSnapping=(()=>{let o=a.length;for(let c=0;o>c;c++){let o,d,f,m,u,p,v,h,g,y=a[c],L=[...y.querySelectorAll('*[class*="snaptype"]')][0],b=[...y.querySelectorAll(".snaps")][0],x=[...b.querySelectorAll(".snaps>*")],A=!1,S=!1,T=!0,q=!1;b.closest(".snaptype-wide")?q=!0:b.closest(".snaptype-blocks")?q=!1:console.log("console.log='kimera debug: snap-x -> deprecated api or snapstype-xxx not found!'"),b.querySelectorAll(".snaps>.active").length>0?f=e(b,f,null,q):(f=x[0],console.log("console.log='kimera debug: snap-x -> active class not found!'")),null!=y.querySelectorAll('[class*="snaplabels"]')[0]&&(A=!0,p=[...y.querySelectorAll('[class*="snaplabels"]')][0],v=[...y.querySelectorAll('[class*="snaplabels"]>*')]),null!=y.querySelectorAll(".dots")[0]&&(S=!0,Dots=[...y.querySelectorAll(".dots")]),null!=y.querySelectorAll(".next")[0]&&(h=[...y.querySelectorAll(".next")][0]),null!=y.querySelectorAll(".prev")[0]&&(g=[...y.querySelectorAll(".prev")][0]);let N=0;for(let e=0;eo?(x[0].classList.add("active"),l=x[0]):e!=bl-1||s>o?1>e||e>=bl||s>o||o>a?(l=f,x[e].classList.remove("active")):(x[e].classList.add("active"),l=x[e],m=f):(x[bl-1].classList.add("active"),l=x[bl-1]),S&&t(y,x)}let a=parseInt(l.offsetLeft+l.offsetWidth/2-d),i=parseInt(L.offsetLeft),n=parseInt(N-L.offsetLeft);q?a>i?n>a?(b.classList.remove("smooth"),position=l.offsetLeft-d):(b.classList.add("smooth"),l.nextElementSibling?position=l.nextElementSibling.offsetLeft:position=l.offsetLeft):(b.classList.add("smooth"),l.previousElementSibling?position=l.previousElementSibling.offsetLeft:position=a):a>i?n>a?(b.classList.remove("smooth"),position=a):(b.classList.add("smooth"),position=n):(b.classList.add("smooth"),position=i),b.style.transform="translateX(-"+position+"px)",document.ontouchend=r,document.onmouseup=r}function r(t){t.preventDefault(),t.stopPropagation(),document.onmousedown=!0,document.ontouchstart=!0,document.onmousemove=null,document.ontouchmove=null,document.onmouseup=!0,document.ontouchend=!0,f=e(b,f,m,q);let s=parseInt(f.offsetLeft+f.offsetWidth/2),a=parseInt(L.offsetLeft),o=parseInt(N-L.offsetLeft);position=q?f.offsetLeft:s>a?o>s?parseInt(f.offsetLeft+f.offsetWidth/2):o:a,b.classList.add("smooth"),b.style.transform="translateX(-"+position+"px)",clearInterval(u),u=0,A&&l(x,p,v),setTimeout(()=>{b.classList.remove("smooth")},200),setTimeout(()=>{T=!0},1e3)}if(y.offsetWidth,0!=f.offsetLeft&&(b.style.transform="translateX(-"+L.offsetLeft+"px)",A&&l(x,p,v)),s()?(b.ontouchstart=i,b.ontouchmove=n):(b.onmousedown=i,b.onmousedrag=n),y.className.match("autosnap")){y.onmouseover=(e=>{T=!1}),y.onmouseleave=(e=>{T=!0}),y.ontouchstart=(e=>{T=!1}),y.ontouchend=(e=>{T=!0});let s=parseInt(y.className.split("autosnap-[")[1].split("]")[0]);setInterval(()=>{let s=e(b,null,null,q);if(T)if(s.nextElementSibling){s.classList.remove("active"),s.nextElementSibling.classList.add("active"),s=e(b,null,null,q);let a=parseInt(s.offsetLeft+s.offsetWidth/2),o=parseInt(L.offsetLeft),i=parseInt(N-L.offsetLeft);position=q?s.offsetLeft:a>o?i>a?a:i:o,b.classList.add("smooth"),b.style.transform="translateX(-"+position+"px)",A&&l(x,p,v),S&&t(y,x),setTimeout(()=>{b.classList.remove("smooth")},250)}else b.classList.add("smooth"),s.classList.remove("active"),x[0].classList.add("active"),b.style.transform="translateX(-"+L.offsetLeft+"px)",A&&l(x,p,v),S&&t(y,x)},s)}h&&(h.onclick=(()=>{let s=(f=e(b,f,m,q)).nextElementSibling;if(void 0!==s&&null!=s){b.classList.add("smooth");let e=s.offsetLeft;L.classList.contains("snaptype-blocks")?b.style.transform="translateX(-"+(e+s.offsetWidth/2)+"px)":b.style.transform="translateX(-"+e+"px)",f.classList.remove("active"),s.classList.add("active"),A&&l(x,p,v),S&&t(y,x),setTimeout(()=>{b.classList.remove("smooth")},300)}})),g&&(g.onclick=(()=>{let s=(f=e(b,f,m,q)).previousElementSibling;if(void 0!==s&&null!=s){b.classList.add("smooth");let e=s.offsetLeft;L.classList.contains("snaptype-blocks")?b.style.transform="translateX(-"+(e+s.offsetWidth/2)+"px)":b.style.transform="translateX(-"+e+"px)",f.classList.remove("active"),s.classList.add("active"),A&&l(x,p,v),S&&t(y,x),setTimeout(()=>{b.classList.remove("smooth")},300)}}))}}))(),o&&(ySnapping=(()=>{let a=o.length;for(let c=0;a>c;c++){let a,d,f,m,u,p,v,h,g,y=o[c],L=[...y.querySelectorAll('*[class*="snaptype"]')][0],b=[...y.querySelectorAll(".snaps")][0],x=[...b.querySelectorAll(".snaps>*")],A=!1,S=!1,T=!0,q=!1;if(b.closest(".snaptype-wide")?q=!0:b.closest(".snaptype-blocks")?q=!1:console.log("console.log='kimera debug: snap-y -> deprecated api or snapstype-xxx (wide or block) not found!'"),!0===q)for(let e=0;e.active").length>0?f=e(b,f,null,q):(f=x[0],console.log("console.log='kimera debug: snap-y -> active class not found!'")),null!=y.querySelectorAll('[class*="snaplabels"]')[0]&&(A=!0,p=[...y.querySelectorAll('[class*="snaplabels"]')][0],v=[...y.querySelectorAll('[class*="snaplabels"]>*')]),null!=y.querySelectorAll(".dots")[0]&&(S=!0,Dots=[...y.querySelectorAll(".dots")]),null!=y.querySelectorAll(".next")[0]&&(h=[...y.querySelectorAll(".next")][0]),null!=y.querySelectorAll(".prev")[0]&&(g=[...y.querySelectorAll(".prev")][0]);let N=0;for(let e=0;eo?(x[0].classList.add("active"),l=x[0]):e!=bl-1||s>o?1>e||e>=bl||s>o||o>a?(l=f,x[e].classList.remove("active")):(x[e].classList.add("active"),l=x[e],m=f):(x[bl-1].classList.add("active"),l=x[bl-1]),S&&t(y,x)}let o=parseInt(l.offsetTop+l.offsetHeight/2-d),i=parseInt(L.offsetTop),n=parseInt(N-L.offsetHeight);q?o>i?n>o?(b.classList.remove("smooth"),position=l.offsetTop-d):(b.classList.add("smooth"),l.nextElementSibling?position=l.nextElementSibling.offsetTop:position=l.offsetTop):(b.classList.add("smooth"),l.previousElementSibling?position=l.previousElementSibling.offsetTop:position=o):o>i?n>o?(b.classList.remove("smooth"),position=o):(b.classList.add("smooth"),position=n):(b.classList.add("smooth"),position=i),b.style.transform="translateY(-"+position+"px)",document.ontouchend=r,document.onmouseup=r}function r(t){t.preventDefault(),t.stopPropagation(),document.onmousedown=!0,document.ontouchstart=!0,document.onmousemove=null,document.ontouchmove=null,document.onmouseup=!0,document.ontouchend=!0,f=e(b,f,m,q);let s=parseInt(f.offsetTop+f.offsetHeight/2),a=parseInt(L.offsetTop),o=parseInt(N-L.offsetTop);position=q?f.offsetTop:s>a?o>s?parseInt(f.offsetTop+f.offsetHeight/2):o:a,b.classList.add("smooth"),b.style.transform="translateY(-"+position+"px)",clearInterval(u),u=0,A&&l(x,p,v),setTimeout(()=>{b.classList.remove("smooth")},200),setTimeout(()=>{T=!0},1e3)}if(L.offsetHeight,!1!==q&&0==f.offsetTop||(b.style.transform="translateY(-"+L.offsetTop+"px)"),A&&l(x,p,v),s()?(b.ontouchstart=i,b.ontouchmove=n):(b.onmousedown=i,b.onmousedrag=n),y.className.match("autosnap")){y.onmouseover=(e=>{T=!1}),y.onmouseleave=(e=>{T=!0}),y.ontouchstart=(e=>{T=!1}),y.ontouchend=(e=>{T=!0});let s=parseInt(y.className.split("autosnap-[")[1].split("]")[0]);setInterval(()=>{let s=e(b,null,null,q);if(T)if(s.nextElementSibling){s.classList.remove("active"),s.nextElementSibling.classList.add("active"),s=e(b,null,null,q);let a=parseInt(s.offsetTop+s.offsetHeight/2),o=parseInt(L.offsetTop),i=parseInt(N-L.offsetTop);position=q?s.offsetTop:a>o?i>a?a:i:o,b.classList.add("smooth"),b.style.transform="translateY(-"+position+"px)",A&&l(x,p,v),S&&t(y,x),setTimeout(()=>{b.classList.remove("smooth")},250)}else b.classList.add("smooth"),s.classList.remove("active"),x[0].classList.add("active"),b.style.transform="translateY(-"+L.offsetTop+"px)",A&&l(x,p,v),S&&t(y,x)},s)}h&&(h.onclick=(()=>{let s=(f=e(b,f,m,q)).nextElementSibling;if(void 0!==s&&null!=s){b.classList.add("smooth");let e=s.offsetTop;L.classList.contains("snaptype-blocks")?b.style.transform="translateY(-"+(e+s.offsetHeight/2)+"px)":b.style.transform="translateY(-"+e+"px)",f.classList.remove("active"),s.classList.add("active"),A&&l(x,p,v),S&&t(y,x),setTimeout(()=>{b.classList.remove("smooth")},300)}})),g&&(g.onclick=(()=>{let s=(f=e(b,f,m,q)).previousElementSibling;if(void 0!==s&&null!=s){b.classList.add("smooth");let e=s.offsetTop;L.classList.contains("snaptype-blocks")?b.style.transform="translateY(-"+(e+s.offsetHeight/2)+"px)":b.style.transform="translateY(-"+e+"px)",f.classList.remove("active"), s.classList.add("active"),A&&l(x,p,v),S&&t(y,x),setTimeout(()=>{b.classList.remove("smooth")},300)}}))}}))()})(),(()=>{let e=[...document.querySelectorAll('a[href^="#"]')],t=e.length;for(let s=0;t>s;s++){let t=e[s],l=t.getAttribute("target");l||t.parentNode.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation();let s=t.getAttribute("href").split("#")[1];if(s&&!l){let e=document.querySelector('*[name="'+s+'"]');if(e){let t=e.offsetTop,s=e.offsetLeft;setTimeout(t>s?()=>{e.closest("HTML, BODY, .view, .scroll-y, .scroll-x").scrollTop=t}:()=>{e.closest("HTML, BODY, .view, .scroll-y, .scroll-x").scrollLeft=s},100)}}},!0)}})(),c(),(()=>{let e=[...document.querySelectorAll(".tabs-x")],t=e.length;for(let l=0;t>l;l++){let t=e[l],a=[...t.querySelectorAll("nav a")],o=[...t.querySelectorAll(".tabs-x>div")],i=a.length;var s=!1;for(let e=0;i>e;e++){let t=a[e],l=o[e];t.className.match("active")&&l.className.match("active")?(t.classList.add("active"),l.classList.add("active"),t.classList.remove("off"),l.classList.remove("off"),s=!0):(t.classList.remove("active"),l.classList.remove("active"),t.classList.add("off"),l.classList.add("off")),e==i-1&&0==s&&(t.classList.add("off"),l.classList.add("off"),a[0].classList.replace("off","active"),o[0].classList.replace("off","active")),t.onclick=(()=>{if(!t.className.match("active")||t.classList.contains("close")){for(let e=0;i>e;e++)a[e].classList.replace("active","off"),o[e].classList.replace("active","off");return t.classList.replace("off","active"),l.classList.replace("off","active"),!1}})}}})(),(()=>{let e=[...document.querySelectorAll(".tabs-y")],t=e.length;for(let s=0;t>s;s++){let t=[...e[s].querySelectorAll(".tabs-y>div:nth-child(odd)")],l=t.length;for(let e=0;l>e;e++){let s=t[e],a=[...t[e].querySelectorAll(".close")][0];s.className.match("active")?(s.classList.add("active"),s.nextElementSibling.classList.add("active"),s.nextElementSibling.style.height=s.nextElementSibling.scrollHeight+"px"):(s.classList.add("off"),s.nextElementSibling.classList.add("off"),s.nextElementSibling.style.height=0,s.nextElementSibling.classList.add("off")),s.onclick=(e=>{if(e.target!=a){for(let e=0;l>e;e++)t[e].classList.add("off"),t[e].classList.remove("active"),t[e].nextElementSibling.classList.add("off"),t[e].nextElementSibling.classList.remove("active"),t[e].nextElementSibling.style.height="0";s.classList.replace("off","active"),s.nextElementSibling.style.height=s.nextElementSibling.scrollHeight+"px",s.nextElementSibling.classList.replace("off","active")}else e.target==a&&(s.classList.replace("active","off"),s.nextElementSibling.style.height="0",s.nextElementSibling.classList.replace("active","off"))})}}})(),(()=>{let e=[...document.querySelectorAll(".spoiler")],t=e.length;for(let s=0;t>s;s++){let t=[...e[s].querySelectorAll(".toggle")][0];e[s].className.match("off")||t.className.match("off")?(e[s].classList.add("off"),t.classList.add("off"),e[s].classList.remove("active"),t.classList.remove("active")):(e[s].classList.remove("off"),t.classList.remove("off"),e[s].classList.add("active"),t.classList.add("active")),t.addEventListener("click",()=>{l(event)},!0);let l=l=>{"a"==!l.target.tagName.toLowerCase()||l.target.closest("a")||(e[s].className.match("active")?(e[s].classList.add("off"),t.classList.add("off"),e[s].classList.remove("active"),t.classList.remove("active")):(e[s].classList.add("active"),t.classList.add("active"),e[s].classList.remove("off"),t.classList.remove("off")))}}})(),d(),o()},!1),window.addEventListener("load",t(()=>{(()=>{let e=[...document.querySelectorAll('input[type="checkbox"]')];if(e){let t=e.length;for(let s=0;t>s;s++){let t=e[s];t.onclick=(e=>{!0===t.checked?(t.checked=!0,t.setAttribute("checked",!0)):(t.checked=!1,t.setAttribute("checked",!1))})}}let t=[...document.querySelectorAll('input[type="radio"]')];if(t){let e=t.length;for(let s=0;e>s;s++){let e=t[s];e.onclick=(t=>{let s=[...document.querySelectorAll('input[type="radio"][name="'+e.getAttribute("name")+'"]')],l=s.length;for(let e=0;l>e;e++)s[e].checked=!1,s[e].setAttribute("checked",!1);e.checked=!0,e.setAttribute("checked",!0)})}}let l=[...document.querySelectorAll('*[class*="button-number"]')];if(l){let e=l.length;for(let t=0;e>t;t++){let e=l[t],s=[...e.querySelectorAll('input[type="number"]')][0];val=s.getAttribute("value"),min=s.getAttribute("min"),max=s.getAttribute("max");let c=[...e.querySelectorAll("div:first-of-type")][0],d=document.createElement("SPAN");d.classList.add("slide"),c.appendChild(d),c.classList.add("mask");for(let e=min;e<=max;e++){let t=document.createElement("SPAN");t.classList.add("number-["+e+"]");let s=document.createElement("SPAN");s.innerHTML=e,t.appendChild(s),d.appendChild(t)}let f=[...e.querySelectorAll(".mask")][0],m=[...e.querySelectorAll(".slide")][0];e.querySelectorAll('[class*="number-"]'),[...m.querySelectorAll('[class*="number-['+s.value+']"]')][0].classList.add("active");let u,p,v=[...m.querySelectorAll(".slide>.active")][0],h=parseInt(window.getComputedStyle(e,null).getPropertyValue("padding-left")),g=parseInt((f.offsetWidth-h)/2),y=parseInt(-1*(v.offsetLeft-g));function a(e){let t=m.style.transform.replace(/[^\d.]/g,"");return actualposition=-1*t,"touchstart"===e.type?void(u=e.touches[0].clientX-actualposition):(e.preventDefault(),u=e.clientX-actualposition,document.onmousemove=o,void(document.onmouseup=i))}function o(e){e.preventDefault(),p="touchmove"==e.type?e.touches[0].clientX-u:e.clientX-u,m.style.transform="translateX("+p+"px)",n()}function i(t){u=-1*p,startvalueposition=-1*u,document.onmouseup=null,document.onmousemove=null,m.style.transform.replace(/[^\d.]/g,"");let s=parseInt([...m.querySelectorAll(".slide > .active")][0].offsetLeft),l=(e.offsetWidth,s+h/2);m.classList.add("smooth"),m.style.transform="translateX("+-1*l+"px)",setTimeout(()=>{m.classList.remove("smooth")},150)}function n(e,t,s){let l=m.style.transform.replace(/[^\d.]/g,""),a=parseInt(l);actualposition=parseInt(a>0?a:a+s),ActualActive=[...m.querySelectorAll(".slide > .active")][0],widthrange=parseInt(ActualActive.offsetWidth/1.5),y=parseInt(ActualActive.offsetLeft),numbs=[...m.querySelectorAll(".slide>span")],numbslength=numbs.length,I,actualposition>y+widthrange?(ActualActive.nextElementSibling.classList.add("active"),ActualActive.classList.remove("active"),ActualActive=[...m.querySelectorAll(".slide > .active")][0],r()):actualposition .active")][0],r())}m.style.transform="translateX("+y+"px)",r(),m.ontouchstart=a,m.onmousedown=a,m.ontouchmove=o,m.ontouchend=i;let L=[...e.querySelectorAll("span")][0],b=[...e.querySelectorAll("span")][1];function r(){let e=[...m.querySelectorAll(".slide>span")],t=e.length;for(let l=0;t>l;l++){if(e[l].style.opacity="0",e[l].className.match("active")){I=parseInt(l);let t=parseInt([...e[l].querySelectorAll("span")][0].innerHTML);s.setAttribute("value",t)}l==t-1&&(e[I-4]&&(e[I-4].style.opacity="0.03"),e[I-3]&&(e[I-3].style.opacity="0.1"),e[I-2]&&(e[I-2].style.opacity="0.3"),e[I-1]&&(e[I-1].style.opacity="0.6"),e[I].style.opacity="1",e[I+1]&&(e[I+1].style.opacity="0.6"),e[I+2]&&(e[I+2].style.opacity="0.3"),e[I+3]&&(e[I+3].style.opacity="0.1"),e[I+4]&&(e[I+4].style.opacity="0.03"))}}L.addEventListener("click",()=>{let e=[...m.querySelectorAll(".slide>.active")][0];e.classList.remove("active"),setTimeout(()=>{e.previousElementSibling.classList.add("active")},20),setTimeout(()=>{let t=parseInt([...m.querySelectorAll(".slide>.active")][0].offsetLeft),s=parseInt(e.offsetWidth/2),l=parseInt(-1*(t+s));m.classList.add("smooth"),m.style.transform="translateX("+l+"px)",setTimeout(()=>{m.classList.remove("smooth")},150),r()},200)},!0),b.addEventListener("click",()=>{let e=[...m.querySelectorAll(".slide>.active")][0];e.classList.remove("active"),setTimeout(()=>{e.nextElementSibling.classList.add("active")},20),setTimeout(()=>{let t=parseInt([...m.querySelectorAll(".slide>.active")][0].offsetLeft),s=parseInt(e.offsetWidth/2),l=parseInt(-1*(t+s));m.classList.add("smooth"),m.style.transform="translateX("+l+"px)",setTimeout(()=>{m.classList.remove("smooth")},150),r()},200)},!0)}}let c=[...document.querySelectorAll('*[class*="button-file"]')];if(c){let e=c.length;for(let t=0;e>t;t++){let e=c[t];e.onchange=(()=>{let t=[...e.querySelectorAll('input[type="file"]')][0],s=[...e.querySelectorAll("P")][0],l=parseInt(t.getAttribute("maxlength")),a=parseInt(t.getAttribute("minlength")),o=t.getAttribute("size"),i=t.getAttribute("maxsize"),n=t.getAttribute("accept"),r=t.files.length;if(a||(a=0),a&&a>r)return s.closest("[class*='button-file']").classList.add("border-error"),void(s.innerHTML="✖ | quantity wrong: "+r+" of min: "+a+"");if(l&&r>l)return s.closest("[class*='button-file']").classList.add("border-error"),void(s.innerHTML="✖ | quantity wrong: "+r+" of max: "+l+"");if(o)for(let e=0;r>e;e++){let l=(Math.floor(t.files[e].size/1e3)/1024).toFixed(2);if(l>o)return s.closest("[class*='button-file']").classList.add("border-error"),void(s.innerHTML="✖ | file overload: "+l+"mb - max: "+o+"mb")}if(i){let e=0;for(let s=0;r>s;s++)e+=parseFloat((Math.floor(t.files[s].size/1e3)/1024).toFixed(2));if(e>i)return s.closest("[class*='button-file']").classList.add("border-error"),void(s.innerHTML="✖ | out of space: "+e+"mb - max: "+i+"mb")}if(n)for(let e=0;r>e;e++){let l=t.files[e].name.match(/\.([^\.]+)$/)[1]+"",a=[...n.split(", ")].join(" ").split(" ");for(let e=0;e")}if(s.closest("[class*='button-file']").classList.remove("border-error"),2>r)selected=t.value.split("\\")[t.value.split("\\").length-1]+"",s.classList.add("active"),s.innerHTML="✔ | "+selected,t.setAttribute("value",t.value),setTimeout(()=>{s.classList.remove("active")},150);else{let e=Math.floor(999*Math.random()),l='\n
\n
\n
\n\n
\n\n \n\n
\n
\n
\n
\n
\n
\n
\n
\n\n
\n\n
\n
\n
';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",l);let a=document.getElementById("filelist-"+e).querySelectorAll(".filegroup")[0],o=[];for(let e=0;r>e;e++){let s=t.files[e].name.split(".")[0]+"",l=(Math.floor(t.files[e].size/1e3)/1024).toFixed(2)+"",a=t.files[e].name.match(/\.([^\.]+)$/)[1]+"";o.push('

'+s+'

'+a+'

'+l+"mb

")}let i=o.join(" ")+"";a.innerHTML=i,s.innerHTML="[ ✔ ] "+r+' files ready  open list ☰',t.setAttribute("value",t.value),s.classList.add("active")}})}}let d=[...document.querySelectorAll(".button-range")];if(d){let e=d.length;for(let t=0;e>t;t++){d[t].querySelectorAll(".slider");let e=[...d[t].querySelectorAll("input")],s=[...d[t].querySelectorAll(".monitor")][0];s.classList.add("off");let l=e.length;for(let t=0;l>t;t++){let l,a,o,i=e[t],n=+i.getAttribute("min"),r=+i.getAttribute("max"),c=+i.getAttribute("value"),d=Math.round(i.offsetWidth),g=[...i.closest(".sliders").querySelectorAll("B")][t],y=i.getAttribute("type");if(l=y.match("float")?2:0,(""+i.step).match("%")){a=1;let e=(""+i.step).split("%")[0];o=parseFloat(e)}else a=0,o=parseFloat(i.step);let L,b,x=p(n,r,c);function f(e){let t=Math.round(g.offsetLeft);if("touchstart"===e.type){let s=e.touches[0].clientX;L=s-t}else{e.preventDefault();let s=e.clientX;L=s-t,document.onmousemove=m,document.onmouseup=u}}function m(e){let f,m,u=[...i.closest(".sliders").querySelectorAll("b")][t-1];u?(f=parseInt(u.offsetLeft),m=parseInt(p(0,d,f))):m=-1;let y,x,A=[...i.closest(".sliders").querySelectorAll("b")][t+1];if(A?(y=parseInt(A.offsetLeft),x=parseInt(p(0,d,y))):x=101,e.preventDefault(),(b="touchmove"==e.type?e.touches[0].clientX-L:e.clientX-L)>-1&&d+1>b){let e,t;if(i.step)if(a){let e=(+d*o/100).toFixed(l),t=-1;for(let s=n;r>s;s++){let s=e*++t;if(rangemin=s-e/2,rangemax=s+e/2,b>rangemin&&bm&&x>s&&S(s,l)}}}else{e=p(0,d,b),t=v(n,r,e);let s=0;for(let l=n;r>l;l++){let l=+(n-o+o*++s);if(l>r)return;rangemax=l+o/2,t>l-o/2&&tm&&x>e&&S(e,c))}}else e=p(0,d,b),t=v(n,r,e),e>m&&x>e&&S(e,t);function S(e,t,l){if(g.style.left=e+"%",s.style.left=e+"%",l>0)s.innerHTML="

"+t+"

",i.setAttribute("value",t),c=i.value;else{let e=Math.ceil(t);s.innerHTML="

"+e+"

",i.setAttribute("value",e),c=i.value}s.classList.add("active"),s.classList.remove("off")}h()}}function u(e){setTimeout(()=>{s.classList.add("off"),setTimeout(()=>{s.classList.remove("active")},150)},400),document.onmouseup=null,document.onmousemove=null}function p(e,t,s){return(+(s-e)/(e-t)*-100).toFixed(l)}function v(e,t,s){return(-1*((e-t)*s/100-e)).toFixed(l)}function h(){let e=[...i.closest(".sliders").querySelectorAll("input+span")],t=e.length;for(let s=0;t>s;s++){let t,l,a=[...i.closest(".sliders").querySelectorAll("B")][s-1],o=[...i.closest(".sliders").querySelectorAll("B")][s];t=a?p(0,d,a.offsetLeft):0,l=p(0,d,o.offsetLeft);let n=v(0,d,t);getFinishPx=v(0,d,l),widthDifference=getFinishPx-n,e[s].style.width=widthDifference+"px",e[s].style.left=t+"%"}}g.style.left=x+"%",h(),g.ontouchstart=f,g.onmousedown=f,g.ontouchmove=m,g.ontouchend=u}}}let g=[...document.querySelectorAll('*[class*="button-select"]')];if(g){let e=g.length;for(let t=0;e>t;t++){let e=g[t],s=[...e.getElementsByTagName("p")][0],l=Math.floor(9999*Math.random());e.setAttribute("target","outbox#select-"+l);let a='\n
\n
\n
\n\n
\n\n \n\n
\n
\n
\n
\n
\n
\n
\n
\n \n
\n
\n Close\n
\n
\n\n
\n \n
\n
\n
';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",a);let o=document.getElementById("select-"+l).querySelector(".optiongroup"),i=[...document.getElementById("select-"+l).querySelectorAll(".selectorbox a.accept")][0],n=[...e.querySelectorAll("OPTGROUP")],r=n.length;for(let e=0;r>e;e++){let t=n[e],s=t.getAttribute("label"),l=[...t.querySelectorAll("option")];s=null==s?"

":"

"+t.getAttribute("label")+"

";let a=[],i=l.length;for(let e=0;i>e;e++)a.push(''+l[e].value+"");let r,c=a.join(" ")+"";r="

"==s?'\n
\n
\n '+c+"\n
":'
\n '+s+'\n
\n
\n '+c+"\n
",o.insertAdjacentHTML("beforeEnd",r)}let c=[...o.querySelectorAll(".options a")],d=c.length;for(let e=0;d>e;e++){let t=c[e];t.addEventListener("click",()=>{for(let e=0;d>e;e++)c[e].classList.remove("active");t.classList.add("active"),i.innerHTML="Accept",i.onclick=(()=>{let e=t.getAttribute("data-option"),a=document.querySelectorAll('.button-select[target="outbox#select-'+l+'"]>select')[0];s.innerHTML=e,a.setAttribute("value",""+e),setTimeout(()=>{i.innerHTML="Close"},300)})},!0)}}}let y=[...document.querySelectorAll('*[class*="button-time"]')];if(y){let e=y.length;for(let t=0;e>t;t++){let e=y[t],l=Math.floor(999*Math.random());e.setAttribute("target","outbox#times-"+l);let a='\n
\n
\n
\n\n
\n\n \n\n
\n\n \n\n
\n\n
\n
\n
\n

12

\n

:

\n

15

\n
\n
\n

AM

\n

PM

\n
\n
\n
\n\n
\n
\n\n
\n
\n\n
\n\n
\n\n
\n\n
\n\n
\n \n
\n\n
\n\n
\n
\n
';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",a);let o=document.getElementById("times-"+l),i=[...o.querySelectorAll(".am")][0],n=[...o.querySelectorAll(".pm")][0],r=[...o.querySelectorAll(".hours>p")][0];Minutes=[...o.querySelectorAll(".minutes>p")][0],Clock=[...o.querySelectorAll(".clock")][0],RayHours=[...o.querySelectorAll(".rayline-hours")][0],RayMinutes=[...o.querySelectorAll(".rayline-minutes")][0],ClockPivot=[...o.querySelectorAll(".pivot")][0],Accept=[...o.querySelectorAll("a.accept")][0],i.onclick=(()=>{if(!i.className.match("active")){i.classList.add("active"),i.classList.remove("off"),n.classList.add("off"),n.classList.remove("active");let e=parseInt(r.innerHTML);0==e&&(e="12"),e>12&&(e>22?e>22&&(e-=12):e="0"+(e-12)),r.innerHTML=""+e}}),n.onclick=(()=>{if(!n.className.match("active")){i.classList.add("off"),i.classList.remove("active"),n.classList.add("active"),n.classList.remove("off");let e=parseInt(r.innerHTML);12==e?e="00":e+=12,r.innerHTML=""+e}});let c=-90;RayHours.style.transform="rotate("+c+"deg)";let d,f,m,u=0;function L(e){e.preventDefault(),e.stopPropagation();let t=ClockPivot.getBoundingClientRect();d={x:window.scrollX+t.left,y:window.scrollY+t.top},console.log(d.x+": X // Y:"+d.x),e.target==RayHours?(f=!0,m=!1):e.target==RayMinutes&&(f=!1,m=!0),s()?document.ontouchmove=b:document.onmousemove=b}function b(e){let t,l,a;if(s()?(t=e.touches[0].clientX-d.x,l=e.touches[0].clientY-d.y,a=180*Math.atan2(l,t)/Math.PI):(t=e.pageX-d.x,l=e.pageY-d.y,a=180*Math.atan2(l,t)/Math.PI),f){let e=-180,t=180,s=parseInt((a-e)/(e-t)*-100),l=[];for(let e=0;14>e;e++){let t=parseInt(100*e/12);l.push(t)}let o=l.length;for(let a=0;o>a;a++)if(s>l[a-1]&&so&&10>o?o=a+9:o>9||(o="0"+o):0==o?o="00":0>o&&10>o?o=a+21:o>9||(o+=12),r.innerHTML=""+o}}else if(m){let e=-180,t=180,s=parseInt((a-e)/(e-t)*-100),l=[];for(let e=0;62>e;e++){let t=parseInt(100*e/60);l.push(t)}let o=l.length;for(let a=0;o>a;a++)if(s>l[a-1]&&so&&(o=a+45),60==o?o="00":o>9||(o="0"+o),Minutes.innerHTML=""+o}}document.onmouseup=x}function x(e){document.ontouchmove=null,document.onmousemove=null,document.onmouseup=null}RayMinutes.style.transform="rotate("+u+"deg)",s()?(RayHours.ontouchstart=L,RayHours.ontouchend=x,RayMinutes.ontouchstart=L,RayMinutes.ontouchend=x):(RayHours.onmousedown=L,RayMinutes.onmousedown=L),Accept.addEventListener("click",t=>{let s=r.innerText,l=Minutes.innerText;[...e.querySelectorAll(".button-time>p")][0].innerHTML=s+":"+l,[...e.querySelectorAll(".button-time>input")][0].setAttribute("value",s+":"+l)},!0)}}let A=[...document.querySelectorAll("*[class*=button-date]")];if(A){let e=A.length;for(let t=0;e>t;t++){let e=A[t],s=[...e.getElementsByTagName("p")][0],l=Math.floor(999*Math.random());e.setAttribute("target","outbox#datepicker-"+l);let a='\n
\n
\n
\n\n
\n\n \n\n
\n\n
\n\n
\n  \n \n  \n
\n\n
\n\n
\n\n
\n  \n \n  \n
\n\n
\n\n
\n\n
\n\n
\n
\n\n
\n
\n\n
\n\n
\n\n
\n
\n\n
\n
\n\n
\n\n
\n \n
\n\n
\n\n
\n
\n
';document.getElementsByTagName("BODY")[0].insertAdjacentHTML("beforeEnd",a);let o,i,n=[...document.querySelectorAll("#datepicker-"+l)][0],r=[...n.querySelectorAll(".year_list")][0],c=[...n.querySelectorAll(".month_list")][0],d=[...n.querySelectorAll(".weekday_list>div")][0],f=[...n.querySelectorAll(".day_list>div")][0],m=e.className+"";e.className.match("EUR")?(o=!1,i=!0):(o=!0,i=!1);let u,p=[...m.split(" ")],v=["DMY","DYM","MYD","MDY","YDM","YMD"],h=v.length;for(let e=0;h>e;e++)-1!==p.indexOf(v[e])&&(u=""+v[e]);let g=[];for(let e=1900;2050>=e;e++)g.push("

"+e+"

");g=g.join(" ")+"",r.innerHTML=g;let y,L=[],b=["January","February","March","April","May","June","July","August","September","October","November","December"];for(let e=0;11>=e;e++)L.push("

"+b[e]+"

");L=L.join(" ")+"",c.innerHTML=L,i?i&&(y=[],dayweekArray=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]):(y=[],dayweekArray=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]);for(let e=0;e

'+dayweekArray[e]+"

");y=y.join(" ")+"",d.innerHTML=y;let x=new Date,S=(x.toUTCString(),x.getUTCFullYear()),T=x.getUTCMonth(),q=x.getUTCDate(),N=(x.getUTCDay(),(e,t)=>{let s=new Date(Date.UTC(parseInt(t),parseInt(e),1)),l=parseInt(s.getDay());return firstDayString=s.toUTCString(),l}),w=(e,t)=>(dayQuantity=parseInt(new Date(Date.UTC(parseInt(t),parseInt(e+1),0)).getDate()),dayQuantity),k=[...r.querySelectorAll("p")],I=n.querySelector(".years>.prev"),E=n.querySelector(".years>.next"),M=k.length;for(let e=0;M>e;e++)k[e].classList.add("off","hide"),k[e].textContent==S&&(k[e].classList.remove("off","hide"),k[e].classList.add("active"));I.onclick=(()=>{for(let e=0;M>e;e++)if(k[e].className.match("active")&&k[e-1]){k[e].classList.replace("active","off"),k[e].classList.add("hide"),k[e-1].classList.add("active"),k[e-1].classList.remove("off","hide");let t=[...n.querySelectorAll(".day.active")][0].textContent;return void W("","",t)}}),E.onclick=(()=>{for(let e=0;M>e;e++)if(k[e].className.match("active")&&k[e+1]){k[e].classList.replace("active","off"),k[e].classList.add("hide"),k[e+1].classList.add("active"),k[e+1].classList.remove("off","hide");let t=[...n.querySelectorAll(".day.active")][0].textContent;return void W("","",t)}});let H=[...c.querySelectorAll("p")],C=n.querySelector(".months>.prev"),D=n.querySelector(".months>.next"),Y=H.length;for(let e=0;Y>e;e++)H[e].classList.add("off","hide"),e==T&&(H[e].classList.remove("off","hide"),H[e].classList.add("active"));C.onclick=(()=>{for(let e=0;Y>e;e++)if(H[e].className.match("active")&&H[e-1]){H[e].classList.replace("active","off"),H[e].classList.add("hide"),H[e-1].classList.add("active"),H[e-1].classList.remove("off","hide");let t=[...n.querySelectorAll(".day.active")][0].textContent;return void W("","",t)}}),D.onclick=(()=>{for(let e=0;Y>e;e++)if(H[e].className.match("active")&&H[e+1]){H[e].classList.replace("active","off"),H[e].classList.add("hide"),H[e+1].classList.add("active"),H[e+1].classList.remove("off","hide");let t=[...n.querySelectorAll(".day.active")][0].textContent;return void W("","",t)}}),n.addEventListener("click",e=>{let t=[...n.querySelectorAll(".day_list .day")],s=t.length;for(let l=0;s>l;l++)t[l].onclick=(()=>{for(let e=0;s>e;e++)t[e].classList.remove("active"),t[e].classList.add("off");e.target.classList.replace("off","active")})},!0);let W=(t,s,a)=>{if(!t||!s||""===t||""===s)switch(t=document.querySelector("#datepicker-"+l+" .year_list .active").textContent,s=document.querySelector("#datepicker-"+l+" .month_list .active").textContent){case"January":s=0;break;case"February":s=1;break;case"March":s=2;break;case"April":s=3;break;case"May":s=4;break;case"June":s=5;break;case"July":s=6;break;case"August":s=7;break;case"September":s=8;break;case"October":s=9;break;case"November":s=10;break;case"December":s=11;break;default:console.log("error: no mouth active")}let o,r,c,d,m;if(i){o=N(s,t)-1,r=w(s,t),d=[],m=parseInt((c=41)-o+1);for(let e=-1*(o+6);m>=e;e++){let t=e,s="off",l="";1>t||t>9||(t="0"+e),0>=t||e>r?(t="░",l='style="opacity:0.4"',s="off disabled"):t!=q||a?t==a&&(s="active",l=""):(s="active",l=""),d.push('

'+t+"

")}}else{o=N(s,t),r=w(s,t),d=[],m=parseInt((c=41)-o+1);for(let e=-1*(o-1);m>=e;e++){let t=e,s="off",l="";1>t||t>9||(t="0"+e),0>=t||e>r?(t="░",l='style="opacity:0.4"',s="off disabled"):t!=q||a?t==a&&(s="active",l=""):(s="active",l=""),d.push('

'+t+"

")}}d=d.join(" ")+"",f.innerHTML=d,e.className.match("-compact")&&((()=>{let e=[...n.querySelectorAll(".day_list .day")].slice(0,7),t=0;for(let s=0;6>=s;s++)"░"===e[s].textContent&&t++;if(7===t)for(let t=0;6>=t;t++)e[t].parentNode.innerHTML=""})(),(()=>{let e=[...n.querySelectorAll(".day_list .day")].slice(-7),t=0;for(let s=0;6>=s;s++)"░"===e[s].textContent&&t++;if(7===t)for(let t=0;6>=t;t++)e[t].parentNode.innerHTML=""})())};W(S,T),[...n.querySelectorAll(".accept")][0].onclick=(()=>{let e,t=document.querySelector("#datepicker-"+l+" .day_list .active").textContent;switch(document.querySelector("#datepicker-"+l+" .month_list .active").textContent){case"January":e="01";break;case"February":e="02";break;case"March":e="03";break;case"April":e="04";break;case"May":e="05";break;case"June":e="06";break;case"July":e="07";break;case"August":e="08";break;case"September":e="09";break;case"October":e="10";break;case"November":e="11";break;case"December":e="12";break;default:console.log("error: no mounth active")}let a,o=document.querySelector("#datepicker-"+l+" .year_list .active").textContent;a="DMY"==u?t+"/"+e+"/"+o:"DYM"==u?t+"/"+o+"/"+e:"MYD"==u?e+"/"+o+"/"+t:"MDY"==u?e+"/"+t+"/"+o:"YDM"==u?o+"/"+t+"/"+e:o+"/"+e+"/"+t,document.querySelector('[target="outbox#datepicker-'+l+'"]').querySelector("input").setAttribute("value",o+"/"+e+"/"+t),s.innerHTML=a})}}})(),i(),u(),n(),m(),f(),r(),(()=>{let e=[...document.querySelectorAll('[target*="_self"], [target*="_top"], [target*="_inside]"')],t=e.length;for(let s=0;t>s;s++){let t=e[s];t.onclick=(e=>{e.preventDefault();let s=[...document.querySelectorAll(".loader")][0],l=t.getAttribute("href"),a=t.getAttribute("disabled");s.querySelector(".spinner-box").classList.add("hide"),s.classList.add("off"),a||(s.classList.remove("hide"),setTimeout(()=>{s.classList.add("gpuboost","active"),s.classList.remove("off")},10),setTimeout(()=>{"#"===l?location.reload():location.href=l},250))})}})(),(()=>{if(document.querySelector('script[src="//cdnjs.cloudflare.com/ajax/libs/less.js/3.9.0/less.min.js"]')||document.querySelector('script[src="https://cdnjs.cloudflare.com/ajax/libs/less.js/3.9.0/less.min.js"]')){console.log("\n\n:::: [⚠ kimera alert]: LessJs via simple script\n:::: -> if you are using lessjs via script remember to put async='true' or something will not work!\n:::: -> Comment the Less script and load the compiled css parameters into a css file.\n\n:::: -> Remember that even if excellent, the script version is extremely slow!\n:::: We recommend using compilation via node js or php.\n:::: via php: shorturl.at/apy09\n:::: via node: shorturl.at/esSUY\n\n");let e=document.querySelector('style[id^="less:').innerHTML;alert("\n\n[⚠ kimera alert]: LessJs Finished - you can copy the theme and deactivate less.js\n\n"),prompt("Compiled code:",""+e)}})(),(()=>{let e=[...document.querySelectorAll('[class*="fx-["]')],t=e.length;for(let s=0;t>s;s++){let t,l,a,o,i,n,r,c,d,f,m,u,p=e[s].className.split("fx-[")[1].split("]")[0];if(p.match("on:")&&(a=""+p.split("on:")[1].split(";")[0]),p.match("target:")){let e=p.split("target:")[1].split(";")[0]+"";t=[...document.querySelectorAll('[class*="target-'+e+'"]')]}else t=[e[s]];if(p.match("trigger:")){let e=p.split("trigger:")[1].split(";")[0]+"";l=[...document.querySelectorAll('[class*="trigger-'+e+'"]')]}else l=[e[s]];p.match("in:")?(o=""+p.split("in:")[1].split(";")[0].split(",")[0],i=""+p.split("in:")[1].split(";")[0].split(",")[1],n=""+p.split("in:")[1].split(";")[0].split(",")[2],i||(i=1),n||(n=1)):console.log='kimera debug: fx -> "in" not found!',p.match("out:")?(r=""+p.split("out:")[1].split(";")[0].split(",")[0],c=""+p.split("out:")[1].split(";")[0].split(",")[1],d=""+p.split("out:")[1].split(";")[0].split(",")[2],c||(c=1),d||(d=1)):r=!1, f=!p.match("toggle:")||"true"==(f=""+p.split("toggle:")[1].split(";")[0]),m=!!p.match("hide:")&&""+p.split("hide:")[1].split(";")[0],u=!!p.match("reset:")&&"true"==(u=""+p.split("reset:")[1].split(";")[0]);let v=l.length;for(let e=0;v>e;e++){let s=t.length;for(let p=0;s>p;p++)switch(m&&!t[p].className.match("fx-active")&&(t[p].style.opacity=0),a){case"unloadDoc":console.log("kimera debug: fx -> unload not can be used in this version of fx. Sorry.");break;case"loadDoc":setTimeout(()=>{setTimeout(()=>{t[p].classList.add("fx-active",o),t[p].classList.remove("fx-off",r),setTimeout(()=>{u&&t[p].classList.remove(o)},i)},n)},100);break;case"scroll":console.log(screen.height),t[p].offsetTop{s(e)},!0);let s=e=>{let s=parseInt(document.documentElement.scrollTop+screen.height-screen.height/10),l=parseInt(document.documentElement.scrollTop+screen.height/10),a=parseInt(document.body.scrollTop+screen.height-screen.height/10),d=parseInt(document.body.scrollTop+screen.height/10),m=parseInt(t[p].offsetTop);t[p].className.match("fx-active")?(l>m||m>s||d>m||m>a)&&t[p].className.match("fx-off")&&f&&(t[p].classList.add(r),t[p].classList.remove(o),t[p].classList.add("fx-active"),t[p].classList.remove("fx-off"),u&&setTimeout(()=>{t[p].classList.remove(r)},c)):(s>m&&m>l||a>m&&m>d)&&setTimeout(()=>{t[p].classList.add(o),t[p].classList.remove(r),setTimeout(()=>{u?t[p].classList.remove(o):(t[p].classList.add("fx-off"),t[p].classList.remove("fx-active"))},i)},n+c)};break;case"hover":l[e].addEventListener("mouseover",e=>{v()},!0),l[e].addEventListener("mouseleave",e=>{h()},!0);let v=()=>{let e=t.length;for(let s=0;e>s;s++)t[s].className.match("fx-active")&&!t[s].className.match("fx-off")||setTimeout(()=>{t[s].classList.add("fx-active",o),t[s].classList.remove(r,"fx-off"),setTimeout(()=>{!0===u&&(t[s].classList.remove(o),t[s].classList.remove(o,"fx-active"))},i)},n)},h=()=>{for(let e=0;e{t[e].classList.add(r,"fx-off"),t[e].classList.remove(o,"fx-active"),u&&setTimeout(()=>{t[e].classList.remove(r)},c)},d)};break;case"click":l[e].addEventListener("click",e=>{g()},!0);let g=()=>{for(let e=0;e{t[e].classList.add("fx-active",o),t[e].classList.remove("fx-off",r),setTimeout(()=>{u&&t[e].classList.remove("fx-active",o)},i)},n),t[e].className.match("fx-active")&&!0===f&&setTimeout(()=>{t[e].classList.add("fx-off",r),t[e].classList.remove("fx-active",o),u&&setTimeout(()=>{t[e].classList.remove("fx-off",r)},c)},d)}}}}})()}),!1),document.addEventListener("change",t(()=>{i()}),!1),window.addEventListener("resize",t(()=>{o(),m(),f(),c(),d(),n(),r(),u(),p()}),!1),window.onresize=(()=>{l()})}))();