self.AMP_CONFIG={"allow-doc-opt-in":["amp-date-picker","amp-next-page","ampdoc-shell","disable-amp-story-desktop","disable-faster-amp-list","inabox-rov","inline-styles","url-replacement-v2"],"allow-url-opt-in":["pump-early-frame"],"canary":0,"expAdsenseA4A":0.01,"a4aProfilingRate":0.01,"ad-type-custom":1,"amp-access-iframe":1,"amp-apester-media":1,"amp-ima-video":1,"amp-playbuzz":1,"amp-story-navigation-performance":0,"chunked-amp":1,"amp-auto-ads":1,"amp-auto-ads-adsense-holdout":0.1,"version-locking":1,"as-use-attr-for-format":0.01,"a4aFastFetchDoubleclickLaunched":0,"a4aFastFetchAdSenseLaunched":0,"pump-early-frame":1,"3p-use-ampcontext":1,"amp-live-list-sorting":1,"amp-sidebar toolbar":1,"svg-in-mustache":0,"disable-faster-amp-list":1,"amp-consent":1,"amp-img-native-srcset":1,"amp-story-v1":1,"expAdsenseUnconditionedCanonical":0,"expAdsenseCanonical":0,"font-display-swap":1,"amp-date-picker":1,"url-replacement-v2":0,"inline-styles":1,"v":"011533253141109","type":"production"};/*AMP_CONFIG*/var global=self;self.AMP=self.AMP||[];try{(function(_){ var f;function aa(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 ca=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}(this);function da(a,b){b=void 0===b?"":b;try{return decodeURIComponent(a)}catch(c){return b}};var ia=/(?:^[#?]?|&)([^=&]+)(?:=([^&]*))?/g;function p(a){var b=Object.create(null);if(!a)return b;for(var c;c=ia.exec(a);){var d=da(c[1],c[1]),e=c[2]?da(c[2],c[2]):"";b[d]=e}return b};var ja="";function r(a){var b=a||self,c;if(b.AMP_MODE)c=b.AMP_MODE;else{c=b;var d=p(c.location.originalHash||c.location.hash),e=p(c.location.search);ja||(ja=c.AMP_CONFIG&&c.AMP_CONFIG.v?c.AMP_CONFIG.v:"011533253141109");c=b.AMP_MODE={localDev:!1,development:!("1"!=d.development&&!c.AMP_DEV_MODE),examiner:"2"==d.development,filter:d.filter,geoOverride:d["amp-geo"],minified:!0,lite:void 0!=e.amp_lite,test:!1,log:d.log,version:"1533253141109",rtvVersion:ja}}return c};var ka=Object.prototype.toString;function la(a){return Array.isArray(a)}function ma(a){return"[object Object]"===ka.call(a)}function na(a){return"number"===typeof a&&isFinite(a)};function qa(a){return 0<=a.indexOf("\u200b\u200b\u200b")}var ra=void 0;function sa(a){ra=a}function ta(a,b,c){this.win=a;this.Lg=b;this.Mg=this.win.console&&this.win.console.log&&"0"!=r().log?this.Lg({localDev:!1,development:r(void 0).development,filter:r(void 0).filter,minified:!0,lite:r(void 0).lite,test:!1,log:r(void 0).log,version:r(void 0).version,rtvVersion:r(void 0).rtvVersion}):0;this.Hc=c||""}function ua(a){return void 0!==ra?ra:a.Mg} function va(a,b,c){if(0!=ua(a)){var d=a.win.console.log;"ERROR"==b?d=a.win.console.error||d:"INFO"==b?d=a.win.console.info||d:"WARN"==b&&(d=a.win.console.warn||d);d.apply(a.win.console,c)}}f=ta.prototype;f.isEnabled=function(){return 0!=ua(this)};f.fine=function(a,b){4<=ua(this)&&va(this,"FINE",Array.prototype.slice.call(arguments,1))};f.info=function(a,b){3<=ua(this)&&va(this,"INFO",Array.prototype.slice.call(arguments,1))}; f.warn=function(a,b){2<=ua(this)&&va(this,"WARN",Array.prototype.slice.call(arguments,1))};f.Ka=function(a,b){if(1<=ua(this))va(this,"ERROR",Array.prototype.slice.call(arguments,1));else{var c=wa.apply(null,Array.prototype.slice.call(arguments,1));za(this,c);return c}};f.error=function(a,b){var c=this.Ka.apply(this,arguments);c&&(c.name=a||c.name,self.reportError(c))};f.expectedError=function(a,b){var c=this.Ka.apply(this,arguments);c&&(c.expected=!0,self.reportError(c))}; f.createError=function(a){var b=wa.apply(null,arguments);za(this,b);return b};f.createExpectedError=function(a){var b=wa.apply(null,arguments);za(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;ga.length?!1:0==a.lastIndexOf(b,0)};var Ja=self.AMP_CONFIG||{},Ka={thirdParty:Ja.thirdPartyUrl||"https://3p.ampproject.net",thirdPartyFrameHost:Ja.thirdPartyFrameHost||"ampproject.net",thirdPartyFrameRegex:("string"==typeof Ja.thirdPartyFrameRegex?new RegExp(Ja.thirdPartyFrameRegex):Ja.thirdPartyFrameRegex)||/^d-\d+\.ampproject\.net$/,cdn:Ja.cdnUrl||"https://cdn.ampproject.org",cdnProxyRegex:("string"==typeof Ja.cdnProxyRegex?new RegExp(Ja.cdnProxyRegex):Ja.cdnProxyRegex)||/^https:\/\/([a-zA-Z0-9_-]+\.)?cdn\.ampproject\.org$/,localhostRegex:/^https?:\/\/localhost(:\d+)?$/, errorReporting:Ja.errorReportingUrl||"https://amp-error-reporting.appspot.com/r",localDev:Ja.localDev||!1},La={urls:Ka};function Ma(a){this.ng=a;this.Tc=this.T=0;this.Wa=Object.create(null)}Ma.prototype.has=function(a){return!!this.Wa[a]};Ma.prototype.get=function(a){var b=this.Wa[a];if(b)return b.access=++this.Tc,b.payload};Ma.prototype.put=function(a,b){this.has(a)||this.T++;this.Wa[a]={payload:b,access:this.Tc};if(!(this.T<=this.ng)){E().warn("lru-cache","Trimming LRU cache");a=this.Wa;var c=this.Tc+1,d,e;for(e in a){var g=a[e].access;g=d&&(b[c]=Math.random()oa.call(Hb,a)&&Hb.push(a)),d&&(c=a[b+xa])&&c.call(a))}function z(){}function B(a,c,d){d=d&&d[Ib]||"";var e=c.prototype,g=Ed(e),h=c.observedAttributes||Fd,k={prototype:g};Ac(g,Gb,{value:function(){if(Bc)Bc=!1;else if(!this[Jb]){this[Jb]=!0;new c(this);e[Gb]&&e[Gb].call(this);var a=Kb[Cc.get(c)];(!eb||1>0),ga="addEventListener",fa="attached",xa="Callback",pa="detached",Ib="extends",Fa="attributeChanged"+xa,Ej=fa+xa,Mf="connected"+xa,Nf="disconnected"+xa,Gb="created"+xa,Fj=pa+xa,wc="ADDITION",Id="MODIFICATION",Ad="REMOVAL",Ra="DOMAttrModified",Kf="DOMContentLoaded",Dj="DOMSubtreeModified",Fb="<",vc="=",Hj=/^[A-Z][A-Z0-9]*(?:-[A-Z0-9]+)+$/,Ij="ANNOTATION-XML COLOR-PROFILE FONT-FACE FONT-FACE-SRC FONT-FACE-URI FONT-FACE-FORMAT FONT-FACE-NAME MISSING-GLYPH".split(" "), Qa=[],Eb=[],ea="",db=F.documentElement,oa=Qa.indexOf||function(a){for(var b=this.length;b--&&this[b]!==a;);return b},Jd=V.prototype,Kd=Jd.hasOwnProperty,Dc=Jd.isPrototypeOf,gb=V.defineProperty,Fd=[],Ld=V.getOwnPropertyDescriptor,Qf=V.getOwnPropertyNames,Jj=V.getPrototypeOf,Rf=V.setPrototypeOf,Sf=!!V.__proto__,Gj=!1,Jb="__dreCEv1",ya=a.customElements,eb="force"!==c&&!!(ya&&ya.define&&ya.get&&ya.whenDefined),Tf=V.create||V,Kj=a.Map||function(){var a=[],b=[],c;return{get:function(c){return b[oa.call(a, c)]},set:function(d,e){c=oa.call(a,d);0>c?b[a.push(d)-1]=e:b[c]=e}}},Of=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},Bc=!1,Kb=Tf(null),fb=Tf(null),Cc=new Kj,Ed=V.create||function uc(a){return a?(uc.prototype=a,new uc):this},Bj=Rf||(Sf?function(a,b){a.__proto__=b;return a}:Qf&&Ld?function(){function a(a,b){for(var c,d=Qf(b),e=0,g=d.length;ee))return e}}function Sd(a,b){var c=a.performance&&a.performance.navigation;if(c&&void 0!==c[b])return c[b]}function Td(a){this.ampdoc=a;this.Nb=this.Ob=void 0;this.ha=Object.create(null);this.xd=!1;Ud(this)}f=Td.prototype;f.ec=function(){this.initialize();this.xd=!0};f.initialize=function(){}; f.get=function(a){this.xd||this.ec();return this.ha[a]};f.set=function(a,b){this.ha[a]=this.ha[a]||{sync:void 0,async:void 0};this.ha[a].sync=b;this.Nb=this.Ob=void 0;return this};f.setAsync=function(a,b){this.ha[a]=this.ha[a]||{sync:void 0,async:void 0};this.ha[a].async=b;this.Nb=this.Ob=void 0;return this};f.setBoth=function(a,b,c){return this.set(a,b).setAsync(a,c)}; f.getExpr=function(a,b,c){var d=this;this.xd||this.ec();var e=a?Object.keys(a):null;if(e&&0\n \n '];Pe.raw=['\n \n \n ']; var Qe={NODISPLAY:"nodisplay",FIXED:"fixed",FIXED_HEIGHT:"fixed-height",RESPONSIVE:"responsive",CONTAINER:"container",FILL:"fill",FLEX_ITEM:"flex-item",FLUID:"fluid",INTRINSIC:"intrinsic"},Re={"AMP-PIXEL":{width:"0px",height:"0px"},"AMP-ANALYTICS":{width:"1px",height:"1px"},"AMP-AUDIO":null,"AMP-SOCIAL-SHARE":{width:"60px",height:"44px"}},Se={"AMP-ANIM":!0,"AMP-BRIGHTCOVE":!0,"AMP-GOOGLE-DOCUMENT-EMBED":!0,"AMP-EMBED":!0,"AMP-FACEBOOK":!0,"AMP-FACEBOOK-COMMENTS":!0,"AMP-FACEBOOK-LIKE":!0,"AMP-FACEBOOK-PAGE":!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 Te(a){for(var b in Qe)if(Qe[b]==a)return Qe[b]}function Ue(a){return"fixed"==a||"fixed-height"==a||"responsive"==a||"fill"==a||"flex-item"==a||"fluid"==a||"intrinsic"==a}function Ve(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 We(a){C().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 Xe(a){C().assert(/^\d+(\.\d+)?(px|em|rem|vh|vw|vmin|vmax|%)$/.test(a),"Invalid length or percent value: %s",a);return a}function Ye(a){We(a);var b=C().assert(a.match(/[a-z]+/i),"Failed to read units from %s",a);return b[0]}function Ze(a){a=parseFloat(a);return na(a)?a:void 0}function $e(a){U(a,"display","none");a.classList.add("i-amphtml-display")};function af(a){return"undefined"!==typeof TextEncoder?(new TextEncoder("utf-8")).encode(a):bf(unescape(encodeURIComponent(a)))}function bf(a){for(var b=new Uint8Array(a.length),c=0;c'];ig.raw=['\n
'];function jg(a){this.A=a;this.nc=this.mc=this.Tb=this.Xb=0;this.Pb=null;this.xa=nc(a);this.Db=this.Be=this.Ce=null;kg(this)}jg.prototype.onScheduled=function(){lg(this)&&null==this.Pb&&(this.Pb=this.A.Date.now())}; jg.prototype.onRun=function(){if(lg(this)&&null!=this.Pb){var a=this.A.Date.now()-this.Pb;this.Pb=null;this.Tb++;16a.Tb} function kg(a){lg(a)&&mg(a.A)&&(a.Db=new a.A.PerformanceObserver(function(b){for(var c=b.getEntries(),d=0;db&&(b=10);var c=Date.now()+b;return!this.isPending()||-10>c-this.Wd?(this.cancel(),this.Wd=c,this.qa=this.R.delay(this.hg,b),!0):!1};og.prototype.yc=function(){this.qa=-1;this.Wd=0;this.Oa=!0;this.Ag();this.Oa=!1}; og.prototype.cancel=function(){this.isPending()&&(this.R.cancel(this.qa),this.qa=-1)};function pg(){this.C=[]}pg.prototype.peek=function(){var a=this.C.length;return a?this.C[a-1].item:null};pg.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.C.length;e<=g;){d=Math.floor((e+g)/2);if(d===this.C.length)break;if(this.C[d].priority=c)g=d-1;else break}this.C.splice(d,0,{item:a,priority:b})};pg.prototype.dequeue=function(){return this.C.length?this.C.pop().item:null}; ca.Object.defineProperties(pg.prototype,{length:{configurable:!0,enumerable:!0,get:function(){return this.C.length}}});var qg=/nochunking=1/.test(self.location.hash),rg=Promise.resolve();function sg(a,b){qg?rg.then(b):(P(a,"chunk",tg),fc(a,"chunk").runForStartup(b))}function ug(a){this.state="not_run";this.kd=a}function vg(a,b){if("run"!=a.state){a.state="run";try{a.kd(b)}catch(c){throw a.vf(c),c;}}}ug.prototype.Dh=function(){return this.kd.displayName||this.kd.name};ug.prototype.vf=function(){};ug.prototype.ef=function(){return!1};ug.prototype.Vf=function(){return!0}; function wg(a,b,c){ug.call(this,a);var d=this;this.A=b;this.h=null;c.then(function(a){d.h=a;d.h.isVisible()&&vg(d,null);d.h.onVisibilityChanged(function(){d.h.isVisible()&&vg(d,null)})})}aa(wg,ug);wg.prototype.vf=function(){re(self.document)};wg.prototype.ef=function(){return this.h?this.h.isVisible():this.A.document.hidden?!1:!/visibilityState=(hidden|prerender)/.test(this.A.location.hash)};wg.prototype.Vf=function(){return!!this.h}; function tg(a){var b=this;this.A=a.win;this.I=new pg;this.Ee=this.Ve.bind(this);this.xh=pc(a,"viewer");this.A.addEventListener("message",function(a){"amp-macro-task"==a.data&&b.Ve(null)})}tg.prototype.run=function(a,b){var c=new ug(a);xg(this,c,b)};tg.prototype.runForStartup=function(a){a=new wg(a,this.A,this.xh);xg(this,a,Number.POSITIVE_INFINITY)};function xg(a,b,c){a.I.enqueue(b,c);rg.then(function(){a.Pa()})} function yg(a,b){for(var c=a.I.peek();c&&"not_run"!==c.state;)a.I.dequeue(),c=a.I.peek();c&&b&&a.I.dequeue();return c}tg.prototype.Ve=function(a){var b=this,c=yg(this,!0);if(!c)return!1;vg(c,a);rg.then(function(){b.Pa()});return!0};function zg(a){rg.then(function(){a.Ee(null)})}tg.prototype.Pa=function(){var a=yg(this);a&&(a.ef()?zg(this):a.Vf()&&this.A.requestIdleCallback?Ag(this.A,this.Ee):this.A.postMessage("amp-macro-task","*"))}; function Ag(a,b){var c=15,d=2E3;function e(h){if(h.timeRemaining()=k||h.didTimeout?b(h):a.requestIdleCallback(e,{timeout:k})}else b(h)}var g=Date.now();a.requestIdleCallback(e,{timeout:d})};function Bg(a){return!!a&&"function"==typeof a.getFormData};var Cg={PRERENDER:"prerender",VISIBLE:"visible",HIDDEN:"hidden",PAUSED:"paused",INACTIVE:"inactive"};var Dg=/^(https?:\/\/)((www[0-9]*|web|ftp|wap|home|mobile|amp|m)\.)+/i,Eg=[/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/],Fg=[/^t.co$/]; function Gg(a,b){var c=this;this.ampdoc=a;this.win=a.win;this.yb=fd(this.win);this.qb=Q(this.win,"documentState");this.na=!0;this.$d=!1;this.Xf=this.Qc="visible";this.Fa=1;this.Qd=G();this.pc=G();this.If=new Y;this.Vb=new Y;this.Le=new Y;this.qc=this.gb=null;this.hb=[];this.L={};this.vb={};this.ne=this.se=this.Sd=this.lf=this.Da=this.vc=this.uc=null;var d=new N;this.Ah=d.promise;this.Bh=d.resolve;b?Object.assign(this.L,b):(this.win.name&&0==this.win.name.indexOf("__AMP__")&&Hg(this.win.name.substring(7), this.L),this.win.location.hash&&(Hg(this.win.location.hash,this.vb),Object.assign(this.L,this.vb)));this.na=!parseInt(this.L.off,10);this.$d=!(!parseInt(this.L.history,10)&&!this.$d);Ig(this,this.L.visibilityState);this.Fa=parseInt(this.L.prerenderSize,10)||this.Fa;var e=!1;if(!this.yb)var g=p(this.win.location.search),e="1"===g.amp_gsa&&I(g.amp_js_v||"","a");this.fc=e;this.Hd=!this.yb&&"1"==this.L.webview;this.hc=!(!(this.yb&&!this.win.AMP_TEST_IFRAME&&(this.L.origin||this.L.visibilityState||-1!= this.win.location.search.indexOf("amp_js_v"))||this.Hd||this.fc)&&a.isSingleDoc());a=K(this.ampdoc.win.location.href);this.Jg=jb(a);this.md=this.isVisible();this.qb.onVisibilityChanged(this.Df.bind(this));var h=new N;this.Sd=h.resolve;this.Rd=this.hc?R(this.win).timeoutPromise(2E4,h.promise).catch(function(a){throw Jg(a);}):null;this.qf=this.hc?this.Rd.catch(function(a){xe(Jg(a))}):null;var k,l;this.hc?!this.win.location.ancestorOrigins||this.Hd||this.fc?(a=new N,l=a.promise,this.ne=a.resolve):(k= 0=a.J.length)return{type:ih,index:a.sd};var d=a.J.charAt(c);if(-1!=" \t\n\r\f\v\u00a0\u2028\u2029".indexOf(d)){for(c++;c=a.J.length)return{type:ih,index:c};d=a.J.charAt(c)}if(b&&(qh(d)||"."==d&&c+1=l){g=d;break}}if(-1==g)return{type:0,index:c};a=a.J.substring(c,g+1);c=g;return{type:mh,value:a,index:c}}for(g=c+1;g=a};function rh(a,b){this.win=a;this.Ec=null;b&&(this.Ec=new sh(a));this.sa=null}f=rh.prototype;f.isSingleDoc=function(){return!!this.Ec};f.hasAmpDocShell=function(){return!!this.sa}; f.getAmpDoc=function(a){if(this.Ec)return this.Ec;if(L(this.win,"ampdoc-shell")&&a===this.win.document){if(this.sa)return this.sa;throw E().createError("Ampdoc for shell has not been installed");}for(var b=a;b;){if(b.D)return b.D;var c=Ic(b,this.win);if(c)b=c;else{b=Tg(b);if(!b){if(this.sa)return this.sa;break}if(c=b.__AMPDOC)return c;b=b.host}}throw E().createError("No ampdoc found for",a);};f.installShadowDoc=function(a,b){a=new th(this.win,a,b);return b.__AMPDOC=a}; f.installShellShadowDoc=function(){var a=this;this.sa=new uh(this.win);this.win.document.__AMPDOC=this.sa;lf(this.win.document).then(function(b){a.sa.setBody(b.body);a.sa.setReady()});return this.sa};function vh(a){this.win=a;this.P=new ff;this.Se=[]}f=vh.prototype;f.isSingleDoc=function(){return null};f.getWin=function(){return this.win};f.signals=function(){return this.P};f.declaresExtension=function(a){return-1!=this.Se.indexOf(a)};f.declareExtension=function(a){this.declaresExtension(a)||this.Se.push(a)}; f.getRootNode=function(){return null};f.getHeadNode=function(){};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 sh(a){vh.call(this,a);var b=this;this.Wc=this.win.document.body?Promise.resolve(this.win.document.body):Pc(this.win.document).then(function(){return b.getBody()});this.ee=lf(this.win.document)}aa(sh,vh);f=sh.prototype;f.isSingleDoc=function(){return!0};f.getRootNode=function(){return this.win.document};f.getUrl=function(){return this.win.location.href};f.getHeadNode=function(){return this.win.document.head};f.isBodyAvailable=function(){return!!this.win.document.body};f.getBody=function(){return this.win.document.body}; f.whenBodyAvailable=function(){return this.Wc};f.isReady=function(){return gf(this.win.document)};f.whenReady=function(){return this.ee};function th(a,b,c){vh.call(this,a);this.pe=b;this.Kf=c;this.Yc=null;var d=new N;this.Wc=d.promise;this.De=d.resolve;this.Cf=!1;var e=new N;this.ee=e.promise;this.Bf=e.resolve}aa(th,vh);f=th.prototype;f.isSingleDoc=function(){return!1};f.getRootNode=function(){return this.Kf};f.getUrl=function(){return this.pe};f.getHeadNode=function(){return this.Kf}; f.isBodyAvailable=function(){return!!this.Yc};f.getBody=function(){return this.Yc};f.setBody=function(a){this.Yc=a;this.De(a);this.De=void 0};f.whenBodyAvailable=function(){return this.Wc};f.isReady=function(){return this.Cf};f.setReady=function(){this.Cf=!0;this.Bf();this.Bf=void 0};f.whenReady=function(){return this.ee};function uh(a){th.call(this,a,a.location.href,a.document)}aa(uh,th);uh.prototype.getHeadNode=function(){return this.win.document.head}; function wh(){var a=self;O(a,"ampdoc",function(){return new rh(a,!0)})};function xh(a){var b=this;this.win=a;this.vd=this.win.Date.now();this.sb=[];this.o=this.h=null;this.Ab=this.Ed=!1;this.Ue=G();this.ye="";this.Ze=this.Xe=this.nf=null;this.addEnabledExperiment("rtv-"+r(this.win).rtvVersion);ub(this.win)&&this.addEnabledExperiment("canary");mf(a.document).then(function(){b.tick("ol");if(!b.win.PerformancePaintTiming&&b.win.chrome&&"function"==typeof b.win.chrome.loadTimes){var a=1E3*b.win.chrome.loadTimes().firstPaintTime-b.win.performance.timing.navigationStart;1>= a||b.tickDelta("fp",a)}b.flush()});yh(this)}f=xh.prototype;f.coreServicesAvailable=function(){var a=this;this.h=T(this.win.document);this.o=sd(this.win.document);this.Ab=this.h.isEmbedded()&&"1"===this.h.getParam("csi");this.h.onVisibilityChanged(this.flush.bind(this));zh(this);var b=this.h.whenMessagingReady();this.h.whenFirstVisible().then(function(){a.tick("ofv");a.flush()});return b?b.then(function(){a.Ed=!0;a.tickDelta("msr",a.win.Date.now()-a.vd);Ah(a);a.flush()}):Promise.resolve()}; function yh(a){if(a.win.PerformancePaintTiming){var b=!1,c=!1,d=function(d){"first-paint"!=d.name||b?"first-contentful-paint"!=d.name||c||(a.tickDelta("fcp",d.startTime+d.duration),c=!0):(a.tickDelta("fp",d.startTime+d.duration),b=!0)},e=new a.win.PerformanceObserver(function(b){b.getEntries().forEach(d);a.flush()});a.win.performance.getEntriesByType("paint").forEach(d);e.observe({entryTypes:["paint"]})}} function zh(a){var b=!a.h.hasBeenVisible(),c=b?-1:a.vd;b&&a.h.whenFirstVisible().then(function(){c=a.win.Date.now()});Bh(a).then(function(){if(b){var d=-1'];Dh.raw=['\n '];var Eh=null; function Fh(a){this.Z=a.document;this.pd=a.document.head;this.Gb={};this.Uf={};this.Jb=rd(a);this.Gb[K(a.location.href).origin]=!0;var b;a:{if(!Eh){b=a.document.createElement("link");var c=b.relList;b.as="invalid-value";if(!c||!c.supports){b={};break a}Eh={preconnect:c.supports("preconnect"),preload:c.supports("preload"),onlyValidAs:"invalid-value"!=b.as}}b=Eh}this.ac=b;this.R=R(a)}Fh.prototype.url=function(a,b,c){var d=this;a.whenFirstVisible().then(function(){d.pe(a,b,c)})}; Fh.prototype.pe=function(a,b,c){if(Gh(b)){a=K(b).origin;b=Date.now();var d=this.Gb[a];if(d&&bc.right)return{distance:!1};if(b.bottomc.bottom)g=b.top-c.bottom,1==d&&(e=2);else return{distance:!0};return{distance:g,scrollPenalty:e,viewportHeight:b.height}}; f.isWithinViewportRatio=function(a,b){if("boolean"===typeof a)return a;var c=b||this.getDistanceViewportRatio(),d=c.distance,e=c.viewportHeight;return this.H?d\n
\n
\n
\n '];Uh.raw=['
\n
\n
\n
\n
'];var Vh=['
\n
\n
']; Vh.raw=['
\n
\n
'];var Wh={"AMP-AD":!0};function Xh(a,b){var c=a.split(",");C().assert(0=q||"A"<=q&&"Z">=q||"0"<=q&&"9">=q);l--);C().assert(l=q||"A"<=q&&"Z">=q||"0"<=q&&"9">=q);l--);0<=l?(c=a.substring(0,l+1).trim(),e=a.substring(l+1).trim()):(e=a,c=void 0);d.push({mediaQuery:c,size:n?e:b?Xe(e):We(e)})}});return new Yh(d)} function Yh(a){C().assert(0'];Zh.raw=['\n
'];var $h;function ai(a,b){function c(a){return d.call(this,a)||this}var d=bi(a);aa(c,d);c.prototype.elementName=function(){return b};return c} function bi(a){function b(a){a=c.call(this,a)||this;a.createdCallback();return a}if(a.BaseCustomElementClass)return a.BaseCustomElementClass;var c=a.HTMLElement;aa(b,c);b.prototype.createdCallback=function(){this.gc=this.Me=!1;this.cd=null;this.readyState="loading";this.everAttached=!1;this.cb=this.o=this.D=null;this.layout_="nodisplay";this.layoutWidth_=-1;this.fa=0;this.Ib=this.ab=this.Bd=!1;this.dc=this.Fc=this.oc=void 0;this.warnOnMissingOverflow=!0;this.Pd=this.Nd=this.sizerElement=void 0;this.Od= this.Na=null;this.ga=void 0;var b=a.ampExtendedElements&&a.ampExtendedElements[this.elementName()];this.implementation_=new b(this);this.nb=1;this.Tf=0;this.zb=this.Ia=void 0;this.P=new ff;var c=nc(a);this.wf=c&&c.isPerformanceTrackingOn();this.Ld=null;this.__AMP_UPG_RES&&(this.__AMP_UPG_RES(this),delete this.__AMP_UPG_RES,delete this.__AMP_UPG_PRM)};b.prototype.elementName=function(){};b.prototype.signals=function(){return this.P};b.prototype.getAmpDoc=function(){return this.D};b.prototype.getResources= function(){return this.o};b.prototype.getLayers=function(){return this.cb};b.prototype.isUpgraded=function(){return 2==this.nb};b.prototype.upgrade=function(a){this.zb||1!=this.nb||(this.implementation_=new a(this),this.everAttached&&this.Qf())};b.prototype.getUpgradeDelayMs=function(){return this.Tf};b.prototype.hd=function(b,c){this.Tf=a.Date.now()-c;this.nb=2;this.implementation_=b;this.classList.remove("amp-unresolved");this.classList.remove("i-amphtml-unresolved");this.implementation_.createdCallback(); this.bg();this.implementation_.layout_=this.layout_;this.implementation_.layoutWidth_=this.layoutWidth_;this.implementation_.firstAttachedCallback();this.$a();this.getResources().upgraded(this)};b.prototype.bg=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 C().createError(a);}};b.prototype.isBuilt=function(){return this.Me};b.prototype.whenBuilt=function(){return this.P.whenSignal("built")};b.prototype.getLayoutPriority=function(){this.isUpgraded();return this.implementation_.getLayoutPriority()};b.prototype.build=function(){var a=this;this.isUpgraded();return this.cd?this.cd:this.cd=(new Promise(function(b,c){var d=a.xg();d?jd(a.getAmpDoc(),"consentPolicyManager","amp-consent").then(function(a){return a?a.whenPolicyUnblock(d):!0}).then(function(d){1== d?b(a.implementation_.buildCallback()):c(Error("BLOCK_BY_CONSENT"))}):b(a.implementation_.buildCallback())})).then(function(){a.preconnect(!1);a.Me=!0;a.classList.remove("i-amphtml-notbuilt");a.classList.remove("amp-notbuilt");a.P.signal("built");a.ab&&a.Rf(!0);a.Ia&&R(a.ownerDocument.defaultView).delay(a.rg.bind(a),1);if(!a.getPlaceholder()){var b=a.createPlaceholder();b&&a.appendChild(b)}},function(b){a.P.rejectSignal("built",b);ze(b)||xe(b,a);throw b;})};b.prototype.preconnect=function(a){var b= this;a?this.implementation_.preconnectCallback(a):R(this.ownerDocument.defaultView).delay(function(){var c=b.tagName;b.ownerDocument?b.ownerDocument.defaultView?b.implementation_.preconnectCallback(a):E().error(c,"preconnect without defaultView"):E().error(c,"preconnect without ownerDocument")},1)};b.prototype.isAlwaysFixed=function(){return this.implementation_.isAlwaysFixed()};b.prototype.updateLayoutBox=function(a,b){var c=this;this.layoutWidth_=a.width;this.isUpgraded()&&(this.implementation_.layoutWidth_= this.layoutWidth_);if(this.isBuilt())try{if(this.implementation_.onLayoutMeasure(),b)this.implementation_.onMeasureChanged()}catch(h){xe(h,this)}this.jc()&&(this.ab?this.toggleLoading(!0):1E3>a.top&&0<=a.top&&this.rc(function(){return c.zf()}))};b.prototype.af=function(){void 0===this.sizerElement&&"responsive"===this.layout_&&(this.sizerElement=this.querySelector("i-amphtml-sizer"));return this.sizerElement||null};b.prototype.applySizesAndMediaQuery=function(){void 0===this.oc&&(this.oc=this.getAttribute("media")|| null);if(this.oc){var a=this.ownerDocument.defaultView;this.classList.toggle("i-amphtml-hidden-by-media-query",!a.matchMedia(this.oc).matches)}if(void 0===this.Fc){var b=this.getAttribute("sizes");this.Fc=b?Xh(b):null}this.Fc&&U(this,"width",this.Fc.select(this.ownerDocument.defaultView));void 0===this.dc&&"responsive"===this.layout_&&(this.dc=(b=this.getAttribute("heights"))?Xh(b,!0):null);this.dc&&(b=this.af())&&U(b,"paddingTop",this.dc.select(this.ownerDocument.defaultView))};b.prototype.changeSize= function(a,b,c){var d=this.af();d&&(this.sizerElement=null,U(d,"paddingTop","0"),this.rc(function(){Qc(d)}));void 0!==a&&U(this,"height",a,"px");void 0!==b&&U(this,"width",b,"px");c&&(null!=c.top&&U(this,"marginTop",c.top,"px"),null!=c.right&&U(this,"marginRight",c.right,"px"),null!=c.bottom&&U(this,"marginBottom",c.bottom,"px"),null!=c.left&&U(this,"marginLeft",c.left,"px"));this.Cg()&&this.mh()};b.prototype.connectedCallback=function(){if(!this.gc&&Rc(this)&&(this.gc=!0,this.everAttached||(this.classList.add("i-amphtml-element"), this.classList.add("i-amphtml-notbuilt"),this.classList.add("amp-notbuilt")),void 0===$h&&($h="content"in self.document.createElement("template")),$h||void 0!==this.zb||(this.zb=!!Vc(this,"template")),!this.zb)){if(!this.D){var a=this.ownerDocument.defaultView,b=nd(a).getAmpDoc(this);this.D=b;var c=this.tagName.toLowerCase();this.implementation_ instanceof Nh&&!b.declaresExtension(c)&&pd(a).installExtensionForDoc(b,c)}this.o||(this.o=sd(this.D));L(this.D.win,"layers")&&(this.cb||(this.cb=oc(this.D, "layers")),this.getLayers().add(this));this.getResources().add(this);if(this.everAttached){var h=this.reconstructWhenReparented();h&&this.Gf();this.isUpgraded()&&(h&&this.getResources().upgraded(this),this.$a())}else{this.everAttached=!0;try{var k;var l=this.getAttribute("i-amphtml-layout");if(l){var n=Te(l);"responsive"!=n&&"intrinsic"!=n||!this.firstElementChild?"nodisplay"==n&&$e(this):this.sizerElement=this.querySelector("i-amphtml-sizer")||void 0;k=n}else{var m=this.getAttribute("layout"),q= this.getAttribute("width"),t=this.getAttribute("height"),y=this.getAttribute("sizes"),v=this.getAttribute("heights"),A=m?Te(m):null;C().assert(void 0!==A,"Unknown layout: %s",m);var D=q&&"auto"!=q?Ve(q):q;C().assert(void 0!==D,"Invalid width value: %s",q);var z=t&&"fluid"!=t?Ve(t):t;C().assert(void 0!==z,"Invalid height value: %s",t);var B,x,u,J;if(!(J=A&&"fixed"!=A&&"fixed-height"!=A||D&&z)){var ha=this.tagName,ha=ha.toUpperCase();J=void 0===Re[ha]}if(J)B=D,x=z;else{var S=this.tagName.toUpperCase(); if(!Re[S]){var F=this.ownerDocument,V=S.replace(/^AMP\-/,""),Ha=F.createElement(V);Ha.controls=!0;fe(Ha,{position:"absolute",visibility:"hidden"});F.body.appendChild(Ha);Re[S]={width:(Ha.offsetWidth||1)+"px",height:(Ha.offsetHeight||1)+"px"};F.body.removeChild(Ha)}var Ga=Re[S];B=D||"fixed-height"==A?D:Ga.width;x=z||Ga.height}u=A?A:B||x?"fluid"==x?"fluid":!x||B&&"auto"!=B?x&&B&&(y||v)?"responsive":"fixed":"fixed-height":"container";"fixed"!=u&&"fixed-height"!=u&&"responsive"!=u&&"intrinsic"!=u||C().assert(x, "Expected height to be available: %s",t);"fixed-height"==u&&C().assert(!B||"auto"==B,'Expected width to be either absent or equal "auto" for fixed-height layout: %s',q);"fixed"!=u&&"responsive"!=u&&"intrinsic"!=u||C().assert(B&&"auto"!=B,'Expected width to be available and not equal to "auto": %s',q);"responsive"==u||"intrinsic"==u?C().assert(Ye(B)==Ye(x),"Length units should be the same for width and height: %s, %s",q,t):C().assert(null===v,'Unexpected "heights" attribute for none-responsive layout'); this.classList.add("i-amphtml-layout-"+u);Ue(u)&&this.classList.add("i-amphtml-layout-size-defined");if("nodisplay"==u)$e(this);else if("fixed"==u)fe(this,{width:B,height:x});else if("fixed-height"==u)U(this,"height",x);else if("responsive"==u){var ba=this.ownerDocument.createElement("i-amphtml-sizer");fe(ba,{display:"block",paddingTop:Ze(x)/Ze(B)*100+"%"});this.insertBefore(ba,this.firstChild);this.sizerElement=ba}else if("intrinsic"==u){var ga=Ne(this)(Pe),fa=ga.firstElementChild;fa.setAttribute("src", 'data:image/svg+xml;charset=utf-8,');this.insertBefore(ga,this.firstChild);this.sizerElement=fa}else"fill"!=u&&"container"!=u&&("flex-item"==u?(B&&U(this,"width",B),x&&U(this,"height",x)):"fluid"==u&&(this.classList.add("i-amphtml-layout-awaiting-size"),B&&U(this,"width",B),U(this,"height",0)));k=u}this.layout_=k}catch(xa){xe(xa,this)}this.implementation_ instanceof Nh||this.Qf();this.isUpgraded()||(this.classList.add("amp-unresolved"), this.classList.add("i-amphtml-unresolved"),this.$a())}}};b.prototype.Cg=function(){return this.classList.contains("i-amphtml-layout-awaiting-size")};b.prototype.mh=function(){this.classList.remove("i-amphtml-layout-awaiting-size")};b.prototype.attachedCallback=function(){this.connectedCallback()};b.prototype.Qf=function(){var b=this,c=this.implementation_;if(1==this.nb){this.nb=4;var g=a.Date.now(),h=c.upgradeCallback();h?"function"==typeof h.then?h.then(function(a){b.hd(a||c,g)}).catch(function(a){b.nb= 3;w(a)}):this.hd(h,g):this.hd(c,g)}};b.prototype.disconnectedCallback=function(){this.zb||!this.gc||Rc(this)||(this.gc=!1,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.createEvent("Event");c.data=b;c.initEvent(a,!0,!0);this.dispatchEvent(c)};b.prototype.$a=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.idleRenderOutsideViewport=function(){return this.implementation_.idleRenderOutsideViewport()};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=Fe(a,h,c)||W(0,0,0,0),b=k.width*k.height/(a.width*a.height),l=c;c&&(k=He(k,-c.left,-c.top),a=He(a,-c.left,-c.top),l=He(l,-c.left,-c.top));return{time:"undefined"!== typeof performance&&performance.now?performance.now():Date.now()-hg,rootBounds:l,boundingClientRect:a,intersectionRect:k,intersectionRatio:b}};b.prototype.getResourceId=function(){return this.getResources().getResourceForElement(this).getId()};b.prototype.yg=function(){return this.getResources().getResourceForElement(this).getState()};b.prototype.isRelayoutNeeded=function(){return this.implementation_.isRelayoutNeeded()};b.prototype.getImpl=function(){var a=this;return this.whenBuilt().then(function(){return a.implementation_})}; b.prototype.getLayout=function(){return this.layout_};b.prototype.layoutCallback=function(){var a=this;this.isBuilt();this.$a();var b=0==this.fa;this.P.reset("unload");b&&this.P.signal("load-start");this.wf&&this.$e().startLayout();var c=cc(function(){return a.implementation_.layoutCallback()});this.preconnect(!0);this.classList.add("i-amphtml-layout");return c.then(function(){b&&a.P.signal("load-end");a.readyState="complete";a.fa++;a.toggleLoading(!1,{cleanup:!0});a.Bd||(a.implementation_.firstLayoutCompleted(), a.Bd=!0,a.dispatchCustomEvent("amp:load:end"))},function(c){b&&a.P.rejectSignal("load-end",c);a.fa++;a.toggleLoading(!1,{cleanup:!0});throw c;})};b.prototype.isInViewport=function(){return this.ab};b.prototype.viewportCallback=function(a){var b=this;a!=this.ab&&this.ownerDocument&&this.ownerDocument.defaultView&&(this.ab=a,0==this.fa&&(a?R(this.ownerDocument.defaultView).delay(function(){b.ab&&b.ownerDocument&&b.ownerDocument.defaultView&&b.toggleLoading(!0)},100):this.toggleLoading(!1)),this.isBuilt()&& this.Rf(a))};b.prototype.Rf=function(a){this.implementation_.inViewport_=a;this.implementation_.viewportCallback(a);a&&this.wf&&this.$e().enterViewport()};b.prototype.isPaused=function(){return this.Ib};b.prototype.pauseCallback=function(){this.Ib||(this.Ib=!0,this.viewportCallback(!1),this.isBuilt()&&this.implementation_.pauseCallback())};b.prototype.resumeCallback=function(){this.Ib&&(this.Ib=!1,this.isBuilt()&&this.implementation_.resumeCallback())};b.prototype.unlayoutCallback=function(){if(!this.isBuilt())return!1; this.P.signal("unload");var a=this.implementation_.unlayoutCallback();a&&this.Gf();return a};b.prototype.Gf=function(){this.fa=0;this.Bd=!1;this.P.reset("render-start");this.P.reset("load-start");this.P.reset("load-end");this.P.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.enqueAction=function(a){this.isBuilt()?this.We(a,!1):(void 0===this.Ia&&(this.Ia=[]),this.Ia.push(a))};b.prototype.rg=function(){var a=this;if(this.Ia){var b=this.Ia; this.Ia=null;b.forEach(function(b){a.We(b,!0)})}};b.prototype.We=function(a,b){try{this.implementation_.executeAction(a,b)}catch(g){w("Action execution failed:",g,a.node.tagName,a.method)}};b.prototype.xg=function(){var a=this.getAttribute("data-block-on-consent");return null===a?null:""==a||"default"==a?this.implementation_.getConsentPolicy():a};b.prototype.getRealChildNodes=function(){return $c(this,function(a){return!ci(a)})};b.prototype.getRealChildren=function(){return Yc(this,function(a){return!ci(a)})}; b.prototype.toggleLayoutDisplay=function(a){this.classList.toggle("i-amphtml-display",a)};b.prototype.getPlaceholder=function(){return Zc(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 for(var c=dd(this,"> [placeholder]"),b=0;b [fallback]")}; b.prototype.toggleFallback=function(a){var b=this.yg();if(!a||0!=b&&1!=b&&2!=b)if(this.classList.toggle("amp-notsupported",a),1==a){var c=this.getFallback();c&&this.getResources().scheduleLayout(this,c)}};b.prototype.renderStarted=function(){this.P.signal("render-start");this.togglePlaceholder(!1);this.toggleLoading(!1)};b.prototype.jc=function(){if(this.Eg())return!1;void 0===this.Nd&&(this.Nd=this.hasAttribute("noloading"));var a;(a=this.Nd)||(a=this.tagName.toUpperCase(),a=!("AMP-AD"==a||"AMP-EMBED"== a||Se[a]));return a||100>this.layoutWidth_||0 [overflow]"))&&(this.ga.hasAttribute("tabindex")||this.ga.setAttribute("tabindex","0"),this.ga.hasAttribute("role")||this.ga.setAttribute("role","button"));return this.ga};b.prototype.overflowCallback=function(a,b,c){var d=this;this.getOverflowElement();this.ga?(this.ga.classList.toggle("amp-visible",a),this.ga.onclick=a?function(){var a=d.getResources();a.changeSize(d,b,c);a.mutateElement(d,function(){d.overflowCallback(!1,b,c)})}:null):a&&this.warnOnMissingOverflow&& C().warn("CustomElement","Cannot resize element and overflow is not available",this)};b.prototype.rc=function(a){this.o?this.getResources().mutateElement(this,a):a()};a.BaseCustomElementClass=b;return a.BaseCustomElementClass}function ci(a){var b="string"==typeof a?a:a.tagName;return b&&I(b.toLowerCase(),"i-")||a.tagName&&(a.hasAttribute("placeholder")||a.hasAttribute("fallback")||a.hasAttribute("overflow"))?!0:!1};function di(a){a.ampExtendedElements||(a.ampExtendedElements={});return a.ampExtendedElements}function ei(a,b,c){var d=di(a);if(!d[b])fi(a,b,c);else if(d[b]!=c){C().assert(d[b]==Nh,"%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 template")}; function ki(a,b){var c=b.__AMP_IMPL_;if(c)return Promise.resolve(c);var c=C().assert(b.getAttribute("type"),"Type must be specified: %s",b),d=b.__AMP_WAIT_;if(d)return d;d=li(a,c).then(function(c){var d=b.__AMP_IMPL_=new c(b,a.A);delete b.__AMP_WAIT_;return d});return b.__AMP_WAIT_=d}function li(a,b){if(a.lb[b])return a.lb[b];var c=new N,d=c.promise,c=c.resolve;a.lb[b]=d;a.Ic[b]=c;return d}f.unregisterTemplate=function(a){delete this.lb[a];delete this.Ic[a]};var mi=["GET","POST"];function ni(a,b){var c=Object.assign({},b);if(Bg(b.body)){c.headers["Content-Type"]="multipart/form-data;charset=utf-8";b=b.body.entries();for(var d=[],e=b.next();!e.done;e=b.next())d.push(e.value);c.body=d}return{input:a,init:c}} function oi(a,b){C().assert(ma(a),"Object expected: %s",a);var c="document"==b;if("function"===typeof Response&&!c)return new Response(a.body,a.init);var d=G(),e={status:200,statusText:"OK",responseText:a.body?String(a.body):"",getResponseHeader:function(a){return d[String(a).toLowerCase()]||null}};a.init&&(a=a.init,la(a.headers)&&a.headers.forEach(function(a){var b=a[0],c=a[1];d[String(b).toLowerCase()]=String(c)}),a.status&&(e.status=parseInt(a.status,10)),a.statusText&&(e.statusText=String(a.statusText))); c&&(e.responseXML=(new DOMParser).parseFromString(e.responseText,"text/html"));return new pi(e)} function qi(a,b,c,d){if(!b)return Promise.resolve();var e=T(b),g=e.whenFirstVisible();return!jb(c)&&e.hasCapability("xhrInterceptor")&&b.getRootNode().documentElement.hasAttribute("allow-xhr-interception")?g.then(function(){return e.isTrustedViewer()}).then(function(b){var g=r(a).development;if(b||g){var h=H({originalRequest:ni(c,d)});return e.sendMessageAwaitResponse("xhr",h).then(function(a){return oi(a,d.responseType)})}}):g}function ri(a,b,c){!1!==c.ampCors&&(b=pb(a,b));return b} function si(a,b){a=a||{};var c=a.credentials,d;d=a.method;void 0===d?d="GET":(d=d.toUpperCase(),mi.includes(d));a.method=d;a.headers=a.headers||H({});b&&(a.headers.Accept=b);return a} function ti(a,b,c){!1===c.ampCors&&(c.requireAmpResponseSourceOrigin=!1);!0===c.requireAmpResponseSourceOrigin&&E().error("XHR","requireAmpResponseSourceOrigin is deprecated, use ampCors instead");void 0===c.requireAmpResponseSourceOrigin&&(c.requireAmpResponseSourceOrigin=!0);var d=a.origin||K(a.location.href).origin;a=K(b).origin;d==a&&(c.headers=c.headers||{},c.headers["AMP-Same-Origin"]="true");return c}var ui={document:1,text:2}; function vi(a,b){return new Promise(function(c,d){var e=wi(b.method||"GET",a);"include"==b.credentials&&(e.withCredentials=!0);b.responseType in ui&&(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||599b;c.response=a;throw c;})}function pi(a){this.Ha=a;this.status=this.Ha.status;this.ok=200<=this.status&&300>this.status;this.headers=new yi(a);this.bodyUsed=!1;this.body=null}f=pi.prototype;f.clone=function(){return new pi(this.Ha)};function zi(a){a.bodyUsed=!0;return Promise.resolve(a.Ha.responseText)}f.text=function(){return zi(this)};f.json=function(){return zi(this).then(Yd)}; f.document=function(){this.bodyUsed=!0;C().assert(this.Ha.responseXML,"responseXML should exist. Make sure to return Content-Type: text/html header.");return Promise.resolve(this.Ha.responseXML)};f.arrayBuffer=function(){return zi(this).then(af)};function yi(a){this.Ha=a}yi.prototype.get=function(a){return this.Ha.getResponseHeader(a)};yi.prototype.has=function(a){return null!=this.Ha.getResponseHeader(a)};var Ai=[la,ma];function Bi(a){this.win=a;a=nd(a);this.$f=a.isSingleDoc()?a.getAmpDoc():null}f=Bi.prototype;f.wg=function(a,b){var c=this,d=arguments;return qi(this.win,this.$f,a,b).then(function(e){if(e)return e;Bg(b.body)&&(b.body=b.body.getFormData());return"document"==b.responseType?vi(a,b):(c.win.fetch||vi).apply(null,d)})}; function Ci(a,b,c){c=void 0===c?{}:c;b=ri(a.win,b,c);c=ti(a.win,b,c);return a.wg(b,c).then(function(b){var d=a.win,g=c,h=b.headers.get("AMP-Access-Control-Allow-Source-Origin");h?(d=ob(d.location.href),C().assert(h==d,"Returned AMP-Access-Control-Allow-Source-Origin is not equal to the current: "+h+(" vs "+d))):g.requireAmpResponseSourceOrigin&&C().assert(!1,"Response must contain the AMP-Access-Control-Allow-Source-Origin header");return b},function(a){var c=K(b).origin;throw C().createExpectedError("XHR", "Failed fetching"+(" ("+c+"/...):"),a&&a.message);})}f.fetchJson=function(a,b){var c=si(b,"application/json");if("POST"==c.method&&!Bg(c.body)){Ai.some(function(a){return a(c.body)});c.headers["Content-Type"]=c.headers["Content-Type"]||"text/plain;charset=utf-8";var d=c.headers["Content-Type"];c.body="application/x-www-form-urlencoded"===d?$a(c.body):JSON.stringify(c.body)}return this.fetch(a,c)};f.fetchText=function(a,b){return this.fetch(a,si(b,"text/plain"))}; f.fetchDocument=function(a,b){b=si(b,"text/html");b.responseType="document";return this.fetch(a,b).then(function(a){return a.document()})};f.fetch=function(a,b){b=si(b);return Ci(this,a,b).then(function(a){return xi(a)})};f.sendSignal=function(a,b){return Ci(this,a,b).then(function(a){return xi(a)})};f.getCorsUrl=function(a,b){return pb(a,b)};function Di(a){Bi.call(this,a);this.ub=G()}aa(Di,Bi);Di.prototype.fetch=function(a,b){var c=this,d=b&&b.headers&&b.headers.Accept||"",e=!b||!b.method||"GET"===b.method,g=ib(a)+d,h=!!this.ub[g];if(e&&h)return this.ub[g].then(function(a){return a.clone()});var k=Bi.prototype.fetch.call(this,a,b);e&&(this.ub[g]=k.then(function(a){delete c.ub[g];return a.clone()},function(a){delete c.ub[g];throw a;}));return k};function Ei(a){this.D=a;this.h=T(this.D);this.de=null;this.R=R(this.D.win)}Ei.prototype.isSupported=function(){return this.h.isCctEmbedded()&&this.h.isProxyOrigin()};Ei.prototype.getScopedCid=function(a){var b=this;if(!this.h.isCctEmbedded())return Promise.resolve(null);this.de||(this.de=this.tb("https://ampcid.google.com/v1/cache:getClientId?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc"));return this.de.then(function(c){return c?Fi(b,c,a):null})}; Ei.prototype.tb=function(a,b){b=void 0===b?!0:b;var c=this,d=H({publisherOrigin:ob(this.D.win.location)});return this.R.timeoutPromise(3E4,Q(this.D.win,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:d})).then(function(a){return a.json().then(function(a){if(a.optOut)return null;var d=a.publisherClientId;if(!d&&b&&a.alternateUrl){var e=a.alternateUrl+"?key=AIzaSyDKtqGxnoeIqVM33Uf7hRSa3GJxuzR7mLc";return c.tb(e,!1)}return d})}).catch(function(a){a&&a.response?a.response.json().then(function(a){E().error("CacheCidApi", JSON.stringify(a))}):E().error("CacheCidApi",a);return null})};function Fi(a,b,c){b=b+";"+c;return Q(a.D.win,"crypto").sha384Base64(b).then(function(a){return"amp-"+a})};function Gi(a){this.A=a.win;this.R=R(this.A);this.gd={};this.fd=(a=od(a).canonicalUrl)?K(a).origin:null} Gi.prototype.getScopedCid=function(a,b){var c=this;if(this.gd[b])return this.gd[b];var d;return this.gd[b]=this.R.poll(200,function(){d=rb(c.A,"AMP_TOKEN");return"$RETRIEVING"!==d}).then(function(){if("$OPT_OUT"===d)return"$OPT_OUT";var e="$NOT_FOUND"===d&&jb(c.A.document.referrer);if(!e&&d&&"$"===d[0])return null;d&&(!d||"$"!==d[0])||Hi(c,"$RETRIEVING",3E4);return c.tb("https://ampcid.google.com/v1/publisher:getClientId?key="+a,b,d).then(function(e){var g=c.cf(e);if(!g&&e.alternateUrl){var k=e.alternateUrl+ "?key="+a;return c.tb(k,b,d).then(c.cf.bind(c))}return g}).catch(function(a){Hi(c,"$ERROR",3E4);a&&a.response?a.response.json().then(function(a){E().error("GoogleCidApi",JSON.stringify(a))}):E().error("GoogleCidApi",a);return null})})};Gi.prototype.tb=function(a,b,c){b=H({originScope:b,canonicalOrigin:this.fd});c&&(b.securityToken=c);return this.R.timeoutPromise(3E4,Q(this.A,"xhr").fetchJson(a,{method:"POST",ampCors:!1,credentials:"include",mode:"cors",body:b}).then(function(a){return a.json()}))}; Gi.prototype.cf=function(a){if(a.optOut)return Hi(this,"$OPT_OUT",31536E6),"$OPT_OUT";if(a.clientId)return Hi(this,a.securityToken,31536E6),a.clientId;if(a.alternateUrl)return null;Hi(this,"$NOT_FOUND",36E5);return null};function Hi(a,b,c){b&&sb(a.A,"AMP_TOKEN",b,a.A.Date.now()+c,{highestAvailableDomain:!0})};function Ii(a){this.D=a;this.h=T(this.D);this.fd=(a=od(this.D).canonicalUrl)?K(a).origin:null}Ii.prototype.isSupported=function(){return this.h.hasCapability("cid")?this.h.isTrustedViewer():Promise.resolve(!1)};Ii.prototype.getScopedCid=function(a,b){b=H({scope:b,clientIdApi:!!a,canonicalOrigin:this.fd});a&&(b.apiKey=a);return this.h.sendMessageAwaitResponse("cid",b)};var Ji=/^[a-zA-Z0-9-_.]+$/,Ki={googleanalytics:"AMP_ECID_GOOGLE"},Li={googleanalytics:"AIzaSyA65lEHUEizIsNtlbNo-l2K18dT680nsaM"};function Mi(a){this.ampdoc=a;this.Vc=null;this.jd=Object.create(null);this.Ne=new Ei(a);this.Wf=new Ii(a);this.og=new Gi(a);this.Uc=null} Mi.prototype.get=function(a,b,c){var d=this;C().assert(Ji.test(a.scope)&&Ji.test(a.cookieName),"The CID scope and cookie name must only use the characters [a-zA-Z0-9-_.]+\nInstead found: %s",a.scope);return b.then(function(){return T(d.ampdoc).whenFirstVisible()}).then(function(){return Ni(d.ampdoc)}).then(function(e){if(e)return"";var g=Oi(d,a,c||b);return R(d.ampdoc.win).timeoutPromise(1E4,g,'Getting cid for "'+a.scope+'" timed out').catch(function(a){w(a)})})};Mi.prototype.optOut=function(){return Pi(this.ampdoc)}; function Oi(a,b,c){var d=b.scope,e=K(a.ampdoc.win.location.href);if(!jb(e)){var g=Qi(a,d);return g?a.og.getScopedCid(g,d).then(function(e){return"$OPT_OUT"==e?null:e?(Ri(a.ampdoc.win,b.cookieName||d,e),e):Si(a,b,c)}):Si(a,b,c)}return a.Wf.isSupported().then(function(b){if(b){var g=Qi(a,d);return a.Wf.getScopedCid(g,d)}return a.Ne.isSupported()&&Qi(a,d)?a.Ne.getScopedCid(d).then(function(b){return b?b:Ti(a,c,d,e)}):Ti(a,c,d,e)})} function Ti(a,b,c,d){return Ui(a,b).then(function(b){return Q(a.ampdoc.win,"crypto").sha384Base64(b+Vi(d)+c)})}function Qi(a,b){a.Uc||(a.Uc=Wi(a));return a.Uc[b]} function Wi(a){var b={},c=a.ampdoc.win.document.head.querySelector("meta[name=amp-google-client-id-api]");c&&c.hasAttribute("content")&&c.getAttribute("content").split(",").forEach(function(a){a=a.trim();if(0c.message.indexOf("secure origin")&&E().error("Crypto","SubtleCrypto failed, fallback to closure lib.",c);return dj(b).then(function(){return b.sha384(a)})})}catch(c){return E().error("Crypto","SubtleCrypto failed, fallback to closure lib.", c),dj(this).then(function(){return b.sha384(a)})}};f.sha384Base64=function(a){return this.sha384(a).then(function(a){return ef(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 dj(a){return a.Kb?a.Kb:a.Kb=pd(a.A).preloadExtension("amp-crypto-polyfill").then(function(){return Q(a.A,"crypto-polyfill")})}f.isPkcsAvailable=function(){return!!this.subtle&&!1!==this.A.isSecureContext}; f.importPkcsKey=function(a){this.isPkcsAvailable();var b=this.Hg?af(JSON.stringify(a)):a;return this.subtle.importKey("jwk",b,this.pkcsAlgo,!0,["verify"])};f.verifyPkcs=function(a,b,c){this.isPkcsAvailable();return this.subtle.verify(this.pkcsAlgo,a,b,c)};var ej=["prefetch","preload","preconnect","dns-prefetch"];function fj(a){this.D=a;this.ud=null} fj.prototype.get=function(){if(this.ud)return this.ud;var a=this.D,b=a.getUrl(),c=nb(b),d=a.getRootNode(),b=d&&d.AMP&&d.AMP.canonicalUrl;if(!b)var e=d.querySelector("link[rel=canonical]"),b=e?K(e.href).href:c;var g=String(Math.floor(1E4*a.win.Math.random())),h=gj(a.win.document),k=hj(a.win.document),d=ij(a);return this.ud={get sourceUrl(){return nb(a.getUrl())},canonicalUrl:b,pageViewId:g,linkRels:h,metaTags:k,replaceParams:d}}; function gj(a){var b=G();if(a.head){var c=a.head.querySelectorAll("link[rel]");a={};for(var d=0;d")?(b.preventDefault(),!0):!1:!1} function oj(a,b,c,d){var e="",g=dc(a.pa,"url",!0).parse(e),h=""+d.origin+d.pathname+d.search,k=""+g.origin+g.pathname+g.search;if(d.hash&&h==k){if(b.preventDefault(),!a.Ad){var l=d.hash.slice(1),n=null;if(l)var m=String(l).replace(Lc,Mc),n=a.pa.getElementById(l)||a.pa.querySelector('a[name="'+m+'"]');d.hash!=g.hash?a.N.replaceStateForTarget(d.hash).then(function(){pj(a,n,l)}):pj(a,n,l)}}else if(a.Ad||a.Fg){var q=(c.getAttribute("target")||"").toLowerCase();"_top"!=q&&"_blank"!=q&&c.setAttribute("target", "_blank")}}function pj(a,b,c){b?(a.G.scrollIntoView(b),R(a.ampdoc.win).delay(function(){return a.G.scrollIntoView(b)},1)):E().warn("navigation","failed to find element with id="+c+" or a[name="+c+"]")};function qj(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=a.B?Promise.resolve():a.j.pop(a.B).then(function(b){a.aa(b)})},"goBack")};f.replaceStateForTarget=function(a){var b=this,c=this.D.win.location.hash;return this.push(function(){b.D.win.location.replace(c||"#")}).then(function(){b.j.replaceStateForTarget(a)})}; f.getFragment=function(){return this.j.getFragment()};f.updateFragment=function(a){"#"==a[0]&&(a=a.substr(1));return this.j.updateFragment(a)};f.aa=function(a){this.B=a.stackIndex;tj(this,a)};function tj(a,b){if(!(a.B>=a.Ra.length-1)){for(var c=[],d=a.Ra.length-1;d>a.B;d--)a.Ra[d]&&(c.push(a.Ra[d]),a.Ra[d]=void 0);a.Ra.splice(a.B+1);if(0b.win.history.length-2&&(d=b.win.history.length-2,b.za(yj(a,{stackIndex:d})));d=void 0==c?d+ 1:c=b)return Promise.resolve(a.B);a.mb=wj(a,a.B-b);var c=Qj(a);a.win.history.go(-b);return c.then(function(){return Promise.resolve(a.B)})}f.df=function(a,b,c){a||(a={});var d=this.B+1;a["AMP.History"]=d;this.ah(a,b,c);d!=this.win.history.length-1&&(d=this.win.history.length-1,a["AMP.History"]=d,this.Cc(a));this.za(yj(a,{stackIndex:d}))}; f.replaceStateForTarget=function(a){var b=this;Oj(this,function(){b.win.removeEventListener("popstate",b.Ac);try{b.win.location.replace(a)}finally{b.win.addEventListener("popstate",b.Ac)}b.qd();return Promise.resolve()})};f.qd=function(a,b,c){a||(a={});var d=Math.min(this.B,this.win.history.length-1);a["AMP.History"]=d;this.Cc(a,b,c);this.za(yj(a,{stackIndex:d}))};f.za=function(a){a.stackIndex=Math.min(a.stackIndex,this.win.history.length-1);this.B!=a.stackIndex&&(this.B=a.stackIndex,this.aa&&this.aa(a))}; f.getFragment=function(){var a=this.win.location.hash,a=a.substr(1);return Promise.resolve(a)};f.updateFragment=function(a){return this.replace({fragment:a})};function yj(a,b){var c=Object.assign({},a&&a.data||{},b&&b.data||{});return Object.assign({},a,b,{data:c})}function Rj(a,b){this.win=a;this.h=b;this.B=0;this.aa=null;this.uh=this.h.onMessage("historyPopped",this.Rg.bind(this))}f=Rj.prototype;f.replaceStateForTarget=function(a){this.win.location.replace(a)};f.cleanup=function(){this.uh()}; f.setOnStateUpdated=function(a){this.aa=a};f.push=function(a){var b=this,c=Object.assign({stackIndex:this.B+1},a||{});return this.h.sendMessageAwaitResponse("pushHistory",c).then(function(a){a=a||c;b.za(a);return a})};f.pop=function(a){var b=this;if(a>this.B)return this.get();a=H({stackIndex:this.B});return this.h.sendMessageAwaitResponse("popHistory",a).then(function(a){a=a||H({stackIndex:b.B-1});b.za(a);return a})}; f.replace=function(a){var b=this,c=Object.assign({stackIndex:this.B},a||{});return this.h.sendMessageAwaitResponse("replaceHistory",c,!0).then(function(a){a=a||c;b.za(a);return a})};f.get=function(){return this.h.sendMessageAwaitResponse("getHistory",void 0,!0).then(function(a){return{fragment:a.fragment,stackIndex:a.stackIndex,data:a.data,title:a.title}})};f.Rg=function(a){this.za(a)};f.za=function(a){this.B!=a.stackIndex&&(this.B=a.stackIndex,this.aa&&this.aa(a))}; f.getFragment=function(){return this.h.hasCapability("fragment")?this.h.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.h.hasCapability("fragment")?this.h.sendMessageAwaitResponse("replaceHistory",H({fragment:a}),!0):Promise.resolve()}; function Sj(a){var b=T(a);b.isOvertakeHistory()||a.win.AMP_TEST_IFRAME?b=new Rj(a.win,b):(O(a.win,"global-history-binding",vj),b=Q(a.win,"global-history-binding"));return new rj(a,b)};function Tj(a){this.win=a;this.eg=this.Sg.bind(this);this.fg=this.Tg.bind(this);this.Zc=this.Fe=this.$c=null;this.od="ontouchstart"in a||void 0!==a.navigator.maxTouchPoints&&0=this.sf&&zd(this.win.document,"mousemove",this.$c)};function Uj(a){this.U=a.navigator}f=Uj.prototype;f.isAndroid=function(){return/Android/i.test(this.U.userAgent)};f.isIos=function(){return/iPhone|iPad|iPod/i.test(this.U.userAgent)};f.isSafari=function(){return/Safari/i.test(this.U.userAgent)&&!this.isChrome()&&!this.isIe()&&!this.isEdge()&&!this.isFirefox()&&!this.isOpera()};f.isChrome=function(){return/Chrome|CriOS/i.test(this.U.userAgent)&&!this.isEdge()&&!this.isOpera()};f.isFirefox=function(){return/Firefox|FxiOS/i.test(this.U.userAgent)&&!this.isEdge()}; f.isOpera=function(){return/OPR\/|Opera|OPiOS/i.test(this.U.userAgent)};f.isIe=function(){return/Trident|MSIE|IEMobile/i.test(this.U.userAgent)};f.isEdge=function(){return/Edge/i.test(this.U.userAgent)};f.isWebKit=function(){return/WebKit/i.test(this.U.userAgent)&&!this.isEdge()};f.isStandalone=function(){return this.isIos()&&this.U.standalone};f.isBot=function(){return/bot/i.test(this.U.userAgent)}; f.getMajorVersion=function(){return this.isSafari()?this.isIos()?this.getIosMajorVersion()||0:Vj(this,/\sVersion\/(\d+)/,1):this.isChrome()?Vj(this,/(Chrome|CriOS)\/(\d+)/,2):this.isFirefox()?Vj(this,/(Firefox|FxiOS)\/(\d+)/,2):this.isOpera()?Vj(this,/(OPR|Opera|OPiOS)\/(\d+)/,2):this.isIe()?Vj(this,/MSIE\s(\d+)/,1):this.isEdge()?Vj(this,/Edge\/(\d+)/,1):0};function Vj(a,b,c){if(!a.U.userAgent)return 0;a=a.U.userAgent.match(b);return!a||c>=a.length?0:parseInt(a[c],10)} f.getIosVersionString=function(){if(!this.U.userAgent||!this.isIos())return"";var a=this.U.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 Wj(a){this.F=a;this.Pf=Object.create(null)}Wj.prototype.addTransition=function(a,b,c){var d=a+"|"+b;this.Pf[d]=c};Wj.prototype.setState=function(a){var b=this.F;this.F=a;(a=this.Pf[b+"|"+a])&&a()};function Xj(a,b){var c=this;this.win=a;this.$g=b;this.N=[];this.uf=new Y;this.Pe=function(a){a.target&&1==a.target.nodeType&&Yj(c,a.target)};this.Oe=function(){R(a).delay(function(){Yj(c,c.win.document.activeElement)},500)};this.win.document.addEventListener("focus",this.Pe,!0);this.win.addEventListener("blur",this.Oe)}f=Xj.prototype;f.Ch=function(){this.win.document.removeEventListener("focus",this.Pe,!0);this.win.removeEventListener("blur",this.Oe)};f.onFocus=function(a){return this.uf.add(a)}; function Yj(a,b){var c=Date.now();0==a.N.length||a.N[a.N.length-1].el!=b?a.N.push({el:b,time:c}):a.N[a.N.length-1].time=c;a.purgeBefore(c-a.$g);a.uf.fire(b)}f.getLast=function(){return 0==this.N.length?null:this.N[this.N.length-1].el};f.purgeBefore=function(a){for(var b=this.N.length-1,c=0;c=a){b=c-1;break}-1!=b&&this.N.splice(0,b+1)}; f.hasDescendantsOf=function(a){this.win.document.activeElement&&Yj(this,this.win.document.activeElement);for(var b=0;bc)a.clearInterval(e),b(),h||E().error("ie-media-bug","IE media never resolved")},10)})}function bk(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 E().error("ie-media-bug","IE matchMedia failed: ",c),!0}};function ck(a){var b=this;this.ampdoc=a;this.win=a.win;this.h=T(a);this.na=this.h.isRuntimeOn();this.Dg=!1;this.pf=this.win.devicePixelRatio||1;this.hh=0;this.o=[];this.jg=this.we=0;this.la=this.h.isVisible();this.Fa=this.h.getPrerenderSize();this.rb=!1;this.Ye=!0;this.xe=!1;this.Da=-1;this.kb=!0;this.Mb=-1;this.Kd=this.lc=0;this.yc=new og(this.win,function(){return b.doPass()});this.Ff=new og(this.win,function(){b.kb=!0;b.schedulePass()});this.ua=new Zj;this.C=new Zj;this.H=L(this.win,"layers"); var c;this.Ge=c=this.H?this.lg.bind(this):this.mg.bind(this);this.ia=[];this.wa=[];this.zd=!1;this.G=ud(this.ampdoc);this.w=td(this.win);this.ue=new Xj(this.win,6E4);this.te=!1;this.Zb=0;this.fb=!1;this.Yf=new Wj(this.h.getVisibilityState());dk(this,this.Yf);this.G.onChanged(function(a){b.lc=Date.now();b.Kd=a.velocity;a.relayoutAll&&(b.kb=!0,b.fb=!0);b.schedulePass()});this.G.onScroll(function(){b.lc=Date.now()});this.H&&(this.cb=a=oc(this.ampdoc,"layers"),a.onScroll(function(){b.schedulePass()}), this.dg=this.kg.bind(this));this.h.onVisibilityChanged(function(){-1==b.Da&&b.h.isVisible()&&(b.Da=Date.now());b.schedulePass()});this.h.onRuntimeState(function(a){b.na=a;b.schedulePass(1)});this.ue.onFocus(function(a){ek(b,a)});this.schedulePass();this.rebuildDomWhenReady()}f=ck.prototype; f.rebuildDomWhenReady=function(){var a=this;this.ampdoc.whenReady().then(function(){function b(){return a.Ff.schedule()}a.rb=!0;fk(a);a.wa=null;var c=ak(a.win);c?c.then(b):b();gk(a);Promise.race([Pd(a.win),R(a.win).promise(3100)]).then(b);a.win.document.fonts&&"loaded"!=a.win.document.fonts.status&&a.win.document.fonts.ready.then(b)})};f.get=function(){return this.o.slice(0)};f.isRuntimeOn=function(){return this.na};f.renderStarted=function(){this.ampdoc.signals().signal("render-start")}; f.getMeasuredResources=function(a,b){var c=this;return this.ampdoc.signals().whenSignal("ready-scan").then(function(){var b=[];c.o.forEach(function(d){d.hasBeenMeasured()||d.hostWin!=a||d.hasOwner()||b.push(hk(c,d))});return Promise.all(b)}).then(function(){return c.o.filter(function(c){return c.hostWin==a&&!c.hasOwner()&&c.hasBeenMeasured()&&b(c)})})}; f.getResourcesInRect=function(a,b,c){return this.getMeasuredResources(a,function(a){return!a.isDisplayed()||!a.overlaps(b)&&!a.isFixed()||c&&!a.prerenderAllowed()?!1:!0})};function gk(a){var b=Q(a.win,"input");b.onTouchDetected(function(b){ik(a,"amp-mode-touch",b)},!0);b.onMouseDetected(function(b){ik(a,"amp-mode-mouse",b)},!0);b.onKeyboardStateChanged(function(b){ik(a,"amp-mode-keyboard-active",b)},!0)} function ik(a,b,c){a.ampdoc.whenBodyAvailable().then(function(d){a.w.mutate(function(){d.classList.toggle(b,c)})})}f.getMaxDpr=function(){return this.pf};f.getDpr=function(){return this.pf};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?hk(this,c):this.w.measurePromise(function(){return b.getViewport().getLayoutRect(a)})}; function hk(a,b){return b.hasBeenMeasured()?cc(function(){return b.getPageLayoutBox()}):a.w.measurePromise(function(){b.measure();return b.getPageLayoutBox()})}f.getViewport=function(){return this.G};f.getScrollDirection=function(){return Math.sign(this.Kd)||1};f.add=function(a){this.we++;1==this.we&&this.G.ensureReadyForElements();var b=Z(a);b&&0!=b.getState()&&!a.reconstructWhenReparented()?b.requestMeasure():b=new Rh(++this.hh,a,this);this.o.push(b);this.Ff.schedule(1E3)}; f.grantBuildPermission=function(){return 20>this.jg++||this.h.hasBeenVisible()};function jk(a,b,c){var d;c=void 0===c?!1:c;d=void 0===d?!0:d;var e=a.na||a.Dg,g="prerender"!=a.h.getVisibilityState()||b.prerenderAllowed();e&&g&&(a.rb?kk(a,b,d):b.isBuilt()||b.isBuilding()||c&&a.wa.includes(b)||(a.wa.push(b),fk(a,d)))} function fk(a,b){if(!a.zd)try{a.zd=!0;b=void 0===b?!0:b;b=void 0===b?!0:b;for(var c=0;cMath.abs(a.Kd)&&500=c.bottom-e||0==y&&t.bottom+Math.min(J,0)>=c.bottom-e)S=!0;else if(1J&&c.top+n<-J)continue;g?(n+=J,l.push(m)):a.ia.push(m);continue}else yk(a,q,t)?S=!0:0>J||0>y||0>v||m.resource.overflowCallback(!0,m.newHeight,m.newWidth,u);S&&(0<=t.top&&(k=-1==k?t.top: Math.min(k,t.top)),m.resource.changeSize(m.newHeight,m.newWidth,u),m.resource.overflowCallback(!1,m.newHeight,m.newWidth,u),a.fb=!0);m.callback&&m.callback(S)}-1!=k&&wk(a,k);0=a||h.bottom>=a}function wk(a,b){a.H?a.kb=!0:a.Mb=-1==a.Mb?b:Math.min(b,a.Mb)} function ek(a,b){var c=Tc(b,function(a){return!!Z(a)});if(c){b=Z(c);var d=b.getPendingChangeSize();void 0!==d&&tk(a,b,d.height,d.width,d.margins,!0)}} function zk(a){var b=Date.now(),c=a.kb;a.kb=!1;var d=a.Mb;a.Mb=-1;for(var e=0,g=0,h=0;h=d){var n=k.isDisplayed();k.measure(); n&&!k.isDisplayed()&&(l||(l=[]),l.push(k))}l&&a.w.mutate(function(){l.forEach(function(b){b.unload();mk(a,b)})});var d=a.G.getRect(),m;m=a.la?Ge(d,.25,2):0a.ua.getLastDequeueTime()+ 5E3){for(var y=0,b=0;by;b++)d=a.o[b],2==d.getState()&&!d.hasOwner()&&d.isDisplayed()&&d.idleRenderOutsideViewport()&&(ok(a,d,!1),y++);for(b=0;by;b++)d=a.o[b],2==d.getState()&&!d.hasOwner()&&d.isDisplayed()&&(ok(a,d,!1),y++)}}f.mg=function(a){var b=this.G.getRect(),c=a.resource.getLayoutBox(),d=Math.floor((c.top-b.top)/b.height);Math.sign(d)!=this.getScrollDirection()&&(d*=2);d=Math.abs(d);return 10*a.priority+d}; f.lg=function(a,b){var c=this.cb.iterateAncestry(a.resource.element,this.dg,b);return 10*a.priority+c};f.kg=function(a,b,c,d){var e=b.getId();if(Ea.call(d,e))return d[e];a=a||0;c=1+c/10;var g=b.isActiveUnsafe()?1:2;b=b.getHorizontalDistanceFromParent()+b.getVerticalDistanceFromParent();return d[e]=a+g*c*b}; function Ak(a,b){var c=Date.now();if(0==a.ua.getSize()){if(-1===a.Da)return 0;var d=1E3*b.priority;return Math.max(d-(c-a.Da),0)}var e=0;a.ua.forEach(function(a){e=Math.max(e,Math.max(1E3*(b.priority-a.priority),0)-(c-a.startTime))});return e}f.eh=function(a){this.C.getTaskById(a.id)||this.C.enqueue(a)};f.Lf=function(a,b,c){this.ua.dequeue(a);this.schedulePass(1E3);if(!b)return E().info("Resources","task failed:",a.id,a.resource.debugid,c),Promise.reject(c)}; function tk(a,b,c,d,e,g,h){b.hasBeenMeasured()&&!e?Bk(a,b,c,d,void 0,g,h):a.w.measure(function(){b.hasBeenMeasured()||b.measure();var k;e?(k=he(a.win,b.element),k={newMargins:e,currentMargins:{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=void 0;var l=k;Bk(a,b,c,d,l,g,h)})} function Bk(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;lthis.Og){var c=Infinity,d=null;for(a=0;a=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&&8>h;h++)gc;c++)if(isNaN(b[c]))return null;return Sk(b[0],b[1],b[2],b[3])}return null}return Yk[a]}return a};function $k(){}function al(a,b){this.pb=a;this.w=b||td(self);this.Re=null;this.Y=[]}function bl(a,b,c,d){return(new al(a)).setCurve(d).add(0,b,1).start(c)}al.prototype.setCurve=function(a){a&&(this.Re=Zk(a));return this};al.prototype.add=function(a,b,c,d){this.Y.push({delay:a,func:b,duration:c,curve:Zk(d)});return this};al.prototype.start=function(a){var b=new cl(this.w,this.pb,this.Y,this.Re,a);return b}; function cl(a,b,c,d,e){this.w=a;this.pb=b;this.Y=[];for(b=0;b=d.delay&&(d.started=!0)}for(c=0;cq&&(!!n&&0==parseInt(n,10)||!!A&&0==parseInt(A,10)));J&&(b=!0);c[k.id]={fixed:B,sticky:x,transferrable:J,top:n,zIndex:D, transform:y}}else c[k.id]={fixed:!1,sticky:!1,transferrable:!1,top:"",zIndex:""}}},mutate:function(c){b&&a.Ga&&il(a).update();for(var d=a.W,e=0;e\n
\n \n
\n '];zl.raw=['\n
\n
\n \n
\n
'];var Al="align-content align-items align-self alignment-baseline backface-visibility box-sizing column-count column-fill column-gap column-rule column-span column-width columns display flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap gap grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-gap grid-row grid-template justify-content justify-items justify-self margin order padding perspective perspective-origin place-content place-items place-self table-layout".split(" "); function Bl(a){var b=this;this.win=a;this.w=td(a);a=this.win.document;a.documentElement.classList.add("i-amphtml-ios-embed-sd");var c=Ne(a)(zl);this.S=c;this.M=c.firstElementChild;de(this.S,{"overflow-x":"hidden","overflow-y":"auto",position:"absolute",top:"0",left:"0",right:"0",bottom:"0",margin:"0",width:"100%","box-sizing":"border-box",display:"block","padding-top":"0px","border-top":"1px solid transparent"});de(this.M,{overflow:"visible",position:"relative"});this.ka=new Y;this.ja=new Y;this.Ca= this.Eb.bind(this);this.Ba=this.Vg.bind(this);this.H=L(this.win,"layers");this.K=0;this.Qb=this.Xc=!1;Oc(a,this.Rb.bind(this));lf(a).then(function(){b.S.classList.add("i-amphtml-ios-overscroll");de(b.S,{"-webkit-overflow-scrolling":"touch"})})}f=Bl.prototype;f.ensureReadyForElements=function(){this.Rb()}; f.Rb=function(){if(!this.Qb){this.Qb=!0;var a=this.win.document.body;a.attachShadow({mode:"open"}).appendChild(this.S);this.oe();if(this.win.MutationObserver){var b=new this.win.MutationObserver(this.oe.bind(this));b.observe(a,{attributes:!0})}this.Eb()}};f.oe=function(){var a=this;if(!this.Xc){var b=this.win.document.body;if(b){var c={};this.Xc=!0;this.w.run({measure:function(){var d=he(a.win,b);Al.forEach(function(a){c[a]=d[a]||""})},mutate:function(){a.Xc=!1;de(a.M,c)}})}}}; f.Vg=function(){this.ja.fire();this.oe()};f.connect=function(){this.win.addEventListener("resize",this.Ba);this.S.addEventListener("scroll",this.Ca)};f.disconnect=function(){this.win.removeEventListener("resize",this.Ba);this.S.removeEventListener("scroll",this.Ca)};f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!0};f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.ka.add(a)};f.onResize=function(a){this.ja.add(a)}; f.updatePaddingTop=function(a){this.K=a;de(this.S,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){de(this.S,{"overflow-y":"hidden"})};f.resetScroll=function(){de(this.S,{"overflow-y":"auto"})};f.updateLightboxMode=function(){return Promise.resolve()};f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return this.S.scrollTop}; f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.S.scrollWidth};f.getScrollHeight=function(){return this.S.scrollHeight};f.getContentHeight=function(){return this.M.scrollHeight+this.K+this.getBorderTop()};f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.H)return W(a.left,a.top,a.width,a.height);c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();return W(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))}; f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.S.scrollTop=a||1};f.Eb=function(a){0==this.S.scrollTop&&(this.S.scrollTop=1,a&&a.preventDefault());a&&this.ka.fire()};f.getScrollingElement=function(){return this.S};function Cl(a){var b=this;this.win=a;a=this.win.document;var c=a.documentElement,d=c.className;c.className="i-amphtml-ios-embed";var e=a.createElement("html");this.M=e;e.id="i-amphtml-wrapper";e.className=d;this.ka=new Y;this.ja=new Y;this.Ca=this.Eb.bind(this);this.Ba=function(){return b.ja.fire()};this.H=L(this.win,"layers");this.Qb=!1;Oc(a,this.Rb.bind(this));lf(a).then(function(){c.classList.add("i-amphtml-ios-overscroll")})}f=Cl.prototype;f.ensureReadyForElements=function(){this.Rb()}; f.Rb=function(){if(!this.Qb){this.Qb=!0;var a=this.win.document,b=a.body;a.documentElement.appendChild(this.M);this.M.appendChild(b);Object.defineProperty(a,"body",{get:function(){return b}});this.Eb()}};f.connect=function(){this.win.addEventListener("resize",this.Ba);this.M.addEventListener("scroll",this.Ca)};f.disconnect=function(){this.win.removeEventListener("resize",this.Ba);this.M.removeEventListener("scroll",this.Ca)};f.getBorderTop=function(){return 1};f.requiresFixedLayerTransfer=function(){return!0}; f.supportsPositionFixed=function(){return!0};f.onScroll=function(a){this.ka.add(a)};f.onResize=function(a){this.ja.add(a)};f.updatePaddingTop=function(a){de(this.M,{"padding-top":a+"px"})};f.hideViewerHeader=function(a){a||this.updatePaddingTop(0)};f.showViewerHeader=function(a,b){a||this.updatePaddingTop(b)};f.disableScroll=function(){this.M.classList.add("i-amphtml-scroll-disabled")};f.resetScroll=function(){this.M.classList.remove("i-amphtml-scroll-disabled")};f.updateLightboxMode=function(){return Promise.resolve()}; f.getSize=function(){return{width:this.win.innerWidth,height:this.win.innerHeight}};f.getScrollTop=function(){return this.M.scrollTop};f.getScrollLeft=function(){return 0};f.getScrollWidth=function(){return this.M.scrollWidth};f.getScrollHeight=function(){return this.M.scrollHeight};f.getContentHeight=function(){var a=this.win.document.body.getBoundingClientRect();return a.height+a.top+this.getScrollTop()}; f.getLayoutRect=function(a,b,c){a=a.getBoundingClientRect();if(this.H)return W(a.left,a.top,a.width,a.height);c=void 0!=c?c:this.getScrollTop();b=void 0!=b?b:this.getScrollLeft();return W(Math.round(a.left+b),Math.round(a.top+c),Math.round(a.width),Math.round(a.height))};f.getRootClientRectAsync=function(){return Promise.resolve(null)};f.setScrollTop=function(a){this.M.scrollTop=a||1};f.Eb=function(a){0==this.M.scrollTop&&(this.M.scrollTop=1,a&&a.preventDefault());a&&this.ka.fire()}; f.getScrollingElement=function(){return this.M};function Dl(a,b,c){var d=this;this.ampdoc=a;this.La=this.ampdoc.win.document;this.j=b;this.h=c;this.ra=this.T=this.Lb=null;this.fe=!1;this.Qa=null;this.K=Number(c.getParam("paddingTop")||0);this.kc=0;this.R=R(this.ampdoc.win);this.w=td(this.ampdoc.win);this.ge=!1;this.Jf=0;this.Qe=new Y;this.ka=new Y;this.ja=new Y;this.Zd=this.Ub=void 0;(this.H=L(this.ampdoc.win,"layers"))&&xl(this.ampdoc,this.j.getScrollingElement());this.ea=new dl(this.ampdoc,this.w,this.j.getBorderTop(),this.K,this.j.requiresFixedLayerTransfer()); this.ampdoc.whenReady().then(function(){return d.ea.setup()});this.h.onMessage("viewport",this.vh.bind(this));this.h.onMessage("scroll",this.yh.bind(this));this.h.onMessage("disableScroll",this.sg.bind(this));this.j.updatePaddingTop(this.K);this.j.onScroll(this.jh.bind(this));this.j.onResize(this.Hf.bind(this));this.onScroll(this.lh.bind(this));this.la=!1;this.h.onVisibilityChanged(this.Sf.bind(this));this.Sf();this.ampdoc.isSingleDoc()&&this.La.documentElement.classList.add("i-amphtml-singledoc"); c.isEmbedded()?this.La.documentElement.classList.add("i-amphtml-embedded"):this.La.documentElement.classList.add("i-amphtml-standalone");fd(this.ampdoc.win)&&this.La.documentElement.classList.add("i-amphtml-iframed");"1"===c.getParam("webview")&&this.La.documentElement.classList.add("i-amphtml-webview");fd(this.ampdoc.win)&&"scrollRestoration"in this.ampdoc.win.history&&(this.ampdoc.win.history.scrollRestoration="manual")}f=Dl.prototype;f.dispose=function(){this.j.disconnect()}; f.ensureReadyForElements=function(){this.j.ensureReadyForElements()};f.Sf=function(){var a=this.h.isVisible();a!=this.la&&((this.la=a)?(this.j.connect(),this.T&&this.Hf()):this.j.disconnect())};f.getPaddingTop=function(){return this.K};f.getTop=function(){return this.getScrollTop()};f.getScrollTop=function(){null==this.ra&&(this.ra=this.j.getScrollTop());return this.ra};f.getScrollLeft=function(){null==this.Qa&&(this.Qa=this.j.getScrollLeft());return this.Qa}; f.setScrollTop=function(a){this.ra=null;this.j.setScrollTop(a)};f.updatePaddingBottom=function(a){this.ampdoc.whenBodyAvailable().then(function(b){U(b,"borderBottom",a+"px solid transparent")})};f.getSize=function(){if(this.T)return this.T;this.T=this.j.getSize();if(0==this.T.width||0==this.T.height){var a=this.h.getVisibilityState();("prerender"==a||"visible"==a)&&.01>Math.random()&&E().error("Viewport","viewport has zero dimensions")}return this.T};f.getHeight=function(){return this.getSize().height}; f.getWidth=function(){return this.getSize().width};f.getScrollWidth=function(){return this.j.getScrollWidth()};f.getScrollHeight=function(){return this.j.getScrollHeight()};f.getContentHeight=function(){return this.j.getContentHeight()};f.getRect=function(){if(null==this.Lb){var a=0,b=0;this.H||(a=this.getScrollTop(),b=this.getScrollLeft());var 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=Ic(a,this.ampdoc.win);return d?(a=this.j.getLayoutRect(a,0,0),b=this.j.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.j.getLayoutRect(a,b,c)}; f.getClientRectAsync=function(a){var b=this;if(this.H)return this.w.measurePromise(function(){return b.getLayoutRect(a)});var c=this.w.measurePromise(function(){return a.getBoundingClientRect()}),d=this.j.getRootClientRectAsync(),e=Ic(a,this.ampdoc.win);e&&(d=this.w.measurePromise(function(){return e.getBoundingClientRect()}));return Promise.all([c,d]).then(function(a){var b=a[0];return(a=a[1])?He(b,a.left,a.top):W(Number(b.left),Number(b.top),Number(b.width),Number(b.height))})}; f.supportsPositionFixed=function(){return this.j.supportsPositionFixed()};f.isDeclaredFixed=function(a){return this.ea.isDeclaredFixed(a)};f.scrollIntoView=function(a){var b=this;return El(this,a).then(function(c){return Fl(b,a,c)})};function Fl(a,b,c){var d=a.j.getLayoutRect(b).top,e=a.H?Gl(a,c).then(function(a){return d+a}):cc(function(){return Math.max(0,d-a.K)});e.then(function(b){return Hl(a,c,b)})} f.animateScrollIntoView=function(a,b,c,d){b=void 0===b?500:b;c=void 0===c?"ease-in":c;d=void 0===d?"top":d;var e=this;return El(this,a).then(function(g){return Il(e,a,g,b,c,d)})}; function Il(a,b,c,d,e,g){b=a.j.getLayoutRect(b);var h=(c==a.j.getScrollingElement()?a.getSize():a.getLayoutRect(c)).height;switch(g){case "bottom":g=-h+b.height;break;case "center":g=-h/2+b.height/2;break;default:g=0}var k,l;if(a.H)k=b.top+g,l=Promise.resolve(0);else{var n=b.top-a.K+g;k=Math.max(0,n);l=Gl(a,c)}return l.then(function(b){if(k!=b)return Jl(a,c,b,k,d,e)})}function Jl(a,b,c,d,e,g){var h=yl(c,d);return bl(b,function(c){Hl(a,b,h(c))},e,g).thenAlways(function(){Hl(a,b,d)})} function El(a,b){return a.w.measurePromise(function(){return Wc(b)||a.j.getScrollingElement()})}function Hl(a,b,c){b==a.j.getScrollingElement()?a.j.setScrollTop(c):a.w.mutate(function(){b.scrollTop=c})}function Gl(a,b){return b==a.j.getScrollingElement()?cc(function(){return a.getScrollTop()}):a.w.measurePromise(function(){return b.scrollTop})}f.onChanged=function(a){return this.Qe.add(a)};f.onScroll=function(a){return this.ka.add(a)};f.onResize=function(a){return this.ja.add(a)}; f.enterLightboxMode=function(a){this.h.sendMessage("requestFullOverlay",{},!0);this.enterOverlayMode();this.hideFixedLayer();a&&this.maybeEnterFieLightboxMode(a);return this.j.updateLightboxMode(!0)};f.leaveLightboxMode=function(a){this.h.sendMessage("cancelFullOverlay",{},!0);this.showFixedLayer();this.leaveOverlayMode();a&&this.maybeLeaveFieLightboxMode(a);return this.j.updateLightboxMode(!1)};f.isLightboxExperimentOn=function(){return L(this.ampdoc.win,"amp-lightbox-a4a-proto")}; f.maybeEnterFieLightboxMode=function(a){var b=Kl(this,a);b&&(this.isLightboxExperimentOn(),b.enterFullOverlayMode())};f.maybeLeaveFieLightboxMode=function(a){(a=Kl(this,a))&&a.leaveFullOverlayMode()};function Kl(a,b){var c=Ic(b,a.ampdoc.win);return c&&c.__AMP_EMBED__}f.enterOverlayMode=function(){this.disableTouchZoom();this.disableScroll()};f.leaveOverlayMode=function(){this.resetScroll();this.restoreOriginalTouchZoom()};f.disableScroll=function(){var a=this;this.w.mutate(function(){a.j.disableScroll()})}; f.resetScroll=function(){var a=this;this.w.mutate(function(){a.j.resetScroll()})};f.resetTouchZoom=function(){var a=this,b=this.ampdoc.win.innerHeight,c=this.La.documentElement.clientHeight;b&&c&&b===c||this.disableTouchZoom()&&this.R.delay(function(){a.restoreOriginalTouchZoom()},50)}; f.disableTouchZoom=function(){var a=Ll(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=b)return Promise.resolve();var e=yl(a.kc-a.K,0);return bl(a.ampdoc.getRootNode(),function(b){b=e(b);a.ea.transformMutate("translateY("+b+"px)")},b,c).thenAlways(function(){a.ea.transformMutate(null)})}function Ol(a,b,c){var d=a.getSize(),e=a.getScrollTop(),g=a.getScrollLeft();a.Qe.fire({relayoutAll:b,top:e,left:g,width:d.width,height:d.height,velocity:c})} f.jh=function(){var a=this;this.Lb=null;this.Jf++;this.Qa=this.j.getScrollLeft();var b=this.j.getScrollTop();if(!(0>b)){this.ra=b;if(!this.ge){this.ge=!0;var c=Date.now();this.R.delay(function(){a.w.measure(function(){a.Of(c,b)})},36)}this.ka.fire()}};f.Of=function(a,b){var c=this,d=this.ra=this.j.getScrollTop(),e=Date.now(),g=0;e!=a&&(g=(d-b)/(e-a));.03>Math.abs(g)?(Ol(this,!1,g),this.ge=!1):this.R.delay(function(){return c.w.measure(c.Of.bind(c,e,d))},20)}; f.lh=function(){var a=this;this.fe||(this.fe=!0,this.w.measure(function(){a.fe=!1;a.h.sendMessage("scroll",H({scrollTop:a.getScrollTop()}),!0)}))};f.Hf=function(){var a=this;this.Lb=null;var b=this.T;this.T=null;var c=this.getSize();this.ea.update().then(function(){var d=!b||b.width!=c.width;Ol(a,d,0);var e=d||b.height!=c.height;e&&a.ja.fire({relayoutAll:d,width:c.width,height:c.height})})}; function Pl(a){var b=T(a),c;if(c=a.isSingleDoc()){c=a.win;var d=b.getParam("viewportType")||Ql;rd(c).isIos()&&d==Ql?!fd(c)&&r(c).development?c=Rl:(fd(c),c=fd(c)&&b.isEmbedded()?Rl:d):c=d;c=c==Rl}c=c?L(a.win,"ios-embed-sd")&&a.win.Element.prototype.attachShadow&&11<=rd(a.win).getMajorVersion()?new Bl(a.win):new Cl(a.win):new ll(a);return new Dl(a,c,b)}var Ql="natural",Rl="natural-ios-embed";function Sl(a){var b=this;this.win=a;this.Ja=nd(this.win);this.qb=Q(this.win,"documentState");this.bh=Tl(this);this.I=[];this.Vd=[];this.le=[];this.Ud=[];this.qa=!1;this.Td=this.tc=null;this.bd=this.ih.bind(this);this.Bg=new og(this.win,this.bd,16);this.Ae=new og(this.win,this.bd,40);this.ie=null;var c=this.Yd.bind(this);if(this.Ja.isSingleDoc())pc(this.Ja.getAmpDoc(),"viewer").then(function(a){b.ie=a;a.onVisibilityChanged(c)});else this.qb.onVisibilityChanged(c);this.gf=new jg(this.win)}f=Sl.prototype; f.Yd=function(){this.qa&&Ul(this)};f.run=function(a,b){this.I.push(a);this.le.push(b||void 0);this.Pa()};f.runPromise=function(a,b){this.run(a,b);if(this.tc)return this.tc;a=new N;this.Td=a.resolve;return this.tc=a.promise};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 Vl(this,a)};function Vl(a,b){return a.qb.isHidden()?!1:a.ie?a.ie.isVisible():b?(a=a.Ja.getAmpDoc(b),T(a).isVisible()):!0}f.runAnim=function(a,b,c){if(!Vl(this,a))return E().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 Vl(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.Pa=function(){this.qa||(this.qa=!0,this.gf.onScheduled(),Ul(this))};function Ul(a){Vl(a)?(a.bh(a.bd),a.Ae.schedule()):a.Bg.schedule()} f.ih=function(){this.Ae.cancel();this.qa=!1;this.gf.onRun();var a=this.I,b=this.le,c=this.Td;this.tc=this.Td=null;this.I=this.Vd;this.le=this.Ud;for(var d=0;d element.")), this.propagateAttributes(Yl,this.O),Xl(this.O),this.applyFillContent(this.O,!0),this.element.appendChild(this.O))};f.prerenderAllowed=function(){return this.ff};f.reconstructWhenReparented=function(){return!1};f.layoutCallback=function(){var a=this;this.ec();var b=this.O;this.Mc=yd(b,"load",function(){return $l(a)});this.Lc=yd(b,"error",function(){return am(a)});return 0>=this.getLayoutWidth()?Promise.resolve():this.loadPromise(b)}; f.unlayoutCallback=function(){this.Lc&&(this.Lc(),this.Lc=null);this.Mc&&(this.Mc(),this.Mc=null);return!0};function $l(a){!a.Wb&&a.O.classList.contains("i-amphtml-ghost")&&a.getVsync().mutate(function(){a.O.classList.remove("i-amphtml-ghost");a.toggleFallback(!1)})}function am(a){a.Wb&&(a.getVsync().mutate(function(){a.O.classList.add("i-amphtml-ghost");a.toggleFallback(!0);a.togglePlaceholder(!1)}),a.Wb=!1)};function bm(a){Kh.apply(this,arguments)}aa(bm,Kh);bm.prototype.isLayoutSupported=function(a){return Ue(a)};bm.prototype.buildCallback=function(){var a=this.win.document.createElement("div");this.applyFillContent(a);this.getRealChildNodes().forEach(function(b){a.appendChild(b)});this.element.appendChild(a)};function cm(a){Kh.call(this,a);this.me=null}aa(cm,Kh);cm.prototype.isLayoutSupported=function(){return!0}; cm.prototype.buildCallback=function(){this.element.setAttribute("aria-hidden","true");(this.Bc=this.element.getAttribute("referrerpolicy"))&&C().assert("no-referrer"==this.Bc,'amp-pixel: invalid "referrerpolicy" value "'+this.Bc+'". Only "no-referrer" is supported');this.element.hasAttribute("i-amphtml-ssr")&&this.element.querySelector("img")?E().info("amp-pixel","inabox img already present"):T(this.getAmpDoc()).whenFirstVisible().then(this.sh.bind(this))}; cm.prototype.sh=function(){var a=this;if(this.me)return E().error("amp-pixel","duplicate pixel"),this.me;this.me=R(this.win).promise(1).then(function(){var b=a.element.getAttribute("src");if(b)return dc(a.element,"url-replace",!0).expandUrlAsync(dm(b)).then(function(b){var c=a.win,e=a.Bc;e&&"no-referrer"!==e&&C().error("pixel","Unsupported referrerPolicy: "+e);if("no-referrer"===e)if("referrerPolicy"in Image.prototype)c=ng(c,b,!0);else{var g=c.document,e=H({src:"about:blank",style:"display:none"}), g=g.createElement("iframe"),h;for(h in e)g.setAttribute(h,e[h]);c.document.body.appendChild(g);ng(g.contentWindow,b);c=g}else c=ng(c,b);var k=c;E().info("amp-pixel","pixel triggered: ",b);return k})})};function dm(a){C().assert(/^(https\:\/\/|\/\/)/i.test(a),'The src attribute must start with "https://" or "//". Invalid value: '+a);return a};var em=["amp-ad","amp-embed","amp-video"],fm=["amp-mustache"];function gm(a){this.win=a;this.Ja=nd(a);this.$b={};this.Za=null}f=gm.prototype;f.registerExtension=function(a,b,c){var d=hm(this,a,!0);try{this.Za=a,b(c,c._),d.loaded=!0,d.resolve&&d.resolve(d.extension)}catch(e){throw d.error=e,d.reject&&d.reject(e),e;}finally{this.Za=null}};f.waitForExtension=function(a,b,c){return R(a).timeoutPromise(c||8E3,im(hm(this,b,!1)),"Render timeout waiting for extension "+b+" to be load.")}; f.preloadExtension=function(a,b){"amp-embed"==a&&(a="amp-ad");var c=hm(this,a,!1),d;c.loaded||c.error?d=!1:(void 0===c.scriptPresent&&(c.scriptPresent=!!this.win.document.head.querySelector('[custom-element="'+a+'"]')),d=!c.scriptPresent);if(d){d=b;b=this.win.document.createElement("script");b.async=!0;I(a,"_")?d="":b.setAttribute(0<=fm.indexOf(a)?"custom-template":"custom-element",a);b.setAttribute("data-script",a);b.setAttribute("i-amphtml-inserted","");var e;e=Ka.cdn;var g=r().rtvVersion;null== d&&(d="0.1");b.src=e+"/rtv/"+g+"/v0/"+a+(d?"-"+d:"")+".js";this.win.document.head.appendChild(b);c.scriptPresent=!0}return im(c)};f.installExtensionForDoc=function(a,b,c){var d=this,e=a.getRootNode(),g=e.__AMP_EXT_LDR;g||(g=e.__AMP_EXT_LDR=G());if(g[b])return g[b];hi(a.win,b);return g[b]=this.preloadExtension(b,c).then(function(){return jm(d,a,b)})};f.reloadExtension=function(a,b){this.$b[a]&&delete this.$b[a];b.removeAttribute("custom-element");b.setAttribute("i-amphtml-loaded-new-version",a);return this.preloadExtension(a)}; f.loadElementClass=function(a){return this.preloadExtension(a).then(function(b){return b.elements[a].implementationClass})};f.addElement=function(a,b,c){km(this,a).extension.elements[a]={implementationClass:b,css:c};this.addDocFactory(function(d){lm(d,a,b,c)})};function lm(a,b,c,d){d?le(a,d,function(){mm(a.win,b,c)},!1,b):mm(a.win,b,c)}function mm(a,b,c){ei(a,b,c);O(a,b,nm)}f.addService=function(a,b){km(this).extension.services.push(a);this.addDocFactory(function(c){P(c,a,b,!0)})}; f.addDocFactory=function(a,b){var c=km(this,b);c.docFactories.push(a);if(this.Za&&(this.Ja.isSingleDoc()||this.Ja.hasAmpDocShell())){var d=this.Ja.getAmpDoc(this.win.document);(d.declaresExtension(this.Za)||c.auto)&&a(d)}};f.installExtensionsInDoc=function(a,b){var c=this,d=[];b.forEach(function(b){d.push(jm(c,a,b))});return Promise.all(d)}; function jm(a,b,c){var d=hm(a,c,!1);return im(d).then(function(){b.declareExtension(c);d.docFactories.forEach(function(a){try{a(b)}catch(g){w("Doc factory failed: ",g,c)}})})} f.installExtensionsInChildWindow=function(a,b,c){var d=this,e=this.win;Hc(a,a.frameElement.ownerDocument.defaultView);om(a);pe(a.document,cssText$$module$build$css,null,!0,"amp-runtime");c&&c(a);pm(a);qm(e,a);rm(a);var g=[];b.forEach(function(b){em.includes(b)||hi(a,b);var c=d.preloadExtension(b).then(function(c){c.services.forEach(function(b){Kc(a,b)});var d=null,e={},g;for(g in c.elements){e.elementName=g;e.elementDef=c.elements[e.elementName];var h=(new Promise(function(c){return function(d){c.elementDef.css? pe(a.document,c.elementDef.css,d,!1,b):d()}}(e))).then(function(b){return function(){ei(a,b.elementName,b.elementDef.implementationClass)}}(e));d?d.push(h):d=[h];e={elementDef:e.elementDef,elementName:e.elementName}}return d?Promise.all(d).then(function(){return c}):c});g.push(c)});return Promise.all(g)}; function hm(a,b,c){var d=a.$b[b];d||(d={extension:{elements:{},services:[]},auto:c,docFactories:[],promise:void 0,resolve:void 0,reject:void 0,loaded:void 0,error:void 0,scriptPresent:void 0},a.$b[b]=d);return d}function km(a,b){a.Za||E().error("extensions","unknown extension for ",b);return hm(a,a.Za||"_UNKNOWN_",!0)} function im(a){if(!a.promise)if(a.loaded)a.promise=Promise.resolve(a.extension);else if(a.error)a.promise=Promise.reject(a.error);else{var b=new N;a.promise=b.promise;a.resolve=b.resolve;a.reject=b.reject}return a.promise}function qm(a,b){var c=di(a)["amp-img"];fi(b,"amp-img",c||Nh);a=di(a)["amp-pixel"];fi(b,"amp-pixel",a||Nh)}function rm(a){em.forEach(function(b){hi(a,b)})}function om(a){Ab(a);ac(a);bc(a)}function pm(a){Kc(a,"url");Kc(a,"action");Kc(a,"standard-actions");Kc(a,"navigation")} function nm(){return{}};(function(){Ca=ta;E();C()})();(function(a){self.reportError=a})(function(a,b,c){xe(b,c);b&&a&&qa(b.message)&&!(0<=b.message.indexOf("\u200b\u200b\u200b\u200b"))&&L(a,"user-error-reporting")&&(b={errorName:b.name,errorMessage:b.message},a=nd(a).getAmpDoc().getRootNode(),se(a.documentElement||a.body||a,b))}.bind(null,self)); function sm(a){O(a,"crypto",cj);O(a,"batched-xhr",Di);O(a,"documentState",jj);O(a,"platform",Uj);O(a,"templates",ji);O(a,"timer",Qk);O(a,"timer",Qk);O(a,"vsync",Sl);O(a,"xhr",Bi);O(a,"input",Tj)} function tm(a){var b=self;function c(a){function c(){g.then(function(){"function"==typeof a?a(b.AMP,b.AMP._):e.registerExtension(a.n,a.f,b.AMP)})}"function"!=typeof a&&a.i?um(e,a).then(function(){return vm(b,a,c)}):vm(b,a,c)}if(b.AMP_TAG)Promise.resolve();else{b.AMP_TAG=!0;var d=b.AMP||[];O(b,"extensions",gm);var e=pd(b);sm(b);rm(b);b.AMP={win:b,_:b.AMP?b.AMP._:void 0};b.AMP.config=La;b.AMP.BaseElement=Kh;b.AMP.BaseTemplate=ii;b.AMP.registerElement=e.addElement.bind(e);b.AMP.registerTemplate=function(a, c){var d=Q(b,"templates");if(d.lb[a]){var e=d.Ic[a];C().assert(e,"Duplicate template type: %s",a);delete d.Ic[a];e(c)}else d.lb[a]=Promise.resolve(c)};b.AMP.registerServiceForDoc=e.addService.bind(e);b.AMP.isExperimentOn=L.bind(null,b);b.AMP.toggleExperiment=wb.bind(null,b);b.AMP.setLogLevel=sa.bind(null);b.AMP.setTickFunction=function(){};var g=a(b,e);for(a=0;a