!function(l){"use strict";var r,i,o;function a(e,t){var n;if(!(this instanceof a))return(n=new a(e,t)).open(),n;this.id=a.id++,this.setup(e,t),this.chainCallbacks(a._callbackChain)}void 0===l?"console"in window&&window.console.error("Featherlight requires jQuery."):l.fn.jquery.match(/-ajax/)?"console"in window&&window.console.info("Featherlight needs regular jQuery, not the slim version."):(r=[],i=function(t){return r=l.grep(r,function(e){return e!==t&&0',persist:!(o=function(e){var t,n;a._globalHandlerInstalled!==e&&(a._globalHandlerInstalled=e,n=l.map(t={keyup:"onKeyUp",resize:"onResize"},function(e,t){return t+"."+a.prototype.namespace}).join(" "),l(window)[e?"on":"off"](n,function(e){l.each(a.opened().reverse(),function(){if(!e.isDefaultPrevented()&&!1===this[t[e.type]](e))return e.preventDefault(),e.stopPropagation(),!1})}))}),otherClose:null,beforeOpen:l.noop,beforeContent:l.noop,beforeClose:l.noop,afterOpen:l.noop,afterContent:l.noop,afterClose:l.noop,onKeyUp:l.noop,onResize:l.noop,type:null,closeIcon:"✖",contentFilters:["jquery","image","html","ajax","iframe","text"],width:"",height:"",maxWidth:"",maxHeight:"",requireWindowWidth:null,setup:function(e,t){"object"!=typeof e||e instanceof l!=!1||t||(t=e,e=void 0);var n=l.extend(this,t,{target:e});return n.$instance=l(['
','
','
'+n.loading+"
","
","
"].join("")),n.$instance.on("click."+n.namespace,function(e){if(!e.isDefaultPrevented())switch(!0){case"backdrop"===n.closeOnClick&&l(e.target).is("."+n.namespace):case"anywhere"===n.closeOnClick:case l(e.target).is("."+n.namespace+"-close"+(n.otherClose?","+n.otherClose:"")):n.close(e),e.preventDefault()}}),this},getContent:function(){if(!1!==this.persist&&this.$content)return this.$content;function e(e){return t.$currentTarget&&t.$currentTarget.attr(e)}var t=this,n=this.constructor.contentFilters,r=e(t.targetAttr),i=t.target||r||"",o=n[t.type];if(!o&&i in n&&(o=n[i],i=t.target&&r),i=i||e("href")||"",!o)for(var a in n)t[a]&&(o=n[a],i=t[a]);if(!o){var s=i,i=null;if(l.each(t.contentFilters,function(){return o=n[this],!(i=!(i=o.test?o.test(s):i)&&o.regex&&s.match&&s.match(o.regex)?s:i)}),!i)return"console"in window&&window.console.error("Featherlight: No content filter found "+(s?' for "'+s+'"':" (no target specified)")),!1}return o.process.call(t,i)},setContent:function(e){var t=this;return t.$instance.removeClass(t.namespace+"-loading"),e.show(),t.$content=e,t.$instance.find("."+t.namespace+"-content").html(t.$content),t.closeIcon&&t.$instance.find("."+t.namespace+"-content").prepend('
'+t.closeIcon+"
"),t},open:function(t){var n=this;if(t&&(t.ctrlKey||t.shiftKey))return!1;if(n.requireWindowWidth&&n.requireWindowWidth>l(window).width())return!1;if(n.$instance.hide().appendTo("body"),!(t&&t.isDefaultPrevented()||!1===n.beforeOpen(t))){l("body").addClass("featherlight-open"),l(".featherlight").removeClass("active"),n.$instance.addClass("active"),t&&t.preventDefault();var e=n.getContent();if(e)return r.push(n),o(!0),n.$instance.show(),n.beforeContent(t),l.when(e).always(function(e){n.setContent(e),n.width&&n.$content.parent().css("width",n.width),n.height&&n.$content.parent().css("height",n.height),n.maxWidth&&n.$content.parent().css("max-width",n.maxWidth),n.maxHeight&&n.$content.parent().css("max-height",n.maxHeight),n.afterContent(t)}).then(n.$instance.promise()).done(function(){n.afterOpen(t)})}return n.$instance.detach(),l.Deferred().reject().promise()},close:function(e){var t=this,n=l.Deferred();return!1===t.beforeClose(e)?n.reject():(0===i(t).length&&o(!1),t.$instance.hide().detach(),t.afterClose(e),n.resolve(),l(".featherlight:not(.active)").filter(":last").addClass("active"),0===l(".featherlight").length&&l("body").removeClass("featherlight-open")),n.promise()},chainCallbacks:function(e){for(var t in e)this[t]=l.proxy(e[t],this,l.proxy(this[t],this))}},l.extend(a,{id:0,defaults:a.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(e){return e instanceof l&&e},process:function(e){return!1!==this.persist?l(e):l(e).clone(!0)}},image:{regex:/\.(a?png|avif|bmp|gif|ico|jpe?g|jp2|svg|tiff?|webp)(\?\S*)?$/i,process:function(e){var t=l.Deferred(),n=new Image,r=l('').attr("src",e);return n.onload=function(){r.naturalWidth=n.width,r.naturalHeight=n.height,t.resolve(r)},n.onerror=function(){t.reject(r)},n.src=e,t.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(e){return l(e)}},ajax:{regex:/./,process:function(e){var n=l.Deferred(),r=(e=e.replace("#"," #"),l("
").load(e,function(e,t){"error"!==t&&n.resolve(r.contents()),n.reject()}));return n.promise()}},iframe:{process:function(e){var t=new l.Deferred,n=l("");return n.hide().attr("src",e).on("load",function(){t.resolve(n.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),t.promise()}},raw:{regex:/\.(log|md|txt)(\?\S*)?$/i,process:function(e){var t=l.Deferred(),n=l("
").css({"white-space":"pre-wrap","max-width":"90vw"});return l.get(e,function(e){n.text(e)}).done(function(e){t.resolve(n)}),t.promise()}},text:{process:function(e){return l("
",{text:e})}}},readElementConfig:function(e){var n;if(e)return n=l(e).data(),l.each(this.functionAttributes,function(e,t){void 0!==n[t]&&(n[t]=new Function(n[t]))}),n},attach:function(i,o,a){function e(e){var t=l(e.currentTarget),n=l.extend({$source:i,$currentTarget:t},c.readElementConfig(i[0]),c.readElementConfig(this),a),r=s||t.data("featherlight-persisted")||new c(o,n);"shared"===r.persist?s=r:!1!==r.persist&&t.data("featherlight-persisted",r),n.$currentTarget.blur&&n.$currentTarget.blur(),r.open(e)}var s,c=this,t=("object"!=typeof o||o instanceof l!=!1||a||(a=o,o=void 0),(a=l.extend({},a)).namespace||c.defaults.namespace,l.extend({},c.defaults,c.readElementConfig(i[0]),a));return i.on(t.openTrigger+"."+t.namespace,t.filter,e),{filter:t.filter,handler:e}},current:function(){var e=this.opened();return e[e.length-1]||null},opened:function(){var t=this;return i(),l.grep(r,function(e){return e instanceof t})},close:function(e){var t=this.current();if(t)return t.close(e)},_onReady:function(){var r,i=this;i.autoBind&&((r=l(i.autoBind)).each(function(){i.attach(l(this))}),l(document).on("click",i.autoBind,function(e){var t,n;e.isDefaultPrevented()||(t=l(e.currentTarget),r.length!==(r=r.add(t)).length&&(!(n=i.attach(t)).filter||0