vendor: 5,359 bytes, lines 1-9
1/*! 2 * jQuery UI Effects 1.14.2 3 * https://jqueryui.com 4 * 5 * Copyright OpenJS Foundation and other contributors 6 * Released under the MIT license. 7 * https://jquery.org/license 8 */ 9!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-",p="ui-effects-style",h="ui-effects-animated";function m(t){for(var e,n=t.ownerDocument.defaultView.getComputedStyle(t),i={},o=n.length;o--;)"string"==typeof n[e=n[o]]&&(i[e.replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()})]=n[e]);return i}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.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(h)||e(t)})),!0===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.14.2",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
9: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(p,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(p)||"",t.removeData(p)},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(h,!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(),!0!==u.uiBackCompat||s?"none"===i.mode?(e[a](),n()):o.call(e[0],i,function(){e.removeData(h),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});; 10/*! 11 * jQuery UI Effects Slide 1.14.2 12 * https://jqueryui.com 13 * 14 * Copyright OpenJS Foundation and other contributors 15 * Released under the MIT license. 16 * https://jquery.org/license 17 */ 18!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})})});; 19(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))} 20return{name:match[1]||"",version:ver,}} 21function mouseLeft(el){if(!window.PIE||!PIE.Element)return;var pie=PIE.Element.getInstance(el[0]);if(pie){pie.mouseLeft(!0)}} 22function mouseEntered(el){if(!window.PIE||!PIE.Element)return;var pie=PIE.Element.getInstance(el[0]);if(pie){pie.mouseEntered(!0)}} 23function getEffectForLevel(level){switch(level){case 0:return params.effectSub;break;default:return params.effectRest;break}} 24function showMenu(liItem,callback){var self=liItem;if(!callback)callback=function(){};if($(self).find("ul").data("hideTimeout")){clearTimeout($(self).find("ul").data("hideTimeout"))} 25var level=getButtonLevel(self);var effectObj=getEffectForLevel(level);if(!effectObj){effectObj={name:"none",}} 26var effectOpts={duration:effectObj.duration*1,easing:effectObj.easing,direction:effectObj.direction,};var checkIfVisible=!0;var submenu=$(self).find(">ul");
26if(submenu.length==0){if($(self).children(".ui-effects-wrapper").length>0){checkIfVisible=!1;submenu=$(self).find(".ui-effects-wrapper >ul")}} 27if(checkIfVisible&&submenu.is(":visible")){return} 28var 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())}} 29switch(effectObj.name){case "none":submenu.show();break;case "bounce":if($(self).parent().is(":animated")){return} 30case "blind":case "explode":case "clip":case "drop":case "fold":case "slide":if($(self).find("ul").is(":animated")){$(self).find("ul").removeAttr("style")} 31if(submenu.data("hideTimeout")){clearTimeout(submenu.data("hideTimeout"));submenu.removeData("hideTimeout")} 32$(self).siblings().find("ul").stop(!1,!0);window.setTimeout(function(){if(submenu.css("display")!="none"&&!submenu.is(":animated")){return} 33submenu.stop(!1,!0);if(effectObj.useFade!=="false"){submenu.fadeIn({duration:effectOpts.duration*2,queue:!1,}).css("display","none")} 34if(effectOpts.direction==="left"&&submenu.closest("[data-direction=right]").length){effectOpts.direction="right"} 35submenu.show(effectObj.name,effectOpts,function(){if(effectObj.name=="fold"){$(this).css({position:"",left:"",top:"",right:"",bottom:"",})}})},5);break;case "fade":uls.stop(!0,!0);submenu.show(effectObj.name,effectOpts);break;default:uls.stop(!0,!1);window.setTimeout(function(){submenu.show(effectObj.name,effectOpts)},5)}} 36function hideMenu(liItem,callback){var self=liItem;if(!callback)callback=function(){};var level=getButtonLevel(self);var effectObj=getEffectForLevel(level);if(!effectObj){effectObj={name:"none",}} 37var 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"} 38var submenu=$(self).find("ul");if(submenu.length==0){if($(self).children(".ui-effects-wrapper").length>0){submenu=$(self).find(".ui-effects-wrapper >ul")}} 39switch(effectObj.name){case "none":submenu.hide();callback();break;case "bounce":if($(self).parent().is(":animated")){return} 40case "blind":case "explode":case "clip":case "drop":case "fold":case "slide":submenu.stop(!1,!0);if(submenu.data("hideTimeout")){clearTimeout(submenu.data("hideTimeout"))} 41var timeout=window.setTimeout(function(){submenu.stop(!1,!0);submenu.find("ul").hide();if(effectObj.useFade!=="false"){submenu.fadeOut({duration:effectOpts.duration*1.4,queue:!1,})} 42submenu.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(!0,!0);$(self).find("ul").hide(effectObj.name,effectOpts,function(){callback()});break;default:uls.stop(!0,!1);if(submenu.data("hideTimeout")){clearTimeout($(self).find("ul").data("hideTimeout"))} 43var timeout=window.setTimeout(function(){submenu.hide(effectObj.name,effectOpts,function(){callback()})},100);submenu.data("hideTimeout",timeout)}} 44$(menu).find("li").mouseenter(function(ev){ev.preventDefault();ev.stopImmediatePropagation();var self=this;clearTimeout(timeout);try{$(this).siblings().each(function(){hideMenu($(this))})}catch(e){} 45showMenu($(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)}})} 46function unbindEffect(name){var menu=$("ul.fm2_"+name);$(menu).find("li").unbind("mouseenter");$(menu).find("li").unbind("mouseleave")} 47function 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++} 48selectedNode=$(selectedNode).parent()}}catch(e){} 49return upULSNo} 50function destroy(){window.flexiCssMenus={}} 51function 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)}}} 52function checkForButtonSelect(menu,location){var selected=!1;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}}} 53url=(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")}} 54function addSelectedClass(name){var currentPage=window.location.href;var menu=$("ul.fm2_"+name);checkForButtonSelect(menu,currentPage)} 55function alignMenu(name,options){if(!options||!options.align||options.align=="left"){return} 56var align=options.align;var menu=$("ul.fm2_"+name);var container=menu.parent();switch(align){case "center":var containerWidth=$(container).outerWidth(!0,!1);$(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",})}}} 57if(!window.flexiCssMenus)window.flexiCssMenus={};window.flexiCssMenus.bindEffect=bindEffect;window.flexiCssMenus.addSelectedClass=addSelectedClass;window.flexiCssMenus.unbindEffect=unbindEffect;
57window.flexiCssMenus.alignMenu=alignMenu})(jQuery);(function($){var CSSMenus;if(!CSSMenus){CSSMenus=new Object()} 58CSSMenus.UserAgent=navigator.userAgent.toLowerCase();CSSMenus.IsMobile=function(viewportWidth,maxWidth){if(window.navMenuForceDesktop){return!1} 59var 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} 60return deviceMatch||sizeMatch};CSSMenus.IsTablet=function(viewportWidth,minWidth,maxWidth){if(window.navMenuForceDesktop){return!1} 61var 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} 62return 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)},!1);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!1}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!1} 63return!0}else{$("#"+Name+"_container").show();$("#fm2_"+Name+"_mobile_button").hide()} 64return!1} 65function 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)}} 66if(children[i].tagName&&children[i].tagName.toLowerCase()=="ul"&&flexiCSSMenus_getButtonLevel($(children[i]))>0&&options.tabletCloseBtnEnable!=!1){var closeLabel;if(options.tabletCloseBtnLabel){closeLabel=options.tabletCloseBtnLabel}else{closeLabel="Close"} 67var 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)}} 68xtdSetTabletBehavior(children.get(i),options)}} 69function xtdUnsetTabletBehavior(elem){var children=$(elem).children();for(var i=0;i<children.length;i++){children.eq(i).unbind("click");xtdUnsetTabletBehavior(children.get(i))}} 70CSSMenus.flexiCSSMenus_currentButton=undefined;CSSMenus.flexiCSSMenus_currentLevel=-1;function flexiCSSMenus_mouseEnterHandlerForIpad(event){} 71function 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} 72event.preventDefault();var node,level;try{level=flexiCSSMenus_getButtonLevel($(this))}catch(e){alert("error 2")} 73if(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--} 74node=node.parent()}} 75flexiCSSMenus_selectButton($(CSSMenus.flexiCSSMenus_currentButton));CSSMenus.flexiCSSMenus_currentLevel=level;return} 76if(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){} 77return} 78if(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--}} 79CSSMenus.flexiCSSMenus_currentButton=$(this);CSSMenus.flexiCSSMenus_currentLevel=level;flexiCSSMenus_selectButton($(CSSMenus.flexiCSSMenus_currentButton));return}} 80function 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){} 81if(level>0){CSSMenus.flexiCSSMenus_currentButton=parentNode.parent().parent()}else{CSSMenus.flexiCSSMenus_currentButton=undefined} 82CSSMenus.flexiCSSMenus_currentLevel=level-1} 83function 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)} 84submenu.find("li").css("position","relative")}}}catch(e){}} 85function 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)}} 86function 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++} 87selectedNode=$(selectedNode).parent()}}catch(e){} 88return upULSNo} 89function 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){} 90return selectedNode} 91function showSubmenu(el){var uls=$("#"+CSSMenus.name+"_container").find("ul");if(el.is(":animated")||el.get(0)==$("#"+CSSMenus.name).get(0)){return} 92if(flexiCssMenus.settings.effect=="none"){el.show()}else{el.show(flexiCssMenus.settings.effect,flexiCssMenus.settings.options,200)}}
93function hideSubmenu(el){function hide(){if(el.is(":animated")||el.get(0)==$("#"+CSSMenus.name).get(0)){return} 94if(flexiCssMenus.settings.effect&&flexiCssMenus.settings.effect!="none"){el.hide(flexiCssMenus.settings.effect,flexiCssMenus.settings.options,200)}else{el.hide()}} 95setTimeout(hide,500)} 96function 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=!1;var mainMenuHeader=null;var presets={fixed:{effect:"fade",overlay:!0,},relative:{effect:"slideUp",overlay:!0,},push:{effect:"slideLeft",overlay:!1,},};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]}} 97window.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))} 98if(Options.preset!="relative"){if(Options.preset=="push"){MainMenu.style.marginTop=parseInt($(mainMenuHeader).outerHeight(!0))+"px"} 99var 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"}} 100$(MainContainer).hide();UpdateLinks();GetCurrentItem();Self.Update()} 101this.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(!0,!0);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(!0,Options,Value);Self.Update()};this.Update=function(){if($(Container).children("ul").length==1){$(Header).
101children("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'>▼</span><span class='caption'>Menu</span>";MenuButton.setAttribute("href","#");MenuButton.setAttribute("id","fm2_"+MenuName+"_mobile_button");$(MenuButton).addClass("fm2_mobile_button").appendTo(Parent)} 102$(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)})} 103function 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} 104function 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} 105function 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)} 106function 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>")} 107AElement.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)} 108ULElement.appendChild(LiElement)});return ULElement} 109function 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} 110event.preventDefault();event.stopPropagation();if(elem.data().smoothscroll){if(!elem.data("onepage-section")&&window.smoothScrollGetAnchors){window.smoothScrollGetAnchors()} 111Visible=!1;Self.Show(Visible);elem.trigger("click.onepage");return} 112if(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")} 113$(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")})}} 114function destroy(){$(".mobile_menu_button").remove();$(".mobile-overlay").remove();$(".fm2_mobile_jq_menu").remove();$("body").unbind("touchmove");
114if(window.flexiCssMenus.presetSettings&&window.flexiCssMenus.presetSettings.effect=="slideLeft"){$("body").stop(!0,!0).css({"margin-left":"0",width:"auto",})}} 115if(!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))} 116return{name:match[1]||"",version:ver,}} 117function 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""}}}} 118var 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,!1)}else if(element.attachEvent){element.attachEvent("on"+type,listener)}}})(jQuery);function registerFlexiCSSMenu(name,settings){flexiCssMenus.settings=settings;if(jQuery("#"+name+"_container").length==0){return} 119jQuery("#"+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=[]} 120if(window.flexiCssMenus.browser.name=="msie"&&window.flexiCssMenus.browser.version<9){settings.effectRest=null;settings.effectSub=null;settings.effectSubTwo=null} 121registeredFlexiMenus.push({name:name,settings:settings,});jQuery("#"+name+"_container").removeAttr("style");if(!settings.options.enableMobile){jQuery(document).ready(function(){jQuery(".fm2_mobile_button").hide()})} 122if(!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)})} 123jQuery(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} 124clearTimeout(id);id=setTimeout(doneResizing,100)});if(!window.registeredFlexiMenus){window.registeredFlexiMenus=[]} 125function 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)}} 126for(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)}}} 127var correctedViewportW=(function(win,docElem){var mM=win["matchMedia"]||win["msMatchMedia"],client=docElem.clientWidth,inner=win["innerWidth"];return mM&&client<inner&&!0===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); 128!function(window,document,$){"use strict";var Typed=function(el,options){var self=this;this.el=el;this.options={};
128Object.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?!1: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} 129this.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=!1;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===!0){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)} 130if(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)})} 131this.init()},typewrite:function(curString,curStrPos){if(this.stop===!0){return} 132if(this.fadeOut&&this.el.classList.contains(this.fadeOutClass)){this.el.classList.remove(this.fadeOutClass);this.cursor.classList.remove(this.fadeOutClass)} 133var 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];
133skip+=substr.length;charPause=parseInt(substr)} 134curString=curString.substring(0,curStrPos)+curString.substring(curStrPos+skip)} 135if(self.contentType==='html'){var curChar=curString.substr(curStrPos).charAt(0);if(curChar==='<'){var tag='';var endTag='';if(curChar==='<'){endTag='>'}else{endTag=';'} 136while(curString.substr(curStrPos+1).charAt(0)!==endTag){tag+=curString.substr(curStrPos).charAt(0);curStrPos++;if(curStrPos+1>curString.length){break}} 137curStrPos++;tag+=endTag}} 138self.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===!1||self.curLoop===self.loopCount) 139return} 140self.timeout=setTimeout(function(){self.backspace(curString,curStrPos)},self.backDelay)}else{if(curStrPos===0){self.options.preStringTyped(self.arrayPos)} 141var 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}} 142curStrPos++;self.typewrite(curString,curStrPos)}},charPause)},humanize)},backspace:function(curString,curStrPos){var self=this;if(this.stop===!0){return} 143if(this.fadeOut){this.initFadeOut();return} 144var 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}} 145curStrPos--;tag+='<'}} 146var 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('') 147self.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} 148return 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)} 149this.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()} 150element._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()} 151$this.data('typed',(data=new Typed(this,options)));if(typeof option=='string')data[option]();})}} 152window.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:!1,backDelay:500,fadeOut:!1,fadeOutClass:'typed-fade-out',fadeOutDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,contentType:'html',callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window,document,window.jQuery); 153if("ontouchstart" in window){document.documentElement.className=document.documentElement.className+" touch-enabled"} 154if(navigator.userAgent.match(/(iPod|iPhone|iPad|Android)/i)){document.documentElement.className=document.documentElement.className+" no-parallax"} 155jQuery(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} 156jQuery('.header-homepage, .header').backstretch(images,one_page_express_backstretch)} 157var masonry=$(".post-list-c");if(masonry.length){masonry.masonry({itemSelector:'.post-list-item',percentPosition:!0,});masonry.find('img').each(function(){setTimeout(function(){masonry.data().masonry.layout()},500)})} 158$('.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()}} 159images.each(function(){$(this).on('load',imageLoaded)});var morphed=$("[data-text-effect]");
159if(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:!0})})}})(jQuery);(function($){$(document).ready(()=>{$('#opex-overlap-custom-background-to-remove').remove()})})(jQuery); 160var fixto=(function($,window,document){/*! Computed Style - v0.1.0 - 2012-07-19 161 * https://github.com/bbarakaci/computed-style 162 * Copyright (c) 2012 Burak Barakaci; Licensed MIT */ 163var 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} 164return 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)} 165MimicNode.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} 166return{MimicNode:MimicNode,computedStyle:computedStyle}}());function Prefix(){this._vendor=null} 167Prefix.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!1}},propertySupported:function(prop){return document.documentElement.style[prop]!==undefined},getJsProperty:function(prop){if(this.propertySupported(prop)){return prop} 168if(this._vendor){return this._prefixJsProperty(this._vendor,prop)} 169var 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}} 170return null},getCssValue:function(prop,value){var dummy=document.createElement('div');var jsProperty=this.getJsProperty(prop);if(this._valueSupported(jsProperty,value,dummy)){return value} 171var prefixedValue;if(this._vendor){prefixedValue=this._prefixValue(this._vendor,value);if(this._valueSupported(jsProperty,prefixedValue,dummy)){return prefixedValue}} 172for(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}} 173return null}};var prefix=new Prefix();var transformJsProperty=prefix.getJsProperty('transform');var fixedPositioningContext;function checkFixedPositioningContextSupport(){var support=!1;var parent=document.createElement('div');var child=document.createElement('div');parent.appendChild(child);
173parent.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=!0} 174document.body.removeChild(parent);return support} 175var 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])} 176function FixTo(child,parent,options){this.child=child;this._$child=$(child);this.parent=parent;this.options={className:'fixto-fixed',top:0};this._setOptions(options)} 177FixTo.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)}}} 178return top},stop:function(){this._stop();this._running=!1},start:function(){if(!this._running){this._start();this._running=!0}},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)} 179if(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();
179this._saveViewportHeight();this._proxied_onscroll=this._bind(this._onscroll,this);this._proxied_onresize=this._bind(this._onresize,this);this.start()} 180FixToContainer.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}} 181this._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)}} 182diff=(this._parentBottom-this._scrollTop)-(this.child.offsetHeight+computedStyle.toFloat(childStyles.marginBottom)+mindTop+this.options.top);if(diff>0){diff=0} 183if(this.options.toBottom){}else{var _top=this.options.top;if(_top===0){_top=$('body').offset().top} 184this.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} 185return 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} 186styles=computedStyle.getAll(parent);if(styles[transformJsProperty]!=='none'){context=parent;break} 187element=parent} 188return 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 189this._saveStyles();if(document.documentElement.currentStyle){width=(child.offsetWidth) 190if(childStyles.boxSizing!=="border-box"){width=width-(computedStyle.toFloat(childStyles.paddingLeft)+computedStyle.toFloat(childStyles.paddingRight)+computedStyle.toFloat(childStyles.borderLeftWidth)+computedStyle.toFloat(childStyles.borderRightWidth))} 191width+="px"} 192if(fixedPositioningContext){var context=this._getContext();left=this._$child.offset().left} 193this._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} 194childStyle.top=this._mindtop()+_top-computedStyle.toFloat(childStyles.marginTop)+'px'} 195this._$child.addClass(this.options.className);this.fixed=!0;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=!1},_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=""} 196this._childOriginalWidth=childStyle.width;this._childOriginalLeft=childStyle.left},_onresize:function(){this.refresh()}
196,_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()} 197NativeSticky.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!==!1)){return new NativeSticky(childElement,parentElement,options)}else if(fixedPositionValue){if(fixedPositioningContext===undefined){fixedPositioningContext=checkFixedPositioningContextSupport()} 198return new FixToContainer(childElement,parentElement,options)}else{return'Neither fixed nor sticky positioning supported'}};if(ieversion<8){fixTo=function(){return'not supported'}} 199$.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)} 200i++})};return{FixToContainer:FixToContainer,fixTo:fixTo,computedStyle:computedStyle,mimicNode:mimicNode}}(window.jQuery,window,document)); 201(function(){jQuery(document).ready(function($){var dataprefix="data-sticky";function attrName(name){return name?dataprefix+"-"+name:dataprefix} 202var stickyElements=$('['+dataprefix+']');stickyElements.each(function(index,el){var $el=$(el);if($el.data('stickData')){return} 203var distance=parseInt($el.attr(attrName()));var stickyOnMobile=$el.attr(attrName("mobile"))=="1";var stickyOnTablet=!0;var useShrink=$el.attr(attrName("shrinked"))=="1";var toBottom=$el.attr(attrName("to"))=="bottom";if(useShrink){$el.attr(attrName(),"initial")} 204var stickData={center:!0,responsiveWidth:!0,zIndex:(10000+index),topSpacing:distance,stickyOnMobile:stickyOnMobile,stickyOnTablet:stickyOnTablet,useShrink:useShrink,toBottom:toBottom,useNativeSticky:!1} 205if(useShrink){return} 206if(distance===0&&jQuery('#wpadminbar').length&&jQuery('#wpadminbar').css('position')==="absolute"){distance=0} 207stickData.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} 208var fixToInstance=data.fixtoInstance;if(!fixToInstance) 209return!0;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} 210var fixToInstance=data.fixtoInstance;if(!fixToInstance) 211return!0;fixToInstance.start()})}}.bind({"$els":stickyElements}) 212$(window).bind('resize.sticky orientationchange.sticky',function(){setTimeout(resizeCallback,50)});$(window).trigger('resize.sticky')})})(); 213/*! This file is auto-generated */ 214/*! 215 * imagesLoaded PACKAGED v5.0.0 216 * JavaScript is all like "You images are done yet or what?" 217 * MIT License 218 */ 219!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})), 220/*! 221 * imagesLoaded v5.0.0 222 * JavaScript is all like "You images are done yet or what?" 223 * MIT License 224 */ 225function(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;
vendor: 4,185 bytes, lines 225-226
225function 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}));; 226/*! This file is auto-generated */
vendor: 24,103 bytes, lines 227-235
227/*! 228 * Masonry PACKAGED v4.2.2 229 * Cascading grid layout library 230 * https://masonry.desandro.com 231 * MIT License 232 * by David DeSandro 233 */ 234 235!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});
235;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.