/**
* Minified by jsDelivr using Terser v3.14.1.
* Original file: /gh/vast-engineering/jquery-popup-overlay@2.1.5/jquery.popupoverlay.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
!function(t){var e,o,i,n=t(window),a={},s=[],p=[],l=null,d=[],r=null,c=/(iPad|iPhone|iPod)/.test(navigator.userAgent),u={_init:function(e){var o=t(e),i=o.data("popupoptions");p[e.id]=!1,s[e.id]=0,o.data("popup-initialized")||(o.attr("data-popup-initialized","true"),u._initonce(e)),i.autoopen&&setTimeout(function(){u.show(e,0)},0)},_initonce:function(o){var i,n,a,s=t(o),p=t("body"),d=s.data("popupoptions");(l=parseInt(p.css("margin-right"),10),r=void 0!==document.body.style.webkitTransition||void 0!==document.body.style.MozTransition||void 0!==document.body.style.msTransition||void 0!==document.body.style.OTransition||void 0!==document.body.style.transition,d.scrolllock)&&(void 0===e&&(a=(n=t('
').appendTo("body")).children(),e=a.innerWidth()-a.height(99).innerWidth(),n.remove()));if(s.attr("id")||s.attr("id","j-popup-"+parseInt(1e8*Math.random(),10)),s.addClass("popup_content"),d.background&&!t("#"+o.id+"_background").length){p.append('');var f=t("#"+o.id+"_background");f.css({opacity:0,visibility:"hidden",backgroundColor:d.color,position:"fixed",top:0,right:0,bottom:0,left:0}),d.setzindex&&!d.autozindex&&f.css("z-index","100000"),d.transition&&f.css("transition",d.transition)}p.append(o),s.wrap(''),(i=t("#"+o.id+"_wrapper")).css({opacity:0,visibility:"hidden",position:"absolute"}),c&&((f=t("#"+o.id+"_background")).css("cursor","pointer"),t(d.pagecontainer).css("cursor","pointer")),"overlay"==d.type&&!d.absolute&&d.background&&(i.css("overflow","auto"),i[0].style.WebkitOverflowScrolling="touch"),s.css({opacity:0,visibility:"hidden","pointer-events":"auto",display:"inline-block"}),d.setzindex&&!d.autozindex&&i.css("z-index","100001"),d.outline||s.css("outline","none"),d.transition&&(s.css("transition",d.transition),i.css("transition",d.transition)),s.attr("aria-hidden",!0),"overlay"==d.type&&(s.css({textAlign:"left",position:"relative",verticalAlign:"middle"}),i.css({position:"fixed",width:"100%",height:"100%",top:0,left:0,textAlign:"center"}),i.append(''),t(".popup_align").css({display:"inline-block",verticalAlign:"middle",height:"100%"})),s.attr("role","dialog");var h=d.openelement?d.openelement:"."+o.id+"_open";t(h).each(function(e,o){t(o).attr("data-popup-ordinal",e),o.id||t(o).attr("id","open_"+parseInt(1e8*Math.random(),10))}),s.attr("aria-labelledby")||s.attr("aria-label")||s.attr("aria-labelledby",t(h).attr("id")),"hover"==d.action?(d.keepfocus=!1,t(h).on("mouseenter",function(){u.show(o,t(this).data("popup-ordinal"))}),t(h).on("mouseleave",function(){u.hide(o)})):t(document).on("click.jqp",h,function(e){e.preventDefault();var i=t(this).data("popup-ordinal");setTimeout(function(){u.show(o,i)},0)}),d.closebutton&&u.addclosebutton(o),d.detach?s.detach():s.hide()},show:function(i,a){var c=t(i);if(!c.data("popup-visible")){c.data("popup-initialized")||u._init(i),c.attr("data-popup-initialized","true");var h=t("body"),b=c.data("popupoptions"),g=t("#"+i.id+"_wrapper"),v=t("#"+i.id+"_background");if(f(i,a,b.beforeopen),p[i.id]=a,setTimeout(function(){d.push(i.id)},0),b.autozindex){for(var m=document.getElementsByTagName("*"),y=m.length,_=0,w=0;w=0&&t("#"+i.id+"_background").css({zIndex:s[i.id]+1}),s[i.id]>=0&&g.css({zIndex:s[i.id]+2})}b.detach?(g.prepend(i),c.show()):c.show(),o=setTimeout(function(){g.css({visibility:"visible",opacity:1}),t("html").addClass("popup_visible").addClass("popup_visible_"+i.id),g.addClass("popup_wrapper_visible")},20),b.scrolllock&&(h.css("overflow","hidden"),h.height()>n.height()&&h.css("margin-right",l+e)),c.css({visibility:"visible",opacity:1}),b.background&&(v.css({visibility:"visible",opacity:b.opacity}),setTimeout(function(){v.css({opacity:b.opacity})},0)),c.data("popup-visible",!0),u.reposition(i,a),c.data("focusedelementbeforepopup",document.activeElement),c.attr("tabindex",-1),setTimeout(function(){"closebutton"===b.focuselement?t("#"+i.id+" ."+i.id+"_close:first").focus():b.focuselement?t(b.focuselement).focus():(!0===b.focuselement||b.keepfocus)&&c.focus()},b.focusdelay),b.keepfocus&&t(b.pagecontainer).attr("aria-hidden",!0),c.attr("aria-hidden",!1),f(i,a,b.onopen),r?g.one("transitionend",function(){f(i,a,b.opentransitionend)}):f(i,a,b.opentransitionend),"tooltip"==b.type&&t(window).on("resize."+i.id,function(){u.reposition(i,a)})}},hide:function(e,i){var n=t.inArray(e.id,d);if(-1!==n){o&&clearTimeout(o);var a=t("body"),s=t(e),c=s.data("popupoptions"),u=t("#"+e.id+"_wrapper"),h=t("#"+e.id+"_background");s.data("popup-visible",!1),1===d.length?t("html").removeClass("popup_visible").removeClass("popup_visible_"+e.id):t("html").hasClass("popup_visible_"+e.id)&&t("html").removeClass("popup_visible_"+e.id),d.splice(n,1),u.hasClass("popup_wrapper_visible")&&u.removeClass("popup_wrapper_visible"),c.keepfocus&&!i&&setTimeout(function(){t(s.data("focusedelementbeforepopup")).is(":visible")&&s.data("focusedelementbeforepopup").focus()},0),u.css({visibility:"hidden",opacity:0}),s.css({visibility:"hidden",opacity:0}),c.background&&h.css({visibility:"hidden",opacity:0}),t(c.pagecontainer).attr("aria-hidden",!1),s.attr("aria-hidden",!0),f(e,p[e.id],c.onclose),r&&"0s"!==s.css("transition-duration")?s.one("transitionend",function(){s.data("popup-visible")||(c.detach?s.detach():s.hide()),c.scrolllock&&setTimeout(function(){t.grep(d,function(e){return t("#"+e).data("popupoptions").scrolllock}).length||a.css({overflow:"visible","margin-right":l})},10),f(e,p[e.id],c.closetransitionend)}):(c.detach?s.detach():s.hide(),c.scrolllock&&setTimeout(function(){t.grep(d,function(e){return t("#"+e).data("popupoptions").scrolllock}).length||a.css({overflow:"visible","margin-right":l})},10),f(e,p[e.id],c.closetransitionend)),"tooltip"==c.type&&t(window).off("resize."+e.id)}},toggle:function(e,o){t(e).data("popup-visible")?u.hide(e):setTimeout(function(){u.show(e,o)},0)},reposition:function(e,o){var i=t(e),a=i.data("popupoptions"),s=t("#"+e.id+"_wrapper");if(o=o||0,"tooltip"==a.type){var p;s.css({position:"absolute"});var l=(p=a.tooltipanchor?t(a.tooltipanchor):a.openelement?t(a.openelement).filter('[data-popup-ordinal="'+o+'"]'):t("."+e.id+'_open[data-popup-ordinal="'+o+'"]')).offset()||{left:0,top:0};"right"==a.horizontal?s.css("left",l.left+p.outerWidth()+a.offsetleft):"leftedge"==a.horizontal?s.css("left",l.left+a.offsetleft):"left"==a.horizontal?s.css("right",n.width()-l.left-a.offsetleft):"rightedge"==a.horizontal?s.css("right",n.width()-l.left-p.outerWidth()-a.offsetleft):s.css("left",l.left+p.outerWidth()/2-i.outerWidth()/2-parseFloat(i.css("marginLeft"))+a.offsetleft),"bottom"==a.vertical?s.css("top",l.top+p.outerHeight()+a.offsettop):"bottomedge"==a.vertical?s.css("top",l.top+p.outerHeight()-i.outerHeight()+a.offsettop):"top"==a.vertical?s.css("bottom",n.height()-l.top-a.offsettop):"topedge"==a.vertical?s.css("bottom",n.height()-l.top-i.outerHeight()-a.offsettop):s.css("top",l.top+p.outerHeight()/2-i.outerHeight()/2-parseFloat(i.css("marginTop"))+a.offsettop)}else"overlay"==a.type&&(a.horizontal?s.css("text-align",a.horizontal):s.css("text-align","center"),a.vertical?i.css("vertical-align",a.vertical):i.css("vertical-align","middle"),a.absolute&&s.css({position:"absolute",top:window.scrollY}),a.background||(s.css({"pointer-events":"none"}),a.absolute||h(e)||(i.css("overflow","auto"),i[0].style.WebkitOverflowScrolling="touch",i.css("max-height","calc(100% - "+i.css("margin-top")+" - "+i.css("margin-bottom")+")"))))},addclosebutton:function(e){var o;o=t(e).data("popupoptions").closebuttonmarkup?t(a.closebuttonmarkup).addClass(e.id+"_close"):'',t(e).data("popup-initialized")&&t(e).append(o)}},f=function(e,o,i){var n,a,s=t(e).data("popupoptions");void 0!==s&&(n=s.openelement?s.openelement:"."+e.id+"_open",a=t(n+'[data-popup-ordinal="'+o+'"]'),"function"==typeof i&&i.call(t(e),e,a))},h=function(t){var e=t.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)};t(document).on("keydown",function(e){if(d.length){var o=d[d.length-1],i=document.getElementById(o);t(i).data("popupoptions").escape&&27==e.keyCode&&u.hide(i)}}),t(document).on("mousedown",function(t){i=t.target}),t(document).on("click",function(e){if(d.length){var o=d[d.length-1],n=document.getElementById(o),a=t(n).data("popupoptions").closeelement?t(n).data("popupoptions").closeelement:"."+n.id+"_close";t(e.target).closest(a).length&&(e.preventDefault(),u.hide(n)),t(n).data("popupoptions")&&t(n).data("popupoptions").blur&&!t(e.target).closest(t(n).data("popupoptions").blurignore).length&&!t(e.target).closest("#"+o).length&&!t(i).closest("#"+o).length&&2!==e.which&&t(e.target).is(":visible")&&(t(n).data("popupoptions").background?(u.hide(n),e.preventDefault()):u.hide(n,!0))}}),t(document).on("keydown",function(e){if(d.length&&9==e.which){var o=d[d.length-1],i=document.getElementById(o);if(!t(i).data("popupoptions").keepfocus)return;var n=t(i).find("*").filter("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(":visible"),a=t(":focus"),s=n.length,p=n.index(a);0===s?(t(i).focus(),e.preventDefault()):e.shiftKey?0===p&&(n.get(s-1).focus(),e.preventDefault()):p==s-1&&(n.get(0).focus(),e.preventDefault())}}),t.fn.popup=function(e){return this.each(function(){var o=t(this),i=t.extend(!0,{},t.fn.popup.defaults);if(e&&"tooltip"===e.type&&(i.background=!1),"object"==typeof e){var n=t.extend({},i,o.data("popupoptions"),e);o.data("popupoptions",n),a=o.data("popupoptions"),u._init(this)}else"string"==typeof e?(o.data("popupoptions")||(o.data("popupoptions",i),a=o.data("popupoptions")),u[e].call(this,this)):(o.data("popupoptions")||(o.data("popupoptions",i),a=o.data("popupoptions")),u._init(this))})},t.fn.popup.destroyall=function(){for(var e=0;e