!function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=0)}([function(e,t,i){i(1),e.exports=i(3)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2),s=i.n(n),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var i=0;i'),this.render(),this.setEvents()}return o(e,[{key:"render",value:function(){this.appendMenuContent(),this.$container.attr("aria-hidden",!0),this.$el.appendTo(this.accessibility.getMainWrap())}},{key:"appendMenuContent",value:function(){this.$container=this.accessibility.jQuery('
'),this.$el.append(this.$container),this.$el.append(this.getTrigger()),this.$container.append(this.getMenuHeader()),this.getMenuBody().append(this.getLayoutFeatures()),this.getMenuBody().append(this.getViewFeatures()),this.$container.append(this.getMenuFooter())}},{key:"getMenuBody",value:function(){return void 0!==this.$menuBody?this.$menuBody:(this.$menuBody=this.accessibility.jQuery(''),this.$container.append(this.$menuBody),this.$menuBody)}},{key:"getMenuHeader",value:function(){return void 0!==this.$menuHeader?this.$menuHeader:(this.$menuHeader=this.accessibility.jQuery(''),this.$menuHeader.append(''+this.accessibility.$i18n.trans("accessibility-menu")+"
"),this.$menuHeader.append(this.getCloseTrigger()),this.$menuHeader)}},{key:"getMenuFooter",value:function(){return void 0!==this.$menuFooter?this.$menuFooter:(this.$menuFooter=this.accessibility.jQuery(''),this.$menuFooter.append(this.getFooterActions()),this.$menuFooter)}},{key:"getTrigger",value:function(){return void 0!==this.$trigger?this.$trigger:(this.$trigger=this.accessibility.jQuery('').addClass("accessibility-menu-trigger"),this.$trigger.append(""),this.$trigger.find("i").addClass("accessibility icon-accessibility"),this.accessibility.renderToolTipEl(this.$trigger,this.accessibility.$i18n.trans("accessibility-menu"),"accessibilityTriggerButtonTt","rtl"===this.accessibility.options.getConfig("direction")?"right":null),this.$trigger)}},{key:"getCloseTrigger",value:function(){return void 0!==this.$closeTrigger?this.$closeTrigger:(this.$closeTrigger=this.accessibility.jQuery('').addClass("accessibility-menu-close-trigger"),this.$closeTrigger.append(""),this.$closeTrigger.find("i").addClass("accessibility icon-cancel"),this.$closeTrigger)}},{key:"getFooterActions",value:function(){if(void 0!==this.$footerFeatures)return this.$footerFeatures;this.$footerFeatures=this.accessibility.jQuery('');var e=this.accessibility.getHelperFeatures();return this.$footerFeatures.append(this.createFeaturesEl(e,"helper")),this.$footerFeatures}},{key:"getLayoutFeatures",value:function(){if(void 0!==this.$layoutFeatures)return this.$layoutFeatures;this.$layoutFeatures=this.accessibility.jQuery('');var e=this.accessibility.getLayoutFeatures();return this.$layoutFeatures.append(this.createFeaturesEl(e,"layout")),this.$layoutFeatures}},{key:"getViewFeatures",value:function(){if(void 0!==this.$viewFeatures)return this.$viewFeatures;var e=this.spreadFeaturesToRows();this.$viewFeatures=this.accessibility.jQuery('');for(var t=0;t')));return this.$viewFeatures}},{key:"createFeaturesEl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"view",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;var n=this,s=[];return this.accessibility.jQuery.each(e,function(e){if(this.enable){var o=n.accessibility.jQuery('').addClass(this.type);o.append('');var a=n.accessibility.accessibilityFeatures.getState(this.type);null!==a&&("enable"===a&&o.addClass("accessibility-feature-activated"),"object"===(void 0===a?"undefined":r(a))&&"enable"===a.state&&o.addClass("accessibility-feature-activated")),o.find("i").addClass(this.icon),o.find("span").html(n.accessibility.$i18n.trans(this.type)),i&&i.append(o),s.push(o),n.accessibility.appendFeatureEl(this.type,o,t)}}),i||s}},{key:"spreadFeaturesToRows",value:function(){var e=0,t=[];return this.accessibility.jQuery.each(this.accessibility.getFeatures(),function(){this.enable&&(t[e]&&t[e].length>=3&&e++,t[e]||(t[e]=[]),t[e].push(this))}),t}},{key:"closeMenuListeners",value:function(e){if(!e)return this.accessibility.$body.off("focusin.accessibility.focus-menu-item"),this.accessibility.$body.off("keyup.accessibility.keyup-menu-item"),void this.accessibility.$body.off("click.accessibility.document-click-listener");var t=this;this.accessibility.$body.on("click.accessibility.document-click-listener",function(e){t.$el.is(e.target)||t.$el.find(e.target).length||t.closeMenu(e)}),this.accessibility.$body.on("focusin.accessibility.focus-menu-item",function(e){t.$el.is(e.target)||t.$el.find(e.target).length||t.closeMenu()}),this.accessibility.$body.on("keyup.accessibility.keyup-menu-item",function(e){27===e.which&&t.closeMenu()})}},{key:"setEvents",value:function(){var e=this;this.$trigger.on("click",function(t){e.openMenu(t)}.bind(this)),this.$closeTrigger.on("click",function(t){e.closeMenu(t)}.bind(this)),this.$viewFeatures.find(".accessibility-feature button").on("click",function(){e.accessibility.initFeatureListener(e.accessibility.jQuery(this).data("feature"))}),this.$layoutFeatures.find(".accessibility-feature button").on("click",function(){e.accessibility.initFeatureListener(e.accessibility.jQuery(this).data("feature"),"layout")}),this.$footerFeatures.find(".accessibility-feature button").on("click",function(){e.accessibility.initFeatureListener(e.accessibility.jQuery(this).data("feature"),"helper")})}},{key:"openMenu",value:function(e){AccessibilityForAll.preventDefault(e),this.$el.addClass("accessibility-menu-opened"),this.$container.attr("aria-hidden",!1),this.closeMenuListeners(!0),this.$menuHeader.find("h3").focus()}},{key:"closeMenu",value:function(e){AccessibilityForAll.preventDefault(e),this.closeMenuListeners(!1),this.accessibility.focusLastEl(),this.$container.attr("aria-hidden",!0),this.$el.removeClass("accessibility-menu-opened")}}]),e}(),c={"accessibility-menu":"תפריט נגישות",monochrome:"מונוכרום","dark-contrast":"ניגודיות גבוהה","bright-contrast":"ניגודיות בהירה","decrease-font-size":"הקטנת גופן","increase-font-size":"הגדלת גופן","font-family":"גופן קריא","cursor-bw":"סמן גדול לבן","cursor-bb":"סמן גדול שחור",zoom:"הגדלת תצוגה","highlight-links":"הדגשת קישורים","highlight-titles":"הדגשת כותרות","alt-description":"הצגת תאור לתמונות",reset:"איפוס","disable-transitions":"כיבוי אנימציות","quick-navigation":"הפעלת תפריט ניווט מקלדת","info-enable-quick-navigation":"בכל שלב ניתן ללחוץ (:a) כדי לחזור לתפריט הניווט","press-to-open-menu":"לחץ (:a) לפתוח תפריט נגישות","press-to-enable-quick-navigation":"לחץ (:a) להפעלת תפריט ניווט מקלדת"},l={"accessibility-menu":"Accessibility Menu",monochrome:"Monochrome","dark-contrast":"Dark Contrast","bright-contrast":"Bright Contrast","decrease-font-size":"Decrease Font Size","increase-font-size":"Increase Font Size","font-family":"Font Family","cursor-bw":"Big White Cursor","cursor-bb":"Big Black Cursor",zoom:"Zoom","highlight-links":"Highlight Links","highlight-titles":"Highlight Titles","alt-description":"Alt Description",reset:"Reset","disable-transitions":"Disable Transitions","quick-navigation":"Enable keyboard navigation menu","info-enable-quick-navigation":"You can always press (:a) To get back to quick navigation","press-to-open-menu":"Press (:a) To open Accessibility Menu","press-to-enable-quick-navigation":"Press (:a) To enable keyboard navigation menu"},u=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:null;if(!this.translates)return"";for(var i in this.translates)if(i===e)return t?this.bindAttributes(this.translates[e],t):this.translates[e]}},{key:"bindAttributes",value:function(e,t){var i=e.split("(:a)");if(i.length<=1)return e;t="string"==typeof t?[t]:t;for(var n="",s=0;s'),this.render(),this.$el.appendTo(this.accessibility.getMainWrap())}return h(e,[{key:"render",value:function(){this.$el.append(this.getQuickAccess()),this.renderQuickNavigation(),this.focusListener()}},{key:"renderQuickNavigation",value:function(){if(this.isQuickNavigationEnable()){this.navigationConfig.items;var e=this.accessibility.accessibilityFeatures.getState("quickNavigation"),t={$el:null,state:"disable",items:this.bindQuickNavigationItems()};this.accessibility.accessibilityFeatures.extendStates({quickNavigation:t}),this.getQuickNavigation(),t.$el=this.$quickNavigation,this.accessibility.accessibilityFeatures.extendStates({quickNavigation:t}),this.$el.append(this.$quickNavigation),e&&"enable"===e.state&&this.enableQuickNavigation()}}},{key:"getQuickNavigation",value:function(){if(void 0!==this.$quickNavigation)return this.$quickNavigation;this.$quickNavigation=this.accessibility.jQuery('');var e=this.accessibility.jQuery(''),t=this.accessibility.jQuery('');t.append('');var i=this.accessibility.$i18n.trans("info-enable-quick-navigation",'Ctrl + F9');return this.accessibility.renderToolTipEl(t,i),e.append(t),e.append(this.createQuickNavigationItems()),this.$quickNavigation.append(e),this.$quickNavigation}},{key:"getQuickAccess",value:function(){return void 0!==this.$quickAccess?this.$quickAccess:(this.$quickAccess=this.accessibility.jQuery(''),this.$quickAccess.append(this.createQuickAccessItems()),this.$quickAccess)}},{key:"createQuickNavigationItems",value:function(){var e=this,t=this.accessibility.jQuery("");return this.accessibility.jQuery.each(this.accessibility.accessibilityFeatures.states.quickNavigation.items,function(){var i=e.accessibility.jQuery("");i.append(''+this.title+""),t.append(i),this.$trigger=i}),t}},{key:"createQuickAccessItems",value:function(){this.items=[{text:this.accessibility.$i18n.trans("press-to-open-menu",'Enter ↵'),keyListener:13,action:this.openAccessibilityMenu.bind(this)}],this.isQuickNavigationEnable()&&this.items.push({text:this.accessibility.$i18n.trans("press-to-enable-quick-navigation",'Enter ↵'),keyListener:13,action:this.enableQuickNavigation.bind(this)});var e=this,t=this.accessibility.jQuery("");return this.accessibility.jQuery.each(this.items,function(){var i=e.accessibility.jQuery("");i.append(''),i.find("button").append(this.text),t.append(i),this.$el=i,this.$button=i.find("button")}),t}},{key:"focusListener",value:function(){var e=this;this.accessibility.jQuery(document).on("focus",".accessibility-navigation button",function(){var t=e.getButtonItemParams(e.accessibility.jQuery(this));t&&(t.keyListener?e.bindKeyListerner(t.keyListener,t,"focus"):t.action(t,"focus"))}),this.accessibility.jQuery(document).on("blur",".accessibility-navigation button",function(){var t=e.getButtonItemParams(e.accessibility.jQuery(this));t&&(t.keyListener?e.bindKeyListerner(t.keyListener,t,"blur"):t.action(t,"blur"))})}},{key:"bindKeyListerner",value:function(e,t,i,n){"focus"!==i?this.accessibility.jQuery(document).off("keypress.accessibility.navigation-focus-item-listener"):this.accessibility.jQuery(document).on("keypress.accessibility.navigation-focus-item-listener",function(i){i.which===e&&(t.action(i),t.$button.blur())})}},{key:"getButtonItemParams",value:function(e){var t=!1;return this.accessibility.jQuery.each(this.items,function(){if(e.is(this.$button))return t=this,!1}),t}},{key:"openAccessibilityMenu",value:function(e){this.accessibility.accessibilityMenu.openMenu(e)}},{key:"enableQuickNavigation",value:function(e){this.isQuickNavigationEnable()&&this.accessibility.accessibilityFeatures.enableQuickNavigation()}},{key:"disableQuickNavigation",value:function(){this.accessibility.accessibilityFeatures.disableQuickNavigation()}},{key:"isQuickNavigationEnable",value:function(){return this.navigationConfig=this.navigationConfig?this.navigationConfig:this.accessibility.options.getConfig("quickNavigation"),this.navigationConfig&&this.navigationConfig.enable}},{key:"bindQuickNavigationItems",value:function(){if(!this.navigationConfig&&!this.isQuickNavigationEnable())return[];if(!this.navigationConfig.items)return[];var e=this,t=[];return this.accessibility.jQuery.each(this.navigationConfig.items,function(){if(this.$el){var i={$el:e.accessibility.jQuery(this.$el),title:this.title};i.$el.length&&t.push(i)}}),t.push({tabIndex:1,action:this.openAccessibilityMenu.bind(this),$el:this.accessibility.accessibilityMenu.$el,title:this.accessibility.$i18n.trans("accessibility-menu")}),t}}]),e}(),p=function(){function e(e,t){for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:";",i="";return this.accessibility.jQuery.each(e,function(e){(this||"string"==typeof this)&&(i+=e+"="+this+t)}),i.slice(0,-1)}},{key:"convertStringToObj",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",i={};if(!e)return i;e=e.split(t);for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.accessibility=t,this.config=this.initializeConfig(i)}return b(e,[{key:"initializeConfig",value:function(e){var t=this.accessibility.jQuery.extend({locale:this.setLocale(e.locale),direction:this.setDirection(e.direction),storage:"cookies"},e);return t.menu=this.accessibility.jQuery.extend({footer:{reset:!0}},e.menu),t.features=this.accessibility.jQuery.extend({monochrome:!0,darkContrast:!0,brightContrast:!0,decreaseFontSize:!0,increaseFontSize:!0,fontFamily:!0,cursorBw:!0,cursorBb:!0,zoom:!0,highlightLinks:!0,highlightTitles:!0,altDescription:!0,disableTransitions:!0},e.features),t.quickNavigation=this.accessibility.jQuery.extend({enable:!0},e.quickNavigation),t.translates=!!e.translates&&e.translates,t}},{key:"extendConfig",value:function(e){return this.config=this.accessibility.jQuery.extend(this.config,e),this.config}},{key:"setDirection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e||("rtl"===document.dir?"rtl":"ltr")}},{key:"setLocale",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e||(this.accessibility.$html.attr("lang")?this.accessibility.$html.attr("lang"):"en")}},{key:"getConfig",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e=e.split("."),t=t||this.config,!e[0])return null;if(void 0===t[e[0]])return null;if(1===e.length)return t[e[0]];if("object"!==v(t[e[0]]))return t[e[0]];for(var i="",n=1;n li > a").off("click.accessibility.quick-navigation-navigate"),delete this.navigation,this.itemFocused(),this.accessibility.$body.off("keyup.accessibility.quick-navigation-focus-key"),this.accessibility.$body.off("keydown.accessibility.quick-navigation-focus-key"),this.accessibility.$body.off("focus.accessibility.quick-navigation-item-focused",this.elementType.join(", "))}},{key:"focusQuickNavigationListener",value:function(){var e=this,t=[];this.accessibility.$body.on("keydown.accessibility.quick-navigation-focus-key",function(e){t.push(e.which)}),this.accessibility.$body.on("keyup.accessibility.quick-navigation-focus-key",function(i){t.indexOf(120)>=0&&t.indexOf(17)>=0&&e.accessibility.accessibilityNavigation.$quickNavigation.find("button").first().focus(),t=[]}),this.accessibility.$body.on("focus.accessibility.quick-navigation-item-focused",this.elementType.join(", "),function(){e.accessibility.jQuery(this).is(e.accessibility.accessibilityMenu.getTrigger())||e.itemFocused(e.accessibility.jQuery(this))})}},{key:"navigationListener",value:function(){var e=this;this.navigation.$el.find("ul > li > a").on("click.accessibility.quick-navigation-navigate",function(t){var i=e.accessibility.jQuery(this).attr("data-tab-href"),n=e.getNavigationTabIndexGroup(i);n&&n.action?n.action&&n.action(t):e.accessibility.jQuery("[tabindex="+i+"]").first().focus()})}},{key:"itemFocused",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.$focused&&this.$focused.removeClass("accessibility-item-focused"),this.$focused=e,e&&e.addClass("accessibility-item-focused")}},{key:"getNavigationTabIndexGroup",value:function(e){return!(!this.navigation||!this.navigation.items)&&(!!this.navigation.items[e]&&this.navigation.items[e])}}]),e}(),w=function(){function e(e,t){for(var i=0;i'),this.accessibility.getMainWrap().append(this.$el),this.$el)}},{key:"mouseIn",value:function(e,t){if(e){var i=this,n=e.attr("alt");n&&(this.$hoverImg=e,this.$el.addClass("accessibility-img-description-block"),this.renderAltDescription(n,t),this.visible(),this.$hoverImg.on("mouseout.accessibility.image-mouse-out",function(){i.mouseOut()}),this.$hoverImg.on("mousemove.accessibility.image-mouse-move",function(e){i.positionBox(e)}))}}},{key:"mouseOut",value:function(){this.visible(!1),this.$hoverImg.off("mouseout.accessibility.image-mouse-out"),this.$hoverImg.off("mousemove.accessibility.image-mouse-move"),this.$hoverImg=!1}},{key:"visible",value:function(){if(!(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.$el.removeClass("accessibility-img-mouse-in accessibility-img-description-block"),void this.$el.html("");this.$el.addClass("accessibility-img-mouse-in")}},{key:"renderAltDescription",value:function(e,t){var i=this.accessibility.jQuery("");i.html(e),this.prepare().html(i),this.positionBox(t)}},{key:"positionBox",value:function(e){AccessibilityForAll.preventDefault(e);var t=this.$el.width(),i=e.clientX-t/2,n=e.clientY+20;(this.accessibility.$body.hasClass("accessibility-big-white-cursor")||this.accessibility.$body.hasClass("accessibility-big-black-cursor"))&&(n+=20),e.clientX+t/2>this.accessibility.$body.width()&&(i=e.clientX-t),i<0&&(i=e.clientX),this.$el.css({left:i,top:n})}},{key:"destroy",value:function(){this.$hoverImg&&this.mouseOut()}}]),e}(),T=function(){function e(e,t){for(var i=0;i1&&this.updateBodyElements(),this.initialized=!0}},{key:"featureActivated",value:function(e){e.$el&&e.$el.addClass("accessibility-feature-activated")}},{key:"featureDeActivated",value:function(e){e.$el&&e.$el.removeClass("accessibility-feature-activated")}},{key:"cursorBb",value:function(){"enable"===this.states.cursorBb&&this.initialized?this.accessibility.$body.removeClass("accessibility-big-black-cursor"):(this.removeAllCursors(),this.accessibility.$body.addClass("accessibility-big-black-cursor"));var e=this.initialized&&"enable"===this.states.cursorBb?"disable":"enable";return this.setState("cursorBb",e),"enable"===e?"cursorBb":"disable"}},{key:"cursorBw",value:function(){"enable"===this.states.cursorBw&&this.initialized?this.accessibility.$body.removeClass("accessibility-big-white-cursor"):(this.removeAllCursors(),this.accessibility.$body.addClass("accessibility-big-white-cursor"));var e=this.initialized&&"enable"===this.states.cursorBw?"disable":"enable";return this.setState("cursorBw",e),"enable"===e?"cursorBw":"disable"}},{key:"monochrome",value:function(){"enable"===this.states.monochrome&&this.initialized?this.accessibility.$body.removeClass("accessibility-monochrome"):(this.removeAllContrasts(),this.accessibility.$body.addClass("accessibility-monochrome"));var e=this.initialized&&"enable"===this.states.monochrome?"disable":"enable";return this.setState("monochrome",e),"enable"===e?"monochrome":"disable"}},{key:"darkContrast",value:function(){"enable"===this.states.darkContrast&&this.initialized?this.accessibility.$body.removeClass("accessibility-dark-contrast"):(this.removeAllContrasts(),this.accessibility.$body.addClass("accessibility-dark-contrast"));var e=this.initialized&&"enable"===this.states.darkContrast?"disable":"enable";return this.setState("darkContrast",e),"enable"===e?"darkContrast":"disable"}},{key:"brightContrast",value:function(){"enable"===this.states.brightContrast&&this.initialized?this.accessibility.$body.removeClass("accessibility-bright-contrast"):(this.removeAllContrasts(),this.accessibility.$body.addClass("accessibility-bright-contrast"));var e=this.initialized&&"enable"===this.states.brightContrast?"disable":"enable";return this.setState("brightContrast",e),"enable"===e?"brightContrast":"disable"}},{key:"highlightLinks",value:function(){"enable"===this.states.highlightLinks&&this.initialized?this.accessibility.$body.removeClass("accessibility-highlight-link"):this.accessibility.$body.addClass("accessibility-highlight-link");var e=this.initialized&&"enable"===this.states.highlightLinks?"disable":"enable";return this.setState("highlightLinks",e),this.states.highlightLinks}},{key:"highlightTitles",value:function(){"enable"===this.states.highlightTitles&&this.initialized?this.accessibility.$body.removeClass("accessibility-highlight-titles"):this.accessibility.$body.addClass("accessibility-highlight-titles");var e=this.initialized&&"enable"===this.states.highlightTitles?"disable":"enable";return this.setState("highlightTitles",e),this.states.highlightTitles}},{key:"fontFamily",value:function(){"enable"===this.states.fontFamily&&this.initialized?this.accessibility.$body.removeClass("accessibility-readable-font-family"):this.accessibility.$body.addClass("accessibility-readable-font-family");var e=this.initialized&&"enable"===this.states.fontFamily?"disable":"enable";return this.setState("fontFamily",e),this.states.fontFamily}},{key:"zoom",value:function(){"enable"===this.states.zoom&&this.initialized?this.accessibility.$body.removeClass("accessibility-body-zoomed"):this.accessibility.$body.addClass("accessibility-body-zoomed");var e=this.initialized&&"enable"===this.states.zoom?"disable":"enable";return this.setState("zoom",e),this.states.zoom}},{key:"disableTransitions",value:function(){"enable"===this.states.disableTransitions&&this.initialized?this.accessibility.$body.removeClass("accessibility-transitions-disabled"):this.accessibility.$body.addClass("accessibility-transitions-disabled");var e=this.initialized&&"enable"===this.states.disableTransitions?"disable":"enable";return this.setState("disableTransitions",e),this.states.disableTransitions}},{key:"altDescription",value:function(){"enable"===this.states.altDescription&&this.initialized?this.setImageAltDescription(!1):this.setImageAltDescription(!0);var e=this.initialized&&"enable"===this.states.altDescription?"disable":"enable";return this.setState("altDescription",e),this.states.altDescription}},{key:"increaseFontSize",value:function(){return this.states.fontSize.current>=this.states.fontSize.max?this.states.fontSize.current:(this.states.fontSize.current+=.1,this.updateBodyElements(),this.states.fontSize.current)}},{key:"decreaseFontSize",value:function(){return this.states.fontSize.current<=1?null:(this.states.fontSize.current-=.1,this.updateBodyElements(),this.states.fontSize.current<=1?"disable":this.states.fontSize.current)}},{key:"quickNavigation",value:function(){if(void 0!==this.states.quickNavigation)return"enable"===this.states.quickNavigation.state&&this.initialized?(this.disableQuickNavigation(),this.states.quickNavigation.state):(this.enableQuickNavigation(),this.states.quickNavigation.state)}},{key:"enableQuickNavigation",value:function(){"enable"!==this.states.quickNavigation.state&&(this.accessibility.$body.addClass("accessibility-quick-navigation-enabled"),this.accessibility.$body.scrollTop(0),this.states.quickNavigation.state="enable",this.accessibility.accessibilityMenu.closeMenu(),this.quickNavigationHandler.initialize())}},{key:"disableQuickNavigation",value:function(){"disable"!==this.states.quickNavigation.state&&(this.accessibility.$body.removeClass("accessibility-quick-navigation-enabled"),this.accessibility.$body.scrollTop(0),this.states.quickNavigation.state="disable",this.quickNavigationHandler.destroy())}},{key:"updateBodyElements",value:function(){var e=this;this.states.fontSize.initialized||this.initializeOriginalFontSize(),this.states.fontSize.current=Number(this.states.fontSize.current.toFixed(2)),this.states.fontSize.$in.find(this.fontElements()).each(function(){if(parseFloat(e.accessibility.jQuery(this).css("font-size"))){var t=(e.accessibility.jQuery(this).data("original-font-size")*e.states.fontSize.current).toFixed(1)+"px";e.accessibility.jQuery(this).css("font-size",t)}})}},{key:"initializeOriginalFontSize",value:function(){var e=this;this.states.fontSize.$in.find(this.fontElements()).each(function(){var t=parseFloat(e.accessibility.jQuery(this).css("font-size"));t&&e.accessibility.jQuery(this).data("original-font-size",t)}),this.states.fontSize.initialized=!0}},{key:"fontElements",value:function(){if(this.states.fontSize.fontElements)return this.states.fontSize.fontElements;for(var e="",t="",i=0;i0?",":"",t+=this.states.fontSize.search+e;return this.states.fontSize.fontElements=t,this.states.fontSize.fontElements}},{key:"setImageAltDescription",value:function(){if(!(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]))return this.accessibility.jQuery(document).off("mouseenter.accessibility.image-hover-description"),void this.imgAltDescription.destroy();var e=this;this.accessibility.jQuery(document).on("mouseenter.accessibility.image-hover-description","body > img, body > :not(.accessibility) img",function(t){e.imgAltDescription.mouseIn(e.accessibility.jQuery(this),t)})}},{key:"reset",value:function(){var e=this;if(this.accessibility.jQuery.each(this.states,function(t){if("enable"===this&&void 0!==e[t]){e[t]();var i=e.accessibility.getFeatureBy(AccessibilityForAll.snakeCase(t),null);i&&e.featureDeActivated(i)}}),this.states.fontSize.current>1&&(this.states.fontSize.current=1,this.updateBodyElements()),"enable"===this.states.quickNavigation.state){this.quickNavigation();var t=e.accessibility.getFeatureBy(AccessibilityForAll.snakeCase("quick-navigation"),"layout");this.featureDeActivated(t)}return this.accessibility.accessibilityStorage.resetStorage(),null}},{key:"setState",value:function(e,t){this.states[e]=t}},{key:"getState",value:function(e){if(void 0!==this.states[e])return this.states[e];var t=this.accessibility.camelCase(e);return void 0!==this.states[t]?this.states[t]:null}},{key:"getAccessibilityFeature",value:function(e){var t=AccessibilityForAll.snakeCase(e);return this.accessibility.getFeatureBy(t)}},{key:"mapFeatureToStorage",value:function(e){var t={cursorBb:"cursorPointer",cursorBw:"cursorPointer",monochrome:"colorContrast",darkContrast:"colorContrast",brightContrast:"colorContrast",increaseFontSize:"fontSize",decreaseFontSize:"fontSize"};return t[e]?t[e]:e}},{key:"mapStorageKeyObj",value:function(e){return void 0!==e.quickNavigation&&(e.quickNavigation={state:e.quickNavigation}),void 0!==e.fontSize&&(e.fontSize={max:1.5,search:["*"],$in:this.accessibility.jQuery("html"),current:Number(e.fontSize),exclude:["svg",".accessibility","head"]}),this.accessibility.jQuery.each(["colorContrast","cursorPointer"],function(){void 0!==e[this]&&(e[e[this]]="enable",delete e[this])}),e}},{key:"removeAllContrasts",value:function(){"enable"===this.states.darkContrast&&this.initialized&&this.accessibility.initFeatureListener("dark-contrast"),"enable"===this.states.brightContrast&&this.initialized&&this.accessibility.initFeatureListener("bright-contrast"),"enable"===this.states.monochrome&&this.initialized&&this.accessibility.initFeatureListener("monochrome")}},{key:"removeAllCursors",value:function(){"enable"===this.states.cursorBb&&this.initialized&&this.accessibility.initFeatureListener("cursor-bb"),"enable"===this.states.cursorBw&&this.initialized&&this.accessibility.initFeatureListener("cursor-bw")}}]),e}(),$=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.$=this.jQuery=s.a,this.initializeParams(t),this.getMainWrap(),this.render(),this.initialized=!0}return $(e,[{key:"initializeParams",value:function(e){this.initialized||(this.$html=this.jQuery("html"),this.$body=this.$html.find("body"),this.options=new m(this,e),this.features=[{type:"monochrome",enable:this.options.getConfig("features.monochrome"),icon:"accessibility icon-monochrome"},{type:"dark-contrast",enable:this.options.getConfig("features.darkContrast"),icon:"accessibility icon-dark-contrast"},{type:"bright-contrast",enable:this.options.getConfig("features.brightContrast"),icon:"accessibility icon-bright-contrast"},{type:"decrease-font-size",enable:this.options.getConfig("features.decreaseFontSize"),icon:"accessibility icon-decrease-font-size"},{type:"increase-font-size",enable:this.options.getConfig("features.increaseFontSize"),icon:"accessibility icon-increase-font-size"},{type:"font-family",enable:this.options.getConfig("features.fontFamily"),icon:"accessibility icon-font-family"},{type:"cursor-bw",enable:this.options.getConfig("features.cursorBw"),icon:"accessibility icon-cursor-bw"},{type:"cursor-bb",enable:this.options.getConfig("features.cursorBb"),icon:"accessibility icon-cursor-bb"},{type:"zoom",enable:this.options.getConfig("features.zoom"),icon:"accessibility icon-search"},{type:"highlight-links",enable:this.options.getConfig("features.highlightLinks"),icon:"accessibility icon-highlight-links"},{type:"highlight-titles",enable:this.options.getConfig("features.highlightTitles"),icon:"accessibility icon-highlight-titles"},{type:"alt-description",enable:this.options.getConfig("features.altDescription"),icon:"accessibility icon-alt-description"}],this.layoutFeatures=[{type:"quick-navigation",enable:this.options.getConfig("quickNavigation.enable"),icon:"accessibility icon-quick-navigation"},{type:"disable-transitions",enable:this.options.getConfig("features.disableTransitions"),icon:"accessibility icon-disable-transitions"}],this.helperFeatures=[{type:"reset",enable:this.options.getConfig("menu.footer.reset"),icon:"accessibility icon-reset"}])}},{key:"getMainWrap",value:function(){if(!this.initialized)return void 0!==this.$el?this.$el:(this.$el=this.jQuery(''),this.$body.prepend(this.$el),this.$el)}},{key:"render",value:function(){this.initialized||(this.$i18n=new f(this),this.accessibilityStorage=new g(this),this.accessibilityFeatures=new S(this),this.accessibilityMenu=new a(this),this.accessibilityNavigation=new d(this),this.toolTipListener(),this.$html.attr({lang:this.options.getConfig("locale"),dir:this.options.getConfig("direction")}),"rtl"===this.options.getConfig("direction")&&this.$body.addClass("accessibility-rtl-direction"))}},{key:"initFeatureListener",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"view";(e=this.getFeatureBy(e,t))&&e.enable&&this.featureListener(e)}},{key:"featureListener",value:function(e){if(e&&e.enable){var t=this.camelCase(e.type);if(void 0!==this.accessibilityFeatures[t]){var i=this.accessibilityFeatures[t](e);null!==i&&(this.accessibilityStorage.setStorage(t,i),"disable"!==i?isNaN(i)&&this.accessibilityFeatures.featureActivated(e):this.accessibilityFeatures.featureDeActivated(e))}}}},{key:"toolTipListener",value:function(){var e=this;this.$body.on("mouseenter.accessibility.tooltip-visible, focus.accessibility.tooltip-visible",".accessibility-tooltip-element",function(){var t=e.jQuery(this).data("tooltip-element"),i=e.jQuery(this).offset(),n={top:t.data("tooltip-position")?i.top:i.top+e.jQuery(this).outerHeight()+20};t.data("tooltip-position")?"right"===t.data("tooltip-position")&&(n[t.data("tooltip-position")]=e.$body.width()-(i.left-20)):(n.transform="translateX(-50%)",n.left=i.left+e.jQuery(this).outerWidth()/2),t.css(n),t.stop().fadeIn()}),this.$body.on("mouseleave.accessibility.tooltip-hide, blur.accessibility.tooltip-visible",".accessibility-tooltip-element",function(){e.jQuery(this).is(":focus")||e.jQuery(this).data("tooltip-element").stop().fadeOut()})}},{key:"renderToolTipEl",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=this.jQuery('');return i&&s.attr("id",i),n&&s.attr("data-tooltip-position",n),s.html(t),s.css({display:"none"}),e.addClass("accessibility-tooltip-element"),e.data("tooltip-element",s),this.getMainWrap().append(s),s}},{key:"getFeatures",value:function(){return this.features}},{key:"getLayoutFeatures",value:function(){return this.layoutFeatures}},{key:"getHelperFeatures",value:function(){return this.helperFeatures}},{key:"getFeatureBy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=[];i=null===t?i.concat(this.getFeatures(),this.getLayoutFeatures(),this.getHelperFeatures()):"layout"===t?this.getLayoutFeatures():"helper"===t?this.getHelperFeatures():this.getFeatures();var n=!1;return this.jQuery.each(i,function(){if(this.type===e)return n=this,!1}),n}},{key:"appendFeatureEl",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"view",n="features";"layout"===i?n="layoutFeatures":"helper"===i&&(n="helperFeatures");for(var s=0;s0&&t-1 in e)}C.fn=C.prototype={jquery:"3.3.1",constructor:C,length:0,toArray:function(){return c.call(this)},get:function(e){return null==e?c.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i+~]|"+Q+")"+Q+"*"),W=new RegExp("="+Q+"*([^\\]'\"]*?)"+Q+"*\\]","g"),_=new RegExp(M),X=new RegExp("^"+O+"$"),U={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+M),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Q+"*(even|odd|(([+-]|)(\\d*)n|)"+Q+"*(?:([+-]|)"+Q+"*(\\d+)|))"+Q+"*\\)|)","i"),bool:new RegExp("^(?:"+z+")$","i"),needsContext:new RegExp("^"+Q+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Q+"*((?:-\\d)?\\d*)"+Q+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+Q+"?|("+Q+")|.)","ig"),ee=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){h()},se=be(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{D.apply(N=q.call(k.childNodes),k.childNodes),N[k.childNodes.length].nodeType}catch(e){D={apply:N.length?function(e,t){F.apply(e,q.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function re(e,t,n,s){var r,a,l,u,f,p,v,b=t&&t.ownerDocument,w=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return n;if(!s&&((t?t.ownerDocument||t:k)!==d&&h(t),t=t||d,y)){if(11!==w&&(f=K.exec(e)))if(r=f[1]){if(9===w){if(!(l=t.getElementById(r)))return n;if(l.id===r)return n.push(l),n}else if(b&&(l=b.getElementById(r))&&m(t,l)&&l.id===r)return n.push(l),n}else{if(f[2])return D.apply(n,t.getElementsByTagName(e)),n;if((r=f[3])&&i.getElementsByClassName&&t.getElementsByClassName)return D.apply(n,t.getElementsByClassName(r)),n}if(i.qsa&&!$[e+" "]&&(!g||!g.test(e))){if(1!==w)b=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ie):t.setAttribute("id",u=x),a=(p=o(e)).length;a--;)p[a]="#"+u+" "+ve(p[a]);v=p.join(","),b=J.test(e)&&ye(t.parentNode)||t}if(v)try{return D.apply(n,b.querySelectorAll(v)),n}catch(e){}finally{u===x&&t.removeAttribute("id")}}}return c(e.replace(I,"$1"),t,n,s)}function oe(){var e=[];return function t(i,s){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=s}}function ae(e){return e[x]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var i=e.split("|"),s=i.length;s--;)n.attrHandle[i[s]]=t}function ue(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function de(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return ae(function(t){return t=+t,ae(function(i,n){for(var s,r=e([],i.length,t),o=r.length;o--;)i[s=r[o]]&&(i[s]=!(n[s]=i[s]))})})}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=re.support={},r=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=re.setDocument=function(e){var t,s,o=e?e.ownerDocument||e:k;return o!==d&&9===o.nodeType&&o.documentElement?(p=(d=o).documentElement,y=!r(d),k!==d&&(s=d.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",ne,!1):s.attachEvent&&s.attachEvent("onunload",ne)),i.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),i.getElementsByTagName=ce(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),i.getElementsByClassName=Y.test(d.getElementsByClassName),i.getById=ce(function(e){return p.appendChild(e).id=x,!d.getElementsByName||!d.getElementsByName(x).length}),i.getById?(n.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&y){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&y){var i,n,s,r=t.getElementById(e);if(r){if((i=r.getAttributeNode("id"))&&i.value===e)return[r];for(s=t.getElementsByName(e),n=0;r=s[n++];)if((i=r.getAttributeNode("id"))&&i.value===e)return[r]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,r=t.getElementsByTagName(e);if("*"===e){for(;i=r[s++];)1===i.nodeType&&n.push(i);return n}return r},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&y)return t.getElementsByClassName(e)},v=[],g=[],(i.qsa=Y.test(d.querySelectorAll))&&(ce(function(e){p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+Q+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+Q+"*(?:value|"+z+")"),e.querySelectorAll("[id~="+x+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||g.push(".#.+[+~]")}),ce(function(e){e.innerHTML="";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+Q+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(i.matchesSelector=Y.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ce(function(e){i.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),v.push("!=",M)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Y.test(p.compareDocumentPosition),m=t||Y.test(p.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return f=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e===d||e.ownerDocument===k&&m(k,e)?-1:t===d||t.ownerDocument===k&&m(k,t)?1:u?L(u,e)-L(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return f=!0,0;var i,n=0,s=e.parentNode,r=t.parentNode,o=[e],a=[t];if(!s||!r)return e===d?-1:t===d?1:s?-1:r?1:u?L(u,e)-L(u,t):0;if(s===r)return ue(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;o[n]===a[n];)n++;return n?ue(o[n],a[n]):o[n]===k?-1:a[n]===k?1:0},d):d},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&h(e),t=t.replace(W,"='$1']"),i.matchesSelector&&y&&!$[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var n=b.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return re(t,d,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==d&&h(e),m(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==d&&h(e);var s=n.attrHandle[t.toLowerCase()],r=s&&E.call(n.attrHandle,t.toLowerCase())?s(e,t,!y):void 0;return void 0!==r?r:i.attributes||!y?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},re.escape=function(e){return(e+"").replace(te,ie)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,n=[],s=0,r=0;if(f=!i.detectDuplicates,u=!i.sortStable&&e.slice(0),e.sort(j),f){for(;t=e[r++];)t===e[r]&&(s=n.push(r));for(;s--;)e.splice(n[s],1)}return u=null,e},s=re.getText=function(e){var t,i="",n=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=s(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[n++];)i+=s(t);return i},(n=re.selectors={cacheLength:50,createPseudo:ae,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&_.test(i)&&(t=o(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+Q+")"+e+"("+Q+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(n){var s=re.attr(n,e);return null==s?"!="===t:!t||(s+="","="===t?s===i:"!="===t?s!==i:"^="===t?i&&0===s.indexOf(i):"*="===t?i&&s.indexOf(i)>-1:"$="===t?i&&s.slice(-i.length)===i:"~="===t?(" "+s.replace(P," ")+" ").indexOf(i)>-1:"|="===t&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,s){var r="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===s?function(e){return!!e.parentNode}:function(t,i,c){var l,u,f,h,d,p,y=r!==o?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),b=!c&&!a,m=!1;if(g){if(r){for(;y;){for(h=t;h=h[y];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=y="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?g.firstChild:g.lastChild],o&&b){for(m=(d=(l=(u=(f=(h=g)[x]||(h[x]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===w&&l[1])&&l[2],h=d&&g.childNodes[d];h=++d&&h&&h[y]||(m=d=0)||p.pop();)if(1===h.nodeType&&++m&&h===t){u[e]=[w,d,m];break}}else if(b&&(m=d=(l=(u=(f=(h=t)[x]||(h[x]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]||[])[0]===w&&l[1]),!1===m)for(;(h=++d&&h&&h[y]||(m=d=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++m||(b&&((u=(f=h[x]||(h[x]={}))[h.uniqueID]||(f[h.uniqueID]={}))[e]=[w,m]),h!==t)););return(m-=s)===n||m%n==0&&m/n>=0}}},PSEUDO:function(e,t){var i,s=n.pseudos[e]||n.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return s[x]?s(t):s.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,i){for(var n,r=s(e,t),o=r.length;o--;)e[n=L(e,r[o])]=!(i[n]=r[o])}):function(e){return s(e,0,i)}):s}},pseudos:{not:ae(function(e){var t=[],i=[],n=a(e.replace(I,"$1"));return n[x]?ae(function(e,t,i,s){for(var r,o=n(e,null,s,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,s,r){return t[0]=e,n(t,null,r,i),t[0]=null,!i.pop()}}),has:ae(function(e){return function(t){return re(e,t).length>0}}),contains:ae(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),lang:ae(function(e){return X.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var i;do{if(i=y?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,i){return[i<0?i+t:i]}),even:pe(function(e,t){for(var i=0;i=0;)e.push(n);return e}),gt:pe(function(e,t,i){for(var n=i<0?i+t:i;++n1?function(t,i,n){for(var s=e.length;s--;)if(!e[s](t,i,n))return!1;return!0}:e[0]}function xe(e,t,i,n,s){for(var r,o=[],a=0,c=e.length,l=null!=t;a-1&&(r[l]=!(o[l]=f))}}else v=xe(v===o?v.splice(p,v.length):v),s?s(null,o,v,c):D.apply(o,v)})}function we(e){for(var t,i,s,r=e.length,o=n.relative[e[0].type],a=o||n.relative[" "],c=o?1:0,u=be(function(e){return e===t},a,!0),f=be(function(e){return L(t,e)>-1},a,!0),h=[function(e,i,n){var s=!o&&(n||i!==l)||((t=i).nodeType?u(e,i,n):f(e,i,n));return t=null,s}];c1&&me(h),c>1&&ve(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(I,"$1"),i,c0,s=e.length>0,r=function(r,o,a,c,u){var f,p,g,v=0,b="0",m=r&&[],x=[],k=l,C=r||s&&n.find.TAG("*",u),T=w+=null==k?1:Math.random()||.1,S=C.length;for(u&&(l=o===d||o||u);b!==S&&null!=(f=C[b]);b++){if(s&&f){for(p=0,o||f.ownerDocument===d||(h(f),a=!y);g=e[p++];)if(g(f,o||d,a)){c.push(f);break}u&&(w=T)}i&&((f=!g&&f)&&v--,r&&m.push(f))}if(v+=b,i&&b!==v){for(p=0;g=t[p++];)g(m,x,o,a);if(r){if(v>0)for(;b--;)m[b]||x[b]||(x[b]=A.call(c));x=xe(x)}D.apply(c,x),u&&!r&&x.length>0&&v+t.length>1&&re.uniqueSort(c)}return u&&(w=T,l=k),m};return i?ae(r):r}(r,s))).selector=e}return a},c=re.select=function(e,t,i,s){var r,c,l,u,f,h="function"==typeof e&&e,d=!s&&o(e=h.selector||e);if(i=i||[],1===d.length){if((c=d[0]=d[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&y&&n.relative[c[1].type]){if(!(t=(n.find.ID(l.matches[0].replace(Z,ee),t)||[])[0]))return i;h&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(r=U.needsContext.test(e)?0:c.length;r--&&(l=c[r],!n.relative[u=l.type]);)if((f=n.find[u])&&(s=f(l.matches[0].replace(Z,ee),J.test(c[0].type)&&ye(t.parentNode)||t))){if(c.splice(r,1),!(e=s.length&&ve(c)))return D.apply(i,s),i;break}}return(h||a(e,d))(s,t,!y,i,!t||J.test(e)&&ye(t.parentNode)||t),i},i.sortStable=x.split("").sort(j).join("")===x,i.detectDuplicates=!!f,h(),i.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))}),ce(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),i.attributes&&ce(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||le(z,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),re}(i);C.find=$,C.expr=$.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=$.uniqueSort,C.text=$.getText,C.isXMLDoc=$.isXML,C.contains=$.contains,C.escapeSelector=$.escape;var j=function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&C(e).is(i))break;n.push(e)}return n},E=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},N=C.expr.match.needsContext;function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,i){return b(t)?C.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?C.grep(e,function(e){return e===t!==i}):"string"!=typeof t?C.grep(e,function(e){return f.call(t,e)>-1!==i}):C.filter(t,e,i)}C.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?C.find.matchesSelector(n,e)?[n]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t1?C.uniqueSort(i):i},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&N.test(e)?C(e):e||[],!1).length}});var q,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||q,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),F.test(n[1])&&C.isPlainObject(t))for(n in t)b(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(s=o.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):b(e)?void 0!==i.ready?i.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,q=C(o);var z=/^(?:parents|prev(?:Until|All))/,Q={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),i=t.length;return this.filter(function(){for(var e=0;e-1:1===i.nodeType&&C.find.matchesSelector(i,e))){r.push(i);break}return this.pushStack(r.length>1?C.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?f.call(C(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return j(e,"parentNode")},parentsUntil:function(e,t,i){return j(e,"parentNode",i)},next:function(e){return O(e,"nextSibling")},prev:function(e){return O(e,"previousSibling")},nextAll:function(e){return j(e,"nextSibling")},prevAll:function(e){return j(e,"previousSibling")},nextUntil:function(e,t,i){return j(e,"nextSibling",i)},prevUntil:function(e,t,i){return j(e,"previousSibling",i)},siblings:function(e){return E((e.parentNode||{}).firstChild,e)},children:function(e){return E(e.firstChild)},contents:function(e){return A(e,"iframe")?e.contentDocument:(A(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(e,t){C.fn[e]=function(i,n){var s=C.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=C.filter(n,s)),this.length>1&&(Q[e]||C.uniqueSort(s),z.test(e)&&s.reverse()),this.pushStack(s)}});var H=/[^\x20\t\r\n\f]+/g;function M(e){return e}function P(e){throw e}function I(e,t,i,n){var s;try{e&&b(s=e.promise)?s.call(e).done(t).fail(i):e&&b(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(H)||[],function(e,i){t[i]=!0}),t}(e):C.extend({},e);var t,i,n,s,r=[],o=[],a=-1,c=function(){for(s=s||e.once,n=t=!0;o.length;a=-1)for(i=o.shift();++a-1;)r.splice(i,1),i<=a&&a--}),this},has:function(e){return e?C.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return s=o=[],r=i="",this},disabled:function(){return!r},lock:function(){return s=o=[],i||t||(r=i=""),this},locked:function(){return!!s},fireWith:function(e,i){return s||(i=[e,(i=i||[]).slice?i.slice():i],o.push(i),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return C.Deferred(function(i){C.each(t,function(t,n){var s=b(e[n[4]])&&e[n[4]];r[n[1]](function(){var e=s&&s.apply(this,arguments);e&&b(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,s?[e]:arguments)})}),e=null}).promise()},then:function(e,n,s){var r=0;function o(e,t,n,s){return function(){var a=this,c=arguments,l=function(){var i,l;if(!(e=r&&(n!==P&&(a=void 0,c=[i]),t.rejectWith(a,c))}};e?u():(C.Deferred.getStackHook&&(u.stackTrace=C.Deferred.getStackHook()),i.setTimeout(u))}}return C.Deferred(function(i){t[0][3].add(o(0,i,b(s)?s:M,i.notifyWith)),t[1][3].add(o(0,i,b(e)?e:M)),t[2][3].add(o(0,i,b(n)?n:P))}).promise()},promise:function(e){return null!=e?C.extend(e,s):s}},r={};return C.each(t,function(e,i){var o=i[2],a=i[5];s[i[1]]=o.add,a&&o.add(function(){n=a},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=o.fireWith}),s.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,i=t,n=Array(i),s=c.call(arguments),r=C.Deferred(),o=function(e){return function(i){n[e]=this,s[e]=arguments.length>1?c.call(arguments):i,--t||r.resolveWith(n,s)}};if(t<=1&&(I(e,r.done(o(i)).resolve,r.reject,!t),"pending"===r.state()||b(s[i]&&s[i].then)))return r.then();for(;i--;)I(s[i],o(i),r.reject);return r.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&B.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){i.setTimeout(function(){throw e})};var R=C.Deferred();function W(){o.removeEventListener("DOMContentLoaded",W),i.removeEventListener("load",W),C.ready()}C.fn.ready=function(e){return R.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||R.resolveWith(o,[C]))}}),C.ready.then=R.then,"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?i.setTimeout(C.ready):(o.addEventListener("DOMContentLoaded",W),i.addEventListener("load",W));var _=function(e,t,i,n,s,r,o){var a=0,c=e.length,l=null==i;if("object"===w(i))for(a in s=!0,i)_(e,t,a,i[a],!0,r,o);else if(void 0!==n&&(s=!0,b(n)||(o=!0),l&&(o?(t.call(e,n),t=null):(l=t,t=function(e,t,i){return l.call(C(e),i)})),t))for(;a1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),C.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=J.get(e,t),i&&(!n||Array.isArray(i)?n=J.access(e,t,C.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=C.queue(e,t),n=i.length,s=i.shift(),r=C._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete r.stop,s.call(e,function(){C.dequeue(e,t)},r)),!n&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return J.get(e,i)||J.access(e,i,{empty:C.Callbacks("once memory").add(function(){J.remove(e,[t+"queue",i])})})}}),C.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length\x20\t\r\n\f]+)/i,pe=/^$|^module$|\/(?:java|ecma)script/i,ye={option:[1,""],thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ge(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?C.merge([e],i):i}function ve(e,t){for(var i=0,n=e.length;i-1)s&&s.push(r);else if(l=C.contains(r.ownerDocument,r),o=ge(f.appendChild(r),"script"),l&&ve(o),i)for(u=0;r=o[u++];)pe.test(r.type||"")&&i.push(r);return f}be=o.createDocumentFragment().appendChild(o.createElement("div")),(me=o.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),be.appendChild(me),v.checkClone=be.cloneNode(!0).cloneNode(!0).lastChild.checked,be.innerHTML="",v.noCloneChecked=!!be.cloneNode(!0).lastChild.defaultValue;var we=o.documentElement,Ce=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function $e(){return!0}function je(){return!1}function Ee(){try{return o.activeElement}catch(e){}}function Ne(e,t,i,n,s,r){var o,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Ne(e,a,i,n,t[a],r);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=je;else if(!s)return e;return 1===r&&(o=s,(s=function(e){return C().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=C.guid++)),e.each(function(){C.event.add(this,t,s,n,i)})}C.event={global:{},add:function(e,t,i,n,s){var r,o,a,c,l,u,f,h,d,p,y,g=J.get(e);if(g)for(i.handler&&(i=(r=i).handler,s=r.selector),s&&C.find.matchesSelector(we,s),i.guid||(i.guid=C.guid++),(c=g.events)||(c=g.events={}),(o=g.handle)||(o=g.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(H)||[""]).length;l--;)d=y=(a=Se.exec(t[l])||[])[1],p=(a[2]||"").split(".").sort(),d&&(f=C.event.special[d]||{},d=(s?f.delegateType:f.bindType)||d,f=C.event.special[d]||{},u=C.extend({type:d,origType:y,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:p.join(".")},r),(h=c[d])||((h=c[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,n,p,o)||e.addEventListener&&e.addEventListener(d,o)),f.add&&(f.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),s?h.splice(h.delegateCount++,0,u):h.push(u),C.event.global[d]=!0)},remove:function(e,t,i,n,s){var r,o,a,c,l,u,f,h,d,p,y,g=J.hasData(e)&&J.get(e);if(g&&(c=g.events)){for(l=(t=(t||"").match(H)||[""]).length;l--;)if(d=y=(a=Se.exec(t[l])||[])[1],p=(a[2]||"").split(".").sort(),d){for(f=C.event.special[d]||{},h=c[d=(n?f.delegateType:f.bindType)||d]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=h.length;r--;)u=h[r],!s&&y!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,f.remove&&f.remove.call(e,u));o&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,p,g.handle)||C.removeEvent(e,d,g.handle),delete c[d])}else for(d in c)C.event.remove(e,d+t[l],i,n,!0);C.isEmptyObject(c)&&J.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,r,o,a=C.event.fix(e),c=new Array(arguments.length),l=(J.get(this,"events")||{})[a.type]||[],u=C.event.special[a.type]||{};for(c[0]=a,t=1;t=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(r=[],o={},i=0;i-1:C.find(s,this,null,[l]).length),o[s]&&r.push(n);r.length&&a.push({elem:l,handlers:r})}return l=this,c\x20\t\r\n\f]*)[^>]*)\/>/gi,Fe=/