(function(r,C){typeof exports=="object"&&typeof module<"u"?C(require("jquery")):typeof define=="function"&&define.amd?define(["jquery"],C):(r=typeof globalThis<"u"?globalThis:r||self,C(r.jQuery))})(this,function(r){"use strict";function C(e,t,a){const i=t+"="+a;let o="?"+i;if(e){const n=new RegExp("([?&])"+t+"=[^&]*");n.exec(e)!==null?o=e.replace(n,"$1"+i):o=e+"&"+i}return o}function M(e){const t=new RegExp("[?&]"+e+"(=([^]*)|&|#|$)").exec(document.location.search);if((t==null?void 0:t[2])!==void 0)return decodeURIComponent(t[2].replace(/\+/g," "))}function D(e,t){let a=e;if(a){const i=new RegExp("\\?"+t+"=[^&]*"),o=new RegExp("&"+t+"=[^&]*");a=a.replace(i,"?"),a=a.replace(o,"")}return a}var y=(e=>(e[e.Right=-1]="Right",e[e.None=0]="None",e[e.Left=1]="Left",e))(y||{});function A(){let e=D(document.location.search,"imageLightboxIndex");e=D(e,"imageLightboxSet"),window.history.pushState({},"",document.location.pathname+e)}function Q(e,t,a){const i=a[e].dataset.ilb2Id??e.toString();let o=C(document.location.search,"imageLightboxIndex",i);const n={imageLightboxIndex:i,imageLightboxSet:""};t!==void 0&&(n.imageLightboxSet=t,o=C(o,"imageLightboxSet",t)),window.history.pushState(n,"",document.location.pathname+o)}function P(e,t,a){if(M("imageLightboxSet")!==e)return;const i=M("imageLightboxIndex");if(i===void 0)return;let o=t.index('[data-ilb2-id="'+i+'"]');o<0&&(o=parseInt(i)),a(o,!0)}function X(e,t,a,i,o,n,c){const u=e.originalEvent.state;if(u===null){n(!0);return}if(u.imageLightboxSet!==t)return;const g=u.imageLightboxIndex;if(g===void 0){n(!0);return}let b=a.get().findIndex(S=>S.dataset.ilb2Id===g);if(b<0&&(b=parseInt(g)),i===null){o(b,!0);return}c(b,b>i?y.Right:y.Left,!0)}const I=r("
",{id:"ilb-container"});function _(e,t){I.removeClass("ilb-overlay"),r("body").addClass("ilb-body"),r("body").append(I),e&&I.on("click.ilb7 touchend.ilb7",()=>(t(),!1))}function B(){I.addClass("ilb-overlay")}function W(){I.remove(),I.empty(),r("body").removeClass("ilb-body")}function q(e,t){I.trigger(e,t)}function E(){return I}const V=r("").attr("id","ilb-activity-indicator").append(r(""));function R(){E().append(V)}function H(){V.remove()}const z=r("",{class:"ilb-arrow",id:"ilb-arrow-left"}),U=r("",{class:"ilb-arrow",id:"ilb-arrow-right"});function G(e,t){E().append(z.on("click.ilb7 touchend.ilb7",()=>(e(),!1)),U.on("click.ilb7 touchend.ilb7",()=>(t(),!1)))}const N=r("",{id:"ilb-caption",html:" "});function J(){E().append(N)}function Y(e){e!==null?(N.css("display",""),N.text(e)):N.css("display","none")}const Z=r("",{id:"ilb-close-button"});function $(e){E().append(Z.on("click.ilb7",()=>(e(),!1)))}function ee(e,t,a){let i=0,o=0,n=r('').attr("src",e.attr("href"));const c=r('').append(n);let u;const g=e.data("ilb2Video")!==void 0;g&&([n,u]=a.element(e.data("ilb2VideoId")));function b(d,f,h,L){if(t.quitOnImgClick)return L(),!1;const v=d.target;return(d.pageX-v.offsetLeft)/v.width<=1/3?f():h(),!1}function S(d,f,h,L){!g&&!("ontouchstart"in window)&&n.on("click.ilb7",v=>b(v,f,h,L)),n.on("touchstart.ilb7",v=>{i=v.originalEvent.touches[0].pageX,n.css("transition-property","opacity")}).on("touchmove.ilb7",v=>{o=v.originalEvent.touches[0].pageX-i,n.css("left",o.toString()+"px")}).on("touchend.ilb7 touchcancel.ilb7",()=>(n.css("transition-property","left, opacity"),o>50?(f(),!1):o<-50?(h(),!1):(n.css("left","0"),!0))),d()}function F(d,f){E().append(c);const h=Math.abs(100-t.gutter);n.css({"max-height":h.toString()+"%","max-width":h.toString()+"%",left:(-100*d).toString()+"px",transition:"all ease "+t.animationSpeed.toString()+"ms","transition-property":"left, opacity",opacity:"0"}),n.show(f)}function O(d,f){n.on("error.ilb7",f),u===!0?d():n.on("load.ilb7",d).on("loadedmetadata.ilb7",d)}function w(d,f,h,L){n.css({left:"0",opacity:"1"}),setTimeout(()=>{S(d,f,h,L)},t.animationSpeed)}function m(d,f){if(d!==y.None){const h=parseInt(n.css("left"),10)||0;n.css("left",(h+100*d).toString()+"px")}n.css("opacity","0"),setTimeout(()=>{f()},t.animationSpeed)}function x(){c.remove()}return{addToDOM:F,startLoading:O,transitionIn:w,transitionOut:m,removeFromDOM:x}}const te=document.fullscreenEnabled||(document.webkitFullscreenEnabled??!1);function ie(){const e=E().get(0),t=()=>{(e.requestFullscreen||e.webkitRequestFullScreen).call(e)},a=()=>{(document.exitFullscreen||document.webkitExitFullscreen).call(document)};!document.fullscreenElement&&!document.webkitFullscreenElement?t():a()}function ne(e,t,a,i){e.fullscreen&&te&&r(document).on("keyup.ilb7",o=>o.which===13?(ie(),!1):!0),e.enableKeyboard&&r(document).on("keyup.ilb7",o=>e.quitOnEscKey&&o.which===27?(t(),!1):o.which===37?(a(),!1):o.which===39?(i(),!1):!0)}function oe(){r(document).off("keyup.ilb7")}const ae=r("
",{href:"#"}),k=r("
",{class:"ilb-navigation"});function j(e){for(let t=0;t
!1).children().on("click.ilb7 touchend.ilb7",function(){const i=r(this);if(e().eq(i.index()).attr("href")===r("#ilb-image").attr("src"))return!1;const o=i.index()");let n=!1,c=!1,u,g;r.each(t,(O,w)=>{switch(O){case"autoplay":c=!0;break;case"height":u=w;break;case"width":g=w;break;case"controls":case"loop":case"muted":case"poster":case"preload":case"src":o.attr(O,w)}}),t.sources&&r.each(t.sources,(O,w)=>{let m=r("