作者 刘锟

update

@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 /public/.htaccess 4 /public/.htaccess
5 /public/nginx.htaccess 5 /public/nginx.htaccess
6 /storage/*.key 6 /storage/*.key
7 -/public 7 +#/public
8 /vendor 8 /vendor
9 .env 9 .env
10 .env.backup 10 .env.backup
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-base-carousel",ev:"0.1",l:!0,f:function(t,i){!function(){var i;function n(t,i){return(n=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t){return(r="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 o(t,i){if(i&&("object"===r(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function e(t){return t?Array.prototype.slice.call(t):[]}Array.isArray;var a,h=Object.prototype,u=h.hasOwnProperty;function l(t,i,n,s,r,o,e,a,h,u,l){return t}function c(t,i){return t.replace(/^|,/g,"$&".concat(i," "))}h.toString;var f,m=!0,v=!0;function p(t,i){for(var n=t.length,s=0;s<n;s++)i(t[s],s)}function d(t,i,n){var s=t.hasAttribute(i),r=void 0!==n?n:!s;return r!==s&&(r?t.setAttribute(i,""):t.removeAttribute(i)),r}function b(t){var i=t.ownerDocument||t;return f&&f.ownerDocument===i||(f=i.createElement("div")),w}function w(t){return function(t,i){if(l(1===i.length),l(Array.isArray(i)||(s=i,u.call(s,"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 s,r=t.firstElementChild;return l(r),l(!r.nextElementSibling),t.removeChild(r),r}(f,t)}function x(t,i,n){var s=0,r=0,o=null;function e(){s=0;var a,h=n-(t.Date.now()-r);h>0?s=t.setTimeout(e,h):(a=o,o=null,i.apply(null,a))}return function(){r=t.Date.now();for(var i=arguments.length,a=new Array(i),h=0;h<i;h++)a[h]=arguments[h];o=a,s||(s=t.setTimeout(e,n))}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var g=self.__AMP_LOG;function y(t,i,n,s,r,o,e,a,h,u,l){return t}function k(t,i){return z(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),i)}function M(t){return t.nodeType?(n=t,i=(n.ownerDocument||n).defaultView,k(i,"ampdoc")).getAmpDoc(t):t;var i,n}function S(t){var i=M(t);return i.isSingleDoc()?i.win:i}function z(t,i){y(N(t,i));var n=function(t){var i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}(t)[i];return n.obj||(y(n.ctor),y(n.context),n.obj=new n.ctor(n.context),y(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function N(t,i){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!n||!n.ctor)}var j,E=function(t){return function(t,i){return z(S(M(t)),"owners")}(t)};function O(t,i,n,s){var r=t,o=n,e=function(t){try{return o(t)}catch(t){var i,n;throw null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t),t}},a=function(){if(void 0!==j)return j;j=!1;try{var t={get capture(){return j=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return j}(),h=!(null==s||!s.capture);return r.addEventListener(i,e,a?s:h),function(){null==r||r.removeEventListener(i,e,a?s:h),o=null,r=null,e=null}}function R(t,i,n,s){var r={detail:n};if(Object.assign(r,s),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,r);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(i,!!r.bubbles,!!r.cancelable,n),o}function A(t,i,n,s){return O(t,i,n,s)}function L(t){return t.detail}function C(t,i,n,s){var r=n,o=O(t,i,(function(t){try{r(t)}finally{r=null,o()}}),s);return o}var I,_=["Webkit","webkit","Moz","moz","ms","O","o"];function P(t){var i=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return _.some((function(t){return i.startsWith(t+"-")}))?"-".concat(i):i}function B(t,i,n){if(U(i))return i;I||(I=Object.create(null));var s=I[i];if(!s||n){if(s=i,void 0===t[i]){var r=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),o=function(t,i){for(var n=0;n<_.length;n++){var s=_[n]+i;if(void 0!==t[s])return s}return""}(t,r);void 0!==t[o]&&(s=o)}n||(I[i]=s)}return s}function T(t,i){var n=t.style;for(var s in i)n.setProperty(P(B(n,s)),String(i[s]),"important")}function W(t,i,n,s,r){var o=B(t.style,i,r);if(o){var e=s?n+s:n;t.style.setProperty(P(o),e)}}function U(t){return t.startsWith("--")}function Z(t,i){return t>0&&i>0?t%i:(t%i+i)%i}function H(t,i,n){return l(i<=n),Math.min(Math.max(t,i),n)}var V="amp-carousel:indexchange",$="amp-carousel:scrollstart",D="amp-carousel:scrollpositionchange",F=function(){function t(t){var i=this,n=t.advanceable,s=t.element,r=t.scrollContainer,o=t.win;this.t=o,this.h9=r,this.f9=n,this.m9=0,this.p9=!1,this.v9=1,this.d9=1e3,this.g9=!1,this.y9=!1,this.b9=null,this.x9=Number.POSITIVE_INFINITY,this.Ki=s.getAmpDoc(),this.w9(this.d9),this.h9.addEventListener("scroll",(function(){return i.k9()}),!0),A(this.h9,"touchstart",(function(){return i.j9()}),{capture:!0,passive:!0}),A(s,V,(function(t){i.M9(t)}))}var i=t.prototype;return i.stop=function(){this.y9=!0},i.pause=function(){this.g9=!0},i.resume=function(){this.g9=!1,this.O9()},i.updateAutoAdvance=function(t){this.p9=t,this.O9()},i.updateAutoAdvanceCount=function(t){this.v9=t,this.O9()},i.updateAutoAdvanceInterval=function(t){this.d9=Math.max(t,1e3),this.w9(this.d9),this.O9()},i.updateMaxAdvances=function(t){this.x9=t},i.w9=function(t){var i=this,n=x(this.t,(function(){n==i.b9&&i.S9()}),t);this.b9=n},i.j9=function(){var t=this;this.pause(),C(window,"touchend",(function(){t.resume()}),{capture:!0,passive:!0})},i.N9=function(){return this.p9&&this.Ki.isVisible()&&!this.g9&&!this.y9&&this.m9<this.x9},i.k9=function(){this.O9()},i.M9=function(t){var i=L(t).actionSource;i&&4!==i&&this.stop()},i.S9=function(){this.N9()&&(this.f9.advance(this.v9,{actionSource:4,allowWrap:!0}),this.m9+=this.v9)},i.O9=function(){this.N9()&&this.b9()},t}(),Q=function(){function t(t){var i=this,n=t.element,s=t.runMutate,r=t.scrollContainer,o=t.stoppable,e=t.win;this.t=e,this.h9=r,this.E9=s,this.z9=[],this.A9=1,this.I9=!1,this.R9=!1,this.es=0,n.addEventListener("focus",(function(){o.stop()}),!0),n.addEventListener(V,(function(t){i._9(t)}))}var i=t.prototype;return i.updateMixedLength=function(t){this.I9=t},i.updateUi=function(){var t=this;this.R9||(this.R9=!0,this.E9((function(){t.R9=!1,t.C9(),t.T9()})))},i.updateSlides=function(t){this.z9=t,this.updateUi()},i.updateVisibleCount=function(t){this.A9=t,this.updateUi()},i.P9=function(){return this.I9||this.A9>=2},i.C9=function(){this.P9()?(this.h9.removeAttribute("aria-live"),this.h9.setAttribute("role","list"),this.z9.forEach((function(t){t.setAttribute("role","listitem")}))):(this.h9.setAttribute("aria-live","polite"),this.h9.removeAttribute("role"),this.z9.forEach((function(t){t.removeAttribute("role")})))},i.T9=function(){var t=this;this.z9.forEach((function(i,n){var s=!t.P9()&&n!==t.es;i.setAttribute("aria-hidden",s)}))},i._9=function(t){var i=this,n=L(t).index;this.es=n,this.E9((function(){i.T9()}))},t}(),X="start";function q(t,i){var n=i.getBoundingClientRect(),s=n.bottom,r=n.height,o=n.left,e=n.right,a=n.top,h=n.width;return{start:0==t?o:a,end:0==t?e:s,length:0==t?h:r}}function G(t,i){var n=q(t,i),s=n.end;return(n.start+s)/2}function J(t,i){return q(t,i).start}function K(t,i,n){return i==X?J(t,n):G(t,n)}function Y(t,i,n){W(i,0==t?"width":"height","".concat(n,"px"))}function tt(t,i,n){var s=q(t,i),r=s.end;return s.start<=n&&n<r}function it(t,i,n,s){return(K(t,i,s)-K(t,i,n))/q(t,s).length}function nt(t,i,n){!function(t,i,n){0==t?i.scrollLeft=n:i.scrollTop=n}(t,i,function(t,i){return 0==t?i.scrollLeft:i.scrollTop}(t,i)+n)}var st="i-amphtml-carousel-spacer";function rt(t,i){var n=function(t,i,n){var s=B(t.style,"scrollBehavior",void 0);if(s)return U(s)?t.style.getPropertyValue(s):t.style[s]}(t);W(t,"scrollBehavior","auto"),i(),W(t,"scrollBehavior",n)}function ot(t){return t.reduce((function(t,i){return t+i}),0)}var et=function(){function t(t){var i=this,n=t.element,s=t.initialIndex,r=t.runMutate,o=t.scrollContainer,e=t.win;this.t=e,this.E9=r,this.el=n,this.h9=o,this.p9=new F({win:e,element:n,scrollContainer:o,advanceable:this}),this.B9=new Q({win:e,element:n,scrollContainer:o,runMutate:r,stoppable:this.p9}),this.L9=x(e,(function(){return i.U9()}),200),this.W9=1,this.G9=Number.POSITIVE_INFINITY,this.I9=!1,this.z9=[],this.X9=!0,this.R9=!1,this.F9=[],this.H9=[],this.V9=[],this.Z9=[],this.D9=!1,this.J9=!1,this.Q9=0,this.q9=null,this.K9=NaN,this.Y9=!1,this.t7=!1,this.i7=void 0,this.n7=X,this.r7=0,this.s7=!0,this.e7=!0,this.TG=s||0,this.kd=!1,this.o7=!0,this.a7=1,this.A9=1,this.h9.addEventListener("scroll",(function(){return i.k9()}),!0),this.h9.addEventListener("scrollend",(function(){return i.l7()}),!0),A(this.h9,"touchstart",(function(){return i.j9()}),{capture:!0,passive:!0}),A(this.h9,"wheel",(function(){return i.h7()}),{capture:!0,passive:!0})}var i=t.prototype;return i.next=function(t){this.advance(this.W9,{actionSource:t})},i.prev=function(t){this.advance(-this.W9,{actionSource:t})},i.advance=function(t){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=this.TG,r=this.q9,o=this.z9,e=n.actionSource,a=n.allowWrap,h=void 0!==a&&a,u=null!==r?r:s,l=u+t,c=o.length-1,f=0===u,m=u===c,v=l<0,p=l>c,d=t>0&&this.u7(u)&&this.u7(l);i=this.isLooping()?Z(l,c+1):h?d?0:v&&f||p&&!m?c:v&&!f||p&&m?0:l:d?u:H(l,0,c),this.goToSlide(i,{actionSource:e})},i.pauseLayout=function(){this.D9=!0,this.p9.pause()},i.resumeLayout=function(){this.D9=!1,this.updateUi(),this.p9.resume()},i.getCurrentIndex=function(){return this.TG},i.getVisibleCount=function(){return this.A9},i.isLooping=function(){return this.kd&&this.z9.length/this.A9>=3},i.goToSlide=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.actionSource,s=i.smoothScroll,r=void 0===s||s;t<0||t>this.z9.length-1||isNaN(t)||t!==this.TG&&(this.Y9||this.c7()||(this.J9=!1,this.q9=t,this.i7=n,this.f7(this.z9[t],{smoothScroll:r})))},i.updateAdvanceCount=function(t){this.W9=t},i.updateAlignment=function(t){this.n7="start"===t?X:"center",this.updateUi()},i.updateAutoAdvance=function(t){this.p9.updateAutoAdvance(t)},i.updateAutoAdvanceCount=function(t){this.p9.updateAutoAdvanceCount(t)},i.updateAutoAdvanceInterval=function(t){this.p9.updateAutoAdvanceInterval(t)},i.updateAutoAdvanceLoops=function(t){this.G9=t,this.updateUi()},i.updateForwards=function(t){this.s7=t,this.updateUi()},i.updateHideScrollbar=function(t){this.e7=t,this.updateUi()},i.updateHorizontal=function(t){this.r7=t?0:1,this.updateUi()},i.updateLoop=function(t){this.kd=t,this.updateUi()},i.updateMixedLength=function(t){this.I9=t,this.B9.updateMixedLength(t),this.updateUi()},i.updateSlides=function(t){var i=t.length;if(i)this.z9=t,this.TG=this.isLooping()?Z(this.TG,i):H(this.TG,0,i-1)||0,this.B9.updateSlides(t),this.updateUi();else{var n=this.el.tagName.toUpperCase();(g.dev||(g.dev=function(t,i){throw new Error("failed to call initLogConstructor")}())).warn(n,"No slides were found.")}},i.updateSnap=function(t){this.o7=t,this.updateUi()},i.updateSnapBy=function(t){this.a7=Math.max(1,t),this.updateUi()},i.updateUserScrollable=function(t){this.X9=t,this.updateUi()},i.updateUi=function(){var t=this;this.R9||this.D9||(this.R9=!0,this.E9((function(){t.R9=!1,t.h9.setAttribute("mixed-length",t.I9),t.h9.setAttribute("user-scrollable",t.X9),t.h9.setAttribute("hide-scrollbar",t.e7),t.h9.setAttribute("horizontal",0===t.r7),t.h9.setAttribute("loop",t.isLooping()),t.h9.setAttribute("snap",t.o7),T(t.h9,{"--visible-count":t.A9}),t.z9.length&&(t.p9.updateMaxAdvances(t.G9*t.z9.length-1),t.m7(),t.p7(),t.v7(),t.U9(!0))})))},i.updateVisibleCount=function(t){this.A9=Math.max(1,t),this.B9.updateVisibleCount(t),this.updateUi()},i.d7=function(t,i){this.K9!==t&&(this.K9=t,this.el.dispatchEvent(R(this.t,V,{"index":t,"total":this.z9.length,"actionSource":i,"slides":this.z9},{bubbles:!0})))},i.g7=function(t,i){this.TG=t,this.Q9=i,this.el.dispatchEvent(R(this.t,"amp-carousel:offsetchange",{"index":t,"total":this.z9.length,"offset":this.s7?-i:i,"slides":this.z9},{bubbles:!0}))},i.notifyScrollStart=function(){this.el.dispatchEvent(R(this.t,$,null))},i.y7=function(){this.el.dispatchEvent(R(this.t,D,null))},i.j9=function(){var t=this;this.Y9=!0,this.i7=3,this.q9=null,this.J9=!1,C(window,"touchend",(function(){t.Y9=!1,t.L9()}),{capture:!0,passive:!0})},i.h7=function(){this.i7=2,this.q9=null,this.J9=!1},i.k9=function(){this.J9?this.J9=!1:(this.t7=!0,this.b7(),this.notifyScrollStart(),this.L9())},i.l7=function(){null===this.q9&&this.U9()},i.c7=function(){return this.t7&&(3===this.i7||2===this.i7)},i.x7=function(t,i,n){var s=i*n*(this.s7?1:-1);!function(t,i,n){var s=0==t?n:0,r=0==t?0:n;W(i,"transform","translate(".concat(s,"px, ").concat(r,"px)")),T(i,{"--content-transform":"translate(".concat(s,"px, ").concat(r,"px)")})}(this.r7,t,s),t._revolutions=i},i.w7=function(t){var i=this;this.z9.forEach((function(n){i.x7(n,0,t)}))},i.k7=function(){var t=this;return this.z9.map((function(i){return q(t.r7,i).length}))},i.isAtEnd=function(){return!this.isLooping()&&this.j7()},i.isAtStart=function(){return!this.isLooping()&&this.M7()},i.j7=function(){var t=this.h9,i=t.getBoundingClientRect().width*(this.s7?1:-1),n=this.s7?Math.ceil(i):Math.floor(i),s=t.scrollLeft+n,r=t.scrollWidth;return this.s7?s>=r:s<=-r},i.M7=function(){var t=this.h9.scrollLeft;return this.s7?t<=0:t>=0},i.O7=function(t){for(var i=[],n=0;n<t;n++){var s=document.createElement("div");s.className=st,i.push(s)}return i},i.m7=function(){var t=this,i=this.r7,n=this.z9,s=this.k7(),r=ot(s),o=this.isLooping()?n.length:0;this.F9.forEach((function(i){t.h9.removeChild(i)})),this.F9=this.O7(o),this.F9.forEach((function(r,o){Y(i,r,s[o]),t.h9.insertBefore(r,n[0])})),this.H9.forEach((function(i){t.h9.removeChild(i)})),this.H9=this.O7(o),this.H9.forEach((function(n,o){Y(i,n,s[o]),t.x7(n,-1,r),t.h9.appendChild(n)})),this.V9.forEach((function(i){t.h9.removeChild(i)})),this.V9=this.O7(o),this.V9.forEach((function(n,o){Y(i,n,s[o]),t.x7(n,-1,r),t.h9.appendChild(n)})),this.Z9=this.F9.concat(this.H9,this.V9)},i.p7=function(){var t=this,i=this.z9.length,n=this.n7===X,s=1===Z(this.A9,2),r=n||s?"0%":"50%";p(this.h9.children,(function(n,s){var o=Z(s,i),e=0===Z(o,t.a7);!n.classList.contains(st)&&t.isLooping()||function(t,i){for(var n in i)W(t,n,i[n])}(n,{"scroll-snap-align":e?t.n7:"none","scroll-snap-coordinate":e?r:"none"})}))},i.v7=function(){var t=this.V9,i=this.F9,n=this.TG,s=this.z9,r=Math.max(0,s.length-n-1),o=Math.max(0,n-1);i.forEach((function(t,o){var e,a,h,u=(e=n,a=o,h=i.length,(e===a?h:Z(e-a,h))>s.length-1);t.hidden=u||o<s.length-r})),t.forEach((function(i,r){var e,a,h,u=(e=n,a=r,h=t.length,(e===a?h:Z(a-e,h))>s.length-1);i.hidden=u||r>o}))},i.b7=function(){var t=this,i=this.n7,n=this.Z9,s=this.r7,r=this.TG,o=this.h9,e=this.z9,a=ot(this.k7()),h=!!n.length,u=h?n:e,l=function(t,i,n,s,r){var o=K(t,i,n);if(tt(t,s[r],o))return r;for(var e=1;e<=s.length/2;e++){var a=Z(r+e,s.length),h=Z(r-e,s.length);if(tt(t,s[a],o))return a;if(tt(t,s[h],o))return h}}(s,i,o,u,h?r+e.length:r);if(void 0!==l){var c=u[l],f=l%e.length,m=it(s,i,o,c);this.g7(f,m),f!==r&&this.E9((function(){t.S7(a)}))}},i.U9=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.i7;if(!this.Y9&&(this.i7=void 0,this.t7=!1,this.E9((function(){t.y7()})),this.K9!==this.TG||null!==this.q9||i)){null!==this.q9&&(this.TG=this.q9,this.q9=null,this.Q9=0);var s=ot(this.k7());this.E9((function(){t.d7(t.TG,n),t.g7(t.TG,t.Q9),t.w7(s),t.v7(),t.S7(s),t.N7()}))}},i.N7=function(){var t=this.n7,i=this.r7,n=this.Q9,s=this.TG,r=this.h9,o=this.z9[s],e=(it(i,t,r,o)-n)*q(i,o).length;e&&(this.J9=!0,rt(r,(function(){nt(i,r,e)})))},i.f7=function(t,i){var n=this;(i.smoothScroll?function(t,i){return i()}:rt)(this.h9,(function(){!function(t,i,n,s){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=i==X,e=q(t,s).length,a=o?J(t,s):G(t,s),h=o?J(t,n):G(t,n);nt(t,n,a-h-r*e)}(n.r7,n.n7,n.h9,t)}))},i.E7=function(t,i,n){for(var s=this.TG,r=this.K9,o=this.z9,e=o[s]._revolutions||0,a=n?1:-1,h=1;h<=i;h++){var u=Z(s+h*a,o.length);if(u===r&&s!==r)break;var l=o[u],c=u>s!==n?e+a:e;this.x7(l,c,t)}},i.S7=function(t){if(this.isLooping()){var i=this.n7,n=this.z9,s=this.A9,r=i===X?s-1:0,o=(n.length-1-r)/2,e=(n.length-1+r)/2;this.E7(t,Math.round(o),!1),this.E7(t,Math.round(e),!0)}},i.u7=function(t){var i=this.n7,n=this.z9,s=this.A9,r=i===X?s:s/2;return t>=n.length-r},t}(),at="__AMP_CAROUSEL_NEAR_VIEWPORT",ht="__AMP_CAROUSEL_IN_VIEWPORT",ut=function(){function t(t){var i=t.ampElement,n=t.intersectionElement,s=t.intersectionThreshold,r=void 0===s?.01:s,o=t.nearbyMarginInPercent,e=void 0===o?100:o,a=t.viewportIntersectionThreshold,h=void 0===a?r:a,u=t.viewportIntersectionCallback,l=void 0===u?function(){}:u;this.z7=i,this.BL=E(i.element),this.A7=n,this.I7=r,this.R7=e,this._7=h,this.C7=l,this.T7=!1,this.xZ=[],this.P7=null,this.B7=null,this.hv=null,this.L7=!1}var i=t.prototype;return i.setQueueChanges=function(t){this.T7=t},i.U7=function(t,i){i?this.BL.scheduleLayout(this.z7.element,t):this.BL.scheduleUnlayout(this.z7.element,t)},i.W7=function(t,i){this.C7(t,i)},i.Gc=function(){var t=this;if(!(this.P7&&this.B7&&this.hv)){var i=this.z7.win;this.P7=new i.IntersectionObserver((function(i){return t.G7(i)}),{root:this.A7,rootMargin:"".concat(this.R7,"%"),threshold:this.I7}),this.B7=new i.IntersectionObserver((function(i){return t.X7(i)}),{root:this.A7,rootMargin:"".concat(this.R7+10,"%"),threshold:this.I7}),this.hv=new i.IntersectionObserver((function(i){return t.F7(i)}),{root:this.A7,rootMargin:"0%",threshold:this._7})}},i.G7=function(t){t.filter((function(t){return t.isIntersecting})).forEach((function(t){t.target[at]=0})),this.T7||this.H7()},i.X7=function(t){t.filter((function(t){return!t.isIntersecting})).forEach((function(t){t.target[at]=1})),this.T7||this.V7()},i.F7=function(t){t.forEach((function(t){var i=t.isIntersecting;t.target[ht]=i?0:1})),this.T7||this.Z7()},i.flushChanges=function(){this.H7(),this.V7(),this.Z7()},i.H7=function(){for(var t=0;t<this.xZ.length;t++){var i=this.xZ[t];0==i[at]&&(this.U7(i,!0),i[at]=null)}},i.V7=function(){for(var t=0;t<this.xZ.length;t++){var i=this.xZ[t];1==i[at]&&(this.U7(i,!1),i[at]=null)}},i.Z7=function(){for(var t=0;t<this.xZ.length;t++){var i=this.xZ[t];0==i[ht]?(this.U7(i,!0),this.W7(i,!0)):1==i[ht]&&this.W7(i,!1),i[ht]=null}},i.D7=function(t){if("IntersectionObserver"in this.z7.win){if(this.Gc(),!t)return this.P7.disconnect(),this.B7.disconnect(),void this.hv.disconnect();for(var i=0;i<this.xZ.length;i++)this.P7.observe(this.xZ[i]),this.B7.observe(this.xZ[i]),this.hv.observe(this.xZ[i])}},i.updateChildren=function(t){if(this.xZ=t,"IntersectionObserver"in this.z7.win){for(var i=0;i<this.xZ.length;i++)this.BL.setOwner(this.xZ[i],this.z7.element);this.D7(!1),this.D7(this.L7)}},i.wasLaidOut=function(){this.L7=!0,this.D7(this.L7)},i.wasUnlaidOut=function(){this.L7=!1,this.D7(this.L7);for(var t=0;t<this.xZ.length;t++)this.U7(this.xZ[t],!1),this.W7(this.xZ[t],!1)},t}();function lt(t){return t.split(",").map((function(t){var i=/[a-z0-9.]+$/.exec(t);if(i){var n=i.index,s=t.slice(n),r=t.slice(0,n).trim();return{mediaQueryList:window.matchMedia(r),value:s}}})).filter(Boolean)}function ct(t){for(var i=0;i<t.length;i++){var n=t[i],s=n.mediaQueryList,r=n.value;if(s.matches)return r}return""}var ft=function(){function t(t){this.gq=t,this.J7={},this.Q7={}}var i=t.prototype;return i.updateAttribute=function(t,i){var n=this;if(this.gq[t]){var s=this.Q7[t];s&&this.q7(s,null);var r=lt(i),o=function(){n.K7(t,ct(r))};this.q7(r,o),o(),this.Q7[t]=r}},i.K7=function(t,i){if(this.J7[t]!==i){var n=this.gq[t];n&&n(i),this.J7[t]=i}},i.q7=function(t,i){t.forEach((function(t){t.mediaQueryList.onchange=i}))},t}(),mt=["<div class=i-amphtml-carousel-content><div class=i-amphtml-carousel-scroll tabindex=-1></div><div class=i-amphtml-base-carousel-arrows><div class=i-amphtml-base-carousel-arrow-prev-slot></div><div class=i-amphtml-base-carousel-arrow-next-slot></div></div></div>"],vt=['<button class=i-amphtml-base-carousel-arrow aria-label="Next item in carousel"><div class=i-amphtml-base-carousel-arrow-frosting></div><div class=i-amphtml-base-carousel-arrow-backdrop></div><div class=i-amphtml-base-carousel-arrow-background></div><svg class=i-amphtml-base-carousel-arrow-icon viewBox="0 0 24 24"><path d="M10,7.4 L14.6,12 L10,16.6" fill=none stroke-width=2px stroke-linejoin=round stroke-linecap=round></path></svg></button>'],pt=['<button class=i-amphtml-base-carousel-arrow aria-label="Previous item in carousel"><div class=i-amphtml-base-carousel-arrow-frosting></div><div class=i-amphtml-base-carousel-arrow-backdrop></div><div class=i-amphtml-base-carousel-arrow-background></div><svg class=i-amphtml-base-carousel-arrow-icon viewBox="0 0 24 24"><path d="M14,7.4 L9.4,12 L14,16.6" fill=none stroke-width=2px stroke-linejoin=round stroke-linecap=round></path></svg></button>'],dt=function(t){!function(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&&n(t,i)}(f,t);var r,h,u=(r=f,h=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}}(),function(){var t,i=s(r);if(h){var n=s(this).constructor;t=Reflect.construct(i,arguments,n)}else t=i.apply(this,arguments);return o(this,t)});function f(t){var i,n;return(i=u.call(this,t)).Y7=i.ttt(),i.qZ=(n=i.win,k(n,"platform")).isIos(),i.h9=null,i.n9=null,i.z9=[],i.itt=null,i.ntt=null,i.ftt=!1,i.Ye=null,i.mtt=null,i.Cd=2,i}f.prerenderAllowed=function(){return!0};var w=f.prototype;return w.ttt=function(){var t=this;return new ft({"advance-count":function(i){t.n9.updateAdvanceCount(Number(i)||0)},"auto-advance":function(i){t.n9.updateAutoAdvance("true"===i)},"auto-advance-count":function(i){t.n9.updateAutoAdvanceCount(Number(i)||0)},"auto-advance-interval":function(i){t.n9.updateAutoAdvanceInterval(Number(i)||0)},"auto-advance-loops":function(i){t.n9.updateAutoAdvanceLoops(Number(i)||0)},"controls":function(i){t.tst(i)},"dir":function(i){t.n9.updateForwards("rtl"!=i)},"horizontal":function(i){t.n9.updateHorizontal("true"===i)},"loop":function(i){t.n9.updateLoop("true"===i||""===i)},"mixed-length":function(i){t.n9.updateMixedLength("true"===i)},"slide":function(i){t.n9.goToSlide(Number(i))},"snap":function(i){t.n9.updateSnap("true"===i)},"snap-align":function(i){t.n9.updateAlignment(i)},"snap-by":function(i){t.n9.updateSnapBy(Number(i)||0)},"visible-count":function(i){t.n9.updateVisibleCount(Number(i)||0)}})},w.isLayoutSupported=function(t){return function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)},w.buildCallback=function(){var t,i,n,s=this;this.Ye=(t=this.element,i="action",N(n=S(M(t)),i)?z(n,i):null),this.Ntt(),this.n9=new et({win:this.win,element:this.element,scrollContainer:this.h9,initialIndex:this.Ett(),runMutate:function(t){return s.mutateElement(t)}}),e(this.element.attributes).forEach((function(t){s.ztt(t.name,t.value)})),this.n9.updateSlides(this.z9),this.Att(),this.jtt(),this.uA(),this.Itt()},w.isRelayoutNeeded=function(){return!0},w.pauseCallback=function(){this.n9.pauseLayout()},w.resumeCallback=function(){this.n9.resumeLayout()},w.layoutCallback=function(){return this.n9.updateUi(),this.mtt.wasLaidOut(),i||(i=Promise.resolve(void 0))},w.unlayoutCallback=function(){return this.mtt.wasUnlaidOut(),!0},w.mutatedAttributesCallback=function(t){for(var i in t)this.ztt(i,String(t[i]))},w.getSlides=function(){return this.z9},w.goToSlide=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.actionSource,s=i.smoothScroll,r=void 0!==s&&s;this.n9.goToSlide(t,{smoothScroll:r,actionSource:n})},w.interactionNext=function(){this.n9.next(0)},w.interactionPrev=function(){this.n9.prev(0)},w.Ntt=function(){var t,i,n=this,s=this.element;e(s.children).forEach((function(s){var r=s.getAttribute("slot");"prev-arrow"===r?t=s:"next-arrow"===r?i=s:"I-AMPHTML-SIZER"!==s.tagName&&n.z9.push(s)})),s.appendChild(this.Rtt()),this.h9=s.querySelector(".i-amphtml-carousel-scroll"),this.ntt=this.element.querySelector(".i-amphtml-base-carousel-arrow-prev-slot"),this.itt=this.element.querySelector(".i-amphtml-base-carousel-arrow-next-slot"),this.z9.forEach((function(t){t.classList.add("i-amphtml-carousel-slotted"),n.h9.appendChild(t)})),this.ntt.appendChild(t||this._tt()),this.itt.appendChild(i||this.Ctt())},w.Rtt=function(){return b(this.element)(mt)},w.Ctt=function(){return b(this.element)(vt)},w._tt=function(){return b(this.element)(pt)},w.Mtt=function(t){return t>=2?0:1},w.Att=function(){var t=this,i=E(this.element);this.mtt=new ut({ampElement:this,intersectionElement:this.h9,nearbyMarginInPercent:this.qZ?200:100,viewportIntersectionCallback:function(n,s){s?i.scheduleResume(t.element,n):i.schedulePause(t.element,n)}}),this.mtt.setQueueChanges(this.qZ);var n=this.z9.map((function(t){return"amp-inline-gallery-slide"===t.localName?e((i=t,n="> :not([slot])",(void 0!==a?a:a=function(t){try{var i=t.ownerDocument,n=i.createElement("div"),s=i.createElement("div");return n.appendChild(s),n.querySelector(":scope div")===s}catch(t){return!1}}(i))?i.querySelectorAll(c(n,":scope")):function(t,i){var n=t.classList,s="i-amphtml-scoped";n.add(s);var r=c("> :not([slot])",".".concat(s)),o=t.querySelectorAll(r);return n.remove(s),o}(i))):t;var i,n})).reduce((function(t,i){return t.concat(i)}),[]);this.mtt.updateChildren(n)},w.jtt=function(){var t=this;this.registerAction("prev",(function(i){var n=i.trust;t.n9.prev(t.Mtt(n))}),1),this.registerAction("next",(function(i){var n=i.trust;t.n9.next(t.Mtt(n))}),1),this.registerAction("goToSlide",(function(i){var n,s=i.args,r=i.trust;t.n9.goToSlide(Number(null!==(n=s.index)&&void 0!==n?n:-1),{actionSource:t.Mtt(r)})}),1)},w.uA=function(){var t=this;this.element.addEventListener(V,(function(i){t._9(i)})),this.element.addEventListener($,(function(){t.Ott()})),this.element.addEventListener(D,(function(){t.Stt()})),this.element.addEventListener("goToSlide",(function(i){var n=L(i);t.n9.goToSlide(n.index)})),this.element.addEventListener("keydown",(function(i){t.ist(i)})),this.ntt.addEventListener("click",(function(i){i.target!=i.currentTarget&&t.n9.prev(0)})),this.itt.addEventListener("click",(function(i){i.target!=i.currentTarget&&t.n9.next(0)}))},w.nst=function(){return 1===this.Cd||0!==this.Cd&&this.ftt},w.tst=function(t){switch(t){case"always":this.Cd=0;break;case"never":this.Cd=1;break;default:this.Cd=2}this.Itt()},w.Itt=function(){var t=this,i=this.n9.getCurrentIndex(),n=this.n9.isLooping(),s=this.n9.getVisibleCount(),r=this.n9.isAtEnd(),o=this.n9.isAtStart();p(this.ntt.children,(function(t){d(t,"disabled",!n&&0===i||o)})),p(this.itt.children,(function(o){d(o,"disabled",!n&&i>=t.z9.length-s||r)})),d(this.element,"i-amphtml-base-carousel-hide-buttons",this.nst())},w.Ott=function(){this.mtt.setQueueChanges(this.qZ)},w.Stt=function(){this.mtt.flushChanges(),this.mtt.setQueueChanges(!1),this.Itt()},w.ist=function(t){var i="ArrowRight"===t.key,n="ArrowLeft"===t.key;if(i||n){var s,r="rtl"==((s=y(this.element.ownerDocument)).body.getAttribute("dir")||s.documentElement.getAttribute("dir")||"ltr");i&&!r||n&&r?this.n9.next():this.n9.prev(),t.preventDefault()}},w.Ett=function(){var t=this.element.getAttribute("slide")||"0";return Number(ct(lt(t)))},w.Ltt=function(t){return 2===t||3===t||0===t},w._9=function(t){var i=L(t),n=i.index,s=i.actionSource,r={"index":n},o="slideChange",e=this.Ltt(s)?3:1,a=R(this.win,"slidescroll.".concat(o),r);this.Ye.trigger(this.element,o,a,e),function(t,i,n,s){var r=n||{};l(t.ownerDocument);var o=new MessageEvent("slideChange",{data:r,bubbles:m,cancelable:v});t.dispatchEvent(o)}(this.element,0,r),this.ftt=this.ftt||3===s,this.Itt()},w.ztt=function(t,i){this.Y7.updateAttribute(t,i)},w.goCallback=function(t){1===t?this.interactionNext():this.interactionPrev()},f}(t.BaseElement);t.registerElement("amp-base-carousel",dt,".i-amphtml-carousel-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-carousel-scroll{display:-ms-flexbox;display:flex;width:100%;height:100%;-ms-flex-align:center;align-items:center;outline:none;scroll-behavior:smooth;-webkit-overflow-scrolling:touch!important;--visible-count:1}.i-amphtml-carousel-scroll[hide-scrollbar=true]{scrollbar-width:none}.i-amphtml-carousel-scroll[hide-scrollbar=true]::-webkit-scrollbar{display:none;box-sizing:content-box!important}.i-amphtml-carousel-scroll[horizontal=true]{-ms-flex-direction:row;flex-direction:row;scroll-snap-type-x:mandatory;scroll-snap-type:x mandatory;padding-bottom:20px!important;overflow-y:hidden}.i-amphtml-carousel-scroll[horizontal=false]{-ms-flex-direction:column;flex-direction:column;scroll-snap-type-y:mandatory;scroll-snap-type:y mandatory;padding-right:20px!important;overflow-x:hidden}.i-amphtml-carousel-scroll[snap=false]{scroll-snap-type:none}.i-amphtml-carousel-scroll[user-scrollable=false]{overflow:hidden}.i-amphtml-carousel-spacer{visibility:hidden;z-index:-1}.i-amphtml-carousel-slotted,.i-amphtml-carousel-spacer{box-sizing:border-box!important;margin:0!important;-ms-flex-negative:0!important;flex-shrink:0!important;width:100%;height:100%;scroll-snap-stop:always}.i-amphtml-carousel-scroll[horizontal=true][mixed-length=false]>.i-amphtml-carousel-slotted,.i-amphtml-carousel-scroll[horizontal=true][mixed-length=false]>.i-amphtml-carousel-spacer{width:calc(100%/var(--visible-count))!important;min-width:auto!important;max-width:none!important}.i-amphtml-carousel-scroll[horizontal=false][mixed-length=false]>.i-amphtml-carousel-slotted,.i-amphtml-carousel-scroll[horizontal=false][mixed-length=false]>.i-amphtml-carousel-spacer{height:calc(100%/var(--visible-count))!important;min-height:auto!important;max-height:none!important}.i-amphtml-carousel-scroll[horizontal=true][snap=true][mixed-length=true]>.i-amphtml-carousel-slotted,.i-amphtml-carousel-scroll[horizontal=true][snap=true][mixed-length=true]>.i-amphtml-carousel-spacer{max-width:100%!important}.i-amphtml-carousel-scroll[horizontal=false][snap=true][mixed-length=true]>.i-amphtml-carousel-slotted,.i-amphtml-carousel-scroll[horizontal=false][snap=true][mixed-length=true]>.i-amphtml-carousel-spacer{max-height:100%!important}.i-amphtml-carousel-scroll>.i-amphtml-carousel-slotted{will-change:transform}amp-base-carousel{display:block;overflow:hidden}.i-amphtml-base-carousel-arrows{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between;pointer-events:none}.i-amphtml-base-carousel-arrow-next-slot,.i-amphtml-base-carousel-arrow-prev-slot{position:relative;z-index:1;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.i-amphtml-base-carousel-arrow-next-slot>*,.i-amphtml-base-carousel-arrow-prev-slot>*{pointer-events:all}amp-base-carousel[dir=rtl] .i-amphtml-base-carousel-arrow-next-slot,amp-base-carousel[dir=rtl] .i-amphtml-base-carousel-arrow-prev-slot{transform:scaleX(-1)}amp-base-carousel .i-amphtml-carousel-scroll[loop=false]+.i-amphtml-base-carousel-arrows>.i-amphtml-base-carousel-arrow-next-slot>[disabled],amp-base-carousel .i-amphtml-carousel-scroll[loop=false]+.i-amphtml-base-carousel-arrows>.i-amphtml-base-carousel-arrow-prev-slot>[disabled],amp-base-carousel[i-amphtml-base-carousel-hide-buttons] .i-amphtml-base-carousel-arrow-next-slot>*,amp-base-carousel[i-amphtml-base-carousel-hide-buttons] .i-amphtml-base-carousel-arrow-prev-slot>*{opacity:0;pointer-events:none}.i-amphtml-base-carousel-arrow-backdrop,.i-amphtml-base-carousel-arrow-background,.i-amphtml-base-carousel-arrow-frosting{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%}.i-amphtml-base-carousel-arrow-frosting{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.i-amphtml-base-carousel-arrow-backdrop{-webkit-backdrop-filter:blur(12px) invert(1) grayscale(0.6) brightness(0.8);backdrop-filter:blur(12px) invert(1) grayscale(0.6) brightness(0.8);opacity:0.5}.i-amphtml-base-carousel-arrow-background{background-color:rgba(0,0,0,.3);box-shadow:inset 0 0 0px 1px rgba(0,0,0,.08),0 1px 4px 1px rgba(0,0,0,.2);transition:background-color 200ms}@media (hover:hover){.i-amphtml-base-carousel-arrow:hover .i-amphtml-base-carousel-arrow-background{background-color:hsla(0,0%,100%,.8)}}.i-amphtml-base-carousel-arrow:active .i-amphtml-base-carousel-arrow-background{background-color:#fff;transition-duration:0ms}.i-amphtml-base-carousel-arrow{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:36px;height:36px;padding:0;margin:12px;background-color:transparent;border:none;outline:none;stroke:#fff;transition:stroke 200ms}@media (hover:hover){.i-amphtml-base-carousel-arrow:hover{stroke:#222}}.i-amphtml-base-carousel-arrow:active{stroke:#222;transition-duration:0ms}.i-amphtml-base-carousel-arrow-icon{position:relative;z-index:1;width:24px;height:24px}.i-amphtml-base-carousel-arrow-background,.i-amphtml-base-carousel-arrow-icon{transform:translateZ(1px)}amp-base-carousel .i-amphtml-carousel-slotted>.i-amphtml-replaced-content{-o-object-fit:contain;object-fit:contain}\n/*# sourceURL=/extensions/amp-base-carousel/0.1/amp-base-carousel.css*/")}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-base-carousel-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-bind",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,r){return(n=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,r)}function r(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&n(t,r)}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function e(t){return(e="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 u(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function o(t){var n=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 r,e=i(t);if(n){var o=i(this).constructor;r=Reflect.construct(e,arguments,o)}else r=e.apply(this,arguments);return u(this,r)}}function s(t){return t?Array.prototype.slice.call(t):[]}var a=Array.isArray;function l(t,n){for(var r=[],i=0,e=0;e<t.length;e++){var u=t[e];n(u,e,t)?r.push(u):(i<e&&(t[i]=u),i++)}return i<t.length&&(t.length=i),r}function f(t,n){for(var r=0;r<t.length;r++)if(n(t[r],r,t))return r;return-1}function c(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=t[r];return i}var h=Object.prototype,v=h.hasOwnProperty,d=h.toString;function p(t){return"[object Object]"===d.call(t)}function m(t){var n=Object.create(null);return t&&Object.assign(n,t),n}function b(t,n){return v.call(t,n)}function w(t,n){return b(t,n)?t[n]:void 0}function y(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,i=[],e=[];for(e.push({t:t,s:n,d:0});e.length>0;){var u=e.shift(),o=u.d,s=u.s,a=u.t;if(i.includes(s))throw new Error("Source object has a circular reference.");if(i.push(s),a!==s)if(o>r)Object.assign(a,s);else for(var l=0,f=Object.keys(s);l<f.length;l++){var c=f[l],h=s[c];if(b(a,c)){var v=a[c];if(p(h)&&p(v)){e.push({t:v,s:h,d:o+1});continue}}a[c]=h}}return t}function g(t,n){if("."==n)return t;for(var r,i=t,u=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return c(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,n):void 0}}(t))||t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.split("."));!(r=u()).done;){var o=r.value;if(!(o&&i&&void 0!==i[o]&&"object"==e(i)&&b(i,o))){i=void 0;break}i=i[o]}return i}function P(t){return"number"==typeof t&&isFinite(t)}var A="​​​";function S(t){return 1==(null==(n=t)?void 0:n.nodeType)?t.tagName.toLowerCase()+(t.id?"#".concat(t.id):""):t;var n}function E(t){return t.indexOf(A)>=0}function O(t,n,r,i,e,u,o,s,a,l,f){return t}function M(t,n,r,i,e,u,o,s,a,f,c){return function(t,n){var r,i,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(n)return n;t&&-1==e.indexOf(t)&&(e+=t);for(var u=3,o=e.split("%s"),s=o.shift(),a=[s];o.length;){var f=arguments[u++],c=o.shift();s+=S(f)+c,a.push(f,c.trim())}var h=new Error(s);throw h.messageArray=l(a,(function(t){return""!==t})),null===(r=(i=self).__AMP_REPORT_ERROR)||void 0===r||r.call(i,h),h}(A,t,n,r,i,e,u,o,s,a,f,c)}var T,x=function(t){r(i,t);var n=o(i);function i(){return n.apply(this,arguments)}var e=i.prototype;return e.getLayoutPriority=function(){return 1},e.isAlwaysFixed=function(){return!0},e.isLayoutSupported=function(t){return!0},e.renderOutsideViewport=function(){return!0},e.gr=function(){return"<amp-bind-macro> "+(this.element.getAttribute("id")||"<unknown id>")},i}(t.BaseElement);function R(){return T||(T=Promise.resolve(void 0))}var k=function(){var t=this;this.promise=new Promise((function(n,r){t.resolve=n,t.reject=r}))};function j(t){return JSON.parse(t)}var I,N=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function U(t,n,r,i,e){return e||(n?"�":i?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function L(t,n){return t.closest?t.closest(n):function(t,n,r){var i;for(i=t;i&&void 0!==i;i=i.parentElement)if(n(i))return i;return null}(t,(function(t){return function(t,n){var r=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!r&&r.call(t,n)}(t,n)}))}var C=["Webkit","webkit","Moz","moz","ms","O","o"];function D(t,n,r,i,e){var u=function(t,n,r){if(n.startsWith("--"))return n;I||(I=m());var i=I[n];if(!i||r){if(i=n,void 0===t[n]){var e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(n),u=function(t,n){for(var r=0;r<C.length;r++){var i=C[r]+n;if(void 0!==t[i])return i}return""}(t,e);void 0!==t[u]&&(i=u)}r||(I[n]=i)}return i}(t.style,n,e);if(u){var o,s=i?r+i:r;t.style.setProperty((o=u.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})),C.some((function(t){return o.startsWith(t+"-")}))?"-".concat(o):o),s)}}var _=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function F(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return n}}function B(t){var n,r=m();if(!t)return r;for(;n=_.exec(t);){var i=F(n[1],n[1]),e=n[2]?F(n[2].replace(/\+/g," "),n[2]):"";r[i]=e}return r}function J(t){var n=(t||self).location;return B(n.originalHash||n.hash)}var G="";function z(t){var n=t||self;return n.__AMP_MODE?n.__AMP_MODE:n.__AMP_MODE=function(t){return{localDev:!1,development:V(t,J(t)),esm:!1,test:!1,rtvVersion:$(t),ssrReady:!1}}(n)}function $(t){var n;return G||(G=(null===(n=t.AMP_CONFIG)||void 0===n?void 0:n.v)||"01".concat("2402231941000")),G}function V(t,n){var r=n||J(t);return["1","actions","amp","amp4ads","amp4email"].includes(r.development)||!!t.AMP_DEV_MODE}var W=function(){return self.AMP.config.urls}();self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var q=self.__AMP_LOG;function X(t,n){throw new Error("failed to call initLogConstructor")}function H(t){return q.user||(q.user=K()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(q.user.win,t)?q.userForEmbed||(q.userForEmbed=K()):q.user}function K(t){return X()}function Z(){return q.dev||(q.dev=X())}function Y(t,n,r,i,e,u,o,s,a,l,f){return t}function Q(t,n,r,i,e,u,o,s,a,l,f){return H().assert(t,n,r,i,e,u,o,s,a,l,f)}function tt(t,n){return at(t=ut(t),n)}function nt(t,n){return at(st(ot(t)),n)}function rt(t,n){var r=st(ot(t));return ht(r,n)?at(r,n):null}function it(t,n){return function(t,n){var r=ft(t,n);if(r)return r;var i,e,u,o,s=ct(t);return s[n]=(e=(i=new k).promise,u=i.reject,o=i.resolve,e.catch((function(){})),{obj:null,promise:e,resolve:o,reject:u,context:null,ctor:null}),s[n].promise}(st(t),n)}function et(t,n){return ft(st(t),n)}function ut(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function ot(t){return t.nodeType?(r=t,n=(r.ownerDocument||r).defaultView,tt(n,"ampdoc")).getAmpDoc(t):t;var n,r}function st(t){var n=ot(t);return n.isSingleDoc()?n.win:n}function at(t,n){Y(ht(t,n));var r=ct(t)[n];return r.obj||(Y(r.ctor),Y(r.context),r.obj=new r.ctor(r.context),Y(r.obj),r.context=null,r.resolve&&r.resolve(r.obj)),r.obj}function lt(t,n,r,i,e,u){var o=ct(t),s=o[r];s||(s=o[r]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:u||!1}),!e&&s.ctor||(s.ctor=i,s.context=n,s.sharedInstance=u||!1,s.resolve&&at(t,r))}function ft(t,n){var r=ct(t)[n];return r?r.promise?r.promise:(at(t,n),r.promise=Promise.resolve(r.obj)):null}function ct(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}function ht(t,n){var r=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!r||!r.ctor)}var vt=function(t){return tt(t,"batched-xhr")},dt=function(t){return function(t,n,r){var i=rt(t,n);return i?Promise.resolve(i):function(t,n,r,i){var e=et(t,n);if(e)return e;var u=ot(t);return u.whenExtensionsKnown().then((function(){var t=u.getExtensionVersion(r);return t?tt(u.win,"extensions").waitForExtension(r,t):null})).then((function(r){return r?it(t,n):null}))}(t,n,r)}(t,"bind","amp-bind")},pt=function(t){return nt(t,"viewer")},mt=function(t){return tt(t,"xhr")};function bt(t,n,r,i){var e={detail:r};if(Object.assign(e,i),"function"==typeof t.CustomEvent)return new t.CustomEvent(n,e);var u=t.document.createEvent("CustomEvent");return u.initCustomEvent(n,!!e.bubbles,!!e.cancelable,r),u}function wt(t){return t.detail}var yt,gt,Pt=function(){function t(t){this.Lt=t,this.Ht=0,this.Ft=0,this.Gt=m()}var n=t.prototype;return n.has=function(t){return!!this.Gt[t]},n.get=function(t){var n=this.Gt[t];if(n)return n.access=++this.Ft,n.payload},n.put=function(t,n){this.has(t)||this.Ht++,this.Gt[t]={payload:n,access:this.Ft},this.zt()},n.zt=function(){if(!(this.Ht<=this.Lt)){var t,n=this.Gt,r=this.Ft+1;for(var i in n){var e=n[i].access;e<r&&(r=e,t=i)}void 0!==t&&(delete n[t],this.Ht--)}},t}(),At=function(){return self.AMP.config.urls}(),St=new Set(["c","v","a","ad"]),Et=function(t){return"string"==typeof t?Ot(t):t};function Ot(t,n){return yt||(yt=self.document.createElement("a"),gt=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new Pt(100))),function(t,n,r){if(r&&r.has(n))return r.get(n);t.href=n,t.protocol||(t.href=t.href);var i,e={href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:"0"==t.port?"":t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:null};"/"!==e.pathname[0]&&(e.pathname="/"+e.pathname),("http:"==e.protocol&&80==e.port||"https:"==e.protocol&&443==e.port)&&(e.port="",e.host=e.hostname),i=t.origin&&"null"!=t.origin?t.origin:"data:"!=e.protocol&&e.host?e.protocol+"//"+e.host:e.href,e.origin=i;var u=e;return r&&r.put(n,u),u}(yt,t,n?null:gt)}function Mt(t){return"https:"==(t=Et(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||(r=".localhost",(i=(n=t.hostname).length-r.length)>=0&&n.indexOf(r,i)==i);var n,r,i}function Tt(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"source";return Q(null!=t,"%s %s must be available",n,r),Q(Mt(t)||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',n,r,t),t}function xt(t){return At.cdnProxyRegex.test(Et(t).origin)}function Rt(t){if(!xt(t=Et(t)))return t.href;var n=t.pathname.split("/"),r=n[1];Q(St.has(r),"Unknown path prefix in url %s",t.href);var i=n[2],e="s"==i?"https://"+decodeURIComponent(n[3]):"http://"+decodeURIComponent(i);return Q(e.indexOf(".")>0,"Expected a . in origin %s",e),n.splice(1,"s"==i?3:2),e+n.join("/")+function(t,n){if(!t||"?"==t)return"";var r=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),i=t.replace(r,"").replace(/^[?&]/,"");return i?"?"+i:""}(t.search)+(t.hash||"")}function kt(t){return Ot(Rt(t)).origin}function jt(t,n){return n=Et(n),"function"==typeof URL?new URL(t,n.href).toString():function(t,n){n=Et(n);var r=Ot(t=t.replace(/\\/g,"/"));return t.toLowerCase().startsWith(r.protocol)?r.href:t.startsWith("//")?n.protocol+t:t.startsWith("/")?n.origin+t:n.origin+n.pathname.replace(/\/[^/]*$/,"/")+t}(t,n)}function It(t,n,r,i){var e=function(t){return rt(t,"url-replace")}(t);return(r>=1?e.expandUrlAsync(n):Promise.resolve(n)).then((function(n){if(1===r){var u=e.collectDisallowedVarsSync(t);if(u.length>0)throw H().createError("URL variable substitutions in CORS fetches from dynamic URLs (e.g. via amp-bind) require opt-in. "+'Please add data-amp-replace="'.concat(u.join(" "),'" to the ')+"<".concat(t.tagName,"> element. See https://bit.ly/amp-var-subs."))}var o={};return t.hasAttribute("credentials")&&(o.credentials=t.getAttribute("credentials")),i&&(o.cache="reload"),{"xhrUrl":n,"fetchOpt":o}}))}var Nt=function(t){r(i,t);var n=o(i);function i(t){var r;return(r=n.call(this,t)).Fgt=void 0,r.Bgt=new k,r}var e=i.prototype;return e.getLayoutPriority=function(){return 1},e.isAlwaysFixed=function(){return!0},e.isLayoutSupported=function(t){return!0},e.buildCallback=function(){var t=this;!function(t,n){void 0===n&&(n=t.hasAttribute("hidden")),n?t.removeAttribute("hidden"):t.setAttribute("hidden","")}(this.element,!1),this.element.setAttribute("aria-hidden","true");var n=this.element;n.hasAttribute("overridable")&&dt(n).then((function(t){Y(t),t.addOverridableKey(n.getAttribute("id"))})),this.parseAndUpdate(),this.element.hasAttribute("src")&&this.Jgt(!0),this.registerAction("refresh",(function(){Q(t.element.hasAttribute("src"),'Can\'t refresh <amp-state> without "src" attribute.'),t.Jgt(!1,!0)}))},e.mutatedAttributesCallback=function(t){if(this.getAmpDoc().hasBeenVisible())void 0!==t.src&&this.element.hasAttribute("src")&&this.Jgt(!1);else{var n=this.gr();Z().error(n,"ampdoc must be visible before mutation.")}},e.renderOutsideViewport=function(){return!0},e.parseAndUpdate=function(){return void 0===this.Fgt&&(this.Fgt=this.va(),null!==this.Fgt)?this.Ggt(this.Fgt,!0):R()},e.va=function(){var t=this,n=this.element.children;if(0==n.length)return null;var r=this.gr();if(1!=n.length)return this.user().error(r,"Should contain exactly one <script> child."),null;var i,e,u=n[0];return"SCRIPT"!=(i=u).tagName||"APPLICATION/JSON"!=(null===(e=i.getAttribute("type"))||void 0===e?void 0:e.toUpperCase())?(this.user().error(r,'State should be in a <script> tag with type="application/json".'),null):function(t,n){try{return j(t)}catch(t){return null==n||n(t),null}}(u.textContent,(function(n){t.user().error(r,"Failed to parse state. Is it valid JSON?",n)}))},e.us=function(t,n,r){return function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.expr,e=void 0===i?".":i,u=r.refresh,o=void 0!==u&&u,s=r.url,a=void 0===s?n.getAttribute("src"):s,l=r.urlReplacement,f=void 0===l?0:l,c=r.xssiPrefix,h=void 0===c?void 0:c;Tt(a,n);var v=vt(t.win);return It(n,a,f,o).then((function(t){return v.fetchJson(t.xhrUrl,t.fetchOpt)})).then((function(n){return mt(t.win).xssiJson(n,h)})).then((function(t){if(null==t)throw new Error("Response is undefined.");return g(t,e||".")})).catch((function(t){throw H().createError("failed fetching JSON data",t)}))}(t,this.element,{urlReplacement:n,refresh:r})},e.T1=function(t,n){var r=this,i=this.element,e=this.getAmpDoc(),u=kt(i.getAttribute("src"))===kt(e.win.location)||t?2:1;return this.us(e,u,n).catch((function(t){var n=t?bt(r.win,"amp-state.error",{"response":t.response}):null;(function(t){return rt(t,"action")})(i).trigger(i,"fetch-error",n,1)}))},e.Jgt=function(t,n){var r=this;t||(this.Bgt=new k);var i=this.Bgt;return this.getAmpDoc().whenFirstVisible().then((function(){return r.T1(t,n)})).then((function(n){return r.Ggt(n,t)})).then((function(){return i.resolve()})).catch((function(t){throw i.resolve(),t}))},e.getFetchingPromise=function(){return this.element.hasAttribute("src")?this.Bgt.promise:R()},e.Ggt=function(t,n){if(null==t)return R();var r=Q(this.element.id,"<amp-state> must have an id.");return dt(this.element).then((function(i){Y(i);var e=m();e[r]=t,i.setState(e,{skipEval:n,skipAmpState:!n})}))},e.gr=function(){return"<amp-state> "+(this.element.getAttribute("id")||"<unknown id>")},i}(t.BaseElement),Ut=function(){function t(){this.vn=m(),this.ti=null}var n=t.prototype;return n.get=function(t){var n=this.vn[t];return null==n?null:n},n.whenSignal=function(t){var n,r=null===(n=this.ti)||void 0===n?void 0:n[t];if(!r){var i=this.vn[t];r=null!=i?{promise:"number"==typeof i?Promise.resolve(i):Promise.reject(i)}:new k,this.ti||(this.ti=m()),this.ti[t]=r}return r.promise},n.signal=function(t,n){var r;if(null==this.vn[t]){var i=null!=n?n:Date.now();this.vn[t]=i;var e=null===(r=this.ti)||void 0===r?void 0:r[t];null!=e&&e.resolve&&(e.resolve(i),e.resolve=void 0,e.reject=void 0)}},n.rejectSignal=function(t,n){var r;if(null==this.vn[t]){this.vn[t]=n;var i=null===(r=this.ti)||void 0===r?void 0:r[t];null!=i&&i.reject&&(i.reject(n),i.promise.catch((function(){})),i.resolve=void 0,i.reject=void 0)}},n.reset=function(t){var n;this.vn[t]&&delete this.vn[t];var r=null===(n=this.ti)||void 0===n?void 0:n[t];r&&!r.resolve&&delete this.ti[t]},t}();function Lt(t){if(O(function(t){var n=t.tagName;return n.startsWith("AMP-")&&!("AMP-STICKY-AD-TOP-PADDING"==n||"AMP-BODY"==n)}(t)),t.createdCallback)return Promise.resolve(t);if(!t.__AMP_UPG_PRM){var n=new k;t.__AMP_UPG_PRM=n.promise,t.__AMP_UPG_RES=n.resolve}var r=t.__AMP_UPG_PRM;return O(r),r}var Ct=/(\S+)(?:\s+(?:(-?\d+(?:\.\d+)?)([a-zA-Z]*)))?\s*(?:,|$)/g;function Dt(t){for(var n,r=[];n=Ct.exec(t);){var i=n[1],e=void 0,u=void 0;if(n[2]){var o=n[3].toLowerCase();if("w"==o)e=parseInt(n[2],10);else{if("x"!=o)continue;u=parseFloat(n[2])}}else u=1;r.push({url:i,width:e,dpr:u})}return new _t(r)}var _t=function(){function t(t){M(t.length>0,"Srcset must have at least one source"),this.KT=t;for(var n=!1,r=!1,i=0;i<t.length;i++){var e=t[i];n=n||!!e.width,r=r||!!e.dpr}M(!(n===r),"Srcset must have width or dpr sources, but not both"),t.sort(n?Ft:Bt),this.aR=n}var n=t.prototype;return n.select=function(t,n){var r;return O(t),O(n),r=this.aR?this.uR(t*n):this.sR(n),this.KT[r].url},n.uR=function(t){for(var n=this.KT,r=0,i=1/0,e=1/0,u=0;u<n.length;u++){var o,s=null!==(o=n[u].width)&&void 0!==o?o:0,a=Math.abs(s-t);if(!(a<=1.1*i||t/e>1.2))break;r=u,i=a,e=s}return r},n.sR=function(t){for(var n=this.KT,r=0,i=1/0,e=0;e<n.length;e++){var u=Math.abs(n[e].dpr-t);if(!(u<=i))break;r=e,i=u}return r},n.getUrls=function(){return this.KT.map((function(t){return t.url}))},n.stringify=function(t){for(var n=[],r=this.KT,i=0;i<r.length;i++){var e=r[i],u=e.url;t&&(u=t(u)),this.aR?u+=" ".concat(e.width,"w"):u+=" ".concat(e.dpr,"x"),n.push(u)}return n.join(", ")},t}();function Ft(t,n){return M(t.width!=n.width,"Duplicate width: %s",t.width),t.width-n.width}function Bt(t,n){return M(t.dpr!=n.dpr,"Duplicate dpr: %s",t.dpr),t.dpr-n.dpr}var Jt={"class":{denylistedValueRegex:"(^|\\W)i-amphtml-"},"hidden":null,"text":null},Gt={"width":null,"height":null},zt={"AMP-AUDIO":{"album":null,"artist":null,"artwork":null,"controlsList":null,"loop":null,"src":{"allowedProtocols":{"https":!0}},"title":null},"AMP-AUTOCOMPLETE":{"src":{"allowedProtocols":{"https":!0}}},"AMP-BASE-CAROUSEL":{"advance-count":null,"auto-advance-count":null,"auto-advance-interval":null,"auto-advance-loops":null,"auto-advance":null,"horizontal":null,"initial-index":null,"loop":null,"mixed-length":null,"side-slide-count":null,"slide":null,"snap-align":null,"snap-by":null,"snap":null,"visible-count":null},"AMP-BRIGHTCOVE":{"data-account":null,"data-embed":null,"data-player":null,"data-player-id":null,"data-playlist-id":null,"data-video-id":null},"AMP-CAROUSEL":{"slide":null},"AMP-DATE-PICKER":{"max":null,"min":null,"src":{"allowedProtocols":{"https":!0}}},"AMP-GOOGLE-DOCUMENT-EMBED":{"src":null,"title":null},"AMP-IFRAME":{"src":null,"title":null},"AMP-IMG":{"alt":null,"attribution":null,"src":{"allowedProtocols":{"data":!0,"http":!0,"https":!0}},"srcset":{"alternativeName":"src"}},"AMP-LIGHTBOX":{"open":null},"AMP-LIST":{"src":{"allowedProtocols":{"https":!0}},"state":null,"is-layout-container":null},"AMP-RENDER":{"src":{"allowedProtocols":{"https":!0}}},"AMP-SELECTOR":{"disabled":null,"selected":null},"AMP-STATE":{"src":{"allowedProtocols":{"https":!0}}},"AMP-TIMEAGO":{"datetime":null,"title":null},"AMP-TWITTER":{"data-tweetid":null},"AMP-VIDEO":{"album":null,"alt":null,"artist":null,"artwork":null,"attribution":null,"controls":null,"controlslist":null,"loop":null,"poster":null,"preload":null,"src":{"allowedProtocols":{"https":!0}},"title":null},"AMP-YOUTUBE":{"data-videoid":null},"A":{"href":{"allowedProtocols":{"ftp":!0,"geo":!0,"http":!0,"https":!0,"mailto":!0,"maps":!0,"bip":!0,"bbmi":!0,"chrome":!0,"itms-services":!0,"facetime":!0,"fb-me":!0,"fb-messenger":!0,"intent":!0,"line":!0,"microsoft-edge":!0,"skype":!0,"sms":!0,"snapchat":!0,"tel":!0,"tg":!0,"threema":!0,"twitter":!0,"viber":!0,"webcal":!0,"web+mastodon":!0,"wh":!0,"whatsapp":!0}}},"BUTTON":{"disabled":null,"type":null,"value":null},"DETAILS":{"open":null},"FIELDSET":{"disabled":null},"IMAGE":{"xlink:href":{"allowedProtocols":{"http":!0,"https":!0}}},"INPUT":{"accept":null,"accesskey":null,"autocomplete":null,"checked":null,"disabled":null,"height":null,"inputmode":null,"max":null,"maxlength":null,"min":null,"minlength":null,"multiple":null,"pattern":null,"placeholder":null,"readonly":null,"required":null,"selectiondirection":null,"size":null,"spellcheck":null,"step":null,"type":{denylistedValueRegex:"(^|\\s)(button|image|)(\\s|$)"},"value":null,"width":null},"OPTION":{"disabled":null,"label":null,"selected":null,"value":null},"OPTGROUP":{"disabled":null,"label":null},"SECTION":{"data-expand":null,"expanded":null},"SELECT":{"autofocus":null,"disabled":null,"multiple":null,"required":null,"size":null},"SOURCE":{"src":{"allowedProtocols":{"https":!0}},"type":null},"TRACK":{"label":null,"src":{"allowedProtocols":{"https":!0}},"srclang":null},"TEXTAREA":{"autocomplete":null,"autofocus":null,"cols":null,"disabled":null,"maxlength":null,"minlength":null,"pattern":null,"placeholder":null,"readonly":null,"required":null,"rows":null,"selectiondirection":null,"selectionend":null,"selectionstart":null,"spellcheck":null,"wrap":null,"defaulttext":null}},$t={"src":!0,"srcset":!0,"href":!0,"xlink:href":!0},Vt=function(){function t(t){this.bU=t}var n=t.prototype;return n.canBind=function(t,n){return void 0!==this.pU(t,n)},n.isResultValid=function(t,n,r){var i=this.pU(t,n);if(i&&i.alternativeName&&(i=this.pU(t,i.alternativeName)),void 0===i)return!1;if(null===i)return!0;if(r&&w($t,n)){var e;if("srcset"===n){var u;try{u=Dt(r)}catch(t){return H().error("amp-bind","Failed to parse srcset: ",t),!1}e=u.getUrls()}else e=[r];for(var o=0;o<e.length;o++)if(!this.mU(e[o],i))return!1}var s=i.denylistedValueRegex;return!(r&&s&&new RegExp(s,"i").test(r))},n.mU=function(t,n){if(t){if(/__amp_source_origin/.test(t))return!1;var r=n.allowedProtocols;if(r){var i=/^([^:\/?#.]+):[\s\S]*$/.exec(t);if(null!==i&&!b(r,i[1].toLowerCase().trim()))return!1}}return!0},n.pU=function(t,n){if(n.startsWith("aria-"))return null;if(!w($t,n)||this.bU){var r=w(Jt,n);if(void 0!==r)return r;var i=w(Gt,n);if(t.startsWith("AMP-")&&void 0!==i)return i;var e=w(zt,t);return e?e[n]:void 0}},t}();var Wt=function(){function t(){this.lr=[]}var n,r=t.prototype;return r.peek=function(){var t=this.length;return t?this.lr[t-1].item:null},r.enqueue=function(t,n){if(isNaN(n))throw new Error("Priority must not be NaN.");var r=this.vr(n);this.lr.splice(r,0,{item:t,priority:n})},r.vr=function(t){for(var n=-1,r=0,i=this.length;r<=i&&(n=Math.floor((r+i)/2))!==this.length;)if(this.lr[n].priority<t)r=n+1;else{if(!(n>0&&this.lr[n-1].priority>=t))break;i=n-1}return n},r.forEach=function(t){for(var n=this.length;n--;)t(this.lr[n].item)},r.dequeue=function(){var t=this.lr.pop();return t?t.item:null},(n=[{key:"length",get:function(){return this.lr.length}}])&&function(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,n),t}(),qt=!1;function Xt(t){Y(t.defaultView),qt||(qt=!0,function(t){!function(t,n){for(var r in n)D(t,r,n[r])}(t.body,{opacity:1,visibility:"visible","animation":"none"})}(t))}var Ht="CHUNK",Kt=/nochunking=1/.test(self.location.hash),Zt=R();function Yt(t,n,r){Kt?Zt.then(n):function(t){var n,r;return"chunk",n=rn,lt(st(r=ot(t)),r,"chunk",n),nt(t,"chunk")}(t).run(n,r)}var Qt="not_run",tn=function(){function t(t){this.state=Qt,this.mr=t}var n=t.prototype;return n.pr=function(t){if("run"!=this.state){this.state="run";try{this.mr(t)}catch(t){throw this.br(t),t}}},n.gr=function(){return this.mr.displayName||this.mr.name},n.br=function(t){},n.yr=function(){return!1},n.wr=function(){return!1},t}(),nn=function(t){r(i,t);var n=o(i);function i(t,r,i){var e;return(e=n.call(this,t)).Ar=i,e}var e=i.prototype;return e.br=function(t){Xt(self.document)},e.yr=function(){return this.Er()},e.wr=function(){return this.Ar.Or},e.Er=function(){return this.Ar.ampdoc.isVisible()},i}(tn),rn=function(){function t(t){var n,r=this;this.ampdoc=t,this.t=t.win,this.Tr=new Wt,this.Pr=this.Ir.bind(this),this.Sr=0,this.Mr=!(!this.t.navigator.scheduling||!this.t.navigator.scheduling.isInputPending),this.Rr=!1,this.dr=this.t.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.t.addEventListener("message",(function(t){"amp-macro-task"==t.data&&r.Ir(null)})),this.Or=!1,(n=t,it(n,"viewer")).then((function(){r.Or=!0})),t.onVisibilityChanged((function(){t.isVisible()&&r._r()}))}var n=t.prototype;return n.run=function(t,n){var r=new tn(t);this.kr(r,n)},n.runForStartup=function(t){var n=new nn(t,this.t,this);this.kr(n,Number.POSITIVE_INFINITY)},n.kr=function(t,n){this.Tr.enqueue(t,n),this._r()},n.Nr=function(t){for(var n=this.Tr.peek();n&&n.state!==Qt;)this.Tr.dequeue(),n=this.Tr.peek();return n&&t&&this.Tr.dequeue(),n},n.Ir=function(t){var n,r=this,i=this.Nr(!0);if(!i)return this.Rr=!1,this.Sr=0,!1;try{n=Date.now(),i.pr(t)}finally{Zt.then().then().then().then().then().then().then().then().then((function(){r.Rr=!1,r.Sr+=Date.now()-n,Z().fine(Ht,i.gr(),"Chunk duration",Date.now()-n,r.Sr),r._r()}))}return!0},n.Cr=function(t){var n=this;if(this.dr&&(this.Mr?this.t.navigator.scheduling.isInputPending():this.Sr>5))return this.Sr=0,void this.jr();Zt.then((function(){n.Pr(t)}))},n._r=function(){if(!this.Rr){var t=this.Nr();if(t)return t.yr()?(this.Rr=!0,void this.Cr(null)):void(t.wr()&&this.t.requestIdleCallback?(n=this.t,r=2e3,i=this.Pr,e=Date.now(),n.requestIdleCallback((function t(u){if(u.timeRemaining()<15){var o=r-(Date.now()-e);o<=0||u.didTimeout?(Z().fine(Ht,"Timed out",r,u.didTimeout),i(u)):(Z().fine(Ht,"Rescheduling with",o,u.timeRemaining()),n.requestIdleCallback(t,{timeout:o}))}else Z().fine(Ht,"Running idle callback with ",15),i(u)}),{timeout:r})):this.jr())}var n,r,i,e},n.jr=function(){this.t.postMessage("amp-macro-task","*")},t}(),en=function(){return self.AMP.config.urls}(),un=self.__AMP_ERRORS||[];self.__AMP_ERRORS=un;var on=function(t){return(n=0,r=function(){var t=Math.pow(1.5,n++);return 1e3*(t+function(t,n){var r=t*(n=n||.3)*Math.random();return Math.random()>.5&&(r*=-1),r}(t))},on=function(t){return setTimeout(t,r())})(t);var n,r};function sn(t,n){try{if(t)if(void 0!==t.message)t=function(t){var n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;var r=t.message,i=t.stack,e=new Error(r);for(var u in t)e[u]=t[u];return e.stack=i,e}(t);else{var r=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(n){return String(t)}}(r))).origError=r}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){var i=f(t.messageArray,(function(t){return null==t?void 0:t.tagName}));i>-1&&(t.associatedElement=t.messageArray[i])}var e=n||t.associatedElement;if(e&&e.classList&&(e.classList.add("i-amphtml-error"),z().development&&(e.classList.add("i-amphtml-element-error"),e.setAttribute("error-message",t.message))),self.console&&(E(t.message)||!t.expected)){var u=console.error||console.log;t.messageArray?u.apply(console,t.messageArray):e?u.call(console,t.message,e):u.call(console,t.message)}e&&e.dispatchCustomEventForTesting&&e.dispatchCustomEventForTesting("amp:error",t.message),an.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function an(t,n,r,i,e){var u=this;if(!this||!this.document||e&&e.expected||Xt(this.document),!z().development){var o=!1;try{o=function(t){if(!t.document)return!1;for(var n=t.document.querySelectorAll("script[src]"),r=0;r<n.length;r++)if(!xt(n[r].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(!(o&&Math.random()>.01)){var s=function(t,n,r,i,e,u){t=function(t,n){return n&&(t=n.message?n.message:String(n)),t||(t="Unknown error"),t}(t,e);var o=!(!e||!e.expected);if(!/_reported_/.test(t)&&"CANCELLED"!=t){var s=!(self&&self.window),a=Math.random();if(!((function(t){return-1!=t.indexOf("Failed to load:")}(t)||"Script error."==t||s)&&(o=!0,a>.001))){var l=E(t);if(!(l&&a>.1)){var f=Object.create(null);f.v=z().rtvVersion,f.noAmp=u?"1":"0",f.m=t.replace(A,""),f.a=l?"1":"0",f.ex=o?"1":"0",f.dw=s?"1":"0";var c,h,v="1p";if(self.context&&self.context.location?(v="3p",f["3p"]="1"):z().runtime&&(v=z().runtime),f.rt=v,f.cdn=en.cdn,"inabox"===v&&(f.adid=z().a4aId),f.ca=null!==(h=self.AMP_CONFIG)&&void 0!==h&&h.canary?"1":"0",f.bt=(null===(c=self.AMP_CONFIG)||void 0===c?void 0:c.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(f.or=self.location.ancestorOrigins[0]),self.viewerState&&(f.vs=self.viewerState),self.parent&&self.parent!=self&&(f.iem="1"),self.AMP&&self.AMP.viewer){var d=self.AMP.viewer.getResolvedViewerUrl(),p=self.AMP.viewer.maybeGetMessagingOrigin();d&&(f.rvu=d),p&&(f.mso=p)}var m,b,w,y=[],g=self.__AMP__EXPERIMENT_TOGGLES||null;for(var P in g){var S=g[P];y.push("".concat(P,"=").concat(S?"1":"0"))}return f.exps=y.join(","),e?(f.el=(null===(m=e.associatedElement)||void 0===m?void 0:m.tagName)||"u",e.args&&(f.args=JSON.stringify(e.args)),l||e.ignoreStack||!e.stack||(f.s=e.stack),e.message&&(e.message+=" _reported_")):(f.f=n||"",f.l=r||"",f.c=i||""),f.r=self.document?self.document.referrer:"",f.ae=un.join(","),f.fr=self.location.originalHash||self.location.hash,"production"===f.bt&&(f.pt="1"),w=t,(b=un).length>=25&&b.splice(0,b.length-25+1),b.push(w),f}}}}(t,n,r,i,e,o);s&&on((function(){try{return function(t,n){return n.pt&&Math.random()<.9?R():function(t,n){var r=function(t){return tt(t,"ampdoc")}(t);if(!r.isSingleDoc())return Promise.resolve(!1);var i=r.getSingleDoc();if(!i.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);var e=pt(i);return e.hasCapability("errorReporter")?e.isTrustedViewer().then((function(t){return!!t&&(e.sendMessage("error",{"m":(r=n).m,"a":r.a,"s":r.s,"el":r.el,"ex":r.ex,"v":r.v,"pt":r.pt}),!0);var r})):Promise.resolve(!1)}(t,n).then((function(t){if(!t){var r=new XMLHttpRequest;r.open("POST",Math.random()<.1?en.betaErrorReporting:en.errorReporting,!0),r.send(JSON.stringify(n))}}))}(u,s).catch((function(){}))}catch(t){}}))}}}var ln=function(){return self.AMP.config.urls}(),fn="__AMP_ORIGINAL_TARGET_VALUE_";function cn(t,n,r){var i=Ot(jt(t,n));return"data:"==i.protocol||xt(i)||!r?i.href:"".concat(ln.cdn,"/i/")+("https:"==i.protocol?"s/":"")+encodeURIComponent(i.host)+i.pathname+(i.search||"")+(i.hash||"")}var hn="web-worker",vn=function(){function t(t){var n=this;this.t=t,this.Rt=mt(t);var r,i,e,u,o=t.location,s={createScriptURL:function(t){return/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/.test(t)&&(t.endsWith("ww.js")||t.endsWith("ww.min.js")||t.endsWith("ww.mjs")||t.endsWith("ww.min.mjs"))?t:""}};self.trustedTypes&&self.trustedTypes.createPolicy&&(s=self.trustedTypes.createPolicy("amp-worker#fetchUrl",s)),r=s.createScriptURL((o,i="ww",!1,!0,e=".js",u=W.cdn,"".concat(u,"/rtv/").concat(z().rtvVersion,"/").concat(i).concat(e))).toString(),Z().fine(hn,"Fetching web worker from",r),this.$gt=null,this.Vgt=this.Rt.fetchText(r,{ampCors:!1,bypassInterceptorForDev:!1}).then((function(t){return t.text()})).then((function(i){var e="".concat(r,".map");i=i.replace(/^\/\/# sourceMappingURL=.*/,"//# sourceMappingURL=".concat(e));var u=new t.Blob([i+"\n//# sourceurl="+r],{type:"text/javascript"}),o=t.URL.createObjectURL(u);if(self.trustedTypes&&self.trustedTypes.createPolicy){var s=self.trustedTypes.createPolicy("amp-worker#constructor",{createScriptURL:function(t){return t}});n.$gt=new t.Worker(s.createScriptURL(o))}else n.$gt=new t.Worker(o);n.$gt.onmessage=n.Wgt.bind(n)})),this.xt={},this.vx=0,this.qgt=[t]}var n=t.prototype;return n.S=function(t,n,r){var i=this;return this.Vgt.then((function(){return new Promise((function(e,u){var o=i.vx++;i.xt[o]={method:t,resolve:e,reject:u};var s=i.Xgt(r||i.t),a={method:t,args:n,scope:s,id:o};i.$gt.postMessage(a)}))}))},n.Wgt=function(t){var n=t.data,r=n.id,i=n.method,e=n.returnValue,u=this.xt[r];u?(O(i==u.method),u.resolve(e),delete this.xt[r]):Z().error(hn,"Received unexpected message (".concat(i,", ").concat(r,") from worker."))},n.hasPendingMessages=function(){return Object.keys(this.xt).length>0},n.Xgt=function(t){var n=this.qgt.indexOf(t);return n>=0?n:this.qgt.push(t)-1},n.fetchPromiseForTesting=function(){return this.Vgt},t}(),dn="amp-bind",pn=/^(i?-)?amp(html)?-/,mn={"INPUT":{"checked":!0,"value":!0},"OPTION":{"selected":!0},"TEXTAREA":{"text":!0,"disabled":!0}},bn=m({"AMP-CAROUSEL":["slide"],"AMP-LIST":["is-layout-container"],"AMP-SELECTOR":["selected"]}),wn=["AMP-LIST","AMP-RENDER"],yn=function(){function t(t){var n=this;this.ampdoc=t,this.t=t.win,this.Hgt=t.win,this.Kgt=[],this.Zgt=function(t,n,r){var i=0,e=0,u=null;function o(){i=0;var s,a=r-(t.Date.now()-e);a>0?i=t.setTimeout(o,a):(s=u,u=null,n.apply(null,s))}return function(){e=t.Date.now();for(var n=arguments.length,s=new Array(n),a=0;a<n;a++)s[a]=arguments[a];u=s,i||(i=t.setTimeout(o,r))}}(this.t,(function(){n.Kgt.length=0}),5e3),this.Ygt=[],this.Qgt=m(),this.To=nt(t,"history"),this.tPt=[],this.nPt=1e3,this.Ph=nt(t,"mutator"),this.Ri=m(),this.je=at(this.t,"timer"),this.wU=null,this.ls=pt(this.ampdoc),this.ls.onMessageRespond("premutate",this.rPt.bind(this)),this.iPt=t.whenFirstVisible().then((function(){return t.whenReady().then((function(){return t.getRootNode()}))})),this.ePt=this.iPt.then((function(t){return n.Pe(t)})),this.uPt=new k,this.oPt=null,this.si=new Ut;var r=self.AMP;r.printState=r.printState||this.sPt.bind(this),r.setState=r.setState||function(t){return n.setState(t)},r.eval=r.eval||this.aPt.bind(this)}var n=t.prototype;return n.signals=function(){return this.si},n.setState=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Z().info(dn,"setState (init=%s):",r.skipEval,t);try{y(this.Ri,t,10)}catch(t){H().error(dn,"Failed to merge result from AMP.setState().",t)}if(r.skipEval)return R();var i=this.ePt.then((function(){return n.AU()})).then((function(t){return n.lPt(t,{skipAmpState:r.skipAmpState,constrain:r.constrain})}));return this.oPt=i},n.invoke=function(t){var n=t.args,r=t.event,i=t.method,e=t.sequenceId,u=t.tagOrTarget;if(this.Kgt.includes(e))return H().error(dn,"One state action allowed per event."),R();this.Kgt.push(e),this.Zgt();var o=n.__AMP_OBJECT_STRING__;if(o){this.nPt=Math.min(2e3,Math.max(1e3,this.nPt+500)),this.si.signal("FIRST_MUTATE");var s={};switch(r&&wt(r)&&(s.event=wt(r)),i){case"setState":return this.setStateWithExpression(o,s);case"pushState":return this.pushStateWithExpression(o,s);default:return Promise.reject(Z().createError("Unrecognized method: %s.%s",u,i))}}else H().error("AMP-BIND","Please use the object-literal syntax, e.g. \"AMP.setState({foo: 'bar'})\" instead of \"AMP.setState(foo='bar')\".");return R()},n.setStateWithExpression=function(t,n){var r=this;return this.fPt(t,n).then((function(t){return r.cPt(t)}))},n.setStateWithObject=function(t){var n=this.hPt(t);return n?this.cPt(n):Promise.reject("Invalid state")},n.cPt=function(t){var n=this;return Z().info(dn,"setState:",t),this.oPt=this.setState(t).then((function(){return n.vPt()})).then((function(t){t&&n.To.replace(t)})),this.oPt},n.pushStateWithExpression=function(t,n){var r=this;return Z().info(dn,"pushState:",t),this.fPt(t,n).then((function(t){var n=m();Object.keys(t).forEach((function(t){var i=r.Ri[t];n[t]=r.hPt(i)}));var i=function(){return r.setState(n)};return r.setState(t).then((function(){return r.vPt()})).then((function(t){r.To.push(i,t)}))}))},n.vPt=function(){var t={"data":{"amp-bind":this.Ri},"title":this.Hgt.document.title};return this.ls.isEmbedded()?this.ls.isTrustedViewer().then((function(n){return n?t:null})):Promise.resolve(t)},n.rescan=function(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=i.fast?this.uPt.promise:this.ePt;return e.then((function(){return r.je.timeoutPromise(i.timeout||2e3,r.dPt(t,n,i),"Timed out waiting for amp-bind to rescan.")}))},n.dPt=function(t,n,r){var i=this;return Z().info(dn,"rescan: ",t,n,r),(r.fast?this.pPt(t,n):this.mPt(t,n)).then((function(){if(r.update)return i.AU().then((function(n){return i.lPt(n,{constrain:t,evaluateOnly:"evaluate"===r.update})}))}))},n.pPt=function(t,n){var r=this,i=this.bPt(n),e=[],u=t.filter((function(t){return t.hasAttribute("i-amphtml-binding")}));t.forEach((function(t){var n=t.querySelectorAll("[i-amphtml-binding]");Array.prototype.push.apply(u,n)}));for(var o=this.nPt-this.numberOfBindings(),s=0;s<u.length;s++){var a=u[s];if(this.wPt(a,o-e.length,e))break}return i.then((function(t){Z().info(dn,"rescan.fast: delta=%s, total=%s",e.length-t,r.numberOfBindings())})),e.length>0?this.yPt(e):R()},n.getState=function(t){var n=t?g(this.Ri,t):void 0;return p(n)||a(n)?this.hPt(n):n},n.getStateAsync=function(t){var n=this,r=/^[^.]*/.exec(t)[0];return this.iPt.then((function(i){var e=i.querySelector("#".concat(String(r).replace(N,U)));if(!e)throw H().createError(dn,"#".concat(r," does not exist."));return Lt(e).then((function(t){return t.getImpl(!0)})).then((function(t){return t.getFetchingPromise()})).catch((function(){})).then((function(){return n.getState(t)}))}))},n.getStateValue=function(t){var n=g(this.Ri,t);return null==n?null:p(n)||a(n)?JSON.stringify(n):String(n)},n.Pe=function(t){var n,r,i=this,e=(n=this.Hgt.document,r=n.documentElement,!["⚡4email","amp4email"].some((function(t){return r.hasAttribute(t)})));return this.wU=new Vt(e),this.gPt("bind.init",[e]).then((function(){return Promise.all([i.PPt().then((function(){return i.uPt.resolve()})),i.APt([t])])})).then((function(){t.addEventListener("amp:dom-update",(function(t){return i.Tgt(t)}))})).then((function(){var n=s(t.querySelectorAll("AMP-STATE")).map((function(t){return Lt(t).then((function(){return t.getImpl(!1)})).then((function(t){return t.parseAndUpdate()}))}));return Promise.all(n)})).then((function(){if(i.ls.sendMessage("bindReady",void 0),i.SPt("amp:bind:initialize"),z().development)return i.AU().then((function(t){return i.aJ(t)}))}))},n.numberOfBindings=function(){return this.Ygt.reduce((function(t,n){return t+n.boundProperties.length}),0)},n.setMaxNumberOfBindingsForTesting=function(t){this.nPt=t},n.historyForTesting=function(){return this.To},n.rPt=function(t){var n=this,r=[];return this.ePt.then((function(){return Object.keys(t.state).forEach((function(i){n.tPt.includes(i)||(delete t.state[i],r.push(i))})),r.length>0&&H().warn(dn,"Some state keys could not be premutated because they are missing the overridable attribute: "+r.join(", ")),n.setState(t.state)}))},n.addOverridableKey=function(t){this.tPt.push(t)},n.PPt=function(){var t=this,n=this.ampdoc.getBody().querySelectorAll("AMP-BIND-MACRO"),r=[];return n.forEach((function(t){var n=(t.getAttribute("arguments")||"").split(",").map((function(t){return t.trim()}));r.push({id:t.getAttribute("id"),argumentNames:n,expressionString:t.getAttribute("expression")})})),0==r.length?Promise.resolve(0):this.gPt("bind.addMacros",[r]).then((function(i){return i.forEach((function(r,i){t.EPt(r,"".concat(dn,": Parsing amp-bind-macro failed."),n[i])})),r.length}))},n.APt=function(t){var n=this;if(!t.length)return Promise.resolve(0);var r=t.map((function(t){var r=n.nPt-n.numberOfBindings();return n.bx(t,r).then((function(t){var r=t.bindings;return t.limitExceeded&&n.OPt(),r}))}));return Promise.all(r).then((function(t){var r=Array.prototype.concat.apply([],t);return r.length>0?n.yPt(r):0}))},n.OPt=function(){Z().expectedError(dn,"Maximum number of bindings reached (%s). Additional elements with bindings will be ignored.",this.nPt)},n.yPt=function(t){var n=this;return this.gPt("bind.addBindings",[t]).then((function(r){return Object.keys(r).forEach((function(t){var i=n.Qgt[t];i.length>0&&n.EPt(r[t],"".concat(dn,': Expression compile error in "').concat(t,'".'),i[0])})),t.length}))},n.bPt=function(t){if(!t.length)return Promise.resolve(0);l(this.Ygt,(function(n){for(var r=0;r<t.length;r++)if(t[r].contains(n.element))return!0;return!1}));var n=[];for(var r in this.Qgt){var i=this.Qgt[r];l(i,(function(n){for(var r=0;r<t.length;r++)if(t[r].contains(n))return!0;return!1})),0==i.length&&(n.push(r),delete this.Qgt[r])}var e=n.length;return e>0?this.gPt("bind.removeBindingsWithExpressionStrings",[n]).then((function(){return e})):Promise.resolve(0)},n.bx=function(t,n){var r=this,i=[],e=new gn(t),u=!1,o=function(){var t=e.currentNode;if(t.nodeType!==Node.ELEMENT_NODE)return!e.nextNode();var o=t,s=n-i.length;return r.wPt(o,s,i)&&(u=!0),!(wn.includes(t.nodeName)?e.skipSubtree():e.nextNode())||u};return new Promise((function(t){Yt(r.ampdoc,(function n(e){var s=!1;if(e&&!e.didTimeout)for(;e.timeRemaining()>1&&!s;)s=o();else for(var a=0;a<250&&!s;a++)s=o();s?t({bindings:i,limitExceeded:u}):Yt(r.ampdoc,n,10)}),10)}))},n.wPt=function(t,n,r){var i=this,e=!1,u=this.MPt(t);u.length>n&&(u.length=n,e=!0),u.length>0&&this.Ygt.push({element:t,boundProperties:u});var o=t.tagName;return u.forEach((function(n){var e=n.expressionString,u=n.property;r.push({tagName:o,property:u,expressionString:e}),i.Qgt[e]||(i.Qgt[e]=[]),i.Qgt[e].push(t)})),e},n.MPt=function(t){for(var n=[],r=t.attributes,i=0,e=r.length;i<e;i++){var u=r[i],o=this.TPt(u,t);o&&n.push(o)}return n},n.TPt=function(t,n){var r,i=n.tagName,e=t.name;if(e.length>2&&"["===e[0]&&"]"===e[e.length-1])r=e.substr(1,e.length-2);else if(e.startsWith("data-amp-bind-")&&(r=e.substr(14),n.hasAttribute("[".concat(r,"]"))))return null;if(r){if(this.wU.canBind(i,r))return{property:r,expressionString:t.value};var u=H().createError("%s: Binding to [%s] on <%s> is not allowed.",dn,r,i);this.xPt(u,n)}return null},n.fPt=function(t,n){var r=this;return this.ePt.then((function(){return Object.assign(n,r.Ri),r.gPt("bind.evaluateExpression",[t,n])})).then((function(t){var n=t.error,i=t.result;if(n)throw r.EPt(n,"".concat(dn,": Expression eval failed."));return i}))},n.AU=function(){var t=this;return this.gPt("bind.evaluateBindings",[this.Ri]).then((function(n){var r=n.errors,i=n.results;return Object.keys(r).forEach((function(n){var i=t.Qgt[n];if(i.length>0){var e=r[n],u=H().createError('%s: Expression evaluation error in "%s". %s',dn,n,e.message);u.stack=e.stack,t.xPt(u,i[0])}})),Z().info(dn,"evaluation:",i),i}))},n.aJ=function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],e={};return this.Ygt.forEach((function(u){var o=u.boundProperties,s=u.element;r&&!n.RPt(r,s)||o.forEach((function(r){var u=t[r.expressionString];if(void 0!==u){var o=n.kPt(r,s,u);if(o){var a=s.tagName,l=r.expressionString,f=r.property,c=o.actual,h=o.expected;e["".concat(a,"[").concat(f,"]").concat(h,":").concat(c)]=!0,i&&H().warn(dn,"Default value (".concat(c,") does not match first ")+"result (".concat(h,") for <").concat(a," [").concat(f,']="')+"".concat(l,'">. We recommend writing expressions with ')+"matching default values, but this can be safely ignored if intentional.")}}}))})),Object.keys(e)},n.RPt=function(t,n){for(var r=0;r<t.length;r++)if(t[r].contains(n))return!0;return!1},n.jPt=function(t,n){var r=[];return t.forEach((function(t){var i=t.expressionString,u=t.previousResult,o=n[i];void 0===o||function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;if(!isFinite(r)||r<0)throw new Error("Invalid depth: "+r);if(t===n)return!0;for(var i=[{a:t,b:n,depth:r}];i.length>0;){var u=i.shift(),o=u.a,s=u.b,l=u.depth;if(l>0){if(e(o)!==e(s))return!1;if(a(o)&&a(s)){if(o.length!==s.length)return!1;for(var f=0;f<o.length;f++)i.push({a:o[f],b:s[f],depth:l-1});continue}if(o&&s&&"object"===e(o)&&"object"===e(s)){var c=Object.keys(o),h=Object.keys(s);if(c.length!==h.length)return!1;for(var v=0,d=c;v<d.length;v++){var p=d[v];i.push({a:o[p],b:s[p],depth:l-1})}continue}}if(o!==s)return!1}return!0}(o,u,20)||(t.previousResult=o,r.push({boundProperty:t,newValue:o}))})),r},n.lPt=function(t,n){var r=this,i=[];return this.Ygt.forEach((function(e){if((!n.skipAmpState||"AMP-STATE"!==e.element.tagName)&&(!n.constrain||n.constrain.some((function(t){return t.contains(e.element)})))){var u=e.boundProperties,o=e.element,s=r.jPt(u,t);n.evaluateOnly||i.push(r.IPt(o,s))}})),Promise.all(i)},n.IPt=function(t,n){var r=this;return 0===n.length?R():this.Ph.mutateElement(t,(function(){var i,e,u=m();if(n.forEach((function(n){var o=n.boundProperty,s=n.newValue,a=o.property,l=r.NPt(o,t,s);l&&(u[l.name]=l.value,"width"==a?i=P(s)?Number(s):i:"height"==a&&(e=P(s)?Number(s):e)),r.UPt(t,a)})),void 0===i&&void 0===e||r.Ph.forceChangeSize(t,e,i),"function"==typeof t.mutatedAttributesCallback)try{t.mutatedAttributesCallback(u)}catch(n){var o=H().createError("%s: Applying expression results (%s) failed with error,",dn,JSON.stringify(u),n);r.xPt(o,t)}}))},n.UPt=function(t,n){var r=mn[t.tagName];if(r&&r[n]){var i="OPTION"===t.tagName?L(t,"SELECT"):t;if(i){var e=bt(this.Hgt,"amp:form-value-change",null,{bubbles:!0});i.dispatchEvent(e)}}},n.NPt=function(t,n,r){var i=t.property,u=n.tagName;switch(i){case"defaulttext":n.textContent=String(r);break;case"text":var o=String(r);"TITLE"===u&&n.parentNode===this.Hgt.document.head&&(this.Hgt.document.title=o),"TEXTAREA"===u?n.value=o:n.textContent=o;break;case"class":for(var s=[],a=0;a<n.classList.length;a++){var l=n.classList[a];pn.test(l)&&s.push(l)}if(Array.isArray(r)||"string"==typeof r)n.setAttribute("class",s.concat(r).join(" "));else if(null===r)n.setAttribute("class",s.join(" "));else{var f=H().createError('%s: "%s" is not a valid result for [class].',dn,r);this.xPt(f,n)}break;default:var c="INPUT"===u&&i in n,h=n.getAttribute(i),v=!1;if("boolean"==typeof r?(c&&n[i]!==r&&(n[i]=r,v=!0),r&&""!==h?(n.setAttribute(i,""),v=!0):r||null===h||(n.removeAttribute(i),v=!0),v&&this.LPt(n,i,r)):"object"===e(r)&&null!==r?v=!0:r!==h&&(v=this.CPt(n,i,String(r),c)),v)return{name:i,value:r}}return null},n.LPt=function(t,n,r){if("OPTION"===t.tagName&&"selected"===n&&r&&(u=this.t,tt(u,"platform")).isSafari()){var i=L(t,"select");if(i){var e=s(i.options).indexOf(t);e>=0&&(i.selectedIndex=e)}}var u},n.CPt=function(t,n,r,i){try{return function(t,n,r,i,e){var u=t.tagName.toLowerCase(),o=n.toLowerCase(),s=function(t,n,r){return function(t){return"src"==t||"href"==t||"xlink:href"==t||"srcset"==t}(n)?function(t,n,r,i){var e;Q(!("__amp_source_origin"in B(Ot(e=r).search)),"Source origin is not allowed in %s",e);var u=xt(i),o=Ot(Rt(i));if("href"==n&&!r.startsWith("#"))return jt(r,o);if("src"==n)return"amp-img"==t?cn(r,o,u):jt(r,o);if("srcset"==n){var s;try{s=Dt(r)}catch(t){return H().error("URL-REWRITE","Failed to parse srcset: ",t),r}return s.stringify((function(t){return cn(t,o,u)}))}return r}(t,n,r,self.location):r}(u,o,r);if(xt(self.location)&&"a"===u&&"href"===o){var a=t.getAttribute(o),l="#"===s[0],f=a&&"#"===a[0];l&&!f?(t[fn]||(t[fn]=t.getAttribute("target")),t.removeAttribute("target")):f&&!l&&t.setAttribute("target",t[fn]||"_top")}e&&(t[o]=s),t.setAttribute(o,s)}(t,n,r,0,i),!0}catch(i){var e=H().createError('%s: "%s" is not a valid result for [%]',dn,r,n,i);this.xPt(e,t)}return!1},n.kPt=function(t,n,r){var i,e,u=t.property,o=n.tagName,s=bn[o];if(s&&s.includes(u))return null;switch(u){case"text":i=n.textContent,r=String(r),e=i.trim()===r.trim();break;case"class":i=[];for(var a=0;a<n.classList.length;a++){var l=n.classList[a];pn.test(l)||i.push(l)}var f=[];if(Array.isArray(r))f=r;else if("string"==typeof r){var c=r.trim();c.length>0&&(f=c.split(" "))}else{var h=H().createError('%s: "%s" is not a valid result for [class].',dn,r);this.xPt(h,n)}e=this.DPt(i,f);break;default:i=n.getAttribute(u),e=!0===r?""===i:!1===r?null===i:"number"==typeof r?Number(i)===r:i===r}return e?null:{expected:r,actual:i}},n.Tgt=function(t){var n=this,r=t.target,i=r.parentNode;i&&wn.includes(i.nodeName)||(Z().info(dn,"dom_update:",r),this.mPt([r],[r],"dom_update.end").then((function(){n.SPt("amp:bind:rescan-template")})))},n.mPt=function(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"rescan.slow",e=0;return this.bPt(n).then((function(n){return e=n,r.APt(t)})).then((function(t){Z().info(dn,"%s: delta=%s, total=%s",i,t-e,r.numberOfBindings())}))},n.gPt=function(t,n){return function(t,n,r,i){return t.Worker?(function(t,n,r,i){lt(t=ut(t),t,"amp-worker",r)}(t,0,vn),tt(t,"amp-worker").S(n,r||[],i)):Promise.reject("Worker not supported in window.")}(this.t,t,n,this.Hgt)},n.EPt=function(t,n,r){var i=H().createError("%s %s",n,t.message);return i.stack=t.stack,this.xPt(i,r),i},n.xPt=function(t,n){sn(t,n)},n.DPt=function(t,n){if(t.length!==n.length)return!1;for(var r=(a(t)?t:s(t)).sort(),i=(a(n)?n:s(n)).sort(),e=0;e<t.length;e++)if(r[e]!==i[e])return!1;return!0},n.hPt=function(t){if(void 0===t)return null;try{return j(JSON.stringify(t))}catch(n){Z().error(dn,"Failed to copy JSON ("+t+") with error: "+n)}return null},n.sPt=function(t){if(t)if("string"==typeof t){var n=g(this.Ri,t);H().info(dn,n)}else if(t.nodeType==Node.ELEMENT_NODE){var r=H().assertElement(t);this._Pt(r)}else H().info(dn,'Invalid argument. Pass a JSON expression or an element instead e.g. AMP.printState("foo.bar") or AMP.printState($0) after selecting an element.');else H().info(dn,this.Ri)},n._Pt=function(t){var n=this,r=f(this.Ygt,(function(n){return n.element==t}));if(r<0)H().info(dn,"Element has no bindings:",t);else{var i=[],e=this.Ygt[r].boundProperties;e.forEach((function(t){var r=t.expressionString;i.push(n.fPt(r,n.Ri))})),Promise.all(i).then((function(t){var n=m();e.forEach((function(r,i){var e=r.property;n[e]=t[i]})),H().info(dn,n)}))}},n.aPt=function(t){this.fPt(t,this.Ri).then((function(t){H().info(dn,t)}))},n.initializePromiseForTesting=function(){return this.ePt},n.setStatePromiseForTesting=function(){return this.oPt},n.SPt=function(t){},t}(),gn=function(){function t(t){var n=Y(t.nodeType==Node.DOCUMENT_NODE?t:t.ownerDocument),r=n.documentElement.hasAttribute("i-amphtml-binding");this.FPt=r,this.currentNode=t,this.es=0,this.BPt=r?s(t.querySelectorAll("[i-amphtml-binding]")):[],r&&t.nodeType===Node.ELEMENT_NODE&&t.hasAttribute("i-amphtml-binding")&&this.BPt.unshift(t),this.JPt=r?null:n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,null,!1)}var n=t.prototype;return n.nextNode=function(){if(this.FPt){if(this.es==this.BPt.length)return null;var t=this.BPt[this.es++];return this.currentNode=t,t}var n=this.JPt.nextNode();return null!==n&&(this.currentNode=n),n},n.skipSubtree=function(){if(this.FPt){var t=this.currentNode,n=null;do{n=this.nextNode()}while(null!==n&&t.contains(n));return n}for(var r=this.JPt,i=r.currentNode;i;i=r.parentNode()){var e=r.nextSibling();if(null!==e)return this.currentNode=e,e}return null},t}();t.registerServiceForDoc("bind",yn),t.registerElement("amp-state",Nt),t.registerElement("amp-bind-macro",x)}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-bind-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-carousel",ev:"0.1",l:!0,f:function(t,i){!function(){function i(t,n){return(i=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,n)}function n(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&i(t,n)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function e(t){return(e="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 o(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function s(t,i){if(i&&("object"===e(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return o(t)}function a(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,e=r(t);if(i){var o=r(this).constructor;n=Reflect.construct(e,arguments,o)}else n=e.apply(this,arguments);return s(this,n)}}function u(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function h(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 l(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?h(Object(n),!0).forEach((function(i){u(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}var c=Array.isArray;function f(t){return"string"==typeof t}function v(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);n<i;n++)r[n]=t[n];return r}function p(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,i){if(t){if("string"==typeof t)return v(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=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 m=Object.prototype;function d(t){var i=Object.create(null);return t&&Object.assign(i,t),i}function b(t){return"number"==typeof t&&isFinite(t)}function g(t,i,n,r,e,o,s,a,u,h,l){return t}function x(t){return(t.ownerDocument||t).defaultView}m.hasOwnProperty,m.toString;var y=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function w(t,i,n,r,e){return e||(i?"�":r?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function S(t){return String(t).replace(y,w)}function k(t){return function(t,i){for(var n=[],r=t.firstElementChild;r;r=r.nextElementSibling)void 0,s=void 0,a=void 0,f(o=e=r)?s=o:1==(null==(a=o)?void 0:a.nodeType)&&(s=o.tagName),!(s&&s.toLowerCase().startsWith("i-")||e.nodeType===Node.ELEMENT_NODE&&(e.hasAttribute("placeholder")||e.hasAttribute("fallback")||e.hasAttribute("overflow")))&&n.push(r);var e,o,s,a;return n}(t)}var j={bubbles:!0,cancelable:!0};function E(t){return t.parent&&t.parent!=t}function O(t,i,n){var r=t.hasAttribute(i),e=void 0!==n?n:!r;return e!==r&&(e?t.setAttribute(i,""):t.removeAttribute(i)),e}function M(t,i,n,r){var e=n||{};g(t.ownerDocument);var o=r||j,s=o.bubbles,a=o.cancelable,u=new MessageEvent(i,{data:e,bubbles:s,cancelable:a});t.dispatchEvent(u)}function A(t){return t.hasAttribute("i-amphtml-ssr")}var z,I="amp-carousel-button-prev",T="amp-carousel-button-next",N="i-amphtml-carousel-has-controls",R="amp-carousel-slide",P="i-amphtml-slide-item",_="i-amphtml-slides-container",B="i-amphtml-slidescroll-no-snap",C="i-amphtml-slide-item-show",L="i-amphtml-scrollable-carousel-container";function W(){for(var t=0;t<arguments.length;t++)if(!arguments[t])throw new Error("Invalid server render")}function F(t,i){var n=i.className,r=i.enabled,e=i.title,o=Z(t)?"presentation":"button",s=t.ownerDocument.createElement("div");return s.setAttribute("tabindex","0"),s.classList.add("amp-carousel-button",n),s.setAttribute("role",o),s.setAttribute("title",e),U(s,r),t.appendChild(s),s}function U(t,i){t.classList.toggle("amp-disabled",!i),t.setAttribute("aria-disabled",String(!i)),t.setAttribute("tabindex",String(i?0:-1))}function D(t){var i=k(t).length,n=Z(t)?function(t){if(A(t))return function(t){var i=t.querySelector(".".concat(S(L))),n=Array.from(t.querySelectorAll(".".concat(S(R))));return W(i,n),{container:i,cells:n}}(t);var i=t.ownerDocument,n=k(t),r=i.createElement("div");return r.classList.add(L),r.setAttribute("tabindex","-1"),t.appendChild(r),n.forEach((function(t){t.classList.add(R,"amp-scrollable-carousel-slide"),r.appendChild(t)})),{cells:n,container:r}}(t):function(t){var i;if(A(t))return function(t){var i=t.querySelector(".".concat(S(_))),n=Array.from(t.querySelectorAll(".".concat(S(P)))),r=Array.from(t.querySelectorAll(".".concat(S(R))));return W(i,n,r),{slides:r,slidesContainer:i,slideWrappers:n}}(t);var n=t.ownerDocument,r=k(t);t.classList.add("i-amphtml-slidescroll");var e=n.createElement("div");e.setAttribute("tabindex","-1"),e.classList.add(_,B),e.setAttribute("aria-live","polite"),t.appendChild(e);var o=[];return r.forEach((function(t){t.classList.add(R);var i=n.createElement("div");i.classList.add(P),i.appendChild(t),e.appendChild(i),o.push(i)})),null===(i=o[0])||void 0===i||i.classList.add(C),{slidesContainer:e,slides:r,slideWrappers:o}}(t);return l(l({},function(t,i){if(A(t))return function(t){var i=t.querySelector(".".concat(S(I))),n=t.querySelector(".".concat(S(T)));return W(i,n),{prevButton:i,nextButton:n}}(t);var n,r;n=t.ownerDocument,r=n.documentElement,(["⚡4email","amp4email"].some((function(t){return r.hasAttribute(t)}))||t.hasAttribute("controls"))&&t.classList.add(N);var e=t.hasAttribute("loop"),o=i>1?2:e?0:1;return{prevButton:F(t,{className:I,title:G(t,{index:String(e?i:0),total:String(i)}),enabled:t.hasAttribute("loop")}),nextButton:F(t,{className:T,title:H(t,{index:String(o),total:String(i)}),enabled:i>1})}}(t,i)),n)}function H(t,i){var n=t.getAttribute("data-next-button-aria-label")||"Next item in carousel";return X(t,{prefix:n,index:i.index,total:i.total})}function G(t,i){var n=t.getAttribute("data-prev-button-aria-label")||"Previous item in carousel";return X(t,{prefix:n,index:i.index,total:i.total})}function X(t,i){var n=i.index,r=i.prefix,e=i.total;if(Z(t))return r;var o=(t.getAttribute("data-button-count-format")||"(%s of %s)").replace("%s",n).replace("%s",e);return"".concat(r," ").concat(o)}function Z(t){return"slides"!==t.getAttribute("type")}function $(){return z||(z=Promise.resolve(void 0))}var J=function(){var t=this;this.promise=new Promise((function(i,n){t.resolve=i,t.reject=n}))},V="ArrowLeft",Y="ArrowRight",q="fixed",K="fixed-height";function Q(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.needsRootBounds,e=n.rootMargin,o=n.threshold,s=E(i)&&(r||e)?i.document:void 0;return new i.IntersectionObserver(t,{threshold:o,root:s,rootMargin:e})}var tt,it=new WeakMap,nt=new WeakMap;function rt(t,i,n){var r=x(t);if(n){var e=Q((function(t){i(t[t.length-1])}),r,n);return e.observe(t),function(){e.unobserve(t)}}var o=it.get(r);o||it.set(r,o=Q(et,r));var s=nt.get(t);return s||(s=[],nt.set(t,s)),s.push(i),o.observe(t),function(){!function(t,i){var n,r,e,o=nt.get(t);if(o&&(r=i,-1!=(e=(n=o).indexOf(r))&&(n.splice(e,1),1)&&!o.length)){var s=x(t),a=it.get(s);null==a||a.unobserve(t),nt.delete(t)}}(t,i)}}function et(t){for(var i=new Set,n=t.length-1;n>=0;n--){var r=t[n],e=r.target;if(!i.has(e)){i.add(e);var o=nt.get(e);if(o)for(var s=0;s<o.length;s++)(0,o[s])(r)}}}function ot(t){var i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;var n=t.message,r=t.stack,e=new Error(n);for(var o in t)e[o]=t[o];return e.stack=r,e}function st(t){for(var i,n=null,r="",e=p(arguments,!0);!(i=e()).done;){var o=i.value;o instanceof Error&&!n?n=ot(o):(r&&(r+=" "),r+=o)}return n?r&&(n.message=r+": "+n.message):n=new Error(r),n}function at(t){var i,n;null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t)}function ut(t){var i=st.apply(null,arguments);setTimeout((function(){throw at(i),i}))}function ht(t){try{for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return t.apply(null,n)}catch(t){ut(t)}}var lt=["Webkit","webkit","Moz","moz","ms","O","o"],ct={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function ft(t,i,n){if(pt(i))return i;tt||(tt=d());var r=tt[i];if(!r||n){if(r=i,void 0===t[i]){var e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),o=function(t,i){for(var n=0;n<lt.length;n++){var r=lt[n]+i;if(void 0!==t[r])return r}return""}(t,e);void 0!==t[o]&&(r=o)}n||(tt[i]=r)}return r}function vt(t,i,n,r,e){var o=ft(t.style,i,e);if(o){var s,a=r?n+r:n;t.style.setProperty((s=o.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})),lt.some((function(t){return s.startsWith(t+"-")}))?"-".concat(s):s),a)}}function pt(t){return t.startsWith("--")}function mt(t,i){return function(n){return t+(i-t)*n}}var dt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function bt(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return i}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var gt=self.__AMP_LOG;function xt(t,i){throw new Error("failed to call initLogConstructor")}function yt(t){return gt.user||(gt.user=wt()),function(t,i){return i&&i.ownerDocument.defaultView!=t}(gt.user.win,t)?gt.userForEmbed||(gt.userForEmbed=wt()):gt.user}function wt(t){return xt()}function St(){return gt.dev||(gt.dev=xt())}function kt(t,i,n,r,e,o,s,a,u,h,l){return t}function jt(t,i){return zt(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),i)}function Et(t,i){return zt(At(Mt(t)),i)}function Ot(t,i){return It(At(t),i)}function Mt(t){return t.nodeType?(i=x(t),jt(i,"ampdoc")).getAmpDoc(t):t;var i}function At(t){var i=Mt(t);return i.isSingleDoc()?i.win:i}function zt(t,i){kt(Nt(t,i));var n=Tt(t)[i];return n.obj||(kt(n.ctor),kt(n.context),n.obj=new n.ctor(n.context),kt(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function It(t,i){var n=Tt(t)[i];return n?n.promise?n.promise:(zt(t,i),n.promise=Promise.resolve(n.obj)):null}function Tt(t){var i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function Nt(t,i){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!n||!n.ctor)}var Rt=function(t){return i="action",Nt(n=At(Mt(t)),i)?zt(n,i):null;var i,n},Pt=function(t){return function(t,i,n,r){var e=Ot(t,i);if(e)return e;var o=Mt(t);return o.whenExtensionsKnown().then((function(){var t=o.getExtensionVersion(n);return t?jt(o.win,"extensions").waitForExtension(n,t):null})).then((function(n){return n?function(t,i){return function(t,i){var n=It(t,i);if(n)return n;var r,e,o,s,a=Tt(t);return a[i]=(e=(r=new J).promise,o=r.reject,s=r.resolve,e.catch((function(){})),{obj:null,promise:e,resolve:s,reject:o,context:null,ctor:null}),a[i].promise}(At(t),i)}(t,i):null}))}(t,"amp-analytics-instrumentation","amp-analytics")},_t=function(t){return Et(t,"owners")},Bt=function(t){return jt(t,"platform")},Ct=function(t){return zt(t,"timer")},Lt=function(t){return jt(t,"vsync")};function Wt(t,i,n,r){return function(e){return Ft.solveYValueFromXValue(e,0,0,t,i,n,r,1,1)}}var Ft=function(){function t(){}return t.solveYValueFromXValue=function(i,n,r,e,o,s,a,u,h){return t.yc(t.wc(i,n,e,s,u),r,o,a,h)},t.wc=function(i,n,r,e,o){var s=1e-6,a=(i-n)/(o-n);if(a<=0)return 0;if(a>=1)return 1;for(var u=0,h=1,l=0,c=0;c<8;c++){l=t.Ac(a,n,r,e,o);var f=(t.Ac(a+s,n,r,e,o)-l)/s;if(Math.abs(l-i)<s)return a;if(Math.abs(f)<s)break;l<i?u=a:h=a,a-=(l-i)/f}for(var v=0;Math.abs(l-i)>s&&v<8;v++)l<i?(u=a,a=(a+h)/2):(h=a,a=(a+u)/2),l=t.Ac(a,n,r,e,o);return a},t.Ac=function(i,n,r,e,o){if(0==i)return n;if(1==i)return o;var s=t.xc(n,r,i),a=t.xc(r,e,i),u=t.xc(e,o,i);return s=t.xc(s,a,i),a=t.xc(a,u,i),t.xc(s,a,i)},t.yc=function(i,n,r,e,o){if(0==i)return n;if(1==i)return o;var s=t.xc(n,r,i),a=t.xc(r,e,i),u=t.xc(e,o,i);return s=t.xc(s,a,i),a=t.xc(a,u,i),t.xc(s,a,i)},t.xc=function(t,i,n){return t+n*(i-t)},t}(),Ut={LINEAR:function(t){return t},EASE:function(t){return Ft.solveYValueFromXValue(t,0,0,.25,.1,.25,1,1,1)},EASE_IN:function(t){return Ft.solveYValueFromXValue(t,0,0,.42,0,1,1,1,1)},EASE_OUT:function(t){return Ft.solveYValueFromXValue(t,0,0,0,0,.58,1,1,1)},EASE_IN_OUT:function(t){return Ft.solveYValueFromXValue(t,0,0,.42,0,.58,1,1,1)}},Dt={"linear":Ut.LINEAR,"ease":Ut.EASE,"ease-in":Ut.EASE_IN,"ease-out":Ut.EASE_OUT,"ease-in-out":Ut.EASE_IN_OUT};function Ht(t){if(!t)return null;if(f(t)){if(-1!=t.indexOf("cubic-bezier")){var i=t.match(/cubic-bezier\((.+)\)/);if(i){var n=i[1].split(",").map(parseFloat);if(4==n.length){for(var r=0;r<4;r++)if(isNaN(n[r]))return null;return Wt(n[0],n[1],n[2],n[3])}}return null}return Dt[t]}return t}var Gt,Xt="Animation",Zt=function(){},$t=function(){function t(t,i){this.Ec=t,this._o=i||Lt(self),this.Oc=null,this.Tc=[]}t.animate=function(i,n,r,e){return new t(i).setCurve(e).add(0,n,1).start(r)};var i=t.prototype;return i.setCurve=function(t){return t&&(this.Oc=Ht(t)),this},i.add=function(t,i,n,r){return this.Tc.push({delay:t,func:i,duration:n,curve:Ht(r)}),this},i.start=function(t){return new Jt(this._o,this.Ec,this.Tc,this.Oc,t)},t}(),Jt=function(){function t(t,i,n,r,e){this._o=t,this.Ec=i,this.Tc=[];for(var o=0;o<n.length;o++){var s=n[o];this.Tc.push({delay:s.delay,func:s.func,duration:s.duration,curve:s.curve||r,started:!1,completed:!1})}this.Pc=e,this.fa=Date.now(),this.He=!0,this.Ri={};var a=new J;this.Ic=a.promise,this.Oi=a.resolve,this.Sc=a.reject,this.Mc=this._o.createAnimTask(this.Ec,{mutate:this.Rc.bind(this)}),this._o.canAnimate(this.Ec)?this.Mc(this.Ri):(St().warn(Xt,"cannot animate"),this._c(!1,0))}var i=t.prototype;return i.then=function(t,i){return t||i?this.Ic.then(t,i):this.Ic},i.thenAlways=function(t){var i=t||Zt;return this.then(i,i)},i.halt=function(t){this._c(!1,t||0)},i._c=function(t,i){if(this.He){if(this.He=!1,0!=i){this.Tc.length>1&&this.Tc.sort((function(t,i){return t.delay+t.duration-(i.delay+i.duration)}));try{if(i>0)for(var n=0;n<this.Tc.length;n++)this.Tc[n].func(1,!0);else for(var r=this.Tc.length-1;r>=0;r--)this.Tc[r].func(0,!1)}catch(i){St().error(Xt,"completion failed: "+i,i),t=!1}}t?this.Oi():this.Sc()}},i.Rc=function(t){if(this.He){for(var i=Date.now(),n=Math.min((i-this.fa)/this.Pc,1),r=0;r<this.Tc.length;r++){var e=this.Tc[r];!e.started&&n>=e.delay&&(e.started=!0)}for(var o=0;o<this.Tc.length;o++){var s=this.Tc[o];s.started&&!s.completed&&this.kc(s,n)}1==n?this._c(!0,0):this._o.canAnimate(this.Ec)?this.Mc(this.Ri):(St().warn(Xt,"cancel animation"),this._c(!1,0))}},i.kc=function(t,i){var n,r;if(t.duration>0){if(r=n=Math.min((i-t.delay)/t.duration,1),t.curve&&1!=r)try{r=t.curve(n)}catch(t){return St().error(Xt,"step curve failed: "+t,t),void this._c(!1,0)}}else n=1,r=1;1==n&&(t.completed=!0);try{t.func(r,t.completed)}catch(t){return St().error(Xt,"step mutate failed: "+t,t),void this._c(!1,0)}},t}();function Vt(t,i,n,r){var e={detail:n};if(Object.assign(e,r),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,e);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(i,!!e.bubbles,!!e.cancelable,n),o}function Yt(t,i,n,r){return function(t,i,n,r){var e=t,o=n,s=function(t){try{return o(t)}catch(t){var i,n;throw null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t),t}},a=function(){if(void 0!==Gt)return Gt;Gt=!1;try{var t={get capture(){return Gt=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return Gt}(),u=!(null==r||!r.capture);return e.addEventListener(i,s,a?r:u),function(){null==e||e.removeEventListener(i,s,a?r:u),o=null,e=null,s=null}}(t,i,n,r)}var qt=function(){function t(t){var i=t.element,n=t.go,r=t.nextButton,e=t.prevButton;this.el=i,this.Got=n,this.t=x(i),this.mp=e,this.vp=r,this.tit=!1,this.Xot()}var i=t.prototype;return i.Xot=function(){var t,i=this;this.setupButtonInteraction(this.mp,(function(){return i.handlePrev()})),this.setupButtonInteraction(this.vp,(function(){return i.handleNext()})),this.el.hasAttribute("controls")?this.tit=!0:(t=this.t,jt(t,"input")).onMouseDetected((function(t){t&&(i.tit=!0,O(i.el,"i-amphtml-carousel-hide-buttons",!i.tit),i.el.classList.add(N))}),!0)},i.setupButtonInteraction=function(t,i){t.addEventListener("click",i),t.addEventListener("keydown",(function(t){t.defaultPrevented||"Enter"!=t.key&&" "!=t.key||(t.preventDefault(),i())}))},i.setControlsState=function(t){var i=t.next,n=t.prev;U(this.mp,n),U(this.vp,i)},i.hintControls=function(){var t=this;this.tit||Lt(this.t).mutate((function(){var i="i-amphtml-carousel-button-start-hint";t.el.classList.add(i),Ct(t.t).delay((function(){var n;(n=t.el,Et(n,"mutator")).measureMutateElement(t.el,null,(function(){t.el.classList.remove(i),O(t.el,"i-amphtml-carousel-hide-buttons",!t.tit)}))}),4e3)}))},i.updateButtonTitles=function(t,i){this.mp.title=t,this.vp.title=i},i.handlePrev=function(){!this.mp.classList.contains("amp-disabled")&&this.Got(-1,!0,!1)},i.handleNext=function(){!this.vp.classList.contains("amp-disabled")&&this.Got(1,!0,!1)},t}(),Kt="amp-scrollable-carousel",Qt=function(t){n(r,t);var i=a(r);function r(t){var n;return(n=i.call(this,t)).UZ=0,n.Qot=0,n.est=null,n.mb=null,n.GZ=null,n.Yb=null,n.Cd=null,n}var e=r.prototype;return e.isLayoutSupported=function(t){return function(t){return t==q||t==K}(t)},e.isRelayoutNeeded=function(){return!0},e.ost=function(){var t=this;this.ast(),this.mb.addEventListener("scroll",this.$l.bind(this)),this.mb.addEventListener("keydown",this.aX.bind(this)),this.est.forEach((function(i){_t(t.element).setOwner(i,t.element)})),this.registerAction("goToSlide",(function(i){var n=i.args;if(n){var r=parseInt(n.index,10);t.goToSlide(r)}}),1),Rt(this.element).addToAllowlist("amp-carousel","goToSlide",["email"])},e.buildCallback=function(){var t=D(this.element),i=t.cells,n=t.container,r=t.nextButton,e=t.prevButton;this.mb=n,this.est=i,this.Cd=new qt({element:this.element,prevButton:e,nextButton:r,go:this.go.bind(this)}),this.ost()},e.layoutCallback=function(){var t=this;return this.Yb=rt(this.element,(function(i){var n=i.isIntersecting;return t.viewportCallback(n)})),this.ust(this.UZ),this.hst(this.UZ,1),this.Cd.setControlsState({prev:this.lst(),next:this.cst()}),$()},e.unlayoutCallback=function(){var t;return null===(t=this.Yb)||void 0===t||t.call(this),this.Yb=null,!0},e.viewportCallback=function(t){this.fst(this.UZ,this.UZ),t&&this.Cd.hintControls()},e.go=function(t,i){var n=this,r=this.vst(this.UZ,t),e=this.UZ;if(r!=e)if(i){var o=mt(e,r);$t.animate(this.element,(function(t){n.mb.scrollLeft=o(t)}),200,"ease-in-out").thenAlways((function(){n.pst(r)}))}else this.pst(r),this.mb.scrollLeft=r},e.goToSlide=function(t){var i=this,n=this.est.length;if(!isFinite(t)||t<0||t>=n)return this.user().error(Kt,"Invalid [slide] value: %s",t),$();var r=this.UZ,e=r;this.measureMutateElement((function(){e=i.mst(t)}),(function(){if(e!=r){var t=mt(r,e);$t.animate(i.element,(function(n){i.mb.scrollLeft=t(n)}),200,"ease-in-out").thenAlways((function(){i.pst(e)}))}}))},e.mst=function(t){var i=this.element.offsetWidth;return this.est[t].offsetLeft-(i-this.est[t].offsetWidth)/2},e.$l=function(){var t=this.mb.scrollLeft;this.UZ=t,null===this.GZ&&this.AQ(t)},e.aX=function(t){var i=t.key;i!=V&&i!=Y||t.stopPropagation()},e.AQ=function(t){var i=this;this.GZ=Ct(this.win).delay((function(){Math.abs(t-i.UZ)<30?(St().fine(Kt,"slow scrolling: %s - %s",t,i.UZ),i.GZ=null,i.pst(i.UZ)):(St().fine(Kt,"fast scrolling: %s - %s",t,i.UZ),i.AQ(i.UZ))}),100)},e.pst=function(t){this.fst(t,this.Qot),this.ust(t),this.hst(t,Math.sign(t-this.Qot)),this.Qot=t,this.UZ=t,this.Cd.setControlsState({prev:this.lst(),next:this.cst()})},e.vst=function(t,i){var n=this.element.offsetWidth,r=this.mb.scrollWidth,e=t+i*n;return e<0?0:r>=n&&e>r-n?r-n:e},e.dst=function(t,i){for(var n=this.element.offsetWidth,r=0;r<this.est.length;r++){var e=this.est[r];e.offsetLeft+e.offsetWidth>=t&&e.offsetLeft<=t+n&&i(e)}},e.ust=function(t){var i=this;this.dst(t,(function(t){_t(i.element).scheduleLayout(i.element,t)}))},e.hst=function(t,i){var n=this,r=this.vst(t,i);r!=t&&this.dst(r,(function(t){_t(n.element).schedulePreload(n.element,t)}))},e.fst=function(t,i){var n=this,r=[];this.dst(t,(function(t){r.push(t)})),i!=t&&this.dst(i,(function(t){r.includes(t)||_t(n.element).schedulePause(n.element,t)}))},e.lst=function(){return 0!=this.UZ},e.cst=function(){var t=this.element.offsetWidth,i=this.mb.scrollWidth,n=Math.max(i-t,0);return this.UZ!=n},e.interactionNext=function(){this.Cd.handleNext()},e.interactionPrev=function(){this.Cd.handlePrev()},e.goCallback=function(t,i){this.go(t,i)},e.ast=function(){Yt(this.element,"touchmove",(function(t){return t.stopPropagation()}),{passive:!0})},r}(t.BaseElement),ti=/vertical/,ii=new WeakMap,ni=new WeakMap,ri=new WeakMap;function ei(t){var i=ii.get(t);return i||(i=new t.ResizeObserver(oi),ii.set(t,i)),i}function oi(t){for(var i=new Set,n=t.length-1;n>=0;n--){var r=t[n],e=r.target;if(!i.has(e)){i.add(e);var o=ni.get(e);if(o){ri.set(e,r);for(var s=0;s<o.length;s++){var a=o[s],u=a.callback;si(a.type,u,r)}}}}}function si(t,i,n){if(0==t){var r=n.contentRect,e=r.height;ht(i,{width:r.width,height:e})}else if(1==t){var o,s=n.borderBoxSize;if(s)o=s.length>0?s[0]:{inlineSize:0,blockSize:0};else{var a,u,h=n.target,l=x(h),c=ti.test(function(t,i){return t.getComputedStyle(i)||ct}(l,h).writingMode),f=h,v=f.offsetHeight,p=f.offsetWidth;c?(u=p,a=v):(a=p,u=v),o={inlineSize:a,blockSize:u}}ht(i,o)}}var ai="__AMP__EXPERIMENT_TOGGLES",ui="AMP-CAROUSEL",hi=function(t){n(r,t);var i=a(r);function r(t){var n;(n=i.call(this,t))._o=null,n.bst=!1,n.z9=[],n.gst=0,n.stt=null,n.xst=[],n.yst=!1,n.wst=null,n.Sst=!1,n.kst=null,n.jst=!1,n.Est=!1,n.pq=!1,n.Ost=5e3,n.Mst=null,n.Ast=0,n.zst=!1,n.Ist=!1,n.Tst=0,n.Nst=null,n.Rst=0,n.Pst=0,n._st=0,n.Bst=[];var r,e=Bt(n.win);return n.qZ=e.isIos(),n.US=e.isSafari(),n.Ye=null,n.Cst=!!Bt(n.win).getIosVersionString().startsWith("10.3")||!n.qZ&&("amp-carousel-chrome-scroll-snap",r=function(t){var i,n,r,e,o;if(t[ai])return t[ai];t[ai]=d();var s=t[ai];g(s);var a,u=l(l({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(n=t.AMP_EXP)&&void 0!==n?n:(a=(null===(r=t.__AMP_EXP)||void 0===r?void 0:r.textContent)||"{}",JSON.parse(a)));for(var h in u){var f=u[h];"number"==typeof f&&f>=0&&f<=1&&(s[h]=Math.random()<f)}var v=null===(e=t.AMP_CONFIG)||void 0===e?void 0:e["allow-doc-opt-in"];if(c(v)&&v.length){var m=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(m)for(var b,x,y=p((null===(b=m.getAttribute("content"))||void 0===b?void 0:b.split(","))||[],!0);!(x=y()).done;){var w=x.value;v.includes(w)&&(s[w]=!0)}}Object.assign(s,function(t){var i,n="";try{var r;"localStorage"in t&&(n=null!==(r=t.localStorage.getItem("amp-experiment-toggles"))&&void 0!==r?r:"")}catch(t){St().warn("EXPERIMENTS","Failed to retrieve experiments from localStorage.")}for(var e,o=(null===(i=n)||void 0===i?void 0:i.split(/\s*,\s*/g))||[],s=d(),a=p(o,!0);!(e=a()).done;){var u=e.value;u&&("-"==u[0]?s[u.substr(1)]=!1:s[u]=!0)}return s}(t));var S=null===(o=t.AMP_CONFIG)||void 0===o?void 0:o["allow-url-opt-in"];if(c(S)&&S.length)for(var k,j=function(t){var i,n=d();if(!t)return n;for(;i=dt.exec(t);){var r=bt(i[1],i[1]),e=i[2]?bt(i[2].replace(/\+/g," "),i[2]):"";n[r]=e}return n}(t.location.originalHash||t.location.hash),E=p(S,!0);!(k=E()).done;){var O=k.value,M=j["e-".concat(O)];"1"==M&&(s[O]=!0),"0"==M&&(s[O]=!1)}return s}(n.win),!r["amp-carousel-chrome-scroll-snap"]),n.Lst=!1,n.Xb=n.Xb.bind(o(n)),n.Yb=null,n.Cd=null,n}var e=r.prototype;return e.isLayoutSupported=function(t){return function(t){return t==q||t==K||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)},e.isRelayoutNeeded=function(){return!0},e.ost=function(){var t,i=this,n=this.element.getAttribute("autoplay");n&&(this.Mst=parseInt(n,10),t=b(this.Mst),yt().assert(t,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined)),this.Ist&&0!=this.Mst&&this.Wst(),this.registerAction("toggleAutoplay",(function(t){var n=t.args;n&&void 0!==n.toggleOn?i.nit(n.toggleOn):i.nit(!i.pq)}),1)},e.Fst=function(){var t=this;if(this._o=this.getVsync(),this.Ye=Rt(this.element),this.Ye.addToAllowlist(ui,"goToSlide",["email"]),this.bst=null!=function(t,i,n){var r=ft(t.style,"scrollSnapType",void 0);if(r)return pt(r)?t.style.getPropertyValue(r):t.style[r]}(this.element),this.Cst&&(this.bst=!1),this.stt.classList.toggle(B,this.Cst),this.bst){var i=this.win.document.createElement("div");i.classList.add("i-amphtml-carousel-start-marker"),this.stt.appendChild(i);var n=this.win.document.createElement("div");n.classList.add("i-amphtml-carousel-end-marker"),this.stt.appendChild(n)}this.z9.forEach((function(i,n){var r=i.getAttribute("data-slide-id")||n.toString();t.Bst.push(r),_t(t.element).setOwner(i,t.element)})),this.ast(),this.stt.addEventListener("scroll",this.$l.bind(this)),this.stt.addEventListener("keydown",this.aX.bind(this)),Yt(this.stt,"touchmove",this.Ust.bind(this),{passive:!0}),Yt(this.stt,"touchend",this.Dst.bind(this),{passive:!0}),this.registerAction("goToSlide",(function(i){var n=i.args;n&&t.goToSlide(n.index,3)}),1)},e.attachedCallback=function(){(function(t,i,n){var r=t.ownerDocument.defaultView;if(r){var e=ni.get(t);if(e||(e=[],ni.set(t,e),ei(r).observe(t)),!e.some((function(t){return t.callback===n&&0===t.type}))){e.push({type:0,callback:n});var o=ri.get(t);o&&setTimeout((function(){return si(0,n,o)}))}}})(this.element,0,this.Xb)},e.detachedCallback=function(){(function(t,i,n){var r=ni.get(t);if(r&&(function(t,i){for(var r=[],e=0,o=0;o<t.length;o++){var s=t[o];(a=s).callback===n&&0===a.type?r.push(s):(e<o&&(t[e]=s),e++)}var a;e<t.length&&(t.length=e)}(r),0==r.length)){ni.delete(t),ri.delete(t);var e=t.ownerDocument.defaultView;e&&ei(e).unobserve(t)}})(this.element,0,this.Xb)},e.isLoopingEligible=function(){return this.gst>1},e.mutatedAttributesCallback=function(t){var i=t.slide;void 0!==i&&this.goToSlide(i,3)},e.Ust=function(){this.Hst(),this.Sst=!0},e.viewportCallback=function(t){var i;t?(this.nO(),null===(i=this.Cd)||void 0===i||i.hintControls()):this.Hst()},e.interactionNext=function(){this.Cd.handleNext()},e.interactionPrev=function(){this.Cd.handlePrev()},e.goCallback=function(t,i,n){this.go(t,i,n)},e.go=function(t,i,n){var r=n?1:3;this.moveSlide(t,i,r),n?this.nO():this.Hst()},e.Gst=function(t){var i=this;this.wst&&Ct(this.win).cancel(this.wst),this.wst=Ct(this.win).delay((function(){if(i.wst=null,!i.yst&&!i.Sst){var t=i.stt.scrollLeft;i.bst?i.Xst(t,1):i.Zst(t,void 0,3)}}),t)},e.Dst=function(){var t=this.Cst?45:100;this.Sst=!1,this.Gst(t)},e.Xb=function(t){this.Pst=t.width,this.Lst=!0},e.buildCallback=function(){var t=D(this.element),i=t.nextButton,n=t.prevButton,r=t.slideWrappers,e=t.slides,o=t.slidesContainer;this.z9=e,this.stt=o,this.xst=r,this.gst=this.z9.length,this.jst=this.element.hasAttribute("loop"),this.pq=this.element.hasAttribute("autoplay"),this.zst=this.jst&&this.isLoopingEligible(),this.Ist=this.pq&&this.isLoopingEligible(),this.Cd=new qt({element:this.element,go:this.go.bind(this),nextButton:i,prevButton:n}),this.Cd.updateButtonTitles(this.getPrevButtonTitle(),this.getNextButtonTitle()),this.ost(),this.Fst()},e.layoutCallback=function(){var t,i=this;if(this.Yb=rt(this.element,(function(t){var n=t.isIntersecting;return i.viewportCallback(n)})),"[i-amphtml-scale-animation]",(t=this.element).closest?t.closest("[i-amphtml-scale-animation]"):function(t,i,n){var r;for(r=t;r&&void 0!==r;r=r.parentElement)if(i(r))return r;return null}(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-amphtml-scale-animation]")}(t)})))return $();if(this.Lst||(this.Pst=this.stt.clientWidth),null===this.Nst)this.$st(this.Rst);else{var n=yt().assertNumber(this.Nst,"E#19457 this.slideIndex_"),r=this.Jst(n);_t(this.element).scheduleLayout(this.element,this.z9[n]),this.stt.scrollLeft=r,this._st=r}return $()},e.unlayoutCallback=function(){var t;return null===(t=this.Yb)||void 0===t||t.call(this),this.Yb=null,this.Nst=null,!0},e.lst=function(){return this.zst||this.Nst>0},e.cst=function(){return this.zst||this.Nst<this.z9.length-1},e.moveSlide=function(t,i,n){if(null!==this.Nst){var r=this.cst(),e=this.lst();if(1==t&&r||-1==t&&e){var o=this.Nst+t;if(-1==o?o=this.gst-1:o>=this.gst&&(o=0),i){var s=1!=t||e?this.Pst:0;this.Zst(s,t,n)}else this.Vst(o,n)}}},e.$l=function(t){var i=this.stt.scrollLeft;this.qZ||this.US||this.Yst(i);var n=this.bst?200:this.qZ?45:100;this.Gst(n),this._st=i},e.aX=function(t){var i=t.key;i!=V&&i!=Y||t.stopPropagation()},e.Yst=function(t){var i=this,n=this.stt.scrollWidth;-1==this.Tst&&t>=this._st||1==this.Tst&&t<=this._st?this.Zst(t).then((function(){i.Tst=0})):t<0?this.Tst=-1:t+this.Pst>n?this.Tst=1:this.Tst=0},e.Zst=function(t,i,n){var r=this;this.yst=!0;var e=this.qst(t)-this.Nst,o=this.lst(),s=o?this.Pst:0;return 0!=e||1!=i&&-1!=i||(e=i),1==e||-1!=e&&e==-1*(this.gst-1)?s=o?2*this.Pst:this.Pst:-1!=e&&e!=this.gst-1||(s=0),this.Kst(t,s).then((function(){r.Xst(s,n)}))},e.qst=function(t){if(!t&&!this.Pst)return 0;var i=Math.round(t/this.Pst),n=0,r=this.lst(),e=this.cst();r&&e?n=i-1:e?n=i:r&&(n=i-1);var o=this.Nst+n;return this.zst?o<0?this.gst-1:o>=this.gst?0:o:o<0?0:o>=this.gst?this.gst-1:o},e.getPrevButtonTitle=function(){var t=this.hit(this.Nst),i=(null==t?0:t)+1;return G(this.element,{index:String(i),total:String(this.gst)})},e.getNextButtonTitle=function(){var t=this.uit(this.Nst),i=(null==t?this.gst-1:t)+1;return H(this.element,{index:String(i),total:String(this.gst)})},e.Xst=function(t,i){var n=this;if(b(t)&&null!==this.Nst){this.yst=!0;var r=this.qst(t);this._o.mutate((function(){n.Vst(r,i),n._o.mutate((function(){n.yst=!1}))}))}},e.goToSlide=function(t,i){var n=parseInt(t,10);!isFinite(n)||n<0||n>=this.gst?this.user().error(ui,"Invalid [slide] value: ",t):null!==this.Nst?this.Vst(n,i):this.Rst=n},e.hit=function(t){return t-1>=0?t-1:this.zst?this.gst-1:null},e.uit=function(t){return t+1<this.gst?t+1:this.zst?0:null},e.$st=function(t){var i,n,r=this,e=this.gst;if(t<0||t>=e||this.Nst==t)return!1;var o=this.hit(t),s=this.uit(t),a=[];return null!=o&&a.push(o),a.push(t),null!=s&&s!==o&&a.push(s),void 0===this.z9[t]?(St().error(ui,"Attempting to access a non-existant slide %s / %s",t,e),!1):(a.forEach((function(i,n){r.zst&&vt(r.xst[i],"order",n+1),r.xst[i].classList.add(C);var e=_t(r.element);i==t?(e.scheduleLayout(r.element,r.z9[i]),e.scheduleResume(r.element,r.z9[i]),r.z9[i].setAttribute("aria-hidden","false")):(e.schedulePreload(r.element,r.z9[i]),r.z9[i].setAttribute("aria-hidden","true"))})),this.stt.scrollLeft=this.Jst(t),this.vit(t),this.Nst=t,this.Mst&&this.Nst===this.gst-1&&(this.Ast++,this.Ast==this.Mst&&this.Qst()),this.Sat(a),null===(i=this.Cd)||void 0===i||i.setControlsState({prev:this.lst(),next:this.cst()}),null===(n=this.Cd)||void 0===n||n.updateButtonTitles(this.getPrevButtonTitle(),this.getNextButtonTitle()),!0)},e.Vst=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.$st(t);if(n){var r="slideChange",e=Vt(this.win,"slidescroll.".concat(r),{"index":t});this.Ye.trigger(this.element,r,e,i),M(this.element,r,{index:t,actionTrust:i})}},e.Jst=function(t){var i=this.Pst;return(!this.zst&&0==t||this.z9.length<=1)&&(i=0),i},e.Sat=function(t){for(var i=this.gst,n=0;n<i;n++)this.xst[n].classList.contains(C)&&(t.includes(n)||(this.zst&&vt(this.xst[n],"order",""),this.xst[n].classList.remove(C),this.z9[n].removeAttribute("aria-hidden")),this.Nst!=n&&_t(this.element).schedulePause(this.element,this.z9[n]))},e.Kst=function(t,i){var n=this;if(t==i)return $();var r=mt(t,i),e=Wt(.8,0,.6,1),o=this.stt;return $t.animate(o,(function(t){n.stt.scrollLeft=r(t)}),80,e).thenAlways()},e.ast=function(){Yt(this.element,"touchmove",(function(t){return t.stopPropagation()}),{passive:!0})},e.vit=function(t){var i=t-this.Nst;if(0!=i){1!==Math.abs(i)&&(i=i<0?1:-1,null===this.Nst&&(i=1));var n={"fromSlide":null===this.Nst?"null":this.Bst[this.Nst],"toSlide":this.Bst[t]};this.b3("amp-carousel-change",n),1==i?this.b3("amp-carousel-next",n):this.b3("amp-carousel-prev",n)}},e.b3=function(t,i){!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];Pt(t).then((function(e){e&&e.triggerEventForTarget(t,i,n,r)}))}(this.element,t,i)},e.Wst=function(){var t=Number(this.element.getAttribute("delay"));t>0&&(this.Ost=Math.max(1e3,t)),this.jst||(this.element.setAttribute("loop",""),this.Est=!0,this.jst=!0,this.zst=!0)},e.nO=function(){this.Ist&&0!=this.Mst&&(this.Hst(),this.kst=Ct(this.win).delay(this.go.bind(this,1,!0,!0),this.Ost))},e.nit=function(t){if(t!=this.Ist){var i=this.Ist;this.pq=t,this.Ist=this.pq&&this.isLoopingEligible(),!i&&this.Ist&&this.Wst(),this.Ist?this.nO():this.Hst()}},e.Hst=function(){null!==this.kst&&(Ct(this.win).cancel(this.kst),this.kst=null)},e.Qst=function(){this.Hst(),this.Est&&(this.element.removeAttribute("loop"),this.Est=!1,this.jst=!1,this.zst=!1),this.pq=!1,this.Ist=this.pq&&this.isLoopingEligible()},r}(t.BaseElement),li=function(t){n(r,t);var i=a(r);function r(){return i.apply(this,arguments)}return r.prototype.upgradeCallback=function(){return Z(this.element)?new Qt(this.element):new hi(this.element)},r}(t.BaseElement);t.registerElement("amp-carousel",li,'.amp-carousel-slide>.i-amphtml-replaced-content{-o-object-fit:contain;object-fit:contain}.amp-carousel-button{position:absolute;box-sizing:border-box;top:50%;height:34px;width:34px;border-radius:2px;opacity:0;pointer-events:all;background-color:rgba(0,0,0,.5);background-position:50% 50%;background-repeat:no-repeat;transform:translateY(-50%);visibility:hidden;z-index:10}.amp-carousel-button:focus{border:1px solid #000;outline:1px solid #fff}.amp-mode-mouse .amp-carousel-button,amp-carousel.i-amphtml-carousel-has-controls .amp-carousel-button,amp-carousel[controls] .amp-carousel-button{opacity:1;visibility:visible}.amp-carousel-button-prev{left:16px;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="%23fff"><path d="M15 8.25H5.87l4.19-4.19L9 3 3 9l6 6 1.06-1.06-4.19-4.19H15z"/></svg>\');background-size:18px 18px}.amp-carousel-button-next{right:16px;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="%23fff"><path d="M9 3 7.94 4.06l4.19 4.19H3v1.5h9.13l-4.19 4.19L9 15l6-6z"/></svg>\');background-size:18px 18px}.i-amphtml-carousel-button-start-hint .amp-carousel-button:not(.amp-disabled){animation:i-amphtml-carousel-hint 1s ease-in 3s 1 normal both}.amp-mode-mouse .i-amphtml-carousel-button-start-hint .amp-carousel-button:not(.amp-disabled){animation:none}@keyframes i-amphtml-carousel-hint{0%{opacity:1;visibility:visible}to{opacity:0;visibility:hidden}}amp-carousel .amp-carousel-button.amp-disabled{animation:none;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}amp-carousel[i-amphtml-carousel-hide-buttons] .amp-carousel-button-next,amp-carousel[i-amphtml-carousel-hide-buttons] .amp-carousel-button-prev{opacity:0;pointer-events:none;visibility:visible!important}.i-amphtml-slides-container{display:-ms-flexbox!important;display:flex!important;-ms-flex-wrap:nowrap;flex-wrap:nowrap;height:100%!important;left:0;overflow-x:auto!important;overflow-y:hidden!important;position:absolute!important;top:0;width:100%!important;scroll-snap-type:x mandatory!important;scrollbar-width:none;padding-bottom:20px!important;box-sizing:content-box!important;-webkit-overflow-scrolling:touch!important}.i-amphtml-slides-container::-webkit-scrollbar{display:none!important}.i-amphtml-slides-container.i-amphtml-no-scroll{overflow-x:hidden!important}.i-amphtml-slide-item{-ms-flex-align:center!important;align-items:center!important;display:none!important;-ms-flex:0 0 100%!important;flex:0 0 100%!important;height:100%!important;-ms-flex-pack:center!important;justify-content:center!important;position:relative!important;scroll-snap-align:start!important;width:100%!important}.i-amphtml-slide-item>*{height:100%;width:100%;overflow:hidden!important}.i-amphtml-slide-item-show{display:-ms-flexbox!important;display:flex!important}.i-amphtml-carousel-end-marker,.i-amphtml-carousel-start-marker{background-color:transparent!important;display:block!important;-ms-flex:0 0 1px!important;flex:0 0 1px!important;height:100%!important;position:relative!important;scroll-snap-align:start!important;width:1px!important}.i-amphtml-carousel-start-marker{-ms-flex-order:-1!important;order:-1!important;margin-left:-1px!important}.i-amphtml-carousel-end-marker{-ms-flex-order:100000000!important;order:100000000!important;margin-right:-1px!important}.i-amphtml-slidescroll-no-snap.i-amphtml-slides-container{scroll-snap-type:none!important}.i-amphtml-slidescroll-no-snap .i-amphtml-slide-item{scroll-snap-align:none!important}.i-amphtml-slidescroll-no-snap.i-amphtml-slides-container.i-amphtml-no-scroll{-webkit-overflow-scrolling:auto!important}.amp-scrollable-carousel-slide{display:inline-block!important;margin-left:8px}.amp-scrollable-carousel-slide:first-child{margin-left:0px}.i-amphtml-scrollable-carousel-container{white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important}\n/*# sourceURL=/extensions/amp-carousel/0.1/amp-carousel.css*/')}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-carousel-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-font",ev:"0.1",l:!0,f:function(n,t){!function(){function t(n,i){return(t=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,i)}function i(n){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function e(n,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(n)}Array.isArray;var o=Object.prototype;o.hasOwnProperty,o.toString,self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var u=self.__AMP_LOG;function f(n){return u.user||(u.user=s()),function(n,t){return t&&t.ownerDocument.defaultView!=n}(u.user.win,n)?u.userForEmbed||(u.userForEmbed=s()):u.user}function s(n){return function(n,t){throw new Error("failed to call initLogConstructor")}()}function c(n,t,i,r,e,o,u,f,s,c,a){return n}function a(n,t){c(function(n,t){var i=n.__AMP_SERVICES&&n.__AMP_SERVICES[t];return!(!i||!i.ctor)}(n,t));var i=function(n){var t=n.__AMP_SERVICES;return t||(t=n.__AMP_SERVICES={}),t}(n)[t];return i.obj||(c(i.ctor),c(i.context),i.obj=new i.ctor(i.context),c(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}var h,l=function(n){return a(n,"timer")},d=["Webkit","webkit","Moz","moz","ms","O","o"];function v(n,t,i,r,e){var o=function(n,t,i){if(t.startsWith("--"))return t;h||(h=Object.create(null));var r=h[t];if(!r||i){if(r=t,void 0===n[t]){var e=function(n){return n.charAt(0).toUpperCase()+n.slice(1)}(t),o=function(n,t){for(var i=0;i<d.length;i++){var r=d[i]+t;if(void 0!==n[r])return r}return""}(n,e);void 0!==n[o]&&(r=o)}i||(h[t]=r)}return r}(n.style,t,e);if(o){var u,f=r?i+r:i;n.style.setProperty((u=o.replace(/[A-Z]/g,(function(n){return"-"+n.toLowerCase()})),d.some((function(n){return u.startsWith(n+"-")}))?"-".concat(u):u),f)}}function m(n,t){for(var i in t)v(n,i,t[i])}var y=["sans-serif","serif"],b=function(){function n(n){this.Ki=n,this.Qf=n.win.document,this.mb=null,this.iF=null,this.oF=!1,this.uF=!1}var t=n.prototype;return t.load=function(n,t){var i=this;return this.iF=n,l(this.Ki.win).timeoutPromise(t,this.fF()).then((function(){i.oF=!0,i.sF()}),(function(n){throw i.uF=!0,i.sF(),n}))},t.fF=function(){var n=this;return new Promise((function(t,i){var r=n.iF.fontStyle+" "+n.iF.variant+" "+n.iF.weight+" "+n.iF.size+" '"+n.iF.family+"'";n.cF()?n.Qf.fonts.check(r)?t():n.Qf.fonts.load(r).then((function(){return n.Qf.fonts.load(r)})).then((function(){n.Qf.fonts.check(r)?t():i(new Error("Font could not be loaded, probably due to incorrect @font-face."))})).catch(i):n.aF().then(t,i)}))},t.cF=function(){return"fonts"in this.Qf},t.aF=function(){var n=this;return new Promise((function(t,i){var r,e,o=(r=n.Ki.win,a((e=r).__AMP_TOP||(e.__AMP_TOP=e),"vsync")),u=n.hF(),f=o.createTask({measure:function(){n.oF?t():n.uF?i(new Error("Font loading timed out.")):u.some((function(n){return n.compare()}))?t():f()}});f()}))},t.hF=function(){var n=this,t=this.mb=this.Qf.createElement("div");m(t,{fontSize:"40px",fontVariant:this.iF.variant,fontWeight:this.iF.weight,fontStyle:this.iF.fontStyle,left:"-999px",lineHeight:"normal",margin:0,padding:0,position:"absolute",top:"-999px",visibility:"hidden"});var i=y.map((function(i){return new p(t,n.iF.family,i)}));return this.Ki.getBody().appendChild(t),i},t.sF=function(){var n,t;this.mb&&(null===(t=(n=this.mb).parentElement)||void 0===t||t.removeChild(n)),this.mb=null},n}(),p=function(){function n(n,t,i){var r=n.ownerDocument,e="".concat(t,",").concat(i);this.lF=this.dF(r,i),this.vF=this.dF(r,e),n.appendChild(this.lF),n.appendChild(this.vF)}var t=n.prototype;return t.dF=function(n,t){var i=n.createElement("div");return i.textContent="MAxmTYklsjo190QW",m(i,{float:"left",fontFamily:t,margin:0,padding:0,whiteSpace:"nowrap"}),i},t.compare=function(){var n=Math.abs(this.lF.offsetWidth-this.vF.offsetWidth)>2,t=Math.abs(this.lF.offsetHeight-this.vF.offsetHeight)>2;return n||t},n}(),w="amp-font",g=function(n){!function(n,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),i&&t(n,i)}(s,n);var r,o,u=(r=s,o=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(n){return!1}}(),function(){var n,t=i(r);if(o){var u=i(this).constructor;n=Reflect.construct(t,arguments,u)}else n=t.apply(this,arguments);return e(this,n)});function s(n){var t;return(t=u.call(this,n)).mF="",t.yF="",t.bF="",t.pF="",t.wF=null,t}s.prerenderAllowed=function(){return!0};var c=s.prototype;return c.buildCallback=function(){var n,t;this.mF=(n=this.element.getAttribute("font-family"),"The font-family attribute is required for <amp-font> %s",t=this.element,f().assert(n,"The font-family attribute is required for <amp-font> %s",t,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined)),this.yF=this.element.getAttribute("font-weight")||"400",this.bF=this.element.getAttribute("font-style")||"normal",this.pF=this.element.getAttribute("font-variant")||"normal",this.wF=new b(this.getAmpDoc()),this.gF()},c.gF=function(){var n=this,t={fontStyle:this.bF,variant:this.pF,weight:this.yF,size:"medium",family:this.mF};this.wF.load(t,this.jF()).then((function(){n.SF()})).catch((function(t){n.OF(),f().warn(w,"Font download timed out for "+n.mF)}))},c.SF=function(){var n=this.element.getAttribute("on-load-add-class"),t=this.element.getAttribute("on-load-remove-class");this.EF(n,t)},c.OF=function(){var n=this.element.getAttribute("on-error-add-class"),t=this.element.getAttribute("on-error-remove-class");this.EF(n,t)},c.EF=function(n,t){var i=this.getAmpDoc(),r=i.getRootNode().documentElement||i.getBody();n&&r.classList.add(n),t&&r.classList.remove(t),this.sF()},c.sF=function(){this.wF=null},c.jF=function(){var n,t=parseInt(this.element.getAttribute("timeout"),10);return t="number"!=typeof(n=t)||!isFinite(n)||t<0?3e3:t,Math.max(t-l(this.win).timeSinceStart(),100)},s}(n.BaseElement);n.registerElement(w,g)}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-font-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-form",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function i(t,i){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,i){if(t){if("string"==typeof t)return n(t,i);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){r&&(t=r);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}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 r;function e(){return r||(r=Promise.resolve(void 0))}var u=function(){var t=this;this.promise=new Promise((function(n,i){t.resolve=n,t.reject=i}))};function o(t){return new Promise((function(n){n(t())}))}var s=function(){function t(t){if(this.Z1=new u,this.K1=0,t)for(var n,r=i(t,!0);!(n=r()).done;){var e=n.value;this.add(e)}}var n=t.prototype;return n.add=function(t){var n=this,i=++this.K1;return t.then((function(t){n.K1===i&&n.Z1.resolve(t)}),(function(t){n.K1===i&&n.Z1.reject(t)})),this.Z1.promise},n.then=function(t,n){return this.Z1.promise.then(t,n)},t}();function a(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function c(t){return t?Array.prototype.slice.call(t):[]}var f=Array.isArray;function h(t){return(h="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)}var l=Object.prototype,v=l.hasOwnProperty,d=l.toString;function m(t){return"[object Object]"===d.call(t)}function p(t){var n=Object.create(null);return t&&Object.assign(n,t),n}function b(t,n){return v.call(t,n)}function y(t,n,i,r,e,u,o,s,a,c,f){return t}var w="amp:dom-update",g="amp:form-value-change",x="name";function E(t){return(t.ownerDocument||t).defaultView}var T,O=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function j(t,n,i,r,e){return e||(n?"�":r?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function A(t,n){return t.replace(/^|,/g,"$&".concat(n," "))}function R(t){return String(t).replace(O,j)}function P(t){y(/^[\w-]+$/.test(t))}function S(t,n){return P(n),n=n.toUpperCase(),function(t,i){for(var r=[],e=t.parentElement;e;e=e.parentElement)e.tagName==n&&r.push(e);return r}(t)}function I(t){var n;null===(n=t.parentElement)||void 0===n||n.removeChild(t)}function k(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function _(t,n){t.insertBefore(n,t.firstChild)}function N(t,n){for(var i=t.length,r=0;r<i;r++)n(t[r],r)}function U(t){return t.__AMP_FORM||null}function M(t){for(var n=t.elements,i={},r=/^(?:input|select|textarea)$/i,e=/^(?:submit|button|image|file|reset)$/i,u=/^(?:checkbox|radio)$/i,o=function(t){var o=n[t],s=o.checked,a=o.multiple,c=o.name,f=o.options,h=o.tagName,l=o.type,v=o.value;return!c||X(o)||!r.test(h)||e.test(l)||u.test(l)&&!s?"continue":(void 0===i[c]&&(i[c]=[]),a?(N(f,(function(t){t.selected&&i[c].push(t.value)})),"continue"):void i[c].push(v))},s=0;s<n.length;s++)o(s);var a=C(t);if(null!=a&&a.name){var c=a.name,f=a.value;void 0===i[c]&&(i[c]=[]),i[c].push(f)}return Object.keys(i).forEach((function(t){0==i[t].length&&delete i[t]})),i}function C(t){var n=t.elements,i=t.ownerDocument.activeElement,r=c(n).filter(F);return r.includes(i)?i:r[0]||null}function F(t){var n=t,i=n.tagName,r=n.type;return"BUTTON"==i||"submit"==r}function X(t){return t.disabled||S(t,"fieldset").some((function(t){return t.disabled}))}function D(t){var n=t,i=t;switch(t.type){case"select-multiple":case"select-one":return c(n.options).every((function(t){var n=t.defaultSelected;return t.selected===n}));case"checkbox":case"radio":return i.checked===i.defaultChecked;default:var r=i.defaultValue;return i.value===r}}var L=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function $(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return n}}function z(t){var n,i=p();if(!t)return i;for(;n=L.exec(t);){var r=$(n[1],n[1]),e=n[2]?$(n[2].replace(/\+/g," "),n[2]):"";i[r]=e}return i}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var G=self.__AMP_LOG;function V(t,n){throw new Error("failed to call initLogConstructor")}function q(t){return G.user||(G.user=B()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(G.user.win,t)?G.userForEmbed||(G.userForEmbed=B()):G.user}function B(t){return V()}function H(){return G.dev||(G.dev=V())}function J(t,n,i,r,e,u,o,s,a,c,f){return t}function Z(t,n,i,r,e,u,o,s,a,c,f){return q().assert(t,n,i,r,e,u,o,s,a,c,f)}function K(t,n){return rt(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),n)}function W(t,n){return rt(it(nt(t)),n)}function Y(t,n){var i=it(nt(t));return ot(i,n)?rt(i,n):null}function Q(t,n){return function(t,n){var i=et(t,n);if(i)return i;var r,e,o,s,a=ut(t);return a[n]=(e=(r=new u).promise,o=r.reject,s=r.resolve,e.catch((function(){})),{obj:null,promise:e,resolve:s,reject:o,context:null,ctor:null}),a[n].promise}(it(t),n)}function tt(t,n){return et(it(t),n)}function nt(t){return t.nodeType?(n=E(t),K(n,"ampdoc")).getAmpDoc(t):t;var n}function it(t){var n=nt(t);return n.isSingleDoc()?n.win:n}function rt(t,n){J(ot(t,n));var i=ut(t)[n];return i.obj||(J(i.ctor),J(i.context),i.obj=new i.ctor(i.context),J(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}function et(t,n){var i=ut(t)[n];return i?i.promise?i.promise:(rt(t,n),i.promise=Promise.resolve(i.obj)):null}function ut(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}function ot(t,n){var i=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!i||!i.ctor)}function st(t,n,i,r){var e=tt(t,n);if(e)return e;var u=nt(t);return u.whenExtensionsKnown().then((function(){var t=u.getExtensionVersion(i);return t?K(u.win,"extensions").waitForExtension(i,t):null})).then((function(i){return i?r?tt(t,n):Q(t,n):null}))}var at,ct=function(t){return nt(t)},ft=function(t){return st(t,"amp-analytics-instrumentation","amp-analytics")},ht=function(t){return W(t,"mutator")},lt=function(t){return Y(t,"url")},vt=function(t){return W(t,"viewport")};function dt(t,n,i,r){var e=t,u=i,o=function(t){try{return u(t)}catch(t){var n,i;throw null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t),t}},s=function(){if(void 0!==at)return at;at=!1;try{var t={get capture(){return at=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return at}(),a=!(null==r||!r.capture);return e.addEventListener(n,o,s?r:a),function(){null==e||e.removeEventListener(n,o,s?r:a),u=null,e=null,o=null}}function mt(t,n,i,r){var e={detail:i};if(Object.assign(e,r),"function"==typeof t.CustomEvent)return new t.CustomEvent(n,e);var u=t.document.createEvent("CustomEvent");return u.initCustomEvent(n,!!e.bubbles,!!e.cancelable,i),u}function pt(t,n,i,r){return dt(t,n,i,r)}function bt(t,n,i,r){var e,u=new Promise((function(r){e=function(t,n,i,r){var e=i,u=dt(t,n,(function(t){try{e(t)}finally{e=null,u()}}),r);return u}(t,n,r,i)}));return u.then(e,e),r&&r(e),u}function yt(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,r)}return i}function wt(t,n){return(wt=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function gt(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&wt(t,n)}function xt(t){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Et(t,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Tt(t){var n=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 i,r=xt(t);if(n){var e=xt(this).constructor;i=Reflect.construct(r,arguments,e)}else i=r.apply(this,arguments);return Et(this,i)}}function Ot(t,n){var i=K(t,"platform");return i.isIos()&&11==i.getMajorVersion()?new St(n):FormData.prototype.entries&&FormData.prototype.delete?new Pt(n):new Rt(n)}var jt,At,Rt=function(){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.Q1=t?M(t):p()}var n=t.prototype;return n.append=function(t,n,i){var r=String(t);this.Q1[r]=this.Q1[r]||[],this.Q1[r].push(String(n))},n.delete=function(t){delete this.Q1[t]},n.entries=function(){var t=this,n=[];Object.keys(this.Q1).forEach((function(i){t.Q1[i].forEach((function(t){return n.push([i,t])}))}));var i=0;return{next:function(){return i<n.length?{value:n[i++],done:!1}:{value:void 0,done:!0}}}},n.getFormData=function(){var t=this,n=new FormData;return Object.keys(this.Q1).forEach((function(i){t.Q1[i].forEach((function(t){return n.append(i,t)}))})),n},t}(),Pt=function(){function t(t){this.t2=new FormData(t),this.n2(t)}var n=t.prototype;return n.n2=function(t){if(t){var n=C(t);n&&n.name&&this.append(n.name,n.value)}},n.append=function(t,n,i){this.t2.append(t,n)},n.delete=function(t){this.t2.delete(t)},n.entries=function(){return this.t2.entries()},n.getFormData=function(){return this.t2},t}(),St=function(t){gt(i,t);var n=Tt(i);function i(t){var i;return i=n.call(this,t),t&&N(t.elements,(function(t){"file"==t.type&&0==t.files.length&&(i.t2.delete(t.name),i.t2.append(t.name,new Blob([]),""))})),i}return i.prototype.append=function(t,n,i){var r;n&&"object"==h(n)&&""==(r=n).name&&0==r.size?this.t2.append(t,new Blob([]),i||""):this.t2.append(t,n)},i}(Pt),It=function(){function t(t){this.Lt=t,this.Ht=0,this.Ft=0,this.Gt=p()}var n=t.prototype;return n.has=function(t){return!!this.Gt[t]},n.get=function(t){var n=this.Gt[t];if(n)return n.access=++this.Ft,n.payload},n.put=function(t,n){this.has(t)||this.Ht++,this.Gt[t]={payload:n,access:this.Ft},this.zt()},n.zt=function(){if(!(this.Ht<=this.Lt)){var t,n=this.Gt,i=this.Ft+1;for(var r in n){var e=n[r].access;e<i&&(i=e,t=r)}void 0!==t&&(delete n[t],this.Ht--)}},t}(),kt=function(){return self.AMP.config.urls}(),_t=new Set(["c","v","a","ad"]),Nt="__amp_source_origin",Ut=function(t){return"string"==typeof t?Mt(t):t};function Mt(t,n){return jt||(jt=self.document.createElement("a"),At=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new It(100))),function(t,n,i){if(i&&i.has(n))return i.get(n);t.href=n,t.protocol||(t.href=t.href);var r,e={href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:"0"==t.port?"":t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:null};"/"!==e.pathname[0]&&(e.pathname="/"+e.pathname),("http:"==e.protocol&&80==e.port||"https:"==e.protocol&&443==e.port)&&(e.port="",e.host=e.hostname),r=t.origin&&"null"!=t.origin?t.origin:"data:"!=e.protocol&&e.host?e.protocol+"//"+e.host:e.href,e.origin=r;var u=e;return i&&i.put(n,u),u}(jt,t,n?null:At)}function Ct(t,n,i){if(!n)return t;var r=t.split("#",2),e=r[0].split("?",2);return e[0]+(e[1]?i?"?".concat(n,"&").concat(e[1]):"?".concat(e[1],"&").concat(n):"?".concat(n))+(r[1]?"#".concat(r[1]):"")}function Ft(t,n){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n))}function Xt(t){var n,i=[];for(var r in t){var e=t[r];if(null!=e){e=f(n=e)?n:[n];for(var u=0;u<e.length;u++)i.push(Ft(r,e[u]))}}return i.join("&")}function Dt(t){return kt.cdnProxyRegex.test(Ut(t).origin)}var Lt,$t=["GET","POST"];function zt(t,n){var i,r=function(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?yt(Object(i),!0).forEach((function(n){a(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):yt(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}({},n);if((i=n.body)&&"function"==typeof i.getFormData){var e=n.body;r.headers["Content-Type"]="multipart/form-data;charset=utf-8",r.body=function(t){for(var n=[],i=t.next();!i.done;i=t.next())n.push(i.value);return n}(e.entries())}return{input:t,init:r}}var Gt=["Webkit","webkit","Moz","moz","ms","O","o"],Vt={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function qt(t,n,i,r,e){var u=function(t,n,i){if(n.startsWith("--"))return n;Lt||(Lt=p());var r=Lt[n];if(!r||i){if(r=n,void 0===t[n]){var e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(n),u=function(t,n){for(var i=0;i<Gt.length;i++){var r=Gt[i]+n;if(void 0!==t[r])return r}return""}(t,e);void 0!==t[u]&&(r=u)}i||(Lt[n]=r)}return r}(t.style,n,e);if(u){var o,s=r?i+r:i;t.style.setProperty((o=u.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})),Gt.some((function(t){return o.startsWith(t+"-")}))?"-".concat(o):o),s)}}function Bt(t,n){void 0===n&&(n=t.hasAttribute("hidden")),n?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Ht(t){return"".concat(t,"px")}function Jt(t,n){return t.getComputedStyle(n)||Vt}var Zt="autoexpand",Kt=function(){function t(t){var n=t.getRootNode();this.zl=n.ownerDocument||n,this.t=J(this.zl.defaultView),this.Ro=vt(t),this.jw=[],this.jw.push(pt(n,"input",(function(t){var n=t.target;"TEXTAREA"==n.tagName&&n.hasAttribute(Zt)&&Wt(n)}))),this.jw.push(pt(n,"mousedown",(function(t){if(1==t.which){var n=t.target;"TEXTAREA"==n.tagName&&function(t){var n=ht(t);Promise.all([n.measureElement((function(){return t.scrollHeight})),bt(t,"mouseup")]).then((function(i){var r=i[0],e=0;return n.measureMutateElement(t,(function(){e=t.scrollHeight}),(function(){!function(t,n,i){n!=i&&t.removeAttribute(Zt)}(t,r,e)}))}))}(n)}})));var i=n.querySelectorAll("textarea");this.jw.push(pt(n,w,(function(){i=n.querySelectorAll("textarea")})));var r,e=function(t,n,i){var r=0,e=null;function u(i){e=null,r=t.setTimeout(o,100),n.apply(null,i)}function o(){r=0,e&&u(e)}return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];r?e=n:u(n)}}(this.t,(function(t){t.relayoutAll&&i.forEach((function(t){"TEXTAREA"==t.tagName&&t.hasAttribute(Zt)&&Wt(t)}))}));this.jw.push(this.Ro.onResize(e)),r=i,Promise.all(c(r).map((function(t){return function(t){return ht(t).measureElement((function(){return t.scrollHeight>t.clientHeight}))}(t).then((function(n){n&&(q().warn("AMP-FORM",'"textarea[autoexpand]" with initially scrolling content will not autoexpand.\nSee https://github.com/ampproject/amphtml/issues/20839'),t.removeAttribute(Zt))}))})))}return t.install=function(n){var i=n.getRootNode(),r=null,e=function(){var e=i.querySelector("textarea[autoexpand]");if(!e||r)return!e&&r?(r.dispose(),void(r=null)):void 0;r=new t(n)};pt(i,w,e),e()},t.prototype.dispose=function(){this.jw.forEach((function(t){return t()}))},t}();function Wt(t){var n=ht(t),i=J(t.ownerDocument.defaultView),r=0,e=0,u=0,o=function(t){var n=J(t.ownerDocument),i=J(n.defaultView),r=J(n.body),e=ht(t),u=t.cloneNode(!1);u.classList.add("i-amphtml-textarea-clone");var o=0,s=0,a=!1;return e.measureMutateElement(r,(function(){var n=Jt(i,t),r=parseInt(n.getPropertyValue("max-height"),10);o=parseInt(n.getPropertyValue("width"),10),a=isNaN(r)||t.scrollHeight<r}),(function(){a&&(t.scrollTop=0),qt(u,"width",Ht(o)),n.body.appendChild(u)})).then((function(){return e.measureMutateElement(r,(function(){s=u.scrollHeight}),(function(){I(u)}))})).then((function(){return s}))}(t);return n.measureMutateElement(t,(function(){var n=Jt(i,t);e=t.scrollHeight;var o=parseInt(n.getPropertyValue("max-height"),10);u=isNaN(o)?1/0:o,r="content-box"==n.getPropertyValue("box-sizing")?-parseInt(n.getPropertyValue("padding-top"),10)-parseInt(n.getPropertyValue("padding-bottom"),10):parseInt(n.getPropertyValue("border-top-width"),10)+parseInt(n.getPropertyValue("border-bottom-width"),10)}),(function(){return o.then((function(n){var o=n+r;t.classList.toggle("i-amphtml-textarea-max",o>u);var s="iAmphtmlHasExpanded"in t.dataset,a=/google/i.test(i.navigator.vendor)?3:0;(s||e<=n+a)&&(t.dataset.iAmphtmlHasExpanded="",qt(t,"height",Ht(n+r)))}))}))}var Yt={"INPUT":!0,"SELECT":!0,"TEXTAREA":!0},Qt=function(){function t(t,n){this.i2=t,this.t=n,this.e2=0,this.u2=p(),this.o2=null,this.s2=!1,this.a2=!1,this.Vj(),this.c2()}var n=t.prototype;return n.onSubmitting=function(){this.s2=!0,this.f2()},n.onSubmitError=function(){this.s2=!1,this.f2()},n.onSubmitSuccess=function(){this.s2=!1,this.o2=this.h2(),this.l2(),this.f2()},n.h2=function(){return Ot(this.t,this.i2).getFormData()},n.f2=function(){var t=this.e2>0&&!this.s2;if(t!==this.a2){this.i2.classList.toggle("amp-form-dirty",t);var n=mt(this.t,"amp:form-dirtiness-change",{"isDirty":t},{bubbles:!0});this.i2.dispatchEvent(n)}this.a2=t},n.Vj=function(){this.i2.addEventListener("input",this.v2.bind(this)),this.i2.addEventListener("reset",this.d2.bind(this)),this.i2.addEventListener(g,this.v2.bind(this))},n.c2=function(){for(var t=0;t<this.i2.elements.length;++t)this.m2(this.i2.elements[t]);this.f2()},n.v2=function(t){var n=t.target;this.m2(n),this.f2()},n.d2=function(t){this.l2(),this.f2()},n.m2=function(t){(function(t){var n=t.hidden,i=t.name,r=t.tagName;return!Yt[r]||!i||n||X(t)})(t)||(function(t){switch(t.tagName){case"INPUT":return"checkbox"==t.type||"radio"==t.type?!t.checked:!t.value;case"TEXTAREA":return!t.value;case"SELECT":return!1;default:throw new Error("isFieldEmpty: ".concat(t.tagName," is not a supported field element."))}}(t)||D(t)||this.b2(t)?this.w2(t.name):this.g2(t.name))},n.b2=function(t){if(!this.o2)return!1;var n=t.name,i=t.value;return this.o2.get(n)===i},n.g2=function(t){this.u2[t]||(this.u2[t]=!0,++this.e2)},n.w2=function(t){this.u2[t]&&(this.u2[t]=!1,--this.e2)},n.l2=function(){this.u2=p(),this.e2=0},t}(),tn="submit",nn=1,rn=2,en=1,un=2,on=3,sn={"acceptCharset":{access:nn,attr:"accept-charset"},"accessKey":{access:nn,attr:"accesskey"},"action":{access:nn,type:en},"attributes":{access:rn},"autocomplete":{access:nn,def:"on"},"children":{access:rn},"dataset":{access:rn},"dir":{access:nn},"draggable":{access:nn,type:un,def:!1},"elements":{access:rn},"encoding":{access:rn},"enctype":{access:nn},"hidden":{access:nn,type:on,def:!1},"id":{access:nn,def:""},"lang":{access:nn},"localName":{access:rn},"method":{access:nn,def:"get"},"name":{access:nn},"noValidate":{access:nn,attr:"novalidate",type:on,def:!1},"prefix":{access:rn},"spellcheck":{access:nn},"style":{access:rn},"target":{access:nn,def:""},"title":{access:nn},"translate":{access:nn}},an=function(){function t(){this.fn=null}var n=t.prototype;return n.add=function(t){var n=this;return this.fn||(this.fn=[]),this.fn.push(t),function(){n.remove(t)}},n.remove=function(t){var n,i,r;this.fn&&(i=t,-1!=(r=(n=this.fn).indexOf(i))&&n.splice(r,1))},n.removeAll=function(){this.fn&&(this.fn.length=0)},n.fire=function(t){if(this.fn)for(var n,r=i(this.fn.slice(),!0);!(n=r()).done;)(0,n.value)(t)},n.getHandlerCount=function(){var t,n;return null!==(t=null===(n=this.fn)||void 0===n?void 0:n.length)&&void 0!==t?t:0},t}(),cn=function(){function t(){this.zs=new an}var n=t.prototype;return n.beforeSubmit=function(t){return this.zs.add(t)},n.fire=function(t){this.zs.fire(t)},t}(),fn=function(){function t(t,n){this.Ti=n,this.Ro=vt(t),this._o=K(t.win,"vsync"),this.E2=null,this.T2="",this.Er=!1,this.O2=t.win.document.createElement("div"),Bt(this.O2,!1),this.O2.classList.add("i-amphtml-validation-bubble"),this.O2.__BUBBLE_OBJ=this,t.getBody().appendChild(this.O2)}var n=t.prototype;return n.isActiveOn=function(t){return this.Er&&t==this.E2},n.hide=function(){this.Er&&(this.Er=!1,this.E2=null,this.T2="",this._o.run({measure:void 0,mutate:hn},{bubbleElement:this.O2}))},n.show=function(t,n){if(!this.isActiveOn(t)||n!=this.T2){this.Er=!0,this.E2=t,this.T2=n;var i={message:n,targetElement:t,bubbleElement:this.O2,viewport:this.Ro,id:this.Ti};this._o.run({measure:ln,mutate:vn},i)}},t}();function hn(t){t.bubbleElement.removeAttribute("aria-alert"),t.bubbleElement.removeAttribute("role"),k(t.bubbleElement),Bt(t.bubbleElement,!1)}function ln(t){t.targetRect=t.viewport.getLayoutRect(t.targetElement)}function vn(t){k(t.bubbleElement);var n=t.bubbleElement.ownerDocument.createElement("div");n.id="bubble-message-".concat(t.id),n.textContent=t.message,t.bubbleElement.setAttribute("aria-labeledby",n.id),t.bubbleElement.setAttribute("role","alert"),t.bubbleElement.setAttribute("aria-live","assertive"),t.bubbleElement.appendChild(n),Bt(t.bubbleElement,!0),function(t,n){for(var i in n)qt(t,i,n[i])}(t.bubbleElement,{top:"".concat(t.targetRect.top-10,"px"),left:"".concat(t.targetRect.left+t.targetRect.width/2,"px")})}var dn,mn,pn="__AMP_VALIDATION_",bn="Please match the requested format.",yn=0,wn=function(){function t(t){this.form=t,this.ampdoc=ct(t),this.mutator=ht(t),this.root=this.ampdoc.getRootNode(),this.j2=null}var n=t.prototype;return n.report=function(){},n.onBlur=function(t){},n.onInput=function(t){},n.inputs=function(){return this.form.querySelectorAll("input,select,textarea")},n.checkInputValidity=function(t){if("TEXTAREA"===t.tagName&&t.hasAttribute("pattern")&&(t.checkValidity()||t.validationMessage===bn)){var n=t.getAttribute("pattern"),i=new RegExp("^".concat(n,"$"),"m").test(t.value);t.setCustomValidity(i?"":bn)}return t.checkValidity()},n.checkFormValidity=function(t){return this.A2(t),t.checkValidity()},n.reportFormValidity=function(t){return this.A2(t),t.reportValidity()},n.A2=function(t){var n=this;N(t.elements,(function(t){"TEXTAREA"==t.tagName&&n.checkInputValidity(t)}))},n.fireValidityEventIfNecessary=function(){var t=this.j2;if(this.j2=this.checkFormValidity(this.form),t!==this.j2){var n=mt(E(this.form),this.j2?"valid":"invalid",null,{bubbles:!0});this.form.dispatchEvent(n)}},t}(),gn=function(t){gt(i,t);var n=Tt(i);function i(){return n.apply(this,arguments)}return i.prototype.report=function(){this.reportFormValidity(this.form),this.fireValidityEventIfNecessary()},i}(wn),xn=function(t){gt(i,t);var n=Tt(i);function i(t){var i;i=n.call(this,t);var r="i-amphtml-validation-bubble-".concat(yn++);return i.R2=new fn(i.ampdoc,r),i}var r=i.prototype;return r.report=function(){for(var t=this.inputs(),n=0;n<t.length;n++)if(!this.checkInputValidity(t[n])){t[n].focus(),this.R2.show(t[n],t[n].validationMessage);break}this.fireValidityEventIfNecessary()},r.onBlur=function(t){"submit"!=t.target.type&&this.R2.hide()},r.onInput=function(t){var n=t.target;this.R2.isActiveOn(n)&&(this.checkInputValidity(n)?(n.removeAttribute("aria-invalid"),this.R2.hide()):(n.setAttribute("aria-invalid","true"),this.R2.show(n,n.validationMessage)))},i}(wn),En=function(t){gt(i,t);var n=Tt(i);function i(t){var i;return(i=n.call(this,t)).P2=i.form.id?i.form.id:String(Date.now()+Math.floor(100*Math.random())),i.S2=0,i}var r=i.prototype;return r.reportInput=function(t){var n=function(t){var n=["badInput"];for(var i in t.validity)n.includes(i)||n.push(i);var r=n.filter((function(n){return!0===t.validity[n]}));return r.length?r[0]:null}(t);n&&this.showValidationFor(t,n)},r.I2=function(){return"".concat("i-amphtml-aria-desc-").concat(this.P2,"-").concat(this.S2++)},r.hideAllValidations=function(){for(var t=this.inputs(),n=0;n<t.length;n++)this.hideValidationFor(t[n])},r.getValidationFor=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!t.id)return null;var i=this._2(t,n),r=pn+i;if(!(r in t)){var e="[visible-when-invalid=".concat(i,"]")+"[validation-for=".concat(t.id,"]");t[r]=this.root.querySelector(e)}return t[r]},r._2=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=t.tagName,r=t.validationMessage;return"TEXTAREA"===i&&"customError"===n&&r===bn?"patternMismatch":n},r.showValidationFor=function(t,n){var i=this.getValidationFor(t,n);if(i){i.textContent.trim()||(i.textContent=t.validationMessage),t.__AMP_VISIBLE_VALIDATION=i;var r=i.getAttribute("id");r||(r=this.I2(),i.setAttribute("id",r)),t.setAttribute("aria-invalid","true"),t.setAttribute("aria-describedby",r),this.mutator.mutateElement(i,(function(){return i.classList.add("visible")}))}},r.hideValidationFor=function(t){var n=this.getVisibleValidationFor(t);n&&(delete t.__AMP_VISIBLE_VALIDATION,t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),this.mutator.mutateElement(n,(function(){return n.classList.remove("visible")})))},r.getVisibleValidationFor=function(t){return t.__AMP_VISIBLE_VALIDATION},r.shouldValidateOnInteraction=function(t){throw Error("Not Implemented")},r.onInteraction=function(t){var n=t.target,i=!!n.checkValidity&&this.shouldValidateOnInteraction(n);this.hideValidationFor(n),i&&!this.checkInputValidity(n)&&this.reportInput(n)},r.onBlur=function(t){this.onInteraction(t)},r.onInput=function(t){this.onInteraction(t)},i}(wn),Tn=function(t){gt(i,t);var n=Tt(i);function i(){return n.apply(this,arguments)}var r=i.prototype;return r.report=function(){this.hideAllValidations();for(var t=this.inputs(),n=0;n<t.length;n++)if(!this.checkInputValidity(t[n])){this.reportInput(t[n]),t[n].focus();break}this.fireValidityEventIfNecessary()},r.shouldValidateOnInteraction=function(t){return!!this.getVisibleValidationFor(t)},i}(En),On=function(t){gt(i,t);var n=Tt(i);function i(){return n.apply(this,arguments)}var r=i.prototype;return r.report=function(){this.hideAllValidations();for(var t=null,n=this.inputs(),i=0;i<n.length;i++)this.checkInputValidity(n[i])||(t=t||n[i],this.reportInput(n[i]));t&&t.focus(),this.fireValidityEventIfNecessary()},r.shouldValidateOnInteraction=function(t){return!!this.getVisibleValidationFor(t)},i}(En),jn=function(t){gt(i,t);var n=Tt(i);function i(){return n.apply(this,arguments)}var r=i.prototype;return r.shouldValidateOnInteraction=function(t){return!0},r.onInteraction=function(n){t.prototype.onInteraction.call(this,n),this.fireValidityEventIfNecessary()},i}(En),An=function(t){gt(i,t);var n=Tt(i);function i(){return n.apply(this,arguments)}var r=i.prototype;return r.shouldValidateOnInteraction=function(t){return!0},r.onInteraction=function(n){t.prototype.onInteraction.call(this,n),this.fireValidityEventIfNecessary()},i}(On),Rn="__amp_form_verify",Pn=function(){function t(t){this.i2=t}var n=t.prototype;return n.onCommit=function(){return this.N2(),this.U2()?this.aJ():Promise.resolve({updatedElements:[],errors:[]})},n.aJ=function(){return Promise.resolve({updatedElements:[],errors:[]})},n.U2=function(){for(var t=this.i2.elements,n=0;n<t.length;n++){var i=t[n];if(!i.disabled&&!D(i))return!0}return!1},n.N2=function(){var t=this.i2.elements;t&&N(t,(function(t){t.setCustomValidity("")}))},t}(),Sn=function(t){gt(i,t);var n=Tt(i);function i(){return n.apply(this,arguments)}return i}(Pn),In=function(t){gt(i,t);var n=Tt(i);function i(t,i){var r;return(r=n.call(this,t)).M2=i,r.C2=null,r.F2=[],r}var r=i.prototype;return r.aJ=function(){var t=this,n=this.M2().then((function(){return[]}),(function(t){return function(t){var n=t.response;return n?n.json().then((function(t){return t.verifyErrors||[]}),(function(){return[]})):Promise.resolve([])}(t)}));return this.X2(n).then((function(n){return t.D2(n)}))},r.X2=function(t){var n=this;if(!this.C2){this.C2=new s;var i=function(){return n.C2=null};this.C2.then(i,i)}return this.C2.add(t)},r.D2=function(t){var n=this,i=[],r=this.F2;this.F2=t;for(var e=0;e<t.length;e++){var u=t[e],o=q().assertString(u.name,"Verification errors must have a name property"),s=q().assertString(u.message,"Verification errors must have a message property"),a=q().assertElement(this.i2.querySelector('[name="'.concat(o,'"]')),"Verification error name property must match a field name");a.checkValidity()&&(a.setCustomValidity(s),i.push(a))}var c=r.filter((function(n){return t.every((function(t){return n.name!==t.name}))})).map((function(t){return n.i2.querySelector('[name="'.concat(t.name,'"]'))}));return{updatedElements:i.concat(c),errors:t}},i}(Pn),kn=function(){function t(t,n,i){this.ls=n,this.ty=i,this.qJ=t}var n=t.prototype;return n.isEnabled=function(){var t=this.ls.getAmpDoc();return!(!t.isSingleDoc()||!t.getRootNode().documentElement.hasAttribute("allow-viewer-render-template"))&&this.ls.hasCapability("viewerRenderTemplate")},n.assertTrustedViewer=function(t){return this.ls.isTrustedViewer().then((function(n){Z(n,"Refused to attempt SSR in untrusted viewer: ",t)}))},n.ssr=function(t,n){var i,r=this,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return e||(i=this.ty.maybeFindTemplate(t)),this.assertTrustedViewer(t).then((function(){return r.ls.sendMessageAwaitResponse("viewerRenderTemplate",r.NJ(n,i,e,u))}))},n.applySsrOrCsrTemplate=function(t,n){var i,r=this;return this.isEnabled()?(Z("string"==typeof n.html,"Skipping template rendering due to failed fetch"),i=this.assertTrustedViewer(t).then((function(){return r.ty.findAndSetHtmlForTemplate(t,n.html)}))):i=f(n)?this.ty.findAndRenderTemplateArray(t,n):this.ty.findAndRenderTemplate(t,n),i},n.NJ=function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},e={"type":this.qJ},u="successTemplate",o=i&&i[u]?i[u]:n;o&&(e[u]={"type":"amp-mustache","payload":o.innerHTML});var s="errorTemplate",a=i&&i[s]?i[s]:null;a&&(e[s]={"type":"amp-mustache","payload":a.innerHTML}),r&&Object.assign(e,r);var c={"originalRequest":zt(t.xhrUrl,t.fetchOpt),"ampComponent":e};return c},t}();function _n(t,n,i){if(n[i])return n[i];var r=t.querySelector("style[".concat(i,"], link[").concat(i,"]"));return r?(n[i]=r,r):null}function Nn(t,n){for(var i=t.styleSheets,r=0;r<i.length;r++)if(i[r].ownerNode==n)return!0;return!1}var Un="amp-form",Mn=["amp-selector"],Cn="initial",Fn="verifying",Xn="submitting",Dn="valid",Ln="invalid",$n="AMP-Redirect-To",zn=function(){function t(t,n){var i,r,e=this;try{!function(t){var n,i=((n=E(t)).FormProxy||(n.FormProxy=function(t){function n(t){this.i2=t}var i=n.prototype,r=t.Object,e=r.prototype;return[t.HTMLFormElement,t.EventTarget].reduce((function(t,n){for(var i=n&&n.prototype;i&&i!==e&&!(t.indexOf(i)>=0);)t.push(i),i=r.getPrototypeOf(i);return t}),[]).forEach((function(n){var r=function(r){var u=t.Object.getOwnPropertyDescriptor(n,r);if(!u||r.toUpperCase()==r||r.startsWith("on")||e.hasOwnProperty.call(i,r))return"continue";if("function"==typeof u.value){var o=u.value;i[r]=function(){return o.apply(this.i2,arguments)}}else{var s={};u.get&&(s.get=function(){return u.get.call(this.i2)}),u.set&&(s.set=function(t){return u.set.call(this.i2,t)}),t.Object.defineProperty(i,r,s)}};for(var u in n)r(u)})),n}(n)),n.FormProxy),r=new i(t);"action"in r||function(t,n){var i=t.ownerDocument.defaultView.HTMLFormElement.prototype.cloneNode.call(t,!1),r=function(i){if(i in n||i.toUpperCase()==i||i.startsWith("on"))return"continue";var r=sn[i],e=t[i];if(r)if(r.access==rn){var u;if(e&&e.nodeType){var o=e,s=o.nextSibling,a=o.parentNode;a.removeChild(o);try{u=t[i]}finally{a.insertBefore(o,s)}}else u=e;Object.defineProperty(n,i,{get:function(){return u}})}else if(r.access==nn){var c=r.attr||i;Object.defineProperty(n,i,{get:function(){var i=n.getAttribute(c);if(null==i&&void 0!==r.def)return r.def;if(r.type==un)return"true"===i;if(r.type==on)return null!=i;if(r.type==en){var e=i||"";return lt(t).parse(e).href}return i},set:function(t){r.type==on&&(t=t?"":null),null!=t?n.setAttribute(c,t):n.removeAttribute(c)}})}else J(!1);else Object.defineProperty(n,i,{get:function(){return t[i]},set:function(n){t[i]=n}})};for(var e in i)r(e)}(t,r),t.$p=r}(t)}catch(t){H().error(Un,"form proxy failed to install",t)}!function(t,n){t.__AMP_FORM=n}(t,this),this.Ti=n,this.zl=t.ownerDocument,this.t=this.zl.defaultView,this.je=rt(this.t,"timer"),this.i2=t,this.Ki=ct(this.i2),this.L2=null,this.z2=function(t){return Y(t,"url-replace")}(this.Ki),this.ty=W(this.Ki,"templates"),this.Rt=K(this.t,"xhr"),this.Ty=function(t){return Y(t,"action")}(this.Ki),this.Ph=ht(this.Ki),this.ls=W(this.Ki,"viewer"),this.o1=new kn(Un,this.ls,this.ty),this.vq=(this.i2.getAttribute("method")||"GET").toUpperCase(),this.h=this.i2.getAttribute("target"),this.G2=this.V2("action-xhr"),this.q2=this.V2("verify-xhr"),this.B2=this.H2("enctype"),this.J2=!this.i2.hasAttribute("novalidate"),this.i2.setAttribute("novalidate",""),this.J2||this.i2.setAttribute("amp-novalidate",""),this.i2.classList.add("i-amphtml-form"),this.Ri=Cn;for(var u,o,s=this.i2.elements,a=0;a<s.length;a++){var c=s[a].name;Z(c!=Nt&&c!=Rn,"Illegal input name, %s found: %s",c,s[a])}this.Z2=new Qt(this.i2,this.t),this.wU=function(t){switch(t.getAttribute("custom-validation-reporting")){case"as-you-go":return new jn(t);case"show-all-on-submit":return new On(t);case"interact-and-submit":return new An(t);case"show-first-on-submit":return new Tn(t)}return t.ownerDocument&&void 0===dn&&(dn=!!document.createElement("form").reportValidity),dn?new gn(t):new xn(t)}(this.i2),this.K2=(o=function(){return e.W2()},(u=this.i2).hasAttribute("verify-xhr")?new In(u,o):new Sn(u)),this.Ty.addToAllowlist("FORM",["clear","submit"],["email"]),this.Ty.installActionHandler(this.i2,this.Y2.bind(this)),this.Vj(),this.Q2(),this.t3(),this.n3=null,this.i3=null,this.r3=null,function(t){return Q(t,"form-submit-service")}(t).then((function(t){e.r3=t})),this.e3=this.zl&&(i=this.zl,r=i.documentElement,["⚡4email","amp4email"].some((function(t){return r.hasAttribute(t)})))}var n=t.prototype;return n.V2=function(t){var n=this.i2.getAttribute(t);if(n){var i=lt(this.Ki);i.assertHttpsUrl(n,this.i2,t),Z(!i.isProxyOrigin(n),"form %s should not be on AMP CDN: %s",t,this.i2)}return n},n.H2=function(t){var n=this.i2.getAttribute(t);return"application/x-www-form-urlencoded"===n||"multipart/form-data"===n?n:(null!==n&&q().warn(Un,"Unexpected enctype: ".concat(n,". Defaulting to 'multipart/form-data'.")),"multipart/form-data")},n.getXssiPrefix=function(){return this.i2.getAttribute("xssi-prefix")},n.requestForFormFetch=function(t,n,i,r){var e,u,o={"Accept":"application/json"};if("GET"==n||"HEAD"==n){this.u3();var s=this.o3();r&&r.forEach((function(t){return delete s[t]})),i&&function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=[],e=[];for(e.push({t:t,s:n,d:0});e.length>0;){var u=e.shift(),o=u.d,s=u.s,a=u.t;if(r.includes(s))throw new Error("Source object has a circular reference.");if(r.push(s),a!==s)if(o>i)Object.assign(a,s);else for(var c=0,f=Object.keys(s);c<f.length;c++){var h=f[c],l=s[h];if(b(a,h)){var v=a[h];if(m(l)&&m(v)){e.push({t:v,s:l,d:o+1});continue}}a[h]=l}}}(s,i),e=function(t,n){return Ct(t,Xt(n))}(t,s)}else for(var a in e=t,"application/x-www-form-urlencoded"===this.B2?(u=Xt(this.o3()),o={"Accept":"application/json","Content-Type":"application/x-www-form-urlencoded"}):(J("multipart/form-data"===this.B2),u=Ot(this.t,this.i2)),r&&r.forEach((function(t){return u.delete(t)})),i)u.append(a,i[a]);return{xhrUrl:e,fetchOpt:{"body":u,"method":n,"credentials":"include","headers":o}}},n.setXhrAction=function(t){this.G2=t},n.Y2=function(t){var n=this;return t.satisfiesTrust(2)?"submit"==t.method?this.s3().then((function(){return n.a3(t)})):("clear"===t.method&&this.c3(),null):null},n.s3=function(){if(this.L2)return this.L2;var t=c(this.i2.querySelectorAll(Mn.join(","))).map((function(t){return t.build()}));return this.L2=this.f3(t,2e3)},n.Vj=function(){var t=this;this.Ki.whenNextVisible().then((function(){var n=t.i2.querySelector("[autofocus]");n&&function(t){try{t.focus()}catch(t){}}(n)})),this.i2.addEventListener("submit",this.h3.bind(this),!0),this.i2.addEventListener("blur",(function(n){Bn(n.target),t.wU.onBlur(n)}),!0),this.i2.addEventListener(g,(function(n){Bn(n.target),t.wU.onInput(n)}),!0),this.o1.isEnabled()||this.i2.addEventListener("change",(function(n){t.K2.onCommit().then((function(i){var r=i.errors;i.updatedElements.forEach(Bn),t.wU.onBlur(n),t.Ri===Fn&&(r.length?(t.AA("verify-error"),t.l3({"verifyErrors":r}).then((function(){t.v3("verify-error",r,2)}))):t.AA(Cn))}))})),this.i2.addEventListener("input",(function(n){Bn(n.target),t.wU.onInput(n)}))},n.Q2=function(){var t;(t=this.Ki,st(t,"inputmask","amp-inputmask")).then((function(t){t&&t.install()}))},n.d3=function(t){this.m3(!1,"Form analytics not supported");var n={},i=this.o3();for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n["formFields["+r+"]"]=i[r].join(","));n.formId=this.i2.id;try{this.b3(t,n)}catch(t){H().error(Un,"Sending analytics failed:",t)}},n.a3=function(t){return this.Ri!=Xn&&this.y3()?this.w3(t.trust,null):Promise.resolve(null)},n.c3=function(){this.i2.reset(),this.AA(Cn),this.i2.classList.remove("user-valid"),this.i2.classList.remove("user-invalid"),this.i2.querySelectorAll(".user-valid, .user-invalid").forEach((function(t){t.classList.remove("user-valid"),t.classList.remove("user-invalid")})),this.i2.querySelectorAll(".visible[validation-for]").forEach((function(t){t.classList.remove("visible")})),function(t){var n=document.createElement("input"),i=function(n){t.querySelectorAll(".".concat(R(n))).forEach((function(t){t.classList.remove(n)}))};for(var r in n.validity)i(r)}(this.i2)},n.h3=function(t){return this.Ri!=Xn&&this.y3()?((this.G2||"POST"==this.vq)&&t.preventDefault(),this.w3(3,t)):(t.stopImmediatePropagation(),t.preventDefault(),Promise.resolve(null))},n.w3=function(t,n){var i=this;try{var r={form:this.i2,actionXhrMutator:this.setXhrAction.bind(this)};J(this.r3).fire(r)}catch(t){H().error(Un,"Form submit service failed: %s",t)}var u=this.g3(),o=this.i2.getElementsByClassName("i-amphtml-async-input");if(this.Z2.onSubmitting(),!this.G2&&"GET"==this.vq){if(this.m3(!1,"Non-XHR GETs not supported."),this.u3(),0===o.length){for(var s=0;s<u.length;s++)this.z2.expandInputValueSync(u[s]);var a=!n;return this.x3(a),this.Z2.onSubmitSuccess(),e()}n&&n.preventDefault()}this.AA(Xn);var c=[],f=[];return f.push(this.E3(u)),N(o,(function(t){var n=i.T3(t);t.classList.contains("i-async-require-action")?c.push(n):f.push(n)})),Promise.all(c).then((function(){return i.f3(f,1e4).then((function(){return i.O3(t)}),(function(n){return i.j3(n,t)}))}),(function(n){return i.j3(n,t)}))},n.j3=function(t,n){var i={};return t&&t.message&&(i.error=t.message),this.A3(t,i,n)},n.g3=function(){return this.i2.querySelectorAll('[type="hidden"][data-amp-replace]')},n.O3=function(t){return this.G2?this.R3(t):("POST"==this.vq?this.P3():"GET"==this.vq&&this.x3(!0),e())},n.W2=function(){var t=this;return this.Ri===Xn?e():(this.AA(Fn),this.v3("verify",null,3),this.E3(this.g3()).then((function(){return t.S3()})))},n.R3=function(t){var n,i=this;return this.o1.isEnabled()?n=this.I3(t):(this._3(t),n=this.N3().then((function(n){return i.U3(n,t)}),(function(n){return i.M3(n,t)}))),n},n.I3=function(t){var n=this,i=this.o3();return this.l3(i).then((function(){return n.Ty.trigger(n.i2,tn,null,t)})).then((function(){var t,i,r,e=n.requestForFormFetch(n.G2,n.vq);return e.fetchOpt=function(t,n){var i,r=t||{},e=r.credentials;return y(void 0===e||"include"==e||"omit"==e),r.method=void 0===(i=r.method)?"GET":(i=i.toUpperCase(),y($t.includes(i)),i),r.headers=r.headers||{},y(null!==r.body),r}(e.fetchOpt),e.fetchOpt=function(t,n,i){i=i||{};var r=function(t){return t.origin||Mt(t.location.href).origin}(t);return r==Mt(n).origin&&(i.headers=i.headers||{},i.headers["AMP-Same-Origin"]="true"),i}(n.t,e.xhrUrl,e.fetchOpt),e.xhrUrl=(t=n.t,i=e.xhrUrl,r=e.fetchOpt,y("string"==typeof i),!1!==r.ampCors&&(i=function(t,n){return function(t){var n=z(Mt(t).search);Z(!(Nt in n),"Source origin is not allowed in %s",t)}(n),function(t,n,i,r){return Ct(t,Ft("__amp_source_origin",i),void 0)}(n,0,function(t){return Mt(function(t){if(!Dt(t=Ut(t)))return t.href;var n=t.pathname.split("/"),i=n[1];Z(_t.has(i),"Unknown path prefix in url %s",t.href);var r=n[2],e="s"==r?"https://"+decodeURIComponent(n[3]):"http://"+decodeURIComponent(r);return Z(e.indexOf(".")>0,"Expected a . in origin %s",e),n.splice(1,"s"==r?3:2),e+n.join("/")+function(t,n){if(!t||"?"==t)return"";var i=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),r=t.replace(i,"").replace(/^[?&]/,"");return r?"?"+r:""}(t.search)+(t.hash||"")}(t)).origin}(t.location.href))}(t,i)),i),n.o1.ssr(n.i2,e,n.C3())})).then((function(i){return n.F3(i,t)}),(function(i){var r={};return i&&i.message&&(r.error=i.message),n.A3(i,r,t)}))},n.C3=function(){var t,n,i=this.i2.querySelector("[submit-success]");i&&(t=this.ty.maybeFindTemplate(i));var r=this.i2.querySelector("[submit-error]");return r&&(n=this.ty.maybeFindTemplate(r)),{successTemplate:t,errorTemplate:n}},n.F3=function(t,n){var i=t.init,r=function(t,n){try{return function(t){return JSON.parse(t)}(t)}catch(t){return null==n||n(t),null}}(t.body,(function(t){return q().error(Un,"Failed to parse response JSON: %s",t)}));if(i){var e=i.status;if(e>=300)return this.A3(e,t,n,r)}return this.X3(t,n,r)},n._3=function(t){var n=this;this.d3("amp-form-submit");var i=this.o3();this.l3(i).then((function(){n.Ty.trigger(n.i2,tn,null,t)}))},n.E3=function(t){for(var n=[],i=0;i<t.length;i++)n.push(this.z2.expandInputValueAsync(t[i]));return this.f3(n,100)},n.T3=function(t){var n=this;return t.getImpl().then((function(t){return t.getValue()})).then((function(i){var r,e,u=t.getAttribute(x),o=n.i2.querySelector("input[name=".concat(R(u),"]"));o||(r=n.t.document,e={"name":t.getAttribute(x),"hidden":"true"},o=function(t,n){for(var i in n)t.setAttribute(i,n[i]);return t}(r.createElement("input"),e)),o.setAttribute("value",i),n.i2.appendChild(o)}))},n.N3=function(){return this.M2(this.G2,this.vq)},n.S3=function(){var t=c(this.i2.querySelectorAll("[".concat(R("no-verify"),"]"))).map((function(t){return t.name||t.id}));return this.M2(this.q2,this.vq,a({},Rn,!0),t)},n.M2=function(t,n,i,r){this.m3(!1,"XHRs should be proxied.");var e=this.requestForFormFetch(t,n,i,r);return this.Rt.fetch(e.xhrUrl,e.fetchOpt)},n.D3=function(t){return t-1},n.U3=function(t,n){var i=this;return this.Rt.xssiJson(t,this.getXssiPrefix()).then((function(t){return i.X3(t,n)}),(function(t){return q().error(Un,"Failed to parse response JSON: %s",t)})).then((function(){i.d3("amp-form-submit-success"),i.L3(t)}))},n.X3=function(t,n,i){var r=this;return this.AA("submit-success"),o((function(){r.l3(t||{}).then((function(){var e=r.D3(n);r.v3("submit-success",void 0===i?t:i,e),r.Z2.onSubmitSuccess()}))}))},n.M3=function(t,n){var i,r=this;if(t&&t.response){var e=t;i=this.Rt.xssiJson(e.response,this.getXssiPrefix()).catch((function(){return null}))}else i=Promise.resolve(null);return i.then((function(i){r.A3(t,i,n),r.d3("amp-form-submit-error"),r.L3(t.response)}))},n.A3=function(t,n,i,r){var e=this;return this.AA("submit-error"),q().error(Un,"Form submission failed: %s",t),o((function(){e.l3(n).then((function(){var t=e.D3(i);e.v3("submit-error",void 0===r?n:r,t),e.Z2.onSubmitError()}))}))},n.P3=function(){Z(!1,"Only XHR based (via action-xhr attribute) submissions are supported for POST requests. %s",this.i2)},n.x3=function(t){this.d3("amp-form-submit"),t&&this.i2.submit(),this.AA(Cn)},n.m3=function(t,n){Z(this.o1.isEnabled()===t,"[amp-form]: viewerRenderTemplate | %s",n)},n.u3=function(){Z(0==this.i2.querySelectorAll("input[type=password],input[type=file]").length,"input[type=password] or input[type=file] may only appear in form[method=post]")},n.y3=function(){if(i=this.t.document,void 0===mn&&(mn=!!i.createElement("input").checkValidity),mn){var t=((n=this.i2).querySelectorAll("input,select,textarea,fieldset").forEach((function(t){return qn(t)})),qn(n));if(this.J2)return this.wU.report(),t}var n,i;return!0},n.L3=function(t){if(this.m3(!1,"Redirects not supported."),t&&t.headers){var n=t.headers.get($n);if(n){Z(!this.e3,"Redirects not supported in AMP4Email.",this.i2),Z("_blank"!=this.h,"Redirecting to target=_blank using AMP-Redirect-To is currently not supported, use target=_top instead. %s",this.i2);try{var i=lt(this.Ki);i.assertAbsoluteHttpOrHttpsUrl(n),i.assertHttpsUrl(n,"AMP-Redirect-To","Url")}catch(t){Z(!1,"The `AMP-Redirect-To` header value must be an absolute URL starting with https://. Found %s",n)}(r=this.Ki,W(r,"navigation")).navigateTo(this.t,n,$n)}}var r},n.v3=function(t,n,i){var r=mt(this.t,"".concat(Un,".").concat(t),{"response":n});this.Ty.trigger(this.i2,t,r,i)},n.f3=function(t,n){return Promise.race([Promise.all(t),this.je.promise(n)])},n.b3=function(t,n){!function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];ft(t).then((function(e){e&&e.triggerEventForTarget(t,n,i,r)}))}(this.i2,t,n)},n.o3=function(){return M(this.i2)},n.AA=function(t){var n=this.Ri;this.i2.classList.remove("amp-form-".concat(n)),this.i2.classList.add("amp-form-".concat(t)),this.z3(n),this.Ri=t},n.l3=function(t){var n=this;f(t)&&(t={},q().warn(Un,"Unexpected data type: ".concat(t,". Expected non JSON array.")));var i=this.i2.querySelector("[".concat(this.Ri,"]")),r=e();if(i){var u="rendered-message-".concat(this.Ti);i.setAttribute("role","alert"),i.setAttribute("aria-labeledby",u),i.setAttribute("aria-live","assertive"),this.ty.hasTemplate(i)?r=this.o1.applySsrOrCsrTemplate(J(i),t).then((function(t){var r;return f(t)?1===t.length?r=t[0]:(r=document.createElement("div"),t.forEach((function(t){return r.appendChild(t)}))):r=t,r.id=u,r.setAttribute("i-amphtml-rendered",""),n.Ph.mutateElement(i,(function(){i.appendChild(r);var t=mt(n.t,w,null,{bubbles:!0});i.dispatchEvent(t)}))})):this.Ph.mutateElement(i,(function(){}))}return r},n.z3=function(t){var n=this.i2.querySelector("[".concat(t,"]"));if(n){var i,r=(i=n,P("i-amphtml-rendered"),function(t,n){if(void 0!==T?T:T=function(t){try{var n=t.ownerDocument,i=n.createElement("div"),r=n.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(t){return!1}}(t))return t.querySelector(A(n,":scope"));var i=function(t,n){var i=t.classList,r="i-amphtml-scoped";i.add(r);var e=A(n,".".concat(r)),u=t.querySelectorAll(e);return i.remove(r),u}(t,n)[0];return void 0===i?null:i}(i,"> [".concat("i-amphtml-rendered","]")));r&&I(r)}},n.t3=function(){var t=this;if(!Dt(this.t.location)&&this.i2.hasAttribute("data-initialize-from-url")){var n=["SELECT","TEXTAREA"],i=["color","date","datetime-local","email","hidden","month","number","range","search","tel","text","time","url","week"],r=["checkbox","radio"],e=function(t,e){if(!t.hasAttribute("data-amp-replace")&&t.hasAttribute("data-allow-initialization")){var o=u[e]||"",s=t.getAttribute("type")||"text",a=t.tagName;if("INPUT"===a){if(i.includes(s.toLocaleLowerCase()))t.value!==o&&(t.value=o);else if(r.includes(s)){var c=t.value===o;t.checked!==c&&(t.checked=c)}}else n.includes(a)&&t.value!==o&&(t.value=o)}},u=z(this.t.location.search);Object.keys(u).forEach((function(n){var i=t.i2.elements[n];i&&(i.nodeType===Node.ELEMENT_NODE?e(i,n):i.length&&i.forEach((function(t){return e(t,n)})))}))}},n.renderTemplatePromiseForTesting=function(){return this.i3},n.xhrSubmitPromiseForTesting=function(){return this.n3},t}();function Gn(t){return t.classList.contains("user-valid")?Dn:t.classList.contains("user-invalid")?Ln:"none"}function Vn(t){if(t.validity)for(var n in t.validity)t.classList.toggle(n,t.validity[n])}function qn(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!t.checkValidity)return!0;var i=!1,r=Gn(t),e=t.checkValidity();if(r!=Dn&&e?(t.classList.add("user-valid"),t.classList.remove("user-invalid"),i=r==Ln):r==Ln||e||(t.classList.add("user-invalid"),t.classList.remove("user-valid"),i=!0),Vn(t),n&&i){for(var u=S(t,"fieldset"),o=0;o<u.length;o++)qn(u[o]);t.form&&qn(t.form)}return e}function Bn(t){qn(t,!0)}var Hn=function(){function t(t){var n=this;this.G3=this.V3(t).then((function(){return n.q3(t)}))}var n=t.prototype;return n.whenInitialized=function(){return this.G3},n.V3=function(t){var n=new u;return function(t,n,i,r,e){var u=t.getHeadNode(),o=function(t,n,i,r){var e=t.__AMP_CSS_SM;e||(e=t.__AMP_CSS_SM=p());var u="amp-extension=".concat(r);if(u){var o=_n(t,e,u);if(o)return"STYLE"==o.tagName&&o.textContent!==n&&(o.textContent=n),o}var s=(t.ownerDocument||t).createElement("style");s.textContent=n;return s.setAttribute("amp-extension",r),function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(i){var r=i.nextSibling;t.insertBefore(n,r)}else _(t,n)}(t,s,_n(t,e,"amp-runtime")),u&&(e[u]=s),s}(u,function(t,n){var i=t.__AMP_CSS_TR;return i?i(n):n}(u,'form.amp-form-submit-error [submit-error],form.amp-form-submit-success [submit-success],form.amp-form-submitting [submitting]{display:block}textarea[autoexpand]:not(.i-amphtml-textarea-max){overflow:hidden!important}.i-amphtml-textarea-clone{visibility:hidden;position:absolute;top:-9999px;left:-9999px;height:0!important}.i-amphtml-validation-bubble{transform:translate(-50%,-100%);background-color:#fff;box-shadow:0 5px 15px 0 rgba(0,0,0,.5);max-width:200px;position:absolute;display:block;box-sizing:border-box;padding:10px;border-radius:5px}.i-amphtml-validation-bubble:after{content:" ";position:absolute;bottom:-8px;left:30px;width:0;height:0;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #fff}[visible-when-invalid]{color:red}\n/*# sourceURL=/extensions/amp-form/0.1/amp-form.css*/'),0,"amp-form");if(i){var s=t.getRootNode();if(Nn(s,o))return i(o),o;var a=setInterval((function(){Nn(s,o)&&(clearInterval(a),i(o))}),4)}}(t,0,n.resolve),n.promise},n.q3=function(t){var n=this;return t.whenReady().then((function(){var i=t.getRootNode();n.B3(i.querySelectorAll("form")),Kt.install(t),n.H3(i),n.J3(i)}))},n.B3=function(t){t&&t.forEach((function(t,n){U(t)||new zn(t,"amp-form-".concat(n))}))},n.H3=function(t){var n=this;t.addEventListener(w,(function(){n.B3(t.querySelectorAll("form"))}))},n.J3=function(t){t.addEventListener("keydown",(function(t){if(!t.defaultPrevented&&"Enter"==t.key&&(t.ctrlKey||t.metaKey)&&"TEXTAREA"===t.target.tagName){var n=t.target.form,i=n?U(n):null;i&&(i.h3(t),t.preventDefault())}}))},t}();t.registerServiceForDoc("form-submit-service",cn),t.registerServiceForDoc(Un,Hn)}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-form-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-fx-collection",ev:"0.1",l:!0,f:function(t,n){!function(){var n;function r(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=new Array(n);r<n;r++)i[r]=t[r];return i}function i(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return r(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function e(t){var n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;var r=t.message,i=t.stack,e=new Error(r);for(var a in t)e[a]=t[a];return e.stack=i,e}function a(t){for(var n,r=null,a="",s=i(arguments,!0);!(n=s()).done;){var u=n.value;u instanceof Error&&!r?r=e(u):(a&&(a+=" "),a+=u)}return r?a&&(r.message=a+": "+r.message):r=new Error(a),r}function s(t){var n,r;null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,t)}function u(t){var n=a.apply(null,arguments);setTimeout((function(){throw s(n),n}))}Array.isArray;var o=Object.prototype;function f(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}o.hasOwnProperty,o.toString,self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var c,h=self.__AMP_LOG;function l(t,n){throw new Error("failed to call initLogConstructor")}function v(t){return h.user||(h.user=d()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(h.user.win,t)?h.userForEmbed||(h.userForEmbed=d()):h.user}function d(t){return l()}function p(t,n,r,i,e,a,s,u,o,f,c){return t}function m(t,n,r,i,e,a,s,u,o,f,c){return v().assert(t,n,r,i,e,a,s,u,o,f,c)}var b,y=["fade-in","fade-in-scroll","float-in-bottom","float-in-top","fly-in-bottom","fly-in-left","fly-in-right","fly-in-top","parallax"],g={FADE_IN:y[0],FADE_IN_SCROLL:y[1],FLOAT_IN_BOTTOM:y[2],FLOAT_IN_TOP:y[3],FLY_IN_BOTTOM:y[4],FLY_IN_LEFT:y[5],FLY_IN_RIGHT:y[6],FLY_IN_TOP:y[7],PARALLAX:y[8]},w=(f(c={},g.FADE_IN,{observes:0,opacity:!0}),f(c,g.FADE_IN_SCROLL,{observes:0,opacity:!0}),f(c,g.FLOAT_IN_BOTTOM,{observes:1,translates:{y:!0}}),f(c,g.FLOAT_IN_TOP,{observes:1,translates:{y:!0}}),f(c,g.FLY_IN_BOTTOM,{observes:0,translates:{y:!0}}),f(c,g.FLY_IN_LEFT,{observes:0,translates:{x:!0}}),f(c,g.FLY_IN_RIGHT,{observes:0,translates:{x:!0}}),f(c,g.FLY_IN_TOP,{observes:0,translates:{y:!0}}),f(c,g.PARALLAX,{observes:0,translates:{y:!0}}),c);function A(t,n){if(t==n)return!1;var r=w[t],i=r.observes,e=r.opacity,a=r.translates,s=w[n],u=s.observes,o=s.opacity,f=s.translates;if(i!==u)return!1;if(e&&o)return!1;if(a&&f){if(a.x&&f.x)return!1;if(a.y&&f.y)return!1}return!0}function x(t){return m(y.indexOf(t)>-1,"Invalid amp-fx type `%s`",t)}var O=["Webkit","webkit","Moz","moz","ms","O","o"],F={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function I(t){var n=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return O.some((function(t){return n.startsWith(t+"-")}))?"-".concat(n):n}function _(t,n,r){if(n.startsWith("--"))return n;b||(b=Object.create(null));var i=b[n];if(!i||r){if(i=n,void 0===t[n]){var e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(n),a=function(t,n){for(var r=0;r<O.length;r++){var i=O[r]+n;if(void 0!==t[i])return i}return""}(t,e);void 0!==t[a]&&(i=a)}r||(b[n]=i)}return i}function T(t,n){var r=t.style;for(var i in n)r.setProperty(I(_(r,i)),String(n[i]),"important")}function L(t,n,r,i,e){var a=_(t.style,n,e);if(a){var s=i?r+i:r;t.style.setProperty(I(a),s)}}function E(t,n){for(var r in n)L(t,r,n[r])}function N(t){return"".concat(t,"px")}function Y(t,n){return t.getComputedStyle(n)||F}function j(t){return"display"in t&&function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var e=a.apply(null,r);e.name=t||e.name,s(e)}("STYLE","`display` style detected. You must use toggle instead."),t}function z(t,n,r,i){var e=S(t),a=R(e);!function(t,n,r,i,e,a){var s=B(t),u=s[r];u||(u=s[r]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:!1}),u.ctor||(u.ctor=i,u.context=n,u.sharedInstance=!1,u.resolve&&X(t,r))}(a,e,n,r),i&&X(a,n)}function M(t,n){return X(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),n)}function P(t,n){return X(R(S(t)),n)}function S(t){return t.nodeType?(r=t,n=(r.ownerDocument||r).defaultView,M(n,"ampdoc")).getAmpDoc(t):t;var n,r}function R(t){var n=S(t);return n.isSingleDoc()?n.win:n}function X(t,n){p(function(t,n){var r=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!r||!r.ctor)}(t,n));var r=B(t)[n];return r.obj||(p(r.ctor),p(r.context),r.obj=new r.ctor(r.context),p(r.obj),r.context=null,r.resolve&&r.resolve(r.obj)),r.obj}function B(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}var C=function(t){return P(t,"mutator")},$=function(t){return P(t,"viewport")};function k(t,n){return!(!t||!n)&&t.left==n.left&&t.top==n.top&&t.width==n.width&&t.height==n.height}var D,V=function(){function t(t,n,r,i){this.element=n,this.De=i,this.fidelity=r,this.turn=0==r?Math.floor(4*Math.random()):0,this.xF=null,this.Ro=$(t)}var n=t.prototype;return n.Ne=function(t){var n=this.xF;if(!(n&&k(n.positionRect,t.positionRect)&&k(n.viewportRect,t.viewportRect))){p(t.positionRect);var r,i,e=t.positionRect;t.relativePos=(r=e,i=t.viewportRect,r.top<i.top?"top":r.bottom>i.bottom?"bottom":"inside"),function(t,n){return t.top<=n.bottom&&n.top<=t.bottom&&t.left<=n.right&&n.left<=t.right}(e,t.viewportRect)?(this.xF=t,this.De(t)):this.xF&&(this.xF=null,t.positionRect=null,this.De(t))}},n.update=function(t){var n=this;if(!t){if(0!=this.turn)return void this.turn--;0==this.fidelity&&(this.turn=4)}var r,i,e=this.Ro.getSize(),a={left:0,top:0,width:r=e.width,height:i=e.height,bottom:0+i,right:0+r,x:0,y:0};this.Ro.getClientRectAsync(this.element).then((function(t){n.Ne({positionRect:t,viewportRect:a,relativePos:null})}))},t}(),G=function(){function t(t){var n=this;this.Ki=t,this.t=t.win,this.RF=[],this._o=M(this.t,"vsync"),this.Ro=$(t),this.jw=[],this.FF=!1,this.IF=!1,this.MF=!1,this.AF=function(t,n,r){var i=0,e=0,a=null;function s(){i=0;var r,u=500-(t.Date.now()-e);u>0?i=t.setTimeout(s,u):(r=a,a=null,n.apply(null,r))}return function(){e=t.Date.now();for(var n=arguments.length,r=new Array(n),u=0;u<n;u++)r[u]=arguments[u];a=r,i||(i=t.setTimeout(s,500))}}(this.t,(function(){n.FF=!1}))}var n=t.prototype;return n.observe=function(t,n,r){var i=this,e=new V(this.Ki,t,n,r);return this.RF.push(e),this.MF||this.BF(),e.update(),function(){for(var t=0;t<i.RF.length;t++)if(i.RF[t]==e)return void i.PF(t)}},n.unobserve=function(t){for(var n=0;n<this.RF.length;n++)if(this.RF[n].element==t)return void this.PF(n);(h.dev||(h.dev=l())).error("POSITION_OBSERVER","cannot unobserve unobserved element")},n.PF=function(t){this.RF.splice(t,1),0==this.RF.length&&this.TF()},n.BF=function(){var t=this;this.MF=!0,this.jw.push(this.Ro.onScroll((function(){t.$F()}))),this.jw.push(this.Ro.onResize((function(){t.qF()})))},n.TF=function(){for(this.MF=!1;this.jw.length;)this.jw.pop()()},n.updateAllEntries=function(t){for(var n=0;n<this.RF.length;n++)this.RF[n].update(t)},n.$F=function(){this.AF(),this.FF=!0,this.IF||this.CF()},n.qF=function(){this.updateAllEntries(!0)},n.CF=function(){var t=this;this.updateAllEntries(),this.IF=!0,this.FF?this._o.measure((function(){t.CF()})):this.IF=!1},t}();function H(t,n,r){p("X"==n||"Y"==n),p(1==Math.abs(r));var i=t.element,e="X"==n,a=r*t.flyInDistance+(e?"vw":"vh");t.initialTrigger||(C(i).mutateElement(i,(function(){var n=Y(t.win,i),r=e?"left":"top",s="auto"===n[r]?"0px":n[r],u={position:"static"===n.position?"relative":n.position,visibility:"visible"};u[r]="calc(".concat(s," - ").concat(a,")"),E(i,j(u))})),t.initialTrigger=!0),E(i,{"transition-duration":t.duration,"transition-timing-function":t.easing,"transform":"translate".concat(n,"(").concat(a,")")})}function U(t){var n=parseFloat(t.getAttribute("data-margin-start"));return n&&m(n>=0&&n<=100,"data-margin-start must be a percentage value and be between 0% and 100% for: %s",t),n}function W(t){return t&&t.positionRect?t.positionRect.top:null}function Z(t,n,r){var i=W(t);return p(1==Math.abs(r)),!!i&&i+r*n.viewportHeight*n.flyInDistance/100<=(1-n.marginStart)*n.viewportHeight}function q(t,n,r){var i=W(t),e=void 0!==r?r:n.viewportHeight;return!!i&&i<=(1-n.marginStart)*e}var J=(f(D={},g.PARALLAX,{userAsserts:function(t){var n=m(t.getAttribute("data-parallax-factor"),"data-parallax-factor=<number> attribute must be provided for: %s",t);m(parseFloat(n)>0,"data-parallax-factor must be a number and greater than 0 for: %s",t)},update:function(t){var n=this,r=W(t);if(p(n.adjustedViewportHeight),r&&!(r>n.adjustedViewportHeight)){var i=-(parseFloat(n.factor)-1),e=(n.adjustedViewportHeight-r)*i;n.offset=e,E(n.element,{transform:"translateY(".concat(n.offset.toFixed(0),"px)")})}}}),f(D,g.FLY_IN_BOTTOM,{userAsserts:U,update:function(t){var n=this;p(n.viewportHeight),Z(t,n,-1)&&H(n,"Y",-1)}}),f(D,g.FLY_IN_LEFT,{userAsserts:U,update:function(t){var n=this;p(n.viewportHeight),q(t,n)&&H(n,"X",1)}}),f(D,g.FLY_IN_RIGHT,{userAsserts:U,update:function(t){var n=this;p(n.viewportHeight),q(t,n)&&H(n,"X",-1)}}),f(D,g.FLY_IN_TOP,{userAsserts:U,update:function(t){var n=this;p(n.viewportHeight),Z(t,n,1)&&H(n,"Y",1)}}),f(D,g.FADE_IN,{userAsserts:U,update:function(t){var n=this;p(n.viewportHeight),q(t,n)&&E(n.element,{"transition-duration":n.duration,"transition-timing-function":n.easing,"opacity":1})}}),f(D,g.FADE_IN_SCROLL,{userAsserts:function(t){var n=U(t),r=parseFloat(t.getAttribute("data-margin-end"));r&&(m(r>=0&&r<=100,"data-margin-end must be a percentage value and be between 0% and 100% for: %s",t),m(r>n,"data-margin-end must be greater than data-margin-start for: %s",t))},update:function(t){var n=this,r=n.marginStart,i=n.viewportHeight;if(p(n.adjustedViewportHeight),q(t,n,n.adjustedViewportHeight)&&(n.hasRepeat||!(n.offset>=1))){var e=1*(i-W(t)-r*i)/((n.marginEnd-r)*i);n.offset=e,E(n.element,{opacity:n.offset})}}}),D);function K(t){var n=parseFloat(t);return isNaN(n)?null:n/100}function Q(t){switch(t){case g.FADE_IN:case g.FLY_IN_RIGHT:case g.FLY_IN_LEFT:case g.FLY_IN_TOP:case g.FLY_IN_BOTTOM:return{"start":.05};case g.FADE_IN_SCROLL:return{"start":0,"end":.5};default:return{"start":0,"end":1}}}var tt=function(){function t(){this.fn=null}var n=t.prototype;return n.add=function(t){var n=this;return this.fn||(this.fn=[]),this.fn.push(t),function(){n.remove(t)}},n.remove=function(t){var n,r,i;this.fn&&(r=t,-1!=(i=(n=this.fn).indexOf(r))&&n.splice(i,1))},n.removeAll=function(){this.fn&&(this.fn.length=0)},n.fire=function(t){if(this.fn)for(var n,r=i(this.fn.slice(),!0);!(n=r()).done;)(0,n.value)(t)},n.getHandlerCount=function(){var t,n;return null!==(t=null===(n=this.fn)||void 0===n?void 0:n.length)&&void 0!==t?t:0},t}(),nt=function(){function t(t){var n,r,i,e=this;this.Ki=t,this.zs=new tt,this.nL=(n=!1,r=null,i=function(){return e.Ls()},function(){if(!n){for(var t=arguments.length,e=new Array(t),a=0;a<t;a++)e[a]=arguments[a];r=i.apply(self,e),n=!0,i=null}return r}),this.rL=0,this.iL=0,this.eL=!0}var n=t.prototype;return n.observe=function(t){this.zs.add(t),this.nL()},n.Ls=function(){var t=this,n=$(this.Ki);n.onScroll((function(){t.aL(n.getScrollTop())}))},n.aL=function(t){this.iL=t;var n=this.iL-this.rL;return(!this.eL&&n>0||this.eL&&n<0)&&(this.rL=this.iL),!this.eL&&this.iL<=36||!this.eL&&n<-20?(this.sL(!0),void(this.rL=this.iL)):void(this.eL&&n>80&&(this.sL(!1),this.rL=this.iL))},n.sL=function(t){this.eL!=t&&(this.eL=t,this.zs.fire(t))},t}();function rt(t,n,r,i,e){if(t[n]==r)return!0;var a=e?" ".concat(e):"",s=it(i);return v().warn("amp-fx","FX element must have `".concat(n,": ").concat(r,"` [").concat(s,"]").concat(a,".")),!1}function it(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.classList,i=t.id,e=t.parentElement,a=t.tagName;if(i)return"#".concat(i);var s=a.toLowerCase(),u=s;if(r.length>0){var o=r.length>1?"...":"";u+=".".concat(r[0]).concat(o)}if(!e)return"".concat(u," (detached)");var f=e.firstElementChild,c=e.lastElementChild;return t==f&&t==c||(t==f?u+=":first-child":t==c&&(u+=":last-child")),n>0?u:"".concat(it(e,n+1)," > ").concat(u)}var et=function(){function t(t,n,r){var i,e,a=this;this.win=t.win,this.pn=function(t){return P(t,"position-observer")}(n),this.Ro=$(n),this.Ph=C(n),this.viewportHeight=null,this.adjustedViewportHeight=null,this.element=n,this.offset=0,this.uL=r,J[r].userAsserts(n),this.factor=parseFloat(n.getAttribute("data-parallax-factor")),this.marginStart=n.hasAttribute("data-margin-start")?K(n.getAttribute("data-margin-start")):Q(r).start,this.marginEnd=n.hasAttribute("data-margin-end")?K(n.getAttribute("data-margin-end")):Q(r).end,this.easing=(i=n.hasAttribute("data-easing")?n.getAttribute("data-easing"):function(t){switch(t){case g.FADE_IN:return"ease-in";case g.FLY_IN_RIGHT:case g.FLY_IN_LEFT:case g.FLY_IN_TOP:case g.FLY_IN_BOTTOM:return"ease-out";default:return"ease-in"}}(r),(e={"linear":"cubic-bezier(0.00, 0.00, 1.00, 1.00)","ease-in-out":"cubic-bezier(0.80, 0.00, 0.20, 1.00)","ease-in":"cubic-bezier(0.80, 0.00, 0.60, 1.00)","ease-out":"cubic-bezier(0.40, 0.00, 0.40, 1.00)"})[i]?e[i]:(m(i.startsWith("cubic-bezier"),"All custom bezier curves should be specified by following the `cubic-bezier()` function notation."),i)),this.duration=n.hasAttribute("data-duration")?n.getAttribute("data-duration"):function(t,n){switch(n){case g.FADE_IN:return"1000ms";case g.FLY_IN_BOTTOM:case g.FLY_IN_TOP:case g.FLY_IN_LEFT:case g.FLY_IN_RIGHT:var r=$(t).getSize().width;return 1e3,e=480,(i=Math.min(1e3,r))<e?i=e:i>1e3&&(i=1e3),200*(i-480)/520+400+"ms";default:return"1ms"}var i,e}(t,r),this.flyInDistance=n.hasAttribute("data-fly-in-distance")?parseFloat(n.getAttribute("data-fly-in-distance")):function(t,n){switch(n){case g.FLY_IN_BOTTOM:case g.FLY_IN_TOP:return $(t).getSize().width<1e3?25:33;case g.FLY_IN_LEFT:case g.FLY_IN_RIGHT:return 100;default:return 1}}(t,r),this.hasRepeat=n.hasAttribute("data-repeat"),this.initialTrigger=!1,this.oL().then((function(t){a.adjustedViewportHeight=t,a.fL()})),this.cL()}var n=t.prototype;return n.fL=function(){var t=this;this.pn.observe(this.element,1,J[this.uL].update.bind(this)),this.Ro.onResize((function(){t.cL(),t.oL().then((function(n){t.adjustedViewportHeight=n}))}))},n.cL=function(){var t=this;this.Ph.measureElement((function(){t.viewportHeight=t.Ro.getHeight()}))},n.oL=function(){var t=this;return this.Ph.measureElement((function(){for(var n=t.Ro.getHeight(),r=0,i=t.element;i;i=i.offsetParent)r+=i.offsetTop;return r<n?r:n}))},t}(),at=function(){function t(t){var r=this;this.Ki=t,this.hL=[],Promise.all([t.whenReady(),t.whenFirstVisible()]).then((function(){var t,i,e,a,s=r.Ki.getRootNode();r.lL(),t=void 0,i=s,e=function(){return r.lL()},a=function(){if(void 0!==n)return n;n=!1;try{var t={get capture(){return n=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return n}(),i.addEventListener("amp:dom-update",(function(t){try{return e(t)}catch(t){var n,r;throw null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,t),t}}),!!a&&t)}))}var r=t.prototype;return r.lL=function(){var t=this;this.Ki.getRootNode().querySelectorAll("[amp-fx]").forEach((function(n){t.hL.includes(n)||function(t){try{for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t.apply(null,r)}catch(t){u(t)}}((function(){return t.vL(n)}))}))},r.vL=function(t){var n=this;p(t.hasAttribute("amp-fx")),p(!this.hL.includes(t)),p(this.Ki.isVisible()),function(t){p(t.hasAttribute("amp-fx"));var n=t.getAttribute("amp-fx").trim().toLowerCase().split(/\s+/);return m(n.length,"No value provided for `amp-fx` attribute"),function(t){for(var n=0;n<t.length;n++)for(var r=t[n],i=n+1;i<t.length;i++){var e=t[i];A(r,e)||(v().warn("amp-fx-collection","%s preset can't be combined with %s preset as the resulting animation isn't valid.",r,e),t.splice(i--,1))}return t}(n.filter(x))}(t).forEach((function(r){n.dL(t,r)})),this.hL.push(t)},r.dL=function(t,n){1!=p(w[n]).observes?function(t,n,r){!function(t){z(t,"position-observer",G)}(t),new et(t,n,r),E(n,j(function(t,n){switch(n){case g.PARALLAX:return{"will-change":"transform"};case g.FADE_IN:case g.FADE_IN_SCROLL:return{"will-change":"opacity","opacity":0};case g.FLY_IN_BOTTOM:case g.FLY_IN_TOP:case g.FLY_IN_LEFT:case g.FLY_IN_RIGHT:return{"will-change":"transform"};default:return{"visibility":"visible"}}}(0,r)))}(this.Ki,t,n):function(t,n,r){if(!(u=n,P(u,"viewer")).isEmbedded()){var i="fx-scroll-dispatch";z(t,i,nt);var e=P(t,i),a=C(n),s=!0;a.measureMutateElement(n,(function(){var i=Y(t.win,n),a=function(t,n,r){var i=n.replace(/^float\-in\-([^\s]+)$/,"$1");return p(i.length>0),rt(r,i,N(0),t,"amp-fx=".concat(n))?i:null}(n,r,i),u=function(t,n){return rt(n,"overflow","hidden",t)&&rt(n,"position","fixed",t)}(n,i);a&&u?e.observe((function(t){!function(t,n,r){var i=0;C(t).measureMutateElement(t,(function(){i=function(t,n,r){if(n)return 0;var i=t.getBoundingClientRect().height;return"top"==r?-i:i}(t,n,r)}),(function(){!function(t,n){T(t,{"transition":"transform ".concat(300,"ms ").concat("ease"),"transform":"translate(0, ".concat(N(n),")")})}(t,i)}))}(n,t,p(a))})):s=!1}),(function(){s&&function(t){T(t,{"will-change":"transform"})}(n)}))}var u}(this.Ki,t,n)},t}();t.registerServiceForDoc("amp-fx-collection",at)}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-fx-collection-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-lightbox",ev:"0.1",l:!0,f:function(t,i){!function(){function i(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);n<i;n++)r[n]=t[n];return r}function n(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,n){if(t){if("string"==typeof t)return i(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}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 r,s=function(){var t=this;this.promise=new Promise((function(i,n){t.resolve=i,t.reject=n}))};function o(t,i){return(o=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function h(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&&o(t,i)}function e(t){return(e=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(t){return(u="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 a(t,i){if(i&&("object"===u(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function f(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=e(t);if(i){var s=e(this).constructor;n=Reflect.construct(r,arguments,s)}else n=r.apply(this,arguments);return a(this,n)}}var c=Array.isArray,l=Object.prototype,v=l.hasOwnProperty;function d(t){var i=Object.create(null);return t&&Object.assign(i,t),i}function m(t,i){return v.call(t,i)}function p(t,i,n,r,s,o,h,e,u,a,f){return t}function b(t){return(t.ownerDocument||t).defaultView}function y(t){try{t.focus()}catch(t){}}function g(t){var i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;var n=t.message,r=t.stack,s=new Error(n);for(var o in t)s[o]=t[o];return s.stack=r,s}function w(t){for(var i,r=null,s="",o=n(arguments,!0);!(i=o()).done;){var h=i.value;h instanceof Error&&!r?r=g(h):(s&&(s+=" "),s+=h)}return r?s&&(r.message=s+": "+r.message):r=new Error(s),r}function x(t){var i,n;null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t)}function k(t){var i=w.apply(null,arguments);setTimeout((function(){throw x(i),i}))}function S(t){try{for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return t.apply(null,n)}catch(t){k(t)}}l.toString;var O,j,A="i-amphtml-element",M=function(t){return t.unmount()};function E(t,i,n,r){for(var s,o=c(s=t)?s:[s],h=0;h<o.length;h++)D(o[h],i,n,r)}function D(t,i,n,r){if(i&&t.classList.contains(A)){var s=t;if(S(r,s),!n){var o=s.getPlaceholder();return void(o&&D(o,!0,!1,r))}}for(var h=t.getElementsByClassName(A),e=null,u=0;u<h.length;u++){var a=h[u];if(n)S(r,a);else{e=e||[];for(var f=!1,c=0;c<e.length;c++)if(e[c].contains(a)){f=!0;break}f||(e.push(a),S(r,a))}}}function C(t){return function(t,i){if(p(1===i.length),p(Array.isArray(i)||m(i,"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=t.firstElementChild;return p(r),p(!r.nextElementSibling),t.removeChild(r),r}(O,t)}var R=["Webkit","webkit","Moz","moz","ms","O","o"],z={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function I(t){var i=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return R.some((function(t){return i.startsWith(t+"-")}))?"-".concat(i):i}function P(t,i,n){if(i.startsWith("--"))return i;j||(j=d());var r=j[i];if(!r||n){if(r=i,void 0===t[i]){var s=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),o=function(t,i){for(var n=0;n<R.length;n++){var r=R[n]+i;if(void 0!==t[r])return r}return""}(t,s);void 0!==t[o]&&(r=o)}n||(j[i]=r)}return r}function T(t,i){var n=t.style;for(var r in i)n.setProperty(I(P(n,r)),String(i[r]),"important")}function Y(t,i,n,r,s){var o=P(t.style,i,s);if(o){var h=r?n+r:n;t.style.setProperty(I(o),h)}}function L(t,i){for(var n in i)Y(t,n,i[n])}function X(t){return"".concat(t,"px")}function _(t){return"display"in t&&function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];var s=w.apply(null,n);s.name=t||s.name,x(s)}("STYLE","`display` style detected. You must use toggle instead."),t}var H=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function B(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return i}}function U(t){var i=(t||self).location;return function(t){var i,n=d();if(!t)return n;for(;i=H.exec(t);){var r=B(i[1],i[1]),s=i[2]?B(i[2].replace(/\+/g," "),i[2]):"";n[r]=s}return n}(i.originalHash||i.hash)}var W="";function G(t){var i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:V(t,U(t)),esm:!1,test:!1,rtvVersion:N(t),ssrReady:!1}}(i)}function N(t){var i;return W||(W=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"01".concat("2402231941000")),W}function V(t,i){var n=i||U(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 F=self.__AMP_LOG;function Z(t,i){throw new Error("failed to call initLogConstructor")}function $(t){return F.user||(F.user=q()),function(t,i){return i&&i.ownerDocument.defaultView!=t}(F.user.win,t)?F.userForEmbed||(F.userForEmbed=q()):F.user}function q(t){return Z()}function J(){return F.dev||(F.dev=Z())}function K(t,i,n,r,s,o,h,e,u,a,f){return t}function Q(t,i){return rt(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),i)}function tt(t,i){return rt(nt(it(t)),i)}function it(t){return t.nodeType?(i=b(t),Q(i,"ampdoc")).getAmpDoc(t):t;var i}function nt(t){var i=it(t);return i.isSingleDoc()?i.win:i}function rt(t,i){K(st(t,i));var n=function(t){var i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}(t)[i];return n.obj||(K(n.ctor),K(n.context),n.obj=new n.ctor(n.context),K(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function st(t,i){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!n||!n.ctor)}var ot,ht=function(t){return tt(t,"owners")},et=function(t){return rt(t,"timer")},ut=function(){function t(t,i){var n=this,r=t.win;if(this.t=r,this.De=i,this.CZ=null,this.To=null,this.BY=-1,this.KY=null,"function"==typeof r.CloseWatcher)try{this.CZ=new r.CloseWatcher}catch(t){J().error("CloseWatcherImpl","CloseWatcher failed:",t)}this.CZ?this.CZ.onclose=function(){i(),n.destroy()}:(this.To=tt(t,"history"),this.To.push((function(){return i()})).then((function(t){n.BY=t})),this.KY=this.QY.bind(this),r.document.documentElement.addEventListener("keydown",this.KY))}var i=t.prototype;return i.signalClosed=function(){this.CZ?this.CZ.signalClosed():this.De&&((0,this.De)(),this.destroy())},i.destroy=function(){this.De=null,this.CZ?(this.CZ.destroy(),this.CZ=null):-1!=this.BY&&(K(this.To).pop(this.BY),this.BY=-1,this.To=null,this.t.document.documentElement.removeEventListener("keydown",this.KY))},i.QY=function(t){"Escape"==t.key&&(t.preventDefault(),this.signalClosed())},t}();function at(t){if(void 0!==ot)return ot;ot=!1;try{var i={get passive(){return ot=!0,!1}};t.addEventListener("test-options",null,i),t.removeEventListener("test-options",null,i)}catch(t){}return ot}var ft=function(){function t(){this.fn=null}var i=t.prototype;return i.add=function(t){var i=this;return this.fn||(this.fn=[]),this.fn.push(t),function(){i.remove(t)}},i.remove=function(t){var i,n,r;this.fn&&(n=t,-1!=(r=(i=this.fn).indexOf(n))&&i.splice(r,1))},i.removeAll=function(){this.fn&&(this.fn.length=0)},i.fire=function(t){if(this.fn)for(var i,r=n(this.fn.slice(),!0);!(i=r()).done;)(0,i.value)(t)},i.getHandlerCount=function(){var t,i;return null!==(t=null===(i=this.fn)||void 0===i?void 0:i.length)&&void 0!==t?t:0},t}(),ct=function(){function t(t,i,n){var r=this;this.je=et(t),this.De=i,this.Ue=n||0,this.ze=-1,this.Le=0,this.He=!1,this.Ge=function(){r.Ve()}}var i=t.prototype;return i.isPending=function(){return-1!=this.ze},i.schedule=function(t){var i=t||this.Ue;this.He&&i<10&&(i=10);var n=Date.now()+i;return(!this.isPending()||n-this.Le<-10)&&(this.cancel(),this.Le=n,this.ze=this.je.delay(this.Ge,i),!0)},i.Ve=function(){this.ze=-1,this.Le=0,this.He=!0,this.De(),this.He=!1},i.cancel=function(){this.isPending()&&(this.je.cancel(this.ze),this.ze=-1)},t}(),lt="__AMP_Gestures",vt=function(t,i,n,r){this.type=t,this.data=i,this.time=n,this.event=r},dt=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.el=t,this.XM=[],this.zm=[],this.wi=[],this.qM=[],this.$M=null;var r=t.ownerDocument.defaultView,s=at(r);this.KM=i||s,this.JM=n,this.QM=!1,this.Ve=new ct(b(t),this.ov.bind(this)),this.tI=new ft,this.iI=Object.create(null),this.nI=this.zp.bind(this),this.rI=this._p.bind(this),this.oI=this.qp.bind(this),this.aI=this.qm.bind(this),this.el.addEventListener("touchstart",this.nI,!!s&&{passive:!0}),this.el.addEventListener("touchend",this.rI),this.el.addEventListener("touchmove",this.oI,!!s&&{passive:!0}),this.el.addEventListener("touchcancel",this.aI),this.sI=!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],s=i[lt];return s||(s=new t(i,n,r),i[lt]=s),s};var i=t.prototype;return i.cleanup=function(){this.el.removeEventListener("touchstart",this.nI),this.el.removeEventListener("touchend",this.rI),this.el.removeEventListener("touchmove",this.oI),this.el.removeEventListener("touchcancel",this.aI),delete this.el[lt],this.Ve.cancel()},i.onGesture=function(t,i){var n=new t(this),r=n.getType(),s=this.iI[r];return s||(this.XM.push(n),s=new ft,this.iI[r]=s),s.add(i)},i.removeGesture=function(t){var i=new t(this).getType(),n=this.iI[i];if(n){n.removeAll();var r=function(t,n){for(var r=0;r<t.length;r++)if(t[r].getType()==i)return r;return-1}(this.XM);return!(r<0||(this.XM.splice(r,1),this.wi.splice(r,1),this.qM.splice(r,1),this.zm.splice(r,1),delete this.iI[i],0))}return!1},i.onPointerDown=function(t){return this.tI.add(t)},i.zp=function(t){var i=Date.now();this.QM=!1,this.tI.fire(t);for(var n=0;n<this.XM.length;n++)this.wi[n]||(this.qM[n]&&this.qM[n]<i&&this.$m(n),this.XM[n].onTouchStart(t)&&this.Wm(n));this.eI(t)},i.qp=function(t){for(var i=Date.now(),n=0;n<this.XM.length;n++)this.zm[n]&&(this.qM[n]&&this.qM[n]<i?this.$m(n):this.XM[n].onTouchMove(t)||this.$m(n));this.eI(t)},i._p=function(t){for(var i=Date.now(),n=0;n<this.XM.length;n++)if(this.zm[n])if(this.qM[n]&&this.qM[n]<i)this.$m(n);else{this.XM[n].onTouchEnd(t);var r=!this.qM[n],s=this.qM[n]<i;this.$M==this.XM[n]||!r&&!s||this.$m(n)}this.eI(t)},i.qm=function(t){for(var i=0;i<this.XM.length;i++)this.uI(i);this.eI(t)},i.Op=function(t,i){if(this.$M)t.acceptCancel();else{for(var n=Date.now(),r=0;r<this.XM.length;r++)this.XM[r]==t&&(this.wi[r]=n+i,this.qM[r]=0);this.sI=!0}},i.hI=function(t,i){if(this.$M)t.acceptCancel();else for(var n=Date.now(),r=0;r<this.XM.length;r++)this.XM[r]==t&&(this.qM[r]=n+i)},i.cI=function(t){this.$M==t&&(this.$M=null,this.QM=!0)},i.lI=function(t,i,n){p(this.$M==t);var r=this.iI[t.getType()];r&&r.fire(new vt(t.getType(),i,Date.now(),n))},i.eI=function(t){var i=!!this.$M||this.QM;if(this.QM=!1,!i)for(var n=Date.now(),r=0;r<this.XM.length;r++)if(this.wi[r]||this.qM[r]&&this.qM[r]>=n){i=!0;break}i?(t.stopPropagation(),this.KM||t.preventDefault()):this.JM&&t.stopPropagation(),this.sI&&(this.sI=!1,this.ov())},i.ov=function(){for(var t=Date.now(),i=-1,n=0;n<this.XM.length;n++)this.wi[n]?(-1==i||this.wi[n]>this.wi[i])&&(i=n):this.qM[n]&&this.qM[n]<t&&this.$m(n);if(-1!=i){for(var r=0,s=0;s<this.XM.length;s++)!this.wi[s]&&this.zm[s]&&(r=Math.max(r,this.qM[s]-t));r<2?this.mI(i):this.Ve.schedule(r)}},i.mI=function(t){for(var i=this.XM[t],n=0;n<this.XM.length;n++)n!=t&&this.uI(n);this.wi[t]=0,this.qM[t]=0,this.$M=i,i.acceptStart()},i.Wm=function(t){this.zm[t]=!0,this.qM[t]=0},i.$m=function(t){this.zm[t]=!1,this.qM[t]=0,this.wi[t]||this.XM[t].acceptCancel()},i.uI=function(t){this.wi[t]=0,this.$m(t)},t}(),mt=function(){function t(t,i){this.pI=t,this.Fy=i}var i=t.prototype;return i.getType=function(){return this.pI},i.signalReady=function(t){this.Fy.Op(this,t)},i.signalPending=function(t){this.Fy.hI(this,t)},i.signalEnd=function(){this.Fy.cI(this)},i.signalEmit=function(t,i){this.Fy.lI(this,t,i)},i.acceptStart=function(){},i.acceptCancel=function(){},i.onTouchStart=function(t){return!1},i.onTouchMove=function(t){return!1},i.onTouchEnd=function(t){},t}();function pt(t,i,n){i<1&&(i=1);var r=t/i,s=.5+Math.min(i/33.34,.5);return r*s+n*(1-s)}Math.round(-16.67/Math.log(.95));var bt=function(t){h(n,t);var i=f(n);function n(t){return i.call(this,"swipe-xy",t,!0,!0)}return n}(function(t){h(n,t);var i=f(n);function n(t,n,r,s){var o;return(o=i.call(this,t,n)).fI=r,o.dI=s,o.$M=!1,o.vI=0,o.yI=0,o.gI=0,o.bI=0,o.xI=0,o.wI=0,o.fa=0,o.kI=0,o.AI=0,o.TI=0,o.SI=0,o}var r=n.prototype;return r.onTouchStart=function(t){var i=t.touches;return!!(this.$M&&i&&i.length>1)||!(!i||1!=i.length)&&(this.fa=Date.now(),this.vI=i[0].clientX,this.yI=i[0].clientY,!0)},r.onTouchMove=function(t){var i=t.touches;if(i&&i.length>=1){var n=i[0],r=n.clientX,s=n.clientY;if(this.gI=r,this.bI=s,this.$M)this.EI(!1,!1,t);else{var o=Math.abs(r-this.vI),h=Math.abs(s-this.yI);if(this.fI&&this.dI)(o>=8||h>=8)&&this.signalReady(-10);else if(this.fI){if(o>=8&&o>h)this.signalReady(-10);else if(h>=8)return!1}else{if(!this.dI)return!1;if(h>=8&&h>o)this.signalReady(-10);else if(o>=8)return!1}}return!0}return!1},r.onTouchEnd=function(t){var i=t.touches;i&&0==i.length&&this.OI(t)},r.acceptStart=function(){this.$M=!0,this.xI=this.vI,this.wI=this.yI,this.AI=this.fa,this.vI=this.gI,this.yI=this.bI,this.EI(!0,!1,null)},r.acceptCancel=function(){this.$M=!1},r.EI=function(t,i,n){this.kI=Date.now();var r=this.kI-this.AI;if(!i&&r>4||i&&r>16){var s=pt(this.gI-this.xI,r,this.TI),o=pt(this.bI-this.wI,r,this.SI);(!i||r>32||0!=s||0!=o)&&(this.TI=Math.abs(s)>1e-4?s:0,this.SI=Math.abs(o)>1e-4?o:0),this.xI=this.gI,this.wI=this.bI,this.AI=this.kI}this.signalEmit({first:t,last:i,time:this.kI,deltaX:this.gI-this.vI,deltaY:this.bI-this.yI,startX:this.vI,startY:this.yI,lastX:this.gI,lastY:this.bI,velocityX:this.TI,velocityY:this.SI},n)},r.OI=function(t){this.$M&&(this.$M=!1,this.EI(!1,!0,t),this.signalEnd())},n}(mt));function yt(t){return t.classList.contains("i-amphtml-fie")||!!function(t,i){return t.closest?t.closest(".i-amphtml-fie"):function(t,i,n){var r;for(r=t;r&&void 0!==r;r=r.parentElement)if(i(r))return r;return null}(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-amphtml-fie")}(t)}))}(t)}var gt=['<i-amphtml-ad-close-header role=button tabindex=0 aria-label="Close Ad"><div>Ad</div><i-amphtml-ad-close-button class=amp-ad-close-button></i-amphtml-ad-close-button></i-amphtml-ad-close-header>'],wt="amp-lightbox",xt={"fade-in":{openStyle:{"opacity":1},closedStyle:{"opacity":0},durationSeconds:.1},"fly-in-bottom":{openStyle:{"transform":"translate(0, 0)"},closedStyle:{"transform":"translate(0, 100%)"},durationSeconds:.2},"fly-in-top":{openStyle:{"transform":"translate(0, 0)"},closedStyle:{"transform":"translate(0, -100%)"},durationSeconds:.2}};function kt(t){return(n=(i=t).ownerDocument||i,O&&O.ownerDocument===n||(O=n.createElement("div")),C)(gt);var i,n}var St=function(t){h(n,t);var i=f(n);function n(t){var n;(n=i.call(this,t)).Ht=null,n.mb=null,n.Qf=n.win.document,n.Ye=null,n.zZ=null,n.FY=!1,n.TZ=null,n.LZ=null,n._Z=null,n.HZ=null,n.BZ=!1,n.UZ=0,n.WZ=0,n.GZ=null,n.VZ=(t.getAttribute("animate-in")||"fade-in").toLowerCase(),n.FZ=null,n.ZZ=null,n.$Z=null;var r=Q(n.win,"platform");return n.qZ=r.isIos(),n.JZ=function(t,i,n){var r=0,s=0,o=null;function h(){r=0;var n,e=500-(t.Date.now()-s);e>0?r=t.setTimeout(h,e):(n=o,o=null,i.apply(null,n))}return function(){s=t.Date.now();for(var i=arguments.length,n=new Array(i),e=0;e<i;e++)n[e]=arguments[e];o=n,r||(r=t.setTimeout(h,500))}}(n.win,(function(){var t=$().assertElement(n.mb,"E#19457 this.container_"),i=ht(n.element);i.scheduleLayout(n.element,t),i.scheduleResume(n.element,t)})),n}var o=n.prototype;return o.buildCallback=function(){var t,i,n,r=this;this.user().assert(m(xt,this.VZ),"Invalid `animate-in` value %s",this.VZ),this.element.classList.add("i-amphtml-overlay"),this.Ye=(t=this.element,i="action",st(n=nt(it(t)),i)?rt(n,i):null),this.KZ(),this.registerDefaultAction((function(t){return r.dX(t.trust,t.caller)}),"open"),this.registerAction("close",(function(t){return r.close(t.trust)})),this.Ye.addToAllowlist("AMP-LIGHTBOX",["open","close"],["email"])},o.QZ=function(){var t=this;K(this.BZ),this.hQ().forEach((function(i){ht(t.element).setOwner(i,t.element)}))},o.hQ=function(){return(t=this.element.getElementsByClassName("i-amphtml-element"))?Array.prototype.slice.call(t):[];var t},o.Pe=function(){var t=this;if(!this.mb){var i=this.element;this.BZ=i.hasAttribute("scrollable");var n=function(t){return function(t,i){for(var n=[],r=t.firstElementChild;r;r=r.nextElementSibling)void 0,h=void 0,e=void 0,"string"==typeof(o=s=r)?h=o:1==(null==(e=o)?void 0:e.nodeType)&&(h=o.tagName),!(h&&h.toLowerCase().startsWith("i-")||s.nodeType===Node.ELEMENT_NODE&&(s.hasAttribute("placeholder")||s.hasAttribute("fallback")||s.hasAttribute("overflow")))&&n.push(r);var s,o,h,e;return n}(t)}(this.element);this.mb=i.ownerDocument.createElement("div"),this.BZ||function(t,i){t.classList.add("i-amphtml-fill-content")}(this.mb),i.appendChild(this.mb),n.forEach((function(i){t.mb.appendChild(i)})),this.BZ&&(this.QZ(),i.classList.add("i-amphtml-scrollable"),i.addEventListener("amp:dom-update",(function(){t.QZ(),t.aQ(t.UZ)})),i.addEventListener("scroll",this.$l.bind(this))),this.BZ||dt.get(i).onGesture(bt,(function(){})),this.fQ()}},o.layoutCallback=function(){return r||(r=Promise.resolve(void 0))},o.dX=function(t,i){var n=this;if(!this.FY){this.Pe(),this.LZ=this.cQ.bind(this),this.Qf.documentElement.addEventListener("focusin",this.LZ),i&&(this.HZ=i);var r=new s,o=r.promise,h=r.resolve;return this.getViewport().enterLightboxMode(this.element,o).then((function(){return n.lQ(h,t)}))}},o.mutatedAttributesCallback=function(t){var i=t.open;void 0!==i&&(i?this.dX(2,document.activeElement):this.close(2))},o.vQ=function(){var t=this.mb.querySelector("[autofocus]");t&&y(t)},o.lQ=function(t,i){var n=this,r=this.element,s=this.dQ(),o=s.closedStyle,h=s.durationSeconds,e=s.openStyle,u=Object.keys(e).map((function(t){return"".concat(t," ").concat(h,"s ease-in")})).join(",");this.WZ++,this.BZ&&Y(r,"webkitOverflowScrolling","touch"),Y(r,"transition",u),L(r,_(o)),function(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}(r,!0),this.mutateElement((function(){r.scrollTop=0})),this.vQ(),this.mutateElement((function(){L(r,_(e))}));var a=this.mb;this.BZ&&(this.$l(),this.aQ(this.UZ));var f=function(){n.JZ(),t()};r.addEventListener("transitionend",f),r.addEventListener("animationend",f),this.setAsContainer();var c=ht(this.element);c.scheduleLayout(this.element,a),c.scheduleResume(this.element,a),this.fD("lightboxOpen",i),this.zZ=new ut(this.getAmpDoc(),(function(){return n.close(3)})),this.mQ(),this.pQ(),this.bQ(),this.FY=!0},o.fQ=function(){var t=this.element;null!=t.getAttribute("close-button")&&(this.FZ=kt(t),t.insertBefore(this.FZ,this.mb))},o.mQ=function(){var t,i=this;this.FZ&&(this.TZ=this.yQ.bind(this),this.FZ.addEventListener("keydown",this.TZ),this.measureMutateElement((function(){t=i.FZ.getBoundingClientRect().height}),(function(){i.gQ(),T(i.mb,{"margin-top":X(t),"min-height":"calc(100vh - ".concat(X(t),")")})})))},o.gQ=function(){this.FZ.classList.add("amp-ad-close-header")},o.bQ=function(){(this.$Z||this.FZ)&&(this._Z=this.wQ.bind(this),this.ZZ.addEventListener("click",this._Z))},o.xQ=function(){(this.$Z||this.FZ)&&(this.ZZ.removeEventListener("click",this._Z),this._Z=null,this.FZ&&(this.FZ.removeEventListener("keydown",this.TZ),this.TZ=null))},o.dQ=function(){return xt[this.VZ]},o.wQ=function(){this.close(3)},o.yQ=function(t){"Enter"==t.key&&(t.preventDefault(),this.close(3))},o.close=function(t){var i=this;this.FY&&(this.BZ&&Y(this.element,"webkitOverflowScrolling",""),this.getViewport().leaveLightboxMode(this.element).then((function(){return i.kQ(t)})))},o.kQ=function(t){var i=this,n=this.element,r=++this.WZ,s=function(){r==i.WZ&&(i.collapse(),i.JZ())};this.SQ()?(function(t,i){for(var n=0;n<i.length;n++)Y(t,i[n],null)}(n,["transition"]),s()):(n.addEventListener("transitionend",s),n.addEventListener("animationend",s)),L(n,_(this.dQ().closedStyle)),this.zZ&&(this.zZ.destroy(),this.zZ=null),this.Qf.documentElement.removeEventListener("focusin",this.LZ),this.LZ=null,this.xQ(),this.removeAsContainer(),function(t){E(t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],!0,M)}(this.element,!1),ht(this.element).schedulePause(this.element,this.mb),this.FY=!1,this.fD("lightboxClose",t),this.HZ&&y(this.HZ)},o.SQ=function(){return"inabox"==G(this.win).runtime||yt(this.element)},o.OQ=function(){return!!this.element.contains(document.activeElement)},o.cQ=function(){this.OQ()||this.close(3)},o.pQ=function(){this.OQ()||(this.ZZ=this.jQ(),this.ZZ||(this.$Z=this.bW(),this.element.insertBefore(this.$Z,this.element.firstChild),this.ZZ=this.$Z),y(this.ZZ))},o.jQ=function(){if(this.ZZ)return this.ZZ;if(this.FZ)return this.FZ;for(var t=this.element,i=t.querySelectorAll("[on]"),n=0;n<i.length;n++){var r=i[n];if(this.Ye.hasResolvableActionForTarget(r,"tap",t,K(r.parentElement)))return r}},o.bW=function(){var t=this.element.getAttribute("data-close-button-aria-label")||"Close the modal",i=this.Qf.createElement("button");return i.textContent=t,i.classList.add("i-amphtml-screen-reader"),i.tabIndex=-1,i},o.$l=function(){var t=this.element.scrollTop;this.qZ&&(0==t?this.element.scrollTop=1:this.element.scrollHeight==t+this.element.offsetHeight&&(this.element.scrollTop=t-1)),this.UZ=t,null===this.GZ&&this.AQ(t)},o.AQ=function(t){var i=this;this.GZ=et(this.win).delay((function(){Math.abs(t-i.UZ)<30?(J().fine(wt,"slow scrolling: %s - %s",t,i.UZ),i.GZ=null,i.ln(i.UZ)):(J().fine(wt,"fast scrolling: %s - %s",t,i.UZ),i.AQ(i.UZ))}),100)},o.ln=function(t){J().fine(wt,"update_"),this.aQ(t),this.UZ=t},o.aQ=function(t){var i=this,n=[];this.MQ(t,(function(t){n.push(t),ht(i.element).scheduleLayout(i.element,t)}))},o.MQ=function(t,i){for(var n=this.EQ().height,r=this.hQ(),s=0;s<r.length;s++){for(var o=r[s],h=0,e=o;e&&this.element.contains(e);e=e.offsetParent)h+=e.offsetTop;var u=2*n;h+o.offsetHeight>=t-u&&h<=t+u&&i(o)}},o.EQ=function(){return this.Ht||(this.Ht={width:this.element.clientWidth,height:this.element.clientHeight}),this.Ht},o.KZ=function(){var t=this.element,i=this.win;yt(t)&&Ot(i,i.document.body)},o.fD=function(t,i){var n=function(t,i,n,r){var s={detail:n};if(Object.assign(s,void 0),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,s);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(i,!!s.bubbles,!!s.cancelable,n),o}(this.win,"".concat(wt,".").concat(t),{});this.Ye.trigger(this.element,t,n,i)},n}(t.BaseElement);function Ot(t,i){var n,r={},s=function(t){return Q(t,"ampdoc")}(t).getAmpDoc(i);(n=s,tt(n,"mutator")).measureMutateElement(i,(function(){r.alreadyTransparent="rgba(0, 0, 0, 0)"==function(t,i){return t.getComputedStyle(i)||z}(t,i)["background-color"]}),(function(){r.alreadyTransparent||$().warn(wt,"The background of the <body> element has been forced to transparent. If you need to set background, use an intermediate container."),T(i,{background:"transparent"})}))}"inabox"==G().runtime&&Ot(window,K(document.body)),t.registerElement(wt,St,'amp-lightbox{display:none;position:fixed!important;z-index:1000;top:0!important;left:0!important;bottom:0!important;right:0!important}amp-lightbox[scrollable]{overflow-y:auto!important;overflow-x:hidden!important}amp-lightbox i-amphtml-ad-close-header{height:60px!important;display:block!important;visibility:visible!important;opacity:0;position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:1000!important;display:-ms-flexbox!important;display:flex!important;-ms-flex-align:center!important;align-items:center!important;-ms-flex-pack:right!important;justify-content:right!important;transition:opacity 0.1s ease-in}[animate-in=fly-in-bottom]>i-amphtml-ad-close-header,[animate-in=fly-in-top]>i-amphtml-ad-close-header{transition-delay:0.2s}amp-lightbox .amp-ad-close-header{opacity:1!important;box-sizing:border-box;padding:5px;line-height:40px;background-color:#000;color:#fff;font-family:Helvetica,sans-serif;font-size:12px;cursor:pointer}amp-lightbox .amp-ad-close-header>:first-child{margin-left:auto!important;pointer-events:none!important}amp-lightbox .amp-ad-close-button{display:block!important;background:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="%23fff"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/><path fill="none" d="M0 0h24v24H0z"/></svg>\') no-repeat;background-position:50%;width:40px;height:40px;pointer-events:none!important;border-radius:40px;margin-left:5px}amp-lightbox .amp-ad-close-header:active>.amp-ad-close-button{background-color:hsla(0,0%,100%,.3)}\n/*# sourceURL=/extensions/amp-lightbox/0.1/amp-lightbox.css*/')}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-lightbox-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-mustache",ev:"0.2",l:!0,f:function(t,e){!function(){function e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function r(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?n(Object(i),!0).forEach((function(n){e(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t){return(i="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 o(t,e){return(o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(){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}}function s(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function c(t,e){for(var n=[],r=0,i=0;i<t.length;i++){var o=t[i];e(o,i,t)?n.push(o):(r<i&&(t[r]=o),r++)}return r<t.length&&(t.length=r),n}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}Array.isArray;var p=Object.prototype;function m(t){var e=Object.create(null);return t&&Object.assign(e,t),e}function h(t){return 1==(null==t?void 0:t.nodeType)}function d(t){return h(t)?t.tagName.toLowerCase()+(t.id?"#".concat(t.id):""):t}function v(t,e,n,r,i,o,a,u,s,c,f){return t}function b(t,e){return t}function g(t,e,n,r,i,o,a,u,s,f,l){return function(t,e){var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(e)return e;t&&-1==i.indexOf(t)&&(i+=t);for(var o=3,a=i.split("%s"),u=a.shift(),s=[u];a.length;){var f=arguments[o++],l=a.shift();u+=d(f)+l,s.push(f,l.trim())}var p=new Error(u);throw p.messageArray=c(s,(function(t){return""!==t})),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,p),p}("​​​",t,e,n,r,i,o,a,u,s,f,l)}function y(t,e,n){return(y=u()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function w(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}p.hasOwnProperty,p.toString;var x=Object.entries,k=Object.setPrototypeOf,E=Object.isFrozen,S=Object.getPrototypeOf,O=Object.getOwnPropertyDescriptor,A=Object.freeze,j=Object.seal,R=Object.create,T="undefined"!=typeof Reflect&&Reflect,_=T.apply,z=T.construct;_||(_=function(t,e,n){return t.apply(e,n)}),A||(A=function(t){return t}),j||(j=function(t){return t}),z||(z=function(t,e){return y(t,w(e))});var I,D=G(Array.prototype.forEach),L=G(Array.prototype.pop),F=G(Array.prototype.push),M=G(String.prototype.toLowerCase),C=G(String.prototype.toString),U=G(String.prototype.match),N=G(String.prototype.replace),P=G(String.prototype.indexOf),B=G(String.prototype.trim),W=G(RegExp.prototype.test),q=(I=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return z(I,e)});function G(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return _(t,e,r)}}function $(t,e,n){n=n||M,k&&k(t,null);for(var r=e.length;r--;){var i=e[r];if("string"==typeof i){var o=n(i);o!==i&&(E(e)||(e[r]=o),i=o)}t[i]=!0}return t}function H(t){for(var e,n=R(null),r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=l(t))||t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=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.")}(x(t));!(e=r()).done;){var i=(2,function(t){if(Array.isArray(t))return t}(u=e.value)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),2!==o.length);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw i}}return o}}(u)||l(u,2)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=i[0],a=i[1];n[o]=a}var u;return n}function Y(t,e){for(;null!==t;){var n=O(t,e);if(n){if(n.get)return G(n.get);if("function"==typeof n.value)return G(n.value)}t=S(t)}return function(t){return console.warn("fallback value for",t),null}}var X=A(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V=A(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),K=A(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Z=A(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),J=A(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Q=A(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tt=A(["#text"]),et=A(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),nt=A(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rt=A(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),it=A(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ot=j(/\{\{[\w\W]*|[\w\W]*\}\}/gm),at=j(/<%[\w\W]*|[\w\W]*%>/gm),ut=j(/\${[\w\W]*}/gm),st=j(/^data-[\-\w.\u00B7-\uFFFF]/),ct=j(/^aria-[\-\w]+$/),ft=j(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),lt=j(/^(?:\w+script|data):/i),pt=j(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mt=j(/^html$/i),ht=Object.freeze({__proto__:null,MUSTACHE_EXPR:ot,ERB_EXPR:at,TMPLIT_EXPR:ut,DATA_ATTR:st,ARIA_ATTR:ct,IS_ALLOWED_URI:ft,IS_SCRIPT_OR_DATA:lt,ATTR_WHITESPACE:pt,DOCTYPE_NAME:mt}),dt=function(){return"undefined"==typeof window?null:window},vt=function(t,e){if("object"!==i(t)||"function"!=typeof t.createPolicy)return null;var n=null,r="data-tt-policy-suffix";e.currentScript&&e.currentScript.hasAttribute(r)&&(n=e.currentScript.getAttribute(r));var o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},bt=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dt(),n=function(e){return t(e)};if(n.version="3.0.2",n.removed=[],!e||!e.document||9!==e.document.nodeType)return n.isSupported=!1,n;var r=e.document,o=e.document,a=e.DocumentFragment,u=e.HTMLTemplateElement,s=e.Node,c=e.Element,f=e.NodeFilter,l=e.NamedNodeMap,p=void 0===l?e.NamedNodeMap||e.MozNamedAttrMap:l,m=e.HTMLFormElement,h=e.DOMParser,d=e.trustedTypes,v=c.prototype,b=Y(v,"cloneNode"),g=Y(v,"nextSibling"),y=Y(v,"childNodes"),k=Y(v,"parentNode");if("function"==typeof u){var E=o.createElement("template");E.content&&E.content.ownerDocument&&(o=E.content.ownerDocument)}var S=vt(d,r),O=S?S.createHTML(""):"",j=o,R=j.implementation,T=j.createNodeIterator,_=j.createDocumentFragment,z=j.getElementsByTagName,I=r.importNode,G={};n.isSupported="function"==typeof x&&"function"==typeof k&&R&&void 0!==R.createHTMLDocument;var ot,at,ut=ht.MUSTACHE_EXPR,st=ht.ERB_EXPR,ct=ht.TMPLIT_EXPR,lt=ht.DATA_ATTR,pt=ht.ARIA_ATTR,bt=ht.IS_SCRIPT_OR_DATA,gt=ht.ATTR_WHITESPACE,yt=ht.IS_ALLOWED_URI,wt=null,xt=$({},[].concat(w(X),w(V),w(K),w(J),w(tt))),kt=null,Et=$({},[].concat(w(et),w(nt),w(rt),w(it))),St=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ot=null,At=null,jt=!0,Rt=!0,Tt=!1,_t=!0,zt=!1,It=!1,Dt=!1,Lt=!1,Ft=!1,Mt=!1,Ct=!1,Ut=!0,Nt=!1,Pt="user-content-",Bt=!0,Wt=!1,qt={},Gt=null,$t=$({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ht=null,Yt=$({},["audio","video","img","source","image","track"]),Xt=null,Vt=$({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Kt="http://www.w3.org/1998/Math/MathML",Zt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml",Qt=Jt,te=!1,ee=null,ne=$({},[Kt,Zt,Jt],C),re=["application/xhtml+xml","text/html"],ie="text/html",oe=null,ae=o.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},se=function(t){oe&&oe===t||(t&&"object"===i(t)||(t={}),t=H(t),ot=ot=-1===re.indexOf(t.PARSER_MEDIA_TYPE)?ie:t.PARSER_MEDIA_TYPE,at="application/xhtml+xml"===ot?C:M,wt="ALLOWED_TAGS"in t?$({},t.ALLOWED_TAGS,at):xt,kt="ALLOWED_ATTR"in t?$({},t.ALLOWED_ATTR,at):Et,ee="ALLOWED_NAMESPACES"in t?$({},t.ALLOWED_NAMESPACES,C):ne,Xt="ADD_URI_SAFE_ATTR"in t?$(H(Vt),t.ADD_URI_SAFE_ATTR,at):Vt,Ht="ADD_DATA_URI_TAGS"in t?$(H(Yt),t.ADD_DATA_URI_TAGS,at):Yt,Gt="FORBID_CONTENTS"in t?$({},t.FORBID_CONTENTS,at):$t,Ot="FORBID_TAGS"in t?$({},t.FORBID_TAGS,at):{},At="FORBID_ATTR"in t?$({},t.FORBID_ATTR,at):{},qt="USE_PROFILES"in t&&t.USE_PROFILES,jt=!1!==t.ALLOW_ARIA_ATTR,Rt=!1!==t.ALLOW_DATA_ATTR,Tt=t.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,zt=t.SAFE_FOR_TEMPLATES||!1,It=t.WHOLE_DOCUMENT||!1,Ft=t.RETURN_DOM||!1,Mt=t.RETURN_DOM_FRAGMENT||!1,Ct=t.RETURN_TRUSTED_TYPE||!1,Lt=t.FORCE_BODY||!1,Ut=!1!==t.SANITIZE_DOM,Nt=t.SANITIZE_NAMED_PROPS||!1,Bt=!1!==t.KEEP_CONTENT,Wt=t.IN_PLACE||!1,yt=t.ALLOWED_URI_REGEXP||ft,Qt=t.NAMESPACE||Jt,St=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(St.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(St.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(St.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),zt&&(Rt=!1),Mt&&(Ft=!0),qt&&(wt=$({},w(tt)),kt=[],!0===qt.html&&($(wt,X),$(kt,et)),!0===qt.svg&&($(wt,V),$(kt,nt),$(kt,it)),!0===qt.svgFilters&&($(wt,K),$(kt,nt),$(kt,it)),!0===qt.mathMl&&($(wt,J),$(kt,rt),$(kt,it))),t.ADD_TAGS&&(wt===xt&&(wt=H(wt)),$(wt,t.ADD_TAGS,at)),t.ADD_ATTR&&(kt===Et&&(kt=H(kt)),$(kt,t.ADD_ATTR,at)),t.ADD_URI_SAFE_ATTR&&$(Xt,t.ADD_URI_SAFE_ATTR,at),t.FORBID_CONTENTS&&(Gt===$t&&(Gt=H(Gt)),$(Gt,t.FORBID_CONTENTS,at)),Bt&&(wt["#text"]=!0),It&&$(wt,["html","head","body"]),wt.table&&($(wt,["tbody"]),delete Ot.tbody),A&&A(t),oe=t)},ce=$({},["mi","mo","mn","ms","mtext"]),fe=$({},["foreignobject","desc","title","annotation-xml"]),le=$({},["title","style","font","a","script"]),pe=$({},V);$(pe,K),$(pe,Z);var me=$({},J);$(me,Q);var he=function(t){var e=k(t);e&&e.tagName||(e={namespaceURI:Qt,tagName:"template"});var n=M(t.tagName),r=M(e.tagName);return!!ee[t.namespaceURI]&&(t.namespaceURI===Zt?e.namespaceURI===Jt?"svg"===n:e.namespaceURI===Kt?"svg"===n&&("annotation-xml"===r||ce[r]):Boolean(pe[n]):t.namespaceURI===Kt?e.namespaceURI===Jt?"math"===n:e.namespaceURI===Zt?"math"===n&&fe[r]:Boolean(me[n]):t.namespaceURI===Jt?!(e.namespaceURI===Zt&&!fe[r])&&!(e.namespaceURI===Kt&&!ce[r])&&!me[n]&&(le[n]||!pe[n]):!("application/xhtml+xml"!==ot||!ee[t.namespaceURI]))},de=function(t){F(n.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){t.remove()}},ve=function(t,e){try{F(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){F(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!kt[t])if(Ft||Mt)try{de(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},be=function(t){var e,n;if(Lt)t="<remove></remove>"+t;else{var r=U(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ot&&Qt===Jt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var i=S?S.createHTML(t):t;if(Qt===Jt)try{e=(new h).parseFromString(i,ot)}catch(t){}if(!e||!e.documentElement){e=R.createDocument(Qt,"template",null);try{e.documentElement.innerHTML=te?O:i}catch(t){}}var a=e.body||e.documentElement;return t&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),Qt===Jt?z.call(e,It?"html":"body")[0]:It?e.documentElement:a},ge=function(t){return T.call(t.ownerDocument||t,t,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},ye=function(t){return t instanceof m&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof p)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},we=function(t){return"object"===i(s)?t instanceof s:t&&"object"===i(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},xe=function(t,e,r){G[t]&&D(G[t],(function(t){t.call(n,e,r,oe)}))},ke=function(t){var e;if(xe("beforeSanitizeElements",t,null),ye(t))return de(t),!0;var r=at(t.nodeName);if(xe("uponSanitizeElement",t,{tagName:r,allowedTags:wt}),t.hasChildNodes()&&!we(t.firstElementChild)&&(!we(t.content)||!we(t.content.firstElementChild))&&W(/<[/\w]/g,t.innerHTML)&&W(/<[/\w]/g,t.textContent))return de(t),!0;if(!wt[r]||Ot[r]){if(!Ot[r]&&Se(r)){if(St.tagNameCheck instanceof RegExp&&W(St.tagNameCheck,r))return!1;if(St.tagNameCheck instanceof Function&&St.tagNameCheck(r))return!1}if(Bt&&!Gt[r]){var i=k(t)||t.parentNode,o=y(t)||t.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(b(o[a],!0),g(t))}return de(t),!0}return t instanceof c&&!he(t)?(de(t),!0):"noscript"!==r&&"noembed"!==r||!W(/<\/no(script|embed)/i,t.innerHTML)?(zt&&3===t.nodeType&&(e=t.textContent,e=N(e,ut," "),e=N(e,st," "),e=N(e,ct," "),t.textContent!==e&&(F(n.removed,{element:t.cloneNode()}),t.textContent=e)),xe("afterSanitizeElements",t,null),!1):(de(t),!0)},Ee=function(t,e,n){if(Ut&&("id"===e||"name"===e)&&(n in o||n in ae))return!1;if(Rt&&!At[e]&&W(lt,e));else if(jt&&W(pt,e));else if(!kt[e]||At[e]){if(!(Se(t)&&(St.tagNameCheck instanceof RegExp&&W(St.tagNameCheck,t)||St.tagNameCheck instanceof Function&&St.tagNameCheck(t))&&(St.attributeNameCheck instanceof RegExp&&W(St.attributeNameCheck,e)||St.attributeNameCheck instanceof Function&&St.attributeNameCheck(e))||"is"===e&&St.allowCustomizedBuiltInElements&&(St.tagNameCheck instanceof RegExp&&W(St.tagNameCheck,n)||St.tagNameCheck instanceof Function&&St.tagNameCheck(n))))return!1}else if(Xt[e]);else if(W(yt,N(n,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==P(n,"data:")||!Ht[t])if(Tt&&!W(bt,N(n,gt,"")));else if(n)return!1;return!0},Se=function(t){return t.indexOf("-")>0},Oe=function(t){var e,r,o,a;xe("beforeSanitizeAttributes",t,null);var u=t.attributes;if(u){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:kt};for(a=u.length;a--;){var c=e=u[a],f=c.name,l=c.namespaceURI;if(r="value"===f?e.value:B(e.value),o=at(f),s.attrName=o,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,xe("uponSanitizeAttribute",t,s),r=s.attrValue,!s.forceKeepAttr&&(ve(f,t),s.keepAttr))if(_t||!W(/\/>/i,r)){zt&&(r=N(r,ut," "),r=N(r,st," "),r=N(r,ct," "));var p=at(t.nodeName);if(Ee(p,o,r)){if(!Nt||"id"!==o&&"name"!==o||(ve(f,t),r=Pt+r),S&&"object"===i(d)&&"function"==typeof d.getAttributeType)if(l);else switch(d.getAttributeType(p,o)){case"TrustedHTML":r=S.createHTML(r);break;case"TrustedScriptURL":r=S.createScriptURL(r)}try{l?t.setAttributeNS(l,f,r):t.setAttribute(f,r),L(n.removed)}catch(t){}}}else ve(f,t)}xe("afterSanitizeAttributes",t,null)}},Ae=function t(e){var n,r=ge(e);for(xe("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)xe("uponSanitizeShadowNode",n,null),ke(n)||(n.content instanceof a&&t(n.content),Oe(n));xe("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){var e,i,o,u,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((te=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!we(t)){if("function"!=typeof t.toString)throw q("toString is not a function");if("string"!=typeof(t=t.toString()))throw q("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Dt||se(c),n.removed=[],"string"==typeof t&&(Wt=!1),Wt){if(t.nodeName){var f=at(t.nodeName);if(!wt[f]||Ot[f])throw q("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(i=(e=be("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?e=i:e.appendChild(i);else{if(!Ft&&!zt&&!It&&-1===t.indexOf("<"))return S&&Ct?S.createHTML(t):t;if(!(e=be(t)))return Ft?null:Ct?O:""}e&&Lt&&de(e.firstChild);for(var l=ge(Wt?t:e);o=l.nextNode();)ke(o)||(o.content instanceof a&&Ae(o.content),Oe(o));if(Wt)return t;if(Ft){if(Mt)for(u=_.call(e.ownerDocument);e.firstChild;)u.appendChild(e.firstChild);else u=e;return(kt.shadowroot||kt.shadowrootmod)&&(u=I.call(r,u,!0)),u}var p=It?e.outerHTML:e.innerHTML;return It&&wt["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&W(mt,e.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+e.ownerDocument.doctype.name+">\n"+p),zt&&(p=N(p,ut," "),p=N(p,st," "),p=N(p,ct," ")),S&&Ct?S.createHTML(p):p},n.setConfig=function(t){se(t),Dt=!0},n.clearConfig=function(){oe=null,Dt=!1},n.isValidAttribute=function(t,e,n){oe||se({});var r=at(t),i=at(e);return Ee(r,i,n)},n.addHook=function(t,e){"function"==typeof e&&(G[t]=G[t]||[],F(G[t],e))},n.removeHook=function(t){if(G[t])return L(G[t])},n.removeHooks=function(t){G[t]&&(G[t]=[])},n.removeAllHooks=function(){G={}},n}();function gt(t){return function(t,e){var n=e.documentElement;return["⚡4email","amp4email"].some((function(t){return n.hasAttribute(t)}))}(0,t)}var yt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function wt(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return e}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var xt=self.__AMP_LOG;function kt(t){return xt.user||(xt.user=Et()),function(t,e){return e&&e.ownerDocument.defaultView!=t}(xt.user.win,t)?xt.userForEmbed||(xt.userForEmbed=Et()):xt.user}function Et(t){return function(t,e){throw new Error("failed to call initLogConstructor")}()}function St(t,e,n,r,i,o,a,u,s,c,f){return t}function Ot(t,e,n,r,i,o,a,u,s,c,f){return kt().assert(t,e,n,r,i,o,a,u,s,c,f)}var At=/(\S+)(?:\s+(?:(-?\d+(?:\.\d+)?)([a-zA-Z]*)))?\s*(?:,|$)/g,jt=function(){function t(t){g(t.length>0,"Srcset must have at least one source"),this.KT=t;for(var e=!1,n=!1,r=0;r<t.length;r++){var i=t[r];e=e||!!i.width,n=n||!!i.dpr}g(!(e===n),"Srcset must have width or dpr sources, but not both"),t.sort(e?Rt:Tt),this.aR=e}var e=t.prototype;return e.select=function(t,e){var n;return v(t),v(e),n=this.aR?this.uR(t*e):this.sR(e),this.KT[n].url},e.uR=function(t){for(var e=this.KT,n=0,r=1/0,i=1/0,o=0;o<e.length;o++){var a,u=null!==(a=e[o].width)&&void 0!==a?a:0,s=Math.abs(u-t);if(!(s<=1.1*r||t/i>1.2))break;n=o,r=s,i=u}return n},e.sR=function(t){for(var e=this.KT,n=0,r=1/0,i=0;i<e.length;i++){var o=Math.abs(e[i].dpr-t);if(!(o<=r))break;n=i,r=o}return n},e.getUrls=function(){return this.KT.map((function(t){return t.url}))},e.stringify=function(t){for(var e=[],n=this.KT,r=0;r<n.length;r++){var i=n[r],o=i.url;t&&(o=t(o)),this.aR?o+=" ".concat(i.width,"w"):o+=" ".concat(i.dpr,"x"),e.push(o)}return e.join(", ")},t}();function Rt(t,e){return g(t.width!=e.width,"Duplicate width: %s",t.width),t.width-e.width}function Tt(t,e){return g(t.dpr!=e.dpr,"Duplicate dpr: %s",t.dpr),t.dpr-e.dpr}var _t=function(){function t(t){this.Lt=t,this.Ht=0,this.Ft=0,this.Gt=m()}var e=t.prototype;return e.has=function(t){return!!this.Gt[t]},e.get=function(t){var e=this.Gt[t];if(e)return e.access=++this.Ft,e.payload},e.put=function(t,e){this.has(t)||this.Ht++,this.Gt[t]={payload:e,access:this.Ft},this.zt()},e.zt=function(){if(!(this.Ht<=this.Lt)){var t,e=this.Gt,n=this.Ft+1;for(var r in e){var i=e[r].access;i<n&&(n=i,t=r)}void 0!==t&&(delete e[t],this.Ht--)}},t}();function zt(t,e){return Lt(t=It(t),e)}function It(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function Dt(t){return t.nodeType?(n=t,e=(n.ownerDocument||n).defaultView,zt(e,"ampdoc")).getAmpDoc(t):t;var e,n}function Lt(t,e){St(function(t,e){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[e];return!(!n||!n.ctor)}(t,e));var n=Ft(t)[e];return n.obj||(St(n.ctor),St(n.context),n.obj=new n.ctor(n.context),St(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function Ft(t){var e=t.__AMP_SERVICES;return e||(e=t.__AMP_SERVICES={}),e}var Mt,Ct,Ut=function(){return self.AMP.config.urls}(),Nt=new Set(["c","v","a","ad"]),Pt=function(t){return"string"==typeof t?Bt(t):t};function Bt(t,e){return Mt||(Mt=self.document.createElement("a"),Ct=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new _t(100))),function(t,e,n){if(n&&n.has(e))return n.get(e);t.href=e,t.protocol||(t.href=t.href);var r,i={href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:"0"==t.port?"":t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:null};"/"!==i.pathname[0]&&(i.pathname="/"+i.pathname),("http:"==i.protocol&&80==i.port||"https:"==i.protocol&&443==i.port)&&(i.port="",i.host=i.hostname),r=t.origin&&"null"!=t.origin?t.origin:"data:"!=i.protocol&&i.host?i.protocol+"//"+i.host:i.href,i.origin=r;var o=i;return n&&n.put(e,o),o}(Mt,t,e?null:Ct)}function Wt(t){return Ut.cdnProxyRegex.test(Pt(t).origin)}function qt(t,e){return e=Pt(e),"function"==typeof URL?new URL(t,e.href).toString():function(t,e){e=Pt(e);var n=Bt(t=t.replace(/\\/g,"/"));return t.toLowerCase().startsWith(n.protocol)?n.href:t.startsWith("//")?e.protocol+t:t.startsWith("/")?e.origin+t:e.origin+e.pathname.replace(/\/[^/]*$/,"/")+t}(t,e)}var Gt=function(){return self.AMP.config.urls}();function $t(t,e,n){return Ht(e)?function(t,e,n,r){var i;Ot(!("__amp_source_origin"in function(t){var e,n=m();if(!t)return n;for(;e=yt.exec(t);){var r=wt(e[1],e[1]),i=e[2]?wt(e[2].replace(/\+/g," "),e[2]):"";n[r]=i}return n}(Bt(i=n).search)),"Source origin is not allowed in %s",i);var o=Wt(r),a=Bt(function(t){if(!Wt(t=Pt(t)))return t.href;var e=t.pathname.split("/"),n=e[1];Ot(Nt.has(n),"Unknown path prefix in url %s",t.href);var r=e[2],i="s"==r?"https://"+decodeURIComponent(e[3]):"http://"+decodeURIComponent(r);return Ot(i.indexOf(".")>0,"Expected a . in origin %s",i),e.splice(1,"s"==r?3:2),i+e.join("/")+function(t,e){if(!t||"?"==t)return"";var n=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),r=t.replace(n,"").replace(/^[?&]/,"");return r?"?"+r:""}(t.search)+(t.hash||"")}(r));if("href"==e&&!n.startsWith("#"))return qt(n,a);if("src"==e)return"amp-img"==t?Yt(n,a,o):qt(n,a);if("srcset"==e){var u;try{u=function(t){for(var e,n=[];e=At.exec(t);){var r=e[1],i=void 0,o=void 0;if(e[2]){var a=e[3].toLowerCase();if("w"==a)i=parseInt(e[2],10);else{if("x"!=a)continue;o=parseFloat(e[2])}}else o=1;n.push({url:r,width:i,dpr:o})}return new jt(n)}(n)}catch(t){return kt().error("URL-REWRITE","Failed to parse srcset: ",t),n}return u.stringify((function(t){return Yt(t,a,o)}))}return n}(t,e,n,self.location):n}function Ht(t){return"src"==t||"href"==t||"xlink:href"==t||"srcset"==t}function Yt(t,e,n){var r=Bt(qt(t,e));return"data:"==r.protocol||Wt(r)||!n?r.href:"".concat(Gt.cdn,"/i/")+("https:"==r.protocol?"s/":"")+encodeURIComponent(r.host)+r.pathname+(r.search||"")+(r.hash||"")}var Xt="data-amp-bind-",Vt="i-amphtml-key",Kt={"AMP-IMG":["src","srcset","layout","width","height"]},Zt={"applet":!0,"audio":!0,"base":!0,"embed":!0,"frame":!0,"frameset":!0,"iframe":!0,"img":!0,"link":!0,"meta":!0,"object":!0,"style":!0,"video":!0},Jt={"amp-accordion":!0,"amp-anim":!0,"amp-bind-macro":!0,"amp-carousel":!0,"amp-fit-text":!0,"amp-img":!0,"amp-layout":!0,"amp-selector":!0,"amp-sidebar":!0,"amp-timeago":!0},Qt=["a","amp-img","article","aside","b","blockquote","br","caption","code","col","colgroup","dd","del","details","div","dl","dt","em","figcaption","figure","footer","h1","h2","h3","header","hr","i","ins","li","main","mark","nav","ol","p","pre","q","s","section","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul"],te=["a","article","aside","b","blockquote","br","caption","code","col","colgroup","dd","del","details","div","dl","dt","em","figcaption","figure","footer","h1","h2","h3","header","hr","i","ins","li","main","mark","nav","ol","p","pre","q","s","section","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul"],ee=["amp-fx","fallback","heights","layout","min-font-size","max-font-size","on","option","placeholder","submitting","submit-success","submit-error","validation-for","verify-error","visible-when-invalid","href","style","text","subscriptions-action","subscriptions-actions","subscriptions-decorate","subscriptions-dialog","subscriptions-display","subscriptions-section","subscriptions-service","subscriptions-google-rtc","amp-nested-submenu","amp-nested-submenu-open","amp-nested-submenu-close","itemprop"],ne={"a":["rel","target"],"div":["template"],"form":["action-xhr","verify-xhr","custom-validation-reporting","target"],"input":["mask-output"],"template":["type"],"textarea":["autoexpand"]},re=["_top","_blank"],ie=/^(?:\w+script|data|blob):/i,oe=/^(?:blob):/i,ae=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,ue=Object.freeze({"input":{"type":/(?:image|button)/i}}),se=Object.freeze({"input":{"type":/(?:button|file|image|password)/i}}),ce=Object.freeze(["form","formaction","formmethod","formtarget","formnovalidate","formenctype"]),fe=Object.freeze({"input":ce,"textarea":ce,"select":ce}),le=Object.freeze({"amp-anim":["controls"],"form":["name"]}),pe=/!important|position\s*:\s*fixed|position\s*:\s*sticky/i;function me(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=n?n.replace(ae,""):"";if(!i){if(e.startsWith("on")&&"on"!=e)return!1;var a=o.toLowerCase();if(a.indexOf("<script")>=0||a.indexOf("</script")>=0)return!1;if(ie.test(o))return!1}if(oe.test(o))return!1;if("style"==e)return!pe.test(n);if("class"==e&&n&&/(^|\W)i-amphtml-/i.test(n))return!1;if(Ht(e)&&/__amp_source_origin/.test(n))return!1;var u=gt(r),s=Object.assign(m(),fe,u?le:{})[t];if(s&&-1!=s.indexOf(e))return!1;var c=Object.assign(m(),ue,u?se:{})[t];if(c){var f=c[e];if(f&&-1!=n.search(f))return!1}return!0}var he="purifier",de={"script":{"attribute":"type","values":["application/json","application/ld+json"]}},ve={USE_PROFILES:{html:!0,svg:!0,svgFilters:!0}},be=function(){function t(t,e,n){this.zl=t,this.cR=1,this.fR=bt(self),this.lR=bt(self);var i=Object.assign(e||{},r(r({},ve),{},{ADD_ATTR:ee,ADD_TAGS:["use"],FORBID_TAGS:Object.keys(Zt),FORCE_BODY:!0,RETURN_DOM:!0,ALLOW_UNKNOWN_PROTOCOLS:!0}));this.fR.setConfig(i),this.pR(this.fR,n),this.mR(this.lR)}var e=t.prototype;return e.purifyHtml=function(t){return this.fR.sanitize(t)},e.purifyTagsForTripleMustache=function(t){var e=this.lR.sanitize(t,{"ALLOWED_TAGS":gt(this.zl)?te:Qt,"FORCE_BODY":!0,"RETURN_DOM_FRAGMENT":!0}),n=this.zl.createElement("div");return n.appendChild(e),n.innerHTML},e.getAllowedTags=function(){var t={};this.fR.addHook("uponSanitizeElement",(function(e,n){Object.assign(t,n.allowedTags)}));var e=this.zl.createElement("p");return this.fR.sanitize(e),Object.keys(Zt).forEach((function(e){t[e]=!1})),this.fR.removeHook("uponSanitizeElement"),t},e.validateAttributeChange=function(t,e,n){var r=t.nodeName.toLowerCase(),i=de[r];if(i){var o=i.attribute,a=i.values;if(o===e&&(null==n||!a.includes(n)))return!1}if("a"===r&&"target"===e&&(null==n||!re.includes(n)))return!1;if(null==n)return!0;if(ye(e)!==ge.NONE)return!1;if(!this.fR.isValidAttribute(r,e,n)){var u=ne[r];if(!(u&&u.includes(e)||r.startsWith("amp-")))return!1}var s=t.ownerDocument?t.ownerDocument:t;return!(n&&!me(r,e,n,s,!0))},e.pR=function(t,e){var n,r,i=this,o=gt(this.zl),a=[],u=[];t.addHook("uponSanitizeElement",(function(t,e){var r=e.tagName;if(n=e.allowedTags,r.startsWith("amp-")&&(n[r]=!o||Jt[r]),"a"===r){var i=b(t);i.hasAttribute("href")&&!i.hasAttribute("target")&&i.setAttribute("target","_top")}var u=de[r];if(u){var s=u.attribute,c=u.values,f=b(t);f.hasAttribute(s)&&c.includes(f.getAttribute(s))&&(n[r]=!0,a.push(r))}})),t.addHook("afterSanitizeElements",(function(t){a.forEach((function(t){delete n[t]})),a.length=0})),t.addHook("uponSanitizeAttribute",(function(t,n){var o=t.nodeName.toLowerCase(),a=n.attrName,s=n.attrValue;r=n.allowedAttributes;var c=function(){r[a]||(r[a]=!0,u.push(a))};if(o.startsWith("amp-"))c();else{if("a"==o&&"target"==a){var f=s.toLowerCase();s=re.includes(f)?f:"_top"}var l=ne[o];l&&l.includes(a)&&c()}var p=ye(a);if(p===ge.CLASSIC){var m=a.substring(1,a.length-1);t.setAttribute("".concat(Xt).concat(m),s)}p!==ge.NONE&&t.setAttribute("i-amphtml-binding",""),me(o,a,s,i.zl,!0)?e&&s&&!a.startsWith(Xt)&&(s=e(o,a,s)):(n.keepAttr=!1,kt().error(he,'Removed invalid attribute %s[%s="%s"].',o,a,s)),n.attrValue=s})),t.addHook("afterSanitizeAttributes",(function(t){!function(t,e){var n=t.tagName.startsWith("AMP-"),r=t.hasAttribute("i-amphtml-binding");!r&&Kt[t.tagName]?t.setAttribute("i-amphtml-ignore",""):(r||n)&&(t.hasAttribute(Vt)||t.setAttribute(Vt,String(i.cR++)))}(t),u.forEach((function(t){delete r[t]})),u.length=0,"use"===t.nodeName.toLowerCase()&&["href","xlink:href"].forEach((function(e){t.hasAttribute(e)&&!t.getAttribute(e).startsWith("#")&&(function(t){var e;null===(e=t.parentElement)||void 0===e||e.removeChild(t)}(t),kt().error(he,'Removed invalid <use>. use[href] must start with "#".'))}))}))},e.mR=function(t){var e;t.addHook("uponSanitizeElement",(function(t,n){var r=n.tagName;if(e=n.allowedTags,"template"===r){var i=t.getAttribute("type");i&&"amp-mustache"===i.toLowerCase()&&(e.template=!0)}})),t.addHook("afterSanitizeElements",(function(t){e.template=!1}))},t}(),ge={NONE:0,CLASSIC:1,ALTERNATIVE:2};function ye(t){return"["==t[0]&&"]"==t[t.length-1]?ge.CLASSIC:t.startsWith(Xt)?ge.ALTERNATIVE:ge.NONE}var we={};!function(t){var e=Object.prototype.toString,n=Array.isArray||function(t){return"[object Array]"===e.call(t)};function r(t){return"function"==typeof t}function o(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function a(t,e){return null!=t&&"object"===i(t)&&Object.prototype.hasOwnProperty.call(t,e)}var u=RegExp.prototype.test,s=/\S/,c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"},f=/\s*/,l=/\s+/,p=/\s*=/,m=/\s*\}/,h=/#|\^|\/|>|\{|&|=|!/;function d(t){this.string=t,this.tail=t,this.pos=0}function v(t,e){this.view=t,this.cache={".":this.view},this.parent=e}function b(){this.cache={}}d.prototype.eos=function(){return""===this.tail},d.prototype.scan=function(t){var e=this.tail.match(t);if(!e||0!==e.index)return"";var n=e[0];return this.tail=this.tail.substring(n.length),this.pos+=n.length,n},d.prototype.scanUntil=function(t){var e,n=this.tail.search(t);switch(n){case-1:e=this.tail,this.tail="";break;case 0:e="";break;default:e=this.tail.substring(0,n),this.tail=this.tail.substring(n)}return this.pos+=e.length,e},v.prototype.push=function(t){return new v(t,this)},v.prototype.lookup=function(t){var e,n=this.cache;if(n.hasOwnProperty(t))e=n[t];else{for(var i,o,u=this,s=!1;u;){if(t.indexOf(".")>0)for(e=u.view,i=t.split("."),o=0;null!=e&&o<i.length;){if(!a(e,i[o])){e=null;break}o===i.length-1&&(s=!0),e=e[i[o++]]}else a(u.view,t)?(e=u.view[t],s=!0):e=null;if(s)break;u=u.parent}n[t]=e}return r(e)&&(e=e.call(this.view)),e},b.prototype.clearCache=function(){this.cache={}},b.prototype.parse=function(e,r){var i=this.cache,a=i[e];return null==a&&(a=i[e]=function(e,r){if(!e)return[];var i,a,c,v,b=[],g=[],y=[],w=!1,x=!1;function k(){if(w&&!x)for(;y.length;)delete g[y.pop()];else y=[];w=!1,x=!1}!function(t){if("string"==typeof t&&(t=t.split(l,2)),!n(t)||2!==t.length)throw new Error("Invalid tags: "+t);i=new RegExp(o(t[0])+"\\s*"),a=new RegExp("\\s*"+o(t[1])),c=new RegExp("\\s*"+o("}"+t[1]))}(r||t.tags);for(var E,S,O,A,j,R,T=new d(e);!T.eos();){if(E=T.pos,O=T.scanUntil(i))for(var _=0,z=O.length;_<z;++_)v=A=O.charAt(_),function(t,e){return u.call(t,e)}(s,v)?x=!0:y.push(g.length),g.push(["text",A,E,E+1]),E+=1,"\n"===A&&k();if(!T.scan(i))break;if(w=!0,S=T.scan(h)||"name",T.scan(f),"="===S?(O=T.scanUntil(p),T.scan(p),T.scanUntil(a)):"{"===S?(O=T.scanUntil(c),T.scan(m),T.scanUntil(a),S="&"):O=T.scanUntil(a),!T.scan(a))throw new Error("Unclosed tag at "+T.pos);if(j=[S,O,E,T.pos],g.push(j),"#"===S||"^"===S)b.push(j);else if("/"===S){if(!(R=b.pop()))throw new Error('Unopened section "'+O+'" at '+E);if(R[1]!==O)throw new Error('Unclosed section "'+R[1]+'" at '+E)}else"name"!==S&&"{"!==S&&"&"!==S||(x=!0)}if(R=b.pop())throw new Error('Unclosed section "'+R[1]+'" at '+T.pos);return function(t){for(var e,n=[],r=n,i=[],o=0,a=t.length;o<a;++o)switch((e=t[o])[0]){case"#":case"^":r.push(e),i.push(e),r=e[4]=[];break;case"/":i.pop()[5]=e[2],r=i.length>0?i[i.length-1][4]:n;break;default:r.push(e)}return n}(function(t){for(var e,n,r=[],i=0,o=t.length;i<o;++i)(e=t[i])&&("text"===e[0]&&n&&"text"===n[0]?(n[1]+=e[1],n[3]=e[3]):(r.push(e),n=e));return r}(g))}(e,r)),a},b.prototype.render=function(t,e,n){var r=this.parse(t),i=e instanceof v?e:new v(e);return this.renderTokens(r,i,n,t)},b.prototype.renderTokens=function(t,e,n,r){for(var i,o,a,u="",s=0,c=t.length;s<c;++s)a=void 0,"#"===(o=(i=t[s])[0])?a=this.renderSection(i,e,n,r):"^"===o?a=this.renderInverted(i,e,n,r):">"===o?a=this.renderPartial(i,e,n,r):"&"===o?a=this.unescapedValue(i,e):"name"===o?a=this.escapedValue(i,e):"text"===o&&(a=this.rawValue(i)),void 0!==a&&(u+=a);return u},b.prototype.renderSection=function(t,e,o,a){var u=this,s="",c=e.lookup(t[1]);if(c){if(n(c))for(var f=0,l=c.length;f<l;++f)s+=this.renderTokens(t[4],e.push(c[f]),o,a);else if("object"===i(c)||"string"==typeof c||"number"==typeof c)s+=this.renderTokens(t[4],e.push(c),o,a);else if(r(c)){if("string"!=typeof a)throw new Error("Cannot use higher-order sections without the original template");null!=(c=c.call(e.view,a.slice(t[3],t[5]),(function(t){return u.render(t,e,o)})))&&(s+=c)}else s+=this.renderTokens(t[4],e,o,a);return s}},b.prototype.renderInverted=function(t,e,r,i){var o=e.lookup(t[1]);if(!o||n(o)&&0===o.length)return this.renderTokens(t[4],e,r,i)},b.prototype.renderPartial=function(t,e,n){if(n){var i=r(n)?n(t[1]):n[t[1]];return null!=i?this.renderTokens(this.parse(i),e,n,i):void 0}},b.prototype.unescapedValue=function(e,n){var r=n.lookup(e[1]);if(null!=r)return t.sanitizeUnescaped?t.sanitizeUnescaped(r):r},b.prototype.escapedValue=function(e,n){var r=n.lookup(e[1]);if(null!=r)return t.escape(r)},b.prototype.rawValue=function(t){return t[1]},t.name="mustache.js",t.version="2.2.0",t.tags=["{{","}}"];var g=new b;t.clearCache=function(){return g.clearCache()},t.parse=function(t,e){return g.parse(t,e)},t.render=function(t,e,r){if("string"!=typeof t)throw new TypeError('Invalid template! Template should be a "string" but "'+(n(o=t)?"array":i(o))+'" was given as the first argument for mustache#render(template, view, partials)');var o;return g.render(t,e,r)},t.to_html=function(e,n,i,o){var a=t.render(e,n,i);if(!r(o))return a;o(a)},t.escape=function(t){return String(t).replace(/[&<>"'`=\/]/g,(function(t){return c[t]}))},t.sanitizeUnescaped=null,t.setUnescapedSanitizer=function(e){t.sanitizeUnescaped=e},t.Scanner=d,t.Context=v,t.Writer=b}(we);var xe=we,ke="amp-mustache",Ee=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&o(t,e)}(f,t);var e,n,c=(e=f,n=u(),function(){var t,r=a(e);if(n){var i=a(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return s(this,t)});function f(t,e){var n;return n=c.call(this,t,e),function(t,e,n,r){!function(t,e,n,r,i,o){var a=Ft(t),u=a[n];u||(u=a[n]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:!1}),u.ctor||(u.ctor=r,u.context=e,u.sharedInstance=!1,u.resolve&&Lt(t,n))}(t=It(t),t,e,n)}(e,"purifier",(function(){return new be(e.document,{},$t)})),n.hR=zt(e,"purifier"),xe.setUnescapedSanitizer((function(t){return n.hR.purifyTagsForTripleMustache(t)})),n}var l=f.prototype;return l.compileCallback=function(){if(!this.viewerCanRenderTemplates()){this.dR={},this.vR=this.bR();try{xe.parse(this.vR,void 0)}catch(t){kt().error(ke,t.message,this.element)}}},l.bR=function(){if("TEMPLATE"==this.element.tagName){var t=function(t){if("content"in t)return t.content.cloneNode(!0);var e=t.ownerDocument.createDocumentFragment();return function(t,e){for(var n=e.ownerDocument.createDocumentFragment(),r=t.firstChild;r;r=r.nextSibling)n.appendChild(r.cloneNode(!0));e.appendChild(n)}(t,e),e}(this.element);this.gR(t);var e=this.element.ownerDocument.createElement("div");return e.appendChild(t),e.innerHTML}return"SCRIPT"==this.element.tagName?this.element.textContent:""},l.gR=function(t){var e=this;t.querySelectorAll("template").forEach((function(t,n){var r="__AMP_NESTED_TEMPLATE_".concat(n);e.dR[r]=t.outerHTML;var i=e.element.ownerDocument.createTextNode("{{{".concat(r,"}}}"));t.parentNode.replaceChild(i,t)}))},l.setHtml=function(t){var e="<div>".concat(t,"</div>"),n=this.tryUnwrap(this.yR(e));return this.unwrapChildren(n)},l.render=function(t){return this.tryUnwrap(this.sa(t))},l.renderAsString=function(t){return this.sa(t).innerHTML},l.sa=function(t){var e=t;"object"===i(t)&&(e=r(r({},t),this.dR));var n=xe.render(this.vR,e,void 0);return this.yR(n)},l.yR=function(t){return this.hR.purifyHtml("<div>".concat(t,"</div>")).firstElementChild},f}(function(){function t(t,e){var n,r,i,o;this.element=t,this.win=t.ownerDocument.defaultView||e,this.ls=(n=this.element,r="viewer",Lt((i=Dt(n),(o=Dt(i)).isSingleDoc()?o.win:o),r)),this.compileCallback()}var e=t.prototype;return e.compileCallback=function(){},e.setHtml=function(t){},e.render=function(t){},e.renderAsString=function(t){},e.wR=function(t,e){for(var n=t.firstChild;null!=n;n=n.nextSibling)if(3==n.nodeType){var r=n.textContent.trim();r&&e(r)}else 8==n.nodeType||h(n)&&e(n)},e.tryUnwrap=function(t){var e;return this.wR(t,(function(t){e=void 0===e&&t.nodeType?t:null})),e||t},e.unwrapChildren=function(t){var e=this,n=[];return this.wR(t,(function(t){if("string"==typeof t){var r=e.win.document.createElement("div");r.textContent=t,n.push(r)}else n.push(t)})),n},e.viewerCanRenderTemplates=function(){return this.ls.hasCapability("viewerRenderTemplate")},t}());t.registerTemplate(ke,Ee)}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
  4 +/*!
  5 +* mustache.js - Logic-less {{mustache}} templates with JavaScript
  6 +* http://github.com/janl/mustache.js
  7 +*/
  8 +/*! Bundled license information:
  9 +
  10 +dompurify/dist/purify.es.js:
  11 + (*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE *)
  12 +*/}});
  13 +//# sourceMappingURL=amp-mustache-0.2.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-script",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function e(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}var r;function i(){return r||(r=Promise.resolve(void 0))}var o=function(){var t=this;this.promise=new Promise((function(n,e){t.resolve=n,t.reject=e}))};function a(t,n){return(a=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function s(){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}}function c(t){return(c="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 f(t,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function l(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o=[],a=!0,u=!1;try{for(e=e.call(t);!(a=(r=e.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(t){u=!0,i=t}finally{try{a||null==e.return||e.return()}finally{if(u)throw i}}return o}}(t,n)||e(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,n,e){return n&&h(t.prototype,n),e&&h(t,e),t}function m(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=function(t,n,e,r,i){var o=i.executorsAllowed.includes(8);return{execute:function(t,r,i){return o&&i&&(t=n.getNode(t[r+1]))&&(i=t.transferControlToOffscreen(),e.messageToWorker({12:9,13:[t._index_],38:i},[i])),r+2}}},v=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14],b=function(t,n){return Array.prototype.forEach.call(t,n)},g=function(){function t(t,n){var e=this;this.nodes=this.count=this.stringContext=this.baseElement=void 0,this.createNodes=function(t,n){for(var r=(t=new Uint16Array(t)).length,i=0;i<r;i+=5){var o=void 0;if(3===t[i+1])o=document.createTextNode(e.stringContext.get(t[i+3]));else if(8===t[i+1])o=document.createComment(e.stringContext.get(t[i+3]));else if(11===t[i+1])o=document.createDocumentFragment();else if(o=e.stringContext.get(t[i+2]),o=0!==t[i+4]?document.createElementNS(e.stringContext.get(t[i+4]),o):document.createElement(o),n&&!n.sanitize(o))continue;e.storeNode(o,t[i])}},this.getNode=function(t){return(t=e.nodes.get(t))&&"BODY"===t.nodeName?e.baseElement:t},this.storeNodes=function(t){e.storeNode(t,++e.count),b(t.childNodes,(function(t){return e.storeNodes(t)}))},this.count=2,this.stringContext=t,this.nodes=new Map([[1,n],[2,n]]),this.baseElement=n,n._index_=2,b(n.childNodes,(function(t){return e.storeNodes(t)}))}return t.prototype.storeNode=function(t,n){t._index_=n,this.nodes.set(n,t)},t}(),y=new Map,w=function(t,n){n&&"value"in n&&null===n.oninput&&(n.oninput=function(){return k(t,n)})},x=function(t,n){n&&"value"in n&&!y.get(n)&&(new MutationObserver((function(n){return n.map((function(n){return k(t,n.target)}))})).observe(n,{attributes:!0}),y.set(n,!0))},k=function(t,n){return t.messageToWorker({12:4,40:{7:n._index_,21:n.value}})},O=function(t){return Object.values(t).map((function(t){return[t.identifier,t.screenX,t.screenY,t.clientX,t.clientY,t.pageX,t.pageY,t.target._index_]}))},S=function(t,n,e,r,i){var o=[],a=i.executorsAllowed.includes(4),u=[window.innerWidth,window.innerHeight],s=function(t,n){return function(r){n&&r.preventDefault();var i=r.currentTarget;if(i&&"value"in i)k(e,r.currentTarget);else if("resize"===r.type){var o=window,a=o.innerWidth,s=o.innerHeight;if(u[0]===a&&u[1]===s)return;u=[window.innerWidth,window.innerHeight],e.messageToWorker({12:5,40:u})}e.messageToWorker({12:1,39:{7:t,25:r.bubbles,26:r.cancelable,27:r.cancelBubble,28:[r.currentTarget._index_||0],29:r.defaultPrevented,30:r.eventPhase,31:r.isTrusted,32:r.returnValue,13:[r.target._index_||0],33:r.timeStamp,12:r.type,35:"keyCode"in r?r.keyCode:void 0,60:"pageX"in r?r.pageX:void 0,61:"pageY"in r?r.pageY:void 0,65:"offsetX"in r?r.offsetX:void 0,66:"offsetY"in r?r.offsetY:void 0,62:"touches"in r?O(r.touches):void 0,63:"changedTouches"in r?O(r.changedTouches):void 0}})}};return{execute:function(r,i,u){var c=r[i+2],f=i+4+2*c;if(c=i+4+6*r[i+3]+2*c,a&&u&&(u=n.getNode(r[i+1])))for(var l=i+4;l<c;){var h=l<=f;i=u;var p=h,m=r,d=l,v=t.get(m[d]),b=m[d+1];if(i!==n.baseElement){var g=null!==i.oninput,y="change"===v;p?(y&&(g=!0,i.onchange=null),i.addEventListener(v,o[b]=s(i._index_,!!m[d+5]))):(y&&(g=!1),i.removeEventListener(v,o[b])),i&&"value"in i&&(g||w(e,i),x(e,i))}else p?addEventListener(v,o[b]=s(1,!!m[d+5])):removeEventListener(v,o[b]);l+=h?2:6}return c}}},j=function(t,n,e,r,i){var o=i.executorsAllowed.includes(5);return{execute:function(t,r,i){return o&&i&&(t=n.getNode(t[r+1]))&&(i=t.getBoundingClientRect(),e.messageToWorker({12:6,13:[t._index_],38:[i.top,i.right,i.bottom,i.left,i.width,i.height]})),r+2}}},A=function(t,n,e,r,i){var o=n.getNode,a=i.executorsAllowed.includes(2);return{execute:function(t,n,r){var i=t[n+4],u=t[n+5];if(a&&r){var s=o(t[n+1]);s&&(0<u&&t.slice(n+6+i,n+6+i+u).forEach((function(t){(t=o(t))&&t.remove()})),0<i&&t.slice(n+6,n+6+i).forEach((function(r){var i=t[n+2];(r=o(r))&&(s.insertBefore(r,i&&o(i)||null),w(e,r),x(e,r))})))}return n+6+i+u}}},E=function(t,n,e,r,i){var o=i.executorsAllowed.includes(0);return{execute:function(e,r,a){if(o&&a){a=n.getNode(e[r+1]);var u=t.get(e[r+2]);e=0!==(e=e[r+4])?t.get(e-1):null,a&&null!=u&&(i.sanitizer?i.sanitizer.setAttribute(a,u,e):null==e?a.removeAttribute(u):a.setAttribute(u,e))}return r+5}}},R=function(t,n,e,r,i){var o=i.executorsAllowed.includes(1);return{execute:function(e,r,i){return o&&i&&(i=n.getNode(e[r+1]),e=e[r+2],i&&e&&(i.textContent=t.get(e))),r+3}}},T=function(t,n,e,r,i){var o=i.executorsAllowed.includes(3);return{execute:function(e,r,a){if(o&&a){a=n.getNode(e[r+1]);var u=t.get(e[r+2]),s=e[r+4];e=1===e[r+3]?1===s:0!==s?t.get(s):null,a&&u&&null!=e&&(i.sanitizer?i.sanitizer.setProperty(a,u,String(e)):a[u]=e)}return r+5}}},_=function(t,n,e,r,o){var a,u=o.executorsAllowed.includes(6),s=0;return{execute:function(t,n,e){if(u&&e&&o.longTask)if(6===t[n]){if(s++,!a){var r=new Promise((function(t){return a=t}));i().then((function(){return o.longTask&&o.longTask(r)}))}}else 7===t[n]&&(s--,a&&0>=s&&(a(),a=null,s=0));return n+2},get active(){return null!==a}}},M=new Float32Array(1),z=new Uint16Array(M.buffer);function D(t,n,e,r,i,o){for(var a=[],u=0;u<e;u++)switch(t[n++]){case 1:a.push(t[n++]);break;case 2:z[0]=t[n++],z[1]=t[n++],a.push(M[0]);break;case 3:a.push(r.get(t[n++]));break;case 4:var s=t[n++];n=D(t,n,s,r,i,o),a.push(n.args),n=n.offset;break;case 5:if(!o)throw Error("objectContext not provided.");a.push(o.get(t[n++]));break;case 6:s=i.getNode(t[n++]),a.push(s.getContext("2d"));break;case 7:a.push(i.getNode(t[n++]));break;default:throw Error("Cannot deserialize argument.")}return{args:a,offset:n}}var C=function(t,n,e,r,i){var o=i.executorsAllowed.includes(9);return{execute:function(e,i,a){var u,s=t.get(e[i+1]),c=e[i+2],f=D(e,i+3,1,t,n,r),l=f.offset;i=f.args[0];var h=D(e,l,c,t,n,r),p=h.offset,d=h.args;return o&&a&&(L(i,s)?i[s]=d[0]:(u=i)[s].apply(u,m(d))),p}}};function L(t,n){if(!t)throw Error("Property ".concat(n," does not exist on ").concat(t,"."));var e=Object.getOwnPropertyDescriptor(t,n);return void 0!==e?"set"in e:L(Object.getPrototypeOf(t),n)}var I=function(t,n,e,r,i){var o=i.executorsAllowed.includes(10);if(!r)throw Error("objectContext is not defined.");return{execute:function(e,i,a){var u,s=t.get(e[i+1]),c=e[i+2],f=e[i+3],l=D(e,i+4,1,t,n,r),h=l.offset;i=l.args[0];var p=D(e,h,f,t,n,r),d=p.offset,v=p.args;return o&&a&&"new"!==s&&r.store(c,(u=i)[s].apply(u,m(v))),d}}},N=function(t,n,e,r,i){var o=i.executorsAllowed.includes(11);return{execute:function(t,r,i){return o&&i&&(i=n.getNode(t[r+1]))&&self.createImageBitmap(i).then((function(n){e.messageToWorker({12:10,73:t[r+2],38:n},[n])})),r+3}}},F=function(t,n,e,r,i){var o=i.executorsAllowed.includes(12);return{execute:function(n,r,a){if(o&&a){a=n[r+1];var u=n[r+2],s=n[r+3],c=n[r+4];if(n=0<s?t.get(s-1):"",s=0<c?t.get(c-1):null,1===a)l=u,h=n,i.sanitizer&&2===l&&i.sanitizer.getStorage(l,h).then((function(t){e.messageToWorker({12:11,74:h,75:l,21:t})}));else if(2===a)if(a=u,u=n,n=s,i.sanitizer)i.sanitizer.setStorage(a,u,n);else{var f;if(0===a?f=window.localStorage:1===a&&(f=window.sessionStorage),f)if(null==u){if(null!=n)throw Error("Unexpected storage operation.");f.clear()}else null==n?f.removeItem(u):f.setItem(u,n)}}var l,h;return r+5}}},U=0,P={},B=function(t,n,e,r,i){var o=i.executorsAllowed.includes(13);return{execute:function(n,e){if(o){var r=n[e+1],i=n[e+2];n=n[e+3],n=t.hasIndex(n)?JSON.parse(t.get(n)):void 0,1===r?P[i].resolve(n):P[i].reject(n),delete P[i]}return e+4}}},W=function(t,n,e,r,i){var o=i.executorsAllowed.includes(14);return{execute:function(t,e,r){return o&&r&&(t=n.getNode(t[e+1]))&&t.scrollIntoView(),e+2}}},q=function(){function t(t,n,e,r,i){var o=this;this.nodeContext=this.stringContext=void 0,this.mutationQueue=[],this.pendingMutations=!1,this.executors=this.sanitizer=this.mutationPumpFunction=void 0,this.syncFlush=function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=[];return o.mutationQueue.forEach((function(e){for(var r=e.length,i=0;i<r;){var a,u=e[i];if(!(a=t)){t:switch(u){case 4:case 5:case 6:case 7:case 12:case 8:case 13:a=!1;break t;default:a=!0}a=!a}a||n.push(u),i=o.executors[u].execute(e,i,a)}})),o.mutationQueue=[],o.pendingMutations=!1,n},this.stringContext=t,this.nodeContext=n,this.sanitizer=r.sanitizer,this.mutationPumpFunction=r.mutationPump,n=_.apply(null,t=[t,n,e,i,r]),this.executors={2:A.apply(null,t),0:E.apply(null,t),1:R.apply(null,t),3:T.apply(null,t),4:S.apply(null,t),5:j.apply(null,t),6:n,7:n,8:d.apply(null,t),9:C.apply(null,t),10:I.apply(null,t),11:N.apply(null,t),12:F.apply(null,t),13:B.apply(null,t),14:W.apply(null,t)}}return t.prototype.mutate=function(t,n,e,r){this.stringContext.storeValues(e),this.nodeContext.createNodes(n,this.sanitizer),this.mutationQueue=this.mutationQueue.concat(r),this.pendingMutations||(this.pendingMutations=!0,this.mutationPumpFunction(this.syncFlush,t))},t}(),J=function(){function t(){this.strings=[]}var n=t.prototype;return n.get=function(t){return this.strings[t]||""},n.hasIndex=function(t){return void 0!==this.strings[t]},n.store=function(t){return this.strings.push(t),this.strings.length-1},n.storeValues=function(t){var n=this;t.forEach((function(t){return n.store(t)}))},t}(),G=[8,3];function Y(t,n,e,r){var i=[].slice.call(t.childNodes).filter(e);return i={7:t._index_,11:0,0:t.nodeType,1:n(t.localName||t.nodeName),4:i.map((function(t){return Y(t,n,e,r)})),2:[].map.call(t.attributes||[],(function(t){return[n(t.namespaceURI||"null"),n(t.name),n(t.value)]}))},null!=t.namespaceURI&&(i[6]=n(t.namespaceURI)),G.includes(t.nodeType)&&null!==t.textContent&&(i[5]=n(t.textContent)),w(r,t),x(r,t),i}function $(){return $=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e,r=arguments[n];for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t},$.apply(this,arguments)}var H=function(){function t(t,n){var e=this;this.readyPromiseResolve=this.iframe=this.readyPromise=this.onmessageerror=this.onmessage=this.onerror=this.url=void 0,this.url=t,this.iframe=window.document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-scripts"),this.iframe.setAttribute("style","display:none"),this.iframe.setAttribute("src",n),this.url=t,this.readyPromise=new Promise((function(t){e.readyPromiseResolve=t})),this.setupInit(),this.proxyFromWorker(),window.document.body.appendChild(this.iframe)}var n=t.prototype;return n.setupInit=function(){var t=this;window.addEventListener("message",(function n(e){e.source==t.iframe.contentWindow&&fetch(t.url.toString()).then((function(t){return t.text()})).then((function(r){var i=e.data;"iframe-ready"==i.type?t.iframe.contentWindow.postMessage({type:"init-worker",code:r},"*"):"worker-ready"===i.type&&(t.readyPromiseResolve(),window.removeEventListener("message",n))}))}))},n.proxyFromWorker=function(){var t=this;window.addEventListener("message",(function(n){if(n.source==t.iframe.contentWindow){var e=n.data,r=e.type,i=e.message;"onmessage"==r&&t.onmessage?t.onmessage($({},n,{data:i})):"onerror"===r&&t.onerror?t.onerror(i):"onmessageerror"===r&&t.onmessageerror&&t.onmessageerror($({},n,{data:i}))}}))},n.postMessage=function(t,n){var e=this,r={type:"postMessage",message:t};this.readyPromise.then((function(){e.iframe.contentWindow.postMessage(r,"*",n)}))},n.terminate=function(){this.iframe.contentWindow.postMessage({type:"terminate"},"*"),this.iframe.remove()},t}(),X=function(){function t(t,n,e,r,i){this[55]=void 0,this.nodeContext=n,this.config=i;var o=function(t,n,e){n=n.hydrateFilter||function(){return!0};var r=[],i=new Map;return{skeleton:Y(t,(function(t){if(i.has(t))return i.get(t);var n=r.length;return i.set(t,n),r.push(t),n}),n,e),strings:r}}(t,i,this),a=o.skeleton,u=o.strings;n=[];var s=[],c=V("localStorage"),f=V("sessionStorage");for(var l in t.style)n.push(l);for(var h in t)h.startsWith("on")&&s.push(h);e="'use strict';(function(){".concat(e,"self['window']=self;var workerDOM=WorkerThread.workerDOM;WorkerThread.hydrate(workerDOM.document,").concat(JSON.stringify(u),",").concat(JSON.stringify(a),",").concat(JSON.stringify(n),",").concat(JSON.stringify(s),",[").concat(window.innerWidth,",").concat(window.innerHeight,"],").concat(JSON.stringify(c),",").concat(JSON.stringify(f),");workerDOM.document[59](this);Object.assign(self,workerDOM);}).call(self);").concat(r,"//# sourceURL=").concat(encodeURI(i.authorURL)),this[55]=i.sandbox?new H(URL.createObjectURL(new Blob([e])),i.sandbox.iframeUrl):new Worker(URL.createObjectURL(new Blob([e]))),i.onCreateWorker&&i.onCreateWorker(t,u,a,n)}var n=t.prototype;return n.ready=function(){return this.worker.readyPromise||i()},n.messageToWorker=function(t,n){this.config.onSendMessage&&this.config.onSendMessage(t),this.worker.postMessage(t,n||[])},p(t,[{key:"worker",get:function(){return this[55]}}]),t}();function V(t,n){try{return n?{storage:n.getStorage("localStorage"==t?0:1),errorMsg:null}:{storage:window[t],errorMsg:null}}catch(t){return{errorMsg:t.message,storage:null}}}var K=function(){function t(){this.objects=void 0,this.objects=new Map}var n=t.prototype;return n.store=function(t,n){this.objects.set(t,n)},n.get=function(t){var n=this.objects.get(t);if(n)return n;throw Error("Object with id ("+t+") does not exist.")},t}(),Z=function(){function t(t,n){this.workerContext_=t,this.config=n}var n=t.prototype;return n.callFunction=function(t){if(!this.config.executorsAllowed.includes(13))throw Error("[worker-dom]: Error calling ".concat(t,". You must enable the FUNCTION_CALL executor within the config."));for(var n=function(){var t,n,e=new Promise((function(e,r){t=e,n=r}));U>=Number.MAX_VALUE&&(U=0);var r=U++;return P[r]={promise:e,resolve:t,reject:n},{promise:e,index:r}}(),e=n.promise,r=n.index,i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t={12:12,77:t,78:JSON.stringify(o),7:r},this.workerContext_.messageToWorker(t),e},n.terminate=function(){this.workerContext_.worker.terminate()},p(t,[{key:"onerror",set:function(t){this.workerContext_.worker.onerror=t}}]),t}(),Q=[3,2],tt=function(t){return null===t.parentNode||(t=(t.parentNode.localName||t.parentNode.nodeName).toLowerCase(),!/amp-/.test(t)||"amp-script"===t)};function nt(t,n){for(var e=[],r=0,i=0;i<t.length;i++){var o=t[i];n(o,i,t)?e.push(o):(r<i&&(t[r]=o),r++)}return r<t.length&&(t.length=r),e}Array.isArray;var et=Object.prototype;function rt(t){var n=Object.create(null);return t&&Object.assign(n,t),n}function it(t){return 1==(null==t?void 0:t.nodeType)}function ot(t){return it(t)?t.tagName.toLowerCase()+(t.id?"#".concat(t.id):""):t}function at(t,n,e,r,i,o,a,u,s,c,f){return t}function ut(t,n){return t}function st(t,n,e,r,i,o,a,u,s,c,f){return function(t,n){var e,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(n)return n;t&&-1==i.indexOf(t)&&(i+=t);for(var o=3,a=i.split("%s"),u=a.shift(),s=[u];a.length;){var c=arguments[o++],f=a.shift();u+=ot(c)+f,s.push(c,f.trim())}var l=new Error(u);throw l.messageArray=nt(s,(function(t){return""!==t})),null===(e=(r=self).__AMP_REPORT_ERROR)||void 0===e||e.call(r,l),l}("​​​",t,n,e,r,i,o,a,u,s,c,f)}function ct(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}function ft(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function lt(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function ht(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?lt(Object(e),!0).forEach((function(n){ft(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):lt(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function pt(t,n,e){return(pt=s()?Reflect.construct:function(t,n,e){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(t,r));return e&&a(i,e.prototype),i}).apply(null,arguments)}et.hasOwnProperty,et.toString;var mt=Object.entries,dt=Object.setPrototypeOf,vt=Object.isFrozen,bt=Object.getPrototypeOf,gt=Object.getOwnPropertyDescriptor,yt=Object.freeze,wt=Object.seal,xt=Object.create,kt="undefined"!=typeof Reflect&&Reflect,Ot=kt.apply,St=kt.construct;Ot||(Ot=function(t,n,e){return t.apply(n,e)}),yt||(yt=function(t){return t}),wt||(wt=function(t){return t}),St||(St=function(t,n){return pt(t,m(n))});var jt,At=Nt(Array.prototype.forEach),Et=Nt(Array.prototype.pop),Rt=Nt(Array.prototype.push),Tt=Nt(String.prototype.toLowerCase),_t=Nt(String.prototype.toString),Mt=Nt(String.prototype.match),zt=Nt(String.prototype.replace),Dt=Nt(String.prototype.indexOf),Ct=Nt(String.prototype.trim),Lt=Nt(RegExp.prototype.test),It=(jt=TypeError,function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return St(jt,n)});function Nt(t){return function(n){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return Ot(t,n,r)}}function Ft(t,n,e){e=e||Tt,dt&&dt(t,null);for(var r=n.length;r--;){var i=n[r];if("string"==typeof i){var o=e(i);o!==i&&(vt(n)||(n[r]=o),i=o)}t[i]=!0}return t}function Ut(t){for(var n,r=xt(null),i=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=e(t))||t&&"number"==typeof t.length){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(mt(t));!(n=i()).done;){var o=l(n.value,2),a=o[0],u=o[1];r[a]=u}return r}function Pt(t,n){for(;null!==t;){var e=gt(t,n);if(e){if(e.get)return Nt(e.get);if("function"==typeof e.value)return Nt(e.value)}t=bt(t)}return function(t){return console.warn("fallback value for",t),null}}var Bt=yt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wt=yt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),qt=yt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Jt=yt(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Gt=yt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Yt=yt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$t=yt(["#text"]),Ht=yt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Xt=yt(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Vt=yt(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Kt=yt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zt=wt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Qt=wt(/<%[\w\W]*|[\w\W]*%>/gm),tn=wt(/\${[\w\W]*}/gm),nn=wt(/^data-[\-\w.\u00B7-\uFFFF]/),en=wt(/^aria-[\-\w]+$/),rn=wt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),on=wt(/^(?:\w+script|data):/i),an=wt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),un=wt(/^html$/i),sn=Object.freeze({__proto__:null,MUSTACHE_EXPR:Zt,ERB_EXPR:Qt,TMPLIT_EXPR:tn,DATA_ATTR:nn,ARIA_ATTR:en,IS_ALLOWED_URI:rn,IS_SCRIPT_OR_DATA:on,ATTR_WHITESPACE:an,DOCTYPE_NAME:un}),cn=function(){return"undefined"==typeof window?null:window},fn=function(t,n){if("object"!==c(t)||"function"!=typeof t.createPolicy)return null;var e=null,r="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(r)&&(e=n.currentScript.getAttribute(r));var i="dompurify"+(e?"#"+e:"");try{return t.createPolicy(i,{createHTML:function(t){return t},createScriptURL:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}},ln=function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cn(),e=function(n){return t(n)};if(e.version="3.0.2",e.removed=[],!n||!n.document||9!==n.document.nodeType)return e.isSupported=!1,e;var r=n.document,i=n.document,o=n.DocumentFragment,a=n.HTMLTemplateElement,u=n.Node,s=n.Element,f=n.NodeFilter,l=n.NamedNodeMap,h=void 0===l?n.NamedNodeMap||n.MozNamedAttrMap:l,p=n.HTMLFormElement,d=n.DOMParser,v=n.trustedTypes,b=s.prototype,g=Pt(b,"cloneNode"),y=Pt(b,"nextSibling"),w=Pt(b,"childNodes"),x=Pt(b,"parentNode");if("function"==typeof a){var k=i.createElement("template");k.content&&k.content.ownerDocument&&(i=k.content.ownerDocument)}var O=fn(v,r),S=O?O.createHTML(""):"",j=i,A=j.implementation,E=j.createNodeIterator,R=j.createDocumentFragment,T=j.getElementsByTagName,_=r.importNode,M={};e.isSupported="function"==typeof mt&&"function"==typeof x&&A&&void 0!==A.createHTMLDocument;var z,D,C=sn.MUSTACHE_EXPR,L=sn.ERB_EXPR,I=sn.TMPLIT_EXPR,N=sn.DATA_ATTR,F=sn.ARIA_ATTR,U=sn.IS_SCRIPT_OR_DATA,P=sn.ATTR_WHITESPACE,B=sn.IS_ALLOWED_URI,W=null,q=Ft({},[].concat(m(Bt),m(Wt),m(qt),m(Gt),m($t))),J=null,G=Ft({},[].concat(m(Ht),m(Xt),m(Vt),m(Kt))),Y=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$=null,H=null,X=!0,V=!0,K=!1,Z=!0,Q=!1,tt=!1,nt=!1,et=!1,rt=!1,it=!1,ot=!1,at=!0,ut=!1,st="user-content-",ct=!0,ft=!1,lt={},ht=null,pt=Ft({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),dt=null,vt=Ft({},["audio","video","img","source","image","track"]),bt=null,gt=Ft({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wt="http://www.w3.org/1998/Math/MathML",xt="http://www.w3.org/2000/svg",kt="http://www.w3.org/1999/xhtml",Ot=kt,St=!1,jt=null,Nt=Ft({},[wt,xt,kt],_t),Zt=["application/xhtml+xml","text/html"],Qt="text/html",tn=null,nn=i.createElement("form"),en=function(t){return t instanceof RegExp||t instanceof Function},on=function(t){tn&&tn===t||(t&&"object"===c(t)||(t={}),t=Ut(t),z=z=-1===Zt.indexOf(t.PARSER_MEDIA_TYPE)?Qt:t.PARSER_MEDIA_TYPE,D="application/xhtml+xml"===z?_t:Tt,W="ALLOWED_TAGS"in t?Ft({},t.ALLOWED_TAGS,D):q,J="ALLOWED_ATTR"in t?Ft({},t.ALLOWED_ATTR,D):G,jt="ALLOWED_NAMESPACES"in t?Ft({},t.ALLOWED_NAMESPACES,_t):Nt,bt="ADD_URI_SAFE_ATTR"in t?Ft(Ut(gt),t.ADD_URI_SAFE_ATTR,D):gt,dt="ADD_DATA_URI_TAGS"in t?Ft(Ut(vt),t.ADD_DATA_URI_TAGS,D):vt,ht="FORBID_CONTENTS"in t?Ft({},t.FORBID_CONTENTS,D):pt,$="FORBID_TAGS"in t?Ft({},t.FORBID_TAGS,D):{},H="FORBID_ATTR"in t?Ft({},t.FORBID_ATTR,D):{},lt="USE_PROFILES"in t&&t.USE_PROFILES,X=!1!==t.ALLOW_ARIA_ATTR,V=!1!==t.ALLOW_DATA_ATTR,K=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Q=t.SAFE_FOR_TEMPLATES||!1,tt=t.WHOLE_DOCUMENT||!1,rt=t.RETURN_DOM||!1,it=t.RETURN_DOM_FRAGMENT||!1,ot=t.RETURN_TRUSTED_TYPE||!1,et=t.FORCE_BODY||!1,at=!1!==t.SANITIZE_DOM,ut=t.SANITIZE_NAMED_PROPS||!1,ct=!1!==t.KEEP_CONTENT,ft=t.IN_PLACE||!1,B=t.ALLOWED_URI_REGEXP||rn,Ot=t.NAMESPACE||kt,Y=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&en(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&en(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Y.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(V=!1),it&&(rt=!0),lt&&(W=Ft({},m($t)),J=[],!0===lt.html&&(Ft(W,Bt),Ft(J,Ht)),!0===lt.svg&&(Ft(W,Wt),Ft(J,Xt),Ft(J,Kt)),!0===lt.svgFilters&&(Ft(W,qt),Ft(J,Xt),Ft(J,Kt)),!0===lt.mathMl&&(Ft(W,Gt),Ft(J,Vt),Ft(J,Kt))),t.ADD_TAGS&&(W===q&&(W=Ut(W)),Ft(W,t.ADD_TAGS,D)),t.ADD_ATTR&&(J===G&&(J=Ut(J)),Ft(J,t.ADD_ATTR,D)),t.ADD_URI_SAFE_ATTR&&Ft(bt,t.ADD_URI_SAFE_ATTR,D),t.FORBID_CONTENTS&&(ht===pt&&(ht=Ut(ht)),Ft(ht,t.FORBID_CONTENTS,D)),ct&&(W["#text"]=!0),tt&&Ft(W,["html","head","body"]),W.table&&(Ft(W,["tbody"]),delete $.tbody),yt&&yt(t),tn=t)},an=Ft({},["mi","mo","mn","ms","mtext"]),ln=Ft({},["foreignobject","desc","title","annotation-xml"]),hn=Ft({},["title","style","font","a","script"]),pn=Ft({},Wt);Ft(pn,qt),Ft(pn,Jt);var mn=Ft({},Gt);Ft(mn,Yt);var dn=function(t){var n=x(t);n&&n.tagName||(n={namespaceURI:Ot,tagName:"template"});var e=Tt(t.tagName),r=Tt(n.tagName);return!!jt[t.namespaceURI]&&(t.namespaceURI===xt?n.namespaceURI===kt?"svg"===e:n.namespaceURI===wt?"svg"===e&&("annotation-xml"===r||an[r]):Boolean(pn[e]):t.namespaceURI===wt?n.namespaceURI===kt?"math"===e:n.namespaceURI===xt?"math"===e&&ln[r]:Boolean(mn[e]):t.namespaceURI===kt?!(n.namespaceURI===xt&&!ln[r])&&!(n.namespaceURI===wt&&!an[r])&&!mn[e]&&(hn[e]||!pn[e]):!("application/xhtml+xml"!==z||!jt[t.namespaceURI]))},vn=function(t){Rt(e.removed,{element:t});try{t.parentNode.removeChild(t)}catch(n){t.remove()}},bn=function(t,n){try{Rt(e.removed,{attribute:n.getAttributeNode(t),from:n})}catch(t){Rt(e.removed,{attribute:null,from:n})}if(n.removeAttribute(t),"is"===t&&!J[t])if(rt||it)try{vn(n)}catch(t){}else try{n.setAttribute(t,"")}catch(t){}},gn=function(t){var n,e;if(et)t="<remove></remove>"+t;else{var r=Mt(t,/^[\r\n\t ]+/);e=r&&r[0]}"application/xhtml+xml"===z&&Ot===kt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var o=O?O.createHTML(t):t;if(Ot===kt)try{n=(new d).parseFromString(o,z)}catch(t){}if(!n||!n.documentElement){n=A.createDocument(Ot,"template",null);try{n.documentElement.innerHTML=St?S:o}catch(t){}}var a=n.body||n.documentElement;return t&&e&&a.insertBefore(i.createTextNode(e),a.childNodes[0]||null),Ot===kt?T.call(n,tt?"html":"body")[0]:tt?n.documentElement:a},yn=function(t){return E.call(t.ownerDocument||t,t,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT,null,!1)},wn=function(t){return t instanceof p&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},xn=function(t){return"object"===c(u)?t instanceof u:t&&"object"===c(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},kn=function(t,n,r){M[t]&&At(M[t],(function(t){t.call(e,n,r,tn)}))},On=function(t){var n;if(kn("beforeSanitizeElements",t,null),wn(t))return vn(t),!0;var r=D(t.nodeName);if(kn("uponSanitizeElement",t,{tagName:r,allowedTags:W}),t.hasChildNodes()&&!xn(t.firstElementChild)&&(!xn(t.content)||!xn(t.content.firstElementChild))&&Lt(/<[/\w]/g,t.innerHTML)&&Lt(/<[/\w]/g,t.textContent))return vn(t),!0;if(!W[r]||$[r]){if(!$[r]&&jn(r)){if(Y.tagNameCheck instanceof RegExp&&Lt(Y.tagNameCheck,r))return!1;if(Y.tagNameCheck instanceof Function&&Y.tagNameCheck(r))return!1}if(ct&&!ht[r]){var i=x(t)||t.parentNode,o=w(t)||t.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(g(o[a],!0),y(t))}return vn(t),!0}return t instanceof s&&!dn(t)?(vn(t),!0):"noscript"!==r&&"noembed"!==r||!Lt(/<\/no(script|embed)/i,t.innerHTML)?(Q&&3===t.nodeType&&(n=t.textContent,n=zt(n,C," "),n=zt(n,L," "),n=zt(n,I," "),t.textContent!==n&&(Rt(e.removed,{element:t.cloneNode()}),t.textContent=n)),kn("afterSanitizeElements",t,null),!1):(vn(t),!0)},Sn=function(t,n,e){if(at&&("id"===n||"name"===n)&&(e in i||e in nn))return!1;if(V&&!H[n]&&Lt(N,n));else if(X&&Lt(F,n));else if(!J[n]||H[n]){if(!(jn(t)&&(Y.tagNameCheck instanceof RegExp&&Lt(Y.tagNameCheck,t)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(t))&&(Y.attributeNameCheck instanceof RegExp&&Lt(Y.attributeNameCheck,n)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(n))||"is"===n&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&Lt(Y.tagNameCheck,e)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(e))))return!1}else if(bt[n]);else if(Lt(B,zt(e,P,"")));else if("src"!==n&&"xlink:href"!==n&&"href"!==n||"script"===t||0!==Dt(e,"data:")||!dt[t])if(K&&!Lt(U,zt(e,P,"")));else if(e)return!1;return!0},jn=function(t){return t.indexOf("-")>0},An=function(t){var n,r,i,o;kn("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J};for(o=a.length;o--;){var s=n=a[o],f=s.name,l=s.namespaceURI;if(r="value"===f?n.value:Ct(n.value),i=D(f),u.attrName=i,u.attrValue=r,u.keepAttr=!0,u.forceKeepAttr=void 0,kn("uponSanitizeAttribute",t,u),r=u.attrValue,!u.forceKeepAttr&&(bn(f,t),u.keepAttr))if(Z||!Lt(/\/>/i,r)){Q&&(r=zt(r,C," "),r=zt(r,L," "),r=zt(r,I," "));var h=D(t.nodeName);if(Sn(h,i,r)){if(!ut||"id"!==i&&"name"!==i||(bn(f,t),r=st+r),O&&"object"===c(v)&&"function"==typeof v.getAttributeType)if(l);else switch(v.getAttributeType(h,i)){case"TrustedHTML":r=O.createHTML(r);break;case"TrustedScriptURL":r=O.createScriptURL(r)}try{l?t.setAttributeNS(l,f,r):t.setAttribute(f,r),Et(e.removed)}catch(t){}}}else bn(f,t)}kn("afterSanitizeAttributes",t,null)}},En=function t(n){var e,r=yn(n);for(kn("beforeSanitizeShadowDOM",n,null);e=r.nextNode();)kn("uponSanitizeShadowNode",e,null),On(e)||(e.content instanceof o&&t(e.content),An(e));kn("afterSanitizeShadowDOM",n,null)};return e.sanitize=function(t){var n,i,a,s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((St=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!xn(t)){if("function"!=typeof t.toString)throw It("toString is not a function");if("string"!=typeof(t=t.toString()))throw It("dirty is not a string, aborting")}if(!e.isSupported)return t;if(nt||on(c),e.removed=[],"string"==typeof t&&(ft=!1),ft){if(t.nodeName){var f=D(t.nodeName);if(!W[f]||$[f])throw It("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)1===(i=(n=gn("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!rt&&!Q&&!tt&&-1===t.indexOf("<"))return O&&ot?O.createHTML(t):t;if(!(n=gn(t)))return rt?null:ot?S:""}n&&et&&vn(n.firstChild);for(var l=yn(ft?t:n);a=l.nextNode();)On(a)||(a.content instanceof o&&En(a.content),An(a));if(ft)return t;if(rt){if(it)for(s=R.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(J.shadowroot||J.shadowrootmod)&&(s=_.call(r,s,!0)),s}var h=tt?n.outerHTML:n.innerHTML;return tt&&W["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Lt(un,n.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+h),Q&&(h=zt(h,C," "),h=zt(h,L," "),h=zt(h,I," ")),O&&ot?O.createHTML(h):h},e.setConfig=function(t){on(t),nt=!0},e.clearConfig=function(){tn=null,nt=!1},e.isValidAttribute=function(t,n,e){tn||on({});var r=D(t),i=D(n);return Sn(r,i,e)},e.addHook=function(t,n){"function"==typeof n&&(M[t]=M[t]||[],Rt(M[t],n))},e.removeHook=function(t){if(M[t])return Et(M[t])},e.removeHooks=function(t){M[t]&&(M[t]=[])},e.removeAllHooks=function(){M={}},e}();function hn(t){return function(t,n){var e=n.documentElement;return["⚡4email","amp4email"].some((function(t){return e.hasAttribute(t)}))}(0,t)}var pn=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function mn(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return n}}function dn(t){var n,e=rt();if(!t)return e;for(;n=pn.exec(t);){var r=mn(n[1],n[1]),i=n[2]?mn(n[2].replace(/\+/g," "),n[2]):"";e[r]=i}return e}function vn(t){var n=(t||self).location;return dn(n.originalHash||n.hash)}var bn="";function gn(t){var n;return bn||(bn=(null===(n=t.AMP_CONFIG)||void 0===n?void 0:n.v)||"01".concat("2402231941000")),bn}function yn(t,n){var e=n||vn(t);return["1","actions","amp","amp4ads","amp4email"].includes(e.development)||!!t.AMP_DEV_MODE}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var wn=self.__AMP_LOG;function xn(t,n){throw new Error("failed to call initLogConstructor")}function kn(t){return wn.user||(wn.user=On()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(wn.user.win,t)?wn.userForEmbed||(wn.userForEmbed=On()):wn.user}function On(t){return xn()}function Sn(){return wn.dev||(wn.dev=xn())}function jn(t,n,e,r,i,o,a,u,s,c,f){return t}function An(t,n,e,r,i,o,a,u,s,c,f){return kn().assert(t,n,e,r,i,o,a,u,s,c,f)}var En=/(\S+)(?:\s+(?:(-?\d+(?:\.\d+)?)([a-zA-Z]*)))?\s*(?:,|$)/g,Rn=function(){function t(t){st(t.length>0,"Srcset must have at least one source"),this.KT=t;for(var n=!1,e=!1,r=0;r<t.length;r++){var i=t[r];n=n||!!i.width,e=e||!!i.dpr}st(!(n===e),"Srcset must have width or dpr sources, but not both"),t.sort(n?Tn:_n),this.aR=n}var n=t.prototype;return n.select=function(t,n){var e;return at(t),at(n),e=this.aR?this.uR(t*n):this.sR(n),this.KT[e].url},n.uR=function(t){for(var n=this.KT,e=0,r=1/0,i=1/0,o=0;o<n.length;o++){var a,u=null!==(a=n[o].width)&&void 0!==a?a:0,s=Math.abs(u-t);if(!(s<=1.1*r||t/i>1.2))break;e=o,r=s,i=u}return e},n.sR=function(t){for(var n=this.KT,e=0,r=1/0,i=0;i<n.length;i++){var o=Math.abs(n[i].dpr-t);if(!(o<=r))break;e=i,r=o}return e},n.getUrls=function(){return this.KT.map((function(t){return t.url}))},n.stringify=function(t){for(var n=[],e=this.KT,r=0;r<e.length;r++){var i=e[r],o=i.url;t&&(o=t(o)),this.aR?o+=" ".concat(i.width,"w"):o+=" ".concat(i.dpr,"x"),n.push(o)}return n.join(", ")},t}();function Tn(t,n){return st(t.width!=n.width,"Duplicate width: %s",t.width),t.width-n.width}function _n(t,n){return st(t.dpr!=n.dpr,"Duplicate dpr: %s",t.dpr),t.dpr-n.dpr}var Mn=function(){function t(t){this.Lt=t,this.Ht=0,this.Ft=0,this.Gt=rt()}var n=t.prototype;return n.has=function(t){return!!this.Gt[t]},n.get=function(t){var n=this.Gt[t];if(n)return n.access=++this.Ft,n.payload},n.put=function(t,n){this.has(t)||this.Ht++,this.Gt[t]={payload:n,access:this.Ft},this.zt()},n.zt=function(){if(!(this.Ht<=this.Lt)){var t,n=this.Gt,e=this.Ft+1;for(var r in n){var i=n[r].access;i<e&&(e=i,t=r)}void 0!==t&&(delete n[t],this.Ht--)}},t}(),zn=function(){return self.AMP.config.urls}();function Dn(t,n){return Un(t=In(t),n)}function Cn(t,n){var e=Fn(Nn(t));return Wn(e,n)?Un(e,n):null}function Ln(t,n){return Pn(Fn(t),n)}function In(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function Nn(t){return t.nodeType?(e=t,n=(e.ownerDocument||e).defaultView,Dn(n,"ampdoc")).getAmpDoc(t):t;var n,e}function Fn(t){var n=Nn(t);return n.isSingleDoc()?n.win:n}function Un(t,n){jn(Wn(t,n));var e=Bn(t)[n];return e.obj||(jn(e.ctor),jn(e.context),e.obj=new e.ctor(e.context),jn(e.obj),e.context=null,e.resolve&&e.resolve(e.obj)),e.obj}function Pn(t,n){var e=Bn(t)[n];return e?e.promise?e.promise:(Un(t,n),e.promise=Promise.resolve(e.obj)):null}function Bn(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}function Wn(t,n){var e=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!e||!e.ctor)}function qn(t,n,e,r){var i=Ln(t,n);if(i)return i;var a=Nn(t);return a.whenExtensionsKnown().then((function(){var t=a.getExtensionVersion(e);return t?Dn(a.win,"extensions").waitForExtension(e,t):null})).then((function(e){return e?r?Ln(t,n):function(t,n){return function(t,n){var e=Pn(t,n);if(e)return e;var r,i,a,u,s=Bn(t);return s[n]=(i=(r=new o).promise,a=r.reject,u=r.resolve,i.catch((function(){})),{obj:null,promise:i,resolve:u,reject:a,context:null,ctor:null}),s[n].promise}(Fn(t),n)}(t,n):null}))}var Jn,Gn,Yn=function(t){return function(t,n,e){var r=Cn(t,n);return r?Promise.resolve(r):qn(t,n,"amp-bind")}(t,"bind")},$n=function(t){return Dn(t,"xhr")},Hn=function(){return self.AMP.config.urls}(),Xn=new Set(["c","v","a","ad"]),Vn=function(t){return"string"==typeof t?Kn(t):t};function Kn(t,n){return Jn||(Jn=self.document.createElement("a"),Gn=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new Mn(100))),function(t,n,e){if(e&&e.has(n))return e.get(n);t.href=n,t.protocol||(t.href=t.href);var r,i={href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:"0"==t.port?"":t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:null};"/"!==i.pathname[0]&&(i.pathname="/"+i.pathname),("http:"==i.protocol&&80==i.port||"https:"==i.protocol&&443==i.port)&&(i.port="",i.host=i.hostname),r=t.origin&&"null"!=t.origin?t.origin:"data:"!=i.protocol&&i.host?i.protocol+"//"+i.host:i.href,i.origin=r;var o=i;return e&&e.put(n,o),o}(Jn,t,n?null:Gn)}function Zn(t){return Hn.cdnProxyRegex.test(Vn(t).origin)}function Qn(t,n){return n=Vn(n),"function"==typeof URL?new URL(t,n.href).toString():function(t,n){n=Vn(n);var e=Kn(t=t.replace(/\\/g,"/"));return t.toLowerCase().startsWith(e.protocol)?e.href:t.startsWith("//")?n.protocol+t:t.startsWith("/")?n.origin+t:n.origin+n.pathname.replace(/\/[^/]*$/,"/")+t}(t,n)}var te=function(){return self.AMP.config.urls}();function ne(t,n,e){return ee(n)?function(t,n,e,r){var i;An(!("__amp_source_origin"in dn(Kn(i=e).search)),"Source origin is not allowed in %s",i);var o=Zn(r),a=Kn(function(t){if(!Zn(t=Vn(t)))return t.href;var n=t.pathname.split("/"),e=n[1];An(Xn.has(e),"Unknown path prefix in url %s",t.href);var r=n[2],i="s"==r?"https://"+decodeURIComponent(n[3]):"http://"+decodeURIComponent(r);return An(i.indexOf(".")>0,"Expected a . in origin %s",i),n.splice(1,"s"==r?3:2),i+n.join("/")+function(t,n){if(!t||"?"==t)return"";var e=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),r=t.replace(e,"").replace(/^[?&]/,"");return r?"?"+r:""}(t.search)+(t.hash||"")}(r));if("href"==n&&!e.startsWith("#"))return Qn(e,a);if("src"==n)return"amp-img"==t?re(e,a,o):Qn(e,a);if("srcset"==n){var u;try{u=function(t){for(var n,e=[];n=En.exec(t);){var r=n[1],i=void 0,o=void 0;if(n[2]){var a=n[3].toLowerCase();if("w"==a)i=parseInt(n[2],10);else{if("x"!=a)continue;o=parseFloat(n[2])}}else o=1;e.push({url:r,width:i,dpr:o})}return new Rn(e)}(e)}catch(t){return kn().error("URL-REWRITE","Failed to parse srcset: ",t),e}return u.stringify((function(t){return re(t,a,o)}))}return e}(t,n,e,self.location):e}function ee(t){return"src"==t||"href"==t||"xlink:href"==t||"srcset"==t}function re(t,n,e){var r=Kn(Qn(t,n));return"data:"==r.protocol||Zn(r)||!e?r.href:"".concat(te.cdn,"/i/")+("https:"==r.protocol?"s/":"")+encodeURIComponent(r.host)+r.pathname+(r.search||"")+(r.hash||"")}var ie="data-amp-bind-",oe="i-amphtml-key",ae={"AMP-IMG":["src","srcset","layout","width","height"]},ue={"applet":!0,"audio":!0,"base":!0,"embed":!0,"frame":!0,"frameset":!0,"iframe":!0,"img":!0,"link":!0,"meta":!0,"object":!0,"style":!0,"video":!0},se={"amp-accordion":!0,"amp-anim":!0,"amp-bind-macro":!0,"amp-carousel":!0,"amp-fit-text":!0,"amp-img":!0,"amp-layout":!0,"amp-selector":!0,"amp-sidebar":!0,"amp-timeago":!0},ce=["a","amp-img","article","aside","b","blockquote","br","caption","code","col","colgroup","dd","del","details","div","dl","dt","em","figcaption","figure","footer","h1","h2","h3","header","hr","i","ins","li","main","mark","nav","ol","p","pre","q","s","section","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul"],fe=["a","article","aside","b","blockquote","br","caption","code","col","colgroup","dd","del","details","div","dl","dt","em","figcaption","figure","footer","h1","h2","h3","header","hr","i","ins","li","main","mark","nav","ol","p","pre","q","s","section","small","span","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","u","ul"],le=["amp-fx","fallback","heights","layout","min-font-size","max-font-size","on","option","placeholder","submitting","submit-success","submit-error","validation-for","verify-error","visible-when-invalid","href","style","text","subscriptions-action","subscriptions-actions","subscriptions-decorate","subscriptions-dialog","subscriptions-display","subscriptions-section","subscriptions-service","subscriptions-google-rtc","amp-nested-submenu","amp-nested-submenu-open","amp-nested-submenu-close","itemprop"],he={"a":["rel","target"],"div":["template"],"form":["action-xhr","verify-xhr","custom-validation-reporting","target"],"input":["mask-output"],"template":["type"],"textarea":["autoexpand"]},pe=["_top","_blank"],me=/^(?:\w+script|data|blob):/i,de=/^(?:blob):/i,ve=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,be=Object.freeze({"input":{"type":/(?:image|button)/i}}),ge=Object.freeze({"input":{"type":/(?:button|file|image|password)/i}}),ye=Object.freeze(["form","formaction","formmethod","formtarget","formnovalidate","formenctype"]),we=Object.freeze({"input":ye,"textarea":ye,"select":ye}),xe=Object.freeze({"amp-anim":["controls"],"form":["name"]}),ke=/!important|position\s*:\s*fixed|position\s*:\s*sticky/i;function Oe(t,n,e,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=e?e.replace(ve,""):"";if(!i){if(n.startsWith("on")&&"on"!=n)return!1;var a=o.toLowerCase();if(a.indexOf("<script")>=0||a.indexOf("</script")>=0)return!1;if(me.test(o))return!1}if(de.test(o))return!1;if("style"==n)return!ke.test(e);if("class"==n&&e&&/(^|\W)i-amphtml-/i.test(e))return!1;if(ee(n)&&/__amp_source_origin/.test(e))return!1;var u=hn(r),s=Object.assign(rt(),we,u?xe:{})[t];if(s&&-1!=s.indexOf(n))return!1;var c=Object.assign(rt(),be,u?ge:{})[t];if(c){var f=c[n];if(f&&-1!=e.search(f))return!1}return!0}var Se="purifier",je={"script":{"attribute":"type","values":["application/json","application/ld+json"]}},Ae={USE_PROFILES:{html:!0,svg:!0,svgFilters:!0}},Ee=function(){function t(t,n,e){this.zl=t,this.cR=1,this.fR=ln(self),this.lR=ln(self);var r=Object.assign(n||{},ht(ht({},Ae),{},{ADD_ATTR:le,ADD_TAGS:["use"],FORBID_TAGS:Object.keys(ue),FORCE_BODY:!0,RETURN_DOM:!0,ALLOW_UNKNOWN_PROTOCOLS:!0}));this.fR.setConfig(r),this.pR(this.fR,e),this.mR(this.lR)}var n=t.prototype;return n.purifyHtml=function(t){return this.fR.sanitize(t)},n.purifyTagsForTripleMustache=function(t){var n=this.lR.sanitize(t,{"ALLOWED_TAGS":hn(this.zl)?fe:ce,"FORCE_BODY":!0,"RETURN_DOM_FRAGMENT":!0}),e=this.zl.createElement("div");return e.appendChild(n),e.innerHTML},n.getAllowedTags=function(){var t={};this.fR.addHook("uponSanitizeElement",(function(n,e){Object.assign(t,e.allowedTags)}));var n=this.zl.createElement("p");return this.fR.sanitize(n),Object.keys(ue).forEach((function(n){t[n]=!1})),this.fR.removeHook("uponSanitizeElement"),t},n.validateAttributeChange=function(t,n,e){var r=t.nodeName.toLowerCase(),i=je[r];if(i){var o=i.attribute,a=i.values;if(o===n&&(null==e||!a.includes(e)))return!1}if("a"===r&&"target"===n&&(null==e||!pe.includes(e)))return!1;if(null==e)return!0;if(Te(n)!==Re.NONE)return!1;if(!this.fR.isValidAttribute(r,n,e)){var u=he[r];if(!(u&&u.includes(n)||r.startsWith("amp-")))return!1}var s=t.ownerDocument?t.ownerDocument:t;return!(e&&!Oe(r,n,e,s,!0))},n.pR=function(t,n){var e,r,i=this,o=hn(this.zl),a=[],u=[];t.addHook("uponSanitizeElement",(function(t,n){var r=n.tagName;if(e=n.allowedTags,r.startsWith("amp-")&&(e[r]=!o||se[r]),"a"===r){var i=ut(t);i.hasAttribute("href")&&!i.hasAttribute("target")&&i.setAttribute("target","_top")}var u=je[r];if(u){var s=u.attribute,c=u.values,f=ut(t);f.hasAttribute(s)&&c.includes(f.getAttribute(s))&&(e[r]=!0,a.push(r))}})),t.addHook("afterSanitizeElements",(function(t){a.forEach((function(t){delete e[t]})),a.length=0})),t.addHook("uponSanitizeAttribute",(function(t,e){var o=t.nodeName.toLowerCase(),a=e.attrName,s=e.attrValue;r=e.allowedAttributes;var c=function(){r[a]||(r[a]=!0,u.push(a))};if(o.startsWith("amp-"))c();else{if("a"==o&&"target"==a){var f=s.toLowerCase();s=pe.includes(f)?f:"_top"}var l=he[o];l&&l.includes(a)&&c()}var h=Te(a);if(h===Re.CLASSIC){var p=a.substring(1,a.length-1);t.setAttribute("".concat(ie).concat(p),s)}h!==Re.NONE&&t.setAttribute("i-amphtml-binding",""),Oe(o,a,s,i.zl,!0)?n&&s&&!a.startsWith(ie)&&(s=n(o,a,s)):(e.keepAttr=!1,kn().error(Se,'Removed invalid attribute %s[%s="%s"].',o,a,s)),e.attrValue=s})),t.addHook("afterSanitizeAttributes",(function(t){!function(t,n){var e=t.tagName.startsWith("AMP-"),r=t.hasAttribute("i-amphtml-binding");!r&&ae[t.tagName]?t.setAttribute("i-amphtml-ignore",""):(r||e)&&(t.hasAttribute(oe)||t.setAttribute(oe,String(i.cR++)))}(t),u.forEach((function(t){delete r[t]})),u.length=0,"use"===t.nodeName.toLowerCase()&&["href","xlink:href"].forEach((function(n){t.hasAttribute(n)&&!t.getAttribute(n).startsWith("#")&&(function(t){var n;null===(n=t.parentElement)||void 0===n||n.removeChild(t)}(t),kn().error(Se,'Removed invalid <use>. use[href] must start with "#".'))}))}))},n.mR=function(t){var n;t.addHook("uponSanitizeElement",(function(t,e){var r=e.tagName;if(n=e.allowedTags,"template"===r){var i=t.getAttribute("type");i&&"amp-mustache"===i.toLowerCase()&&(n.template=!0)}})),t.addHook("afterSanitizeElements",(function(t){n.template=!1}))},t}(),Re={NONE:0,CLASSIC:1,ALTERNATIVE:2};function Te(t){return"["==t[0]&&"]"==t[t.length-1]?Re.CLASSIC:t.startsWith(ie)?Re.ALTERNATIVE:Re.NONE}var _e=["change","click","dblclick","input","keypress","submit","keydown"],Me=function(){function t(t){var n=this;this.Fe=t,this.OW=this.SW.bind(this),this.jW=0,this.AW=!1,_e.forEach((function(t){n.Fe.addEventListener(t,n.OW,!0)}))}var n=t.prototype;return n.dispose=function(){var t=this;_e.forEach((function(n){t.Fe.removeEventListener(n,t.OW,!0)}))},n.hasBeenActive=function(){return this.jW>0},n.isActive=function(){return this.jW>0&&Date.now()-this.jW<=5e3||this.AW},n.getLastActivationTime=function(){return this.jW},n.expandLongTask=function(t){var n=this;if(this.isActive()){jn(!this.AW),this.AW=!0;var e=function(){n.AW=!1,n.jW=Date.now()};t.then(e,e)}},n.isInLongTask=function(){return this.AW},n.SW=function(t){t.isTrusted&&(this.jW=Date.now())},t}(),ze=self.__AMP_ERRORS||[];self.__AMP_ERRORS=ze;var De=function(){return self.AMP.config.urls}(),Ce="amp-script",Le=15e4,Ie=3e5,Ne=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&a(t,n)}(i,t);var n,e,r=(n=i,e=s(),function(){var t,r=u(n);if(e){var i=u(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return f(this,t)});function i(t){var n;return(n=r.call(this,t))._o=Dn(n.win,"vsync"),n.EW=null,n.RW=null,n.TW=null,n._W="amp-script[unknown].js",n.MW=!1,n.zW=!1,n.Pe=new o,n.DW=!1,n.LW=!1,n.IW=!1,n}var c=i.prototype;return c.isLayoutSupported=function(t){return"container"==t||ct(t)},c.buildCallback=function(){var t,n,e,r=this;return this.IW=this.element.hasAttribute("sandboxed"),this.LW=this.IW||this.element.hasAttribute("nodom"),this.DW=this.element.hasAttribute("data-ampdevmode")||this.element.ownerDocument.documentElement.hasAttribute("data-ampdevmode"),this.DW&&kn().warn(Ce,"JavaScript size and script hash requirements are disabled in development mode.",this.element),this.LW&&(this.element.hasAttribute("width")||this.element.hasAttribute("height")||this.element.hasAttribute("layout"))&&kn().warn(Ce,"Cannot set width, height, or layout of a nodom <amp-script>",this.element),(t=this.element,n=Ce,e=Ce,qn(t,n,e,undefined).then((function(t){return function(t,n,e){return An(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-script",e,e,e)}(t,0,e)}))).then((function(t){r.setService(t)}))},c.onLayoutMeasure=function(){if(!this.MW&&!this.zW){var t=this.getLayoutSize(),n=t.height;t.width*n!=0||this.LW||(this.zW=!0,kn().warn(Ce,"Skipped initializing amp-script due to zero width or height.",this.element))}},c.setService=function(t){this.TW=t},c.getUserActivation=function(){return this.RW},c.callFunction=function(t,n){var e=arguments,r=this;return this.Pe.promise.then((function(){return r.EW?r.EW.callFunction.apply(r.EW,e):Promise.reject(new Error("Attempted to call a function on an amp-script which failed initialization."))}))},c.layoutCallback=function(){var t,n,e=this;if(this.MW=!0,this.element.sizerElement){(n=t=this.win.document.createElement("div")).classList.add("i-amphtml-fill-content"),n.classList.add("i-amphtml-replaced-content");for(var r=function(t){return function(t,n){for(var e=[],r=t.firstElementChild;r;r=r.nextElementSibling)void 0,a=void 0,"string"==typeof(o=i=r)?a=o:it(o)&&(a=o.tagName),!(a&&a.toLowerCase().startsWith("i-")||i.nodeType===Node.ELEMENT_NODE&&(ut(i),i.hasAttribute("placeholder")||i.hasAttribute("fallback")||i.hasAttribute("overflow")))&&e.push(r);var i,o,a;return e}(t)}(this.element),i=0;i<r.length;i++)t.appendChild(r[i]);this.element.appendChild(t)}this.RW=new Me(this.element),this._W=this.element.hasAttribute("src")?'amp-script[src="'.concat(this.element.getAttribute("src"),'"].js'):'amp-script[script="'.concat(this.element.getAttribute("script"),'"].js');var o=this.NW(this._W);if(!o)return kn().error(Ce,'"src" or "script" attribute is required.'),Promise.reject(new Error("CANCELLED"));var a,u=Promise.all([this.FW(),o]).then((function(t){var n=t[0],r=t[1];return!e.DW&&e.TW.sizeLimitExceeded(r.length,e.IW)?(kn().error(Ce,"Maximum total script size exceeded (%s). %s is disabled. See https://amp.dev/documentation/components/amp-script/#size-of-javascript-code.",e.IW?Ie:Le,e._W),e.element.classList.add("i-amphtml-broken"),[]):[n,r]})),s=(this.element.getAttribute("sandbox")||"").split(" ").map((function(t){return t.trim()}));a="".concat(De.thirdParty,"/").concat("2402231941000","/amp-script-proxy-iframe.html");var c,f,h,p={authorURL:this._W,mutationPump:this.UW.bind(this),longTask:function(t){e.RW.expandLongTask(t)},sanitizer:new Pe(this,s),onCreateWorker:function(t){Sn().info(Ce,"Create worker:",t)},onSendMessage:function(t){Sn().info(Ce,"To worker:",t)},onReceiveMessage:function(t){Sn().info(Ce,"From worker:",t)},sandbox:this.IW&&{iframeUrl:a}};return(c=t||this.element,f=u,h=p,h.hydrateFilter=tt,function(t,n,e){var r=n.dataset.shadowDom;if("open"===r||"closed"===r){r=n.attachShadow({mode:r});var i=n.cloneNode(!0);r.appendChild(i),n=i}var o,a=new J,u=new K,s=new g(a,n),c=(o=e,Object.assign({},{mutationPump:requestAnimationFrame.bind(null),executorsAllowed:v},o));return t.then((function(t){var r=l(t,2),i=r[0],o=r[1];if(i&&o&&e.authorURL){var f=new X(n,s,i,o,c),h=new q(a,s,f,c,u);return f.worker.onmessage=function(t){var n=t.data;Q.includes(n[12])&&(h.mutate(n[54],n[37],n[41],new Uint16Array(n[36])),e.onReceiveMessage)&&e.onReceiveMessage(t)},f.ready().then((function(){return new Z(f,c)}))}return null}))}(f,c,h)).then((function(t){e.EW=t,e.Pe.resolve(),e.EW&&(e.EW.onerror=function(t){t.preventDefault(),kn().error(Ce,"".concat(t.message,"\n at (").concat(t.filename,":").concat(t.lineno,")"))})}))},c.FW=function(){var t,n,e,r,i,o,a,u=(t=this.win.location,n=this.LW?"amp-script-worker-nodom":"amp-script-worker",e="0.1",i=function(t,n){if(n){var e="".concat(t.protocol,"//").concat(t.host);return"about:"!=t.protocol&&"blob:"!=t.protocol&&"data:"!=t.protocol||(e=""),"".concat(e,"/dist")}return zn.cdn}(t,!1),o=(r=self,r.__AMP_MODE?r.__AMP_MODE:r.__AMP_MODE=function(t){return{localDev:!1,development:yn(t,vn(t)),esm:!1,test:!1,rtvVersion:gn(t),ssrReady:!1}}(r)).rtvVersion,a=e?"-"+e:"","".concat(i,"/rtv/").concat(o,"/v0/").concat(n).concat(a).concat(".js"));return $n(this.win).fetchText(u,{ampCors:!1}).then((function(t){return t.text()}))},c.NW=function(t){var n=this.element.getAttribute("src");if(n)return this.PW(n,t);var e=this.element.getAttribute("script");if(e){var r=this.getAmpDoc().getElementById(e);An(r,"[%s] %s could not find element with #%s.",Ce,t,e),An("amp-script"===r.getAttribute("target"),'[%s] script#%s must have target="amp-script".',Ce,e);var i=r.textContent;return this.DW||this.IW?Promise.resolve(i):this.TW.checkSha384(i,t).then((function(){return i}))}return null},c.PW=function(t,n){var e=this;return $n(this.win).fetchText(t,{ampCors:!1}).then((function(t){if(t.url&&e.BW(t.url)){var r=t.headers.get("Content-Type");if(!r||!r.startsWith("application/javascript")&&!r.startsWith("text/javascript"))throw kn().createError(Ce,'Same-origin "src" requires "Content-Type: text/javascript" or "Content-Type: application/javascript". '+"Fetched source for ".concat(n,' has "Content-Type: ').concat(r,'". ')+"See https://amp.dev/documentation/components/amp-script/#security-features.");return t.text()}return e.DW||e.IW?t.text():t.text().then((function(t){return e.TW.checkSha384(t,n).then((function(){return t}))}))}))},c.BW=function(t){var n=Cn(this.element,"url");return n.getSourceOrigin(this.getAmpDoc().getUrl())===n.parse(t).origin},c.isMutationAllowedByFixedSize=function(){return ct(this.getLayout())},c.isMutationAllowedByUserGesture=function(){return this.RW.isActive()},c.UW=function(t,n){var e=this;1==n&&this._o.mutate((function(){return e.element.classList.add("i-amphtml-hydrated")}));var r=this.isMutationAllowedByFixedSize()||this.isMutationAllowedByUserGesture();this._o.mutate((function(){var i=t(r),o=rt();i.forEach((function(t){o[t]=o[t]+1||1})),Object.keys(o).forEach((function(t){var n=o[t];kn().error(Ce,e.WW(t,n))})),i.length>0&&2===n&&(e.EW.terminate(),e.element.classList.remove("i-amphtml-hydrated"),e.element.classList.add("i-amphtml-broken"),kn().error(Ce,"%s was terminated due to illegal mutation.",e._W))}))},c.WW=function(t,n){var e;switch(t){case"0":case"3":e="DOM element attributes or styles";break;case"1":e="textContent or the like";break;case"2":e="DOM element children, innerHTML, or the like";break;default:e="the DOM"}return"Blocked ".concat(n," attempts to modify ").concat(e,".")+" For variable-sized <amp-script> containers, a user action has to happen first."},i}(t.BaseElement),Fe=function(){function t(t){this.Ki=t,this.qW=0,this.JW=0,this.KT=[];var n=t.getMetaByName("amp-script-src");n&&(this.KT=n.split(/\s+/).filter(Boolean)),this.tJ=Dn(t.win,"crypto")}var n=t.prototype;return n.checkSha384=function(t,n){var e,r=this,i=(e=t,"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):function(t){for(var n=new Uint8Array(t.length),e=0;e<t.length;e++){var r=t.charCodeAt(e);at(r<=255),n[e]=r}return n}(unescape(encodeURIComponent(e))));return this.tJ.sha384Base64(i).then((function(t){if(!t||!r.KT.includes("sha384-"+t))throw kn().createError(Ce,"Script hash not found or incorrect for ".concat(n,'. You must include <meta name="amp-script-src" content="sha384-').concat(t,'">. ')+'During development, you can disable this check by adding the "data-ampdevmode" attribute to '.concat(n,", or the root html node")+"See https://amp.dev/documentation/components/amp-script/#script-hash.")}))},n.sizeLimitExceeded=function(t,n){return n?this.JW+=t:this.qW+=t,n?this.JW>Ie:this.qW>Le},n.fetch=function(t,n){var e=t.slice("amp-script:".length).split(".");An(2===e.length&&e[0].length>0&&e[1].length>0,"[".concat(Ce,']: "amp-script" URIs must be of the format "scriptId.functionIdentifier".'));var r=e[0],i=e[1],o=this.Ki.getElementById(r);An(o&&"AMP-SCRIPT"===o.tagName,"[".concat(Ce,"]: could not find <amp-script> with script set to ").concat(r));var a=Array.prototype.slice.call(arguments,1);return o.getImpl().then((function(t){return t.callFunction.apply(t,[i].concat(a))}))},t}(),Ue=["form","button","fieldset","input","object","output","select","textarea"],Pe=function(){function t(t,n){var e,r,i,o=this;this.t=t.win,this.el=t.element,r="purifier-inplace",i=function(){return new Ee(t.win.document,{"IN_PLACE":!0},ne)},function(t,n,e,r,i,o){var a=Bn(t),u=a[e];u||(u=a[e]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:!1}),u.ctor||(u.ctor=r,u.context=n,u.sharedInstance=!1,u.resolve&&Un(t,e))}(e=In(e=this.t),e,r,i),this.hR=Dn(this.t,"purifier-inplace"),this.GW=this.hR.getAllowedTags(),this.YW=function(){return t.isMutationAllowedByUserGesture()},this.$W=function(){return!o.YW()&&t.isMutationAllowedByFixedSize()},this.GW["amp-img"]=!0,this.GW["amp-layout"]=!0,this.GW["amp-pixel"]=!1,this.HW=n.includes("allow-forms"),Ue.forEach((function(t){o.GW[t]=o.HW}))}var n=t.prototype;return n.sanitize=function(t){var n=t.nodeName.toLowerCase(),e=this.GW[n];return e||this.XW(n)||kn().warn(Ce,"Sanitized node:",t),e},n.setAttribute=function(t,n,e){var r=t.nodeName.toLowerCase();if(this.GW[r]){var i=n.toLowerCase();if(this.hR.validateAttributeChange(t,i,e)){if(null==e)t.removeAttribute(i);else{var o=ne(r,i,e);t.setAttribute(i,o)}return"a"===r&&t.hasAttribute("href")&&!t.hasAttribute("target")&&t.setAttribute("target","_top"),!0}}return this.XW(r)||kn().warn(Ce,'Sanitized [%s]="%s":',n,e,t),!1},n.XW=function(t){return!(this.HW||!Ue.includes(t)||(kn().warn(Ce,'Form elements (%s) cannot be mutated unless your <amp-script> includes the attribute sandbox="allow-forms".',t),0))},n.setProperty=function(t,n,e){var r=n.toLowerCase();return!!this.hR.validateAttributeChange(t,r,e)&&(t[n]=e,!0)},n.getStorage=function(t,n){if(2===t)return Yn(this.el).then((function(t){if(t)return t.getStateValue(n||".")}));for(var e=this.VW(t),r={},i=0;i<e.length;i++){var o=e.key(i);o&&!o.startsWith("amp-")&&(r[o]=e.getItem(o))}return r},n.setStorage=function(t,n,e){var r=this;if(2===t)return Yn(this.el).then((function(t){if(t){var n=function(t,n){try{return function(t){return JSON.parse(t)}(t)}catch(t){return null==n||n(),null}}(e,(function(){Sn().error(Ce,"Invalid AMP.setState() argument: %s",e)}));if(n){var i=r.YW(),o=r.$W()?[r.el]:void 0;i||o||kn().warn(Ce,"AMP.setState only updated page state and did not reevaluate bindings due to lack of recent user interaction."),t.setState(n,{skipEval:!i&&!o,skipAmpState:!1,constrain:o})}}}));var o=this.VW(t);return null===n?null===e&&kn().error(Ce,"Storage.clear() is not supported in amp-script."):n.startsWith("amp-")?kn().error(Ce,'Invalid "amp-" prefix for storage key: %s',n):null===e?o.removeItem(n):o.setItem(n,e),i()},n.VW=function(t){return 0===t?this.t.localStorage:1===t?this.t.sessionStorage:null},t}();t.registerServiceForDoc(Ce,Fe),t.registerElement(Ce,Ne,"amp-script{opacity:0.7}amp-script.i-amphtml-hydrated{opacity:1}\n/*# sourceURL=/extensions/amp-script/0.1/amp-script.css*/")}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
  4 +/*! Bundled license information:
  5 +
  6 +dompurify/dist/purify.es.js:
  7 + (*! @license DOMPurify 3.0.2 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.2/LICENSE *)
  8 +*/}});
  9 +//# sourceMappingURL=amp-script-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-selector",ev:"0.1",l:!0,f:function(t,e){!function(){var e;function i(){return e||(e=Promise.resolve(void 0))}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t){return(o="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 s(t,e){if(e&&("object"===o(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return t?Array.prototype.slice.call(t):[]}function c(t,e){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}Array.isArray;var a=Object.prototype,h=(a.hasOwnProperty,a.toString,1),l="Enter",f="ArrowLeft",d="ArrowUp",v="ArrowRight",p="ArrowDown",b="Home",m="End";function y(t){return"rtl"==(t.body.getAttribute("dir")||t.documentElement.getAttribute("dir")||"ltr")}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var w=self.__AMP_LOG;function g(t){return function(t,e){throw new Error("failed to call initLogConstructor")}()}function k(t,e,i,n,r,o,s,u,c,a,h){return t}function j(t,e,i,n,r,o,s,u,c,a,h){return(w.user||(w.user=g()),void w.user.win?w.userForEmbed||(w.userForEmbed=g()):w.user).assert(t,e,i,n,r,o,s,u,c,a,h)}function O(t){return t.nodeType?(i=t,e=(i.ownerDocument||i).defaultView,function(t,e){return x(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),"ampdoc")}(e)).getAmpDoc(t):t;var e,i}function x(t,e){k(E(t,e));var i=function(t){var e=t.__AMP_SERVICES;return e||(e=t.__AMP_SERVICES={}),e}(t)[e];return i.obj||(k(i.ctor),k(i.context),i.obj=new i.ctor(i.context),k(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}function E(t,e){var i=t.__AMP_SERVICES&&t.__AMP_SERVICES[e];return!(!i||!i.ctor)}var R="amp-selector",A="none",S="select",U=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}(w,t);var e,o,a=(e=w,o=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}}(),function(){var t,i=r(e);if(o){var n=r(this).constructor;t=Reflect.construct(i,arguments,n)}else t=i.apply(this,arguments);return s(this,t)});function w(t){var e;return(e=a.call(this,t)).Qq=!1,e.Zq=[],e.Nt=[],e.dJ=[],e.Ye=null,e.bJ=0,e.yJ=A,e}w.prerenderAllowed=function(){return!0};var g=w.prototype;return g.isLayoutSupported=function(){return!0},g.buildCallback=function(){var t,e,i,n,r,o=this;this.Ye=(t=this.element,e="action",i=O(t),E(r=(n=O(i)).isSingleDoc()?n.win:n,e)?x(r,e):null),this.Qq=this.element.hasAttribute("multiple"),this.element.hasAttribute("role")||this.element.setAttribute("role","listbox"),this.Qq&&this.element.setAttribute("aria-multiselectable","true"),this.element.hasAttribute("disabled")&&this.element.setAttribute("aria-disabled","true");var s,u=this.element.getAttribute("keyboard-select-mode");u?(j("none"===(s=u=u.toLowerCase())||"focus"===s||"select"===s,"Unknown keyboard-select-mode: ".concat(u)),j(!(this.Qq&&u==S),"[keyboard-select-mode=select] not supported for multiple selection amp-selector")):u=A,this.yJ=u,this.registerAction("clear",this.wJ.bind(this)),this.Ls(),this.element.addEventListener("click",this.gJ.bind(this)),this.element.addEventListener("keydown",this.kJ.bind(this)),this.registerAction("selectUp",(function(t){var e=t.args,i=t.trust,n=e&&void 0!==e.delta?-e.delta:-1;o.jJ(n,i)}),h),this.registerAction("selectDown",(function(t){var e=t.args,i=t.trust,n=e&&void 0!==e.delta?e.delta:1;o.jJ(n,i)}),h),this.registerAction("toggle",(function(t){var e=t.args,i=t.trust;return j(e.index>=0,"'index' must be greater than 0"),j(e.index<o.Nt.length,"'index' must be less than the length of options in the <amp-selector>"),e&&void 0!==e.index?o.sL(e.index,e.value,i):Promise.reject("'index' must be specified")}),h),this.Ye.addToAllowlist(R,["clear","selectDown","selectUp","toggle"],["email"]),this.element.addEventListener("amp:dom-update",this.OJ.bind(this))},g.mutatedAttributesCallback=function(t){var e=t.selected;void 0!==e&&this.xJ(e);var i=t.disabled;void 0!==i&&(i?this.element.setAttribute("aria-disabled","true"):this.element.removeAttribute("aria-disabled"))},g.xJ=function(t){var e=Array.isArray(t)?t:[t];if(null!==t&&0!=e.length){if(this.Qq||(e=e.slice(0,1)),!c(this.EJ().sort(),e.sort())){for(var i=e.reduce((function(t,e){return t[e]=!0,t}),Object.create(null)),n=0;n<this.Nt.length;n++){var r=this.Nt[n];i[r.getAttribute("option")]?this.RJ(r):this.AJ(r)}this.SJ(),this.UJ()}}else this.wJ()},g.SJ=function(t){if(this.yJ!=A){this.Nt.forEach((function(t){t.tabIndex=-1}));var e=t;e||(e=this.Qq?this.Nt[0]:this.Zq[0]||this.Nt[0]),e&&(this.bJ=this.Nt.indexOf(e),e.tabIndex=0)}},g.OJ=function(t){var e=u(this.element.querySelectorAll("[option]"));c(this.Nt,e)||this.Ls(e)},g.Ls=function(t){var e=this;this.Zq.length=0;var i=t||u(this.element.querySelectorAll("[option]"));i.forEach((function(t){t.hasAttribute("role")||t.setAttribute("role","option"),t.hasAttribute("disabled")&&t.setAttribute("aria-disabled","true"),t.hasAttribute("selected")?e.RJ(t):e.AJ(t),t.tabIndex=0})),this.Nt=i,this.SJ(),this.UJ()},g.UJ=function(){var t=this,e=[],i=this.element.getAttribute("name");if(!i||this.element.hasAttribute("disabled"))return e;var n=this.element.getAttribute("form");this.dJ.forEach((function(e){t.element.removeChild(e)})),this.dJ=[];var r=this.win.document,o=r.createDocumentFragment();return this.Zq.forEach((function(s){if(!s.hasAttribute("disabled")){var u=r.createElement("input"),c=s.getAttribute("option");u.setAttribute("type","hidden"),u.setAttribute("name",i),u.setAttribute("value",c),n&&u.setAttribute("form",n),t.dJ.push(u),o.appendChild(u),e.push(c)}})),this.element.appendChild(o),e},g.DJ=function(t){var e=this;t.hasAttribute("disabled")||this.mutateElement((function(){t.hasAttribute("selected")?e.Qq&&(e.AJ(t),e.UJ()):(e.RJ(t),e.UJ()),e.SJ(t),e.LJ(t,3)}))},g.EJ=function(){return this.Zq.map((function(t){return t.getAttribute("option")}))},g.gJ=function(t){if(!this.element.hasAttribute("disabled")){var e,i=t.target;i&&(i.hasAttribute("option")||("[option]",i=(e=i).closest?e.closest("[option]"):function(t,e,i){var n;for(n=t;n&&void 0!==n;n=n.parentElement)if(e(n))return n;return null}(e,(function(t){return function(t,e){var i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!i&&i.call(t,"[option]")}(t)}))),i&&this.DJ(i))}},g.sL=function(t,e,n){var r=this,o=this.Nt[t],s=o.hasAttribute("selected"),u=void 0!==e?e:!s,c=this.Nt.indexOf(this.Zq[0]);return u===s?i():this.mutateElement((function(){if(c!==t){r.RJ(o);var e=r.Nt[c];e&&r.AJ(e)}else r.AJ(o);r.LJ(o,n)}))},g.LJ=function(t,e){var i="select",n=function(t,e,i,n){var r={detail:i};if(Object.assign(r,void 0),"function"==typeof t.CustomEvent)return new t.CustomEvent(e,r);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(e,!!r.bubbles,!!r.cancelable,i),o}(this.win,"amp-selector.".concat(i),{"targetOption":t.getAttribute("option"),"selectedOptions":this.EJ()});this.Ye.trigger(this.element,i,n,e)},g.jJ=function(t,e){var i,n,r=this.Nt.indexOf(this.Zq[0]),o=(i=-1===r&&t<0?t:r+t,n=this.Nt.length,i>0&&n>0?i%n:(i%n+n)%n),s=this.Nt[o];this.RJ(s);var u=this.Nt[r];u&&this.AJ(u),this.UJ(),this.LJ(s,e)},g.kJ=function(t){if(this.element.hasAttribute("disabled"))return i();switch(t.key){case f:case d:case v:case p:case b:case m:return this.yJ!=A?this.PJ(t):i();case l:case" ":return this.BJ(t),i()}return i()},g.PJ=function(t){var e=this,n=this.win.document,r=0;switch(t.key){case f:r=y(n)?1:-1;break;case d:r=-1;break;case v:r=y(n)?-1:1;break;case p:case b:r=1;break;case m:r=-1;break;default:return i()}return t.preventDefault(),this.Nt[this.bJ].tabIndex=-1,this.CJ().then((function(i){var n,o,s,u,c=e.bJ;switch(t.key){case b:e.bJ=e.Nt.length-1;break;case m:e.bJ=0}do{e.bJ=(e.bJ+r)%e.Nt.length,e.bJ<0&&(e.bJ=e.bJ+e.Nt.length)}while(n=e.Nt[e.bJ],s=(o=i[e.bJ]).height,u=o.width,(n.hidden||0==u||0==s)&&e.bJ!=c);var a=e.Nt[e.bJ];a.tabIndex=0,function(t){try{t.focus()}catch(t){}}(a);var h=e.Nt[e.bJ];e.yJ==S&&e.DJ(h)}))},g.BJ=function(t){var e=t.key;if((" "==e||e==l)&&this.Nt.includes(t.target)){t.preventDefault();var i=t.target;this.DJ(i)}},g.AJ=function(t){t.removeAttribute("selected"),t.setAttribute("aria-selected","false");var e=this.Zq.indexOf(t);-1!==e&&this.Zq.splice(e,1)},g.wJ=function(){for(;this.Zq.length>0;){var t=this.Zq.pop();this.AJ(t)}this.UJ()},g.RJ=function(t){this.Zq.includes(t)||(this.Qq||this.wJ(),t.setAttribute("selected",""),t.setAttribute("aria-selected","true"),this.Zq.push(t))},g.getElementsForTesting=function(){return this.Nt},g.getSelectedElementsForTesting=function(){return this.Zq},g.CJ=function(){var t=this;return this.measureElement((function(){return t.Nt.map((function(t){return t.getBoundingClientRect()}))}))},w}(t.BaseElement);t.registerElement(R,U,"amp-selector [option]{cursor:pointer}amp-selector [option][selected]{cursor:auto;outline:1px solid rgba(0,0,0,.7)}amp-selector[multiple] [option][selected]{cursor:pointer;outline:1px solid rgba(0,0,0,.7)}amp-selector [disabled][option],amp-selector [selected][disabled],amp-selector[disabled] [option],amp-selector[disabled] [selected]{cursor:auto;outline:none}\n/*# sourceURL=/extensions/amp-selector/0.1/amp-selector.css*/")}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-selector-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-sidebar",ev:"0.1",l:!0,f:function(t,i){!function(){function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,i){return(n=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function r(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&&n(t,i)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function e(t){return(e="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 o(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return i(t)}function a(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=s(t);if(i){var e=s(this).constructor;n=Reflect.construct(r,arguments,e)}else n=r.apply(this,arguments);return o(this,n)}}function h(t){return t?Array.prototype.slice.call(t):[]}var u=Array.isArray;function f(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);n<i;n++)r[n]=t[n];return r}function c(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,i){if(t){if("string"==typeof t)return f(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=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 l,v,d=Object.prototype;function m(t){return 1==(null==t?void 0:t.nodeType)}function p(t,i,n,r,s,e,o,a,h,u,f){return t}function b(t){return(t.ownerDocument||t).defaultView}function y(t,i){return t.replace(/^|,/g,"$&".concat(i," "))}function w(t,i){return t.closest?t.closest(i):function(t,i,n){var r;for(r=t;r&&void 0!==r;r=r.parentElement)if(i(r))return r;return null}(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 g(t){return function(t,i){for(var n=[],r=t.firstElementChild;r;r=r.nextElementSibling)void 0,o=void 0,"string"==typeof(e=s=r)?o=e:m(e)&&(o=e.tagName),!(o&&o.toLowerCase().startsWith("i-")||s.nodeType===Node.ELEMENT_NODE&&(s.hasAttribute("placeholder")||s.hasAttribute("fallback")||s.hasAttribute("overflow")))&&n.push(r);var s,e,o;return n}(t)}function k(t){var i=t.isConnected;if(void 0!==i)return i;for(var n=t;(n=x(n)).host;)n=n.host;return n.nodeType===Node.DOCUMENT_NODE}function x(t){if(Node.prototype.getRootNode)return t.getRootNode();var i,n;for(i=t;i.parentNode&&(!(n=i)||"I-AMPHTML-SHADOW-ROOT"!=n.tagName&&(11!=n.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(n)));i=i.parentNode);return i}function M(t){try{t.focus()}catch(t){}}function A(t){var i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;var n=t.message,r=t.stack,s=new Error(n);for(var e in t)s[e]=t[e];return s.stack=r,s}function O(t){for(var i,n=null,r="",s=c(arguments,!0);!(i=s()).done;){var e=i.value;e instanceof Error&&!n?n=A(e):(r&&(r+=" "),r+=e)}return n?r&&(n.message=r+": "+n.message):n=new Error(r),n}function E(t){var i,n;null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t)}function S(t){var i=O.apply(null,arguments);setTimeout((function(){throw E(i),i}))}function j(t){try{for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return t.apply(null,n)}catch(t){S(t)}}d.hasOwnProperty,d.toString;var D=["Webkit","webkit","Moz","moz","ms","O","o"],X={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function z(t,i,n,r,s){var e=function(t,i,n){if(i.startsWith("--"))return i;v||(v=Object.create(null));var r=v[i];if(!r||n){if(r=i,void 0===t[i]){var s=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),e=function(t,i){for(var n=0;n<D.length;n++){var r=D[n]+i;if(void 0!==t[r])return r}return""}(t,s);void 0!==t[e]&&(r=e)}n||(v[i]=r)}return r}(t.style,i,s);if(e){var o,a=r?n+r:n;t.style.setProperty((o=e.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})),D.some((function(t){return o.startsWith(t+"-")}))?"-".concat(o):o),a)}}function R(t,i){for(var n in i)z(t,n,i[n])}function P(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function _(t,i){return t.getComputedStyle(i)||X}var I=/vertical/,T=new WeakMap,C=new WeakMap,W=new WeakMap;function B(t){var i=T.get(t);return i||(i=new t.ResizeObserver(L),T.set(t,i)),i}function L(t){for(var i=new Set,n=t.length-1;n>=0;n--){var r=t[n],s=r.target;if(!i.has(s)){i.add(s);var e=C.get(s);if(e){W.set(s,r);for(var o=0;o<e.length;o++){var a=e[o],h=a.callback;N(a.type,h,r)}}}}}function N(t,i,n){if(0==t){var r=n.contentRect,s=r.height;j(i,{width:r.width,height:s})}else if(1==t){var e,o=n.borderBoxSize;if(o)e=o.length>0?o[0]:{inlineSize:0,blockSize:0};else{var a,h,u=n.target,f=b(u),c=I.test(_(f,u).writingMode),l=u,v=l.offsetHeight,d=l.offsetWidth;c?(h=d,a=v):(a=d,h=v),e={inlineSize:a,blockSize:h}}j(i,e)}}var Y=[],V="__AMP_MODAL_SAVED_TAB_INDEX";function q(t){for(var i=[],n=t;n;n=n.parentNode||n.host)i.push(n);return i}function F(t,i,n){null===n||null==n?t.removeAttribute(i):t.setAttribute(i,n)}var H="i-amphtml-element",U=function(t){return t.unmount()};function $(t,i,n,r){for(var s,e=u(s=t)?s:[s],o=0;o<e.length;o++)G(e[o],i,n,r)}function G(t,i,n,r){if(i&&t.classList.contains(H)){var s=t;if(j(r,s),!n){var e=s.getPlaceholder();return void(e&&G(e,!0,!1,r))}}for(var o=t.getElementsByClassName(H),a=null,h=0;h<o.length;h++){var u=o[h];if(n)j(r,u);else{a=a||[];for(var f=!1,c=0;c<a.length;c++)if(a[c].contains(u)){f=!0;break}f||(a.push(u),j(r,u))}}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Z,J=self.__AMP_LOG;function K(t){return J.user||(J.user=Q()),function(t,i){return i&&i.ownerDocument.defaultView!=t}(J.user.win,t)?J.userForEmbed||(J.userForEmbed=Q()):J.user}function Q(t){return function(t,i){throw new Error("failed to call initLogConstructor")}()}function tt(t,i,n,r,s,e,o,a,h,u,f){return t}function it(t,i){return ot(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),i)}function nt(t,i){return ot(et(st(t)),i)}function rt(t,i){var n=et(st(t));return at(n,i)?ot(n,i):null}function st(t){return t.nodeType?(i=b(t),it(i,"ampdoc")).getAmpDoc(t):t;var i}function et(t){var i=st(t);return i.isSingleDoc()?i.win:i}function ot(t,i){tt(at(t,i));var n=function(t){var i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}(t)[i];return n.obj||(tt(n.ctor),tt(n.context),n.obj=new n.ctor(n.context),tt(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function at(t,i){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!n||!n.ctor)}var ht,ut=function(t){return nt(t,"owners")},ft=function(t){return ot(t,"timer")};function ct(t){if(void 0!==ht)return ht;ht=!1;try{var i={get passive(){return ht=!0,!1}};t.addEventListener("test-options",null,i),t.removeEventListener("test-options",null,i)}catch(t){}return ht}function lt(t,i){var n,r=function(t,i){if(void 0!==l?l:l=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))return t.querySelector(y(i,":scope"));var n=function(t,i){var n=t.classList,r="i-amphtml-scoped";n.add(r);var s=y(":not([toolbar]) [autoscroll]",".".concat(r)),e=t.querySelectorAll(s);return n.remove(r),e}(t)[0];return void 0===n?null:n}(i,":not([toolbar]) [autoscroll]");if(r){var s=_(t.win,i)["overflow-y"];"scroll"==s||"auto"==s?(n=t,nt(n,"viewport")).animateScrollWithinParent(r,i,"center",0):K().error("AMP-SIDEBAR","for 'autoscroll', 'nav [toolbar]' element must be set to overflow\n 'scroll' or 'auto' for 'autoscroll' to work.")}}function vt(t,i){var n=ft(t);return n.promise(1).then((function(){return n.promise(i)}))}var dt=function(){function t(){this.fn=null}var i=t.prototype;return i.add=function(t){var i=this;return this.fn||(this.fn=[]),this.fn.push(t),function(){i.remove(t)}},i.remove=function(t){var i,n,r;this.fn&&(n=t,-1!=(r=(i=this.fn).indexOf(n))&&i.splice(r,1))},i.removeAll=function(){this.fn&&(this.fn.length=0)},i.fire=function(t){if(this.fn)for(var i,n=c(this.fn.slice(),!0);!(i=n()).done;)(0,i.value)(t)},i.getHandlerCount=function(){var t,i;return null!==(t=null===(i=this.fn)||void 0===i?void 0:i.length)&&void 0!==t?t:0},t}(),mt=function(){function t(t,i,n){var r=this;this.je=ft(t),this.De=i,this.Ue=n||0,this.ze=-1,this.Le=0,this.He=!1,this.Ge=function(){r.Ve()}}var i=t.prototype;return i.isPending=function(){return-1!=this.ze},i.schedule=function(t){var i=t||this.Ue;this.He&&i<10&&(i=10);var n=Date.now()+i;return(!this.isPending()||n-this.Le<-10)&&(this.cancel(),this.Le=n,this.ze=this.je.delay(this.Ge,i),!0)},i.Ve=function(){this.ze=-1,this.Le=0,this.He=!0,this.De(),this.He=!1},i.cancel=function(){this.isPending()&&(this.je.cancel(this.ze),this.ze=-1)},t}(),pt="__AMP_Gestures",bt=function(t,i,n,r){this.type=t,this.data=i,this.time=n,this.event=r},yt=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.el=t,this.XM=[],this.zm=[],this.wi=[],this.qM=[],this.$M=null;var r=t.ownerDocument.defaultView,s=ct(r);this.KM=i||s,this.JM=n,this.QM=!1,this.Ve=new mt(b(t),this.ov.bind(this)),this.tI=new dt,this.iI=Object.create(null),this.nI=this.zp.bind(this),this.rI=this._p.bind(this),this.oI=this.qp.bind(this),this.aI=this.qm.bind(this),this.el.addEventListener("touchstart",this.nI,!!s&&{passive:!0}),this.el.addEventListener("touchend",this.rI),this.el.addEventListener("touchmove",this.oI,!!s&&{passive:!0}),this.el.addEventListener("touchcancel",this.aI),this.sI=!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],s=i[pt];return s||(s=new t(i,n,r),i[pt]=s),s};var i=t.prototype;return i.cleanup=function(){this.el.removeEventListener("touchstart",this.nI),this.el.removeEventListener("touchend",this.rI),this.el.removeEventListener("touchmove",this.oI),this.el.removeEventListener("touchcancel",this.aI),delete this.el[pt],this.Ve.cancel()},i.onGesture=function(t,i){var n=new t(this),r=n.getType(),s=this.iI[r];return s||(this.XM.push(n),s=new dt,this.iI[r]=s),s.add(i)},i.removeGesture=function(t){var i=new t(this).getType(),n=this.iI[i];if(n){n.removeAll();var r=function(t,n){for(var r=0;r<t.length;r++)if(t[r].getType()==i)return r;return-1}(this.XM);return!(r<0||(this.XM.splice(r,1),this.wi.splice(r,1),this.qM.splice(r,1),this.zm.splice(r,1),delete this.iI[i],0))}return!1},i.onPointerDown=function(t){return this.tI.add(t)},i.zp=function(t){var i=Date.now();this.QM=!1,this.tI.fire(t);for(var n=0;n<this.XM.length;n++)this.wi[n]||(this.qM[n]&&this.qM[n]<i&&this.$m(n),this.XM[n].onTouchStart(t)&&this.Wm(n));this.eI(t)},i.qp=function(t){for(var i=Date.now(),n=0;n<this.XM.length;n++)this.zm[n]&&(this.qM[n]&&this.qM[n]<i?this.$m(n):this.XM[n].onTouchMove(t)||this.$m(n));this.eI(t)},i._p=function(t){for(var i=Date.now(),n=0;n<this.XM.length;n++)if(this.zm[n])if(this.qM[n]&&this.qM[n]<i)this.$m(n);else{this.XM[n].onTouchEnd(t);var r=!this.qM[n],s=this.qM[n]<i;this.$M==this.XM[n]||!r&&!s||this.$m(n)}this.eI(t)},i.qm=function(t){for(var i=0;i<this.XM.length;i++)this.uI(i);this.eI(t)},i.Op=function(t,i){if(this.$M)t.acceptCancel();else{for(var n=Date.now(),r=0;r<this.XM.length;r++)this.XM[r]==t&&(this.wi[r]=n+i,this.qM[r]=0);this.sI=!0}},i.hI=function(t,i){if(this.$M)t.acceptCancel();else for(var n=Date.now(),r=0;r<this.XM.length;r++)this.XM[r]==t&&(this.qM[r]=n+i)},i.cI=function(t){this.$M==t&&(this.$M=null,this.QM=!0)},i.lI=function(t,i,n){p(this.$M==t);var r=this.iI[t.getType()];r&&r.fire(new bt(t.getType(),i,Date.now(),n))},i.eI=function(t){var i=!!this.$M||this.QM;if(this.QM=!1,!i)for(var n=Date.now(),r=0;r<this.XM.length;r++)if(this.wi[r]||this.qM[r]&&this.qM[r]>=n){i=!0;break}i?(t.stopPropagation(),this.KM||t.preventDefault()):this.JM&&t.stopPropagation(),this.sI&&(this.sI=!1,this.ov())},i.ov=function(){for(var t=Date.now(),i=-1,n=0;n<this.XM.length;n++)this.wi[n]?(-1==i||this.wi[n]>this.wi[i])&&(i=n):this.qM[n]&&this.qM[n]<t&&this.$m(n);if(-1!=i){for(var r=0,s=0;s<this.XM.length;s++)!this.wi[s]&&this.zm[s]&&(r=Math.max(r,this.qM[s]-t));r<2?this.mI(i):this.Ve.schedule(r)}},i.mI=function(t){for(var i=this.XM[t],n=0;n<this.XM.length;n++)n!=t&&this.uI(n);this.wi[t]=0,this.qM[t]=0,this.$M=i,i.acceptStart()},i.Wm=function(t){this.zm[t]=!0,this.qM[t]=0},i.$m=function(t){this.zm[t]=!1,this.qM[t]=0,this.wi[t]||this.XM[t].acceptCancel()},i.uI=function(t){this.wi[t]=0,this.$m(t)},t}(),wt=function(){function t(t,i){this.pI=t,this.Fy=i}var i=t.prototype;return i.getType=function(){return this.pI},i.signalReady=function(t){this.Fy.Op(this,t)},i.signalPending=function(t){this.Fy.hI(this,t)},i.signalEnd=function(){this.Fy.cI(this)},i.signalEmit=function(t,i){this.Fy.lI(this,t,i)},i.acceptStart=function(){},i.acceptCancel=function(){},i.onTouchStart=function(t){return!1},i.onTouchMove=function(t){return!1},i.onTouchEnd=function(t){},t}();function gt(t,i,n){i<1&&(i=1);var r=t/i,s=.5+Math.min(i/33.34,.5);return r*s+n*(1-s)}Math.round(-16.67/Math.log(.95));var kt=function(t){r(n,t);var i=a(n);function n(t){return i.call(this,"swipe-x",t,!0,!1)}return n}(function(t){r(n,t);var i=a(n);function n(t,n,r,s){var e;return(e=i.call(this,t,n)).fI=r,e.dI=s,e.$M=!1,e.vI=0,e.yI=0,e.gI=0,e.bI=0,e.xI=0,e.wI=0,e.fa=0,e.kI=0,e.AI=0,e.TI=0,e.SI=0,e}var s=n.prototype;return s.onTouchStart=function(t){var i=t.touches;return!!(this.$M&&i&&i.length>1)||!(!i||1!=i.length)&&(this.fa=Date.now(),this.vI=i[0].clientX,this.yI=i[0].clientY,!0)},s.onTouchMove=function(t){var i=t.touches;if(i&&i.length>=1){var n=i[0],r=n.clientX,s=n.clientY;if(this.gI=r,this.bI=s,this.$M)this.EI(!1,!1,t);else{var e=Math.abs(r-this.vI),o=Math.abs(s-this.yI);if(this.fI&&this.dI)(e>=8||o>=8)&&this.signalReady(-10);else if(this.fI){if(e>=8&&e>o)this.signalReady(-10);else if(o>=8)return!1}else{if(!this.dI)return!1;if(o>=8&&o>e)this.signalReady(-10);else if(e>=8)return!1}}return!0}return!1},s.onTouchEnd=function(t){var i=t.touches;i&&0==i.length&&this.OI(t)},s.acceptStart=function(){this.$M=!0,this.xI=this.vI,this.wI=this.yI,this.AI=this.fa,this.vI=this.gI,this.yI=this.bI,this.EI(!0,!1,null)},s.acceptCancel=function(){this.$M=!1},s.EI=function(t,i,n){this.kI=Date.now();var r=this.kI-this.AI;if(!i&&r>4||i&&r>16){var s=gt(this.gI-this.xI,r,this.TI),e=gt(this.bI-this.wI,r,this.SI);(!i||r>32||0!=s||0!=e)&&(this.TI=Math.abs(s)>1e-4?s:0,this.SI=Math.abs(e)>1e-4?e:0),this.xI=this.gI,this.wI=this.bI,this.AI=this.kI}this.signalEmit({first:t,last:i,time:this.kI,deltaX:this.gI-this.vI,deltaY:this.bI-this.yI,startX:this.vI,startY:this.yI,lastX:this.gI,lastY:this.bI,velocityX:this.TI,velocityY:this.SI},n)},s.OI=function(t){this.$M&&(this.$M=!1,this.EI(!1,!0,t),this.signalEnd())},n}(wt)),xt="backward",Mt="horizontal",At=function(){function t(t,i,n){this.t=t,this.Ox=i,this.DQ=n,this.XQ=xt,this._Q=Mt,this.RQ=null,this.PQ=null}var i=t.prototype;return i.TQ=function(){return this._Q==Mt?this.RQ.offsetWidth:this.RQ.offsetHeight},i.zQ=function(t,i){var n=this._Q==Mt?t:i;return this.XQ==xt?-Math.min(n,0):Math.max(n,0)},i.IQ=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=this.XQ==xt?-t:t,r=this._Q==Mt?"".concat(n).concat(i):0,s=this._Q==Mt?0:"".concat(n).concat(i);return"translate(".concat(r,", ").concat(s,")")},i.startSwipe=function(t){var i=t.direction,n=t.mask,r=t.orientation,s=t.swipeElement;this.RQ=s,this.PQ=n,this.XQ=i,this._Q=r},i.swipeMove=function(t){this.CQ(t,!1)},i.endSwipe=function(t){this.CQ(t,!0)},i.NQ=function(t,i){var n=.75*i;return R(this.RQ,{transform:this.IQ(t,"px"),transition:"".concat(n,"ms transform ").concat("cubic-bezier(0.15, .55, .3, 0.95)")}),vt(this.t,n)},i.LQ=function(t){var i=this,n=.8*t;return this.Ox((function(){R(i.RQ,{transform:i.IQ(0),transition:"".concat(n,"ms transform ease-in")}),R(i.PQ,{opacity:"",transition:"".concat(n,"ms opacity ease-in")})})).then((function(){return vt(i.t,n)}))},i.WQ=function(t){var i=this,n=.75*(this.TQ()-t);return this.Ox((function(){R(i.RQ,{transform:i.IQ(100,"%"),transition:"".concat(n,"ms transform ease-out")}),R(i.PQ,{opacity:0,transition:"".concat(n,"ms opacity ease-out")})})).then((function(){return vt(i.t,n)})).then((function(){return i.DQ()}))},i.BQ=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";R(this.RQ,{transform:t,transition:""}),R(this.PQ,{opacity:i,transition:""})},i.YQ=function(t,i,n,r){var s=this,e=22.5*t+n,o=22.5*i+r,a=this.zQ(e,o),h=this.zQ(t,i),u=.5*this.TQ();return a<u&&h<.65?this.NQ(a,h).then((function(){return s.LQ(a)})):this.WQ(a)},i.CQ=function(t,i){var n=this,r=t.deltaX,s=t.deltaY,e=t.velocityX,o=t.velocityY;this.Ox((function(){if(i)n.YQ(e,o,r,s).then((function(){n.BQ()}));else{var t=n.zQ(r,s),a=t/n.TQ(),h=Math.max(0,1-a);n.BQ(n.IQ(t,"px"),h)}}))},t}(),Ot=function(){function t(t,i){this.Zb=i,this.FQ=t,this.Ki=i.getAmpDoc(),this.GQ=this.FQ.getAttribute("toolbar"),this.UQ=null,this.VQ=void 0,this.HQ=!1,this.FQ.classList.add("amp-sidebar-toolbar-target-hidden"),this.$Q()}var i=t.prototype;return i.onLayoutChange=function(){this.Ki.win.matchMedia(this.GQ).matches?this.qQ():this.JQ()},i.$Q=function(){this.UQ=this.FQ.cloneNode(!0);var t,i,n=(t=this.FQ.getAttribute("toolbar-target"),'"toolbar-target" is required',i=this.FQ,K().assert(t,'"toolbar-target" is required',i,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined)),r=this.Ki.getElementById(n);if(!r)throw K().createError("Could not find the toolbar-target element with an id: ".concat(n));this.VQ=r,this.UQ.classList.add("i-amphtml-toolbar"),P(this.VQ,!1)},i.ZQ=function(){return this.HQ},i.qQ=function(){var t=this;return this.ZQ()?Z||(Z=Promise.resolve(void 0)):this.Zb.mutateElement((function(){t.VQ&&(P(t.VQ,!0),t.VQ.contains(t.UQ)||t.VQ.appendChild(t.UQ),t.FQ.classList.add("amp-sidebar-toolbar-target-shown"),t.FQ.classList.remove("amp-sidebar-toolbar-target-hidden"),t.HQ=!0,lt(t.Ki,t.UQ))}))},i.JQ=function(){var t=this;this.ZQ()&&this.Zb.mutateElement((function(){t.VQ&&(P(t.VQ,!1),t.FQ.classList.add("amp-sidebar-toolbar-target-hidden"),t.FQ.classList.remove("amp-sidebar-toolbar-target-shown"),t.HQ=!1)}))},t}();function Et(t){var i=t.indexOf("#");return-1==i?t:t.substring(0,i)}var St="amp-sidebar toolbar",jt="left",Dt="right",Xt=function(t){r(s,t);var n=a(s);function s(t){var r;(r=n.call(this,t)).Ro=null,r.Ye=null,r.KQ=null,r.iW=null,r.Qf=r.win.document,r.rW=r.Qf.documentElement,r.uX=null,r.QQ=[];var s=it(r.win,"platform");return r.qZ=s.isIos(),r.US=s.isSafari(),r.BY=-1,r.t0=!1,r.ZZ=null,r.HZ=null,r.i0=0,r.n0=!1,r.r0=null,r.e0=new At(r.win,(function(t){return r.mutateElement(t)}),(function(){return r.s0(!0,3)})),r.rst=!1,r.sst=!1,r.Xb=r.Xb.bind(i(r)),r.o0=null,r}var e=s.prototype;return e.buildCallback=function(){var t,i=this,n=this.element;n.classList.add("i-amphtml-overlay"),n.classList.add("i-amphtml-scrollable"),this.uX=n.getAttribute("side"),this.sst=n.hasAttribute("data-disable-swipe-close"),this.Ro=this.getViewport(),this.Ye=function(t){return rt(t,"action")}(n),this.element.parentNode!=this.element.ownerDocument.body&&this.element.parentNode!=this.getAmpDoc().getBody()&&this.user().warn(St,"".concat(St," is recommended to be a direct child of the <body> element to preserve a logical DOM order.")),this.uX!=jt&&this.uX!=Dt&&(this.uX=this.a0("rtl"==((t=this.Qf).body.getAttribute("dir")||t.documentElement.getAttribute("dir")||"ltr")?Dt:jt),n.setAttribute("side",this.uX)),this.h0(),n.addEventListener("amp:dom-update",(function(){i.h0()})),this.getAmpDoc().whenReady().then((function(){h(n.querySelectorAll("nav[toolbar]")).forEach((function(t){try{i.QQ.push(new Ot(t,i))}catch(t){i.user().error(St,"Failed to instantiate toolbar",t)}})),i.Xb()})),this.qZ&&this.u0(),n.hasAttribute("role")||n.setAttribute("role","menu"),n.tabIndex=-1,this.rW.addEventListener("keydown",(function(t){"Escape"==t.key&&i.OA(3)&&t.preventDefault()})),this.ZZ=this.jQ(),this.ZZ||(this.ZZ=this.createScreenReaderCloseButton(),n.insertBefore(this.ZZ,this.element.firstChild)),n.appendChild(this.createScreenReaderCloseButton()),this.registerDefaultAction((function(t){var n=t.caller,r=t.trust;i.dX(r,n)}),"open"),this.registerAction("close",(function(t){i.OA(t.trust)})),this.registerAction("toggle",(function(t){var n=t.caller,r=t.trust;i.n0?i.OA(r):i.dX(r,n)})),this.Ye.addToAllowlist("amp-sidebar",["open","close","toggle"],["email"]),n.addEventListener("click",(function(t){var r=w(t.target,"A");if(r&&r.href){var s=function(t){return rt(t,"url")}(n).parse(r.href),e=i.getAmpDoc().getUrl();if(Et(r.href)!=Et(e))return;s.hash&&i.OA(3)}}),!0),this.zY(this.element)},e.attachedCallback=function(){this.o0=this.Ro.onResize(function(t,i,n){var r=0,s=0,e=null;function o(){r=0;var n,a=100-(t.Date.now()-s);a>0?r=t.setTimeout(o,a):(n=e,e=null,i.apply(null,n))}return function(){s=t.Date.now();for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];e=n,r||(r=t.setTimeout(o,100))}}(this.win,this.Xb)),this.Xb()},e.detachedCallback=function(){this.o0&&(this.o0(),this.o0=null)},e.h0=function(){if(!this.r0){var t=this.element.querySelector("amp-nested-menu");t&&((i=this.win,it(i,"extensions")).installExtensionForDoc(this.getAmpDoc(),"amp-nested-menu"),this.r0=t)}var i},e.jQ=function(){for(var t=this.element.querySelectorAll("[on]"),i=0;i<t.length;i++){var n=t[i],r=this.Ye.hasResolvableActionForTarget(n,"tap",this.element,tt(n.parentElement)),s=w(n,"[toolbar]");if(r&&!s)return n}return null},e.createScreenReaderCloseButton=function(){var t=this,i=this.element.getAttribute("data-close-button-aria-label")||"Close the sidebar",n=this.Qf.createElement("button");return n.textContent=i,n.classList.add("i-amphtml-screen-reader"),n.tabIndex=-1,n.addEventListener("click",(function(){t.OA(3)})),n},e.Xb=function(){var t=this;this.getAmpDoc().whenReady().then((function(){t.QQ.forEach((function(t){t.onLayoutChange()}))}))},e.f0=function(t,i){var n=this;this.KQ=t;var r=function(){n.KQ===t&&n.mutateElement(t)};i?ft(this.win).delay(r,i):r()},e.c0=function(t){var i=this;P(this.element,!0),P(this.l0(),!0),this.Ro.addToFixedLayer(this.element,!0),this.mutateElement((function(){!function(t){p(Y.every((function(i){return i.element!==t}))),p(k(t));var i=function(t){for(var i=[],n=q(t),r=function(t){var r=n[t];if(!r.parentNode)return"continue";h(r.parentNode.children).filter((function(t){return t!=r})).forEach((function(t){return i.push(t)}))},s=0;s<n.length;s++)r(s);return i}(t),n=q(t).filter(m),r=function(t){for(var i=[],n=t;n;){var r=x(n),s=r.querySelectorAll(["a[href]","area[href]","button","details summary","iframe","input","select","textarea","[contenteditable]","[draggable]","[tabindex]"].join(","));Array.prototype.push.apply(i,s),n=r.host}return i}(t),s=r.filter((function(i){return t.contains(i)&&void 0!==i[V]})),e=r.filter((function(i){return!t.contains(i)&&void 0===i[V]})),o=i.concat(n).map((function(t){return{element:t,prevValue:t.getAttribute("aria-hidden")}}));n.forEach((function(t){return t.removeAttribute("aria-hidden")})),i.forEach((function(t){return t.setAttribute("aria-hidden","true")})),e.forEach((function(t){t[V]=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")})),s.forEach((function(t){p(void 0!==t[V]),F(t,"tabindex",t[V])})),Y.push({element:t,hiddenElementInfos:o,focusableExternalElements:e,focusableInternalElements:s})}(i.element)})),this.qZ&&this.US&&this.v0(),this.element.scrollTop=1,this.element.setAttribute("open",""),this.l0().setAttribute("open",""),this.f0((function(){return i.d0(t)}),350),lt(this.getAmpDoc(),this.element)},e.d0=function(t){var i=g(this.element),n=ut(this.element);n.scheduleLayout(this.element,i),n.scheduleResume(this.element,i),this.m0()||M(tt(this.ZZ)),this.fD("sidebarOpen",t),this.element.setAttribute("i-amphtml-sidebar-opened",""),this.l0().setAttribute("i-amphtml-sidebar-opened",""),this.setAsContainer()},e.p0=function(t,i){var n=this;this.l0().removeAttribute("open"),this.l0().removeAttribute("i-amphtml-sidebar-opened"),this.mutateElement((function(){!function(t){var i=Y.pop();p(i);var n=i.element,r=i.focusableExternalElements,s=i.focusableInternalElements,e=i.hiddenElementInfos;p(k(t)),p(n===t),e.forEach((function(t){return F(t.element,"aria-hidden",t.prevValue)})),s.forEach((function(t){return t.setAttribute("tabindex","-1")})),r.forEach((function(t){p(void 0!==t[V]),F(t,"tabindex",t[V]),t[V]=void 0}))}(n.element)})),this.element.removeAttribute("open"),this.element.removeAttribute("i-amphtml-sidebar-opened"),this.f0((function(){return n.b0(i)}),t?0:350)},e.b0=function(t){P(this.element,!1),P(this.l0(),!1),ut(this.element).schedulePause(this.element,g(this.element)),this.fD("sidebarClose",t),this.removeAsContainer(),function(t){$(t,!(arguments.length>1&&void 0!==arguments[1])||arguments[1],!0,U)}(this.element,!1)},e.dX=function(t,i){var n=this;this.n0||(this.n0=!0,this.Ro.enterOverlayMode(),this.f0((function(){return n.c0(t)})),this.gX().push((function(){n.qZ?n.s0(!0,t):n.OA(t)})).then((function(t){n.BY=t})),i&&(this.HZ=i,this.i0=this.Ro.getScrollTop()),function(t,i,n){var r=t.ownerDocument.defaultView;if(r){var s=C.get(t);if(s||(s=[],C.set(t,s),B(r).observe(t)),!s.some((function(t){return t.callback===n&&0===t.type}))){s.push({type:0,callback:n});var e=W.get(t);e&&setTimeout((function(){return N(0,n,e)}))}}}(this.element,0,this.Xb))},e.OA=function(t){return this.s0(!1,t)},e.s0=function(t,i){var n=this;if(!this.n0)return!1;this.n0=!1,this.Ro.leaveOverlayMode();var r=this.i0==this.Ro.getScrollTop(),s=this.element.contains(this.Qf.activeElement);return this.f0((function(){return n.p0(t,i)})),t&&(P(this.element,!1),P(this.l0(),!1)),-1!=this.BY&&(this.gX().pop(this.BY),this.BY=-1),this.HZ&&s&&r&&(this.m0()||M(this.HZ)),function(t,i,n){var r=C.get(t);if(r&&(function(t,i){for(var r=[],s=0,e=0;e<t.length;e++){var o=t[e];(a=o).callback===n&&0===a.type?r.push(o):(s<e&&(t[s]=o),s++)}var a;s<t.length&&(t.length=s)}(r),0==r.length)){C.delete(t),W.delete(t);var s=t.ownerDocument.defaultView;s&&B(s).unobserve(t)}}(this.element,0,this.Xb),!0},e.zY=function(t){var i=this;this.sst||yt.get(t,!0,!0).onGesture(kt,(function(t){var n=t.data,r=t.event;i.y0(n,r)}))},e.y0=function(t,i){var n;if(!t.first)return t.last?(this.rst&&this.e0.endSwipe(t),void(this.rst=!1)):void(i&&i.target&&(n=i.target,"input"!==n.nodeName.toLowerCase()||"range"!==n.getAttribute("type"))&&(this.rst=!0,this.e0.swipeMove(t)));this.e0.startSwipe({swipeElement:this.element,mask:this.iW,direction:this.uX==jt?xt:"forward",orientation:Mt})},e.a0=function(t){return w(this.element,"amp-story")?t==jt?Dt:jt:t},e.l0=function(){var t=this;if(!this.iW){var i=this.Qf.createElement("div");i.classList.add("amp-sidebar-mask","i-amphtml-sidebar-mask"),i.addEventListener("click",(function(){t.OA(3)})),this.getAmpDoc().getBody().appendChild(i),i.addEventListener("touchmove",(function(t){t.preventDefault()})),this.zY(i),this.iW=i}return this.iW},e.u0=function(){var t=this;this.element.addEventListener("scroll",(function(i){t.n0&&(t.element.scrollTop<1?(t.element.scrollTop=1,i.preventDefault()):t.element.scrollHeight==t.element.scrollTop+t.element.offsetHeight&&(t.element.scrollTop=t.element.scrollTop-1,i.preventDefault()))}))},e.v0=function(){if(!this.t0){var t=this.Qf.createElement("div");R(t,{"height":"54px","width":"100%","background-color":"transparent"}),this.element.appendChild(t),this.t0=!0}},e.gX=function(){return nt(this.getAmpDoc(),"history")},e.fD=function(t,i){var n=function(t,i,n,r){var s={detail:n};if(Object.assign(s,void 0),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,s);var e=t.document.createEvent("CustomEvent");return e.initCustomEvent(i,!!s.bubbles,!!s.cancelable,n),e}(this.win,"".concat(St,".").concat(t),{});this.Ye.trigger(this.element,t,n,i)},e.m0=function(){return this.qZ&&(t=this.element,nt(t,"viewer")).isEmbedded();var t},s}(t.BaseElement);t.registerElement("amp-sidebar",Xt,"amp-sidebar{--story-page-vh:1vh;position:fixed!important;top:0;max-height:100vh!important;height:100vh;max-width:80vw;background-color:#efefef;min-width:45px!important;outline:none;overflow-x:hidden!important;overflow-y:auto!important;z-index:2147483647;-webkit-overflow-scrolling:touch;will-change:transform}amp-sidebar[side=left]{left:0!important;transform:translateX(-100%);animation-name:i-amphtml-sidebar-slide-out-left}amp-sidebar[side=left][open]{animation-name:i-amphtml-sidebar-slide-in-left}amp-sidebar[side=right]{right:0!important;transform:translateX(100%);animation-name:i-amphtml-sidebar-slide-out-right}amp-sidebar[side=right][open]{animation-name:i-amphtml-sidebar-slide-in-right}amp-sidebar[side][i-amphtml-sidebar-opened]{transform:none;animation:none}.i-amphtml-sidebar-mask,amp-sidebar[side]{animation-duration:233ms;animation-timing-function:cubic-bezier(0,0,.21,1);animation-fill-mode:forwards}.i-amphtml-toolbar>ol,.i-amphtml-toolbar>ul{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-wrap:wrap;flex-wrap:wrap;overflow:auto;list-style-type:none;padding:0;margin:0}.amp-sidebar-mask{background-color:rgba(0,0,0,.5)}.i-amphtml-sidebar-mask{position:fixed!important;top:0!important;left:0!important;width:100vw!important;height:100vh!important;background-image:none!important;animation-name:i-amphtml-sidebar-mask-fade-out;z-index:2147483646}.i-amphtml-sidebar-mask[open]{animation-name:i-amphtml-sidebar-mask-fade-in}.i-amphtml-sidebar-mask[i-amphtml-sidebar-opened]{animation:none}@keyframes i-amphtml-sidebar-slide-in-left{0%{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes i-amphtml-sidebar-slide-out-left{0%{transform:translateX(0)}to{transform:translateX(-100%)}}@keyframes i-amphtml-sidebar-slide-in-right{0%{transform:translateX(100%)}to{transform:translateX(0)}}@keyframes i-amphtml-sidebar-slide-out-right{0%{transform:translateX(0)}to{transform:translateX(100%)}}@keyframes i-amphtml-sidebar-mask-fade-in{0%{opacity:0}to{opacity:1}}@keyframes i-amphtml-sidebar-mask-fade-out{0%{opacity:1}to{opacity:0}}\n/*# sourceURL=/extensions/amp-sidebar/0.1/amp-sidebar.css*/")}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-sidebar-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-video",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function i(t,i){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,i){if(t){if("string"==typeof t)return n(t,i);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){r&&(t=r);var e=0;return function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}}}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 r;function e(){return r||(r=Promise.resolve(void 0))}var o=function(){var t=this;this.promise=new Promise((function(n,i){t.resolve=n,t.reject=i}))};function u(t){return new Promise((function(n){n(t())}))}function a(t,n){return(a=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t){return(c="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 f(t,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return t?Array.prototype.slice.call(t):[]}var l=Array.isArray;function v(t){return l(t)?t:[t]}var d=Object.prototype,p=d.hasOwnProperty,m=d.toString;function b(t){var n=Object.create(null);return t&&Object.assign(n,t),n}function y(t){return"number"==typeof t&&isFinite(t)}function g(t,n,i,r,e,o,u,a,s,c,f){return t}function w(t){return JSON.parse(t)}function j(t){return(t.ownerDocument||t).defaultView}var k,O=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function x(t,n,i,r,e){return e||(n?"�":r?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function S(t){return void 0!==k?k:k=function(t){try{var n=t.ownerDocument,i=n.createElement("div"),r=n.createElement("div");return i.appendChild(r),i.querySelector(":scope div")===r}catch(t){return!1}}(t)}function q(t,n){return t.replace(/^|,/g,"$&".concat(n," "))}function E(t){g(/^[\w-]+$/.test(t))}function M(t,n){var i=t.classList,r="i-amphtml-scoped";i.add(r);var e=q(n,".".concat(r)),o=t.querySelectorAll(e);return i.remove(r),o}function _(t,n){var i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!i&&i.call(t,n)}function P(t,n){for(var i=t.firstElementChild;i;i=i.nextElementSibling)if(n(i))return i;return null}function R(t,n){return E(n),i=t,r="> ".concat(n),S(i)?i.querySelectorAll(q(r,":scope")):M(i,r);var i,r}var A,T,I={bubbles:!0,cancelable:!0};function N(t){var n;null===(n=t.parentElement)||void 0===n||n.removeChild(t)}function Y(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(i){var r=i.nextSibling;t.insertBefore(n,r)}else z(t,n)}function z(t,n){t.insertBefore(n,t.firstChild)}function U(t,n){for(var i in n)t.setAttribute(i,n[i]);return t}function C(t){return t.parent&&t.parent!=t}function L(t,n,i,r){var e=i||{};g(t.ownerDocument);var o=r||I,u=o.bubbles,a=o.cancelable,s=new MessageEvent(n,{data:e,bubbles:u,cancelable:a});t.dispatchEvent(s)}function W(t,n){t.classList.add("i-amphtml-fill-content"),n&&t.classList.add("i-amphtml-replaced-content")}function D(t,n,r,e){for(var o,u=i(v(t),!0);!(o=u()).done;){var a=o.value,s=n.getAttribute(a);null!==s?r.setAttribute(a,s):e&&r.removeAttribute(a)}}function F(t){var n=t.ownerDocument||t;return A&&A.ownerDocument===n||(A=n.createElement("div")),V}function V(t){return function(t,n){if(g(1===n.length),g(Array.isArray(n)||(r=n,p.call(r,"raw"))),self.trustedTypes&&self.trustedTypes.createPolicy){var i=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return n[0]}});t.innerHTML=i.createHTML("ignored")}else t.innerHTML=n[0];var r,e=t.firstElementChild;return g(e),g(!e.nextElementSibling),t.removeChild(e),e}(A,t)}function $(t){var n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;var i=t.message,r=t.stack,e=new Error(i);for(var o in t)e[o]=t[o];return e.stack=r,e}function J(t){for(var n,r=null,e="",o=i(arguments,!0);!(n=o()).done;){var u=n.value;u instanceof Error&&!r?r=$(u):(e&&(e+=" "),e+=u)}return r?e&&(r.message=e+": "+r.message):r=new Error(e),r}function B(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function G(t){var n=J.apply(null,arguments);setTimeout((function(){throw B(n),n}))}function X(t){try{for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.apply(null,i)}catch(t){G(t)}}function Z(t){var n=J.apply(null,arguments);return n.expected=!0,n}var H=["Webkit","webkit","Moz","moz","ms","O","o"],K={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function Q(t){var n=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return H.some((function(t){return n.startsWith(t+"-")}))?"-".concat(n):n}function tt(t,n,i){if(n.startsWith("--"))return n;T||(T=b());var r=T[n];if(!r||i){if(r=n,void 0===t[n]){var e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(n),o=function(t,n){for(var i=0;i<H.length;i++){var r=H[i]+n;if(void 0!==t[r])return r}return""}(t,e);void 0!==t[o]&&(r=o)}i||(T[n]=r)}return r}function nt(t,n,i,r,e){var o=tt(t.style,n,e);if(o){var u=r?i+r:i;t.style.setProperty(Q(o),u)}}function it(t,n){for(var i in n)nt(t,i,n[i])}function rt(t){return null==t.__AMP_AUTOPLAY&&(t.__AMP_AUTOPLAY=function(t){var n,i=t.document.createElement("video");return i.setAttribute("muted",""),i.setAttribute("playsinline",""),i.setAttribute("webkit-playsinline",""),i.setAttribute("height","0"),i.setAttribute("width","0"),i.muted=!0,i.playsInline=!0,i.playsinline=!0,i.webkitPlaysinline=!0,it(i,{position:"fixed",top:"0",width:"0",height:"0",opacity:"0"}),n=i,u((function(){return n.play()})).catch((function(){})),Promise.resolve(!i.paused)}(t)),t.__AMP_AUTOPLAY}function et(t){return t.querySelector("video, iframe")}function ot(t,n){var i=u((function(){return t.play(!!n)}));return i.catch((function(t){!function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];B(Z.apply(null,i))}("TRYPLAY",t)})),i}var ut=/vertical/,at=new WeakMap,st=new WeakMap,ct=new WeakMap;function ft(t){var n=at.get(t);return n||(n=new t.ResizeObserver(ht),at.set(t,n)),n}function ht(t){for(var n=new Set,i=t.length-1;i>=0;i--){var r=t[i],e=r.target;if(!n.has(e)){n.add(e);var o=st.get(e);if(o){ct.set(e,r);for(var u=0;u<o.length;u++){var a=o[u],s=a.callback;lt(a.type,s,r)}}}}}function lt(t,n,i){if(0==t){var r=i.contentRect,e=r.height;X(n,{width:r.width,height:e})}else if(1==t){var o,u=i.borderBoxSize;if(u)o=u.length>0?u[0]:{inlineSize:0,blockSize:0};else{var a,s,c=i.target,f=j(c),h=ut.test(function(t,n){return t.getComputedStyle(n)||K}(f,c).writingMode),l=c,v=l.offsetHeight,d=l.offsetWidth;h?(s=d,a=v):(a=d,s=v),o={inlineSize:a,blockSize:s}}X(n,o)}}var vt=function(){function t(t){this.el=t,this.Jm=!1,this.Xm=!1,this.Ym=this.Ym.bind(this)}var n=t.prototype;return n.updatePlaying=function(t){t!==this.Jm&&(this.Jm=t,t?(this.Xm=!1,function(t,n,i){var r=t.ownerDocument.defaultView;if(r){var e=st.get(t);if(e||(e=[],st.set(t,e),ft(r).observe(t)),!e.some((function(t){return t.callback===i&&1===t.type}))){e.push({type:1,callback:i});var o=ct.get(t);o&&setTimeout((function(){return lt(1,i,o)}))}}}(this.el,0,this.Ym)):function(t,n){!function(t,n,i){var r=st.get(t);if(r&&(function(t,n){for(var r=[],e=0,o=0;o<t.length;o++){var u=t[o];(a=u).callback===i&&1===a.type?r.push(u):(e<o&&(t[e]=u),e++)}var a;e<t.length&&(t.length=e)}(r),0==r.length)){st.delete(t),ct.delete(t);var e=t.ownerDocument.defaultView;e&&ft(e).unobserve(t)}}(t,0,n)}(this.el,this.Ym))},n.Ym=function(t){var n=t.blockSize,i=t.inlineSize>0&&n>0;if(i!==this.Xm){this.Xm=i;var r=this.el;i||r.pause()}},t}();function dt(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function pt(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),i.push.apply(i,r)}return i}function mt(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?pt(Object(i),!0).forEach((function(n){dt(t,n,i[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):pt(Object(i)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(i,n))}))}return t}var bt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function yt(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return n}}function gt(t){var n,i=b();if(!t)return i;for(;n=bt.exec(t);){var r=yt(n[1],n[1]),e=n[2]?yt(n[2].replace(/\+/g," "),n[2]):"";i[r]=e}return i}function wt(t){var n=(t||self).location;return gt(n.originalHash||n.hash)}function jt(t){var n=!1,i=null,r=t;return function(){if(!n){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];i=r.apply(self,e),n=!0,r=null}return i}}var kt="";function Ot(t){var n;return kt||(kt=(null===(n=t.AMP_CONFIG)||void 0===n?void 0:n.v)||"01".concat("2402231941000")),kt}function xt(t,n){var i=n||wt(t);return["1","actions","amp","amp4ads","amp4email"].includes(i.development)||!!t.AMP_DEV_MODE}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var St=self.__AMP_LOG;function qt(t,n){throw new Error("failed to call initLogConstructor")}function Et(t){return St.user||(St.user=Mt()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(St.user.win,t)?St.userForEmbed||(St.userForEmbed=Mt()):St.user}function Mt(t){return qt()}function _t(){return St.dev||(St.dev=qt())}function Pt(t,n,i,r,e,o,u,a,s,c,f){return t}function Rt(t,n,i,r,e,o,u,a,s,c,f){return Et().assert(t,n,i,r,e,o,u,a,s,c,f)}function At(t,n){return zt(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),n)}function Tt(t,n){return zt(Yt(Nt(t)),n)}function It(t,n){var i=Yt(Nt(t));return Ct(i,n)?zt(i,n):null}function Nt(t){return t.nodeType?(n=j(t),At(n,"ampdoc")).getAmpDoc(t):t;var n}function Yt(t){var n=Nt(t);return n.isSingleDoc()?n.win:n}function zt(t,n){Pt(Ct(t,n));var i=Ut(t)[n];return i.obj||(Pt(i.ctor),Pt(i.context),i.obj=new i.ctor(i.context),Pt(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}function Ut(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}function Ct(t,n){var i=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!i||!i.ctor)}var Lt="__AMP__EXPERIMENT_TOGGLES";function Wt(t,n){var r=function(t){var n,r,e,o,u;if(t[Lt])return t[Lt];t[Lt]=b();var a=t[Lt];g(a);var s=mt(mt({},null!==(n=t.AMP_CONFIG)&&void 0!==n?n:{}),null!==(r=t.AMP_EXP)&&void 0!==r?r:w((null===(e=t.__AMP_EXP)||void 0===e?void 0:e.textContent)||"{}"));for(var c in s){var f=s[c];"number"==typeof f&&f>=0&&f<=1&&(a[c]=Math.random()<f)}var h=null===(o=t.AMP_CONFIG)||void 0===o?void 0:o["allow-doc-opt-in"];if(l(h)&&h.length){var v=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(v)for(var d,p,m=i((null===(d=v.getAttribute("content"))||void 0===d?void 0:d.split(","))||[],!0);!(p=m()).done;){var y=p.value;h.includes(y)&&(a[y]=!0)}}Object.assign(a,function(t){var n,r="";try{var e;"localStorage"in t&&(r=null!==(e=t.localStorage.getItem("amp-experiment-toggles"))&&void 0!==e?e:"")}catch(t){_t().warn("EXPERIMENTS","Failed to retrieve experiments from localStorage.")}for(var o,u=(null===(n=r)||void 0===n?void 0:n.split(/\s*,\s*/g))||[],a=b(),s=i(u,!0);!(o=s()).done;){var c=o.value;c&&("-"==c[0]?a[c.substr(1)]=!1:a[c]=!0)}return a}(t));var j=null===(u=t.AMP_CONFIG)||void 0===u?void 0:u["allow-url-opt-in"];if(l(j)&&j.length)for(var k,O=gt(t.location.originalHash||t.location.hash),x=i(j,!0);!(k=x()).done;){var S=k.value,q=O["e-".concat(S)];"1"==q&&(a[S]=!0),"0"==q&&(a[S]=!1)}return a}(t);return!!r[n]}var Dt,Ft,Vt,$t=function(t){return It(t,"action")},Jt=function(t){return At(t,"extensions")},Bt=function(t){return At(t,"performance")},Gt=function(t){return At(t,"platform")},Xt=function(t){return zt(t,"timer")},Zt=function(t){return It(t,"url")},Ht=function(t){return Tt(t,"viewport")};function Kt(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.needsRootBounds,e=i.rootMargin,o=i.threshold,u=C(n)&&(r||e)?n.document:void 0;return new n.IntersectionObserver(t,{threshold:o,root:u,rootMargin:e})}function Qt(t){var n,i=null===(n=Dt)||void 0===n?void 0:n.get(t);if(!i){var r=function(t){Dt||(Dt=new WeakMap,Ft=new WeakMap),g(Ft);var n=Ft.get(t);return n||(n=Kt((function(t){for(var i=new Set,r=t.length-1;r>=0;r--){var e,o=t[r].target;i.has(o)||(i.add(o),g(n),n.unobserve(o),g(Dt),null===(e=Dt.get(o))||void 0===e||e.resolve(t[r]),Dt.delete(o))}}),t,{needsRootBounds:!0}),Ft.set(t,n)),n}(j(t));g(Dt),r.observe(t),i=new o,Dt.set(t,i)}return i.promise}function tn(t,n,i,r){var e=t,o=i,u=function(t){try{return o(t)}catch(t){var n,i;throw null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t),t}},a=function(){if(void 0!==Vt)return Vt;Vt=!1;try{var t={get capture(){return Vt=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return Vt}(),s=!(null==r||!r.capture);return e.addEventListener(n,u,a?r:s),function(){null==e||e.removeEventListener(n,u,a?r:s),o=null,e=null,u=null}}function nn(t,n,i,r){var e={detail:i};if(Object.assign(e,r),"function"==typeof t.CustomEvent)return new t.CustomEvent(n,e);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(n,!!e.bubbles,!!e.cancelable,i),o}function rn(t,n,i,r){return tn(t,n,i,r)}function en(t,n,i,r){var e=i,o=tn(t,n,(function(t){try{e(t)}finally{e=null,o()}}),r);return o}var on=['<button aria-label="Unmute video" class="i-amphtml-video-mask i-amphtml-fill-content" tabindex=0></button>'],un=["<i-amphtml-video-icon class=amp-video-eq><div class=amp-video-eq-col><div class=amp-video-eq-filler></div><div class=amp-video-eq-filler></div></div></i-amphtml-video-icon>"];function an(t,n,i){if(n[i])return n[i];var r=t.querySelector("style[".concat(i,"], link[").concat(i,"]"));return r?(n[i]=r,r):null}var sn=function(){function t(){this.fn=null}var n=t.prototype;return n.add=function(t){var n=this;return this.fn||(this.fn=[]),this.fn.push(t),function(){n.remove(t)}},n.remove=function(t){var n,i,r;this.fn&&(i=t,-1!=(r=(n=this.fn).indexOf(i))&&n.splice(r,1))},n.removeAll=function(){this.fn&&(this.fn.length=0)},n.fire=function(t){if(this.fn)for(var n,r=i(this.fn.slice(),!0);!(n=r()).done;)(0,n.value)(t)},n.getHandlerCount=function(){var t,n;return null!==(t=null===(n=this.fn)||void 0===n?void 0:n.length)&&void 0!==t?t:0},t}(),cn=function(){function t(){this.xy=!1,this.Oy=new sn}var n=t.prototype;return n.onSessionEnd=function(t){this.Oy.add(t)},n.beginSession=function(){this.xy=!0},n.endSession=function(){this.xy&&this.Oy.fire(),this.xy=!1},n.isSessionActive=function(){return this.xy},t}(),fn={"title":"","artist":"","album":"","artwork":[{"src":""}]},hn="registered",ln="load",vn="loadedmetadata",dn="play",pn="playing",mn="pause",bn="ended",yn="muted",gn="unmuted",wn="reloaded",jn="ad_start",kn="ad_end",On="playing_manual",xn="paused",Sn="video-play",qn="user-interacted";function En(t){t.signals().signal(qn)}var Mn="video-manager",_n=function(){function t(t){var n=this;this.ampdoc=t,this.installAutoplayStyles=jt((function(){return function(t){!function(t,n,i,r,e){var o=t.getHeadNode();!function(t,n,i,r){var e=t.__AMP_CSS_SM;e||(e=t.__AMP_CSS_SM=b());var o="amp-extension=".concat(r);if(o){var u=an(t,e,o);if(u)return"STYLE"==u.tagName&&u.textContent!==n&&(u.textContent=n),u}var a=(t.ownerDocument||t).createElement("style");a.textContent=n;a.setAttribute("amp-extension",r),Y(t,a,an(t,e,"amp-runtime")),o&&(e[o]=a)}(o,function(t,n){var i=t.__AMP_CSS_TR;return i?i(n):n}(o,".i-amphtml-video-mask{display:block;z-index:1;-webkit-appearance:none;appearance:none;background:transparent;border:none}.amp-video-eq{display:none}.i-amphtml-video-interface:not(amp-video) .amp-video-eq,amp-story .amp-video-eq,amp-video[controls] .amp-video-eq{display:-ms-flexbox;display:flex}[noaudio] .amp-video-eq{display:none!important}.amp-video-eq{pointer-events:none!important;-ms-flex-align:end;align-items:flex-end;bottom:7px;height:12px;opacity:0.8;overflow:hidden;position:absolute;right:7px;width:20px;z-index:1}.amp-video-eq-col{-ms-flex:1;flex:1;height:100%;margin-right:1px;position:relative}.amp-video-eq-col div{animation-name:amp-video-eq-animation;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;background-color:#fafafa;height:100%;position:absolute;width:100%;will-change:transform;animation-play-state:paused}.amp-video-eq-play .amp-video-eq-col div{animation-play-state:running}.amp-video-eq-1-1{animation-duration:0.3s;transform:translateY(60%)}.amp-video-eq-1-2{animation-duration:0.45s;transform:translateY(60%)}.amp-video-eq-2-1{animation-duration:0.5s;transform:translateY(30%)}.amp-video-eq-2-2{animation-duration:0.4s;transform:translateY(30%)}.amp-video-eq-3-1{animation-duration:0.3s;transform:translateY(70%)}.amp-video-eq-3-2{animation-duration:0.35s;transform:translateY(70%)}.amp-video-eq-4-1{animation-duration:0.4s;transform:translateY(50%)}.amp-video-eq-4-2{animation-duration:0.25s;transform:translateY(50%)}@keyframes amp-video-eq-animation{0%{transform:translateY(100%)}to{transform:translateY(0)}}\n/*# sourceURL=/css/video-autoplay.css*/"),0,"amp-video-autoplay")}(t)}(n.ampdoc)})),this.ky=null,this.Py=null,this.qy=null,this.je=Xt(t.win),this.Ty=$t(t.getHeadNode()),this.Cy=function(){return n.Ny()},this.Ry=jt((function(){return new An(n.ampdoc,n)})),this.je.delay(this.Cy,1e3)}var n=t.prototype;return n.dispose=function(){if(this.Ry().dispose(),this.Py.disconnect(),this.Py=null,this.ky)for(var t=0;t<this.ky.length;t++)this.ky[t].dispose()},n.Ny=function(){for(var t=0;t<this.ky.length;t++){var n=this.ky[t];n.getPlayingState()!==xn&&(zn(n,"video-seconds-played"),this.Ey(n))}this.je.delay(this.Cy,1e3)},n.Ey=function(t){var n="timeUpdate",i=t.video.getCurrentTime(),r=t.video.getDuration();if(y(i)&&y(r)&&r>0){var e=i/r,o=nn(this.ampdoc.win,"".concat(Mn,".").concat(n),{"time":i,"percent":e});this.Ty.trigger(t.video.element,n,o,1)}},n.register=function(t){var n=this;Pt(t);var i=t;if(this.Iy(t),t.supportsPlatform()&&!this.Ay(t)){this.Py||(this.Py=Kt((function(t){return t.forEach((function(t){var i=t.isIntersecting,r=t.target;n._y(r).updateVisibility(i)}))}),this.ampdoc.win,{threshold:.5})),this.Py.observe(i.element),rn(i.element,wn,(function(){return r.videoLoaded()})),this.ky=this.ky||[];var r=new Rn(this,t);this.ky.push(r);var e=r.video.element;L(e,hn),function(t){t.classList.add("i-amphtml-media-component")}(e),t.signals().signal(hn),e.classList.add("i-amphtml-video-interface")}},n.Iy=function(t){i("play",(function(){return ot(t,!1)})),i("pause",(function(){return t.pause()})),i("mute",(function(){return t.mute()})),i("unmute",(function(){return t.unmute()}));var n=function(){return t.fullscreenEnter()};function i(n,i){t.registerAction(n,(function(){En(t),i()}),1)}i("fullscreenenter",n),i("fullscreen",n)},n.Ay=function(t){if(Pn(this.qy,t))return this.qy;for(var n=0;this.ky&&n<this.ky.length;n++){var i=this.ky[n];if(Pn(i,t))return this.qy=i,i}return null},n._y=function(t){return Pt(this.Ay(t))},n.registerForAutoFullscreen=function(t){this.Ry().register(t)},n.Yy=function(){return this.Ry()},n.getVideoStateProperty=function(t,n){var i=this.ampdoc.getRootNode(),r=Et().assertElement(i.getElementById(t),'Could not find an element with id="'.concat(t,'" for VIDEO_STATE')),o=this._y(r);return(o?o.getAnalyticsDetails():e()).then((function(t){return t?t[n]:""}))},n.getPlayingState=function(t){return this._y(t).getPlayingState()},n.isMuted=function(t){return this._y(t).isMuted()},n.userInteracted=function(t){return this._y(t).userInteracted()},n.isRollingAd=function(t){return this._y(t).isRollingAd()},n.pauseOtherVideos=function(t){this.ky.forEach((function(n){n.isPlaybackManaged()&&n!==t&&n.getPlayingState()==On&&n.video.pause()}))},t}(),Pn=function(t,n){return!!t&&(t.video===n||t.video.element===n)},Rn=function(){function t(t,n){var i=this;this.Fy=t,this.Ki=t.ampdoc,this.video=n,this.Uy=!0,this.zy=!1,this.Jm=!1,this.Ly=!1,this.Er=!1,this.Wy=new cn,this.Wy.onSessionEnd((function(){return zn(i,"video-session")})),this.Vy=new cn,this.Vy.onSessionEnd((function(){return zn(i,"video-session-visible")})),this.By=jt((function(){return new Yn(i.Ki.win,i)})),this.Jy=!1,this.Gy=!1,this.Ky=null,this.G=!1,this.Hy=!1,this.hasAutoplay=n.element.hasAttribute("autoplay"),this.hasAutoplay&&this.Fy.installAutoplayStyles(),this.Qy=fn,this.Zy=function(){ot(i.video,!1)},this.$y=function(){i.video.pause()},rn(n.element,ln,(function(){return i.videoLoaded()})),rn(n.element,mn,(function(){return i.Xy()})),rn(n.element,dn,(function(){i.Hy=!0,zn(i,Sn)})),rn(n.element,pn,(function(){return i.uw()})),rn(n.element,yn,(function(){return i.G=!0})),rn(n.element,gn,(function(){i.G=!1,i.Fy.pauseOtherVideos(i)})),rn(n.element,"amp:video:tick",(function(t){var n=t.data,r=n.eventType;r&&i.aw(r,n.vars)})),rn(n.element,bn,(function(){i.Ly=!1,zn(i,"video-ended")})),rn(n.element,jn,(function(){i.Ly=!0,zn(i,"video-ad-start")})),rn(n.element,kn,(function(){i.Ly=!1,zn(i,"video-ad-end")})),n.signals().whenSignal(hn).then((function(){return i.cw()})),this.fw=jt((function(){var t="firstPlay",n=nn(i.Ki.win,t,{}),r=i.video.element;$t(r).trigger(r,t,n,1)})),this.hw()}var n=t.prototype;return n.dispose=function(){this.By().stop()},n.aw=function(t,n){var i=dt({},"__amp:eventType",t);Object.keys(n).forEach((function(t){i["custom_".concat(t)]=n[t]})),zn(this,"video-hosted-custom",i)},n.hw=function(){var t=this;this.video.signals().whenSignal("playback-delegated").then((function(){t.Uy=!1,t.Jm&&t.video.pause()}))},n.isMuted=function(){return this.G},n.isPlaybackManaged=function(){return this.Uy},n.cw=function(){this.lw()&&this.Fy.registerForAutoFullscreen(this),this.hasAutoplay&&this.dw()},n.lw=function(){var t=this.video.element;return!(this.video.preimplementsAutoFullscreen()||!t.hasAttribute("rotate-to-fullscreen"))&&Rt(this.video.isInteractive(),"Only interactive videos are allowed to enter fullscreen on rotate. Set the `controls` attribute on %s to enable.",t)},n.uw=function(){this.Jm=!0,this.getPlayingState()==On&&(this.fw(),this.Fy.pauseOtherVideos(this));var t,n,i,r,e,o=this.video,u=o.element;o.preimplementsMediaSessionAPI()||u.classList.contains("i-amphtml-disable-mediasession")||(function(t,n){var i=Zt(t);if(n&&n.artwork){var r=n.artwork;Pt(l(r)),r.forEach((function(t){if(t){var n=(r=t,"[object Object]"===m.call(r)?t.src:t);Rt(i.isProtocolValid(n))}var r}))}}(u,this.Qy),t=this.Ki.win,n=this.Qy,i=this.Zy,r=this.$y,"mediaSession"in(e=t.navigator)&&t.MediaMetadata&&(e.mediaSession.metadata=new t.MediaMetadata(fn),e.mediaSession.metadata=new t.MediaMetadata(n),e.mediaSession.setActionHandler("play",i),e.mediaSession.setActionHandler("pause",r))),this.Wy.beginSession(),this.Er&&this.Vy.beginSession(),this.Hy||zn(this,Sn)},n.Xy=function(){zn(this,"video-pause"),this.Jm=!1,this.Gy?this.Gy=!1:this.Wy.endSession()},n.videoLoaded=function(){this.zy=!0,this.Ky=et(this.video.element),this.mw(),this.By().start(),this.Er&&this.pw()},n.mw=function(){if(!this.video.preimplementsMediaSessionAPI()){this.video.getMetadata()&&(this.Qy=b(this.video.getMetadata()));var t=this.Ki.win.document;if(!this.Qy.artwork||0==this.Qy.artwork.length){var n=function(t){var n=t.querySelector('script[type="application/ld+json"]');if(n){var i=function(t,n){try{return w(t)}catch(t){return null}}(n.textContent);if(i&&i.image)return"string"==typeof i.image?i.image:i.image["@list"]&&"string"==typeof i.image["@list"][0]?i.image["@list"][0]:"string"==typeof i.image.url?i.image.url:"string"==typeof i.image[0]?i.image[0]:void 0}}(t)||function(t){var n=t.querySelector('meta[property="og:image"]');return n?n.getAttribute("content"):void 0}(t)||function(t){var n=t.querySelector('link[rel="shortcut icon"]')||t.querySelector('link[rel="icon"]');return n?n.getAttribute("href"):void 0}(t);n&&(this.Qy.artwork=[{"src":n}])}if(!this.Qy.title){var i=this.video.element.getAttribute("title")||this.video.element.getAttribute("aria-label")||this.Ky.getAttribute("title")||this.Ky.getAttribute("aria-label")||t.title;i&&(this.Qy.title=i)}}},n.yw=function(){this.zy&&this.pw()},n.pw=function(){var t=this;this.Ki.isVisible()&&rt(this.Ki.win).then((function(n){t.hasAutoplay&&!t.userInteracted()&&n?t.bw():t.ww()}))},n.dw=function(){var t=this;this.video.isInteractive()&&this.video.hideControls(),rt(this.Ki.win).then((function(n){n||!t.video.isInteractive()?(t.video.mute(),t.gw()):t.video.showControls()}))},n.gw=function(){var t=this,n=this.video,i=this.video,r=i.element;if(i.win,!r.hasAttribute("noaudio")&&!r.signals().get(qn)){var e=function(t,n){for(var i=F(n)(un),r=i.firstElementChild,e=0;e<4;e++){for(var o=r.cloneNode(!0),u=o.children,a=0;a<u.length;a++)u[a].classList.add("amp-video-eq-".concat(e+1,"-").concat(a+1));i.appendChild(o)}return N(r),i}(0,r),o=[e],u=[rn(r,mn,(function(){return c(!1)})),rn(r,pn,(function(){return c(!0)})),rn(r,jn,(function(){s(!1),n.showControls()})),rn(r,kn,(function(){s(!0),n.hideControls()})),rn(r,gn,(function(){return En(n)}))];if(n.isInteractive()){n.hideControls();var a=function(t,n){var i=F(t)(on);return n&&n.title&&i.setAttribute("aria-label",n.title),i}(r,this.Qy);o.push(a),u.push(rn(a,"click",(function(){return En(n)})))}n.mutateElementSkipRemeasure((function(){o.forEach((function(t){r.appendChild(t)}))})),this.Ly&&s(!1),n.signals().whenSignal(qn).then((function(){t.fw(),n.isInteractive()&&n.showControls(),n.unmute(),u.forEach((function(t){t()})),n.mutateElementSkipRemeasure((function(){o.forEach((function(t){N(t)}))}))}))}function s(t){n.mutateElementSkipRemeasure((function(){o.forEach((function(n){!function(t,n){void 0===n&&(n=t.hasAttribute("hidden")),n?t.removeAttribute("hidden"):t.setAttribute("hidden","")}(n,t)}))}))}function c(t){n.mutateElementSkipRemeasure((function(){return e.classList.toggle("amp-video-eq-play",t)}))}},n.bw=function(){this.Uy&&(this.Er?(this.Vy.beginSession(),ot(this.video,!0),this.Jy=!0):(this.Jm&&this.Vy.endSession(),this.video.pause(),this.Gy=!0))},n.ww=function(){this.Er?this.Vy.beginSession():this.Jm&&this.Vy.endSession()},n.updateVisibility=function(t){var n=this.Er;this.Er=t,t!=n&&this.yw()},n.getPlayingState=function(){return this.Jm?this.Jm&&this.Jy&&!this.userInteracted()?"playing_auto":On:xn},n.isRollingAd=function(){return this.Ly},n.userInteracted=function(){return null!=this.video.signals().get(qn)},n.getAnalyticsDetails=function(){var t=this,n=this.video;return Promise.all([rt(this.Ki.win),Qt(n.element)]).then((function(i){var r=i[0],e=i[1].boundingClientRect,o=e.height,u=e.width,a=t.hasAutoplay&&r,s=n.getPlayedRanges(),c=s.reduce((function(t,n){return t+n[1]-n[0]}),0);return{"autoplay":a,"currentTime":n.getCurrentTime(),"duration":n.getDuration(),"height":o,"id":n.element.id,"muted":t.G,"playedTotal":c,"playedRangesJson":JSON.stringify(s),"state":t.getPlayingState(),"width":u}}))},t}(),An=function(){function t(t,n){var i=this;this.Fy=n,this.Ki=t,this.xw=null,this.Ow=null,this.ky=[],this.jw=[],this.kw=function(){return i.Sw()},this.Pw=function(t){return i.qw(t)==On},this.Tw=function(t,n){return i.Cw(t,n)},this.Mw(),this.Nw()}var n=t.prototype;return n.dispose=function(){this.jw.forEach((function(t){return t()})),this.jw.length=0},n.register=function(t){var n=t.video,i=n.element;this.Rw(i)&&(this.ky.push(n),rn(i,mn,this.kw),rn(i,pn,this.kw),rn(i,bn,this.kw),n.signals().whenSignal(qn).then(this.kw),this.Sw())},n.Nw=function(){var t=this,n=this.Ki.getRootNode(),i=function(){return t.Ew()};this.jw.push(rn(n,"webkitfullscreenchange",i),rn(n,"mozfullscreenchange",i),rn(n,"fullscreenchange",i),rn(n,"MSFullscreenChange",i))},n.isInLandscape=function(){return(t=this.Ki.win).screen&&"orientation"in t.screen?t.screen.orientation.type.startsWith("landscape"):90==Math.abs(t.orientation);var t},n.Rw=function(t){if("video"==et(t).tagName.toLowerCase())return!0;var n=Gt(this.Ki.win);return!n.isIos()&&!n.isSafari()||function(t){return!!{"amp-dailymotion":!0,"amp-ima-video":!0}[t.tagName.toLowerCase()]}(t)},n.Ew=function(){this.xw=null},n.Mw=function(){var t=this,n=this.Ki.win,i=n.screen;if(i&&"orientation"in i){var r=i.orientation;this.jw.push(rn(r,"change",(function(){return t.Iw()})))}this.jw.push(rn(n,"orientationchange",(function(){return t.Iw()})))},n.Iw=function(){this.isInLandscape()?null!=this.Ow&&this.Aw(this.Ow):this.xw&&this._w(this.xw)},n.Aw=function(t){var n=Gt(this.Ki.win);this.xw=t,n.isAndroid()&&n.isChrome()?t.fullscreenEnter():this.Yw(t).then((function(){return t.fullscreenEnter()}))},n._w=function(t){this.xw=null,this.Yw(t,"center").then((function(){return t.fullscreenExit()}))},n.Yw=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=t.element,r=this.Fw();return this.Uw().then((function(){return Qt(i)})).then((function(t){var o=t.boundingClientRect,u=o.bottom,a=o.top,s=r.getSize().height;if(a>=0&&u<=s)return e();var c=n||(u>s?"bottom":"top");return r.animateScrollIntoView(i,c)}))},n.Fw=function(){return Ht(this.Ki)},n.Uw=function(){return Xt(this.Ki.win).promise(330)},n.Sw=function(){var t=this;if(this.isInLandscape())return Promise.resolve(this.Ow);this.Ow=null;var n=this.ky.filter(this.Pw).map((function(t){return Qt(t.element)}));return Promise.all(n).then((function(n){var i=n.sort(t.Tw)[0];return i&&i.intersectionRatio>.5?i.target.getImpl().then((function(n){return t.Ow=n})):t.Ow}))},n.Cw=function(t,n){var i=t.boundingClientRect,r=t.intersectionRatio,e=n.boundingClientRect,o=r-n.intersectionRatio;if(Math.abs(o)>.1)return o;var u=Ht(this.Ki),a=Tn(u,i),s=Tn(u,e);return a<s||a>s?a-s:i.top-e.top},n.qw=function(t){return this.Fy.getPlayingState(t)},t}();function Tn(t,n){var i=n.top+n.height/2,r=t.getSize().height/2;return Math.abs(i-r)}function In(t){return 10*t*5}var Nn=function(t){return!!t&&!isNaN(t)&&t>1},Yn=function(){function t(t,n){this.je=Xt(t),this.zw=n,this.jw=null,this.Lw=0,this.Ww=0}var n=t.prototype;return n.start=function(){var t=this,n=this.zw.video.element;this.stop(),this.jw=this.jw||[],this.Vw()?this.Bw(this.Ww):this.jw.push(en(n,vn,(function(){t.Vw()&&t.Bw(t.Ww)}))),this.jw.push(rn(n,bn,(function(){t.Vw()&&t.Dw(100)})))},n.stop=function(){if(this.jw){for(;this.jw.length>0;)this.jw.pop()();this.Ww++}},n.Vw=function(){var t=this.zw.video,n=t.getDuration();if(!Nn(n))return!1;if(In(n)<250){var i=Math.ceil(5);this.Jw("This video is too short for `video-percentage-played`. Reports may be innacurate. For best results, use videos over",i,"seconds long.",t.element)}return!0},n.Jw=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];Et().warn.apply(Et(),[Mn].concat(n))},n.Bw=function(t){var n,i=this;if(t==this.Ww){var r=this.zw,e=this.je,o=r.video,u=function(){return i.Bw(t)};if(r.getPlayingState()!=xn){var a=o.getDuration();if(Nn(a)){var s=(n=In(a),g(!0),Math.min(Math.max(n,250),4e3)),c=o.getCurrentTime()/a*100,f=5*Math.floor(c/5);Pt(y(f)),this.Dw(f),e.delay(u,s)}else e.delay(u,500)}else e.delay(u,500)}},n.Dw=function(t){t<=0||this.Lw!=t&&(this.Lw=t,this.Gw(t))},n.Gw=function(t){zn(this.zw,"video-percentage-played",{"normalizedPercentage":t.toString()})},t}();function zn(t,n,i){var r=t.video;t.getAnalyticsDetails().then((function(t){i&&Object.assign(t,i),L(r.element,n,t)}))}var Un,Cn=function(){function t(t,n){this.win=t,this.Ti=n}return t.make=function(n,i){if(n.WeakRef)return new n.WeakRef(i);if(!i.id){var r=n.__AMP_WEAKREF_ID=(n.__AMP_WEAKREF_ID||0)+1;i.id="weakref-id-"+r}return new t(n,i.id)},t.prototype.deref=function(){return this.win.document.getElementById(this.Ti)||void 0},t}(),Ln="amp-video",Wn={"slow-2g":50,"2g":50,"3g":1e3,"4g":2500,"5g":5e3},Dn="i-amphtml-is-video-fully-loaded-override-for-testing",Fn=function(){function t(t){this.win=t,this.kj="",this.xj=this.qj(),this.Ej=[]}var n=t.prototype;return n.manage=function(t){var n=this;Wt(this.win,"flexible-bitrate")&&(t.changedSources||(function(t,n){rn(t,"waiting",(function(){if(!(t.readyState<1||$n(t)>.99)){var i=null,r=en(t,"playing",(function(){clearTimeout(i)}));i=setTimeout((function(){r(),n()}),100)}}))}(t,(function(){return n.Mj(t)})),rn(t,"downgrade",(function(){return n.Mj(t)})),t.changedSources=function(){n._j(t)},this.Ej.push(Cn.make(this.win,t))))},n.Mj=function(t){var n=function(t){return Pt(Vn(t,(function(n){return n.src==t.currentSrc})))}(t),i=n.Pj-1;i>=this.xj||(this.xj=i,this.Rj(t,n.Pj),this.Aj())},n.Tj=function(){var t=this.win.navigator.connection;return t&&t.effectiveType?t.effectiveType:"4g"},n.qj=function(){return this.kj!=this.Tj()&&(this.kj=this.Tj(),this.xj=Wn[this.kj]||Wn["4g"]),this.xj},n._j=function(t){var n=this,i=h(R(t,"source"));i.forEach((function(t){if(!t.Pj){var n=t.getAttribute("data-bitrate");t.Pj=n?parseInt(n,10):Number.POSITIVE_INFINITY}}));var r=!1;return i.sort((function(t,i){var e=n.Ij(i)-n.Ij(t);return e<0&&(r=!0),e})),r&&i.forEach((function(n){t.appendChild(n)})),r},n.Ij=function(t){var n=t.Pj;return n>this.qj()&&(n*=-1),n},n.Yj=function(t,n){return!!Vn(t,(function(t){return t.Pj<n}))},n.Rj=function(t,n){if(this.Yj(t,n)){var i=t.currentTime;t.pause(),this._j(t)?(t.load(),en(t,"loadedmetadata",(function(){t.currentTime=i,ot(t),_t().fine(Ln,"Playing at lower bitrate %s",t.currentSrc)}))):ot(t)}else _t().fine(Ln,"No lower bitrate available")},n.Aj=function(){for(var t=this.Ej.length-1;t>=0;t--){var n=this.Ej[t].deref();n?n.paused&&!((i=n).hasAttribute(Dn)?"true"===i.getAttribute(Dn):$n(i)>.8)&&this._j(n)&&n.load():this.Ej.splice(t,1)}var i},t}();function Vn(t,n){return P(t,(function(t){return"SOURCE"==t.tagName&&n(t)}))}function $n(t){if(!t.duration)return 0;for(var n=0,i=0;i<t.buffered.length;i++)n+=t.buffered.end(i)-t.buffered.start(i);return n/t.duration}function Jn(t,n){if(!!n!==n&&null!=n)if(Array.isArray(n))n.forEach((function(n){Jn(t,n)}));else{var i=n;t.appendChild(i.nodeType?i:self.document.createTextNode(String(n)))}}function Bn(t,n,i){if(!1!==i&&null!=i)if("function"!=typeof i||"o"!==n[0]||"n"!==n[1])t.setAttribute(n,!0===i?"":String(i));else{var r=n.toLowerCase().substring(2);t.addEventListener(r,i)}}function Gn(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];if("string"!=typeof t)return t(mt(mt({},n),{},{children:r}));var o=null==n?void 0:n.xmlns;o&&delete n.xmlns;var u=o?self.document.createElementNS(o,t):self.document.createElement(t);return Jn(u,r),n&&Object.keys(n).forEach((function(t){Bn(u,t,n[t])})),u}var Xn,Zn,Hn=function(){function t(t){this.Lt=t,this.Ht=0,this.Ft=0,this.Gt=b()}var n=t.prototype;return n.has=function(t){return!!this.Gt[t]},n.get=function(t){var n=this.Gt[t];if(n)return n.access=++this.Ft,n.payload},n.put=function(t,n){this.has(t)||this.Ht++,this.Gt[t]={payload:n,access:this.Ft},this.zt()},n.zt=function(){if(!(this.Ht<=this.Lt)){var t,n=this.Gt,i=this.Ft+1;for(var r in n){var e=n[r].access;e<i&&(i=e,t=r)}void 0!==t&&(delete n[t],this.Ht--)}},t}(),Kn=function(t){return"string"==typeof t?Qn(t):t};function Qn(t,n){return Xn||(Xn=self.document.createElement("a"),Zn=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new Hn(100))),function(t,n,i){if(i&&i.has(n))return i.get(n);t.href=n,t.protocol||(t.href=t.href);var r,e={href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:"0"==t.port?"":t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:null};"/"!==e.pathname[0]&&(e.pathname="/"+e.pathname),("http:"==e.protocol&&80==e.port||"https:"==e.protocol&&443==e.port)&&(e.port="",e.host=e.hostname),r=t.origin&&"null"!=t.origin?t.origin:"data:"!=e.protocol&&e.host?e.protocol+"//"+e.host:e.href,e.origin=r;var o=e;return i&&i.put(n,o),o}(Xn,t,n?null:Zn)}function ti(t,n){return function(t,n,i){if(!n)return t;var r=t.split("#",2),e=r[0].split("?",2);return e[0]+(e[1]?"?".concat(e[1],"&").concat(n):"?".concat(n))+(r[1]?"#".concat(r[1]):"")}(t,function(t){var n,i,r=[];for(var e in t){var o=t[e];if(null!=o){o=v(o);for(var u=0;u<o.length;u++)r.push((n=e,i=o[u],"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(i))))}}return r.join("&")}(n))}var ni=["h264","vp09"];function ii(t,n,i){n.sort((function(t,n){var i,r,e=null===(i=t.codec)||void 0===i?void 0:i.split(".")[0],o=null===(r=n.codec)||void 0===r?void 0:r.split(".")[0],u=ni.indexOf(e),a=ni.indexOf(o);if(u>a)return 1;if(u<a)return-1;var s=t.bitrate_kbps,c=n.bitrate_kbps;return s>c?1:s<c?-1:0})).forEach((function(n){if(!(n.bitrate_kbps>i)){var r=n.type;n.codec&&"h264"!==n.codec&&(r+="; codecs="+n.codec);var e,o,u=(e=t.ownerDocument,o={"src":n.url,type:r,"data-bitrate":n.bitrate_kbps,"i-amphtml-video-cached-source":""},U(e.createElement("source"),o));t.insertBefore(u,t.firstChild)}}))}function ri(t,n){!1===n&&t.setAttribute("noaudio","")}function ei(t,n){if(n&&n.src&&n.srclang&&!t.querySelector("track")){var i=Gn("track",{src:n.src,srclang:n.srclang,kind:"captions"}),r=Gn("amp-story-captions",{id:n.src,"style-preset":"default",layout:"container","auto-append":!0});t.setAttribute("captions-id",n.src),t.appendChild(i),t.appendChild(r)}}function oi(t,n){var i=n.win;if(function(t,n){return t===n.document.querySelector("amp-story-page:first-of-type amp-video")}(t,i)){var r=i.document.getElementById("amp-google-video-cache-response");try{var e=JSON.parse(r.textContent);if(e.sources)return Promise.resolve(e)}catch(t){}}var u=Tt(i.document,"documentInfo").get(),a=u.canonicalUrl,s=u.sourceUrl;!function(t,n){if(t.hasAttribute("src")){var i=n.document.createElement("source"),r=t.getAttribute("src");i.setAttribute("src",r);var e=t.getAttribute("type");e&&i.setAttribute("type",e),t.removeAttribute("src"),t.removeAttribute("type"),t.querySelectorAll("source").forEach(N),t.insertBefore(i,t.firstChild)}}(t,i);var c,f,l=(c=function(t){for(var n,i=h(t.querySelectorAll("source[src]")),r=0;r<i.length;r++)if(_(i[r],'[type*="video/mp4"]'))return i[r].getAttribute("src");return null===(n=i[0])||void 0===n?void 0:n.getAttribute("src")}(t),f=Kn(f=s),"function"==typeof URL?new URL(c,f.href).toString():function(t,n){n=Kn(n);var i=Qn(t=t.replace(/\\/g,"/"));return t.toLowerCase().startsWith(i.protocol)?i.href:t.startsWith("//")?n.protocol+t:t.startsWith("/")?n.origin+t:n.origin+n.pathname.replace(/\/[^/]*$/,"/")+t}(c,f));return function(t,n){return Jt(n.win).installExtensionForDoc(n,"amp-cache-url").then((function(){return function(t,n){return function(t,n){var i=function(t,n){var i=Ut(t)[n];return i?i.promise?i.promise:(zt(t,n),i.promise=Promise.resolve(i.obj)):null}(t,n);if(i)return i;var r,e,u,a,s=Ut(t);return s[n]=(e=(r=new o).promise,u=r.reject,a=r.resolve,e.catch((function(){})),{obj:null,promise:e,resolve:a,reject:u,context:null,ctor:null}),s[n].promise}(Yt(t),n)}(t,"cache-url")}))}(t,n).then((function(t){return t.createCacheUrl(l)})).then((function(t){var n,r=ti(t.replace(/\/[ic]\//,"/mbv/"),{"amp_video_host_url":a,"amp_video_require_acao_header":1});return(n=i,At(n,"xhr")).fetch(r,{prerenderSafe:!0}).then((function(t){return t.json()}))}))}var ui=["<i-amphtml-poster></i-amphtml-poster>"],ai="amp-video",si=["aria-describedby","aria-label","aria-labelledby","controls","crossorigin","disableremoteplayback","controlsList","title"],ci={"high":2e3,"medium":720,"low":400},fi=["loop","poster","preload"],hi=si.concat(fi),li=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&a(t,n)}(o,t);var n,i,r=(n=o,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}}(),function(){var t,r=s(n);if(i){var e=s(this).constructor;t=Reflect.construct(r,arguments,e)}else t=r.apply(this,arguments);return f(this,t)});function o(t){var n;return(n=r.call(this,t)).zj=null,n.G=!1,n.Qy=fn,n.jw=[],n.Uj=null,n.Cj=null,n.gb=new vt(n.element),n.Lj=!1,n}o.prerenderAllowed=function(t){if(t.getAttribute("poster")||t.hasAttribute("cache"))return!0;var n=h(R(t,"source"));n.push(t);for(var i=0;i<n.length;i++)if(vi(n[i],t))return!0;return!1};var u=o.prototype;return u.preconnectCallback=function(t){var n=this;this.Wj().forEach((function(i){var r;(r=n.win,At(r,"preconnect")).url(n.getAmpDoc(),i,t)}))},u.Wj=function(){var t=this.element.getAttribute("src");if(t)return[t];var n=[];return h(R(this.element,"source")).forEach((function(t){var i=t.getAttribute("src");i&&n.push(i);var r=t.getAttribute("amp-orig-src");r&&n.push(r)})),n},u.isLayoutSupported=function(t){return function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)},u.buildCallback=function(){var t=this.element;this.Dj(),this.zj=t.ownerDocument.createElement("video");var n,i,r,o=t.getAttribute("poster");!o&&(r=self,r.__AMP_MODE?r.__AMP_MODE:r.__AMP_MODE=function(t){return{localDev:!1,development:xt(t,wt(t)),esm:!1,test:!1,rtvVersion:Ot(t),ssrReady:!1}}(r)).development&&console.error('No "poster" attribute has been provided for amp-video.'),this.zj.setAttribute("playsinline",""),this.zj.setAttribute("webkit-playsinline",""),this.zj.setAttribute("preload","none"),this.Fj(),D(si,this.element,this.zj,!0),this.Vj(),W(this.zj,!0),n=this.element,i=this.zj,n.hasAttribute("object-fit")&&nt(i,"object-fit",n.getAttribute("object-fit")),n.hasAttribute("object-position")&&nt(i,"object-position",n.getAttribute("object-position")),t.appendChild(this.zj);var u,a,s,c,f=t.getAttribute("artist"),h=t.getAttribute("title"),l=t.getAttribute("album"),v=t.getAttribute("artwork");if(this.Qy={"title":h||"","artist":f||"","album":l||"","artwork":[{"src":v||o||""}]},this.Cj=!!this.element.querySelector("source[data-bitrate]")||this.element.hasAttribute("cache")||this.$j(),a="video-manager",s=_n,function(t,n,i,r,e,o){var u=Ut(t),a=u[i];a||(a=u[i]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:!1}),a.ctor||(a.ctor=r,a.context=n,a.sharedInstance=!1,a.resolve&&zt(t,i))}(Yt(c=Nt(t)),c,a,s),(u=t,Tt(u,"video-manager")).register(this),this.element.hasAttribute("cache"))return this.Jj(),function(t,n){var i,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY,o=n.win;if(Gt(o).isBot())return e();t.hasAttribute("crossorigin")||t.setAttribute("crossorigin","");var u=t.getAttribute("src"),a=null===(i=t.querySelector("source[src]"))||void 0===i?void 0:i.getAttribute("src");return u||a?(Bt(n.win).addEnabledExperiment("video-cache"),oi(t,n).then((function(n){ii(t,n.sources,r),Wt(o,"story-video-cache-apply-audio")&&ri(t,n.has_audio),ei(t,n.captions)})).catch((function(){}))):(Et().error("AMP-VIDEO","Video cache not properly configured"),e())}(this.element,this.getAmpDoc(),this.Bj())},u.Fj=function(){var t=this.element.getAttribute("alt"),n=this.element.hasAttribute("title"),i=this.element.hasAttribute("aria-label");!t||n||i||this.element.setAttribute("aria-label",t)},u.detachedCallback=function(){this.Gj(!1)},u.Dj=function(){var t=this.element;(function(t){return!!function(t,n){return t.closest?t.closest(n):function(t,n,i){var r;for(r=t;r&&void 0!==r;r=r.parentElement)if(n(r))return r;return null}(t,(function(t){return _(t,n)}))}(t,"amp-story")})(t)&&["i-amphtml-disable-mediasession","i-amphtml-poolbound"].forEach((function(n){t.classList.add(n)}))},u.mutatedAttributesCallback=function(t){if(this.zj){var n=this.element;if(t.src&&(this.Xj().assertHttpsUrl(n.getAttribute("src"),n),D(["src"],this.element,this.zj)),D(hi.filter((function(n){return void 0!==t[n]})),this.element,this.zj,!0),t.src&&L(n,wn),t.artwork||t.poster){var i=n.getAttribute("artwork"),r=n.getAttribute("poster");this.Qy.artwork=[{"src":i||r||""}]}if(t.album){var e=n.getAttribute("album");this.Qy.album=e||""}if(t.title){var o=n.getAttribute("title");this.Qy.title=o||""}if(t.artist){var u=n.getAttribute("artist");this.Qy.artist=u||""}}},u.layoutCallback=function(){var t,n=this;if(this.zj=this.zj,!this.Zj())return this.toggleFallback(!0),e();D(fi,this.element,this.zj,!0),this.Hj(),this.Kj((function(){return n.Qj()})),this.jk(),"prerender"==this.getAmpDoc().getVisibilityState()||"preview"==this.getAmpDoc().getVisibilityState()?(this.element.hasAttribute("preload")||this.zj.setAttribute("preload","auto"),t=this.getAmpDoc().whenFirstVisible().then((function(){return n.Ok(),Xt(n.win).promise(1).then((function(){if(!n.xk())return n.loadPromise(n.zj)}))}))):this.Ok();var i=this.loadPromise(this.zj).then(null,(function(n){if(t)return t;throw n})).then((function(){return n.Sk()}));return"none"!==this.element.getAttribute("preload")?this.xk()?t:i:void 0},u.qk=function(t){var n=this;if(this.zj.error&&this.zj.error.code==MediaError.MEDIA_ERR_DECODE&&(Et().error(ai,"Decode error in ".concat(this.zj.currentSrc),this.element),!this.zj.src)){var i=0,r=P(this.zj,(function(t){return"SOURCE"==t.tagName&&(i++,t.src==n.zj.currentSrc)}));0!=i&&(N(r),t.stopImmediatePropagation(),this.zj.load(),this.play(!1))}},u.Jj=function(){this.Ek().forEach((function(t){t.setAttribute("src",t.getAttribute("amp-orig-src")),t.removeAttribute("amp-orig-src")}))},u.jk=function(){var t=this;Pt(this.zj);var n=h(R(this.element,"source"));if(this.element.hasAttribute("src")&&vi(this.element)){var i=this.element.getAttribute("src"),r=this.element.getAttribute("type"),e=this.Mk(i,r),o=this.element.getAttribute("amp-orig-src");e.setAttribute("amp-orig-src",o),this.element.removeAttribute("src"),this.element.removeAttribute("type"),n.unshift(e)}n.forEach((function(n){if(vi(n,t.element)){n.remove();var i=Object.keys(ci),r=n.getAttribute("type"),e=n.getAttribute("amp-orig-src"),o=t.Bj();i.forEach((function(u,a){if(!(o<ci[u])){var s=ti(n.src,{"amp_video_quality":u}),c=t.Mk(s,r,{"data-bitrate":ci[u],"i-amphtml-video-cached-source":""});a===i.length-1&&c.setAttribute("amp-orig-src",e),t.zj.appendChild(c)}}))}else n.hasAttribute("i-amphtml-video-cached-source")&&t.zj.appendChild(n)})),this.zj.changedSources&&this.zj.changedSources()},u.Ok=function(){var t=this;Pt(this.zj);var n=h(R(this.element,"source")),i=this.element,r=this.Xj();i.hasAttribute("src")&&!vi(i)&&(r.assertHttpsUrl(i.getAttribute("src"),i),D(["src"],this.element,this.zj)),n.forEach((function(n){Pt(!vi(n,i)),r.assertHttpsUrl(n.getAttribute("src"),n),t.zj.appendChild(n)})),h(this.zj.querySelectorAll("[amp-orig-src]")).forEach((function(n){var i=n.getAttribute("amp-orig-src"),r=n.getAttribute("type"),e=t.Mk(i,r);Y(t.zj,e,n)})),h(R(i,"track")).forEach((function(n){t.zj.appendChild(n)})),this._k(),this.zj.changedSources&&this.zj.changedSources()},u.Mk=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.element;this.Xj().assertHttpsUrl(t,r);var e=r.ownerDocument.createElement("source");return e.setAttribute("src",t),n&&e.setAttribute("type",n),U(e,i),e},u.Ek=function(){var t=this.element,n=h(R(t,"source")),i=[];n.push(t);for(var r=0;r<n.length;r++)vi(n[r])&&i.push(n[r]);return i},u.$j=function(){return!!this.Ek().length},u.Bj=function(){return this.xk()&&Wt(this.win,"amp-story-first-page-max-bitrate")&&_(this.element,"amp-story-page:first-of-type amp-video")?(Bt(this.win).addEnabledExperiment("amp-story-first-page-max-bitrate"),1e3):Number.POSITIVE_INFINITY},u.Vj=function(){var t=this,n=this.zj;n.addEventListener("error",(function(n){return t.qk(n)})),this.jw.push(this.forwardEvents([bn,vn,"loadeddata",mn,pn,dn],n)),this.jw.push(rn(n,"volumechange",(function(){var n=t.zj.muted;t.G!=n&&(t.G=n,L(t.element,t.G?yn:gn))}))),["play","pause","ended"].forEach((function(i){t.jw.push(rn(n,i,(function(){return t.Gj("play"==i)})))}))},u.Pk=function(){for(this.Gj(!1);this.jw.length;)this.jw.pop().call()},u.resetOnDomChange=function(){var t,n,i,r,e,o=this;this.zj=(e=this.element,E("video"),function(t,n){if(S(t))return t.querySelector(q(n,":scope"));var i=M(t,n)[0];return void 0===i?null:i}(e,"> ".concat("video"))),this.Pk(),this.Vj(),this.Cj&&(t=this.win,Un||(Wt(t,"flexible-bitrate")&&Bt(t).addEnabledExperiment("flexible-bitrate"),Un=new Fn(t))).manage(this.zj),this.zj.readyState>=1?this.Sk():((n=this.zj,r=new Promise((function(t){i=en(n,"loadedmetadata",t,void 0)})),r.then(i,i),r).then((function(){return o.Sk()})),this._k())},u._k=function(){var t=this,n=this.element.getAttribute("captions-id");if(n){var i=this.win.document.querySelector("amp-story-captions#".concat(String(n).replace(O,x)));if(i){var r=this.getAmpDoc();Jt(r.win).installExtensionForDoc(r,"amp-story-captions","0.1"),this.Lj=!0,i.getImpl().then((function(n){n.setVideoElement&&n.setVideoElement(t.zj)}))}}},u.Sk=function(){L(this.element,ln),this.Rk()},u.pauseCallback=function(){this.zj&&this.zj.pause()},u.Gj=function(t){this.xk()||this.gb.updatePlaying(t)},u.Zj=function(){return!!this.zj.play},u.supportsPlatform=function(){return this.Zj()},u.isInteractive=function(){return this.element.hasAttribute("controls")},u.play=function(t){ot(this.zj)},u.Hj=function(){if(Gt(this.win).isAndroid()){var t=this.element;if(!t.querySelector("i-amphtml-poster")){var n=t.getAttribute("poster");if(n){var i,r=F(t)(ui);"block",i=r.style,g(!0),g(!i.display),i.display="block",it(r,{"background-image":"url(".concat(n,")"),"background-size":"cover","background-position":"center"}),r.classList.add("i-amphtml-android-poster-bug"),W(r),t.appendChild(r)}}}},u.pause=function(){this.zj.pause()},u.mute=function(){this.xk()||(this.zj.muted=!0)},u.unmute=function(){this.xk()||(this.zj.muted=!1)},u.xk=function(){return this.element.classList.contains("i-amphtml-poolbound")},u.showControls=function(){this.zj.controls=!0},u.hideControls=function(){this.zj.controls=!1},u.fullscreenEnter=function(){var t,n;(n=(t=this.zj).requestFullscreen||t.requestFullScreen||t.webkitRequestFullscreen||t.webkitEnterFullscreen||t.msRequestFullscreen||t.mozRequestFullScreen)&&n.call(t)},u.fullscreenExit=function(){!function(t){var n=t.cancelFullScreen||t.exitFullscreen||t.webkitExitFullscreen||t.webkitCancelFullScreen||t.mozCancelFullScreen||t.msExitFullscreen;if(n)n.call(t);else{var i=t.ownerDocument;if(i){var r=i.cancelFullScreen||i.exitFullscreen||i.webkitExitFullscreen||i.webkitCancelFullScreen||i.mozCancelFullScreen||i.msExitFullscreen;r&&r.call(i)}}}(this.zj)},u.isFullscreen=function(){return function(t){var n=t.webkitDisplayingFullscreen;if(void 0!==n)return n;var i=t.ownerDocument;return!!i&&(i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.webkitCurrentFullScreenElement)==t}(this.zj)},u.getMetadata=function(){return this.Qy},u.preimplementsMediaSessionAPI=function(){return!1},u.preimplementsAutoFullscreen=function(){return!1},u.getCurrentTime=function(){return this.zj.currentTime},u.getDuration=function(){return this.zj.duration},u.getPlayedRanges=function(){for(var t=this.zj.played,n=t.length,i=[],r=0;r<n;r++)i.push([t.start(r),t.end(r)]);return i},u.firstLayoutCompleted=function(){this.Qj()||this.togglePlaceholder(!1)},u.Rk=function(){var t=this.element.querySelector("i-amphtml-poster");t&&N(t)},u.Xj=function(){return Zt(this.element)},u.Qj=function(){var t=this.getPlaceholder();return!(!t||!t.classList.contains("i-amphtml-blurry-placeholder")||(function(t,n){var i=t.style;for(var r in n)i.setProperty(Q(tt(i,r)),String(n[r]),"important")}(t,{"opacity":0}),0))},u.Kj=function(t){var n=this.zj.getAttribute("poster");if(n){var i=new Image;i.onload=t,i.src=n}},u.seekTo=function(t){this.zj.currentTime=t},u.toggleCaptions=function(t){var n=this;h(this.zj.textTracks).forEach((function(i){i.mode=t?n.Lj?"hidden":"showing":"disabled"}))},o}(t.BaseElement);function vi(t,n){var i=t.getAttribute("src");return!!t.hasAttribute("amp-orig-src")&&Zt(n||t).isProxyOrigin(i)}t.registerElement(ai,li)}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-video-0.1.js.map
  1 +;
  2 +(self.AMP=self.AMP||[]).push({m:0,v:"2402231941000",n:"amp-youtube",ev:"0.1",l:!0,f:function(t,n){!function(){function n(t,n,i){return n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t}function i(t,n){return(i=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function e(t){return(e="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 o(t,n){if(n&&("object"===e(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function a(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,n){if(t){if("string"==typeof t)return u(t,n);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?u(t,n):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=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 s;function f(){return s||(s=Promise.resolve(void 0))}var c=function(){var t=this;this.promise=new Promise((function(n,i){t.resolve=n,t.reject=i}))};function h(t){return new Promise((function(n){n(t())}))}var l=Array.isArray;function v(t){return l(t)?t:[t]}var d=Object.prototype,p=d.hasOwnProperty,m=d.toString;function y(t){return"[object Object]"===m.call(t)}function b(t){var n=Object.create(null);return t&&Object.assign(n,t),n}function w(t){return"number"==typeof t&&isFinite(t)}function g(t,n,i,r,e,o,u,a,s,f,c){return t}function k(t,n){try{return function(t){return JSON.parse(t)}(t)}catch(t){return null==n||n(t),null}}function j(t){return(t.ownerDocument||t).defaultView}var q,x,O={bubbles:!0,cancelable:!0};function S(t){var n;null===(n=t.parentElement)||void 0===n||n.removeChild(t)}function M(t,n){t.insertBefore(n,t.firstChild)}function E(t){return t.parent&&t.parent!=t}function T(t,n,i,r){var e=i||{};g(t.ownerDocument);var o=r||O,u=o.bubbles,a=o.cancelable,s=new MessageEvent(n,{data:e,bubbles:u,cancelable:a});t.dispatchEvent(s)}function R(t,n){t.classList.add("i-amphtml-fill-content"),n&&t.classList.add("i-amphtml-replaced-content")}function A(t,n,i,r){for(var e,o=a(v(t),!0);!(e=o()).done;){var u=e.value,s=n.getAttribute(u);null!==s?i.setAttribute(u,s):r&&i.removeAttribute(u)}}function P(t){var n=t.ownerDocument||t;return q&&q.ownerDocument===n||(q=n.createElement("div")),U}function U(t){return function(t,n){if(g(1===n.length),g(Array.isArray(n)||(r=n,p.call(r,"raw"))),self.trustedTypes&&self.trustedTypes.createPolicy){var i=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return n[0]}});t.innerHTML=i.createHTML("ignored")}else t.innerHTML=n[0];var r,e=t.firstElementChild;return g(e),g(!e.nextElementSibling),t.removeChild(e),e}(q,t)}function Y(t){var n=Object.getOwnPropertyDescriptor(t,"message");if(null!=n&&n.writable)return t;var i=t.message,r=t.stack,e=new Error(i);for(var o in t)e[o]=t[o];return e.stack=r,e}function _(t){for(var n,i=null,r="",e=a(arguments,!0);!(n=e()).done;){var o=n.value;o instanceof Error&&!i?i=Y(o):(r&&(r+=" "),r+=o)}return i?r&&(i.message=r+": "+i.message):i=new Error(r),i}function I(t){var n,i;null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t)}function C(t){var n=_.apply(null,arguments);setTimeout((function(){throw I(n),n}))}function N(t){try{for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.apply(null,i)}catch(t){C(t)}}function z(t){var n=_.apply(null,arguments);return n.expected=!0,n}var L=["Webkit","webkit","Moz","moz","ms","O","o"],B={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function D(t,n,i,r,e){var o=function(t,n,i){if(n.startsWith("--"))return n;x||(x=b());var r=x[n];if(!r||i){if(r=n,void 0===t[n]){var e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(n),o=function(t,n){for(var i=0;i<L.length;i++){var r=L[i]+n;if(void 0!==t[r])return r}return""}(t,e);void 0!==t[o]&&(r=o)}i||(x[n]=r)}return r}(t.style,n,e);if(o){var u,a=r?i+r:i;t.style.setProperty((u=o.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()})),L.some((function(t){return u.startsWith(t+"-")}))?"-".concat(u):u),a)}}function W(t,n){for(var i in n)D(t,i,n[i])}var J=/vertical/,V=new WeakMap,F=new WeakMap,H=new WeakMap;function Z(t){var n=V.get(t);return n||(n=new t.ResizeObserver($),V.set(t,n)),n}function $(t){for(var n=new Set,i=t.length-1;i>=0;i--){var r=t[i],e=r.target;if(!n.has(e)){n.add(e);var o=F.get(e);if(o){H.set(e,r);for(var u=0;u<o.length;u++){var a=o[u],s=a.callback;G(a.type,s,r)}}}}}function G(t,n,i){if(0==t){var r=i.contentRect,e=r.height;N(n,{width:r.width,height:e})}else if(1==t){var o,u=i.borderBoxSize;if(u)o=u.length>0?u[0]:{inlineSize:0,blockSize:0};else{var a,s,f=i.target,c=j(f),h=J.test(function(t,n){return t.getComputedStyle(n)||B}(c,f).writingMode),l=f,v=l.offsetHeight,d=l.offsetWidth;h?(s=d,a=v):(a=d,s=v),o={inlineSize:a,blockSize:s}}N(n,o)}}var K=function(){function t(t){this.el=t,this.Jm=!1,this.Xm=!1,this.Ym=this.Ym.bind(this)}var n=t.prototype;return n.updatePlaying=function(t){t!==this.Jm&&(this.Jm=t,t?(this.Xm=!1,function(t,n,i){var r=t.ownerDocument.defaultView;if(r){var e=F.get(t);if(e||(e=[],F.set(t,e),Z(r).observe(t)),!e.some((function(t){return t.callback===i&&1===t.type}))){e.push({type:1,callback:i});var o=H.get(t);o&&setTimeout((function(){return G(1,i,o)}))}}}(this.el,0,this.Ym)):function(t,n){!function(t,n,i){var r=F.get(t);if(r&&(function(t,n){for(var r=[],e=0,o=0;o<t.length;o++){var u=t[o];(a=u).callback===i&&1===a.type?r.push(u):(e<o&&(t[e]=u),e++)}var a;e<t.length&&(t.length=e)}(r),0==r.length)){F.delete(t),H.delete(t);var e=t.ownerDocument.defaultView;e&&Z(e).unobserve(t)}}(t,0,n)}(this.el,this.Ym))},n.Ym=function(t){var n=t.blockSize,i=t.inlineSize>0&&n>0;if(i!==this.Xm){this.Xm=i;var r=this.el;i||r.pause()}},t}();function Q(t){var n=!1,i=null,r=t;return function(){if(!n){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];i=r.apply(self,e),n=!0,r=null}return i}}self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var X=self.__AMP_LOG;function tt(t){return X.user||(X.user=nt()),function(t,n){return n&&n.ownerDocument.defaultView!=t}(X.user.win,t)?X.userForEmbed||(X.userForEmbed=nt()):X.user}function nt(t){return function(t,n){throw new Error("failed to call initLogConstructor")}()}function it(t,n,i,r,e,o,u,a,s,f,c){return t}function rt(t,n,i,r,e,o,u,a,s,f,c){return tt().assert(t,n,i,r,e,o,u,a,s,f,c)}function et(t,n){return ft(t=function(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}(t),n)}function ot(t,n){return ft(st(at(t)),n)}function ut(t,n){var i=st(at(t));return ht(i,n)?ft(i,n):null}function at(t){return t.nodeType?(n=j(t),et(n,"ampdoc")).getAmpDoc(t):t;var n}function st(t){var n=at(t);return n.isSingleDoc()?n.win:n}function ft(t,n){it(ht(t,n));var i=ct(t)[n];return i.obj||(it(i.ctor),it(i.context),i.obj=new i.ctor(i.context),it(i.obj),i.context=null,i.resolve&&i.resolve(i.obj)),i.obj}function ct(t){var n=t.__AMP_SERVICES;return n||(n=t.__AMP_SERVICES={}),n}function ht(t,n){var i=t.__AMP_SERVICES&&t.__AMP_SERVICES[n];return!(!i||!i.ctor)}var lt,vt,dt,pt=function(t){return ut(t,"action")},mt=function(t){return et(t,"platform")},yt=function(t){return ft(t,"timer")},bt=function(t){return ut(t,"url")},wt=function(t){return ot(t,"viewport")};function gt(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.needsRootBounds,e=i.rootMargin,o=i.threshold,u=E(n)&&(r||e)?n.document:void 0;return new n.IntersectionObserver(t,{threshold:o,root:u,rootMargin:e})}function kt(t){var n,i=null===(n=lt)||void 0===n?void 0:n.get(t);if(!i){var r=function(t){lt||(lt=new WeakMap,vt=new WeakMap),g(vt);var n=vt.get(t);return n||(n=gt((function(t){for(var i=new Set,r=t.length-1;r>=0;r--){var e,o=t[r].target;i.has(o)||(i.add(o),g(n),n.unobserve(o),g(lt),null===(e=lt.get(o))||void 0===e||e.resolve(t[r]),lt.delete(o))}}),t,{needsRootBounds:!0}),vt.set(t,n)),n}(j(t));g(lt),r.observe(t),i=new c,lt.set(t,i)}return i.promise}function jt(t){return null==t.__AMP_AUTOPLAY&&(t.__AMP_AUTOPLAY=function(t){var n,i=t.document.createElement("video");return i.setAttribute("muted",""),i.setAttribute("playsinline",""),i.setAttribute("webkit-playsinline",""),i.setAttribute("height","0"),i.setAttribute("width","0"),i.muted=!0,i.playsInline=!0,i.playsinline=!0,i.webkitPlaysinline=!0,W(i,{position:"fixed",top:"0",width:"0",height:"0",opacity:"0"}),n=i,h((function(){return n.play()})).catch((function(){})),Promise.resolve(!i.paused)}(t)),t.__AMP_AUTOPLAY}function qt(t){return t.querySelector("video, iframe")}function xt(t,n){var i=h((function(){return t.play(!!n)}));return i.catch((function(t){!function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];I(z.apply(null,i))}("TRYPLAY",t)})),i}function Ot(t,n,i,r){var e=t,o=i,u=function(t){try{return o(t)}catch(t){var n,i;throw null===(n=(i=self).__AMP_REPORT_ERROR)||void 0===n||n.call(i,t),t}},a=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}(),s=!(null==r||!r.capture);return e.addEventListener(n,u,a?r:s),function(){null==e||e.removeEventListener(n,u,a?r:s),o=null,e=null,u=null}}function St(t,n,i,r){var e={detail:i};if(Object.assign(e,r),"function"==typeof t.CustomEvent)return new t.CustomEvent(n,e);var o=t.document.createEvent("CustomEvent");return o.initCustomEvent(n,!!e.bubbles,!!e.cancelable,i),o}function Mt(t,n,i,r){return Ot(t,n,i,r)}function Et(t){return t.data}var Tt=['<button aria-label="Unmute video" class="i-amphtml-video-mask i-amphtml-fill-content" tabindex=0></button>'],Rt=["<i-amphtml-video-icon class=amp-video-eq><div class=amp-video-eq-col><div class=amp-video-eq-filler></div><div class=amp-video-eq-filler></div></div></i-amphtml-video-icon>"];function At(t,n,i){if(n[i])return n[i];var r=t.querySelector("style[".concat(i,"], link[").concat(i,"]"));return r?(n[i]=r,r):null}var Pt=function(){function t(){this.fn=null}var n=t.prototype;return n.add=function(t){var n=this;return this.fn||(this.fn=[]),this.fn.push(t),function(){n.remove(t)}},n.remove=function(t){var n,i,r;this.fn&&(i=t,-1!=(r=(n=this.fn).indexOf(i))&&n.splice(r,1))},n.removeAll=function(){this.fn&&(this.fn.length=0)},n.fire=function(t){if(this.fn)for(var n,i=a(this.fn.slice(),!0);!(n=i()).done;)(0,n.value)(t)},n.getHandlerCount=function(){var t,n;return null!==(t=null===(n=this.fn)||void 0===n?void 0:n.length)&&void 0!==t?t:0},t}(),Ut=function(){function t(){this.xy=!1,this.Oy=new Pt}var n=t.prototype;return n.onSessionEnd=function(t){this.Oy.add(t)},n.beginSession=function(){this.xy=!0},n.endSession=function(){this.xy&&this.Oy.fire(),this.xy=!1},n.isSessionActive=function(){return this.xy},t}(),Yt={"title":"","artist":"","album":"","artwork":[{"src":""}]},_t="registered",It="load",Ct="playing",Nt="pause",zt="ended",Lt="muted",Bt="unmuted",Dt="ad_start",Wt="ad_end",Jt="playing_manual",Vt="paused",Ft="video-play",Ht="user-interacted";function Zt(t){t.signals().signal(Ht)}var $t="video-manager",Gt=function(){function t(t){var n=this;this.ampdoc=t,this.installAutoplayStyles=Q((function(){return function(t){!function(t,n,i,r,e){var o=t.getHeadNode();!function(t,n,i,r){var e=t.__AMP_CSS_SM;e||(e=t.__AMP_CSS_SM=b());var o="amp-extension=".concat(r);if(o){var u=At(t,e,o);if(u)return"STYLE"==u.tagName&&u.textContent!==n&&(u.textContent=n),u}var a=(t.ownerDocument||t).createElement("style");a.textContent=n;a.setAttribute("amp-extension",r),function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(i){var r=i.nextSibling;t.insertBefore(n,r)}else M(t,n)}(t,a,At(t,e,"amp-runtime")),o&&(e[o]=a)}(o,function(t,n){var i=t.__AMP_CSS_TR;return i?i(n):n}(o,".i-amphtml-video-mask{display:block;z-index:1;-webkit-appearance:none;appearance:none;background:transparent;border:none}.amp-video-eq{display:none}.i-amphtml-video-interface:not(amp-video) .amp-video-eq,amp-story .amp-video-eq,amp-video[controls] .amp-video-eq{display:-ms-flexbox;display:flex}[noaudio] .amp-video-eq{display:none!important}.amp-video-eq{pointer-events:none!important;-ms-flex-align:end;align-items:flex-end;bottom:7px;height:12px;opacity:0.8;overflow:hidden;position:absolute;right:7px;width:20px;z-index:1}.amp-video-eq-col{-ms-flex:1;flex:1;height:100%;margin-right:1px;position:relative}.amp-video-eq-col div{animation-name:amp-video-eq-animation;animation-timing-function:linear;animation-iteration-count:infinite;animation-direction:alternate;background-color:#fafafa;height:100%;position:absolute;width:100%;will-change:transform;animation-play-state:paused}.amp-video-eq-play .amp-video-eq-col div{animation-play-state:running}.amp-video-eq-1-1{animation-duration:0.3s;transform:translateY(60%)}.amp-video-eq-1-2{animation-duration:0.45s;transform:translateY(60%)}.amp-video-eq-2-1{animation-duration:0.5s;transform:translateY(30%)}.amp-video-eq-2-2{animation-duration:0.4s;transform:translateY(30%)}.amp-video-eq-3-1{animation-duration:0.3s;transform:translateY(70%)}.amp-video-eq-3-2{animation-duration:0.35s;transform:translateY(70%)}.amp-video-eq-4-1{animation-duration:0.4s;transform:translateY(50%)}.amp-video-eq-4-2{animation-duration:0.25s;transform:translateY(50%)}@keyframes amp-video-eq-animation{0%{transform:translateY(100%)}to{transform:translateY(0)}}\n/*# sourceURL=/css/video-autoplay.css*/"),0,"amp-video-autoplay")}(t)}(n.ampdoc)})),this.ky=null,this.Py=null,this.qy=null,this.je=yt(t.win),this.Ty=pt(t.getHeadNode()),this.Cy=function(){return n.Ny()},this.Ry=Q((function(){return new Xt(n.ampdoc,n)})),this.je.delay(this.Cy,1e3)}var n=t.prototype;return n.dispose=function(){if(this.Ry().dispose(),this.Py.disconnect(),this.Py=null,this.ky)for(var t=0;t<this.ky.length;t++)this.ky[t].dispose()},n.Ny=function(){for(var t=0;t<this.ky.length;t++){var n=this.ky[t];n.getPlayingState()!==Vt&&(on(n,"video-seconds-played"),this.Ey(n))}this.je.delay(this.Cy,1e3)},n.Ey=function(t){var n="timeUpdate",i=t.video.getCurrentTime(),r=t.video.getDuration();if(w(i)&&w(r)&&r>0){var e=i/r,o=St(this.ampdoc.win,"".concat($t,".").concat(n),{"time":i,"percent":e});this.Ty.trigger(t.video.element,n,o,1)}},n.register=function(t){var n=this;it(t);var i=t;if(this.Iy(t),t.supportsPlatform()&&!this.Ay(t)){this.Py||(this.Py=gt((function(t){return t.forEach((function(t){var i=t.isIntersecting,r=t.target;n._y(r).updateVisibility(i)}))}),this.ampdoc.win,{threshold:.5})),this.Py.observe(i.element),Mt(i.element,"reloaded",(function(){return r.videoLoaded()})),this.ky=this.ky||[];var r=new Qt(this,t);this.ky.push(r);var e=r.video.element;T(e,_t),function(t){t.classList.add("i-amphtml-media-component")}(e),t.signals().signal(_t),e.classList.add("i-amphtml-video-interface")}},n.Iy=function(t){i("play",(function(){return xt(t,!1)})),i("pause",(function(){return t.pause()})),i("mute",(function(){return t.mute()})),i("unmute",(function(){return t.unmute()}));var n=function(){return t.fullscreenEnter()};function i(n,i){t.registerAction(n,(function(){Zt(t),i()}),1)}i("fullscreenenter",n),i("fullscreen",n)},n.Ay=function(t){if(Kt(this.qy,t))return this.qy;for(var n=0;this.ky&&n<this.ky.length;n++){var i=this.ky[n];if(Kt(i,t))return this.qy=i,i}return null},n._y=function(t){return it(this.Ay(t))},n.registerForAutoFullscreen=function(t){this.Ry().register(t)},n.Yy=function(){return this.Ry()},n.getVideoStateProperty=function(t,n){var i=this.ampdoc.getRootNode(),r=tt().assertElement(i.getElementById(t),'Could not find an element with id="'.concat(t,'" for VIDEO_STATE')),e=this._y(r);return(e?e.getAnalyticsDetails():f()).then((function(t){return t?t[n]:""}))},n.getPlayingState=function(t){return this._y(t).getPlayingState()},n.isMuted=function(t){return this._y(t).isMuted()},n.userInteracted=function(t){return this._y(t).userInteracted()},n.isRollingAd=function(t){return this._y(t).isRollingAd()},n.pauseOtherVideos=function(t){this.ky.forEach((function(n){n.isPlaybackManaged()&&n!==t&&n.getPlayingState()==Jt&&n.video.pause()}))},t}(),Kt=function(t,n){return!!t&&(t.video===n||t.video.element===n)},Qt=function(){function t(t,n){var i=this;this.Fy=t,this.Ki=t.ampdoc,this.video=n,this.Uy=!0,this.zy=!1,this.Jm=!1,this.Ly=!1,this.Er=!1,this.Wy=new Ut,this.Wy.onSessionEnd((function(){return on(i,"video-session")})),this.Vy=new Ut,this.Vy.onSessionEnd((function(){return on(i,"video-session-visible")})),this.By=Q((function(){return new en(i.Ki.win,i)})),this.Jy=!1,this.Gy=!1,this.Ky=null,this.G=!1,this.Hy=!1,this.hasAutoplay=n.element.hasAttribute("autoplay"),this.hasAutoplay&&this.Fy.installAutoplayStyles(),this.Qy=Yt,this.Zy=function(){xt(i.video,!1)},this.$y=function(){i.video.pause()},Mt(n.element,It,(function(){return i.videoLoaded()})),Mt(n.element,Nt,(function(){return i.Xy()})),Mt(n.element,"play",(function(){i.Hy=!0,on(i,Ft)})),Mt(n.element,Ct,(function(){return i.uw()})),Mt(n.element,Lt,(function(){return i.G=!0})),Mt(n.element,Bt,(function(){i.G=!1,i.Fy.pauseOtherVideos(i)})),Mt(n.element,"amp:video:tick",(function(t){var n=Et(t),r=n.eventType;r&&i.aw(r,n.vars)})),Mt(n.element,zt,(function(){i.Ly=!1,on(i,"video-ended")})),Mt(n.element,Dt,(function(){i.Ly=!0,on(i,"video-ad-start")})),Mt(n.element,Wt,(function(){i.Ly=!1,on(i,"video-ad-end")})),n.signals().whenSignal(_t).then((function(){return i.cw()})),this.fw=Q((function(){var t="firstPlay",n=St(i.Ki.win,t,{}),r=i.video.element;pt(r).trigger(r,t,n,1)})),this.hw()}var i=t.prototype;return i.dispose=function(){this.By().stop()},i.aw=function(t,i){var r=n({},"__amp:eventType",t);Object.keys(i).forEach((function(t){r["custom_".concat(t)]=i[t]})),on(this,"video-hosted-custom",r)},i.hw=function(){var t=this;this.video.signals().whenSignal("playback-delegated").then((function(){t.Uy=!1,t.Jm&&t.video.pause()}))},i.isMuted=function(){return this.G},i.isPlaybackManaged=function(){return this.Uy},i.cw=function(){this.lw()&&this.Fy.registerForAutoFullscreen(this),this.hasAutoplay&&this.dw()},i.lw=function(){var t=this.video.element;return!(this.video.preimplementsAutoFullscreen()||!t.hasAttribute("rotate-to-fullscreen"))&&rt(this.video.isInteractive(),"Only interactive videos are allowed to enter fullscreen on rotate. Set the `controls` attribute on %s to enable.",t)},i.uw=function(){this.Jm=!0,this.getPlayingState()==Jt&&(this.fw(),this.Fy.pauseOtherVideos(this));var t,n,i,r,e,o=this.video,u=o.element;o.preimplementsMediaSessionAPI()||u.classList.contains("i-amphtml-disable-mediasession")||(function(t,n){var i=bt(t);if(n&&n.artwork){var r=n.artwork;it(l(r)),r.forEach((function(t){if(t){var n=y(t)?t.src:t;rt(i.isProtocolValid(n))}}))}}(u,this.Qy),t=this.Ki.win,n=this.Qy,i=this.Zy,r=this.$y,"mediaSession"in(e=t.navigator)&&t.MediaMetadata&&(e.mediaSession.metadata=new t.MediaMetadata(Yt),e.mediaSession.metadata=new t.MediaMetadata(n),e.mediaSession.setActionHandler("play",i),e.mediaSession.setActionHandler("pause",r))),this.Wy.beginSession(),this.Er&&this.Vy.beginSession(),this.Hy||on(this,Ft)},i.Xy=function(){on(this,"video-pause"),this.Jm=!1,this.Gy?this.Gy=!1:this.Wy.endSession()},i.videoLoaded=function(){this.zy=!0,this.Ky=qt(this.video.element),this.mw(),this.By().start(),this.Er&&this.pw()},i.mw=function(){if(!this.video.preimplementsMediaSessionAPI()){this.video.getMetadata()&&(this.Qy=b(this.video.getMetadata()));var t=this.Ki.win.document;if(!this.Qy.artwork||0==this.Qy.artwork.length){var n=function(t){var n=t.querySelector('script[type="application/ld+json"]');if(n){var i=k(n.textContent);if(i&&i.image)return"string"==typeof i.image?i.image:i.image["@list"]&&"string"==typeof i.image["@list"][0]?i.image["@list"][0]:"string"==typeof i.image.url?i.image.url:"string"==typeof i.image[0]?i.image[0]:void 0}}(t)||function(t){var n=t.querySelector('meta[property="og:image"]');return n?n.getAttribute("content"):void 0}(t)||function(t){var n=t.querySelector('link[rel="shortcut icon"]')||t.querySelector('link[rel="icon"]');return n?n.getAttribute("href"):void 0}(t);n&&(this.Qy.artwork=[{"src":n}])}if(!this.Qy.title){var i=this.video.element.getAttribute("title")||this.video.element.getAttribute("aria-label")||this.Ky.getAttribute("title")||this.Ky.getAttribute("aria-label")||t.title;i&&(this.Qy.title=i)}}},i.yw=function(){this.zy&&this.pw()},i.pw=function(){var t=this;this.Ki.isVisible()&&jt(this.Ki.win).then((function(n){t.hasAutoplay&&!t.userInteracted()&&n?t.bw():t.ww()}))},i.dw=function(){var t=this;this.video.isInteractive()&&this.video.hideControls(),jt(this.Ki.win).then((function(n){n||!t.video.isInteractive()?(t.video.mute(),t.gw()):t.video.showControls()}))},i.gw=function(){var t=this,n=this.video,i=this.video,r=i.element;if(i.win,!r.hasAttribute("noaudio")&&!r.signals().get(Ht)){var e=function(t,n){for(var i=P(n)(Rt),r=i.firstElementChild,e=0;e<4;e++){for(var o=r.cloneNode(!0),u=o.children,a=0;a<u.length;a++)u[a].classList.add("amp-video-eq-".concat(e+1,"-").concat(a+1));i.appendChild(o)}return S(r),i}(0,r),o=[e],u=[Mt(r,Nt,(function(){return f(!1)})),Mt(r,Ct,(function(){return f(!0)})),Mt(r,Dt,(function(){s(!1),n.showControls()})),Mt(r,Wt,(function(){s(!0),n.hideControls()})),Mt(r,Bt,(function(){return Zt(n)}))];if(n.isInteractive()){n.hideControls();var a=function(t,n){var i=P(t)(Tt);return n&&n.title&&i.setAttribute("aria-label",n.title),i}(r,this.Qy);o.push(a),u.push(Mt(a,"click",(function(){return Zt(n)})))}n.mutateElementSkipRemeasure((function(){o.forEach((function(t){r.appendChild(t)}))})),this.Ly&&s(!1),n.signals().whenSignal(Ht).then((function(){t.fw(),n.isInteractive()&&n.showControls(),n.unmute(),u.forEach((function(t){t()})),n.mutateElementSkipRemeasure((function(){o.forEach((function(t){S(t)}))}))}))}function s(t){n.mutateElementSkipRemeasure((function(){o.forEach((function(n){!function(t,n){void 0===n&&(n=t.hasAttribute("hidden")),n?t.removeAttribute("hidden"):t.setAttribute("hidden","")}(n,t)}))}))}function f(t){n.mutateElementSkipRemeasure((function(){return e.classList.toggle("amp-video-eq-play",t)}))}},i.bw=function(){this.Uy&&(this.Er?(this.Vy.beginSession(),xt(this.video,!0),this.Jy=!0):(this.Jm&&this.Vy.endSession(),this.video.pause(),this.Gy=!0))},i.ww=function(){this.Er?this.Vy.beginSession():this.Jm&&this.Vy.endSession()},i.updateVisibility=function(t){var n=this.Er;this.Er=t,t!=n&&this.yw()},i.getPlayingState=function(){return this.Jm?this.Jm&&this.Jy&&!this.userInteracted()?"playing_auto":Jt:Vt},i.isRollingAd=function(){return this.Ly},i.userInteracted=function(){return null!=this.video.signals().get(Ht)},i.getAnalyticsDetails=function(){var t=this,n=this.video;return Promise.all([jt(this.Ki.win),kt(n.element)]).then((function(i){var r=i[0],e=i[1].boundingClientRect,o=e.height,u=e.width,a=t.hasAutoplay&&r,s=n.getPlayedRanges(),f=s.reduce((function(t,n){return t+n[1]-n[0]}),0);return{"autoplay":a,"currentTime":n.getCurrentTime(),"duration":n.getDuration(),"height":o,"id":n.element.id,"muted":t.G,"playedTotal":f,"playedRangesJson":JSON.stringify(s),"state":t.getPlayingState(),"width":u}}))},t}(),Xt=function(){function t(t,n){var i=this;this.Fy=n,this.Ki=t,this.xw=null,this.Ow=null,this.ky=[],this.jw=[],this.kw=function(){return i.Sw()},this.Pw=function(t){return i.qw(t)==Jt},this.Tw=function(t,n){return i.Cw(t,n)},this.Mw(),this.Nw()}var n=t.prototype;return n.dispose=function(){this.jw.forEach((function(t){return t()})),this.jw.length=0},n.register=function(t){var n=t.video,i=n.element;this.Rw(i)&&(this.ky.push(n),Mt(i,Nt,this.kw),Mt(i,Ct,this.kw),Mt(i,zt,this.kw),n.signals().whenSignal(Ht).then(this.kw),this.Sw())},n.Nw=function(){var t=this,n=this.Ki.getRootNode(),i=function(){return t.Ew()};this.jw.push(Mt(n,"webkitfullscreenchange",i),Mt(n,"mozfullscreenchange",i),Mt(n,"fullscreenchange",i),Mt(n,"MSFullscreenChange",i))},n.isInLandscape=function(){return(t=this.Ki.win).screen&&"orientation"in t.screen?t.screen.orientation.type.startsWith("landscape"):90==Math.abs(t.orientation);var t},n.Rw=function(t){if("video"==qt(t).tagName.toLowerCase())return!0;var n=mt(this.Ki.win);return!n.isIos()&&!n.isSafari()||function(t){return!!{"amp-dailymotion":!0,"amp-ima-video":!0}[t.tagName.toLowerCase()]}(t)},n.Ew=function(){this.xw=null},n.Mw=function(){var t=this,n=this.Ki.win,i=n.screen;if(i&&"orientation"in i){var r=i.orientation;this.jw.push(Mt(r,"change",(function(){return t.Iw()})))}this.jw.push(Mt(n,"orientationchange",(function(){return t.Iw()})))},n.Iw=function(){this.isInLandscape()?null!=this.Ow&&this.Aw(this.Ow):this.xw&&this._w(this.xw)},n.Aw=function(t){var n=mt(this.Ki.win);this.xw=t,n.isAndroid()&&n.isChrome()?t.fullscreenEnter():this.Yw(t).then((function(){return t.fullscreenEnter()}))},n._w=function(t){this.xw=null,this.Yw(t,"center").then((function(){return t.fullscreenExit()}))},n.Yw=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=t.element,r=this.Fw();return this.Uw().then((function(){return kt(i)})).then((function(t){var e=t.boundingClientRect,o=e.bottom,u=e.top,a=r.getSize().height;if(u>=0&&o<=a)return f();var s=n||(o>a?"bottom":"top");return r.animateScrollIntoView(i,s)}))},n.Fw=function(){return wt(this.Ki)},n.Uw=function(){return yt(this.Ki.win).promise(330)},n.Sw=function(){var t=this;if(this.isInLandscape())return Promise.resolve(this.Ow);this.Ow=null;var n=this.ky.filter(this.Pw).map((function(t){return kt(t.element)}));return Promise.all(n).then((function(n){var i=n.sort(t.Tw)[0];return i&&i.intersectionRatio>.5?i.target.getImpl().then((function(n){return t.Ow=n})):t.Ow}))},n.Cw=function(t,n){var i=t.boundingClientRect,r=t.intersectionRatio,e=n.boundingClientRect,o=r-n.intersectionRatio;if(Math.abs(o)>.1)return o;var u=wt(this.Ki),a=tn(u,i),s=tn(u,e);return a<s||a>s?a-s:i.top-e.top},n.qw=function(t){return this.Fy.getPlayingState(t)},t}();function tn(t,n){var i=n.top+n.height/2,r=t.getSize().height/2;return Math.abs(i-r)}function nn(t){return 10*t*5}var rn=function(t){return!!t&&!isNaN(t)&&t>1},en=function(){function t(t,n){this.je=yt(t),this.zw=n,this.jw=null,this.Lw=0,this.Ww=0}var n=t.prototype;return n.start=function(){var t=this,n=this.zw.video.element;this.stop(),this.jw=this.jw||[],this.Vw()?this.Bw(this.Ww):this.jw.push(function(n,i,r,e){var o=function(){t.Vw()&&t.Bw(t.Ww)},u=Ot(n,"loadedmetadata",(function(t){try{o(t)}finally{o=null,u()}}),void 0);return u}(n)),this.jw.push(Mt(n,zt,(function(){t.Vw()&&t.Dw(100)})))},n.stop=function(){if(this.jw){for(;this.jw.length>0;)this.jw.pop()();this.Ww++}},n.Vw=function(){var t=this.zw.video,n=t.getDuration();if(!rn(n))return!1;if(nn(n)<250){var i=Math.ceil(5);this.Jw("This video is too short for `video-percentage-played`. Reports may be innacurate. For best results, use videos over",i,"seconds long.",t.element)}return!0},n.Jw=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];tt().warn.apply(tt(),[$t].concat(n))},n.Bw=function(t){var n,i=this;if(t==this.Ww){var r=this.zw,e=this.je,o=r.video,u=function(){return i.Bw(t)};if(r.getPlayingState()!=Vt){var a=o.getDuration();if(rn(a)){var s=(n=nn(a),g(!0),Math.min(Math.max(n,250),4e3)),f=o.getCurrentTime()/a*100,c=5*Math.floor(f/5);it(w(c)),this.Dw(c),e.delay(u,s)}else e.delay(u,500)}else e.delay(u,500)}},n.Dw=function(t){t<=0||this.Lw!=t&&(this.Lw=t,this.Gw(t))},n.Gw=function(t){on(this.zw,"video-percentage-played",{"normalizedPercentage":t.toString()})},t}();function on(t,n,i){var r=t.video;t.getAnalyticsDetails().then((function(t){i&&Object.assign(t,i),T(r.element,n,t)}))}var un=["<iframe frameborder=0 allowfullscreen></iframe>"],an=["<img placeholder referrerpolicy=origin>"],sn="amp-youtube",fn=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&i(t,n)}(s,t);var e,u,a=(e=s,u=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}}(),function(){var t,n=r(e);if(u){var i=r(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return o(this,t)});function s(t){var n;return(n=a.call(this,t)).Sg=null,n.Tk=null,n.G=!1,n.Ak=!1,n.Uk=!1,n.Km=null,n.Ds=null,n.rk=null,n.Zw=null,n.$w=null,n.qb=null,n.Yk=null,n.gb=new K(n.element),n}var f=s.prototype;return f.preconnectCallback=function(t){var n=et(this.win,"preconnect"),i=this.getAmpDoc();n.url(i,this.uk()),n.url(i,"https://s.ytimg.com",t),n.url(i,"https://i.ytimg.com",t)},f.isLayoutSupported=function(t){return function(t){return"fixed"==t||"fixed-height"==t||"responsive"==t||"fill"==t||"flex-item"==t||"fluid"==t||"intrinsic"==t}(t)},f.renderOutsideViewport=function(){return.75},f.buildCallback=function(){this.Sg=this.rq(),this.Tk=this.Ik(),this.Ck();var t,n,i,r,e=new c;this.Zw=e.promise,this.$w=e.resolve,t=this.element,n="video-manager",i=Gt,function(t,n,i,r,e,o){var u=ct(t),a=u[i];a||(a=u[i]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:!1}),a.ctor||(a.ctor=r,a.context=n,a.sharedInstance=!1,a.resolve&&ft(t,i))}(st(r=at(t)),r,n,i)},f.Nk=function(){this.Ck();var t="omit"===this.zk()?"-nocookie":"",n="https://www.youtube".concat(t,".com/embed/"),i=this.Sg?"".concat(encodeURIComponent(this.Sg||""),"?"):"live_stream?channel=".concat(encodeURIComponent(this.Tk||""),"&");return"".concat(n).concat(i,"enablejsapi=1&amp=1")},f.uk=function(){if(this.rk)return this.rk;var t=this.Nk(),n=this.element,i=function(t,n,i){var r=t.dataset,e={},o=/^param(.+)/;for(var u in r){var a=u.match(o);a&&(e[a[1][0].toLowerCase()+a[1].substr(1)]=r[u])}return e}(n);return"autoplay"in i&&(delete i.autoplay,this.user().error("AMP-YOUTUBE","Use autoplay attribute instead of data-param-autoplay")),"playsinline"in i||(i.playsinline="1"),n.hasAttribute("autoplay")&&("iv_load_policy"in i||(i.iv_load_policy="".concat(3)),i.playsinline="1"),"loop"in i&&this.user().warn("AMP-YOUTUBE","Use loop attribute instead of the deprecated data-param-loop"),this.Ak=n.hasAttribute("loop")||"loop"in i&&"1"==i.loop,this.Uk="playlist"in i,this.Ak&&(this.Uk?i.loop="1":"loop"in i&&delete i.loop),t=function(t,n){return function(t,n,i){if(!n)return t;var r=t.split("#",2),e=r[0].split("?",2);return e[0]+(e[1]?"?".concat(e[1],"&").concat(n):"?".concat(n))+(r[1]?"#".concat(r[1]):"")}(t,function(t){var n,i,r=[];for(var e in t){var o=t[e];if(null!=o){o=v(o);for(var u=0;u<o.length;u++)r.push((n=e,i=o[u],"".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(i))))}}return r.join("&")}(n))}(t,i),this.rk=t},f.layoutCallback=function(){var t,n,i,r,e=this,o=(t=this.uk(),i=P(n=this.element)(un),A(["referrerpolicy"],this.element,i),i.src=bt(n).assertHttpsUrl(t,n),R(i),n.appendChild(i),i);o.title=this.element.title||"YouTube video",function(t){var n=t.getAttribute("allow")||"";n+="autoplay;",t.setAttribute("allow",n)}(o),this.Km=o,(r=this.element,ot(r,"video-manager")).register(this),this.qb=Mt(this.win,"message",this.Lk.bind(this)),this.Ak&&!this.Uk&&(this.Yk=Mt(this.element,zt,(function(t){return e.play(!1)})));var u=this.loadPromise(this.Km).then((function(){return yt(e.win).promise(300)})).then((function(){e.hk(),T(e.element,It)}));return this.$w(u),u},f.unlayoutCallback=function(){this.Km&&(S(this.Km),this.Km=null),this.qb&&this.qb(),this.Yk&&this.Yk();var t=new c;return this.Zw=t.promise,this.$w=t.resolve,this.gb.updatePlaying(!1),!0},f.pauseCallback=function(){this.Km&&this.Km.contentWindow&&this.pause()},f.mutatedAttributesCallback=function(t){null!=t["data-videoid"]&&(this.Sg=this.rq(),this.Km&&this.ig("loadVideoById",[this.Sg]))},f.Ik=function(){return this.element.getAttribute("data-live-channelid")},f.rq=function(){return this.element.getAttribute("data-videoid")},f.zk=function(){return this.element.getAttribute("credentials")||"include"},f.Ck=function(){rt(!(this.Sg&&this.Tk)&&(this.Sg||this.Tk),"Exactly one of data-videoid or data-live-channelid should be present for <amp-youtube> %s",this.element)},f.ig=function(t,n){var i=this;this.Zw.then((function(){if(i.Km&&i.Km.contentWindow){var r=JSON.stringify({"event":"command","func":t,"args":n||""});i.Km.contentWindow.postMessage(r,"*")}}))},f.Lk=function(t){if(function(t,n,i){return!(!n||t.source!=n.contentWindow)&&"https://www.youtube.com"==t.origin}(t,this.Km)){var i=Et(t);if((r=i)&&(y(r)||r.startsWith("{"))){var r,e,o=y(e=i)?e:k(e);if(null!=o){var u=o.event,a=o.info||{},s=this.element,f=a.playerState;if("infoDelivery"!=u||null==f){var c,h=a.muted;if("infoDelivery"==u&&a&&null!=h){if(this.G==h)return;return this.G=h,void T(s,(c=this.G,c?Lt:Bt))}if("initialDelivery"==u)return this.Ds=a,void T(s,"loadedmetadata");"infoDelivery"!=u||void 0===a.currentTime||(this.Ds.currentTime=a.currentTime)}else{var v;switch(f){case 1:this.gb.updatePlaying(!0);break;case 2:case 0:this.gb.updatePlaying(!1)}!function(t,n,i){if(null==i[n])return!1;var r=i[n];(l(r)?r:[r]).forEach((function(n){T(t,n)}))}(s,f.toString(),(v={},n(v,1,Ct),n(v,2,Nt),n(v,0,[zt,Nt]),v))}}}}},f.hk=function(){this.Km&&this.Km.contentWindow.postMessage(JSON.stringify({"event":"listening"}),"*")},f.createPlaceholderCallback=function(){var t=this;if(!this.Sg)return null;var n=P(this.element)(an),i=this.Sg;return W(n,{"object-fit":"cover","visibility":"hidden"}),A(["aria-label"],this.element,n),n.src="https://i.ytimg.com/vi/".concat(encodeURIComponent(i),"/sddefault.jpg#404_is_fine"),n.hasAttribute("aria-label")?n.setAttribute("alt","Loading video - "+n.getAttribute("aria-label")):n.setAttribute("alt","Loading video"),R(n),this.loadPromise(n).then((function(){if(120==n.naturalWidth&&90==n.naturalHeight)throw new Error("sddefault.jpg is not found")})).catch((function(){return n.src="https://i.ytimg.com/vi/".concat(encodeURIComponent(i),"/hqdefault.jpg"),t.loadPromise(n)})).then((function(){t.getVsync().mutate((function(){W(n,{"visibility":""})}))})),n},f.supportsPlatform=function(){return!0},f.isInteractive=function(){return!0},f.play=function(t){this.ig("playVideo")},f.pause=function(){this.ig("pauseVideo")},f.mute=function(){this.ig("mute")},f.unmute=function(){this.ig("unMute")},f.showControls=function(){},f.hideControls=function(){},f.fullscreenEnter=function(){var t,n;this.Km&&(n=(t=this.Km).requestFullscreen||t.requestFullScreen||t.webkitRequestFullscreen||t.webkitEnterFullscreen||t.msRequestFullscreen||t.mozRequestFullScreen)&&n.call(t)},f.fullscreenExit=function(){this.Km&&function(t){var n=t.cancelFullScreen||t.exitFullscreen||t.webkitExitFullscreen||t.webkitCancelFullScreen||t.mozCancelFullScreen||t.msExitFullscreen;if(n)n.call(t);else{var i=t.ownerDocument;if(i){var r=i.cancelFullScreen||i.exitFullscreen||i.webkitExitFullscreen||i.webkitCancelFullScreen||i.mozCancelFullScreen||i.msExitFullscreen;r&&r.call(i)}}}(this.Km)},f.isFullscreen=function(){return!!this.Km&&function(t){var n=t.webkitDisplayingFullscreen;if(void 0!==n)return n;var i=t.ownerDocument;return!!i&&(i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.webkitCurrentFullScreenElement)==t}(this.Km)},f.getMetadata=function(){},f.preimplementsMediaSessionAPI=function(){return!0},f.preimplementsAutoFullscreen=function(){return!1},f.getCurrentTime=function(){return this.Ds?this.Ds.currentTime:NaN},f.getDuration=function(){return this.Ds?this.Ds.duration:NaN},f.getPlayedRanges=function(){return[]},f.seekTo=function(t){this.user().error(sn,"`seekTo` not supported.")},s}(t.BaseElement);t.registerElement(sn,fn)}();
  3 +/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */}});
  4 +//# sourceMappingURL=amp-youtube-0.1.js.map
此 diff 太大无法显示。