self.AMP_CONFIG={"allow-doc-opt-in":["visibility-v3","amp-animation"],"allow-url-opt-in":["pump-early-frame"],"canary":0,"pan-y":1,"expAdsenseA4A":0.1,"expDoubleclickA4A":0.1,"a4aProfilingRate":0.1,"ad-type-custom":1,"amp-scrollable-carousel":1,"ios-embed-wrapper":1,"amp-apester-media":1,"amp-accordion-session-state-optout":1,"amp-playbuzz":1,"make-body-relative":1,"chunked-amp":1,"amp-selector":1,"sticky-ad-early-load":1,"amp-auto-ads":1,"slidescroll-disable-css-snap":1,"visibility-v3":1,"web-worker":1,"a4aFastFetchDoubleclickLaunched":0,"a4aFastFetchAdSenseLaunched":0,"pump-early-frame":1,"v":"011493855940942"};/*AMP_CONFIG*/try{(function(){var f;function ca(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}var da=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global?global:a}(this);function ea(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function fa(a,b){return b.length>a.length?!1:0==a.lastIndexOf(b,0)};var ga=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function la(a){var b=Object.create(null);if(!a)return b;for(var c;c=ga.exec(a);){var d=decodeURIComponent(c[1]).trim(),e=c[2]?decodeURIComponent(c[2]).trim():"";b[d]=e}return b};var ma="";function p(a){var b=a||self,c;if(b.AMP_MODE)c=b.AMP_MODE;else{c=b;if(c.context&&c.context.mode)c=c.context.mode;else{var d=la(c.location.originalHash||c.location.hash),e=la(c.location.search);ma||(ma=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"011493855940942");c={localDev:!1,development:!("1"!=d.development&&!c.AMP_DEV_MODE),filter:d.filter,minified:!0,lite:void 0!=e.amp_lite,test:!1,log:d.log,version:"1493855940942",rtvVersion:ma}}c=b.AMP_MODE=c}return c};var na=Object.prototype.toString;function ra(a){return Array.isArray(a)}function sa(a){return"[object Object]"===na.call(a)};var ta=Date.now();function ua(a,b,c){this.win=a;this.nf=b;this.Ka=this.win.console&&this.win.console.log&&"0"!=p().log?this.nf({localDev:!1,development:p(void 0).development,filter:p(void 0).filter,minified:!0,lite:p(void 0).lite,test:!1,log:p(void 0).log,version:p(void 0).version,rtvVersion:p(void 0).rtvVersion}):0;this.bc=c||""}
function va(a,b,c,d){if(0!=a.Ka){var e=a.win.console.log;"ERROR"==c?e=a.win.console.error||e:"INFO"==c?e=a.win.console.info||e:"WARN"==c&&(e=a.win.console.warn||e);d.unshift(Date.now()-ta,"["+b+"]");e.apply(a.win.console,d)}}f=ua.prototype;f.isEnabled=function(){return 0!=this.Ka};f.fine=function(a,b){4<=this.Ka&&va(this,a,"FINE",Array.prototype.slice.call(arguments,1))};f.info=function(a,b){3<=this.Ka&&va(this,a,"INFO",Array.prototype.slice.call(arguments,1))};
f.warn=function(a,b){2<=this.Ka&&va(this,a,"WARN",Array.prototype.slice.call(arguments,1))};f.Sd=function(a,b){if(1<=this.Ka)va(this,a,"ERROR",Array.prototype.slice.call(arguments,1));else{var c=wa.apply(null,Array.prototype.slice.call(arguments,1));xa(this,c);return c}};f.error=function(a,b){var c=this.Sd.apply(this,arguments);c&&self.reportError(c)};f.expectedError=function(a,b){var c=this.Sd.apply(this,arguments);c&&(c.expected=!0,self.reportError(c))};
f.createError=function(a){var b=wa.apply(null,arguments);xa(this,b);return b};f.createExpectedError=function(a){var b=wa.apply(null,arguments);xa(this,b);b.expected=!0;return b};
f.assert=function(a,b,c){var d;if(!a){var e=(b||"Assertion failed").split("%s"),g=e.shift(),h=g,k=[];""!=g&&k.push(g);for(g=2;g<arguments.length;g++){var l=arguments[g];l&&l.tagName&&(d=l);var m=e.shift();k.push(l);var n=m.trim();""!=n&&k.push(n);var n=h,q;q=(q=l)&&1==q.nodeType?q.tagName.toLowerCase()+(q.id?"#"+q.id:""):q;h=n+(q+m)}g=Error(h);g.fromAssert=!0;g.associatedElement=d;g.messageArray=k;xa(this,g);self.reportError(g);throw g;}return a};
f.assertElement=function(a,b){this.assert(a&&1==a.nodeType,(b||"Element expected")+": %s",a);return a};f.assertString=function(a,b){this.assert("string"==typeof a,(b||"String expected")+": %s",a);return a};f.assertNumber=function(a,b){this.assert("number"==typeof a,(b||"Number expected")+": %s",a);return a};f.assertEnumValue=function(a,b,c){a:{for(var d in a)if(a[d]===b){a=!0;break a}a=!1}if(a)return b;this.assert(!1,'Unknown %s value: "%s"',c||"enum",b)};
function xa(a,b){a.bc?b.message?-1==b.message.indexOf(a.bc)&&(b.message+=a.bc):b.message=a.bc:0<=b.message.indexOf("\u200b\u200b\u200b")&&(b.message=b.message.replace("\u200b\u200b\u200b",""))}function wa(a){for(var b=null,c="",d=0;d<arguments.length;d++){var e=arguments[d];e instanceof Error&&!b?b=e:(c&&(c+=" "),c+=e)}b?c&&(b.message=c+": "+b.message):b=Error(c);return b}function ya(a){var b=wa.apply(null,arguments);setTimeout(function(){self.reportError(b);throw b;})}
self.log=self.log||{user:null,dev:null};var za=self.log,Aa=null;function t(){if(za.user)return za.user;if(!Aa)throw Error("failed to call initLogConstructor");return za.user=new Aa(self,function(a){var b=parseInt(a.log,10);return a.development||1<=b?4:0},"\u200b\u200b\u200b")}function v(){if(za.dev)return za.dev;if(!Aa)throw Error("failed to call initLogConstructor");return za.dev=new Aa(self,function(a){a=parseInt(a.log,10);return 3<=a?4:2<=a?3:0})};function w(){var a,b=Object.create(null);a&&Object.assign(b,a);return b};var Ea={},z=self.AMP_CONFIG||{};
Ea.urls={thirdParty:z.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:z.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof z.thirdPartyFrameRegex?new RegExp(z.thirdPartyFrameRegex):z.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:z.cdnUrl||"https://cdn.ampproject.org",cdnProxyRegex:("string"==typeof z.cdnProxyRegex?new RegExp(z.cdnProxyRegex):z.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org/,localhostRegex:/^https?:\/\/localhost(:\d+)?$/,errorReporting:z.errorReportingUrl||
"https://amp-error-reporting.appspot.com/r",localDev:z.localDev||!1};var Fa,Ga,Ha=/[?&]amp_js[^&]*/;function E(a,b){Fa||(Fa=self.document.createElement("a"),Ga=self.UrlCache||(self.UrlCache=Object.create(null)));var c=Ga[a];if(c)return c;var d=Ia(Fa,a),e=d;return b?e:Ga[a]=e}
function Ia(a,b){a.href=b;a.protocol||(a.href=a.href);b={href:a.href,protocol:a.protocol,host:a.host,hostname:a.hostname,port:"0"==a.port?"":a.port,pathname:a.pathname,search:a.search,hash:a.hash,origin:null};"/"!==b.pathname[0]&&(b.pathname="/"+b.pathname);if("http:"==b.protocol&&80==b.port||"https:"==b.protocol&&443==b.port)b.port="",b.host=b.hostname;b.origin=a.origin&&"null"!=a.origin?a.origin:"data:"!=b.protocol&&b.host?b.protocol+"//"+b.host:b.href;return b}
function Ja(a,b,c){if(!b)return a;var d=a.split("#",2),e=d[0].split("?",2),g=e[0]+(e[1]?c?"?"+b+"&"+e[1]:"?"+e[1]+"&"+b:"?"+b);return g+=d[1]?"#"+d[1]:""}function Ka(a){"string"==typeof a&&(a=E(a));return"https:"==a.protocol||"localhost"==a.hostname||ea(a.hostname,".localhost")}
function La(a,b,c){c=void 0===c?"source":c;t().assert(null!=a,"%s %s must be available",b,c);var d=a;t().assert(Ka(d)||/^(\/\/)/.test(d),'%s %s must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value: %s',b,c,d)}function Ma(a){var b=a.indexOf("#");return-1==b?a:a.substring(0,b)}function Na(a){"string"==typeof a&&(a=E(a));return Ea.urls.cdnProxyRegex.test(a.origin)}
function Ua(a){"string"==typeof a&&(a=E(a));if(!Na(a))return a.href;var b=a.pathname.split("/"),c=b[1];t().assert("c"==c||"v"==c,"Unknown path prefix in url %s",a.href);var d=b[2],e="s"==d?"https://"+decodeURIComponent(b[3]):"http://"+decodeURIComponent(d);t().assert(0<e.indexOf("."),"Expected a . in origin %s",e);b.splice(1,"s"==d?3:2);b=e+b.join("/");c=(c=a.search)&&"?"!=c?(c=c.replace(Ha,"").replace(/^[?&]/,""))?"?"+c:"":"";return b+c+(a.hash||"")}
function Va(a){var b=E(a),c=la(b.search);t().assert(!("__amp_source_origin"in c),"Source origin is not allowed in %s",a)};function Wa(a){var b;a:{try{b=a.document.cookie;break a}catch(h){}b=void 0}var c=b;if(!c)return null;var d=c.split(";");for(a=0;a<d.length;a++){var e=d[a].trim(),g=e.indexOf("=");if(-1!=g&&"AMP_EXP"==decodeURIComponent(e.substring(0,g).trim()))return decodeURIComponent(e.substring(g+1).trim())}return null}
function Xa(a,b,c,d){"ampproject.org"==d&&(b="delete",c=0);b=encodeURIComponent("AMP_EXP")+"="+encodeURIComponent(b)+"; path=/"+(d?"; domain="+d:"")+"; expires="+(new Date(c)).toUTCString();try{a.document.cookie=b}catch(e){}};var F=null;function Ya(a){return!(!a.AMP_CONFIG||!a.AMP_CONFIG.canary)}function G(a,b){var c=Za(a);return!!c[b]}
function $a(a,b,c,d){var e=G(a,b),g=!(void 0!==c?!c:e);if(g!=e&&(Za(a)[b]=g,!d)){var h=jb(a);h[b]=g;b=h;var k=[],l;for(l in b)k.push((!1===b[l]?"-":"")+l);a:{l=k.join(",");b=Date.now()+15552E6;k={domain:a.location.hostname,allowOnProxyOrigin:!0};if(!k||!k.allowOnProxyOrigin){if(Na(a.location.href))throw Error("Should never attempt to set cookie on proxy origin: AMP_EXP");var m=E(a.location.href).hostname.toLowerCase(),n=E(Ea.urls.cdn).hostname.toLowerCase();if(m==n||ea(m,"."+n))throw Error("Should never attempt to set cookie on proxy origin. (in depth check): AMP_EXP");
}if(k&&k.highestAvailableDomain)for(var m=a.location.hostname.split("."),n=m[m.length-1],q=m.length-2;0<=q;q--)if(n=m[q]+"."+n,Xa(a,l,b,n),Wa(a)==l)break a;m=void 0;k&&k.domain&&(m=k.domain);Xa(a,l,b,m)}}return g}
function Za(a){if(F)return F;F=Object.create(null);if(a.AMP_CONFIG)for(var b in a.AMP_CONFIG){var c=a.AMP_CONFIG[b];"number"===typeof c&&0<=c&&1>=c&&(F[b]=Math.random()<c)}if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-doc-opt-in"])&&0<a.AMP_CONFIG["allow-doc-opt-in"].length){var d=a.AMP_CONFIG["allow-doc-opt-in"],e=a.document.head.querySelector('meta[name="amp-experiments-opt-in"]');if(e){var g=e.getAttribute("content").split(",");for(b=0;b<g.length;b++)-1!=d.indexOf(g[b])&&(F[g[b]]=!0)}}Object.assign(F,
jb(a));if(a.AMP_CONFIG&&Array.isArray(a.AMP_CONFIG["allow-url-opt-in"])&&0<a.AMP_CONFIG["allow-url-opt-in"].length){b=a.AMP_CONFIG["allow-url-opt-in"];var h=a.location.originalHash||a.location.hash;a=la(h);for(var k=0;k<b.length;k++){var l=a["e-"+b[k]];"1"==l&&(F[b[k]]=!0);"0"==l&&(F[b[k]]=!1)}}return F}function jb(a){var b=Wa(a),c=b?b.split(/\s*,\s*/g):[];a=Object.create(null);for(var d=0;d<c.length;d++)0!=c[d].length&&("-"==c[d][0]?a[c[d].substr(1)]=!1:a[c[d]]=!0);return a};function kb(a){return a==this||this.documentElement.contains(a)}function lb(a){a.HTMLDocument.prototype.contains||a.Object.defineProperty(a.HTMLDocument.prototype,"contains",{enumerable:!1,configurable:!0,writable:!0,value:kb})};function mb(a){return(a=Number(a))?0<a?1:-1:a};var nb=Object.prototype.hasOwnProperty;function ob(a,b){if(null==a)throw new TypeError("Cannot convert undefined or null to object");for(var c=Object(a),d=1;d<arguments.length;d++){var e=arguments[d];if(null!=e)for(var g in e)nb.call(e,g)&&(c[g]=e[g])}return c};function pb(a){if(!(this instanceof pb))throw new TypeError("Constructor Promise requires `new`");if(!qb(a))throw new TypeError("Must pass resolver function");this._state=rb;this._value=[];this._isChainEnd=!0;sb(this,tb(this,ub),tb(this,vb),{then:a})}pb.prototype.then=function(a,b){a=qb(a)?a:void 0;b=qb(b)?b:void 0;if(a||b)this._isChainEnd=!1;return this._state(this._value,a,b)};pb.prototype.catch=function(a){return this.then(void 0,a)};
function wb(a){var b=this,c;return c=a===Object(a)&&a instanceof this?a:new b(function(b){b(a)})}function xb(a){return new this(function(b,c){c(a)})}function yb(a){var b=this;return new b(function(c,d){var e=a.length,g=Array(e);if(0===e)return c(g);zb(a,function(a,k){b.resolve(a).then(function(a){g[k]=a;0===--e&&c(g)},d)})})}function Ab(a){var b=this;return new b(function(c,d){for(var e=0,g=a.length;e<g;e++)b.resolve(a[e]).then(c,d)})}
function ub(a,b,c,d){if(!b)return this;d||(d=new Qb(this.constructor));Rb(Sb(d,b,a));return d.promise}function vb(a,b,c,d){if(!c)return this;d||(d=new Qb(this.constructor));Rb(Sb(d,c,a));return d.promise}function rb(a,b,c,d){if(!b&&!c)return this;d||(d=new Qb(this.constructor));a.push({deferred:d,onFulfilled:b||d.resolve,onRejected:c||d.reject});return d.promise}function Qb(a){var b=this;this.promise=new a(function(a,d){b.resolve=a;b.reject=d});return b}
function Tb(a,b,c){var d=a._value;a._state=b;a._value=c;for(var e=0;e<d.length;e++){var g=d[e];a._state(c,g.onFulfilled,g.onRejected,g.deferred)}b===vb&&a._isChainEnd&&setTimeout(function(){if(a._isChainEnd)throw c;},0)}function tb(a,b){return function(c){Tb(a,b,c)}}function Ub(){}function qb(a){return"function"===typeof a}function zb(a,b){for(var c=0;c<a.length;c++)b(a[c],c)}
function Sb(a,b,c){var d=a.promise,e=a.resolve,g=a.reject;return function(){try{var a=b(c);e!==b&&g!==b&&sb(d,e,g,a,a)}catch(k){g(k)}}}var Rb=function(){function a(){for(var a=0;a<e;a++){var b=d[a];d[a]=null;b()}e=0}function b(a){0===e&&c();d[e++]=a}var c;"undefined"!==typeof window&&window.postMessage?(window.addEventListener("message",a),c=function(){window.postMessage("macro-task","*")}):c=function(){setTimeout(a,0)};var d=Array(16),e=0;return b}();
function sb(a,b,c,d,e){var g=c,h,k;try{if(d===a)throw new TypeError("Cannot fulfill promise with itself");var l=d===Object(d);l&&d instanceof a.constructor?Tb(a,d._state,d._value):l&&(h=d.then)&&qb(h)?(k=function(d){k=g=Ub;sb(a,b,c,d,d)},g=function(a){k=g=Ub;c(a)},h.call(e,function(a){k(a)},function(a){g(a)})):b(d)}catch(m){g(m)}};function Vb(a,b){var c=b||0,d=this.length;for(b=0<=c?c:Math.max(d+c,0);b<d;b++){var e=this[b];if(e===a||a!==a&&e!==e)return!0}return!1};function Wb(a){function b(){var a=Bb.splice(0,Bb.length);for(Cb=0;a.length;)a.shift().call(null,a.shift())}function c(a,b){for(var c=0,d=a.length;c<d;c++)x(a[c],b)}function d(a){for(var b=0,c=a.length,d;b<c;b++)d=a[b],ab(d,bb[g(d)])}function e(a){return function(b){yh(b)&&(x(b,a),c(b.querySelectorAll(oa),a))}}function g(a){var b=Oa.call(a,"is"),c=a.nodeName.toUpperCase();a=aa.call(Ba,b?Eb+b.toUpperCase():cb+c);return b&&-1<a&&!h(c,b)?-1:a}function h(a,b){return-1<oa.indexOf(a+'[is="'+b+'"]')}function k(a){var b=
a.currentTarget,c=a.attrChange,d=a.attrName,e=a.target,g=a[Fb]||2,h=a[Cc]||3;if(Gb&&(!e||e===b)&&b[pa]&&"style"!==d&&(a.prevValue!==a.newValue||""===a.newValue&&(c===g||c===h)))b[pa](d,c===g?null:a.prevValue,c===h?null:a.newValue)}function l(a){var c=e(a);return function(a){Bb.push(c,a.target);Cb&&clearTimeout(Cb);Cb=setTimeout(b,1)}}function m(a){ue&&(ue=!1,a.currentTarget.removeEventListener(ve,m));c((a.target||y).querySelectorAll(oa),a.detail===ba?ba:ha);Pa&&C()}function n(a,b){we.call(this,a,
b);Dc.call(this,{target:this})}function q(a,b){Ah(a,b);Hb?Hb.observe(a,Bh):(Ib&&(a.setAttribute=n,a[S]=Ec(a),a[ia](Ch,Dc)),a[ia](Ca,k));a[db]&&Gb&&(a.created=!0,a[db](),a.created=!1)}function C(){for(var a,b=0,c=eb.length;b<c;b++)a=eb[b],Qa.contains(a)||(c--,eb.splice(b--,1),x(a,ba))}function u(a){throw Error("A "+a+" type is already registered");}function x(a,b){var c,d=g(a);-1<d&&(Fc(a,bb[d]),d=0,b!==ha||a[ha]?b!==ba||a[ba]||(a[ha]=!1,a[ba]=!0,d=1):(a[ba]=!1,a[ha]=!0,d=1,Pa&&0>aa.call(eb,a)&&eb.push(a)),
d&&(c=a[b+Da])&&c.call(a))}function r(){}function D(a,b,c){c=c&&c[fb]||"";var d=b.prototype,e=Gc(d),g=b.observedAttributes||Hc,h={prototype:e};Jb(e,db,{value:function(){if(Kb)Kb=!1;else if(!this[gb]){this[gb]=!0;new b(this);d[db]&&d[db].call(this);var a=hb[Lb.get(b)];(!Ra||1<a.create.length)&&ja(this)}}});Jb(e,pa,{value:function(a){-1<aa.call(g,a)&&d[pa].apply(this,arguments)}});d[xe]&&Jb(e,Dh,{value:d[xe]});d[ye]&&Jb(e,Eh,{value:d[ye]});c&&(h[fb]=c);a=a.toUpperCase();hb[a]={constructor:b,create:c?
[c,Mb(a)]:[a]};Lb.set(b,a);y[qa](a.toLowerCase(),h);T(a);Sa[a].r()}function A(a){return(a=hb[a.toUpperCase()])&&a.constructor}function U(a){return"string"===typeof a?a:a&&a.is||""}function ja(a){for(var b=a[pa],c=b?a.attributes:Hc,d=c.length,e;d--;)e=c[d],b.call(a,e.name||e.nodeName,null,e.value||e.nodeValue)}function T(a){a=a.toUpperCase();a in Sa||(Sa[a]={},Sa[a].p=new ze(function(b){Sa[a].r=b}));return Sa[a].p}function L(){function b(b){var c=a[b];if(c){a[b]=function zh(a){var b;a||(a=this);a[gb]||
(Kb=!0,a=hb[Lb.get(a.constructor)],a=(b=Ra&&1===a.create.length)?Reflect.construct(c,Hc,a.constructor):y.createElement.apply(y,a.create),a[gb]=!0,Kb=!1,b||ja(a));return a};a[b].prototype=c.prototype;try{c.prototype.constructor=a[b]}catch(zh){Fh=!0,Ta(c,gb,{value:a[b]})}}}ka&&delete a.customElements;Ta(a,"customElements",{configurable:!0,value:new r});Ta(a,"CustomElementRegistry",{configurable:!0,value:r});for(var c=V.get(/^HTML[A-Z]*[a-z]/),d=c.length;d--;b(c[d]));y.createElement=function(a,b){return(b=
U(b))?Ic.call(this,a,Mb(b)):Ic.call(this,a)}}var y=a.document,B=a.Object,V=function(a){function b(a,b){b=b.toLowerCase();b in e||(e[a]=(e[a]||[]).concat(b),e[b]=e[b.toUpperCase()]=a)}function c(a){var b=[],c;for(c in e)a.test(c)&&b.push(c);return b}var d=/^[A-Z]+[a-z]/,e=(B.create||B)(null),g={},h,k,l,m;for(k in a)for(m in a[k])for(l=a[k][m],e[m]=l,h=0;h<l.length;h++)e[l[h].toLowerCase()]=e[l[h].toUpperCase()]=m;g.get=function(a){return"string"===typeof a?e[a]||(d.test(a)?[]:""):c(a)};g.set=function Sj(a,
c){return d.test(a)?b(a,c):b(c,a),g};return g}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],
HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:"element abbr address article aside b bdi bdo cite code command dd dfn dt em figcaption figure footer header i kbd mark nav noscript rp rt ruby s samp section small strong sub summary sup u var wbr".split(" "),HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],
HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:"h1 h2 h3 h4 h5 h6".split(" "),HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],
HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],
HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],
HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}}),qa="registerElement",S="__"+qa+(1E5*a.Math.random()>>0),ia="addEventListener",
ha="attached",Da="Callback",ba="detached",fb="extends",pa="attributeChanged"+Da,Dh=ha+Da,xe="connected"+Da,ye="disconnected"+Da,db="created"+Da,Eh=ba+Da,Fb="ADDITION",Jc="MODIFICATION",Cc="REMOVAL",Ca="DOMAttrModified",ve="DOMContentLoaded",Ch="DOMSubtreeModified",cb="<",Eb="=",Gh=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,Hh="ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "),Ba=[],bb=[],oa="",Qa=y.documentElement,aa=Ba.indexOf||function(a){for(var b=
this.length;b--&&this[b]!==a;);return b},Kc=B.prototype,Lc=Kc.hasOwnProperty,Nb=Kc.isPrototypeOf,Ta=B.defineProperty,Hc=[],Mc=B.getOwnPropertyDescriptor,Ae=B.getOwnPropertyNames,Ih=B.getPrototypeOf,Be=B.setPrototypeOf,Ce=!!B.__proto__,Fh=!1,gb="__dreCEv1",ka=a.customElements,Ra=!!(ka&&ka.define&&ka.get&&ka.whenDefined),De=B.create||B,Jh=a.Map||function(){var a=[],b=[],c;return{get:function(c){return b[aa.call(a,c)]},set:function(d,e){c=aa.call(a,d);0>c?b[a.push(d)-1]=e:b[c]=e}}},ze=a.Promise||function(a){function b(a){for(d=
!0;c.length;)c.shift()(a)}var c=[],d=!1,e={"catch":function(){return e},then:function(a){c.push(a);d&&setTimeout(b,1);return e}};a(b);return e},Kb=!1,hb=De(null),Sa=De(null),Lb=new Jh,Mb=String,Gc=B.create||function Db(a){return a?(Db.prototype=a,new Db):this},Ah=Be||(Ce?function(a,b){a.__proto__=b;return a}:Ae&&Mc?function(){function a(a,b){for(var c,d=Ae(b),e=0,g=d.length;e<g;e++)c=d[e],Lc.call(a,c)||Ta(a,c,Mc(b,c))}return function(b,c){do a(b,c);while((c=Ih(c))&&!Nb.call(c,b));return b}}():function(a,
b){for(var c in b)a[c]=b[c];return a}),ib=a.MutationObserver||a.WebKitMutationObserver,O=(a.HTMLElement||a.Element||a.Node).prototype,Pa=!Nb.call(O,Qa),Jb=Pa?function(a,b,c){a[b]=c.value;return a}:Ta,yh=Pa?function(a){return 1===a.nodeType}:function(a){return Nb.call(O,a)},eb=Pa&&[],Kh=O.cloneNode,Nc=O.dispatchEvent,Oa=O.getAttribute,Lh=O.hasAttribute,Mh=O.removeAttribute,we=O.setAttribute,Ob=y.createElement,Ic=Ob,Bh=ib&&{attributes:!0,characterData:!0,attributeOldValue:!0},Ee=ib||function(){Ib=!1;
Qa.removeEventListener(Ca,Ee)},Bb,Cb=0,Fe=!1,Ib=!0,ue=!0,Gb=!0,Dc,Pb,Ec,Hb,Fc,ab;qa in y||(Be||Ce?(Fc=function(a,b){Nb.call(b,a)||q(a,b)},ab=q):ab=Fc=function(a,b){a[S]||(a[S]=B(!0),q(a,b))},Pa?(Ib=!1,function(){function a(a){var b=a.currentTarget,c=b[S];a=a.propertyName;var d;c.hasOwnProperty(a)&&(c=c[a],d=new CustomEvent(Ca,{bubbles:!0}),d.attrName=c.name,d.prevValue=c.value||null,d.newValue=c.value=b[a]||null,null==d.prevValue?d[Fb]=d.attrChange=0:d[Jc]=d.attrChange=1,Nc.call(b,d))}function b(a,
b){var c=Lh.call(this,a),d=c&&Oa.call(this,a),e=new CustomEvent(Ca,{bubbles:!0});we.call(this,a,b);e.attrName=a;e.prevValue=c?d:null;e.newValue=b;c?e[Jc]=e.attrChange=1:e[Fb]=e.attrChange=0;Nc.call(this,e)}function c(a){var b=new CustomEvent(Ca,{bubbles:!0});b.attrName=a;b.prevValue=Oa.call(this,a);b.newValue=null;b[Cc]=b.attrChange=2;Mh.call(this,a);Nc.call(this,b)}var d=Mc(O,ia),e=d.value;d.value=function(d,g,h){d===Ca&&this[pa]&&this.setAttribute!==b&&(this[S]={className:{name:"class",value:this.className}},
this.setAttribute=b,this.removeAttribute=c,e.call(this,"propertychange",a));e.call(this,d,g,h)};Ta(O,ia,d)}()):ib||(Qa[ia](Ca,Ee),Qa.setAttribute(S,1),Qa.removeAttribute(S),Ib&&(Dc=function(a){var b,c,d;if(this===a.target){b=this[S];this[S]=c=Ec(this);for(d in c){if(!(d in b))return Pb(0,this,d,b[d],c[d],Fb);if(c[d]!==b[d])return Pb(1,this,d,b[d],c[d],Jc)}for(d in b)if(!(d in c))return Pb(2,this,d,b[d],c[d],Cc)}},Pb=function(a,b,c,d,e,g){c={attrChange:a,currentTarget:b,attrName:c,prevValue:d,newValue:e};
c[g]=a;k(c)},Ec=function(a){for(var b,c={},d=a.attributes,e=0,g=d.length;e<g;e++)b=d[e],a=b.name,"setAttribute"!==a&&(c[a]=b.value);return c})),y[qa]=function te(a,b){function h(){return n?y.createElement(q,r):y.createElement(q)}r=a.toUpperCase();Fe||(Fe=!0,ib?(Hb=function(a,b){function c(a,b){for(var c=0,d=a.length;c<d;b(a[c++]));}return new ib(function(d){for(var e,g,h,k=0,l=d.length;k<l;k++)if(e=d[k],"childList"===e.type)c(e.addedNodes,a),c(e.removedNodes,b);else if(g=e.target,Gb&&g[pa]&&"style"!==
e.attributeName&&(h=Oa.call(g,e.attributeName),h!==e.oldValue))g[pa](e.attributeName,e.oldValue,h)})}(e(ha),e(ba)),Hb.observe(y,{childList:!0,subtree:!0})):(Bb=[],y[ia]("DOMNodeInserted",l(ha)),y[ia]("DOMNodeRemoved",l(ba))),y[ia](ve,m),y[ia]("readystatechange",m),O.cloneNode=function(a){var b=Kh.call(this,!!a),c=g(b);-1<c&&ab(b,bb[c]);a&&d(b.querySelectorAll(oa));return b});-2<aa.call(Ba,Eb+r)+aa.call(Ba,cb+r)&&u(a);if(!Gh.test(r)||-1<aa.call(Hh,r))throw Error("The type "+a+" is invalid");var k=
b||Kc,n=Lc.call(k,fb),q=n?b[fb].toUpperCase():r,r;n&&-1<aa.call(Ba,cb+q)&&u(q);b=Ba.push((n?Eb:cb)+r)-1;oa=oa.concat(oa.length?",":"",n?q+'[is="'+a.toLowerCase()+'"]':q);h.prototype=bb[b]=Lc.call(k,"prototype")?k.prototype:Gc(O);c(y.querySelectorAll(oa),ha);return h},y.createElement=Ic=function(a,b){var c=U(b),d=c?Ob.call(y,a,Mb(c)):Ob.call(y,a);a=""+a;var e=aa.call(Ba,(c?Eb:cb)+(c||a).toUpperCase()),g=-1<e;c&&(d.setAttribute("is",c=c.toLowerCase()),g&&(g=h(a.toUpperCase(),c)));Gb=!y.createElement.innerHTMLHelper;
g&&ab(d,bb[e]);return d});r.prototype={constructor:r,define:Ra?function(a,b,c){if(c)D(a,b,c);else{var d=a.toUpperCase();hb[d]={constructor:b,create:[d]};Lb.set(b,d);ka.define(a,b)}}:D,get:Ra?function(a){return ka.get(a)||A(a)}:A,whenDefined:Ra?function(a){return ze.race([ka.whenDefined(a),T(a)])}:T};if(ka)try{(function(b,c,d){c[fb]="a";b.prototype=Gc(HTMLAnchorElement.prototype);b.prototype.constructor=b;a.customElements.define(d,b,c);if(Oa.call(y.createElement("a",{is:d}),"is")!==d||Ra&&Oa.call(new b,
"is")!==d)throw c;})(function te(){return Reflect.construct(HTMLAnchorElement,[],te)},{},"document-register-element-a")}catch(Db){L()}else L();try{Ob.call(y,"a","a")}catch(Db){Mb=function(a){return{is:a}}}};function Xb(a,b){var c=void 0===b?this.contains(a):!b;if(c)return this.remove(a),!1;this.add(a);return!0}function Yb(a){/Trident|MSIE|IEMobile/i.test(a.navigator.userAgent)&&a.DOMTokenList&&a.Object.defineProperty(a.DOMTokenList.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:Xb})};Wb(self);Yb(self);(function(a){a.Math.sign||a.Object.defineProperty(a.Math,"sign",{enumerable:!1,configurable:!0,writable:!0,value:mb})})(self);(function(a){a.Object.assign||a.Object.defineProperty(a.Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:ob})})(self);(function(a){a.Promise||(a.Promise=pb,pb.default&&(a.Promise=pb.default),a.Promise.resolve=wb,a.Promise.reject=xb,a.Promise.all=yb,a.Promise.race=Ab)})(self);lb(self);
(function(a){a.Array.prototype.includes||a.Object.defineProperty(Array.prototype,"includes",{enumerable:!1,configurable:!0,writable:!0,value:Vb})})(self);function Zb(a){a=$b(a);return ac(a,"performance")?bc(a,"performance"):null}function cc(a,b){if(a.nodeType){var c=dc((a.ownerDocument||a).defaultView,b);if(c)return c}return H(a,b)}function ec(a,b,c){var d=$b(a);dc(a,b);fc(a,a,b,void 0,function(){return c});bc(a,b)}function dc(a,b){var c=$b(a);return a!=c&&ac(a,b)?bc(a,b):null}function I(a,b,c){a=$b(a);ac(a,b)||J(a,b,void 0,c,!0);return bc(a,b)}function J(a,b,c,d,e){a=$b(a);fc(a,a,b,c,d);e&&bc(a,b)}
function K(a,b,c,d,e){var g=gc(a),h=hc(g);fc(h,g,b,c,d);e&&bc(h,b)}function H(a,b,c){a=gc(a);var d=hc(a);ac(d,b)||K(a,b,void 0,c,!0);return bc(d,b)}function ic(a,b){return jc(hc(a),b)}function kc(a,b){return lc(hc(a),b)}function mc(a,b){a.__AMP_PARENT=b;a.__AMP_TOP=$b(b)}function $b(a){return a.__AMP_TOP||a}function nc(a,b){var c=(a.ownerDocument||a).defaultView;if(c&&c!=b&&$b(c)==b)try{return c.frameElement}catch(d){}return null}
function gc(a){return a.nodeType?I((a.ownerDocument||a).defaultView,"ampdoc").getAmpDoc(a):a}function hc(a){a=gc(a);return a.isSingleDoc()?a.win:a}function bc(a,b){ac(a,b);var c=oc(a);a=c[b];a.obj||(a.obj=a.build(),a.resolve&&a.resolve(a.obj),a.build=null);return a.obj}function fc(a,b,c,d,e){var g=oc(a),h=g[c];h||(h=g[c]={obj:null,promise:null,resolve:null,build:null});h.build||h.obj||(h.build=function(){return d?new d(b):e(b)},h.resolve&&bc(a,c))}
function jc(a,b){var c=lc(a,b);if(c)return c;var d,e=new Promise(function(a){d=a});oc(a)[b]={obj:null,promise:e,resolve:d,build:null};return e}function lc(a,b){var c=oc(a)[b];if(c){if(c.promise)return c.promise;bc(a,b);return c.promise=Promise.resolve(c.obj)}return null}function oc(a){var b=a.services;b||(b=a.services={});return b}function pc(a,b){var c=a.frameElement;H(c,b).adoptEmbedWindow(a)}function ac(a,b){a=a.services&&a.services[b];return!(!a||!a.build&&!a.obj)};function qc(a){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var b=String(a),c=b.length,d=-1,e,g="",h=b.charCodeAt(0);++d<c;)e=b.charCodeAt(d),g=0==e?g+"\ufffd":1<=e&&31>=e||127==e||0==d&&48<=e&&57>=e||1==d&&48<=e&&57>=e&&45==h?g+("\\"+e.toString(16)+" "):0==d&&1==c&&45==e?g+("\\"+b.charAt(d)):128<=e||45==e||95==e||48<=e&&57>=e||65<=e&&90>=e||97<=e&&122>=e?g+b.charAt(d):g+("\\"+b.charAt(d));return g};function rc(a,b,c){if(b(a))c();else{var d=a.ownerDocument.defaultView;if(d.MutationObserver){var e=new d.MutationObserver(function(){b(a)&&(e.disconnect(),c())});e.observe(a,{childList:!0})}else var g=d.setInterval(function(){b(a)&&(d.clearInterval(g),c())},5)}}function sc(a,b){rc(a.documentElement,function(){return!!a.body},b)}function tc(a){return new Promise(function(b){sc(a,b)})}function uc(a,b){for(var c,d=a;d&&d!==c;d=d.parentElement)if(b(d))return d;return null}
function vc(a,b){for(;a;a=a.parentNode)if(b(a))return a;return null}function wc(a,b){if(a.closest)return a.closest(b);b=b.toUpperCase();return uc(a,function(a){return a.tagName==b})}function xc(a,b){var c=[];for(a=a.firstElementChild;a;a=a.nextElementSibling)b(a)&&c.push(a);return c}function yc(a,b){for(a=a.lastElementChild;a;a=a.previousElementSibling)if(b(a))return a;return null}function zc(a,b){var c=[];for(a=a.firstChild;a;a=a.nextSibling)b(a)&&c.push(a);return c}var Ac;
function Bc(a){try{return a.ownerDocument.querySelector(":scope"),!0}catch(b){return!1}}function Oc(a,b){null==Ac&&(Ac=Bc(a));if(Ac)return a.querySelector(":scope "+b);var c="i-amphtml-scoped";a.classList.add(c);b=a.querySelector("."+c+" "+b);a.classList.remove(c);return b}function Pc(a,b,c){var d,e;try{e=a.open(b,c,d)}catch(g){v().error("DOM","Failed to open url on target: ",c,g)}e||"_top"==c||(e=a.open(b,"_top"))}function Qc(a){return a.parent&&a.parent!=a};function Rc(a){var b="amp-user-notification";return Sc(a,"userNotificationManager",b).then(function(a){return t().assert(a,"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.","userNotificationManager",b,b,b)})}function Sc(a,b,c){var d=lc(a,b);return d?d:Promise.resolve().then(function(){return Tc(a,c)?jc(a,b):tc(a.document).then(function(){return Tc(a,c)?jc(a,b):null})})}
function Tc(a,b){return a.ampExtendedElements?!!a.ampExtendedElements[b]:!1}function Uc(a,b,c){return Vc(a,b,c).then(function(a){return t().assert(a,"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.",b,c,c,c)})}
function Vc(a,b,c){var d=gc(a),e=kc(a,b);return e?e:Promise.resolve().then(function(){return Tc(d.win,c)?ic(a,b):d.whenBodyAvailable().then(function(){return Tc(d.win,c)?ic(a,b):null})})};function Wc(a){return Vc(a,"access","amp-access")}function Xc(a){return H(a,"documentInfo").get()}function Yc(a){return I(a,"extensions")}function Zc(a){return I(a,"platform")}function $c(a){return H(a,"resources")}function M(a){return I(a,"timer")}function N(a){return H(a,"viewer")}function ad(a){return I(a,"vsync")}function bd(a){return H(a,"viewport")};function cd(a){return"undefined"!==typeof TextEncoder?Promise.resolve((new TextEncoder("utf-8")).encode(a)):new Promise(function(b,c){var d=new FileReader;d.onerror=function(){c(d.error)};d.onloadend=function(){b(new Uint8Array(d.result))};d.readAsArrayBuffer(new Blob([a]))})}function dd(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):ed(unescape(encodeURIComponent(a)))}
function ed(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++){var d=a.charCodeAt(c);b[c]=d}return b};var fd={"-":"+",_:"/",".":"="},gd={"+":"-","/":"_","=":"."};function hd(a){var b=atob(a.replace(/[-_.]/g,function(a){return fd[a]}));return ed(b)}function id(a){a=String.fromCharCode.apply(String,a);return btoa(a).replace(/[+/=]/g,function(a){return gd[a]})};function jd(){var a=kd();return function(b){return setTimeout(b,a())}}function kd(){var a=0;return function(){var b=Math.pow(1.5,a++),c;c=b*(c||.3)*Math.random();.5<Math.random()&&(c*=-1);b+=c;return 1E3*b}};function P(){this.L=null}f=P.prototype;f.add=function(a){var b=this;this.L||(this.L=[]);this.L.push(a);return function(){b.remove(a)}};f.remove=function(a){this.L&&(a=this.L.indexOf(a),-1<a&&this.L.splice(a,1))};f.removeAll=function(){this.L&&(this.L.length=0)};f.fire=function(a){if(this.L)for(var b=this.L,c=0;c<b.length;c++)(0,b[c])(a)};f.getHandlerCount=function(){return this.L?this.L.length:0};var ld,md="Webkit webkit Moz moz ms O o".split(" ");function nd(a,b,c){ld||(ld=w());var d=ld[b];if(!d||c){d=b;if(void 0===a[b]){var e=b.charAt(0).toUpperCase()+b.slice(1);a:{for(var g=0;g<md.length;g++){var h=md[g]+e;if(void 0!==a[h]){e=h;break a}}e=""}var k=e;void 0!==a[k]&&(d=k)}c||(ld[b]=d)}return d}function Q(a,b,c,d){(b=nd(a.style,b,void 0))&&(a.style[b]=d?c+d:c)}function od(a,b){if(b=nd(a.style,b,void 0))return a.style[b]}function R(a,b){for(var c in b)Q(a,c,b[c])}
function pd(a,b){void 0===b&&(b="none"==od(a,"display"));Q(a,"display",b?"":"none")};function qd(a){this.win=a;this.D=a.document;this.ua=nd(this.D,"hidden",!0);void 0===this.D[this.ua]&&(this.ua=null);this.fc=nd(this.D,"visibilityState",!0);void 0===this.D[this.fc]&&(this.fc=null);this.sb=new P;this.Va=null;if(this.ua){this.Va="visibilitychange";var b=this.ua.indexOf("Hidden");-1!=b&&(this.Va=this.ua.substring(0,b)+"Visibilitychange")}this.Dd=this.$c.bind(this);this.Va&&this.D.addEventListener(this.Va,this.Dd);this.Ea=null}f=qd.prototype;
f.Fa=function(){this.Va&&this.D.removeEventListener(this.Va,this.Dd)};f.isHidden=function(){return this.ua?this.D[this.ua]:!1};f.getVisibilityState=function(){return this.fc?this.D[this.fc]:this.isHidden()?"hidden":"visible"};f.onVisibilityChanged=function(a){return this.sb.add(a)};f.$c=function(){this.sb.fire()};f.onBodyAvailable=function(a){var b=this.D;if(b.body)return a(),null;this.Ea||(this.Ea=new P,rc(b.documentElement,function(){return!!b.body},this.sf.bind(this)));return this.Ea.add(a)};
f.sf=function(){this.Ea.fire();this.Ea.removeAll();this.Ea=null};function rd(a){J(a,"documentState",qd);return I(a,"documentState")};var sd={"amp-accordion":"[custom-element=amp-accordion]","amp-dynamic-css-classes":"[custom-element=amp-dynamic-css-classes]",variant:"amp-experiment"};function td(a){var b=ud(a).map(function(b){return M(a).timeoutPromise(3E3,jc(a,b),"Render timeout waiting for service "+b+" to be ready.")});return Promise.all(b)}function ud(a){var b=a.document;return Object.keys(sd).filter(function(a){return b.querySelector(sd[a])})};function vd(a,b,c,d,e){var g=wd(a,a.head,b,d||!1,e||null);if(xd(a,g))c(g);else var h=setInterval(function(){xd(a,g)&&(clearInterval(h),c(g))},4)}
function wd(a,b,c,d,e){if(d&&b.runtimeStyleElement)return b.runtimeStyleElement;if(b.parentElement&&b.parentElement.hasAttribute("i-amphtml-layout")&&(d||e&&"amp-custom"!=e)){var g=d?b.querySelector("style[amp-runtime]"):b.querySelector("style[amp-extension="+e+"]");if(g)return d&&(b.runtimeStyleElement=g),g}a=a.createElement("style");a.textContent=c;var h=null;d?(a.setAttribute("amp-runtime",""),b.runtimeStyleElement=a):"amp-custom"==e?(a.setAttribute("amp-custom",""),h=b.lastChild):(a.setAttribute("amp-extension",
e||""),h=b.runtimeStyleElement);c=b;var k=h;k?k.nextSibling?c.insertBefore(a,k.nextSibling):c.appendChild(a):c.insertBefore(a,c.firstChild);return a}
function yd(a,b){var c=a.defaultView;if(!c.__AMP_BODY_VISIBLE){var d=function(){R(a.body,{opacity:1,visibility:"visible",animation:"none"});try{$c(a).renderStarted()}catch(e){}};try{rd(c).onBodyAvailable(function(){c.__AMP_BODY_VISIBLE||(c.__AMP_BODY_VISIBLE=!0,b?td(c).catch(function(a){ya(a);return[]}).then(function(b){d();0<b.length&&$c(a).schedulePass(1,!0);try{var e=I(c,"performance");e.tick("mbv");e.flush()}catch(h){}}):d())})}catch(e){d(),ya(e)}}}
function xd(a,b){var c=a.styleSheets;for(a=0;a<c.length;a++){var d=c[a];if(d.ownerNode==b)return!0}return!1};function zd(a,b,c,d){function e(a){try{return h(a)}catch(m){throw self.reportError(m),m;}}var g=a,h=c,k=d||!1;g.addEventListener(b,e,k);return function(){g&&g.removeEventListener(b,e,k);e=g=h=null}};function Ad(a,b,c,d){var e=c,g=zd(a,b,function(a){try{e(a)}finally{e=null,g()}},d);return g}function Bd(a,b){var c,d=new Promise(function(b){c=Ad(a,"click",b,void 0)});d.then(c,c);b&&b(c);return d}
function Cd(a){var b,c;if(a.complete||"complete"==a.readyState||a.document&&"complete"==a.document.readyState)return Promise.resolve(a);var d=new Promise(function(d,g){var e=a.tagName;b="AUDIO"===e||"VIDEO"===e?Ad(a,"loadstart",d):Ad(a,"load",d);e&&(c=Ad(a,"error",g))});return d.then(function(){c&&c();return a},function(){b&&b();var c=a;c&&c.src&&(c=c.src);throw t().createError("Failed to load:",c);})};var Dd=self.AMPErrors||[];self.AMPErrors=Dd;function Ed(a){Ed=jd();return Ed(a)}var Fd;
function Gd(a,b){try{var c;if(a)if(void 0!==a.message)c=!0;else{var d=a;a=Error(String(d));a.origError=d}else a=Error("Unknown error");if(a.reported)return a;a.reported=!0;var e=b||a.associatedElement;e&&e.classList&&(e.classList.add("i-amphtml-error"),p().development&&(e.classList.add("i-amphtml-element-error"),e.setAttribute("error-message",a.message)));if(self.console){var g=console.error||console.log;a.messageArray?g.apply(console,a.messageArray):e?g.call(console,a.message,e):g.call(console,a.message)}e&&
e.Ha&&e.Ha();Hd.call(void 0,void 0,void 0,void 0,void 0,a)}catch(h){setTimeout(function(){throw h;})}return a}function Id(){var a=self;a.onerror=Hd;a.addEventListener("unhandledrejection",function(a){a.reason&&"CANCELLED"===a.reason.message?a.preventDefault():Gd(a.reason||Error("rejected promise "+a))})}
function Hd(a,b,c,d,e){this&&this.document&&yd(this.document);if(!p().development){var g=!1;try{g=Jd()}catch(k){}if(!(g&&.01<Math.random())){var h=Kd(a,b,c,d,e,g);h&&Ed(function(){(new Image).src=h})}}}
function Kd(a,b,c,d,e,g){var h=!1;e&&(a=e.message?e.message:String(e),e.expected&&(h=!0));a||(a="Unknown error");if(!/_reported_/.test(a)&&"CANCELLED"!=a){if(-1!=a.indexOf("Failed to load:")||"Script error."==a)if(h=!0,.001<Math.random())return;var k=0<=a.indexOf("\u200b\u200b\u200b");g=Ea.urls.errorReporting+"?v="+encodeURIComponent("1493855940942")+"&noAmp="+(g?1:0)+"&m="+encodeURIComponent(a.replace("\u200b\u200b\u200b",""))+"&a="+(k?1:0);h&&(g+="&ex=1");var l="1p";self.context&&self.context.location?
(g+="&3p=1",l="3p"):p().runtime&&(l=p().runtime);g+="&rt="+l;Ya(self)&&(g+="&ca=1");self.location.ancestorOrigins&&self.location.ancestorOrigins[0]&&(g+="&or="+encodeURIComponent(self.location.ancestorOrigins[0]));self.viewerState&&(g+="&vs="+encodeURIComponent(self.viewerState));self.parent&&self.parent!=self&&(g+="&iem=1");if(self.AMP&&self.AMP.viewer){var m=self.AMP.viewer.getResolvedViewerUrl(),n=self.AMP.viewer.maybeGetMessagingOrigin();m&&(g+="&rvu="+encodeURIComponent(m));n&&(g+="&mso="+encodeURIComponent(n))}Fd||
(Fd=Ld());g+="&jse="+Fd;var q=[],C=F,u;for(u in C)q.push(u+"="+(C[u]?"1":"0"));g+="&exps="+encodeURIComponent(q.join(","));if(e){g+="&el="+encodeURIComponent(e&&e.associatedElement?e.associatedElement.tagName:"u");e.args&&(g+="&args="+encodeURIComponent(JSON.stringify(e.args)));if(!k&&!e.ignoreStack&&e.stack){var x=(e.stack||"").substr(0,1E3);g+="&s="+encodeURIComponent(x)}e.message+=" _reported_"}else g+="&f="+encodeURIComponent(b||"")+"&l="+encodeURIComponent(c||"")+"&c="+encodeURIComponent(d||
"");g+="&r="+encodeURIComponent(self.document.referrer);g+="&ae="+encodeURIComponent(Dd.join(","));Dd.push(a);g+="&fr="+encodeURIComponent(self.location.originalHash||self.location.hash);2072<=g.length&&(g=g.substr(0,2064).replace(/\%[^&%]+$/,"")+"&SHORT=1");return g}}function Jd(){for(var a=self.document.querySelectorAll("script[src]"),b=0;b<a.length;b++)if(!Na(a[b].src.toLowerCase()))return!0;return!1}
function Ld(){var a=Object.create({t:function(){throw Error("message");}});try{a.t()}catch(d){var b=d.stack;if(-1<b.indexOf("<.t@"))return"Firefox";if(fa(b,"t@"))return"Safari";var c=b.split("\n").pop();if(/\bat \w+ /i.test(c))return"IE";if(-1<b.indexOf("message"))return"Chrome"}return"unknown"};var Md={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item"},Nd={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}},Od={"AMP-ANIM":!0,"AMP-BRIGHTCOVE":!0,"AMP-EMBED":!0,"AMP-IFRAME":!0,"AMP-IMG":!0,"AMP-INSTAGRAM":!0,"AMP-LIST":!0,"AMP-OOYALA-PLAYER":!0,"AMP-PINTEREST":!0,"AMP-PLAYBUZZ":!0,"AMP-VIDEO":!0,"AMP-YOUTUBE":!0};
function Pd(a){for(var b in Md)if(Md[b]==a)return Md[b]}function Qd(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a}function Rd(a){if("number"==typeof a)return a+"px";if(a&&/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)?$/.test(a))return/^\d+(\.\d+)?$/.test(a)?a+"px":a}function Sd(a){t().assert(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|cm|mm|q|in|pc|pt)$/.test(a),"Invalid length value: %s",a);return a}
function Td(a){t().assert(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|%)$/.test(a),"Invalid length or percent value: %s",a);return a}function Ud(a){Sd(a);var b=t().assert(a.match(/[a-z]+/i),"Failed to read units from %s",a);return b[0]}function Vd(a){a=parseFloat(a);return"number"===typeof a&&isFinite(a)?a:void 0};function Wd(a,b,c){var d=Xd(a,b,c);return""===d?Cd(a).then(function(){return Xd(a,b,c)}):Promise.resolve(d)}function Xd(a,b,c){var d=a.performance&&a.performance.timing;if(d&&0!=d.navigationStart&&(a=void 0===c?d[b]:d[c]-d[b],"number"===typeof a&&isFinite(a)))return 0>a?"":a}function Yd(a,b){var c=a.performance&&a.performance.navigation;if(c&&void 0!==c[b])return c[b]}function Zd(){this.nb=void 0;this.aa=Object.create(null);this.Bc=!1}f=Zd.prototype;f.yb=function(){this.initialize();this.Bc=!0};
f.initialize=function(){};f.get=function(a){this.Bc||this.yb();return this.aa[a]};f.set=function(a,b){a.indexOf("RETURN");this.aa[a]=this.aa[a]||{sync:void 0,async:void 0};this.aa[a].sync=b;this.nb=void 0;return this};f.setAsync=function(a,b){a.indexOf("RETURN");this.aa[a]=this.aa[a]||{sync:void 0,async:void 0};this.aa[a].async=b;this.nb=void 0;return this};f.setBoth=function(a,b,c){return this.set(a,b).setAsync(a,c)};
f.getExpr=function(a){var b=this;this.Bc||this.yb();var c=a?Object.keys(a):null;if(c&&0<c.length){var d=Object.keys(this.aa);c.forEach(function(a){void 0===b.aa[a]&&d.push(a)});return $d(d)}this.nb||(this.nb=$d(Object.keys(this.aa)));return this.nb};function $d(a){a.sort(function(a,b){return b.length-a.length});var b=a.join("|");return new RegExp("\\$?("+b+")(?:\\(([0-9a-zA-Z-_.,]+)\\))?","g")};function ae(){this.ka=w();this.O=null}f=ae.prototype;f.get=function(a){return this.ka[a]||null};f.whenSignal=function(a){var b=this.O&&this.O[a];if(!b){var c=this.ka[a];if(null!=c)b={promise:"number"==typeof c?Promise.resolve(c):Promise.reject(c)};else var d,e,b={promise:new Promise(function(a,b){d=a;e=b}),resolve:d,reject:e};this.O||(this.O=w());this.O[a]=b}return b.promise};
f.signal=function(a,b){if(null==this.ka[a]){var c=b||Date.now();this.ka[a]=c;(a=this.O&&this.O[a])&&a.resolve&&(a.resolve(c),a.resolve=void 0,a.reject=void 0)}};f.rejectSignal=function(a,b){null==this.ka[a]&&(this.ka[a]=b,(a=this.O&&this.O[a])&&a.reject&&(a.reject(b),a.resolve=void 0,a.reject=void 0))};f.reset=function(a){this.ka[a]&&delete this.ka[a];var b=this.O&&this.O[a];b&&!b.resolve&&delete this.O[a]};function be(a){return"loading"!=a.readyState&&"uninitialized"!=a.readyState}function ce(a){return"complete"==a.readyState}function de(a,b){ee(a,be,b)}function ee(a,b,c){var d=b(a);if(d)c(a);else{var e=function(){b(a)&&(d||(d=!0,c(a)),a.removeEventListener("readystatechange",e))};a.addEventListener("readystatechange",e)}}function fe(a){return new Promise(function(b){de(a,b)})}function ge(a){return new Promise(function(b){ee(a,ce,b)})};function W(a,b,c,d){return{left:a,top:b,width:c,height:d,bottom:b+d,right:a+c}}function he(a){for(var b=-Infinity,c=Infinity,d=-Infinity,e=Infinity,g=0;g<arguments.length;g++){var h=arguments[g];if(h&&(b=Math.max(b,h.left),c=Math.min(c,h.left+h.width),d=Math.max(d,h.top),e=Math.min(e,h.top+h.height),c<b||e<d))return null}return Infinity==c?null:W(b,d,c-b,e-d)}
function ie(a,b,c){return{top:a.top-a.height*c,bottom:a.bottom+a.height*c,left:a.left-a.width*b,right:a.right+a.width*b,width:a.width*(1+2*b),height:a.height*(1+2*c)}}function je(a,b,c){return 0==b&&0==c||0==a.width&&0==a.height?a:W(a.left+b,a.top+c,a.width,a.height)};function ke(a){var b=Object.create(null),c;for(c in a)if(null==a||"object"!=typeof a?0:Object.prototype.hasOwnProperty.call(a,c)){var d=a[c];b[c]=sa(d)?ke(d):d}return b};var le=null;
function me(){var a=self,b;le=new Promise(function(a){b=a});if(G(a,"alp")){var c=N(a.document),d=c.getParam("click");d?0!=d.indexOf("https://")?(t().warn("IMPRESSION","click fragment param should start with https://. Found ",d),b()):(a.location.hash&&(a.location.hash=""),c.whenFirstVisible().then(function(){var c=I(a,"xhr").fetchJson(d,{credentials:"include"}).then(function(b){var c=b.location;(b=b.tracking_url||c)&&!Na(b)&&((new Image).src=b);if(c&&a.history.replaceState){b=a.location.href;var c=
E(c),d,c=la(c.search),e=[];for(d in c){var g=c[d];if(null!=g)if(ra(g))for(var n=0;n<g.length;n++){var q=g[n];e.push(encodeURIComponent(d)+"="+encodeURIComponent(q))}else e.push(encodeURIComponent(d)+"="+encodeURIComponent(g))}d=e.join("&");d=Ja(b,d);a.history.replaceState(null,"",d)}});b(M(a).timeoutPromise(8E3,c,"timeout waiting for ad server response").catch(function(){}))})):b()}else b()};function ne(a){Zd.call(this);this.ampdoc=a;this.bf=Wc;this.gd=this.rd=null}ca(ne,Zd);function oe(a,b,c,d){a.setBoth(b,function(){return Xd(a.ampdoc.win,c,d)},function(){return Wd(a.ampdoc.win,c,d)})}
ne.prototype.initialize=function(){var a=this,b=bd(this.ampdoc);this.set("RANDOM",function(){return Math.random()});var c=null;this.set("COUNTER",function(a){c||(c=Object.create(null));c[a]||(c[a]=0);return++c[a]});this.set("CANONICAL_URL",this.Z.bind(this,function(a){return a.canonicalUrl}));this.set("CANONICAL_HOST",this.Z.bind(this,function(a){return(a=E(a.canonicalUrl))&&a.host}));this.set("CANONICAL_HOSTNAME",this.Z.bind(this,function(a){return(a=E(a.canonicalUrl))&&a.hostname}));this.set("CANONICAL_PATH",
this.Z.bind(this,function(a){return(a=E(a.canonicalUrl))&&a.pathname}));this.setAsync("DOCUMENT_REFERRER",function(){return N(a.ampdoc).getReferrerUrl()});this.set("TITLE",function(){return a.ampdoc.win.document.title});this.set("AMPDOC_URL",function(){return Ma(a.ampdoc.win.location.href)});this.set("AMPDOC_HOST",function(){var b=E(a.ampdoc.win.location.href);return b&&b.host});this.set("AMPDOC_HOSTNAME",function(){var b=E(a.ampdoc.win.location.href);return b&&b.hostname});this.setBoth("SOURCE_URL",
this.Z.bind(this,function(a){return Ma(a.sourceUrl)}),function(){return le.then(function(){return a.Z(function(a){return Ma(a.sourceUrl)})})});this.set("SOURCE_HOST",this.Z.bind(this,function(a){return E(a.sourceUrl).host}));this.set("SOURCE_HOSTNAME",this.Z.bind(this,function(a){return E(a.sourceUrl).hostname}));this.set("SOURCE_PATH",this.Z.bind(this,function(a){return E(a.sourceUrl).pathname}));this.set("PAGE_VIEW_ID",this.Z.bind(this,function(a){return a.pageViewId}));this.setBoth("QUERY_PARAM",
function(b,c){c=void 0===c?"":c;return pe(a,b,c)},function(b,c){c=void 0===c?"":c;return le.then(function(){return pe(a,b,c)})});var d=null;this.setBoth("CLIENT_ID",function(a){return d?d[a]:null},function(b,c){t().assertString(b,"The first argument to CLIENT_ID, the fallback cookie name, is required");var e=Promise.resolve();c&&(e=Rc(a.ampdoc.win).then(function(a){return a.get(c)}));return Uc(a.ampdoc,"cid","amp-analytics").then(function(a){return a.get({scope:b,createCookieIfNotPresent:!0},e)}).then(function(a){d||
(d=Object.create(null));"_ga"==b&&(a=a.replace(/^(GA1|1)\.[\d-]+\./,""));return d[b]=a})});this.setAsync("VARIANT",function(b){return qe(a,function(a){var c=a[b];t().assert(void 0!==c,"The value passed to VARIANT() is not a valid experiment name:"+b);return null===c?"none":c},"VARIANT")});this.setAsync("VARIANTS",function(){return qe(a,function(a){var b=[],c;for(c in a)b.push(c+"."+(a[c]||"none"));return b.join("!")},"VARIANTS")});this.setAsync("SHARE_TRACKING_INCOMING",function(){return re(a,function(a){return a.incomingFragment},
"SHARE_TRACKING_INCOMING")});this.setAsync("SHARE_TRACKING_OUTGOING",function(){return re(a,function(a){return a.outgoingFragment},"SHARE_TRACKING_OUTGOING")});this.set("TIMESTAMP",function(){return Date.now()});this.set("TIMEZONE",function(){return(new Date).getTimezoneOffset()});this.set("SCROLL_TOP",function(){return b.getScrollTop()});this.set("SCROLL_LEFT",function(){return b.getScrollLeft()});this.set("SCROLL_HEIGHT",function(){return b.getScrollHeight()});this.set("SCROLL_WIDTH",function(){return b.getScrollWidth()});
this.set("VIEWPORT_HEIGHT",function(){return b.getSize().height});this.set("VIEWPORT_WIDTH",function(){return b.getSize().width});this.set("SCREEN_WIDTH",function(){return a.ampdoc.win.screen.width});this.set("SCREEN_HEIGHT",function(){return a.ampdoc.win.screen.height});this.set("AVAILABLE_SCREEN_HEIGHT",function(){return a.ampdoc.win.screen.availHeight});this.set("AVAILABLE_SCREEN_WIDTH",function(){return a.ampdoc.win.screen.availWidth});this.set("SCREEN_COLOR_DEPTH",function(){return a.ampdoc.win.screen.colorDepth});
this.set("DOCUMENT_CHARSET",function(){var b=a.ampdoc.win.document;return b.characterSet||b.charset});this.set("BROWSER_LANGUAGE",function(){var b=a.ampdoc.win.navigator;return(b.language||b.userLanguage||b.browserLanguage||"").toLowerCase()});oe(this,"PAGE_LOAD_TIME","navigationStart","loadEventStart");oe(this,"DOMAIN_LOOKUP_TIME","domainLookupStart","domainLookupEnd");oe(this,"TCP_CONNECT_TIME","connectStart","connectEnd");oe(this,"SERVER_RESPONSE_TIME","requestStart","responseStart");oe(this,"PAGE_DOWNLOAD_TIME",
"responseStart","responseEnd");oe(this,"REDIRECT_TIME","navigationStart","fetchStart");oe(this,"DOM_INTERACTIVE_TIME","navigationStart","domInteractive");oe(this,"CONTENT_LOAD_TIME","navigationStart","domContentLoadedEventStart");this.setAsync("ACCESS_READER_ID",function(){return se(a,function(a){return a.getAccessReaderId()},"ACCESS_READER_ID")});this.setAsync("AUTHDATA",function(b){t().assert(b,"The first argument to AUTHDATA, the field, is required");return se(a,function(a){return a.getAuthdataField(b)},
"AUTHDATA")});this.setAsync("VIEWER",function(){return N(a.ampdoc).getViewerOrigin().then(function(a){return void 0==a?"":a})});this.setAsync("TOTAL_ENGAGED_TIME",function(){return Uc(a.ampdoc,"activity","amp-analytics").then(function(a){return a.getTotalEngagedTime()})});this.set("NAV_TIMING",function(b,c){t().assert(b,"The first argument to NAV_TIMING, the start attribute name, is required");return Xd(a.ampdoc.win,b,c)});this.setAsync("NAV_TIMING",function(b,c){t().assert(b,"The first argument to NAV_TIMING, the start attribute name, is required");
return Wd(a.ampdoc.win,b,c)});this.set("NAV_TYPE",function(){return Yd(a.ampdoc.win,"type")});this.set("NAV_REDIRECT_COUNT",function(){return Yd(a.ampdoc.win,"redirectCount")});this.set("AMP_VERSION",function(){return"1493855940942"});this.set("BACKGROUND_STATE",function(){return N(a.ampdoc).isVisible()?"0":"1"})};ne.prototype.Z=function(a){return a(Xc(this.ampdoc))};
function se(a,b,c){return a.bf(a.ampdoc).then(function(a){return a?b(a):(t().error("UrlReplacements","Access service is not installed to access: ",c),null)})}function pe(a,b,c){t().assert(b,"The first argument to QUERY_PARAM, the query string param is required");t().assert("string"==typeof b,"param should be a string");a=E(a.ampdoc.win.location.href);a=la(a.search);return"undefined"!==typeof a[b]?a[b]:c}
function qe(a,b,c){a.rd||(a.rd=Sc(a.ampdoc.win,"variant","amp-experiment"));return a.rd.then(function(a){t().assert(a,"To use variable %s, amp-experiment should be configured",c);return b(a)})}function re(a,b,c){a.gd||(a.gd=Sc(a.ampdoc.win,"share-tracking","amp-share-tracking"));return a.gd.then(function(a){t().assert(a,"To use variable %s, amp-share-tracking should be configured",c);return b(a)})}function Ge(a,b){this.ampdoc=a;this.qd=b}f=Ge.prototype;
f.expandSync=function(a,b,c,d){return this.expandUrlSync(a,b,c,d)};f.expandAsync=function(a,b,c){return this.expandUrlAsync(a,b,c)};f.expandStringSync=function(a,b,c,d){return He(this,a,b,c,!0,d)};f.expandStringAsync=function(a,b){return He(this,a,b)};f.expandUrlSync=function(a,b,c,d){return Ie(a,He(this,a,b,c,!0,d))};f.expandUrlAsync=function(a,b,c){return He(this,a,b,void 0,void 0,c).then(function(b){return Ie(a,b)})};f.expandInputValueAsync=function(a){return Je(this,a,!1)};
f.expandInputValueSync=function(a){return Je(this,a,!0)};function Je(a,b,c){"INPUT"==b.tagName&&(b.getAttribute("type")||"").toLowerCase();var d=Ke(b);if(!d)return c?b.value:Promise.resolve(b.value);void 0===b["amp-original-value"]&&(b["amp-original-value"]=b.value);a=He(a,b["amp-original-value"]||b.value,void 0,void 0,c,d);return c?b.value=a:a.then(function(a){return b.value=a})}
function Ke(a,b){if(a=a.getAttribute("data-amp-replace")){var c={};a.trim().split(/\s+/).forEach(function(a){!b||b&&b.hasOwnProperty(a)?c[a]=!0:b&&t().warn("URL","Ignoring unsupported replacement",a)});return c}}
f.maybeExpandLink=function(a){var b={CLIENT_ID:!0,QUERY_PARAM:!0},c=Ke(a,b);if(c){var d=a["amp-original-href"]||a.getAttribute("href"),e=E(d);a:{var g=Xc(this.ampdoc);if(e.origin==E(g.canonicalUrl).origin||e.origin==E(g.sourceUrl).origin)e=!0;else{if((g=this.ampdoc.getRootNode().querySelector("meta[name=amp-link-variable-allowed-origin]"))&&g.hasAttribute("content"))for(var g=g.getAttribute("content").trim().split(/\s+/),h=0;h<g.length;h++)if(e.origin==E(g[h]).origin){e=!0;break a}e=!1}}if(e){if(Ka(d))return null==
a["amp-original-href"]&&(a["amp-original-href"]=d),a.href=this.expandSync(d,void 0,void 0,c);t().warn("URL","Ignoring link replacement",d," because it is only supported for secure links.")}else t().warn("URL","Ignoring link replacement",d," because the link does not go to the document's source, canonical, or whitelisted origin.")}};
function He(a,b,c,d,e,g){var h=a.qd.getExpr(c),k,l=b.replace(h,function(b,h,q){var n=[];"string"==typeof q&&(n=q.split(","));if(g&&!g[h])return b;var m;if(c&&h in c)m=c[h];else if(m=a.qd.get(h))if(e){if(m=m.sync,!m)return t().error("UrlReplacements","ignoring async replacement key: ",h),""}else m=m.async||m.sync;var x;try{x="function"==typeof m?m.apply(null,n):m}catch(D){e&&(x=""),ya(D)}if(x&&x.then){if(e)return t().error("UrlReplacements","ignoring promise value for key: ",h),"";var r=x.catch(function(a){ya(a)}).then(function(a){l=
l.replace(b,null==a?"":encodeURIComponent(a));d&&(d[b]=a)});k=k?k.then(function(){return r}):r;return b}d&&(d[b]=x);return null==x?"":encodeURIComponent(x)});k&&(k=k.then(function(){return l}));return e?l:k||Promise.resolve(l)}f.collectVars=function(a,b){var c=Object.create(null);return He(this,a,b,c).then(function(){return c})};
function Ie(a,b){var c=E(b,!0).protocol,d=E(a,!0).protocol;if(c!=d)return t().error("UrlReplacements","Illegal replacement of the protocol: ",a),a;t().assert("javascript:"!==c,"Illegal javascript link protocol: %s",a);return b}f.getVariableSource=function(){return this.qd};function Le(a){H(a,"url-replace",function(a){return new Ge(a,new ne(a))})};function Me(a,b){function c(h){b.apply(null,h);g=null;e=a.setTimeout(function(){e=null;null!==g&&c(g)},d)}var d=100,e=null,g=null;return function(){e?g=arguments:c(arguments)}};function Ne(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];b(e,d,a)||(c.push(e),a.splice(d,1),d--)}}function Oe(a,b){for(var c=0;c<a.length;c++)if(b(a[c],c,a))return c;return-1};var Pe=Date.now();function Qe(a){return{left:a.left,top:a.top,width:a.width,height:a.height,bottom:a.bottom,right:a.right,x:a.left,y:a.top}};function Re(a){var b=a.getAttribute("srcset");if(b){a=b.match(/\s*(?:[\S]*)(?:\s+(?:-?(?:\d+(?:\.(?:\d+)?)?|\.\d+)[a-zA-Z]))?(?:\s*,)?/g);t().assert(0<a.length,"srcset has to have at least one source: %s",void 0);for(var c=[],d=0;d<a.length;d++){var e=a[d].trim();","==e.substr(-1)&&(e=e.substr(0,e.length-1).trim());var g=e.split(/\s+/,2);if(0!=g.length&&(1!=g.length||g[0])&&(2!=g.length||g[0]||g[1]))if(e=g[0],1==g.length||2==g.length&&!g[1])c.push({url:e,width:void 0,dpr:1});else{var g=g[1].toLowerCase(),
h=g.substring(g.length-1);"w"==h?c.push({url:e,width:parseFloat(g),dpr:void 0}):"x"==h&&c.push({url:e,width:void 0,dpr:parseFloat(g)})}}return new Se(c)}var k=t().assert(a.getAttribute("src"),'Either non-empty "srcset" or "src" attribute must be specified: %s',a);return new Se([{url:k,width:void 0,dpr:1}])}
function Se(a){t().assert(0<a.length,"Srcset must have at least one source");this.K=a;var b=!1,c=!1;for(a=0;a<this.K.length;a++){var d=this.K[a];t().assert((d.width||d.dpr)&&(!d.width||!d.dpr),"Either dpr or width must be specified");b=b||!!d.width;c=c||!!d.dpr}t().assert(!b||!c,"Srcset cannot have both width and dpr sources");b?this.K.sort(Te):this.K.sort(Ue);this.ag=b;this.Ye=c}
Se.prototype.select=function(a,b){var c=-1;if(this.ag)a:{for(var c=-Infinity,d=this.K.length-1;0<=d;d--){var e=this.K[d].width/b;if(e>=a){c=1.1*(a-c)<e-a&&1.2>=a/c?d+1:d;break a}c=e}c=0}else if(this.Ye){a=-1;c=1E6;for(d=0;d<this.K.length;d++)e=Math.abs((this.K[d].dpr||1)-b),e<c&&(c=e,a=d);c=a}return-1!=c?this.K[c]:this.getLast()};Se.prototype.getLast=function(){return this.K[this.K.length-1]};Se.prototype.getSources=function(){return this.K};
Se.prototype.stringify=function(){for(var a=[],b=0;b<this.K.length;b++){var c=this.K[b];c.width?a.push(c.url+" "+c.width+"w"):c.dpr?a.push(c.url+" "+c.dpr+"x"):a.push(""+c.url)}return a.join(", ")};function Te(a,b){t().assert(a.width!=b.width,"Duplicate width: %s",a.width);return b.width-a.width}function Ue(a,b){t().assert(a.dpr!=b.dpr,"Duplicate dpr: %s",a.dpr);return b.dpr-a.dpr};function Ve(){this.l=[]}Ve.prototype.peek=function(){var a=this.l.length;return a?this.l[a-1].item:null};Ve.prototype.enqueue=function(a,b){if(isNaN(b))throw Error("Priority must not be NaN.");for(var c=b,d=-1,e=0,g=this.l.length;e<=g;){d=Math.floor((e+g)/2);if(d===this.l.length)break;if(this.l[d].priority<c)e=d+1;else if(0<d&&this.l[d-1].priority>=c)g=d-1;else break}this.l.splice(d,0,{item:a,priority:b})};Ve.prototype.dequeue=function(){return this.l.length?this.l.pop().item:null};
da.Object.defineProperties(Ve.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.l.length}}});var We=/nochunking=1/.test(self.location.hash),Xe=Promise.resolve();function Ye(a,b){We?Xe.then(b):(K(a,"chunk",Ze),a=H(a,"chunk"),b=new $e(b,a.m,a.Xf),af(a,b,Number.POSITIVE_INFINITY))}function bf(a){this.state="not_run";this.sc=a}function cf(a,b){if("run"!=a.state){a.state="run";try{a.sc(b)}catch(c){throw a.qe(c),c;}}}bf.prototype.fg=function(){return this.sc.displayName||this.sc.name};bf.prototype.qe=function(){};bf.prototype.be=function(){return!1};bf.prototype.Ke=function(){return!0};
function $e(a,b,c){var d=this;bf.call(this,a);this.m=b;this.a=null;c.then(function(a){d.a=a;d.a.isVisible()&&cf(d,null);d.a.onVisibilityChanged(function(){d.a.isVisible()&&cf(d,null)})})}ca($e,bf);$e.prototype.qe=function(){yd(self.document)};$e.prototype.be=function(){return this.a?this.a.isVisible():this.m.document.hidden?!1:!/visibilityState=(hidden|prerender)/.test(this.m.location.hash)};$e.prototype.Ke=function(){return!!this.a};
function Ze(a){var b=this;this.dg=a;this.m=a.win;this.s=new Ve;this.zd=this.Td.bind(this);this.Xf=ic(a,"viewer");this.m.addEventListener("message",function(a){"amp-macro-task"==a.data&&b.Td(null)})}Ze.prototype.run=function(a,b){var c=new bf(a);af(this,c,b)};function af(a,b,c){a.s.enqueue(b,c);Xe.then(function(){a.za()})}function df(a,b){for(var c=a.s.peek();c&&"not_run"!==c.state;)a.s.dequeue(),c=a.s.peek();c&&b&&a.s.dequeue();return c}
Ze.prototype.Td=function(a){var b=this,c=df(this,!0);if(!c)return!1;var d=Date.now();cf(c,a);Xe.then(function(){b.za()});return!0};function ef(a){Xe.then(function(){a.zd(null)})}Ze.prototype.za=function(){var a=df(this);a&&(a.be()?ef(this):a.Ke()&&this.m.requestIdleCallback?ff(this.m,this.zd):this.m.postMessage("amp-macro-task","*"))};
function ff(a,b){var c=15,d=2E3;function e(h){if(h.timeRemaining()<c){var k=d-(Date.now()-g);0>=k||h.didTimeout?b(h):a.requestIdleCallback(e,{timeout:k})}else b(h)}var g=Date.now();a.requestIdleCallback(e,{timeout:d})};function gf(a){var b=!1;return Ea.urls.cdn+"/"+a+(b?".max":"")+".js"};/*

 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 Code distributed by Google as part of the polymer project is also
 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var hf;function jf(){var a;if(void 0===hf){var b;kf(self.document.registerElement)||kf(self.Object.getOwnPropertyDescriptor(self,"customElements").get)?(b=a||Element,b=b.prototype.attachShadow?"v1":b.prototype.createShadowRoot?"v0":"none"):b="none";hf=b}return hf}function kf(a){return!!a&&-1!==a.toString().indexOf("[native code]")};var lf={composed:!1};function mf(a){return"none"!=jf()&&Node.prototype.getRootNode?a.getRootNode(lf):vc(a,function(a){return a?"I-AMPHTML-SHADOW-ROOT"==a.tagName?!0:11==a.nodeType&&"[object ShadowRoot]"===Object.prototype.toString.call(a):!1})};function nf(){var a=self,b=0,c=a.performance;c&&c.timing&&c.timing.responseStart&&(b=Date.now()-c.timing.responseStart);var d=Math.max(1,1E3-b);a.setTimeout(function(){if(!be(a.document))for(var b=a.document.querySelectorAll('link[rel~="stylesheet"]'),c={},h=0;h<b.length;c={newLink:c.newLink,media:c.media},h++){var k=b[h];c.newLink=k.cloneNode(!1);c.media=k.media||"all";c.newLink.media="not-matching";c.newLink.onload=function(a){return function(){a.newLink.media=a.media}}(c);c.newLink.setAttribute("i-amphtml-timeout",
d);var l=k.parentElement;l.insertBefore(c.newLink,k);l.removeChild(k)}},d)};function of(a,b){this.ha=a;this.o=b;this.cc=!1;this.jd=0;this.Id=this.Af.bind(this);this.Hd=this.zf.bind(this);this.Gd=this.yf.bind(this);this.Fd=this.xf.bind(this);this.ha.addEventListener("touchstart",this.Id,!0)}f=of.prototype;f.cleanup=function(){pf(this);this.ha.removeEventListener("touchstart",this.Id,!0)};
f.Af=function(a){this.cc||!a.touches||1!=a.touches.length||0<this.o.getScrollTop()||(a=a.touches[0].clientY,this.cc=!0,this.jd=a,this.ha.addEventListener("touchmove",this.Hd,!0),this.ha.addEventListener("touchend",this.Gd,!0),this.ha.addEventListener("touchcancel",this.Fd,!0))};function pf(a){a.cc=!1;a.jd=0;a.ha.removeEventListener("touchmove",a.Hd,!0);a.ha.removeEventListener("touchend",a.Gd,!0);a.ha.removeEventListener("touchcancel",a.Fd,!0)}
f.zf=function(a){if(this.cc){var b=a.touches[0].clientY-this.jd;0<b&&a.preventDefault();0!=b&&pf(this)}};f.yf=function(){pf(this)};f.xf=function(){pf(this)};function qf(a,b){this.win=a;this.Wb=null;b&&(this.Wb=new rf(a))}qf.prototype.isSingleDoc=function(){return!!this.Wb};qf.prototype.getAmpDoc=function(a){if(this.Wb)return this.Wb;for(var b=a;b;){if(b.R)return b.R;var c=nc(b,this.win);if(c)b=c;else{b=mf(b);if(!b)break;if(c=b.__AMPDOC)return c;b=b.host}}throw v().createError("No ampdoc found for",a);};function sf(a){this.win=a;this.G=new ae}f=sf.prototype;f.isSingleDoc=function(){return null};f.getWin=function(){return this.win};f.signals=function(){return this.G};
f.getRootNode=function(){return null};f.isBodyAvailable=function(){return!1};f.getBody=function(){return null};f.whenBodyAvailable=function(){return null};f.isReady=function(){return null};f.whenReady=function(){return null};f.getUrl=function(){return null};f.getElementById=function(a){return this.getRootNode().getElementById(a)};f.contains=function(a){return this.getRootNode().contains(a)};
function rf(a){var b=this;sf.call(this,a);this.Qe=this.win.document.body?Promise.resolve(this.win.document.body):tc(this.win.document).then(function(){return b.getBody()});this.Ef=be(this.win.document)?Promise.resolve():fe(this.win.document)}ca(rf,sf);f=rf.prototype;f.isSingleDoc=function(){return!0};f.getRootNode=function(){return this.win.document};f.getUrl=function(){return this.win.location.href};f.isBodyAvailable=function(){return!!this.win.document.body};f.getBody=function(){return this.win.document.body};
f.whenBodyAvailable=function(){return this.Qe};f.isReady=function(){return be(this.win.document)};f.whenReady=function(){return this.Ef};function tf(){var a=self;J(a,"ampdoc",void 0,function(){return new qf(a,!0)})};function uf(){var a=self;M(a).delay(function(){if(G(a,"cache-service-worker")&&"serviceWorker"in navigator&&a.location.hostname===E(Ea.urls.cdn).hostname){var b=G(a,"cache-service-worker-kill"),c=gf("sw"+(b?"-kill":""));navigator.serviceWorker.register(c).then(function(a){v().info("cache-service-worker","ServiceWorker registration successful: ",a)},function(a){v().error("cache-service-worker","ServiceWorker registration failed: ",a)})}})};var vf=null;function wf(a){this.D=a.document;this.xc=a.document.head;this.ib={};this.Je={};this.Pb=Zc(a);this.ib[E(a.location.href).origin]=!0;var b;a:{if(!vf){b=a.document.createElement("link").relList;if(!b||!b.supports){b={};break a}vf={preconnect:b.supports("preconnect"),preload:b.supports("preload")}}b=vf}this.rc=b;this.P=M(a)}
wf.prototype.url=function(a,b,c){if(xf(b)){b=E(b).origin;var d=Date.now(),e=this.ib[b];if(e&&d<e)c&&(this.ib[b]=d+18E4);else{this.ib[b]=d+(c?18E4:1E4);var g;this.rc.preconnect||(g=this.D.createElement("link"),g.setAttribute("rel","dns-prefetch"),g.setAttribute("href",b),this.xc.appendChild(g));var h=this.D.createElement("link");h.setAttribute("rel","preconnect");h.setAttribute("href",b);h.setAttribute("referrerpolicy","origin");this.xc.appendChild(h);this.P.delay(function(){g&&g.parentNode&&g.parentNode.removeChild(g);
h.parentNode&&h.parentNode.removeChild(h)},1E4);yf(this,a,b)}}};wf.prototype.preload=function(a,b,c){var d=this;if(xf(b)&&!this.Je[b]){var e=this.rc.preload?"preload":"prefetch";this.Je[b]=!0;this.url(a,b,!0);"document"==c&&this.Pb.isSafari()||a.whenFirstVisible().then(function(){var a=d.D.createElement("link");a.setAttribute("rel",e);a.setAttribute("href",b);a.setAttribute("referrerpolicy","origin");d.xc.appendChild(a)})}};function xf(a){return fa(a,"https:")||fa(a,"http:")?!0:!1}
function yf(a,b,c){!a.rc.preconnect&&a.Pb.isSafari()&&b.whenFirstVisible().then(function(){var b=Date.now();a.ib[c]=b+18E4;var e=b-b%18E4,g=new XMLHttpRequest;g.open("HEAD",c+"/amp_preconnect_polyfill_404_or_other_error_expected._Do_not_worry_about_it?"+e,!0);g.send()})}function zf(a,b){this.te=a;this.$e=b;this.a=null}function Af(a){a.a||(a.a=N(a.$e));return a.a}zf.prototype.url=function(a,b){this.te.url(Af(this),a,b)};zf.prototype.preload=function(a,b){this.te.preload(Af(this),a,b)};function Bf(a){this.element=a;this.layout_="nodisplay";this.layoutWidth_=-1;this.inViewport_=!1;this.win=a.ownerDocument.defaultView;this.actionMap_=null;a=this.element;var b=a.ownerDocument.defaultView;J(b,"preconnect",wf);b=I(b,"preconnect");this.preconnect=new zf(b,a);this.config=null}f=Bf.prototype;f.signals=function(){return this.element.signals()};f.getPriority=function(){return 0};f.updatePriority=function(a){this.element.getResources().updatePriority(this.element,a)};f.getLayout=function(){return this.layout_};
f.getLayoutBox=function(){return this.element.getLayoutBox()};f.getPageLayoutBox=function(){return this.element.getPageLayoutBox()};f.getWin=function(){return this.win};f.getAmpDoc=function(){return this.element.getAmpDoc()};f.getVsync=function(){return ad(this.win)};f.getLayoutWidth=function(){return this.layoutWidth_};f.isLayoutSupported=function(a){return"nodisplay"==a};f.isAlwaysFixed=function(){return!1};f.isInViewport=function(){return this.inViewport_};f.upgradeCallback=function(){return null};
f.createdCallback=function(){};f.firstAttachedCallback=function(){};f.buildCallback=function(){};f.preconnectCallback=function(){};f.detachedCallback=function(){};f.setAsOwner=function(a){this.element.getResources().setOwner(a,this.element)};f.prerenderAllowed=function(){return!1};f.createPlaceholderCallback=function(){return null};f.renderOutsideViewport=function(){return 3};f.isRelayoutNeeded=function(){return!1};f.layoutCallback=function(){return Promise.resolve()};f.firstLayoutCompleted=function(){this.togglePlaceholder(!1)};
f.viewportCallback=function(){};f.pauseCallback=function(){};f.resumeCallback=function(){};f.unlayoutCallback=function(){return!1};f.unlayoutOnPause=function(){return!1};f.reconstructWhenReparented=function(){return!0};f.activate=function(){};f.loadPromise=function(a){return Cd(a)};function Cf(a){a.actionMap_||(a.actionMap_=a.win.Object.create(null))}f.registerAction=function(a,b){Cf(this);this.actionMap_[a]=b};
f.executeAction=function(a){if("activate"==a.method)this.activate(a);else{Cf(this);var b=this.actionMap_[a.method];t().assert(b,"Method not found: "+a.method+" in %s",this);b(a)}};f.getMaxDpr=function(){return this.element.getResources().getMaxDpr()};f.getDpr=function(){return this.element.getResources().getDpr()};f.propagateAttributes=function(a,b,c){a=ra(a)?a:[a];for(var d=0;d<a.length;d++){var e=a[d];this.element.hasAttribute(e)?b.setAttribute(e,this.element.getAttribute(e)):c&&b.removeAttribute(e)}};
f.forwardEvents=function(a,b){var c=this;a=ra(a)?a:[a];for(var d={i:0};d.i<a.length;d={i:d.i},d.i++)b.addEventListener(a[d.i],function(b){return function(d){c.element.dispatchCustomEvent(a[b.i],d.data||{})}}(d))};f.getPlaceholder=function(){return this.element.getPlaceholder()};f.togglePlaceholder=function(a){this.element.togglePlaceholder(a)};f.getFallback=function(){return this.element.getFallback()};f.toggleFallback=function(a){this.element.toggleFallback(a)};f.getOverflowElement=function(){return this.element.getOverflowElement()};
f.renderStarted=function(){this.element.renderStarted()};f.getRealChildNodes=function(){return this.element.getRealChildNodes()};f.getRealChildren=function(){return this.element.getRealChildren()};f.applyFillContent=function(a,b){a.classList.add("i-amphtml-fill-content");b&&a.classList.add("i-amphtml-replaced-content")};f.getViewport=function(){return bd(this.getAmpDoc())};f.getIntersectionElementLayoutBox=function(){return this.getLayoutBox()};
f.scheduleLayout=function(a){this.element.getResources().scheduleLayout(this.element,a)};f.schedulePause=function(a){this.element.getResources().schedulePause(this.element,a)};f.scheduleResume=function(a){this.element.getResources().scheduleResume(this.element,a)};f.schedulePreload=function(a){this.element.getResources().schedulePreload(this.element,a)};f.scheduleUnlayout=function(a){this.element.getResources().scheduleUnlayout(this.element,a)};
f.updateInViewport=function(a,b){this.element.getResources().updateInViewport(this.element,a,b)};f.changeHeight=function(a){this.element.getResources().changeSize(this.element,a,void 0)};f.collapse=function(){this.element.getResources().collapseElement(this.element)};f.attemptCollapse=function(){return this.element.getResources().attemptCollapse(this.element)};f.attemptChangeHeight=function(a){return this.element.getResources().attemptChangeSize(this.element,a,void 0)};
f.attemptChangeSize=function(a,b){return this.element.getResources().attemptChangeSize(this.element,a,b)};f.mutateElement=function(a,b){return this.element.getResources().mutateElement(b||this.element,a)};f.deferMutate=function(a){this.element.getResources().deferMutate(this.element,a)};f.collapsedCallback=function(){};f.expand=function(){this.element.getResources().expandElement(this.element)};f.expandedCallback=function(){};f.mutatedAttributesCallback=function(){};
f.getDynamicElementContainers=function(){return[]};f.onLayoutMeasure=function(){};var Df=[],Ef={};function X(a){Bf.call(this,a);a=a.tagName.toLowerCase();Ef[a]||(Ef[a]=!0,Yc(this.win).loadExtension(a,!1));Df.push(this)}ca(X,Bf);X.prototype.getPriority=function(){return 0};X.prototype.isLayoutSupported=function(){return!0};X.prototype.reconstructWhenReparented=function(){return!1};var Ff={"AMP-AD":!0};function Gf(a,b){var c=a.split(",");t().assert(0<c.length,"sizes has to have at least one size");var d=[];c.forEach(function(a){a=a.replace(/\s+/g," ").trim();if(0!=a.length){var c,e,k,l=!1;if(")"==a.charAt(a.length-1)){var l=!0,m=1;for(k=a.length-2;0<=k;k--){var n=a.charAt(k);"("==n?m--:")"==n&&m++;if(0==m)break}var q=k-1;if(0<k)for(k--;0<=k&&(n=a.charAt(k),"%"==n||"-"==n||"_"==n||"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"0"<=n&&"9">=n);k--);t().assert(k<q,'Invalid CSS function in "%s"',a)}else for(k=a.length-
2;0<=k&&(n=a.charAt(k),"%"==n||"."==n||"a"<=n&&"z">=n||"A"<=n&&"Z">=n||"0"<=n&&"9">=n);k--);0<=k?(c=a.substring(0,k+1).trim(),e=a.substring(k+1).trim()):(e=a,c=void 0);d.push({mediaQuery:c,size:l?e:b?Td(e):Sd(e)})}});return new Hf(d)}
function Hf(a){t().assert(0<a.length,"SizeList must have at least one option");this.Yb=a;for(var b=0;b<a.length;b++){var c=a[b];b<a.length-1?t().assert(c.mediaQuery,"All options except for the last must have a media condition"):t().assert(!c.mediaQuery,"The last option must not have a media condition")}}Hf.prototype.select=function(a){for(var b=0;b<this.Yb.length-1;b++){var c=this.Yb[b];if(c.mediaQuery&&a.matchMedia(c.mediaQuery).matches)return c.size}return this.getLast()};
Hf.prototype.getLast=function(){return this.Yb[this.Yb.length-1].size};var If={0:"cld",2:"adld"};function Jf(a,b){this.m=a;this.Ob=Zb(a);this.wb=this.vb=null;this.Pd=!1;this.Nc=If[b]}Jf.prototype.enterViewport=function(){this.Nc&&!this.vb&&(this.vb=this.m.Date.now(),Kf(this))};Jf.prototype.startLayout=function(){this.Nc&&!this.wb&&(this.wb=this.m.Date.now(),Kf(this))};function Kf(a){if(a.Ob&&a.Ob.isPerformanceTrackingOn()&&!a.Pd&&a.vb&&a.wb){var b=a.m.Math.max(a.wb-a.vb,0);a.Ob.tickDelta(a.Nc,b);a.Ob.throttledFlush();a.Pd=!0}};var Lf;function Mf(a){a.ampExtendedElements||(a.ampExtendedElements={});return a.ampExtendedElements}function Nf(a,b,c){var d=Mf(a);if(d[b]){t().assert(d[b]==X,"%s is already registered. The script tag for %s is likely included twice in the page.",b,b);d[b]=c;for(var e=0;e<Df.length;e++){var g=Df[e],h=g.element;if(h.tagName.toLowerCase()==b&&h.ownerDocument.defaultView==a){try{h.upgrade(c)}catch(k){Gd(k,h)}Df.splice(e--,1)}}}else Of(a,b,c)}
function Pf(a){for(var b=Mf(a),c=a.document.head.querySelectorAll("script[custom-element]"),d=0;d<c.length;d++){var e=c[d].getAttribute("custom-element");b[e]||Of(a,e,X)}if(!a.document.body){var g=rd(a);g.onBodyAvailable(function(){return Pf(a)})}}function Qf(a,b){Mf(a)[b]||Of(a,b,X)}function Rf(a){var b="string"==typeof a?a:a.tagName;return b&&fa(b.toLowerCase(),"i-")||a.tagName&&(a.hasAttribute("placeholder")||a.hasAttribute("fallback")||a.hasAttribute("overflow"))?!0:!1}
function Sf(a,b){function c(a){return d.call(this,a)}var d=Tf(a);ca(c,d);c.prototype.elementName=function(){return b};return c}
function Tf(a){function b(a){a=c.call(this,a);a.createdCallback();return a}if(a.BaseCustomElementClass)return a.BaseCustomElementClass;var c=a.HTMLElement;ca(b,c);b.prototype.createdCallback=function(){this.oc=!1;this.readyState="loading";this.everAttached=!1;this.c=this.R=null;this.layout_="nodisplay";this.layoutWidth_=-1;this.T=0;this.ja=this.Ec=!1;this.Sc=this.Qc=this.Ra=this.xb=this.Xb=this.Hb=void 0;this.Rc=this.va=null;this.U=void 0;var b=Mf(a)[this.elementName()];this.implementation_=new b(this);
this.Ua=1;this.eb=this.sa=void 0;this.G=new ae;var c=Zb(a);this.re=c&&c.isPerformanceTrackingOn();this.Pc=null};b.prototype.elementName=function(){};b.prototype.signals=function(){return this.G};b.prototype.getAmpDoc=function(){return this.R};b.prototype.getResources=function(){return this.c};b.prototype.isUpgraded=function(){return 2==this.Ua};b.prototype.upgrade=function(a){this.eb||1!=this.Ua||(this.implementation_=new a(this),this.everAttached&&this.Ge())};b.prototype.qc=function(a){this.Ua=2;
this.implementation_=a;this.classList.remove("amp-unresolved");this.classList.remove("i-amphtml-unresolved");this.implementation_.createdCallback();this.Pe();this.implementation_.layout_=this.layout_;this.implementation_.layoutWidth_=this.layoutWidth_;this.implementation_.firstAttachedCallback();this.Ha();this.getResources().upgraded(this)};b.prototype.Pe=function(){if("nodisplay"!=this.layout_&&!this.implementation_.isLayoutSupported(this.layout_)){var a="Layout not supported: "+this.layout_;this.getAttribute("layout")||
(a+=". The element did not specify a layout attribute. Check https://www.ampproject.org/docs/guides/responsive/control_layout and the respective element documentation for details.");throw t().createError(a);}};b.prototype.isBuilt=function(){return this.oc};b.prototype.whenBuilt=function(){return this.G.whenSignal("built")};b.prototype.getPriority=function(){this.isUpgraded();return this.implementation_.getPriority()};b.prototype.build=function(){if(!this.isBuilt()){this.isUpgraded();try{this.implementation_.buildCallback(),
this.preconnect(!1),this.oc=!0,this.classList.remove("i-amphtml-notbuilt"),this.classList.remove("amp-notbuilt"),this.G.signal("built")}catch(e){throw this.G.rejectSignal("built",e),Gd(e,this),e;}this.oc&&this.ja&&this.He(!0);this.sa&&M(this.ownerDocument.defaultView).delay(this.Xe.bind(this),1);if(!this.getPlaceholder()){var a=this.createPlaceholder();a&&this.appendChild(a)}}};b.prototype.preconnect=function(a){var b=this;a?this.implementation_.preconnectCallback(a):M(this.ownerDocument.defaultView).delay(function(){b.implementation_.preconnectCallback(a)},
1)};b.prototype.isAlwaysFixed=function(){return this.implementation_.isAlwaysFixed()};b.prototype.updateLayoutBox=function(a){var b=this;this.layoutWidth_=a.width;this.isUpgraded()&&(this.implementation_.layoutWidth_=this.layoutWidth_);if(this.isBuilt())try{this.implementation_.onLayoutMeasure()}catch(g){Gd(g,this)}this.Cb()&&(this.ja?this.Sa(!0):1E3>a.top&&0<=a.top&&ad(this.ownerDocument.defaultView).mutate(function(){b.Cb()&&b.ue()}))};b.prototype.Yd=function(){void 0===this.Ra&&"responsive"===
this.layout_&&(this.Ra=this.querySelector("i-amphtml-sizer"));return this.Ra||null};b.prototype.applySizesAndMediaQuery=function(){void 0===this.Hb&&(this.Hb=this.getAttribute("media")||null);if(this.Hb){var a=this.ownerDocument.defaultView;this.classList.toggle("i-amphtml-hidden-by-media-query",!a.matchMedia(this.Hb).matches)}if(void 0===this.Xb){var b=this.getAttribute("sizes");this.Xb=b?Gf(b):null}this.Xb&&Q(this,"width",this.Xb.select(this.ownerDocument.defaultView));void 0===this.xb&&"responsive"===
this.layout_&&(this.xb=(b=this.getAttribute("heights"))?Gf(b,!0):null);this.xb&&(b=this.Yd())&&Q(b,"paddingTop",this.xb.select(this.ownerDocument.defaultView))};b.prototype.changeSize=function(a,b,c){var d=this.Yd();d&&(this.Ra=null,Q(d,"paddingTop","0"),this.c&&this.c.deferMutate(this,function(){d.parentElement&&d.parentElement.removeChild(d)}));void 0!==a&&Q(this,"height",a,"px");void 0!==b&&Q(this,"width",b,"px");c&&(null!=c.top&&Q(this,"marginTop",c.top,"px"),null!=c.right&&Q(this,"marginRight",
c.right,"px"),null!=c.bottom&&Q(this,"marginBottom",c.bottom,"px"),null!=c.left&&Q(this,"marginLeft",c.left,"px"));this.gf()&&this.Of()};b.prototype.connectedCallback=function(){this.everAttached||(this.classList.add("i-amphtml-element"),this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt"));void 0===Lf&&(Lf="content"in self.document.createElement("template"));Lf||void 0!==this.eb||(this.eb=!!wc(this,"template"));if(!this.eb)if(this.R||(this.R=I(this.ownerDocument.defaultView,
"ampdoc").getAmpDoc(this)),this.c||(this.c=$c(this.R)),this.getResources().add(this),this.everAttached){var a=this.reconstructWhenReparented();a&&this.xe();this.isUpgraded()&&(a&&this.getResources().upgraded(this),this.Ha())}else{this.everAttached=!0;try{var b;var c=this.getAttribute("i-amphtml-layout");if(c){var h=Pd(c);"responsive"==h&&this.firstElementChild&&(this.Ra=this.querySelector("i-amphtml-sizer")||void 0);b=h}else{var k=this.getAttribute("layout"),l=this.getAttribute("width"),m=this.getAttribute("height"),
n=this.getAttribute("sizes"),q=this.getAttribute("heights"),C=k?Pd(k):null;t().assert(void 0!==C,"Unknown layout: %s",k);var u=l&&"auto"!=l?Rd(l):l;t().assert(void 0!==u,"Invalid width value: %s",l);var x=m?Rd(m):null;t().assert(void 0!==x,"Invalid height value: %s",m);var r,D,A,U;if(!(U=C&&"fixed"!=C&&"fixed-height"!=C||u&&x)){var ja=this.tagName,ja=ja.toUpperCase();U=void 0===Nd[ja]}if(U)r=u,D=x;else{var T=this.tagName.toUpperCase();if(!Nd[T]){var L=this.ownerDocument,y=T.replace(/^AMP\-/,""),B=
L.createElement(y);B.controls=!0;R(B,{position:"absolute",visibility:"hidden"});L.body.appendChild(B);Nd[T]={width:(B.offsetWidth||1)+"px",height:(B.offsetHeight||1)+"px"};L.body.removeChild(B)}var V=Nd[T];r=u||"fixed-height"==C?u:V.width;D=x||V.height}A=C?C:r||D?!D||r&&"auto"!=r?D&&r&&(n||q)?"responsive":"fixed":"fixed-height":"container";"fixed"!=A&&"fixed-height"!=A&&"responsive"!=A||t().assert(D,"Expected height to be available: %s",m);"fixed-height"==A&&t().assert(!r||"auto"==r,'Expected width to be either absent or equal "auto" for fixed-height layout: %s',
l);"fixed"!=A&&"responsive"!=A||t().assert(r&&"auto"!=r,'Expected width to be available and not equal to "auto": %s',l);"responsive"==A?t().assert(Ud(r)==Ud(D),"Length units should be the same for width and height: %s, %s",l,m):t().assert(null===q,'Unexpected "heights" attribute for none-responsive layout');this.classList.add("i-amphtml-layout-"+A);Qd(A)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==A)Q(this,"display","none");else if("fixed"==A)R(this,{width:r,height:D});else if("fixed-height"==
A)Q(this,"height",D);else if("responsive"==A){var qa=this.ownerDocument.createElement("i-amphtml-sizer");R(qa,{display:"block",paddingTop:Vd(D)/Vd(r)*100+"%"});this.insertBefore(qa,this.firstChild);this.Ra=qa}else"fill"!=A&&"container"!=A&&"flex-item"==A&&(r&&Q(this,"width",r),D&&Q(this,"height",D));b=A}this.layout_=b}catch(S){Gd(S,this)}this.implementation_ instanceof X||this.Ge();this.isUpgraded()||(this.classList.add("amp-unresolved"),this.classList.add("i-amphtml-unresolved"),this.Ha())}};b.prototype.gf=
function(){return this.classList.contains("i-amphtml-layout-awaiting-size")};b.prototype.Of=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};b.prototype.attachedCallback=function(){this.connectedCallback()};b.prototype.Ge=function(){var a=this,b=this.implementation_;if(1==this.Ua){this.Ua=4;var c=b.upgradeCallback();c?"function"==typeof c.then?c.then(function(c){a.qc(c||b)}).catch(function(b){a.Ua=3;ya(b)}):this.qc(c):this.qc(b)}};b.prototype.disconnectedCallback=function(){this.eb||
(this.getResources().remove(this),this.implementation_.detachedCallback())};b.prototype.detachedCallback=function(){this.disconnectedCallback()};b.prototype.dispatchCustomEvent=function(a,b){b=b||{};var c=this.ownerDocument.defaultView.document.createEvent("Event");c.data=b;c.initEvent(a,!0,!0);this.dispatchEvent(c)};b.prototype.Ha=function(){};b.prototype.prerenderAllowed=function(){return this.implementation_.prerenderAllowed()};b.prototype.createPlaceholder=function(){return this.implementation_.createPlaceholderCallback()};
b.prototype.renderOutsideViewport=function(){return this.implementation_.renderOutsideViewport()};b.prototype.getLayoutBox=function(){return this.getResources().getResourceForElement(this).getLayoutBox()};b.prototype.getPageLayoutBox=function(){return this.getResources().getResourceForElement(this).getPageLayoutBox()};b.prototype.getOwner=function(){return this.getResources().getResourceForElement(this).getOwner()};b.prototype.getIntersectionChangeEntry=function(){var a=this.implementation_.getIntersectionElementLayoutBox(),
b=this.getResources().getResourceForElement(this).getOwner(),c=this.implementation_.getViewport().getRect(),h=b&&b.getLayoutBox(),k=a,b=c,l=he(k,h,b)||W(0,0,0,0),m=l.width*l.height/(k.width*k.height),n=b;b&&(l=je(l,-b.left,-b.top),k=je(k,-b.left,-b.top),n=je(n,-b.left,-b.top));return{time:"undefined"!==typeof performance&&performance.now?performance.now():Date.now()-Pe,rootBounds:n&&Qe(n),boundingClientRect:Qe(k),intersectionRect:Qe(l),intersectionRatio:m}};b.prototype.getResourceId=function(){return this.getResources().getResourceForElement(this).getId()};
b.prototype.isRelayoutNeeded=function(){return this.implementation_.isRelayoutNeeded()};b.prototype.layoutCallback=function(){var a=this;this.isBuilt();this.Ha();var b=0==this.T;b&&this.G.signal("load-start");this.re&&this.Xd().startLayout();var c=this.implementation_.layoutCallback();this.preconnect(!0);this.classList.add("i-amphtml-layout");return c.then(function(){b&&a.G.signal("load-end");a.readyState="complete";a.T++;a.Sa(!1,!0);a.Ec||(a.implementation_.firstLayoutCompleted(),a.Ec=!0,a.dispatchCustomEvent("amp:load:end"))},
function(c){b&&a.G.rejectSignal("load-end",c);a.T++;a.Sa(!1,!0);throw c;})};b.prototype.viewportCallback=function(a){var b=this;this.ja=a;0==this.T&&(a?M(this.ownerDocument.defaultView).delay(function(){b.ja&&b.Sa(!0)},100):this.Sa(!1));this.isBuilt()&&this.He(a)};b.prototype.He=function(a){this.implementation_.inViewport_=a;this.implementation_.viewportCallback(a);a&&this.re&&this.Xd().enterViewport()};b.prototype.pauseCallback=function(){this.isBuilt()&&this.implementation_.pauseCallback()};b.prototype.resumeCallback=
function(){this.isBuilt()&&this.implementation_.resumeCallback()};b.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1;var a=this.implementation_.unlayoutCallback();a&&this.xe();return a};b.prototype.xe=function(){this.T=0;this.Ec=!1;this.G.reset("render-start");this.G.reset("load-start");this.G.reset("load-end");this.G.reset("ini-load")};b.prototype.unlayoutOnPause=function(){return this.implementation_.unlayoutOnPause()};b.prototype.reconstructWhenReparented=function(){return this.implementation_.reconstructWhenReparented()};
b.prototype.collapse=function(){this.implementation_.collapse()};b.prototype.collapsedCallback=function(a){this.implementation_.collapsedCallback(a)};b.prototype.expand=function(){this.implementation_.expand()};b.prototype.expandedCallback=function(a){this.implementation_.expandedCallback(a)};b.prototype.mutatedAttributesCallback=function(a){this.implementation_.mutatedAttributesCallback(a)};b.prototype.getDynamicElementContainers=function(){return this.implementation_.getDynamicElementContainers()};
b.prototype.enqueAction=function(a){this.isBuilt()?this.Ud(a,!1):(void 0===this.sa&&(this.sa=[]),this.sa.push(a))};b.prototype.Xe=function(){var a=this;if(this.sa){var b=this.sa;this.sa=null;b.forEach(function(b){a.Ud(b,!0)})}};b.prototype.Ud=function(a,b){try{this.implementation_.executeAction(a,b)}catch(g){ya("Action execution failed:",g,a.target.tagName,a.method)}};b.prototype.getRealChildNodes=function(){return zc(this,function(a){return!Rf(a)})};b.prototype.getRealChildren=function(){return xc(this,
function(a){return!Rf(a)})};b.prototype.getPlaceholder=function(){return yc(this,function(a){return a.hasAttribute("placeholder")&&!("placeholder"in a)})};b.prototype.togglePlaceholder=function(a){if(a){var b=this.getPlaceholder();b&&b.classList.remove("amp-hidden")}else{null==Ac&&(Ac=Bc(this));Ac?b=this.querySelectorAll(":scope > [placeholder]"):(this.classList.add("i-amphtml-scoped"),b=this.querySelectorAll(".i-amphtml-scoped > [placeholder]"),this.classList.remove("i-amphtml-scoped"));for(var c=
b,b=0;b<c.length;b++)c[b].classList.add("amp-hidden")}};b.prototype.getFallback=function(){return Oc(this,"> [fallback]")};b.prototype.toggleFallback=function(a){this.classList.toggle("amp-notsupported",a);if(1==a){var b=this.getFallback();b&&this.getResources().scheduleLayout(this,b)}};b.prototype.renderStarted=function(){this.G.signal("render-start");this.Sa(!1)};b.prototype.Cb=function(){void 0===this.Qc&&(this.Qc=this.hasAttribute("noloading"));var a;(a=this.Qc)||(a=this.tagName.toUpperCase(),
a=!("AMP-AD"==a||"AMP-EMBED"==a||Od[a]));return a||100>this.layoutWidth_||0<this.T||Rf(this)||!Qd(this.layout_)?!1:!0};b.prototype.ue=function(){if(!this.va){var a=this.ownerDocument,b=a.createElement("div");b.classList.add("i-amphtml-loading-container");b.classList.add("i-amphtml-fill-content");b.classList.add("amp-hidden");var c=this.elementName(),h=a.createElement("div");if(Ff[c.toUpperCase()])h.classList.add("i-amphtml-loader-line"),c=a.createElement("div"),c.classList.add("i-amphtml-loader-moving-line"),
a=a.defaultView,(G(a,"ad-loader-v1")||G(a,"ad-loader-v2"))&&c.setAttribute("experiment",""),h.appendChild(c);else for(h.classList.add("i-amphtml-loader"),c=0;3>c;c++){var k=a.createElement("div");k.classList.add("i-amphtml-loader-dot");h.appendChild(k)}b.appendChild(h);this.appendChild(b);this.va=b;this.Rc=h}};b.prototype.Sa=function(a,b){var c=this;if(!a||!(0<this.T||this.G.get("render-start")))if((this.Sc=a)||this.va)a&&!this.Cb()?this.Sc=!1:ad(this.ownerDocument.defaultView).mutate(function(){var a=
c.Sc;a&&!c.Cb()&&(a=!1);a&&c.ue();if(c.va&&(c.va.classList.toggle("amp-hidden",!a),c.Rc.classList.toggle("amp-active",a),!a&&b)){var d=c.va;c.va=null;c.Rc=null;c.getResources().deferMutate(c,function(){var a=d;a.parentElement&&a.parentElement.removeChild(a)})}})};b.prototype.Xd=function(){this.Pc||(this.Pc=new Jf(this.ownerDocument.defaultView,this.getPriority()));return this.Pc};b.prototype.getOverflowElement=function(){void 0===this.U&&(this.U=Oc(this,"> [overflow]"))&&(this.U.hasAttribute("tabindex")||
this.U.setAttribute("tabindex","0"),this.U.hasAttribute("role")||this.U.setAttribute("role","button"));return this.U};b.prototype.overflowCallback=function(a,b,c){var d=this;this.getOverflowElement();this.U?(this.U.classList.toggle("amp-visible",a),this.U.onclick=a?function(){d.getResources().changeSize(d,b,c);ad(d.ownerDocument.defaultView).mutate(function(){d.overflowCallback(!1,b,c)})}:null):a&&t().warn("CustomElement","Cannot resize element and overflow is not available",this)};a.BaseCustomElementClass=
b;return a.BaseCustomElementClass}function Of(a,b,c){Mf(a)[b]=c;var d=Sf(a,b),e="customElements"in a;e?a.customElements.define(b,d):a.document.registerElement(b,{prototype:d.prototype})};function Uf(){var a=self;if(p().development){var b=a.location.href;if(!fa(b,"about:")){var c=a.document.createElement("script");c.src=Ea.urls.cdn+"/v0/validator.js";c.onload=function(){a.document.head.removeChild(c);amp.validator.validateUrlAndLog(b,a.document,p().filter)};a.document.head.appendChild(c)}}};function Vf(a){var b=this;this.win=a;this.ce=this.win.Date.now();this.bb=[];this.c=this.a=null;this.fb=this.Hc=!1;this.Rd=w();this.xd="";this.addEnabledExperiment(p(this.win).rtvVersion);Ya(this.win)&&this.addEnabledExperiment("canary");ge(a.document).then(function(){b.tick("ol");b.win.chrome&&"function"==typeof b.win.chrome.loadTimes&&b.tickDelta("fp",1E3*b.win.chrome.loadTimes().firstPaintTime-b.win.performance.timing.navigationStart);b.flush()})}f=Vf.prototype;
f.coreServicesAvailable=function(){var a=this;this.a=N(this.win.document);this.c=$c(this.win.document);this.fb=this.a.isEmbedded()&&"1"===this.a.getParam("csi");this.a.onVisibilityChanged(this.flush.bind(this));Wf(this);var b=this.a.whenMessagingReady();this.a.whenFirstVisible().then(function(){a.tick("ofv");a.flush()});return b?b.then(function(){a.Hc=!0;a.tickDelta("msr",a.win.Date.now()-a.ce);Xf(a);a.flush()}):Promise.resolve()};
function Wf(a){var b=!a.a.hasBeenVisible(),c=b?-1:a.ce;b&&a.a.whenFirstVisible().then(function(){c=a.win.Date.now()});Yf(a).then(function(){if(b){var d=-1<c?a.win.Date.now()-c:0;a.a.whenFirstVisible().then(function(){a.tickDelta("pc",d)});Zf(a,d)}else a.tick("pc"),Zf(a,a.win.Date.now()-c);a.flush()})}
function Yf(a){var b=bd(a.win.document).getSize(),b=W(0,0,b.width,b.height);return a.c.getResourcesInRect(a.win,b,!0).then(function(a){return Promise.all(a.map(function(a){return a.loadedOnce()}))})}f.tick=function(a,b){var c=void 0==b?this.win.Date.now():void 0,c={label:a,value:c,delta:null!=b?Math.max(b,1):void 0};this.Hc&&this.fb?this.a.sendMessage("tick",c):(50<=this.bb.length&&this.bb.shift(),this.bb.push(c));this.win.performance&&this.win.performance.mark&&1==arguments.length&&this.win.performance.mark(a)};
f.tickDelta=function(a,b){this.tick(a,b)};f.tickSinceVisible=function(a){var b=this.win.Date.now(),c=this.a?this.a.getFirstVisibleTime():0;this.tickDelta(a,c?Math.max(b-c,0):0)};f.flush=function(){this.Hc&&this.fb&&this.a.sendMessage("sendCsi",{ampexp:this.xd},!0)};f.throttledFlush=function(){this.Ee||(this.Ee=Me(this.win,this.flush.bind(this)));this.Ee()};f.addEnabledExperiment=function(a){this.Rd[a]=!0;this.xd=Object.keys(this.Rd).join(",")};
function Xf(a){a.a&&(a.fb&&a.bb.forEach(function(b){a.a.sendMessage("tick",b)}),a.bb.length=0)}function Zf(a,b){a.a&&a.a.sendMessage("prerenderComplete",{value:b},!0)}f.isPerformanceTrackingOn=function(){return this.fb};function $f(a){this.element=a;this.win=a.ownerDocument.defaultView;this.compileCallback()}$f.prototype.compileCallback=function(){};$f.prototype.render=function(){throw Error("Not implemented");};$f.prototype.unwrap=function(a){for(var b=null,c=a.firstChild;null!=c;c=c.nextSibling)if(3==c.nodeType){if(c.textContent.trim()){b=null;break}}else if(8!=c.nodeType)if(1==c.nodeType)if(b){b=null;break}else b=c;else b=null;return b||a};function ag(a){this.m=a;this.qb={};this.md={};this.ub=void 0}f=ag.prototype;
f.renderTemplate=function(a,b){return bg(this,a).then(function(a){return a.render(b)})};f.renderTemplateArray=function(a,b){return 0==b.length?Promise.resolve([]):bg(this,a).then(function(a){return b.map(function(b){return a.render(b)})})};f.findAndRenderTemplate=function(a,b){return this.renderTemplate(cg(a),b)};f.findAndRenderTemplateArray=function(a,b){return this.renderTemplateArray(cg(a),b)};f.hasTemplate=function(a){return!!dg(a)};
function cg(a){var b=dg(a);t().assert(b,"Template not found for %s",a);t().assert("TEMPLATE"==b.tagName,'Template element must be a "template" tag %s',b);return b}function dg(a){var b=a.getAttribute("template");return b?a.ownerDocument.getElementById(b):Oc(a,"> template")}
function bg(a,b){var c=b.__AMP_IMPL_;if(c)return Promise.resolve(c);var c=t().assert(b.getAttribute("type"),"Type must be specified: %s",b),d=b.__AMP_WAIT_;if(d)return d;d=eg(a,b,c).then(function(a){var c=b.__AMP_IMPL_=new a(b);delete b.__AMP_WAIT_;return c});return b.__AMP_WAIT_=d}function eg(a,b,c){if(a.qb[c])return a.qb[c];fg(a,b,c);var d;b=new Promise(function(a){d=a});a.qb[c]=b;a.md[c]=d;return b}
function fg(a,b,c){if(!a.ub){a.ub=a.m.Object.create(null);for(var d=a.m.document.querySelectorAll("script[custom-template]"),e=0;e<d.length;e++)a.ub[d[e].getAttribute("custom-template")]=!0}t().assert(a.ub[c],"Template must be declared for %s as <script custom-template=%s>",b,c)};var gg={PRERENDER:"prerender",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"};var hg="__AMP_ACTION_MAP__"+Math.random(),ig={form:["submit"],AMP:["setState"]},jg={range:{min:"number",max:"number",value:"number"},radio:{checked:"boolean"},checkbox:{checked:"boolean"}};function kg(a,b,c,d,e){this.target=a;this.method=b;this.args=c;this.source=d;this.event=e}function lg(a,b){this.ampdoc=a;this.Qa=b||a.getRootNode();this.Zd=w();this.tc=w();this.j=ad(a.win);this.addEvent("tap");this.addEvent("submit");this.addEvent("change")}f=lg.prototype;
f.adoptEmbedWindow=function(a){ec(a,"action",new lg(this.ampdoc,a.document))};
f.addEvent=function(a){var b=this;"tap"==a?(this.Qa.addEventListener("click",function(c){c.defaultPrevented||b.trigger(c.target,a,c)}),this.Qa.addEventListener("keydown",function(c){var d=c.keyCode;if(13==d||32==d){var e=c.target;c.defaultPrevented||"button"!=e.getAttribute("role")||(c.preventDefault(),b.trigger(e,a,c))}})):"submit"==a?this.Qa.addEventListener(a,function(c){b.trigger(c.target,a,c)}):"change"==a&&this.Qa.addEventListener(a,function(c){mg(c);b.trigger(c.target,a,c)})};
function mg(a){var b=w(),c=a.target;switch(c.tagName.toLowerCase()){case "input":var d=c.getAttribute("type"),e=jg[d];e&&Object.keys(e).forEach(function(a){var d=e[a],g=c[a];b[a]="number"===d?Number(g):"boolean"===d?!!g:String(g)});break;case "select":b.value=c.value}0<Object.keys(b).length&&(a.detail=b)}f.addGlobalTarget=function(a,b){this.Zd[a]=b};f.addGlobalMethodHandler=function(a,b){this.tc[a]=b};
f.trigger=function(a,b,c){a:{for(;a;){var d=b,e;e=a;var g=e[hg];if(void 0===g){g=null;if(e.hasAttribute("on")){var g=e.getAttribute("on"),h=ng.bind(null,g,e),k=og.bind(null,g,e),l=null,m=new pg(g),n,q;do if(n=m.next(),n.type!=qg&&(n.type!=Y||";"!=n.value))if(n.type==rg||n.type==sg){var C=n.value;k(m.next(),[Y],":");var u=[];do{var x=k(m.next(),[rg,sg]).value,r="activate",D=null;q=m.peek();q.type==Y&&"."==q.value&&(m.next(),r=k(m.next(),[rg,sg]).value||r,q=m.peek(),q.type==Y&&"("==q.value&&(m.next(),
D=tg(m,k,h)));u.push({event:C,target:x,method:r,args:D,str:g});q=m.peek()}while(q.type==Y&&","==q.value&&m.next());l||(l=w());l[C]=u}else h(!1,"; unexpected token ["+(n.value||"")+"]");while(n.type!=qg);g=l}e[hg]=g}if(d=(e=g)?e[d]||null:null){b={node:a,actionInfos:d};break a}a=a.parentElement}b=null}if(b)for(a=0;a<b.actionInfos.length;a++)d=b.actionInfos[a],e=ug(d.args,c),(g=this.Zd[d.target])?(d=new kg(this.Qa,d.method,e,b.node,c),g(d)):(g=this.Qa.getElementById(d.target))?vg(this,g,d.method,e,b.node,
c,d):wg("target not found",d,g)};f.execute=function(a,b,c,d,e){vg(this,a,b,c,d,e,null)};
f.installActionHandler=function(a,b){var c=a.getAttribute("id")||"",d=a.tagName+"#"+c;c&&"amp-"==c.substring(0,4)||a.tagName.toLowerCase();if(a.__AMP_ACTION_HANDLER__)v().error("Action","Action handler already installed for "+a);else{var e=a.__AMP_ACTION_QUEUE__;a.__AMP_ACTION_HANDLER__=b;ra(e)&&M(a.ownerDocument.defaultView).delay(function(){e.forEach(function(a){try{b(a)}catch(h){v().error("Action","Action execution failed:",a,h)}});a.__AMP_ACTION_QUEUE__.length=0},1)}};
function wg(a,b,c){t().assert(!1,"Action Error: "+a+(b?" in ["+b.str+"]":"")+(c?" on ["+c+"]":""))}
function vg(a,b,c,d,e,g,h){d=new kg(b,c,d,e,g);if(a.tc[d.method])a.tc[d.method](d);else{var k=b.tagName.toLowerCase();if("amp-"==k.substring(0,4))b.enqueAction?b.enqueAction(d):wg('Unrecognized AMP element "'+k+'". Did you forget to include it via <script custom-element>?',h,b);else{var l=ig[k];(a=b.getAttribute("id")||"")&&"amp-"==a.substring(0,4)||l&&-1!=l.indexOf(c)?(c=b.__AMP_ACTION_HANDLER__)?c(d):(b.__AMP_ACTION_QUEUE__=b.__AMP_ACTION_QUEUE__||[],b.__AMP_ACTION_QUEUE__.push(d)):wg("Target element does not support provided action",
h,b)}}}
function tg(a,b,c){var d=a.peek(),e,g=null;if(d.type==xg){var g=w(),h=a.next().value;g.__AMP_OBJECT_STRING__=function(){return h};b(a.next(),[Y],")")}else{do{e=a.next();var d=e.type,k=e.value;if(d!=Y||","!=k&&")"!=k)if(d==rg||d==sg){b(a.next(),[Y],"=");e=b(a.next(!0),[rg,sg]);var l=[e];if(e.type==sg)for(d=a.peek();d.type==Y&&"."==d.value;d=a.peek())e=a.next(),e=b(a.next(!1),[sg]),l.push(e);var m=yg(l);g||(g=w());g[k]=m;d=a.peek();c(d.type==Y&&(","==d.value||")"==d.value),"Expected either [,] or [)]")}else c(!1,"; unexpected token ["+
(e.value||"")+"]")}while(e.type!=Y||")"!=e.value)}return g}function yg(a){return 0==a.length?null:1==a.length?function(){return a[0].value}:function(b){for(var c=0;c<a.length;c++){var d=a[c].value;if(b&&b.hasOwnProperty(d))b=b[d];else return null}c=typeof b;return"string"===c||"number"===c||"boolean"===c?b:null}}function ug(a,b){if(!a)return a;var c={};b&&b.detail&&(c.event=b.detail);var d=w();Object.keys(a).forEach(function(b){d[b]=a[b].call(null,c)});return d}
function ng(a,b,c,d){return t().assert(c,"Invalid action definition in %s: [%s] %s",b,a,d||"")}function og(a,b,c,d,e){void 0!==e?ng(a,b,d.includes(c.type)&&c.value==e,"; expected ["+e+"]"):ng(a,b,d.includes(c.type));return c}var qg=1,Y=2,rg=3,sg=4,xg=5;function pg(a){this.A=a;this.yc=-1}pg.prototype.next=function(a){var b=zg(this,a||!1);this.yc=b.index;return b};pg.prototype.peek=function(a){return zg(this,a||!1)};
function zg(a,b){var c=a.yc+1;if(c>=a.A.length)return{type:qg,index:a.yc};var d=a.A.charAt(c);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(d)){for(c++;c<a.A.length&&" \t\n\r\f\v\u00a0\u2028\u2029".includes(a.A.charAt(c));c++);if(c>=a.A.length)return{type:qg,index:c};d=a.A.charAt(c)}if(b&&(Ag(d)||"."==d&&c+1<a.A.length&&Ag(a.A[c+1]))){for(var e="."==d,g=c+1;g<a.A.length;g++){var h=a.A.charAt(g);if("."==h)e=!0;else if(!Ag(h))break}a=a.A.substring(c,g);a=e?parseFloat(a):parseInt(a,10);c=g-1;return{type:rg,
value:a,index:c}}if(-1!=";:.()=,|!".indexOf(d))return{type:Y,value:d,index:c};if(-1!="\"'".indexOf(d)){for(var g=-1,k=c+1;k<a.A.length;k++)if(a.A.charAt(k)==d){g=k;break}if(-1==g)return{type:0,index:c};a=a.A.substring(c+1,g);c=g;return{type:rg,value:a,index:c}}if("{"==d){for(var l=1,g=-1,d=c+1;d<a.A.length;d++){var m=a.A[d];"{"==m?l++:"}"==m&&l--;if(0>=l){g=d;break}}if(-1==g)return{type:0,index:c};a=a.A.substring(c,g+1);c=g;return{type:xg,value:a,index:c}}for(g=c+1;g<a.A.length&&-1==" \t\n\r\f\x0B\u00a0\u2028\u2029;:.()=,|!\"'{}".indexOf(a.A.charAt(g));g++);
a=a.A.substring(c,g);c=g-1;return!b||"true"!=a&&"false"!=a?Ag(a.charAt(0))?{type:rg,value:a,index:c}:{type:sg,value:a,index:c}:{type:rg,value:"true"==a,index:c}}function Ag(a){return"0"<=a&&"9">=a};function Bg(a){this.m=a;this.mf=(this.Da=a.crypto?a.crypto.subtle||a.crypto.webkitSubtle||null:null)&&a.crypto&&"webkitSubtle"in a.crypto;this.kb=null}f=Bg.prototype;
f.sha384=function(a){var b=this;"string"===typeof a&&(a=ed(a));if(!this.Da||this.kb)return(this.kb||Cg(this)).then(function(b){return b.sha384(a)});try{return this.Da.digest({name:"SHA-384"},a).then(function(a){return new Uint8Array(a)},function(c){c.message&&0>c.message.indexOf("secure origin")&&v().error("Crypto","SubtleCrypto failed, fallback to closure lib.",c);return Cg(b).then(function(){return b.sha384(a)})})}catch(c){return v().error("Crypto","SubtleCrypto failed, fallback to closure lib.",
c),Cg(this).then(function(){return b.sha384(a)})}};f.sha384Base64=function(a){return this.sha384(a).then(function(a){return id(a)})};f.uniform=function(a){return this.sha384(a).then(function(a){for(var b=0,d=2;0<=d;d--)b=(b+a[d])/256;return b})};function Cg(a){return a.kb?a.kb:a.kb=Yc(a.m).loadExtension("amp-crypto-polyfill").then(function(){return I(a.m,"crypto-polyfill")})}
f.importPublicKey=function(a,b){var c=this;this.isCryptoAvailable();return(this.mf?cd(JSON.stringify(b)):Promise.resolve(b)).then(function(a){return c.Da.importKey("jwk",a,{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},!0,["verify"])}).then(function(d){if("string"!=typeof b.n||"string"!=typeof b.e)throw Error("missing fields in JSON Web Key");var e=hd(b.n),g=hd(b.e),h=Dg(e),k=Dg(g),l=new Uint8Array(h.length+k.length);l.set(h);l.set(k,h.length);return c.Da.digest({name:"SHA-1"},l).then(function(b){return{serviceName:a,
cryptoKey:d,hash:new Uint8Array(b,0,4)}})})};f.verifyHashVersion=function(a,b){var c;if(c=5<a.length&&0==a[0])a:if(c=b.hash,a&&c){for(var d=0;4>d;d++)if(a[d+1]!==c[d]){c=!1;break a}c=!0}else c=!1;return c};f.verifySignature=function(a,b,c){this.isCryptoAvailable();if(!this.verifyHashVersion(b,c))return Promise.resolve(!1);var d=new Uint8Array(a.length+1);d.set(a);d[a.length]=0;return this.Da.verify({name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}},c.cryptoKey,b.subarray(5),d)};
f.isCryptoAvailable=function(){return!!this.Da};function Dg(a){var b=new Uint8Array(4+a.length);b[0]=a.length>>24&255;b[1]=a.length>>16&255;b[2]=a.length>>8&255;b[3]=a.length&255;b.set(a,4);return b};var Eg=["prefetch","preload","preconnect","dns-prefetch"];function Fg(a){this.R=a;this.zc=null}Fg.prototype.get=function(){if(this.zc)return this.zc;var a=this.R,b=a.getUrl(),c=Ua(b),d=a.getRootNode(),e=d&&d.AMP&&d.AMP.canonicalUrl;if(!e)var g=d.querySelector("link[rel=canonical]"),e=g?E(g.href).href:c;var h=String(Math.floor(1E4*a.win.Math.random())),k=Gg(a.win.document);return this.zc={get sourceUrl(){return Ua(a.getUrl())},canonicalUrl:e,pageViewId:h,linkRels:k}};
function Gg(a){var b=w();if(a.head){var c=a.head.querySelectorAll("link[rel]");a={};for(var d=0;d<c.length;a={href:a.href},d++){var e=c[d];a.href=e.href;var g=e.getAttribute("rel");g&&a.href&&g.split(/\s+/).forEach(function(a){return function(c){if(-1==Eg.indexOf(c)){var d=b[c];d?(ra(d)||(d=b[c]=[d]),d.push(a.href)):b[c]=a.href}}}(a))}}return b};function Hg(a,b){this.ampdoc=a;this.ya=b||a.getRootNode();this.o=bd(this.ampdoc);this.a=N(this.ampdoc);this.C=H(this.ampdoc,"history");var c=Zc(this.ampdoc.win);this.kf=c.isIos()&&c.isSafari();this.Bb=Qc(this.ampdoc.win)&&this.a.isOvertakeHistory();this.Dc=this.ya!=this.ampdoc.getRootNode();this.jf="inabox"==p(this.ampdoc.win).runtime;this.Qd=null;this.kc=this.cf.bind(this);this.ya.addEventListener("click",this.kc)}Hg.prototype.adoptEmbedWindow=function(a){ec(a,"clickhandler",new Hg(this.ampdoc,a.document))};
Hg.prototype.cleanup=function(){this.kc&&this.ya.removeEventListener("click",this.kc)};Hg.prototype.cf=function(a){if(!a.defaultPrevented){var b=wc(a.target,"A");if(b&&b.href){cc(b,"url-replace").maybeExpandLink(b);var c=Ig(this,b.href);if(this.Bb){var d=c,e=b.ownerDocument.defaultView;"ftp:"==d.protocol?(Pc(e,b.href,"_blank"),a.preventDefault()):(d=/^(https?|mailto):$/.test(d.protocol),this.kf&&!d&&(Pc(e,b.href,"_top"),a.preventDefault()))}a.defaultPrevented||Jg(this,a,b,c)}}};
function Jg(a,b,c,d){var e=b.target.ownerDocument.defaultView,g=Ig(a,""),h=""+d.origin+d.pathname+d.search,k=""+g.origin+g.pathname+g.search;if(d.hash&&h==k){if(b.preventDefault(),!a.Dc){var l=d.hash.slice(1),m=null;if(l)var n=e.CSS&&e.CSS.escape?e.CSS.escape(l):qc(l),m=a.ya.getElementById(l)||a.ya.querySelector('a[name="'+n+'"]');d.hash!=g.hash?a.C.replaceStateForTarget(d.hash).then(function(){Kg(a,m,l)}):Kg(a,m,l)}}else if(a.Dc||a.jf){var q=(c.getAttribute("target")||"").toLowerCase();"_top"!=q&&
"_blank"!=q&&c.setAttribute("target","_blank")}}function Kg(a,b,c){b?(a.o.scrollIntoView(b),M(a.ampdoc.win).delay(function(){return a.o.scrollIntoView(b)},1)):v().warn("clickhandler","failed to find element with id="+c+" or a[name="+c+"]")}function Ig(a,b){if(a.Dc){var c=a.Qd;if(!c){var d=a.ya.ownerDocument||a.ya,c=d.createElement("a");a.Qd=c}return Ia(c,b)}return E(b||a.ampdoc.win.location.href)};function Lg(a){H(a,"submit",function(a){a.getRootNode().addEventListener("submit",Mg,!0);return{}})}
function Mg(a){if(!a.defaultPrevented){var b=a.target;if(b&&"FORM"==b.tagName){var c=b.classList.contains("i-amphtml-form"),d;(d=c?!b.hasAttribute("amp-novalidate"):!b.hasAttribute("novalidate"))&&b.checkValidity&&!b.checkValidity()&&a.preventDefault();for(var e=b.elements,g=0;g<e.length;g++)t().assert(!e[g].name||"__amp_source_origin"!=e[g].name,"Illegal input name, %s found: %s","__amp_source_origin",e[g]);var g=b.getAttribute("action"),h=b.getAttribute("action-xhr"),k=(b.getAttribute("method")||
"GET").toUpperCase();h&&(La(h,b,"action-xhr"),t().assert(!Na(h),"form action-xhr should not be on AMP CDN: %s",b),Va(h));g&&(La(g,b,"action"),t().assert(!Na(g),"form action should not be on AMP CDN: %s",b),Va(g));if("GET"==k)t().assert(h||g,"form action-xhr or action attribute is required for method=GET: %s",b);else if("POST"==k){if(g){var l="form";t().error(l,"action attribute is invalid for method=POST: %s",b)}h||(a.preventDefault(),t().assert(!1,"Only XHR based (via action-xhr attribute) submissions are support for POST requests. %s",
b))}(g=b.getAttribute("target"))?t().assert("_blank"==g||"_top"==g,"form target=%s is invalid can only be _blank or _top: %s",g,b):b.setAttribute("target","_top");h&&(a.preventDefault(),a.stopImmediatePropagation(),cc(b,"action").execute(b,"submit",null,b,a))}}};function Ng(a){var b={};b["AMP.History"]=a;return b}function Og(a,b){this.R=a;this.P=M(a.win);this.b=b;this.h=0;this.Ba=[];this.l=[];this.b.setOnStackIndexUpdated(this.N.bind(this))}f=Og.prototype;f.Fa=function(){this.b.Fa()};f.push=function(a){var b=this;return Pg(this,function(){return b.b.push().then(function(c){b.N(c);a&&(b.Ba[c]=a);return c})},"push")};f.pop=function(a){var b=this;return Pg(this,function(){return b.b.pop(a).then(function(a){b.N(a)})},"pop")};
f.goBack=function(){var a=this;return Pg(this,function(){return 0>=a.h?Promise.resolve():a.b.pop(a.h).then(function(b){a.N(b)})},"goBack")};f.replaceStateForTarget=function(a){var b=this,c=this.R.win.location.hash;return this.push(function(){b.R.win.location.replace(c||"#")}).then(function(){b.b.replaceStateForTarget(a)})};f.getFragment=function(){return this.b.getFragment()};f.updateFragment=function(a){"#"==a[0]&&(a=a.substr(1));return this.b.updateFragment(a)};
f.N=function(a){this.h=a;if(!(this.h>=this.Ba.length-1)){a=[];for(var b=this.Ba.length-1;b>this.h;b--)this.Ba[b]&&(a.push(this.Ba[b]),this.Ba[b]=void 0);this.Ba.splice(this.h+1);if(0<a.length)for(b=0;b<a.length;b++)this.P.delay(a[b],1)}};function Pg(a,b,c){var d,e,g=new Promise(function(a,b){d=a;e=b}),h=Error("history trace for "+c+": ");a.l.push({callback:b,resolve:d,reject:e,trace:h});1==a.l.length&&Qg(a);return g}
function Qg(a){if(0!=a.l.length){var b=a.l[0],c;try{c=b.callback()}catch(d){c=Promise.reject(d)}c.then(function(a){b.resolve(a)},function(a){v().error("History","failed to execute a task:",a);b.trace&&(b.trace.message+=a,v().error("History",b.trace));b.reject(a)}).then(function(){a.l.splice(0,1);Qg(a)})}}
function Rg(a){var b=this;this.win=a;this.P=M(a);a=this.win.history;this.Ca=a.length-1;a.state&&void 0!==a.state["AMP.History"]&&(this.Ca=Math.min(a.state["AMP.History"],this.Ca));this.h=this.Ca;this.N=null;this.Qf="state"in a;this.Ta=Ng(this.h);var c,d;a.pushState&&a.replaceState?(this.Lb=a.originalPushState||a.pushState.bind(a),this.hb=a.originalReplaceState||a.replaceState.bind(a),c=function(a,c,d){b.Ta=a;b.Lb(a,c,d||null)},d=function(a,c,d){b.Ta=a;void 0!==d?b.hb(a,c,d):b.hb(a,c)},a.originalPushState||
(a.originalPushState=this.Lb),a.originalReplaceState||(a.originalReplaceState=this.hb)):(c=function(a){b.Ta=a},d=function(a){b.Ta=a});this.Cf=c;this.Rb=d;try{this.Rb(Ng(this.h))}catch(e){v().error("History","Initial replaceState failed: "+e.message)}a.pushState=this.$d.bind(this);a.replaceState=this.ae.bind(this);this.Db=null;this.se=function(){if(b.Db!=b.win.location.hash){b.Db=b.win.location.hash;var a=b.Qf?b.win.history.state:b.Ta,c=a?a["AMP.History"]:void 0,d=b.h,k=b.hc;b.hc=void 0;d>b.win.history.length-
2&&(d=b.win.history.length-2,b.qa(d));d=void 0==c?d+1:c<b.win.history.length?c:b.win.history.length-1;a||(a={});a["AMP.History"]=d;b.Rb(a,void 0,void 0);d!=b.h&&b.qa(d);d<b.Ca&&(b.Ca=d);k&&k.resolve()}};this.win.addEventListener("popstate",this.se)}f=Rg.prototype;f.Fa=function(){this.Lb&&(this.win.history.pushState=this.Lb);this.hb&&(this.win.history.replaceState=this.hb);this.win.removeEventListener("popstate",this.se)};f.setOnStackIndexUpdated=function(a){this.N=a};
f.push=function(){var a=this;return Sg(this,function(){a.$d();return Promise.resolve(a.h)})};f.pop=function(a){var b=this;a=Math.max(a,this.Ca);return Sg(this,function(){b.Db=null;return Tg(b,b.h-a+1)})};f.backTo=function(a){var b=this;a=Math.max(a,this.Ca);return Sg(this,function(){return Tg(b,b.h-a)})};function Sg(a,b){return a.hc?a.hc.promise.then(b,b):b()}function Ug(a){var b,c,d=a.P.timeoutPromise(500,new Promise(function(a,d){b=a;c=d}));a.hc={promise:d,resolve:b,reject:c};return d}
function Tg(a,b){if(0>=b)return Promise.resolve(a.h);a.Ta=Ng(a.h-b);var c=Ug(a);a.win.history.go(-b);return c.then(function(){return Promise.resolve(a.h)})}f.$d=function(a,b,c){a||(a={});var d=this.h+1;a["AMP.History"]=d;this.Cf(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.Rb(a));this.qa(d)};f.replaceStateForTarget=function(a){var b=this;Sg(this,function(){b.Db=a;b.win.location.replace(a);b.ae();return Promise.resolve()})};
f.ae=function(a,b,c){a||(a={});var d=Math.min(this.h,this.win.history.length-1);a["AMP.History"]=d;this.Rb(a,b,c);this.qa(d)};f.qa=function(a){a=Math.min(a,this.win.history.length-1);this.h!=a&&(this.h=a,this.N&&this.N(a))};f.getFragment=function(){var a=this.win.location.hash,a=a.substr(1);return Promise.resolve(a)};f.updateFragment=function(a){this.win.history.replaceState&&this.win.history.replaceState({},"","#"+a);return Promise.resolve()};
function Vg(a,b){this.win=a;this.a=b;this.h=0;this.N=null;this.Uf=this.a.onMessage("historyPopped",this.tf.bind(this))}f=Vg.prototype;f.replaceStateForTarget=function(a){this.win.location.replace(a)};f.Fa=function(){this.Uf()};f.setOnStackIndexUpdated=function(a){this.N=a};f.push=function(){var a=this;this.qa(this.h+1);return this.a.sendMessageAwaitResponse("pushHistory",{stackIndex:this.h}).then(function(){return a.h})};
f.pop=function(a){var b=this;return a>this.h?Promise.resolve(this.h):this.a.sendMessageAwaitResponse("popHistory",{stackIndex:this.h}).then(function(){b.qa(a-1);return b.h})};f.tf=function(a){this.qa(a.newStackIndex)};f.qa=function(a){this.h!=a&&(this.h=a,this.N&&this.N(a))};f.getFragment=function(){return this.a.hasCapability("fragment")?this.a.sendMessageAwaitResponse("getFragment",void 0,!0).then(function(a){if(!a)return"";"#"==a[0]&&(a=a.substr(1));return a}):Promise.resolve("")};
f.updateFragment=function(a){return this.a.hasCapability("fragment")?this.a.sendMessageAwaitResponse("replaceHistory",{fragment:a},!0):Promise.resolve()};function Wg(a){K(a,"history",void 0,function(a){var b=N(a);b.isOvertakeHistory()||a.win.AMP_TEST_IFRAME?b=new Vg(a.win,b):(J(a.win,"global-history-binding",Rg),b=I(a.win,"global-history-binding"));return new Og(a,b)})};function Xg(a){this.M=a.navigator}f=Xg.prototype;f.isAndroid=function(){return/Android/i.test(this.M.userAgent)};f.isIos=function(){return/iPhone|iPad|iPod/i.test(this.M.userAgent)};f.isSafari=function(){return/Safari/i.test(this.M.userAgent)&&!this.isChrome()&&!this.isEdge()};f.isChrome=function(){return/Chrome|CriOS/i.test(this.M.userAgent)&&!this.isEdge()};f.isFirefox=function(){return/Firefox/i.test(this.M.userAgent)&&!this.isEdge()};f.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.M.userAgent)};
f.isEdge=function(){return/Edge/i.test(this.M.userAgent)};f.isWebKit=function(){return/WebKit/i.test(this.M.userAgent)&&!this.isEdge()};f.getMajorVersion=function(){return this.isSafari()?Yg(this,/\sVersion\/(\d+)/,1):this.isChrome()?Yg(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?Yg(this,/Firefox\/(\d+)/,1):this.isIe()?Yg(this,/MSIE\s(\d+)/,1):this.isEdge()?Yg(this,/Edge\/(\d+)/,1):0};
function Yg(a,b,c){if(!a.M.userAgent)return 0;a=a.M.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)}f.getIosVersionString=function(){if(!this.M.userAgent||!this.isIos())return"";var a=this.M.userAgent.match(/OS ([0-9]+_[0-9]+(_[0-9]+)?)\b/);return a?a=a[1].replace(/_/g,"."):""};f.getIosMajorVersion=function(){var a=this.getIosVersionString();return""==a?null:Number(a.split(".")[0])};function Zg(a){this.g=a;this.Fe=Object.create(null)}Zg.prototype.addTransition=function(a,b,c){var d=a+"|"+b;this.Fe[d]=c};Zg.prototype.setState=function(a){var b=this.g;this.g=a;(a=this.Fe[b+"|"+a])&&a()};function $g(a,b){var c=this;this.win=a;this.Bf=b;this.C=[];this.pe=new P;this.Ld=function(a){a.target&&ah(c,a.target)};this.Kd=function(){M(a).delay(function(){ah(c,c.win.document.activeElement)},500)};this.win.document.addEventListener("focus",this.Ld,!0);this.win.addEventListener("blur",this.Kd)}f=$g.prototype;f.Fa=function(){this.win.document.removeEventListener("focus",this.Ld,!0);this.win.removeEventListener("blur",this.Kd)};f.onFocus=function(a){return this.pe.add(a)};
function ah(a,b){var c=Date.now();0==a.C.length||a.C[a.C.length-1].el!=b?a.C.push({el:b,time:c}):a.C[a.C.length-1].time=c;a.purgeBefore(c-a.Bf);a.pe.fire(b)}f.getLast=function(){return 0==this.C.length?null:this.C[this.C.length-1].el};f.purgeBefore=function(a){for(var b=this.C.length-1,c=0;c<this.C.length;c++)if(this.C[c].time>=a){b=c-1;break}-1!=b&&this.C.splice(0,b+1)};
f.hasDescendantsOf=function(a){this.win.document.activeElement&&ah(this,this.win.document.activeElement);for(var b=0;b<this.C.length;b++)if(a.contains(this.C[b].el))return!0;return!1};function bh(a,b,c){var d=this;this.P=M(a);this.df=b;this.We=c||0;this.ba=-1;this.Zc=0;this.na=!1;this.Se=function(){return d.Nb()}}bh.prototype.isPending=function(){return-1!=this.ba};bh.prototype.schedule=function(a){a=a||this.We;this.na&&10>a&&(a=10);var b=Date.now()+a;return!this.isPending()||-10>b-this.Zc?(this.cancel(),this.Zc=b,this.ba=this.P.delay(this.Se,a),!0):!1};bh.prototype.Nb=function(){this.ba=-1;this.Zc=0;this.na=!0;this.df();this.na=!1};
bh.prototype.cancel=function(){this.isPending()&&(this.P.cancel(this.ba),this.ba=-1)};function ch(a,b,c){var d=this;b.__AMP__RESOURCE=this;this.ef=a;this.element=b;this.debugid=b.tagName.toLowerCase()+"#"+a;this.hostWin=b.ownerDocument.defaultView;this.c=c;this.lf=b.hasAttribute("placeholder");this.jc=!1;this.Oa=void 0;this.g=b.isBuilt()?1:0;this.dd=-1;this.T=0;this.he=null;this.Ab=!1;this.I=W(-1E4,-1E4,0,0);this.Ac=null;this.ja=this.Gc=!1;this.Ja=null;this.cd=void 0;this.je=!1;this.Gb=null;this.pf=new Promise(function(a){d.Gb=a});this.Pa=!1}
function Z(a){return a.__AMP__RESOURCE}f=ch.prototype;f.getId=function(){return this.ef};f.updateOwner=function(a){this.Oa=a};f.getOwner=function(){if(void 0===this.Oa){for(var a=this.element;a;a=a.parentElement)if(a.__AMP__OWNER){this.Oa=a.__AMP__OWNER;break}void 0===this.Oa&&(this.Oa=null)}return this.Oa};f.hasOwner=function(){return!!this.getOwner()};f.getPriority=function(){return-1!=this.dd?this.dd:this.element.getPriority()};f.updatePriority=function(a){this.dd=a};f.getState=function(){return this.g};
f.isBlacklisted=function(){return this.jc};f.build=function(){if(!this.jc&&this.element.isUpgraded()&&this.c.grantBuildPermission()){try{this.element.build()}catch(a){v().error("Resource","failed to build:",this.debugid,a);this.jc=!0;return}this.hasBeenMeasured()?(this.g=2,this.element.updateLayoutBox(this.I)):this.g=1;this.element.dispatchCustomEvent("amp:built")}};f.applySizesAndMediaQuery=function(){this.element.applySizesAndMediaQuery()};
f.changeSize=function(a,b,c){this.element.changeSize(a,b,c);0!=this.g&&(this.g=1)};f.overflowCallback=function(a,b,c,d){a&&(this.cd={height:b,width:c,margins:d});this.element.overflowCallback(a,b,c,d)};f.resetPendingChangeSize=function(){this.cd=void 0};f.getPendingChangeSize=function(){return this.cd};
f.measure=function(){if(!(this.lf&&this.element.parentElement&&fa(this.element.parentElement.tagName,"AMP-"))||"__AMP__RESOURCE"in this.element.parentElement){this.Gc=!1;var a=this.c.getViewport().getLayoutRect(this.element),b=this.I,c=this.c.getViewport();this.I=a;var d=!1;if(this.isDisplayed())for(var e=this.c.win,g=e.document.body,h=this.element;h&&h!=g;h=h.offsetParent){if(h.isAlwaysFixed&&h.isAlwaysFixed()){d=!0;break}if(c.isDeclaredFixed(h)&&"fixed"==(e.getComputedStyle(h)||w()).position){d=
!0;break}}if(this.Ab=d)a=this.I=je(a,-c.getScrollLeft(),-c.getScrollTop());1!=this.g&&b.top==a.top&&b.width==a.width&&b.height==a.height||!this.element.isUpgraded()||0==this.g||1!=this.g&&!this.element.isRelayoutNeeded()||(this.g=2);this.hasBeenMeasured()||(this.Ac=a);this.element.updateLayoutBox(a)}};f.completeCollapse=function(){pd(this.element,!1);this.I=W(this.I.left,this.I.top,0,0);this.Ab=!1;this.element.updateLayoutBox(this.I);var a=this.getOwner();a&&a.collapsedCallback(this.element)};
f.completeExpand=function(){pd(this.element,!0);this.element.removeAttribute("hidden");this.requestMeasure()};f.isMeasureRequested=function(){return this.Gc};f.hasBeenMeasured=function(){return!!this.Ac};f.requestMeasure=function(){0!=this.g&&(this.Gc=!0)};f.getLayoutBox=function(){if(!this.Ab)return this.I;var a=this.c.getViewport();return je(this.I,a.getScrollLeft(),a.getScrollTop())};f.getPageLayoutBox=function(){return this.I};f.getInitialLayoutBox=function(){return this.Ac||this.I};
f.isDisplayed=function(){return 0<this.I.height&&0<this.I.width};f.isFixed=function(){return this.Ab};f.overlaps=function(a){var b=this.getLayoutBox();return b.top<=a.bottom&&a.top<=b.bottom&&b.left<=a.right&&a.left<=b.right};f.prerenderAllowed=function(){return this.element.prerenderAllowed()};
f.renderOutsideViewport=function(){if(this.hasOwner())return!0;var a=this.element.renderOutsideViewport();if(!0===a||!1===a)return a;var b=this.c.getViewport().getRect(),c=this.getLayoutBox(),d=this.c.getScrollDirection(),e=Math.max(a,0),g=1,h;if(b.right<c.left||b.left>c.right)return!1;if(b.bottom<c.top)h=c.top-b.bottom,-1==d&&(g=2);else if(b.top>c.bottom)h=b.top-c.bottom,1==d&&(g=2);else return!0;return h<b.height*e/g};f.layoutScheduled=function(){this.g=3};
f.startLayout=function(a){var b=this;if(this.Ja)return this.Ja;if(4==this.g)return Promise.resolve();if(5==this.g)return Promise.reject(this.he);if(!a&&!this.prerenderAllowed()||!this.isInViewport()&&!this.renderOutsideViewport())return this.g=2,Promise.resolve();this.measure();if(!this.isDisplayed())return Promise.resolve();if(0<this.T&&!this.element.isRelayoutNeeded())return this.g=4,Promise.resolve();this.T++;this.g=3;var c;try{c=this.element.layoutCallback()}catch(d){return Promise.reject(d)}return this.Ja=
c.then(function(){return dh(b,!0)},function(a){return dh(b,!1,a)})};function dh(a,b,c){a.Gb&&(a.Gb(),a.Gb=null);a.Ja=null;a.je=!0;a.g=b?4:5;a.he=c;if(!b)return Promise.reject(c)}f.isLayoutPending=function(){return 4!=this.g&&5!=this.g};f.loadedOnce=function(){return this.pf};f.hasLoadedOnce=function(){return this.je};f.isInViewport=function(){return this.ja};f.setInViewport=function(a){a!=this.ja&&(this.ja=a,this.element.viewportCallback(a))};
f.unlayout=function(){0!=this.g&&1!=this.g&&(this.setInViewport(!1),this.element.unlayoutCallback()&&(this.element.togglePlaceholder(!0),this.g=1,this.T=0,this.Ja=null))};f.getTaskId=function(a){return this.debugid+"#"+a};f.pause=function(){0==this.g||this.Pa||(this.Pa=!0,this.setInViewport(!1),this.element.pauseCallback(),this.element.unlayoutOnPause()&&this.unlayout())};f.pauseOnRemove=function(){0!=this.g&&(this.setInViewport(!1),this.Pa||(this.Pa=!0,this.element.pauseCallback()))};
f.resume=function(){0!=this.g&&this.Pa&&(this.Pa=!1,this.element.resumeCallback())};f.unload=function(){this.pause();this.unlayout()};f.disconnect=function(){delete this.element.__AMP__RESOURCE;this.element.disconnectedCallback()};function eh(){this.s=[];this.pb={};this.fe=this.ge=0}f=eh.prototype;f.getSize=function(){return this.s.length};f.getLastEnqueueTime=function(){return this.ge};f.getLastDequeueTime=function(){return this.fe};f.getTaskById=function(a){return this.pb[a]||null};f.enqueue=function(a){this.s.push(a);this.pb[a.id]=a;this.ge=Date.now()};f.dequeue=function(a){var b=this.removeAtIndex(a,this.s.indexOf(this.pb[a.id]));if(!b)return!1;this.fe=Date.now();return!0};
f.peek=function(a){for(var b=1E6,c=null,d=0;d<this.s.length;d++){var e=this.s[d],g=a(e);g<b&&(b=g,c=e)}return c};f.forEach=function(a){this.s.forEach(a)};f.removeAtIndex=function(a,b){var c=this.pb[a.id];if(!c||this.s[b]!=c)return!1;this.s.splice(b,1);delete this.pb[a.id];return!0};f.purge=function(a){for(var b=this.s.length;b--;)a(this.s[b])&&this.removeAtIndex(this.s[b],b)};function fh(a){var b;return!(b||Zc(a)).isIe()||gh(a)?null:new Promise(function(b){var c=Date.now()+2E3,e=a.setInterval(function(){var d=Date.now(),h=gh(a);if(h||d>c)a.clearInterval(e),b(),h||v().error("ie-media-bug","IE media never resolved")},10)})}function gh(a){var b="(min-width: "+(a.innerWidth-1)+"px)"+(" AND (max-width: "+(a.innerWidth+1)+"px)");try{return a.matchMedia(b).matches}catch(c){return v().error("ie-media-bug","IE matchMedia failed: ",c),!0}};function hh(a){this.win=a;this.Bd=this.uf.bind(this);this.Cd=this.vf.bind(this);this.lc=this.Ad=this.mc=null;this.wc="ontouchstart"in a||void 0!==a.navigator.maxTouchPoints&&0<a.navigator.maxTouchPoints||void 0!==a.DocumentTouch;this.gb=!1;this.win.document.addEventListener("keydown",this.Bd);this.win.document.addEventListener("mousedown",this.Cd);this.vc=!0;this.ne=0;this.Sf=new P;this.oe=new P;this.Mc=new P;this.wc&&(this.vc=!this.wc,this.mc=this.wf.bind(this),Ad(a.document,"mousemove",this.mc))}
f=hh.prototype;f.Fa=function(){this.win.document.removeEventListener("keydown",this.Bd);this.win.document.removeEventListener("mousedown",this.Cd)};f.isTouchDetected=function(){return this.wc};f.onTouchDetected=function(a,b){b&&a(this.isTouchDetected());return this.Sf.add(a)};f.isMouseDetected=function(){return this.vc};f.onMouseDetected=function(a,b){b&&a(this.isMouseDetected());return this.oe.add(a)};f.isKeyboardActive=function(){return this.gb};
f.onKeyboardStateChanged=function(a,b){b&&a(this.isKeyboardActive());return this.Mc.add(a)};f.uf=function(a){this.gb||a.defaultPrevented||(a=a.target,a&&("INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"OPTION"==a.tagName||a.hasAttribute("contenteditable")))||(this.gb=!0,this.Mc.fire(!0))};f.vf=function(){this.gb&&(this.gb=!1,this.Mc.fire(!1))};
f.wf=function(a){var b=this;if(a.sourceCapabilities&&a.sourceCapabilities.firesTouchEvents)this.me();else{this.lc||(this.lc=this.rf.bind(this),this.Ad=this.me.bind(this));var c,d=Bd(this.win.document,function(a){c=a});return M(this.win).timeoutPromise(300,d).then(this.Ad,function(){c&&c();b.lc()})}};f.rf=function(){this.vc=!0;this.oe.fire(!0)};f.me=function(){this.ne++;3>=this.ne&&Ad(this.win.document,"mousemove",this.mc)};function ih(a){var b=this;this.ampdoc=a;this.win=a.win;this.a=N(a);this.$=this.a.isRuntimeOn();this.hf=!1;this.ke=this.win.devicePixelRatio||1;this.Kf=0;this.c=[];this.Ue=this.vd=0;this.Y=this.a.isVisible();this.la=this.a.getPrerenderSize();this.ab=!1;this.Wd=!0;this.wd=!1;this.ia=-1;this.xa=!0;this.mb=-1;this.Oc=this.Fb=0;this.Nb=new bh(this.win,function(){return jh(b)});this.ca=new eh;this.l=new eh;this.Ed=function(a){var c=b.o.getRect(),e=a.resource.getLayoutBox(),c=Math.floor((e.top-c.top)/c.height);
Math.sign(c)!=b.getScrollDirection()&&(c*=2);c=Math.abs(c);return 10*a.priority+c};this.V=[];this.Ga=[];this.da=[];this.Cc=!1;this.o=bd(this.ampdoc);this.j=ad(this.win);this.ud=new $g(this.win,6E4);this.td=!1;this.Tb=0;this.La=!1;this.Me=new Zg(this.a.getVisibilityState());kh(this,this.Me);this.o.onChanged(function(a){b.Fb=Date.now();b.Oc=a.velocity;b.xa=b.xa||a.relayoutAll;b.schedulePass()});this.o.onScroll(function(){b.Fb=Date.now()});this.a.onVisibilityChanged(function(){-1==b.ia&&b.a.isVisible()&&
(b.ia=Date.now());b.schedulePass()});this.a.onRuntimeState(function(a){b.$=a;b.schedulePass(1)});this.ud.onFocus(function(a){lh(b,a)});this.schedulePass();this.ampdoc.whenReady().then(function(){b.ab=!0;mh(b);b.da=null;var a=fh(b.win);a?a.then(function(){b.xa=!0;b.schedulePass()}):b.xa=!0;b.schedulePass();nh(b)})}f=ih.prototype;f.get=function(){return this.c.slice(0)};f.isRuntimeOn=function(){return this.$};f.renderStarted=function(){this.ampdoc.signals().signal("render-start")};
f.getResourcesInRect=function(a,b,c){var d=this;return this.ampdoc.signals().whenSignal("ready-scan").then(function(){var b=[];d.c.forEach(function(c){c.hasBeenMeasured()||c.hostWin!=a||c.hasOwner()||b.push(oh(d,c))});return Promise.all(b)}).then(function(){return d.c.filter(function(d){return d.hostWin!=a||d.hasOwner()||!d.hasBeenMeasured()||!d.isDisplayed()||!d.overlaps(b)&&!d.isFixed()||c&&!d.prerenderAllowed()?!1:!0})})};
function nh(a){J(a.win,"input",hh);var b=I(a.win,"input");b.onTouchDetected(function(b){ph(a,"amp-mode-touch",b)},!0);b.onMouseDetected(function(b){ph(a,"amp-mode-mouse",b)},!0);b.onKeyboardStateChanged(function(b){ph(a,"amp-mode-keyboard-active",b)},!0)}function ph(a,b,c){a.ampdoc.whenBodyAvailable().then(function(d){a.j.mutate(function(){d.classList.toggle(b,c)})})}f.getMaxDpr=function(){return this.ke};f.getDpr=function(){return this.ke};f.getResourceForElement=function(a){return Z(a)};
f.getResourceForElementOptional=function(a){return Z(a)};f.getElementLayoutBox=function(a){var b=this,c=this.getResourceForElementOptional(a);return c?oh(this,c):this.j.measurePromise(function(){return b.getViewport().getLayoutRect(a)})};function oh(a,b){return b.hasBeenMeasured()?Promise.resolve(b.getPageLayoutBox()):a.j.measurePromise(function(){b.measure();return b.getPageLayoutBox()})}f.getViewport=function(){return this.o};f.getScrollDirection=function(){return Math.sign(this.Oc)||1};
f.add=function(a){this.vd++;1==this.vd&&this.o.ensureReadyForElements();var b=Z(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new ch(++this.Kf,a,this);this.c.push(b)};f.grantBuildPermission=function(){return 20>this.Ue++||this.a.hasBeenVisible()};function qh(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!0:d;if(a.$||a.hf)a.ab?(b.build(),d&&!b.isBlacklisted()&&a.schedulePass()):b.element.isBuilt()||c&&a.da.includes(b)||(a.da.push(b),mh(a,d))}
function mh(a,b){if(!a.Cc)try{a.Cc=!0;b=void 0===b?!0:b;b=void 0===b?!0:b;for(var c=0,d=0;d<a.da.length;d++){var e=a.da[d],g;if(!(g=a.ab))a:{var h=e.element;do if(h.nextSibling){g=!0;break a}while(h=h.parentNode);g=!1}g&&(a.da.splice(d--,1),e.build(),e.isBlacklisted()||c++)}b&&0<c&&a.schedulePass()}finally{a.Cc=!1}}f.remove=function(a){(a=Z(a))&&rh(this,a)};function rh(a,b,c){var d=a.c.indexOf(b);-1!=d&&a.c.splice(d,1);b.pauseOnRemove();c&&b.disconnect();sh(a,b,!0)}
f.removeForChildWindow=function(a){var b=this,c=this.c.filter(function(b){return b.hostWin==a});c.forEach(function(a){return rh(b,a,!0)})};f.upgraded=function(a){a=Z(a);qh(this,a)};f.setOwner=function(a,b){b.contains(a);Z(a)&&Z(a).updateOwner(b);a.__AMP__OWNER=b;a=a.getElementsByClassName("i-amphtml-element");for(b=0;b<a.length;b++){var c=a[b];Z(c)&&Z(c).updateOwner(void 0)}};f.scheduleLayout=function(a,b){th(this,Z(a),!0,uh(b))};f.schedulePause=function(a,b){var c=Z(a);b=uh(b);vh(this,c,b,function(a){a.pause()})};
f.scheduleResume=function(a,b){a=Z(a);b=uh(b);vh(this,a,b,function(a){a.resume()})};f.scheduleUnlayout=function(a,b){a=Z(a);b=uh(b);vh(this,a,b,function(a){a.unlayout()})};f.schedulePreload=function(a,b){th(this,Z(a),!1,uh(b))};f.updatePriority=function(a,b){var c=Z(a);c.updatePriority(b);this.l.forEach(function(a){a.resource==c&&(a.priority=b)});this.schedulePass()};f.updateInViewport=function(a,b,c){wh(this,Z(a),uh(b),c)};f.changeSize=function(a,b,c,d,e){xh(this,Z(a),b,c,e,!0,d)};
f.attemptChangeSize=function(a,b,c,d){var e=this;return new Promise(function(g,h){xh(e,Z(a),b,c,d,!1,function(a){a?g():h(Error("changeSize attempt denied"))})})};f.deferMutate=function(a,b){Z(a);this.Ga.push(b);this.schedulePassVsync()};
f.mutateElement=function(a,b){function c(){var b=d.o.getLayoutRect(a);return 0!=b.width&&0!=b.height?b.top:-1}var d=this,e=-1;return this.j.runPromise({measure:function(){e=c()},mutate:function(){b();a.classList.contains("i-amphtml-element")&&Z(a).requestMeasure();for(var g=a.getElementsByClassName("i-amphtml-element"),h=0;h<g.length;h++)Z(g[h]).requestMeasure();-1!=e&&Nh(d,e);d.schedulePass(70);d.j.measure(function(){var a=c();-1!=a&&a!=e&&(Nh(d,a),d.schedulePass(70));d.La=!0})}})};
f.attemptCollapse=function(a){var b=this;return new Promise(function(c,d){xh(b,Z(a),0,0,void 0,!1,function(b){b?(Z(a).completeCollapse(),c()):d(Error("collapse attempt denied"))})})};f.collapseElement=function(a){var b=this.o.getLayoutRect(a);a=Z(a);0!=b.width&&0!=b.height&&Nh(this,b.top);a.completeCollapse();this.schedulePass(70)};f.expandElement=function(a){var b=Z(a);b.completeExpand();(b=b.getOwner())&&b.expandedCallback(a);this.schedulePass(70)};f.schedulePass=function(a,b){b&&(this.xa=!0);return this.Nb.schedule(a)};
f.schedulePassVsync=function(){var a=this;this.td||(this.td=!0,this.j.mutate(function(){return jh(a)}))};f.ampInitComplete=function(){this.wd=!0;this.schedulePass()};
function jh(a){if(a.$){a.Y=a.a.isVisible();a.la=a.a.getPrerenderSize();var b=a.ab&&a.Wd;if(b){a.Wd=!1;var c=a.win.document;a.a.sendMessage("documentLoaded",{title:c.title,sourceUrl:Ua(a.ampdoc.getUrl()),serverLayout:c.documentElement.hasAttribute("i-amphtml-element"),linkRels:Xc(a.ampdoc).linkRels},!0);a.Tb=a.o.getScrollHeight();a.a.sendMessage("documentHeight",{height:a.Tb},!0)}var d=a.o.getSize();Date.now();a.Nb.cancel();a.td=!1;a.Me.setState(a.a.getVisibilityState());a.ab&&a.wd&&!a.ampdoc.signals().get("ready-scan")&&
a.ampdoc.signals().signal("ready-scan");a.La&&(a.La=!1,a.j.measure(function(){var b=a.o.getScrollHeight();b!=a.Tb&&(a.a.sendMessage("documentHeight",{height:b},!0),a.Tb=b)}))}}
function Oh(a){var b=Date.now(),c=a.o.getRect(),d=a.o.getScrollHeight(),e=c.height/10,g=c.height/10,h=.85*d,k=.01>Math.abs(a.Oc)&&500<b-a.Fb||1E3<b-a.Fb;if(0<a.Ga.length){var l=a.Ga;a.Ga=[];for(b=0;b<l.length;b++)l[b]();a.La=!0}if(0<a.V.length){var m=a.V;a.V=[];for(var n=-1,q=[],C=0,b=0;b<m.length;b++){var u=m[b],x=u.resource,r=x.getLayoutBox(),D=x.getInitialLayoutBox(),A=0,U=0,ja=r.top,T=r.bottom,L=void 0;if(u.marginChange){var L=u.marginChange.newMargins,y=u.marginChange.currentMargins;void 0!=
L.top&&(A=L.top-y.top);void 0!=L.bottom&&(U=L.bottom-y.bottom);A&&(ja=r.top-y.top);U&&(T=r.bottom+y.bottom)}var B=u.newHeight-r.height,V=!1;if(0!=B||0!=A||0!=U)if(u.force||!a.Y)V=!0;else if(a.ud.hasDescendantsOf(x.element))V=!0;else if(ja>=c.bottom-g||0==A&&r.bottom+Math.min(B,0)>=c.bottom-g)V=!0;else if(1<c.top&&T<=c.top+e){if(0>B&&c.top+C<-B)continue;k?(C+=B,q.push(u)):a.V.push(u);continue}else D.bottom>=h||r.bottom>=h?V=!0:0>B||0>A||0>U||u.resource.overflowCallback(!0,u.newHeight,u.newWidth,L);
V&&(0<=r.top&&(n=-1==n?r.top:Math.min(n,r.top)),u.resource.changeSize(u.newHeight,u.newWidth,L),u.resource.overflowCallback(!1,u.newHeight,u.newWidth,L),a.La=!0);u.callback&&u.callback(V)}-1!=n&&Nh(a,n);0<q.length&&a.j.run({measure:function(b){b.scrollHeight=a.o.getScrollHeight();b.scrollTop=a.o.getScrollTop()},mutate:function(b){var c=-1;q.forEach(function(a){var b=a.resource.getLayoutBox();c=-1==c?b.top:Math.min(c,b.top);a.resource.changeSize(a.newHeight,a.newWidth,a.marginChange?a.marginChange.newMargins:
void 0);a.callback&&a.callback(!0)});-1!=c&&Nh(a,c);var d=a.o.getScrollHeight();d!=b.scrollHeight&&a.o.setScrollTop(b.scrollTop+(d-b.scrollHeight));a.La=!0}},{})}}function Nh(a,b){a.mb=-1==a.mb?b:Math.min(b,a.mb)}function lh(a,b){var c=uc(b,function(a){return!!Z(a)});if(c){b=Z(c);var d=b.getPendingChangeSize();void 0!==d&&xh(a,b,d.height,d.width,d.margins,!0)}}
function Ph(a){var b=Date.now(),c=a.xa;a.xa=!1;var d=a.mb;a.mb=-1;for(var e=0,g=0,h=0;h<a.c.length;h++){var k=a.c[h];0!=k.getState()||k.isBlacklisted()||qh(a,k,!0,!1);if(c||!k.hasBeenMeasured()||1==k.getState())k.applySizesAndMediaQuery(),e++;k.isMeasureRequested()&&g++}var l;if(0<e||0<g||c||-1!=d)for(h=0;h<a.c.length;h++)if(k=a.c[h],!k.hasOwner()||k.isMeasureRequested())if(c||1==k.getState()||!k.hasBeenMeasured()||k.isMeasureRequested()||-1!=d&&k.getLayoutBox().bottom>=d){var m=k.isDisplayed();k.measure();
m&&!k.isDisplayed()&&(l||(l=[]),l.push(k))}l&&a.j.mutate(function(){l.forEach(function(b){b.unload();sh(a,b)})});var d=a.o.getRect(),n;n=a.Y?ie(d,.25,2):0<a.la?ie(d,0,a.la-1):null;for(var q=a.Y?ie(d,.25,.25):d,d=0;d<a.c.length;d++)if(h=a.c[d],0!=h.getState()&&!h.hasOwner()){var C=a.Y&&h.isDisplayed()&&h.overlaps(q);h.setInViewport(C)}if(n)for(d=0;d<a.c.length;d++)h=a.c[d],2!=h.getState()||h.hasOwner()||h.isDisplayed()&&h.overlaps(n)&&Qh(a,h,!0);if(a.Y&&0==a.ca.getSize()&&0==a.l.getSize()&&b>a.ca.getLastDequeueTime()+
5E3)for(var u=0,b=0;b<a.c.length&&!(d=a.c[b],2==d.getState()&&!d.hasOwner()&&d.isDisplayed()&&(Qh(a,d,!1),u++,4<=u));b++);}function Rh(a,b){var c=Date.now();if(0==a.ca.getSize()){if(-1===a.ia)return 0;var d=1E3*b.priority;return Math.max(d-(c-a.ia),0)}var e=0;a.ca.forEach(function(a){e=Math.max(e,Math.max(1E3*(b.priority-a.priority),0)-(c-a.startTime))});return e}f.Hf=function(a){this.l.getTaskById(a.id)||this.l.enqueue(a)};
f.Ce=function(a,b,c){this.ca.dequeue(a);this.schedulePass(1E3);if(!b)return v().info("Resources","task failed:",a.id,a.resource.debugid,c),Promise.reject(c)};
function xh(a,b,c,d,e,g,h){b.hasBeenMeasured()&&!e?Sh(a,b,c,d,void 0,g,h):a.j.measure(function(){b.hasBeenMeasured()||b.measure();var k;e?(k=a.win.getComputedStyle(b.element)||w(),k={top:parseInt(k.marginTop,10)||0,right:parseInt(k.marginRight,10)||0,bottom:parseInt(k.marginBottom,10)||0,left:parseInt(k.marginLeft,10)||0},k={newMargins:e,currentMargins:k}):k=void 0;var l=k;Sh(a,b,c,d,l,g,h)})}
function Sh(a,b,c,d,e,g,h){b.resetPendingChangeSize();var k=b.getPageLayoutBox();if(!(k=void 0!==c&&c!=k.height||void 0!==d&&d!=k.width)&&(k=void 0!==e))var k=e.currentMargins,l=e.newMargins,k=void 0!==l.top&&l.top!=k.top||void 0!==l.right&&l.right!=k.right||void 0!==l.bottom&&l.bottom!=k.bottom||void 0!==l.left&&l.left!=k.left;if(k){k=null;for(l=0;l<a.V.length;l++)if(a.V[l].resource==b){k=a.V[l];break}k?(k.newHeight=c,k.newWidth=d,k.marginChange=e,k.force=g||k.force,k.callback=h):a.V.push({resource:b,
newHeight:c,newWidth:d,marginChange:e,force:g,callback:h});a.schedulePassVsync()}else void 0===c&&void 0===d&&void 0===e&&v().error("Resources","attempting to change size with undefined dimensions",b.debugid),h&&h(!0)}function Qh(a,b,c,d){0!=b.getState()&&b.isDisplayed();if(a.Y||"prerender"==a.a.getVisibilityState()&&b.prerenderAllowed())if(b.isInViewport()||b.renderOutsideViewport())c?a.za(b,"L",0,d||0,b.startLayout.bind(b)):a.za(b,"P",2,d||0,b.startLayout.bind(b))}
function th(a,b,c,d){var e=[];vh(a,b,d,function(a){0!=a.getState()&&e.push(a)});0<e.length&&e.forEach(function(d){d.measure();2==d.getState()&&d.isDisplayed()&&Qh(a,d,c,b.getPriority())})}f.za=function(a,b,c,d,e){b=a.getTaskId(b);a={id:b,resource:a,priority:Math.max(a.getPriority(),d)+c,callback:e,scheduleTime:Date.now(),startTime:0,promise:null};var g=this.l.getTaskById(b);if(!g||a.priority<g.priority)g&&this.l.dequeue(g),this.l.enqueue(a),this.schedulePass(Rh(this,a));a.resource.layoutScheduled()};
function wh(a,b,c,d){var e=b.isInViewport()&&d;vh(a,b,c,function(a){a.setInViewport(e)})}function vh(a,b,c,d){c.forEach(function(c){b.element.contains(c);Th(a,c,d)})}function Th(a,b,c){if(b.classList.contains("i-amphtml-element"))c(Z(b)),(b=b.getPlaceholder())&&Th(a,b,c);else{a=b.getElementsByClassName("i-amphtml-element");b=[];for(var d=0;d<a.length;d++){for(var e=a[d],g=!1,h=0;h<b.length;h++)if(b[h].contains(e)){g=!0;break}g||(b.push(e),c(Z(e)))}}}
function kh(a,b){function c(){a.c.forEach(function(a){return a.resume()});h()}function d(){a.c.forEach(function(b){b.unload();sh(a,b)});a.unselectText()}function e(){a.c.forEach(function(a){return a.pause()})}function g(){}function h(){var b=a.o.getSize();if(0<b.height&&0<b.width){(0<a.Ga.length||0<a.V.length)&&Oh(a);Ph(a);for(var b=Date.now(),c=a.a.getVisibilityState(),d=-1,e=a.l.peek(a.Ed);e;){d=Rh(a,e);if(16<d)break;a.l.dequeue(e);(d=a.ca.getTaskById(e.id))?(e=a.Hf.bind(a,e),d.promise.then(e,e)):
(e.promise=e.callback("visible"==c),e.startTime=b,a.ca.enqueue(e),e.promise.then(a.Ce.bind(a,e,!0),a.Ce.bind(a,e,!1)).catch(Gd));e=a.l.peek(a.Ed);d=-1}0<=d?b=d:(b=2*(b-a.ca.getLastDequeueTime()),b=Math.max(Math.min(3E4,b),5E3));(0<a.Ga.length||0<a.V.length)&&(b=Math.min(b,500));a.Y&&a.schedulePass(b)}}var k="prerender",l="visible",m="hidden",n="paused",q="inactive";b.addTransition(k,k,h);b.addTransition(k,l,h);b.addTransition(k,m,h);b.addTransition(k,q,h);b.addTransition(k,n,h);b.addTransition(l,
l,h);b.addTransition(l,m,h);b.addTransition(l,q,d);b.addTransition(l,n,e);b.addTransition(m,l,h);b.addTransition(m,m,h);b.addTransition(m,q,d);b.addTransition(m,n,e);b.addTransition(q,l,c);b.addTransition(q,m,c);b.addTransition(q,q,g);b.addTransition(q,n,h);b.addTransition(n,l,c);b.addTransition(n,m,h);b.addTransition(n,q,d);b.addTransition(n,n,g)}f.unselectText=function(){try{this.win.getSelection().removeAllRanges()}catch(a){}};
function sh(a,b,c){1==b.getState()&&(a.l.purge(function(a){return a.resource==b}),a.ca.purge(function(a){return a.resource==b}),Ne(a.V,function(a){return a.resource!=b}));if(0==b.getState()&&c&&a.da){var d=a.da.indexOf(b);-1!=d&&a.da.splice(d,1)}}function uh(a){return ra(a)?a:[a]};function Uh(a){return"none"==od(a,"display")||a.hasAttribute("hidden")}function Vh(a){this.ampdoc=a;this.Oe=cc(a,"action");this.c=$c(a);Wh(this,this.Oe)}f=Vh.prototype;f.adoptEmbedWindow=function(a){Wh(this,cc(a.document,"action"))};function Wh(a,b){b.addGlobalTarget("AMP",a.handleAmpTarget.bind(a));b.addGlobalMethodHandler("hide",a.handleHide.bind(a));b.addGlobalMethodHandler("show",a.handleShow.bind(a));b.addGlobalMethodHandler("toggleVisibility",a.handleToggle.bind(a))}
f.handleAmpTarget=function(a){switch(a.method){case "setState":Uc(this.ampdoc,"bind","amp-bind").then(function(b){var c=a.args.__AMP_OBJECT_STRING__;if(c){var d=Object.create(null),e=a.event;e&&e.detail&&(d.event=e.detail);b.setStateWithExpression(c,d)}else t().error("AMP-BIND","Please use the object-literal syntax, e.g. \"AMP.setState({foo: 'bar'})\" instead of \"AMP.setState(foo='bar')\".")});return;case "goBack":H(this.ampdoc,"history").goBack();return}throw t().createError("Unknown AMP action ",
a.method);};f.handleHide=function(a){var b=a.target;this.c.mutateElement(b,function(){b.classList.contains("i-amphtml-element")?b.collapse():pd(b,!1)})};
f.handleShow=function(a){var b=a.target,c=b.ownerDocument.defaultView;b.classList.contains("i-amphtml-layout-nodisplay")?t().warn("STANDARD-ACTIONS","Elements with layout=nodisplay cannot be dynamically shown.",b):(ad(c).measure(function(){"none"!=(c.getComputedStyle(b)||w()).display||Uh(b)||t().warn("STANDARD-ACTIONS",'Elements can only be dynamically shown when they have the "hidden" attribute set or when they were dynamically hidden.',b)}),b.classList.contains("i-amphtml-element")?this.c.deferMutate(b,
function(){b.expand()}):this.c.mutateElement(b,function(){pd(b,!0);b.removeAttribute("hidden")}))};f.handleToggle=function(a){Uh(a.target)?this.handleShow(a):this.handleHide(a)};function Xh(a,b,c){this.ampdoc=a;this.a=b;this.b=c;this.Mb=E(Ua(this.ampdoc.win.location)).origin;this.ac=null}f=Xh.prototype;f.kd=function(){Yh(this);return this};f.get=function(a){return Zh(this).then(function(b){return b.get(a)})};f.set=function(a,b){return $h(this,function(c){return c.set(a,b)})};f.remove=function(a){return $h(this,function(b){return b.remove(a)})};
function Zh(a){a.ac||(a.ac=a.b.loadBlob(a.Mb).then(function(a){return a?JSON.parse(atob(a)):{}}).catch(function(a){v().expectedError("Storage","Failed to load store: ",a);return{}}).then(function(a){return new ai(a)}));return a.ac}function $h(a,b){return Zh(a).then(function(c){b(c);c=btoa(JSON.stringify(c.obj));return a.b.saveBlob(a.Mb,c)}).then(a.Te.bind(a))}function Yh(a){a.a.onBroadcast(function(b){"amp-storage-reset"==b.type&&b.origin==a.Mb&&(a.ac=null)})}
f.Te=function(){this.a.broadcast({type:"amp-storage-reset",origin:this.Mb})};function ai(a,b){this.obj=ke(a);this.qf=b||8;this.ga=this.obj.vv||Object.create(null);this.obj.vv||(this.obj.vv=this.ga)}ai.prototype.get=function(a){return(a=this.ga[a])?a.v:void 0};
ai.prototype.set=function(a,b){void 0!==this.ga[a]?(a=this.ga[a],a.v=b,a.t=Date.now()):this.ga[a]={v:b,t:Date.now()};b=Object.keys(this.ga);if(b.length>this.qf){var c=Infinity,d=null;for(a=0;a<b.length;a++){var e=this.ga[b[a]];e.t<c&&(d=b[a],c=e.t)}d&&delete this.ga[d]}};ai.prototype.remove=function(a){delete this.ga[a]};
function bi(a){this.win=a;var b;try{"localStorage"in this.win?(this.win.localStorage.getItem("test"),b=!0):b=!1}catch(c){b=!1}this.Fc=b;this.Fc||(a=Error("localStorage not supported."),v().expectedError("Storage",a))}bi.prototype.loadBlob=function(a){var b=this;return new Promise(function(c){b.Fc?c(b.win.localStorage.getItem("amp-store:"+a)):c(null)})};bi.prototype.saveBlob=function(a,b){var c=this;return new Promise(function(d){c.Fc&&c.win.localStorage.setItem("amp-store:"+a,b);d()})};
function ci(a){this.a=a}ci.prototype.loadBlob=function(a){return this.a.sendMessageAwaitResponse("loadStore",{origin:a}).then(function(a){return a.blob})};ci.prototype.saveBlob=function(a,b){return this.a.sendMessageAwaitResponse("saveStore",{origin:a,blob:b})};function di(a){H(a,"storage",function(){var b=N(a),c=parseInt(b.getParam("storage"),10),d=c?new ci(b):new bi(a.win);return(new Xh(a,b,d)).kd()})};function ei(a){this.win=a;this.Jf=Promise.resolve();this.Rf=0;this.pc={};this.$b=Date.now()}f=ei.prototype;f.timeSinceStart=function(){return Date.now()-this.$b};f.delay=function(a,b){var c=this;if(!b){var d="p"+this.Rf++;this.Jf.then(function(){c.pc[d]?delete c.pc[d]:a()}).catch(Gd);return d}return this.win.setTimeout(function(){try{a()}catch(e){throw Gd(e),e;}},b)};f.cancel=function(a){"string"==typeof a?this.pc[a]=!0:this.win.clearTimeout(a)};
f.promise=function(a){var b=this;return new Promise(function(c){var d;d=b.delay(c,a);if(-1==d)throw Error("Failed to schedule timer.");})};f.timeoutPromise=function(a,b,c){var d=this,e=new Promise(function(b,e){if(-1==d.delay(function(){e(t().createError(c||"timeout"))},a))throw Error("Failed to schedule timer.");});return b?Promise.race([e,b]):e};f.poll=function(a,b){var c=this;return new Promise(function(d){var e=c.win.setInterval(function(){b()&&(c.win.clearInterval(e),d())},a)})};function fi(a,b,c,d){var e=new gi(0,0,a,b,c,d,1,1);return e.solveYValueFromXValue.bind(e)}function gi(a,b,c,d,e,g,h,k){this.x0=a;this.y0=b;this.x1=c;this.y1=d;this.x2=e;this.y2=g;this.x3=h;this.y3=k}f=gi.prototype;f.solveYValueFromXValue=function(a){return this.getPointY(this.solvePositionFromXValue(a))};
f.solvePositionFromXValue=function(a){var b=1E-6,c=(a-this.x0)/(this.x3-this.x0);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,g=0,h=0;8>h;h++){var g=this.getPointX(c),k=(this.getPointX(c+b)-g)/b;if(Math.abs(g-a)<b)return c;if(Math.abs(k)<b)break;else g<a?d=c:e=c,c-=(g-a)/k}for(h=0;Math.abs(g-a)>b&&8>h;h++)g<a?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),g=this.getPointX(c);return c};
f.getPointX=function(a){if(0==a)return this.x0;if(1==a)return this.x3;var b=this.lerp(this.x0,this.x1,a),c=this.lerp(this.x1,this.x2,a),d=this.lerp(this.x2,this.x3,a),b=this.lerp(b,c,a),c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.getPointY=function(a){if(0==a)return this.y0;if(1==a)return this.y3;var b=this.lerp(this.y0,this.y1,a),c=this.lerp(this.y1,this.y2,a),d=this.lerp(this.y2,this.y3,a),b=this.lerp(b,c,a),c=this.lerp(c,d,a);return this.lerp(b,c,a)};f.lerp=function(a,b,c){return a+c*(b-a)};
var hi=fi(.25,.1,.25,1),ii=fi(.42,0,1,1),ji=fi(0,0,.58,1),ki=fi(.42,0,.58,1),li={linear:function(a){return a},ease:hi,"ease-in":ii,"ease-out":ji,"ease-in-out":ki};function mi(a){if(!a)return null;if("string"==typeof a){if(-1!=a.indexOf("cubic-bezier")){var b=a.match(/cubic-bezier\((.+)\)/);if(b&&(b=b[1].split(",").map(parseFloat),4==b.length)){for(var c=0;4>c;c++)if(isNaN(b[c]))return null;return fi(b[0],b[1],b[2],b[3])}return null}return li[a]}return a};function ni(){}function oi(a,b){this.Za=a;this.j=b||ad(self);this.Od=null;this.J=[]}function pi(a,b,c,d){return(new oi(a)).setCurve(d).add(0,b,1).start(c)}oi.prototype.setCurve=function(a){a&&(this.Od=mi(a));return this};oi.prototype.add=function(a,b,c,d){this.J.push({delay:a,func:b,duration:c,curve:mi(d)});return this};oi.prototype.start=function(a){var b=new qi(this.j,this.Za,this.J,this.Od,a);b.kd();return b};
function qi(a,b,c,d,e){var g=this;this.j=a;this.Za=b;this.J=[];for(b=0;b<c.length;b++){var h=c[b];this.J.push({delay:h.delay,func:h.func,duration:h.duration,curve:h.curve||d,started:!1,completed:!1})}this.Ze=e;this.hg=this.gg=this.$b=0;this.na=!1;this.g={};this.ve=new Promise(function(a,b){g.If=a;g.Gf=b});this.De=this.j.createAnimTask(this.Za,{mutate:this.Pf.bind(this)})}f=qi.prototype;f.then=function(a,b){return a||b?this.ve.then(a,b):this.ve};
f.thenAlways=function(a){a=a||ni;return this.then(a,a)};f.halt=function(a){ri(this,!1,a||0)};f.kd=function(){this.$b=Date.now();this.na=!0;this.j.canAnimate(this.Za)?this.De(this.g):(v().warn("Animation","cannot animate"),ri(this,!1,0))};
function ri(a,b,c){if(a.na){a.na=!1;if(0!=c){1<a.J.length&&a.J.sort(function(a,b){return a.delay+a.duration-(b.delay+b.duration)});try{if(0<c)for(var d=0;d<a.J.length;d++)a.J[d].func(1,!0);else for(d=a.J.length-1;0<=d;d--)a.J[d].func(0,!1)}catch(e){v().error("Animation","completion failed: "+e,e),b=!1}}b?a.If():a.Gf()}}
f.Pf=function(){if(this.na){for(var a=Date.now(),b=Math.min((a-this.$b)/this.Ze,1),c=0;c<this.J.length;c++){var d=this.J[c];!d.started&&b>=d.delay&&(d.started=!0)}for(c=0;c<this.J.length;c++)if(d=this.J[c],d.started&&!d.completed)a:{var e,g;if(0<d.duration){if(g=e=Math.min((b-d.delay)/d.duration,1),d.curve&&1!=g)try{g=d.curve(e)}catch(h){v().error("Animation","step curve failed: "+h,h);ri(this,!1,0);break a}}else g=e=1;1==e&&(d.completed=!0);try{d.func(g,d.completed)}catch(h){v().error("Animation",
"step mutate failed: "+h,h),ri(this,!1,0)}}1==b?ri(this,!0,0):this.j.canAnimate(this.Za)?this.De(this.g):(v().warn("Animation","cancel animation"),ri(this,!1,0))}};function si(a,b,c,d,e){this.ampdoc=a;this.j=b;this.Re=c;this.Nd=this.w=d;this.dc=e&&a.isSingleDoc();this.X=null;this.Ve=0;this.u=[]}f=si.prototype;f.setVisible=function(a){var b=this;this.X&&this.j.mutate(function(){Q(b.X,"visibility",a?"visible":"hidden")})};
f.setup=function(){var a=this.ampdoc.getRootNode().styleSheets;if(a){for(var b=[],c=[],d=0;d<a.length;d++){var e=a[d];e.disabled||!e.ownerNode||"STYLE"!=e.ownerNode.tagName||e.ownerNode.hasAttribute("amp-boilerplate")||e.ownerNode.hasAttribute("amp-runtime")||e.ownerNode.hasAttribute("amp-extension")||ti(this,e.cssRules,b,c)}this.trySetupSelectorsNoInline(b,c);ui(this);d=Zc(this.ampdoc.win);0<this.u.length&&!this.dc&&d.isIos()&&t().warn("FixedLayer","Please test this page inside of an AMP Viewer such as Google's because the fixed or sticky positioning might have slightly different layout.");
this.update()}};f.updatePaddingTop=function(a,b){this.w=a;b||(this.Nd=a);this.update()};f.transformMutate=function(a){a?this.u.forEach(function(b){b.fixedNow&&b.top&&(Q(b.element,"transition","none"),b.transform&&"none"!=b.transform?Q(b.element,"transform",b.transform+" "+a):Q(b.element,"transform",a))}):this.u.forEach(function(a){a.fixedNow&&a.top&&R(a.element,{transform:"",transition:""})})};f.addElement=function(a,b){vi(this,a,"*","fixed",b);ui(this);this.update()};
f.removeElement=function(a){var b=this,c=wi(this,a);0<c.length&&this.X&&this.j.mutate(function(){for(var a=0;a<c.length;a++){var e=c[a];"fixed"==e.position&&xi(b,e)}})};f.isDeclaredFixed=function(a){return!!a.__AMP_DECLFIXED};f.isDeclaredSticky=function(a){return!!a.__AMP_DECLSTICKY};
f.update=function(){var a=this;if(0==this.u.length)return Promise.resolve();this.u.filter(function(b){return!a.ampdoc.contains(b.element)}).forEach(function(b){return wi(a,b.element)});var b=!1;return this.j.runPromise({measure:function(c){var d={};a.u.forEach(function(a){Q(a.element,"top","auto")});a.u.forEach(function(a){d[a.id]=a.element.offsetTop});a.u.forEach(function(a){Q(a.element,"top","")});a.u.forEach(function(e){var g=e.element,h=a.ampdoc.win.getComputedStyle(g)||w(),k=h.position||"",l=
"fixed"==k&&(e.forceTransfer||0<g.offsetWidth&&0<g.offsetHeight),m=ea(k,"sticky");if(l||m){var n=h.top,q=g.offsetTop,C=q==d[e.id];if(("auto"==n||C)&&"0px"!=n||m&&"0px"==n&&C&&0!=q)n="",q==a.Nd+a.Re&&(n="0px");var u=h.bottom,x=parseFloat(h.opacity),r=l&&(e.forceTransfer||0<x&&300>g.offsetHeight&&(!!n&&0==parseInt(n,10)||!!u&&0==parseInt(u,10)));r&&(b=!0);c[e.id]={fixed:l,sticky:m,transferrable:r,top:n,zIndex:h.zIndex,transform:h.transform}}else c[e.id]={fixed:!1,sticky:!1,transferrable:!1,top:"",zIndex:""}})},
mutate:function(c){if(b&&a.dc){var d=yi(a);d.className!=a.ampdoc.getBody().className&&(d.className=a.ampdoc.getBody().className)}a.u.forEach(function(b,d){var e=c[b.id];if(e){var g=e,l=b.element,m=b.fixedNow,n=b.stickyNow;b.fixedNow=g.fixed;b.stickyNow=g.sticky;b.top=g.fixed||g.sticky?g.top:"";b.transform=g.transform;(m&&!g.fixed||n&&!g.sticky)&&od(l,"top")&&Q(l,"top","");(m&&!g.fixed||!g.transferrable)&&xi(a,b);if(g.fixed||g.sticky)Q(l,"top",g.top?"calc("+g.top+" + "+a.w+"px)":""),a.dc&&g.fixed&&
!m&&g.transferrable&&zi(a,b,d,g)}})}},{}).catch(function(a){v().error("FixedLayer","Failed to mutate fixed elements:",a)})};
f.trySetupSelectorsNoInline=function(a,b){try{for(var c=0;c<a.length;c++)for(var d=a[c],e=this.ampdoc.getRootNode().querySelectorAll(d),g=0;g<e.length&&!(10<g);g++)vi(this,e[g],d,"fixed");for(a=0;a<b.length;a++)for(var h=b[a],k=this.ampdoc.getRootNode().querySelectorAll(h),c=0;c<k.length;c++)vi(this,k[c],h,"sticky")}catch(l){v().error("FixedLayer","Failed to setup fixed elements:",l)}};
function vi(a,b,c,d,e){for(var g=null,h=0;h<a.u.length;h++)if(a.u[h].element==b&&a.u[h].position==d){g=a.u[h];break}h="fixed"==d;g?g.selectors.push(c):(g="F"+a.Ve++,b.setAttribute("i-amphtml-fixedid",g),h?b.__AMP_DECLFIXED=!0:b.__AMP_DECLSTICKY=!0,g={id:g,element:b,position:d,selectors:[c],fixedNow:!1,stickyNow:!1},a.u.push(g));g.forceTransfer=h&&!!e}
function wi(a,b){for(var c=[],d=0;d<a.u.length;d++)if(a.u[d].element==b){a.j.mutate(function(){Q(b,"top","")});var e=a.u[d];a.u.splice(d,1);c.push(e)}return c}function ui(a){a.u.sort(function(a,c){return a.element.compareDocumentPosition(c.element)&1?1:-1})}
function zi(a,b,c,d){var e=b.element;e.parentElement!=a.X&&(t().warn("FixedLayer","In order to improve scrolling performance in Safari, we now move the element to a fixed positioning layer:",b.element),b.placeholder||(Q(e,"pointer-events","initial"),b.placeholder=a.ampdoc.win.document.createElement("i-amphtml-fp"),b.placeholder.setAttribute("i-amphtml-fixedid",b.id),Q(b.placeholder,"display","none")),Q(e,"zIndex","calc("+(1E4+c)+" + "+(d.zIndex||0)+")"),e.parentElement.replaceChild(b.placeholder,
e),yi(a).appendChild(e),b.selectors.some(function(a){var b;a:{try{var c=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector;if(c){b=c.call(e,a);break a}}catch(l){v().error("FixedLayer","Failed to test query match:",l)}b=!1}return b})||(t().warn("FixedLayer","Failed to move the element to the fixed position layer. This is most likely due to the compound CSS selector:",b.element),xi(a,b)))}
function xi(a,b){b.placeholder&&a.ampdoc.contains(b.placeholder)&&(a.ampdoc.contains(b.element)?(od(b.element,"zIndex")&&Q(b.element,"zIndex",""),b.placeholder.parentElement.replaceChild(b.element,b.placeholder)):b.placeholder.parentElement.removeChild(b.placeholder))}
function yi(a){if(!a.dc||a.X)return a.X;var b=a.ampdoc.win.document;a.X=b.body.cloneNode(!1);a.X.removeAttribute("style");R(a.X,{position:"absolute",top:0,left:0,height:0,width:0,pointerEvents:"none",overflow:"hidden",animation:"none",background:"none",border:"none",borderImage:"none",boxSizing:"border-box",boxShadow:"none",display:"block",float:"none",margin:0,opacity:1,outline:"none",padding:"none",transform:"none",transition:"none",visibility:"visible"});b.documentElement.appendChild(a.X);return a.X}
function ti(a,b,c,d){for(var e=0;e<b.length;e++){var g=b[e];1==g.type?"*"!=g.selectorText&&g.style.position&&("fixed"==g.style.position?c.push(g.selectorText):ea(g.style.position,"sticky")&&d.push(g.selectorText)):4==g.type?ti(a,g.cssRules,c,d):12==g.type&&ti(a,g.cssRules,c,d)}};function Ai(a,b){return function(c){return a+(b-a)*c}};function Bi(a){var b,c=a.win,d=Zc(c);a=b||N(a);var e=ad(c);!d.isIos()||!d.isSafari()||8<d.getMajorVersion()||"1"!=a.getParam("b29185497")||new Promise(function(a){e.mutate(function(){Q(c.document.body,"bottom","");e.mutate(function(){Q(c.document.body,"bottom","0px");a()})})})};function Ci(a,b,c){var d=this;this.ampdoc=a;this.ta=this.ampdoc.win.document;this.b=b;this.a=c;this.Aa=this.fa=this.lb=null;this.ed=!1;this.Ub=null;this.w=Number(c.getParam("paddingTop")||0);this.Eb=0;this.P=M(this.ampdoc.win);this.j=ad(this.ampdoc.win);this.fd=!1;this.Ae=0;this.Md=new P;this.W=new P;this.ad=this.rb=void 0;this.S=new si(this.ampdoc,this.j,this.b.getBorderTop(),this.w,this.b.requiresFixedLayerTransfer());this.ampdoc.whenReady().then(function(){return d.S.setup()});this.eg=this.nd.bind(this);
this.a.onMessage("viewport",this.Vf.bind(this));this.a.onMessage("scroll",this.Yf.bind(this));this.b.updatePaddingTop(this.w);this.b.onScroll(this.Mf.bind(this));this.b.onResize(this.ye.bind(this));this.onScroll(this.Nf.bind(this));this.Y=!1;this.a.onVisibilityChanged(this.Ie.bind(this));this.Ie();this.ampdoc.isSingleDoc()&&this.ta.documentElement.classList.add("i-amphtml-singledoc");c.isEmbedded()?this.ta.documentElement.classList.add("i-amphtml-embedded"):this.ta.documentElement.classList.add("i-amphtml-standalone");
Qc(this.ampdoc.win)&&this.ta.documentElement.classList.add("i-amphtml-iframed");"1"===c.getParam("webview")&&this.ta.documentElement.classList.add("i-amphtml-webview");Qc(this.ampdoc.win)&&"scrollRestoration"in this.ampdoc.win.history&&(this.ampdoc.win.history.scrollRestoration="manual")}f=Ci.prototype;f.dispose=function(){this.b.disconnect()};f.ensureReadyForElements=function(){this.b.ensureReadyForElements()};
f.Ie=function(){var a=this.a.isVisible();a!=this.Y&&((this.Y=a)?(this.b.connect(),this.fa&&this.ye()):this.b.disconnect())};f.getPaddingTop=function(){return this.w};f.getTop=function(){return this.getScrollTop()};f.getScrollTop=function(){null==this.Aa&&(this.Aa=this.b.getScrollTop());return this.Aa};f.getScrollLeft=function(){null==this.Ub&&(this.Ub=this.b.getScrollLeft());return this.Ub};f.setScrollTop=function(a){this.Aa=null;this.b.setScrollTop(a)};
f.updatePaddingBottom=function(a){this.ampdoc.whenBodyAvailable().then(function(b){Q(b,"borderBottom",a+"px solid transparent")})};f.getSize=function(){if(this.fa)return this.fa;this.fa=this.b.getSize();if(0==this.fa.width||0==this.fa.height){var a=this.a.getVisibilityState();("prerender"==a||"visible"==a)&&.01>Math.random()&&v().error("Viewport","viewport has zero dimensions")}return this.fa};f.getHeight=function(){return this.getSize().height};f.getWidth=function(){return this.getSize().width};
f.getScrollWidth=function(){return this.b.getScrollWidth()};f.getScrollHeight=function(){return this.b.getScrollHeight()};f.getRect=function(){if(null==this.lb){var a=this.getScrollTop(),b=this.getScrollLeft(),c=this.getSize();this.lb=W(b,a,c.width,c.height)}return this.lb};
f.getLayoutRect=function(a){var b=this.getScrollLeft(),c=this.getScrollTop(),d=nc(a,this.ampdoc.win);return d?(a=this.b.getLayoutRect(a,0,0),b=this.b.getLayoutRect(d,b,c),W(Math.round(a.left+b.left),Math.round(a.top+b.top),Math.round(a.width),Math.round(a.height))):this.b.getLayoutRect(a,b,c)};f.isDeclaredFixed=function(a){return this.S.isDeclaredFixed(a)};f.scrollIntoView=function(a){var b=this.b.getLayoutRect(a).top,c=Math.max(0,b-this.w);this.b.setScrollTop(c)};
f.animateScrollIntoView=function(a,b,c){b=void 0===b?500:b;c=void 0===c?"ease-in":c;var d=this;a=this.b.getLayoutRect(a).top;a=Math.max(0,a-this.w);var e=this.getScrollTop();if(a==e)return Promise.resolve();var g=Ai(e,a);return pi(this.ampdoc.getRootNode(),function(a){d.b.setScrollTop(g(a))},b,c).then()};f.onChanged=function(a){return this.Md.add(a)};f.onScroll=function(a){return this.W.add(a)};
f.enterLightboxMode=function(){var a=this;this.a.sendMessage("requestFullOverlay",{},!0);this.enterOverlayMode();this.hideFixedLayer();this.j.mutate(function(){return a.b.updateLightboxMode(!0)})};f.leaveLightboxMode=function(){var a=this;this.a.sendMessage("cancelFullOverlay",{},!0);this.showFixedLayer();this.leaveOverlayMode();this.j.mutate(function(){return a.b.updateLightboxMode(!1)})};f.enterOverlayMode=function(){this.disableTouchZoom();this.disableScroll()};
f.leaveOverlayMode=function(){this.resetScroll();this.restoreOriginalTouchZoom()};f.disableScroll=function(){var a=this;this.j.mutate(function(){a.b.disableScroll()})};f.resetScroll=function(){var a=this;this.j.mutate(function(){a.b.resetScroll()})};f.resetTouchZoom=function(){var a=this,b=this.ampdoc.win.innerHeight,c=this.ta.documentElement.clientHeight;b&&c&&b===c||this.disableTouchZoom()&&this.P.delay(function(){a.restoreOriginalTouchZoom()},50)};
f.disableTouchZoom=function(){var a=Di(this);if(!a)return!1;var b=a.content,c={"maximum-scale":"1","user-scalable":"no"};var d=Object.create(null);if(b)for(var e=b.split(/,|;/),g=0;g<e.length;g++){var h=e[g].split("="),k=h[0].trim(),h=h[1],h=(h||"").trim();k&&(d[k]=h)}var e=!1,l;for(l in c)d[l]!==c[l]&&(e=!0,void 0!==c[l]?d[l]=c[l]:delete d[l]);if(e){var b="",m;for(m in d)0<b.length&&(b+=","),b=d[m]?b+(m+"="+d[m]):b+m}d=b;return Ei(this,d)};
f.restoreOriginalTouchZoom=function(){return void 0!==this.ad?Ei(this,this.ad):!1};f.hasScrolled=function(){return 0<this.Ae};f.hideFixedLayer=function(){this.S.setVisible(!1)};f.showFixedLayer=function(){this.S.setVisible(!0)};f.updateFixedLayer=function(){this.S.update()};f.addToFixedLayer=function(a,b){this.S.addElement(a,b)};f.removeFromFixedLayer=function(a){this.S.removeElement(a)};function Ei(a,b){return(a=Di(a))&&a.content!=b?(a.content=b,!0):!1}
function Di(a){if(Qc(a.ampdoc.win))return null;void 0===a.rb&&(a.rb=a.ta.querySelector("meta[name=viewport]"),a.rb&&(a.ad=a.rb.content));return a.rb}f.Yf=function(a){var b=a.scrollTop;this.setScrollTop(b)};f.Vf=function(a){var b=this,c=a.paddingTop,d=a.duration||0,e=a.curve,g=a["transient"];void 0!=c&&c!=this.w&&(this.Eb=this.w,this.w=c,this.w<this.Eb?(this.b.hideViewerHeader(g,this.Eb),Fi(this,d,e,g)):Fi(this,d,e,g).then(function(){b.b.showViewerHeader(g,b.w)}))};
function Fi(a,b,c,d){a.S.updatePaddingTop(a.w,d);if(0>=b)return Promise.resolve();var e=Ai(a.Eb-a.w,0);return pi(a.ampdoc.getRootNode(),function(b){b=e(b);a.S.transformMutate("translateY("+b+"px)")},b,c).thenAlways(function(){a.S.transformMutate(null)})}function Gi(a,b,c){var d=a.getSize(),e=a.getScrollTop(),g=a.getScrollLeft();a.Md.fire({relayoutAll:b,top:e,left:g,width:d.width,height:d.height,velocity:c})}
f.Mf=function(){var a=this;this.lb=null;this.Ae++;this.Ub=this.b.getScrollLeft();var b=this.b.getScrollTop();if(!(0>b)){this.Aa=b;if(!this.fd){this.fd=!0;var c=Date.now();this.P.delay(function(){a.j.measure(function(){a.nd(c,b)})},36)}this.W.fire()}};f.nd=function(a,b){var c=this,d=this.Aa=this.b.getScrollTop(),e=Date.now(),g=0;e!=a&&(g=(d-b)/(e-a));.03>Math.abs(g)?(Gi(this,!1,g),this.fd=!1):this.P.delay(function(){return c.j.measure(c.nd.bind(c,e,d))},20)};
f.Nf=function(){var a=this;this.ed||(this.ed=!0,this.j.measure(function(){a.ed=!1;a.a.sendMessage("scroll",{scrollTop:a.getScrollTop()},!0)}))};f.ye=function(){var a=this;this.lb=null;var b=this.fa;this.fa=null;var c=this.getSize();this.S.update().then(function(){Gi(a,!b||b.width!=c.width,0)})};function Hi(a,b){var c=this;this.ampdoc=a;this.win=a.win;this.Pb=Zc(this.win);this.a=b;this.W=new P;this.ma=new P;this.Ya=function(){return c.W.fire()};this.Xa=function(){return c.ma.fire()}}f=Hi.prototype;
f.connect=function(){this.win.addEventListener("scroll",this.Ya);this.win.addEventListener("resize",this.Xa)};f.disconnect=function(){this.win.removeEventListener("scroll",this.Ya);this.win.removeEventListener("resize",this.Xa)};f.ensureReadyForElements=function(){};f.getBorderTop=function(){return 0};f.requiresFixedLayerTransfer=function(){return!1};f.onScroll=function(a){this.W.add(a)};f.onResize=function(a){this.ma.add(a)};
f.updatePaddingTop=function(a){Q(this.win.document.documentElement,"paddingTop",a+"px")};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.win.document.documentElement.classList.add("i-amphtml-scroll-disabled")};f.resetScroll=function(){this.win.document.documentElement.classList.remove("i-amphtml-scroll-disabled")};f.updateLightboxMode=function(){};
f.getSize=function(){var a=this.win.innerWidth,b=this.win.innerHeight;if(a&&b)return{width:a,height:b};var c=this.win.document.documentElement;return{width:c.clientWidth,height:c.clientHeight}};f.getScrollTop=function(){var a=Ii(this).scrollTop||this.win.pageYOffset,b=this.ampdoc.getRootNode().host;return b?a-b.offsetTop:a};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return Ii(this).scrollWidth};f.getScrollHeight=function(){return Ii(this).scrollHeight};
f.getLayoutRect=function(a,b,c){var d=void 0!=c?c:this.getScrollTop(),e=void 0!=b?b:this.getScrollLeft();a=a.getBoundingClientRect();return W(Math.round(a.left+e),Math.round(a.top+d),Math.round(a.width),Math.round(a.height))};f.setScrollTop=function(a){Ii(this).scrollTop=a};function Ii(a){var b=a.win.document;return b.scrollingElement?b.scrollingElement:b.body&&a.Pb.isWebKit()?b.body:b.documentElement}
function Ji(a,b){var c=this;this.win=a;this.ampdoc=b;this.Ia=this.oa=this.ea=null;this.wa={x:0,y:0};this.W=new P;this.ma=new P;this.w=0;fe(this.win.document).then(function(){return c.Vb()});this.win.addEventListener("resize",function(){return c.ma.fire()})}f=Ji.prototype;f.ensureReadyForElements=function(){};f.getBorderTop=function(){return 0};f.requiresFixedLayerTransfer=function(){return!0};
f.Vb=function(){var a=this.win.document.body;R(this.win.document.documentElement,{overflowY:"auto",webkitOverflowScrolling:"touch"});R(a,{overflowX:"hidden",overflowY:"auto",webkitOverflowScrolling:"touch",position:"absolute",top:0,left:0,right:0,bottom:0});this.ea=this.win.document.createElement("div");this.ea.id="i-amphtml-scrollpos";R(this.ea,{position:"absolute",top:0,left:0,width:0,height:0,visibility:"hidden"});a.appendChild(this.ea);this.oa=this.win.document.createElement("div");this.oa.id=
"i-amphtml-scrollmove";R(this.oa,{position:"absolute",top:0,left:0,width:0,height:0,visibility:"hidden"});a.appendChild(this.oa);this.Ia=this.win.document.createElement("div");this.Ia.id="i-amphtml-endpos";R(this.Ia,{width:0,height:0,visibility:"hidden"});a.appendChild(this.Ia);a.addEventListener("scroll",this.Kb.bind(this));Bi(this.ampdoc)};f.connect=function(){};f.disconnect=function(){};
f.hideViewerHeader=function(a,b){var c=this;a?de(this.win.document,function(a){a=a.body;var d=(c.win.getComputedStyle(a)||w()).paddingTop||"0";R(a,{paddingTop:"calc("+d+" + "+b+"px)",borderTop:""})}):this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){};f.resetScroll=function(){};f.updatePaddingTop=function(a){var b=this;de(this.win.document,function(c){b.w=a;R(c.body,{borderTop:a+"px solid transparent",paddingTop:""})})};
f.updateLightboxMode=function(a){de(this.win.document,function(b){Q(b.body,"borderTopStyle",a?"none":"solid")})};f.onScroll=function(a){this.W.add(a)};f.onResize=function(a){this.ma.add(a)};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return Math.round(this.wa.y)};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.win.innerWidth};
f.getScrollHeight=function(){return this.Ia?Math.round(this.Ia.getBoundingClientRect().top-this.ea.getBoundingClientRect().top):0};f.getLayoutRect=function(a){a=a.getBoundingClientRect();return W(Math.round(a.left+this.wa.x),Math.round(a.top+this.wa.y),Math.round(a.width),Math.round(a.height))};f.setScrollTop=function(a){Ki(this,a||1)};
f.Kb=function(a){this.ea&&(this.ea&&this.oa&&0==-this.ea.getBoundingClientRect().top+this.w&&(Ki(this,1),a&&a.preventDefault()),a=this.ea.getBoundingClientRect(),this.wa.x!=-a.left||this.wa.y!=-a.top)&&(this.wa.x=-a.left,this.wa.y=-a.top+this.w,this.W.fire())};function Ki(a,b){a.oa&&(Q(a.oa,"transform","translateY("+(b-a.w)+"px)"),a.oa.scrollIntoView(!0))}
function Li(a){var b=this;this.win=a;var c=this.win.document.documentElement.className;this.win.document.documentElement.className="";this.win.document.documentElement.classList.add("i-amphtml-ios-embed");this.H=this.win.document.createElement("html");this.H.id="i-amphtml-wrapper";this.H.className=c;this.W=new P;this.ma=new P;this.Ya=this.Kb.bind(this);this.Xa=function(){return b.ma.fire()};this.Be=!1;sc(this.win.document,this.Vb.bind(this));fe(this.win.document).then(function(){b.win.document.documentElement.classList.add("i-amphtml-ios-overscroll")})}
f=Li.prototype;f.ensureReadyForElements=function(){this.Vb()};f.Vb=function(){if(!this.Be){this.Be=!0;var a=this.win.document,b=a.body;a.documentElement.appendChild(this.H);this.H.appendChild(b);Object.defineProperty(a,"body",{get:function(){return b}});this.Kb()}};f.connect=function(){this.win.addEventListener("resize",this.Xa);this.H.addEventListener("scroll",this.Ya)};f.disconnect=function(){this.win.removeEventListener("resize",this.Xa);this.H.removeEventListener("scroll",this.Ya)};
f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!0};f.onScroll=function(a){this.W.add(a)};f.onResize=function(a){this.ma.add(a)};f.updatePaddingTop=function(a){Q(this.H,"paddingTop",a+"px")};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.H.classList.add("i-amphtml-scroll-disabled")};f.resetScroll=function(){this.H.classList.remove("i-amphtml-scroll-disabled")};
f.updateLightboxMode=function(){};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return this.H.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.H.scrollWidth};f.getScrollHeight=function(){return this.H.scrollHeight};
f.getLayoutRect=function(a,b,c){c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();a=a.getBoundingClientRect();return W(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))};f.setScrollTop=function(a){this.H.scrollTop=a||1};f.Kb=function(a){0==this.H.scrollTop&&(this.H.scrollTop=1,a&&a.preventDefault());a&&this.W.fire()};
function Mi(a){K(a,"viewport",void 0,function(a){var b=N(a),d;if(d=a.isSingleDoc()){d=a.win;var e=b.getParam("viewportType")||"natural";Zc(d).isIos()&&"natural"==e?!Qc(d)&&p(d).development?d="natural-ios-embed":(Qc(d),d=Qc(d)&&b.isEmbedded()?"natural-ios-embed":e):d=e;d="natural-ios-embed"==d}d=d?8<Zc(a.win).getIosMajorVersion()?new Li(a.win):new Ji(a.win,a):new Hi(a,b);return new Ci(a,d,b)},!0)};function Ni(a){this.m=a;this.pa=this.Kc=0;this.ob=null;this.jb=Zb(a);G(a,"jank-meter")&&(this.Lc=this.m.document.createElement("div"),this.Lc.classList.add("i-amphtml-jank-meter"),this.m.document.body.appendChild(this.Lc),Oi(this,0))}Ni.prototype.onScheduled=function(){Pi(this)&&null==this.ob&&(this.ob=this.m.Date.now())};
Ni.prototype.onRun=function(){if(Pi(this)&&null!=this.ob){var a=this.m.Date.now()-this.ob;this.ob=null;this.pa++;16<a&&(this.Kc++,v().info("JANK","Paint latency: "+a+"ms"));this.jb&&200==this.pa&&(this.jb.tickDelta("gfp",this.m.Math.floor((this.pa-this.Kc)/this.pa*100)),this.jb.flush());G(this.m,"jank-meter")&&Oi(this,a)}};function Pi(a){return G(a.m,"jank-meter")||a.jb&&a.jb.isPerformanceTrackingOn()&&200>a.pa}
function Oi(a,b){var c=a.m.Math.floor((a.pa-a.Kc)/a.pa*100);a.Lc.textContent=c+"%|"+a.pa+"|"+b+"ms"};function Qi(a){var b=this;this.win=a;this.ic=I(this.win,"ampdoc");this.$a=rd(this.win);this.Df=Ri(this);this.s=[];this.Yc=[];this.ld=[];this.Xc=[];this.ba=!1;this.Wc=this.Jb=null;this.nc=this.Lf.bind(this);this.ff=new bh(this.win,this.nc,16);this.yd=new bh(this.win,this.nc,40);this.hd=null;var c=this.$c.bind(this);if(this.ic.isSingleDoc())ic(this.ic.getAmpDoc(),"viewer").then(function(a){b.hd=a;a.onVisibilityChanged(c)});else this.$a.onVisibilityChanged(c);this.ee=new Ni(this.win)}f=Qi.prototype;
f.$c=function(){this.ba&&Si(this)};f.run=function(a,b){this.s.push(a);this.ld.push(b||void 0);this.za()};f.runPromise=function(a,b){var c=this;this.run(a,b);return this.Jb?this.Jb:this.Jb=new Promise(function(a){c.Wc=a})};f.createTask=function(a){var b=this;return function(c){b.run(a,c)}};f.mutate=function(a){this.run({measure:void 0,mutate:a})};f.mutatePromise=function(a){return this.runPromise({measure:void 0,mutate:a})};f.measure=function(a){this.run({measure:a,mutate:void 0})};
f.measurePromise=function(a){var b=this;return new Promise(function(c){b.measure(function(){c(a())})})};f.canAnimate=function(a){return Ti(this,a)};function Ti(a,b){return a.$a.isHidden()?!1:a.hd?a.hd.isVisible():b?(a=a.ic.getAmpDoc(b),N(a).isVisible()):!0}f.runAnim=function(a,b,c){if(!Ti(this,a))return v().warn("VSYNC","Did not schedule a vsync request, because document was invisible"),!1;this.run(b,c);return!0};f.createAnimTask=function(a,b){var c=this;return function(d){return c.runAnim(a,b,d)}};
f.runAnimMutateSeries=function(a,b,c){var d=this;return Ti(this,a)?new Promise(function(e,g){var h=Date.now(),k=0,l=d.createAnimTask(a,{mutate:function(a){var d=Date.now()-h;b(d,d-k,a)?c&&d>c?g(Error("timeout")):(k=d,l(a)):e()}});l({})}):Promise.reject(Error("CANCELLED"))};f.za=function(){this.ba||(this.ba=!0,this.ee.onScheduled(),Si(this))};function Si(a){Ti(a)?(a.Df(a.nc),a.yd.schedule()):a.ff.schedule()}
f.Lf=function(){this.yd.cancel();this.ba=!1;this.ee.onRun();var a=this.s,b=this.ld,c=this.Wc;this.Jb=this.Wc=null;this.s=this.Yc;this.ld=this.Xc;for(var d=0;d<a.length;d++)a[d].measure&&!Ui(a[d].measure,b[d])&&(a[d].mutate=void 0);for(d=0;d<a.length;d++)a[d].mutate&&Ui(a[d].mutate,b[d]);this.Yc=a;this.Xc=b;this.Yc.length=0;this.Xc.length=0;c&&c()};
function Ri(a){var b=a.win.requestAnimationFrame||a.win.webkitRequestAnimationFrame;if(b)return b.bind(a.win);var c=0;return function(b){var d=Date.now(),g=Math.max(0,16-(d-c));c=d+g;a.win.setTimeout(b,g)}}function Ui(a,b){try{a(b)}catch(c){return ya(c),!1}return!0};var Vi=["GET","POST"],Wi=[ra,sa],Xi={document:1,text:2};function Yi(a){this.win=a}f=Yi.prototype;f.af=function(a,b){var c=b.credentials;return"document"==b.responseType?Zi(a,b):(this.win.fetch||Zi).apply(null,arguments)};
function $i(a,b,c){c=void 0===c?{}:c;!1!==c.ampCors?b=a.getCorsUrl(a.win,b):c.requireAmpResponseSourceOrigin=!1;!0===c.requireAmpResponseSourceOrigin&&v().error("XHR","requireAmpResponseSourceOrigin is deprecated, use ampCors instead");void 0===c.requireAmpResponseSourceOrigin&&(c.requireAmpResponseSourceOrigin=!0);var d=E(a.win.location.href).origin,e=E(b).origin;d==e&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return a.af(b,c).then(function(b){var d=b.headers.get("AMP-Access-Control-Allow-Source-Origin");
if(d){var e=E(Ua(a.win.location.href)).origin;t().assert(d==e,"Returned AMP-Access-Control-Allow-Source-Origin is not equal to the current: "+d+(" vs "+e))}else c.requireAmpResponseSourceOrigin&&t().assert(!1,"Response must contain the AMP-Access-Control-Allow-Source-Origin header");return b},function(a){t().assert(!1,"Fetch failed %s: %s",b,a&&a.message)})}
f.fetchJson=function(a,b){var c=aj(b,"application/json");"POST"==c.method&&"[object FormData]"!==na.call(c.body)&&(Wi.some(function(a){return a(c.body)}),c.headers["Content-Type"]="application/json;charset=utf-8",c.body=JSON.stringify(c.body));return this.fetch(a,c).then(function(a){return a.json()})};f.fetchText=function(a,b){b=aj(b,"text/plain");return this.fetch(a,b).then(function(a){return a.text()})};
f.fetchDocument=function(a,b){b=aj(b,"text/html");b.responseType="document";return this.fetch(a,b).then(function(a){return a.D()})};f.fetch=function(a,b){b=aj(b);return $i(this,a,b).then(function(a){return bj(a)})};f.sendSignal=function(a,b){return $i(this,a,b).then(function(a){return bj(a)})};f.getCorsUrl=function(a,b){Va(b);a=E(Ua(a.location.href)).origin;a=encodeURIComponent("__amp_source_origin")+"="+encodeURIComponent(a);return Ja(b,a,void 0)};
function aj(a,b){a=a||{};var c;c=a.method;void 0===c?c="GET":(c=c.toUpperCase(),Vi.includes(c));a.method=c;a.headers=a.headers||{};b&&(a.headers.Accept=b);return a}
function Zi(a,b){return new Promise(function(c,d){var e=cj(b.method||"GET",a);"include"==b.credentials&&(e.withCredentials=!0);b.responseType in Xi&&(e.responseType=b.responseType);b.headers&&Object.keys(b.headers).forEach(function(a){e.setRequestHeader(a,b.headers[a])});e.onreadystatechange=function(){2>e.readyState||(100>e.status||599<e.status?(e.onreadystatechange=null,d(t().createExpectedError("Unknown HTTP status "+e.status))):4==e.readyState&&c(new dj(e)))};e.onerror=function(){d(t().createExpectedError("Network failure"))};
e.onabort=function(){d(t().createExpectedError("Request aborted"))};"POST"==b.method?e.send(b.body):e.send()})}function cj(a,b){var c=new XMLHttpRequest;if("withCredentials"in c)c.open(a,b,!0);else if("undefined"!=typeof XDomainRequest)c=new XDomainRequest,c.open(a,b);else throw v().createExpectedError("CORS is not supported");return c}function ej(a){return 415==a||500<=a&&600>a}
function bj(a){return new Promise(function(b,c){if(200>a.status||300<=a.status){var d=t().createError("HTTP error "+a.status);d.response=a;ej(a.status)&&(d.retriable=!0);"application/json"==(a.headers.get("Content-Type")||"").split(";")[0]?a.json().then(function(a){d.responseJson=a;c(d)},function(){c(d)}):c(d)}else b(a)})}function dj(a){this.ra=a;this.status=this.ra.status;this.headers=new fj(a);this.bodyUsed=!1}f=dj.prototype;f.clone=function(){return new dj(this.ra)};
function gj(a){a.bodyUsed=!0;return Promise.resolve(a.ra.responseText)}f.text=function(){return gj(this)};f.json=function(){return gj(this).then(JSON.parse.bind(JSON))};f.D=function(){this.bodyUsed=!0;t().assert(this.ra.responseXML,"responseXML should exist. Make sure to return Content-Type: text/html header.");return Promise.resolve(this.ra.responseXML)};f.arrayBuffer=function(){return gj(this).then(dd)};function fj(a){this.ra=a}fj.prototype.get=function(a){return this.ra.getResponseHeader(a)};
fj.prototype.has=function(a){return null!=this.ra.getResponseHeader(a)};function hj(a){this.win=a;this.cb=w()}ca(hj,Yi);hj.prototype.fetch=function(a,b){var c=this,d=b&&b.headers&&b.headers.Accept||"",e=!b||!b.method||"GET"===b.method,g=Ma(a)+d,h=!!this.cb[g];if(e&&h)return this.cb[g].then(function(a){return a.clone()});var k=Yi.prototype.fetch.call(this,a,b);e&&(this.cb[g]=k.then(function(a){delete c.cb[g];return a.clone()},function(a){delete c.cb[g];throw a;}));return k};var ij="alt title referrerpolicy aria-label aria-describedby aria-labelledby".split(" ");function jj(a){Bf.call(this,a);this.de=this.Wa=!0;this.Zb=this.F=null}ca(jj,Bf);f=jj.prototype;f.mutatedAttributesCallback=function(a){if(void 0!==a.src||void 0!==a.srcset)this.Zb=Re(this.element),this.F&&kj(this);if(this.F){var b=ij.filter(function(b){return void 0!==a[b]});this.propagateAttributes(b,this.F,!0)}};f.buildCallback=function(){this.de=!this.element.hasAttribute("noprerender")};
f.isLayoutSupported=function(a){return Qd(a)};
f.yb=function(){this.F||(this.Zb||(this.Zb=Re(this.element)),this.Wa=!0,this.element.hasAttribute("fallback")&&(this.Wa=!1),this.F=new Image,this.element.id&&this.F.setAttribute("amp-img-id",this.element.id),"img"==this.element.getAttribute("role")&&(this.element.removeAttribute("role"),t().error("AMP-IMG","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.propagateAttributes(ij,
this.F),this.applyFillContent(this.F,!0),this.element.appendChild(this.F))};f.prerenderAllowed=function(){return this.de};f.isRelayoutNeeded=function(){return!0};f.reconstructWhenReparented=function(){return!1};f.layoutCallback=function(){var a=this;this.yb();var b=kj(this);this.Wa&&(b=b.catch(function(b){lj(a);throw b;}),this.Wa=!1);return b};
function kj(a){if(0>=a.getLayoutWidth())return Promise.resolve();var b=a.Zb.select(a.getLayoutWidth(),a.getDpr()).url;if(b==a.F.getAttribute("src"))return Promise.resolve();a.F.setAttribute("src",b);return a.loadPromise(a.F).then(function(){!a.Wa&&a.F.classList.contains("i-amphtml-ghost")&&a.getVsync().mutate(function(){a.F.classList.remove("i-amphtml-ghost");a.toggleFallback(!1)})})}function lj(a){a.getVsync().mutate(function(){a.F.classList.add("i-amphtml-ghost");a.toggleFallback(!0)})};function mj(a){Bf.call(this,a);this.od=null}ca(mj,Bf);mj.prototype.isLayoutSupported=function(){return!0};mj.prototype.buildCallback=function(){this.element.setAttribute("aria-hidden","true");(this.Qb=this.element.getAttribute("referrerpolicy"))&&t().assert("no-referrer"==this.Qb,'amp-pixel: invalid "referrerpolicy" value "'+this.Qb+'". Only "no-referrer" is supported');N(this.getAmpDoc()).whenFirstVisible().then(this.Tf.bind(this))};
mj.prototype.Tf=function(){var a=this;if(this.od)return v().error("amp-pixel","duplicate pixel"),this.od;this.od=M(this.win).promise(1).then(function(){var b=a.element.getAttribute("src");if(b)return cc(a.element,"url-replace").expandAsync(nj(b)).then(function(b){var c;if(a.Qb)if(c=a.element,"referrerPolicy"in Image.prototype)c=oj(c.ownerDocument.defaultView,b,!0);else{var e=c.ownerDocument.createElement("iframe"),g={src:"about:blank"},h;for(h in g)e.setAttribute(h,g[h]);c.appendChild(e);oj(e.contentWindow,
b);c=e}else c=oj(a.win,b);var k=c;v().info("amp-pixel","pixel triggered: ",b);return k})})};function nj(a){t().assert(/^(https\:\/\/|\/\/)/i.test(a),'The <amp-pixel> src attribute must start with "https://" or "//". Invalid value: '+a);return a}function oj(a,b,c){a=new a.Image;c&&(a.referrerPolicy="no-referrer");a.src=b;return a};var pj=["amp-ad","amp-embed","amp-video"];function qj(a){this.win=a;this.Vd={};this.tb=null}f=qj.prototype;f.waitForExtension=function(a){return rj(sj(this,a))};
f.loadExtension=function(a,b){b=void 0===b?!0:b;"amp-embed"==a&&(a="amp-ad");var c=sj(this,a),d=b,e;c.loaded||c.error?e=!1:(void 0===c.scriptPresent&&(e=this.win.document.head.querySelector('[custom-element="'+a+'"]'),c.scriptPresent=!!e),e=!c.scriptPresent);if(e){e=this.win.document.createElement("script");e.async=!0;e.setAttribute("custom-element",a);e.setAttribute("data-script",a);e.setAttribute("i-amphtml-inserted","");var g=Ea.urls.cdn+"/rtv/"+p().rtvVersion+"/v0/"+a+"-0.1.js";e.src=g;this.win.document.head.appendChild(e);
c.scriptPresent=!0;d&&Qf(this.win,a)}return rj(c)};f.loadElementClass=function(a){return this.loadExtension(a).then(function(b){return b.elements[a].implementationClass})};function tj(a,b,c,d){uj(a,b).extension.elements[b]={implementationClass:c,css:d}}f.bg=function(a,b){uj(this,b).docFactories.push(a)};f.cg=function(a,b){uj(this,b).shadowRootFactories.push(a)};
f.installFactoriesInShadowRoot=function(a,b){var c=this,d=[];b.forEach(function(b){var e=sj(c,b);d.push(rj(e).then(function(){e.shadowRootFactories.forEach(function(c){try{c(a)}catch(k){ya("ShadowRoot factory failed: ",k,b)}})}))});return Promise.all(d)};
f.installExtensionsInChildWindow=function(a,b,c){var d=this,e=this.win;mc(a,a.frameElement.ownerDocument.defaultView);vj(a);vd(a.document,"html{overflow-x:hidden!important}body,html{height:auto!important}body{margin:0!important;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}[hidden]{display:none!important}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y;touch-action:pan-y}html.i-amphtml-singledoc>body{overflow:visible!important;position:relative!important}html.i-amphtml-webview>body{overflow-x:hidden!important;overflow-y:visible!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-element{display:inline-block}.i-amphtml-layout-fixed{display:inline-block;position:relative}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,.i-amphtml-layout-responsive{display:block;position:relative}.i-amphtml-layout-fill{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-flex-item{display:block;position:relative;-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.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}.i-amphtml-fill-content{display:block;width:1px;min-width:100%;height:1px;min-height:100%;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:2px!important;height:2px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}#i-amphtml-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}.i-amphtml-notbuilt{position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt>*{display:none}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder]{display:block}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback]{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!important}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none}.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;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-loader-line{position:absolute;top:0;left:0;right:0;height:1px;overflow:hidden!important;background-color:hsla(0,0%,59%,.2);display:block}.i-amphtml-loader-moving-line{display:block;position:absolute;width:100%;height:100%!important;background-color:rgba(0,0,0,.5);z-index:2}.i-amphtml-loader-moving-line[experiment]{background-color:hsla(0,0%,59%,.65)}@-webkit-keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.i-amphtml-loader-line.amp-active .i-amphtml-loader-moving-line{-webkit-animation:i-amphtml-loader-line-moving 2s ease infinite;animation:i-amphtml-loader-line-moving 2s ease infinite}.i-amphtml-loader{position:absolute;display:block;height:10px;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;white-space:nowrap}.i-amphtml-loader.amp-active .i-amphtml-loader-dot{-webkit-animation:i-amphtml-loader-dots 2s infinite;animation:i-amphtml-loader-dots 2s infinite}.i-amphtml-loader-dot{position:relative;display:inline-block;height:10px;width:10px;margin:2px;border-radius:100%;background-color:rgba(0,0,0,.3);box-shadow:2px 2px 2px 1px rgba(0,0,0,.2);will-change:transform}.i-amphtml-loader .i-amphtml-loader-dot:first-child{-webkit-animation-delay:0s;animation-delay:0s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(2){-webkit-animation-delay:.1s;animation-delay:.1s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(3){-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,.5)}}@keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,.5)}}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden}.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-instagram{padding:64px 0px 0px!important;background-color:#fff}amp-analytics{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide],amp-experiment,amp-live-list>[update],amp-share-tracking,form [submit-error],form [submit-success]{display:none}amp-fresh{visibility:hidden}.i-amphtml-jank-meter{position:fixed;background-color:rgba(232,72,95,.5);bottom:0;right:0;color:#fff;font-size:16px;width:110px;z-index:1000;padding:5px}i-amp-video-mask,i-amphtml-video-mask{z-index:1}.amp-video-eq{-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;bottom:7px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:12px;opacity:0.8;overflow:hidden;position:absolute;right:7px;width:20px;z-index:1}.amp-video-eq .amp-video-eq-col{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-right:1px;position:relative}.amp-video-eq .amp-video-eq-col div{-webkit-animation-name:amp-video-eq-animation;animation-name:amp-video-eq-animation;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-direction:alternate;background-color:#fafafa;height:100%;position:absolute;width:100%;will-change:transform;-webkit-animation-play-state:paused;animation-play-state:paused}.amp-video-eq[unpausable] .amp-video-eq-col div{-webkit-animation-name:none;animation-name:none}.amp-video-eq[unpausable].amp-video-eq-play .amp-video-eq-col div{-webkit-animation-name:amp-video-eq-animation;animation-name:amp-video-eq-animation}.amp-video-eq.amp-video-eq-play .amp-video-eq-col div{-webkit-animation-play-state:running;animation-play-state:running}.amp-video-eq-1-1{-webkit-animation-duration:0.3s;animation-duration:0.3s}.amp-video-eq-1-1,.amp-video-eq-1-2{-webkit-transform:translateY(60%);transform:translateY(60%)}.amp-video-eq-1-2{-webkit-animation-duration:0.45s;animation-duration:0.45s}.amp-video-eq-2-1{-webkit-animation-duration:0.5s;animation-duration:0.5s}.amp-video-eq-2-1,.amp-video-eq-2-2{-webkit-transform:translateY(30%);transform:translateY(30%)}.amp-video-eq-2-2{-webkit-animation-duration:0.4s;animation-duration:0.4s}.amp-video-eq-3-1{-webkit-animation-duration:0.3s;animation-duration:0.3s}.amp-video-eq-3-1,.amp-video-eq-3-2{-webkit-transform:translateY(70%);transform:translateY(70%)}.amp-video-eq-3-2{-webkit-animation-duration:0.35s;animation-duration:0.35s}.amp-video-eq-4-1{-webkit-animation-duration:0.4s;animation-duration:0.4s}.amp-video-eq-4-1,.amp-video-eq-4-2{-webkit-transform:translateY(50%);transform:translateY(50%)}.amp-video-eq-4-2{-webkit-animation-duration:0.25s;animation-duration:0.25s}@-webkit-keyframes amp-video-eq-animation{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes amp-video-eq-animation{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}\n/*# sourceURL=/css/amp.css*/",function(){},
!0,"amp-runtime");c&&c(a);wj(a);xj(e,a);yj(a);var g=[];b.forEach(function(b){Qf(e,b);pj.includes(b)||Of(a,b,X);var c=d.loadExtension(b).then(function(c){var d=c.elements[b];if(d&&d.css)return new Promise(function(c){vd(a.document,d.css,c,!1,b)})}).then(function(){var c=Mf(e)[b];Nf(a,b,c)});g.push(c)});return Promise.all(g)};
function sj(a,b){var c=a.Vd[b];c||(c={extension:{elements:{}},docFactories:[],shadowRootFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},a.Vd[b]=c);return c}function uj(a,b){a.tb||v().error("extensions","unknown extension for ",b);return sj(a,a.tb||"_UNKNOWN_")}function rj(a){a.promise||(a.promise=a.loaded?Promise.resolve(a.extension):a.error?Promise.reject(a.error):new Promise(function(b,c){a.resolve=b;a.reject=c}));return a.promise}
function xj(a,b){var c=Mf(a)["amp-img"];Of(b,"amp-img",c||X);a=Mf(a)["amp-pixel"];Of(b,"amp-pixel",a||X)}function yj(a){pj.forEach(function(b){Qf(a,b)})}function vj(a){lb(a);Yb(a);Wb(a)}function wj(a){pc(a,"action");pc(a,"standard-actions");pc(a,"clickhandler")};var zj=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/];
function Aj(a,b){var c=this;this.ampdoc=a;this.win=a.win;this.Bb=Qc(this.win);this.$a=rd(this.win);this.$=!0;this.bd=!1;this.Le=this.gc="visible";this.la=1;this.Tc=w();this.ze=new P;this.sb=new P;this.Jd=new P;this.Ib=this.Ma=null;this.Na=[];this.B={};this.pd=this.sd=this.Vc=this.ie=this.ia=this.Ne=null;this.$f=new Promise(function(a){c.Ne=a});b?Object.assign(this.B,b):(this.win.name&&0==this.win.name.indexOf("__AMP__")&&Bj(this.win.name.substring(7),this.B),this.win.location.hash&&Bj(this.win.location.hash,
this.B));this.$=!parseInt(this.B.off,10);this.bd=!(!parseInt(this.B.history,10)&&!this.bd);Cj(this,this.B.visibilityState);this.la=parseInt(this.B.prerenderSize,10)||this.la;this.Jc=!this.Bb&&"1"==this.B.webview;this.zb=!(!(this.Bb&&!this.win.AMP_TEST_IFRAME&&(this.B.origin||this.B.visibilityState||-1!=this.win.location.search.indexOf("amp_js_v"))||this.Jc)&&a.isSingleDoc());this.uc=this.isVisible();this.$a.onVisibilityChanged(this.we.bind(this));this.Uc=this.zb?M(this.win).timeoutPromise(2E4,new Promise(function(a){c.Vc=
a})).catch(function(a){throw Dj(a);}):null;this.le=this.zb?this.Uc.catch(function(a){Gd(Dj(a))}):null;var d,e;this.zb?this.win.location.ancestorOrigins&&!this.Jc?(d=0<this.win.location.ancestorOrigins.length&&Ej(this,this.win.location.ancestorOrigins[0]),e=Promise.resolve(d)):(d=void 0,e=new Promise(function(a){c.pd=a})):(d=!1,e=Promise.resolve(!1));this.Ic=e;this.Wf=new Promise(function(a){c.isEmbedded()?c.win.location.ancestorOrigins&&0<c.win.location.ancestorOrigins.length?a(c.win.location.ancestorOrigins[0]):
(M(c.win).delay(function(){return a("")},1E3),c.sd=a):a("")});this.ec=this.isEmbedded()&&"referrer"in this.B&&!1!==d?this.B.referrer:this.win.document.referrer;this.Ff=new Promise(function(a){c.isEmbedded()&&"referrer"in c.B?c.Ic.then(function(b){b?a(c.B.referrer):(a(c.win.document.referrer),c.ec!=c.win.document.referrer&&(v().expectedError("Viewer","Untrusted viewer referrer override: "+c.ec+" at "+c.Ib),c.ec=c.win.document.referrer))}):a(c.win.document.referrer)});this.Sb=Ma(this.win.location.href||
"");this.Zf=new Promise(function(a){var b=c.B.viewerUrl;c.isEmbedded()&&b?c.Ic.then(function(d){d?c.Sb=b:v().error("Viewer","Untrusted viewer url override: "+b+" at "+c.Ib);a(c.Sb)}):a(c.Sb)});this.B.click&&(a=Ma(this.win.location.href),a!=this.win.location.href&&this.win.history.replaceState&&(this.win.location.originalHash||(this.win.location.originalHash=this.win.location.hash),this.win.history.replaceState({},"",a)));this.we();Fj(this)}
function Fj(a){if(a.isVisible()){var b=Date.now();a.ia||(a.ia=b);a.ie=b;a.uc=!0;a.Ne()}a.sb.fire()}f=Aj.prototype;f.getParam=function(a){return this.B[a]};f.hasCapability=function(a){var b=this.B.cap;return b?-1!=b.split(",").indexOf(a):!1};f.navigateTo=function(a,b){Na(a);this.hasCapability("a2a")?this.sendMessage("a2a",{url:a,requestedBy:b}):this.win.top.location.href=a};f.isEmbedded=function(){return this.zb};f.isRuntimeOn=function(){return this.$};f.toggleRuntime=function(){this.$=!this.$;this.ze.fire(this.$)};
f.onRuntimeState=function(a){return this.ze.add(a)};f.isOvertakeHistory=function(){return this.bd};f.getVisibilityState=function(){return this.gc};f.we=function(){Cj(this,this.Le)};function Cj(a,b){if(b){var c=a.gc;b=v().assertEnumValue(gg,b,"VisibilityState");"hidden"===b&&(b=a.uc?"inactive":"prerender");a.Le=b;!a.$a.isHidden()||"visible"!==b&&"paused"!==b||(b="hidden");a.gc=b;c!==b&&Fj(a)}}f.isVisible=function(){return"visible"==this.getVisibilityState()};f.hasBeenVisible=function(){return this.uc};
f.whenFirstVisible=function(){return this.$f};f.getFirstVisibleTime=function(){return this.ia};f.getLastVisibleTime=function(){return this.ie};f.getPrerenderSize=function(){return this.la};f.getResolvedViewerUrl=function(){return this.Sb};f.getViewerUrl=function(){return this.Zf};f.maybeGetMessagingOrigin=function(){return this.Ib};f.getUnconfirmedReferrerUrl=function(){return this.ec};f.getReferrerUrl=function(){return this.Ff};f.isTrustedViewer=function(){return this.Ic};f.getViewerOrigin=function(){return this.Wf};
function Ej(a,b){if(a.Jc&&/^www\.[.a-z]+$/.test(b))return zj.some(function(a){return a.test(b)});var c=E(b);return"https:"!=c.protocol?!1:zj.some(function(a){return a.test(c.hostname)})}f.onVisibilityChanged=function(a){return this.sb.add(a)};f.onMessage=function(a,b){var c=this.Tc[a];c||(c=new P,this.Tc[a]=c);return c.add(b)};
f.receiveMessage=function(a,b){if("visibilitychange"==a)return void 0!==b.prerenderSize&&(this.la=b.prerenderSize),Cj(this,b.state),Promise.resolve();if("broadcast"==a)return this.Jd.fire(b),Promise.resolve();if(a=this.Tc[a])return a.fire(b),Promise.resolve()};
f.setMessageDeliverer=function(a,b){var c=this;if(this.Ma)throw Error("message channel can only be initialized once");if(null==b)throw Error("message channel must have an origin");this.Ma=a;this.Ib=b;this.Vc&&this.Vc();this.pd&&this.pd(b?Ej(this,b):!1);this.sd&&this.sd(b||"");0<this.Na.length&&(b=this.Na.slice(0),this.Na=[],b.forEach(function(a){var b=c.Ma(a.eventType,a.data,a.awaitResponse);a.awaitResponse&&a.responseResolver(b)}))};f.sendMessage=function(a,b,c){c=void 0===c?!1:c;Gj(this,a,b,c,!1)};
f.sendMessageAwaitResponse=function(a,b,c){return Gj(this,a,b,void 0===c?!1:c,!0)};
function Gj(a,b,c,d,e){if(a.Ma)return Promise.resolve(a.Ma(b,c,e));if(!a.Uc)return e?Promise.reject(Dj()):Promise.resolve();if(!d)return a.Uc.then(function(){return a.Ma(b,c,e)});var g=Oe(a.Na,function(a){return a.eventType==b});if(-1!=g)d=a.Na.splice(g,1)[0],d.data=c,d.awaitResponse=d.awaitResponse||e;else{var h;d=new Promise(function(a){h=a});d={eventType:b,data:c,awaitResponse:e,responsePromise:d,responseResolver:h}}a.Na.push(d);return d.responsePromise}
f.broadcast=function(a){this.le&&this.sendMessage("broadcast",a)};f.onBroadcast=function(a){return this.Jd.add(a)};f.whenMessagingReady=function(){return this.le};function Bj(a,b){a=la(a);for(var c in a)b[c]=a[c]}function Dj(a){return a instanceof Error?(a.message="No messaging channel: "+a.message,a):Error("No messaging channel: "+a)}function Hj(a){K(a,"viewer",void 0,function(){return new Aj(a,void 0)},!0)};(function(){Aa=ua;v();t()})();(function(a){self.reportError=a})(Gd);function Ij(a){J(a,"crypto",Bg);J(a,"platform",Xg);J(a,"timer",ei);J(a,"timer",ei);J(a,"vsync",Qi);J(a,"xhr",Yi);J(a,"batched-xhr",hj);J(a,"templates",ag)}
function Jj(a){var b=self,c={registerElement:Kj,registerServiceForDoc:Lj};function d(a){function c(){sc(b.document,function(){if("function"==typeof a)a(b.AMP);else{var c=a.n,d=a.f,e=b.AMP,g=sj(h,c);try{h.tb=c,d(e),g.loaded=!0,g.resolve&&g.resolve(g.extension)}catch(x){throw g.error=x,g.reject&&g.reject(x),x;}finally{h.tb=null}}})}"function"==typeof a||"high"==a.p?Promise.resolve().then(c):(c.displayName=a.n,Ye(b.document,c))}function e(){G(b,"amp-lightbox-viewer-auto")&&Yc(b).loadExtension("amp-lightbox-viewer")}
if(!b.AMP_TAG){b.AMP_TAG=!0;var g=b.AMP||[];J(b,"extensions",qj);var h=Yc(b);Ij(b);yj(b);b.AMP={win:b};b.AMP.config=Ea;b.AMP.BaseElement=Bf;b.AMP.BaseTemplate=$f;b.AMP.registerElement=c.registerElement.bind(null,b,h);b.AMP.registerTemplate=function(a,c){var d=I(b,"templates");if(d.qb[a]){var e=d.md[a];t().assert(e,"Duplicate template type: %s",a);delete d.md[a];e(c)}else d.qb[a]=Promise.resolve(c)};b.AMP.registerServiceForDoc=c.registerServiceForDoc.bind(null,b,h);b.AMP.isExperimentOn=G.bind(null,
b);b.AMP.toggleExperiment=$a.bind(null,b);b.AMP.setTickFunction=function(){};a(b,h);for(a=0;a<g.length;a++){var k=g[a];if(Mj(b,k))g.splice(a--,1);else if("function"==typeof k||"high"==k.p){try{d(k)}catch(l){v().error("runtime","Extension failed: ",l,k.n)}g.splice(a--,1)}}Nj(b,function(){b.AMP.push=function(a){Mj(b,a)||d(a)};for(var a=0;a<g.length;a++){var c=g[a];if(!Mj(b,c))try{d(c)}catch(n){v().error("runtime","Extension failed: ",n,c.n)}}g.length=0});b.AMP.push||(b.AMP.push=g.push.bind(g));e();
Zc(b).isIos()&&Q(b.document.documentElement,"cursor","pointer")}}function Oj(){Jj(function(a){var b=N(a.document);a.AMP.viewer=b;p().development&&(a.AMP.toggleRuntime=b.toggleRuntime.bind(b),a.AMP.resources=$c(a.document));b=bd(a.document);a.AMP.viewport={};a.AMP.viewport.getScrollLeft=b.getScrollLeft.bind(b);a.AMP.viewport.getScrollWidth=b.getScrollWidth.bind(b);a.AMP.viewport.getWidth=b.getWidth.bind(b)})}
function Kj(a,b,c,d,e){tj(b,c,d,e);e?vd(a.document,e,function(){Pj(a,c,d)},!1,c):Pj(a,c,d)}function Pj(a,b,c){Nf(a,b,c);I(a,b,Qj)}function Lj(a,b,c,d,e){a=I(a,"ampdoc").getAmpDoc();K(a,c,d,e,!0)}function Qj(){return{}}
function Mj(a,b){if(!G(a,"version-locking")||"function"==typeof b||"1493855940942"==b.v)return!1;var c=a.document.head.querySelector('[custom-element="'+b.n+'"]:not([i-amphtml-inserted])');if(!c)return!1;c.removeAttribute("custom-element");c.setAttribute("i-amphtml-loaded-new-version",b.n);Yc(a).loadExtension(b.n,!1);return!0}function Nj(a,b){G(a,"pump-early-frame")?a.document.body?0<ud(a).length?b():M(a).delay(b,1):b():b()};self.location&&(self.location.originalHash=self.location.hash);var Rj;try{Id(),tf(),Rj=I(self,"ampdoc")}catch(a){throw yd(self.document),a;}
Ye(self.document,function initial(){var b=Rj.getAmpDoc(self.document);J(self,"performance",Vf);var c=I(self,"performance");nf();c.tick("is");vd(self.document,"html{overflow-x:hidden!important}body,html{height:auto!important}body{margin:0!important;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}[hidden]{display:none!important}html.i-amphtml-singledoc.i-amphtml-embedded{-ms-touch-action:pan-y;touch-action:pan-y}html.i-amphtml-singledoc>body{overflow:visible!important;position:relative!important}html.i-amphtml-webview>body{overflow-x:hidden!important;overflow-y:visible!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-element{display:inline-block}.i-amphtml-layout-fixed{display:inline-block;position:relative}.i-amphtml-layout-container,.i-amphtml-layout-fixed-height,.i-amphtml-layout-responsive{display:block;position:relative}.i-amphtml-layout-fill{display:block;overflow:hidden!important;position:absolute;top:0;left:0;bottom:0;right:0}.i-amphtml-layout-flex-item{display:block;position:relative;-webkit-box-flex:1;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto}.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}.i-amphtml-fill-content{display:block;width:1px;min-width:100%;height:1px;min-height:100%;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:2px!important;height:2px!important;opacity:0!important;overflow:hidden!important;margin:0!important;display:block!important;visibility:visible!important}.i-amphtml-unresolved{position:relative;overflow:hidden!important}#i-amphtml-wrapper.i-amphtml-scroll-disabled,.i-amphtml-scroll-disabled{overflow-x:hidden!important;overflow-y:hidden!important}.i-amphtml-notbuilt{position:relative;overflow:hidden!important;color:transparent!important}.i-amphtml-notbuilt>*{display:none}.i-amphtml-ghost{visibility:hidden!important}.i-amphtml-element>[placeholder]{display:block}.i-amphtml-element>[placeholder].amp-hidden,.i-amphtml-element>[placeholder].hidden{visibility:hidden}.i-amphtml-element:not(.amp-notsupported)>[fallback]{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!important}.i-amphtml-notbuilt>[placeholder]{display:block!important}.i-amphtml-hidden-by-media-query{display:none}.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;z-index:1}.i-amphtml-notbuilt>.i-amphtml-loading-container{display:block!important}.i-amphtml-loading-container.amp-hidden{visibility:hidden}.i-amphtml-loader-line{position:absolute;top:0;left:0;right:0;height:1px;overflow:hidden!important;background-color:hsla(0,0%,59%,.2);display:block}.i-amphtml-loader-moving-line{display:block;position:absolute;width:100%;height:100%!important;background-color:rgba(0,0,0,.5);z-index:2}.i-amphtml-loader-moving-line[experiment]{background-color:hsla(0,0%,59%,.65)}@-webkit-keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes i-amphtml-loader-line-moving{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}to{-webkit-transform:translateX(100%);transform:translateX(100%)}}.i-amphtml-loader-line.amp-active .i-amphtml-loader-moving-line{-webkit-animation:i-amphtml-loader-line-moving 2s ease infinite;animation:i-amphtml-loader-line-moving 2s ease infinite}.i-amphtml-loader{position:absolute;display:block;height:10px;top:50%;left:50%;-webkit-transform:translateX(-50%) translateY(-50%);transform:translateX(-50%) translateY(-50%);-webkit-transform-origin:50% 50%;transform-origin:50% 50%;white-space:nowrap}.i-amphtml-loader.amp-active .i-amphtml-loader-dot{-webkit-animation:i-amphtml-loader-dots 2s infinite;animation:i-amphtml-loader-dots 2s infinite}.i-amphtml-loader-dot{position:relative;display:inline-block;height:10px;width:10px;margin:2px;border-radius:100%;background-color:rgba(0,0,0,.3);box-shadow:2px 2px 2px 1px rgba(0,0,0,.2);will-change:transform}.i-amphtml-loader .i-amphtml-loader-dot:first-child{-webkit-animation-delay:0s;animation-delay:0s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(2){-webkit-animation-delay:.1s;animation-delay:.1s}.i-amphtml-loader .i-amphtml-loader-dot:nth-child(3){-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,.5)}}@keyframes i-amphtml-loader-dots{0%,to{-webkit-transform:scale(.7);transform:scale(.7);background-color:rgba(0,0,0,.3)}50%{-webkit-transform:scale(.8);transform:scale(.8);background-color:rgba(0,0,0,.5)}}.i-amphtml-element>[overflow]{cursor:pointer;position:relative;z-index:2;visibility:hidden}.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-instagram{padding:64px 0px 0px!important;background-color:#fff}amp-analytics{position:fixed!important;top:0!important;width:1px!important;height:1px!important;overflow:hidden!important;visibility:hidden}amp-iframe iframe{box-sizing:border-box!important}[amp-access][amp-access-hide],amp-experiment,amp-live-list>[update],amp-share-tracking,form [submit-error],form [submit-success]{display:none}amp-fresh{visibility:hidden}.i-amphtml-jank-meter{position:fixed;background-color:rgba(232,72,95,.5);bottom:0;right:0;color:#fff;font-size:16px;width:110px;z-index:1000;padding:5px}i-amp-video-mask,i-amphtml-video-mask{z-index:1}.amp-video-eq{-webkit-box-align:end;-webkit-align-items:flex-end;-ms-flex-align:end;align-items:flex-end;bottom:7px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:12px;opacity:0.8;overflow:hidden;position:absolute;right:7px;width:20px;z-index:1}.amp-video-eq .amp-video-eq-col{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-right:1px;position:relative}.amp-video-eq .amp-video-eq-col div{-webkit-animation-name:amp-video-eq-animation;animation-name:amp-video-eq-animation;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-direction:alternate;animation-direction:alternate;background-color:#fafafa;height:100%;position:absolute;width:100%;will-change:transform;-webkit-animation-play-state:paused;animation-play-state:paused}.amp-video-eq[unpausable] .amp-video-eq-col div{-webkit-animation-name:none;animation-name:none}.amp-video-eq[unpausable].amp-video-eq-play .amp-video-eq-col div{-webkit-animation-name:amp-video-eq-animation;animation-name:amp-video-eq-animation}.amp-video-eq.amp-video-eq-play .amp-video-eq-col div{-webkit-animation-play-state:running;animation-play-state:running}.amp-video-eq-1-1{-webkit-animation-duration:0.3s;animation-duration:0.3s}.amp-video-eq-1-1,.amp-video-eq-1-2{-webkit-transform:translateY(60%);transform:translateY(60%)}.amp-video-eq-1-2{-webkit-animation-duration:0.45s;animation-duration:0.45s}.amp-video-eq-2-1{-webkit-animation-duration:0.5s;animation-duration:0.5s}.amp-video-eq-2-1,.amp-video-eq-2-2{-webkit-transform:translateY(30%);transform:translateY(30%)}.amp-video-eq-2-2{-webkit-animation-duration:0.4s;animation-duration:0.4s}.amp-video-eq-3-1{-webkit-animation-duration:0.3s;animation-duration:0.3s}.amp-video-eq-3-1,.amp-video-eq-3-2{-webkit-transform:translateY(70%);transform:translateY(70%)}.amp-video-eq-3-2{-webkit-animation-duration:0.35s;animation-duration:0.35s}.amp-video-eq-4-1{-webkit-animation-duration:0.4s;animation-duration:0.4s}.amp-video-eq-4-1,.amp-video-eq-4-2{-webkit-transform:translateY(50%);transform:translateY(50%)}.amp-video-eq-4-2{-webkit-animation-duration:0.25s;animation-duration:0.25s}@-webkit-keyframes amp-video-eq-animation{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes amp-video-eq-animation{0%{-webkit-transform:translateY(100%);transform:translateY(100%)}to{-webkit-transform:translateY(0);transform:translateY(0)}}\n/*# sourceURL=/css/amp.css*/",function(){Ye(self.document,
function(){Ij(self);K(b,"documentInfo",Fg);Hj(b);Mi(b);Wg(b);K(b,"resources",ih);Le(b);K(b,"action",lg,void 0,!0);K(b,"standard-actions",Vh,void 0,!0);di(b);K(b,"clickhandler",Hg,void 0,!0);Lg(b);c.coreServicesAvailable();me()});Ye(self.document,function e(){var b=self;Of(b,"amp-img",jj);Of(b,"amp-pixel",mj)});Ye(self.document,function g(){Oj()});Ye(self.document,function(){Pf(self)});Ye(self.document,function h(){var b=self;"0"==N(b.document).getParam("p2r")&&Zc(b).isChrome()&&new of(b.document,
bd(b.document));Uf();yd(self.document,!0);uf()});Ye(self.document,function k(){c.tick("e_is");$c(b).ampInitComplete();c.flush()})},!0,"amp-runtime")});self.console&&(console.info||console.log).call(console,"Powered by AMP \u26a1 HTML \u2013 Version 1493855940942",self.location.href);self.document.documentElement.setAttribute("amp-version","1493855940942");})()}catch(e){setTimeout(function(){var s=document.body.style;s.opacity=1;s.visibility="visible";s.animation="none";s.WebkitAnimation="none;"},1000);throw e};
//# sourceMappingURL=v0.js.map
