// source --> https://odevcim.com/wp-content/cache/wpo-minify/1777459723/assets/wpo-minify-header-jqueryto-top1773687641.min.js 

(function($){"use strict";$(function(){var container=$("#to_top_scrollup").css({'opacity':0});var data=to_top_options;var mouse_over=!1;var hideEventID=0;var fnHide=function(){clearTimeout(hideEventID);if(container.is(":visible")){container.stop().fadeTo(200,0,function(){container.hide();mouse_over=!1})}};var fnHideEvent=function(){if(!mouse_over&&data.enable_autohide==1){clearTimeout(hideEventID);hideEventID=setTimeout(function(){fnHide()},data.autohide_time*1000)}};var scrollHandled=!1;var fnScroll=function(){if(scrollHandled)
return;scrollHandled=!0;if($(window).scrollTop()>data.scroll_offset){container.stop().css("opacity",mouse_over?1:parseFloat(data.icon_opacity/100)).show();fnHideEvent()}else{fnHide()}
scrollHandled=!1};if("undefined"!=typeof to_top_options.enable_hide_small_device&&"1"==to_top_options.enable_hide_small_device){if($(window).width()>to_top_options.small_device_max_width){$(window).on("scroll",fnScroll);$(document).on("scroll",fnScroll)}}else{$(window).on("scroll",fnScroll);$(document).on("scroll",fnScroll)}
container.on("hover",function(){clearTimeout(hideEventID);mouse_over=!0;$(this).css("opacity",1)},function(){$(this).css("opacity",parseFloat(data.icon_opacity/100));mouse_over=!1;fnHideEvent()}).on("click",function(){$("html, body").animate({scrollTop:0},400);return!1})})})(jQuery);
// source --> https://odevcim.com/wp-content/cache/wpo-minify/1777459723/assets/wpo-minify-header-jqueryone-page-express-smoothscroll1771408009.min.js 

