!function(e,o){"use strict";var t,s,n,i,r,a,h,l,p,u,f,c,d,v,m,y,w,C=(s="sf-breadcrumb",n="sf-js-enabled",i="sf-with-ul",r="sf-arrows",a=function(){var o=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);return o&&e("html").css("cursor","pointer").on("click",e.noop),o}(),h="behavior"in(t=document.documentElement.style)&&"fill"in t&&/iemobile/i.test(navigator.userAgent),l=!!o.PointerEvent,p=function(e,o){var t=n;o.cssArrows&&(t+=" "+r),e.toggleClass(t)},u=function(e){e.children("a").toggleClass(i)},f=function(e){var o=e.css("ms-touch-action"),t=e.css("touch-action");t="pan-y"===(t=t||o)?"auto":"pan-y",e.css({"ms-touch-action":t,"touch-action":t})},c=function(o){var t=e(this),s=w(t),n=t.siblings(o.data.popUpSelector);if(!1===s.onHandleTouch.call(n))return this;n.length>0&&n.is(":hidden")&&(t.one("click.superfish",!1),"MSPointerDown"===o.type||"pointerdown"===o.type?t.trigger("focus"):e.proxy(d,t.parent("li"))())},d=function(){var o=e(this),t=w(o);clearTimeout(t.sfTimer),o.siblings().superfish("hide").end().superfish("show")},v=function(){var o=e(this),t=w(o);a?e.proxy(m,o,t)():(clearTimeout(t.sfTimer),t.sfTimer=setTimeout(e.proxy(m,o,t),t.delay))},m=function(o){o.retainPath=e.inArray(this[0],o.$path)>-1,this.superfish("hide"),this.parents("."+o.hoverClass).length||(o.onIdle.call(y(this)),o.$path.length&&e.proxy(d,o.$path)())},y=function(e){return e.closest("."+n)},w=function(e){return y(e).data("sf-options")},{hide:function(o){if(this.length){var t=w(this);if(!t)return this;var s=!0===t.retainPath?t.$path:"",n=this.find("li."+t.hoverClass).add(this).not(s).removeClass(t.hoverClass).children(t.popUpSelector),i=t.speedOut;if(o&&(n.show(),i=0),t.retainPath=!1,!1===t.onBeforeHide.call(n))return this;n.stop(!0,!0).animate(t.animationOut,i,(function(){var o=e(this);t.onHide.call(o)}))}return this},show:function(){var e=w(this);if(!e)return this;var o=this.addClass(e.hoverClass).children(e.popUpSelector);return!1===e.onBeforeShow.call(o)?this:(o.stop(!0,!0).animate(e.animation,e.speed,(function(){e.onShow.call(o)})),this)},destroy:function(){return this.each((function(){var o,t=e(this),n=t.data("sf-options");if(!n)return!1;o=t.find(n.popUpSelector).parent("li"),clearTimeout(n.sfTimer),p(t,n),u(o),f(t),t.off(".superfish").off(".hoverIntent"),o.children(n.popUpSelector).attr("style",(function(e,o){return o.replace(/display[^;]+;?/g,"")})),n.$path.removeClass(n.hoverClass+" "+s).addClass(n.pathClass),t.find("."+n.hoverClass).removeClass(n.hoverClass),n.onDestroy.call(t),t.removeData("sf-options")}))},init:function(o){return this.each((function(){var t=e(this);if(t.data("sf-options"))return!1;var n=e.extend({},e.fn.superfish.defaults,o),i=t.find(n.popUpSelector).parent("li");n.$path=function(o,t){return o.find("li."+t.pathClass).slice(0,t.pathLevels).addClass(t.hoverClass+" "+s).filter((function(){return e(this).children(t.popUpSelector).hide().show().length})).removeClass(t.pathClass)}(t,n),t.data("sf-options",n),p(t,n),u(i),f(t),function(o,t){var s="li:has("+t.popUpSelector+")";e.fn.hoverIntent&&!t.disableHI?o.hoverIntent(d,v,s):o.on("mouseenter.superfish",s,d).on("mouseleave.superfish",s,v);var n="MSPointerDown.superfish";l&&(n="pointerdown.superfish"),a||(n+=" touchend.superfish"),h&&(n+=" mousedown.superfish"),o.on("focusin.superfish","li",d).on("focusout.superfish","li",v).on(n,"a",t,c)}(t,n),i.not("."+s).superfish("hide",!0),n.onInit.call(this)}))}});e.fn.superfish=function(o,t){return C[o]?C[o].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof o&&o?e.error("Method "+o+" does not exist on jQuery.fn.superfish"):C.init.apply(this,arguments)},e.fn.superfish.defaults={popUpSelector:"ul,.sf-mega",hoverClass:"sfHover",pathClass:"overrideThisToUse",pathLevels:1,delay:800,animation:{opacity:"show"},animationOut:{opacity:"hide"},speed:"normal",speedOut:"fast",cssArrows:!0,disableHI:!1,onInit:e.noop,onBeforeShow:e.noop,onShow:e.noop,onBeforeHide:e.noop,onHide:e.noop,onIdle:e.noop,onDestroy:e.noop,onHandleTouch:e.noop}}(jQuery,window);
