"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery('#') is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass(boolean) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css("'+e+'", value)')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
var currentPageURL=document.location.toString();var isAnchor=false;if(location.hash){isAnchor=true;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 false;}
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 false;}
function change_url_hash(hash){setTimeout(function(){if(hash){hash="#"+hash;}else{hash="";}
if(history&&history.replaceState){history.replaceState({},"",hash);}else{}},100);}
var scrollStarted=false;function scrollToSection(section,elem){if(scrollStarted){return;}
try{scrollStarted=true;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=false;jQuery(window).trigger('scroll');jQuery(document).trigger('scroll');});return true;}}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'):false;if(section&&section.length){ev.preventDefault();}
var scrolled=scrollToSection(section,elem);if(scrolled&&ev){ev.preventDefault();}}
function bubbleSortByTop(arr){var swapped;do{swapped=false;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=true;}}}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 true;}}catch(e){}}
return false;});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;});
!function(){const o=window.navigator.userAgent;Object.entries({android:/android/i,iphone:/iPhone/i,ipad:/iPad/i}).forEach((([n,i])=>{o.match(i)&&document.body.classList.add(`tec-is-${n}`)}))}(),window.tec=window.tec||{},window.tec.common=window.tec.common||{},window.tec.common.userAgent={};
(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&5<t.length&&t.length<16))))throw new o(this)},c=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},b=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},y=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold))))throw new o(this)},z=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t))))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0<s))return!0;if(!e.every((t=>{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})();
(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where(input, textarea, select):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
/*!
* jQuery UI Effects 1.13.3
* https://jqueryui.com
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license.
* https://jquery.org/license
*/
!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],t):t(jQuery)}(function(u){"use strict";var s,o,r,a,c,e,n,i,f,l,d="ui-effects-",h="ui-effects-style",p="ui-effects-animated";function m(t){var e,n,i=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,o={};if(i&&i.length&&i[0]&&i[i[0]])for(n=i.length;n--;)"string"==typeof i[e=i[n]]&&(o[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=i[e]);else for(e in i)"string"==typeof i[e]&&(o[e]=i[e]);return o}function g(t,e,n,i){return t={effect:t=u.isPlainObject(t)?(e=t).effect:t},"function"==typeof(e=null==e?{}:e)&&(i=e,n=null,e={}),"number"!=typeof e&&!u.fx.speeds[e]||(i=n,n=e,e={}),"function"==typeof n&&(i=n,n=null),e&&u.extend(t,e),n=n||e.duration,t.duration=u.fx.off?0:"number"==typeof n?n:n in u.fx.speeds?u.fx.speeds[n]:u.fx.speeds._default,t.complete=i||e.complete,t}function v(t){return!t||"number"==typeof t||u.fx.speeds[t]||"string"==typeof t&&!u.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function y(t,e){var n=e.outerWidth(),e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,n,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?n:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}return u.effects={effect:{}},a=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},u.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,e){u.fx.step[e]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(jQuery.style(t.elem,e,t.end),t.setAttr=!0)}}),u.fn.addBack||(u.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),u.effects.animateClass=function(o,t,e,n){var s=u.speed(t,e,n);return this.queue(function(){var n=u(this),t=n.attr("class")||"",e=(e=s.children?n.find("*").addBack():n).map(function(){return{el:u(this),start:m(this)}}),i=function(){u.each(a,function(t,e){o[e]&&n[e+"Class"](o[e])})};i(),e=e.map(function(){return this.end=m(this.el[0]),this.diff=function(t,e){var n,i,o={};for(n in e)i=e[n],t[n]===i||c[n]||!u.fx.step[n]&&isNaN(parseFloat(i))||(o[n]=i);return o}(this.start,this.end),this}),n.attr("class",t),e=e.map(function(){var t=this,e=u.Deferred(),n=u.extend({},s,{queue:!1,complete:function(){e.resolve(t)}});return this.el.animate(this.diff,n),e.promise()}),u.when.apply(u,e.get()).done(function(){i(),u.each(arguments,function(){var e=this.el;u.each(this.diff,function(t){e.css(t,"")})}),s.complete.call(n[0])})})},u.fn.extend({addClass:(r=u.fn.addClass,function(t,e,n,i){return e?u.effects.animateClass.call(this,{add:t},e,n,i):r.apply(this,arguments)}),removeClass:(o=u.fn.removeClass,function(t,e,n,i){return 1<arguments.length?u.effects.animateClass.call(this,{remove:t},e,n,i):o.apply(this,arguments)}),toggleClass:(s=u.fn.toggleClass,function(t,e,n,i,o){return"boolean"==typeof e||void 0===e?n?u.effects.animateClass.call(this,e?{add:t}:{remove:t},n,i,o):s.apply(this,arguments):u.effects.animateClass.call(this,{toggle:t},e,n,i)}),switchClass:function(t,e,n,i,o){return u.effects.animateClass.call(this,{add:e,remove:t},n,i,o)}}),u.expr&&u.expr.pseudos&&u.expr.pseudos.animated&&(u.expr.pseudos.animated=(e=u.expr.pseudos.animated,function(t){return!!u(t).data(p)||e(t)})),!1!==u.uiBackCompat&&u.extend(u.effects,{save:function(t,e){for(var n=0,i=e.length;n<i;n++)null!==e[n]&&t.data(d+e[n],t[0].style[e[n]])},restore:function(t,e){for(var n,i=0,o=e.length;i<o;i++)null!==e[i]&&(n=t.data(d+e[i]),t.css(e[i],n))},setMode:function(t,e){return e="toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper"))return n.parent();var i={width:n.outerWidth(!0),height:n.outerHeight(!0),float:n.css("float")},t=u("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:n.width(),height:n.height()},o=document.activeElement;try{o.id}catch(t){o=document.body}return n.wrap(t),n[0]!==o&&!u.contains(n[0],o)||u(o).trigger("focus"),t=n.parent(),"static"===n.css("position")?(t.css({position:"relative"}),n.css({position:"relative"})):(u.extend(i,{position:n.css("position"),zIndex:n.css("z-index")}),u.each(["top","left","bottom","right"],function(t,e){i[e]=n.css(e),isNaN(parseInt(i[e],10))&&(i[e]="auto")}),n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),n.css(e),t.css(i).show()},removeWrapper:function(t){var e=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),t[0]!==e&&!u.contains(t[0],e)||u(e).trigger("focus")),t}}),u.extend(u.effects,{version:"1.13.3",define:function(t,e,n){return n||(n=e,e="effect"),u.effects.effect[t]=n,u.effects.effect[t].mode=e,n},scaledDimensions:function(t,e,n){var i;return 0===e?{height:0,width:0,outerHeight:0,outerWidth:0}:(i="horizontal"!==n?(e||100)/100:1,n="vertical"!==n?(e||100)/100:1,{height:t.height()*n,width:t.width()*i,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*i})},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,n){var i=t.queue();1<e&&i.splice.apply(i,[1,0].concat(i.splice(e,n))),t.dequeue()},saveStyle:function(t){t.data(h,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(h)||"",t.removeData(h)},mode:function(t,e){t=t.is(":hidden");return"toggle"===e&&(e=t?"show":"hide"),e=(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var n,i;switch(t[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=t[0]/e.height}switch(t[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=t[1]/e.width}return{x:i,y:n}},createPlaceholder:function(t){var e,n=t.css("position"),i=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",e=u("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(d+"placeholder",e)),t.css({position:n,left:i.left,top:i.top}),e},removePlaceholder:function(t){var e=d+"placeholder",n=t.data(e);n&&(n.remove(),t.removeData(e))},cleanUp:function(t){u.effects.restoreStyle(t),u.effects.removePlaceholder(t)},setTransition:function(i,t,o,s){return s=s||{},u.each(t,function(t,e){var n=i.cssUnit(e);0<n[0]&&(s[e]=n[0]*o+n[1])}),s}}),u.fn.extend({effect:function(){function t(t){var e=u(this),n=u.effects.mode(e,a)||s;e.data(p,!0),c.push(n),s&&("show"===n||n===s&&"hide"===n)&&e.show(),s&&"none"===n||u.effects.saveStyle(e),"function"==typeof t&&t()}var i=g.apply(this,arguments),o=u.effects.effect[i.effect],s=o.mode,e=i.queue,n=e||"fx",r=i.complete,a=i.mode,c=[];return u.fx.off||!o?a?this[a](i.duration,r):this.each(function(){r&&r.call(this)}):!1===e?this.each(t).each(f):this.queue(n,t).queue(n,f);function f(t){var e=u(this);function n(){"function"==typeof r&&r.call(e[0]),"function"==typeof t&&t()}i.mode=c.shift(),!1===u.uiBackCompat||s?"none"===i.mode?(e[a](),n()):o.call(e[0],i,function(){e.removeData(p),u.effects.cleanUp(e),"hide"===i.mode&&e.hide(),n()}):(e.is(":hidden")?"hide"===a:"show"===a)?(e[a](),n()):o.call(e[0],i,n)}},show:(f=u.fn.show,function(t){return v(t)?f.apply(this,arguments):((t=g.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(i=u.fn.hide,function(t){return v(t)?i.apply(this,arguments):((t=g.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(n=u.fn.toggle,function(t){return v(t)||"boolean"==typeof t?n.apply(this,arguments):((t=g.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(t){var n=this.css(t),i=[];return u.each(["em","px","%","pt"],function(t,e){0<n.indexOf(e)&&(i=[parseFloat(n),e])}),i},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):y(this.css("clip"),this)},transfer:function(t,e){var n=u(this),i=u(t.to),o="fixed"===i.css("position"),s=u("body"),r=o?s.scrollTop():0,s=o?s.scrollLeft():0,a=i.offset(),a={top:a.top-r,left:a.left-s,height:i.innerHeight(),width:i.innerWidth()},i=n.offset(),c=u("<div class='ui-effects-transfer'></div>");c.appendTo("body").addClass(t.className).css({top:i.top-r,left:i.left-s,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(a,t.duration,t.easing,function(){c.remove(),"function"==typeof e&&e()})}}),u.fx.step.clip=function(t){t.clipInit||(t.start=u(t.elem).cssClip(),"string"==typeof t.end&&(t.end=y(t.end,t.elem)),t.clipInit=!0),u(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})},l={},u.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){l[t]=function(t){return Math.pow(t,e+2)}}),u.extend(l,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),u.each(l,function(t,e){u.easing["easeIn"+t]=e,u.easing["easeOut"+t]=function(t){return 1-e(1-t)},u.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}}),u.effects});
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}(function(d){"use strict";return d.effects.define("slide","show",function(e,t){var i,o,n=d(this),c={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},s=e.mode,f=e.direction||"left",l="up"===f||"down"===f?"top":"left",p="up"===f||"left"===f,r=e.distance||n["top"==l?"outerHeight":"outerWidth"](!0),u={};d.effects.createPlaceholder(n),i=n.cssClip(),o=n.position()[l],u[l]=(p?-1:1)*r+o,u.clip=n.cssClip(),u.clip[c[f][1]]=u.clip[c[f][0]],"show"===s&&(n.cssClip(u.clip),n.css(l,u[l]),u.clip=i,u[l]=o),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:t})})});
(function($){function bindEffect(name,params){var menu=$("ul.fm2_"+name);var uls=menu.find("ul");var timeout;function getBrowser(){var ua=navigator.userAgent.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||(ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua))||[];var ver=match[2]||"0";var fi=ver.indexOf(".");var fi2=ver.indexOf(".",fi);if(fi2!=-1){ver=parseFloat(ver.substring(0,fi2));}
return{name:match[1]||"",version:ver,};}
function mouseLeft(el){if(!window.PIE||!PIE.Element)return;var pie=PIE.Element.getInstance(el[0]);if(pie){pie.mouseLeft(true);}}
function mouseEntered(el){if(!window.PIE||!PIE.Element)return;var pie=PIE.Element.getInstance(el[0]);if(pie){pie.mouseEntered(true);}}
function getEffectForLevel(level){switch(level){case 0:return params["effectSub"];break;default:return params["effectRest"];break;}}
function showMenu(liItem,callback){var self=liItem;if(!callback)callback=function(){};if($(self).find("ul").data("hideTimeout")){clearTimeout($(self).find("ul").data("hideTimeout"));}
var level=getButtonLevel(self);var effectObj=getEffectForLevel(level);if(!effectObj){effectObj={name:"none",};}
var effectOpts={duration:effectObj.duration*1,easing:effectObj.easing,direction:effectObj.direction,};var checkIfVisible=true;var submenu=$(self).find(">ul");if(submenu.length==0){if($(self).children(".ui-effects-wrapper").length>0){checkIfVisible=false;submenu=$(self).find(".ui-effects-wrapper >ul");}}
if(checkIfVisible&&submenu.is(":visible")){return;}
var browser=getBrowser();var isIE7=browser.name=="msie"&&browser.version==7;if(isIE7){effectObj.name="none";submenu.children("li").css("float","left");if(params["menuType"]=="tabbed"&&level==0){submenu.width(menu.outerWidth());}}
switch(effectObj.name){case"none":submenu.show();break;case"bounce":if($(self).parent().is(":animated")){return;}
case"blind":case"explode":case"clip":case"drop":case"fold":case"slide":if($(self).find("ul").is(":animated")){$(self).find("ul").removeAttr("style");}
if(submenu.data("hideTimeout")){clearTimeout(submenu.data("hideTimeout"));submenu.removeData("hideTimeout");}
$(self).siblings().find("ul").stop(false,true);window.setTimeout(function(){if(submenu.css("display")!="none"&&!submenu.is(":animated")){return;}
submenu.stop(false,true);if(effectObj.useFade!=="false"){submenu.fadeIn({duration:effectOpts.duration*2,queue:false,}).css("display","none");}
if(effectOpts.direction==="left"&&submenu.closest("[data-direction=right]").length){effectOpts.direction="right";}
submenu.show(effectObj.name,effectOpts,function(){if(effectObj.name=="fold"){$(this).css({position:"",left:"",top:"",right:"",bottom:"",});}});},5);break;case"fade":uls.stop(true,true);submenu.show(effectObj.name,effectOpts);break;default:uls.stop(true,false);window.setTimeout(function(){submenu.show(effectObj.name,effectOpts);},5);}}
function hideMenu(liItem,callback){var self=liItem;if(!callback)callback=function(){};var level=getButtonLevel(self);var effectObj=getEffectForLevel(level);if(!effectObj){effectObj={name:"none",};}
var effectOpts={duration:effectObj.duration*1,easing:effectObj.easing,direction:effectObj.direction,};var browser=getBrowser();var isIE7=browser.name=="msie"&&browser.version==7;if(isIE7){effectObj.name="none";}
var submenu=$(self).find("ul");if(submenu.length==0){if($(self).children(".ui-effects-wrapper").length>0){submenu=$(self).find(".ui-effects-wrapper >ul");}}
switch(effectObj.name){case"none":submenu.hide();callback();break;case"bounce":if($(self).parent().is(":animated")){return;}
case"blind":case"explode":case"clip":case"drop":case"fold":case"slide":submenu.stop(false,true);if(submenu.data("hideTimeout")){clearTimeout(submenu.data("hideTimeout"));}
var timeout=window.setTimeout(function(){submenu.stop(false,true);submenu.find("ul").hide();if(effectObj.useFade!=="false"){submenu.fadeOut({duration:effectOpts.duration*1.4,queue:false,});}
submenu.hide(effectObj.name,effectOpts,function(){$(this).removeAttr("style");$(this).find("ul").removeAttr("style").hide();callback();});},100);submenu.data("hideTimeout",timeout);break;case"fade":uls.stop(true,true);$(self).find("ul").hide(effectObj.name,effectOpts,function(){callback();});break;default:uls.stop(true,false);if(submenu.data("hideTimeout")){clearTimeout($(self).find("ul").data("hideTimeout"));}
var timeout=window.setTimeout(function(){submenu.hide(effectObj.name,effectOpts,function(){callback();});},100);submenu.data("hideTimeout",timeout);}}
$(menu).find("li").mouseenter(function(ev){ev.preventDefault();ev.stopImmediatePropagation();var self=this;clearTimeout(timeout);try{$(this).siblings().each(function(){hideMenu($(this));});}catch(e){}
showMenu($(self));$(self).find("li").each(function(){$(this).removeClass("hover");mouseLeft($(this).children("a"));});$(self).siblings("li").each(function(){var liItem=$(this);mouseLeft($(this).children("a"),function(){liItem.parent().find(".hover").each(function(){$(this).removeClass("hover");mouseLeft($(this).children("a"));});});$(this).removeClass("hover");});mouseEntered($(self).children("a"));$(self).addClass("hover");$(self).parents("li").each(function(){mouseEntered($(this).children("a"));$(this).addClass("hover");});}).mouseleave(function(ev){var self=this;if($(self).find("> ul").length){clearTimeout(timeout);timeout=window.setTimeout(function(){hideMenu($(self),function(){$(self).find("li").addBack().each(function(){$(this).removeClass("hover");mouseLeft($(this).children("a"));});});},200);}else{clearTimeout(timeout);timeout=window.setTimeout(function(){$(self).removeClass("hover");mouseLeft($(self).children("a"));},0);}});}
function unbindEffect(name){var menu=$("ul.fm2_"+name);$(menu).find("li").unbind("mouseenter");$(menu).find("li").unbind("mouseleave");}
function getButtonLevel(selectedNode){try{var upULSNo=0;while(selectedNode&&selectedNode[0].className!=undefined&&selectedNode[0].className.toLowerCase().indexOf("fm")<0){if(selectedNode[0].tagName&&selectedNode[0].tagName.toLowerCase()=="ul"){upULSNo++;}
selectedNode=$(selectedNode).parent();}}catch(e){}
return upULSNo;}
function destroy(){window.flexiCssMenus={};}
function addParentSelected(liElem){var parentUl=liElem.parent();if(parentUl[0].tagName&&parentUl[0].tagName.toLowerCase()=="ul"){var parentLi=parentUl.parent();if(parentLi[0].tagName&&parentLi[0].tagName.toLowerCase()=="li"){parentLi.add(parentLi.children("a")).addClass("sel");addParentSelected(parentLi);}}}
function checkForButtonSelect(menu,location){var selected=false;location=location.replace(window.location.search,"");menu.find(".sel").removeClass("sel");menu.find("a").unbind("click.menuitem").bind("click.menuitem",function(event){setTimeout(function(){checkForButtonSelect(menu,window.location+"");},100);});if(window.location.hash){var hash=window.location.hash;_hashItem=menu.find('a[href="'+hash+'"]');if(_hashItem.length>0){_hashItem.eq(0).closest("li").addBack().addClass("sel");return;}else{_fullHashItem=menu.find('a[href="'+location+'"]');if(_fullHashItem.length>0){_fullHashItem.eq(0).closest("li").addBack().addClass("sel");return;}}}
url=(window.location+"").split("#")[0].replace(/\/$/,"");_url=location.split("#")[0].replace(/\/$/,"");var item=menu.find('a[href="'+
url+'"],a[href="'+
url+'/"],a[href="'+
_url+'"],a[href="'+
_url+'/"]');if(item.length){item.eq(0).closest("li").addBack().addClass("sel");}}
function addSelectedClass(name){var currentPage=window.location.href;var menu=$("ul.fm2_"+name);checkForButtonSelect(menu,currentPage);}
function alignMenu(name,options){if(!options||!options["align"]||options["align"]=="left"){return;}
var align=options["align"];var menu=$("ul.fm2_"+name);var container=menu.parent();switch(align){case"center":var containerWidth=$(container).outerWidth(true,false);$(container).css({float:"none",width:containerWidth+"px","margin-left":"auto","margin-right":"auto",});break;case"right":if($(container).css("float")=="left"){$(container).css({float:"right",});}}}
if(!window.flexiCssMenus)window.flexiCssMenus={};window.flexiCssMenus.bindEffect=bindEffect;window.flexiCssMenus.addSelectedClass=addSelectedClass;window.flexiCssMenus.unbindEffect=unbindEffect;window.flexiCssMenus.alignMenu=alignMenu;})(jQuery);(function($){var CSSMenus;if(!CSSMenus){CSSMenus=new Object();}
CSSMenus.UserAgent=navigator.userAgent.toLowerCase();CSSMenus.IsMobile=function(viewportWidth,maxWidth){if(window.navMenuForceDesktop){return false;}
var deviceMatch=/iphone|ipod|android|blackberry|mini|windows\sce|windows\sphone|iemobile|palm|webos|series60|symbianos|meego/i.test(CSSMenus.UserAgent);var sizeMatch;var isLTIE9=window.flexiCssMenus.browser.name=="msie"&&window.flexiCssMenus.browser.version<9;if(window.matchMedia&&!isLTIE9){sizeMatch=window.matchMedia("(max-width:"+maxWidth+"px)").matches;}else{sizeMatch=viewportWidth<maxWidth;}
return deviceMatch||sizeMatch;};CSSMenus.IsTablet=function(viewportWidth,minWidth,maxWidth){if(window.navMenuForceDesktop){return false;}
var UA=CSSMenus.UserAgent;var is_touch_device="ontouchstart"in document.documentElement;var deviceMatch=/ipad|Win64|tablet/i.test(UA);var sizeMatch;var isLTIE9=window.flexiCssMenus.browser.name=="msie"&&window.flexiCssMenus.browser.version<9;if(!isLTIE9&&window.matchMedia){sizeMatch=window.matchMedia("(max-width:"+
maxWidth+"px) and (min-width:"+
(minWidth+1)+"px)").matches;}else{sizeMatch=viewportWidth<maxWidth&&viewportWidth>=minWidth;}
return is_touch_device&&(deviceMatch||sizeMatch);};CSSMenus.IsAppleProduct=function(){return/iphone|ipod|ipad/i.test(CSSMenus.UserAgent);};function xtdCSSMenuInit(Name,options){var viewportWidth=window.flexiCssMenus.correctedViewportW();var mobileCheck=CSSMenus.IsMobile(viewportWidth,options.mobileMaxWidth);var isMobileDevice=options.enableMobile&&mobileCheck;var tabletCheck=CSSMenus.IsTablet(viewportWidth,options.mobileMaxWidth,options.tabletMaxWidth);var isTabletDevice=(options.enableTablet&&tabletCheck)||(!options.enableMobile&&mobileCheck);$("#"+Name+"_container > ul").children("li").each(function(){if(this.getBoundingClientRect().left+400>window.innerWidth){$(this).attr("data-direction","right");}else{$(this).removeAttr("data-direction");}});if(isMobileDevice||isTabletDevice){try{if(isTabletDevice){$("#"+Name+"_container").show();$("#fm2_"+Name+"_mobile_button").hide();window.addEventListener("touchstart",function setHasTouch(){xtdSetTabletBehavior("#"+Name+"_container",options);window.removeEventListener("touchstart",setHasTouch);},false);flexiCssMenus.alignMenu(Name,options);CSSMenus.flexiCSSMenus_currentLevel=-1;CSSMenus.flexiCSSMenus_currentButton=null;$("#"+Name+"_container").find("li.hover").removeClass("hover");$("#"+Name+"_container").find("ul.sub-menu").hide();return false;}else{var BtnParent=$("body");var Menu=new XTDMobileMenu(Name);Menu.Init(options);Menu.Create(BtnParent);$("#"+Name+"_container").hide();$("#fm2_"+Name+"_mobile_button").css("display","block");}}catch(e){return false;}
return true;}else{$("#"+Name+"_container").show();$("#fm2_"+Name+"_mobile_button").hide();}
return false;}
function xtdSetTabletBehavior(elem,options){var children=$(elem).children();for(var i=0;i<children.length;i++){if(children[i].tagName&&children[i].tagName.toLowerCase()=="li"){if(children[i].className.toLowerCase().indexOf("fm_close")==-1){children.eq(i).bind("touchend",flexiCSSMenus_clickHandlerForTouchDevices);children.eq(i).bind("mouseover",function(){CSSMenus.flexiCSSMenus_currentButton=null;});}else{children.eq(i).bind("touchend",flexiCSSMenus_clickHandlerForCloseButton);}}
if(children[i].tagName&&children[i].tagName.toLowerCase()=="ul"&&flexiCSSMenus_getButtonLevel($(children[i]))>0&&options.tabletCloseBtnEnable!=false){var closeLabel;if(options.tabletCloseBtnLabel){closeLabel=options.tabletCloseBtnLabel;}else{closeLabel="Close";}
var liHtml="<a href='#' data-name='close-button' target='_self'><font class='leaf'>"+
closeLabel+"</font></a>";var closeLI=$("<li/>").addClass("FM_CLOSE").html(liHtml);if(children.eq(i).find('[data-name="close-button"]').length===0){children.eq(i).append(closeLI);}}
xtdSetTabletBehavior(children.get(i),options);}}
function xtdUnsetTabletBehavior(elem){var children=$(elem).children();for(var i=0;i<children.length;i++){children.eq(i).unbind("click");xtdUnsetTabletBehavior(children.get(i));}}
CSSMenus.flexiCSSMenus_currentButton=undefined;CSSMenus.flexiCSSMenus_currentLevel=-1;function flexiCSSMenus_mouseEnterHandlerForIpad(event){}
function flexiCSSMenus_clickHandlerForTouchDevices(event){var submenu=$(this).find("ul").eq(0);var hasSubmenu=submenu.length>0;var isCurrentButton=CSSMenus.flexiCSSMenus_currentButton&&jQuery(CSSMenus.flexiCSSMenus_currentButton).is(this);event.stopPropagation();if(isCurrentButton||!hasSubmenu){console.log("I am here");var buttons=$(this).parentsUntil("ul.fm2_drop_mainmenu").filter("li");buttons.each(function(){flexiCSSMenus_deselectButton($(this));});CSSMenus.flexiCSSMenus_currentButton=undefined;CSSMenus.flexiCSSMenus_currentLevel=0;return;}
event.preventDefault();var node,level;try{level=flexiCSSMenus_getButtonLevel($(this));}catch(e){alert("error 2");}
if(level>CSSMenus.flexiCSSMenus_currentLevel){CSSMenus.flexiCSSMenus_currentButton=$(this);if(level>0){node=CSSMenus.flexiCSSMenus_currentButton.parent();while(level>CSSMenus.flexiCSSMenus_currentLevel&&node.get(0).className.toLowerCase().indexOf("fm")<0){if(node.get(0).tagName&&node.get(0).tagName.toLowerCase()=="li"){flexiCSSMenus_selectButton($(node));CSSMenus.flexiCSSMenus_currentLevel--;}
node=node.parent();}}
flexiCSSMenus_selectButton($(CSSMenus.flexiCSSMenus_currentButton));CSSMenus.flexiCSSMenus_currentLevel=level;return;}
if(level==CSSMenus.flexiCSSMenus_currentLevel){try{flexiCSSMenus_deselectButton(CSSMenus.flexiCSSMenus_currentButton);CSSMenus.flexiCSSMenus_currentButton=$(this);CSSMenus.flexiCSSMenus_currentLevel=level;flexiCSSMenus_selectButton($(CSSMenus.flexiCSSMenus_currentButton));}catch(e){}
return;}
if(level<CSSMenus.flexiCSSMenus_currentLevel){while(level<CSSMenus.flexiCSSMenus_currentLevel){CSSMenus.flexiCSSMenus_currentButton=CSSMenus.flexiCSSMenus_currentButton.parent();if(CSSMenus.flexiCSSMenus_currentButton.get(0).tagName&&CSSMenus.flexiCSSMenus_currentButton.get(0).tagName.toLowerCase()=="li"){flexiCSSMenus_deselectButton(CSSMenus.flexiCSSMenus_currentButton);CSSMenus.flexiCSSMenus_currentLevel--;}}
CSSMenus.flexiCSSMenus_currentButton=$(this);CSSMenus.flexiCSSMenus_currentLevel=level;flexiCSSMenus_selectButton($(CSSMenus.flexiCSSMenus_currentButton));return;}}
function flexiCSSMenus_clickHandlerForCloseButton(event){var parentNode=$(this).parent().parent();if(event.stopPropagation)event.stopPropagation();event.preventDefault();flexiCSSMenus_deselectButton(parentNode);try{var level=flexiCSSMenus_getButtonLevel(parentNode);}catch(e){}
if(level>0){CSSMenus.flexiCSSMenus_currentButton=parentNode.parent().parent();}else{CSSMenus.flexiCSSMenus_currentButton=undefined;}
CSSMenus.flexiCSSMenus_currentLevel=level-1;}
function flexiCSSMenus_deselectButton(button){try{if(button&&button.length){button.removeClass(".hover");button.find("a").removeAttr("class");var submenu=button.find("ul").eq(0);if(submenu.length>0){button.removeAttr("class");hideSubmenu(submenu);var hovered=submenu.find(".hover").eq(0);if(hovered.length>0){flexiCSSMenus_deselectButton(hovered);}
submenu.find("li").css("position","relative");}}}catch(e){}}
function flexiCSSMenus_selectButton(button){try{var submenu=button.find("ul");submenu.eq(0).css("z-index","1");if(submenu.length>0){button.addClass("hover");showSubmenu(submenu.eq(0));var lis=submenu.eq(0).find("li");for(var i=0;i<lis.length;i++){lis.eq(i).css("position","relative");}}}catch(e){alert("error 1##"+e);}}
function flexiCSSMenus_getButtonLevel(selectedNode){try{var upULSNo=0;while(selectedNode&&selectedNode[0].className!=undefined&&selectedNode[0].className.toLowerCase().indexOf("fm")<0){if(selectedNode[0].tagName&&selectedNode[0].tagName.toLowerCase()=="ul"){upULSNo++;}
selectedNode=$(selectedNode).parent();}}catch(e){}
return upULSNo;}
function flexiCSSMenus_getButtonMenu(selectedNode){try{var upULSNo=0;while(selectedNode&&(selectedNode[0].className.toLowerCase().indexOf("fm2_")==-1||selectedNode[0].className.toLowerCase().indexOf("_container")==-1)){selectedNode=selectedNode.parent();}}catch(e){}
return selectedNode;}
function showSubmenu(el){var uls=$("#"+CSSMenus.name+"_container").find("ul");if(el.is(":animated")||el.get(0)==$("#"+CSSMenus.name).get(0)){return;}
if(flexiCssMenus.settings.effect=="none"){el.show();}else{el.show(flexiCssMenus.settings.effect,flexiCssMenus.settings.options,200);}}
function hideSubmenu(el){function hide(){if(el.is(":animated")||el.get(0)==$("#"+CSSMenus.name).get(0)){return;}
if(flexiCssMenus.settings.effect&&flexiCssMenus.settings.effect!="none"){el.hide(flexiCssMenus.settings.effect,flexiCssMenus.settings.options,200);}else{el.hide();}}
setTimeout(hide,500);}
function XTDMobileMenu(MenuName){var Self=this;var Parent=null;var MenuName=MenuName;var Options=null;var MenuButton=null;var MainContainer=null;var MainMenu=null;var mobileOverlay=null;var Container=null;var Header=null;var MainUL=null;var Visible=false;var mainMenuHeader=null;var presets={fixed:{effect:"fade",overlay:true,},relative:{effect:"slideUp",overlay:true,},push:{effect:"slideLeft",overlay:false,},};window.flexiCssMenus.presetSettings=null;this.Init=function(initObj){Options={FontColor:"#fff",FontShadowColor:"#000",NormalColor:"#ff0000",HoverColor:"#DADADA",};if(initObj){for(var i in initObj){Options[i]=initObj[i];}}
window.flexiCssMenus.presetSettings=presets[Options.preset];};this.Create=function(ButtonParent,onResize){if(document.readyState!=="complete"){$(document).ready(function(){CreateMainButton(ButtonParent);var overlayHeight=Math.max($("body").outerHeight()+13,$(window).height(),$(document).outerHeight());var overlayWidth=Math.max($("body").outerWidth(),$(window).width(),$(document).width());createStructure();$(mobileOverlay).height(overlayHeight);$(mobileOverlay).width(overlayWidth);});}else{var overlayHeight=Math.max($("body").outerHeight()+13,$(window).height(),$(document).outerHeight());var overlayWidth=Math.max($("body").outerWidth(),$(window).width(),$(document).width());CreateMainButton(ButtonParent);createStructure();$(mobileOverlay).height(overlayHeight);$(mobileOverlay).width(overlayWidth);}};function createStructure(){mobileOverlay=document.createElement("div");$(mobileOverlay).addClass("fm2_"+
MenuName+"_mobile-overlay fm2_"+
MenuName+"_mobile-overlay-hide mobile-overlay");$(mobileOverlay).css("padding-top",$("body").offset().top+"px");$(mobileOverlay).mousedown(function(ev){ev.preventDefault();}).click(function(){if(Visible){Self.Show((Visible=!Visible));}});MainContainer=document.createElement("div");MainContainer.setAttribute("id","fm2_"+MenuName+"_jq_menu_back");MainContainer.setAttribute("class","fm2_mobile_jq_menu ui-main-container ui-corner-all ui-mobile-viewports");MainContainer.style.zIndex="10005";Container=document.createElement("div");Container.setAttribute("class","menu-container");MainMenu=document.createElement("div");MainMenu.className="menu main-menu";mainMenuHeader=createMainMenuHeader("Menu");MainContainer.appendChild(mainMenuHeader);var ItemList=CreateItemList();MainMenu.appendChild(ItemList);Container.appendChild(MainMenu);MainContainer.appendChild(Container);Parent=document.getElementsByTagName("body")[0];if(Options.preset=="fixed"){mobileOverlay.appendChild(MainContainer);Parent.appendChild(mobileOverlay);}else{$(MenuButton).after($(MainContainer));}
if(Options.preset!="relative"){if(Options.preset=="push"){MainMenu.style.marginTop=parseInt($(mainMenuHeader).outerHeight(true))+"px";}
var calcHeight=parseInt($(Container).height())+
parseInt($(mainMenuHeader).outerHeight());if(Options.preset=="push"){MainContainer.style.height=Math.max($("body").outerWidth(),$(window).width(),$(document).width())+"px";Container.style.height=calcHeight+"px";}}
$(MainContainer).hide();UpdateLinks();GetCurrentItem();Self.Update();}
this.Show=function(Visible){if(Visible){$(mobileOverlay).removeClass("fm2_"+MenuName+"_mobile-overlay-hide");var overlayWidth=Math.max($("body").outerWidth(),$(window).width(),$(document).width());$(mobileOverlay).width(overlayWidth);$(MainContainer).fadeIn("fast").css({top:$(window).scrollTop(),left:$("body").css("margin-left"),});var overlayHeight=Math.max($("body").outerHeight()+13,$(window).height(),$(document).outerHeight());var containerHeight=$(Container).height()+$(window).scrollTop()+300;$(mobileOverlay).height(Math.max(overlayHeight,containerHeight));}else{$(mobileOverlay).addClass("fm2_"+MenuName+"_mobile-overlay-hide");$(MainContainer).fadeOut("fast",function(){$(MainContainer).find(".submenu").remove();$(MainContainer).find(".menu").css("width","").show();});}};this.ShowHeader=function(Visible){if(Visible)$(Header).show();else $(Header).hide();};this.GoToSubmenu=function(ParentID,Current){if($(Current).parent().has("ul").length){var Submenu=document.createElement("div");Submenu.setAttribute("class","menu submenu");var UlElement=$(Current).parent().children("ul").clone(true,true);UlElement.attr("elcaption",$(Current).text());UlElement.attr("ellink",$(Current).attr("href"));UlElement.attr("eltarget",$(Current).attr("target"));UlElement.show();var newHeader=CreateHeader($(Current).text(),$(Current).attr("href"));Submenu.appendChild(newHeader);UlElement.appendTo($(Submenu));$(Submenu).appendTo(Container);var containerWidth=parseInt($(MainContainer).width());Submenu.style.width=containerWidth+"px";$(Container).children(".menu").eq(-1).css("width",containerWidth);$(Container).children(".menu").eq(-2).css("width",containerWidth);Container.style.width=2*containerWidth+2+"px";switch(window.flexiCssMenus.presetSettings.effect){case"fade":$(Container).animate({display:"none",},1,"swing",function(){$(Container).children(".menu").eq(-2).hide();$(Container).css({width:"",left:"",});$(Container).children(".menu").eq(-1).css("opacity",0).animate({opacity:1,},150);});break;}}};this.GoBack=function(Current){if($(Container).children(".menu").length>1){var containerWidth=parseInt($(MainContainer).width());$(Container).children(".menu").eq(-1).css("width",containerWidth+"px");$(Container).children(".menu").eq(-2).show().css("width",containerWidth+"px");$(Container).css({width:2*containerWidth+"px",left:"-"+containerWidth+"px",});switch(window.flexiCssMenus.presetSettings.effect){case"fade":$(Container).animate({opacity:1,},1,"swing",function(){$(Container).children(".menu").last().remove();$(Container).css({width:"",left:"",});$(Container).children(".menu").eq(-1).css("opacity",0).animate({opacity:1,},150);});break;}}};this.SetOptions=function(Value){Options=$.extend(true,Options,Value);Self.Update();};this.Update=function(){if($(Container).children("ul").length==1){$(Header).children("a.back-btn").css("display","none");}};function CreateMainButton(Parent){var btn=$("#fm2_"+MenuName+"_mobile_button");if(btn.length>0){btn.attr("href","#").removeAttr("style");MenuButton=btn[0];}else{MenuButton=document.createElement("a");MenuButton.innerHTML+="<span class='down-arrow'>&#x25BC;</span><span class='caption'>Menu</span>";MenuButton.setAttribute("href","#");MenuButton.setAttribute("id","fm2_"+MenuName+"_mobile_button");$(MenuButton).addClass("fm2_mobile_button").appendTo(Parent);}
$(MenuButton).unbind("click").click(function(ev){ev.preventDefault();ev.stopPropagation();Self.Show((Visible=!Visible));var opeEvent="ope-mobile-menu-"+(Visible?"show":"hide");jQuery(document).trigger(opeEvent);});}
function CreateHeader(Caption,Link){var Header=document.createElement("div");var BackBtn=document.createElement("a");var CloseBtn=document.createElement("a");var Title=document.createElement("p");Header.setAttribute("id",MenuName+"_jq_menu_header");Header.setAttribute("class","menu-header");BackBtn.setAttribute("href","javascript: void(0);");BackBtn.setAttribute("class","back-btn");$(BackBtn).click(function(ev){ev.stopPropagation();Self.GoBack();});Title.innerHTML="<a href='"+Link+"''>"+Caption+"</a>";Header.appendChild(BackBtn);Header.appendChild(Title);return Header;}
function createMainMenuHeader(caption){var Header=document.createElement("div");Header.setAttribute("class","main-menu-header");$(Header).click(function(ev){ev.preventDefault();ev.stopPropagation();Self.Show((Visible=!Visible));});return Header;}
function GetCurrentItem(){var MenuItem="Menu";$(Container).children("ul").find("a").each(function(){if($(this).attr("href")==window.location){MenuItem=$(this).children("p").html();}});$(MenuButton).children("span.caption").children("p.xtd_menu_ellipsis").html(MenuItem);}
function CreateItemList(Structure){var Structure=typeof Structure!="undefined"?Structure:$("#"+MenuName+"_container > ul > li");var ULElement=document.createElement("ul");Structure.each(function(Index){var LiElement=document.createElement("li");var AElement=null;LiElement.className="ellipsis";AElement=$(this).children("a").clone().appendTo($(LiElement));if($(this).children("ul").length){AElement.html('<span class="branch">'+AElement.html()+"</span>");}else{AElement.html('<font class="leaf">'+AElement.html()+"</font>");}
AElement.html('<p class="xtd_menu_ellipsis">'+AElement.html()+"</p>");if($(this).children("ul").length){var NewUL=CreateItemList($(this).children("ul").children("li"));NewUL.style.display="none";LiElement.appendChild(NewUL);}
ULElement.appendChild(LiElement);});return ULElement;}
function UpdateLinks(Cont){var ObjContainer=Cont!=undefined?Cont:MainMenu;$(ObjContainer).children("ul").find("li").click(function(event){var elem=$(this).children("a");if($(MainContainer).find(".menu").filter(":visible").length>1){return;}
event.preventDefault();event.stopPropagation();if(elem.data().smoothscroll){if(!elem.data("onepage-section")&&window.smoothScrollGetAnchors){window.smoothScrollGetAnchors();}
Visible=false;Self.Show(Visible);elem.trigger("click.onepage");return;}
if(elem.parent().has("ul").length){Self.GoToSubmenu("",elem);event.preventDefault();event.stopPropagation();}else{if(elem.length>0&&elem.attr("href")){window.location=elem.attr("href");}
$(MenuButton).children("span.caption").children("p.xtd_menu_ellipsis").html(elem.children("p").html());if(Visible){Self.Show((Visible=!Visible));}}}).on("touchstart",function(){$(this).addClass("clicked");}).on("touchend",function(){$(this).removeClass("clicked");}).on("touchmove",function(){$(this).removeClass("clicked");});}}
function destroy(){$(".mobile_menu_button").remove();$(".mobile-overlay").remove();$(".fm2_mobile_jq_menu").remove();$("body").unbind("touchmove");if(window.flexiCssMenus.presetSettings&&window.flexiCssMenus.presetSettings.effect=="slideLeft"){$("body").stop(true,true).css({"margin-left":"0",width:"auto",});}}
if(!window.flexiCssMenus)window.flexiCssMenus={};window.flexiCssMenus.xtdCSSMenuInit=xtdCSSMenuInit;window.flexiCssMenus.xtdUnsetTabletBehavior=xtdUnsetTabletBehavior;window.flexiCssMenus.destroy=destroy;})(jQuery);(function($){function getBrowser(){var ua=navigator.userAgent.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||(ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua))||[];var ver=match[2]||"0";var fi=ver.indexOf(".");var fi2=ver.indexOf(".",fi);if(fi2!=-1){ver=parseFloat(ver.substring(0,fi2));}
return{name:match[1]||"",version:ver,};}
function getScriptFolder(){var scripts=document.getElementsByTagName("SCRIPT");for(var i=0;i<scripts.length;i++){var src=scripts[i].getAttribute("src");if(src&&src.indexOf("drop_menu_selection.js")!=-1){if(src.lastIndexOf("/")!=-1){return src.substring(0,src.lastIndexOf("/")+1);}else{return"";}}}}
var browser=getBrowser();if(!window.flexiCssMenus)window.flexiCssMenus={};window.flexiCssMenus.browser=getBrowser();var scriptFolder=getScriptFolder();var ssFolder=scriptFolder;window.pie2path=ssFolder+"js/";function addEventListener(element,type,listener){if(element.addEventListener){element.addEventListener(type,listener,false);}else if(element.attachEvent){element.attachEvent("on"+type,listener);}}})(jQuery);function registerFlexiCSSMenu(name,settings){flexiCssMenus.settings=settings;if(jQuery("#"+name+"_container").length==0){return;}
jQuery("#"+name+"_container").after('<a class="fm2_mobile_button" style="display:none;" id="fm2_drop_mainmenu_mobile_button"><span class="caption"></span></a>');if(!window.registeredFlexiMenus){window.registeredFlexiMenus=[];}
if(window.flexiCssMenus.browser.name=="msie"&&window.flexiCssMenus.browser.version<9){settings["effectRest"]=null;settings["effectSub"]=null;settings["effectSubTwo"]=null;}
registeredFlexiMenus.push({name:name,settings:settings,});jQuery("#"+name+"_container").removeAttr("style");if(!settings.options["enableMobile"]){jQuery(document).ready(function(){jQuery(".fm2_mobile_button").hide();});}
if(!flexiCssMenus.xtdCSSMenuInit(name,settings.options)){flexiCssMenus.bindEffect(name,settings);flexiCssMenus.addSelectedClass(name);flexiCssMenus.alignMenu(name,settings.options);}}
(function($){var id;if(window.addEventListener){window.addEventListener("orientationchange",function(){clearTimeout(id);id=setTimeout(doneResizing,100);});}
jQuery(window).unbind("resize.xtd").bind("resize.xtd",function(){var is_touch_device="ontouchstart"in document.documentElement;if(is_touch_device){jQuery(window).unbind("resize");return;}
clearTimeout(id);id=setTimeout(doneResizing,100);});if(!window.registeredFlexiMenus){window.registeredFlexiMenus=[];}
function doneResizing(){for(var i=0;i<registeredFlexiMenus.length;i++){var menu=registeredFlexiMenus[i];if(flexiCssMenus.destroy){flexiCssMenus.destroy(menu.name);jQuery(".FM_CLOSE").remove();flexiCssMenus.xtdUnsetTabletBehavior("#"+menu.name+"_container");flexiCssMenus.unbindEffect(menu.name);}}
for(var i=0;i<registeredFlexiMenus.length;i++){var menu=registeredFlexiMenus[i];if(!flexiCssMenus.xtdCSSMenuInit(menu.name,menu.settings.options)){flexiCssMenus.bindEffect(menu.name,menu.settings);flexiCssMenus.alignMenu(name,menu.settings.options);}}}
var correctedViewportW=(function(win,docElem){var mM=win["matchMedia"]||win["msMatchMedia"],client=docElem["clientWidth"],inner=win["innerWidth"];return mM&&client<inner&&true===mM("(min-width:"+inner+"px)")["matches"]?function(){return win["innerWidth"];}:function(){return docElem["clientWidth"];};})(window,document.documentElement);if(!window.flexiCssMenus)window.flexiCssMenus={};window.flexiCssMenus.correctedViewportW=correctedViewportW;})(jQuery);(function(jQuery){jQuery(document).ready(function(){var menuSettings={drop_mainmenu:{effectSub:{name:"slide",direction:"up",duration:"250",easing:"swing",useFade:"false",},effectRest:{name:"slide",direction:"left",duration:"250",easing:"swing",useFade:"false",},effectSubTwo:{name:"none",direction:"left",duration:"250",easing:"swing",useFade:"false",},options:{preset:"fixed",enableTablet:"true",enableMobile:"true",mobileMaxWidth:767,tabletMaxWidth:1024,tabletCloseBtnLabel:"Close",tabletCloseBtnEnable:"true",mobileLabel:"\u00a0",},skin:"default",},};var instanceName;for(var key in menuSettings){if(menuSettings.hasOwnProperty(key)&&key!="xtd_drop_down_menu"){instanceSettings=menuSettings[key];instanceName=key;registerFlexiCSSMenu(instanceName,instanceSettings);}}});})(jQuery);
!function(window,document,$){"use strict";var Typed=function(el,options){var self=this;this.el=el;this.options={};Object.keys(defaults).forEach(function(key){self.options[key]=defaults[key];});Object.keys(options).forEach(function(key){self.options[key]=options[key];});this.isInput=this.el.tagName.toLowerCase()==='input';this.attr=this.options.attr;this.showCursor=this.isInput?false:this.options.showCursor;this.elContent=this.attr?this.el.getAttribute(this.attr):this.el.textContent;this.contentType=this.options.contentType;this.typeSpeed=this.options.typeSpeed;this.startDelay=this.options.startDelay;this.backSpeed=this.options.backSpeed;this.backDelay=this.options.backDelay;this.fadeOut=this.options.fadeOut;this.fadeOutClass=this.options.fadeOutClass;this.fadeOutDelay=this.options.fadeOutDelay;if($&&this.options.stringsElement instanceof $){this.stringsElement=this.options.stringsElement[0]}else{this.stringsElement=this.options.stringsElement;}
this.strings=this.options.strings;this.strPos=0;this.arrayPos=0;this.stopNum=0;this.loop=this.options.loop;this.loopCount=this.options.loopCount;this.curLoop=0;this.stop=false;this.cursorChar=this.options.cursorChar;this.shuffle=this.options.shuffle;this.sequence=[];this.build();};Typed.prototype={constructor:Typed,init:function(){var self=this;self.timeout=setTimeout(function(){for(var i=0;i<self.strings.length;++i)self.sequence[i]=i;if(self.shuffle)self.sequence=self.shuffleArray(self.sequence);self.typewrite(self.strings[self.sequence[self.arrayPos]],self.strPos);},self.startDelay);},build:function(){var self=this;if(this.showCursor===true){this.cursor=document.createElement('span');this.cursor.className='typed-cursor';this.cursor.innerHTML=this.cursorChar;this.el.parentNode&&this.el.parentNode.insertBefore(this.cursor,this.el.nextSibling);}
if(this.stringsElement){this.strings=[];this.stringsElement.style.display='none';var strings=Array.prototype.slice.apply(this.stringsElement.children);strings.forEach(function(stringElement){self.strings.push(stringElement.innerHTML);});}
this.init();},typewrite:function(curString,curStrPos){if(this.stop===true){return;}
if(this.fadeOut&&this.el.classList.contains(this.fadeOutClass)){this.el.classList.remove(this.fadeOutClass);this.cursor.classList.remove(this.fadeOutClass);}
var humanize=Math.round(Math.random()*(100-30))+this.typeSpeed;var self=this;self.timeout=setTimeout(function(){var charPause=0;var substr=curString.substr(curStrPos);if(substr.charAt(0)==='^'){var skip=1;if(/^\^\d+/.test(substr)){substr=/\d+/.exec(substr)[0];skip+=substr.length;charPause=parseInt(substr);}
curString=curString.substring(0,curStrPos)+curString.substring(curStrPos+skip);}
if(self.contentType==='html'){var curChar=curString.substr(curStrPos).charAt(0);if(curChar==='<'){var tag='';var endTag='';if(curChar==='<'){endTag='>'}else{endTag=';'}
while(curString.substr(curStrPos+1).charAt(0)!==endTag){tag+=curString.substr(curStrPos).charAt(0);curStrPos++;if(curStrPos+1>curString.length){break;}}
curStrPos++;tag+=endTag;}}
self.timeout=setTimeout(function(){if(curStrPos===curString.length){self.options.onStringTyped(self.arrayPos);if(self.arrayPos===self.strings.length-1){self.options.callback();self.curLoop++;if(self.loop===false||self.curLoop===self.loopCount)
return;}
self.timeout=setTimeout(function(){self.backspace(curString,curStrPos);},self.backDelay);}else{if(curStrPos===0){self.options.preStringTyped(self.arrayPos);}
var nextString=curString.substr(0,curStrPos+1);if(self.attr){self.el.setAttribute(self.attr,nextString);}else{if(self.isInput){self.el.value=nextString;}else if(self.contentType==='html'){self.el.innerHTML=nextString;}else{self.el.textContent=nextString;}}
curStrPos++;self.typewrite(curString,curStrPos);}},charPause);},humanize);},backspace:function(curString,curStrPos){var self=this;if(this.stop===true){return;}
if(this.fadeOut){this.initFadeOut();return;}
var humanize=Math.round(Math.random()*(100-30))+this.backSpeed;self.timeout=setTimeout(function(){if(self.contentType==='html'){if(curString.substr(curStrPos).charAt(0)==='>'){var tag='';while(curString.substr(curStrPos-1).charAt(0)!=='<'){tag-=curString.substr(curStrPos).charAt(0);curStrPos--;if(curStrPos<0){break;}}
curStrPos--;tag+='<';}}
var nextString=curString.substr(0,curStrPos);self.replaceText(nextString);if(curStrPos>self.stopNum){curStrPos--;self.backspace(curString,curStrPos);}
else if(curStrPos<=self.stopNum){self.arrayPos++;if(self.arrayPos===self.strings.length){self.arrayPos=0;if(self.shuffle)self.sequence=self.shuffleArray(self.sequence);self.init();}else
self.typewrite(self.strings[self.sequence[self.arrayPos]],curStrPos);}},humanize);},initFadeOut:function(){self=this;this.el.className+=' '+this.fadeOutClass;this.cursor.className+=' '+this.fadeOutClass;return setTimeout(function(){self.arrayPos++;self.replaceText('')
self.typewrite(self.strings[self.sequence[self.arrayPos]],0);},self.fadeOutDelay);},replaceText:function(str){if(this.attr){this.el.setAttribute(this.attr,str);}else{if(this.isInput){this.el.value=str;}else if(this.contentType==='html'){this.el.innerHTML=str;}else{this.el.textContent=str;}}},shuffleArray:function(array){var tmp,current,top=array.length;if(top)while(--top){current=Math.floor(Math.random()*(top+1));tmp=array[current];array[current]=array[top];array[top]=tmp;}
return array;},reset:function(){var self=this;clearInterval(self.timeout);var id=this.el.getAttribute('id');this.el.textContent='';if(typeof this.cursor!=='undefined'&&typeof this.cursor.parentNode!=='undefined'){this.cursor.parentNode.removeChild(this.cursor);}
this.strPos=0;this.arrayPos=0;this.curLoop=0;this.options.resetCallback();}};Typed.new=function(selector,option){var elements=Array.prototype.slice.apply(document.querySelectorAll(selector));elements.forEach(function(element){var instance=element._typed,options=typeof option=='object'&&option;if(instance){instance.reset();}
element._typed=instance=new Typed(element,options);if(typeof option=='string')instance[option]();});};if($){$.fn.typed=function(option){return this.each(function(){var $this=$(this),data=$this.data('typed'),options=typeof option=='object'&&option;if(data){data.reset();}
$this.data('typed',(data=new Typed(this,options)));if(typeof option=='string')data[option]();});};}
window.Typed=Typed;var defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],stringsElement:null,typeSpeed:0,startDelay:0,backSpeed:0,shuffle:false,backDelay:500,fadeOut:false,fadeOutClass:'typed-fade-out',fadeOutDelay:500,loop:false,loopCount:false,showCursor:true,cursorChar:"|",attr:null,contentType:'html',callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}};}(window,document,window.jQuery);
if("ontouchstart"in window){document.documentElement.className=document.documentElement.className+" touch-enabled";}
if(navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/i)){document.documentElement.className=document.documentElement.className+" no-parallax";}
jQuery(document).ready(function($){if(window.one_page_express_backstretch){window.one_page_express_backstretch.duration=parseInt(window.one_page_express_backstretch.duration);window.one_page_express_backstretch.transitionDuration=parseInt(window.one_page_express_backstretch.transitionDuration);var images=one_page_express_backstretch.images;if(!images){return;}
jQuery('.header-homepage, .header').backstretch(images,one_page_express_backstretch);}
var masonry=$(".post-list-c");if(masonry.length){masonry.masonry({itemSelector:'.post-list-item',percentPosition:true,});masonry.find('img').each(function(){setTimeout(function(){masonry.data().masonry.layout();},500);});}
$('.header-homepage-arrow-c').click(function(){scrollToSection($('body').find('[data-id]').first());});});(function($){var masonry=$(".post-list-c");var images=masonry.find('img');var loadedImages=0;function imageLoaded(){loadedImages++;if(images.length===loadedImages){masonry.data().masonry.layout();}}
images.each(function(){$(this).on('load',imageLoaded);});var morphed=$("[data-text-effect]");if(morphed.length&&JSON.parse(one_page_express_settings.header_text_morph)){morphed.each(function(){$(this).empty();$(this).typed({strings:JSON.parse($(this).attr('data-text-effect')),typeSpeed:parseInt(one_page_express_settings.header_text_morph_speed),loop:true});});}})(jQuery);(function($){$(document).ready(()=>{$('#opex-overlap-custom-background-to-remove').remove();})})(jQuery);
var fixto=(function($,window,document){
var computedStyle=(function(){var computedStyle={getAll:function(element){return document.defaultView.getComputedStyle(element);},get:function(element,name){return this.getAll(element)[name];},toFloat:function(value){return parseFloat(value,10)||0;},getFloat:function(element,name){return this.toFloat(this.get(element,name));},_getAllCurrentStyle:function(element){return element.currentStyle;}};if(document.documentElement.currentStyle){computedStyle.getAll=computedStyle._getAllCurrentStyle;}
return computedStyle;}());var mimicNode=(function(){function MimicNode(element){this.element=element;this.replacer=document.createElement('div');this.replacer.style.visibility='hidden';this.hide();element.parentNode.insertBefore(this.replacer,element);}
MimicNode.prototype={replace:function(){var rst=this.replacer.style;var styles=computedStyle.getAll(this.element);rst.width=this._width();rst.height=this._height();rst.marginTop=styles.marginTop;rst.marginBottom=styles.marginBottom;rst.marginLeft=styles.marginLeft;rst.marginRight=styles.marginRight;rst.cssFloat=styles.cssFloat;rst.styleFloat=styles.styleFloat;rst.position=styles.position;rst.top=styles.top;rst.right=styles.right;rst.bottom=styles.bottom;rst.left=styles.left;rst.display=styles.display;},hide:function(){this.replacer.style.display='none';},_width:function(){return this.element.getBoundingClientRect().width+'px';},_widthOffset:function(){return this.element.offsetWidth+'px';},_height:function(){return jQuery(this.element).outerHeight()+'px';},_heightOffset:function(){return this.element.offsetHeight+'px';},destroy:function(){$(this.replacer).remove();for(var prop in this){if(this.hasOwnProperty(prop)){this[prop]=null;}}}};var bcr=document.documentElement.getBoundingClientRect();if(!bcr.width){MimicNode.prototype._width=MimicNode.prototype._widthOffset;MimicNode.prototype._height=MimicNode.prototype._heightOffset;}
return{MimicNode:MimicNode,computedStyle:computedStyle};}());function Prefix(){this._vendor=null;}
Prefix.prototype={_vendors:{webkit:{cssPrefix:'-webkit-',jsPrefix:'Webkit'},moz:{cssPrefix:'-moz-',jsPrefix:'Moz'},ms:{cssPrefix:'-ms-',jsPrefix:'ms'},opera:{cssPrefix:'-o-',jsPrefix:'O'}},_prefixJsProperty:function(vendor,prop){return vendor.jsPrefix+prop[0].toUpperCase()+prop.substr(1);},_prefixValue:function(vendor,value){return vendor.cssPrefix+value;},_valueSupported:function(prop,value,dummy){try{dummy.style[prop]=value;return dummy.style[prop]===value;}catch(er){return false;}},propertySupported:function(prop){return document.documentElement.style[prop]!==undefined;},getJsProperty:function(prop){if(this.propertySupported(prop)){return prop;}
if(this._vendor){return this._prefixJsProperty(this._vendor,prop);}
var prefixed;for(var vendor in this._vendors){prefixed=this._prefixJsProperty(this._vendors[vendor],prop);if(this.propertySupported(prefixed)){this._vendor=this._vendors[vendor];return prefixed;}}
return null;},getCssValue:function(prop,value){var dummy=document.createElement('div');var jsProperty=this.getJsProperty(prop);if(this._valueSupported(jsProperty,value,dummy)){return value;}
var prefixedValue;if(this._vendor){prefixedValue=this._prefixValue(this._vendor,value);if(this._valueSupported(jsProperty,prefixedValue,dummy)){return prefixedValue;}}
for(var vendor in this._vendors){prefixedValue=this._prefixValue(this._vendors[vendor],value);if(this._valueSupported(jsProperty,prefixedValue,dummy)){this._vendor=this._vendors[vendor];return prefixedValue;}}
return null;}};var prefix=new Prefix();var transformJsProperty=prefix.getJsProperty('transform');var fixedPositioningContext;function checkFixedPositioningContextSupport(){var support=false;var parent=document.createElement('div');var child=document.createElement('div');parent.appendChild(child);parent.style[transformJsProperty]='translate(0)';parent.style.marginTop='10px';parent.style.visibility='hidden';child.style.position='fixed';child.style.top=0;document.body.appendChild(parent);var rect=child.getBoundingClientRect();if(rect.top>0){support=true;}
document.body.removeChild(parent);return support;}
var nativeStickyValue=prefix.getCssValue('position','sticky');var fixedPositionValue=prefix.getCssValue('position','fixed');var ie=navigator.appName==='Microsoft Internet Explorer';var ieversion;if(ie){ieversion=parseFloat(navigator.appVersion.split("MSIE")[1]);}
function FixTo(child,parent,options){this.child=child;this._$child=$(child);this.parent=parent;this.options={className:'fixto-fixed',top:0};this._setOptions(options);}
FixTo.prototype={_mindtop:function(){var top=0;if(this._$mind){var el;var rect;var height;for(var i=0,l=this._$mind.length;i<l;i++){el=this._$mind[i];rect=el.getBoundingClientRect();if(rect.height){top+=rect.height;}else{var styles=computedStyle.getAll(el);top+=el.offsetHeight+computedStyle.toFloat(styles.marginTop)+computedStyle.toFloat(styles.marginBottom);}}}
return top;},stop:function(){this._stop();this._running=false;},start:function(){if(!this._running){this._start();this._running=true;}},destroy:function(){this.stop();this._destroy();this._$child.removeData('fixto-instance');for(var prop in this){if(this.hasOwnProperty(prop)){this[prop]=null;}}},_setOptions:function(options){$.extend(this.options,options);if(this.options.mind){this._$mind=$(this.options.mind);}
if(this.options.zIndex){this.child.style.zIndex=this.options.zIndex;}},setOptions:function(options){this._setOptions(options);this.refresh();},_stop:function(){},_start:function(){},_destroy:function(){},refresh:function(){}};function FixToContainer(child,parent,options){FixTo.call(this,child,parent,options);this._replacer=new mimicNode.MimicNode(child);this._ghostNode=this._replacer.replacer;this._saveStyles();this._saveViewportHeight();this._proxied_onscroll=this._bind(this._onscroll,this);this._proxied_onresize=this._bind(this._onresize,this);this.start();}
FixToContainer.prototype=new FixTo();$.extend(FixToContainer.prototype,{_bind:function(fn,context){return function(){return fn.call(context);};},_toresize:ieversion===8?document.documentElement:window,_onscroll:function _onscroll(){this._scrollTop=document.documentElement.scrollTop||document.body.scrollTop;this._parentBottom=(this.parent.offsetHeight+this._fullOffset('offsetTop',this.parent));if(!this.fixed){var childStyles=computedStyle.getAll(this.child);if((this._scrollTop<this._parentBottom&&this._scrollTop>(this._fullOffset('offsetTop',this.child)-this.options.top-this._mindtop())&&this._viewportHeight>(this.child.offsetHeight+computedStyle.toFloat(childStyles.marginTop)+computedStyle.toFloat(childStyles.marginBottom)))||this.options.toBottom){this._fix();this._adjust();}}else{if(this.options.toBottom){if(this._scrollTop>=this._fullOffset('offsetTop',this._ghostNode)){this._unfix();return;}}else{if(this._scrollTop>this._parentBottom||this._scrollTop<=(this._fullOffset('offsetTop',this._ghostNode)-this.options.top-this._mindtop())){this._unfix();return;}}
this._adjust();}},_adjust:function _adjust(){var top=0;var mindTop=this._mindtop();var diff=0;var childStyles=computedStyle.getAll(this.child);var context=null;if(fixedPositioningContext){context=this._getContext();if(context){top=Math.abs(context.getBoundingClientRect().top);}}
diff=(this._parentBottom-this._scrollTop)-(this.child.offsetHeight+computedStyle.toFloat(childStyles.marginBottom)+mindTop+this.options.top);if(diff>0){diff=0;}
if(this.options.toBottom){}else{var _top=this.options.top;if(_top===0){_top=$('body').offset().top;}
this.child.style.top=(diff+mindTop+top+_top)-computedStyle.toFloat(childStyles.marginTop)+'px';}},_fullOffset:function _fullOffset(offsetName,elm,context){var offset=elm[offsetName];var offsetParent=elm.offsetParent;while(offsetParent!==null&&offsetParent!==context){offset=offset+offsetParent[offsetName];offsetParent=offsetParent.offsetParent;}
return offset;},_getContext:function(){var parent;var element=this.child;var context=null;var styles;while(!context){parent=element.parentNode;if(parent===document.documentElement){return null;}
styles=computedStyle.getAll(parent);if(styles[transformJsProperty]!=='none'){context=parent;break;}
element=parent;}
return context;},_fix:function _fix(){var child=this.child;var childStyle=child.style;var childStyles=computedStyle.getAll(child);var left=child.getBoundingClientRect().left;var width=childStyles.width;this.options._original
this._saveStyles();if(document.documentElement.currentStyle){width=(child.offsetWidth)
if(childStyles.boxSizing!=="border-box"){width=width-(computedStyle.toFloat(childStyles.paddingLeft)+computedStyle.toFloat(childStyles.paddingRight)+computedStyle.toFloat(childStyles.borderLeftWidth)+computedStyle.toFloat(childStyles.borderRightWidth));}
width+="px";}
if(fixedPositioningContext){var context=this._getContext();left=this._$child.offset().left;}
this._replacer.replace();childStyle.left=(left-computedStyle.toFloat(childStyles.marginLeft))+'px';childStyle.width=width;childStyle.position='fixed';if(this.options.toBottom){childStyle.top="";childStyle.bottom=this.options.top+computedStyle.toFloat(childStyles.marginBottom)+'px';}else{childStyle.bottom="";var _top=this.options.top;if(_top===0){_top=$('body').offset().top;}
childStyle.top=this._mindtop()+_top-computedStyle.toFloat(childStyles.marginTop)+'px';}
this._$child.addClass(this.options.className);this.fixed=true;this._$child.trigger('fixto-added');},_unfix:function _unfix(){var childStyle=this.child.style;this._replacer.hide();childStyle.position=this._childOriginalPosition;childStyle.top=this._childOriginalTop;childStyle.bottom=this._childOriginalBottom;childStyle.width=this._childOriginalWidth;childStyle.left=this._childOriginalLeft;this._$child.removeClass(this.options.className);this._$child.trigger('fixto-removed');this.fixed=false;},_saveStyles:function(){var childStyle=this.child.style;this._childOriginalPosition=childStyle.position;if(this.options.toBottom){this._childOriginalTop="";this._childOriginalBottom=childStyle.bottom;}else{this._childOriginalTop=childStyle.top;this._childOriginalBottom="";}
this._childOriginalWidth=childStyle.width;this._childOriginalLeft=childStyle.left;},_onresize:function(){this.refresh();},_saveViewportHeight:function(){this._viewportHeight=window.innerHeight||document.documentElement.clientHeight;},_stop:function(){this._unfix();$(window).unbind('scroll.fixto mousewheel',this._proxied_onscroll);$(this._toresize).unbind('resize.fixto',this._proxied_onresize);},_start:function(){this._onscroll();$(window).bind('scroll.fixto mousewheel',this._proxied_onscroll);$(this._toresize).bind('resize.fixto',this._proxied_onresize);},_destroy:function(){this._replacer.destroy();},refresh:function(){this._saveViewportHeight();this._unfix();this._onscroll();}});function NativeSticky(child,parent,options){FixTo.call(this,child,parent,options);this.start();}
NativeSticky.prototype=new FixTo();$.extend(NativeSticky.prototype,{_start:function(){var childStyles=computedStyle.getAll(this.child);this._childOriginalPosition=childStyles.position;this._childOriginalTop=childStyles.top;this.child.style.position=nativeStickyValue;this.refresh();},_stop:function(){this.child.style.position=this._childOriginalPosition;this.child.style.top=this._childOriginalTop;},refresh:function(){this.child.style.top=this._mindtop()+this.options.top+'px';}});var fixTo=function fixTo(childElement,parentElement,options){if((nativeStickyValue&&!options)||(nativeStickyValue&&options&&options.useNativeSticky!==false)){return new NativeSticky(childElement,parentElement,options);}else if(fixedPositionValue){if(fixedPositioningContext===undefined){fixedPositioningContext=checkFixedPositioningContextSupport();}
return new FixToContainer(childElement,parentElement,options);}else{return'Neither fixed nor sticky positioning supported';}};if(ieversion<8){fixTo=function(){return'not supported';};}
$.fn.fixTo=function(targetSelector,options){var $targets=$(targetSelector);var i=0;return this.each(function(){var instance=$(this).data('fixto-instance');if(!instance){$(this).data('fixto-instance',fixTo(this,$targets[i],options));}else{var method=targetSelector;instance[method].call(instance,options);}
i++;});};return{FixToContainer:FixToContainer,fixTo:fixTo,computedStyle:computedStyle,mimicNode:mimicNode};}(window.jQuery,window,document));
(function(){jQuery(document).ready(function($){var dataprefix="data-sticky";function attrName(name){return name?dataprefix+"-"+name:dataprefix;}
var stickyElements=$('['+dataprefix+']');stickyElements.each(function(index,el){var $el=$(el);if($el.data('stickData')){return;}
var distance=parseInt($el.attr(attrName()));var stickyOnMobile=$el.attr(attrName("mobile"))=="1";var stickyOnTablet=true;var useShrink=$el.attr(attrName("shrinked"))=="1";var toBottom=$el.attr(attrName("to"))=="bottom";if(useShrink){$el.attr(attrName(),"initial");}
var stickData={center:true,responsiveWidth:true,zIndex:(10000+index),topSpacing:distance,stickyOnMobile:stickyOnMobile,stickyOnTablet:stickyOnTablet,useShrink:useShrink,toBottom:toBottom,useNativeSticky:false}
if(useShrink){return;}
if(distance===0&&jQuery('#wpadminbar').length&&jQuery('#wpadminbar').css('position')==="absolute"){distance=0;}
stickData['topSpacing']=distance;stickData['top']=distance;$el.data('stickData',stickData);$el.fixTo('body',stickData);});var resizeCallback=function(){var stickyElements=this.$els;if(window.innerWidth<1024){stickyElements.each(function(index,el){var data=$(this).data();var stickData=data.stickData;if(!stickData){return;}
var fixToInstance=data.fixtoInstance;if(!fixToInstance)
return true;if(window.innerWidth<=767){if(!stickData.stickyOnMobile){fixToInstance.stop();}}else{if(!stickData.stickyOnTablet){fixToInstance.stop();}}});}else{stickyElements.each(function(index,el){var data=$(this).data();if(!data){return;}
var fixToInstance=data.fixtoInstance;if(!fixToInstance)
return true;fixToInstance.start();})}}.bind({"$els":stickyElements})
$(window).bind('resize.sticky orientationchange.sticky',function(){setTimeout(resizeCallback,50);});$(window).trigger('resize.sticky');});})();
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);
!function(m,y,e,o){var p="lazyLoadXT",w="lazied",z="load error",t="lazy-hidden",C=e.documentElement||e.body,b={autoInit:!0,selector:"img[data-src]",blankImage:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",throttle:99,forceLoad:y.onscroll===o||!!y.operamini||!C.getBoundingClientRect,loadEvent:"pageshow",updateEvent:"load orientationchange resize scroll touchmove focus",forceEvent:"lazyloadall",oninit:{removeClass:"lazy"},onshow:{addClass:t},onload:{removeClass:t,addClass:"lazy-loaded"},onerror:{removeClass:t},checkDuplicates:!0},n={srcAttr:"data-src",edgeX:0,edgeY:0,visibleOnly:!0},a=m(y),d=m.extend,E=m.data||function(e,t){return m(e).data(t)},T=[],L=0,r=0;function c(e,t){return e[t]===o?b[t]:e[t]}function I(){var e=y.pageYOffset;return e===o?C.scrollTop:e}function X(e,t){var o=b["on"+e];o&&("function"==typeof o?o.call(t[0]):(o.addClass&&t.addClass(o.addClass),o.removeClass&&t.removeClass(o.removeClass))),t.trigger("lazy"+e,[t]),u()}function B(e){X(e.type,m(this).off(z,B))}function i(e){if(T.length){e=e||b.forceLoad,L=1/0;for(var t=I(),o=y.innerHeight||C.clientHeight,n=y.innerWidth||C.clientWidth,a=0,r=T.length;a<r;a++){var i,l,s,d,c,u,f=T[a],h=f[0],v=f[p],A=!1,g=e||E(h,w)<0;m.contains(C,h)?(e||!v.visibleOnly||h.offsetWidth||h.offsetHeight)&&(g||(i=h.getBoundingClientRect(),l=v.edgeX,s=v.edgeY,g=(d=i.top+t-s-o)<=t&&i.bottom>-s&&i.left<=n+l&&i.right>-l),g?(f.on(z,B),X("show",f),(u="function"==typeof(c=v.srcAttr)?c(f):h.getAttribute(c))&&(h.src=u),A=!0):d<L&&(L=d)):A=!0,A&&(T.splice(a--,1),r--)}r||X("complete",m(C))}}function l(){1<r?(r=1,i(),setTimeout(l,b.throttle)):r=0}function u(e){T.length&&(e&&"scroll"===e.type&&e.currentTarget===y&&L>=I()||(r||setTimeout(l,0),r=2))}function s(){a.lazyLoadXT()}function f(){i(!0)}m[p]=d(b,n,m[p]),m.fn[p]=function(a){var e,r=c(a=a||{},"blankImage"),i=c(a,"checkDuplicates"),t=c(a,"scrollContainer"),l=c(a,"show"),s={};for(e in m(t).on("scroll",u),n)s[e]=c(a,e);return this.each(function(e,t){if(t===y)m(b.selector).lazyLoadXT(a);else{var o=i&&E(t,w),n=m(t).data(w,l?-1:1);if(o)return void u();r&&"IMG"===t.tagName&&!t.src&&(t.src=r),n[p]=d({},s),X("init",n),T.push(n),u()}})},m(e).ready(function(){X("start",a),a.on(b.updateEvent,u).on(b.forceEvent,f),m(e).on(b.updateEvent,u),b.autoInit&&(a.on(b.loadEvent,s),s())})}(window.jQuery||window.Zepto||window.$,window,document),function(l){var o=l.lazyLoadXT;o.selector+=",video,iframe[data-src],embed[data-src]",o.videoPoster="data-poster",l(document).on("lazyshow","video",function(e,t){var a=t.lazyLoadXT.srcAttr,r="function"==typeof a,i=!1;t.attr("poster",t.attr(o.videoPoster)),t.children("source,track").each(function(e,t){var o=l(t),n=r?a(o):o.attr(a);n&&(o.attr("src",n),i=!0)}),i&&void 0!==l(this).attr("preload")&&"none"!=l(this).attr("preload")&&this.load(),l(this).removeClass("lazy-hidden")}),l(document).on("lazyshow","embed",function(e,t){l(this).removeClass("lazy-hidden")})}(window.jQuery||window.Zepto||window.$);
!function(t,r,e,s){var n,a,c=t.lazyLoadXT,i="srcset"in new Image,o=/^\s*(\S*)/,d=/\S\s+(\d+)w/,u=/\S\s+(\d+)h/,l=/\S\s+([\d\.]+)x/,x=[0,1/0],w=[0,1],h={srcsetAttr:"data-srcset",srcsetExtended:!0,srcsetBaseAttr:"data-srcset-base",srcsetExtAttr:"data-srcset-ext"},f={w:0,h:0,x:0};for(n in h)void 0===c[n]&&(c[n]=h[n]);function p(r,e){return Math[e].apply(null,t.map(r,function(t){return t[n]}))}function A(t){return t[n]>=f[n]||t[n]===a}function m(t){return t[n]===a}function g(s){var i=s.attr(c.srcsetAttr);if(!i)return!1;var h=t.map(i.replace(/(\s[\d.]+[whx]),/g,"$1 @,@ ").split(" @,@ "),function(t){return{url:o.exec(t)[1],w:parseFloat((d.exec(t)||x)[1]),h:parseFloat((u.exec(t)||x)[1]),x:parseFloat((l.exec(t)||w)[1])}});if(!h.length)return!1;var g,v,y=e.documentElement;for(g in f={w:r.innerWidth||y.clientWidth,h:r.innerHeight||y.clientHeight,x:r.devicePixelRatio||1})n=g,a=p(h,"max"),h=t.grep(h,A);for(g in f)n=g,a=p(h,"min"),h=t.grep(h,m);return v=h[0].url,c.srcsetExtended&&(v=(s.attr(c.srcsetBaseAttr)||"")+v+(s.attr(c.srcsetExtAttr)||"")),v}c.selector+=",img["+c.srcsetAttr+"],source["+c.srcsetAttr+"]",t(e).on("lazyshow","img",function(t,r){var e=r.attr(c.srcsetAttr);e&&(!c.srcsetExtended&&i?(r.attr("srcset",e),r.attr("data-srcset","")):r.lazyLoadXT.srcAttr=g)}),t(e).on("lazyshow","source",function(r,e){t(this).removeClass("lazy-hidden");var s=e.attr(c.srcsetAttr);s&&(!c.srcsetExtended&&i?(e.attr("srcset",s),e.attr("data-srcset","")):e.lazyLoadXT.srcAttr=g)})}(window.jQuery||window.Zepto||window.$,window,document);
jQuery.lazyLoadXT.updateEvent='load orientationchange resize scroll touchmove focus click customlazyloadxtevent';jQuery.lazyLoadXT.edgeY=a3_lazyload_extend_params.edgeY;jQuery.lazyLoadXT.srcsetExtended=false;if(typeof a3_lazyload_extend_params.horizontal_container_classnames!=='undefined'&&''!==a3_lazyload_extend_params.horizontal_container_classnames){jQuery.lazyLoadXT.scrollContainer=a3_lazyload_extend_params.horizontal_container_classnames;}
jQuery(document).ready(function($){jQuery(document).on('mouseenter','.site-header-cart',function(){jQuery(document).trigger('customlazyloadxtevent');});jQuery(document).on('mouseenter','.widget_shopping_cart',function(){jQuery(document).trigger('customlazyloadxtevent');});jQuery(document).on('mouseover','#wp-admin-bar-top-secondary',function(){jQuery(document).trigger('customlazyloadxtevent');});});jQuery(document).ajaxComplete(function(){setTimeout(function(){jQuery(window).lazyLoadXT();},1000);});