var currentPageURL=document.location.toString();var isAnchor=!1;if(location.hash){isAnchor=!0;window.scrollTo(0,0)}
jQuery(document).ready(function(){if(window.useManagedSmoothScroll){return}
var duration=1500;var easing='easeInOutQuart';var lastId,anchors,scrollItems;function targetIsSamePage(target){return!target||target=="_self"}
function getHash(url){if(!url){return!1}
var indexOfHash=url.indexOf('#');if(indexOfHash>-1){if(indexOfHash===0){return url.replace('#','')}
var hash=url.substring(indexOfHash+1);var urlQuery="";if(url.indexOf('?')>-1){urlQuery=url.substring(url.indexOf('?'))}
var absLinkRegExp=/(https?|file):\/\//;var pageLocation=window.location.pathname;var urlLocation=url.replace(urlQuery,'').replace('#'+hash,'').replace(absLinkRegExp,'');if(url.match(absLinkRegExp)){pageLocation=window.location.host+pageLocation}else{urlLocation=pageLocation.substring(0,pageLocation.lastIndexOf("/"))+"/"+urlLocation}
if(pageLocation==urlLocation||pageLocation==urlLocation+"/"){return hash}}
return!1}
function change_url_hash(hash){setTimeout(function(){if(hash){hash="#"+hash}else{hash=""}
if(history&&history.replaceState){history.replaceState({},"",hash)}else{}},100)}
var scrollStarted=!1;function scrollToSection(section,elem){if(scrollStarted){return}
try{scrollStarted=!0;if(section){var parent;if(elem){parent=elem.parent().parentsUntil('body').filter(function(){if(jQuery(this).css('position')=="fixed"&&!jQuery(this).is('.mobile-overlay'))return jQuery(this);}).eq(0)}
var topDistance=0;if(parent&&parent.length){var parentClass=parent.attr("class");var flexiMenu=jQuery('div[class*="_menu_wrapper"]');if(parent.outerHeight()!==window.innerHeight||!parent.is('.full-sidebar')){topDistance=parent.outerHeight()+parent.position().top}}
var scrollToValue=section.offset().top-topDistance;if(scrollToValue<0){scrollToValue=0}
var stickTo=jQuery("[data-cp-shrink=initial]");if(scrollToValue>stickTo.height()){scrollToValue-=jQuery('[data-cp-shrink=shrinked]').height()}
var menuOffset=0;var $fixed=jQuery('.navigation-wrapper');if($fixed.length&&jQuery(".header-top").attr("data-sticky-to")){menuOffset=$fixed[0].getBoundingClientRect().height;scrollToValue-=menuOffset}
var ratio=Math.max(0.5,scrollToValue/jQuery('body').height());jQuery('html, body').animate({scrollTop:scrollToValue},duration*ratio,easing,function(){scrollStarted=!1;jQuery(window).trigger('scroll');jQuery(document).trigger('scroll')});return!0}}catch(e){alert('error in xtd one page site script '+e)}}
function linkClick(ev,elem){if(!targetIsSamePage(elem.attr("target"))){return}
var section=elem.data('onepage-section')?elem.data('onepage-section'):!1;if(section&&section.length){ev.preventDefault()}
var scrolled=scrollToSection(section,elem);if(scrolled&&ev){ev.preventDefault()}}
function bubbleSortByTop(arr){var swapped;do{swapped=!1;for(var i=0;i<arr.length-1;i++){var elem=arr[i];var elem2=arr[i+1];if(elem.offset().top>elem2.offset().top){var temp=arr[i];arr[i]=arr[i+1];arr[i+1]=temp;swapped=!0}}}while(swapped);}
function getAnchors(){scrollItems=[];anchors=jQuery('a').filter(function(){var elem=jQuery(this);var href=elem.attr('href');var target=elem.attr('target');var hash=getHash(href);if(hash&&hash!=='wp-toolbar'){try{var section=jQuery("#"+hash);if(section.length>0){elem.data('onepage-section',section);if(elem.parent()[0].tagName=="LI"){section.data('onepage-anchor',elem)}
scrollItems.push(section);return!0}}catch(e){}}
return!1});anchors.each(function(){if(jQuery(this).closest('.fm2_mobile_jq_menu').length||!jQuery(this).is(':visible')){return}
if(jQuery(this).parent().is('li.menu-item')){var selfAnchor=this;jQuery(this).unbind('click.onepage');jQuery(this).attr('data-smoothscroll','true');jQuery(this).parent().unbind('click.onepage').bind("click.onepage",function(e){if(!jQuery(e.target).parent().is(e.currentTarget)){return}
e.preventDefault();e.stopPropagation();linkClick(e,jQuery(selfAnchor))})}else{jQuery(this).unbind('click.onepage').bind("click.onepage",function(e){linkClick(e,jQuery(this))})}});try{bubbleSortByTop(scrollItems)}catch(e){}}
var scrollTimeout;var is_touch_device='ontouchstart' in document.documentElement;if(!is_touch_device){jQuery(window).scroll(function(){clearTimeout(scrollTimeout);scrollTimeout=setTimeout(doneScrolling,20)})}
function doneScrolling(){var windowElem=jQuery(window);var fromTop=windowElem.scrollTop()+window.innerHeight*0.5;var cur=[];if(!scrollItems){getAnchors()}
for(var i=0;i<scrollItems.length;i++){if(scrollItems[i].offset().top<fromTop){cur.push(scrollItems[i])}}
var lastItem=scrollItems[scrollItems.length-1];if((windowElem.scrollTop()+windowElem.height()+50)>=jQuery(document).height()){cur.push(lastItem)}
cur=cur[cur.length-1];var id=cur&&cur.length?cur[0].id:"";change_url_hash(id);if(id.length===0&&anchors){anchors.parent().addBack().removeClass('current_page_item');loc=(window.location+"").split('#')[0].replace(/\/$/,"");anchors.closest('ul').find('[href$="'+loc+'"]').eq(0).parent().addBack().addClass('current_page_item');if(!loc.length){anchors.closest('ul').find('[href$="'+window.location+'"]').eq(0).parent().addBack().addClass('current_page_item')}}
if(lastId!==id&&id.length){lastId=id;try{anchors.filter('.current_page_item').each(function(){jQuery(this).parent().addBack().removeClass('current_page_item')});anchors.closest('ul').find('.current_page_item').removeClass('current_page_item');cur.data('onepage-anchor').parent().addBack().addClass('current_page_item')}catch(e){}}}
var id;jQuery(window).bind("resize orientationchange",function(){clearTimeout(id);id=setTimeout(doneResizing,100)});function doneResizing(){getAnchors()}
getAnchors();is_touch_device='ontouchstart' in document.documentElement;if(!is_touch_device){doneScrolling()}
if(isAnchor){if(jQuery.find('a[href^="'+currentPageURL+'"]').length>0){jQuery(jQuery.find('a[href="'+currentPageURL+'"]')).trigger('click')}else{var hash=getHash(currentPageURL);if(hash.length){jQuery(jQuery.find('a[href*="#'+hash+'"]')).trigger('click')}}}else{jQuery('a[href*="#"]').each(function(index,el){var parts=el.href.split('#'),anchor=parts[parts.length-1];if(parts.length>=2){if(anchor.length){jQuery(this).parent().addBack().removeClass('current_page_item')}}})}
window.scrollToSection=scrollToSection;window.smoothScrollGetAnchors=getAnchors});