!function(e){var t={};function o(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/wp-content/themes/metro-parent/dist/",o(o.s=101)}({101:function(e,t,o){"use strict";o.r(t);var n=o(16),a=o.n(n),r=o(17),i=o.n(r),c=function(){function e(){a()(this,e),Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)>=1024||(this.images=document.querySelectorAll(".article-body figure.img-container"),this.images.length>0&&(this.createAndBindLauncher(),this.createModalElement()))}return i()(e,[{key:"createAndBindLauncher",value:function(){var e=this,t=1;this.bindLaunchModal=this.launchModal.bind(this),this.images.forEach((function(o){var n=document.createElement("i");n.className="icon icon-expand",n.id="photoswipe-expand-".concat(t),n.setAttribute("data-index",t.toString()),n.addEventListener("touchstart",e.bindLaunchModal),o.appendChild(n),t++}))}},{key:"createModalElement",value:function(){var e=this,t=document.createElement("div");t.id="metro-photoswipe-modal";var o='

1/'.concat(this.images.length,"

");t.innerHTML=o;var n=document.createElement("i");n.id="metro-photoswipe-next",n.className="icon icon-play metro-photoswipe-move",t.appendChild(n),n.addEventListener("touchstart",(function(t){return e.nextSlide(t)}));var a=document.createElement("i");a.id="metro-photoswipe-prev",a.className="icon icon-play metro-photoswipe-move",t.appendChild(a),a.addEventListener("touchstart",(function(t){return e.prevSlide(t)}));var r=document.createElement("i");r.className="icon icon-close",t.appendChild(r),r.addEventListener("touchstart",(function(t){return e.closeModal(t)}));var i=1;this.images.forEach((function(e){var o=e.getElementsByTagName("img")[0].getAttribute("data-src");null===o&&(o=e.getElementsByTagName("img")[0].getAttribute("src"));var n=e.getElementsByTagName("figcaption")[0].innerText,a='

'.concat(n,"

"),r=document.createElement("div");r.className="slide",r.setAttribute("data-background",o),r.setAttribute("data-index",i.toString()),r.innerHTML=a,t.appendChild(r),i++})),document.getElementById("page-container").appendChild(t)}},{key:"launchModal",value:function(e){e.preventDefault(),document.body.classList.add("photoswipe-active");var t=e.currentTarget.getAttribute("data-index");this.goToIndex(t)}},{key:"closeModal",value:function(e){e.preventDefault(),document.body.classList.remove("photoswipe-active")}},{key:"nextSlide",value:function(e){e.stopImmediatePropagation();var t=parseInt(document.getElementsByClassName("metro-photoswipe-slide-active")[0].getAttribute("data-index"),10)+1;t>document.querySelectorAll("#metro-photoswipe-modal .slide").length&&(t=1),this.goToIndex(t)}},{key:"prevSlide",value:function(e){e.stopImmediatePropagation();var t=parseInt(document.getElementsByClassName("metro-photoswipe-slide-active")[0].getAttribute("data-index"),10)-1;t<=0&&(t=document.querySelectorAll("#metro-photoswipe-modal .slide").length),this.goToIndex(t)}},{key:"goToIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=document.querySelectorAll("#metro-photoswipe-modal .slide")[e-1];if(t){document.querySelectorAll(".metro-photoswipe-slide-active").forEach((function(e){e.classList.remove("metro-photoswipe-slide-active")})),t.classList.add("metro-photoswipe-slide-active");var o=t.getAttribute("data-background");document.getElementById("metro-photoswipe-modal").style.cssText='background-image: url("'.concat(o,'")'),document.getElementById("metro-photoswipe-modal__pagination--current").innerText=e;var n=window.s||{},a="article/photoswipe/move";n.eVar1=window.metro.pageData.topCategory,n.eVar2=window.metro.pageData.subCategory,n.eVar54=a,n.linkTrackVars="eVar1,eVar2,eVar54",n.tl(!0,"o",a)}}}]),e}();document.addEventListener("DOMContentLoaded",(function(){window.metro=window.metro||{},window.metro.photoswipe=new c}))},16:function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},17:function(e,t){function o(e,t){for(var o=0;o