; (self.AMP=self.AMP||[]).push({m:0,v:"2305252018001",n:"amp-lightbox-gallery",ev:"0.1",l:!0,f:function(t,i){!function(){function i(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function n(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var r=1;rt.length)&&(i=t.length);for(var n=0,r=new Array(i);n=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o;function s(){return o||(o=Promise.resolve(void 0))}var l=function(){var t=this;this.promise=new Promise((function(i,n){t.resolve=i,t.reject=n}))};function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t,i){return(h=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function c(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&h(t,i)}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,i){if(i&&("object"===m(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}function v(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(i){var a=f(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return p(this,n)}}function d(t,i,n){return(t=t.width/t.height)>i.width/i.height!==n?{width:i.height*t,height:i.height}:{width:i.width,height:i.width/t}}function g(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:getComputedStyle(t).getPropertyValue("object-fit");switch(t={width:t.naturalWidth,height:t.naturalHeight},n){case"cover":return d(t,i,!1);case"contain":return d(t,i,!0);case"fill":case"":case null:return i;case"none":return t;case"scale-down":return i=d(t,i,!0),{width:Math.min(t.width,i.width),height:Math.min(t.height,i.height)};default:throw Error("object-fit: ".concat(n," not supported"))}}function b(t,i){return t=(t.match(new RegExp("-?\\s*\\d+"+i))||["0"])[0].replace(" ",""),parseFloat(t)}function x(t,i,n){var r=t||"50% 50%",a=0===r.lastIndexOf("calc",0)?r.indexOf(")")+1:r.indexOf(" ");t=r.slice(0,a)||"",r=r.slice(a)||"",a=b(t,"px");var e=b(r,"px");return t=b(t,"%")/100,{top:b(r,"%")/100*(i.height-n.height)+e,left:t*(i.width-n.width)+a}}function y(t){return"cubic-bezier(".concat(t.x1,",").concat(t.y1,",").concat(t.x2,",").concat(t.y2,")")}function w(t,i,n){var r=n*n,a=r*n;return 3*(n-2*r+a)*t+3*(r-a)*i+a}var k={x1:.42,y1:0,x2:.58,y2:1},M=0;function O(t,i,n){var r=getComputedStyle(t),a=r.getPropertyValue("object-fit");return{objectFit:a,objectPosition:r=r.getPropertyValue("object-position"),rect:i,c:n,j:t,h:g(t,i,a),s:i.width*i.height}}var j="load-end";function C(t){return t?Array.prototype.slice.call(t):[]}var A=Array.isArray;function E(t,i){for(var n=[],r=0,a=0;a=i)return t;i-=t.length;for(var r=n;i>r.length;)r+=n;return r.slice(0,i)+t}var F=Object.prototype,D=F.hasOwnProperty;function I(t){var i=Object.create(null);return t&&Object.assign(i,t),i}F.toString;var P="​​​";function T(t){return 1==(null==(i=t)?void 0:i.nodeType)?t.tagName.toLowerCase()+(t.id?"#".concat(t.id):""):t;var i}function N(t){return t.indexOf(P)>=0}function B(t,i,n,r,a,e,o,s,l,u,h){return t}function R(t,i,n,r,a,e,o,s,l,u,h){return function(t,i){var n,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(i)return i;t&&-1==a.indexOf(t)&&(a+=t);for(var e=3,o=a.split("%s"),s=o.shift(),l=[s];o.length;){var u=arguments[e++],h=o.shift();s+=T(u)+h,l.push(u,h.trim())}var c=new Error(s);throw c.messageArray=E(l,(function(t){return""!==t})),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,c),c}(P,t,i,n,r,a,e,o,s,l,u,h)}function L(t){return(t.ownerDocument||t).defaultView}var U,G,V,_=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function H(t,i,n,r,a){return a||(i?"�":r?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function X(t){return void 0!==U?U:U=function(t){try{var i=t.ownerDocument,n=i.createElement("div"),r=i.createElement("div");return n.appendChild(r),n.querySelector(":scope div")===r}catch(t){return!1}}(t)}function Y(t,i){return t.replace(/^|,/g,"$&".concat(i," "))}function J(t){return String(t).replace(_,H)}function $(t){B(/^[\w-]+$/.test(t))}function Z(t,i){var n=t.classList,r="i-amphtml-scoped";n.add(r);var a=Y(i,".".concat(r)),e=t.querySelectorAll(a);return n.remove(r),e}function q(t,i){if(X(t))return t.querySelector(Y(i,":scope"));var n=Z(t,i)[0];return void 0===n?null:n}function W(t,i,n){var r;for(r=t;r&&r!==n;r=r.parentElement)if(i(r))return r;return null}function K(t,i){return t.closest?t.closest(i):W(t,(function(t){return function(t,i){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!n&&n.call(t,i)}(t,i)}))}function Q(t,i){return $(i),q(t,"> ".concat(i))}function tt(t,i){return $(i),t.querySelector(i)}function it(t){var i=t.ownerDocument||t;return G&&G.ownerDocument===i||(G=i.createElement("div")),nt}function nt(t){return function(t,i){if(B(1===i.length),B(Array.isArray(i)||(r=i,D.call(r,"raw"))),self.trustedTypes&&self.trustedTypes.createPolicy){var n=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return i[0]}});t.innerHTML=n.createHTML("ignored")}else t.innerHTML=i[0];var r,a=t.firstElementChild;return B(a),B(!a.nextElementSibling),t.removeChild(a),a}(G,t)}var rt=["Webkit","webkit","Moz","moz","ms","O","o"];function at(t,i,n,r,a){var e=function(t,i,n){if(i.startsWith("--"))return i;V||(V=I());var r=V[i];if(!r||n){if(r=i,void 0===t[i]){var a=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),e=function(t,i){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return i}}function ht(t){var i,n=I();if(!t)return n;for(;i=lt.exec(t);){var r=ut(i[1],i[1]),a=i[2]?ut(i[2].replace(/\+/g," "),i[2]):"";n[r]=a}return n}function ct(t){var i=(t||self).location;return ht(i.originalHash||i.hash)}var ft="";function mt(t){var i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:vt(t,ct(t)),esm:!1,test:!1,rtvVersion:pt(t),ssrReady:!1}}(i)}function pt(t){var i;return ft||(ft=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"01".concat("2305252018001")),ft}function vt(t,i){var n=i||ct(t);return["1","actions","amp","amp4ads","amp4email"].includes(n.development)||!!t.AMP_DEV_MODE}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var dt=self.__AMP_LOG;function gt(t,i){throw new Error("failed to call initLogConstructor")}function bt(t){return gt()}function xt(t,i,n,r,a,e,o,s,l,u,h){return t}function yt(t,i,n,r,a,e,o,s,l,u,h){return(dt.user||(dt.user=bt()),void dt.user.win?dt.userForEmbed||(dt.userForEmbed=bt()):dt.user).assert(t,i,n,r,a,e,o,s,l,u,h)}function wt(t,i){return Ct(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),i)}function kt(t,i){return Ct(jt(Ot(t)),i)}function Mt(t,i){return At(jt(t),i)}function Ot(t){return t.nodeType?(i=L(t),wt(i,"ampdoc")).getAmpDoc(t):t;var i}function jt(t){var i=Ot(t);return i.isSingleDoc()?i.win:i}function Ct(t,i){xt(zt(t,i));var n=Et(t)[i];return n.obj||(xt(n.ctor),xt(n.context),n.obj=new n.ctor(n.context),xt(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function At(t,i){var n=Et(t)[i];return n?n.promise?n.promise:(Ct(t,i),n.promise=Promise.resolve(n.obj)):null}function Et(t){var i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function zt(t,i){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!n||!n.ctor)}var St="__AMP__EXPERIMENT_TOGGLES";function Ft(t,i,n,r){var a=Mt(t,i);if(a)return a;var e=Ot(t);return e.whenExtensionsKnown().then((function(){var t=e.getExtensionVersion(n);return t?wt(e.win,"extensions").waitForExtension(n,t):null})).then((function(n){return n?r?Mt(t,i):function(t,i){return function(t,i){var n=At(t,i);if(n)return n;var r,a,e,o,s=Et(t);return s[i]=(a=(r=new l).promise,e=r.reject,o=r.resolve,a.catch((function(){})),{obj:null,promise:a,resolve:o,reject:e,context:null,ctor:null}),s[i].promise}(jt(t),i)}(t,i):null}))}var Dt,It,Pt=function(t){return i="action",zt(n=jt(Ot(t)),i)?Ct(n,i):null;var i,n},Tt=function(t){return Ft(t,"amp-analytics-instrumentation","amp-analytics")},Nt=function(t){return wt(t,"extensions")},Bt=function(t){return kt(t,"owners")},Rt=function(t){return Ct(t,"timer")};function Lt(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];Tt(t).then((function(a){a&&a.triggerEventForTarget(t,i,n,r)}))}function Ut(t){if(void 0!==It)return It;It=!1;try{var i={get passive(){return It=!0,!1}};t.addEventListener("test-options",null,i),t.removeEventListener("test-options",null,i)}catch(t){}return It}function Gt(t,i,n,r){return function(t,i,n,r){var a=t,e=n,o=function(t){try{return e(t)}catch(t){var i,n;throw null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t),t}},s=function(){if(void 0!==Dt)return Dt;Dt=!1;try{var t={get capture(){return Dt=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return Dt}(),l=!(null==r||!r.capture);return a.addEventListener(i,o,s?r:l),function(){null==a||a.removeEventListener(i,o,s?r:l),e=null,a=null,o=null}}(t,i,n,r)}var Vt=['
'],_t="clip",Ht="expand",Xt=function(){function t(t,i,n,r,a){this.zl=t,this.M1=i,this.mlt=n,this.plt=r,this.vlt=a}t.build=function(i,n){var r=it(i)(Vt);return new t(r,r.querySelector(".i-amphtml-lbg-caption-scroll"),r.querySelector(".amp-lightbox-gallery-caption"),r.querySelector(".i-amphtml-lbg-caption-mask"),n)};var i=t.prototype;return i.getElement=function(){return this.zl},i.setContent=function(t){this.mlt.innerText=t},i.setOverflowState=function(t){this.M1.setAttribute("i-amphtml-lbg-caption-state",t)},i.getOverflowState=function(){return this.M1.getAttribute("i-amphtml-lbg-caption-state")},i.dlt=function(t,i,n){var r=t==Ht;return r||i?(void 0!==n?n:!r)?Ht:_t:"none"},i.toggleOverflow=function(t){var i,n=this,r=this.plt,a=this.M1;this.vlt((function(){i=a.scrollHeight-a.clientHeight>=r.clientHeight}),(function(){var r=n.getOverflowState(),e=n.dlt(r,i,t);n.setOverflowState(e),e!=Ht&&(a.scrollTop=0)}))},t}(),Yt=["
"],Jt={CLOSE:"close",GALLERY:"gallery",SLIDES:"slides",PREV:"prev",NEXT:"next"},$t=function(){function t(t,i,n){var r=this;this.t=t,this.zl=i,this.vlt=n,this.zl.addEventListener("click",(function(t){r.qs(t)}))}t.build=function(i,n,r){var a=it(n)(Yt);(function(t){return wt(t,"input")})(i).isMouseDetected()||(a.querySelector('[data-action="prev"]').classList.add("i-amphtml-screen-reader"),a.querySelector('[data-action="next"]').classList.add("i-amphtml-screen-reader"));var e=Object.values(Jt);return xt(C(a.querySelectorAll("[data-action]")).map((function(t){return t.getAttribute("data-action")})).every((function(t){return e.includes(t)}))),new t(i,a,r)};var i=t.prototype;return i.getElement=function(){return this.zl},i.qs=function(t){var i=t.target.getAttribute("data-action");i&&(this.zl.dispatchEvent(function(t,i,n,r){var a={detail:n};if(Object.assign(a,void 0),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,a);var e=t.document.createEvent("CustomEvent");return e.initCustomEvent(i,!!a.bubbles,!!a.cancelable,n),e}(this.t,"action",{"action":i})),t.stopPropagation(),t.preventDefault())},t}(),Zt=/(\S+)(?:\s+(?:(-?\d+(?:\.\d+)?)([a-zA-Z]*)))?\s*(?:,|$)/g;function qt(t){var i=t.getAttribute("srcset");if(i)return function(t){for(var i,n=[];i=Zt.exec(t);){var r=i[1],a=void 0,e=void 0;if(i[2]){var o=i[3].toLowerCase();if("w"==o)a=parseInt(i[2],10);else{if("x"!=o)continue;e=parseFloat(i[2])}}else e=1;n.push({url:r,width:a,dpr:e})}return new Kt(n)}(i);var n=t.getAttribute("src");return R(n,'Either non-empty "srcset" or "src" attribute must be specified: %s',t),Wt(n)}function Wt(t){return new Kt([{url:t,width:void 0,dpr:1}])}var Kt=function(){function t(t){R(t.length>0,"Srcset must have at least one source"),this.JT=t;for(var i=!1,n=!1,r=0;r1.2))break;n=e,r=l,a=s}return n},i.rL=function(t){for(var i=this.JT,n=0,r=1/0,a=0;a';case"AMP-VIDEO":case"AMP-YOUTUBE":return'data:image/svg+xml;charset=utf-8,';default:return'data:image/svg+xml;charset=utf-8,'}},i.Clt=function(t){if(t.hasAttribute("lightbox-thumbnail-id")){var i=t.getAttribute("lightbox-thumbnail-id"),n=this.xi.getElementById(i);if(ni.has(null==n?void 0:n.tagName))return qt(n)}return this.Elt(t)},i.Elt=function(t){if(ni.has(t.tagName))return qt(t);if("AMP-VIDEO"==t.tagName)return this.zlt(t);var i,n=(i=t,$("placeholder"),q(i,"> [".concat("placeholder","]")));return n?this.Elt(n):null},i.zlt=function(t){var i=t.getAttribute("poster");return i?Wt(i):null},t}();function si(t,i){var n=Rt(t);return n.promise(1).then((function(){return n.promise(i)}))}function li(t){var i=Math.floor(t/3600),n=Math.floor(t/60),r=Math.floor(t%60);return S(i.toString(),2,"0")+":"+S(n.toString(),2,"0")+":"+S(r.toString(),2,"0")}var ui=function(){function t(){this.Tt=null}var i=t.prototype;return i.add=function(t){var i=this;return this.Tt||(this.Tt=[]),this.Tt.push(t),function(){i.remove(t)}},i.remove=function(t){var i,n,r;this.Tt&&(n=t,-1!=(r=(i=this.Tt).indexOf(n))&&i.splice(r,1))},i.removeAll=function(){this.Tt&&(this.Tt.length=0)},i.fire=function(t){if(this.Tt)for(var i,n=e(this.Tt.slice(),!0);!(i=n()).done;)(0,i.value)(t)},i.getHandlerCount=function(){var t,i;return null!==(t=null===(i=this.Tt)||void 0===i?void 0:i.length)&&void 0!==t?t:0},t}(),hi=function(){function t(t,i,n){var r=this;this.Ir=Rt(t),this.Mr=i,this.Sr=n||0,this.kr=-1,this._r=0,this.Rr=!1,this.Nr=function(){r.Cr()}}var i=t.prototype;return i.isPending=function(){return-1!=this.kr},i.schedule=function(t){var i=t||this.Sr;this.Rr&&i<10&&(i=10);var n=Date.now()+i;return(!this.isPending()||n-this._r<-10)&&(this.cancel(),this._r=n,this.kr=this.Ir.delay(this.Nr,i),!0)},i.Cr=function(){this.kr=-1,this._r=0,this.Rr=!0,this.Mr(),this.Rr=!1},i.cancel=function(){this.isPending()&&(this.Ir.cancel(this.kr),this.kr=-1)},t}(),ci="__AMP_Gestures",fi=function(t,i,n,r){this.type=t,this.data=i,this.time=n,this.event=r},mi=function(){function t(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.zl=t,this.GM=[],this.Lv=[],this.Kt=[],this.BM=[],this.FM=null;var r=t.ownerDocument.defaultView,a=Ut(r);this.WM=i||a,this.XM=n,this.qM=!1,this.Cr=new hi(L(t),this.ad.bind(this)),this.ZM=new ui,this.$M=Object.create(null),this.KM=this.zp.bind(this),this.JM=this._p.bind(this),this.QM=this.qp.bind(this),this.tI=this.Yv.bind(this),this.zl.addEventListener("touchstart",this.KM,!!a&&{passive:!0}),this.zl.addEventListener("touchend",this.JM),this.zl.addEventListener("touchmove",this.QM,!!a&&{passive:!0}),this.zl.addEventListener("touchcancel",this.tI),this.iI=!1}t.get=function(i){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=i[ci];return a||(a=new t(i,n,r),i[ci]=a),a};var i=t.prototype;return i.cleanup=function(){this.zl.removeEventListener("touchstart",this.KM),this.zl.removeEventListener("touchend",this.JM),this.zl.removeEventListener("touchmove",this.QM),this.zl.removeEventListener("touchcancel",this.tI),delete this.zl[ci],this.Cr.cancel()},i.onGesture=function(t,i){var n=new t(this),r=n.getType(),a=this.$M[r];return a||(this.GM.push(n),a=new ui,this.$M[r]=a),a.add(i)},i.removeGesture=function(t){var i=new t(this).getType(),n=this.$M[i];if(n){n.removeAll();var r=z(this.GM,(function(t){return t.getType()==i}));return!(r<0||(this.GM.splice(r,1),this.Kt.splice(r,1),this.BM.splice(r,1),this.Lv.splice(r,1),delete this.$M[i],0))}return!1},i.onPointerDown=function(t){return this.ZM.add(t)},i.zp=function(t){var i=Date.now();this.qM=!1,this.ZM.fire(t);for(var n=0;n=n){i=!0;break}i?(t.stopPropagation(),this.WM||t.preventDefault()):this.XM&&t.stopPropagation(),this.iI&&(this.iI=!1,this.ad())},i.ad=function(){for(var t=Date.now(),i=-1,n=0;nthis.Kt[i])&&(i=n):this.BM[n]&&this.BM[n]1)||!(!i||1!=i.length)&&(this.ih=Date.now(),this.lI=i[0].clientX,this.mI=i[0].clientY,!0)},r.onTouchMove=function(t){var i=t.touches;if(i&&i.length>=1){var n=i[0],r=n.clientX,a=n.clientY;if(this.fI=r,this.pI=a,this.FM)this.wI(!1,!1,t);else{var e=Math.abs(r-this.lI),o=Math.abs(a-this.mI);if(this.hI&&this.cI)(e>=8||o>=8)&&this.signalReady(-10);else if(this.hI){if(e>=8&&e>o)this.signalReady(-10);else if(o>=8)return!1}else{if(!this.cI)return!1;if(o>=8&&o>e)this.signalReady(-10);else if(e>=8)return!1}}return!0}return!1},r.onTouchEnd=function(t){var i=t.touches;i&&0==i.length&&this.kI(t)},r.acceptStart=function(){this.FM=!0,this.dI=this.lI,this.vI=this.mI,this.gI=this.ih,this.lI=this.fI,this.mI=this.pI,this.wI(!0,!1,null)},r.acceptCancel=function(){this.FM=!1},r.wI=function(t,i,n){this.yI=Date.now();var r=this.yI-this.gI;if(!i&&r>4||i&&r>16){var a=vi(this.fI-this.dI,r,this.bI),e=vi(this.pI-this.vI,r,this.xI);(!i||r>32||0!=a||0!=e)&&(this.bI=Math.abs(a)>1e-4?a:0,this.xI=Math.abs(e)>1e-4?e:0),this.dI=this.fI,this.vI=this.pI,this.gI=this.yI}this.signalEmit({first:t,last:i,time:this.yI,deltaX:this.fI-this.lI,deltaY:this.pI-this.mI,startX:this.lI,startY:this.mI,lastX:this.fI,lastY:this.pI,velocityX:this.bI,velocityY:this.xI},n)},r.kI=function(t){this.FM&&(this.FM=!1,this.wI(!1,!0,t),this.signalEnd())},n}(pi));function gi(t,i,n,r){return Math.sqrt(Math.pow(t-n,2)+Math.pow(i-r,2))}function bi(t,i,n){return t+(i-t)*n}var xi,yi,wi=function(){function t(t,i,n,r){this.t=t,this.zl=i,this.Ix=n,this.tX=r,this.rX=null,this.Slt=null,this.eX=null,this.Flt=null,this.Dlt=null,this.Ilt=!1}var i=t.prototype;return i.startSwipe=function(t){var i=this,n=t.hiddenElement,r=t.mask,a=t.overlay,e=t.swipeElement;this.rX=e,this.Slt=n,this.eX=r,this.Flt=a,this.Ilt=!0,this.Ix((function(){i.Plt()}))},i.uX=function(t,i,n,r){var a=1*r;return et(this.rX,{transform:"scale(".concat(t,") translate(").concat(i,"px, ").concat(n,"px)"),transition:"".concat(a,"ms transform ").concat("cubic-bezier(0.15, .55, .3, 0.95)")}),si(this.t,a)},i.fX=function(t){var i=this,n=5*t;return this.Ix((function(){et(i.rX,{transform:"",transition:"".concat(n,"ms transform ease-out")}),et(i.eX,{opacity:"",transition:"".concat(n,"ms opacity ease-out")}),et(i.Flt,{opacity:"",transition:"".concat(n,"ms opacity ease-out")})})).then((function(){return si(i.t,n)}))},i.lX=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";et(this.rX,{transform:t,transition:""}),et(this.eX,{opacity:i,transition:""}),et(this.Flt,{opacity:n,transition:""})},i.vX=function(t,i,n,r,a){var e=this,o=gi(0,0,i,n),s=22.5*i+r,l=22.5*n+a,u=gi(0,0,s,l);return this.uX(t,s,l,o).then((function(){return u<50&&o<.65?e.fX(u):e.tX()}))},i.Plt=function(){this.Slt.classList.add("i-amphtml-ghost"),this.Dlt=Gt(this.rX,"scroll",(function(t){t.stopPropagation()}),{capture:!0}),this.zl.setAttribute("i-amphtml-scale-animation",""),at(this.Flt,"animationFillMode","none")},i.Tlt=function(){this.Slt.classList.remove("i-amphtml-ghost"),this.Dlt(),this.zl.removeAttribute("i-amphtml-scale-animation"),at(this.Flt,"animationFillMode","")},i.swipeMove=function(t){var i=this,n=t.deltaX,r=t.deltaY,a=t.last,e=t.velocityX,o=t.velocityY,s=this.Ilt;a&&(this.Ilt=!1);var l=gi(0,0,n,r),u=Math.min(l/200,1),h=Math.min(l/50,1),c=bi(1,.85,u),f=bi(1,.2,u),m=bi(1,0,h);this.Ix((function(){t.last&&s?i.vX(c,e,o,n,r).then((function(){i.lX(),i.Tlt()})):i.Ilt&&i.lX("scale(".concat(c,") translate(").concat(n,"px, ").concat(r,"px)"),f,m)}))},t}(),ki=function(){function t(t){this.dr=t,this.pr=0,this.mr=0,this.yr=I()}var i=t.prototype;return i.has=function(t){return!!this.yr[t]},i.get=function(t){var i=this.yr[t];if(i)return i.access=++this.mr,i.payload},i.put=function(t,i){this.has(t)||this.pr++,this.yr[t]={payload:i,access:this.mr},this.wr()},i.wr=function(){if(!(this.pr<=this.dr)){var t,i=this.yr,n=this.mr+1;for(var r in i){var a=i[r].access;a.5&&(n*=-1),n}(t))},Ai=function(t){return setTimeout(t,n())})(t);var i,n};function Ei(t,i){try{if(t)if(void 0!==t.message)t=function(t){var i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;var n=t.message,r=t.stack,a=new Error(n);for(var e in t)a[e]=t[e];return a.stack=r,a}(t);else{var n=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(i){return String(t)}}(n))).origError=n}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){var r=z(t.messageArray,(function(t){return null==t?void 0:t.tagName}));r>-1&&(t.associatedElement=t.messageArray[r])}var a=i||t.associatedElement;if(a&&a.classList&&(a.classList.add("i-amphtml-error"),mt().development&&(a.classList.add("i-amphtml-element-error"),a.setAttribute("error-message",t.message))),self.console&&(N(t.message)||!t.expected)){var e=console.error||console.log;t.messageArray?e.apply(console,t.messageArray):a?e.call(console,t.message,a):e.call(console,t.message)}a&&a.dispatchCustomEventForTesting&&a.dispatchCustomEventForTesting("amp:error",t.message),zi.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function zi(t,i,n,r,a){var e,o=this;if(!this||!this.document||a&&a.expected||(xt((e=this.document).defaultView),ii||(ii=!0,function(t){et(t.body,{opacity:1,visibility:"visible","animation":"none"})}(e))),!mt().development){var l=!1;try{l=function(t){if(!t.document)return!1;for(var i=t.document.querySelectorAll("script[src]"),n=0;n.01)){var u=function(t,i,n,r,a,e){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,a);var o=!(!a||!a.expected);if(!/_reported_/.test(t)&&"CANCELLED"!=t){var s=!(self&&self.window),l=Math.random();if(!((function(t){return-1!=t.indexOf("Failed to load:")}(t)||"Script error."==t||s)&&(o=!0,l>.001))){var u=N(t);if(!(u&&l>.1)){var h=Object.create(null);h.v=mt().rtvVersion,h.noAmp=e?"1":"0",h.m=t.replace(P,""),h.a=u?"1":"0",h.ex=o?"1":"0",h.dw=s?"1":"0";var c,f,m="1p";if(self.context&&self.context.location?(h["3p"]="1",m="3p"):mt().runtime&&(m=mt().runtime),h.rt=m,"inabox"===m&&(h.adid=mt().a4aId),h.ca=null!==(f=self.AMP_CONFIG)&&void 0!==f&&f.canary?"1":"0",h.bt=(null===(c=self.AMP_CONFIG)||void 0===c?void 0:c.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(h.or=self.location.ancestorOrigins[0]),self.viewerState&&(h.vs=self.viewerState),self.parent&&self.parent!=self&&(h.iem="1"),self.AMP&&self.AMP.viewer){var p=self.AMP.viewer.getResolvedViewerUrl(),v=self.AMP.viewer.maybeGetMessagingOrigin();p&&(h.rvu=p),v&&(h.mso=v)}var d,g,b,x=[],y=self[St]||null;for(var w in y){var k=y[w];x.push("".concat(w,"=").concat(k?"1":"0"))}return h.exps=x.join(","),a?(h.el=(null===(d=a.associatedElement)||void 0===d?void 0:d.tagName)||"u",a.args&&(h.args=JSON.stringify(a.args)),u||a.ignoreStack||!a.stack||(h.s=a.stack),a.message&&(a.message+=" _reported_")):(h.f=i||"",h.l=n||"",h.c=r||""),h.r=self.document?self.document.referrer:"",h.ae=Ci.join(","),h.fr=self.location.originalHash||self.location.hash,"production"===h.bt&&(h.pt="1"),b=t,(g=Ci).length>=25&&g.splice(0,g.length-25+1),g.push(b),h}}}}(t,i,n,r,a,l);u&&Ai((function(){try{return function(t,i){return i.pt&&Math.random()<.9?s():function(t,i){var n=function(t){return wt(t,"ampdoc")}(t);if(!n.isSingleDoc())return Promise.resolve(!1);var r=n.getSingleDoc();if(!r.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);var a=kt(r,"viewer");return a.hasCapability("errorReporter")?a.isTrustedViewer().then((function(t){return!!t&&(a.sendMessage("error",{"m":(n=i).m,"a":n.a,"s":n.s,"el":n.el,"ex":n.ex,"v":n.v,"pt":n.pt}),!0);var n})):Promise.resolve(!1)}(t,i).then((function(t){if(!t){var n=new XMLHttpRequest;n.open("POST",Math.random()<.1?ji.betaErrorReporting:ji.errorReporting,!0),n.send(JSON.stringify(i))}}))}(o,u).catch((function(){}))}catch(t){}}))}}}var Si=["
"],Fi=["
"],Di=[""],Ii=[""],Pi=[""],Ti=[""],Ni=["
"],Bi="amp-lightbox-gallery",Ri="amp-carousel",Li=".i-amphtml-slide-item, .i-amphtml-carousel-slotted",Ui={x1:.8,y1:0,x2:.2,y2:1},Gi=function(t){c(n,t);var i=v(n);function n(t){var n;return(n=i.call(this,t)).ql=n.win.document,n.Nlt=!1,n.gC=-1,n.Blt=-1,n.Mc=n.Sc.bind(u(n)),n.Rlt=n.Llt.bind(u(n)),n._y=null,n.ds=null,n.Gr=null,n.Ult={default:[]},n.rj=null,n.Glt=null,n.Flt=null,n.eX=null,n.Vlt=null,n.dZ=null,n._lt=null,n.Hlt=null,n.Xlt=null,n.Ylt=null,n.Jlt=1,n.$lt=null,n.Zlt="default",n.qlt=!1,n.Wlt=n.measureMutateElement.bind(u(n)),n.RX=new wi(n.win,n.element,(function(t){return n.mutateElement(t)}),(function(){return n._A()})),n}var a=n.prototype;return a.renderOutsideViewport=function(){return!0},a.buildCallback=function(){var t,i=this;return(t=this.element,function(t,i,n,r){return Ft(t,i,n,void 0).then((function(t){return function(t,i,n){return yt(t,"Service %s was requested to be provided through %s, but %s is not loaded in the current page. To fix this problem load the JavaScript file for %s in this page.","amp-lightbox-manager",n,n,n)}(t,0,n)}))}(t,"amp-lightbox-manager","amp-lightbox-gallery")).then((function(t){return i._y=t,i.ds=kt(i.getAmpDoc(),"history"),i.Gr=Pt(i.element),i.getAmpDoc().whenFirstVisible()})).then((function(){i.rj=it(i.ql)(Si),i.eX=i.rj.querySelector(".i-amphtml-lbg-mask"),i.element.appendChild(i.rj),i._y.maybeInit(),i.registerDefaultAction((function(t){return i.Klt(t)}),"open")}))},a.layoutCallback=function(){return s()},a.Qlt=function(){var t=this;this.Flt=it(this.ql)(Fi);var i=this.tmt(),n=this.imt();this.mutateElement((function(){t.Flt.appendChild(i),t.Flt.appendChild(n),t.rj.appendChild(t.Flt)}))},a.nmt=function(t){return this.Glt||(this.Glt=this.ql.createElement("div"),this.rj.appendChild(this.Glt)),this.Flt||this.Qlt(),this.rmt(t)},a.amt=function(t){if(t.classList.contains("amp-notsupported")){var i=t.getFallback();i&&(t=i)}var n=!t.classList.contains("i-amphtml-element"),r=t.cloneNode(n);return r.removeAttribute("on"),r.removeAttribute("id"),r.removeAttribute("i-amphtml-layout"),r.removeAttribute("fallback"),r},a.emt=function(t){var i=this,n=0;this.Ult[this.Zlt]=[],t.forEach((function(t){t.lightboxItemId=n++;var r=i.amt(t),a={descriptionText:i._y.getDescription(t),tagName:r.tagName,sourceElement:t,element:r},e=r;if(ri.has(r.tagName)){var o=i.ql.createElement("div"),s=it(i.ql)(Di);for(var l in r.dataset)o.dataset[l]=r.dataset[l];r.removeAttribute("class"),s.appendChild(r),o.appendChild(s),e=o,a.imageViewer=s}i.dZ.appendChild(e),i.Ult[i.Zlt].push(a)}))},a.rmt=function(t){xt(this.rj);var i=this.element.querySelector("amp-carousel[amp-lightbox-group=".concat(J(t),"]"));return i?(this.dZ=i,this.omt(t)):this.smt(t)},a.omt=function(t){var i=this;return this.mutateElement((function(){var n=i.Ult[t].length;i.lmt(n),Bt(i.element).scheduleUnlayout(i.element,i.dZ),ot(i.dZ,!0)}))},a.smt=function(t){var i,n,a,o=this,s=this.getAmpDoc().getExtensionVersion(Ri),l=(i=this.win,n="amp-lightbox-gallery-carousel-0-2",a=function(t){var i,n,a,o,s;if(t[St])return t[St];t[St]=I();var l=t[St];B(l);var u,h=r(r({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(n=t.AMP_EXP)&&void 0!==n?n:(u=(null===(a=t.__AMP_EXP)||void 0===a?void 0:a.textContent)||"{}",JSON.parse(u)));for(var c in h){var f=h[c];"number"==typeof f&&f>=0&&f<=1&&(l[c]=Math.random()0&&void 0!==arguments[0]&&arguments[0],n=this.pmt().descriptionText;this.mutateElement((function(){t._lt.setContent(n),t._lt.setOverflowState(_t),t._lt.toggleOverflow(i)}))},a.fmt=function(){xt(this.dZ).getImpl().then((function(t){t.interactionNext()}))},a.mmt=function(){xt(this.dZ).getImpl().then((function(t){t.interactionPrev()}))},a.PH=function(t){var i=t.target,n=null!==W(i,(function(t){return"BUTTON"==t.tagName||"A"==t.tagName||"button"==t.getAttribute("role")}),this.rj),r=this.Gr.hasAction(i,"tap",this.rj);return!(n||r)},a.vmt=function(t){this.PH(t)&&(0==this.Jlt?this.dmt():this.rj.hasAttribute("gallery-view")||this.gmt()),Lt(this.element,"controlsToggled")},a.dmt=function(){this.Flt.setAttribute("i-amphtml-lbg-fade","in"),this.Jlt=1},a.gmt=function(){this.Flt.setAttribute("i-amphtml-lbg-fade","out"),this.Jlt=0},a.bmt=function(){xt(this.rj);var t=this.vmt.bind(this);this.$lt=Gt(this.rj,"click",t)},a.xmt=function(){this.$lt&&(this.$lt(),this.$lt=null)},a.NX=function(){var t=this;mi.get(this.dZ).onGesture(di,(function(i){var n=i.data;t.ymt(n)}))},a.ymt=function(t){if(t.first){var i=this.pmt().sourceElement,n=this.wmt(i);this.RX.startSwipe({swipeElement:this.dZ,hiddenElement:n||i,mask:this.eX,overlay:this.Flt})}else this.RX.swipeMove(t)},a.kmt=function(){var t=this.Zlt,i=this.Ult[t].map((function(t){return t.element}));Bt(this.element).schedulePause(this.element,i)},a.pmt=function(){var t=this.Zlt;return xt(this.Ult[t][this.Blt])},a.open=function(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.Mmt(t,n).then((function(){return i.ds.push(i._A.bind(i))})).then((function(t){i.gC=t}))},a.Klt=function(t){var i=t.args||{},n=i.id,r=i.expandDescription,a=n?this.getAmpDoc().getElementById(n):t.caller;yt(a,"amp-lightbox-gallery.open: element with id: %s not found",n),this.open(a,r)},a.Mmt=function(t,i){var n,r,a=this,e=t.getAttribute("lightbox")||"default";return this.Zlt=e,this.qlt=(r=(n=this.win).document.documentElement,n.innerWidth-r.clientWidth>0),this.nmt(e).then((function(){return a.getViewport().enterLightboxMode()})).then((function(){return a.mutateElement((function(){ot(a.element,!0),at(a.element,"opacity",0),a.Flt.removeAttribute("i-amphtml-lbg-fade")}))})).then((function(){return a.Nlt=!0,Bt(a.element).scheduleLayout(a.element,a.rj),a.ql.documentElement.addEventListener("keydown",a.Mc),a.dZ.addEventListener("slideChange",a.Rlt),a.NX(),a.bmt(),a.dZ.signals().whenSignal(j)})).then((function(){return a.Omt(t,i)})).then((function(){at(a.element,"opacity",""),a.dmt(),Lt(a.element,"lightboxOpened")}))},a.Omt=function(t,i){var n=this;return this.Blt=t.lightboxItemId,xt(this.dZ).getImpl().then((function(t){return t.goToSlide(n.Blt)})),this.umt(i),this.cw()},a.jmt=function(t){return!!(t&&(i=t,i.complete||"complete"==i.readyState||function(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}(i)&&i.readyState>0||i.document&&"complete"==i.document.readyState))&&!!ri.has(t.tagName)&&!!tt(t,"img");var i},a.Cmt=function(){var t=this.pmt().sourceElement;return this.jmt(t)},a.Amt=function(t,i){var n=this;return this.pmt().imageViewer.getImpl().then((function(r){var a=r.getImageBoxWithOffset()||{},e=a.height;if(!a.width||!e)return n.Emt(i);var o=r.getImage(),s=Q(t,"img");return n.zmt(i?s:o,i?o:s,i)}))},a.Smt=function(t,i){var n=t.getBoundingClientRect(),r=i.getBoundingClientRect(),a=this.getViewport().getSize().height,e=Math.abs(r.top-n.top);return this.ynn(Math.abs(e),a)},a.zmt=function(t,i,n){var r,a,e,o=this,s=this.dZ,l=this.rj,u=function(){ot(o.element,n),at(l,"animationName",""),at(s,"animationName",""),t.classList.remove("i-amphtml-ghost"),i.classList.remove("i-amphtml-ghost"),e&&e.cleanupAnimation()};return this.measureMutateElement((function(){var n=K(t,"amp-img")||t,s=K(i,"amp-img")||i;r=o.Smt(t,i),a=.8*r;try{e=function(t){var i=t.transitionContainer,n=void 0===i?document.body:i,r=t.styleContainer,a=void 0===r?document.head:r,e=t.srcImg,o=t.targetImg,s=t.srcImgRect,l=void 0===s?e.getBoundingClientRect():s,u=t.srcCropRect,h=void 0===u?l:u,c=t.targetImgRect,f=void 0===c?o.getBoundingClientRect():c,m=t.targetCropRect,p=void 0===m?f:m,v=t.curve,d=void 0===v?k:v,b=t.styles,j=t.keyframesNamespace,C=void 0===j?"img-transform":j;e=O(e,l,h),f=(o=(p=O(o,f,p)).s>e.s)?e:p,p=o?p:e,M+=1,e="".concat(C,"-").concat(M,"-");var A,E,z,S,F,D,I,P,T,N,B,R,L=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.getBoundingClientRect(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:getComputedStyle(t).getPropertyValue("object-position"),a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:g(t,i);i=x(r,i,a),r=document.createElement("div");var e=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div");return(t=t.cloneNode(!0)).className="",t.style.cssText="",l.appendChild(t),s.appendChild(l),o.appendChild(s),e.appendChild(o),r.appendChild(e),Object.assign(e.style,{overflow:"hidden",width:"".concat(n.width,"px"),height:"".concat(n.height,"px")}),Object.assign(l.style,{transform:"translate(".concat(i.left,"px,").concat(i.top,"px)")}),Object.assign(t.style,{display:"block",width:"".concat(a.width,"px"),height:"".concat(a.height,"px")}),{J:r,m:e,i:o,v:s,A:l,j:t}}(p.j,p.rect,p.c,p.objectPosition,p.h),U=L.J,G=L.m,V=L.i,_=L.v,H=L.A,X=L.j;l=function t(i){var n=getComputedStyle(i).position;return"static"!=n?i:(n=i.offsetParent||i.parentElement)?t(n):i}(n).getBoundingClientRect(),C=function(t){var i=t.m,n=t.i,r=t.f,a=t.g,e=t.curve,o=t.styles,s=t.a,l=t.b,u="".concat(s,"-crop");s="".concat(s,"-counterScale"),a={x:a.width/r.width,y:a.height/r.height};var h={x:1,y:1};return r=l?a:h,l=l?h:a,Object.assign(i.style,o,{willChange:"transform",transformOrigin:"top left",animationName:u,animationTimingFunction:"linear",animationFillMode:"forwards"}),Object.assign(n.style,o,{willChange:"transform",transformOrigin:"top left",animationName:s,animationTimingFunction:"linear",animationFillMode:"forwards"}),function(t){for(var i=t.I,n=t.w,r=t.curve,a=t.F,e=t.u,o="",s="",l=0;20>=l;l++){var u=.05*l,h=w(r.y1,r.y2,u);u=100*w(r.x1,r.x2,u);var c=i.x;c+=h*(n.x-c);var f=i.y;o+="".concat(u,"% {transform: scale(").concat(c,",").concat(h=f+h*(n.y-f),");}"),s+="".concat(u,"% {transform: scale(").concat(f=1/c,",").concat(1/h,");}")}return"@keyframes ".concat(a," {").concat(o,"}@keyframes ").concat(e," {").concat(s,"}")}({I:r,w:l,curve:e,F:u,u:s})}({m:G,i:V,f:p.c,g:f.c,curve:d,styles:b,a:e,b:o}),l=function(t){var i=t.element,n=t.D,r=t.f,a=t.g,e=t.curve,o=t.styles,s=t.a,l=t.b;s="".concat(s,"-translation");var u=l?a:r;return r=l?r:a,a=u.left-r.left,u=u.top-r.top,Object.assign(i.style,o,{position:"absolute",top:"".concat(r.top-n.top,"px"),left:"".concat(r.left-n.left,"px"),willChange:"transform",animationName:s,animationTimingFunction:y(e),animationFillMode:"forwards"}),"@keyframes ".concat(s," {from {transform: translate(").concat(a,"px,").concat(u,"px);}to {transform: translate(0,0);}}")}({element:U,D:l,f:p.c,g:f.c,curve:d,styles:b,a:e,b:o}),E=(A={element:H,f:p.rect,g:f.rect,l:p.h,o:f.h,C:p.objectPosition,H:f.objectPosition,curve:d,styles:b,a:e,b:o}).element,z=A.f,S=A.g,F=A.l,D=A.o,I=A.C,P=A.H,N=A.styles,B=A.a,R=A.b,T=y(T=A.curve),B="".concat(B,"-object-position"),z=x(I,z,F),D=x(P,S,D),S=R?D:z,R=R?z:D,Object.assign(E.style,N,{willChange:"transform",animationName:B,animationTimingFunction:T,animationFillMode:"forwards"}),h="@keyframes ".concat(B," {from {transform: translate(").concat(S.left,"px,").concat(S.top,"px);}to {transform: translate(").concat(R.left,"px,").concat(R.top,"px);}}");var Y=function(t){var i=t.element,n=t.f,r=t.B,a=t.g,e=t.G,o=t.curve,s=t.styles,l=t.a,u=t.b;return l="".concat(l,"-crop-position"),n={top:n.top-r.top,left:n.left-r.left},e={top:a.top-e.top,left:a.left-e.left},a=u?e:n,u=u?n:e,Object.assign(i.style,s,{willChange:"transform",animationName:l,animationTimingFunction:y(o),animationFillMode:"forwards"}),"@keyframes ".concat(l," {from {transform: translate(").concat(a.left,"px,").concat(a.top,"px);}to {transform: translate(").concat(u.left,"px,").concat(u.top,"px);}}")}({element:_,f:p.rect,B:p.c,g:f.rect,G:f.c,curve:d,styles:b,a:e,b:o});d=function(t){var i=t.element,n=t.l,r=t.o,a=t.curve,e=t.styles,o=t.a,s=t.b;o="".concat(o,"-scale");var l={x:1,y:1};return r={x:r.width/n.width,y:r.height/n.height},n=s?r:l,s=s?l:r,Object.assign(i.style,e,{willChange:"transform",transformOrigin:"top left",animationName:o,animationTimingFunction:y(a),animationFillMode:"forwards"}),"@keyframes ".concat(o," {from {transform: scale(").concat(n.x,",").concat(n.y,");}to {transform: scale(").concat(s.x,",").concat(s.y,");}}")}({element:X,l:p.h,o:f.h,curve:d,styles:b,a:e,b:o});var J=document.createElement("style");return J.textContent=C+l+h+Y+d,{applyAnimation:function(){a.appendChild(J),n.appendChild(U)},cleanupAnimation:function(){n.removeChild(U),a.removeChild(J)}}}({styleContainer:o.getAmpDoc().getHeadNode(),transitionContainer:o.getAmpDoc().getBody(),srcImg:t,srcCropRect:n.getBoundingClientRect(),targetImg:i,targetCropRect:s.getBoundingClientRect(),styles:{"animationDuration":"".concat(a,"ms"),"zIndex":2147483642},keyframesNamespace:void 0,curve:Ui})}catch(t){Ei(t)}}),(function(){ot(s,n),at(o.element,"opacity",""),et(l,{animationName:n?"fadeIn":"fadeOut",animationTimingFunction:"cubic-bezier(0.8, 0, 0.2, 1)",animationDuration:"".concat(a,"ms"),animationFillMode:"forwards"}),et(s,{animationName:"fadeIn",animationDelay:"".concat(a-.01,"ms"),animationDuration:"0.01ms",animationFillMode:"forwards"}),t.classList.add("i-amphtml-ghost"),i.classList.add("i-amphtml-ghost"),e&&e.applyAnimation()})).then((function(){return si(o.win,r)})).then((function(){return o.mutateElement(u)}))},a.Fmt=function(t){return this.Amt(t,!0)},a.Dmt=function(t){return this.Amt(t,!1)},a.Emt=function(t){var i=this;return this.mutateElement((function(){t&&(Bt(i.element).scheduleUnlayout(i.element,i.dZ),ot(i.dZ,!0),ot(i.element,!0)),i.element.setAttribute("i-amphtml-lbg-fade",t?"in":"out")})).then((function(){return si(i.win,400)})).then((function(){i.element.removeAttribute("i-amphtml-lbg-fade"),t||(ot(i.dZ,!1),ot(i.element,!1))}))},a.cw=function(){var t=this,i=this.pmt().sourceElement;return this.jmt(i)?this.pmt().imageViewer.signals().whenSignal(j).then((function(){return t.Fmt(i)})):this.Emt(!0)},a.hw=function(){var t=this.pmt().sourceElement;return this.Cmt()?this.Dmt(t):this.Emt(!1)},a.ynn=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700,a=Math.abs(t)/i*r;return st(a,n,r)},a.wmt=function(t){return K(t,'amp-carousel[type="slides"], amp-base-carousel')},a.Imt=function(){var t,i,n=this.pmt().sourceElement,r=this.wmt(n);if(r){var a=C((i=Li,X(t=r)?t.querySelectorAll(Y(i,":scope")):Z(t,i))),e=K(n,Li),o=a.indexOf(e);xt(r).getImpl().then((function(t){return t.goToSlide(o)}))}},a._A=function(){var t=this;return this.Nlt?(this.Imt(),this.Nlt=!1,this.xmt(),this.ql.documentElement.removeEventListener("keydown",this.Mc),this.dZ.removeEventListener("slideChange",this.Rlt),mi.get(this.dZ).cleanup(),this._lt.toggleOverflow(!1),this.mutateElement((function(){t.qlt||t.getViewport().leaveLightboxMode(),t.rj.removeAttribute("gallery-view"),t.Xlt&&(t.Xlt.classList.add("i-amphtml-ghost"),t.Xlt=null)})).then((function(){return t.hw()})).then((function(){t.qlt&&t.getViewport().leaveLightboxMode(),Bt(t.element).schedulePause(t.element,t.rj),t.kmt(),t.dZ=null,-1!=t.gC&&t.ds.pop(t.gC)}))):s()},a.Sc=function(t){if(this.Nlt)switch(t.key){case"Escape":this._A();break;case"ArrowLeft":this.Pmt(-1);break;case"ArrowRight":this.Pmt(1)}},a.Pmt=function(t){this.rj.hasAttribute("gallery-view")||xt(this.dZ).getImpl().then((function(i){i.goCallback(t,!0,!1)}))},a.hmt=function(){var t=this;this.Xlt||this.Tmt(),this._lt.toggleOverflow(!1),this.mutateElement((function(){t.rj.setAttribute("gallery-view",""),ot(t.dZ,!1)})),Lt(this.element,"thumbnailsViewToggled")},a.cmt=function(){var t=this;return this.mutateElement((function(){t.rj.removeAttribute("gallery-view"),Bt(t.element).scheduleUnlayout(t.element,t.dZ),ot(t.dZ,!0),t.umt()}))},a.Tmt=function(){var t=this,i=this.Zlt;this.Xlt=this.element.querySelector(".i-amphtml-lbg-gallery[amp-lightbox-group=".concat(J(i),"]")),this.Xlt?(this.Xlt.classList.remove("i-amphtml-ghost"),this.Nmt()):(this.Xlt=it(this.ql)(Pi),this.Xlt.setAttribute("amp-lightbox-group",this.Zlt),this.Bmt(),this.mutateElement((function(){t.rj.appendChild(t.Xlt)})))},a.Nmt=function(){var t=this,i=this._y.getThumbnails(this.Zlt).map((function(t,i){return r({index:i},t)})).filter((function(t){return ai[t.element.tagName]}));this.mutateElement((function(){i.forEach((function(i){i.timestampPromise.then((function(n){if(n&&!isNaN(n)){var r=li(n),a=Q(t.Xlt.childNodes[i.index],"div");a.childNodes.length>1&&a.removeChild(a.childNodes[1]),a.appendChild(t.ql.createTextNode(r)),a.classList.add("i-amphtml-lbg-has-timestamp")}}))}))}))},a.Bmt=function(){var t=this,i=[];this._y.getThumbnails(this.Zlt).forEach((function(n){if("AMP-AD"!=n.element.tagName){var r=t.Rmt(n);i.push(r)}})),this.mutateElement((function(){return i.forEach((function(i){return t.Xlt.appendChild(i)}))}))},a.Lmt=function(t,i){var n=this;t.stopPropagation(),Promise.all([this.cmt(),xt(this.dZ).getImpl()]).then((function(t){n.Blt=i,t[1].goToSlide(n.Blt),n.umt()}))},a.Rmt=function(t){var i=this,n=it(this.ql)(Ti),r=Q(n,"img");if(t.srcset?r.setAttribute("srcset",t.srcset.stringify()):r.setAttribute("src",t.placeholderSrc),n.appendChild(r),ai[t.element.tagName]){var a=it(this.ql)(Ni);t.timestampPromise.then((function(t){if(t&&!isNaN(t)){var n=li(t);a.appendChild(i.ql.createTextNode(n)),a.classList.add("i-amphtml-lbg-has-timestamp")}})),n.appendChild(a)}return n.addEventListener("click",(function(n){i.Lmt(n,t.element.lightboxItemId)})),n},n}(t.BaseElement);t.registerElement(Bi,Gi,'.i-amphtml-lbg-caption-scroll{position:absolute!important;left:0!important;right:0!important;bottom:0!important;z-index:1;padding-top:40px!important;box-sizing:border-box!important;color:#fff;text-shadow:1px 0 5px rgba(0,0,0,0.4)!important;overflow:hidden!important;max-height:calc(80px + 3rem)!important;transition:max-height 0.3s ease-out!important;pointer-events:none!important}.i-amphtml-lbg-caption-text{padding:20px!important;pointer-events:all!important}.i-amphtml-lbg-caption-text:empty{display:none!important}[i-amphtml-lbg-caption-state=clip]{-webkit-mask-image:linear-gradient(0deg,transparent 0rem,rgba(0,0,0,0.2) 1rem,rgba(0,0,0,0.55) 2rem,#000 3rem);mask-image:linear-gradient(0deg,transparent 0rem,rgba(0,0,0,0.2) 1rem,rgba(0,0,0,0.55) 2rem,#000 3rem)}[i-amphtml-lbg-caption-state=expand]{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;max-height:100%!important;transition:max-height 0.7s ease-out!important;-webkit-mask-image:linear-gradient(transparent,rgba(0,0,0,0.2) 20px,rgba(0,0,0,0.55) 40px,#000 60px);mask-image:linear-gradient(transparent,rgba(0,0,0,0.2) 20px,rgba(0,0,0,0.55) 40px,#000 60px)}.i-amphtml-lbg-caption-mask{min-height:1rem;width:100%!important;position:fixed!important;bottom:0!important;pointer-events:all!important}[i-amphtml-lbg-caption-state=clip]+.i-amphtml-lbg-caption-mask{z-index:1!important;background:transparent!important;transition:background-color 0.5s ease-out!important}[i-amphtml-lbg-caption-state=expand]+.i-amphtml-lbg-caption-mask{background-color:rgba(0,0,0,0.4)!important;top:0!important;z-index:0!important;transition:background-color 0.4s ease-in!important}.i-amphtml-lbg[gallery-view] .i-amphtml-lbg-caption{display:none}.i-amphtml-lbg-top-bar{position:absolute!important;left:0!important;right:0!important;top:0!important;height:56px!important;z-index:1!important;background:linear-gradient(rgba(0,0,0,0.3),transparent)}@media (min-width:1024px){.i-amphtml-lbg-top-bar{height:80px!important}}.i-amphtml-lbg-button{position:absolute!important;cursor:pointer!important;width:24px;height:24px;padding:16px;box-sizing:content-box}@media (min-width:1024px){.i-amphtml-lbg-button{width:40px;height:40px;padding:20px}}.i-amphtml-lbg-button:after{content:""!important;width:100%!important;height:100%!important;display:block!important;background-repeat:no-repeat!important;background-position:50%!important}.i-amphtml-lbg-button[data-action=close]{top:0!important;right:0!important}.i-amphtml-lbg-button[data-action=close]:after{background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.i-amphtml-lbg-button[data-action=gallery]{top:0!important;left:0!important}.i-amphtml-lbg-button[data-action=gallery]:after{background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.i-amphtml-lbg-button[data-action=slides]{top:0!important;left:0!important;display:none}.i-amphtml-lbg-button[data-action=slides]:after{background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.i-amphtml-lbg-button[data-action=next],.i-amphtml-lbg-button[data-action=prev]{top:0!important;bottom:0!important;margin:auto!important;filter:drop-shadow(0 0 1px black)!important;width:40px;height:40px;padding:20px}.i-amphtml-lbg-button[data-action=next]{right:0!important;left:auto!important}.i-amphtml-lbg-button[data-action=next]:after{background-image:url(\'data:image/svg+xml;charset=utf-8,\')}.i-amphtml-lbg-button[data-action=prev]{right:auto!important;left:0!important}.i-amphtml-lbg-button[data-action=prev]:after{background-image:url(\'data:image/svg+xml;charset=utf-8,\')}[i-amphtml-lbg-single-item] .i-amphtml-lbg-button[data-action=gallery],[i-amphtml-lbg-single-item] .i-amphtml-lbg-button[data-action=next],[i-amphtml-lbg-single-item] .i-amphtml-lbg-button[data-action=prev]{visibility:hidden!important}.i-amphtml-lbg[gallery-view] .i-amphtml-lbg-button[data-action=gallery],.i-amphtml-lbg[gallery-view] .i-amphtml-lbg-button[data-action=next],.i-amphtml-lbg[gallery-view] .i-amphtml-lbg-button[data-action=prev]{display:none!important}.i-amphtml-lbg[gallery-view] .i-amphtml-lbg-button[data-action=slides]{display:block!important}[i-amphtml-lbg-fade]{animation-fill-mode:forwards;animation-duration:400ms}[i-amphtml-lbg-fade=in]{animation-name:fadeIn}[i-amphtml-lbg-fade=out]{animation-name:fadeOut}amp-lightbox-gallery[i-amphtml-lbg-fade]{position:relative;z-index:2147483642;animation-timing-function:cubic-bezier(0.8,0,0.2,1)}amp-lightbox-gallery .amp-carousel-button{display:none}amp-lightbox-gallery amp-carousel{background:transparent!important}.i-amphtml-lbg{position:fixed!important;z-index:2147483642}.i-amphtml-lbg,.i-amphtml-lbg-gallery,.i-amphtml-lbg-mask{top:0!important;left:0!important;right:0!important;bottom:0!important}.i-amphtml-lbg-gallery,.i-amphtml-lbg-mask{background-color:#000!important;position:absolute!important}.i-amphtml-lbg-gallery{display:none;top:56px!important;overflow:auto!important}@media (min-width:1024px){.i-amphtml-lbg-gallery{top:80px!important}}.i-amphtml-lbg-overlay:not([i-amphtml-lbg-fade]){opacity:0;visibility:hidden}.i-amphtml-lbg-overlay[i-amphtml-lbg-fade=in]{animation-timing-function:ease-in}.i-amphtml-lbg-overlay[i-amphtml-lbg-fade=out]{animation-timing-function:linear}.i-amphtml-lbg[gallery-view] .i-amphtml-lbg-gallery{display:grid!important;-ms-flex-pack:center!important;justify-content:center!important;grid-gap:5px!important;grid-template-columns:repeat(3,1fr);grid-auto-rows:-webkit-min-content!important;grid-auto-rows:min-content!important;padding:5px}@media (min-width:1024px){.i-amphtml-lbg[gallery-view] .i-amphtml-lbg-gallery{grid-template-columns:repeat(4,249.75px)}}.i-amphtml-lbg-gallery-thumbnail{position:relative!important;padding-top:100%!important}.i-amphtml-lbg-gallery-thumbnail-img{width:100%!important;height:100%!important;position:absolute!important;top:0!important;-o-object-fit:cover!important;object-fit:cover!important;cursor:pointer!important}.i-amphtml-lbg-thumbnail-timestamp-container{background-color:#292d33;color:#fff;position:absolute;bottom:10px;left:10px;height:20px;border-radius:2px;opacity:0.8;width:20px}.i-amphtml-lbg-thumbnail-timestamp-container.i-amphtml-lbg-has-timestamp{font-size:12px;padding:0 5px 0 18px;line-height:1.3rem;width:auto}.i-amphtml-lbg-thumbnail-play-icon{background-image:url(\'data:image/svg+xml;charset=utf-8,\');height:16px;width:16px;position:absolute;left:2px;bottom:2px}amp-lightbox-gallery .i-amphtml-slide-item>*{height:auto}@keyframes fadeIn{0%{opacity:0}to{opacity:1;visibility:visible}}@keyframes fadeOut{0%{opacity:1}to{opacity:0;visibility:hidden}}\n/*# sourceURL=/extensions/amp-lightbox-gallery/0.1/amp-lightbox-gallery.css*/'),t.registerServiceForDoc("amp-lightbox-manager",oi),Nt(t.win).addDocFactory((function(t){return t.whenReady().then((function(){return t.getBody()})).then((function(i){if(!tt(t.getRootNode(),Bi)){var n=t.win.document.createElement(Bi);n.setAttribute("layout","nodisplay"),n.setAttribute("id","amp-lightbox-gallery"),i.appendChild(n)}}))}))}(); /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}}); //# sourceMappingURL=amp-lightbox-gallery-0.1.js.map