jQuery(document).ready(function(){
document.addEventListener('wpcf7mailsent', function (event){
var inputs=event.detail.inputs;
var downloads=[];
var settings=[];
for(var i=0; i < inputs.length; i++){
if('your-email'===inputs[i].name){
var email=inputs[i].value ;
}
if("ebd_downloads[]"===inputs[i].name){
downloads.push(inputs[i].value);
}
if('ebd_settings[]'===inputs[i].name){
settings.push(inputs[i].value);
}}
var id=event.detail.id;
if(id)
id='#' + id;
else
id=event.detail.apiResponse.into;
var data={
action: 'ebd_inline_links',
email: email,
downloads: downloads,
settings: settings,
security: ebd_inline.ajax_nonce
};
jQuery.post(ebd_inline.ajaxurl, data, function (data){
data=JSON.parse(data);
if(data.download){
window.location.href=data.url;
}else{
jQuery('.wpcf7-response-output').show();
jQuery(id).append(data.html);
}}
);
}, false);
});
!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){var t={};function n(s){if(t[s])return t[s].exports;var i=t[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,s){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:s})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(s,i,function(t){return e[t]}.bind(null,i));return s},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);var s={hooks:{},navbar:{add:!0,title:"Menu",titleLink:"parent"},slidingSubmenus:!0};var i={classNames:{divider:"Divider",nolistview:"NoListview",nopanel:"NoPanel",panel:"Panel",selected:"Selected",vertical:"Vertical"},language:null,panelNodetype:["ul","ol","div"],screenReader:{closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}};const a=(e,t)=>{"object"!=o(e)&&(e={}),"object"!=o(t)&&(t={});for(let n in t)t.hasOwnProperty(n)&&(void 0===e[n]?e[n]=t[n]:"object"==o(e[n])&&a(e[n],t[n]));return e},o=e=>({}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()),l=()=>"mm-"+r++;let r=0;const m=e=>"mm-clone-"==e.slice(0,9)?e:"mm-clone-"+e,c=e=>"mm-clone-"==e.slice(0,9)?e.slice(9):e,d={},h=(e,t)=>{void 0===d[t]&&(d[t]={}),a(d[t],e)};var p={"Close submenu":"بستن زیرمنو",Menu:"منو","Open submenu":"بازکردن زیرمنو","Toggle submenu":"سوییچ زیرمنو"},u={"Close submenu":"Submenu sluiten",Menu:"Menu","Open submenu":"Submenu openen","Toggle submenu":"Submenu wisselen"},f={"Close submenu":"Fechar submenu",Menu:"Menu","Open submenu":"Abrir submenu","Toggle submenu":"Alternar submenu"},b={"Close submenu":"Закрыть подменю",Menu:"Меню","Open submenu":"Открыть подменю","Toggle submenu":"Переключить подменю"},v={"Close submenu":"Zatvoriť submenu",Menu:"Menu","Open submenu":"Otvoriť submenu","Toggle submenu":"Prepnúť submenu"};const g=e=>{const t=e.split("."),n=document.createElement(t.shift());return n.classList.add(...t),n},L=(e,t)=>t.length?[].slice.call(e.querySelectorAll(t)):[],_=(e,t)=>{const n=Array.prototype.slice.call(e.children);return t?n.filter(e=>e.matches(t)):n},E=e=>e.filter(e=>!e.matches(".mm-hidden")),w=e=>{let t=[];return E(e).forEach(e=>{t.push(..._(e,"a.mm-listitem__text"))}),t.filter(e=>!e.matches(".mm-btn--next"))},y=(e,t,n)=>{e.matches("."+t)&&e.classList.add(n)};let P={};const S=(e,t,n)=>{"number"==typeof e&&(e="(min-width: "+e+"px)"),P[e]=P[e]||[],P[e].push({yes:t,no:n})},k=(e,t)=>{var n=t.matches?"yes":"no";for(let t=0;t<P[e].length;t++)P[e][t][n]()};var M,x,T,C=function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n},N=function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)};h({"Close submenu":"Untermenü schließen",Menu:"Menü","Open submenu":"Untermenü öffnen","Toggle submenu":"Untermenü wechseln"},"de"),h(p,"fa"),h(u,"nl"),h(f,"pt_br"),h(b,"ru"),h(v,"sk");class O{constructor(e,t,n){return M.set(this,void 0),x.set(this,void 0),T.set(this,void 0),this.opts=a(t,s),this.conf=a(n,i),this._api=["i18n","bind","openPanel","closePanel","setSelected"],this.node={},this.hook={},this.node.menu="string"==typeof e?document.querySelector(e):e,"function"==typeof this._deprecatedWarnings&&this._deprecatedWarnings(),this.trigger("init:before"),this._initObservers(),this._initAddons(),this._initHooks(),this._initAPI(),this._initMenu(),this._initPanels(),this._initOpened(),(()=>{for(let e in P){let t=window.matchMedia(e);k(e,t),t.onchange=n=>{k(e,t)}}})(),this.trigger("init:after"),this}openPanel(e,t=!0,n=!0){if(e){if(e.matches(".mm-panel")||(e=e.closest(".mm-panel")),this.trigger("openPanel:before",[e,{animation:t,setfocus:n}]),e.parentElement.matches(".mm-listitem--vertical"))e.parentElement.classList.add("mm-listitem--opened");else{const s=_(this.node.pnls,".mm-panel--opened")[0];e.matches(".mm-panel--parent")&&s&&s.classList.add("mm-panel--highest");const i=["mm-panel--opened","mm-panel--parent"],a=[];t?i.push("mm-panel--noanimation"):a.push("mm-panel--noanimation"),_(this.node.pnls,".mm-panel").forEach(e=>{e.classList.add(...a),e.classList.remove(...i),e!==s&&e.classList.remove("mm-panel--highest")}),e.classList.add("mm-panel--opened");let o=L(this.node.pnls,"#"+e.dataset.mmParent)[0];for(;o;)o=o.closest(".mm-panel"),o.classList.add("mm-panel--parent"),o=L(this.node.pnls,"#"+o.dataset.mmParent)[0];n&&(e.focus(),e.scrollLeft=0,this.node.pnls.scrollLeft=0,document.body.scrollLeft=0,document.documentElement.scrollLeft=0)}this.trigger("openPanel:after",[e,{animation:t,setfocus:n}])}}closePanel(e,t=!0,n=!0){if(e&&(e.matches(".mm-panel--opened")||e.parentElement.matches(".mm-listitem--opened"))){if(this.trigger("closePanel:before",[e]),e.parentElement.matches(".mm-listitem--vertical"))e.parentElement.classList.remove("mm-listitem--opened");else if(e.dataset.mmParent){const s=L(this.node.pnls,"#"+e.dataset.mmParent)[0];this.openPanel(s,t,n)}else{const s=_(this.node.pnls,".mm-panel--parent").pop();if(s&&s!==e)this.openPanel(s,t,n);else{const s=_(this.node.pnls,".mm-panel")[0];s&&s!==e&&this.openPanel(s,t,n)}}this.trigger("closePanel:after",[e])}}togglePanel(e){let t="openPanel";(e.parentElement.matches(".mm-listitem--opened")||e.matches(".mm-panel--opened"))&&(t="closePanel"),this[t](e)}setSelected(e){this.trigger("setSelected:before",[e]),L(this.node.menu,".mm-listitem--selected").forEach(e=>{e.classList.remove("mm-listitem--selected")}),e.classList.add("mm-listitem--selected"),this.trigger("setSelected:after",[e])}bind(e,t){this.hook[e]=this.hook[e]||[],this.hook[e].push(t)}trigger(e,t){if(this.hook[e])for(var n=0,s=this.hook[e].length;n<s;n++)this.hook[e][n].apply(this,t)}_initObservers(){C(this,M,new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{e.matches(this.conf.panelNodetype.join(", "))&&this._initListview(e)})})})),C(this,x,new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{this._initListitem(e)})})})),C(this,T,new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{(null==e?void 0:e.matches(this.conf.panelNodetype.join(", ")))&&this._initSubPanel(e)})})}))}_initAPI(){const e=this;this.API={},this._api.forEach(t=>{this.API[t]=function(){return e[t].apply(e,arguments)}}),this.node.menu.mmApi=this.API}_initHooks(){for(let e in this.opts.hooks)this.bind(e,this.opts.hooks[e])}_initAddons(){this.trigger("initAddons:before");for(let e in O.addons)O.addons[e].call(this);this.trigger("initAddons:after")}_initMenu(){this.trigger("initMenu:before"),this.node.wrpr=this.node.wrpr||this.node.menu.parentElement,this.node.wrpr.classList.add("mm-wrapper"),this.node.menu.classList.add("mm-menu"),this.node.menu.id=this.node.menu.id||l(),this.node.menu.tabIndex=-1;const e=_(this.node.menu).filter(e=>e.matches(this.conf.panelNodetype.join(", ")));this.node.pnls=g("div.mm-panels"),this.node.menu.append(this.node.pnls),e.forEach(e=>{this._initPanel(e)}),this.trigger("initMenu:after")}_initPanels(){this.trigger("initPanels:before"),this.node.menu.addEventListener("click",e=>{var t,n;const s=(null===(n=null===(t=e.target)||void 0===t?void 0:t.closest("a[href]"))||void 0===n?void 0:n.getAttribute("href"))||"";if("#"===s.slice(0,1))try{const t=L(this.node.menu,s)[0];t&&(e.preventDefault(),this.togglePanel(t))}catch(e){}},{capture:!0}),this.trigger("initPanels:after")}_initPanel(e){var t;if(!e.matches(".mm-panel")&&(y(e,this.conf.classNames.panel,"mm-panel"),y(e,this.conf.classNames.nopanel,"mm-nopanel"),!e.matches(".mm-nopanel"))){if(this.trigger("initPanel:before",[e]),e.id=e.id||l(),e.matches("ul, ol")){const t=g("div");t.id=e.id,e.removeAttribute("id"),[].slice.call(e.classList).filter(e=>"mm-"===e.slice(0,3)).forEach(n=>{t.classList.add(n),e.classList.remove(n)}),Object.keys(e.dataset).filter(e=>"mm"===e.slice(0,2)).forEach(n=>{t.dataset[n]=e.dataset[n],delete e.dataset[n]}),e.before(t),t.append(e),e=t}return e.classList.add("mm-panel"),e.tabIndex=-1,(null===(t=e.parentElement)||void 0===t?void 0:t.matches(".mm-listitem--vertical"))||this.node.pnls.append(e),this._initNavbar(e),_(e,"ul, ol").forEach(e=>{this._initListview(e)}),N(this,M).observe(e,{childList:!0}),this.trigger("initPanel:after",[e]),e}}_initNavbar(e){if(_(e,".mm-navbar").length)return;let t=null,n=null;if(e.dataset.mmParent)for(t=L(this.node.pnls,"#"+e.dataset.mmParent)[0],n=t.closest(".mm-panel");n.closest(".mm-listitem--vertical");)n=n.parentElement.closest(".mm-panel");if(null==t?void 0:t.matches(".mm-listitem--vertical"))return;this.trigger("initNavbar:before",[e]);const s=g("div.mm-navbar");if(this.opts.navbar.add||s.classList.add("mm-hidden"),n){const e=g("a.mm-btn.mm-btn--prev.mm-navbar__btn");e.href="#"+n.id,e.title=this.i18n(this.conf.screenReader.closeSubmenu),s.append(e)}let i=null;t?i=_(t,".mm-listitem__text")[0]:n&&(i=L(n,'a[href="#'+e.id+'"]')[0]);const a=g("a.mm-navbar__title");switch(a.tabIndex=-1,a.ariaHidden="true",this.opts.navbar.titleLink){case"anchor":i&&(a.href=i.getAttribute("href"));break;case"parent":n&&(a.href="#"+n.id)}const o=g("span");var l;o.innerHTML=e.dataset.mmTitle||((l=i)?[].slice.call(l.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.nodeValue.trim()).join(" "):"")||this.i18n(this.opts.navbar.title)||this.i18n("Menu"),e.prepend(s),s.append(a),a.append(o),this.trigger("initNavbar:after",[e])}_initListview(e){["htmlulistelement","htmlolistelement"].includes(o(e))&&(e.matches(".mm-listview")||(y(e,this.conf.classNames.nolistview,"mm-nolistview"),e.matches(".mm-nolistview")||(this.trigger("initListview:before",[e]),e.classList.add("mm-listview"),_(e).forEach(e=>{this._initListitem(e)}),N(this,x).observe(e,{childList:!0}),this.trigger("initListview:after",[e]))))}_initListitem(e){["htmllielement"].includes(o(e))&&(e.matches(".mm-listitem")||(y(e,this.conf.classNames.divider,"mm-divider"),e.matches(".mm-divider")||(this.trigger("initListitem:before",[e]),e.classList.add("mm-listitem"),y(e,this.conf.classNames.selected,"mm-listitem--selected"),_(e,"a, span").forEach(e=>{e.classList.add("mm-listitem__text")}),_(e,this.conf.panelNodetype.join(", ")).forEach(e=>{this._initSubPanel(e)}),N(this,T).observe(e,{childList:!0}),this.trigger("initListitem:after",[e]))))}_initSubPanel(e){if(e.matches(".mm-panel"))return;const t=e.parentElement;(e.matches("."+this.conf.classNames.vertical)||!this.opts.slidingSubmenus)&&t.classList.add("mm-listitem--vertical"),t.id=t.id||l(),e.id=e.id||l(),t.dataset.mmChild=e.id,e.dataset.mmParent=t.id;let n=_(t,".mm-btn")[0];n||(n=g("a.mm-btn.mm-btn--next.mm-listitem__btn"),_(t,"a, span").forEach(e=>{e.matches("span")?(n.classList.add("mm-listitem__text"),n.innerHTML=e.innerHTML,t.insertBefore(n,e.nextElementSibling),e.remove()):t.insertBefore(n,e.nextElementSibling)}),n.title=this.i18n(this.conf.screenReader[t.matches(".mm-listitem--vertical")?"toggleSubmenu":"openSubmenu"])),n.href="#"+e.id,this._initPanel(e)}_initOpened(){this.trigger("initOpened:before");const e=L(this.node.pnls,".mm-listitem--selected").pop();let t=_(this.node.pnls,".mm-panel")[0];e&&(this.setSelected(e),t=e.closest(".mm-panel")),this.openPanel(t,!1,!1),this.trigger("initOpened:after")}i18n(e){return((e,t)=>"string"==typeof t&&void 0!==d[t]&&d[t][e]||e)(e,this.conf.language)}static i18n(e={},t=""){if(!e||!t)return d;h(e,t)}}M=new WeakMap,x=new WeakMap,T=new WeakMap,O.addons={},O.node={},O.vars={};var A={use:!0,position:"left"};var H={clone:!1,menu:{insertMethod:"append",insertSelector:"body"},page:{nodetype:"div",selector:null,noSelector:[]},screenReader:{closeMenu:"Close menu",openMenu:"Open menu"}};O.prototype.open=function(){this.node.menu.matches(".mm-menu--opened")||(this.trigger("open:before"),this.node.menu.classList.add("mm-menu--opened"),this.node.wrpr.classList.add("mm-wrapper--opened"),O.node.blck.classList.add("mm-blocker--blocking"),this.node.open=document.activeElement,this.node.menu.focus(),this.trigger("open:after"))},O.prototype.close=function(){var e;if(!this.node.menu.matches(".mm-menu--opened"))return;this.trigger("close:before"),this.node.menu.classList.remove("mm-menu--opened"),this.node.wrpr.classList.remove("mm-wrapper--opened"),O.node.blck.classList.remove("mm-blocker--blocking");null===(e=this.node.open||document.querySelector(`[href="#${this.node.menu.id}"]`)||O.node.page||null)||void 0===e||e.focus(),document.body.scrollLeft=0,document.documentElement.scrollLeft=0,this.trigger("close:after")},O.prototype.setPage=function(e){var t=this.conf.offCanvas;if(!e){let n="string"==typeof t.page.selector?L(document.body,t.page.selector):_(document.body,t.page.nodetype);if(n=n.filter(e=>!e.matches(".mm-menu, .mm-wrapper__blocker")),t.page.noSelector.length&&(n=n.filter(e=>!e.matches(t.page.noSelector.join(", ")))),n.length>1){let e=g("div");n[0].before(e),n.forEach(t=>{e.append(t)}),n=[e]}e=n[0]}this.trigger("setPage:before",[e]),e.tabIndex=-1,e.classList.add("mm-page","mm-slideout"),e.id=e.id||l(),O.node.blck.setAttribute("href","#"+e.id),O.node.page=e,this.trigger("setPage:after",[e])};var j={fix:!0};const I="ontouchstart"in window||!!navigator.msMaxTouchPoints||!1;var q={close:!1,open:!1};var R={add:!1};var B={use:!1,top:[],bottom:[],position:"left",type:"default"};var D={add:!1,blockPanel:!0,visible:3};var F={breadcrumbs:{separator:"/",removeFirst:!1}};function $(){this.opts.navbars=this.opts.navbars||[],this.conf.navbars=this.conf.navbars||{},a(this.conf.navbars,F);let e=this.opts.navbars;if(void 0!==e&&(e instanceof Array||(e=[e]),e.length)){var t={};e.forEach(e=>{if(!(e=function(e){return"boolean"==typeof e&&e&&(e={}),"object"!=typeof e&&(e={}),void 0===e.content&&(e.content=["prev","title"]),e.content instanceof Array||(e.content=[e.content]),void 0===e.use&&(e.use=!0),e}(e)).use)return;const n=g("div.mm-navbar");let{position:s}=e;"bottom"!==s&&(s="top"),t[s]||(t[s]=g("div.mm-navbars.mm-navbars--"+s)),t[s].append(n);for(let t=0,s=e.content.length;t<s;t++){const s=e.content[t];if("string"==typeof s){const e=$.navbarContents[s];if("function"==typeof e)e.call(this,n);else{let e=g("span");e.innerHTML=s;const t=_(e);1==t.length&&(e=t[0]),n.append(e)}}else n.append(s)}if("string"==typeof e.type){const t=$.navbarTypes[e.type];"function"==typeof t&&t.call(this,n)}let i=()=>{n.classList.remove("mm-hidden")},a=()=>{n.classList.add("mm-hidden")};"boolean"==typeof e.use?this.bind("initMenu:after",i):S(e.use,i,a)}),this.bind("initMenu:after",()=>{for(let e in t)this.node.pnls["bottom"==e?"after":"before"](t[e])})}}$.navbarContents={breadcrumbs:function(e){var t=g("div.mm-navbar__breadcrumbs");e.append(t),this.bind("initNavbar:after",e=>{if(!e.querySelector(".mm-navbar__breadcrumbs")){_(e,".mm-navbar")[0].classList.add("mm-hidden");for(var t=[],n=g("span.mm-navbar__breadcrumbs"),s=e,i=!0;s;){if(!(s=s.closest(".mm-panel")).parentElement.matches(".mm-listitem--vertical")){let e=L(s,".mm-navbar__title span")[0];if(e){let n=e.textContent;n.length&&t.unshift(i?`<span>${n}</span>`:`<a \n                                    href="#${s.id}" \n                                    title="${this.i18n(this.conf.screenReader.openSubmenu)}"\n                                    >${n}</a>`)}i=!1}s=L(this.node.pnls,"#"+s.dataset.mmParent)[0]}this.conf.navbars.breadcrumbs.removeFirst&&t.shift(),n.innerHTML=t.join('<span class="mm-separator">'+this.conf.navbars.breadcrumbs.separator+"</span>"),_(e,".mm-navbar")[0].append(n)}}),this.bind("openPanel:before",e=>{var n=e.querySelector(".mm-navbar__breadcrumbs");t.innerHTML=n?n.innerHTML:""})},close:function(e){const t=g("a.mm-btn.mm-btn--close.mm-navbar__btn");t.title=this.i18n(this.conf.offCanvas.screenReader.closeMenu),e.append(t),this.bind("setPage:after",e=>{t.href="#"+e.id})},prev:function(e){let t=g("a.mm-btn.mm-hidden");e.append(t),this.bind("initNavbar:after",e=>{_(e,".mm-navbar")[0].classList.add("mm-hidden")}),this.bind("openPanel:before",e=>{if(e.parentElement.matches(".mm-listitem--vertical"))return;t.classList.add("mm-hidden");const n=e.querySelector(".mm-navbar__btn.mm-btn--prev");if(n){const e=n.cloneNode(!0);t.after(e),t.remove(),t=e}})},searchfield:function(e){let t=g("div.mm-navbar__searchfield");t.id=l(),e.append(t),this.opts.searchfield=this.opts.searchfield||{},this.opts.searchfield.add=!0,this.opts.searchfield.addTo="#"+t.id},title:function(e){let t=g("a.mm-navbar__title");e.append(t),this.bind("openPanel:before",e=>{if(e.parentElement.matches(".mm-listitem--vertical"))return;const n=e.querySelector(".mm-navbar__title");if(n){const e=n.cloneNode(!0);t.after(e),t.remove(),t=e}})}},$.navbarTypes={tabs:function(e){function t(n){const s=_(e,`.mm-navbar__tab[href="#${n.id}"]`)[0];if(s)s.classList.add("mm-navbar__tab--selected"),s.ariaExpanded="true";else{const e=L(this.node.pnls,"#"+n.dataset.mmParent)[0];e&&t.call(this,e.closest(".mm-panel"))}}e.classList.add("mm-navbar--tabs"),e.closest(".mm-navbars").classList.add("mm-navbars--has-tabs"),_(e,"a").forEach(e=>{e.classList.add("mm-navbar__tab")}),this.bind("openPanel:before",n=>{_(e,"a").forEach(e=>{e.classList.remove("mm-navbar__tab--selected"),e.ariaExpanded="false"}),t.call(this,n)}),this.bind("initPanels:after",()=>{e.addEventListener("click",e=>{var t,n,s;const i=null===(n=null===(t=e.target)||void 0===t?void 0:t.closest(".mm-navbar__tab"))||void 0===n?void 0:n.getAttribute("href");try{null===(s=L(this.node.pnls,i+".mm-panel")[0])||void 0===s||s.classList.add("mm-panel--noanimation")}catch(e){}},{capture:!0})})}};var Z={scroll:!1,update:!1};var W={scrollOffset:0,updateOffset:50};var z={add:!1,addTo:"panels",noResults:"No results found.",placeholder:"Search",searchIn:"panels",splash:"",title:"Search"};var V={cancel:!0,clear:!0,form:{},input:{},panel:{},submit:!1},U={cancel:"انصراف","Cancel searching":"لغو جستجو","Clear searchfield":"پاک کردن فیلد جستجو","No results found.":"نتیجه‌ای یافت نشد.",Search:"جستجو"},Y={cancel:"annuleren","Cancel searching":"Zoeken annuleren","Clear searchfield":"Zoekveld leeg maken","No results found.":"Geen resultaten gevonden.",Search:"Zoeken"},K={cancel:"cancelar","Cancel searching":"Cancelar pesquisa","Clear searchfield":"Limpar campo de pesquisa","No results found.":"Nenhum resultado encontrado.",Search:"Buscar"},G={cancel:"отменить","Cancel searching":"Отменить поиск","Clear searchfield":"Очистить поле поиска","No results found.":"Ничего не найдено.",Search:"Найти"},X={cancel:"zrušiť","Cancel searching":"Zrušiť vyhľadávanie","Clear searchfield":"Vymazať pole vyhľadávania","No results found.":"Neboli nájdené žiadne výsledky.",Search:"Vyhľadávanie"};h({cancel:"abbrechen","Cancel searching":"Suche abbrechen","Clear searchfield":"Suchfeld löschen","No results found.":"Keine Ergebnisse gefunden.",Search:"Suche"},"de"),h(U,"fa"),h(Y,"nl"),h(K,"pt_br"),h(G,"ru"),h(X,"sk");const J=function(){const e=this.opts.searchfield,t=this.conf.searchfield;let n=_(this.node.pnls,".mm-panel--search")[0];return n||(n=g("div.mm-panel--search"),oe(n,t.panel),e.title.length&&(n.dataset.mmTitle=this.i18n(e.title)),n.append(g("ul")),this._initPanel(n),n)},Q=function(e){const t=this.opts.searchfield;if(e.matches(t.addTo)){const t=e.matches(".mm-panel--search");if(!L(e,".mm-searchfield").length){const n=ee.call(this,t);t&&n.classList.add("mm-searchfield--cancelable"),e.prepend(n),te.call(this,n)}}if(t.splash.length&&e.matches(".mm-panel--search")&&!L(e,".mm-panel__splash").length){const n=g("div.mm-panel__splash");n.innerHTML=t.splash,e.append(n)}if(t.noResults.length&&!L(e,".mm-panel__noresults").length){const n=g("div.mm-panel__noresults");n.innerHTML=this.i18n(t.noResults),e.append(n)}},ee=function(e=!1){const t=this.opts.searchfield,n=this.conf.searchfield,s=g("form.mm-searchfield");oe(s,n.form);const i=g("div.mm-searchfield__input");s.append(i);const a=g("input");if(i.append(a),a.type="text",a.autocomplete="off",a.placeholder=this.i18n(t.placeholder),a.setAttribute("aria-label",this.i18n(t.placeholder)),oe(a,n.input),n.submit){const e=g("button.mm-btnreset.mm-btn.mm-btn--next.mm-searchfield__btn");e.type="submit",i.append(e)}else if(n.clear){const e=g("button.mm-btnreset.mm-btn.mm-btn--close.mm-searchfield__btn");e.type="reset",e.title=this.i18n("Clear searchfield"),i.append(e),s.addEventListener("reset",()=>{window.requestAnimationFrame(()=>{a.dispatchEvent(new Event("input"))})})}if(n.cancel&&e){const e=g("a.mm-searchfield__cancel");e.href="#",e.title=this.i18n("Cancel searching"),e.textContent=this.i18n("cancel"),s.append(e),e.addEventListener("click",e=>{e.preventDefault(),this.closePanel(_(this.node.pnls,".mm-panel--search")[0],!1)})}return s},te=function(e){const t=this.opts.searchfield,n=e.closest(".mm-panel")||L(this.node.pnls,".mm-panel--search")[0],s=L(e,"input")[0];let i=n.matches(".mm-panel--search")?L(this.node.pnls,t.searchIn):[n];i=i.filter(e=>!e.matches(".mm-panel--search"));const a=()=>{const a=s.value.toLowerCase().trim(),o=[];if(i.forEach(e=>{e.scrollTop=0,o.push(...L(e,".mm-listitem"))}),a.length){this.trigger("search:before"),e.classList.add("mm-searchfield--searching"),n.classList.add("mm-panel--searching"),o.forEach(e=>{const t=_(e,".mm-listitem__text")[0];var n;(!t||(n=t,[].slice.call(n.childNodes).filter(e=>!e.ariaHidden).map(e=>e.textContent).join(" ")).toLowerCase().indexOf(a)>-1)&&(e.dataset.mmSearchresult=a)});let t=0;t=n.matches(".mm-panel--search")?ne(n,a,i):ie(a,i),n.classList[0==t?"add":"remove"]("mm-panel--noresults"),this.trigger("search:after")}else this.trigger("clear:before"),e.classList.remove("mm-searchfield--searching"),n.classList.remove("mm-panel--searching","mm-panel--noresults"),n.matches(".mm-panel--search")?(se(n),t.splash||this.closePanel(n,!1,!1)):ae(i),this.trigger("clear:after")};s.addEventListener("input",a),a()},ne=(e,t,n)=>{const s=L(e,".mm-listview")[0];s.innerHTML="";let i=0;return n.forEach(e=>{const n=L(e,`[data-mm-searchresult="${t}"]`);if(i+=n.length,n.length){const t=L(e,".mm-navbar__title")[0];if(t){const e=g("li.mm-divider");e.innerHTML=t.innerHTML,s.append(e)}n.forEach(e=>{s.append(e.cloneNode(!0))})}}),i},se=e=>{L(e,".mm-listview")[0].innerHTML=""},ie=(e,t)=>{let n=0;return t.forEach(t=>{const s=L(t,`[data-mm-searchresult="${e}"]`);n+=s.length,s.length&&s.forEach(t=>{const n=((e,t)=>{let n=[],s=e.previousElementSibling;for(;s;)t&&!s.matches(t)||n.push(s),s=s.previousElementSibling;return n})(t,".mm-divider")[0];n&&(n.dataset.mmSearchresult=e)}),L(t,".mm-listitem, .mm-divider").forEach(t=>{t.classList[t.dataset.mmSearchresult===e?"remove":"add"]("mm-hidden")})}),n},ae=e=>{e.forEach(e=>{L(e,".mm-listitem, .mm-divider").forEach(e=>{e.classList.remove("mm-hidden")})})},oe=(e,t)=>{t&&Object.keys(t).forEach(n=>{e[n]=t[n]})};var le={add:!1,addTo:"panels"};var re={current:!0,hover:!1,parent:!1};var me={collapsed:{use:!1,blockMenu:!0},expanded:{use:!1,initial:"open"}};
O.addons={offcanvas:function(){this.opts.offCanvas=this.opts.offCanvas||{},this.conf.offCanvas=this.conf.offCanvas||{};const e=a(this.opts.offCanvas,A),t=a(this.conf.offCanvas,H);if(!e.use)return;const n=["left","left-front","right","right-front","top","bottom"];n.includes(e.position)||(e.position=n[0]),this._api.push("open","close","setPage"),this.bind("initMenu:before",()=>{t.clone&&(this.node.menu=this.node.menu.cloneNode(!0),this.node.menu.id&&(this.node.menu.id=m(this.node.menu.id)),L(this.node.menu,"[id]").forEach(e=>{e.id=m(e.id)})),this.node.wrpr=document.querySelector(t.menu.insertSelector),this.node.wrpr.classList.add("mm-wrapper--position-"+e.position),this.node.wrpr[t.menu.insertMethod](this.node.menu)}),O.node.blck||this.bind("initMenu:before",()=>{const e=g("a.mm-wrapper__blocker.mm-blocker.mm-slideout");e.id=l(),e.title=this.i18n(t.screenReader.closeMenu),e.tabIndex=0,document.querySelector(t.menu.insertSelector).append(e),O.node.blck=e}),this.bind("initMenu:after",()=>{this.setPage(O.node.page),this.node.menu.classList.add("mm-menu--offcanvas","mm-menu--position-"+e.position);let t=window.location.hash;if(t){let e=c(this.node.menu.id);e&&e==t.slice(1)&&setTimeout(()=>{this.open()},1e3)}}),document.addEventListener("click",e=>{var t;switch(null===(t=e.target.closest("a"))||void 0===t?void 0:t.getAttribute("href")){case"#"+c(this.node.menu.id):e.preventDefault(),this.open();break;case"#"+c(O.node.page.id):e.preventDefault(),this.close()}}),document.addEventListener("keyup",e=>{"Escape"==e.key&&this.close()}),document.addEventListener("focusin",e=>{var t,n;(null===(t=document.activeElement)||void 0===t?void 0:t.closest("#"+this.node.menu.id))&&!this.node.menu.matches(".mm-menu--opened")&&this.open(),(null===(n=document.activeElement)||void 0===n?void 0:n.closest("#"+this.node.menu.id))||this.node.wrpr.matches(".mm-wrapper--sidebar-expanded")||!this.node.menu.matches(".mm-menu--opened")||this.close()})},scrollBugFix:function(){if(!I||!this.opts.offCanvas.use)return;this.opts.scrollBugFix=this.opts.scrollBugFix||{};if(!a(this.opts.scrollBugFix,j).fix)return;const e=(e=>{let t="",n=null;return e.addEventListener("touchstart",e=>{1===e.touches.length&&(t="",n=e.touches[0].pageY)}),e.addEventListener("touchend",e=>{0===e.touches.length&&(t="",n=null)}),e.addEventListener("touchmove",e=>{if(t="",n&&1===e.touches.length){const s=e.changedTouches[0].pageY;s>n?t="down":s<n&&(t="up"),n=s}}),{get:()=>t}})(this.node.menu);this.node.menu.addEventListener("scroll",e=>{e.preventDefault(),e.stopPropagation()},{passive:!1}),this.node.menu.addEventListener("touchmove",t=>{let n=t.target.closest(".mm-panel, .mm-iconbar__top, .mm-iconbar__bottom");n&&n.closest(".mm-listitem--vertical")&&(n=((e,t)=>{let n=[],s=e.parentElement;for(;s;)n.push(s),s=s.parentElement;return t?n.filter(e=>e.matches(t)):n})(n,".mm-panel").pop()),n?(n.scrollHeight===n.offsetHeight||0==n.scrollTop&&"down"==e.get()||n.scrollHeight==n.scrollTop+n.offsetHeight&&"up"==e.get())&&t.stopPropagation():t.stopPropagation()},{passive:!1}),this.bind("open:after",()=>{var e=_(this.node.pnls,".mm-panel--opened")[0];e&&(e.scrollTop=0)}),window.addEventListener("orientationchange",e=>{var t=_(this.node.pnls,".mm-panel--opened")[0];t&&(t.scrollTop=0,t.style["-webkit-overflow-scrolling"]="auto",t.style["-webkit-overflow-scrolling"]="touch")})},theme:function(){this.opts.theme=this.opts.theme||"light",this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--theme-"+this.opts.theme)})},backButton:function(){if(this.opts.backButton=this.opts.backButton||{},!this.opts.offCanvas.use)return;const e=a(this.opts.backButton,q),t="#"+this.node.menu.id;if(e.close){var n=[];const e=()=>{n=[t],_(this.node.pnls,".mm-panel--opened, .mm-panel--parent").forEach(e=>{n.push("#"+e.id)})};this.bind("open:after",()=>{history.pushState(null,document.title,t)}),this.bind("open:after",e),this.bind("openPanel:after",e),this.bind("close:after",()=>{n=[],history.back(),history.pushState(null,document.title,location.pathname+location.search)}),window.addEventListener("popstate",e=>{if(this.node.menu.matches(".mm-menu--opened")&&n.length){var s=(n=n.slice(0,-1))[n.length-1];s==t?this.close():(this.openPanel(this.node.menu.querySelector(s)),history.pushState(null,document.title,t))}})}e.open&&window.addEventListener("popstate",e=>{this.node.menu.matches(".mm-menu--opened")||location.hash!=t||this.open()})},counters:function(){this.opts.counters=this.opts.counters||{};if(!a(this.opts.counters,R).add)return;const e=e=>{const t=this.node.pnls.querySelector("#"+e.dataset.mmParent);if(!t)return;const n=t.querySelector(".mm-counter");if(!n)return;const s=[];_(e,".mm-listview").forEach(e=>{s.push(..._(e,".mm-listitem"))}),n.innerHTML=E(s).length.toString()},t=new MutationObserver(t=>{t.forEach(t=>{"class"==t.attributeName&&e(t.target.closest(".mm-panel"))})});this.bind("initListview:after",t=>{const n=t.closest(".mm-panel"),s=this.node.pnls.querySelector("#"+n.dataset.mmParent);if(s){if(!L(s,".mm-counter").length){const e=g("span.mm-counter");e.ariaHidden="true";const t=_(s,".mm-btn")[0];null==t||t.prepend(e)}e(n)}}),this.bind("initListitem:after",e=>{const n=e.closest(".mm-panel");if(!n)return;this.node.pnls.querySelector("#"+n.dataset.mmParent)&&t.observe(e,{attributes:!0})})},iconbar:function(){this.opts.iconbar=this.opts.iconbar||{};const e=a(this.opts.iconbar,B);if(!e.use)return;let t;if(["top","bottom"].forEach((n,s)=>{let i=e[n];"array"!=o(i)&&(i=[i]);const a=g("div.mm-iconbar__"+n);for(let e=0,t=i.length;e<t;e++)"string"==typeof i[e]?a.innerHTML+=i[e]:a.append(i[e]);a.children.length&&(t||(t=g("div.mm-iconbar")),t.append(a))}),t){this.bind("initMenu:after",()=>{this.node.menu.prepend(t)});let n="mm-menu--iconbar-"+e.position,s=()=>{this.node.menu.classList.add(n)},i=()=>{this.node.menu.classList.remove(n)};if("boolean"==typeof e.use?this.bind("initMenu:after",s):S(e.use,s,i),"tabs"==e.type){t.classList.add("mm-iconbar--tabs"),t.addEventListener("click",e=>{const t=e.target.closest(".mm-iconbar__tab");if(t)if(t.matches(".mm-iconbar__tab--selected"))e.stopImmediatePropagation();else try{const n=L(this.node.menu,t.getAttribute("href")+".mm-panel")[0];n&&(e.preventDefault(),e.stopImmediatePropagation(),this.openPanel(n,!1))}catch(e){}});const e=n=>{L(t,"a").forEach(e=>{e.classList.remove("mm-iconbar__tab--selected")});const s=L(t,'[href="#'+n.id+'"]')[0];if(s)s.classList.add("mm-iconbar__tab--selected");else{const t=L(this.node.pnls,"#"+n.dataset.mmParent)[0];t&&e(t.closest(".mm-panel"))}};this.bind("openPanel:before",e)}}},iconPanels:function(){this.opts.iconPanels=this.opts.iconPanels||{};const e=a(this.opts.iconPanels,D);let t=!1;if("first"==e.visible&&(t=!0,e.visible=1),e.visible=Math.min(3,Math.max(1,e.visible)),e.visible++,e.add){this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--iconpanel")}),this.bind("initPanel:after",e=>{e.tabIndex=-1}),this.bind("initPanels:after",()=>{document.addEventListener("keyup",e=>{var t;if("Tab"===e.key&&(null===(t=document.activeElement)||void 0===t?void 0:t.closest(".mm-menu"))===this.node.menu){const t=document.activeElement.closest(".mm-panel");!document.activeElement.matches(".mm-panel__blocker")&&(null==t?void 0:t.matches(".mm-panel--parent"))&&(e.shiftKey?_(t,".mm-panel__blocker")[0].focus():_(this.node.pnls,".mm-panel--opened")[0].focus())}})});const n=["mm-panel--iconpanel-first","mm-panel--iconpanel-0","mm-panel--iconpanel-1","mm-panel--iconpanel-2","mm-panel--iconpanel-3"];t?this.bind("initMenu:after",()=>{var e;null===(e=_(this.node.pnls,".mm-panel")[0])||void 0===e||e.classList.add(n[0])}):this.bind("openPanel:after",t=>{if(t.parentElement.matches(".mm-listitem--vertical"))return;let s=_(this.node.pnls,".mm-panel");s=s.filter(e=>e.matches(".mm-panel--parent")),s.push(t),s=s.slice(-e.visible),s.forEach((e,t)=>{e.classList.remove(...n),e.classList.add("mm-panel--iconpanel-"+t)})}),this.bind("initPanel:after",t=>{if(e.blockPanel&&!t.parentElement.matches(".mm-listitem--vertical")&&!_(t,".mm-panel__blocker")[0]){const e=g("a.mm-blocker.mm-panel__blocker");e.href="#"+t.closest(".mm-panel").id,e.title=this.i18n(this.conf.screenReader.closeSubmenu),t.prepend(e)}}),this.bind("openPanel:after",e=>{_(this.node.pnls,".mm-panel").forEach(e=>{const t=_(e,".mm-panel__blocker")[0];null==t||t.classList[e.matches(".mm-panel--parent")?"add":"remove"]("mm-blocker--blocking")})})}},navbars:$,pageScroll:function(){this.opts.pageScroll=this.opts.pageScroll||{},this.conf.pageScroll=this.conf.pageScroll||{};const e=a(this.opts.pageScroll,Z),t=a(this.conf.pageScroll,W);var n;function s(){n&&window.scrollTo({top:n.getBoundingClientRect().top+document.scrollingElement.scrollTop-t.scrollOffset,behavior:"smooth"}),n=null}function i(e){try{if("#"==e.slice(0,1))return L(O.node.page,e)[0]}catch(e){}return null}if(this.opts.offCanvas.use&&e.scroll&&(this.bind("close:after",()=>{s()}),this.node.menu.addEventListener("click",e=>{var t,a;const o=(null===(a=null===(t=e.target)||void 0===t?void 0:t.closest("a[href]"))||void 0===a?void 0:a.getAttribute("href"))||"";(n=i(o))&&(e.preventDefault(),this.node.menu.matches(".mm-menu--sidebar-expanded")&&this.node.wrpr.matches(".mm-wrapper--sidebar-expanded")?s():this.close())})),e.update){let e=[];this.bind("initListview:after",t=>{const n=_(t,".mm-listitem");w(n).forEach(t=>{const n=i(t.getAttribute("href"));n&&e.unshift(n)})});let n=-1;window.addEventListener("scroll",s=>{const i=window.scrollY;for(var a=0;a<e.length;a++)if(e[a].offsetTop<i+t.updateOffset){if(n!==a){n=a;let t=_(this.node.pnls,".mm-panel--opened")[0],s=L(t,".mm-listitem"),i=w(s);i=i.filter(t=>t.matches('[href="#'+e[a].id+'"]')),i.length&&this.setSelected(i[0].parentElement)}break}},{passive:!0})}},searchfield:function(){this.opts.searchfield=this.opts.searchfield||{},this.conf.searchfield=this.conf.searchfield||{};const e=a(this.opts.searchfield,z);a(this.conf.searchfield,V);if(e.add){switch(e.addTo){case"panels":e.addTo=".mm-panel";break;case"searchpanel":e.addTo=".mm-panel--search"}switch(e.searchIn){case"panels":e.searchIn=".mm-panel"}this.bind("initPanel:after",t=>{t.matches(e.addTo)&&!t.closest(".mm-listitem--vertical")&&Q.call(this,t)}),this.bind("initMenu:after",()=>{const t=J.call(this);Q.call(this,t),L(this.node.menu,e.addTo).forEach(n=>{if(!n.matches(".mm-panel")){const s=ee.call(this,!0);n.append(s);const i=L(s,"input")[0];e.splash.length?(i.addEventListener("focusin",()=>{this.openPanel(t,!1,!1)}),this.bind("openPanel:after",e=>{e.matches(".mm-panel--search")?s.classList.add("mm-searchfield--cancelable"):s.classList.remove("mm-searchfield--cancelable")})):(this.bind("search:after",()=>{this.openPanel(t,!1,!1)}),i.addEventListener("focusout",()=>{i.value.length||this.closePanel(t,!1)})),te.call(this,s)}})}),this.bind("close:before",()=>{L(this.node.menu,".mm-searchfield input").forEach(e=>{e.blur()})})}},sectionIndexer:function(){this.opts.sectionIndexer=this.opts.sectionIndexer||{};a(this.opts.sectionIndexer,le).add&&this.bind("initPanels:after",()=>{if(!this.node.indx){let e="";"abcdefghijklmnopqrstuvwxyz".split("").forEach(t=>{e+='<a href="#">'+t+"</a>"});let t=g("div.mm-sectionindexer");t.innerHTML=e,this.node.pnls.prepend(t),this.node.indx=t,this.node.indx.addEventListener("click",e=>{e.target.matches("a")&&e.preventDefault()});let n=e=>{if(!e.target.matches("a"))return;const t=e.target.textContent,n=_(this.node.pnls,".mm-panel--opened")[0];let s=-1,i=n.scrollTop;n.scrollTop=0,L(n,".mm-divider").filter(e=>!e.matches(".mm-hidden")).forEach(e=>{s<0&&t==e.textContent.trim().slice(0,1).toLowerCase()&&(s=e.offsetTop)}),n.scrollTop=s>-1?s:i};I?(this.node.indx.addEventListener("touchstart",n),this.node.indx.addEventListener("touchmove",n)):this.node.indx.addEventListener("mouseover",n)}this.bind("openPanel:before",e=>{const t=L(e,".mm-divider").filter(e=>!e.matches(".mm-hidden")).length;this.node.indx.classList[t?"add":"remove"]("mm-sectionindexer--active")})})},setSelected:function(){this.opts.setSelected=this.opts.setSelected||{};const e=a(this.opts.setSelected,re);if("detect"==e.current){const e=t=>{t=t.split("?")[0].split("#")[0];const n=this.node.menu.querySelector('a[href="'+t+'"], a[href="'+t+'/"]');if(n)this.setSelected(n.parentElement);else{const n=t.split("/").slice(0,-1);n.length&&e(n.join("/"))}};this.bind("initMenu:after",()=>{e.call(this,window.location.href)})}else e.current||this.bind("initListview:after",e=>{_(e,".mm-listitem--selected").forEach(e=>{e.classList.remove("mm-listitem--selected")})});e.hover&&this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--selected-hover")}),e.parent&&(this.bind("openPanel:after",e=>{L(this.node.pnls,".mm-listitem--selected-parent").forEach(e=>{e.classList.remove("mm-listitem--selected-parent")});let t=e;for(;t;){let e=L(this.node.pnls,"#"+t.dataset.mmParent)[0];t=null==e?void 0:e.closest(".mm-panel"),e&&!e.matches(".mm-listitem--vertical")&&e.classList.add("mm-listitem--selected-parent")}}),this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--selected-parent")}))},sidebar:function(){if(!this.opts.offCanvas.use)return;this.opts.sidebar=this.opts.sidebar||{};const e=a(this.opts.sidebar,me);if(e.collapsed.use){this.bind("initMenu:after",()=>{if(this.node.menu.classList.add("mm-menu--sidebar-collapsed"),e.collapsed.blockMenu&&!this.node.blck){const e=g("a.mm-menu__blocker.mm-blocker");e.setAttribute("href","#"+this.node.menu.id),this.node.blck=e,this.node.menu.prepend(e),e.title=this.i18n(this.conf.offCanvas.screenReader.openMenu)}});const t=()=>{var e;this.node.wrpr.matches(".mm-wrapper--sidebar-collapsed")&&(null===(e=this.node.blck)||void 0===e||e.classList.add("mm-blocker--blocking"))},n=()=>{var e;null===(e=this.node.blck)||void 0===e||e.classList.remove("mm-blocker--blocking")};this.bind("open:after",n),this.bind("close:after",t);let s=()=>{this.node.wrpr.classList.add("mm-wrapper--sidebar-collapsed"),t()},i=()=>{this.node.wrpr.classList.remove("mm-wrapper--sidebar-collapsed"),n()};"boolean"==typeof e.collapsed.use?this.bind("initMenu:after",s):S(e.collapsed.use,s,i)}if(e.expanded.use){this.bind("initMenu:after",()=>{this.node.menu.classList.add("mm-menu--sidebar-expanded")});let t=!1,n=()=>{t=!0,this.node.wrpr.classList.add("mm-wrapper--sidebar-expanded"),this.open()},s=()=>{t=!1,this.node.wrpr.classList.remove("mm-wrapper--sidebar-expanded"),this.close()};"boolean"==typeof e.expanded.use?this.bind("initMenu:after",n):S(e.expanded.use,n,s),this.bind("close:after",()=>{t&&window.sessionStorage.setItem("mmenuExpandedState","closed")}),this.bind("open:after",()=>{t&&window.sessionStorage.setItem("mmenuExpandedState","open")});let i=e.expanded.initial;const a=window.sessionStorage.getItem("mmenuExpandedState");switch(a){case"open":case"closed":i=a}"closed"==i&&this.bind("init:after",()=>{this.close()})}}};t.default=O;window&&(window.Mmenu=O)}]);
!function(e,s){"use strict";var o=function(){var o={bcClass:"sf-breadcrumb",menuClass:"sf-js-enabled",anchorClass:"sf-with-ul",menuArrowClass:"sf-arrows"},t=function(){var s=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return s&&e("html").css("cursor","pointer").on("click",e.noop),s}(),n=function(){var e=document.documentElement.style;return"behavior"in e&&"fill"in e&&/iemobile/i.test(navigator.userAgent)}(),i=function(){return!!s.PointerEvent}(),r=function(e,s){var t=o.menuClass;s.cssArrows&&(t+=" "+o.menuArrowClass),e.toggleClass(t)},a=function(s,t){return s.find("li."+t.pathClass).slice(0,t.pathLevels).addClass(t.hoverClass+" "+o.bcClass).filter(function(){return e(this).children(t.popUpSelector).hide().show().length}).removeClass(t.pathClass)},l=function(e){e.children("a").toggleClass(o.anchorClass)},h=function(e){var s=e.css("ms-touch-action"),o=e.css("touch-action");o=o||s,o="pan-y"===o?"auto":"pan-y",e.css({"ms-touch-action":o,"touch-action":o})},u=function(s,o){var r="li:has("+o.popUpSelector+")";e.fn.hoverIntent&&!o.disableHI?s.hoverIntent(c,f,r):s.on("mouseenter.superfish",r,c).on("mouseleave.superfish",r,f);var a="MSPointerDown.superfish";i&&(a="pointerdown.superfish"),t||(a+=" touchend.superfish"),n&&(a+=" mousedown.superfish"),s.on("focusin.superfish","li",c).on("focusout.superfish","li",f).on(a,"a",o,p)},p=function(s){var o=e(this),t=m(o),n=o.siblings(s.data.popUpSelector);return t.onHandleTouch.call(n)===!1?this:void(n.length>0&&n.is(":hidden")&&(o.one("click.superfish",!1),"MSPointerDown"===s.type||"pointerdown"===s.type?o.trigger("focus"):e.proxy(c,o.parent("li"))()))},c=function(){var s=e(this),o=m(s);clearTimeout(o.sfTimer),s.siblings().superfish("hide").end().superfish("show")},f=function(){var s=e(this),o=m(s);t?e.proxy(d,s,o)():(clearTimeout(o.sfTimer),o.sfTimer=setTimeout(e.proxy(d,s,o),o.delay))},d=function(s){s.retainPath=e.inArray(this[0],s.$path)>-1,this.superfish("hide"),this.parents("."+s.hoverClass).length||(s.onIdle.call(v(this)),s.$path.length&&e.proxy(c,s.$path)())},v=function(e){return e.closest("."+o.menuClass)},m=function(e){return v(e).data("sf-options")};return{hide:function(s){if(this.length){var o=this,t=m(o);if(!t)return this;var n=t.retainPath===!0?t.$path:"",i=o.find("li."+t.hoverClass).add(this).not(n).removeClass(t.hoverClass).children(t.popUpSelector),r=t.speedOut;if(s&&(i.show(),r=0),t.retainPath=!1,t.onBeforeHide.call(i)===!1)return this;i.stop(!0,!0).animate(t.animationOut,r,"easeOutQuad",function(){var s=e(this);t.onHide.call(s)})}return this},show:function(){var e=m(this);if(!e)return this;var s=this.addClass(e.hoverClass),o=s.children(e.popUpSelector);return e.onBeforeShow.call(o)===!1?this:(o.stop(!0,!0).animate(e.animation,e.speed,"easeOutQuad",function(){e.onShow.call(o)}),this)},destroy:function(){return this.each(function(){var s,t=e(this),n=t.data("sf-options");return n?(s=t.find(n.popUpSelector).parent("li"),clearTimeout(n.sfTimer),r(t,n),l(s),h(t),t.off(".superfish").off(".hoverIntent"),s.children(n.popUpSelector).attr("style",function(e,s){return s.replace(/display[^;]+;?/g,"")}),n.$path.removeClass(n.hoverClass+" "+o.bcClass).addClass(n.pathClass),t.find("."+n.hoverClass).removeClass(n.hoverClass),n.onDestroy.call(t),void t.removeData("sf-options")):!1})},init:function(s){return this.each(function(){var t=e(this);if(t.data("sf-options"))return!1;var n=e.extend({},e.fn.superfish.defaults,s),i=t.find(n.popUpSelector).parent("li");n.$path=a(t,n),t.data("sf-options",n),r(t,n),l(i),h(t),u(t,n),i.not("."+o.bcClass).superfish("hide",!0),n.onInit.call(this)})}}}();e.fn.superfish=function(s,t){return o[s]?o[s].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof s&&s?e.error("Method "+s+" does not exist on jQuery.fn.superfish"):o.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window);
(function($){
"use strict";
var infinite_display='desktop';
if(typeof(window.matchMedia)=='function'){
$(window).on('resize infinite-set-display', function(){
if(window.matchMedia('(max-width: 419px)').matches){
infinite_display='mobile-portrait';
}else if(window.matchMedia('(max-width: 767px)').matches){
infinite_display='mobile-landscape'
}else if(window.matchMedia('(max-width: 959px)').matches){
infinite_display='tablet'
}else{
infinite_display='desktop';
}});
$(window).trigger('infinite-set-display');
}else{
$(window).on('resize infinite-set-display', function(){
if($(window).innerWidth() <=419){
infinite_display='mobile-portrait';
}else if($(window).innerWidth() <=767){
infinite_display='mobile-landscape'
}else if($(window).innerWidth() <=959){
infinite_display='tablet'
}else{
infinite_display='desktop';
}});
$(window).trigger('infinite-set-display');
}
var infinite_debounce=function(func, threshold, execAsap){
var timeout;
return function debounced(){
var obj=this, args=arguments;
function delayed(){
if(!execAsap){
func.apply(obj, args);
}
timeout=null;
};
if(timeout){
clearTimeout(timeout);
}else if(execAsap){
func.apply(obj, args);
}
timeout=setTimeout(delayed, threshold);
};}
var infinite_throttling=function(func, threshold){
var timeout;
return function throttled(){
var obj=this, args=arguments;
function delayed(){
func.apply(obj, args);
timeout=null;
};
if(!timeout){
timeout=setTimeout(delayed, threshold);
}};}
var infinite_sf_menu=function(menu){
if(menu.length==0) return;
this.main_menu=menu;
this.slide_bar=this.main_menu.children('.infinite-navigation-slide-bar');
this.slide_bar_val={ width: 0, left: 0 };
this.slide_bar_offset='15';
if(this.slide_bar.attr('data-size-offset')){
this.slide_bar_offset=parseInt(this.slide_bar.attr('data-size-offset'));
}
this.slide_bar_width=0;
if(this.slide_bar.attr('data-width')){
this.slide_bar_width=parseInt(this.slide_bar.attr('data-width'));
}
this.current_menu=this.main_menu.children('.sf-menu').children('.current-menu-item, .current-menu-ancestor').children('a');
this.init();
}
infinite_sf_menu.prototype={
init: function(){
var t=this;
t.sf_menu_mod();
if(typeof($.fn.superfish)=='function'){
t.main_menu.superfish({ delay: 400, speed: 'fast' });
t.sf_menu_position();
$(window).resize(infinite_debounce(function(){
t.sf_menu_position();
}, 300));
}
if(t.slide_bar.length > 0){
t.init_slidebar();
}},
sf_menu_mod: function(){
this.main_menu.find('.sf-mega > ul').each(function(){
var mega_content=$('<div></div>');
var mega_row=$('<div class="sf-mega-section-wrap" ></div>');
var mega_column_size=0;
$(this).children('li').each(function(){
var column_size=parseInt($(this).attr('data-size'));
if(mega_column_size + column_size  <=60){
mega_column_size +=column_size;
}else{
mega_column_size=column_size;
mega_content.append(mega_row);
mega_row=$('<div class="sf-mega-section-wrap" ></div>');
}
mega_row.append($('<div class="sf-mega-section" ></div>')
.addClass('infinite-column-' + column_size)
.html($('<div class="sf-mega-section-inner" ></div>')
.addClass($(this).attr('class'))
.attr('id', $(this).attr('id'))
.html($(this).html())
)
);
});
mega_content.append(mega_row);
$(this).replaceWith(mega_content.html());
});
},
sf_menu_position: function(){
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'||infinite_display=='tablet') return;
var body_wrapper=$('.infinite-body-wrapper');
var sub_normal_menu=this.main_menu.find('.sf-menu > li.infinite-normal-menu .sub-menu');
sub_normal_menu.css({display: 'block'}).removeClass('sub-menu-right sub-menu-left');
sub_normal_menu.each(function(){
if($(this).offset().left + $(this).width() > body_wrapper.outerWidth()){
$(this).addClass('sub-menu-right');
}else if($(this).offset().left < 0){
$(this).addClass('sub-menu-left');
}});
sub_normal_menu.css({display: 'none'});
this.main_menu.find('.sf-menu > li.infinite-mega-menu .sf-mega').each(function(){
if(!$(this).hasClass('sf-mega-full')){
$(this).css({ display: 'block' });
$(this).css({ right: '', 'margin-left': -(($(this).width() - $(this).parent().outerWidth()) / 2) });
if($(this).offset().left < 0){
$(this).css({ left: 0, 'margin-left': '' });
}else if($(this).offset().left + $(this).width() > $(window).width()){
$(this).css({ right: 0, 'margin-left': '' });
}
$(this).css({ display: 'none' });
}});
},
init_slidebar: function(){
var t=this;
t.init_slidebar_pos();
$(window).on('load', function(){ t.init_slidebar_pos(); });
t.main_menu.children('.sf-menu').children('li').on({
mouseenter: function(){
var nav_element=$(this).children('a');
if(nav_element.length > 0){
if(t.slide_bar_width > 0){
var sbw=t.slide_bar_width;
if(t.slide_bar.hasClass('infinite-left')){
var sbl=nav_element.position().left - t.slide_bar_offset;
}else{
var sbl=nav_element.position().left + ((nav_element.outerWidth() - sbw)/2) - t.slide_bar_offset;
}}else{
var sbw=nav_element.outerWidth() + (2 * t.slide_bar_offset);
var sbl=nav_element.position().left - t.slide_bar_offset;
}
t.slide_bar.animate({ width: sbw, left: sbl }, { queue: false, duration: 250 });
}},
mouseleave: function(){
t.slide_bar.animate({ width: t.slide_bar_val.width, left: t.slide_bar_val.left }, { queue: false, duration: 250 });
}});
$(window).on('resize', function(){ t.init_slidebar_pos(); });
$(window).on('infinite-navigation-slider-bar-init', function(){
t.current_menu=t.main_menu.children('.sf-menu').children('.current-menu-item, .current-menu-ancestor').children('a');
t.animate_slidebar_pos();
});
$(window).on('infinite-navigation-slider-bar-animate', function(){ t.animate_slidebar_pos(); });
},
init_slidebar_pos: function(){
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'||infinite_display=='tablet') return;
var t=this;
if(t.current_menu.length > 0){
if(t.slide_bar_width > 0){
var sbw=t.slide_bar_width;
if(t.slide_bar.hasClass('infinite-left')){
var sbl=t.current_menu.position().left - t.slide_bar_offset;
}else{
var sbl=t.current_menu.position().left + ((t.current_menu.outerWidth() - sbw)/2) - t.slide_bar_offset;
}}else{
var sbw=t.current_menu.outerWidth() + (2 * t.slide_bar_offset);
var sbl=t.current_menu.position().left - t.slide_bar_offset;
}
t.slide_bar_val={ width: sbw, left: sbl };}else{
t.slide_bar_val={ width: 0 }
var first_child=t.main_menu.children('ul').children('li:first-child');
if(typeof(first_child.position())!='undefined'){
t.slide_bar_val.left=first_child.position().left;
}else{
t.slide_bar_val.left=0;
}}
t.slide_bar.css({ width: t.slide_bar_val.width, left: t.slide_bar_val.left, display: 'block' });
},
animate_slidebar_pos: function(){
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'||infinite_display=='tablet') return;
var t=this;
if(t.current_menu.length > 0){
if(t.slide_bar_width > 0){
var sbw=t.slide_bar_width;
if(t.slide_bar.hasClass('infinite-left')){
var sbl=t.current_menu.position().left - t.slide_bar_offset;
}else{
var sbl=t.current_menu.position().left + ((t.current_menu.outerWidth() - sbw)/2) - t.slide_bar_offset ;
}}else{
var sbw=t.current_menu.outerWidth() + (2 * t.slide_bar_offset);
var sbl=t.current_menu.position().left - t.slide_bar_offset;
}
t.slide_bar_val={ width: sbw, left: sbl };}else{
t.slide_bar_val={ width: 0 }
var first_child=t.main_menu.children('ul').children('li:first-child');
if(typeof(first_child.position())!='undefined'){
t.slide_bar_val.left=first_child.position().left;
}else{
t.slide_bar_val.left=0;
}}
t.slide_bar.animate({ width: t.slide_bar_val.width, left: t.slide_bar_val.left }, { queue: false, duration: 250 });
}};
$.fn.infinite_mobile_menu=function(args){
var menu_button=$(this).siblings('.infinite-mm-menu-button');
if(typeof(Mmenu)!='undefined'){
$(this).find('a[href="#"]').each(function(){
var content=$(this).html();
$('<span class="infinite-mm-menu-blank" ></span>').html(content).insertBefore($(this));
$(this).remove();
});
var menu=new Mmenu($(this).get(0), {
navbar: {
title: '<span class="mmenu-custom-close" ></span>'
},
offCanvas: {
position: $(this).attr('data-slide')
}}, {
offCanvas: {
page: {
selector: ".infinite-body-outer-wrapper"
}}
});
var menu_api=menu.API;
if(menu_api){
menu_button.on('click', function(){
menu_api.open();
});
$(this).find('a').not('.mm-btn').on('click', function(){
menu_api.close();
});
$(this).find('.mmenu-custom-close').on('click', function(){
menu_api.close();
});
menu_api.bind('open:after', function($panel){
menu_button.addClass('infinite-active');
});
menu_api.bind('close:after', function($panel){
menu_button.removeClass('infinite-active');
});
}}
}
var infinite_overlay_menu=function(menu){
this.menu=menu;
this.menu_button=menu.children('.infinite-overlay-menu-icon');
this.menu_content=menu.children('.infinite-overlay-menu-content');
this.menu_close=this.menu_content.children('.infinite-overlay-menu-close');
this.init();
}
infinite_overlay_menu.prototype={
init: function(){
var t=this;
var delay_count=0;
t.menu_content.appendTo('body');
t.menu_content.find('ul.menu > li').each(function(){
$(this).css('transition-delay', (delay_count * 150) + 'ms');
delay_count++;
});
t.menu_button.on('click', function(){
$(this).addClass('infinite-active');
t.menu_content.fadeIn(200, function(){
$(this).addClass('infinite-active');
});
return false;
});
t.menu_close.on('click', function(){
t.menu_button.removeClass('infinite-active');
t.menu_content.fadeOut(400, function(){
$(this).removeClass('infinite-active');
});
t.menu_content.find('.sub-menu').slideUp(200).removeClass('infinite-active');
return false;
});
t.menu_content.find('a').on('click', function(e){
var sub_menu=$(this).siblings('.sub-menu');
if(sub_menu.length > 0){
if(!sub_menu.hasClass('infinite-active')){
var prev_active=sub_menu.closest('li').siblings().find('.sub-menu.infinite-active');
if(prev_active.length > 0){
prev_active.removeClass('infinite-active').slideUp(150);
sub_menu.delay(150).slideDown(400, 'easeOutQuart').addClass('infinite-active');
}else{
sub_menu.slideDown(400, 'easeOutQuart').addClass('infinite-active');
}
$(this).addClass('infinite-no-preload');
return false;
}else if($(this).attr('href')=='#'){
sub_menu.removeClass('infinite-active').slideUp(150);
}else{
$(this).removeClass('infinite-no-preload');
}}else{
t.menu_close.trigger('click');
}});
}};
var infinite_header_side_nav=function(side_nav){
if(side_nav.length==0) return;
this.prev_scroll=0;
this.side_nav=side_nav;
this.side_nav_content=side_nav.children();
this.init();
}
infinite_header_side_nav.prototype={
init: function(){
var t=this;
t.init_nav_bar_element();
$(window).resize(function(){
t.init_nav_bar_element();
});
$(window).scroll(function(){
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'||infinite_display=='tablet') return;
if(t.side_nav.hasClass('infinite-allow-slide')){
var admin_bar_height=parseInt($('html').css('margin-top'));
var scroll_down=($(window).scrollTop() > t.prev_scroll);
t.prev_scroll=$(window).scrollTop();
if(scroll_down){
if(!t.side_nav.hasClass('infinite-fix-bottom')){
if(t.side_nav.hasClass('infinite-fix-top')){
t.side_nav.css('top', t.side_nav.offset().top);
t.side_nav.removeClass('infinite-fix-top');
}else if($(window).height() + $(window).scrollTop() > t.side_nav_content.offset().top + t.side_nav_content.outerHeight()){
if(!t.side_nav.hasClass('infinite-fix-bottom')){
t.side_nav.addClass('infinite-fix-bottom');
t.side_nav.css('top', '');
}}
}}else{
if(!t.side_nav.hasClass('infinite-fix-top')){
if(t.side_nav.hasClass('infinite-fix-bottom')){
var top_pos=$(window).scrollTop() + ($(window).height() - admin_bar_height) - t.side_nav_content.outerHeight();
t.side_nav.css('top', top_pos);
t.side_nav.removeClass('infinite-fix-bottom');
}else if($(window).scrollTop() + admin_bar_height < t.side_nav_content.offset().top){
if(!t.side_nav.hasClass('infinite-fix-top')){
t.side_nav.addClass('infinite-fix-top');
t.side_nav.css('top', '');
}}
}}
}});
},
init_nav_bar_element: function(){
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'||infinite_display=='tablet') return;
var t=this;
var middle_pos=t.side_nav_content.children('.infinite-pos-middle').addClass('infinite-active');
var bottom_pos=t.side_nav_content.children('.infinite-pos-bottom').addClass('infinite-active');
t.side_nav_content.children('.infinite-pre-spaces').remove();
if($(window).height() < t.side_nav_content.height()){
t.side_nav.addClass('infinite-allow-slide');
}else{
t.side_nav.removeClass('infinite-allow-slide infinite-fix-top infinite-fix-bottom').css('top', '');
if(t.side_nav.hasClass('infinite-style-middle')){
middle_pos.each(function(){
var top_padding=parseInt($(this).css('padding-top'));
var prespace=((t.side_nav.height() - (t.side_nav_content.height() - top_padding)) / 2) - top_padding;
if(prespace > 0){
$('<div class="infinite-pre-spaces" ></div>').css('height', prespace).insertBefore($(this));
}});
}
bottom_pos.each(function(){
var prespace=t.side_nav.height() - t.side_nav_content.height();
if(prespace > 0){
$('<div class="infinite-pre-spaces" ></div>').css('height', prespace).insertBefore($(this));
}});
}}
};
var infinite_anchor=function(){
this.anchor_link=$('a[href*="#"]').not('[href="#"]').filter(function(){
if($(this).is('.infinite-mm-menu-button, .mm-btn, .mm-blocker, .mm-next, .mm-prev, .mm-title, .gdlr-core-ilightbox')){
return false;
}
if($(this).is('')){
return false;
}
if($(this).is('#cancel-comment-reply-link, .comment-reply-link, .fbx-btn-transition, .ti-header')){
return false;
}else if($(this).parent('.clearButton').length){
return false;
}
if($(this).is('[class*="wc-"]')){
return false;
}
if($(this).parent('.description_tab, .reviews_tab').length||$(this).not('[class^="infinite"]').closest('.woocommerce').length){
if(!$(this).closest('.menu-item').length){
return false;
}}
return true;
});
if(this.anchor_link.length||window.location.hash.length){
this.menu_anchor=$('#infinite-main-menu, #infinite-bullet-anchor');
this.home_anchor=this.menu_anchor.find('ul.sf-menu > li.current-menu-item > a, ul.sf-menu > li.current-menu-ancestor > a, .infinite-bullet-anchor-link.current-menu-item');
this.init();
}}
infinite_anchor.prototype={
init: function(){
var t=this;
t.animate_anchor();
t.scroll_section();
t.menu_anchor.filter('#infinite-bullet-anchor').each(function(){
$(this).css('margin-top', - t.menu_anchor.height() / 2).addClass('infinite-init');
});
var url_hash=window.location.hash;
if(url_hash){
setTimeout(function(){
var current_menu=t.menu_anchor.find('a[href*="' + url_hash + '"]');
if(!current_menu.is('.current-menu-item, .current-menu-ancestor')){
current_menu.addClass('current-menu-item').siblings().removeClass('current-menu-item current-menu-ancestor');
$(window).trigger('infinite-navigation-slider-bar-init');
}
t.scroll_to(url_hash, false, 300);
}, 500);
}},
animate_anchor: function(){
var t=this;
t.home_anchor.on('click', function(){
if(window.location.href==this.href){
$('html, body').animate({ scrollTop: 0 }, { duration: 1500, easing: 'easeOutQuart' });
return false;
}});
t.anchor_link.on('click', function(){
if(location.hostname==this.hostname&&location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')){
if($(this).closest('#infinite-main-menu').length){
$(this).parent().addClass('current-menu-item').siblings().removeClass('current-menu-item');
$(window).trigger('infinite-navigation-slider-bar-init');
}
return t.scroll_to(this.hash, true);
}});
},
scroll_to: function(hash, redirect, duration){
if(hash=='#infinite-top-anchor'){
var scroll_position=0;
}else{
var target=$(hash);
if(target.length){
var scroll_position=target.offset().top;
}}
if(typeof(scroll_position)!='undefined'){
scroll_position=scroll_position - parseInt($('html').css('margin-top'));
if(infinite_display=='mobile-portrait'||infinite_display=='mobile-landscape'){
scroll_position=scroll_position - 75;
}else if(typeof(window.infinite_anchor_offset)!='undefined'&&!isNaN(window.infinite_anchor_offset)){
scroll_position=scroll_position - parseInt(window.infinite_anchor_offset);
}
if(scroll_position < 0) scroll_position=0;
$(window).trigger('infinite-anchor-animate');
$('html, body').animate({ scrollTop: scroll_position }, { duration: 1500, easing: 'easeOutQuart', queue: false });
return false;
}else if(redirect){
window.location.href=$('body').attr('data-home-url') + hash;
return false;
}},
scroll_section: function(){
var t=this;
var menu_link_anchor=this.menu_anchor.find('a[href*="#"]').not('[href="#"]');
if(!menu_link_anchor.length){ return; }
var home_anchor_section=$('#infinite-page-wrapper');
var anchor_section=home_anchor_section.find('[id]').filter(function(){
var hashId=$(this).attr('id');
if(menu_link_anchor.filter('a[href*="#' + hashId + '"]').length){
return true;
}
return false;
});
if(!anchor_section.length){ return; }
menu_link_anchor.each(function(){
if($(this).closest('.sub-menu').length==0&&$(this.hash).length){
$(this).attr('data-anchor', this.hash);
}});
$(window).scroll(function(){
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'||infinite_display=='tablet') return;
if(t.home_anchor.length&&$(window).scrollTop() <=home_anchor_section.offset().top){
t.home_anchor.each(function(){
if($(this).hasClass('infinite-bullet-anchor-link')){
$(this).addClass('current-menu-item').siblings().removeClass('current-menu-item');
$(this).parent('.infinite-bullet-anchor').attr('data-anchor-section', 'infinite-home');
}else if(!$(this).parent('.current-menu-item, .current-menu-ancestor').length){
$(this).parent().addClass('current-menu-item').siblings().removeClass('current-menu-item current-menu-ancestor');
$(window).trigger('infinite-navigation-slider-bar-init');
}});
}else{
var section_position=$(window).scrollTop() + ($(window).height() / 2);
anchor_section.each(function(){
if($(this).css('display')=='none') return;
var top_offset_pos=$(this).offset().top;
if((section_position > top_offset_pos)&&(section_position <  top_offset_pos + $(this).outerHeight())){
var section_id=$(this).attr('id');
menu_link_anchor.filter('[data-anchor="#' +  section_id + '"]').each(function(){
if($(this).hasClass('infinite-bullet-anchor-link')){
$(this).addClass('current-menu-item').siblings().removeClass('current-menu-item');
$(this).parent('.infinite-bullet-anchor').attr('data-anchor-section', section_id);
}else if($(this).parent('li.menu-item').length&&!$(this).parent('li.menu-item').is('.current-menu-item, .current-menu-ancestor')){
$(this).parent('li.menu-item').addClass('current-menu-item').siblings().removeClass('current-menu-item current-menu-ancestor');
$(window).trigger('infinite-navigation-slider-bar-init');
}});
return false;
}});
}});
}};
var infinite_sticky_navigation=function(){
var t=this;
t.sticky_nav=$('.infinite-with-sticky-navigation .infinite-sticky-navigation');
t.mobile_menu=$('#infinite-mobile-header');
if(t.sticky_nav.hasClass('infinite-sticky-navigation-height')){
window.infinite_anchor_offset=t.sticky_nav.outerHeight();
$(window).resize(function(){
window.infinite_anchor_offset=t.sticky_nav.outerHeight();
});
}else if(t.sticky_nav.attr('data-navigation-offset')){
window.infinite_anchor_offset=parseInt(t.sticky_nav.attr('data-navigation-offset'));
}else if(t.sticky_nav.length){
window.infinite_anchor_offset=75;
}
if(t.sticky_nav.length){
t.init();
}
if(t.mobile_menu.hasClass('infinite-sticky-mobile-navigation')){
t.style_mobile_slide();
$(window).trigger('infinite-set-sticky-mobile-navigation');
}}
infinite_sticky_navigation.prototype={
init: function(){
var t=this;
if(t.sticky_nav.hasClass('infinite-style-fixed')){
t.style_fixed();
}else if(t.sticky_nav.hasClass('infinite-style-slide')){
t.style_slide();
}
$(window).trigger('infinite-set-sticky-navigation');
},
style_fixed: function(){
var t=this;
var placeholder=$('<div class="infinite-sticky-menu-placeholder" ></div>');
$(window).on('scroll infinite-set-sticky-navigation', function(){
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'||infinite_display=='tablet') return;
var page_offset=parseInt($('html').css('margin-top'));
if(!t.sticky_nav.hasClass('infinite-fixed-navigation')){
if($(window).scrollTop() + page_offset > t.sticky_nav.offset().top){
if(!t.sticky_nav.hasClass('infinite-without-placeholder')){
placeholder.height(t.sticky_nav.outerHeight());
}
placeholder.insertAfter(t.sticky_nav);
$('body').append(t.sticky_nav);
t.sticky_nav.addClass('infinite-fixed-navigation');
setTimeout(function(){ t.sticky_nav.addClass('infinite-animate-fixed-navigation'); }, 10);
setTimeout(function(){
t.sticky_nav.css('height', '');
$(window).trigger('infinite-navigation-slider-bar-animate');
}, 200);
}}else{
if($(window).scrollTop() + page_offset <=placeholder.offset().top){
if(!t.sticky_nav.hasClass('infinite-without-placeholder')){
t.sticky_nav.height(placeholder.height());
}
t.sticky_nav.insertBefore(placeholder);
t.sticky_nav.removeClass('infinite-fixed-navigation');
placeholder.remove();
setTimeout(function(){ t.sticky_nav.removeClass('infinite-animate-fixed-navigation'); }, 10);
setTimeout(function(){
t.sticky_nav.css('height', '');
$(window).trigger('infinite-navigation-slider-bar-animate');
}, 200);
}}
});
},
style_slide: function(){
var t=this;
var placeholder=$('<div class="infinite-sticky-menu-placeholder" ></div>');
$(window).on('scroll infinite-set-sticky-navigation', function(){
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'||infinite_display=='tablet'){ return; }
var page_offset=parseInt($('html').css('margin-top'));
if(!t.sticky_nav.hasClass('infinite-fixed-navigation')){
if($(window).scrollTop() + page_offset > t.sticky_nav.offset().top + t.sticky_nav.outerHeight() + 200){
if(!t.sticky_nav.hasClass('infinite-without-placeholder')){
placeholder.height(t.sticky_nav.outerHeight());
}
placeholder.insertAfter(t.sticky_nav);
t.sticky_nav.css('display', 'none');
$('body').append(t.sticky_nav);
t.sticky_nav.addClass('infinite-fixed-navigation infinite-animate-fixed-navigation');
t.sticky_nav.slideDown(200);
$(window).trigger('infinite-navigation-slider-bar-animate');
}}else{
if($(window).scrollTop() + page_offset <=placeholder.offset().top + placeholder.height() + 200){
var clone=t.sticky_nav.clone();
clone.insertAfter(t.sticky_nav);
clone.slideUp(200, function(){ $(this).remove(); });
t.sticky_nav.insertBefore(placeholder);
placeholder.remove();
t.sticky_nav.removeClass('infinite-fixed-navigation infinite-animate-fixed-navigation');
t.sticky_nav.css('display', 'block');
$(window).trigger('infinite-navigation-slider-bar-animate');
}}
});
},
style_mobile_slide: function(){
var t=this;
var placeholder=$('<div class="infinite-sticky-mobile-placeholder" ></div>');
$(window).on('scroll infinite-set-sticky-mobile-navigation', function(){
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'||infinite_display=='tablet'){
var page_offset=parseInt($('html').css('margin-top'));
if(!t.mobile_menu.hasClass('infinite-fixed-navigation')){
if($(window).scrollTop() + page_offset > t.mobile_menu.offset().top + t.mobile_menu.outerHeight() + 200){
placeholder.height(t.mobile_menu.outerHeight()).insertAfter(t.mobile_menu);
$('body').append(t.mobile_menu);
t.mobile_menu.addClass('infinite-fixed-navigation');
t.mobile_menu.css('display', 'none').slideDown(200);
}}else{
if($(window).scrollTop() + page_offset <=placeholder.offset().top + placeholder.height() + 200){
var clone=t.mobile_menu.clone();
clone.insertAfter(t.mobile_menu);
clone.slideUp(200, function(){ $(this).remove(); });
t.mobile_menu.insertBefore(placeholder);
placeholder.remove();
t.mobile_menu.removeClass('infinite-fixed-navigation');
t.mobile_menu.css('display', 'block');
}}
}});
},
};
var infinite_font_resize=function(){
this.heading_font=$('h1, h2, h3, h4, h5, h6');
this.init();
}
infinite_font_resize.prototype={
init: function(){
var t=this;
t.resize();
$(window).on('resize', infinite_throttling(function(){
t.resize();
}, 100));
},
resize: function(){
var t=this;
if(infinite_display=='mobile-landscape'||infinite_display=='mobile-portrait'){
t.heading_font.each(function(){
if(parseInt($(this).css('font-size')) > 40){
if(!$(this).attr('data-orig-font')){
$(this).attr('data-orig-font', $(this).css('font-size'));
}
$(this).css('font-size', '40px');
}});
}else{
t.heading_font.filter('[data-orig-font]').each(function(){
$(this).css('font-size', $(this).attr('data-orig-font'));
});
}}
};
function infinite_lightbox(content){
var lightbox_wrap=$('<div class="infinite-lightbox-wrapper" ></div>').hide();
var lightbox_content_wrap=$('<div class="infinite-lightbox-content-cell" ></div>');
lightbox_wrap.append(lightbox_content_wrap);
lightbox_content_wrap.wrap($('<div class="infinite-lightbox-content-row" ></div>'));
lightbox_content_wrap.append(content);
var scrollPos=$(window).scrollTop();
$('html').addClass('infinite-lightbox-on');
$('body').append(lightbox_wrap);
lightbox_wrap.fadeIn(300);
lightbox_wrap.on('click', '.infinite-lightbox-close', function(){
$('html').removeClass('infinite-lightbox-on');
$(window).scrollTop(scrollPos);
lightbox_wrap.fadeOut(300, function(){
$(this).remove();
});
});
}
$(document).ready(function(){
new infinite_font_resize();
$('#infinite-main-menu, #infinite-right-menu, #infinite-mobile-menu, #infinite-top-bar-menu').each(function(){
if($(this).children('nav').hasClass('ubermenu')) return;
if($(this).hasClass('infinite-overlay-menu')){
new infinite_overlay_menu($(this));
}else if($(this).hasClass('infinite-mm-menu-wrap')){
$(this).infinite_mobile_menu();
}else{
new infinite_sf_menu($(this));
}});
$('#infinite-top-search, #infinite-mobile-top-search').each(function(){
var search_wrap=$(this).siblings('.infinite-top-search-wrap');
search_wrap.appendTo('body');
$(this).on('click', function(){
search_wrap.fadeIn(200, function(){
$(this).addClass('infinite-active');
});
});
search_wrap.find('.infinite-top-search-close').on('click', function(){
search_wrap.fadeOut(200, function(){
$(this).addClass('infinite-active');
});
});
search_wrap.find('.search-submit').on('click', function(){
if(search_wrap.find('.search-field').val().length==0){
return false;
}});
});
$('#infinite-main-menu-cart, #infinite-mobile-menu-cart').each(function(){
$(this).on({
mouseenter: function(){
$(this).addClass('infinite-active infinite-animating');
},
mouseleave: function(){
var menu_cart=$(this);
menu_cart.removeClass('infinite-active');
setTimeout(function(){
menu_cart.removeClass('infinite-animating');
}, 400)
}});
});
if(typeof(wc_add_to_cart_params)!='undefined'){
$('body').on('added_to_cart updated_cart_totals wc_cart_emptied', function(){
$.ajax({
type: 'POST',
url: gdlr_core_pbf.ajax_url,
data: { 'action': 'top_bar_woocommerce_cart' },
dataType: 'json',
error: function(jqXHR, textStatus, errorThrown){
console.log(jqXHR, textStatus, errorThrown);
},
success: function(data){
if(typeof(data['count'])!='undefined'){
$('.infinite-top-cart-count').html(data['count']).css('display', 'block');
}
if(typeof(data['title'])!='undefined'){
$('.infinite-top-cart-title').replaceWith(data['title']);
}
if(typeof(data['cart-items'])!='undefined'){
$('.infinite-top-cart-item-wrap').replaceWith(data['cart-items']);
}}
});
});
}
$('#infinite-dropdown-infinite-flag').hover(function(){
$(this).children('.infinite-dropdown-infinite-list').fadeIn(200);
}, function(){
$(this).children('.infinite-dropdown-infinite-list').fadeOut(200);
});
$('.infinite-header-boxed-wrap, .infinite-header-background-transparent, .infinite-navigation-bar-wrap.infinite-style-transparent').each(function(){
var header_transparent=$(this);
var header_transparent_sub=$('.infinite-header-transparent-substitute');
header_transparent_sub.height(header_transparent.outerHeight());
$(window).on('load resize', function(){
header_transparent_sub.height(header_transparent.outerHeight());
});
});
$('body.error404, body.search-no-results').each(function(){
var wrap=$(this).find('#infinite-full-no-header-wrap');
var body_wrap_offset=parseInt($(this).children('.infinite-body-outer-wrapper').children('.infinite-body-wrapper').css('margin-bottom'));
var padding=($(window).height() - wrap.offset().top - wrap.outerHeight() - body_wrap_offset) / 2;
if(padding > 0){
wrap.css({ 'padding-top': padding, 'padding-bottom': padding });
}
$(window).on('load resize', function(){
wrap.css({ 'padding-top': 0, 'padding-bottom': 0 });
padding=($(window).height() - wrap.offset().top - wrap.outerHeight() - body_wrap_offset) / 2;
if(padding > 0){
wrap.css({ 'padding-top': padding, 'padding-bottom': padding });
}});
});
var back_to_top=$('#infinite-footer-back-to-top-button');
if(back_to_top.length){
$(window).on('scroll', function(){
if($(window).scrollTop() > 300){
back_to_top.addClass('infinite-scrolled');
}else{
back_to_top.removeClass('infinite-scrolled');
}});
}
$('body').children('#infinite-page-preload').each(function(){
var page_preload=$(this);
var animation_time=parseInt(page_preload.attr('data-animation-time'));
$('a[href]').not('[href^="tel:"], [href^="mailto:"], [href^="#"], [href^="mailto:"], [target="_blank"], .gdlr-core-js, .strip, .sf-with-ul, .remove, .ajax_add_to_cart, .comment-reply-link').on('click', function(e){
if(e.which!=1||$(this).hasClass('infinite-no-preload')||e.ctrlKey||e.metaKey) return;
if($(this).closest('.modula').length) return;
if($(this).prop("hash")&&$($(this).prop("hash")).length) return;
if(window.location.href!=this.href){
page_preload.addClass('infinite-out').fadeIn(animation_time);
}});
$(window).on('load', function(){
page_preload.fadeOut(animation_time);
});
});
$('body.infinite-blog-style-2 .infinite-single-nav-area').each(function(){
var max_height;
var single_nav_2=$(this).children();
max_height=0;
single_nav_2.css('min-height', '0px');
single_nav_2.each(function(){
if(max_height < $(this).outerHeight()){
max_height=$(this).outerHeight();
}});
single_nav_2.css('min-height', max_height);
$(window).resize(function(){
max_height=0;
single_nav_2.css('min-height', '0px');
single_nav_2.each(function(){
if(max_height < $(this).outerHeight()){
max_height=$(this).outerHeight();
}});
single_nav_2.css('min-height', max_height);
});
});
$('[data-infinite-lb]').click(function(){
var lb_content=$(this).siblings('[data-infinite-lb-id="' + $(this).attr('data-infinite-lb') + '"]');
infinite_lightbox(lb_content.clone());
});
$('#infinite-float-social').each(function(){
var float_social_item=$(this);
var pb_body=$('.gdlr-core-page-builder-body');
var footer=$('footer');
var content_area=$('.infinite-page-wrapper');
var content_offset=0;
content_offset +=parseInt($('html').css('margin-top'));
$(window).on('scroll float-social', function(){
if(float_social_item.hasClass('infinite-display-after-title')){
var blog_offset=0;
content_area.children('.infinite-blog-title-wrap').each(function(){ blog_offset=$(this).outerHeight(); });
if(float_social_item.offset().top >=content_area.offset().top + blog_offset - content_offset){
float_social_item.animate({'opacity': 1}, {duration: 100, queue: false});
}else{
float_social_item.animate({'opacity': 0}, {duration: 100, queue: false});
}}
var section='';
var fs_pos=$(window).scrollTop() + $(window).height() / 2;
if(fs_pos > footer.offset().top){
section='footer';
}else{
pb_body.children().each(function(){
if(!$(this).attr('data-float-social')) return;
if(fs_pos > $(this).offset().top&&fs_pos <  $(this).offset().top + $(this).outerHeight()){
section=$(this).attr('data-float-social');
}});
}
float_social_item.attr('data-section', section);
});
$(window).on('load', function(){
$(window).trigger('float-social');
});
});
$('#infinite-side-content-menu').each(function(){
var side_content_menu=$(this);
var menu_button=$('.infinite-side-content-menu-button');
menu_button.on('click', function(){
side_content_menu.fadeIn(300);
side_content_menu.addClass('infinite-active');
});
side_content_menu.on('click', '.infinite-side-content-menu-close', function(){
side_content_menu.removeClass('infinite-active');
side_content_menu.fadeOut(300);
});
});
});
$(window).on('pageshow', function(event){
$('body').children('#infinite-page-preload').each(function(){
$(this).fadeOut(400);
});
});
$(window).on('load', function(){
$('#infinite-fixed-footer').each(function(){
var fixed_footer=$(this);
var placeholder=$('<div class="infinite-fixed-footer-placeholder" ></div>');
placeholder.insertBefore(fixed_footer);
placeholder.height(fixed_footer.outerHeight());
$('body').css('min-height', $(window).height() - parseInt($('html').css('margin-top')));
$(window).resize(function(){
placeholder.height(fixed_footer.outerHeight());
$('body').css('min-height', $(window).height() - parseInt($('html').css('margin-top')));
});
});
new infinite_header_side_nav($('#infinite-header-side-nav'));
new infinite_sticky_navigation();
new infinite_anchor();
$('body').trigger('updated_cart_totals');
});
})(jQuery);