var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
self.AMP_CONFIG={"v":"012502242315000","type":"production","allow-doc-opt-in":["amp-next-page"],"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};/*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)||function(){function t(t,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(i,n,r){return n&&t(i.prototype,n),r&&t(i,r),i}var n,r=function(){function t(){this.vt=new e}return t.prototype.abort=function(){if(!this.vt.dt&&(this.vt.dt=!0,this.vt.bt)){var t={"type":"abort","bubbles":!1,"cancelable":!1,"target":this.vt,"currentTarget":this.vt};this.vt.bt(t)}},i(t,[{key:"signal",get:function(){return this.vt}}]),t}(),e=function(){function t(){this.dt=!1,this.bt=null}return i(t,[{key:"aborted",get:function(){return this.dt}},{key:"onabort",get:function(){return this.bt},set:function(t){this.bt=t}}]),t}();function s(t,i){for(var n=i||0,r=this.length,e=n>=0?n:Math.max(r+n,0);e<r;e++){var s=this[e];if(s===t||t!=t&&s!=s)return!0}return!1}function u(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,r=new Array(i);n<i;n++)r[n]=t[n];return r}function o(t,i){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,i){if(t){if("string"==typeof t)return u(t,i);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,i):void 0}}(t))||i&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(){return n||(n=Promise.resolve(void 0))}var a=function(){var t=this;this.promise=new Promise((function(i,n){t.resolve=i,t.reject=n}))};function c(t){return new Promise((function(i){i(t())}))}function f(t){var i=Object.getOwnPropertyDescriptor(t,"message");if(null!=i&&i.writable)return t;var n=t.message,r=t.stack,e=new Error(n);for(var s in t)e[s]=t[s];return e.stack=r,e}function l(t){for(var i,n=null,r="",e=o(arguments,!0);!(i=e()).done;){var s=i.value;s instanceof Error&&!n?n=f(s):(r&&(r+=" "),r+=s)}return n?r&&(n.message=r+": "+n.message):n=new Error(r),n}function v(t){var i,n;null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t)}function d(t){var i=l.apply(null,arguments);setTimeout((function(){throw v(i),i}))}function m(t){var i=l.apply(null,arguments);return i.expected=!0,i}function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g=Object.prototype,b=g.hasOwnProperty,y=g.toString;function w(t){return"[object Object]"===y.call(t)}function A(t){var i=Object.create(null);return t&&Object.assign(i,t),i}function x(t,i){return b.call(t,i)}function E(t){var i=A();for(var n in t)if(x(t,n)){var r=t[n];i[n]=w(r)?E(r):r}return i}var P=/^[a-z][a-z0-9._]*-[a-z0-9._-]*$/,O=["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"],I={"childList":!0,"subtree":!0};function T(t,i){if(!P.test(i)||O.includes(i))throw new t('invalid custom element name "'.concat(i,'"'))}var M=function(){function t(t,i){this.t=t,this.gt=i,this.yt=A()}var i=t.prototype;return i.define=function(t,i,n){this.gt.define(t,i,n);var r=this.yt,e=r[t];e&&(e.resolve(),delete r[t])},i.get=function(t){var i=this.gt.getByName(t);if(i)return i.ctor},i.whenDefined=function(t){var i=this.t;if(i.Promise,T(i.SyntaxError,t),this.gt.getByName(t))return h();var n=this.yt,r=n[t];return r||(r=new a,n[t]=r),r.promise},i.upgrade=function(t){this.gt.upgrade(t)},t}(),S=function(){function t(t){this.t=t,this.wt=A(),this.At="",this.xt=null,this.Et=null,this.Ot=[t.document]}var i=t.prototype;return i.current=function(){var t=this.xt;return this.xt=null,t},i.getByName=function(t){var i=this.wt[t];if(i)return i},i.getByConstructor=function(t){var i=this.wt;for(var n in i){var r=i[n];if(r.ctor===t)return r}},i.define=function(t,i,n){var r=this.t,e=r.Error,s=r.SyntaxError;if(n)throw new e("Extending native custom elements is not supported");if(T(s,t),this.getByName(t)||this.getByConstructor(i))throw new e('duplicate definition "'.concat(t,'"'));this.wt[t]={name:t,ctor:i},this.Tt(t);for(var u,h=o(this.Ot,!0);!(u=h()).done;){var a=u.value;this.upgrade(a,t)}},i.upgrade=function(t,i){for(var n,r=!!i,e=i||this.At,s=o(this.Pt(t,e),!0);!(n=s()).done;){var u=n.value;r?this.It(u):this.upgradeSelf(u)}},i.upgradeSelf=function(t){var i=this.getByName(t.localName);i&&this.St(t,i)},i.Pt=function(t,i){return i&&t.querySelectorAll?t.querySelectorAll(i):[]},i.St=function(t,i){var n=i.ctor;if(!(t instanceof n)){this.xt=t;try{if(new n!==t)throw new this.t.Error("Constructor illegally returned a different instance.")}catch(t){d(t)}}},i.It=function(t){var i=this.getByName(t.localName);if(i&&(this.St(t,i),t.connectedCallback))try{t.connectedCallback()}catch(t){d(t)}},i.Mt=function(t){if(t.disconnectedCallback)try{t.disconnectedCallback()}catch(t){d(t)}},i.Tt=function(t){var i=this;if(this.At)this.At+=",".concat(t);else{this.At=t;var n=new this.t.MutationObserver((function(t){t&&i.Rt(t)}));this.Et=n;for(var r,e=o(this.Ot,!0);!(r=e()).done;){var s=r.value;n.observe(s,I)}!function(t,i){var n,r=t.Document,e=t.Element,s=t.Node,u=t.document,o=r.prototype,h=e.prototype,a=s.prototype,c=o.createElement,f=o.importNode,l=a.appendChild,v=a.cloneNode,d=a.insertBefore,m=a.removeChild,p=a.replaceChild;o.createElement=function(t){var n=i.getByName(t);return n?new n.ctor:c.apply(this,arguments)},o.importNode=function(){var t=f.apply(this,arguments);return t&&this===u&&(i.upgradeSelf(t),i.upgrade(t)),t},a.appendChild=function(){var t=l.apply(this,arguments);return i.sync(),t},a.insertBefore=function(){var t=d.apply(this,arguments);return i.sync(),t},a.removeChild=function(){var t=m.apply(this,arguments);return i.sync(),t},a.replaceChild=function(){var t=p.apply(this,arguments);return i.sync(),t},a.cloneNode=function(){var t=v.apply(this,arguments);return t.ownerDocument===u&&(i.upgradeSelf(t),i.upgrade(t)),t};var g=h,b=Object.getOwnPropertyDescriptor(g,"innerHTML");if(b||(g=Object.getPrototypeOf(t.HTMLElement.prototype),b=Object.getOwnPropertyDescriptor(g,"innerHTML")),null!==(n=b)&&void 0!==n&&n.configurable){var y=b.set;b.set=function(t){y.call(this,t),i.upgrade(this)},Object.defineProperty(g,"innerHTML",b)}}(this.t,this)}},i.observe=function(t){this.Ot.push(t),this.Et&&this.Et.observe(t,I)},i.sync=function(){this.Et&&this.Rt(this.Et.takeRecords())},i.Rt=function(t){for(var i,n=o(t,!0);!(i=n()).done;){var r=i.value;if(r){for(var e,s=r.addedNodes,u=r.removedNodes,h=o(s,!0);!(e=h()).done;){var a=e.value,c=this.Pt(a,this.At);this.It(a);for(var f,l=o(c,!0);!(f=l()).done;){var v=f.value;this.It(v)}}for(var d,m=o(u,!0);!(d=m()).done;){var p=d.value,g=this.Pt(p,this.At);this.Mt(p);for(var b,y=o(g,!0);!(b=y()).done;){var w=b.value;this.Mt(w)}}}}},t}();function R(t,i){i.prototype=Object.create(t.prototype,{constructor:{configurable:!0,writable:!0,value:i}}),_(i,t)}function _(t,i){Object.setPrototypeOf?Object.setPrototypeOf(t,i):{__proto__:{"test":!0}}.test?t.__proto__=i:function(t,i){for(var n=i;null!==n&&!Object.isPrototypeOf.call(n,t);){for(var r,e=o(Object.getOwnPropertyNames(n),!0);!(r=e()).done;){var s=r.value;if(!Object.hasOwnProperty.call(t,s)){var u=Object.getOwnPropertyDescriptor(n,s);Object.defineProperty(t,s,u)}}n=Object.getPrototypeOf(n)}}(t,i)}function k(t){return t==this||this.documentElement.contains(t)}function C(t,i,n){return i in t?Object.defineProperty(t,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[i]=n,t}function N(t,i){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),n.push.apply(n,r)}return n}function D(t){for(var i=1;i<arguments.length;i++){var n=null!=arguments[i]?arguments[i]:{};i%2?N(Object(n),!0).forEach((function(i){C(t,i,n[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))}))}return t}function j(t,i){return(j=Object.setPrototypeOf||function(t,i){return t.__proto__=i,t})(t,i)}function U(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),i&&j(t,i)}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function z(t,i){if(i&&("object"===p(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function H(t){var i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=L(t);if(i){var e=L(this).constructor;n=Reflect.construct(r,arguments,e)}else n=r.apply(this,arguments);return z(this,n)}}function G(t){return t?Array.prototype.slice.call(t):[]}var V=Array.isArray;function F(t){return V(t)?t:[t]}function B(t,i){for(var n=[],r=0,e=0;e<t.length;e++){var s=t[e];i(s,e,t)?n.push(s):(r<e&&(t[r]=s),r++)}return r<t.length&&(t.length=r),n}function q(t,i){for(var n=0;n<t.length;n++)if(i(t[n],n,t))return n;return-1}function $(t,i){var n=t.indexOf(i);return-1!=n&&(t.splice(n,1),!0)}function W(t,i){var n=t.length-i.length;return n>=0&&t.indexOf(i,n)==n}function Y(t){return"string"==typeof t}function K(t){return 1==(null==t?void 0:t.nodeType)}function J(t){return"number"==typeof t&&isFinite(t)}var X="​​​",Q="​​​​";function Z(t){return K(t)?t.tagName.toLowerCase()+(t.id?"#".concat(t.id):""):t}function tt(t){return t.indexOf(X)>=0}function it(t){return t.replace(X,"")}function nt(t,i){var n,r,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Assertion failed";if(i)return i;t&&-1==e.indexOf(t)&&(e+=t);for(var s=3,u=e.split("%s"),o=u.shift(),h=[o];u.length;){var a=arguments[s++],c=u.shift();o+=Z(a)+c,h.push(a,c.trim())}var f=new Error(o);throw f.messageArray=B(h,(function(t){return""!==t})),null===(n=(r=self).__AMP_REPORT_ERROR)||void 0===n||n.call(r,f),f}function rt(t,i,n,r,e){return V(e)?t(n,e.concat([i])):t(n,"".concat(e||r,": %s"),i),i}function et(t,i,n,r,e,s,u,o,h,a,c){return t}function st(t,i){return t}function ut(t,i){return t}function ot(t,i){return t}function ht(t,i,n,r,e,s,u,o,h,a,c){return nt(X,t,i,n,r,e,s,u,o,h,a,c)}function at(t){return JSON.parse(t)}function ct(t){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(t):ft(unescape(encodeURIComponent(t)))}function ft(t){for(var i=new Uint8Array(t.length),n=0;n<t.length;n++){var r=t.charCodeAt(n);et(r<=255),i[n]=r}return i}function lt(t,i){var n=t.crypto;if(!(n=n||t.msCrypto)||!n.getRandomValues)return null;var r=new Uint8Array(i);return n.getRandomValues(r),r}function vt(t){var i=!1,n=null,r=t;return function(){if(!i){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];n=r.apply(self,e),i=!0,r=null}return n}}function dt(t,i,n){var r=0,e=null;function s(s){e=null,r=t.setTimeout(u,n),i.apply(null,s)}function u(){r=0,e&&s(e)}return function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];r?e=i:s(i)}}function mt(t,i,n){var r=0,e=0,s=null;function u(){r=0;var o,h=n-(t.Date.now()-e);h>0?r=t.setTimeout(u,h):(o=s,s=null,i.apply(null,o))}return function(){e=t.Date.now();for(var i=arguments.length,o=new Array(i),h=0;h<i;h++)o[h]=arguments[h];s=o,r||(r=t.setTimeout(u,n))}}var pt=["javascript:","data:","vbscript:"],gt=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function bt(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";try{return decodeURIComponent(t)}catch(t){return i}}function yt(t){var i,n=A();if(!t)return n;for(;i=gt.exec(t);){var r=bt(i[1],i[1]),e=i[2]?bt(i[2].replace(/\+/g," "),i[2]):"";n[r]=e}return n}function wt(t){var i=(t||self).location;return yt(i.originalHash||i.hash)}var At=function(t){return self.AMP_CONFIG?self.AMP_CONFIG[t]:null},xt=("string"==typeof At("cdnProxyRegex")?new RegExp(At("cdnProxyRegex")):At("cdnProxyRegex"))||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/;function Et(t){if(!self.document||!self.document.head)return null;if(self.location&&xt.test(self.location.origin))return null;var i=self.document.head.querySelector('meta[name="'.concat(t,'"]'));return i&&i.getAttribute("content")||null}var Pt=At("thirdPartyUrl")||"https://3p.ampproject.net",Ot=At("thirdPartyFrameHost")||"ampproject.net",It=("string"==typeof At("thirdPartyFrameRegex")?new RegExp(At("thirdPartyFrameRegex")):At("thirdPartyFrameRegex"))||/^d-\d+\.ampproject\.net$/,Tt=At("cdnUrl")||Et("runtime-host")||"https://cdn.ampproject.org",Mt=/^https?:\/\/localhost(:\d+)?$/,St=At("errorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r",Rt=At("betaErrorReportingUrl")||"https://us-central1-amp-error-reporting.cloudfunctions.net/r-beta",_t=At("localDev")||!1,kt=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/,/(^|\.)gmail\.(com|dev)$/],Ct=At("geoApiUrl")||Et("amp-geo-api"),Nt="";function Dt(t){var i=t||self;return i.__AMP_MODE?i.__AMP_MODE:i.__AMP_MODE=function(t){return{localDev:!1,development:Ut(t,wt(t)),esm:!1,test:!1,rtvVersion:jt(t),ssrReady:!1}}(i)}function jt(t){var i;return Nt||(Nt=(null===(i=t.AMP_CONFIG)||void 0===i?void 0:i.v)||"01".concat("2502242315000")),Nt}function Ut(t,i){var n=i||wt(t);return["1","actions","amp","amp4ads","amp4email"].includes(n.development)||!!t.AMP_DEV_MODE}var Lt=function(){},zt=void 0;function Ht(t){zt=t}var Gt=function(){return"01".concat("2502242315000")},Vt=function(t,i){return i.reduce((function(t,i){return"".concat(t,"&s[]=").concat(Bt(i))}),"https://log.amp.dev/?v=".concat(Gt(),"&id=").concat(encodeURIComponent(t)))},Ft=function(){return"".concat(Tt,"/rtv/").concat(Gt(),"log-messages.simple.json")},Bt=function(t){return encodeURIComponent(String(Z(t)))},qt=function(t){return parseInt(wt(t).log,10)},$t=function(){function t(t,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";this.win=t,this.rr=i,this.nr=this.tr(),this.er=r,this.ir=null,this.ur=vt((function(){t.fetch(Ft()).then((function(t){return t.json()}),Lt).then((function(t){t&&(n.ir=t)}))})),this.ar=this.assert.bind(this)}var i=t.prototype;return i.tr=function(){var t,i=this.win;return null!==(t=i.console)&&void 0!==t&&t.log&&0!=qt(i)?this.cr():0},i.cr=function(t){return this.rr(qt(t),Dt().development)},i.lr=function(t,i,n){var r,e,s;if(i>(null!==(r=zt)&&void 0!==r?r:this.nr))return!1;var u=this.win.console,o=null!==(e=(s={},C(s,1,u.error),C(s,3,u.info),C(s,2,u.warn),s)[i])&&void 0!==e?e:u.log,h=this.sr(n),a="[".concat(t,"]");return Y(h[0])?h[0]=a+" "+h[0]:h.unshift(a),o.apply(u,h),!0},i.fine=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this.lr(t,4,n)},i.info=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this.lr(t,3,n)},i.warn=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];this.lr(t,2,n)},i.error=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];if(!this.lr(t,1,n)){var e,s,u=this.createError.apply(this,n);u.name=t||u.name,null===(e=(s=self).__AMP_REPORT_ERROR)||void 0===e||e.call(s,u)}},i.expectedError=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];var e,s;this.lr(t,1,n)||null===(e=(s=self).__AMP_REPORT_ERROR)||void 0===e||e.call(s,this.createExpectedError.apply(this,n))},i.createError=function(t){return this.vr(l.apply(null,arguments))},i.createExpectedError=function(t){return this.vr(m.apply(null,arguments))},i.vr=function(t){return t=f(t),this.er?t.message?-1==t.message.indexOf(this.er)&&(t.message+=this.er):t.message=this.er:tt(t.message)&&(t.message=it(t.message)),t},i.sr=function(t){return V(t[0])?this.hr(t[0]):t},i.hr=function(t){var i,n=t.shift();return Dt(this.win).development&&this.ur(),null!==(i=this.ir)&&void 0!==i&&i[n]?[this.ir[n]].concat(t):["More info at ".concat(Vt(n,t))]},i.assert=function(t,i,n){return V(i)?this.assert.apply(this,[t].concat(this.hr(i))):nt.apply(null,[this.er].concat(Array.prototype.slice.call(arguments)))},i.assertElement=function(t,i){return function(t,i,n){return rt(t,i,K(i),"Element expected",n)}(this.ar,t,i)},i.assertString=function(t,i){return function(t,i,n){return rt(t,i,Y(i),"String expected",n)}(this.ar,t,i)},i.assertNumber=function(t,i){return function(t,i,n){return rt(t,i,"number"==typeof i,"Number expected",n)}(this.ar,t,i)},i.assertArray=function(t,i){return function(t,i,n){return rt(t,i,V(i),"Array expected",n)}(this.ar,t,i)},i.assertBoolean=function(t,i){return function(t,i,n){return rt(t,i,!!i===i,"Boolean expected",n)}(this.ar,t,i)},t}();self.__AMP_LOG=self.__AMP_LOG||{user:null,dev:null,userForEmbed:null};var Wt=self.__AMP_LOG,Yt=null;function Kt(t,i){if(!Yt)throw new Error("failed to call initLogConstructor");return new Yt(self,t,i)}function Jt(t){return Wt.user||(Wt.user=Xt(X)),function(t,i){return i&&i.ownerDocument.defaultView!=t}(Wt.user.win,t)?Wt.userForEmbed||(Wt.userForEmbed=Xt(Q)):Wt.user}function Xt(t){return Kt((function(t,i){return i||t>=1?4:2}),t)}function Qt(){return Wt.dev||(Wt.dev=Kt((function(t){return t>=3?4:t>=2?3:0})))}function Zt(t,i,n,r,e,s,u,o,h,a,c){return t}function ti(t,i,n,r,e,s,u,o,h,a,c){return Jt().assert(t,i,n,r,e,s,u,o,h,a,c)}var ii=["GET","POST"];function ni(t,i){var n=new XMLHttpRequest;if(!("withCredentials"in n))throw Qt().createExpectedError("CORS is not supported");return n.open(t,i,!0),n}var ri=function(){function t(t){this._t=t,this.status=this._t.status,this.statusText=this._t.statusText,this.ok=this.status>=200&&this.status<300,this.headers=new si(t),this.bodyUsed=!1,this.body=null,this.url=t.responseURL}var i=t.prototype;return i.clone=function(){return et(!this.bodyUsed),new t(this._t)},i.kt=function(){return et(!this.bodyUsed),this.bodyUsed=!0,Promise.resolve(this._t.responseText)},i.text=function(){return this.kt()},i.json=function(){return this.kt().then(at)},i.arrayBuffer=function(){return this.kt().then(ct)},t}();function ei(t){return void 0===t?"GET":(t=t.toUpperCase(),et(ii.includes(t)),t)}var si=function(){function t(t){this._t=t}var i=t.prototype;return i.get=function(t){return this._t.getResponseHeader(t)},i.has=function(t){return null!=this._t.getResponseHeader(t)},t}(),ui=function(t){U(n,t);var i=H(n);function n(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=A(),e=D({status:200,statusText:"OK",responseText:t?String(t):"",getResponseHeader:function(t){var i=String(t).toLowerCase();return x(r,i)?r[i]:null}},n);if(e.status=void 0===n.status?200:parseInt(n.status,10),V(n.headers))n.headers.forEach((function(t){var i=t[0],n=t[1];r[String(i).toLowerCase()]=String(n)}));else if(w(n.headers))for(var s in n.headers)r[String(s).toLowerCase()]=String(n.headers[s]);return n.statusText&&(e.statusText=String(n.statusText)),i.call(this,e)}return n}(ri);function oi(t){return(t.ownerDocument||t).defaultView}var hi,ai=/(\0)|^(-)$|([\x01-\x1f\x7f]|^-?[0-9])|([\x80-\uffff0-9a-zA-Z_-]+)|[^]/g;function ci(t,i,n,r,e){return e||(i?"�":r?t.slice(0,-1)+"\\"+t.slice(-1).charCodeAt(0).toString(16)+" ":"\\"+t)}function fi(t){return void 0!==hi?hi:hi=function(t){try{var i=t.ownerDocument,n=i.createElement("div"),r=i.createElement("div");return n.appendChild(r),n.querySelector(":scope div")===r}catch(t){return!1}}(t)}function li(t,i){return t.replace(/^|,/g,"$&".concat(i," "))}function vi(t){return String(t).replace(ai,ci)}function di(t){et(/^[\w-]+$/.test(t))}function mi(t,i){var n=t.classList,r="i-amphtml-scoped";n.add(r);var e=li(i,".".concat(r)),s=t.querySelectorAll(e);return n.remove(r),s}function pi(t,i){if(fi(t))return t.querySelector(li(i,":scope"));var n=mi(t,i)[0];return void 0===n?null:n}function gi(t,i){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector;return!!n&&n.call(t,i)}function bi(t,i,n){var r;for(r=t;r&&r!==n;r=r.parentElement)if(i(r))return r;return null}function yi(t,i){return t.closest?t.closest(i):bi(t,(function(t){return gi(t,i)}))}function wi(t,i){for(var n=t.lastElementChild;n;n=n.previousElementSibling)if(i(n))return n;return null}function Ai(t,i){return di(i),pi(t,"> [".concat(i,"]"))}function xi(t){return Y(i=t)?n=i:K(i)&&(n=i.tagName),!(!n||!n.toLowerCase().startsWith("i-"))||t.nodeType===Node.ELEMENT_NODE&&(st(t),t.hasAttribute("placeholder")||t.hasAttribute("fallback")||t.hasAttribute("overflow"));var i,n}var Ei,Pi={bubbles:!0,cancelable:!0};function Oi(t,i,n){if(i(t))n();else{var r=oi(t);if(r.MutationObserver){var e=new r.MutationObserver((function(){i(t)&&(e.disconnect(),n())}));e.observe(t,{childList:!0})}else var s=r.setInterval((function(){i(t)&&(r.clearInterval(s),n())}),5)}}function Ii(t,i){Oi(t.documentElement,(function(){return!!t.body}),i)}function Ti(t){return new Promise((function(i){return Ii(t,i)}))}function Mi(t){var i;null===(i=t.parentElement)||void 0===i||i.removeChild(t)}function Si(t,i){t.insertBefore(i,t.firstChild)}function Ri(t){var i=t.isConnected;if(void 0!==i)return i;for(var n=t;(n=_i(n)).host;)n=n.host;return n.nodeType===Node.DOCUMENT_NODE}function _i(t){if(Node.prototype.getRootNode)return t.getRootNode();var i,n;for(i=t;i.parentNode&&(!(n=i)||"I-AMPHTML-SHADOW-ROOT"!=n.tagName&&(11!=n.nodeType||"[object ShadowRoot]"!==Object.prototype.toString.call(n)));i=i.parentNode);return i}function ki(t,i){var n=t;do{if(n.nextSibling)return!0}while((n=n.parentNode)&&n!=i);return!1}function Ci(t){try{t.focus()}catch(t){}}function Ni(t){return t.parent&&t.parent!=t}function Di(t,i,n,r){var e=n||{};et(t.ownerDocument);var s=r||Pi,u=s.bubbles,o=s.cancelable,h=new MessageEvent(i,{data:e,bubbles:u,cancelable:o});t.dispatchEvent(h)}function ji(t,i){return i!==t&&t.contains(i)}function Ui(t){return t.hasAttribute("i-amphtml-ssr")}function Li(t,i){var n=t.head.querySelector("script[nonce]");if(n){var r=n.nonce||n.getAttribute("nonce");i.setAttribute("nonce",null!=r?r:"")}}function zi(t,i,n,r){return{left:t,top:i,width:n,height:r,bottom:i+r,right:t+n,x:t,y:i}}function Hi(t,i,n){return zi(t.left-t.width*i,t.top-t.height*n,t.width*(1+2*i),t.height*(1+2*n))}function Gi(t,i,n){return 0==i&&0==n||0==t.width&&0==t.height?t:zi(t.left+i,t.top+n,t.width,t.height)}function Vi(){return Ri(this)?Ei.call(this):zi(0,0,0,0)}function Fi(t){return!t.IntersectionObserver||!t.IntersectionObserverEntry||!!t.IntersectionObserver._stub||!function(t){try{return new t.IntersectionObserver((function(){}),{root:t.document}),!0}catch(t){return!1}}(t)||function(t){return/apple/i.test(t.navigator.vendor)}(t)}var Bi=function(){function t(i,n){this.Nt=i,this.Ct=D({root:null,rootMargin:"0px 0px 0px 0px"},n),this.jt=[],this.Dt=null,t._upgraders.push(this.Ut.bind(this))}var n=t.prototype;return n.disconnect=function(){this.Dt?this.Dt.disconnect():this.jt.length=0},n.takeRecords=function(){return this.Dt?this.Dt.takeRecords():[]},n.observe=function(t){this.Dt?this.Dt.observe(t):-1==this.jt.indexOf(t)&&this.jt.push(t)},n.unobserve=function(t){if(this.Dt)this.Dt.unobserve(t);else{var i=this.jt.indexOf(t);-1!=i&&this.jt.splice(i,1)}},n.Ut=function(t){var i=new t(this.Nt,this.Ct);this.Dt=i;for(var n,r=o(this.jt,!0);!(n=r()).done;){var e=n.value;i.observe(e)}this.jt.length=0},i(t,[{key:"root",get:function(){return this.Dt?this.Dt.root:this.Ct.root||null}},{key:"rootMargin",get:function(){return this.Dt?this.Dt.rootMargin:this.Ct.rootMargin}},{key:"thresholds",get:function(){return this.Dt?this.Dt.thresholds:[].concat(this.Ct.threshold||0)}}]),t}();function qi(t){return(t=Number(t))?t>0?1:-1:t}Bi._upgraders=[];var $i=Object.prototype.hasOwnProperty;function Wi(t,i){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1;r<arguments.length;r++){var e=arguments[r];if(null!=e)for(var s in e)$i.call(e,s)&&(n[s]=e[s])}return n}function Yi(t){return Object.keys(t).map((function(i){return t[i]}))}function Ki(t){return!t.ResizeObserver||!!t.ResizeObserver._stub}var Ji,Xi=function(){function t(i){this.Nt=i,this.jt=[],this.Dt=null,t._upgraders.push(this.Ut.bind(this))}var i=t.prototype;return i.disconnect=function(){this.Dt?this.Dt.disconnect():this.jt.length=0},i.observe=function(t){this.Dt?this.Dt.observe(t):-1==this.jt.indexOf(t)&&this.jt.push(t)},i.unobserve=function(t){if(this.Dt)this.Dt.unobserve(t);else{var i=this.jt.indexOf(t);-1!=i&&this.jt.splice(i,1)}},i.Ut=function(t){var i=new t(this.Nt);this.Dt=i;for(var n,r=o(this.jt,!0);!(n=r()).done;){var e=n.value;i.observe(e)}this.jt.length=0},t}();function Qi(t,i){var n=i>0?0|i:0;return this.substr(n,t.length)===t}Xi._upgraders=[],(Ji=self).fetch||(Object.defineProperty(Ji,"fetch",{value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){var e=ei(i.method||"GET"),s=ni(e,t);"include"==i.credentials&&(s.withCredentials=!0),"document"!==i.responseType&&"text"!==i.responseType||(s.responseType=i.responseType),i.headers&&Object.keys(i.headers).forEach((function(t){s.setRequestHeader(t,i.headers[t])})),s.onreadystatechange=function(){if(!(s.readyState<2))return s.status<100||s.status>599?(s.onreadystatechange=null,void r(Jt().createExpectedError("Unknown HTTP status ".concat(s.status)))):void(4==s.readyState&&n(new ri(s)))},s.onerror=function(){r(Jt().createExpectedError("Network failure"))},s.onabort=function(){r(Jt().createExpectedError("Request aborted"))},"POST"==e?s.send(i.body):s.send()}))},writable:!0,enumerable:!0,configurable:!0}),Object.defineProperty(Ji,"Response",{value:ui,writable:!0,enumerable:!1,configurable:!0})),function(t){t.Math.sign||t.Object.defineProperty(t.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:qi})}(self),function(t){t.Object.assign||t.Object.defineProperty(t.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:Wi})}(self),function(t){t.Object.values||t.Object.defineProperty(t.Object,"values",{configurable:!0,writable:!0,value:Yi})}(self),function(t){t.Array.prototype.includes||t.Object.defineProperty(t.Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:s})}(self),function(t){var i=t.Map,n=new i;if(n.set(0,0)!==n){var r=n.set;t.Object.defineProperty(i.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r.apply(this,arguments),this}})}}(self),function(t){var i=t.WeakMap,n=new i;if(n.set({},0)!==n){var r=n.set;t.Object.defineProperty(i.prototype,"set",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r.apply(this,arguments),this}})}}(self),function(t){var i=t.Set,n=new i([1]);if(n.size<1&&(t.Set=function(t){var n=new i;if(t)for(var r=G(t),e=0;e<r.length;e++)n.add(r[e]);return n}),n.add(0)!==n){var r=n.add;t.Object.defineProperty(i.prototype,"add",{enumerable:!1,configurable:!0,writable:!0,value:function(){return r.apply(this,arguments),this}})}}(self),function(t){t.String.prototype.startsWith||t.Object.defineProperty(t.String.prototype,"startsWith",{enumerable:!1,configurable:!0,writable:!0,value:Qi})}(self),self.document&&(function(t){var i=t.HTMLDocument||t.Document;i&&!i.prototype.contains&&t.Object.defineProperty(i.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:k})}(self),function(t){(function(t){if(!t.document)return!1;try{return 0!==t.document.createElement("div").getBoundingClientRect().top}catch(t){return!0}})(t)&&(Ei=Element.prototype.getBoundingClientRect,t.Object.defineProperty(t.Element.prototype,"getBoundingClientRect",{value:Vi}))}(self),function(t,i){var n=t.document,r=function(t){var i=t.customElements;return!!(i&&i.define&&i.get&&i.whenDefined)}(t);if(!(!n||r&&function(t){return-1===t.HTMLElement.toString().indexOf("[native code]")}(t))){var e=!0,s=!1;if(i&&r)try{var u=t.Reflect,o=Object.create(i.prototype);Function.call.call(i,o),s=!(null==u||!u.construct)}catch(t){e=!1}s?function(t){var i=t.HTMLElement,n=t.Reflect;function r(){var t=this.constructor;return n.construct(i,[],t)}R(i,r),t.HTMLElementOrig=t.HTMLElement,t.HTMLElement=r}(t):e&&function(t){var i=t.Element,n=t.HTMLElement,r=t.document,e=r.createElement,s=new S(t),u=new M(t,s);Object.defineProperty(t,"customElements",{enumerable:!0,configurable:!0,value:u});var o=i.prototype,h=o.attachShadow,a=o.createShadowRoot;function c(){var t=this.constructor,i=s.current();if(!i){var n=s.getByConstructor(t);i=e.call(r,n.name)}return _(i,t.prototype),i}h&&(o.attachShadow=function(t){var i=h.apply(this,arguments);return s.observe(i),i},o.attachShadow.toString=function(){return h.toString()}),a&&(o.createShadowRoot=function(){var t=a.apply(this,arguments);return s.observe(t),t},o.createShadowRoot.toString=function(){return a.toString()}),R(n,c),t.HTMLElementOrig=t.HTMLElement,t.HTMLElement=c,c.call||(c.apply=t.Function.apply,c.bind=t.Function.bind,c.call=t.Function.call)}(t)}}(self,function(){return function(){}}()),function(t){Fi(t)&&function(t){if(!t.IntersectionObserver)return t.IntersectionObserver=Bi,void(t.IntersectionObserver._stub=Bi);var i=t.IntersectionObserver;t.IntersectionObserver=function(t,i){return function(n,r){var e;return 9===(null==r||null===(e=r.root)||void 0===e?void 0:e.nodeType)?new i(n,r):new t(n,r)}}(t.IntersectionObserver,Bi),t.IntersectionObserver._stub=Bi,t.IntersectionObserver._native=i}(t),function(t){t.IntersectionObserverEntry&&!("isIntersecting"in t.IntersectionObserverEntry.prototype)&&Object.defineProperty(t.IntersectionObserverEntry.prototype,"isIntersecting",{enumerable:!0,configurable:!0,get:function(){return this.intersectionRatio>0}})}(t)}(self),function(t){Ki(t)&&function(t){t.ResizeObserver||(t.ResizeObserver=Xi,t.ResizeObserver._stub=Xi)}(t)}(self),function(t){t.AbortController||(Object.defineProperty(t,"AbortController",{configurable:!0,enumerable:!1,writable:!0,value:r}),Object.defineProperty(t,"AbortSignal",{configurable:!0,enumerable:!1,writable:!0,value:e}))}(self));var Zi="cls",tn="clstu",nn="cls-1",rn="pc",en="inp",sn="building",un="mounting",on="loading",hn="complete",an="error";function cn(t){return t.readyState!=on&&"uninitialized"!=t.readyState}function fn(t){return t.readyState==hn}function ln(t,i){vn(t,cn,i)}function vn(t,i,n){var r=i(t);r?n(t):t.addEventListener("readystatechange",(function e(){i(t)&&(r||(r=!0,n(t)),t.removeEventListener("readystatechange",e))}))}function dn(t){return new Promise((function(i){ln(t,i)}))}function mn(t){return new Promise((function(i){vn(t,fn,i)}))}var pn=["amp-mustache"],gn="latest",bn=/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org(\/.*)?$/;function yn(t){if(!t)return null;var i=t.match(/^(.*)\/(.*)-([0-9.]+|latest)(\.max)?\.(?:js|mjs)(?:\?ssr-css=[0|1])?$/i),n=i?i[2]:void 0,r=i?i[3]:void 0;return n&&r?{extensionId:n,extensionVersion:r}:null}function wn(t,i,n){var r=t.document.createElement("script");r.async=!0,xn(i)?n="":r.setAttribute(pn.indexOf(i)>=0?"custom-template":"custom-element",i),r.setAttribute("data-script",i),r.setAttribute("i-amphtml-inserted",""),Li(t.document,r),r.setAttribute("crossorigin","anonymous");var e=function(t,i,n,r){var e=Tt,s=Dt().rtvVersion,u=n?"-"+n:"";return"".concat(e,"/rtv/").concat(s,"/v0/").concat(i).concat(u).concat(".js")}(t.location,i,n),s={createScriptURL:function(t){return bn.test(t)||"fonts.googleapis.com"===new URL(t).host?t:""}};return self.trustedTypes&&self.trustedTypes.createPolicy&&(s=self.trustedTypes.createPolicy("extension-script#createExtensionScript",s)),r.src=s.createScriptURL(e),r}function An(t,i,n,r){for(var e=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=":not([i-amphtml-loaded-new-version])"+(e?"":":not([i-amphtml-inserted])"),u=t.document.head.querySelectorAll('script[src*="/'.concat(i,'-"]').concat(s)),o=[],h=0;h<u.length;h++){var a=u[h],c=yn(a.src);if(c){var f=c.extensionId,l=c.extensionVersion;f==i&&(xn(i)||l==n||l==gn&&r)&&o.push(a)}}return o}function xn(t){return t.startsWith("_")}function En(t,i,n,r){Dn(t=Rn(t),t,i,n),r&&Nn(t,i)}function Pn(t,i,n,r){var e=kn(t),s=Cn(e);Dn(s,e,i,n),r&&Nn(s,i)}function On(t,i){return Nn(t=Rn(t),i)}function In(t,i){return Nn(Cn(kn(t)),i)}function Tn(t,i){var n=Cn(kn(t));return Gn(n,i)?Nn(n,i):null}function Mn(t,i){return jn(Cn(t),i)}function Sn(t,i){return Un(Cn(t),i)}function Rn(t){return t.__AMP_TOP||(t.__AMP_TOP=t)}function _n(t,i){var n=(t.ownerDocument||t).defaultView,r=i||Rn(n);if(n&&n!=r&&Rn(n)==r)try{return n.frameElement}catch(t){}return null}function kn(t){return t.nodeType?function(t){return On(t,"ampdoc")}(oi(t)).getAmpDoc(t):t}function Cn(t){var i=kn(t);return i.isSingleDoc()?i.win:i}function Nn(t,i){Zt(Gn(t,i));var n=Ln(t)[i];return n.obj||(Zt(n.ctor),Zt(n.context),n.obj=new n.ctor(n.context),Zt(n.obj),n.context=null,n.resolve&&n.resolve(n.obj)),n.obj}function Dn(t,i,n,r,e,s){var u=Ln(t),o=u[n];o||(o=u[n]={obj:null,promise:null,resolve:null,reject:null,context:null,ctor:null,sharedInstance:s||!1}),!e&&o.ctor||(o.ctor=r,o.context=i,o.sharedInstance=s||!1,o.resolve&&Nn(t,n))}function jn(t,i){var n=Un(t,i);if(n)return n;var r,e,s,u,o=Ln(t);return o[i]=(e=(r=new a).promise,s=r.reject,u=r.resolve,e.catch((function(){})),{obj:null,promise:e,resolve:u,reject:s,context:null,ctor:null}),o[i].promise}function Un(t,i){var n=Ln(t)[i];return n?n.promise?n.promise:(Nn(t,i),n.promise=Promise.resolve(n.obj)):null}function Ln(t){var i=t.__AMP_SERVICES;return i||(i=t.__AMP_SERVICES={}),i}function zn(t){return"function"==typeof t.dispose}function Hn(t,i){if(zn(i))try{(function(t){return Zt(zn(t)),t})(i).dispose()}catch(i){Qt().error("SERVICE","failed to dispose service",t,i)}}function Gn(t,i){var n=t.__AMP_SERVICES&&t.__AMP_SERVICES[i];return!(!n||!n.ctor)}function Vn(t,i,n,r){return Fn(t,i,n,r).then((function(t){return function(t,i,n){return ti(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,n,n,n)}(t,i,n)}))}function Fn(t,i,n,r){var e=Sn(t,i);if(e)return e;var s=kn(t);return s.whenExtensionsKnown().then((function(){var t=s.getExtensionVersion(n);return t?On(s.win,"extensions").waitForExtension(n,t):null})).then((function(n){return n?r?Sn(t,i):Mn(t,i):null}))}var Bn,qn=function(t){return Fn(t,"access","amp-access")},$n=function(t){return Fn(t,"subscriptions","amp-subscriptions")},Wn=function(t){return Tn(t,"action")},Yn=function(t){return Vn(t,"activity","amp-analytics")},Kn=function(t){return kn(t)},Jn=function(t){return On(t,"ampdoc")},Xn=function(t){return Fn(t,"amp-analytics-instrumentation","amp-analytics")},Qn=function(t){return function(t,i,n){var r=Tn(t,i);return r?Promise.resolve(r):Fn(t,i,"amp-bind")}(t,"bind")},Zn=function(t){return Mn(t,"cid")},tr=function(t){return On(t,"crypto")},ir=function(t){return In(t,"documentInfo").get()},nr=function(t){return On(t,"extensions")},rr=function(t){return In(t,"history")},er=function(t){return Tn(t,"loadingIndicator")},sr=function(t){return In(t,"mutator")},ur=function(t){return On(t,"performance")},or=function(t){return On(t,"platform")},hr=function(t){return On(t,"preconnect")},ar=function(t){return In(t,"resources")},cr=function(t){return Mn(t,"storage")},fr=function(t){return function(t,i){return Nn(t,"timer")}(t)},lr=function(t){return Tn(t,"url-replace")},vr=function(t){return Fn(t,"geo","amp-geo",!0)},dr=function(t){return Tn(t,"url")},mr=function(t){return In(t,"viewer")},pr=function(t){return On(t,"vsync")},gr=function(t){return In(t,"viewport")},br=function(t){return On(t,"xhr")},yr="prerender",wr="preview",Ar="visible",xr="hidden",Er="paused",Pr="inactive",Or=function(){function t(){this.tt=null}var i=t.prototype;return i.add=function(t){var i=this;return this.tt||(this.tt=[]),this.tt.push(t),function(){i.remove(t)}},i.remove=function(t){this.tt&&$(this.tt,t)},i.removeAll=function(){this.tt&&(this.tt.length=0)},i.fire=function(t){if(this.tt)for(var i,n=o(this.tt.slice(),!0);!(i=n()).done;)(0,i.value)(t)},i.getHandlerCount=function(){var t,i;return null!==(t=null===(i=this.tt)||void 0===i?void 0:i.length)&&void 0!==t?t:0},t}(),Ir=function(){function t(){this.zt=A(),this.Lt=null}var i=t.prototype;return i.get=function(t){var i=this.zt[t];return null==i?null:i},i.whenSignal=function(t){var i,n=null===(i=this.Lt)||void 0===i?void 0:i[t];if(!n){var r=this.zt[t];n=null!=r?{promise:"number"==typeof r?Promise.resolve(r):Promise.reject(r)}:new a,this.Lt||(this.Lt=A()),this.Lt[t]=n}return n.promise},i.signal=function(t,i){var n;if(null==this.zt[t]){var r=null!=i?i:Date.now();this.zt[t]=r;var e=null===(n=this.Lt)||void 0===n?void 0:n[t];null!=e&&e.resolve&&(e.resolve(r),e.resolve=void 0,e.reject=void 0)}},i.rejectSignal=function(t,i){var n;if(null==this.zt[t]){this.zt[t]=i;var r=null===(n=this.Lt)||void 0===n?void 0:n[t];null!=r&&r.reject&&(r.reject(i),r.promise.catch((function(){})),r.resolve=void 0,r.reject=void 0)}},i.reset=function(t){var i;this.zt[t]&&delete this.zt[t];var n=null===(i=this.Lt)||void 0===i?void 0:i[t];n&&!n.resolve&&delete this.Lt[t]},t}(),Tr=["Webkit","webkit","Moz","moz","ms","O","o"],Mr={"getPropertyPriority":function(){return""},"getPropertyValue":function(){return""}};function Sr(t){var i=t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}));return Tr.some((function(t){return i.startsWith(t+"-")}))?"-".concat(i):i}function Rr(t,i,n){if(i.startsWith("--"))return i;Bn||(Bn=A());var r=Bn[i];if(!r||n){if(r=i,void 0===t[i]){var e=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}(i),s=function(t,i){for(var n=0;n<Tr.length;n++){var r=Tr[n]+i;if(void 0!==t[r])return r}return""}(t,e);void 0!==t[s]&&(r=s)}n||(Bn[i]=r)}return r}function _r(t,i){var n=t.style;for(var r in i)n.setProperty(Sr(Rr(n,r)),String(i[r]),"important")}function kr(t,i,n,r,e){var s=Rr(t.style,i,e);if(s){var u=r?n+r:n;t.style.setProperty(Sr(s),u)}}function Cr(t,i){for(var n in i)kr(t,n,i[n])}function Nr(t,i){void 0===i&&(i=t.hasAttribute("hidden")),i?t.removeAttribute("hidden"):t.setAttribute("hidden","")}function Dr(t){return"".concat(t,"px")}function jr(t,i){return t.getComputedStyle(i)||Mr}function Ur(t){var i=t[Rr(t,"visibilityState",!0)];if(i)return i;var n=Rr(t,"hidden",!0);return n in t&&t[n]?xr:Ar}function Lr(t,i){if(t.addEventListener){var n=Hr(t);n&&t.addEventListener(n,i)}}function zr(t,i){if(t.removeEventListener){var n=Hr(t);n&&t.removeEventListener(n,i)}}function Hr(t){var i=Rr(t,"hidden",!0),n=i.indexOf("Hidden");return-1!=n?i.substring(0,n)+"Visibilitychange":"visibilitychange"}var Gr=function(){function t(){}return t.getTop=function(t){return t.top},t.getLocation=function(t){return t.location},t.getDocumentReferrer=function(t){return t.document.referrer},t.getHostname=function(t){return t.location.hostname},t.getUserAgent=function(t){return t.navigator.userAgent},t.getUserLanguage=function(t){return t.navigator.userLanguage||t.navigator.language},t.getDevicePixelRatio=function(){return self.devicePixelRatio||1},t.getSendBeacon=function(t){if(t.navigator.sendBeacon)return t.navigator.sendBeacon.bind(t.navigator)},t.getXMLHttpRequest=function(t){return t.XMLHttpRequest},t.getImage=function(t){return t.Image},t}(),Vr="__AMP__",Fr="-ampdoc-ext-known",Br="-ampdoc-first-visible",qr="-ampdoc-next-visible",$r="-ampdoc-first-previewed",Wr=function(){function t(t,i,n){this.win=t,this.Ht=null,i&&(this.Ht=new Kr(t,{params:Qr(t,n)}),t.document.__AMPDOC=this.Ht)}var i=t.prototype;return i.isSingleDoc=function(){return!!this.Ht},i.getSingleDoc=function(){return Zt(this.Ht)},i.Gt=function(t){return t.everAttached&&"function"==typeof t.getAmpDoc?t.getAmpDoc():null},i.getAmpDocIfAvailable=function(t){for(var i=t;i;){var n=this.Gt(t);if(n)return n;var r=_i(i);if(!r)break;var e=r.__AMPDOC;if(e)return e;i=r.host?r.host:_n(r,this.win)}return null},i.getAmpDoc=function(t){var i=this.getAmpDocIfAvailable(t);if(!i)throw Qt().createError("No ampdoc found for",t);return i},i.installShadowDoc=function(t,i,n){Zt(!i.__AMPDOC);var r=new Jr(this.win,t,i,n);return i.__AMPDOC=r,r},i.installFieDoc=function(t,i,n){var r=i.document;Zt(!r.__AMPDOC);var e=Zt(i.frameElement),s=new Xr(i,t,this.getAmpDoc(e),n);return r.__AMPDOC=s,s},t}(),Yr=function(){function t(t,i,n){var r=this;this.win=t,this.Vt=A(),this.Ft=i,this.Bt=n&&n.signals||new Ir,this.qt=n&&n.params||A(),this.$t=null,this.Wt={};var e,s=this.qt.visibilityState;Zt(!s||"prerender"===(e=s)||"preview"===e||"visible"===e||"hidden"===e||"paused"===e||"inactive"===e),this.Kt=n&&n.visibilityState||s||null,this.J=null,this.Yt=new Or,this.Jt=null,this.Xt=[];var u=this.Qt.bind(this);this.Ft&&this.Xt.push(this.Ft.onVisibilityChanged(u)),Lr(this.win.document,u),this.Xt.push((function(){return zr(r.win.document,u)})),this.Qt()}var i=t.prototype;return i.dispose=function(){(function(t){var i=Ln(t),n=function(t){if(!Object.prototype.hasOwnProperty.call(i,t))return"continue";var n=i[t];if(n.sharedInstance)return"continue";n.obj?Hn(t,n.obj):n.promise&&n.promise.then((function(i){return Hn(t,i)}))};for(var r in i)n(r)})(this),this.Xt.forEach((function(t){return t()}))},i.isSingleDoc=function(){return Zt(null)},i.getParent=function(){return this.Ft},i.signals=function(){return this.Bt},i.getParam=function(t){var i=this.qt[t];return null==i?null:i},i.getMeta=function(){var t=this;return this.$t||(this.$t=A(),this.win.document.head.querySelectorAll("meta[name]").forEach((function(i){var n=i.getAttribute("name"),r=i.getAttribute("content");n&&null!==r&&void 0===t.$t[n]&&(t.$t[n]=r)}))),A(this.$t)},i.getMetaByName=function(t){if(!t)return null;var i=this.getMeta()[t];return void 0!==i?i:null},i.setMetaByName=function(t,i){Zt(null)},i.declaresExtension=function(t,i){var n=this.Wt[t];return!(!n||i&&n!==i)},i.declareExtension=function(t,i){Zt(!this.Wt[t]||this.Wt[t]===i),this.Wt[t]=i},i.getExtensionVersion=function(t){return this.Wt[t]||null},i.setExtensionsKnown=function(){this.Bt.signal(Fr)},i.whenExtensionsKnown=function(){return this.Bt.whenSignal(Fr)},i.getRootNode=function(){return Zt(null)},i.getHeadNode=function(){},i.isBodyAvailable=function(){return Zt(!1)},i.getBody=function(){return Zt(null)},i.waitForBodyOpen=function(){return Zt(null)},i.isReady=function(){return Zt(null)},i.whenReady=function(){return Zt(null)},i.getUrl=function(){return Zt(null)},i.getElementById=function(t){return this.getRootNode().getElementById(t)},i.contains=function(t){return this.getRootNode().contains(t)},i.overrideVisibilityState=function(t){this.Kt!=t&&(this.Kt=t,this.Qt())},i.Qt=function(){for(var t,i=Ur(this.win.document),n=Ar,r=this.Ft;r;r=r.getParent())if(r.getVisibilityState()!=Ar){n=r.getVisibilityState();break}var e=this.Kt||Ar;if(t=e==Ar&&n==Ar&&i==Ar?Ar:i==xr&&e==Er?i:e==Er||e==Pr?e:n==Er||n==Pr?n:e==wr||i==wr||n==wr?wr:e==yr||i==yr||n==yr?yr:xr,this.J!=t){if(t==Ar){var s,u=this.win.performance,o=Math.floor(null!==(s=u.timeOrigin)&&void 0!==s?s:u.timing.navigationStart);null!=this.J&&(o+=Math.floor(u.now())),this.Jt=o,this.Bt.signal(Br,o),this.Bt.signal(qr,o)}else this.Bt.reset(qr);t==wr&&this.Bt.signal($r),this.J=t,this.Yt.fire()}},i.whenFirstPreviewedOrVisible=function(){return Promise.race([this.whenFirstPreviewed(),this.whenFirstVisible()])},i.whenFirstPreviewed=function(){return this.Bt.whenSignal($r).then((function(){}))},i.whenFirstVisible=function(){return this.Bt.whenSignal(Br).then((function(){}))},i.whenNextVisible=function(){return this.Bt.whenSignal(qr).then((function(){}))},i.getFirstVisibleTime=function(){return this.Bt.get(Br)},i.getLastVisibleTime=function(){return this.Jt},i.getVisibilityState=function(){return Zt(this.J)},i.isPreview=function(){return this.J==wr},i.isVisible=function(){return this.J==Ar},i.hasBeenVisible=function(){return null!=this.getLastVisibleTime()},i.onVisibilityChanged=function(t){return this.Yt.add(t)},i.registerSingleton=function(t){return!this.Vt[t]&&(this.Vt[t]=!0,!0)},t}(),Kr=function(t){U(n,t);var i=H(n);function n(t,n){var r;return(r=i.call(this,t,null,n)).Zt=r.win.document.body?Promise.resolve(r.win.document.body):Ti(r.win.document).then((function(){return r.getBody()})),r.ti=dn(r.win.document),r}var r=n.prototype;return r.isSingleDoc=function(){return!0},r.getRootNode=function(){return this.win.document},r.getUrl=function(){return Gr.getLocation(this.win).href},r.getHeadNode=function(){return this.win.document.head},r.isBodyAvailable=function(){return!!this.win.document.body},r.getBody=function(){return this.win.document.body},r.waitForBodyOpen=function(){return this.Zt},r.isReady=function(){return cn(this.win.document)},r.whenReady=function(){return this.ti},n}(Yr),Jr=function(t){U(n,t);var i=H(n);function n(t,n,r,e){var s;(s=i.call(this,t,null,e)).ii=n,s.ni=r,s.ri=null;var u=new a;s.Zt=u.promise,s.ei=u.resolve,s.si=!1;var o=new a;return s.ti=o.promise,s.oi=o.resolve,s}var r=n.prototype;return r.isSingleDoc=function(){return!1},r.getRootNode=function(){return this.ni},r.getUrl=function(){return this.ii},r.getHeadNode=function(){return this.ni},r.isBodyAvailable=function(){return!!this.ri},r.getBody=function(){return this.ri},r.setBody=function(t){Zt(!this.ri),this.ri=t,this.ei(t),this.ei=void 0},r.waitForBodyOpen=function(){return this.Zt},r.isReady=function(){return this.si},r.setReady=function(){Zt(!this.si),this.si=!0,this.oi(),this.oi=void 0},r.whenReady=function(){return this.ti},r.getMeta=function(){return A(this.$t)},r.setMetaByName=function(t,i){Zt(t),this.$t||(this.$t=A()),this.$t[t]=i},n}(Yr),Xr=function(t){U(n,t);var i=H(n);function n(t,n,r,e){var s;(s=i.call(this,t,r,e)).ii=n,s.Zt=s.win.document.body?Promise.resolve(s.win.document.body):Ti(s.win.document).then((function(){return s.getBody()})),s.si=!1;var u=new a;return s.ti=u.promise,s.oi=u.resolve,s}var r=n.prototype;return r.isSingleDoc=function(){return!1},r.getRootNode=function(){return this.win.document},r.getUrl=function(){return this.ii},r.getHeadNode=function(){return this.win.document.head},r.isBodyAvailable=function(){return!!this.win.document.body},r.getBody=function(){return this.win.document.body},r.waitForBodyOpen=function(){return this.Zt},r.isReady=function(){return this.si},r.whenReady=function(){return this.ti},r.setReady=function(){Zt(!this.si),this.si=!0,this.oi(),this.oi=void 0},n}(Yr);function Qr(t,i){var n=A();return i?Object.assign(n,i):(t.name&&0==t.name.indexOf(Vr)&&Object.assign(n,yt(t.name.substring(Vr.length))),t.location&&t.location.hash&&Object.assign(n,yt(t.location.hash))),n}function Zr(t){if(!t.hasAttribute("src")&&"srcset"in t==0){var i=t.getAttribute("srcset")||"",n=/\S+/.exec(i);if(null==n)return;var r=n[0];t.setAttribute("src",r)}}var te="nodisplay",ie="fixed",ne="fixed-height",re="responsive",ee="container",se="fill",ue="flex-item",oe="fluid",he="intrinsic",ae=/^amp\-(video|.+player)|AMP-BRIGHTCOVE|AMP-DAILYMOTION|AMP-YOUTUBE|AMP-VIMEO|AMP-IMA-VIDEO/i;function ce(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 fe(t){return"i-amphtml-layout-"+t}function le(t){return t==ie||t==ne||t==re||t==se||t==ue||t==oe||t==he}function ve(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 de(t){!function(t){ht(/^\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);var i=/[a-z]+/i.exec(null!=t?t:"");return ht(i,"Failed to read units from %s",t),i[0]}function me(t){var i=parseFloat(t);return J(i)?i:void 0}function pe(t,i){t.classList.add("i-amphtml-fill-content"),i&&t.classList.add("i-amphtml-replaced-content")}function ge(t,i,n,r){for(var e,s=o(F(t),!0);!(e=s()).done;){var u=e.value,h=i.getAttribute(u);null!==h?n.setAttribute(u,h):r&&n.removeAttribute(u)}}var be,ye="amp:attached",we="amp:load-start",Ae="amp:load-end",xe="ready-upgrade",Ee="upgraded",Pe="built",Oe="mounted",Ie="load-start",Te="render-start",Me="load-end",Se="unload",Re=function(){function t(t,i){this.t=t,this.Nt=i,this.ui={},this.hi=null}var i=t.prototype;return i.start=function(){this.hi=this.ui,this.ui={}},i.resolveMatchQuery=function(t){return"1"===this.ai(t,_e,"1")},i.resolveListQuery=function(t){return this.ai(t,ke,"")},i.complete=function(){for(var t in this.hi)t in this.ui||Ce(this.hi[t],this.Nt,!1);this.hi=null},i.dispose=function(){for(var t in this.ui)Ce(this.ui[t],this.Nt,!1);this.ui={}},i.ai=function(t,i,n){if(!t.trim())return n;var r=this.ui[t];return r||(et(this.hi),r=this.hi[t]),r||Ce(r=i(this.t,t),this.Nt,!0),this.ui[t]=r,function(t){for(var i=0;i<t.length;i++){var n=t[i],r=n.query,e=n.value;if(!r||r.matches)return e}return""}(r)},t}();function _e(t,i){return[{query:t.matchMedia(i),value:"1"},{query:null,value:""}]}function ke(t,i){return i.split(",").map((function(i){if(0!=(i=i.replace(/\s+/g," ").trim()).length){var n,r,e;if(")"==i.charAt(i.length-1)){var s=1;for(e=i.length-2;e>=0;e--){var u=i.charAt(e);if("("==u?s--:")"==u&&s++,0==s)break}var o=e-1;if(e>0)for(e--;e>=0;e--){var h=i.charAt(e);if(!("%"==h||"-"==h||"_"==h||h>="a"&&h<="z"||h>="A"&&h<="Z"||h>="0"&&h<="9"))break}if(e>=o)return null}else for(e=i.length-2;e>=0;e--){var a=i.charAt(e);if(!("%"==a||"."==a||a>="a"&&a<="z"||a>="A"&&a<="Z"||a>="0"&&a<="9"))break}return e>=0?(n=i.substring(0,e+1).trim(),r=i.substring(e+1).trim()):(r=i,n=void 0),r?{query:n?t.matchMedia(n):null,value:r}:null}})).filter(Boolean)}function Ce(t,i,n){for(var r=0;r<t.length;r++){var e=t[r].query;e&&(void 0!==e.onchange?e.onchange=n?i:null:n?e.addListener(i):e.removeListener(i))}}function Ne(t){var i=t.ownerDocument||t;return be&&be.ownerDocument===i||(be=i.createElement("div")),De}function De(t){return function(t,i){if(et(1===i.length),et(Array.isArray(i)||x(i,"raw")),self.trustedTypes&&self.trustedTypes.createPolicy){var n=self.trustedTypes.createPolicy("static-template#createNode",{createHTML:function(t){return i[0]}});t.innerHTML=n.createHTML("ignored")}else t.innerHTML=i[0];var r=t.firstElementChild;return et(r),et(!r.nextElementSibling),t.removeChild(r),r}(be,t)}var je=['<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>'],Ue={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}};function Le(t){var i=t.getAttribute("layout"),n=t.getAttribute("width"),r=t.getAttribute("height"),e=t.getAttribute("sizes"),s=t.getAttribute("heights"),u=i?ce(i):null;ht(void 0!==u,'Invalid "layout" value: %s, %s',i,t);var o=n&&"auto"!=n?ve(n):n;ht(void 0!==o,'Invalid "width" value: %s, %s',n,t);var h,a,c,f,l=r&&"fluid"!=r?ve(r):r;if(ht(void 0!==l,'Invalid "height" value: %s, %s',r,t),u&&u!=ie&&u!=ne||o&&l||(f=(f=t.tagName).toUpperCase(),void 0===Ue[f]))h=o,a=l;else{var v=function(t){var i=t.tagName.toUpperCase();if(et(void 0!==Ue[i]),!Ue[i]){var n=t.ownerDocument,r=i.replace(/^AMP\-/,""),e=n.createElement(r);e.controls=!0,Cr(e,{position:"absolute",visibility:"hidden"}),n.body.appendChild(e),Ue[i]={width:(e.offsetWidth||1)+"px",height:(e.offsetHeight||1)+"px"},n.body.removeChild(e)}return Ue[i]}(t);h=o||u==ne?o:v.width,a=l||v.height}return(c=u||(h||a?"fluid"==a?oe:!a||h&&"auto"!=h?a&&h&&(e||s)?re:ie:ne:ee))!=ie&&c!=ne&&c!=re&&c!=he||ht(a,'The "height" attribute is missing: %s',t),c==ne&&ht(!h||"auto"==h,'The "width" attribute must be missing or "auto": %s',t),c!=ie&&c!=re&&c!=he||ht(h&&"auto"!=h,'The "width" attribute must be present and not "auto": %s',t),c==re||c==he?ht(de(h)==de(a),'Length units should be the same for "width" and "height": %s, %s, %s',n,r,t):ht(null===s,'"heights" attribute must be missing: %s',t),{layout:c,width:h,height:a}}var ze,He="EXPERIMENTS",Ge="amp-experiment-toggles",Ve="__AMP__EXPERIMENT_TOGGLES";function Fe(t,i){return!!qe(t)[i]}function Be(t,i,n,r){var e=Fe(t,i),s=null!=n?n:!e;if(s!=e&&(qe(t)[i]=s,!r)){var u=$e(t);u[i]=s,function(t,i){var n=[];for(var r in i)n.push((!1===i[r]?"-":"")+r);try{var e;null===(e=t.localStorage)||void 0===e||e.setItem(Ge,n.join(","))}catch(t){Jt().error(He,"Failed to save experiments to localStorage.")}}(t,u),Jt().warn(He,'"%s" experiment %s for the domain "%s". See: https://amp.dev/documentation/guides-and-tutorials/learn/experimental',i,s?"enabled":"disabled",t.location.hostname)}return s}function qe(t){var i,n,r,e,s;if(t[Ve])return t[Ve];t[Ve]=A();var u=t[Ve];et(u);var h=D(D({},null!==(i=t.AMP_CONFIG)&&void 0!==i?i:{}),null!==(n=t.AMP_EXP)&&void 0!==n?n:at((null===(r=t.__AMP_EXP)||void 0===r?void 0:r.textContent)||"{}"));for(var a in h){var c=h[a];"number"==typeof c&&c>=0&&c<=1&&(u[a]=Math.random()<c)}var f=null===(e=t.AMP_CONFIG)||void 0===e?void 0:e["allow-doc-opt-in"];if(V(f)&&f.length){var l=t.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(l)for(var v,d,m=o((null===(v=l.getAttribute("content"))||void 0===v?void 0:v.split(","))||[],!0);!(d=m()).done;){var p=d.value;f.includes(p)&&(u[p]=!0)}}Object.assign(u,$e(t));var g=null===(s=t.AMP_CONFIG)||void 0===s?void 0:s["allow-url-opt-in"];if(V(g)&&g.length)for(var b,y=yt(t.location.originalHash||t.location.hash),w=o(g,!0);!(b=w()).done;){var x=b.value,E=y["e-".concat(x)];"1"==E&&(u[x]=!0),"0"==E&&(u[x]=!1)}return u}function $e(t){var i,n="";try{var r;"localStorage"in t&&(n=null!==(r=t.localStorage.getItem(Ge))&&void 0!==r?r:"")}catch(t){Qt().warn(He,"Failed to retrieve experiments from localStorage.")}for(var e,s=(null===(i=n)||void 0===i?void 0:i.split(/\s*,\s*/g))||[],u=A(),h=o(s,!0);!(e=h()).done;){var a=e.value;a&&("-"==a[0]?u[a.substr(1)]=!1:u[a]=!0)}return u}function We(t,i,n,r){var e=t,s=n,u=function(t){try{return s(t)}catch(t){var i,n;throw null===(i=(n=self).__AMP_REPORT_ERROR)||void 0===i||i.call(n,t),t}},o=function(){if(void 0!==ze)return ze;ze=!1;try{var t={get capture(){return ze=!0,!1}};self.addEventListener("test-options",null,t),self.removeEventListener("test-options",null,t)}catch(t){}return ze}(),h=!(null==r||!r.capture);return e.addEventListener(i,u,o?r:h),function(){null==e||e.removeEventListener(i,u,o?r:h),s=null,e=null,u=null}}var Ye="Failed to load:";function Ke(t,i,n,r){var e={detail:n};if(Object.assign(e,r),"function"==typeof t.CustomEvent)return new t.CustomEvent(i,e);var s=t.document.createEvent("CustomEvent");return s.initCustomEvent(i,!!e.bubbles,!!e.cancelable,n),s}function Je(t,i,n,r){return We(t,i,n,r)}function Xe(t){return t.data}function Qe(t,i,n,r){var e=n,s=We(t,i,(function(t){try{e(t)}finally{e=null,s()}}),r);return s}function Ze(t){var i,n;if(function(t){return!!(t.complete||"complete"==t.readyState||ts(t)&&t.readyState>0||t.document&&"complete"==t.document.readyState)}(t))return Promise.resolve(t);var r=ts(t);return r&&t.__AMP_MEDIA_LOAD_FAILURE_SRC===t.currentSrc?Promise.reject(t):new Promise((function(e,s){if(i=r?Qe(t,"loadedmetadata",e,{capture:!0}):Qe(t,"load",e),t.tagName){var u=t;if(r&&!t.hasAttribute("src")&&!(u=wi(t,(function(t){return"SOURCE"===t.tagName}))))return s(new Error("Media has no source."));n=Qe(u,"error",s)}})).then((function(){return n&&n(),t}),(function(){i&&i(),function(t){ts(t)&&(t.__AMP_MEDIA_LOAD_FAILURE_SRC=t.currentSrc||!0);var i=t;throw i&&i.src&&(i=i.src),Jt().createError(Ye,i)}(t)}))}function ts(t){return"AUDIO"===t.tagName||"VIDEO"===t.tagName}var is={"amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]","variant":"amp-experiment"};function ns(t){var i=t.document;return Zt(i.body),Object.keys(is).filter((function(t){return i.querySelector(is[t])}))}function rs(t,i,n,r,e){var s=t.getHeadNode(),u=function(t,i,n,r){var e=t.__AMP_CSS_SM;e||(e=t.__AMP_CSS_SM=A());var s=!n&&r&&"amp-custom"!=r&&"amp-keyframes"!=r,u=n?"amp-runtime":s?"amp-extension=".concat(r):null;if(u){var o=es(t,e,u);if(o)return"STYLE"==o.tagName&&o.textContent!==i&&(o.textContent=i),o}var h=(t.ownerDocument||t).createElement("style");h.textContent=i;var a=null;return n?h.setAttribute("amp-runtime",""):s?(h.setAttribute("amp-extension",r||""),a=es(t,e,"amp-runtime")):(r&&h.setAttribute(r,""),a=t.lastChild),function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(n){var r=n.nextSibling;t.insertBefore(i,r)}else Si(t,i)}(t,h,a),u&&(e[u]=h),h}(s,function(t,i){var n=t.__AMP_CSS_TR;return n?n(i):i}(s,i),r||!1,e||null);if(n){var o=t.getRootNode();if(hs(o,u))return n(u),u;var h=setInterval((function(){hs(o,u)&&(clearInterval(h),n(u))}),4)}return u}function es(t,i,n){if(i[n])return i[n];var r=t.querySelector("style[".concat(n,"], link[").concat(n,"]"));return r?(i[n]=r,r):null}var ss=!1;function us(t){Zt(t.defaultView),ss||(ss=!0,os(t))}function os(t){Cr(t.body,{opacity:1,visibility:"visible","animation":"none"})}function hs(t,i){for(var n=t.styleSheets,r=0;r<n.length;r++)if(n[r].ownerNode==i)return!0;return!1}var as,cs,fs=function(){function t(t){this.dr=t,this.pr=0,this.mr=0,this.yr=A()}var i=t.prototype;return i.has=function(t){return!!this.yr[t]},i.get=function(t){var i=this.yr[t];if(i)return i.access=++this.mr,i.payload},i.put=function(t,i){this.has(t)||this.pr++,this.yr[t]={payload:i,access:this.mr},this.wr()},i.wr=function(){if(!(this.pr<=this.dr)){var t,i=this.yr,n=this.mr+1;for(var r in i){var e=i[r].access;e<n&&(n=e,t=r)}void 0!==t&&(delete i[t],this.pr--)}},t}(),ls=new Set(["c","v","a","ad"]),vs="__amp_source_origin",ds=function(t){return"string"==typeof t?ms(t):t};function ms(t,i){return as||(as=self.document.createElement("a"),cs=self.__AMP_URL_CACHE||(self.__AMP_URL_CACHE=new fs(100))),ps(as,t,i?null:cs)}function ps(t,i,n){if(n&&n.has(i))return n.get(i);t.href=i,t.protocol||(t.href=t.href);var r,e={href:t.href,protocol:t.protocol,host:t.host,hostname:t.hostname,port:"0"==t.port?"":t.port,pathname:t.pathname,search:t.search,hash:t.hash,origin:null};"/"!==e.pathname[0]&&(e.pathname="/"+e.pathname),("http:"==e.protocol&&80==e.port||"https:"==e.protocol&&443==e.port)&&(e.port="",e.host=e.hostname),r=t.origin&&"null"!=t.origin?t.origin:"data:"!=e.protocol&&e.host?e.protocol+"//"+e.host:e.href,e.origin=r;var s=e;return n&&n.put(i,s),s}function gs(t,i,n){if(!i)return t;var r=t.split("#",2),e=r[0].split("?",2);return e[0]+(e[1]?n?"?".concat(i,"&").concat(e[1]):"?".concat(e[1],"&").concat(i):"?".concat(i))+(r[1]?"#".concat(r[1]):"")}function bs(t,i){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(i))}function ys(t,i){return gs(t,ws(i))}function ws(t){var i=[];for(var n in t){var r=t[n];if(null!=r){r=F(r);for(var e=0;e<r.length;e++)i.push(bs(n,r[e]))}}return i.join("&")}function As(t){return"https:"==(t=ds(t)).protocol||"localhost"==t.hostname||"127.0.0.1"==t.hostname||W(t.hostname,".localhost")}function xs(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"source";return ti(null!=t,"%s %s must be available",i,n),ti(As(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,n,t),t}function Es(t){var i=t.indexOf("#");return-1==i?t:t.substring(0,i)}function Ps(t){return xt.test(ds(t).origin)}function Os(t){return!(t&&pt.includes(ds(t).protocol))}function Is(t){var i=ms(t),n=i.hash;return i.origin+i.pathname+Ts(i.search)+n}function Ts(t){return function(t,i){if(!t||"?"==t)return"";var n=new RegExp("[?&]".concat("(amp_(js[^&=]*|gsa|r|kit)|usqp)","\\b[^&]*"),"g"),r=t.replace(n,"").replace(/^[?&]/,"");return r?"?"+r:""}(t)}function Ms(t){if(!Ps(t=ds(t)))return t.href;var i=t.pathname.split("/"),n=i[1];ti(ls.has(n),"Unknown path prefix in url %s",t.href);var r=i[2],e="s"==r?"https://"+decodeURIComponent(i[3]):"http://"+decodeURIComponent(r);return ti(e.indexOf(".")>0,"Expected a . in origin %s",e),i.splice(1,"s"==r?3:2),e+i.join("/")+Ts(t.search)+(t.hash||"")}function Ss(t){return ms(Ms(t)).origin}function Rs(t,i){return i=ds(i),"function"==typeof URL?new URL(t,i.href).toString():function(t,i){i=ds(i);var n=ms(t=t.replace(/\\/g,"/"));return t.toLowerCase().startsWith(n.protocol)?n.href:t.startsWith("//")?i.protocol+t:t.startsWith("/")?i.origin+t:i.origin+i.pathname.replace(/\/[^/]*$/,"/")+t}(t,i)}function _s(t,i){return ks(i),function(t,i,n,r){return gs(t,bs("__amp_source_origin",n),void 0)}(i,0,Ss(t.location.href))}function ks(t){var i=yt(ms(t).search);ti(!(vs in i),"Source origin is not allowed in %s",t)}var Cs="CANCELLED",Ns="BLOCK_BY_CONSENT",Ds=self.__AMP_ERRORS||[];self.__AMP_ERRORS=Ds;var js=function(t){return(i=0,n=function(){var t=Math.pow(1.5,i++);return 1e3*(t+function(t,i){var n=t*(i=i||.3)*Math.random();return Math.random()>.5&&(n*=-1),n}(t))},js=function(t){return setTimeout(t,n())})(t);var i,n};function Us(t,i){try{if(t)if(void 0!==t.message)t=f(t);else{var n=t;(t=new Error(function(t){try{return JSON.stringify(t)}catch(i){return String(t)}}(n))).origError=n}else t=new Error("Unknown error");if(t.reported)return t;if(t.reported=!0,t.messageArray){var r=q(t.messageArray,(function(t){return null==t?void 0:t.tagName}));r>-1&&(t.associatedElement=t.messageArray[r])}var e=i||t.associatedElement;if(e&&e.classList&&(e.classList.add("i-amphtml-error"),Dt().development&&(e.classList.add("i-amphtml-element-error"),e.setAttribute("error-message",t.message))),self.console&&(tt(t.message)||!t.expected)){var s=console.error||console.log;t.messageArray?s.apply(console,t.messageArray):e?s.call(console,t.message,e):s.call(console,t.message)}e&&e.dispatchCustomEventForTesting&&e.dispatchCustomEventForTesting("amp:error",t.message),Hs.call(self,void 0,void 0,void 0,void 0,t)}catch(t){setTimeout((function(){throw t}))}return t}function Ls(){return new Error(Cs)}function zs(t){return!!t&&("string"==typeof t?t.startsWith(Ns):"string"==typeof t.message&&t.message.startsWith(Ns))}function Hs(t,i,n,r,e){var s=this;if(!this||!this.document||e&&e.expected||us(this.document),!Dt().development){var u=!1;try{u=function(t){if(!t.document)return!1;for(var i=t.document.querySelectorAll("script[src]"),n=0;n<i.length;n++)if(!Ps(i[n].src.toLowerCase()))return!0;return!1}(self)}catch(t){}if(!(u&&Math.random()<.99)){var o=function(t,i,n,r,e,s){t=function(t,i){return i&&(t=i.message?i.message:String(i)),t||(t="Unknown error"),t}(t,e);var u,o,h=!(!e||!e.expected);if(!/_reported_/.test(t)&&t!=Cs){var a=!(self&&self.window),c=Math.random();if(!((function(t){return-1!=t.indexOf(Ye)}(t)||"Script error."==t||a)&&(h=!0,c<.9999))){var f=tt(t);if(!(f&&c<.99)){var l=Object.create(null);l.v=Dt().rtvVersion,l.noAmp=s?"1":"0",l.m=t.replace(X,""),l.a=f?"1":"0",l.ex=h?"1":"0",l.dw=a?"1":"0";var v="1p";if(self.context&&self.context.location?(v="3p",l["3p"]="1"):Dt().runtime&&(v=Dt().runtime),l.rt=v,l.cdn=Tt,"inabox"===v&&(l.adid=Dt().a4aId),l.ca=null!==(o=self.AMP_CONFIG)&&void 0!==o&&o.canary?"1":"0",l.bt=(null===(u=self.AMP_CONFIG)||void 0===u?void 0:u.type)||"unknown",self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(l.or=self.location.ancestorOrigins[0]),self.viewerState&&(l.vs=self.viewerState),self.parent&&self.parent!=self&&(l.iem="1"),self.AMP&&self.AMP.viewer){var d=self.AMP.viewer.getResolvedViewerUrl(),m=self.AMP.viewer.maybeGetMessagingOrigin();d&&(l.rvu=d),m&&(l.mso=m)}var p,g,b,y=[],w=self[Ve]||null;for(var A in w){var x=w[A];y.push("".concat(A,"=").concat(x?"1":"0"))}return l.exps=y.join(","),e?(l.el=(null===(p=e.associatedElement)||void 0===p?void 0:p.tagName)||"u",e.args&&(l.args=JSON.stringify(e.args)),f||e.ignoreStack||!e.stack||(l.s=e.stack),e.message&&(e.message+=" _reported_")):(l.f=i||"",l.l=n||"",l.c=r||""),l.r=self.document?self.document.referrer:"",l.ae=Ds.join(","),l.fr=self.location.originalHash||self.location.hash,"production"===l.bt&&(l.pt="1"),b=t,(g=Ds).length>=25&&g.splice(0,g.length-25+1),g.push(b),l}}}}(t,i,n,r,e,u);o&&js((function(){try{return function(t,i){return i.pt&&Math.random()<.9?h():function(t,i){var n=Jn(t);if(!n.isSingleDoc())return Promise.resolve(!1);var r=n.getSingleDoc();if(!r.getRootNode().documentElement.hasAttribute("report-errors-to-viewer"))return Promise.resolve(!1);var e=mr(r);return e.hasCapability("errorReporter")?e.isTrustedViewer().then((function(t){return!!t&&(e.sendMessage("error",{"m":(n=i).m,"a":n.a,"s":n.s,"el":n.el,"ex":n.ex,"v":n.v,"pt":n.pt}),!0);var n})):Promise.resolve(!1)}(t,i).then((function(t){if(!t){var n=new XMLHttpRequest;n.open("POST",Math.random()<.1?Rt:St,!0),n.send(JSON.stringify(i))}}))}(s,o).catch((function(){}))}catch(t){}}))}}}var Gs="Resource",Vs=function(){function t(t,i,n){i.__AMP__RESOURCE=this,this.ci=t,this.element=i,this.debugid=i.tagName.toLowerCase()+"#"+t,this.hostWin=i.ownerDocument.defaultView,this.fi=n,this.li=i.hasAttribute("placeholder"),this.vi=!1,this.di=void 0,this.mi=i.isBuilt()?1:0,0==this.mi&&i.isBuilding()&&this.build(),this.pi=-1,this.bi=0,this.gi=null,this.yi=null,this.wi=!1,this.Ai=zi(-1e4,-1e4,0,0),this.xi=null,this.Ei=!1,this.Oi=null,this.Ti=null,this.Pi=void 0;var r=new a;this.Ii=r.promise,this.Si=r.resolve,this.Mi=!1}t.forElement=function(i){return Zt(t.forElementOptional(i))},t.forElementOptional=function(t){return t.__AMP__RESOURCE},t.setOwner=function(i,n){Zt(n.contains(i)),t.forElementOptional(i)&&t.forElementOptional(i).updateOwner(n),i.__AMP__OWNER=n;for(var r=i.getElementsByClassName("i-amphtml-element"),e=0;e<r.length;e++){var s=r[e];t.forElementOptional(s)&&t.forElementOptional(s).updateOwner(void 0)}};var i=t.prototype;return i.getId=function(){return this.ci},i.updateOwner=function(t){this.di=t},i.getOwner=function(){if(void 0===this.di){for(var t=this.element;t;t=t.parentElement)if(t.__AMP__OWNER){this.di=t.__AMP__OWNER;break}void 0===this.di&&(this.di=null)}return this.di},i.hasOwner=function(){return!!this.getOwner()},i.getLayoutPriority=function(){return-1!=this.pi?this.pi:this.element.getLayoutPriority()},i.updateLayoutPriority=function(t){this.pi=t},i.getState=function(){return this.mi},i.isBuilt=function(){return this.element.isBuilt()},i.isBuilding=function(){return this.vi},i.whenBuilt=function(){return this.element.signals().whenSignal("res-built")},i.build=function(){var t=this;return this.vi||!this.element.isUpgraded()?null:(this.vi=!0,this.element.buildInternal().then((function(){t.vi=!1,t.mi=1,t.element.signals().signal("res-built")}),(function(i){throw t.maybeReportErrorOnBuildFailure(i),t.vi=!1,t.element.signals().rejectSignal("res-built",i),i})))},i.maybeReportErrorOnBuildFailure=function(t){zs(t)||Qt().error(Gs,"failed to build:",this.debugid,t)},i.changeSize=function(t,i,n){this.element.applySize(t,i,n),this.requestMeasure()},i.overflowCallback=function(t,i,n,r){t&&(this.Pi={height:i,width:n,margins:r}),this.element.overflowCallback(t,i,n,r)},i.resetPendingChangeSize=function(){this.Pi=void 0},i.getPendingChangeSize=function(){return this.Pi},i.getUpgradeDelayMs=function(){return this.element.getUpgradeDelayMs()},i.measure=function(){if(!(this.li&&this.element.parentElement&&this.element.parentElement.tagName.startsWith("AMP-"))||"__AMP__RESOURCE"in this.element.parentElement)if(this.element.ownerDocument&&this.element.ownerDocument.defaultView){this.Ei=!1;var t=this.Ai;this.Ri();var i,n,r=this.Ai,e=(n=r,!((i=t).width==n.width&&i.height===n.height));(1==this.mi||t.top!=r.top||e)&&this.element.isUpgraded()&&(1==this.mi?this.mi=2:4!=this.mi&&5!=this.mi||!this.element.isRelayoutNeeded()||(this.mi=2)),this.hasBeenMeasured()||(this.xi=r),this.element.updateLayoutBox(r,e)}else this.mi=1},i.ensureMeasured=function(){var t=this;return this.hasBeenMeasured()?h():pr(this.hostWin).measure((function(){return t.measure()}))},i.Ri=function(){var t=gr(this.element);this.Ai=t.getLayoutRect(this.element);var i=!1;if(t.supportsPositionFixed()&&this.isDisplayed())for(var n=this.fi.getAmpdoc().win,r=n.document.body,e=this.element;e&&e!=r;e=e.offsetParent){if(e.isAlwaysFixed&&e.isAlwaysFixed()){i=!0;break}if(t.isDeclaredFixed(e)&&"fixed"==jr(n,e).position){i=!0;break}}this.wi=i,i&&(this.Ai=Gi(this.Ai,-t.getScrollLeft(),-t.getScrollTop()))},i.completeCollapse=function(){Nr(this.element,!1),this.Ai=zi(this.Ai.left,this.Ai.top,0,0),this.wi=!1,this.element.updateLayoutBox(this.getLayoutBox());var t=this.getOwner();t&&t.collapsedCallback(this.element)},i.completeExpand=function(){Nr(this.element,!0),this.requestMeasure()},i.isMeasureRequested=function(){return this.Ei},i.hasBeenMeasured=function(){return!!this.xi},i.requestMeasure=function(){this.Ei=!0},i.getLayoutSize=function(){return i=(t=this.Ai).height,{width:t.width,height:i};var t,i},i.getLayoutBox=function(){if(!this.wi)return this.Ai;var t=gr(this.element);return Gi(this.Ai,t.getScrollLeft(),t.getScrollTop())},i.getInitialLayoutBox=function(){return this.xi||this.Ai},i.isDisplayed=function(){if(!this.element.ownerDocument||!this.element.ownerDocument.defaultView)return!1;var t=this.element.getLayout()==oe,i=this.getLayoutBox(),n=i.height>0&&i.width>0;return t||n},i.isFixed=function(){return this.wi},i.overlaps=function(t){return n=t,(i=this.getLayoutBox()).top<=n.bottom&&n.top<=i.bottom&&i.left<=n.right&&n.left<=i.right;var i,n},i.prerenderAllowed=function(){return this.element.prerenderAllowed()},i.previewAllowed=function(){return this.element.previewAllowed()},i.isBuildRenderBlocking=function(){return this.element.isBuildRenderBlocking()},i.whenWithinViewport=function(t){if(Zt(!1!==t),!this.isLayoutPending()||!0===t)return h();var i=t,n=String(i);return this.Oi&&this.Oi[n]?this.Oi[n].promise:this.isWithinViewportRatio(i)?h():(this.Oi=this.Oi||{},this.Oi[n]=new a,this.Oi[n].promise)},i._i=function(){if(this.Oi){var t=this.getDistanceViewportRatio();for(var i in this.Oi)this.isWithinViewportRatio(parseFloat(i),t)&&(this.Oi[i].resolve(),delete this.Oi[i])}},i.getDistanceViewportRatio=function(){var t=gr(this.element).getRect(),i=this.getLayoutBox(),n=this.fi.getScrollDirection(),r=1,e=0;if(t.right<i.left||t.left>i.right)return{distance:!1};if(t.bottom<i.top)e=i.top-t.bottom,-1==n&&(r=2);else{if(!(t.top>i.bottom))return{distance:!0};e=t.top-i.bottom,1==n&&(r=2)}return{distance:e,scrollPenalty:r,viewportHeight:t.height}},i.isWithinViewportRatio=function(t,i){if("boolean"==typeof t)return t;var n=i||this.getDistanceViewportRatio(),r=n.distance,e=n.scrollPenalty,s=n.viewportHeight;return"boolean"==typeof r?r:r<s*t/e},i.renderOutsideViewport=function(){return this._i(),this.hasOwner()||this.isWithinViewportRatio(this.element.renderOutsideViewport())},i.idleRenderOutsideViewport=function(){return this.isWithinViewportRatio(this.element.idleRenderOutsideViewport())},i.layoutScheduled=function(t){this.mi=3,this.element.layoutScheduleTime=t},i.layoutCanceled=function(){this.mi=this.hasBeenMeasured()?2:1},i.startLayout=function(){var t=this;if(this.Ti)return this.Ti;if(4==this.mi)return h();if(5==this.mi)return Promise.reject(this.yi);if(Zt(0!=this.mi),Zt(this.isDisplayed()),3!=this.mi){var i=Qt().createExpectedError("startLayout called but not LAYOUT_SCHEDULED","currently: ",this.mi);return Us(i,this.element),Promise.reject(i)}if(this.bi>0&&!this.element.isRelayoutNeeded())return Qt().fine(Gs,"layout canceled since it wasn't requested:",this.debugid,this.mi),this.mi=4,h();Qt().fine(Gs,"start layout:",this.debugid,"count:",this.bi),this.bi++,this.mi=3,this.gi=new AbortController;var n=this.gi.signal,r=new Promise((function(i,r){pr(t.hostWin).mutate((function(){var e;try{e=t.element.layoutCallback(n)}catch(t){r(t)}Promise.resolve(e).then(i,r)})),n.onabort=function(){return r(Ls())}})).then((function(){return t.ki(!0,n)}),(function(i){return t.ki(!1,n,i)}));return this.Ti=r},i.ki=function(t,i,n){if(this.gi=null,i.aborted){var r=Qt().createError("layoutComplete race");throw r.associatedElement=this.element,Qt().expectedError(Gs,r),Ls()}if(this.Si&&(this.Si(),this.Si=null),this.Ti=null,this.mi=t?4:5,this.yi=n,!t)return Qt().fine(Gs,"loading failed:",this.debugid,n),Promise.reject(n);Qt().fine(Gs,"layout complete:",this.debugid)},i.isLayoutPending=function(){return 4!=this.mi&&5!=this.mi},i.loadedOnce=function(){return this.element.R1()?this.element.whenLoaded():this.Ii},i.isInViewport=function(){return this.Mi&&this._i(),this.Mi},i.setInViewport=function(t){this.Mi=t},i.unlayout=function(){0!=this.mi&&1!=this.mi&&2!=this.mi&&(this.gi&&(this.gi.abort(),this.gi=null),this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.mi=1,this.bi=0,this.Ti=null))},i.getTaskId=function(t){return this.debugid+"#"+t},i.pause=function(){this.element.pause()},i.pauseOnRemove=function(){this.element.pause()},i.resume=function(){this.element.resume()},i.unload=function(){this.element.unmount()},i.disconnect=function(){delete this.element.__AMP__RESOURCE,this.element.disconnect(!0)},t}(),Fs="ready-scan",Bs="scheduler",qs="250% 31.25%",$s=function(){function t(t){var i=this;this.Ni=t;var n=t.win;this.Ci=new n.IntersectionObserver((function(t){return i.ji(t)}),{root:Ni(n)?n.document:null,rootMargin:qs}),this.Di=new Map,this.Ui=new Map,this.zi=[],this.Li=!1,t.whenReady().then((function(){return i.Hi()})),this.Gi=t.onVisibilityChanged((function(){return i.Vi()}))}var i=t.prototype;return i.dispose=function(){this.Ci.disconnect(),this.Ui.clear(),this.Gi&&(this.Gi(),this.Gi=null)},i.scheduleAsap=function(t){this.Ui.set(t,{asap:!0,isIntersecting:!1}),this.Fi(t)},i.schedule=function(t){this.Ui.has(t)||(t.deferredMount()?(this.Ui.set(t,{asap:!1,isIntersecting:!1}),this.Ci.observe(t),this.Di.size>0&&this.Di.forEach((function(i,n){ji(n,t)&&i.observe(t)}))):this.Ui.set(t,{asap:!1,isIntersecting:!0}),this.Fi(t))},i.unschedule=function(t){this.Ui.has(t)&&(this.Ui.delete(t),this.Ci.unobserve(t),this.Di.size>0&&this.Di.forEach((function(i){i.unobserve(t)})),this.zi&&($(this.zi,t),this.Hi()))},i.setContainer=function(t,i){var n=this;if(!this.Di.has(t)){var r=new this.Ni.win.IntersectionObserver((function(t){return n.ji(t)}),{root:i||t,rootMargin:qs});this.Di.set(t,r),this.Ui.forEach((function(i,n){!i.asap&&ji(t,n)&&r.observe(n)}))}},i.removeContainer=function(t){var i=this.Di.get(t);i&&(i.disconnect(),this.Di.delete(t))},i.Bi=function(){var t=this;this.Ni.isReady()&&!this.Li&&(this.Li=!0,this.Ni.win.setTimeout((function(){t.Ni.signals().signal(Fs)}),50))},i.Vi=function(){var t=this,i=this.Ni.getVisibilityState();i!=Ar&&i!=xr&&i!=yr&&i!=wr||this.Ui.forEach((function(i,n){return t.qi(n)}))},i.Fi=function(t){var i=this.zi;i?(i.includes(t)||i.push(t),this.Hi()):this.qi(t)},i.Hi=function(){var t=this.Ni.isReady(),i=this.zi;if(i)for(var n=0;n<i.length;n++){var r=i[n];(t||ki(r,this.Ni.getRootNode()))&&(i.splice(n--,1),this.qi(r))}t&&(this.zi=null,this.Bi())},i.ji=function(t){for(var i=0;i<t.length;i++){var n=t[i],r=n.isIntersecting,e=n.target,s=this.Ui.get(e);if(s){var u=r||s.isIntersecting;u!==s.isIntersecting&&this.Ui.set(e,{asap:s.asap,isIntersecting:u}),u&&this.qi(e)}}},i.qi=function(t){var i=this.zi,n=!(i&&i.includes(t)),r=this.Ui.get(t)||{asap:!1,isIntersecting:!1},e=r.asap,s=r.isIntersecting,u=this.Ni.getVisibilityState();if(n&&(e||s)&&(u==Ar||u==xr||u==yr&&t.prerenderAllowed()||u==wr&&t.previewAllowed())){this.unschedule(t);var o=this.Ni.win;(e||t.getBuildPriority()<=0?o.setTimeout:o.requestIdleCallback||o.setTimeout)((function(){return t.mountInternal()}))}},t}();function Ws(t){return Pn(t,Bs,$s),In(t,Bs)}var Ys=function(){function t(){this.$i=[]}var n=t.prototype;return n.peek=function(){var t=this.length;return t?this.$i[t-1].item:null},n.enqueue=function(t,i){if(isNaN(i))throw new Error("Priority must not be NaN.");var n=this.Wi(i);this.$i.splice(n,0,{item:t,priority:i})},n.Wi=function(t){for(var i=-1,n=0,r=this.length;n<=r&&(i=Math.floor((n+r)/2))!==this.length;)if(this.$i[i].priority<t)n=i+1;else{if(!(i>0&&this.$i[i-1].priority>=t))break;r=i-1}return i},n.forEach=function(t){for(var i=this.length;i--;)t(this.$i[i].item)},n.dequeue=function(){var t=this.$i.pop();return t?t.item:null},i(t,[{key:"length",get:function(){return this.$i.length}}]),t}(),Ks="CHUNK",Js=/nochunking=1/.test(self.location.hash),Xs=h();function Qs(t){return Pn(t,"chunk",eu),In(t,"chunk")}function Zs(t,i,n){if(Js)Xs.then(i);else{var r=Qs(t.documentElement||t);r.runForStartup(i),n&&r.runForStartup((function(){r.Ki=!0}))}}function tu(t,i,n){Js?Xs.then(i):Qs(t).run(i,n)}var iu="not_run",nu=function(){function t(t){this.state=iu,this.Yi=t}var i=t.prototype;return i.Ji=function(t){if("run"!=this.state){this.state="run";try{this.Yi(t)}catch(t){throw this.Xi(t),t}}},i.Qi=function(){return this.Yi.displayName||this.Yi.name},i.Xi=function(t){},i.Zi=function(){return!1},i.on=function(){return!1},t}(),ru=function(t){U(n,t);var i=H(n);function n(t,n,r){var e;return(e=i.call(this,t)).Mn=r,e}var r=n.prototype;return r.Xi=function(t){us(self.document)},r.Zi=function(){return this._n()},r.on=function(){return this.Mn.kn},r._n=function(){return this.Mn.ampdoc.isVisible()},n}(nu),eu=function(){function t(t){var i,n=this;this.ampdoc=t,this.t=t.win,this.Nn=new Ys,this.jn=this.Dn.bind(this),this.Un=0,this.zn=!(!this.t.navigator.scheduling||!this.t.navigator.scheduling.isInputPending),this.Ln=!1,this.Ki=this.t.document.documentElement.hasAttribute("i-amphtml-no-boilerplate"),this.t.addEventListener("message",(function(t){"amp-macro-task"==Xe(t)&&n.Dn(null)})),this.kn=!1,(i=t,Mn(i,"viewer")).then((function(){n.kn=!0})),t.onVisibilityChanged((function(){t.isVisible()&&n.Hn()}))}var i=t.prototype;return i.run=function(t,i){var n=new nu(t);this.Gn(n,i)},i.runForStartup=function(t){var i=new ru(t,this.t,this);this.Gn(i,Number.POSITIVE_INFINITY)},i.Gn=function(t,i){this.Nn.enqueue(t,i),this.Hn()},i.Vn=function(t){for(var i=this.Nn.peek();i&&i.state!==iu;)this.Nn.dequeue(),i=this.Nn.peek();return i&&t&&this.Nn.dequeue(),i},i.Dn=function(t){var i,n=this,r=this.Vn(!0);if(!r)return this.Ln=!1,this.Un=0,!1;try{i=Date.now(),r.Ji(t)}finally{Xs.then().then().then().then().then().then().then().then().then((function(){n.Ln=!1,n.Un+=Date.now()-i,Qt().fine(Ks,r.Qi(),"Chunk duration",Date.now()-i,n.Un),n.Hn()}))}return!0},i.Fn=function(t){var i=this;if(this.Ki&&(this.zn?this.t.navigator.scheduling.isInputPending():this.Un>5))return this.Un=0,void this.Bn();Xs.then((function(){i.jn(t)}))},i.Hn=function(){if(!this.Ln){var t=this.Vn();if(t)return t.Zi()?(this.Ln=!0,void this.Fn(null)):void(t.on()&&this.t.requestIdleCallback?function(t,i,n,r){var e=Date.now();t.requestIdleCallback((function i(s){if(s.timeRemaining()<15){var u=n-(Date.now()-e);u<=0||s.didTimeout?(Qt().fine(Ks,"Timed out",n,s.didTimeout),r(s)):(Qt().fine(Ks,"Rescheduling with",u,s.timeRemaining()),t.requestIdleCallback(i,{timeout:u}))}else Qt().fine(Ks,"Running idle callback with ",15),r(s)}),{timeout:n})}(this.t,0,2e3,this.jn):this.Bn())}},i.Bn=function(){this.t.postMessage("amp-macro-task","*")},t}(),su="activate",uu=function(){function t(t){this.element=t,this.win=oi(t),this.actionMap_=null,this.defaultActionAlias_=null}t.R1=function(){return!1},t.deferredMount=function(t){return!0},t.prerenderAllowed=function(t){return!1},t.previewAllowed=function(t){return this.prerenderAllowed(t)},t.usesLoading=function(t){return!1},t.createLoaderLogoCallback=function(t){return{}},t.getBuildPriority=function(t){return 0},t.getPreconnects=function(t){return null},t.requiresShadowDom=function(){return!1};var i=t.prototype;return i.signals=function(){return this.element.signals()},i.getDefaultActionAlias=function(){return this.defaultActionAlias_},i.getLayoutPriority=function(){return 0},i.updateLayoutPriority=function(t){this.element.getResources().updateLayoutPriority(this.element,t)},i.getLayout=function(){return this.element.getLayout()},i.getLayoutBox=function(){return this.element.getLayoutBox()},i.getLayoutSize=function(){return this.element.getLayoutSize()},i.getAmpDoc=function(){return this.element.getAmpDoc()},i.getVsync=function(){return pr(this.win)},i.getConsentPolicy=function(){var t=null;return this.element.hasAttribute("data-block-on-consent")&&(t=this.element.getAttribute("data-block-on-consent")||"default"),t},i.isLayoutSupported=function(t){return t==te},i.isAlwaysFixed=function(){return!1},i.upgradeCallback=function(){return null},i.buildCallback=function(){},i.preconnectCallback=function(t){},i.attachedCallback=function(){},i.detachedCallback=function(){},i.setAsContainer=function(t){this.element.setAsContainerInternal(t)},i.removeAsContainer=function(){this.element.removeAsContainerInternal()},i.isBuildRenderBlocking=function(){return!1},i.createPlaceholderCallback=function(){return null},i.renderOutsideViewport=function(){return"inabox"==Dt(this.win).runtime||3},i.idleRenderOutsideViewport=function(){return!1},i.ensureLoaded=function(){},i.setReadyState=function(t,i){this.element.setReadyStateInternal(t,i)},i.mountCallback=function(t){},i.unmountCallback=function(){},i.isRelayoutNeeded=function(){return!1},i.layoutCallback=function(){return h()},i.firstLayoutCompleted=function(){this.togglePlaceholder(!1)},i.pauseCallback=function(){},i.resumeCallback=function(){},i.unlayoutCallback=function(){return!1},i.unlayoutOnPause=function(){return!1},i.reconstructWhenReparented=function(){return!0},i.loadPromise=function(t){return Ze(t)},i.registerAction=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;ou(this),this.actionMap_[t]={handler:i,minTrust:n}},i.registerDefaultAction=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:su,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;Zt(!this.defaultActionAlias_),this.registerAction(i,t,n),this.defaultActionAlias_=i},i.executeAction=function(t,i){var n=t.method;n===su&&(n=this.defaultActionAlias_||n),ou(this);var r=this.actionMap_[n],e=this.element.tagName;ti(r,"Method not found: ".concat(n," in ").concat(e));var s=r.handler,u=r.minTrust;if(t.satisfiesTrust(u))return s(t)},i.forwardEvents=function(t,i){var n=this,r=(V(t)?t:[t]).map((function(t){return Je(i,t,(function(i){Di(n.element,t,Xe(i)||{})}))}));return function(){return r.forEach((function(t){return t()}))}},i.getPlaceholder=function(){return this.element.getPlaceholder()},i.togglePlaceholder=function(t){this.element.togglePlaceholder(t)},i.getFallback=function(){return this.element.getFallback()},i.toggleFallback=function(t){this.element.toggleFallback(t)},i.toggleLoading=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.element.toggleLoading(t,i)},i.getOverflowElement=function(){return this.element.getOverflowElement()},i.renderStarted=function(){this.element.renderStarted()},i.getViewport=function(){return gr(this.getAmpDoc())},i.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()},i.collapse=function(){sr(this.getAmpDoc()).collapseElement(this.element)},i.attemptCollapse=function(){return sr(this.getAmpDoc()).attemptCollapse(this.element)},i.forceChangeHeight=function(t){sr(this.getAmpDoc()).forceChangeSize(this.element,t,void 0)},i.attemptChangeHeight=function(t){return sr(this.getAmpDoc()).requestChangeSize(this.element,t,void 0)},i.attemptChangeSize=function(t,i,n){return sr(this.getAmpDoc()).requestChangeSize(this.element,t,i,void 0,n)},i.measureElement=function(t){return sr(this.getAmpDoc()).measureElement(t)},i.mutateElement=function(t,i){return this.measureMutateElement(null,t,i)},i.measureMutateElement=function(t,i,n){return sr(this.getAmpDoc()).measureMutateElement(n||this.element,t,i)},i.mutateElementSkipRemeasure=function(t){return sr(this.getAmpDoc()).mutateElement(this.element,t,!0)},i.collapsedCallback=function(t){},i.expand=function(){sr(this.getAmpDoc()).expandElement(this.element)},i.mutatedAttributesCallback=function(t){},i.onLayoutMeasure=function(){},i.user=function(){return Jt(this.element)},i.getApi=function(){return this},t}();function ou(t){t.actionMap_||(t.actionMap_=t.win.Object.create(null))}var hu,au=function(t){U(n,t);var i=H(n);function n(){return i.apply(this,arguments)}return n}(uu),cu=Date.now(),fu={bubbles:!1},lu=function(){return!0},vu=[],du=new Set;function mu(t,n){var r=function(t,n){if(t.__AMP_BASE_CE_CLASS)return t.__AMP_BASE_CE_CLASS;var r=function(r){U(s,r);var e=H(s);function s(){var t;return(t=e.call(this)).createdCallback(),t}var u=s.prototype;return u.createdCallback=function(){this.qn=!1,this.$n=!1,this.Wn=null,this.Kn=!1,this.Yn=null,this.Jn=null,this.Xn="upgrading",this.everAttached=!1,this.Ni=null,this.fi=null,this.Qn=te,this.bi=0,this.Zn=!1,this.warnOnMissingOverflow=!0,this.sizerElement=void 0,this.br=void 0,this.layoutScheduleTime=void 0;var i=this,n=t.__AMP_EXTENDED_ELEMENTS&&t.__AMP_EXTENDED_ELEMENTS[this.localName];this.gr=n===au?null:n||null,this.gr||vu.push(this),this.Ar=null,this.Er=1,this.Or=0,this.Tr=void 0,this.Pr=void 0,this.Bt=new Ir,this.gr&&this.Bt.signal(xe);var r=function(t,i){return Gn(t=Rn(t),i)?Nn(t,i):null}(t,"performance");this.Ir=r&&r.isPerformanceTrackingOn(),this.Sr=null,i.__AMP_UPG_RES&&(i.__AMP_UPG_RES(i),delete i.__AMP_UPG_RES,delete i.__AMP_UPG_PRM)},u.signals=function(){return this.Bt},u.getAmpDoc=function(){return Zt(this.Ni),this.Ni},u.getResources=function(){return Zt(this.fi),this.fi},u.isUpgraded=function(){return 2==this.Er},u.whenUpgraded=function(){return this.Bt.whenSignal(Ee)},u.upgrade=function(t){this.Pr||1==this.Er&&(this.gr=t,this.Bt.signal(xe),this.everAttached&&this.Mr())},u.markUnresolved=function(){this.gr||this.classList.add("amp-unresolved","i-amphtml-unresolved")},u.getUpgradeDelayMs=function(){return this.Or},u.Rr=function(i,n){this.Ar=i,this.Or=t.Date.now()-n,this.Er=2,this.setReadyStateInternal(sn),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this._r(),this.dispatchCustomEventForTesting(ye),this.R1()||this.getResources().upgraded(this),this.Bt.signal(Ee)},u._r=function(){this.Qn!=te&&this.Ar&&!this.Ar.isLayoutSupported(this.Qn)&&(ti(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."),ti(!1,"Layout not supported: ".concat(this.Qn)))},u.getBuildPriority=function(){return this.gr?this.gr.getBuildPriority(this):3},u.getLayoutPriority=function(){return this.Ar?this.Ar.getLayoutPriority():3},u.getDefaultActionAlias=function(){return Zt(this.isUpgraded()),this.Ar.getDefaultActionAlias()},u.isBuilding=function(){return!!this.Wn},u.isBuilt=function(){return this.qn},u.whenBuilt=function(){return this.Bt.whenSignal(Pe)},u.buildInternal=function(){var t=this;if(gu(this),Zt(this.gr),this.Wn)return this.Wn;this.setReadyStateInternal(sn);var i=this.kr();this.Nr();var n=i.then((function(){var i,n=t.Cr(),r=n?null:t.jr();if(n||r)return(i=t,Fn(i,"consentPolicyManager","amp-consent")).then((function(t){return!t||(n?t.whenPolicyUnblock(n):t.whenPurposesUnblock(r))})).then((function(t){if(!t)throw new Error(Ns)}))})).then((function(){return Zt(t.Ar).buildCallback()}));return this.Wn=n.then((function(){if(t.qn=!0,t.classList.add("i-amphtml-built"),t.classList.remove("i-amphtml-notbuilt","amp-notbuilt"),t.Bt.signal(Pe),t.R1()?t.setReadyStateInternal(t.Xn!=sn?t.Xn:un):(t.setReadyStateInternal(on),t.preconnect(!1)),t.$n&&t.an(),t.Tr&&fr(oi(t)).delay(t.Dr.bind(t),1),!t.getPlaceholder()){var i=t.createPlaceholder();i&&t.appendChild(i)}}),(function(i){throw t.Bt.rejectSignal(Pe,i),t.R1()&&t.setReadyStateInternal(an,i),zs(i)||Us(i,t),i}))},u.build=function(){var t=this;return this.Wn?this.Wn:this.Bt.whenSignal(xe).then((function(){return t.R1()&&Ws(t.getAmpDoc()).scheduleAsap(t),t.whenBuilt()}))},u.mountInternal=function(){var t=this;if(this.Yn)return this.Yn;this.Jn=this.Jn||new AbortController;var i=this.Jn.signal;return this.Yn=this.buildInternal().then((function(){if(Zt(t.R1()),!i.aborted){t.setReadyStateInternal(t.Xn!=un?t.Xn:t.gr.usesLoading(t)?on:un),t.Kn=!0;var n=t.Ar.mountCallback(i);return!!n&&n.then(lu)}})).then((function(n){if(t.Jn=null,i.aborted)throw Ls();t.Bt.signal(Oe),t.gr.usesLoading(t)&&!n||t.setReadyStateInternal(hn)})).catch((function(i){var n;throw t.Jn=null,(n=i)&&("string"==typeof n?n.startsWith(Cs):"string"==typeof n.message&&n.message.startsWith(Cs))?t.Yn=null:(t.Bt.rejectSignal(Oe,i),t.setReadyStateInternal(an,i)),i}))},u.mount=function(){var t=this;if(this.Yn)return this.Yn;this.Jn=this.Jn||new AbortController;var i=this.Jn.signal;return this.Bt.whenSignal(xe).then((function(){if(!t.R1())return t.whenBuilt();if(i.aborted)throw Ls();return Ws(t.getAmpDoc()).scheduleAsap(t),t.whenMounted()}))},u.unmount=function(){this.$n&&this.pause(),this.R1()?(this.Jn&&(this.Jn.abort(),this.Jn=null),Ws(this.getAmpDoc()).unschedule(this),this.Kn&&this.Ar.unmountCallback(),this.Kn=!1,this.Yn=null,this.Ur(),this.$n&&this.Mr(!0)):this.zr()},u.whenMounted=function(){return this.Bt.whenSignal(Oe)},u.whenLoaded=function(){return this.Bt.whenSignal(Me)},u.ensureLoaded=function(t){var i=this;return this.mount().then((function(){if(i.R1())return i.gr.usesLoading(i)&&i.Ar.ensureLoaded(),i.whenLoaded();var n=i.Lr();return n.whenBuilt().then((function(){if(4!=n.getState()&&((3!=n.getState()||n.isMeasureRequested())&&n.measure(),n.isDisplayed()))return i.getResources().scheduleLayoutOrPreload(n,!0,t,!0),i.whenLoaded()}))}))},u.setAsContainerInternal=function(t){Ws(this.getAmpDoc()).setContainer(this,t)},u.removeAsContainerInternal=function(){Ws(this.getAmpDoc()).removeContainer(this)},u.setReadyStateInternal=function(t,i){if(t!==this.Xn&&(this.Xn=t,this.R1()))switch(t){case on:return this.Bt.signal(Ie),this.Bt.reset(Se),this.Bt.reset(Me),this.classList.add("i-amphtml-layout"),this.toggleLoading(!0),void this.dispatchCustomEventForTesting(we);case hn:return this.Bt.signal(Ie),this.Bt.signal(Me),this.Bt.reset(Se),this.classList.add("i-amphtml-layout"),this.toggleLoading(!1),Di(this,"load",null,fu),void this.dispatchCustomEventForTesting(Ae);case an:return this.Bt.rejectSignal(Me,i),this.toggleLoading(!1),void Di(this,"error",i,fu)}},u.preconnect=function(t){var i=this;Zt(this.isUpgraded()),t?this.Ar.preconnectCallback(t):Zs(this.getAmpDoc(),(function(){i.ownerDocument&&i.ownerDocument.defaultView&&i.Ar.preconnectCallback(t)}))},u.R1=function(){return!!this.gr&&this.gr.R1()},u.deferredMount=function(){return!!this.gr&&this.gr.deferredMount(this)},u.isAlwaysFixed=function(){return!!this.Ar&&this.Ar.isAlwaysFixed()},u.updateLayoutBox=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isBuilt()&&this.onMeasure(i)},u.onMeasure=function(){Zt(this.isBuilt());try{this.Ar.onLayoutMeasure()}catch(t){Us(t,this)}},u.Nr=function(){var t;return void 0!==this.sizerElement||this.Qn!==re&&this.Qn!==he||(this.sizerElement=this.querySelector("i-amphtml-sizer"),null===(t=this.sizerElement)||void 0===t||t.setAttribute("slot","i-amphtml-svc")),this.sizerElement||null},u.Hr=function(t){if(this.Qn!==re)if(this.Qn!==he);else{var i=t.querySelector(".i-amphtml-intrinsic-sizer");if(!i)return;i.setAttribute("src","")}else kr(t,"paddingTop","0")},u.Gr=function(){var t=this,i=this.hasAttribute("media")||this.hasAttribute("sizes")&&!this.hasAttribute("disable-inline-width")||this.hasAttribute("heights"),n=!!this.Sr,r=this.ownerDocument.defaultView;i!=n&&r&&(i?(this.Sr=new Re(r,(function(){return t.Vr()})),this.Vr()):this.Fr())},u.Fr=function(){this.Sr&&(this.Sr.dispose(),this.Sr=null)},u.Vr=function(){var t=this.Sr;if(t){t.start();var i=this.getAttribute("media")||null,n=!i||t.resolveMatchQuery(i);this.classList.toggle("i-amphtml-hidden-by-media-query",!n);var r=this.hasAttribute("disable-inline-width")?null:this.getAttribute("sizes");r&&kr(this,"width",t.resolveListQuery(r));var e=this.Qn===re?this.getAttribute("heights"):null;if(e){var s=this.Nr();s&&kr(s,"paddingTop",t.resolveListQuery(e))}t.complete(),this.Lr().requestMeasure()}},u.applySize=function(t,i,n){var r=this.Nr();r&&(this.sizerElement=null,this.Hr(r),this.Br((function(){r&&Mi(r)}))),void 0!==t&&kr(this,"height",t,"px"),void 0!==i&&kr(this,"width",i,"px"),n&&(null!=n.top&&kr(this,"marginTop",n.top,"px"),null!=n.right&&kr(this,"marginRight",n.right,"px"),null!=n.bottom&&kr(this,"marginBottom",n.bottom,"px"),null!=n.left&&kr(this,"marginLeft",n.left,"px")),this.qr()&&this.$r(),Di(this,"amp:size-changed")},u.connectedCallback=function(){if(function(){if(void 0===hu){var t=self.document.createElement("template");hu="content"in t}return hu}()||void 0!==this.Pr||(this.Pr=!!yi(this,"template")),!this.Pr&&!this.$n&&Ri(this)){if(this.$n=!0,this.everAttached||this.classList.add("i-amphtml-element","i-amphtml-notbuilt","amp-notbuilt"),!this.Ni){var t=oi(this),i=Jn(t).getAmpDoc(this);this.Ni=i,n(i,this,this.gr)}if(this.fi||(this.fi=ar(this.Ni)),this.getResources().add(this),this.everAttached){var r=this.reconstructWhenReparented();r&&this.Ur(),this.isUpgraded()&&(r&&!this.R1()&&this.getResources().upgraded(this),this.an(),this.dispatchCustomEventForTesting(ye)),this.gr&&this.R1()&&this.Mr()}else{this.everAttached=!0;try{this.Qn=function(t){var i=t.getAttribute("i-amphtml-layout");if(i){var n,r=ce(i);return et(r),r!=re&&r!=he||!t.firstElementChild?r==te&&Nr(t,!1):(t.sizerElement=t.querySelector("i-amphtml-sizer")||void 0,null===(n=t.sizerElement)||void 0===n||n.setAttribute("slot","i-amphtml-svc")),r}var e=Le(t),s=e.height,u=e.layout,o=e.width;if(t.classList.add(fe(u)),le(u)&&t.classList.add("i-amphtml-layout-size-defined"),u==te)Nr(t,!1);else if(u==ie)Cr(t,{width:ut(o),height:ut(s)});else if(u==ne)kr(t,"height",ut(s));else if(u==re){var h=t.ownerDocument.createElement("i-amphtml-sizer");h.setAttribute("slot","i-amphtml-svc");var a=me(s),c=me(o);ot(a),ot(c),Cr(h,{paddingTop:a/c*100+"%"}),t.insertBefore(h,t.firstChild),t.sizerElement=h}else if(u==he){var f=Ne(t)(je),l=f.firstElementChild;st(l),l.setAttribute("src",'data:image/svg+xml;charset=utf-8,<svg height="'.concat(s,'" width="').concat(o,'" xmlns="http://www.w3.org/2000/svg" version="1.1"/>')),t.insertBefore(f,t.firstChild),t.sizerElement=f}else u==se||u==ee||(u==ue?(o&&kr(t,"width",o),s&&kr(t,"height",s)):u==oe&&(t.classList.add("i-amphtml-layout-awaiting-size"),o&&kr(t,"width",o),kr(t,"height",0)));return t.setAttribute("i-amphtml-layout",u),u}(this),this.Gr()}catch(t){Us(t,this)}this.gr?this.Mr():(du.has("*")||du.has(this.tagName.toLowerCase()))&&this.markUnresolved(),this.isUpgraded()||this.dispatchCustomEventForTesting("amp:stubbed")}this.toggleLoading(!0)}},u.qr=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")},u.$r=function(){this.classList.remove("i-amphtml-layout-awaiting-size")},u.Mr=function(t){if(this.R1()){if(!this.Yn)if(Ws(this.getAmpDoc()).schedule(this),this.classList.remove("amp-unresolved","i-amphtml-unresolved"),this.Wn)this.setReadyStateInternal(this.gr&&this.gr.usesLoading(this)?on:un);else if(this.setReadyStateInternal(sn),!t){var i=this.gr.getPreconnects(this);if(i&&i.length>0){var n=this.getAmpDoc();Zs(n,(function(){var t=n.win;if(t){var r=hr(t);i.forEach((function(t){return r.url(n,t,!1)}))}}))}}}else this.Wr()},u.Wr=function(){var i=this;if(!this.Pr&&1==this.Er){var n=new(Zt(this.gr))(this);this.Er=4;var r=t.Date.now(),e=n.upgradeCallback();if(e){if("function"==typeof e.then)return e.then((function(t){i.Rr(t||n,r)})).catch((function(t){i.Er=3,d(t)}));this.Rr(e,r)}else this.Rr(n,r)}},u.disconnectedCallback=function(){this.disconnect(!1)},u.an=function(){this.qn&&this.Ar.attachedCallback()},u.disconnect=function(t){!this.Pr&&this.$n&&(!t&&Ri(this)||(t&&this.classList.remove("i-amphtml-element"),this.$n=!1,this.getResources().remove(this),this.Ar&&this.Ar.detachedCallback(),this.R1()&&this.unmount(),this.toggleLoading(!1),this.Fr()))},u.dispatchCustomEventForTesting=function(t,i){},u.prerenderAllowed=function(){return!this.hasAttribute("noprerender")&&!!this.gr&&this.gr.prerenderAllowed(this)},u.previewAllowed=function(){return!!this.gr&&this.gr.previewAllowed(this)},u.isBuildRenderBlocking=function(){return!!this.Ar&&this.Ar.isBuildRenderBlocking()},u.createPlaceholder=function(){return this.Ar?this.Ar.createPlaceholderCallback():null},u.createLoaderLogo=function(){return this.gr?this.gr.createLoaderLogoCallback(this):{}},u.renderOutsideViewport=function(){return!!this.Ar&&this.Ar.renderOutsideViewport()},u.idleRenderOutsideViewport=function(){return!!this.Ar&&this.Ar.idleRenderOutsideViewport()},u.getLayoutBox=function(){return this.Lr().getLayoutBox()},u.getLayoutSize=function(){return this.Lr().getLayoutSize()},u.getOwner=function(){return this.Lr().getOwner()},u.getIntersectionChangeEntry=function(){var t=this.Ar?this.Ar.getIntersectionElementLayoutBox():this.getLayoutBox(),i=this.getOwner(),n=gr(this.getAmpDoc()).getRect();return function(t,i,n){var r,e,s,u,o=function(t){for(var i=-1/0,n=1/0,r=-1/0,e=1/0,s=0;s<arguments.length;s++){var u=arguments[s];if(u&&(i=Math.max(i,u.left),n=Math.min(n,u.left+u.width),r=Math.max(r,u.top),e=Math.min(e,u.top+u.height),n<i||e<r))return null}return n==1/0?null:zi(i,r,n-i,e-r)}(t,i,n)||zi(0,0,0,0);return function(t,i,n,r){var e=t,s=i;return i&&(n=Gi(n,-i.left,-i.top),e=Gi(e,-i.left,-i.top),s=Gi(s,-i.left,-i.top)),{time:"undefined"!=typeof performance&&performance.now?performance.now():Date.now()-cu,rootBounds:s,boundingClientRect:e,intersectionRect:n,intersectionRatio:r}}(t,n,o,(e=t,s=(r=o).width*r.height,0==(u=e.width*e.height)?0:s/u))}(t,i&&i.getLayoutBox(),n)},u.Lr=function(){return this.getResources().getResourceForElement(this)},u.getResourceId=function(){return this.Lr().getId()},u.isRelayoutNeeded=function(){return!!this.Ar&&this.Ar.isRelayoutNeeded()},u.getImpl=function(){var t=this;return(arguments.length>0&&void 0!==arguments[0]&&!arguments[0]?this.kr():this.build()).then((function(){return t.Ar}))},u.kr=function(){var t=this;return this.Bt.whenSignal(xe).then((function(){return t.Wr(),t.whenUpgraded()}))},u.getApi=function(){return this.getImpl().then((function(t){return t.getApi()}))},u.getLayout=function(){return this.Qn},u.layoutCallback=function(t){var i=this;if(gu(this),Zt(this.isBuilt()),t.aborted)return Promise.reject(Ls());this.dispatchCustomEventForTesting(we);var n=0==this.bi;this.Bt.reset(Se),n&&this.Bt.signal(Ie),this.toggleLoading(!0);var r=c((function(){return i.Ar.layoutCallback()}));return this.preconnect(!0),this.classList.add("i-amphtml-layout"),r.then((function(){if(t.aborted)throw Ls();n&&i.Bt.signal(Me),i.setReadyStateInternal(hn),i.bi++,i.toggleLoading(!1),i.Zn||(i.Ar.firstLayoutCompleted(),i.Zn=!0,i.dispatchCustomEventForTesting(Ae))}),(function(r){if(t.aborted)throw Ls();throw n&&i.Bt.rejectSignal(Me,r),i.setReadyStateInternal(an,r),i.bi++,i.toggleLoading(!1),r}))},u.pause=function(){this.isBuilt()&&(this.Ar.pauseCallback(),!this.R1()&&this.Ar.unlayoutOnPause()&&this.zr())},u.resume=function(){this.isBuilt()&&this.Ar.resumeCallback()},u.unlayoutCallback=function(){if(gu(this),!this.isBuilt())return!1;this.Bt.signal(Se);var t=this.Ar.unlayoutCallback();return t&&this.Ur(),this.dispatchCustomEventForTesting("amp:unload"),t},u.zr=function(){this.Lr().unlayout(),this.$n&&this.fi&&this.fi.schedulePass()},u.Ur=function(){this.bi=0,this.Zn=!1,this.Bt.reset(Oe),this.Bt.reset(Te),this.Bt.reset(Ie),this.Bt.reset(Me),this.Bt.reset("ini-load")},u.reconstructWhenReparented=function(){return!!this.Ar&&this.Ar.reconstructWhenReparented()},u.collapse=function(){this.Ar&&this.Ar.collapse()},u.collapsedCallback=function(t){this.Ar&&this.Ar.collapsedCallback(t)},u.expand=function(){this.Ar&&this.Ar.expand()},u.mutatedAttributesCallback=function(t){this.Ar?this.Ar.mutatedAttributesCallback(t):this.R1()&&Ws(this).scheduleAsap(this)},u.enqueAction=function(t){gu(this),this.isBuilt()?this.Kr(t,!1):(void 0===this.Tr&&(this.Tr=[]),Zt(this.Tr).push(t),this.build())},u.Dr=function(){var t=this;if(this.Tr){var i=Zt(this.Tr);this.Tr=null,i.forEach((function(i){t.Kr(i,!0)}))}},u.Kr=function(t,i){try{this.Ar.executeAction(t,i)}catch(i){d("Action execution failed:",i,t.node.tagName,t.method)}},u.Cr=function(){var t,i,n=this.getAttribute("data-block-on-consent");if(null===n){if(!(i=(t=this).getAmpDoc().getMetaByName("amp-consent-blocking"))||!(i=i.toUpperCase().replace(/\s+/g,"")).split(",").includes(t.tagName))return null;n="default",this.setAttribute("data-block-on-consent",n)}return""==n||"default"==n?Zt(this.Ar).getConsentPolicy():n},u.jr=function(){var t,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(",")},u.getPlaceholder=function(){return wi(this,(function(t){return t.hasAttribute("placeholder")&&!pu(t)}))},u.togglePlaceholder=function(t){if(gu(this),t){var i=this.getPlaceholder();i&&i.classList.remove("amp-hidden")}else for(var n=(this,e=void 0,void 0,di("placeholder"),e=this,s="> [".concat("placeholder","]"),fi(e)?e.querySelectorAll(li(s,":scope")):mi(e,s)),r=0;r<n.length;r++)pu(n[r])||n[r].classList.add("amp-hidden");var e,s},u.getFallback=function(){return Ai(this,"fallback")},u.toggleFallback=function(t){gu(this);var i,n=this.Lr().getState();if((this.R1()||!t||0!=n&&1!=n&&2!=n)&&(this.classList.toggle("amp-notsupported",t),1==t)){var r=this.getFallback();r&&(i=this.getAmpDoc(),In(i,"owners")).scheduleLayout(this,r)}},u.renderStarted=function(){this.Bt.signal(Te),this.togglePlaceholder(!1),this.toggleLoading(!1)},u.Yr=function(t){var i,n,r=this.bi>0||this.Bt.get(Te);return!(this.Qn==te||this.hasAttribute("noloading")||r&&!t||(this,n=this.tagName.toUpperCase(),"AMP-AD"!==(i=n)&&"AMP-ANIM"!==i&&"AMP-EMBED"!==i&&"AMP-FACEBOOK"!==i&&"AMP-FACEBOOK-COMMENTS"!==i&&"AMP-FACEBOOK-PAGE"!==i&&"AMP-GOOGLE-DOCUMENT-EMBED"!==i&&"AMP-IFRAME"!==i&&"AMP-IMG"!==i&&"AMP-INSTAGRAM"!==i&&"AMP-LIST"!==i&&"AMP-PINTEREST"!==i&&"AMP-PLAYBUZZ"!==i&&"AMP-RENDER"!==i&&"AMP-TIKTOK"!==i&&"AMP-TWITTER"!==i&&!function(t){return"AMP-VIDEO"!=t&&ae.test(t)}(n))||xi(this))},u.toggleLoading=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.ownerDocument&&this.ownerDocument.defaultView){var n=er(this.getAmpDoc());n&&((t=t&&this.Yr(i))?n.track(this):n.untrack(this))}},u.getOverflowElement=function(){return void 0===this.br&&(this.br=Ai(this,"overflow"),this.br&&(this.br.hasAttribute("tabindex")||this.br.setAttribute("tabindex","0"),this.br.hasAttribute("role")||this.br.setAttribute("role","button"))),this.br},u.overflowCallback=function(t,i,n){var r=this;this.getOverflowElement(),this.br?(this.br.classList.toggle("amp-visible",t),this.br.onclick=t?function(){var t=sr(r.getAmpDoc());t.forceChangeSize(r,i,n),t.mutateElement(r,(function(){r.overflowCallback(!1,i,n)}))}:null):t&&this.warnOnMissingOverflow&&Jt().warn("CustomElement","Cannot resize element and overflow is not available",this)},u.Br=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.Ni?sr(this.getAmpDoc()).mutateElement(i||this,t,n):t()},i(s,[{key:"readyState",get:function(){return this.Xn}}]),s}(t.HTMLElement);return t.__AMP_BASE_CE_CLASS=r,t.__AMP_BASE_CE_CLASS}(t,n),e=function(t){U(n,t);var i=H(n);function n(){return i.apply(this,arguments)}return n.prototype.adoptedCallback=function(){Object.getPrototypeOf(this)!==s&&Object.setPrototypeOf(this,s)},n}(r),s=e.prototype;return e}function pu(t){return"placeholder"in t}function gu(t){Zt(!t.Pr)}function bu(t){du.add(t||"*");for(var i,n=o(vu,!0);!(i=n()).done;){var r=i.value;null!=t&&r.tagName.toLowerCase()!==t||r.markUnresolved()}}var yu=new WeakMap;function wu(t){return t.__AMP_EXTENDED_ELEMENTS||(t.__AMP_EXTENDED_ELEMENTS={}),t.__AMP_EXTENDED_ELEMENTS}function Au(t,i,n){var r=wu(t);if(r[i]){if(r[i]!=n){ti(r[i]==au,"%s is already registered. The script tag for %s is likely included twice in the page.",i,i),r[i]=n;for(var e=0;e<vu.length;e++){var s=vu[e];s.tagName.toLowerCase()==i&&s.ownerDocument.defaultView==t&&(xu(s,n),vu.splice(e--,1))}}}else Iu(t,i,n)}function xu(t,i){try{t.upgrade(i)}catch(i){Us(i,t)}}function Eu(t){(function(t){if(!t)return[];for(var i=t.querySelectorAll("script[custom-element],script[custom-template]"),n=[],r=0;r<i.length;r++){var e=i[r],s=e.getAttribute("custom-element")||e.getAttribute("custom-template"),u=yn(e.src);s&&u&&n.push({script:e,extensionId:s,extensionVersion:u.extensionVersion})}return n})(t.getHeadNode()).forEach((function(i){var n=i.extensionId,r=i.extensionVersion,e=i.script;t.declareExtension(n,r),e.addEventListener("error",(function(){return bu(n)})),Pu(t.win,n)})),t.isBodyAvailable()&&t.setExtensionsKnown()}function Pu(t,i){wu(t)[i]||Iu(t,i,au)}function Ou(t,i,n){Iu(i,n,wu(t)[n]||au)}function Iu(t,i,n){wu(t)[i]=n;var r=mu(t,Tu);t.customElements.define(i,r)}function Tu(t,i,n){yu.has(t)||(yu.set(t,!0),Eu(t));var r=i.localName;n||t.declaresExtension(r)||nr(t.win).installExtensionForDoc(t,r,"0.1")}var Mu="amp-img",Su=["alt","aria-describedby","aria-label","aria-labelledby","crossorigin","referrerpolicy","title","importance","sizes","srcset","src"],Ru=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t)).Jr=!0,n.Xr=null,n.Qr=null,n.Zr=null,n.te=0,n}n.R1=function(){return!1},n.prerenderAllowed=function(){return!0},n.usesLoading=function(){return!0},n.getPreconnects=function(t){var i=t.getAttribute("src");if(i)return[i];var n=t.getAttribute("srcset");if(n){var r=/\S+/.exec(n);if(r)return[r[0]]}return null};var r=n.prototype;return r.mutatedAttributesCallback=function(t){if(this.Xr){var i=Su.filter((function(i){return void 0!==t[i]}));t.src&&!t.srcset&&this.element.hasAttribute("srcset")&&(this.element.removeAttribute("srcset"),i.push("srcset"),this.user().warn(Mu,"Removed [srcset] since [src] was mutated. Recommend adding a [srcset] binding to support responsive images.",this.element)),ge(i,this.element,this.Xr,!0),this.propagateDataset(this.Xr),Zr(this.Xr),n.R1()&&!this.Xr.complete&&this.setReadyState(on)}},r.preconnectCallback=function(t){var i=this.element.getAttribute("src");if(i)hr(this.win).url(this.getAmpDoc(),i,t);else{var n=this.element.getAttribute("srcset");if(!n)return;var r=/\S+/.exec(n);r&&hr(this.win).url(this.getAmpDoc(),r[0],t)}},r.isLayoutSupported=function(t){return le(t)},r.ie=function(){if(this.Xr)return this.Xr;this.Jr=!this.element.hasAttribute("fallback");var t,i,n=Ui(this.element);return n&&(this.Xr=pi(this.element,"> img:not([placeholder])")),this.Xr=this.Xr||new Image,this.Xr.setAttribute("decoding","async"),this.element.id&&this.Xr.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),this.user().error(Mu,"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.ne(!0),ge(Su,this.element,this.Xr),this.propagateDataset(this.Xr),Zr(this.Xr),pe(this.Xr,!0),t=this.element,i=this.Xr,t.hasAttribute("object-fit")&&kr(i,"object-fit",t.getAttribute("object-fit")),t.hasAttribute("object-position")&&kr(i,"object-position",t.getAttribute("object-position")),n||this.element.appendChild(this.Xr),this.Xr},r.ne=function(t){var i=this;if(this.Xr&&!this.element.hasAttribute("i-amphtml-ssr")&&!this.element.hasAttribute("sizes")&&!this.Xr.hasAttribute("sizes")){var n=this.element.getAttribute("srcset");if(n&&!/[0-9]+x(?:,|$)/.test(n)){var r=this.element.getLayoutSize().width;if(this.re(r)){var e=this.getViewport().getWidth(),s="(max-width: ".concat(e,"px) ").concat(r,"px, "),u=r+"px";if(this.getLayout()!==ie){var o=Math.round(100*r/e);u=Math.max(o,100)+"vw"}var h=s+u;t?this.Xr.setAttribute("sizes",h):this.mutateElement((function(){i.Xr.setAttribute("sizes",h)})),this.te=r}}}},r.re=function(t){return!this.Xr.hasAttribute("sizes")||t>this.te},r.reconstructWhenReparented=function(){return!1},r.mountCallback=function(){var t=this,i=!!this.Xr,n=this.ie();i||(Je(n,"load",(function(){t.setReadyState(hn),t.firstLayoutCompleted(),t.ee()})),Je(n,"error",(function(i){t.setReadyState(an,i),t.se()}))),n.complete?(this.setReadyState(hn),this.firstLayoutCompleted(),this.ee()):this.setReadyState(on)},r.unmountCallback=function(){var t=this.Xr;t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Mi(t),this.Xr=null)},r.ensureLoaded=function(){this.Xr.loading="eager"},r.layoutCallback=function(){var t=this;this.ie();var i=this.Xr;return this.Qr=Je(i,"load",(function(){return t.ee()})),this.Zr=Je(i,"error",(function(){return t.se()})),this.element.getLayoutSize().width<=0?h():this.loadPromise(i)},r.unlayoutCallback=function(){if(!n.R1()){this.Zr&&(this.Zr(),this.Zr=null),this.Qr&&(this.Qr(),this.Qr=null);var t=this.Xr;return t&&!t.complete&&(t.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=",Mi(t),this.Xr=null),!0}},r.firstLayoutCompleted=function(){var t=this.getPlaceholder();t&&t.classList.contains("i-amphtml-blurry-placeholder")?_r(t,{"opacity":0}):this.togglePlaceholder(!1)},r.ee=function(){!this.Jr&&this.Xr.classList.contains("i-amphtml-ghost")&&(this.Xr.classList.remove("i-amphtml-ghost"),this.toggleFallback(!1))},r.se=function(){this.Jr&&(this.Xr.classList.add("i-amphtml-ghost"),this.toggleFallback(!0),this.togglePlaceholder(!1),this.Jr=!1)},r.propagateDataset=function(t){for(var i in t.dataset)i in this.element.dataset||delete t.dataset[i];for(var n in this.element.dataset)n.startsWith("ampBind")&&"ampBind"!==n||t.dataset[n]!==this.element.dataset[n]&&(t.dataset[n]=this.element.dataset[n])},n}(uu),_u=function(t){U(n,t);var i=H(n);function n(){return i.apply(this,arguments)}n.prerenderAllowed=function(){return!0};var r=n.prototype;return r.isLayoutSupported=function(t){return t==ee||le(t)},r.buildCallback=function(){!function(t){if(!Ui(t)){var i=function(t){var i;return ce(null!==(i=t.getAttribute("layout"))&&void 0!==i?i:"")||Le(t).layout}(t);if(i!=ee){var n=t.ownerDocument.createElement("div");pe(n),function(t){return function(t,i){for(var n=[],r=t.firstChild;r;r=r.nextSibling)!xi(r)&&n.push(r);return n}(t)}(t).forEach((function(t){n.appendChild(t)})),t.appendChild(n)}}}(this.element)},n}(uu);function ku(t){var i;return null===(i=t.featurePolicy)||void 0===i?void 0:i.allowedFeatures().includes("attribution-reporting")}function Cu(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,e=arguments.length>4?arguments[4]:void 0,s=Gr.getImage(t),u=new s;n&&(u.referrerPolicy="no-referrer");var o=0;if(null!=r)if(ku(t.document)){var h=Nu(t,o=6,e);r=h(r),u.attributionSrc=r}else o=5;var a=Nu(t,o,e);return i=a(i),u.src=i,u}function Nu(t,i,n){var r={"ATTRIBUTION_REPORTING_STATUS":function(){return i}},e=lr(n||t.document),s={"ATTRIBUTION_REPORTING_STATUS":!0};return function(t){return e.expandUrlSync(t,r,s)}}var Du="amp-pixel",ju=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t)).oe=null,n}var r=n.prototype;return r.isLayoutSupported=function(t){return!0},r.buildCallback=function(){this.element.setAttribute("aria-hidden","true"),this.ue=this.element.getAttribute("referrerpolicy"),this.ue&&ti("no-referrer"==this.ue,"".concat(Du,': invalid "referrerpolicy" value "').concat(this.ue,'".')+' Only "no-referrer" is supported'),this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?Qt().info(Du,"inabox img already present"):this.getAmpDoc().whenFirstVisible().then(this.he.bind(this))},r.he=function(){var t=this;if(this.oe)return Qt().error(Du,"duplicate pixel"),this.oe;this.oe=fr(this.win).promise(1).then((function(){var i=t.element.getAttribute("src");if(i)return lr(t.element).expandUrlAsync(t.ae(i)).then((function(i){if(t.win){var n=function(t,i,n,r,e){return n&&"no-referrer"!==n&&Jt().error("pixel","Unsupported referrerPolicy: %s",n),"no-referrer"===n?function(t,i,n,r){if("referrerPolicy"in Image.prototype)return Cu(t,i,!0,n,r);var e,s=(e={"src":"about:blank","style":"display:none"},function(t,i){for(var n in i)t.setAttribute(n,i[n]);return t}(t.document.createElement("iframe"),e));return s.onload=function(){Cu(s.contentWindow,i,void 0,void 0,r)},t.document.body.appendChild(s),s}(t,i,r,e):Cu(t,i,!1,r,e)}(t.win,i,t.ue,t.element.getAttribute("attributionsrc"),t.element);return Qt().info(Du,"pixel triggered: ",i),n}}))}))},r.ae=function(t){return ti(/^(https\:\/\/|\/\/)/i.test(t),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+t),t},n}(uu),Uu=function(){function t(t,i,n){var r=this;this.ce=fr(t),this.fe=i,this.le=n||0,this.ve=-1,this.de=0,this.me=!1,this.pe=function(){r.be()}}var i=t.prototype;return i.isPending=function(){return-1!=this.ve},i.schedule=function(t){var i=t||this.le;this.me&&i<10&&(i=10);var n=Date.now()+i;return(!this.isPending()||n-this.de<-10)&&(this.cancel(),this.de=n,this.ve=this.ce.delay(this.pe,i),!0)},i.be=function(){this.ve=-1,this.de=0,this.me=!0,this.fe(),this.me=!1},i.cancel=function(){this.isPending()&&(this.ce.cancel(this.ve),this.ve=-1)},t}();function Lu(t,i){var n=i.documentElement;return t.some((function(t){return n.hasAttribute(t)}))}function zu(t){return Lu(["⚡4email","amp4email"],t)}function Hu(t){return Lu(["⚡","amp"],t)}var Gu="Action",Vu="__AMP_ACTION_MAP__"+Math.random(),Fu="__AMP_ACTION_QUEUE__",Bu="__AMP_ACTION_HANDLER__",qu={"form":["submit","clear"]},$u=[{tagOrTarget:"AMP",method:"setState"},{tagOrTarget:"*",method:"focus"},{tagOrTarget:"*",method:"hide"},{tagOrTarget:"*",method:"show"},{tagOrTarget:"*",method:"toggleClass"},{tagOrTarget:"*",method:"toggleChecked"},{tagOrTarget:"*",method:"toggleVisibility"}],Wu={"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},Yu=function(){function t(t,i,n,r,e,s,u){var o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"?",h=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,a=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Math.random();this.node=t,this.method=i,this.args=n,this.source=r,this.caller=e,this.event=s,this.trust=u,this.actionEventType=o,this.tagOrTarget=h||t.tagName,this.sequenceId=a}return t.prototype.satisfiesTrust=function(t){if(!J(this.trust))return Qt().error(Gu,"Invalid trust for '".concat(this.method,"': ").concat(this.trust)),!1;if(this.trust<t){var i=function(t){switch(t){case 1:return"low";case 3:return"high";default:return et(2===t),"default"}}(this.trust);return Jt().error(Gu,'"'.concat(this.actionEventType,'" event with "').concat(i,'" trust is not allowed to ')+'invoke "'.concat(this.tagOrTarget.toLowerCase(),".").concat(this.method,'".')),!1}return!0},t}(),Ku=function(){function t(t,i){this.ampdoc=t,this.ge=i||t.getRootNode(),this.ye=this.ampdoc.isSingleDoc()&&zu(this.ge),this.we=this.ye?$u:null,this.Ae=A(),this.xe=A(),this.addEvent("tap"),this.addEvent("submit"),this.addEvent("change"),this.addEvent("input-debounced"),this.addEvent("input-throttled"),this.addEvent("valid"),this.addEvent("invalid")}var i=t.prototype;return i.addEvent=function(t){var i=this;if("tap"==t)this.ge.addEventListener("click",(function(n){if(!n.defaultPrevented){var r=n.target;i.trigger(r,t,n,3)}})),this.ge.addEventListener("keydown",(function(n){var r=n.key,e=n.target;if("Enter"==r||" "==r){var s=e.getAttribute("role"),u=s&&x(Wu,s.toLowerCase());!n.defaultPrevented&&u&&i.trigger(e,t,n,3)&&n.preventDefault()}}));else if("submit"==t)this.ge.addEventListener(t,(function(n){var r=n.target;i.trigger(r,t,n,3)}));else if("change"==t)this.ge.addEventListener(t,(function(n){var r=n.target;i.Ee(n),i.trigger(r,t,n,3)}));else if("input-debounced"==t){var n=mt(this.ampdoc.win,(function(n){var r=n.target;i.trigger(r,t,n,3)}),300);this.ge.addEventListener("input",(function(t){var r=new Xu(t);i.Ee(r),n(r)}))}else if("input-throttled"==t){var r=dt(this.ampdoc.win,(function(n){var r=n.target;i.trigger(r,t,n,3)}),100);this.ge.addEventListener("input",(function(t){var n=new Xu(t);i.Ee(n),r(n)}))}else"valid"!=t&&"invalid"!=t||this.ge.addEventListener(t,(function(n){var r=n.target;i.trigger(r,t,n,3)}))},i.addGlobalTarget=function(t,i){this.Ae[t]=i},i.addGlobalMethodHandler=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;this.xe[t]={handler:i,minTrust:n}},i.trigger=function(t,i,n,r,e){return this.Oe(t,i,n,r,e)},i.execute=function(t,i,n,r,e,s,u){var o=new Yu(t,i,n,r,e,s,u);this.Te(o)},i.installActionHandler=function(t,i){if(Zt(Ju(t.getAttribute("id")||"")||t.tagName.toLowerCase()in qu),t[Bu])Qt().error(Gu,"Action handler already installed for ".concat(t));else{t[Bu]=i;var n=t[Fu];V(n)&&fr(oi(t)).delay((function(){n.forEach((function(t){try{i(t)}catch(i){Qt().error(Gu,"Action execution failed:",t,i)}})),t[Fu].length=0}),1)}},i.hasAction=function(t,i,n){return!!this.Pe(t,i,n)},i.hasResolvableAction=function(t,i,n){var r=this,e=this.Pe(t,i,n);return!!e&&e.actionInfos.some((function(t){var i=t.target;return!!r.Ie(i)}))},i.hasResolvableActionForTarget=function(t,i,n,r){var e=this,s=this.Pe(t,i,r);return!!s&&s.actionInfos.some((function(t){var i=t.target;return e.Ie(i)==n}))},i.Ie=function(t){return this.Ae[t]?this.ge:this.ge.getElementById(t)},i.setAllowlist=function(t){Zt(t.every((function(t){return t.tagOrTarget&&t.method}))),this.we=t},i.addToAllowlist=function(t,i,n){var r=this;n&&n.includes("email")!==this.ye||(this.we||(this.we=[]),V(i)||(i=[i]),i.forEach((function(i){r.we.some((function(n){return n.tagOrTarget==t&&n.method==i}))||r.we.push({tagOrTarget:t,method:i})})))},i.Oe=function(t,i,n,r,e){var s=this,u=this.Pe(t,i);if(!u)return!1;var h=Math.random(),a=null;return u.actionInfos.forEach((function(c){var f=c.args,l=c.method,v=c.str,d=c.target,m=function(t,i,n){if(!t)return t;var r=n||{};if(i){var e=function(t){return t.detail}(i);e&&(r.event=e)}var s=A();return Object.keys(t).forEach((function(i){var n=t[i];if("object"==p(n)&&n.expression){var e=n.expression,u=function(t,i){if("."==i)return t;for(var n,r=t,e=o(i.split("."),!0);!(n=e()).done;){var s=n.value;if(!(s&&r&&void 0!==r[s]&&"object"==p(r)&&x(r,s))){r=void 0;break}r=r[s]}return r}(r,e);n=void 0===u?null:u}r[n]?s[i]=r[n]:s[i]=n})),s}(f,n,e),g=function(){var e=s.Ie(d);if(e){var o=new Yu(e,l,m,t,u.node,n,r,i,e.tagName||d,h);return s.Te(o)}s.Se('Target "'.concat(d,'" not found for action [').concat(v,"]."))};a=a?a.then(g):g()})),u.actionInfos.length>=1},i.Se=function(t,i){if(i){var n=Jt().createError("[".concat(Gu,"] ").concat(t));throw Us(n,i),n}Jt().error(Gu,t)},i.Te=function(t){var i=t.method,n=t.tagOrTarget;if(this.we&&!function(t,i){var n=t.method,r=t.node,e=t.tagOrTarget;n===su&&"function"==typeof r.getDefaultActionAlias&&(n=r.getDefaultActionAlias());var s=n.toLowerCase(),u=e.toLowerCase();return i.some((function(t){return(t.tagOrTarget.toLowerCase()===u||"*"===t.tagOrTarget)&&t.method.toLowerCase()===s}))}(t,this.we))return this.Se('"'.concat(n,".").concat(i,'" is not allowlisted ').concat(JSON.stringify(this.we),".")),null;var r=this.Ae[n];if(r)return r(t);var e=t.node,s=this.xe[i];if(s&&t.satisfiesTrust(s.minTrust))return s.handler(t);var u=e.tagName.toLowerCase();if(Ju(u))return e.enqueAction?e.enqueAction(t):this.Se('Unrecognized AMP element "'.concat(u,'".'),e),null;var o=qu[u];if(Ju(e.getAttribute("id")||"")||o&&o.indexOf(i)>-1){var h=e[Bu];return h?h(t):(e[Fu]=e[Fu]||[],e[Fu].push(t)),null}return this.Se("Target (".concat(n,") doesn't support \"").concat(i,'" action.'),t.caller),null},i.Pe=function(t,i,n){for(var r,e=t;e;){if(n&&e==n)return null;var s=this.Me(e,i);if(s&&!(r=e).disabled&&!gi(r,":disabled"))return{node:e,actionInfos:Zt(s)};e=e.parentElement}return null},i.Me=function(t,i){var n=this.Re(t,i);return n&&n[i]||null},i.Re=function(t,i){var n=t[Vu];if(void 0===n)if(n=null,t.hasAttribute("on"))n=Zu(t.getAttribute("on"),t),t[Vu]=n;else if(t.hasAttribute("execute")){var r=t.getAttribute("execute");n=Zu("".concat(i,":").concat(r),t),t[Vu]=n}return n},i.setActions=function(t,i){t.setAttribute("on",i),delete t[Vu]},i.Ee=function(t){var i=A(),n=t.target;if(void 0!==n.value&&(i.value=n.value),"INPUT"==n.tagName&&(i.valueAsNumber=Number(n.value)),void 0!==n.checked&&(i.checked=n.checked),void 0===n.min&&void 0===n.max||(i.min=n.min,i.max=n.max),n.files&&(i.files=G(n.files).map((function(t){return{"name":t.name,"size":t.size,"type":t.type}}))),Object.keys(i).length>0)try{t.detail=i}catch(t){}},t}();function Ju(t){return"amp-"===t.substring(0,4)}var Xu=function(t){this.detail=null,function(t,i){var n=i||A();for(var r in t){var e=t[r];n[r]="function"==typeof e?Qu:t[r]}}(t,this)};function Qu(){Zt(null)}function Zu(t,i){var n,r,e=io.bind(null,t,i),s=no.bind(null,t,i),u=null,o=new so(t);do{if((n=o.next()).type==ro.EOF||n.type==ro.SEPARATOR&&";"==n.value);else if(n.type==ro.LITERAL||n.type==ro.ID){var h=n.value;s(o.next(),[ro.SEPARATOR],":");var a=[];do{var c=s(o.next(),[ro.LITERAL,ro.ID]).value,f=su,l=null;(r=o.peek()).type==ro.SEPARATOR&&"."==r.value&&(o.next(),f=s(o.next(),[ro.LITERAL,ro.ID]).value||f,(r=o.peek()).type==ro.SEPARATOR&&"("==r.value&&(o.next(),l=to(o,s,e))),a.push({event:h,target:c,method:f,args:l,str:t}),r=o.peek()}while(r.type==ro.SEPARATOR&&","==r.value&&o.next());u||(u=A()),u[h]=a}else e(!1,"; unexpected token [".concat(n.value||"","]"))}while(n.type!=ro.EOF);return u}function to(t,i,n){var r,e,s=t.peek(),u=null;if(s.type==ro.OBJECT){u=A();var o=t.next().value;u.__AMP_OBJECT_STRING__=o,i(t.next(),[ro.SEPARATOR],")")}else do{var h=r=t.next(),a=h.type,c=h.value;if(a!=ro.SEPARATOR||","!=c&&")"!=c)if(a==ro.LITERAL||a==ro.ID){i(t.next(),[ro.SEPARATOR],"=");var f=[r=i(t.next(!0),[ro.LITERAL,ro.ID])];if(r.type==ro.ID)for(s=t.peek();s.type==ro.SEPARATOR&&"."==s.value;s=t.peek())t.next(),r=i(t.next(!1),[ro.ID]),f.push(r);var l=0==(e=f).length?null:1==e.length?e[0].value:{expression:e.map((function(t){return t.value})).join(".")};u||(u=A()),u[c]=l,n((s=t.peek()).type==ro.SEPARATOR&&(","==s.value||")"==s.value),"Expected either [,] or [)]")}else n(!1,"; unexpected token [".concat(r.value||"","]"))}while(r.type!=ro.SEPARATOR||")"!=r.value);return u}function io(t,i,n,r){return ti(n,"Invalid action definition in %s: [%s] %s",i,t,r||"")}function no(t,i,n,r,e){return void 0!==e?io(t,i,r.includes(n.type)&&n.value==e,"; expected [".concat(e,"]")):io(t,i,r.includes(n.type)),n}var ro={INVALID:0,EOF:1,SEPARATOR:2,LITERAL:3,ID:4,OBJECT:5},eo=" \t\n\r\f\v \u2028\u2029",so=function(){function t(t){this._e=t,this.ke=-1}var i=t.prototype;return i.next=function(t){var i=this.Ne(t||!1);return this.ke=i.index,i},i.peek=function(t){return this.Ne(t||!1)},i.Ne=function(t){var i=this.ke+1;if(i>=this._e.length)return{type:ro.EOF,index:this.ke};var n=this._e.charAt(i);if(-1!=eo.indexOf(n)){for(i++;i<this._e.length&&-1!=eo.indexOf(this._e.charAt(i));i++);if(i>=this._e.length)return{type:ro.EOF,index:i};n=this._e.charAt(i)}if(t&&(uo(n)||"."==n&&i+1<this._e.length&&uo(this._e[i+1]))){for(var r="."==n,e=i+1;e<this._e.length;e++){var s=this._e.charAt(e);if("."!=s){if(!uo(s))break}else r=!0}var u=this._e.substring(i,e),o=r?parseFloat(u):parseInt(u,10);return i=e-1,{type:ro.LITERAL,value:o,index:i}}if(-1!=";:.()=,|!".indexOf(n))return{type:ro.SEPARATOR,value:n,index:i};if(-1!="\"'".indexOf(n)){for(var h=-1,a=i+1;a<this._e.length;a++)if(this._e.charAt(a)==n){h=a;break}if(-1==h)return{type:ro.INVALID,index:i};var c=this._e.substring(i+1,h);return i=h,{type:ro.LITERAL,value:c,index:i}}if("{"==n){for(var f=1,l=-1,v=i+1;v<this._e.length;v++){var d=this._e[v];if("{"==d?f++:"}"==d&&f--,f<=0){l=v;break}}if(-1==l)return{type:ro.INVALID,index:i};var m=this._e.substring(i,l+1);return i=l,{type:ro.OBJECT,value:m,index:i}}for(var p=i+1;p<this._e.length&&-1==" \t\n\r\f\v \u2028\u2029;:.()=,|!\"'{}".indexOf(this._e.charAt(p));p++);var g=this._e.substring(i,p);if(i=p-1,t&&("true"==g||"false"==g)){var b="true"==g;return{type:ro.LITERAL,value:b,index:i}}return uo(g.charAt(0))?{type:ro.LITERAL,value:g,index:i}:{type:ro.ID,value:g,index:i}},t}();function uo(t){return t>="0"&&t<="9"}function oo(t){return!!t&&"function"==typeof t.getFormData}var ho=["GET","POST"],ao=[V,w];function co(t,i){var n=D({},i);if(oo(i.body)){var r=i.body;n.headers["Content-Type"]="multipart/form-data;charset=utf-8",n.body=function(t){for(var i=[],n=t.next();!n.done;n=t.next())i.push(n.value);return i}(r.entries())}return{input:t,init:n}}function fo(t,i,n,r){if(!i)return h();var e=r.prerenderSafe?h():i.whenFirstVisible(),s=mr(i),u=Ps(n),o=s.hasCapability("xhrInterceptor"),a=r.bypassInterceptorForDev&&!1;return u||!o||a?e:i.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?e.then((function(){return s.isTrustedViewer()})).then((function(i){if(i||Fe(t,"untrusted-xhr-interception")){var e={"originalRequest":co(n,r)};return s.sendMessageAwaitResponse("xhr",e).then((function(t){return function(t,i){if(ht(w(t),"Object expected: %s",t),"document"!=i)return new Response(t.body,t.init);var n=A(),r={status:200,statusText:"OK",getResponseHeader:function(t){return n[String(t).toLowerCase()]||null}};if(t.init){var e=t.init;V(e.headers)&&e.headers.forEach((function(t){var i=t[0],r=t[1];n[String(i).toLowerCase()]=String(r)})),e.status&&(r.status=parseInt(e.status,10)),e.statusText&&(r.statusText=String(e.statusText))}return new Response(t.body?String(t.body):"",r)}(t,r.responseType)}))}})):e}function lo(t,i,n){return et("string"==typeof i),!1!==n.ampCors&&(i=_s(t,i)),i}function vo(t,i){var n,r=t||{},e=r.credentials;return et(void 0===e||"include"==e||"omit"==e),r.method=void 0===(n=r.method)?"GET":(n=n.toUpperCase(),et(ho.includes(n)),n),r.headers=r.headers||{},i&&(r.headers.Accept=i),et(null!==r.body),r}function mo(t,i,n){n=n||{};var r=function(t){return t.origin||ms(t.location.href).origin}(t);return r==ms(i).origin&&(n.headers=n.headers||{},n.headers["AMP-Same-Origin"]="true"),n}function po(t){return new Promise((function(i){if(t.ok)return i(t);var n=t.status,r=Jt().createError("HTTP error ".concat(n));throw r.retriable=function(t){return 415==t||t>=500&&t<600}(n),r.response=t,r}))}var go=function(){function t(t){this.win=t;var i=Jn(t);this.Ce=i.isSingleDoc()?i.getSingleDoc():null}var i=t.prototype;return i.je=function(t,i){var n=arguments,r=this;return fo(this.win,this.Ce,t,i).then((function(t){if(t)return t;if(oo(i.body)){var e=i.body;i.body=e.getFormData()}return r.win.fetch.apply(null,n)}))},i.De=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=lo(this.win,t,i),i=mo(this.win,t,i),this.je(t,i).then((function(t){return t}),(function(i){var n=ms(t).origin;throw Jt().createExpectedError("XHR","Failed fetching (".concat(n,"/...):"),i&&i.message)}))},i.fetchJson=function(t,i){return this.fetch(t,function(t){var i=vo(t,"application/json");if("POST"==i.method&&!oo(i.body)){et(ao.some((function(t){return t(i.body)}))),i.headers["Content-Type"]=i.headers["Content-Type"]||"text/plain;charset=utf-8";var n=i.headers["Content-Type"];i.body="application/x-www-form-urlencoded"===n?ws(i.body):JSON.stringify(i.body)}return i}(i))},i.fetchText=function(t,i){return this.fetch(t,vo(i,"text/plain"))},i.xssiJson=function(t,i){return i?t.text().then((function(t){return t.startsWith(i)?at(t.slice(i.length)):(Jt().warn("XHR",'Failed to strip missing prefix "'.concat(i,'" in fetch response.')),at(t))})):t.json()},i.fetch=function(t,i){var n=vo(i);return this.De(t,n).then((function(t){return po(t)}))},i.sendSignal=function(t,i){return this.De(t,i).then((function(t){return po(t)}))},i.getCorsUrl=function(t,i){return _s(t,i)},t}(),bo=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t)).Ue=A(),n}var r=n.prototype;return r.fetch=function(i,n){var r=this,e=n&&n.headers&&n.headers.Accept||"",s=!n||!n.method||"GET"===n.method,u=this.ze(i,e),o=!!this.Ue[u];if(s&&o)return this.Ue[u].then((function(t){return t.clone()}));var h=t.prototype.fetch.call(this,i,n);return s&&(this.Ue[u]=h.then((function(t){return delete r.Ue[u],t.clone()}),(function(t){throw delete r.Ue[u],t}))),h},r.ze=function(t,i){return Es(Rs(t,Ss(this.win.location)))+i},n}(go),yo={"+":"-","/":"_","=":"."};function wo(t){var i=function(t){for(var i=new Array(t.length),n=0;n<t.length;n++)i[n]=String.fromCharCode(t[n]);return i.join("")}(t);return btoa(i).replace(/[+/=]/g,(function(t){return yo[t]}))}var Ao="AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc",xo="CacheCidApi",Eo=function(){function t(t){this.Ni=t,this.Le=mr(this.Ni),this.He=null,this.ce=fr(this.Ni.win)}var i=t.prototype;return i.isSupported=function(){return this.Le.isCctEmbedded()&&this.Le.isProxyOrigin()},i.getScopedCid=function(t){var i=this;return this.Le.isCctEmbedded()?(this.He||(this.He=this.Ge("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc")),this.He.then((function(n){return n?i.Ve(n,t):null}))):Promise.resolve(null)},i.Ge=function(t){var i=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r={"publisherOrigin":Ss(this.Ni.win.location)},e="fetchCidTimeout";return this.ce.timeoutPromise(3e4,br(this.Ni.win).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:r}),e).then((function(t){return t.json().then((function(t){if(t.optOut)return null;var r=t.publisherClientId;if(!r&&n&&t.alternateUrl){var e="".concat(t.alternateUrl,"?key=").concat(Ao);return i.Ge(e,!1)}return r}))})).catch((function(t){return t&&t.response?t.response.json().then((function(t){Qt().error(xo,JSON.stringify(t))})):t&&t.message==e?Qt().expectedError(xo,t):Qt().error(xo,t),null}))},i.Ve=function(t,i){var n=t+";"+i;return tr(this.Ni.win).sha384Base64(n).then((function(t){return"amp-"+t}))},t}(),Po="-test-amp-cookie-tmp";function Oo(t,i){var n=function(t){try{return t.document.cookie}catch(t){return""}}(t);if(!n)return null;for(var r=n.split(";"),e=0;e<r.length;e++){var s=r[e].trim(),u=s.indexOf("=");if(-1!=u&&bt(s.substring(0,u).trim())==i){var o=s.substring(u+1).trim();return bt(o,o)}}return null}function Io(t,i,n,r){var e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};So(t,e,i);var s=void 0;e.domain?s=e.domain:e.highestAvailableDomain&&(s=To(t)),Mo(t,i,n,r,s,e.sameSite,e.secure)}function To(t){var i=t.document.head&&t.document.head.querySelector("meta[name='amp-cookie-scope']");if(i){var n=i.getAttribute("content")||"",r=Ss(t.location.href);return W(r,"."+n)?n:r.split("://")[1]}if(!Ps(t.location.href))for(var e=t.location.hostname.split("."),s=e[e.length-1],u=function(t){for(var i=Po;Oo(t,i);)i=Po+0;return i}(t),o=e.length-2;o>=0;o--)if(s=e[o]+"."+s,Mo(t,u,"delete",Date.now()+1e3,s),"delete"==Oo(t,u))return Mo(t,u,"delete",Date.now()-1e3,s),s;return null}function Mo(t,i,n,r,e,s,u){"ampproject.org"==e&&(n="delete",r=0);var o=encodeURIComponent(i)+"="+encodeURIComponent(n)+"; path=/"+(e?"; domain="+e:"")+"; expires="+new Date(r).toUTCString()+function(t,i){return i?"; SameSite=".concat(i):""}(0,s)+(u?"; Secure":"");try{t.document.cookie=o}catch(t){}}function So(t,i,n){if(i.allowOnProxyOrigin)ti(!i.highestAvailableDomain,"Could not support highestAvailable Domain on proxy origin, specify domain explicitly");else{ti(!Ps(t.location.href),"Should never attempt to set cookie on proxy origin: ".concat(n));var r=ms(t.location.href).hostname.toLowerCase(),e=ms(Tt).hostname.toLowerCase();ti(!(r==e||W(r,"."+e)),"Should never attempt to set cookie on proxy origin. (in depth check): "+n)}}var Ro="GoogleCidApi",_o="AMP_TOKEN",ko="$RETRIEVING",Co="$OPT_OUT",No="$NOT_FOUND",Do=3e4,jo=31536e6,Uo=function(){function t(t){this.t=t.win,this.ce=fr(this.t),this.Fe={};var i=ir(t).canonicalUrl;this.Be=i?ms(i).origin:null}var i=t.prototype;return i.getScopedCid=function(t,i){var n,r=this;return this.Fe[i]?this.Fe[i]:this.Fe[i]=this.ce.poll(200,(function(){return(n=Oo(r.t,_o))!==ko})).then((function(){if(n===Co)return Co;if((n!==No||!r.qe())&&r.$e(n))return null;n&&!r.$e(n)||r.We(ko,Do);var e="https://ampcid.google.com/v1/publisher:getClientId?key="+t;return r.Ge(e,i,n).then((function(e){var s=r.R(e);if(!s&&e.alternateUrl){var u="".concat(e.alternateUrl,"?key=").concat(t);return r.Ge(u,i,n).then(r.R.bind(r))}return s})).catch((function(t){return r.We("$ERROR",Do),t&&t.response?t.response.json().then((function(t){Qt().error(Ro,JSON.stringify(t))})):Qt().error(Ro,t),null}))}))},i.Ge=function(t,i,n){var r={"originScope":i,"canonicalOrigin":this.Be};return n&&(r.securityToken=n),this.ce.timeoutPromise(Do,br(this.t).fetchJson(t,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:r}).then((function(t){return t.json()})))},i.R=function(t){return t.optOut?(this.We(Co,jo),Co):t.clientId?(this.We(t.securityToken,jo),t.clientId):(t.alternateUrl||this.We(No,36e5),null)},i.We=function(t,i){t&&Io(this.t,_o,t,this.Ke(i),{highestAvailableDomain:!0})},i.Ke=function(t){return this.t.Date.now()+t},i.qe=function(){return Ps(Gr.getDocumentReferrer(this.t))},i.$e=function(t){return t&&"$"===t[0]},t}(),Lo=function(){function t(t){this.Ni=t,this.Le=mr(this.Ni);var i=ir(this.Ni).canonicalUrl;this.Be=i?ms(i).origin:null}var i=t.prototype;return i.isSupported=function(){return this.Le.hasCapability("cid")?this.Le.isTrustedViewer():Promise.resolve(!1)},i.getScopedCid=function(t,i){var n={"scope":i,"clientIdApi":!!t,"canonicalOrigin":this.Be};return t&&(n.apiKey=t),this.Le.sendMessageAwaitResponse("cid",n)},t}(),zo=31536e6,Ho=/^[a-zA-Z0-9-_.]+$/,Go="amp-cid-optout",Vo="amp-google-client-id-api",Fo={"googleanalytics":"AMP_ECID_GOOGLE"},Bo={"googleanalytics":"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"},qo=function(){function t(t){this.ampdoc=t,this.Ye=null,this.Je=Object.create(null),this.Xe=new Eo(t),this.Qe=new Lo(t),this.Ze=new Uo(t),this.ts=null}var i=t.prototype;return i.get=function(t,i,n){var r=this;return ti(Ho.test(t.scope)&&Ho.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((function(){return r.ampdoc.whenFirstVisible()})).then((function(){return t=r.ampdoc,cr(t).then((function(t){return t.get(Go).then((function(t){return!!t}))})).catch((function(){return!1}));var t})).then((function(e){if(e)return"";var s=r.ns(t,n||i);return fr(r.ampdoc.win).timeoutPromise(1e4,s,'Getting cid for "'.concat(t.scope,'" timed out')).catch((function(t){d(t)}))}))},i.optOut=function(){return t=this.ampdoc,mr(t).sendMessage("cidOptOut",{}),cr(t).then((function(t){return t.set(Go,!0)}));var t},i.ns=function(t,i){var n=this,r=t.scope,e=ms(this.ampdoc.win.location.href);if(!Ps(e)){var s=this.rs(r);return s?this.Ze.getScopedCid(s,r).then((function(e){if(e==Co)return null;if(e){var s=t.cookieName||r;return $o(n.ampdoc.win,s,e),e}return Ko(n,t,i)})):Ko(this,t,i)}return this.Qe.isSupported().then((function(t){if(t){var s=n.rs(r);return n.Qe.getScopedCid(s,r)}return n.Xe.isSupported()&&n.rs(r)?n.Xe.getScopedCid(r).then((function(t){return t||n.es(i,r,e)})):n.es(i,r,e)}))},i.es=function(t,i,n){var r=this;return function(t,i){if(t.Ye)return t.Ye;var n=t.ampdoc.win;return t.Ye=function(t){var i,n=t.win;try{i=n.localStorage.getItem("amp-cid")}catch(t){}var r=Promise.resolve(i);return!i&&Ni(n)&&(r=Jo(t)),r.then((function(t){if(!t)return null;var i=at(t);return{time:i.time,cid:i.cid}}))}(t.ampdoc).then((function(r){var e,s,u,o=!1;return!r||(s=r.time,u=Date.now(),s+zo<u)?(e=tr(n).sha384Base64(Qo(n)),o=!0):(e=Promise.resolve(r.cid),r.time+864e5<Date.now()&&(o=!0)),o&&e.then((function(n){!function(t,i,n){var r=t.win;Ni(r)?Jo(t,Xo(n)):i.then((function(){try{r.localStorage.setItem("amp-cid",Xo(n))}catch(t){}}))}(t.ampdoc,i,n)})),e}))}(this,t).then((function(t){return tr(r.ampdoc.win).sha384Base64(t+function(t){return ti(Ps(t),"Expected proxy origin %s",t.origin),Ss(t)}(n)+i)}))},i.rs=function(t){return this.ts||(this.ts=this.ss()),this.ts[t]},i.ss=function(){var t={},i=this.ampdoc.getMetaByName(Vo);return i&&i.split(",").forEach((function(i){if((i=i.trim()).indexOf("=")>0){var n=i.split("="),r=n[0].trim();t[r]=n[1].trim()}else{var e=i,s=Fo[e];s?t[s]=Bo[e]:Jt().warn("CID","Unsupported client for Google CID API: ".concat(e,".")+'Please remove or correct meta[name="'.concat(Vo,'"]'))}})),t},t}();function $o(t,i,n){Io(t,i,n,Date.now()+zo,{highestAvailableDomain:!0})}function Wo(t,i,n){cr(t).then((function(t){if(!t.isViewerStorage()){var r=Yo(i);t.setNonBoolean(r,n)}}))}function Yo(t){return"amp-cid:"+t}function Ko(t,i,n){var r=t.ampdoc,e=r.win,s=i.disableBackup,u=i.scope,o=i.cookieName||u;return function(t,i){var n=t.ampdoc,r=n.win,e=i.disableBackup,s=i.scope,u=i.cookieName||s,o=Oo(r,u);return o?Promise.resolve(o):e?Promise.resolve(null):cr(n).then((function(t){var i=Yo(u);return t.get(i,zo)})).then((function(t){return t&&"string"==typeof t?t:null}))}(t,i).then((function(h){if(!h&&!i.createCookieIfNotPresent)return Promise.resolve(null);if(h)return/^amp-/.test(h)&&($o(e,o,h),s||Wo(r,o,h)),Promise.resolve(h);if(t.Je[u])return t.Je[u];var a=Zo(e).then((function(t){return"amp-"+t}));return Promise.all([a,n]).then((function(t){var i=t[0];Oo(e,o)||($o(e,o,i),s||Wo(r,o,i))})),t.Je[u]=a}))}function Jo(t,i){var n=mr(t);return n.isTrustedViewer().then((function(t){if(t)return Qt().expectedError("CID","Viewer does not provide cap=cid"),n.sendMessageAwaitResponse("cid",i).then((function(t){return t&&!function(t,i){try{return at(t)}catch(t){return null}}(t)?(Qt().expectedError("CID","invalid cid format"),JSON.stringify({"time":Date.now(),"cid":t})):t}))}))}function Xo(t){return JSON.stringify({"time":Date.now(),"cid":t})}function Qo(t){return lt(t,16)||String(t.location.href+Date.now()+t.Math.random()+t.screen.width+t.screen.height)}function Zo(t){var i=Qo(t);if("string"==typeof i)return tr(t).sha384Base64(i);var n=i;return c((function(){return wo(n).replace(/\.+$/,"")}))}var th="Crypto",ih=function(){function t(t){this.t=t;var i=null,n=!1;t.crypto&&(t.crypto.subtle?i=t.crypto.subtle:t.crypto.webkitSubtle&&(i=t.crypto.webkitSubtle,n=!0)),this.pkcsAlgo={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},this.subtle=i,this.os=n,this.us=null}var i=t.prototype;return i.sha384=function(t){var i=this;if("string"==typeof t&&(t=ft(t)),!this.subtle||this.us)return(this.us||this.hs()).then((function(i){return i(t)}));try{return this.subtle.digest({name:"SHA-384"},t).then((function(t){return new Uint8Array(t)}),(function(n){return n.message&&n.message.indexOf("secure origin")<0&&Jt().error(th,"SubtleCrypto failed, fallback to closure lib.",n),i.hs().then((function(){return i.sha384(t)}))}))}catch(n){return Qt().error(th,"SubtleCrypto failed, fallback to closure lib.",n),this.hs().then((function(){return i.sha384(t)}))}},i.sha384Base64=function(t){return this.sha384(t).then((function(t){return wo(t)}))},i.uniform=function(t){return this.sha384(t).then((function(t){for(var i=0,n=2;n>=0;n--)i=(i+t[n])/256;return i}))},i.hs=function(){var t=this;return this.us?this.us:this.us=nr(this.t).preloadExtension("amp-crypto-polyfill").then((function(){return On(t.t,"crypto-polyfill")}))},i.isPkcsAvailable=function(){return Boolean(this.subtle)&&!1!==this.t.isSecureContext},i.importPkcsKey=function(t){Zt(this.isPkcsAvailable());var i=this.os?ct(JSON.stringify(t)):t;return this.subtle.importKey("jwk",i,this.pkcsAlgo,!0,["verify"])},i.verifyPkcs=function(t,i,n){return Zt(this.isPkcsAvailable()),this.subtle.verify(this.pkcsAlgo,t,i,n)},t}(),nh=["prefetch","preload","preconnect","dns-prefetch"],rh=function(){function t(t){this.Ni=t,this.cs=null,this.fs=null}return t.prototype.get=function(){if(this.cs)return this.cs;var t=this.Ni,i=Ms(t.getUrl()),n=t.getRootNode(),r=n&&n.AMP&&n.AMP.canonicalUrl;if(!r){var e=n.querySelector("link[rel=canonical]");r=e?ms(e.href).href:i}var s,u=function(t){return String(Math.floor(1e4*t.Math.random()))}(t.win),o=function(t){var i=A();if(t.head)for(var n=t.head.querySelectorAll("link[rel]"),r=function(t){var r=n[t],e=r.href,s=r.getAttribute("rel");if(!s||!e)return"continue";s.split(/\s+/).forEach((function(t){if(-1==nh.indexOf(t)){var n=i[t];n?(V(n)||(n=i[t]=[n]),n.push(e)):i[t]=e}}))},e=0;e<n.length;e++)r(e);return i}(t.win.document),h=(s=t.win.document.head.querySelector('meta[name="viewport"]'))?s.getAttribute("content"):null,a=function(t){if(!t.isSingleDoc()||"a"!=(i=t.win.location.href,Ps(i=ds(i))?i.pathname.split("/",2)[1]:null))return null;var i,n=yt(ms(t.win.location.href).search).amp_r;return void 0===n?null:yt(n)}(t);return this.cs={get sourceUrl(){return Ms(t.getUrl())},canonicalUrl:r,pageViewId:u,get pageViewId64(){return this.fs||(this.fs=Zo(t.win)),this.fs},linkRels:o,viewport:h,replaceParams:a}},t}(),eh={attributes:!0,attributeFilter:["hidden"],subtree:!0},sh=function(){function t(t){this.ge=t.getRootNode();var i=this.ge.ownerDocument||this.ge;this.t=Zt(i.defaultView),this.Et=null,this.ls=null}var i=t.prototype;return i.add=function(t){var i=this;this.vs();var n=this.ls.add(t);return function(){n(),0===i.ls.getHandlerCount()&&i.dispose()}},i.vs=function(){var t=this;if(!this.Et){this.ls=new Or;var i=new this.t.MutationObserver((function(i){i&&t.ls.fire(i)}));this.Et=i,i.observe(this.ge,eh)}},i.dispose=function(){this.Et&&(this.Et.disconnect(),this.ls.removeAll(),this.Et=null,this.ls=null)},t}();function uh(t){try{return t.state}catch(t){return null}}var oh="History",hh="AMP.History",ah=function(){function t(t,i){this.Ni=t,this.ce=fr(t.win),this.ds=i,this.ps=0,this.bs=[],this.$i=[],this.ds.setOnStateUpdated(this.gs.bind(this))}var i=t.prototype;return i.cleanup=function(){this.ds.cleanup()},i.push=function(t,i){var n=this;return this.ys((function(){return n.ds.push(i).then((function(i){return n.gs(i),t&&(n.bs[i.stackIndex]=t),i.stackIndex}))}),"push")},i.pop=function(t){var i=this;return this.ys((function(){return i.ds.pop(t).then((function(t){i.gs(t)}))}),"pop")},i.replace=function(t){var i=this;return this.ys((function(){return i.ds.replace(t)}),"replace")},i.get=function(){var t=this;return this.ys((function(){return t.ds.get()}),"get")},i.goBack=function(t){var i=this;return this.ys((function(){return i.ps<=0&&!t?h():i.ds.pop(i.ps).then((function(t){i.gs(t)}))}),"goBack")},i.replaceStateForTarget=function(t){var i=this;Zt("#"==t[0]);var n=this.Ni.win.location.hash;return this.push((function(){i.Ni.win.location.replace(n||"#")})).then((function(){i.ds.replaceStateForTarget(t)}))},i.getFragment=function(){return this.ds.getFragment()},i.updateFragment=function(t){return"#"==t[0]&&(t=t.substr(1)),this.ds.updateFragment(t)},i.gs=function(t){this.ps=t.stackIndex,this.ws(t)},i.ws=function(t){var i=this;if(!(this.ps>=this.bs.length-1)){for(var n=[],r=this.bs.length-1;r>this.ps;r--)this.bs[r]&&(n.push(this.bs[r]),this.bs[r]=void 0);if(this.bs.splice(this.ps+1),n.length>0)for(var e=function(r){i.ce.delay((function(){return n[r](t)}),1)},s=0;s<n.length;s++)e(s)}},i.ys=function(t,i){var n=new a,r=n.promise,e=n.reject,s=n.resolve,u=new Error("history trace for "+i+": ");return this.$i.push({callback:t,resolve:s,reject:e,trace:u}),1==this.$i.length&&this.As(),r},i.As=function(){var t=this;if(0!=this.$i.length){var i,n=this.$i[0];try{i=n.callback()}catch(t){i=Promise.reject(t)}i.then((function(t){n.resolve(t)}),(function(t){Qt().error(oh,"failed to execute a task:",t),n.trace&&(n.trace.message+=t,Qt().error(oh,n.trace)),n.reject(t)})).then((function(){t.$i.splice(0,1),t.As()}))}},t}(),ch=function(){function t(t){var i=this;this.win=t,this.ce=fr(t);var n=this.win.history;this.xs=n.length-1;var r,e,s=uh(n);s&&void 0!==s[hh]&&(this.xs=Math.min(s[hh],this.xs)),this.ps=this.xs,this.Es,this.gs=null,this.Os="state"in n,this.Ts=this.Ps(this.ps),n.pushState&&n.replaceState?(this.Is=n.originalPushState||n.pushState.bind(n),this.Ss=n.originalReplaceState||n.replaceState.bind(n),r=function(t,n,r){i.Ts=t;try{i.Is(t,n,r||null)}catch(t){Qt().error(oh,"pushState failed: "+t.message)}},e=function(t,n,r){i.Ts=t;try{void 0!==r?i.Ss(t,n,r):i.Ss(t,n)}catch(t){Qt().error(oh,"replaceState failed: "+t.message)}},n.originalPushState||(n.originalPushState=this.Is),n.originalReplaceState||(n.originalReplaceState=this.Ss)):(r=function(t,n,r){i.Ts=t},e=function(t,n,r){i.Ts=t}),this.Ms=r,this.Rs=e;try{this.Rs(this.Ps(this.ps,!0))}catch(t){Qt().error(oh,"Initial replaceState failed: "+t.message)}n.pushState=this._s.bind(this),n.replaceState=this.ks.bind(this),this.Ns=function(t){var n=t.state;Qt().fine(oh,"popstate event: "+i.win.history.length+", "+JSON.stringify(n)),i.Cs()},this.win.addEventListener("popstate",this.Ns)}var i=t.prototype;return i.cleanup=function(){this.Is&&(this.win.history.pushState=this.Is),this.Ss&&(this.win.history.replaceState=this.Ss),this.win.removeEventListener("popstate",this.Ns)},i.Ps=function(t,i){var n=A(i?this.js():void 0);return n[hh]=t,n},i.setOnStateUpdated=function(t){this.gs=t},i.push=function(t){var i=this;return this.Ds((function(){var n=i.Us(i.js(),t||{});return i._s(n,void 0,n.fragment?"#"+n.fragment:void 0),c((function(){return i.Us(n,{stackIndex:i.ps})}))}))},i.pop=function(t){var i=this;return t=Math.max(t,this.xs),this.Ds((function(){return i.zs(i.ps-t+1)})).then((function(t){return i.Us(i.js(),{stackIndex:t})}))},i.replace=function(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.Ds((function(){var n=t.Us(t.js(),i||{}),r=(n.url||"").replace(/#.*/,""),e=n.fragment?"#"+n.fragment:"";return t.ks(n,n.title,r||e?r+e:void 0),c((function(){return t.Us(n,{stackIndex:t.ps})}))}))},i.get=function(){var t=this;return c((function(){return t.Us(t.js(),{stackIndex:t.ps})}))},i.backTo=function(t){var i=this;return t=Math.max(t,this.xs),this.Ds((function(){return i.zs(i.ps-t)}))},i.Cs=function(){var t=this.js();Qt().fine(oh,"history event: "+this.win.history.length+", "+JSON.stringify(t));var i=t?t[hh]:void 0,n=this.ps,r=this.Es;this.Es=void 0,n>this.win.history.length-2&&(n=this.win.history.length-2,this.Ls(this.Us(t,{stackIndex:n}))),null==i?n+=1:n=i<this.win.history.length?i:this.win.history.length-1,t||(t={}),t[hh]=n,this.Rs(t,void 0,void 0),n!=this.ps&&this.Ls(this.Us(t,{stackIndex:n})),n<this.xs&&(this.xs=n),r&&r.resolve()},i.js=function(){return this.Os?uh(this.win.history):this.Ts},i.Hs=function(){Zt(!this.Es)},i.Ds=function(t){return this.Es?this.Es.promise.then(t,t):t()},i.Gs=function(){this.Hs();var t=new a,i=t.reject,n=t.resolve,r=this.ce.timeoutPromise(500,t.promise);return this.Es={promise:r,resolve:n,reject:i},r},i.zs=function(t){var i=this;if(this.Hs(),t<=0)return Promise.resolve(this.ps);this.Ts=this.Ps(this.ps-t);var n=this.Gs();return this.win.history.go(-t),n.then((function(){return Promise.resolve(i.ps)}))},i._s=function(t,i,n){this.Hs(),t||(t={});var r=this.ps+1;t[hh]=r,this.Ms(t,i,n),r!=this.win.history.length-1&&(r=this.win.history.length-1,t[hh]=r,this.Rs(t));var e=this.Us(t,{stackIndex:r});this.Ls(e)},i.replaceStateForTarget=function(t){var i=this;Zt("#"==t[0]),this.Ds((function(){i.win.removeEventListener("popstate",i.Ns);try{i.win.location.replace(t)}finally{i.win.addEventListener("popstate",i.Ns)}return i.ks(),h()}))},i.ks=function(t,i,n){this.Hs(),t||(t={});var r=Math.min(this.ps,this.win.history.length-1);t[hh]=r,this.Rs(t,i,n);var e=this.Us(t,{stackIndex:r});this.Ls(e)},i.Ls=function(t){this.Hs(),t.stackIndex=Math.min(t.stackIndex,this.win.history.length-1),this.ps!=t.stackIndex&&(Qt().fine(oh,"stack index changed: "+this.ps+" -> "+t.stackIndex),this.ps=t.stackIndex,this.gs&&this.gs(t))},i.getFragment=function(){var t=this.win.location.hash;return t=t.substr(1),Promise.resolve(t)},i.updateFragment=function(t){return this.replace({fragment:t})},i.Us=function(t,i){var n=D(D({},t&&t.data||{}),i.data||{});return D(D(D({},t||{}),i),{},{data:n})},t}(),fh=function(){function t(t,i){var n=this;this.win=t,this.Le=i,this.ps=0,this.gs=null,this.Vs=this.Le.onMessage("historyPopped",(function(t){return n.Fs(t)}))}var i=t.prototype;return i.replaceStateForTarget=function(t){Zt("#"==t[0]),this.win.location.replace(t)},i.cleanup=function(){this.Vs()},i.setOnStateUpdated=function(t){this.gs=t},i.Bs=function(t,i,n){return this.qs(t)?t:(Qt().warn(oh,'Ignored unexpected "%s" data:',n,t),i)},i.qs=function(t){return!!t&&void 0!==t.stackIndex},i.push=function(t){var i=this,n=D({"stackIndex":this.ps+1},t||{}),r="pushHistory";return this.Le.sendMessageAwaitResponse(r,n).then((function(t){var e=n,s=i.Bs(t,e,r);return i.Ls(s),s}))},i.pop=function(t){var i=this;if(t>this.ps)return this.get();var n={"stackIndex":this.ps},r="popHistory";return this.Le.sendMessageAwaitResponse(r,n).then((function(t){var n={"stackIndex":i.ps-1},e=i.Bs(t,n,r);return i.Ls(e),e}))},i.replace=function(t){var i=this;if(t&&t.url){if(!this.Le.hasCapability("fullReplaceHistory")){var n={"stackIndex":this.ps};return Promise.resolve(n)}var r=t.url.replace(/#.*/,"");t.url=r}var e=D({"stackIndex":this.ps},t||{}),s="replaceHistory";return this.Le.sendMessageAwaitResponse(s,e,!0).then((function(t){var n=e,r=i.Bs(t,n,s);return i.Ls(r),r}))},i.get=function(){return Promise.resolve({data:void 0,fragment:"",stackIndex:this.ps,title:""})},i.Fs=function(t){void 0!==t.newStackIndex&&(t.stackIndex=t.newStackIndex),this.qs(t)?this.Ls(t):Qt().warn(oh,'Ignored unexpected "historyPopped" data:',t)},i.Ls=function(t){var i=t.stackIndex;this.ps!=i&&(Qt().fine(oh,"stackIndex: ".concat(this.ps," -> ").concat(i)),this.ps=i,this.gs&&this.gs(t))},i.getFragment=function(){return this.Le.hasCapability("fragment")?this.Le.sendMessageAwaitResponse("getFragment",void 0,!0).then((function(t){if(!t)return"";var i=t;return"#"==i[0]&&(i=i.substr(1)),i})):Promise.resolve("")},i.updateFragment=function(t){return this.Le.hasCapability("fragment")?this.Le.sendMessageAwaitResponse("replaceHistory",{"fragment":t},!0):h()},t}();function lh(t){var i,n=mr(t);return n.isOvertakeHistory()||t.win.__AMP_TEST_IFRAME?i=new fh(t.win,n):(En(t.win,"global-history-binding",ch),i=On(t.win,"global-history-binding")),new ah(t,i)}function vh(t,i){return nr(t.win).installExtensionForDoc(t,"amp-loader").then((function(){return function(t){return Vn(t,"loader","amp-loader")}(i)}))}var dh=['<div slot=i-amphtml-svc class="i-amphtml-svc i-amphtml-loading-container i-amphtml-fill-content amp-hidden"></div>'],mh=function(){function t(t){this.Ni=t;var i=t.win,n=this.$s.bind(this);this.Ws=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.needsRootBounds,e=n.rootMargin,s=n.threshold,u=Ni(i)&&(r||e)?i.document:void 0;return new i.IntersectionObserver(t,{threshold:s,root:u,rootMargin:e})}((function(t){return t.forEach(n)}),i),this.Ks=new WeakMap}var i=t.prototype;return i.dispose=function(){this.Ws.disconnect()},i.track=function(t){this.Ws.observe(t)},i.untrack=function(t){this.Ws.unobserve(t),this.Ys(t)},i.$s=function(t){var i=t.boundingClientRect,n=t.isIntersecting,r=t.target,e=i.height,s=i.width,u=r,o=n&&s>20&&e>20,h=this.Ks.get(u);o!==(h&&h.shown||!1)&&(o&&!h&&(h=this.Js(u,s,e),this.Ks.set(u,h)),h&&(h.shown=o,h.container.classList.toggle("amp-hidden",!o),h.loader.classList.toggle("amp-active",o)))},i.Js=function(t,i,n){var r=Date.now(),e=function(t,i,n,r){var e=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.win.Date.now(),s=i.ownerDocument.createElement("div");return vh(t,i).then((function(u){var o=t.win.Date.now()-e;u.initializeLoader(i,s,o,n,r)})),s}(this.Ni,t,i,n,r),s=Ne(this.Ni.win.document)(dh);return s.appendChild(e),t.appendChild(s),{shown:!1,loader:e,container:s}},i.Ys=function(t){var i=this.Ks.get(t);i&&(this.Ks.delete(t),Mi(i.container))},t}(),ph=function(){function t(t,i){var n=this;this.win=t,this.Xs=i,this.Qs=[],this.Zs=new Or,this.io=function(t){K(t.target)&&n.no(t.target)},this.ro=function(i){fr(t).delay((function(){n.win.document.activeElement&&n.no(n.win.document.activeElement)}),500)},this.win.document.addEventListener("focus",this.io,!0),this.win.addEventListener("blur",this.ro)}var i=t.prototype;return i.Ys=function(){this.win.document.removeEventListener("focus",this.io,!0),this.win.removeEventListener("blur",this.ro)},i.onFocus=function(t){return this.Zs.add(t)},i.no=function(t){var i=Date.now();0==this.Qs.length||this.Qs[this.Qs.length-1].el!=t?this.Qs.push({el:t,time:i}):this.Qs[this.Qs.length-1].time=i,this.purgeBefore(i-this.Xs),this.Zs.fire(t)},i.getLast=function(){return 0==this.Qs.length?null:this.Qs[this.Qs.length-1].el},i.purgeBefore=function(t){for(var i=this.Qs.length-1,n=0;n<this.Qs.length;n++)if(this.Qs[n].time>=t){i=n-1;break}-1!=i&&this.Qs.splice(0,i+1)},i.hasDescendantsOf=function(t){this.win.document.activeElement&&this.no(this.win.document.activeElement);for(var i=0;i<this.Qs.length;i++)if(t.contains(this.Qs[i].el))return!0;return!1},t}(),gh=70,bh=function(){function t(t){var i=this;this.ampdoc=t,this.win=t.win,this.fi=ar(t),this.eo=gr(this.ampdoc),this.so=pr(this.win),this.oo=new ph(this.win,6e4),this.oo.onFocus((function(t){i.uo(t)}))}var i=t.prototype;return i.forceChangeSize=function(t,i,n,r,e){this.ho(Vs.forElement(t),i,n,e,void 0,!0,r)},i.requestChangeSize=function(t,i,n,r,e){var s=this;return new Promise((function(u,o){s.ho(Vs.forElement(t),i,n,r,e,!1,(function(t){t?u():o(new Error("changeSize attempt denied"))}))}))},i.expandElement=function(t){Vs.forElement(t).completeExpand(),this.fi.schedulePass(gh)},i.attemptCollapse=function(t){var i=this;return new Promise((function(n,r){i.ho(Vs.forElement(t),0,0,void 0,void 0,!1,(function(i){i?(Vs.forElement(t).completeCollapse(),n()):r(Qt().createExpectedError("collapse attempt denied"))}))}))},i.collapseElement=function(t){var i=this.eo.getLayoutRect(t);0!=i.width&&0!=i.height&&(Fe(this.win,"dirty-collapse-element")?this.dirtyElement(t):this.fi.setRelayoutTop(i.top)),Vs.forElement(t).completeCollapse(),this.fi.schedulePass(gh)},i.measureElement=function(t){return this.so.measurePromise(t)},i.mutateElement=function(t,i,n){return this.ao(t,null,i,n)},i.measureMutateElement=function(t,i,n){return this.ao(t,i,n)},i.co=function(t){var i=jr(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}},i.ao=function(t,i,n){var r=this,e=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=function(){var i=r.eo.getLayoutRect(t);return 0!=i.width&&0!=i.height?i.top:-1},u=-1;return this.so.runPromise({measure:function(){i&&i(),e||(u=s())},mutate:function(){if(n(),!e){t.classList.contains("i-amphtml-element")&&Vs.forElement(t).requestMeasure();for(var i=t.getElementsByClassName("i-amphtml-element"),o=0;o<i.length;o++)Vs.forElement(i[o]).requestMeasure();r.fi.schedulePass(gh),-1!=u&&r.fi.setRelayoutTop(u),r.so.measure((function(){var t=s();-1!=t&&t!=u&&(r.fi.setRelayoutTop(t),r.fi.schedulePass(gh)),r.fi.maybeHeightChanged()}))}}})},i.dirtyElement=function(t){var i=!1;if(t.classList.contains("i-amphtml-element")){var n=Vs.forElement(t);this.fi.setRelayoutTop(n.getLayoutBox().top)}else i=!0;this.fi.schedulePass(gh,i)},i.uo=function(t){var i=bi(t,(function(t){return!!Vs.forElementOptional(t)}));if(i){var n=Vs.forElement(i),r=n.getPendingChangeSize();void 0!==r&&this.ho(n,r.height,r.width,r.margins,void 0,!0)}},i.ho=function(t,i,n,r,e,s,u){var o=this;t.hasBeenMeasured()&&!r?this.fo(t,i,n,void 0,e,s,u):this.so.measure((function(){t.hasBeenMeasured()||t.measure();var h=r?{newMargins:r,currentMargins:o.co(t)}:void 0;o.fo(t,i,n,h,e,s,u)}))},i.fo=function(t,i,n,r,e,s,u){t.resetPendingChangeSize();var o,h,a=t.getLayoutSize();if(!(void 0!==i&&i!=a.height||void 0!==n&&n!=a.width||void 0!==r&&(o=r.currentMargins,h=r.newMargins,void 0!==h.top&&h.top!=o.top||void 0!==h.right&&h.right!=o.right||void 0!==h.bottom&&h.bottom!=o.bottom||void 0!==h.left&&h.left!=o.left)))return void 0===i&&void 0===n&&void 0===r&&Qt().error("Mutator","attempting to change size with undefined dimensions",t.debugid),void(u&&u(!0));this.fi.updateOrEnqueueMutateTask(t,{resource:t,newHeight:i,newWidth:n,marginChange:r,event:e,force:s,callback:u}),this.fi.schedulePassVsync()},t}(),yh=null,wh=["gclid","gclsrc"],Ah=[/^t.co$/];function xh(){return ti(yh,"E#19457 trackImpressionPromise")}function Eh(t,i,n,r){var e,s,u;try{e=t.open(i,n,r)}catch(t){Qt().error("DOM","Failed to open url on target: ",n,t)}return!e&&"_top"!=n&&("number"!=typeof u&&(u=0),u+"noopener".length>(s=r||"").length||-1===s.indexOf("noopener",u))&&(e=t.open(i,"_top")),e}var Ph="navigation",Oh="click",Ih="contextmenu",Th=["_top","_blank"],Mh="data-a4a-orig-href",Sh=function(){function t(t){var i=this;this.ampdoc=t,this.lo=t.getRootNode(),this.eo=gr(this.ampdoc),this.Le=mr(this.ampdoc),this.Qs=rr(this.ampdoc),this.vo=or(this.ampdoc.win),this.do=this.vo.isIos()&&this.vo.isSafari(),this.mo=Ni(this.ampdoc.win)&&this.Le.isOvertakeHistory(),this.po=this.lo!=this.ampdoc.getRootNode()||!!this.ampdoc.getParent(),this.bo="inabox"==Dt(this.ampdoc.win).runtime,this.yo=this.lo.nodeType==Node.DOCUMENT_NODE?this.lo.documentElement:this.lo,this.wo=this.Ao.bind(this),this.lo.addEventListener(Oh,this.wo),this.lo.addEventListener(Ih,this.wo),this.xo=!1,function(t){return t.whenReady().then((function(){return!!t.getBody().querySelector("amp-analytics[type=googleanalytics]")}))}(this.ampdoc).then((function(t){i.xo=t})),this.Eo=!1,this.Oo=!1,Promise.all([this.Le.isTrustedViewer(),this.Le.getViewerOrigin()]).then((function(t){var n;i.Eo=t[0],i.Oo=(n=t[1],Mt.test(ds(n).origin))})),this.To=null,this.Po=new Ys,this.Io=new Ys}t.installAnchorClickInterceptor=function(t,i){i.document.documentElement.addEventListener("click",Rh.bind(null,t),!0)};var i=t.prototype;return i.cleanup=function(){this.wo&&(this.lo.removeEventListener(Oh,this.wo),this.lo.removeEventListener(Ih,this.wo))},i.openWindow=function(t,i,n,r){var e="";!this.vo.isIos()&&this.vo.isChrome()||r||(e+="noopener");var s=Eh(t,i,n,e);s&&!r&&(s.opener=null)},i.navigateTo=function(t,i,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},e=r.opener,s=void 0!==e&&e,u=r.target,o=void 0===u?"_top":u;i=this.So(i);var h=dr(this.yo);if(h.isProtocolValid(i)){ti(Th.includes(o),"Target '".concat(o,"' not supported."));var a=h.getSourceUrl(t.location);i=h.resolveRelativeUrl(i,a),"_blank"!=o?n&&(this.To||(this.To=this.Mo()),this.To.includes(n)&&this.navigateToAmpUrl(i,n))||(t.top.location.href=i):this.openWindow(t,i,o,s)}else Jt().error(Ph,"Cannot navigate to invalid protocol: "+i)},i.navigateToAmpUrl=function(t,i){return!!this.Le.hasCapability("a2a")&&(this.Le.sendMessage("a2aNavigate",{"url":t,"requestedBy":i}),!0)},i.Mo=function(){var t=this.lo.querySelector('meta[name="amp-to-amp-navigation"]');return t&&t.hasAttribute("content")?t.getAttribute("content").split(",").map((function(t){return t.trim()})):[]},i.Ao=function(t){if(!t.defaultPrevented){var i=yi(t.__AMP_CUSTOM_LINKER_TARGET__||t.target,"A");i&&i.href&&(t.type==Oh?this.Ro(i,t):t.type==Ih&&this._o(i,t))}},i.Ro=function(t,i){this.ko(t);var n=this.No(t.href);if(!this.Co(i,t,n)&&!this.jo(i,t,n)){var r=this.Do();_h(n)!=_h(r)&&(this.Uo(t,i),n=this.No(t.href)),this.zo(i,t,n,r)}},i._o=function(t,i){this.ko(t),this.Uo(t,i)},i.Uo=function(t,i){this.Po.forEach((function(n){n(t,i)}))},i.So=function(t){return this.Io.forEach((function(i){t=i(t)})),t},i.ko=function(t){var i=null;this.xo&&!this.po&&(i=function(t,i){for(var n=yt(ms(Gr.getLocation(t).href).search),r=[],e=0;e<wh.length;e++){var s=wh[e];void 0!==n[s]&&r.push(s)}var u=i.getAttribute("data-amp-addparams"),o=i.href;u&&(o=ys(o,yt(u)));for(var h=yt(ms(o).search),a=r.length-1;a>=0;a--)void 0!==h[r[a]]&&r.splice(a,1);return function(t){for(var i="",n=0;n<t.length;n++){var r=t[n];i+=0==n?"".concat(r,"=QUERY_PARAM(").concat(r,")"):"&".concat(r,"=QUERY_PARAM(").concat(r,")")}return i}(r)}(this.ampdoc.win,t)),lr(t).maybeExpandLink(t,i)},i.jo=function(t,i,n){if(!this.mo)return!1;var r=oi(i),e=i.href,s=n.protocol;if("ftp:"==s)return Eh(r,e,"_blank"),t.preventDefault(),!0;var u=/^(https?|mailto):$/.test(s);return!(!this.do||u||(Eh(r,e,"_top"),t.preventDefault(),0))},i.Co=function(t,i,n){return!(!i.hasAttribute("rel")||!i.getAttribute("rel").split(" ").map((function(t){return t.trim()})).includes("amphtml")||!this.navigateToAmpUrl(n.href,"<a rel=amphtml>")||(t.preventDefault(),0))},i.zo=function(t,i,n,r){var e=_h(n),s=_h(r);if(n.hash&&e==s)this.Lo(t,n,r);else{var u=(i.getAttribute("target")||"").toLowerCase();(this.po||this.bo)&&"_top"!=u&&"_blank"!=u&&(u="_blank",i.setAttribute("target",u));var o=this.ampdoc.win,h=or(o),a=mr(i);r.search&&h.isSafari()&&h.getMajorVersion()>=13&&a.isProxyOrigin()&&a.isEmbedded()&&this.Ho(o,r,u),this.viewerInterceptsNavigation(e,"intercept_click")&&t.preventDefault()}},i.Ho=function(t,i,n){Qt().info(Ph,"Removing iframe query string before navigation:",i.search);var r=i.href,e="".concat(i.origin).concat(i.pathname).concat(i.hash);t.history.propertyIsEnumerable(null,"",e);var s=function(){var i=t.location.href;i==e?(Qt().info(Ph,"Restored iframe URL with query string:",r),t.history.propertyIsEnumerable(null,"",r)):Qt().error(Ph,"Unexpected iframe URL change:",i,e)};"_blank"===n?t.setTimeout(s,0):t.addEventListener("pageshow",(function i(n){n.persisted&&(s(),t.removeEventListener("pageshow",i))}))},i.Lo=function(t,i,n){var r=this;if(t.preventDefault(),!this.po){var e=i.hash.slice(1),s=null;if(e){var u=vi(e);s=this.lo.getElementById(e)||this.lo.querySelector('a[name="'.concat(u,'"]'))}i.hash!=n.hash?this.Qs.replaceStateForTarget(i.hash).then((function(){r.Go(s,e)})):this.Go(s,e)}},i.registerAnchorMutator=function(t,i){this.Po.enqueue(t,i)},i.registerNavigateToMutator=function(t,i){this.Io.enqueue(t,i)},i.Go=function(t,i){var n=this;t?(this.eo.scrollIntoView(t),fr(this.ampdoc.win).delay((function(){return n.eo.scrollIntoView(t)}),1)):Qt().warn(Ph,"failed to find element with id=".concat(i," or a[name=").concat(i,"]"))},i.No=function(t){return dr(this.yo).parse(t)},i.Do=function(){return this.No("")},i.viewerInterceptsNavigation=function(t,i){var n=this.Le.hasCapability("interceptNavigation"),r=this.ampdoc.isSingleDoc()&&this.ampdoc.getRootNode().documentElement.hasAttribute("allow-navigation-interception");return!(!n||!r||!this.Eo&&!this.Oo||(this.Le.sendMessage("navigateTo",{"url":t,"requestedBy":i}),0))},t}();function Rh(t,i){var n=yi(i.target,"A");if(n&&n.href){var r=n.getAttribute(Mh)||n.getAttribute("href");if(r){var e={"CLICK_X":function(){return i.pageX},"CLICK_Y":function(){return i.pageY}},s=lr(n).expandUrlSync(r,e,{"CLICK_X":!0,"CLICK_Y":!0});s!=r&&(n.getAttribute(Mh)||n.setAttribute(Mh,r),n.setAttribute("href",s))}}}function _h(t){return"".concat(t.origin).concat(t.pathname).concat(t.search)}function kh(t){return V(t)?t:[t]}var Ch=function(){function t(t){this.fi=ar(t)}var i=t.prototype;return i.setOwner=function(t,i){Vs.setOwner(t,i)},i.schedulePreload=function(t,i){this.Vo(this.fi.getResourceForElement(t),!1,kh(i))},i.scheduleLayout=function(t,i){this.Vo(this.fi.getResourceForElement(t),!0,kh(i))},i.schedulePause=function(t,i){var n=this.fi.getResourceForElement(t);i=kh(i),this.Fo(n,i,(function(t){t.pause()}))},i.scheduleResume=function(t,i){var n=this.fi.getResourceForElement(t);i=kh(i),this.Fo(n,i,(function(t){t.resume()}))},i.scheduleUnlayout=function(t,i){var n=this.fi.getResourceForElement(t);i=kh(i),this.Fo(n,i,(function(t){t.unlayout()}))},i.requireLayout=function(t,i){var n=[];return this.Bo(t,(function(t){n.push(t.element.ensureLoaded())})),Promise.all(n)},i.Fo=function(t,i,n){for(var r,e=o(i,!0);!(r=e()).done;){var s=r.value;Zt(t.element.contains(s)),this.Bo(s,n)}},i.Bo=function(t,i){if(t.classList.contains("i-amphtml-element")){i(this.fi.getResourceForElement(t));var n=t.getPlaceholder();n&&this.Bo(n,i)}else for(var r=t.getElementsByClassName("i-amphtml-element"),e=[],s=0;s<r.length;s++){for(var u=r[s],o=!1,h=0;h<e.length;h++)if(e[h].contains(u)){o=!0;break}o||(e.push(u),i(this.fi.getResourceForElement(u)))}},i.Vo=function(t,i,n){this.Fo(t,n,(function(i){i.element.ensureLoaded(t.getLayoutPriority())}))},t}(),Nh=function(){function t(t){this.qo=t.navigator,this.t=t}var i=t.prototype;return i.isAndroid=function(){return/Android/i.test(this.qo.userAgent)},i.isIos=function(){return/iPhone|iPad|iPod/i.test(this.qo.userAgent)},i.isSafari=function(){return/Safari/i.test(this.qo.userAgent)&&!this.isChrome()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()},i.isChrome=function(){return/Chrome|CriOS/i.test(this.qo.userAgent)&&!this.isEdge()&&!this.isOpera()},i.isFirefox=function(){return/Firefox|FxiOS/i.test(this.qo.userAgent)&&!this.isEdge()},i.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.qo.userAgent)},i.isEdge=function(){return/Edge/i.test(this.qo.userAgent)},i.isWebKit=function(){return/WebKit/i.test(this.qo.userAgent)&&!this.isEdge()},i.isWindows=function(){return/Windows/i.test(this.qo.userAgent)},i.isStandalone=function(){return this.isIos()&&this.qo.standalone||this.isChrome()&&this.t.matchMedia("(display-mode: standalone)").matches},i.isBot=function(){return/bot/i.test(this.qo.userAgent)},i.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:this.$o(/\sVersion\/(\d+)/,1):this.isChrome()?this.$o(/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?this.$o(/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?this.$o(/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isEdge()?this.$o(/Edge\/(\d+)/,1):0},i.$o=function(t,i){if(!this.qo.userAgent)return 0;var n=this.qo.userAgent.match(t);return!n||i>=n.length?0:parseInt(n[i],10)},i.getIosVersionString=function(){var t,i,n;return this.isIos()&&(null===(t=this.qo.userAgent)||void 0===t||null===(i=t.match(/OS ([0-9]+[_.][0-9]+([_.][0-9]+)?)\b/))||void 0===i||null===(n=i[1])||void 0===n?void 0:n.replace(/_/g,"."))||""},i.getIosMajorVersion=function(){var t=this.getIosVersionString();return""==t?null:Number(t.split(".")[0])},t}();function Dh(t){En(t,"platform",Nh)}var jh=function(){function t(t){this.mi=t,this.Wo=A()}var i=t.prototype;return i.addTransition=function(t,i,n){var r=this.Ko(t,i);et(!this.Wo[r]),this.Wo[r]=n},i.setState=function(t){var i=this.mi;this.mi=t;var n=this.Ko(i,t),r=this.Wo[n];null==r||r()},i.Ko=function(t,i){return"".concat(t,"|").concat(i)},t}(),Uh=function(){function t(){this.Nn=[],this.Yo={},this.Jo=0,this.Xo=0}var i=t.prototype;return i.getSize=function(){return this.Nn.length},i.getLastEnqueueTime=function(){return this.Jo},i.getLastDequeueTime=function(){return this.Xo},i.getTaskById=function(t){return this.Yo[t]||null},i.enqueue=function(t){Zt(!this.Yo[t.id]),this.Nn.push(t),this.Yo[t.id]=t,this.Jo=Date.now()},i.dequeue=function(t){var i=this.Yo[t.id];return!!this.removeAtIndex(t,this.Nn.indexOf(i))&&(this.Xo=Date.now(),!0)},i.peek=function(t){for(var i=1e6,n=null,r=0;r<this.Nn.length;r++){var e=this.Nn[r],s=t(e);s<i&&(i=s,n=e)}return n},i.forEach=function(t){this.Nn.forEach(t)},i.removeAtIndex=function(t,i){var n=this.Yo[t.id];return!(!n||this.Nn[i]!=n||(this.Nn.splice(i,1),delete this.Yo[t.id],0))},i.purge=function(t){for(var i=this.Nn.length;i--;)t(this.Nn[i])&&this.removeAtIndex(this.Nn[i],i)},t}(),Lh="Resources",zh=function(){function t(t){var i=this;this.ampdoc=t,this.win=t.win,this.Le=mr(t),this.Qo=this.Le.isRuntimeOn(),this.Zo=!1,this.tu=0,this.fi=[],this.iu=0,this.nu=0,this.ru=0,this.eu=this.ampdoc.isVisible(),this.su=!1,this.ou=!0,this.uu=!1,this.hu=-1,this.au=!0,this.cu=-1,this.fu=0,this.lu=0,this.be=new Uu(this.win,(function(){return i.doPass()})),this.vu=new Uu(this.win,(function(){i.au=!0,i.schedulePass()})),this.du=new Uh,this.$i=new Uh,this.mu=this.pu.bind(this),this.bu=[],this.gu=[],this.yu=!1,this.eo=gr(this.ampdoc),this.so=pr(this.win),this.oo=new ph(this.win,6e4),this.wu=!1,this.Au=0,this.xu=!1,this.Eu=[],this.Ou=[],this.Tu=new a,this.Pu=new jh(this.ampdoc.getVisibilityState()),this.eo.onChanged((function(t){i.fu=i.win.Date.now(),i.lu=t.velocity,t.relayoutAll&&(i.au=!0,i.xu=!0),i.schedulePass()})),this.eo.onScroll((function(){i.fu=i.win.Date.now()})),this.ampdoc.onVisibilityChanged((function(){-1==i.hu&&i.ampdoc.isVisible()&&(i.hu=i.win.Date.now()),i.schedulePass()})),this.Le.onRuntimeState((function(t){Qt().fine(Lh,"Runtime state:",t),i.Qo=t,i.schedulePass(1)})),Zs(this.ampdoc,(function(){i.Iu(i.Pu),i.schedulePass(0)})),this.Su(),this.Mu=dt(this.win,(function(t){return i.Ru(t)}),250),Je(this.win.document,"scroll",this.Mu,{capture:!0,passive:!0})}var i=t.prototype;return i.Su=function(){var t=this;this.ampdoc.whenReady().then((function(){t.su=!0,t._u(),t.gu=null,function(t){return On(t,"input")}(t.win).setupInputModeClasses(t.ampdoc);var i=function(){return t.vu.schedule()};i(),Promise.race([Ze(t.win),fr(t.win).promise(3100)]).then(i),t.win.document.fonts&&"loaded"!=t.win.document.fonts.status&&t.win.document.fonts.ready.then(i)}))},i.get=function(){return this.fi.slice(0)},i.getAmpdoc=function(){return this.ampdoc},i.getResourceForElement=function(t){return Vs.forElement(t)},i.getResourceForElementOptional=function(t){return Vs.forElementOptional(t)},i.getScrollDirection=function(){return Math.sign(this.lu)||1},i.add=function(t){this.iu++,1==this.iu&&this.eo.ensureReadyForElements();var i=Vs.forElementOptional(t);i&&0!=i.getState()&&!t.reconstructWhenReparented()?(i.requestMeasure(),Qt().fine(Lh,"resource reused:",i.debugid)):(i=new Vs(++this.tu,t,this),Qt().fine(Lh,"resource added:",i.debugid)),this.fi.push(i),this.vu.schedule(1e3)},i.ku=function(){return this.nu<20||this.ampdoc.getVisibilityState()==wr||this.ampdoc.hasBeenVisible()},i.Nu=function(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.Qo||this.Zo;if(r){var e=this.ampdoc.getVisibilityState(),s=e==yr&&!t.prerenderAllowed(),u=e==wr&&!t.previewAllowed();s||u||(this.su?this.Cu(t,n):t.isBuilt()||t.isBuilding()||i&&this.gu.includes(t)||(this.gu.push(t),this._u()))}},i._u=function(){if(!this.yu)try{this.yu=!0,this.ju()}finally{this.yu=!1}},i.ju=function(){for(var t=0;t<this.gu.length;t++){var i=this.gu[t];(this.su||ki(i.element,this.ampdoc.getRootNode()))&&(this.gu.splice(t--,1),this.Cu(i))}},i.Cu=function(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n&&!this.ku()&&!t.isBuildRenderBlocking())return null;var r=t.build();return r?(Qt().fine(Lh,"build resource:",t.debugid),this.nu++,this.ru++,r.then((function(){return i.schedulePass()}),(function(n){if(i.Du(t),!zs(n))throw n}))):null},i.remove=function(t){var i=Vs.forElementOptional(t);i&&this.Du(i)},i.Du=function(t){var i=this.fi.indexOf(t);-1!=i&&this.fi.splice(i,1),t.isBuilt()&&t.pauseOnRemove(),3===t.getState()&&t.layoutCanceled(),this.Uu(t,!0),Qt().fine(Lh,"resource removed:",t.debugid)},i.upgraded=function(t){var i=Vs.forElement(t);this.Nu(i),Qt().fine(Lh,"resource upgraded:",i.debugid)},i.updateLayoutPriority=function(t,i){var n=Vs.forElement(t);n.updateLayoutPriority(i),this.$i.forEach((function(t){t.resource==n&&(t.priority=i)})),this.schedulePass()},i.schedulePass=function(t){return this.be.schedule(t)},i.updateOrEnqueueMutateTask=function(t,i){for(var n=null,r=0;r<this.bu.length;r++)if(this.bu[r].resource==t){n=this.bu[r];break}n?(n.newHeight=i.newHeight,n.newWidth=i.newWidth,n.marginChange=i.marginChange,n.event=i.event,n.force=i.force||n.force,n.callback=i.callback):this.bu.push(i)},i.schedulePassVsync=function(){var t=this;this.wu||(this.wu=!0,this.so.mutate((function(){return t.doPass()})))},i.ampInitComplete=function(){this.uu=!0,Qt().fine(Lh,"ampInitComplete"),this.schedulePass()},i.setRelayoutTop=function(t){-1==this.cu?this.cu=t:this.cu=Math.min(t,this.cu)},i.maybeHeightChanged=function(){this.xu=!0},i.onNextPass=function(t){this.Eu.push(t)},i.doPass=function(){var t=this;if(this.Qo){if(this.eu=this.ampdoc.isVisible(),this.ru=0,this.su&&this.ou&&this.uu){var i;this.ou=!1;var n=this.win.document,r=ir(this.ampdoc);this.Le.sendMessage("documentLoaded",{"title":n.title,"sourceUrl":Ms(this.ampdoc.getUrl()),"isStory":"AMP-STORY"===(null===(i=n.body.firstElementChild)||void 0===i?void 0:i.tagName),"serverLayout":n.documentElement.hasAttribute("i-amphtml-element"),"linkRels":r.linkRels,"metaTags":{"viewport":r.viewport},"viewport":r.viewport},!0),this.Au=this.eo.getContentHeight(),this.Le.sendMessage("documentHeight",{"height":this.Au},!0),Qt().fine(Lh,"document height on load: %s",this.Au)}!this.ou&&this.zu&&this.fi.every((function(t){return t.getState()!=Vs.NOT_BUILT||t.element.R1()}))&&(this.zu=!1,this.xu=!0);var e=this.eo.getSize();Qt().fine(Lh,"PASS: visible=",this.eu,", relayoutAll=",this.au,", relayoutTop=",this.cu,", viewportSize=",e.width,e.height),this.be.cancel(),this.wu=!1,this.Pu.setState(this.ampdoc.getVisibilityState()),this.Lu(),this.xu&&(this.xu=!1,this.so.measure((function(){var i=t.eo.getContentHeight();i!=t.Au&&(t.Le.sendMessage("documentHeight",{"height":i},!0),t.Au=i,Qt().fine(Lh,"document height changed: %s",t.Au),t.eo.contentHeightChanged())})));for(var s=0;s<this.Eu.length;s++)(0,this.Eu[s])();this.Eu.length=0}else Qt().fine(Lh,"runtime is off")},i.Lu=function(){this.su&&this.uu&&!this.ampdoc.signals().get(Fs)&&(this.ampdoc.signals().signal(Fs),Qt().fine(Lh,"signal: ready-scan"))},i.Hu=function(){return this.bu.length>0},i.Gu=function(){var t=this,i=this.win.Date.now(),n=this.eo.getRect(),r=n.height/10,e=n.height/10,s=Math.abs(this.lu)<.01&&i-this.fu>500||i-this.fu>1e3;if(this.bu.length>0){Qt().fine(Lh,"change size requests:",this.bu.length);var u=this.bu;this.bu=[];for(var o=-1,h=[],a=0,c=function(i){var c=u[i],f=c,l=f.event,v=f.resource,d=v.getLayoutBox(),m=0,p=0,g=0,b=0,y=d.bottom,w=d.top,A=void 0;if(c.marginChange){A=c.marginChange.newMargins;var x=c.marginChange.currentMargins;null!=A.top&&(m=A.top-x.top),null!=A.bottom&&(p=A.bottom-x.bottom),null!=A.left&&(g=A.left-x.left),null!=A.right&&(b=A.right-x.right),m&&(w=d.top-x.top),p&&(y=d.bottom+x.bottom)}var E=c.newHeight-d.height,P=c.newWidth-d.width,O=!1;if(0==E&&0==m&&0==p&&0==P&&0==g&&0==b);else if(c.force||!t.eu)O=!0;else if(t.oo.hasDescendantsOf(v.element)||l&&l.userActivation&&l.userActivation.hasBeenActive)O=!0;else if(w>=n.bottom-e||0==m&&d.bottom+Math.min(E,0)>=n.bottom-e)O=!0;else{if(n.top>1&&y<=n.top+r)return E<0&&n.top+a<-E||(s?(a+=E,h.push(c)):t.bu.push(c)),"continue";t.Vu(v,d)?O=!0:E<0||m<0||p<0||(c.newHeight==d.height?t.so.run({measure:function(t){t.resize=!1;var i=v.element.parentElement;if(i){for(var n=i.getLayoutSize&&i.getLayoutSize().width||i.offsetWidth,r=P,e=0;e<i.childElementCount;e++)if((r+=i.children[e].offsetWidth)>n)return;t.resize=!0}},mutate:function(t){t.resize&&c.resource.changeSize(c.newHeight,c.newWidth,A),c.resource.overflowCallback(!t.resize,c.newHeight,c.newWidth,A)}},{}):c.resource.overflowCallback(!0,c.newHeight,c.newWidth,A))}O&&(d.top>=0&&(o=-1==o?d.top:Math.min(o,d.top)),c.resource.changeSize(c.newHeight,c.newWidth,A),c.resource.overflowCallback(!1,c.newHeight,c.newWidth,A),t.xu=!0),c.callback&&c.callback(O)},f=0;f<u.length;f++)c(f);-1!=o&&this.setRelayoutTop(o),h.length>0&&this.so.run({measure:function(i){i.scrollHeight=t.eo.getScrollHeight(),i.scrollTop=t.eo.getScrollTop()},mutate:function(i){var n=-1;h.forEach((function(t){var i=t.resource.getLayoutBox();n=-1==n?i.top:Math.min(n,i.top),t.resource.changeSize(t.newHeight,t.newWidth,t.marginChange?t.marginChange.newMargins:void 0),t.callback&&t.callback(!0)})),-1!=n&&t.setRelayoutTop(n);var r=t.eo.getScrollHeight();r!=i.scrollHeight&&t.eo.setScrollTop(i.scrollTop+(r-i.scrollHeight)),t.xu=!0}},{})}},i.Vu=function(t,i,n){var r=this.eo.getContentHeight(),e=Math.max(.85*r,r-1e3),s=i||t.getLayoutBox(),u=n||t.getInitialLayoutBox();return s.bottom>=e||u.bottom>=e},i.Fu=function(t){var i=t.isDisplayed();return t.measure(),!(i&&!t.isDisplayed())},i.Bu=function(t){var i=this;t.length&&this.so.mutate((function(){t.forEach((function(t){t.unload(),i.Uu(t)})),Qt().fine(Lh,"unload:",t)}))},i.qu=function(){var t=this.win.Date.now(),i=this.Ou,n=this.au,r=this.cu;this.au=!1,this.cu=-1;for(var e,s=0,u=0,o=0;o<this.fi.length;o++){var h=this.fi[o];0!=h.getState()||h.isBuilding()||h.element.R1()||this.Nu(h,!0),!n&&h.hasBeenMeasured()&&1!=h.getState()||s++,h.isMeasureRequested()&&u++}if(s>0||u>0||n||-1!=r||i.length>0)for(var a=0;a<this.fi.length;a++){var c=this.fi[a];if(!(c.hasOwner()&&!c.isMeasureRequested()||c.element.R1())){var f=n||1==c.getState()||!c.hasBeenMeasured()||c.isMeasureRequested()||-1!=r&&c.getLayoutBox().bottom>=r;if(!f)for(var l=0;l<i.length;l++)if(i[l].contains(c.element)){f=!0;break}f&&(this.Fu(c)||(e||(e=[]),e.push(c)))}}i.length=0,e&&this.Bu(e);var v,d=this.eo.getRect();v=this.eu?Hi(d,.25,2):d;for(var m=this.eu?Hi(d,.25,.25):d,p=0;p<this.fi.length;p++){var g=this.fi[p];if(0!=g.getState()&&!g.hasOwner()&&!g.element.R1()){var b=this.eu&&g.isDisplayed()&&g.overlaps(m);g.setInViewport(b)}}if(v)for(var y=0;y<this.fi.length;y++){var w=this.fi[y];w.isBuilt()||w.isBuilding()||w.hasOwner()||w.element.R1()||!w.hasBeenMeasured()||!w.isDisplayed()||!w.overlaps(v)||this.Nu(w,!0,!0),2!=w.getState()||w.hasOwner()||w.isDisplayed()&&w.overlaps(v)&&this.scheduleLayoutOrPreload(w,!0)}if(this.eu&&this.$u(t)){for(var A=0,x=0;x<this.fi.length&&A<4;x++){var E=this.fi[x];2==E.getState()&&!E.hasOwner()&&!E.element.R1()&&E.isDisplayed()&&E.idleRenderOutsideViewport()&&(Qt().fine(Lh,"idleRenderOutsideViewport layout:",E.debugid),this.scheduleLayoutOrPreload(E,!1),A++)}for(var P=0;P<this.fi.length&&A<4;P++){var O=this.fi[P];2!=O.getState()||O.hasOwner()||O.element.R1()||!O.isDisplayed()||(Qt().fine(Lh,"idle layout:",O.debugid),this.scheduleLayoutOrPreload(O,!1),A++)}}},i.$u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),i=this.du.getLastDequeueTime();return 0==this.du.getSize()&&0==this.$i.getSize()&&t>i+5e3&&i>0},i.Wu=function(){for(var t=this.win.Date.now(),i=-1,n=this.$i.peek(this.mu);n&&(i=this.Ku(n),Qt().fine(Lh,"peek from queue:",n.id,"sched at",n.scheduleTime,"score",this.mu(n),"timeout",i),!(i>16));){this.$i.dequeue(n);var r=this.du.getTaskById(n.id);if(r){var e=this.Yu.bind(this,n);r.promise.then(e,e)}else{var s=n.resource;s.measure(),this.Ju(s,n.forceOutsideViewport)?(n.promise=n.callback(),n.startTime=t,Qt().fine(Lh,"exec:",n.id,"at",n.startTime),this.du.enqueue(n),n.promise.then(this.Xu.bind(this,n,!0),this.Xu.bind(this,n,!1)).catch(Us)):(Qt().fine(Lh,"cancelled",n.id),s.layoutCanceled())}n=this.$i.peek(this.mu),i=-1}if(Qt().fine(Lh,"queue size:",this.$i.getSize(),"exec size:",this.du.getSize()),i>=0)return i;var u=2*(t-this.du.getLastDequeueTime());return Math.max(Math.min(3e4,u),5e3)},i.pu=function(t){var i=this.eo.getRect(),n=t.resource.getLayoutBox(),r=Math.floor((n.top-i.top)/i.height);return Math.sign(r)!=this.getScrollDirection()&&(r*=2),r=Math.abs(r),10*t.priority+r},i.Ku=function(t){var i=this.win.Date.now();if(0==this.du.getSize()){if(-1===this.hu)return 0;var n=1e3*t.priority;return Math.max(n-(i-this.hu),0)}var r=0;return this.du.forEach((function(n){var e=Math.max(1e3*(t.priority-n.priority),0);r=Math.max(r,e-(i-n.startTime))})),r},i.Yu=function(t){this.$i.getTaskById(t.id)||this.$i.enqueue(t)},i.Xu=function(t,i,n){if(this.du.dequeue(t),this.schedulePass(1e3),!i)return Qt().info(Lh,"task failed:",t.id,t.resource.debugid,n),Promise.reject(n)},i.Ju=function(t,i){if(0==t.getState()||!t.isDisplayed())return!1;var n=this.ampdoc.getVisibilityState(),r=n==yr&&t.prerenderAllowed(),e=n==wr&&t.previewAllowed();return!!(this.eu||r||e)&&!!(i||t.isInViewport()||t.renderOutsideViewport()||t.idleRenderOutsideViewport())},i.scheduleLayoutOrPreload=function(t,i,n,r){if(!t.element.R1()){var e=0!=t.getState(),s=t.isDisplayed();e&&s||Zt(!1);var u=r||!1;this.Ju(t,u)&&(i?this.Hn(t,"L",0,n||0,u,t.startLayout.bind(t)):this.Hn(t,"P",2,n||0,u,t.startLayout.bind(t)))}},i.Hn=function(t,i,n,r,e,s){var u=t.getTaskId(i),o={id:u,resource:t,priority:Math.max(t.getLayoutPriority(),r)+n,forceOutsideViewport:e,callback:s,scheduleTime:this.win.Date.now(),startTime:0,promise:null};Qt().fine(Lh,"schedule:",o.id,"at",o.scheduleTime);var h=this.$i.getTaskById(u);(!h||o.priority<h.priority)&&(h&&this.$i.dequeue(h),this.$i.enqueue(o),this.schedulePass(this.Ku(o))),o.resource.layoutScheduled(o.scheduleTime)},i.whenFirstPass=function(){return this.Tu.promise},i.Iu=function(t){var i=this,n=xr,r=Pr,e=Er,s=yr,u=wr,o=Ar,h=function(){var t=i.eo.getSize();if(t.height>0&&t.width>0){i.Hu()&&i.Gu(),i.qu();var n=i.Wu();i.Hu()&&(n=Math.min(n,500)),i.eu?i.schedulePass(n)?Qt().fine(Lh,"next pass:",n):Qt().fine(Lh,"pass already scheduled"):Qt().fine(Lh,"document is not visible: no scheduling"),i.Tu.resolve()}},a=function(){},c=function(){i.fi.forEach((function(t){return t.pause()}))},f=function(){i.fi.forEach((function(t){t.unload(),i.Uu(t)})),i.Qu()},l=function(){i.fi.forEach((function(t){return t.resume()})),h()};t.addTransition(s,s,h),t.addTransition(s,u,h),t.addTransition(s,o,h),t.addTransition(s,n,h),t.addTransition(s,r,h),t.addTransition(s,e,h),t.addTransition(u,u,h),t.addTransition(u,o,h),t.addTransition(u,n,h),t.addTransition(u,r,h),t.addTransition(u,e,h),t.addTransition(o,o,h),t.addTransition(o,n,h),t.addTransition(o,r,f),t.addTransition(o,e,c),t.addTransition(n,o,h),t.addTransition(n,n,h),t.addTransition(n,r,f),t.addTransition(n,e,c),t.addTransition(r,o,l),t.addTransition(r,n,l),t.addTransition(r,r,a),t.addTransition(r,e,h),t.addTransition(e,o,l),t.addTransition(e,n,h),t.addTransition(e,r,f),t.addTransition(e,e,a)},i.Qu=function(){try{this.win.getSelection().removeAllRanges()}catch(t){}},i.Uu=function(t,i){if(1!=t.getState()&&2!=t.getState()||(this.$i.purge((function(i){return i.resource==t})),this.du.purge((function(i){return i.resource==t})),B(this.bu,(function(i){return i.resource===t}))),0==t.getState()&&i&&this.gu){var n=this.gu.indexOf(t);-1!=n&&this.gu.splice(n,1)}},i.Ru=function(t){var i=t.target;if(i.nodeType===Node.ELEMENT_NODE&&i!==this.eo.getScrollingElement()){var n=i;this.Ou.includes(n)||(this.Ou.push(n),this.schedulePass(70))}},t}();function Hh(t){return t.queryCommandSupported("copy")}function Gh(t){return t.hasAttribute("hidden")}var Vh="STANDARD-ACTIONS",Fh=/^i-amphtml-/,Bh=function(){function t(t){this.ampdoc=t;var i=t.getHeadNode();this.Zu=sr(t),this.eo=gr(t),this.th(Wn(i)),this.ih()}var i=t.prototype;return i.th=function(t){t.addGlobalTarget("AMP",this.nh.bind(this)),t.addGlobalMethodHandler("hide",this.rh.bind(this)),t.addGlobalMethodHandler("show",this.eh.bind(this)),t.addGlobalMethodHandler("toggleVisibility",this.sh.bind(this)),t.addGlobalMethodHandler("scrollTo",this.oh.bind(this)),t.addGlobalMethodHandler("focus",this.uh.bind(this)),t.addGlobalMethodHandler("toggleClass",this.hh.bind(this)),t.addGlobalMethodHandler("copy",this.ah.bind(this)),t.addGlobalMethodHandler("toggleChecked",this.fh.bind(this))},i.ih=function(){this.lh()&&this.ampdoc.waitForBodyOpen().then((function(t){var i=t.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.classList.add(i)}))},i.lh=function(){var t,i;try{var n=this.ampdoc.win.localStorage.getItem("amp-dark-mode");if(n)return"yes"===n}catch(t){}return null===(t=(i=this.ampdoc.win).matchMedia)||void 0===t?void 0:t.call(i,"(prefers-color-scheme: dark)").matches},i.nh=function(t){if(!t.satisfiesTrust(2))return null;var i=t.args,n=t.method,r=t.node,e=oi(r);switch(n){case"pushState":case"setState":var s=r.nodeType===Node.DOCUMENT_NODE?r.documentElement:r;return Qn(s).then((function(i){return ti(i,"AMP-BIND is not installed."),i.invoke(t)}));case"navigateTo":return this.dh(t);case"closeOrNavigateTo":return this.mh(t);case"scrollTo":return ti(i.id,"AMP.scrollTo must provide element ID"),t.node=kn(r).getElementById(i.id),this.oh(t);case"goBack":return rr(this.ampdoc).goBack(!(!i||!0!==i.navigate)),null;case"print":return e.print(),null;case"copy":return this.ah(t);case"optoutOfCid":return Zn(this.ampdoc).then((function(t){return t.optOut()})).catch((function(t){Qt().error(Vh,"Failed to opt out of CID",t)}));case"toggleTheme":return this.ph(),null}throw Jt().createError("Unknown AMP action ",n)},i.ah=function(t){var i,n=t.args,r=oi(t.node),e="copy-error";if("AMP"===t.tagOrTarget)i=n.text.trim();else{var s,u=st(t.node);i=(null!==(s=u.value)&&void 0!==s?s:u.textContent).trim()}var o,h,a,c=function(t,i,n){var e={data:{type:i}},s=Ke(r,"".concat(t),e);Wn(n.caller).trigger(n.caller,t,s,3)};null!==(h=(o=r.document).defaultView)&&void 0!==h&&null!==(a=h.navigator)&&void 0!==a&&a.clipboard||Hh(o)?function(t,i,n,r){var e;null!==(e=t.navigator)&&void 0!==e&&e.clipboard?t.navigator.clipboard.writeText(i).then(n,r):Hh(t.document)&&function(t,i){var n,r=!1,e=t.document,s=e.createElement("textarea");Cr(s,{"position":"fixed","top":0,"left":0,"width":"50px","height":"50px","padding":0,"border":"none","outline":"none","background":"transparent"}),s.value=i,s.readOnly=!0,s.contentEditable="true",e.body.appendChild(s),null===(n=t.getSelection())||void 0===n||n.removeAllRanges(),s.focus(),s.setSelectionRange(0,i.length);try{r=e.execCommand("copy")}catch(t){}return Mi(s),r}(t,i)?n():r()}(r,i,(function(){c("copy-success","success",t)}),(function(){c(e,"error",t)})):c(e,"unsupported",t)},i.dh=function(t){var i=this,n=t.args,r=t.caller,e=t.method,s=oi(t.node),u=h();return r.tagName.startsWith("AMP-")&&(u=r.getImpl().then((function(t){"function"==typeof t.throwIfCannotNavigate&&t.throwIfCannotNavigate()}))),u.then((function(){var t;(t=i.ampdoc,In(t,"navigation")).navigateTo(s,n.url,"AMP.".concat(e),{target:n.target,opener:n.opener})}),(function(t){Jt().error(Vh,t)}))},i.ph=function(){var t=this;this.ampdoc.waitForBodyOpen().then((function(i){try{var n=i.getAttribute("data-prefers-dark-mode-class")||"amp-dark-mode";t.lh()?(i.classList.remove(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","no")):(i.classList.add(n),t.ampdoc.win.localStorage.setItem("amp-dark-mode","yes"))}catch(t){}}))},i.mh=function(t){var i=oi(t.node),n=i.parent!=i,r=!1;return i.opener&&this.ampdoc.isSingleDoc()&&!n&&(i.close(),r=i.closed),r?h():this.dh(t)},i.oh=function(t){var i=t.node,n=t.args,r=n&&n.position,e=n&&n.duration;return r&&!["top","bottom","center"].includes(r)&&(r=void 0),J(e)||(e=void 0),this.eo.animateScrollIntoView(i,r,e)},i.uh=function(t){return Ci(t.node),null},i.rh=function(t){var i=t.node;if(i.classList.contains("i-amphtml-element")){var n=i;this.Zu.mutateElement(n,(function(){return n.collapse()}),!0)}else this.Zu.mutateElement(i,(function(){return Nr(i,!1)}));return null},i.eh=function(t){var i=this,n=t.node,r=oi(n);if(n.classList.contains(fe(te)))return Jt().warn(Vh,"Elements with layout=nodisplay cannot be dynamically shown.",n),null;this.Zu.measureElement((function(){"none"!=jr(r,n).display||Gh(n)||Jt().warn(Vh,'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',n)}));var e,s=(e=n).hasAttribute("autofocus")?e:e.querySelector("[autofocus]");return s&&or(r).isIos()?(this.bh(n,s),this.Zu.mutateElement(n,(function(){}))):this.Zu.mutateElement(n,(function(){i.bh(n,s)})),null},i.bh=function(t,i){t.classList.contains("i-amphtml-element")?t.expand():Nr(t,!0),i&&Ci(i)},i.sh=function(t){return Gh(t.node)?this.eh(t):this.rh(t)},i.hh=function(t){var i=t.node,n=t.args,r=Jt().assertString(n.class,"Argument 'class' must be a string.");return Fh.test(r)||this.Zu.mutateElement(i,(function(){if(void 0!==n.force){var t=Jt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");i.classList.toggle(r,t)}else i.classList.toggle(r)})),null},i.fh=function(t){var i=t.node,n=t.args;return this.Zu.mutateElement(i,(function(){if(void 0!==(null==n?void 0:n.force)){var t=Jt().assertBoolean(n.force,"Optional argument 'force' must be a boolean.");i.checked=t}else!0===i.checked?i.checked=!1:i.checked=!0})),null},t}(),qh="Storage",$h=function(){function t(t,i,n){this.ampdoc=t,this.Le=i,this.ds=n,this.gh=n instanceof Kh,this.i=Ss(this.ampdoc.win.location),this.yh=null}var i=t.prototype;return i.wh=function(){return this.Ah(),this},i.get=function(t,i){return this.xh().then((function(n){return n.get(t,i)}))},i.set=function(t,i,n){return Zt("boolean"==typeof i),this.setNonBoolean(t,i,n)},i.setNonBoolean=function(t,i,n){return this.Eh((function(r){return r.set(t,i,n)}))},i.remove=function(t){return this.Eh((function(i){return i.remove(t)}))},i.isViewerStorage=function(){return this.gh},i.xh=function(){return this.yh||(this.yh=this.ds.loadBlob(this.i).then((function(t){return t?at(atob(t)):{}})).catch((function(t){return Qt().expectedError(qh,"Failed to load store: ",t),{}})).then((function(t){return new Wh(t)}))),this.yh},i.Eh=function(t){var i=this;return this.xh().then((function(n){t(n);var r=btoa(JSON.stringify(n.obj));return i.ds.saveBlob(i.i,r)})).then(this.Oh.bind(this))},i.Ah=function(){var t=this;this.Le.onBroadcast((function(i){"amp-storage-reset"==i.type&&i.origin==t.i&&(Qt().fine(qh,"Received reset message"),t.yh=null)}))},i.Oh=function(){Qt().fine(qh,"Broadcasted reset message"),this.Le.broadcast({"type":"amp-storage-reset","origin":this.i})},t}(),Wh=function(){function t(t,i){this.obj=E(t),this.Th=i||8,this.Ph=this.obj.vv||Object.create(null),this.obj.vv||(this.obj.vv=this.Ph)}var i=t.prototype;return i.get=function(t,i){var n=this.Ph[t],r=n?n.t:void 0,e=!i||null==r||r+i>Date.now();return n&&e?n.v:void 0},i.set=function(t,i,n){if(Zt("__proto__"!=t&&"prototype"!=t),void 0!==this.Ph[t]){var r=this.Ph[t],e=Date.now();n&&(e=r.t),r.v=i,r.t=e}else this.Ph[t]={"v":i,"t":Date.now()};var s=Object.keys(this.Ph);if(s.length>this.Th){for(var u=1/0,o=null,h=0;h<s.length;h++){var a=this.Ph[s[h]];a.t<u&&(o=s[h],u=a.t)}o&&delete this.Ph[o]}},i.remove=function(t){delete this.Ph[t]},t}(),Yh=function(){function t(t){if(this.win=t,this.Ih=this.Sh(),!this.Ih){var i=new Error("localStorage not supported.");Qt().expectedError(qh,i)}}var i=t.prototype;return i.Sh=function(){try{return"localStorage"in this.win&&(this.win.localStorage.getItem("test"),!0)}catch(t){return!1}},i.Mh=function(t){return"amp-store:".concat(t)},i.loadBlob=function(t){var i=this;return new Promise((function(n){i.Ih?n(i.win.localStorage.getItem(i.Mh(t))):n(null)}))},i.saveBlob=function(t,i){var n=this;return new Promise((function(r){n.Ih?(n.win.localStorage.setItem(n.Mh(t),i),r()):r()}))},t}(),Kh=function(){function t(t){this.Le=t}var i=t.prototype;return i.loadBlob=function(t){return this.Le.sendMessageAwaitResponse("loadStore",{"origin":t}).then((function(t){return t.blob}))},i.saveBlob=function(t,i){return this.Le.sendMessageAwaitResponse("saveStore",{"origin":t,"blob":i}).catch((function(t){throw Qt().createExpectedError(qh,"Failed to save store: ",t)}))},t}(),Jh="__AMP_IMPL_",Xh=function(){},Qh=function(){function t(t){this.Ni=t,this.Rh={},this._h={}}var i=t.prototype;return i.whenReady=function(t){return this.kh(t).then(Xh)},i.setHtmlForTemplate=function(t,i){var n=this;return this.kh(t).then((function(t){return n.Nh(t,i)}))},i.renderTemplate=function(t,i){var n=this;return this.kh(t).then((function(t){return n.Ch(t,i)}))},i.renderTemplateAsString=function(t,i){return this.kh(t).then((function(t){return t.renderAsString(i)}))},i.getTemplateRenderer=function(t){return this.kh(t).then((function(t){return{renderAsString:function(i){return t.renderAsString(i)}}}))},i.renderTemplateArray=function(t,i){var n=this;return 0==i.length?Promise.resolve([]):this.kh(t).then((function(t){return i.map((function(i){return n.Ch(t,i)}))}))},i.findAndRenderTemplate=function(t,i,n){return this.renderTemplate(this.findTemplate(t,n),i)},i.findAndSetHtmlForTemplate=function(t,i,n){return this.setHtmlForTemplate(this.findTemplate(t,n),i)},i.findAndRenderTemplateArray=function(t,i,n){return this.renderTemplateArray(this.findTemplate(t,n),i)},i.hasTemplate=function(t,i){return!!this.maybeFindTemplate(t,i)},i.findTemplate=function(t,i){var n=this.maybeFindTemplate(t,i);ti(n,"Template not found for %s",t);var r=n.tagName;return ti("TEMPLATE"==r||"SCRIPT"==r&&"text/plain"===n.getAttribute("type"),'Template must be defined in a <template> or <script type="text/plain"> tag'),n},i.maybeFindTemplate=function(t,i){var n=t.getAttribute("template");return n?_i(t).getElementById(n):i?pi(t,i):t.querySelector('template[type], script[type="text/plain"]')},i.kh=function(t){var i=this,n=t[Jh];if(n)return Promise.resolve(n);var r="",e=t.tagName;"TEMPLATE"==e?r=t.getAttribute("type"):"SCRIPT"==e&&(r=t.getAttribute("template")),ti(r,"Type must be specified: %s",t);var s=t.__AMP_WAIT_;return s||(s=this.jh(t,r).then((function(n){var r=n,e=t[Jh]=new r(t,i.Ni.win);return delete t.__AMP_WAIT_,e})),t.__AMP_WAIT_=s,s)},i.jh=function(t,i){if(this.Rh[i])return this.Rh[i];var n=new a,r=n.promise,e=n.resolve;return this.Rh[i]=r,this._h[i]=e,r},i.Dh=function(t,i){if(this.Rh[t]){var n=this._h[t];ti(n,"Duplicate template type: %s",t),delete this._h[t],n(i)}else this.Rh[t]=Promise.resolve(i)},i.Ch=function(t,i){return t.render(i)},i.Nh=function(t,i){return t.setHtml(i)},t}(),Zh=function(){function t(t){this.win=t,this.Uh=this.win.Promise.resolve(),this.zh=0,this.Lh={},this.Hh=Date.now()}var i=t.prototype;return i.timeSinceStart=function(){return Date.now()-this.Hh},i.delay=function(t,i){var n=this;if(!i){var r="p"+this.zh++;return this.Uh.then((function(){n.Lh[r]?delete n.Lh[r]:t()})).catch(Us),r}return this.win.setTimeout((function(){try{t()}catch(t){throw Us(t),t}}),i)},i.cancel=function(t){"string"!=typeof t?this.win.clearTimeout(t):this.Lh[t]=!0},i.promise=function(t){var i=this;return new this.win.Promise((function(n){if(-1==i.delay(n,t))throw new Error("Failed to schedule timer.")}))},i.timeoutPromise=function(t,i,n){var r,e=this,s=new this.win.Promise((function(i,s){if(-1==(r=e.delay((function(){s(Jt().createError(n||"timeout"))}),t)))throw new Error("Failed to schedule timer.")}));if(!i)return s;var u=function(){e.cancel(r)};return i.then(u,u),this.win.Promise.race([s,i])},i.poll=function(t,i){var n=this;return new this.win.Promise((function(r){var e=n.win.setInterval((function(){i()&&(n.win.clearInterval(e),r())}),t)}))},t}();function ta(t){En(t,"timer",Zh)}var ia=function(){function t(t){var i=t.getRootNode(),n=i.ownerDocument||i;this.Gh=n.createElement("a"),this.yr=new fs(100)}var i=t.prototype;return i.parse=function(t,i){return ps(this.Gh,t,i?null:this.yr)},i.Vh=function(t){return"string"!=typeof t?t:this.parse(t)},i.isProtocolValid=function(t){return Os(t)},i.getSourceOrigin=function(t){return Ss(this.Vh(t))},i.getSourceUrl=function(t){return Ms(this.Vh(t))},i.resolveRelativeUrl=function(t,i){return Rs(t,this.Vh(i))},i.assertHttpsUrl=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"source";return xs(t,i,n)},i.assertAbsoluteHttpOrHttpsUrl=function(t){return function(t){return ti(/^https?\:/i.test(t),'URL must start with "http://" or "https://". Invalid value: %s',t),ms(t).href}(t)},i.isProxyOrigin=function(t){return Ps(this.Vh(t))},i.isSecure=function(t){return As(this.Vh(t))},i.getWinOrigin=function(t){return t.origin||this.Vh(t.location.href).origin},i.getCdnUrlOnOrigin=function(t){if(Ps(t))return t;var i=this.Vh(t),n=i.hash,r=i.host,e=i.pathname,s=i.search,u=encodeURIComponent(r);return"".concat(Tt,"/c/").concat(u).concat(e).concat(s).concat(n)},t}(),na="Expander",ra=function(){function t(t,i,n,r,e,s){this.Fh=t,this.Bh=i,this.qh=n,this.$h=r,this.we=e,this.Wh=!s}var i=t.prototype;return i.expand=function(t){if(!t.length)return this.$h?t:Promise.resolve(t);var i=this.Fh.getExpr(this.Bh,this.we),n=this.Kh(t,i);return n.length?this.Yh(t,n):this.$h?t:Promise.resolve(t)},i.getMacroNames=function(t){var i=this.Fh.getExpr(this.Bh,this.we);return t.match(i)||[]},i.Kh=function(t,i){var n=[];return t.replace(i,(function(t,i,r){var e=t.length,s={start:r,stop:e+r-1,name:i,length:e};n.push(s)})),n},i.Yh=function(t,i){var n=this,r=[],e=0,s=0,u=i[s],o=0,h=!1;return function a(c){for(var f,l="",v=[],m=[];e<t.length&&s<=i.length;){var p,g=l.trim();if(u&&e===u.start)g&&v.push(o?(f=l).trimStart?f.trimStart():(f+"_").trim().slice(0,-1):l),p=n.Bh&&x(n.Bh,u.name)?{name:u.name,prioritized:n.Bh[u.name],encode:c}:D(D({},n.Fh.get(u.name)),{},{name:u.name,encode:c}),e=u.stop+1,u=i[++s],"("===t[e]?(e++,o++,r.push(p),v.push(a(!1))):v.push(n.Jh(p)),l="";else if("`"===t[e])h?(h=!1,l.length&&v.push(l)):(h=!0,g&&v.push(g)),l="",e++;else if(o&&","===t[e]&&!h)g&&v.push(g),m.push(v),v=[],","===t[e+1]&&(m.push([""]),e++),l="",e++;else{if(o&&")"===t[e]&&!h){e++,o--;var b=r.pop();return g&&v.push(g),m.push(v),n.Jh(b,m)}l+=t[e],e++}e===t.length&&l.length&&v.push(l)}return n.$h?v.join(""):Promise.all(v).then((function(t){return t.join("")})).catch((function(t){return d(t),""}))}(this.Wh)},i.Jh=function(t,i){var n,r=t.encode,e=t.name;if(null!=t.prioritized?n=t.prioritized:this.$h&&null!=t.sync?n=t.sync:this.$h?(Jt().error(na,"ignoring async replacement key: ",t.name),n=""):n=t.async||t.sync,this.$h){var s=this.Xh(n,e,i);return r?encodeURIComponent(s):s}return this.Qh(n,e,i).then((function(t){return r?encodeURIComponent(t):t}))},i.Qh=function(t,i,n){var r,e=this;try{if("function"==typeof t){var s=t;r=n?this.Zh(n).then((function(t){return s.apply(null,t)})):c(s)}else r=Promise.resolve(t);return r.then((function(t){return e.ta(i,t,n),null==t?"":t})).catch((function(t){return d(t),e.ta(i,"",n),Promise.resolve("")}))}catch(t){return d(t),this.ta(i,"",n),Promise.resolve("")}},i.Zh=function(t){return Promise.all(t.map((function(t){return Promise.all(t).then((function(t){return t.join("")}))})))},i.Xh=function(t,i,n){try{var r,e=t;return"function"==typeof t&&(e=t.apply(null,this.ia(n))),e&&"function"==typeof e.then?(Jt().error(na,"ignoring async macro resolution"),r=""):"string"==typeof e||"number"==typeof e||"boolean"==typeof e?(this.ta(i,e,n),r=e.toString()):(this.ta(i,"",n),r=""),r}catch(t){return d(t),this.ta(i,"",n),""}},i.ia=function(t){return t?t.map((function(t){return t.join("")})):t},i.ta=function(t,i,n){if(this.qh){var r="";if(n){var e=n.filter((function(t){return""!==t})).join(",");r="(".concat(e,")")}this.qh["".concat(t).concat(r)]=i||""}},t}(),ea={"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 sa(t,i,n){var r,e=ea[i]||3,s=n?ea[n]||3:e,u=Math.max(e,s);if(1===u)r=h();else if(2===u)r=mn(t.document);else if(3===u)r=Ze(t);else if(4===u){var o=fr(t);r=Ze(t).then((function(){return o.promise(1)}))}return Zt(r),r.then((function(){return ua(t,i,n)}))}function ua(t,i,n){var r=t.performance&&t.performance.timing;if(r&&0!=r.navigationStart){var e=void 0===n?r[i]:r[n]-r[i];return!J(e)||e<0?void 0:e}}function oa(t,i){var n=t.performance&&t.performance.navigation;if(n&&void 0!==n[i])return n[i]}var ha="UrlReplacements";function aa(t){return function(){return(new Date)[t]()}}function ca(t,i){return function(){return t[i]}}function fa(t,i){return i?(ti("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 la=function(t){U(n,t);var i=H(n);function n(t){var n;return(n=i.call(this,t)).na=null,n.ra={},n}var r=n.prototype;return r.ea=function(t,i,n){var r=this;return this.setBoth(t,(function(){return ua(r.ampdoc.win,i,n)}),(function(){return sa(r.ampdoc.win,i,n)}))},r.initialize=function(){var t=this,i=this.ampdoc.win,n=this.ampdoc.getHeadNode(),r=gr(this.ampdoc);vr(this.ampdoc).then((function(i){t.na=i})),this.set("RANDOM",(function(){return Math.random()}));var e=Object.create(null);this.set("COUNTER",(function(t){return e[t]=1+(0|e[t])})),this.set("CANONICAL_URL",(function(){return t.sa().canonicalUrl})),this.set("CANONICAL_HOST",(function(){return ms(t.sa().canonicalUrl).host})),this.set("CANONICAL_HOSTNAME",(function(){return ms(t.sa().canonicalUrl).hostname})),this.set("CANONICAL_PATH",(function(){return ms(t.sa().canonicalUrl).pathname})),this.setAsync("DOCUMENT_REFERRER",(function(){return mr(t.ampdoc).getReferrerUrl()})),this.setAsync("EXTERNAL_REFERRER",(function(){return mr(t.ampdoc).getReferrerUrl().then((function(t){return t?ms(Ms(t)).hostname===Gr.getHostname(i)?null:t:null}))})),this.set("TITLE",(function(){var t=i.document;return t.originalTitle||t.title})),this.set("AMPDOC_URL",(function(){return Es(t.oa(i.location.href))})),this.set("AMPDOC_HOST",(function(){var t=ms(i.location.href);return t&&t.host})),this.set("AMPDOC_HOSTNAME",(function(){var t=ms(i.location.href);return t&&t.hostname}));var s=function(){var i=t.sa();return Es(t.oa(i.sourceUrl))};this.setBoth("SOURCE_URL",(function(){return s()}),(function(){return xh().then((function(){return s()}))})),this.set("SOURCE_HOST",(function(){return ms(t.sa().sourceUrl).host})),this.set("SOURCE_HOSTNAME",(function(){return ms(t.sa().sourceUrl).hostname})),this.set("SOURCE_PATH",(function(){return ms(t.sa().sourceUrl).pathname})),this.set("PAGE_VIEW_ID",(function(){return t.sa().pageViewId})),this.setAsync("PAGE_VIEW_ID_64",(function(){return t.sa().pageViewId64})),this.setBoth("QUERY_PARAM",(function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.ua(i,n)}),(function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return xh().then((function(){return t.ua(i,n)}))})),this.set("FRAGMENT_PARAM",(function(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.ha(i,n)}));var u=null;this.setBoth("CLIENT_ID",(function(t){return u?u[t]:null}),(function(i,r,e,s){ti(i,"The first argument to CLIENT_ID, the fallback Cookie name, is required");var o=h();return r&&(o=function(t){return Vn(t,"userNotificationManager","amp-user-notification")}(n).then((function(t){return t.get(r)}))),Zn(t.ampdoc).then((function(t){return s="true"==s,t.get({scope:i,createCookieIfNotPresent:!0,cookieName:e||void 0,disableBackup:s},o)})).then((function(t){return u||(u=Object.create(null)),t&&"_ga"==(e||i)&&("string"==typeof t?t=t.replace(/^(GA1|1)\.[\d-]+\./,""):Qt().error(ha,"non-string cid, what is it?",Object.keys(t))),u[i]=t,t}))})),this.setAsync("VARIANT",(function(i){return t.aa((function(t){var n=t[i];return ti(void 0!==n,"The value passed to VARIANT() is not a valid experiment in <amp-experiment>:"+i),null===n?"none":n}),"VARIANT")})),this.setAsync("VARIANTS",(function(){return t.aa((function(t){var i=[];for(var n in t){var r=t[n];i.push(n+"."+(r||"none"))}return i.join("!")}),"VARIANTS")})),this.setBoth("AMP_GEO",(function(i){return fa(t.na,i)}),(function(i){return t.ca((function(t){return fa(t,i)}),"AMP_GEO")})),this.set("TIMESTAMP",aa("getTime")),this.set("TIMESTAMP_ISO",aa("toISOString")),this.set("TIMEZONE",aa("getTimezoneOffset")),this.set("SCROLL_HEIGHT",(function(){return r.getScrollHeight()})),this.set("SCROLL_WIDTH",(function(){return r.getScrollWidth()})),this.set("VIEWPORT_HEIGHT",(function(){return r.getHeight()})),this.set("VIEWPORT_WIDTH",(function(){return r.getWidth()}));var o=i.screen;this.set("SCREEN_WIDTH",ca(o,"width")),this.set("SCREEN_HEIGHT",ca(o,"height")),this.set("AVAILABLE_SCREEN_HEIGHT",ca(o,"availHeight")),this.set("AVAILABLE_SCREEN_WIDTH",ca(o,"availWidth")),this.set("SCREEN_COLOR_DEPTH",ca(o,"colorDepth")),this.set("DOCUMENT_CHARSET",(function(){var t=i.document;return t.characterSet||t.charset})),this.set("BROWSER_LANGUAGE",(function(){var t=i.navigator;return(t.language||t.userLanguage||t.browserLanguage||"").toLowerCase()})),this.set("USER_AGENT",(function(){return i.navigator.userAgent})),this.setBoth("UACH",(function(i){var n;return null!==(n=t.ra[i])&&void 0!==n?n:""}),(function(n){return t.fa(n,i)})),this.ea("PAGE_LOAD_TIME","navigationStart","loadEventStart"),this.ea("DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd"),this.ea("TCP_CONNECT_TIME","connectStart","connectEnd"),this.ea("SERVER_RESPONSE_TIME","requestStart","responseStart"),this.ea("PAGE_DOWNLOAD_TIME","responseStart","responseEnd"),this.ea("REDIRECT_TIME","navigationStart","fetchStart"),this.ea("DOM_INTERACTIVE_TIME","navigationStart","domInteractive"),this.ea("CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart"),this.setAsync("ACCESS_READER_ID",(function(){return t.la((function(t){return t.getAccessReaderId()}),"ACCESS_READER_ID")})),this.setAsync("AUTHDATA",(function(i){return ti(i,"The first argument to AUTHDATA, the field, is required"),t.la((function(t){return t.getAuthdataField(i)}),"AUTHDATA")})),this.setAsync("VIEWER",(function(){return mr(t.ampdoc).getViewerOrigin().then((function(t){return null==t?"":t}))})),this.setAsync("TOTAL_ENGAGED_TIME",(function(){return Yn(n).then((function(t){return t.getTotalEngagedTime()}))})),this.setAsync("INCREMENTAL_ENGAGED_TIME",(function(t,i){return Yn(n).then((function(n){return n.getIncrementalEngagedTime(t,"false"!==i)}))})),this.set("NAV_TIMING",(function(t,n){return ti(t,"The first argument to NAV_TIMING, the start attribute name, is required"),ua(i,t,n)})),this.setAsync("NAV_TIMING",(function(t,n){return ti(t,"The first argument to NAV_TIMING, the start attribute name, is required"),sa(i,t,n)})),this.set("NAV_TYPE",(function(){return oa(i,"type")})),this.set("NAV_REDIRECT_COUNT",(function(){return oa(i,"redirectCount")})),this.set("AMP_VERSION",(function(){return"2502242315000"})),this.set("BACKGROUND_STATE",(function(){return t.ampdoc.isVisible()?"0":"1"})),this.setAsync("VIDEO_STATE",(function(i,n){return(r=t.ampdoc,In(r,"video-manager")).getVideoStateProperty(i,n);var r})),this.setAsync("AMP_STATE",(function(i){var n=t.ampdoc.getRootNode(),r=n.documentElement||n;return Qn(r).then((function(t){return t&&t.getStateValue(i)||""}))}))},r.oa=function(t){var i=this.sa().replaceParams;return i?function(t,i){for(var n=yt(ms(t).search),r={},e=Object.keys(i),s=0;s<e.length;s++)x(n,e[s])||(r[e[s]]=i[e[s]]);return ys(t,r)}(Is(t),i):t},r.sa=function(){return ir(this.ampdoc)},r.la=function(t,i){var n=this.ampdoc.getHeadNode();return Promise.all([qn(n),$n(n)]).then((function(n){var r=n[0],e=n[1],s=r||e;return s?r&&e?t(e)||t(r):t(s):(Jt().error(ha,"Access or subsciptions service is not installed to access: ",i),null)}))},r.ua=function(t,i){ti(t,"The first argument to QUERY_PARAM, the query string param is required");var n=yt(ms(Is(this.ampdoc.win.location.href)).search),r=this.sa().replaceParams;return void 0!==n[t]?n[t]:r&&void 0!==r[t]?r[t]:i},r.ha=function(t,i){ti(t,"The first argument to FRAGMENT_PARAM, the fragment string param is required"),ti("string"==typeof t,"param should be a string");var n=wt(this.ampdoc.win);return void 0===n[t]?i:n[t]},r.aa=function(t,i){return(n=this.ampdoc.getHeadNode(),Fn(n,"variant","amp-experiment",!0)).then((function(t){return ti(t,"To use variable %s, amp-experiment should be configured",i),t.getVariants()})).then((function(i){return t(i)}));var n},r.ca=function(t,i){var n=this;return null!==this.na?t(this.na):vr(this.ampdoc.getHeadNode()).then((function(r){return ti(r,"To use variable %s, amp-geo should be configured",i),n.na=r,t(r)}))},r.fa=function(t,i){var n,r,e,s=this;return t in this.ra?Promise.resolve(this.ra[t]):(null===(n=i.navigator)||void 0===n||null===(r=n.userAgentData)||void 0===r||null===(e=r.getHighEntropyValues([t]))||void 0===e?void 0:e.then((function(i){var n="object"!==p(i[t])?i[t]:JSON.stringify(i[t]);return s.ra[t]=n,n})))||Promise.resolve("")},n}(function(){function t(t){this.ampdoc=t,this.va=Object.create(null),this.da=!1,this.ma()}var i=t.prototype;return i.ie=function(){this.initialize(),this.da=!0},i.initialize=function(){},i.get=function(t){return this.da||this.ie(),this.va[t]},i.set=function(t,i){return Zt(-1==t.indexOf("RETURN")),this.va[t]=this.va[t]||{sync:void 0,async:void 0},this.va[t].sync=i,this},i.setAsync=function(t,i){return Zt(-1==t.indexOf("RETURN")),this.va[t]=this.va[t]||{sync:void 0,async:void 0},this.va[t].async=i,this},i.setBoth=function(t,i,n){return this.set(t,i).setAsync(t,n)},i.getExpr=function(t,i){this.da||this.ie();var n=D(D({},this.va),t);return this.pa(Object.keys(n),i)},i.pa=function(t,i){var n=this;if(this.ma()&&(t=t.filter((function(t){return n.ma().includes(t)}))),i&&(t=t.filter((function(t){return i[t]}))),0===t.length)return/_^/g;t.sort((function(t,i){return i.length-t.length}));var r=t.map((function(t){return"$"===t[0]?"\\"+t:t})).join("|");return new RegExp("\\$?("+r+")","g")},i.ma=function(){return this.ba?this.ba:this.ampdoc.isSingleDoc()&&zu(this.ampdoc.getRootNode())?(this.ba=[""],this.ba):void 0},t}()),va=function(){function t(t,i){this.ampdoc=t,this.Fh=i}var i=t.prototype;return i.expandStringSync=function(t,i,n){return new ra(this.Fh,i,void 0,!0,n,!0).expand(t)},i.expandStringAsync=function(t,i,n){return new ra(this.Fh,i,void 0,void 0,n,!0).expand(t)},i.expandUrlSync=function(t,i,n){return this.ga(t,new ra(this.Fh,i,void 0,!0,n).expand(t))},i.expandUrlAsync=function(t,i,n,r){var e=this;return new ra(this.Fh,i,void 0,void 0,n,r).expand(t).then((function(i){return e.ga(t,i)}))},i.expandInputValueAsync=function(t){return this.ya(t,!1)},i.expandInputValueSync=function(t){return this.ya(t,!0)},i.ya=function(t,i){Zt("INPUT"==t.tagName&&"hidden"==(t.getAttribute("type")||"").toLowerCase());var n=this.wa(t);if(!n)return i?t.value:Promise.resolve(t.value);void 0===t["amp-original-value"]&&(t["amp-original-value"]=t.value);var r=new ra(this.Fh,void 0,void 0,i,n).expand(t["amp-original-value"]||t.value);return i?t.value=r:r.then((function(i){return t.value=i,i}))},i.wa=function(t,i){var n=t.getAttribute("data-amp-replace");if(n){var r={};return n.trim().split(/\s+/).forEach((function(t){!i||x(i,t)?r[t]=!0:Jt().warn("URL","Ignoring unsupported replacement",t)})),r}},i.mn=function(t){var i=ir(this.ampdoc);if(t.origin==ms(i.canonicalUrl).origin||t.origin==ms(i.sourceUrl).origin)return!0;var n=this.ampdoc.getMetaByName("amp-link-variable-allowed-origin");if(n)for(var r=n.trim().split(/\s+/),e=0;e<r.length;e++)if(t.origin==ms(r[e]).origin)return!0;return!1},i.maybeExpandLink=function(t,i){Zt("A"==t.tagName);var n=t,r=n.getAttribute("data-amp-addparams")||"",e=this.wa(n,{"CLIENT_ID":!0,"QUERY_PARAM":!0,"PAGE_VIEW_ID":!0,"PAGE_VIEW_ID_64":!0,"NAV_TIMING":!0});if(e||r||i){var s=n["amp-original-href"]||n.getAttribute("href"),u=ms(s);null==n["amp-original-href"]&&(n["amp-original-href"]=s);var o=this.mn(u);return r&&(s=ys(s,yt(r=o?this.Aa(r,e):r))),o?(i&&(e&&e.QUERY_PARAM||(i=this.expandUrlSync(i,void 0,{"QUERY_PARAM":!0})),s=ys(s,yt(i))),s=this.Aa(s,e),n.href=s):(e&&Jt().warn("URL","Ignoring link replacement %s because the link does not go to the document's source, canonical, or allowlisted origin.",s),n.href=s)}},i.Aa=function(t,i){return i?this.expandUrlSync(t,void 0,i):t},i.collectVars=function(t,i){var n=Object.create(null);return new ra(this.Fh,i,n).expand(t).then((function(){return n}))},i.collectDisallowedVarsSync=function(t){var i=t.getAttribute("src"),n=new ra(this.Fh).getMacroNames(i),r=this.wa(t);return r?n.filter((function(t){return!r[t]})):n},i.ga=function(t,i){return ms(i,!0).protocol!=ms(t,!0).protocol?(Jt().error(ha,"Illegal replacement of the protocol: ",t),t):(ti(Os(i),"The replacement url has invalid protocol: %s",i),i)},i.getVariableSource=function(){return this.Fh},t}(),da="Viewer",ma=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i,pa=function(){function t(t){var i=this;this.ampdoc=t,this.win=t.win,this.mo=Ni(this.win),this.Qo=!0,this.xa=!1,this.Ea=A(),this.Oa=A(),this.Ta=new Or,this.Pa=new Or,this.Ia=null,this.Sa=null,this.Ma=[],this.Ra=A(),this._a=A(),t.isSingleDoc()&&Object.assign(this._a,yt(this.win.location.hash)),this.Qo=!parseInt(t.getParam("off"),10),Qt().fine(da,"- runtimeOn:",this.Qo),this.xa=!(!parseInt(t.getParam("history"),10)&&!this.xa),Qt().fine(da,"- history:",this.xa),Qt().fine(da,"- visibilityState:",this.ampdoc.getVisibilityState()),this.ka=null,this.Na=Ps(ms(this.ampdoc.win.location.href));var n=new a;this.Ca=n.resolve,this.ja=this.Da(n.promise),this.Eo=null,this.Ua=null;var r=t.getParam("referrer");if(this.za=this.isEmbedded()&&null!=r&&!1!==this.La()?r:this.win.document.referrer,this.Ha=new Promise((function(n){i.isEmbedded()&&null!=t.getParam("referrer")?i.isTrustedViewer().then((function(r){r?n(t.getParam("referrer")):(n(i.win.document.referrer),i.za!=i.win.document.referrer&&(Qt().expectedError(da,"Untrusted viewer referrer override: "+i.za+" at "+i.Sa),i.za=i.win.document.referrer))})):n(i.win.document.referrer)})),this.Ga=Es(this.win.location.href||""),this.Va=new Promise((function(n){var r=t.getParam("viewerUrl");i.isEmbedded()&&r?i.isTrustedViewer().then((function(t){t?i.Ga=Zt(r):Qt().expectedError(da,"Untrusted viewer url override: "+r+" at "+i.Sa),n(i.Ga)})):n(i.Ga)})),this._a.click){var e=Es(this.win.location.href);e!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.propertyIsEnumerable({},"",e),delete this._a.click,Qt().fine(da,"replace fragment:"+this.win.location.href))}this.ampdoc.whenFirstVisible().then((function(){i.maybeUpdateFragmentForCct()})),this.ampdoc.isSingleDoc()&&this.Fa()}var i=t.prototype;return i.Da=function(t){if(!(this.mo&&!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;var i="initMessagingChannel timeout";return fr(this.win).timeoutPromise(2e4,t,i).catch((function(t){var n=ga(t);throw n&&W(n.message,i)&&(n=Qt().createExpectedError(n)),Us(n),n}))},i.getAmpDoc=function(){return this.ampdoc},i.getParam=function(t){return this.ampdoc.getParam(t)},i.hasCapability=function(t){var i=this.ampdoc.getParam("cap");return!!i&&-1!=i.split(",").indexOf(t)},i.isEmbedded=function(){return!!this.ja},i.isWebviewEmbedded=function(){return!this.mo&&"1"==this.ampdoc.getParam("webview")},i.isCctEmbedded=function(){if(null!=this.ka)return this.ka;if(this.ka=!1,!this.mo){var t=yt(this.win.location.search);this.ka="1"===t.amp_gsa&&(t.amp_js_v||"").startsWith("a")}return this.ka},i.isProxyOrigin=function(){return this.Na},i.maybeUpdateFragmentForCct=function(){if(this.isCctEmbedded()&&this.win.history.replaceState){var t=Ss(this.win.location.href),i=ir(this.ampdoc).canonicalUrl,n=Ss(i);this.Ba(t,n)&&(this._a.ampshare=i,this.win.history.propertyIsEnumerable({},"","#"+ws(this._a)))}},i.Ba=function(t,i){var n=function(t){return t.split(".").length>2?t.replace(ma,"$1"):t};return n(t)==n(i)},i.isRuntimeOn=function(){return this.Qo},i.toggleRuntime=function(){this.Qo=!this.Qo,Qt().fine(da,"Runtime state:",this.Qo),this.Ta.fire(this.Qo)},i.onRuntimeState=function(t){return this.Ta.add(t)},i.isOvertakeHistory=function(){return this.xa},i.getVisibilityState=function(){return this.ampdoc.getVisibilityState()},i.isVisible=function(){return this.ampdoc.isVisible()},i.hasBeenVisible=function(){return this.ampdoc.hasBeenVisible()},i.whenFirstVisible=function(){return this.ampdoc.whenFirstVisible()},i.whenNextVisible=function(){return this.ampdoc.whenNextVisible()},i.getFirstVisibleTime=function(){return this.ampdoc.getFirstVisibleTime()},i.getLastVisibleTime=function(){return this.ampdoc.getLastVisibleTime()},i.onVisibilityChanged=function(t){return this.ampdoc.onVisibilityChanged(t)},i.qa=function(t){var i;t&&(Zt("prerender"===(i=t)||"preview"===i||"visible"===i||"hidden"===i||"paused"===i||"inactive"===i),t===xr&&(t=null!=this.ampdoc.getLastVisibleTime()?Pr:yr),this.ampdoc.overrideVisibilityState(t),Qt().fine(da,"visibilitychange event:",this.ampdoc.getVisibilityState()))},i.getResolvedViewerUrl=function(){return this.Ga},i.getViewerUrl=function(){return this.Va},i.maybeGetMessagingOrigin=function(){return this.Sa},i.getUnconfirmedReferrerUrl=function(){return this.za},i.getReferrerUrl=function(){return this.Ha},i.isTrustedViewer=function(){var t=this;if(!this.Eo){var i=this.La();this.Eo=void 0!==i?Promise.resolve(i):this.ja.then((function(i){return!!i&&t.$a(i)}))}return this.Eo},i.La=function(){return!!this.isEmbedded()&&(!this.win.location.ancestorOrigins||this.isWebviewEmbedded()||this.isCctEmbedded()?void 0:this.win.location.ancestorOrigins.length>0&&this.$a(this.win.location.ancestorOrigins[0]))},i.getViewerOrigin=function(){var t;return this.Ua||(this.isEmbedded()?this.win.location.ancestorOrigins&&this.win.location.ancestorOrigins.length>0&&(t=this.win.location.ancestorOrigins[0]):t="",this.Ua=void 0!==t?Promise.resolve(t):fr(this.win).timeoutPromise(1e3,this.ja).catch((function(){return""}))),this.Ua},i.$a=function(t){var i=ms(t),n=i.protocol;return"x-thread:"==n||"https:"==n&&kt.some((function(t){return t.test(i.hostname)}))},i.onMessage=function(t,i){var n=this.Ea[t];n||(n=new Or,this.Ea[t]=n);var r=n.add(i);return this.Ra[t]&&(this.Ra[t].forEach((function(t){n.fire(t.data),t.deferred.resolve()})),this.Ra[t]=[]),r},i.onMessageRespond=function(t,i){var n=this;return this.Oa[t]=i,this.Ra[t]&&(this.Ra[t].forEach((function(t){t.deferred.resolve(i(t.data))})),this.Ra[t]=[]),function(){n.Oa[t]===i&&delete n.Oa[t]}},i.receiveMessage=function(t,i,n){if("visibilitychange"==t)return this.qa(i.state),h();if("broadcast"==t)return this.Pa.fire(i),h();var r=this.Ea[t],e=this.Oa[t];if(!r&&!e){if(this.Ra[t]=this.Ra[t]||[],this.Ra[t].length>=50)return;var s=new a;return this.Ra[t].push({data:i,deferred:s}),s.promise}return r&&r.fire(i),e?e(i):r?h():void 0},i.setMessageDeliverer=function(t,i){var n=this;if(this.Ia)throw new Error("message channel can only be initialized once");if(null==i)throw new Error("message channel must have an origin");if(Qt().fine(da,"message channel established with origin: ",i),this.Ia=t,this.Sa=i,this.Ca(i),this.Ma.length>0){var r=this.Ma.slice(0);this.Ma=[],r.forEach((function(t){var i=n.Ia(t.eventType,t.data,t.awaitResponse);t.awaitResponse&&t.responseResolver(i)}))}},i.maybeGetMessageDeliverer=function(){return this.Ia},i.sendMessage=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.st(t,i,n,!1)},i.sendMessageAwaitResponse=function(t,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.st(t,i,n,!0)},i.st=function(t,i,n,r){var e=this;if(this.Ia)return c((function(){return e.Ia(t,i,r)}));if(!this.ja)return r?Promise.reject(ga()):h();if(!n)return this.ja.then((function(){return e.Ia(t,i,r)}));var s,u=q(this.Ma,(function(i){return i.eventType==t}));if(-1!=u)(s=this.Ma.splice(u,1)[0]).data=i,s.awaitResponse=s.awaitResponse||r;else{var o=new a,f=o.promise,l=o.resolve;s={eventType:t,data:i,awaitResponse:r,responsePromise:f,responseResolver:l}}return this.Ma.push(s),s.responsePromise},i.broadcast=function(t){return this.ja?this.st("broadcast",t,!1,!1).then((function(){return!0}),(function(){return!1})):Promise.resolve(!1)},i.onBroadcast=function(t){return this.Pa.add(t)},i.whenMessagingReady=function(){return this.ja},i.replaceUrl=function(t){if(t&&this.ampdoc.isSingleDoc()&&this.win.history.replaceState)try{var i=ms(this.win.location.href),n=ms(Es(t)+this.win.location.hash);i.origin==n.origin&&Ss(i)==Ss(n)&&(this.win.history.propertyIsEnumerable({},"",n.href),this.win.location.originalHref=i.href,Qt().fine(da,"replace url:"+n.href))}catch(t){Qt().error(da,"replaceUrl failed",t)}},i.Fa=function(){var t=this;if(this.ampdoc.getVisibilityState()!=Ar){var i=[],n=function(){return i.forEach((function(t){return t()}))},r=function(){t.qa(Ar),n(),Qt().expectedError(da,"Received user action in non-visible doc")},e={capture:!0,passive:!0};i.push(Je(this.win,"keydown",r,e),Je(this.win,"touchstart",r,e),Je(this.win,"mousedown",r,e)),this.whenFirstVisible().then(n)}},t}();function ga(t){var i;return t instanceof Error?((t=f(t)).message="No messaging channel: "+t.message,i=t):i=new Error("No messaging channel: "+t),i.message=it(i.message),i}function ba(t,i){return function(n){return t+(i-t)*n}}function ya(t,i,n){return et(i<=n),Math.min(Math.max(t,i),n)}var wa=function(){function t(){}return t.solveYValueFromXValue=function(i,n,r,e,s,u,o,h,a){return t.Wa(t.Ka(i,n,e,u,h),r,s,o,a)},t.Ka=function(i,n,r,e,s){var u=1e-6,o=(i-n)/(s-n);if(o<=0)return 0;if(o>=1)return 1;for(var h=0,a=1,c=0,f=0;f<8;f++){c=t.Ya(o,n,r,e,s);var l=(t.Ya(o+u,n,r,e,s)-c)/u;if(Math.abs(c-i)<u)return o;if(Math.abs(l)<u)break;c<i?h=o:a=o,o-=(c-i)/l}for(var v=0;Math.abs(c-i)>u&&v<8;v++)c<i?(h=o,o=(o+a)/2):(a=o,o=(o+h)/2),c=t.Ya(o,n,r,e,s);return o},t.Ya=function(i,n,r,e,s){if(0==i)return n;if(1==i)return s;var u=t.Ja(n,r,i),o=t.Ja(r,e,i),h=t.Ja(e,s,i);return u=t.Ja(u,o,i),o=t.Ja(o,h,i),t.Ja(u,o,i)},t.Wa=function(i,n,r,e,s){if(0==i)return n;if(1==i)return s;var u=t.Ja(n,r,i),o=t.Ja(r,e,i),h=t.Ja(e,s,i);return u=t.Ja(u,o,i),o=t.Ja(o,h,i),t.Ja(u,o,i)},t.Ja=function(t,i,n){return t+n*(i-t)},t}(),Aa={LINEAR:function(t){return t},EASE:function(t){return wa.solveYValueFromXValue(t,0,0,.25,.1,.25,1,1,1)},EASE_IN:function(t){return wa.solveYValueFromXValue(t,0,0,.42,0,1,1,1,1)},EASE_OUT:function(t){return wa.solveYValueFromXValue(t,0,0,0,0,.58,1,1,1)},EASE_IN_OUT:function(t){return wa.solveYValueFromXValue(t,0,0,.42,0,.58,1,1,1)}},xa={"linear":Aa.LINEAR,"ease":Aa.EASE,"ease-in":Aa.EASE_IN,"ease-out":Aa.EASE_OUT,"ease-in-out":Aa.EASE_IN_OUT};function Ea(t){if(!t)return null;if(Y(t)){if(-1!=t.indexOf("cubic-bezier")){var i=t.match(/cubic-bezier\((.+)\)/);if(i){var n=i[1].split(",").map(parseFloat);if(4==n.length){for(var r=0;r<4;r++)if(isNaN(n[r]))return null;return e=n[0],s=n[1],u=n[2],o=n[3],function(t){return wa.solveYValueFromXValue(t,0,0,e,s,u,o,1,1)}}}return null}return xa[t]}var e,s,u,o;return t}var Pa="Animation",Oa=function(){},Ia=function(){function t(t,i){this.Xa=t,this.so=i||pr(self),this.Qa=null,this.Za=[]}t.animate=function(i,n,r,e){return new t(i).setCurve(e).add(0,n,1).start(r)};var i=t.prototype;return i.setCurve=function(t){return t&&(this.Qa=Ea(t)),this},i.add=function(t,i,n,r){return this.Za.push({delay:t,func:i,duration:n,curve:Ea(r)}),this},i.start=function(t){return new Ta(this.so,this.Xa,this.Za,this.Qa,t)},t}(),Ta=function(){function t(t,i,n,r,e){this.so=t,this.Xa=i,this.Za=[];for(var s=0;s<n.length;s++){var u=n[s];this.Za.push({delay:u.delay,func:u.func,duration:u.duration,curve:u.curve||r,started:!1,completed:!1})}this.tc=e,this.Hh=Date.now(),this.me=!0,this.mi={};var o=new a;this.ic=o.promise,this.ai=o.resolve,this.nc=o.reject,this.rc=this.so.createAnimTask(this.Xa,{mutate:this.ec.bind(this)}),this.so.canAnimate(this.Xa)?this.rc(this.mi):(Qt().warn(Pa,"cannot animate"),this.sc(!1,0))}var i=t.prototype;return i.then=function(t,i){return t||i?this.ic.then(t,i):this.ic},i.thenAlways=function(t){var i=t||Oa;return this.then(i,i)},i.halt=function(t){this.sc(!1,t||0)},i.sc=function(t,i){if(this.me){if(this.me=!1,0!=i){this.Za.length>1&&this.Za.sort((function(t,i){return t.delay+t.duration-(i.delay+i.duration)}));try{if(i>0)for(var n=0;n<this.Za.length;n++)this.Za[n].func(1,!0);else for(var r=this.Za.length-1;r>=0;r--)this.Za[r].func(0,!1)}catch(i){Qt().error(Pa,"completion failed: "+i,i),t=!1}}t?this.ai():this.nc()}},i.ec=function(t){if(this.me){for(var i=Date.now(),n=Math.min((i-this.Hh)/this.tc,1),r=0;r<this.Za.length;r++){var e=this.Za[r];!e.started&&n>=e.delay&&(e.started=!0)}for(var s=0;s<this.Za.length;s++){var u=this.Za[s];u.started&&!u.completed&&this.oc(u,n)}1==n?this.sc(!0,0):this.so.canAnimate(this.Xa)?this.rc(this.mi):(Qt().warn(Pa,"cancel animation"),this.sc(!1,0))}},i.oc=function(t,i){var n,r;if(t.duration>0){if(r=n=Math.min((i-t.delay)/t.duration,1),t.curve&&1!=r)try{r=t.curve(n)}catch(t){return Qt().error(Pa,"step curve failed: "+t,t),void this.sc(!1,0)}}else n=1,r=1;1==n&&(t.completed=!0);try{t.func(r,t.completed)}catch(t){return Qt().error(Pa,"step mutate failed: "+t,t),void this.sc(!1,0)}},t}();function Ma(t,i){for(var n,r=i.lastElementChild;r;r=r.previousElementSibling)if(r.getBoundingClientRect().height>0){var e=jr(t,r);if("static"==e.position||"relative"==e.position){n=e;break}}return n?parseInt(n.marginBottom,10):0}var Sa=function(){function t(t){var i=this;this.win=t,this.so=pr(t);var n=this.win.document,r=n.documentElement,e=r.className;r.classList.add("i-amphtml-ios-embed");var s=n.createElement("html");this.uc=s,s.id="i-amphtml-wrapper",s.className=e,this.hc=new Or,this.ac=new Or,this.cc=this.fc.bind(this),this.lc=function(){return i.ac.fire()},this.vc=0,this.dc=!1,Ii(n,this.mc.bind(this)),dn(n).then((function(){r.classList.add("i-amphtml-ios-overscroll")})),Qt().fine("Viewport","initialized ios-embed-wrapper viewport")}var i=t.prototype;return i.ensureReadyForElements=function(){this.mc()},i.mc=function(){if(!this.dc){this.dc=!0;var t=this.win.document,i=t.body;t.documentElement.appendChild(this.uc),this.uc.appendChild(i),Object.defineProperty(t,"body",{get:function(){return i}}),this.fc()}},i.connect=function(){this.win.addEventListener("resize",this.lc),this.uc.addEventListener("scroll",this.cc)},i.disconnect=function(){this.win.removeEventListener("resize",this.lc),this.uc.removeEventListener("scroll",this.cc)},i.getBorderTop=function(){return 1},i.requiresFixedLayerTransfer=function(){return!Fe(this.win,"ios-fixed-no-transfer")||parseFloat(or(this.win).getIosVersionString())<12.2},i.overrideGlobalScrollTo=function(){return!0},i.supportsPositionFixed=function(){return!0},i.onScroll=function(t){this.hc.add(t)},i.onResize=function(t){this.ac.add(t)},i.updatePaddingTop=function(t){this.vc=t,_r(this.uc,{"padding-top":Dr(t)})},i.hideViewerHeader=function(t,i){t||this.updatePaddingTop(0)},i.showViewerHeader=function(t,i){t||this.updatePaddingTop(i)},i.disableScroll=function(){this.uc.classList.add("i-amphtml-scroll-disabled")},i.resetScroll=function(){this.uc.classList.remove("i-amphtml-scroll-disabled")},i.updateLightboxMode=function(t){return h()},i.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}},i.getScrollTop=function(){return this.uc.scrollTop},i.getScrollLeft=function(){return 0},i.getScrollWidth=function(){return this.uc.scrollWidth},i.getScrollHeight=function(){return this.uc.scrollHeight},i.getContentHeight=function(){var t=this.win.document.body,i=t.getBoundingClientRect().height,n=Ma(this.win,t),r=jr(this.win,t);return parseInt(r.marginTop,10)+this.vc+i+n+parseInt(r.marginBottom,10)},i.contentHeightChanged=function(){},i.getLayoutRect=function(t,i,n){var r=t.getBoundingClientRect(),e=null!=n?n:this.getScrollTop(),s=null!=i?i:this.getScrollLeft();return zi(Math.round(r.left+s),Math.round(r.top+e),Math.round(r.width),Math.round(r.height))},i.getRootClientRectAsync=function(){return Promise.resolve(null)},i.setScrollTop=function(t){this.uc.scrollTop=t||1},i.fc=function(t){0==this.uc.scrollTop&&(this.uc.scrollTop=1,t&&t.preventDefault()),t&&this.hc.fire()},i.getScrollingElement=function(){return this.uc},i.getScrollingElementScrollsLikeViewport=function(){return!1},t}(),Ra=function(){function t(t){var i=this;this.ampdoc=t,this.win=t.win,this.vo=or(this.win),this.hc=new Or,this.ac=new Or,this.cc=this.bc.bind(this),this.lc=function(){return i.ac.fire()},Qt().fine("Viewport","initialized natural viewport")}var i=t.prototype;return i.bc=function(){this.hc.fire()},i.connect=function(){this.win.addEventListener("scroll",this.cc),this.win.addEventListener("resize",this.lc)},i.disconnect=function(){this.win.removeEventListener("scroll",this.cc),this.win.removeEventListener("resize",this.lc)},i.ensureReadyForElements=function(){},i.getBorderTop=function(){return 0},i.requiresFixedLayerTransfer=function(){return!1},i.overrideGlobalScrollTo=function(){return!1},i.supportsPositionFixed=function(){return!0},i.onScroll=function(t){this.hc.add(t)},i.onResize=function(t){this.ac.add(t)},i.updatePaddingTop=function(t){_r(this.win.document.documentElement,{"padding-top":Dr(t)})},i.hideViewerHeader=function(t,i){t||this.updatePaddingTop(0)},i.showViewerHeader=function(t,i){t||this.updatePaddingTop(i)},i.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")},i.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")},i.updateLightboxMode=function(t){return h()},i.getSize=function(){var t=this.win.innerWidth,i=this.win.innerHeight;if(t&&i)return{width:t,height:i};var n=this.win.document.documentElement;return{width:n.clientWidth,height:n.clientHeight}},i.getScrollTop=function(){var t=this.getScrollingElement().scrollTop||this.win.pageYOffset,i=this.ampdoc.getRootNode().host;return i?t-i.offsetTop:t},i.getScrollLeft=function(){return 0},i.getScrollWidth=function(){return this.getScrollingElement().scrollWidth},i.getScrollHeight=function(){return this.getScrollingElement().scrollHeight},i.getContentHeight=function(){var t=this.getScrollingElement(),i=t.getBoundingClientRect(),n=i.top+this.getScrollTop(),r=or(this.win).isSafari()?Ma(this.win,t):0,e=jr(this.win,t);return n+parseInt(e.marginTop,10)+i.height+r+parseInt(e.marginBottom,10)},i.contentHeightChanged=function(){},i.getLayoutRect=function(t,i,n){var r=t.getBoundingClientRect(),e=null!=n?n:this.getScrollTop(),s=null!=i?i:this.getScrollLeft();return zi(Math.round(r.left+s),Math.round(r.top+e),Math.round(r.width),Math.round(r.height))},i.getRootClientRectAsync=function(){return Promise.resolve(null)},i.setScrollTop=function(t){this.getScrollingElement().scrollTop=t},i.getScrollingElement=function(){var t=this.win.document;return t.scrollingElement?t.scrollingElement:t.body&&this.vo.isWebKit()?t.body:t.documentElement},i.getScrollingElementScrollsLikeViewport=function(){return!0},t}(),_a="Viewport";function ka(t,i,n){return function(t,i,n){var r=parseInt(jr(t,i)[n],10);return isNaN(r)?0:r}(t,i===t.document.body?t.document.documentElement:i,n)}function Ca(t,i){return ka(t,i,"scrollPaddingTop")}var Na=function(){function t(t,i,n){var r=this,e=t.win;this.ampdoc=t,this.gc=this.ampdoc.win.document,this.ds=i,this.Le=n,this.yc=null,this.pr=null,this.wc=null,this.Ac=!1,this.xc=null,this.vc=Number(n.getParam("paddingTop")||0),this.Ec=0,this.ce=fr(e),this.so=pr(e),this.Oc=!1,this.Tc=null,this.Pc=0,this.Ic=new Or,this.hc=new Or,this.ac=new Or,this.Sc=void 0,this.Mc=void 0,this.Rc=null,this.Le.onMessage("viewport",this._c.bind(this)),this.Le.onMessage("scroll",this.kc.bind(this)),this.Le.onMessage("disableScroll",this.Nc.bind(this)),this.Le.isEmbedded()&&this.ds.updatePaddingTop(this.vc),this.ds.onScroll(this.Cc.bind(this)),this.ds.onResize(this.jc.bind(this)),this.onScroll(this.Dc.bind(this)),this.eu=!1,this.ampdoc.onVisibilityChanged(this.Uc.bind(this)),this.Uc();var s=this.gc.documentElement;if(t.isSingleDoc()&&s.classList.add("i-amphtml-singledoc"),n.isEmbedded()?s.classList.add("i-amphtml-embedded"):s.classList.add("i-amphtml-standalone"),Ni(e)&&s.classList.add("i-amphtml-iframed"),"1"===n.getParam("webview")&&s.classList.add("i-amphtml-webview"),Ni(e)&&"scrollRestoration"in e.history&&(e.history.scrollRestoration="manual"),this.ds.overrideGlobalScrollTo())try{Object.defineProperty(e,"scrollTo",{value:function(t,i){return r.setScrollTop(i)}}),["pageYOffset","scrollY"].forEach((function(t){Object.defineProperty(e,t,{get:function(){return r.getScrollTop()}})}))}catch(t){}or(e).isIos()&&Ni(e)&&this.ampdoc.isSingleDoc()&&this.ampdoc.whenReady().then((function(){e.scrollTo(-.1,0)}))}var i=t.prototype;return i.dispose=function(){this.ds.disconnect()},i.ensureReadyForElements=function(){this.ds.ensureReadyForElements()},i.Uc=function(){var t=this.ampdoc.isVisible();t!=this.eu&&(this.eu=t,t?(this.ds.connect(),this.pr&&this.jc(),this.wc&&(this.wc=null,this.getScrollTop())):this.ds.disconnect())},i.getPaddingTop=function(){return this.vc},i.getScrollTop=function(){return null==this.wc&&(this.wc=this.ds.getScrollTop()),this.wc},i.getScrollLeft=function(){return null==this.xc&&(this.xc=this.ds.getScrollLeft()),this.xc},i.setScrollTop=function(t){this.wc=null,this.ds.setScrollTop(t)},i.updatePaddingBottom=function(t){this.ampdoc.waitForBodyOpen().then((function(i){kr(i,"borderBottom","".concat(t,"px solid transparent"))}))},i.getSize=function(){if(this.pr)return this.pr;if(this.pr=this.ds.getSize(),0==this.pr.width||0==this.pr.height){var t=this.ampdoc.getVisibilityState();t!=yr&&t!=Ar||Math.random()<.01&&Qt().error(_a,"viewport has zero dimensions")}return this.pr},i.getHeight=function(){return this.getSize().height},i.getWidth=function(){return this.getSize().width},i.getScrollWidth=function(){return this.ds.getScrollWidth()},i.getScrollHeight=function(){return this.ds.getScrollHeight()},i.getContentHeight=function(){return this.ds.getContentHeight()},i.contentHeightChanged=function(){this.ds.contentHeightChanged()},i.getRect=function(){if(null==this.yc){var t=this.getScrollTop(),i=this.getScrollLeft(),n=this.getSize();this.yc=zi(i,t,n.width,n.height)}return this.yc},i.getLayoutRect=function(t){var i=this.getScrollLeft(),n=this.getScrollTop(),r=_n(t,this.ampdoc.win);if(r){var e=this.ds.getLayoutRect(t,0,0),s=this.ds.getLayoutRect(r,i,n);return zi(Math.round(e.left+s.left),Math.round(e.top+s.top),Math.round(e.width),Math.round(e.height))}return this.ds.getLayoutRect(t,i,n)},i.getClientRectAsync=function(t){var i=this.so.measurePromise((function(){return t.getBoundingClientRect()})),n=this.ds.getRootClientRectAsync(),r=_n(t,this.ampdoc.win);return r&&(n=this.so.measurePromise((function(){return r.getBoundingClientRect()}))),Promise.all([i,n]).then((function(t){var i,n=t[0],r=t[1];return r?Gi(n,r.left,r.top):(i=n,zi(Number(i.left),Number(i.top),Number(i.width),Number(i.height)))}))},i.supportsPositionFixed=function(){return this.ds.supportsPositionFixed()},i.isDeclaredFixed=function(t){return!!this.Rc&&this.Rc.isDeclaredFixed(t)},i.scrollIntoView=function(t){var i=this;return this.zc(t).then((function(n){return i.Lc(t,n)}))},i.Lc=function(t,i){var n=this,r=this.ds.getLayoutRect(t).top,e=Ca(this.ampdoc.win,i);c((function(){return Math.max(0,r-n.vc-e)})).then((function(t){return n.Hc(i,t)}))},i.animateScrollIntoView=function(t){var i=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r=arguments.length>2?arguments[2]:void 0,e=arguments.length>3?arguments[3]:void 0;return Zt(!e||void 0!==r),this.zc(t).then((function(s){return i.animateScrollWithinParent(t,s,n,r,e)}))},i.animateScrollWithinParent=function(t,i,n,r,e){var s=this;Zt(!e||void 0!==r);var u=this.ds.getLayoutRect(t),o=(this.Gc(i)?this.getSize():this.getLayoutRect(i)).height,h=this.ampdoc.win,a=Ca(h,i),c=function(t,i){return ka(t,i,"scrollPaddingBottom")}(h,i),f=-a;return"bottom"===n?f=-o+c+u.height:"center"===n&&(f=-(o-a-c)/2+u.height/2),this.Vc(i).then((function(t){var n=u.top-s.vc+f,o=Math.max(0,n);if(o!=t)return s.Fc(i,t,o,r,e)}))},i.Fc=function(t,i,n,r){var e=this,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"ease-in",u=void 0!==r?r:Da(i,n),o=ba(i,n);return Ia.animate(t,(function(i){e.Hc(t,o(i))}),u,s).thenAlways((function(){e.Hc(t,n)}))},i.zc=function(t){var i=this;return this.so.measurePromise((function(){return yi(t,".i-amphtml-scrollable")||i.ds.getScrollingElement()}))},i.Hc=function(t,i){this.Gc(t)?this.ds.setScrollTop(i):this.so.mutate((function(){t.scrollTop=i}))},i.Vc=function(t){var i=this;return this.Gc(t)?c((function(){return i.getScrollTop()})):this.so.measurePromise((function(){return t.scrollTop}))},i.Gc=function(t){return t==this.ds.getScrollingElement()},i.getScrollingElement=function(){return this.Tc?this.Tc:this.Tc=this.ds.getScrollingElement()},i.onChanged=function(t){return this.Ic.add(t)},i.onScroll=function(t){return this.hc.add(t)},i.onResize=function(t){return this.ac.add(t)},i.enterLightboxMode=function(t,i){return this.Le.sendMessage("requestFullOverlay",{},!0),this.enterOverlayMode(),this.Rc&&this.Rc.enterLightbox(t,i),t&&this.maybeEnterFieLightboxMode(t),this.ds.updateLightboxMode(!0)},i.leaveLightboxMode=function(t){return this.Le.sendMessage("cancelFullOverlay",{},!0),this.Rc&&this.Rc.leaveLightbox(),this.leaveOverlayMode(),t&&this.maybeLeaveFieLightboxMode(t),this.ds.updateLightboxMode(!1)},i.isLightboxExperimentOn=function(){return Fe(this.ampdoc.win,"amp-lightbox-a4a-proto")},i.maybeEnterFieLightboxMode=function(t){var i=this.Bc(t);i&&(Zt(this.isLightboxExperimentOn()),i.enterFullOverlayMode())},i.maybeLeaveFieLightboxMode=function(t){var i=this.Bc(t);i&&Zt(i).leaveFullOverlayMode()},i.Bc=function(t){var i=_n(t,this.ampdoc.win);return i&&i.__AMP_EMBED__},i.enterOverlayMode=function(){this.disableTouchZoom(),this.disableScroll()},i.leaveOverlayMode=function(){this.resetScroll(),this.restoreOriginalTouchZoom()},i.disableScroll=function(){var t,i=this,n=this.ampdoc.win,r=n.document.documentElement;this.so.measure((function(){var e=jr(n,r).marginRight,s=function(t){var i=t.document.documentElement;return t.innerWidth-i.clientWidth}(i.ampdoc.win);t=parseInt(e,10)+s})),this.so.mutate((function(){kr(r,"margin-right",t,"px"),i.ds.disableScroll()}))},i.resetScroll=function(){var t=this,i=this.ampdoc.win.document.documentElement;this.so.mutate((function(){kr(i,"margin-right",""),t.ds.resetScroll()}))},i.resetTouchZoom=function(){var t=this,i=this.ampdoc.win.innerHeight,n=this.gc.documentElement.clientHeight;i&&n&&i===n||this.disableTouchZoom()&&this.ce.delay((function(){t.restoreOriginalTouchZoom()}),50)},i.disableTouchZoom=function(){var t=this.qc();if(!t)return!1;var i=function(t,i){var n=function(t){var i=Object.create(null);if(!t)return i;for(var n=t.split(/,|;/),r=0;r<n.length;r++){var e=n[r].split("="),s=e[0].trim(),u=e[1];u=(u||"").trim(),s&&(i[s]=u)}return i}(t),r=!1;for(var e in i)n[e]!==i[e]&&(r=!0,void 0!==i[e]?n[e]=i[e]:delete n[e]);return r?function(t){var i="";for(var n in t)i.length>0&&(i+=","),t[n]?i+=n+"="+t[n]:i+=n;return i}(n):t}(t.content,{"maximum-scale":"1","user-scalable":"no"});return this.$c(i)},i.restoreOriginalTouchZoom=function(){return void 0!==this.Mc&&this.$c(this.Mc)},i.updateFixedLayer=function(){return this.Rc?this.Rc.update():h()},i.addToFixedLayer=function(t,i){return this.Rc?this.Rc.addElement(t,i):h()},i.removeFromFixedLayer=function(t){this.Rc&&this.Rc.removeElement(t)},i.createFixedLayer=function(t){var i=this;this.Rc=new t(this.ampdoc,this.so,this.ds.getBorderTop(),this.vc,this.ds.requiresFixedLayerTransfer()),this.ampdoc.whenReady().then((function(){return i.Rc.setup()}))},i.$c=function(t){var i=this.qc();return!(!i||i.content==t||(Qt().fine(_a,"changed viewport meta to:",t),i.content=t,0))},i.qc=function(){return Ni(this.ampdoc.win)?null:(void 0===this.Sc&&(this.Sc=this.gc.querySelector("meta[name=viewport]"),this.Sc&&(this.Mc=this.Sc.content)),this.Sc)},i.kc=function(t){var i=t.scrollTop;this.setScrollTop(i)},i._c=function(t){var i=this,n=t.paddingTop,r=t.duration||0,e=t.curve,s=t.transient;if(null!=n&&n!=this.vc&&(this.Ec=this.vc,this.vc=n,this.Rc)){var u=this.Rc.animateFixedElements(this.vc,this.Ec,r,e,s);n<this.Ec?this.ds.hideViewerHeader(s,this.Ec):u.then((function(){i.ds.showViewerHeader(s,n)}))}},i.Nc=function(t){t?this.disableScroll():this.resetScroll()},i.Wc=function(t,i){var n=this.getSize(),r=this.getScrollTop(),e=this.getScrollLeft();Qt().fine(_a,"changed event:","relayoutAll=",t,"top=",r,"left=",e,"bottom=",r+n.height,"velocity=",i),this.Ic.fire({relayoutAll:t,top:r,left:e,width:n.width,height:n.height,velocity:i})},i.Cc=function(){var t=this;this.yc=null,this.Pc++,this.xc=this.ds.getScrollLeft();var i=this.ds.getScrollTop();if(!(i<0)){if(this.wc=i,!this.Oc){this.Oc=!0;var n=Date.now();this.ce.delay((function(){t.so.measure((function(){t.Mu(n,i)}))}),36)}this.hc.fire()}},i.Mu=function(t,i){var n=this;this.wc=this.ds.getScrollTop();var r=this.wc,e=Date.now(),s=0;e!=t&&(s=(r-i)/(e-t)),Qt().fine(_a,"scroll: scrollTop="+r+"; velocity="+s),Math.abs(s)<.03?(this.Wc(!1,s),this.Oc=!1):this.ce.delay((function(){return n.so.measure(n.Mu.bind(n,e,r))}),20)},i.Dc=function(){var t=this;this.Ac||(this.Ac=!0,this.so.measure((function(){t.Ac=!1,t.Le.sendMessage("scroll",{"scrollTop":t.getScrollTop()},!0)})))},i.jc=function(){var t=this;this.yc=null;var i=this.pr;this.pr=null;var n=this.getSize();this.updateFixedLayer().then((function(){var r=!i||i.width!=n.width;t.Wc(r,0),(r||i.height!=n.height)&&t.ac.fire({relayoutAll:r,width:n.width,height:n.height})}))},t}();function Da(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;return Math.floor(ya(.65*Math.abs(t-i),0,n))}function ja(t){var i,n=mr(t),r=t.win;return i=t.isSingleDoc()&&function(t,i){return or(t).isIos()&&Ni(t)&&i.isEmbedded()&&!i.hasCapability("iframeScroll")?Ua.NATURAL_IOS_EMBED:Ua.NATURAL}(r,n)==Ua.NATURAL_IOS_EMBED?new Sa(r):new Ra(t),new Na(t,i,n)}var Ua={NATURAL:"natural",NATURAL_IOS_EMBED:"natural-ios-embed"},La=function(){function t(t){this.win=t,this.Kc=Jn(this.win),this.Yc=this.Jc(),this.Nn=[],this.Xc=[],this.Ks=[],this.Qc=[],this.ve=!1,this.Zc=null,this.tf=null,this.if=this.nf.bind(this),this.rf=new Uu(this.win,this.if,16),this.ef=new Uu(this.win,this.if,40),this.sf=this.uf.bind(this),this.Kc.isSingleDoc()?this.Kc.getSingleDoc().onVisibilityChanged(this.sf):Lr(this.win.document,this.sf)}var i=t.prototype;return i.dispose=function(){zr(this.win.document,this.sf)},i.uf=function(){this.ve&&this.hf()},i.run=function(t,i){this.Nn.push(t),this.Ks.push(i||void 0),this.Hn()},i.runPromise=function(t,i){if(this.run(t,i),this.Zc)return this.Zc;var n=new a;return this.tf=n.resolve,this.Zc=n.promise},i.createTask=function(t){var i=this;return function(n){i.run(t,n)}},i.mutate=function(t){this.run({measure:void 0,mutate:t})},i.mutatePromise=function(t){return this.runPromise({measure:void 0,mutate:t})},i.measure=function(t){this.run({measure:t,mutate:void 0})},i.measurePromise=function(t){var i=this;return new Promise((function(n){i.measure((function(){n(t())}))}))},i.canAnimate=function(t){return this.af(Zt(t))},i.af=function(t){if(Ur(this.win.document)!=Ar)return!1;if(this.Kc.isSingleDoc())return this.Kc.getSingleDoc().isVisible();if(t){var i=this.Kc.getAmpDocIfAvailable(t);return!i||i.isVisible()}return!0},i.runAnim=function(t,i,n){return this.af(t)?(this.run(i,n),!0):(Qt().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1)},i.createAnimTask=function(t,i){var n=this;return function(r){return n.runAnim(t,i,r)}},i.runAnimMutateSeries=function(t,i,n){var r=this;return this.af(t)?new Promise((function(e,s){var u=Date.now(),o=0,h=r.createAnimTask(t,{mutate:function(t){var r=Date.now()-u;i(r,r-o,t)?n&&r>n?s(new Error("timeout")):(o=r,h(t)):e()}});h({})})):Promise.reject(Ls())},i.Hn=function(){this.ve||(this.ve=!0,this.hf())},i.hf=function(){this.af()?(this.Yc(this.if),this.ef.schedule()):this.rf.schedule()},i.nf=function(){this.ef.cancel(),this.ve=!1;var t=this.tf,i=this.Ks,n=this.Nn;this.tf=null,this.Zc=null,this.Nn=this.Xc,this.Ks=this.Qc;for(var r=0;r<n.length;r++)n[r].measure&&(za(n[r].measure,i[r])||(n[r].mutate=void 0));for(var e=0;e<n.length;e++)n[e].mutate&&za(n[e].mutate,i[e]);this.Xc=n,this.Qc=i,this.Xc.length=0,this.Qc.length=0,t&&t()},i.Jc=function(){var t=this,i=this.win.requestAnimationFrame||this.win.webkitRequestAnimationFrame;if(i)return i.bind(this.win);var n=0;return function(i){var r=Date.now(),e=Math.max(0,16-(r-n));n=r+e,t.win.setTimeout(i,e)}},t}();function za(t,i){Zt(t);try{void 0!==t(i)&&Qt().error("VSYNC","callback returned a value but vsync cannot propogate it: %s",t.toString())}catch(t){return d(t),!1}return!0}function Ha(t){if(!t.defaultPrevented){var i=t.target;if(i&&"FORM"==i.tagName){(i.classList.contains("i-amphtml-form")?!i.hasAttribute("amp-novalidate"):!i.hasAttribute("novalidate"))&&i.checkValidity&&!i.checkValidity()&&t.preventDefault();for(var n=i.elements,r=0;r<n.length;r++)ti(!n[r].name||n[r].name!=vs,"Illegal input name, %s found: %s",vs,n[r]);var e=i.getAttribute("action"),s=i.getAttribute("action-xhr"),u=(i.getAttribute("method")||"GET").toUpperCase();s&&(xs(s,i,"action-xhr"),ti(!Ps(s),"form action-xhr should not be on AMP CDN: %s",i),ks(s)),e&&(xs(e,i,"action"),ti(!Ps(e),"form action should not be on AMP CDN: %s",i),ks(e)),"GET"==u?ti(s||e,"form action-xhr or action attribute is required for method=GET: %s",i):"POST"==u&&(e&&Jt().error("form","action attribute is invalid for method=POST: %s",i),s||(t.preventDefault(),ti(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",i)));var o=i.getAttribute("target");o?ti("_blank"==o||"_top"==o,"form target=%s is invalid can only be _blank or _top: %s",o,i):i.setAttribute("target","_top"),s&&(t.preventDefault(),t.stopImmediatePropagation(),Wn(i).execute(i,"submit",null,i,i,t,3))}}}var Ga="Input",Va=function(){function t(t){this.win=t,this.cf=this.ff.bind(this),this.lf=this.vf.bind(this),this.df=null,this.mf=null,this.pf=null,this.bf="ontouchstart"in t||void 0!==t.navigator.maxTouchPoints&&t.navigator.maxTouchPoints>0||void 0!==t.DocumentTouch,Qt().fine(Ga,"touch detected:",this.bf),this.gf=!1,this.win.document.addEventListener("keydown",this.cf),this.win.document.addEventListener("mousedown",this.lf),this.yf=!0,this.wf=0,this.Af=new Or,this.xf=new Or,this.Ef=new Or,this.bf&&(this.yf=!this.bf,this.df=this.Of.bind(this),Qe(t.document,"mousemove",this.df))}var i=t.prototype;return i.setupInputModeClasses=function(t){var i=this;this.onTouchDetected((function(n){i.Tf(t,"amp-mode-touch",n)}),!0),this.onMouseDetected((function(n){i.Tf(t,"amp-mode-mouse",n)}),!0),this.onKeyboardStateChanged((function(n){i.Tf(t,"amp-mode-keyboard-active",n)}),!0)},i.isTouchDetected=function(){return this.bf},i.onTouchDetected=function(t,i){return i&&t(this.isTouchDetected()),this.Af.add(t)},i.isMouseDetected=function(){return this.yf},i.onMouseDetected=function(t,i){return i&&t(this.isMouseDetected()),this.xf.add(t)},i.isKeyboardActive=function(){return this.gf},i.onKeyboardStateChanged=function(t,i){return i&&t(this.isKeyboardActive()),this.Ef.add(t)},i.Tf=function(t,i,n){var r=this;t.waitForBodyOpen().then((function(t){pr(r.win).mutate((function(){t.classList.toggle(i,n)}))}))},i.ff=function(t){if(!this.gf&&!t.defaultPrevented){var i=t.target;i&&("INPUT"==i.tagName||"TEXTAREA"==i.tagName||"SELECT"==i.tagName||"OPTION"==i.tagName||i.hasAttribute("contenteditable"))||(this.gf=!0,this.Ef.fire(!0),Qt().fine(Ga,"keyboard activated"))}},i.vf=function(){this.gf&&(this.gf=!1,this.Ef.fire(!1),Qt().fine(Ga,"keyboard deactivated"))},i.Of=function(t){var i=this;if(!t.sourceCapabilities||!t.sourceCapabilities.firesTouchEvents){var n;this.pf||(this.pf=this.Pf.bind(this),this.mf=this.If.bind(this));var r=function(t,i,n,r){var e,s=new Promise((function(i){e=Qe(t,"click",i,void 0)}));return s.then(e,e),r&&r(e),s}(this.win.document,0,0,(function(t){n=t}));return fr(this.win).timeoutPromise(300,r).then(this.mf,(function(){n&&n(),i.pf()}))}this.If()},i.Pf=function(){this.yf=!0,this.xf.fire(!0),Qt().fine(Ga,"mouse detected")},i.If=function(){this.wf++,this.wf<=3?Qe(this.win.document,"mousemove",this.df):Qt().fine(Ga,"mouse detection failed")},t}(),Fa=["<link rel=preload referrerpolicy=origin>"],Ba=18e4,qa=null,$a=function(){function t(t){this.Sf=t.document,this.Mf=t.document.head,this.Rf={},this._f={},this.vo=or(t),this.Rf[ms(t.location.href).origin]=!0,this.kf=function(t){if(!qa){var i=t.document.createElement("link"),n=i.relList;if(i.as="invalid-value",!n||!n.supports)return{};qa={preconnect:n.supports("preconnect"),preload:n.supports("preload"),onlyValidAs:"invalid-value"!=i.as}}return qa}(t),this.ce=fr(t)}var i=t.prototype;return i.url=function(t,i,n){var r=this;t.whenFirstVisible().then((function(){r.ii(t,i,n)}))},i.ii=function(t,i,n){if(this.Nf(i)){var r=ms(i).origin,e=Date.now(),s=this.Rf[r];if(s&&e<s)n&&(this.Rf[r]=e+Ba);else{var u,o=n?Ba:1e4;this.Rf[r]=e+o,this.kf.preconnect||((u=this.Sf.createElement("link")).setAttribute("rel","dns-prefetch"),u.setAttribute("href",r),this.Mf.appendChild(u));var h=this.Sf.createElement("link");h.setAttribute("rel","preconnect"),h.setAttribute("href",r),h.setAttribute("referrerpolicy","origin"),this.Mf.appendChild(h),this.ce.delay((function(){u&&u.parentNode&&u.parentNode.removeChild(u),h.parentNode&&h.parentNode.removeChild(h)}),1e4),this.Cf(t,r)}}},i.preload=function(t,i,n){var r=this;this.Nf(i)&&(this._f[i]||(this._f[i]=!0,this.url(t,i,!0),this.kf.preload&&("document"==n&&this.vo.isSafari()||t.whenFirstVisible().then((function(){r.jf(i)})))))},i.jf=function(t){var i=Ne(this.Sf)(Fa);i.setAttribute("href",t),this.kf.onlyValidAs?i.as="fetch":i.as="",this.Mf.appendChild(i)},i.Nf=function(t){return!(!t.startsWith("https:")&&!t.startsWith("http:"))},i.Cf=function(t,i){if(!this.kf.preconnect&&(this.vo.isSafari()||this.vo.isIos())){var n=Date.now();this.Rf[i]=n+Ba;var r=i+"/robots.txt?_AMP_safari_preconnect_polyfill_cachebust="+(n-n%Ba),e=new XMLHttpRequest;e.open("HEAD",r,!0),e.withCredentials=!0,e.send()}},t}();function Wa(t){var i;!function(t){En(t,"crypto",ih)}(t),En(t,"batched-xhr",bo),Dh(t),ta(t),ta(i=t),En(i,"vsync",La),function(t){En(t,"xhr",go)}(t),function(t){En(t,"input",Va)}(t),function(t){En(t,"preconnect",$a)}(t)}function Ya(t){Zt(!t.getParent()),function(t,i){(function(t){Pn(t,"url",ia,!0)})(t),function(t){Pn(t,"templates",Qh)}(t),Pn(t,"documentInfo",rh),function(t){Pn(t,"cid",qo)}(t),function(t){Pn(t,"viewer",pa,!0)}(t),function(t){Pn(t,"viewport",ja,!0)}(t),function(t){Pn(t,"hidden-observer",sh)}(t),function(t){Pn(t,"history",lh)}(t),function(t){Pn(t,"resources",zh)}(t),function(t){Pn(t,"owners",Ch)}(t),function(t){Pn(t,"mutator",bh)}(t),function(t){Pn(t,"url-replace",(function(t){return new va(t,new la(t))}))}(t),function(t){Pn(t,"action",Ku,!0)}(t),function(t){Pn(t,"standard-actions",Bh,!0)}(t),function(t){Pn(t,"storage",(function(){var i=mr(t),n=parseInt(i.getParam("storage"),10)?new Kh(i):new Yh(t.win);return new $h(t,i,n).wh()}),!0)}(t),function(t){Pn(t,Ph,Sh,!0)}(t),function(t){t.whenExtensionsKnown().then((function(){t.declaresExtension("amp-form")&&t.getRootNode().addEventListener("submit",Ha,!0)}))}(t),Pn(t,"loadingIndicator",mh)}(t)}function Ka(t){return t.waitForBodyOpen().then((function(){var i,n,r=t.getBody(),e=(i=r,n=function(){return!!r.firstElementChild},new Promise((function(t){Oi(i,n,t)})));return fr(t.win).timeoutPromise(2e3,e).then((function(){return"AMP-STORY"===r.firstElementChild.tagName}),(function(){return!1}))}))}var Ja=["AMP-AD","AMP-ANALYTICS","AMP-PIXEL","AMP-AD-EXIT"];function Xa(t){if(null==t)return 0;var i=function(t){for(var i=t;null!=(t=t.parentNode);)t.nodeName.startsWith("AMP-")&&(i=t);return i}(t),n=i.nodeName;return"IMG"===n||"AMP-IMG"===n?1:"VIDEO"===n||"AMP-VIDEO"===n?2:"AMP-CAROUSEL"===n?8:"AMP-BASE-CAROUSEL"===n?16:"AMP-AD"===n?4:!n.startsWith("AMP-")&&i.textContent?32:0}var Qa=function(){function t(t){var i=this;this.win=t,this.rv=wo(lt(t,16)),this.uv=[],this.ov=t.performance.timeOrigin||t.performance.timing.navigationStart,this.Ni=null,this.Le=null,this.fi=null,this.sv=null,this.hv=!1,this.av=!1,this.fv=A(),this.cv=void 0,this.lv=new Ir,this.vv=0,this.dv=[],this.mv=0;var n=this.win.PerformanceObserver&&this.win.PerformanceObserver.supportedEntryTypes||[];if(n.includes("paint")||this.lv.rejectSignal("fcp",Qt().createExpectedError("First Contentful Paint not supported")),this.pv=n.includes("layout-shift"),!this.pv){var r=Qt().createExpectedError("Cumulative Layout Shift not supported");this.lv.rejectSignal(Zi,r),this.lv.rejectSignal(nn,r)}this.gv=n.includes("first-input"),this.gv||this.lv.rejectSignal("fid",Qt().createExpectedError("First Input Delay not supported")),this.bv=n.includes("largest-contentful-paint"),this.bv||this.lv.rejectSignal("lcp",Qt().createExpectedError("Largest Contentful Paint not supported")),this.yv=n.includes("navigation"),this.wv=n.includes("event")&&Fe(t,"interaction-to-next-paint"),this.wv||this.lv.rejectSignal(en,Qt().createExpectedError("Interaction to next paint not supported")),this.Av=this.Av.bind(this),this.addEnabledExperiment("rtv-"+Dt(this.win).rtvVersion),dn(t.document).then((function(){i.tick("dr"),i.flush()})),mn(t.document).then((function(){return i.xv()})),mn(t.document).then((function(){return i.Ev(40)})),this.Pv(),this.Tv=!1,this.Ov=mt(t,(function(){i.Iv()}),6e3)}var i=t.prototype;return i.coreServicesAvailable=function(){var t=this,i=this.win.document.documentElement;this.Ni=Kn(i),this.Le=mr(i),this.fi=ar(i),this.sv=ir(this.Ni),this.av=this.Le.isEmbedded()&&"1"===this.Le.getParam("csi"),this.Ni.onVisibilityChanged(this.flush.bind(this)),this.Rv();var n=this.Le.whenMessagingReady();return this.Ni.whenFirstVisible().then((function(){t.tick("ofv"),t.flush()})),(this.bv||this.pv)&&this.Ni.onVisibilityChanged(this.Av),n?n.then((function(){t.tickDelta("msr",t.win.performance.now()),t.tick("timeOrigin",void 0,t.ov);var i=t.Ni.getMetaByName("amp-usqp");return i&&i.split(",").forEach((function(i){t.addEnabledExperiment("ssr-"+i)})),t.Sv()})).then((function(){t.hv=!0,t._v(),t.flush()})):h()},i.Sv=function(){var t=this;return Ka(Jn(this.win).getSingleDoc()).then((function(i){i&&t.addEnabledExperiment("story")}))},i.xv=function(){this.tick("ol"),this.flush()},i.Pv=function(){var t=this;if("inabox"!==Dt(this.win).runtime){var i=!1,n=!1,r=!1,e=!1,s=function(s){if("first-paint"!=s.name||i)if("first-contentful-paint"!=s.name||n)if("first-input"!==s.entryType||r)"layout-shift"===s.entryType?s.hadRecentInput||(t.Mv(s),t.mv+=s.value):"largest-contentful-paint"===s.entryType?t.kv(s):"navigation"!=s.entryType||e?"event"==s.entryType&&s.interactionId&&t.Ev(s.duration):(["domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","loadEventEnd","loadEventStart","requestStart","responseStart"].forEach((function(i){return t.tick(i,s[i])})),e=!0);else{var u=s.processingStart-s.startTime;t.tickDelta("fid",u),r=!0}else{var o=s.startTime+s.duration;t.tickDelta("fcp",o),t.tickSinceVisible("fcpv",o),n=!0}else t.tickDelta("fp",s.startTime+s.duration),i=!0},u=[];this.win.PerformancePaintTiming&&(this.win.performance.getEntriesByType("paint").forEach(s),u.push("paint")),this.gv&&this.Cv(s,{type:"first-input",buffered:!0}),this.pv&&this.Cv(s,{type:"layout-shift",buffered:!0}),this.bv&&this.Cv(s,{type:"largest-contentful-paint",buffered:!0}),this.yv&&this.Cv(s,{type:"navigation",buffered:!0}),this.wv&&this.Cv(s,{type:"event",durationThreshold:40,buffered:!0}),u.length>0&&this.Cv(s,{entryTypes:u})}},i.Cv=function(t,i){var n=this;try{new this.win.PerformanceObserver((function(i){i.getEntries().forEach(t),n.flush()})).observe(i)}catch(t){Qt().warn("Performance",t)}},i.Nv=function(){var t=this.Ni.getVisibilityState();return t===Pr||t===xr},i.Av=function(){this.Nv()&&(this.jv(),this.Iv())},i.Dv=function(){if(!this.Tv){this.Tv=!0;var t=this.win,i=parseInt(jr(t,t.document.body).getPropertyValue("--google-font-exp"),10);i>=0&&this.addEnabledExperiment("google-font-exp=".concat(i))}},i.jv=function(){this.pv&&(this.Dv(),this.Lv())},i.Mv=function(t){if(this.Ni&&!this.Nv()){var i=this.dv;if(i.length>0){var n=i[0],r=i[i.length-1];if(t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3)return void i.push(t);this.Iv()}i.push(t),this.Ov()}},i.Iv=function(){for(var t,i=this.dv,n=this.lv.get(Zi),r=0,e=0,s=o(i,!0);!(t=s()).done;){var u=t.value;if(u.sources)for(var h,a=o(u.sources,!0);!(h=a()).done;)r|=Xa(h.value.node);e+=u.value}i.length=0,this.Dv(),(null==n||e>n)&&(this.lv.reset(Zi),this.lv.reset(tn),this.tickDelta(Zi,e),this.tickDelta(tn,r),this.flush())},i.Ev=function(t){if(this.Ni){var i=this.lv.get(en);(null==i||t>i)&&(this.tickDelta(en,t-(null!=i?i:0)),this.flush())}},i.Lv=function(){0===this.vv?(this.tickDelta(nn,this.mv),this.flush(),this.vv=1):1===this.vv&&(this.tickDelta("cls-2",this.mv),this.flush(),this.vv=2)},i.kv=function(t){var i=t.element,n=t.startTime,r=Xa(i);this.tickDelta("lcpt",r),this.tickDelta("lcp",n),this.tickSinceVisible("lcpv",n),this.flush()},i.Rv=function(){var t=this,i=!this.Ni.hasBeenVisible(),n=-1;this.Ni.whenFirstVisible().then((function(){n=t.win.performance.now(),t.mark("visible")})),this.Uv().then((function(){if(i){var r=n>-1?t.win.performance.now()-n:0;t.Ni.whenFirstVisible().then((function(){t.tickDelta(rn,r)})),t.zv(r),t.mark(rn)}else t.tick(rn),t.zv(t.win.performance.now()-n);t.flush()}))},i.Uv=function(){var t=this;return this.fi.whenFirstPass().then((function(){var i,n=t.win.document.documentElement,r=gr(n).getSize();return zi(0,0,r.width,r.height),i=n,t.win,function(t,i){var n=Kn(t);return n.signals().whenSignal(Fs).then((function(){var t=ar(n).get().filter((function(t){return!(!t.prerenderAllowed()||Ja.includes(t.element.tagName))})).map((function(t){return t.element}));return 0===t.length?Promise.resolve([]):new Promise((function(i){for(var r=n.win,e=new r.IntersectionObserver((function(t){e.disconnect();for(var n=[],r=0;r<t.length;r++){var s=t[r],u=s.isIntersecting,o=s.target;u&&n.push(o)}i(n)}),{root:Ni(r)?r.document:null,threshold:.01}),s=0;s<Math.min(t.length,100);s++)e.observe(t[s])})).then((function(t){return Promise.all(t.map((function(t){return t.whenLoaded()})))}))}))}(i)}))},i.tick=function(t,i,n){Zt(null==i||null==n);var r,e={"label":t};null!=i?e.delta=r=Math.max(i,0):null!=n?e.value=n:(this.mark(t),r=this.win.performance.now(),e.value=this.ov+r),this.win.dispatchEvent(Ke(this.win,"perf",{label:t,delta:r})),this.hv&&this.av?this.Le.sendMessage("tick",e):this.Hv(e),this.lv.signal(t,r)},i.mark=function(t){var i,n;null===(i=(n=this.win.performance).mark)||void 0===i||i.call(n,t)},i.tickDelta=function(t,i){this.tick(t,i)},i.tickSinceVisible=function(t,i){var n,r,e=null==i?this.win.performance.now():i,s=this.ov+e,u=null!==(n=this.Le)&&void 0!==n&&n.isEmbedded()?null===(r=this.Ni)||void 0===r?void 0:r.getFirstVisibleTime():this.ov,o=u?Math.max(s-u,0):0;this.tickDelta(t,o)},i.flush=function(){this.hv&&this.av&&(null==this.cv&&(this.cv=Object.keys(this.fv).join(",")),this.Le.sendMessage("sendCsi",{"ampexp":this.cv,"canonicalUrl":this.sv.canonicalUrl,"eventid":this.rv},!0))},i.addEnabledExperiment=function(t){this.fv[t]=!0,this.cv=void 0},i.Hv=function(t){this.uv.length>=50&&this.uv.shift(),this.uv.push(t)},i._v=function(){var t=this;this.Le&&(this.av?(this.uv.forEach((function(i){t.Le.sendMessage("tick",i)})),this.uv.length=0):this.uv.length=0)},i.zv=function(t){this.Le&&this.Le.sendMessage("prerenderComplete",{"value":t},!0)},i.isPerformanceTrackingOn=function(){return this.av},i.getMetric=function(t){return this.lv.whenSignal(t)},t}();function Za(t){var i=t.document;if(i.fonts&&i.fonts.values)for(var n,r=i.fonts.values();n=r.next();){var e=n.value;if(!e)return;"loading"==e.status&&"display"in e&&"auto"==e.display&&(e.display="swap")}}var tc=function(){function t(t,i){this.ql=t,this.eo=i,this.Tm=!1,this.Nm=0,this.Dm=this.zp.bind(this),this.Um=this.qp.bind(this),this.Lm=this._p.bind(this),this.zm=this.Hm.bind(this),this.ql.addEventListener("touchstart",this.Dm,!0)}var i=t.prototype;return i.cleanup=function(){this.Gm(),this.ql.removeEventListener("touchstart",this.Dm,!0)},i.zp=function(t){this.Tm||!t.touches||1!=t.touches.length||this.eo.getScrollTop()>0||this.Vm(t.touches[0].clientY)},i.Vm=function(t){this.Tm=!0,this.Nm=t,this.ql.addEventListener("touchmove",this.Um,!0),this.ql.addEventListener("touchend",this.Lm,!0),this.ql.addEventListener("touchcancel",this.zm,!0)},i.Gm=function(){this.Tm=!1,this.Nm=0,this.ql.removeEventListener("touchmove",this.Um,!0),this.ql.removeEventListener("touchend",this.Lm,!0),this.ql.removeEventListener("touchcancel",this.zm,!0)},i.qp=function(t){if(this.Tm){var i=t.touches[0].clientY-this.Nm;i>0&&t.preventDefault(),0!=i&&this.Gm()}},i._p=function(t){this.Gm()},i.Hm=function(t){this.Gm()},t}(),ic=["amp-ad","amp-embed","amp-video"],nc="extensions",rc="0.1",ec="latest",sc="__AMP_EXT_LDR",uc=function(){function t(t){this.win=t,this.Kc=Jn(t),this.Df={},this.Uf=null,this.zf=null,this.Lf=null}var i=t.prototype;return i.registerExtension=function(t,i,n,r,e){var s,u=n?this.Df[ac(t,ec)]:null,o=this.Hf(t,i,null===(s=null==u?void 0:u.auto)||void 0===s||s);if(o.latest=n,!o.loaded){n&&(this.Df[ac(t,ec)]=o);try{var h,a;this.Uf=t,this.zf=i,this.Lf=n,r(e,e._),o.loaded=!0,null===(h=o.resolve)||void 0===h||h.call(o,o.extension),null==u||null===(a=u.resolve)||void 0===a||a.call(u,o.extension)}catch(t){var c,f;throw o.error=t,null===(c=o.reject)||void 0===c||c.call(o,t),null==u||null===(f=u.reject)||void 0===f||f.call(u,t),t}finally{this.Uf=null,this.zf=null,this.Lf=null}}},i.waitForExtension=function(t,i){var n=this.Gf(this.Hf(t,i));return fr(this.win).timeoutPromise(16e3,n).catch((function(i){if(!i.message.includes("timeout"))throw i;return Jt().error(nc,"Waited over 16s to load extension ".concat(t,".")),n}))},i.preloadExtension=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rc;"amp-embed"==t&&(t="amp-ad");var n=this.Hf(t,i);return this.Vf(t,i,n),this.Gf(n)},i.installExtensionForDoc=function(t,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rc,e=t.getRootNode(),s=e[sc];return s||(s=e[sc]=A()),s[i]?s[i]:(t.declareExtension(i,r),Pu(t.win,i),s[i]=this.preloadExtension(i,r).then((function(){return n.installExtensionInDoc(t,i,r)})))},i.reloadExtension=function(t,i,n){var r=An(this.win,t,i,n,!1),e=this.Df[ac(t,i)];return e&&(Zt(!e.loaded&&!e.error),e.scriptPresent=!1),r.forEach((function(i){return i.setAttribute("i-amphtml-loaded-new-version",t)})),this.preloadExtension(t,i)},i.importUnwrapped=function(t,i){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rc,e=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=An(t,i,r,e),u=s.length>0?s[0]:null;return u?n=u.__AMP_SCR_LOADED:(n=(u=wn(this.win,i,r)).__AMP_SCR_LOADED=new Promise((function(t,i){u.onload=t,u.onerror=i})),t.document.head.appendChild(u)),n},i.loadElementClass=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rc;return this.preloadExtension(t,i).then((function(i){return Zt(i.elements[t]).implementationClass}))},i.addElement=function(t,i,n){var r=this;this.Ff(t).extension.elements[t]={implementationClass:i,css:n},this.addDocFactory((function(e){r.Bf(e,t,i,n)}))},i.addTemplate=function(t,i){this.addDocFactory((function(n){!function(t,i,n){In(t,"templates").Dh(i,n)}(n,t,i)}))},i.Bf=function(t,i,n,r){var e=this;r?rs(t,r,(function(){e.qf(t.win,i,n)}),!1,i):this.qf(t.win,i,n)},i.qf=function(t,i,n){(function(t,i,n){var r=function(t,i){if(i.requiresShadowDom()&&!t.Element.prototype.attachShadow)return nr(t).importUnwrapped(t,"amp-shadow-dom-polyfill")}(t,n);r?r.then((function(){return Au(t,i,n)})):Au(t,i,n)})(t,i,n),En(t,i,hc)},i.addService=function(t,i){this.Ff(t).extension.services.push({serviceName:t,serviceClass:i}),this.addDocFactory((function(n){Pn(n,t,i,!0)}))},i.addDocFactory=function(t,i){var n=this.Ff(i);if(n.docFactories.push(t),this.Uf&&this.Kc.isSingleDoc()){var r=this.Kc.getAmpDoc(this.win.document),e=this.Uf,s=this.zf,u=this.Lf||!1;(r.declaresExtension(e,s)||u&&r.declaresExtension(e,ec)||n.auto)&&t(r)}},i.preinstallEmbed=function(t,i){var n=this.win,r=t.win;!function(t,i){Ou(t,i,"amp-img"),Ou(t,i,"amp-pixel")}(n,r),oc(r),i.forEach((function(i){var n=i.extensionId,e=i.extensionVersion;t.declareExtension(n,e),ic.includes(n)||Pu(r,n)}))},i.installExtensionsInDoc=function(t,i){var n=this;return Promise.all(i.map((function(i){var r=i.extensionId,e=i.extensionVersion;return n.installExtensionInDoc(t,r,e)})))},i.installExtensionInDoc=function(t,i){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:rc;return t.declareExtension(i,r),this.Gf(this.Hf(i,r)).then((function(){n.Hf(i,r).docFactories.forEach((function(n){try{n(t)}catch(t){d("Doc factory failed: ",t,i)}}))}))},i.Hf=function(t,i,n){var r=ac(t,i),e=this.Df[r];return e||(e={version:i,latest:i==ec,extension:{elements:{},services:[]},auto:n||!1,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},this.Df[r]=e),e},i.Ff=function(t){return this.Uf||Qt().error(nc,"unknown extension for ",t),this.Hf(this.Uf||"_UNKNOWN_",this.zf||"")},i.Gf=function(t){if(!t.promise)if(t.loaded)t.promise=Promise.resolve(t.extension);else if(t.error)t.promise=Promise.reject(t.error);else{var i=new a;t.promise=i.promise,t.resolve=i.resolve,t.reject=i.reject}return t.promise},i.Vf=function(t,i,n){if(this.$f(t,i,n)){var r=wn(this.win,t,i);this.win.document.head.appendChild(r),n.scriptPresent=!0}},i.$f=function(t,i,n){if(n.loaded||n.error)return!1;if(void 0===n.scriptPresent){var r=An(this.win,t,i,n.latest);n.scriptPresent=r.length>0}return!n.scriptPresent},t}();function oc(t){ic.forEach((function(i){Pu(t,i)}))}function hc(){return{}}function ac(t,i){return"".concat(t,":").concat(i)}var cc,fc="-shadowcsshost",lc=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",vc=(new RegExp("("+fc+lc,"gim"),new RegExp("(-shadowcsscontext"+lc,"gim"),new RegExp(fc,"gim"),new RegExp("-shadowcsscontext","gim"),"html{overflow-x:hidden!important}html.i-amphtml-fie{height:100%!important;width:100%!important}html:not([amp4ads]),html:not([amp4ads]) body{height:auto!important}html:not([amp4ads]) body{margin:0!important}body{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y pinch-zoom;touch-action:pan-y pinch-zoom}html.i-amphtml-fie>body,html.i-amphtml-singledoc>body{overflow:visible!important}html.i-amphtml-fie:not(.i-amphtml-inabox)>body,html.i-amphtml-singledoc:not(.i-amphtml-inabox)>body{position:relative!important}html.i-amphtml-ios-embed-legacy>body{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important}html.i-amphtml-ios-embed{overflow-y:auto!important;position:static}#i-amphtml-wrapper{overflow-x:hidden!important;overflow-y:auto!important;position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;margin:0!important;display:block!important}html.i-amphtml-ios-embed.i-amphtml-ios-overscroll,html.i-amphtml-ios-embed.i-amphtml-ios-overscroll>#i-amphtml-wrapper{-webkit-overflow-scrolling:touch!important}#i-amphtml-wrapper>body{position:relative!important;border-top:1px solid transparent!important}#i-amphtml-wrapper+body{visibility:visible}#i-amphtml-wrapper+body .i-amphtml-lightbox-element,#i-amphtml-wrapper+body[i-amphtml-lightbox]{visibility:hidden}#i-amphtml-wrapper+body[i-amphtml-lightbox] .i-amphtml-lightbox-element{visibility:visible}#i-amphtml-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}amp-instagram{padding:54px 0px 0px!important;background-color:#fff}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide]{display:none}[subscriptions-dialog],body:not(.i-amphtml-subs-ready) [subscriptions-action],body:not(.i-amphtml-subs-ready) [subscriptions-section]{display:none!important}amp-experiment,amp-live-list>[update]{display:none}amp-list[resizable-children]>.i-amphtml-loading-container.amp-hidden{display:none!important}amp-list [fetch-error],amp-list[load-more] [load-more-button],amp-list[load-more] [load-more-end],amp-list[load-more] [load-more-failed],amp-list[load-more] [load-more-loading]{display:none}amp-list[diffable] div[role=list]{display:block}amp-story-page,amp-story[standalone]{min-height:1px!important;display:block!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;width:100%!important}amp-story[standalone]{background-color:#000!important;position:relative!important}amp-story-page{background-color:#757575}amp-story .amp-active>div,amp-story .i-amphtml-loader-background{display:none!important}amp-story-page:not(:first-of-type):not([distance]):not([active]){transform:translateY(1000vh)!important}amp-autocomplete{position:relative!important;display:inline-block!important}amp-autocomplete>input,amp-autocomplete>textarea{padding:0.5rem;border:1px solid rgba(0,0,0,.33)}.i-amphtml-autocomplete-results,amp-autocomplete>input,amp-autocomplete>textarea{font-size:1rem;line-height:1.5rem}[amp-fx^=fly-in]{visibility:hidden}amp-script[nodom],amp-script[sandboxed]{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}\n/*# sourceURL=/css/ampdoc.css*/"),dc="[hidden]{display:none!important}.i-amphtml-element{display:inline-block}.i-amphtml-blurry-placeholder{transition:opacity 0.3s cubic-bezier(0.0,0.0,0.2,1)!important;pointer-events:none}[layout=nodisplay]:not(.i-amphtml-element){display:none!important}.i-amphtml-layout-fixed,[layout=fixed][width][height]:not(.i-amphtml-layout-fixed){display:inline-block;position:relative}.i-amphtml-layout-responsive,[layout=responsive][width][height]:not(.i-amphtml-layout-responsive),[width][height][heights]:not([layout]):not(.i-amphtml-layout-responsive),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-layout-responsive){display:block;position:relative}.i-amphtml-layout-intrinsic,[layout=intrinsic][width][height]:not(.i-amphtml-layout-intrinsic){display:inline-block;position:relative;max-width:100%}.i-amphtml-layout-intrinsic .i-amphtml-sizer{max-width:100%}.i-amphtml-intrinsic-sizer{max-width:100%;display:block!important}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,[layout=container],[layout=fixed-height][height]:not(.i-amphtml-layout-fixed-height){display:block;position:relative}.i-amphtml-layout-fill,.i-amphtml-layout-fill.i-amphtml-notbuilt,[layout=fill]:not(.i-amphtml-layout-fill),body noscript>*{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}body noscript>*{position:absolute!important;width:100%;height:100%;z-index:2}body noscript{display:inline!important}.i-amphtml-layout-flex-item,[layout=flex-item]:not(.i-amphtml-layout-flex-item){display:block;position:relative;-ms-flex:1 1 auto;flex:1 1 auto}.i-amphtml-layout-fluid{position:relative}.i-amphtml-layout-size-defined{overflow:hidden!important}.i-amphtml-layout-awaiting-size{position:absolute!important;top:auto!important;bottom:auto!important}i-amphtml-sizer{display:block!important}@supports (aspect-ratio:1/1){i-amphtml-sizer.i-amphtml-disable-ar{display:none!important}}.i-amphtml-blurry-placeholder,.i-amphtml-fill-content{display:block;height:0;max-height:100%;max-width:100%;min-height:100%;min-width:100%;width:0;margin:auto}.i-amphtml-layout-size-defined .i-amphtml-fill-content{position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-replaced-content,.i-amphtml-screen-reader{padding:0!important;border:none!important}.i-amphtml-screen-reader{position:fixed!important;top:0px!important;left:0px!important;width:4px!important;height:4px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:8px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:12px!important}.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader~.i-amphtml-screen-reader{left:16px!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}.i-amphtml-select-disabled{-webkit-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.i-amphtml-notbuilt,[layout]:not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt:not(.i-amphtml-layout-container)>*,[layout]:not([layout=container]):not(.i-amphtml-element)>*,[width][height][heights]:not([layout]):not(.i-amphtml-element)>*,[width][height][sizes]:not([layout]):not(.i-amphtml-element)>*{display:none}amp-img:not(.i-amphtml-element)[i-amphtml-ssr]>img.i-amphtml-fill-content{display:block}.i-amphtml-notbuilt:not(.i-amphtml-layout-container),[layout]:not([layout=container]):not(.i-amphtml-element),[width][height][heights]:not([layout]):not(.i-amphtml-element),[width][height][sizes]:not(img):not([layout]):not(.i-amphtml-element){color:transparent!important;line-height:0!important}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder],[layout]:not(.i-amphtml-element)>[placeholder],[width][height][heights]:not([layout]):not(.i-amphtml-element)>[placeholder],[width][height][sizes]:not([layout]):not(.i-amphtml-element)>[placeholder]{display:block;line-height:normal}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback],.i-amphtml-layout-container>[placeholder].amp-hidden,.i-amphtml-layout-container>[placeholder].hidden{display:none}.i-amphtml-layout-size-defined>[fallback],.i-amphtml-layout-size-defined>[placeholder]{position:absolute!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:1}amp-img[i-amphtml-ssr]:not(.i-amphtml-element)>[placeholder]{z-index:auto}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none!important}.i-amphtml-element-error{background:red!important;color:#fff!important;position:relative!important}.i-amphtml-element-error:before{content:attr(error-message)}i-amp-scroll-container,i-amphtml-scroll-container{position:absolute;top:0;left:0;right:0;bottom:0;display:block}i-amp-scroll-container.amp-active,i-amphtml-scroll-container.amp-active{overflow:auto;-webkit-overflow-scrolling:touch}.i-amphtml-loading-container{display:block!important;pointer-events:none;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden;display:initial;line-height:normal}.i-amphtml-layout-size-defined>[overflow]{position:absolute}.i-amphtml-element>[overflow].amp-visible{visibility:visible}template{display:none!important}.amp-border-box,.amp-border-box *,.amp-border-box :after,.amp-border-box :before{box-sizing:border-box}amp-pixel{display:none!important}amp-analytics,amp-auto-ads,amp-story-auto-ads{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-story{visibility:hidden!important}html.i-amphtml-fie>amp-analytics{position:initial!important}[visible-when-invalid]:not(.visible),form [submit-error],form [submit-success],form [submitting]{display:none}amp-accordion{display:block!important}@media (min-width:1px){:where(amp-accordion>section)>:first-child{margin:0;background-color:#efefef;padding-right:20px;border:1px solid #dfdfdf}:where(amp-accordion>section)>:last-child{margin:0}}amp-accordion>section{float:none!important}amp-accordion>section>*{float:none!important;display:block!important;overflow:hidden!important;position:relative!important}amp-accordion,amp-accordion>section{margin:0}amp-accordion:not(.i-amphtml-built)>section>:last-child{display:none!important}amp-accordion:not(.i-amphtml-built)>section[expanded]>:last-child{display:block!important}\n/*# sourceURL=/css/ampshared.css*/";Yt=$t,Qt(),Jt(),cc=function(t,i,n){Us(i,n),i&&t&&tt(i.message)&&!(i.message.indexOf(Q)>=0)&&function(t,i){if(Jn(i).isSingleDoc()){var n={"errorName":t.name,"errorMessage":t.message};!function(t,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];Xn(t).then((function(e){e&&e.triggerEventForTarget(t,i,n,r)}))}(function(t){var i=Jn(t).getSingleDoc().getRootNode();return i.documentElement||i.body||i}(i),"user-error",n,!1)}}(i,t)}.bind(null,self),self.__AMP_REPORT_ERROR=cc;var mc,pc="runtime";function gc(t,i){if(t.__AMP_TAG)return h();t.__AMP_TAG=!0;var n=t.AMP||[];En(t,"extensions",uc);var r=nr(t);Wa(t),oc(t),t.AMP={win:t,"_":t.AMP?t.AMP._:void 0},t.AMP.config={urls:{thirdParty:Pt,thirdPartyFrameHost:Ot,thirdPartyFrameRegex:It,cdn:Tt,cdnProxyRegex:xt,localhostRegex:Mt,errorReporting:St,betaErrorReporting:Rt,localDev:_t,trustedViewerHosts:kt,geoApi:Ct}},t.AMP.addGlobalConsentListener=function(){},t.AMP.addGranularConsentListener=function(){},t.AMP.BaseElement=uu,t.AMP.registerElement=r.addElement.bind(r),t.AMP.registerTemplate=r.addTemplate.bind(r),t.AMP.registerServiceForDoc=r.addService.bind(r),t.AMP.isExperimentOn=Fe.bind(null,t),t.AMP.toggleExperiment=Be.bind(null,t),t.AMP.setLogLevel=Ht.bind(null),t.AMP.setTickFunction=function(t,i){};var e=i(t,r);function s(i){!function(t,i,n){"function"==typeof i||"high"==i.p?h().then(n):(n.displayName=i.n,Zs(t.document,n))}(t,i,(function(){e.then((function(){"function"==typeof i?i(t.AMP,t.AMP.vl):r.registerExtension(i.n,i.ev,i.l,i.f,t.AMP)}))}))}for(var u=0;u<n.length;u++){var o=n[u];if(bc(t,o))n.splice(u--,1);else if("function"==typeof o||"high"==o.p){try{s(o)}catch(t){Qt().error(pc,"Extension failed: ",t,o.n)}n.splice(u--,1)}}!function(t,i){t.document.body&&!function(t){return ns(t).length>0}(t)?fr(t).delay(i,1):i()}(t,(function(){t.AMP.push=function(i){bc(t,i)||s(i)};for(var i=0;i<n.length;i++){var r=n[i];if(!bc(t,r))try{s(r)}catch(t){Qt().error(pc,"Extension failed: ",t,r.n)}}n.length=0})),t.AMP.push||(t.AMP.push=n.push.bind(n)),or(t).isIos()&&kr(t.document.documentElement,"cursor","pointer");var a=nr(t);return Ki(t)&&a.preloadExtension("amp-resize-observer-polyfill"),Fi(t)&&a.preloadExtension("amp-intersection-observer-polyfill"),e}function bc(t,i){return"function"!=typeof i&&(!!i.m||"2502242315000"!=i.v&&(nr(t).reloadExtension(i.n,i.ev,i.l),!0))}function yc(t,i){Zs(self.document,(function(){Wa(self),Ya(t),i.coreServicesAvailable(),function(t){var i=new a,n=i.promise,r=i.resolve;yh=fr(t).timeoutPromise(8e3,n,"TrackImpressionPromise timeout").catch((function(t){Qt().warn("IMPRESSION",t)}));var e=mr(t.document.documentElement),s=e.isTrustedViewer(),u=e.getReferrerUrl().then((function(t){return function(t){var i=ms(t);return"https:"==i.protocol&&Ah.some((function(t){return t.test(i.hostname)}))}(t)}));Promise.all([s,u]).then((function(i){var n=i[0],e=i[1];if(n||e||Fe(t,"alp")){var s=function(t){var i=mr(t.document.documentElement);return i.getParam("replaceUrl")?i.hasCapability("replaceUrl")?i.sendMessageAwaitResponse("getReplaceUrl",void 0).then((function(t){t&&"object"==p(t)?i.replaceUrl(t.replaceUrl||null):Qt().warn("IMPRESSION","get invalid replaceUrl response")}),(function(t){Qt().warn("IMPRESSION","Error request replaceUrl from viewer",t)})):(i.replaceUrl(i.getParam("replaceUrl")||null),h()):h()}(t),u=function(t){var i=Kn(t.document.documentElement),n=mr(i).getParam("click");return n?0!=n.indexOf("https://")?(Jt().warn("IMPRESSION","click fragment param should start with https://. Found ",n),h()):(Gr.getLocation(t).hash&&(Gr.getLocation(t).hash=""),i.whenFirstVisible().then((function(){return function(t,i){return br(t).fetchJson(i,{credentials:"include"}).then((function(t){return 204==t.status?null:t.json()}))}(t,n)})).then((function(i){!function(t,i){if(i){var n=i.location,r=i.tracking_url||n;if(r&&!Ps(r)&&((new Image).src=r),n){if(!t.history.replaceState)return;var e=mr(t.document.documentElement),s=ys(Gr.getLocation(t).href,yt(ms(n).search));t.history.propertyIsEnumerable(null,"",s),e.maybeUpdateFragmentForCct()}}}(t,i)})).catch((function(t){Jt().warn("IMPRESSION","Error on request clickUrl: ",t)}))):h()}(t);Promise.all([s,u]).then((function(){r()}),(function(){}))}else r()}))}(self)})),Zs(self.document,(function(){gc(self,(function(t){return function(t){var i=t.document.documentElement,n=Jn(t).getSingleDoc();t.AMP.ampdoc=n;var r=mr(i);t.AMP.viewer=r,Dt().development&&(t.AMP.toggleRuntime=r.toggleRuntime.bind(r),t.AMP.resources=ar(i));var e=gr(i);t.AMP.viewport={},t.AMP.viewport.getScrollLeft=e.getScrollLeft.bind(e),t.AMP.viewport.getScrollWidth=e.getScrollWidth.bind(e),t.AMP.viewport.getWidth=e.getWidth.bind(e)}(t),(i=t).AMP.installAmpdocServices=Ya.bind(null),i.AMP.combinedCss=vc+dc,Ti(t.document).then((function(){Eu(t.AMP.ampdoc)}));var i}))})),Zs(self.document,(function(){!function(t){!function(t){Iu(t,Mu,Ru)}(t),function(t){Iu(t,Du,ju)}(t),function(t){Iu(t,"amp-layout",_u)}(t)}(self)})),Zs(self.document,(function(){Eu(t),mn(self.document).then((function(){return bu()}))})),Zs(self.document,(function(){(function(t){var i=t.document.documentElement;"0"==mr(i).getParam("p2r")&&or(t).isChrome()&&new tc(t.document,gr(i))})(self),function(t){var i=t.win;Hu(i.document)&&t.isSingleDoc()&&!i.document.documentElement.hasAttribute("data-amp-auto-lightbox-disable")&&tu(t,(function(){Ka(t).then((function(n){n||nr(i).installExtensionForDoc(t,"amp-auto-lightbox")}))}),10)}(t),function(t){var i=t.win;Hu(i.document)&&or(t.win).isStandalone()&&tu(t,(function(){nr(i).installExtensionForDoc(t,"amp-standalone").then((function(){return Vn(t.getBody(),"standalone","amp-standalone")})).then((function(t){return t.initialize()}))}),10)}(t),function(t){var i=t.location.href;if(!i.startsWith("about:")){var n=!1,r=wt(t);Ut(t,r)&&(n="0"!==r.validate),n&&function(t,i){var n=t.createElement("script");if(self.trustedTypes&&self.trustedTypes.createPolicy){var r=self.trustedTypes.createPolicy("validator-integration#loadScript",{createScriptURL:function(t){return"https://cdn.ampproject.org/v0/validator_wasm.js"===t?t:""}});n.src=r.createScriptURL(i)}else n.src=i;Li(t,n);var e=Ze(n).then((function(){t.head.removeChild(n)}),(function(){}));return t.head.appendChild(n),e}(t.document,"".concat(Tt,"/v0/validator_wasm.js")).then((function(){amp.validator.validateUrlAndLog(i,t.document)}))}}(self),function(t){Zt(t.defaultView);var i=t.defaultView;Ti(t).then((function(){return function(t){var i=ns(t).map((function(i){var n=function(t,i){return jn(t,i)}(t,i).then((function(t){return t&&function(t){return"function"==typeof t.whenReady}(t)?t.whenReady().then((function(){return t})):t}));return fr(t).timeoutPromise(3e3,n,"Render timeout waiting for service ".concat(i," to be ready."))}));return Promise.all(i)}(i)})).catch((function(t){return d(t),[]})).then((function(n){ss=!0,t.body.getBoundingClientRect(),os(t),kn(t).signals().signal(Te),n.length>0&&ar(t.documentElement).schedulePass(1,!0);try{var r=ur(i);r.tick("mbv"),r.flush()}catch(t){}}))}(self.document),function(t){mn(t).then((function(){var i=t.defaultView;if(i){var n=hr(i),r=ir(t.documentElement),e=Kn(t);n.url(e,r.sourceUrl),n.url(e,r.canonicalUrl)}}))}(self.document)}),!0),Zs(self.document,(function(){i.tick("e_is"),ar(t).ampInitComplete(),i.flush()}))}self.location&&(self.location.originalHash=self.location.hash);try{!function(t){t.onerror=Hs,t.addEventListener("unhandledrejection",(function(t){!t.reason||t.reason.message!==Cs&&t.reason.message!==Ns&&"AbortError"!==t.reason.message?Us(t.reason||new Error("rejected promise "+t)):t.preventDefault()}))}(self),function(t,i,n){En(t,"ampdoc",(function(){return new Wr(t,!0,void 0)}))}(self),mc=Jn(self)}catch(t){throw us(self.document),t}Zs(self.document,(function(){var t=mc.getAmpDoc(self.document);Dh(self),En(self,"performance",Qa);var i=ur(self);(function(t){ln(t.document,(function(){return function(t){var i=1500,n=t.performance;n&&n.timing&&n.timing.navigationStart&&(i=Date.now()-n.timing.navigationStart);var r=Math.max(1,2100-i);t.setTimeout((function(){Za(t);var i=t.document.styleSheets;if(i){for(var n=t.document.querySelectorAll('link[rel~="stylesheet"]:not([href^="https://translate.googleapis.com/translate_static/css/"]):not([href^="'.concat(vi(Tt),'"])')),e=[],s=0;s<n.length;s++){for(var u=n[s],o=!1,h=0;h<i.length;h++)if(i[h].ownerNode==u){o=!0;break}o||e.push(u)}for(var a=function(i){var n=e[i],s=n.media||"all";n.media="print",n.onload=function(){n.media=s,Za(t)},n.setAttribute("i-amphtml-timeout",r),n.parentNode.insertBefore(n,n.nextSibling)},c=0;c<e.length;c++)a(c)}}),r)}(t)}))})(self),i.tick("is"),rs(t,vc+dc,(function(){return yc(t,i)}),!0,"amp-runtime")})),self.console&&(console.info||console.log).call(console,"Powered by AMP ⚡ HTML – Version ".concat("2502242315000"),self.location.href),self.document.documentElement.setAttribute("amp-version","2502242315000")}()}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.js.map
}