!function(d){var b='[data-toggle="dropdown"]',a=function(f){var e=d(f).on("click.dropdown.data-api",this.toggle);d("html").on("click.dropdown.data-api",function(){e.parent().removeClass("open")})};a.prototype={constructor:a,toggle:function(j){var i=d(this),h,f,g;if(j&&j.type==="keypress"&&j.which!==13){return}if(i.is(".disabled, :disabled")){return}f=i.attr("data-target");if(!f){f=i.attr("href");f=f&&f.replace(/.*(?=#[^\s]*$)/,"")}h=d(f);h.length||(h=i.parent());g=h.hasClass("open");c();if(!g){h.toggleClass("open")}return false}};function c(){d(b).parent().removeClass("open")}d.fn.dropdown=function(e){return this.each(function(){var g=d(this),f=g.data("dropdown");if(!f){g.data("dropdown",(f=new a(this)))}if(typeof e=="string"){f[e].call(g)}})};d.fn.dropdown.Constructor=a;d(function(){d("html").on("click.dropdown.data-api",c);d("body").on("click.dropdown",".dropdown form, .dropdown input[type=file]",function(f){f.stopPropagation()}).on("click.dropdown.data-api",b,a.prototype.toggle).on("keypress.dropdown.data-api",b,a.prototype.toggle);if(d("#subscribe_link")){d("#subscribe_link").on("keydown",function(f){if(f.which===27&&d("#subscribe_link").hasClass("open")){d("#subscribe_link").removeClass("open");d("#subscribe_link a").focus()}})}})}((typeof jq18==="function")?jq18:jQuery);