self.AMP_CONFIG={"v":"012603032146000","type":"production","allow-doc-opt-in":["amp-next-page","story-ad-allow-fullbleed"],"allow-url-opt-in":[],"canary":0,"a4aProfilingRate":0.01,"doubleclickSraExp":0.01,"doubleclickSraReportExcludedBlock":0.1,"flexAdSlots":0.05,"flexible-bitrate":0.1,"ios-fixed-no-transfer":0,"story-ad-placements":0.01,"story-disable-animations-first-page":1,"story-load-inactive-outside-viewport":1,"amp-sticky-ad-to-amp-ad-v4":0,"story-video-cache-apply-audio":0,"amp-story-subscriptions":1,"interaction-to-next-paint":1,"esm":1};/*AMP_CONFIG*/self.AMP_EXP={"flexible-bitrate":0.1,"amp-story-first-page-max-bitrate":0.3,"story-disable-animations-first-page":1,"story-load-first-page-only":1,"story-load-inactive-outside-viewport":1,"story-ad-page-outlink":0.02,"amp-geo-ssr":1,"story-remote-localization":1,"amp-story-subscriptions":1,"attribution-reporting":0.04};/*AMP_EXP*/;
self,self.AMP=self.AMP||[];try{AMP._=AMP._||{},self.AMP&&!Array.isArray(self.AMP)||(()=>{var t,i=class{constructor(){this.j=new s}abort(){if(!this.j.$&&(this.j.$=!0,this.j.U)){const t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.j,"currentTarget":this.j};this.j.U(t)}}get signal(){return this.j}},s=class{constructor(){this.$=!1,this.U=null}get aborted(){return this.$}get onabort(){return this.U}set onabort(t){this.U=t}};function e(){return t||(t=Promise.resolve(void 0))}var n=class{constructor(){this.promise=new Promise(((t,i)=>{this.resolve=t,this.reject=i}))}};function r(t){return new Promise((i=>{i(t())}))}function h(t){const i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;const{message:s,stack:e}=t,n=new Error(s);for(const i in t)n[i]=t[i];return n.stack=e,n}function o(t){let i=null,s="";for(const t of arguments)t instanceof Error&&!i?i=h(t):(s&&(s+=" "),s+=t);return i?s&&(i.message=s+": "+i.message):i=new Error(s),i}function u(t){var i,s;null===(i=(s=self).__AMP_REPORT_ERROR)||void 0===i||i.call(s,t)}function l(t){const i=o.apply(null,arguments);setTimeout((()=>{throw u(i),i}))}function c(t){const i=o.apply(null,arguments);return i.expected=!0,i}var{hasOwnProperty:a,toString:d}=Object.prototype;function f(t){return"[object Object]"===d.call(t)}function p(t){const i=Object.create(null);return t&&Object.assign(i,t),i}function m(t,i){return a.call(t,i)}function _(t){const i=p();for(const s in t){if(!m(t,s))continue;const e=t[s];i[s]=f(e)?_(e):e}return i}function A(t,i,s){return i in t?Object.defineProperty(t,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[i]=s,t}function P(t,i){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);i&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),s.push.apply(s,e)}return s}function g(t){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?P(Object(s),!0).forEach((function(i){A(t,i,s[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):P(Object(s)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))}))}return t}var{isArray:v}=Array;function E(t){return v(t)?t:[t]}function T(t,i){const s=[];let e=0;for(let n=0;n<t.length;n++){const r=t[n];i(r,n,t)?s.push(r):(e<n&&(t[e]=r),e++)}return e<t.length&&(t.length=e),s}function I(t,i){for(let s=0;s<t.length;s++)if(i(t[s],s,t))return s;return-1}function M(t,i){const s=t.indexOf(i);return-1!=s&&(t.splice(s,1),!0)}function R(t,i){const s=t.length-i.length;return s>=0&&t.indexOf(i,s)==s}function y(t){return"string"==typeof t}function b(t){return 1==(null==t?void 0:t.nodeType)}function w(t){return"number"==typeof t&&isFinite(t)}var V="​​​",S="​​​​";function x(t){return b(t)?t.tagName.toLowerCase()+(t.id?`#${t.id}`:""):t}function O(t){return t.indexOf(V)>=0}function C(t){return t.replace(V,"")}function k(t,i,s="Assertion failed",e){var n,r;if(i)return i;t&&-1==s.indexOf(t)&&(s+=t);let h=3;const o=s.split("%s");let u=o.shift();const l=[u];for(;o.length;){const t=arguments[h++],i=o.shift();u+=x(t)+i,l.push(t,i.trim())}const c=new Error(u);throw c.messageArray=T(l,(t=>""!==t)),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,c),c}function N(t,i,s,e,n){return v(n)?t(s,n.concat([i])):t(s,`${n||e}: %s`,i),i}function D(t,i,s,e,n,r,h,o,u,l,c){return t}function L(t,i){return t}function U(t,i){return t}function $(t,i){return t}function F(t,i,s,e,n,r,h,o,u,l,c){return k(V,t,i,s,e,n,r,h,o,u,l,c)}function B(t){return JSON.parse(t)}function H(t){const i=new Uint8Array(t.length);for(let s=0;s<t.length;s++){const e=t.charCodeAt(s);D(e<=255),i[s]=e}return i}function j(t,i){let{crypto:s}=t;const e=new Uint8Array(i);return s.getRandomValues(e),e}function z(t,i,s){let e=0,n=null;function r(r){n=null,e=t.setTimeout(h,s),i.apply(null,r)}function h(){e=0,n&&r(n)}return function(...t){e?n=t:r(t)}}function G(t,i,s){let e=0,n=0,r=null;function h(){e=0;const o=s-(t.Date.now()-n);var u;o>0?e=t.setTimeout(h,o):(u=r,r=null,i.apply(null,u))}return function(...i){n=t.Date.now(),r=i,e||(e=t.setTimeout(h,s))}}var q=["javascript:","data:","vbscript:"],W=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function K(t,i=""){try{return decodeURIComponent(t)}catch(t){return i}}function Y(t){const i=p();if(!t)return i;let s;for(;s=W.exec(t);){const t=K(s[1],s[1]),e=s[2]?K(s[2].replace(/\+/g," "),s[2]):"";i[t]=e}return i}function Q(t){const{location:i}=t||self;return Y(i.originalHash||i.hash)}var J=t=>self.AMP_CONFIG?self.AMP_CONFIG[t]:null,X=("string"==typeof J("cdnProxyRegex")?new RegExp(J("cdnProxyRegex")):J("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Z(t){if(!self.document||!self.document.head)return null;if(self.location&&X.test(self.location.origin))return null;const i=self.document.head.querySelector(`meta[name="${t}"]`);return i&&i.getAttribute("content")||null}var tt=J("thirdPartyUrl")||"https://3p.ampproject.net",it=J("thirdPartyFrameHost")||"ampproject.net",st=("string"==typeof J("thirdPartyFrameRegex")?new RegExp(J("thirdPartyFrameRegex")):J("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,et=J("cdnUrl")||Z("runtime-host")||"https://cdn.ampproject.org",nt=/^https?:\/\/localhost(:\d+)?$/,rt=J("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",ht=J("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",ot=J("localDev")||!1,ut=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],lt=J("geoApiUrl")||Z("amp-geo-api"),ct="";function at(t){const i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:ft(t,Q(t)),esm:!0,test:!1,rtvVersion:dt(t),ssrReady:!1}}(i)}function dt(t){var i;return ct||(ct=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"012603032146000"),ct}function ft(t,i){const s=i||Q(t);return["1","actions","amp","amp4ads","amp4email"].includes(s.development)||!!t.AMP_DEV_MODE}var pt=()=>{},mt=void 0;function _t(t){mt=t}var At=(t,i)=>i.reduce(((t,i)=>`${t}&s[]=${Pt(i)}`),`https://log.amp.dev/?v=012603032146000&id=${encodeURIComponent(t)}`),Pt=t=>encodeURIComponent(String(x(t))),gt=t=>parseInt(Q(t).log,10);self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var vt=self.__AMP_LOG,Et=null;function Tt(t,i){if(!Et)throw new Error("failed to call initLogConstructor");return new Et(self,t,i)}function It(t){return vt.user||(vt.user=Mt(V)),function(t,i){return i&&i.ownerDocument.defaultView!=t}(vt.user.win,t)?vt.userForEmbed||(vt.userForEmbed=Mt(S)):vt.user}function Mt(t){return Tt(((t,i)=>i||t>=1?4:2),t)}function Rt(){return vt.dev||(vt.dev=Tt((t=>t>=3?4:t>=2?3:0)))}function yt(t,i,s,e,n,r,h,o,u,l,c){return t}function bt(t,i,s,e,n,r,h,o,u,l,c){return It().assert(t,i,s,e,n,r,h,o,u,l,c)}function wt(t){return(t.ownerDocument||t).defaultView}function Vt(t,i){return t.replace(/^|,/g,`$&${i} `)}function St(t){return CSS.escape(t)}function xt(t){D(/^[\w-]+$/.test(t))}function Ot(t,i){return t.querySelector(Vt(i,":scope"))}function Ct(t,i){return t.closest(i)}function kt(t,i){for(let s=t.lastElementChild;s;s=s.previousElementSibling)if(i(s))return s;return null}function Nt(t,i){return xt(i),Ot(t,`> [${i}]`)}function Dt(t){return!!function(t){let i;return y(t)?i=t:b(t)&&(i=t.tagName),!!i&&i.toLowerCase().startsWith("i-")}(t)||t.nodeType===Node.ELEMENT_NODE&&(L(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"))}var Lt={bubbles:!0,cancelable:!0};function Ut(t,i,s){if(i(t))s();else{const e=new(wt(t).MutationObserver)((()=>{i(t)&&(e.disconnect(),s())}));e.observe(t,{childList:!0})}}function $t(t,i){Ut(t.documentElement,(()=>!!t.body),i)}function Ft(t){return new Promise((i=>$t(t,i)))}function Bt(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function Ht(t){const i=t.isConnected;if(void 0!==i)return i;let s=t;for(;s=jt(s),s.host;)s=s.host;return s.nodeType===Node.DOCUMENT_NODE}function jt(t){if(Node.prototype.getRootNode)return t.getRootNode();let i;for(i=t;i.parentNode&&(!(s=i)||"I-AMPHTML-SHADOW-ROOT"!=s.tagName&&(11!=s.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(s)));i=i.parentNode);var s;return i}function zt(t,i){let s=t;do{if(s.nextSibling)return!0}while((s=s.parentNode)&&s!=i);return!1}function Gt(t){try{t.focus()}catch(t){}}function qt(t){return t.parent&&t.parent!=t}function Wt(t,i,s,e){const n=s||{};D(t.ownerDocument);const{bubbles:r,cancelable:h}=e||Lt,o=new MessageEvent(i,{data:n,bubbles:r,cancelable:h});t.dispatchEvent(o)}function Kt(t,i){return i!==t&&t.contains(i)}function Yt(t){return t.hasAttribute("i-amphtml-ssr")}function Qt(t,i){const s=t.head.querySelector("script[nonce]");if(s){const t=s.nonce||s.getAttribute("nonce");i.setAttribute("nonce",null!=t?t:"")}}function Jt(t,i,s,e){return{left:t,top:i,width:s,height:e,bottom:i+e,right:t+s,x:t,y:i}}function Xt(t,i,s){return Jt(t.left-t.width*i,t.top-t.height*s,t.width*(1+2*i),t.height*(1+2*s))}function Zt(t,i,s){return 0==i&&0==s||0==t.width&&0==t.height?t:Jt(t.left+i,t.top+s,t.width,t.height)}function ti(t){return!t.IntersectionObserver||!t.IntersectionObserverEntry||!!t.IntersectionObserver._stub||!function(t){try{return new t.IntersectionObserver((()=>{}),{root:t.document}),!0}catch(t){return!1}}(t)||function(t){return/apple/i.test(t.navigator.vendor)}(t)}var ii=class t{constructor(i,s){this.L=i,this.C=g({root:null,rootMargin:"0px 0px 0px 0px"},s),this.N=[],this.F=null,t._upgraders.push(this.B.bind(this))}get root(){return this.F?this.F.root:this.C.root||null}get rootMargin(){return this.F?this.F.rootMargin:this.C.rootMargin}get thresholds(){return this.F?this.F.thresholds:[].concat(this.C.threshold||0)}disconnect(){this.F?this.F.disconnect():this.N.length=0}takeRecords(){return this.F?this.F.takeRecords():[]}observe(t){this.F?this.F.observe(t):-1==this.N.indexOf(t)&&this.N.push(t)}unobserve(t){if(this.F)this.F.unobserve(t);else{const i=this.N.indexOf(t);-1!=i&&this.N.splice(i,1)}}B(t){const i=new t(this.L,this.C);this.F=i;for(const t of this.N)i.observe(t);this.N.length=0}};ii._upgraders=[];var{hasOwnProperty:si}=Object.prototype;function ei(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var ni,ri=class t{constructor(i){this.L=i,this.N=[],this.F=null,t._upgraders.push(this.B.bind(this))}disconnect(){this.F?this.F.disconnect():this.N.length=0}observe(t){this.F?this.F.observe(t):-1==this.N.indexOf(t)&&this.N.push(t)}unobserve(t){if(this.F)this.F.unobserve(t);else{const i=this.N.indexOf(t);-1!=i&&this.N.splice(i,1)}}B(t){const i=new t(this.L);this.F=i;for(const t of this.N)i.observe(t);this.N.length=0}};ri._upgraders=[],self.document&&(ti(ni=self)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=ii,void(t.IntersectionObserver._stub=ii);const i=t.IntersectionObserver;t.IntersectionObserver=function(t,i){return function(s,e){var n;return 9===(null==e||null===(n=e.root)||void 0===n?void 0:n.nodeType)?new i(s,e):new t(s,e)}}(t.IntersectionObserver,ii),t.IntersectionObserver._stub=ii,t.IntersectionObserver._native=i}(ni),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get(){return this.intersectionRatio>0}})}(ni),function(t){ei(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=ri,t.ResizeObserver._stub=ri)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:i}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:s}))}(self));var hi="cls",oi="clstu",ui="cls-1",li="pc",ci="inp",ai="building",di="mounting",fi="loading",pi="complete",mi="error";function _i(t){return t.readyState!=fi&&"uninitialized"!=t.readyState}function Ai(t){return t.readyState==pi}function Pi(t,i){gi(t,_i,i)}function gi(t,i,s){let e=i(t);if(e)s(t);else{const n=()=>{i(t)&&(e||(e=!0,s(t)),t.removeEventListener("readystatechange",n))};t.addEventListener("readystatechange",n)}}function vi(t){return new Promise((i=>{Pi(t,i)}))}function Ei(t){return new Promise((i=>{gi(t,Ai,i)}))}var Ti=["amp-mustache"],Ii=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/;function Mi(t){if(!t)return null;const i=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),s=i?i[2]:void 0,e=i?i[3]:void 0;return s&&e?{extensionId:s,extensionVersion:e}:null}function Ri(t,i,s){const e=t.document.createElement("script");e.async=!0,bi(i)?s="":e.setAttribute(Ti.indexOf(i)>=0?"custom-template":"custom-element",i),e.setAttribute("data-script",i),e.setAttribute("i-amphtml-inserted",""),e.setAttribute("type","module"),Qt(t.document,e),e.setAttribute("crossorigin","anonymous");const n=function(t,i,s,e){return`${et}/rtv/${at().rtvVersion}/v0/${i}${s?"-"+s:""}.mjs`}(t.location,i,s);let r={createScriptURL:function(t){return Ii.test(t)||"fonts.googleapis.com"===new URL(t).host?t:""}};return self.trustedTypes&&self.trustedTypes.createPolicy&&(r=self.trustedTypes.createPolicy("extension-script#createExtensionScript",r)),e.src=r.createScriptURL(n),e}function yi(t,i,s,e,n=!0){const r=":not([i-amphtml-loaded-new-version])"+(n?"":":not([i-amphtml-inserted])"),h=t.document.head.querySelectorAll(`script[src*="/${i}-"]${r}`),o=[];for(let t=0;t<h.length;t++){const n=h[t],r=Mi(n.src);if(!r)continue;const{extensionId:u,extensionVersion:l}=r;u==i&&(bi(i)||l==s||"latest"==l&&e)&&o.push(n)}return o}function bi(t){return t.startsWith("_")}function wi(t,i,s,e){Fi(t=Ni(t),t,i,s),e&&$i(t,i)}function Vi(t,i,s,e){const n=Li(t),r=Ui(n);Fi(r,n,i,s),e&&$i(r,i)}function Si(t,i){return $i(t=Ni(t),i)}function xi(t,i){return $i(Ui(Li(t)),i)}function Oi(t,i){const s=Ui(Li(t));return qi(s,i)?$i(s,i):null}function Ci(t,i){return Bi(Ui(t),i)}function ki(t,i){return Hi(Ui(t),i)}function Ni(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function Di(t,i){const s=(t.ownerDocument||t).defaultView,e=i||Ni(s);if(s&&s!=e&&Ni(s)==e)try{return s.frameElement}catch(t){}return null}function Li(t){return t.nodeType?function(t){return Si(t,"ampdoc")}(wt(t)).getAmpDoc(t):t}function Ui(t){const i=Li(t);return i.isSingleDoc()?i.win:i}function $i(t,i){yt(qi(t,i));const s=ji(t)[i];return s.obj||(yt(s.ctor),yt(s.context),s.obj=new s.ctor(s.context),yt(s.obj),s.context=null,s.resolve&&s.resolve(s.obj)),s.obj}function Fi(t,i,s,e,n,r){const h=ji(t);let o=h[s];o||(o=h[s]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:r||!1}),!n&&o.ctor||(o.ctor=e,o.context=i,o.sharedInstance=r||!1,o.resolve&&$i(t,s))}function Bi(t,i){const s=Hi(t,i);if(s)return s;const e=ji(t);return e[i]=function(){const t=new n,{promise:i,reject:s,resolve:e}=t;return i.catch((()=>{})),{obj:null,promise:i,resolve:e,reject:s,context:null,ctor:null}}(),e[i].promise}function Hi(t,i){const s=ji(t)[i];return s?s.promise?s.promise:($i(t,i),s.promise=Promise.resolve(s.obj)):null}function ji(t){let i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function zi(t){return"function"==typeof t.dispose}function Gi(t,i){if(zi(i))try{(function(t){return yt(zi(t)),t})(i).dispose()}catch(i){Rt().error("SERVICE","failed to dispose service",t,i)}}function qi(t,i){const s=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!s||!s.ctor)}function Wi(t,i,s,e){return Ki(t,i,s,e).then((t=>function(t,i,s){return bt(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.",i,s,s,s)}(t,i,s)))}function Ki(t,i,s,e){const n=ki(t,i);if(n)return n;const r=Li(t);return r.whenExtensionsKnown().then((()=>{const t=r.getExtensionVersion(s);return t?Si(r.win,"extensions").waitForExtension(s,t):null})).then((s=>s?e?ki(t,i):Ci(t,i):null))}var Yi,Qi=t=>Ki(t,"access","amp-access"),Ji=t=>Ki(t,"subscriptions","amp-subscriptions"),Xi=t=>Oi(t,"action"),Zi=t=>Wi(t,"activity","amp-analytics"),ts=t=>Li(t),is=t=>Si(t,"ampdoc"),ss=t=>function(t,i,s){const e=Oi(t,i);return e?Promise.resolve(e):Ki(t,i,"amp-bind")}(t,"bind"),es=t=>Ci(t,"cid"),ns=t=>Si(t,"crypto"),rs=t=>xi(t,"documentInfo").get(),hs=t=>Si(t,"extensions"),os=t=>xi(t,"history"),us=t=>xi(t,"mutator"),ls=t=>Si(t,"performance"),cs=t=>Si(t,"platform"),as=t=>Si(t,"preconnect"),ds=t=>xi(t,"resources"),fs=t=>Ci(t,"storage"),ps=t=>function(t,i){return $i(t,"timer")}(t),ms=t=>Oi(t,"url-replace"),_s=t=>Ki(t,"geo","amp-geo",!0),As=t=>Oi(t,"url"),Ps=t=>xi(t,"viewer"),gs=t=>Si(t,"vsync"),vs=t=>xi(t,"viewport"),Es=t=>Si(t,"xhr"),Ts={PRERENDER:"prerender",PREVIEW:"preview",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"},Is=class{constructor(){this.un=null}add(t){return this.un||(this.un=[]),this.un.push(t),()=>{this.remove(t)}}remove(t){this.un&&M(this.un,t)}removeAll(){this.un&&(this.un.length=0)}fire(t){if(this.un)for(const i of this.un.slice())i(t)}getHandlerCount(){var t,i;return null!==(t=null===(i=this.un)||void 0===i?void 0:i.length)&&void 0!==t?t:0}},Ms=class{constructor(){this.hn=p(),this.ti=null}get(t){const i=this.hn[t];return null==i?null:i}whenSignal(t){var i;let s=null===(i=this.ti)||void 0===i?void 0:i[t];if(!s){const i=this.hn[t];s=null!=i?{promise:"number"==typeof i?Promise.resolve(i):Promise.reject(i)}:new n,this.ti||(this.ti=p()),this.ti[t]=s}return s.promise}signal(t,i){var s;if(null!=this.hn[t])return;const e=null!=i?i:Date.now();this.hn[t]=e;const n=null===(s=this.ti)||void 0===s?void 0:s[t];null!=n&&n.resolve&&(n.resolve(e),n.resolve=void 0,n.reject=void 0)}rejectSignal(t,i){var s;if(null!=this.hn[t])return;this.hn[t]=i;const e=null===(s=this.ti)||void 0===s?void 0:s[t];null!=e&&e.reject&&(e.reject(i),e.promise.catch((()=>{})),e.resolve=void 0,e.reject=void 0)}reset(t){var i;this.hn[t]&&delete this.hn[t];const s=null===(i=this.ti)||void 0===i?void 0:i[t];s&&!s.resolve&&delete this.ti[t]}},Rs=["Webkit","webkit","Moz","moz","ms","O","o"],ys={"getPropertyPriority":()=>"","getPropertyValue":()=>""};function bs(t){const i=t.replace(/[A-Z]/g,(t=>"-"+t.toLowerCase()));return Rs.some((t=>i.startsWith(t+"-")))?`-${i}`:i}function ws(t,i,s){if(i.startsWith("--"))return i;Yi||(Yi=p());let e=Yi[i];if(!e||s){if(e=i,void 0===t[i]){const s=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),n=function(t,i){for(let s=0;s<Rs.length;s++){const e=Rs[s]+i;if(void 0!==t[e])return e}return""}(t,s);void 0!==t[n]&&(e=n)}s||(Yi[i]=e)}return e}function Vs(t,i){const{style:s}=t;for(const t in i)s.setProperty(bs(ws(s,t)),String(i[t]),"important")}function Ss(t,i,s,e,n){const r=ws(t.style,i,n);if(!r)return;const h=e?s+e:s;t.style.setProperty(bs(r),h)}function xs(t,i){for(const s in i)Ss(t,s,i[s])}function Os(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Cs(t){return`${t}px`}function ks(t,i){return t.getComputedStyle(i)||ys}function Ns(t){const i=t[ws(t,"visibilityState",!0)];if(i)return i;const s=ws(t,"hidden",!0);return s in t&&t[s]?Ts.HIDDEN:Ts.VISIBLE}function Ds(t,i){if(!t.addEventListener)return;const s=Us(t);s&&t.addEventListener(s,i)}function Ls(t,i){if(!t.removeEventListener)return;const s=Us(t);s&&t.removeEventListener(s,i)}function Us(t){const i=ws(t,"hidden",!0),s=i.indexOf("Hidden");return-1!=s?i.substring(0,s)+"Visibilitychange":"visibilitychange"}var $s=class{static getTop(t){return t.top}static getLocation(t){return t.location}static getDocumentReferrer(t){return t.document.referrer}static getHostname(t){return t.location.hostname}static getUserAgent(t){return t.navigator.userAgent}static getUserLanguage(t){return t.navigator.userLanguage||t.navigator.language}static getDevicePixelRatio(){return self.devicePixelRatio||1}static getSendBeacon(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)}static getXMLHttpRequest(t){return t.XMLHttpRequest}static getImage(t){return t.Image}},Fs="__AMP__",Bs="-ampdoc-ext-known",Hs="-ampdoc-first-visible",js="-ampdoc-next-visible",zs="-ampdoc-first-previewed",Gs=class{constructor(t,i,s){this.win=t,this.ii=p(),this.si=i,this.ei=s&&s.signals||new Ms,this.ni=s&&s.params||p(),this.ri=null,this.hi={};const e=this.ni.visibilityState;var n;yt(!e||"prerender"===(n=e)||"preview"===n||"visible"===n||"hidden"===n||"paused"===n||"inactive"===n),this.oi=s&&s.visibilityState||e||null,this.D=null,this.ui=new Is,this.li=null,this.ci=[];const r=this.ai.bind(this);this.si&&this.ci.push(this.si.onVisibilityChanged(r)),Ds(this.win.document,r),this.ci.push((()=>Ls(this.win.document,r))),this.ai()}dispose(){(function(t){const i=ji(t);for(const t in i){if(!Object.prototype.hasOwnProperty.call(i,t))continue;const s=i[t];s.sharedInstance||(s.obj?Gi(t,s.obj):s.promise&&s.promise.then((i=>Gi(t,i))))}})(this),this.ci.forEach((t=>t()))}isSingleDoc(){return yt(null)}getParent(){return this.si}signals(){return this.ei}getParam(t){const i=this.ni[t];return null==i?null:i}getMeta(){return this.ri||(this.ri=p(),this.win.document.head.querySelectorAll("meta[name]").forEach((t=>{const i=t.getAttribute("name"),s=t.getAttribute("content");i&&null!==s&&void 0===this.ri[i]&&(this.ri[i]=s)}))),p(this.ri)}getMetaByName(t){if(!t)return null;const i=this.getMeta()[t];return void 0!==i?i:null}setMetaByName(t,i){yt(null)}declaresExtension(t,i){const s=this.hi[t];return!(!s||i&&s!==i)}declareExtension(t,i){yt(!this.hi[t]||this.hi[t]===i),this.hi[t]=i}getExtensionVersion(t){return this.hi[t]||null}setExtensionsKnown(){this.ei.signal(Bs)}whenExtensionsKnown(){return this.ei.whenSignal(Bs)}getRootNode(){return yt(null)}getHeadNode(){}isBodyAvailable(){return yt(!1)}getBody(){return yt(null)}waitForBodyOpen(){return yt(null)}isReady(){return yt(null)}whenReady(){return yt(null)}getUrl(){return yt(null)}getElementById(t){return this.getRootNode().getElementById(t)}contains(t){return this.getRootNode().contains(t)}overrideVisibilityState(t){this.oi!=t&&(this.oi=t,this.ai())}ai(){const t=Ns(this.win.document);let i,s=Ts.VISIBLE;for(let t=this.si;t;t=t.getParent())if(t.getVisibilityState()!=Ts.VISIBLE){s=t.getVisibilityState();break}const e=this.oi||Ts.VISIBLE;if(i=e==Ts.VISIBLE&&s==Ts.VISIBLE&&t==Ts.VISIBLE?Ts.VISIBLE:t==Ts.HIDDEN&&e==Ts.PAUSED?t:e==Ts.PAUSED||e==Ts.INACTIVE?e:s==Ts.PAUSED||s==Ts.INACTIVE?s:e==Ts.PREVIEW||t==Ts.PREVIEW||s==Ts.PREVIEW?Ts.PREVIEW:e==Ts.PRERENDER||t==Ts.PRERENDER||s==Ts.PRERENDER?Ts.PRERENDER:Ts.HIDDEN,this.D!=i){if(i==Ts.VISIBLE){var n;const{performance:t}=this.win;let i=Math.floor(null!==(n=t.timeOrigin)&&void 0!==n?n:t.timing.navigationStart);null!=this.D&&(i+=Math.floor(t.now())),this.li=i,this.ei.signal(Hs,i),this.ei.signal(js,i)}else this.ei.reset(js);i==Ts.PREVIEW&&this.ei.signal(zs),this.D=i,this.ui.fire()}}whenFirstPreviewedOrVisible(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])}whenFirstPreviewed(){return this.ei.whenSignal(zs).then((()=>{}))}whenFirstVisible(){return this.ei.whenSignal(Hs).then((()=>{}))}whenNextVisible(){return this.ei.whenSignal(js).then((()=>{}))}getFirstVisibleTime(){return this.ei.get(Hs)}getLastVisibleTime(){return this.li}getVisibilityState(){return yt(this.D)}isPreview(){return this.D==Ts.PREVIEW}isVisible(){return this.D==Ts.VISIBLE}hasBeenVisible(){return null!=this.getLastVisibleTime()}onVisibilityChanged(t){return this.ui.add(t)}registerSingleton(t){return!this.ii[t]&&(this.ii[t]=!0,!0)}},qs=class extends Gs{constructor(t,i){super(t,null,i),this.di=this.win.document.body?Promise.resolve(this.win.document.body):Ft(this.win.document).then((()=>this.getBody())),this.fi=vi(this.win.document)}isSingleDoc(){return!0}getRootNode(){return this.win.document}getUrl(){return $s.getLocation(this.win).href}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.di}isReady(){return _i(this.win.document)}whenReady(){return this.fi}},Ws=class extends Gs{constructor(t,i,s,e){super(t,null,e),this.pi=i,this.mi=s,this._i=null;const r=new n;this.di=r.promise,this.Ai=r.resolve,this.gi=!1;const h=new n;this.fi=h.promise,this.Pi=h.resolve}isSingleDoc(){return!1}getRootNode(){return this.mi}getUrl(){return this.pi}getHeadNode(){return this.mi}isBodyAvailable(){return!!this._i}getBody(){return this._i}setBody(t){yt(!this._i),this._i=t,this.Ai(t),this.Ai=void 0}waitForBodyOpen(){return this.di}isReady(){return this.gi}setReady(){yt(!this.gi),this.gi=!0,this.Pi(),this.Pi=void 0}whenReady(){return this.fi}getMeta(){return p(this.ri)}setMetaByName(t,i){yt(t),this.ri||(this.ri=p()),this.ri[t]=i}},Ks=class extends Gs{constructor(t,i,s,e){super(t,s,e),this.pi=i,this.di=this.win.document.body?Promise.resolve(this.win.document.body):Ft(this.win.document).then((()=>this.getBody())),this.gi=!1;const r=new n;this.fi=r.promise,this.Pi=r.resolve}isSingleDoc(){return!1}getRootNode(){return this.win.document}getUrl(){return this.pi}getHeadNode(){return this.win.document.head}isBodyAvailable(){return!!this.win.document.body}getBody(){return this.win.document.body}waitForBodyOpen(){return this.di}isReady(){return this.gi}whenReady(){return this.fi}setReady(){yt(!this.gi),this.gi=!0,this.Pi(),this.Pi=void 0}};function Ys(t,i){const s=p();return i?Object.assign(s,i):(t.name&&0==t.name.indexOf(Fs)&&Object.assign(s,Y(t.name.substring(Fs.length))),t.location&&t.location.hash&&Object.assign(s,Y(t.location.hash))),s}var Qs="nodisplay",Js="fixed",Xs="fixed-height",Zs="responsive",te="container",ie="fill",se="flex-item",ee="fluid",ne="intrinsic",re=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function he(t){if("nodisplay"===(i=t)||"fixed"===i||"fixed-height"===i||"responsive"===i||"container"===i||"fill"===i||"flex-item"===i||"fluid"===i||"intrinsic"===i)return t;var i}function oe(t){return"i-amphtml-layout-"+t}function ue(t){return t==Js||t==Xs||t==Zs||t==ie||t==se||t==ee||t==ne}function le(t){return"number"==typeof t?t+"px":t&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(t)?/^\d+(\.\d+)?$/.test(t)?t+"px":t:void 0}function ce(t){!function(t){F(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(null!=t?t:""),"Invalid length value: %s",t)}(t);const i=/[a-z]+/i.exec(null!=t?t:"");return F(i,"Failed to read units from %s",t),i[0]}function ae(t){const i=parseFloat(t);return w(i)?i:void 0}function de(t,i){t.classList.add("i-amphtml-fill-content"),i&&t.classList.add("i-amphtml-replaced-content")}function fe(t,i,s,e){const n=E(t);for(const t of n){const n=i.getAttribute(t);null!==n?s.setAttribute(t,n):e&&s.removeAttribute(t)}}var pe,me="amp:attached",_e="amp:load-start",Ae="amp:load-end",Pe="ready-upgrade",ge="upgraded",ve="built",Ee="mounted",Te="load-start",Ie="render-start",Me="load-end",Re="unload";function ye(t,i){return[{query:t.matchMedia(i),value:"1"},{query:null,value:""}]}function be(t,i){return i.split(",").map((i=>{if(0==(i=i.replace(/\s+/g," ").trim()).length)return;let s,e,n;if(")"==i.charAt(i.length-1)){let t=1;for(n=i.length-2;n>=0;n--){const s=i.charAt(n);if("("==s?t--:")"==s&&t++,0==t)break}const s=n-1;if(n>0)for(n--;n>=0;n--){const t=i.charAt(n);if(!("%"==t||"-"==t||"_"==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}if(n>=s)return null}else for(n=i.length-2;n>=0;n--){const t=i.charAt(n);if(!("%"==t||"."==t||t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"))break}return n>=0?(s=i.substring(0,n+1).trim(),e=i.substring(n+1).trim()):(e=i,s=void 0),e?{query:s?t.matchMedia(s):null,value:e}:null})).filter(Boolean)}function we(t,i,s){for(let e=0;e<t.length;e++){const{query:n}=t[e];n&&(void 0!==n.onchange?n.onchange=s?i:null:s?n.addListener(i):n.removeListener(i))}}function Ve(t){const i=t.ownerDocument||t;return pe&&pe.ownerDocument===i||(pe=i.createElement("div")),Se}function Se(t){return function(t,i){if(D(1===i.length),D(Array.isArray(i)||m(i,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){const s=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return i[0]}});t.innerHTML=s.createHTML("ignored")}else t.innerHTML=i[0];const s=t.firstElementChild;return D(s),D(!s.nextElementSibling),t.removeChild(s),s}(pe,t)}var xe=['<i-amphtml-sizer class=i-amphtml-sizer slot=i-amphtml-svc><img alt="" role=presentation aria-hidden=true class=i-amphtml-intrinsic-sizer></i-amphtml-sizer>'],Oe={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Ce(t){const i=t.getAttribute("layout"),s=t.getAttribute("width"),e=t.getAttribute("height"),n=t.getAttribute("sizes"),r=t.getAttribute("heights"),h=i?he(i):null;F(void 0!==h,'Invalid "layout" value: %s, %s',i,t);const o=s&&"auto"!=s?le(s):s;F(void 0!==o,'Invalid "width" value: %s, %s',s,t);const u=e&&"fluid"!=e?le(e):e;let l,c,a;if(F(void 0!==u,'Invalid "height" value: %s, %s',e,t),h&&h!=Js&&h!=Xs||o&&u||(d=(d=t.tagName).toUpperCase(),void 0===Oe[d]))l=o,c=u;else{const i=function(t){const i=t.tagName.toUpperCase();if(D(void 0!==Oe[i]),!Oe[i]){const s=t.ownerDocument,e=i.replace(/^AMP\-/,""),n=s.createElement(e);n.controls=!0,xs(n,{position:"absolute",visibility:"hidden"}),s.body.appendChild(n),Oe[i]={width:(n.offsetWidth||1)+"px",height:(n.offsetHeight||1)+"px"},s.body.removeChild(n)}return Oe[i]}(t);l=o||h==Xs?o:i.width,c=u||i.height}var d;return a=h||(l||c?"fluid"==c?ee:!c||l&&"auto"!=l?c&&l&&(n||r)?Zs:Js:Xs:te),a!=Js&&a!=Xs&&a!=Zs&&a!=ne||F(c,'The "height" attribute is missing: %s',t),a==Xs&&F(!l||"auto"==l,'The "width" attribute must be missing or "auto": %s',t),a!=Js&&a!=Zs&&a!=ne||F(l&&"auto"!=l,'The "width" attribute must be present and not "auto": %s',t),a==Zs||a==ne?F(ce(l)==ce(c),'Length units should be the same for "width" and "height": %s, %s, %s',s,e,t):F(null===r,'"heights" attribute must be missing: %s',t),{layout:a,width:l,height:c}}var ke,Ne="amp-experiment-toggles",De="__AMP__EXPERIMENT_TOGGLES";function Le(t,i){return!!$e(t)[i]}function Ue(t,i,s,e){const n=Le(t,i),r=null!=s?s:!n;if(r!=n&&($e(t)[i]=r,!e)){const s=Fe(t);s[i]=r,function(t,i){const s=[];for(const t in i)s.push((!1===i[t]?"-":"")+t);try{var e;null===(e=t.localStorage)||void 0===e||e.setItem(Ne,s.join(","))}catch(t){It().error("EXPERIMENTS","Failed to save experiments to localStorage.")}}(t,s)}return r}function $e(t){var i,s,e,n,r;if(t[De])return t[De];t[De]=p();const h=t[De];D(h);const o=g(g({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(s=t.AMP_EXP)&&void 0!==s?s:B((null===(e=t.__AMP_EXP)||void 0===e?void 0:e.textContent)||"{}"));for(const t in o){const i=o[t];"number"==typeof i&&i>=0&&i<=1&&(h[t]=Math.random()<i)}const u=null===(n=t.AMP_CONFIG)||void 0===n?void 0:n["allow-doc-opt-in"];if(v(u)&&u.length){const i=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(i){var l;const t=(null===(l=i.getAttribute("content"))||void 0===l?void 0:l.split(","))||[];for(const i of t)u.includes(i)&&(h[i]=!0)}}Object.assign(h,Fe(t));const c=null===(r=t.AMP_CONFIG)||void 0===r?void 0:r["allow-url-opt-in"];if(v(c)&&c.length){const i=Y(t.location.originalHash||t.location.hash);for(const t of c){const s=i[`e-${t}`];"1"==s&&(h[t]=!0),"0"==s&&(h[t]=!1)}}return h}function Fe(t){var i;let s="";try{var e;"localStorage"in t&&(s=null!==(e=t.localStorage.getItem(Ne))&&void 0!==e?e:"")}catch(t){}const n=(null===(i=s)||void 0===i?void 0:i.split(/\s*,\s*/g))||[],r=p();for(const t of n)t&&("-"==t[0]?r[t.substr(1)]=!1:r[t]=!0);return r}function Be(t,i,s,e){let n=t,r=s,h=t=>{try{return r(t)}catch(t){var i,s;throw null===(i=(s=self).__AMP_REPORT_ERROR)||void 0===i||i.call(s,t),t}};const o=function(){if(void 0!==ke)return ke;ke=!1;try{const t={get capture(){return ke=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return ke}(),u=!(null==e||!e.capture);return n.addEventListener(i,h,o?e:u),()=>{null==n||n.removeEventListener(i,h,o?e:u),r=null,n=null,h=null}}var He="Failed to load:";function je(t,i,s,e){const n={detail:s};return Object.assign(n,e),new t.CustomEvent(i,n)}function ze(t,i,s,e){return Be(t,i,s,e)}function Ge(t){return t.data}function qe(t,i,s,e){let n=s;const r=Be(t,i,(t=>{try{n(t)}finally{n=null,r()}}),e);return r}function We(t){let i,s;if(function(t){return!!(t.complete||"complete"==t.readyState||Ke(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);const e=Ke(t);return e&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise(((n,r)=>{if(i=e?qe(t,"loadedmetadata",n,{capture:!0}):qe(t,"load",n),!t.tagName)return;let h=t;if(e&&!t.hasAttribute("src")&&(h=kt(t,(t=>"SOURCE"===t.tagName)),!h))return r(new Error("Media has no source."));s=qe(h,"error",r)})).then((()=>(s&&s(),t)),(()=>{i&&i(),function(t){Ke(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);let i=t;throw i&&i.src&&(i=i.src),It().createError(He,i)}(t)}))}function Ke(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var Ye={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function Qe(t){const i=t.document;return yt(i.body),Object.keys(Ye).filter((t=>i.querySelector(Ye[t])))}function Je(t,i,s){if(i[s])return i[s];const e=t.querySelector(`style[${s}], link[${s}]`);return e?(i[s]=e,e):null}var Xe=!1;function Ze(t){yt(t.defaultView),Xe||(Xe=!0,tn(t))}function tn(t){xs(t.body,{opacity:1,visibility:"visible","animation":"none"})}function sn(t,i){const s=t.styleSheets;for(let t=0;t<s.length;t++)if(s[t].ownerNode==i)return!0;return!1}var en,nn=new Set(["c","v","a","ad"]),rn="__amp_source_origin",hn=t=>"string"==typeof t?on(t):t;function on(t,i){return en||(en=self.document.createElement("a")),un(en,t)}function un(t,i,s){return t.href="",new URL(i,t.href)}function ln(t,i,s){if(!i)return t;const e=t.split("#",2),n=e[0].split("?",2);let r=n[0]+(n[1]?s?`?${i}&${n[1]}`:`?${n[1]}&${i}`:`?${i}`);return r+=e[1]?`#${e[1]}`:"",r}function cn(t,i){return`${encodeURIComponent(t)}=${encodeURIComponent(i)}`}function an(t,i){return ln(t,dn(i))}function dn(t){const i=[];for(const s in t){let e=t[s];if(null!=e){e=E(e);for(let t=0;t<e.length;t++)i.push(cn(s,e[t]))}}return i.join("&")}function fn(t){return"https:"==(t=hn(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||R(t.hostname,".localhost")}function pn(t,i,s="source"){return bt(null!=t,"%s %s must be available",i,s),bt(fn(t)||/^\/\//.test(t),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',i,s,t),t}function mn(t){const i=t.indexOf("#");return-1==i?t:t.substring(0,i)}function _n(t){return X.test(hn(t).origin)}function An(t){return!(t&&q.includes(hn(t).protocol))}function Pn(t){const{hash:i,origin:s,pathname:e,search:n}=on(t);return s+e+gn(n)+i}function gn(t){return function(t,i){if(!t||"?"==t)return"";const s=new RegExp("[?&](amp_(js[^&=]*|gsa|r|kit)|usqp)\\b[^&]*","g"),e=t.replace(s,"").replace(/^[?&]/,"");return e?"?"+e:""}(t)}function vn(t){if(!_n(t=hn(t)))return t.href;const i=t.pathname.split("/"),s=i[1];bt(nn.has(s),"Unknown path prefix in url %s",t.href);const e=i[2],n="s"==e?"https://"+decodeURIComponent(i[3]):"http://"+decodeURIComponent(e);return bt(n.indexOf(".")>0,"Expected a . in origin %s",n),i.splice(1,"s"==e?3:2),n+i.join("/")+gn(t.search)+(t.hash||"")}function En(t){return on(vn(t)).origin}function Tn(t,i){return i=hn(i),new URL(t,i.href).toString()}function In(t,i){return Mn(i),function(t,i,s,e){return ln(t,cn("__amp_source_origin",s),void 0)}(i,0,En(t.location.href))}function Mn(t){const i=Y(on(t).search);bt(!(rn in i),"Source origin is not allowed in %s",t)}var Rn="CANCELLED",yn="BLOCK_BY_CONSENT",bn=self.__AMP_ERRORS||[];self.__AMP_ERRORS=bn;var wn=function(t){return(wn=function(t){const i=function(t){let i=0;return()=>{let t=Math.pow(1.5,i++);return t+=function(t,i){let s=t*(i=i||.3)*Math.random();return Math.random()>.5&&(s*=-1),s}(t),1e3*t}}();return t=>setTimeout(t,i())}())(t)};function Vn(t,i){try{let s;if(t)if(void 0!==t.message)t=h(t),s=!0;else{const i=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(i){return String(t)}}(i))).origError=i}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){const i=I(t.messageArray,(t=>null==t?void 0:t.tagName));i>-1&&(t.associatedElement=t.messageArray[i])}const e=i||t.associatedElement;if(e&&e.classList&&e.classList.add("i-amphtml-error"),self.console&&(O(t.message)||!t.expected)){const i=console.error||console.log;t.messageArray?i.apply(console,t.messageArray):e?i.call(console,t.message,e):i.call(console,t.message)}e&&e.dispatchCustomEventForTesting&&e.dispatchCustomEventForTesting("amp:error",t.message),On.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Sn(){return new Error(Rn)}function xn(t){return!!t&&("string"==typeof t?t.startsWith(yn):"string"==typeof t.message&&t.message.startsWith(yn))}function On(t,i,s,n,r){!this||!this.document||r&&r.expected||Ze(this.document);let h=!1;try{h=function(t){if(!t.document)return!1;const i=t.document.querySelectorAll("script[src]");for(let t=0;t<i.length;t++)if(!_n(i[t].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(h&&Math.random()<.99)return;const o=function(t,i,s,e,n,r){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,n);let h=!(!n||!n.expected);if(/_reported_/.test(t))return;if(t==Rn)return;const o=!(self&&self.window),u=Math.random();if((function(t){return-1!=t.indexOf(He)}(t)||"Script error."==t||o)&&(h=!0,u<.9999))return;const l=O(t);if(l&&u<.99)return;const c=Object.create(null);c.v=at().rtvVersion,c.noAmp=r?"1":"0",c.m=t.replace(V,""),c.a=l?"1":"0",c.ex=h?"1":"0",c.dw=o?"1":"0";let a="1p";if(a="esm",c.esm="1",c.rt="esm",c.cdn=et,c.ca=null!==(f=self.AMP_CONFIG)&&void 0!==f&&f.canary?"1":"0",c.bt=(null===(d=self.AMP_CONFIG)||void 0===d?void 0:d.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(c.or=self.location.ancestorOrigins[0]),self.viewerState&&(c.vs=self.viewerState),self.parent&&self.parent!=self&&(c.iem="1"),self.AMP&&self.AMP.viewer){const t=self.AMP.viewer.getResolvedViewerUrl(),i=self.AMP.viewer.maybeGetMessagingOrigin();t&&(c.rvu=t),i&&(c.mso=i)}var d,f;const p=[],m=self[De]||null;for(const t in m){const i=m[t];p.push(`${t}=${i?"1":"0"}`)}var _,A,P;return c.exps=p.join(","),n?(c.el=(null===(_=n.associatedElement)||void 0===_?void 0:_.tagName)||"u",n.args&&(c.args=JSON.stringify(n.args)),l||n.ignoreStack||!n.stack||(c.s=n.stack),n.message&&(n.message+=" _reported_")):(c.f=i||"",c.l=s||"",c.c=e||""),c.r=self.document?self.document.referrer:"",c.ae=bn.join(","),c.fr=self.location.originalHash||self.location.hash,"production"===c.bt&&(c.pt="1"),P=t,(A=bn).length>=25&&A.splice(0,A.length-25+1),A.push(P),c}(t,i,s,n,r,h);o&&wn((()=>{try{return function(t,i){return i.pt&&Math.random()<.9?e():function(t,i){const s=is(t);if(!s.isSingleDoc())return Promise.resolve(!1);const e=s.getSingleDoc();if(!e.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);const n=Ps(e);return n.hasCapability("errorReporter")?n.isTrustedViewer().then((t=>{return!!t&&(n.sendMessage("error",{"m":(s=i).m,"a":s.a,"s":s.s,"el":s.el,"ex":s.ex,"v":s.v,"pt":s.pt}),!0);var s})):Promise.resolve(!1)}(t,i).then((t=>{if(!t){const t=new XMLHttpRequest;t.open("POST",Math.random()<.1?ht:rt,!0),t.send(JSON.stringify(i))}}))}(this,o).catch((()=>{}))}catch(t){}}))}var Cn="Resource",kn=class t{static forElement(i){return yt(t.forElementOptional(i))}static forElementOptional(t){return t.__AMP__RESOURCE}static setOwner(i,s){yt(s.contains(i)),t.forElementOptional(i)&&t.forElementOptional(i).updateOwner(s),i.__AMP__OWNER=s;const e=i.getElementsByClassName("i-amphtml-element");for(let i=0;i<e.length;i++){const s=e[i];t.forElementOptional(s)&&t.forElementOptional(s).updateOwner(void 0)}}constructor(t,i,s){i.__AMP__RESOURCE=this,this.vi=t,this.element=i,this.debugid=i.tagName.toLowerCase()+"#"+t,this.hostWin=i.ownerDocument.defaultView,this.Ei=s,this.Ti=i.hasAttribute("placeholder"),this.Ri=!1,this.Ii=void 0,this.Mi=i.isBuilt()?1:0,0==this.Mi&&i.isBuilding()&&this.build(),this.yi=-1,this.wi=0,this.bi=null,this.Vi=null,this.Si=!1,this.xi=Jt(-1e4,-1e4,0,0),this.Oi=null,this.Ci=!1,this.ki=null,this.Ni=null,this.Di=void 0;const e=new n;this.Li=e.promise,this.Ui=e.resolve,this.$i=!1}getId(){return this.vi}updateOwner(t){this.Ii=t}getOwner(){if(void 0===this.Ii){for(let t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.Ii=t.__AMP__OWNER;break}void 0===this.Ii&&(this.Ii=null)}return this.Ii}hasOwner(){return!!this.getOwner()}getLayoutPriority(){return-1!=this.yi?this.yi:this.element.getLayoutPriority()}updateLayoutPriority(t){this.yi=t}getState(){return this.Mi}isBuilt(){return this.element.isBuilt()}isBuilding(){return this.Ri}whenBuilt(){return this.element.signals().whenSignal("res-built")}build(){return this.Ri||!this.element.isUpgraded()?null:(this.Ri=!0,this.element.buildInternal().then((()=>{this.Ri=!1,this.Mi=1,this.element.signals().signal("res-built")}),(t=>{throw this.maybeReportErrorOnBuildFailure(t),this.Ri=!1,this.element.signals().rejectSignal("res-built",t),t})))}maybeReportErrorOnBuildFailure(t){xn(t)||Rt().error(Cn,"failed to build:",this.debugid,t)}changeSize(t,i,s){this.element.applySize(t,i,s),this.requestMeasure()}overflowCallback(t,i,s,e){t&&(this.Di={height:i,width:s,margins:e}),this.element.overflowCallback(t,i,s,e)}resetPendingChangeSize(){this.Di=void 0}getPendingChangeSize(){return this.Di}getUpgradeDelayMs(){return this.element.getUpgradeDelayMs()}measure(){if(this.Ti&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-")&&!("__AMP__RESOURCE"in this.element.parentElement))return;if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return void(this.Mi=1);this.Ci=!1;const t=this.xi;this.Fi();const i=this.xi,s=(n=i,!((e=t).width==n.width&&e.height===n.height));var e,n;(1==this.Mi||t.top!=i.top||s)&&this.element.isUpgraded()&&(1==this.Mi?this.Mi=2:4!=this.Mi&&5!=this.Mi||!this.element.isRelayoutNeeded()||(this.Mi=2)),this.hasBeenMeasured()||(this.Oi=i),this.element.updateLayoutBox(i,s)}ensureMeasured(){return this.hasBeenMeasured()?e():gs(this.hostWin).measure((()=>this.measure()))}Fi(){const t=vs(this.element);this.xi=t.getLayoutRect(this.element);let i=!1;if(t.supportsPositionFixed()&&this.isDisplayed()){const{win:s}=this.Ei.getAmpdoc(),{body:e}=s.document;for(let n=this.element;n&&n!=e;n=n.offsetParent){if(n.isAlwaysFixed&&n.isAlwaysFixed()){i=!0;break}if(t.isDeclaredFixed(n)&&"fixed"==ks(s,n).position){i=!0;break}}}this.Si=i,i&&(this.xi=Zt(this.xi,-t.getScrollLeft(),-t.getScrollTop()))}completeCollapse(){Os(this.element,!1),this.xi=Jt(this.xi.left,this.xi.top,0,0),this.Si=!1,this.element.updateLayoutBox(this.getLayoutBox());const t=this.getOwner();t&&t.collapsedCallback(this.element)}completeExpand(){Os(this.element,!0),this.requestMeasure()}isMeasureRequested(){return this.Ci}hasBeenMeasured(){return!!this.Oi}requestMeasure(){this.Ci=!0}getLayoutSize(){return function(t){const{height:i,width:s}=t;return{width:s,height:i}}(this.xi)}getLayoutBox(){if(!this.Si)return this.xi;const t=vs(this.element);return Zt(this.xi,t.getScrollLeft(),t.getScrollTop())}getInitialLayoutBox(){return this.Oi||this.xi}isDisplayed(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;const t=this.element.getLayout()==ee,i=this.getLayoutBox(),s=i.height>0&&i.width>0;return t||s}isFixed(){return this.Si}overlaps(t){return s=t,(i=this.getLayoutBox()).top<=s.bottom&&s.top<=i.bottom&&i.left<=s.right&&s.left<=i.right;var i,s}prerenderAllowed(){return this.element.prerenderAllowed()}previewAllowed(){return this.element.previewAllowed()}isBuildRenderBlocking(){return this.element.isBuildRenderBlocking()}whenWithinViewport(t){if(yt(!1!==t),!this.isLayoutPending()||!0===t)return e();const i=t,s=String(i);return this.ki&&this.ki[s]?this.ki[s].promise:this.isWithinViewportRatio(i)?e():(this.ki=this.ki||{},this.ki[s]=new n,this.ki[s].promise)}Bi(){if(!this.ki)return;const t=this.getDistanceViewportRatio();for(const i in this.ki)this.isWithinViewportRatio(parseFloat(i),t)&&(this.ki[i].resolve(),delete this.ki[i])}getDistanceViewportRatio(){const t=vs(this.element).getRect(),i=this.getLayoutBox(),s=this.Ei.getScrollDirection();let e=1,n=0;if(t.right<i.left||t.left>i.right)return{distance:!1};if(t.bottom<i.top)n=i.top-t.bottom,-1==s&&(e=2);else{if(!(t.top>i.bottom))return{distance:!0};n=t.top-i.bottom,1==s&&(e=2)}return{distance:n,scrollPenalty:e,viewportHeight:t.height}}isWithinViewportRatio(t,i){if("boolean"==typeof t)return t;const{distance:s,scrollPenalty:e,viewportHeight:n}=i||this.getDistanceViewportRatio();return"boolean"==typeof s?s:s<n*t/e}renderOutsideViewport(){return this.Bi(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())}idleRenderOutsideViewport(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())}layoutScheduled(t){this.Mi=3,this.element.layoutScheduleTime=t}layoutCanceled(){this.Mi=this.hasBeenMeasured()?2:1}startLayout(){if(this.Ni)return this.Ni;if(4==this.Mi)return e();if(5==this.Mi)return Promise.reject(this.Vi);if(yt(0!=this.Mi),yt(this.isDisplayed()),3!=this.Mi){const t=Rt().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.Mi);return Vn(t,this.element),Promise.reject(t)}if(this.wi>0&&!this.element.isRelayoutNeeded())return this.Mi=4,e();this.wi++,this.Mi=3,this.bi=new AbortController;const{signal:t}=this.bi,i=new Promise(((i,s)=>{gs(this.hostWin).mutate((()=>{let e;try{e=this.element.layoutCallback(t)}catch(t){s(t)}Promise.resolve(e).then(i,s)})),t.onabort=()=>s(Sn())})).then((()=>this.Hi(!0,t)),(i=>this.Hi(!1,t,i)));return this.Ni=i}Hi(t,i,s){if(this.bi=null,i.aborted){const t=Rt().createError("layoutComplete race");throw t.associatedElement=this.element,Rt().expectedError(Cn,t),Sn()}if(this.Ui&&(this.Ui(),this.Ui=null),this.Ni=null,this.Mi=t?4:5,this.Vi=s,!t)return Promise.reject(s)}isLayoutPending(){return 4!=this.Mi&&5!=this.Mi}loadedOnce(){return this.element.R1()?this.element.whenLoaded():this.Li}isInViewport(){return this.$i&&this.Bi(),this.$i}setInViewport(t){this.$i=t}unlayout(){0!=this.Mi&&1!=this.Mi&&2!=this.Mi&&(this.bi&&(this.bi.abort(),this.bi=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.Mi=1,this.wi=0,this.Ni=null))}getTaskId(t){return this.debugid+"#"+t}pause(){this.element.pause()}pauseOnRemove(){this.element.pause()}resume(){this.element.resume()}unload(){this.element.unmount()}disconnect(){delete this.element.__AMP__RESOURCE,this.element.disconnect(!0)}},Nn="ready-scan",Dn="scheduler",Ln="250% 31.25%";function Un(t){return Vi(t,Dn,class{constructor(t){this.ji=t;const{win:i}=t;this.zi=new i.IntersectionObserver((t=>this.Gi(t)),{root:qt(i)?i.document:null,rootMargin:Ln}),this.qi=new Map,this.Wi=new Map,this.Ki=[],this.Yi=!1,t.whenReady().then((()=>this.Ji())),this.Qi=t.onVisibilityChanged((()=>this.Xi()))}dispose(){this.zi.disconnect(),this.Wi.clear(),this.Qi&&(this.Qi(),this.Qi=null)}scheduleAsap(t){this.Wi.set(t,{asap:!0,isIntersecting:!1}),this.Zi(t)}schedule(t){this.Wi.has(t)||(t.deferredMount()?(this.Wi.set(t,{asap:!1,isIntersecting:!1}),this.zi.observe(t),this.qi.size>0&&this.qi.forEach(((i,s)=>{Kt(s,t)&&i.observe(t)}))):this.Wi.set(t,{asap:!1,isIntersecting:!0}),this.Zi(t))}unschedule(t){this.Wi.has(t)&&(this.Wi.delete(t),this.zi.unobserve(t),this.qi.size>0&&this.qi.forEach((i=>{i.unobserve(t)})),this.Ki&&(M(this.Ki,t),this.Ji()))}setContainer(t,i){if(this.qi.has(t))return;const{win:s}=this.ji,e=new s.IntersectionObserver((t=>this.Gi(t)),{root:i||t,rootMargin:Ln});this.qi.set(t,e),this.Wi.forEach((({asap:i},s)=>{!i&&Kt(t,s)&&e.observe(s)}))}removeContainer(t){const i=this.qi.get(t);i&&(i.disconnect(),this.qi.delete(t))}ts(){if(this.ji.isReady()&&!this.Yi){this.Yi=!0;const{win:t}=this.ji;t.setTimeout((()=>{this.ji.signals().signal(Nn)}),50)}}Xi(){const t=this.ji.getVisibilityState();t!=Ts.VISIBLE&&t!=Ts.HIDDEN&&t!=Ts.PRERENDER&&t!=Ts.PREVIEW||this.Wi.forEach(((t,i)=>this.ss(i)))}Zi(t){const i=this.Ki;i?(i.includes(t)||i.push(t),this.Ji()):this.ss(t)}Ji(){const t=this.ji.isReady(),i=this.Ki;if(i)for(let s=0;s<i.length;s++){const e=i[s];(t||zt(e,this.ji.getRootNode()))&&(i.splice(s--,1),this.ss(e))}t&&(this.Ki=null,this.ts())}Gi(t){for(let i=0;i<t.length;i++){const{isIntersecting:s,target:e}=t[i],n=e,r=this.Wi.get(n);if(!r)continue;const h=s||r.isIntersecting;h!==r.isIntersecting&&this.Wi.set(n,{asap:r.asap,isIntersecting:h}),h&&this.ss(n)}}ss(t){const i=this.Ki,s=!(i&&i.includes(t)),{asap:e,isIntersecting:n}=this.Wi.get(t)||{asap:!1,isIntersecting:!1},r=this.ji.getVisibilityState();if(!s||!e&&!n||!(r==Ts.VISIBLE||r==Ts.HIDDEN||r==Ts.PRERENDER&&t.prerenderAllowed()||r==Ts.PREVIEW&&t.previewAllowed()))return;this.unschedule(t);const{win:h}=this.ji;(e||t.getBuildPriority()<=0?h.setTimeout:h.requestIdleCallback||h.setTimeout)((()=>t.mountInternal()))}}),xi(t,Dn)}var $n=class{constructor(){this.es=[]}peek(){const t=this.length;return t?this.es[t-1].item:null}enqueue(t,i){if(isNaN(i))throw new Error("Priority must not be NaN.");const s=this.ns(i);this.es.splice(s,0,{item:t,priority:i})}ns(t){let i=-1,s=0,e=this.length;for(;s<=e&&(i=Math.floor((s+e)/2),i!==this.length);)if(this.es[i].priority<t)s=i+1;else{if(!(i>0&&this.es[i-1].priority>=t))break;e=i-1}return i}forEach(t){let i=this.length;for(;i--;)t(this.es[i].item)}dequeue(){const t=this.es.pop();return t?t.item:null}get length(){return this.es.length}},Fn=/nochunking=1/.test(self.location.hash),Bn=e();function Hn(t){return Vi(t,"chunk",Kn),xi(t,"chunk")}function jn(t,i,s){if(Fn)return void Bn.then(i);const e=Hn(t.documentElement||t);e.runForStartup(i),s&&e.runForStartup((()=>{e.rs=!0}))}function zn(t,i,s){Fn?Bn.then(i):Hn(t).run(i,s)}var Gn="not_run",qn=class{constructor(t){this.state=Gn,this.hs=t}os(t){if("run"!=this.state){this.state="run";try{this.hs(t)}catch(t){throw this.us(t),t}}}ls(){return this.hs.displayName||this.hs.name}us(t){}cs(){return!1}ds(){return!1}},Wn=class extends qn{constructor(t,i,s){super(t),this.fs=s}us(t){Ze(self.document)}cs(){return this.ps()}ds(){return this.fs._s}ps(){return this.fs.ampdoc.isVisible()}},Kn=class{constructor(t){var i;this.ampdoc=t,this.i=t.win,this.As=new $n,this.gs=this.Ps.bind(this),this.vs=0,this.Es=!(!this.i.navigator.scheduling||!this.i.navigator.scheduling.isInputPending),this.Ts=!1,this.rs=this.i.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.i.addEventListener("message",(t=>{"amp-macro-task"==Ge(t)&&this.Ps(null)})),this._s=!1,(i=t,Ci(i,"viewer")).then((()=>{this._s=!0})),t.onVisibilityChanged((()=>{t.isVisible()&&this.Rs()}))}run(t,i){const s=new qn(t);this.Is(s,i)}runForStartup(t){const i=new Wn(t,this.i,this);this.Is(i,Number.POSITIVE_INFINITY)}Is(t,i){this.As.enqueue(t,i),this.Rs()}Ms(t){let i=this.As.peek();for(;i&&i.state!==Gn;)this.As.dequeue(),i=this.As.peek();return i&&t&&this.As.dequeue(),i}Ps(t){const i=this.Ms(!0);if(!i)return this.Ts=!1,this.vs=0,!1;let s;try{s=Date.now(),i.os(t)}finally{Bn.then().then().then().then().then().then().then().then().then((()=>{this.Ts=!1,this.vs+=Date.now()-s,this.Rs()}))}return!0}ys(t){if(this.rs&&(this.Es?this.i.navigator.scheduling.isInputPending():this.vs>5))return this.vs=0,void this.ws();Bn.then((()=>{this.gs(t)}))}Rs(){if(this.Ts)return;const t=this.Ms();return t?t.cs()?(this.Ts=!0,void this.ys(null)):void(t.ds()&&this.i.requestIdleCallback?function(t,i,s,e){const n=Date.now();t.requestIdleCallback((function i(s){if(s.timeRemaining()<15){const r=2e3-(Date.now()-n);r<=0||s.didTimeout?e(s):t.requestIdleCallback(i,{timeout:r})}else e(s)}),{timeout:2e3})}(this.i,0,0,this.gs):this.ws()):void 0}ws(){this.i.postMessage("amp-macro-task","*")}},Yn="activate",Qn=class{static R1(){return!1}static deferredMount(t){return!0}static prerenderAllowed(t){return!1}static previewAllowed(t){return this.prerenderAllowed(t)}static usesLoading(t){return!1}static createLoaderLogoCallback(t){return{}}static getBuildPriority(t){return 0}static getPreconnects(t){return null}static requiresShadowDom(){return!1}constructor(t){this.element=t,this.win=wt(t),this.actionMap_=null,this.defaultActionAlias_=null}signals(){return this.element.signals()}getDefaultActionAlias(){return this.defaultActionAlias_}getLayoutPriority(){return 0}updateLayoutPriority(t){this.element.getResources().updateLayoutPriority(this.element,t)}getLayout(){return this.element.getLayout()}getLayoutBox(){return this.element.getLayoutBox()}getLayoutSize(){return this.element.getLayoutSize()}getAmpDoc(){return this.element.getAmpDoc()}getVsync(){return gs(this.win)}getConsentPolicy(){let t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t}isLayoutSupported(t){return t==Qs}isAlwaysFixed(){return!1}upgradeCallback(){return null}buildCallback(){}preconnectCallback(t){}attachedCallback(){}detachedCallback(){}setAsContainer(t){this.element.setAsContainerInternal(t)}removeAsContainer(){this.element.removeAsContainerInternal()}isBuildRenderBlocking(){return!1}createPlaceholderCallback(){return null}renderOutsideViewport(){return"inabox"==at(this.win).runtime||3}idleRenderOutsideViewport(){return!1}ensureLoaded(){}setReadyState(t,i){this.element.setReadyStateInternal(t,i)}mountCallback(t){}unmountCallback(){}isRelayoutNeeded(){return!1}layoutCallback(){return e()}firstLayoutCompleted(){this.togglePlaceholder(!1)}pauseCallback(){}resumeCallback(){}unlayoutCallback(){return!1}unlayoutOnPause(){return!1}reconstructWhenReparented(){return!0}loadPromise(t){return We(t)}registerAction(t,i,s=2){Jn(this),this.actionMap_[t]={handler:i,minTrust:s}}registerDefaultAction(t,i="activate",s=2){yt(!this.defaultActionAlias_),this.registerAction(i,t,s),this.defaultActionAlias_=i}executeAction(t,i){let{method:s}=t;s===Yn&&(s=this.defaultActionAlias_||s),Jn(this);const e=this.actionMap_[s],{tagName:n}=this.element;bt(e,`Method not found: ${s} in ${n}`);const{handler:r,minTrust:h}=e;if(t.satisfiesTrust(h))return r(t)}forwardEvents(t,i){const s=(v(t)?t:[t]).map((t=>ze(i,t,(i=>{Wt(this.element,t,Ge(i)||{})}))));return()=>s.forEach((t=>t()))}getPlaceholder(){return this.element.getPlaceholder()}togglePlaceholder(t){this.element.togglePlaceholder(t)}getFallback(){return this.element.getFallback()}toggleFallback(t){this.element.toggleFallback(t)}toggleLoading(t,i=!1){this.element.toggleLoading(t,i)}getOverflowElement(){return this.element.getOverflowElement()}renderStarted(){this.element.renderStarted()}getViewport(){return vs(this.getAmpDoc())}getIntersectionElementLayoutBox(){return this.getLayoutBox()}collapse(){us(this.getAmpDoc()).collapseElement(this.element)}attemptCollapse(){return us(this.getAmpDoc()).attemptCollapse(this.element)}forceChangeHeight(t){us(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)}attemptChangeHeight(t){return us(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)}attemptChangeSize(t,i,s){return us(this.getAmpDoc()).requestChangeSize(this.element,t,i,void 0,s)}measureElement(t){return us(this.getAmpDoc()).measureElement(t)}mutateElement(t,i){return this.measureMutateElement(null,t,i)}measureMutateElement(t,i,s){return us(this.getAmpDoc()).measureMutateElement(s||this.element,t,i)}mutateElementSkipRemeasure(t){return us(this.getAmpDoc()).mutateElement(this.element,t,!0)}collapsedCallback(t){}expand(){us(this.getAmpDoc()).expandElement(this.element)}mutatedAttributesCallback(t){}onLayoutMeasure(){}user(){return It(this.element)}getApi(){return this}};function Jn(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var Xn,Zn=class extends Qn{},tr=Date.now(),ir={bubbles:!1},sr=()=>!0,er=[],nr=new Set;function rr(t,i){const s=function(t,i){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;const s=t.HTMLElement;return t.__AMP_BASE_CE_CLASS=class extends s{constructor(){super(),this.createdCallback()}createdCallback(){this.bs=!1,this.Vs=!1,this.Ss=null,this.xs=!1,this.Os=null,this.Cs=null,this.ks="upgrading",this.everAttached=!1,this.ji=null,this.Ei=null,this.Ns=Qs,this.wi=0,this.Ds=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.Ls=void 0,this.layoutScheduleTime=void 0;const i=this;let s=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.Us=s===Zn?null:s||null,this.Us||er.push(this),this.$s=null,this.Fs=1,this.Bs=0,this.Hs=void 0,this.js=void 0,this.ei=new Ms,this.Us&&this.ei.signal(Pe);const e=function(t,i){return qi(t=Ni(t),i)?$i(t,i):null}(t,"performance");this.zs=e&&e.isPerformanceTrackingOn(),this.Gs=null,i.__AMP_UPG_RES&&(i.__AMP_UPG_RES(i),delete i.__AMP_UPG_RES,delete i.__AMP_UPG_PRM)}get readyState(){return this.ks}signals(){return this.ei}getAmpDoc(){return yt(this.ji),this.ji}getResources(){return yt(this.Ei),this.Ei}isUpgraded(){return 2==this.Fs}whenUpgraded(){return this.ei.whenSignal(ge)}upgrade(t){this.js||1==this.Fs&&(this.Us=t,this.ei.signal(Pe),this.everAttached&&this.qs())}markUnresolved(){this.Us||this.classList.add("amp-unresolved","i-amphtml-unresolved")}getUpgradeDelayMs(){return this.Bs}Ws(i,s){this.$s=i,this.Bs=t.Date.now()-s,this.Fs=2,this.setReadyStateInternal(ai),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Ks(),this.dispatchCustomEventForTesting(me),this.R1()||this.getResources().upgraded(this),this.ei.signal(ge)}Ks(){this.Ns!=Qs&&this.$s&&!this.$s.isLayoutSupported(this.Ns)&&(bt(this.getAttribute("layout"),"The element did not specify a layout attribute. Check https://amp.dev/documentation/guides-and-tutorials/develop/style_and_layout/control_layout and the respective element documentation for details."),bt(!1,`Layout not supported: ${this.Ns}`))}getBuildPriority(){return this.Us?this.Us.getBuildPriority(this):3}getLayoutPriority(){return this.$s?this.$s.getLayoutPriority():3}getDefaultActionAlias(){return yt(this.isUpgraded()),this.$s.getDefaultActionAlias()}isBuilding(){return!!this.Ss}isBuilt(){return this.bs}whenBuilt(){return this.ei.whenSignal(ve)}buildInternal(){if(or(this),yt(this.Us),this.Ss)return this.Ss;this.setReadyStateInternal(ai);const t=this.Ys();this.Js();const i=t.then((()=>{const t=this.Qs(),i=t?null:this.Xs();if(t||i)return(this,Ki(this,"consentPolicyManager","amp-consent")).then((s=>!s||(t?s.whenPolicyUnblock(t):s.whenPurposesUnblock(i)))).then((t=>{if(!t)throw new Error(yn)}))})).then((()=>yt(this.$s).buildCallback()));return this.Ss=i.then((()=>{if(this.bs=!0,this.classList.add("i-amphtml-built"),this.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),this.ei.signal(ve),this.R1()?this.setReadyStateInternal(this.ks!=ai?this.ks:di):(this.setReadyStateInternal(fi),this.preconnect(!1)),this.Vs&&this._t(),this.Hs&&ps(wt(this)).delay(this.Zs.bind(this),1),!this.getPlaceholder()){const t=this.createPlaceholder();t&&this.appendChild(t)}}),(t=>{throw this.ei.rejectSignal(ve,t),this.R1()&&this.setReadyStateInternal(mi,t),xn(t)||Vn(t,this),t}))}build(){return this.Ss?this.Ss:this.ei.whenSignal(Pe).then((()=>(this.R1()&&Un(this.getAmpDoc()).scheduleAsap(this),this.whenBuilt())))}mountInternal(){if(this.Os)return this.Os;this.Cs=this.Cs||new AbortController;const{signal:t}=this.Cs;return this.Os=this.buildInternal().then((()=>{if(yt(this.R1()),t.aborted)return;this.setReadyStateInternal(this.ks!=di?this.ks:this.Us.usesLoading(this)?fi:di),this.xs=!0;const i=this.$s.mountCallback(t);return!!i&&i.then(sr)})).then((i=>{if(this.Cs=null,t.aborted)throw Sn();this.ei.signal(Ee),this.Us.usesLoading(this)&&!i||this.setReadyStateInternal(pi)})).catch((t=>{var i;throw this.Cs=null,(i=t)&&("string"==typeof i?i.startsWith(Rn):"string"==typeof i.message&&i.message.startsWith(Rn))?this.Os=null:(this.ei.rejectSignal(Ee,t),this.setReadyStateInternal(mi,t)),t}))}mount(){if(this.Os)return this.Os;this.Cs=this.Cs||new AbortController;const{signal:t}=this.Cs;return this.ei.whenSignal(Pe).then((()=>{if(!this.R1())return this.whenBuilt();if(t.aborted)throw Sn();return Un(this.getAmpDoc()).scheduleAsap(this),this.whenMounted()}))}unmount(){this.Vs&&this.pause(),this.R1()?(this.Cs&&(this.Cs.abort(),this.Cs=null),Un(this.getAmpDoc()).unschedule(this),this.xs&&this.$s.unmountCallback(),this.xs=!1,this.Os=null,this.ie(),this.Vs&&this.qs(!0)):this.re()}whenMounted(){return this.ei.whenSignal(Ee)}whenLoaded(){return this.ei.whenSignal(Me)}ensureLoaded(t){return this.mount().then((()=>{if(this.R1())return this.Us.usesLoading(this)&&this.$s.ensureLoaded(),this.whenLoaded();const i=this.he();return i.whenBuilt().then((()=>{if(4!=i.getState()&&((3!=i.getState()||i.isMeasureRequested())&&i.measure(),i.isDisplayed()))return this.getResources().scheduleLayoutOrPreload(i,!0,t,!0),this.whenLoaded()}))}))}setAsContainerInternal(t){Un(this.getAmpDoc()).setContainer(this,t)}removeAsContainerInternal(){Un(this.getAmpDoc()).removeContainer(this)}setReadyStateInternal(t,i){if(t!==this.ks&&(this.ks=t,this.R1()))switch(t){case fi:return this.ei.signal(Te),this.ei.reset(Re),this.ei.reset(Me),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(_e);case pi:return this.ei.signal(Te),this.ei.signal(Me),this.ei.reset(Re),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Wt(this,"load",null,ir),void this.dispatchCustomEventForTesting(Ae);case mi:return this.ei.rejectSignal(Me,i),this.toggleLoading(!1),void Wt(this,"error",i,ir)}}preconnect(t){yt(this.isUpgraded()),t?this.$s.preconnectCallback(t):jn(this.getAmpDoc(),(()=>{this.ownerDocument&&this.ownerDocument.defaultView&&this.$s.preconnectCallback(t)}))}R1(){return!!this.Us&&this.Us.R1()}deferredMount(){return!!this.Us&&this.Us.deferredMount(this)}isAlwaysFixed(){return!!this.$s&&this.$s.isAlwaysFixed()}updateLayoutBox(t,i=!1){this.isBuilt()&&this.onMeasure(i)}onMeasure(){yt(this.isBuilt());try{this.$s.onLayoutMeasure()}catch(t){Vn(t,this)}}Js(){var t;return void 0!==this.sizerElement||this.Ns!==Zs&&this.Ns!==ne||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null}oe(t){if(this.Ns!==Zs)if(this.Ns!==ne);else{const i=t.querySelector(".i-amphtml-intrinsic-sizer");if(!i)return;i.setAttribute("src","")}else Ss(t,"paddingTop","0")}ue(){const t=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),i=!!this.Gs,s=this.ownerDocument.defaultView;t!=i&&s&&(t?(this.Gs=new class{constructor(t,i){this.i=t,this.L=i,this.le={},this.ce=null}start(){this.ce=this.le,this.le={}}resolveMatchQuery(t){return"1"===this.ae(t,ye,"1")}resolveListQuery(t){return this.ae(t,be,"")}complete(){for(const t in this.ce)t in this.le||we(this.ce[t],this.L,!1);this.ce=null}dispose(){for(const t in this.le)we(this.le[t],this.L,!1);this.le={}}ae(t,i,s){if(!t.trim())return s;let e=this.le[t];return e||(D(this.ce),e=this.ce[t]),e||(e=i(this.i,t),we(e,this.L,!0)),this.le[t]=e,function(t){for(let i=0;i<t.length;i++){const{query:s,value:e}=t[i];if(!s||s.matches)return e}return""}(e)}}(s,(()=>this.de())),this.de()):this.fe())}fe(){this.Gs&&(this.Gs.dispose(),this.Gs=null)}de(){const t=this.Gs;if(!t)return;t.start();const i=this.getAttribute("media")||null,s=!i||t.resolveMatchQuery(i);this.classList.toggle("i-amphtml-hidden-by-media-query",!s);const e=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");e&&Ss(this,"width",t.resolveListQuery(e));const n=this.Ns===Zs?this.getAttribute("heights"):null;if(n){const i=this.Js();i&&Ss(i,"paddingTop",t.resolveListQuery(n))}t.complete(),this.he().requestMeasure()}applySize(t,i,s){const e=this.Js();e&&(this.sizerElement=null,this.oe(e),this.pe((()=>{e&&Bt(e)}))),void 0!==t&&Ss(this,"height",t,"px"),void 0!==i&&Ss(this,"width",i,"px"),s&&(null!=s.top&&Ss(this,"marginTop",s.top,"px"),null!=s.right&&Ss(this,"marginRight",s.right,"px"),null!=s.bottom&&Ss(this,"marginBottom",s.bottom,"px"),null!=s.left&&Ss(this,"marginLeft",s.left,"px")),this.me()&&this._e(),Wt(this,"amp:size-changed")}connectedCallback(){if(function(){if(void 0===Xn){const t=self.document.createElement("template");Xn="content"in t}return Xn}()||void 0!==this.js||(this.js=!!Ct(this,"template")),!this.js&&!this.Vs&&Ht(this)){if(this.Vs=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.ji){const t=wt(this),s=is(t).getAmpDoc(this);this.ji=s,i(s,this,this.Us)}if(this.Ei||(this.Ei=ds(this.ji)),this.getResources().add(this),this.everAttached){const t=this.reconstructWhenReparented();t&&this.ie(),this.isUpgraded()&&(t&&!this.R1()&&this.getResources().upgraded(this),this._t(),this.dispatchCustomEventForTesting(me)),this.Us&&this.R1()&&this.qs()}else{this.everAttached=!0;try{this.Ns=function(t){const i=t.getAttribute("i-amphtml-layout");if(i){const e=he(i);var s;return D(e),e!=Zs&&e!=ne||!t.firstElementChild?e==Qs&&Os(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(s=t.sizerElement)||void 0===s||s.setAttribute("slot","i-amphtml-svc")),e}const{height:e,layout:n,width:r}=Ce(t);if(t.classList.add(oe(n)),ue(n)&&t.classList.add("i-amphtml-layout-size-defined"),n==Qs)Os(t,!1);else if(n==Js)xs(t,{width:U(r),height:U(e)});else if(n==Xs)Ss(t,"height",U(e));else if(n==Zs){const i=t.ownerDocument.createElement("i-amphtml-sizer");i.setAttribute("slot","i-amphtml-svc");const s=ae(e),n=ae(r);$(s),$(n),xs(i,{paddingTop:s/n*100+"%"}),t.insertBefore(i,t.firstChild),t.sizerElement=i}else if(n==ne){const i=Ve(t)(xe),s=i.firstElementChild;L(s),s.setAttribute("src",`data:image/svg+xml;charset=utf-8,<svg height="${e}" width="${r}" xmlns="http://www.w3.org/2000/svg" version="1.1"/>`),t.insertBefore(i,t.firstChild),t.sizerElement=i}else n==ie||n==te||(n==se?(r&&Ss(t,"width",r),e&&Ss(t,"height",e)):n==ee&&(t.classList.add("i-amphtml-layout-awaiting-size"),r&&Ss(t,"width",r),Ss(t,"height",0)));return t.setAttribute("i-amphtml-layout",n),n}(this),this.ue()}catch(t){Vn(t,this)}this.Us?this.qs():(nr.has("*")||nr.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}}me(){return this.classList.contains("i-amphtml-layout-awaiting-size")}_e(){this.classList.remove("i-amphtml-layout-awaiting-size")}qs(t){if(this.R1()){if(!this.Os)if(Un(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Ss)this.setReadyStateInternal(this.Us&&this.Us.usesLoading(this)?fi:di);else if(this.setReadyStateInternal(ai),!t){const t=this.Us.getPreconnects(this);if(t&&t.length>0){const i=this.getAmpDoc();jn(i,(()=>{const{win:s}=i;if(!s)return;const e=as(s);t.forEach((t=>e.url(i,t,!1)))}))}}}else this.Ae()}Ae(){if(this.js)return;if(1!=this.Fs)return;const i=new(yt(this.Us))(this);this.Fs=4;const s=t.Date.now(),e=i.upgradeCallback();if(e){if("function"==typeof e.then)return e.then((t=>{this.Ws(t||i,s)})).catch((t=>{this.Fs=3,l(t)}));this.Ws(e,s)}else this.Ws(i,s)}disconnectedCallback(){this.disconnect(!1)}_t(){this.bs&&this.$s.attachedCallback()}disconnect(t){!this.js&&this.Vs&&(!t&&Ht(this)||(t&&this.classList.remove("i-amphtml-element"),this.Vs=!1,this.getResources().remove(this),this.$s&&this.$s.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.fe()))}dispatchCustomEventForTesting(t,i){}prerenderAllowed(){return!this.hasAttribute("noprerender")&&!!this.Us&&this.Us.prerenderAllowed(this)}previewAllowed(){return!!this.Us&&this.Us.previewAllowed(this)}isBuildRenderBlocking(){return!!this.$s&&this.$s.isBuildRenderBlocking()}createPlaceholder(){return this.$s?this.$s.createPlaceholderCallback():null}createLoaderLogo(){return this.Us?this.Us.createLoaderLogoCallback(this):{}}renderOutsideViewport(){return!!this.$s&&this.$s.renderOutsideViewport()}idleRenderOutsideViewport(){return!!this.$s&&this.$s.idleRenderOutsideViewport()}getLayoutBox(){return this.he().getLayoutBox()}getLayoutSize(){return this.he().getLayoutSize()}getOwner(){return this.he().getOwner()}getIntersectionChangeEntry(){const t=this.$s?this.$s.getIntersectionElementLayoutBox():this.getLayoutBox(),i=this.getOwner(),s=vs(this.getAmpDoc()).getRect();return function(t,i,s){const e=function(t){let i=-1/0,s=1/0,e=-1/0,n=1/0;for(let t=0;t<arguments.length;t++){const r=arguments[t];if(r&&(i=Math.max(i,r.left),s=Math.min(s,r.left+r.width),e=Math.max(e,r.top),n=Math.min(n,r.top+r.height),s<i||n<e))return null}return s==1/0?null:Jt(i,e,s-i,n-e)}(t,i,s)||Jt(0,0,0,0);return function(t,i,s,e){let n=t,r=i;return i&&(s=Zt(s,-i.left,-i.top),n=Zt(n,-i.left,-i.top),r=Zt(r,-i.left,-i.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-tr,rootBounds:r,boundingClientRect:n,intersectionRect:s,intersectionRatio:e}}(t,s,e,function(t,i){const s=t.width*t.height,e=i.width*i.height;return 0===e?0:s/e}(e,t))}(t,i&&i.getLayoutBox(),s)}he(){return this.getResources().getResourceForElement(this)}getResourceId(){return this.he().getId()}isRelayoutNeeded(){return!!this.$s&&this.$s.isRelayoutNeeded()}getImpl(t=!0){return(t?this.build():this.Ys()).then((()=>this.$s))}Ys(){return this.ei.whenSignal(Pe).then((()=>(this.Ae(),this.whenUpgraded())))}getApi(){return this.getImpl().then((t=>t.getApi()))}getLayout(){return this.Ns}layoutCallback(t){if(or(this),yt(this.isBuilt()),t.aborted)return Promise.reject(Sn());this.dispatchCustomEventForTesting(_e);const i=0==this.wi;this.ei.reset(Re),i&&this.ei.signal(Te),this.toggleLoading(!0);const s=r((()=>this.$s.layoutCallback()));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),s.then((()=>{if(t.aborted)throw Sn();i&&this.ei.signal(Me),this.setReadyStateInternal(pi),this.wi++,this.toggleLoading(!1),this.Ds||(this.$s.firstLayoutCompleted(),this.Ds=!0,this.dispatchCustomEventForTesting(Ae))}),(s=>{if(t.aborted)throw Sn();throw i&&this.ei.rejectSignal(Me,s),this.setReadyStateInternal(mi,s),this.wi++,this.toggleLoading(!1),s}))}pause(){this.isBuilt()&&(this.$s.pauseCallback(),!this.R1()&&this.$s.unlayoutOnPause()&&this.re())}resume(){this.isBuilt()&&this.$s.resumeCallback()}unlayoutCallback(){if(or(this),!this.isBuilt())return!1;this.ei.signal(Re);const t=this.$s.unlayoutCallback();return t&&this.ie(),this.dispatchCustomEventForTesting("amp:unload"),t}re(){this.he().unlayout(),this.Vs&&this.Ei&&this.Ei.schedulePass()}ie(){this.wi=0,this.Ds=!1,this.ei.reset(Ee),this.ei.reset(Ie),this.ei.reset(Te),this.ei.reset(Me),this.ei.reset("ini-load")}reconstructWhenReparented(){return!!this.$s&&this.$s.reconstructWhenReparented()}collapse(){this.$s&&this.$s.collapse()}collapsedCallback(t){this.$s&&this.$s.collapsedCallback(t)}expand(){this.$s&&this.$s.expand()}mutatedAttributesCallback(t){this.$s?this.$s.mutatedAttributesCallback(t):this.R1()&&Un(this).scheduleAsap(this)}enqueAction(t){or(this),this.isBuilt()?this.ge(t,!1):(void 0===this.Hs&&(this.Hs=[]),yt(this.Hs).push(t),this.build())}Zs(){if(!this.Hs)return;const t=yt(this.Hs);this.Hs=null,t.forEach((t=>{this.ge(t,!0)}))}ge(t,i){try{this.$s.executeAction(t,i)}catch(i){l("Action execution failed:",i,t.node.tagName,t.method)}}Qs(){let t=this.getAttribute("data-block-on-consent");if(null===t){if(!function(t){let i=t.getAmpDoc().getMetaByName("amp-consent-blocking");return!!i&&(i=i.toUpperCase().replace(/\s+/g,""),i.split(",").includes(t.tagName))}(this))return null;t="default",this.setAttribute("data-block-on-consent",t)}return""==t||"default"==t?yt(this.$s).getConsentPolicy():t}Xs(){var t;const i=this.getAttribute("data-block-on-consent-purposes")||null;return null==i||null===(t=i.replace(/\s+/g,""))||void 0===t?void 0:t.split(",")}getPlaceholder(){return kt(this,(t=>t.hasAttribute("placeholder")&&!hr(t)))}togglePlaceholder(t){if(or(this),t){const t=this.getPlaceholder();t&&t.classList.remove("amp-hidden")}else{const t=(this,xt("placeholder"),"> [placeholder]",this.querySelectorAll(Vt("> [placeholder]",":scope")));for(let i=0;i<t.length;i++)hr(t[i])||t[i].classList.add("amp-hidden")}}getFallback(){return Nt(this,"fallback")}toggleFallback(t){or(this);const i=this.he().getState();if((this.R1()||!t||0!=i&&1!=i&&2!=i)&&(this.classList.toggle("amp-notsupported",t),1==t)){const t=this.getFallback();t&&(s=this.getAmpDoc(),xi(s,"owners")).scheduleLayout(this,t)}var s}renderStarted(){this.ei.signal(Ie),this.togglePlaceholder(!1),this.toggleLoading(!1)}Pe(t){const i=this.wi>0||this.ei.get(Ie);return!(this.Ns==Qs||this.hasAttribute("noloading")||i&&!t||!function(t){const i=t.tagName.toUpperCase();return"AMP-AD"===(s=i)||"AMP-ANIM"===s||"AMP-EMBED"===s||"AMP-FACEBOOK"===s||"AMP-FACEBOOK-COMMENTS"===s||"AMP-FACEBOOK-PAGE"===s||"AMP-GOOGLE-DOCUMENT-EMBED"===s||"AMP-IFRAME"===s||"AMP-IMG"===s||"AMP-INSTAGRAM"===s||"AMP-LIST"===s||"AMP-PINTEREST"===s||"AMP-PLAYBUZZ"===s||"AMP-RENDER"===s||"AMP-TIKTOK"===s||"AMP-TWITTER"===s||function(t){return"AMP-VIDEO"!=t&&re.test(t)}(i);var s}(this)||Dt(this))}toggleLoading(t,i=!1){if(!this.ownerDocument||!this.ownerDocument.defaultView)return;const s=Oi(this.getAmpDoc(),"loadingIndicator");s&&((t=t&&this.Pe(i))?s.track(this):s.untrack(this))}getOverflowElement(){return void 0===this.Ls&&(this.Ls=Nt(this,"overflow"),this.Ls&&(this.Ls.hasAttribute("tabindex")||this.Ls.setAttribute("tabindex","0"),this.Ls.hasAttribute("role")||this.Ls.setAttribute("role","button"))),this.Ls}overflowCallback(t,i,s){this.getOverflowElement(),this.Ls?(this.Ls.classList.toggle("amp-visible",t),this.Ls.onclick=t?()=>{const t=us(this.getAmpDoc());t.forceChangeSize(this,i,s),t.mutateElement(this,(()=>{this.overflowCallback(!1,i,s)}))}:null):t&&this.warnOnMissingOverflow}pe(t,i,s=!1){this.ji?us(this.getAmpDoc()).mutateElement(i||this,t,s):t()}},t.__AMP_BASE_CE_CLASS}(t,i);class e extends s{adoptedCallback(){Object.getPrototypeOf(this)!==n&&Object.setPrototypeOf(this,n)}}const n=e.prototype;return e}function hr(t){return"placeholder"in t}function or(t){yt(!t.js)}function ur(t){nr.add(t||"*");for(const i of er)null!=t&&i.tagName.toLowerCase()!==t||i.markUnresolved()}var lr=new WeakMap;function cr(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function ar(t,i,s){const e=cr(t);if(e[i]){if(e[i]!=s){bt(e[i]==Zn,"%s is already registered. The script tag for %s is likely included twice in the page.",i,i),e[i]=s;for(let e=0;e<er.length;e++){const n=er[e];n.tagName.toLowerCase()==i&&n.ownerDocument.defaultView==t&&(dr(n,s),er.splice(e--,1))}}}else _r(t,i,s)}function dr(t,i){try{t.upgrade(i)}catch(i){Vn(i,t)}}function fr(t){(function(t){if(!t)return[];const i=t.querySelectorAll("script[custom-element],script[custom-template]"),s=[];for(let t=0;t<i.length;t++){const e=i[t],n=e.getAttribute("custom-element")||e.getAttribute("custom-template"),r=Mi(e.src);n&&r&&s.push({script:e,extensionId:n,extensionVersion:r.extensionVersion})}return s})(t.getHeadNode()).forEach((({extensionId:i,extensionVersion:s,script:e})=>{t.declareExtension(i,s),e.addEventListener("error",(()=>ur(i))),pr(t.win,i)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function pr(t,i){cr(t)[i]||_r(t,i,Zn)}function mr(t,i,s){_r(i,s,cr(t)[s]||Zn)}function _r(t,i,s){cr(t)[i]=s;const e=rr(t,Ar);t.customElements.define(i,e)}function Ar(t,i,s){lr.has(t)||(lr.set(t,!0),fr(t));const e=i.localName;s||t.declaresExtension(e)||hs(t.win).installExtensionForDoc(t,e,"0.1")}var Pr="amp-img",gr=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],vr=class t extends Qn{static R1(){return!1}static prerenderAllowed(){return!0}static usesLoading(){return!0}static getPreconnects(t){const i=t.getAttribute("src");if(i)return[i];const s=t.getAttribute("srcset");if(s){const t=/\S+/.exec(s);if(t)return[t[0]]}return null}constructor(t){super(t),this.ve=!0,this.Ee=null,this.Te=null,this.Re=null,this.Ie=0}mutatedAttributesCallback(i){if(this.Ee){const s=gr.filter((t=>void 0!==i[t]));i.src&&!i.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),s.push("srcset"),this.user().warn(Pr,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),fe(s,this.element,this.Ee,!0),this.propagateDataset(this.Ee),t.R1()&&!this.Ee.complete&&this.setReadyState(fi)}}preconnectCallback(t){const i=this.element.getAttribute("src");if(i)as(this.win).url(this.getAmpDoc(),i,t);else{const i=this.element.getAttribute("srcset");if(!i)return;const s=/\S+/.exec(i);s&&as(this.win).url(this.getAmpDoc(),s[0],t)}}isLayoutSupported(t){return ue(t)}Me(){if(this.Ee)return this.Ee;this.ve=!this.element.hasAttribute("fallback");const t=Yt(this.element);var i,s;return t&&(this.Ee=Ot(this.element,"> img:not([placeholder])")),this.Ee=this.Ee||new Image,this.Ee.setAttribute("decoding","async"),this.element.id&&this.Ee.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(Pr,"Setting role=img on amp-img elements breaks screen readers please just set alt or ARIA attributes, they will be correctly propagated for the underlying <img> element.")),this.ye(!0),fe(gr,this.element,this.Ee),this.propagateDataset(this.Ee),de(this.Ee,!0),i=this.element,s=this.Ee,i.hasAttribute("object-fit")&&Ss(s,"object-fit",i.getAttribute("object-fit")),i.hasAttribute("object-position")&&Ss(s,"object-position",i.getAttribute("object-position")),t||this.element.appendChild(this.Ee),this.Ee}ye(t){if(!this.Ee)return;if(this.element.hasAttribute("i-amphtml-ssr"))return;if(this.element.hasAttribute("sizes")||this.Ee.hasAttribute("sizes"))return;const i=this.element.getAttribute("srcset");if(!i||/[0-9]+x(?:,|$)/.test(i))return;const{width:s}=this.element.getLayoutSize();if(!this.we(s))return;const e=this.getViewport().getWidth(),n=`(max-width: ${e}px) ${s}px, `;let r=s+"px";if(this.getLayout()!==Js){const t=Math.round(100*s/e);r=Math.max(t,100)+"vw"}const h=n+r;t?this.Ee.setAttribute("sizes",h):this.mutateElement((()=>{this.Ee.setAttribute("sizes",h)})),this.Ie=s}we(t){return!this.Ee.hasAttribute("sizes")||t>this.Ie}reconstructWhenReparented(){return!1}mountCallback(){const t=!!this.Ee,i=this.Me();t||(ze(i,"load",(()=>{this.setReadyState(pi),this.firstLayoutCompleted(),this.be()})),ze(i,"error",(t=>{this.setReadyState(mi,t),this.Ve()}))),i.complete?(this.setReadyState(pi),this.firstLayoutCompleted(),this.be()):this.setReadyState(fi)}unmountCallback(){const t=this.Ee;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Bt(t),this.Ee=null)}ensureLoaded(){this.Ee.loading="eager"}layoutCallback(){this.Me();const t=this.Ee;this.Te=ze(t,"load",(()=>this.be())),this.Re=ze(t,"error",(()=>this.Ve()));const{width:i}=this.element.getLayoutSize();return i<=0?e():this.loadPromise(t)}unlayoutCallback(){if(t.R1())return;this.Re&&(this.Re(),this.Re=null),this.Te&&(this.Te(),this.Te=null);const i=this.Ee;return i&&!i.complete&&(i.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Bt(i),this.Ee=null),!0}firstLayoutCompleted(){const t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?Vs(t,{"opacity":0}):this.togglePlaceholder(!1)}be(){!this.ve&&this.Ee.classList.contains("i-amphtml-ghost")&&(this.Ee.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))}Ve(){this.ve&&(this.Ee.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.ve=!1)}propagateDataset(t){for(const i in t.dataset)i in this.element.dataset||delete t.dataset[i];for(const i in this.element.dataset)i.startsWith("ampBind")&&"ampBind"!==i||t.dataset[i]!==this.element.dataset[i]&&(t.dataset[i]=this.element.dataset[i])}},Er=class extends Qn{static prerenderAllowed(){return!0}isLayoutSupported(t){return t==te||ue(t)}buildCallback(){!function(t){if(Yt(t))return;const i=function(t){var i;return he(null!==(i=t.getAttribute("layout"))&&void 0!==i?i:"")||Ce(t).layout}(t);if(i==te)return;const s=t.ownerDocument.createElement("div");de(s),function(t){return function(t,i){const s=[];for(let i=t.firstChild;i;i=i.nextSibling)!Dt(i)&&s.push(i);return s}(t)}(t).forEach((t=>{s.appendChild(t)})),t.appendChild(s)}(this.element)}};function Tr(t,i,s=!1,e,n){const r=new($s.getImage(t));s&&(r.referrerPolicy="no-referrer");let h=0;var o;return null!=e&&((null===(o=t.document.featurePolicy)||void 0===o?void 0:o.allowedFeatures().includes("attribution-reporting"))?(h=6,e=Ir(t,h,n)(e),r.attributionSrc=e):h=5),i=Ir(t,h,n)(i),r.src=i,r}function Ir(t,i,s){const e={"ATTRIBUTION_REPORTING_STATUS":()=>i},n=ms(s||t.document),r={"ATTRIBUTION_REPORTING_STATUS":!0};return t=>n.expandUrlSync(t,e,r)}var Mr="amp-pixel",Rr=class extends Qn{constructor(t){super(t),this.Se=null}isLayoutSupported(t){return!0}buildCallback(){this.element.setAttribute("aria-hidden","true"),this.xe=this.element.getAttribute("referrerpolicy"),this.xe&&bt("no-referrer"==this.xe,`${Mr}: invalid "referrerpolicy" value "${this.xe}". Only "no-referrer" is supported`),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")||this.getAmpDoc().whenFirstVisible().then(this.Oe.bind(this))}Oe(){if(this.Se)return Rt().error(Mr,"duplicate pixel"),this.Se;this.Se=ps(this.win).promise(1).then((()=>{const t=this.element.getAttribute("src");if(t)return ms(this.element).expandUrlAsync(this.Ce(t)).then((t=>{if(this.win)return function(t,i,s,e,n){return s&&"no-referrer"!==s&&It().error("pixel","Unsupported referrerPolicy: %s",s),"no-referrer"===s?function(t,i,s,e){if("referrerPolicy"in Image.prototype)return Tr(t,i,!0,s,e);{const s=(n={"src":"about:blank","style":"display:none"},function(t,i){for(const s in i)t.setAttribute(s,i[s]);return t}(t.document.createElement("iframe"),n));return s.onload=()=>{Tr(s.contentWindow,i,void 0,void 0,e)},t.document.body.appendChild(s),s}var n}(t,i,e,n):Tr(t,i,!1,e,n)}(this.win,t,this.xe,this.element.getAttribute("attributionsrc"),this.element)}))}))}Ce(t){return bt(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t}},yr=class{constructor(t,i,s){this.ke=ps(t),this.Ne=i,this.De=s||0,this.Le=-1,this.Ue=0,this.$e=!1,this.Fe=()=>{this.Be()}}isPending(){return-1!=this.Le}schedule(t){let i=t||this.De;this.$e&&i<10&&(i=10);const s=Date.now()+i;return(!this.isPending()||s-this.Ue<-10)&&(this.cancel(),this.Ue=s,this.Le=this.ke.delay(this.Fe,i),!0)}Be(){this.Le=-1,this.Ue=0,this.$e=!0,this.Ne(),this.$e=!1}cancel(){this.isPending()&&(this.ke.cancel(this.Le),this.Le=-1)}};function br(t,i){const s=i.documentElement;return t.some((t=>s.hasAttribute(t)))}function wr(t){return br(["⚡4email","amp4email"],t)}function Vr(t){return br(["⚡","amp"],t)}var Sr="Action",xr="__AMP_ACTION_MAP__"+Math.random(),Or="__AMP_ACTION_QUEUE__",Cr="__AMP_ACTION_HANDLER__",kr={"form":["submit","clear"]},Nr=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Dr={"button":!0,"checkbox":!0,"link":!0,"listbox":!0,"menuitem":!0,"menuitemcheckbox":!0,"menuitemradio":!0,"option":!0,"radio":!0,"scrollbar":!0,"slider":!0,"spinbutton":!0,"switch":!0,"tab":!0,"treeitem":!0},Lr=class{constructor(t,i,s,e,n,r,h,o="?",u=null,l=Math.random()){this.node=t,this.method=i,this.args=s,this.source=e,this.caller=n,this.event=r,this.trust=h,this.actionEventType=o,this.tagOrTarget=u||t.tagName,this.sequenceId=l}satisfiesTrust(t){if(!w(this.trust))return Rt().error(Sr,`Invalid trust for '${this.method}': ${this.trust}`),!1;if(this.trust<t){const t=function(t){switch(t){case 1:return"low";case 3:return"high";default:return D(2===t),"default"}}(this.trust);return It().error(Sr,`"${this.actionEventType}" event with "${t}" trust is not allowed to invoke "${this.tagOrTarget.toLowerCase()}.${this.method}".`),!1}return!0}};function Ur(t){return"amp-"===t.substring(0,4)}var $r=class{constructor(t){this.detail=null,function(t,i){const s=i||p();for(const i in t){const e=t[i];s[i]="function"==typeof e?Fr:t[i]}}(t,this)}};function Fr(){yt(null)}function Br(t,i){const s=jr.bind(null,t,i),e=zr.bind(null,t,i);let n=null;const r=new Wr(t);let h,o;do{if(h=r.next(),h.type==Gr.EOF||h.type==Gr.SEPARATOR&&";"==h.value);else if(h.type==Gr.LITERAL||h.type==Gr.ID){const i=h.value;e(r.next(),[Gr.SEPARATOR],":");const u=[];do{const n=e(r.next(),[Gr.LITERAL,Gr.ID]).value;let h=Yn,l=null;o=r.peek(),o.type==Gr.SEPARATOR&&"."==o.value&&(r.next(),h=e(r.next(),[Gr.LITERAL,Gr.ID]).value||h,o=r.peek(),o.type==Gr.SEPARATOR&&"("==o.value&&(r.next(),l=Hr(r,e,s))),u.push({event:i,target:n,method:h,args:l,str:t}),o=r.peek()}while(o.type==Gr.SEPARATOR&&","==o.value&&r.next());n||(n=p()),n[i]=u}else s(!1,`; unexpected token [${h.value||""}]`)}while(h.type!=Gr.EOF);return n}function Hr(t,i,s){let e,n=t.peek(),r=null;if(n.type==Gr.OBJECT){r=p();const{value:s}=t.next();r.__AMP_OBJECT_STRING__=s,i(t.next(),[Gr.SEPARATOR],")")}else do{e=t.next();const{type:o,value:u}=e;if(o!=Gr.SEPARATOR||","!=u&&")"!=u)if(o==Gr.LITERAL||o==Gr.ID){i(t.next(),[Gr.SEPARATOR],"="),e=i(t.next(!0),[Gr.LITERAL,Gr.ID]);const o=[e];if(e.type==Gr.ID)for(n=t.peek();n.type==Gr.SEPARATOR&&"."==n.value;n=t.peek())t.next(),e=i(t.next(!1),[Gr.ID]),o.push(e);const l=0==(h=o).length?null:1==h.length?h[0].value:{expression:h.map((t=>t.value)).join(".")};r||(r=p()),r[u]=l,n=t.peek(),s(n.type==Gr.SEPARATOR&&(","==n.value||")"==n.value),"Expected either [,] or [)]")}else s(!1,`; unexpected token [${e.value||""}]`)}while(e.type!=Gr.SEPARATOR||")"!=e.value);var h;return r}function jr(t,i,s,e){return bt(s,"Invalid action definition in %s: [%s] %s",i,t,e||"")}function zr(t,i,s,e,n){return void 0!==n?jr(t,i,e.includes(s.type)&&s.value==n,`; expected [${n}]`):jr(t,i,e.includes(s.type)),s}var Gr={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},qr=" \t\n\r\f\v \u2028\u2029",Wr=class{constructor(t){this.He=t,this.je=-1}next(t){const i=this.ze(t||!1);return this.je=i.index,i}peek(t){return this.ze(t||!1)}ze(t){let i=this.je+1;if(i>=this.He.length)return{type:Gr.EOF,index:this.je};let s=this.He.charAt(i);if(-1!=qr.indexOf(s)){for(i++;i<this.He.length&&-1!=qr.indexOf(this.He.charAt(i));i++);if(i>=this.He.length)return{type:Gr.EOF,index:i};s=this.He.charAt(i)}if(t&&(Kr(s)||"."==s&&i+1<this.He.length&&Kr(this.He[i+1]))){let t="."==s,e=i+1;for(;e<this.He.length;e++){const i=this.He.charAt(e);if("."!=i){if(!Kr(i))break}else t=!0}const n=this.He.substring(i,e),r=t?parseFloat(n):parseInt(n,10);return i=e-1,{type:Gr.LITERAL,value:r,index:i}}if(-1!=";:.()=,|!".indexOf(s))return{type:Gr.SEPARATOR,value:s,index:i};if(-1!="\"'".indexOf(s)){let t=-1;for(let e=i+1;e<this.He.length;e++)if(this.He.charAt(e)==s){t=e;break}if(-1==t)return{type:Gr.INVALID,index:i};const e=this.He.substring(i+1,t);return i=t,{type:Gr.LITERAL,value:e,index:i}}if("{"==s){let t=1,s=-1;for(let e=i+1;e<this.He.length;e++){const i=this.He[e];if("{"==i?t++:"}"==i&&t--,t<=0){s=e;break}}if(-1==s)return{type:Gr.INVALID,index:i};const e=this.He.substring(i,s+1);return i=s,{type:Gr.OBJECT,value:e,index:i}}let e=i+1;for(;e<this.He.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this.He.charAt(e));e++);const n=this.He.substring(i,e);if(i=e-1,t&&("true"==n||"false"==n)){const t="true"==n;return{type:Gr.LITERAL,value:t,index:i}}return Kr(n.charAt(0))?{type:Gr.LITERAL,value:n,index:i}:{type:Gr.ID,value:n,index:i}}};function Kr(t){return t>="0"&&t<="9"}function Yr(t){return!!t&&"function"==typeof t.getFormData}var Qr=["GET","POST"],Jr=[v,f];function Xr(t,i){const s=g({},i);if(Yr(i.body)){const t=i.body;s.headers["Content-Type"]="multipart/form-data;charset=utf-8",s.body=function(t){const i=[];for(let s=t.next();!s.done;s=t.next())i.push(s.value);return i}(t.entries())}return{input:t,init:s}}function Zr(t,i){const s=t||{},e=s.credentials;return D(void 0===e||"include"==e||"omit"==e),s.method=void 0===(n=s.method)?"GET":(n=n.toUpperCase(),D(Qr.includes(n)),n),s.headers=s.headers||{},i&&(s.headers.Accept=i),D(null!==s.body),s;var n}function th(t){return new Promise((i=>{if(t.ok)return i(t);const{status:s}=t,e=It().createError(`HTTP error ${s}`);throw e.retriable=function(t){return 415==t||t>=500&&t<600}(s),e.response=t,e}))}var ih=class{constructor(t){this.win=t;const i=is(t);this.Ge=i.isSingleDoc()?i.getSingleDoc():null}qe(t,i){return function(t,i,s,n){if(!i)return e();const r=n.prerenderSafe?e():i.whenFirstVisible(),h=Ps(i),o=_n(s),u=h.hasCapability("xhrInterceptor"),l=n.bypassInterceptorForDev&&!1;return o||!u||l?r:i.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?r.then((()=>h.isTrustedViewer())).then((i=>{if(!i&&!Le(t,"untrusted-xhr-interception"))return;const e={"originalRequest":Xr(s,n)};return h.sendMessageAwaitResponse("xhr",e).then((t=>function(t,i){if(F(f(t),"Object expected: %s",t),"document"!=i)return new Response(t.body,t.init);const s=p(),e={status:200,statusText:"OK",getResponseHeader:t=>s[String(t).toLowerCase()]||null};if(t.init){const i=t.init;v(i.headers)&&i.headers.forEach((t=>{const i=t[0],e=t[1];s[String(i).toLowerCase()]=String(e)})),i.status&&(e.status=parseInt(i.status,10)),i.statusText&&(e.statusText=String(i.statusText))}return new Response(t.body?String(t.body):"",e)}(t,n.responseType)))})):r}(this.win,this.Ge,t,i).then((t=>{if(t)return t;if(Yr(i.body)){const t=i.body;i.body=t.getFormData()}return this.win.fetch.apply(null,arguments)}))}We(t,i={}){return t=function(t,i,s){return D("string"==typeof i),!1!==s.ampCors&&(i=In(t,i)),i}(this.win,t,i),i=function(t,i,s){s=s||{};const e=function(t){return t.origin||on(t.location.href).origin}(t);return e==on(i).origin&&(s.headers=s.headers||{},s.headers["AMP-Same-Origin"]="true"),s}(this.win,t,i),this.qe(t,i).then((t=>t),(i=>{const s=on(t).origin;throw It().createExpectedError("XHR",`Failed fetching (${s}/...):`,i&&i.message)}))}fetchJson(t,i){return this.fetch(t,function(t){const i=Zr(t,"application/json");if("POST"==i.method&&!Yr(i.body)){D(Jr.some((t=>t(i.body)))),i.headers["Content-Type"]=i.headers["Content-Type"]||"text/plain;charset=utf-8";const t=i.headers["Content-Type"];i.body="application/x-www-form-urlencoded"===t?dn(i.body):JSON.stringify(i.body)}return i}(i))}fetchText(t,i){return this.fetch(t,Zr(i,"text/plain"))}xssiJson(t,i){return i?t.text().then((t=>t.startsWith(i)?B(t.slice(i.length)):B(t))):t.json()}fetch(t,i){const s=Zr(i);return this.We(t,s).then((t=>th(t)))}sendSignal(t,i){return this.We(t,i).then((t=>th(t)))}getCorsUrl(t,i){return In(t,i)}},sh=class extends ih{constructor(t){super(t),this.Ke=p()}fetch(t,i){const s=i&&i.headers&&i.headers.Accept||"",e=!i||!i.method||"GET"===i.method,n=this.Ye(t,s),r=!!this.Ke[n];if(e&&r)return this.Ke[n].then((t=>t.clone()));const h=super.fetch(t,i);return e&&(this.Ke[n]=h.then((t=>(delete this.Ke[n],t.clone())),(t=>{throw delete this.Ke[n],t}))),h}Ye(t,i){return mn(Tn(t,En(this.win.location)))+i}},eh={"+":"-","/":"_","=":"."};function nh(t){const i=function(t){const i=new Array(t.length);for(let s=0;s<t.length;s++)i[s]=String.fromCharCode(t[s]);return i.join("")}(t);return btoa(i).replace(/[+/=]/g,(t=>eh[t]))}var rh="AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc",hh="CacheCidApi",oh="-test-amp-cookie-tmp";function uh(t,i){const s=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!s)return null;const e=s.split(";");for(let t=0;t<e.length;t++){const s=e[t].trim(),n=s.indexOf("=");if(-1!=n&&K(s.substring(0,n).trim())==i){const t=s.substring(n+1).trim();return K(t,t)}}return null}function lh(t,i,s,e,n={}){let r;!function(t,i,s){if(i.allowOnProxyOrigin)return void bt(!i.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");bt(!_n(t.location.href),`Should never attempt to set cookie on proxy origin: ${s}`);const e=on(t.location.href).hostname.toLowerCase(),n=on(et).hostname.toLowerCase();bt(!(e==n||R(e,"."+n)),"Should never attempt to set cookie on proxy origin. (in depth check): "+s)}(t,n,i),n.domain?r=n.domain:n.highestAvailableDomain&&(r=function(t){const i=t.document.head&&t.document.head.querySelector("meta[name='amp-cookie-scope']");if(i){const s=i.getAttribute("content")||"",e=En(t.location.href);return R(e,"."+s)?s:e.split("://")[1]}if(!_n(t.location.href)){const i=t.location.hostname.split(".");let s=i[i.length-1];const e=function(t){let i=oh,s=0;for(;uh(t,i);)i=oh+s++;return i}(t);for(let n=i.length-2;n>=0;n--)if(s=i[n]+"."+s,ch(t,e,"delete",Date.now()+1e3,s),"delete"==uh(t,e))return ch(t,e,"delete",Date.now()-1e3,s),s}return null}(t)),ch(t,i,s,e,r,n.sameSite,n.secure)}function ch(t,i,s,e,n,r,h){"ampproject.org"==n&&(s="delete",e=0);const o=encodeURIComponent(i)+"="+encodeURIComponent(s)+"; path=/"+(n?"; domain="+n:"")+"; expires="+new Date(e).toUTCString()+function(t,i){return i?`; SameSite=${i}`:""}(0,r)+(h?"; Secure":"");try{t.document.cookie=o}catch(t){}}var ah="GoogleCidApi",dh="AMP_TOKEN",fh="$RETRIEVING",ph="$OPT_OUT",mh="$NOT_FOUND",_h=3e4,Ah=31536e6,Ph=31536e6,gh=/^[a-zA-Z0-9-_.]+$/,vh="amp-cid-optout",Eh={"googleanalytics":"AMP_ECID_GOOGLE"},Th={"googleanalytics":"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function Ih(t,i,s){lh(t,i,s,Date.now()+Ph,{highestAvailableDomain:!0})}function Mh(t,i,s){fs(t).then((t=>{if(!t.isViewerStorage()){const e=Rh(i);t.setNonBoolean(e,s)}}))}function Rh(t){return"amp-cid:"+t}function yh(t,i,s){const{ampdoc:e}=t,{win:n}=e,{disableBackup:r,scope:h}=i,o=i.cookieName||h;return function(t,i){const{ampdoc:s}=t,{win:e}=s,{disableBackup:n,scope:r}=i,h=i.cookieName||r,o=uh(e,h);return o?Promise.resolve(o):n?Promise.resolve(null):fs(s).then((t=>{const i=Rh(h);return t.get(i,Ph)})).then((t=>t&&"string"==typeof t?t:null))}(t,i).then((u=>{if(!u&&!i.createCookieIfNotPresent)return Promise.resolve(null);if(u)return/^amp-/.test(u)&&(Ih(n,o,u),r||Mh(e,o,u)),Promise.resolve(u);if(t.Je[h])return t.Je[h];const l=Sh(n).then((t=>"amp-"+t));return Promise.all([l,s]).then((t=>{const i=t[0];uh(n,o)||(Ih(n,o,i),r||Mh(e,o,i))})),t.Je[h]=l}))}function bh(t,i){const s=Ps(t);return s.isTrustedViewer().then((t=>{if(t)return Rt().expectedError("CID","Viewer does not provide cap=cid"),s.sendMessageAwaitResponse("cid",i).then((t=>t&&!function(t,i){try{return B(t)}catch(t){return null}}(t)?(Rt().expectedError("CID","invalid cid format"),JSON.stringify({"time":Date.now(),"cid":t})):t))}))}function wh(t){return JSON.stringify({"time":Date.now(),"cid":t})}function Vh(t){return j(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}function Sh(t){const i=Vh(t);if("string"==typeof i)return ns(t).sha384Base64(i);{const t=i;return r((()=>nh(t).replace(/\.+$/,"")))}}var xh="Crypto";var Oh=["prefetch","preload","preconnect","dns-prefetch"],Ch={attributes:!0,attributeFilter:["hidden"],subtree:!0};function kh(t){try{return t.state}catch(t){return null}}var Nh="History",Dh="AMP.History";function Lh(t){const i=Ps(t);let s;return i.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?s=new class{constructor(t,i){this.win=t,this.Qe=i,this.Xe=0,this.Ze=null,this.En=this.Qe.onMessage("historyPopped",(t=>this.Tn(t)))}replaceStateForTarget(t){yt("#"==t[0]),this.win.location.replace(t)}cleanup(){this.En()}setOnStateUpdated(t){this.Ze=t}Rn(t,i,s){return this.In(t)?t:i}In(t){return!!t&&void 0!==t.stackIndex}push(t){const i=g({"stackIndex":this.Xe+1},t||{}),s="pushHistory";return this.Qe.sendMessageAwaitResponse(s,i).then((t=>{const e=i,n=this.Rn(t,e,s);return this.Mn(n),n}))}pop(t){if(t>this.Xe)return this.get();const i={"stackIndex":this.Xe},s="popHistory";return this.Qe.sendMessageAwaitResponse(s,i).then((t=>{const i={"stackIndex":this.Xe-1},e=this.Rn(t,i,s);return this.Mn(e),e}))}replace(t){if(t&&t.url){if(!this.Qe.hasCapability("fullReplaceHistory")){const t={"stackIndex":this.Xe};return Promise.resolve(t)}const i=t.url.replace(/#.*/,"");t.url=i}const i=g({"stackIndex":this.Xe},t||{}),s="replaceHistory";return this.Qe.sendMessageAwaitResponse(s,i,!0).then((t=>{const e=i,n=this.Rn(t,e,s);return this.Mn(n),n}))}get(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.Xe,title:""})}Tn(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.In(t)&&this.Mn(t)}Mn(t){const{stackIndex:i}=t;this.Xe!=i&&(this.Xe=i,this.Ze&&this.Ze(t))}getFragment(){return this.Qe.hasCapability("fragment")?this.Qe.sendMessageAwaitResponse("getFragment",void 0,!0).then((t=>{if(!t)return"";let i=t;return"#"==i[0]&&(i=i.substr(1)),i})):Promise.resolve("")}updateFragment(t){return this.Qe.hasCapability("fragment")?this.Qe.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):e()}}(t.win,i):(wi(t.win,"global-history-binding",class{constructor(t){this.win=t,this.ke=ps(t);const{history:i}=this.win;this.yn=i.length-1;const s=kh(i);let e,n;s&&void 0!==s[Dh]&&(this.yn=Math.min(s[Dh],this.yn)),this.Xe=this.yn,this.bn,this.Ze=null,this.Vn="state"in i,this.Sn=this.xn(this.Xe),i.pushState&&i.replaceState?(this.On=i.originalPushState||i.pushState.bind(i),this.Cn=i.originalReplaceState||i.replaceState.bind(i),e=(t,i,s)=>{this.Sn=t;try{this.On(t,i,s||null)}catch(t){Rt().error(Nh,"pushState failed: "+t.message)}},n=(t,i,s)=>{this.Sn=t;try{void 0!==s?this.Cn(t,i,s):this.Cn(t,i)}catch(t){Rt().error(Nh,"replaceState failed: "+t.message)}},i.originalPushState||(i.originalPushState=this.On),i.originalReplaceState||(i.originalReplaceState=this.Cn)):(e=(t,i,s)=>{this.Sn=t},n=(t,i,s)=>{this.Sn=t}),this.kn=e,this.Nn=n;try{this.Nn(this.xn(this.Xe,!0))}catch(t){Rt().error(Nh,"Initial replaceState failed: "+t.message)}i.pushState=this.Dn.bind(this),i.replaceState=this.Ln.bind(this),this.Un=t=>{t.state,this.$n()},this.win.addEventListener("popstate",this.Un)}cleanup(){this.On&&(this.win.history.pushState=this.On),this.Cn&&(this.win.history.replaceState=this.Cn),this.win.removeEventListener("popstate",this.Un)}xn(t,i){const s=p(i?this.Fn():void 0);return s[Dh]=t,s}setOnStateUpdated(t){this.Ze=t}push(t){return this.Bn((()=>{const i=this.Hn(this.Fn(),t||{});return this.Dn(i,void 0,i.fragment?"#"+i.fragment:void 0),r((()=>this.Hn(i,{stackIndex:this.Xe})))}))}pop(t){return t=Math.max(t,this.yn),this.Bn((()=>this.jn(this.Xe-t+1))).then((t=>this.Hn(this.Fn(),{stackIndex:t})))}replace(t={}){return this.Bn((()=>{const i=this.Hn(this.Fn(),t||{}),s=(i.url||"").replace(/#.*/,""),e=i.fragment?"#"+i.fragment:"";return this.Ln(i,i.title,s||e?s+e:void 0),r((()=>this.Hn(i,{stackIndex:this.Xe})))}))}get(){return r((()=>this.Hn(this.Fn(),{stackIndex:this.Xe})))}backTo(t){return t=Math.max(t,this.yn),this.Bn((()=>this.jn(this.Xe-t)))}$n(){let t=this.Fn();const i=t?t[Dh]:void 0;let s=this.Xe;const e=this.bn;this.bn=void 0,s>this.win.history.length-2&&(s=this.win.history.length-2,this.Mn(this.Hn(t,{stackIndex:s}))),null==i?s+=1:s=i<this.win.history.length?i:this.win.history.length-1,t||(t={}),t[Dh]=s,this.Nn(t,void 0,void 0),s!=this.Xe&&this.Mn(this.Hn(t,{stackIndex:s})),s<this.yn&&(this.yn=s),e&&e.resolve()}Fn(){return this.Vn?kh(this.win.history):this.Sn}zn(){yt(!this.bn)}Bn(t){return this.bn?this.bn.promise.then(t,t):t()}Gn(){this.zn();const t=new n,{reject:i,resolve:s}=t,e=this.ke.timeoutPromise(500,t.promise);return this.bn={promise:e,resolve:s,reject:i},e}jn(t){if(this.zn(),t<=0)return Promise.resolve(this.Xe);this.Sn=this.xn(this.Xe-t);const i=this.Gn();return this.win.history.go(-t),i.then((()=>Promise.resolve(this.Xe)))}Dn(t,i,s){this.zn(),t||(t={});let e=this.Xe+1;t[Dh]=e,this.kn(t,i,s),e!=this.win.history.length-1&&(e=this.win.history.length-1,t[Dh]=e,this.Nn(t));const n=this.Hn(t,{stackIndex:e});this.Mn(n)}replaceStateForTarget(t){yt("#"==t[0]),this.Bn((()=>{this.win.removeEventListener("popstate",this.Un);try{this.win.location.replace(t)}finally{this.win.addEventListener("popstate",this.Un)}return this.Ln(),e()}))}Ln(t,i,s){this.zn(),t||(t={});const e=Math.min(this.Xe,this.win.history.length-1);t[Dh]=e,this.Nn(t,i,s);const n=this.Hn(t,{stackIndex:e});this.Mn(n)}Mn(t){this.zn(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.Xe!=t.stackIndex&&(this.Xe=t.stackIndex,this.Ze&&this.Ze(t))}getFragment(){let{hash:t}=this.win.location;return t=t.substr(1),Promise.resolve(t)}updateFragment(t){return this.replace({fragment:t})}Hn(t,i){const s=g(g({},t&&t.data||{}),i.data||{});return g(g(g({},t||{}),i),{},{data:s})}}),s=Si(t.win,"global-history-binding")),new class{constructor(t,i){this.ji=t,this.ke=ps(t.win),this.qn=i,this.Xe=0,this.Wn=[],this.es=[],this.qn.setOnStateUpdated(this.Ze.bind(this))}cleanup(){this.qn.cleanup()}push(t,i){return this.Kn((()=>this.qn.push(i).then((i=>(this.Ze(i),t&&(this.Wn[i.stackIndex]=t),i.stackIndex)))),"push")}pop(t){return this.Kn((()=>this.qn.pop(t).then((t=>{this.Ze(t)}))),"pop")}replace(t){return this.Kn((()=>this.qn.replace(t)),"replace")}get(){return this.Kn((()=>this.qn.get()),"get")}goBack(t){return this.Kn((()=>this.Xe<=0&&!t?e():this.qn.pop(this.Xe).then((t=>{this.Ze(t)}))),"goBack")}replaceStateForTarget(t){yt("#"==t[0]);const i=this.ji.win.location.hash;return this.push((()=>{this.ji.win.location.replace(i||"#")})).then((()=>{this.qn.replaceStateForTarget(t)}))}getFragment(){return this.qn.getFragment()}updateFragment(t){return"#"==t[0]&&(t=t.substr(1)),this.qn.updateFragment(t)}Ze(t){this.Xe=t.stackIndex,this.Yn(t)}Yn(t){if(this.Xe>=this.Wn.length-1)return;const i=[];for(let t=this.Wn.length-1;t>this.Xe;t--)this.Wn[t]&&(i.push(this.Wn[t]),this.Wn[t]=void 0);if(this.Wn.splice(this.Xe+1),i.length>0)for(let s=0;s<i.length;s++)this.ke.delay((()=>i[s](t)),1)}Kn(t,i){const s=new n,{promise:e,reject:r,resolve:h}=s,o=new Error("history trace for "+i+": ");return this.es.push({callback:t,resolve:h,reject:r,trace:o}),1==this.es.length&&this.Jn(),e}Jn(){if(0==this.es.length)return;const t=this.es[0];let i;try{i=t.callback()}catch(t){i=Promise.reject(t)}i.then((i=>{t.resolve(i)}),(i=>{Rt().error(Nh,"failed to execute a task:",i),t.trace&&(t.trace.message+=i,Rt().error(Nh,t.trace)),t.reject(i)})).then((()=>{this.es.splice(0,1),this.Jn()}))}}(t,s)}var Uh=['<div slot=i-amphtml-svc class="i-amphtml-svc i-amphtml-loading-container i-amphtml-fill-content amp-hidden"></div>'],$h=class{constructor(t,i){this.win=t,this.Qn=i,this.Xn=[],this.Zn=new Is,this.tr=t=>{b(t.target)&&this.ir(t.target)},this.sr=i=>{ps(t).delay((()=>{this.win.document.activeElement&&this.ir(this.win.document.activeElement)}),500)},this.win.document.addEventListener("focus",this.tr,!0),this.win.addEventListener("blur",this.sr)}er(){this.win.document.removeEventListener("focus",this.tr,!0),this.win.removeEventListener("blur",this.sr)}onFocus(t){return this.Zn.add(t)}ir(t){const i=Date.now();0==this.Xn.length||this.Xn[this.Xn.length-1].el!=t?this.Xn.push({el:t,time:i}):this.Xn[this.Xn.length-1].time=i,this.purgeBefore(i-this.Qn),this.Zn.fire(t)}getLast(){return 0==this.Xn.length?null:this.Xn[this.Xn.length-1].el}purgeBefore(t){let i=this.Xn.length-1;for(let s=0;s<this.Xn.length;s++)if(this.Xn[s].time>=t){i=s-1;break}-1!=i&&this.Xn.splice(0,i+1)}hasDescendantsOf(t){this.win.document.activeElement&&this.ir(this.win.document.activeElement);for(let i=0;i<this.Xn.length;i++)if(t.contains(this.Xn[i].el))return!0;return!1}},Fh=null,Bh=["gclid","gclsrc"],Hh=[/^t.co$/];function jh(){return bt(Fh,"E#19457 trackImpressionPromise")}function zh(t,i,s,e){let n;try{n=t.open(i,s,e)}catch(t){Rt().error("DOM","Failed to open url on target: ",s,t)}var r,h;return!n&&"_top"!=s&&("number"!=typeof h&&(h=0),h+"noopener".length>(r=e||"").length||-1===r.indexOf("noopener",h))&&(n=t.open(i,"_top")),n}var Gh="navigation",qh="click",Wh="contextmenu",Kh=["_top","_blank"],Yh="data-a4a-orig-href";function Qh(t,i){const s=Ct(i.target,"A");if(!s||!s.href)return;const e=s.getAttribute(Yh)||s.getAttribute("href");if(!e)return;const n={"CLICK_X":()=>i.pageX,"CLICK_Y":()=>i.pageY},r=ms(s).expandUrlSync(e,n,{"CLICK_X":!0,"CLICK_Y":!0});r!=e&&(s.getAttribute(Yh)||s.setAttribute(Yh,e),s.setAttribute("href",r))}function Jh(t){return`${t.origin}${t.pathname}${t.search}`}function Xh(t){return v(t)?t:[t]}function Zh(t){wi(t,"platform",class{constructor(t){this.Yh=t.navigator,this.i=t}isAndroid(){return/Android/i.test(this.Yh.userAgent)}isIos(){return/iPhone|iPad|iPod/i.test(this.Yh.userAgent)}isSafari(){return/Safari/i.test(this.Yh.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()}isChrome(){return/Chrome|CriOS/i.test(this.Yh.userAgent)&&!this.isEdge()&&!this.isOpera()}isFirefox(){return/Firefox|FxiOS/i.test(this.Yh.userAgent)&&!this.isEdge()}isOpera(){return/OPR\/|Opera|OPiOS/i.test(this.Yh.userAgent)}isEdge(){return/Edge/i.test(this.Yh.userAgent)}isWebKit(){return/WebKit/i.test(this.Yh.userAgent)&&!this.isEdge()}isWindows(){return/Windows/i.test(this.Yh.userAgent)}isStandalone(){return this.isIos()&&this.Yh.standalone||this.isChrome()&&this.i.matchMedia("(display-mode: standalone)").matches}isBot(){return/bot/i.test(this.Yh.userAgent)}getMajorVersion(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.Jh(/\sVersion\/(\d+)/,1):this.isChrome()?this.Jh(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.Jh(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.Jh(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.Jh(/Edge\/(\d+)/,1):0}Jh(t,i){if(!this.Yh.userAgent)return 0;const s=this.Yh.userAgent.match(t);return!s||i>=s.length?0:parseInt(s[i],10)}getIosVersionString(){var t,i,s;return this.isIos()&&(null===(t=this.Yh.userAgent)||void 0===t||null===(i=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===i||null===(s=i[1])||void 0===s?void 0:s.replace(/_/g,"."))||""}getIosMajorVersion(){const t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])}})}var to=class{constructor(){this.As=[],this.nr={},this.rr=0,this.hr=0}getSize(){return this.As.length}getLastEnqueueTime(){return this.rr}getLastDequeueTime(){return this.hr}getTaskById(t){return this.nr[t]||null}enqueue(t){yt(!this.nr[t.id]),this.As.push(t),this.nr[t.id]=t,this.rr=Date.now()}dequeue(t){const i=this.nr[t.id];return!!this.removeAtIndex(t,this.As.indexOf(i))&&(this.hr=Date.now(),!0)}peek(t){let i=1e6,s=null;for(let e=0;e<this.As.length;e++){const n=this.As[e],r=t(n);r<i&&(i=r,s=n)}return s}forEach(t){this.As.forEach(t)}removeAtIndex(t,i){const s=this.nr[t.id];return!(!s||this.As[i]!=s||(this.As.splice(i,1),delete this.nr[t.id],0))}purge(t){let i=this.As.length;for(;i--;)t(this.As[i])&&this.removeAtIndex(this.As[i],i)}};function io(t){return t.queryCommandSupported("copy")}function so(t){return t.hasAttribute("hidden")}var eo="STANDARD-ACTIONS",no=/^i-amphtml-/;var ro="Storage",ho=class{constructor(t){this.Qe=t}loadBlob(t){return this.Qe.sendMessageAwaitResponse("loadStore",{"origin":t}).then((t=>t.blob))}saveBlob(t,i){return this.Qe.sendMessageAwaitResponse("saveStore",{"origin":t,"blob":i}).catch((t=>{throw Rt().createExpectedError(ro,"Failed to save store: ",t)}))}};function oo(t){Vi(t,"storage",(function(){const i=Ps(t),s=parseInt(i.getParam("storage"),10)?new ho(i):new class{constructor(t){if(this.win=t,this.ur=this.lr(),!this.ur){const t=new Error("localStorage not supported.");Rt().expectedError(ro,t)}}lr(){try{return"localStorage"in this.win&&(this.win.localStorage.getItem("test"),!0)}catch(t){return!1}}cr(t){return`amp-store:${t}`}loadBlob(t){return new Promise((i=>{this.ur?i(this.win.localStorage.getItem(this.cr(t))):i(null)}))}saveBlob(t,i){return new Promise((s=>{this.ur?(this.win.localStorage.setItem(this.cr(t),i),s()):s()}))}}(t.win);return new class{constructor(t,i,s){this.ampdoc=t,this.Qe=i,this.qn=s,this.dr=s instanceof ho,this.h=En(this.ampdoc.win.location),this.pr=null}ar(){return this.mr(),this}get(t,i){return this._r().then((s=>s.get(t,i)))}set(t,i,s){return yt("boolean"==typeof i),this.setNonBoolean(t,i,s)}setNonBoolean(t,i,s){return this.Ar((e=>e.set(t,i,s)))}remove(t){return this.Ar((i=>i.remove(t)))}isViewerStorage(){return this.dr}_r(){return this.pr||(this.pr=this.qn.loadBlob(this.h).then((t=>t?B(atob(t)):{})).catch((t=>(Rt().expectedError(ro,"Failed to load store: ",t),{}))).then((t=>new class{constructor(t,i){this.obj=_(t),this.gr=i||8,this.Pr=this.obj.vv||Object.create(null),this.obj.vv||(this.obj.vv=this.Pr)}get(t,i){const s=this.Pr[t],e=s?s.t:void 0,n=!i||null==e||e+i>Date.now();return s&&n?s.v:void 0}set(t,i,s){if(yt("__proto__"!=t&&"prototype"!=t),void 0!==this.Pr[t]){const e=this.Pr[t];let n=Date.now();s&&(n=e.t),e.v=i,e.t=n}else this.Pr[t]={"v":i,"t":Date.now()};const e=Object.keys(this.Pr);if(e.length>this.gr){let t=1/0,i=null;for(let s=0;s<e.length;s++){const n=this.Pr[e[s]];n.t<t&&(i=e[s],t=n.t)}i&&delete this.Pr[i]}}remove(t){delete this.Pr[t]}}(t)))),this.pr}Ar(t){return this._r().then((i=>{t(i);const s=btoa(JSON.stringify(i.obj));return this.qn.saveBlob(this.h,s)})).then(this.vr.bind(this))}mr(){this.Qe.onBroadcast((t=>{"amp-storage-reset"==t.type&&t.origin==this.h&&(this.pr=null)}))}vr(){this.Qe.broadcast({"type":"amp-storage-reset","origin":this.h})}}(t,i,s).ar()}),!0)}var uo="__AMP_IMPL_",lo=()=>{};function co(t){wi(t,"timer",class{constructor(t){this.win=t,this.Er=this.win.Promise.resolve(),this.Tr=0,this.Rr={},this.Ir=Date.now()}timeSinceStart(){return Date.now()-this.Ir}delay(t,i){if(!i){const i="p"+this.Tr++;return this.Er.then((()=>{this.Rr[i]?delete this.Rr[i]:t()})).catch(Vn),i}return this.win.setTimeout((()=>{try{t()}catch(t){throw Vn(t),t}}),i)}cancel(t){"string"!=typeof t?this.win.clearTimeout(t):this.Rr[t]=!0}promise(t){return new this.win.Promise((i=>{if(-1==this.delay(i,t))throw new Error("Failed to schedule timer.")}))}timeoutPromise(t,i,s){let e;const n=new this.win.Promise(((i,n)=>{if(e=this.delay((()=>{n(It().createError(s||"timeout"))}),t),-1==e)throw new Error("Failed to schedule timer.")}));if(!i)return n;const r=()=>{this.cancel(e)};return i.then(r,r),this.win.Promise.race([n,i])}poll(t,i){return new this.win.Promise((s=>{const e=this.win.setInterval((()=>{i()&&(this.win.clearInterval(e),s())}),t)}))}})}var ao="Expander",fo=class{constructor(t,i,s,e,n,r){this.Mr=t,this.yr=i,this.wr=s,this.br=e,this.Vr=n,this.Sr=!r}expand(t){if(!t.length)return this.br?t:Promise.resolve(t);const i=this.Mr.getExpr(this.yr,this.Vr),s=this.Or(t,i);return s.length?this.Cr(t,s):this.br?t:Promise.resolve(t)}getMacroNames(t){const i=this.Mr.getExpr(this.yr,this.Vr);return t.match(i)||[]}Or(t,i){const s=[];return t.replace(i,((t,i,e)=>{const{length:n}=t,r={start:e,stop:n+e-1,name:i,length:n};s.push(r)})),s}Cr(t,i){const s=[];let e=0,n=0,r=i[n],h=0,o=!1;const u=c=>{let a="",d=[];const f=[];for(;e<t.length&&n<=i.length;){const l=a.trim();if(r&&e===r.start){let o;l&&d.push(h?(p=a).trimStart?p.trimStart():(p+"_").trim().slice(0,-1):a),o=this.yr&&m(this.yr,r.name)?{name:r.name,prioritized:this.yr[r.name],encode:c}:g(g({},this.Mr.get(r.name)),{},{name:r.name,encode:c}),e=r.stop+1,r=i[++n],"("===t[e]?(e++,h++,s.push(o),d.push(u(!1))):d.push(this.kr(o)),a=""}else if("`"===t[e])o?(o=!1,a.length&&d.push(a)):(o=!0,l&&d.push(l)),a="",e++;else if(h&&","===t[e]&&!o)l&&d.push(l),f.push(d),d=[],","===t[e+1]&&(f.push([""]),e++),a="",e++;else{if(h&&")"===t[e]&&!o){e++,h--;const t=s.pop();return l&&d.push(l),f.push(d),this.kr(t,f)}a+=t[e],e++}e===t.length&&a.length&&d.push(a)}var p;return this.br?d.join(""):Promise.all(d).then((t=>t.join(""))).catch((t=>(l(t),"")))};return u(this.Sr)}kr(t,i){const{encode:s,name:e}=t;let n;if(null!=t.prioritized?n=t.prioritized:this.br&&null!=t.sync?n=t.sync:this.br?(It().error(ao,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.br){const t=this.Nr(n,e,i);return s?encodeURIComponent(t):t}return this.Dr(n,e,i).then((t=>s?encodeURIComponent(t):t))}Dr(t,i,s){let e;try{if("function"==typeof t){const i=t;e=s?this.Lr(s).then((t=>i.apply(null,t))):r(i)}else e=Promise.resolve(t);return e.then((t=>{let e;return this.Ur(i,t,s),e=null==t?"":t,e})).catch((t=>(l(t),this.Ur(i,"",s),Promise.resolve(""))))}catch(t){return l(t),this.Ur(i,"",s),Promise.resolve("")}}Lr(t){return Promise.all(t.map((t=>Promise.all(t).then((t=>t.join(""))))))}Nr(t,i,s){try{let e,n=t;return"function"==typeof t&&(n=t.apply(null,this.$r(s))),n&&"function"==typeof n.then?(It().error(ao,"ignoring async macro resolution"),e=""):"string"==typeof n||"number"==typeof n||"boolean"==typeof n?(this.Ur(i,n,s),e=n.toString()):(this.Ur(i,"",s),e=""),e}catch(t){return l(t),this.Ur(i,"",s),""}}$r(t){return t?t.map((t=>t.join(""))):t}Ur(t,i,s){if(!this.wr)return;let e="";s&&(e=`(${s.filter((t=>""!==t)).join(",")})`),this.wr[`${t}${e}`]=i||""}},po={"navigationStart":1,"redirectStart":1,"redirectEnd":1,"fetchStart":1,"domainLookupStart":1,"domainLookupEnd":1,"connectStart":1,"secureConnectionStart":1,"connectEnd":1,"requestStart":1,"responseStart":1,"responseEnd":1,"domLoading":2,"domInteractive":2,"domContentLoaded":2,"domComplete":2,"loadEventStart":3,"loadEventEnd":4};function mo(t,i,s){const n=po[i]||3,r=s?po[s]||3:n,h=Math.max(n,r);let o;if(1===h)o=e();else if(2===h)o=Ei(t.document);else if(3===h)o=We(t);else if(4===h){const i=ps(t);o=We(t).then((()=>i.promise(1)))}return yt(o),o.then((()=>_o(t,i,s)))}function _o(t,i,s){const e=t.performance&&t.performance.timing;if(!e||0==e.navigationStart)return;const n=void 0===s?e[i]:e[s]-e[i];return!w(n)||n<0?void 0:n}function Ao(t,i){const s=t.performance&&t.performance.navigation;if(s&&void 0!==s[i])return s[i]}var Po="UrlReplacements";function go(t){return()=>(new Date)[t]()}function vo(t,i){return()=>t[i]}function Eo(t,i){return i?(bt("ISOCountry"===i,"The value passed to AMP_GEO() is not valid name:"+i),t&&t[i]||"unknown"):(null==t?void 0:t.matchedISOCountryGroups.join(","))||"unknown"}var To="Viewer",Io=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i;function Mo(t){let i;return t instanceof Error?((t=h(t)).message="No messaging channel: "+t.message,i=t):i=new Error("No messaging channel: "+t),i.message=C(i.message),i}var Ro=class t{static solveYValueFromXValue(i,s,e,n,r,h,o,u,l){return t.Fr(t.Br(i,s,n,h,u),e,r,o,l)}static Br(i,s,e,n,r){const h=1e-6;let o=(i-s)/(r-s);if(o<=0)return 0;if(o>=1)return 1;let u=0,l=1,c=0;for(let a=0;a<8;a++){c=t.Hr(o,s,e,n,r);const a=(t.Hr(o+h,s,e,n,r)-c)/h;if(Math.abs(c-i)<h)return o;if(Math.abs(a)<h)break;c<i?u=o:l=o,o-=(c-i)/a}for(let a=0;Math.abs(c-i)>h&&a<8;a++)c<i?(u=o,o=(o+l)/2):(l=o,o=(o+u)/2),c=t.Hr(o,s,e,n,r);return o}static Hr(i,s,e,n,r){if(0==i)return s;if(1==i)return r;let h=t.jr(s,e,i),o=t.jr(e,n,i);const u=t.jr(n,r,i);return h=t.jr(h,o,i),o=t.jr(o,u,i),t.jr(h,o,i)}static Fr(i,s,e,n,r){if(0==i)return s;if(1==i)return r;let h=t.jr(s,e,i),o=t.jr(e,n,i);const u=t.jr(n,r,i);return h=t.jr(h,o,i),o=t.jr(o,u,i),t.jr(h,o,i)}static jr(t,i,s){return t+s*(i-t)}},yo={LINEAR:t=>t,EASE:t=>Ro.solveYValueFromXValue(t,0,0,.25,.1,.25,1,1,1),EASE_IN:t=>Ro.solveYValueFromXValue(t,0,0,.42,0,1,1,1,1),EASE_OUT:t=>Ro.solveYValueFromXValue(t,0,0,0,0,.58,1,1,1),EASE_IN_OUT:t=>Ro.solveYValueFromXValue(t,0,0,.42,0,.58,1,1,1)},bo={"linear":yo.LINEAR,"ease":yo.EASE,"ease-in":yo.EASE_IN,"ease-out":yo.EASE_OUT,"ease-in-out":yo.EASE_IN_OUT};function wo(t){if(!t)return null;if(y(t)){if(-1!=t.indexOf("cubic-bezier")){const r=t.match(/cubic-bezier\((.+)\)/);if(r){const t=r[1].split(",").map(parseFloat);if(4==t.length){for(let i=0;i<4;i++)if(isNaN(t[i]))return null;return i=t[0],s=t[1],e=t[2],n=t[3],t=>Ro.solveYValueFromXValue(t,0,0,i,s,e,n,1,1)}}return null}return bo[t]}var i,s,e,n;return t}var Vo="Animation",So=function(){},xo=class t{static animate(i,s,e,n){return new t(i).setCurve(n).add(0,s,1).start(e)}constructor(t,i){this.zr=t,this.Gr=i||gs(self),this.qr=null,this.Wr=[]}setCurve(t){return t&&(this.qr=wo(t)),this}add(t,i,s,e){return this.Wr.push({delay:t,func:i,duration:s,curve:wo(e)}),this}start(t){return new Oo(this.Gr,this.zr,this.Wr,this.qr,t)}},Oo=class{constructor(t,i,s,e,r){this.Gr=t,this.zr=i,this.Wr=[];for(let t=0;t<s.length;t++){const i=s[t];this.Wr.push({delay:i.delay,func:i.func,duration:i.duration,curve:i.curve||e,started:!1,completed:!1})}this.Kr=r,this.Ir=Date.now(),this.$e=!0,this.Mi={};const h=new n;this.Yr=h.promise,this.ae=h.resolve,this.Jr=h.reject,this.Qr=this.Gr.createAnimTask(this.zr,{mutate:this.Xr.bind(this)}),this.Gr.canAnimate(this.zr)?this.Qr(this.Mi):this.Zr(!1,0)}then(t,i){return t||i?this.Yr.then(t,i):this.Yr}thenAlways(t){const i=t||So;return this.then(i,i)}halt(t){this.Zr(!1,t||0)}Zr(t,i){if(this.$e){if(this.$e=!1,0!=i){this.Wr.length>1&&this.Wr.sort(((t,i)=>t.delay+t.duration-(i.delay+i.duration)));try{if(i>0)for(let t=0;t<this.Wr.length;t++)this.Wr[t].func(1,!0);else for(let t=this.Wr.length-1;t>=0;t--)this.Wr[t].func(0,!1)}catch(i){Rt().error(Vo,"completion failed: "+i,i),t=!1}}t?this.ae():this.Jr()}}Xr(t){if(!this.$e)return;const i=Date.now(),s=Math.min((i-this.Ir)/this.Kr,1);for(let t=0;t<this.Wr.length;t++){const i=this.Wr[t];!i.started&&s>=i.delay&&(i.started=!0)}for(let t=0;t<this.Wr.length;t++){const i=this.Wr[t];i.started&&!i.completed&&this.th(i,s)}1==s?this.Zr(!0,0):this.Gr.canAnimate(this.zr)?this.Qr(this.Mi):this.Zr(!1,0)}th(t,i){let s,e;if(t.duration>0){if(s=Math.min((i-t.delay)/t.duration,1),e=s,t.curve&&1!=e)try{e=t.curve(s)}catch(t){return Rt().error(Vo,"step curve failed: "+t,t),void this.Zr(!1,0)}}else s=1,e=1;1==s&&(t.completed=!0);try{t.func(e,t.completed)}catch(t){return Rt().error(Vo,"step mutate failed: "+t,t),void this.Zr(!1,0)}}};function Co(t,i){let s;for(let e=i.lastElementChild;e;e=e.previousElementSibling)if(e.getBoundingClientRect().height>0){const i=ks(t,e);if("static"==i.position||"relative"==i.position){s=i;break}}return s?parseInt(s.marginBottom,10):0}function ko(t,i,s){return function(t,i,s){const e=parseInt(ks(t,i)[s],10);return isNaN(e)?0:e}(t,i===t.document.body?t.document.documentElement:i,s)}function No(t,i){return ko(t,i,"scrollPaddingTop")}function Do(t){const i=Ps(t),{win:s}=t;let n;return n=t.isSingleDoc()&&function(t,i){return cs(t).isIos()&&qt(t)&&i.isEmbedded()&&!i.hasCapability("iframeScroll")?Lo.NATURAL_IOS_EMBED:Lo.NATURAL}(s,i)==Lo.NATURAL_IOS_EMBED?new class{constructor(t){this.win=t,this.Gr=gs(t);const i=this.win.document,{documentElement:s}=i,e=s.className;s.classList.add("i-amphtml-ios-embed");const n=i.createElement("html");this.ih=n,n.id="i-amphtml-wrapper",n.className=e,this.sh=new Is,this.eh=new Is,this.nh=this.rh.bind(this),this.hh=()=>this.eh.fire(),this.oh=0,this.uh=!1,$t(i,this.lh.bind(this)),vi(i).then((()=>{s.classList.add("i-amphtml-ios-overscroll")}))}ensureReadyForElements(){this.lh()}lh(){if(this.uh)return;this.uh=!0;const t=this.win.document,i=t.body;t.documentElement.appendChild(this.ih),this.ih.appendChild(i),Object.defineProperty(t,"body",{get:()=>i}),this.rh()}connect(){this.win.addEventListener("resize",this.hh),this.ih.addEventListener("scroll",this.nh)}disconnect(){this.win.removeEventListener("resize",this.hh),this.ih.removeEventListener("scroll",this.nh)}getBorderTop(){return 1}requiresFixedLayerTransfer(){return!Le(this.win,"ios-fixed-no-transfer")||parseFloat(cs(this.win).getIosVersionString())<12.2}overrideGlobalScrollTo(){return!0}supportsPositionFixed(){return!0}onScroll(t){this.sh.add(t)}onResize(t){this.eh.add(t)}updatePaddingTop(t){this.oh=t,Vs(this.ih,{"padding-top":Cs(t)})}hideViewerHeader(t,i){t||this.updatePaddingTop(0)}showViewerHeader(t,i){t||this.updatePaddingTop(i)}disableScroll(){this.ih.classList.add("i-amphtml-scroll-disabled")}resetScroll(){this.ih.classList.remove("i-amphtml-scroll-disabled")}updateLightboxMode(t){return e()}getSize(){return{width:this.win.innerWidth,height:this.win.innerHeight}}getScrollTop(){return this.ih.scrollTop}getScrollLeft(){return 0}getScrollWidth(){return this.ih.scrollWidth}getScrollHeight(){return this.ih.scrollHeight}getContentHeight(){const t=this.win.document.body,{height:i}=t.getBoundingClientRect(),s=Co(this.win,t),e=ks(this.win,t);return parseInt(e.marginTop,10)+this.oh+i+s+parseInt(e.marginBottom,10)}contentHeightChanged(){}getLayoutRect(t,i,s){const e=t.getBoundingClientRect(),n=null!=s?s:this.getScrollTop(),r=null!=i?i:this.getScrollLeft();return Jt(Math.round(e.left+r),Math.round(e.top+n),Math.round(e.width),Math.round(e.height))}getRootClientRectAsync(){return Promise.resolve(null)}setScrollTop(t){this.ih.scrollTop=t||1}rh(t){0==this.ih.scrollTop&&(this.ih.scrollTop=1,t&&t.preventDefault()),t&&this.sh.fire()}getScrollingElement(){return this.ih}getScrollingElementScrollsLikeViewport(){return!1}}(s):new class{constructor(t){this.ampdoc=t,this.win=t.win,this.ah=cs(this.win),this.sh=new Is,this.eh=new Is,this.nh=this.dh.bind(this),this.hh=()=>this.eh.fire()}dh(){this.sh.fire()}connect(){this.win.addEventListener("scroll",this.nh),this.win.addEventListener("resize",this.hh)}disconnect(){this.win.removeEventListener("scroll",this.nh),this.win.removeEventListener("resize",this.hh)}ensureReadyForElements(){}getBorderTop(){return 0}requiresFixedLayerTransfer(){return!1}overrideGlobalScrollTo(){return!1}supportsPositionFixed(){return!0}onScroll(t){this.sh.add(t)}onResize(t){this.eh.add(t)}updatePaddingTop(t){Vs(this.win.document.documentElement,{"padding-top":Cs(t)})}hideViewerHeader(t,i){t||this.updatePaddingTop(0)}showViewerHeader(t,i){t||this.updatePaddingTop(i)}disableScroll(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")}resetScroll(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")}updateLightboxMode(t){return e()}getSize(){const t=this.win.innerWidth,i=this.win.innerHeight;if(t&&i)return{width:t,height:i};const s=this.win.document.documentElement;return{width:s.clientWidth,height:s.clientHeight}}getScrollTop(){const t=this.getScrollingElement().scrollTop||this.win.pageYOffset,{host:i}=this.ampdoc.getRootNode();return i?t-i.offsetTop:t}getScrollLeft(){return 0}getScrollWidth(){return this.getScrollingElement().scrollWidth}getScrollHeight(){return this.getScrollingElement().scrollHeight}getContentHeight(){const t=this.getScrollingElement(),i=t.getBoundingClientRect(),s=i.top+this.getScrollTop(),e=cs(this.win).isSafari()?Co(this.win,t):0,n=ks(this.win,t);return s+parseInt(n.marginTop,10)+i.height+e+parseInt(n.marginBottom,10)}contentHeightChanged(){}getLayoutRect(t,i,s){const e=t.getBoundingClientRect(),n=null!=s?s:this.getScrollTop(),r=null!=i?i:this.getScrollLeft();return Jt(Math.round(e.left+r),Math.round(e.top+n),Math.round(e.width),Math.round(e.height))}getRootClientRectAsync(){return Promise.resolve(null)}setScrollTop(t){this.getScrollingElement().scrollTop=t}getScrollingElement(){const t=this.win.document;return t.scrollingElement?t.scrollingElement:t.body&&this.ah.isWebKit()?t.body:t.documentElement}getScrollingElementScrollsLikeViewport(){return!0}}(t),new class{constructor(t,i,s){const{win:e}=t;this.ampdoc=t,this.fh=this.ampdoc.win.document,this.qn=i,this.Qe=s,this.ph=null,this.mh=null,this._h=null,this.Ah=!1,this.gh=null,this.oh=Number(s.getParam("paddingTop")||0),this.Ph=0,this.ke=ps(e),this.Gr=gs(e),this.Eh=!1,this.sn=null,this.Th=0,this.Rh=new Is,this.sh=new Is,this.eh=new Is,this.Ih=void 0,this.Mh=void 0,this.yh=null,this.Qe.onMessage("viewport",this.wh.bind(this)),this.Qe.onMessage("scroll",this.bh.bind(this)),this.Qe.onMessage("disableScroll",this.Vh.bind(this)),this.Qe.isEmbedded()&&this.qn.updatePaddingTop(this.oh),this.qn.onScroll(this.Sh.bind(this)),this.qn.onResize(this.xh.bind(this)),this.onScroll(this.Oh.bind(this)),this.Ch=!1,this.ampdoc.onVisibilityChanged(this.kh.bind(this)),this.kh();const n=this.fh.documentElement;if(t.isSingleDoc()&&n.classList.add("i-amphtml-singledoc"),s.isEmbedded()?n.classList.add("i-amphtml-embedded"):n.classList.add("i-amphtml-standalone"),qt(e)&&n.classList.add("i-amphtml-iframed"),"1"===s.getParam("webview")&&n.classList.add("i-amphtml-webview"),qt(e)&&"scrollRestoration"in e.history&&(e.history.scrollRestoration="manual"),this.qn.overrideGlobalScrollTo())try{Object.defineProperty(e,"scrollTo",{value:(t,i)=>this.setScrollTop(i)}),["pageYOffset","scrollY"].forEach((t=>{Object.defineProperty(e,t,{get:()=>this.getScrollTop()})}))}catch(t){}cs(e).isIos()&&qt(e)&&this.ampdoc.isSingleDoc()&&this.ampdoc.whenReady().then((()=>{e.scrollTo(-.1,0)}))}dispose(){this.qn.disconnect()}ensureReadyForElements(){this.qn.ensureReadyForElements()}kh(){const t=this.ampdoc.isVisible();t!=this.Ch&&(this.Ch=t,t?(this.qn.connect(),this.mh&&this.xh(),this._h&&(this._h=null,this.getScrollTop())):this.qn.disconnect())}getPaddingTop(){return this.oh}getScrollTop(){return null==this._h&&(this._h=this.qn.getScrollTop()),this._h}getScrollLeft(){return null==this.gh&&(this.gh=this.qn.getScrollLeft()),this.gh}setScrollTop(t){this._h=null,this.qn.setScrollTop(t)}updatePaddingBottom(t){this.ampdoc.waitForBodyOpen().then((i=>{Ss(i,"borderBottom",`${t}px solid transparent`)}))}getSize(){if(this.mh)return this.mh;if(this.mh=this.qn.getSize(),0==this.mh.width||0==this.mh.height){const t=this.ampdoc.getVisibilityState();t!=Ts.PRERENDER&&t!=Ts.VISIBLE||Math.random()<.01&&Rt().error("Viewport","viewport has zero dimensions")}return this.mh}getHeight(){return this.getSize().height}getWidth(){return this.getSize().width}getScrollWidth(){return this.qn.getScrollWidth()}getScrollHeight(){return this.qn.getScrollHeight()}getContentHeight(){return this.qn.getContentHeight()}contentHeightChanged(){this.qn.contentHeightChanged()}getRect(){if(null==this.ph){const t=this.getScrollTop(),i=this.getScrollLeft(),s=this.getSize();this.ph=Jt(i,t,s.width,s.height)}return this.ph}getLayoutRect(t){const i=this.getScrollLeft(),s=this.getScrollTop(),e=Di(t,this.ampdoc.win);if(e){const n=this.qn.getLayoutRect(t,0,0),r=this.qn.getLayoutRect(e,i,s);return Jt(Math.round(n.left+r.left),Math.round(n.top+r.top),Math.round(n.width),Math.round(n.height))}return this.qn.getLayoutRect(t,i,s)}getClientRectAsync(t){const i=this.Gr.measurePromise((()=>t.getBoundingClientRect()));let s=this.qn.getRootClientRectAsync();const e=Di(t,this.ampdoc.win);return e&&(s=this.Gr.measurePromise((()=>e.getBoundingClientRect()))),Promise.all([i,s]).then((t=>{const i=t[0],s=t[1];return s?Zt(i,s.left,s.top):(e=i,Jt(Number(e.left),Number(e.top),Number(e.width),Number(e.height)));var e}))}supportsPositionFixed(){return this.qn.supportsPositionFixed()}isDeclaredFixed(t){return!!this.yh&&this.yh.isDeclaredFixed(t)}scrollIntoView(t){return this.Nh(t).then((i=>this.Dh(t,i)))}Dh(t,i){const s=this.qn.getLayoutRect(t).top,e=No(this.ampdoc.win,i);r((()=>Math.max(0,s-this.oh-e))).then((t=>this.Lh(i,t)))}animateScrollIntoView(t,i="top",s,e){return yt(!e||void 0!==s),this.Nh(t).then((n=>this.animateScrollWithinParent(t,n,i,s,e)))}animateScrollWithinParent(t,i,s,e,n){yt(!n||void 0!==e);const r=this.qn.getLayoutRect(t),{height:h}=this.Uh(i)?this.getSize():this.getLayoutRect(i),{win:o}=this.ampdoc,u=No(o,i),l=function(t,i){return ko(t,i,"scrollPaddingBottom")}(o,i);let c=-u;return"bottom"===s?c=-h+l+r.height:"center"===s&&(c=-(h-u-l)/2+r.height/2),this.$h(i).then((t=>{const s=r.top-this.oh+c,h=Math.max(0,s);if(h!=t)return this.Fh(i,t,h,e,n)}))}Fh(t,i,s,e,n="ease-in"){const r=void 0!==e?e:function(t,i,s=500){return Math.floor(function(t,i,s){return D(0<=s),Math.min(Math.max(t,0),s)}(.65*Math.abs(t-i),0,s))}(i,s),h=(o=i,u=s,t=>o+(u-o)*t);var o,u;return xo.animate(t,(i=>{this.Lh(t,h(i))}),r,n).thenAlways((()=>{this.Lh(t,s)}))}Nh(t){return this.Gr.measurePromise((()=>Ct(t,".i-amphtml-scrollable")||this.qn.getScrollingElement()))}Lh(t,i){this.Uh(t)?this.qn.setScrollTop(i):this.Gr.mutate((()=>{t.scrollTop=i}))}$h(t){return this.Uh(t)?r((()=>this.getScrollTop())):this.Gr.measurePromise((()=>t.scrollTop))}Uh(t){return t==this.qn.getScrollingElement()}getScrollingElement(){return this.sn?this.sn:this.sn=this.qn.getScrollingElement()}onChanged(t){return this.Rh.add(t)}onScroll(t){return this.sh.add(t)}onResize(t){return this.eh.add(t)}enterLightboxMode(t,i){return this.Qe.sendMessage("requestFullOverlay",{},!0),this.enterOverlayMode(),this.yh&&this.yh.enterLightbox(t,i),t&&this.maybeEnterFieLightboxMode(t),this.qn.updateLightboxMode(!0)}leaveLightboxMode(t){return this.Qe.sendMessage("cancelFullOverlay",{},!0),this.yh&&this.yh.leaveLightbox(),this.leaveOverlayMode(),t&&this.maybeLeaveFieLightboxMode(t),this.qn.updateLightboxMode(!1)}isLightboxExperimentOn(){return Le(this.ampdoc.win,"amp-lightbox-a4a-proto")}maybeEnterFieLightboxMode(t){const i=this.Bh(t);i&&(yt(this.isLightboxExperimentOn()),i.enterFullOverlayMode())}maybeLeaveFieLightboxMode(t){const i=this.Bh(t);i&&yt(i).leaveFullOverlayMode()}Bh(t){const i=Di(t,this.ampdoc.win);return i&&i.__AMP_EMBED__}enterOverlayMode(){this.disableTouchZoom(),this.disableScroll()}leaveOverlayMode(){this.resetScroll(),this.restoreOriginalTouchZoom()}disableScroll(){const{win:t}=this.ampdoc,{documentElement:i}=t.document;let s;this.Gr.measure((()=>{const e=ks(t,i).marginRight,n=function(t){const{documentElement:i}=t.document;return t.innerWidth-i.clientWidth}(this.ampdoc.win);s=parseInt(e,10)+n})),this.Gr.mutate((()=>{Ss(i,"margin-right",s,"px"),this.qn.disableScroll()}))}resetScroll(){const{win:t}=this.ampdoc,{documentElement:i}=t.document;this.Gr.mutate((()=>{Ss(i,"margin-right",""),this.qn.resetScroll()}))}resetTouchZoom(){const t=this.ampdoc.win.innerHeight,i=this.fh.documentElement.clientHeight;t&&i&&t===i||this.disableTouchZoom()&&this.ke.delay((()=>{this.restoreOriginalTouchZoom()}),50)}disableTouchZoom(){const t=this.Hh();if(!t)return!1;const i=function(t,i){const s=function(t){const i=Object.create(null);if(!t)return i;const s=t.split(/,|;/);for(let t=0;t<s.length;t++){const e=s[t].split("="),n=e[0].trim();let r=e[1];r=(r||"").trim(),n&&(i[n]=r)}return i}(t);let e=!1;for(const t in i)s[t]!==i[t]&&(e=!0,void 0!==i[t]?s[t]=i[t]:delete s[t]);return e?function(t){let i="";for(const s in t)i.length>0&&(i+=","),t[s]?i+=s+"="+t[s]:i+=s;return i}(s):t}(t.content,{"maximum-scale":"1","user-scalable":"no"});return this.jh(i)}restoreOriginalTouchZoom(){return void 0!==this.Mh&&this.jh(this.Mh)}updateFixedLayer(){return this.yh?this.yh.update():e()}addToFixedLayer(t,i){return this.yh?this.yh.addElement(t,i):e()}removeFromFixedLayer(t){this.yh&&this.yh.removeElement(t)}createFixedLayer(t){this.yh=new t(this.ampdoc,this.Gr,this.qn.getBorderTop(),this.oh,this.qn.requiresFixedLayerTransfer()),this.ampdoc.whenReady().then((()=>this.yh.setup()))}jh(t){const i=this.Hh();return!(!i||i.content==t||(i.content=t,0))}Hh(){return qt(this.ampdoc.win)?null:(void 0===this.Ih&&(this.Ih=this.fh.querySelector("meta[name=viewport]"),this.Ih&&(this.Mh=this.Ih.content)),this.Ih)}bh(t){const i=t.scrollTop;this.setScrollTop(i)}wh(t){const i=t.paddingTop,s=t.duration||0,e=t.curve,n=t.transient;if(null!=i&&i!=this.oh&&(this.Ph=this.oh,this.oh=i,this.yh)){const t=this.yh.animateFixedElements(this.oh,this.Ph,s,e,n);i<this.Ph?this.qn.hideViewerHeader(n,this.Ph):t.then((()=>{this.qn.showViewerHeader(n,i)}))}}Vh(t){t?this.disableScroll():this.resetScroll()}zh(t,i){const s=this.getSize(),e=this.getScrollTop(),n=this.getScrollLeft();this.Rh.fire({relayoutAll:t,top:e,left:n,width:s.width,height:s.height,velocity:i})}Sh(){this.ph=null,this.Th++,this.gh=this.qn.getScrollLeft();const t=this.qn.getScrollTop();if(!(t<0)){if(this._h=t,!this.Eh){this.Eh=!0;const i=Date.now();this.ke.delay((()=>{this.Gr.measure((()=>{this.Gh(i,t)}))}),36)}this.sh.fire()}}Gh(t,i){this._h=this.qn.getScrollTop();const s=this._h,e=Date.now();let n=0;e!=t&&(n=(s-i)/(e-t)),Math.abs(n)<.03?(this.zh(!1,n),this.Eh=!1):this.ke.delay((()=>this.Gr.measure(this.Gh.bind(this,e,s))),20)}Oh(){this.Ah||(this.Ah=!0,this.Gr.measure((()=>{this.Ah=!1,this.Qe.sendMessage("scroll",{"scrollTop":this.getScrollTop()},!0)})))}xh(){this.ph=null;const t=this.mh;this.mh=null;const i=this.getSize();this.updateFixedLayer().then((()=>{const s=!t||t.width!=i.width;this.zh(s,0),(s||t.height!=i.height)&&this.eh.fire({relayoutAll:s,width:i.width,height:i.height})}))}}(t,n,i)}var Lo={NATURAL:"natural",NATURAL_IOS_EMBED:"natural-ios-embed"};function Uo(t,i){yt(t);try{void 0!==t(i)&&Rt().error("VSYNC","callback returned a value but vsync cannot propagate it: %s",t.toString())}catch(t){return l(t),!1}return!0}function $o(t){if(t.defaultPrevented)return;const i=t.target;if(!i||"FORM"!=i.tagName)return;let s;s=i.classList.contains("i-amphtml-form")?!i.hasAttribute("amp-novalidate"):!i.hasAttribute("novalidate"),s&&i.checkValidity&&!i.checkValidity()&&t.preventDefault();const e=i.elements;for(let t=0;t<e.length;t++)bt(!e[t].name||e[t].name!=rn,"Illegal input name, %s found: %s",rn,e[t]);const n=i.getAttribute("action"),r=i.getAttribute("action-xhr"),h=(i.getAttribute("method")||"GET").toUpperCase();if(r&&(pn(r,i,"action-xhr"),bt(!_n(r),"form action-xhr should not be on AMP CDN: %s",i),Mn(r)),n&&(pn(n,i,"action"),bt(!_n(n),"form action should not be on AMP CDN: %s",i),Mn(n)),"GET"==h)bt(r||n,"form action-xhr or action attribute is required for method=GET: %s",i);else if("POST"==h){if(n){const t="form";It().error(t,"action attribute is invalid for method=POST: %s",i)}r||(t.preventDefault(),bt(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",i))}const o=i.getAttribute("target");o?bt("_blank"==o||"_top"==o,"form target=%s is invalid can only be _blank or _top: %s",o,i):i.setAttribute("target","_top"),r&&(t.preventDefault(),t.stopImmediatePropagation(),Xi(i).execute(i,"submit",null,i,i,t,3))}var Fo=["<link rel=preload referrerpolicy=origin>"],Bo=18e4,Ho=null;function jo(t){var i;(function(t){wi(t,"crypto",class{constructor(t){this.i=t;let i=null,s=!1;t.crypto&&(t.crypto.subtle?i=t.crypto.subtle:t.crypto.webkitSubtle&&(i=t.crypto.webkitSubtle,s=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=i,this.qh=s,this.Wh=null}sha384(t){if("string"==typeof t&&(t=H(t)),!this.subtle||this.Wh)return(this.Wh||this.Kh()).then((i=>i(t)));try{return this.subtle.digest({name:"SHA-384"},t).then((t=>new Uint8Array(t)),(i=>(i.message&&i.message.indexOf("secure origin")<0&&It().error(xh,"SubtleCrypto failed, fallback to closure lib.",i),this.Kh().then((()=>this.sha384(t))))))}catch(i){return Rt().error(xh,"SubtleCrypto failed, fallback to closure lib.",i),this.Kh().then((()=>this.sha384(t)))}}sha384Base64(t){return this.sha384(t).then((t=>nh(t)))}uniform(t){return this.sha384(t).then((t=>{let i=0;for(let s=2;s>=0;s--)i=(i+t[s])/256;return i}))}Kh(){return this.Wh?this.Wh:this.Wh=hs(this.i).preloadExtension("amp-crypto-polyfill").then((()=>Si(this.i,"crypto-polyfill")))}isPkcsAvailable(){return Boolean(this.subtle)&&!1!==this.i.isSecureContext}importPkcsKey(t){yt(this.isPkcsAvailable());const i=this.qh?(s=JSON.stringify(t),"undefined"!=typeof TextEncoder?(new TextEncoder).encode(s):H(unescape(encodeURIComponent(s)))):t;var s;return this.subtle.importKey("jwk",i,this.pkcsAlgo,!0,["verify"])}verifyPkcs(t,i,s){return yt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,i,s)}})})(t),wi(t,"batched-xhr",sh),Zh(t),co(t),co(i=t),wi(i,"vsync",class{constructor(t){this.win=t,this.Qh=is(this.win),this.Xh=this.Zh(),this.As=[],this.io=[],this.so=[],this.eo=[],this.Le=!1,this.no=null,this.ro=null,this.ho=this.oo.bind(this),this.uo=new yr(this.win,this.ho,16),this.lo=new yr(this.win,this.ho,40),this.co=this.ao.bind(this),this.Qh.isSingleDoc()?this.Qh.getSingleDoc().onVisibilityChanged(this.co):Ds(this.win.document,this.co)}dispose(){Ls(this.win.document,this.co)}ao(){this.Le&&this.do()}run(t,i){this.As.push(t),this.so.push(i||void 0),this.Rs()}runPromise(t,i){if(this.run(t,i),this.no)return this.no;const s=new n;return this.ro=s.resolve,this.no=s.promise}createTask(t){return i=>{this.run(t,i)}}mutate(t){this.run({measure:void 0,mutate:t})}mutatePromise(t){return this.runPromise({measure:void 0,mutate:t})}measure(t){this.run({measure:t,mutate:void 0})}measurePromise(t){return new Promise((i=>{this.measure((()=>{i(t())}))}))}canAnimate(t){return this.fo(yt(t))}fo(t){if(Ns(this.win.document)!=Ts.VISIBLE)return!1;if(this.Qh.isSingleDoc())return this.Qh.getSingleDoc().isVisible();if(t){const i=this.Qh.getAmpDocIfAvailable(t);return!i||i.isVisible()}return!0}runAnim(t,i,s){return!!this.fo(t)&&(this.run(i,s),!0)}createAnimTask(t,i){return s=>this.runAnim(t,i,s)}runAnimMutateSeries(t,i,s){return this.fo(t)?new Promise(((e,n)=>{const r=Date.now();let h=0;const o=this.createAnimTask(t,{mutate:t=>{const u=Date.now()-r;i(u,u-h,t)?s&&u>s?n(new Error("timeout")):(h=u,o(t)):e()}});o({})})):Promise.reject(Sn())}Rs(){this.Le||(this.Le=!0,this.do())}do(){this.fo()?(this.Xh(this.ho),this.lo.schedule()):this.uo.schedule()}oo(){this.lo.cancel(),this.Le=!1;const{ro:t,so:i,As:s}=this;this.ro=null,this.no=null,this.As=this.io,this.so=this.eo;for(let t=0;t<s.length;t++)s[t].measure&&(Uo(s[t].measure,i[t])||(s[t].mutate=void 0));for(let t=0;t<s.length;t++)s[t].mutate&&Uo(s[t].mutate,i[t]);this.io=s,this.eo=i,this.io.length=0,this.eo.length=0,t&&t()}Zh(){const t=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(t)return t.bind(this.win);let i=0;return t=>{const s=Date.now(),e=Math.max(0,16-(s-i));i=s+e,this.win.setTimeout(t,e)}}}),function(t){wi(t,"xhr",ih)}(t),function(t){wi(t,"input",class{constructor(t){this.win=t,this.po=this.mo.bind(this),this._o=this.Ao.bind(this),this.Po=null,this.vo=null,this.Eo=null,this.To="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,this.Ro=!1,this.win.document.addEventListener("keydown",this.po),this.win.document.addEventListener("mousedown",this._o),this.Io=!0,this.Mo=0,this.yo=new Is,this.wo=new Is,this.bo=new Is,this.To&&(this.Io=!this.To,this.Po=this.Vo.bind(this),qe(t.document,"mousemove",this.Po))}setupInputModeClasses(t){this.onTouchDetected((i=>{this.So(t,"amp-mode-touch",i)}),!0),this.onMouseDetected((i=>{this.So(t,"amp-mode-mouse",i)}),!0),this.onKeyboardStateChanged((i=>{this.So(t,"amp-mode-keyboard-active",i)}),!0)}isTouchDetected(){return this.To}onTouchDetected(t,i){return i&&t(this.isTouchDetected()),this.yo.add(t)}isMouseDetected(){return this.Io}onMouseDetected(t,i){return i&&t(this.isMouseDetected()),this.wo.add(t)}isKeyboardActive(){return this.Ro}onKeyboardStateChanged(t,i){return i&&t(this.isKeyboardActive()),this.bo.add(t)}So(t,i,s){t.waitForBodyOpen().then((t=>{gs(this.win).mutate((()=>{t.classList.toggle(i,s)}))}))}mo(t){if(this.Ro)return;if(t.defaultPrevented)return;const{target:i}=t;i&&("INPUT"==i.tagName||"TEXTAREA"==i.tagName||"SELECT"==i.tagName||"OPTION"==i.tagName||i.hasAttribute("contenteditable"))||(this.Ro=!0,this.bo.fire(!0))}Ao(){this.Ro&&(this.Ro=!1,this.bo.fire(!1))}Vo(t){if(t.sourceCapabilities&&t.sourceCapabilities.firesTouchEvents)return void this.xo();let i;this.Eo||(this.Eo=this.Oo.bind(this),this.vo=this.xo.bind(this));const s=function(t,i,s,e){let n;const r=new Promise((i=>{n=qe(t,"click",i,void 0)}));return r.then(n,n),e&&e(n),r}(this.win.document,0,0,(t=>{i=t}));return ps(this.win).timeoutPromise(300,s).then(this.vo,(()=>{i&&i(),this.Eo()}))}Oo(){this.Io=!0,this.wo.fire(!0)}xo(){this.Mo++,this.Mo<=3&&qe(this.win.document,"mousemove",this.Po)}})}(t),function(t){wi(t,"preconnect",class{constructor(t){this.Co=t.document,this.ko=t.document.head,this.No={},this.Do={},this.ah=cs(t),this.No[on(t.location.href).origin]=!0,this.Lo=function(t){if(!Ho){const i=t.document.createElement("link"),s=i.relList;if(i.as="invalid-value",!s||!s.supports)return{};Ho={preconnect:s.supports("preconnect"),preload:s.supports("preload"),onlyValidAs:"invalid-value"!=i.as}}return Ho}(t),this.ke=ps(t)}url(t,i,s){t.whenFirstVisible().then((()=>{this.pi(t,i,s)}))}pi(t,i,s){if(!this.Uo(i))return;const{origin:e}=on(i),n=Date.now(),r=this.No[e];if(r&&n<r)return void(s&&(this.No[e]=n+Bo));const h=s?Bo:1e4;let o;this.No[e]=n+h,this.Lo.preconnect||(o=this.Co.createElement("link"),o.setAttribute("rel","dns-prefetch"),o.setAttribute("href",e),this.ko.appendChild(o));const u=this.Co.createElement("link");u.setAttribute("rel","preconnect"),u.setAttribute("href",e),u.setAttribute("referrerpolicy","origin"),this.ko.appendChild(u),this.ke.delay((()=>{o&&o.parentNode&&o.parentNode.removeChild(o),u.parentNode&&u.parentNode.removeChild(u)}),1e4),this.$o(t,e)}preload(t,i,s){this.Uo(i)&&(this.Do[i]||(this.Do[i]=!0,this.url(t,i,!0),this.Lo.preload&&("document"==s&&this.ah.isSafari()||t.whenFirstVisible().then((()=>{this.Fo(i)})))))}Fo(t){const i=Ve(this.Co)(Fo);i.setAttribute("href",t),this.Lo.onlyValidAs?i.as="fetch":i.as="",this.ko.appendChild(i)}Uo(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))}$o(t,i){if(this.Lo.preconnect||!this.ah.isSafari()&&!this.ah.isIos())return;const s=Date.now();this.No[i]=s+Bo;const e=i+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(s-s%Bo),n=new XMLHttpRequest;n.open("HEAD",e,!0),n.withCredentials=!0,n.send()}})}(t)}function zo(t){yt(!t.getParent()),function(t,i){(function(t){Vi(t,"url",class{constructor(t){const i=t.getRootNode(),s=i.ownerDocument||i;this.Bo=s.createElement("a"),this.Ho=null}parse(t,i){return un(this.Bo,t)}jo(t){return"string"!=typeof t?t:this.parse(t)}isProtocolValid(t){return An(t)}getSourceOrigin(t){return En(this.jo(t))}getSourceUrl(t){return vn(this.jo(t))}resolveRelativeUrl(t,i){return Tn(t,this.jo(i))}assertHttpsUrl(t,i,s="source"){return pn(t,i,s)}assertAbsoluteHttpOrHttpsUrl(t){return function(t){return bt(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),on(t).href}(t)}isProxyOrigin(t){return _n(this.jo(t))}isSecure(t){return fn(this.jo(t))}getWinOrigin(t){return t.origin||this.jo(t.location.href).origin}getCdnUrlOnOrigin(t){if(_n(t))return t;const{hash:i,host:s,pathname:e,search:n}=this.jo(t),r=encodeURIComponent(s);return`${et}/c/${r}${e}${n}${i}`}},!0)})(t),function(t){Vi(t,"templates",class{constructor(t){this.ji=t,this.zo={},this.Go={}}whenReady(t){return this.qo(t).then(lo)}setHtmlForTemplate(t,i){return this.qo(t).then((t=>this.Wo(t,i)))}renderTemplate(t,i){return this.qo(t).then((t=>this.Ko(t,i)))}renderTemplateAsString(t,i){return this.qo(t).then((t=>t.renderAsString(i)))}getTemplateRenderer(t){return this.qo(t).then((t=>({renderAsString:i=>t.renderAsString(i)})))}renderTemplateArray(t,i){return 0==i.length?Promise.resolve([]):this.qo(t).then((t=>i.map((i=>this.Ko(t,i)))))}findAndRenderTemplate(t,i,s){return this.renderTemplate(this.findTemplate(t,s),i)}findAndSetHtmlForTemplate(t,i,s){return this.setHtmlForTemplate(this.findTemplate(t,s),i)}findAndRenderTemplateArray(t,i,s){return this.renderTemplateArray(this.findTemplate(t,s),i)}hasTemplate(t,i){return!!this.maybeFindTemplate(t,i)}findTemplate(t,i){const s=this.maybeFindTemplate(t,i);bt(s,"Template not found for %s",t);const e=s.tagName;return bt("TEMPLATE"==e||"SCRIPT"==e&&"text/plain"===s.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),s}maybeFindTemplate(t,i){const s=t.getAttribute("template");return s?jt(t).getElementById(s):i?Ot(t,i):t.querySelector('template[type], script[type="text/plain"]')}qo(t){const i=t[uo];if(i)return Promise.resolve(i);let s="";const{tagName:e}=t;"TEMPLATE"==e?s=t.getAttribute("type"):"SCRIPT"==e&&(s=t.getAttribute("template")),bt(s,"Type must be specified: %s",t);let n=t.__AMP_WAIT_;return n||(n=this.Yo(t,s).then((i=>{const s=i,e=t[uo]=new s(t,this.ji.win);return delete t.__AMP_WAIT_,e})),t.__AMP_WAIT_=n,n)}Yo(t,i){if(this.zo[i])return this.zo[i];const s=new n,{promise:e,resolve:r}=s;return this.zo[i]=e,this.Go[i]=r,e}Jo(t,i){if(this.zo[t]){const s=this.Go[t];bt(s,"Duplicate template type: %s",t),delete this.Go[t],s(i)}else this.zo[t]=Promise.resolve(i)}Ko(t,i){return t.render(i)}Wo(t,i){return t.setHtml(i)}})}(t),Vi(t,"documentInfo",class{constructor(t){this.ji=t,this.Qo=null,this.Xo=null}get(){if(this.Qo)return this.Qo;const t=this.ji,i=vn(t.getUrl()),s=t.getRootNode();let e=s&&s.AMP&&s.AMP.canonicalUrl;if(!e){const t=s.querySelector("link[rel=canonical]");e=t?on(t.href).href:i}const n=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),r=function(t){const i=p();if(t.head){const s=t.head.querySelectorAll("link[rel]");for(let t=0;t<s.length;t++){const e=s[t],{href:n}=e,r=e.getAttribute("rel");r&&n&&r.split(/\s+/).forEach((t=>{if(-1!=Oh.indexOf(t))return;let s=i[t];s?(v(s)||(s=i[t]=[s]),s.push(n)):i[t]=n}))}}return i}(t.win.document),h=function(t){const i=t.head.querySelector('meta[name="viewport"]');return i?i.getAttribute("content"):null}(t.win.document),o=function(t){if(!t.isSingleDoc()||"a"!=(i=t.win.location.href,_n(i=hn(i))?i.pathname.split("/",2)[1]:null))return null;var i;const s=Y(on(t.win.location.href).search).amp_r;return void 0===s?null:Y(s)}(t);return this.Qo={get sourceUrl(){return vn(t.getUrl())},canonicalUrl:e,pageViewId:n,get pageViewId64(){return this.Xo||(this.Xo=Sh(t.win)),this.Xo},linkRels:r,viewport:h,replaceParams:o}}}),function(t){Vi(t,"cid",class{constructor(t){this.ampdoc=t,this.Zo=null,this.Je=Object.create(null),this.tu=new class{constructor(t){this.ji=t,this.Qe=Ps(this.ji),this.iu=null,this.ke=ps(this.ji.win)}isSupported(){return this.Qe.isCctEmbedded()&&this.Qe.isProxyOrigin()}getScopedCid(t){if(!this.Qe.isCctEmbedded())return Promise.resolve(null);if(!this.iu){const t="https://ampcid.google.com/v1/cache:getClientId?key="+rh;this.iu=this.su(t)}return this.iu.then((i=>i?this.eu(i,t):null))}su(t,i=!0){const s={"publisherOrigin":En(this.ji.win.location)},e="fetchCidTimeout";return this.ke.timeoutPromise(3e4,Es(this.ji.win).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:s}),e).then((t=>t.json().then((t=>{if(t.optOut)return null;const s=t.publisherClientId;if(!s&&i&&t.alternateUrl){const i=`${t.alternateUrl}?key=${rh}`;return this.su(i,!1)}return s})))).catch((t=>(t&&t.response?t.response.json().then((t=>{Rt().error(hh,JSON.stringify(t))})):t&&t.message==e?Rt().expectedError(hh,t):Rt().error(hh,t),null)))}eu(t,i){const s=t+";"+i;return ns(this.ji.win).sha384Base64(s).then((t=>"amp-"+t))}}(t),this.nu=new class{constructor(t){this.ji=t,this.Qe=Ps(this.ji);const{canonicalUrl:i}=rs(this.ji);this.ru=i?on(i).origin:null}isSupported(){return this.Qe.hasCapability("cid")?this.Qe.isTrustedViewer():Promise.resolve(!1)}getScopedCid(t,i){const s={"scope":i,"clientIdApi":!!t,"canonicalOrigin":this.ru};return t&&(s.apiKey=t),this.Qe.sendMessageAwaitResponse("cid",s)}}(t),this.hu=new class{constructor(t){this.i=t.win,this.ke=ps(this.i),this.ou={};const{canonicalUrl:i}=rs(t);this.ru=i?on(i).origin:null}getScopedCid(t,i){if(this.ou[i])return this.ou[i];let s;return this.ou[i]=this.ke.poll(200,(()=>(s=uh(this.i,dh),s!==fh))).then((()=>{if(s===ph)return ph;if((s!==mh||!this.uu())&&this.lu(s))return null;s&&!this.lu(s)||this.cu(fh,_h);const e="https://ampcid.google.com/v1/publisher:getClientId?key="+t;return this.su(e,i,s).then((e=>{const n=this.v(e);if(!n&&e.alternateUrl){const n=`${e.alternateUrl}?key=${t}`;return this.su(n,i,s).then(this.v.bind(this))}return n})).catch((t=>(this.cu("$ERROR",_h),t&&t.response?t.response.json().then((t=>{Rt().error(ah,JSON.stringify(t))})):Rt().error(ah,t),null)))}))}su(t,i,s){const e={"originScope":i,"canonicalOrigin":this.ru};return s&&(e.securityToken=s),this.ke.timeoutPromise(_h,Es(this.i).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:e}).then((t=>t.json())))}v(t){return t.optOut?(this.cu(ph,Ah),ph):t.clientId?(this.cu(t.securityToken,Ah),t.clientId):(t.alternateUrl||this.cu(mh,36e5),null)}cu(t,i){t&&lh(this.i,dh,t,this.au(i),{highestAvailableDomain:!0})}au(t){return this.i.Date.now()+t}uu(){return _n($s.getDocumentReferrer(this.i))}lu(t){return t&&"$"===t[0]}}(t),this.du=null}get(t,i,s){return bt(gh.test(t.scope)&&gh.test(t.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",t.scope),i.then((()=>this.ampdoc.whenFirstVisible())).then((()=>{return t=this.ampdoc,fs(t).then((t=>t.get(vh).then((t=>!!t)))).catch((()=>!1));var t})).then((e=>{if(e)return"";const n=this.fu(t,s||i);return ps(this.ampdoc.win).timeoutPromise(1e4,n,`Getting cid for "${t.scope}" timed out`).catch((t=>{l(t)}))}))}optOut(){return t=this.ampdoc,Ps(t).sendMessage("cidOptOut",{}),fs(t).then((t=>t.set(vh,!0)));var t}fu(t,i){const{scope:s}=t,e=on(this.ampdoc.win.location.href);if(!_n(e)){const e=this.pu(s);return e?this.hu.getScopedCid(e,s).then((e=>{if(e==ph)return null;if(e){const i=t.cookieName||s;return Ih(this.ampdoc.win,i,e),e}return yh(this,t,i)})):yh(this,t,i)}return this.nu.isSupported().then((t=>{if(t){const t=this.pu(s);return this.nu.getScopedCid(t,s)}return this.tu.isSupported()&&this.pu(s)?this.tu.getScopedCid(s).then((t=>t||this.mu(i,s,e))):this.mu(i,s,e)}))}mu(t,i,s){return function(t,i){if(t.Zo)return t.Zo;const{win:s}=t.ampdoc;return t.Zo=function(t){const{win:i}=t;let s;try{s=i.localStorage.getItem("amp-cid")}catch(t){}let e=Promise.resolve(s);return!s&&qt(i)&&(e=bh(t)),e.then((t=>{if(!t)return null;const i=B(t);return{time:i.time,cid:i.cid}}))}(t.ampdoc).then((e=>{let n,r=!1;return e&&!function(t){const i=t.time,s=Date.now();return i+Ph<s}(e)?(n=Promise.resolve(e.cid),e.time+864e5<Date.now()&&(r=!0)):(n=ns(s).sha384Base64(Vh(s)),r=!0),r&&n.then((s=>{!function(t,i,s){const{win:e}=t;qt(e)?bh(t,wh(s)):i.then((()=>{try{e.localStorage.setItem("amp-cid",wh(s))}catch(t){}}))}(t.ampdoc,i,s)})),n}))}(this,t).then((t=>ns(this.ampdoc.win).sha384Base64(t+function(t){return bt(_n(t),"Expected proxy origin %s",t.origin),En(t)}(s)+i)))}pu(t){return this.du||(this.du=this._u()),this.du[t]}_u(){const t={},i=this.ampdoc.getMetaByName("amp-google-client-id-api");return i&&i.split(",").forEach((i=>{if((i=i.trim()).indexOf("=")>0){const s=i.split("="),e=s[0].trim();t[e]=s[1].trim()}else{const s=i,e=Eh[s];e&&(t[e]=Th[s])}})),t}})}(t),function(t){Vi(t,"viewer",class{constructor(t){this.ampdoc=t,this.win=t.win,this.Au=qt(this.win),this.gu=!0,this.Pu=!1,this.vu=p(),this.Eu=p(),this.Tu=new Is,this.Ru=new Is,this.Iu=null,this.Mu=null,this.yu=[],this.wu=p(),this.bu=p(),t.isSingleDoc()&&Object.assign(this.bu,Y(this.win.location.hash)),this.gu=!parseInt(t.getParam("off"),10),this.Pu=!(!parseInt(t.getParam("history"),10)&&!this.Pu),this.Vu=null,this.Su=_n(on(this.ampdoc.win.location.href));const i=new n;this.xu=i.resolve,this.Ou=this.Cu(i.promise),this.ku=null,this.Nu=null;const s=t.getParam("referrer");if(this.Du=this.isEmbedded()&&null!=s&&!1!==this.Lu()?s:this.win.document.referrer,this.Uu=new Promise((i=>{this.isEmbedded()&&null!=t.getParam("referrer")?this.isTrustedViewer().then((s=>{s?i(t.getParam("referrer")):(i(this.win.document.referrer),this.Du!=this.win.document.referrer&&(Rt().expectedError(To,"Untrusted viewer referrer override: "+this.Du+" at "+this.Mu),this.Du=this.win.document.referrer))})):i(this.win.document.referrer)})),this.$u=mn(this.win.location.href||""),this.Fu=new Promise((i=>{const s=t.getParam("viewerUrl");this.isEmbedded()&&s?this.isTrustedViewer().then((t=>{t?this.$u=yt(s):Rt().expectedError(To,"Untrusted viewer url override: "+s+" at "+this.Mu),i(this.$u)})):i(this.$u)})),this.bu.click){const t=mn(this.win.location.href);t!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",t),delete this.bu.click)}this.ampdoc.whenFirstVisible().then((()=>{this.maybeUpdateFragmentForCct()})),this.ampdoc.isSingleDoc()&&this.Bu()}Cu(t){if(!(this.Au&&!this.win.__AMP_TEST_IFRAME&&(this.ampdoc.getParam("origin")||this.ampdoc.getParam("visibilityState")||-1!=this.win.location.search.indexOf("amp_js_v"))||this.isWebviewEmbedded()||this.isCctEmbedded())&&this.ampdoc.isSingleDoc())return null;const i="initMessagingChannel timeout";return ps(this.win).timeoutPromise(2e4,t,i).catch((t=>{let s=Mo(t);throw s&&R(s.message,i)&&(s=Rt().createExpectedError(s)),Vn(s),s}))}getAmpDoc(){return this.ampdoc}getParam(t){return this.ampdoc.getParam(t)}hasCapability(t){const i=this.ampdoc.getParam("cap");return!!i&&-1!=i.split(",").indexOf(t)}isEmbedded(){return!!this.Ou}isWebviewEmbedded(){return!this.Au&&"1"==this.ampdoc.getParam("webview")}isCctEmbedded(){if(null!=this.Vu)return this.Vu;if(this.Vu=!1,!this.Au){const t=Y(this.win.location.search);this.Vu="1"===t.amp_gsa&&(t.amp_js_v||"").startsWith("a")}return this.Vu}isProxyOrigin(){return this.Su}maybeUpdateFragmentForCct(){if(!this.isCctEmbedded())return;if(!this.win.history.replaceState)return;const t=En(this.win.location.href),{canonicalUrl:i}=rs(this.ampdoc),s=En(i);this.Hu(t,s)&&(this.bu.ampshare=i,this.win.history.replaceState({},"","#"+dn(this.bu)))}Hu(t,i){const s=t=>t.split(".").length>2?t.replace(Io,"$1"):t;return s(t)==s(i)}isRuntimeOn(){return this.gu}toggleRuntime(){this.gu=!this.gu,this.Tu.fire(this.gu)}onRuntimeState(t){return this.Tu.add(t)}isOvertakeHistory(){return this.Pu}getVisibilityState(){return this.ampdoc.getVisibilityState()}isVisible(){return this.ampdoc.isVisible()}hasBeenVisible(){return this.ampdoc.hasBeenVisible()}whenFirstVisible(){return this.ampdoc.whenFirstVisible()}whenNextVisible(){return this.ampdoc.whenNextVisible()}getFirstVisibleTime(){return this.ampdoc.getFirstVisibleTime()}getLastVisibleTime(){return this.ampdoc.getLastVisibleTime()}onVisibilityChanged(t){return this.ampdoc.onVisibilityChanged(t)}ju(t){var i;t&&(yt("prerender"===(i=t)||"preview"===i||"visible"===i||"hidden"===i||"paused"===i||"inactive"===i),t===Ts.HIDDEN&&(t=null!=this.ampdoc.getLastVisibleTime()?Ts.INACTIVE:Ts.PRERENDER),this.ampdoc.overrideVisibilityState(t))}getResolvedViewerUrl(){return this.$u}getViewerUrl(){return this.Fu}maybeGetMessagingOrigin(){return this.Mu}getUnconfirmedReferrerUrl(){return this.Du}getReferrerUrl(){return this.Uu}isTrustedViewer(){if(!this.ku){const t=this.Lu();this.ku=void 0!==t?Promise.resolve(t):this.Ou.then((t=>!!t&&this.zu(t)))}return this.ku}Lu(){return!!this.isEmbedded()&&(!this.win.location.ancestorOrigins||this.isWebviewEmbedded()||this.isCctEmbedded()?void 0:this.win.location.ancestorOrigins.length>0&&this.zu(this.win.location.ancestorOrigins[0]))}getViewerOrigin(){if(!this.Nu){let t;this.isEmbedded()?this.win.location.ancestorOrigins&&this.win.location.ancestorOrigins.length>0&&(t=this.win.location.ancestorOrigins[0]):t="",this.Nu=void 0!==t?Promise.resolve(t):ps(this.win).timeoutPromise(1e3,this.Ou).catch((()=>""))}return this.Nu}zu(t){const i=on(t),{protocol:s}=i;return"x-thread:"==s||"https:"==s&&ut.some((t=>t.test(i.hostname)))}onMessage(t,i){let s=this.vu[t];s||(s=new Is,this.vu[t]=s);const e=s.add(i);return this.wu[t]&&(this.wu[t].forEach((t=>{s.fire(t.data),t.deferred.resolve()})),this.wu[t]=[]),e}onMessageRespond(t,i){return this.Eu[t]=i,this.wu[t]&&(this.wu[t].forEach((t=>{t.deferred.resolve(i(t.data))})),this.wu[t]=[]),()=>{this.Eu[t]===i&&delete this.Eu[t]}}receiveMessage(t,i,s){if("visibilitychange"==t)return this.ju(i.state),e();if("broadcast"==t)return this.Ru.fire(i),e();const r=this.vu[t],h=this.Eu[t];if(!r&&!h){if(this.wu[t]=this.wu[t]||[],this.wu[t].length>=50)return;const s=new n;return this.wu[t].push({data:i,deferred:s}),s.promise}return r&&r.fire(i),h?h(i):r?e():void 0}setMessageDeliverer(t,i){if(this.Iu)throw new Error("message channel can only be initialized once");if(null==i)throw new Error("message channel must have an origin");if(this.Iu=t,this.Mu=i,this.xu(i),this.yu.length>0){const t=this.yu.slice(0);this.yu=[],t.forEach((t=>{const i=this.Iu(t.eventType,t.data,t.awaitResponse);t.awaitResponse&&t.responseResolver(i)}))}}maybeGetMessageDeliverer(){return this.Iu}sendMessage(t,i,s=!1){this.Gu(t,i,s,!1)}sendMessageAwaitResponse(t,i,s=!1){return this.Gu(t,i,s,!0)}Gu(t,i,s,h){if(this.Iu)return r((()=>this.Iu(t,i,h)));if(!this.Ou)return h?Promise.reject(Mo()):e();if(!s)return this.Ou.then((()=>this.Iu(t,i,h)));const o=I(this.yu,(i=>i.eventType==t));let u;if(-1!=o)u=this.yu.splice(o,1)[0],u.data=i,u.awaitResponse=u.awaitResponse||h;else{const s=new n,{promise:e,resolve:r}=s;u={eventType:t,data:i,awaitResponse:h,responsePromise:e,responseResolver:r}}return this.yu.push(u),u.responsePromise}broadcast(t){return this.Ou?this.Gu("broadcast",t,!1,!1).then((()=>!0),(()=>!1)):Promise.resolve(!1)}onBroadcast(t){return this.Ru.add(t)}whenMessagingReady(){return this.Ou}replaceUrl(t){if(t&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{const i=on(this.win.location.href),s=on(mn(t)+this.win.location.hash);i.origin==s.origin&&En(i)==En(s)&&(this.win.history.replaceState({},"",s.href),this.win.location.originalHref=i.href)}catch(t){Rt().error(To,"replaceUrl failed",t)}}Bu(){if(this.ampdoc.getVisibilityState()==Ts.VISIBLE)return;const t=[],i=()=>t.forEach((t=>t())),s=()=>{this.ju(Ts.VISIBLE),i(),Rt().expectedError(To,"Received user action in non-visible doc")},e={capture:!0,passive:!0};t.push(ze(this.win,"keydown",s,e),ze(this.win,"touchstart",s,e),ze(this.win,"mousedown",s,e)),this.whenFirstVisible().then(i)}},!0)}(t),function(t){Vi(t,"viewport",Do,!0)}(t),function(t){Vi(t,"hidden-observer",class{constructor(t){this.qu=t.getRootNode();const i=this.qu.ownerDocument||this.qu;this.i=yt(i.defaultView),this.Wu=null,this.Ku=null}add(t){this.Yu();const i=this.Ku.add(t);return()=>{i(),0===this.Ku.getHandlerCount()&&this.dispose()}}Yu(){if(this.Wu)return;this.Ku=new Is;const t=new this.i.MutationObserver((t=>{t&&this.Ku.fire(t)}));this.Wu=t,t.observe(this.qu,Ch)}dispose(){this.Wu&&(this.Wu.disconnect(),this.Ku.removeAll(),this.Wu=null,this.Ku=null)}})}(t),function(t){Vi(t,"history",Lh)}(t),function(t){Vi(t,"resources",class{constructor(t){this.ampdoc=t,this.win=t.win,this.Qe=Ps(t),this.gu=this.Qe.isRuntimeOn(),this.Ju=!1,this.Qu=0,this.Ei=[],this.Xu=0,this.Zu=0,this.tl=0,this.Ch=this.ampdoc.isVisible(),this.il=!1,this.sl=!0,this.nl=!1,this.rl=-1,this.hl=!0,this.ol=-1,this.ul=0,this.ll=0,this.Be=new yr(this.win,(()=>this.doPass())),this.cl=new yr(this.win,(()=>{this.hl=!0,this.schedulePass()})),this.al=new to,this.es=new to,this.dl=this.fl.bind(this),this.pl=[],this.ml=[],this._l=!1,this.Al=vs(this.ampdoc),this.Gr=gs(this.win),this.gl=new $h(this.win,6e4),this.Pl=!1,this.vl=0,this.El=!1,this.Tl=[],this.Rl=[],this.Il=new n,this.Ml=new class{constructor(t){this.Mi=t,this.yl=p()}addTransition(t,i,s){const e=this.wl(t,i);D(!this.yl[e]),this.yl[e]=s}setState(t){const i=this.Mi;this.Mi=t;const s=this.wl(i,t),e=this.yl[s];null==e||e()}wl(t,i){return`${t}|${i}`}}(this.ampdoc.getVisibilityState()),this.Al.onChanged((t=>{this.ul=this.win.Date.now(),this.ll=t.velocity,t.relayoutAll&&(this.hl=!0,this.El=!0),this.schedulePass()})),this.Al.onScroll((()=>{this.ul=this.win.Date.now()})),this.ampdoc.onVisibilityChanged((()=>{-1==this.rl&&this.ampdoc.isVisible()&&(this.rl=this.win.Date.now()),this.schedulePass()})),this.Qe.onRuntimeState((t=>{this.gu=t,this.schedulePass(1)})),jn(this.ampdoc,(()=>{this.bl(this.Ml),this.schedulePass(0)})),this.Vl(),this.Gh=z(this.win,(t=>this.Sl(t)),250),ze(this.win.document,"scroll",this.Gh,{capture:!0,passive:!0})}Vl(){this.ampdoc.whenReady().then((()=>{this.il=!0,this.xl(),this.ml=null,(t=>Si(t,"input"))(this.win).setupInputModeClasses(this.ampdoc)}))}get(){return this.Ei.slice(0)}getAmpdoc(){return this.ampdoc}getResourceForElement(t){return kn.forElement(t)}getResourceForElementOptional(t){return kn.forElementOptional(t)}getScrollDirection(){return Math.sign(this.ll)||1}add(t){this.Xu++,1==this.Xu&&this.Al.ensureReadyForElements();let i=kn.forElementOptional(t);i&&0!=i.getState()&&!t.reconstructWhenReparented()?i.requestMeasure():i=new kn(++this.Qu,t,this),this.Ei.push(i),this.cl.schedule(1e3)}Ol(){return this.Zu<20||this.ampdoc.getVisibilityState()==Ts.PREVIEW||this.ampdoc.hasBeenVisible()}Cl(t,i=!1,s=!1){if(!this.gu&&!this.Ju)return;const e=this.ampdoc.getVisibilityState(),n=e==Ts.PRERENDER&&!t.prerenderAllowed(),r=e==Ts.PREVIEW&&!t.previewAllowed();n||r||(this.il?this.kl(t,s):t.isBuilt()||t.isBuilding()||i&&this.ml.includes(t)||(this.ml.push(t),this.xl()))}xl(){if(!this._l)try{this._l=!0,this.Nl()}finally{this._l=!1}}Nl(){for(let t=0;t<this.ml.length;t++){const i=this.ml[t];(this.il||zt(i.element,this.ampdoc.getRootNode()))&&(this.ml.splice(t--,1),this.kl(i))}}kl(t,i=!1){if(!i&&!this.Ol()&&!t.isBuildRenderBlocking())return null;const s=t.build();return s?(this.Zu++,this.tl++,s.then((()=>this.schedulePass()),(i=>{if(this.Dl(t),!xn(i))throw i}))):null}remove(t){const i=kn.forElementOptional(t);i&&this.Dl(i)}Dl(t){const i=this.Ei.indexOf(t);-1!=i&&this.Ei.splice(i,1),t.isBuilt()&&t.pauseOnRemove(),3===t.getState()&&t.layoutCanceled(),this.Ll(t,!0)}upgraded(t){const i=kn.forElement(t);this.Cl(i)}updateLayoutPriority(t,i){const s=kn.forElement(t);s.updateLayoutPriority(i),this.es.forEach((t=>{t.resource==s&&(t.priority=i)})),this.schedulePass()}schedulePass(t){return this.Be.schedule(t)}updateOrEnqueueMutateTask(t,i){let s=null;for(let i=0;i<this.pl.length;i++)if(this.pl[i].resource==t){s=this.pl[i];break}s?(s.newHeight=i.newHeight,s.newWidth=i.newWidth,s.marginChange=i.marginChange,s.event=i.event,s.force=i.force||s.force,s.callback=i.callback):this.pl.push(i)}schedulePassVsync(){this.Pl||(this.Pl=!0,this.Gr.mutate((()=>this.doPass())))}ampInitComplete(){this.nl=!0,this.schedulePass()}setRelayoutTop(t){-1==this.ol?this.ol=t:this.ol=Math.min(t,this.ol)}maybeHeightChanged(){this.El=!0}onNextPass(t){this.Tl.push(t)}doPass(){if(this.gu){if(this.Ch=this.ampdoc.isVisible(),this.tl=0,this.il&&this.sl&&this.nl){var t;this.sl=!1;const i=this.win.document,s=rs(this.ampdoc);this.Qe.sendMessage("documentLoaded",{"title":i.title,"sourceUrl":vn(this.ampdoc.getUrl()),"isStory":"AMP-STORY"===(null===(t=i.body.firstElementChild)||void 0===t?void 0:t.tagName),"serverLayout":i.documentElement.hasAttribute("i-amphtml-element"),"linkRels":s.linkRels,"metaTags":{"viewport":s.viewport},"viewport":s.viewport},!0),this.vl=this.Al.getContentHeight(),this.Qe.sendMessage("documentHeight",{"height":this.vl},!0)}!this.sl&&this.Ul&&this.Ei.every((t=>t.getState()!=kn.NOT_BUILT||t.element.R1()))&&(this.Ul=!1,this.El=!0),this.Al.getSize(),this.Be.cancel(),this.Pl=!1,this.Ml.setState(this.ampdoc.getVisibilityState()),this.$l(),this.El&&(this.El=!1,this.Gr.measure((()=>{const t=this.Al.getContentHeight();t!=this.vl&&(this.Qe.sendMessage("documentHeight",{"height":t},!0),this.vl=t,this.Al.contentHeightChanged())})));for(let t=0;t<this.Tl.length;t++)(0,this.Tl[t])();this.Tl.length=0}}$l(){this.il&&this.nl&&!this.ampdoc.signals().get(Nn)&&this.ampdoc.signals().signal(Nn)}Fl(){return this.pl.length>0}Bl(){const t=this.win.Date.now(),i=this.Al.getRect(),s=i.height/10,e=i.height/10,n=Math.abs(this.ll)<.01&&t-this.ul>500||t-this.ul>1e3;if(this.pl.length>0){const t=this.pl;this.pl=[];let r=-1;const h=[];let o=0;for(let u=0;u<t.length;u++){const l=t[u],{event:c,resource:a}=l,d=a.getLayoutBox();let f,p=0,m=0,_=0,A=0,{bottom:P,top:g}=d;if(l.marginChange){f=l.marginChange.newMargins;const t=l.marginChange.currentMargins;null!=f.top&&(p=f.top-t.top),null!=f.bottom&&(m=f.bottom-t.bottom),null!=f.left&&(_=f.left-t.left),null!=f.right&&(A=f.right-t.right),p&&(g=d.top-t.top),m&&(P=d.bottom+t.bottom)}const v=l.newHeight-d.height,E=l.newWidth-d.width;let T=!1;if(0==v&&0==p&&0==m&&0==E&&0==_&&0==A);else if(l.force||!this.Ch)T=!0;else if(this.gl.hasDescendantsOf(a.element)||c&&c.userActivation&&c.userActivation.hasBeenActive)T=!0;else if(g>=i.bottom-e||0==p&&d.bottom+Math.min(v,0)>=i.bottom-e)T=!0;else{if(i.top>1&&P<=i.top+s){if(v<0&&i.top+o<-v)continue;n?(o+=v,h.push(l)):this.pl.push(l);continue}this.Hl(a,d)?T=!0:v<0||p<0||m<0||(l.newHeight==d.height?this.Gr.run({measure:t=>{t.resize=!1;const i=a.element.parentElement;if(!i)return;const s=i.getLayoutSize&&i.getLayoutSize().width||i.offsetWidth;let e=E;for(let t=0;t<i.childElementCount;t++)if(e+=i.children[t].offsetWidth,e>s)return;t.resize=!0},mutate:t=>{t.resize&&l.resource.changeSize(l.newHeight,l.newWidth,f),l.resource.overflowCallback(!t.resize,l.newHeight,l.newWidth,f)}},{}):l.resource.overflowCallback(!0,l.newHeight,l.newWidth,f))}T&&(d.top>=0&&(r=-1==r?d.top:Math.min(r,d.top)),l.resource.changeSize(l.newHeight,l.newWidth,f),l.resource.overflowCallback(!1,l.newHeight,l.newWidth,f),this.El=!0),l.callback&&l.callback(T)}-1!=r&&this.setRelayoutTop(r),h.length>0&&this.Gr.run({measure:t=>{t.scrollHeight=this.Al.getScrollHeight(),t.scrollTop=this.Al.getScrollTop()},mutate:t=>{let i=-1;h.forEach((t=>{const s=t.resource.getLayoutBox();i=-1==i?s.top:Math.min(i,s.top),t.resource.changeSize(t.newHeight,t.newWidth,t.marginChange?t.marginChange.newMargins:void 0),t.callback&&t.callback(!0)})),-1!=i&&this.setRelayoutTop(i);const s=this.Al.getScrollHeight();s!=t.scrollHeight&&this.Al.setScrollTop(t.scrollTop+(s-t.scrollHeight)),this.El=!0}},{})}}Hl(t,i,s){const e=this.Al.getContentHeight(),n=Math.max(.85*e,e-1e3),r=i||t.getLayoutBox(),h=s||t.getInitialLayoutBox();return r.bottom>=n||h.bottom>=n}jl(t){const i=t.isDisplayed();return t.measure(),!(i&&!t.isDisplayed())}zl(t){t.length&&this.Gr.mutate((()=>{t.forEach((t=>{t.unload(),this.Ll(t)}))}))}Gl(){const t=this.win.Date.now(),{Rl:i,hl:s,ol:e}=this;this.hl=!1,this.ol=-1;let n,r=0,h=0;for(let t=0;t<this.Ei.length;t++){const i=this.Ei[t];0!=i.getState()||i.isBuilding()||i.element.R1()||this.Cl(i,!0),!s&&i.hasBeenMeasured()&&1!=i.getState()||r++,i.isMeasureRequested()&&h++}if(r>0||h>0||s||-1!=e||i.length>0)for(let t=0;t<this.Ei.length;t++){const r=this.Ei[t];if(r.hasOwner()&&!r.isMeasureRequested()||r.element.R1())continue;let h=s||1==r.getState()||!r.hasBeenMeasured()||r.isMeasureRequested()||-1!=e&&r.getLayoutBox().bottom>=e;if(!h)for(let t=0;t<i.length;t++)if(i[t].contains(r.element)){h=!0;break}h&&(this.jl(r)||(n||(n=[]),n.push(r)))}i.length=0,n&&this.zl(n);const o=this.Al.getRect();let u;u=this.Ch?Xt(o,.25,2):o;const l=this.Ch?Xt(o,.25,.25):o;for(let t=0;t<this.Ei.length;t++){const i=this.Ei[t];if(0==i.getState()||i.hasOwner()||i.element.R1())continue;const s=this.Ch&&i.isDisplayed()&&i.overlaps(l);i.setInViewport(s)}if(u)for(let t=0;t<this.Ei.length;t++){const i=this.Ei[t];i.isBuilt()||i.isBuilding()||i.hasOwner()||i.element.R1()||!i.hasBeenMeasured()||!i.isDisplayed()||!i.overlaps(u)||this.Cl(i,!0,!0),2!=i.getState()||i.hasOwner()||i.isDisplayed()&&i.overlaps(u)&&this.scheduleLayoutOrPreload(i,!0)}if(this.Ch&&this.ql(t)){let t=0;for(let i=0;i<this.Ei.length&&t<4;i++){const s=this.Ei[i];2==s.getState()&&!s.hasOwner()&&!s.element.R1()&&s.isDisplayed()&&s.idleRenderOutsideViewport()&&(this.scheduleLayoutOrPreload(s,!1),t++)}for(let i=0;i<this.Ei.length&&t<4;i++){const s=this.Ei[i];2!=s.getState()||s.hasOwner()||s.element.R1()||!s.isDisplayed()||(this.scheduleLayoutOrPreload(s,!1),t++)}}}ql(t=Date.now()){const i=this.al.getLastDequeueTime();return 0==this.al.getSize()&&0==this.es.getSize()&&t>i+5e3&&i>0}Wl(){const t=this.win.Date.now();let i=-1,s=this.es.peek(this.dl);for(;s&&(i=this.Kl(s),!(i>16));){this.es.dequeue(s);const e=this.al.getTaskById(s.id);if(e){const t=this.Yl.bind(this,s);e.promise.then(t,t)}else{const{resource:i}=s,e=!0;i.measure(),e&&this.Jl(i,s.forceOutsideViewport)?(s.promise=s.callback(),s.startTime=t,this.al.enqueue(s),s.promise.then(this.Ql.bind(this,s,!0),this.Ql.bind(this,s,!1)).catch(Vn)):i.layoutCanceled()}s=this.es.peek(this.dl),i=-1}if(i>=0)return i;let e=2*(t-this.al.getLastDequeueTime());return e=Math.max(Math.min(3e4,e),5e3),e}fl(t){const i=this.Al.getRect(),s=t.resource.getLayoutBox();let e=Math.floor((s.top-i.top)/i.height);return Math.sign(e)!=this.getScrollDirection()&&(e*=2),e=Math.abs(e),10*t.priority+e}Kl(t){const i=this.win.Date.now();if(0==this.al.getSize()){if(-1===this.rl)return 0;const s=1e3*t.priority;return Math.max(s-(i-this.rl),0)}let s=0;return this.al.forEach((e=>{const n=Math.max(1e3*(t.priority-e.priority),0);s=Math.max(s,n-(i-e.startTime))})),s}Yl(t){this.es.getTaskById(t.id)||this.es.enqueue(t)}Ql(t,i,s){if(this.al.dequeue(t),this.schedulePass(1e3),!i)return Promise.reject(s)}Jl(t,i){if(0==t.getState()||!t.isDisplayed())return!1;const s=this.ampdoc.getVisibilityState(),e=s==Ts.PRERENDER&&t.prerenderAllowed(),n=s==Ts.PREVIEW&&t.previewAllowed();return!!(this.Ch||e||n)&&!!(i||t.isInViewport()||t.renderOutsideViewport()||t.idleRenderOutsideViewport())}scheduleLayoutOrPreload(t,i,s,e){if(t.element.R1())return;const n=0!=t.getState(),r=t.isDisplayed();n&&r||yt(!1);const h=e||!1;this.Jl(t,h)&&(i?this.Rs(t,"L",0,s||0,h,t.startLayout.bind(t)):this.Rs(t,"P",2,s||0,h,t.startLayout.bind(t)))}Rs(t,i,s,e,n,r){const h=t.getTaskId(i),o={id:h,resource:t,priority:Math.max(t.getLayoutPriority(),e)+s,forceOutsideViewport:n,callback:r,scheduleTime:this.win.Date.now(),startTime:0,promise:null},u=this.es.getTaskById(h);(!u||o.priority<u.priority)&&(u&&this.es.dequeue(u),this.es.enqueue(o),this.schedulePass(this.Kl(o))),o.resource.layoutScheduled(o.scheduleTime)}whenFirstPass(){return this.Il.promise}bl(t){const{HIDDEN:i,INACTIVE:s,PAUSED:e,PRERENDER:n,PREVIEW:r,VISIBLE:h}=Ts,o=()=>{const t=this.Al.getSize();if(t.height>0&&t.width>0){this.Fl()&&this.Bl(),this.Gl();let t=this.Wl();this.Fl()&&(t=Math.min(t,500)),this.Ch&&this.schedulePass(t),this.Il.resolve()}},u=()=>{},l=()=>{this.Ei.forEach((t=>t.pause()))},c=()=>{this.Ei.forEach((t=>{t.unload(),this.Ll(t)})),this.Xl()},a=()=>{this.Ei.forEach((t=>t.resume())),o()};t.addTransition(n,n,o),t.addTransition(n,r,o),t.addTransition(n,h,o),t.addTransition(n,i,o),t.addTransition(n,s,o),t.addTransition(n,e,o),t.addTransition(r,r,o),t.addTransition(r,h,o),t.addTransition(r,i,o),t.addTransition(r,s,o),t.addTransition(r,e,o),t.addTransition(h,h,o),t.addTransition(h,i,o),t.addTransition(h,s,c),t.addTransition(h,e,l),t.addTransition(i,h,o),t.addTransition(i,i,o),t.addTransition(i,s,c),t.addTransition(i,e,l),t.addTransition(s,h,a),t.addTransition(s,i,a),t.addTransition(s,s,u),t.addTransition(s,e,o),t.addTransition(e,h,a),t.addTransition(e,i,o),t.addTransition(e,s,c),t.addTransition(e,e,u)}Xl(){try{this.win.getSelection().removeAllRanges()}catch(t){}}Ll(t,i){if(1!=t.getState()&&2!=t.getState()||(this.es.purge((i=>i.resource==t)),this.al.purge((i=>i.resource==t)),T(this.pl,(i=>i.resource===t))),0==t.getState()&&i&&this.ml){const i=this.ml.indexOf(t);-1!=i&&this.ml.splice(i,1)}}Sl(t){const{target:i}=t;if(i.nodeType!==Node.ELEMENT_NODE)return;if(i===this.Al.getScrollingElement())return;const s=i;this.Rl.includes(s)||(this.Rl.push(s),this.schedulePass(70))}})}(t),function(t){Vi(t,"owners",class{constructor(t){this.Ei=ds(t)}setOwner(t,i){kn.setOwner(t,i)}schedulePreload(t,i){this.Zl(this.Ei.getResourceForElement(t),!1,Xh(i))}scheduleLayout(t,i){this.Zl(this.Ei.getResourceForElement(t),!0,Xh(i))}schedulePause(t,i){const s=this.Ei.getResourceForElement(t);i=Xh(i),this.tc(s,i,(t=>{t.pause()}))}scheduleResume(t,i){const s=this.Ei.getResourceForElement(t);i=Xh(i),this.tc(s,i,(t=>{t.resume()}))}scheduleUnlayout(t,i){const s=this.Ei.getResourceForElement(t);i=Xh(i),this.tc(s,i,(t=>{t.unlayout()}))}requireLayout(t,i){const s=[];return this.ic(t,(t=>{s.push(t.element.ensureLoaded())})),Promise.all(s)}tc(t,i,s){for(const e of i)yt(t.element.contains(e)),this.ic(e,s)}ic(t,i){if(t.classList.contains("i-amphtml-element")){i(this.Ei.getResourceForElement(t));const s=t.getPlaceholder();s&&this.ic(s,i)}else{const s=t.getElementsByClassName("i-amphtml-element"),e=[];for(let t=0;t<s.length;t++){const n=s[t];let r=!1;for(let t=0;t<e.length;t++)if(e[t].contains(n)){r=!0;break}r||(e.push(n),i(this.Ei.getResourceForElement(n)))}}}Zl(t,i,s){this.tc(t,s,(i=>{i.element.ensureLoaded(t.getLayoutPriority())}))}})}(t),function(t){Vi(t,"mutator",class{constructor(t){this.ampdoc=t,this.win=t.win,this.Ei=ds(t),this.Al=vs(this.ampdoc),this.Gr=gs(this.win),this.gl=new $h(this.win,6e4),this.gl.onFocus((t=>{this.sc(t)}))}forceChangeSize(t,i,s,e,n){this.ec(kn.forElement(t),i,s,n,void 0,!0,e)}requestChangeSize(t,i,s,e,n){return new Promise(((r,h)=>{this.ec(kn.forElement(t),i,s,e,n,!1,(t=>{t?r():h(new Error("changeSize attempt denied"))}))}))}expandElement(t){kn.forElement(t).completeExpand(),this.Ei.schedulePass(70)}attemptCollapse(t){return new Promise(((i,s)=>{this.ec(kn.forElement(t),0,0,void 0,void 0,!1,(e=>{e?(kn.forElement(t).completeCollapse(),i()):s(Rt().createExpectedError("collapse attempt denied"))}))}))}collapseElement(t){const i=this.Al.getLayoutRect(t);0!=i.width&&0!=i.height&&(Le(this.win,"dirty-collapse-element")?this.dirtyElement(t):this.Ei.setRelayoutTop(i.top)),kn.forElement(t).completeCollapse(),this.Ei.schedulePass(70)}measureElement(t){return this.Gr.measurePromise(t)}mutateElement(t,i,s){return this.nc(t,null,i,s)}measureMutateElement(t,i,s){return this.nc(t,i,s)}rc(t){const i=ks(this.win,t.element);return{top:parseInt(i.marginTop,10)||0,right:parseInt(i.marginRight,10)||0,bottom:parseInt(i.marginBottom,10)||0,left:parseInt(i.marginLeft,10)||0}}nc(t,i,s,e=!1){const n=()=>{const i=this.Al.getLayoutRect(t);return 0!=i.width&&0!=i.height?i.top:-1};let r=-1;return this.Gr.runPromise({measure:()=>{i&&i(),e||(r=n())},mutate:()=>{if(s(),e)return;t.classList.contains("i-amphtml-element")&&kn.forElement(t).requestMeasure();const i=t.getElementsByClassName("i-amphtml-element");for(let t=0;t<i.length;t++)kn.forElement(i[t]).requestMeasure();this.Ei.schedulePass(70),-1!=r&&this.Ei.setRelayoutTop(r),this.Gr.measure((()=>{const t=n();-1!=t&&t!=r&&(this.Ei.setRelayoutTop(t),this.Ei.schedulePass(70)),this.Ei.maybeHeightChanged()}))}})}dirtyElement(t){let i=!1;if(t.classList.contains("i-amphtml-element")){const i=kn.forElement(t);this.Ei.setRelayoutTop(i.getLayoutBox().top)}else i=!0;this.Ei.schedulePass(70,i)}sc(t){const i=function(t,i,s){let e;for(e=t;e&&undefined!==e;e=e.parentElement)if(i(e))return e;return null}(t,(t=>!!kn.forElementOptional(t)));if(!i)return;const s=kn.forElement(i),e=s.getPendingChangeSize();void 0!==e&&this.ec(s,e.height,e.width,e.margins,void 0,!0)}ec(t,i,s,e,n,r,h){t.hasBeenMeasured()&&!e?this.hc(t,i,s,void 0,n,r,h):this.Gr.measure((()=>{t.hasBeenMeasured()||t.measure();const o=e?{newMargins:e,currentMargins:this.rc(t)}:void 0;this.hc(t,i,s,o,n,r,h)}))}hc(t,i,s,e,n,r,h){t.resetPendingChangeSize();const o=t.getLayoutSize();if(!(void 0!==i&&i!=o.height||void 0!==s&&s!=o.width||void 0!==e&&(u=e.currentMargins,l=e.newMargins,void 0!==l.top&&l.top!=u.top||void 0!==l.right&&l.right!=u.right||void 0!==l.bottom&&l.bottom!=u.bottom||void 0!==l.left&&l.left!=u.left)))return void 0===i&&void 0===s&&void 0===e&&Rt().error("Mutator","attempting to change size with undefined dimensions",t.debugid),void(h&&h(!0));var u,l;this.Ei.updateOrEnqueueMutateTask(t,{resource:t,newHeight:i,newWidth:s,marginChange:e,event:n,force:r,callback:h}),this.Ei.schedulePassVsync()}})}(t),function(t){Vi(t,"url-replace",(function(t){return new class{constructor(t,i){this.ampdoc=t,this.Mr=i}expandStringSync(t,i,s){return new fo(this.Mr,i,void 0,!0,s,!0).expand(t)}expandStringAsync(t,i,s){return new fo(this.Mr,i,void 0,void 0,s,!0).expand(t)}expandUrlSync(t,i,s){return this.oc(t,new fo(this.Mr,i,void 0,!0,s).expand(t))}expandUrlAsync(t,i,s,e){return new fo(this.Mr,i,void 0,void 0,s,e).expand(t).then((i=>this.oc(t,i)))}expandInputValueAsync(t){return this.uc(t,!1)}expandInputValueSync(t){return this.uc(t,!0)}uc(t,i){yt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());const s=this.lc(t);if(!s)return i?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);const e=new fo(this.Mr,void 0,void 0,i,s).expand(t["amp-original-value"]||t.value);return i?t.value=e:e.then((i=>(t.value=i,i)))}lc(t,i){const s=t.getAttribute("data-amp-replace");if(!s)return;const e={};return s.trim().split(/\s+/).forEach((t=>{i&&!m(i,t)||(e[t]=!0)})),e}Tt(t){const i=rs(this.ampdoc);if(t.origin==on(i.canonicalUrl).origin||t.origin==on(i.sourceUrl).origin)return!0;const s=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(s){const i=s.trim().split(/\s+/);for(let s=0;s<i.length;s++)if(t.origin==on(i[s]).origin)return!0}return!1}maybeExpandLink(t,i){yt("A"==t.tagName);const s=t;let e=s.getAttribute("data-amp-addparams")||"";const n=this.lc(s,{"CLIENT_ID":!0,"QUERY_PARAM":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"NAV_TIMING":!0});if(!n&&!e&&!i)return;let r=s["amp-original-href"]||s.getAttribute("href");const h=on(r);null==s["amp-original-href"]&&(s["amp-original-href"]=r);const o=this.Tt(h);if(e&&(e=o?this.cc(e,n):e,r=an(r,Y(e))),!o)return s.href=r;if(i){if(!n||!n.QUERY_PARAM){const t={"QUERY_PARAM":!0};i=this.expandUrlSync(i,void 0,t)}r=an(r,Y(i))}return r=this.cc(r,n),s.href=r}cc(t,i){return i?this.expandUrlSync(t,void 0,i):t}collectVars(t,i){const s=Object.create(null);return new fo(this.Mr,i,s).expand(t).then((()=>s))}collectDisallowedVarsSync(t){const i=t.getAttribute("src"),s=new fo(this.Mr).getMacroNames(i),e=this.lc(t);return e?s.filter((t=>!e[t])):s}oc(t,i){return on(i).protocol!=on(t).protocol?(It().error(Po,"Illegal replacement of the protocol: ",t),t):(bt(An(i),"The replacement url has invalid protocol: %s",i),i)}getVariableSource(){return this.Mr}}(t,new class extends class{constructor(t){this.ampdoc=t,this.ac=Object.create(null),this.dc=!1,this.fc()}Me(){this.initialize(),this.dc=!0}initialize(){}get(t){return this.dc||this.Me(),this.ac[t]}set(t,i){return yt(-1==t.indexOf("RETURN")),this.ac[t]=this.ac[t]||{sync:void 0,async:void 0},this.ac[t].sync=i,this}setAsync(t,i){return yt(-1==t.indexOf("RETURN")),this.ac[t]=this.ac[t]||{sync:void 0,async:void 0},this.ac[t].async=i,this}setBoth(t,i,s){return this.set(t,i).setAsync(t,s)}getExpr(t,i){this.dc||this.Me();const s=g(g({},this.ac),t);return this.mc(Object.keys(s),i)}mc(t,i){if(this.fc()&&(t=t.filter((t=>this.fc().includes(t)))),i&&(t=t.filter((t=>i[t]))),0===t.length)return/_^/g;t.sort(((t,i)=>i.length-t.length));const s=t.map((t=>"$"===t[0]?"\\"+t:t)).join("|");return new RegExp("\\$?("+s+")","g")}fc(){return this._c?this._c:this.ampdoc.isSingleDoc()&&wr(this.ampdoc.getRootNode())?(this._c=[""],this._c):void 0}}{constructor(t){super(t),this.Ac=null,this.gc={}}Pc(t,i,s){return this.setBoth(t,(()=>_o(this.ampdoc.win,i,s)),(()=>mo(this.ampdoc.win,i,s)))}initialize(){const{win:t}=this.ampdoc,i=this.ampdoc.getHeadNode(),s=vs(this.ampdoc);_s(this.ampdoc).then((t=>{this.Ac=t})),this.set("RANDOM",(()=>Math.random()));const n=Object.create(null);this.set("COUNTER",(t=>n[t]=1+(0|n[t]))),this.set("CANONICAL_URL",(()=>this.vc().canonicalUrl)),this.set("CANONICAL_HOST",(()=>on(this.vc().canonicalUrl).host)),this.set("CANONICAL_HOSTNAME",(()=>on(this.vc().canonicalUrl).hostname)),this.set("CANONICAL_PATH",(()=>on(this.vc().canonicalUrl).pathname)),this.setAsync("DOCUMENT_REFERRER",(()=>Ps(this.ampdoc).getReferrerUrl())),this.setAsync("EXTERNAL_REFERRER",(()=>Ps(this.ampdoc).getReferrerUrl().then((i=>i?on(vn(i)).hostname===$s.getHostname(t)?null:i:null)))),this.set("TITLE",(()=>{const i=t.document;return i.originalTitle||i.title})),this.set("AMPDOC_URL",(()=>mn(this.Ec(t.location.href)))),this.set("AMPDOC_HOST",(()=>{const i=on(t.location.href);return i&&i.host})),this.set("AMPDOC_HOSTNAME",(()=>{const i=on(t.location.href);return i&&i.hostname}));const r=()=>{const t=this.vc();return mn(this.Ec(t.sourceUrl))};this.setBoth("SOURCE_URL",(()=>r()),(()=>jh().then((()=>r())))),this.set("SOURCE_HOST",(()=>on(this.vc().sourceUrl).host)),this.set("SOURCE_HOSTNAME",(()=>on(this.vc().sourceUrl).hostname)),this.set("SOURCE_PATH",(()=>on(this.vc().sourceUrl).pathname)),this.set("PAGE_VIEW_ID",(()=>this.vc().pageViewId)),this.setAsync("PAGE_VIEW_ID_64",(()=>this.vc().pageViewId64)),this.setBoth("QUERY_PARAM",((t,i="")=>this.Tc(t,i)),((t,i="")=>jh().then((()=>this.Tc(t,i))))),this.set("FRAGMENT_PARAM",((t,i="")=>this.Rc(t,i)));let h=null;this.setBoth("CLIENT_ID",(t=>h?h[t]:null),((t,s,n,r)=>{bt(t,"The first argument to CLIENT_ID, the fallback Cookie name, is required");let o=e();return s&&(o=(t=>Wi(t,"userNotificationManager","amp-user-notification"))(i).then((t=>t.get(s)))),es(this.ampdoc).then((i=>(r="true"==r,i.get({scope:t,createCookieIfNotPresent:!0,cookieName:n||void 0,disableBackup:r},o)))).then((i=>(h||(h=Object.create(null)),i&&"_ga"==(n||t)&&("string"==typeof i?i=i.replace(/^(GA1|1)\.[\d-]+\./,""):Rt().error(Po,"non-string cid, what is it?",Object.keys(i))),h[t]=i,i)))})),this.setAsync("VARIANT",(t=>this.Ic((i=>{const s=i[t];return bt(void 0!==s,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+t),null===s?"none":s}),"VARIANT"))),this.setAsync("VARIANTS",(()=>this.Ic((t=>{const i=[];for(const s in t){const e=t[s];i.push(s+"."+(e||"none"))}return i.join("!")}),"VARIANTS"))),this.setBoth("AMP_GEO",(t=>Eo(this.Ac,t)),(t=>this.Mc((i=>Eo(i,t)),"AMP_GEO"))),this.set("TIMESTAMP",go("getTime")),this.set("TIMESTAMP_ISO",go("toISOString")),this.set("TIMEZONE",go("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(()=>s.getScrollHeight())),this.set("SCROLL_WIDTH",(()=>s.getScrollWidth())),this.set("VIEWPORT_HEIGHT",(()=>s.getHeight())),this.set("VIEWPORT_WIDTH",(()=>s.getWidth()));const{screen:o}=t;this.set("SCREEN_WIDTH",vo(o,"width")),this.set("SCREEN_HEIGHT",vo(o,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",vo(o,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",vo(o,"availWidth")),this.set("SCREEN_COLOR_DEPTH",vo(o,"colorDepth")),this.set("DOCUMENT_CHARSET",(()=>{const i=t.document;return i.characterSet||i.charset})),this.set("BROWSER_LANGUAGE",(()=>{const i=t.navigator;return(i.language||i.userLanguage||i.browserLanguage||"").toLowerCase()})),this.set("USER_AGENT",(()=>t.navigator.userAgent)),this.setBoth("UACH",(t=>{var i;return null!==(i=this.gc[t])&&void 0!==i?i:""}),(i=>this.yc(i,t))),this.Pc("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.Pc("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.Pc("TCP_CONNECT_TIME","connectStart","connectEnd"),this.Pc("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.Pc("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.Pc("REDIRECT_TIME","navigationStart","fetchStart"),this.Pc("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.Pc("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(()=>this.wc((t=>t.getAccessReaderId()),"ACCESS_READER_ID"))),this.setAsync("AUTHDATA",(t=>(bt(t,"The first argument to AUTHDATA, the field, is required"),this.wc((i=>i.getAuthdataField(t)),"AUTHDATA")))),this.setAsync("VIEWER",(()=>Ps(this.ampdoc).getViewerOrigin().then((t=>null==t?"":t)))),this.setAsync("TOTAL_ENGAGED_TIME",(()=>Zi(i).then((t=>t.getTotalEngagedTime())))),this.setAsync("INCREMENTAL_ENGAGED_TIME",((t,s)=>Zi(i).then((i=>i.getIncrementalEngagedTime(t,"false"!==s))))),this.set("NAV_TIMING",((i,s)=>(bt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),_o(t,i,s)))),this.setAsync("NAV_TIMING",((i,s)=>(bt(i,"The first argument to NAV_TIMING, the start attribute name, is required"),mo(t,i,s)))),this.set("NAV_TYPE",(()=>Ao(t,"type"))),this.set("NAV_REDIRECT_COUNT",(()=>Ao(t,"redirectCount"))),this.set("AMP_VERSION",(()=>"2603032146000")),this.set("BACKGROUND_STATE",(()=>this.ampdoc.isVisible()?"0":"1")),this.setAsync("VIDEO_STATE",((t,i)=>{return(s=this.ampdoc,xi(s,"video-manager")).getVideoStateProperty(t,i);var s})),this.setAsync("AMP_STATE",(t=>{const i=this.ampdoc.getRootNode(),s=i.documentElement||i;return ss(s).then((i=>i&&i.getStateValue(t)||""))}))}Ec(t){const{replaceParams:i}=this.vc();return i?function(t,i){const s=Y(on(t).search),e={},n=Object.keys(i);for(let t=0;t<n.length;t++)m(s,n[t])||(e[n[t]]=i[n[t]]);return an(t,e)}(Pn(t),i):t}vc(){return rs(this.ampdoc)}wc(t,i){const s=this.ampdoc.getHeadNode();return Promise.all([Qi(s),Ji(s)]).then((s=>{const e=s[0],n=s[1],r=e||n;return r?e&&n?t(n)||t(e):t(r):(It().error(Po,"Access or subsciptions service is not installed to access: ",i),null)}))}Tc(t,i){bt(t,"The first argument to QUERY_PARAM, the query string param is required");const s=Y(on(Pn(this.ampdoc.win.location.href)).search),{replaceParams:e}=this.vc();return void 0!==s[t]?s[t]:e&&void 0!==e[t]?e[t]:i}Rc(t,i){bt(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),bt("string"==typeof t,"param should be a string");const s=Q(this.ampdoc.win);return void 0===s[t]?i:s[t]}Ic(t,i){return(s=this.ampdoc.getHeadNode(),Ki(s,"variant","amp-experiment",!0)).then((t=>(bt(t,"To use variable %s, amp-experiment should be configured",i),t.getVariants()))).then((i=>t(i)));var s}Mc(t,i){return null!==this.Ac?t(this.Ac):_s(this.ampdoc.getHeadNode()).then((s=>(bt(s,"To use variable %s, amp-geo should be configured",i),this.Ac=s,t(s))))}yc(t,i){return t in this.gc?Promise.resolve(this.gc[t]):(null===(s=i.navigator)||void 0===s||null===(e=s.userAgentData)||void 0===e||null===(n=e.getHighEntropyValues([t]))||void 0===n?void 0:n.then((i=>{const s="object"!=typeof i[t]?i[t]:JSON.stringify(i[t]);return this.gc[t]=s,s})))||Promise.resolve("");var s,e,n}}(t))}))}(t),function(t){Vi(t,"action",class{constructor(t,i){this.ampdoc=t,this.qu=i||t.getRootNode(),this.bc=this.ampdoc.isSingleDoc()&&wr(this.qu),this.Vr=this.bc?Nr:null,this.Vc=p(),this.Sc=p(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}addEvent(t){if("tap"==t)this.qu.addEventListener("click",(i=>{if(!i.defaultPrevented){const s=i.target;this.trigger(s,t,i,3)}})),this.qu.addEventListener("keydown",(i=>{const{key:s,target:e}=i,n=e;if("Enter"==s||" "==s){const s=n.getAttribute("role"),e=s&&m(Dr,s.toLowerCase());!i.defaultPrevented&&e&&this.trigger(n,t,i,3)&&i.preventDefault()}}));else if("submit"==t)this.qu.addEventListener(t,(i=>{const s=i.target;this.trigger(s,t,i,3)}));else if("change"==t)this.qu.addEventListener(t,(i=>{const s=i.target;this.xc(i),this.trigger(s,t,i,3)}));else if("input-debounced"==t){const i=G(this.ampdoc.win,(i=>{const s=i.target;this.trigger(s,t,i,3)}),300);this.qu.addEventListener("input",(t=>{const s=new $r(t);this.xc(s),i(s)}))}else if("input-throttled"==t){const i=z(this.ampdoc.win,(i=>{const s=i.target;this.trigger(s,t,i,3)}),100);this.qu.addEventListener("input",(t=>{const s=new $r(t);this.xc(s),i(s)}))}else"valid"!=t&&"invalid"!=t||this.qu.addEventListener(t,(i=>{const s=i.target;this.trigger(s,t,i,3)}))}addGlobalTarget(t,i){this.Vc[t]=i}addGlobalMethodHandler(t,i,s=2){this.Sc[t]={handler:i,minTrust:s}}trigger(t,i,s,e,n){return this.Oc(t,i,s,e,n)}execute(t,i,s,e,n,r,h){const o=new Lr(t,i,s,e,n,r,h);this.Cc(o)}installActionHandler(t,i){if(yt(Ur(t.getAttribute("id")||"")||t.tagName.toLowerCase()in kr),t[Cr])return void Rt().error(Sr,`Action handler already installed for ${t}`);t[Cr]=i;const s=t[Or];v(s)&&ps(wt(t)).delay((()=>{s.forEach((t=>{try{i(t)}catch(i){Rt().error(Sr,"Action execution failed:",t,i)}})),t[Or].length=0}),1)}hasAction(t,i,s){return!!this.kc(t,i,s)}hasResolvableAction(t,i,s){const e=this.kc(t,i,s);return!!e&&e.actionInfos.some((t=>{const{target:i}=t;return!!this.Nc(i)}))}hasResolvableActionForTarget(t,i,s,e){const n=this.kc(t,i,e);return!!n&&n.actionInfos.some((t=>{const{target:i}=t;return this.Nc(i)==s}))}Nc(t){return this.Vc[t]?this.qu:this.qu.getElementById(t)}setAllowlist(t){yt(t.every((t=>t.tagOrTarget&&t.method))),this.Vr=t}addToAllowlist(t,i,s){s&&s.includes("email")!==this.bc||(this.Vr||(this.Vr=[]),v(i)||(i=[i]),i.forEach((i=>{this.Vr.some((s=>s.tagOrTarget==t&&s.method==i))||this.Vr.push({tagOrTarget:t,method:i})})))}Oc(t,i,s,e,n){const r=this.kc(t,i);if(!r)return!1;const h=Math.random();let o=null;return r.actionInfos.forEach((u=>{const{args:l,method:c,str:a,target:d}=u,f=function(t,i,s){if(!t)return t;const e=s||{};if(i){const t=function(t){return t.detail}(i);t&&(e.event=t)}const n=p();return Object.keys(t).forEach((i=>{let s=t[i];if("object"==typeof s&&s.expression){const t=s.expression,i=function(t,i){if("."==i)return t;const s=i.split(".");let e=t;for(const t of s){if(!(t&&e&&void 0!==e[t]&&"object"==typeof e&&m(e,t))){e=void 0;break}e=e[t]}return e}(e,t);s=void 0===i?null:i}e[s]?n[i]=e[s]:n[i]=s})),n}(l,s,n),_=()=>{const n=this.Nc(d);if(!n)return void this.Dc(`Target "${d}" not found for action [${a}].`);const o=new Lr(n,c,f,t,r.node,s,e,i,n.tagName||d,h);return this.Cc(o)};o=o?o.then(_):_()})),r.actionInfos.length>=1}Dc(t,i){if(i){const s=It().createError(`[Action] ${t}`);throw Vn(s,i),s}It().error(Sr,t)}Cc(t){const{method:i,tagOrTarget:s}=t;if(this.Vr&&!function(t,i){let{method:s}=t;const{node:e,tagOrTarget:n}=t;s===Yn&&"function"==typeof e.getDefaultActionAlias&&(s=e.getDefaultActionAlias());const r=s.toLowerCase(),h=n.toLowerCase();return i.some((t=>(t.tagOrTarget.toLowerCase()===h||"*"===t.tagOrTarget)&&t.method.toLowerCase()===r))}(t,this.Vr))return this.Dc(`"${s}.${i}" is not allowlisted ${JSON.stringify(this.Vr)}.`),null;const e=this.Vc[s];if(e)return e(t);const n=t.node,r=this.Sc[i];if(r&&t.satisfiesTrust(r.minTrust))return r.handler(t);const h=n.tagName.toLowerCase();if(Ur(h))return n.enqueAction?n.enqueAction(t):this.Dc(`Unrecognized AMP element "${h}".`,n),null;const o=kr[h];if(Ur(n.getAttribute("id")||"")||o&&o.indexOf(i)>-1){const i=n[Cr];return i?i(t):(n[Or]=n[Or]||[],n[Or].push(t)),null}return this.Dc(`Target (${s}) doesn't support "${i}" action.`,t.caller),null}kc(t,i,s){let e=t;for(;e;){if(s&&e==s)return null;const t=this.Lc(e,i);if(t&&!(n=e).disabled&&!n.matches(":disabled"))return{node:e,actionInfos:yt(t)};e=e.parentElement}var n;return null}Lc(t,i){const s=this.Uc(t,i);return s&&s[i]||null}Uc(t,i){let s=t[xr];return void 0===s&&(s=null,t.hasAttribute("on")?(s=Br(t.getAttribute("on"),t),t[xr]=s):t.hasAttribute("execute")&&(s=Br(`${i}:${t.getAttribute("execute")}`,t),t[xr]=s)),s}setActions(t,i){t.setAttribute("on",i),delete t[xr]}xc(t){const i=p(),{target:s}=t;if(void 0!==s.value&&(i.value=s.value),"INPUT"==s.tagName&&(i.valueAsNumber=Number(s.value)),void 0!==s.checked&&(i.checked=s.checked),void 0===s.min&&void 0===s.max||(i.min=s.min,i.max=s.max),s.files&&(i.files=(e=s.files,e?Array.prototype.slice.call(e):[]).map((t=>({"name":t.name,"size":t.size,"type":t.type})))),Object.keys(i).length>0)try{t.detail=i}catch(t){}var e}},!0)}(t),function(t){Vi(t,"standard-actions",class{constructor(t){this.ampdoc=t;const i=t.getHeadNode();this.$c=us(t),this.Al=vs(t),this.Fc(Xi(i)),this.Bc()}Fc(t){t.addGlobalTarget("AMP",this.Hc.bind(this)),t.addGlobalMethodHandler("hide",this.jc.bind(this)),t.addGlobalMethodHandler("show",this.zc.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.Gc.bind(this)),t.addGlobalMethodHandler("scrollTo",this.qc.bind(this)),t.addGlobalMethodHandler("focus",this.Wc.bind(this)),t.addGlobalMethodHandler("toggleClass",this.Kc.bind(this)),t.addGlobalMethodHandler("copy",this.Yc.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.Jc.bind(this))}Bc(){this.Qc()&&this.ampdoc.waitForBodyOpen().then((t=>{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(i)}))}Qc(){var t,i;try{const t=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(t)return"yes"===t}catch(t){}return null===(t=(i=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(i,"(prefers-color-scheme: dark)").matches}Hc(t){if(!t.satisfiesTrust(2))return null;const{args:i,method:s,node:e}=t,n=wt(e);switch(s){case"pushState":case"setState":const s=e.nodeType===Node.DOCUMENT_NODE?e.documentElement:e;return ss(s).then((i=>(bt(i,"AMP-BIND is not installed."),i.invoke(t))));case"navigateTo":return this.Xc(t);case"closeOrNavigateTo":return this.Zc(t);case"scrollTo":return bt(i.id,"AMP.scrollTo must provide element ID"),t.node=Li(e).getElementById(i.id),this.qc(t);case"goBack":return os(this.ampdoc).goBack(!(!i||!0!==i.navigate)),null;case"print":return n.print(),null;case"copy":return this.Yc(t);case"optoutOfCid":return es(this.ampdoc).then((t=>t.optOut())).catch((t=>{Rt().error(eo,"Failed to opt out of CID",t)}));case"toggleTheme":return this.ta(),null}throw It().createError("Unknown AMP action ",s)}Yc(t){const{args:i,node:s}=t,e=wt(s),n="copy-error";let r;if("AMP"===t.tagOrTarget)r=i.text.trim();else{var h;const i=L(t.node);r=(null!==(h=i.value)&&void 0!==h?h:i.textContent).trim()}const o=function(t,i,s){const n=je(e,`${t}`,{data:{type:i}});Xi(s.caller).trigger(s.caller,t,n,3)};var u,l,c;null!==(l=(u=e.document).defaultView)&&void 0!==l&&null!==(c=l.navigator)&&void 0!==c&&c.clipboard||io(u)?function(t,i,s,e){var n;null!==(n=t.navigator)&&void 0!==n&&n.clipboard?t.navigator.clipboard.writeText(i).then(s,e):io(t.document)&&function(t,i){var s;let e=!1;const n=t.document,r=n.createElement("textarea");xs(r,{"position":"fixed","top":0,"left":0,"width":"50px","height":"50px","padding":0,"border":"none","outline":"none","background":"transparent"}),r.value=i,r.readOnly=!0,r.contentEditable="true",n.body.appendChild(r),null===(s=t.getSelection())||void 0===s||s.removeAllRanges(),r.focus(),r.setSelectionRange(0,i.length);try{e=n.execCommand("copy")}catch(t){}return Bt(r),e}(t,i)?s():e()}(e,r,(()=>{o("copy-success","success",t)}),(()=>{o(n,"error",t)})):o(n,"unsupported",t)}Xc(t){const{args:i,caller:s,method:n,node:r}=t,h=wt(r);let o=e();return s.tagName.startsWith("AMP-")&&(o=s.getImpl().then((t=>{"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),o.then((()=>{var t;(t=this.ampdoc,xi(t,"navigation")).navigateTo(h,i.url,`AMP.${n}`,{target:i.target,opener:i.opener})}),(t=>{It().error(eo,t)}))}ta(){this.ampdoc.waitForBodyOpen().then((t=>{try{const i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";this.Qc()?(t.classList.remove(i),this.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(t.classList.add(i),this.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))}Zc(t){const{node:i}=t,s=wt(i),n=s.parent!=s;let r=!1;return s.opener&&this.ampdoc.isSingleDoc()&&!n&&(s.close(),r=s.closed),r?e():this.Xc(t)}qc(t){const i=t.node,{args:s}=t;let e=s&&s.position,n=s&&s.duration;return e&&!["top","bottom","center"].includes(e)&&(e=void 0),w(n)||(n=void 0),this.Al.animateScrollIntoView(i,e,n)}Wc(t){return Gt(t.node),null}jc(t){const i=t.node;if(i.classList.contains("i-amphtml-element")){const t=i;this.$c.mutateElement(t,(()=>t.collapse()),!0)}else this.$c.mutateElement(i,(()=>Os(i,!1)));return null}zc(t){const{node:i}=t,s=i,e=wt(s);if(s.classList.contains(oe(Qs)))return null;this.$c.measureElement((()=>{"none"==ks(e,s).display&&so(s)}));const n=(r=s).hasAttribute("autofocus")?r:r.querySelector("[autofocus]");var r;return n&&cs(e).isIos()?(this.ia(s,n),this.$c.mutateElement(s,(()=>{}))):this.$c.mutateElement(s,(()=>{this.ia(s,n)})),null}ia(t,i){t.classList.contains("i-amphtml-element")?t.expand():Os(t,!0),i&&Gt(i)}Gc(t){return so(t.node)?this.zc(t):this.jc(t)}Kc(t){const i=t.node,{args:s}=t,e=It().assertString(s.class,"Argument 'class' must be a string.");return no.test(e)||this.$c.mutateElement(i,(()=>{if(void 0!==s.force){const t=It().assertBoolean(s.force,"Optional argument 'force' must be a boolean.");i.classList.toggle(e,t)}else i.classList.toggle(e)})),null}Jc(t){const i=t.node,{args:s}=t;return this.$c.mutateElement(i,(()=>{if(void 0!==(null==s?void 0:s.force)){const t=It().assertBoolean(s.force,"Optional argument 'force' must be a boolean.");i.checked=t}else!0===i.checked?i.checked=!1:i.checked=!0})),null}},!0)}(t),oo(t),function(t){Vi(t,Gh,class{constructor(t){this.ampdoc=t,this.sa=t.getRootNode(),this.Al=vs(this.ampdoc),this.Qe=Ps(this.ampdoc),this.Xn=os(this.ampdoc),this.ah=cs(this.ampdoc.win),this.ea=this.ah.isIos()&&this.ah.isSafari(),this.Au=qt(this.ampdoc.win)&&this.Qe.isOvertakeHistory(),this.na=this.sa!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.ra="inabox"==at(this.ampdoc.win).runtime,this.ha=this.sa.nodeType==Node.DOCUMENT_NODE?this.sa.documentElement:this.sa,this.oa=this.ua.bind(this),this.sa.addEventListener(qh,this.oa),this.sa.addEventListener(Wh,this.oa),this.la=!1,function(t){return t.whenReady().then((()=>!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")))}(this.ampdoc).then((t=>{this.la=t})),this.ku=!1,this.ca=!1,Promise.all([this.Qe.isTrustedViewer(),this.Qe.getViewerOrigin()]).then((t=>{var i;this.ku=t[0],this.ca=(i=t[1],nt.test(hn(i).origin))})),this.aa=null,this.da=new $n,this.fa=new $n}static installAnchorClickInterceptor(t,i){i.document.documentElement.addEventListener("click",Qh.bind(null,t),!0)}cleanup(){this.oa&&(this.sa.removeEventListener(qh,this.oa),this.sa.removeEventListener(Wh,this.oa))}openWindow(t,i,s,e){let n="";!this.ah.isIos()&&this.ah.isChrome()||e||(n+="noopener");const r=zh(t,i,s,n);r&&!e&&(r.opener=null)}navigateTo(t,i,s,e={}){const{opener:n=!1,target:r="_top"}=e;i=this.pa(i);const h=As(this.ha);if(!h.isProtocolValid(i))return void It().error(Gh,"Cannot navigate to invalid protocol: "+i);bt(Kh.includes(r),`Target '${r}' not supported.`);const o=h.getSourceUrl(t.location);i=h.resolveRelativeUrl(i,o),"_blank"!=r?s&&(this.aa||(this.aa=this.ma()),this.aa.includes(s)&&this.navigateToAmpUrl(i,s))||(t.top.location.href=i):this.openWindow(t,i,r,n)}navigateToAmpUrl(t,i){return!!this.Qe.hasCapability("a2a")&&(this.Qe.sendMessage("a2aNavigate",{"url":t,"requestedBy":i}),!0)}ma(){const t=this.sa.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((t=>t.trim())):[]}ua(t){if(t.defaultPrevented)return;const i=Ct(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");i&&i.href&&(t.type==qh?this._a(i,t):t.type==Wh&&this.Aa(i,t))}_a(t,i){this.ga(t);let s=this.Pa(t.href);if(this.va(i,t,s))return;if(this.Ea(i,t,s))return;const e=this.Ta();Jh(s)!=Jh(e)&&(this.Ra(t,i),s=this.Pa(t.href)),this.Ia(i,t,s,e)}Aa(t,i){this.ga(t),this.Ra(t,i)}Ra(t,i){this.da.forEach((s=>{s(t,i)}))}pa(t){return this.fa.forEach((i=>{t=i(t)})),t}ga(t){let i=null;this.la&&!this.na&&(i=function(t,i){const s=Y(on($s.getLocation(t).href).search),e=[];for(let t=0;t<Bh.length;t++){const i=Bh[t];void 0!==s[i]&&e.push(i)}const n=i.getAttribute("data-amp-addparams");let{href:r}=i;n&&(r=an(r,Y(n)));const h=Y(on(r).search);for(let t=e.length-1;t>=0;t--)void 0!==h[e[t]]&&e.splice(t,1);return function(t){let i="";for(let s=0;s<t.length;s++){const e=t[s];i+=0==s?`${e}=QUERY_PARAM(${e})`:`&${e}=QUERY_PARAM(${e})`}return i}(e)}(this.ampdoc.win,t)),ms(t).maybeExpandLink(t,i)}Ea(t,i,s){if(!this.Au)return!1;const e=wt(i),n=i.href,{protocol:r}=s;if("ftp:"==r)return zh(e,n,"_blank"),t.preventDefault(),!0;const h=/^(https?|mailto):$/.test(r);return!(!this.ea||h||(zh(e,n,"_top"),t.preventDefault(),0))}va(t,i,s){return!(!i.hasAttribute("rel")||!i.getAttribute("rel").split(" ").map((t=>t.trim())).includes("amphtml")||!this.navigateToAmpUrl(s.href,"<a rel=amphtml>")||(t.preventDefault(),0))}Ia(t,i,s,e){const n=Jh(s),r=Jh(e);if(s.hash&&n==r)this.Ma(t,s,e);else{let s=(i.getAttribute("target")||"").toLowerCase();(this.na||this.ra)&&"_top"!=s&&"_blank"!=s&&(s="_blank",i.setAttribute("target",s));const{win:r}=this.ampdoc,h=cs(r),o=Ps(i);e.search&&h.isSafari()&&h.getMajorVersion()>=13&&o.isProxyOrigin()&&o.isEmbedded()&&this.ya(r,e,s),this.viewerInterceptsNavigation(n,"intercept_click")&&t.preventDefault()}}ya(t,i,s){const e=i.href,n=`${i.origin}${i.pathname}${i.hash}`;t.history.replaceState(null,"",n);const r=()=>{const i=t.location.href;i==n?t.history.replaceState(null,"",e):Rt().error(Gh,"Unexpected iframe URL change:",i,n)};"_blank"===s?t.setTimeout(r,0):t.addEventListener("pageshow",(function i(s){s.persisted&&(r(),t.removeEventListener("pageshow",i))}))}Ma(t,i,s){if(t.preventDefault(),this.na)return;const e=i.hash.slice(1);let n=null;if(e){const t=St(e);n=this.sa.getElementById(e)||this.sa.querySelector(`a[name="${t}"]`)}i.hash!=s.hash?this.Xn.replaceStateForTarget(i.hash).then((()=>{this.wa(n,e)})):this.wa(n,e)}registerAnchorMutator(t,i){this.da.enqueue(t,i)}registerNavigateToMutator(t,i){this.fa.enqueue(t,i)}wa(t,i){t&&(this.Al.scrollIntoView(t),ps(this.ampdoc.win).delay((()=>this.Al.scrollIntoView(t)),1))}Pa(t){return As(this.ha).parse(t)}Ta(){return this.Pa("")}viewerInterceptsNavigation(t,i){const s=this.Qe.hasCapability("interceptNavigation"),e=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!s||!e||!this.ku&&!this.ca||(this.Qe.sendMessage("navigateTo",{"url":t,"requestedBy":i}),0))}},!0)}(t),function(t){t.whenExtensionsKnown().then((()=>{t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",$o,!0)}))}(t),Vi(t,"loadingIndicator",class{constructor(t){this.ji=t;const{win:i}=t,s=this.ba.bind(this);this.Va=function(t,i,s={}){const{needsRootBounds:e,rootMargin:n,threshold:r}=s,h=qt(i)&&(e||n)?i.document:void 0;return new i.IntersectionObserver(t,{threshold:r,root:h,rootMargin:n})}((t=>t.forEach(s)),i),this.so=new WeakMap}dispose(){this.Va.disconnect()}track(t){this.Va.observe(t)}untrack(t){this.Va.unobserve(t),this.er(t)}ba(t){const{boundingClientRect:i,isIntersecting:s,target:e}=t,{height:n,width:r}=i,h=e,o=s&&r>20&&n>20;let u=this.so.get(h);o!==(u&&u.shown||!1)&&(o&&!u&&(u=this.Sa(h,r,n),this.so.set(h,u)),u&&(u.shown=o,u.container.classList.toggle("amp-hidden",!o),u.loader.classList.toggle("amp-active",o)))}Sa(t,i,s){const e=Date.now(),n=function(t,i,s,e,n=t.win.Date.now()){const r=i.ownerDocument.createElement("div");return function(t,i){return hs(t.win).installExtensionForDoc(t,"amp-loader").then((()=>(t=>Wi(t,"loader","amp-loader"))(i)))}(t,i).then((h=>{const o=t.win.Date.now()-n;h.initializeLoader(i,r,o,s,e)})),r}(this.ji,t,i,s,e),r=Ve(this.ji.win.document)(Uh);return r.appendChild(n),t.appendChild(r),{shown:!1,loader:n,container:r}}er(t){const i=this.so.get(t);i&&(this.so.delete(t),Bt(i.container))}})}(t)}function Go(t){return t.waitForBodyOpen().then((()=>{const i=t.getBody(),s=(e=i,n=()=>!!i.firstElementChild,new Promise((t=>{Ut(e,n,t)})));var e,n;return ps(t.win).timeoutPromise(2e3,s).then((()=>"AMP-STORY"===i.firstElementChild.tagName),(()=>!1))}))}var qo=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function Wo(t){if(null==t)return 0;const i=function(t){let i=t;for(;null!=(t=t.parentNode);)t.nodeName.startsWith("AMP-")&&(i=t);return i}(t),{nodeName:s}=i;return"IMG"===s||"AMP-IMG"===s?1:"VIDEO"===s||"AMP-VIDEO"===s?2:"AMP-CAROUSEL"===s?8:"AMP-BASE-CAROUSEL"===s?16:"AMP-AD"===s?4:!s.startsWith("AMP-")&&i.textContent?32:0}function Ko(t){const i=t.document;if(!i.fonts||!i.fonts.values)return;const s=i.fonts.values();let e;for(;e=s.next();){const t=e.value;if(!t)return;"loading"==t.status&&"display"in t&&"auto"==t.display&&(t.display="swap")}}var Yo=["amp-ad","amp-embed","amp-video"],Qo="extensions",Jo="latest",Xo="__AMP_EXT_LDR";function Zo(t){Yo.forEach((i=>{pr(t,i)}))}function tu(){return{}}function iu(t,i){return`${t}:${i}`}var su,eu="-shadowcsshost",nu=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)";new RegExp("("+eu+nu,"gim"),new RegExp("(-shadowcsscontext"+nu,"gim"),new RegExp(eu,"gim"),new RegExp("-shadowcsscontext","gim"),Et=class{constructor(t,i,s=""){this.win=t,this.J=i,this.Z=this.W(),this.X=s,this.G=null,this.K=function(t){let i=!1,s=null,e=t;return(...t)=>(i||(s=e.apply(self,t),i=!0,e=null),s)}((()=>{t.fetch(`${et}/rtv/012603032146000/log-messages.simple.json`).then((t=>t.json()),pt).then((t=>{t&&(this.G=t)}))})),this.Y=this.assert.bind(this)}W(){var t;const{win:i}=this;return null!==(t=i.console)&&void 0!==t&&t.log&&0!=gt(i)?this.tt():0}tt(t){return this.J(gt(t),!1)}nt(t,i,s){var e,n;if(i>(null!==(e=mt)&&void 0!==e?e:this.Z))return!1;const r=this.win.console,h=null!==(n={1:r.error,3:r.info,2:r.warn}[i])&&void 0!==n?n:r.log,o=this.rt(s),u=`[${t}]`;return y(o[0])?o[0]=u+" "+o[0]:o.unshift(u),h.apply(r,o),!0}fine(t,...i){this.nt(t,4,i)}info(t,...i){this.nt(t,3,i)}warn(t,...i){this.nt(t,2,i)}error(t,...i){if(!this.nt(t,1,i)){var s,e;const n=this.createError.apply(this,i);n.name=t||n.name,null===(s=(e=self).__AMP_REPORT_ERROR)||void 0===s||s.call(e,n)}}expectedError(t,...i){var s,e;this.nt(t,1,i)||null===(s=(e=self).__AMP_REPORT_ERROR)||void 0===s||s.call(e,this.createExpectedError.apply(this,i))}createError(t){return this.et(o.apply(null,arguments))}createExpectedError(t){return this.et(c.apply(null,arguments))}et(t){return t=h(t),this.X?t.message?-1==t.message.indexOf(this.X)&&(t.message+=this.X):t.message=this.X:O(t.message)&&(t.message=C(t.message)),t}rt(t){return v(t[0])?this.st(t[0]):t}st(t){var i;const s=t.shift();return null!==(i=this.G)&&void 0!==i&&i[s]?[this.G[s]].concat(t):[`More info at ${At(s,t)}`]}assert(t,i,s){return v(i)?this.assert.apply(this,[t].concat(this.st(i))):k.apply(null,[this.X].concat(Array.prototype.slice.call(arguments)))}assertElement(t,i){return function(t,i,s){return N(t,i,b(i),"Element expected",s)}(this.Y,t,i)}assertString(t,i){return function(t,i,s){return N(t,i,y(i),"String expected",s)}(this.Y,t,i)}assertNumber(t,i){return function(t,i,s){return N(t,i,"number"==typeof i,"Number expected",s)}(this.Y,t,i)}assertArray(t,i){return function(t,i,s){return N(t,i,v(i),"Array expected",s)}(this.Y,t,i)}assertBoolean(t,i){return function(t,i,s){return N(t,i,!!i===i,"Boolean expected",s)}(this.Y,t,i)}},Rt(),It(),su=function(t,i,s){Vn(i,s),i&&t&&O(i.message)&&!(i.message.indexOf(S)>=0)&&function(t,i){if(is(i).isSingleDoc()){const s={"errorName":t.name,"errorMessage":t.message};!function(t,i,s={},e=!0){var n;(n=t,Ki(n,"amp-analytics-instrumentation","amp-analytics")).then((n=>{n&&n.triggerEventForTarget(t,i,s,e)}))}(function(t){const i=is(t).getSingleDoc().getRootNode();return i.documentElement||i.body||i}(i),"user-error",s,!1)}}(i,t)}.bind(null,self),self.__AMP_REPORT_ERROR=su;var ru,hu="runtime";function ou(t,i){if(t.__AMP_TAG)return e();t.__AMP_TAG=!0;const s=t.AMP||[];wi(t,"extensions",class{constructor(t){this.win=t,this.Qh=is(t),this.Ca={},this.ka=null,this.Na=null,this.Da=null}registerExtension(t,i,s,e,n){var r;const h=s?this.Ca[iu(t,Jo)]:null,o=this.La(t,i,null===(r=null==h?void 0:h.auto)||void 0===r||r);if(o.latest=s,!o.loaded){s&&(this.Ca[iu(t,Jo)]=o);try{var u,l;this.ka=t,this.Na=i,this.Da=s,e(n,n._),o.loaded=!0,null===(u=o.resolve)||void 0===u||u.call(o,o.extension),null==h||null===(l=h.resolve)||void 0===l||l.call(h,o.extension)}catch(t){var c,a;throw o.error=t,null===(c=o.reject)||void 0===c||c.call(o,t),null==h||null===(a=h.reject)||void 0===a||a.call(h,t),t}finally{this.ka=null,this.Na=null,this.Da=null}}}waitForExtension(t,i){const s=this.Ua(this.La(t,i));return ps(this.win).timeoutPromise(16e3,s).catch((i=>{if(!i.message.includes("timeout"))throw i;return It().error(Qo,`Waited over 16s to load extension ${t}.`),s}))}preloadExtension(t,i="0.1"){"amp-embed"==t&&(t="amp-ad");const s=this.La(t,i);return this.$a(t,i,s),this.Ua(s)}installExtensionForDoc(t,i,s="0.1"){const e=t.getRootNode();let n=e[Xo];return n||(n=e[Xo]=p()),n[i]?n[i]:(t.declareExtension(i,s),pr(t.win,i),n[i]=this.preloadExtension(i,s).then((()=>this.installExtensionInDoc(t,i,s))))}reloadExtension(t,i,s){const e=yi(this.win,t,i,s,!1),n=this.Ca[iu(t,i)];return n&&(yt(!n.loaded&&!n.error),n.scriptPresent=!1),e.forEach((i=>i.setAttribute("i-amphtml-loaded-new-version",t))),this.preloadExtension(t,i)}importUnwrapped(t,i,s="0.1",e=!0){const n=yi(t,i,s,e);let r,h=n.length>0?n[0]:null;return h?r=h.__AMP_SCR_LOADED:(h=Ri(this.win,i,s),r=h.__AMP_SCR_LOADED=new Promise(((t,i)=>{h.onload=t,h.onerror=i})),t.document.head.appendChild(h)),r}loadElementClass(t,i="0.1"){return this.preloadExtension(t,i).then((i=>yt(i.elements[t]).implementationClass))}addElement(t,i,s){this.Fa(t).extension.elements[t]={implementationClass:i,css:s},this.addDocFactory((e=>{this.Ba(e,t,i,s)}))}addTemplate(t,i){this.addDocFactory((s=>{!function(t,i,s){xi(t,"templates").Jo(i,s)}(s,t,i)}))}Ba(t,i,s,e){e?function(t,i,s,e,n){const r=t.getHeadNode(),h=function(t,i,s,e){let n=t.__AMP_CSS_SM;n||(n=t.__AMP_CSS_SM=p());const r=e&&"amp-custom"!=e&&"amp-keyframes"!=e,h=r?`amp-extension=${e}`:null;if(h){const s=Je(t,n,h);if(s)return"STYLE"==s.tagName&&s.textContent!==i&&(s.textContent=i),s}const o=(t.ownerDocument||t).createElement("style");o.textContent=i;let u=null;return r?(o.setAttribute("amp-extension",e||""),u=Je(t,n,"amp-runtime")):(e&&o.setAttribute(e,""),u=t.lastChild),function(t,i,s=null){if(!s)return void function(t,i){t.insertBefore(i,t.firstChild)}(t,i);const e=s.nextSibling;t.insertBefore(i,e)}(t,o,u),h&&(n[h]=o),o}(r,function(t,i){const s=t.__AMP_CSS_TR;return s?s(i):i}(r,i),0,n||null);if(s){const i=t.getRootNode();if(sn(i,h))return s(),h;const e=setInterval((()=>{sn(i,h)&&(clearInterval(e),s())}),4)}}(t,e,(()=>{this.Ha(t.win,i,s)}),0,i):this.Ha(t.win,i,s)}Ha(t,i,s){(function(t,i,s){const e=function(t,i){if(i.requiresShadowDom()&&!t.Element.prototype.attachShadow)return hs(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,s);e?e.then((()=>ar(t,i,s))):ar(t,i,s)})(t,i,s),wi(t,i,tu)}addService(t,i){this.Fa(t).extension.services.push({serviceName:t,serviceClass:i}),this.addDocFactory((s=>{Vi(s,t,i,!0)}))}addDocFactory(t,i){const s=this.Fa(i);if(s.docFactories.push(t),this.ka&&this.Qh.isSingleDoc()){const i=this.Qh.getAmpDoc(this.win.document),e=this.ka,n=this.Na,r=this.Da||!1;(i.declaresExtension(e,n)||r&&i.declaresExtension(e,Jo)||s.auto)&&t(i)}}preinstallEmbed(t,i){const s=this.win,e=t.win;!function(t,i){mr(t,i,"amp-img"),mr(t,i,"amp-pixel")}(s,e),Zo(e),i.forEach((({extensionId:i,extensionVersion:s})=>{t.declareExtension(i,s),Yo.includes(i)||pr(e,i)}))}installExtensionsInDoc(t,i){return Promise.all(i.map((({extensionId:i,extensionVersion:s})=>this.installExtensionInDoc(t,i,s))))}installExtensionInDoc(t,i,s="0.1"){return t.declareExtension(i,s),this.Ua(this.La(i,s)).then((()=>{this.La(i,s).docFactories.forEach((s=>{try{s(t)}catch(t){l("Doc factory failed: ",t,i)}}))}))}La(t,i,s){const e=iu(t,i);let n=this.Ca[e];return n||(n={version:i,latest:i==Jo,extension:{elements:{},services:[]},auto:s||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.Ca[e]=n),n}Fa(t){return this.ka||Rt().error(Qo,"unknown extension for ",t),this.La(this.ka||"_UNKNOWN_",this.Na||"")}Ua(t){if(!t.promise)if(t.loaded)t.promise=Promise.resolve(t.extension);else if(t.error)t.promise=Promise.reject(t.error);else{const i=new n;t.promise=i.promise,t.resolve=i.resolve,t.reject=i.reject}return t.promise}$a(t,i,s){if(this.ja(t,i,s)){const e=Ri(this.win,t,i);this.win.document.head.appendChild(e),s.scriptPresent=!0}}ja(t,i,s){if(s.loaded||s.error)return!1;if(void 0===s.scriptPresent){const e=yi(this.win,t,i,s.latest);s.scriptPresent=e.length>0}return!s.scriptPresent}});const r=hs(t);jo(t),Zo(t),t.AMP={win:t,"_":t.AMP?t.AMP._:void 0},t.AMP.config={urls:{thirdParty:tt,thirdPartyFrameHost:it,thirdPartyFrameRegex:st,cdn:et,cdnProxyRegex:X,localhostRegex:nt,errorReporting:rt,betaErrorReporting:ht,localDev:ot,trustedViewerHosts:ut,geoApi:lt}},t.AMP.addGlobalConsentListener=function(){},t.AMP.addGranularConsentListener=function(){},t.AMP.BaseElement=Qn,t.AMP.registerElement=r.addElement.bind(r),t.AMP.registerTemplate=r.addTemplate.bind(r),t.AMP.registerServiceForDoc=r.addService.bind(r),t.AMP.isExperimentOn=Le.bind(null,t),t.AMP.toggleExperiment=Ue.bind(null,t),t.AMP.setLogLevel=_t.bind(null),t.AMP.setTickFunction=(t,i)=>{};const h=i(t,r);function o(i){!function(t,i,s){"function"==typeof i||"high"==i.p?e().then(s):(s.displayName=i.n,jn(t.document,s))}(t,i,(()=>{h.then((()=>{"function"==typeof i?i(t.AMP,t.AMP.za):r.registerExtension(i.n,i.ev,i.l,i.f,t.AMP)}))}))}for(let i=0;i<s.length;i++){const e=s[i];if(uu(t,e))s.splice(i--,1);else if("function"==typeof e||"high"==e.p){try{o(e)}catch(t){Rt().error(hu,"Extension failed: ",t,e.n)}s.splice(i--,1)}}!function(t,i){t.document.body&&!function(t){return Qe(t).length>0}(t)?ps(t).delay(i,1):i()}(t,(()=>{t.AMP.push=function(i){uu(t,i)||o(i)};for(let i=0;i<s.length;i++){const e=s[i];if(!uu(t,e))try{o(e)}catch(t){Rt().error(hu,"Extension failed: ",t,e.n)}}s.length=0})),t.AMP.push||(t.AMP.push=s.push.bind(s)),cs(t).isIos()&&Ss(t.document.documentElement,"cursor","pointer");const u=hs(t);return ei(t)&&u.preloadExtension("amp-resize-observer-polyfill"),ti(t)&&u.preloadExtension("amp-intersection-observer-polyfill"),h}function uu(t,i){if("function"==typeof i)return!1;if(!i.m)return!0;const{v:s}=i;return"2603032146000"!=s&&(hs(t).reloadExtension(i.n,i.ev,i.l),!0)}function lu(t,i){jn(self.document,(function(){jo(self),zo(t),i.coreServicesAvailable(),function(t){const i=new n,{promise:s,resolve:r}=i;Fh=ps(t).timeoutPromise(8e3,s,"TrackImpressionPromise timeout").catch((t=>{}));const h=Ps(t.document.documentElement),o=h.isTrustedViewer(),u=h.getReferrerUrl().then((t=>function(t){const i=on(t);return"https:"==i.protocol&&Hh.some((t=>t.test(i.hostname)))}(t)));Promise.all([o,u]).then((i=>{const s=i[0],n=i[1];if(!s&&!n&&!Le(t,"alp"))return void r();const h=function(t){const i=Ps(t.document.documentElement);return i.getParam("replaceUrl")?i.hasCapability("replaceUrl")?i.sendMessageAwaitResponse("getReplaceUrl",void 0).then((t=>{t&&"object"==typeof t&&i.replaceUrl(t.replaceUrl||null)}),(t=>{})):(i.replaceUrl(i.getParam("replaceUrl")||null),e()):e()}(t),o=function(t){const i=ts(t.document.documentElement),s=Ps(i).getParam("click");return s?0!=s.indexOf("https://")?e():($s.getLocation(t).hash&&($s.getLocation(t).hash=""),i.whenFirstVisible().then((()=>function(t,i){return Es(t).fetchJson(i,{credentials:"include"}).then((t=>204==t.status?null:t.json()))}(t,s))).then((i=>{!function(t,i){if(!i)return;const s=i.location,e=i.tracking_url||s;if(e&&!_n(e)&&((new Image).src=e),s){if(!t.history.replaceState)return;const i=Ps(t.document.documentElement),e=an($s.getLocation(t).href,Y(on(s).search));t.history.replaceState(null,"",e),i.maybeUpdateFragmentForCct()}}(t,i)})).catch((t=>{}))):e()}(t);Promise.all([h,o]).then((()=>{r()}),(()=>{}))}))}(self)})),jn(self.document,(function(){ou(self,(t=>(function(t){const{documentElement:i}=t.document,s=is(t).getSingleDoc();t.AMP.ampdoc=s;const e=Ps(i);t.AMP.viewer=e;const n=vs(i);t.AMP.viewport={},t.AMP.viewport.getScrollLeft=n.getScrollLeft.bind(n),t.AMP.viewport.getScrollWidth=n.getScrollWidth.bind(n),t.AMP.viewport.getWidth=n.getWidth.bind(n)}(t),function(t){t.AMP.installAmpdocServices=zo.bind(null);{const i=t.document.querySelector("style[amp-runtime]");t.AMP.combinedCss=i?i.textContent:""}}(t),Ft(t.document).then((()=>{fr(t.AMP.ampdoc)})))))})),jn(self.document,(function(){!function(t){!function(t){_r(t,Pr,vr)}(t),function(t){_r(t,Mr,Rr)}(t),function(t){_r(t,"amp-layout",Er)}(t)}(self)})),jn(self.document,(function(){fr(t),Ei(self.document).then((()=>ur()))})),jn(self.document,(function(){(function(t){const{documentElement:i}=t.document;"0"==Ps(i).getParam("p2r")&&cs(t).isChrome()&&new class{constructor(t,i){this.hf=t,this.Al=i,this.t_=!1,this.i_=0,this.s_=this.hp.bind(this),this.e_=this.lp.bind(this),this.n_=this.cp.bind(this),this.r_=this.h_.bind(this),this.hf.addEventListener("touchstart",this.s_,!0)}cleanup(){this.o_(),this.hf.removeEventListener("touchstart",this.s_,!0)}hp(t){this.t_||!t.touches||1!=t.touches.length||this.Al.getScrollTop()>0||this.u_(t.touches[0].clientY)}u_(t){this.t_=!0,this.i_=t,this.hf.addEventListener("touchmove",this.e_,!0),this.hf.addEventListener("touchend",this.n_,!0),this.hf.addEventListener("touchcancel",this.r_,!0)}o_(){this.t_=!1,this.i_=0,this.hf.removeEventListener("touchmove",this.e_,!0),this.hf.removeEventListener("touchend",this.n_,!0),this.hf.removeEventListener("touchcancel",this.r_,!0)}lp(t){if(!this.t_)return;const i=t.touches[0].clientY-this.i_;i>0&&t.preventDefault(),0!=i&&this.o_()}cp(t){this.o_()}h_(t){this.o_()}}(t.document,vs(i))})(self),function(t){const{win:i}=t;Vr(i.document)&&t.isSingleDoc()&&!i.document.documentElement.hasAttribute("data-amp-auto-lightbox-disable")&&zn(t,(()=>{Go(t).then((s=>{s||hs(i).installExtensionForDoc(t,"amp-auto-lightbox")}))}),10)}(t),function(t){const{win:i}=t;Vr(i.document)&&cs(t.win).isStandalone()&&zn(t,(()=>{hs(i).installExtensionForDoc(t,"amp-standalone").then((()=>Wi(t.getBody(),"standalone","amp-standalone"))).then((t=>t.initialize()))}),10)}(t),function(t){const i=t.location.href;if(i.startsWith("about:"))return;let s=!1;const e=Q(t);ft(t,e)&&(s="0"!==e.validate),s&&function(t,i){const s=t.createElement("script");if(self.trustedTypes&&self.trustedTypes.createPolicy){const t=self.trustedTypes.createPolicy("validator-integration#loadScript",{createScriptURL:function(t){return"https://cdn.ampproject.org/v0/validator_wasm.js"===t?t:""}});s.src=t.createScriptURL(i)}else s.src=i;Qt(t,s);const e=We(s).then((()=>{t.head.removeChild(s)}),(()=>{}));return t.head.appendChild(s),e}(t.document,`${et}/v0/validator_wasm.js`).then((()=>{amp.validator.validateUrlAndLog(i,t.document)}))}(self),function(t){yt(t.defaultView);const i=t.defaultView;Ft(t).then((()=>function(t){const i=Qe(t).map((i=>{const s=function(t,i){return Bi(t,i)}(t,i).then((t=>t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((()=>t)):t));return ps(t).timeoutPromise(3e3,s,`Render timeout waiting for service ${i} to be ready.`)}));return Promise.all(i)}(i))).catch((t=>(l(t),[]))).then((s=>{Xe=!0,t.body.getBoundingClientRect(),tn(t),Li(t).signals().signal(Ie),s.length>0&&ds(t.documentElement).schedulePass(1,!0);try{const t=ls(i);t.tick("mbv"),t.flush()}catch(t){}}))}(self.document),function(t){Ei(t).then((()=>{const i=t.defaultView;if(i){const s=as(i),e=rs(t.documentElement),n=ts(t);s.url(n,e.sourceUrl),s.url(n,e.canonicalUrl)}}))}(self.document)}),!0),jn(self.document,(function(){i.tick("e_is"),ds(t).ampInitComplete(),i.flush()}))}self.location&&(self.location.originalHash=self.location.hash);try{!function(t){t.onerror=On,t.addEventListener("unhandledrejection",(t=>{!t.reason||t.reason.message!==Rn&&t.reason.message!==yn&&"AbortError"!==t.reason.message?Vn(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t,i,s){wi(t,"ampdoc",(function(){return new class{constructor(t,i,s){this.win=t,this.xa=null,i&&(this.xa=new qs(t,{params:Ys(t,s)}),t.document.__AMPDOC=this.xa)}isSingleDoc(){return!!this.xa}getSingleDoc(){return yt(this.xa)}Oa(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null}getAmpDocIfAvailable(t){let i=t;for(;i;){const s=this.Oa(t);if(s)return s;const e=jt(i);if(!e)break;const n=e.__AMPDOC;if(n)return n;i=e.host?e.host:Di(e,this.win)}return null}getAmpDoc(t){const i=this.getAmpDocIfAvailable(t);if(!i)throw Rt().createError("No ampdoc found for",t);return i}installShadowDoc(t,i,s){yt(!i.__AMPDOC);const e=new Ws(this.win,t,i,s);return i.__AMPDOC=e,e}installFieDoc(t,i,s){const e=i.document;yt(!e.__AMPDOC);const n=yt(i.frameElement),r=new Ks(i,t,this.getAmpDoc(n),s);return e.__AMPDOC=r,r}}(t,!0,void 0)}))}(self),ru=is(self)}catch(t){throw Ze(self.document),t}jn(self.document,(function(){const t=ru.getAmpDoc(self.document);Zh(self),wi(self,"performance",class{constructor(t){this.win=t,this.Sm=nh(j(t,16)),this.Om=[],this.km=t.performance.timeOrigin||t.performance.timing.navigationStart,this.ji=null,this.Qe=null,this.Ei=null,this.Cm=null,this.Lm=!1,this.Nm=!1,this.Dm=p(),this.Um=void 0,this.$m=new Ms,this.Fm=0,this.zm=[],this.Hm=0;const i=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(i.includes("paint")||this.$m.rejectSignal("fcp",Rt().createExpectedError("First Contentful Paint not supported")),this.Bm=i.includes("layout-shift"),!this.Bm){const t=Rt().createExpectedError("Cumulative Layout Shift not supported");this.$m.rejectSignal(hi,t),this.$m.rejectSignal(ui,t)}this.jm=i.includes("first-input"),this.jm||this.$m.rejectSignal("fid",Rt().createExpectedError("First Input Delay not supported")),this.Gm=i.includes("largest-contentful-paint"),this.Gm||this.$m.rejectSignal("lcp",Rt().createExpectedError("Largest Contentful Paint not supported")),this.qm=i.includes("navigation"),this.Wm=i.includes("event")&&Le(t,"interaction-to-next-paint"),this.Wm||this.$m.rejectSignal(ci,Rt().createExpectedError("Interaction to next paint not supported")),this.Km=this.Km.bind(this),this.addEnabledExperiment("rtv-"+at(this.win).rtvVersion),vi(t.document).then((()=>{this.tick("dr"),this.flush()})),Ei(t.document).then((()=>this.Ym())),Ei(t.document).then((()=>this.Qm(40))),this.Xm(),this.Jm=!1,this.Zm=G(t,(()=>{this.tg()}),6e3)}coreServicesAvailable(){const{documentElement:t}=this.win.document;this.ji=ts(t),this.Qe=Ps(t),this.Ei=ds(t),this.Cm=rs(this.ji),this.Nm=this.Qe.isEmbedded()&&"1"===this.Qe.getParam("csi"),this.ji.onVisibilityChanged(this.flush.bind(this)),this.ig();const i=this.Qe.whenMessagingReady();return this.ji.whenFirstVisible().then((()=>{this.tick("ofv"),this.flush()})),(this.Gm||this.Bm)&&this.ji.onVisibilityChanged(this.Km),i?i.then((()=>{this.tickDelta("msr",this.win.performance.now()),this.tick("timeOrigin",void 0,this.km);const t=this.ji.getMetaByName("amp-usqp");return t&&t.split(",").forEach((t=>{this.addEnabledExperiment("ssr-"+t)})),this.eg()})).then((()=>{this.Lm=!0,this.sg(),this.flush()})):e()}eg(){return Go(is(this.win).getSingleDoc()).then((t=>{t&&this.addEnabledExperiment("story")}))}Ym(){this.tick("ol"),this.flush()}Xm(){if("inabox"===at(this.win).runtime)return;let t=!1,i=!1,s=!1,e=!1;const n=n=>{if("first-paint"!=n.name||t)if("first-contentful-paint"!=n.name||i)if("first-input"!==n.entryType||s)"layout-shift"===n.entryType?n.hadRecentInput||(this.ng(n),this.Hm+=n.value):"largest-contentful-paint"===n.entryType?this.rg(n):"navigation"!=n.entryType||e?"event"==n.entryType&&n.interactionId&&this.Qm(n.duration):(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((t=>this.tick(t,n[t]))),e=!0);else{const t=n.processingStart-n.startTime;this.tickDelta("fid",t),s=!0}else{const t=n.startTime+n.duration;this.tickDelta("fcp",t),this.tickSinceVisible("fcpv",t),i=!0}else this.tickDelta("fp",n.startTime+n.duration),t=!0},r=[];this.win.PerformancePaintTiming&&(this.win.performance.getEntriesByType("paint").forEach(n),r.push("paint")),this.jm&&this.og(n,{type:"first-input",buffered:!0}),this.Bm&&this.og(n,{type:"layout-shift",buffered:!0}),this.Gm&&this.og(n,{type:"largest-contentful-paint",buffered:!0}),this.qm&&this.og(n,{type:"navigation",buffered:!0}),this.Wm&&this.og(n,{type:"event",durationThreshold:40,buffered:!0}),r.length>0&&this.og(n,{entryTypes:r})}og(t,i){try{new this.win.PerformanceObserver((i=>{i.getEntries().forEach(t),this.flush()})).observe(i)}catch(t){}}hg(){const t=this.ji.getVisibilityState();return t===Ts.INACTIVE||t===Ts.HIDDEN}Km(){this.hg()&&(this.lg(),this.tg())}ag(){if(!this.Jm){this.Jm=!0;const{win:t}=this,i=parseInt(ks(t,t.document.body).getPropertyValue("--google-font-exp"),10);i>=0&&this.addEnabledExperiment(`google-font-exp=${i}`)}}lg(){this.Bm&&(this.ag(),this.ug())}ng(t){if(!this.ji)return;if(this.hg())return;const i=this.zm;if(i.length>0){const s=i[0],e=i[i.length-1];if(t.startTime-e.startTime<1e3&&t.startTime-s.startTime<5e3)return void i.push(t);this.tg()}i.push(t),this.Zm()}tg(){const t=this.zm,i=this.$m.get(hi);let s=0,e=0;for(const i of t){if(i.sources)for(const t of i.sources)s|=Wo(t.node);e+=i.value}t.length=0,this.ag(),(null==i||e>i)&&(this.$m.reset(hi),this.$m.reset(oi),this.tickDelta(hi,e),this.tickDelta(oi,s),this.flush())}Qm(t){if(!this.ji)return;const i=this.$m.get(ci);(null==i||t>i)&&(this.tickDelta(ci,t-(null!=i?i:0)),this.flush())}ug(){0===this.Fm?(this.tickDelta(ui,this.Hm),this.flush(),this.Fm=1):1===this.Fm&&(this.tickDelta("cls-2",this.Hm),this.flush(),this.Fm=2)}rg(t){const{element:i,startTime:s}=t,e=Wo(i);this.tickDelta("lcpt",e),this.tickDelta("lcp",s),this.tickSinceVisible("lcpv",s),this.flush()}ig(){const t=!this.ji.hasBeenVisible();let i=-1;this.ji.whenFirstVisible().then((()=>{i=this.win.performance.now(),this.mark("visible")})),this.cg().then((()=>{if(t){const t=i>-1?this.win.performance.now()-i:0;this.ji.whenFirstVisible().then((()=>{this.tickDelta(li,t)})),this.dg(t),this.mark(li)}else this.tick(li),this.dg(this.win.performance.now()-i);this.flush()}))}cg(){return this.Ei.whenFirstPass().then((()=>{const{documentElement:t}=this.win.document,i=vs(t).getSize();return Jt(0,0,i.width,i.height),s=t,this.win,function(t,i){const s=ts(t);return s.signals().whenSignal(Nn).then((()=>{const t=ds(s).get().filter((t=>!(!t.prerenderAllowed()||qo.includes(t.element.tagName)))).map((t=>t.element));return 0===t.length?Promise.resolve([]):new Promise((i=>{const{win:e}=s,n=new e.IntersectionObserver((t=>{n.disconnect();const s=[];for(let i=0;i<t.length;i++){const{isIntersecting:e,target:n}=t[i];e&&s.push(n)}i(s)}),{root:qt(e)?e.document:null,threshold:.01});for(let i=0;i<Math.min(t.length,100);i++)n.observe(t[i])})).then((t=>Promise.all(t.map((t=>t.whenLoaded())))))}))}(s);var s}))}tick(t,i,s){yt(null==i||null==s);const e={"label":t};let n;null!=i?e.delta=n=Math.max(i,0):null!=s?e.value=s:(this.mark(t),n=this.win.performance.now(),e.value=this.km+n),this.win.dispatchEvent(je(this.win,"perf",{label:t,delta:n})),this.Lm&&this.Nm?this.Qe.sendMessage("tick",e):this.fg(e),this.$m.signal(t,n)}mark(t){var i,s;null===(i=(s=this.win.performance).mark)||void 0===i||i.call(s,t)}tickDelta(t,i){this.tick(t,i)}tickSinceVisible(t,i){var s,e;const n=null==i?this.win.performance.now():i,r=this.km+n,h=null!==(s=this.Qe)&&void 0!==s&&s.isEmbedded()?null===(e=this.ji)||void 0===e?void 0:e.getFirstVisibleTime():this.km,o=h?Math.max(r-h,0):0;this.tickDelta(t,o)}flush(){this.Lm&&this.Nm&&(null==this.Um&&(this.Um=Object.keys(this.Dm).join(",")),this.Qe.sendMessage("sendCsi",{"ampexp":this.Um,"canonicalUrl":this.Cm.canonicalUrl,"eventid":this.Sm},!0))}addEnabledExperiment(t){this.Dm[t]=!0,this.Um=void 0}fg(t){this.Om.length>=50&&this.Om.shift(),this.Om.push(t)}sg(){this.Qe&&(this.Nm?(this.Om.forEach((t=>{this.Qe.sendMessage("tick",t)})),this.Om.length=0):this.Om.length=0)}dg(t){this.Qe&&this.Qe.sendMessage("prerenderComplete",{"value":t},!0)}isPerformanceTrackingOn(){return this.Nm}getMetric(t){return this.$m.whenSignal(t)}});const i=ls(self);i.addEnabledExperiment("esm"),function(t){Pi(t.document,(()=>function(t){let i=1500;const s=t.performance;s&&s.timing&&s.timing.navigationStart&&(i=Date.now()-s.timing.navigationStart);const e=Math.max(1,2100-i);t.setTimeout((()=>{Ko(t);const{styleSheets:i}=t.document;if(!i)return;const s=t.document.querySelectorAll(`link[rel~="stylesheet"]:not([href^="https://translate.googleapis.com/translate_static/css/"]):not([href^="${St(et)}"])`),n=[];for(let t=0;t<s.length;t++){const e=s[t];let r=!1;for(let t=0;t<i.length;t++)if(i[t].ownerNode==e){r=!0;break}r||n.push(e)}for(let i=0;i<n.length;i++){const s=n[i],r=s.media||"all";s.media="print",s.onload=()=>{s.media=r,Ko(t)},s.setAttribute("i-amphtml-timeout",e),s.parentNode.insertBefore(s,s.nextSibling)}}),e)}(t)))}(self),i.tick("is"),lu(t,i)})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML – Version 2603032146000",self.location.href),self.document.documentElement.setAttribute("amp-version","2603032146000")})()}catch(t){throw setTimeout((function(){var t=document.body.style;t.opacity=1,t.visibility="visible",t.animation="none",t.WebkitAnimation="none;"}),1e3),t}
//# sourceMappingURL=v0.mjs.map